query
stringlengths 9
43.3k
| document
stringlengths 17
1.17M
| metadata
dict | negatives
sequencelengths 0
30
| negative_scores
sequencelengths 0
30
| document_score
stringlengths 5
10
| document_rank
stringclasses 2
values |
---|---|---|---|---|---|---|
Used to provide bc with the old app_a_engines way of listing engine choices | static public function getEngines()
{
if (sfConfig::get('app_a_get_engines_method'))
{
$method = sfConfig::get('app_a_get_engines_method');
return call_user_func($method);
}
return sfConfig::get('app_a_engines', array(
'' => 'Template-Based'));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getEngines();",
"public function getEngines() {\n\n\t\t$engines = array();\n\t\t$this->query('SHOW ENGINES');\n\t\t\n\t\twhile ($r = $this->get()) {\n\t\t\t$engines[$r['Engine']] = $r; \n\t\t}\n\t\t\n\t\treturn $engines;\n\t}",
"public function getAvailableEngines() {\n\t\t$engines = $this->getEngines();\n\t\t\n\t\tif (is_array($engines)) {\n\t\t\t$availableEngines = array();\n\t\t\tforeach ($engines as $engineName => $engineData) {\n\t\t\t\t\n\t\t\t\t$engineSupport = strtolower($engineData['Support']);\n\n\t\t\t\tif ($engineSupport == 'yes' || $engineSupport == 'default') {\n\t\t\t\t\t$availableEngines[] = $engineName;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn $availableEngines;\n\t\t}\n\t\treturn array();\n\t\t\n\t}",
"function getChoices()\r\n{\r\n return array(\"This midterm is easy\", \"I like midterms\", \"Today is Monday\");\r\n}",
"function setup_getEngines($engines_ary)\n{\n\t$engines = array();\n\t\n\tforeach ($engines_ary as $engine => $meta)\n {\n if (engine_get_capability($engine, 'movie')) $engines[$engine] = $meta['name'];\n }\n \n return $engines;\n}",
"public function option_choices() {\n\t\treturn array();\n\t}",
"public static function choices();",
"function getSearchEngines(){\n $searchEngines = array();\n $apiRoot = $this->getApiRoot();\n unset($apiRoot['searchengines']);\n\n foreach($apiRoot as $hashid => $props){\n $searchEngines[] = new SearchEngine($this, $hashid, $props['name']);\n }\n\n return $searchEngines;\n }",
"public function getChoices()\n {\n echo '';\n }",
"public function getEngineNames()\n\t{\n\t\treturn array_keys($this->configurations['engines']);\n\t}",
"public function getEngOptions()\n {\n return $this->engOptions;\n }",
"public function getOptions() {\n\t\t$sql = \"SELECT * FROM `\" . DB_PREFIX . \"option_description` WHERE name = 'Fabric n Colour'\";\n $query = $this->db->query($sql);\n return $query->rows;\n }",
"public function actionSelectEngine()\n {\n $model = new SelectEngine();\n $engines = $this->viewList('engine');\n $car = $this->viewOne('car');\n\n if(BaseRequest::checkModelRequest($model)){\n $model->update($car);\n $this->setFlash('update','Engine update successful');\n }\n\n return $this->render('select-engine',['model' => $model,'engines' => $engines]);\n }",
"public function listServiceEngines() { \n $params = array ();\n $params ['param'] = 'all'; \n \n $resXML = $this->makeRequest('com.cisco.unicorn.ui.ListApiServlet', 'getSEs', $params);\n $attribs = $resXML->record->attributes();\n \n $res=array();\n foreach ($attribs as $a => $b) {\n $res[$a]=(string)$b;\n } \n \n return $res;\n }",
"static function engine($engine_name = null) {\n if(is_null($engine_name)) {\n return self::$default_engine;\n } else {\n return array_var(self::$additional_engines, $engine_name);\n } // if\n }",
"public function getKnownEngines()\n {\n return array(\n 'webkit' => ['webkit'],\n 'gecko' => ['gecko'],\n 'trident' => ['trident'],\n 'presto' => ['presto'],\n 'khtml' => ['khtml']\n );\n }",
"public function getEngineResolver ()\n {\n return $this->engines;\n }",
"public function getChoices()\n {\n return $this->choices;\n }",
"public function getChoices()\n {\n return $this->choices;\n }",
"public function searchForOtherTechnologies()\n {\n $applications = [];\n $otherTechnologies = (new Togglyzer($this->siteAnatomy))->check();\n if (isset($otherTechnologies->applications)) {\n foreach ($otherTechnologies->applications as $application) {\n\n if ($application->name != 'WordPress') {\n\n $app = (new \\App\\Engine\\ApplicationComponents\\Application())\n ->setName($application->name)\n ->setConfidence($application->confidence)\n ->setVersion($application->version)\n ->setIcon($application->icon)\n ->setWebsite($application->website)\n ->setCategories($application->categories);\n\n $applications[] = $app;\n }\n\n\n }\n }\n\n return $applications;\n }",
"public function getOptionsList(): array;",
"function prepareSearchEngines()\n{\n\tglobal $modSettings;\n\n\t$engines = array();\n\tif (!empty($modSettings['additional_search_engines']))\n\t{\n\t\t$search_engines = ElkArte\\Util::unserialize($modSettings['additional_search_engines']);\n\t\tforeach ($search_engines as $engine)\n\t\t{\n\t\t\t$engines[strtolower(preg_replace('~[^A-Za-z0-9 ]~', '', $engine['name']))] = $engine;\n\t\t}\n\t}\n\n\treturn $engines;\n}",
"public function getApps();",
"public function EngineList($host)\r\n {\r\n $post_string = '<?xml version=\"1.0\" encoding=\"utf-8\"?><EngineListingRequest session-id='.'\"'.$this->getSessionId().'\"'.'/>';\r\n\r\n $data = $this->call($host, $post_string);\r\n\r\n return $data;\r\n }",
"public function getAvailableListingTypes() {\r\n $select = $this->select()->where('`show` = ?', 1)->order('order ASC');\r\n return $this->fetchAll($select); \r\n }",
"function getAppraiserList($db, $varname, $default = \"\", $extra = \"\", $criteria = \"\", $action = \"\", $listonly = false)\n{\n $strResult = \"\";\n $strHidden = \"\";\n if (!$listonly) {\n $strResult .= \"<select name=\\\"$varname\\\" $action>\\n\";\n }\n $strResult .= $extra;\n $strSQL = \"SELECT t1.id, t2.employee_id, t2.employee_name FROM hrd_appraiser AS t1 \";\n $strSQL .= \"LEFT JOIN hrd_employee AS t2 ON t1.id_employee = t2.id \";\n $strSQL .= \"$criteria ORDER BY t2.employee_id \";\n $resDb = $db->execute($strSQL);\n while ($rowDb = $db->fetchrow($resDb)) {\n ($rowDb['id'] == $default) ? $strSelect = \"selected\" : $strSelect = \"\";\n $strResult .= \"<option value=\\\"\" . $rowDb['id'] . \"\\\" $strSelect>\" . $rowDb['employee_id'] . \" - \" . $rowDb['employee_name'] . \"</option>\\n\";\n }\n if (!$listonly) {\n $strResult .= \"</select>\\n\";\n }\n return $strResult;\n}",
"function _horde_listApps($filter = null)\n{\n return $GLOBALS['registry']->listApps($filter);\n}",
"function htvcenter_ansible_get_cloud_applications() {\n\tglobal $event;\n\tglobal $htvcenter_SERVER_BASE_DIR;\n\tglobal $htvcenter_SERVER_IP_ADDRESS;\n\tglobal $htvcenter_EXEC_PORT;\n\n\t$ansible_group_list = array();\n\t$ansible = new ansible();\n\t$ansible_group_array = $ansible->get_available_playbooks();\n\tforeach ($ansible_group_array as $index => $ansible_app) {\n\t\t$ansible_group_list[] = \"ansible/\".$ansible_app;\n\t}\n\treturn $ansible_group_list;\n}",
"private function get_upgrade_choices() {\r\n\t\t$choices = [];\r\n\t\t$license = $this->user->get_license_type();\r\n\t\t$plus_websites = $this->pricing->get_plus_websites_count();\r\n\r\n\t\tif ( $license === $plus_websites ) {\r\n\t\t\t$choices['infinite'] = $this->get_upgrade_from_plus_to_infinite_data();\r\n\t\t} elseif (\r\n\t\t\t$license >= $this->pricing->get_single_websites_count()\r\n\t\t\t&&\r\n\t\t\t$license < $plus_websites\r\n\t\t\t) {\r\n\t\t\t$choices['plus'] = $this->get_upgrade_from_single_to_plus_data();\r\n\t\t\t$choices['infinite'] = $this->get_upgrade_from_single_to_infinite_data();\r\n\t\t}\r\n\r\n\t\treturn $choices;\r\n\t}",
"public function allProviders()\n {\n\n $query = \\DB::select(\"select software from realgamesgames GROUP BY software\");\n return $query;\n }"
] | [
"0.6637776",
"0.6046483",
"0.59737104",
"0.5691244",
"0.5565432",
"0.5516598",
"0.5497044",
"0.5467085",
"0.5465906",
"0.54564655",
"0.5449414",
"0.5394513",
"0.53805465",
"0.53731215",
"0.534271",
"0.53298575",
"0.5282408",
"0.5277663",
"0.5277663",
"0.5242598",
"0.52355295",
"0.52030504",
"0.51852757",
"0.51755583",
"0.51716334",
"0.51483345",
"0.51060927",
"0.50916594",
"0.5079582",
"0.5071596"
] | 0.62037754 | 1 |
Returns global buttons as a flat array, either in alpha order or, if app_a_global_button_order is specified, in that order. This is used to implement the default behavior. However see also aTools::getGlobalButtonsByName() which is much nicer if you want to aggressively customize the admin bar | static public function getGlobalButtons()
{
$buttonsByName = aTools::getGlobalButtonsByName();
$buttonsOrder = sfConfig::get('app_a_global_button_order', false);
if ($buttonsOrder === false)
{
ksort($buttonsByName);
$orderedButtons = array_values($buttonsByName);
}
else
{
$orderedButtons = array();
foreach ($buttonsOrder as $name)
{
if (isset($buttonsByName[$name]))
{
$orderedButtons[] = $buttonsByName[$name];
}
}
}
return $orderedButtons;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static public function getGlobalButtonsByName()\n {\n if (aTools::$globalButtons === false)\n {\n aTools::$globalButtons = array();\n // We could pass parameters here but it's a simple static thing in this case\n // so the recipients just call back to addGlobalButtons\n sfContext::getInstance()->getEventDispatcher()->notify(new sfEvent(null, 'a.getGlobalButtons', array()));\n }\n $labelOverrides = sfConfig::get('app_a_global_button_labels', null);\n if (is_array($labelOverrides))\n {\n foreach ($labelOverrides as $key => $label)\n {\n if (isset(aTools::$globalButtons[$key]))\n {\n if (is_array($label))\n {\n // i18n\n aTools::$globalButtons[$key]->setLabel($label[aTools::getUserCulture()]);\n }\n else\n {\n aTools::$globalButtons[$key]->setLabel($label);\n }\n }\n }\n }\n return aTools::$globalButtons;\n }",
"static public function getGlobalButtons()\n {\n $user = sfContext::getInstance()->getUser();\n if ($user->hasCredential('blog_author') || $user->hasCredential('blog_admin'))\n {\n pkContextCMSTools::addGlobalButtons(array(\n new pkContextCMSGlobalButton('Blog', 'pkBlogPostAdmin/index', 'pk-blog'),\n \t\t\tnew pkContextCMSGlobalButton('Events', 'pkBlogEventAdmin/index', 'pk-events day-'.date('j'))\n \t\t));\n \t}\n }",
"protected function getButtons() {\n\t\t$buttons = array(\n\t\t\t'shortcut' => ''\n\t\t);\n\n\t\t/** @var \\TYPO3\\CMS\\Core\\Authentication\\BackendUserAuthentication $beUser */\n\t\t$beUser = $GLOBALS['BE_USER'];\n\n\t\tif ($beUser->mayMakeShortcut()) {\n\t\t\t$selKeys = implode(',', array_keys($this->MOD_MENU));\n\t\t\t$icon = $this->doc->makeShortcutIcon('id', $selKeys, $this->MCONF['name']);\n\t\t\t$buttons['shortcut'] = $icon;\n\t\t}\n\n\t\treturn $buttons;\n\t}",
"static public function addGlobalButtons($array)\n {\n foreach ($array as $button)\n {\n aTools::$globalButtons[$button->getName()] = $button;\n }\n }",
"static public function getGlobalButtonsInternal(sfEvent $event)\n {\n // but this is a simple static thing\n \n // Add the users button only if the user has the admin credential.\n // This is typically only given to admins and superadmins.\n // TODO: there is also the cms_admin credential, should I differentiate here?\n $user = sfContext::getInstance()->getUser();\n if ($user->hasCredential('admin'))\n {\n $extraAdminButtons = sfConfig::get('app_pkContextCMS_extra_admin_buttons', \n array(\n array('label' => 'Users', 'action' => 'pkUserAdmin/index', 'class' => 'pk-users'),\n array('label' => 'Reorganize', 'action' => 'pkContextCMS/reorganize', 'class' => 'pk-reorganize') \n ));\n // Eventually this one too. Reorganize will probably get moved into it\n // ('Settings', 'pkContextCMS/globalSettings', 'pk-settings')\n\n if (is_array($extraAdminButtons))\n {\n foreach ($extraAdminButtons as $data)\n {\n pkContextCMSTools::addGlobalButtons(array(new pkContextCMSGlobalButton(\n $data['label'], $data['action'], isset($data['class']) ? $data['class'] : '')));\n }\n }\n }\n }",
"protected function getButtons()\n {\n $buttons = array(\n 'csh' => '',\n 'shortcut' => '',\n 'save' => ''\n );\n // CSH\n $buttons['csh'] = t3lib_BEfunc::cshItem(\n '_MOD_web_func', '', $GLOBALS['BACK_PATH']\n );\n\n // Shortcut\n if ($GLOBALS['BE_USER']->mayMakeShortcut()) {\n $buttons['shortcut'] = $this->doc->makeShortcutIcon(\n '', 'function', $this->MCONF['name']\n );\n }\n\n return $buttons;\n }",
"static public function addGlobalButtons($array)\n {\n self::$globalButtons = array_merge(self::$globalButtons, $array);\n }",
"public function createCommonButtons(): array\n {\n $dashboard_button = $this->createCardButton('View Dashboard', $this->dashboard_link);\n $environment_button = $this->createCardButton('View Site Environment', $this->environment_link);\n return [$dashboard_button, $environment_button];\n }",
"protected function getButtons() {\n\t\t$buttons = array();\n\n\t\t\t// CSH\n\t\t$buttons['csh'] = t3lib_BEfunc::cshItem(\n\t\t\t'_MOD_web_func',\n\t\t\t'',\n\t\t\t$GLOBALS['BACK_PATH']\n\t\t);\n\n\t\t\t// SAVE button\n\t\t$buttons['save'] = '<input type=\"image\" class=\"c-inputButton\" name=\"submit\" value=\"Update\"'\n\t\t\t. t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'], 'gfx/savedok.gif', '')\n\t\t\t. ' title=\"' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.saveDoc', 1)\n\t\t\t. '\" />';\n\n\t\t\t// Shortcut\n\t\tif ($GLOBALS['BE_USER']->mayMakeShortcut())\t{\n\t\t\t$buttons['shortcut'] = $this->doc->makeShortcutIcon(\n\t\t\t\t'',\n\t\t\t\t'function',\n\t\t\t\t$this->MCONF['name']\n\t\t\t);\n\t\t}\n\n\t\treturn $buttons;\n\t}",
"function stregistry_AdminCustomButtonArray() \n{\n $buttonarray = array(\n\t\t\"Hold Domain\" => \"HoldDomain\",\n\t\t\"Unhold Domain\" => \"UnHoldDomain\",\n );\n return $buttonarray;\n}",
"function oneportal_ClientAreaCustomButtonArray() {\n $buttonarray = array(\n\t \"Reboot Server\" => \"reboot\",\n\t \"Turn Off Server\" => \"turnoff\",\n\t \"Turn On Server\" => \"turnon\",\n\t \"Save rDNS\" => \"saverdns\"\n\t);\n\treturn $buttonarray;\n}",
"function cunifybuilder_AdminCustomButtonArray() {\n return array(\n \"Button 1 Display Value\" => \"buttonOneFunction\",\n \"Button 2 Display Value\" => \"buttonTwoFunction\",\n );\n}",
"protected function getFormButtons()\n {\n return array();\n }",
"public static function getButtons($tabPermits)\n {\n $components = PFApplicationHelper::getComponents();\n $buttons = array();\n \n foreach ($components AS $component)\n {\n if (!PFApplicationHelper::enabled($component->element)) {\n continue;\n }\n\n // Register component route helper if exists\n $router = JPATH_SITE . '/components/' . $component->element . '/helpers/route.php';\n $class = str_replace('com_pf', 'PF', $component->element) . 'HelperRoute';\n\n if (JFile::exists($router)) {\n JLoader::register($class, $router);\n }\n\n // Register component dashboard helper if exists\n $helper = JPATH_ADMINISTRATOR . '/components/' . $component->element . '/helpers/dashboard.php';\n $class = str_replace('com_pf', 'PF', $component->element) . 'HelperDashboard';\n\n if (!JFile::exists($helper)) {\n continue;\n }\n\n JLoader::register($class, $helper);\n\n // Get the dashboard button\n if (class_exists($class)) {\n if (in_array('getSiteButtons', get_class_methods($class))) {\n \n \n $checkClass = $tabPermits->checkPermissions($class);\n if (!$checkClass) continue;\n $com_buttons = (array) call_user_func(array($class, 'getSiteButtons'));\n \n $buttons[$component->element] = array();\n\n foreach ($com_buttons AS $button)\n {\n $buttons[$component->element][] = $button;\n }\n }\n }\n }\n\n return $buttons;\n }",
"protected function getButtons()\n {\n $buttonBar = $this->moduleTemplate->getDocHeaderComponent()->getButtonBar();\n if ($this->page_id) {\n if ((string)$this->table === 'pages') {\n $cshButton = $buttonBar->makeHelpButton()\n ->setModuleName('xMOD_csh_corebe')\n ->setFieldName('move_el_pages');\n $buttonBar->addButton($cshButton);\n } elseif ((string)$this->table === 'tt_content') {\n $cshButton = $buttonBar->makeHelpButton()\n ->setModuleName('xMOD_csh_corebe')\n ->setFieldName('move_el_cs');\n $buttonBar->addButton($cshButton);\n }\n\n if ($this->R_URI) {\n $backButton = $buttonBar->makeLinkButton()\n ->setHref($this->R_URI)\n ->setTitle($this->getLanguageService()->getLL('goBack'))\n ->setIcon($this->moduleTemplate->getIconFactory()->getIcon(\n 'actions-view-go-back',\n Icon::SIZE_SMALL\n ));\n $buttonBar->addButton($backButton);\n }\n }\n }",
"public function get_nav_bar_apps()\n {\n \t$apps['orders'] = array('icon'=>'fa fa-fw fa-shopping-cart', 'name'=>'Orders', 'controller_name'=>'Admin_orders');\n \t$apps['inventory'] = array('icon'=>'fa fa-fw fa-cubes','name'=>'Inventory', 'controller_name'=>'Admin_inventory');\n \t$apps['items'] = array('icon'=>'fa fa-fw fa-cube','name'=>'Items', 'controller_name'=>'Admin_items');\n \t$apps['admin_users'] = array('icon'=>'fa fa-fw fa-users','name'=>'Admin users', 'controller_name'=>'Admin_users');\n \treturn $apps;\n }",
"public function getButtons()\n {\n return $this->buttons;\n }",
"public function getGlobalActions($override = false)\n {\n //make sure we only run this once and then return the cached version\n if (empty($this->globalActions) || $override) {\n $this->globalActions = array();\n\n //loop over the actions to build the list\n foreach ($this->config->getOption('global_actions') as $name => $options) {\n $this->globalActions[] = $this->make($name, $options);\n }\n }\n\n return $this->globalActions;\n }",
"public function getButtons()\n\t{\n\t\treturn $this->buttons;\n\t}",
"function getButtons() {\n return $this->buttons;\n }",
"protected function getFormButtons()\n {\n $result = parent::getFormButtons();\n\n $result['save'] = new \\XLite\\View\\Button\\Submit(\n array(\n \\XLite\\View\\Button\\AButton::PARAM_LABEL => 'Save changes',\n \\XLite\\View\\Button\\AButton::PARAM_BTN_TYPE => 'regular-main-button',\n \\XLite\\View\\Button\\AButton::PARAM_STYLE => 'action',\n )\n );\n\n if (!\\XLite\\Core\\Request::getInstance()->template) {\n $result['templates'] = new \\XLite\\View\\Button\\SimpleLink(\n array(\n \\XLite\\View\\Button\\AButton::PARAM_LABEL => 'Back to templates list',\n \\XLite\\View\\Button\\AButton::PARAM_STYLE => 'action',\n \\XLite\\View\\Button\\Link::PARAM_LOCATION => $this->buildURL('theme_tweaker_templates'),\n )\n );\n }\n\n return $result;\n }",
"public static function getButtonColorArray()\n {\n $ret = [\n 'press-red' => 'Red',\n 'press-pink' => 'Pink',\n 'press-purple' => 'Purple',\n 'press-deeppurple' => 'Deep purple',\n 'press-indigo' => 'Indigo',\n 'press-blue' => 'Blue',\n 'press-lightblue' => 'Light blue',\n 'press-cyan' => 'Cyan',\n 'press-teal' => 'Teal',\n 'press-green' => 'Green',\n 'press-lightgreen' => 'Light green',\n 'press-lime' => 'Lime',\n 'press-yellow' => 'Yellow',\n 'press-amber' => 'Amber',\n 'press-orange' => 'Orange',\n 'press-deeporange' => 'Deeporange',\n 'press-brown' => 'Brown',\n 'press-grey' => 'Grey',\n 'press-bluegrey' => 'Blue grey',\n 'press-black' => 'Black',\n ];\n\n return $ret;\n }",
"function cunifybuilder_ClientAreaCustomButtonArray() {\n return array(\n \"Action 1 Display Value\" => \"actionOneFunction\",\n \"Action 2 Display Value\" => \"actionTwoFunction\",\n );\n}",
"public function getShowTopButtons()\n\t{\n\t\treturn $this->show_top_buttons;\n\t}",
"private function getFullToolbar()\n {\n return array(\n array('Source', '-', 'NewPage', 'Preview', 'Print', '-', 'Templates'),\n array('Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'),\n array('Find', 'Replace', '-', 'SelectAll', '-', 'Scayt'),\n array(\n 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'SelectField', 'Button', 'ImageButton',\n 'HiddenField',\n ),\n '/',\n array('Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'),\n array(\n 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-',\n 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl',\n ),\n array('Link', 'Unlink', 'Anchor'),\n array('Image', 'FLash', 'Table', 'HorizontalRule', 'SpecialChar', 'Smiley', 'PageBreak', 'Iframe'),\n '/',\n array('Styles', 'Format', 'Font', 'FontSize', 'TextColor', 'BGColor'),\n array('Maximize', 'ShowBlocks'),\n array('About'),\n );\n }",
"protected function getAdditionalSubButtons()\n {\n $buttons = array();\n \n foreach ($this->get_additional_links() as $link)\n {\n $buttons[] = $this->getButton($link, $link->get_url());\n }\n \n return $buttons;\n }",
"function getDGButtons() {\n\n\t\t$buttons = \"\";\n\t\t$buttons .= wrapHTMLBlock(getGenerateButton(), \"dgButtonsGenerate\");\t\n\t\t$buttons .= wrapHTMLBlock(getRecalcButton(), \"dgButtonsRecalc\");\t\n\t\t$buttons .= wrapHTMLBlock(getPrintButton(), \"dgButtonsPrint\");\t\n\t\t$buttons .= wrapHTMLBlock(getEditButton(), \"dgButtonsEdit\");\t\n\t\t$buttons .= wrapHTMLBlock(getLoadButton(), \"dgButtonsLoad\");\t\n\n\t\t$buttons = wrapHTMLBlock($buttons, \"dgFormButtons\");\n\t\treturn $buttons;\n\t}",
"protected function getAvailableButtons()\n {\n $result = '';\n $availableButtons = $this->getConfigValue('availableButtons');\n if (is_countable($availableButtons) && count($availableButtons)) {\n $result = implode(\",\", $availableButtons);\n }\n\n return $result;\n }",
"private function initToolbar()\n {\n $toolbar_btn = array();\n $toolbar_btn['save'] = array('href' => '#', 'desc' => $this->l('Save'));\n return $toolbar_btn;\n }",
"public static function getAll()\n {\n //yes, this is probably a bad pattern\n return [\n OS::OS_WINDOWS => ['/windows', 'Windows', 'icon-windows', '_windows'],\n OS::OS_OSX => ['/osx', 'OS X', 'icon-apple', '_osx'],\n OS::OS_LINUX => ['/linux', 'Linux', 'icon-linux', '_linux'],\n OS::OS_ANDROID => ['/android', 'Android', 'icon-android', '_android'],\n OS::OS_IOS => ['/ios', 'iOS', 'icon-mobile', '_ios']\n ];\n }"
] | [
"0.834399",
"0.7042638",
"0.68040055",
"0.6749313",
"0.67070776",
"0.6653881",
"0.64371854",
"0.6359526",
"0.6348046",
"0.62801343",
"0.6171245",
"0.6126234",
"0.60911316",
"0.5916909",
"0.58895904",
"0.58756",
"0.5816273",
"0.5801856",
"0.5770405",
"0.5752303",
"0.5667031",
"0.566335",
"0.55738914",
"0.55671984",
"0.55224544",
"0.5512764",
"0.5505822",
"0.5502598",
"0.5485902",
"0.5470824"
] | 0.873184 | 0 |
Returns global buttons as an associative array by button name. Ignores app_a_global_button_order. For use by those who prefer to override the _globalTools partial. Note that you will NOT get the same buttons for every user! An admin has more buttons than a mere editor and so on. Use isset() | static public function getGlobalButtonsByName()
{
if (aTools::$globalButtons === false)
{
aTools::$globalButtons = array();
// We could pass parameters here but it's a simple static thing in this case
// so the recipients just call back to addGlobalButtons
sfContext::getInstance()->getEventDispatcher()->notify(new sfEvent(null, 'a.getGlobalButtons', array()));
}
$labelOverrides = sfConfig::get('app_a_global_button_labels', null);
if (is_array($labelOverrides))
{
foreach ($labelOverrides as $key => $label)
{
if (isset(aTools::$globalButtons[$key]))
{
if (is_array($label))
{
// i18n
aTools::$globalButtons[$key]->setLabel($label[aTools::getUserCulture()]);
}
else
{
aTools::$globalButtons[$key]->setLabel($label);
}
}
}
}
return aTools::$globalButtons;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static public function getGlobalButtons()\n {\n $buttonsByName = aTools::getGlobalButtonsByName();\n $buttonsOrder = sfConfig::get('app_a_global_button_order', false);\n if ($buttonsOrder === false)\n {\n ksort($buttonsByName);\n $orderedButtons = array_values($buttonsByName);\n }\n else\n {\n $orderedButtons = array();\n foreach ($buttonsOrder as $name)\n {\n if (isset($buttonsByName[$name]))\n {\n $orderedButtons[] = $buttonsByName[$name];\n }\n }\n }\n\n return $orderedButtons;\n }",
"static public function getGlobalButtons()\n {\n $user = sfContext::getInstance()->getUser();\n if ($user->hasCredential('blog_author') || $user->hasCredential('blog_admin'))\n {\n pkContextCMSTools::addGlobalButtons(array(\n new pkContextCMSGlobalButton('Blog', 'pkBlogPostAdmin/index', 'pk-blog'),\n \t\t\tnew pkContextCMSGlobalButton('Events', 'pkBlogEventAdmin/index', 'pk-events day-'.date('j'))\n \t\t));\n \t}\n }",
"protected function getButtons() {\n\t\t$buttons = array(\n\t\t\t'shortcut' => ''\n\t\t);\n\n\t\t/** @var \\TYPO3\\CMS\\Core\\Authentication\\BackendUserAuthentication $beUser */\n\t\t$beUser = $GLOBALS['BE_USER'];\n\n\t\tif ($beUser->mayMakeShortcut()) {\n\t\t\t$selKeys = implode(',', array_keys($this->MOD_MENU));\n\t\t\t$icon = $this->doc->makeShortcutIcon('id', $selKeys, $this->MCONF['name']);\n\t\t\t$buttons['shortcut'] = $icon;\n\t\t}\n\n\t\treturn $buttons;\n\t}",
"static public function getGlobalButtonsInternal(sfEvent $event)\n {\n // but this is a simple static thing\n \n // Add the users button only if the user has the admin credential.\n // This is typically only given to admins and superadmins.\n // TODO: there is also the cms_admin credential, should I differentiate here?\n $user = sfContext::getInstance()->getUser();\n if ($user->hasCredential('admin'))\n {\n $extraAdminButtons = sfConfig::get('app_pkContextCMS_extra_admin_buttons', \n array(\n array('label' => 'Users', 'action' => 'pkUserAdmin/index', 'class' => 'pk-users'),\n array('label' => 'Reorganize', 'action' => 'pkContextCMS/reorganize', 'class' => 'pk-reorganize') \n ));\n // Eventually this one too. Reorganize will probably get moved into it\n // ('Settings', 'pkContextCMS/globalSettings', 'pk-settings')\n\n if (is_array($extraAdminButtons))\n {\n foreach ($extraAdminButtons as $data)\n {\n pkContextCMSTools::addGlobalButtons(array(new pkContextCMSGlobalButton(\n $data['label'], $data['action'], isset($data['class']) ? $data['class'] : '')));\n }\n }\n }\n }",
"protected function getButtons()\n {\n $buttons = array(\n 'csh' => '',\n 'shortcut' => '',\n 'save' => ''\n );\n // CSH\n $buttons['csh'] = t3lib_BEfunc::cshItem(\n '_MOD_web_func', '', $GLOBALS['BACK_PATH']\n );\n\n // Shortcut\n if ($GLOBALS['BE_USER']->mayMakeShortcut()) {\n $buttons['shortcut'] = $this->doc->makeShortcutIcon(\n '', 'function', $this->MCONF['name']\n );\n }\n\n return $buttons;\n }",
"protected function getButtons() {\n\t\t$buttons = array();\n\n\t\t\t// CSH\n\t\t$buttons['csh'] = t3lib_BEfunc::cshItem(\n\t\t\t'_MOD_web_func',\n\t\t\t'',\n\t\t\t$GLOBALS['BACK_PATH']\n\t\t);\n\n\t\t\t// SAVE button\n\t\t$buttons['save'] = '<input type=\"image\" class=\"c-inputButton\" name=\"submit\" value=\"Update\"'\n\t\t\t. t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'], 'gfx/savedok.gif', '')\n\t\t\t. ' title=\"' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.saveDoc', 1)\n\t\t\t. '\" />';\n\n\t\t\t// Shortcut\n\t\tif ($GLOBALS['BE_USER']->mayMakeShortcut())\t{\n\t\t\t$buttons['shortcut'] = $this->doc->makeShortcutIcon(\n\t\t\t\t'',\n\t\t\t\t'function',\n\t\t\t\t$this->MCONF['name']\n\t\t\t);\n\t\t}\n\n\t\treturn $buttons;\n\t}",
"function stregistry_AdminCustomButtonArray() \n{\n $buttonarray = array(\n\t\t\"Hold Domain\" => \"HoldDomain\",\n\t\t\"Unhold Domain\" => \"UnHoldDomain\",\n );\n return $buttonarray;\n}",
"static public function addGlobalButtons($array)\n {\n foreach ($array as $button)\n {\n aTools::$globalButtons[$button->getName()] = $button;\n }\n }",
"function oneportal_ClientAreaCustomButtonArray() {\n $buttonarray = array(\n\t \"Reboot Server\" => \"reboot\",\n\t \"Turn Off Server\" => \"turnoff\",\n\t \"Turn On Server\" => \"turnon\",\n\t \"Save rDNS\" => \"saverdns\"\n\t);\n\treturn $buttonarray;\n}",
"public function createCommonButtons(): array\n {\n $dashboard_button = $this->createCardButton('View Dashboard', $this->dashboard_link);\n $environment_button = $this->createCardButton('View Site Environment', $this->environment_link);\n return [$dashboard_button, $environment_button];\n }",
"function cunifybuilder_AdminCustomButtonArray() {\n return array(\n \"Button 1 Display Value\" => \"buttonOneFunction\",\n \"Button 2 Display Value\" => \"buttonTwoFunction\",\n );\n}",
"protected function getFormButtons()\n {\n return array();\n }",
"static public function addGlobalButtons($array)\n {\n self::$globalButtons = array_merge(self::$globalButtons, $array);\n }",
"function getButtons() {\n return $this->buttons;\n }",
"public function getButtons()\n {\n return $this->buttons;\n }",
"public function getButtons()\n\t{\n\t\treturn $this->buttons;\n\t}",
"protected function getButtons()\n {\n $buttonBar = $this->moduleTemplate->getDocHeaderComponent()->getButtonBar();\n if ($this->page_id) {\n if ((string)$this->table === 'pages') {\n $cshButton = $buttonBar->makeHelpButton()\n ->setModuleName('xMOD_csh_corebe')\n ->setFieldName('move_el_pages');\n $buttonBar->addButton($cshButton);\n } elseif ((string)$this->table === 'tt_content') {\n $cshButton = $buttonBar->makeHelpButton()\n ->setModuleName('xMOD_csh_corebe')\n ->setFieldName('move_el_cs');\n $buttonBar->addButton($cshButton);\n }\n\n if ($this->R_URI) {\n $backButton = $buttonBar->makeLinkButton()\n ->setHref($this->R_URI)\n ->setTitle($this->getLanguageService()->getLL('goBack'))\n ->setIcon($this->moduleTemplate->getIconFactory()->getIcon(\n 'actions-view-go-back',\n Icon::SIZE_SMALL\n ));\n $buttonBar->addButton($backButton);\n }\n }\n }",
"protected function getFormButtons()\n {\n $result = parent::getFormButtons();\n\n $result['save'] = new \\XLite\\View\\Button\\Submit(\n array(\n \\XLite\\View\\Button\\AButton::PARAM_LABEL => 'Save changes',\n \\XLite\\View\\Button\\AButton::PARAM_BTN_TYPE => 'regular-main-button',\n \\XLite\\View\\Button\\AButton::PARAM_STYLE => 'action',\n )\n );\n\n if (!\\XLite\\Core\\Request::getInstance()->template) {\n $result['templates'] = new \\XLite\\View\\Button\\SimpleLink(\n array(\n \\XLite\\View\\Button\\AButton::PARAM_LABEL => 'Back to templates list',\n \\XLite\\View\\Button\\AButton::PARAM_STYLE => 'action',\n \\XLite\\View\\Button\\Link::PARAM_LOCATION => $this->buildURL('theme_tweaker_templates'),\n )\n );\n }\n\n return $result;\n }",
"public static function getButtons($tabPermits)\n {\n $components = PFApplicationHelper::getComponents();\n $buttons = array();\n \n foreach ($components AS $component)\n {\n if (!PFApplicationHelper::enabled($component->element)) {\n continue;\n }\n\n // Register component route helper if exists\n $router = JPATH_SITE . '/components/' . $component->element . '/helpers/route.php';\n $class = str_replace('com_pf', 'PF', $component->element) . 'HelperRoute';\n\n if (JFile::exists($router)) {\n JLoader::register($class, $router);\n }\n\n // Register component dashboard helper if exists\n $helper = JPATH_ADMINISTRATOR . '/components/' . $component->element . '/helpers/dashboard.php';\n $class = str_replace('com_pf', 'PF', $component->element) . 'HelperDashboard';\n\n if (!JFile::exists($helper)) {\n continue;\n }\n\n JLoader::register($class, $helper);\n\n // Get the dashboard button\n if (class_exists($class)) {\n if (in_array('getSiteButtons', get_class_methods($class))) {\n \n \n $checkClass = $tabPermits->checkPermissions($class);\n if (!$checkClass) continue;\n $com_buttons = (array) call_user_func(array($class, 'getSiteButtons'));\n \n $buttons[$component->element] = array();\n\n foreach ($com_buttons AS $button)\n {\n $buttons[$component->element][] = $button;\n }\n }\n }\n }\n\n return $buttons;\n }",
"public function getButtons($key);",
"private function initToolbar()\n {\n $toolbar_btn = array();\n $toolbar_btn['save'] = array('href' => '#', 'desc' => $this->l('Save'));\n return $toolbar_btn;\n }",
"function getDGButtons() {\n\n\t\t$buttons = \"\";\n\t\t$buttons .= wrapHTMLBlock(getGenerateButton(), \"dgButtonsGenerate\");\t\n\t\t$buttons .= wrapHTMLBlock(getRecalcButton(), \"dgButtonsRecalc\");\t\n\t\t$buttons .= wrapHTMLBlock(getPrintButton(), \"dgButtonsPrint\");\t\n\t\t$buttons .= wrapHTMLBlock(getEditButton(), \"dgButtonsEdit\");\t\n\t\t$buttons .= wrapHTMLBlock(getLoadButton(), \"dgButtonsLoad\");\t\n\n\t\t$buttons = wrapHTMLBlock($buttons, \"dgFormButtons\");\n\t\treturn $buttons;\n\t}",
"public static function getButtonColorArray()\n {\n $ret = [\n 'press-red' => 'Red',\n 'press-pink' => 'Pink',\n 'press-purple' => 'Purple',\n 'press-deeppurple' => 'Deep purple',\n 'press-indigo' => 'Indigo',\n 'press-blue' => 'Blue',\n 'press-lightblue' => 'Light blue',\n 'press-cyan' => 'Cyan',\n 'press-teal' => 'Teal',\n 'press-green' => 'Green',\n 'press-lightgreen' => 'Light green',\n 'press-lime' => 'Lime',\n 'press-yellow' => 'Yellow',\n 'press-amber' => 'Amber',\n 'press-orange' => 'Orange',\n 'press-deeporange' => 'Deeporange',\n 'press-brown' => 'Brown',\n 'press-grey' => 'Grey',\n 'press-bluegrey' => 'Blue grey',\n 'press-black' => 'Black',\n ];\n\n return $ret;\n }",
"protected function getAvailableButtons()\n {\n $result = '';\n $availableButtons = $this->getConfigValue('availableButtons');\n if (is_countable($availableButtons) && count($availableButtons)) {\n $result = implode(\",\", $availableButtons);\n }\n\n return $result;\n }",
"protected function getClubButtons(){\r\n $buttons = $this->getClubTeleportNowButton();\r\n $buttons .= $this->getClubBecomeAFanButton();\r\n $buttons .= $this->getClubSubscribeButton();\r\n return $buttons;\r\n }",
"public function initButtons() {\r\n \t\r\n if (empty($this->columnName) || empty($this->actionButtons))\r\n return;\r\n\r\n\t $this->buttons = array();\r\n foreach ($this->actionButtons as $action)\r\n\t $this->buttons[] = $this->convertToTbButtonConfig($action);\r\n }",
"protected function getAdditionalSubButtons()\n {\n $buttons = array();\n \n foreach ($this->get_additional_links() as $link)\n {\n $buttons[] = $this->getButton($link, $link->get_url());\n }\n \n return $buttons;\n }",
"public function getGlobals()\n\t{\n\t\t$arr = array();\n\t\tforeach($this->container->getParameter('admin_lte.layout') as $name => $value)\n\t\t{\n\t\t\t$arr[$name] = $value;\n\t\t}\n\t\treturn $arr;\n\t}",
"public function buttons() {\n global $OUTPUT;\n\n $save = $OUTPUT->render_from_template('gradereport_singleview/button', [\n 'type' => 'submit',\n 'value' => get_string('save', 'gradereport_singleview'),\n ]);\n\n return array($save);\n }",
"public function getActionButtonsAttribute()\n {\n return '\n '.$this->getViewButtonAttribute(\"business_settings\", \"biller.customfields.show\").'\n '.$this->getEditButtonAttribute(\"business_settings\", \"biller.customfields.edit\").'\n '.$this->getDeleteButtonAttribute(\"business_settings\", \"biller.customfields.destroy\").'\n ';\n }"
] | [
"0.84696347",
"0.73240596",
"0.73097605",
"0.70989543",
"0.7090499",
"0.6991794",
"0.6888313",
"0.6875918",
"0.66987896",
"0.6581434",
"0.6454369",
"0.63372517",
"0.62829787",
"0.619381",
"0.6143804",
"0.61379766",
"0.60872895",
"0.6049674",
"0.60435766",
"0.5989119",
"0.5956836",
"0.58948505",
"0.5891185",
"0.58341837",
"0.58182776",
"0.5721662",
"0.5716264",
"0.57084143",
"0.5707206",
"0.56839925"
] | 0.87755567 | 0 |
These methods allow slot editing to be turned off even for people with full and appropriate privileges. Most of the time being able to edit a global slot on a nonCMS page is a good thing, especially if that's the only place the global slot appears. But sometimes, as in the case where you're editing other types of data, it's just a source of confusion to have those buttons displayed. (Suppressing editing of slots on normal CMS pages is of course a bad idea, because how else would you ever edit them?) | static public function setAllowSlotEditing($value)
{
aTools::$allowSlotEditing = $value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static public function setAllowSlotEditing($value)\n {\n self::$allowSlotEditing = $value;\n }",
"static public function standardAreaSlots()\n {\n // Raw HTML is problematic but generally obligatory in practice\n return sfConfig::get('app_a_standard_area_slots', array('aRichText', 'aVideo', 'aSlideshow', 'aSmartSlideshow', 'aFile', 'aAudio', 'aFeed', 'aButton', 'aBlog', 'aEvent', 'aRawHTML'));\n }",
"function my_disable_quick_edit( $actions = array(), $post = null ) {\n if ( isset( $actions['inline hide-if-no-js'] ) ) {\n unset( $actions['inline hide-if-no-js'] );\n }\n // Return the set of links without Quick Edit\n return $actions;\n}",
"public function use_standard_editing_ui() {\n return true;\n }",
"public function enabledInEditMode()\n\t{\n\t\treturn false;\n\t}",
"public function disable()\n {\n $this->server_item->setDisabled(true);\n $this->course_item->setDisabled(true);\n $this->clearCommandButtons();\n }",
"function bbp_admin_tools_box()\n{\n}",
"public static function set_allow_edit() {\n\t\tif ( ! defined( 'FRM_ALLOW_EDIT' ) ) {\n\t\t\tdefine( 'FRM_ALLOW_EDIT', true );\n\t\t}\n\t}",
"function sacf_hide_admin() {\n\tadd_filter('sacf/show_admin', '__return_false');\n\tadd_filter('acf/settings/show_admin', '__return_false');\n}",
"public function canEdit()\r\n {\r\n return false;\r\n }",
"public function testEditModeEnableDisable() {\n foreach ($this->getTestThemes() as $theme) {\n $this->enableTheme($theme);\n $block = $this->placeBlock('system_powered_by_block');\n foreach (['contextual_link', 'toolbar_link'] as $enable_option) {\n $this->drupalGet('user');\n $this->assertEditModeDisabled();\n switch ($enable_option) {\n // Enable Edit mode.\n case 'contextual_link':\n $this->clickContextualLink($this->getBlockSelector($block), \"Quick edit\");\n $this->waitForOffCanvasToOpen();\n $this->markTestSkipped(\"Skipped temporarily for random fails.\");\n $this->assertEditModeEnabled();\n break;\n\n case 'toolbar_link':\n $this->enableEditMode();\n break;\n }\n $this->disableEditMode();\n\n // Make another page request to ensure Edit mode is still disabled.\n $this->drupalGet('user');\n $this->assertEditModeDisabled();\n // Make sure on this page request it also re-enables and disables\n // correctly.\n $this->enableEditMode();\n $this->disableEditMode();\n }\n }\n }",
"public static function _visibility_tab() {\n\t\t/**\n\t\t * @since 2.9.0\n\t\t */\n\t\t\\do_action( 'the_seo_framework_pre_page_inpost_visibility_tab' );\n\t\t\\the_seo_framework()->get_view( 'edit/seo-settings-singular', [], 'visibility' );\n\t\t/**\n\t\t * @since 2.9.0\n\t\t */\n\t\t\\do_action( 'the_seo_framework_pro_page_inpost_visibility_tab' );\n\t}",
"function disable_admin_bar() {\n show_admin_bar(false);\n}",
"public function setSlot($slot);",
"public function setSlot($slot);",
"function disable_default_dashboard_widgets() {\n\tif(!current_user_can('administrator')) {\n\t\t// remove_meta_box('dashboard_right_now', 'dashboard', 'core'); // Right Now Widget\n\t\tremove_meta_box('dashboard_recent_comments', 'dashboard', 'core'); // Comments Widget\n\t\tremove_meta_box('dashboard_incoming_links', 'dashboard', 'core'); // Incoming Links Widget\n\t\tremove_meta_box('dashboard_plugins', 'dashboard', 'core'); // Plugins Widget\n\t\n\t\t// remove_meta_box('dashboard_quick_press', 'dashboard', 'core'); // Quick Press Widget\n\t\tremove_meta_box('dashboard_recent_drafts', 'dashboard', 'core'); // Recent Drafts Widget\n\t\tremove_meta_box('dashboard_primary', 'dashboard', 'core'); // \n\t\tremove_meta_box('dashboard_secondary', 'dashboard', 'core'); //\n\t\t\n\t\t// removing plugin dashboard boxes \n\t\tremove_meta_box('yoast_db_widget', 'dashboard', 'normal'); // Yoast's SEO Plugin Widget\n\t} \n}",
"function alterShippingEditButton() {\n return false;\n if ($this->in_special_checkout() && empty($_SESSION['paypal_ec_markflow'])) {\n return zen_href_link('ipn_main_handler.php', 'type=ec&clearSess=1', 'SSL', true,true, true);\n }\n }",
"function bbp_admin_tool_box()\n{\n}",
"public function disable()\n {\n\n $this->renderPageFile('page.disabledevelopersection');\n }",
"function remove_admin_bar() {\n return false;\n}",
"protected function hideFieldsForAddEdit()\n {\n }",
"public function hide_admin_items() {\n\t\tif ( ! current_user_can( 'add_users' ) ) {\n\t\t\t?>\n\t\t\t<style type=\"text/css\">\n\t\t\t\t.show-admin-bar { display: none; }\n\t\t\t\tinput#eddc_user_paypal.regular-text, input#eddc_user_rate.small-text { display: none; }\n\t\t\t\tinput[id*=\"email_users_accept_\"] { display: none; }\n\t\t\t\ttr.user-nickname-wrap { display: none; }\n\t\t\t</style>\n\t\t\t<?php\n\t\t}\n\t}",
"protected function hideFieldsForAddEdit()\n\t{\n\t}",
"function my_function_admin_bar(){ return false; }",
"function stackable_ajax_update_disable_blocks() {\n\t\t$nonce = isset( $_POST['nonce'] ) ? sanitize_key( $_POST['nonce'] ) : '';\n\n\t\tif ( ! wp_verify_nonce( $nonce, 'stackable_disable_blocks' ) ) {\n\t\t\twp_send_json_error( __( 'Security error, please refresh the page and try again.', STACKABLE_I18N ) );\n\t\t}\n\n\t\t$disabled_blocks = isset( $_POST['disabledBlocks'] ) ? $_POST['disabledBlocks'] : array();\n\t\tupdate_option( 'stackable_disabled_blocks', $disabled_blocks );\n\t\twp_send_json_success();\n\t}",
"function symmetri_customize_dashboard_boxes() {\n\t\tglobal $wp_meta_boxes;\n\n\t\t// Removes 'Quick Draft' from dashboard\n\t\tunset( $wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press'] );\n\n\t\t// Removes 'At a Glance' from Dashboard\n\t\tunset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);\n\n\t\t// Removes 'Wordpress News' from Dashboard\n\t\tunset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);\n\n\t\t// Adds the custom made dashboard widget 'Quick Links'\n\t\twp_add_dashboard_widget('symmetri_dashboard', 'Quick Links', 'symmetri_dashwidget', null, null);\n\t}",
"public function fillAdminSlotControls(&$controls) {\n\t\t//show the cut/copy/patse options\n\t\tif ($this->isVersionControlled && ze\\priv::check('_PRIV_EDIT_DRAFT')) {\n\t\t\t\n\t\t\t//Check whether something compatible was previously copied\n\t\t\t$copied =\n\t\t\t\t!empty($_SESSION['admin_copied_contents']['class_name'])\n\t\t\t && $_SESSION['admin_copied_contents']['class_name'] == 'zenario_banner';\n\t\t\t\n\t\t\t//If something has been entered, show the copy button\n\t\t\tif (!$this->empty) {\n\t\t\t\t$controls['actions']['copy_contents']['hidden'] = false;\n\t\t\t\t$controls['actions']['copy_contents']['onclick'] =\n\t\t\t\t\tstr_replace('list,of,allowed,modules', 'zenario_banner',\n\t\t\t\t\t\t$controls['actions']['copy_contents']['onclick']);\n\t\t\t}\n\t\t\t\n\t\t\t//Check to see if this is the most recent version and the current administrator can make changes\n\t\t\tif (ze::$cVersion == ze::$adminVersion\n\t\t\t && ze\\priv::check('_PRIV_EDIT_DRAFT', ze::$cID, ze::$cType)) {\n\t\t\t\t\n\t\t\t\tif (!$this->empty) {\n\t\t\t\t\t$controls['actions']['cut_contents']['hidden'] = false;\n\t\t\t\t\t$controls['actions']['cut_contents']['onclick'] =\n\t\t\t\t\t\tstr_replace('list,of,allowed,modules', 'zenario_banner',\n\t\t\t\t\t\t\t$controls['actions']['cut_contents']['onclick']);\n\t\t\t\t}\n\t\t\t\n\t\t\t\t//If there is no contents here and something was copied, show the paste option\n\t\t\t\tif ($this->empty && $copied) {\n\t\t\t\t\t$controls['actions']['paste_contents']['hidden'] = false;\n\t\t\t\t}\n\t\t\t\n\t\t\t\t//If there is contents here and something was copied, show the swap and overwrite options\n\t\t\t\tif (!$this->empty && $copied) {\n\t\t\t\t\t$controls['actions']['overwrite_contents']['hidden'] = false;\n\t\t\t\t\t$controls['actions']['swap_contents']['hidden'] = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (isset($controls['actions']['settings'])) {\n\t\t\t\t$controls['actions']['banner_edit_title'] = [\n\t\t\t\t\t'ord' => 1.1,\n\t\t\t\t\t'label' => ze\\admin::phrase('Edit title & HTML (inline)'),\n\t\t\t\t\t'page_modes' => $controls['actions']['settings']['page_modes'],\n\t\t\t\t\t'onclick' => htmlspecialchars_decode($this->editTitleInlineOnClick())];\n\t\t\t\t$controls['actions']['settings']['label'] = ze\\admin::phrase('Edit contents (admin box)');\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"public function siteorigin_panels_disable_compat( ) {\n\t\t\tremove_action( 'admin_init', 'siteorigin_panels_black_studio_tinymce_admin_init' );\n\t\t\tremove_action( 'admin_enqueue_scripts', 'siteorigin_panels_black_studio_tinymce_admin_enqueue', 15 );\n\t\t}",
"function GridEditMode() {\n\t\t$_SESSION[EW_SESSION_INLINE_MODE] = \"gridedit\"; // Enable grid edit\n\t}",
"public function isEditable()\n {\n return Mage::getSingleton('admin/session')->isAllowed(GlobalThinking_Inventory_Model_Stock_Item::ACL_UPDATE);\n }"
] | [
"0.672978",
"0.5986075",
"0.5797496",
"0.5730098",
"0.5697575",
"0.56744766",
"0.55483085",
"0.5530754",
"0.5488595",
"0.5472747",
"0.5461625",
"0.5455451",
"0.5419038",
"0.53962874",
"0.53962874",
"0.53927225",
"0.53881234",
"0.5362268",
"0.5361791",
"0.53531337",
"0.5341291",
"0.53390795",
"0.53389645",
"0.53376555",
"0.5312575",
"0.5302241",
"0.5289584",
"0.52834934",
"0.5283003",
"0.5273748"
] | 0.6750438 | 0 |
Returns a regexp fragment that matches a valid slug in a UTF8aware way. Does not reject slugs with consecutive dashes or slashes. DOES accept the % sign because URLs generated by url_for arrive with the UTF8 characters %encoded. You should anchor it with ^ and $ if your goal is to match one slug as the whole string | static public function getSlugRegexpFragment($allowSlashes = false)
{
// Looks like the 'u' modifier is purely for allowing UTF8 in the pattern *itself*. So we
// shouldn't need it to achieve
if (function_exists('mb_strtolower'))
{
// UTF-8 capable replacement for \W. Works fine for English and also for Greek, etc.
// ALlow % as well to work with preescaped UTF8, which is common in URLs
$alnum = '\p{L}\p{N}_%';
$modifier = '';
}
else
{
$alnum = '\w';
$modifier = '';
}
if ($allowSlashes)
{
$alnum .= '\/';
}
$regexp = "[$alnum\-]+";
return $regexp;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function bbp_sanitize_slug($slug = '')\n{\n}",
"function is_slug( $slug ){\n\treturn preg_match( '\"^[a-zA-Z0-9_-]*$\"', $slug ) === 1;\n}",
"public function slug();",
"public function slug();",
"function php_slug($string) \n { $slug = preg_replace('/[^a-z0-9-]+/', '-', trim(strtolower($string)));return $slug; }",
"function url_slug($str)\r\n{\t\r\n\t#convert case to lower\r\n\t$str = strtolower($str);\r\n\t#remove special characters\r\n\t$str = preg_replace('/[^a-zA-Z0-9]/i',' ', $str);\r\n\t#remove white space characters from both side\r\n\t$str = trim($str);\r\n\t#remove double or more space repeats between words chunk\r\n\t$str = preg_replace('/\\s+/', ' ', $str);\r\n\t#fill spaces with hyphens\r\n\t$str = preg_replace('/\\s+/', '-', $str);\r\n\treturn $str;\r\n}",
"function wp_ozh_yourls_sanitize_slug( $slug ) {\r\n\t$service = wp_ozh_yourls_service();\r\n\t\r\n\tswitch ( $service ) {\r\n\t\tcase 'yourls-local' :\r\n\t\t\t// Bootstrap YOURLS and use its function to sanitize\r\n\t\t\t$include = wp_ozh_yourls_find_yourls_loader();\r\n\t\t\tif ( $include ) {\r\n\t\t\t\trequire_once( $include );\r\n\t\t\t\t$sanitized = yourls_sanitize_string( $slug );\r\n\t\t\t\t\r\n\t\t\t\t// Putting the break here means that we can use the fallback\r\n\t\t\t\t// method when YOURLS cannot be found or loaded\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\r\n\t\tdefault :\r\n\t\t\t// On remote requests, we have to make a guess about encoding. 36 is\r\n\t\t\t// probably more common. This method is basically torn right out of YOURLS\r\n\t\t\t$charset = '0123456789abcdefghijklmnopqrstuvwxyz';\r\n\t\t\t$pattern = preg_quote( $charset, '-' );\r\n\t\t\t$sanitized = substr(preg_replace('![^'.$pattern.']!', '', $slug ), 0, 199);\r\n\t\t\t\r\n\t\t\tbreak;\r\n\t}\r\n\t\r\n\treturn apply_filters( 'wp_ozh_yourls_sanitize_slug', $sanitized, $slug, $service );\r\n}",
"public function slug($slug);",
"function slug($url){\n\n $url = strtolower($url);\n\n $url = strip_tags($url);\n\n $url = stripslashes($url);\n\n $url = html_entity_decode($url);\n\n # Remove quotes (can't, etc.)\n\n $url = str_replace('\\'', '', $url);\n\n # Replace non-alpha numeric with hyphens\n\n $match = '/[^a-z0-9]+/';\n\n $replace = '-';\n\n $url = preg_replace($match, $replace, $url);\n\n $url = trim($url, '-');\n\n return $url;\n\n}",
"function url_slug ($url) {\n $url = replaceAccents($url);\n $url = cano($url);\n return $url;\n\n}",
"function createSlug($string)\n{\n if (checkUnicode($string)) {\n $slug = str_replace(' ', '-', $string);\n } else {\n $slug = preg_replace('/[^A-Za-z0-9-]+/', '-', strtolower($string));\n }\n return $slug;\n}",
"public function slugify($string);",
"function forSlug($slug);",
"function url_slug($str, $options = array()) {\n // Make sure string is in UTF-8 and strip invalid UTF-8 characters\n $str = mb_convert_encoding((string)$str, 'UTF-8', mb_list_encodings());\n\n $defaults = array(\n 'delimiter' => '-',\n 'limit' => null,\n 'lowercase' => true,\n 'replacements' => array(),\n 'transliterate' => true,\n );\n\n // Merge options\n $options = array_merge($defaults, $options);\n\n $char_map = array(\n // Latin\n 'À' => 'A', 'Á' => 'A', 'Â' => 'A', 'Ã' => 'A', 'Ä' => 'A', 'Å' => 'A', 'Æ' => 'AE', 'Ç' => 'C',\n 'È' => 'E', 'É' => 'E', 'Ê' => 'E', 'Ë' => 'E', 'Ì' => 'I', 'Í' => 'I', 'Î' => 'I', 'Ï' => 'I',\n 'Ð' => 'D', 'Ñ' => 'N', 'Ò' => 'O', 'Ó' => 'O', 'Ô' => 'O', 'Õ' => 'O', 'Ö' => 'O', 'Ő' => 'O',\n 'Ø' => 'O', 'Ù' => 'U', 'Ú' => 'U', 'Û' => 'U', 'Ü' => 'U', 'Ű' => 'U', 'Ý' => 'Y', 'Þ' => 'TH',\n 'ß' => 'ss',\n 'à' => 'a', 'á' => 'a', 'â' => 'a', 'ã' => 'a', 'ä' => 'a', 'å' => 'a', 'æ' => 'ae', 'ç' => 'c',\n 'è' => 'e', 'é' => 'e', 'ê' => 'e', 'ë' => 'e', 'ì' => 'i', 'í' => 'i', 'î' => 'i', 'ï' => 'i',\n 'ð' => 'd', 'ñ' => 'n', 'ò' => 'o', 'ó' => 'o', 'ô' => 'o', 'õ' => 'o', 'ö' => 'o', 'ő' => 'o',\n 'ø' => 'o', 'ù' => 'u', 'ú' => 'u', 'û' => 'u', 'ü' => 'u', 'ű' => 'u', 'ý' => 'y', 'þ' => 'th',\n 'ÿ' => 'y',\n\n // Latin symbols\n '©' => '(c)',\n\n // Greek\n 'Α' => 'A', 'Β' => 'B', 'Γ' => 'G', 'Δ' => 'D', 'Ε' => 'E', 'Ζ' => 'Z', 'Η' => 'H', 'Θ' => '8',\n 'Ι' => 'I', 'Κ' => 'K', 'Λ' => 'L', 'Μ' => 'M', 'Ν' => 'N', 'Ξ' => '3', 'Ο' => 'O', 'Π' => 'P',\n 'Ρ' => 'R', 'Σ' => 'S', 'Τ' => 'T', 'Υ' => 'Y', 'Φ' => 'F', 'Χ' => 'X', 'Ψ' => 'PS', 'Ω' => 'W',\n 'Ά' => 'A', 'Έ' => 'E', 'Ί' => 'I', 'Ό' => 'O', 'Ύ' => 'Y', 'Ή' => 'H', 'Ώ' => 'W', 'Ϊ' => 'I',\n 'Ϋ' => 'Y',\n 'α' => 'a', 'β' => 'b', 'γ' => 'g', 'δ' => 'd', 'ε' => 'e', 'ζ' => 'z', 'η' => 'h', 'θ' => '8',\n 'ι' => 'i', 'κ' => 'k', 'λ' => 'l', 'μ' => 'm', 'ν' => 'n', 'ξ' => '3', 'ο' => 'o', 'π' => 'p',\n 'ρ' => 'r', 'σ' => 's', 'τ' => 't', 'υ' => 'y', 'φ' => 'f', 'χ' => 'x', 'ψ' => 'ps', 'ω' => 'w',\n 'ά' => 'a', 'έ' => 'e', 'ί' => 'i', 'ό' => 'o', 'ύ' => 'y', 'ή' => 'h', 'ώ' => 'w', 'ς' => 's',\n 'ϊ' => 'i', 'ΰ' => 'y', 'ϋ' => 'y', 'ΐ' => 'i',\n\n // Turkish\n 'Ş' => 'S', 'İ' => 'I', 'Ç' => 'C', 'Ü' => 'U', 'Ö' => 'O', 'Ğ' => 'G',\n 'ş' => 's', 'ı' => 'i', 'ç' => 'c', 'ü' => 'u', 'ö' => 'o', 'ğ' => 'g',\n\n // Russian\n 'А' => 'A', 'Б' => 'B', 'В' => 'V', 'Г' => 'G', 'Д' => 'D', 'Е' => 'E', 'Ё' => 'Yo', 'Ж' => 'Zh',\n 'З' => 'Z', 'И' => 'I', 'Й' => 'J', 'К' => 'K', 'Л' => 'L', 'М' => 'M', 'Н' => 'N', 'О' => 'O',\n 'П' => 'P', 'Р' => 'R', 'С' => 'S', 'Т' => 'T', 'У' => 'U', 'Ф' => 'F', 'Х' => 'H', 'Ц' => 'C',\n 'Ч' => 'Ch', 'Ш' => 'Sh', 'Щ' => 'Sh', 'Ъ' => '', 'Ы' => 'Y', 'Ь' => '', 'Э' => 'E', 'Ю' => 'Yu',\n 'Я' => 'Ya',\n 'а' => 'a', 'б' => 'b', 'в' => 'v', 'г' => 'g', 'д' => 'd', 'е' => 'e', 'ё' => 'yo', 'ж' => 'zh',\n 'з' => 'z', 'и' => 'i', 'й' => 'j', 'к' => 'k', 'л' => 'l', 'м' => 'm', 'н' => 'n', 'о' => 'o',\n 'п' => 'p', 'р' => 'r', 'с' => 's', 'т' => 't', 'у' => 'u', 'ф' => 'f', 'х' => 'h', 'ц' => 'c',\n 'ч' => 'ch', 'ш' => 'sh', 'щ' => 'sh', 'ъ' => '', 'ы' => 'y', 'ь' => '', 'э' => 'e', 'ю' => 'yu',\n 'я' => 'ya',\n\n // Ukrainian\n 'Є' => 'Ye', 'І' => 'I', 'Ї' => 'Yi', 'Ґ' => 'G',\n 'є' => 'ye', 'і' => 'i', 'ї' => 'yi', 'ґ' => 'g',\n\n // Czech\n 'Č' => 'C', 'Ď' => 'D', 'Ě' => 'E', 'Ň' => 'N', 'Ř' => 'R', 'Š' => 'S', 'Ť' => 'T', 'Ů' => 'U',\n 'Ž' => 'Z',\n 'č' => 'c', 'ď' => 'd', 'ě' => 'e', 'ň' => 'n', 'ř' => 'r', 'š' => 's', 'ť' => 't', 'ů' => 'u',\n 'ž' => 'z',\n\n // Polish\n 'Ą' => 'A', 'Ć' => 'C', 'Ę' => 'e', 'Ł' => 'L', 'Ń' => 'N', 'Ó' => 'o', 'Ś' => 'S', 'Ź' => 'Z',\n 'Ż' => 'Z',\n 'ą' => 'a', 'ć' => 'c', 'ę' => 'e', 'ł' => 'l', 'ń' => 'n', 'ó' => 'o', 'ś' => 's', 'ź' => 'z',\n 'ż' => 'z',\n\n // Latvian\n 'Ā' => 'A', 'Č' => 'C', 'Ē' => 'E', 'Ģ' => 'G', 'Ī' => 'i', 'Ķ' => 'k', 'Ļ' => 'L', 'Ņ' => 'N',\n 'Š' => 'S', 'Ū' => 'u', 'Ž' => 'Z',\n 'ā' => 'a', 'č' => 'c', 'ē' => 'e', 'ģ' => 'g', 'ī' => 'i', 'ķ' => 'k', 'ļ' => 'l', 'ņ' => 'n',\n 'š' => 's', 'ū' => 'u', 'ž' => 'z'\n );\n\n // Make custom replacements\n $str = preg_replace(array_keys($options['replacements']), $options['replacements'], $str);\n\n // Transliterate characters to ASCII\n if ($options['transliterate']) {\n $str = str_replace(array_keys($char_map), $char_map, $str);\n }\n\n // Replace non-alphanumeric characters with our delimiter\n $str = preg_replace('/[^\\p{L}\\p{Nd}]+/u', $options['delimiter'], $str);\n\n // Remove duplicate delimiters\n $str = preg_replace('/(' . preg_quote($options['delimiter'], '/') . '){2,}/', '$1', $str);\n\n // Truncate slug to max. characters\n $str = mb_substr($str, 0, ($options['limit'] ? $options['limit'] : mb_strlen($str, 'UTF-8')), 'UTF-8');\n\n // Remove delimiter from ends\n $str = trim($str, $options['delimiter']);\n\n return $options['lowercase'] ? mb_strtolower($str, 'UTF-8') : $str;\n }",
"function slug($cadena, $separador = '-'){\n $cadena = trim($cadena);\n \n //limpiamos caracteres los latinos\n $cadena = caracteres_latinos($cadena); \n \n //pasamos a minúscula la cadena\n $cadena = strtolower($cadena); \n \n //limpiamos\n $cadena = preg_replace('/[^a-z0-9-]/', $separador, $cadena);\n $cadena = preg_replace('/-+/', \"-\", $cadena);\n return $cadena;\n}",
"private function _encodeSlug($slug) {\r\n\t\treturn str_replace($this->_specSymbols['from'], $this->_specSymbols['to'], $slug);\r\n\t}",
"abstract public function sluggable(): string;",
"public static function slug($title)\n {\n // Convert to ASCII\n foreach (static::charsArray() as $key => $value) {\n $title = str_replace($value, $key, $title);\n }\n\n // Remove unsupported characters\n $title = preg_replace('/[^\\x20-\\x7E]/u', '', $title);\n\n $separator = '_';\n // Convert all dashes into underscores\n $title = preg_replace('![' . preg_quote('-') . ']+!u', $separator, $title);\n\n // Remove all characters that are not valid in a URL: \n // $-_.+!*'(), separator, letters, numbers, or whitespace.\n $title = preg_replace('![^-' . preg_quote($separator) . '\\!\\'\\(\\),\\.\\+\\*\\$\\pL\\pN\\s]+!u', '', $title);\n\n // Replace all separator characters and whitespace by a single separator\n $title = preg_replace('![' . preg_quote($separator) . '\\s]+!u', $separator, $title);\n\n return trim($title, $separator);\n }",
"public static function getSlug(): string\n {\n return 'regex';\n }",
"function sluggify($url)\n{\n $url = strtolower($url);\n $url = strip_tags($url);\n $url = stripslashes($url);\n $url = html_entity_decode($url);\n\n # Remove quotes (can't, etc.)\n $url = str_replace('\\'', '', $url);\n\n # Replace non-alpha numeric with hyphens\n $match = '/[^a-z0-9]+/';\n $replace = '-';\n $url = preg_replace($match, $replace, $url);\n\n $url = trim($url, '-');\n\n return $url;\n}",
"function CreateSlug($string) \n{ \n $table = array(\n 'Š'=>'S', 'š'=>'s', 'Đ'=>'Dj', 'đ'=>'dj', 'Ž'=>'Z', 'ž'=>'z', 'Č'=>'C', 'č'=>'c', 'Ć'=>'C', 'ć'=>'c',\n 'À'=>'A', 'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A', 'Å'=>'A', 'Æ'=>'A', 'Ç'=>'C', 'È'=>'E', 'É'=>'E',\n 'Ê'=>'E', 'Ë'=>'E', 'Ì'=>'I', 'Í'=>'I', 'Î'=>'I', 'Ï'=>'I', 'Ñ'=>'N', 'Ò'=>'O', 'Ó'=>'O', 'Ô'=>'O',\n 'Õ'=>'O', 'Ö'=>'O', 'Ø'=>'O', 'Ù'=>'U', 'Ú'=>'U', 'Û'=>'U', 'Ü'=>'U', 'Ý'=>'Y', 'Þ'=>'B', 'ß'=>'Ss',\n 'à'=>'a', 'á'=>'a', 'â'=>'a', 'ã'=>'a', 'ä'=>'a', 'å'=>'a', 'æ'=>'a', 'ç'=>'c', 'è'=>'e', 'é'=>'e',\n 'ê'=>'e', 'ë'=>'e', 'ì'=>'i', 'í'=>'i', 'î'=>'i', 'ï'=>'i', 'ð'=>'o', 'ñ'=>'n', 'ò'=>'o', 'ó'=>'o',\n 'ô'=>'o', 'õ'=>'o', 'ö'=>'o', 'ø'=>'o', 'ù'=>'u', 'ú'=>'u', 'û'=>'u', 'ý'=>'y', 'ý'=>'y', 'þ'=>'b',\n 'ÿ'=>'y', 'Ŕ'=>'R', 'ŕ'=>'r', '/' => '-', ' ' => '-'\n );\n // -- Remove duplicated spaces\n $stripped = preg_replace(array('/\\s{2,}/', '/[\\t\\n]/'), ' ', $string);\n // -- Returns the slug\n return strtolower(strtr($string, $table));\n}",
"function slug($text)\n{\n $text = preg_replace('~[^\\\\pL\\d]+~u', '-', $text);\n // trim\n $text = trim($text, '-');\n // transliterate\n $text = iconv('utf-8', 'us-ascii//TRANSLIT', $text);\n // lowercase\n $text = strtolower($text);\n // remove unwanted characters\n $text = preg_replace('~[^-\\w]+~', '', $text);\n if (empty($text))\n {\n return 'n-a';\n }\n return $text.'.html';\n}",
"function slug($value){\n $value = preg_replace('![^'.preg_quote('_').'\\pL\\pN\\s]+!u', '', mb_strtolower($value));\n //replace underscore and whitespace with a dash -\n $value = preg_replace('!['.preg_quote('-').'\\s]+!u', '-', $value);\n //remove whitespace\n return trim($value, '-');\n}",
"public function get_slug($txt){\n $badword = array('-','"','!','@','#','$','%','^','&','*','(',')','_','+','{','}','|',':','\"','<','>','?','[',']','\\\\',';',\"'\",',','.','/','*','+','~','`','=');\n $slug = $txt;\n $slug = str_replace($badword, \"-\",$slug );\n $slug = str_replace(\" \",\"-\",$slug );\n\n return $slug;\n }",
"public function getSlug()\n {\n $text = preg_replace('~[^\\\\pL\\d]+~u', '-', $this->getTitle());\n $text = trim($text, '-');\n $text = iconv('utf-8', 'us-ascii//TRANSLIT', $text);\n $text = strtolower($text);\n $text = preg_replace('~[^-\\w]+~', '', $text);\n\n if (empty($text)) {\n return 'n-a';\n }\n\n return $text;\n }",
"function slug($str, $dashes = true)\r\n\t{\r\n\t\t$find = array(\r\n\t\t\t'/[ \\/\\\\\\+\\=]/',\r\n\t\t\t'/_+/',\r\n\t\t\t'/[^a-zA-Z0-9\\_\\-]/'\r\n\t\t);\r\n\t\t\r\n\t\t$replace = array(\r\n\t\t\t'_',\r\n\t\t\t'_',\r\n\t\t\t''\r\n\t\t);\r\n\t\t\r\n\t\t$slug = strtolower(preg_replace($find,$replace,$str));\r\n\t\t\r\n\t\tif(!$dashes) str_replace('-','_',$slug);\r\n\t\t\r\n\t\treturn $slug;\r\n\t}",
"function url_slug($str, $options = array()) {\n\t$str = mb_convert_encoding((string)$str, 'UTF-8', mb_list_encodings());\n\t\n\t$defaults = array(\n\t\t'delimiter' => '-',\n\t\t'limit' => null,\n\t\t'lowercase' => true,\n\t\t'replacements' => array(),\n\t\t'transliterate' => false,\n\t);\n\t\n\t// Merge options\n\t$options = array_merge($defaults, $options);\n\t\n\t$char_map = array(\n\t\t// Latin\n\t\t'À' => 'A', 'Á' => 'A', 'Â' => 'A', 'Ã' => 'A', 'Ä' => 'A', 'Å' => 'A', 'Æ' => 'AE', 'Ç' => 'C', \n\t\t'È' => 'E', 'É' => 'E', 'Ê' => 'E', 'Ë' => 'E', 'Ì' => 'I', 'Í' => 'I', 'Î' => 'I', 'Ï' => 'I', \n\t\t'Ð' => 'D', 'Ñ' => 'N', 'Ò' => 'O', 'Ó' => 'O', 'Ô' => 'O', 'Õ' => 'O', 'Ö' => 'O', 'Ő' => 'O', \n\t\t'Ø' => 'O', 'Ù' => 'U', 'Ú' => 'U', 'Û' => 'U', 'Ü' => 'U', 'Ű' => 'U', 'Ý' => 'Y', 'Þ' => 'TH', \n\t\t'ß' => 'ss', \n\t\t'à' => 'a', 'á' => 'a', 'â' => 'a', 'ã' => 'a', 'ä' => 'a', 'å' => 'a', 'æ' => 'ae', 'ç' => 'c', \n\t\t'è' => 'e', 'é' => 'e', 'ê' => 'e', 'ë' => 'e', 'ì' => 'i', 'í' => 'i', 'î' => 'i', 'ï' => 'i', \n\t\t'ð' => 'd', 'ñ' => 'n', 'ò' => 'o', 'ó' => 'o', 'ô' => 'o', 'õ' => 'o', 'ö' => 'o', 'ő' => 'o', \n\t\t'ø' => 'o', 'ù' => 'u', 'ú' => 'u', 'û' => 'u', 'ü' => 'u', 'ű' => 'u', 'ý' => 'y', 'þ' => 'th', \n\t\t'ÿ' => 'y',\n\t\t// Latin symbols\n\t\t'©' => '(c)',\n\t\t// Greek\n\t\t'Α' => 'A', 'Β' => 'B', 'Γ' => 'G', 'Δ' => 'D', 'Ε' => 'E', 'Ζ' => 'Z', 'Η' => 'H', 'Θ' => '8',\n\t\t'Ι' => 'I', 'Κ' => 'K', 'Λ' => 'L', 'Μ' => 'M', 'Ν' => 'N', 'Ξ' => '3', 'Ο' => 'O', 'Π' => 'P',\n\t\t'Ρ' => 'R', 'Σ' => 'S', 'Τ' => 'T', 'Υ' => 'Y', 'Φ' => 'F', 'Χ' => 'X', 'Ψ' => 'PS', 'Ω' => 'W',\n\t\t'Ά' => 'A', 'Έ' => 'E', 'Ί' => 'I', 'Ό' => 'O', 'Ύ' => 'Y', 'Ή' => 'H', 'Ώ' => 'W', 'Ϊ' => 'I',\n\t\t'Ϋ' => 'Y',\n\t\t'α' => 'a', 'β' => 'b', 'γ' => 'g', 'δ' => 'd', 'ε' => 'e', 'ζ' => 'z', 'η' => 'h', 'θ' => '8',\n\t\t'ι' => 'i', 'κ' => 'k', 'λ' => 'l', 'μ' => 'm', 'ν' => 'n', 'ξ' => '3', 'ο' => 'o', 'π' => 'p',\n\t\t'ρ' => 'r', 'σ' => 's', 'τ' => 't', 'υ' => 'y', 'φ' => 'f', 'χ' => 'x', 'ψ' => 'ps', 'ω' => 'w',\n\t\t'ά' => 'a', 'έ' => 'e', 'ί' => 'i', 'ό' => 'o', 'ύ' => 'y', 'ή' => 'h', 'ώ' => 'w', 'ς' => 's',\n\t\t'ϊ' => 'i', 'ΰ' => 'y', 'ϋ' => 'y', 'ΐ' => 'i',\n\t\t// Turkish\n\t\t'Ş' => 'S', 'İ' => 'I', 'Ç' => 'C', 'Ü' => 'U', 'Ö' => 'O', 'Ğ' => 'G',\n\t\t'ş' => 's', 'ı' => 'i', 'ç' => 'c', 'ü' => 'u', 'ö' => 'o', 'ğ' => 'g', \n\t\t// Russian\n\t\t'А' => 'A', 'Б' => 'B', 'В' => 'V', 'Г' => 'G', 'Д' => 'D', 'Е' => 'E', 'Ё' => 'Yo', 'Ж' => 'Zh',\n\t\t'З' => 'Z', 'И' => 'I', 'Й' => 'J', 'К' => 'K', 'Л' => 'L', 'М' => 'M', 'Н' => 'N', 'О' => 'O',\n\t\t'П' => 'P', 'Р' => 'R', 'С' => 'S', 'Т' => 'T', 'У' => 'U', 'Ф' => 'F', 'Х' => 'H', 'Ц' => 'C',\n\t\t'Ч' => 'Ch', 'Ш' => 'Sh', 'Щ' => 'Sh', 'Ъ' => '', 'Ы' => 'Y', 'Ь' => '', 'Э' => 'E', 'Ю' => 'Yu',\n\t\t'Я' => 'Ya',\n\t\t'а' => 'a', 'б' => 'b', 'в' => 'v', 'г' => 'g', 'д' => 'd', 'е' => 'e', 'ё' => 'yo', 'ж' => 'zh',\n\t\t'з' => 'z', 'и' => 'i', 'й' => 'j', 'к' => 'k', 'л' => 'l', 'м' => 'm', 'н' => 'n', 'о' => 'o',\n\t\t'п' => 'p', 'р' => 'r', 'с' => 's', 'т' => 't', 'у' => 'u', 'ф' => 'f', 'х' => 'h', 'ц' => 'c',\n\t\t'ч' => 'ch', 'ш' => 'sh', 'щ' => 'sh', 'ъ' => '', 'ы' => 'y', 'ь' => '', 'э' => 'e', 'ю' => 'yu',\n\t\t'я' => 'ya',\n\t\t// Ukrainian\n\t\t'Є' => 'Ye', 'І' => 'I', 'Ї' => 'Yi', 'Ґ' => 'G',\n\t\t'є' => 'ye', 'і' => 'i', 'ї' => 'yi', 'ґ' => 'g',\n\t\t// Czech\n\t\t'Č' => 'C', 'Ď' => 'D', 'Ě' => 'E', 'Ň' => 'N', 'Ř' => 'R', 'Š' => 'S', 'Ť' => 'T', 'Ů' => 'U', \n\t\t'Ž' => 'Z', \n\t\t'č' => 'c', 'ď' => 'd', 'ě' => 'e', 'ň' => 'n', 'ř' => 'r', 'š' => 's', 'ť' => 't', 'ů' => 'u',\n\t\t'ž' => 'z', \n\t\t// Polish\n\t\t'Ą' => 'A', 'Ć' => 'C', 'Ę' => 'e', 'Ł' => 'L', 'Ń' => 'N', 'Ó' => 'o', 'Ś' => 'S', 'Ź' => 'Z', \n\t\t'Ż' => 'Z', \n\t\t'ą' => 'a', 'ć' => 'c', 'ę' => 'e', 'ł' => 'l', 'ń' => 'n', 'ó' => 'o', 'ś' => 's', 'ź' => 'z',\n\t\t'ż' => 'z',\n\t\t// Latvian\n\t\t'Ā' => 'A', 'Č' => 'C', 'Ē' => 'E', 'Ģ' => 'G', 'Ī' => 'i', 'Ķ' => 'k', 'Ļ' => 'L', 'Ņ' => 'N', \n\t\t'Š' => 'S', 'Ū' => 'u', 'Ž' => 'Z',\n\t\t'ā' => 'a', 'č' => 'c', 'ē' => 'e', 'ģ' => 'g', 'ī' => 'i', 'ķ' => 'k', 'ļ' => 'l', 'ņ' => 'n',\n\t\t'š' => 's', 'ū' => 'u', 'ž' => 'z'\n\t);\n\t\n\t// Make custom replacements\n\t$str = preg_replace(array_keys($options['replacements']), $options['replacements'], $str);\n\t\n\t// Transliterate characters to ASCII\n\tif ($options['transliterate']) {\n\t\t$str = str_replace(array_keys($char_map), $char_map, $str);\n\t}\n\t\n\t// Replace non-alphanumeric characters with our delimiter\n\t$str = preg_replace('/[^\\p{L}\\p{Nd}]+/u', $options['delimiter'], $str);\n\t\n\t// Remove duplicate delimiters\n\t$str = preg_replace('/(' . preg_quote($options['delimiter'], '/') . '){2,}/', '$1', $str);\n\t\n\t// Truncate slug to max. characters\n\t$str = mb_substr($str, 0, ($options['limit'] ? $options['limit'] : mb_strlen($str, 'UTF-8')), 'UTF-8');\n\t\n\t// Remove delimiter from ends\n\t$str = trim($str, $options['delimiter']);\n\t\n\treturn $options['lowercase'] ? mb_strtolower($str, 'UTF-8') : $str;\n}",
"public static function makeSlug($str)\n {\n\n $str = Tools::safeString($str, false, \" /_-+\");\n\n $str = preg_replace(\"/[ \\/_\\-+.]/i\", \"-\", $str);\n $str = strtolower(preg_replace(\"/[^a-zA-Z0-9_-]/i\", \"\", $str));\n $str = preg_replace(\"/[-]+/i\", \"-\", $str);\n\n $str = substr($str,0,128); // 128 chars ought to be long enough.\n\n // Make sure the URI isn't numeric. We can't have that, because it'll get\n // confused with the ids.\n if (is_numeric($str)) {\n $str = \"c-\".$str;\n }\n\n return $str;\n\n }",
"function as_slug_this($content) {\n\t\treturn preg_replace(\"/-$/\",\"\",preg_replace('/[^a-z0-9]+/i', \"-\", strtolower($content)));\n\t}",
"function as_slug_this($content) {\n\t\treturn preg_replace(\"/-$/\",\"\",preg_replace('/[^a-z0-9]+/i', \"-\", strtolower($content)));\n\t}"
] | [
"0.6068561",
"0.5910022",
"0.58633804",
"0.58633804",
"0.5854449",
"0.5793449",
"0.57829595",
"0.5772465",
"0.5766499",
"0.57493806",
"0.5724494",
"0.5710642",
"0.57003456",
"0.5669613",
"0.56441283",
"0.5617288",
"0.5614193",
"0.5598954",
"0.55935293",
"0.5586229",
"0.5582717",
"0.55607975",
"0.5557416",
"0.55550325",
"0.5552495",
"0.5550327",
"0.5537179",
"0.5524513",
"0.5522074",
"0.5522074"
] | 0.65429467 | 0 |
UTF8 where available. If your UTF8 gets munged make sure your PHP has the mbstring extension. allowSlashes will allow / but will reduce duplicate / and remove any / at the end. Everything that isn't a letter or a number (or a slash, when allowed) is converted to a . Consecutive 's are reduced and leading and trailing 's are removed $betweenWords must not contain characters that have special meaning in a regexp. Usually it is (the default) or ' ' | static public function slugify($path, $allowSlashes = false, $allowUnderscores = true, $betweenWords = '-')
{
// This is the inverse of the method above
if (function_exists('mb_strtolower'))
{
// UTF-8 capable replacement for \W. Works fine for English and also for Greek, etc.
// ... Except when PCRE is built without unicode properties and PHP can't tell! We'll
// put that in servercheck.php
$alnum = '\p{L}\p{N}' . ($allowUnderscores ? '_' : '');
$modifier = 'u';
}
else
{
$alnum = $allowUnderscores ? '\w' : '[A-Za-z0-9]';
$modifier = '';
}
if ($allowSlashes)
{
$alnum .= '\/';
}
// Removing - here expands flexibility and shouldn't hurt because it's the replacement anyway
$regexp = "/[^$alnum]+/$modifier";
$path = aString::strtolower(preg_replace($regexp, $betweenWords, $path));
if ($allowSlashes)
{
// No multiple consecutive /
$path = preg_replace("/\/+/$modifier", "/", $path);
// No trailing / unless it's the homepage
if ($path !== '/')
{
$path = preg_replace("/\/$/$modifier", '', $path);
}
}
// No consecutive dashes
$path = preg_replace("/$betweenWords+/$modifier", $betweenWords, $path);
// Leading and trailing dashes are silly. This has the effect of trim()
// among other sensible things
$path = preg_replace("/^-*(.*?)-*$/$modifier", '$1', $path);
return $path;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function unknownlib_text_operation_clean_text($text,$minimum_word_length=4,$minimum_string_length=15,$maximum_string_length=64)\n{\n\t$text=unknownlib_text_operation_lower_case($text);\n\n\t$text=str_replace('â','a',str_replace('à','a',$text));\n\t$text=str_replace('ã','a',str_replace('á','a',str_replace('ã','a',str_replace('ä','a',$text))));\n\n\t$text=str_replace('ç','c',$text);\n\n\t$text=str_replace('é','e',str_replace('è','e',str_replace('ê','e',str_replace('ë','e',$text))));\n\n\t$text=str_replace('ì','i',str_replace('í','i',str_replace('î','i',str_replace('ï','i',$text))));\n\n\t$text=str_replace('ñ','n',$text);\n\t\n\t$text=str_replace('õ','o',str_replace('ö','o',str_replace('ó','o',str_replace('ô','o',$text))));\n\t$text=str_replace('ô','o',str_replace('ò','o',$text));\n\t\n\t$text=str_replace('û','u',str_replace('ü','u',str_replace('ú','u',str_replace('ù','u',$text))));\n\t\n\t$text=str_replace('ý','y',str_replace('ÿ','y',$text));\n\t\n\tif(strlen($text)>$maximum_string_length)\n\t\t$text=substr($text,0,$maximum_string_length);\n\t$text=preg_replace('#([0-9]+)(\\.|-| )+#','$1 ',$text);\n\t$text=preg_replace('#[^a-zA-Z0-9_-]+#',' ',$text);\n\t$text=preg_replace('# +#',' ',$text);\n\tif($minimum_word_length>2)\n\t{\n\t\t$a=$minimum_word_length-1;\n\t\tdo\n\t\t{\n\t\t\t$text_temp=preg_replace('#\\b[a-zA-Z_-]{1,'.$a.'}\\b#',' ',$text);\n\t\t\t$text_temp=preg_replace('# +#',' ',$text_temp);\n\t\t\t$text_temp=preg_replace('# +$#','',$text_temp);\n\t\t\t$text_temp=preg_replace('#^ +#','',$text_temp);\n\t\t\t$a--;\n\t\t}\n\t\twhile(strlen($text_temp)<=$minimum_string_length && $a>1);\n\t\tif(strlen($text_temp)>$minimum_string_length && $a>1)\n\t\t\t$text=$text_temp;\n\t}\n\t$text=preg_replace('# +#',' ',$text);\n\t$text=preg_replace('# +$#','',$text);\n\t$text=preg_replace('#^ +#','',$text);\n\treturn $text;\n}",
"function cleanSearchWords($words) {\n\t\t$words = trim($words);\n\t\tif(!$words) {\n\t\t\t$this->setError(_('Error') . _(': ') . _('Please enter a term to search for'));\n\t\t\treturn;\n\t\t}\n\n\t\t$words = preg_replace(\"/[ \\t]+/\", ' ', $words);\n\t\tif(strlen($words) < 3) {\n\t\t\t$this->setError(_('Error: search query too short'));\n\t\t\treturn;\n\t\t}\n\t\t$words = htmlspecialchars($words);\n\t\t$words = strtr($words, array('%' => '\\%', '_' => '\\_'));\n\t\t$phrase = '';\n\t\t$inQuote = false;\n\t\tforeach(explode(' ', quotemeta($words)) as $word) {\n\t\t\tif($inQuote) {\n\t\t\t\tif(substr($word, -1) == \"'\") {\n\t\t\t\t\t$word = substr($word, 0, -1);\n\t\t\t\t\t$inQuote = false;\n\t\t\t\t\t$phrase .= ' '.$word;\n\t\t\t\t\t$this->phrases[] = $phrase;\n\t\t\t\t} else {\n\t\t\t\t\t$phrase .= ' '.$word;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(substr($word, 0, 1) == \"'\") {\n\t\t\t\t\t$word = substr($word, 1);\n\t\t\t\t\t$inQuote = true;\n\t\t\t\t\tif(substr($word, -1) == \"'\") {\n\t\t\t\t\t\t// This is a special case where the phrase is just one word\n\t\t\t\t\t\t$word = substr($word, 0, -1);\n\t\t\t\t\t\t$inQuote = false;\n\t\t\t\t\t\t$this->words[] = $word;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$phrase = $word;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$this->words[] = $word;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"function safe_like ($text){\n\t$safe = preg_replace('/%/','\\%',$text);\n\t$safe = preg_replace('/_/','\\_',$safe);\n\treturn $safe;\n}",
"public function testStringCanBeLimitedByWords()\n {\n $app = $this->getApplication();\n $str = new String($app);\n $this->assertEquals('Taylor...', $str->words('Taylor Otwell', 1));\n $this->assertEquals('Taylor___', $str->words('Taylor Otwell', 1, '___'));\n $this->assertEquals('Taylor Otwell', $str->words('Taylor Otwell', 3));\n }",
"function filterWords($str)\n{\n $words = array(\"<script\", \"</script>\", \"<html\", \"</html>\",\"<head\", \"</head>\", \"<meta>\", \"'\");\n\n for($i=0; $i < count($words); $i++)\n {\n $strNew = eregi_replace($words[$i], htmlspecialchars($words[$i], ENT_QUOTES), $str);\n\t\t//$strNew = str_replace(\"'\", \"’\", $str2);\t\n }\n \n return $strNew;\n}",
"function checkBadWord($content,$censoredSign = \"<censored>\",$dictionaryFile = \"dictionary.inc\")\r\n\t{\r\n\t\tif(!file_exists($dictionaryFile))\r\n\t\t\treturn $content;\r\n\t\telse\r\n\t\t$readFile = file($dictionaryFile);\r\n\t\tfor($z = 0;$z < sizeof($readFile);$z++)\r\n\t\t{\r\n\t\t\t@$content = eregi_replace(chop($readFile[$z]),$censoredSign,$content);\r\n\t\t}\r\n\t\treturn $content;\r\n\t}",
"public static function stopwords() {\n\n\t\t$stopwords = array(\n\t\t\t'acea',\n\t\t\t'aceasta',\n\t\t\t'această',\n\t\t\t'aceea',\n\t\t\t'acei',\n\t\t\t'aceia',\n\t\t\t'acel',\n\t\t\t'acela',\n\t\t\t'acele',\n\t\t\t'acelea',\n\t\t\t'acest',\n\t\t\t'acesta',\n\t\t\t'aceste',\n\t\t\t'acestea',\n\t\t\t'aceşti',\n\t\t\t'aceştia',\n\t\t\t'acolo',\n\t\t\t'acord',\n\t\t\t'acum',\n\t\t\t'ai',\n\t\t\t'aia',\n\t\t\t'aibă',\n\t\t\t'aici',\n\t\t\t'al',\n\t\t\t'ăla',\n\t\t\t'ale',\n\t\t\t'alea',\n\t\t\t'ălea',\n\t\t\t'altceva',\n\t\t\t'altcineva',\n\t\t\t'am',\n\t\t\t'ar',\n\t\t\t'are',\n\t\t\t'aş',\n\t\t\t'aşadar',\n\t\t\t'asemenea',\n\t\t\t'asta',\n\t\t\t'ăsta',\n\t\t\t'astăzi',\n\t\t\t'astea',\n\t\t\t'ăstea',\n\t\t\t'ăştia',\n\t\t\t'asupra',\n\t\t\t'aţi',\n\t\t\t'au',\n\t\t\t'avea',\n\t\t\t'avem',\n\t\t\t'aveţi',\n\t\t\t'azi',\n\t\t\t'bine',\n\t\t\t'bucur',\n\t\t\t'bună',\n\t\t\t'ca',\n\t\t\t'că',\n\t\t\t'căci',\n\t\t\t'când',\n\t\t\t'care',\n\t\t\t'cărei',\n\t\t\t'căror',\n\t\t\t'cărui',\n\t\t\t'cât',\n\t\t\t'câte',\n\t\t\t'câţi',\n\t\t\t'către',\n\t\t\t'câtva',\n\t\t\t'caut',\n\t\t\t'ce',\n\t\t\t'cel',\n\t\t\t'ceva',\n\t\t\t'chiar',\n\t\t\t'cinci',\n\t\t\t'cînd',\n\t\t\t'cine',\n\t\t\t'cineva',\n\t\t\t'cît',\n\t\t\t'cîte',\n\t\t\t'cîţi',\n\t\t\t'cîtva',\n\t\t\t'contra',\n\t\t\t'cu',\n\t\t\t'cum',\n\t\t\t'cumva',\n\t\t\t'curând',\n\t\t\t'curînd',\n\t\t\t'da',\n\t\t\t'dă',\n\t\t\t'dacă',\n\t\t\t'dar',\n\t\t\t'dată',\n\t\t\t'datorită',\n\t\t\t'dau',\n\t\t\t'de',\n\t\t\t'deci',\n\t\t\t'deja',\n\t\t\t'deoarece',\n\t\t\t'departe',\n\t\t\t'deşi',\n\t\t\t'din',\n\t\t\t'dinaintea',\n\t\t\t'dintr-',\n\t\t\t'dintre',\n\t\t\t'doi',\n\t\t\t'doilea',\n\t\t\t'două',\n\t\t\t'drept',\n\t\t\t'după',\n\t\t\t'ea',\n\t\t\t'ei',\n\t\t\t'el',\n\t\t\t'ele',\n\t\t\t'eram',\n\t\t\t'este',\n\t\t\t'eşti',\n\t\t\t'eu',\n\t\t\t'face',\n\t\t\t'fără',\n\t\t\t'fata',\n\t\t\t'fi',\n\t\t\t'fie',\n\t\t\t'fiecare',\n\t\t\t'fii',\n\t\t\t'fim',\n\t\t\t'fiţi',\n\t\t\t'fiu',\n\t\t\t'frumos',\n\t\t\t'graţie',\n\t\t\t'halbă',\n\t\t\t'iar',\n\t\t\t'ieri',\n\t\t\t'îi',\n\t\t\t'îl',\n\t\t\t'îmi',\n\t\t\t'împotriva',\n\t\t\t'în',\n\t\t\t'înainte',\n\t\t\t'înaintea',\n\t\t\t'încât',\n\t\t\t'încît',\n\t\t\t'încotro',\n\t\t\t'între',\n\t\t\t'întrucât',\n\t\t\t'întrucît',\n\t\t\t'îţi',\n\t\t\t'la',\n\t\t\t'lângă',\n\t\t\t'le',\n\t\t\t'li',\n\t\t\t'lîngă',\n\t\t\t'lor',\n\t\t\t'lui',\n\t\t\t'mă',\n\t\t\t'mai',\n\t\t\t'mâine',\n\t\t\t'mea',\n\t\t\t'mei',\n\t\t\t'mele',\n\t\t\t'mereu',\n\t\t\t'meu',\n\t\t\t'mi',\n\t\t\t'mie',\n\t\t\t'mîine',\n\t\t\t'mine',\n\t\t\t'mult',\n\t\t\t'multă',\n\t\t\t'mulţi',\n\t\t\t'mulţumesc',\n\t\t\t'ne',\n\t\t\t'nevoie',\n\t\t\t'nicăieri',\n\t\t\t'nici',\n\t\t\t'nimeni',\n\t\t\t'nimeri',\n\t\t\t'nimic',\n\t\t\t'nişte',\n\t\t\t'noastră',\n\t\t\t'noastre',\n\t\t\t'noi',\n\t\t\t'noroc',\n\t\t\t'noştri',\n\t\t\t'nostru',\n\t\t\t'nouă',\n\t\t\t'nu',\n\t\t\t'opt',\n\t\t\t'ori',\n\t\t\t'oricând',\n\t\t\t'oricare',\n\t\t\t'oricât',\n\t\t\t'orice',\n\t\t\t'oricînd',\n\t\t\t'oricine',\n\t\t\t'oricît',\n\t\t\t'oricum',\n\t\t\t'oriunde',\n\t\t\t'până',\n\t\t\t'patra',\n\t\t\t'patru',\n\t\t\t'patrulea',\n\t\t\t'pe',\n\t\t\t'pentru',\n\t\t\t'peste',\n\t\t\t'pic',\n\t\t\t'pînă',\n\t\t\t'poate',\n\t\t\t'pot',\n\t\t\t'prea',\n\t\t\t'prima',\n\t\t\t'primul',\n\t\t\t'prin',\n\t\t\t'puţin',\n\t\t\t'puţina',\n\t\t\t'puţină',\n\t\t\t'rog',\n\t\t\t'sa',\n\t\t\t'să',\n\t\t\t'săi',\n\t\t\t'sale',\n\t\t\t'şapte',\n\t\t\t'şase',\n\t\t\t'sau',\n\t\t\t'său',\n\t\t\t'se',\n\t\t\t'şi',\n\t\t\t'sînt',\n\t\t\t'sîntem',\n\t\t\t'sînteţi',\n\t\t\t'spate',\n\t\t\t'spre',\n\t\t\t'ştiu',\n\t\t\t'sub',\n\t\t\t'sunt',\n\t\t\t'suntem',\n\t\t\t'sunteţi',\n\t\t\t'sută',\n\t\t\t'ta',\n\t\t\t'tăi',\n\t\t\t'tale',\n\t\t\t'tău',\n\t\t\t'te',\n\t\t\t'ţi',\n\t\t\t'ţie',\n\t\t\t'timp',\n\t\t\t'tine',\n\t\t\t'toată',\n\t\t\t'toate',\n\t\t\t'tot',\n\t\t\t'toţi',\n\t\t\t'totuşi',\n\t\t\t'trei',\n\t\t\t'treia',\n\t\t\t'treilea',\n\t\t\t'tu',\n\t\t\t'un',\n\t\t\t'una',\n\t\t\t'unde',\n\t\t\t'undeva',\n\t\t\t'unei',\n\t\t\t'uneia',\n\t\t\t'unele',\n\t\t\t'uneori',\n\t\t\t'unii',\n\t\t\t'unor',\n\t\t\t'unora',\n\t\t\t'unu',\n\t\t\t'unui',\n\t\t\t'unuia',\n\t\t\t'unul',\n\t\t\t'vă',\n\t\t\t'vi',\n\t\t\t'voastră',\n\t\t\t'voastre',\n\t\t\t'voi',\n\t\t\t'voştri',\n\t\t\t'vostru',\n\t\t\t'vouă',\n\t\t\t'vreme',\n\t\t\t'vreo',\n\t\t\t'vreun',\n\t\t\t'zece',\n\t\t\t'zero',\n\t\t\t'zi',\n\t\t\t'zice',\n\t\t);\n\n\t\treturn $stopwords;\n\t}",
"function mbt_filter_bad_words($content) {\n\t$bad_words_raw = file_get_contents(get_parent_theme_file_path('includes/bad_words.txt'));\n\t$bad_words_raw = trim($bad_words_raw);\n\t$bad_words = explode(\"\\n\", $bad_words_raw);\n\t$censored_words = [];\n\n\tforeach ($bad_words as $bad_word) {\n\t\t$len = strlen($bad_word);\n\t\t$censored_word = str_repeat('*', $len);\n\t\tarray_push($censored_words, $censored_word);\n\t}\n\n\treturn str_ireplace($bad_words, $censored_words, $content);\n}",
"private function getWords()\n {\n return array(\n \"Aaye, Aiya\", \"Adan\", \"Aelin\", \"Adanedhel\", \"Aduial\", \"Aglarond\", \"Aha\", \"Ai\",\n \"Aina\", \"Ainu\", \"Aiglos\", \"Alda\", \"Aldalómë\", \"Alqua\", \"Amandil\", \"Amarth\",\n \"Ambarona\", \"Amon\", \"Ampa\", \"An\", \"Anarya\", \"Anca\", \"And\", \"Ando\", \"Andúril\",\n \"Andúnë\", \"Anga\", \"Ann-thannath\", \"Anna\", \"Anod\", \"Anto\", \"Arda\", \"Áre\", \"Asca\",\n \"Atan, Atani\", \"Avari\", \"Áze\", \"Balrog\", \"Band\", \"Bar\", \"Barad\", \"Beleg\",\n \"Bragol\", \"Bregalad\", \"Brethil\", \"Brith\", \"Calen\", \"Calma\", \"Carca\", \"Celeb\",\n \"Certar\", \"Certhas\", \"Cirth\", \"Coirë\", \"Coranar\", \"Cormallen\", \"Cormarë\",\n \"Coron\", \"Craban, Crebain\", \"Cú\", \"Cuivie\", \"Dae\", \"Dagor\", \"Daro\", \"Del\",\n \"Din\", \"Dina\", \"Dol\", \"Dôr\", \"Draug\", \"Drego\", \"Dú\", \"Duin\", \"Dúnadan, Dúnedain\",\n \"Dûr\", \"Ëar\", \"Echor\", \"Echuir\", \"Edain\", \"Edhel\", \"Edro\", \"Eithel\",\n \"Êl, Elin, Elenath\", \"Eldar\", \"Eldarin\", \"Elear\", \"Elen, Eleni, Elenion\",\n \"Elenya\", \"Emyn\", \"Endari\", \"Endóre\", \"Ennor\", \"Enquië, Enquier\", \"Enyd\",\n \"Er\", \"Ered\", \"Ereg\", \"Eryn\", \"Esgal\", \"Esse\", \"Estel\", \"Estellio\", \"Ethuil\",\n \"Falas\", \"Faroth\", \"Faug\", \"Fëa\", \"Fin\", \"Firith\", \"Formen\", \"Forn\", \"Fuin\",\n \"Gurth\", \"Gaur\", \"Gwador\", \"Luin\", \"Laer\", \"Mellon\", \"Minas\", \"Mithrin\",\n \"Namáriëor Navaer\", \"Nan\", \"Ndengina\", \"Nikerym\", \"Nimrais\", \"Numen\",\n \"Naugrim\", \"Onodrim\", \"Orodruin\", \"Parma\", \"Pelargir\", \"Quendi\", \"Quel re\",\n \"Silme\", \"Tengwa\", \"Tinco\", \"tuilë\", \"thalias\", \"Thalin\", \"Tar\", \"Úlairi\",\n \"Ulaer\", \"Urulóki\"\n );\n }",
"function cleanInput2($strRawText, $strAllowableChars, $blnAllowAccentedChars)\n{\n $iCharPos = 0;\n $chrThisChar = \"\";\n $strCleanedText = \"\";\n \n //Compare each character based on list of acceptable characters\n while ($iCharPos < strlen($strRawText))\n {\n // Only include valid characters **\n $chrThisChar = substr($strRawText, $iCharPos, 1);\n if (strpos($strAllowableChars, $chrThisChar) !== FALSE)\n {\n $strCleanedText = $strCleanedText . $chrThisChar;\n }\n elseIf ($blnAllowAccentedChars == TRUE)\n {\n // Allow accented characters and most high order bit chars which are harmless **\n if (ord($chrThisChar) >= 191)\n {\n \t$strCleanedText = $strCleanedText . $chrThisChar;\n }\n }\n \n $iCharPos = $iCharPos + 1;\n }\n \n return $strCleanedText;\n}",
"function getAutoSuggestWords($dbc) {\n $sql = \"\n select title\n , short_desc\n , long_desc\n , category\n , site\n from course_data\n \";\n $result = $dbc->query($sql);\n $words = array();\n while ($row = $result->fetch_assoc()) {\n $words = array_merge(\n $words\n , preg_split('~\\W+~', $row['title'])\n , preg_split('~\\W+~', strip_tags($row['short_desc']))\n , preg_split('~\\W+~', strip_tags($row['long_desc']))\n , preg_split('~\\W+~', $row['category'])\n , array($row['site'])\n );\n \n }\n \n $utf8Pattern = '%^(?:\n [\\x09\\x0A\\x0D\\x20-\\x7E] # ASCII\n | [\\xC2-\\xDF][\\x80-\\xBF] # non-overlong 2-byte\n | \\xE0[\\xA0-\\xBF][\\x80-\\xBF] # excluding overlongs\n | [\\xE1-\\xEC\\xEE\\xEF][\\x80-\\xBF]{2} # straight 3-byte\n | \\xED[\\x80-\\x9F][\\x80-\\xBF] # excluding surrogates\n | \\xF0[\\x90-\\xBF][\\x80-\\xBF]{2} # planes 1-3\n | [\\xF1-\\xF3][\\x80-\\xBF]{3} # planes 4-15\n | \\xF4[\\x80-\\x8F][\\x80-\\xBF]{2} # plane 16\n)*$%xs';\n\n $filteredWords = array();\n foreach (array_unique($words) as $word) {\n //json_encode() is very picky about invalid utf8 characters(it totally fails). well just skip any words with invalid utf8.\n if (strlen($word) > 3 && preg_match($utf8Pattern, $word)) {\n $filteredWords[] = $word;\n }\n }\n return $filteredWords;\n}",
"function wordcharsOnly($text) {\r\n\t\t$stext = preg_replace('/(\\W|_+)/u', '', $text);\r\n\t\treturn $stext ? $stext : $text;\r\n\t}",
"public function get_words() {\n $questiontextnodelim = $this->questiontext;\n $l = substr($this->delimitchars, 0, 1);\n $r = substr($this->delimitchars, 1, 1);\n $text = $this->get_questiontext_exploded($this->questiontext);\n $questiontextnodelim = preg_replace('/\\\\' . $l . '/', '', $text);\n $questiontextnodelim = preg_replace('/\\\\' . $r . '/', '', $questiontextnodelim);\n /* remove any hyperlinks from candidates for selection, this means that\n * things like audio files will be rendered for the multimedia filter\n */\n $this->selectable = preg_replace('/<a.*?<\\\\/a>/', '', $questiontextnodelim);\n $this->selectable = strip_tags($this->selectable);\n\n $allwords = preg_split('@[\\s+]@u', $questiontextnodelim);\n return $allwords;\n }",
"function makeSafe($str, $strict = false, $extrachars = \"\") {\n // $str = \\URLify::downcode($str);\n $str = str_replace(array(\"'\", '\"', \"&\", \""\", \"…\", \"“\", \"”\", \"‘\", \"’\", \"–\"), \"\", $str);\n $str = str_replace(array(\"'\", \"'\"), '-', $str);\n $str = str_replace(array(\"ë\"), array('e'), $str);\n\n $delim = '/';\n if ($extrachars != \"\") {\n $extrachars = preg_quote($extrachars, $delim);\n }\n if ($strict) {\n $str = strtolower(str_replace(\" \", \"-\", $str));\n $regex = \"[^a-zA-Z0-9_\" . $extrachars . \"-]\";\n } else {\n $regex = \"[^a-zA-Z0-9 _.,\" . $extrachars . \"-]\";\n }\n\n $str = preg_replace($delim . $regex . $delim, '', $str);\n\n return $str;\n}",
"private function prepare_match($text, $min_lenght = 3, $max_lenght = 14)\n\t{\n\t\t$word_list = array();\n\t\t$text = trim(preg_replace('`[\\s]+`', ' ', $text));\n\n\t\tif (!empty($text))\n\t\t{\n\t\t\t$word_list = array_unique(explode(' ', utf8_strtolower($text)));\n\n\t\t\tforeach ($word_list as $k => $word)\n\t\t\t{\n\t\t\t\t$len = utf8_strlen(trim($word));\n\n\t\t\t\tif (($len < $min_lenght) || ($len > $max_lenght))\n\t\t\t\t{\n\t\t\t\t\tunset($word_list[$k]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (!empty($word_list) && !empty($this->config['seo_related_check_ignore']))\n\t\t{\n\t\t\t// add stop words to $user to allow reuse\n\t\t\tif (empty($this->user->stop_words))\n\t\t\t{\n\t\t\t\t$words = array();\n\n\t\t\t\tif (file_exists(\"{$this->user->lang_path}{$this->user->lang_name}/search_ignore_words.$this->php_ext\"))\n\t\t\t\t{\n\t\t\t\t\t// include the file containing ignore words\n\t\t\t\t\tinclude(\"{$this->user->lang_path}{$this->user->lang_name}/search_ignore_words.$this->php_ext\");\n\t\t\t\t}\n\n\t\t\t\t$this->user->stop_words = & $words;\n\t\t\t}\n\n\t\t\t$word_list = array_diff($word_list, $this->user->stop_words);\n\t\t}\n\n\t\treturn !empty($word_list) ? implode(' ', $word_list) : '';\n\t}",
"function wpseo_strtolower_utf8($string){ \r\n\t$convert_to = array( \r\n\t \"a\", \"b\", \"c\", \"d\", \"e\", \"f\", \"g\", \"h\", \"i\", \"j\", \"k\", \"l\", \"m\", \"n\", \"o\", \"p\", \"q\", \"r\", \"s\", \"t\", \"u\", \r\n\t \"v\", \"w\", \"x\", \"y\", \"z\", \"à\", \"á\", \"â\", \"ã\", \"ä\", \"å\", \"æ\", \"ç\", \"è\", \"é\", \"ê\", \"ë\", \"ì\", \"í\", \"î\", \"ï\", \r\n\t \"ð\", \"ñ\", \"ò\", \"ó\", \"ô\", \"õ\", \"ö\", \"ø\", \"ù\", \"ú\", \"û\", \"ü\", \"ý\", \"а\", \"б\", \"в\", \"г\", \"д\", \"е\", \"ё\", \"ж\", \r\n\t \"з\", \"и\", \"й\", \"к\", \"л\", \"м\", \"н\", \"о\", \"п\", \"р\", \"с\", \"т\", \"у\", \"ф\", \"х\", \"ц\", \"ч\", \"ш\", \"щ\", \"ъ\", \"ы\", \r\n\t \"ь\", \"э\", \"ю\", \"я\", \"ą\", \"ć\", \"ę\", \"ł\", \"ń\", \"ó\", \"ś\", \"ź\", \"ż\" \r\n\t); \r\n\t$convert_from = array( \r\n\t \"A\", \"B\", \"C\", \"D\", \"E\", \"F\", \"G\", \"H\", \"I\", \"J\", \"K\", \"L\", \"M\", \"N\", \"O\", \"P\", \"Q\", \"R\", \"S\", \"T\", \"U\", \r\n\t \"V\", \"W\", \"X\", \"Y\", \"Z\", \"À\", \"Á\", \"Â\", \"Ã\", \"Ä\", \"Å\", \"Æ\", \"Ç\", \"È\", \"É\", \"Ê\", \"Ë\", \"Ì\", \"Í\", \"Î\", \"Ï\", \r\n\t \"Ð\", \"Ñ\", \"Ò\", \"Ó\", \"Ô\", \"Õ\", \"Ö\", \"Ø\", \"Ù\", \"Ú\", \"Û\", \"Ü\", \"Ý\", \"А\", \"Б\", \"В\", \"Г\", \"Д\", \"Е\", \"Ё\", \"Ж\", \r\n\t \"З\", \"И\", \"Й\", \"К\", \"Л\", \"М\", \"Н\", \"О\", \"П\", \"Р\", \"С\", \"Т\", \"У\", \"Ф\", \"Х\", \"Ц\", \"Ч\", \"Ш\", \"Щ\", \"Ъ\", \"Ъ\", \r\n\t \"Ь\", \"Э\", \"Ю\", \"Я\", \"Ą\", \"Ć\", \"Ę\", \"Ł\", \"Ń\", \"Ó\", \"Ś\", \"Ź\", \"Ż\"\r\n\t); \r\n\r\n\treturn str_replace($convert_from, $convert_to, $string);\r\n}",
"function cleanInput($input) {\n $pattern = array('Š' => 'S', 'š' => 's', 'Ž' => 'Z', 'ž' => 'z', 'À' => 'A', 'Á' => 'A', 'Â' => 'A', 'Ã' => 'A', 'Ä' => 'A', 'Å' => 'A', 'Æ' => 'A', 'Ç' => 'C', 'È' => 'E', 'É' => 'E',\n 'Ê' => 'E', 'Ë' => 'E', 'Ì' => 'I', 'Í' => 'I', 'Î' => 'I', 'Ï' => 'I', 'Ñ' => 'N', 'Ò' => 'O', 'Ó' => 'O', 'Ô' => 'O', 'Õ' => 'O', 'Ö' => 'O', 'Ø' => 'O', 'Ù' => 'U',\n 'Ú' => 'U', 'Û' => 'U', 'Ü' => 'U', 'Ý' => 'Y', 'Þ' => 'B', 'ß' => 'Ss', 'à' => 'a', 'á' => 'a', 'â' => 'a', 'ã' => 'a', 'ä' => 'a', 'å' => 'a', 'æ' => 'a', 'ç' => 'c',\n 'è' => 'e', 'é' => 'e', 'ê' => 'e', 'ë' => 'e', 'ì' => 'i', 'í' => 'i', 'î' => 'i', 'ï' => 'i', 'ð' => 'o', 'ò' => 'o', 'ó' => 'o', 'ô' => 'o', 'õ' => 'o',\n 'ö' => 'o', 'ø' => 'o', 'ù' => 'u', 'ú' => 'u', 'û' => 'u', 'ý' => 'y', 'þ' => 'b', 'ÿ' => 'y');\n return ucwords(mb_strtolower(strtr($input, $pattern)));\n }",
"function sanitize_search_string($string) {\n\tstatic $drop_char_match = array('^', '$', '<', '>', '`', '\\'', '\"', '|', ',', '?', '~', '+', '[', ']', '{', '}', '#', ';', '!', '=');\n\tstatic $drop_char_replace = array(' ', ' ', ' ', ' ', '', '', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ');\n\n\t/* Replace line endings by a space */\n\t$string = preg_replace('/[\\n\\r]/is', ' ', $string);\n\t/* HTML entities like */\n\t$string = preg_replace('/\\b&[a-z]+;\\b/', ' ', $string);\n\t/* Remove URL's */\n\t$string = preg_replace('/\\b[a-z0-9]+:\\/\\/[a-z0-9\\.\\-]+(\\/[a-z0-9\\?\\.%_\\-\\+=&\\/]+)?/', ' ', $string);\n\n\t/* Filter out strange characters like ^, $, &, change \"it's\" to \"its\" */\n\tfor($i = 0; $i < count($drop_char_match); $i++) {\n\t\t$string = str_replace($drop_char_match[$i], $drop_char_replace[$i], $string);\n\t}\n\n\t$string = str_replace('*', ' ', $string);\n\n\treturn $string;\n}",
"function badWords($post) {\r\n $badwords = array(\"#\", \"'\", \"*\", \"=\", \" union \", \" insert \", \" update \", \" drop \", \" select \");\r\n foreach ($post as $value)\r\n foreach ($badwords as $word)\r\n if (substr_count($value, $word) > 0)\r\n return false;\r\n else\r\n return true;\r\n }",
"public function testReservedWords()\n\t{\n\t\tSuggestorSqlHelper::setWordWrapper('`');\n\t\tSuggestorSqlHelper::$wrapEverything = FALSE;\n\n\t\tSuggestorSqlHelper::$reservedWords[] = 'land';\n\t\t$helper = new SuggestorSqlHelper($this->suggestor);\n\t\t$this->assertEquals(['race', '`land`'], $helper->getRaw());\n\t\t$this->assertEquals('race, `land`', $helper->build());\n\n\t\tSuggestorSqlHelper::setWordWrapper('[]');\n\t\t$this->assertEquals('race, [land]', $helper->build());\n\t}",
"static function ignoredWords(){\n return array(\"a\", \"o\", \"de\", \"da\", \"do\", \"em\", \"e\", \"para\", \"por\", \"que\");\n }",
"function titleCase($string, $delimiters = array(\" \", \"-\"), $exceptions = array(\"and\", \"to\", \"of\", \"by\")){\n /*\n * Exceptions in lower case are words you don't want converted\n * Exceptions all in upper case are any words you don't want converted to title case\n * but should be converted to upper case, e.g.:\n * king henry viii or king henry Viii should be King Henry VIII\n */\n $string = mb_convert_case($string, MB_CASE_TITLE, \"UTF-8\");\n foreach ($delimiters as $dlnr => $delimiter) {\n $words = explode($delimiter, $string);\n $newwords = array();\n foreach ($words as $wordnr => $word) {\n if (in_array(mb_strtoupper($word, \"UTF-8\"), $exceptions)) {\n // check exceptions list for any words that should be in upper case\n $word = mb_strtoupper($word, \"UTF-8\");\n } elseif (in_array(mb_strtolower($word, \"UTF-8\"), $exceptions)) {\n // check exceptions list for any words that should be in upper case\n $word = mb_strtolower($word, \"UTF-8\");\n } elseif (!in_array($word, $exceptions)) {\n // convert to uppercase (non-utf8 only)\n $word = ucfirst($word);\n }\n array_push($newwords, $word);\n }\n $string = join($delimiter, $newwords);\n }//foreach\n return $string;\n}",
"function StripInvalidCharacters($sstring) {\n\t\t\n\t\t$ret_val = \"\";\n\t\t$ret_val = $sstring;\n\t\t$ret_val = str_replace(chr(9), \" \", $ret_val);\n\t\t$ret_val = str_replace(chr(10), \" \", $ret_val);\n\t\t$ret_val = str_replace(chr(13), \" \", $ret_val);\n\t\t$ret_val = str_replace(\"\\n\", \" \", $ret_val);\n\t\t$ret_val = str_replace(\"\\l\", \" \", $ret_val);\n\t\t$ret_val = trim($ret_val);\n\t\t\n\t\t$strlen = strlen($ret_val);\n\t\t$pos=0;\n\t\t$new_word = \"\";\n\t\twhile ($pos < $strlen) {\n\t\t\t$schar = substr($ret_val, $pos, 1);\n\t\t\t$nchar = ord($schar);\n\t\t\tif (\n\t\t\t\t($nchar >= 48 && $nchar <= 57) ||\n\t\t\t\t($nchar >= 97 && $nchar <= 122) ||\n\t\t\t\t($nchar >= 65 && $nchar <= 90) ||\n\t\t\t\t($schar==\" \") ||\n\t\t\t\t($schar==\"_\") ||\n\t\t\t\t($schar==\".\") ||\n\t\t\t\t($schar==\"-\") ||\n\t\t\t\t($schar==\"/\") ||\n\t\t\t\t($schar==\"#\") ||\n\t\t\t\t($schar==\"'\") ||\n\t\t\t\t($schar==\"$\") \n\t\t\t\t) {\n\t\t\t\t$new_word.=$schar;\n\t\t\t\t#$$this->ui->dbp($schar . \" \" . ord($schar));\n\t\t\t\n\t\t\t}\n\t\t\t$pos++;\t\n\t\t}\n\t\t$ret_val = $new_word;\n\t\t$ret_val = str_replace(\"_\", \" \", $ret_val);\n\n\n\t\t$pos = strpos($ret_val, \" \");\n\t\twhile (strlen($pos)>0) {\n\t\t\t$ret_val = str_replace(\" \", \" \", $ret_val);\n\t\t\t$pos = strpos($ret_val, \" \");\t\t\t\t\n\t\t}\n\t\t\n\t\t#exit;\n\t\t$ret_val = trim($ret_val);\n\t\treturn $ret_val;\n\t}",
"function translate(string $words = \"\"): string\n{\n $listOfWords = mb_split(\" \", $words);\n foreach ($listOfWords as &$word) {\n $word = beginsWithVowelSounds($word) ? applyRule1($word) : applyRule2($word);\n }\n unset($word);\n\n return implode(\" \", $listOfWords);\n}",
"static function searchSystemWords($realpath_of_submitted_file){\n $contentFile = file_get_contents($realpath_of_submitted_file);\n\n foreach(self::$RESTRICTED_FUNCTION as $rf)\n if(str_contains($contentFile,$rf))\n return true;\n return false;\n }",
"function strip($word)\n{\n // remove white space\n $word = str_replace(\" \", \"\", $word);\n // remove forward slashes\n $word = str_replace(\"/\", \"\", $word);\n // make all char lowercase\n $word = strtolower($word);\n\n return $word;\n}",
"function ValidFileName($string) {\n $specialCharacters = array(\n '%' => '',\n '?' => '',\n '.' => '',\n '@' => '',\n '+' => '',\n '=' => '',\n ' ' => '',\n '\\\\' => '',\n '/' => '',\n '~' => '',\n '`' => '',\n '^' => '',\n '\\'' => '',\n '\\\"' => '',\n '*' => '',\n '!' => '',\n ':' => '',\n '<' => '',\n '>' => '',\n '|' => '',\n '#' => '',\n );\n\n while (list($character, $replacement) = each($specialCharacters)) {\n $string = str_replace($character, '' . $replacement . '', $string);\n }\n $string = strtr($string, \"ÀÁÂÃÄÅáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ\", \"AAAAAAaaaaaaOOOOOOooooooEEEEeeeeCcIIIIiiiiUUUUuuuuyNn\"\n );\n return $string;\n}",
"public static function whitelist\n\t(\n\t\t$valueToSanitize\t// <str> The value you're going to sanitize.\n\t,\t$charsAllowed\t\t// <str> A list of specific characters to add to the whitelist.\n\t,\t$strict = false\t\t// <bool> TRUE to end sanitization once a non-matching character is found.\n\t)\t\t\t\t\t\t// RETURNS <str> the sanitized value (as an acceptably formatted word).\n\t\n\t// $string = Sanitize::whitelist($string, \"abcd\");\t// The string will only allow the characters: a, b, c, and d\n\t{\n\t\t/****** Prepare Variables *****/\n\t\tself::$illegalChars = array();\t\t// Resets the last illegal characters to nothing\n\t\t\n\t\t$originalString = $valueToSanitize;\n\t\t$illegalCount = 0;\n\t\t\n\t\t// Cycle through each letter in the word to sanitize and check if there is a character that shouldn't be there.\n\t\tfor($i = 0, $len = strlen($valueToSanitize);$i < $len;$i++)\n\t\t{\n\t\t\t// If something shouldn't be there, strip it out.\n\t\t\tif(strpos($charsAllowed, $valueToSanitize[$i - $illegalCount]) === false)\n\t\t\t{\n\t\t\t\t// If this is running in strict mode and there is an illegal character, end abruptly\n\t\t\t\tif($strict === true)\n\t\t\t\t{\n\t\t\t\t\treturn substr($valueToSanitize, 0, $i);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Prepare values\n\t\t\t\t$getChar = $valueToSanitize[$i - $illegalCount];\n\t\t\t\t\n\t\t\t\t// Track illegal characters\n\t\t\t\tif(!isset(self::$illegalChars[$getChar]))\n\t\t\t\t{\n\t\t\t\t\tself::$illegalChars[$getChar] = 1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tself::$illegalChars[$getChar] += 1;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$valueToSanitize = substr_replace($valueToSanitize, \"\", $i - $illegalCount, 1);\n\t\t\t\t$illegalCount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Send a warning if the user input had to be sanitized\n\t\tif($originalString != $valueToSanitize)\n\t\t{\n\t\t\t// Increase the warning level if there is an abundance of illegal characters\n\t\t\t$severity = ($illegalCount >= 3 ? 1 : 0);\n\t\t\t$severity += ($illegalCount >= 8 ? 1 : 0);\n\t\t\t\n\t\t\t// Prepare variables for testing the offending characters\n\t\t\t$offensiveCount = 0;\n\t\t\t$lethalCount = 0;\n\t\t\t\n\t\t\t$offensiveChars = \"\\\\/%()?&'\\\";<>\" . chr(0);\n\t\t\t$lethalChars = \"\\\\<>\" . chr(0);\n\t\t\t\n\t\t\t// Every time a potentially dangerous character is identified, increase the chance of warning\n\t\t\tfor($i = 0;$i < strlen($originalString);$i++)\n\t\t\t{\n\t\t\t\t// If something shouldn't be there, strip it out.\n\t\t\t\tif(strpos($offensiveChars, $originalString[$i]) !== false && strpos($charsAllowed, $originalString[$i]) === false)\n\t\t\t\t{\n\t\t\t\t\t$offensiveCount++;\n\t\t\t\t\t\n\t\t\t\t\tif(strpos($lethalChars, $originalString[$i]) !== false)\n\t\t\t\t\t{\n\t\t\t\t\t\t$lethalCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Increase the warning level if multiple dangerous characters are found\n\t\t\t$severity += ($offensiveCount >= 1 ? 2 : 0);\n\t\t\t$severity += ($offensiveCount >= 3 ? 2 : 0);\n\t\t\t$severity += min(3, $lethalCount);\n\t\t\t\n\t\t\t// Prepare a warning of potential abuse\n\t\t\tself::warnOfPotentialAttack($originalString, \"Unsanitized Input\", $severity, 1);\n\t\t}\n\t\t\n\t\treturn $valueToSanitize;\n\t}",
"function str_between(string $input, string $start, string $end): string{\n $p1 = (int) mb_strpos($input, $start);\n $p2 = (int) mb_strpos($input, $end);\n $substr = mb_substr($input, mb_strlen($start) + $p1, (mb_strlen($input) - $p2) * (-1));\n return $substr;\n}",
"function sanitize_special_chars($string_val, $strip_special=FALSE, \n $excluded) {\n// \t$tags_allowed = \"<ol><li><h1><h2><h3><h4><h5><h6><p><a><strong><em>\";\r\n $patterns = array(\"&\", \"<\", \">\", '\"', \"*\", \"'\", \"%\", \"(\", \")\", \"+\", \"-\",\n \"\\\\\", \";\", \":\", \",\");\n $replacements = array(\"&\", \"<\", \">\", \""\", \"∗\", \n \"'\", \"%\", \"(\", \")\", \"+\", \"-\", \n \"\\",\";\", \":\", \",\");\n // Remove any specified excluded characters (if any) from the patterns list.\n if ($excluded) {\n $patterns = remove_excluded_from_patterns($excluded, $patterns);\n }\n \n for ($i = 0; $i < count($patterns); $i++) {\n if (! $strip_special) {\n $replacement = $replacements[$i];\n }\n else {\n $replacement = \"\";\n }\n /* Syntax: str_replace($search, $replace, $subject) */\n $string_val = str_replace($patterns[$i], $replacement, $string_val);\n }\n return $string_val;\n }"
] | [
"0.567738",
"0.5378065",
"0.52370423",
"0.5226723",
"0.5188508",
"0.5144217",
"0.51013446",
"0.50467473",
"0.50353307",
"0.5001615",
"0.4983145",
"0.4982525",
"0.49509978",
"0.49379948",
"0.49126112",
"0.4890709",
"0.4887252",
"0.4886523",
"0.48723254",
"0.4871699",
"0.48404667",
"0.48284584",
"0.48245928",
"0.48170704",
"0.48150703",
"0.4798308",
"0.47980016",
"0.4796057",
"0.47721288",
"0.4770346"
] | 0.5640293 | 1 |
Lock names must be ascii alphanumeric and underscore characters and must not be empty. If $wait is false, tries to get a lock and returns false promptly if it is unable to do so right now, true on success. If $wait is true, returns true on a successful lock after waiting up to 30 seconds, otherwise throws an sfException. By default an implementation based on flock() is used, which is fine for the vast majority of sites (see aLockFlock for details). If you wish to use an alternative implementation, set app_a_lock_class to the name of any implementation of our aLock interface, and set app_a_lock_options to contain any necessary options to initialize it. | static public function lock($name, $wait = true)
{
if (!aTools::$lockService)
{
$class = sfConfig::get('app_a_lock_class', 'aLockFlock');
$options = sfConfig::get('app_a_lock_options', array());
aTools::$lockService = new $class($options);
}
$result = aTools::$lockService->lock($name, $wait);
return $result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function acquireLock($wait = false) {\r\n\t\t\r\n\t\tif (empty($this->fileName)) {\r\n\t\t\tthrow new LockException(\"You should provide a fileName in the instance of your lock.\");\r\n\t\t}\r\n\r\n if (strpos($this->fileName, '/') === 0) {\r\n $filename = $this->fileName;\r\n } else {\r\n $filename = sys_get_temp_dir().'/'.$this->fileName;\r\n }\r\n\r\n if (!file_exists($filename)) {\r\n touch($filename);\r\n }\r\n\r\n\t\tif ($this->fpt = fopen($filename, 'r'))\r\n\t\t{\r\n\t\t\tif ($wait) {\r\n\t\t\t\t$lockMode = LOCK_EX;\r\n\t\t\t} else {\r\n\t\t\t\t$lockMode = LOCK_EX | LOCK_NB;\r\n\t\t\t}\r\n\t\t\t$boo = flock($this->fpt, $lockMode, $wait);\r\n\r\n\t\t\tif ($boo == false){\r\n\t\t\t\t// File is locked: the next process did not ended: we do not start\r\n\t\t\t\tthrow new LockException('Could not acquire lock. Lock is in use', 1);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthrow new LockException('Could not acquire lock. A problem occured opening the file. Check the filename is valid.', 3);\r\n\t\t}\r\n\t}",
"public function lock($wait=null){ }",
"public function lockWait($name, $delay = 30) {\n // Pause the process for short periods between calling\n // lock_may_be_available(). This prevents hitting the database with constant\n // database queries while waiting, which could lead to performance issues.\n // However, if the wait period is too long, there is the potential for a\n // large number of processes to be blocked waiting for a lock, especially\n // if the item being rebuilt is commonly requested. To address both of these\n // concerns, begin waiting for 25ms, then add 25ms to the wait period each\n // time until it reaches 500ms. After this point polling will continue every\n // 500ms until $delay is reached.\n\n // $delay is passed in seconds, but we will be using usleep(), which takes\n // microseconds as a parameter. Multiply it by 1 million so that all\n // further numbers are equivalent.\n $delay = (int) $delay * 1000000;\n\n // Begin sleeping at 25ms.\n $sleep = 25000;\n while ($delay > 0) {\n // This function should only be called by a request that failed to get a\n // lock, so we sleep first to give the parallel request a chance to finish\n // and release the lock.\n usleep($sleep);\n // After each sleep, increase the value of $sleep until it reaches\n // 500ms, to reduce the potential for a lock stampede.\n $delay = $delay - $sleep;\n $sleep = min(500000, $sleep + 25000, $delay);\n if ($this->lockMayBeAvailable($name)) {\n // No longer need to wait.\n return FALSE;\n }\n }\n // The caller must still wait longer to get the lock.\n return TRUE;\n }",
"public function testWaitTrue() {\n $this->lock->expects($this->any())\n ->method('lockMayBeAvailable')\n ->with($this->equalTo('test_name'))\n ->will($this->returnValue(FALSE));\n\n $this->assertTrue($this->lock->wait('test_name', 1));\n }",
"public function testWaitFalse() {\n $this->lock->expects($this->any())\n ->method('lockMayBeAvailable')\n ->with($this->equalTo('test_name'))\n ->will($this->returnValue(TRUE));\n\n $this->assertFalse($this->lock->wait('test_name'));\n }",
"function lock($id, $waitForTimeout= true) {\n\t\t$this->initialize(true);\n\n\t\t$timeout = time() + $this->timeout;\n\t\t$lockId = CACHE_IDENTIFIER . 'clusterLockUtilHandle' . urlencode($id);\n\t\t$success = false;\n\n\t\tdo {\n\t\t\tif ($this->cacheUtil->add($lockId, 1, $this->timeout, $this->forceType)) {\n\t\t\t\t$success = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tusleep(100000);\n\t\t} while ((time() < $timeout) && $waitForTimeout);\n\n\t\tif ($success) {\n\t\t\t$this->locks[$id] = true;\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"public static function lock($lock_name)\n\t{\n\t\tif (isset(Locks::$locks[$lock_name])) {\n\t\t\tLocks::$locks[$lock_name]++;\n\t\t\treturn true;\n\t\t}\n\t\tLocks::$locks[$lock_name] = 1;\n\t\treturn false;\n\t}",
"public function acquireLock($lockName, $timeout);",
"function config_lock() {\n\tglobal $g;\n\n\t$lockfile = \"{$g['varrun_path']}/config.lock\";\n\t$n = 0;\n\twhile($n < 15) {\n\t\t//\topen the lock file in append mode to avoid race condition\n\t\tif($fd = @fopen($lockfile, \"x\")):\n\t\t\t//\tsucceeded\n\t\t\tfclose($fd);\n\t\t\treturn;\n\t\telse:\n\t\t\t//\tfile locked, wait and try again\n\t\t\tsleep(1);\n\t\t\t$n++;\n\t\tendif;\n\t}\n\tmwexec(\"/usr/bin/logger 'Lock error {$lockfile}'\");\n\twhile(1) {\n\t\t/* can't continue without lock */\n\t\tsleep(1);\n\t}\n\texit;\n}",
"public function lock($maxWait = 30)\n {\n for ($i = 0; $i < (int) $maxWait; $i++) {\n if ($this->getLock()) {\n break;\n }\n sleep(1);\n }\n\n return $this;\n }",
"public function Lock()\n {\n if (is_resource($this->lock_)){\n XLogs::notice(get_class($this), 'waiting for lock on boucle '.$this->lock_);\n return flock($this->lock_, LOCK_EX);\n }\n return false;\n }",
"public function check($lock);",
"public function lock($lockMode = \\LOCK_EX);",
"protected function checkLockOnStart(){\n if(!isset($this->aConfig['lock'])){\n return;\n }\n // $this->aConfig['lock'] has two keys: file, period\n extract($this->aConfig['lock']);\n if(file_exists($file)){\n if(\n empty($period) ||\n filemtime($file) >= ($this->aState['started']['time'] - $period)\n ){\n // correct lock\n if($this->checkReporting('lock')){\n trigger_error('Correct lock is found', E_USER_NOTOCE);\n }\n exit(0);\n }else{\n trigger_error(\"Lock '\" . file_get_contents($file) . \" is broken!\", E_USER_WARNING);\n if(!file_put_contents($file, $this->aState['processId'])){\n trigger_error(\"Lock file '\" . $file . \" cannot be created!\", E_USER_ERROR);\n }\n }\n }else{\n if(!file_put_contents($file, $this->aState['processId'])){\n trigger_error(\"Lock file '\" . $file . \" cannot be created!\", E_USER_ERROR);\n }\n }\n }",
"public function TryLock()\n\t{\n\t\tif ($this->bLocked)\n\t\t{\n\t\t\treturn true; // Already acquired\n\t\t}\n\t\tif (self::$aAcquiredLocks[$this->sName] > 0)\n\t\t{\n\t\t\tself::$aAcquiredLocks[$this->sName]++;\n\t\t\t$this->bLocked = true;\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t$res = $this->QueryToScalar(\"SELECT GET_LOCK('\".$this->sName.\"', 0)\");\n\t\tif (is_null($res))\n\t\t{\n\t\t\tthrow new Exception(\"Failed to acquire the lock '\".$this->sName.\"'\");\n\t\t}\n\t\t// $res === '1' means I hold the lock\n\t\t// $res === '0' means it timed out\n\t\tif ($res === '1')\n\t\t{\n\t\t\t$this->bLocked = true;\n\t\t\tself::$aAcquiredLocks[$this->sName]++;\n\t\t}\n\t\tif (($res !== '1') && ($res !== '0'))\n\t\t{\n\t\t\t$sMsg = 'GET_LOCK('.$this->sName.', 0) returned: '.var_export($res, true).'. Expected values are: 0, 1 or null';\n\t\t\tIssueLog::Error($sMsg);\n\t\t\tthrow new Exception($sMsg);\n\t\t}\n\t\treturn ($res !== '0');\n\t}",
"public function isLocked(string $name): bool;",
"protected function acquireLock(string $name, int $timeout = 0): bool\n {\n $statement = $this->connection->prepare('SELECT GET_LOCK(:name, :timeout)');\n $statement->bindValue(':name', $this->hashLockName($name));\n $statement->bindValue(':timeout', $timeout);\n $statement->execute();\n\n return $statement->fetchColumn();\n }",
"public function block($lockSeconds = 10, $waitSeconds = 10)\n {\n $this->lockSeconds = $lockSeconds;\n $this->waitSeconds = $waitSeconds;\n\n return $this;\n }",
"protected function acquireLock($name, $timeout = 0)\n {\n $filePath = $this->getLockFilePath($name);\n return $this->retryAcquire($timeout, function () use ($filePath, $name) {\n $file = fopen($filePath, 'w+');\n if ($file === false) {\n return false;\n }\n\n if ($this->fileMode !== null) {\n @chmod($filePath, $this->fileMode);\n }\n\n if (!flock($file, LOCK_EX | LOCK_NB)) {\n fclose($file);\n return false;\n }\n\n // Under unix we delete the lock file before releasing the related handle. Thus it's possible that we've acquired a lock on\n // a non-existing file here (race condition). We must compare the inode of the lock file handle with the inode of the actual lock file.\n // If they do not match we simply continue the loop since we can assume the inodes will be equal on the next try.\n // Example of race condition without inode-comparison:\n // Script A: locks file\n // Script B: opens file\n // Script A: unlinks and unlocks file\n // Script B: locks handle of *unlinked* file\n // Script C: opens and locks *new* file\n // In this case we would have acquired two locks for the same file path.\n if (DIRECTORY_SEPARATOR !== '\\\\' && fstat($file)['ino'] !== @fileinode($filePath)) {\n clearstatcache(true, $filePath);\n flock($file, LOCK_UN);\n fclose($file);\n return false;\n }\n\n $this->_files[$name] = $file;\n return true;\n });\n }",
"public function Lock()\n\t{\n\t\tif ($this->bLocked)\n\t\t{\n\t\t\t// Lock already acquired\n\t\t\treturn;\n\t\t}\n\t\tif (self::$aAcquiredLocks[$this->sName] == 0)\n\t\t{\n\t\t\tdo\n\t\t\t{\n\t\t\t\t$res = $this->QueryToScalar(\"SELECT GET_LOCK('\".$this->sName.\"', 3600)\");\n\t\t\t\tif (is_null($res))\n\t\t\t\t{\n\t\t\t\t\tthrow new Exception(\"Failed to acquire the lock '\".$this->sName.\"'\");\n\t\t\t\t}\n\t\t\t\t// $res === '1' means I hold the lock\n\t\t\t\t// $res === '0' means it timed out\n\t\t\t}\n\t\t\twhile ($res !== '1');\n\t\t}\n\t\t$this->bLocked = true;\n\t\tself::$aAcquiredLocks[$this->sName]++;\n\t}",
"public function acquire_lock() {\n\t\t$query = \"UPDATE {$this->table_prefix}cavalcade_jobs\";\n\t\t$query .= ' SET status = \"running\"';\n\t\t$query .= ' WHERE status = \"waiting\" AND id = :id';\n\n\t\t$statement = $this->db->prepare( $query );\n\t\t$statement->bindValue( ':id', $this->id );\n\t\t$statement->execute();\n\n\t\t$rows = $statement->rowCount();\n\t\treturn ( $rows === 1 );\n\t}",
"function YSI_Lock($name)\n{\n\tglobal $YSI_gLockHandle;\n\t// Use flock (disk-based).\n\t$YSI_gLockHandle[$name] = fopen('./tmp/' . $name . '.tmp', 'c');\n\tflock($YSI_gLockHandle[$name], LOCK_EX);\n}",
"function lockDatabase() {\n // but note mkdir returns TRUE if directory already exists!\n $locked = FALSE;\n \n // tidy up from possible locking errors\n if (is_dir(LOCK_DIRECTORY)) {\n // if lock directory is more than a few seconds old it wasn't deleted properly, so we'll delete it ourselves\n // not sure exactly how time changes work, but we can live with a possible twice\n // a year problem since locking is probably almost never needed\n if ((time() - filemtime(LOCK_DIRECTORY)) > 15) {\n unlockDatabase();\n }\n }\n if (is_dir(LOCK_DIRECTORY)) {\n // locked already by someone else\n //rg2log(\"Directory exists \".date(\"D M j G:i:s T Y\", filemtime(LOCK_DIRECTORY)));\n } else {\n // try to lock it ourselves\n //rg2log(\"Trying to lock\");\n $locked = mkdir(LOCK_DIRECTORY ,0777);\n }\n $tries = 0;\n while (!$locked && ($tries < 5)) {\n // wait 500ms up to 5 times trying to get a lock\n usleep(500000);\n if (is_dir(LOCK_DIRECTORY)) {\n // locked already by someone else\n $locked = FALSE;\n } else {\n // try to lock it ourselves\n $locked = mkdir(LOCK_DIRECTORY,0777);\n }\n $tries++;\n //rg2log(\"Lock attempt \".$tries);\n }\n //rg2log(\"Lock status \".$locked);\n return $locked;\n}",
"public function lock()\n {\n $key = null;\n if (isset($_GET['lock'])) list($name, $key) = explode(':', $_GET['lock'], 2) + array(1=>null);\n if (isset($_GET['name'])) $name = $_GET['name'];\n if (isset($_GET['key'])) $key = $_GET['key'];\n \n if (empty($name)) {\n if (empty($this->td)) throw new Exception(\"No key or table argument specified.\");\n if (!isset($_GET['id'])) throw new Exception(\"Table argument specified, but no id specified.\");\n \n $name = md5($this->td['name'] . '~' . $_GET['id']);\n }\n \n $lock = new Lock(Config::i()->application . '.' . $name);\n \n if (!$lock->acquire($key)) {\n HTTP::response(423);\n self::outputXML($lock->asXML());\n exit;\n }\n \n echo $lock;\n }",
"protected function updateLock(){\n if(!isset($this->aConfig['lock'])){\n return;\n }\n // $this->aConfig['lock'] has two keys: file, period\n extract($this->aConfig['lock']);\n if(file_exists($file)){\n $processId = file_get_contents($file);\n if($processId !== $this->aState['processId']){\n trigger_error(\"Lock is rewritten by another process '\" . $processId . \"', daemon is interrupted!\", E_USER_ERROR);\n }\n if(!touch($file)){\n trigger_error(\"Lock file '\" . $file . \"' cannot be touched!\", E_USER_ERROR);\n }\n }else{\n trigger_error(\"Lock file '\" . $file . \"' is missing, daemon is interrupted!\", E_USER_ERROR);\n }\n }",
"function flock ($handle, $operation, &$wouldblock = null) {}",
"public function isLocked();",
"public function isLocked();",
"function _get_lock_option() {\n\treturn 'tsf_upgrade.lock';\n}",
"public function lock(int $lock, &$wouldBlock = null): void;"
] | [
"0.73319244",
"0.67247087",
"0.6218049",
"0.61105853",
"0.56498563",
"0.5359072",
"0.53514975",
"0.5328791",
"0.5176184",
"0.51594037",
"0.5155733",
"0.5151775",
"0.5034435",
"0.5015799",
"0.50149006",
"0.49237525",
"0.4920931",
"0.49036944",
"0.48669404",
"0.48459148",
"0.4803134",
"0.4788801",
"0.47782695",
"0.47716087",
"0.475799",
"0.47315556",
"0.47244394",
"0.47244394",
"0.47209746",
"0.4712438"
] | 0.8527422 | 0 |
Called by bootstrapDrupalSite to do the main work of the Drush drupal site bootstrap. | public function bootstrapDoDrupalSite(BootstrapManager $manager): void
{
$siteConfig = $this->confPath() . '/drush.yml';
if (ConfigLocator::addSiteSpecificConfig(Drush::config(), $siteConfig)) {
$this->logger->debug(dt("Loaded Drush config file at !file.", ['!file' => $siteConfig]));
} else {
$this->logger->debug(dt("Could not find a Drush config file at !file.", ['!file' => $siteConfig]));
}
// Note: this reports the 'default' site during site:install even if we eventually install to a different multisite.
$this->logger->info(dt("Initialized Drupal site !site at !site_root", ['!site' => $this->getRequest()->getHttpHost(), '!site_root' => $this->confPath()]));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function bootstrap() {\n //bootstrap drupal. set remote address to quiet errors during bootstrap\n $_SERVER['REMOTE_ADDR'] = \"127.1.1.1\";\n require_once './includes/bootstrap.inc';\n drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);\n}",
"public static function initializeSite(Event $event) {\n $fs = new Filesystem();\n $cwd = getcwd();\n $home = (getenv('HOME') === FALSE ? '/root' : getenv('HOME'));\n $vendor = static::_getDrupalVendor($cwd);\n $root = static::_getDrupalRoot($cwd);\n\n $db = static::_getDrupalBootstrapDB($cwd);\n $pg_pass = \"$home/.pgpass\";\n\n if (static::_check('DRUPAL_INIT')) {\n $event->getIO()->write(\" * Bootstrapping Drupal\");\n\n if (empty(static::_runCommand(\"if test -f '$home/psql/bin/psql'; then echo 'Exists';fi\", 1800, NULL, FALSE))) {\n # Install PostgreSQL executable\n static::_runCommand(\"cd '$home'; curl 'https://s3.amazonaws.com/18f-cf-cli/psql-9.4.4-ubuntu-14.04.tar.gz' | tar -xvz\");\n }\n\n if (!static::_siteExists($event, $vendor, $root)) {\n # Get primary database connection\n $db_conn = static::_getDrupalDBInfo();\n\n if (!is_null($db_conn)) {\n $event->getIO()->write(\" * Initializing Drupal database\");\n\n # Setup Postgres password file\n $pass_entry = $db_conn['host'] . ':' . $db_conn['port'] . ':' . $db_conn['db_name'] . ':' . $db_conn['username'] . ':' . $db_conn['password'];\n static::_runCommand(\"echo '$pass_entry' > '$pg_pass'\");\n static::_runCommand(\"chmod 600 '$pg_pass'\");\n\n # Try to install an initial Drupal site\n $event->getIO()->write(static::_runCommand(\n \"'$home/psql/bin/psql' --host=\" . $db_conn['host'] .\n \" --port=\" . $db_conn['port'] .\n \" --username=\" . $db_conn['username'] .\n \" --dbname=\" . $db_conn['db_name'] .\n \" < $db\", 7200, TRUE)\n );\n }\n }\n }\n }",
"protected function bootstrap()\n {\n }",
"protected function setUpSite() {\n // There are errors therefore there is nothing to do here.\n }",
"public abstract function bootstrap();",
"function bootstrap() {\n\t/*\n\t * This is the first phase, in here Agave simply looks for the proper settings.php file, corresponding to the request received...\n\t * For example, a request to www.russnet.org/homepage/look/lol will resolve to agave_root/sites/www.russnet.org/settings.php\n\t * Likewise, if the site root is www.livefromrussia.org/stage1, the request will resolve to agave_root/sites/www.livefromrussia.org.stage1/settings.php\n\t */\n\t \n\t$confdir = 'sites';\n\t$uri = explode('/', $_SERVER['SCRIPT_NAME'] ? $_SERVER['SCRIPT_NAME'] : $_SERVER['SCRIPT_FILENAME']);\n\t$server = explode('.', implode('.', array_reverse(explode(':', rtrim($_SERVER['HTTP_HOST'], '.')))));\n\tfor ($i = count($uri) - 1; $i > 0; $i--) {\n\t\tfor ($j = count($server); $j > 0; $j--) {\n\t\t\t$dir = implode('.', array_slice($server, -$j)) . implode('.', array_slice($uri, 0, $i));\n\t\t\tif(file_exists(\"$confdir/$dir/settings.php\")) {\n\t\t\t\t$initFile = \"$confdir/$dir/settings.php\";\t\t\t\t\n\t\t\t\treturn bootstrap_agave($initFile);\n\t\t\t}\n\t\t}\n\t}\n\t\n\tdie(\"<h1>Could not find <code>settings.php</code> file. Installation cannot continue.</h1>\");\n}",
"protected function doBoot()\n {\n }",
"public static function setUpSite() {\n self::prepareFiles();\n self::createConfigFile();\n self::clearDatabase();\n self::installWp();\n }",
"public function bootstrap();",
"public function bootstrap();",
"public function bootstrap();",
"public function bootstrap(): void\n {\n do_action( 'wpk.bootstrap.beforeModules', $this->app );\n\n $modules = require_once $this->getConfigDir() . '/modules.php';\n\n foreach ( $modules as $ID => $module ) {\n new $module( $ID, $this->app );\n }\n }",
"public function setup()\n {\n parent::setup();\n Environment::increaseTimeLimitTo();\n\n $restart = $this->currentStep == 0;\n if (!$this->tempFile || !file_exists($this->tempFile ?? '')) {\n $tmpfile = tempnam(TempFolder::getTempFolder(BASE_PATH) ?? '', 'sitemap');\n if (file_exists($tmpfile ?? '')) {\n $this->tempFile = $tmpfile;\n }\n $restart = true;\n }\n\n if ($restart) {\n $this->pagesToProcess = DB::query('SELECT ID FROM SiteTree_Live WHERE ShowInSearch=1')->column();\n }\n }",
"static function bootstrap() \n {\n self::initPath();\n self::loadClasses();\n self::initClasses();\n self::loadConfig();\n self::loadFunctions();\n self::loadRoutes();\n self::loadStaticData();\n }",
"function setup_bootstrap() {\n require_once(dirname(__file__).'/../iafbm/lib/iafbm/xfm/iaBootstrap.php');\n new iaBootstrap();\n // Sets a default 'script' username\n $_SERVER['HTTP_SHIB_PERSON_UID'] = 'update-script';\n $_SERVER['HTTP_SHIB_SWISSEP_HOMEORGANIZATION'] = 'localhost';\n $_SERVER['HTTP_SHIB_CUSTOM_UNILMEMBEROF'] = 'local-superuser';\n xContext::$auth->set_from_aai();\n }",
"public function bootstrap(): void;",
"function idi_install_drupal($droot) {\n\n if (is_dir($droot)) { \n\n // Download Drupal.\n while ($version != 6 && $version != 7) {\n drush_print(\"Enter Drupal version (6 or 7) [7]: \", 0, NULL, FALSE);\n $version = trim(fgets(STDIN));\n if (empty($version)) {\n $version = 7;\n }\n elseif ($version != 6 && $version != 7) {\n continue;\n }\n }\n\n drush_print(\"\\033[0;32mPlease wait while Drupal to be downloaded...\\033[0m\");\n shell_exec(\"drush dl drupal-$version --destination=$droot\");\n\n $drupal_dirs = scandir(\"$droot/\");\n foreach ($drupal_dirs as $dir) {\n if (preg_match('/drupal-(.)/', $dir)) {\n drush_op('_drush_recursive_copy', \"$droot/$dir/\", \"$droot/\");\n drush_delete_dir(\"$droot/$dir/\", TRUE);\n drush_print(\"\\033[0;32mDrupal files moved into $droot\\033[0m\");\n break;\n }\n }\n\n $db_params_corectly = FALSE;\n while (!$db_params_corectly) {\n drush_print(\"Enter data for DB connection. For example - mysql://admin:123456@localhost:3306/testdb\");\n $params = trim(fgets(STDIN));\n if (preg_match('/(.){1,}:(.){1,}:(.){1,}@(.){1,}:(.){1,}(.){1,}/', $params)) {\n $db_params_corectly = TRUE;\n }\n }\n chdir($droot);\n // Install Drupal.\n passthru(\"drush site-install --db-url=$params --account-name=admin --account-pass=admin\");\n exec(\"chmod -R 0777 $droot/\");\n drush_print(\"\\033[0;31mPermissions on the directory $droot has been set to 0777. Do not forget to correct it if necessary\\033[0m\");\n\n // Restart apache.\n $restart_check = FALSE;\n while (!$restart_check) {\n drush_print(\"You should restart the apache server. Do you want do this now? (y/n) [y]:\", 0, NULL, FALSE);\n $restart = trim(fgets(STDIN));\n\n if (empty($restart) || strtolower($restart) == 'y') {\n exec(\"/etc/init.d/apache2 restart\");\n drush_print(\"\\033[0;32mInstallation is complete.\\033[0m\");\n $restart_check = TRUE;\n }\n elseif (strtolower($restart) == 'n') {\n drush_print(\"\\033[0;32mInstallation is complete, but you should restart apache manually.\\033[0m\");\n $restart_check = TRUE;\n }\n }\n }\n else {\n drush_print(\"\\033[0;31mDrupal installation error. Document root directory is not exists.\\033[0m\");\n }\n}",
"protected function _bootstrap()\n {\n $conf = BaseServer::getConf();\n if (isset($conf['application_bootstrap'])) {\n $applicationBootstrap = $conf['application_bootstrap'];\n if (class_exists($applicationBootstrap)) {\n $applicationBootstrap::handle($this->request, $this->response);\n }\n }\n }",
"public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;'); // ignore foreign\n $this->_homePageFooter();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;'); // set foreign\n }",
"private function _setup()\n\t{\n\t\t$config = $this->config->item('ci_bootstrap');\n\t\t\n\t\t// load default values\n\t\t$this->mBaseUrl = empty($this->mModule) ? base_url() : base_url($this->mModule).'/';\n\t\t$this->mSiteName = empty($config['site_name']) ? '' : $config['site_name'];\n\t\t$this->mPageTitlePrefix = empty($config['page_title_prefix']) ? '' : $config['page_title_prefix'];\n\t\t$this->mPageTitle = empty($config['page_title']) ? '' : $config['page_title'];\n\t\t$this->mBodyClass = empty($config['body_class']) ? '' : $config['body_class'];\n\t\t$this->mMenu = empty($config['menu']) ? array() : $config['menu'];\n\t\t$this->mMetaData = empty($config['meta_data']) ? array() : $config['meta_data'];\n\t\t$this->mScripts = empty($config['scripts']) ? array() : $config['scripts'];\n\t\t$this->mStylesheets = empty($config['stylesheets']) ? array() : $config['stylesheets'];\n\t\t$this->mPageAuth = empty($config['page_auth']) ? array() : $config['page_auth'];\n\n\t\t// multilingual setup\n\t\t$lang_config = empty($config['languages']) ? array() : $config['languages'];\n\t\tif ( !empty($lang_config) )\n\t\t{\n\t\t\t$this->mMultilingual = TRUE;\n\t\t\t$this->load->helper('language');\n\n\t\t\t// redirect to Home page in default language\n\t\t\tif ( empty($this->uri->segment(1)) )\n\t\t\t{\n\t\t\t\t$home_url = base_url($lang_config['default']).'/';\n\t\t\t\tredirect($home_url);\n\t\t\t}\n\n\t\t\t// get language from URL, or from config's default value (in ci_bootstrap.php)\n\t\t\t$this->mAvailableLanguages = $lang_config['available'];\n\t\t\t$language = array_key_exists($this->uri->segment(1), $this->mAvailableLanguages) ? $this->uri->segment(1) : $lang_config['default'];\n\n\t\t\t// append to base URL\n\t\t\t$this->mBaseUrl.= $language.'/';\n\n\t\t\t// autoload language files\n\t\t\tforeach ($lang_config['autoload'] as $file)\n\t\t\t\t$this->lang->load($file, $this->mAvailableLanguages[$language]['value']);\n\n\t\t\t$this->mLanguage = $language;\n\t\t}\n\t\t\n\t\t// restrict pages\n\t\t$uri = ($this->mAction=='index') ? $this->mCtrler : $this->mCtrler.'/'.$this->mAction;\n\t\tif ( !empty($this->mPageAuth[$uri]) && !$this->ion_auth->in_group($this->mPageAuth[$uri]) )\n\t\t{\n\t\t\t$page_404 = $this->router->routes['404_override'];\n\t\t\t$redirect_url = empty($this->mModule) ? $page_404 : $this->mModule.'/'.$page_404;\n\t\t\tredirect($redirect_url);\n\t\t}\n\n\t\t// push first entry to breadcrumb\n\t\tif ($this->mCtrler!='home')\n\t\t{\n\t\t\t$page = $this->mMultilingual ? lang('home') : 'Home';\n\t\t\t$this->push_breadcrumb($page, '');\n\t\t}\n\n\t\t// get user data if logged in\n\t\tif ( $this->ion_auth->logged_in() )\n\t\t{\n\t\t\t$this->mUser = $this->ion_auth->user()->row();\n\t\t\tif ( !empty($this->mUser) )\n\t\t\t{\n\t\t\t\t$this->mUserGroups = $this->ion_auth->get_users_groups($this->mUser->id)->result();\n\n\t\t\t\t// TODO: get group with most permissions (instead of getting first group)\n\t\t\t\t$this->mUserMainGroup = $this->mUserGroups[0]->name;\t\n\t\t\t}\n\t\t}\n\n\t\t$this->mConfig = $config;\n\t}",
"public function bootstrap()\n {\n /// default error log\n $logger = Config::getConfig('logger');\n \n // start monolog\n // \n // create a log channel\n static::$log = new \\Monolog\\Logger($logger['name']);\n static::$log->pushHandler(new \\Monolog\\Handler\\StreamHandler($logger['path'], $logger['path']));\n // static::$log->pushHandler(new Monolog\\Handler\\FirePHPHandler());\n \n // load required helpers\n App::loadHelper(['core', 'language']);\n\n // load routes\n Request::loadRoutes();\n \n // start session\n Session::start();\n \n // ini_set('log_errors', 1); // 1 = php save log to file\n // ini_set('error_log', $logger['path']); // file to save logs\n\n // Load language core\n static::getTranslation('core');\n }",
"public function bootstrap()\n {\n }",
"public function bootstrap()\n {\n }",
"public function preExecute()\n {\n parent::preExecute();\n sfConfig::set('app_rt_node_title', 'Site');\n rtTemplateToolkit::setFrontendTemplateDir();\n }",
"protected function startup() {\r\n parent::startup();\r\n }",
"public function ensureHooksEnabled() {\n MigrateBooster::bootDrupal();\n }",
"final public function run() {\r\n $config = include ROOT . '/apps/configs/Module.php';\r\n self::setConfig('modules', $config);\r\n self::setLayout(self::getModuleName());\r\n\r\n //append some unitily functions if exists\r\n $helper_file = ROOT . '/apps/Helpers.php';\r\n\r\n if ( file_exists($helper_file) ) {\r\n require_once $helper_file;\r\n }\r\n\r\n //excute bootstraps for all module\r\n $bootstrap_file = ROOT . '/apps/Bootstraps.php';\r\n\r\n $ctr = $this;\r\n if ( file_exists($bootstrap_file) ) {\r\n require_once $bootstrap_file;\r\n if ( class_exists('Bootstraps') ) {\r\n $boot = new Bootstraps();\r\n\r\n if ( method_exists($boot, 'init') ) {\r\n $boot->init();\r\n }\r\n\r\n $initModule = 'init' . self::getModuleName();\r\n if ( method_exists($boot, $initModule) ) {\r\n $boot->$initModule();\r\n }\r\n }\r\n }\r\n\r\n //append some unitily functions of module if exists\r\n $helper_file = ROOT . '/apps/modules/' . self::getModuleName() . '/Helpers.php';\r\n\r\n if ( file_exists($helper_file) ) {\r\n require_once $helper_file;\r\n }\r\n\r\n //excute bootstraps for current module\r\n $bootstrap_module_file = ROOT . '/apps/modules/' . self::getModuleName() . '/Bootstraps.php';\r\n\r\n if ( !self::isStop() ) {\r\n if ( file_exists($bootstrap_module_file) ) {\r\n require_once $bootstrap_module_file;\r\n $boot_module_name = self::getModuleName() . 'Bootstraps';\r\n if ( class_exists($boot_module_name) ) {\r\n $boot = new $boot_module_name();\r\n\r\n if ( method_exists($boot, 'init') ) {\r\n $boot->init();\r\n }\r\n\r\n $initController = 'init' . self::getControllerName();\r\n if ( method_exists($boot, $initController) ) {\r\n $boot->$initController();\r\n }\r\n }\r\n }\r\n }\r\n\r\n //call a function before all real action\r\n if ( !self::isStop() ) {\r\n if ( method_exists($ctr, 'init') ) {\r\n $ctr->init();\r\n }\r\n }\r\n\r\n //operacting current action\r\n if ( !self::isStop() ) {\r\n $action = self::getActionName();\r\n $ctr->$action();\r\n }\r\n self::display();\r\n\r\n }",
"private function prepareDrupalRoot()\n {\n $filesystem = TransactionalFilesystem::getInstance();\n $filesystem->writeFile(\n 'vendor/drupal/vendor/autoload.php',\n '<?php return include dirname(__FILE__, 3) . \"/autoload.php\";'\n );\n $filesystem->writeFile(\n 'vendor/drupal/autoload.php',\n '<?php return include dirname(__FILE__, 2) . \"/autoload.php\";'\n );\n $filesystem->writeFile('vendor/drupal/composer.json', '{}');\n }",
"protected static function booting()\n {\n //\n }",
"public function run() {\n $this->init_magento();\n $this->_customer_data = $this->get_customer_info();\n $this->_navigation = $this->get_top_nav();\n }"
] | [
"0.7076717",
"0.64492136",
"0.64469105",
"0.6409222",
"0.62975585",
"0.6283391",
"0.6239507",
"0.62323767",
"0.6229358",
"0.6229358",
"0.6229358",
"0.61471874",
"0.6107877",
"0.6102824",
"0.6053967",
"0.60514385",
"0.6028064",
"0.60220003",
"0.60163933",
"0.59800744",
"0.59650576",
"0.59426016",
"0.59426016",
"0.5924298",
"0.5859885",
"0.57944304",
"0.57928264",
"0.57843125",
"0.578359",
"0.57798845"
] | 0.67753416 | 1 |
Set the authspace of definition of the user. | public function setAuthSpace(AuthSpaceInterface $authSpace)
{
$this->authSpace = $authSpace;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function putAuthAttributes()\n {\n if (isset($this->username)) {\n $this->putAttribute(RADIUS_USER_NAME, $this->username);\n }\n if (isset($this->password)) {\n $this->putAttribute(RADIUS_USER_PASSWORD, $this->password);\n }\n }",
"public function set_user()\n\t{\n\n\t}",
"protected function setAuthenticatedUser(){\n $this->user = auth()->user();\n }",
"protected function define()\n {\n $user = new DLinkedObjectField('user', new DLabel(self::class, 'user'));\n $user->setLinkTo(DUser::class);\n $this->addField($user);\n }",
"public function setNameSpace() {\n\n $this->namespace = Config::get('crud.namespace_root');\n\n }",
"public function on_set_current_user(): void {\n\t\t$this->get_client()->configureScope( function ( Scope $scope ) {\n\t\t\t$scope->setUser( $this->get_current_user_info() );\n\t\t} );\n\t}",
"private static function set_auth(){\n self::$auth = 'test';\n }",
"function auth($auth){\n\t $this->user[username]=$auth->getUsername();\n\t $this->user[userLevel]=$auth->getUserLevel();\n\t}",
"function putAuthAttributes()\n {\n if (isset($this->username)) {\n $this->putAttribute(RADIUS_USER_NAME, $this->username);\n }\n $this->putAttribute(RADIUS_ACCT_STATUS_TYPE, $this->status_type);\n //if (isset($this->session_time) && $this->status_type == RADIUS_STOP) {\n if (isset($this->session_time)) {\n $this->putAttribute(RADIUS_ACCT_SESSION_TIME, $this->session_time);\n }\n if (isset($this->authentic)) {\n $this->putAttribute(RADIUS_ACCT_AUTHENTIC, $this->authentic);\n }\n\n $this->putStandardAttributes();\n }",
"function setRealm($realm);",
"public function setDb(){\n $this->db->setUser($this);\n }",
"public function setAuthMode()\n {\n $this->authMode = true;\n }",
"private function setIdentity(){\n\t\t$config = $this->config->item('ion_auth');\n\t\t$this->_identity = $config['identity'];\n\n\t\t$this->_user = $this->ion_auth->user()->row();\n\t}",
"public function setNameSpace($nameSpace) \n {\n $this->nameSpace = $nameSpace;\n }",
"private function setUser()\n {\n $this->cas_user = phpCAS::getUser();\n Session::put('cas_user', $this->cas_user);\n }",
"public function setAuth($auth)\n {\n $this->_auth = $auth;\n }",
"public function _setRealUser() {\n\t\t$user = $this->Auth->user();\n\t\t$user['id'] = $user['real_user_id'];\n\t\tunset($user['real_user_id']);\n\n\t\t$this->Auth->login($user);\n\t}",
"function setRealm($realm) {\n\n $this->realm = $realm;\n\n }",
"function set_session_variables(&$user)\n {\n\t\t $this->sd->wipe_group('_auth'); // make sure we are setting this from fresh\n\t\t $this->sd->add_group('_auth');\n\t\t \n\t\t unset($user['password']);\n\n\t\t $user['ip'] = explode(':', $user['ip']);\n\t\t //$user['options'] = stripslashes($user['options']);\n\n\t\t $this->sd->set_vars($user, '_auth');\n\t\t \n\t\t // set user keys\n\t\t if (in_array('userkeys', $this->uses))\n\t\t \t$this->sd->set('keys', $this->userkeys->get($user['id']), '_auth');\t \n }",
"public function setUserPrincipalName($val)\n {\n $this->_propDict[\"userPrincipalName\"] = $val;\n return $this;\n }",
"public function setUserPrincipalName($val)\n {\n $this->_propDict[\"userPrincipalName\"] = $val;\n return $this;\n }",
"public function setUserPrincipalName($val)\n {\n $this->_propDict[\"userPrincipalName\"] = $val;\n return $this;\n }",
"public function setUserPrincipalName($val)\n {\n $this->_propDict[\"userPrincipalName\"] = $val;\n return $this;\n }",
"public function setUserPrincipalName($val)\n {\n $this->_propDict[\"userPrincipalName\"] = $val;\n return $this;\n }",
"public function setUserPrincipalName($val)\n {\n $this->_propDict[\"userPrincipalName\"] = $val;\n return $this;\n }",
"function assignAuth() {\n $panelarr = array('users', 'super', 'stores', 'hq', 'hqusers');\n if (in_array($this->params['controller'], $panelarr)) {\n $func = 'Auth_' . $this->params['controller'];\n $this->$func();\n } else {\n $this->autoParam();\n }\n }",
"function putAuthAttributes()\n {\n if (isset($this->username)) {\n $this->putAttribute(RADIUS_USER_NAME, $this->username);\n }\n if (isset($this->response)) {\n $response = pack('C', $this->chapid) . $this->response;\n $this->putAttribute(RADIUS_CHAP_PASSWORD, $response);\n }\n if (isset($this->challenge)) {\n $this->putAttribute(RADIUS_CHAP_CHALLENGE, $this->challenge);\n }\n }",
"public function setAuthorization($val)\n {\n $this->_propDict[\"authorization\"] = $val;\n return $this;\n }",
"public function setAuthUser($user)\n {\n $this->authUser = $user;\n }",
"private function setNamespace()\n {\n $this->namespace = self::slugify($this->getName(), \"_\");\n\n if (isset($this->config->namespace) )\n {\n if (!empty($this->config->namespace) )\n {\n $this->namespace = self::slugify($this->config->namespace, \"_\");\n }\n }\n }"
] | [
"0.5948021",
"0.581595",
"0.55344456",
"0.5498101",
"0.5497295",
"0.5475012",
"0.54472804",
"0.5434056",
"0.5375815",
"0.5375079",
"0.5360662",
"0.5314258",
"0.5314046",
"0.5298883",
"0.5291001",
"0.5246059",
"0.52009875",
"0.5180329",
"0.51536894",
"0.513244",
"0.513244",
"0.513244",
"0.513244",
"0.513244",
"0.513244",
"0.51276",
"0.5114503",
"0.50868905",
"0.5069894",
"0.50296986"
] | 0.59129614 | 1 |
Retrieve key pass phrase. | public function getPassPhrase()
{
return $this->passPhrase;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPassPhrase()\n {\n return $this->ionOptions['passphrase'];\n }",
"public function getPass()\n {\n return $this->pass;\n }",
"public function get_pass()\n {\n return $this->_pass;\n }",
"private function getPrivateKeyPassword()\n {\n if (DEBUG) {\n return CERTIFICATE_PASSPHRASE_DEVELOP;\n } else {\n return CERTIFICATE_PASSPHRASE;\n }\n }",
"public function getPass()\n\t{\n\t\treturn $this->pass;\n\t}",
"public function getPassword()\n {\n return $this->getKey('Password');\n }",
"public function getPassword()\n {\n return $this->getKey('Password');\n }",
"public function pass() {\n return $this->parsedUrl['pass'] ?? '';\n }",
"public function getPass()\n\t\t{\n\t\t\treturn $this->pass;\n\t\t}",
"public function getPass() {\n\t\treturn $this->pass;\n\t}",
"public function getPassword()\n {\n return isset($this->urlParts['pass']) ? $this->urlParts['pass'] : null;\n }",
"function getPassword()\n\t {\n\t \treturn $this->_hashword;\n\t }",
"public function getPassword()\n {\n return $this->data['pass'];\n }",
"public function getP12Password();",
"public function getPassword()\n\t{\n\t\treturn $this->passwword;\n\t}",
"public function getPassword()\n {\n return $this->pass;\n }",
"public function getSecretWord()\n {\n return $this->getParameter('secretWord');\n }",
"function getPassword() {\n return $this->getFieldValue('varchar_field_2');\n }",
"public function getCryptKey ()\n {\n return $this->getVendorPassword();\n }",
"public function getUserPass()\n {\n return $this->user_pass;\n }",
"function getPassword()\n {\n return (string) $this->_sPassword;\n }",
"public function getPassword(){\n\t\t\treturn $this->pass;\n\t\t}",
"function getPassword();",
"public function pass(): ?string\n {\n return $this->pass;\n }",
"public function getForgetpass() {\n return strval($this->forgetpass);\n }",
"public function getPassword() {\r\n\t\treturn($this->sPassword);\r\n\t}",
"public function password() {\n\t\t$value = trim($this->args['0']);\n\t\t$this->out(Security::hash($value, null, true));\n\t}",
"public function getPassword() {\n\t\treturn $this -> data['password'];\n\t}",
"public function getAuthKeyword();",
"public function getStrPassword()\n {\n return $this->strPassword;\n }"
] | [
"0.76547647",
"0.7115993",
"0.7107703",
"0.70403385",
"0.6994005",
"0.6992538",
"0.6992538",
"0.697674",
"0.694796",
"0.6937447",
"0.6677955",
"0.6574243",
"0.65519506",
"0.64878404",
"0.6478051",
"0.64692235",
"0.6460556",
"0.6434959",
"0.63887227",
"0.6387066",
"0.63811576",
"0.63606346",
"0.6333201",
"0.63212484",
"0.63133603",
"0.63083476",
"0.63046217",
"0.6295834",
"0.6294964",
"0.62759364"
] | 0.78144276 | 0 |
Set the JS framework to use | public function setJsFramework($framework)
{
$this->jsFramework = $framework;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function js_setup() {\r\n\t}",
"public static function compile_js_framework(){\n\t\t$config = Kohana::$config->load('assets');\n\t\t\n\t\t$framework = array();\n\t\t\n\t\tforeach($config['js']['framework'] as $file)\n\t\t{\n\t\t\t$file = preg_replace(array('/\\.less/', '/\\.js/'), '', $file);\n\t\t\t\n\t\t\tif (file_exists($file.'.js'))\n\t\t\t{\n\t\t\t\tarray_push($framework, $file);\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn self::_html_comment('could not find '.Debug::path($file).'.js');\n\t\t\t}\n\t\t}\n\t\t\t\t\t\t\n\t\t\n\t\tif (empty($framework)) return self::_html_comment('no framework files...');\n\t\t\n\t\treturn html::script(self::_combine($framework, 'js', true));\n\t}",
"public static function framework()\n\t{\n\t\t// Only load once\n\t\tif (!empty(static::$loaded[__METHOD__]))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tRHelperAsset::load('lib/jquery.min.js', self::EXTENSION);\n\t\tRHelperAsset::load('lib/jquery-migrate.min.js', self::EXTENSION);\n\t\tRHelperAsset::load('lib/jquery-noconflict.js', self::EXTENSION);\n\n\t\tstatic::$loaded[__METHOD__] = true;\n\n\t\treturn;\n\t}",
"function javascript()\n {\n return app('JavaScript');\n }",
"function javascript()\n {\n return app('JavaScript');\n }",
"public function framework () {\n\t\t\n\t\treturn $this->framework;\n\t\t\n\t}",
"public function setJs($js)\n\t{\n\t\t$this->_jsFiles = $js;\n\t}",
"function & framework($sFramework) {\n\n\t\tif (!isset($this -> _aFramework[$sFramework])) {\n\n\t\t\t//\t\tsetCore($this);\n\t\t\t$this -> _aFramework[$sFramework] = $this -> adapter('framework', $sFramework);\n\n\t\t}\n\n\t\treturn $this -> _aFramework[$sFramework];\n\n\t}",
"public static function set_js( $js )\n\t\t{\n\t\t\tself::set_asset($js, 'js');\n\t\t}",
"function setJsTheme ($arg)\n {\n $this->_jsTheme = $arg ;\n }",
"public function setTestingFramework(string $testingFramework)\n {\n $this->testingFramework = $testingFramework;\n }",
"public function initjs($singleuse = 0) {\n global $PAGE;\n $PAGE->requires->js_call_amd('qtype_gapfill/dragdrop', 'init', ['singleuse' => $singleuse ?? 0]);\n }",
"function iver_select_framework() {\n\t\treturn IverSelectFramework::get_instance();\n\t}",
"public function setJSDebug($value = false){\n $this->javascript_debug = $value;\n }",
"function elgg_require_js($name) {\n\t_elgg_services()->amdConfig->addDependency($name);\n}",
"public function addJS()\n {\n // $this->addToVar('jsCode', $this->addResource('/components/jquery/jquery.min', 'js'));\n // $this->addToVar('jsCode', $this->addResource('/twbs/bootstrap/dist/js/bootstrap.min', 'js'));\n // $this->addToVar('jsCode', $this->addResource('/js/alxarafe', 'js'));\n }",
"public function ext() {\n\t\treturn \"js\";\n\t}",
"public function setMedia()\n {\n parent::setMedia();\n $this->addJS(array(_MODULE_DIR_ . 'hipay_enterprise/views/js/devicefingerprint.js'));\n $this->addJS(array(_MODULE_DIR_ . 'hipay_enterprise/views/js/form-input-control.js'));\n $this->addCSS(array(_MODULE_DIR_ . 'hipay_enterprise/views/css/hipay-enterprise.css'));\n }",
"public static function loadGeneralJSLibs()\n\t{\n\t\tparent::renderFilesFromFolder(MainJsPath.'libs'.DIRECTORY_SEPARATOR, 'js');\n\t}",
"function libero_mikado_framework() {\n return LiberoFramework::get_instance();\n }",
"function init_js() {\n /** Maak het forms object in JS. */\n echo <<<HTML\n <script>\n forms = new Forms();\n </script>\nHTML;\n\n /** Link alle knoppen in JS. */\n for ($i = 0; $i < count($this->knoppen); $i++) {\n $id = $this->knoppen[$i];\n echo <<<HTML\n <script>\n forms.addKnop(\"$id\");\n </script>\nHTML;\n }\n\n /** Initialiseer alle forms in JS. */\n foreach($this->forms as $x => $form) {\n if (!$form->get_disabled()) {\n $form->init_js();\n }\n }\n\n /** Voeg een event toe om de condities te controlleren na laden. */\n echo <<<HTML\n <script>\n window.onload = function() {\n forms.init();\n }\n </script>\nHTML;\n }",
"protected function setPluginsJs()\n {\n $plugins = $this->plugins;\n if (!is_array($this->plugins)){\n $plugins = [];\n }\n\n foreach ($plugins as $plugin=>$item){\n if (in_array($plugin, $this->pluginsCss)){\n $this->css[] = \"plugins/{$plugin}/{$plugin}.css\";\n }\n $this->js[] = \"plugins/{$plugin}/{$plugin}.js\";\n }\n\n }",
"public function getJs(){ }",
"public static function declareGeneralJSLibs()\n\t{\n\t\tself::declareJSFilesFromFolder('libs');\n\t}",
"protected function addJSDef()\n {\n foreach (array_keys($this->module_settings) as $name) {\n if (!is_array($this->module_settings[$name])) {\n Media::addJsDefL($name, Configuration::get($name));\n }\n }\n }",
"function getJsTheme ()\n {\n return $this->_jsTheme ;\n }",
"function awd_write_frameworkscript_tags($awd_file=null){\r\n\tif(!isset($awd_file)){\r\n\t\techo \"<script src=\\\"https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js\\\"></script>\";\r\n\t\techo \"<link rel=\\\"stylesheet\\\" type=\\\"text/css\\\" href=\\\"https://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css\\\" />\";\r\n\t\techo \"<script src=\\\"https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js\\\"></script>\";\r\n\t\techo \"<script type='text/javascript'>var AWD_BASEURLFrameWork = \\\"\" . AWD_HTML_FRAMEWORK_PATH . \"\\\";</script>\";\r\n\t\techo \"<script src=\\\"\" . AWD_HTML_FRAMEWORK_PATH . \"/js/AWD_Jquery.js\\\" type=\\\"text/javascript\\\"></script>\";\r\n\t\techo \"<script src=\\\"\" . AWD_HTML_FRAMEWORK_PATH . \"/js/AWD\" . $awd_file . \".js?\" . date(\"U\") . \"\\\" type=\\\"text/javascript\\\"></script>\";\r\n\t}else{\r\n\t\techo \"<script src=\\\"\" . AWD_HTML_FRAMEWORK_PATH . \"/js/AWD-\" . $awd_file . \".js?\" . date(\"U\") . \"\\\" type=\\\"text/javascript\\\"></script>\";\t\r\n\t}\r\n}",
"function setJavascript($path=''){\n\t\t\n\t\tif(!is_null($this->NO_JAVASCRIPT_PATH)){\n\t\t\techo '<noscript><meta http-equiv=\"refresh\" content=\"0;'.$this->NO_JAVASCRIPT_PATH.'/></noscript>';\n\t\t}\n\t\tif(!is_null($this->NO_COOKIES_PATH)){\n\t\t\techo \"\n\t\t\t<script type=\\\"text/javascript\\\">\\n\n\t\t\t<!--//--><![CDATA[<!--\\n\n\t\t\tif (!navigator.cookieEnabled) {\\n\n\t\t\t\tdocument.location.href='\".$this->NO_COOKIES_PATH.\"';\\n\n\t\t\t}\\n\n\t\t\t//--><!]]>\\n\n\t\t\t</script>\\n\";\n\t\t}\n\t\techo '<script type=\"text/javascript\" src=\"'.$path.'PPF/class.ppf.HTML.js\"></script>'.\"\\r\\n\";\n\t\techo '<script type=\"text/javascript\" src=\"'.$path.'PPF/class.ppf.DBValidator.js\"></script>'.\"\\r\\n\";\n\t}",
"function init(){\r\n global $site;\r\n\r\n $site->addJavascript(BASE_URL.LIBRARY_DIR.'js/jquery/jquery.js'); //this widget requires jquery library.\r\n $site->addJavascript(BASE_URL.LIBRARY_DIR.'js/jquery-tools/jquery.tools.form.js'); //this widget require jQuery Tools form validation library\r\n $site->addJavascript(BASE_URL.PLUGIN_DIR.'code/highlight/public/syntaxhighlighter/js/shCore.js');\r\n\r\n // load syntax highlighting brushes\r\n\r\n $brushes = Array( 'shBrushCss', 'shBrushDiff', 'shBrushJScript', 'shBrushPhp', 'shBrushPlain', 'shBrushSass', 'shBrushSql', 'shBrushXml');\r\n\r\n foreach ($brushes as $brush){\r\n $site->addJavascript(BASE_URL.PLUGIN_DIR.'code/highlight/public/syntaxhighlighter/js/'.$brush.'.js');\r\n }\r\n\r\n $site->addJavascript(BASE_URL.PLUGIN_DIR.'code/highlight/public/highlight.js');\r\n\r\n $site->addCss(BASE_URL.PLUGIN_DIR.'code/highlight/public/syntaxhighlighter/css/shCoreDefault.css');\r\n $site->addCss(BASE_URL.PLUGIN_DIR.'code/highlight/public/highlight.css');\r\n }",
"public function initFramework()\n {\n // get config\n $configData = @include('phpunitconfig.inc.php');\n if ($configData === false) {\n $configData = include('config.inc.php');\n }\n if ($configData === false) {\n die ('central configuration file config.inc.php not found in includepath: ' . get_include_path());\n }\n $config = new Zend_Config($configData);\n \n Zend_Registry::set('testConfig', $config);\n \n $_SERVER['DOCUMENT_ROOT'] = $config->docroot;\n \n Tinebase_Core::initFramework();\n \n // set default test mailer\n Tinebase_Smtp::setDefaultTransport(new Zend_Mail_Transport_Array());\n \n // set max execution time\n Tinebase_Core::setExecutionLifeTime(1200);\n\n // set default internal encoding\n iconv_set_encoding(\"internal_encoding\", \"UTF-8\");\n \n Zend_Registry::set('locale', new Zend_Locale($config->locale));\n }"
] | [
"0.6867824",
"0.6716714",
"0.6670534",
"0.6156919",
"0.6156919",
"0.5963993",
"0.5898627",
"0.58884656",
"0.5824991",
"0.5815799",
"0.57327276",
"0.5615124",
"0.5576856",
"0.5562873",
"0.55175817",
"0.55148655",
"0.5507584",
"0.54915494",
"0.5451763",
"0.5445289",
"0.5423878",
"0.5409714",
"0.54094046",
"0.53612053",
"0.53606904",
"0.5360017",
"0.53446376",
"0.53422225",
"0.5337795",
"0.5306526"
] | 0.7564693 | 0 |
Add a function in the provided class to the listeners to be triggered if called | public function addFunction($class, $function)
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function add($firingClass, $event, $listenerClass, $method) {\n\t\t\n//\t\tApp::get()->debug(func_get_args());\n\n\t\tif (!isset($this->listeners[$firingClass][$event])) {\n\t\t\t$this->listeners[$firingClass][$event] = [];\n\t\t}\n\t\t$this->listeners[$firingClass][$event][] = [$listenerClass, $method];\t\t\n\t}",
"public static function subscribe($class)\n {\n foreach (get_class_methods($class) as $method) {\n self::$stack[] = [$class, $method];\n }\n }",
"public static function addSubscriber($object_or_class)\n {\n if (is_object($object_or_class)) {\n // add callable [object, method] arrays\n foreach (self::getMethods($object_or_class) as $method) {\n self::addEventListener($method, [$object_or_class, $method]);\n }\n } elseif (class_exists($object_or_class)) {\n // add strings of static methods\n foreach (self::getMethods($object_or_class) as $method) {\n self::addEventListener($method, \"$object_or_class::$method\");\n }\n }\n }",
"public function extend($class, Closure $callback)\n {\n $this->engines[$class] = $callback;\n }",
"public function addHandler($eventClass, $handler);",
"public static function registerListeners();",
"function addObserver(&$a_class,$a_method)\r\n\t{\r\n\t\t$this->observers[] = array('class' => $a_class,\r\n\t\t\t\t\t\t\t\t 'method' => $a_method);\r\n\t\treturn true;\r\n\t}",
"private function register_hooks() {\n\t\tforeach ( $this->get_hooking_classes() as $class ) {\n\t\t\t$full_class_name = ( $this->namespace . '\\\\' . $class );\n\t\t\t$reflection = new \\ReflectionClass( $full_class_name );\n\n\t\t\tif ( $reflection->implementsInterface( 'UTEC\\Common\\Interfaces\\Has_Hooks' ) ) {\n\t\t\t\t( new $full_class_name() )->hooks();\n\t\t\t}\n\t\t}\n\t}",
"protected function registerObserver($class)\n {\n $className = $this->resolveObserverClassName($class);\n\n // When registering a observer, we will spin through the possible events\n // and determine if this observer has that method. If it does, we will hook\n // it into the event system, making it convenient to watch these.\n foreach ($this->getObservableEvents() as $event) {\n if (method_exists($class, $event)) {\n static::registerEvent($event, $className . '@' . $event);\n }\n }\n }",
"public function addClass(string $class):void {\r\n\t\t$this->classes[] = $class;\r\n\t}",
"public function registerCommand($class)\n {\n // is it a callback or a string?\n if (is_callable($class)) {\n $this->add(call_user_func($class, $this));\n } else {\n $this->add(new $class());\n }\n }",
"protected function addClassEvent ( $view, $class, $prefix, $priority = null )\n {\n $name = $prefix . $view;\n\n // When registering a class based view \"composer\", we will simply resolve the\n // classes from the application IoC container then call the compose method\n // on the instance. This allows for convenient, testable view composers.\n $callback = $this->buildClassEventCallback ( $class, $prefix );\n\n $this->addEventListener ( $name, $callback, $priority );\n\n return $callback;\n }",
"public function hook_by_reflection() {\n\t\t$current_class = get_class( $this );\n\t\tif ( ! in_array( $current_class, $this->_classes_hooked, true ) ) {\n\t\t\t$this->_classes_hooked[] = $current_class;\n\n\t\t\t$reflector = new \\ReflectionObject( $this );\n\t\t\tforeach ( $reflector->getMethods() as $method ) {\n\t\t\t\t$doc = $method->getDocComment();\n\t\t\t\t$arg_count = $method->getNumberOfParameters();\n\t\t\t\tif ( preg_match_all( '#\\* @(?P<type>filter|action)\\s+(?P<name>[a-z0-9\\-\\._]+)(?:,\\s+(?P<priority>\\d+))?#', $doc, $matches, PREG_SET_ORDER ) ) {\n\t\t\t\t\tforeach ( $matches as $match ) {\n\t\t\t\t\t\t$type = $match['type'];\n\t\t\t\t\t\t$name = $match['name'];\n\t\t\t\t\t\t$priority = empty( $match['priority'] ) ? 10 : intval( $match['priority'] );\n\t\t\t\t\t\t$callback = array( $this, $method->getName() );\n\t\t\t\t\t\tcall_user_func( 'add_' . $type, $name, $callback, $priority, $arg_count );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public function addSubscriberService($serviceId, $class)\n {\n foreach ($class::getSubscribedEvents() as $eventName => $params) {\n if (is_string($params)) {\n $this->addListenerService($eventName, array($serviceId, $params), 0);\n } elseif (is_string($params[0])) {\n $this->addListenerService($eventName, array($serviceId, $params[0]), isset($params[1]) ? $params[1] : 0);\n } else {\n foreach ($params as $listener) {\n $this->addListenerService($eventName, array($serviceId, $listener[0]), isset($listener[1]) ? $listener[1] : 0);\n }\n }\n }\n }",
"public function addHook(\n string $key,\n string $class,\n int $sortOrder,\n array $parameters = []\n ): void;",
"public function addClass($class) {\n foreach(func_get_args() as $arg) {\n if (is_array($arg)) {\n call_user_func_array(array($this, 'addClass'), $arg);\n } else {\n $class = trim($arg);\n if ($class) $this->classes[$class] = true;\n }\n }\n }",
"private function bindByCallable($class, Matcher $methodMatcher, array $interceptors)\n {\n $methods = (new \\ReflectionClass($class))->getMethods(\\ReflectionMethod::IS_PUBLIC);\n foreach ($methods as $method) {\n $isMethodMatch = ($methodMatcher($method->name, Matcher::TARGET_METHOD) === true);\n if ($isMethodMatch) {\n $this->bindInterceptors($method->name, $interceptors);\n }\n }\n }",
"public function attach(SplObserver $classes) {\n $this->_classes[] = $classes;\n $this->_log[] = \" The \".$classes->GET_tipo().\" \".$classes->GET_nome().\" was included\";\n }",
"public function bind(string $eventName, string $method, string $className):void\n\t{\n $this->events[$eventName][$method][] = $className;\n\t}",
"public function listen(string $eventClass, callable $callback): self\n {\n if (empty($this->listeners[$eventClass])) {\n $this->listeners[$eventClass] = [];\n }\n\n $this->listeners[$eventClass][] = $callback;\n return $this;\n }",
"public function addListener($eventName, $listenerClassName, $priority = 0);",
"public static function attachEventHandler($className)\n {\n $serviceManager = ServiceUtil::getManager();\n $serviceManager->getService('zikula')->attachEventHandler($className);\n }",
"function register($class, EventEmitterInterface $events);",
"public function addClass($classes)\n {\n $classes = (array)$classes;\n foreach ($classes as $class) {\n if (class_exists($class) || interface_exists($class)) {\n $this->classes[] = $class;\n } else {\n echo \"Class not exists: $class\\r\\n\";\n }\n }\n }",
"public function add($callable);",
"protected function buildClassEventCallback ( $class, $prefix )\n {\n $container = $this->container;\n\n list( $class, $method ) = $this->parseClassEvent ( $class, $prefix );\n\n // Once we have the class and method name, we can build the Closure to resolve\n // the instance out of the IoC container and call the method on it with the\n // given arguments that are passed to the Closure as the composer's data.\n return function () use ( $class, $method, $container ) {\n $callable = array ( $container->make ( $class ), $method );\n\n return call_user_func_array ( $callable, func_get_args () );\n };\n }",
"public function delegate($className, $callable, array $args = array(), array $chainClassConstructors = array());",
"public function addListener(callable $function)\n {\n if (is_callable($function)) {\n if (!in_array($function, $this->listeners)) {\n $this->listeners[] = $function;\n }\n }\n }",
"public function createClassListener($listener)\n {\n $container = $this->container;\n return function () use($listener, $container) {\n // If the listener has an @ sign, we will assume it is being used to delimit\n // the class name from the handle method name. This allows for handlers\n // to run multiple handler methods in a single class for convenience.\n $segments = explode('@', $listener);\n $method = count($segments) == 2 ? $segments[1] : 'handle';\n $callable = array($container->make($segments[0]), $method);\n // We will make a callable of the listener instance and a method that should\n // be called on that instance, then we will pass in the arguments that we\n // received in this method into this listener class instance's methods.\n $data = func_get_args();\n return call_user_func_array($callable, $data);\n };\n }",
"protected function addClassComposer($view, $class)\n {\n $name = 'composing: ' . $view;\n // When registering a class based view \"composer\", we will simply resolve the\n // classes from the application IoC container then call the compose method\n // on the instance. This allows for convenient, testable view composers.\n $callback = $this->buildClassComposerCallback($class);\n $this->events->listen($name, $callback);\n return $callback;\n }"
] | [
"0.6522519",
"0.6373002",
"0.63276345",
"0.62091917",
"0.61961615",
"0.61660266",
"0.61645377",
"0.6042228",
"0.60136944",
"0.60016495",
"0.5952385",
"0.5931512",
"0.5908514",
"0.5886108",
"0.58359754",
"0.58334297",
"0.5739124",
"0.57363325",
"0.57361656",
"0.57318646",
"0.5729644",
"0.5686258",
"0.5662206",
"0.5634201",
"0.55933523",
"0.55873436",
"0.55766183",
"0.5548574",
"0.5547047",
"0.5500908"
] | 0.7022454 | 0 |
Retrieve a new response object to be built and returned | public function newResponse()
{
return new Response();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function newResponse() {\n return new Response;\n\t}",
"public function getNewResponse()\n {\n return new Response();\n }",
"private function createResponse(){\n $request = $this->serviceContainer['request'];\n $rawResponse = $this->serviceContainer['databasehelper']->getResponse($request->requestMethod, $request->requestBody,$request->requestParam);\n\n $this->response = $this->serviceContainer['response']->getResponse($rawResponse, $this->serviceContainer['request']->requestMethod);\n\n }",
"static function response(){\n $reponse = new Response();\n return $reponse;\n }",
"public function newResponse()\n {\n return new \\Jaxon\\Response\\Response();\n }",
"public function newResponse(): Response\n {\n return $this->di()->newResponse();\n }",
"protected function constructResponse() {\n\t\tglobal $response;\n\n\t\t$response->returnJSON = 1;\n\t\t\n\t\tif ($this->hasErrors) {\n\t\t\t$response->status = 'error';\n\t\t\tif ( isset($this->config['onError']) ) {\n\t\t\t\t$response->action = $this->config['onError'];\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t$response->status = 'success';\n\t\t\tif ( isset($this->config['onSuccess']) ) {\n\t\t\t\t$response->action = $this->config['onSuccess'];\t\n\t\t\t}\n\t\t}\n\t}",
"function createResponse()\r\n\t{\r\n\t\t$response = new Art_Model_JSONRPC_Response;\r\n\t\t$response->setId($this->getId());\r\n\t\t\r\n\t\tif( !$this->isValid() )\r\n\t\t{\r\n\t\t\t$response->setError($this->_error_code);\r\n\t\t}\r\n\r\n\t\treturn $response;\r\n\t}",
"private function buildResponse()\n {\n $response = new Response();\n $headers = $this->getMock('Symfony\\Component\\HttpFoundation\\HeaderBag');\n $response->headers = $headers;\n\n return $response;\n }",
"public function getResponse () {}",
"function get_response() {\n\t\treturn $this->response;\n\t}",
"public static function make(){\n return new ApiResponse();\n }",
"public function getResponse() {}",
"abstract public function getResponse();",
"public function get_response();",
"public function createResponse($response)\n {\n $clone = clone $this;\n $clone->res = $response;\n return $clone;\n }",
"public function build() {\n $result = new \\Illuminate\\Http\\Response($this->response->jsonSerialize(), $this->status);\n return $result->withHeaders($this->headers);\n }",
"public function getResponse(): Response;",
"function __construct() {\n $this->response = new Response();\n }",
"public function getResponseObject()\n {\n return $this->response;\n }",
"protected function buildResponse()\n {\n switch ($this->request->getMethod()) {\n case 'GET':\n $this->get();\n break;\n case 'HEAD':\n $this->head();\n break;\n case 'POST':\n $this->post();\n break;\n case 'PUT':\n $this->put();\n break;\n case 'DELETE':\n $this->delete();\n break;\n case 'PATCH':\n $this->patch();\n break;\n case 'OPTIONS':\n $this->options();\n break;\n default:\n $this->respondWithMethodNotAllowed();\n }\n }",
"public function getResponse() {\n }",
"public function getResponse() {\n }",
"public function response() {\n $this->jsonApiGenerator->reset();\n $this->jsonApiGenerator->setEntities($this->getEntities());\n $this->jsonApiGenerator->setLinks($this->getLinks());\n $this->jsonApiGenerator->setMetadata($this->getMetadata());\n $this->jsonApiGenerator->setIncludes($this->getIncludes());\n\n // Build a return the response.\n $response = new ResourceResponse(\n $this->jsonApiGenerator->generate(FALSE),\n 200,\n $this->getHeaders()\n );\n\n // Add the response cacheability.\n $response->addCacheableDependency(\n $this->jsonApiGenerator\n );\n $response->addCacheableDependency((new CacheableMetadata())\n ->addCacheContexts($this->getCacheContexts())\n ->addCacheTags($this->getCacheTags()));\n\n return $response;\n }",
"public function getResponse();",
"public function getResponse();",
"public function getResponse();",
"public function getResponse();",
"public function getResponse();",
"public function getResponse();"
] | [
"0.7746077",
"0.76111037",
"0.73841053",
"0.7126345",
"0.70116127",
"0.70002943",
"0.68910205",
"0.6795417",
"0.6774197",
"0.66987085",
"0.6680642",
"0.6665503",
"0.6653453",
"0.66205806",
"0.6611658",
"0.6576203",
"0.6564591",
"0.652057",
"0.6482438",
"0.6445147",
"0.6397259",
"0.6391009",
"0.6391009",
"0.6373912",
"0.6358971",
"0.6358971",
"0.6358971",
"0.6358971",
"0.6358971",
"0.6358971"
] | 0.76446295 | 1 |
Generate JS include script tags | public function generateIncludes($indent = "")
{
/**
* Switch framework types
*/
$scripts = Array();
switch ($this->jsFramework) {
case self::JSFRAMEWORK_JQUERY:
$scripts[] = "<script src=\"//ajax.googleapis.com/ajax/libs/jquery/{$this->jQueryVersion}/jquery.min.js\"></script>";
$scripts[] = "<script>window.jQuery || document.write('<script src=\"{$this->jsDir}/jquery-{$this->jQueryVersion}.min.js\"><\/script>')</script>";
break;
}
/**
* Add asyncphp.js
*/
$scripts[] = "<script src='{$this->jsDir}/{$this->jsAsyncPhp}' type='text/javascript'></script>";
/**
* Build and return
*/
return $indent.implode("\n{$indent}", $scripts)."\n";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function inclureJs(){\n foreach (self::$_instance->script as $fich){\n echo '<script type=\"text/javascript\" src=\"'.$fich.'\"></script>';\n }\n }",
"public function jsBuilder() {\r\n $js = glob($this->js_folder.'*.js');\r\n $result = null;\r\n foreach ($js as $value) {\r\n $result .= '<script src=\"'.Config::getConfig(Config::$base).$value.'\" type=\"text/javascript\"></script>';\r\n }\r\n return $result;\r\n }",
"function buildScript() {\r\n // For each js file\r\n $result = \"\";\r\n $jsFiles = ['styles.js', 'init.js', 'dialog.js', 'mdlContainer.js', 'rules.js', 'toast.js', 'info.js', 'rollback.js', 'ui.js', 'whodunnit.js', 'talkPage.js']; // List fo files in order to import \r\n foreach($jsFiles as $file) {\r\n $result .= file_get_contents($file) . \"\\n\"; // get contents and append\r\n }\r\n\r\n $files = glob('./*.html', GLOB_BRACE); // for each html file\r\n foreach($files as $file) {\r\n $result = str_replace(\"[[[[include \". end(explode(\"/\", $file)). \"]]]]\", file_get_contents($file), $result); // replace include statements\r\n }\r\n return '\r\n// <nowiki>\r\n'. $result . '\r\n $( document ).ready( function () {\r\n // Init when page loaded\r\n try {\r\n initwikiEdit();\r\n } catch (err) {\r\n mw.notify(\"Sorry, an error occured while loading RedWarn.\");\r\n console.error(err);\r\n }\r\n } );\r\n// </nowiki>\r\n ';\r\n}",
"function awd_write_frameworkscript_tags($awd_file=null){\r\n\tif(!isset($awd_file)){\r\n\t\techo \"<script src=\\\"https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js\\\"></script>\";\r\n\t\techo \"<link rel=\\\"stylesheet\\\" type=\\\"text/css\\\" href=\\\"https://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css\\\" />\";\r\n\t\techo \"<script src=\\\"https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js\\\"></script>\";\r\n\t\techo \"<script type='text/javascript'>var AWD_BASEURLFrameWork = \\\"\" . AWD_HTML_FRAMEWORK_PATH . \"\\\";</script>\";\r\n\t\techo \"<script src=\\\"\" . AWD_HTML_FRAMEWORK_PATH . \"/js/AWD_Jquery.js\\\" type=\\\"text/javascript\\\"></script>\";\r\n\t\techo \"<script src=\\\"\" . AWD_HTML_FRAMEWORK_PATH . \"/js/AWD\" . $awd_file . \".js?\" . date(\"U\") . \"\\\" type=\\\"text/javascript\\\"></script>\";\r\n\t}else{\r\n\t\techo \"<script src=\\\"\" . AWD_HTML_FRAMEWORK_PATH . \"/js/AWD-\" . $awd_file . \".js?\" . date(\"U\") . \"\\\" type=\\\"text/javascript\\\"></script>\";\t\r\n\t}\r\n}",
"public function js()\n {\n $jsCollection = $this->sortDependencies($this->collection->get('js'), 'js');\n $output = '';\n\n foreach ($jsCollection as $key => $value) {\n $output .= '<script type=\"text/javascript\" src=\"'.$value.'\"></script>'.\"\\n\";\n }\n\n return $output;\n }",
"protected function getScripts()\n {\n return implode( \"\\n\", array(\n '<script type=\"text/javascript\" src=\"lib/plugins/image.js\"></script>',\n '<script type=\"text/javascript\" src=\"lib/plugins/ajaxfileupload.min.js\"></script>',\n ) );\n }",
"public function includeScriptAssets()\n {\n $assetsUrl = $this->getOption('assetsUrl');\n $jsUrl = $this->getOption('jsUrl') . 'mgr/';\n $jsSourceUrl = $assetsUrl . '../../../source/js/mgr/';\n\n if ($this->getOption('debug') && $assetsUrl != MODX_ASSETS_URL . 'components/toggletvset/') {\n $this->modx->controller->addLastJavascript($jsSourceUrl . 'toggletvset.js?v=v' . $this->version);\n } else {\n $this->modx->controller->addLastJavascript($jsUrl . 'toggletvset.js?v=v' . $this->version);\n }\n\t\t\t\t$this->modx->controller->addHtml('<script type=\"text/javascript\">' .\n 'var ToggleTVSet = ' . json_encode(array('options' => array(\n 'debug' => $this->getOption('debug'),\n 'toggleTVs' => $this->getOption('toggletvs'),\n 'toggleTVsClearHidden' => $this->getBooleanOption('toggletvs_clearhidden'),\n 'hideTVs' => $this->getOption('hidetvs'),\n 'showTVs' => $this->getOption('showtvs'),\n\t\t\t\t\t\t\t\t'showOptionTvs' => $this->getOption('showOptionTvs')\n )), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . ';' . '</script>');\n }",
"function includeScript($script = \"\", $options = array()) {\n\t\tif ($script == \"\") {\n\t\t\t$files = scandir(JS);\n\t\t\t$javascript = '';\n\n\t\t\tforeach ($files as $file) {\n\t\t\t\tif (substr($file, -3) == '.js') {\n\t\t\t\t\t$javascript .= file_get_contents(JS . \"{$file}\") . \"\\n\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$javascript = file_get_contents(JS . \"$script.js\") . \"\\n\\n\";\n\t\t}\n\t\treturn $this->codeBlock(\"\\n\\n\" . $javascript, $options);\n\t}",
"public function rel_include_scripts() {\n \n }",
"function includeFiles()\n {\n foreach ($this->listFiles() as $app => $files) {\n foreach ($files as $file) {\n echo '<script type=\"text/javascript\" src=\"' . $file['u'] . '\"></script>' . \"\\n\";\n }\n }\n }",
"private function printJsIncludes($includes) {\n foreach($includes as $include) {\n echo \"\\t\" . '<script src=\"' . $include . '\"></script>' . \"\\n\";\n }\n }",
"static public function getJSTag(){\n\t\t$result = PHP_EOL;\n\t\tforeach(self::$JS as $file)\n\t\t\t$result .= \"\\t\\t<script src=\\\"\" . self::$BASE_PATH . '/' . $file . \"\\\" type=\\\"text/javascript\\\"></script>\" . PHP_EOL;\n\t\tforeach(self::$standaloneJS as $file)\n\t\t\t$result .= \"\\t\\t<script src=\\\"\" . self::$BASE_PATH . '/' . $file . \"\\\" type=\\\"text/javascript\\\"></script>\" . PHP_EOL;\t\t\n if (count(self::$inlineJS)) {\n $result .= \"\\t\\t<script type=\\\"text/javascript\\\">\" . implode(PHP_EOL . self::$inlineJS) . \"</script>\";\n }\n\n\t\treturn $result;\n\t}",
"function writeScript() {\n echo \"\n <script src='js/jquery-slim.min.js'></script>\n <script src='js/popper.js'></script>\n <script src='js/bootstrap.min.js'></script>\n <script src='js/bootstrap-4-navbar.js'></script>\n \";\n }",
"public function outputJavaScript()\n\t{\n\t\t$result = '';\n\t\tforeach ($this->_scriptFiles as $scriptFile) {\n\t\t\t$result .= \"<script type='text/javascript' src='$scriptFile'></script>\" . PHP_EOL;\n\t\t}\n\t\tforeach ($this->_scripts as $script) {\n\t\t\t$result .= \"<script type='text/javascript'>/* <![CDATA[ */ $script /* ]]> */</script>\" . PHP_EOL;\n\t\t}\n\t\treturn $result;\n\t}",
"function includeJs($path) {\n echo '<script src=\"' . $this->getUrl($path) . '\"></script>';\n }",
"private function _generate_js(){\n\t\t$this->_cl_convert();\n\t\t$JS = PHP_EOL.'/* -- S E A R C H -- */';\t\n\t\t$JS .= sprintf('%s%s?%s\";',PHP_EOL,host_url('/api3/finder.php'),$this->httpq);\n\n\t\treturn '<!-- J S S T A R T --><script>'.$JS.'</script><!-- J S E N D -->';\n\t}",
"public static function js() {\n\t\t$args = func_get_args();\n\t\t$html = '';\n\t\tforeach ($args as $file) {\n\t\t\tif ( ! preg_match('/^(http|https):\\/\\/(.*)$/', $file)) {\n\t\t\t\t$file = BASE_PATH.'/js/'.$file;\n\t\t\t\tif ( ! preg_match('/^(.*)\\.js$/', $file))\n\t\t\t\t\t$file .= '.js';\n\n\t\t\t\tif (Config::load('app.environment') == 'production') {\n\t\t\t\t\tif (file_exists(str_replace('.js', '.min.js', $file)));\n\t\t\t\t\t\t$file = str_replace('.js', '.min.js', $file);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$html .= '<script type=\"text/javascript\" src=\"'.$file.'\"></script>';\n\t\t}\n\n\t\treturn $html;\n\t}",
"public static function javascript()\n\t{\n\t\treturn '<script defer src=\"'.self::config('url').'init.min.js.php\"></script>'.\"\\n\";\n\t}",
"function incJsFile($script,$jsCode = false) {\n\t\tif(!$jsCode)\n\t\t\t$js = '<script src=\"'.$script.'\" type=\"text/javascript\"><!-- //--></script>';\n\t\telse\n\t\t{\n\t\t\t$js .= '<script type=\"text/javascript\">\n\t\t\t\t'.$script.'\n\t\t\t</script>';\n\t\t}\n\t\t$GLOBALS['TSFE']->additionalHeaderData[$this->extKey] .= $js;\n\t}",
"function RenderJS()\n\t{\n\t\tif (!array_key_exists('*arrJavaScript', $GLOBALS) || !is_array($GLOBALS['*arrJavaScript']))\n\t\t{\n\t\t\t// There is no javascript to include\n\t\t\treturn;\n\t\t}\n\n\t\t// Remove any duplicates from the list\n\t\t$arrJsFiles = array_unique($GLOBALS['*arrJavaScript']);\n\n\t\tforeach($arrJsFiles as $strJsFile)\n\t\t{\n\t\t\t$strJsFileRelativePath = $this->_GetJsFileRelativePath($strJsFile .\".js\");\n\t\t\techo \"\\t\\t<script type='text/javascript' src='$strJsFileRelativePath' ></script>\\n\";\n\t\t\t//echo \"\\t\\t<script type='text/javascript' src='javascript/$strJsFile.js' ></script>\\n\";\n\t\t}\n\t}",
"protected function includeAssets(){\n\t\t/** @var TYPO3\\CMS\\Core\\Page\\PageRenderer $pageRenderer */\n\t\t$pageRenderer = $GLOBALS['TSFE']->getPageRenderer();\n\t\t$siteRelPath = ExtensionManagementUtility::siteRelPath('kiwi_popup');\n\t\t$resourcesPath = 'Resources/Public/';\n\t\t\n\t\t// include jQuery?\n\t\tif ($this->settings['jQueryInclude']) {\n\t\t\t$pageRenderer->addJsFooterLibrary('jQuery', $siteRelPath . $resourcesPath . 'Js/jquery-3.1.0.min.js');\n\t\t}\n\t\t\n\t\t// add main js\n\t\t$pageRenderer->addJsFooterFile($siteRelPath.'Resources/Public/Js/kiwi_popup.js');\n\t\t\n\t}",
"function js_template_tools()\n\t{\n\t\treturn \"\n\t\t\t\t<script language='javascript'>\n \t\t\t\tvar template_bit_ids = '<!--IPB.TEMPLATE_BIT_IDS-->';\n\t\t\t\t</script>\n\t\t\t\t\";\n\t}",
"function addHeaderScripts() {\n\t\t\t$html = \"\\r\\n<!-- processing embed scripts -->\\r\\n\";\n\t\t\t$html .= '<script src=\"'.get_bloginfo('url').'/wp-content/plugins/wordpress-processing-embed/data/pe_deployJava.js\"></script>';\n\t\t\t$html .= \"\\r\\n\\r\\n\";\n\t\t\techo($html);\n\t\t}",
"public function generateJSInjectionFile(){\n $elements = '';\n foreach($this->response() as $img){\n $element = '\n <div class=\"et_pb_gallery_item et_pb_bg_layout_light et-pb-active-slide\">\n <div class=\"et_pb_gallery_image landscape\">\n <a href=\"'.$img.'\" title=\"\">\n <img src=\"'.$img.'\" alt=\"\">\n <span class=\"et_overlay\"></span>\n </a>\n </div></div> \n ';\n $elements .= $element;\n }\n $script = 'document.addEventListener(\"DOMContentLoaded\", function() {';\n $script .= 'let checker = document.getElementById(\"GoogleSlider\"); if(checker != null){';\n $script .= 'document.getElementsByClassName(\"et_pb_gallery_items\")[0].innerHTML = `'.$elements. '`;';\n $script .= '}';\n $script .= '});';\n\n file_put_contents($this->saveDirJs , $script);\n }",
"function include_js_script($group = null)\n {\n $group_arr = array('css');\n if (null != $group) {\n array_push($group_arr, $group);\n }\n $assets_url = assets_url($group_arr);\n return \"<script type=\\\"text/javascript\\\" src=\\\"${assets_url}\\\"></script>\";\n }",
"function javascript_include_tag($uri = '')\n\t{\n\t\t$ci = get_instance();\n $ci->load->helper('url');\n\t\t$ci->config->load('azot');\n\t\t$assets_folder = $ci->config->item('assets_folder');\n\t\t$js_folder = $ci->config->item('js_folder');\n\t\t\n\t\tif (empty($assets_folder) || empty($uri))\n\t\t{\n\t\t\treturn '';\n\t\t}\n\t\t\n\t\treturn '<script src=\"' . base_url() . $assets_folder . '/' . $js_folder . '/' . $uri . '\"></script>';\n\t}",
"protected abstract function getScriptIncludes();",
"function csr_js_out() {\n\tglobal $conf;\n\tglobal $INPUT;\n\n\t// decide from where to get the layout\n\t$layout = $INPUT->str('l');\n\t$allowedlayouts = array('layout', 'layout2', 'layout3', 'layout-owee');\n\tif (!in_array($layout, $allowedlayouts)) {\n\t\t$layout = $allowedlayouts[0];\n\t}\n\t// module\n\t$selectedmodule = trim(preg_replace('/[^\\w-]+/', '', $INPUT->str('m')));\n\n\t// The generated script depends on some dynamic options\n\tlist(/* $timestamp */, $cache_ok, $modules,\t$files,\t$cache,\t/* $replacements */) = CompressedLayout::checkCache($layout, $selectedmodule, 'js');\n\n\t// handle conditional request, based on cache state\n\t// This may exit if a cache can be used\n\thttp_cached($cache->cache, $cache_ok);\n\n\t// start output buffering and build the script\n\tob_start();\n\n\t// load files\n\tforeach ($modules as $module) {\n\t\tforeach ($files[$module] as $file => $location) {\n\t\t\tif (!file_exists($file)) continue;\n\t\t\t$ismin = (substr($file, -7) == '.min.js');\n\t\t\t$debugjs = ($conf['allowdebug'] && strpos($file, DOKU_INC . 'lib/scripts/') !== 0);\n\n\t\t\techo \"\\n\\n/* XXXXXXXXXX begin of \" . str_replace(DOKU_INC, '', $file) . \" XXXXXXXXXX */\\n\\n\";\n\t\t\tif ($ismin) echo \"\\n/* BEGIN NOCOMPRESS */\\n\";\n\t\t\tif ($debugjs) echo \"\\ntry {\\n\";\n\t\t\tjs_load($file);\n\t\t\tif ($debugjs) echo \"\\n} catch (e) {\\n logError(e, '\" . str_replace(DOKU_INC, '', $file) . \"');\\n}\\n\";\n\t\t\tif ($ismin) echo \"\\n/* END NOCOMPRESS */\\n\";\n\t\t\techo \"\\n\\n/* XXXXXXXXXX end of \" . str_replace(DOKU_INC, '', $file) . \" XXXXXXXXXX */\\n\\n\";\n\t\t}\n\n\t}\n\n\t// end output buffering and get contents\n\t$js = ob_get_contents();\n\tob_end_clean();\n\n\t// strip any source maps\n\tstripsourcemaps($js);\n\n\t// compress whitespace and comments\n\tif ($conf['compress']) {\n\t\t$js = js_compress($js);\n\t}\n\n\t$js .= \"\\n\"; // https://bugzilla.mozilla.org/show_bug.cgi?id=316033\n\n\thttp_cached_finish($cache->cache, $js);\n}",
"public function postlistr_js_template() {\n\t\tinclude_once( 'postlistr-tmpl.php' );\n\t}",
"public function script($src);"
] | [
"0.7106392",
"0.7093061",
"0.7010081",
"0.69503284",
"0.6869735",
"0.68481773",
"0.6846428",
"0.682068",
"0.6776238",
"0.67743534",
"0.67663735",
"0.6760286",
"0.6722747",
"0.6711948",
"0.6711467",
"0.67092305",
"0.66634184",
"0.6644601",
"0.66345006",
"0.6631017",
"0.65942866",
"0.65821964",
"0.658106",
"0.65801305",
"0.6577686",
"0.65766674",
"0.6558324",
"0.6547628",
"0.6539086",
"0.6534567"
] | 0.71818966 | 0 |
create datetime from DateInterval | public static function createFromDateInterval($interval) {
$result = new \DateTime();
$result->setDate($interval->y, $interval->m, $interval->d);
$result->setTime($interval->h, $interval->i, $interval->s);
return $result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function convertIntervalToDate($interval){\n return new DateTime($interval->format('%H:%i:%s'));\n}",
"public function getDateInterval(): DateInterval;",
"public function add($interval): DateTime {\n $dt = $this->getDateTime()->add(Intervals::create($interval));\n return new static($dt);\n }",
"public function getInterval()\n {\n return new DateInterval('P1D');\n }",
"public static function createInterval($interval)\r\n\t{\r\n\t\treturn\tisset(static::$intervals[$interval])\r\n\t\t\t\t?\tstatic::$intervals[$interval]\r\n\t\t\t\t:\tstatic::$intervals[$interval] = $interval[0] === 'P'\r\n\t\t\t\t\t?\tnew \\DateInterval($interval)\r\n\t\t\t\t\t:\t\\DateInterval::createFromDateString($interval);\r\n\t}",
"public function createIntervalSecond(): DateContainerInterface\n {\n return $this->createFromFormat('Y-m-d H:i:s');\n }",
"function increment_datetime(\n \\DateInterval $interval,\n \\DateTimeInterface $reset,\n \\DateTimeInterface $initial\n) : \\Generator {\n\n $generator = rotatable(\n $initial,\n function (\\DateTimeInterface $datetime) use ($interval) : \\DateTimeInterface {\n return date_add(clone $datetime, $interval);\n },\n function (\\DateTimeInterface $datetime) use ($reset) : bool {\n return $datetime === $reset;\n }\n );\n\n return $generator;\n}",
"public static function createIntervalFromSpec($interval_spec)\r\n\t{\r\n\t\treturn\tisset(static::$intervals[$interval_spec])\r\n\t\t\t\t?\tstatic::$intervals[$interval_spec]\r\n\t\t\t\t:\tstatic::$intervals[$interval_spec] = new \\DateInterval($interval_spec);\r\n\t}",
"public function sub($interval): DateTime {\n $dt = $this->getDateTime()->sub(Intervals::create($interval));\n return new static($dt);\n }",
"public function createIntervalMinute(): DateContainerInterface\n {\n return $this->createFromFormat('Y-m-d H:i');\n }",
"private function getNormalizedDateInterval(): DateInterval\n {\n $baseDate = (new DateTimeImmutable())->setTimestamp(0);\n $nextDate = $baseDate->sub($this->duration);\n\n return $nextDate->diff($baseDate);\n }",
"public static function factory( string $dateIntervalString ) : DateInterval\n {\n return self::assertDateIntervalString( $dateIntervalString );\n }",
"public function plus($interval): self\n\t{\n\t\tif (is_numeric($interval)) {\n\t\t\t$interval .= ' seconds';\n\t\t}\n\n\t\t$dateTime = clone $this->dateTime;\n\t\t$dateTime->modify('+' . (string) $interval);\n\n\t\treturn new self($dateTime);\n\t}",
"public function getStart($interval){\n\t\t\t$end = time();\n\t\t\t$twentyFour = $end - 86400;\n\t\t\t$start;\n\t\t\tswitch ($interval) {\n\t\t\t\tcase 0:\n \t\t\t\t//milliseconds in an hour\n\t\t\t\t$start = $end-3600;\n\t\t\t\tbreak;\n\t\t\t\tcase 1:\n \t\t\t\t//milliseconds in 12 hours\n\t\t\t\t$start = $end-43200;\n\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t$start = $end-86400;\n\t\t\t\tbreak;\t\t\n\t\t\t}\n\t\t\treturn $start;\n\t\t}",
"public function testDateIntervalToSeconds()\n {\n $reference = new \\DateTimeImmutable();\n\n $this->assertEquals(self::$utDate->DateIntervalToSeconds(\n $reference,\n $reference), 0);\n\n\n $endTime = $reference->add(new \\DateInterval(\"PT10M\")); // add 10 Minutes\n\n $this->assertEquals(\n self::$utDate->DateIntervalToSeconds(\n $endTime,\n $reference\n ), 600);\n }",
"public function datetimeIntervalClause($date, $interval) {\n\t\treturn $this->realConn->datetimeIntervalClause($date, $interval);\n\t}",
"public function minus($interval): self\n\t{\n\t\tif (is_numeric($interval)) {\n\t\t\t$interval .= ' seconds';\n\t\t}\n\n\t\t$dateTime = clone $this->dateTime;\n\t\t$dateTime->modify('-' . (string) $interval);\n\n\t\treturn new self($dateTime);\n\t}",
"public function getTimestampInterval(): float;",
"public function createIntervalDay(): DateContainerInterface\n {\n return $this->createFromFormat('Y-m-d');\n }",
"public function getNextDeliveryTime($interval = null) {\n\n\t\t$now = new DateTime();\n\t\t$dt = new DateTime();\n\n\t\tswitch ($interval) {\n\t\t\tcase self::HOUR :\n\t\t\t\t$dt->modify('+1 hour');\n\t\t\t\t$h = $dt->format('H');\n\t\t\t\t$dt->setTime($h, 0, 0);\n\t\t\t\tbreak;\n\n\t\t\tcase self::SIX_HOURS :\n\t\t\t\tforeach ([0, 6, 12, 18, 24] as $h) {\n\t\t\t\t\t$dt->setTime($h, 0, 0);\n\t\t\t\t\tif ($dt->getTimestamp() > $now->getTimestamp()) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase self::TWELVE_HOURS :\n\t\t\t\tforeach ([0, 12, 24] as $h) {\n\t\t\t\t\t$dt->setTime($h, 0, 0);\n\t\t\t\t\tif ($dt->getTimestamp() > $now->getTimestamp()) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase self::DAY :\n\t\t\t\t$dt->modify('+1 day');\n\t\t\t\t$dt->setTime(0, 0, 0);\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn $dt->getTimestamp();\n\t}",
"static function add( $date, $interval ) {\n\t\t$date = new DateTime( $date );\n\t\t$date->add(new DateInterval( $interval ));\n\t\treturn $date->format('Y-m-d H:i:s');\n\t}",
"public function getDateInterval(): DateInterval\n {\n return $this->startDate->diff($this->endDate);\n }",
"public function getNewDateInterval(\\DatePeriod $period)\n {\n $days = $this->getDaysInPeriod($period);\n if (!$days) {\n return new \\DateInterval(\"PT\" . $period->getDateInterval()->h . \"H\");\n } else {\n return new \\DateInterval(\"P\" . $days . \"D\");\n }\n }",
"private function getSyncFromTime(\\DateInterval $subInterval = null)\n {\n if ($this->syncFromTime) {\n $fromTime = clone $this->syncFromTime;\n } else {\n $fromTime = new \\DateTime('now', new \\DateTimeZone('UTC'));\n if ($subInterval) {\n $fromTime->sub($subInterval);\n }\n }\n\n return $fromTime;\n }",
"function dateAddDays($date, $interval, $format){\n $datetime = date_create($date);\n date_add($datetime, date_interval_create_from_date_string($interval)); \n $result = date_format($datetime, $format);\n return $result;\n }",
"private static function getDuration($duration): DateInterval\n {\n if ($duration instanceof DateInterval) {\n return $duration;\n }\n\n return Duration::create($duration);\n }",
"public function add($interval) : DateTime\n {\n if ($interval instanceof DateInterval) {\n $this->value->add($interval);\n return $this;\n }\n\n $i = $this->tryToCreateIntervalByDesignators($interval);\n if (!$i) {\n $i = DateInterval::createFromDateString($interval);\n }\n\n $this->value->add($i);\n\n return $this;\n }",
"function DateDiff( $interval, $date1, $date2 )\n{\n\t$timedifference = $date2 - $date1;\n\n\tswitch ($interval)\n\t{\n\t\tcase \"w\":\n\t\t\t$retval = bcdiv($timedifference ,604800);\n\t\t\tbreak;\n\t\tcase \"d\":\n\t\t\t$retval = bcdiv($timedifference,86400);\n\t\t\tbreak;\n\t\tcase \"h\":\n\t\t\t$retval = bcdiv($timedifference,3600);\n\t\t\tbreak;\n\t\tcase \"n\":\n\t\t\t$retval = bcdiv($timedifference,60);\n\t\t\tbreak;\n\t\tdefault:\n\t\tcase \"s\":\n\t\t\t$retval = $timedifference;\n\t\t\tbreak;\n\t}\n\treturn $retval;\n}",
"public function createIntervalHour(): DateContainerInterface\n {\n return $this->createFromFormat('Y-m-d H');\n }",
"public static function dateAdd($date, $interval) {\r\n return strtotime(date(\"Y-m-d\", $date).\" \".$interval);\r\n }"
] | [
"0.72795635",
"0.6428296",
"0.6036088",
"0.5873899",
"0.58602154",
"0.581652",
"0.5783894",
"0.5676332",
"0.5651252",
"0.55988777",
"0.54440373",
"0.5369848",
"0.536419",
"0.5126084",
"0.51109904",
"0.508912",
"0.5083146",
"0.5081041",
"0.5074352",
"0.50017494",
"0.49957365",
"0.49904644",
"0.49645883",
"0.49522695",
"0.49494335",
"0.494932",
"0.49256185",
"0.49041778",
"0.4891637",
"0.4875996"
] | 0.6735384 | 1 |
Rewrites states selectors in a render element. When a structure of elements is being altered, their HTML selectors may change. In such cases calling this method will check if there are any states in element and its children, and rewrite selectors in those states. | public static function rewriteStatesSelector(array &$elements, $search, $replace) {
if (!empty($elements['#states'])) {
foreach ($elements['#states'] as $state => $ids) {
static::processStatesArray($elements['#states'][$state], $search, $replace);
}
}
foreach (Element::children($elements) as $key) {
static::rewriteStatesSelector($elements[$key], $search, $replace);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function processStates(array &$elements) {\n $elements['#attached']['library'][] = 'core/drupal.states';\n // Elements of '#type' => 'item' are not actual form input elements, but we\n // still want to be able to show/hide them. Since there's no actual HTML\n // input element available, setting #attributes does not make sense, but a\n // wrapper is available, so setting #wrapper_attributes makes it work.\n $key = ($elements['#type'] == 'item') ? '#wrapper_attributes' : '#attributes';\n $elements[$key]['data-drupal-states'] = Json::encode($elements['#states']);\n }",
"public function clearStateIfDoneRendering();",
"function er_field_group_build_pre_render_alter(&$element){\n\t// d($element, 'element');\n\t\n\t// This IF block was used for the User Profile\n\tif (isset($element['group_er_certs']) && isset($element['group_er_data'])){\n\t\t$element['group_er_certs']['#states'] = array(\n\t \t'visible' => array(\n\t \t':input[name=\"field_er_rcr_completion_bool[und]\"]' => array('value' => TRUE),\n\t \t)\n\t );\t\n\t\t$element['group_er_data_collection']['#states'] = array(\n\t \t'visible' => array(\n\t \t':input[name=\"field_er_collecting_data_bool[und]\"]' => array('checked' => TRUE),\n\t \t)\n\t );\t\t\t\n\t}\n\t\n\t// if (isset($element['group_er_profile']['group_er_inst'])){\n\t\t// d('findthis');\n\t\t// $element['group_er_profile']['group_er_inst']['#attributes']['class'][] = 'findthis';\n\t\t// $element['group_er_profile']['group_er_inst']['#states'] = array(\n\t \t// 'required' => array(\n\t \t// ':input[name=\"field_er_inst_add_bool[und]\"]' => array('checked' => TRUE),\n\t \t// )\n\t // );\t\t\t\n\t\t// d($element['group_er_profile']['group_er_inst'], 'inst fieldgroup');\n\t// }\n\t\t\n\t// This IF block is used for the Publications Content Type\t\t\n\tif (isset($element['group_er_journal'])){\n\t\t// Make Publication Info group visible/invisible depending on the selection\n\t\t\n\t\t// values for Publication Type field\n\t\t$none = array(\n\t\t\t':input[name=\"field_er_publication_type[und]\"]' => array(\n\t\t\t\t'value' => '_none'),\n\t\t);\n\t\t$abstract = array(\n\t\t\t':input[name=\"field_er_publication_type[und]\"]' => array(\n\t\t\t\t'value' => 'Abstract'),\n\t\t); \n\t\t$thesis = array(\n\t\t\t':input[name=\"field_er_publication_type[und]\"]' => array(\n\t\t\t\t'value' => 'Thesis/Dissertation'),\n\t\t); \n\t\t$internet = array(\n\t\t\t':input[name=\"field_er_publication_type[und]\"]' => array(\n\t\t\t\t'value' => 'Internet Dissemination'),\n\t\t); \n\t\t// 'Publication Information' group is invisible if:\n\t\t// ... 'Publication Type' contains values:\n\t\t// ... '- None -', Abstract, Thesis, I-net Diss.\n\t\t// 'Publication Information' group is visible if:\n\t\t// ... 'Publication Type' contains values other values:\n\t\t// ... (eg. Journal Article, Book)\n\t\t\n\t\t\t// This was the old version that worked with field_group version 1.3\n\t\t// The patch includes the 'id' element that gets stripped for the fieldset 'fieldgroup' cck field\n\t\t\t\t\n\t\t//$element['group_er_journal']['#states'] = array(\n\t\t\t//'invisible'=> array($none, $abstract, $thesis, $internet),\n\t\t//);\n\n\t\t$element['group_er_journal'] += array(\n\t\t'#states' => array(\n\t\t\t'invisible'=> array($none, $abstract, $thesis, $internet),\n\t\t\t),\n\t\t\t'#id' => 'group_er_journal',\n\t\t);\n\t}\n\n}",
"public function flushStateIfDoneRendering(): void;",
"public function flushState()\n {\n $this->renderCount = 0;\n $this->renderedOnce = [];\n\n $this->flushSections();\n $this->flushStacks();\n $this->flushFragments();\n }",
"private function handleNodeStateChanges()\n {\n $input = $this->getEnvironment()->getInputProvider();\n if (($modelId = $input->getParameter('ptg')) && ($providerName = $input->getParameter('provider'))) {\n $states = $this->getTreeNodeStates();\n // Check if the open/close all has been triggered or just a model.\n if ($modelId == 'all') {\n if ($states->isAllOpen()) {\n $states->resetAll();\n }\n $states->setAllOpen($states->isAllOpen());\n } else {\n $this->toggleModel($providerName, $modelId);\n }\n\n ViewHelpers::redirectHome($this->environment);\n }\n }",
"public function testProcessStates() {\n // Create a form element without specifying a '#type'.\n $form_element = [\n '#markup' => 'Custom markup',\n '#states' => [\n 'visible' => [\n ':select[name=\"method\"]' => ['value' => 'email'],\n ],\n ],\n ];\n FormHelper::processStates($form_element);\n $this->assertArrayHasKey('#attributes', $form_element);\n }",
"public function flushStateIfDoneRendering()\n {\n if ($this->doneRendering()) {\n $this->flushState();\n }\n }",
"private function fixInactiveDivisions(): bool\n {\n if($this->isValid() || $this->generated){ return false; }\n $children = ComponentFilter::rewriteKeys($this->parentComponent->getChildren(ComponentFilter::floating(true)));\n $this->divisions = [];\n foreach ($children as $key => $component) {\n if($component->isActive()){\n $this->divisions[] = clone($this->originalDivisions[$key]);\n }\n }\n return true;\n }",
"public function prepareElements()\n {\n if ( false === $this->isMultiLanguage() )\n {\n $this->remove( 'all' );\n }\n }",
"private function addReplaceOrderState()\n {\n $return = true;\n $treated_names = [\n 'en' => 'Treated',\n 'fr' => 'Traitée',\n 'nl' => 'Behandeld',\n ];\n\n $id_order_state = null;\n $order_states = OrderState::getOrderStates($this->context->language->id);\n if (!is_array($order_states)) {\n return false;\n }\n\n foreach ($order_states as $order_state) {\n if (in_array($order_state['name'], array_values($treated_names))) {\n // testing int 0 for null\n $id_order_state = (int) $order_state['id_order_state'];\n break;\n }\n }\n\n // Creates new OrderState if id still null (ie. not found)\n $order_state = new OrderState($id_order_state);\n $order_state->name = $this->getTranslatedFields($treated_names);\n\n $order_state->color = '#ddff88';\n $order_state->hidden = true;\n $order_state->logable = true;\n $order_state->paid = true;\n\n $return = $return && $order_state->save();\n $return = $return && Configuration::updateGlobalValue('BPOST_ORDER_STATE_TREATED', (int) $order_state->id);\n\n $this->setIcon(_PS_MODULE_DIR_.$this->name.'/views/img/icons/box_closed.png', _PS_IMG_DIR_.'os/'.(int) $order_state->id.'.gif');\n\n return $return;\n }",
"public function render(AbstractElement $element) {\n /* Removes checkbox 'use Website', etc., after the version (normally this happens when a settings is multilevel). */\n $element\n ->unsCanUseWebsiteValue()\n ->unsCanUseDefaultValue();\n\n return parent::render($element);\n }",
"protected function _setState($container) {\r\n \t\r\n \tforeach($container as $page) {\r\n \t\t\r\n \t\t$page->visible = false;\r\n \t\tif(!$page->hidden) {\r\n \t\t\t$page->visible = true;\r\n \t\t}\r\n \t\t\r\n\t\t\tif($page->selected) {\r\n\t \t\t$this->_setState($page->pages);\r\n\t \t\t\t\t\r\n\t\t\t}\r\n \t}\r\n\r\n \t\r\n \treturn $container;\r\n }",
"private function createSelectorsFromElementsArray()\n {\n foreach ($this->elements as $key => $element) {\n $this->addSelector($key, $this->selectorFactory->create($element));\n }\n }",
"public function setRenderedElement($renderedElement) {\n\t\t$this->renderedElement = $renderedElement;\n\t}",
"public function restoreDescendants();",
"public function ReplaceWith( $element ){\r\n\t\t$elements = array();\r\n\t\t// Step through all siblings\r\n\t\tforeach( $this->parent->elements as $child_element ){\r\n\t\t\tif( $child_element == $this ){\r\n\t\t\t\t// Element to be replaced\r\n\t\t\t\t$this->Remove();\r\n\t\t\t\t// Insert new elements\r\n\t\t\t\tif( is_array( $element ) ){\r\n\t\t\t\t\tforeach( $element as $item ){\r\n\t\t\t\t\t\t$item->SetParent( $this->parent );\r\n\t\t\t\t\t\t$elements[] = $item;\r\n\t\t\t\t\t\t$this->ElementAdded( $item );\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$element->SetParent( $this->parent );\r\n\t\t\t\t\t$elements[] = $element;\r\n\t\t\t\t\t$this->ElementAdded( $element );\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$elements[] = $child_element;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->parent->elements = $elements;\r\n\t}",
"public function rebuildNestedSetNodes()\n\t{\n\t\t$errorFound = false;\n\t\t\n\t\t$params = [\n\t\t\t'adjacentTable' => 'categories',\n\t\t\t'nestedTable' => 'categories',\n\t\t];\n\t\t$transformer = new AdjacentToNested($params);\n\t\t\n\t\t$languages = Language::query()->get();\n\t\tif ($languages->count() > 0) {\n\t\t\tforeach ($languages as $lang) {\n\t\t\t\t$transformer->langCode = $lang->abbr;\n\t\t\t\ttry {\n\t\t\t\t\t$transformer->getAndSetAdjacentItemsIds();\n\t\t\t\t\t$transformer->convertChildrenRecursively(0);\n\t\t\t\t\t$transformer->setNodesDepth();\n\t\t\t\t} catch (\\Exception $e) {\n\t\t\t\t\tAlert::error($e->getMessage())->flash();\n\t\t\t\t\t$errorFound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Check if error occurred\n\t\tif (!$errorFound) {\n\t\t\t$message = trans('admin.action_performed_successfully');\n\t\t\tAlert::success($message)->flash();\n\t\t}\n\t\t\n\t\treturn redirect()->back();\n\t}",
"public function testCompilingElementWithNoChildren()\n {\n $this->compiler->registerElement('foo', new Style('green', 'white'));\n $this->compiler->registerElement('bar', new Style('cyan'));\n $expectedOutput = '';\n $this->assertEquals(\n $expectedOutput,\n $this->compiler->compile('<foo></foo>')\n );\n }",
"public function walk( $elements, $args = array() ) {\n\t\t$output = '';\n\t\t$args = wp_parse_args( $args, array( 'value' => 'slug', 'name' => 'lang_choice' ) );\n\n\t\tif ( ! empty( $args['flag'] ) ) {\n\t\t\t$current = wp_list_filter( $elements, array( $args['value'] => $args['selected'] ) );\n\t\t\t$lang = reset( $current );\n\t\t\t$output = sprintf(\n\t\t\t\t'<span class=\"pll-select-flag\">%s</span>',\n\t\t\t\tempty( $lang->flag ) ? esc_html( $lang->slug ) : $lang->flag\n\t\t\t);\n\t\t}\n\n\t\t$output .= sprintf(\n\t\t\t'<select name=\"%1$s\"%2$s%3$s%4$s>' . \"\\n\" . '%5$s' . \"\\n\" . '</select>' . \"\\n\",\n\t\t\t$name = esc_attr( $args['name'] ),\n\t\t\tisset( $args['id'] ) && ! $args['id'] ? '' : ' id=\"' . ( empty( $args['id'] ) ? $name : esc_attr( $args['id'] ) ) . '\"',\n\t\t\tempty( $args['class'] ) ? '' : ' class=\"' . esc_attr( $args['class'] ) . '\"',\n\t\t\tdisabled( empty( $args['disabled'] ), false, false ),\n\t\t\tparent::walk( $elements, -1, $args )\n\t\t);\n\n\t\treturn $output;\n\t}",
"public function testStatesListFormatter() {\n $node = Node::create([\n 'title' => 'Foo',\n 'type' => 'project',\n 'field_status' => 'in_discussion',\n ]);\n $node->save();\n\n $output = $node->field_status->view(['type' => 'workflows_field_state_list']);\n $this->assertEquals([\n [\n '#type' => 'html_tag',\n '#tag' => 'span',\n '#value' => 'Implementing',\n '#wrapper_attributes' => ['class' => ['implementing', 'before-current']],\n ],\n [\n '#type' => 'html_tag',\n '#tag' => 'span',\n '#value' => 'Approved',\n '#wrapper_attributes' => ['class' => ['approved', 'before-current']],\n ],\n [\n '#type' => 'html_tag',\n '#tag' => 'span',\n '#value' => 'Rejected',\n '#wrapper_attributes' => ['class' => ['rejected', 'before-current']],\n ],\n [\n '#type' => 'html_tag',\n '#tag' => 'span',\n '#value' => 'Planning',\n '#wrapper_attributes' => ['class' => ['planning', 'before-current']],\n ],\n [\n '#type' => 'html_tag',\n '#tag' => 'span',\n '#value' => 'In Discussion',\n '#wrapper_attributes' => ['class' => ['in_discussion', 'is-current']],\n ],\n ], $output[0]['#items']);\n\n // Try with settings excluded.\n $output = $node->field_status->view([\n 'type' => 'workflows_field_state_list',\n 'settings' => [\n 'excluded_states' => [\n 'in_discussion' => 'in_discussion',\n 'planning' => 'planning',\n 'rejected' => 'rejected',\n 'approved' => 'approved',\n ],\n ],\n ]);\n $this->assertEquals([\n [\n '#type' => 'html_tag',\n '#tag' => 'span',\n '#value' => 'Implementing',\n '#wrapper_attributes' => ['class' => ['implementing', 'before-current']],\n ],\n ], $output[0]['#items']);\n }",
"public function testAllSelector()\n {\n\n $exhibit = $this->_exhibit();\n $exhibit->styles = \"\n .all {\n fill-color: color;\n }\n \";\n $record1 = $this->_record($exhibit);\n $record2 = $this->_record($exhibit);\n\n $exhibit->pushStyles();\n $record1 = $this->_reload($record1);\n $record2 = $this->_reload($record2);\n\n // Both records should be updated.\n $this->assertEquals('color', $record1->fill_color);\n $this->assertEquals('color', $record2->fill_color);\n\n }",
"protected function _beforeRender()\r\n {\r\n $this->_element->setAttributes($this->getAttribs());\r\n }",
"public function testCompilingNestedElementsWithNoChildren()\n {\n $this->compiler->registerElement('foo', new Style('green', 'white'));\n $this->compiler->registerElement('bar', new Style('cyan'));\n $expectedOutput = '';\n $this->assertEquals(\n $expectedOutput,\n $this->compiler->compile('<foo><bar></bar></foo>')\n );\n }",
"public static function MapWalk($html , $index = null)\n {\n $children = $html->children();\n if (!empty($children))\n {\n foreach($children as $k => $i)\n {\n \n $class = (!empty($i->{'class'})) ? explode(\" \" , $i->{'class'} ) : false;\n $id = (!empty($i->id)) ? $i->id : false;\n \n if ($class)\n {\n /* walk dom, find class or id, try to search it's value in array, if it doesn't exist in global array, append a new name,\n and replace the class with new name */\n \n foreach($class as $single_class)\n {\n \n /* Give logical names to existing, and new class*/\n $__new_class = \".\" . $single_class;\n $__new_replace = \".\" . HTMLiar::generateRandomName(\"css\");\n \n /* If class doesn't exist in parent array, insert it and giv it logical replacement */\n \n if (!in_array($__new_class , parent::$css_rules))\n {\n /* Keep Classes for further files */\n parent::$css_rules[$__new_class] = $__new_replace;\n $set_of_classes .= str_replace(\".\", \"\", $__new_replace) . \" \";\n }\n else\n {\n $set_of_classes .= str_replace(\".\", \"\", parent::$css_rules[$__new_class] ) . \" \";\n }\n \n \n }\n \n \n $i->{'class'} = trim($set_of_classes);\n }\n\n if ($id)\n {\n /* Give logical names to existing, and new class*/\n $__new_id = \"#\" . $id;\n $__new_replace = \"#\" . HTMLiar::generateRandomName(\"css\");\n \n /* If class doesn't exist in parent array, insert it and giv it logical replacement */\n \n if (!in_array($__new_id , parent::$css_rules))\n {\n /* Keep Classes for further files */\n parent::$css_rules[$__new_id] = $__new_replace;\n $set_of_id .= str_replace(\"#\",\"\", $__new_replace);\n }\n else\n {\n $set_of_id .= str_replace(\"#\",\"\", parent::$css_rules[$__new_id]);\n }\n $i->id = $set_of_id;\n }\n \n \n if ($i->children() <> 0) self::MapWalk($i , $k);\n }\n }\n }",
"public function ajax_update_widget_state()\n\t{\n\t\t$state = 1;\n\t\t$state = $this->EE->input->get('state');\n\n\t\tif(isset($_GET['wgt']))\n\t\t{\n\t\t\t$widget = $this->_widgets[$this->EE->input->get('wgt')];\n\t\t\t$this->_settings['widgets'][$widget['col']][$widget['id']]['state'] = $state;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tforeach($this->_settings['widgets'] as $col => $widgets)\n\t\t\t{\n\t\t\t\tforeach($widgets as $id => $params)\n\t\t\t\t{\n\t\t\t\t\t$this->_settings['widgets'][$col][$id]['state'] = $state;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$this->_update_member(FALSE);\n\t\texit();\n\t}",
"abstract protected function _builtWidget($element);",
"public function loadStates() {\n\t\tif($this->loaded) {\n\t\t\t// only load once\n\t\t\treturn;\n\t\t}\n\n\t\t// if only one state exists, just select it now.\n\t\tif(count($this->CI->user->states) == 1) {\n\t\t\t$this->states = $this->CI->user->states;\n\t\t\t$this->selectedSet = $this->states;\n\t\t\t// select the state by default.\n\t\t\t$this->CI->user->current->state = reset($this->CI->user->states);\n\t\t\t$this->CI->user->current->account_type = $this->CI->user->current->state->account_type;\n\t\t\t$this->CI->user->current->state_set = $this->CI->user->current->state->set;\n\t\t\t$this->selectedState = $this->CI->user->current->state;\n\t\t\t// don't render anything\n\t\t\treturn;\n\t\t}\n\n\t\t// build the list of states.\n\t\t$this->buildStatesList();\n\n\t\t// check for GET vars with selected states.\n\t\t$this->updateSelectedStateSet();\n\t\t$this->updateSelectedState();\n\t\t\n\t\t// finally, update the options on this object\n\t\t$this->updateDropdownOptions();\n\n\t\t$this->loaded = TRUE;\n\t}",
"public function setAllElements($elements)\n\t{\n\t\t$this->_allElements = $elements;\n\n\t\t// Update the elements across any memoized criteria models\n\t\tforeach($this->_liveCriteria as $name => $criteria)\n\t\t{\n\t\t\t$criteria->useMemoized($this->isUsingMemoized());\n\t\t\t$criteria->setAllElements($this->_allElements);\n\t\t}\n\t}",
"public function updateState($ids, $state);"
] | [
"0.53086996",
"0.4735059",
"0.46409255",
"0.44690323",
"0.43759543",
"0.43461397",
"0.43459246",
"0.4279914",
"0.4208346",
"0.42072684",
"0.4202606",
"0.4167709",
"0.4139461",
"0.4060155",
"0.40548316",
"0.40304285",
"0.40252358",
"0.4020622",
"0.40120098",
"0.40020487",
"0.39918208",
"0.39812115",
"0.397013",
"0.3942365",
"0.39245415",
"0.39171425",
"0.39147115",
"0.38744745",
"0.38589168",
"0.38528395"
] | 0.6417784 | 0 |
Adds JavaScript to change the state of an element based on another element. A "state" means a certain property of a DOM element, such as "visible" or "checked", which depends on a state or value of another element on the page. In general, states are HTML attributes and DOM element properties, which are applied initially, when page is loaded, depending on elements' default values, and then may change due to user interaction. Since states are driven by JavaScript only, it is important to understand that all states are applied on presentation only, none of the states force any serverside logic, and that they will not be applied for site visitors without JavaScript support. All modules implementing states have to make sure that the intended logic also works without JavaScript being enabled. states is an associative array in the form of: | public static function processStates(array &$elements) {
$elements['#attached']['library'][] = 'core/drupal.states';
// Elements of '#type' => 'item' are not actual form input elements, but we
// still want to be able to show/hide them. Since there's no actual HTML
// input element available, setting #attributes does not make sense, but a
// wrapper is available, so setting #wrapper_attributes makes it work.
$key = ($elements['#type'] == 'item') ? '#wrapper_attributes' : '#attributes';
$elements[$key]['data-drupal-states'] = Json::encode($elements['#states']);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setState($state);",
"public function setState($state);",
"public function setState($state);",
"public function updateState($ids, $state);",
"public function setStates($states) {\r\n\t\t$this->states = $states;\r\n\t}",
"function _set_states_for_inst(&$form, $inst_field_name = 'field_er_inst_ref'){\n\t$addInst = array(\n\t\t':input[name=\"field_er_inst_add_bool[und]\"]' => array('checked' => TRUE),\n\t); \n// $addInstUnchecked = array(\n//\t\t':input[name=\"field_er_inst_add_bool[und]\"]' => array('checked' => FALSE),\n//\t); \n\t// These fields will be visible, and required\n\t$form['field_er_inst_name']['#states'] = array(\n\t\t'visible' => $addInst,\n\t\t'required' => $addInst,\n\t);\n\t//These fields will be visible but not required\n\t$form['field_er_inst_country']['#states'] =\n\t$form['field_er_inst_link']['#states'] =\n\t$form['field_er_inst_description']['#states'] =\n\t$form['field_er_inst_abbreviation']['#states'] = array(\n\t\t'visible' => $addInst,\n\t);\n\t//Make the institution field required/non-required based on the checkbox.\n\t$form[$inst_field_name]['#states'] = array(\n\t\t//'disabled' => $addInst,\n\t\t'optional' => array($addInst),\n\t);\t\n}",
"public function setState( array $state )\n {\n foreach ( $state as $attribute => $value )\n {\n $this->$attribute = $value;\n }\n }",
"public function ajax_update_widget_state()\n\t{\n\t\t$state = 1;\n\t\t$state = $this->EE->input->get('state');\n\n\t\tif(isset($_GET['wgt']))\n\t\t{\n\t\t\t$widget = $this->_widgets[$this->EE->input->get('wgt')];\n\t\t\t$this->_settings['widgets'][$widget['col']][$widget['id']]['state'] = $state;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tforeach($this->_settings['widgets'] as $col => $widgets)\n\t\t\t{\n\t\t\t\tforeach($widgets as $id => $params)\n\t\t\t\t{\n\t\t\t\t\t$this->_settings['widgets'][$col][$id]['state'] = $state;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$this->_update_member(FALSE);\n\t\texit();\n\t}",
"public function cacheStates($states)\n {\n Yii::$app->cache->set(static::STATES_CACHE_KEY, $states);\n }",
"function create_state_changer($standalone = true) {\n\t\t// Define start of JavaScript\n\t\t$_JavaScript_start = '\n\t\t\t<script language=\"JavaScript\" type=\"text/javascript\">\n\t\t\t<!--';\n\n\t\t// Define end of JavaScript\n\t\t$_JavaScript_end = '\n\t\t\t//-->\n\t\t\t</script>';\n\n\t\t// Initialize JavaScript functions variable\n\t\t$_JavaScript_functions = \"\";\n\n\t\t// Build the main preload function\n\t\t$_JavaScript_functions .= \"\n\t\t\t/**\n\t\t\t * This functions switches the state of a text(!!!) button.\n\t\t\t *\n\t\t\t * @param element string\n\t\t\t * @param button string\n\t\t\t * @param state string\n\t\t\t * @param type bool (optional)\n\t\t\t *\n\t\t\t * @return button bool\n\t\t\t */\n\n\t\t\tfunction switch_button_state(element, button, state, type) {\n\t\t\t\tif (state == \\\"enabled\\\") {\n\t\t\t\t\tweButton.enable(element);\n\t\t\t\t\treturn true;\n\t\t\t\t} else if (state == \\\"disabled\\\") {\n\t\t\t\t\tweButton.disable(element);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\treturn false;\n\t\t\t}\";\n\n\t\t// Build string to be returned by the function\n\t\tif ($standalone) {\n\t\t\t$_JavaScript = $_JavaScript_start . $_JavaScript_functions . $_JavaScript_end;\n\t\t} else {\n\t\t\t$_JavaScript = $_JavaScript_functions;\n\t\t}\n\n\t\treturn $_JavaScript;\n\t}",
"public function setFiniteState($state);",
"final public function set_state($state) \n {\n $this->_state = $state;\n }",
"public function addState($state, $stateValue = 1)\n\t{\n\t\t$this->_states[$state] = $stateValue;\n\t}",
"function setState($value);",
"public function setState(string $state)\n\t{\n\t\t$this->state=$state; \n\t\t$this->keyModified['$state'] = 1; \n\n\t}",
"abstract public function state();",
"protected function loadIdentityStates($states)\n\t{\n\t\t$names=array();\n\t\tif(is_array($states))\n\t\t{\n\t\t\tforeach($states as $name=>$value)\n\t\t\t{\n\t\t\t\t$this->setState($name,$value);\n\t\t\t\t$names[$name]=true;\n\t\t\t}\n\t\t}\n\t\t$this->setState(self::STATES_VAR,$names);\n\t}",
"public function setState($value, $state)\n\t{\n\t\t$mainframe = JFactory::getApplication();\n\t\t$sitename = $mainframe->getCfg('sitename');\n\t\t$model = JModelAdmin::getInstance('Notification', 'TJNotificationsModel');\n\t\t$success = 0;\n\n\t\t$notificationIds = $mainframe->input->get('cid', array(), 'post', 'array');\n\t\t$extension = $mainframe->input->get('extension', '', 'STRING');\n\n\t\tforeach ($notificationIds as $notificationId)\n\t\t{\n\t\t\t$data = array();\n\t\t\t$data['id'] = $notificationId;\n\t\t\t$data[$value] = $state;\n\n\t\t\tif ($model->createTemplates($data))\n\t\t\t{\n\t\t\t\t$success = 1;\n\t\t\t}\n\t\t}\n\n\t\tif ($success)\n\t\t{\n\t\t\tif ($state == 1)\n\t\t\t{\n\t\t\t\t$msg = JText::_('COM_TJNOTIFICATIONS_STATE_ENABLE_SUCCESS_MSG');\n\t\t\t}\n\n\t\t\tif ($state == 0)\n\t\t\t{\n\t\t\t\t$msg = JText::_('COM_TJNOTIFICATIONS_STATE_DISABLE_MSG');\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$msg = $model->getError();\n\t\t}\n\n\t\tif ($extension)\n\t\t{\n\t\t\t$link = JRoute::_(\n\t\t\t'index.php?option=com_tjnotifications&view=notifications&extension=' . $extension, false\n\t\t\t);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$link = JRoute::_(\n\t\t\t'index.php?option=com_tjnotifications&view=notifications', false\n\t\t\t);\n\t\t}\n\n\t\t$this->setRedirect($link, $msg);\n\t}",
"public function activateState($state)\n {\n $this->state = $state;\n }",
"protected function loadIdentityStates($states)\n {\n $names = [];\n if (is_array($states)) {\n foreach ($states as $name => $value) {\n $this->setState($name, $value);\n $names[$name] = true;\n }\n }\n $this->setState(static::STATES_VAR, $names);\n }",
"public function setState($key, $state) {\r\n\t\t$this->states[$key] = $state;\r\n\t}",
"public function set_state(array $state)\n {\n $state_query = http_build_query($state, '', '&'); \n\n //tell the UCS to load the serialized state\n $this->send_raw_command('l '.$state_query);\n\n //discard the response\n $this->read_response();\n }",
"public static function __set_state($properties=null){ }",
"public function setState(string $state)\n\t{\n\t\t$this->addKeyValue('state', $state); \n\n\t}",
"public function setState($state) {\n\t\t$this->state = $state;\n\t}",
"public function addStates(array $states)\n {\n foreach ($states as $name => $label) {\n $this->addState($name, $label);\n }\n }",
"public function setState() {\r\n\t\tif(isset($_SESSION[$this->_config->dbTableNames->Pracownik]) && $_SESSION[$this->_config->dbTableNames->Pracownik]['state']==1) self::$adminState = true;\r\n\t\tif(isset($_SESSION[$this->_config->dbTableNames->Klient]) && $_SESSION[$this->_config->dbTableNames->Klient]['state']==1) self::$userState = true;\r\n\t}",
"public function state();",
"function setState($state){\r\n if(strlen($state)==2) {\r\n $this->state=$state;\r\n }\r\n else {\r\n $this->state='NA';\r\n }\r\n }",
"public function setState($state)\n {\n return $this->setVariable(\"state.id|$state\");\n }"
] | [
"0.60939044",
"0.60939044",
"0.60939044",
"0.6085378",
"0.60417956",
"0.59803647",
"0.5766492",
"0.56145346",
"0.5584481",
"0.5576929",
"0.5570625",
"0.5497086",
"0.5477417",
"0.5473662",
"0.54690254",
"0.54673815",
"0.545709",
"0.5452997",
"0.5448693",
"0.54224765",
"0.54027784",
"0.5370633",
"0.5332475",
"0.53290623",
"0.532433",
"0.52668375",
"0.5205927",
"0.51932955",
"0.5171288",
"0.51694506"
] | 0.6658861 | 0 |
end testHeredocFunctionArg() Test parts of a switch statement. | public function testSwitch()
{
// Find the end of the switch.
$start = $this->getTargetToken('/* testSwitch */', T_SWITCH);
$found = self::$phpcsFile->findEndOfStatement($start);
$this->assertSame(($start + 28), $found);
// Find the end of the case.
$start += 9;
$found = self::$phpcsFile->findEndOfStatement($start);
$this->assertSame(($start + 8), $found);
// Find the end of default case.
$start += 11;
$found = self::$phpcsFile->findEndOfStatement($start);
$this->assertSame(($start + 6), $found);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function switchTest($a) {\n // fallthrough logic is present when not using break\n switch ($a) {\n case 1:\n echo \"case 1\\n\";\n break;\n case 2:\n echo \"case 2 with fallthrough logic\\n\";\n case 3:\n echo \"case 3\\n\";\n break;\n default:\n echo \"default case\\n\";\n break;\n }\n\n return 1;\n}",
"public function testSetSwitch()\n {\n }",
"public function pStmt_Switch(Stmt\\Switch_ $node) { return 'switch (' . $this->p($node->cond) . ') {'\n . $this->indentedStmt($node->cases) . \"\\n\" . '}';\n }",
"function yy_r170(){ $this->_retvalue = yy('Switch', NULL, $this->yystack[$this->yyidx + -3]->minor, $this->yystack[$this->yyidx + -1]->minor); }",
"function yy_r167(){ $this->_retvalue = yy('Switch', $this->yystack[$this->yyidx + -3]->minor, $this->yystack[$this->yyidx + -1]->minor); }",
"function yy_r169(){ $this->_retvalue = yy('Switch', NULL, $this->yystack[$this->yyidx + -1]->minor); }",
"function yy_r168(){ $this->_retvalue = yy('Switch', $this->yystack[$this->yyidx + -5]->minor, $this->yystack[$this->yyidx + -3]->minor, $this->yystack[$this->yyidx + -1]->minor); }",
"public function testHeredocFunctionArg()\n {\n // Find the end of the function.\n $start = $this->getTargetToken('/* testHeredocFunctionArg */', T_STRING, 'myFunction');\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 10), $found);\n\n // Find the end of the heredoc.\n $start += 2;\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 4), $found);\n\n // Find the end of the last arg.\n $start = ($found + 2);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame($start, $found);\n\n }",
"public function _switch($attr,$content) {\n $tag = $this->parseXmlAttr($attr,'switch');\n $name = $tag['name'];\n $varArray = explode('|',$name);\n $name = array_shift($varArray);\n $name = $this->autoBuildVar($name);\n if(count($varArray)>0)\n $name = $this->tpl->parseVarFunction($name,$varArray);\n $parseStr = '<?php switch('.$name.'): ?>'.$content.'<?php endswitch;?>';\n return $parseStr;\n }",
"function mjf_test_action( $arg_1, $arg_2 ) {\r\n\techo '<h3>Testing do_action hook: ' . $arg_1 . ', ' . $arg_2 . '</h3>';\r\n}",
"function test16($foo): void\n{\n}",
"public function test_assign_from_case() {\n $code = \"{% case collection.handle %}{% when 'menswear-jackets' %}{% assign ptitle = 'menswear' %}{% when 'menswear-t-shirts' %}{% assign ptitle = 'menswear' %}{% else %}{% assign ptitle = 'womenswear' %}{% endcase %}{{ ptitle }}\";\n /** @var Template $template */\n $template = Template::parse($code);\n $this->assertEquals(\"menswear\", $template->render(array(\"collection\" => array('handle' => 'menswear-jackets'))));\n $this->assertEquals(\"menswear\", $template->render(array(\"collection\" => array('handle' => 'menswear-t-shirts'))));\n $this->assertEquals(\"womenswear\", $template->render(array(\"collection\" => array('handle' => 'x'))));\n $this->assertEquals(\"womenswear\", $template->render(array(\"collection\" => array('handle' => 'y'))));\n $this->assertEquals(\"womenswear\", $template->render(array(\"collection\" => array('handle' => 'z'))));\n }",
"private function compile_switch($match)\n\t{\n\t\t$if = $match[1];\n\t\t$if = preg_replace('#(?<=\\s|\\||&|\\(|!|^)([a-zA-Z0-9_]+?)(?=\\W|\\s|\\||&|\\)|$)#i', \"@Fsb::\\$tpl->data[Fsb::\\$tpl->alias]['switch']['\\\\1']\", $if);\n\t\t$if = str_replace('&', ' AND ', $if);\n\t\t$if = str_replace('|', ' OR ', $if);\n\t\treturn (\"<?php if ($if) { ?>\");\n\t}",
"function getSwitchCaseCode($processName,$fieldSet){\n\t$theCode = \"\";\n\t$fieldCodes = \"\";\n\t$fields = explode(\"-\",$fieldSet);\n\tforeach($fields as $field){\n\t\t$fieldCodes .= '$_POST[\"'. $field .'\"],';\n\t}\n\t$fieldCodes = rtrim($fieldCodes, \",\");\n\t$theCode .= \"case \\\"$processName\\\":{\\n\";\n\t$theCode .= $processName.'($conn,'.$fieldCodes.');'.\"\\n\";\n\t$theCode .= \"}break;\\n\";\n\treturn $theCode;\n}",
"public function _case($attr,$content) {\n $tag = $this->parseXmlAttr($attr,'case');\n $value = $tag['value'];\n if('$' == substr($value,0,1)) {\n $varArray = explode('|',$value);\n $value\t =\tarray_shift($varArray);\n $value = $this->autoBuildVar(substr($value,1));\n if(count($varArray)>0)\n $value = $this->tpl->parseVarFunction($value,$varArray);\n $value = 'case '.$value.': ';\n }elseif(strpos($value,'|')){\n $values = explode('|',$value);\n $value = '';\n foreach ($values as $val){\n $value .= 'case \"'.addslashes($val).'\": ';\n }\n }else{\n $value\t= 'case \"'.$value.'\": ';\n }\n $parseStr = '<?php '.$value.' ?>'.$content;\n $isBreak = isset($tag['break']) ? $tag['break'] : '';\n if('' ==$isBreak || $isBreak) {\n $parseStr .= '<?php break;?>';\n }\n return $parseStr;\n }",
"function startCase() {\n\t}",
"protected function specialCaseFunc()\n {\n }",
"function custom_test() {\n return 'Test!';\n}",
"function test17(string $foo): void\n{\n}",
"public function testGetSwitchState()\n {\n }",
"function mySimpleoutAndExit($getCaseNum, $addArg = '')\n{\n\n\theader('Content-Type: text/html; charset=Utf-8');\n\tprint (\"<pre>\");\n\n\t$message = \"CORE SYSTEM ERROR!<br>Type: Crititcal<br>Instant exit: yes<br>Details:<br>\";\n\n\tswitch ($getCaseNum) {\n\t\tcase 1:\n\t\t\t$message .= \"Unable to load the requested file (file not exists)! File/Class: '\" . $addArg . \"'!\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t$message .= \"Unknown error for file/class: \" . $addArg . \"'!\";\n\t}\n\n\tprint($message);\n\tprint (\"</pre>\");\n\texit;\n\n}",
"public function testMethod2($data = 'test_default', $flag = true);",
"function parseCaseNoBase( &$source, &$cases, &$default ) {\n $testRetType = lookupType('bool');\n\n // We don't know the return type yet, it will be defined by the cases.\n $retType = null;\n $retSource = null;\n\n // Generate a name for the return value of the case.\n $value_name = generate_name(\"case_value\");\n\n $prep = [];\n\n $info = new ExpressionInfo( $source, null, $value_name, true);\n\n grokit_logic_assert( count($cases) > 0,\n 'No cases found for case statement at ' . $source );\n\n // Handle cases\n foreach( $cases as $case ) {\n $test = parseExpression(ast_get($case, NodeKey::TEST));\n $expr = parseExpression(ast_get($case, NodeKey::EXPR));\n $first = false;\n\n // Test if the return type of the test is compatible with boolean\n if( canConvert( $test->type(), $testRetType ) ) {\n $test = convertExpression( $test, $testRetType, $retSource );\n }\n else {\n // Incompatible types\n grokit_error( 'Case test expression has return type ' . $test->type()\n . ' which is incompatible with boolean ' . $test->source() );\n }\n\n // If the return type is not set, set it and continue.\n // Otherwise, make sure the expression's return type is compatible with\n // the already set return type.\n if( $retType === null ) {\n $retType = $expr->type();\n $retSource = $expr->source();\n $first = true;\n $info->setType($retType);\n }\n else if( canConvert( $expr->type(), $retType ) ) {\n // The types are compatible or the same, so make them the same.\n $expr = convertExpression( $expr, $retType, $retSource );\n }\n else {\n // Incompatible types\n grokit_error( 'Case return type ' . $expr->type() . ' of expression at '\n . $expr->source() . ' incompatible with previous return type '\n . $retType . ' defined by expression at ' . $retSource );\n }\n\n // Absorb the metadata from the test and expression into our info\n $info->absorbMeta($test);\n $info->absorbMeta($expr);\n\n $myPrep = '';\n if( ! $first ) {\n $myPrep .= 'else ';\n }\n $myPrep .= \"if( {$test->value()} ) {$value_name} = {$expr->value()};\";\n\n $prep[] = $myPrep;\n }\n\n // Handle default\n if( $default !== null ) {\n if( canConvert( $default->type(), $retType ) ) {\n $default = convertExpression( $default, $retType, $retSource );\n }\n else {\n // Incompatible types.\n grokit_error( 'Case return type ' . $default->type() . ' of default at '\n . $default->source() . ' incompatible with previous return type '\n . $retType . ' defined by expression at ' . $retSource );\n }\n\n $info->absorbMeta($default);\n\n $prep[] = \"else $value_name = {$default->value()};\";\n }\n\n // Prepend the declaration of the return variable\n array_unshift( $prep, \"{$retType} {$value_name};\" );\n\n // Add all of our stuff as preprocesses\n $info->addPreprocesses($prep);\n\n if( $info->is_const() ) {\n $info->makeConstant();\n }\n\n return $info;\n}",
"function OnOffSwitch($record,$item0,$item1,$item2,$item3){\n\n switch ($record) {\n case 0:\n echo $item0;\n break; \n case 1:\n echo $item1;\n break; \n case 2:\n echo $item2;\n break;\n case 3:\n echo $item3;\n break;\n\tdefault:\n\techo \"N/A\";\n\t break;\n\t \n\t } \n\t }",
"static public function ESwitch ($e, $cases, $edef) {\n\t\treturn new ExprDef('ESwitch', 16, [$e, $cases, $edef]);\n\t}",
"abstract protected function test($value);",
"public function testMatchCase()\n {\n $start = $this->getTargetToken('/* testMatchCase */', T_LNUMBER);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 5), $found);\n\n $start = $this->getTargetToken('/* testMatchCase */', T_CONSTANT_ENCAPSED_STRING);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 1), $found);\n\n }",
"public function testSimple()\n {\n foreach (['/* testStandard */', '/* testMixedCase */'] as $comment) {\n $token = $this->getTargetToken($comment, T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 5, 12);\n }\n\n }",
"function tell_me_switch($data) {\n\t$retval = \"<ul>\";\n\tforeach($data as $key=>$item) {\n\t\tswitch($key) {\n\t\t\tcase 'color':\n\t\t\t$retval .= \"<li>My favorite color is: $item</li>\";\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'movie':\n\t\t\t$retval .=\"<li>My favorite movie is: $item</li>\";\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'book':\n\t\t\t$retval .=\"<li>My favorite book is: $item</li>\";\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'website':\n\t\t\t$retval .=\"<li>My favorite website is: $item</li>\";\n\t\t\tbreak;\n\t\t\t \n\t\t\t//NO DEFAULT CASE AS WE DON'T WANT TO DO ANYTHING IF THE KEY IS NOT FOUND IN OUR SWITCH STATEMENT\n\t\t\t\n\t\t}\n\t}\n\t$retval .= \"</ul>\";\n\treturn $retval;\n}",
"public function testFunctionArgument()\n {\n $token = $this->getTargetToken('/* testFunctionArgument */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 8, 15, 'comma');\n\n }"
] | [
"0.6320653",
"0.59197307",
"0.5848014",
"0.5814722",
"0.5801471",
"0.5797768",
"0.5759268",
"0.5733542",
"0.56803775",
"0.56187576",
"0.54407763",
"0.5439051",
"0.5426196",
"0.54209214",
"0.53874284",
"0.5370863",
"0.5333941",
"0.53254855",
"0.5320919",
"0.5316374",
"0.5312725",
"0.5271694",
"0.52486455",
"0.5208509",
"0.5189149",
"0.51613003",
"0.5099889",
"0.5093559",
"0.50931215",
"0.5040998"
] | 0.651812 | 0 |
end testSwitch() Test statements that are array values. | public function testStatementAsArrayValue()
{
// Test short array syntax.
$start = $this->getTargetToken('/* testStatementAsArrayValue */', T_NEW);
$found = self::$phpcsFile->findEndOfStatement($start);
$this->assertSame(($start + 2), $found);
// Test long array syntax.
$start += 12;
$found = self::$phpcsFile->findEndOfStatement($start);
$this->assertSame(($start + 2), $found);
// Test same statement outside of array.
$start += 10;
$found = self::$phpcsFile->findEndOfStatement($start);
$this->assertSame(($start + 3), $found);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testSetSwitch()\n {\n }",
"function test(array $arr)# Type Hinting\n{\n\tforeach($arr as $index=>$value)\n\t{\n\t\techo \"index={$index} and value ={$value}</br>\";\n\t}\n}",
"public function testArrayValue()\n {\n $token = $this->getTargetToken('/* testArrayValue */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 4, 9, 'comma');\n\n }",
"function assign_switchs($array)\n\t{\n\t\tglobal $template;\n\n\t\tif ( !is_array ( $array ) )\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\twhile ( list ( $key, $size ) = @each ( $array ) )\n\t\t{\n\t\t\tif ( $size )\n\t\t\t{\n\t\t\t\t$template->assign_block_vars('switch_' . $key, array());\n\t\t\t}\n\t\t}\n\t}",
"public function testSwitch()\n {\n // Find the end of the switch.\n $start = $this->getTargetToken('/* testSwitch */', T_SWITCH);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 28), $found);\n\n // Find the end of the case.\n $start += 9;\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 8), $found);\n\n // Find the end of default case.\n $start += 11;\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 6), $found);\n\n }",
"public function createCase($inputArray);",
"public function testGetSwitchState()\n {\n }",
"public function testArraySyntax() {\n\n\t\t$lexer = new Lexer();\n\t\t$stream = $lexer->scan(' [key1 => \"val\\\"ue\", 0 : 1, 1, [1,2]] ');\n\n\t\t$actual = $this->buildActualTokens($stream);\n\t\t$expected = array(\n\t\t\tarray(Lexer::T_OPEN_ARRAY => '['),\n\t\t\tarray(Lexer::T_NAME => 'key1'),\n\t\t\tarray(Lexer::T_DOUBLE_ARROW => '=>'),\n\t\t\tarray(Lexer::T_VALUE => '\"val\\\"ue\"'),\n\t\t\tarray(Lexer::T_COMMA => ','),\n\t\t\tarray(Lexer::T_VALUE => '0'),\n\t\t\tarray(Lexer::T_COLON => ':'),\n\t\t\tarray(Lexer::T_VALUE => '1'),\n\t\t\tarray(Lexer::T_COMMA => ','),\n\t\t\tarray(Lexer::T_VALUE => '1'),\n\t\t\tarray(Lexer::T_COMMA => ','),\n\t\t\tarray(Lexer::T_OPEN_ARRAY => '['),\n\t\t\tarray(Lexer::T_VALUE => '1'),\n\t\t\tarray(Lexer::T_COMMA => ','),\n\t\t\tarray(Lexer::T_VALUE => '2'),\n\t\t\tarray(Lexer::T_CLOSE_ARRAY => ']'),\n\t\t\tarray(Lexer::T_CLOSE_ARRAY => ']'),\n\t\t);\n\t\t$this->assertSame($expected, $actual);\n\t}",
"public function testStringEqualsArray()\n\t{\n\t\tif (!empty($this->string_count) && !empty($this->array_count))\n\t\t{\n\t\t\t$this->assertEquals($this->string_count,$this->array_count);\n\t\t}\n\t}",
"public function testArrowFunctionArrayValue()\n {\n $start = $this->getTargetToken('/* testArrowFunctionArrayValue */', T_FN);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 9), $found);\n\n }",
"public function testMatchArray()\n {\n $start = $this->getTargetToken('/* testMatchArray */', T_LNUMBER);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 11), $found);\n\n $start += 14;\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 22), $found);\n\n }",
"public function test($obj) : array\n\t{\n\t\treturn ['TEST'];\n\t}",
"protected function addValuedSwitch(array $switch)\n {\n $this->addSwitch($switch['b'], $switch['s'], $switch[4]);\n\n return;\n }",
"public function testOptInListings()\n {\n\n }",
"public function handTest($chartArray,$evaluateArray) \r\n\t\t\t{\r\n\t\t\t\t//switch statement on p. 83\r\n\t\t\t\tswitch($chartArray)\r\n\t\t\t\t{\r\n\t\t\t\t//TEST for the big dog - royal flush\r\n\t\t\t\tcase in_array(\"AS\",$evaluateArray)==true && in_array(\"KS\",$evaluateArray)==true && in_array(\"QS\",$evaluateArray)==true && in_array(\"JS\",$evaluateArray)==true && in_array(\"10S\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!HOLY COW!! ITS A SPADE ROYAL FLUSH !!HOLY COW!!\";\r\n\t\t\t\t$this->points = 5600;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"AC\",$evaluateArray)==true && in_array(\"KC\",$evaluateArray)==true && in_array(\"QC\",$evaluateArray)==true && in_array(\"JC\",$evaluateArray)==true && in_array(\"10C\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!HOLY COW!! ITS A CLUB ROYAL FLUSH !!HOLY COW!!\";\r\n\t\t\t\t$this->points = 5600;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"AH\",$evaluateArray)==true && in_array(\"KH\",$evaluateArray)==true && in_array(\"QH\",$evaluateArray)==true && in_array(\"JH\",$evaluateArray)==true && in_array(\"10H\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!HOLY COW!! ITS A HEART ROYAL FLUSH !!HOLY COW!!\";\r\n\t\t\t\t$this->points = 5600;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"AD\",$evaluateArray)==true && in_array(\"KD\",$evaluateArray)==true && in_array(\"QD\",$evaluateArray)==true && in_array(\"JD\",$evaluateArray)==true && in_array(\"10D\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!HOLY COW!! ITS A DIAMOND ROYAL FLUSH !!HOLY COW!!\";\r\n\t\t\t\t$this->points = 5600;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t//STRAIGHT FLUSHES\r\n\t\t\t\t//SPADE STRAIGHT FLUSH TEST\r\n\t\t\t\tcase in_array(\"KS\",$evaluateArray)==true && in_array(\"QS\",$evaluateArray)==true && in_array(\"JS\",$evaluateArray)==true && in_array(\"10S\",$evaluateArray)==true && in_array(\"9S\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A SPADE STRAIGHT FLUSH - KING HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4008;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"QS\",$evaluateArray)==true && in_array(\"JS\",$evaluateArray)==true && in_array(\"10S\",$evaluateArray)==true && in_array(\"9S\",$evaluateArray)==true && in_array(\"8S\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A SPADE STRAIGHT FLUSH - QUEEN HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4007;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"JS\",$evaluateArray)==true && in_array(\"10S\",$evaluateArray)==true && in_array(\"9S\",$evaluateArray)==true && in_array(\"8S\",$evaluateArray)==true && in_array(\"7S\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A SPADE STRAIGHT FLUSH - JACK HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4006;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"10S\",$evaluateArray)==true && in_array(\"9S\",$evaluateArray)==true && in_array(\"8S\",$evaluateArray)==true && in_array(\"7S\",$evaluateArray)==true && in_array(\"6S\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A SPADE STRAIGHT FLUSH - TEN HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4005;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"9S\",$evaluateArray)==true && in_array(\"8S\",$evaluateArray)==true && in_array(\"7S\",$evaluateArray)==true && in_array(\"6S\",$evaluateArray)==true && in_array(\"5S\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A SPADE STRAIGHT FLUSH - NINE HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4004;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"8S\",$evaluateArray)==true && in_array(\"7S\",$evaluateArray)==true && in_array(\"6S\",$evaluateArray)==true && in_array(\"5S\",$evaluateArray)==true && in_array(\"4S\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A SPADE STRAIGHT FLUSH - EIGHT HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4003;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"7S\",$evaluateArray)==true && in_array(\"6S\",$evaluateArray)==true && in_array(\"5S\",$evaluateArray)==true && in_array(\"4S\",$evaluateArray)==true && in_array(\"3S\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A SPADE STRAIGHT FLUSH - SEVEN HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4002;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"6S\",$evaluateArray)==true && in_array(\"5S\",$evaluateArray)==true && in_array(\"4S\",$evaluateArray)==true && in_array(\"3S\",$evaluateArray)==true && in_array(\"2S\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A SPADE STRAIGHT FLUSH - SIX HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4001;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"5S\",$evaluateArray)==true && in_array(\"4S\",$evaluateArray)==true && in_array(\"3S\",$evaluateArray)==true && in_array(\"2S\",$evaluateArray)==true && in_array(\"AS\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A SPADE STRAIGHT FLUSH - FIVE HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4000;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t//DIAMONDS\r\n\t\t\t\tcase in_array(\"KD\",$evaluateArray)==true && in_array(\"QD\",$evaluateArray)==true && in_array(\"JD\",$evaluateArray)==true && in_array(\"10D\",$evaluateArray)==true && in_array(\"9D\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A DIAMOND STRAIGHT FLUSH - KING HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4008;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"QD\",$evaluateArray)==true && in_array(\"JD\",$evaluateArray)==true && in_array(\"10D\",$evaluateArray)==true && in_array(\"9D\",$evaluateArray)==true && in_array(\"8D\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A DIAMOND STRAIGHT FLUSH - QUEEN HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4007;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"JD\",$evaluateArray)==true && in_array(\"10D\",$evaluateArray)==true && in_array(\"9D\",$evaluateArray)==true && in_array(\"8D\",$evaluateArray)==true && in_array(\"7D\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A DIAMOND STRAIGHT FLUSH - JACK HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4006;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"10D\",$evaluateArray)==true && in_array(\"9D\",$evaluateArray)==true && in_array(\"8D\",$evaluateArray)==true && in_array(\"7D\",$evaluateArray)==true && in_array(\"6D\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A DIAMOND STRAIGHT FLUSH - TEN HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4005;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"9D\",$evaluateArray)==true && in_array(\"8D\",$evaluateArray)==true && in_array(\"7D\",$evaluateArray)==true && in_array(\"6D\",$evaluateArray)==true && in_array(\"5D\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A DIAMOND STRAIGHT FLUSH - NINE HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4004;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"8D\",$evaluateArray)==true && in_array(\"7D\",$evaluateArray)==true && in_array(\"6D\",$evaluateArray)==true && in_array(\"5D\",$evaluateArray)==true && in_array(\"4D\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A DIAMOND STRAIGHT FLUSH - EIGHT HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4003;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"7D\",$evaluateArray)==true && in_array(\"6D\",$evaluateArray)==true && in_array(\"5D\",$evaluateArray)==true && in_array(\"4D\",$evaluateArray)==true && in_array(\"3D\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A DIAMOND STRAIGHT FLUSH - SEVEN HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4002;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"6D\",$evaluateArray)==true && in_array(\"5D\",$evaluateArray)==true && in_array(\"4D\",$evaluateArray)==true && in_array(\"3D\",$evaluateArray)==true && in_array(\"2D\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A DIAMOND STRAIGHT FLUSH - SIX HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4001;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"5D\",$evaluateArray)==true && in_array(\"4D\",$evaluateArray)==true && in_array(\"3D\",$evaluateArray)==true && in_array(\"2D\",$evaluateArray)==true && in_array(\"AD\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A DIAMOND STRAIGHT FLUSH - FIVE HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4000;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t//HEART STRAIGHT FLUSH\r\n\t\t\t\tcase in_array(\"KH\",$evaluateArray)==true && in_array(\"QH\",$evaluateArray)==true && in_array(\"JH\",$evaluateArray)==true && in_array(\"10H\",$evaluateArray)==true && in_array(\"9H\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A HEART STRAIGHT FLUSH - KING HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4008;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"QH\",$evaluateArray)==true && in_array(\"JH\",$evaluateArray)==true && in_array(\"10H\",$evaluateArray)==true && in_array(\"9H\",$evaluateArray)==true && in_array(\"8H\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A HEART STRAIGHT FLUSH - QUEEN HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4007;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"JH\",$evaluateArray)==true && in_array(\"10H\",$evaluateArray)==true && in_array(\"9H\",$evaluateArray)==true && in_array(\"8H\",$evaluateArray)==true && in_array(\"7H\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A HEART STRAIGHT FLUSH - JACK HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4006;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"10H\",$evaluateArray)==true && in_array(\"9H\",$evaluateArray)==true && in_array(\"8H\",$evaluateArray)==true && in_array(\"7H\",$evaluateArray)==true && in_array(\"6H\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A HEART STRAIGHT FLUSH - TEN HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4005;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"9H\",$evaluateArray)==true && in_array(\"8H\",$evaluateArray)==true && in_array(\"7H\",$evaluateArray)==true && in_array(\"6H\",$evaluateArray)==true && in_array(\"5H\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A HEART STRAIGHT FLUSH - NINE HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4004;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"8H\",$evaluateArray)==true && in_array(\"7H\",$evaluateArray)==true && in_array(\"6H\",$evaluateArray)==true && in_array(\"5H\",$evaluateArray)==true && in_array(\"4H\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A HEART STRAIGHT FLUSH - EIGHT HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4003;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"7H\",$evaluateArray)==true && in_array(\"6H\",$evaluateArray)==true && in_array(\"5H\",$evaluateArray)==true && in_array(\"4H\",$evaluateArray)==true && in_array(\"3S\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A HEART STRAIGHT FLUSH - SEVEN HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4002;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"6H\",$evaluateArray)==true && in_array(\"5H\",$evaluateArray)==true && in_array(\"4H\",$evaluateArray)==true && in_array(\"3H\",$evaluateArray)==true && in_array(\"2H\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A HEART STRAIGHT FLUSH - SIX HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4001;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"5H\",$evaluateArray)==true && in_array(\"4H\",$evaluateArray)==true && in_array(\"3H\",$evaluateArray)==true && in_array(\"2H\",$evaluateArray)==true && in_array(\"AH\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A HEART STRAIGHT FLUSH - FIVE HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4000;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t//CLUB STRAIGHT FLUSHES\r\n\t\t\t\tcase in_array(\"KC\",$evaluateArray)==true && in_array(\"QC\",$evaluateArray)==true && in_array(\"JC\",$evaluateArray)==true && in_array(\"10C\",$evaluateArray)==true && in_array(\"9C\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A CLUB STRAIGHT FLUSH - KING HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4008;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"QC\",$evaluateArray)==true && in_array(\"JC\",$evaluateArray)==true && in_array(\"10C\",$evaluateArray)==true && in_array(\"9C\",$evaluateArray)==true && in_array(\"8C\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A CLUB STRAIGHT FLUSH - QUEEN HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4007;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"JC\",$evaluateArray)==true && in_array(\"10C\",$evaluateArray)==true && in_array(\"9C\",$evaluateArray)==true && in_array(\"8C\",$evaluateArray)==true && in_array(\"7C\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A CLUB STRAIGHT FLUSH - JACK HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4006;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"10C\",$evaluateArray)==true && in_array(\"9C\",$evaluateArray)==true && in_array(\"8C\",$evaluateArray)==true && in_array(\"7C\",$evaluateArray)==true && in_array(\"6C\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A CLUB STRAIGHT FLUSH - TEN HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4005;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"9C\",$evaluateArray)==true && in_array(\"8C\",$evaluateArray)==true && in_array(\"7C\",$evaluateArray)==true && in_array(\"6C\",$evaluateArray)==true && in_array(\"5C\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A CLUB STRAIGHT FLUSH - NINE HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4004;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"8C\",$evaluateArray)==true && in_array(\"7C\",$evaluateArray)==true && in_array(\"6C\",$evaluateArray)==true && in_array(\"5C\",$evaluateArray)==true && in_array(\"4C\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A CLUB STRAIGHT FLUSH - EIGHT HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4003;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"7C\",$evaluateArray)==true && in_array(\"6C\",$evaluateArray)==true && in_array(\"5C\",$evaluateArray)==true && in_array(\"4C\",$evaluateArray)==true && in_array(\"3C\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A CLUB STRAIGHT FLUSH - SEVEN HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4002;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"6C\",$evaluateArray)==true && in_array(\"5C\",$evaluateArray)==true && in_array(\"4C\",$evaluateArray)==true && in_array(\"3C\",$evaluateArray)==true && in_array(\"2C\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A CLUB STRAIGHT FLUSH - SIX HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4001;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase in_array(\"5C\",$evaluateArray)==true && in_array(\"4C\",$evaluateArray)==true && in_array(\"3C\",$evaluateArray)==true && in_array(\"2C\",$evaluateArray)==true && in_array(\"AC\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!***!! ITS A CLUB STRAIGHT FLUSH - FIVE HIGH !!***!!\";\r\n\t\t\t\t$this->points = 4000;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t//tests for 4 of a kind\r\n\t\t\t\tcase $chartArray[0][65]==4:\r\n\t\t\t\t$this->text = \"!!@@ITS FOUR OF A KIND@@!! - ACES\";\r\n\t\t\t\t$this->points = 3512;\r\n\t\t\t\t//start kicker for 4 Aces\r\n\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//end Kicker for three Aces\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][75]==4:\r\n\t\t\t\t$this->text = \"!!@@ITS FOUR OF A KIND@@!! - KINGS\";\r\n\t\t\t\t$this->points = 3511;\r\n\t\t\t\t\t\t//start kicker for 4 kings\r\n\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//end kicker for 4 kings\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][81]==4:\r\n\t\t\t\t$this->text = \"!!@@ITS FOUR OF A KIND@@!! - QUEENS\";\r\n\t\t\t\t$this->points = 3510;\r\n\t\t\t\t\t\t//start kicker for 4 queens\r\n\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//end kicker for 4 queens\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][74]==4:\r\n\t\t\t\t$this->text = \"!!@@ITS FOUR OF A KIND@@!! - JACKS\";\r\n\t\t\t\t$this->points = 3509;\r\n//start kicker for 4 jacks\r\n\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n//end kicker for 4 jacks\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][48]==4:\r\n\t\t\t\t$this->text = \"!!@@ITS FOUR OF A KIND@@!!- TENS\";\r\n\t\t\t\t$this->points = 3508;\r\n//start kicker for 4 10's\r\n\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n//end kicker for 4 10's\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][57]==4:\r\n\t\t\t\t$this->text = \"!!@@ITS FOUR OF A KIND@@!! - NINES\";\r\n\t\t\t\t$this->points = 3507;\r\n//start kicker for 4 9's\r\n\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n//end kicker for 4 9's\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][56]==4:\r\n\t\t\t\t$this->text = \"!!@@ITS FOUR OF A KIND@@!! - EIGHTS\";\r\n\t\t\t\t$this->points = 3506;\r\n//start kicker for 4 8's\r\n\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n//end kicker for 4 8's\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][55]==4:\r\n\t\t\t\t$this->text = \"!!@@ITS FOUR OF A KIND@@!! - SEVENS\";\r\n\t\t\t\t$this->points = 3505;\r\n//start kicker for 4 7's\r\n\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n//end kicker for 4 7's\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][54]==4:\r\n\t\t\t\t$this->text = \"!!@@ITS FOUR OF A KIND@@!! - SIXES\";\r\n\t\t\t\t$this->points = 3504;\r\n//start kciker for 4 sixes\r\n\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n//end kicker for 4 sixes\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][53]==4:\r\n\t\t\t\t$this->text = \"!!@@ITS FOUR OF A KIND@@!!- FIVES\";\r\n\t\t\t\t$this->points = 3503;\r\n//start kicker for 4 fives\r\n\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n//end kicker for 4 fives\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][52]==4:\r\n\t\t\t\t$this->text = \"!!@@ITS FOUR OF A KIND@@!! - FOURS\";\r\n\t\t\t\t$this->points = 3502;\r\n//start kicker for 4 fours\r\nswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n//end kicker for 4 fours\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][51]==4:\r\n\t\t\t\t$this->text = \"!!@@ITS FOUR OF A KIND@@!! - THREES\";\r\n\t\t\t\t$this->points = 3501;\r\n//start kicker for 4 threes\r\n\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n//end kicker for 4 threes\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][50]==4:\r\n\t\t\t\t$this->text = \"!!@@ITS FOUR OF A KIND@@!! - TWOS\";\r\n\t\t\t\t$this->points = 3500;\r\n//start kicker for 4 two's\r\nswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n//end kicker for 4 2's\r\n\t\t\t\tbreak;\r\n\t\t\t\t/*\r\n\t\t\t\tSTART FULL HOUSE TESTS WITH SUB-SWITCHES\r\n\t\t\t\t*/\t\t\t\t\r\n\t\t\t\t//test for Full house\r\n\t\t\t\t//ACES\r\n\t\t\t\tcase ($chartArray[0][65]==3) && ($chartArray[0][75]==2||$chartArray[0][81]==2||$chartArray[0][74]==2||$chartArray[0][48]==2||$chartArray[0][57]==2||$chartArray[0][56]==2||$chartArray[0][55]==2||$chartArray[0][54]==2||$chartArray[0][53]==2||$chartArray[0][52]==2||$chartArray[0][51]==2||$chartArray[0][50]==2):\r\n\t\t\t\tswitch ($chartArray)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase $chartArray[0][75]==2:\r\n\t\t\t\t\t\t$this->text=\"Aces over Kings\";\r\n\t\t\t\t\t\t$this->points = 3212;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][81]==2:\r\n\t\t\t\t\t\t$this->text=\"Aces over Queens\";\r\n\t\t\t\t\t\t$this->points = 3211;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][74]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Aces over Jacks\";\r\n\t\t\t\t\t\t$this->points = 3210;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][48]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Aces over Tens\";\r\n\t\t\t\t\t\t$this->points = 3209;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][57]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Aces over Nines\";\r\n\t\t\t\t\t\t$this->points = 3208;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][56]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Aces over Eights\";\r\n\t\t\t\t\t\t$this->points = 3207;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][55]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Aces over Sevens\";\r\n\t\t\t\t\t\t$this->points = 3206;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][54]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Aces over Sixes\";\r\n\t\t\t\t\t\t$this->points = 3205;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][53]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Aces over Fives\";\r\n\t\t\t\t\t\t$this->points = 3204;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][52]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Aces over Fours\";\r\n\t\t\t\t\t\t$this->points = 3203;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][51]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Aces over Threes\";\r\n\t\t\t\t\t\t$this->points = 3202;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][50]==2: \r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Aces over Twos\";\r\n\t\t\t\t\t\t$this->points = 3201;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}//End inner Ace switch\r\n\t\t\t\tbreak;\r\n\t\t\t\t//KINGS\r\n\t\t\t\tcase ($chartArray[0][75]==3) && ($chartArray[0][65]==2||$chartArray[0][81]==2||$chartArray[0][74]==2||$chartArray[0][48]==2||$chartArray[0][57]==2||$chartArray[0][56]==2||$chartArray[0][55]==2||$chartArray[0][54]==2||$chartArray[0][53]==2||$chartArray[0][52]==2||$chartArray[0][51]==2||$chartArray[0][50]==2):\r\n\t\t\t\tswitch ($chartArray)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase $chartArray[0][65]==2:\r\n\t\t\t\t\t\t$this->text= \"FULL HOUSE!!: Kings over Aces\";\r\n\t\t\t\t\t\t$this->points = 3112;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][81]==2:\r\n\t\t\t\t\t\t$this->text= \"FULL HOUSE!!: Kings over Queens\";\r\n\t\t\t\t\t\t$this->points = 3111;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][74]==2:\r\n\t\t\t\t\t\t$this->text= \"FULL HOUSE!!: Kings over Jacks\";\r\n\t\t\t\t\t\t$this->points = 3110;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][48]==2:\r\n\t\t\t\t\t\t$this->text= \"FULL HOUSE!!: Kings over Tens\";\r\n\t\t\t\t\t\t$this->points = 3109;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][57]==2:\r\n\t\t\t\t\t\t$this->text= \"FULL HOUSE!!: Kings over Nines\";\r\n\t\t\t\t\t\t$this->points = 3108;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][56]==2:\r\n\t\t\t\t\t\t$this->text= \"FULL HOUSE!!: Kings over Eights\";\r\n\t\t\t\t\t\t$this->points = 3107;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][55]==2:\r\n\t\t\t\t\t\t$this->text= \"FULL HOUSE!!: Kings over Sevens\";\r\n\t\t\t\t\t\t$this->points = 3106;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][54]==2:\r\n\t\t\t\t\t\t$this->text= \"FULL HOUSE!!: Kings over Sixes\";\r\n\t\t\t\t\t\t$this->points = 3105;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][53]==2:\r\n\t\t\t\t\t\t$this->text= \"FULL HOUSE!!: Kings over Fives\";\r\n\t\t\t\t\t\t$this->points = 3104;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][52]==2:\r\n\t\t\t\t\t\t$this->text= \"FULL HOUSE!!: Kings over Fours\";\r\n\t\t\t\t\t\t$this->points = 3103;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][51]==2:\r\n\t\t\t\t\t\t$this->text= \"FULL HOUSE!!: Kings over Threes\";\r\n\t\t\t\t\t\t$this->points = 3102;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][50]==2: \r\n\t\t\t\t\t\t$this->text= \"FULL HOUSE!!: Kings over Twos\";\r\n\t\t\t\t\t\t$this->points = 3101;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}//End inner king switch\r\n\t\t\t\tbreak;\r\n\t\t\t\t//QUEENS\r\n\t\t\t\tcase ($chartArray[0][81]==3) && ($chartArray[0][65]==2||$chartArray[0][75]==2||$chartArray[0][74]==2||$chartArray[0][48]==2||$chartArray[0][57]==2||$chartArray[0][56]==2||$chartArray[0][55]==2||$chartArray[0][54]==2||$chartArray[0][53]==2||$chartArray[0][52]==2||$chartArray[0][51]==2||$chartArray[0][50]==2):\r\n\t\t\t\tswitch ($chartArray)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase $chartArray[0][65]==2:\r\n\t\t\t\t\t\t$this->text= \"FULL HOUSE!!: Queens over Aces\";\r\n\t\t\t\t\t\t$this->points = 3012;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][75]==2:\r\n\t\t\t\t\t\t$this->text= \"FULL HOUSE!!: Queens over Kings\";\r\n\t\t\t\t\t\t$this->points = 3011;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][74]==2:\r\n\t\t\t\t\t\t$this->text= \"FULL HOUSE!!: Queens over Jacks\";\r\n\t\t\t\t\t\t$this->points = 3010;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][48]==2:\r\n\t\t\t\t\t\t$this->text= \"FULL HOUSE!!: Queens over Tens\";\r\n\t\t\t\t\t\t$this->points = 3009;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][57]==2:\r\n\t\t\t\t\t\t$this->text= \"FULL HOUSE!!: Queens over Nines\";\r\n\t\t\t\t\t\t$this->points = 3008;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][56]==2:\r\n\t\t\t\t\t\t$this->text= \"FULL HOUSE!!: Queens over Eights\";\r\n\t\t\t\t\t\t$this->points = 3007;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][55]==2:\r\n\t\t\t\t\t\t$this->text= \"FULL HOUSE!!: Queens over Sevens\";\r\n\t\t\t\t\t\t$this->points = 3006;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][54]==2:\r\n\t\t\t\t\t\t$this->text= \"FULL HOUSE!!: Queens over Sixes\";\r\n\t\t\t\t\t\t$this->points = 3005;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][53]==2:\r\n\t\t\t\t\t\t$this->text= \"FULL HOUSE!!: Queens over Fives\";\r\n\t\t\t\t\t\t$this->points = 3004;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][52]==2:\r\n\t\t\t\t\t\t$this->text= \"FULL HOUSE!!: Queens over Fours\";\r\n\t\t\t\t\t\t$this->points = 3003;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][51]==2:\r\n\t\t\t\t\t\t$this->text= \"FULL HOUSE!!: Queens over Threes\";\r\n\t\t\t\t\t\t$this->points = 3002;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][50]==2: \r\n\t\t\t\t\t\t$this->text= \"FULL HOUSE!!: Queens over Twos\";\r\n\t\t\t\t\t\t$this->points = 3001;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}//End inner queen switch\r\n\t\t\t\tbreak;\r\n\t\t\t\t//JACKS\r\n\t\t\t\tcase ($chartArray[0][74]==3) && ($chartArray[0][65]==2||$chartArray[0][75]==2||$chartArray[0][81]==2||$chartArray[0][48]==2||$chartArray[0][57]==2||$chartArray[0][56]==2||$chartArray[0][55]==2||$chartArray[0][54]==2||$chartArray[0][53]==2||$chartArray[0][52]==2||$chartArray[0][51]==2||$chartArray[0][50]==2):\r\n\t\t\t\tswitch ($chartArray)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase $chartArray[0][65]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Jacks over Aces\";\r\n\t\t\t\t\t\t$this->points = 2912;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][75]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Jacks over Kings\";\r\n\t\t\t\t\t\t$this->points = 2911;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][81]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Jacks over Queens\";\r\n\t\t\t\t\t\t$this->points = 2910;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][48]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Jacks over Tens\";\r\n\t\t\t\t\t\t$this->points = 2909;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][57]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Jacks over Nines\";\r\n\t\t\t\t\t\t$this->points = 2908;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][56]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Jacks over Eights\";\r\n\t\t\t\t\t\t$this->points = 2907;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][55]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Jacks over Sevens\";\r\n\t\t\t\t\t\t$this->points = 2906;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][54]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Jacks over Sixes\";\r\n\t\t\t\t\t\t$this->points = 2905;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][53]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Jacks over Fives\";\r\n\t\t\t\t\t\t$this->points = 2904;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][52]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Jacks over Fours\";\r\n\t\t\t\t\t\t$this->points = 2903;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][51]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Jacks over Threes\";\r\n\t\t\t\t\t\t$this->points = 2902;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][50]==2: \r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Jacks over Twos\";\r\n\t\t\t\t\t\t$this->points = 2901;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}//End inner jack switch\r\n\t\t\t\tbreak;\r\n\t\t\t\t//TENS\r\n\t\t\t\tcase ($chartArray[0][48]==3) && ($chartArray[0][65]==2||$chartArray[0][75]==2||$chartArray[0][81]==2||$chartArray[0][74]==2||$chartArray[0][57]==2||$chartArray[0][56]==2||$chartArray[0][55]==2||$chartArray[0][54]==2||$chartArray[0][53]==2||$chartArray[0][52]==2||$chartArray[0][51]==2||$chartArray[0][50]==2):\r\n\t\t\t\tswitch ($chartArray)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase $chartArray[0][65]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Tens over Aces\";\r\n\t\t\t\t\t\t$this->points = 2812;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][75]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Tens over Kings\";\r\n\t\t\t\t\t\t$this->points = 2811;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][81]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Tens over Queens\";\r\n\t\t\t\t\t\t$this->points = 2810;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][74]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Tens over Jacks\";\r\n\t\t\t\t\t\t$this->points = 2809;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][57]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Tens over Nines\";\r\n\t\t\t\t\t\t$this->points = 2808;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][56]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Tens over Eights\";\r\n\t\t\t\t\t\t$this->points = 2807;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][55]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Tens over Sevens\";\r\n\t\t\t\t\t\t$this->points = 2806;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][54]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Tens over Sixes\";\r\n\t\t\t\t\t\t$this->points = 2805;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][53]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Tens over Fives\";\r\n\t\t\t\t\t\t$this->points = 2804;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][52]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Tens over Fours\";\r\n\t\t\t\t\t\t$this->points = 2803;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][51]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Tens over Threes\";\r\n\t\t\t\t\t\t$this->points = 2802;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][50]==2: \r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Tens over Twos\";\r\n\t\t\t\t\t\t$this->points = 2801;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}//End inner tens switch\r\n\t\t\t\tbreak;\r\n\t\t\t\t//NIINES\r\n\t\t\t\tcase ($chartArray[0][57]==3) && ($chartArray[0][65]==2||$chartArray[0][75]==2||$chartArray[0][81]==2||$chartArray[0][74]==2||$chartArray[0][48]==2||$chartArray[0][56]==2||$chartArray[0][55]==2||$chartArray[0][54]==2||$chartArray[0][53]==2||$chartArray[0][52]==2||$chartArray[0][51]==2||$chartArray[0][50]==2):\r\n\t\t\t\tswitch ($chartArray)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase $chartArray[0][65]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Nines over Aces\";\r\n\t\t\t\t\t\t$this->points = 2712;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][75]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Nines over Kings\";\r\n\t\t\t\t\t\t$this->points = 2711;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][81]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Nines over Queens\";\r\n\t\t\t\t\t\t$this->points = 2710;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][74]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Nines over Jacks\";\r\n\t\t\t\t\t\t$this->points = 2709;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][48]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Nines over Tens\";\r\n\t\t\t\t\t\t$this->points = 2708;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][56]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Nines over Eights\";\r\n\t\t\t\t\t\t$this->points = 2707;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][55]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Nines over Sevens\";\r\n\t\t\t\t\t\t$this->points = 2706;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][54]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Nines over Sixes\";\r\n\t\t\t\t\t\t$this->points = 2705;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][53]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Nines over Fives\";\r\n\t\t\t\t\t\t$this->points = 2704;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][52]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Nines over Fours\";\r\n\t\t\t\t\t\t$this->points = 2703;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][51]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Nines over Threes\";\r\n\t\t\t\t\t\t$this->points = 2702;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][50]==2: \r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Nines over Twos\";\r\n\t\t\t\t\t\t$this->points = 2701;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}//End inner nines switch\r\n\t\t\t\tbreak;\r\n\t\t\t\t//EIGHTS\r\n\t\t\t\tcase ($chartArray[0][56]==3) && ($chartArray[0][65]==2||$chartArray[0][75]==2||$chartArray[0][81]==2||$chartArray[0][74]==2||$chartArray[0][48]==2||$chartArray[0][57]==2||$chartArray[0][55]==2||$chartArray[0][54]==2||$chartArray[0][53]==2||$chartArray[0][52]==2||$chartArray[0][51]==2||$chartArray[0][50]==2):\r\n\t\t\t\tswitch ($chartArray)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase $chartArray[0][65]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Eights over Aces\";\r\n\t\t\t\t\t\t$this->points = 2612;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][75]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Eights over Kings\";\r\n\t\t\t\t\t\t$this->points = 2611;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][81]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Eights over Queens\";\r\n\t\t\t\t\t\t$this->points = 2610;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][74]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Eights over Jacks\";\r\n\t\t\t\t\t\t$this->points = 2609;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][48]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Eights over Tens\";\r\n\t\t\t\t\t\t$this->points = 2608;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][57]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Eights over Nines\";\r\n\t\t\t\t\t\t$this->points = 2607;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][55]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Eights over Sevens\";\r\n\t\t\t\t\t\t$this->points = 2606;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][54]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Eights over Sixes\";\r\n\t\t\t\t\t\t$this->points = 2605;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][53]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Eights over Fives\";\r\n\t\t\t\t\t\t$this->points = 2604;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][52]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Eights over Fours\";\r\n\t\t\t\t\t\t$this->points = 2603;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][51]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Eights over Threes\";\r\n\t\t\t\t\t\t$this->points = 2602;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][50]==2: \r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Eights over Twos\";\r\n\t\t\t\t\t\t$this->points = 2601;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}//End inner eights switch\r\n\t\t\t\tbreak;\r\n\t\t\t\t//SEVENS\r\n\t\t\t\tcase ($chartArray[0][55]==3) && ($chartArray[0][65]==2||$chartArray[0][75]==2||$chartArray[0][81]==2||$chartArray[0][74]==2||$chartArray[0][48]==2||$chartArray[0][57]==2||$chartArray[0][56]==2||$chartArray[0][54]==2||$chartArray[0][53]==2||$chartArray[0][52]==2||$chartArray[0][51]==2||$chartArray[0][50]==2):\r\n\t\t\t\tswitch ($chartArray)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase $chartArray[0][65]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Sevens over Aces\";\r\n\t\t\t\t\t\t$this->points = 2512;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][75]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Sevens over Kings\";\r\n\t\t\t\t\t\t$this->points = 2511;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][81]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Sevens over Queens\";\r\n\t\t\t\t\t\t$this->points = 2510;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][74]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Sevens over Jacks\";\r\n\t\t\t\t\t\t$this->points = 2509;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][48]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Sevens over Tens\";\r\n\t\t\t\t\t\t$this->points = 2508;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][57]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Sevens over Nines\";\r\n\t\t\t\t\t\t$this->points = 2507;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][56]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Sevens over Eights\";\r\n\t\t\t\t\t\t$this->points = 2506;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][54]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Sevens over Sixes\";\r\n\t\t\t\t\t\t$this->points = 2505;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][53]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Sevens over Fives\";\r\n\t\t\t\t\t\t$this->points = 2504;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][52]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Sevens over Fours\";\r\n\t\t\t\t\t\t$this->points = 2503;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][51]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Sevens over Threes\";\r\n\t\t\t\t\t\t$this->points = 2502;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][50]==2: \r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Sevens over Twos\";\r\n\t\t\t\t\t\t$this->points = 2501;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}//End inner sevens switch\r\n\t\t\t\tbreak;\r\n\t\t\t\t//SIXES\r\n\t\t\t\tcase ($chartArray[0][54]==3) && ($chartArray[0][65]==2||$chartArray[0][75]==2||$chartArray[0][81]==2||$chartArray[0][74]==2||$chartArray[0][48]==2||$chartArray[0][57]==2||$chartArray[0][56]==2||$chartArray[0][55]==2||$chartArray[0][53]==2||$chartArray[0][52]==2||$chartArray[0][51]==2||$chartArray[0][50]==2):\r\n\t\t\t\tswitch ($chartArray)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase $chartArray[0][65]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Sixes over Aces\";\r\n\t\t\t\t\t\t$this->points = 2412;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][75]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Sixes over Kings\";\r\n\t\t\t\t\t\t$this->points = 2411;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][81]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Sixes over Queens\";\r\n\t\t\t\t\t\t$this->points = 2410;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][74]==2:\r\n\t\t\t\t\t\tself::$fhTxt=\" Jacks\";\r\n\t\t\t\t\t\t$this->points = 2409;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][48]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Sixes over Tens\";\r\n\t\t\t\t\t\t$this->points = 2408;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][57]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Sixes over Nines\";\r\n\t\t\t\t\t\t$this->points = 2407;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][56]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Sixes over Eights\";\r\n\t\t\t\t\t\t$this->points = 2406;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][55]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Sixes over Sevens\";\r\n\t\t\t\t\t\t$this->points = 2405;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][53]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Sixes over Fives\";\r\n\t\t\t\t\t\t$this->points = 2404;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][52]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Sixes over Fours\";\r\n\t\t\t\t\t\t$this->points = 2403;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][51]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Sixes over Threes\";\r\n\t\t\t\t\t\t$this->points = 2402;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][50]==2: \r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Sixes over Twos\";\r\n\t\t\t\t\t\t$this->points = 2401;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}//End inner sixes switch\r\n\t\t\t\tbreak;\r\n\t\t\t\t//FIVES\r\n\t\t\t\tcase ($chartArray[0][53]==3) && ($chartArray[0][65]==2||$chartArray[0][75]==2||$chartArray[0][81]==2||$chartArray[0][74]==2||$chartArray[0][48]==2||$chartArray[0][57]==2||$chartArray[0][56]==2||$chartArray[0][55]==2||$chartArray[0][54]==2||$chartArray[0][52]==2||$chartArray[0][51]==2||$chartArray[0][50]==2):\r\n\t\t\t\tswitch ($chartArray)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase $chartArray[0][65]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Fives over Aces\";\r\n\t\t\t\t\t\t$this->points = 2312;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][75]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Fives over Kings\";\r\n\t\t\t\t\t\t$this->points = 2311;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][81]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Fives over Queens\";\r\n\t\t\t\t\t\t$this->points = 2310;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][74]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Fives over Jacks\";\r\n\t\t\t\t\t\t$this->points = 2309;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][48]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Fives over Tens\";\r\n\t\t\t\t\t\t$this->points = 2308;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][57]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Fives over Nines\";\r\n\t\t\t\t\t\t$this->points = 2307;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][56]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Fives over Eights\";\r\n\t\t\t\t\t\t$this->points = 2306;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][55]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Fives over Sevens\";\r\n\t\t\t\t\t\t$this->points = 2305;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][54]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Fives over Sixes\";\r\n\t\t\t\t\t\t$this->points = 2304;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][52]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Fives over Fours\";\r\n\t\t\t\t\t\t$this->points = 2303;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][51]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Fives over Threes\";\r\n\t\t\t\t\t\t$this->points = 2302;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][50]==2: \r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Fives over Twos\";\r\n\t\t\t\t\t\t$this->points = 2301;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}//End inner fives switch\r\n\t\t\t\tbreak;\r\n\t\t\t\t//FOURS\r\n\t\t\t\tcase ($chartArray[0][52]==3) && ($chartArray[0][65]==2||$chartArray[0][75]==2||$chartArray[0][81]==2||$chartArray[0][74]==2||$chartArray[0][48]==2||$chartArray[0][57]==2||$chartArray[0][56]==2||$chartArray[0][55]==2||$chartArray[0][54]==2||$chartArray[0][53]==2||$chartArray[0][51]==2||$chartArray[0][50]==2):\r\n\t\t\t\tswitch ($chartArray)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase $chartArray[0][65]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Fours over Aces\";\r\n\t\t\t\t\t\t$this->points = 2212;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][75]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Fours over Kings\";\r\n\t\t\t\t\t\t$this->points = 2211;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][81]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Fours over Queens\";\r\n\t\t\t\t\t\t$this->points = 2210;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][74]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Fours over Jacks\";\r\n\t\t\t\t\t\t$this->points = 2209;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][48]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Fours over Tens\";\r\n\t\t\t\t\t\t$this->points = 2208;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][57]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Fours over Nines\";\r\n\t\t\t\t\t\t$this->points = 2207;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][56]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Fours over Eights\";\r\n\t\t\t\t\t\t$this->points = 2206;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][55]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Fours over Sevens\";\r\n\t\t\t\t\t\t$this->points = 2205;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][54]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Fours over Sixes\";\r\n\t\t\t\t\t\t$this->points = 2204;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][53]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Fours over Fives\";\r\n\t\t\t\t\t\t$this->points = 2203;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][51]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Fours over Threes\";\r\n\t\t\t\t\t\t$this->points = 2202;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][50]==2: \r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Fours over Twos\";\r\n\t\t\t\t\t\t$this->points = 2201;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}//End inner fours switch\r\n\t\t\t\tbreak;\r\n\t\t\t\t//THREES\r\n\t\t\t\tcase ($chartArray[0][51]==3) && ($chartArray[0][65]==2||$chartArray[0][75]==2||$chartArray[0][81]==2||$chartArray[0][74]==2||$chartArray[0][48]==2||$chartArray[0][57]==2||$chartArray[0][56]==2||$chartArray[0][55]==2||$chartArray[0][54]==2||$chartArray[0][53]==2||$chartArray[0][52]==2||$chartArray[0][50]==2):\r\n\t\t\t\tswitch ($chartArray)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase $chartArray[0][65]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Threes over Aces\";\r\n\t\t\t\t\t\t$this->points = 2112;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][75]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Threes over Kings\";\r\n\t\t\t\t\t\t$this->points = 2111;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][81]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Threes over Queens\";\r\n\t\t\t\t\t\t$this->points = 2110;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][74]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Threes over Jacks\";\r\n\t\t\t\t\t\t$this->points = 2109;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][48]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Threes over Tens\";\r\n\t\t\t\t\t\t$this->points = 2108;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][57]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Threes over Nines\";\r\n\t\t\t\t\t\t$this->points = 2107;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][56]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Threes over Eights\";\r\n\t\t\t\t\t\t$this->points = 2106;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][55]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Threes over Sevens\";\r\n\t\t\t\t\t\t$this->points = 2105;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][54]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Threes over Sixes\";\r\n\t\t\t\t\t\t$this->points = 2104;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][53]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Threes over Fives\";\r\n\t\t\t\t\t\t$this->points = 2103;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][52]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Threes over Fours\";\r\n\t\t\t\t\t\t$this->points = 2102;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][50]==2: \r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Threes over Twos\";\r\n\t\t\t\t\t\t$this->points = 2101;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}//End inner threes switch\r\n\t\t\t\tbreak;\r\n\t\t\t\t//TWOS\r\n\t\t\t\t//Points 2001 - 2012\r\n\t\t\t\tcase ($chartArray[0][50]==3) && ($chartArray[0][65]==2||$chartArray[0][75]==2||$chartArray[0][81]==2||$chartArray[0][74]==2||$chartArray[0][48]==2||$chartArray[0][57]==2||$chartArray[0][56]==2||$chartArray[0][55]==2||$chartArray[0][54]==2||$chartArray[0][53]==2||$chartArray[0][52]==2||$chartArray[0][51]==2):\r\n\t\t\t\tswitch ($chartArray)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase $chartArray[0][65]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Twos over Aces\";\r\n\t\t\t\t\t\t$this->points = 2012;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][75]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Twos over Kings\";\r\n\t\t\t\t\t\t$this->points = 2011;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][81]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Twos over Queens\";\r\n\t\t\t\t\t\t$this->points = 2010;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][74]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Twos over Jacks\";\r\n\t\t\t\t\t\t$this->points = 2009;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][48]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Twos over Tens\";\r\n\t\t\t\t\t\t$this->points = 2008;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][57]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Twos over Nines\";\r\n\t\t\t\t\t\t$this->points = 2007;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][56]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Twos over Eights\";\r\n\t\t\t\t\t\t$this->points = 2006;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][55]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Twos over Sevens\";\r\n\t\t\t\t\t\t$this->points = 2005;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][54]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Twos over Sixes\";\r\n\t\t\t\t\t\t$this->points = 2004;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][53]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Twos over Fives\";\r\n\t\t\t\t\t\t$this->points = 2003;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][52]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Twos over Fours\";\r\n\t\t\t\t\t\t$this->points = 2002;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][51]==2:\r\n\t\t\t\t\t\t$this->text=\"FULL HOUSE!!: Twos over Threes\";\r\n\t\t\t\t\t\t$this->points = 2001;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}//End inner twos switch\r\n\t\t\t\tbreak;\r\n\t\t\t\t/*\r\n\t\t\t\tEND FULL HOUSE TESTS WITH SUB-SWITCHES\r\n\t\t\t\t*/\r\n/****************************************\r\n*START FLUSH TESTS - START FLUSH TESTS*\r\n*START FLUSH TESTS - START FLUSH TESTS*\r\n*****************************************/\t\t\t\t\r\n\t\t\t\t//test for spade flush\r\n\t\t\t\t//Points: 1500 - 1512\r\n\t\t\t\tcase ($chartArray[0][83]>=5) && (in_array(\"AS\",$evaluateArray)==true):\r\n\t\t\t\t$this->text = \"!!!ITS A SPADE FLUSH - ACE HIGH!!!\";\r\n\t\t\t\t$this->points = 1512;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AS\",\"KS\",\"QS\",\"JS\",\"10S\",\"9S\",\"8S\",\"7S\",\"6S\",\"5S\",\"4S\",\"3S\",\"2S\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][83]>=5) && in_array(\"KS\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A SPADE FLUSH - KING HIGH!!!\";\r\n\t\t\t\t$this->points = 1511;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AS\",\"KS\",\"QS\",\"JS\",\"10S\",\"9S\",\"8S\",\"7S\",\"6S\",\"5S\",\"4S\",\"3S\",\"2S\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][83]>=5) && in_array(\"QS\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A SPADE FLUSH - QUEEN HIGH!!!\";\r\n\t\t\t\t$this->points = 1510;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AS\",\"KS\",\"QS\",\"JS\",\"10S\",\"9S\",\"8S\",\"7S\",\"6S\",\"5S\",\"4S\",\"3S\",\"2S\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][83]>=5) && in_array(\"JS\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A SPADE FLUSH - JACK HIGH!!!\";\r\n\t\t\t\t$this->points = 1509;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AS\",\"KS\",\"QS\",\"JS\",\"10S\",\"9S\",\"8S\",\"7S\",\"6S\",\"5S\",\"4S\",\"3S\",\"2S\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][83]>=5) && in_array(\"10S\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A SPADE FLUSH - TEN HIGH!!!\";\r\n\t\t\t\t$this->points = 1508;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AS\",\"KS\",\"QS\",\"JS\",\"10S\",\"9S\",\"8S\",\"7S\",\"6S\",\"5S\",\"4S\",\"3S\",\"2S\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][83]>=5) && in_array(\"9S\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A SPADE FLUSH - NINE HIGH!!!\";\r\n\t\t\t\t$this->points = 1507;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AS\",\"KS\",\"QS\",\"JS\",\"10S\",\"9S\",\"8S\",\"7S\",\"6S\",\"5S\",\"4S\",\"3S\",\"2S\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][83]>=5) && in_array(\"8S\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A SPADE FLUSH - EIGHT HIGH!!!\";\r\n\t\t\t\t$this->points = 1506;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AS\",\"KS\",\"QS\",\"JS\",\"10S\",\"9S\",\"8S\",\"7S\",\"6S\",\"5S\",\"4S\",\"3S\",\"2S\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][83]>=5) && in_array(\"7S\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A SPADE FLUSH - SEVEN HIGH!!!\";\r\n\t\t\t\t$this->points = 1505;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AS\",\"KS\",\"QS\",\"JS\",\"10S\",\"9S\",\"8S\",\"7S\",\"6S\",\"5S\",\"4S\",\"3S\",\"2S\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][83]>=5) && in_array(\"6S\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A SPADE FLUSH - SIX HIGH!!!\";\r\n\t\t\t\t$this->points = 1504;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AS\",\"KS\",\"QS\",\"JS\",\"10S\",\"9S\",\"8S\",\"7S\",\"6S\",\"5S\",\"4S\",\"3S\",\"2S\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][83]>=5) && in_array(\"5S\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A SPADE FLUSH - FIVE HIGH!!!\";\r\n\t\t\t\t$this->points = 1503;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AS\",\"KS\",\"QS\",\"JS\",\"10S\",\"9S\",\"8S\",\"7S\",\"6S\",\"5S\",\"4S\",\"3S\",\"2S\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][83]>=5) && in_array(\"4S\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A SPADE FLUSH - FOUR HIGH!!!\";\r\n\t\t\t\t$this->points = 1502;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AS\",\"KS\",\"QS\",\"JS\",\"10S\",\"9S\",\"8S\",\"7S\",\"6S\",\"5S\",\"4S\",\"3S\",\"2S\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][83]>=5) && in_array(\"3S\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A SPADE FLUSH - THREE HIGH!!!\";\r\n\t\t\t\t$this->points = 1501;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AS\",\"KS\",\"QS\",\"JS\",\"10S\",\"9S\",\"8S\",\"7S\",\"6S\",\"5S\",\"4S\",\"3S\",\"2S\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][83]>=5) && in_array(\"2S\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A SPADE FLUSH - TWO HIGH!!!\";\r\n\t\t\t\t$this->points = 1500;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AS\",\"KS\",\"QS\",\"JS\",\"10S\",\"9S\",\"8S\",\"7S\",\"6S\",\"5S\",\"4S\",\"3S\",\"2S\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t//test for diamond flush\r\n\t\t\t\t//Points: 1500 - 1512\t\t\t\t\r\n\t\t\t\tcase ($chartArray[0][68]>=5) && (in_array(\"AD\",$evaluateArray)==true):\r\n\t\t\t\t$this->text = \"!!!ITS A DIAMOND FLUSH - ACE HIGH!!!\";\r\n\t\t\t\t$this->points = 1512;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AD\",\"KD\",\"QD\",\"JD\",\"10D\",\"9D\",\"8D\",\"7D\",\"6D\",\"5D\",\"4D\",\"3D\",\"2D\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][68]>=5) && in_array(\"KD\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A DIAMOND FLUSH - KING HIGH!!!\";\r\n\t\t\t\t$this->points = 1511;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AD\",\"KD\",\"QD\",\"JD\",\"10D\",\"9D\",\"8D\",\"7D\",\"6D\",\"5D\",\"4D\",\"3D\",\"2D\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][68]>=5) && in_array(\"QD\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A DIAMOND FLUSH - QUEEN HIGH!!!\";\r\n\t\t\t\t$this->points = 1510;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AD\",\"KD\",\"QD\",\"JD\",\"10D\",\"9D\",\"8D\",\"7D\",\"6D\",\"5D\",\"4D\",\"3D\",\"2D\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][68]>=5) && in_array(\"JD\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A DIAMOND FLUSH - JACK HIGH!!!\";\r\n\t\t\t\t$this->points = 1509;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AD\",\"KD\",\"QD\",\"JD\",\"10D\",\"9D\",\"8D\",\"7D\",\"6D\",\"5D\",\"4D\",\"3D\",\"2D\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][68]>=5) && in_array(\"10D\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A DIAMOND FLUSH - TEN HIGH!!!\";\r\n\t\t\t\t$this->points = 1508;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AD\",\"KD\",\"QD\",\"JD\",\"10D\",\"9D\",\"8D\",\"7D\",\"6D\",\"5D\",\"4D\",\"3D\",\"2D\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][68]>=5) && in_array(\"9D\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A DIAMOND FLUSH - NINE HIGH!!!\";\r\n\t\t\t\t$this->points = 1507;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AD\",\"KD\",\"QD\",\"JD\",\"10D\",\"9D\",\"8D\",\"7D\",\"6D\",\"5D\",\"4D\",\"3D\",\"2D\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][68]>=5) && in_array(\"8D\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A DIAMOND FLUSH - EIGHT HIGH!!!\";\r\n\t\t\t\t$this->points = 1506;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AD\",\"KD\",\"QD\",\"JD\",\"10D\",\"9D\",\"8D\",\"7D\",\"6D\",\"5D\",\"4D\",\"3D\",\"2D\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][68]>=5) && in_array(\"7D\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A DIAMOND FLUSH - SEVEN HIGH!!!\";\r\n\t\t\t\t$this->points = 1505;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AD\",\"KD\",\"QD\",\"JD\",\"10D\",\"9D\",\"8D\",\"7D\",\"6D\",\"5D\",\"4D\",\"3D\",\"2D\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][68]>=5) && in_array(\"6D\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A DIAMOND FLUSH - SIX HIGH!!!\";\r\n\t\t\t\t$this->points = 1504;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AD\",\"KD\",\"QD\",\"JD\",\"10D\",\"9D\",\"8D\",\"7D\",\"6D\",\"5D\",\"4D\",\"3D\",\"2D\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][68]>=5) && in_array(\"5D\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A DIAMOND FLUSH - FIVE HIGH!!!\";\r\n\t\t\t\t$this->points = 1503;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AD\",\"KD\",\"QD\",\"JD\",\"10D\",\"9D\",\"8D\",\"7D\",\"6D\",\"5D\",\"4D\",\"3D\",\"2D\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][68]>=5) && in_array(\"4D\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A DIAMOND FLUSH - FOUR HIGH!!!\";\r\n\t\t\t\t$this->points = 1502;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AD\",\"KD\",\"QD\",\"JD\",\"10D\",\"9D\",\"8D\",\"7D\",\"6D\",\"5D\",\"4D\",\"3D\",\"2D\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][68]>=5) && in_array(\"3D\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A DIAMOND FLUSH - THREE HIGH!!!\";\r\n\t\t\t\t$this->points = 1501;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AD\",\"KD\",\"QD\",\"JD\",\"10D\",\"9D\",\"8D\",\"7D\",\"6D\",\"5D\",\"4D\",\"3D\",\"2D\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][68]>=5) && in_array(\"2D\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A DIAMOND FLUSH - TWO HIGH!!!\";\r\n\t\t\t\t$this->points = 1500;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AD\",\"KD\",\"QD\",\"JD\",\"10D\",\"9D\",\"8D\",\"7D\",\"6D\",\"5D\",\"4D\",\"3D\",\"2D\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t//TEST for club flush\r\n\t\t\t\t//Points: 1500 - 1512\r\n\t\t\t\tcase ($chartArray[0][67]>=5) && (in_array(\"AC\",$evaluateArray)==true):\r\n\t\t\t\t$this->text = \"!!!ITS A CLUB FLUSH - ACE HIGH!!!\";\r\n\t\t\t\t$this->points = 1512;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AC\",\"KC\",\"QC\",\"JC\",\"10C\",\"9C\",\"8C\",\"7C\",\"6C\",\"5C\",\"4C\",\"3C\",\"2C\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][67]>=5) && in_array(\"KC\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A CLUB FLUSH - KING HIGH!!!\";\r\n\t\t\t\t$this->points = 1511;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AC\",\"KC\",\"QC\",\"JC\",\"10C\",\"9C\",\"8C\",\"7C\",\"6C\",\"5C\",\"4C\",\"3C\",\"2C\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][67]>=5) && in_array(\"QC\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A CLUB FLUSH - QUEEN HIGH!!!\";\r\n\t\t\t\t$this->points = 1510;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AC\",\"KC\",\"QC\",\"JC\",\"10C\",\"9C\",\"8C\",\"7C\",\"6C\",\"5C\",\"4C\",\"3C\",\"2C\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][67]>=5) && in_array(\"JC\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A CLUB FLUSH - JACK HIGH!!!\";\r\n\t\t\t\t$this->points = 1509;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AC\",\"KC\",\"QC\",\"JC\",\"10C\",\"9C\",\"8C\",\"7C\",\"6C\",\"5C\",\"4C\",\"3C\",\"2C\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][67]>=5) && in_array(\"10C\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A CLUB FLUSH - TEN HIGH!!!\";\r\n\t\t\t\t$this->points = 1508;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AC\",\"KC\",\"QC\",\"JC\",\"10C\",\"9C\",\"8C\",\"7C\",\"6C\",\"5C\",\"4C\",\"3C\",\"2C\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][67]>=5) && in_array(\"9C\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A CLUB FLUSH - NINE HIGH!!!\";\r\n\t\t\t\t$this->points = 1507;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AC\",\"KC\",\"QC\",\"JC\",\"10C\",\"9C\",\"8C\",\"7C\",\"6C\",\"5C\",\"4C\",\"3C\",\"2C\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][67]>=5) && in_array(\"8C\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A CLUB FLUSH - EIGHT HIGH!!!\";\r\n\t\t\t\t$this->points = 1506;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AC\",\"KC\",\"QC\",\"JC\",\"10C\",\"9C\",\"8C\",\"7C\",\"6C\",\"5C\",\"4C\",\"3C\",\"2C\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][67]>=5) && in_array(\"7C\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A CLUB FLUSH - SEVEN HIGH!!!\";\r\n\t\t\t\t$this->points = 1505;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AC\",\"KC\",\"QC\",\"JC\",\"10C\",\"9C\",\"8C\",\"7C\",\"6C\",\"5C\",\"4C\",\"3C\",\"2C\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][67]>=5) && in_array(\"6C\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A CLUB FLUSH - SIX HIGH!!!\";\r\n\t\t\t\t$this->points = 1504;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AC\",\"KC\",\"QC\",\"JC\",\"10C\",\"9C\",\"8C\",\"7C\",\"6C\",\"5C\",\"4C\",\"3C\",\"2C\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][67]>=5) && in_array(\"5C\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A CLUB FLUSH - FIVE HIGH!!!\";\r\n\t\t\t\t$this->points = 1503;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AC\",\"KC\",\"QC\",\"JC\",\"10C\",\"9C\",\"8C\",\"7C\",\"6C\",\"5C\",\"4C\",\"3C\",\"2C\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][67]>=5) && in_array(\"4C\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A CLUB FLUSH - FOUR HIGH!!!\";\r\n\t\t\t\t$this->points = 1502;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AC\",\"KC\",\"QC\",\"JC\",\"10C\",\"9C\",\"8C\",\"7C\",\"6C\",\"5C\",\"4C\",\"3C\",\"2C\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][67]>=5) && in_array(\"3C\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A CLUB FLUSH - THREE HIGH!!!\";\r\n\t\t\t\t$this->points = 1501;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AC\",\"KC\",\"QC\",\"JC\",\"10C\",\"9C\",\"8C\",\"7C\",\"6C\",\"5C\",\"4C\",\"3C\",\"2C\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][67]>=5) && in_array(\"2C\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A CLUB FLUSH - TWO HIGH!!!\";\r\n\t\t\t\t$this->points = 1500;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AC\",\"KC\",\"QC\",\"JC\",\"10C\",\"9C\",\"8C\",\"7C\",\"6C\",\"5C\",\"4C\",\"3C\",\"2C\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t//TEST for heart flush\r\n\t\t\t\t//Points: 1500 - 1512\r\n\t\t\t\tcase ($chartArray[0][72]>=5) && (in_array(\"AH\",$evaluateArray)==true):\r\n\t\t\t\t$this->text = \"!!!ITS A HEART FLUSH - ACE HIGH!!!\";\r\n\t\t\t\t$this->points = 1512;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AH\",\"KH\",\"QH\",\"JH\",\"10H\",\"9H\",\"8H\",\"7H\",\"6H\",\"5H\",\"4H\",\"3H\",\"2H\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][72]>=5) && in_array(\"KH\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A HEART FLUSH - KING HIGH!!!\";\r\n\t\t\t\t$this->points = 1511;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AH\",\"KH\",\"QH\",\"JH\",\"10H\",\"9H\",\"8H\",\"7H\",\"6H\",\"5H\",\"4H\",\"3H\",\"2H\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][72]>=5) && in_array(\"QH\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A HEART FLUSH - QUEEN HIGH!!!\";\r\n\t\t\t\t$this->points = 1510;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AH\",\"KH\",\"QH\",\"JH\",\"10H\",\"9H\",\"8H\",\"7H\",\"6H\",\"5H\",\"4H\",\"3H\",\"2H\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][72]>=5) && in_array(\"JH\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A HEART FLUSH - JACK HIGH!!!\";\r\n\t\t\t\t$this->points = 1509;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AH\",\"KH\",\"QH\",\"JH\",\"10H\",\"9H\",\"8H\",\"7H\",\"6H\",\"5H\",\"4H\",\"3H\",\"2H\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][72]>=5) && in_array(\"10H\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A HEART FLUSH - TEN HIGH!!!\";\r\n\t\t\t\t$this->points = 1508;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AH\",\"KH\",\"QH\",\"JH\",\"10H\",\"9H\",\"8H\",\"7H\",\"6H\",\"5H\",\"4H\",\"3H\",\"2H\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][72]>=5) && in_array(\"9H\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A HEART FLUSH - NINE HIGH!!!\";\r\n\t\t\t\t$this->points = 1507;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AH\",\"KH\",\"QH\",\"JH\",\"10H\",\"9H\",\"8H\",\"7H\",\"6H\",\"5H\",\"4H\",\"3H\",\"2H\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][72]>=5) && in_array(\"8H\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A HEART FLUSH - EIGHT HIGH!!!\";\r\n\t\t\t\t$this->points = 1506;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AH\",\"KH\",\"QH\",\"JH\",\"10H\",\"9H\",\"8H\",\"7H\",\"6H\",\"5H\",\"4H\",\"3H\",\"2H\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][72]>=5) && in_array(\"7H\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A HEART FLUSH - SEVEN HIGH!!!\";\r\n\t\t\t\t$this->points = 1505;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AH\",\"KH\",\"QH\",\"JH\",\"10H\",\"9H\",\"8H\",\"7H\",\"6H\",\"5H\",\"4H\",\"3H\",\"2H\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][72]>=5) && in_array(\"6H\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A HEART FLUSH - SIX HIGH!!!\";\r\n\t\t\t\t$this->points = 1504;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AH\",\"KH\",\"QH\",\"JH\",\"10H\",\"9H\",\"8H\",\"7H\",\"6H\",\"5H\",\"4H\",\"3H\",\"2H\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][72]>=5) && in_array(\"5H\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A HEART FLUSH - FIVE HIGH!!!\";\r\n\t\t\t\t$this->points = 1503;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AH\",\"KH\",\"QH\",\"JH\",\"10H\",\"9H\",\"8H\",\"7H\",\"6H\",\"5H\",\"4H\",\"3H\",\"2H\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][72]>=5) && in_array(\"4H\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A HEART FLUSH - FOUR HIGH!!!\";\r\n\t\t\t\t$this->points = 1502;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AH\",\"KH\",\"QH\",\"JH\",\"10H\",\"9H\",\"8H\",\"7H\",\"6H\",\"5H\",\"4H\",\"3H\",\"2H\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][72]>=5) && in_array(\"3H\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A HEART FLUSH - THREE HIGH!!!\";\r\n\t\t\t\t$this->points = 1501;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AH\",\"KH\",\"QH\",\"JH\",\"10H\",\"9H\",\"8H\",\"7H\",\"6H\",\"5H\",\"4H\",\"3H\",\"2H\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase ($chartArray[0][72]>=5) && in_array(\"2H\",$evaluateArray)==true:\r\n\t\t\t\t$this->text = \"!!!ITS A HEART FLUSH - TWO HIGH!!!\";\r\n\t\t\t\t$this->points = 1500;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"AH\",\"KH\",\"QH\",\"JH\",\"10H\",\"9H\",\"8H\",\"7H\",\"6H\",\"5H\",\"4H\",\"3H\",\"2H\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (in_array(\"$indexArray[$i]\",$evaluateArray)) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!in_array(\"$indexArray[$i]\",$evaluateArray))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t//TEST FOR STRAIGHTS\r\n\t\t\t\t//Points: 1350-1359\r\n\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])&&array_key_exists(\"74\",$chartArray[0])&&array_key_exists(\"81\",$chartArray[0])&&array_key_exists(\"75\",$chartArray[0])&&array_key_exists(\"65\",$chartArray[0]):\r\n\t\t\t\t$this->text = \"!!ITS AN ACE HIGH STRAIGHT!!\";\r\n\t\t\t\t$this->points = 1359;\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])&&array_key_exists(\"48\",$chartArray[0])&&array_key_exists(\"74\",$chartArray[0])&&array_key_exists(\"81\",$chartArray[0])&&array_key_exists(\"75\",$chartArray[0]):\r\n\t\t\t\t$this->text = \"!!ITS A KING HIGH STRAIGHT!!\";\r\n\t\t\t\t$this->points = 1358;\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])&&array_key_exists(\"57\",$chartArray[0])&&array_key_exists(\"48\",$chartArray[0])&&array_key_exists(\"74\",$chartArray[0])&&array_key_exists(\"81\",$chartArray[0]):\r\n\t\t\t\t$this->text = \"!!ITS A QUEEN HIGH STRAIGHT!!\";\r\n\t\t\t\t$this->points = 1357;\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])&&array_key_exists(\"56\",$chartArray[0])&&array_key_exists(\"57\",$chartArray[0])&&array_key_exists(\"48\",$chartArray[0])&&array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t$this->text = \"!!ITS A JACK HIGH STRAIGHT!!\";\r\n\t\t\t\t$this->points = 1356;\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])&&array_key_exists(\"55\",$chartArray[0])&&array_key_exists(\"56\",$chartArray[0])&&array_key_exists(\"57\",$chartArray[0])&&array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t$this->text = \"!!ITS A 10 HIGH STRAIGHT!!\";\r\n\t\t\t\t$this->points = 1355;\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])&&array_key_exists(\"54\",$chartArray[0])&&array_key_exists(\"55\",$chartArray[0])&&array_key_exists(\"56\",$chartArray[0])&&array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t$this->text = \"!!ITS A 9 HIGH STRAIGHT!!\";\r\n\t\t\t\t$this->points = 1354;\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])&&array_key_exists(\"53\",$chartArray[0])&&array_key_exists(\"54\",$chartArray[0])&&array_key_exists(\"55\",$chartArray[0])&&array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t$this->text = \"!!ITS AN 8 HIGH STRAIGHT!!\";\r\n\t\t\t\t$this->points = 1353;\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])&&array_key_exists(\"52\",$chartArray[0])&&array_key_exists(\"53\",$chartArray[0])&&array_key_exists(\"54\",$chartArray[0])&&array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t$this->text = \"!!ITS A 7 HIGH STRAIGHT!!\";\r\n\t\t\t\t$this->points = 1352;\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])&&array_key_exists(\"51\",$chartArray[0])&&array_key_exists(\"52\",$chartArray[0])&&array_key_exists(\"53\",$chartArray[0])&&array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t$this->text = \"!!ITS A 6 HIGH STRAIGHT!!\";\r\n\t\t\t\t$this->points = 1351;\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])&&array_key_exists(\"50\",$chartArray[0])&&array_key_exists(\"51\",$chartArray[0])&&array_key_exists(\"52\",$chartArray[0])&&array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t$this->text = \"!!ITS A 5 HIGH STRAIGHT!!\";\r\n\t\t\t\t$this->points = 1350;\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t//Test for three of a kind\r\n\t\t\t\t//Points: 1300-1312\r\n\t\t\t\tcase $chartArray[0][65]==3:\r\n\t\t\t\t$this->text = \"THREE ACES!\";\r\n\t\t\t\t$this->points = 1312;\r\n//start kicker for three aces\r\n\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://3-Aces\r\n\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Kings\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Queen Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://3-Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Queens\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://3-Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN JACKS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://3-Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN TENS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://3-Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN NINES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://3-Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN EIGHTS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://3-Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN SEVENS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://3-Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2: WITHIN SIXES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://3-Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN FIVES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://3-Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN 4'S\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://3-Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN 3'S\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://3-Ace\r\n\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n//end kicker for three aces\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][75]==3:\r\n\t\t\t\t$this->text = \"THREE KINGS!\";\r\n\t\t\t\t$this->points = 1311;\r\n//start kicker for three kings\r\n\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://3-k\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Kings\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Queen Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://3-k\r\n\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Queens\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://3-k\r\n\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN JACKS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://3-k\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN TENS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://3-k\r\n\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN NINES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://3-k\r\n\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN EIGHTS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://3-k\r\n\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN SEVENS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://3-k\r\n\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2: WITHIN SIXES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://3-k\r\n\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN FIVES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://3-k\r\n\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN 4'S\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://3-k\r\n\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN 3'S\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://3-k\r\n\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n//end kicker for three kings\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][81]==3:\r\n\t\t\t\t$this->text = \"THREE QUEENS!\";\r\n\t\t\t\t$this->points = 1310;\r\n//start kicker for three queens\r\n\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://3-q\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Kings\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"King Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://3-q\r\n\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Kings\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://3-q\r\n\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN JACKS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://3-q\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN TENS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://3-q\r\n\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN NINES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://3-q\r\n\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN EIGHTS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://3-q\r\n\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN SEVENS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://3-q\r\n\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2: WITHIN SIXES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://3-q\r\n\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN FIVES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://3-q\r\n\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN 4'S\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://3-q\r\n\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN 3'S\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://3-q\r\n\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n//emd kicker for three queens\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][74]==3:\r\n\t\t\t\t$this->text = \"THREE JACKS!\";\r\n\t\t\t\t$this->points = 1309;\r\n//start kicker for three jacks\r\n\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://3-j\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Kings\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"King Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Queen Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://3-j\r\n\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Kings\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Queen Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://3-j\r\n\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Queens\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://3-j\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN TENS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://3-j\r\n\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN NINES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://3-j\r\n\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN EIGHTS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://3-j\r\n\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN SEVENS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://3-j\r\n\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2: WITHIN SIXES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://3-j\r\n\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN FIVES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://3-j\r\n\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN 4'S\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://3-j\r\n\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN 3'S\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://3-j\r\n\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n//end kicker for three jacks\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][48]==3:\r\n\t\t\t\t$this->text = \"THREE TENS!\";\r\n\t\t\t\t$this->points = 1308;\r\n//start kicker for three nines\r\n\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://3-10\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Kings\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"King Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Queen Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://3-10\r\n\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Kings\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Queen Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://3-10\r\n\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Queens\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://3-10\r\n\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN JACKS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://3-10\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN TENS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://3-10\r\n\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN NINES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://3-10\r\n\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN EIGHTS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://3-10\r\n\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN SEVENS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://3-10\r\n\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2: WITHIN SIXES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://3-10\r\n\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN FIVES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://3-10\r\n\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN 4'S\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://3-10\r\n\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN 3'S\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://3-10\r\n\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n//end kicker for three nines\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][57]==3:\r\n\t\t\t\t$this->text = \"THREE NINES!\";\r\n\t\t\t\t$this->points = 1307;\r\n//start kicker for three 9's\r\n\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://3-9\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Kings\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"King Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Queen Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://3-9\r\n\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Kings\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Queen Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://3-9\r\n\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Queens\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://3-9\r\n\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN JACKS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://3-9\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN TENS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://3-9\r\n\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN EIGHTS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://3-9\r\n\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN SEVENS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://3-9\r\n\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2: WITHIN SIXES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://3-9\r\n\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN FIVES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://3-9\r\n\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN 4'S\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://3-9\r\n\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN 3'S\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://3-9\r\n\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n//end kicker for three nines\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][56]==3:\r\n\t\t\t\t$this->text = \"THREE EIGHTS!\";\r\n\t\t\t\t$this->points = 1306;\r\n//start kicker for three 8's\r\n\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://3-8\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Kings\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"King Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Queen Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://3-8\r\n\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Kings\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Queen Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://3-8\r\n\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Queens\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://3-8\r\n\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN JACKS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://3-8\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN TENS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://3-8\r\n\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN NINES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://3-8\r\n\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN SEVENS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://3-8\r\n\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2: WITHIN SIXES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://3-8\r\n\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN FIVES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://3-8\r\n\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN 4'S\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://3-8\r\n\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN 3'S\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://3-8\r\n\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n//end kicker for three 8's\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][55]==3:\r\n\t\t\t\t$this->text = \"THREE SEVENS!\";\r\n\t\t\t\t$this->points = 1305;\r\n\r\n//start kicker for three sevens\r\n\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://3-7\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Kings\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"King Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Queen Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://3-7\r\n\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Kings\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Queen Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://3-7\r\n\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Queens\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://3-7\r\n\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN JACKS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://3-7\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN TENS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://3-7\r\n\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN NINES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://3-7\r\n\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN EIGHTS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://3-7\r\n\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2: WITHIN SIXES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://3-7\r\n\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN FIVES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://3-7\r\n\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN 4'S\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://3-7\r\n\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN 3'S\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://3-7\r\n\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n//end kicker for three sevens\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][54]==3:\r\n\t\t\t\t$this->text = \"THREE SIXES!\";\r\n\t\t\t\t$this->points = 1304;\r\n//start kicker for three sixes\r\n\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://3-6\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Kings\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"King Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0012;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Queen Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://3-6\r\n\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Kings\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Queen Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://3-6\r\n\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Queens\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://3-6\r\n\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN JACKS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://3-6\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN TENS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://3-6\r\n\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN NINES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://3-6\r\n\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN EIGHTS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://3-6\r\n\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN SEVENS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://3-6\r\n\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN FIVES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://3-6\r\n\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN 4'S\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://3-6\r\n\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN 3'S\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://3-6\r\n\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n//end kicker for three sixes\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][53]==3:\r\n\t\t\t\t$this->text = \"THREE FIVES!\";\r\n\t\t\t\t$this->points = 1303;\r\n//start kicker for three fives\r\n\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://3-5\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Kings\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"King Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0012;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Queen Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://3-5\r\n\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Kings\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Queen Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://3-5\r\n\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Queens\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://3-5\r\n\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN JACKS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://3-5\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN TENS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://3-5\r\n\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN NINES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://3-5\r\n\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN EIGHTS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://3-5\r\n\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN SEVENS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://3-5\r\n\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2: WITHIN SIXES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://3-5\r\n\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN 4'S\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://3-5\r\n\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN 3'S\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://3-5\r\n\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n//end kicker for three fives\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][52]==3:\r\n\t\t\t\t$this->text = \"THREE FOURS!\";\r\n\t\t\t\t$this->points = 1302;\r\n//start kicker for three fours\r\n\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://3-4\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Kings\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"King Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0012;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Queen Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://3-4\r\n\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Kings\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Queen Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://3-4\r\n\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Queens\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://3-4\r\n\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN JACKS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://3-4\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN TENS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://3-4\r\n\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN NINES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://3-4\r\n\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN EIGHTS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://3-4\r\n\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN SEVENS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://3-4\r\n\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2: WITHIN SIXES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://3-4\r\n\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN FIVES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://3-4\r\n\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN 3'S\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://3-4\r\n\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\t\t\t\t\r\n//end kicker for three 4's\t\t\t\t\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][51]==3:\r\n\t\t\t\t$this->text = \"THREE THREES!\";\r\n\t\t\t\t$this->points = 1301;\r\n//start kicker for three 3's\r\n\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://3-3\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Kings\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"King Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0012;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Queen Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://3-3\r\n\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Kings\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Queen Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://3-3\r\n\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Queens\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://3-3\r\n\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN JACKS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://3-3\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN TENS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://3-3\r\n\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN NINES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://3-3\r\n\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN EIGHTS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://3-3\r\n\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN SEVENS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://3-3\r\n\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2: WITHIN SIXES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://3-3\r\n\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN FIVES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://3-3\r\n\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN 4'S\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://3-3\r\n\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n//end kicker for three 3's\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][50]==3:\r\n\t\t\t\t$this->text = \"THREE TWOS!\";\r\n\t\t\t\t$this->points = 1300;\r\n//start kicker for three 2's\r\n\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://3-2\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Kings\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"King Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0012;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Queen Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://3-2\r\n\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Kings\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Queen Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0011;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://3-2\r\n\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN Queens\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Jack Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0010;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://3-2\r\n\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t //START KICKER 2 WITHIN JACKS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Ten Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0009;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://3-2\r\n\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN TENS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Nine Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0008;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://3-2\r\n\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN NINES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Eight Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0007;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://3-2\r\n\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN EIGHTS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Seven Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0006;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://3-2\r\n\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2 WITHIN SEVENS\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Six Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0005;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://3-2\r\n\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){\t//START KICKER 2: WITHIN SIXES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Five Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0004;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://3-2\r\n\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN FIVES\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Four Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0003;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://3-2\r\n\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN 4'S\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Three Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0002;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://3-2\r\n\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\t\tswitch ($chartArray){//START KICKER 2: WITHIN 3'S\r\n\t\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0]):\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Text = \"Two Kicker\";\r\n\t\t\t\t\t\t\t\t\t$this->kicker2Points = .0001;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://3-2\r\n\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n//end kicker for three 2's\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t//Two pair\r\n\t\t\t\t//Points: 101 - 1212\r\n\t\t\t\t//the same pair is tripping it on the && side - I need to pull out the first pair\r\n\t\t\t\t//Aces\r\n/****************************************\r\n*THIS IS THE START OF THE TWO PAIR TESTS*\r\n*THIS IS THE START OF THE TWO PAIR TESTS*\r\n*THIS IS THE START OF THE TWO PAIR TESTS*\r\n*****************************************/\r\n\t\t\t\tcase ($chartArray[0][65]==2) && ($chartArray[0][75]==2||$chartArray[0][81]==2||$chartArray[0][74]==2||$chartArray[0][48]==2||$chartArray[0][57]==2||$chartArray[0][56]==2||$chartArray[0][55]==2||$chartArray[0][54]==2||$chartArray[0][53]==2||$chartArray[0][52]==2||$chartArray[0][51]==2||$chartArray[0][50]==2):\r\n\t\t\t\t\t\t//Aces sub switch - tests all pairs but Aces\r\n\t\t\t\t\t\tswitch ($chartArray)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase $chartArray[0][75]==2:\r\n\t\t\t\t\t\t$this->text = \"Two Pair: Aces & Kings\";\r\n\t\t\t\t\t\t$this->points= 1212;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][81]==2:\r\n\t\t\t\t\t\t$this->text = \"Two Pair: Aces & Queens\";\r\n\t\t\t\t\t\t$this->points= 1211;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][74]==2:\r\n\t\t\t\t\t\t$this->text = \"Two Pair: Aces & Jacks\";\r\n\t\t\t\t\t\t$this->points= 1210;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][48]==2:\r\n\t\t\t\t\t\t$this->text =\"Two Pair: Aces & Tens\";\r\n\t\t\t\t\t\t$this->points= 1209;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][57]==2:\r\n\t\t\t\t\t\t$this->text = \"Two Pair: Aces & Nines\";\r\n\t\t\t\t\t\t$this->points= 1208;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][56]==2:\r\n\t\t\t\t\t\t$this->text = \"Two Pair: Aces & Eights\";\r\n\t\t\t\t\t\t$this->points= 1207;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][55]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Aces & Sevens\";\r\n\t\t\t\t\t\t$this->points= 1206;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][54]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Aces & Sixes\";\r\n\t\t\t\t\t\t$this->points= 1205;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][53]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Aces & Fives\";\r\n\t\t\t\t\t\t$this->points= 1204;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][52]==2:\r\n\t\t\t\t\t\t$this->text = \"Two Pair: Aces & Fours\";\r\n\t\t\t\t\t\t$this->points= 1203;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][51]==2:\r\n\t\t\t\t\t\t$this->text = \"Two Pair: Aces & Threes\";\r\n\t\t\t\t\t\t$this->points= 1202;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][50]==2: \r\n\t\t\t\t\t\t$this->text = \"Two Pair: Aces & Twos\";\r\n\t\t\t\t\t\t$this->points= 1201;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}//End inner Ace switch\r\n\t\t\t\tbreak;\r\n\t\t\t\t//Kings,\r\n\t\t\t\tcase ($chartArray[0][75]==2) && ($chartArray[0][65]==2||$chartArray[0][81]==2||$chartArray[0][74]==2||$chartArray[0][48]==2||$chartArray[0][57]==2||$chartArray[0][56]==2||$chartArray[0][55]==2||$chartArray[0][54]==2||$chartArray[0][53]==2||$chartArray[0][52]==2||$chartArray[0][51]==2||$chartArray[0][50]==2):\r\n\t\t\t\t//tests for kings first\r\n\t\t\t\t\tswitch ($chartArray)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase $chartArray[0][81]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Kings & Queens\";\r\n\t\t\t\t\t\t$this->points= 1111;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][74]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Kings & Jacks\";\r\n\t\t\t\t\t\t$this->points= 1110;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][48]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Kings & Tens\";\r\n\t\t\t\t\t\t$this->points= 1109;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][57]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Kings & Nines\";\r\n\t\t\t\t\t\t$this->points= 1108;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][56]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Kings & Eights\";\r\n\t\t\t\t\t\t$this->points= 1107;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][55]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Kings & Sevens\";\r\n\t\t\t\t\t\t$this->points= 1106;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][54]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Kings & Sixes\";\r\n\t\t\t\t\t\t$this->points= 1105;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][53]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Kings & Fives\";\r\n\t\t\t\t\t\t$this->points= 1104;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][52]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Kings & Fours\";\r\n\t\t\t\t\t\t$this->points= 1103;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][51]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Kings & Threes\";\r\n\t\t\t\t\t\t$this->points= 1102;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][50]==2: \r\n\t\t\t\t\t\t$this->text=\"Two Pair: Kings & Twos\";\r\n\t\t\t\t\t\t$this->points= 1101;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}//End inner king switch\r\n\t\t\t\tbreak;\r\n\t\t\t\t//Queens\r\n\t\t\t\tcase ($chartArray[0][81]==2) && ($chartArray[0][65]==2||$chartArray[0][75]==2||$chartArray[0][74]==2||$chartArray[0][48]==2||$chartArray[0][57]==2||$chartArray[0][56]==2||$chartArray[0][55]==2||$chartArray[0][54]==2||$chartArray[0][53]==2||$chartArray[0][52]==2||$chartArray[0][51]==2||$chartArray[0][50]==2):\r\n\t\t\t\tswitch ($chartArray)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase $chartArray[0][74]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Queens & Jacks\";\r\n\t\t\t\t\t\t$this->points= 1010;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][48]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Queens & Tens\";\r\n\t\t\t\t\t\t$this->points= 1009;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][57]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Queens & Nines\";\r\n\t\t\t\t\t\t$this->points= 1008;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][56]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Queens & Eights\";\r\n\t\t\t\t\t\t$this->points= 1007;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][55]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Queens & Sevens\";\r\n\t\t\t\t\t\t$this->points= 1006;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][54]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Queens & Sixes\";\r\n\t\t\t\t\t\t$this->points= 1005;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][53]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Queens & Fives\";\r\n\t\t\t\t\t\t$this->points= 1004;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][52]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Queens & Fours\";\r\n\t\t\t\t\t\t$this->points= 1003;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][51]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Queens & Threes\";\r\n\t\t\t\t\t\t$this->points= 1002;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][50]==2: \r\n\t\t\t\t\t\t$this->text=\"Two Pair: Queens & Twos\";\r\n\t\t\t\t\t\t$this->points= 1001;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}//End inner queen switch\r\n\t\t\t\tbreak;\r\n\t\t\t\t//Jacks\r\n\t\t\t\tcase ($chartArray[0][74]==2) && ($chartArray[0][65]==2||$chartArray[0][75]==2||$chartArray[0][81]==2||$chartArray[0][48]==2||$chartArray[0][57]==2||$chartArray[0][56]==2||$chartArray[0][55]==2||$chartArray[0][54]==2||$chartArray[0][53]==2||$chartArray[0][52]==2||$chartArray[0][51]==2||$chartArray[0][50]==2):\r\n\t\t\t\tswitch ($chartArray)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase $chartArray[0][48]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Jacks & Tens\";\r\n\t\t\t\t\t\t$this->points= 909;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][57]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Jacks & Nines\";\r\n\t\t\t\t\t\t$this->points= 908;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][56]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Jacks & Eights\";\r\n\t\t\t\t\t\t$this->points= 907;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][55]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Jacks & Sevens\";\r\n\t\t\t\t\t\t$this->points= 906;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][54]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Jacks & Sixes\";\r\n\t\t\t\t\t\t$this->points= 905;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][53]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Jacks & Fives\";\r\n\t\t\t\t\t\t$this->points= 904;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][52]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Jacks & Fours\";\r\n\t\t\t\t\t\t$this->points= 903;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][51]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Jacks & Threes\";\r\n\t\t\t\t\t\t$this->points= 902;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][50]==2: \r\n\t\t\t\t\t\t$this->text=\"Two Pair: Jacks & Twos\";\r\n\t\t\t\t\t\t$this->points= 901;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}//End inner jack switch\r\n\t\t\t\tbreak;\r\n\t\t\t\t//Tens\r\n\t\t\t\tcase ($chartArray[0][48]==2) && ($chartArray[0][65]==2||$chartArray[0][75]==2||$chartArray[0][81]==2||$chartArray[0][74]==2||$chartArray[0][57]==2||$chartArray[0][56]==2||$chartArray[0][55]==2||$chartArray[0][54]==2||$chartArray[0][53]==2||$chartArray[0][52]==2||$chartArray[0][51]==2||$chartArray[0][50]==2):\r\n\t\t\t\tswitch ($chartArray)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase $chartArray[0][57]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Tens & Nines\";\r\n\t\t\t\t\t\t$this->points= 808;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][56]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Tens & Eights\";\r\n\t\t\t\t\t\t$this->points= 807;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][55]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Tens & Sevens\";\r\n\t\t\t\t\t\t$this->points= 806;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][54]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Tens & Sixes\";\r\n\t\t\t\t\t\t$this->points= 805;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][53]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Tens & Fives\";\r\n\t\t\t\t\t\t$this->points= 804;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][52]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Tens & Fours\";\r\n\t\t\t\t\t\t$this->points= 803;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][51]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Tens & Threes\";\r\n\t\t\t\t\t\t$this->points= 802;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][50]==2: \r\n\t\t\t\t\t\t$this->text=\"Two Pair: Tens & Twos\";\r\n\t\t\t\t\t\t$this->points= 801;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}//End inner tens switch\r\n\t\t\t\tbreak;\r\n\t\t\t\t//Nines\r\n\t\t\t\tcase ($chartArray[0][57]==2) && ($chartArray[0][65]==2||$chartArray[0][75]==2||$chartArray[0][81]==2||$chartArray[0][74]==2||$chartArray[0][48]==2||$chartArray[0][56]==2||$chartArray[0][55]==2||$chartArray[0][54]==2||$chartArray[0][53]==2||$chartArray[0][52]==2||$chartArray[0][51]==2||$chartArray[0][50]==2):\r\n\t\t\t\tswitch ($chartArray)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase $chartArray[0][56]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Nines & Eights\";\r\n\t\t\t\t\t\t$this->points= 707;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][55]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Nines & Sevens\";\r\n\t\t\t\t\t\t$this->points= 706;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][54]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Nines & Sixes\";\r\n\t\t\t\t\t\t$this->points= 705;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][53]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Nines & Fives\";\r\n\t\t\t\t\t\t$this->points= 704;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][52]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Nines & Fours\";\r\n\t\t\t\t\t\t$this->points= 703;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][51]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Nines & Threes\";\r\n\t\t\t\t\t\t$this->points= 702;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][50]==2: \r\n\t\t\t\t\t\t$this->text=\"Two Pair: Nines & Twos\";\r\n\t\t\t\t\t\t$this->points=701;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}//End inner nines switch\r\n\t\t\t\tbreak;\r\n\t\t\t\t//Eights\r\n\t\t\t\tcase ($chartArray[0][56]==2) && ($chartArray[0][65]==2||$chartArray[0][75]==2||$chartArray[0][81]==2||$chartArray[0][74]==2||$chartArray[0][48]==2||$chartArray[0][57]==2||$chartArray[0][55]==2||$chartArray[0][54]==2||$chartArray[0][53]==2||$chartArray[0][52]==2||$chartArray[0][51]==2||$chartArray[0][50]==2):\r\n\t\t\t\tswitch ($chartArray)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase $chartArray[0][55]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Eights & Sevens\";\r\n\t\t\t\t\t\t$this->points=606;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][54]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Eights & Sixes\";\r\n\t\t\t\t\t\t$this->points=605;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][53]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Eights & Fives\";\r\n\t\t\t\t\t\t$this->points=604;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][52]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Eights & Fours\";\r\n\t\t\t\t\t\t$this->points=603;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][51]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Eights & Threes\";\r\n\t\t\t\t\t\t$this->points=602;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][50]==2: \r\n\t\t\t\t\t\t$this->text=\"Two Pair: Eights & Twos\";\r\n\t\t\t\t\t\t$this->points=601;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}//End inner eights switch\r\n\t\t\t\tbreak;\r\n\t\t\t\t//Sevens\r\n\t\t\t\tcase ($chartArray[0][55]==2) && ($chartArray[0][65]==2||$chartArray[0][75]==2||$chartArray[0][81]==2||$chartArray[0][74]==2||$chartArray[0][48]==2||$chartArray[0][57]==2||$chartArray[0][56]==2||$chartArray[0][54]==2||$chartArray[0][53]==2||$chartArray[0][52]==2||$chartArray[0][51]==2||$chartArray[0][50]==2):\r\n\t\t\t\tswitch ($chartArray)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase $chartArray[0][54]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Sevens & Sixes\";\r\n\t\t\t\t\t\t$this->points=505;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][53]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Sevens & Fives\";\r\n\t\t\t\t\t\t$this->points=504;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][52]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Sevens & Fours\";\r\n\t\t\t\t\t\t$this->points=503;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][51]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Sevens & Threes\";\r\n\t\t\t\t\t\t$this->points=502;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][50]==2: \r\n\t\t\t\t\t\t$this->text=\"Two Pair: Sevens & Twos\";\r\n\t\t\t\t\t\t$this->points=501;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}//End inner sevens switch\r\n\t\t\t\tbreak;\r\n\t\t\t\t//Sixes\r\n\t\t\t\tcase ($chartArray[0][54]==2) && ($chartArray[0][65]==2||$chartArray[0][75]==2||$chartArray[0][81]==2||$chartArray[0][74]==2||$chartArray[0][48]==2||$chartArray[0][57]==2||$chartArray[0][56]==2||$chartArray[0][55]==2||$chartArray[0][53]==2||$chartArray[0][52]==2||$chartArray[0][51]==2||$chartArray[0][50]==2):\r\n\t\t\t\tswitch ($chartArray)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase $chartArray[0][53]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Sixes & Fives\";\r\n\t\t\t\t\t\t$this->points=404;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][52]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Sixes & Fours\";\r\n\t\t\t\t\t\t$this->points=403;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][51]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Sixes & Threes\";\r\n\t\t\t\t\t\t$this->points=402;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][50]==2: \r\n\t\t\t\t\t\t$this->text=\"Two Pair: Sixes & Twos\";\r\n\t\t\t\t\t\t$this->points=401;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}//End inner sixes switch\r\n\t\t\t\tbreak;\r\n\t\t\t\t//Fives\r\n\t\t\t\tcase ($chartArray[0][53]==2) && ($chartArray[0][65]==2||$chartArray[0][75]==2||$chartArray[0][81]==2||$chartArray[0][74]==2||$chartArray[0][48]==2||$chartArray[0][57]==2||$chartArray[0][56]==2||$chartArray[0][55]==2||$chartArray[0][54]==2||$chartArray[0][52]==2||$chartArray[0][51]==2||$chartArray[0][50]==2):\r\n\t\t\t\tswitch ($chartArray)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase $chartArray[0][52]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Fives & Fours\";\r\n\t\t\t\t\t\t$this->points=303;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][51]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Fives & Threes\";\r\n\t\t\t\t\t\t$this->points=302;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][50]==2: \r\n\t\t\t\t\t\t$this->text=\"Two Pair: Fives & Twos\";\r\n\t\t\t\t\t\t$this->points=301;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}//End inner fives switch\r\n\t\t\t\tbreak;\r\n\t\t\t\t//Fours\r\n\t\t\t\tcase ($chartArray[0][52]==2) && ($chartArray[0][65]==2||$chartArray[0][75]==2||$chartArray[0][81]==2||$chartArray[0][74]==2||$chartArray[0][48]==2||$chartArray[0][57]==2||$chartArray[0][56]==2||$chartArray[0][55]==2||$chartArray[0][54]==2||$chartArray[0][53]==2||$chartArray[0][51]==2||$chartArray[0][50]==2):\r\n\t\t\t\tswitch ($chartArray)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase $chartArray[0][51]==2:\r\n\t\t\t\t\t\t$this->text=\"Two Pair: Fours & Threes\";\r\n\t\t\t\t\t\t$this->points=202;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"50\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Two Kicker\";//START ONE AND ONLY KICKER 1 - TWO\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .38;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase $chartArray[0][50]==2: \r\n\t\t\t\t\t\t$this->text=\"Two Pair: Fours & Twos\";\r\n\t\t\t\t\t\t$this->points=201;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"51\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Three Kicker\";//START KICKER 1: THREE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .39;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}//End inner fours switch\r\n\t\t\t\tbreak;\r\n\t\t\t\t//Threes\r\n\t\t\t\tcase ($chartArray[0][51]==2) && ($chartArray[0][65]==2||$chartArray[0][75]==2||$chartArray[0][81]==2||$chartArray[0][74]==2||$chartArray[0][48]==2||$chartArray[0][57]==2||$chartArray[0][56]==2||$chartArray[0][55]==2||$chartArray[0][54]==2||$chartArray[0][53]==2||$chartArray[0][52]==2||$chartArray[0][50]==2):\r\n\t\t\t\tswitch ($chartArray)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase $chartArray[0][50]==2: \r\n\t\t\t\t\t\t$this->text=\"Two Pair: Threes & Twos\";\r\n\t\t\t\t\t\t$this->points=101;\r\n\t\t\t\t\t\t\t\tswitch ($chartArray){\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"65\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ace Kicker\"; //KICKER 1 Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .50;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"75\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"King Kicker\"; //KICKER 1 King\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .49;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"81\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Queen Kicker\"; //KICKER 1 Queen\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .48;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"74\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Jack Kicker\"; //KICKER 1 JACK\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .47;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"48\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Ten Kicker\"; //START KICKER 1: 10\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .46;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"57\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Nine Kicker\";//START KICKER 1: NINE\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .45;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"56\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Eight Kicker\";//START KICKER 1: EIGHT\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .44;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"55\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Seven Kicker\";//START KICKER 1: SEVENS\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .43;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"54\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Six Kicker\";//START KICKER 1: SIX\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .42;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"53\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Five Kicker\";//START KICKER 1: FIVES\r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .41;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase array_key_exists(\"52\",$chartArray[0])://Ace\r\n\t\t\t\t\t\t\t\t$this->kicker1Text = \"Four Kicker\";//START KICKER 1: FOUR \r\n\t\t\t\t\t\t\t\t$this->kicker1Points = .40;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}//End inner threes switch\r\n\t\t\t\tbreak;\r\n\t\t\t\t//No test for two pairs with 2's first - or it would be four of a kind\r\n/***********************************\r\n*THIS IS THE START FOR PAIRS *\r\n*PAIRS - PAIRS - PAIRS *\r\n*PAIRS - PAIRS - PAIRS *\r\n************************************/\t\t\t\t\r\n\t\t\t\t//Test for a pair\t\t\r\n\t\t\t\tcase $chartArray[0][65]==2:\r\n\t\t\t\t$this->text = \"ITS A PAIR OF ACES!\";\r\n\t\t\t\t$this->points = 62;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"75\",\"81\",\"74\",\"48\",\"57\",\"56\",\"55\",\"54\",\"53\",\"52\",\"51\",\"50\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=11; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (array_key_exists(\"$indexArray[$i]\",$chartArray[0])) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!array_key_exists(\"$indexArray[$i]\",$chartArray[0]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[2];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][75]==2:\r\n\t\t\t\t$this->text = \"ITS A PAIR OF KINGS!\";\r\n\t\t\t\t$this->points = 61;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"65\",\"81\",\"74\",\"48\",\"57\",\"56\",\"55\",\"54\",\"53\",\"52\",\"51\",\"50\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=11; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (array_key_exists(\"$indexArray[$i]\",$chartArray[0])) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!array_key_exists(\"$indexArray[$i]\",$chartArray[0]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[2];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][81]==2:\r\n\t\t\t\t$this->text = \"ITS A PAIR OF QUEENS!\";\r\n\t\t\t\t$this->points = 60;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"65\",\"75\",\"74\",\"48\",\"57\",\"56\",\"55\",\"54\",\"53\",\"52\",\"51\",\"50\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=11; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (array_key_exists(\"$indexArray[$i]\",$chartArray[0])) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!array_key_exists(\"$indexArray[$i]\",$chartArray[0]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[2];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][74]==2:\r\n\t\t\t\t$this->text = \"ITS A PAIR OF JACKS!\";\r\n\t\t\t\t$this->points = 59;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"65\",\"75\",\"81\",\"48\",\"57\",\"56\",\"55\",\"54\",\"53\",\"52\",\"51\",\"50\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=11; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (array_key_exists(\"$indexArray[$i]\",$chartArray[0])) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!array_key_exists(\"$indexArray[$i]\",$chartArray[0]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[2];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][48]==2:\r\n\t\t\t\t$this->text = \"ITS A PAIR OF TENS!\";\r\n\t\t\t\t$this->points = 58;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"65\",\"75\",\"81\",\"74\",\"57\",\"56\",\"55\",\"54\",\"53\",\"52\",\"51\",\"50\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=11; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (array_key_exists(\"$indexArray[$i]\",$chartArray[0])) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!array_key_exists(\"$indexArray[$i]\",$chartArray[0]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[2];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][57]==2:\r\n\t\t\t\t$this->text = \"ITS A PAIR OF NINES!\";\r\n\t\t\t\t$this->points = 57;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"65\",\"75\",\"81\",\"74\",\"48\",\"56\",\"55\",\"54\",\"53\",\"52\",\"51\",\"50\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=11; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (array_key_exists(\"$indexArray[$i]\",$chartArray[0])) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!array_key_exists(\"$indexArray[$i]\",$chartArray[0]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[2];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][56]==2:\r\n\t\t\t\t$this->text = \"ITS A PAIR OF EIGHTS!\";\r\n\t\t\t\t$this->points = 56;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"65\",\"75\",\"81\",\"74\",\"48\",\"57\",\"55\",\"54\",\"53\",\"52\",\"51\",\"50\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=11; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (array_key_exists(\"$indexArray[$i]\",$chartArray[0])) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!array_key_exists(\"$indexArray[$i]\",$chartArray[0]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[2];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][55]==2:\r\n\t\t\t\t$this->text = \"ITS A PAIR OF SEVENS!\";\r\n\t\t\t\t$this->points = 55;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"65\",\"75\",\"81\",\"74\",\"48\",\"57\",\"56\",\"54\",\"53\",\"52\",\"51\",\"50\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=11; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (array_key_exists(\"$indexArray[$i]\",$chartArray[0])) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!array_key_exists(\"$indexArray[$i]\",$chartArray[0]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[2];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][54]==2:\r\n\t\t\t\t$this->text = \"ITS A PAIR OF SIXES!\";\r\n\t\t\t\t$this->points = 54;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"65\",\"75\",\"81\",\"74\",\"48\",\"57\",\"56\",\"55\",\"53\",\"52\",\"51\",\"50\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=11; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (array_key_exists(\"$indexArray[$i]\",$chartArray[0])) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!array_key_exists(\"$indexArray[$i]\",$chartArray[0]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[2];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][53]==2:\r\n\t\t\t\t$this->text = \"ITS A PAIR OF FIVES!\";\r\n\t\t\t\t$this->points = 53;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"65\",\"75\",\"81\",\"74\",\"48\",\"57\",\"56\",\"55\",\"54\",\"52\",\"51\",\"50\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=11; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (array_key_exists(\"$indexArray[$i]\",$chartArray[0])) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!array_key_exists(\"$indexArray[$i]\",$chartArray[0]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[2];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][52]==2:\r\n\t\t\t\t$this->text = \"ITS A PAIR OF FOURS!\";\r\n\t\t\t\t$this->points = 52;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"65\",\"75\",\"81\",\"74\",\"48\",\"57\",\"56\",\"55\",\"54\",\"53\",\"51\",\"50\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=11; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (array_key_exists(\"$indexArray[$i]\",$chartArray[0])) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!array_key_exists(\"$indexArray[$i]\",$chartArray[0]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[2];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][51]==2:\r\n\t\t\t\t$this->text = \"ITS A PAIR OF THREES!\";\r\n\t\t\t\t$this->points = 51;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"65\",\"75\",\"81\",\"74\",\"48\",\"57\",\"56\",\"55\",\"54\",\"53\",\"52\",\"50\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=11; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (array_key_exists(\"$indexArray[$i]\",$chartArray[0])) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!array_key_exists(\"$indexArray[$i]\",$chartArray[0]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[2];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase $chartArray[0][50]==2:\r\n\t\t\t\t$this->text = \"ITS A PAIR OF TWOS!\";\r\n\t\t\t\t$this->points = 50;\r\n\t\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"65\",\"75\",\"81\",\"74\",\"48\",\"57\",\"56\",\"55\",\"54\",\"53\",\"52\",\"51\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=11; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (array_key_exists(\"$indexArray[$i]\",$chartArray[0])) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!array_key_exists(\"$indexArray[$i]\",$chartArray[0]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\t$this->kicker1Points = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[0];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[2];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n/*************************************************\r\n*\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*\r\n*\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*\r\n*\tSTART HIGH CARDS\t\t\t\t\t\t\t\t\t\t\t\t\t*\r\n*\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t*\r\n***************************************************/\t\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t//Test for high card\r\n\t\t\t\t\t\t\t\t//Test for high card\r\n\t\t\t\tcase array_key_exists(\"65\",$chartArray[0]):\r\n\t\t\t\t$this->text = \"YOU HAVE BUNK - HIGH CARD ACE\";\r\n\t\t\t\t$this->points = 13;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"65\",\"75\",\"81\",\"74\",\"48\",\"57\",\"56\",\"55\",\"54\",\"53\",\"52\",\"51\",\"50\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (array_key_exists(\"$indexArray[$i]\",$chartArray[0])) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!array_key_exists(\"$indexArray[$i]\",$chartArray[0]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\tprint\"<p>\\n</p>\";\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase array_key_exists(\"75\",$chartArray[0]):\r\n\t\t\t\t$this->text = \"YOU HAVE BUNK - HIGH CARD KING\";\r\n\t\t\t\t$this->points = 12;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"65\",\"75\",\"81\",\"74\",\"48\",\"57\",\"56\",\"55\",\"54\",\"53\",\"52\",\"51\",\"50\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (array_key_exists(\"$indexArray[$i]\",$chartArray[0])) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!array_key_exists(\"$indexArray[$i]\",$chartArray[0]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\tprint\"<p>\\n</p>\";\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase array_key_exists(\"81\",$chartArray[0]):\r\n\t\t\t\t$this->text = \"YOU HAVE BUNK - HIGH CARD QUEEN\";\r\n\t\t\t\t$this->points = 11;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"65\",\"75\",\"81\",\"74\",\"48\",\"57\",\"56\",\"55\",\"54\",\"53\",\"52\",\"51\",\"50\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (array_key_exists(\"$indexArray[$i]\",$chartArray[0])) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!array_key_exists(\"$indexArray[$i]\",$chartArray[0]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\tprint\"<p>\\n</p>\";\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase array_key_exists(\"74\",$chartArray[0]):\r\n\t\t\t\t$this->text = \"YOU HAVE BUNK - HIGH CARD JACK\";\r\n\t\t\t\t$this->points = 10;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"65\",\"75\",\"81\",\"74\",\"48\",\"57\",\"56\",\"55\",\"54\",\"53\",\"52\",\"51\",\"50\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (array_key_exists(\"$indexArray[$i]\",$chartArray[0])) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!array_key_exists(\"$indexArray[$i]\",$chartArray[0]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\tprint\"<p>\\n</p>\";\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase array_key_exists(\"48\",$chartArray[0]):\r\n\t\t\t\t$this->text = \"YOU HAVE BUNK - HIGH CARD 10\";\r\n\t\t\t\t$this->points = 9;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"65\",\"75\",\"81\",\"74\",\"48\",\"57\",\"56\",\"55\",\"54\",\"53\",\"52\",\"51\",\"50\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (array_key_exists(\"$indexArray[$i]\",$chartArray[0])) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!array_key_exists(\"$indexArray[$i]\",$chartArray[0]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\tprint\"<p>\\n</p>\";\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase array_key_exists(\"57\",$chartArray[0]):\r\n\t\t\t\t$this->text = \"YOU HAVE BUNK - HIGH CARD 9\";\r\n\t\t\t\t$this->points = 8;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"65\",\"75\",\"81\",\"74\",\"48\",\"57\",\"56\",\"55\",\"54\",\"53\",\"52\",\"51\",\"50\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (array_key_exists(\"$indexArray[$i]\",$chartArray[0])) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!array_key_exists(\"$indexArray[$i]\",$chartArray[0]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\tprint\"<p>\\n</p>\";\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase array_key_exists(\"56\",$chartArray[0]):\r\n\t\t\t\t$this->text = \"YOU HAVE BUNK - HIGH CARD 8\";\r\n\t\t\t\t$this->points = 7;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"65\",\"75\",\"81\",\"74\",\"48\",\"57\",\"56\",\"55\",\"54\",\"53\",\"52\",\"51\",\"50\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (array_key_exists(\"$indexArray[$i]\",$chartArray[0])) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!array_key_exists(\"$indexArray[$i]\",$chartArray[0]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\tprint\"<p>\\n</p>\";\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase array_key_exists(\"55\",$chartArray[0]):\r\n\t\t\t\t$this->text = \"YOU HAVE BUNK - HIGH CARD 7\";\r\n\t\t\t\t$this->points = 6;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"65\",\"75\",\"81\",\"74\",\"48\",\"57\",\"56\",\"55\",\"54\",\"53\",\"52\",\"51\",\"50\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (array_key_exists(\"$indexArray[$i]\",$chartArray[0])) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!array_key_exists(\"$indexArray[$i]\",$chartArray[0]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\tprint\"<p>\\n</p>\";\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase array_key_exists(\"54\",$chartArray[0]):\r\n\t\t\t\t$this->text = \"YOU HAVE BUNK - HIGH CARD 6\";\r\n\t\t\t\t$this->points = 6;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"65\",\"75\",\"81\",\"74\",\"48\",\"57\",\"56\",\"55\",\"54\",\"53\",\"52\",\"51\",\"50\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (array_key_exists(\"$indexArray[$i]\",$chartArray[0])) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!array_key_exists(\"$indexArray[$i]\",$chartArray[0]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\tprint\"<p>\\n</p>\";\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase array_key_exists(\"53\",$chartArray[0]):\r\n\t\t\t\t$this->text = \"YOU HAVE BUNK - HIGH CARD 5\";\r\n\t\t\t\t$this->points = 6;\r\n\t\t\t\t//create index to sort from\r\n\t\t\t\t$indexArray = array(\"65\",\"75\",\"81\",\"74\",\"48\",\"57\",\"56\",\"55\",\"54\",\"53\",\"52\",\"51\",\"50\");\r\n\t\t\t\t$i=0;// increment indexArray \r\n\t\t\t\t$kickerArray = array(); //will store sorted hand\r\n\t\t\t\tfor ($a=0; $a<=12; $a++) //loops through 13 values\r\n\t\t\t\t{\r\n\t\t\t\t\tif (array_key_exists(\"$indexArray[$i]\",$chartArray[0])) //looks for a value in the hand in order\r\n\t\t\t\t\t{\r\n\t\t\t\t\tarray_push($kickerArray,$indexArray[$i]); //pushes to the kicker array if found\r\n\t\t\t\t\t$i++; //increments index on search array on sucess\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (!array_key_exists(\"$indexArray[$i]\",$chartArray[0]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$i++; //if it fails, increments index for next search\r\n\t\t\t\t\t}\r\n\t\t\t\t} //end for loop\r\n\t\t\t\tprint\"<p>\\n</p>\";\r\n\t\t\t\t$this->kicker1Points = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Points = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Points = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Points = $kickerArray[4];\r\n\t\t\t\t$this->kicker1Text = $kickerArray[1];\r\n\t\t\t\t$this->kicker2Text = $kickerArray[2];\r\n\t\t\t\t$this->kicker3Text = $kickerArray[3];\r\n\t\t\t\t$this->kicker4Text = $kickerArray[4];\r\n\t\t\t\treturn $points;\r\n\t\t\t\tbreak;\t\t\t\t\t\r\n\t\t\t\t}//end switch\r\n\t\t\t\t\r\n\t\t\t}",
"public function testCompareArray()\n\t{\n $selected = array(4);\n $result = array(1,2,3,4);\n\n $actual = $this->custom->compare($selected, $result);\n\n $this->assertTrue($actual);\n\t}",
"public function getCases(): array;",
"public function testGetSettingArray()\n {\n app('Settings')->add('testing', '123');\n app('Settings')->add('testing2', '1234');\n $getSetting = app('Settings')->get(['testing', 'testing2']);\n\n $getMultpleSetting = $getSetting->where('name', 'testing')->first();\n\n\t\t$showSetting = app('Settings')->show($getSetting, 'testing');\n\n $this->assertTrue($getMultpleSetting->value === '123');\n\t\t$this->assertTrue($showSetting === '123');\n }",
"public function testArrayAssertion(): void\n {\n $comparator = new ScalarComparator();\n\n Factory::getInstance()->register($comparator);\n\n $expected = ['thing' => 1];\n $actual = ['thing' => '1'];\n\n self::assertNotEquals($expected, $actual);\n\n Factory::getInstance()->unregister($comparator);\n\n self::assertEquals($expected, $actual);\n }",
"public function testGetValues(array $arrayToTest)\n {\n $arrayHelper = new Arr();\n\n $this->assertIsArray($arrayHelper->values($arrayToTest));\n $this->assertIsArray($arrayHelper->toNumIndexed($arrayToTest));\n }",
"public function suitsArray(array $data);",
"function switchTest($a) {\n // fallthrough logic is present when not using break\n switch ($a) {\n case 1:\n echo \"case 1\\n\";\n break;\n case 2:\n echo \"case 2 with fallthrough logic\\n\";\n case 3:\n echo \"case 3\\n\";\n break;\n default:\n echo \"default case\\n\";\n break;\n }\n\n return 1;\n}",
"public function testScenarioAnalysis()\n {\n }",
"public function testGetResults()\n {\n $is_array = is_array($this->calc->getResults());\n $this->assertTrue($is_array);\n }",
"public function testFetchArray()\n {\n $this->todo('stub');\n }",
"public function testArrayFilterWithMultipleValues() {\n $original = ['foo', 0, '', 'bar', FALSE, 'baz', [], 'zip'];\n $expected = ['foo', 'bar', 'baz', 'zip'];\n $this->assertArrayEquals($expected, $this->plugin->tamper($original));\n }",
"public function testGetFieldArray(): void\n {\n // setup\n $arr = [\n 'foo' => 'bar'\n ];\n\n // test body\n /** @var string $result */\n $result = Functional::getField($arr, 'foo');\n\n // assertions\n $this->assertEquals('bar', $result);\n }",
"private function getCasesForToInt(): array\n {\n return [\n 0 => ['expected' => 1, 'actual' => ['number' => 1, 'absolute' => false]],\n 1 => ['expected' => 1, 'actual' => ['number' => 1, 'absolute' => true]],\n 2 => ['expected' => -1, 'actual' => ['number' => -1, 'absolute' => false]],\n 3 => ['expected' => 1, 'actual' => ['number' => -1, 'absolute' => true]],\n 4 => ['expected' => 1, 'actual' => ['number' => 0.9999, 'absolute' => false]],\n 5 => ['expected' => 1, 'actual' => ['number' => 1.1111, 'absolute' => false]],\n 6 => ['expected' => -1, 'actual' => ['number' => -0.9999, 'absolute' => false]],\n 7 => ['expected' => -1, 'actual' => ['number' => -1.1111, 'absolute' => false]],\n 8 => ['expected' => 1, 'actual' => ['number' => -0.9999, 'absolute' => true]],\n 9 => ['expected' => 1, 'actual' => ['number' => -1.1111, 'absolute' => true]],\n ];\n }",
"public function testToArray()\n {\n $this->todo('stub');\n }",
"public function testGetField2Array(): void\n {\n // setup\n $arr = [\n 'foo' => 'bar',\n 'foo2' => 'bar2'\n ];\n\n // test body\n /** @var string $result */\n $result = Functional::getField($arr, 'foo2');\n\n // assertions\n $this->assertEquals('bar2', $result);\n }"
] | [
"0.60778403",
"0.5911346",
"0.57841736",
"0.5776461",
"0.5759339",
"0.56259596",
"0.5437342",
"0.5427095",
"0.5424507",
"0.53964424",
"0.53805035",
"0.5345558",
"0.5329665",
"0.53110695",
"0.53070784",
"0.52510643",
"0.52002203",
"0.51617587",
"0.51264703",
"0.5122778",
"0.51059175",
"0.50903153",
"0.5060737",
"0.50523484",
"0.5045308",
"0.5019006",
"0.49985376",
"0.4995038",
"0.49904418",
"0.49826652"
] | 0.60138667 | 1 |
end testUseGroup() Test arrow function as array value. | public function testArrowFunctionArrayValue()
{
$start = $this->getTargetToken('/* testArrowFunctionArrayValue */', T_FN);
$found = self::$phpcsFile->findEndOfStatement($start);
$this->assertSame(($start + 9), $found);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testArrowFunctionWithArrayAsArgument()\n {\n $start = $this->getTargetToken('/* testArrowFunctionWithArrayAsArgument */', T_FN);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 17), $found);\n\n }",
"public function testArrayValue()\n {\n $token = $this->getTargetToken('/* testArrayValue */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 4, 9, 'comma');\n\n }",
"public function testGetFieldArray(): void\n {\n // setup\n $arr = [\n 'foo' => 'bar'\n ];\n\n // test body\n /** @var string $result */\n $result = Functional::getField($arr, 'foo');\n\n // assertions\n $this->assertEquals('bar', $result);\n }",
"public function dataNotAnArrowFunction()\n {\n return [\n ['/* testFunctionName */'],\n [\n '/* testConstantDeclaration */',\n 'FN',\n ],\n [\n '/* testConstantDeclarationLower */',\n 'fn',\n ],\n ['/* testStaticMethodName */'],\n ['/* testPropertyAssignment */'],\n [\n '/* testAnonClassMethodName */',\n 'fN',\n ],\n ['/* testNonArrowStaticMethodCall */'],\n [\n '/* testNonArrowConstantAccess */',\n 'FN',\n ],\n [\n '/* testNonArrowConstantAccessMixed */',\n 'Fn',\n ],\n ['/* testNonArrowObjectMethodCall */'],\n [\n '/* testNonArrowObjectMethodCallUpper */',\n 'FN',\n ],\n [\n '/* testNonArrowNamespacedFunctionCall */',\n 'Fn',\n ],\n ['/* testNonArrowNamespaceOperatorFunctionCall */'],\n ['/* testNonArrowFunctionNameWithUnionTypes */'],\n ['/* testLiveCoding */'],\n ];\n\n }",
"public function test_creating_with_callback() {\n\n\t\t$callback = 'some_callback_here';\n\n\t\t$args = [ 'some', 'args', 'here' ];\n\n\t\t$methods = 'some, methods, here';\n\n\t\t$key = 'some value here';\n\n\t\t$testee = Testee::with_callback(\n\t\t\t$callback,\n\t\t\t$args,\n\t\t\t$methods,\n\t\t\t[ 'key' => $key ]\n\t\t);\n\n\t\t$expected = [\n\t\t\tcompact( 'methods', 'callback', 'args', 'key' ),\n\t\t];\n\n\t\t$this->assertEquals( $expected, $testee->to_array() );\n\t}",
"public function testGetField2Array(): void\n {\n // setup\n $arr = [\n 'foo' => 'bar',\n 'foo2' => 'bar2'\n ];\n\n // test body\n /** @var string $result */\n $result = Functional::getField($arr, 'foo2');\n\n // assertions\n $this->assertEquals('bar2', $result);\n }",
"public function testToArray()\n {\n $this->todo('stub');\n }",
"public function test_creating_with_callback_only() {\n\n\t\t$callback = 'some_callback_here';\n\n\t\t$testee = Testee::with_callback( $callback );\n\n\t\t$expected = [\n\t\t\t[\n\t\t\t\t'methods' => Testee::DEFAULT_METHODS,\n\t\t\t\t'callback' => $callback,\n\t\t\t\t'args' => [],\n\t\t\t],\n\t\t];\n\n\t\t$this->assertEquals( $expected, $testee->to_array() );\n\t}",
"public function filter(callable $test): array;",
"public function getExpectedResult(): array;",
"public function testExample()\n {\n \n \n\n }",
"public function testExecute()\n {\n }",
"public function providerTestCallback() {\n return [\n 'Procedural function pre render' => [\n ['#pre_render' => ['\\Drupal\\Tests\\Core\\Render\\callback'], '#type' => 'container'],\n 'Render #pre_render callbacks must be methods of a class that implements \\Drupal\\Core\\Security\\TrustedCallbackInterface or be an anonymous function. The callback was \\Drupal\\Tests\\Core\\Render\\callback. Support for this callback implementation is deprecated in 8.8.0 and will be removed in Drupal 9.0.0. See https://www.drupal.org/node/2966725',\n ],\n 'Static object method post render' => [\n ['#post_render' => ['\\Drupal\\Tests\\Core\\Render\\RendererCallbackTest::renderCallback'], '#type' => 'container'],\n 'Render #post_render callbacks must be methods of a class that implements \\Drupal\\Core\\Security\\TrustedCallbackInterface or be an anonymous function. The callback was \\Drupal\\Tests\\Core\\Render\\RendererCallbackTest::renderCallback. Support for this callback implementation is deprecated in 8.8.0 and will be removed in Drupal 9.0.0. See https://www.drupal.org/node/2966725',\n ],\n 'Object method access callback' => [\n ['#access_callback' => [$this, 'renderCallback'], '#type' => 'container'],\n 'Render #access_callback callbacks must be methods of a class that implements \\Drupal\\Core\\Security\\TrustedCallbackInterface or be an anonymous function. The callback was Drupal\\Tests\\Core\\Render\\RendererCallbackTest::renderCallback. Support for this callback implementation is deprecated in 8.8.0 and will be removed in Drupal 9.0.0. See https://www.drupal.org/node/2966725',\n ],\n 'Procedural function lazy builder' => [\n ['#lazy_builder' => ['\\Drupal\\Tests\\Core\\Render\\callback', []]],\n 'Render #lazy_builder callbacks must be methods of a class that implements \\Drupal\\Core\\Security\\TrustedCallbackInterface or be an anonymous function. The callback was \\Drupal\\Tests\\Core\\Render\\callback. Support for this callback implementation is deprecated in 8.8.0 and will be removed in Drupal 9.0.0. See https://www.drupal.org/node/2966725',\n ],\n 'Invokable object access callback' => [\n ['#access_callback' => $this, '#type' => 'container'],\n 'Render #access_callback callbacks must be methods of a class that implements \\Drupal\\Core\\Security\\TrustedCallbackInterface or be an anonymous function. The callback was Drupal\\Tests\\Core\\Render\\RendererCallbackTest. Support for this callback implementation is deprecated in 8.8.0 and will be removed in Drupal 9.0.0. See https://www.drupal.org/node/2966725',\n ],\n ];\n }",
"public function vectorConvertionTestsDataProvider() : array\n {\n\n return [\n [ 1, 'A' ],\n [ 15, 'O' ],\n [ 26, 'Z' ],\n [ 27, 'AA' ],\n [ 52, 'AZ' ],\n [ 53, 'BA' ],\n [ 78, 'BZ' ],\n [ 79, 'CA' ],\n [ 700, 'ZX' ],\n [ 702, 'ZZ' ],\n ];\n }",
"public function provideTestAwake()\n {\n return [\n [null, []],\n [0, []],\n [1, []],\n [1.1, []],\n ['a', []],\n ['1.2', []],\n [[], []],\n [[1, 2], ['1', '2']],\n [['a' => 1, 'b' => 2], ['a' => '1', 'b' => '2']],\n [[1, null, 2], ['1', null, '2']],\n ];\n }",
"public function __construct()\n {\n $this->number = 2;\n $this->name = 'Function array';\n\n $this->exerciseTests = [\n 'appendMePls' => function () {\n $result = $this->appendMePls();\n $test1 = array(4,1,2,3);\n $copyTest1 = array(4,1,2,3);\n $result($test1, 5);\n if ($test1 != array(4,1,2,3,5)) {\n throw new \\Exception('$returnFunction harusnya menghasilkan (4,1,2,3,5). Hasil kamu adalah: ' . json_encode($result($copyTest1, 5)));\n }\n $test2 = array(1,2,1);\n $copyTest2 = array(1,2,1);\n $result($test2, 9);\n if ($test2 != array(1,2,1,9)) {\n throw new \\Exception('$returnFunction harusnya menghasilkan (1,2,1,9). Hasil kamu adalah: ' . json_encode($result($copyTest2, 9)));\n }\n },\n 'getMyLast' => function () {\n $result = $this->getMyLast();\n $test1 = array(4,1,2,3);\n $copyTest1 = array(4,1,2,3);\n ;\n if ($result($test1) != 3) {\n throw new \\Exception('$returnFunction harusnya menghasilkan 3 saat mengambil nilai terakhir (4,1,2,3). Hasil kamu adalah: ' . json_encode($result($copyTest1)));\n }\n $testr2 = array(1,2,1);\n $copyTest2 = array(1,2,1);\n ;\n if ($result($test2) != 1) {\n throw new \\Exception('$returnFunction harusnya menghasilkan 1 saat mengambil nilai terakhir (1,2,1). Hasil kamu adalah: ' . json_encode($result($copyTest2)));\n }\n },\n 'prependMe' => function () {\n $result = $this->prependMe();\n $test1 = array(4,1,2,3);\n $copyTest1 = array(4,1,2,3);\n $result($test1, 5);\n if ($test1 != array(5,4,1,2,3)) {\n throw new \\Exception('$returnFunction harusnya menghasilkan (5,4,1,2,3). Hasil kamu adalah: ' . json_encode($result($copyTest1, 5)));\n }\n $test2 = array(1,2,1);\n $copyTest2 = array(1,2,1);\n $result($test2, 9);\n if ($test2 != array(9,1,2,1)) {\n throw new \\Exception('$returnFunction harusnya menghasilkan (9,1,2,1). Hasil kamu adalah: ' . json_encode($result($copyTest2, 9)));\n }\n },\n 'getMyFirst' => function () {\n $result = $this->getMyFirst();\n $test1 = array(4,1,2,3);\n $copyTest1 = array(4,1,2,3);\n ;\n if ($result($test1) != 4) {\n throw new \\Exception('$returnFunction harusnya menghasilkan 4 saat mengambil nilai pertama (4,1,2,3). Hasil kamu adalah: ' . json_encode($result($copyTest1)));\n }\n $testr2 = array(1,2,1);\n $copyTest2 = array(1,2,1);\n ;\n if ($result($test2) != 1) {\n throw new \\Exception('$returnFunction harusnya menghasilkan 1 saat mengambil nilai pertama (1,2,1). Hasil kamu adalah: ' . json_encode($result($copyTest2)));\n }\n },\n ];\n }",
"abstract function test();",
"public function testCanCallCallbackOnEachElement()\n {\n $raw = [1, 2, 3];\n $array = new EnumerableArray($raw);\n $sum = 0;\n\n $array->each(function($item) use (&$sum) {$sum += $item;});\n\n self::assertEquals(array_sum($raw), $sum);\n }",
"public function testGetFunctions0()\n{\n\n $actual = $this->expressionExtension->getFunctions();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}",
"#[@test]\n public function nextOnArray() {\n $this->assertEquals(\n 'v1',\n create(new HashmapIterator(array('k1' => 'v1')))->next()\n );\n }",
"public function test1() {\n\t}",
"abstract public function getFunctions(): array;",
"public function testTransform(): void\n {\n // setup\n $obj1 = new \\stdClass();\n $obj1->foo = 1;\n\n $obj2 = new \\stdClass();\n $obj2->foo = 2;\n\n $obj3 = new \\stdClass();\n $obj3->foo = 3;\n\n $data = [\n $obj1,\n $obj2,\n $obj3\n ];\n\n // test body\n Functional::transform(\n $data,\n /**\n * \n * @param object{foo: int} $object\n */\n function (object $object) {\n $object->foo *= 2;\n\n return $object;\n });\n\n // assertions\n /** @var list<object{foo: int}> $data */\n $this->assertEquals(2, $data[0]->foo);\n $this->assertEquals(4, $data[1]->foo);\n $this->assertEquals(6, $data[2]->foo);\n }",
"public function testArrowFunctionAsArgument()\n {\n $start = $this->getTargetToken('/* testArrowFunctionAsArgument */', T_FN);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 8), $found);\n\n }",
"abstract protected function test();",
"public function testMe()\n\t{\n\t}",
"public function cellConvertionTestsDataProvider() : array\n {\n\n return [\n [ 1, 8, 'A8' ],\n [ 15, 21, 'O21' ],\n [ 26, 88, 'Z88' ],\n [ 27, 199, 'AA199' ],\n [ 700, 22, 'ZX22' ],\n ];\n }",
"public function test($obj) : array\n\t{\n\t\treturn ['TEST'];\n\t}",
"public function testArrayIndex()\n {\n $token = $this->getTargetToken('/* testArrayIndex */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 8, 17, 'comma');\n\n }",
"function test(array $arr)# Type Hinting\n{\n\tforeach($arr as $index=>$value)\n\t{\n\t\techo \"index={$index} and value ={$value}</br>\";\n\t}\n}"
] | [
"0.65018266",
"0.6019037",
"0.5879786",
"0.58671325",
"0.5840399",
"0.5836481",
"0.57651615",
"0.57228345",
"0.5718584",
"0.57054603",
"0.5666131",
"0.5641668",
"0.563667",
"0.56223893",
"0.5612838",
"0.5584381",
"0.5578329",
"0.5574009",
"0.5564419",
"0.5551088",
"0.5546564",
"0.55348366",
"0.5502448",
"0.55012023",
"0.54936135",
"0.54839396",
"0.5466659",
"0.5443932",
"0.54352325",
"0.54328066"
] | 0.6455084 | 1 |
end testStaticArrowFunction() Test arrow function with return value. | public function testArrowFunctionReturnValue()
{
$start = $this->getTargetToken('/* testArrowFunctionReturnValue */', T_FN);
$found = self::$phpcsFile->findEndOfStatement($start);
$this->assertSame(($start + 18), $found);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testStaticArrowFunction()\n {\n $static = $this->getTargetToken('/* testStaticArrowFunction */', T_STATIC);\n $fn = $this->getTargetToken('/* testStaticArrowFunction */', T_FN);\n\n $endOfStatementStatic = self::$phpcsFile->findEndOfStatement($static);\n $endOfStatementFn = self::$phpcsFile->findEndOfStatement($fn);\n\n $this->assertSame($endOfStatementFn, $endOfStatementStatic);\n\n }",
"public function testArrowFunctionAsArgument()\n {\n $start = $this->getTargetToken('/* testArrowFunctionAsArgument */', T_FN);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 8), $found);\n\n }",
"public function testArrowFunctionArrayValue()\n {\n $start = $this->getTargetToken('/* testArrowFunctionArrayValue */', T_FN);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 9), $found);\n\n }",
"public function testArrowFunctionWithArrayAsArgument()\n {\n $start = $this->getTargetToken('/* testArrowFunctionWithArrayAsArgument */', T_FN);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 17), $found);\n\n }",
"public function testHasReturnType1(): void;",
"public function testGetReturnType0()\n{\n\n $actual = $this->closure->getReturnType();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}",
"public function testHasReturnType2(\n ): void;",
"public function testGetFunctions0()\n{\n\n $actual = $this->expressionExtension->getFunctions();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}",
"public function dataNotAnArrowFunction()\n {\n return [\n ['/* testFunctionName */'],\n [\n '/* testConstantDeclaration */',\n 'FN',\n ],\n [\n '/* testConstantDeclarationLower */',\n 'fn',\n ],\n ['/* testStaticMethodName */'],\n ['/* testPropertyAssignment */'],\n [\n '/* testAnonClassMethodName */',\n 'fN',\n ],\n ['/* testNonArrowStaticMethodCall */'],\n [\n '/* testNonArrowConstantAccess */',\n 'FN',\n ],\n [\n '/* testNonArrowConstantAccessMixed */',\n 'Fn',\n ],\n ['/* testNonArrowObjectMethodCall */'],\n [\n '/* testNonArrowObjectMethodCallUpper */',\n 'FN',\n ],\n [\n '/* testNonArrowNamespacedFunctionCall */',\n 'Fn',\n ],\n ['/* testNonArrowNamespaceOperatorFunctionCall */'],\n ['/* testNonArrowFunctionNameWithUnionTypes */'],\n ['/* testLiveCoding */'],\n ];\n\n }",
"public function testReturnsByRef0()\n{\n\n $actual = $this->closure->returnsByRef();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}",
"public function testNoReturnType2(\n);",
"public function testReturnType()\n {\n $token = $this->getTargetToken('/* testReturnType */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 11, 18, 'comma');\n\n }",
"public function testGetFunctions0()\n{\n\n $actual = $this->routingExtension->getFunctions();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}",
"public function testFunctionCall()\n {\n $token = $this->getTargetToken('/* testFunctionCall */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 5, 17);\n\n }",
"public function testfunction()\n\t{\n\t\treturn 'Hello world!';\n\t}",
"public function testSingleArgPap() {\n\t\t$papplied = pap(function($a){ return $a + 1; }, 1);\n\t\t$this->assertEquals(2,$papplied());\n\t}",
"public function testGetSubNodeNames0()\n{\n\n $actual = $this->closure->getSubNodeNames();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}",
"public function testFunc(){\n\tOverride::func('mail', function($a, $b) {\n return $a + $b;\n });\n\n $val = mail(2, 2);\n \n $this->assertEquals($val, 4);\n }",
"public function testGetType0()\n{\n\n $actual = $this->closure->getType();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}",
"abstract protected function getCallbackCase(): callable;",
"public function testActive_callback0()\n{\n\n $actual = $this->wP_Customize_Control->active_callback();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}",
"public function testReturnType()\n {\n $iterable = iterable([1, 2, 3]);\n $this->assertInstanceOf('Zicht\\Itertools\\lib\\DifferenceIterator', $iterable->difference([3, 4, 5]));\n }",
"public function testDynamoCanTakeClosures(){\n $this->dynamo->z = 2;\n $test = $this;\n $this->dynamo->add = function() use (&$test) {\n $test->assertInstanceOf(\"EmitterDatabaseHandler\\Utils\\dynamo\", $this);\n $sum = $this->x + $this->z;\n return $sum;\n };\n\n $sum = $this->dynamo->add();\n $this->assertThat($sum, $this->identicalTo(3));\n }",
"public function testReturnWithAssign()\n {\n return $test = 'fez';\n }",
"public function testHasReturnType3($param1, int $param2): void;",
"abstract function test();",
"public function testVoidFunctions()\n {\n $dataSource = 'void_functions.php';\n $metrics = $this->executeAnalysis($dataSource);\n $functions = $metrics[self::$analyserId]['functions'];\n\n $this->assertEquals(\n '4.0.0',\n $functions['noReturnType']['php.min']\n );\n\n $this->assertEquals(\n '',\n $functions['noReturnType']['php.max']\n );\n\n $this->assertEquals(\n '7.1.0',\n $functions['voidReturnType']['php.min']\n );\n\n $this->assertEquals(\n '',\n $functions['voidReturnType']['php.max']\n );\n }",
"public function testNoReturnType4(\n $param1,\n $param2\n);",
"public function testNonCallableFunction()\n {\n $this->assertEquals(null, $this->xPlugin->getCallable('my_second_function'));\n }",
"public function testChainedFunctionCall()\n {\n $token = $this->getTargetToken('/* testChainedFunctionCall */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 5, 12, 'bracket');\n\n }"
] | [
"0.6998158",
"0.6396336",
"0.62412304",
"0.60067487",
"0.588422",
"0.58752054",
"0.5873791",
"0.56546897",
"0.5579493",
"0.54033774",
"0.53756446",
"0.53419095",
"0.52427787",
"0.52408755",
"0.5183728",
"0.5177988",
"0.5166194",
"0.51328",
"0.51120603",
"0.51079524",
"0.50824165",
"0.5047076",
"0.5039765",
"0.5036979",
"0.5032205",
"0.5022415",
"0.5012744",
"0.501077",
"0.50039434",
"0.5001415"
] | 0.7192683 | 0 |
end testArrowFunctionReturnValue() Test arrow function used as a function argument. | public function testArrowFunctionAsArgument()
{
$start = $this->getTargetToken('/* testArrowFunctionAsArgument */', T_FN);
$found = self::$phpcsFile->findEndOfStatement($start);
$this->assertSame(($start + 8), $found);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testArrowFunctionReturnValue()\n {\n $start = $this->getTargetToken('/* testArrowFunctionReturnValue */', T_FN);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 18), $found);\n\n }",
"public function testArrowFunctionWithArrayAsArgument()\n {\n $start = $this->getTargetToken('/* testArrowFunctionWithArrayAsArgument */', T_FN);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 17), $found);\n\n }",
"public function testGetReturnType0()\n{\n\n $actual = $this->closure->getReturnType();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}",
"public function testArrowFunctionArrayValue()\n {\n $start = $this->getTargetToken('/* testArrowFunctionArrayValue */', T_FN);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 9), $found);\n\n }",
"public function testReturnsByRef0()\n{\n\n $actual = $this->closure->returnsByRef();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}",
"public function testFunctionCall()\n {\n $token = $this->getTargetToken('/* testFunctionCall */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 5, 17);\n\n }",
"public function testGetFunctions0()\n{\n\n $actual = $this->expressionExtension->getFunctions();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}",
"public function testHasReturnType2(\n ): void;",
"public function testSingleArgPap() {\n\t\t$papplied = pap(function($a){ return $a + 1; }, 1);\n\t\t$this->assertEquals(2,$papplied());\n\t}",
"public function testStaticArrowFunction()\n {\n $static = $this->getTargetToken('/* testStaticArrowFunction */', T_STATIC);\n $fn = $this->getTargetToken('/* testStaticArrowFunction */', T_FN);\n\n $endOfStatementStatic = self::$phpcsFile->findEndOfStatement($static);\n $endOfStatementFn = self::$phpcsFile->findEndOfStatement($fn);\n\n $this->assertSame($endOfStatementFn, $endOfStatementStatic);\n\n }",
"public function testHasReturnType1(): void;",
"public function testGetParams0()\n{\n\n $actual = $this->closure->getParams();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}",
"public function testChainedFunctionCall()\n {\n $token = $this->getTargetToken('/* testChainedFunctionCall */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 5, 12, 'bracket');\n\n }",
"public function dataNotAnArrowFunction()\n {\n return [\n ['/* testFunctionName */'],\n [\n '/* testConstantDeclaration */',\n 'FN',\n ],\n [\n '/* testConstantDeclarationLower */',\n 'fn',\n ],\n ['/* testStaticMethodName */'],\n ['/* testPropertyAssignment */'],\n [\n '/* testAnonClassMethodName */',\n 'fN',\n ],\n ['/* testNonArrowStaticMethodCall */'],\n [\n '/* testNonArrowConstantAccess */',\n 'FN',\n ],\n [\n '/* testNonArrowConstantAccessMixed */',\n 'Fn',\n ],\n ['/* testNonArrowObjectMethodCall */'],\n [\n '/* testNonArrowObjectMethodCallUpper */',\n 'FN',\n ],\n [\n '/* testNonArrowNamespacedFunctionCall */',\n 'Fn',\n ],\n ['/* testNonArrowNamespaceOperatorFunctionCall */'],\n ['/* testNonArrowFunctionNameWithUnionTypes */'],\n ['/* testLiveCoding */'],\n ];\n\n }",
"public function testUnchangedValue($function)\n {\n $enumerable = $this->newInstance(array(1, 2, 3));\n\n $result = call_user_func_array(array($enumerable, $function), array_slice(func_get_args(), 1));\n\n $this->assertEquals(array(1, 2, 3), $enumerable);\n $this->assertNotSame($enumerable, $result);\n }",
"public function testFunctionArgument()\n {\n $token = $this->getTargetToken('/* testFunctionArgument */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 8, 15, 'comma');\n\n }",
"public function testGetSubNodeNames0()\n{\n\n $actual = $this->closure->getSubNodeNames();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}",
"public function testGetType0()\n{\n\n $actual = $this->closure->getType();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}",
"public function testActive_callback0()\n{\n\n $actual = $this->wP_Customize_Control->active_callback();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}",
"public function testReturnType()\n {\n $token = $this->getTargetToken('/* testReturnType */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 11, 18, 'comma');\n\n }",
"abstract protected function getCallbackCase(): callable;",
"function go(callable $func, ...$params): int|false\n{\n}",
"public function testNoReturnType2(\n);",
"public function testGetFunctions0()\n{\n\n $actual = $this->routingExtension->getFunctions();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}",
"public function testGetReturnValue0()\n{\n\n $actual = $this->context->getReturnValue();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}",
"function test_fsmErrorCallback($symbol, $payload) {\n echo \"This symbol does not compute: $symbol $payload->x $payload->y $payload->z\\n \";\n}",
"public function testNoReturnType4(\n $param1,\n $param2\n);",
"public function testNoReturnType3($param1, &$param2);",
"public function testNonCallableFunction()\n {\n $this->assertEquals(null, $this->xPlugin->getCallable('my_second_function'));\n }",
"public function testFunc(){\n\tOverride::func('mail', function($a, $b) {\n return $a + $b;\n });\n\n $val = mail(2, 2);\n \n $this->assertEquals($val, 4);\n }"
] | [
"0.7181491",
"0.63353586",
"0.6215851",
"0.6152486",
"0.59246045",
"0.5678653",
"0.56513876",
"0.55987436",
"0.55293286",
"0.55165637",
"0.54878974",
"0.54839015",
"0.54677516",
"0.54579306",
"0.5440566",
"0.5358479",
"0.5349816",
"0.5278097",
"0.5277916",
"0.5238262",
"0.52340454",
"0.5210081",
"0.51884943",
"0.51795185",
"0.5170058",
"0.5164001",
"0.51501274",
"0.51375544",
"0.5134114",
"0.5126335"
] | 0.70274824 | 1 |
end testArrowFunctionAsArgument() Test arrow function with arrays used as a function argument. | public function testArrowFunctionWithArrayAsArgument()
{
$start = $this->getTargetToken('/* testArrowFunctionWithArrayAsArgument */', T_FN);
$found = self::$phpcsFile->findEndOfStatement($start);
$this->assertSame(($start + 17), $found);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testArrowFunctionAsArgument()\n {\n $start = $this->getTargetToken('/* testArrowFunctionAsArgument */', T_FN);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 8), $found);\n\n }",
"public function testArrowFunctionArrayValue()\n {\n $start = $this->getTargetToken('/* testArrowFunctionArrayValue */', T_FN);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 9), $found);\n\n }",
"public function testAloneScalarVariadicParameterAndNamedArrayArgument(): void\n {\n $result = $this->resolveClosure(\n fn(int ...$var) => $var,\n ['var' => [1, 2, 3]],\n );\n\n $this->assertSame([1, 2, 3], $result);\n }",
"public function testGetField2Array(): void\n {\n // setup\n $arr = [\n 'foo' => 'bar',\n 'foo2' => 'bar2'\n ];\n\n // test body\n /** @var string $result */\n $result = Functional::getField($arr, 'foo2');\n\n // assertions\n $this->assertEquals('bar2', $result);\n }",
"public function testGetArgumentsReturnsArray()\n {\n $arguments = $this->joinPoint->getArguments();\n $this->assertInternalType('array', $arguments);\n }",
"public function testToArrayOperation()\n {\n $input = [1, 2, 3];\n $expected = [2, 4, 6];\n\n $result = Psi::it($input)->map(function ($i) { return $i * 2; })->toArray();\n\n $this->assertTrue(\\is_array($result));\n $this->assertEquals($expected, $result);\n }",
"function call_user_func_array (callable $callback, array $param_arr) {}",
"public function testFunctionArgument()\n {\n $token = $this->getTargetToken('/* testFunctionArgument */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 8, 15, 'comma');\n\n }",
"public function testGetFieldArray(): void\n {\n // setup\n $arr = [\n 'foo' => 'bar'\n ];\n\n // test body\n /** @var string $result */\n $result = Functional::getField($arr, 'foo');\n\n // assertions\n $this->assertEquals('bar', $result);\n }",
"function forward_static_call_array (callable $function, array $parameters) {}",
"abstract public function getDriverArgumentsArray();",
"function call_user_func_array($callback, $param_arr)\n{\n}",
"public function testUnchangedValue($function)\n {\n $enumerable = $this->newInstance(array(1, 2, 3));\n\n $result = call_user_func_array(array($enumerable, $function), array_slice(func_get_args(), 1));\n\n $this->assertEquals(array(1, 2, 3), $enumerable);\n $this->assertNotSame($enumerable, $result);\n }",
"public function testSecondArgumentNonArray()\n {\n $this->expectException(\\InvalidArgumentException::class);\n\n np::dot([1], 'Hello');\n }",
"public function testSecondArgumentNonArray()\n {\n $this->expectException(\\InvalidArgumentException::class);\n\n np::multiply([55], 'hello');\n }",
"public function testFirstArgumentNonArray()\n {\n $this->expectException(\\InvalidArgumentException::class);\n\n np::multiply('hello', [55]);\n }",
"public function testFirstArgumentNonArray()\n {\n $this->expectException(\\InvalidArgumentException::class);\n\n np::dot('hello', [55]);\n }",
"public function getArguments(): array;",
"public function testCheckingIsArray()\n {\n $requiredArgument = new Argument('foo', ArgumentTypes::REQUIRED, 'Foo argument', 'bar');\n $optionalArgument = new Argument('foo', ArgumentTypes::OPTIONAL, 'Foo argument', 'bar');\n $arrayArgument = new Argument('foo', ArgumentTypes::IS_ARRAY, 'Foo argument');\n $this->assertTrue($arrayArgument->isArray());\n $this->assertFalse($requiredArgument->isArray());\n $this->assertFalse($optionalArgument->isArray());\n $arrayArgument = new Argument('foo', ArgumentTypes::IS_ARRAY | ArgumentTypes::OPTIONAL, 'Foo argument');\n $this->assertTrue($arrayArgument->isArray());\n $arrayArgument = new Argument('foo', ArgumentTypes::IS_ARRAY | ArgumentTypes::REQUIRED, 'Foo argument');\n $this->assertTrue($arrayArgument->isArray());\n }",
"public function testToArray()\n {\n $this->todo('stub');\n }",
"abstract public static function assertIsArray($actual, string $message = '');",
"public function testGetArguments()\n\t{\n\t\t$actual = $this->object->getArguments();\n\t\t$this->assertSame(array(), $actual);\n\t}",
"public function testArrayValue()\n {\n $token = $this->getTargetToken('/* testArrayValue */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 4, 9, 'comma');\n\n }",
"function passed_value_is_array(...$arr): bool {\n foreach($arr as $val){\n if(is_array($val)){\n return true;\n }\n }\n return false;\n}",
"function array2args($farray) {\n return array2filters($farray, ' ', '=', true);\n}",
"public function getArgs(): array;",
"function test(array $arr)# Type Hinting\n{\n\tforeach($arr as $index=>$value)\n\t{\n\t\techo \"index={$index} and value ={$value}</br>\";\n\t}\n}",
"public function testAssertIsArray() {\n\t\t$this->assertIsArray( [ 1, 2, 3 ] );\n\t}",
"public function getArguments() : array;",
"function takes_array($input)\n{\n echo \"$input[0] + $input[1] = \", $input[0]+$input[1];\n}"
] | [
"0.62918365",
"0.60419136",
"0.60024196",
"0.5942795",
"0.59401345",
"0.5874579",
"0.5849401",
"0.58328134",
"0.57883334",
"0.5759128",
"0.57222396",
"0.56967187",
"0.56655943",
"0.5665081",
"0.5647966",
"0.56227994",
"0.5609313",
"0.55567443",
"0.5553556",
"0.55210745",
"0.5494605",
"0.54474527",
"0.5421138",
"0.5415147",
"0.5403088",
"0.5387036",
"0.536905",
"0.5365206",
"0.5340619",
"0.5322135"
] | 0.7539243 | 0 |
end testMatchCase() Test simple match expression default case. | public function testMatchDefault()
{
$start = $this->getTargetToken('/* testMatchDefault */', T_MATCH_DEFAULT);
$found = self::$phpcsFile->findEndOfStatement($start);
$this->assertSame(($start + 4), $found);
$start = $this->getTargetToken('/* testMatchDefault */', T_CONSTANT_ENCAPSED_STRING);
$found = self::$phpcsFile->findEndOfStatement($start);
$this->assertSame($start, $found);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testGetRegexDefault(): void\n {\n self::assertNull($this->getRoute()->getRegex());\n }",
"function testGetFirstMatch()\n {\n $expected = array('ta4t','a','4');\n // no matches\n $this->assertFalse( $this->regex->getFirstMatch('t3t tA2t t2at tig') );\n // single match\n $this->assertSame($expected,\n $this->regex->getFirstMatch('t3t ta4t t2at tig') );\n // double match\n $this->assertSame($expected,\n $this->regex->getFirstMatch('t3t ta4t t2at te5t') );\n }",
"public function testMatchRegexRule()\n\t{\n\t\t$this->assertThat(\n\t\t\tTestHelper::invoke($this->StringInflector, 'matchRegexRule', 'xyz', 'plural'),\n\t\t\t$this->equalTo('xyzs'),\n\t\t\t'Checks pluralising against the basic regex.'\n\t\t);\n\n\t\t$this->assertThat(\n\t\t\tTestHelper::invoke($this->StringInflector, 'matchRegexRule', 'xyzs', 'singular'),\n\t\t\t$this->equalTo('xyz'),\n\t\t\t'Checks singularising against the basic regex.'\n\t\t);\n\n\t\t$this->assertFalse(\n\t\t\tTestHelper::invoke($this->StringInflector, 'matchRegexRule', 'xyz', 'singular'),\n\t\t\t'Checks singularising against an unmatched regex.'\n\t\t);\n\t}",
"public function testMatchCase()\n {\n $start = $this->getTargetToken('/* testMatchCase */', T_LNUMBER);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 5), $found);\n\n $start = $this->getTargetToken('/* testMatchCase */', T_CONSTANT_ENCAPSED_STRING);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 1), $found);\n\n }",
"function testIsMatch()\n {\n // no matches\n $this->assertFalse( $this->regex->isMatch('t3t tA5t t2at tig') );\n // single match\n $this->assertTrue( $this->regex->isMatch('t3t ta4t t2at tig') );\n // double match\n $this->assertTrue( $this->regex->isMatch('t3t ta4t t2at tig t6et') );\n }",
"public function testMatch()\n {\n $validator = new RegexValidator('/TEST/');\n $this->assertTrue($validator->isMatch(\"TEST.com\"));\n $this->assertFalse($validator->isMatch(\"xxx.com\"));\n }",
"public function testWithMatchValue()\n {\n $token = $this->getTargetToken('/* testWithMatchValue */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 5, 44);\n\n }",
"public function testPatternRecognition()\n {\n }",
"abstract public function match(&$actual);",
"public function testMatchWithNonRegex()\n {\n $this->router->map(\n 'GET',\n '/about-us',\n 'PagesController#about',\n 'about_us'\n );\n $this->assertEquals(\n array(\n 'target' => 'PagesController#about',\n 'params' => array(),\n 'name' => 'about_us'\n ),\n $this->router->match('/about-us', 'GET')\n );\n $this->assertFalse($this->router->match('/about-us', 'POST'));\n $this->assertFalse($this->router->match('/about', 'GET'));\n $this->assertFalse($this->router->match('/about-us-again', 'GET'));\n }",
"public function testMatch()\n {\n $this->router->map(\n 'GET',\n '/foo/[:controller]/[:action]',\n 'foo_action',\n 'foo_route'\n );\n $this->assertEquals(\n array(\n 'target' => 'foo_action',\n 'params' => array(\n 'controller' => 'test',\n 'action' => 'do',\n 'method' => 'GET'\n ),\n 'name' => 'foo_route'\n ),\n $this->router->match('/foo/test/do', 'GET')\n );\n $this->assertFalse($this->router->match('/foo/test/do', 'POST'));\n $this->assertEquals(\n array(\n 'target' => 'foo_action',\n 'params' => array(\n 'controller' => 'test',\n 'action' => 'do',\n 'method' => 'GET'\n ),\n 'name' => 'foo_route'\n ),\n $this->router->match('/foo/test/do?param=value', 'GET')\n );\n }",
"function _test_general_two_asserts() {\n $matcher = new dfa_preg_matcher('^a(?=b)(?=[xvbnm]*c)[xcvbnm]*$');//put regular expirience in constructor for building dfa.\n /* \n * call match method for matching string with regex, string is argument, regex was got in constructor,\n * results of matching get with method\n * 1)index - last_correct_character_index()\n * 2)full - is_matching_complete()\n * 3)next - next_char()\n */\n $matcher->match('avnm');\n $this->assertFalse($matcher->is_matching_complete());\n $this->assertTrue($matcher->last_correct_character_index() == 0 && $matcher->next_char() === 'b');\n $matcher->match('acnm');\n $this->assertFalse($matcher->is_matching_complete());\n $this->assertTrue($matcher->last_correct_character_index() == 0 && $matcher->next_char() === 'b');\n $matcher->match('abnm');\n $char = $matcher->next_char();\n $this->assertFalse($matcher->is_matching_complete());\n $this->assertTrue($matcher->last_correct_character_index() == 3 && strchr('xcvbnm', $char)!==false);\n $matcher->match('abnc');\n $this->assertTrue($matcher->is_matching_complete());\n $this->assertTrue($matcher->last_correct_character_index() == 3 && $matcher->next_char() === '');\n }",
"public function testGetMatchTypeValid()\n\t{\n\t\t$match = new Match\\TestMatch();\n\t\t$result = $this->enforcer->getMatchType($match);\n\n\t\t$this->assertEquals('testmatch', $result);\n\t}",
"public function testMatch()\n {\n $routes = new RouteCollection();\n $route = $routes->create('/foo/{bar}', 'action1');\n $matcher = new Matcher($routes);\n try {\n $matcher->match('/no-match');\n $this->fail();\n } catch (RouteNotFoundException $e) {\n }\n $this->assertTrue ($route === $matcher->match('/foo/baz'));\n $this->assertEquals(['bar' => 'baz'], $route->getComputedParameters());\n\n // test defaults\n $routes = new RouteCollection();\n $routes->create('/foo/{bar}', 'action1')\n ->setDefaults(['def' => 'test']);\n $matcher = new Matcher($routes);\n $route = $matcher->match('/foo/baz');\n $this->assertEquals(['bar' => 'baz', 'def' => 'test'], $route->getComputedParameters());\n\n // test that route \"method\" is ignored if match simple path\n $routes = new RouteCollection();\n $route = $routes->create('/foo', 'action1')->setMethods(['GET', 'HEAD']);\n $matcher = new Matcher($routes);\n $this->assertTrue ($route === $matcher->match('/foo'));\n\n //optional placeholder\n $routes = new RouteCollection();\n $route = $routes->create('/foo/{bar}', 'action1')\n ->setDefaults(['bar' => 'baz']);\n $matcher = new Matcher($routes);\n $this->assertTrue ($route === $matcher->match('/foo'));\n }",
"function test_wave_easy() {\n $matcher = new dfa_preg_matcher('abcd');\n $matcher->match('abce');\n $this->assertTrue($matcher->next_char() === 'd');\n }",
"function testGetAllMatch()\n {\n $expected_single = array( 0 => array('ta4t'),\n 1 => array('a'),\n 2 => array('4') );\n $expected_double = array( 0 => array('ta4t','te5t'),\n 1 => array('a','e'),\n 2 => array('4','5') );\n // no matches\n $this->assertFalse( $this->regex->getAllMatch('t3t tA2t t2at tig') );\n // single match\n $this->assertSame($expected_single,\n $this->regex->getAllMatch('t3t ta4t t2at tig') );\n // double match\n $this->assertSame($expected_double,\n $this->regex->getAllMatch('t3t ta4t t2at te5t') );\n }",
"abstract public function match($string);",
"function parseCaseNoBase( &$source, &$cases, &$default ) {\n $testRetType = lookupType('bool');\n\n // We don't know the return type yet, it will be defined by the cases.\n $retType = null;\n $retSource = null;\n\n // Generate a name for the return value of the case.\n $value_name = generate_name(\"case_value\");\n\n $prep = [];\n\n $info = new ExpressionInfo( $source, null, $value_name, true);\n\n grokit_logic_assert( count($cases) > 0,\n 'No cases found for case statement at ' . $source );\n\n // Handle cases\n foreach( $cases as $case ) {\n $test = parseExpression(ast_get($case, NodeKey::TEST));\n $expr = parseExpression(ast_get($case, NodeKey::EXPR));\n $first = false;\n\n // Test if the return type of the test is compatible with boolean\n if( canConvert( $test->type(), $testRetType ) ) {\n $test = convertExpression( $test, $testRetType, $retSource );\n }\n else {\n // Incompatible types\n grokit_error( 'Case test expression has return type ' . $test->type()\n . ' which is incompatible with boolean ' . $test->source() );\n }\n\n // If the return type is not set, set it and continue.\n // Otherwise, make sure the expression's return type is compatible with\n // the already set return type.\n if( $retType === null ) {\n $retType = $expr->type();\n $retSource = $expr->source();\n $first = true;\n $info->setType($retType);\n }\n else if( canConvert( $expr->type(), $retType ) ) {\n // The types are compatible or the same, so make them the same.\n $expr = convertExpression( $expr, $retType, $retSource );\n }\n else {\n // Incompatible types\n grokit_error( 'Case return type ' . $expr->type() . ' of expression at '\n . $expr->source() . ' incompatible with previous return type '\n . $retType . ' defined by expression at ' . $retSource );\n }\n\n // Absorb the metadata from the test and expression into our info\n $info->absorbMeta($test);\n $info->absorbMeta($expr);\n\n $myPrep = '';\n if( ! $first ) {\n $myPrep .= 'else ';\n }\n $myPrep .= \"if( {$test->value()} ) {$value_name} = {$expr->value()};\";\n\n $prep[] = $myPrep;\n }\n\n // Handle default\n if( $default !== null ) {\n if( canConvert( $default->type(), $retType ) ) {\n $default = convertExpression( $default, $retType, $retSource );\n }\n else {\n // Incompatible types.\n grokit_error( 'Case return type ' . $default->type() . ' of default at '\n . $default->source() . ' incompatible with previous return type '\n . $retType . ' defined by expression at ' . $retSource );\n }\n\n $info->absorbMeta($default);\n\n $prep[] = \"else $value_name = {$default->value()};\";\n }\n\n // Prepend the declaration of the return variable\n array_unshift( $prep, \"{$retType} {$value_name};\" );\n\n // Add all of our stuff as preprocesses\n $info->addPreprocesses($prep);\n\n if( $info->is_const() ) {\n $info->makeConstant();\n }\n\n return $info;\n}",
"public function matchString()\n {\n $pattern = \"(@[a-zA-Z]+\\s*.*)\";\n $result = Text::match('* @tag Some\\Valu(test=4)', $pattern);\n $this->assertTrue(is_array($result));\n $this->assertEquals('@tag Some\\Valu(test=4)', reset($result));\n $result1 = Text::match('You and me', \"You and me\");\n $this->assertEquals('You and me', reset($result1));\n $this->assertNull(Text::match('test', 'differen'));\n }",
"public function testSwitch()\n {\n // Find the end of the switch.\n $start = $this->getTargetToken('/* testSwitch */', T_SWITCH);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 28), $found);\n\n // Find the end of the case.\n $start += 9;\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 8), $found);\n\n // Find the end of default case.\n $start += 11;\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 6), $found);\n\n }",
"public function testMatchMultipleCase()\n {\n $start = $this->getTargetToken('/* testMatchMultipleCase */', T_LNUMBER);\n $found = self::$phpcsFile->findEndOfStatement($start);\n $this->assertSame(($start + 13), $found);\n\n $start += 6;\n $found = self::$phpcsFile->findEndOfStatement($start);\n $this->assertSame(($start + 7), $found);\n\n }",
"function ml_filter( $inValue, $inRegex, $inDefault = \"\" ) {\n \n $numMatches = preg_match( $inRegex,\n $inValue, $matches );\n\n if( $numMatches != 1 ) {\n return $inDefault;\n }\n \n return $matches[0];\n }",
"function testMatch()\n {\n $string = new JString(\"Hello\");\n $matches = $string->match('/ello/');\n self::assertTrue($matches->count() == 1);\n self::assertTrue($matches->first()->get() == \"ello\");\n }",
"public function testCatchPhraseVerb0()\n{\n\n $actual = $this->company->catchPhraseVerb();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}",
"public function testMatchWithPlainRoute()\n {\n $router = $this->getMockBuilder('\\AltoRouterDebug')\n ->setMethods(array('_compileRoute'))\n ->getMock();\n /**\n * This should prove that _compileRoute is not called when the route doesn't\n * have any params in it, but this doesn't work because _compileRoute\n * is private.\n */\n $router->expects($this->never())\n ->method('_compileRoute');\n\n $router->map('GET', '/contact', 'website#contact', 'contact');\n // exact match, so no regex compilation necessary\n $this->assertEquals(\n array(\n 'target' => 'website#contact',\n 'params' => array(\n ),\n 'name' => 'contact'\n ),\n $router->match('/contact', 'GET')\n );\n $router->map('GET', '/page/[:id]', 'pages#show', 'page');\n\n // no prefix match, so no regex compilation necessary\n $this->assertFalse($router->match('/page1', 'GET'));\n\n }",
"function v_custom_match($regexp, $var) {\n return preg_match($regexp, $var);\n}",
"public function testBasic()\n {\n $valuesExpected = array(\n 'The great escape of our hero from coding hades' =>\n 'The Great Escape of Our Hero from Coding Hades',\n \n 'I WANT THIS STRING TO BE IN TITLE CASE' => \n 'I Want This String to Be in Title Case',\n \n 'HOW ÄBÖUT INTERNATIONAL LETTERS' =>\n 'How ÄbÖut International Letters' // we'll leave this alone for now\n );\n\n foreach ($valuesExpected as $input => $output) {\n $this->assertEquals($output, $this->filter->filter($input));\n }\n }",
"public function testCaseInsensitive() {\n $content = 'That is a Test.';\n $content_after = $content;\n $links = array(array('url' => 'http://google.fr', 'string' => 'test', 'case_insensitive' => false));\n $content_test = wpuinternallinks_test_content_after($links, $content);\n $this->assertEquals($content_test, $content_after);\n }",
"public function testMatchWithCustomNamedRegex()\n {\n $this->router->addMatchTypes(\n array(\n 'cId' => '[a-zA-Z]{2}[0-9](?:_[0-9]++)?'\n )\n );\n $this->router->map(\n 'GET',\n '/bar/[cId:customId]',\n 'bar_action',\n 'bar_route'\n );\n $this->assertEquals(\n array(\n 'target' => 'bar_action',\n 'params' => array(\n 'customId' => 'AB1',\n 'method' => 'GET'\n ),\n 'name' => 'bar_route'\n ),\n $this->router->match('/bar/AB1', 'GET')\n );\n $this->assertEquals(\n array(\n 'target' => 'bar_action',\n 'params' => array(\n 'customId' => 'AB1_0123456789',\n 'method' => 'GET'\n ),\n 'name' => 'bar_route'\n ),\n $this->router->match('/bar/AB1_0123456789', 'GET')\n );\n $this->assertFalse($this->router->match('/some-other-thing', 'GET'));\n }",
"protected function regexTest()\n {\n $stringExamples = [\n 'images/kitten1-10x20.jpg',\n 'images/kitten1-_x20.jpg',\n 'images/kitten1-20x_.jpg',\n 'images/kitten1-10x20-resize.jpg',\n 'images/kitten1-10x20-[-0.55678x0.12345].jpg',\n ];\n\n foreach ($stringExamples as $value) {\n\n var_dump( $value );\n $this->getData( $value );\n }\n exit;\n }"
] | [
"0.6507724",
"0.62753147",
"0.6179773",
"0.60944057",
"0.6093876",
"0.60535574",
"0.5977713",
"0.58888435",
"0.58828413",
"0.5867711",
"0.5820126",
"0.5816988",
"0.5725218",
"0.5713348",
"0.5689804",
"0.56820303",
"0.563675",
"0.5619225",
"0.5521695",
"0.5479063",
"0.5421146",
"0.53753954",
"0.53716356",
"0.5366579",
"0.53502077",
"0.5328925",
"0.5313718",
"0.5289245",
"0.5283587",
"0.5281554"
] | 0.6673899 | 0 |
end testMatchMultipleCase() Test match expression default case with trailing comma. | public function testMatchDefaultComma()
{
$start = $this->getTargetToken('/* testMatchDefaultComma */', T_MATCH_DEFAULT);
$found = self::$phpcsFile->findEndOfStatement($start);
$this->assertSame(($start + 5), $found);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testMatchMultipleCase()\n {\n $start = $this->getTargetToken('/* testMatchMultipleCase */', T_LNUMBER);\n $found = self::$phpcsFile->findEndOfStatement($start);\n $this->assertSame(($start + 13), $found);\n\n $start += 6;\n $found = self::$phpcsFile->findEndOfStatement($start);\n $this->assertSame(($start + 7), $found);\n\n }",
"public function testMultipleTrailingValue() {\n $argv = explode(\" \", './test.php -v -h many trailing');\n\n $argFilter = new \\Clapp\\CommandArgumentFilter($this->defaultDefinition, $argv);\n\n $this->assertEquals($argFilter->getTrailingValues(), 'many trailing');\n\n }",
"function testGetAllMatch()\n {\n $expected_single = array( 0 => array('ta4t'),\n 1 => array('a'),\n 2 => array('4') );\n $expected_double = array( 0 => array('ta4t','te5t'),\n 1 => array('a','e'),\n 2 => array('4','5') );\n // no matches\n $this->assertFalse( $this->regex->getAllMatch('t3t tA2t t2at tig') );\n // single match\n $this->assertSame($expected_single,\n $this->regex->getAllMatch('t3t ta4t t2at tig') );\n // double match\n $this->assertSame($expected_double,\n $this->regex->getAllMatch('t3t ta4t t2at te5t') );\n }",
"public function testMatchDefault()\n {\n $start = $this->getTargetToken('/* testMatchDefault */', T_MATCH_DEFAULT);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 4), $found);\n\n $start = $this->getTargetToken('/* testMatchDefault */', T_CONSTANT_ENCAPSED_STRING);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame($start, $found);\n\n }",
"function mCOMMA(){\n try {\n $_type = GroupLexer::T_COMMA;\n $_channel = GroupLexer::DEFAULT_TOKEN_CHANNEL;\n // ./src/php/Antlr/StringTemplate/Language/Group.g\n // ./src/php/Antlr/StringTemplate/Language/Group.g\n {\n $this->matchChar(44); \n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }",
"public function testMultipleTrailingValueWithDoubleDash() {\n $argv = explode(\" \", './test.php -v -h -- many trailing');\n\n $argFilter = new \\Clapp\\CommandArgumentFilter($this->defaultDefinition, $argv);\n\n $this->assertEquals($argFilter->getTrailingValues(), 'many trailing');\n\n }",
"public function testMultiple(): void\n {\n $validator = new Validator();\n $this->assertProxyMethod(\n $validator,\n 'multipleOptions',\n ['min' => 1, 'caseInsensitive' => true],\n [['min' => 1], true],\n 'multiple'\n );\n\n $this->assertProxyMethod(\n $validator,\n 'multipleOptions',\n ['min' => 1, 'caseInsensitive' => false],\n [['min' => 1], false],\n 'multiple'\n );\n\n $this->assertNotEmpty($validator->validate(['username' => '']));\n\n $fieldName = 'field_name';\n $rule = 'multipleOptions';\n $expectedMessage = 'The provided value must be a set of multiple options';\n $options = ['min' => 1, 'caseInsensitive' => false];\n $this->assertValidationMessage($fieldName, $rule, $expectedMessage, $options);\n }",
"public function testArrayValueNoTrailingComma()\n {\n $token = $this->getTargetToken('/* testArrayValueNoTrailingComma */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 4, 8, 'closing parenthesis');\n\n }",
"public function dataInMatchValue()\n {\n return [\n 'not_last_value' => [\n '/* testInMatchNotLastValue */',\n 5,\n 11,\n 'T_COMMA',\n 'comma',\n ],\n 'last_value_with_trailing_comma' => [\n '/* testInMatchLastValueWithTrailingComma */',\n 5,\n 11,\n 'T_COMMA',\n 'comma',\n ],\n 'last_value_without_trailing_comma_1' => [\n '/* testInMatchLastValueNoTrailingComma1 */',\n 5,\n 10,\n 'T_CLOSE_PARENTHESIS',\n 'close parenthesis',\n ],\n 'last_value_without_trailing_comma_2' => [\n '/* testInMatchLastValueNoTrailingComma2 */',\n 5,\n 11,\n 'T_VARIABLE',\n '$y variable',\n ],\n ];\n\n }",
"private function parse_comma_list($results = '')\n {\n }",
"public function testWithMatchValueAndMore()\n {\n $token = $this->getTargetToken('/* testWithMatchValueAndMore */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 5, 48);\n\n }",
"public function testPriceComma() {\n $input = '1,23';\n $expected = array('1.23');\n $this->validator->validate($input);\n $this->assertEquals($this->validator->getTokens(), $expected);\n }",
"public function testTextDynamicStringCustomDelimeter()\n\t{\n\t\t$actual = PhTText::dynamic('(Hi|Hello), my name is a Bob!', '(', ')');\n\t\texpect($actual)->notContains('(');\n\t\texpect($actual)->notContains(')');\n\n\t\texpect(preg_match('/^(Hi|Hello), my name is a Bob!$/', $actual))->equals(1);\n\t}",
"public function testEmpty() {\n \n $listTotal = \"\";\n $listNew = \"\";\n $expectedResult = array(\"\");\n $validator = new PostalCodeRegexValidator($listTotal, $listNew);\n $this->assertEquals($expectedResult, $validator->checkExpressions());\n }",
"public function testFilterWithMultipleTokensResult(): void\n {\n $this->assertSame('III', $this->filter->filter(3));\n $this->assertSame('DLV', $this->filter->filter(555));\n }",
"public function testSingleTrailingValue() {\n $argv = explode(\" \", './test.php -v -h trailing');\n\n $argFilter = new \\Clapp\\CommandArgumentFilter($this->defaultDefinition, $argv);\n\n $this->assertEquals($argFilter->getTrailingValues(), 'trailing');\n\n }",
"public function testPromptedMixedInputWithComma()\n {\n $this->artisan(\"stringify\")\n ->expectsOutput(\"Welcome to the Stringify Console Command!\")\n ->expectsQuestion(\"Please Input a String\",\"Hello, World543%$#\")\n ->expectsOutput(\"Error: Input is not allowed to include the delimeter (,)\")\n ->expectsOutput(\"Stringify will exit now\")\n ->assertExitCode(0); \n }",
"public function testDifferentDelimiters()\n {\n $refMatcher = new Matcher(\"{%\", \"%}\", \":\");\n $inputArray = [\n \"test\" => \"{%foo:bar%}\",\n \"foo\" => [\n \"bar\" => \"result\"\n ]\n ];\n $expectedOutput = [\n \"test\" => \"result\",\n \"foo\" => [\n \"bar\" => \"result\"\n ]\n ];\n $matches = $refMatcher->buildSet($inputArray);\n\n $this->assertEquals(\n $expectedOutput,\n $matches\n );\n }",
"function testGetFirstMatch()\n {\n $expected = array('ta4t','a','4');\n // no matches\n $this->assertFalse( $this->regex->getFirstMatch('t3t tA2t t2at tig') );\n // single match\n $this->assertSame($expected,\n $this->regex->getFirstMatch('t3t ta4t t2at tig') );\n // double match\n $this->assertSame($expected,\n $this->regex->getFirstMatch('t3t ta4t t2at te5t') );\n }",
"public function testMatchCase()\n {\n $start = $this->getTargetToken('/* testMatchCase */', T_LNUMBER);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 5), $found);\n\n $start = $this->getTargetToken('/* testMatchCase */', T_CONSTANT_ENCAPSED_STRING);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 1), $found);\n\n }",
"public function testWithMatchValue()\n {\n $token = $this->getTargetToken('/* testWithMatchValue */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 5, 44);\n\n }",
"public function test_yourls_s_too_many() {\n // Expected number of arguments, + the domain\n $this->assertSame( 'Bonjour Ozh tu es nice (default)', yourls_s( 'Hello %s you are %s', 'Ozh', 'nice' ) );\n $this->assertSame( 'Bonjour Ozh tu es nice (test)', yourls_s( 'Hello %s you are %s', 'Ozh', 'nice', 'test' ) );\n\n // Extra arguments with the last one not being a valid domain: string should be translated\n $this->assertSame( 'Hello Ozh you are nice', yourls_s( 'Hello %s you are %s', 'Ozh', 'nice', 'omg' ) );\n\n // Extra arguments with the last one being a valid domain: string should be translated\n $this->assertSame( 'Bonjour Ozh tu es nice (test)', yourls_s( 'Hello %s you are %s', 'Ozh', 'nice', 'omg', 'test' ) );\n }",
"protected function isComma($text){\n return 1 === preg_match(self::REG_T_COMMA, $text);\n }",
"function _test_general_two_asserts() {\n $matcher = new dfa_preg_matcher('^a(?=b)(?=[xvbnm]*c)[xcvbnm]*$');//put regular expirience in constructor for building dfa.\n /* \n * call match method for matching string with regex, string is argument, regex was got in constructor,\n * results of matching get with method\n * 1)index - last_correct_character_index()\n * 2)full - is_matching_complete()\n * 3)next - next_char()\n */\n $matcher->match('avnm');\n $this->assertFalse($matcher->is_matching_complete());\n $this->assertTrue($matcher->last_correct_character_index() == 0 && $matcher->next_char() === 'b');\n $matcher->match('acnm');\n $this->assertFalse($matcher->is_matching_complete());\n $this->assertTrue($matcher->last_correct_character_index() == 0 && $matcher->next_char() === 'b');\n $matcher->match('abnm');\n $char = $matcher->next_char();\n $this->assertFalse($matcher->is_matching_complete());\n $this->assertTrue($matcher->last_correct_character_index() == 3 && strchr('xcvbnm', $char)!==false);\n $matcher->match('abnc');\n $this->assertTrue($matcher->is_matching_complete());\n $this->assertTrue($matcher->last_correct_character_index() == 3 && $matcher->next_char() === '');\n }",
"public function testArgumentMixedInputWithComma()\n {\n $this->artisan(\"stringify\", [\"inString\" => \"Hello, World543%$#\"])\n ->expectsOutput(\"Welcome to the Stringify Console Command!\")\n ->expectsOutput(\"Error: Input is not allowed to include the delimeter (,)\")\n ->expectsOutput(\"Stringify will exit now\")\n ->assertExitCode(0); \n }",
"public function getMultipleValueDelimiter();",
"public function testTrailingValueBetweenParametersIsNotAllowed() {\n $argv = explode(\" \", './test.php --verbose beforedoubledash --help');\n\n $argFilter = new TestCommandArgumentFilter($this->defaultDefinition, $argv);\n\n $argFilter->parseParams();\n\n }",
"public function valid_multiple_value($str) {\n $this->form_validation->set_message('valid_multiple_value','The %s field input not valid multiple value ex val1, val2, val3, more.');\n\n return (count(explode(',', $str)));\n }",
"function check_filter_multiple() {\n\tglobal $wpdb;\n\tforeach($this->table_config[\"filter_columns\"] as $col){\n\t\tif($col[\"filter_type\"]==\"multiple\"){\n\t\t\t$wpdb->query($wpdb->prepare(\"UPDATE `%s` SET `%s` = CASE WHEN SUBSTRING( `%s` , -1 ) != ';' THEN CONCAT( `%s` , ';' ) ELSE `%s` END\", $this->turl(), $col, $col, $col, $col));\n\t\t}\n\t}\n}",
"public function testSingleTrailingValueWithDoubleDash() {\n $argv = explode(\" \", './test.php -v -h -- trailing');\n\n $argFilter = new \\Clapp\\CommandArgumentFilter($this->defaultDefinition, $argv);\n\n $this->assertEquals($argFilter->getTrailingValues(), 'trailing');\n\n }"
] | [
"0.58566445",
"0.56342024",
"0.53884315",
"0.5366597",
"0.536635",
"0.523409",
"0.5221523",
"0.5220679",
"0.521985",
"0.51620656",
"0.51585627",
"0.5151498",
"0.51025605",
"0.49902645",
"0.49760866",
"0.49165773",
"0.48497",
"0.48367453",
"0.4813463",
"0.47514164",
"0.47104684",
"0.470306",
"0.46863097",
"0.46686587",
"0.464244",
"0.46081093",
"0.46060544",
"0.46018606",
"0.45895115",
"0.45841676"
] | 0.69853395 | 0 |
end testMatchFunctionCall() Test match expression with function call in the arm. | public function testMatchFunctionCallArm()
{
// Check the first case.
$start = $this->getTargetToken('/* testMatchFunctionCallArm */', T_STRING);
$found = self::$phpcsFile->findEndOfStatement($start);
$this->assertSame(($start + 21), $found);
// Check the second case.
$start += 24;
$found = self::$phpcsFile->findEndOfStatement($start);
$this->assertSame(($start + 21), $found);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testMatchFunctionCall()\n {\n $start = $this->getTargetToken('/* testMatchFunctionCall */', T_STRING);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 12), $found);\n\n $start += 8;\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 1), $found);\n\n }",
"public function testFunctionCall()\n {\n $token = $this->getTargetToken('/* testFunctionCall */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 5, 17);\n\n }",
"private function _matchesFunctionCall()\n {\n static $noParens = array(\n 'current_date', 'current_time', 'current_timestamp', 'localtime', 'localtimestamp',\n 'current_role', 'current_user', 'session_user', 'user', 'current_catalog', 'current_schema'\n );\n static $parens = array(\n 'cast', 'extract', 'overlay', 'position', 'substring', 'treat', 'trim', 'nullif', 'coalesce',\n 'greatest', 'least', 'xmlconcat', 'xmlelement', 'xmlexists', 'xmlforest', 'xmlparse',\n 'xmlpi', 'xmlroot', 'xmlserialize'\n );\n\n if ($this->stream->matches(Token::TYPE_KEYWORD, $noParens) // function-like stuff that doesn't need parentheses\n || ($this->stream->matches(Token::TYPE_KEYWORD, $parens) // known functions that require parentheses\n && $this->stream->look(1)->matches(Token::TYPE_SPECIAL_CHAR, '('))\n || ($this->stream->matches(Token::TYPE_KEYWORD, 'collation') // COLLATION FOR (...)\n && $this->stream->look(1)->matches(Token::TYPE_KEYWORD, 'for')\n && $this->stream->look(2)->matches(Token::TYPE_SPECIAL_CHAR, '('))\n ) {\n return true;\n }\n\n // generic function name\n return false !== ($idx = $this->_matchesFuncName())\n && $this->stream->look($idx)->matches(Token::TYPE_SPECIAL_CHAR, '(');\n }",
"public function functionCall($expr){ }",
"function fnMatch($pattern) {\n return fnPregMatch($pattern);\n}",
"function match($fn1, $ln1, $fn2, $ln2) {\n\treturn coeusMatch($fn1, $ln1, $fn2, $ln2);\n}",
"public function testWithMatchValue()\n {\n $token = $this->getTargetToken('/* testWithMatchValue */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 5, 44);\n\n }",
"function fnmatch ($pattern, $string, $flags = 0) {}",
"abstract public function match(&$actual);",
"function testIsMatch()\n {\n // no matches\n $this->assertFalse( $this->regex->isMatch('t3t tA5t t2at tig') );\n // single match\n $this->assertTrue( $this->regex->isMatch('t3t ta4t t2at tig') );\n // double match\n $this->assertTrue( $this->regex->isMatch('t3t ta4t t2at tig t6et') );\n }",
"public function testMatchClosure()\n {\n $start = $this->getTargetToken('/* testMatchClosure */', T_LNUMBER);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 14), $found);\n\n $start += 17;\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 14), $found);\n\n }",
"public function evaluate($value, $matchValue);",
"public function testChainedFunctionCall()\n {\n $token = $this->getTargetToken('/* testChainedFunctionCall */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 5, 12, 'bracket');\n\n }",
"function testc($cond,$pargs=Array()) {\r\n$cond = $this->execLine($cond,$pargs);\r\n\r\n\r\n$operatorArray = Array(\r\n\"isin\" => \"isinfunc\",\r\n\"isincs\" => \"isincsfunc\",\r\n\"iswm\" => \"iswmfunc\",\r\n\"iswmcs\" => \"iswmcsfunc\",\r\n\"isnum\" => \"isnumfunc\",\r\n\"isletter\" => \"isletterfunc\",\r\n\"isalphanum\" => \"isalphanumfunc\",\r\n\"isalpha\" => \"isalphafunc\",\r\n\"islower\" => \"islowerfunc\",\r\n\"isupper\" => \"isupperfunc\",\r\n\r\n\"=\" => \"equalfunc\",\r\n\"==\" => \"equalfunc\",\r\n\"===\" => \"equalcsfunc\",\r\n\"!=\" => \"notequalfunc\",\r\n\"//\" => \"multiplefunc\",\r\n\"\\\\\\\\\" => \"notmultiplefunc\",\r\n\"&\" => \"bitwisefunc\",\r\n\">\" => \"graterthanfunc\",\r\n\"<\" => \"lessthanfunc\",\r\n\">=\" => \"graterthanequalfunc\",\r\n\"<=\" => \"lessthanequalfunc\");\r\n \r\n\r\n\r\n\t$t = explode(\" \",$cond);\r\n\tif (count($t)==1) {\r\n\t\tif ($t[0][0] == \"!\") { \r\n\t\t\t$n = true;\r\n\t\t\t$t[0] = $this->execScript(substr($t[0],1));\r\n\t\t} \r\n\t\t$this->_scope['defined']['v1'] = $cond;\r\n\t\t$this->_scope['defined']['ifmatch'] = $cond;\r\n\t\t\r\n\t\t$r = (($t[0] != \"\") && ($t[0] !== \"0\"));\r\n\t\tif ($n) { return !$r; }\r\n\t\telse { return $r; }\r\n\t}\r\n\t$func = null;\r\n\tfor ($i=0;$i<count($t);$i++) { \r\n\t\tif (array_key_exists($t[$i],$operatorArray)) { \r\n\t\t\t$func = $operatorArray[$t[$i]];\r\n\t\t\t$v1 = implode(\" \",array_slice($t,0,$i));\r\n\t\t\t$v2 = implode(\" \",array_slice($t,$i+1));\r\n\t\t\t\r\n\t\t\tif (method_exists($this,$func)) { \r\n\t\t\t\t$r = call_user_func_array(Array($this,$func),Array($v1,$v2));\r\n\t\t\t\t$this->_scope['defined']['v1'] = $v1;\r\n\t\t\t\t$this->_scope['defined']['v2'] = $v2;\r\n\t\t\t\t$this->_scope['defined']['ifmatch'] = ($r)?'$true':'$false';\r\n\t\t\t\treturn $r;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthrow new Exception(\"IF_OPERATOR_NOT_IMPLIMENTED {$t[$i]}\");\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n}",
"function ca_test1w(&$tokens, $function, &$args = null) {\n\tforeach($tokens as $key => &$value) {\n\t\t$call_result = call_user_func($function, &$value, $args);\n\t\tif($call_result !== False) {\n\t\t\t$result = $call_result;\n\t\t\treturn($result);\n\t\t}\n\t}\n\treturn(False);\n}",
"private function parseFunctionCall() {\n\t\t$startPoint = $this->index;\n\t\t$functionToken = $this->nextToken();\n\t\tif ($functionToken && $functionToken->getType() === wfWAFSQLiLexer::UNQUOTED_IDENTIFIER) {\n\t\t\tif ($this->isTokenOfType($this->nextToken(), wfWAFSQLiLexer::OPEN_PARENTHESIS)) {\n\t\t\t\tswitch ($functionToken->getLowerCaseValue()) {\n\t\t\t\t\tcase 'cast':\n\t\t\t\t\t\tif ($this->parseExpression() &&\n\t\t\t\t\t\t\t$this->isIdentifierWithValue($this->nextToken(), 'as') &&\n\t\t\t\t\t\t\t$this->parseCastDataType() &&\n\t\t\t\t\t\t\t$this->isTokenOfType($this->nextToken(), wfWAFSQLiLexer::CLOSE_PARENTHESIS)\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'convert':\n\t\t\t\t\t\tif ($this->parseExpression()) {\n\t\t\t\t\t\t\t$savePoint = $this->index;\n\t\t\t\t\t\t\tif ($this->isTokenOfType($this->nextToken(), wfWAFSQLiLexer::COMMA) &&\n\t\t\t\t\t\t\t\t$this->parseCastDataType() &&\n\t\t\t\t\t\t\t\t$this->isTokenOfType($this->nextToken(), wfWAFSQLiLexer::CLOSE_PARENTHESIS)\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$this->index = $savePoint;\n\t\t\t\t\t\t\t$savePoint = $this->index;\n\t\t\t\t\t\t\tif ($this->isIdentifierWithValue($this->nextToken(), 'using') &&\n\t\t\t\t\t\t\t\t$this->parseTranscodingName() &&\n\t\t\t\t\t\t\t\t$this->isTokenOfType($this->nextToken(), wfWAFSQLiLexer::CLOSE_PARENTHESIS)\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$this->index = $savePoint;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$savePoint = $this->index;\n\t\t\t\t\t\tif (in_array($functionToken->getUpperCaseValue(), $this->groupFunctions)) {\n\t\t\t\t\t\t\t$token = $this->nextToken();\n\t\t\t\t\t\t\tif (!$this->isIdentifierWithValue($token, array(\n\t\t\t\t\t\t\t\t\t'all', 'distinct',\n\t\t\t\t\t\t\t\t)) && !$this->isTokenOfType($token, wfWAFSQLiLexer::ASTERISK)\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t$this->index--;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$this->parseBitExpression();\n\t\t\t\t\t\t\tif ($this->isTokenOfType($this->nextToken(), wfWAFSQLiLexer::CLOSE_PARENTHESIS)) {\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$this->index = $savePoint;\n\n\t\t\t\t\t\twhile ($this->parseExpression()) {\n\t\t\t\t\t\t\tif ($this->isTokenOfType($this->nextToken(), wfWAFSQLiLexer::COMMA)) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$this->index--;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ($this->isTokenOfType($this->nextToken(), wfWAFSQLiLexer::CLOSE_PARENTHESIS)) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->index = $startPoint;\n\t\treturn false;\n\t}",
"abstract public function match($string);",
"public function testLLVMVerifyFunction() : void\n {\n $llvm = new LLVM();\n $module = $this->getTestedModule($llvm);\n\n $function = $llvm->LLVMGetNamedFunction($module, 'sum');\n $result = $llvm->LLVMVerifyFunction($function, LLVMVerifierFailureAction::LLVMReturnStatusAction());\n\n $this->assertFalse($result);\n }",
"private function compile_functions_call($match)\n\t{\n\t\tpreg_match_all('#arg([0-9]+)=\"([^\"]*)\"#i', $match[2], $m);\n\t\t$count = count($m[0]);\n\t\t$args = array(\"'\" . $match[1] . \"'\");\n\t\tfor ($i = 0; $i < $count; $i++)\n\t\t{\n\t\t\t$key = $m[1][$i];\n\t\t\t$value = $m[2][$i];\n\t\t\tif (!is_numeric($value))\n\t\t\t{\n\t\t\t\t$value = \"'\" . preg_replace('#<\\?php echo(.*?)(; )?\\?>#si', \"' . \\\\1 . '\", $value) . \"'\";\n\t\t\t}\n\t\t\t$args[$key] = $value;\n\t\t}\n\n\t\treturn ('<?php __fsb_template_' . $match[1] . '(' . implode(', ', $args) . ') ?>');\n\t}",
"public function testPatternRecognition()\n {\n }",
"protected static function matcher($function)\n\t{\n\t\treturn '/(\\s*)@'.$function.'(\\s*\\(.*\\))/';\n\t}",
"public function wasMatched();",
"function test($function_name, $desired_output, $function_input){\n\tif (gettype(json_decode($function_input)) !== 'array'){\n\t\t$function_call = 'return '.$function_name.\"( \".test_clean($function_input).\" );\";\n\t} else {\n\t\t$function_input = json_decode($function_input);\n\t\t$nr_inputs = sizeof($function_input);\n\t\tif ($nr_inputs < 1)\n\t\t\t$function_call = 'return '.$function_name.'();';\n\t\telse {\n\t\t\t$function_call = 'return '.$function_name.'(';\n\t\t\t$counter = 1;\n\t\t\tforeach ($function_input as $input){\n\t\t\t\t$function_call = $function_call . test_clean($input);\n\t\t\t\tif($counter++ != $nr_inputs)\n\t\t\t\t\t$function_call = $function_call . \",\";\n\t\t\t}\n\t\t\t$function_call = $function_call .\");\\n\";\n\t\t}\n\t}\n\t/*echo \"<pre>\".$function_call.\"</pre>\\n\";*/\n\t$function_output = eval($function_call);\n\t/*\n\t$desired_output_ = call_user_func_array\n\t\t($function_name, $function_input);\n\t*/\n\ttest_echo($desired_output, $function_output, $function_input, $function_name);\n}",
"private function _matchesFuncName()\n {\n if (!$this->stream->matches(Token::TYPE_IDENTIFIER)\n && (!$this->stream->matches(Token::TYPE_KEYWORD)\n || $this->stream->matches(Token::TYPE_RESERVED_KEYWORD))\n ) {\n return false;\n }\n\n $first = $this->stream->getCurrent();\n $idx = 0;\n while ($this->stream->look($idx + 1)->matches(Token::TYPE_SPECIAL_CHAR, '.')\n && ($this->stream->look($idx + 2)->matches(Token::TYPE_IDENTIFIER)\n || $this->stream->look($idx + 2)->matches(Token::TYPE_KEYWORD))\n ) {\n $idx += 2;\n }\n if (Token::TYPE_TYPE_FUNC_NAME_KEYWORD === $first->getType() && 1 < $idx\n || Token::TYPE_COL_NAME_KEYWORD === $first->getType() && 1 === $idx\n ) {\n // does not match func_name production\n return false;\n }\n\n return $idx + 1;\n }",
"private function fnmatch( $pattern, $string )\r\r\n\t{\r\r\n\t\t$regex = '/^' . strtr( addcslashes( $pattern, '.+^$(){}=!<>|' ), array( '*' => '.*', '?' => '.?' ) ) . '$/i';\r\r\n\t\t//var_dump( $regex );\r\r\n\t\t//var_dump( $string);\r\r\n\t\treturn @preg_match( $regex, $string );\r\r\n\t}",
"public function testWithMatchValueAndMore()\n {\n $token = $this->getTargetToken('/* testWithMatchValueAndMore */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 5, 48);\n\n }",
"public function testMatchRegexRule()\n\t{\n\t\t$this->assertThat(\n\t\t\tTestHelper::invoke($this->StringInflector, 'matchRegexRule', 'xyz', 'plural'),\n\t\t\t$this->equalTo('xyzs'),\n\t\t\t'Checks pluralising against the basic regex.'\n\t\t);\n\n\t\t$this->assertThat(\n\t\t\tTestHelper::invoke($this->StringInflector, 'matchRegexRule', 'xyzs', 'singular'),\n\t\t\t$this->equalTo('xyz'),\n\t\t\t'Checks singularising against the basic regex.'\n\t\t);\n\n\t\t$this->assertFalse(\n\t\t\tTestHelper::invoke($this->StringInflector, 'matchRegexRule', 'xyz', 'singular'),\n\t\t\t'Checks singularising against an unmatched regex.'\n\t\t);\n\t}",
"public function testGetFunctions0()\n{\n\n $actual = $this->expressionExtension->getFunctions();\n $expected = null; // TODO: Expected value here\n $this->assertEquals($expected, $actual);\n}",
"public function testArrowFunctionAsArgument()\n {\n $start = $this->getTargetToken('/* testArrowFunctionAsArgument */', T_FN);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 8), $found);\n\n }",
"function yy_r100(){ $this->_retvalue = yy('Call', $this->yystack[$this->yyidx + -2]->minor, $this->yystack[$this->yyidx + 0]->minor, $this->yystack[$this->yyidx + -1]->minor); }"
] | [
"0.6672649",
"0.6449419",
"0.6367026",
"0.62147665",
"0.5964466",
"0.58093166",
"0.5803819",
"0.5759874",
"0.57277757",
"0.5627729",
"0.5591186",
"0.5559159",
"0.550671",
"0.5459",
"0.54340833",
"0.54189724",
"0.5403806",
"0.5367616",
"0.5360037",
"0.5320479",
"0.5284464",
"0.5234122",
"0.5232049",
"0.5205427",
"0.51928484",
"0.5190023",
"0.5169729",
"0.5167767",
"0.51628757",
"0.51445377"
] | 0.69308966 | 0 |
end testMatchFunctionCallArm() Test match expression with closure. | public function testMatchClosure()
{
$start = $this->getTargetToken('/* testMatchClosure */', T_LNUMBER);
$found = self::$phpcsFile->findEndOfStatement($start);
$this->assertSame(($start + 14), $found);
$start += 17;
$found = self::$phpcsFile->findEndOfStatement($start);
$this->assertSame(($start + 14), $found);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testMatchFunctionCallArm()\n {\n // Check the first case.\n $start = $this->getTargetToken('/* testMatchFunctionCallArm */', T_STRING);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 21), $found);\n\n // Check the second case.\n $start += 24;\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 21), $found);\n\n }",
"public function testMatchFunctionCall()\n {\n $start = $this->getTargetToken('/* testMatchFunctionCall */', T_STRING);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 12), $found);\n\n $start += 8;\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 1), $found);\n\n }",
"public function testClosure()\n {\n $token = $this->getTargetToken('/* testClosure */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 5, 60, 'comma');\n\n }",
"public function testFunctionCall()\n {\n $token = $this->getTargetToken('/* testFunctionCall */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 5, 17);\n\n }",
"private function _matchesFunctionCall()\n {\n static $noParens = array(\n 'current_date', 'current_time', 'current_timestamp', 'localtime', 'localtimestamp',\n 'current_role', 'current_user', 'session_user', 'user', 'current_catalog', 'current_schema'\n );\n static $parens = array(\n 'cast', 'extract', 'overlay', 'position', 'substring', 'treat', 'trim', 'nullif', 'coalesce',\n 'greatest', 'least', 'xmlconcat', 'xmlelement', 'xmlexists', 'xmlforest', 'xmlparse',\n 'xmlpi', 'xmlroot', 'xmlserialize'\n );\n\n if ($this->stream->matches(Token::TYPE_KEYWORD, $noParens) // function-like stuff that doesn't need parentheses\n || ($this->stream->matches(Token::TYPE_KEYWORD, $parens) // known functions that require parentheses\n && $this->stream->look(1)->matches(Token::TYPE_SPECIAL_CHAR, '('))\n || ($this->stream->matches(Token::TYPE_KEYWORD, 'collation') // COLLATION FOR (...)\n && $this->stream->look(1)->matches(Token::TYPE_KEYWORD, 'for')\n && $this->stream->look(2)->matches(Token::TYPE_SPECIAL_CHAR, '('))\n ) {\n return true;\n }\n\n // generic function name\n return false !== ($idx = $this->_matchesFuncName())\n && $this->stream->look($idx)->matches(Token::TYPE_SPECIAL_CHAR, '(');\n }",
"public function functionCall($expr){ }",
"public function testClosureAssignment()\n {\n $start = $this->getTargetToken('/* testClosureAssignment */', T_VARIABLE, '$a');\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 13), $found);\n\n }",
"public function testWithMatchValue()\n {\n $token = $this->getTargetToken('/* testWithMatchValue */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 5, 44);\n\n }",
"public function addMatchingFunc(string $name, \\Closure $fn): void;",
"public function testChainedFunctionCall()\n {\n $token = $this->getTargetToken('/* testChainedFunctionCall */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 5, 12, 'bracket');\n\n }",
"function yy_r51(){ $this->_retvalue = 'boundfunc'; }",
"function fnMatch($pattern) {\n return fnPregMatch($pattern);\n}",
"function fnPregMatch($pattern) {\n return static function($v) use ($pattern) {\n return preg_match($pattern, $v) ? true : false;\n };\n}",
"abstract public function match(&$actual);",
"function ca_test1w(&$tokens, $function, &$args = null) {\n\tforeach($tokens as $key => &$value) {\n\t\t$call_result = call_user_func($function, &$value, $args);\n\t\tif($call_result !== False) {\n\t\t\t$result = $call_result;\n\t\t\treturn($result);\n\t\t}\n\t}\n\treturn(False);\n}",
"public abstract function callback($matches);",
"public function testUsingClosureAsRule(): void\n {\n $validator = new Validator();\n $validator->add('name', 'myRule', [\n 'rule' => function ($data, $provider) {\n $this->assertSame('foo', $data);\n\n return 'You fail';\n },\n ]);\n $expected = ['name' => ['myRule' => 'You fail']];\n $this->assertEquals($expected, $validator->validate(['name' => 'foo']));\n }",
"public function evaluate($value, $matchValue);",
"function testc($cond,$pargs=Array()) {\r\n$cond = $this->execLine($cond,$pargs);\r\n\r\n\r\n$operatorArray = Array(\r\n\"isin\" => \"isinfunc\",\r\n\"isincs\" => \"isincsfunc\",\r\n\"iswm\" => \"iswmfunc\",\r\n\"iswmcs\" => \"iswmcsfunc\",\r\n\"isnum\" => \"isnumfunc\",\r\n\"isletter\" => \"isletterfunc\",\r\n\"isalphanum\" => \"isalphanumfunc\",\r\n\"isalpha\" => \"isalphafunc\",\r\n\"islower\" => \"islowerfunc\",\r\n\"isupper\" => \"isupperfunc\",\r\n\r\n\"=\" => \"equalfunc\",\r\n\"==\" => \"equalfunc\",\r\n\"===\" => \"equalcsfunc\",\r\n\"!=\" => \"notequalfunc\",\r\n\"//\" => \"multiplefunc\",\r\n\"\\\\\\\\\" => \"notmultiplefunc\",\r\n\"&\" => \"bitwisefunc\",\r\n\">\" => \"graterthanfunc\",\r\n\"<\" => \"lessthanfunc\",\r\n\">=\" => \"graterthanequalfunc\",\r\n\"<=\" => \"lessthanequalfunc\");\r\n \r\n\r\n\r\n\t$t = explode(\" \",$cond);\r\n\tif (count($t)==1) {\r\n\t\tif ($t[0][0] == \"!\") { \r\n\t\t\t$n = true;\r\n\t\t\t$t[0] = $this->execScript(substr($t[0],1));\r\n\t\t} \r\n\t\t$this->_scope['defined']['v1'] = $cond;\r\n\t\t$this->_scope['defined']['ifmatch'] = $cond;\r\n\t\t\r\n\t\t$r = (($t[0] != \"\") && ($t[0] !== \"0\"));\r\n\t\tif ($n) { return !$r; }\r\n\t\telse { return $r; }\r\n\t}\r\n\t$func = null;\r\n\tfor ($i=0;$i<count($t);$i++) { \r\n\t\tif (array_key_exists($t[$i],$operatorArray)) { \r\n\t\t\t$func = $operatorArray[$t[$i]];\r\n\t\t\t$v1 = implode(\" \",array_slice($t,0,$i));\r\n\t\t\t$v2 = implode(\" \",array_slice($t,$i+1));\r\n\t\t\t\r\n\t\t\tif (method_exists($this,$func)) { \r\n\t\t\t\t$r = call_user_func_array(Array($this,$func),Array($v1,$v2));\r\n\t\t\t\t$this->_scope['defined']['v1'] = $v1;\r\n\t\t\t\t$this->_scope['defined']['v2'] = $v2;\r\n\t\t\t\t$this->_scope['defined']['ifmatch'] = ($r)?'$true':'$false';\r\n\t\t\t\treturn $r;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthrow new Exception(\"IF_OPERATOR_NOT_IMPLIMENTED {$t[$i]}\");\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n}",
"public function testWithMatchValueAndMore()\n {\n $token = $this->getTargetToken('/* testWithMatchValueAndMore */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 5, 48);\n\n }",
"function fnmatch ($pattern, $string, $flags = 0) {}",
"public function testArrowFunctionAsArgument()\n {\n $start = $this->getTargetToken('/* testArrowFunctionAsArgument */', T_FN);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 8), $found);\n\n }",
"function match($fn1, $ln1, $fn2, $ln2) {\n\treturn coeusMatch($fn1, $ln1, $fn2, $ln2);\n}",
"protected static function matcher($function)\n\t{\n\t\treturn '/(\\s*)@'.$function.'(\\s*\\(.*\\))/';\n\t}",
"function matchRegex($regex) {\n\t$matchRegex = function ($regex, $value) {\n \treturn preg_match($regex, $value) === 1;\n\t};\n\n\treturn curry($matchRegex)($regex);\n}",
"public function test($test, \\Closure $function = null, array $args = []): FMatch\n {\n if ($this->isMatched) {\n return new static($this->value, $this->isMatched);\n }\n if ($this->value === $test) {\n if (is_null($function)) {\n return new static($this->value, true);\n }\n\n return new static($this->callFunction($function, $this->value, $args), true);\n }\n\n return new static($this->value());\n }",
"public function testMatchCase()\n {\n $start = $this->getTargetToken('/* testMatchCase */', T_LNUMBER);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 5), $found);\n\n $start = $this->getTargetToken('/* testMatchCase */', T_CONSTANT_ENCAPSED_STRING);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 1), $found);\n\n }",
"private function _matchesFuncName()\n {\n if (!$this->stream->matches(Token::TYPE_IDENTIFIER)\n && (!$this->stream->matches(Token::TYPE_KEYWORD)\n || $this->stream->matches(Token::TYPE_RESERVED_KEYWORD))\n ) {\n return false;\n }\n\n $first = $this->stream->getCurrent();\n $idx = 0;\n while ($this->stream->look($idx + 1)->matches(Token::TYPE_SPECIAL_CHAR, '.')\n && ($this->stream->look($idx + 2)->matches(Token::TYPE_IDENTIFIER)\n || $this->stream->look($idx + 2)->matches(Token::TYPE_KEYWORD))\n ) {\n $idx += 2;\n }\n if (Token::TYPE_TYPE_FUNC_NAME_KEYWORD === $first->getType() && 1 < $idx\n || Token::TYPE_COL_NAME_KEYWORD === $first->getType() && 1 === $idx\n ) {\n // does not match func_name production\n return false;\n }\n\n return $idx + 1;\n }",
"private function compile_functions_call($match)\n\t{\n\t\tpreg_match_all('#arg([0-9]+)=\"([^\"]*)\"#i', $match[2], $m);\n\t\t$count = count($m[0]);\n\t\t$args = array(\"'\" . $match[1] . \"'\");\n\t\tfor ($i = 0; $i < $count; $i++)\n\t\t{\n\t\t\t$key = $m[1][$i];\n\t\t\t$value = $m[2][$i];\n\t\t\tif (!is_numeric($value))\n\t\t\t{\n\t\t\t\t$value = \"'\" . preg_replace('#<\\?php echo(.*?)(; )?\\?>#si', \"' . \\\\1 . '\", $value) . \"'\";\n\t\t\t}\n\t\t\t$args[$key] = $value;\n\t\t}\n\n\t\treturn ('<?php __fsb_template_' . $match[1] . '(' . implode(', ', $args) . ') ?>');\n\t}",
"public function testArrowFunctionReturnValue()\n {\n $start = $this->getTargetToken('/* testArrowFunctionReturnValue */', T_FN);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 18), $found);\n\n }"
] | [
"0.68692493",
"0.666073",
"0.6213936",
"0.6205195",
"0.58116585",
"0.57982755",
"0.5781337",
"0.57740104",
"0.57207483",
"0.572031",
"0.5608393",
"0.5505054",
"0.5470163",
"0.54469264",
"0.54354477",
"0.54133165",
"0.53957826",
"0.52953696",
"0.52696204",
"0.5252032",
"0.5251023",
"0.52479404",
"0.52426803",
"0.52396184",
"0.52296597",
"0.52105725",
"0.51915544",
"0.51845217",
"0.518411",
"0.5153369"
] | 0.71573037 | 0 |
end testMatchClosure() Test match expression with array declaration. | public function testMatchArray()
{
$start = $this->getTargetToken('/* testMatchArray */', T_LNUMBER);
$found = self::$phpcsFile->findEndOfStatement($start);
$this->assertSame(($start + 11), $found);
$start += 14;
$found = self::$phpcsFile->findEndOfStatement($start);
$this->assertSame(($start + 22), $found);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testArrowFunctionWithArrayAsArgument()\n {\n $start = $this->getTargetToken('/* testArrowFunctionWithArrayAsArgument */', T_FN);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 17), $found);\n\n }",
"public function testArrayValue()\n {\n $token = $this->getTargetToken('/* testArrayValue */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 4, 9, 'comma');\n\n }",
"public function testArrowFunctionArrayValue()\n {\n $start = $this->getTargetToken('/* testArrowFunctionArrayValue */', T_FN);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 9), $found);\n\n }",
"public function testMatchClosure()\n {\n $start = $this->getTargetToken('/* testMatchClosure */', T_LNUMBER);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 14), $found);\n\n $start += 17;\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 14), $found);\n\n }",
"public function testArraySyntax() {\n\n\t\t$lexer = new Lexer();\n\t\t$stream = $lexer->scan(' [key1 => \"val\\\"ue\", 0 : 1, 1, [1,2]] ');\n\n\t\t$actual = $this->buildActualTokens($stream);\n\t\t$expected = array(\n\t\t\tarray(Lexer::T_OPEN_ARRAY => '['),\n\t\t\tarray(Lexer::T_NAME => 'key1'),\n\t\t\tarray(Lexer::T_DOUBLE_ARROW => '=>'),\n\t\t\tarray(Lexer::T_VALUE => '\"val\\\"ue\"'),\n\t\t\tarray(Lexer::T_COMMA => ','),\n\t\t\tarray(Lexer::T_VALUE => '0'),\n\t\t\tarray(Lexer::T_COLON => ':'),\n\t\t\tarray(Lexer::T_VALUE => '1'),\n\t\t\tarray(Lexer::T_COMMA => ','),\n\t\t\tarray(Lexer::T_VALUE => '1'),\n\t\t\tarray(Lexer::T_COMMA => ','),\n\t\t\tarray(Lexer::T_OPEN_ARRAY => '['),\n\t\t\tarray(Lexer::T_VALUE => '1'),\n\t\t\tarray(Lexer::T_COMMA => ','),\n\t\t\tarray(Lexer::T_VALUE => '2'),\n\t\t\tarray(Lexer::T_CLOSE_ARRAY => ']'),\n\t\t\tarray(Lexer::T_CLOSE_ARRAY => ']'),\n\t\t);\n\t\t$this->assertSame($expected, $actual);\n\t}",
"public function testArrayIndex()\n {\n $token = $this->getTargetToken('/* testArrayIndex */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 8, 17, 'comma');\n\n }",
"function yy_r84(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; }",
"public function testStatementAsArrayValue()\n {\n // Test short array syntax.\n $start = $this->getTargetToken('/* testStatementAsArrayValue */', T_NEW);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 2), $found);\n\n // Test long array syntax.\n $start += 12;\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 2), $found);\n\n // Test same statement outside of array.\n $start += 10;\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 3), $found);\n\n }",
"function yy_r83()\n {\n $this->_retvalue = 'in_array(' . $this->yystack[$this->yyidx + - 2]->minor . ',(array)' . $this->yystack[$this->yyidx + 0]->minor . ')';\n }",
"public function testGetFieldArray(): void\n {\n // setup\n $arr = [\n 'foo' => 'bar'\n ];\n\n // test body\n /** @var string $result */\n $result = Functional::getField($arr, 'foo');\n\n // assertions\n $this->assertEquals('bar', $result);\n }",
"function yy_r83(){$this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; }",
"function match_arr_contents($arr, $reg) {\n $response = \"\";\n foreach($arr as $arr_index => $arr_item) {\n if (preg_match($reg, $arr_item) === 1) {\n $response .= \"Success\\n\";\n }\n else {\n $response .= \"$arr_index is not properly formatted\\n\";\n }\n }\n return $response;\n}",
"public function testThatCompileReturnTheArrayWithDynamicParameters()\n {\n $expected = [['foo'], ['bar']];\n $result = $this->compiler->parseDynamics('example/:foo/test/:bar');\n $this->assertEquals($expected, $result);\n }",
"function arrSearch($array, $expression) {\n\t$result = array();\n\t$expression = preg_replace(\"/([^\\s]+?)(=|<|>|!)/\", \"\\$a['$1']$2\", $expression);\n\ttry {\n\t foreach ($array as $a) {\n\t\t\tif (eval(\"return $expression;\")) {\n\t\t\t\t$result[] = $a;\n\t\t\t}\n\t\t}\n\t} catch (Exception $e) {\n\t echo 'Caught exception: ', $e->getMessage(), \"\\n\";\n\t}\n\treturn $result;\n}",
"function testGetAllMatch()\n {\n $expected_single = array( 0 => array('ta4t'),\n 1 => array('a'),\n 2 => array('4') );\n $expected_double = array( 0 => array('ta4t','te5t'),\n 1 => array('a','e'),\n 2 => array('4','5') );\n // no matches\n $this->assertFalse( $this->regex->getAllMatch('t3t tA2t t2at tig') );\n // single match\n $this->assertSame($expected_single,\n $this->regex->getAllMatch('t3t ta4t t2at tig') );\n // double match\n $this->assertSame($expected_double,\n $this->regex->getAllMatch('t3t ta4t t2at te5t') );\n }",
"public function testGetVarArrayNew(): void\n {\n $comment_text = <<<'EOT'\n/**\n * @var int $my_int\n * @var array<string , stdClass> $array\n * @var float (Unparsable)\n */\nEOT;\n $comment = Comment::fromStringInContext(\n $comment_text,\n $this->code_base,\n new Context(),\n 1,\n Comment::ON_METHOD\n );\n $this->assertSame([], $comment->getParameterMap());\n $this->assertSame([], $comment->getParameterList());\n $var_map = $comment->getVariableList();\n $this->assertSame([0, 1], \\array_keys($var_map));\n $my_int_doc = $var_map[0];\n $this->assertSame('int $my_int', (string)$my_int_doc);\n $this->assertSame('my_int', $my_int_doc->getName());\n\n $array_doc = $var_map[1];\n $this->assertSame('array<string,\\stdClass> $array', (string)$array_doc);\n $this->assertSame('array', $array_doc->getName());\n }",
"public function testAloneScalarVariadicParameterAndNamedArrayArgument(): void\n {\n $result = $this->resolveClosure(\n fn(int ...$var) => $var,\n ['var' => [1, 2, 3]],\n );\n\n $this->assertSame([1, 2, 3], $result);\n }",
"function yy_r112(){ $this->_retvalue = yy('Arr', $this->yystack[$this->yyidx + -2]->minor); }",
"static function unittest_variableTypeDeclarationFromArrayAccess () {\n PhlintTest::assertIssues('\n\n class A {\n function foo () {}\n }\n\n function foo (ArrayObject $x) {\n /** @var A */\n $a = $x[\"obj\"];\n $a->foo();\n $a->bar();\n }\n\n ', [\n 'Unable to invoke undefined *A::bar* for the expression *$a->bar()* on line 10.',\n ]);\n }",
"public function testClosure()\n {\n $token = $this->getTargetToken('/* testClosure */', T_FN);\n $this->backfillHelper($token);\n $this->scopePositionTestHelper($token, 5, 60, 'comma');\n\n }",
"function yy_r82()\n {\n $this->_retvalue = 'in_array(' . $this->yystack[$this->yyidx + - 2]->minor . ',' . $this->yystack[$this->yyidx + 0]->minor . ')';\n }",
"public function testMatchFunctionCall()\n {\n $start = $this->getTargetToken('/* testMatchFunctionCall */', T_STRING);\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 12), $found);\n\n $start += 8;\n $found = self::$phpcsFile->findEndOfStatement($start);\n\n $this->assertSame(($start + 1), $found);\n\n }",
"function preg_match($pattern, $subject, &$subpatterns, $flags, $offset) {}",
"function yy_r111(){ $this->_retvalue = yy('Arr', array()); }",
"function all_arr_contents_matched($arr, $reg) {\n $matches = true;\n foreach($arr as $arr_item) {\n if(preg_match($reg, $arr_item) === 0) {\n $matches = false;\n }\n }\n return $matches;\n}",
"public function testGetField2Array(): void\n {\n // setup\n $arr = [\n 'foo' => 'bar',\n 'foo2' => 'bar2'\n ];\n\n // test body\n /** @var string $result */\n $result = Functional::getField($arr, 'foo2');\n\n // assertions\n $this->assertEquals('bar2', $result);\n }",
"public function testArray(): void\n {\n $validator = new Validator();\n $validator->array('username');\n $this->assertEmpty($validator->validate(['username' => [1, 2, 3]]));\n $this->assertSame(\n ['username' => ['array' => 'The provided value must be an array']],\n $validator->validate(['username' => 'is not an array'])\n );\n\n $fieldName = 'field_name';\n $rule = 'array';\n $expectedMessage = 'The provided value must be an array';\n $this->assertValidationMessage($fieldName, $rule, $expectedMessage);\n }",
"function verify_array($ary)\n {\n if (!is_array($ary))\n return 0;\n \n return 1;\n }",
"function yy_r179(){ $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; }",
"private function allowExtraKeysCheck($actual, $expected, $expectedTypes = array(), $regexPattern = false, $isParentArray = false)\n {\n $numOfFailures = 0;\n $numOfMatches = 0;\n\n // loosely derive arrays by having the end nodes completely numeric;\n // this seems like a terrible idea, please help me.\n $arraysActual = array();\n $nonArraysActual = array();\n\n if ($isParentArray) {\n $arraysActual = $actual;\n }\n else {\n foreach($actual as $actualKey => $actualValue) {\n $keys = \\explode(\"|\", $actualKey);\n $lastKey = array_pop($keys);\n\n if (preg_match('/^[0-9]*$/', $lastKey)) {\n $arraysActual[$actualKey] = $actualValue;\n }\n else {\n $nonArraysActual[$actualKey] = $actualValue;\n }\n }\n }\n\n // now we walk through only arrays\n if ($isParentArray && count($expectedTypes) > 0 && count($arraysActual) == 0) {\n $numOfFailures++;\n } else {\n\n\n foreach ($arraysActual as $actualKey => $actualValue) {\n // it's a type check\n if ($regexPattern == false) {\n // if the value is an array by itself, ensure it matches\n if (is_array($actualValue)) {\n\n $similarExpected = $this->findSimilarValuesWithSubkeys($expected, $actualKey);\n $similarExpectedTypes = array();\n foreach ($similarExpected as $expectedKey => $expectedSingle) {\n foreach ($expectedSingle as $expectedSingleKey => $expectedSingleValue) {\n $similarExpectedTypes[\\gettype($expectedSingleValue)] = true;\n }\n }\n\n $results = $this->allowExtraKeysCheck($actualValue, $similarExpected, $similarExpectedTypes, $regexPattern, true);\n $numOfMatches += $results['numOfMatches'];\n $numOfFailures += $results['numOfFailures'];\n }\n if (isset($expectedTypes[\\gettype($actualValue)])) {\n $numOfMatches++;\n } else {\n $numOfFailures++;\n }\n } else {\n $actualMatches = array();\n $actualRegexResult = \\preg_match($regexPattern, $actualValue, $actualMatches);\n\n if ($actualRegexResult) {\n $numOfMatches++;\n } else {\n $numOfFailures++;\n }\n }\n }\n }\n\n // here we walk through non-arrays\n foreach ($nonArraysActual as $actualKey => $actualValue) {\n // it's a type check\n if ($regexPattern == false) {\n if (isset($expected[$actualKey]) && \\gettype($expected[$actualKey]) != \\gettype($actualValue)) {\n $numOfFailures++;\n } else if (isset($expected[$actualKey])) {\n $numOfMatches++;\n }\n }\n else {\n $actualMatches = array();\n $actualRegexResult = \\preg_match($regexPattern, $actualValue, $actualMatches);\n if (isset($expected[$actualKey]) && $actualRegexResult) {\n $numOfMatches++;\n }\n else if (isset($expected[$actualKey])) {\n $numOfFailures++;\n }\n }\n }\n\n return array(\n 'numOfFailures' => $numOfFailures,\n 'numOfMatches' => $numOfMatches\n );\n }"
] | [
"0.6084978",
"0.60078526",
"0.59134245",
"0.5815613",
"0.5773459",
"0.57639486",
"0.5666736",
"0.5466017",
"0.54388434",
"0.5415446",
"0.5384435",
"0.5365474",
"0.5348412",
"0.53218365",
"0.5314484",
"0.5309441",
"0.5293013",
"0.52681863",
"0.52437353",
"0.52344984",
"0.5226636",
"0.5209826",
"0.5189705",
"0.5173138",
"0.515977",
"0.5145796",
"0.51148",
"0.51077276",
"0.5072118",
"0.50626683"
] | 0.6983188 | 0 |
Tests whether the cache directory contains the frontend user group list. | public function doesCacheDirectoryContainFrontendUserGroupList() {
$frontendUserGroupList = '0,-2,3,4,5';
$this->frontendUser->expects($this->once())->method('getGroupList')->will($this->returnValue($frontendUserGroupList));
$initialCacheDirectory = $cacheDirectory = uniqid('directory');
$parameters = array('cacheDir' => &$cacheDirectory, 'TSFE' => $this->frontend);
$this->createFileHook->initialize($parameters, $this->staticFileCache);
$this->assertEquals($initialCacheDirectory . '/' . $frontendUserGroupList, $cacheDirectory);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function shouldCache()\n {\n return config('gsuite.cache.groups.cache');\n }",
"private function isAuthorisedDisplayClearCache()\n\t{\n\t\tstatic $result = null;\n\n\t\tif (!is_null($result))\n\t\t{\n\t\t\treturn $result;\n\t\t}\n\n\t\t// If the user is not allowed to view the output then end here\n\t\t$filterGroups = (array) $this->params->get('filter_groups', null);\n\n\t\tif (!empty($filterGroups))\n\t\t{\n\t\t\t$userGroups = JFactory::getUser()->get('groups');\n\n\t\t\tif (!array_intersect($filterGroups, $userGroups))\n\t\t\t{\n\t\t\t\t$result = false;\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t$result = true;\n\n\t\treturn true;\n\t}",
"protected function groupsExist() {\n return !empty($this->group_storage->loadMultiple());\n }",
"public function alreadyExists() {\n return $this->modx->getCount('modUserGroup',array('name' => $this->getProperty('name'))) > 0;\n }",
"public function assertFrontendUserGroupLoggedIn($groups=NULL) {\n\t\t$currentFrontendUser = $this->userService->getCurrentFrontendUser();\n\t\tif (!$currentFrontendUser) {\n\t\t\treturn FALSE;\n\t\t}\n\t\t$currentFrontendUserGroups = $currentFrontendUser->getUsergroup();\n\t\tif ($groups) {\n\t\t\tif ($groups instanceof Tx_Magenerator_Domain_Model_FeUserGroup) {\n\t\t\t\treturn $currentFrontendUserGroups->contains($groups);\n\t\t\t} else if ($groups instanceof Tx_Extbase_Persistence_ObjectStorage) {\n\t\t\t\t$currentFrontendUserGroupsClone = clone $currentFrontendUserGroups;\n\t\t\t\t$currentFrontendUserGroupsClone->removeAll($groups);\n\t\t\t\treturn ($currentFrontendUserGroups->count() !== $currentFrontendUserGroupsClone->count());\n\t\t\t}\n\t\t}\n\t\treturn ($currentFrontendUserGroups->count() > 0);\n\t}",
"public function hasUserGroup(\\TYPO3\\CMS\\Extbase\\Domain\\Model\\FrontendUserGroup $group){\n\t\treturn $this->usergroup->contains($group);\n\t}",
"public function can_see() {\n\t\tglobal $I2_USER;\n\n\t\tif ($I2_USER->is_group_member('admin_podcasts'))\n\t\t\treturn TRUE;\n\t\tif (!$this->visibility)\n\t\t\treturn FALSE;\n\n\t\t$ugroups = Group::get_user_groups($I2_USER);\n\t\tforeach ($ugroups as $g) {\n\t\t\tif (isset($this->gs[$g->gid]))\n\t\t\t\treturn TRUE;\n\t\t}\n\t\treturn FALSE;\n\t}",
"public function canUseCheckout()\n {\n $groupId = Mage::getSingleton('customer/session')->getCustomer()->getGroupId();\n $allowedGroups = explode(',', $this->getConfigData('specificgroup'));\n foreach($allowedGroups as $key => $val){\n if(empty($val)){\n unset($allowedGroups[$key]);\n }\n }\n if(count($allowedGroups)){\n return in_array($groupId, $allowedGroups);\n }else{\n return true;\n }\n }",
"function hasItems() {\n\t\tif (!is_null($this->cacheHasItems)) {\n\t\t\treturn $this->cacheHasItems;\n\t\t}\n\t\ttry {\n\t\t\t$query = \\OC_DB::prepare('SELECT `id` FROM `*PREFIX*fscache` WHERE `user` = ?',1);\n\t\t} catch (\\Exception $e) {\n\t\t\t$this->cacheHasItems = false;\n\t\t\treturn false;\n\t\t}\n\t\ttry {\n\t\t\t$result = $query->execute(array($this->user));\n\t\t} catch (\\Exception $e) {\n\t\t\t$this->cacheHasItems = false;\n\t\t\treturn false;\n\t\t}\n\n\t\tif ($result === false || property_exists($result, 'error_message_prefix')) {\n\t\t\t$this->cacheHasItems = false;\n\t\t\treturn false;\n\t\t}\n\n\t\t$this->cacheHasItems = (bool)$result->fetchRow();\n\t\treturn $this->cacheHasItems;\n\t}",
"function hasSubGroups(){\n\t\t$result = $this->getListOfSubGroups();\n\t\tif($result->count() == 0){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"Function isClientFolderExists()\n\t{\n\t\tglobal $sHostingDir;\n\t\tif(is_dir($sHostingDir))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}",
"function menu_is_cached(){\n\t\tglobal $mydir;\n\t\treturn(!(\n\t\t\tarray_key_exists($mydir,$_SESSION) && \n\t\t\tarray_key_exists('usr',$_SESSION[$mydir]) && \n\t\t\t!array_key_exists(\"_privileges_menu\",$_SESSION[$mydir]['usr'])));\n\t}",
"public function hasGroup(): bool;",
"public function doFieldValuesContainFrontendUserGroupList() {\r\n\t\t$frontendUserGroupList = '0,-2,3,4,5';\r\n $this->frontendUser->expects($this->once())->method('getGroupList')->will($this->returnValue($frontendUserGroupList));\r\n\r\n\t\t$fieldValues = array();\r\n\r\n\t\t$parameters = array('fieldValues' => &$fieldValues, 'TSFE' => $this->frontend);\r\n\t\t$this->createFileHook->initialize($parameters, $this->staticFileCache);\r\n\r\n\t\t$this->assertEquals($fieldValues[tx_Extracache_Typo3_Hooks_StaticFileCache_CreateFileHook::FIELD_GroupList], $frontendUserGroupList);\r\n\t}",
"private function should_purge_user_cache() {\r\n\t\tif ( ! $this->options->get( 'cache_logged_user', 0 ) ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t// This filter is documented in /inc/functions/files.php.\r\n\t\treturn ! (bool) apply_filters( 'rocket_common_cache_logged_users', false );\r\n\t}",
"public static function useCache() {\n global $GLPI_CACHE;\n return $GLPI_CACHE != null\n && (!defined('TU_USER') || defined('CACHED_TESTS'));\n }",
"public function belongsToAnyAuthGroup(): bool\n {\n return count($this->authGroups) > 0;\n }",
"public function doesAdditionalHashContainFrontendUserGroupList() {\r\n\t\t$frontendUserGroupList = '0,-2,3,4,5';\r\n $this->frontendUser->expects($this->once())->method('getGroupList')->will($this->returnValue($frontendUserGroupList));\r\n\r\n\t\t$additionalHash = '';\r\n\r\n\t\t$parameters = array('additionalHash' => &$additionalHash, 'TSFE' => $this->frontend);\r\n\t\t$this->createFileHook->initialize($parameters, $this->staticFileCache);\r\n\r\n\t\t$this->assertEquals(md5($frontendUserGroupList), $additionalHash);\r\n\t}",
"public function canOwnAuthGroups(): bool\n {\n return true;\n }",
"public static function isCacheDir()\n {\n if(!is_dir(__DIR__ .'/cache/')) mkdir(__DIR__ .\"/cache/\", 0700);\n\n return true;\n }",
"function mysupport_usergroup($perm, $usergroups = array())\r\n{\r\n\tglobal $mybb, $cache;\r\n\t\r\n\t// does this key even exist?? Check here if it does\r\n\tif(!array_key_exists($perm, $mybb->usergroup))\r\n\t{\r\n\t\treturn false;\r\n\t}\r\n\t\r\n\t// if no usergroups are specified, we're checking our own usergroups\r\n\tif(empty($usergroups))\r\n\t{\r\n\t\t$usergroups = array_merge(array($mybb->user['usergroup']), explode(\",\", $mybb->user['additionalgroups']));\r\n\t}\r\n\t\r\n\t// load the usergroups cache\r\n\t$groups = $cache->read(\"usergroups\");\r\n\tforeach($groups as $group)\r\n\t{\r\n\t\t// if this user is in this group\r\n\t\tif(in_array($group['gid'], $usergroups))\r\n\t\t{\r\n\t\t\t// if this group can perform this action, return true\r\n\t\t\tif($group[$perm] == 1)\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\treturn false;\r\n}",
"protected function isCached() {\n\t\t$userObjType = $this->configurationManager->getContentObject()->getUserObjectType();\n\t\treturn ($userObjType !== ContentObjectRenderer::OBJECTTYPE_USER_INT);\n\t}",
"function checkGroup( $group )\n {\n if( ( $user = authData(\"group\") ) != NULL )\n return in_array( $user, explode('|', $group) );\n return false;\n }",
"public function loadGroupCache()\n {\n\n if (file_exists(PATH_CACHE.'resource/group_ids.php')){\n include PATH_CACHE.'resource/group_ids.php';\n } else {\n $this->groupIds = [];\n }\n\n }",
"public function advanced_cache_installed() {\n\t\treturn file_exists( W3TC_ADDIN_FILE_ADVANCED_CACHE );\n\t}",
"function Access() {\n $acl = new Acl(USER_ID);\n\n $db = new DB(\"addons\");\n $db->select(\"addon_name = '\" . $db->escape($this->_name) . \"' AND addon_installed = '1'\");\n $db->nextRecord();\n if ((int) $acl->group < (int) $db->addon_group)\n return false;\n else\n return true;\n }",
"private function loadUserGroups()\n {\n /*if ( $this->Cache->exists('users/groups/'.$this->uid) )\n $this->groups = $this->Cache->get('users/groups/'.$this->uid);\n else*/\n $this->groups = $this->getUserGroups();\n }",
"function invite_anyone_are_groups_running() {\n\tif ( function_exists( 'groups_install' ) )\n\t\treturn true;\n\n\tif ( function_exists( 'bp_is_active' ) ) {\n\t\tif ( bp_is_active( 'groups' ) )\n\t\t\treturn true;\n\t}\n\n\treturn false;\n}",
"function xcms_check_rights($groups)\n{\n $u = xcms_user();\n foreach ($groups as $v)\n {\n if ($v && $v[0] == \"#\")\n {\n // this is a group\n if ($u->check_rights(substr($v, 1), false))\n return true;\n }\n else\n {\n if ($u->login() == $v)\n return true;\n }\n }\n return false;\n}",
"public function cache_exists() {\n return isset($this->static_cache[$this->cache_name]);\n }"
] | [
"0.6875031",
"0.65192175",
"0.63721377",
"0.6129969",
"0.59899783",
"0.5981989",
"0.5910877",
"0.59013456",
"0.5861359",
"0.5858472",
"0.58456767",
"0.58114034",
"0.5781371",
"0.5742449",
"0.5711694",
"0.5701605",
"0.5700119",
"0.56609875",
"0.563394",
"0.5623975",
"0.5619633",
"0.5614317",
"0.56032926",
"0.5594494",
"0.55916786",
"0.5591197",
"0.55871814",
"0.5579362",
"0.55721563",
"0.5568765"
] | 0.80921406 | 0 |
Tests that an error is thrown when the method is called. | public function testMethodThrowsException() {
$error_var = NULL;
try {
$this->form->{self::METHOD}();
} catch (\Error $error) {
$error_var = $error;
}
$this->assertInstanceOf('Error', $error_var);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testCallError()\n {\n $req = new GetThingReq();\n $req->setId(0);\n try {\n $this->client->call($req, 'GetThing', [], [\n 'response_null' => true,\n 'response_code' => 9,\n 'response_details' => 'foo',\n ]);\n } catch (Error $e) {\n $this->assertEquals(new Config([\n 'hostname' => '0.0.0.0:9000',\n ]), $e->getConfig());\n $this->assertEquals('foo', $e->getDetails());\n $this->assertEquals(9, $e->getStatusCode());\n $this->assertNull($e->getTrailer());\n }\n }",
"public function testMagicCallMethodThrowsException()\n {\n $this->expectException('BadMethodCallException');\n\n with(new HtmlBuilder($this->url, $this->view))->missing();\n }",
"public function testCallingBadMethod()\n {\n $this->expectException(BadMethodCallException::class);\n $this->bootstrapper->foo('bar');\n }",
"public function testCallUndefinedMethod2()\n {\n $this->expectException(Error::class);\n\n $this->uut->get_something();\n }",
"public function testMagicInvalidGetMethod()\n {\n $this->expectException(MethodNotFoundException::class);\n $this->fitness->callNoneExistingGetMethod();\n }",
"public function testCallUndefinedMethod()\n {\n $this->expectException(Error::class);\n\n $this->uut->undefinedMethod();\n }",
"public function error()\n {\n throw new Exception('Something went wrong!');\n }",
"public function testMagicInvalidGetMethod()\n {\n $this->expectException(MethodNotFoundException::class);\n $this->image->callNoneExistingGetMethod();\n }",
"public function testExceptions()\n\t{\n\t\t$this->http->expects($this->atLeastOnce())->method('get')->will($this->returnCallback('picasaExceptionCallback'));\n\t\t$this->http->expects($this->atLeastOnce())->method('post')->will($this->returnCallback('picasaDataExceptionCallback'));\n\n\t\t$functions['listAlbums'] = array('userID');\n\t\t$functions['createAlbum'] = array('userID', 'New Title', 'private');\n\t\t$functions['getAlbum'] = array('https://picasaweb.google.com/data/entry/api/user/12345678901234567890/albumid/0123456789012345678');\n\n\t\tforeach ($functions as $function => $params)\n\t\t{\n\t\t\t$exception = false;\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tcall_user_func_array(array($this->object, $function), $params);\n\t\t\t}\n\t\t\tcatch (UnexpectedValueException $e)\n\t\t\t{\n\t\t\t\t$exception = true;\n\t\t\t\t$this->assertEquals($e->getMessage(), 'Unexpected data received from Google: `BADDATA`.');\n\t\t\t}\n\t\t\t$this->assertTrue($exception);\n\t\t}\n\t}",
"function testGetCommonError() {\n\t\t$result = $this->np->someUnregisteredMethod();\n\t\t$this->assertEmpty($result);\n\t}",
"public function testErrorMessagePassedCorrectly(): void\n {\n $this->expectExceptionMessage($this->message);\n\n throw $this->class;\n }",
"public function testGetNonExistentFunction() {\n\t\t$this->expectException( \\LogicException::class );\n\t\t$this->functions->get( 'foo' );\n\t}",
"public function testInvokeThrowsExceptionIfXIsNotANumber()\n {\n $this->setExpectedException('InvalidArgumentException');\n \n (new Quadratic(1, 1, 1))('foo');\n \n return;\n }",
"public function test_createIsCalled_invalidPrice_throwAnException()\n {\n Price::create('type', 'invalid_price');\n }",
"public function testCallMagicMethodUsingMockOneThrowsExceptionForInvalidExecution()\n {\n $this->stub->addFoos('boss');\n }",
"public function testMakeRequest()\n {\n $this->expectException(PostcodeException::class);\n $postcodeClass = new Postcode();\n $this->invokeMethod($postcodeClass, 'makeRequest', ['/exception']);\n }",
"public function testException()\n {\n $this->createInitialStub(1);\n $this->stockRegistryMock->expects($this->at(0))\n ->method('getStockItem')\n ->willReturn(null);\n $this->expectException(LocalizedException::class);\n $this->quantityValidator->validate($this->observerMock);\n }",
"function foo() {\n throw new Exception(\"Bad stuff\");\n}",
"public function testCheckMethodUsingMockAndNotThrowsException()\n {\n $this->assertFalse($this->stub->check('guest', 'view foo'));\n }",
"public function testExceptionThrown()\n {\n $response = $this->request->send();\n $this->assertInstanceOf(ErrorResponse::class, $response);\n $this->assertEquals(false, $response->isSuccessful());\n $this->assertEquals('The access token you\\'ve used is not a valid sandbox API access token', $response->getMessage());\n }",
"public function testHandleError()\n\t{\n\t\t$this->markTestIncomplete(\n 'This test has not been implemented yet.'\n );\n\t}",
"public function testEndpointException()\n {\n $this->getClass()->execute();\n }",
"public function testTeamStoreMethodWithErrors()\n {\n\n }",
"public function testInvalidParam() {\n\n $message = 'Array to string conversion';\n $this->runTryCatchForMethod( 'getSingle', array( array() ), $message );\n $this->runTryCatchForMethod( 'getMultiple', array( array(), array() ), $message );\n $this->runTryCatchForMethod( 'delete', array( array() ), $message );\n $this->runTryCatchForMethod( 'listEnvelopes', array( array() ), $message );\n\n $message = 'Object of class stdClass could not be converted to string';\n $this->runTryCatchForMethod( 'getSingle', array( (object) array() ), $message );\n $this->runTryCatchForMethod( 'getMultiple', array( (object) array(), (object) array() ), $message );\n $this->runTryCatchForMethod( 'delete', array( (object) array() ), $message );\n $this->runTryCatchForMethod( 'listEnvelopes', array( (object) array() ), $message );\n\n $message = 'Contact name and email must be a string to update a contact';\n $this->runTryCatchForMethod( 'update', array( array(), array(), array() ), $message );\n $this->runTryCatchForMethod( 'update', array( (object) array(), (object) array(), (object) array() ), $message );\n\n $message = 'Contact name and email must be a string to create a new contact';\n $this->runTryCatchForMethod( 'createNew', array( array( 'name', 'something' ), array( 'email' ) ), $message );\n $this->runTryCatchForMethod( 'createNew', array( (object) array( 'name' ), (object) array( 'email' ) ), $message );\n }",
"public function testShouldThrowInvalidRequest()\n {\n $this->expectException(\\FedaPay\\Error\\InvalidRequest::class);\n $this->expectExceptionMessage(\n 'Could not determine which URL to request: Tests\\Fixtures\\Foo instance has invalid ID: '\n );\n Fixtures\\Foo::resourcePath(null);\n }",
"public function testSetDataUsingMethodSubException($key, $expectedMethod)\n {\n $object = $this->getMock('Varien_Object', array($expectedMethod));\n $object->expects($this->once())\n ->method($expectedMethod)\n ->will($this->throwException(new BadMethodCallException('some exception')));\n $result = $object->setDataUsingMethod($key, 1);\n }",
"public function testTotalException() {\n $input = [0,2,5,8];\n $coupon = 1.20;\n $this->expectException('BadMethodCallException'); // calling a PHPUnit framework method that takes the class name of the exception that it expects\n $this->Receipt->total($input, $coupon); // calling a method total that takes in input and coupon value\n }",
"public function testError()\n {\n $tokens = array('filename', '-a', 'v1');\n $cmd = new Command($tokens, true);\n $cmd->beepOnError();\n $exception = new \\Exception('HHAAH');\n $cmd->error($exception);\n }",
"public function throwError() {\n\t\tthrow new Exception('Number not even');\n\t}",
"function it_throws_an_exception_on_parse_error()\n {\n // Haven't still figured how to test it\n }"
] | [
"0.7064581",
"0.69445956",
"0.68871224",
"0.6806247",
"0.6711138",
"0.6679251",
"0.6650065",
"0.66393673",
"0.6600032",
"0.65806156",
"0.65662086",
"0.65538114",
"0.65474856",
"0.65431845",
"0.65320796",
"0.6507607",
"0.6494753",
"0.64634",
"0.64598846",
"0.64550376",
"0.6454775",
"0.6444247",
"0.6443411",
"0.6418516",
"0.6412248",
"0.63788486",
"0.6370435",
"0.63522565",
"0.6350726",
"0.6346095"
] | 0.7781766 | 0 |
Determine whether or not this instance of Plesk is able to manage hosting plans and reseller plans. Without either of those, any permission could no longer be toggled. | private static function _canManagePlans()
{
$license = new \pm_License();
$properties = $license->getProperties();
$hasHostingPlans = $properties['can-manage-customers'];
$hasResellerPlans = $properties['can-manage-resellers'];
if (!$hasHostingPlans || !$hasResellerPlans) {
return false;
} else {
return true;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('salesmanagerment/revenue');\n }",
"protected function _isAllowed()\n {\n return $this->_authorization->isAllowed('TransPerfect_GlobalLink::management');\n }",
"public function authorize(): bool\n {\n return $this->user()->can('edit plans');\n }",
"public function canRenewPlan()\n {\n return (\n config('cashier.renew_free_plan') == 'yes' ||\n (config('cashier.renew_free_plan') == 'no' && $this->plan->getBillableAmount() > 0)\n );\n }",
"protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('admin/kiosked');\n }",
"protected function _isAllowed () {\n\t\t\t// Is module config in admin user's ACL\n\t\t\treturn Mage::helper (\"twofactor\")->isAllowed ();\n\t\t}",
"protected function _isAllowed()\r\n {\r\n return $this->_authorization->isAllowed('TransPerfect_GlobalLink::management');\r\n }",
"protected function _isAllowed()\n {\n return $this->_config->isEnabled() && $this->_authorization->isAllowed(self::ADMIN_RESOURCE);\n }",
"protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('bs_work/other');\n }",
"public static function hasAccess()\n {\n return !self::isEnabled() || self::isClientAllowed();\n }",
"protected function _isAllowed()\n {\n return $this->_authorization->isAllowed('Pronko_TaskManagement::manage_task');\n }",
"protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('izberg/merchants');\n }",
"public static function admin_permissions_check() {\n\t\treturn current_user_can( TVE_DASH_CAPABILITY );\n\t}",
"protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/send_to_riskified');\n }",
"public function authorize() {\n if (permit(['subscription-plan.edit'])) {\n return true;\n } else {\n return false;\n }\n }",
"protected function _isAllowed()\n {\n return $this->_authorization->isAllowed('Webkul_Mpreportsystem::mpreports');\n }",
"protected function _isAllowed()\n {\n return $this->_authorization->isAllowed('Oye_Deliverydate::main');\n }",
"public function check_availability() {\n \n if ( !get_option('app_facebook_ads_enable') || !plan_feature('app_facebook_ads') || !team_role_permission('facebook_ads') ) {\n return false;\n } else {\n return true;\n }\n\n }",
"protected function _isAllowed()\n {\n return $this->_authorization->isAllowed('Lof_MarketPlace::product');\n }",
"protected function _isAllowed()\n {\n return $this->_authorization->isAllowed('Litmus7_Merc::redis_configuration');\n }",
"protected function _isAllowed()\n {\n return $this->_authorization->isAllowed(self::ADMIN_RESOURCE);\n }",
"protected function _isAllowed()\n {\n return parent::_isAllowed() && $this->_authorization->isAllowed('Vnecoms_VendorsConfigApproval::pending_config');\n }",
"protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('bs_report/tctask');\n }",
"protected function _isAllowed()\n {\n return $this->_authorization->isAllowed(static::ADMIN_RESOURCE);\n }",
"protected function _isAllowed()\n {\n return $this->_authorization->isAllowed(static::ADMIN_RESOURCE);\n }",
"function is_eligible(){\n\treturn is_admin() && is_loggedin();\n}",
"private function can_opt_in()\n {\n return current_user_can( apply_filters( 'ninja_forms_admin_opt_in_capabilities', 'manage_options' ) );\n }",
"protected function _isAllowed()\n {\n return parent::_isAllowed() && $this->_authorization->isAllowed('Vnecoms_VendorsCredit::credit_pending');\n }",
"protected function _isAllowed()\r\n\t{\r\n\t\tswitch ($this->getRequest()->getActionName()) {\r\n\t\t\tcase 'new':\r\n\t\t\tcase 'save':\r\n\t\t\t\treturn Mage::getSingleton('admin/session')->isAllowed('slider/banner/save');\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'delete':\r\n\t\t\t\treturn Mage::getSingleton('admin/session')->isAllowed('slider/banner/delete');\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\treturn Mage::getSingleton('admin/session')->isAllowed('slider/banner');\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}",
"public static function has_cap() {\n\t\treturn current_user_can( 'edit_posts' );\n\t}"
] | [
"0.66555774",
"0.6545183",
"0.6515971",
"0.65117496",
"0.65113586",
"0.6486019",
"0.6483363",
"0.64424896",
"0.6405456",
"0.6383947",
"0.63810307",
"0.6371766",
"0.63556427",
"0.63032097",
"0.625566",
"0.6249414",
"0.62425905",
"0.62306917",
"0.6217306",
"0.62148",
"0.62104034",
"0.6205051",
"0.6197394",
"0.61892253",
"0.61892253",
"0.6180979",
"0.61759853",
"0.6161246",
"0.61397916",
"0.61377335"
] | 0.7887694 | 0 |
Wait for any postinstall jobs to have actually completed. | private static function _waitForCompleteInstallation()
{
$post_installing = \pm_Settings::get('installing', null) == "true";
// Useless. Join the query below.
/*
$module = new \pm_Extension("seafile");
$module_id = $module->getId();
*/
$db = \pm_Bootstrap::getDbAdapter();
while ($post_installing) {
\pm_Log::debug("Seafile extension is not yet completely installed ...");
sleep(3);
/**
TODO:
Raise with plesk the fact that a \pm_Settings::get('installing') won't update
itself even though it can be shown the underlying data changes.
// Doesn't work:
$post_installing = \pm_Settings::get('installing') == "true";
// Doesn't work:
\pm_Context::reset();
\pm_Context::init("seafile");
$post_installing = \pm_Settings::get('installing') == "true";
// Doesn't work either:
$settings = new \pm_Settings();
$post_installing = $settings->get('installing') == "true";
unset $settings;
// Verify the underlying data with (see output in logs):
\Phlesk::exec(
[
'plesk',
'db',
'-e',
'SELECT value FROM ModuleSettings WHERE name = "installing";'
]
);
*/
$result = $db->query(
sprintf(
"SELECT ms.value FROM ModuleSettings ms
INNER JOIN Modules m ON m.id = ms.module_id
WHERE m.name = '%s' AND
ms.name = 'installing' AND
ms.value = 'false'",
\Phlesk\Context::getModuleId()
)
);
if ($result->rowCount() > 0) {
$post_installing = false;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function iWaitForTheBatchJobToFinish()\n {\n $this->getSession()->wait(180000, 'jQuery(\"#updateprogress\").length === 0');\n }",
"public function waitAll() {\r\n\t\twhile (count($this->jobs) > 0) {\r\n\t\t\t$this->waitFirst();\r\n\t\t}\r\n\t}",
"protected function waitUntilEverythingFinished(): void\n {\n while (count($this->currentJobs)) {\n $this->logger->debug(sprintf(self::LOG_DEBUG_WAITING_JOBS_FINISHED, count($this->currentJobs)));\n $this->removeStoppedJobs();\n\n sleep(self::TIMEOUT_IN_SECONDS);\n }\n }",
"public function testPostInstall()\n {\n $this->markTestIncomplete('@TODO: Write postInstall() tests.Probably hard to test as written.');\n }",
"public function waitTillAllReady() {\n\t\twhile(!$this->isAllReady()) {\n\t\t\tsleep($this->sleepBetweenChecks);\n\t\t}\n\t}",
"public function install_after() { }",
"public function waitTillReady() {\n\t\twhile(!$this->isReady()) {\n\t\t\tsleep($this->sleepBetweenChecks);\n\t\t}\n\t}",
"public static function after_install() {\n\n\t\tif ( ! is_admin() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$already_installed = get_option( '_pum_installed' );\n\n\t\t// Exit if not in admin or the transient doesn't exist\n\t\tif ( false === $already_installed ) {\n\t\t\tdo_action( 'pum_after_install' );\n\n\t\t\tupdate_option( '_pum_installed', true );\n\t\t}\n\t}",
"public function postInstallActions(): void\n {\n }",
"public function waitForAllWorkers() {\n\t\twhile ($this->getBusyWorkers() > 0) {\n\t\t\t$this->collectWorkerResults(self::CHILD_TIMEOUT_SEC);\n\t\t}\n\t}",
"protected function complete() {\n\t\tparent::complete();\n\n\t\t// there maybe more customers to process so wait and then do another batch\n\t\tEvents::schedule_event( time() + 30, 'automatewoo_setup_registered_customers' );\n\t}",
"function setupPostInstall()\n {\n $files = \\Pyrus\\Config::current()->registry->info($this->pkg->name, $this->pkg->channel,\n 'installedfiles');\n foreach ($files as $path => $info) {\n if ($info['name'] == $this->_filename) {\n break;\n }\n }\n Logger::log(0, 'Including external post-installation script \"' . $path .\n '\" - any errors are in this script');\n include $path;\n if (class_exists($this->scriptClass) === false) {\n throw new Exception('init of post-install script class \"' . $this->scriptClass . '\" failed');\n }\n\n Logger::log(0, 'Inclusion succeeded');\n $this->obj = new $this->scriptClass;\n Logger::log(1, 'running post-install script \"' . $this->scriptClass . '->init()\"');\n try {\n $this->obj->init2($this->pkg, $this->lastVersion);\n } catch (\\Exception $e) {\n throw new Exception('init of post-install script \"' . $this->scriptClass .\n '->init()\" failed', $e);\n }\n\n Logger::log(0, 'init succeeded');\n return true;\n }",
"public function pjActionAfterInstall()\n\t{\n\t\t\n\t}",
"public function waitForChildren() {\n while( count($this->children) > 0 ) {\n pcntl_signal_dispatch();\n usleep(1000);\n }\n }",
"protected function complete()\n {\n mailchimp_log('product_sync.completed', 'Done with the product queuing');\n\n // add a timestamp for the product sync completion\n $this->setResourceCompleteTime();\n }",
"private function exec_after_completition() {\r\n require_once $this->path_exec_after_completition;\r\n }",
"public function finish()\n\t{\n\t\t$ids = array();\n\t\tforeach ( \\IPS\\Db::i()->select( 'database_id', 'cms_databases' ) as $id )\n\t\t{\n\t\t\t$ids[] = $id;\n\t\t\t\\IPS\\Task::queue( 'core', 'RebuildItemCounts', array( 'class' => 'IPS\\cms\\Records' . $id, 'count' => 0 ), 4, array( 'class' ) );\n\t\t}\n\t}",
"public function wait();",
"public function wait();",
"public function waitForQueue() {\n\t\tglobal $db, $queue, $logger;\n\n\n\t\t// 1.1. Check if current job is ready to be done\n\t\t$job_ready = $queue->isReady($this->queue_ID);\n\t\t$job_status = $queue->info($this->queue_ID)['queue_status'];\n\n\n\t\t// 1.2. Wait for the job availability in queue\n\t\t$interval = 2;\n\t\twhile (!$job_ready && $job_status == \"waiting\") {\n\n\t\t\t$logger->info(\"Waiting $interval second(s) for the queue.\");\n\t\t\tsleep($interval);\n\t\t\t$job_ready = $queue->isReady($this->queue_ID);\n\t\t\t$job_status = $queue->info($this->queue_ID)['queue_status'];\n\n\t\t}\n\n\t\treturn true;\n\t}",
"public function wait(): void\n {\n usleep($this->calcWaitTime());\n }",
"public function wait()\n {\n $siginfo = [];\n $signal = pcntl_sigtimedwait(\n array_keys($this->handlers),\n $siginfo,\n 0,\n pow(10, 9) * 0.01\n );\n\n $this->handle($signal);\n }",
"function install_success()\n{\n check_db_connection();\n\n return check_success_install();\n}",
"protected function complete() {\n\t\tparent::complete();\n\n\t\t$this->log( 'Completed swedbank-pay queue job.' );\n\t}",
"public function finalize() {\n $this->log('== Finalizing the exporter job ==');\n $this->set_timestamp_last();\n $this->job_success('Done!');\n }",
"public function afterDeliver() {\n // Finish the job in database\n $this->projectAPI()->markJobAsFinished($this->getProjectJob()->id, true, $this->isPaymentAllowed());\n \n parent::afterDeliver();\n }",
"protected function complete() {\n\t\t\tparent::complete();\n\t\t\tif ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {\n\t\t\t\terror_log( 'Process Complete' );//phpcs:ignore\n\t\t\t}\n\t\t}",
"function mymcshop_install_finished(&$install_state) {\n drupal_set_title(st('@drupal installation complete', array('@drupal' => drupal_install_profile_distribution_name())), PASS_THROUGH);\n $messages = drupal_set_message();\n\n // Remember the profile which was used.\n variable_set('install_profile', drupal_get_profile());\n variable_set('install_task', 'done');\n\n // Flush all caches to ensure that any full bootstraps during the installer\n // do not leave stale cached data, and that any content types or other items\n // registered by the install profile are registered correctly.\n drupal_flush_all_caches();\n\n // Install profiles are always loaded last\n db_update('system')\n ->fields(array('weight' => 1000))\n ->condition('type', 'module')\n ->condition('name', drupal_get_profile())\n ->execute();\n\n // Cache a fully-built schema.\n drupal_get_schema(NULL, TRUE);\n\n // Run cron to populate update status tables (if available) so that users\n // will be warned if they've installed an out of date Drupal version.\n // Will also trigger indexing of profile-supplied content or feeds.\n drupal_cron_run();\n\n if (isset($messages['error'])) {\n $output = '<p>' . (isset($messages['error']) ? st('Review the messages above before visiting <a href=\"@url\">your new site</a>.', array('@url' => url(''))) : st('<a href=\"@url\">Visit your new site</a>.', array('@url' => url('')))) . '</p>';\n return $output;\n }\n else {\n // Since any module can add a drupal_set_message, this can bug the user\n // when we redirect him to the front page. For a better user experience,\n // remove all the message that are only \"notifications\" message.\n drupal_get_messages('status', TRUE);\n drupal_get_messages('completed', TRUE);\n // Migrate adds its messages under the wrong type, see #1659150.\n drupal_get_messages('ok', TRUE);\n\n // If we don't install drupal using Drush, redirect the user to the front\n // page.\n if (!drupal_is_cli()) {\n if (module_exists('overlay')) {\n // Special case when no clean urls.\n $fragment = empty($GLOBALS['conf']['clean_url']) ? urlencode('?q=admin/') : 'admin/';\n drupal_goto('', array('fragment' => 'overlay=' . $fragment));\n }\n else {\n drupal_goto('admin/');\n }\n }\n }\n}",
"public function post_dep_test () {\n try {\n // @todo: check for ftp_secure and pthreads (optional)\n $dependencies = \\Gf\\Misc::dependenciesCheck();\n $r = [\n 'status' => true,\n 'data' => [\n 'php' => $dependencies['php'],\n 'git' => $dependencies['git'],\n 'os' => $dependencies['os'],\n 'allOk' => $dependencies['ok'],\n ],\n ];\n } catch (\\Exception $e) {\n $r = [\n 'status' => false,\n 'reason' => $e->getMessage(),\n ];\n }\n $this->response($r);\n }",
"public function finish()\n\t{\n\t\t$database = $this->app->getLink( 1, 'cms_databases' );\n\t\t\\IPS\\Task::queue( 'core', 'RebuildContainerCounts', array( 'class' => 'IPS\\cms\\Categories' . $database, 'count' => 0 ), 5, array( 'class' ) );\n\t\t\\IPS\\Task::queue( 'convert', 'RebuildContent', array( 'app' => $this->app->app_id, 'link' => 'cms_custom_database_' . $database, 'class' => 'IPS\\cms\\Records' . $database ), 2, array( 'app', 'link', 'class' ) );\n\n\t\treturn array( \"f_recount_cms_categories\", \"f_rebuild_cms_tags\" );\n\t}"
] | [
"0.65693045",
"0.65327346",
"0.6532335",
"0.64991844",
"0.6314871",
"0.6053932",
"0.59994423",
"0.5963051",
"0.59217846",
"0.58362955",
"0.5816752",
"0.5811426",
"0.56521094",
"0.5641561",
"0.5635527",
"0.56257224",
"0.5603161",
"0.5522869",
"0.5522869",
"0.54853135",
"0.54464155",
"0.53123087",
"0.5309673",
"0.5262948",
"0.52400506",
"0.5236312",
"0.52344626",
"0.52240765",
"0.5210135",
"0.51984507"
] | 0.6758623 | 0 |
Count expense voucher by month | private function _totalVouchers()
{
$total = [];
for ($i = 1; $i < 13; $i++) {
$total[$i] = Expense::whereYear('created_at', Date('Y'))
->whereMonth('created_at', (string) $i)
->count('id');
}
return implode(', ', $total);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function select_count_by_current_month(){\n return DB::table('tb_purchase_requisition')\n ->whereRaw('month(datetime) = month(now()) and year(datetime) = year(now())', [])\n //->where('month(datetime)', 'month(now())')\n //->where('year(datetime)', 'year(now())')\n ->count();\n\t}",
"public function ventasultimos_12meses(){\n\t\t$sql=\"SELECT DATE_FORMAT(fecha_hora,'%M')AS fecha,\n\t\tSUM(total_venta) AS total\n\t\tFROM venta GROUP BY MONTH(fecha_hora) ORDER BY fecha_hora DESC LIMIT 0,12\";\n\t\treturn ejecutarConsulta($sql);\n\t}",
"public function ventasTotalesPorMes(){\n\t\t$this->query = \"SELECT MONTH(fecha_alta) mes, COUNT(*) cantidad\n\t\t\t\t\t\tFROM pedido\n\t\t\t\t\t\tGROUP BY MONTH(fecha_alta)\";\n\t\t$resultado = $this->get_query();\n\t\treturn $resultado;\n\t}",
"function rptcountincidentsmonthly() {\r\n\r\n\t\treturn ($this->query('SELECT\r\n\t\t\t\t\t\t\t\t\tCOUNT(*) AS NumberIncidents,\r\n\t\t\t\t\t\t\t\t\tCASE\r\n\t\t\t\t\t\t\t\t\t\tWHEN MONTH(created) = 1 THEN \"January\"\r\n\t\t\t\t\t\t\t\t\t\tWHEN MONTH(created) = 2 THEN \"February\"\r\n\t\t\t\t\t\t\t\t\t\tWHEN MONTH(created) = 3 THEN \"March\"\r\n\t\t\t\t\t\t\t\t\t\tWHEN MONTH(created) = 4 THEN \"April\"\r\n\t\t\t\t\t\t\t\t\t\tWHEN MONTH(created) = 5 THEN \"May\"\r\n\t\t\t\t\t\t\t\t\t\tWHEN MONTH(created) = 6 THEN \"June\"\r\n\t\t\t\t\t\t\t\t\t\tWHEN MONTH(created) = 7 THEN \"July\"\r\n\t\t\t\t\t\t\t\t\t\tWHEN MONTH(created) = 8 THEN \"August\"\r\n\t\t\t\t\t\t\t\t\t\tWHEN MONTH(created) = 9 THEN \"September\"\r\n\t\t\t\t\t\t\t\t\t\tWHEN MONTH(created) = 10 THEN \"October\"\r\n\t\t\t\t\t\t\t\t\t\tWHEN MONTH(created) = 11 THEN \"November\"\r\n\t\t\t\t\t\t\t\t\t\tWHEN MONTH(created) = 12 THEN \"December\"\r\n\t\t\t\t\t\t\t\t\t\tELSE \"Unknown\"\r\n\t\t\t\t\t\t\t\t\tEND AS MONTH,\r\n\t\t\t\t\t\t\t\t\tYEAR(created) AS YEAR\r\n\t\t\t\t\t\t\t FROM incidents\r\n\t\t\t\t\t\t\t GROUP BY YEAR(created), MONTH(created);'));\r\n\r\n\t}",
"public function expensesOfCompanyGroupedByDate(Expense $expense, $month) {\n \n $group_payments = DB::raw('(select sum(amount) as expense_amount, DATE(updated_at) as report_date from employee_payments where MONTH(updated_at) = \"'.$month.'\" group by DATE(updated_at)) a');\n \n $group_expenses = DB::raw('(select sum(amount) as expense_amount, DATE(date_of_expense) as report_date from expenses where MONTH(date_of_expense) = \"'.$month.'\" group by DATE(date_of_expense)) b');\n \n $first = DB::table($group_payments)->select(DB::raw('DAY(a.report_date) as report_date'), 'a.expense_amount as totalamount')\n ->leftjoin($group_expenses, 'b.report_date', '=', 'a.report_date')\n ->whereNull('b.report_date');\n \n $incomes = DB::table($group_expenses)->select(DB::raw('DAY(b.report_date) as report_date'), DB::raw('b.expense_amount + ifnull((select sum(employee_payments.amount) from employee_payments where DATE(employee_payments.updated_at) = DATE(b.report_date)),0) as totalamount'))\n ->union($first)\n ->orderBy('report_date', 'asc')\n ->get();\n \n return json_decode(json_encode($incomes), true);\n }",
"public function getIncomeByMonth()\n {\n $query = new Query('SELECT MONTH(invoice_date) AS m, invoice_id FROM invoices WHERE invoice_delete = 0 AND YEAR(invoice_date) = :y', [':y' => date('Y')]);\n $query = $this->getMysql()->executeQuery($query);\n if (!$query->isSuccess()) {\n $result = [];\n for ($i = 1; $i <= 12; $i++) {\n $result[$i] = 0;\n }\n return $result;\n }\n $result = [];\n foreach ($query->getResultSet() as $row) {\n $result[$row['m']][] = $row['invoice_id'];\n }\n for ($i = 1; $i <= 12; $i++) {\n if (!isset($result[$i])) {\n $result['total'][$i] = 0;\n $result['total-tax'][$i] = 0;\n }\n else {\n $total = 0;\n $totalTax = 0;\n foreach ($result[$i] as $id) {\n $invoice = $this->getById($id);\n $total += $invoice->quote->getSubTotal();\n $totalTax += $invoice->quote->getTotalWithTax();\n }\n $result['total'][$i] = intval($total);\n $result['total-tax'][$i] = intval($totalTax);\n }\n }\n return $result;\n }",
"private function _expenseAmonut()\n {\n $amount = [];\n for ($month = 1; $month < 13; $month++) {\n $amount[$month] = $this->intoKillo(\n Expense::whereYear('created_at', Date('Y'))\n ->whereMonth('created_at', (string) $month)\n ->sum('amount')\n );\n }\n return implode(', ', $amount);\n }",
"function getViewsMonthlyStatistic($userId, $year){\n return DB::table('posts')\n ->join('post_views', 'post_views.post_id', '=', 'posts.id')\n ->where('posts.author_id', $userId, true)\n ->whereYear('post_views.created_at', $year)\n ->select(DB::raw('count(post_views.id) as `data`'), DB::raw( 'MONTH(post_views.created_at) month'))\n ->groupby('month')\n ->orderBy('month')\n ->get();\n }",
"public function getByMonth()\n {\n $query = new Query('SELECT MONTH(invoice_date) AS m, COUNT(invoice_id) AS c FROM invoices WHERE invoice_delete = 0 AND YEAR(invoice_date) = :y GROUP BY MONTH(invoice_date)', [':y' => date('Y')]);\n $query = $this->getMysql()->executeQuery($query);\n if (!$query->isSuccess()) {\n $result = [];\n for ($i = 1; $i <= 12; $i++) {\n $result[$i] = 0;\n }\n return $result;\n }\n $result = [];\n foreach ($query->getResultSet() as $row) {\n $result[$row['m']] = $row['c'];\n }\n for ($i = 1; $i <= 12; $i++) {\n if (!isset($result[$i]))\n $result[$i] = 0;\n }\n return $result;\n }",
"public function countthismonth()\n\t{\n\t\t$month = date(\"m\");\n\t\t$this->db->select('COUNT(*) AS total');\n\t\t$this->db->from('bukutamu');\n\t\t$this->db->where('month(date_created)', $month);\n\t\t$query = $this->db->get();\n\t\treturn $query->row();\n\t}",
"private function _count_active_user_month($today) {\n $month = date('m', strtotime($today->copy()));\n $year = date('Y', strtotime($today->copy()));\n if ($month && $year) {\n $arrWhere = [\n 'month' => $month,\n 'year' => $year\n ];\n // DB::connection('mongodb')->enableQueryLog();\n $count = Statistic_by_month::where($arrWhere)->first();\n // dd(DB::connection('mongodb')->getQueryLog());\n if ($count) {\n return $count->num_of_user;\n }\n return 0;\n }\n return 0;\n }",
"public function monthly(): self;",
"public static function getNewEmployeesCountByMonths($company_id){\n $zamestnanci = DB::table('table_employees')\n ->selectRaw('COUNT(*) as count_employees')\n ->where('employee_company', $company_id)\n ->whereYear('created_at', Carbon::now()->year)\n ->groupByRaw('MONTH(created_at)')\n ->get();\n $mesice_zamestnanci = DB::table('table_employees')\n ->selectRaw('MONTH(created_at) as month_employees')\n ->where('employee_company', $company_id)\n ->whereYear('created_at', Carbon::now()->year)\n ->groupByRaw('MONTH(created_at)')\n ->get();\n $statistikaZamestnanci = array(0,0,0,0,0,0,0,0,0,0,0,0);\n for ($i = 0; $i < sizeof($mesice_zamestnanci); $i++){\n $statistikaZamestnanci[$mesice_zamestnanci[$i]->month_employees - 1] = $zamestnanci[$i]->count_employees;\n }\n return $statistikaZamestnanci;\n }",
"public function index()\n {\n\n\n// $client = Client::select('clientId')->get();\n// $count = 0;\n// for ($i =1 ; $i<13 ; $i++) {\n//\n// // $bill = Bill::get();\n//\n//\n// foreach ($client as $c){\n// $bill = Bill::where(DB::raw('month(billdate)'), $i)\n// ->where('fkclientId', $c->clientId)->first();\n// if( !$bill){\n// $count = $count+ 1;\n// }\n// }\n// }\n//\n// return $count;\n\n// $client = Client::select('clientId')->get();\n// $count = 0;\n// $bill = Bill::get();\n// for ($i =1 ; $i<13 ; $i++) {\n//\n// // $bill = Bill::get();\n//\n//\n// foreach ($client as $c){\n// foreach ($bill as $b){\n// $month = date('m', strtotime($b->billdate));\n// if (!($month == $i && $c->clientId == $b->fkclientId)){\n// $count = $count+1;\n// }\n// }\n// }\n// }\n//\n// return $count;\n\n $totalOFLastMonthDebit=Report::where('report.status',ACCOUNT_STATUS['Debit'])->whereMonth('report.date', ((Carbon::now()->subMonth())->month))->sum('report.price');\n $totalOFLastMonthDebit=number_format($totalOFLastMonthDebit,2);\n\n $totalOFLastMonthCredit=Report::where('report.status',ACCOUNT_STATUS['Credit'])->whereMonth('report.date', ((Carbon::now()->subMonth())->month))->sum('report.price');\n $totalOFLastMonthCredit=number_format($totalOFLastMonthCredit,2);\n\n return view('index',compact('totalOFLastMonthCredit','totalOFLastMonthDebit'));\n }",
"public function getTrasnactionDoneInMonth() {\n $results = array();\n $start_time = strtotime(\"2015-12-01 00:00:01\");\n $end_time = strtotime(\"2015-12-31 23:59:59\");\n $qb = $this->createQueryBuilder('q');\n $qb->select(' q.buyerId , SUM(q.initPrice) as total_month ')\n ->andWhere(\" q.status = :status and q.timeClose BETWEEN :start_time AND :end_time \") \n ->having(' total_month >= 28000 ') \n ->groupBy(\" q.buyerId \")\n ->setParameter('status', self::$TRANSACTION_COMPLETE_SUCCESFULY)\n ->setParameter('start_time', $start_time)\n ->setParameter('end_time', $end_time); \n $results = $qb->getQuery()->getArrayResult();\n \n return $results;\n }",
"public function accidentStatisticalByMonthAction(){\n $accidentLogic = new AccidentLogic($this->get('aws.dynamodb'));\n $common = new Common();\n $formatResponse = new FormatResponse();\n $valid = new UserValidateHelper();\n $month = date('Y/m');\n if(!$valid->validationMonth($month)){\n $view = View::create();\n $view->setData($formatResponse->createResponseRegister($common->RESULT_CODE_FAIL, $common->STATISTICAL_BY_MONTH_ERROR_REQUEST))->setStatusCode(200)->setHeader('Access-Control-Allow-Origin','*');\n }\n $response = $accidentLogic->AccidentStatistical($month);\n $view = View::create();\n $view->setData($formatResponse->getResultStatistical($common->RESULT_CODE_SUCCESS, $common->STATISTICAL_BY_MONTH_SUCCESSFULLY, $response))->setStatusCode(200)->setHeader('Access-Control-Allow-Origin','*');\n return $view;\n }",
"private function _count_job_a_month($month) {\n $fstDayOfMonth =$month->copy()->startOfMonth();\n $lstDayOfMonth = $month->copy()->endOfMonth();\n if ($month) {\n $arrWhere = [\n 'status' => 1,\n 'created_at' => [\n '$gte' => $fstDayOfMonth,\n '$lte' => $lstDayOfMonth\n ],\n ];\n $count = Job::where($arrWhere)->count();\n return $count;\n }\n return 0;\n }",
"public function getMonthTransactionAmount(){\n $transactions = Transaction::where('subscriber_id','=',auth()->id())->where('created_at', '>=', Carbon::now()->startOfMonth())->get();\n $total_amount = 0;\n foreach($transactions as $transaction){\n $total_amount += $transaction['amount'];\n }\n return $total_amount;\n }",
"public function monthlyChart()\n {\n $user = Auth::user();\n $data = Expense::select(\n DB::raw('expense_category as category'),\n DB::raw('sum(expense_amount) as number'))\n ->where('user_id', $user->id)\n ->where('expense_date','>', now()->subMonth())\n ->groupBy('category')\n ->get();\n\n // dd($data);\n \n $array[] = ['Category', 'Number'];\n\n foreach($data as $key => $value)\n {\n $array[++$key] = [$value->category, $value->number];\n }\n\n return view('lastMonth')->with('category', json_encode($array));\n }",
"private function _count_user_register_a_month($month) {\n $fstDayOfMonth = $month->copy()->startOfMonth();\n $lstDayOfMonth = $month->copy()->endOfMonth();\n if ($month) {\n $arrWhere = [\n 'deleted' => false,\n 'created_at' => [\n '$gte' => $fstDayOfMonth,\n '$lte' => $lstDayOfMonth\n ],\n ];\n // DB::connection('mongodb' )->enableQueryLog();\n $count = User::where($arrWhere)->count();\n // dd(DB::connection('mongodb')->getQueryLog());\n return $count;\n }\n return 0;\n }",
"public function monthlyRecurringRevenue();",
"public function monthly_sales_report()\n\t{\n\t\t$query1 = $this->db->query(\"\n\t\t\tSELECT \n\t\t\t\tdate,\n\t\t\t\tEXTRACT(MONTH FROM STR_TO_DATE(date,'%Y-%m-%d')) as month, \n\t\t\t\tCOUNT(invoice_id) as total\n\t\t\tFROM \n\t\t\t\tinvoice\n\t\t\tWHERE \n\t\t\t\tEXTRACT(YEAR FROM STR_TO_DATE(date,'%Y-%m-%d')) >= EXTRACT(YEAR FROM NOW())\n\t\t\tGROUP BY \n\t\t\t\tEXTRACT(YEAR_MONTH FROM STR_TO_DATE(date,'%Y-%m-%d'))\n\t\t\tORDER BY\n\t\t\t\tmonth ASC\n\t\t\")->result();\n\n\t\t$query2 = $this->db->query(\"\n\t\t\tSELECT \n\t\t\t\tpurchase_date,\n\t\t\t\tEXTRACT(MONTH FROM STR_TO_DATE(purchase_date,'%Y-%m-%d')) as month, \n\t\t\t\tCOUNT(purchase_id) as total_month\n\t\t\tFROM \n\t\t\t\tproduct_purchase\n\t\t\tWHERE \n\t\t\t\tEXTRACT(YEAR FROM STR_TO_DATE(purchase_date,'%Y-%m-%d')) >= EXTRACT(YEAR FROM NOW())\n\t\t\tGROUP BY \n\t\t\t\tEXTRACT(YEAR_MONTH FROM STR_TO_DATE(purchase_date,'%Y-%m-%d'))\n\t\t\tORDER BY\n\t\t\t\tmonth ASC\n\t\t\")->result();\n//print_r($query1);exit;\n\t\treturn [$query1,$query2];\n\t}",
"function getSpotCountPerMonth($limit) {\n\t\t$filter = ($limit) ? \"WHERE stamp > \" . strtotime(\"-1 \" . $limit) : '';\n\t\treturn $this->_conn->arrayQuery(\"SELECT strftime('%m', time(stamp, 'unixepoch')) AS data, count(*) AS amount FROM spots \" . $filter . \" GROUP BY data;\");\n\t}",
"public function getMonthlyUserCountEvolution()\n {\n $nbUser = array();\n for ($i = 0; $i <= 11; $i++) {\n $date = new \\DateTime('now');\n $date->modify('-' . $i . ' month');\n $query = $this->getEntityManager()\n ->createQuery(\"SELECT COUNT(u) FROM IMRIMLmsBundle:User u WHERE u.creationTime < :creationTime\");\n $query->setParameter('creationTime', $date);\n $nbUser[12 - $i] = array(\n 'nb' => $query->getSingleScalarResult(),\n 'date' => $date->format('m-Y'),\n );\n }\n return $nbUser;\n }",
"public function expensesOfCompanyGroupedByMonth(Expense $expense, $year) {\n \n $group_payments = DB::raw('(select sum(amount) as expense_amount, MONTH(updated_at) as report_month from employee_payments where year(updated_at) = \"'.$year.'\" group by MONTH(updated_at)) a');\n \n $group_expenses = DB::raw('(select sum(amount) as expense_amount, MONTH(date_of_expense) as report_month from expenses where year(date_of_expense) = \"'.$year.'\" group by MONTH(date_of_expense)) b');\n \n $first = DB::table($group_payments)->select(DB::raw('a.report_month as report_month'), 'a.expense_amount as totalamount')\n ->leftjoin($group_expenses, 'b.report_month', '=', 'a.report_month')\n ->whereNull('b.report_month');\n \n $incomes = DB::table($group_expenses)->select(DB::raw('b.report_month as report_month'), DB::raw('b.expense_amount + ifnull((select sum(employee_payments.amount) from employee_payments where MONTH(employee_payments.updated_at) = b.report_month),0) as totalamount'))\n ->union($first)\n ->orderBy('report_month', 'asc')\n ->get();\n \n return json_decode(json_encode($incomes), true);\n }",
"public function getDailyIncomeData($month){\n //nilai awal\n $income_total = 0;\n $unpaid_total = 0;\n //hari pertama dalam bulan yang dipilih\n $first_day = Carbon::parse($month)->firstOfMonth()->format('Y-m-d H:i:s');\n //hari yang dipilih\n $last_day = Carbon::parse($month)->format('Y-m-d H:i:s');\n //range dibuat setiap 1 hari\n foreach(CarbonPeriod::create($first_day, '1 day', $last_day) as $day){\n //set format date untuk pencarian di database\n $number = $day->format('Y-m-d');\n //mengambil data invoice dengan invoice_date sama dengan tanggal bulan yang dilooping\n $invoices = Invoice::where('invoice_date', 'like', '%' . $number . '%')->get();\n //nilai awal\n $income = 0;\n $unpaid = 0;\n //melakukan perhitungan jumlah total_payment untuk invoice date dengan hari yang sama dari status invoice unpaid dan paid\n foreach ($invoices as $invoice) {\n if ($invoice->is_paid == 'unpaid') {\n //untuk invoice unpaid, hasil dimasukkan ke dalam variabel $unpaid\n $unpaid += $invoice->countTotalPayment($invoice);\n }else{\n //jika invoice paid, maka hasil dimasukkan ke variabel income\n $income += $invoice->countTotalPayment($invoice);\n }\n }\n //melakukan penjumlahan seluruh total income pada bulan tersebut\n $income_total += $income;\n //melakukan penjumlahan seluruh total unpaid pada bulan tersebut\n $unpaid_total += $unpaid;\n //merubah format hari menjadi berbentuk seperti '21 Aug', dan dimasukkan ke dalam array\n $days[] = $day->format('d F');\n //memasukkan total income per hari ke dalam array\n $incomes[] = $income;\n //memasukkan total unpaid per hari ke dalam array\n $unpaids[] = $unpaid;\n }\n //set format ke mata uang rupiah\n $income_total = number_format($income_total);\n $unpaid_total = number_format($unpaid_total);\n\n //seluruh data dikumpulkan di dalam array daily_income_data_array\n $daily_income_data_array = array(\n 'days' => $days,\n 'daily_income_count_data' => $incomes,\n 'daily_unpaid_count_data' => $unpaids,\n 'incomes_total_of_month' => $income_total,\n 'unpaid_total_of_month' => $unpaid_total,\n );\n\n\n //generate ke json\n return response()->json($daily_income_data_array);\n }",
"function getCcExpMonth();",
"function getMonthlyRevenue() {\n return Invoice::select(DB::raw('sum(total) as total_amount'), DB::raw('YEAR(created_at) year, MONTH(created_at) month'))\n ->whereYear('created_at', '=', 2018)\n ->groupBy('year', 'month')\n ->get();\n }",
"private function _count_application_a_month($month) {\n $fstDayOfMonth = $month->copy()->startOfMonth();\n $lstDayOfMonth = $month->copy()->endOfMonth();\n if ($month) {\n $arrWhere = [\n 'created_at' => [\n '$gte' => $fstDayOfMonth,\n '$lte' => $lstDayOfMonth\n ],\n ];\n // DB::connection('mongodb' )->enableQueryLog();\n $count = Applications::where($arrWhere)->count();\n // dd(DB::connection('mongodb')->getQueryLog());\n return $count;\n }\n return 0;\n }",
"public function visitor_month()\n {\n $myConfig = $this->getConfig();\n $oDb = oxDb::getDb();\n\n $dTimeTo = strtotime(oxRegistry::getConfig()->getRequestParameter(\"time_to\"));\n $sTimeTo = $oDb->quote(date(\"Y-m-d H:i:s\", $dTimeTo));\n $dTimeFrom = mktime(23, 59, 59, date(\"m\", $dTimeTo) - 12, date(\"d\", $dTimeTo), date(\"Y\", $dTimeTo));\n $sTimeFrom = $oDb->quote(date(\"Y-m-d H:i:s\", $dTimeFrom));\n\n $sSQL = \"select oxtime, count(*) as nrof from oxlogs where oxtime >= {$sTimeFrom} and oxtime <= {$sTimeTo} group by oxsessid\";\n\n $aTemp = array();\n for ($i = 1; $i <= 12; $i++) {\n $aTemp[date(\"m/Y\", mktime(23, 59, 59, date(\"m\", $dTimeFrom) + $i, date(\"d\", $dTimeFrom), date(\"Y\", $dTimeFrom)))] = 0;\n }\n\n $rs = $oDb->execute($sSQL);\n\n if ($rs != false && $rs->recordCount() > 0) {\n while (!$rs->EOF) {\n $aTemp[date(\"m/Y\", strtotime($rs->fields[0]))]++;\n $rs->moveNext();\n }\n }\n\n $aDataX = $aTemp;\n $aDataY = array_keys($aTemp);\n $aDataX2 = $aDataX3 = $aDataX4 = $aDataX5 = $aDataX6 = array_fill_keys($aDataY, 0);\n\n // collects sessions what executed 'order' function\n $sQ = \"select oxtime, oxsessid from `oxlogs` where oxclass = 'order' and oxfnc = 'execute' and oxtime >= $sTimeFrom and oxtime <= $sTimeTo group by oxsessid\";\n $aTempOrder = $this->_collectSessions($sQ);\n\n // collects sessions what executed order class\n $sQ = \"select oxtime, oxsessid from `oxlogs` where oxclass = 'order' and oxtime >= $sTimeFrom and oxtime <= $sTimeTo group by oxsessid\";\n $aTempExecOrdersSessions = $this->_collectOrderSessions($sQ, $aTempOrder, $aDataX6);\n\n // collects sessions what executed payment class\n $sQ = \"select oxtime, oxsessid from `oxlogs` where oxclass = 'payment' and oxtime >= $sTimeFrom and oxtime <= $sTimeTo group by oxsessid\";\n $aTempPaymentSessions = $this->_collectPaymentSessions($sQ, $aTempOrder, $aTempExecOrdersSessions, $aDataX2);\n\n // collects sessions what executed 'user' class\n $sQ = \"select oxtime, oxsessid from `oxlogs` where oxclass = 'user' and oxtime >= $sTimeFrom and oxtime <= $sTimeTo group by oxsessid\";\n $aTempUserSessions = $this->_collectUserSessionsForVisitorMonth($sQ, $aTempOrder, $aTempExecOrdersSessions, $aTempPaymentSessions, $aDataX2);\n\n // collects sessions what executed 'tobasket' function\n $sQ = \"select oxtime, oxsessid from `oxlogs` where oxclass = 'basket' and oxtime >= $sTimeFrom and oxtime <= $sTimeTo group by oxsessid\";\n $this->_collectToBasketSessions($sQ, $aTempOrder, $aTempExecOrdersSessions, $aTempPaymentSessions, $aTempUserSessions, $aDataX4);\n\n // orders made\n $sQ = \"select oxorderdate from oxorder where oxorderdate >= $sTimeFrom and oxorderdate <= $sTimeTo order by oxorderdate\";\n $this->_collectOrdersMade($sQ, $aDataX5);\n\n header(\"Content-type: image/png\");\n\n // New graph with a drop shadow\n $graph = $this->getGraph(800, 600);\n\n // Description\n $graph->xaxis->setTickLabels($aDataY);\n\n // Set title and subtitle\n $graph->title->set(\"Monat\");\n\n // Create the bar plot\n $bplot2 = new BarPlot(array_values($aDataX2));\n $bplot2->setFillColor(\"#9966cc\");\n $bplot2->setLegend(\"Best.Abbr. in Bezahlmethoden\");\n\n // Create the bar plot\n $bplot3 = new BarPlot(array_values($aDataX3));\n $bplot3->setFillColor(\"#ffcc00\");\n $bplot3->setLegend(\"Best.Abbr. in Benutzer\");\n\n // Create the bar plot\n $bplot4 = new BarPlot(array_values($aDataX4));\n $bplot4->setFillColor(\"#6699ff\");\n $bplot4->setLegend(\"Best.Abbr. in Warenkorb\");\n\n // Create the bar plot\n $bplot6 = new BarPlot(array_values($aDataX6));\n $bplot6->setFillColor(\"#ff0099\");\n $bplot6->setLegend(\"Best.Abbr. in Bestellbestaetigung\");\n\n // Create the bar plot\n $bplot5 = new BarPlot(array_values($aDataX5));\n $bplot5->setFillColor(\"silver\");\n $bplot5->setLegend(\"Bestellungen\");\n\n // Create the grouped bar plot\n $gbplot = new groupBarPlot(array($bplot4, $bplot3, $bplot2, $bplot6, $bplot5));\n $graph->add($gbplot);\n\n // Finally output the image\n $graph->stroke();\n }"
] | [
"0.6403163",
"0.6399989",
"0.63995993",
"0.637199",
"0.6331981",
"0.6192712",
"0.6148498",
"0.60654813",
"0.60599655",
"0.6056848",
"0.6042592",
"0.60194653",
"0.6013675",
"0.6008763",
"0.598008",
"0.59778994",
"0.5963899",
"0.59614354",
"0.59384024",
"0.5928596",
"0.592427",
"0.5922056",
"0.59122413",
"0.5908399",
"0.58917975",
"0.58712786",
"0.58700293",
"0.58664984",
"0.58568186",
"0.58100176"
] | 0.66484636 | 0 |
/ View the admin manage currency page with the current currency value | public function currency()
{
$currency = Content::where('key', 'currency')->get();
return view('admin.currency', [
'currency' => doubleval($currency->first()->value)
]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function show(Currency $currency)\n {\n \n }",
"public function currency($data= []) {\n return view('standart.default.currency-switch-button'); \n }",
"public function index()\n {\n $data =DB::table('currency')->get();\n return view('pages.admin.currency.index',compact('data'));\n }",
"public function show(Currency $currency)\n {\n //\n }",
"public function show(Currency $currency)\n {\n //\n }",
"public function getCurrency()\n {\n /*\n * Set your static or dynamic currency\n */\n\n return 'USD';\n }",
"public function index()\n {\n return view('admin.currency.index');\n }",
"public function indexAction(){\r\n global $adminpath, $cfg, $L, $sys, $a;\r\n \r\n $adminpath[] = ' '.$L['shop']['currency'];\r\n //$adminhelp = $L['adm_help_page'];\r\n \r\n $so = cot_import('so', 'G', 'ALP'); // order field name without 'page_'\r\n $w = cot_import('w', 'G', 'ALP', 4); // order way (asc, desc)\r\n //$fil = cot_import('fil', 'G', 'ARR'); // filters\r\n \r\n $maxrowsperpage = $cfg['maxrowsperpage'];\r\n list($pg, $d, $durl) = cot_import_pagenav('d', $maxrowsperpage); //page number for pages list\r\n\r\n $list_url_path = array('m' => 'shop', 'n' => 'currency');\r\n if(empty($so)){\r\n $so = 'curr_title';\r\n }else{\r\n $list_url_path['so'] = $so;\r\n }\r\n if(empty($w)){\r\n $w = 'ASC';\r\n }else{\r\n $list_url_path['w'] = $w;\r\n }\r\n $vendorId = Vendor::getLoggedVendorId();\r\n $cond = \"vendor_id={$vendorId} OR curr_shared=1\";\r\n /** @var Currency[] $list */\r\n $list = Currency::find($cond, $maxrowsperpage, $d, $so, $w);\r\n if(!$list) $list = array();\r\n $totallines = Currency::count($cond);\r\n\r\n $pagenav = cot_pagenav('admin', $list_url_path, $d, $totallines, $maxrowsperpage);\r\n\r\n if($a == 'delete'){\r\n $urlArr = $list_url_path;\r\n if($pagenav['current'] > 0) $urlArr['d'] = $pagenav['current'];\r\n $id = cot_import('id', 'G', 'INT');\r\n cot_check_xg();\r\n /** @var Coupon $coupon */\r\n $item = Currency::getById($id);\r\n if (!$item){\r\n cot_error($L['No_items'].\" id# \".$id);\r\n cot_redirect(cot_url('admin', $urlArr, '', true));\r\n }\r\n $item->delete();\r\n cot_message($L['alreadydeletednewentry'].\" # $id - {$item->curr_title}\");\r\n cot_redirect(cot_url('admin', $urlArr, '', true));\r\n }\r\n\r\n $tpl = new XTemplate(cot_tplfile('shop.admin.currency'));\r\n $i = $d+1;\r\n foreach ($list as $item){\r\n $tpl->assign(Currency::generateTags($item, 'LIST_ROW_', 'admin'));\r\n $delUrlArr = $list_url_path;\r\n $delUrlArr['a'] = 'delete';\r\n $delUrlArr['id'] = $item->curr_id;\r\n if($pagenav['current'] > 0) $delUrlArr['d'] = $pagenav['current'];\r\n $delUrlArr['x'] = $sys['xk'];\r\n\r\n $tpl->assign(array(\r\n 'LIST_ROW_NUM' => $i,\r\n 'LIST_ROW_DELETE_URL' => cot_confirm_url(cot_url('admin', $delUrlArr), 'admin'),\r\n ));\r\n $i++;\r\n $tpl->parse('MAIN.LIST_ROW');\r\n }\r\n\r\n $tpl->assign(array(\r\n 'LIST_PAGINATION' => $pagenav['main'],\r\n 'LIST_PAGEPREV' => $pagenav['prev'],\r\n 'LIST_PAGENEXT' => $pagenav['next'],\r\n 'LIST_CURRENTPAGE' => $pagenav['current'],\r\n 'LIST_TOTALLINES' => $totallines,\r\n 'LIST_MAXPERPAGE' => $maxrowsperpage,\r\n 'LIST_TOTALPAGES' => $pagenav['total'],\r\n 'LIST_ITEMS_ON_PAGE' => $pagenav['onpage'],\r\n 'LIST_URL' => cot_url('admin', $list_url_path, '', true),\r\n 'PAGE_TITLE' => $L['shop']['currency'],\r\n\r\n ));\r\n $tpl->parse('MAIN');\r\n return $tpl->text();\r\n\r\n\t}",
"function get_admin_base_currency()\r\n\t{\r\n\t\treturn $this->cache[$this->set_admin_base_currency()];\r\n\t}",
"public function index()\n {\n return view('admin.currency.index');\n }",
"function GetActiveCurrency(){\n\t\n\t}",
"public function index()\n {\n $model = new Currency();\n $form = $this->getForm();\n $currencies = Currency::where('status','<=',1)->get();\n $user = auth()->user();//We need the current user's id for the generated_by field\n\n return view('admin.currencies.index',compact('form','user','currencies'));\n }",
"public function getCurrency();",
"public function getCurrency();",
"public function getCurrency();",
"public function getCurrency();",
"public function getCurrency();",
"private function ProductCurrency() {\n\t\t$csvilog = JRequest::getVar('csvilog');\n\t\t$csvilog->AddMessage('debug', JText::_('DEBUG_PRODUCT_CURRENCY'));\n\t\tif (!isset($this->product_currency)) {\n\t\t\t$db = JFactory::getDBO();\n\t\t\t$q = \"SELECT vendor_currency FROM #__vm_vendor WHERE vendor_id='\".$this->vendor_id.\"' \";\n\t\t\t$db->setQuery($q);\n\t\t\t$this->product_currency = $db->loadResult();\n\t\t\t$csvilog->AddMessage('debug', JText::_('DEBUG_PRODUCT_CURRENCY'), true);\n\t\t}\n\t}",
"public function getCurrency(){\n return $this->currency;\n }",
"public function index()\n {\n $datas = Currency::all();\n return view('dashboard.admin.currency.index',compact('datas'));\n }",
"private function changeCurrentCurrency() {\n if(!empty($_POST['currency_id'])) return $this->setCurrent(intval($_POST['currency_id']));\n return false;\n }",
"public static function get_currency():string { return self::$currency; }",
"public function getCurrency(){\n return $this->_currency;\n }",
"public function index()\n {\n $data['currencyinfo']=Currency::all();\n return view('controls/currency')->with($data);\n }",
"public function getCurrency()\n {\n return $this->getParameter('currency');\n }",
"public static function setCurrency(){\n if(!Sys::get('config')->db_auto_connect)\n return false;\n\n $db = Db::getInstance();\n\n if(!empty($_REQUEST['currency'])){\n $moneda = $db->fetch(\"SELECT * FROM currency WHERE currency_code = '\".$db->escape($_REQUEST['currency']).\"' AND active = 1\");\n if($moneda->num_rows <= 0)\n return;\n if(ThisUser::isLogged()){\n $User = Usuario::find(ThisUser::get(\"id_user\"));\n $User->currency = $_REQUEST['currency'];\n $User->save();\n }\n $_SESSION['currency'] = $_REQUEST['currency']; \n }else{\n if(!empty($_SESSION['currency']))\n return;\n if(ThisUser::isLogged() && ThisUser::get(\"currency\") != \"\"){\n if(ThisUser::get(\"currency\") != \"\")\n $_SESSION['currency'] = ThisUser::get(\"currency\");\n }else{\n $geo = $db->fetch(\"SELECT m.* FROM geolocation INNER JOIN currency m USING(iso_3166_2) WHERE ('\".$db->escape(ip2long($_SERVER['REMOTE_ADDR'])).\"' BETWEEN ip_start AND ip_end) AND m.active = 1\");\n if($geo->num_rows > 0){\n $_SESSION['currency'] = $geo->row['currency_code'];\n }\n }\n }\n }",
"public function ajax_get_currency() {\n\t\tcheck_ajax_referer( 'multi_currency_nonce', 'nonce' );\n\t\tif ( $this->is_currency_compatible( $this->get_selected_currency() ) ) {\n\t\t\t$currency = $this->get_selected_currency();\n\t\t} else {\n\t\t\t$currency = wcpbc_get_base_currency();\n\t\t}\n\t\techo $currency;\n\t\twp_die();\n\t}",
"public function show($id)\n {\n $result = Currency::find($id);\n\n\n return view('dashboard.admin.currency.show', [\n 'data' => $result\n ]);\n }",
"public function index()\n {\n return view('admin::settings.currencies.list', [\n 'currencies' => Currency::all()\n ]);\n }",
"public function getCurrencyInfo();"
] | [
"0.6887836",
"0.6812566",
"0.6780978",
"0.6755489",
"0.6755489",
"0.6735064",
"0.66737515",
"0.6654483",
"0.66411674",
"0.6586125",
"0.653998",
"0.6538032",
"0.6523702",
"0.6523702",
"0.6523702",
"0.6523702",
"0.6523702",
"0.6486511",
"0.64613885",
"0.6419369",
"0.63422596",
"0.632251",
"0.6319219",
"0.63026565",
"0.6275933",
"0.62722903",
"0.62555665",
"0.62542826",
"0.6253548",
"0.6235602"
] | 0.7493758 | 0 |
create and return quoteid to be associated with every quote generated. | public function creatQuoteID($name){
//get 2digit if current year
$yearHold = date("y");
$dayCount = date("z");
$dayCount = (string)$dayCount;
$dayOfYearHold="";
if(strlen($dayCount) < 2){
$dayOfYearHold = "00".$dayCount;
}
$hourHold = (string)(mt_rand(1, 100) + 1);
if(strlen($hourHold) < 2){
$hourHold = "0".$hourHold;
}
$minuteHold = (string)(mt_rand(1, 100) + 1);
if(strlen($minuteHold) < 2){
$minuteHold = "0".$minuteHold;
}
$secondHold = (string)(mt_rand(1, 100) + 1);
if(strlen($secondHold) < 2){
$secondHold = "0".$secondHold;
}
$firstFourChar = substr($name, 0, 3);
$quoteIdHold = $firstFourChar . $yearHold . $dayOfYearHold . $hourHold . $minuteHold . $secondHold;
return $quoteIdHold;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getQuoteId();",
"function createQuote($text, $author) {\n $dbConn = getDatabaseConnection(); \n\n $sql = \"INSERT INTO `q_quotes` (`quoteid`, `quote`, `author`) VALUES (NULL, '$text', '$author')\"; \n \n $statement = $dbConn->prepare($sql); \n $result = $statement->execute(); \n \n if (!$result) {\n return null; \n }\n \n $last_id = $dbConn->lastInsertId();\n\n \n // fetch the newly created object from database\n \n $sql = \"SELECT * from q_quotes WHERE id = $last_id\"; \n $statement = $dbConn->prepare($sql); \n \n $statement->execute(); \n $records = $statement->fetchAll(); \n $newQuote = $records[0]; \n \n return $newQuote; \n \n}",
"public static function generateNewQuote() {\n $sources = [];\n $sources[] = [\n 'url' => 'http://api.forismatic.com/api/1.0/?method=getQuote&key=457653&format=json&lang=en',\n 'content' => 'quoteText',\n 'author' => 'quoteAuthor',\n 'original_url' => 'quoteLink',\n 'container' => false\n ];\n $sources[] = [\n 'url' => 'http://quotesondesign.com/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1',\n 'content' => 'content',\n 'author' => 'title',\n 'original_url' => 'link',\n 'container' => 'array'\n ];\n shuffle($sources);\n\n $source = $sources[0];\n\n $ch = curl_init($source['url']);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 1);\n curl_setopt($ch, CURLOPT_TIMEOUT, 3);\n curl_setopt($ch, CURLOPT_HTTPHEADER, [\n 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.59 Safari/537.36'\n ]);\n $data = curl_exec($ch);\n\n $content = false;\n $author = false;\n $url = false;\n\n if($data) {\n $data = @json_decode($data, true);\n if($data) {\n if($source['container'] == 'array')\n $data = $data[0];\n if(array_key_exists($source['content'], $data))\n $content = $data[$source['content']];\n if(array_key_exists($source['author'], $data))\n $author = $data[$source['author']];\n if(array_key_exists($source['original_url'], $data))\n $url = $data[$source['original_url']];\n }\n }\n\n if($content && $author && $url) {\n $quote = ORM::for_table('quotes')->where('original_url', $url)->find_one();\n if(!$quote) {\n $quote = ORM::for_table('quotes')->create();\n $quote->author = $author;\n $quote->content = trim(strip_tags($content));\n $quote->original_url = $url;\n $quote->save();\n }\n } else {\n // Getting a new quote failed, so return a cached one\n $quote = ORM::for_table('quotes')->order_by_expr('RAND()')->find_one();\n }\n\n return $quote;\n }",
"function create_customer_sales_quote($main_data, $array_items) {\n $insert = $this->db->insert('sales_quote', $main_data);\n $quoteid = $this->db->insert_id();\n\n\n if ($insert) {\n //insert data\n\n foreach ($array_items as $key => $value) {\n $value['quoteid'] = $quoteid;\n $this->db->insert('sales_quote_item', $value);\n }\n\n return $quoteid;\n }\n\n return FALSE;\n }",
"public function created(Quote $quote)\n {\n //generate and save control_number\n $quote = $quote->fresh();//reload from db to get autoincrement number\n if (!$quote) {\n throw new \\RuntimeException('Quote not saved in DB so can not generate control number');\n }\n $quote->control_number = $quote->calculateControlNumber();\n $quote->saveQuietly();\n }",
"public function clone_quote($id)\n {\n $quote=Quote::findOrFail($id);\n \n $new_quote=Quote::create([\n 'user_id' => Auth::user()->id,\n 'correlative' => 0, \n 'job_number' => $quote->job_number,\n 'subject' => $quote->subject.'(copy)',\n 'description' => $quote->description,\n 'client_name' => $quote->client_name,\n 'client_email' => $quote->client_email,\n 'notes' => $quote->notes,\n 'minutes' => $quote->minutes,\n 'managed_by' => $quote->managed_by,\n 'discount_field' => $quote->discount_field,\n 'unit_field' => $quote->unit_field,\n 'draft' => 1,\n 'status' => 0,\n 'start_date' => $quote->start_date,\n ]);\n\n\n $quote_items=Quote_item::where('quote_id', $id)->get();\n\n foreach ($quote_items as $item) {\n Quote_item::create([\n 'quote_id' => $new_quote->id,\n 'quote_data_id' => $item->quote_data_id,\n 'quote_task_id' => $item->quote_task_id,\n 'quantity' => $item->quantity,\n 'item_subject' => $item->item_subject,\n 'price' => $item->price,\n 'tax' => $item->tax,\n 'discount' => $item->discount,\n 'minutes' => $item->minutes,\n 'base_minutes' => $item->base_minutes,\n 'total' => $item->total,\n 'custom_item' => $item->custom_item,\n 'labor' => $item->labor,\n 'labor_hours' => $item->labor_hours,\n 'material' => $item->material,\n 'sub_contract' => $item->sub_contract,\n 'margin' => $item->margin,\n 'parent_id' => $item->parent_id,\n 'days' => $item->days,\n ]); \n }\n\n \n return redirect('/quote/edit/'.$new_quote->id);\n \n \n }",
"private function populate_quote( $quote ): Quote {\n\t\treturn $this->quote_factory->from_stdclass( $quote );\n\t}",
"public function newQuote($objQuote)\n {\n try {\n $con = $this->objConntion->connect();\n $con->query(\"SET NAMES 'utf8'\");\n if ($con != null) {\n $dataQuote = $objQuote->__getClient_id() . \",'\" . $objQuote->__getQuo_consec()\n . \"','\" . $objQuote->__getQuo_calendar()\n . \"','\" . $objQuote->__getQuo_date()\n . \"','\" . $objQuote->__getQuo_project()\n . \"','\" . $objQuote->__getQuo_year()\n . \"','\" . $objQuote->__getQuo_version()\n . \"','\" . $objQuote->__getQuo_students()\n . \"','\" . $objQuote->__getQuo_quantity()\n . \"','\" . $objQuote->__getQuo_width()\n . \"','\" . $objQuote->__getQuo_height()\n . \"','\" . $objQuote->__getQuo_format()\n . \"','\" . $objQuote->__getQuo_color()\n . \"','\" . $objQuote->__getQuo_colorPaper()\n . \"','\" . $objQuote->__getQuo_colorWeigh()\n . \"','\" . $objQuote->__getQuo_bw()\n . \"','\" . $objQuote->__getQuo_bwPaper()\n . \"','\" . $objQuote->__getQuo_bwWeight()\n . \"','\" . $objQuote->__getQuo_inserts()\n . \"','\" . $objQuote->__getQuo_guards()\n . \"','\" . $objQuote->__getQuo_guardsPape()\n . \"','\" . $objQuote->__getQuo_guardsWeig()\n . \"','\" . $objQuote->__getQuo_cover()\n . \"','\" . $objQuote->__getQuo_coverPaper()\n . \"','\" . $objQuote->__getQuo_coverWeigh()\n . \"','\" . $objQuote->__getQuo_top()\n . \"','\" . $objQuote->__getQuo_coverFinis()\n . \"','\" . $objQuote->__getQuo_plast()\n . \"','\" . $objQuote->__getQuo_correction()\n . \"','\" . $objQuote->__getQuo_issn()\n . \"','\" . $objQuote->__getQuo_observ()\n . \"','\" . $objQuote->__getQuo_delivDate()\n . \"','\" . $objQuote->__getQuo_delivPlace() \n . \"',\" . $objQuote->__getUser_id() \n . \",\" . $objQuote->__getPro_id() \n . \",\" . $objQuote->__getStat_id() \n . \",'\" . $objQuote->__getQuo_pageTotal() \n . \"','\" . $objQuote->__getQuo_inser() \n . \"','\" . $objQuote->__getQuo_inserPaper() \n . \"','\" . $objQuote->__getQuo_inserWeight().\"'\";\n \n if ($con->query(\"CALL sp_quote_insert_upate (\".$dataQuote.\")\")) {\n $this->intValidatio = 1;\n } else {\n $this->intValidatio = 0;\n }\n //$this->intValidatio = $dataQuote;\n\n }\n $con->close();\n } catch (Exception $e) {\n // echo 'Exception captured: ', $e->getMessage(), \"\\n\";\n $this->intValidatio = 0;\n }\n return $this->intValidatio;\n }",
"function getRandomQuote($quotes){\r\n // this function is from php documentation of PHP rand. \r\n $generation = rand(0 , 4);\r\n return $quotes[$generation][\"quote\"];\r\n}",
"function _acecrew_add_quote_job_relate($quote_number, $job_id){\n $query = \"INSERT INTO {acecrew_job_quotes}\n (job_id, quote_id) VALUES\n ('%d','%d')\";\n $query_result = db_query($query, $job_id, $quote_number);\n}",
"public function newQuote(){\n $json = json_decode(file_get_contents('https://quotes.rest/qod'));\n $this->q = $json->contents->quotes[0]->quote;;\n }",
"private function createTransactionByQuote(Quote $quote)\n {\n $spaceId = $this->scopeConfig->getValue('wallee_payment/general/space_id',\n ScopeInterface::SCOPE_STORE, $quote->getStoreId());\n\n $createTransaction = new TransactionCreate();\n $createTransaction->setCustomersPresence(CustomersPresence::VIRTUAL_PRESENT);\n $createTransaction->setAutoConfirmationEnabled(false);\n $createTransaction->setChargeRetryEnabled(false);\n $this->assembleTransactionDataFromQuote($createTransaction, $quote);\n $transaction = $this->apiClient->getApiClient()->getTransactionService()->create($spaceId, $createTransaction);\n $this->updateQuote($quote, $transaction);\n return $transaction;\n }",
"function quote() {\n\t\t$quotes = [\n\t\t\t'“Walk as if you are kissing the Earth with your feet.”',\n\t\t\t'“Life is a journey. Time is a river. The door is ajar”',\n\t\t\t'“Man suffers only because he takes seriously what the gods made for fun.”',\n\t\t\t'“To Do Today, 1/17/08\n\t\t\t\t1. Sit and think\n\t\t\t\t2. Reach enlightenment\n\t\t\t\t3. Feed the cats”',\n\t\t\t'“The truth knocks on the door and you say, \"Go away, I\\'m looking for the truth,\" and so it goes away. Puzzling.” ',\n\t\t\t'“The way out is through the door. Why is it that no one will use this method?”',\n\t\t\t'“Letting go is the lesson. Letting go is always the lesson. Have you ever noticed how much of our agony is all tied up with craving and loss?”',\n\t\t\t'“Only the hand that erases can write the true thing.”',\n\t\t\t'“It is the power of the mind to be unconquerable.”',\n\t\t\t'“Flow with whatever may happen, and let your mind be free: Stay centered by accepting whatever you are doing. This is the ultimate.”',\n\t\t\t'“It is easy to believe we are each waves and forget we are also the ocean.”',\n\t\t\t'“When the mind is exhausted of images, it invents its own.”',\n\t\t\t'“Haiku is not a shriek, a howl, a sigh, or a yawn; rather, it is the deep breath of life.”',\n\t\t\t'“Consider your own place in the universal oneness of which we are all a part, from which we all arise, and to which we all return.”',\n\t\t];\n\n\t\t$randomQuoteIndex = mt_rand(0, count($quotes) - 1);\n\n\t\treturn $quotes[$randomQuoteIndex];\n\t}",
"public function createQuoteArrays()\n\t\t{\n\t\t\t//scan product list for product ids\n\t\t\t//query database for quote objects using product ids\n\t\t\t//fill variables with object results, unless specified in textinput\n\n\n\t\t\t//create array containing ids of all products in productdata items\n\t\t\t$productids=array();\n\t\t\t$productnames=array();\n\t\t\tforeach($this->main->productdata->items as $productarray)\n\t\t\t{\n\t\t\t\tif($productids[]=$productarray[\"object\"])\n\t\t\t\t\t$productids[]=$productarray[\"object\"]->getId();\n\n\t\t\t\t\t$productname=$productarray[\"name\"];\n \t\t\t\t$this->quotearrays[$productname]=array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'buy'=>array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'object'=>null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'price'=>0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'discrate'=>\"\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'discamt'=>0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'sell'=>array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'object'=>null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'price'=>0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'discrate'=>\"\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'discamt'=>0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t}\n\t\t\t//test: $productids have content array('productname'=>'id',...)\n\t\t\t//var_dump($productids);\n\t\t\t//die();\n\n\t\t\t//if none found, do nothing\n \tif(count($productids)==0)return;\n\n\t\t\t$vendor_id=$this->main->pricelistdata->vendor->getId();\n\n\n\n\t $query=Doctrine_Query::create()\n\t ->from('Quote q, q.Product p, q.Vendor v, p.Producttype pt')\n\t ->whereIn('q.product_id',$productids)\n\t ->andWhere('q.vendor_id = '.$vendor_id)\n\t ->orderBy(\"p.name\");\n\n\t //if pricelist exists in database \n\t if($this->main->pricelistdata->pricelist->getId())\n\t $query\n\t\t\t\t ->andWhere('q.ref_class = \"Pricelist\"')\n\t\t ->andWhere('q.ref_id = '.$this->main->pricelistdata->pricelist->getId());\n\t \n\t $buyquotes= $query->execute();\n\n \t\tforeach($buyquotes as $quote)\n \t\t{\n \t\t\t$productname=$quote->getProduct()->getName();\n\n \t\t\t//save data\n\t\t\t\t$this->quotearrays[$productname][\"buy\"]=array(\n\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\"object\"=>$quote,\n\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\"price\"=>$quote->getPrice(),\n\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\"discrate\"=>$quote->getDiscrate(),\n\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\"discamt\"=>$quote->getDiscamt(),\n\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}\n\n\t $query=Doctrine_Query::create()\n\t ->from('Quote q, q.Product p, q.Vendor v, p.Producttype pt')\n\t ->whereIn('q.product_id',$productids)\n\t ->andWhere('q.vendor_id = '.SettingsTable::fetch(\"me_vendor_id\"))\n\t ->orderBy(\"p.name\");\n\n\t //if pricelist exists in database\n\t if($this->main->pricelistdata->pricelist->getId())\n\t $query\n\t\t\t\t ->andWhere('q.ref_class = \"Pricelist\"')\n\t\t ->andWhere('q.ref_id = '.$this->main->pricelistdata->pricelist->getId());\n\t \n\t $sellquotes= $query->execute();\n\n\n \t\tforeach($sellquotes as $quote)\n \t\t{\n \t\t\t$productname=$quote->getProduct()->getName();\n\n \t\t\t//save data\n\t\t\t\t$this->quotearrays[$productname][\"sell\"]=array(\n\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\"object\"=>$quote,\n\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\"price\"=>$quote->getPrice(),\n\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\"discrate\"=>$quote->getDiscrate(),\n\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\"discamt\"=>$quote->getDiscamt(),\n\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}\n\t\t}",
"public function getQuote()\n {\n if (is_null($this->_quote)) {\n $this->_quote = Mage::getModel('sales/quote');\n if ($this->getStoreId() && $this->getQuoteId()) {\n $this->_quote->setStoreId($this->getStoreId())\n ->load($this->getQuoteId());\n }\n elseif($this->getStoreId() && $this->hasCustomerId()) {\n $this->_quote->setStoreId($this->getStoreId())\n ->setCustomerGroupId(Mage::getStoreConfig(self::XML_PATH_DEFAULT_CREATEACCOUNT_GROUP))\n ->assignCustomer($this->getCustomer())\n ->setIsActive(false)\n ->save();\n $this->setQuoteId($this->_quote->getId());\n }\n $this->_quote->setIgnoreOldQty(true);\n $this->_quote->setIsSuperMode(true);\n }\n return $this->_quote;\n }",
"public function createFromQuote(Quote $quote)\n {\n $invoice = new Invoice();\n\n $now = Carbon::now();\n\n $invoice->setCreated($now);\n $invoice->setClient($quote->getClient());\n $invoice->setBaseTotal($quote->getBaseTotal());\n $invoice->setDiscount($quote->getDiscount());\n $invoice->setNotes($quote->getNotes());\n $invoice->setTotal($quote->getTotal());\n $invoice->setTerms($quote->getTerms());\n $invoice->setUsers($quote->getUsers()->toArray());\n $invoice->setBalance($invoice->getTotal());\n\n if (null !== $quote->getTax()) {\n $invoice->setTax($quote->getTax());\n }\n\n /** @var \\CSBill\\QuoteBundle\\Entity\\Item $item */\n foreach ($quote->getItems() as $item) {\n $invoiceItem = new Item();\n $invoiceItem->setCreated($now);\n $invoiceItem->setTotal($item->getTotal());\n $invoiceItem->setDescription($item->getDescription());\n $invoiceItem->setPrice($item->getPrice());\n $invoiceItem->setQty($item->getQty());\n\n if (null !== $item->getTax()) {\n $invoiceItem->setTax($item->getTax());\n }\n\n $invoice->addItem($invoiceItem);\n }\n\n $this->create($invoice);\n $this->accept($invoice); // ?? Do we really want to accept it immediately after creating it?\n\n return $invoice;\n }",
"function add_quote_f( $entry, $form) {\n global $wpdb;\n global $BID_COST_NON_3D_PRINT_EACH;\n global $BID_COST_3D_PRINT_EACH;\n $oid_filter = filter_input( INPUT_GET, \"oid\", FILTER_SANITIZE_STRING );\n $vid_to_add = $entry['1'];\n\n $order_type = $wpdb->get_var(\"SELECT order_type FROM orders WHERE oid = $oid_filter\");\n $bid_reimbursement = 0;\n if($order_type == '3D-Printed Part') $bid_reimbursement = $BID_COST_NON_3D_PRINT_EACH;\n else $bid_reimbursement = $BID_COST_3D_PRINT_EACH;\n\n $quote_due = $wpdb->get_var(\"SELECT quotes_due FROM orders WHERE oid = $oid_filter\");\n $quote_fee = $wpdb->get_var(\"SELECT fee FROM orders WHERE oid = $oid_filter\");\n\n $curtime_mysql = current_time('mysql'); //current time in the mysql format in the server's time zone (EST)\n\n $wpdb->query($wpdb->prepare( //add quote to DB\n \"INSERT INTO quotes (vid, oid, quote_initiated_date, quote_due, bid_reimburse, quote_fee)\n VALUES (%d,%s,%s,%s,%d,%s)\",\n $vid_to_add, $oid_filter, $curtime_mysql, $quote_due, $bid_reimbursement, $quote_fee));\n\n $wpdb->query($wpdb->prepare( //add one to number of quotes requested for the order\n \"UPDATE orders SET num_quotes_requested = num_quotes_requested + 1 WHERE oid = %d\",\n $oid_filter));\n\n $new_qid = $wpdb->insert_id; //get the qid\n\n if ($new_qid != FALSE) {\n $wpdb->insert('logs', array('user_type' => 'admin', 'log_type' => 'Quote Requested', 'log_entry' => \"New Quote Request $new_qid created\")); //log the event\n } else {\n $wpdb->insert('logs', array('user_type' => 'system', 'log_type' => 'Error', 'log_entry' => \"New Quote Request for order $oid_filter failed\")); //log the event\n }\n}",
"public function getId()\n {\n return $this->{Model_Quote_Peer::F_ID};\n }",
"public function testGetByQuoteId()\n {\n $quoteId = 1;\n $signifydOrderSessionId = 'asdfzxcv';\n\n $this->identityGenerator->expects(self::once())\n ->method('generateIdForData')\n ->with($quoteId)\n ->willReturn($signifydOrderSessionId);\n\n $this->assertEquals(\n $signifydOrderSessionId,\n $this->signifydOrderSessionId->get($quoteId)\n );\n }",
"protected function createQuoteHWLQ(){\n\n\t\t$request = new HomeWardLegalQuote($this->instantQuote);\n\n\t\tif($request->MakeQuote()){\n\t\t\t$this->saveQuote($this->instantQuote->id, $request->companyId, $request->parsedForm);\n\t\t}\n\t}",
"public function trackQuote($quote_id)\n {\n $quoteRepo = \\App::make('AutoQuoteRepositoryInterface');\n $userRepo = \\App::make('UserRepositoryInterface');\n $franchiseRepo = \\App::make('FranchiseRepositoryInterface');\n $merchantRepo = \\App::make('MerchantRepositoryInterface');\n $categoryRepo = \\App::make('CategoryRepositoryInterface');\n $zipcodeRepo = \\App::make('ZipcodeRepositoryInterface');\n $quote = $quoteRepo->find($quote_id);\n $user = $userRepo->find($quote->user_id);\n $franchise = $franchiseRepo->find($quote->franchise_id);\n $merchant = empty($franchise) ? array() : $merchantRepo->find($franchise->merchant_id);\n $category = empty($merchant) ? array() : $categoryRepo->find($merchant->category_id);\n $subcategory = empty($merchant) ? array() : $categoryRepo->find($merchant->subcategory_id);\n $zipcode = $zipcodeRepo->findByZipcode($quote->zip);\n $quoteable_pieces = explode('-', $quote->quoteable_type);\n switch ($quoteable_pieces[0]) {\n case 'VehicleEntity':\n $quoteable = $this->vehicleEntities->findByVendorInventoryId($quoteable_pieces[1], $quote->quoteable_id);\n break;\n \n case 'VehicleStyle':\n $quoteable = $this->vehicleStyles->find($quote->quoteable_id);\n break;\n }\n $make = $this->vehicleMakes->find($quoteable->make_id);\n $mp = \\Mixpanel::getInstance(\\Config::get('integrations.mixpanel.token'));\n $mp->identify($user ? $user->email : 'non-1');\n $mp->track('Auto Quote Submission', array(\n '$city' => ($zipcode ? $zipcode->city : ''),//$user->city,\n 'Environment' => \\App::environment(),\n 'FranchiseId' => $quote->franchise_id,\n 'MerchantId' => empty($franchise) ? 0 : $franchise->merchant_id,\n 'MerchantName' => empty($merchant) ? '' : $merchant->display,\n '$region' => ($zipcode ? $zipcode->state : ''),//$user->state,\n 'Category' => !empty($category) ? $category->name : '',\n 'Subcategory' => !empty($subcategory) ? $subcategory->name : '',\n 'Year' => $quoteable->year,\n 'Make' => $make->name,\n 'Model' => $quoteable_pieces[0] == 'VehicleEntity' ? $quoteable->model : $quoteable->model_name,\n 'Type' => $quoteable_pieces[0] == 'VehicleEntity' ? 'Used' : 'New'\n ));\n }",
"abstract protected function generateId();",
"function createID(){\n $dtAcc = new DataAccess();\n \n $preID = $dtAcc->runQuery('SELECT art_id FROM Articles ORDER BY art_id LIMIT 0, 1');\n \n if($preID->rowcount() > 0){\n foreach ($temp as $row){\n $oldID = $row['art_id'];\n }\n } else {\n $oldID = '0000';\n }\n \n $temp = $oldID + 1;\n \n return substr($oldID, 0, strlen($id)-1) . $temp;\n }",
"public function setQuoteId($quoteId);",
"public function createQuote($cli_id,$user_id,$quo_id)\n {\n try { \n $intValidate = $this->objDao->createQuote($cli_id,$user_id,$quo_id);\n } catch (Exception $e) {\n echo 'Exception captured: ', $e->getMessage(), \"\\n\";\n $intValidate = 0;\n }\n return $intValidate;\n }",
"public function testMakeQuote() {\n\n $saleItem = SaleItemPrice::where('short_id', SaleItemPrice::M1_PROMO)->first();\n\n $saleItem2 = SaleItemPrice::where('short_id', SaleItemPrice::CR_PROMO)->first();\n\n $customerId = Customer::inRandomOrder()->first()->id;\n\n $note = $this->faker->realText();\n\n $quote = (new QuoteController())->makeQuote([\n 'customer_id' => $customerId,\n 'note' => $note,\n 'items' => [\n [\n 'sale_item_price' => $saleItem,\n 'quantity' => random_int(1, 5),\n 'note' => $this->faker->realText(80)\n ],\n [\n 'sale_item_price' => $saleItem2,\n 'quantity' => random_int(1, 5),\n 'note' => $this->faker->realText(80)\n ]\n ]\n ]);\n\n $attributes = $quote->attributesToArray();\n self::assertEquals(Arr::get($attributes, 'customer_id'), $customerId);\n }",
"function getRandomQuote (){\n global $quotes;\n $random = rand(0, 6);\n return $quotes[$random];\n}",
"protected function _initQuote()\n {\n $id = $this->getRequest()->getParam('quote_id');\n $quote = Mage::getModel('viewQuote/sales_quote')->loadByIdWithoutStore($id);\n\n// Zend_Debug::dump($quote->debug());die();\n\n if (!$quote->getId()) {\n $this->_getSession()->addError($this->__('This quote no longer exists.'));\n $this->_redirect('*/*/');\n $this->setFlag('', self::FLAG_NO_DISPATCH, true);\n return false;\n }\n Mage::register('sales_quote', $quote);\n Mage::register('current_quote', $quote);\n return $quote;\n }",
"function genId(){\n\n\t\t$id_arr['IdCreator']=array('id'=>NULL);\n\t\t$this->create();\n\t\t$this->save($id_arr);\n\t\treturn $this->id;\n\n\t}",
"public function getNewId();"
] | [
"0.72026247",
"0.6683507",
"0.6399988",
"0.6361431",
"0.6316612",
"0.6185516",
"0.60918885",
"0.60869837",
"0.5996736",
"0.58982944",
"0.58260053",
"0.5796213",
"0.5785157",
"0.57281935",
"0.56976134",
"0.5680742",
"0.5677003",
"0.5656195",
"0.5649139",
"0.56228036",
"0.56142294",
"0.56091225",
"0.55770546",
"0.55565596",
"0.55323577",
"0.55196166",
"0.55032843",
"0.54974896",
"0.5495793",
"0.54718447"
] | 0.7008095 | 1 |
End of calcDelivery method WriteQuoteToDB | public function writeQuoteToDB($data, $name, $quoteParameters, $printQuotedArrays){
$ftOrM = "";
$metricDefault = $data['metricDefault'];
$quoteIdHold = $this->creatQuoteID($name);
$this->quoteId = $quoteIdHold;
$customer_name = $data['cust-name'];
date_default_timezone_set('America/New_York');
$quoteDate = date("Y-m-d H:i:s");
$productLine = "Reel";
$revision = "";
$reelQty = $quoteParameters["numberOfReel"];
$subject = $quoteParameters["quoteNotes"];
$showDiscount = $quoteParameters["showDiscount"];
$pkgID = $data['cable']['packageID'];
$cableInclude = $quoteParameters["includeCableQuote"]; $cableInstall = $quoteParameters["includeCableInstall"]; $excabMoving = $quoteParameters["extraCableValue"];
$showPrice = $quoteParameters["showItemPrice"]; $notes = $quoteParameters['notes']; $repID = $quoteParameters["preparedBy"]; $status = "Open"; $metric = $data["metricDefault"]; $pkgNote = $quoteParameters['pkgNote'];
$cableThick = $data["cable"]["thickness"]; $cablePN = $data['cable']['pn']; $hoseIdCode = $data['cable']['hoseIDCode']; $cableOrHose = $data['cableOrHose'];
$pdfFilepath = $quoteParameters['pdfFilepath'];
$pkeyRep = $quoteParameters['pkeyRep'];
$pkeyCust = $quoteParameters['pkeyCust'];
//Debugbar::info("Troublesome vars");
//Debugbar::info("PkgNote " . $pkgNote);
//Debugbar::info("notes" . $notes);
//Debugbar::info($quoteIdHold);
switch($metricDefault){
case false:
$ftOrM = " m";
break;
case true:
$ftOrM = " ft";
break;
}
//Start a DB transaction to insert data to DB
DB::beginTransaction();
DB::insert("insert into quotes values(NULL, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?,?,?,?,?,?,?,?,? )",
array($quoteIdHold,$revision,$productLine,$customer_name,$quoteDate,$reelQty,$subject,$showDiscount,$pkgID,$cableInclude,$cableInstall,$excabMoving,$showPrice,$notes,$repID,$status,$metric,$pkgNote, $pdfFilepath, $pkeyRep, $pkeyCust));
//Get the number of elements in the arrany of quoted models
$arraySize = count($printQuotedArrays);
for($modelTypeToStore=1; $modelTypeToStore <= 2; ++$modelTypeToStore){
for($i=0; $i < $arraySize; $i++){
if($printQuotedArrays[$i]->quoteFlag == $modelTypeToStore) {
$cableLength = $data["application"]["activeTravel"] + $quoteParameters["extraCableValue"] + $printQuotedArrays[$i]->extraCable;
if (($cableLength - (int)$cableLength) > 0) {
$cableLength = (int)$cableLength + 1;
}
//Reset all access variables
$this->accessClearVariables();
//Calculate accessory PN/Prices
$series = $printQuotedArrays[$i]->series;
$reelWidthInp = $data["initialCalcs"]["reelWidthInp"];
//if($printQuotedArrays[$i]->quoteFlag == 1) {
switch ($series) {
case "S":
$this->accessSreel($i, $printQuotedArrays, $cableThick);
break;
case "SM":
$this->accessSMreel($i, $printQuotedArrays, $cableThick);
break;
case "MMD":
$this->accessMMDreel($i, $printQuotedArrays, $cableThick);
break;
case "UE":
case "UH":
$this->accessUreel($i, $printQuotedArrays, $cableThick, $reelWidthInp, $cableOrHose, $hoseIdCode);
break;
case "C":
$this->accessCMreel($i, $printQuotedArrays, $cableThick, $cableOrHose, $hoseIdCode);
break;
case "P":
$this->accessPreel($i, $printQuotedArrays, $cableThick);
break;
case "SHO":
case "TMR":
$this->accessSHOTMRreel($i, $printQuotedArrays, $cableThick);
break;
case "HM":
$this->accessCMreel($i, $printQuotedArrays, $cableThick, $cableOrHose, $hoseIdCode);
break;
case "K":
$this->accessKreel($i, $printQuotedArrays, $cableThick);
break;
}
// }
$widthDimension = $printQuotedArrays[$i]->dimWidth;
$totalReelWeight = $printQuotedArrays[$i]->modelWgt;
$totalReelPrice = $printQuotedArrays[$i]->totalReelPrice;
//'check for hazard duty or rev rotate
// if($printQuotedArrays[$i]->quoteFlag == 1) {
$writeQuoteToDBPrices = $this->getReelPrices('writeQuoteToDB');
//debugbar::info($writeQuoteToDBPrices);
if ($printQuotedArrays[$i]->hazardVal == "Yes") { //'increase weight/dimension for hazard duty per S. Schmitz
$widthDimension = $widthDimension + 6;
$totalReelWeight = $totalReelWeight + 50;
switch ($series) {
case "S":
$totalReelPrice = $totalReelPrice + $writeQuoteToDBPrices['totalREELprice_S'];
break;
case "MMD":
$totalReelPrice = $totalReelPrice + $writeQuoteToDBPrices['totalREELprice_MMD'];
break;
}
}
// }
//if($printQuotedArrays[$i]->quoteFlag == 1) {
if ($printQuotedArrays[$i]->revRotVal == "Yes") {
switch ($series) {
case "SHO":
case "TMR":
//Do nothing
break;
case "K":
$totalReelPrice = $totalReelPrice + $writeQuoteToDBPrices['totalREELprice_K'];
break;
default: //'S, SM, MMD
$totalReelPrice = $totalReelPrice + $writeQuoteToDBPrices['totalREELprice_Others'];
}
}
//}
$this->calcDelivery($printQuotedArrays, $i);
$harzardDuty = ""; $reverseRotate = ""; $modelNumber = $printQuotedArrays[$i]->modelNum; $reelHeight = $printQuotedArrays[$i]->dimHeight; $reelWidth = $widthDimension;
$reelDepth = $printQuotedArrays[$i]->dimDepth; $reelWeight = $totalReelWeight; $reqdExtraCable = $printQuotedArrays[$i]->extraCable; $stdDelivery = $this->stdDelivery;
$modelNote = "";
//if($printQuotedArrays[$i]->quoteFlag == 1){
$harzardDuty = $printQuotedArrays[$i]->hazardVal;
$reverseRotate = $printQuotedArrays[$i]->revRotVal;
//}
$quoteType = 0;
if($printQuotedArrays[$i]->quoteFlag > 0){
$quoteType = $printQuotedArrays[$i]->quoteFlag;
}
DB::insert("insert into qtemodel values(NULL, ?,?,?,?,?,?,?,?,?,?,?,?,?,?)",
array($quoteIdHold, $series, $modelNumber, $harzardDuty, $reverseRotate, $reqdExtraCable,$reelHeight, $reelWidth, $reelDepth, $reelWeight, "", $quoteType, $stdDelivery, $modelNote));
$this->stdDelivery = "";
$pdo = DB::connection()->getPdo(); //Returns the pdo instance
$modIDhold = $pdo->lastInsertId();
$qty = 1; //qty calculated in report
$descrip = "";
switch ($series){
case "S":
$descrip = " Heavy Duty Cable Reel";
break;
case "SM":
$descrip = " Extra Heavy Duty Cable Reel";
break;
case "MMD":
$descrip = " Mill Duty Cable Reel";
break;
case "SHO":
$descrip = " Spring-driven Cable Reel";
break;
case "TMR":
$descrip = " Motor-driven Cable Reel";
break;
case "UE":
$descrip = " Electric Cable Reel";
break;
case "UH":
case "HM":
$descrip = " Hose Reel";
break;
case "C":
$descrip = " Electric Cable Reel";
break;
case "P":
$descrip = " Pendant Station Cable Reel";
break;
case "K":
$descrip = " Dual Hose Reel";
break;
}
$description = $modelNumber . $descrip;
$price = 0;
if($totalReelPrice > 0){
$price = $totalReelPrice;
}
DB::insert("insert into quotedetails values(null, ?, ?, ?, ?, ?, ?, ?)",
array($modIDhold, $qty, "", $description, $price, $quoteIdHold, $modelNumber));
//add rollerguide to quote
if($this->rollerGuidePN != ""){
$description = $printQuotedArrays[$i]->rollerGuideMat . " " . $printQuotedArrays[$i]->rollerGuideApp . " Roller guides";
$pn = $this->rollerGuidePN;
if($this->rollerGuidePrice > 0){
$price = $this->rollerGuidePrice;
}
DB::insert("insert into quotedetails values(null, ?, ?, ?, ?, ?, ?, ?)",
array($modIDhold, $qty, $pn, $description, $price, $quoteIdHold, $modelNumber));
}
//add hoopguide to qote
if($this->hoopGuidePN != ""){
$pn = $this->hoopGuidePN;
$description = "Hoop Guide Assembly";
if($this->hoopGuidePrice > 0){
$price = $this->hoopGuidePrice;
}
DB::insert("insert into quotedetails values(null, ?, ?, ?, ?, ?, ?, ?)",
array($modIDhold, $qty, $pn, $description, $price, $quoteIdHold, $modelNumber));
}
//add limitswitch
if($this->limitSwitchPN != ""){
$pn = $this->limitSwitchPN;
$description = "Limit Switch Assembly";
if($this->limitSwitchPrice > 0){
$price = $this->limitSwitchPrice;
}
DB::insert("insert into quotedetails values(null, ?, ?, ?, ?, ?, ?, ?)",
array($modIDhold, $qty, $pn, $description, $price, $quoteIdHold, $modelNumber));
}
//add pivotbase to quote
if ($this->pivotBasePN != ""){
$pn = $this->pivotBasePN;
$description = "340 Degree Pivot";
if($this->pivotBasePrice > 0){
$price = $this->pivotBasePrice;
}
DB::insert("insert into quotedetails values(null, ?, ?, ?, ?, ?, ?, ?)",
array($modIDhold, $qty, $pn, $description, $price, $quoteIdHold, $modelNumber));
}
//add dogratchet to quote
if($this->dogRatchetPN != ""){
$pn = $this->dogRatchetPN;
$description = "Dog & Ratchet Assembly";
if($this->dogRatchetPrice > 0){
$price = $this->dogRatchetPrice;
}
DB::insert("insert into quotedetails values(null, ?, ?, ?, ?, ?, ?, ?)",
array($modIDhold, $qty, $pn, $description, $price, $quoteIdHold, $modelNumber));
}
//add spool lock to quote
if($this->spoolLockPN != ""){
$pn = $this->spoolLockPN;
$description = "Spool Lock Assembly";
if($this->spoolLuckPrice > 0){
$price = $this->spoolLuckPrice;
}
DB::insert("insert into quotedetails values(null, ?, ?, ?, ?, ?, ?, ?)",
array($modIDhold, $qty, $pn, $description, $price, $quoteIdHold, $modelNumber));
}
//add ballstop to quote
if($this->ballStopPN != ""){
$pn = $this->ballStopPN;
$description = "Ball stop Assembly";
if($this->ballStopPrice > 0){
$price = $this->ballStopPrice;
}
DB::insert("insert into quotedetails values(null, ?, ?, ?, ?, ?, ?, ?)",
array($modIDhold, $qty, $pn, $description, $price, $quoteIdHold, $modelNumber));
}
//add cable grip to quote
if($this->cablegripPN != ""){
$pn = $this->cablegripPN;
$description = "Cable Grip Assembly";
if($this->cablegripPrice > 0){
$price = $this->cablegripPrice;
}
DB::insert("insert into quotedetails values(null, ?, ?, ?, ?, ?, ?, ?)",
array($modIDhold, $qty, $pn, $description, $price, $quoteIdHold, $modelNumber));
}
//add cable if requested
if($pkgID != 0){
if ($quoteParameters["includeCableQuote"] == "Yes"){
if($series == "UH" || $series == "HM"){
if($series == "UH"){
$this->hoseFittingQty = 2;
}else{
$this->hoseFittingQty = 1;
}
$qty = $this->hoseFittingQty;
$pn = $this->malePipePN;
$description = "Male Pipe Fittings";
if($this->malePipePrice > 0){
$price = $this->malePipePrice;
}
DB::insert("insert into quotedetails values(null, ?, ?, ?, ?, ?, ?, ?)",
array($modIDhold, $qty, $pn, $description, $price, $quoteIdHold, $modelNumber));
//add clamps
if($hoseIdCode < 9){ //We need 1 if 1/2" or less, otherwise 2
$qty = 1;
}else{
$qty = 2;
}
$pn = $this->hoseClampPN;
$description = "Clamp for Male Pipe Fitting";
if($this->hoseClampPrice > 0){
$price = $this->hoseClampPrice;
}
DB::insert("insert into quotedetails values(null, ?, ?, ?, ?, ?, ?, ?)",
array($modIDhold, $qty, $pn, $description, $price, $quoteIdHold, $modelNumber));
if($hoseIdCode < 9){
$qty = 1;
$pn = $this->hoseFerrulePN;
$description = "Hose Ferrules (1 per hose reqd)";
if($this->hoseFerrulePrice > 0){
$price = $this->hoseFerrulePrice;
}
DB::insert("insert into quotedetails values(null, ?, ?, ?, ?, ?, ?, ?)",
array($modIDhold, $qty, $pn, $description, $price, $quoteIdHold, $modelNumber));
}
}
$qty = 1;
$pn = $cablePN;
$pkgDescription = "Cable/Hose: " . $cableLength;
switch($metricDefault){
case true:
$pkgDescription = $pkgDescription . " m ";
break;
case false:
$pkgDescription = $pkgDescription . " ft ";
break;
}
switch($cableOrHose){
case "HD":
case "HS":
switch($metricDefault){
case true:
$pkgDescription = $pkgDescription . $data['cable']['style'] . ", " . $data['cable']['cableID'] . " mm" . " I.D ";
break;
case false:
$pkgDescription = $pkgDescription . $data['cable']['style'] . ", " . $data['cable']['cableID'] . "" . " I.D ";
break;
}
if($cableOrHose == "HD"){
$pkgDescription = $pkgDescription . " w/fittings";
}
break;
default:
$pkgDescription = $pkgDescription . "Round ";
if($data['cable']['type'] == "O" || $data['cable']['type'] == "HV"){
switch(Number($data['cable']['volts'])){
case 600:
$pkgDescription = $pkgDescription . "600V ";
break;
case 5000:
$pkgDescription = $pkgDescription . "5 KV ";
break;
case 8000:
$pkgDescription = $pkgDescription . "8 KV ";
break;
case 15000:
$pkgDescription = $pkgDescription . "15 KV ";
break;
}
}else{
$pkgDescription = $pkgDescription . $data['cable']['type'] . " ";
}
$pkgDescription = $pkgDescription . $data['cable']['cond'] . "C-";
switch($metricDefault){
case true:
$pkgDescription = $pkgDescription . $data['cable']['awg'] . "mm2";
break;
case false:
$pkgDescription = $pkgDescription . $data['cable']['awg'] . "AWG";
}
$pkgDescription = $pkgDescription . " Cable";
}//Switch($cableOrHose)
$description = $pkgDescription . "*";
if($cableOrHose == "C" && $data['cable']['INSTL_FIX'] > 0 && $quoteParameters["includeCableInstall"] == "Yes"){
$roundedInstallPrice = $data['cable']['INSTL_FIX'] + ($data['cable']['installFoot'] * $cableLength);
$price = $roundedInstallPrice;
}else{
$price = $cableLength * $data['cable']['price'];
}
DB::insert("insert into quotedetails values(null, ?, ?, ?, ?, ?, ?, ?)",
array($modIDhold, $qty, $pn, $description, $price, $quoteIdHold, $modelNumber));
}
}
}//Condition: checking quoteFlag==modelTypeToStore
//TODO: Get the value of securityCode from user profile
$securityCode = 99;
if($securityCode == 5){
DB::update('update quotedetails set price = 0 where modelID = ?', array($modIDhold));
}
}//End of for: checking quoted-models
}//End of for loop modelTypeToStore
//Add application parameters
$travel = $data["application"]["activeTravel"];
$speed = $data["application"]["travelSpeed"];
$accel = $data["application"]["accel"];
$application = $data["application"]["appl"]; $pendantWeight=""; $percentSAGstr=""; $centerlineHeight="";
switch($application){
case "lift":
case "magnet":
$pendantWeight = $data["application"]["pendantWeight"];
break;
case "stretch":
$percentSAGstr = $data["application"]["cableSag"];
break;
case "retrieve":
case "hand":
$centerlineHeight = $data["application"]["centerline"];
break;
}
$dutyCycle = ""; $appNote = "";
$ambTempMin = $data["application"]["ambientTemp"]["min"];
$ambTempMax = $data["application"]["ambientTemp"]["max"];
$springTurns = $data["application"]["springTurns"];
$deadWraps = $data["application"]["deadWraps"];
$ccf = $data["application"]["ccf"];
DB::insert("insert into reelapp values(null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",
array($quoteIdHold, $application, $percentSAGstr, $pendantWeight, $centerlineHeight, $travel, $speed, $accel, $dutyCycle, $ambTempMin, $ambTempMax, $springTurns, $ccf, $deadWraps, $appNote));
//Add quote discounts
$sReelDisc1 = $quoteParameters["discountSReel"]; $sReelDisc2 = $quoteParameters["addDiscountSReel"]; $mmdReelDisc1 = $quoteParameters["discountMMDReel"]; $mmdReelDisc2 = $quoteParameters["addDiscountMMDReel"];
$smReelDisc1= $quoteParameters["discountSMReel"]; $smReelDisc2= $quoteParameters["addDiscountSMReel"]; $shoReelDisc1=$quoteParameters["discountSHOReel"]; $shoReelDisc2=$quoteParameters["addDiscountSHOReel"];
$tmrReelDisc1 = $quoteParameters["discountTMRReel"]; $tmrReelDisc2 =$quoteParameters["addDiscountTMRReel"]; $ueReelDisc1=$quoteParameters["discountUReel"]; $ueReelDisc2=$quoteParameters["addDiscountUReel"];
$cmReelDisc1=$quoteParameters["discountCMReel"]; $cmReelDisc2=$quoteParameters["addDiscountCMReel"]; $pReelDisc1=$quoteParameters["discountPendantReel"]; $pReelDisc2=$quoteParameters["addDiscountPendantReel"];
$uhReelDisc1=$quoteParameters["discountUHReel"]; $uhReelDisc2=$quoteParameters["addDiscountUHReel"]; $kReelDisc1=$quoteParameters["discountKReel"]; $kReelDisc2=$quoteParameters["addDiscountKReel"];
$hmReelDisc1=$quoteParameters["discountHMReel"]; $hmReelDisc2=$quoteParameters["addDiscountHMReel"];
DB::insert("insert into qtedisc values(null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",
array($quoteIdHold, $sReelDisc1, $sReelDisc2, $mmdReelDisc1, $mmdReelDisc2, $smReelDisc1, $smReelDisc2, $shoReelDisc1, $shoReelDisc2, $tmrReelDisc1, $tmrReelDisc2, $ueReelDisc1, $ueReelDisc2, $cmReelDisc1, $cmReelDisc2, $pReelDisc1, $pReelDisc2, $uhReelDisc1, $uhReelDisc2, $kReelDisc1, $kReelDisc2, $hmReelDisc1, $hmReelDisc2));
DB::commit();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function write_dbase() {\n\t\t\n\t\t$db= $this->db;\n\t\t\n\t\t//prepare periodic query\n\t\t$query_insert=$query_insert_day='';\n\t\tif (!$this->code) {\n\t\t\tforeach ($this->datapoints as $label=> $datapoint) {\n\t\t\t\tif (!$datapoint->store) continue;\n\n\t\t\t\t$field= $db->quote($label);\n\t\t\t\t$value= $db->quote($datapoint->current_value);\n\n\t\t\t\tif ($datapoint->interval=='periodic') $query_insert.= \"`$field`= '$value',\\n\";\n\t\t\t\tif ($datapoint->interval=='day') $query_insert_day.= \"`$field`= '$value',\\n\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t//write periodic\n\t\tif ($this->code or $query_insert) {\n\n\t\t\t$request= \"\n\t\t\t\tinsert into `:table` set\n\t\t\t\t$query_insert\n\t\t\t\tcode = ':code', \n\t\t\t\tdate_created= ':dtime'\n\t\t\t\";\t\n\t\t\t$params= array(\n\t\t\t\t'table'=> $this->settings['store_db_table'],\n\t\t\t\t'code'=> $this->code,\n\t\t\t\t'dtime'=> $this->datetime,\n\t\t\t);\n\t\t\t$db->query($request,$params) or codeerror('DB error',__FILE__,__LINE__);\n\t\t}\n\t\t\n\t\t//write day, keep overwriting current day til last one stands\n\t\tif ($query_insert_day) {\n\t\t\n\t\t\t$day= date(\"Y-m-d\", strtotime($this->datetime));\n\t\t\t\n\t\t\t$request= \"\n\t\t\t\tselect id from `:daytable` \n\t\t\t\twhere date_created= ':day'\n\t\t\t\";\t\n\t\t\t$params= array(\n\t\t\t\t'daytable'=> $this->settings['store_db_table_day'],\n\t\t\t\t'day'=> $day ,\n\t\t\t);\n\t\t\t$result= $db->query($request,$params) or codeerror('DB error',__FILE__,__LINE__);\n\t\t\tif (!$db->num_rows($result)) {\n\t\t\t\t$request= \"\n\t\t\t\t\tinsert into `:daytable` set\n\t\t\t\t\tdate_created= ':day'\n\t\t\t\t\";\t\n\t\t\t\t$params= array(\n\t\t\t\t\t'daytable'=> $this->settings['store_db_table_day'],\n\t\t\t\t\t'day'=> $day,\n\t\t\t\t);\n\t\t\t\t$db->query($request,$params) or codeerror('DB error',__FILE__,__LINE__);\n\t\t\t}\n\t\t\t$request= \"\n\t\t\t\tupdate `:daytable` set\n\t\t\t\t$query_insert_day\n\t\t\t\t`code`= '0'\n\t\t\t\twhere date_created= ':day'\n\t\t\t\";\t\n\t\t\t$params= array(\n\t\t\t\t'daytable'=> $this->settings['store_db_table_day'],\n\t\t\t\t'day'=> $day,\n\t\t\t);\n\t\t\t$db->query($request,$params) or codeerror('DB error',__FILE__,__LINE__);\n\t\t}\n\n\t\treturn true;\n\t}",
"public function write()\n {\n global $db;\n\n if ($this->supp_id == null) {\n $db->qry(\"INSERT INTO %prefix%food_supp SET \n name = %string%,\n s_desc = %string%\", $this->supp_caption, $this->supp_desc);\n $this->supp_id = $db->insert_id();\n } else {\n $db->qry(\"UPDADE %prefix%food_supp SET \n name = %string%,\n s_desc = %string%\n WHERE supp_id = %int%\", $this->supp_caption, $this->supp_desc, $this->supp_id);\n }\n }",
"private function _finishTransaction(){\n\t\t \n\t}",
"public function write()\n\t{\n\t\t$this->save();\n\t}",
"public function updateQuote($objQuote)\n {\n try {\n $con = $this->objConntion->connect();\n $con->query(\"SET NAMES 'utf8'\");\n if ($con != null) {\n $dataQuote = $objQuote->__getQuo_id() . \",'\" . $objQuote->__getQuo_consec() . \"','\" . $objQuote->__getQuo_date() . \"','\" . $objQuote->__getQuo_project() . \"',\" . $objQuote->__getQuo_year() . \",\" . $objQuote->__getQuo_version() . \",\" . $objQuote->__getQuo_students() . \",\" . $objQuote->__getQuo_quantity() . \",\" . $objQuote->__getQuo_width() . \",\" . $objQuote->__getQuo_height() . \",\" . $objQuote->__getQuo_format() . \",\" . $objQuote->__getQuo_color() . \",\" . $objQuote->__getQuo_colorPaper() . \",\" . $objQuote->__getQuo_bw() . \", \" . $objQuote->__getQuo_bwPaper() . \",\" . $objQuote->__getQuo_2Inks() . \",\" . $objQuote->__getQuo_2Paper() . \",\" . $objQuote->__getQuo_inserts() . \",\" . $objQuote->__getQuo_insertsPaper() . \",\" . $objQuote->__getQuo_guards() . \",\" . $objQuote->__getQuo_guardsPaper() . \",\" . $objQuote->__getQuo_cover() . \" ,\" . $objQuote->__getQuo_coverPaper() . \",\" . $objQuote->__getQuo_top() . \",\" . $objQuote->__getQuo_coverFinish() . \",\" . $objQuote->__getQuo_plast() . \",\" . $objQuote->__getQuo_correction() . \",\" . $objQuote->__getQuo_issn() . \",'\" . $objQuote->__getQuo_observ() . \"','\" . $objQuote->__getQuo_delivDate() . \"','\" . $objQuote->__getQuo_delivPlace() . \"',\" . $objQuote->__getQuo_place() . \",\" . $objQuote->__getStat_id();\n if ($result = $con->query(\"CALL sp_quote_update (\" . $dataQuote . \")\")) {\n $this->intValidatio = 1;\n } else {\n $this->intValidatio = 0;\n }\n }\n $con->close();\n } catch (Exception $e) {\n echo 'Exception captured: ', $e->getMessage(), \"\\n\";\n $this->intValidatio = 0;\n }\n return $this->intValidatio;\n }",
"public function newQuote($objQuote)\n {\n try {\n $con = $this->objConntion->connect();\n $con->query(\"SET NAMES 'utf8'\");\n if ($con != null) {\n $dataQuote = $objQuote->__getClient_id() . \",'\" . $objQuote->__getQuo_consec()\n . \"','\" . $objQuote->__getQuo_calendar()\n . \"','\" . $objQuote->__getQuo_date()\n . \"','\" . $objQuote->__getQuo_project()\n . \"','\" . $objQuote->__getQuo_year()\n . \"','\" . $objQuote->__getQuo_version()\n . \"','\" . $objQuote->__getQuo_students()\n . \"','\" . $objQuote->__getQuo_quantity()\n . \"','\" . $objQuote->__getQuo_width()\n . \"','\" . $objQuote->__getQuo_height()\n . \"','\" . $objQuote->__getQuo_format()\n . \"','\" . $objQuote->__getQuo_color()\n . \"','\" . $objQuote->__getQuo_colorPaper()\n . \"','\" . $objQuote->__getQuo_colorWeigh()\n . \"','\" . $objQuote->__getQuo_bw()\n . \"','\" . $objQuote->__getQuo_bwPaper()\n . \"','\" . $objQuote->__getQuo_bwWeight()\n . \"','\" . $objQuote->__getQuo_inserts()\n . \"','\" . $objQuote->__getQuo_guards()\n . \"','\" . $objQuote->__getQuo_guardsPape()\n . \"','\" . $objQuote->__getQuo_guardsWeig()\n . \"','\" . $objQuote->__getQuo_cover()\n . \"','\" . $objQuote->__getQuo_coverPaper()\n . \"','\" . $objQuote->__getQuo_coverWeigh()\n . \"','\" . $objQuote->__getQuo_top()\n . \"','\" . $objQuote->__getQuo_coverFinis()\n . \"','\" . $objQuote->__getQuo_plast()\n . \"','\" . $objQuote->__getQuo_correction()\n . \"','\" . $objQuote->__getQuo_issn()\n . \"','\" . $objQuote->__getQuo_observ()\n . \"','\" . $objQuote->__getQuo_delivDate()\n . \"','\" . $objQuote->__getQuo_delivPlace() \n . \"',\" . $objQuote->__getUser_id() \n . \",\" . $objQuote->__getPro_id() \n . \",\" . $objQuote->__getStat_id() \n . \",'\" . $objQuote->__getQuo_pageTotal() \n . \"','\" . $objQuote->__getQuo_inser() \n . \"','\" . $objQuote->__getQuo_inserPaper() \n . \"','\" . $objQuote->__getQuo_inserWeight().\"'\";\n \n if ($con->query(\"CALL sp_quote_insert_upate (\".$dataQuote.\")\")) {\n $this->intValidatio = 1;\n } else {\n $this->intValidatio = 0;\n }\n //$this->intValidatio = $dataQuote;\n\n }\n $con->close();\n } catch (Exception $e) {\n // echo 'Exception captured: ', $e->getMessage(), \"\\n\";\n $this->intValidatio = 0;\n }\n return $this->intValidatio;\n }",
"public function endDataTransaction()\n {\n DB::commit();\n }",
"function insertQuotation() {\r\n $quotab = $this->quotab;\r\n $quoArray = $this->get_quoArray();\r\n #print_r($quoArray);\r\n#echo \"Table select : $quotab<br>\";\r\n $checkExists = $this->check_table_exists($quotab);\r\n if ($checkExists != 'exist') {\r\n $createResult = $this->create_quotationnew_table($quotab);\r\n#echo $createResult . \"<br>\";\r\n }\r\n $qrIns = \"INSERT INTO $quotab SET \";\r\n $cnt = 0;\r\n $arrCount = count($quoArray);\r\n foreach ($quoArray as $quokey => $quodata) {\r\n $cnt++;\r\n $qrIns .= \" $quokey=:$quokey \";\r\n if ($arrCount != $cnt) {\r\n $qrIns .= \" , \";\r\n }\r\n }\r\n#echo \"qrIns = $qrIns<br>\";\r\n $objsql = new SQLBINDPARAM($qrIns, $quoArray);\r\n $result = $objsql->InsertData2();\r\n if ($result == 'insert ok!') {\r\n $info = 'Insert Successful!';\r\n } else {\r\n $info = 'Insert Failed';\r\n }\r\n return $info;\r\n }",
"public function flush(){\n $sql = \"INSERT INTO endereco_cobranca (codigo_pessoa, log, num, cidade, cep) VALUES(:codigo_pessoa, :log, :num, :cidade, :cep)\";\n $stmt = $this->bd->prepare($sql);\n $stmt->execute(array(':codigo_pessoa'=>$this->codigo_pessoa, ':log'=>$this->logradouro, ':num'=>$this->numero, ':cidade'=>$this->cidade, ':cep'=>$this->cep));\n }",
"function add_quote_f( $entry, $form) {\n global $wpdb;\n global $BID_COST_NON_3D_PRINT_EACH;\n global $BID_COST_3D_PRINT_EACH;\n $oid_filter = filter_input( INPUT_GET, \"oid\", FILTER_SANITIZE_STRING );\n $vid_to_add = $entry['1'];\n\n $order_type = $wpdb->get_var(\"SELECT order_type FROM orders WHERE oid = $oid_filter\");\n $bid_reimbursement = 0;\n if($order_type == '3D-Printed Part') $bid_reimbursement = $BID_COST_NON_3D_PRINT_EACH;\n else $bid_reimbursement = $BID_COST_3D_PRINT_EACH;\n\n $quote_due = $wpdb->get_var(\"SELECT quotes_due FROM orders WHERE oid = $oid_filter\");\n $quote_fee = $wpdb->get_var(\"SELECT fee FROM orders WHERE oid = $oid_filter\");\n\n $curtime_mysql = current_time('mysql'); //current time in the mysql format in the server's time zone (EST)\n\n $wpdb->query($wpdb->prepare( //add quote to DB\n \"INSERT INTO quotes (vid, oid, quote_initiated_date, quote_due, bid_reimburse, quote_fee)\n VALUES (%d,%s,%s,%s,%d,%s)\",\n $vid_to_add, $oid_filter, $curtime_mysql, $quote_due, $bid_reimbursement, $quote_fee));\n\n $wpdb->query($wpdb->prepare( //add one to number of quotes requested for the order\n \"UPDATE orders SET num_quotes_requested = num_quotes_requested + 1 WHERE oid = %d\",\n $oid_filter));\n\n $new_qid = $wpdb->insert_id; //get the qid\n\n if ($new_qid != FALSE) {\n $wpdb->insert('logs', array('user_type' => 'admin', 'log_type' => 'Quote Requested', 'log_entry' => \"New Quote Request $new_qid created\")); //log the event\n } else {\n $wpdb->insert('logs', array('user_type' => 'system', 'log_type' => 'Error', 'log_entry' => \"New Quote Request for order $oid_filter failed\")); //log the event\n }\n}",
"protected function _write() {}",
"public function write() {\n\t\t$data = json_encode($this->data);\n\t\t$file = $this->fileName;\n\n\t\t$db = new stdClass();\n\t\tif (!is_null($this->subversion)) {\n\t\t\t$db->maDb = $this->version . $this->subversion;\n\t\t}\n\t\telse {\n\t\t\t$db->maDb = $this->version;\n\t\t}\n\t\t$db->records = $data;\n\n\t\tapi::log(__CLASS__ . ': Zápis souboru ' . $file);\n\t\tfile_put_contents($file, $db);\n\t}",
"public function saveOrderAction()\r\n {\r\n $this->init();\r\n /** @var MageWorx_OrdersEdit_Model_Edit $editModel */\r\n $editModel = Mage::getSingleton('mageworx_ordersedit/edit');\r\n /** @var MageWorx_OrdersEdit_Model_Edit_Quote $editQuoteModel */\r\n $editQuoteModel = Mage::getSingleton('mageworx_ordersedit/edit_quote');\r\n\r\n try {\r\n\r\n // We can not save the order with the grand total smaller than 0\r\n if ($this->quote->getBaseGrandTotal() < 0) {\r\n throw new Exception('GT < 0');\r\n }\r\n // Applies the pending changes to the quote and save the order\r\n $editModel->setQuote($this->quote);\r\n $editModel->setOrder($this->order);\r\n $editModel->setChanges($this->pendingChanges);\r\n $editModel->saveOrder();\r\n\r\n // Removes \"is_temporary\" flag from the items\r\n $editQuoteModel->saveTemporaryItems($this->quote, 0, false);\r\n\r\n Mage::dispatchEvent('mwoe_save_order_after', array(\r\n 'quote' => $this->quote,\r\n 'order' => $this->order,\r\n 'orig_order' => $this->origOrder\r\n ));\r\n\r\n // Create an invoice or credit memo for the saved order if needed\r\n $this->afterSaveOrder();\r\n\r\n // Remove pending changes from the session\r\n $this->resetPendingChanges();\r\n Mage::getSingleton('adminhtml/session')->addSuccess($this->__('The order changes have been saved'));\r\n } catch (Exception $e) {\r\n Mage::getSingleton('adminhtml/session')\r\n ->addError($this->__('An error occurred while saving the order ' . $e->getMessage()));\r\n }\r\n\r\n $this->_redirectReferer();\r\n }",
"public function saveOrderPayment(QuoteTransfer $quoteTransfer, CheckoutResponseTransfer $checkoutResponseTransfer);",
"function store_order($mysqli) {\n q($mysqli, \"INSERT INTO orders (tires,oil,sparks,address,date) VALUES\n ('$tireqty','$oilqty','$sparkqty','$address','$date')\");\n}",
"public function commitTransaction() {\n\t}",
"function after_process() {\n global $insert_id, $db, $order;\n // add a new OSH record for this order's PP details\n\n\n if(!$this->transactiontype && !$this->transaction_id){\n return false;\n }\n \n\tif(isset($_SESSION['order_number_created']) && $_SESSION['order_number_created'] != ''){\n\t\t$insert_id = $_SESSION['order_number_created'];\n\t}\n $commentString = \"Transaction ID: :transID: \" . \n (isset($this->responsedata['PPREF']) ? \"\\nPPRef: \" . $this->responsedata['PPREF'] : \"\") . \n (isset($this->responsedata['AUTHCODE'])? \"\\nAuthCode: \" . $this->responsedata['AUTHCODE'] : \"\") . \n \"\\nPayment Type: :pmtType: \" . \n \"\\nTimestamp: :pmtTime: \" . \n \"\\nPayment Status: :pmtStatus: \" .\n ($this->avs != 'N/A' ? \"\\nAVS Code: \".$this->avs.\"\\nCVV2 Code: \".$this->cvv2 : '') .\n \"\\nAmount: :orderAmt: \" .\n (!empty($_SESSION['paypal_ec_payer_info']['high_risk_info']) ? \"\\n\". $_SESSION['paypal_ec_payer_info']['high_risk_info'] : \"\");\n $commentString = $db->bindVars($commentString, ':transID:', $this->transaction_id, 'noquotestring');\n $commentString = $db->bindVars($commentString, ':pmtType:', $this->payment_type, 'noquotestring');\n $commentString = $db->bindVars($commentString, ':pmtTime:', $this->payment_time, 'noquotestring');\n $commentString = $db->bindVars($commentString, ':pmtStatus:', $this->payment_status, 'noquotestring');\n $commentString = $db->bindVars($commentString, ':orderAmt:', $this->amt, 'noquotestring');\n\n $sql_data_array= array(array('fieldName'=>'orders_id', 'value'=>$insert_id, 'type'=>'integer'),\n array('fieldName'=>'orders_status_id', 'value'=>$order->info['order_status'], 'type'=>'integer'),\n array('fieldName'=>'date_added', 'value'=>'now()', 'type'=>'noquotestring'),\n array('fieldName'=>'customer_notified', 'value'=>0, 'type'=>'integer'),\n array('fieldName'=>'comments', 'value'=>$commentString, 'type'=>'string'));\n $db->perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array);\n \n // store the PayPal order meta data -- used for later matching and back-end processing activities\n $paypal_order = array('order_id' => $insert_id,\n 'txn_type' => $this->transactiontype,\n 'module_name' => $this->code,\n 'module_mode' => MODULE_PAYMENT_PAYPALWPP_MODULE_MODE,\n 'reason_code' => $this->reasoncode,\n 'payment_type' => $this->payment_type,\n 'payment_status' => $this->payment_status,\n 'pending_reason' => $this->pendingreason,\n 'invoice' => urldecode($_SESSION['paypal_ec_token'] . $this->responsedata['PPREF']),\n 'first_name' => $_SESSION['paypal_ec_payer_info']['payer_firstname'],\n 'last_name' => $_SESSION['paypal_ec_payer_info']['payer_lastname'],\n 'payer_business_name' => $_SESSION['paypal_ec_payer_info']['payer_business'],\n 'address_name' => $_SESSION['paypal_ec_payer_info']['ship_name'],\n 'address_street' => $_SESSION['paypal_ec_payer_info']['ship_street_1'],\n 'address_city' => $_SESSION['paypal_ec_payer_info']['ship_city'],\n 'address_state' => $_SESSION['paypal_ec_payer_info']['ship_state'],\n 'address_zip' => $_SESSION['paypal_ec_payer_info']['ship_postal_code'],\n 'address_country' => $_SESSION['paypal_ec_payer_info']['ship_country'],\n 'address_status' => $_SESSION['paypal_ec_payer_info']['ship_address_status'],\n 'payer_email' => $_SESSION['paypal_ec_payer_info']['payer_email'],\n 'payer_id' => $_SESSION['paypal_ec_payer_id'],\n 'payer_status' => $_SESSION['paypal_ec_payer_info']['payer_status'],\n 'payment_date' => trim(preg_replace('/[^0-9-:]/', ' ', $this->payment_time)),\n 'business' => '',\n 'receiver_email' => (substr(MODULE_PAYMENT_PAYPALWPP_MODULE_MODE,0,7) == 'Payflow' ? MODULE_PAYMENT_PAYPALWPP_PFVENDOR : str_replace('_api1', '', MODULE_PAYMENT_PAYPALWPP_APIUSERNAME)),\n 'receiver_id' => '',\n 'txn_id' => $this->transaction_id,\n 'parent_txn_id' => '',\n 'num_cart_items' => (float)$this->numitems,\n 'mc_gross' => (float)$this->amt,\n 'mc_fee' => (float)urldecode($this->feeamt),\n 'mc_currency' => $this->responsedata['CURRENCYCODE'],\n 'settle_amount' => (float)urldecode($this->responsedata['SETTLEAMT']),\n 'settle_currency' => $this->responsedata['CURRENCYCODE'],\n 'exchange_rate' => (urldecode($this->responsedata['EXCHANGERATE']) > 0 ? urldecode($this->responsedata['EXCHANGERATE']) : 1.0),\n 'notify_version' => '0',\n 'verify_sign' =>'',\n 'date_added' => 'now()',\n 'memo' => '{Record generated by payment module}'\n );\n zen_db_perform(TABLE_PAYPAL, $paypal_order);\n\n // Unregister the paypal session variables, making it necessary to start again for another purchase\n unset($_SESSION['paypal_ec_temp']);\n unset($_SESSION['paypal_ec_token']);\n unset($_SESSION['paypal_ec_payer_id']);\n unset($_SESSION['paypal_ec_payer_info']);\n unset($_SESSION['paypal_ec_final']);\n unset($_SESSION['paypal_ec_markflow']);\n }",
"protected function save()\n {\n self::$database->commit();\n }",
"public function onAfterWrite()\n {\n parent::onAfterWrite();\n $order = $this->Order();\n if ($order && is_a($order, Object::getCustomClass('Order')) && $order->IsSubmitted()) {\n $order->tryToFinaliseOrder();\n }\n }",
"public function commit ();",
"abstract public function commit();",
"abstract public function commit();",
"function submitOrders() {\n\t\t\t$this->_deleteNominalItems( );\n\t\t\t$this->_validateMultiple( );\n\t\t\t$this->clearOrders( );\n\t\t\t$quote = $this->getQuote( );\n\t\t\t$billingAddress = $quote->getBillingAddress( );\n\t\t\t$convertor = $this->getConvertor( );\n\t\t\t$isVirtual = $quote->isVirtual( );\n\t\t\t$transaction = Mage::getModel( 'core/resource_transaction' );\n\n\t\t\tif ($quote->getCustomerId( )) {\n\t\t\t\t$transaction->addObject( $quote->getCustomer( ) );\n\t\t\t}\n\n\t\t\t$transaction->addObject( $quote );\n\t\t\t$addresses = array( );\n\n\t\t\tif (!$isVirtual) {\n\t\t\t\tforeach ($quote->getAllShippingAddresses( ) as $address) {\n\t\t\t\t\tarray_push( $addresses, $address );\n\t\t\t\t}\n\t\t\t} \nelse {\n\t\t\t\tarray_push( $addresses, $quote->getBillingAddress( ) );\n\t\t\t}\n\n\t\t\t$addresses = array_reverse( $addresses );\n\t\t\tforeach ($addresses as $address) {\n\t\t\t\t$stockId = intval( $address->getStockId( ) );\n\t\t\t\t$quote->unsReservedOrderId( );\n\t\t\t\t$quote->reserveOrderId( );\n\t\t\t\t$quote->collectTotals( );\n\t\t\t\t$order = $convertor->addressToOrder( $address );\n\t\t\t\t$orderBillingAddress = $convertor->addressToOrderAddress( $quote->getBillingAddress( ) );\n\n\t\t\t\tif ($billingAddress->getCustomerAddress( )) {\n\t\t\t\t\t$orderBillingAddress->setCustomerAddress( $billingAddress->getCustomerAddress( ) );\n\t\t\t\t}\n\n\t\t\t\t$order->setBillingAddress( $orderBillingAddress );\n\n\t\t\t\tif (!$isVirtual) {\n\t\t\t\t\tif (!$address->isVirtual( )) {\n\t\t\t\t\t\t$orderShippingAddress = $convertor->addressToOrderAddress( $address );\n\n\t\t\t\t\t\tif ($address->getCustomerAddress( )) {\n\t\t\t\t\t\t\t$orderShippingAddress->setCustomerAddress( $address->getCustomerAddress( ) );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$order->setShippingAddress( $orderShippingAddress );\n\t\t\t\t\t} \nelse {\n\t\t\t\t\t\t$order->setIsVirtual( 1 );\n\t\t\t\t\t}\n\t\t\t\t} \nelse {\n\t\t\t\t\t$order->setIsVirtual( 1 );\n\t\t\t\t}\n\n\t\t\t\t$order->setPayment( $convertor->paymentToOrderPayment( $quote->getPayment( ) ) );\n\n\t\t\t\tif (Mage::app( )->getStore( )->roundPrice( $address->getGrandTotal( ) ) == 0) {\n\t\t\t\t\t$order->getPayment( )->setMethod( 'free' );\n\t\t\t\t}\n\n\t\t\t\tforeach ($this->_orderData as $key => $value) {\n\t\t\t\t\t$order->setData( $key, $value );\n\t\t\t\t}\n\n\t\t\t\tforeach ($quote->getAllItems( ) as $item) {\n\n\t\t\t\t\tif (( $isVirtual || $item->getStockId( ) == $stockId )) {\n\t\t\t\t\t\t$orderItem = $convertor->itemToOrderItem( $item );\n\n\t\t\t\t\t\tif ($item->getParentItem( )) {\n\t\t\t\t\t\t\t$orderItem->setParentItem( $order->getItemByQuoteItemId( $item->getParentItem( )->getId( ) ) );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$order->addItem( $orderItem );\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$order->setQuote( $quote );\n\t\t\t\t$this->setOrder( $stockId, $order );\n\t\t\t\t$transaction->addObject( $order );\n\t\t\t\t$transaction->addCommitCallback( array( $order, 'place' ) );\n\t\t\t\t$transaction->addCommitCallback( array( $order, 'save' ) );\n\t\t\t\tMage::dispatchEvent( 'checkout_type_onepage_save_order', array( 'order' => $order, 'quote' => $quote ) );\n\t\t\t\tMage::dispatchEvent( 'sales_model_service_quote_submit_before', array( 'order' => $order, 'quote' => $quote ) );\n\t\t\t}\n\n\t\t\t$transaction->save( );\n\t\t\t$this->_inactivateQuote( );\n\t\t\tforeach ($this->getOrders( ) as $order) {\n\t\t\t\tMage::dispatchEvent( 'sales_model_service_quote_submit_success', array( 'order' => $order, 'quote' => $quote ) );\n\t\t\t}\n\n\t\t\tjmp;\n\t\t\tException {\n\t\t\t\tif (!Mage::getSingleton( 'customer/session' )->isLoggedIn( )) {\n\t\t\t\t\t$quote->getCustomer( )->setId( null );\n\t\t\t\t}\n\n\t\t\t\tforeach ($this->getOrders( ) as $order) {\n\t\t\t\t\t$order->setId( null );\n\t\t\t\t\tforeach ($order->getItemsCollection( ) as $item) {\n\t\t\t\t\t\t$item->setOrderId( null );\n\t\t\t\t\t\t$item->setItemId( null );\n\t\t\t\t\t}\n\n\t\t\t\t\tMage::dispatchEvent( 'sales_model_service_quote_submit_failure', array( 'order' => $order, 'quote' => $quote ) );\n\t\t\t\t}\n\n\t\t\t\tthrow $e;\n\t\t\t\tforeach ($this->getOrders( ) as $order) {\n\t\t\t\t\tMage::dispatchEvent( 'sales_model_service_quote_submit_after', array( 'order' => $order, 'quote' => $quote ) );\n\t\t\t\t}\n\n\t\t\t\treturn $this->getOrders( );\n\t\t\t}\n\t\t}",
"public function save()\n {\n file_put_contents($this->store_path . $this->orders_file, json_encode($this->orders));\n }",
"function db_transaction_end() {\n\tglobal $conn;\n\tLOG_MSG('INFO',\"*************************END TRANSACTION************************\");\n\t$conn->autocommit(TRUE);\n}",
"protected function createQuoteHWLQ(){\n\n\t\t$request = new HomeWardLegalQuote($this->instantQuote);\n\n\t\tif($request->MakeQuote()){\n\t\t\t$this->saveQuote($this->instantQuote->id, $request->companyId, $request->parsedForm);\n\t\t}\n\t}",
"public function commit();",
"public function commit();",
"public function commit();",
"public function commit();"
] | [
"0.6035792",
"0.6013904",
"0.58337694",
"0.58300334",
"0.5802293",
"0.5788072",
"0.57292515",
"0.5717493",
"0.56765425",
"0.563922",
"0.563048",
"0.5600311",
"0.55926794",
"0.5589867",
"0.55729616",
"0.5557203",
"0.55450314",
"0.5535173",
"0.55195475",
"0.55114466",
"0.5502697",
"0.5502697",
"0.5491316",
"0.5480836",
"0.5478836",
"0.54671454",
"0.54522204",
"0.54522204",
"0.54522204",
"0.54522204"
] | 0.7371652 | 0 |
/$email_destino=$_GET["email_destino"]; $nome_destino=$_GET["nome_destino"]; $assunto_destino=$_GET["assunto_destino"]; $titulo_corpo=$_GET["titulo_corpo"]; $conteudo_corpo=$_GET["conteudo_corpo"]; $link_corpo=$_GET["link_corpo"]; $botao_corpo=$_GET["botao_corpo"]; $mensagem_sucesso=$_GET["mensagem_sucesso"]; $mensagem_falha=$_GET["mensagem_falha"]; | function envia($email_destino,$nome_destino,$assunto_destino,$titulo_corpo,$conteudo_corpo,$link_corpo,$botao_corpo,$mensagem_sucesso,$mensagem_falha){
if(($email_destino!="") AND ($nome_destino!="") AND ($assunto_destino!="") AND ($titulo_corpo!="") AND ($conteudo_corpo!="") AND ($mensagem_sucesso!="") AND ($mensagem_falha!=""))
{
$corpo_email = "
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html style='width:100%;font-family:roboto, 'helvetica neue', helvetica, arial, sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;padding:0;Margin:0;'>
<head>
<meta charset='UTF-8'>
<meta content='width=device-width, initial-scale=1' name='viewport'>
<meta name='x-apple-disable-message-reformatting'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<meta content='telephone=no' name='format-detection'>
<title>$assunto_destino</title>
<!--[if (mso 16)]>
<style type='text/css'>
a {text-decoration: none;}
</style>
<![endif]-->
<!--[if gte mso 9]><style>sup { font-size: 100% !important; }</style><![endif]-->
<!--[if !mso]><!-- -->
<link href='https://fonts.googleapis.com/css?family=Roboto:400,400i,700,700i' rel='stylesheet'>
<!--<![endif]-->
<style type='text/css'>
@media only screen and (max-width:600px) {.st-br { padding-left:10px!important; padding-right:10px!important } p, ul li, ol li, a { font-size:16px!important; line-height:150%!important } h1 { font-size:30px!important; text-align:center; line-height:120%!important } h2 { font-size:26px!important; text-align:center; line-height:120%!important } h3 { font-size:20px!important; text-align:center; line-height:120%!important } h1 a { font-size:30px!important; text-align:center } h2 a { font-size:26px!important; text-align:center } h3 a { font-size:20px!important; text-align:center } .es-menu td a { font-size:14px!important } .es-header-body p, .es-header-body ul li, .es-header-body ol li, .es-header-body a { font-size:16px!important } .es-footer-body p, .es-footer-body ul li, .es-footer-body ol li, .es-footer-body a { font-size:14px!important } .es-infoblock p, .es-infoblock ul li, .es-infoblock ol li, .es-infoblock a { font-size:12px!important } *[class='gmail-fix'] { display:none!important } .es-m-txt-c, .es-m-txt-c h1, .es-m-txt-c h2, .es-m-txt-c h3 { text-align:center!important } .es-m-txt-r, .es-m-txt-r h1, .es-m-txt-r h2, .es-m-txt-r h3 { text-align:right!important } .es-m-txt-l, .es-m-txt-l h1, .es-m-txt-l h2, .es-m-txt-l h3 { text-align:left!important } .es-m-txt-r img, .es-m-txt-c img, .es-m-txt-l img { display:inline!important } .es-button-border { display:block!important } a.es-button { font-size:16px!important; display:block!important; border-left-width:0px!important; border-right-width:0px!important } .es-btn-fw { border-width:10px 0px!important; text-align:center!important } .es-adaptive table, .es-btn-fw, .es-btn-fw-brdr, .es-left, .es-right { width:100%!important } .es-content table, .es-header table, .es-footer table, .es-content, .es-footer, .es-header { width:100%!important; max-width:600px!important } .es-adapt-td { display:block!important; width:100%!important } .adapt-img { width:100%!important; height:auto!important } .es-m-p0 { padding:0px!important } .es-m-p0r { padding-right:0px!important } .es-m-p0l { padding-left:0px!important } .es-m-p0t { padding-top:0px!important } .es-m-p0b { padding-bottom:0!important } .es-m-p20b { padding-bottom:20px!important } .es-mobile-hidden, .es-hidden { display:none!important } .es-desk-hidden { display:table-row!important; width:auto!important; overflow:visible!important; float:none!important; max-height:inherit!important; line-height:inherit!important } .es-desk-menu-hidden { display:table-cell!important } table.es-table-not-adapt, .esd-block-html table { width:auto!important } table.es-social { display:inline-block!important } table.es-social td { display:inline-block!important } }
#outlook a {
padding:0;
}
.ExternalClass {
width:100%;
}
.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div {
line-height:100%;
}
.es-button {
mso-style-priority:100!important;
text-decoration:none!important;
}
a[x-apple-data-detectors] {
color:inherit!important;
text-decoration:none!important;
font-size:inherit!important;
font-family:inherit!important;
font-weight:inherit!important;
line-height:inherit!important;
}
.es-desk-hidden {
display:none;
float:left;
overflow:hidden;
width:0;
max-height:0;
line-height:0;
mso-hide:all;
}
.es-button-border:hover {
border-style:solid solid solid solid!important;
background:#d6a700!important;
border-color:#42d159 #42d159 #42d159 #42d159!important;
}
.es-button-border:hover a.es-button {
background:#d6a700!important;
border-color:#d6a700!important;
}
</style>
</head>
<body style='width:100%;font-family:roboto, 'helvetica neue', helvetica, arial, sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;padding:0;Margin:0;'>
<div class='es-wrapper-color' style='background-color:#F6F6F6;'>
<!--[if gte mso 9]>
<v:background xmlns:v='urn:schemas-microsoft-com:vml' fill='t'>
<v:fill type='tile' color='#f6f6f6'></v:fill>
</v:background>
<![endif]-->
<table class='es-wrapper' width='100%' cellspacing='0' cellpadding='0' style='mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;padding:0;Margin:0;width:100%;height:100%;background-repeat:repeat;background-position:center top;'>
<tr style='border-collapse:collapse;'>
<td class='st-br' valign='top' style='padding:0;Margin:0;'>
<table cellpadding='0' cellspacing='0' class='es-header' align='center' style='mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;table-layout:fixed !important;width:100%;background-color:transparent;background-repeat:repeat;background-position:center top;'>
<tr style='border-collapse:collapse;'>
<td align='center' style='padding:0;Margin:0;background-color:transparent;' bgcolor='transparent'>
<!--[if gte mso 9]><v:rect xmlns:v='urn:schemas-microsoft-com:vml' fill='true' stroke='false' style='mso-width-percent:1000;height:204px;'><v:fill type='tile' src='https://pics.esputnik.com/repository/home/17278/common/images/1546958148946.jpg' color='#343434' origin='0.5, 0' position='0.5,0' ></v:fill><v:textbox inset='0,0,0,0'><![endif]-->
<div>
<table bgcolor='transparent' class='es-header-body' align='center' cellpadding='0' cellspacing='0' width='600' style='mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;background-color:transparent;'>
<tr style='border-collapse:collapse;'>
<td align='left' style='padding:0;Margin:0;padding-top:20px;padding-left:20px;padding-right:20px;background-position:left bottom;'>
<table cellpadding='0' cellspacing='0' width='100%' style='mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;'>
<tr style='border-collapse:collapse;'>
<td width='560' align='center' valign='top' style='padding:0;Margin:0;'>
<table cellpadding='0' cellspacing='0' width='100%' style='mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;'>
<tr style='border-collapse:collapse;'>
<td align='center' style='padding:0;Margin:0;'><img class='adapt-img' src='http://www.sibox.com.br/novo/area_cliente/images/8921569337756127.png' alt style='display:block;border:0;outline:none;text-decoration:none;-ms-interpolation-mode:bicubic;' width='330'></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</div>
<!--[if gte mso 9]></v:textbox></v:rect><![endif]--></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' class='es-content' align='center' style='mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;table-layout:fixed !important;width:100%;'>
<tr style='border-collapse:collapse;'>
<td align='center' bgcolor='transparent' style='padding:0;Margin:0;background-color:transparent;'>
<table bgcolor='transparent' class='es-content-body' align='center' cellpadding='0' cellspacing='0' width='600' style='mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;background-color:transparent;'>
<tr style='border-collapse:collapse;'>
<td align='left' style='Margin:0;padding-bottom:15px;padding-top:30px;padding-left:30px;padding-right:30px;border-radius:10px 10px 0px 0px;background-color:#FFFFFF;background-position:left bottom;' bgcolor='#ffffff'>
<table cellpadding='0' cellspacing='0' width='100%' style='mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;'>
<tr style='border-collapse:collapse;'>
<td width='540' align='center' valign='top' style='padding:0;Margin:0;'>
<table cellpadding='0' cellspacing='0' width='100%' style='mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;background-position:left bottom;'>
<tr style='border-collapse:collapse;'>
<td align='center' style='padding:0;Margin:0;'><h1 style='Margin:0;line-height:36px;mso-line-height-rule:exactly;font-family:tahoma, verdana, segoe, sans-serif;font-size:30px;font-style:normal;font-weight:bold;color:#212121;'>$titulo_corpo</h1></td>
</tr>
<tr style='border-collapse:collapse;'>
<td align='center' style='padding:0;Margin:0;padding-top:20px;'><p style='Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:16px;font-family:roboto, 'helvetica neue', helvetica, arial, sans-serif;line-height:24px;color:#131313;'>$conteudo_corpo</p></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr style='border-collapse:collapse;'>
<td align='left' style='Margin:0;padding-top:5px;padding-bottom:5px;padding-left:30px;padding-right:30px;border-radius:0px 0px 10px 10px;background-position:left bottom;background-color:#FFFFFF;'>
<table cellpadding='0' cellspacing='0' width='100%' style='mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;'>
<tr style='border-collapse:collapse;'>
<td width='540' align='center' valign='top' style='padding:0;Margin:0;'>
<table cellpadding='0' cellspacing='0' width='100%' style='mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;'>
<tr style='border-collapse:collapse;'>
<td align='center' style='padding:10px;Margin:0;'><span class='es-button-border' style='border-style:solid;border-color:#2CB543;background:#FFC80A;border-width:0px;display:inline-block;border-radius:3px;width:auto;'><a href='$link_corpo' class='es-button' target='_blank' style='mso-style-priority:100 !important;text-decoration:none;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-family:roboto, 'helvetica neue', helvetica, arial, sans-serif;font-size:18px;color:#FFFFFF;border-style:solid;border-color:#FFC80A;border-width:10px 20px 10px 20px;display:inline-block;background:#FFC80A;border-radius:3px;font-weight:normal;font-style:normal;line-height:30px;width:auto;text-align:center;'> $botao_corpo </a></span></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' class='es-footer' align='center' style='mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;table-layout:fixed !important;width:100%;background-color:#F6F6F6;background-repeat:repeat;background-position:center top;'>
<tr style='border-collapse:collapse;'>
<td align='center' style='padding:0;Margin:0;background-color:transparent;' bgcolor='transparent'>
<table bgcolor='#31cb4b' class='es-footer-body' align='center' cellpadding='0' cellspacing='0' width='600' style='mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;background-color:transparent;'>
<tr style='border-collapse:collapse;'>
<td style='Margin:0;padding-top:10px;padding-bottom:10px;padding-left:30px;padding-right:30px;background-position:left bottom;background-color:transparent;' align='left' bgcolor='transparent'>
<table width='100%' cellspacing='0' cellpadding='0' style='mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;'>
<tr style='border-collapse:collapse;'>
<td width='540' valign='top' align='center' style='padding:0;Margin:0;'>
<table width='100%' cellspacing='0' cellpadding='0' style='mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;'>
<tr style='border-collapse:collapse;'>
<td align='center' style='padding:0;Margin:0;'><p style='Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:12px;font-family:roboto, 'helvetica neue', helvetica, arial, sans-serif;line-height:18px;color:#131313;'>SiLab - Soluções Laboratoriais - CNPJ: 29.187.746/0001-38 - São José dos Campos/SP</p></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr style='border-collapse:collapse;'>
<td style='Margin:0;padding-bottom:5px;padding-top:15px;padding-left:20px;padding-right:30px;border-radius:0px 0px 10px 10px;background-position:left bottom;background-color:#EFEFEF;' align='left' bgcolor='#efefef'>
<!--[if mso]><table width='550' cellpadding='0' cellspacing='0'><tr><td width='202' valign='top'><![endif]-->
<table class='es-left' cellspacing='0' cellpadding='0' align='left' style='mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;float:left;'>
<tr style='border-collapse:collapse;'>
<td class='es-m-p0r es-m-p20b' width='202' align='center' style='padding:0;Margin:0;'>
<table width='100%' cellspacing='0' cellpadding='0' style='mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;background-position:left bottom;'>
<tr style='border-collapse:collapse;'>
<td align='left' style='padding:0;Margin:0;'><img class='adapt-img' src='http://www.sibox.com.br/novo/area_cliente/images/60421569337953370.png' alt style='display:block;border:0;outline:none;text-decoration:none;-ms-interpolation-mode:bicubic;' width='117'></td>
</tr>
<tr style='border-collapse:collapse;'>
<td align='left' style='padding:0;Margin:0;'><p style='Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:16px;font-family:roboto, 'helvetica neue', helvetica, arial, sans-serif;line-height:24px;color:#3366FF;'>Soluções Laboratoriais</p></td>
</tr>
</table></td>
</tr>
</table>
<!--[if mso]></td><td width='10'></td><td width='338' valign='top'><![endif]-->
<table class='es-right' cellspacing='0' cellpadding='0' align='right' style='mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;float:right;'>
<tr style='border-collapse:collapse;'>
<td width='338' align='center' style='padding:0;Margin:0;'>
<table width='100%' cellspacing='0' cellpadding='0' style='mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;'>
<tr style='border-collapse:collapse;'>
<td class='es-m-txt-c' align='right' style='padding:0;Margin:0;padding-top:15px;'>
<table class='es-table-not-adapt es-social' cellspacing='0' cellpadding='0' style='mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;'>
<tr style='border-collapse:collapse;'>
<td valign='top' align='center' style='padding:0;Margin:0;padding-right:10px;'><a target='_blank' href='https://www.facebook.com/labremoto/' style='-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-family:roboto, 'helvetica neue', helvetica, arial, sans-serif;font-size:16px;text-decoration:underline;color:#FFFFFF;'><img title='Facebook' src='http://www.sibox.com.br/novo/area_cliente/images/facebook-circle-colored.png' alt='Fb' width='32' style='display:block;border:0;outline:none;text-decoration:none;-ms-interpolation-mode:bicubic;'></a></td>
<td valign='top' align='center' style='padding:0;Margin:0;padding-right:10px;'><a target='_blank' href='https://www.instagram.com/silabsjc/' style='-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-family:roboto, 'helvetica neue', helvetica, arial, sans-serif;font-size:16px;text-decoration:underline;color:#FFFFFF;'><img title='Instagram' src='http://www.sibox.com.br/novo/area_cliente/images/instagram-circle-colored.png' alt='Inst' width='32' style='display:block;border:0;outline:none;text-decoration:none;-ms-interpolation-mode:bicubic;'></a></td>
<td valign='top' align='center' style='padding:0;Margin:0;'><a target='_blank' href='https://www.youtube.com/channel/UCHthzwmL67FGhnOIBiAAXBQ' style='-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-family:roboto, 'helvetica neue', helvetica, arial, sans-serif;font-size:16px;text-decoration:underline;color:#FFFFFF;'><img title='Youtube' src='http://www.sibox.com.br/novo/area_cliente/images/youtube-circle-colored.png' alt='Yt' width='32' style='display:block;border:0;outline:none;text-decoration:none;-ms-interpolation-mode:bicubic;'></a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<!--[if mso]></td></tr></table><![endif]--></td>
</tr>
<tr style='border-collapse:collapse;'>
<td align='left' style='padding:0;Margin:0;background-position:left top;'>
<table cellpadding='0' cellspacing='0' width='100%' style='mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;'>
<tr style='border-collapse:collapse;'>
<td width='600' align='center' valign='top' style='padding:0;Margin:0;'>
<table cellpadding='0' cellspacing='0' width='100%' style='mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;'>
<tr style='border-collapse:collapse;'>
<td align='center' height='40' style='padding:0;Margin:0;'></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</div>
</body>
</html>
";
/**
* This example shows settings to use when sending via Google's Gmail servers.
* This uses traditional id & password authentication - look at the gmail_xoauth.phps
* example to see how to use XOAUTH2.
* The IMAP section shows how to save this message to the 'Sent Mail' folder using IMAP commands.
*/
$mail->CharSet = 'utf-8';
//Create a new PHPMailer instance
$mail = new PHPMailer;
//Tell PHPMailer to use SMTP
$mail->isSMTP();
//Enable SMTP debugging
// 0 = off (for production use)
// 1 = client messages
// 2 = client and server messages
$mail->SMTPDebug = 0;
//Set the hostname of the mail server
$mail->Host = 'smtp.gmail.com';
// use
// $mail->Host = gethostbyname('smtp.gmail.com');
// if your network does not support SMTP over IPv6
//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission
$mail->Port = 587;
//Set the encryption system to use - ssl (deprecated) or tls
$mail->SMTPSecure = 'tls';
//Whether to use SMTP authentication
$mail->SMTPAuth = true;
//Username to use for SMTP authentication - use full email address for gmail
$mail->Username = "";
//Password to use for SMTP authentication
$mail->Password = "";
//Set who the message is to be sent from
$mail->setFrom('', 'CPTO'); // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< CONFIGURAR EMAIL PARA ENVIO
//Set an alternative reply-to address
$mail->addReplyTo('', 'CPTO'); // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< CONFIGURAR EMAIL PARA ENVIO
//Set who the message is to be sent to
$mail->addAddress($email_destino, $nome_destino);
//Set the subject line
$mail->Subject = utf8_decode($assunto_destino);
//Read an HTML message body from an external file, convert referenced images to embedded,
//convert HTML into a basic plain-text alternative body
$mail->msgHTML(utf8_decode($corpo_email));
//Replace the plain text body with one created manually
$mail->AltBody = 'This is a plain-text message body';
//Attach an image file
//$mail->addAttachment('images/phpmailer_mini.png');
//send the message, check for errors
if (!$mail->send()) {
echo "<script>alert('$mensagem_sucesso!');</script>";
//echo "Mailer Error: " . $mail->ErrorInfo;
} else {
//echo "<script>alert('$mensagem_falha');</script>";
//Section 2: IMAP
//Uncomment these to save your message in the 'Sent Mail' folder.
#if (save_mail($mail)) {
# echo "Message saved!";
#}
}
}
else
{
echo "<script>alert('Campos insuficientes!');</script>";
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function pathsitoutenza(){\r\n $namedaget=$_GET['nomeutente'];\r\n \r\n \r\n//return \"http://\".$_SERVER[\"HTTP_HOST\"] .'/novaproget.com/utenza/'; \r\nreturn \"http://\".$_SERVER[\"HTTP_HOST\"] .'/novaproget.com/'.$namedaget.'/'; \r\n}",
"function ng_url_suivi($email){\n\tif (!$email) return \"\";\n\tinclude_spip(\"inc/securiser_action\");\n\t$key = calculer_cle_action(\"abonner_notifications $email\");\n\t$url = url_absolue(generer_url_public('notifications', \"email=$email&key=$key\"));\n\treturn $url;\n}",
"public function controllersAltPessoaGetSucesso()\t\t{\t\t\r\n\t\treturn (!empty($_GET['m']))\t?\taddslashes($_GET['m'])\t:\tnull;\r\n\t}",
"public function varivelGET()\n\t{\n\t\t$jinput = JFactory::getApplication()->input;\n\t\t$foo = $jinput->get('varname', 'default_value', 'filter');\n\t}",
"function validateInput($_GET)\n {\n if(strlen($_GET['recoverEmail'])<50 and )//validate length and content to be email only\n {\n \n return true;\n \n }\n else\n {\n $errorMessage['registerEmail']=\"This doesnt look like proper email id or maybe it is too long!\";\n echo json_encode($errorMessage);\n return false;\n }\n return true;\n }",
"function GET($name=NULL, $value=false, $option=\"default\")\n{\n $option=false; // Old version depricated part\n $content=(!empty($_GET[$name]) ? trim($_GET[$name]) : (!empty($value) && !is_array($value) ? trim($value) : false));\n if(is_numeric($content))\n return preg_replace(\"@([^0-9])@Ui\", \"\", $content);\n else if(is_bool($content))\n return ($content?true:false);\n else if(is_float($content))\n return preg_replace(\"@([^0-9\\,\\.\\+\\-])@Ui\", \"\", $content);\n else if(is_string($content))\n {\n if(filter_var ($content, FILTER_VALIDATE_URL))\n return $content;\n else if(filter_var ($content, FILTER_VALIDATE_EMAIL))\n return $content;\n else if(filter_var ($content, FILTER_VALIDATE_IP))\n return $content;\n else if(filter_var ($content, FILTER_VALIDATE_FLOAT))\n return $content;\n else\n return preg_replace(\"@([^a-zA-Z0-9\\+\\-\\_\\*\\@\\$\\!\\;\\.\\?\\#\\:\\=\\%\\/\\ ]+)@Ui\", \"\", $content);\n }\n else false;\n}",
"function parametros($menu_session , $pagina){\n\t\n\tif(isset($menu_session)){\n\t\t$url_acceso = validarUrl_method($menu_session );\n\t\tif( !$url_acceso ){\n\t\t\t\n\t\t\t//header(\"location: \".base_url(). $pagina);\n\t\t}\n\t}\n}",
"private function initGET(){\n\tif (isset($_GET['tbUsuarioId'])){\n\t\t$this->tbUsuarioId = $_GET['tbUsuarioId'];\n\t}\n\tif (isset($_GET['tbUsuarioLogin'])){\n\t\t$this->tbUsuarioLogin = $_GET['tbUsuarioLogin'];\n\t}\n\tif (isset($_GET['tbUsuarioNome'])){\n\t\t$this->tbUsuarioNome = $_GET['tbUsuarioNome'];\n\t}\n\tif (isset($_GET['tbUsuarioSobrenome'])){\n\t\t$this->tbUsuarioSobrenome = $_GET['tbUsuarioSobrenome'];\n\t}\n\tif (isset($_GET['tbUsuarioDtnasc'])){\n\t\t$this->tbUsuarioDtnasc = $_GET['tbUsuarioDtnasc'];\n\t}\n\tif (isset($_GET['tbUsuarioDtregistro'])){\n\t\t$this->tbUsuarioDtregistro = $_GET['tbUsuarioDtregistro'];\n\t}\n\tif (isset($_GET['tbUsuarioPais'])){\n\t\t$this->tbUsuarioPais = $_GET['tbUsuarioPais'];\n\t}\n\tif (isset($_GET['tbUsuarioEstado'])){\n\t\t$this->tbUsuarioEstado = $_GET['tbUsuarioEstado'];\n\t}\n\tif (isset($_GET['tbUsuarioCidade'])){\n\t\t$this->tbUsuarioCidade = $_GET['tbUsuarioCidade'];\n\t}\n}",
"function parseValues(){\n $ret = array();\n if(isset($_GET[\"email\"])){\n $ret['email'] = $_GET[\"email\"];\n $ret['name'] = $_GET[\"name\"];\n $ret['address'] = $_GET[\"address\"];\n $ret['password'] = $_GET[\"password\"];\n $ret['password_repeat'] = $_GET[\"password_repeat\"];\n }else if(isset($_POST[\"email\"])){\n $ret['email'] = $_POST[\"email\"];\n $ret['name'] = $_POST[\"name\"];\n $ret['address'] = $_POST[\"address\"];\n $ret['password'] = $_POST[\"password\"];\n $ret['password_repeat'] = $_POST[\"password_repeat\"];\n }\n return $ret;\n }",
"public function controllersAltPessoaPostEmail()\t\t{\t\t\r\n\t\treturn (!empty($_POST['email']))\t?\taddslashes($_POST['email'])\t:\tnull;\r\n\t}",
"function process_values2url()\n\t{\n\t\t//echo \"process_exec: _GET =\"; _debug_array($_GET);\n\t\tif (!$_GET['etemplate_exec_id'] || !($request = Api\\Etemplate\\Request::read($_GET['etemplate_exec_id'])))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tself::$name_vars = $request->name_vars;\n\n\t\t$content = $_GET[self::$name_vars];\n\t\tif (!is_array($content))\n\t\t{\n\t\t\t$content = array();\n\t\t}\n\t\t$this->process_show($content,$request->to_process,self::$name_vars);\n\n\t\treturn self::complete_array_merge($request->preserv,$content);\n\t}",
"function limpiaRequest($cCual){\n return ( isset($_REQUEST[$cCual]) ? limpiaSQLinjectionTexto($_REQUEST[$cCual]) : \"\" );\n}",
"function suscriber_confirmation_page() {\n $url_components = parse_url($_SERVER['REQUEST_URI']); \n \n // Use parse_str to divide the obtained string and convert to an array \n parse_str($url_components['query'], $params); \n\n // Get the params as you need\n if ( $params['mailpoet_page'] === 'subscriptions' && $params['action'] === 'confirm' ) {\n \n // If IP resolve \n if ($_SERVER['REMOTE_ADDR']) {\n \n // Get user variables by IP from MailPoet table\n global $wpdb;\n $ip = $_SERVER['REMOTE_ADDR'];\n $current_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? \"https\" : \"http\") . \"://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]\";\n \n // Get all user data\n $user = $wpdb->get_row(\"SELECT * FROM \".$wpdb->prefix.\"mailpoet_subscribers WHERE '\".$ip.\"' = confirmed_ip ORDER BY id DESC LIMIT 1 \");\n \n // Write the finger print\n $message = '\n <p>Hola, el usuario <strong>'. $user->email .'</strong> se ha suscrito a la Newsletter</p>\n <p>Datos enviados el <strong>'. $user->confirmed_at .'</strong> desde la dirección <strong>IP '. $ip .'</strong> a través de la URL:<br/> '. $current_url .'</p>';\n \n wp_mail( \n '[email protected]', \n 'New user has suscribed to MailPoet', \n $message,\n array('Content-Type: text/html; charset=UTF-8')\n );\n }\n } \n}",
"function get_request_url() {\n $endpoint = $this->get_endpoint();\n\n $razon_may = mb_strtoupper($_GET['razon'], 'UTF-8');\n $urlcuit = strlen($_GET['cuit']) >= 11 ? '?cuit='. str_replace(' ', '+', $_GET['cuit']) : ' ';\n $urlrazon_social = strlen($razon_may) >= 3 ? '?razon_social='. $razon_may : ' ';\n $urlconsulta = strlen($_GET['razon']) == 0 ? $endpoint . $urlcuit : $endpoint . $urlrazon_social ;\n\n return $urlconsulta;\n\n }",
"function obtener_pagina()\n\t{ \n\t\t\tglobal $curso_reg;\n\t\t\tglobal $capitulo_reg;\nif(isset($_GET[\"curso\"]))\n{\n\t$curso_reg = obtener_curso_por_id($_GET[\"curso\"]);\n\t$capitulo_reg = NULL;\n} \nelseif (isset($_GET[\"capitulo\"]))\n {\n \t$capitulo_reg = obtener_capitulo_por_id($_GET[\"capitulo\"]);\n \t$curso_reg = NULL; \n }\n \telse\n \t{\n \t\t$capitulo_reg = NULL;\n \t\t$curso_reg = NULL;\n \t}\n\t}",
"function obtener_parametro($nombre_parametro) {\n\tif (isset($_REQUEST[$nombre_parametro]))\n\t\treturn trim($_REQUEST[$nombre_parametro]);\n\t\t\n\treturn '';\n}",
"public function clave(){\r\n switch ($_REQUEST['aux']){\r\n case 'pregunta':{\r\n if (isset($_SESSION['activa'])){\r\n $url=\"sesion/pregunta_seguridad.php\";\r\n }else{ ?>\r\n <script type=\"application/javascript\">\r\n window.location.href=\"<?=RUTA_HTTP?>\";\r\n </script> <?php\r\n }\r\n break;\r\n }\r\n case 'correo':{\r\n $url=\"busqueda/buscar_correo.php\";\r\n break;\r\n }\r\n }\r\n $this->vista($url);\r\n }",
"function getURL($id, $vValor, $vTitular, $vNumero, $vValidade, $vCodigo, $vBandeira){\n//\t\t$resultadoup = mysql_query($sqlup)\n//\t\tor die (mysql_error());\n//\t\t$linhaup=mysql_fetch_array($resultadoup);\n\n\t\t$NomeTitular = $vTitular;\n\t\t$NumeroCartao = $vNumero;\n\t\t$DataValidade = $vValidade;\n\t\t$Codigo = $vCodigo;\n\t\t$FormaPagamento = $vBandeira;\n\n\t\t// Dados obtidos da loja para a transação\n\n\t\t// - dados do processo\n\t\t$identificacao = '4843543';\n\t\t$modulo = 'CIELO';\n\t\t$operacao = 'Autorizacao-Direta';\n\t\t$ambiente = 'PRODUCAO';\n\n\t\t// - dados do cartão\n\t\t$nome_portador_cartao = $NomeTitular;\n\t\t$numero_cartao = $NumeroCartao;\n\t\t$validade_cartao = $DataValidade;\n\t\t$indicador_cartao = '1';\n\t\t$codigo_seguranca_cartao = $Codigo;\n\n\t\t// - dados do pedido\n\t\t$idioma = 'PT';\n\t\t$valor = $vValor;\n\t\t$pedido = $id . date(\"dmYHis\");\n\t\t$descricao = 'Assinatura Contador Amigo';\n\n\t\t// - dados do pagamento\n\t\t$bandeira = $FormaPagamento;\n\t\t$forma_pagamento = '1';\n\t\t$parcelas = '1';\n\t\t$autorizar = '1';\n\t\t$capturar = 'true';\n\n\t\t// - dados adicionais\n\t\t$campo_livre = '';\n\n\t\t// Monta a variável com os dados para postagem\n\t\t$request = 'identificacao=' . $identificacao;\n\t\t$request .= '&modulo=' . $modulo;\n\t\t$request .= '&operacao=' . $operacao;\n\t\t$request .= '&ambiente=' . $ambiente;\n\n\t\t$request .= '&nome_portador_cartao=' . $nome_portador_cartao;\n\t\t$request .= '&numero_cartao=' . $numero_cartao;\n\t\t$request .= '&validade_cartao=' . $validade_cartao;\n\t\t$request .= '&indicador_cartao=' . $indicador_cartao;\n\t\t$request .= '&codigo_seguranca_cartao=' . $codigo_seguranca_cartao;\n\n\t\t$request .= '&idioma=' . $idioma;\n\t\t$request .= '&valor=' . $valor;\n\t\t$request .= '&pedido=' . $pedido;\n\t\t$request .= '&descricao=' . $descricao;\n\n\t\t$request .= '&bandeira=' . $bandeira;\n\t\t$request .= '&forma_pagamento=' . $forma_pagamento;\n\t\t$request .= '&parcelas=' . $parcelas;\n\t\t$request .= '&autorizar=' . $autorizar;\n\t\t$request .= '&capturar=' . $capturar;\n\n\t\t$request .= '&campo_livre=' . $campo_livre;\n\n\t\t// Faz a postagem para a Cielo\n\t\t$ch = curl_init();\n\n\t\tcurl_setopt($ch, CURLOPT_URL, 'https://comercio.locaweb.com.br/comercio.comp');\n\n\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n\n\t\t// EM 20/02/2015 - Mudando o time out da conexão\n\t\tcurl_setopt($ch, CURLOPT_CONNECTTIMEOUT ,0); \n\t\tcurl_setopt($ch, CURLOPT_TIMEOUT, 40); //timeout in seconds\n\n\t\tcurl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n\t\tcurl_setopt($ch, CURLOPT_POST, true);\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $request);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n\t\t$response = curl_exec($ch);\n\t\tcurl_close($ch);\n\n\t\treturn $response;\n\t}",
"function CorreoValidacion(){\n\t$usuario = $_POST;\n\tglobal $url_activacion;\n\tglobal $url_validacorreo;\n\t//Se guarda en la base de datos y se le envia el correo con el link para activar su cuenta\n\ttry{\t\t\n\t\t$destino = $usuario['correo'];\n\n\t\t//$celular = $usuario['cel'];\n\n\t\t$asunto = 'Confirma tu Cuenta';\n\n\t\t$identificador = $usuario['identificador'];\n\t\t\t\t\n\t\tif(isset($usuario['user_perfil'])){\n\t\t\tif(isset($usuario['nombre_empresa'])){\n\t\t\t\t$mensaje = 'Usted ha sido vinculado a la empresa '.$usuario['nombre_empresa'].' por un Administrador.';\n\t\t\t}else{\n\t\t\t\t$URL = $url_validacorreo.'?id='.$usuario[\"identificador\"];\n\t\t\t\t$mensaje = 'Usted ha sido registrado por un administrador, favor de ingresar a la siguiente direccion para completar su registro. <br><br>Codigo de Verificación: '.$usuario[\"identificador\"].' <br><a href=\"'.$URL.'\">Haz click aqui para completar su registro.</a>';\n\t\t\t}\n\t\t}else{\n\t\t\t$mensaje = 'Estimado usuario, su codigo de confirmacion ha sido generado correctamente.<br><br>Codigo de Confirmacion: '.$usuario[\"identificador\"];\n\t\t}\n\n\t\t$resp = EnviarMail($destino,$asunto,$mensaje,$identificador);\n\n\t\treturn $resp;\n\n\t}catch(Exception $e){\n\t\t//JSON(false,'El correo ya esta registrado');\n\t}\n}",
"function RedirecionaPara($nome){\n\t\t\theader(\"Location: \".UrlPadrao.$nome);\n\t\t}",
"function comprobar(){\n\n\t\t\t\tif (isset($_GET['mayusculas']) || isset($_GET['minisculas']) || isset($_GET['numeros']) || isset($_GET['especiales'])) {\n\t\t\t\t\n\t\t\t\t//si no existe el numero de longitud\n\t\t\t\tif ($_GET['minMax'] == \"\") {\n\t\t\t\t\techo <<<checksinumno\n\t\t\t\t\t<div class=\"entero sino\">\n\t\t\t\t\t\t<div class=\"error\">\n\t\t\t\t\t\t\t<h3 class ='titu'>correcto existen caracteres</h3>\n\t\t\t\t\t\t\t<iframe src=\"https://giphy.com/embed/l41Ywr3dQBOujzU7m\" width=\"280\" height=\"133\" frameBorder=\"0\" class=\"giphy-embed\" allowFullScreen></iframe>\n\t\t\t\t\t\t\t<br><hr><br>\n\t\t\t\t\t\t\t<h3 class ='titu'>Incorrecto, falta la longitud de la contraseña</h3>\n\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t<iframe src=\"https://giphy.com/embed/720g7C1jz13wI\" width=\"280\" height=\"133\" frameBorder=\"0\" class=\"giphy-embed\" ></iframe>\n\t\t\t\t\t\t\t<br><br>\n\t\t\t\t\t\t\t<input class=\"estilos es\" type='button' onclick='history.go(-1)' value='VOLVER'>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div> \nchecksinumno;\n\t\t\t\t}else{\n\t\t\t\t\t//echo \"Los ingredientes de la contraseña son:\";\n\t\t\t\t\tfunction generarPass($numMax, $pass){\n\n\t\t\t\t\t\tif (isset($_GET['mayusculas'])) {\n\t\t\t\t\t\t\t$GLOBALS['ingrediente'] .= $GLOBALS['ma'];\n\t\t\t\t\t\t\t$GLOBALS['cont']++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (isset($_GET['minisculas'])) {\n\t\t\t\t\t\t\t$GLOBALS['ingrediente'] .= $GLOBALS['mi'];\n\t\t\t\t\t\t\t$GLOBALS['cont']++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (isset($_GET['numeros'])) {\n\t\t\t\t\t\t\t$GLOBALS['ingrediente'] .= $GLOBALS['nu'];\n\t\t\t\t\t\t\t$GLOBALS['cont']++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (isset($_GET['especiales'])) {\n\t\t\t\t\t\t\t$GLOBALS['ingrediente'] .= $GLOBALS['es'];\n\t\t\t\t\t\t\t$GLOBALS['cont']++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//echo $GLOBALS['ingrediente'];\n\t\t\t\t\t\t\t//echo $GLOBALS['cont'];\n\n\t\t\t\t\t\t for ($x=0; $x <= $numMax; $x++) { \n\t\t\t\t\t\t \t$pass.= $GLOBALS['ingrediente'][rand(0,strlen($GLOBALS['ingrediente'])-1)];\n\n\t\t\t\t\t\t }\n\t\t\t\t\t\t return $pass;\n\t\t\t\t\t}\n\t\t\t\t\t$final = generarPass($GLOBALS['numMax'] , $GLOBALS['pass']);\n\n\t\t\t\t\t//echo \"<br><hr>\";\n\t\t\t\t\t//echo $final;\n\t\t\t\t\techo <<<ok\n\t\t\t\t\t\t<div class=\"entero nono\">\n\t\t\t\t\t\t\t<div class=\"error\">\n\t\t\t\t\t\t\t\t<h3 class ='titu'>La contraseña genera es:</h3>\n\t\t\t\t\t\t\t\t<h2>$final</h2>\n\t\t\t\t\t\t\t\t<iframe src=\"https://giphy.com/embed/8fen5LSZcHQ5O\" width=\"480\" height=\"348\" frameBorder=\"0\" class=\"giphy-embed\" allowFullScreen></iframe>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div> \nok;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t\n\t\t\t\tif ($_GET['minMax'] == \"\") {\n\t\t\t\t\techo <<<checknonumno\n\t\t\t\t\t\t<div class=\"entero nono\">\n\t\t\t\t\t\t\t<div class=\"error\">\n\t\t\t\t\t\t\t\t<h3 class ='titu'>incorrecto no existen caracteres</h3>\n\t\t\t\t\t\t\t\t<iframe src=\"https://giphy.com/embed/720g7C1jz13wI\" width=\"280\" height=\"133\" frameBorder=\"0\" class=\"giphy-embed\" ></iframe>\n\t\t\t\t\t\t\t\t<br><br>\n\t\t\t\t\t\t\t\t<br><hr><br>\n\t\t\t\t\t\t\t\t<h3 class ='titu'>Incorrecto, falta la longitud de la contraseña</h3>\n\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t<iframe src=\"https://giphy.com/embed/720g7C1jz13wI\" width=\"280\" height=\"133\" frameBorder=\"0\" class=\"giphy-embed\" ></iframe>\n\t\t\t\t\t\t\t\t<br><br>\n\t\t\t\t\t\t\t\t<input class=\"estilos es\" type='button' onclick='history.go(-1)' value='VOLVER'>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div> \nchecknonumno;\n\t\t\t\t\t/*echo \"incorrecto no existen caracteres\";\n\t\t\t\t\techo \"mete putos numeros 2\";\n\t\t\t\t\t echo \"<input type='button' onclick='history.go(-1)' value='VOLVER'> \";*/\n\t\t\t\t}else{\n\t\t\t\t\techo <<<checknonumsi\n\t\t\t\t\t\t<div class=\"entero nosi\">\n\t\t\t\t\t\t\t<div class=\"error\">\n\t\t\t\t\t\t\t\t<h3 class ='titu'>incorrecto no existen caracteres</h3>\n\t\t\t\t\t\t\t\t<iframe src=\"https://giphy.com/embed/720g7C1jz13wI\" width=\"280\" height=\"133\" frameBorder=\"0\" class=\"giphy-embed\" ></iframe>\n\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t<br><hr><br>\n\t\t\t\t\t\t\t\t<h3 class ='titu'>La longitud es correcta</h3>\n\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t<iframe src=\"https://giphy.com/embed/l41Ywr3dQBOujzU7m\" width=\"280\" height=\"133\" frameBorder=\"0\" class=\"giphy-embed\" allowFullScreen></iframe>\n\t\t\t\t\t\t\t\t<br><br>\n\t\t\t\t\t\t\t\t<input class=\"estilos es\" type='button' onclick='history.go(-1)' value='VOLVER'>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div> \nchecknonumsi;\n\t\t\t\t\t/*echo \"incorrecto no existen caracteres pero has metido los putos numeros\";\n\t\t\t\t\t echo \"<input type='button' onclick='history.go(-1)' value='VOLVER'> \";*/\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"function recogeDato($campo){ \n return isset($_REQUEST[$campo])?$_REQUEST[$campo]:'';\n }",
"function enlaceNoAdicion($retorno) {\n \n echo \"<script>alert ('\".$retorno['mensaje'].\"');</script>\";\n $pagina=$this->configuracion[\"host\"].$this->configuracion[\"site\"].\"/index.php?\";\n $variable=\"pagina=\".$retorno['pagina'];\n $variable.=\"&opcion=\".$retorno['opcion'];\n //$variable.=$retorno['parametros'];\n\n $variable=$this->cripto->codificar_url($variable,$this->configuracion);\n $this->enlaceParaRetornar($pagina, $variable);\n }",
"function enlaceNoAdicion($retorno) {\n \n echo \"<script>alert ('\".$retorno['mensaje'].\"');</script>\";\n $pagina=$this->configuracion[\"host\"].$this->configuracion[\"site\"].\"/index.php?\";\n $variable=\"pagina=\".$retorno['pagina'];\n $variable.=\"&opcion=\".$retorno['opcion'];\n //$variable.=$retorno['parametros'];\n\n $variable=$this->cripto->codificar_url($variable,$this->configuracion);\n $this->enlaceParaRetornar($pagina, $variable);\n }",
"public function getUrl(){\n\t\t// Verificamos que URL contenga valores\n\t\tif(isset($_GET['url'])){\n\t\t\t// Sanitiza URL\n\t\t\t$url = rtrim($_GET['url'], '/'); // Elimina diagonales al final\n\t\t\t$url = filter_var($url, FILTER_SANITIZE_URL); // Elimina caracteres especiales\n\n\t\t\t// Separa valores de controlador, metodo y parametro (delimitados por /)\n\t\t\t$url = explode('/', $url);\n\t\t\treturn $url;\n\t\t}\n\t}",
"function procesar_cliente($cliente) {\r\necho \"El es cliente: \".$cliente['nombre_c'];\r\necho \"<br> Tiene el codigo: \".$cliente['codigo_c'];\r\necho \"<br> El email\".$cliente[\"email\"];\r\n}",
"function enviarCorreoDeRegistro() {\r\n\t\tglobal $aceptado, $rechazado;\r\n\t\t\r\n\t\trequire(\"clases/PHPMailer/class.phpmailer.php\");\r\n\t\t\r\n\t\t$mail = new phpmailer();\r\n\t\t$mail->From = \"[email protected]\";\r\n\t\t$mail->FromName = \"Wiki-Global\";\r\n\t\t$mail->Host = \"mail.wiki-global.com\";\r\n\t\t$mail->Mailer = \"smtp\";\r\n\t\t$mail->Username = \"[email protected]\";\r\n\t\t$mail->Password = \"1585602106\";\r\n\t\t$mail->WordWrap = 50;\r\n\t\t$mail->SMTPAuth = true;\r\n\t\t$mail->IsHTML(true);\r\n\t\t$mail->SetLanguage(\"es\", \"clases/PHPMailer/language/\");\r\n\t\t$mail->Subject = \"Confirmación de Registro\";\r\n\t\t\t\t\r\n\t\t/* asigno los datos de nombre y apellidos si no vienen vacios */\r\n\t\t$destinatario = $_REQUEST[correo];\r\n\t\t\t\t\r\n\t\t/* asigno el mail de la invitacion */\r\n\t\t$email = !empty($MAIL_GLOBAL_PRUEBAS) ? $MAIL_GLOBAL_PRUEBAS : $_REQUEST[correo];\r\n\t\t\t\t\r\n\t\t$body .= \"Estimado(a) $_REQUEST[nombre] $_REQUEST[apellidos],<br><br>\";\r\n\t\t$body .= \"Bienvenido a Wiki-Global.com<br><br>Inscripción procesada en forma exitosa.<br>\";\r\n\t\t$body .= \"<br>\";\r\n\t\t$body .= \"En este correo encontrará un enlace a Términos y Condiciones del sitio para su archivo.<br>\";\r\n\t\t$body .= \"<br>\";\r\n\t\t$body .= \"<a href=\\\"http://www.wikiglobal.com/?id_pagina=7\\\">http://www.wikiglobal.com/?id_pagina=7</a><br>\";\r\n\t\t$body .= \"<br>\";\r\n\t\t$body .= \"Su nombre de usuario es $_REQUEST[correo]<br>\";\r\n\t\t$body .= \"Su clave de acceso es $_REQUEST[password]<br>\";\r\n\t\t$body .= \"<br>\";\r\n\t\t\t\t\r\n\t\t$mail-> Body = $body;\r\n\t\t\r\n\t\t$mail->AddAddress($email, $destinatario);\r\n\t\t\r\n\t\tif(!$mail->Send()) {\r\n\t\t\t$rechazado = \"Ha ocurrido un error registrando tu usuario.</b><br> \" . $mail->ErrorInfo . \"<br>\";\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\t$mail->ClearAddresses();\r\n\t\t\t$mail->ClearAttachments();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}",
"function get_modificar_pais($vals,$args){\n\textract($vals);\n\textract($args);\n\treturn \"<a href=modificar_pais.php?contenido={$record[$id]}&accion=m><i class='fa fa-edit text-bg text-danger'></i></a>\";\n}",
"function getUrls(){\r\n\t\tif (is_null($this->notify_url) || !$this->notify_url) $this->notify_url = byrd_http_plugin(__file__).'/ipn.php';\r\n\t\tif (is_null($this->return) || !$this->return) $this->return = byrd_http_plugin(__file__).'/confirmation.php';\r\n\t\tif (is_null($this->cancel_return) || !$this->cancel_return) $this->cancel_return = byrd_http_plugin(__file__).'/cancel_return.php';\r\n\t\t\r\n\t}",
"public function check_GET($GET){\n\t\t$result .= $this->query;\n\t\tforeach ($GET as $key => $value) {\n\t\t\t# strip_data and add items\n\t\t\t$key = strip_data($key);\n\t\t\t$value = strip_data($value);\n\n\t\t\t# country search\n\t\t\tif ( ($key == 'country') && (!empty($value))){\n\t\t\t\t$result .= \" && $key='$value'\";\n\n\t\t\t# city search\n\t\t\t} elseif ( ($key == 'city') && (!empty($value))){\n\t\t\t\t$result .= \" && $key='$value'\";\n\n\t\t\t# kayword search\n\t\t\t} elseif ( ($key == 'kayword') && (!empty($value)) ){\n\t\t\t\t$result .= \" && first_name LIKE '%$value%' || last_name LIKE '%$value%' || email LIKE '%$value%'\";\n\n\t\t\t#sort by headers\n\t\t\t} elseif ( ($key == 'sort') && (!empty($value)) ){\n\t\t\t\t$result .= \" ORDER BY $value\";\n\n\t\t\t# pagination\n\t\t\t} elseif ( ($key == 'page') && (!empty($value)) ) {\n\t\t\t\t# get values\n\t\t\t\t$limit = intval($GET['limit']);\n\t\t\t\tif ($limit <= 0){\n\t\t\t\t\t$limit = 5;\n\t\t\t\t}\n\t\t\t\t$page = intval($GET['page']);\n\t\t\t\tif ($page <= 0){\n\t\t\t\t\t$page = 1;\n\t\t\t\t}\n\t\t\t\t# get value start_from\n\t\t\t\t$start_from = ($page - 1) * $limit;\n\t\t\t\t$result .= \" LIMIT $start_from, $limit\";\n\t\t\t}\n\t\t}\n\t\t$result = preg_replace(\"~(.+)(user &&)(.+)~\", \"$1 user WHERE $3\", $result);\n\t\treturn $result;\n\t}"
] | [
"0.6307504",
"0.59502065",
"0.57286364",
"0.56971323",
"0.5606256",
"0.55849814",
"0.55507797",
"0.55504113",
"0.5534083",
"0.549795",
"0.5428855",
"0.54105425",
"0.5409385",
"0.5385199",
"0.5379501",
"0.5362479",
"0.53453785",
"0.5344526",
"0.5343892",
"0.52815795",
"0.5272372",
"0.5270717",
"0.5266018",
"0.5266018",
"0.52455384",
"0.5235058",
"0.52348846",
"0.5213968",
"0.5200614",
"0.51950043"
] | 0.6051663 | 1 |
setOwnerId This set the id of the dynamic content tag owner | public function setOwnerId($newVal) {
$this->ownerId = $newVal;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setOwnerId($value) \n {\n $this->_fields['OwnerId']['FieldValue'] = $value;\n return $this;\n }",
"function setOwner($owner);",
"function setOwner($owner = \"\") \n\t{\n\t\t$this->owner = $owner;\n\t}",
"function __setOwnerId ($woid, $data=null){\n\t\tif (empty($data)) $data = Session::read(\"WMS.{$woid}\");\n\t\tif ($data['Workorder']['source_model']=='User') AppController::$ownerid = $data['Workorder']['source_id']; \n\t\tif ($data['Workorder']['source_model']=='Group') AppController::$ownerid = $data['Workorder']['client_id'];\n\t}",
"public function set_owner($owner){\n\t\t$this->owner = $owner;\n\t}",
"public function setOwnerUserId($ownerUserId);",
"public function withOwnerId($value)\n {\n $this->setOwnerId($value);\n return $this;\n }",
"public function setOwnerId($owner_id)\n {\n $this->vkarg_owner_id = $owner_id;\n\n return $this;\n }",
"public function setOwnerId($owner_id)\n {\n $this->vkarg_owner_id = $owner_id;\n\n return $this;\n }",
"public function setOwnerId($owner_id)\n {\n $this->vkarg_owner_id = $owner_id;\n\n return $this;\n }",
"protected function _set_owner($value) {\n // add author's username to the appropriate rules\n if (isset($this->policy) && isset($this->policy->draft))\n $this->policy->draft->condition->user = $value;\n parent::_set_owner($value);\n }",
"public function setOwner(User $owner)\n\t{\n\t\t$this->owner=$owner; \n\t\t$this->keyModified['Owner'] = 1; \n\n\t}",
"public function setOwner(BaseElementModel $owner)\n\t{\n\t\t$this->_owner = $owner;\n\t}",
"public function ownerId()\n {\n return $this->ownerid;\n }",
"public function setOwner($item_id, $owner_id) {\n $sql = \"UPDATE items SET owner_id=:owner_id WHERE item_id = :item_id\";\n\n $query = $this->db->prepare($sql);\n $query->execute(array(\n ':owner_id' => $owner_id,\n ':item_id' => $item_id \n ));\n }",
"public function setOwnerID($ownerID = null)\n {\n // validation for constraint: int\n if (!is_null($ownerID) && !is_numeric($ownerID)) {\n throw new \\InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, \"%s\" given', gettype($ownerID)), __LINE__);\n }\n if (is_null($ownerID) || (is_array($ownerID) && empty($ownerID))) {\n unset($this->OwnerID);\n } else {\n $this->OwnerID = $ownerID;\n }\n return $this;\n }",
"function setCopyrightOwner($owner) {\n\t\t$this->setData('copyrightOwner', $owner);\n\t}",
"function setId($value){\n\t\t$this->id = $value;\n\t}",
"public function setOwnerName($ownerName)\n {\n $this->ownerName = (string)$ownerName;\n }",
"public function setOwnerId($ownerId)\n {\n $this->ownerId = $ownerId;\n return $this;\n }",
"public function getOwnerId() {\n return $this->ownerId;\n }",
"public function getOwnerId() \n {\n return $this->_fields['OwnerId']['FieldValue'];\n }",
"public function ownerId(array|int|null $value): static\n {\n $this->ownerId = $value;\n return $this;\n }",
"public function setAuthorIdAttribute($value){\n $this->attributes['author_id'] = Auth::user()->id;\n }",
"public function setOwnerId(int $value): GetAll\n {\n $this->ownerId = $value;\n return $this;\n }",
"function setOwner($owner, $ownerBaseClass = null)\n {\n $this->owner = $owner;\n\n if ($ownerBaseClass) {\n $this->ownerBaseClass = $ownerBaseClass;\n } elseif (!$this->ownerBaseClass && $owner) {\n $this->ownerBaseClass = $owner->class;\n }\n }",
"function setId($value)\n {\n $this->contract_id=$value;\n }",
"public function setUniqueIdentifier($value)\n {\n $idRef = $this->packageXPath->document->documentElement->getAttribute('unique-identifier');\n $this->setMeta('dc:identifier', $value, 'id', $idRef);\n }",
"public function setOwner($val)\n {\n $this->_propDict[\"owner\"] = $val;\n return $this;\n }",
"public function setId($value)\n {\n $this->id=$value;\n }"
] | [
"0.6997264",
"0.67765397",
"0.66335946",
"0.66033965",
"0.6432846",
"0.6379875",
"0.6034384",
"0.6022958",
"0.6022958",
"0.6022958",
"0.58653903",
"0.58624893",
"0.5808435",
"0.57791823",
"0.5756748",
"0.5731517",
"0.57015145",
"0.56983876",
"0.56343937",
"0.56240106",
"0.55620956",
"0.5507072",
"0.5506183",
"0.5473299",
"0.5439692",
"0.54315656",
"0.5411718",
"0.54029524",
"0.5400774",
"0.53924936"
] | 0.7175438 | 0 |
setTagId This set the dynamic content tag id | public function setTagId($newVal) {
$this->tagId=$newVal;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function setId($tag) {\n try {\n $this->id = 0;\n $this->tag = $tag;\n if ($tag != '0') {\n $div = $this->SiteModel->getDivs($this->page, $tag);\n $this->id = $div[0]['id'];\n }\n } catch (Exception $e) {\n show_error($e->getMessage());\n }\n }",
"function tag($id) {\n\t\t$this->tags[] = intval($id);\n\t}",
"public function setTagId($tag_id)\n\t{\n\t\t$this->tag_id = $tag_id;\n\t}",
"public function setContentId($id) {\n\t\t$id = ( string ) $id;\n\t\t$this->cid = $id;\n\t\t$this->headers->set ( \"Content-ID\", \"<\" . $id . \">\" );\n\t}",
"final protected function _setTagFull($id,$attrs){$this->_setTag($id,null,$attrs);}",
"public function setTagId($tagIdVal)\r\n\r\n\t{\r\n\r\n\t\tif($tagIdVal != NULL)\r\n\r\n\t\t{\r\n\r\n\t\t\t$this->tagId = $tagIdVal;\r\n\r\n\t\t}\r\n\r\n\t}",
"function setId($value){\n\t\t$this->id = $value;\n\t}",
"public function setTagID($tagID = null) {\n return $this->body->setTagID($tagID);\n }",
"public function setId($value){\n\t\t$this->keyId = $value;\n\t}",
"public function setId($id)\n\t{\n\t\t$this->htmlId = $id;\n\t}",
"function setId($data)\n {\n $this->id = $data;\n }",
"private function setTid(){\n $this->tid = $this->array['tid'];\n }",
"public function getTagId()\r\n\r\n\t{\r\n\r\n\t\treturn $this->tagId;\r\n\r\n \t}",
"function setId($value)\n {\n $this->detail_id=$value;\n }",
"public function setTagID($tagID = null)\n {\n return $this->body->setTagID($tagID);\n }",
"function setId($param) {\n\t\t$this->id = $param;\n\t}",
"public function setId($_id){\n\t\t\t$this->id=$_id;\n\t}",
"public function setId($id = '')\r\n\t{\r\n\t\t$this->id = new DOMString($id);\r\n\t\t$this->setAttribute('id',$id); // set attribute in DOM\r\n\t}",
"public function getTagID()\n {\n return $this->body->getTagID();\n }",
"function setId($id);",
"function setId($id);",
"final public function _setTemplateTagClass($id, $classname){$this->_setTag($id,'_classCollection',$classname);}",
"public function getTagID() {\n return $this->body->getTagID();\n }",
"public function setTemplateId($id) {\n $this->setAttrib('templateId', $id);\n }",
"public function getTagId()\r\n {\r\n return $this->tagId;\r\n }",
"final public function _setTemplateTagValues($id,$value = null)\n\t{\n\t\t$this->{self::_RETURNED_HTMLTAG}->_tagValue->{$id} = $value;\n\t}",
"public function getTagId()\n {\n return $this->tag_id;\n }",
"public function _setId($id) {\n\t\t$this->_id = $id;\n\t}",
"public function setId($value)\n {\n $this->id=$value;\n }",
"function setOptionMetaId($id)\n {\n $this->__ometa_id = $id ;\n }"
] | [
"0.6774685",
"0.6499638",
"0.62064",
"0.6144652",
"0.5998667",
"0.5949316",
"0.5846797",
"0.57387185",
"0.57105154",
"0.57005674",
"0.5700396",
"0.5652535",
"0.56407064",
"0.5631015",
"0.5619913",
"0.56069815",
"0.55712265",
"0.55680597",
"0.5565668",
"0.55552685",
"0.55552685",
"0.5512357",
"0.5500421",
"0.5487012",
"0.54810977",
"0.5474832",
"0.5473511",
"0.5460411",
"0.5448927",
"0.54364854"
] | 0.68490756 | 0 |
loadBlocks This load the blocks to this dynamic content tag | public function loadBlocks () {
$tmpBlock = array();
$query = "SELECT * FROM [|PREFIX|]dynamic_content_block dcb"
. " WHERE dcb.tagid = '". $this->getTagId() . "'"
. " ORDER BY dcb.sortorder ASC"
;
$result = $this->db->Query($query);
while ($row = $this->db->Fetch($result)) {
$tmpBlock[] = new DynamicContentTag_Api_Block($row['blockid'], $row['name'], $row['rules'], $row['activated'], $row['sortorder'], $this->getTagId());
}
$this->setBlocks($tmpBlock);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function load_blocks() {\r\n\r\n require_once LIBRARY_DIR . \"Module.php\";\r\n require_once LIBRARY_DIR . \"Block.php\";\r\n\r\n // load blocks\r\n $this->block_list = Content::get_block_list($this->layout_id, $this->type_id, $this->content_id);\r\n if ( $this->block_list ) {\r\n foreach ( $this->block_list as $block) {\r\n // if selected is true the block can read the parameters\r\n $this->block( $block );\r\n }\r\n }\r\n \r\n }",
"public function load_data() {\n global $DB;\n $coursecontext = context_course::instance($this->course->id);\n $this->blocks = $DB->get_records('block_instances',\n array('blockname' => $this->type, 'parentcontextid' => $coursecontext->id));\n }",
"public static function load_blocks() {\r\n\t\tif ( ! self::is_gutenberg_available() ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif ( ! self::should_load_blocks() ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Filter the list of blocks that are available through jetpack.\r\n\t\t *\r\n\t\t * This filter is populated by Jetpack_Gutenberg::jetpack_set_available_blocks\r\n\t\t *\r\n\t\t * @since 6.8.0\r\n\t\t *\r\n\t\t * @param array\r\n\t\t */\r\n\t\tself::$blocks_index = apply_filters( 'jetpack_set_available_blocks', array() );\r\n\r\n\t\tforeach ( self::$jetpack_blocks as $type => $args ) {\r\n\t\t\tif ( 'publicize' === $type ) {\r\n\t\t\t\t// publicize is not actually a block, it's a gutenberg plugin.\r\n\t\t\t\t// We will handle it's registration on the client-side.\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif ( isset( $args['availability']['available'] ) && $args['availability']['available'] && in_array( $type, self::$blocks_index ) ) {\r\n\t\t\t\tregister_block_type( 'jetpack/' . $type, $args['args'] );\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public function getDynamicBlocks();",
"function load_all_block(){\n\t\t\tglobal $econfig;\n\t\t\t$estore_id = $econfig ->id;\n\t\t\t$table = 'fs_eblocks';\n\t\t\t$Itemid = FSInput::get('Itemid',1);\n\t\t\t$sql = \" SELECT id,title,content, ordering, module, position, showTitle, params\n\t\t\t\t\t\tFROM \".$table .\" AS a \n\t\t\t\t\t\tWHERE published = 1 \n\t\t\t\t\t\t\tAND estore_id = $estore_id\n\t\t\t\t\t\t\tAND ( is_buy = 1 OR buy_expired_time >= NOW() )\n\t\t\t\t\t\t\tAND (listItemid = 'all'\n\t\t\t\t\t\t\tOR listItemid = $Itemid\n\t\t\t\t\t\t\tOR listItemid like '%,$Itemid'\n\t\t\t\t\t\t\tOR listItemid like '$Itemid,%'\n\t\t\t\t\t\t\tOR listItemid like '%,$Itemid,%')\n\t\t\t\t\t\t\tORDER by ordering\";\n\t\t\tglobal $db;\n\t\t\t$db->query($sql);\n\t\t\t$list = $db->getObjectList();\n\t\t\t$arr_blocks = array();\n\t\t\tforeach ($list as $item) {\n\t\t\t\t$arr_blocks[$item -> position ][$item->id] = $item;\n\t\t\t}\n\t\t\t$this -> arr_blocks = $arr_blocks;\n\t\t}",
"public static function initBlocks () {\n \n $blocks = conf::getMainIni('blocks_all');\n if (!isset($blocks)) { \n return;\n }\n \n $blocks = explode(',', $blocks);\n foreach ($blocks as $val) {\n self::$blocksContent[$val] = self::parseBlock($val);\n } \n }",
"protected function _loadBlocks( )\r\n\t{\r\n\t\t$this->debug->guard( );\r\n\r\n\t\twhile ( $startPosition = strpos( $this->content, $this->configuration->getConfiguration( 'zeitgeist', 'template', 'blockOpenBegin' ) ) )\r\n\t\t{\r\n\t\t\t// get block contents of next block\r\n\t\t\t$endPosition = strpos( $this->content, $this->configuration->getConfiguration( 'zeitgeist', 'template', 'blockClose' ), $startPosition );\r\n\t\t\tif ( $endPosition === false )\r\n\t\t\t{\r\n\t\t\t\t$this->debug->write( 'Problem loading template blocks: could not extract blocks from template', 'warning' );\r\n\t\t\t\t$this->messages->setMessage( 'Problem loading template blocks: could not extract blocks from template', 'warning' );\r\n\r\n\t\t\t\t$this->debug->unguard( false );\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t$completeBlock = substr( $this->content, $startPosition, ( $endPosition - $startPosition + strlen( $this->configuration->getConfiguration( 'zeitgeist', 'template', 'blockClose' ) ) ) );\r\n\r\n\t\t\t// find nested blocks and parse them inside out\r\n\t\t\twhile ( $startPosition = strpos( $completeBlock, $this->configuration->getConfiguration( 'zeitgeist', 'template', 'blockOpenBegin' ), 1 ) )\r\n\t\t\t{\r\n\t\t\t\t$completeBlock = substr( $completeBlock, $startPosition );\r\n\t\t\t}\r\n\r\n\t\t\t// extract the blockname\r\n\t\t\t$endPosition = strpos( $completeBlock, $this->configuration->getConfiguration( 'zeitgeist', 'template', 'blockOpenEnd' ), 0 );\r\n\t\t\tif ( $endPosition === false )\r\n\t\t\t{\r\n\t\t\t\t$this->debug->write( 'Problem loading template blocks: could not extract blockname from block', 'warning' );\r\n\t\t\t\t$this->messages->setMessage( 'Problem loading template blocks: could not extract blockname from block', 'warning' );\r\n\r\n\t\t\t\t$this->debug->unguard( false );\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t$blockDefinition = substr( $completeBlock, 0, $endPosition );\r\n\r\n\t\t\t$startPosition = strpos( $blockDefinition, 'name=\"' );\r\n\t\t\tif ( $startPosition === false )\r\n\t\t\t{\r\n\t\t\t\t$this->debug->write( 'Problem loading template blocks: could not extract blockname from block', 'warning' );\r\n\t\t\t\t$this->messages->setMessage( 'Problem loading template blocks: could not extract blockname from block', 'warning' );\r\n\r\n\t\t\t\t$this->debug->unguard( false );\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t$blockName = substr( $blockDefinition, $startPosition + 6 );\r\n\t\t\t$this->blocks[ $blockName ] = new zgTemplateBlock( );\r\n\r\n\t\t\t// extract block content\r\n\t\t\t$startPosition = strpos( $completeBlock, $this->configuration->getConfiguration( 'zeitgeist', 'template', 'blockOpenEnd' ) );\r\n\t\t\t$blockContent = substr( $completeBlock, ( $startPosition + strlen( $this->configuration->getConfiguration( 'zeitgeist', 'template', 'blockOpenEnd' ) ) ) );\r\n\t\t\t$endPosition = strpos( $blockContent, $this->configuration->getConfiguration( 'zeitgeist', 'template', 'blockClose' ) );\r\n\t\t\t$blockContent = substr( $blockContent, 0, $endPosition );\r\n\t\t\t$this->blocks[ $blockName ]->currentContent = $blockContent;\r\n\t\t\t$this->blocks[ $blockName ]->originalContent = $blockContent;\r\n\r\n\t\t\t$newBlockID = $this->configuration->getConfiguration( 'zeitgeist', 'template', 'blockSubstBegin' ) . $blockName . $this->configuration->getConfiguration( 'zeitgeist', 'template', 'blockSubstEnd' );\r\n\t\t\t$this->content = str_replace( $completeBlock, $newBlockID, $this->content );\r\n\t\t}\r\n\r\n\t\t$this->debug->unguard( true );\r\n\t\treturn true;\r\n\t}",
"public static function initBlocks() \n\t{\n\t\t\n\t\t$block_paths = apply_filters('mb-block-paths', array(MB()->get_plugin_path() . \"blocks/\") );\n\t\t \n\t\t//global $blockClass; // load requires only onc\n\n\t\t$newBlocks = array();\n\t\t$templates = array(); \n\t\t\n\t\t\n\t\tforeach($block_paths as $block_path)\n\t\t{\n\t\t\t$dir_iterator = new RecursiveDirectoryIterator($block_path, FilesystemIterator::SKIP_DOTS);\n\t\t\t$iterator = new RecursiveIteratorIterator($dir_iterator, RecursiveIteratorIterator::SELF_FIRST);\n\n\t\t\tforeach ($iterator as $fileinfo)\n\t\t\t{\n\n\t\t\t\t$path = $fileinfo->getRealPath(); \n\t\t\t\t// THIS IS PHP > 5.3.6\n\t\t\t\t//$extension = $fileinfo->getExtension(); \n\t\t\t\t$extension = pathinfo($path, PATHINFO_EXTENSION);\n\t\t\t\n\t\t\t\tif ($fileinfo->isFile() )\n\t\t\t\t{\n\t\t\t\t\tif ($extension == 'php') \n\t\t\t\t\t{\n\t\t\t\t\t \trequire_once($path);\n\t\t\t\t\t}\n\t\t\t\t\telseif($extension == 'tpl') \n\t\t\t\t\t{\t\n\t\t\t\t\t\t$filename = $fileinfo->getBasename('.tpl');\n\t\t\t\t\t\t$templates[$filename] = array('path' => $path); \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\t\tksort($blockOrder);\n\t\t\tforeach($blockOrder as $prio => $blockArray)\n\t\t\t{\n\t\t\t\tforeach($blockArray as $block)\n\t\t\t\t{\n\t\t\t\t\tif (isset($blockClass[$block]))\n\t\t\t\t\t\t$newBlocks[$block] = $blockClass[$block]; \n\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t$blockClass = $newBlocks;\n\t\t\tif (is_admin())\n\t\t\t{\n\t\t\t\t// possible issue with some hosters faking is_admin flag. \n\t\t\t\tif (class_exists( maxUtils::namespaceit('maxBlocks') ) && class_exists( maxUtils::namespaceit('maxBlocks') ) )\n\t\t\t\t{\n\t\t\t\t\tmaxField::setTemplates($templates); \n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\terror_log('[MaxButtons] - MaxField class is not set within admin context. This can cause issues when using button editor'); \n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t//$this->loadBlockClasses($blockClass); \n\t\t\n\t\tstatic::$block_classes = array_values($blockClass);\n\t}",
"function gutenberg_examples_dynamic_block_block_init() {\n\n\tregister_block_type(\n\t\t__DIR__,\n\t\tarray(\n\t\t\t'render_callback' => 'gutenberg_examples_dynamic_block_render_callback',\n\t\t)\n\t);\n}",
"public function get_page_blocks()\n\t{\n\t\t$smarty = cms_smarty();\n\t\t\n\t\t//Setup an array to store the found blocks in\n\t\t$this->blocks = array();\n\t\t\n\t\t//Create a template object using the string resource (on the fly)\n\t\t$tpl = $smarty->createTemplate('string:' . $this->content);\n\t\t\n\t\t//Pull out the existing compiler object, if one already exists\n\t\t//for this particular resource\n\t\t$cur_obj = $tpl->compiler_object;\n\t\t\n\t\t//Create a new compiler object of our own, passing in the\n\t\t//lexer and parser class names from the current resource.\n\t\t//Pop it into the old compiler's place\n\t\t$new_obj = new CmsTemplateCompiler(\n\t\t\t$tpl->resource_object->template_lexer_class,\n\t\t\t$tpl->resource_object->template_parser_class,\n\t\t\t$smarty\n\t\t);\n\t\t$tpl->compiler_object = $new_obj;\n\t\t\n\t\t//Force a compilation\n\t\t$tpl->compileTemplateSource();\n\t\t\n\t\t//Put the old compiler back now that we're done\n\t\t$tpl->compiler_object = $cur_obj;\n\t\t\n\t\t//Grab the list of blocks from our special compiler\n\t\t$this->blocks = $new_obj->blocks;\n\t\t\n\t\treturn $this->blocks;\n\t}",
"public function blocks()\n {\n $regions = $this->Block->Regions->find('active')->cache('regions', 'layoutData')->combine('id', 'alias')->toArray();\n \n foreach ($regions as $regionId => $regionAlias) {\n $this->blocksForLayout[$regionAlias] = array();\n\n $blocks = Cache::read('blocks_' . $regionAlias, 'layoutData');\n if ($blocks === false) {\n $blocks = $this->Block->find('active', array(\n 'regionId' => $regionId\n ))->toArray();\n Cache::write('blocks_' . $regionAlias, $blocks, 'layoutData');\n }\n $this->processBlocksData($blocks);\n $this->blocksForLayout[$regionAlias] = $blocks;\n }\n }",
"public function getBlocks();",
"function register_dynamic_block() {\n\n\t// Only load if Gutenberg is available.\n\tif ( ! function_exists( 'register_block_type' ) ) {\n\t\treturn;\n\t}\n\n\t$blocks = [\n\t\t'nhsjobs/jobsfeed',\n\t\t'nhsjobs/jobscards'\n\t];\n\n\tforeach ( $blocks as $block ) {\n\n\t\tregister_block_type(\n\t\t\t$block,\n\t\t\t[\n\t\t\t\t// https://github.com/WordPress/gutenberg/issues/4671\n\t\t\t\t'render_callback' => function( array $attributes, string $content = null ) use ( $block ) {\n\n\t\t\t\t\treturn template_part_block_renderer( $block, $attributes, $content );\n\t\t\t\t},\n\t\t\t]\n\t\t);\n\n\t}\n\n}",
"public function loadBlocks(): self\n {\n // Get info file path\n $infoFilePath = $this->getPath('info.php');\n\n // Fetch info data\n $info = $this->fetchInfoFile($infoFilePath);\n\n if (is_array($info)) {\n $blocks = BlockModel::findAll();\n $index = 0;\n foreach ($blocks as $block) {\n if (isset($info['blocks'][$index][0]) && isset($info['blocks'][$index][1])) {\n $block->block_key = $info['blocks'][$index][0];\n $block->title = $info['blocks'][$index][1];\n $block->validate();\n $block->save();\n } else {\n $block->delete();\n }\n ++$index;\n }\n\n $numberOfBlocks = count($info['blocks']);\n for ($index; $index <= $numberOfBlocks; ++$index) {\n if (isset($info['blocks'][$index][0]) && isset($info['blocks'][$index][1])) {\n BlockModel::create([\n 'block_key' => $info['blocks'][$index][0],\n 'title' => $info['blocks'][$index][1],\n ])->save();\n }\n }\n }\n\n return $this;\n }",
"public static function method_load_block_content() {\n\t\t\tif ( HeadwayOption::get('grid-safe-mode', false, false) ) {\n\n\t\t\t\techo '<div class=\"alert alert-red block-safe-mode\"><p>Grid Safe mode enabled. Block content not outputted.</p></div>';\n\n\t\t\t\treturn;\n\n\t\t\t}\n\n\t\t/* Go */\n\t\t$layout = headway_post('layout');\n\t\t$block_origin = headway_post('block_origin');\n\t\t$block_default = headway_post('block_default', false);\n\n\t\t$unsaved_block_settings = headway_post('unsaved_block_settings', false);\n\n\t\t/* If the block origin is a string or ID, then get the object from DB. */\n\t\tif ( is_numeric($block_origin) || is_string($block_origin) )\n\t\t\t$block = HeadwayBlocksData::get_block($block_origin);\n\n\t\t/* Otherwise use the object */\n\t\telse\n\t\t\t$block = $block_origin;\n\n\t\t/* If the block doesn't exist, then use the default as the origin. If the default doesn't exist... We're screwed. */\n\t\tif ( !$block && $block_default )\n\t\t\t$block = $block_default;\n\n\t\t/* If the block settings is an array, merge that into the origin. But first, make sure the settings exists for the origin. */\n\t\tif ( !isset($block['settings']) )\n\t\t\t$block['settings'] = array();\n\n\t\tif ( is_array($unsaved_block_settings) && count($unsaved_block_settings) && isset($unsaved_block_settings['settings']) ) {\n\n\t\t\t$block = headway_array_merge_recursive_simple($block, $unsaved_block_settings);\n\n\t\t}\n\n\t\t/* If the block is set to mirror, then get that block. */\n\t\tif ( $mirrored_block = HeadwayBlocksData::get_block_mirror($block) ) {\n\n\t\t\t$original_block = $block;\n\n\t\t\t$block = $mirrored_block;\n\t\t\t$block['original'] = $original_block;\n\n\t\t}\n\n\t\t/* Add a flag into the block so we can check if this is coming from the visual editor. */\n\t\t$block['ve-live-content-query'] = true;\n\n\t\t/* Show the content */\n\t\tdo_action('headway_block_content_' . $block['type'], $block);\n\n\t\t/* Output dynamic JS and CSS */\n\t\t\tif ( headway_post('mode') != 'grid' ) {\n\n\t\t\t\t$block_types = HeadwayBlocks::get_block_types();\n\n\t\t\t\t/* Dynamic CSS */\n\t\t\t\t\tif ( method_exists($block_types[$block['type']]['class'], 'dynamic_css') ) {\n\n\t\t\t\t\t\techo '<style type=\"text/css\">';\n\t\t\t\t\t\t\techo call_user_func(array($block_types[$block['type']]['class'], 'dynamic_css'), $block['id'], $block);\n\t\t\t\t\t\techo '</style><!-- AJAX Block Content Dynamic CSS -->';\n\n\t\t\t\t\t}\n\n\t\t\t\t/* Run enqueue action and print right away */\n\t\t\t\t\tif ( method_exists($block_types[$block['type']]['class'], 'enqueue_action') ) {\n\n\t\t\t\t\t\t/* Remove all other enqueued scripts to reduce conflicts */\n\t\t\t\t\t\t\tglobal $wp_scripts;\n\t\t\t\t\t\t\t$wp_scripts = null;\n\t\t\t\t\t\t\tremove_all_actions('wp_print_scripts');\n\n\t\t\t\t\t\t/* Remove all other enqueued styles to reduce conflicts */\n\t\t\t\t\t\t\tglobal $wp_styles;\n\t\t\t\t\t\t\t$wp_styles = null;\n\t\t\t\t\t\t\tremove_all_actions('wp_print_styles');\n\n\t\t\t\t\t\techo call_user_func(array($block_types[$block['type']]['class'], 'enqueue_action'), $block['id'], $block);\n\t\t\t\t\t\twp_print_scripts();\n\t\t\t\t\t\twp_print_footer_scripts(); /* This isn't really needed, but it's here for juju power */\n\n\t\t\t\t\t}\n\n\t\t\t\t/* Output dynamic JS */\n\t\t\t\t\tif ( method_exists($block_types[$block['type']]['class'], 'dynamic_js') ) {\n\n\t\t\t\t\t\techo '<script type=\"text/javascript\">';\n\t\t\t\t\t\t\techo call_user_func(array($block_types[$block['type']]['class'], 'dynamic_js'), $block['id'], $block);\n\t\t\t\t\t\techo '</script><!-- AJAX Block Content Dynamic JS -->';\n\n\t\t\t\t\t}\n\n\t\t\t}\n\t\t/* End outputting dynamic JS and CSS */\n\n\t}",
"public function load() {\n $this->addShortcodes();\n\n foreach ($this->loadedShortcodes as $shortcode) {\n add_shortcode($shortcode->getBase(), array($shortcode, 'renderHolders'));\n }\n }",
"function addExtraBlocks()\n{\n global $app, $handlers;\n $tree = \"\";\n $myID = 0;\n // Get the list of items we descended from for blocks.\n for($i = 0; $i < count($this->items); $i++) {\n if ($this->items[$i]['showpath']) {\n if (strlen($tree)) $tree .= \",\";\n $tree .= $this->items[$i]['CatConID'];\n }\n if ($this->items[$i]['showit']) $myID = $this->items[$i]['CatConID'];\n }\n\n $db = $app->newDBConnection();\n $sql = \"select distinct(catcon_blocks.BlockChunkID), Chunks.ChunkID, Chunks.ChunkName from catcon_blocks, Chunks where Chunks.ChunkID = catcon_blocks.BlockChunkID and ((catcon_blocks.CatConID in ($tree) and catcon_blocks.IncludeChildren > 0) or catcon_blocks.CatConID = $myID)\";\n $result = mysql_query($sql, $db);\n if ($result && mysql_num_rows($result)) {\n $app->loadHandler(\"block\");\n while ($curRow = mysql_fetch_array($result)) {\n $handlers[\"block\"]->showChunk($curRow[\"ChunkName\"]);\n }\n }\n\n\n\n\n}",
"function init(){\n\t\tparent::init();\n\n\t\t$add_blocks = $this->add('xShop/Model_AddBlock');\n\t\t$i=0;\n\t\tforeach ($add_blocks as $junk) {\n\t\t\t$lister = $this->add('xShop/View_Lister_AddBlock');\n\t\t\t$images = $this->add('xShop/Model_BlockImages');\n\t\t\t$images->addCondition('block_id',$add_blocks->id);\n\t\t\t$lister->setModel($images);\n\t\t\t$lister->addClass('.carousel-'.$i);\n\t\t\t$this->js(true)->carousel('.carousel-'.$i,1000);\n\t\t\t$i++;\n\t\t}\n\n\t}",
"public function autoload()\n {\n $blocks = OnixBlock::all();\n\n $finalData = [];\n // Loop those componenets\n foreach ($blocks as $key => $value) {\n if (empty($value->content)) {\n continue;\n }\n $html = (array)json_decode($value->content);\n\n // Scripts\n $scripts = explode('<script>', $html['gjs-html']);\n // Check if is a valid array\n if (is_array($scripts)) {\n $scripts = str_replace('</script>', '', $scripts[1]);\n }\n\n $finalData[] = [\n 'name' => $value->label,\n 'category' => $value->category,\n 'content' => $html['gjs-html'],\n 'script' => $scripts,\n ];\n }\n\n // Example component loading\n return response()->json([\n 'data' => $finalData\n ]);\n }",
"public function swami_blocks_register()\n {\n /**\n * Registra il block nel front end\n */\n wp_register_script(\n 'swami_block_script_editor',\n plugins_url($this->assets_dir . '/js/editor-bundle.js', __FILE__),\n array('wp-blocks','wp-block-editor','wp-i18n', 'wp-element'),\n time()\n );\n\n wp_register_style(\n 'swami_block_style',\n plugins_url($this->assets_dir . '/css/style-bundle.css', __FILE__)\n );\n\n $this->swami_register_blocktype('swami-startblock');\n\n }",
"function acf_init_blocks() {\n \tif( function_exists('acf_register_block') ) {\n /* comment out any blocks to omit */\n $blocks = [\n 'accordion',\n 'contact',\n 'image-banner',\n 'image-button',\n ];\n\n foreach ($blocks as $block) {\n require_once \"registration/$block.php\"; // register block\n }\n \t}\n }",
"public function blocks()\n {\n $regions = $this->controller->Block->Region->find('list', array(\n 'conditions' => array(\n 'Region.block_count >' => '0',\n ),\n 'fields' => array(\n 'Region.id',\n 'Region.alias',\n ),\n 'cache' => array(\n 'name' => 'croogo_regions',\n 'config' => 'croogo_blocks',\n ),\n ));\n \n //Visibility paths\n $visibility = array();\n $visibility[] = array('Block.visibility_paths'=>'');\n $visibility[] = array('Block.visibility_paths LIKE'=>'%\"'.$this->controller->params['url']['url'].'\"%');\n $visibility[] = array('Block.visibility_paths LIKE'=>'%\"' . 'controller:' . $this->controller->params['controller'] . '/' . 'action:' . $this->controller->params['action'] . '\"%');\n \n if(isset($this->controller->params['type']))\n {\n $visibility[] = array('Block.visibility_paths LIKE'=>'%\"' . 'controller:' . $this->controller->params['controller'] . '/' . 'action:' . $this->controller->params['action'] . '/' . 'type:' . $this->controller->params['type'] . '\"%');\n }\n \n if(isset($this->controller->params['slug']))\n {\n $visibility[] = array('Block.visibility_paths LIKE'=>'%\"' . 'controller:' . $this->controller->params['controller'] . '/' . 'action:' . $this->controller->params['action'] . '/' . 'slug:' . $this->controller->params['slug'] . '\"%');\n }\n \n foreach ($regions AS $regionId => $regionAlias) {\n $this->blocks_for_layout[$regionAlias] = array();\n $findOptions = array(\n 'conditions' => array(\n 'Block.status' => 1,\n 'Block.region_id' => $regionId,\n 'AND' => array(\n array(\n 'OR' => array(\n 'Block.visibility_roles' => '',\n 'Block.visibility_roles LIKE' => '%\"' . $this->Croogo->roleId . '\"%',\n ),\n ),\n array(\n 'OR' => $visibility,\n )\n ),\n ),\n 'order' => array(\n 'Block.weight' => 'ASC'\n ),\n 'cache' => array(\n 'prefix' => 'croogo_blocks_'.$regionAlias.'_'.$this->Croogo->roleId.'_blockanywhere_',\n 'config' => 'croogo_blocks',\n ),\n 'recursive' => '-1',\n );\n $blocks = $this->controller->Block->find('all', $findOptions);\n $this->Croogo->processBlocksData($blocks);\n $this->blocks_for_layout[$regionAlias] = $blocks;\n }\n \n $this->Croogo->blocks_for_layout = $this->blocks_for_layout;\n }",
"function load_direct_blocks($module_name = '', $parameters = array())\n\t\t{\n\t\t\tinclude_once 'libraries/parameters.php';\n\t\t\t$parameters = new Parameters($parameters,'array');\n\t\t\tif(file_exists(PATH_BASE . 'eblocks' . DS . $module_name . DS .'controllers' .DS. $module_name . '.php')){\n\t\t\t\trequire_once 'eblocks/'.$module_name.'/controllers/'.$module_name.'.php';\n\t\t\t\t$c = ucfirst($module_name).'BControllers'.ucfirst($module_name);\n\t\t\t\t$controller = new $c();\n\t\t\t\t$controller->display($parameters,$module_name);\n\t\t\t}\n//\t\t\tif(file_exists(PATH_BASE . DS . 'blocks' . DS . $module_name . DS . $module_name . '.php'))\n//\t\t\t\trequire 'blocks/'.$module_name.'/'.$module_name.'.php';\n\t\t}",
"public function core_blocks_init() {\n\n $core_blocks_dir = get_stylesheet_directory() . '/' . $this->get_config()->get('componentBlocksLocation') . 'core';\n if( file_exists($core_blocks_dir) ) {\n\n // Scan blocks dir and loop each block\n $core_blocks_scan = scandir( $core_blocks_dir );\n foreach( $core_blocks_scan as $core_block ) {\n\n if( is_dir( $core_blocks_dir . '/' . $core_block ) && $core_block != '..' && $core_block != '.' ) {\n Main::getInstance()->get_core_block_instance( 'core/' . $core_block );\n }\n }\n }\n }",
"public static function parseBlock($block){\n\n $blocks = array();\n if (isset(conf::$vars['coscms_main'][$block],conf::$vars['coscms_main']['module'][$block])){\n $blocks = array_merge(conf::$vars['coscms_main'][$block], conf::$vars['coscms_main']['module'][$block]);\n } else if (isset(conf::$vars['coscms_main'][$block])) {\n $blocks = conf::$vars['coscms_main'][$block];\n } else if (isset(conf::$vars['coscms_main']['module'][$block])){\n $blocks = conf::$vars['coscms_main']['module'][$block];\n } else {\n return $blocks;\n }\n\n $ret_blocks = array();\n foreach ($blocks as $val) {\n \n // numeric is custom block added to database\n if (is_numeric($val)) {\n moduleloader::includeModule('blocks');\n $row = blocks::getOne($val); \n $row['content_block'] = moduleloader::getFilteredContent(\n conf::getModuleIni('blocks_filters'), $row['content_block']\n );\n $row['title'] = htmlspecialchars($row['title']);\n $content = view::get('blocks', 'block_html', $row);\n $ret_blocks[] = $content;\n continue;\n }\n \n if ($val == 'module_menu'){\n $ret_blocks[] = self::getMainMenu();\n continue; \n }\n $func = explode('/', $val);\n $num = count($func) -1;\n $func = explode ('.', $func[$num]);\n $func = 'block_' . $func[0];\n $path_to_function = conf::pathModules() . \"/$val\";\n include_once $path_to_function;\n ob_start();\n $ret = $func();\n if ($ret) {\n $ret_blocks[] = $ret; \n } else {\n $ret_blocks[] = ob_get_contents();\n ob_end_clean();\n }\n }\n return $ret_blocks;\n }",
"public function onPageContentProcessed(){\n if ($this->config->get('plugins.detect-adblock.inside.blockreading.enabled')) {\n // Get content of template\n $pageContent = $this->grav['twig']->processTemplate('partials/detect-adblock-inside.html.twig');\n\n // Search for tags and replace it\n $content = $this->grav['page']->getRawContent();\n $content = preg_replace(\"#<([a-z]{1,5})>---dab---</([a-z]{1,5})>#i\", '<div id=\"dab-content-begin\" style=\"display:none;\">' . $pageContent . '</div>', $content);\n $content = preg_replace(\"#<([a-z]{1,5})>---/dab---</([a-z]{1,5})>#i\", '<div id=\"dab-content-end\"></div>', $content);\n $this->grav['page']->setRawContent($content);\n }\n }",
"public static function block_assets() {\n\t\twp_enqueue_style( 'wprm-blocks', WPRM_URL . 'dist/blocks.css', array(), WPRM_VERSION, 'all' );\n\t\twp_enqueue_script( 'wprm-blocks', WPRM_URL . 'dist/blocks.js', array( 'wp-i18n', 'wp-element', 'wp-blocks', 'wp-components', 'wp-editor' ), WPRM_VERSION );\n\t\twp_enqueue_style( 'wprm-public', WPRM_URL . 'dist/public-' . WPRM_Settings::get( 'recipe_template_mode' ) . '.css', array(), WPRM_VERSION, 'all' );\n\t}",
"function content_5a6348239257d5_69690454 ($_smarty_tpl) {\n$_smarty_tpl->_loadInheritance();\n$_smarty_tpl->inheritance->init($_smarty_tpl, false);\n$_smarty_tpl->compiled->nocache_hash = '19053391925a634823923418_62318112';\n$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_16266189335a634823929211_03748074', \"title\");\n?>\n\n<?php \n$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_3582387205a63482393dc44_47667908', \"content\");\n?>\n\n<?php \n$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_21145414015a634823943220_11318792', \"script\");\n}",
"public static function register_blocks() {\n\t\t$blocks = [\n\t\t\t'FeaturedCategory',\n\t\t\t'FeaturedProduct',\n\t\t\t'HandpickedProducts',\n\t\t\t'ProductBestSellers',\n\t\t\t'ProductCategories',\n\t\t\t'ProductCategory',\n\t\t\t'ProductNew',\n\t\t\t'ProductOnSale',\n\t\t\t'ProductsByAttribute',\n\t\t\t'ProductTopRated',\n\t\t\t'ProductTag',\n\t\t];\n\t\tforeach ( $blocks as $class ) {\n\t\t\t$class = __NAMESPACE__ . '\\\\BlockTypes\\\\' . $class;\n\t\t\t$instance = new $class();\n\t\t\t$instance->register_block_type();\n\t\t}\n\t}",
"public function admin_manage_ad_blocks_page()\n\t{\n\t\t// set up the vars\n\t\t$instance = naked_ad_blocks::get_instance();\n\t\t$ad_blocks = $instance->get_ad_blocks();\n\t\t$vars = $this->_get_template_vars( 'ad_block' );\n\t\textract( $vars );\n\n\t\t$tpl_path = dirname(__DIR__) . '/views/ad_blocks.php';\n\t\tinclude( $tpl_path );\n\t}"
] | [
"0.7902997",
"0.7034084",
"0.70114124",
"0.6842265",
"0.6768447",
"0.66982996",
"0.65362126",
"0.6361627",
"0.63312334",
"0.63250715",
"0.62891173",
"0.6232895",
"0.6196127",
"0.6191432",
"0.615206",
"0.6077997",
"0.6066163",
"0.6059599",
"0.601469",
"0.5981038",
"0.5980109",
"0.5954291",
"0.592673",
"0.59046966",
"0.58970314",
"0.5863492",
"0.58588505",
"0.5857804",
"0.5856711",
"0.5822086"
] | 0.8424434 | 0 |
loadLists This load the lists to this dynamic content tag | public function loadLists() {
$tmpList = array();
$query = "SELECT * FROM [|PREFIX|]list_tags list"
. " WHERE list.tagid = '". $this->getTagId() . "'"
;
$result = $this->db->Query($query);
while ($row = $this->db->Fetch($result)) {
$tmpList[] = $row['listid'];
}
$this->setLists($tmpList);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function loadWordsList();",
"private static function listLoaded()\n {\n if(empty(self::$list)) {\n self::loadList();\n }\n }",
"private function load() {\n\t\t$jsonData = $this->client->getList($this->page['current'], $this->page['size']);\n\t\t$this->page = $jsonData['page'];\n\t\t$this->list = array_map([$this, 'transformListResponse'], $jsonData['data']);\n\t\t$this->printPage();\n\t}",
"public function loadList() {\n\t\t$this->buildSelect();\n\t\tif ($data = $this->db->query($this->qry->build())) {\n\t\t\t$this->idx = 0;\n\t\t\t$this->rows = $data;\n\t\t}\n\t}",
"public function loadList() {\n\t\n\t\tglobal $db, $user;\n\t\t\n\t\t// Compile task query\n\t\t$task_query=\"SELECT t.id, t.user_id as uid, 0 as hid, t.guid as guid, 0 as template, \n\t\t\tt.date_added, date_format(t.date_added, '%D %M %Y') as added, \n\t\t\tt.title, pg.title as page_title,\n\t\t\tg.name as `group`,\n\t\t\tu2.full_name as `from`\n\t\t\tFROM tasks t\n\t\t\tINNER JOIN sites_versions sv ON sv.msv = t.msv\n\t\t\tLEFT OUTER JOIN permissions p ON sv.microsite=p.guid\n\t\t\tLEFT JOIN groups g on p.`group`=g.id\n\t\t\tLEFT OUTER JOIN pages pg ON t.guid = p.guid\n\t\t\tLEFT OUTER JOIN users u on (p.`group` = u.`group` AND t.user_id=u.id)\n\t\t\tLEFT OUTER JOIN users u2 ON t.user_added=u2.id\n\t\t\tWHERE t.msv=\".$this->msv.\" AND \n\t\t\t\t(\n\t\t\t\tt.user_id=\".$user->id.\" \n\t\t\t\tOR (t.user_id=0 AND p.level>=t.`group`)\n\t\t\t\t) \n\t\t\tAND completed is NULL\n\t\t\tGROUP by t.id\";\n\t\t$publish_query=\"SELECT 0 as id, 0 as uid, h.id as hid, p.guid, p.template, \n\t\t\th.date_added, date_format(h.date_added, '%D %M %Y') as added, \n\t\t\th.table as title, p.title as page_title,\n\t\t\t'Publisher' as `group`, \n\t\t\t'' AS `from`\n\t\t\tFROM history h\n\t\t\tINNER JOIN pages p on h.guid=p.guid\n\t\t\tWHERE h.action='publish' AND h.completed_action IS NULL\n\t\t\tAND h.msv=\".$this->msv.\"\n\t\t\tGROUP by p.guid, h.info\n\t\t\tORDER BY date_added ASC\";\n\t\t//print \"$task_query<br>\\n\";\n\t\t//print \"<!-- $task_query UNION $publish_query --> \\n\";\n\t\t\n\t\t// Get the task count for this user\n\t\t$this->tasklist=$db->get_results($task_query.\" UNION \".$publish_query);\n\t\t$this->total=$db->num_rows;\n\t\t\n\t\treturn;\n\t}",
"public function loadContent()\n {\n $this->setSortable();\n $objFest = $this->getFest();\n $this->addButtonNew();\n $aryItems = $this->getItems();\n $objCurrentUser = \\Beerfest\\Core\\Auth::getActiveUser();\n if(is_object($objFest->getCurrentItem()))\n {\n $intCurrentItem = $objFest->getCurrentItem()->getId();\n }\n else $intCurrentItem = null;\n if(count($aryItems))\n {\n foreach($aryItems as $intKey => $objItem)\n {\n $aryItem = $objItem->getAll();\n $strId = $objItem->getCryptId();\n $objSelect = new Select();\n $objSelect->setAttributes(array('data-role' => 'slider', 'data-fest' => $objFest->getCryptId(), 'data-item' => $strId, 'data-module' => 'Item', 'data-mini' => true, 'class' => 'toggle'));\n $objSelect->addOption(0, _NO);\n $objSelect->addOption(1, _YES);\n if($intCurrentItem == $objItem->getId() || $objFest->isFestAdmin() === false)\n {\n $objSelect->setSelected(1);\n $objSelect->setDisabled(true);\n }\n $aryItem[self::COL_ACTIVE] = $objSelect->getHtml();\n $objRow = $this->addRow($intKey, $aryItem);\n if($objCurrentUser->isAdmin())\n {\n $objRow->setEdit($strId);\n $objRow->setDelete($strId);\n }\n $objRow->setId($strId);\n }\n }\n }",
"public function loadListItemsByListId()\n\t{\n\t\t$sql = \"SELECT ListText, ListItemID, ListItemColor, ListItemDone\n\t\t\t\tFROM list_items\n\t\t\t\tWHERE ListID=(\n\t\t\t\t\tSELECT ListID\n\t\t\t\t\tFROM lists\n\t\t\t\t\tWHERE ListURL=:list\n\t\t\t\t) \n\t\t\t\tORDER BY ListItemPosition\";\n\t\tif($stmt = $this->_db->prepare($sql)) {\n\t\t\t$stmt->bindParam(':list', $_GET['list'], PDO::PARAM_STR);\n\t\t\t$stmt->execute();\n\t\t\t$order = 1;\n\t\t\twhile($row = $stmt->fetch())\n\t\t\t{\n\t\t\t\techo $this->formatListItems($row, $order);\n\t\t\t\t++$order;\n\t\t\t}\n\t\t\t$stmt->closeCursor();\n\t\t} else {\n\t\t\techo \"<li> Something went wrong. \", $db->error, \"</li>\";\n\t\t}\n\t}",
"private static function loadList()\n {\n self::$list = (require 'source.php');\n }",
"public function populateList() : void\n {\n $this->load->model('StockLists_model');\n $lists = $this->StockLists_model->getStockLists($this->user_id);\n echo json_encode($lists);\n }",
"public function LoadList()\n {\n $this->SetCulture();\n $this->user_types_list = $this->GetUserTypesList();\n }",
"public function actionLoadList($list){\n\t\tswitch($list){\n\t\t\tcase 'current' : $filter = array(Job::CREATED, JOB::SCHEDULED, Job::INVOICED, Job::PAID, Job::ORDERED, Job::COUNTED, Job::PRINTED); break;\n\t\t\tcase 'canceled' : $filter = Job::CANCELED; break;\n\t\t\tcase 'completed' : $filter = Job::COMPLETED; break;\n\t\t\tdefault : $filter = null; break;\n\t\t}\n\t\t$jobs = Job::listJobsByStatus($filter);\n\t\t$dataProvider = new CArrayDataProvider($jobs, array(\n\t\t\t'keyField'=>'ID',\n\t\t\t'pagination'=>false,\n\t\t));\n\t\t\n\t\t$this->renderPartial('_listSection', array(\n\t\t\t'dataProvider'=>$dataProvider,\n\t\t\t'statuses'=> CHtml::listData(Lookup::listItems('JobStatus'), 'ID', 'TEXT'),\n\t\t));\n\t}",
"public function getLoadsList(){\n return $this->_get(5);\n }",
"function category_list_load($parameters){\n\t\tif ($this->module_debug){ $this->call_command(\"UTILS_DEBUG_ENTRY\",array($this->module_name,\"category_list_load\",__LINE__,\"\".print_r($parameters,true).\"\"));}\n\t\t$identifier \t\t= $this->check_parameters($parameters,\"identifier\",-1);\n\t\t$returntype \t\t= $this->check_parameters($parameters,\"returntype\",-1);\n\t\t$list\t\t\t\t= $this->check_parameters($parameters,\"list\", -1);\n\t\t$rank\t\t\t\t= $this->check_parameters($parameters,\"rank\", 0);\n\t\t$recache \t\t\t= $this->check_parameters($parameters,\"recache\",-1);\n\t\t$optionList\t\t\t= $this->check_parameters($parameters,\"optionList\",0);\n\t\t$selected\t\t\t= $this->check_parameters($parameters,\"selected\",0);\n\t\t$limit \t\t\t\t= $this->check_parameters($parameters,\"limit\",\"\");\n\t\t$data_files \t\t= $this->parent->site_directories[\"DATA_FILES_DIR\"];\n\t\t$file \t\t\t\t= $data_files.\"/category_\".$this->client_identifier.\"_\".$identifier.\".xml\";\n\t\t$out \t\t\t\t= \"\";\n\t\t$this->loadedCatList= Array(); // reset array and load with they following details\n\t\tif ($this->module_debug){ $this->call_command(\"UTILS_DEBUG_ENTRY\",array($this->module_name,\"category_list_load\",__LINE__,\"load $recache, $identifier, $returntype, $list\"));}\n\t\t\n\t\tif ($returntype != -1){\n\t\t\tif ($rank==0){\n\t\t\t\t$sql\t\t= \"select * from category\n\t\t\t\t\t\t\t\twhere cat_client = $this->client_identifier and cat_list_id = $list\n\t\t\t\t\t\t\t\torder by cat_parent, cat_label, cat_identifier\";\n\t\t\t} else {\n\t\t\t\t$sql\t\t= \"select category.*, category_ranking.cr_rank from category\n\t\t\t\t\t\t\t\t\tleft outer join category_ranking on cr_cat = cat_identifier and cr_client = cat_client\n\t\t\t\t\t\t\t\twhere cat_client= $this->client_identifier and cat_list_id = $list\n\t\t\t\t\t\t\t\torder by cat_parent, cr_rank, cat_label, cat_identifier\";\n\t\t\t}\n\t\t\tif ($this->module_debug){ $this->call_command(\"UTILS_DEBUG_ENTRY\",array($this->module_name,__FUNCTION__.\"::SQL\",__LINE__,\"$sql\"));}\n\t\t\t$result = $this->call_command(\"DB_QUERY\",array($sql));\n\t\t\t$pos = 0; // start with empty array\n\t\t\twhile ($r = $this->call_command(\"DB_FETCH_ARRAY\",array($result))){\n\t\t\t\t$this->loadedCatList[$pos]= Array(\n\t\t\t\t\t\"cat_label\"\t\t=> $r[\"cat_label\"],\n\t\t\t\t\t\"cat_parent\"\t=> $r[\"cat_parent\"],\n\t\t\t\t\t\"cat_identifier\"=> $r[\"cat_identifier\"],\n\t\t\t\t\t\"cat_list_id\"\t=> $r[\"cat_list_id\"]\n\t\t\t\t);\n\t\t\t\t$pos++;\n\t\t\t}\n\t\t\t$this->call_command(\"DB_FREE\",array($result));\n\t\t\treturn $this->loadedCatList;\n\t\t} else {\n\t\t\tif (file_exists($file) && $recache==-1){\n\t\t\t\t$out = join(\"\",file($file));\n\t\t\t} else {\n\t\t\t\tif ($identifier!=-1){\n\t\t\t\t\tif ($rank==0){\n\t\t\t\t\t\t$sql\t\t= \"select * from category\n\t\t\t\t\t\t\t\t\t\twhere cat_client= $this->client_identifier and cat_list_id = $identifier\n\t\t\t\t\t\t\t\t\t\torder by cat_parent, cat_label, cat_identifier\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$sql\t\t= \"select category.*, category_ranking.cr_rank from category\n\t\t\t\t\t\t\t\t\t\t\tleft outer join category_ranking on cr_cat = cat_identifier and cr_client = cat_client\n\t\t\t\t\t\t\t\t\t\twhere cat_client= $this->client_identifier and cat_list_id = $identifier\n\t\t\t\t\t\t\t\t\t\torder by cat_parent, cr_rank, cat_label, cat_identifier\";\n\t\t\t\t\t}\n\t\t\t\t\tif ($this->module_debug){ $this->call_command(\"UTILS_DEBUG_ENTRY\",array($this->module_name,__FUNCTION__.\"::SQL\",__LINE__,\"$sql\"));}\n\t\t\t\t\t$result = $this->call_command(\"DB_QUERY\",array($sql));\n\t\t\t\t\t$pos = 0; // start with empty array\n\t\t\t\t\twhile ($r = $this->call_command(\"DB_FETCH_ARRAY\",array($result))){\n\t\t\t\t\t\t$this->loadedCatList[$pos]= Array(\n\t\t\t\t\t\t\t\"cat_label\"\t\t=> $r[\"cat_label\"],\n\t\t\t\t\t\t\t\"cat_parent\"\t=> $r[\"cat_parent\"],\n\t\t\t\t\t\t\t\"cat_identifier\"=> $r[\"cat_identifier\"],\n\t\t\t\t\t\t\t\"cat_url\"\t\t=> \"\"\n\t\t\t\t\t\t);\n\t\t\t\t\t\t$pos++;\n\t\t\t\t\t}\n\t\t\t\t\tif($optionList==1){\n\t\t\t\t\t\treturn $this->array_to_options($this->loadedCatList, $identifier, \"\", $limit, $selected);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->call_command(\"DB_FREE\",array($result));\n\t\t\t\t\t\t$out = $this->cache_categories($identifier,$identifier,$data_files.\"/category_\".$this->client_identifier.\"_\".$identifier);\n//\t\t\t\t\t\t$out = $this->return_categories($identifier);\n\t\t\t\t\t\t$fp = fopen($data_files.\"/category_\".$this->client_identifier.\"_\".$identifier.\".xml\",\"w\");\n\t\t\t\t\t\tfwrite($fp, $out);\n\t\t\t\t\t\tfclose($fp);\n\t\t\t\t\t\t$um = umask(0);\n\t\t\t\t\t\t@chmod($file, LS__FILE_PERMISSION);\n\t\t\t\t\t\tumask($um);\n\t $out = join(\"\",file($file));\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif($optionList==1){\n\t\t\t\t\t\tif ($rank==0){\n\t\t\t\t\t\t\t$sql\t\t= \"select * from category\n\t\t\t\t\t\t\t\t\t\t\twhere cat_client= $this->client_identifier and cat_list_id = $identifier\n\t\t\t\t\t\t\t\t\t\t\torder by cat_parent, cat_label, cat_identifier\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$sql\t\t= \"select category.*, category_ranking.cr_rank from category\n\t\t\t\t\t\t\t\t\t\t\t\tleft outer join category_ranking on cr_cat = cat_identifier and cr_client = cat_client\n\t\t\t\t\t\t\t\t\t\t\twhere cat_client= $this->client_identifier and cat_list_id = $identifier\n\t\t\t\t\t\t\t\t\t\t\torder by cat_parent, cr_rank, cat_label, cat_identifier\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($this->module_debug){ $this->call_command(\"UTILS_DEBUG_ENTRY\",array($this->module_name,__FUNCTION__.\"::SQL\",__LINE__,\"$sql\"));}\n\t\t\t\t\t\t$result = $this->call_command(\"DB_QUERY\",array($sql));\n\t\t\t\t\t\t$pos = 0; // start with empty array\n\t\t\t\t\t\twhile ($r = $this->call_command(\"DB_FETCH_ARRAY\",array($result))){\n\t\t\t\t\t\t\t$this->loadedCatList[$pos]= Array(\n\t\t\t\t\t\t\t\t\"cat_label\"\t\t=> $r[\"cat_label\"],\n\t\t\t\t\t\t\t\t\"cat_parent\"\t=> $r[\"cat_parent\"],\n\t\t\t\t\t\t\t\t\"cat_identifier\"=> $r[\"cat_identifier\"],\n\t\t\t\t\t\t\t\t\"cat_url\"\t\t=> \"\"\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t$pos++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn $this->array_to_options($this->loadedCatList, $identifier, \"\", $limit, $selected);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $out;\n\t}",
"public function loadListsOnLogin()\n {\n //$this->getList('ctsMemberList');\n }",
"public function loadBlocks () {\n $tmpBlock = array();\n $query = \"SELECT * FROM [|PREFIX|]dynamic_content_block dcb\"\n . \" WHERE dcb.tagid = '\". $this->getTagId() . \"'\"\n . \" ORDER BY dcb.sortorder ASC\"\n ;\n\n $result = $this->db->Query($query);\n while ($row = $this->db->Fetch($result)) {\n $tmpBlock[] = new DynamicContentTag_Api_Block($row['blockid'], $row['name'], $row['rules'], $row['activated'], $row['sortorder'], $this->getTagId());\n }\n $this->setBlocks($tmpBlock);\n }",
"private function load_articles() {\n $this->articleList = $this->clean_file_list($this->scan_articles());\n return $this->articleList;\n }",
"public function load() {\n $this->addShortcodes();\n\n foreach ($this->loadedShortcodes as $shortcode) {\n add_shortcode($shortcode->getBase(), array($shortcode, 'renderHolders'));\n }\n }",
"public function createList(){\n global $vues;\n require_once($vues['newList']);\n }",
"public function load()\n {\n $sql = \"SELECT itemId FROM `{$this->tbl}`\"\n . \"\\nWHERE itemType = \"\n . Claroline::getDatabase()->quote( $this->itemType );\n \n if( $this->listId )\n {\n $sql .= \"\\nAND listId = \"\n . Claroline::getDatabase()->escape( $this->listId );\n }\n \n $sql .= \"\\nORDER BY rank ASC\";\n \n $itemList = Claroline::getDatabase()->query( $sql );\n $this->itemList = array();\n \n if( $itemList->numRows() )\n {\n foreach( $itemList as $itemData )\n {\n $itemId = $itemData[ 'itemId' ];\n $this->itemList[ $itemId ] = new $this->itemClassName( $itemId );\n }\n }\n }",
"public function consultPublicLists(){\n global $vues;\n $l_manager=new ListManager();\n $lists=$l_manager->getByUser(null);\n require_once($vues['displayLists']);\n }",
"abstract public function get_list();",
"function Lists() {\r\n\t\tglobal $wpdb;\r\n\t\t$this->load_model('Lists');\r\n\t\t$this->set_list_category();\r\n\t\t$this->set_properties();\t\t\r\n\r\n\t\t$rowPerpageli = 5;\r\n\t\t$objects = $this->Lists->find(array(\r\n\t\t 'conditions' => array(\r\n\t\t\t 'Lists.active' => 1,\r\n\t\t\t),\r\n\t\t\t'order' => 'Lists.list_name ASC',\r\n\t\t\t'page' => 1,\r\n\t\t\t'per_page' => $rowPerpageli,\r\n\t\t\t\r\n\t\t));\r\n\t\t$this->set('objects', $objects);\r\n// \t\tforeach ($objects as $obj){\t\r\n// \t\t\tif($obj->import_type=='csv'){\r\n// \t\t\t\t$sqllis = \"SELECT count(*) as count FROM \".$wpdb->prefix.\"contacts WHERE list_id = {$obj->id}\";\r\n// \t\t\t\t$reslis[$obj->id] =$wpdb->get_results($sqllis);\r\n// \t\t\t}elseif($obj->import_type=='onesite'){\r\n// \t\t\t\t\r\n// \t\t\t}\r\n// \t\t\t\r\n// \t\t}\r\n\t\t\r\n\t\t$totalObjectsli = $this->Lists->find(\r\n array(\r\n\t\t 'conditions' => array(\r\n\t\t\t 'Lists.active' => 1,\r\n\t\t\t ),\r\n\t\t\t 'order' => 'Lists.list_name DESC',\r\n\t\t )\r\n );\r\n\t\t\r\n\t\t$totalli = count($totalObjectsli);\r\n\t\t$num_of_pagesli = ceil($totalli/$rowPerpageli);\r\n\r\n// \t\t$this->set('contacts', $reslis);\r\n\t\t$this->set('objects', $objects);\r\n\t\t$this->set('num_of_pages', $num_of_pagesli);\r\n\t\t$this->set('rowPerpage', $rowPerpageli);\r\n\t\t$this->set_pagination($objects);\r\n\t}",
"public function displayList(){\n global $vues;\n $id_list=Validation::nettoyer_int($_GET['id_list']);\n $list_name=Validation::nettoyer_string($_GET['list_name']);\n $l_manager=new TaskManager();\n $res=$l_manager->getTasks($id_list);\n require_once($vues['viewList']);\n }",
"public function lists();",
"public function load($templates);",
"public function loadList($schema, $dataType, $filter = [], $json = false);",
"protected function queryListings()\n {\n $results = $this->findAllContentBlocks();\n $array_chunks = array_chunk($results, $this->max_row_view);\n\n if (!empty($array_chunks[$this->page_id - 1]))\n {\n foreach ($array_chunks[$this->page_id - 1] as $content_block)\n {\n $this->list_results[$content_block->getHandle()] = $content_block;\n }\n }\n }",
"protected function loadChildren() {\n }",
"function lists()\n {\n \tif ($this->lists) {\n \t\treturn $this->lists;\n \t}\n \t\n \t$lists = parent::lists();\n \t$this->lists = $lists['data'];\n \t\n \tforeach ($this->lists as $list) {\n \t\t$this->ids_lists[$list['id']] = $list;\n \t}\n \t\n \treturn $this->lists;\n }",
"function LoadList ($userID = null) {\n\t\t$vocabfile = $this->ListPath($userID);\n\t\t$q = 1;\n\t\tif ($vocabfile) {\n\t\t\t$this->list = $this->VocabFileToArray($vocabfile);\n\t\t} else{\n\t\t\t$this->list = array();\n\t\t}\n//\t\tprint __FUNCTION__.\": $vocabfile\";\n\t\treturn $this->list;\n\t}"
] | [
"0.65601987",
"0.6529157",
"0.6312967",
"0.6160309",
"0.60580343",
"0.60186446",
"0.60167253",
"0.60150677",
"0.6010541",
"0.5924827",
"0.58835137",
"0.58646715",
"0.5832072",
"0.58020896",
"0.57837594",
"0.5755374",
"0.5754832",
"0.5714186",
"0.5690457",
"0.56380254",
"0.56324065",
"0.56262726",
"0.5621305",
"0.56152517",
"0.55932504",
"0.5543465",
"0.54921937",
"0.5467421",
"0.5434752",
"0.5379317"
] | 0.7970935 | 0 |
save This will save all the items related to dynamic content tags. E.g. Lists and content blocks. | public function save() {
if (!sizeof($this->blocks)) {
return false;
}
// tag saving
$this->db->StartTransaction();
if ($this->tagId == 0) {
$query = "INSERT INTO [|PREFIX|]dynamic_content_tags";
$query .= " (name, createdate, ownerid)";
$query .= " VALUES";
$query .= " ('" . $this->db->Quote(trim($this->name)) . "', '" . intval($this->createdDate) . "', '" . intval($this->ownerId) . "')";
$result = $this->db->Query($query);
if (!$result) {
$this->db->RollBackTransaction();
return false;
}
$this->tagId = $this->db->LastId('[|PREFIX|]dynamic_content_tags');
} else {
$query = "UPDATE [|PREFIX|]dynamic_content_tags SET ";
$query .= " name='" . $this->db->Quote(trim($this->name)). "', ";
$query .= " createdate='" . intval($this->createdDate) . "' ";
$query .= " WHERE tagid=" . $this->tagId;
$result = $this->db->Query($query);
if (!$result) {
$this->db->RollBackTransaction();
return false;
}
}
// list tag saving
if (is_array($this->lists) && sizeof($this->lists)) {
$query = "DELETE FROM [|PREFIX|]list_tags WHERE tagid=" . $this->tagId;
$result = $this->db->Query($query);
if (!$result) {
$this->db->RollBackTransaction();
return false;
}
foreach ($this->lists as $eachList) {
$query = "INSERT INTO [|PREFIX|]list_tags";
$query .= " (tagid, listid)";
$query .= " VALUES";
$query .= " ('" . intval($this->tagId) . "', '" . intval($eachList) . "')";
$result = $this->db->Query($query);
if (!$result) {
$this->db->RollBackTransaction();
return false;
}
}
}
// block saving
foreach ($this->blocks as $eachBlock) {
$eachBlock->setTagId($this->tagId);
if(!$eachBlock->save()) {
$this->db->RollBackTransaction();
return false;
}
}
$this->db->CommitTransaction();
return $this->tagId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function saved($item_id) {\n\n\t\t$IC = new Items();\n\t\t$item = $IC->getItem([\"id\" => $item_id, \"extend\" => true]);\n\n\t\t$_POST[\"tags\"] = \"blog:\".$item[\"name\"];\n\t\t$this->addTag([\"addTag\", $item_id]);\n\n\t}",
"public function save()\n\t{\n\t\t$this->_freetag->tag_object($this->get('userid'), $this->get('record'), $this->get('tagname'), $this->get('module'));\n\t}",
"public function save()\n {\n $file = $this->file();\n if ($file) {\n $file->save($this->items);\n }\n }",
"function save() {\n\t\t// loop through sets\n\t\t$config = apply_filters('cf_meta_save_config', $this->config);\n\t\tif (count($config)) {\n\t\t\tforeach ($config as $set) {\n\t\t\t\t// process each input in a set\n\t\t\t\tforeach ($set['items'] as $item) {\n\t\t\t\t\tif ($item['type'] == 'block') {\n\t\t\t\t\t\t$item['prefix'] = $this->prefix;\n\t\t\t\t\t\t$block = new cf_input_block($item);\n\t\t\t\t\t\t$block->save();\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif (!class_exists('cf_input_'.$item['type'])) { continue; }\n\t\t\t\t\t\t$item['prefix'] = $this->prefix;\n\t\t\t\t\t\t$type = 'cf_input_'.$item['type'];\n\t\t\t\t\t\t\n\t\t\t\t\t\t$item = new $type($item); \n\t\t\t\t\t\tif (!$item->save()) {\n\t\t\t\t\t\t\t// process errors\n\t\t\t\t\t\t\tif ($item->error) {\n\t\t\t\t\t\t\t\t$item_save_error = \"<h5 style=\\\"color:brown\\\">error on $item->save</h5>\";\n\t\t\t\t\t\t\t\tdie($item_save_error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"function saveMetaBoxe(){\n\n if(isset($_POST['post_type']) && $_POST['post_type'] == 'page' && isset($_POST[\"_safeWpMeta\"])){ \n\n $template_file = get_post_meta($_POST['post_ID'],'_wp_page_template',TRUE);\n if ($template_file == $this->templateName) {\n $id = $_POST['post_ID']; \n \n foreach($this->models as $modelName => $model){\n pn_select_save_method($id, \"page\", $modelName, $model); \n } \n \n } \n } \n \n }",
"function saveItem ()\n{\n\n\tglobal $id, $message, $do;\n\n\t$parentId = validateInput('page_parentid', FILTER_VALIDATE_INT);\n\t$metaDataId = validateInput('meta_data_id', FILTER_VALIDATE_INT);\n\t$menuLabel = validateInput('menu_label');\n\t\n\t$photoPath = validateInput('photo_path');\n\t$thumbPhotoPath = validateInput('thumb_photo_path');\n\t$motifPath = validateInput('motif_path');\n\t\n\t$newHeroThumbPath = Helper::createImageThumb(\n\t\t\t\t\t\t\t\t\t\t\t\t$photoPath, \n\t\t\t\t\t\t\t\t\t\t\t\tTHUMB_WIDTH, \n\t\t\t\t\t\t\t\t\t\t\t\tTHUMB_HEIGHT, \n\t\t\t\t\t\t\t\t\t\t\t\t$thumbPhotoPath);\n\t\n\t$templateId = sanitizeInput('template_id', FILTER_VALIDATE_INT);\n\t$templateId = (($id == 1) ? HOME_TEMPLATE_ID: ((!empty($templateId)) ? $templateId: DEFAULT_TEMPLATE_ID)) ;\n\n\t$url = (requestVar('url')) ? validateInput('url') : validateInput('name');\n\t$url = Helper::url($url);\n\n\t$pageSlideshowId = validateInput('slideshow_id', FILTER_VALIDATE_INT);\n\t$pageGallertId = validateInput('gallery_id', FILTER_VALIDATE_INT);\n\t$pageMetaIndexId = validateInput('page_mrobots', FILTER_VALIDATE_INT);\n\t\n\t/** SAVE PAGE META DATA */\n\t$arrMetaData = array();\n\n\t$arrMetaData['name'] = validateInput('name');\n\t$arrMetaData['menu_label'] = $menuLabel;\n\t$arrMetaData['footer_menu'] = validateInput('footer_menu');\n\t\n\t$arrMetaData['heading'] = validateInput('heading');\n\t$arrMetaData['sub_heading'] = validateInput('sub_heading');\n\t$arrMetaData['url'] \t\t\t\t\t\t\t= ($id != 1) ? \"{$url}\" : 'home';\n\t$arrMetaData['full_url'] \t\t\t\t\t\t\t= ($id != 1) ? \"/{$url}\": \"/\";\n\t$arrMetaData['introduction'] = validateInput('introduction');\n\t$arrMetaData['short_description'] = validateInput('short_description');\n\t\n\t$arrMetaData['photo_caption_heading'] = validateInput('photo_heading');\n\t$arrMetaData['photo_caption'] = validateInput('photo_caption');\n\t$arrMetaData['photo_path'] = $photoPath;\n\t$arrMetaData['thumb_photo_path'] = $newHeroThumbPath;\n\t$arrMetaData['motif_photo_path'] = $motifPath;\n\n\t$arrMetaData['video_id'] = validateInput('video_id');\n\t$arrMetaData['quicklink_heading'] = validateInput('ql_heading');\n\t$arrMetaData['quicklink_photo_path'] = validateInput('ql_photo_path');\n\t$arrMetaData['quicklink_button_text'] = validateInput('ql_button_text');\n\t$arrMetaData['quicklink_description'] = validateInput('ql_description');\n\t\n\t$arrMetaData['title'] = validateInput('title');\n\t$arrMetaData['meta_description'] = validateInput('meta_description');\n\t$arrMetaData['og_title'] = validateInput('og_title');\n\t$arrMetaData['og_meta_description'] = validateInput('og_meta_description');\n\t$arrMetaData['og_image'] = (!empty(requestVar('og_image'))) \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? validateInput('og_image')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: $photoPath;\n\t\n\t$arrMetaData['page_code_head_close'] \t= requestVar('page_code_head_close');\n\t$arrMetaData['page_code_body_open'] \t= requestVar('page_code_body_open');\n\t$arrMetaData['page_code_body_close'] \t= requestVar('page_code_body_close');\n\t\n\t$arrMetaData['date_updated'] \t\t\t\t\t= Helper::getCurrentDateTimeStr();\n\t$arrMetaData['updated_by'] = USER_ID;\n\t$arrMetaData['gallery_id'] = $pageGallertId;\n\t$arrMetaData['slideshow_id'] = $pageSlideshowId;\n\t$arrMetaData['template_id'] = $templateId;\n\t$arrMetaData['page_meta_index_id'] = $pageMetaIndexId;\n\n\tupdateRow($arrMetaData, 'page_meta_data', \"WHERE id = '{$metaDataId}'\");\n\t\n\t/** SAVE PAGE DETAILS */\n\n\t$arrPageData = array();\n\n\t$arrPageData['parent_id'] \t\t= $parentId;\n\n\tupdateRow($arrPageData, 'general_pages', \"WHERE id='{$id}' LIMIT 1\");\n\n\tif ($id != 1){\n\t \n\t\t$pgFullUrl \t\t= Helper::buildPageUrl($id);\n\t\t\n\t\tif ($pgFullUrl){\n\t\t\t\n\t\t\t$arrPageData = array('full_url' => \"/{$pgFullUrl}\");\n\n\t\t\tupdateRow($arrPageData, 'page_meta_data', \"WHERE `id` = '{$metaDataId}'\");\n\n\t\t}\n\t}\n\t\n\n\t/** save quicklinks */\n\n\trunQuery(\"DELETE FROM `page_has_quicklink` WHERE `page_id` = '{$id}'\");\n\n\t$primaryQuicklinks = requestVar('quicklink_id');\n\t$primaryQuicklinksRank = requestVar('quicklink_rank');\n\n\tif (!empty($primaryQuicklinks)) { \n\n\t\tfor ($i=0; $i < count($primaryQuicklinks); $i++) { \n\n\t\t\t$arrPrimaryQuicklinkData = array();\n\t\t\n\t\t\t$primaryQuicklinkId = $primaryQuicklinks[$i];\n\t\t\t$primary_quicklink_rank = $primaryQuicklinksRank[$primaryQuicklinkId];\n\t\t\t$primary_quicklink_rank = (!empty($primary_quicklink_rank)) \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? $primary_quicklink_rank \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: 0;\n\n\t\t\t$arrPrimaryQuicklinkData['page_id'] = $id;\n\t\t\t$arrPrimaryQuicklinkData['quicklink_page_id'] = $primaryQuicklinkId;\n\t\t\t$arrPrimaryQuicklinkData['type'] = 'P';\n\t\t\t$arrPrimaryQuicklinkData['rank'] = $primary_quicklink_rank;\n\n\t\t\tinsertRow($arrPrimaryQuicklinkData, 'page_has_quicklink');\n\n\n\t\t}\n\n\t}\n\n\t/**\n\t * Save page responsive content\n\t * Check if content record exist for this page\n\t * get all exisitng row belong to this page's content\n\t */\n\n\t$existingRows = fetchValue(\"SELECT GROUP_CONCAT(`id`) \n\t\tFROM `content_row` \n\t\tWHERE `page_meta_data_id` = '{$metaDataId}'\");\n\n\tif ($existingRows) { \n\n\t\t/** delete all columns */\n\t\trunQuery(\"DELETE FROM `content_column` \n\t\t\tWHERE `content_row_id` IN({$existingRows})\");\n\n\t\t/** delete all rows */\n\t\trunQuery(\"DELETE FROM `content_row` \n\t\t\tWHERE `id` IN($existingRows)\");\n\t}\n\n\n\tif (!empty(requestVar('row-index')) && $metaDataId) {\n\n\t\t/** save new content rows and columns */\n\t\t$rows = requestVar('row-index');\n\t\t$rowsRanks = requestVar('row-rank');\n\t\t$totalRows = count($rows);\n\n\t\tif ($totalRows > 0) { \n\n\t\t\tfor ($i=0; $i < $totalRows; $i++) { \n\n\t\t\t\t$rowData = array();\n\n\t\t\t\t$rowData['rank'] = ($rowsRanks[$i]);\n\t\t\t\t$rowData['page_meta_data_id'] = $metaDataId;\n\n\t\t\t\t$rowId = insertRow($rowData, 'content_row');\n\n\t\t\t\tif ($rowId) { \n\t\t\t\t\t\n\t\t\t\t\t$columnsRank = requestVar(\"content-{$rows[$i]}-rank\");\n\t\t\t\t\t$columnsContent = requestVar(\"content-{$rows[$i]}-text\");\n\t\t\t\t\t$columnsClass = requestVar(\"content-{$rows[$i]}-class\");\n\n\t\t\t\t\t$totalROwColumns = count($columnsContent);\n\n\t\t\t\t\tif ($totalROwColumns > 0) {\n\n\t\t\t\t\t\tfor ($k=0; $k < $totalROwColumns; $k++) { \n\n\t\t\t\t\t\t\t$columnData = array();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$columnData['content'] = $columnsContent[$k];\n\t\t\t\t\t\t\t$columnData['css_class'] = $columnsClass[$k];\n\t\t\t\t\t\t\t$columnData['rank'] = $columnsRank[$k];\n\t\t\t\t\t\t\t$columnData['content_row_id'] = $rowId;\n\n\t\t\t\t\t\t\tinsertRow($columnData, 'content_column');\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}\n\n\t/** save page modules */\n\t\n\t$moduleRank = requestVar('mp_rank');\n\t$moduleIds = requestVar('mod_id');\n\n\t$sql = \"DELETE mp.* \n\t\tFROM `module_pages` mp\n\t\tLEFT JOIN `modules` m \n\t\t \tON (m.`mod_id` = mp.`mod_id`)\n WHERE mp.`page_id` = '{$id}'\n\t\t\tAND m.`mod_showincms`='\".FLAG_YES.\"'\";\n\t\t\t\n\trunQuery($sql);\n\n\tfor ($i=0; $i <= count($moduleIds); $i++) {\n\n\t\t$arrModuleData = array();\n\n\t\tif ($moduleRank[$i] > 0) {\n\n\t\t\t$arrModuleData['page_id'] = $id;\n\t\t\t$arrModuleData['modpages_rank'] = $moduleRank[$i];\n\t\t\t$arrModuleData['mod_id'] = $moduleIds[$i];\n\n\t\t\tinsertRow($arrModuleData, 'module_pages');\n\t\t}\n\t}\n\t\n\t$message = \"Page has been saved\";\n}",
"public function save(){\n\t\t//TODO: implement unique name.\n\t\t\n\t\t//saving\n\t\tEDatabase::q(\"INSERT INTO ocs_content (name,type,owner,personid,downloadname1,downloadlink1,description,summary,version,changelog,preview1,preview2,preview3,license) VALUES ('\".$this->name.\"',\".$this->type.\",\".$this->owner.\",'\".$this->personid.\"','\".$this->downloadname1.\"','\".$this->downloadlink1.\"','\".$this->description.\"','\".$this->summary.\"','\".$this->version.\"','\".$this->changelog.\"','\".$this->preview1.\"','\".$this->preview2.\"','\".$this->preview3.\"',\".$this->license.\")\");\n\t\t//updating new id, got from database\n\t\t$this->id = $id = EDatabase::last_insert_id();\n\t}",
"private function save()\n\t\t{\n\t\t\t$id = (int)$_REQUEST['id'];\n\t\t\t$template = (int)$_REQUEST['template'];\n\t\t\t$name = FN::sanitise($_REQUEST['name']);\n\t\t\t$note = $_REQUEST['note'];\n\t\t\t$language = isset($_REQUEST['language']) ? (int)$_REQUEST['language'] : NULL;\n\t\t\t$value = $_REQUEST['value'];\n\t\t\tif (!$language) $language = FN::getSessionValue(\"language\");\n\t\t\tDB::update(\"content\", array(\n\t\t\t\t\"template\"=>$template,\n\t\t\t\t\"name\"=>$name,\n\t\t\t\t\"note\"=>$note,\n\t\t\t\t\"language\"=>$language,\n\t\t\t\t\"value\"=>$value,\n\t\t\t\t\"user\"=>0,\n\t\t\t\t\"timestamp\"=>time(),\n\t\t\t\t\"attributes\"=>NULL\n\t\t\t\t), \"WHERE id=$id\");\n\t\t}",
"public function save_dynamic_tags()\n {\n $l_count = $_POST['max_counter'];\n $l_queries = [];\n\n for ($i = 1;$i <= $l_count;$i++)\n {\n if (isset($_POST['dynamic-tag-condition-' . $i]))\n {\n $l_condition = $_POST['dynamic-tag-condition-' . $i];\n $l_parameter = $_POST['dynamic-tag-parameter-' . $i];\n $l_tags = $_POST['dynamic-tag-taglist-' . $i . '__selected_values'];\n\n if (empty($l_condition) || empty($l_parameter) || empty($l_tags))\n {\n continue;\n } // if\n\n if ($l_condition == C__MODULE__CMK__DYNAMIC_TAG__LOCATION)\n {\n $l_parameter = $_POST['dynamic-tag-parameter-' . $i . '__HIDDEN'];\n } // if\n\n // We'd like to use constants wherever possible.\n if ($l_condition == C__MODULE__CMK__DYNAMIC_TAG__OBJECT_TYPE)\n {\n $l_obj_type = isys_cmdb_dao::instance($this->m_db)\n ->get_object_type($l_parameter);\n $l_parameter = $l_obj_type['isys_obj_type__const'];\n } // if\n\n // Converting the comma separated string to a JSON array.\n $l_tags = isys_format_json::encode(explode(',', $l_tags));\n\n $l_queries[] = 'INSERT INTO isys_check_mk_dynamic_tags SET\n\t\t\t\t\tisys_check_mk_dynamic_tags__condition = ' . $this->convert_sql_int($l_condition) . ',\n\t\t\t\t\tisys_check_mk_dynamic_tags__param = ' . $this->convert_sql_text($l_parameter) . ',\n\t\t\t\t\tisys_check_mk_dynamic_tags__tags = ' . $this->convert_sql_text($l_tags) . ';';\n } // if\n } // for\n\n if (count($l_queries) > 0)\n {\n // First we remove all old dynamic tags.\n $this->update('TRUNCATE TABLE isys_check_mk_dynamic_tags;');\n\n foreach ($l_queries as $l_query)\n {\n $this->update($l_query);\n } // foreach\n\n return $this->apply_update();\n } // if\n\n return true;\n }",
"function saveTag($data) {\n\t\tif ($data['set']) {\n\t\t\t$res = $this->find('first', \n\t\t\t\tarray('conditions' => array('object_type' => $data['object_type'], 'object_id' => $data['object_id'], 'tag_id' => $data['tag_id']))\n\t\t\t);\n\t\t\tif (!$res) {\n\t\t\t\t$this->save($data);\n\t\t\t}\n\t\t} else {\n\t\t\t$this->deleteAll(array('object_type' => $data['object_type'], 'object_id' => $data['object_id'], 'tag_id' => $data['tag_id']));\n\t\t}\n\t}",
"protected function saving()\n {\n /*\n * Compile the \"metafields\" property within the data object so that all the metafields\n * retrieved so far will get saved together with their parent object (i.e. $this)\n */\n $this->shopifyData->metafields = [];\n foreach ($this->getMetafields() as $metafield) {\n $this->savingMetafield($metafield);\n }\n }",
"function vi_save_content( $post_id ) {\n // If it is our form has not been submitted, so we dont want to do anything\n if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) \n return;\n\n // verify this came from the our screen and with proper authorization,\n // because save_post can be triggered at other times\n\n //if ( !wp_verify_nonce( $_POST['vi_content_nonce_displayorder'], plugin_basename( __FILE__ ) ) )\n // return;\n\n \n // Check permissions\n if ( 'page' == $_POST['post_type'] ) \n {\n if ( !current_user_can( 'edit_page', $post_id ) )\n return;\n }\n else\n {\n if ( !current_user_can( 'edit_post', $post_id ) )\n return;\n }\n\n // OK, we're authenticated: we need to find and save the data\n update_post_meta($post->ID, \"categories\", $_POST[\"categories\"]);\n\n $vi_content_exturl = $_POST['vi_content_exturl_field'];\n update_post_meta($post_id, \"contentexturl\", $vi_content_exturl);\n\n $vi_content_displayorder = $_POST['vi_content_displayorder_field'];\n update_post_meta($post_id, \"contentdisplayorder\", $vi_content_displayorder);\n \n $vi_content_displaycontent = $_POST['vi_content_displaycontent_field'];\n update_post_meta($post_id, \"contentdisplaycontent\", $vi_content_displaycontent);\n \n update_post_meta($post_id, \"vi_content_contentintro\", $_POST['vi_content_contentintro_field']); \t\t\n}",
"public function afterSave($html);",
"public function autoTagPostSave()\n {\n if ($this->autoTagSet) {\n if ($this->autoTagValue) {\n $this->retag($this->autoTagValue);\n } else {\n $this->untag();\n }\n }\n }",
"function save($item_id, $content) {\n\t\t$query = new Query();\n\t\t$query->dbExistsElseCreate($this->db);\n\n\t\t// default HTML wrapper if no HTML is used\n\t\t$html = $content[\"html\"];\n\t\tif($html == strip_tags($html)) {\n\t\t\t$html = \"<p>$html</p>\";\n\t\t}\n\t\t$name = stringOr($content['name'], cutString(strip_tags($html), 50));\n\n\t\t$vars = \"''\";\n\t\t$vars .= \", '\".$name.\"'\";\n\t\t$vars .= \", '\".$html.\"'\";\n\n\t\t// latitude/longitude definition with minutes\n\t\tif($content[\"latitude_minutes\"]) {\n\t\t\tlist($degrees) = explode(\".\", $content[\"latitude\"]);\n\t\t\t$content[\"latitude\"] = $degrees + ($content[\"latitude_minutes\"]/60);\n\t\t}\n\t\tif($content[\"longitude_minutes\"]) {\n\t\t\tlist($degrees) = explode(\".\", $content[\"longitude\"]);\n\t\t\t$content[\"longitude\"] = $degrees + ($content[\"longitude_minutes\"]/60);\n\t\t}\n\n\t\t$vars .= \", '\".$content[\"latitude\"].\"'\";\n\t\t$vars .= \", '\".$content[\"longitude\"].\"'\";\n\n\t\t$vars .= \", '\".mTimestamp($content[\"timestamp\"]).\"'\";\n\n\t\t$vars .= \", '$item_id'\";\n\t\t$vars .= \", '\".$content[\"language_id\"].\"'\";\n\n//\t\tprint \"INSERT INTO \".$this->db.\" VALUES($vars)\";\n\n\t\tif($this->sql(\"INSERT INTO \".$this->db.\" VALUES($vars)\")) {\n\t\t\tItem::addTag($item_id, \"type:\" . $this->itemtype);\n\t\t\treturn $item_id;\n\t\t}\n\n\t\treturn false;\n\t}",
"public function save_tags(){\n\t\t//\tFIXME: no longer used but keeping for posterity at the moment.\n\t\tglobal $SLIQR_CONFIG;\n\t\t$s = Storage::singleton($SLIQR_CONFIG);\n\n\t\t// only persist tags if they've changed since load\n\t\tif((count($this->tags) != count($this->original_tags)) ||\n\t\t count(array_diff($this->tags, $this->original_tags))){\n\t\t\t// we just delete tags before re-adding them\n\t\t\t$tag_sql = \"DELETE FROM user_tag WHERE `user` = :userid\";\n\t\t\t$tag_params = array(\"userid\"=>$this->uid);\n\t\t\t$s->execute($tag_sql, $tag_params);\n\n\t\t\tif(count($this->tags)){\n\t\t\t\t// build up a single INSERT that covers all tags\n\t\t\t\t$tag_sql = \"INSERT INTO user_tag (`user`,`tag`) VALUES (:userid, :tag)\";\n\t\t\t\t$tag_params = array(\"userid\"=>$this->uid, \"tag\"=>$this->tags[0]);\n\t\t\t\tfor($i=1; $i<count($this->tags); $i++){\n\t\t\t\t\t$tag_sql .= \",(:userid, :tag{$i})\";\n\t\t\t\t\t$tag_params[\"tag{$i}\"] = $this->tags[$i];\n\t\t\t\t}\n\t\t\t\t$s->execute($tag_sql, $tag_params);\n\t\t\t}\n\n\t\t\t$this->original_tags = $this->tags;\n\t\t}\n\t}",
"public function save() {\n\t\t$rules = $this->get_rules();\n\t\tinsert_with_markers( $this->get_file(), 'SatisPress', $rules );\n\t}",
"public function save() {\n\t\tif($this->exists)\n\t\t\treturn \\I('ContentManager')->update($this->uuid, $this->_values);\n\t\telse\n\t\t\treturn \\I('ContentManager')->create($this->type, $this->_values);\n\t}",
"public function save_file() {\n $save_list = implode(\"\\n\", $this->items);\n $handle = fopen($this->filename, \"w\");\n fwrite($handle, $save_list);\n fclose($handle);\n }",
"private function save()\n\t{\n\t\tfile_put_contents($this->_file, json_encode($this->_container));\n\t}",
"public function save() {\n if (!$this->id) {\n DB::insert('content', [\n 'userid' => $this->userid,\n 'date' => time(),\n 'type' => $this->type,\n 'published' => $this->published,\n 'title' => $this->title,\n 'body' => $this->body,\n 'leader' => $this->leader,\n ]);\n $this->id = DB::insertId();\n } else {\n // We;re updating an existing post.\n DB::update('content', [\n 'date' => time(),\n 'type' => $this->type,\n 'published' => $this->published,\n 'title' => $this->title,\n 'body' => $this->body,\n 'leader' => $this->leader,\n ], \"id = %i\", $this->id);\n }\n }",
"private static function doSaveBlogTemplates() {\n\t\t$save = array();\n\t\t$save['name'] = wgPost::getValue('name');\n\t\t$save['identifier'] = valid::safeText(wgPost::getValue('identifier'));\n\t\t$save['temptype'] = wgPost::getValue('temptype');\n\t\t$save['datasource'] = wgPost::getValue('datasource');\n\t\t$save['limit'] = wgPost::getValue('limit');\n\t\t$save['pager'] = wgPost::getValue('pager');\n\t\t$save['search'] = wgPost::getValue('search');\n\t\t$save['variable'] = wgPost::getValue('variable');\n\t\t$save['someid'] = wgPost::getValue('someid');\n\t\t$save['useedit'] = wgPost::getValue('useedit');\n\t\t$save['tbegin'] = wgPost::getValue('tbegin');\n\t\t$save['titem'] = wgPost::getValue('titem');\n\t\t$save['tend'] = wgPost::getValue('tend');\n\t\t$save['tnoitem'] = wgPost::getValue('tnoitem');\n\t\t$save['tnoperm'] = wgPost::getValue('tnoperm');\n\t\t$save['blog_cats_id'] = wgPost::getValue('blog_cats_id');\n\t\t$save['blog_id'] = wgPost::getValue('myblog');\n\t\t$save['system_websites_id'] = wgPost::getValue('system_websites_id');\n\t\t$save['error1'] = wgPost::getValue('error1');\n\t\t$save['error2'] = wgPost::getValue('error2');\n\t\t$save['error3'] = wgPost::getValue('error3');\n\t\t$save['error4'] = wgPost::getValue('error4');\n\t\t$save['error5'] = wgPost::getValue('error5');\n\t\t$save['error6'] = wgPost::getValue('error6');\n\t\t$save['redirect1'] = wgPost::getValue('redirect1');\n\t\t$save['redirect2'] = wgPost::getValue('redirect2');\n\t\t\n\t\tif ((bool) wgPost::getValue('edit')) {\n\t\t\t$save['where'] = wgPost::getValue('edit');\n\t\t\t$id = (int) $save['where'];\n\t\t\tself::$_par['edit'] = $id;\n\t\t\treturn (bool) BlogTemplatesModel::doUpdate($save);\n\t\t}\n\t\telse {\n\t\t\t$id = (int) BlogTemplatesModel::doInsert($save);\n\t\t\tself::$_par['edit'] = $id;\n\t\t\treturn (bool) $id;\n\t\t}\n\t}",
"function saveTags(&$blog) {\n\t\t\t$this->opendb();\n\t\t\t$sql = 'DELETE FROM TAGS WHERE BLOG_ID=:BLOG_ID';\n\t\t\t$stmt = $this->prepare($sql);\n\t\t$stmt->bindValue(':BLOG_ID', $blog['BLOG_ID'], SQLITE3_TEXT);\n\t\t$result = $stmt->execute();\t\n\n\t\t$tags = explode(',',$blog['TAGS']);\n\n\t\tforeach($tags as $tag) { \n\t\t\tif(trim($tag) != '') {\n\t\t\t\t$sql = 'INSERT INTO TAGS (BLOG_ID,TAG) VALUES (:BLOG_ID,:TAG)';\t\t\n\t\t\t\t$stmt = $this->prepare($sql);\n\t\t\t\t$stmt->bindValue(':BLOG_ID', $blog['BLOG_ID'], SQLITE3_TEXT);\n\t\t\t\t$stmt->bindValue(':TAG', $tag, SQLITE3_TEXT);\n\t\t\t\t$result = $stmt->execute();\t\t\t\t \t\n\t\t\t}\t\t\n\t\t}\n\t\t\t\n\t}",
"function save() {\n\t\t\t$object = json_encode(array(\n\t\t\t\t\"id\" => $this->ID,\n\t\t\t\t\"snippet\" => array(\n\t\t\t\t\t\"title\" => $this->Title,\n\t\t\t\t\t\"description\" => $this->Description,\n\t\t\t\t\t\"tags\" => array_unique($this->Tags),\n\t\t\t\t\t\"categoryId\" => $this->CategoryID,\n\t\t\t\t\t\"privacyStatus\" => $this->Privacy,\n\t\t\t\t\t\"embeddable\" => $this->Embeddable,\n\t\t\t\t\t\"license\" => $this->License\n\t\t\t\t)\n\t\t\t));\n\t\t\t$response = $this->API->call(\"videos?part=snippet\",$object,\"PUT\");\n\t\t\tif (isset($response->id)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"function save() { }",
"private static function save()\n\t{\n\t\tself::$sitemap->asXml(self::$sitemapName);\n\t}",
"public function saveItem(){\n\t\t\t$data = array('field' => 'value');\n\t\t\tDataBase::save('table', $data);\n\t\t}",
"public function save()\n\t{\n\t//\tGoes to the workflow...\n\t\tif ($this->is_inflow() === true) parent::save();\n\t//\t...or just save the item\n\t\telse {$this->item->save();}\n\t}",
"function save() {\n\n\t\t// Get posted values to make them available for models\n\t\t$this->getPostedEntities();\n\n\t\t// does values validate\n\t\tif($this->validateList(array(\"name\"))) {\n\n\t\t\t$query = new Query();\n\n\t\t\t// make sure type tables exist\n\t\t\t$query->checkDbExistence($this->db);\n\t\t\t$query->checkDbExistence($this->db_nodes);\n\n\t\t\t$entities = $this->data_entities;\n\t\t\t$names = array();\n\t\t\t$values = array();\n\n\t\t\t$name = $entities[\"name\"][\"value\"];\n\t\t\t$handle = superNormalize($name);\n\n\t\t\tif($name && $handle) {\n\t\t\t\t$sql = \"INSERT INTO \".$this->db.\" SET name = '$name', handle = '$handle'\";\n//\t\t\t\tprint $sql;\n\n\t\t\t\tif($query->sql($sql)) {\n\t\t\t\t\tmessage()->addMessage(\"navigation created\");\n\t\t\t\t\treturn array(\"item_id\" => $query->lastInsertId());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tmessage()->addMessage(\"Creating navigation failed\", array(\"type\" => \"error\"));\n\t\treturn false;\n\t}",
"public function afterSave() {\n\t\tparent::afterSave();\n\t\tUrl::store($this->tagUrl, 'tag', $this->tagId);\n\t}"
] | [
"0.68720347",
"0.65437186",
"0.6223158",
"0.6165426",
"0.6072229",
"0.6034951",
"0.5974722",
"0.5925273",
"0.58773935",
"0.5840078",
"0.58084995",
"0.5801389",
"0.57852936",
"0.5767437",
"0.5753962",
"0.5736319",
"0.5702363",
"0.5691311",
"0.565768",
"0.56461436",
"0.5626656",
"0.5626146",
"0.5605136",
"0.5588409",
"0.5575877",
"0.55653214",
"0.5558494",
"0.5549461",
"0.5544025",
"0.55438894"
] | 0.6755662 | 1 |
tahsil list used in advocates form | public function getTahsil_list( ){
$district_id = $this->input->post('district_id');
echo get_tahsil_ddl_list('scm_tahsil_id', 'class="form-control" onchange="get_tahsil_details(this.value,this.text)" id="tahsil_val"','',$district_id );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getAlternativesList(){\n return $this->_get(1);\n }",
"public function getAlternativesList(){\n return $this->_get(1);\n }",
"function theme_sirtaqui_content_generator_overview_field_list($form) {\n\t\n\t$rows = array();\n\t\n\tforeach (element_children($form['content_fields']) as $key) {\n\t\tif (isset($form['content_fields'][$key]['name'])) {\n\t\t\t$field = &$form['content_fields'][$key];\n\n\t\t\t$row = array();\n\t\t\t$field['weight']['#attributes']['class'] = 'field-weight';\n\t\t\t$row[] = drupal_render($field['weight']);\n\t\t\t$row[] = drupal_render($field['enable']);\n\t\t\t$row[] = drupal_render($field['name']) . drupal_render($field['label']);\n\t\t\t$row[] = drupal_render($field['type']);\n\t\t\tif (isset($field['vid']))\n\t\t\t\t$row[] = drupal_render($field['vid']);\n\t\t\t$rows[] = array('data' => $row, 'class' => 'draggable');\n\t\t}\n\t}\n\tif (empty($rows)) {\n\t\t$rows[] = array(array('data' => t('No fields available.'), 'colspan' => '4'));\n\t}\n\n\t$header = array(t('Weight'), t('Enable'), t('Name'), t('Field Type'), t('Vocabulary'));\n\tif (isset($form['submit'])) {\n\t\tdrupal_add_tabledrag('sirtaqui_content', 'order', 'sibling', 'field-weight');\n\t}\n\t\n\t$form['content_fields'] = array(\n\t\t'#type' => 'markup',\n '#value' => theme('table', $header, $rows, array('id' => 'sirtaqui_content')),\n '#weight' => '1',\n );\n\t\n\t//$form['content_fields']['#suffix'] = theme('table', $header, $rows, array('id' => 'sirtaqui'));\n\t\n\treturn drupal_render($form) ;\n}",
"public function tabel()\n\t{\n\t\t\n\t}",
"function nice_get_entries()\n\t{\n\t\t$_m=$GLOBALS['FORUM_DB']->query_select('f_multi_moderations',array('id','mm_name'));\n\t\t$entries=new ocp_tempcode();\n\t\tforeach ($_m as $m)\n\t\t{\n\t\t\t$entries->attach(form_input_list_entry(strval($m['id']),false,get_translated_text($m['mm_name'],$GLOBALS['FORUM_DB'])));\n\t\t}\n\n\t\treturn $entries;\n\t}",
"function nice_get_entries()\n\t{\n\t\t$fields=new ocp_tempcode();\n\n\t\t$rows=$GLOBALS['SITE_DB']->query_select('diseases',array('*'),NULL);\n\n\t\tforeach ($rows as $row)\n\t\t{\n\n\t\t\t$fields->attach(form_input_list_entry(strval($row['id']),false,$row['name']));\n\t\t}\n\n\t\treturn $fields;\n\t}",
"public function terms_list_form() {\n \n $terms = $this->get_all_terms();\n\n require (ALWPR_TRANSLATE_DIR . '/admin/templates/terms_table.php');\n\n }",
"public function getHaulageTradingTerms()\n {\n return $this->haulageTradingTerms;\n }",
"public static function checkboxList()\n {\n $l_arr = [];\n $learning_goals = static::all();\n foreach( $learning_goals as $lg ){\n $l_arr[] = '<input type=\"checkbox\" name=\"lg[]\" value=\"'.$lg->goal_id.'\" /> '.$lg->goal;\n }\n\n return implode( \"<br />\" , $l_arr );\n }",
"public function tubes();",
"function createListFieldsFrontend()\n {\n $insertValues = \"\";\n $table = Doctrine_Core::getTable($this->tableName)->getColumns();\n \n $head = '';\n $td = '';\n $filters = '';\n foreach ($table as $fielnameKey => $info)\n {\n \t$fielname = ucwords(str_replace('_', ' ', $fielnameKey));\n if (strtolower($fielnameKey) != 'created_at' && strtolower($fielnameKey) != 'updated_at') {\n $head .= \"<th class=\\\"list\\\">\".ucwords(str_replace('_',' ', $fielname)).\"</th>\\r\\n\";\n $td .= \"<td><a href=\\\"<?php echo \\$this->url(array('module'=>'\".$this->moduleName.\"', 'action'=>'show', 'id'=>\\$\".strtolower($this->moduleName).\"->id));?>\\\"><?php echo \\$\".strtolower($this->moduleName).\"->\".$fielnameKey.\";?></a></td>\\r\\n\";\n $filters .= \"\n \".ucwords(str_replace('_', ' ', $fielnameKey)).\":\n <input type='text' id='filter-\".$fielnameKey.\"' name='filter[\".$fielnameKey.\"]' value='<?php echo \\$this->filter['\".$fielnameKey.\"'];?>'><br/>\n \";\n }\n }\n \n $this->list_th = $head;\n $this->list_td = $td;\n $this->filters = $filters;\n }",
"public function getLabelsList(){\n return $this->_get(3);\n }",
"private function obtenerTitulos() {\n $i=0;\n $titulos=array();\n\n while($i< $this->bd->totalField($this->bd->result)){\n if($i==0 and $this->controlFila==TRUE){\n if($this->tipoControl==2){\n\n $titulos[$i]=Selector::crearInput(null,array('data-jvista'=>\"seleccionarTodas\",'name'=>\"obtTotalCol\",\"id\"=>'obtTotalColm','type'=>'checkbox'));\n\n }else{\n if($this->tipoControl==3){\n $titulos[$i]=\"\";\n }else{\n $titulos[$i]=\"\";\n }\n\n }\n }else{\n\n $titulos[$i]=\n $this->bd->obtenerNombreCampo($this->bd->result, $i);\n }//fin if\n $i++;\n }\n return $titulos;\n }",
"function createForceList()\n {\n $node = &$this->m_node;\n $forceList = array();\n $filterList = (isset($node->m_postvars['atkfilter'])) ? decodeKeyValueSet($node->m_postvars['atkfilter']) : array();\n foreach ($filterList as $field => $value)\n {\n list($table, $column) = explode('.', $field);\n if ($column == null)\n {\n $forceList[$table] = $value;\n }\n else if ($table == $this->getNode()->getTable())\n {\n $forceList[$column] = $value;\n }\n else\n {\n $forceList[$table][$column] = $value;\n }\n }\n return $forceList;\n }",
"function listarAlunosTemp($meuJsonArray){\n\t\techo \"<h3>Lista de alunos cadatrados</h3><ul>\";\n\t\tforeach ($meuJsonArray[\"alunos\"] as $registroDoAluno) {\n\t\t\techo \"<li>\".$registroDoAluno[\"nome\"];\n\t\t}\n\t\techo \"</ul>\";\n\t}",
"function adm_get_liste_adherents(){\n return Array2Table(traiterRequeteK(\"SELECT * FROM Adherent ORDER BY idAdherent DESC\"));\n }",
"abstract public function toHTMLList();",
"static public function __hx__list () {\n\t\treturn [\n\t\t\t1 => 'IsNull',\n\t\t\t2 => 'Neg',\n\t\t\t0 => 'Not',\n\t\t];\n\t}",
"private function table_data()\r\n {\r\n \t$dados = get_option( 'config_ttbookingintegracao' );\r\n\r\n $data = array();\r\n\r\n for ($i=0; $i < 21; $i++) { \r\n\t\t\tif(!empty($dados['hotel_trend_nh'.$i])){\r\n\t\t\t\t$data[] = array(\r\n 'id' => $dados['id_hotel_trend_nh'.$i],\r\n 'title' => $dados['hotel_trend_nh'.$i] \r\n ); \r\n\t\t\t}\r\n\t\t} \r\n\r\n \r\n\r\n return $data;\r\n }",
"function admin_summary() {\n $this->value_options = array();\n\n if ($this->value) {\n $result = db_query(\"SELECT * FROM {term_data} td WHERE td.tid IN (\" . implode(', ', $this->value) . \")\");\n\n while ($term = db_fetch_object($result)) {\n $this->value_options[$term->tid] = $term->name;\n }\n }\n return parent::admin_summary();\n }",
"function abus_nospam_lister_formulaires($flux) {\n\tinclude_spip('inc/config');\n\t\n\t$objets=lire_config('abus/objets_verifier');\n\n\tif(is_array($objets)){\n\t\t$formulaires=array('signaler_abus');\n\t\tforeach($objets as $objet){\n\t\t\t$formulaires[]='editer_'.$objet;\n\t\t}\n\t\t$flux=array_merge($flux,$formulaires);\n\t}\n\treturn $flux;\n}",
"public function disc_form(){\n\t \t$query = $this->db->from($this->_table)\n\t\t\t\t->get()->result();\n\t\tforeach($query as $question):\n\t\t\t$return[$question->FORM_QUESTIONNUM][] = (object) array('FORM_ADJECTIVE' => $question->FORM_ADJECTIVE, 'FORM_DISCTYPE' => $question->FORM_DISCTYPE, 'FORM_ADJECTIVEDESC' => $question->FORM_ADJECTIVEDESC);\n\t\tendforeach;\n\t\t\n\t\treturn $return;\n\t }",
"private function _getTiposPermitidos() {\n\t\treturn [\n\t\t\tself::TIPO_ESTADO,\n\t\t\tself::TIPO_MENSAJE_PRIVADO\n\t\t];\n\t}",
"function humanizedList($array) {\n \t$tony = array_pop($array);\n \t$allButTony = implode(' ,', $array);\n \t$allTogetherNow = $allButTony . 'and '. $tony;\n \treturn \"Famous fake engineers are {$allTogetherNow} \";\n\n }",
"static public function __hx__list () {\n\t\treturn [\n\t\t\t3 => 'Default',\n\t\t\t2 => 'Medium',\n\t\t\t1 => 'Small',\n\t\t\t0 => 'Tiny',\n\t\t];\n\t}",
"function lista_anuncios() {\n\t// Muestra un listado de los anuncios\n\tlistado_anuncios();\n}",
"function show_text_list()\n\t{\n\t\tif(!empty($this->ldap_entry[strtolower($this->attribute)]))\n\t\t{\n\t\t\techo \"<ul style=\\\"margin:0px;list-style-type:none;padding:0px\\\">\";\n\n\t\t\tforeach($this->ldap_entry[strtolower($this->attribute)] as $key=>$value)\n\t\t\t\tif(empty($key) || $key != \"count\")\n\t\t\t\t{\n\t\t\t\t\techo \"<li>\";\n\n\t\t\t\t\tif($this->show_embedded_links)\n\t\t\t\t\t\techo urls_to_links(htmlentities($value,ENT_COMPAT,\"UTF-8\"));\n\t\t\t\t\telse\n\t\t\t\t\t\techo htmlentities($value,ENT_COMPAT,\"UTF-8\");\n\n\t\t\t\t\tif(!$this->create && !$this->edit && !$this->read_only && $this->ldap_server->get_user_setting(\"allow_edit\"))\n\t\t\t\t\t\techo \" <a href=\\\"delete_value.php?dn=\"\n\t\t\t\t\t\t\t. urlencode($this->ldap_entry[\"dn\"])\n\t\t\t\t\t\t\t. \"&attrib=\" . urlencode($this->attribute)\n\t\t\t\t\t\t\t. \"&value=\" . urlencode($value)\n\t\t\t\t\t\t\t. ($this->ldap_server->server_id == 0 ? \"\"\n\t\t\t\t\t\t\t: (\"&server_id=\" . $this->ldap_server->server_id))\n\t\t\t\t\t\t\t. \"\\\"><button>\" . gettext(\"Remove\") . \"</button></a>\\n\";\n\n\t\t\t\t\techo \"</li>\";\n\t\t\t\t}\n\n\n\t\t\techo \"</ul>\";\n\t\t}\n\n\t\tif(!$this->edit && !$this->create && !$this->read_only && $this->ldap_server->get_user_setting(\"allow_edit\") && $this->ldap_server->get_user_setting(\"allow_browse\"))\n\t\t\techo \" <a style=\\\"float:right\\\" href=\\\"add_value.php?target_dn=\"\n\t\t\t\t. urlencode($this->ldap_entry[\"dn\"]) . \"&attrib=\" . urlencode($this->attribute)\n\t\t\t\t. ($this->ldap_server->server_id == 0 ? \"\"\n\t\t\t\t: (\"&server_id=\" . $this->ldap_server->server_id))\n\t\t\t\t. \"\\\"><button>Add</button></a>\\n\";\n\t}",
"function &getTlds()\n\t{\n\t\t\n\t\t$query = ' SELECT * FROM #__papakidomains_tlds order by tld';\n\t\t//$this->_db->setQuery( $query );\n\t\t//$this->_tlds = $this->_db->loadObject();\n\t\t//$query = $this->_buildQuery();\n\t\t$this->_tlds = $this->_getList( $query );\n\t\treturn $this->_tlds;\n\t}",
"static function getTruyenTranh(){\n $list=[];\n $db=DB::getInstance();\n $query= $db->query('SELECT * FROM truyen WHERE LoaiTruyen=0 ORDER BY LuotLike desc');\n foreach($query-> fetchAll() as $item){\n $tr= new Truyen($item['IDTruyen'], $item['TenTruyen'], $item['MoTa'], $item['SoChuong'],$item['LuotLike'], $item['AnhBia'],$item['TinhTrang'],$item['IDTacGia'],$item['LoaiTruyen'],$item['NgayDang']);\n $list[] = $tr;\n }\n return $list;\n }",
"public function tagslist() {\n echo $this->tagsListAsString();\n }"
] | [
"0.5769026",
"0.5769026",
"0.55699176",
"0.5463901",
"0.53372943",
"0.53033984",
"0.52810246",
"0.5222405",
"0.52108556",
"0.51926655",
"0.5181137",
"0.5173954",
"0.51683176",
"0.5155521",
"0.5149799",
"0.5124327",
"0.5122957",
"0.5117608",
"0.5108126",
"0.5100899",
"0.50833434",
"0.5075006",
"0.5070816",
"0.5059517",
"0.505708",
"0.5031142",
"0.50272083",
"0.5024198",
"0.50202173",
"0.5018759"
] | 0.58535445 | 0 |
Running through all entities from relevant type and search for matching id, when match > set this entity info to Model::$selected_entity_info. | public function findSelectedEntityInfo()
{
$getEntitiesMethod = "get".ucfirst($_GET['type']);
foreach ($this->model->{$getEntitiesMethod}() as $entity) {
if ($entity['id'] == $_GET['id']) {
$this->model->setSelectedEntityInfo($entity);
break;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function find(string $modelClass, $idOrIds);",
"function hook_call_center_type_load(array $entities) {\n $result = db_query('SELECT pid, foo FROM {mytable} WHERE pid IN(:ids)', array(':ids' => array_keys($entities)));\n foreach ($result as $record) {\n $entities[$record->pid]->foo = $record->foo;\n }\n}",
"function _views_data_process_entity_types(&$data) {\n foreach ($data as $table_name => $table_info) {\n // Add in a join from the entity-table if an entity-type is given.\n if (!empty($table_info['table']['entity type'])) {\n $entity_table = 'views_entity_' . $table_info['table']['entity type'];\n\n $data[$entity_table]['table']['join'][$table_name] = array(\n 'left_table' => $table_name,\n );\n $data[$entity_table]['table']['entity type'] = $table_info['table']['entity type'];\n // Copy over the default table group if we have none yet.\n if (!empty($table_info['table']['group']) && empty($data[$entity_table]['table']['group'])) {\n $data[$entity_table]['table']['group'] = $table_info['table']['group'];\n }\n }\n }\n}",
"protected function _find($type, $id) {\n if (is_array($id)) {\n return $this->__mfind($this->index(), $type, $id);\n } else {\n return $this->__find($this->index(), $type, $id);\n }\n }",
"function getEntity( $id, $location = null, $type = null, $silent = false ) {\n\tglobal $muse;\n\t\n\t\n\t/* If location is 'here' or 'me' get the ID number */\n\tif( $id == \"here\" ) {\n\t\t$id = \"#\".$_SESSION['location'];\n\t} else if ( $id == \"me\" ) {\n\t\t$id = \"#\".$_SESSION['userID'];\n\t}\n\t\n\t/* Determine if search by id number, or name */\n\tif( substr( $id, 0, 1 ) == \"#\" ) {\n\t\t$idType = \"id\";\n\t\t$id = substr( $id, 1);\n\t\t$locationSQL = \"\";\n\t\t$searchById = true;\n\t} else {\n\t\t$idType = \"name\";\n\t\t$searchById = false;\n\t}\n\t\n\t/* Determine location: if null, look here and in inventory, \n\t * if true, look everywhere, else look in $location.\n\t * \n\t * If searching by id, search everywhere.\n\t */ \n\tif( is_null($location) && !$searchById ) {\n\t\t$location = $_SESSION['location'] .\", \". $_SESSION['userID'];\n\t\t$locationSQL = \"AND location IN ($location)\";\n\t} else if( $searchById || $location === true ) {\n\t\t$locationSQL = \"\";\n\t} else {\n\t\t$locationSQL = \"AND location IN ($location)\";\n\t}\n\t\n\t/* If type specified, limit search to that type */\n\tif( $type != null ) {\n\t\t$typeSQL = \"AND type = '$type'\";\n\t}\n\t\n\t$sql = \"SELECT * FROM {$muse['DB_PREFIX']}_entities\n\t\t\tWHERE ($idType = '{$id}' OR $idType LIKE '{$id};%' OR $idType LIKE '%;{$id};%') $typeSQL $locationSQL;\";\n\t\t\t\n\taddServerMessageToXML( $sql );\n\t\n\t$result = $muse['db']->query($sql);\n\t\n\t/* If no matches, do a wider search */\n\tif( $result && $result->num_rows == 0 ) {\n\t\t$sql = \"SELECT * FROM {$muse['DB_PREFIX']}_entities\n\t\t\t\tWHERE $idType LIKE '%{$id}%' $typeSQL $locationSQL;\";\n\t\taddServerMessageToXML( $sql );\n\t\n\t\t$result = $muse['db']->query($sql);\n\t}\n\n\t/* Get all data for this object and return it, or return a list of\n\t * matching objcts, or specify that it wasn't found.\n\t */\n\tif( $result && $result->num_rows == 1 ) {\n\t\t$result = $result->fetch_assoc();\n\t\t$result['names'] = $result['name'];\n\t\t$result['name'] = strtok($result['name'], ';');\n\t\tgetExtendedData( $result );\n\t} else \tif( $result && $result->num_rows > 1 ) {\n\t\tif( !$silent ) addNarrativeToXML(\"Which $type do you mean? \" . listOfEntities( $result ) );\n\t\t$result = false;\n\t} else if( $result && $result->num_rows == 0 ) {\n\t\tif( !$silent ) addNarrativeToXML(\"That $type isn't here.\");\n\t\t$result = false;\n\t}\n\n\treturn $result;\n}",
"public function request($entity_type, $id);",
"public function find(&$entity){\r\n\r\n $select = new SelectObject(array(\"*\"),array($entity->ENTITY_DB_NAME),$entity->PRIMARY_KEY_DB_NAME.\"=\".$entity->getId(),null,SQL_ASCENDING_ORDER,0,1);\r\n $res = $this->dbDriver->performSelect($select);\r\n if(!$res){\r\n return false;\r\n }\r\n\r\n $entity->loadFromSqlResultQuery($res[0]);\r\n return true;\r\n }",
"function hook_entity_update($entity, $type) {\n // Update the entity's entry in a fictional table of all entities.\n $info = entity_get_info($type);\n list($id) = entity_extract_ids($type, $entity);\n db_update('example_entity')\n ->fields(array(\n 'updated' => REQUEST_TIME,\n ))\n ->condition('type', $type)\n ->condition('id', $id)\n ->execute();\n}",
"abstract public function searchById($id);",
"public function find($page = null, $size = null)\n {\n $return = array();\n if (count($this->entityIDs = $this->findEntityIDs())) {\n // Apply search filter\n if (count($this->searchFilter)) {\n $this->entityIDs = $this->applySearch($this->entityIDs);\n\n // Return result if not ids\n if (count($this->entityIDs) === 0) {\n return $return;\n }\n }\n\n // Slice identifier array to match pagination\n if (null !== $page && null !== $size) {\n $this->entityIDs = array_slice($this->entityIDs, ($page - 1) * $size, $size);\n }\n\n // Perform parent find() only if we have entity identifiers\n if (count($this->entityIDs)) {\n // Get entity additional field records\n $additionalFields = $this->findAdditionalFields($this->entityIDs);\n\n /** @var \\samsoncms\\api\\Entity $item Find entity instances */\n foreach (parent::find() as $item) {\n // Fill entity with additional fields\n $item = $this->fillEntityFields($item, $additionalFields);\n\n // Store entity by identifier\n $return[$item[Material::F_PRIMARY]] = $item;\n }\n }\n }\n\n //elapsed('Finish SamsonCMS '.static::$identifier.' query');\n\n return $return;\n }",
"public function setDefaultRevisionableEntityInfo() {\n // Load the current request.\n $request = $this->requestStack\n ->getCurrentRequest();\n\n // Store the entity type id of the contextual revisionable entity.\n $this->entityType = $request->attributes\n ->get('entity_type_id');\n\n // Store the entity id of the contextual revisionable entity.\n $this->entityId = $request->attributes\n ->get($this->entityType);\n\n // Store the revision id of the contextual revisionable entity.\n $this->entityRevisionId = $request->attributes\n ->get(\"{$this->entityType}_revision\");\n }",
"public function setMatch($id, $type, $identifier = ''): void\n {\n $this->matchtype = ['id' => $id, 'type' => $type, 'identifier' => $identifier];\n }",
"public function getIdTypeMatch()\n {\n return $this->idTypeMatch;\n }",
"public function find($model, $id)\n {\n if (null !== ($resultSet = $this->getDbTable()->find($id))) {\n if (null !== ($row = $resultSet->current())) {\n $model->populate($row);\n }\n }\n }",
"function once_select_items($table,$type=''){\n\t\t// Check statements type\n\t\tif($type=='project_id'){\n\t\t\t$sql=\"WHERE project_id=\".$this->data['project_id'].\"\";\n\t\t}else if($type=='user_id'){\n\t\t\t$sql=\"WHERE user_id=\".$this->data['user_id'].\"\";\n\t\t}else if($type=='all' || $type=='both'){\n\t\t\t$sql=\"WHERE project_id=\".$this->data['project_id'].\" AND user_id=\".$this->data['user_id'].\"\";\n\t\t}else{\n\t\t\t$sql='';\n\t\t}\n\n\t\t// Get selected data\n\t\t$stmt = $this->pdo->prepare(\"SELECT * FROM edit_\".$table.\" \".$sql.\" ORDER by id ASC\");\n\t\t$stmt->execute();\n\n\t\t// Get count of returned records\n\t\t$once['count']=$stmt->rowCount();\n\t\tif($once['count']){\n\t\t\t// Return result in table\n\t\t\tforeach ($stmt->fetchAll(PDO::FETCH_ASSOC) as $row) {\n\t\t\t\t$once['items'][]=$row;\n\t\t\t}\n\t\t}\n\n\t\t// Return once\n\t\treturn $once;\n\t}",
"public function getEntityTypeId();",
"public function getEntityTypeId();",
"public function getEntityTypeId();",
"function DetectSelected()\n\t{\n\t\t$controller = strtolower(current_controller());\n\t\t$event = current_event();\n\t\t$data = md5(render_var($_GET));\n\t\t\n\t\tfor( $level=1; $level<=6; $level++ )\n\t\t{\n\t\t\tforeach( $this->GetItems() as $item )\n\t\t\t{\n\t\t\t\tif( $level < 4 )\n\t\t\t\t\tforeach( $item->GetItems() as $sub )\n\t\t\t\t\t{\n\t\t\t\t\t\tif( $sub->controller == $controller && \n\t\t\t\t\t\t\t($level > 2 || $sub->event == $event) && \n\t\t\t\t\t\t\t($level > 1 || $sub->data == $data) )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$sub->SetSelected();\n\t\t\t\t\t\t\t$item->SetSelected();\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tif( $item->controller == $controller && \n\t\t\t\t\t\t($level > 5 || $item->event == $event) && \n\t\t\t\t\t\t($level > 4 || $item->data == $data) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$item->SetSelected();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public function loadEntity($entityType, $id);",
"public function doSearch() {\n $arrClasses = $this->getModelReflectionClasses();\n\n $arrClassesFiltered = array();\n foreach($arrClasses as $strOneClass){\n /** @var $objOneClass interface_admin_listable|class_model */\n $objOneClass = new $strOneClass();\n if ( in_array($objOneClass->getArrModule(\"moduleId\"), $this->objSearch->getArrFilterModules()))\n $arrClassesFiltered[] = $strOneClass;\n }\n\n\n foreach($arrClassesFiltered as $strOneClass)\n $this->processSingleClass($strOneClass);\n\n return $this->arrHits;\n }",
"abstract public function find($id);",
"public function detectEntityTypes();",
"function getEntityById($classType, $id) \n {\n $entityManager = $this->manager;\n $entity = $entityManager->getRepository($classType)->find($id);\n return $entity;\n }",
"public function lookup(Model $Model, $type = null, $name = null) {\r\n\t\textract($this->settings[$Model->alias]);\r\n\r\n\t\t$type = strtolower($type);\r\n\t\t$modelClass = Inflector::classify($type);\r\n\t\tif (!in_array($modelClass, $types) || empty($name)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t$result = $Model->findExistingRecord($modelClass, $name);\r\n\r\n\t\tif (empty($result)) {\r\n\t\t\t$fieldName = $Model->{$modelClass}->displayField;\r\n\t\t\t$data = array($fieldName => $name);\r\n\r\n\t\t\t// if (isset($Model->data[$modelClass])) {\r\n\t\t\t\t// if (isset($Model->data[$modelClass][$fieldName]) && $Model->data[$modelClass][$fieldName] != $name) {\r\n\t\t\t\t\t// unset($Model->data[$modelClass]['id']);\r\n\t\t\t\t// }\r\n\t\t\tif (isset($Model->data[$modelClass])) {\r\n\t\t\t\t$data = Set::merge($Model->data[$modelClass], $data);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$result = $Model->saveLookupRecord($modelClass, $data);\r\n\t\t\t\r\n\t\t\t$Model->data[$modelClass]['id'] = $Model->{$modelClass}->id;\r\n\t\t\t$Model->data[$modelClass]['name'] = $name;\r\n\t\t\t$Model->data[$Model->alias][$type . '_id'] = $Model->{$modelClass}->id;\r\n\t\t} else {\r\n\t\t\t$Model->data[$modelClass] = $result[$modelClass];\r\n\t\t\t$Model->data[$Model->alias][$type . '_id'] = $result[$modelClass]['id'];\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}",
"protected function _setTypeId()\n {\n $this->registry->register(\n 'entityType',\n $this->productFactory->create()->getResource()->getTypeId()\n );\n }",
"public function findByType() {\n $value = func_get_args();\n return $this->findBy('type', $value);\n }",
"public function find(object $model);",
"public function search() {\n $filterTemplate = array(\"idField\" => FILTER_VALIDATE_INT,\n \"entity\" => FILTER_SANITIZE_STRING);\n $rawData = $_GET;\n $filteredData = filter_var_array($rawData, $filterTemplate);\n if($filteredData['idField']) {\n $entityController = Controllers\\ControllerFactory::genController($filteredData['entity']);\n $targetEntity = $entityController->getSpecific($filteredData['idField']);\n if($filteredData['idField'] == $targetEntity->getId()) {\n ob_start();\n $this->view->show(\"{$filteredData['entity']}s/edit\".ucfirst($filteredData['entity']).\".php\", $targetEntity);\n $editForm = gzcompress(ob_get_clean());\n $_SESSION['editForm'] = $editForm;\n header(\"Location: index.php?action={$filteredData['entity']}/listAll\"); \n } else {\n //header(\"Location: index.php?notFound&entity={$filteredData['entity']}\");\n }\n }\n //header(\"Location: index.php?fillTheFields\");\n }",
"abstract static public function find(...$fk_criteria);"
] | [
"0.52980983",
"0.52282935",
"0.5033125",
"0.50145894",
"0.4966354",
"0.4882054",
"0.4849673",
"0.48339203",
"0.4791156",
"0.47809345",
"0.47754097",
"0.47636107",
"0.4708794",
"0.45927978",
"0.45821822",
"0.45617083",
"0.45617083",
"0.45617083",
"0.45548618",
"0.45502314",
"0.45501322",
"0.45438778",
"0.4532872",
"0.45308626",
"0.45273477",
"0.4519091",
"0.45008397",
"0.4490585",
"0.44885173",
"0.44858238"
] | 0.7626866 | 0 |
Get the bytes of the image | public function getBytes() {
return filesize($this->image_tmp);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getImageBlob () {}",
"private function getBinaryData(){\n\t\t$this->imageData = we_base_file::load(WEBEDITION_PATH . '../' . $this->imagePath);\n\t}",
"public function getBytes()\n {\n return $this->bytes;\n }",
"public function getBytes() {\n\t\treturn $this->bytes;\n\t}",
"public function getBytes() {\n\t\treturn $this->bytes;\n\t}",
"public function toBinaryData()\n {\n $gd = $this->toGdImage();\n if($gd !== false)\n {\n ob_start();\n imagegd2($gd);\n return ob_get_clean();\n }\n return false;\n }",
"public function getImageBlob() {\n\t}",
"public function getImagesBlob () {}",
"public function getBytes() {\n\t\t$stream=array();\n\t\tforeach($this->opcode as $byte)\n\t\t\t$stream[]=chr($byte);\n\t\tforeach($this->params as $byte)\n\t\t\t$stream[]=chr($byte);\n\t\treturn implode(\"\",$stream);\n\t}",
"public function getBytes()\n {\n if ($this->isDirty && $this->bytes) {\n return $this->bytes;\n }\n\n if ($this->isDirty && $this->filename) {\n return file_get_contents($this->filename);\n }\n\n if ($this->mongoGridFSFile instanceof \\MongoGridFSFile) {\n return $this->mongoGridFSFile->getBytes();\n }\n\n return null;\n }",
"public function getImagesBlob() {\n\t}",
"public function getBinary();",
"public function getImage() {\n return $this->_data['image'];\n }",
"public function getBytes() : array\n {\n return array_values(unpack('C*', $this->data));\n }",
"public function getBinary()\n {\n return $this->_driver->getBinary();\n }",
"public function getTransferredBytes() {}",
"function getImage() {\n\t\treturn $this->resimg;\n\t}",
"public function getImage () {}",
"public function getImage()\n {\n return $this->sImage;\n }",
"public function getImage() {\n return $this->get(self::IMAGE);\n }",
"public function getImage(): string\n {\n return (string) $this->_image;\n }",
"public function getImage() {\r\n return $this->_image;\r\n }",
"public function getImage() {\n\t\treturn $this->image;\n\t}",
"public function imageForSaving($image){\n $file = $image;\n\n // Get the contents of the file\n $contents = $file->openFile()->fread($file->getSize());\n\n return $contents;\n }",
"public function getImage() {\n return $this->image;\n }",
"public function getImage()\n\t{\n\t\treturn $this->image;\n\t}",
"public function getImage()\n {\n return $this->_image;\n }",
"function GetImage()\n\t{\n\t\treturn $this->_content[0];\n\t}",
"public function getImage()\n\t{\n\t\treturn $this->_image;\n\t}",
"public function getImage() \n\t{\n\t\treturn $this->image;\n\t}"
] | [
"0.70994097",
"0.7041898",
"0.70409787",
"0.69841367",
"0.69841367",
"0.6809609",
"0.6705907",
"0.6610232",
"0.6570761",
"0.64887404",
"0.64248824",
"0.6358519",
"0.63030416",
"0.62443495",
"0.62395006",
"0.6226697",
"0.618526",
"0.6142543",
"0.6132463",
"0.60838586",
"0.6075492",
"0.60713655",
"0.6070261",
"0.60380405",
"0.6034359",
"0.60295236",
"0.6027882",
"0.60252756",
"0.6019831",
"0.6015965"
] | 0.71716964 | 0 |
Config for GA Events Processor | function cf_ga_get_events_config(){
return array(
'name' => __( 'Google Analytics Events', 'cf-ga' ),
'description' => __( 'Trigger events on form load and submit', 'cf-ga' ),
'author' => 'Caldera Labs',
'template' => CF_GA_PATH . '/includes/event-config.php',
'version' => '1.4.7',
'single' => true,
'icon' => CF_GA_URL . '/icon.png'
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function cf_ga_get_ecommerce_config(){\n\treturn array(\n\t\t'name' => __( 'Google Analytics eCommerce Tracking', 'cf-ga' ),\n\t\t'description' => __( 'Send eCommerce Tracking on form submission', 'cf-ga' ),\n\t\t'author' => 'Caldera Labs',\n\t\t'template' => CF_GA_PATH . '/includes/ecommerce-config.php',\n\t\t'version' => '1.4.7',\n\t\t'single' => true,\n\t\t'icon' => CF_GA_URL . '/icon.png'\n\n\t);\n}",
"public function __construct($events) {\n $this->events= $events;\n }",
"protected function configure()\n { $this\n ->setName('bot:calendar:process')\n ->setDescription(\"Process and save calendars to database as events\");\n }",
"protected function buildGoogleAnalytics() {\n $googleaccount = $this->config['settings']['application']['googleanalytics'];\n $this->view->googleAnalytics($googleaccount);\n }",
"protected abstract function eventProcessor(): EventProcessor;",
"public function getEventsConfig()\n {\n return $this->eventsConfig;\n }",
"protected function configure()\n {\n $this->publishes([\n __DIR__ . '/../config/mail-telemetry.php' => config_path('mail-telemetry.php'),\n ], 'config');\n\n $this->mergeConfigFrom(\n __DIR__ . '/../config/mail-telemetry.php',\n 'mail-telemetry'\n );\n }",
"function __construct() {\n\t\t$config = Config::inst();\n\t\t\n\t\t$this->api_endpoint = $config->get('EventApi', 'eventEndPoint'); // update later to switch endpoints depending upon query type \n\t\t$this->api_username = $config->get('EventApi', 'eventFinderUsername');\n\t\t$this->api_password = $config->get('EventApi', 'eventFinderPassword');\n\n\t}",
"public function __construct($event) {\n\n $this->event = array (\n 'id_event' => $event['id_event'],\n 'country' => $event['country'],\n 'region' => $event['region'],\n \"postal_code\" => $event['postal_code'],\n \"location_name\" => $event[\"location_name\"],\n \"street_complete\" => $event[\"street_complete\"],\n 'venue_name' => $event['venue_name'],\n 'event_category' => $event['event_category'],\n 'event_type' => $event['event_type'],\n \"event_title\" => $event[\"event_title\"],\n 'event_subtitle' => $event['event_subtitle'],\n 'event_intro' => $event['event_intro'], \n \"event_description\" => $event[\"event_description\"],\n \n 'dates' => $event['dates'],\n \"event_startDate\" => $event[\"event_startDate\"], \n \"event_endDate\" => $event[\"event_endDate\"],\n\n 'parthners' => $event['parthners'],\n\n\n // \"event_article\" => '.article-block',\n \"img_thumb\" => $event[\"img_thumb\"],\n \"img_gallery\" => '',\n \"event_site\" => $event[\"event_site\"],\n \"event_startHour\" => $event[\"event_startHour\"],\n \"event_carousel\" => $event[\"event_carousel\"],\n \"thing_to_scrape\" => $event[\"thing_to_scrape\"],\n 'event_type' => $event['event_type'],\n 'status' => 1,\n 'event_subtitle' => $event['event_subtitle'],\n 'event_intro' => $event['event_intro'],\n\n 'opening_hours' => $event['opening_hours'],\n 'languages' => $event['languages'],\n 'event_price' => $event['event_price'],\n 'prices' => $event['prices'],\n 'promoter' => $event['promoter'],\n 'promoters' => $event['promoters'],\n 'date' => $event['date'],\n 'date_start' => $event['date_start'],\n 'date_end' => $event['date_end'],\n 'calendar' => $event['calendar'],\n 'additional_info' => $event['additional_info'],\n );\n }",
"protected function configure()\n {\n $this->setName('app:get-stats-email-events')\n \t;\n }",
"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}",
"public function getEventConfiguration($actionEventName);",
"public function setEventsManager($eventsManager){ }",
"function afww_lifecycle_event( $request )\n{\n \n $response = array( 'eventData' => array( 'placeholder' => '' ) );\n \n afww_config_event( $request );\n \n return $response;\n}",
"abstract public function setupConfig();",
"protected function loadEvents()\n {\n include __DIR__ . '/../../events.php';\n }",
"public function processConfiguration()\n {\n $this->writeLog('processConfiguration()');\n }",
"private function initFromConfig()\n {\n //\n // Make all vertexes\n //\n foreach ($this->config->getConfig() as $item) {\n $vertex = $this->createVertex($item['id']);\n $this->setEventNameOfVertex($vertex, $item['name']);\n }\n \n //\n // Make all edges\n //\n foreach ($this->config->getConfig() as $item) {\n \n $vertex = $this->getVertices()->getVertexMatch(function (Vertex $vertex) use ($item) {\n return $vertex->getId() == $item['id'];\n });\n \n if (isset($item['ways'])) {\n foreach ($item['ways'] as $way) {\n // find existing vertex by it's event name\n $target_vertex = $this->getVertices()->getVertexMatch(function (Vertex $vertex) use ($way) {\n return $vertex->getId() == $way['then'];\n });\n // attach a directed edge between them\n $vertex->createEdgeTo($target_vertex);\n }\n }\n }\n \n }",
"public function run()\n\t{\n\t\t// notification_type\n\t\t$notificationTypes = [\n\t\t\t'event.gig.published' => ['name' => 'Gig Published', 'profile' => 'notification', 'enabled' => 'all'],\n\t\t\t'event.gig.expiring' => ['name' => 'Gig Expiring', 'profile' => 'notification', 'enabled' => 'all'],\n\t\t\t'event.gig.expired' => ['name' => 'Gig Expired', 'profile' => 'notification', 'enabled' => 'hubmanager'],\n\t\t\t'event.post.published' => ['name' => 'Post Published', 'profile' => 'notification', 'enabled' => 'all'],\n\t\t\t'event.post.shared' => ['name' => 'Post Shared', 'profile' => 'notification', 'enabled' => 'all'],\n\t\t\t'event.post.liked' => ['name' => 'Post Liked', 'profile' => 'notification', 'enabled' => 'all'],\n\t\t\t'event.post.approved' => ['name' => 'Post Approved', 'profile' => 'notification', 'enabled' => 'all'],\n\t\t\t'event.comment.published' => ['name' => 'Comment Published', 'profile' => 'notification', 'enabled' => 'all'],\n\t\t\t'event.membership.accepted' => ['name' => 'Membership Accepted', 'profile' => 'notification', 'enabled' => 'all'],\n\t\t\t'event.membership.removed' => ['name' => 'Membership Removed', 'profile' => 'notification', 'enabled' => 'all'],\n\t\t\t'event.message.created' => ['name' => 'Private Messages', 'profile' => 'direct_message', 'enabled' => 'all'],\n\t\t\t'event.instagram.ready' => ['name' => 'Instagram Ready', 'profile' => 'notification', 'enabled' => 'all'],\n\t\t\t'event.post.reported' => ['name' => 'Post Reported', 'profile' => 'notification', 'enabled' => 'hubmanager']\n\t\t];\n\t\tforeach($notificationTypes as $key => $item) {\n\t\t\t$data = array(\n\t\t\t\t'label' => $item['name'],\n\t\t\t\t'key' => $key,\n\t\t\t\t'profile' => $item['profile'],\n\t\t\t\t'enabled_for' => $item['enabled'],\n\t\t\t\t'is_enabled' => true,\n\t\t\t\t'send_web' => true,\n\t\t\t\t'send_email' => true,\n\t\t\t\t'send_push' => true,\n\t\t\t);\n\t\t\tfactory(App\\NotificationType::class, 1)->create($data);\n\t\t}\n\n\t\t$this->command->getOutput()->writeln(\"\");\n\t\t$this->command->getOutput()->writeln(\"<info>Table:</info> notification_type\");\n\t\t$this->command->getOutput()->writeln(\"\");\n\t}",
"function exa_register_google_analytics() {\n\n\t$js = <<<\"GTAG\"\n\n\t<script async src=\"https://www.googletagmanager.com/gtag/js?id=UA-2337436-1\"></script>\n\t<script>\n\t\twindow.dataLayer = window.dataLayer || [];\n\t\tfunction gtag(){dataLayer.push(arguments);}\n\t\tgtag('js', new Date());\n\t\tgtag('config', 'UA-2337436-1');\n\n\t\tgtag('config', 'UA-2337436-1', {\n\t\t\t'custom_map': {\n\t\t\t\t'dimension1': 'days_old',\n\t\t\t}\n\t\t});\n\nGTAG;\n\n\t$days_old = ( current_time('timestamp') - get_the_time('U') ) / ( 24 * 60 * 60 );\n\t$days_old = intval($days_old);\n\t$js .= \"\\t\\tgtag('event', 'load', { 'days_old': $days_old });\";\n\t$js .= \"\\t</script>\";\n\t\n\techo $js;\n\n}",
"protected function configure()\n {\n parent::configure();\n\n $this->setDescription('Start consuming asynchronous events from the event bus');\n }",
"function initCustomConfig() {\n\t}",
"public function __construct() {\n $this->e = new EventManager($this);\n }",
"protected function event($event_name){\n\t\t$args = func_get_args();\n\t\tarray_shift($args);\n\t\t$this->event_vars_array($event_name, $args);\n\t}",
"public static function event(array $config = [])\n {\n return self::addGraph((new Event($config)));\n }",
"function eventscategory_register_settings(){\r\n\tregister_setting( 'eventscategory-group', 'eventscategory_gcal_feed_url' );\r\n\tregister_setting( 'eventscategory-group', 'eventscategory_datetime_format' );\r\n\tregister_setting( 'eventscategory-group', 'eventscategory_date_format' );\r\n}",
"public function setEvents($events) {\n $this->events = $events;\n }",
"function __construct()\n\t{\n\n\t\t$this->events[\"ProcessValuesAdd\"]=true;\n\n\n\t\t$this->events[\"ProcessValuesEdit\"]=true;\n\n\t\t$this->events[\"BeforeMoveNextList\"]=true;\n\n\n\t\t$this->events[\"BeforeQueryPrint\"]=true;\n\n\n\t\t$this->events[\"BeforeEdit\"]=true;\n\n\n\t}",
"private function config() {\n\t\t$this->config = new Google_Config();\n\t\t$this->config->setClassConfig('Google_Cache_File', array('directory' => $this->google_cache_file_directory));\n\t\t$this->config->setCacheClass('Google_Cache_File');\n\n\t\t$this->client = new Google_Client($this->config);\n\t\t$this->client->setApplicationName(\"London Hackspace Events\");\n\t\t$this->client->setApprovalPrompt('force');\n\t\t$this->client->setAccessType('offline');\n\n\t\t$this->cache = new Google_Cache_File($this->client);\n\t}",
"public function config()\n {\n //$this->publishes([\n // __DIR__ . '/../../config/motor-backend-project.php' => config_path('motor-backend-project.php'),\n //], 'motor-backend-install');\n }"
] | [
"0.59583634",
"0.55765927",
"0.5458848",
"0.544278",
"0.54396105",
"0.54226965",
"0.540646",
"0.5393252",
"0.53807676",
"0.53533363",
"0.5344486",
"0.52925247",
"0.5291297",
"0.52114516",
"0.5207586",
"0.52051866",
"0.51862264",
"0.5178793",
"0.5177831",
"0.51584834",
"0.5144177",
"0.51436764",
"0.5136722",
"0.5135812",
"0.5132072",
"0.5129563",
"0.51275337",
"0.5098898",
"0.50890386",
"0.50885576"
] | 0.72320145 | 0 |
Config for GA eCommerce Processor | function cf_ga_get_ecommerce_config(){
return array(
'name' => __( 'Google Analytics eCommerce Tracking', 'cf-ga' ),
'description' => __( 'Send eCommerce Tracking on form submission', 'cf-ga' ),
'author' => 'Caldera Labs',
'template' => CF_GA_PATH . '/includes/ecommerce-config.php',
'version' => '1.4.7',
'single' => true,
'icon' => CF_GA_URL . '/icon.png'
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function __construct() {\n\t\t// At this time, we only leverage universal analytics when enhanced ecommerce is selected and WooCommerce is active.\n\t\t// Otherwise, don't bother emitting the tracking ID or fetching analytics.js\n\t\tif ( class_exists( 'WooCommerce' ) && Jetpack_Google_Analytics_Options::enhanced_ecommerce_tracking_is_enabled() ) {\n\t\t\t$analytics = new Jetpack_Google_Analytics_Universal();\n\t\t} else {\n\t\t\t$analytics = new Jetpack_Google_Analytics_Legacy();\n\t\t}\n\n\t}",
"public function __construct() {\n\t\t\tadd_filter( 'woocommerce_get_sections_products', array( $this, 'wooga_add_section' ) );\n\t\t\t// Add claims table.\n\t\t\tadd_action( 'woocommerce_admin_field_wooga_claims_table', array( $this, 'wooga_admin_field_wooga_claims_table' ) );\n\t\t\t// Add settings to Gift Aid tab.\n\t\t\tadd_filter( 'woocommerce_get_settings_products', array( $this, 'wooga_all_settings' ), 10, 2 );\n\t\t\t// Export CSV.\n\t\t\tadd_action( 'admin_post_print.csv', array( $this, 'wooga_print_csv' ) );\n\t\t}",
"function Config()\n {\n $this->cfg = array\n (\n 'FREEBASE_API_KEY' => '',\n 'FREEBASE_SERVICE_URL' => 'https://www.googleapis.com/freebase/v1/search'\n );\n }",
"function cf_ga_get_events_config(){\n\treturn array(\n 'name' => __( 'Google Analytics Events', 'cf-ga' ),\n 'description' => __( 'Trigger events on form load and submit', 'cf-ga' ),\n 'author' => 'Caldera Labs',\n 'template' => CF_GA_PATH . '/includes/event-config.php',\n 'version' => '1.4.7',\n 'single' => true,\n\t\t'icon' => CF_GA_URL . '/icon.png'\n );\n}",
"public function __construct()\n {\n $config = config('epay');\n\n $mode = $config['mode'];\n if ($mode !== 'prod') {\n $mode = 'stage';\n }\n\n $this->config = $config[$mode];\n }",
"function genesis_gto_customizer_init() {\n\tnew Genesis_Theme_Options_Customizer;\n}",
"public function config()\n {\n $this->beforeAction();\n $release = Piwik_Common::getRequestVar('release', -1, 'string');\n $expert = Piwik_Common::getRequestVar('expert', -1, 'integer');\n \n if ($release !== -1) {\n if (!in_array($release, \n array('all', 'unittest', 'developer', 'alpha', 'beta', 'stable'))) {\n $release = 'all'; // default\n }\n $this->session->release = $release;\n }\n if ($expert !== -1) {\n $this->session->expert = ($expert == 1);\n }\n $this->replyJson(true, \n array('release' => $this->session->release, 'expert' => $this->session->expert));\n }",
"public static function post_configure_request()\n\t{\n\t\t//Define website specific constants.\n\t\tdefine ('EBW_PRODUCT_DISCOUNT',\t\t\t\t0.2);\n\n\t\treturn;\n\t}",
"function Mco_producpromoManager()\n {\n $this->gateway = Application::getDataGateway(\"mco_producpromo\");\n }",
"function cf_ga_init_license(){\n\n\t$plugin = array(\n\t\t'name'\t\t=>\t'Caldera Forms Google Analytics Tracking',\n\t\t'slug'\t\t=>\t'caldera-forms-google-analytics-tracking',\n\t\t'url'\t\t=>\t'https://calderaforms.com/',\n\t\t'version'\t=>\tCF_GA_VER,\n\t\t'key_store'\t=> 'cfga_license',\n\t\t'file'\t\t=> CF_GA_CORE\n\t);\n\n\tnew \\calderawp\\licensing_helper\\licensing( $plugin );\n\n}",
"public function getConfig()\n {\n $this->_configArray[\"saveParcelUrl\"] = $this->getUrl('dpd/ajax/saveparcel', array('_secure' => true));\n $this->_configArray[\"jwtUrl\"] = $this->getUrl('dpd/ajax/jwt', array('_secure' => true));\n $this->_configArray[\"invalidateParcelUrl\"] = $this->getUrl('dpd/ajax/invalidateparcel', array('_secure' => true));\n $this->_configArray[\"windowParcelUrl\"] = $this->getUrl('dpd/ajax/windowindex', array('_secure' => true));\n $this->_configArray[\"ParcelUrl\"] = $this->getUrl('dpd/ajax/index', array('_secure' => true));\n $this->_configArray[\"gmapsDpdParcelShopUseDpdKey\"] = (bool)Mage::getStoreConfig('carriers/dpdparcelshops/use_dpd_maps_key');\n\n $this->_configArray[\"gmapsDpdParcelShopGoogleKey\"] = Mage::helper('core')->decrypt(Mage::getStoreConfig('carriers/dpdparcelshops/google_maps_api'));\n $shippingAddress = Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress();\n $this->_configArray[\"shippingaddress\"] =\n $shippingAddress->getPostcode()\n .' ' .$shippingAddress->getCity()\n .' ' .$shippingAddress->getCountryId();\n\n $this->_configArray[\"loadingmessage\"] = '<span class=\"message\">'.$this->__('Loading DPD parcelshop map based on your address...').'</span>';\n $this->_configArray[\"gmapsHeight\"] = Mage::getStoreConfig('carriers/dpdparcelshops/google_maps_height') . 'px';\n $this->_configArray[\"gmapsWidth\"] = Mage::getStoreConfig('carriers/dpdparcelshops/google_maps_width') . 'px';\n $this->_configArray[\"gmapsDisplay\"] = (bool)Mage::getStoreConfig('carriers/dpdparcelshops/google_maps_display');\n $quote = Mage::getModel('checkout/cart')->getQuote();\n $this->_configArray[\"dpdSelected\"] = $quote->getDpdSelected();\n $this->_configArray[\"localCode\"] = substr(Mage::getStoreConfig('general/locale/code'),0,2);\n\n return Mage::helper('core')->jsonEncode($this->_configArray);\n }",
"public function generateConfiguration()\n {\n }",
"protected function buildGoogleAnalytics() {\n $googleaccount = $this->config['settings']['application']['googleanalytics'];\n $this->view->googleAnalytics($googleaccount);\n }",
"public function config()\n {\n global $c, $s, $m, $t, $q, $u;\n\n parent::config();\n\n\n $this->i_var['writable_var_list'][]= \"current_url\";\n\n $this->has['share_data']= true;\n $this->i_var['readable_data_list'][]= \"all_data\";\n\n $this->set_title($t->services, \"h2\");\n\n $this->select_name= \"id_serv\";\n \n \n $this->data_source=\"select_service1\";\n\n $this->id_tag= \"id_serv\"; // default\n$this->label_tag= \"name_serv\"; // default\n\n$this->has['submit']= false;\n $this->has['form']= false;\n\n $this->default= $t->unknown;\n }",
"public static function activate_googleanalytics() {\r\n\t\tadd_option( self::GA_WEB_PROPERTY_ID_OPTION_NAME, Ga_Helper::GA_DEFAULT_WEB_ID );\r\n\t\tadd_option( self::GA_EXCLUDE_ROLES_OPTION_NAME, wp_json_encode( array() ) );\r\n\t\tadd_option( self::GA_SHARETHIS_TERMS_OPTION_NAME, false );\r\n\t\tadd_option( self::GA_HIDE_TERMS_OPTION_NAME, false );\r\n\t\tadd_option( self::GA_VERSION_OPTION_NAME );\r\n\t\tadd_option( self::GA_OAUTH_AUTH_CODE_OPTION_NAME );\r\n\t\tadd_option( self::GA_OAUTH_AUTH_TOKEN_OPTION_NAME );\r\n\t\tadd_option( self::GA_ACCOUNT_DATA_OPTION_NAME );\r\n\t\tadd_option( self::GA_SELECTED_ACCOUNT );\r\n\t\tadd_option( self::GA_WEB_PROPERTY_ID_MANUALLY_OPTION_NAME );\r\n\t\tadd_option( self::GA_WEB_PROPERTY_ID_MANUALLY_VALUE_OPTION_NAME );\r\n\t\tadd_option( self::GA_DISABLE_ALL_FEATURES );\r\n\t\tGa_Cache::add_cache_options();\r\n\t}",
"function createCustomOptions()\n{\n ConfigOptions::addOption('billys_billing_api_key');\n ConfigOptions::addOption('billys_billing_secret');\n ConfigOptions::addOption('billys_billing_email');\n ConfigOptions::addOption('billys_billing_password');\n ConfigOptions::addOption('billys_billing_user_id');\n ConfigOptions::addOption('billys_billing_job_type_seller_accountId');\n ConfigOptions::addOption('billys_billing_job_type_seller_organizationId');\n}",
"function orgright_client_config_vars() {\n // Set user terms to use the \"tags\" vocabulary we created\n $vid = variable_get('orgright_client_tags_vid', 1);\n variable_set('user_terms_vocabs', array($vid => $vid));\n\n // Show large amount of tags on tag cloud page\n variable_set('tagadelic_page_amount', 500);\n\n // Specify performance settings\n variable_set('block_cache', \"0\");\n variable_set('cache', \"1\");\n variable_set('cache_lifetime', \"0\");\n variable_set('page_compression', \"1\");\n variable_set('preprocess_css', \"1\");\n variable_set('preprocess_js', \"1\");\n\n // Keep errors in the log and off the screen\n variable_set('error_level', 0);\n\n // Don't restrict user profile image upload size\n variable_set('user_picture_file_size', '');\n\n // Only report security updates\n variable_set('update_notification_threshold', 'security');\n\n // Set date/timezone variables\n variable_set('date_api_use_iso8601', FALSE);\n variable_set('date_api_version', \"5.2\");\n variable_set('date_default_timezone_name', \"Pacific/Auckland\");\n variable_set('date_first_day', \"1\");\n variable_set('date_format_long', \"l, j F Y - g:ia\");\n variable_set('date_format_medium', \"D, d/m/Y - g:ia\");\n variable_set('date_format_short', \"d/m/Y - g:ia\");\n\n // Set Print, PDF and mail settings\n variable_set('print_comments', 0);\n variable_set('print_css', \"\");\n variable_set('print_footer_options', \"1\");\n variable_set('print_footer_user', \"\");\n variable_set('print_html_book_link', \"1\");\n variable_set('print_html_link_class', \"print-page\");\n variable_set('print_html_link_pos', array('link' => 'link', 'corner' => 0, 'block' => 'block', 'help' => 'help'));\n variable_set('print_html_link_teaser', 0);\n variable_set('print_html_link_use_alias', 0);\n variable_set('print_html_new_window', 1);\n variable_set('print_html_node_link_pages', \"\");\n variable_set('print_html_node_link_visibility', \"0\");\n variable_set('print_html_sendtoprinter', 0);\n variable_set('print_html_show_link', \"3\");\n variable_set('print_html_sys_link_pages', \"admin\\nadmin/*\");\n variable_set('print_html_sys_link_visibility', \"0\");\n variable_set('print_html_windowclose', 1);\n variable_set('print_logo_options', \"0\");\n variable_set('print_logo_upload', \"\");\n variable_set('print_logo_url', \"\");\n variable_set('print_mail_book_link', \"1\");\n variable_set('print_mail_hourly_threshold', \"10\");\n variable_set('print_mail_link_class', \"print-mail\");\n variable_set('print_mail_link_pos', array('link' => 'link', 'corner' => 0, 'block' => 'block', 'help' => 'help'));\n variable_set('print_mail_link_teaser', 0);\n variable_set('print_mail_link_use_alias', 0);\n variable_set('print_mail_node_link_pages', \"\");\n variable_set('print_mail_node_link_visibility', \"0\");\n variable_set('print_mail_send_option_default', \"sendpage\");\n variable_set('print_mail_show_link', \"3\");\n variable_set('print_mail_sys_link_pages', \"admin\\nadmin/*\");\n variable_set('print_mail_sys_link_visibility', \"0\");\n variable_set('print_mail_teaser_choice', 1);\n variable_set('print_mail_teaser_default', 1);\n variable_set('print_newwindow', \"1\");\n variable_set('print_pdf_autoconfig', 1);\n variable_set('print_pdf_book_link', \"1\");\n variable_set('print_pdf_content_disposition', \"2\");\n variable_set('print_pdf_dompdf_unicode', 0);\n variable_set('print_pdf_filename', \"[current-page-title] ([site-date-dd][site-date-mon][site-date-yy])\");\n variable_set('print_pdf_font_family', \"helvetica\");\n variable_set('print_pdf_font_size', \"10\");\n variable_set('print_pdf_link_class', \"print-pdf\");\n variable_set('print_pdf_link_pos', array('link' => 'link', 'corner' => 0, 'block' => 'block', 'help' => 'help'));\n variable_set('print_pdf_link_teaser', 0);\n variable_set('print_pdf_link_use_alias', 0);\n variable_set('print_pdf_node_link_pages', \"\");\n variable_set('print_pdf_node_link_visibility', \"0\");\n variable_set('print_pdf_page_orientation', \"portrait\");\n variable_set('print_pdf_paper_size', \"A4\");\n variable_set('print_pdf_pdf_tool', \"profiles/orgright_client/modules/print/lib/dompdf/dompdf_config.inc.php\");\n variable_set('print_pdf_show_link', \"3\");\n variable_set('print_pdf_sys_link_pages', \"admin\\nadmin/*\");\n variable_set('print_pdf_sys_link_visibility', \"0\");\n variable_set('print_pdf_wkhtmltopdf_options', \"--footer-font-size 7 --footer-right '[page]'\");\n variable_set('print_robots_noarchive', 0);\n variable_set('print_robots_nofollow', 1);\n variable_set('print_robots_noindex', 1);\n variable_set('print_sourceurl_date', 0);\n variable_set('print_sourceurl_enabled', 1);\n variable_set('print_sourceurl_forcenode', 0);\n variable_set('print_urls', 1);\n variable_set('print_urls_anchors', 0);\n\n // Set the site information\n variable_set('site_footer', '©2012 <a href=\"http://orgright.com\" target=\"_blank\">orgRight Limited</a> - All rights reserved');\n //variable_set('site_frontpage', 'node');\n //variable_set('site_mail', '[email protected]');\n //variable_set('site_mission', '');\n //variable_set('site_name', '');\n //variable_set('site_offline_message', 'Your orgRight site is currently off-line for maintenance. Please come back later');\n //variable_set('site_slogan', '');\n\n // Set the theme default valuess\n $theme_settings = array(\n // Display items\n 'toggle_logo' => 1,\n 'toggle_name' => 1,\n 'toggle_slogan' => 1,\n 'toggle_mission' => 0,\n 'toggle_node_user_picture' => 0,\n 'toggle_comment_user_picture' => 0,\n 'toggle_search' => 0,\n 'toggle_favicon' => 1,\n 'toggle_primary_links' => 1,\n 'toggle_secondary_links' => 1,\n // Show \"post\" information on node types\n //'toggle_node_info_agenda_item' => 1,\n //'toggle_node_info_appointment' => 1,\n //'toggle_node_info_assignment' => 1,\n //'toggle_node_info_committee' => 1,\n //'toggle_node_info_role' => 1,\n //'toggle_node_info_document' => 1,\n //'toggle_node_info_drawer' => 1,\n //'toggle_node_info_folder' => 1,\n //'toggle_node_info_forum' => 1,\n //'toggle_node_info_meeting' => 1,\n //'toggle_node_info_mtg_item' => 1,\n //'toggle_node_info_member' => 1,\n 'toggle_node_info_page' => 0,\n //'toggle_node_info_project' => 1,\n //'toggle_node_info_projactivity' => 1,\n //'toggle_node_info_projreport' => 1,\n 'toggle_node_info_public' => 0,\n //'toggle_node_info_story' => 1,\n //'toggle_node_info_subscription' => 1,\n //'toggle_node_info_subpayment' => 1,\n // Logo and Favicon info\n 'default_logo' => 1,\n //'logo_path' => '',\n //'logo_upload' => '',\n 'default_favicon' => 1,\n //'favicon_path' => '',\n //'favicon_upload' => '',\n );\n variable_set('theme_settings', $theme_settings);\n\n // Specify the admin theme\n variable_set('admin_theme', ORGRIGHT_CLIENT_ADMIN_THEME);\n\n // Set the default Filter format for orgRight fields with URL info\n variable_set('orgright_field_filter', '3'); // Links only\n\n // Set the site search parameters\n variable_set('node_rank_relevance', \"7\");\n variable_set('node_rank_recent', \"5\");\n variable_set('node_rank_comments', \"3\");\n //variable_set('search_cron_limit', '100');\n //variable_set('overlap_cjk', 1);\n\n // Specfiy orgRight module settings\n variable_set('filecabinet_doclink_nodetypes', array(\n 'agenda_item',\n 'appointment',\n 'assignment',\n 'committee',\n 'role',\n 'meeting',\n 'mtg_item',\n 'member',\n 'project',\n 'projactivity',\n 'projreport',\n 'subscription',\n 'subpayment',\n ));\n\n // Specify the file system settings\n $domain = orgright_client_get_domain();\n $mode = FILE_CREATE_DIRECTORY && FILE_MODIFY_PERMISSIONS;\n $file_dir = 'sites/' . $domain . '/files';\n if (file_check_directory($file_dir, $mode)) {\n variable_set('file_directory_path', $file_dir);\n $temp_dir = $file_dir . '/tmp';\n }\n else {\n $temp_dir = '/tmp/orgright/' . $domain;\n }\n if (file_check_directory($temp_dir, $mode)) {\n variable_set('file_directory_temp', $temp_dir);\n }\n\n // Specify file upload size defaults (sizes in MB)\n variable_set('upload_uploadsize_default', \"10\");\n variable_set('upload_usersize_default', \"10000\");\n\n // Specify the content types that can have upload files\n variable_set('upload_page', \"1\");\n variable_set('upload_story', \"1\");\n\n // Specify the content types that can have comments\n $comment_types = array(\n 'story',\n 'member',\n 'subscription',\n 'subpayment',\n 'committee',\n 'role',\n 'appointment',\n 'assignment',\n 'meeting',\n 'agenda_item',\n 'mtg_item',\n 'project',\n 'projactivity',\n 'projreport',\n 'drawer',\n 'folder',\n 'document',\n );\n foreach ($comment_types as $type) {\n variable_set('comment_' . $type, \"2\"); // Read/write\n variable_set('comment_default_mode_' . $type, \"2\"); // Flat list - expanded\n variable_set('comment_default_order' . $type, \"2\"); // Newest first\n variable_set('comment_default_per_page' . $type, \"12\"); // Number of comments per page\n variable_set('comment_controls_' . $type, \"3\"); // Do not display\n variable_set('comment_subject_field_' . $type, \"0\"); // Disabled\n variable_set('comment_preview_' . $type, \"0\"); // Preview comment is optional\n variable_set('comment_form_location_' . $type, \"0\"); // Display comment submission form on separate page\n }\n\n}",
"function pxls_ga_code() {\n\tglobal $PXLS_Options;\n\tif ( isset( $PXLS_Options['ga_enable'] ) ) {\n\t\t$enable = $PXLS_Options['ga_enable'];\n\t\tif ( $enable ) { ?>\n\t\t\t<script type=\"text/javascript\">\n\t\t\t\tvar _gaq = _gaq || [];\n\t\t\t\t_gaq.push(['_setAccount', '<?php echo $PXLS_Options['analytics_id']; ?>']);\n\t\t\t\t_gaq.push(['_trackPageview']);\n\t\t\t\t(function() {\n\t\t\t\t\tvar ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;\n\t\t\t\t\tga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';\n\t\t\t\t\tvar s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);\n\t\t\t\t})();\n\t\t\t</script>\n\n\t\t<?php }\n\t}\n}",
"public function __construct($args = null)\n\t{\n\t\tparent::__construct($args);\n\t\t$this->product_type = 'configurable';\n\t}",
"function unamuno_wordpress_googleax() { ?>\n <script>\n (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');\n\n ga('create', 'UA-<?php echo get_option( 'unamunogoogleax' ); ?>', 'auto');\n ga('send', 'pageview');\n </script>\n\n <?php }",
"function gAnalytics()\n{\n // Create a top-level menu item.\n $hookname = add_menu_page(\n __('Google Analytics Config', 'example'), // Page title\n __('Google Analytics Config', 'example'), // Menu title\n 'manage_options', // Capabilities\n 'example_settings_page', // Slug\n 'gAnalytics_ID_form', // Display callback\n 'dashicons-pets', // Icon\n 66 // Priority/position. Just after 'Plugins'\n );\n// 1er parametre groupe settings, 2 eme champ setting\n $settings = register_setting(\"my-analytics-ID\", \"google-analytics-ID\");\n}",
"public function __construct()\n\t{\n\t\t$this->pluginName = \"Google Analytics Integration\";\n\t\t$this->pluginVersion = \"1.0\";\n\t}",
"public function __construct() {\n $GLOBALS['wp_magento'] = true;\n $this->initialize();\n }",
"function settings_sagepay() {\t\r\n\t\tif ($this -> is_plugin_active('sagepay')) {\r\n\t\t\t$sagepay = $this -> extension_vendor('sagepay');\t\r\n\t\t\t$sagepay -> settings();\r\n\t\t}\t\r\n\t}",
"function analytics_settings(){\n add_settings_field(\n 'inter-ga-id', // Field ID\n __( 'Google Analytics (UA):', 'inter' ), // Field title \n array( $this, 'ga_input_markup' ), // Field callback function\n 'edit-inter-theme', // Settings page slug\n 'inter-analytics', // Section ID\n array( 'label_for' => 'inter-ga-id' ) // Display field title as label\n );\n add_settings_field(\n 'inter-gtm-id', // Field ID\n __( 'Google Tag Manager (GTM):', 'inter' ), // Field title \n array( $this, 'gtm_input_markup' ), // Field callback function\n 'edit-inter-theme', // Settings page slug\n 'inter-analytics', // Section ID\n array( 'label_for' => 'inter-gtm-id' ) // Display field title as label\n );\n\n //Register Analytics Section Settings\n register_setting(\n 'edit-inter-theme', // Options group\n 'inter-ga-id', // Option name/database\n array(\n 'sanitize_callback' => 'sanitize_text_field' // Sanitize input value\n )\n );\n register_setting(\n 'edit-inter-theme',\n 'inter-gtm-id',\n array(\n 'sanitize_callback' => 'sanitize_text_field'\n )\n );\n }",
"public function getConfig() {\n return new Varien_Object(Mage::getStoreConfig('payment/gwap_cc'));\n }",
"abstract protected function getConfiguration();",
"function initCustomConfig() {\n\t}",
"public function __construct() {\n $this->currencyImporter = \\Drupal::service('commerce_price.currency_importer');\n }",
"function setup_constants () {\n\t\tglobal $woocommerce;\n\t\t//// Create user agent string\n\t\t// User agent constituents (for cURL)\n\t\tdefine( 'CPS_SOFTWARE_NAME', 'WooCommerce' );\n\t\tdefine( 'CPS_SOFTWARE_VER', $woocommerce->version );\n\t\tdefine( 'CPS_MODULE_NAME', 'WooCommerce-CPS' );\n\t\tdefine( 'CPS_MODULE_VER', $this->version );\n\n\t\t// Features\n\t\t// - PHP\n\t\t$CPSFeatures = 'PHP '. phpversion() .';';\n\n\t\t// - cURL\n\t\tif( in_array( 'curl', get_loaded_extensions() ) )\n\t\t{\n\t\t define( 'CPS_CURL', '' );\n\t\t $CPSVersion = curl_version();\n\t\t $CPSFeatures .= ' curl '. $CPSVersion['version'] .';';\n\t\t}\n\t\telse\n\t\t $CPSFeatures .= ' nocurl;';\n\n\t\t// Create user agent\n\t\tdefine( 'CPS_USER_AGENT', CPS_SOFTWARE_NAME .'/'. CPS_SOFTWARE_VER .' ('. trim( $CPSFeatures ) .') '. CPS_MODULE_NAME .'/'. CPS_MODULE_VER );\n\n\t\t// General Defines\n\t\tdefine( 'CPS_TIMEOUT', 15 );\n\t\tdefine( 'CPS_EPSILON', 0.01 );\n\n\t}"
] | [
"0.58577436",
"0.5598669",
"0.5598591",
"0.558845",
"0.55133605",
"0.54477674",
"0.5444036",
"0.54157877",
"0.539984",
"0.538066",
"0.53573084",
"0.5347661",
"0.5332233",
"0.5331734",
"0.53153324",
"0.5310569",
"0.5290585",
"0.52899414",
"0.52899045",
"0.5281883",
"0.52814776",
"0.52800155",
"0.5277807",
"0.52636045",
"0.52606773",
"0.5260145",
"0.5251338",
"0.52184",
"0.5218135",
"0.52065337"
] | 0.711979 | 0 |
Verify a classname is a subclass of sndsgd\Task | public static function validateClassname($classname)
{
$class = new ReflectionClass($classname);
while ($class = $class->getParentClass()) {
if ($class->getName() === 'sndsgd\\Task') {
return true;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getTaskClass(){ }",
"abstract function isValidClass($class);",
"protected function taskClassExists($task)\n {\n return $this->findQualifiedName($task, [\n 'Rocketeer\\Tasks\\%s',\n 'Rocketeer\\Tasks\\Subtasks\\%s',\n ]);\n }",
"public function testQueueInstance() {\n\t\t$this->assertTrue(is_a($this->QueuedTask, 'QueuedTask'));\n\t}",
"public function hasSubClass($name);",
"public function hasActiveSubClass();",
"private function autoloadCheckClasses(string $className): bool\n {\n }",
"public function is($klass) {}",
"public function classExists()\n {\n if (!class_exists($this->className) || !is_subclass_of($this->className, Rule::className())) {\n $this->addError('className', \"Unknown Class: {$this->className}\");\n }\n }",
"public function testLoadingChangeTypeClasses()\n {\n $data = json_decode(json_encode($this->validSubmission));\n\n $data->attributes->change_type = 'availability_check';\n $data->attributes->change_items = 'phptest'.time().'.com,'.\n 'phptest'.time().'.net';\n\n $ns = new BulkChange('array', $data, false, false);\n\n foreach ($this->change_types as $change_type => $class_name) {\n $changeTypeClassName = $ns->getFriendlyClassName($change_type);\n\n $this->assertTrue($changeTypeClassName == $class_name);\n\n $fullClassName = \"opensrs\\\\domains\\\\bulkchange\\\\changetype\\\\$changeTypeClassName\";\n $changeTypeClass = $ns->loadChangeTypeClass($change_type);\n\n $this->assertTrue($changeTypeClass instanceof $fullClassName);\n }\n }",
"public function hasClass(string $class): bool;",
"public function accepts($class): bool;",
"function testGetRealClassname() {\n\t\t$result = $this->Task->getRealClassname('Model', 'Post');\n\t\t$this->assertEqual($result, 'Post');\n\n\t\t$result = $this->Task->getRealClassname('Controller', 'Posts');\n\t\t$this->assertEqual($result, 'PostsController');\n\n\t\t$result = $this->Task->getRealClassname('Helper', 'Form');\n\t\t$this->assertEqual($result, 'FormHelper');\n\n\t\t$result = $this->Task->getRealClassname('Behavior', 'Containable');\n\t\t$this->assertEqual($result, 'ContainableBehavior');\n\n\t\t$result = $this->Task->getRealClassname('Component', 'Auth');\n\t\t$this->assertEqual($result, 'AuthComponent');\n\t}",
"private function __is_class($__class)\n {\n if (class_exists($__class))\n return true;\n return false;\n }",
"protected function assertSubclassOf(string $class, string $parent) : void\n {\n $message = \"Failed asserting that class `{$class}` is subclass of `{$parent}`.\";\n $this->assertTrue(is_subclass_of($class, $parent), $message);\n }",
"public static function autoload( $classname )\n\t{\n\t\tif( strncmp( $classname, 'Aimeos\\\\MW\\\\Setup\\\\Task\\\\', 21 ) === 0 )\n\t\t{\n\t\t\t$fileName = substr( $classname, 21 ) . '.php';\n\n\t\t\tforeach( self::$taskPaths as $path )\n\t\t\t{\n\t\t\t\t$file = $path . '/' . $fileName;\n\n\t\t\t\tif( file_exists( $file ) === true && ( include_once $file ) !== false ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"abstract protected function getClass();",
"public function classNameIsSupported($className)\n {\n foreach ($this->supportedParentClasses as $supportedParent) {\n if (is_subclass_of($className, $supportedParent)) {\n return true;\n }\n }\n\n return false;\n }",
"final protected function assertClassExtends(string $parentClassName, string $className)\n {\n $this->assertClassExists($parentClassName);\n $this->assertClassExists($className);\n\n $reflection = new \\ReflectionClass($className);\n\n $this->assertTrue($reflection->isSubclassOf($parentClassName), \\sprintf(\n 'Failed asserting that class \"%s\" extends \"%s\".',\n $className,\n $parentClassName\n ));\n }",
"public function loadClass(string $className): bool;",
"function kindOf ( $value, $className )\n{\n $className = ltrim( trim( (string) $className ), \"\\\\\" );\n\n if ( is_object($value) )\n return ( $value instanceof $className ) ? TRUE : FALSE;\n\n $value = trim( trim( (string) $value ), \"\\\\\" );\n\n if ( !class_exists($value) )\n return FALSE;\n\n if ( strcasecmp($value, $className) == 0 )\n return TRUE;\n\n if ( is_subclass_of($value, $className) )\n return TRUE;\n\n return in_array(\n $value,\n array_map( \"strtolower\", class_implements( $value ) )\n );\n\n}",
"public function isInstanceOf($otherClassName) {\n $type = \"\\\\\" . trim($this->type, \"\\\\\");\n $otherClassName = \"\\\\\" . trim($otherClassName, \"\\\\\");\n\n return is_subclass_of($type, $otherClassName) || $otherClassName == $type;\n }",
"public abstract function getClass();",
"public function supportsClass(string $class)\n {\n }",
"function testGetClassName() {\n\t\t$objects = App::objects('model');\n\t\t$skip = $this->skipIf(empty($objects), 'No models in app, this test will fail. %s');\n\t\tif ($skip) {\n\t\t\treturn;\n\t\t}\n\t\t$this->Task->setReturnValueAt(0, 'in', 'MyCustomClass');\n\t\t$result = $this->Task->getClassName('Model');\n\t\t$this->assertEqual($result, 'MyCustomClass');\n\n\t\t$this->Task->setReturnValueAt(1, 'in', 1);\n\t\t$result = $this->Task->getClassName('Model');\n\t\t$options = App::objects('model');\n\t\t$this->assertEqual($result, $options[0]);\n\t}",
"private function autoloadCheckNamespaces(string $className): bool\n {\n }",
"public function isTargetInstanceOf($classname)\n {\n return is_object($this->target) ? $this->target instanceof $classname : false;\n }",
"public static function IsThisClass(command $cmd)\r\n {\r\n return true;\r\n }",
"public function supportsClass();",
"public function hasClass() : bool;"
] | [
"0.61979073",
"0.6110755",
"0.6073089",
"0.5998652",
"0.5939556",
"0.5825318",
"0.58122987",
"0.57237124",
"0.5721881",
"0.56945425",
"0.56653136",
"0.56330067",
"0.56054443",
"0.55862105",
"0.5581095",
"0.55362064",
"0.548766",
"0.54677474",
"0.54308444",
"0.5422086",
"0.5409373",
"0.54081917",
"0.5407063",
"0.5404399",
"0.540093",
"0.53889066",
"0.53623605",
"0.53407794",
"0.53353816",
"0.5334636"
] | 0.76341873 | 0 |
Get's a Publisher by it's ID | public function get($publisher_id)
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPublisher($id)\n\t{\n\t\t$result = $this->table->find($id);\n\t\treturn $result;\n\t}",
"public function show($id)\n {\n return $this->publisher->find($id);\n }",
"public function getPublisher($id)\n {\n $select = $this->getSelect();\n $select->where('id = :id');\n $select->bindValue('id', $id);\n\n $result = $this->executeSql($select)->fetch();\n if (!$result) {\n return new Publisher();\n }\n\n return $this->getObjectMapper()->populate($result, PublishersMaps::MAP_PUBLISHER);\n }",
"public function get($id)\n {\n // init parameters\n $parameters = array();\n\n // define parameters\n $parameters['PublicationId'] = (int) $id;\n\n // define result\n $result = $this->doCall('GetPublication', $parameters);\n\n // return item\n return $result['Publication'];\n }",
"public function get($id)\n {\n // init parameters\n $parameters = array();\n\n // define parameters\n $parameters['PublicationId'] = (int) $id;\n\n // define result\n $result = $this->doCall('GetPublication', $parameters);\n\n // return item\n return $result['Publication'];\n }",
"public function getThisPublisher($value, $id = true)\n {\n # Set the Database instance to a variable.\n $db = DB::get_instance();\n\n try {\n # Check if the passed $value is an id.\n if ($id === true) {\n # Set the field to search for $value.\n $field = 'id';\n # Set the publisher id to the data member \"cleaning\" it.\n $this->setID($value);\n # Get the publisher id and reset it to the variable.\n $value = $this->getID();\n } else {\n # Set the field to search for $value.\n $field = 'name';\n # Set the publisher name to the data member \"cleaning\" it.\n $this->setPublisher($value);\n # Get the publisher name and reset it to the variable.\n $value = $this->getPublisher();\n }\n # Get the publisher info from the Database.\n $publisher = $db->get_row('SELECT `id`, `name`, `date`, `info`, `contributor`, `recent_contributor`, `last_edit` FROM `' . DBPREFIX . 'publishers` WHERE `' . $field . '` = ' . $db->quote($db->escape($value)) . ' LIMIT 1');\n # Check if a row was returned.\n if ($publisher !== null) {\n # Set the publisher's id to the data member.\n $this->setID($publisher->id);\n # Set the publisher's name to the data member.\n $this->setPublisher($publisher->name);\n # Set the contributor id to the data member.\n $this->setContID($publisher->contributor);\n # Set the recent contributor id to the data member.\n $this->setRecentContID($publisher->recent_contributor);\n # Set the date to the data member.\n $this->setDate($publisher->date);\n # Set the last edit date to the data member.\n $this->setLastEdit($publisher->last_edit);\n # Set the publisher's info to the data member.\n $this->setInfo($publisher->info);\n\n return true;\n }\n\n # Return FALSE because the publisher wasn't in the table.\n return false;\n } catch (ezDB_Error $ez) {\n # Throw an exception because there was a Database connection error.\n throw new Exception('Error occured: ' . $ez->error . '<br />Code: ' . $ez->errno . '<br />Last query: ' . $ez->last_query,\n E_RECOVERABLE_ERROR);\n } catch (Exception $e) {\n # Re-throw any caught exceptions.\n throw $e;\n }\n }",
"public function show($id)\n {\n return $this->publication->findOrFail($id);\n }",
"public function getPub($id){\n $pub = DB::table('pubs')\n ->join('orders','orders.pub_id','=','pubs.id')\n ->where('orders.id','=',$id)\n ->first();\n return $pub;\n }",
"public function getPublisherId()\n {\n return $this->publisherId;\n }",
"public function getPublishedById($id)\n {\n return $this->newsRepository->getPublishedById($id);\n }",
"public function getPublisherArray($id)\n {\n $item = $this->getPublisher($id);\n if ($item->getId() !== 0) {\n return $this->getObjectMapper()->extract($item, PublishersMaps::MAP_PUBLISHER);\n }\n\n return $item;\n }",
"public function show($id)\n {\n $publisher = $this->publisher->find($id);\n\n return view('backend.publisher.show', compact('publisher'));\n }",
"public function getBy($id);",
"public function testFindById(): void\n {\n // given\n $expectedPublisher = new Publisher();\n $expectedPublisher->setName('Test Publisher');\n $this->publisherRepository->save($expectedPublisher);\n\n // when\n $result = $this->publisherService->findOneById($expectedPublisher->getId());\n\n // then\n $this->assertEquals($expectedPublisher->getId(), $result->getId());\n }",
"function getPublisher()\n {\n return $this->publisher;\n }",
"public function get_by_id($id)\n {\n $this->db->join('psr_users','psr_users.ID=psr_documents.doc_author');\n $this->db->where($this->primary_key,$id);\n $query = $this->db->get($this->table);\n return $query->row();\n }",
"public function show($id)\n {\n return PublishingCompany::findOrFail($id);\n }",
"public function get_single($id);",
"public function getPublisher(): ?string;",
"public function getPublisher()\n {\n return $this->publisher;\n }",
"public function getPublisher()\n {\n return $this->publisher;\n }",
"public function getByID ($id) {\n\t\n\t\t// query database\n\t\t$sql = \"SELECT * FROM \".DB_PREFIX.\"subscribers WHERE subscriberID = \".intval($id);\n\t\t$rec = $this->db->query($sql);\n\t\t\n\t\t// return result\n\t\tif ($row = $rec->fetch()) {\n\t\t\treturn new Subscriber($row);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t\n\t}",
"public function show($id)\n {\n $book = Book::find($id)->load('publisher');\n\n if($book === null) {\n $statusMsg = \"Book not found!\";\n $statusCode = 404;\n }\n else {\n $statusMsg = \"Success\";\n $statusCode = 200;\n }\n\n return response()->json([\n 'status' => $statusMsg,\n 'data' => $book\n ], $statusCode);\n }",
"public function get(string $id);",
"public function get(string $id);",
"public function get(string $id);",
"public function get(string $id);",
"public function getbyId($id);",
"public function getPublisher() {\n return $this->publisher;\n }",
"public function getPublisher() {\n return $this->publisher;\n }"
] | [
"0.8164476",
"0.7792862",
"0.75833786",
"0.7060283",
"0.7060283",
"0.68875116",
"0.6784634",
"0.672027",
"0.6539535",
"0.6316134",
"0.6262309",
"0.6239079",
"0.6211457",
"0.6175578",
"0.6159408",
"0.61233693",
"0.60933614",
"0.608326",
"0.60647196",
"0.6064379",
"0.6064379",
"0.6054533",
"0.6037575",
"0.6026401",
"0.6026401",
"0.6026401",
"0.6026401",
"0.60128486",
"0.5965976",
"0.5965976"
] | 0.7960431 | 1 |
Generate the HTML notice. | public function generate() {
// Start to build the elements of the notice
$status = $this->_status;
$title = $this->_title ? "<h3>{$this->_title}</h3>" : '';
$intro = $this->_intro ? "<p>{$this->_intro}</p>" : '';
$class = $this->_class ? 'notice ' . $this->_class : '';
$list = $this->_list ? '<ul><li>' . implode('</li><li>', $this->_list) . '</li></ul>' : '';
return '<div class="' . $class . '">' . $title . $intro . $list . '</div>';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function notice_template() {\n\t\t$content = '<div id=\"%s\" class=\"notice notice-success is-dismissible notice-app-gdpr\" data-nonce=\"%s\" data-user_id=\"%s\">';\n\t\t$content .= wpautop( __( 'Terminmanager/Datenschutz-Einstellung \"<strong>%s</strong>\" wurde geändert - bitte aktualisiere Deine %s', 'appointments' ) );\n\t\t$content .= '</div>';\n\t\treturn $content;\n\t}",
"public function test_notice() {\n ?>\n\t\t<div class=\"notice notice-error\"><p>When I look back on my childhood, I think of that short time in Beirut. I know that seeing the city collapse around me forced me to grasp something many people miss: the fragility of peace.</p></div>\n\t\t<div class=\"notice notice-warning\"><p>Lebanon was at one time known as a nation that rose above sectarian hatred; Beirut was known as the Paris of the Middle East. All of that was blown apart by senseless religious wars, financed and exploited in part by those who sought power and wealth. If women had been in charge, would they have been more sensible? It's a theory.</p></div>\n\t\t<div class=\"notice notice-success\"><p>I come from a specific area in Beirut where it's multicultural, and it's a culture that blends with multiple cultures - it's unbelievable lifestyle.</p></div>\n\t\t<div class=\"notice notice-info\"><p>Growing up in Beirut, I used to go to the souks with my mother to buy fabrics... I understood fashion at an early age, and my first designs were when I was five.</p></div>\n\t\t<div class=\"notice notice-success is-dismissible\"><p>I was actually lost in Beirut on the way home.</p></div>\n\t\t<?php\n }",
"public static function display() {\n\n\t\techo '<div class=\"error\"><p>';\n\t\techo self::NOTICE_LABEL . ':';\n\t\tforeach ( self::$_notices as $notice ) {\n\t\t\techo '<br/>' . esc_html( $notice );\n\t\t}\n\t\techo '</p></div>';\n\t}",
"public function output_notices()\n {\n }",
"function render() {\n\t\tprintf( '<div class=\"notice %1$s %2$s\"><p>%3$s</p></div>',\n\t\t\tesc_attr( $this->notice_type ),\n\t\t\tesc_attr( ($this->dismissible ? 'is-dismissible' : '') ),\n\t\t\tesc_html( $this->message )\n\t\t);\n\t}",
"public function newsup_admin_notice() {\n\t\t?>\t\t\t\n\t\t<div class=\"updated notice is-dismissible newsup-notice\">\n\t\t\t<h1><?php\n\t\t\t$theme_info = wp_get_theme();\n\t\t\tprintf( esc_html__('Congratulations, Welcome to %1$s Theme', 'newsup'), esc_html( $theme_info->Name ), esc_html( $theme_info->Version ) ); ?>\n\t\t\t</h1>\n\t\t\t<p><?php echo sprintf( esc_html__(\"Thank you for choosing Newsup theme. To take full advantage of the complete features of the theme, you have to go to our %1\\$s welcome page %2\\$s.\", \"newsup\"), '<a href=\"' . esc_url( admin_url( 'themes.php?page=newsup-getting-started' ) ) . '\">', '</a>' ); ?></p>\n\t\t\t\n\t\t\t<p><a href=\"<?php echo esc_url( admin_url( 'themes.php?page=newsup-getting-started' ) ); ?>\" class=\"button button-blue-secondary button_info\" style=\"text-decoration: none;\"><?php echo esc_html__('Get started with Newsup','newsup'); ?></a></p>\n\t\t</div>\n\t\t<?php\n\t}",
"protected function noticeBlock()\n {\n if (count($this->availableMethods()) == 0) {\n return '<div>\n\t <ul class=\"messages\">\n\t <li class=\"notice-msg\">\n\t <ul>\n\t <li>' . __(\"Can't continue with payment,because vendor did not specify payment method(s).\") . '</li>\n\t </ul>\n\t </li>\n\t </ul>\n\t </div>';\n }\n return '';\n\n }",
"public function custom_admin_notices() {\n ?>\n\t\t<div class=\"notice notice-big-error\"><p>In 1982, Israel began an invasion across its northern border, seeking to root out elements of the Palestine Liberation Organization. The Israeli military wreaked destruction all the way up to Beirut and forced the P.L.O. out of Lebanon. It also defeated the Syrian Army and, particularly, the Air Force wherever it engaged them.</p></div>\n\t\t<div class=\"notice notice-admin-user-award\"><p>I love the Middle East. My earliest childhood memories are of Jerusalem. I love the colors and smells and cadence of Arabic spoken in the streets of Cairo or Beirut. I also love the modernity and verve of Tel Aviv.</p></div>\n\t\t<div class=\"notice notice-light-bulb\"><p>A phoenix, Beirut seems to always pull itself out its ashes, reinvents itself, has been conquered numerous times in its 7,000-year history, yet it survives by both becoming whatever its conquerors wished it to be and retaining its idiosyncratic persona..</p></div>\n\t\t<div class=\"notice notice-social-media\"><p>Beirut is where I was born and raised.</p></div>\n\t\t<div class=\"notice notice-neo\"><p>Beirut turned into a war zone in a matter of hours. We were stuck at home, the roads were blocked.</p></div>\n\t\t<?php\n }",
"function showPageNotice()\n {\n $instr = $this->getInstructions();\n $output = common_markup_to_html($instr);\n\n $this->elementStart('div', 'instructions');\n $this->raw($output);\n $this->elementEnd('div');\n }",
"public function display_notice() {\n\t\t$intro = \"This plugin can't load because\";\n\t\t?>\n\n\t\t<tr class=\"plugin-update-tr <?= $this->is_plugin_active() ? 'active' : 'inactive'; ?>\">\n\t\t\t<td colspan=\"3\" class=\"plugin-update colspanchange\">\n\t\t\t\t<div class=\"update-message notice inline notice-error notice-alt\">\n\t\t\t\t\t<?php if ( count( $this->messages ) > 1 ) : ?>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<?php echo $intro . ':' ?>\n\t\t\t\t\t\t</p>\n\n\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t<?php foreach ( $this->messages as $message ) : ?>\n\t\t\t\t\t\t\t\t<li><?php echo $message; ?></li>\n\t\t\t\t\t\t\t<?php endforeach; ?>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t<?php else : ?>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<?php echo $intro . ' ' . current( $this->messages ); ?>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t<?php endif; ?>\n\t\t\t\t</div>\n\t\t\t</td>\n\t\t</tr>\n\n\t\t<?php\n\t}",
"final public function notice_wrap() {\n\t\techo '<aside class=\"tsfem-notice-wrap\">';\n\t\t\\do_action( 'tsfem_notices' );\n\t\techo '</aside>';\n\t}",
"function notice()\r\n {\r\n }",
"final function print_wp_page_notice(): void {\r\n $mod = JKNAPI::module();\r\n $mod_name = $mod->name();\r\n $spage_url = $mod->settings_page()->url();\r\n \r\n $link = sprintf('<a href=\"%1$s\" title=\"%2$s\">%2$s</a>',\r\n $spage_url, sprintf('%s Scheduler', $mod_name));\r\n\r\n $msg = sprintf('This page is managed by %s. The page \"%s\"'\r\n . ' is set to generate and replace the content.'\r\n . ' Go to the %s to change this setting.',\r\n $mod_name, $this->name, $link);\r\n\r\n printf('<div class=\"notice notice-info\"><p>%s</p></div>', $msg);\r\n }",
"public function notice_display() {\n\t\t$update = $this->notice_inner();\n\t\techo '<div class=\"tribe-events-timezone-update-msg updated updating\"> ' . $update . ' </div>';\n\t}",
"public function admin_notice() {\n\t\t$private_session = get_option(self::$option_name);\n\t\t$now = json_decode(get_option($private_session));\n\t\t?>\n\t\t<?php if( empty($now) ): ?>\n <div class=\"notice notice-error\">\n <p>\n\t\t\t\t\t<?php printf(__( 'To activating your %s please insert you license key', $this->text_domain ), $this->name); ?>\n <a href=\"<?php echo admin_url( 'admin.php?page='.$this->slug ); ?>\" class=\"button button-primary\"><?php _e('Register Now', $this->text_domain); ?></a>\n </p>\n </div>\n\t\t<?php elseif( $now->action != 1 ): ?>\n <div class=\"notice notice-error\">\n <p>\n\t\t\t\t\t<?php printf(__( 'There is something wrong with your %s license. please check it.', $this->text_domain ), $this->name); ?>\n <a href=\"<?php echo admin_url( 'admin.php?page='.$this->slug ); ?>\" class=\"button button-primary\"><?php _e('Check Now', $this->text_domain); ?></a>\n </p>\n </div>\n\t\t<?php endif; ?>\n\t\t<?php\n\t}",
"public function admin_notice() {\n\n\t\tif ( $this->hui_domains_url ) {\n\n\t\t\t$change_domain_link = sprintf(\n\t\t\t\t' <a href=\"%1$s\">%2$s<span class=\"dashicons dashicons-external\" style=\"width: 16px; height: 16px; margin: 1px 0 0 3px; font-size: 16px; text-decoration: none;\"></span></a>',\n\t\t\t\tesc_url( $this->hui_domains_url ),\n\t\t\t\tesc_html__( 'Change domain', 'mwp-system-plugin' )\n\t\t\t);\n\n\t\t}\n\n\t\tprintf(\n\t\t\t'<div class=\"notice notice-warning\">\n\t\t\t\t<p>%s</p>\n\t\t\t</div>',\n\t\t\twp_kses_post( sprintf(\n\t\t\t\t/* translators: 1. 'Note' wrapped in <strong> tags. 2. Link to external site where domain can be changed. */\n\t\t\t\t__( '%1$s Your site is still using a temporary domain: %2$s %3$s', 'mwp-system-plugin' ),\n\t\t\t\tsprintf( '<strong>%s</strong>', esc_html__( 'Note:', 'mwp-system-plugin' ) ),\n\t\t\t\tesc_url( Config::get( 'default_site_url' ) ),\n\t\t\t\t! empty( $change_domain_link ) ? $change_domain_link : ''\n\t\t\t) )\n\t\t);\n\n\t}",
"function show_admin_notice(){\r\n\r\n\t\t$class = 'notice notice-error is-dismissible';\r\n\t\t$buy_kallyas_url = 'https://themeforest.net/item/kallyas-responsive-multipurpose-wordpress-theme/4091658';\r\n\t\t$buy_link = sprintf( '<a class=\"button button button-primary\" href=\"%1$s\" target=\"_blank\">%2$s</a>', $buy_kallyas_url, __( 'Get Kallyas theme from here', 'znpb-posts-layouts' ) );\r\n\t\t$message = __( 'Kallyas theme is not installed! ZNPB Blog-Posts Layouts Element only works with Kallyas theme.', 'znpb-posts-layouts' );\r\n\r\n\t\tprintf( '<div class=\"%1$s\"><p>%2$s</p><p>%3$s</p></div>', $class, $message, $buy_link );\r\n\r\n\t}",
"private function esc_notice($message = '')\n {\n }",
"public function get_notice_text() {\n\t\treturn \\__(\n\t\t\t'The original post has been edited in the meantime. If you click \"Republish\", this rewritten post will replace the original post.',\n\t\t\t'duplicate-post'\n\t\t);\n\t}",
"public function add_admin_notice()\n {\n echo '<div class=\"' . $this->type . '\">';\n echo '<p>' . $this->notice . '</p>';\n echo '</div>';\n }",
"public function render_promo_notices_html() {\n $notices = $this->promotions->plugin_name_get_promo_notices();\n\n if ( empty( $notices ) ) {\n return;\n }\n\n foreach ($notices as $notice){\n $this->promotions->plugin_name_get_template(\n $this->template_name, [\n 'notice' => $notice,\n ],\n $this->template_path\n );\n }\n }",
"function icopyright_interactive_notice() {\r\n if(!icopyright_post_passes_filters())\r\n return;\r\n\r\n global $post;\r\n $post_id = $post->ID;\r\n $pub_id_no = get_option('icopyright_pub_id');\r\n\r\n //construct copyright notice\r\n $publish_date = $post->post_date;\r\n $date = explode('-', $publish_date);\r\n $site_name = get_option('icopyright_publication');\r\n if ($site_name == NULL || empty($site_name)) {\r\n \t$site_name = get_option('icopyright_site_name'); // legacy\r\n }\r\n $pname = empty($site_name) ? get_bloginfo() : $site_name;\r\n $icx_copyright = \"Copyright \" . $date['0'] . \" $pname\";\r\n\r\n\t$server = icopyright_get_server();\r\n $static_server = icopyright_static_server();\r\n $portal = getPortal();\r\n \r\n //construct icopyright interactive copyright notice\r\n\r\n $icn = <<<NOTICE\r\n<!-- iCopyright Interactive Copyright Notice -->\r\n<a class=\"repubhubtoolbar\"\r\n data-publication-id=\"$pub_id_no\"\r\n data-article-id=\"$post_id\"\r\n data-type=\"footer\"\r\n href=\"$portal/freePost.act?tag=3.$pub_id_no?icx_id=$post_id\" target=\"_blank\">\r\n <span style=\"font-size: 7pt;\">Click here for reuse options!</span><br/>$icx_copyright</a>\r\n<script async src=\"$static_server/rights/js/repubhub.toolbar.js\"></script>\r\n<!-- iCopyright Interactive Copyright Notice -->\r\nNOTICE;\r\n\r\n return $icn;\r\n}",
"public function Render_Warning() {\r\n $form_instance = $this->form_instance;\r\n // Start gathering content\r\n ob_start(); \r\n // Include the template file\r\n include(VCFF_META_DIR.'/templates/VCFF_Meta_Warning.tpl.php');\r\n // Get contents\r\n $output = ob_get_contents();\r\n // Clean up\r\n ob_end_clean();\r\n // Retrieve the output html\r\n $output_html = apply_filters('vcff_meta_render_warning',$output,$this);\r\n // Return the contents\r\n return $output_html;\r\n }",
"function makeNotice($body, $type = \"notice\", $title = \"\", $backlink = \"index.php\", $backlinkdesc = \"[OK]\") {\r\n\r\n\tglobal $IGB;\r\n\tglobal $IGB_VISUAL;\r\n\tglobal $MySelf;\r\n\r\n\t// Check for valid type\r\n\tswitch ($type) {\r\n\t\tcase (\"notice\") :\r\n\t\t\t$typeText = \"Notice\";\r\n\t\t\t$color = \"#444455\";\r\n\t\t\t$img = \"ok.png\";\r\n\t\t\tbreak;\r\n\r\n\t\tcase (\"warning\") :\r\n\t\t\t$typeText = \"Warning\";\r\n\t\t\t$color = \"#904000\";\r\n\t\t\t$img = \"warning.png\";\r\n\t\t\tbreak;\r\n\r\n\t\tcase (\"error\") :\r\n\t\t\t$typeText = \"Error\";\r\n\t\t\t$color = \"#772222\";\r\n\t\t\t$img = \"error.png\";\r\n\t\t\tbreak;\r\n\r\n\t\tdefault :\r\n\t\t\t// Yeah, we call ourselves!\r\n\t\t\t$BT = nl2br(print_r(debug_backtrace(), true));\r\n\t\t\tmakeNotice(\"Internal Error: Wrong errortype defines in makeNotice.<br><br>\" . $BT, \"error\");\r\n\t\t\tbreak;\r\n\t}\r\n\r\n\t// Use global variables.\r\n\tglobal $IGB;\r\n\tglobal $VERSION;\r\n\tglobal $TIMEMARK;\r\n\tglobal $TIDY_ENABLE;\r\n\tglobal $MySelf;\r\n\r\n\t// Do we have a title? \r\n\tif (empty ($title)) {\r\n\t\t$title = \"$VERSION - Notice\";\r\n\t}\r\n\r\n\t// Do we have a body? \r\n\tif (empty ($title)) {\r\n\t\tmakeErrorPage(\"makeNotice called without body context.\");\r\n\t}\r\n\r\n\t// Beautify the time.\r\n\t$STAMP = date(\"r\", $TIMEMARK);\r\n\r\n\t// Assemble the raw html page.\r\n\t//\t$HTML = $page;\r\n\r\n\tif ($IGB && $IGB_VISUAL) {\r\n\t\t$HTML .= file_get_contents('./include/ingame/igb-notice.txt');\r\n\t} else {\r\n\t\t$HTML .= file_get_contents('./include/html/notice.txt');\r\n\t}\r\n\r\n\t//\t$HTML .= $footer;\r\n\r\n\t// Replace placeholders with information.\r\n\t$HTML = str_replace(\"%%TITLE%%\", \"$title\", $HTML);\r\n\t$HTML = str_replace(\"%%BODY%%\", \"$body\", $HTML);\r\n\t$HTML = str_replace(\"%%WHAT%%\", \"$typeText\", $HTML);\r\n\t$HTML = str_replace(\"%%TIME%%\", \"$STAMP\", $HTML);\r\n\t$HTML = str_replace(\"%%COLOR%%\", \"$color\", $HTML);\r\n\t$HTML = str_replace(\"%%IMG%%\", \"$img\", $HTML);\r\n\t$HTML = str_replace(\"%%BACKLINK%%\", \"$backlink\", $HTML);\r\n\t$HTML = str_replace(\"%%BACKLINKDESC%%\", \"$backlinkdesc\", $HTML);\r\n\tif (is_object($MySelf) && $MySelf->isValid()) {\r\n\t\t$HTML = str_replace(\"%%USER%%\", \"Logged in as \" . $MySelf->getUsername(), $HTML);\r\n\t} else {\r\n\t\t$HTML = str_replace(\"%%USER%%\", \"Not logged in.\", $HTML);\r\n\t}\r\n\r\n\t// Spill it out\r\n\t$htmlobj = new html;\r\n\t$htmlobj->addBody($HTML);\r\n\tdie($htmlobj->flush());\r\n\r\n}",
"protected function debug_notice() {\n\t\t\tif ( $this->has( 'debug' ) ) {\n\t\t\t\treturn '<a class=\"wponion-field-debug-handle\" data-wponion-jsid=\"' . $this->js_field_id() . '\"><span class=\"badge badge-primary\">' . __( 'Debug Field' ) . '</span></a>';\n\t\t\t}\n\t\t\treturn '';\n\t\t}",
"public function render_notices_action() {\n\t\tforeach ( $this->notices as $notice ) {\n\t\t\techo $notice;\n\t\t}\n\t}",
"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}",
"public function showNotice() {\n\t\t$medium = false !== strpos( AIOSEO_PHP_VERSION_DIR, 'pro' ) ? 'proplugin' : 'liteplugin';\n\t\t?>\n\t\t<div class=\"notice notice-warning aioseo-deprecated-wordpress-notice is-dismissible\">\n\t\t\t<p>\n\t\t\t\t<?php\n\t\t\t\techo wp_kses(\n\t\t\t\t\tsprintf(\n\t\t\t\t\t\t// Translators: 1 - Opening HTML bold tag, 2 - Closing HTML bold tag.\n\t\t\t\t\t\t__( 'Your site is running an %1$soutdated version%2$s of WordPress. We recommend using the latest version of WordPress in order to keep your site secure.', 'all-in-one-seo-pack' ), // phpcs:ignore Generic.Files.LineLength.MaxExceeded\n\t\t\t\t\t\t'<strong>',\n\t\t\t\t\t\t'</strong>'\n\t\t\t\t\t),\n\t\t\t\t\t[\n\t\t\t\t\t\t'strong' => [],\n\t\t\t\t\t]\n\t\t\t\t);\n\t\t\t\t?>\n\t\t\t\t<br><br>\n\t\t\t\t<?php\n\t\t\t\techo wp_kses(\n\t\t\t\t\tsprintf(\n\t\t\t\t\t\t// Translators: 1 - Opening HTML bold tag, 2 - Closing HTML bold tag, 3 - The plugin name (\"All in One SEO\"), 4 - Opening HTML link tag, 5 - Closing HTML link tag.\n\t\t\t\t\t\t__( '%1$sNote:%2$s %3$s will be discontinuing support for WordPress versions older than version 5.3 by the end of 2021. %4$sRead more for additional information.%5$s', 'all-in-one-seo-pack' ), // phpcs:ignore Generic.Files.LineLength.MaxExceeded\n\t\t\t\t\t\t'<strong>',\n\t\t\t\t\t\t'</strong>',\n\t\t\t\t\t\t'AIOSEO',\n\t\t\t\t\t\t'<a href=\"https://aioseo.com/docs/update-wordpress/?utm_source=WordPress&utm_medium=' . $medium . '&utm_campaign=outdated-wordpress-notice\" target=\"_blank\" rel=\"noopener noreferrer\">', // phpcs:ignore Generic.Files.LineLength.MaxExceeded\n\t\t\t\t\t\t'</a>'\n\t\t\t\t\t),\n\t\t\t\t\t[\n\t\t\t\t\t\t'a' => [\n\t\t\t\t\t\t\t'href' => [],\n\t\t\t\t\t\t\t'target' => [],\n\t\t\t\t\t\t\t'rel' => [],\n\t\t\t\t\t\t],\n\t\t\t\t\t\t'strong' => [],\n\t\t\t\t\t]\n\t\t\t\t);\n\t\t\t\t?>\n\t\t\t</p>\n\t\t</div>\n\n\t\t<?php\n\t\t// In case this is on plugin activation.\n\t\tif ( isset( $_GET['activate'] ) ) {\n\t\t\tunset( $_GET['activate'] );\n\t\t}\n\t}",
"function notice_message($message) {\n\t$msg = \"\\t<div class=\\\"clear\\\"></div>\\n\\n\";\n\t$msg .= \"\\t<!-- div class message is for general messages & warnings -->\\n\";\n\t$msg .= \"\\t<div class=\\\"notice-message\\\">\".$message.\"</div>\\n\";\n\n\treturn $msg;\n}",
"public function notice(){\n\t\t$this->iLog(func_get_args(),__FUNCTION__);\n\t}"
] | [
"0.7602502",
"0.71420944",
"0.70538616",
"0.7001683",
"0.6981224",
"0.6904918",
"0.688942",
"0.6837061",
"0.679568",
"0.67883486",
"0.67393064",
"0.67330164",
"0.6670063",
"0.66683346",
"0.65915126",
"0.65255904",
"0.65183884",
"0.64657193",
"0.641349",
"0.6386667",
"0.6382961",
"0.63711834",
"0.6279125",
"0.62657773",
"0.6258869",
"0.6246072",
"0.6226565",
"0.6225454",
"0.6202443",
"0.61992353"
] | 0.78072524 | 0 |
create the record cell with fields table atributes data_set message send_SMS new_record_entry DIV_TABLE DIV_ROW footer_info | function record_form() {
$out .= hide_header_on_this_page();
global $wpdb; // wordpress database connection
global $myMsg; // messages used by TOT. these are at the top of the page.
$db_fields = $wpdb->prefix . "tot_db_fields"; // load fields records
$query_fields = "SELECT * FROM {$db_fields}"; //fields string to pass to mysql query
$fields_results = mysql_query($query_fields) or die(mysql_error()); // get fields from database
$db_groups = $wpdb->prefix . "tot_db_groups"; // load fields records
$query_groups = "SELECT * FROM {$db_groups}"; //fields string to pass to mysql query
$groups_results = mysql_query($query_groups) or die(mysql_error()); // get groups from database
$out .= "<html><body>"; // start of the html
$out .= "<div id='data_set'>"; // D I V 1 - the entire form so we can easily add style scroll
$out .= "<div id='message'>"; // START OF MESSAGE_DIV
$out .= $myMsg . "<br>To add a new record. enter the new record information, then press ADD NEW COLUMN";
$out .= "</div>"; // END OF MESSAGE_DIV
// my sms code
// =================================================
$out .= "<div id='send_SMS'>"; // SMS_MESSAGE_DIV
$out .= "<form action='' name='send_sms' method='post'>"; // Form - new_record
$out .= "Send someone a text message<br />";
$out .= "<label for='phone'>Phone Number:</label>";
$out .= "<input type='text' name='phone' placeholder='XXX XXX XXXX'>"; // capture the new record name
$out .= "<label for='name'>Users Name:</label>";
$out .= "<input type='text' name='sms_user_name' placeholder='enter the name'>"; // capture the new record name
$out .= "<label for='message'>Message to send:</label>";
$out .= "<input type='text' name='message' placeholder='enter your message'>"; // capture the new record name
$out .= wp_nonce_field('db_update_nonce_field', 'db_update_secure_nonce_field'); // SECURITY
$out .= "<input type='submit' name='send_sms_message' value='send message'>"; // the add new button
$out .= "</form>"; // end of form
$out .= "</div>"; // end of SMS_MESSAGE
// my record form
// =================================================
$out .= "<div id='new_record_entry'>"; // MAIN_RECORD_DIV
$out .= "<form name='new_record_field' method='POST'>"; // Form - new_record
$out .= "<input type='hidden' name='record_field_form'>"; // unique identifier for this form
$out .= wp_nonce_field('db_update_nonce_field', 'db_update_secure_nonce_field'); // SECURITY
// create INPUT for new record name
$out .= "<label for='new_record_name_input'>Record Name:</label>";
$out .= "<input type='text' name='new_record_name_input' placeholder='new record name'>"; // capture the new record name
// CREATE BUTTONS
$out .= "<input type='submit' name='ADD_RECORD_COLUMN' value='add new column'>"; // the add new button
$out .= "<input type='submit' name='DELETE_RECORD_COLUMN' value='Delete column'><br>"; // the add new button
// create INPUT for a new group
$out .= "<label for='new_record_group'>Record Group:</label>";
$out .= "<input type='text' name='new_record_group' id='new_record_group' placeholder='new group name'></label>"; // capture the new record group
$out .= "<hr>";
// OUTPUT THE RECORDS
$num_cols = mysql_num_fields($fields_results);
$num_rows = mysql_num_rows($fields_results);
$values = array();
$headers = array();
for ($c = 1; $c <= $num_cols; $c++) {
for ($r = 1; $r <= $num_rows; $r++) {
$values['col_' . $c][$r] = array();
}
}
for ($c = 1; $c <= $num_cols; $c++) {
$headers['col_' . $c][1] = array();
}
// load the data into ann array
$c = 1;
$r = 1;
while ($fieldrow = mysql_fetch_assoc($fields_results)) { // load the group_rows of fields data
$c = 1;
foreach ($fieldrow as $field_name => $field_value) {
if ($r == 1) {
$headers['col' . $c][$r] = $field_name;
}
$values['col' . $c][$r] = $field_value;
$c++;
}
$r++;
}
// PRINT OUT TABLE
$out .= "<div class='DIV_TABLE'>";
for ($c = 1; $c <= $num_cols; $c++) {
$out .= "<div id='DIV_ROW'><input style='color: #000; font-weight: bold' readonly value='" . $headers['col' . $c][1] . "'>";
for ($r = 1; $r <= $num_rows; $r++) {
$out .= "<input value='" . $values['col' . $c][$r] . "'>";
}
$out .= "</div>";
}
$out .= "<br></div>";
// DESTROY ARRAYS
unset($headers); unset($values);
$out .= "</form>"; // End the form
$out .= "</div>"; // END OF MAIN_RECORD_DIV
$out .= "</div><br>"; // end / D I V 3 / D I V 2
//===============================================================
$out .= "<div id='footer_info'>"; // D I V information
$out .= "</div>"; // end / D I V information
$out .= "</div>"; // </ end of our html
$out .= "</body>"; // </ end of our html
$out .= "</html>"; // </ end of our html
return $out;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function genRecordTable ($query=\"\",$param=array(),$title=\"\",$css=\"\",$fields=array(),$link_fields=array(),$linked_text=array()) {\n\n $data = $this->getData($query,$param);\n $result = $data->data2Register($title,$css,$fields,$link_fields,$linked_text);\n return $result;\n }",
"public function insert_record(){\n\n\t\t}",
"public function run()\n {\n $tbl_auto_respond_mails = array(\n array('id' => '1','email_section' => 'Registration','email_subject' => 'Welcome to {site_name}','email_content' => '<table style=\"width:100%\" border=\"0\"> <tbody> <tr> <td style=\"mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" valign=\"top\" align=\"center\"> <table id=\"templateHeader\" style=\"border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;background-color: #FFFFFF;border-top: 0;border-bottom: 0;\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"> <tbody> <tr> <td style=\"mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" valign=\"top\" align=\"center\"> <table class=\"templateContainer\" style=\"border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" width=\"600\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"> <tbody> <tr> <td class=\"headerContainer\" style=\"padding-top: 10px;padding-bottom: 10px;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" valign=\"top\"> <table class=\"mcnImageBlock\" style=\"border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"> <tbody class=\"mcnImageBlockOuter\"> <tr> <td class=\"mcnImageBlockInner\" style=\"padding: 9px;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" valign=\"top\"> <table class=\"mcnImageContentContainer\" style=\"border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"left\"> <tbody> <tr> <td class=\"mcnImageContent\" style=\"padding-right: 9px;padding-left: 9px;padding-top: 0;padding-bottom: 0;text-align: center;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" valign=\"top\"> <img alt=\"\" class=\"mcnImage\" src=\"https://worldbtob.com/mails/logo.png\" style=\"max-width: 51px;padding-bottom: 0;display: inline !important;vertical-align: bottom;border: 0;outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;\" width=\"51\" align=\"middle\"> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> <tr> <td colspan=\"2\"><strong>Hi ,</strong></td> </tr> <tr> <td colspan=\"2\">We are happy to have you as the newest member of {site_name} !</td> </tr> <tr> <td colspan=\"2\"> </td> </tr> <tr colspan=\"2\"> <td><p>Thank you for signing up for {site_name}! Just one small step before you get started. Click the button below to verify your email address.</p> </td> </tr> <tr> <td class=\"mcnButtonContent\" style=\"font-family: Tahoma, Verdana, Segoe, sans-serif;font-size: 20px;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" valign=\"middle\" align=\"center\"><a style=\"margin-top:20px; margin-bottom:20px; text-decoration: none; background: #1E89DA; border-radius: 3px; color: #fff; padding: 10px 30px; display: inline-block; cursor: pointer; border-bottom: 3px solid #1265A5\" href=\"{link}\"> Verify your email </a></td> </tr> <tr> <td colspan=\"2\"><p>You signed up for {site_name} with your email <a href=\"\\\\\" mailto:{email}\\\\\"\"=\"\" style=\"\\\\\" word-wrap:\"=\"\" break-word;-ms-text-size-adjust:=\"\" 100%;-webkit-text-size-adjust:=\"\" 100%;color:=\"\" #000000;font-weight:=\"\" normal;text-decoration:=\"\" underline;\\\\\"=\"\">{email}</a> We’re sorry if it wasn’t you. Just ignore this email.</p> <p>We hope you will visit us again soon and put these special services to work foryou.</p> Please feel free to contact us if you have any questions at all. </td> </tr> <tr> <td colspan=\"2\"> </td> </tr> <tr> <td colspan=\"2\">Thank you.<br> {site_name} Customer Service<br> Email: <a href=\"mailto:{admin_email}\" style=\"word-wrap: break-word;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;color: #000000;font-weight: normal;text-decoration: underline;\">{admin_email}</a><br> </td> </tr> <tr> <td colspan=\"2\" style=\"text-align:center\">© 2015 {site_name}. All right reserved.</td> </tr> </tbody></table>','email_content_fa' => '<table border=\"0\" style=\"text-align: right; width: 960px;font-family:tahoma;direction:rtl;\">\n <tbody>\n <tr>\n <td colspan=\"2\"><span style=\"font-weight: 700;\">سلام</span> <span>{user[firstName]}</span> <span>{user[lastName]}</span> </td>\n </tr>\n <tr>\n <td colspan=\"2\"><p><br></p>\n <p>ما خوشحالیم که شما به عنوان تازه ترین عضو از سایت {site_name} هستید ! <span style=\"background-color: transparent;\">با تشکر از شما برای ثبت نام در سایت {site_name}!</span></p>\n </td>\n </tr>\n <tr colspan=\"2\">\n <td><p><span style=\"background-color: transparent;\">فقط یک قدم کوچک قبل از اینکه شروع کنید. برای تأیید آدرس ایمیل خود، روی دکمه زیر کلیک کنید.</span><br></p>\n </td>\n </tr>\n <tr>\n <td class=\"mcnButtonContent\" valign=\"middle\" align=\"center\" style=\"font-family: Tahoma, Verdana, Segoe, sans-serif; font-size: 20px; text-size-adjust: 100%;\"><a href=\"{link}\" style=\"background-color: rgb(30, 137, 218); color: rgb(255, 255, 255); margin-top: 20px; margin-bottom: 20px; border-radius: 3px; padding: 10px 30px; display: inline-block; border-bottom: 3px solid rgb(18, 101, 165);\"> ایمیل خود را تایید کنید </a></td>\n </tr>\n <tr>\n <td colspan=\"2\"> <p style=\"text-align: right; \"> با ایمیل این {email} در سایت <a href=\"{site_link}\">{site_name} </a> .برای شما ثبت نام انجام شده است اگر شما نبودید لطفا این ایمیل را نایدیده بگیرید.</p>\n <p style=\"text-align: right; \"><br></p>\n<div style=\"text-align: right;\"><span style=\"background-color: transparent;\">لطفا در صورت بروز هر گونه سؤال، لطفا با ما تماس بگیرید.</span> </div>\n </td>\n </tr>\n <tr>\n <td colspan=\"2\" style=\"text-align: right;\"><br></td>\n </tr>\n <tr>\n <td colspan=\"2\"> <div style=\"text-align: right;\"><span style=\"background-color: transparent;\">روابط عمومی سایت </span><span style=\"background-color: transparent;\"> </span><a href=\"{site_link}\">{site_name}</a><br></div>\n <div style=\"text-align: right;\"><span style=\"background-color: transparent;\">ایمیل: </span><a href=\"mailto:{admin_email}\" style=\"color: rgb(0, 0, 0); text-decoration-line: underline; word-wrap: break-word; text-size-adjust: 100%;\">{admin_name}</a> </div>\n </td>\n </tr>\n <tr>\n <td colspan=\"2\" style=\"text-align: center;\"><br></td>\n </tr>\n </tbody>\n</table>','email_subject_fa' => 'به سایت {site_name} خوش آمدید','status' => '1','updated_on' => '2018-08-26 18:09:50'),\n array('id' => '2','email_section' => 'Forgot Password','email_subject' => 'Forgot Password','email_content' => '<table border=\"0\" style=\"width:100%\"> <tbody> <tr> <td colspan=\"2\"><strong>Hi {mem_name},</strong></td> </tr> <tr> <td colspan=\"2\">Your login details are as follows:</td> </tr> <tr> <td colspan=\"2\"> </td> </tr> <tr> <td><strong>Email ID:</strong></td> <td>{username}</td> </tr> <tr> <td><strong>password:</strong></td> <td>{password}</td> </tr> <tr> <td colspan=\"2\"> </td> </tr> <tr> <td colspan=\"2\">Click here to login {link}</td> </tr> <tr> <td colspan=\"2\"> </td> </tr> <tr> <td colspan=\"2\">Thank you.<br> {site_name} Customer Service<br> Email: {admin_email}</td> </tr> <tr> <td colspan=\"2\" style=\"text-align:center\">© 2015 {site_name}. All right reserved.</td> </tr> </tbody></table>','email_content_fa' => '<table border=\"0\" style=\"direction:rtl;width:100%;\"> <tbody> <tr> <td colspan=\"2\"><span style=\"font-weight: bold;\">سلام {mem_name}</span></td> </tr> <tr> <td colspan=\"2\">جزئیات ورود شما به شرح زیر است:</td> </tr> <tr> <td colspan=\"2\"> </td> </tr> <tr> <td><strong>آدرس ایمیل:</strong></td> <td>{username}</td> </tr> <tr> <td><strong>رمز عبور:</strong></td> <td>{password}</td> </tr> <tr> <td colspan=\"2\"> </td> </tr> <tr> <td colspan=\"2\">برای ورود کلیک {link} کنید.<br></td></tr><tr><td colspan=\"2\"> </td> </tr> <tr> <td colspan=\"2\"><p>با تشکر از شما</p><p><span style=\"background-color: transparent;\"><br></span></p><p><span style=\"background-color: transparent;\">روابط عمومی سایت: </span><span style=\"background-color: transparent;\">{site_name}</span></p><p><span style=\"background-color: transparent;\">ایمیل: </span><span style=\"background-color: transparent;\">{admin_email}</span><br></p></td> </tr> <tr> <td colspan=\"2\" style=\"text-align:center\"><br></td> </tr> </tbody></table>','email_subject_fa' => '','status' => '1','updated_on' => '2018-08-24 11:59:42'),\n array('id' => '3','email_section' => 'Refer To Friends','email_subject' => '{from_name} Refer a Friend {friend_name}','email_content' => '<table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border:2px solid #e9e9e9; margin-top:10px; width:600px\">\n <tbody>\n <tr>\n <td style=\"text-align:left\">Hi {friend_name}, </td>\n </tr>\n <tr>\n <td> <p><span style=\"background-color: transparent;\">{from_name} has recommended this {text}, as {from_name} thinks you would like it.</span></p>\n<p> <br> To view the Deal details please click on the following link.<br> <br> <a href=\"{link}\" target=\"_blank\">{link} </a></p>\n<p>Thanks and Regards,</p>\n <p>{site_name} Team</p>\n </td>\n </tr>\n <tr>\n <td style=\"text-align:center\">© 2013 {site_name}. All right reserved.</td>\n </tr>\n </tbody>\n</table>','email_content_fa' => '<table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"text-align: right;font-family:tahoma;direction:rtl; border: 2px solid rgb(233, 233, 233); margin-top: 10px; width: 600px;\">\n <tbody>\n <tr>\n <td style=\"text-align: right;font-family:tahoma;\"> سلام {friend_name}, </td>\n </tr>\n <tr>\n <td style=\"text-align: right;font-family:tahoma;\"> <p>{from_name} این {text} را توصیه کرده است، زیرا {from_name} فکر میکند شما آن را دوست دارید.<br> <br>برای مشاهده جزئیات اطلاعات لطفا روی لینک زیر کلیک کنید.<br> <br> <a href=\"{link}\" target=\"_blank\">{link} </a></p>\n<p style=\"text-align: right;font-family:tahoma;\">با تشکر ،</p>\n <p style=\"text-align: right;font-family:tahoma;\">{site_name}</p>\n </td>\n </tr>\n <tr>\n <td style=\"text-align: center;font-family:tahoma;\"><br></td>\n </tr>\n </tbody>\n</table>','email_subject_fa' => '{from_name} پشنهاد می کند به {friend_name}','status' => '1','updated_on' => '2018-08-24 12:08:11'),\n array('id' => '4','email_section' => 'Enquiry','email_subject' => 'Enquiry Received on lead {lead}','email_content' => '<table border=\"0\" style=\"width:100%\">\n\n <tbody>\n\n <tr>\n\n <td colspan=\"2\"><strong>Dear {mem_name}</strong></td>\n\n </tr>\n\n <tr>\n\n <td colspan=\"2\">Enquiry received with following info :</td>\n\n </tr>\n\n <tr>\n\n <td colspan=\"2\"> {company_name}</td>\n\n </tr>\n\n <tr>\n\n <td><strong>Name:</strong></td>\n\n <td>{name}</td>\n\n </tr>\n<tr>\n\n <td><strong>Email:</strong></td>\n\n <td>{email}</td>\n\n </tr>\n\n <tr>\n\n <td><strong>Phone no.:</strong></td>\n\n <td>{phone}</td>\n\n </tr>\n\n <tr>\n\n <td><strong>Comments:</strong></td>\n\n <td>{description}</td>\n\n </tr>\n\n <tr>\n\n <td colspan=\"2\"> </td>\n\n </tr>\n\n <tr>\n\n <td colspan=\"2\"> </td>\n\n </tr>\n\n </tbody>\n\n</table>\n\n\n<p><br>\nThank you.<br>\n{site_name} Customer Service<br>\nEmail: {admin_email}</p>','email_content_fa' => '<table border=\"0\" style=\"width:100%;direction:rtl;\"> <tbody> <tr> <td style=\"text-align: right;font-family:tahoma;\" colspan=\"2\"><strong>{mem_name} عزیز</strong></td> </tr> <tr> <td style=\"text-align: right;font-family:tahoma;\" colspan=\"2\">درخواستی با اطلاعات زیر دریافت شده است: :</td> </tr> <tr> <td colspan=\"2\"> {company_name}</td> </tr> <tr> <td style=\"text-align: right;font-family:tahoma;\"><strong>نام:</strong></td> <td style=\"font-family:tahoma;\">{name}</td> </tr><tr> <td style=\"text-align: right;font-family:tahoma;\"><strong>ایمیل:</strong></td> <td style=\"font-family:tahoma;\">{email}</td> </tr> <tr> <td style=\"text-align: right;font-family:tahoma;\"><strong>شماره تلفن :</strong></td> <td style=\"font-family:tahoma;\">{phone}</td> </tr> <tr> <td style=\"text-align: right;font-family:tahoma;\"><strong>یادداشت- توضیح :</strong></td> <td style=\"font-family:tahoma;\">{description}</td> </tr> <tr> <td style=\"text-align: right;font-family:tahoma;\" colspan=\"2\"> </td> </tr> <tr> <td style=\"text-align: right;font-family:tahoma;\" colspan=\"2\"> </td> </tr> </tbody></table><p style=\"width:100%;direction:rtl;\"><br></p><p style=\"width: 975px; direction: rtl;\">باتشکر</p><p style=\"width:100%;direction:rtl;\">روابط عمومی سایت {site_name} <br>ایمیل: {admin_email}</p>','email_subject_fa' => 'درخواست دریافت شد در آگهی {lead}','status' => '1','updated_on' => '2018-11-12 15:00:08'),\n array('id' => '5','email_section' => 'Contact Us','email_subject' => ' enquiry received {site_name}','email_content' => '<table border=\"0\" style=\"width:100%\">\n\n <tbody>\n\n <tr>\n\n <td colspan=\"2\"><strong>Dear {name}</strong></td>\n\n </tr>\n\n <tr>\n\n <td colspan=\"2\">Enquiry has been submitted with following info :</td>\n\n </tr>\n\n <tr>\n\n <td colspan=\"2\"> </td>\n\n </tr>\n\n <tr>\n\n <td><strong>name:</strong></td>\n\n <td>{name}</td>\n\n </tr>\n\n <tr>\n\n <td><strong>email:</strong></td>\n\n <td>{email}</td>\n\n </tr>\n\n <tr>\n\n <td><strong>phone no:</strong></td>\n\n <td>{phoneNumber}<br></td>\n\n </tr>\n\n <tr>\n\n <td><strong>mobile no:</strong></td>\n\n <td>{mobile}</td>\n\n </tr>\n\n <tr>\n\n <td><strong>comments:</strong></td>\n\n <td>{comment}</td>\n\n </tr>\n\n <tr>\n\n <td colspan=\"2\"> </td>\n\n </tr>\n\n </tbody>\n\n</table>\n\n\n<p><br>\nThank you.<br>\n{site_name} Customer Service<br>\nEmail: {admin_email}</p>','email_content_fa' => '<table border=\"0\" style=\"width:100%;direction:rtl;\">\n <tbody>\n <tr>\n <td style=\"font-family:tahoma;\" colspan=\"2\"><strong> {name} عزیز</strong></td>\n </tr>\n <tr>\n <td style=\"font-family:tahoma;\" colspan=\"2\">درخواست با اطلاعات زیر ارسال شده است :</td>\n </tr>\n <tr>\n <td colspan=\"2\"> </td>\n </tr>\n <tr>\n <td style=\"font-family:tahoma;\"><strong>نام :</strong></td>\n <td style=\"font-family:tahoma;\">{name}</td>\n </tr>\n <tr>\n <td style=\"font-family:tahoma;\"><strong>ایمیل :</strong></td>\n <td style=\"font-family:tahoma;\">{email}</td>\n </tr>\n <tr>\n <td style=\"font-family:tahoma;\"><strong>شماره تلفن :</strong></td>\n <td style=\"font-family:tahoma;\">{phoneNumber}<br></td>\n </tr>\n <tr>\n <td style=\"font-family:tahoma;\"><strong>شماره همراه :</strong></td>\n <td style=\"font-family:tahoma;\">{mobile}</td>\n </tr>\n <tr>\n <td style=\"font-family:tahoma;\"><strong>نظر- پیام :</strong></td>\n <td style=\"font-family:tahoma;\">{comment}</td>\n </tr>\n <tr>\n <td colspan=\"2\"> </td>\n </tr>\n </tbody>\n</table>\n<p style=\"width:100%;direction:rtl;font-family:tahoma;\"><br>با تشکر</p>\n<p style=\"width:100%;direction:rtl;font-family:tahoma;\">روابط عمومی سایت {site_name} <br>ایمیل : {admin_email}</p>','email_subject_fa' => 'درخواست دریافت شد در سایت {site_name}','status' => '1','updated_on' => '2018-08-25 17:46:10'),\n array('id' => '6','email_section' => 'Accept circle requests','email_subject' => 'Circle requests accepted','email_content' => '<table border=\"0\" width=\"100%\">\n\t<tbody>\n\t\t<tr>\n\t\t\t<td colspan=\"2\">\n\t\t\t\t<strong>Dear {mem_name}</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td align=\"center\">\n\t\t\t\t{user_pic}</td>\n\t\t\t<td>\n\t\t\t\t{poster_name} has joined your circle on {site_name}</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t </td>\n\t\t\t<td>\n\t\t\t\t </td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td width=\"10%\">\n\t\t\t\t </td>\n\t\t\t<td>\n\t\t\t\tTo view {poster_name} profile {link}</td>\n\t\t</tr>\n\t</tbody>\n</table>\n<br />\n<span style=\"margin-top: 15px;\">Thank you.<br />\n{site_name} Customer Service<br />\nEmail: {admin_email} </span>','email_content_fa' => NULL,'email_subject_fa' => NULL,'status' => '2','updated_on' => '2012-09-13 16:48:37'),\n array('id' => '7','email_section' => 'New circle Request','email_subject' => 'New circle request received ','email_content' => '<table border=\"0\" width=\"100%\">\n\t<tbody>\n\t\t<tr>\n\t\t\t<td colspan=\"4\">\n\t\t\t\t<strong>Dear {mem_name}</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td align=\"center\">\n\t\t\t\t{user_pic}</td>\n\t\t\t<td colspan=\"3\">\n\t\t\t\t{poster_name} invited you to join a circle on {site_name}</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t </td>\n\t\t\t<td colspan=\"3\">\n\t\t\t\t </td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td width=\"9%\">\n\t\t\t\t </td>\n\t\t\t<td align=\"right\" valign=\"top\" width=\"7%\">\n\t\t\t\t{accept}</td>\n\t\t\t<td align=\"center\" valign=\"top\" width=\"1%\">\n\t\t\t\t<strong>||</strong></td>\n\t\t\t<td align=\"left\" valign=\"top\" width=\"83%\">\n\t\t\t\t{decline}</td>\n\t\t</tr>\n\t</tbody>\n</table>\n<br />\n<span style=\"margin-top: 15px;\">Thank you.<br />\n{site_name} Customer Service<br />\nEmail: {admin_email} </span>','email_content_fa' => NULL,'email_subject_fa' => NULL,'status' => '2','updated_on' => '2012-05-07 16:39:58'),\n array('id' => '8','email_section' => 'Wall Comment','email_subject' => 'A comment on your wall','email_content' => '<table border=\"0\" width=\"100%\">\n\t<tbody>\n\t\t<tr>\n\t\t\t<td colspan=\"2\">\n\t\t\t\t<strong>Dear {mem_name}</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan=\"2\">\n\t\t\t\t{poster_name} has commented on your wall.</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan=\"2\">\n\t\t\t\tPlease {link} to view the comment </td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td width=\"26%\">\n\t\t\t\t </td>\n\t\t\t<td>\n\t\t\t\t </td>\n\t\t</tr>\n\t</tbody>\n</table>\n<br />\n<span style=\"margin-top: 15px;\">Thank you.<br />\n{site_name} Customer Service<br />\nEmail: {admin_email} </span>','email_content_fa' => NULL,'email_subject_fa' => NULL,'status' => '2','updated_on' => '2012-01-25 12:20:23'),\n array('id' => '9','email_section' => 'Post comment on circle','email_subject' => 'Received a new comment on your topic in a circle','email_content' => '<table border=\"0\" width=\"100%\">\n\t<tbody>\n\t\t<tr>\n\t\t\t<td colspan=\"2\">\n\t\t\t\t<strong>Dear {mem_name}</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan=\"2\">\n\t\t\t\t{poster_name} has commented on your topic in a circle.</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan=\"2\">\n\t\t\t\tPlease {link} to view the comment </td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td width=\"26%\">\n\t\t\t\t </td>\n\t\t\t<td>\n\t\t\t\t </td>\n\t\t</tr>\n\t</tbody>\n</table>\n<br />\n<span style=\"margin-top: 15px;\">Thank you.<br />\n{site_name} Customer Service<br />\nEmail: {admin_email} </span>','email_content_fa' => NULL,'email_subject_fa' => NULL,'status' => '2','updated_on' => '2012-05-09 15:23:53'),\n array('id' => '10','email_section' => 'Post topic on circle','email_subject' => 'Receive new topic on circle','email_content' => '<table border=\"0\" width=\"100%\">\n\t<tbody>\n\t\t<tr>\n\t\t\t<td colspan=\"2\">\n\t\t\t\t<strong>Dear {mem_name}</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan=\"2\">\n\t\t\t\t{poster_name} has posted topic on your circle.</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan=\"2\">\n\t\t\t\tPlease {link} to view the comment </td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td width=\"26%\">\n\t\t\t\t </td>\n\t\t\t<td>\n\t\t\t\t </td>\n\t\t</tr>\n\t</tbody>\n</table>\n<br />\n<span style=\"margin-top: 15px;\">Thank you.<br />\n{site_name} Customer Service<br />\nEmail: {admin_email} </span>','email_content_fa' => NULL,'email_subject_fa' => NULL,'status' => '2','updated_on' => '2012-04-23 15:09:39'),\n array('id' => '11','email_section' => 'Wall Topic Post','email_subject' => 'New post on your wall','email_content' => '<table border=\"0\" width=\"100%\">\n\t<tbody>\n\t\t<tr>\n\t\t\t<td colspan=\"2\">\n\t\t\t\t<strong>Dear {mem_name}</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan=\"2\">\n\t\t\t\t{poster_name} has posted {txt_name} on your wall.</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan=\"2\">\n\t\t\t\tPlease click here {link} to view the comment </td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td width=\"26%\">\n\t\t\t\tabc</td>\n\t\t\t<td>\n\t\t\t\t </td>\n\t\t</tr>\n\t</tbody>\n</table>\n<br />\n<span style=\"margin-top: 15px;\">Thank you.<br />\n{site_name} Customer Service<br />\nEmail: {admin_email} </span>','email_content_fa' => NULL,'email_subject_fa' => NULL,'status' => '2','updated_on' => '2012-05-28 11:15:41'),\n array('id' => '12','email_section' => 'New Trooper Request','email_subject' => 'New Trooper request','email_content' => '<table border=\"0\" width=\"100%\">\n\t<tbody>\n\t\t<tr>\n\t\t\t<td colspan=\"4\">\n\t\t\t\t<strong>Dear {mem_name}</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td align=\"middle\">\n\t\t\t\t{user_pic}</td>\n\t\t\t<td colspan=\"3\">\n\t\t\t\t{poster_name} wants to add you as a trooper on {site_name}</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t </td>\n\t\t\t<td colspan=\"3\">\n\t\t\t\t </td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td width=\"9%\">\n\t\t\t\t </td>\n\t\t\t<td align=\"right\" valign=\"top\" width=\"7%\">\n\t\t\t\t{accept}</td>\n\t\t\t<td align=\"middle\" valign=\"top\" width=\"1%\">\n\t\t\t\t<strong>||</strong></td>\n\t\t\t<td align=\"left\" valign=\"top\" width=\"83%\">\n\t\t\t\t{decline}</td>\n\t\t</tr>\n\t</tbody>\n</table>\n<br />\n<span style=\"margin-top: 15px\">Thank you.<br />\n{site_name} Customer Service<br />\nEmail: {admin_email} </span>','email_content_fa' => NULL,'email_subject_fa' => NULL,'status' => '2','updated_on' => '2012-05-08 15:27:26'),\n array('id' => '13','email_section' => 'Accepts Trooper Request','email_subject' => 'Trooper request accepted','email_content' => '<table border=\"0\" width=\"100%\">\n\t<tbody>\n\t\t<tr>\n\t\t\t<td colspan=\"2\">\n\t\t\t\t<strong>Dear {mem_name}</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td align=\"middle\">\n\t\t\t\t{user_pic}</td>\n\t\t\t<td>\n\t\t\t\t{poster_name} accepted your trooper request on {site_name}</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t </td>\n\t\t\t<td>\n\t\t\t\t </td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td width=\"10%\">\n\t\t\t\t </td>\n\t\t\t<td>\n\t\t\t\tTo view {poster_name} profile {link}</td>\n\t\t</tr>\n\t</tbody>\n</table>\n<br />\n<span style=\"margin-top: 15px\">Thank you.<br />\n{site_name} Customer Service<br />\nEmail: {admin_email} </span>','email_content_fa' => NULL,'email_subject_fa' => NULL,'status' => '2','updated_on' => '2012-05-08 14:46:17'),\n array('id' => '14','email_section' => 'Event Invition','email_subject' => 'Event Invitation from a trooper ','email_content' => '<table border=\"0\" style=\"width: 615px; height: 88px;\">\n\t<tbody>\n\t\t<tr>\n\t\t\t<td colspan=\"4\">\n\t\t\t\t<strong>Dear {mem_name}</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td align=\"left\" colspan=\"4\">\n\t\t\t\t{poster_name} invited you to attened an event on {site_name} . {click_here_link} to view the event.</td>\n\t\t</tr>\n\t</tbody>\n</table>\n<br />\n<br />\n<span style=\"margin-top: 15px;\">Thank you.<br />\n{site_name} Customer Service<br />\nEmail: {admin_email} </span>','email_content_fa' => NULL,'email_subject_fa' => NULL,'status' => '2','updated_on' => '2012-09-13 17:17:08'),\n array('id' => '15','email_section' => 'comments on my collections','email_subject' => 'comments received on collection','email_content' => '<table border=\"0\" width=\"100%\">\n\t<tbody>\n\t\t<tr>\n\t\t\t<td colspan=\"2\">\n\t\t\t\t<strong>Dear {mem_name}</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan=\"2\">\n\t\t\t\t{poster_name} has commented on your collection.</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan=\"2\">\n\t\t\t\tPlease {link} to view the comment </td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td width=\"26%\">\n\t\t\t\t </td>\n\t\t\t<td>\n\t\t\t\t </td>\n\t\t</tr>\n\t</tbody>\n</table>\n<br />\n<span style=\"margin-top: 15px;\">Thank you.<br />\n{site_name} Customer Service<br />\nEmail: {admin_email} </span>','email_content_fa' => NULL,'email_subject_fa' => NULL,'status' => '2','updated_on' => '2012-05-07 13:10:21'),\n array('id' => '16','email_section' => 'Classified Post Email','email_subject' => 'New Classified Email','email_content' => '<table border=\"0\" style=\"width:100%\">\n <tbody>\n <tr>\n <td><strong>Dear Member</strong></td>\n </tr>\n <tr>\n <td><br />\n A new {AD_TYPE} advert <a href=\"{PRODUCT_LINK}\" target=\"_blank\">{PRODUCT_NAME}</a> has been posted in {CATEGORY_NAME}<br />\n <a href=\"{PRODUCT_LINK}\">click here</a> to view details</td>\n </tr>\n <tr>\n <td> </td>\n </tr>\n <tr>\n <td> </td>\n </tr>\n </tbody>\n</table>\n\n<p><br />\nThank you.<br />\n{site_name} Customer Service<br />\nEmail: {admin_email}</p>','email_content_fa' => NULL,'email_subject_fa' => NULL,'status' => '2','updated_on' => '2013-09-20 09:14:00'),\n array('id' => '17','email_section' => 'Feedback','email_subject' => 'Enquiry Feedback','email_content' => '<table border=\"0\" style=\"width:100%\">\n <tbody>\n <tr>\n <td colspan=\"2\"><strong>Dear {name}</strong></td>\n </tr>\n <tr>\n <td colspan=\"2\">Enquiry has been submitted with following info :</td>\n </tr>\n <tr>\n <td colspan=\"2\"> </td>\n </tr>\n <tr>\n <td><strong>name:</strong></td>\n <td>{name}</td>\n </tr>\n <tr>\n <td><strong>email:</strong></td>\n <td>{email}</td>\n </tr>\n <tr>\n <td><strong>Feedback For.:</strong></td>\n <td>{feedback_for}</td>\n </tr>\n <tr>\n <td><strong>comments:</strong></td>\n <td>{comments}</td>\n </tr>\n <tr>\n <td colspan=\"2\"> </td>\n </tr>\n \n </tbody>\n</table>\n\n<p><br />\nThank you.<br />\n{site_name} Customer Service<br />\nEmail: {admin_email}</p>','email_content_fa' => NULL,'email_subject_fa' => NULL,'status' => '2','updated_on' => '2013-06-24 11:48:22'),\n array('id' => '18','email_section' => 'Product Activation Mail','email_subject' => 'Product Activation Mail','email_content' => '<table border=\"0\" style=\"width:100%\">\n <tbody>\n <tr>\n <td><strong>Dear {MEMBER_NAME}</strong></td>\n </tr>\n <tr>\n <td><br />\n Your classified has been verified by the admin. Click below link to view details:<br />\n <br />\n <a href=\"{LINK_CLASSIFIED}\">{LINK_CLASSIFIED}</a></td>\n </tr>\n <tr>\n <td> </td>\n </tr>\n <tr>\n <td> </td>\n </tr>\n </tbody>\n</table>\n\n<p><br />\nThank you.<br />\n{site_name} Customer Service<br />\nEmail: {admin_email}</p>','email_content_fa' => NULL,'email_subject_fa' => NULL,'status' => '2','updated_on' => '2014-02-24 06:34:21'),\n array('id' => '19','email_section' => 'Lead Approval Mail','email_subject' => 'Lead approved at {site_name}','email_content' => '<table border=\"0\" style=\"width:100%\">\n\n <tbody>\n\n <tr>\n\n <td><strong>Dear {MEMBER_NAME}</strong></td>\n\n </tr>\n\n <tr>\n\n <td><br>\n Your lead {LEAD_NAME} has been approved by the admin. Click below link to view details:<br>\n <br>\n <a href=\"{LINK_CLASSIFIED}\">{LINK_CLASSIFIED}</a></td>\n\n </tr>\n\n </tbody>\n\n</table>\n\n\n<p><br>\nThank you.<br>\n{site_name} Customer Service<br>\nEmail: {admin_email}</p>','email_content_fa' => '<table border=\"0\" style=\"width:100%;direction:rtl;\"> <tbody> <tr> <td style=\"font-family:tahoma;\"><strong>{MEMBER_NAME} عزیز</strong></td> </tr> <tr> <td style=\"font-family:tahoma;\"><br> آگهی ثبت شده شما با عنوان {LEAD_NAME} توسط مدیریت سایت تایید شده است. برای مشاهده آگهی تایید شده خود می توانید بر روی لینک زیر کلیک کنید :<br> <br> <a href=\"{LINK_CLASSIFIED}\">{LINK_CLASSIFIED}</a></td> </tr> </tbody></table><p style=\"width:100%;direction:rtl;font-family:tahoma\"><br>با تشکر.<br>روابط عمومی سایت {site_name} <br>ایمیل: {admin_email}</p>','email_subject_fa' => 'آگهی در {site_name} تایید شده است','status' => '1','updated_on' => '2018-10-10 02:34:40'),\n array('id' => '20','email_section' => 'Lead Rejection Mail','email_subject' => 'Lead rejected at {site_name}','email_content' => '<table border=\"0\" style=\"width:100%\"> <tbody> <tr> <td><strong>Dear {MEMBER_NAME}</strong></td> </tr> <tr> <td><br> Your lead {LEAD_NAME} has been rejected by the admin. Click below link to view details:<br> <br> <a href=\"{LINK_CLASSIFIED}\">{LINK_CLASSIFIED}</a></td> </tr> </tbody></table><p><br>Thank you.<br>{site_name} Customer Service<br>Email: {admin_email}</p>','email_content_fa' => '<table border=\"0\" style=\"width:100%;direction:rtl;\"> <tbody> <tr> <td style=\"font-family:tahoma;\"><strong>{MEMBER_NAME} عزیز</strong></td> </tr> <tr> <td style=\"font-family:tahoma;\"><br> آگهی شما {LEAD_NAME} توسط مدیر تایید نشده است. برای مشاهده جزئیات به لینک زیر کلیک کنید:<br> <br> <a href=\"{LINK_CLASSIFIED}\">{LINK_CLASSIFIED}</a></td> </tr> </tbody></table><p style=\"font-family:tahoma;direction:rtl;\"><br>با تشکر<br>روابط عمومی سایت {site_name} <br>ایمیل : {admin_email}</p>','email_subject_fa' => '','status' => '1','updated_on' => '2018-08-24 13:13:50'),\n array('id' => '21','email_section' => 'Lead Activation Mail','email_subject' => 'Lead activated at {site_name}','email_content' => '<table border=\"0\" style=\"width:100%\">\n\n <tbody>\n\n <tr>\n\n <td><strong>Dear {MEMBER_NAME}</strong></td>\n\n </tr>\n\n <tr>\n\n <td><br>\n Your lead {LEAD_NAME} has been activated by the admin. Click below link to view details:<br>\n <br>\n <a href=\"{LINK_CLASSIFIED}\">{LINK_CLASSIFIED}</a></td>\n\n </tr>\n\n <tr>\n\n <td> </td>\n\n </tr>\n\n <tr>\n\n <td> </td>\n\n </tr>\n\n </tbody>\n\n</table>\n\n\n<p><br>\nThank you.<br>\n{site_name} Customer Service<br>\nEmail: {admin_email}</p>','email_content_fa' => '<table border=\"0\" style=\"width:100%;direction:rtl;\"> <tbody> <tr> <td style=\"font-family:tahoma;\"><strong>{MEMBER_NAME} عزیز</strong></td> </tr> <tr> <td style=\"font-family:tahoma;\"><br> آگهی شما {LEAD_NAME} توسط ادمین فعال شده است. برای مشاهده جزيیات روی لینک زیر کلیک کنید:<br> <br> <a href=\"{LINK_CLASSIFIED}\">{LINK_CLASSIFIED}</a></td> </tr> <tr> <td> </td> </tr> <tr> <td> </td></tr></tbody></table><p style=\"font-family:tahoma;direction:rtl\"><br>با تشکر</p><p style=\"font-family:tahoma;direction:rtl\">روابط عمومی سایت {site_name} <br>ایمیل: {admin_email}</p>','email_subject_fa' => 'آگهی شما در {site_name} فعال شده است','status' => '1','updated_on' => '2018-09-06 04:55:03'),\n array('id' => '22','email_section' => 'Lead Deactivation Mail','email_subject' => 'Lead de-activated at {site_name}','email_content' => '<table border=\"0\" style=\"width:100%\">\n <tbody>\n <tr>\n <td><strong>Dear {MEMBER_NAME}</strong></td>\n </tr>\n <tr>\n <td><br>\n Your lead {LEAD_NAME} has been deactivated by the admin. Click below link to view details:<br>\n <br>\n <a href=\"{LINK_CLASSIFIED}\">{LINK_CLASSIFIED}</a></td>\n </tr>\n </tbody>\n</table>\n\n<p><br>\nThank you.<br>\n{site_name} Customer Service<br>\nEmail: {admin_email}</p>','email_content_fa' => '<table border=\"0\" style=\"width:100%;direction:rtl;\"> <tbody> <tr> <td style=\"font-family:tahoma;\"><strong>{MEMBER_NAME} عزیز</strong></td> </tr> <tr> <td style=\"font-family:tahoma;\"><br> آگهی شما {LEAD_NAME} توسط ادمین غیرفعال شده است. برای مشاهده جزيیات روی لینک زیر کلیک کنید:<br> <br> <a href=\"{LINK_CLASSIFIED}\">{LINK_CLASSIFIED}</a></td> </tr> <tr> <td> </td> </tr> <tr> <td> </td></tr></tbody></table><p style=\"font-family:tahoma;direction:rtl\"><br>با تشکر</p><p style=\"font-family:tahoma;direction:rtl\">روابط عمومی سایت {site_name} <br>ایمیل: {admin_email}</p>','email_subject_fa' => '','status' => '1','updated_on' => '2018-08-24 13:18:11'),\n array('id' => '23','email_section' => 'Lead Post Mail','email_subject' => 'Lead posted at {site_name}','email_content' => '<table border=\"0\" style=\"width:100%\">\n <tbody>\n <tr>\n <td><strong>Dear {MEMBER_NAME}</strong></td>\n </tr>\n <tr>\n <td>\n <div>Thanks for posting ads B2B PORTAL.Your ad will be display after review by the B2B PORTAL team.</div>\n <br>\n <a href=\"{LINK_CLASSIFIED}\">{LINK_CLASSIFIED}</a></td>\n </tr>\n </tbody>\n</table>\n\n<p><br>\nThank you.<br>\n{site_name} Customer Service<br>\nEmail: {admin_email}</p>','email_content_fa' => '<table border=\"0\" style=\"width:100%;direction:rtl;\"> <tbody> <tr> <td style=\"font-family:tahoma;\"><strong> {MEMBER_NAME} عزیز</strong></td> </tr> <tr> <td style=\"font-family:tahoma;\"> <div style=\"font-family:tahoma;\">با تشکر از شما بابت ارسال تبلیغات در سایت {site_name} . آگهی شما پس از بررسی توسط واحد تبلیغات {site_name} نمایش داده خواهد شد.</div> <br> <a href=\"{LINK_CLASSIFIED}\">{LINK_CLASSIFIED}</a></td> </tr> </tbody></table><p style=\"font-family:tahoma;direction:rtl\"><br>با تشکر</p><p style=\"font-family:tahoma;direction:rtl\">روابط عمومی سایت {site_name} <br>ایمیل: {admin_email}</p>','email_subject_fa' => '{site_name} آگهی ارسال شد در سایت','status' => '1','updated_on' => '2018-10-10 03:25:04'),\n array('id' => '24','email_section' => 'Lead Updation Mail','email_subject' => 'Lead updated at {site_name}','email_content' => '<table border=\"0\" style=\"width:100%\">\n\n <tbody>\n\n <tr>\n\n <td><strong>Dear {MEMBER_NAME}</strong></td>\n\n </tr>\n\n <tr>\n\n <td><br>\n Your lead {LEAD_NAME} has been de-activated due to some changes. It further needs admin approval. Click below link to view details:<br>\n <br>\n <a href=\"{LINK_CLASSIFIED}\">{LINK_CLASSIFIED}</a></td>\n\n </tr>\n\n </tbody>\n\n</table>\n\n\n<p><br>\nThank you.<br>\n{site_name} Customer Service<br>\nEmail: {admin_email}</p>','email_content_fa' => '<table border=\"0\" style=\"width:100%;direction:rtl;\"> <tbody> <tr> <td><strong>{MEMBER_NAME} عزیز</strong></td> </tr> <tr> <td><br> آگهی شما {LEAD_NAME} به دلیل ایجاد تغییرات غیرفعال گردید و نیاز ب تاییدیه مجدد ادمین است. برای مشاهده جزيیات روی لینک زیر کلیک کنید:<br> <br> <a href=\"{LINK_CLASSIFIED}\">{LINK_CLASSIFIED}</a></td> </tr> </tbody></table><p style=\"font-family:tahoma;direction:rtl\"><br>با تشکر</p><p style=\"font-family:tahoma;direction:rtl\">روابط عمومی سایت {site_name} <br>ایمیل: {admin_email}</p>','email_subject_fa' => '','status' => '1','updated_on' => '2018-08-24 13:23:52'),\n array('id' => '25','email_section' => 'Membership Notification Email','email_subject' => 'ایمیل عضویت {site_name}','email_content' => '<table border=\"0\" style=\"width:100%\">\n <tbody>\n <tr>\n <td><strong>Dear {MEMBER_NAME}</strong></td>\n </tr>\n <tr>\n <td><br>\n We are getting enquiries on your leads but you do not have our membership plan. for receving enquiry directly please take our membership plan.</td>\n </tr>\n </tbody>\n</table>\n\n<p><br>\nThank you.<br>\n{site_name} Customer Service<br>\nEmail: {admin_email}</p>','email_content_fa' => '<table border=\"0\" style=\"width:100%;direction:rtl;\"> <tbody> <tr> <td style=\"font-family:tahoma;\"><strong> {MEMBER_NAME} عزیز</strong></td> </tr> <tr> <td style=\"font-family:tahoma;\"><br>ما پیشنهادی درخصوص آگهی ثبت شده شما در سایت بایسل یاب دریافت کرده ایم اما شما جزو عضویت های ویژه وب سایت نیستید . برای دریافت مستقیم پیشنهادات ارسال شده لطفا یکی از طرح های عضویت ما را انتخاب نمایید .</td></tr></tbody></table><p style=\"font-family:tahoma;direction:rtl\"><br>با تشکر</p><p style=\"font-family:tahoma;direction:rtl\">روابط عمومی سایت {site_name} <br>ایمیل: {admin_email}</p>','email_subject_fa' => 'عضویت با موفقیت به روز شد {site_name}','status' => '1','updated_on' => '2018-10-10 03:50:53'),\n array('id' => '26','email_section' => 'NewsLetter New User','email_subject' => 'New user subscribed for newsletter','email_content' => '<table border=\"0\" style=\"width:100%\">\n\n\t\t\t\t\t\t <tbody>\n\n\t\t\t\t\t\t <tr>\n\n\t\t\t\t\t\t <td colspan=\"2\"><strong>Dear Admin</strong></td>\n\n\t\t\t\t\t\t </tr>\n\n\t\t\t\t\t\t <tr>\n\n\t\t\t\t\t\t <td colspan=\"2\"><br>\t\t\t\t\t\t \n\t\t\t\t\t\t A new user registered for newsletter details are as follows<br>\n\t\t\t\t\t\t </td>\n\n\t\t\t\t\t\t </tr>\n\n\t\t\t\t\t\t <tr>\n\n\t\t\t\t\t\t <td width=\"27%\">Name:</td>\n<td width=\"73%\">{subscriber_name}</td>\n\n\t\t\t\t\t\t </tr>\n\n\t\t\t\t\t\t <tr>\n\n\t\t\t\t\t\t <td>Email:</td>\n<td>{subscriber_email}</td>\n\n\t\t\t\t\t\t </tr>\n\n\t\t\t\t\t\t </tbody>\n\n\t\t\t\t\t\t</table>\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t<p><br>\n\t\t\t\t\t\tThank you.<br>\n\t\t\t\t\t\t{site_name} Customer Service<br>\n\t\t\t\t\t\tEmail: {admin_email}</p>','email_content_fa' => '<table border=\"0\" style=\"width:100%;direction:rtl;\">\t\t\t\t\t\t <tbody>\t\t\t\t\t\t <tr>\t\t\t\t\t\t <td colspan=\"2\"><span style=\"font-weight: 700;\">ادمین عزیز</span></td>\t\t\t\t\t\t </tr>\t\t\t\t\t\t <tr>\t\t\t\t\t\t <td colspan=\"2\"><br>\t\t\t\t\t\t \t\t\t\t\t\t کاربر جدید ثبت شده برای خبرنامه به شرح زیر است:<br>\t\t\t\t\t\t </td>\t\t\t\t\t\t </tr>\t\t\t\t\t\t <tr>\t\t\t\t\t\t <td width=\"27%\"><table border=\"0\" style=\"width: 745px;\"><tbody><tr><td width=\"27%\">نام :</td><td width=\"73%\">{subscriber_name}</td></tr><tr><td>ایمیل :</td><td>{subscriber_email}</td></tr></tbody></table></td><td width=\"73%\"><br></td></tr></tbody></table><p style=\"font-family:tahoma;direction:rtl\"><br>با تشکر</p><p style=\"font-family:tahoma;direction:rtl\">روابط عمومی سایت {site_name} <br>ایمیل: {admin_email}</p>','email_subject_fa' => 'کاربر جدید برای خبرنامه مشترک شده است','status' => '1','updated_on' => '2018-08-24 13:26:32'),\n array('id' => '27','email_section' => 'NewsLetter New User for user','email_subject' => 'subscribed for newsletter','email_content' => '<table border=\"0\" style=\"width:100%\">\n\n\t\t\t\t\t\t <tbody>\n\n\t\t\t\t\t\t <tr>\n\n\t\t\t\t\t\t <td colspan=\"2\"><strong>Dear </strong>{subscriber_name}<strong><br></strong></td>\n\n\t\t\t\t\t\t </tr>\n\n\t\t\t\t\t\t <tr>\n\n\t\t\t\t\t\t <td colspan=\"2\"><p><br>welcome to newsletter buysellyab</p>\n\n<p>for deactivate subscriber click link button:</p>\n\n<p><a href=\"{link_unsubscriber}\" target=\"_blank\">deactivate subscriber</a><br></p>\n\n</td>\n\n</tr>\n\n\t\t\t\t\t\t </tbody>\n\n\t\t\t\t\t\t</table>\n\n\t\t\t\t\t\t\t\t\t\t\t\t<p><br>\t\t\t\t\t\tThank you.<br>\t\t\t\t\t\t{site_name} Customer Service<br>\t\t\t\t\t\tEmail: {admin_email}</p>','email_content_fa' => '<table border=\"0\" style=\"width:100%;direction:rtl;\">\t\t\t\t\t\t <tbody>\t\t\t\t\t\t <tr>\t\t\t\t\t\t <td colspan=\"2\">{subscriber_name}<strong style=\"background-color: transparent;\"></strong><strong><br></strong></td>\t\t\t\t\t\t </tr>\t\t\t\t\t\t <tr>\t\t\t\t\t\t <td colspan=\"2\"><p><br>به خبرنامه سایت <span style=\"background-color: transparent;\">{site_name} خوش آمدید.</span></p><p>برای لغو عضویت روی لینک زیر کلیک کنید:</p><p><a href=\"{link_unsubscriber}\" target=\"_blank\">لغو اشتراک</a><br></p></td></tr>\t\t\t\t\t\t </tbody>\t\t\t\t\t\t</table>\t\t\t\t\t\t\t\t\t\t\t<p style=\"font-family:tahoma;direction:rtl\"><br>با تشکر</p><p style=\"font-family:tahoma;direction:rtl\">روابط عمومی سایت {site_name} <br>ایمیل: {admin_email}</p>','email_subject_fa' => 'مشترک خبرنامه شدید','status' => '1','updated_on' => '2018-08-29 10:36:21'),\n array('id' => '28','email_section' => 'NewsLetter unsubscribed User for user','email_subject' => 'unsubscribed for newsletter','email_content' => '<table border=\"0\" style=\"width:100%\">\n\n\t\t\t\t\t\t <tbody>\n\n\t\t\t\t\t\t <tr>\n\n\t\t\t\t\t\t <td colspan=\"2\"><p><strong>Dear </strong>{subscriber_name}</p><p><strong style=\"background-color: transparent;\"></strong><strong><br></strong></p></td>\n\n\t\t\t\t\t\t </tr>\n\n\t\t\t\t\t\t <tr>\n\n\t\t\t\t\t\t <td colspan=\"2\"><p>Your newsletter has been disabled.<br></p>\n\n</td>\n\n</tr>\n\n\t\t\t\t\t\t </tbody>\n\n\t\t\t\t\t\t</table>\n\n\t\t\t\t\t\t\t\t\t\t\t\t<p><br>\t\t\t\t\t\tThank you.<br>\t\t\t\t\t\t{site_name} Customer Service<br>\t\t\t\t\t\tEmail: {admin_email}</p>','email_content_fa' => '<table border=\"0\" style=\"width:100%;direction:rtl;\">\t\t\t\t\t\t <tbody>\t\t\t\t\t\t <tr>\t\t\t\t\t\t <td style=\"font-family:tahoma;\" colspan=\"2\"><strong>کاربر عزیز </strong>{subscriber_name}<strong style=\"background-color: transparent;\"></strong><strong><br></strong></td>\t\t\t\t\t\t </tr>\t\t\t\t\t\t <tr>\t\t\t\t\t\t <td style=\"font-family:tahoma;\" colspan=\"2\"><p><br>خبر نامه شما غیر فعال گردید.</p></td></tr>\t\t\t\t\t\t </tbody>\t\t\t\t\t\t</table><p style=\"font-family:tahoma;direction:rtl\"><br>با تشکر</p><p style=\"font-family:tahoma;direction:rtl\">روابط عمومی سایت {site_name} <br>ایمیل: {admin_email}</p>','email_subject_fa' => ' خبرنامه شما لغو گردید','status' => '1','updated_on' => '2018-08-30 17:14:39'),\n array('id' => '29','email_section' => 'NewsLetter unsubscribed User','email_subject' => 'user unsubscribed for newsletter','email_content' => '<table border=\"0\" style=\"width:100%\">\n\n\t\t\t\t\t\t <tbody>\n\n\t\t\t\t\t\t <tr>\n\n\t\t\t\t\t\t <td colspan=\"2\"><strong>Dear Admin</strong></td>\n\n\t\t\t\t\t\t </tr>\n\n\t\t\t\t\t\t <tr>\n\n\t\t\t\t\t\t <td colspan=\"2\"><br>\t\t\t\t\t\t \n\t\t\t\t\t\t A user unsubscribed for newsletter details are as follows<br>\n\t\t\t\t\t\t </td>\n\n\t\t\t\t\t\t </tr>\n\n\t\t\t\t\t\t <tr>\n\n\t\t\t\t\t\t <td width=\"27%\">Name:</td>\n<td width=\"73%\">{subscriber_name}</td>\n\n\t\t\t\t\t\t </tr>\n\n\t\t\t\t\t\t <tr>\n\n\t\t\t\t\t\t <td>Email:</td>\n<td>{subscriber_email}</td>\n\n\t\t\t\t\t\t </tr>\n\n\t\t\t\t\t\t </tbody>\n\n\t\t\t\t\t\t</table>\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t<p><br>\n\t\t\t\t\t\tThank you.<br>\n\t\t\t\t\t\t{site_name} Customer Service<br>\n\t\t\t\t\t\tEmail: {admin_email}</p>','email_content_fa' => '<table border=\"0\" style=\"width:100%;direction:rtl;\">\t\t\t\t\t\t <tbody>\t\t\t\t\t\t <tr>\t\t\t\t\t\t <td style=\"font-family:tahoma;\" colspan=\"2\"><span style=\"font-weight: 700;\">ادمین عزیز</span></td>\t\t\t\t\t\t </tr>\t\t\t\t\t\t <tr>\t\t\t\t\t\t <td style=\"font-family:tahoma;\" colspan=\"2\"><br>یک کاربر با مشخصات زیر در قسمت اشتراک در خبرنامه غیرفعال شد.<br>\t\t\t\t\t\t </td>\t\t\t\t\t\t </tr>\t\t\t\t\t\t <tr>\t\t\t\t\t\t <td style=\"font-family:tahoma;\" width=\"27%\"><table border=\"0\" style=\"width: 745px;\"><tbody><tr><td style=\"font-family:tahoma;direction:rtl\" width=\"27%\">نام:</td><td style=\"font-family:tahoma;\" width=\"73%\">{subscriber_name}</td></tr><tr><td style=\"font-family:tahoma;direction:rtl\">ایمیل :</td><td>{subscriber_email}</td></tr></tbody></table></td><td style=\"font-family:tahoma;direction:rtl\" width=\"73%\"><br></td></tr></tbody></table><p style=\"font-family:tahoma;direction:rtl\"><br>با تشکر</p><p style=\"font-family:tahoma;direction:rtl\">روابط عمومی سایت {site_name} <br>ایمیل: {admin_email}</p>','email_subject_fa' => 'کاربر لغو اشتراک خبرنامه شده است','status' => '1','updated_on' => '2018-08-24 13:34:01'),\n array('id' => '30','email_section' => 'Membership User Email','email_subject' => 'Membership upgraded successfully {site_name}','email_content' => '<table border=\"0\" style=\"width:100%\">\n\t\t\t\t <tbody>\n\t\t\t\t <tr>\n\t\t\t\t <td><strong>Dear {fullName}</strong></td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t <td><br>\n\t\t\t\t Your membership successfully upgraded, details are as follows.<br>\n\t\t\t\t \n\t\t\t\t <table width=\"448\" style=\"margin-top:20px;\">\n\t\t\t\t <tbody><tr>\n\t\t\t\t <td width=\"256\">Membership Name</td>\n\t\t\t\t <td width=\"180\">{plan_name}</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t <td>Enquiry Received Limit</td>\n\t\t\t\t <td>{no_of_enquiry}</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t <td>Expire Date</td>\n\t\t\t\t <td>{exp_date}</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t <td>Price</td>\n\t\t\t\t <td>{price}</td>\n\t\t\t\t </tr>\n\t\t\t\t </tbody></table>\n\t\t\t\t \n\t\t\t\t </td>\n\t\t\t\t </tr>\n\t\t\t\t </tbody>\n\t\t\t\t</table>\n\t\t\t\t\n\t\t\t\t<p><br>\n\t\t\t\tThank you.<br>\n\t\t\t\t{site_name} Customer Service<br>\n\t\t\t\tEmail: {admin_email}</p>\n\t\t\t\t','email_content_fa' => '<table border=\"0\" style=\"width:100%;direction:rtl;\">\t\t\t\t <tbody>\t\t\t\t <tr>\t\t\t\t <td style=\"font-family:tahoma;\"><strong> {fullName} عزیز</strong></td>\t\t\t\t </tr>\t\t\t\t <tr>\t\t\t\t <td style=\"font-family:tahoma;\"><br>\t\t\t\t عضویت شما به طور موفقیت آمیز ارتقا داده شده است، جزئیات به شرح زیر است.<br>\t\t\t\t \t\t\t\t <table width=\"448\" style=\"margin-top:20px;directiom:rtl;\">\t\t\t\t <tbody><tr>\t\t\t\t <td style=\"font-family:tahoma;\" width=\"256\">نام عضویت</td>\t\t\t\t <td style=\"font-family:tahoma;\" width=\"180\">{plan_name}</td>\t\t\t\t </tr>\t\t\t\t <tr>\t\t\t\t <td style=\"font-family:tahoma;\">درخواست محدودیت دریافت شده</td>\t\t\t\t <td style=\"font-family:tahoma;\">{no_of_enquiry}</td>\t\t\t\t </tr>\t\t\t\t <tr>\t\t\t\t <td style=\"font-family:tahoma;\">تاریخ انقضا</td>\t\t\t\t <td style=\"font-family:tahoma;\">{exp_date}</td>\t\t\t\t </tr>\t\t\t\t <tr>\t\t\t\t <td style=\"font-family:tahoma;\">قیمت</td>\t\t\t\t <td style=\"font-family:tahoma;\">{price}</td>\t\t\t\t </tr>\t\t\t\t </tbody></table>\t\t\t\t \t\t\t\t </td>\t\t\t\t </tr>\t\t\t\t </tbody>\t\t\t\t</table>\t\t\t\t\t\t\t\t<p style=\"font-family:tahoma;direction:rtl;\"><br>با تشکر از شما.<br>\t\t\t\t{site_name} سرویس خدمات<br>\t\t\t\tایمیل: {admin_email}</p>','email_subject_fa' => 'عضویت با موفقیت به روز شد {site_name}','status' => '1','updated_on' => '2018-08-24 13:36:14'),\n array('id' => '31','email_section' => 'Membership Admin Email','email_subject' => 'New Membership {site_name}','email_content' => '<table border=\"0\" style=\"width:100%\">\n\t\t\t\t <tbody>\n\t\t\t\t <tr>\n\t\t\t\t <td><strong>Add {fullName}</strong></td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t <td><br />\n\t\t\t\t Your membership successfully upgraded, details are as follows.<br />\n\t\t\t\t \n\t\t\t\t <table width=\"448\" style=\"margin-top:20px;\">\n\t\t\t\t <tr>\n\t\t\t\t <td width=\"256\">Membership Name</td>\n\t\t\t\t <td width=\"180\">{plan_name}</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t <td>Enquiry Received Limit</td>\n\t\t\t\t <td>{no_of_enquiry}</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t <td>Expire Date</td>\n\t\t\t\t <td>{exp_date}</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t <td>Price</td>\n\t\t\t\t <td>{price}</td>\n\t\t\t\t </tr>\n\t\t\t\t </table>\n\t\t\t\t \n\t\t\t\t </td>\n\t\t\t\t </tr>\n\t\t\t\t </tbody>\n\t\t\t\t</table>\n\t\t\t\t\n\t\t\t\t<p><br />\n\t\t\t\tThank you.<br />\n\t\t\t\t{site_name} Customer Service<br />\n\t\t\t\tEmail: {admin_email}</p>\n\t\t\t\t','email_content_fa' => '<table border=\"0\" style=\"width:100%\">\n\t\t\t\t <tbody>\n\t\t\t\t <tr>\n\t\t\t\t <td><strong> {fullName} عزیز</strong></td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t <td><br />\n\t\t\t\t \nعضویت شما به طور موفقیت آمیز ارتقا داده شده است، جزئیات به شرح زیر است.<br />\n\t\t\t\t \n\t\t\t\t <table width=\"448\" style=\"margin-top:20px;\">\n\t\t\t\t <tr>\n\t\t\t\t <td width=\"256\">نام عضویت</td>\n\t\t\t\t <td width=\"180\">{plan_name}</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t <td>درخواست محدودیت دریافت شده</td>\n\t\t\t\t <td>{no_of_enquiry}</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t <td>تاریخ انقضا</td>\n\t\t\t\t <td>{exp_date}</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t <td>قیمت</td>\n\t\t\t\t <td>{price}</td>\n\t\t\t\t </tr>\n\t\t\t\t </table>\n\t\t\t\t \n\t\t\t\t </td>\n\t\t\t\t </tr>\n\t\t\t\t </tbody>\n\t\t\t\t</table>\n\t\t\t\t\n\t\t\t\t<p><br />\nمتشکر از شما.<br />\n\t\t\t\t{site_name} سرویس خدمات<br />\n\t\t\t\tایمیل: {admin_email}</p>\n\t\t\t\t','email_subject_fa' => 'عضویت جدید {site_name}\n','status' => '1','updated_on' => '2015-12-03 12:51:12'),\n array('id' => '32','email_section' => 'Deactivate','email_subject' => 'Welcome again To {site_name}','email_content' => '<table style=\"width:100%\" border=\"0\">\n <tbody>\n <tr>\n <td style=\"mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" valign=\"top\" align=\"center\"> <table id=\"templateHeader\" style=\"border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;background-color: #FFFFFF;border-top: 0;border-bottom: 0;\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n <tbody>\n <tr>\n <td style=\"mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" valign=\"top\" align=\"center\"> <table class=\"templateContainer\" style=\"border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" width=\"600\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n <tbody>\n <tr>\n <td class=\"headerContainer\" style=\"padding-top: 10px;padding-bottom: 10px;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" valign=\"top\"> <table class=\"mcnImageBlock\" style=\"border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n <tbody class=\"mcnImageBlockOuter\">\n <tr>\n <td class=\"mcnImageBlockInner\" style=\"padding: 9px;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" valign=\"top\"> <table class=\"mcnImageContentContainer\" style=\"border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"left\">\n <tbody>\n <tr>\n <td class=\"mcnImageContent\" style=\"padding-right: 9px;padding-left: 9px;padding-top: 0;padding-bottom: 0;text-align: center;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" valign=\"top\"> <img alt=\"\" class=\"mcnImage\" src=\"https://worldbtob.com/mails/logo.png\" style=\"max-width: 51px;padding-bottom: 0;display: inline !important;vertical-align: bottom;border: 0;outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;\" width=\"51\" align=\"middle\"> </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n <tr>\n <td colspan=\"2\"><strong>Hi ,</strong></td>\n </tr>\n <tr>\n <td colspan=\"2\">We are happy to have you as the newest member of {site_name} !</td>\n </tr>\n <tr>\n <td colspan=\"2\"> </td>\n </tr>\n <tr colspan=\"2\">\n <td><p>Thank you for signing up for {site_name}! Just one small step before you get started. Click the button below to verify your email address.</p>\n </td>\n </tr>\n <tr>\n <td class=\"mcnButtonContent\" style=\"font-family: Tahoma, Verdana, Segoe, sans-serif;font-size: 20px;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" valign=\"middle\" align=\"center\"><a style=\"margin-top:20px; margin-bottom:20px; text-decoration: none; background: #1E89DA; border-radius: 3px; color: #fff; padding: 10px 30px; display: inline-block; cursor: pointer; border-bottom: 3px solid #1265A5\" href=\"{link}\"> Verify your email </a></td>\n </tr>\n <tr>\n <td colspan=\"2\"><p>You signed up for {site_name} with your email <a href=\"\\\\\" mailto:{email}\\\\\"\"=\"\" style=\"\\\\\" word-wrap:\"=\"\" break-word;-ms-text-size-adjust:=\"\" 100%;-webkit-text-size-adjust:=\"\" 100%;color:=\"\" #000000;font-weight:=\"\" normal;text-decoration:=\"\" underline;\\\\\"=\"\">{email}</a> We’re sorry if it wasn’t you. Just ignore this email.</p>\n <p>We hope you will visit us again soon and put these special services to work foryou.</p>\n Please feel free to contact us if you have any questions at all. </td>\n </tr>\n <tr>\n <td colspan=\"2\"> </td>\n </tr>\n <tr>\n <td colspan=\"2\">Thank you.<br> {site_name} Customer Service<br> Email: <a href=\"mailto:{admin_email}\" style=\"word-wrap: break-word;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;color: #000000;font-weight: normal;text-decoration: underline;\">{admin_email}</a><br> <img src=\"https://worldbtob.com/mails/signature.gif\" style=\"width: 109px;height: 41px;margin: 0px;border: 0;outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;\" width=\"109\" height=\"41\" align=\"none\"><br></td>\n </tr>\n <tr>\n <td colspan=\"2\" style=\"text-align:center\">© 2015 {site_name}. All right reserved.</td>\n </tr>\n </tbody>\n</table>','email_content_fa' => '<div style=\"text-align: right;direction:rtl;font-family:tahoma;\">سلام</div><table border=\"0\" style=\"text-align: right;direction:rtl;font-family:tahoma; width: 960px;\"><tbody><tr><td style=\"font-family:tahoma;\" colspan=\"2\"><span style=\"font-weight: 700;\"> </span></td></tr><tr><td style=\"font-family:tahoma;\" colspan=\"2\">ما خوشحالیم که شما را به عنوان تازه ترین عضو از سایت {site_name} هستید !</td></tr><tr><td style=\"font-family:tahoma;\" colspan=\"2\"> </td></tr><tr colspan=\"2\"><td style=\"font-family:tahoma;\"><p>با تشکر از شما برای ثبت نام {site_name}! فقط یک قدم کوچک قبل از اینکه شروع کنید. برای تأیید آدرس ایمیل خود، روی دکمه زیر کلیک کنید.</p></td></tr><tr><td style=\"font-family:tahoma;\" class=\"mcnButtonContent\" valign=\"middle\" align=\"center\"><h3><h4><a href=\"{link}\" style=\"background: rgb(30, 137, 218); color: rgb(255, 255, 255); margin-top: 20px; margin-bottom: 20px; border-radius: 3px; padding: 10px 30px; display: inline-block; border-bottom: 3px solid rgb(18, 101, 165);\">ایمیل خود را تایید کنید </a></h4></h3></td></tr><tr><td style=\"font-family:tahoma;\" colspan=\"2\"><p style=\"text-align: right; \">شما در سایت {site_name} با ایمیل<a href=\"https://b2b.worldbtob.com/\" mailto:{email}\\\\\"\"=\"\" word-wrap:\"=\"\" break-word;-ms-text-size-adjust:=\"\" 100%;-webkit-text-size-adjust:=\"\" 100%;color:=\"\" #000000;font-weight:=\"\" normal;text-decoration:=\"\" underline;\\\\\"=\"\">{email}</a> ثبت نام کرده اید. اگر این درخواست از سمت شما نبوده است لطفا این ایمیل را نادیده بگیرید.</p><p style=\"text-align: right;font-family:tahoma; \">ما امیدواریم که به زودی از سایت ما بازدید خواهید کرد و این خدمات ویژه را برای کار شما آماده می کنیم.</p><div style=\"text-align: right;font-family:tahoma;\"><span style=\"background-color: transparent;\">لطفا در صورت بروز هر گونه سؤال، لطفا با ما تماس بگیرید.</span></div></td></tr><tr><td colspan=\"2\" style=\"text-align: right;\"> </td></tr><tr><td colspan=\"2\"><div style=\"text-align: right;\"><span style=\"background-color: transparent;\">تشکر از شما.</span></div><div style=\"text-align: right;\"><span style=\"background-color: transparent; font-family: tahoma;\"> </span><span style=\"background-color: transparent; font-family: tahoma;\">روابط عمومی سایت </span><span style=\"background-color: transparent;\">{site_name}</span></div><div style=\"text-align: right;\"><span style=\"background-color: transparent;\">ایمیل: </span><a href=\"mailto:%7Badmin_email%7D\" style=\"color: rgb(0, 0, 0); text-decoration-line: underline; word-wrap: break-word; text-size-adjust: 100%;\">{admin_email}</a></div><div style=\"text-align: right;\"><br></div></td></tr><tr><td colspan=\"2\" style=\"text-align: center;\"><br></td></tr></tbody></table>','email_subject_fa' => '{site_name}خوش آمدین دوباره به سایت','status' => '1','updated_on' => '2018-08-24 13:40:12'),\n array('id' => '33','email_section' => 'RplayEnquiryProduct','email_subject' => 'Replay {product_name}','email_content' => '<table style=\"width:100%\" border=\"0\">\n <tbody>\n <tr>\n <td style=\"mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" valign=\"top\" align=\"center\"> <table id=\"templateHeader\" style=\"border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;background-color: #FFFFFF;border-top: 0;border-bottom: 0;\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n <tbody>\n <tr>\n <td style=\"mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" valign=\"top\" align=\"center\"> <table class=\"templateContainer\" style=\"border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" width=\"600\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n <tbody>\n <tr>\n <td class=\"headerContainer\" style=\"padding-top: 10px;padding-bottom: 10px;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" valign=\"top\"> <table class=\"mcnImageBlock\" style=\"border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">\n <tbody class=\"mcnImageBlockOuter\">\n <tr>\n <td class=\"mcnImageBlockInner\" style=\"padding: 9px;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" valign=\"top\"> <table class=\"mcnImageContentContainer\" style=\"border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" align=\"left\">\n <tbody>\n <tr>\n <td class=\"mcnImageContent\" style=\"padding-right: 9px;padding-left: 9px;padding-top: 0;padding-bottom: 0;text-align: center;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;\" valign=\"top\"> <img alt=\"\" class=\"mcnImage\" src=\"https://worldbtob.com/mails/logo.png\" style=\"max-width: 51px;padding-bottom: 0;display: inline !important;vertical-align: bottom;border: 0;outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;\" width=\"51\" align=\"middle\"> </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n <tr>\n <td colspan=\"2\"><strong>Hi ,</strong></td>\n </tr>\n <tr>\n <td colspan=\"2\"> {site_name} !</td>\n </tr>\n <tr>\n <td colspan=\"2\"> : By the product owner {product_name} your question regarding the product is answered</td>\n</tr>\n<tr colspan=\"2\">\n<td><h3><span style=\"background-color: rgb(255, 239, 198);\">{comment}</span></h3>\n</td>\n</tr>\n <tr>\n <td colspan=\"2\"><p>You Asked for {site_name} with your email <a href=\"\\\\\" mailto:{email}\\\\\"\"=\"\" style=\"\\\\\" word-wrap:\"=\"\" break-word;-ms-text-size-adjust:=\"\" 100%;-webkit-text-size-adjust:=\"\" 100%;color:=\"\" #000000;font-weight:=\"\" normal;text-decoration:=\"\" underline;\\\\\"=\"\">{email}</a> We’re sorry if it wasn’t you. Just ignore this email.</p>\n <p>We hope you will visit us again soon and put these special services to work foryou.</p>\n Please feel free to contact us if you have any questions at all. </td>\n </tr>\n <tr>\n <td colspan=\"2\"> </td>\n </tr>\n <tr>\n <td colspan=\"2\">Thank you.<br> {site_name} Customer Service<br> Email: <a href=\"mailto:{admin_email}\" style=\"word-wrap: break-word;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;color: #000000;font-weight: normal;text-decoration: underline;\">{admin_email}</a><br> <img src=\"https://worldbtob.com/mails/signature.gif\" style=\"width: 109px;height: 41px;margin: 0px;border: 0;outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;\" width=\"109\" height=\"41\" align=\"none\"><br></td>\n </tr>\n <tr>\n <td colspan=\"2\" style=\"text-align:center\">© 2015 {site_name}. All right reserved.</td>\n </tr>\n </tbody>\n</table>','email_content_fa' => '<div style=\"text-align: right;direction:rtl;\">سلام</div><table border=\"0\" style=\"text-align: right;;direction:rtl; width: 960px;\"><tbody><tr><td style=\"font-family:tahoma;\" colspan=\"2\"><span style=\"font-weight: 700;\"> </span></td></tr><tr><td style=\"font-family:tahoma;\" colspan=\"2\"><p><span style=\"font-family: tahoma; background-color: transparent;\">پاسخ سوال شما در ارتباط با محصول</span> <span style=\"background-color: transparent;\">{product_name} </span><span style=\"font-family: tahoma; background-color: transparent;\">توسط صاحب محصول:</span></p></td></tr><tr><td style=\"font-family:tahoma;\" colspan=\"2\"> </td></tr><tr colspan=\"2\"><td style=\"font-family:tahoma;\"><h3><span style=\"background-color: rgb(255, 239, 198);\">{comment}</span></h3></td></tr><tr><td style=\"font-family:tahoma;\" colspan=\"2\"><p style=\"text-align: right; \"> با ایمیل شما در سایت {site_name} شما<span style=\"font-family: tahoma; background-color: transparent;\"> سوالی انجام گردید.</span></p><p style=\"text-align: right; \"><span style=\"background-color: transparent;\"> </span><span style=\"background-color: transparent;\">اگر این درخواست از سمت شما نبوده است این ایمیل را نادیده بگیرید.</span><a href=\"https://b2b.worldbtob.com/\" mailto:{email}\\\\\"\"=\"\" word-wrap:\"=\"\" break-word;-ms-text-size-adjust:=\"\" 100%;-webkit-text-size-adjust:=\"\" 100%;color:=\"\" #000000;font-weight:=\"\" normal;text-decoration:=\"\" underline;\\\\\"=\"\" style=\"background-color: rgb(255, 255, 255);\">{email}</a><span style=\"background-color: transparent;\"> </span></p><p style=\"text-align: right;font-family:tahoma; \">ما امیدواریم که به زودی از ما بازدید خواهید کرد و این خدمات ویژه را برای کار شما آماده می کنیم.</p><div style=\"text-align: right;font-family:tahoma;\"><span style=\"background-color: transparent;\">لطفا در صورت بروز هر گونه سؤال، لطفا با ما تماس بگیرید.</span></div></td></tr><tr><td style=\"font-family:tahoma;\" colspan=\"2\"> </td></tr><tr><td style=\"font-family:tahoma;\" colspan=\"2\"><div style=\"text-align: right;\"><span style=\"background-color: transparent;\">تشکر از شما.</span></div><div style=\"text-align: right;font-family:tahoma;direction:rtl;\"><span style=\"font-family: tahoma; background-color: transparent;\">روابط عمومی سایت </span><span style=\"background-color: transparent;\">{site_name}</span></div><div style=\"text-align: right;font-family:tahoma;direction:rtl;\"><span style=\"background-color: transparent;\">ایمیل: </span><a href=\"mailto:%7Badmin_email%7D\" style=\"color: rgb(0, 0, 0); text-decoration-line: underline; word-wrap: break-word; text-size-adjust: 100%;\">{admin_email}</a></div><div style=\"text-align: right;font-family:tahoma;direction:rtl;\"><br></div></td></tr><tr><td style=\"font-family:tahoma;direction:rtl;\" colspan=\"2\"><br></td></tr></tbody></table>','email_subject_fa' => ' پاسخ {product_name} ','status' => '1','updated_on' => '2018-08-24 13:45:40'),\n array('id' => '34','email_section' => 'Remove User','email_subject' => 'GoodBye site {site_name}','email_content' => 'Hello<table style=\"width:100%\" border=\"0\"></table> <table style=\"width:100%\" border=\"0\"></table>We are glad you were a member of our <a href=\"{site_link}\">{site_name}</a> site!<table style=\"width:100%\" border=\"0\"></table> <table style=\"width:100%\" border=\"0\"></table>Due to your inactivity at <a href=\"{site_link}\">{site_name}</a>, your username was deleted from the site.<table style=\"width:100%\" border=\"0\"></table><br><table style=\"width:100%\" border=\"0\"></table><br><table style=\"width:100%\" border=\"0\"></table>You are sorry to delete the<a href=\"{site_link}\">{site_name}</a> site by email {email}. If you did not, just ignore this email.<table style=\"width:100%\" border=\"0\"></table><br><table style=\"width:100%\" border=\"0\"></table>We hope that we will be visiting you soon and will prepare these special services for your work.<table style=\"width:100%\" border=\"0\"></table><br><table style=\"width:100%\" border=\"0\"></table>Please contact us if you have any questions.<table style=\"width:100%\" border=\"0\"></table> <table style=\"width:100%\" border=\"0\"></table>thank you.<table style=\"width:100%\" border=\"0\"></table>{site_name} public relations site<table style=\"width:100%\" border=\"0\"></table>Email:<a href=\"mailto:{admin_email}\" style=\"word-wrap: break-word;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;color: #000000;font-weight: normal;text-decoration: underline;\">{admin_email}</a><table style=\"width:100%\" border=\"0\"></table><br><table style=\"width:100%\" border=\"0\"></table><div style=\"text-align: center;\"><br>© 2015 <a href=\"{site_link}\">{site_name}</a>. All right reserved.</div>','email_content_fa' => '<div style=\"text-align: right;direction:rtl;font-family:tahoma;\"><div style=\"text-align: right;direction:rtl;\"><br></div> <div style=\"text-align: right;direction:rtl;font-family:tahoma;\">سلام</div> <div style=\"text-align: right;\"> </div> <div style=\"text-align: right;direction:rtl;font-family:tahoma;\">ما خوشحالیم که شما عضو سایت <a href=\"{site_link}\">{site_name}</a> ما بودید!</div> <div style=\"text-align: right;font-family:tahoma;direction:rtl;\"><br></div><div style=\"text-align: right;font-family:tahoma;direction:rtl;\">با توجه به عدم فعالیت شما در <a href=\"{site_link}\">{site_name}</a> اطلاعات کاربری شما از سایت حذف گردید.</div> <div style=\"text-align: right;\"><br></div> <div style=\"text-align: right;font-family:tahoma;direction:rtl;\">ما امیدواریم که به زودی از ما بازدید خواهید کرد و از خدمات ویژه برای کار شما آماده می کنیم.<br></div> <div style=\"text-align: right;\"><br></div> <div style=\"text-align: right;font-family:tahoma;direction:rtl;\">لطفا در صورت بروز هر گونه سؤال، لطفا با ما تماس بگیرید.</div> <div style=\"text-align: right;\"> </div> <div style=\"text-align: right;font-family:tahoma;direction:rtl;\">تشکر از شما</div> <div style=\"text-align: right;font-family:tahoma;direction:rtl;\"><br></div><div style=\"text-align: right;\"> روابط عمومی سایت <a href=\"http://b2b.worldbtob.com/admin/mailcontents/edit/%7Bsite_link%7D\" style=\"background-color: rgb(255, 255, 255);\">{site_name}</a> </div> <div style=\"text-align: right;font-family:tahoma;direction:rtl;\"> ایمیل : <a href=\"mailto:{admin_email}\" style=\"word-wrap: break-word;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;color: #000000;font-weight: normal;text-decoration: underline;\">{admin_name}</a></div><div style=\"text-align: right;\"><table border=\"0\" style=\"font-family: tahoma; background-color: rgb(255, 255, 255); text-align: center; width: 100%; direction: rtl;\"><tbody><tr style=\"background-color: transparent;\"><td colspan=\"2\"></td></tr><tr style=\"background-color: transparent;\"><td colspan=\"2\"></td></tr><tr style=\"background-color: transparent;\"><td colspan=\"2\"></td></tr><tr colspan=\"2\" style=\"background-color: transparent;\"><td></td></tr><tr style=\"background-color: transparent;\"><td class=\"mcnButtonContent\" valign=\"middle\" align=\"center\" style=\"font-family: Tahoma, Verdana, Segoe, sans-serif; font-size: 20px; text-size-adjust: 100%;\"></td></tr><tr style=\"background-color: transparent;\"><td colspan=\"2\"></td></tr><tr style=\"background-color: transparent;\"><td colspan=\"2\"></td></tr><tr style=\"background-color: transparent;\"><td colspan=\"2\"></td></tr><tr style=\"background-color: transparent;\"></tr></tbody></table></div></div>','email_subject_fa' => '{site_name} خداحافظ سایت','status' => '1','updated_on' => '2018-08-24 13:49:08'),\n array('id' => '35','email_section' => 'Active User','email_subject' => 'Active user in site {site_name}','email_content' => 'Hello<table style=\"width:100%\" border=\"0\"></table> <table style=\"width:100%\" border=\"0\"></table>We are glad you were a member of our <a href=\"{site_link}\">{site_name}</a> site!<table style=\"width:100%\" border=\"0\"></table> <table style=\"width:100%\" border=\"0\"></table>Due to your inactivity at <a href=\"{site_link}\">{site_name}</a>, your username was deleted from the site.<table style=\"width:100%\" border=\"0\"></table><br><table style=\"width:100%\" border=\"0\"></table><br><table style=\"width:100%\" border=\"0\"></table>You are sorry to delete the<a href=\"{site_link}\">{site_name}</a> site by email {email}. If you did not, just ignore this email.<table style=\"width:100%\" border=\"0\"></table><br><table style=\"width:100%\" border=\"0\"></table>We hope that we will be visiting you soon and will prepare these special services for your work.<table style=\"width:100%\" border=\"0\"></table><br><table style=\"width:100%\" border=\"0\"></table>Please contact us if you have any questions.<table style=\"width:100%\" border=\"0\"></table> <table style=\"width:100%\" border=\"0\"></table>thank you.<table style=\"width:100%\" border=\"0\"></table>{site_name} public relations site<table style=\"width:100%\" border=\"0\"></table>Email:<a href=\"mailto:{admin_email}\" style=\"word-wrap: break-word;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;color: #000000;font-weight: normal;text-decoration: underline;\">{admin_email}</a><table style=\"width:100%\" border=\"0\"></table><br><table style=\"width:100%\" border=\"0\"></table><div style=\"text-align: center;\"><br>© 2015 <a href=\"{site_link}\">{site_name}</a>. All right reserved.</div>','email_content_fa' => '<div style=\"text-align: right;direction:rtl;font-family:tahoma;\"><div style=\"text-align: right;direction:rtl;\"><br></div> <div style=\"text-align: right;direction:rtl;font-family:tahoma;\">سلام</div> <div style=\"text-align: right;\"> </div> <div style=\"text-align: right;direction:rtl;font-family:tahoma;\">ما خوشحالیم که شما عضو سایت <a href=\"{site_link}\">{site_name}</a> ما بودید!</div> <div style=\"text-align: right;font-family:tahoma;direction:rtl;\"><br></div><div style=\"text-align: right;font-family:tahoma;direction:rtl;\">با توجه به عدم فعالیت شما در <a href=\"{site_link}\">{site_name}</a> اطلاعات کاربری شما از سایت حذف گردید.</div> <div style=\"text-align: right;\"><br></div> <div style=\"text-align: right;font-family:tahoma;direction:rtl;\">ما امیدواریم که به زودی از ما بازدید خواهید کرد و از خدمات ویژه برای کار شما آماده می کنیم.<br></div> <div style=\"text-align: right;\"><br></div> <div style=\"text-align: right;font-family:tahoma;direction:rtl;\">لطفا در صورت بروز هر گونه سؤال، لطفا با ما تماس بگیرید.</div> <div style=\"text-align: right;\"> </div> <div style=\"text-align: right;font-family:tahoma;direction:rtl;\">تشکر از شما</div> <div style=\"text-align: right;font-family:tahoma;direction:rtl;\"><br></div><div style=\"text-align: right;\"> روابط عمومی سایت <a href=\"http://b2b.worldbtob.com/admin/mailcontents/edit/%7Bsite_link%7D\" style=\"background-color: rgb(255, 255, 255);\">{site_name}</a> </div> <div style=\"text-align: right;font-family:tahoma;direction:rtl;\"> ایمیل : <a href=\"mailto:{admin_email}\" style=\"word-wrap: break-word;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;color: #000000;font-weight: normal;text-decoration: underline;\">{admin_name}</a></div><div style=\"text-align: right;\"><table border=\"0\" style=\"font-family: tahoma; background-color: rgb(255, 255, 255); text-align: center; width: 100%; direction: rtl;\"><tbody><tr style=\"background-color: transparent;\"><td colspan=\"2\"></td></tr><tr style=\"background-color: transparent;\"><td colspan=\"2\"></td></tr><tr style=\"background-color: transparent;\"><td colspan=\"2\"></td></tr><tr colspan=\"2\" style=\"background-color: transparent;\"><td></td></tr><tr style=\"background-color: transparent;\"><td class=\"mcnButtonContent\" valign=\"middle\" align=\"center\" style=\"font-family: Tahoma, Verdana, Segoe, sans-serif; font-size: 20px; text-size-adjust: 100%;\"></td></tr><tr style=\"background-color: transparent;\"><td colspan=\"2\"></td></tr><tr style=\"background-color: transparent;\"><td colspan=\"2\"></td></tr><tr style=\"background-color: transparent;\"><td colspan=\"2\"></td></tr><tr style=\"background-color: transparent;\"></tr></tbody></table></div></div>','email_subject_fa' => '{site_name}فعال شدن کاربر در سایت','status' => '1','updated_on' => '2018-08-24 13:49:58'),\n array('id' => '36','email_section' => 'DeActive User','email_subject' => 'DeActive User in {site_name}','email_content' => 'Hello<table style=\"width:100%\" border=\"0\"></table> <table style=\"width:100%\" border=\"0\"></table>We are glad you were a member of our <a href=\"{site_link}\">{site_name}</a> site!<table style=\"width:100%\" border=\"0\"></table> <table style=\"width:100%\" border=\"0\"></table>Due to your inactivity at <a href=\"{site_link}\">{site_name}</a>, your username was deleted from the site.<table style=\"width:100%\" border=\"0\"></table><br><table style=\"width:100%\" border=\"0\"></table><br><table style=\"width:100%\" border=\"0\"></table>You are sorry to delete the<a href=\"{site_link}\">{site_name}</a> site by email {email}. If you did not, just ignore this email.<table style=\"width:100%\" border=\"0\"></table><br><table style=\"width:100%\" border=\"0\"></table>We hope that we will be visiting you soon and will prepare these special services for your work.<table style=\"width:100%\" border=\"0\"></table><br><table style=\"width:100%\" border=\"0\"></table>Please contact us if you have any questions.<table style=\"width:100%\" border=\"0\"></table> <table style=\"width:100%\" border=\"0\"></table>thank you.<table style=\"width:100%\" border=\"0\"></table>{site_name} public relations site<table style=\"width:100%\" border=\"0\"></table>Email:<a href=\"mailto:{admin_email}\" style=\"word-wrap: break-word;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;color: #000000;font-weight: normal;text-decoration: underline;\">{admin_email}</a><table style=\"width:100%\" border=\"0\"></table><br><table style=\"width:100%\" border=\"0\"></table><div style=\"text-align: center;\"><br>© 2015 <a href=\"{site_link}\">{site_name}</a>. All right reserved.</div>','email_content_fa' => '<div style=\"text-align: right;direction:rtl;font-family:tahoma;\"><div style=\"text-align: right;direction:rtl;\"><br></div> <div style=\"text-align: right;direction:rtl;font-family:tahoma;\">سلام</div> <div style=\"text-align: right;\"> </div> <div style=\"text-align: right;direction:rtl;font-family:tahoma;\">ما خوشحالیم که شما عضو سایت <a href=\"{site_link}\">{site_name}</a> ما بودید!</div> <div style=\"text-align: right;font-family:tahoma;direction:rtl;\"><br></div><div style=\"text-align: right;font-family:tahoma;direction:rtl;\">با توجه به عدم فعالیت شما در <a href=\"{site_link}\">{site_name}</a> اطلاعات کاربری شما از سایت حذف گردید.</div> <div style=\"text-align: right;\"><br></div> <div style=\"text-align: right;font-family:tahoma;direction:rtl;\">ما امیدواریم که به زودی از ما بازدید خواهید کرد و از خدمات ویژه برای کار شما آماده می کنیم.<br></div> <div style=\"text-align: right;\"><br></div> <div style=\"text-align: right;font-family:tahoma;direction:rtl;\">لطفا در صورت بروز هر گونه سؤال، لطفا با ما تماس بگیرید.</div> <div style=\"text-align: right;\"> </div> <div style=\"text-align: right;font-family:tahoma;direction:rtl;\">تشکر از شما</div> <div style=\"text-align: right;font-family:tahoma;direction:rtl;\"><br></div><div style=\"text-align: right;\"> روابط عمومی سایت <a href=\"http://b2b.worldbtob.com/admin/mailcontents/edit/%7Bsite_link%7D\" style=\"background-color: rgb(255, 255, 255);\">{site_name}</a> </div> <div style=\"text-align: right;font-family:tahoma;direction:rtl;\"> ایمیل : <a href=\"mailto:{admin_email}\" style=\"word-wrap: break-word;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;color: #000000;font-weight: normal;text-decoration: underline;\">{admin_name}</a></div><div style=\"text-align: right;\"><table border=\"0\" style=\"font-family: tahoma; background-color: rgb(255, 255, 255); text-align: center; width: 100%; direction: rtl;\"><tbody><tr style=\"background-color: transparent;\"><td colspan=\"2\"></td></tr><tr style=\"background-color: transparent;\"><td colspan=\"2\"></td></tr><tr style=\"background-color: transparent;\"><td colspan=\"2\"></td></tr><tr colspan=\"2\" style=\"background-color: transparent;\"><td></td></tr><tr style=\"background-color: transparent;\"><td class=\"mcnButtonContent\" valign=\"middle\" align=\"center\" style=\"font-family: Tahoma, Verdana, Segoe, sans-serif; font-size: 20px; text-size-adjust: 100%;\"></td></tr><tr style=\"background-color: transparent;\"><td colspan=\"2\"></td></tr><tr style=\"background-color: transparent;\"><td colspan=\"2\"></td></tr><tr style=\"background-color: transparent;\"><td colspan=\"2\"></td></tr><tr style=\"background-color: transparent;\"></tr></tbody></table></div></div>','email_subject_fa' => '{site_name} غیر فعال شدن در سایت','status' => '1','updated_on' => '2018-08-24 13:49:58')\n );\n foreach (array_chunk($tbl_auto_respond_mails, 250) as $set) {\n \\App\\TemplateMail::insert($set);\n }\n }",
"public static function Get_New_Record() {\n // kai na kalesw sinartisi Get_New_Record_Tpl()\n }",
"function dataplus_get_addrecord_form_values() {\n global $mode, $dataplusdb;\n\n $template = $dataplusdb->get_template($mode);\n $columns = $dataplusdb->list_dataplus_table_columns(true);\n\n $defvals = array();\n\n if (empty($template->record)) {\n $defvals = array('record' => dataplus_get_default_addrecord_template($mode));\n } else {\n foreach ($columns as $column) {\n $name = $column->name;\n $label = $column->label;\n\n $template->record = str_replace(\"[[{$name}]]\", \"[[{$label}]]\", $template->record);\n }\n\n $defvals['record'] = $template->record;\n }\n\n if (empty($template->css)) {\n $defvals['css'] = dataplus_get_default_css();\n } else {\n $defvals['css'] = $template->css;\n }\n\n if (!empty($template->js)) {\n $defvals['javascript'] = $template->js;\n }\n\n if (!empty($template->jsinit)) {\n $defvals['jsinit'] = $template->jsinit;\n }\n\n return $defvals;\n}",
"function buildBody()\n {\n $startRow = $this->_tableBody->getRowCount();\n for ($row = 0; $row < $this->_recordsNum; $row++) {\n $recordRow = $row + $startRow;\n for ($col = 0; $col < $this->_columnsNum; $col++) {\n $value = $this->_records[$row][$col];\n $field = $this->_columns[$col]['field'];\n\n // Right-align the content if it is numeric\n $attributes = ($this->_options['numberAlign'] and is_numeric($value)) \n ? array('align' => 'right')\n : array();\n\n // merge auto-aligned and column attributes\n if (isset($this->_options['columnAttributes'][$field])) {\n $attributes = array_merge($attributes,\n $this->_options['columnAttributes'][$field]);\n }\n\n // Set Content in HTML_Table\n $this->_tableBody->setCellContents($recordRow, $col, $value);\n if ($attributes) {\n $this->_tableBody->setCellAttributes($recordRow, $col, $attributes);\n }\n }\n }\n\n // output empty rows\n if ($this->_options['fillWithEmptyRows'] && !is_null($this->_pageLimit)) {\n for ($row = $this->_recordsNum; $row < $this->_pageLimit; $row++) {\n $recordRow = $row + $startRow;\n for ($col = 0; $col < $this->_columnsNum; $col++) {\n $this->_tableBody->setCellAttributes($recordRow, $col, $this->_options['emptyRowAttributes']);\n $this->_tableBody->setCellContents($recordRow, $col, ' ');\n }\n }\n }\n\n // Define alternating row attributes\n if ($this->_options['evenRowAttributes'] \n or $this->_options['oddRowAttributes']) {\n\n $this->_tableBody->altRowAttributes(\n 0,\n $this->_options['evenRowAttributes'],\n $this->_options['oddRowAttributes'],\n true\n );\n }\n }",
"function create_table(){\n\t\t$tables = array();\n\t\t/**\n\t\t* Table structure for table 'contact_data'\n\t\t*/\n\t\t$fields = array(\n\t\t\tarray(\"newsletter_identifier\"\t,\"unsigned integer\"\t,\"NOT NULL\"\t,\"auto_increment\"),\n\t\t\tarray(\"newsletter_client\"\t\t,\"unsigned integer\"\t,\"NOT NULL\"\t,\"default '0'\"),\n\t\t\tarray(\"newsletter_label\"\t\t,\"varchar(255)\"\t\t,\"NOT NULL\"\t,\"default ''\"),\n\t\t\tarray(\"newsletter_from_label\"\t,\"varchar(255)\"\t\t,\"NOT NULL\"\t,\"default ''\"),\n\t\t\tarray(\"newsletter_from_email\"\t,\"varchar(255)\"\t\t,\"NOT NULL\"\t,\"default ''\"),\n\t\t\tarray(\"newsletter_description\"\t,\"text\"\t\t\t\t,\"NOT NULL\"\t,\"default ''\"),\n\t\t\tarray(\"newsletter_date_created\"\t,\"datetime\"\t\t\t,\"NOT NULL\"\t,\"default ''\"),\n\t\t\tarray(\"newsletter_status\"\t\t,\"small integer\"\t,\"NOT NULL\"\t,\"default '0'\"),\n\t\t\tarray(\"newsletter_location\"\t\t,\"unsigned integer\"\t,\"NOT NULL\"\t,\"default '0'\")\n\t\t);\n\t\t$primary=\"newsletter_identifier\";\n\t\t$tables[count($tables)] = array(\"newsletter_data\", $fields, $primary);\n\t\t/**\n\t\t* Table structure for table 'newletter_archive' a record of all sent newletters\n\t\t*/\n\t\t$fields = array(\n\t\t\tarray(\"newsarchive_identifier\"\t,\"unsigned integer\"\t,\"NOT NULL\"\t,\"auto_increment\"),\n\t\t\tarray(\"newsarchive_client\"\t\t,\"unsigned integer\"\t,\"NOT NULL\"\t,\"default '0'\"),\n\t\t\tarray(\"newsarchive_subject\"\t\t,\"varchar(40)\"\t\t,\"NULL\"\t\t,\"default ''\"),\n\t\t\tarray(\"newsarchive_plaintext\"\t,\"text\"\t\t\t\t,\"NOT NULL\"\t,\"\"),\n\t\t\tarray(\"newsarchive_rtftext\"\t\t,\"text\"\t\t\t\t,\"NOT NULL\"\t,\"default ''\"),\n\t\t\tarray(\"newsarchive_status\"\t\t,\"small integer\"\t,\"NOT NULL\"\t,\"default '0'\"),\n\t\t\tarray(\"newsarchive_date\"\t\t,\"datetime\"\t\t\t,\"NOT NULL\"\t,\"default ''\")\n\t\t);\n\t\t$primary=\"newsarchive_identifier\";\n\t\t$tables[count($tables)] = array(\"newsletter_archive\", $fields, $primary);\n\t\t\n\t\t/**\n\t\t* Table structure for table 'newsletter_subscription' a list of people that have subscribed\n\t\t* to a particular mailing list\n\t\t*/\n\t\t$fields = array(\n\t\t\tarray(\"subscriber_identifier\"\t,\"unsigned integer\"\t,\"NOT NULL\"\t,\"auto_increment\"),\n\t\t\tarray(\"subscriber_client\"\t\t,\"unsigned integer\"\t,\"NOT NULL\"\t,\"default '0'\"),\n\t\t\tarray(\"subscriber_email\"\t\t,\"unsigned integer\"\t,\"NOT NULL\"\t,\"default '0'\"),\n\t\t\tarray(\"subscriber_newsletter\"\t,\"unsigned integer\"\t,\"NOT NULL\"\t,\"default '0'\"),\n\t\t\tarray(\"subscriber_verified\"\t\t,\"small integer\"\t,\"NOT NULL\"\t,\"default '0'\")\n\t\t);\n\t\t$primary = \"subscriber_identifier\";\n\t\t$tables[count($tables)] = array(\"newsletter_subscription\", $fields, $primary);\n\n\t\treturn $tables;\n\t}",
"public function main()\n {\n $records = array();\n\n $this->pObj->arrReport[] = '\n <h2>\n ' . $this->pObj->pi_getLL( 'ts_create_header' ) . '\n </h2>';\n\n $records = $this->records();\n $this->sqlInsert( $records );\n }",
"function create_trade_report($email, $mailsubject, $mailbodysubinfo, $emailheading )\n\t\t{\n\t\t\n\t\t// INCLUDE GLOBAL.PHP for CONSTANTS\n\t\t\t include('includes/global.php');\n\t\t \n\n\t\t\t\t\t$mailbody = '<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n\t\t\t\t\t<html>\n\t\t\t\t\t<head>\n\t\t\t\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\n\t\t\t\t\t<style type=\"text/css\">\n\t\t\t\t\t<!--\n\t\t\t\t\t.names {font-family: Verdana; font-size: 12px; font-weight: bold; color: #333399;}\n\t\t\t\t\t.others {font-family: Verdana; font-size: 12px; font-weight: normal; color: #336699;}\n\t\t\t\t\t.companyname {font-family: \"Times New Roman, Times, serif\"; font-size: 16px; font-weight: bold; color: #FFFFFF;}\n\t\t\t\t\t.appname {font-family: Verdana; font-size: 14px; font-weight: bold; color: #FFFFFF;}\n\t\t\t\t\t.heading {font-family: Verdana; font-size: 12px; font-weight: bold; color: #FFFFFF;}\n \t\t\t\t .headingblue {font-family: Verdana; font-size: 12px; font-weight: bold; color: #0000FF;}\n\n\t\t\t\t\ttr.tableheading {\tfont-family: verdana;\tfont-size: 12px;\ttext-decoration: underline;\tcolor: #660000;\tfont-weight: bold;\ttext-align: left;\tvertical-align: middle;\tbackground-position: left center;\tborder: 1px solid #0000FF;\tbackground-color: #FFFFFF;}\n\t\t\t\t\ttr.tablerow {font-family: verdana;font-size: 10px;text-decoration: none;\tcolor: #000099;\tfont-weight: normal;\ttext-align: left;\tvertical-align: middle;\tbackground-position: left center;\tborder: 1px solid #0000FF;}\n\t\t\t\t\ttr.tablerowhighlight {font-family: verdana;font-size: 10px;text-decoration: none;\tcolor: #FF0000;\tfont-weight: bold;\ttext-align: left;\tvertical-align: middle;\tbackground-position: left center;\tborder: 1px solid #0000FF;}\n\t\t\t\t\t-->\n\t\t\t\t\t</style>\t\t\t\t\t\n\t\t\t\t\t</head>\n\t\t\t\t\t<body leftmargin=\"0\" topmargin=\"0\" rightmargin=\"0\" bottommargin=\"0\">\n\t\t\t\t\t<table width=\"100%\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td valign=\"top\" height=\"14\" bgcolor=\"#21427B\">\n\t\t\t\t\t\t<table width=\"100%\">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"companyname\">'.$_company_name.'</td>\n\t\t\t\t\t\t\t\t<td class=\"appname\" align=\"right\">'.$_app_name.' '.$_version.'</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<td colspan=2 class=\"heading\">'.$emailheading.'</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td height=\"6\" bgcolor=\"#999999\"></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td valign=\"top\" bgcolor=\"#FFFFFF\">';\n\t\t\t\t\t\t\n\t\t\t\t\t$mailbody .= $mailbodysubinfo; \n\t\t\t\t\t\t\t\n\t\t\t\t\t$mailbody .='</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 height=\"6\" bgcolor=\"#999999\"></td>\n\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t</body>\n\t\t\t\t\t\t\t\t</html>';\n\t\t\t\t\t\t\t\t\n\t\t\t//Copy this email body info to a html file and put it in /data/exports folder\n\t\t\t\n\t\t\t$trade_date_to_process_a = previous_business_day();\n\t\t\t\n\t\t\t$fp = fopen($exportlocation.\"Trades_Report_\".$trade_date_to_process_a.\".html\", \"w\");\n\n\t\t\tfputs ($fp, $mailbody);\n\n\t\t\tfclose($fp);\n\t\t\t\t\n}",
"function MedicalHistoryTable($medheader, $meddata)\n \t{\n \t\t$this->SetFillColor(255,255,255);\n \t\t$this->SetTextColor(135,186,214);\n \t\t$this->SetDrawColor(165,165,167);\t\n \t\t$this->SetLineWidth(.8);\n \t\t\t$this->SetFont('','B');\n\n \t\t// Header Line of table\n \t\t// Set Column Widths\n \t\t\n \t\t// Header\n \t\t$this->Cell(190,10,\"PATIENT MEDICAL HISTORY\",1,0,'C',true);\n \t\t$this->Ln();\n \t\t$w = array(63.3, 63.3, 63.3);\n \t\t$this->SetTextColor(165,165,167);\n \t\tfor($i=0; $i<count($medheader);$i++)\n \t\t\t$this->Cell($w[$i],10,$medheader[$i],1,0,'C',true); \t\t\t\n \t\t$this->Ln();\n\n\n \t\t// Color and font restoration\n \t\t$this->SetFillColor(224,235,255);\n \t\t$this->SetTextColor(0);\n \t\t$this->SetFont('');\n\n \t\t\n\t\n \t\twhile($row = mysqli_fetch_array($meddata))\n \t\t{\n\t\n\t\t\t\t// Populate Data\n\t\t\t\t$this->Cell($w[0],10,$row['height'],1,0,'c',false);\n\t\t\t\t$this->Cell($w[1],10,$row['weight'],1,0,'c',false);\n\t\t\t\t$this->Cell($w[2],10,$row['allergies'],1,0,'c',false);\n\t\t\t\t$this->Ln();\n\t\t\t\t$this->Cell($w[0],10,'Doctors Notes',1,0,'c',true);\n\t\t\t\t$this->Ln();\n\t\t\t\t$w2 = array(30,160);\n\t\t\t\t$notes = $row['doctors_notes'];\n \t\t$notesLength = strlen($notes);\n \t\t// provide for long admission notes\n\t\t\t\tif($notesLength>40)\n\t\t\t\t{\n\t\t\t\t\t$this->MultiCell(190,10,$row['doctors_notes'],1,'L',$fill);\n\t\t\t\t\t$this->Ln(); \t\t\t \t\t\t\n \t\t\t$fill = !$fill;\n \t\t}\n \t\telse\n \t\t{\n \t\t\t$this->Cell(190,10,$row['doctors_notes'],1,0,'L',$fill);\n \t\t\t$this->Ln();\n \t\t\t$fill = !$fill;\n \t\t}\n \t\tif($row['nurses\t_notes'])\n \t\t{\n \t\t\t$this->Cell($w[0],10,'Nurses Notes',1,0,'c',true);\n\t\t\t\t\t$this->Ln();\n \t\t\t$notes = $row['nurses_notes'];\n \t\t\t$notesLength = strlen($notes);\n \t\t\t// provide for long admission notes\n\t\t\t\t\tif($notesLength>40)\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->MultiCell(190,10,$row['nurses_notes'],1,'L',$fill); \t\t\t \t\t\t\n \t\t\t\t$fill = !$fill;\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\t$this->Cell(190,10,$row['nurses_notes'],1,0,'L',$fill);\n \t\t\t\t$fill = !$fill;\n \t\t\t}\n \t\t} \t\t\n\n \t}\n \t$this->Ln();\n \t}",
"function NewRow() {\n\t\t$this->LoadDefaultValues();\n\t\t$row = array();\n\t\t$row['row_id'] = $this->row_id->CurrentValue;\n\t\t$row['km_nomor'] = $this->km_nomor->CurrentValue;\n\t\t$row['km_tanggal'] = $this->km_tanggal->CurrentValue;\n\t\t$row['customer_id'] = $this->customer_id->CurrentValue;\n\t\t$row['customer_name'] = $this->customer_name->CurrentValue;\n\t\t$row['km_type'] = $this->km_type->CurrentValue;\n\t\t$row['km_acc'] = $this->km_acc->CurrentValue;\n\t\t$row['cek_no'] = $this->cek_no->CurrentValue;\n\t\t$row['tgl_jt'] = $this->tgl_jt->CurrentValue;\n\t\t$row['cek_amt'] = $this->cek_amt->CurrentValue;\n\t\t$row['ret_number1'] = $this->ret_number1->CurrentValue;\n\t\t$row['ret_date1'] = $this->ret_date1->CurrentValue;\n\t\t$row['retur_amt1'] = $this->retur_amt1->CurrentValue;\n\t\t$row['ret_number2'] = $this->ret_number2->CurrentValue;\n\t\t$row['ret_date2'] = $this->ret_date2->CurrentValue;\n\t\t$row['retur_amt2'] = $this->retur_amt2->CurrentValue;\n\t\t$row['ret_number3'] = $this->ret_number3->CurrentValue;\n\t\t$row['ret_date3'] = $this->ret_date3->CurrentValue;\n\t\t$row['retur_amt3'] = $this->retur_amt3->CurrentValue;\n\t\t$row['tunai_amt'] = $this->tunai_amt->CurrentValue;\n\t\t$row['dp_amt'] = $this->dp_amt->CurrentValue;\n\t\t$row['km_amt'] = $this->km_amt->CurrentValue;\n\t\t$row['km_notes'] = $this->km_notes->CurrentValue;\n\t\t$row['kas_amt'] = $this->kas_amt->CurrentValue;\n\t\t$row['kode_depo'] = $this->kode_depo->CurrentValue;\n\t\t$row['sales_id'] = $this->sales_id->CurrentValue;\n\t\treturn $row;\n\t}",
"public function record()\n\t{\n\t\t$data['page_content'] = $this->load->view('record/recordTable', '', TRUE);\n\t\t$this->load->view('main', $data);\n\t}",
"public function addHdrFtr($emailData = null) {\n $finalData = '<html><head>\n <style>\n #border_div{\n border: 1px solid rgb(236,97,21); \n padding: 20px; \n border-radius: 10px;\n }\n </style>\n</head>\n<body style = \"text-align: center;\">\n<table style = \"display: inline-block; border-radius: 10px; border-collapse: collapse; border: 1px solid #494949;max-width: 550px\">\n <tr>\n <td style= \"border-radius: 6px 6px 0 0; padding: 10px 0; text-align: center; background: rgb(73, 73, 73) none repeat scroll 0% 0%;\">\n <img src=\"' . EMAIL_HEADER_LOGO_URL . '\" alt=\"logo\" width=\"76px\"/>\n </td>\n </tr> ' .\n $emailData .\n '<tr>\n <td style= \"padding: 10px 20px; text-align: left;\">\n Thank you,<br/>\n The URateIt Team\n </td>\n </tr>';\n if (!empty($this->request->data['blockUserLink'])) {\n $finalData .= '<tr><td style=\"color:#ccc; border-radius: 0 0 6px 6px; padding: 10px 0; text-align: center; background: rgb(73, 73, 73) none repeat scroll 0% 0%;\">Don\\'t want to receive wallpapers from this user? <b style=\"color:#F68B1F\">' . $this->request->data['blockUserLink'] . '</b> Him/Her.</td></tr>';\n }\n $finalData .= '</table></body></html>';\n return $finalData;\n }",
"function clientData($school,$street,$postcode,$address,$email)\n {\n $this->cell(130, 5, 'Rechnung an : ', 0, 1);\n $this->cell(130, 5, $school, 0, 1);\n $this->cell(130, 5, $street, 0, 1);\n $this->cell(130, 5, $postcode.' '.$address, 0, 1);\n $this->cell(130, 5, $email, 0, 1,'L');\n $this->cell(190, 10, '', 0, 1);\n }",
"function execute()\n\t{\n\t\t$this->obj_table = New table;\n\n\t\t$this->obj_table->language\t\t= $_SESSION[\"user\"][\"lang\"];\n\t\t$this->obj_table->tablename\t\t= \"account_quotes\";\n\n\t\t// define all the columns and structure\n\t\t$this->obj_table->add_column(\"standard\", \"code_quote\", \"account_quotes.code_quote\");\n\t\t$this->obj_table->add_column(\"standard\", \"name_customer\", \"CONCAT_WS(' -- ', customers.code_customer, customers.name_customer)\");\n\t\t$this->obj_table->add_column(\"standard\", \"name_staff\", \"CONCAT_WS(' -- ', staff.staff_code, staff.name_staff)\");\n\t\t$this->obj_table->add_column(\"date\", \"date_trans\", \"account_quotes.date_trans\");\n\t\t$this->obj_table->add_column(\"date\", \"date_validtill\", \"account_quotes.date_validtill\");\n\t\t$this->obj_table->add_column(\"price\", \"amount_tax\", \"account_quotes.amount_tax\");\n\t\t$this->obj_table->add_column(\"price\", \"amount\", \"account_quotes.amount\");\n\t\t$this->obj_table->add_column(\"price\", \"amount_total\", \"account_quotes.amount_total\");\n\t\t$this->obj_table->add_column(\"bool_tick\", \"sent\", \"account_quotes.sentmethod\");\n\n\t\t// totals\n\t\t$this->obj_table->total_columns\t= array(\"amount_tax\", \"amount\", \"amount_total\");\n\n\t\t\n\t\t// defaults\n\t\t$this->obj_table->columns\t\t= array(\"code_quote\", \"name_customer\", \"date_trans\", \"amount_total\");\n\t\t$this->obj_table->columns_order\t\t= array(\"code_quote\");\n\t\t$this->obj_table->columns_order_options\t= array(\"code_quote\", \"name_customer\", \"name_staff\", \"date_trans\", \"date_validtill\", \"sent\");\n\n\t\t// define SQL structure\n\t\t$this->obj_table->sql_obj->prepare_sql_settable(\"account_quotes\");\n\t\t$this->obj_table->sql_obj->prepare_sql_addfield(\"id\", \"account_quotes.id\");\n\t\t$this->obj_table->sql_obj->prepare_sql_addjoin(\"LEFT JOIN customers ON customers.id = account_quotes.customerid\");\n\t\t$this->obj_table->sql_obj->prepare_sql_addjoin(\"LEFT JOIN staff ON staff.id = account_quotes.employeeid\");\n\n\n\t\t// acceptable filter options\n\t\t$structure = NULL;\n\t\t$structure[\"fieldname\"] = \"date_start\";\n\t\t$structure[\"type\"]\t= \"date\";\n\t\t$structure[\"sql\"]\t= \"date_trans >= 'value'\";\n\t\t$this->obj_table->add_filter($structure);\n\n\t\t$structure = NULL;\n\t\t$structure[\"fieldname\"] = \"date_end\";\n\t\t$structure[\"type\"]\t= \"date\";\n\t\t$structure[\"sql\"]\t= \"date_trans <= 'value'\";\n\t\t$this->obj_table->add_filter($structure);\n\t\t\n\t\t$structure\t\t\t\t= form_helper_prepare_dropdownfromdb(\"employeeid\", \"SELECT id, staff_code as label, name_staff as label1 FROM staff ORDER BY name_staff\");\n\t\t$structure[\"sql\"]\t\t\t= \"account_quotes.employeeid='value'\";\n\t\t$structure[\"options\"][\"search_filter\"]\t= \"enabled\";\n\t\t$this->obj_table->add_filter($structure);\n\n\t\t$structure\t\t\t\t= form_helper_prepare_dropdownfromdb(\"customerid\", \"SELECT id, code_customer as label, name_customer as label1 FROM customers ORDER BY name_customer\");\n\t\t$structure[\"sql\"]\t\t\t= \"account_quotes.customerid='value'\";\n\t\t$structure[\"options\"][\"search_filter\"]\t= \"enabled\";\n\t\t$this->obj_table->add_filter($structure);\n\n\t\t$structure = NULL;\n\t\t$structure[\"fieldname\"] \t= \"hide_closed\";\n\t\t$structure[\"type\"]\t\t= \"checkbox\";\n\t\t$structure[\"options\"][\"label\"]\t= \"Hide Expired Quotes\";\n\t\t$structure[\"defaultvalue\"]\t= \"enabled\";\n\t\t$structure[\"sql\"]\t\t= \"account_quotes.date_validtill > '\". date(\"Y-m-d\") .\"'\";\n\t\t$this->obj_table->add_filter($structure);\n\n\t\t// load options\n\t\t$this->obj_table->load_options_form();\n\n\t\t// fetch all the chart information\n\t\t$this->obj_table->generate_sql();\n\t\t$this->obj_table->load_data_sql();\n\n\t}",
"function updateRecord()\r\n {\r\n JTable::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_messagebottle/tables');\r\n $table = JTable::getInstance('Emails', 'MessagebottleTable');\r\n $table->load($this->email->email_id);\r\n $table->bind($this->email);\r\n if ($table->store()) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n \r\n }",
"function table_add_field($dbh,$form_id,$element_id,$type,$option_id=0){\n\t\t$comment_desc['text'] \t\t= 'Single Line Text';\n\t\t$comment_desc['phone'] \t\t= 'Phone';\n\t\t$comment_desc['simple_phone'] = 'Phone';\n\t\t$comment_desc['url'] \t\t= 'Web Site';\n\t\t$comment_desc['email'] \t\t= 'Email';\n\t\t$comment_desc['file'] \t\t= 'File Upload';\n\t\t$comment_desc['textarea'] \t= 'Paragraph Text';\n\t\t$comment_desc['radio'] \t\t= 'Multiple Choice';\n\t\t$comment_desc['select'] \t= 'Drop Down';\n\t\t$comment_desc['time'] \t\t= 'Time';\n\t\t$comment_desc['date'] \t\t= 'Date';\n\t\t$comment_desc['europe_date'] = 'Europe Date';\n\t\t$comment_desc['money'] \t\t = 'Price';\n\t\t$comment_desc['number'] \t = 'Number';\n\t\t$comment_desc['simple_name'] = 'Normal Name';\n\t\t$comment_desc['simple_name_wmiddle'] = 'Normal Name with Middle';\n\t\t$comment_desc['name'] \t\t \t\t = 'Extended Name';\n\t\t$comment_desc['name_wmiddle'] \t\t = 'Extended Name with Middle';\n\t\t$comment_desc['address'] \t = 'Address';\n\t\t$comment_desc['checkbox'] \t = 'Checkbox';\n\t\t$comment_desc['signature'] \t = 'Signature';\n\t\t\n\t\t$comment = @$comment_desc[$type];\n\t\t\t\n\t\tif(('text' == $type) || ('phone' == $type) || ('simple_phone' == $type) || ('url' == $type) || ('email' == $type) || ('file' == $type)){\n\t\t\t$query = \"ALTER TABLE `\".MF_TABLE_PREFIX.\"form_{$form_id}` ADD COLUMN `element_{$element_id}` text NULL COMMENT '{$comment}';\";\n\t\t\tmf_do_query($query,array(),$dbh);\n\t\t}elseif ('textarea' == $type || 'signature' == $type){\n\t\t\t$query = \"ALTER TABLE `\".MF_TABLE_PREFIX.\"form_{$form_id}` ADD COLUMN `element_{$element_id}` mediumtext NULL COMMENT '{$comment}';\";\n\t\t\tmf_do_query($query,array(),$dbh);\n\t\t}elseif (('radio' == $type) || ('select' == $type)){\n\t\t\t$query = \"ALTER TABLE `\".MF_TABLE_PREFIX.\"form_{$form_id}` ADD COLUMN `element_{$element_id}` smallint(4) unsigned NOT NULL DEFAULT '0' COMMENT '{$comment}';\";\n\t\t\tmf_do_query($query,array(),$dbh);\n\t\t}elseif ('time' == $type){\n\t\t\t$query = \"ALTER TABLE `\".MF_TABLE_PREFIX.\"form_{$form_id}` ADD COLUMN `element_{$element_id}` time NULL COMMENT '{$comment}';\";\n\t\t\tmf_do_query($query,array(),$dbh);\n\t\t}elseif (('date' == $type) || ('europe_date' == $type)){\n\t\t\t$query = \"ALTER TABLE `\".MF_TABLE_PREFIX.\"form_{$form_id}` ADD COLUMN `element_{$element_id}` date NULL COMMENT '{$comment}';\";\n\t\t\tmf_do_query($query,array(),$dbh);\n\t\t}elseif ('money' == $type){\n\t\t\t$query = \"ALTER TABLE `\".MF_TABLE_PREFIX.\"form_{$form_id}` ADD COLUMN `element_{$element_id}` decimal(62,2) NULL COMMENT '{$comment}';\";\n\t\t\tmf_do_query($query,array(),$dbh);\n\t\t}elseif ('number' == $type){\n\t\t\t$query = \"ALTER TABLE `\".MF_TABLE_PREFIX.\"form_{$form_id}` ADD COLUMN `element_{$element_id}` double NULL COMMENT '{$comment}';\";\n\t\t\tmf_do_query($query,array(),$dbh);\n\t\t}elseif ('simple_name' == $type){\n\t\t\t//add two field, first and last name\n\t\t\t$query = \"ALTER TABLE `\".MF_TABLE_PREFIX.\"form_{$form_id}` ADD COLUMN `element_{$element_id}_1` text NULL COMMENT '{$comment} - First', ADD COLUMN `element_{$element_id}_2` text NULL COMMENT '{$comment} - Last';\";\n\t\t\tmf_do_query($query,array(),$dbh);\n\t\t}elseif ('simple_name_wmiddle' == $type){\n\t\t\t//add three fields, first, middle and last name\n\t\t\t$query = \"ALTER TABLE `\".MF_TABLE_PREFIX.\"form_{$form_id}` ADD COLUMN `element_{$element_id}_1` text NULL COMMENT '{$comment} - First', ADD COLUMN `element_{$element_id}_2` text NULL COMMENT '{$comment} - Middle', ADD COLUMN `element_{$element_id}_3` text NULL COMMENT '{$comment} - Last';\";\n\t\t\tmf_do_query($query,array(),$dbh);\n\t\t}elseif ('name' == $type){\n\t\t\t//add four field, title, first, last, suffix \n\t\t\t$query = \"ALTER TABLE `\".MF_TABLE_PREFIX.\"form_{$form_id}` ADD COLUMN `element_{$element_id}_1` text NULL COMMENT '{$comment} - Title', ADD COLUMN `element_{$element_id}_2` text NULL COMMENT '{$comment} - First', ADD COLUMN `element_{$element_id}_3` text NULL COMMENT '{$comment} - Last', ADD COLUMN `element_{$element_id}_4` text NULL COMMENT '{$comment} - Suffix';\";\n\t\t\tmf_do_query($query,array(),$dbh);\n\t\t}elseif ('name_wmiddle' == $type){\n\t\t\t//add five fields, title, first, middle, last, suffix \n\t\t\t$query = \"ALTER TABLE `\".MF_TABLE_PREFIX.\"form_{$form_id}` ADD COLUMN `element_{$element_id}_1` text NULL COMMENT '{$comment} - Title', ADD COLUMN `element_{$element_id}_2` text NULL COMMENT '{$comment} - First', ADD COLUMN `element_{$element_id}_3` text NULL COMMENT '{$comment} - Middle', ADD COLUMN `element_{$element_id}_4` text NULL COMMENT '{$comment} - Last', ADD COLUMN `element_{$element_id}_5` text NULL COMMENT '{$comment} - Suffix';\";\n\t\t\tmf_do_query($query,array(),$dbh);\n\t\t}elseif ('address' == $type){\n\t\t\t//add six field\n\t\t\t$query = \"ALTER TABLE `\".MF_TABLE_PREFIX.\"form_{$form_id}` ADD COLUMN `element_{$element_id}_1` text NULL COMMENT '{$comment} - Street', ADD COLUMN `element_{$element_id}_2` text NULL COMMENT '{$comment} - Line 2', ADD COLUMN `element_{$element_id}_3` text NULL COMMENT '{$comment} - City', ADD COLUMN `element_{$element_id}_4` text NULL COMMENT '{$comment} - State/Province/Region', ADD COLUMN `element_{$element_id}_5` text NULL COMMENT '{$comment} - Zip/Postal Code', ADD COLUMN `element_{$element_id}_6` text NULL COMMENT '{$comment} - Country';\";\n\t\t\tmf_do_query($query,array(),$dbh);\n\t\t}elseif ('checkbox' == $type){\n\t\t\t$query = \"ALTER TABLE `\".MF_TABLE_PREFIX.\"form_{$form_id}` ADD COLUMN `element_{$element_id}_{$option_id}` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '{$comment} - {$option_id}';\";\n\t\t\tmf_do_query($query,array(),$dbh);\n\t\t}\n\t\t\t\n\t}",
"function record()\r\n{\r\n\t//arreglo para validaciones\r\n\t$val = array();\r\n\t\r\n\t//arreglo para datos de login\r\n\t$data = array();\r\n\t\r\n\t$val[0] = validarChar($data[0] = trim(ucwords($_POST['txtNombre'])));\r\n\t$val[1] = validarChar($data[1] = trim(ucwords($_POST['txtPaterno'])));\r\n\t$val[2] = validarChar($data[2] = trim($_POST['txtCorreo']));\r\n\t//generamos la contraseņa aleatoria\r\n\t$data[3] = trim(generatePass());\r\n\t//encriptacion para la sesion\r\n\t$data[4] = md5(sha1($data[2]));\r\n\t//encriptacion para la sesion\r\n\t$data[5] = md5(sha1($data[3]));\r\n\t\r\n\tif(validacionGeneral($val) == FALSE)\r\n\t{\r\n\t\tif(validarCorreo($data[2]) == TRUE)\r\n\t\t{\r\n\t\t\tif($data[2] == checkMail($data[2]))\r\n\t\t\t\tmessage(\"El correo que a ingresado ya esta dado de alta en el sistema\", \"../record.html\");\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tif(recordUser($data) > 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t//Titulo del mensaje\r\n\t\t\t\t\t$titulo = \"Completa tu registro\";\r\n\t\t\t\t\t//Mensaje\r\n\t\t\t\t\t$mensaje = createHtml($titulo, ($data[0].\" \".$data[1]), \"Te enviamos tu nueva contraseņa, una vez en el portal,\", \r\n\t\t\t\t\t\t\t\t\"no olvides que debes cambiarla por una personalizada.\", $data[2], $data[3]);\r\n\t\t\t\t\t//cabeceras\r\n\t\t\t\t\t$cabeceras = 'MIME-Version: 1.0' . \"\\r\\n\";\r\n\t\t\t\t\t$cabeceras .= 'Content-type: text/html; charset=iso-8859-1' . \"\\r\\n\";\r\n\t\t\t\t\t$cabeceras .= \"From: Service_Machines \\r\\n\";\r\n\t\t\t\t\t$cabeceras .= 'Reply-To: [email protected]';\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Enviarlo\r\n\t\t\t\t\tmail($data[2], $titulo, $mensaje, $cabeceras);\r\n\t\t\t\t\tmessage(\"En breve le llegara un correo otorgandole su contraseņa para que pueda iniciar sesion\", \"../control/redirect.php\");\r\n\t\t\t\t}\r\n\t\t\t\telse \r\n\t\t\t\t\tmessage(\"No se pudo completar su registro Intentelo de nuevo\\\\nSi el problema persiste intentelo mas tarde\", \"../record.html\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse \r\n\t\t\tmessage(\"El correo NO es Valido\", \"../record.html\");\r\n\t}\r\n\telse\r\n\t\tmessage(\"Datos corruptos\", \"../record.html\");\r\n\t\r\n}",
"function add()\n\t{\n\t\theader(\"Expires: Tue, 03 Jul 2001 06: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, max-age=0\");\n\t\theader(\"Cache-Control: post-check=0, pre-check=0\", false);\n\t\theader(\"Pragma: no-cache\");\n\t\theader(\"Connection: close\");\n\t\t/* CLEAR CATCH CODE */\n\t\t\t\n\t\t\t\n\t\t\t$firstname =$this->input->post(\"firstname\");\n\t\t\t$lastname = $this->input->post(\"lastname\");\n\t\t\t$email =$this->input->post(\"email\");\n\t\t\t$phone =$this->input->post(\"phone\");\n\t\t\t$comment =$this->input->post(\"comment\");\n\t\t\t\n\t\t\t$htmlmail ='';\n\t\t\t$htmlmail .= '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"><meta name=\"viewport\" content=\"initial-scale=1.0\"><meta name=\"format-detection\" content=\"telephone=no\"><style type=\"text/css\">\n\t\t\t.ReadMsgBody { width: 100%; background-color: #ebebeb;}\n\t\t\t.ExternalClass {width: 100%; background-color: #ebebeb;}\n\t\t\t.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height:100%;}\n\t\t\tbody {-webkit-text-size-adjust:none; -ms-text-size-adjust:none;}\n\t\t\tbody {margin:0; padding:0;}\n\t\t\ttable {border-spacing:0;}\n\t\t\ttable td {border-collapse:collapse;}\n\t\t\t.yshortcuts a {border-bottom: none !important;}\n\t\t\t.rnb-del-min-width{ min-width: 0 !important; }\n\t\t\t/* Image width by default for 3 columns */\n\t\t\timg[class=\"rnb-col-3-img\"] {\n\t\t\tmax-width:170px;\n\t\t\t}\n\t\t\t/* Image width by default for 2 columns */\n\t\t\timg[class=\"rnb-col-2-img\"] {\n\t\t\tmax-width:264px;\n\t\t\t}\n\t\t\t/* Image width by default for 2 columns aside small size */\n\t\t\timg[class=\"rnb-col-2-img-side-xs\"] {\n\t\t\tmax-width:180px;\n\t\t\t}\n\t\t\t/* Image width by default for 2 columns aside big size */\n\t\t\timg[class=\"rnb-col-2-img-side-xl\"] {\n\t\t\tmax-width:350px;\n\t\t\t}\n\t\t\t/* Image width by default for 1 column */\n\t\t\timg[class=\"rnb-col-1-img\"] {\n\t\t\tmax-width:550px;\n\t\t\t}\n\t\t\t/* Image width by default for header */\n\t\t\timg[class=\"rnb-header-img\"] {\n\t\t\tmax-width:590px;\n\t\t\t}\n\t\t\t/* ----- MEDIA QUERY SMALL SCREENS -----\n\t\t\tConstrain email width for small screens */\n\t\t\t@media screen and (max-width: 600px) {\n\t\t\ttable[class=\"rnb-container\"] {\n\t\t\twidth: 95% !important;\n\t\t\t}\n\t\t\ttable[class=\"rnb-btn-col-content\"] {\n\t\t\twidth: 100% !important;\n\t\t\t}\n\t\t\t}\n\t\t\t/* ----- MEDIA QUERY MOBILE -----\n\t\t\tGive content more room on mobile */\n\t\t\t@media screen and (max-width: 480px) {\n\t\t\ttd[class=\"rnb-container-padding\"] {\n\t\t\tpadding-left: 10px !important;\n\t\t\tpadding-right: 10px !important;\n\t\t\t}\n\t\t\t/* force container nav to (horizontal) blocks */\n\t\t\ttd[class=\"rnb-force-nav\"] {\n\t\t\tdisplay: block;\n\t\t\t}\n\t\t\t}\n\t\t\t/* ----- MEDIA QUERY SMALL SCREENS -----\n\t\t\tStyles for forcing columns to rows */\n\t\t\t@media only screen and (max-width : 600px) {\n\t\t\t/* center the address & social icons */\n\t\t\t.rnb-text-center {text-align:center !important;}\n\t\t\t/* force container columns to (horizontal) blocks */\n\t\t\ttd[class=\"rnb-force-col\"] {\n\t\t\tdisplay: block;\n\t\t\tpadding-right: 0 !important;\n\t\t\tpadding-left: 0 !important;\n\t\t\t}\n\t\t\ttable[class=\"rnb-col-3\"] {\n\t\t\t/* unset table align=\"left/right\" */\n\t\t\tfloat: none !important;\n\t\t\twidth: 100% !important;\n\t\t\t/* change left/right padding and margins to top/bottom ones */\n\t\t\tmargin-bottom: 10px;\n\t\t\tpadding-bottom: 10px;\n\t\t\tborder-bottom: 1px solid #eee;\n\t\t\t}\n\t\t\ttable[class=\"rnb-last-col-3\"] {\n\t\t\t/* unset table align=\"left/right\" */\n\t\t\tfloat: none !important;\n\t\t\twidth: 100% !important;\n\t\t\t}\n\t\t\ttable[class=\"rnb-col-2\"] {\n\t\t\t/* unset table align=\"left/right\" */\n\t\t\tfloat: none !important;\n\t\t\twidth: 100% !important;\n\t\t\t/* change left/right padding and margins to top/bottom ones */\n\t\t\tmargin-bottom: 10px;\n\t\t\tpadding-bottom: 10px;\n\t\t\tborder-bottom: 1px solid #eee;\n\t\t\t}\n\t\t\ttable[class=\"rnb-col-2-noborder-onright\"] {\n\t\t\t/* unset table align=\"left/right\" */\n\t\t\tfloat: none !important;\n\t\t\twidth: 100% !important;\n\t\t\t/* change left/right padding and margins to top/bottom ones */\n\t\t\tmargin-bottom: 10px;\n\t\t\tpadding-bottom: 10px;\n\t\t\t}\n\t\t\ttable[class=\"rnb-col-2-noborder-onleft\"] {\n\t\t\t/* unset table align=\"left/right\" */\n\t\t\tfloat: none !important;\n\t\t\twidth: 100% !important;\n\t\t\t/* change left/right padding and margins to top/bottom ones */\n\t\t\tmargin-top: 10px;\n\t\t\tpadding-top: 10px;\n\t\t\t}\n\t\t\ttable[class=\"rnb-last-col-2\"] {\n\t\t\t/* unset table align=\"left/right\" */\n\t\t\tfloat: none !important;\n\t\t\twidth: 100% !important;\n\t\t\t}\n\t\t\ttable[class=\"rnb-col-1\"] {\n\t\t\t/* unset table align=\"left/right\" */\n\t\t\tfloat: none !important;\n\t\t\twidth: 100% !important;\n\t\t\t}\n\t\t\timg[class=\"rnb-col-3-img\"] {\n\t\t\tmax-width:none !important;\n\t\t\twidth:100% !important;\n\t\t\t}\n\t\t\timg[class=\"rnb-col-2-img\"] {\n\t\t\tmax-width:none !important;\n\t\t\twidth:100% !important;\n\t\t\t}\n\t\t\timg[class=\"rnb-col-2-img-side-xs\"] {\n\t\t\tmax-width:none !important;\n\t\t\twidth:100% !important;\n\t\t\t}\n\t\t\timg[class=\"rnb-col-2-img-side-xl\"] {\n\t\t\tmax-width:none !important;\n\t\t\twidth:100% !important;\n\t\t\t}\n\t\t\timg[class=\"rnb-col-1-img\"] {\n\t\t\tmax-width:none !important;\n\t\t\twidth:100% !important;\n\t\t\t}\n\t\t\timg[class=\"rnb-header-img\"] {\n\t\t\tmax-width:none !important;\n\t\t\twidth:100% !important;\n\t\t\t}\n\t\t\t}</style></head><body>\t\n\t\t\t<table class=\"main-template\" style=\"background-color:#ede6df;\" bgcolor=\"#ede6df\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n\t\t\t\t<tbody><tr style=\"display:none !important; font-size:1px;\"><td>Votre demande de devis chez Au Coeur du Voyage</td><td></td></tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td style=\"background-color:#ede6df;\" align=\"center\" bgcolor=\"#ede6df\" valign=\"top\">\n\t\t\t\t\t\t<table class=\"rnb-del-min-width\" style=\"min-width:590px; background-color:#ede6df\" name=\"Layout_0\" id=\"Layout_0\" bgcolor=\"#ede6df\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n\t\t\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t\t\t<td class=\"rnb-del-min-width\" style=\"min-width:590px; background-color: #555;\" align=\"center\" valign=\"top\">\n\t\t\t\t\t\t\t\t\t<table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n\t\t\t\t\t\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t\t\t\t\t\t<td style=\"font-size:1px; line-height:1px;\" height=\"10\"> </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 style=\"font-size: 13px; color: rgb(255, 255, 255); font-weight: normal; text-align: center; font-family: Arial,Helvetica,sans-serif;\" align=\"center\" height=\"20\">\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</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 style=\"font-size:1px; line-height:1px;\" height=\"10\"> </td>\n\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t</tbody></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></table>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td style=\"background-color:#ede6df;\" align=\"center\" bgcolor=\"#ede6df\" valign=\"top\">\n\t\t\t\t\t\t<table class=\"rnb-del-min-width\" style=\"min-width:590px; background-color:#ede6df;\" name=\"Layout_14\" id=\"Layout_14\" bgcolor=\"#ede6df\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n\t\t\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t\t\t<td class=\"rnb-del-min-width\" style=\"min-width:590px;\" align=\"center\" valign=\"top\">\n\t\t\t\t\t\t\t\t\t<table class=\"rnb-container\" style=\"background-color:#ede6df;\" align=\"center\" bgcolor=\"#ede6df\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"590\">\n\t\t\t\t\t\t\t\t\t\t<tbody><tr>\n\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<a href=\"'.$this->config->base_url().'\" style=\"text-decoration:none;\" target=\"_blank\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"'.$this->config->base_url().'img/header.png\" class=\"rnb-header-img\" alt=\"\" style=\"max-width:590px; display:block; border-radius:0px; height:px; width:590px;\" border=\"0\" height=\"\" hspace=\"0\" vspace=\"0\" width=\"590\">\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</tbody></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></table>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t<td style=\"background-color:#ede6df;\" align=\"center\" bgcolor=\"#ede6df\" valign=\"top\">\n\t\t\t\t\t<table style=\"background-color:##ede6df;\" name=\"Layout_56\" id=\"Layout_56\" bgcolor=\"#ede6df\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n\t\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t\t<td style=\"background-color: ##ede6df;\" align=\"center\" bgcolor=\"#ede6df\" valign=\"top\">\n\t\t\t\t\t\t\t\t<table style=\"height: 0px; background-color: rgb(255, 255, 255); border-bottom: 0px solid rgb(200, 200, 200); border-radius: 0px; padding-left: 20px; padding-right: 20px; border-collapse: separate;\" class=\"rnb-container\" bgcolor=\"##ffffff\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"590\">\n\t\t\t\t\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t\t\t\t\t<td class=\"rnb-container-padding\" style=\"background-color: #ffffff; font-size: px;font-family: ; color: ;\" bgcolor=\"#ffffff\">\n\t\t\t\t\t\t\t\t\t\t\t<table class=\"rnb-columns-container\" align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<td style=\"padding-right: 0px;\" class=\"rnb-force-col\" align=\"center\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<table class=\"rnb-col-1\" align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td height=\"10\"></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\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td style=\"font-size:18px;font-family:Arial,Helvetica,sans-serif; color:#555; font-weight:bold; text-align:center;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"color:#555; font-weight:bold;\"><div>Votre message</div></span>\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\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td height=\"10\"></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></table>\n\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</tr>\n\t\t\t\t\t\t\t\t\t\t\t</tbody></table>\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</tbody></table>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</tbody></table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td style=\"background-color:#ede6df;\" align=\"center\" bgcolor=\"#ede6df\" valign=\"top\">\n\t\t\t\t<table class=\"rnb-del-min-width\" style=\"min-width:590px; background-color:#ede6df;\" name=\"Layout_53\" id=\"Layout_53\" bgcolor=\"#ede6df\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n\t\t\t\t<tbody><tr>\n\t\t\t\t\t<td class=\"rnb-del-min-width\" style=\"min-width:590px; background-color: #ede6df;\" align=\"center\" bgcolor=\"#ede6df\" valign=\"top\">\n\t\t\t\t\t\t<table style=\"background-color: rgb(255, 255, 255); border-bottom: 0px solid rgb(200, 200, 200); border-radius: 0px; padding-left: 20px; padding-right: 20px; border-collapse: separate;\" class=\"rnb-container\" bgcolor=\"#ffffff\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"590\">\n\t\t\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t\t\t<td style=\"font-size:1px; line-height:1px;\" height=\"20\"> </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<td class=\"rnb-container-padding\" style=\"background-color: #ffffff;\" align=\"left\" bgcolor=\"#ffffff\" valign=\"top\">\n\t\t\t\t\t\t\t\t\t<table class=\"rnb-columns-container\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n\t\t\t\t\t\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t\t\t\t\t\t<td style=\"padding-right: 0px;\" class=\"rnb-force-col\" valign=\"top\">\n\t\t\t\t\t\t\t\t\t\t\t\t<table valign=\"top\" class=\"rnb-col-1\" align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"550\">\n\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<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td style=\"font-size:13px; font-family:Arial,Helvetica,sans-serif, sans-serif; color:#555;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div style=\"text-align: left;\"><br>\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<span style=\"font-size:14px;\"><strong> <br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tInformations</strong></span><br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'.$firstname.' '.$lastname.'<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tCoordonnées : <a href=\"mailto:'.$email.'\">'.$email.'</a> - '.$phone.'<br>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$htmlmail .= '<br><span style=\"font-size:14px;\"><strong>Commentaires</strong></span><br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'.$comment.'<br>\n\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$accept = $this->input->post(\"accept\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(isset($accept) && !empty($accept) )\n\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$htmlmail .= '<div style=\"text-align: left;\"><span style=\"font-size:14px;\"><br>J\\'accepte de recevoir des offres ou articles intéressants par email</span></div><div style=\"text-align: left;\"> </div>';\n\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\telse\n\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$htmlmail .= '<div style=\"text-align: left;\"><span style=\"font-size:14px;\"><br>Je n\\'accepte pas de recevoir des offres ou articles intéressants par mail</span><br></div>';\n\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\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$htmlmail .= '</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t</tbody></table>\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</tbody></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<td style=\"font-size:1px; line-height:1px;\" height=\"20\"> </td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</tbody></table>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t</tbody></table>\n\t\t</td>\n\t</tr><tr>\n\t\t<td style=\"background-color:#ede6df;\" align=\"center\" bgcolor=\"#ede6df\" valign=\"top\">\n <table style=\"background-color:##ede6df;\" name=\"Layout_55\" id=\"Layout_55\" bgcolor=\"#ede6df\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n <tbody><tr>\n <td style=\"background-color: ##ede6df;\" align=\"center\" bgcolor=\"#ede6df\" valign=\"top\">\n <table style=\"height: 0px; background-color: rgb(255, 255, 255); border-bottom: 0px solid rgb(200, 200, 200); border-radius: 0px; padding-left: 20px; padding-right: 20px; border-collapse: separate;\" class=\"rnb-container\" bgcolor=\"##ffffff\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"590\">\n <tbody><tr>\n <td class=\"rnb-container-padding\" style=\"background-color: #ffffff; font-size: px;font-family: ; color: ;\" bgcolor=\"#ffffff\">\n <table class=\"rnb-columns-container\" align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n <tbody><tr>\n <td style=\"padding-right: 0px;\" class=\"rnb-force-col\" align=\"center\">\n <table class=\"rnb-col-1\" align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n <tbody><tr>\n <td height=\"10\"></td>\n </tr>\n <tr>\n <td style=\"font-size:16px;font-family:Arial,Helvetica,sans-serif; color:#555; font-weight:bold; text-align:center;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"color:#555; font-weight:bold;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div>Au Coeur du Voyage vous remercie pour votre intérêt.</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div>Une conseillère reviendra vers vous dans les plus brefs délais.</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n </td>\n </tr>\n <tr>\n <td height=\"10\"></td>\n </tr>\n </tbody></table>\n </td>\n </tr>\n </tbody></table>\n </td>\n </tr>\n </tbody></table>\n </td>\n </tr>\n </tbody></table>\n\t\t</td>\n\t</tr><tr>\n\t\t<td style=\"background-color:#ede6df;\" align=\"center\" bgcolor=\"#ede6df\" valign=\"top\">\n\t\t\t<table class=\"rnb-del-min-width\" style=\"min-width:590px; background-color:#ede6df;\" name=\"Layout_29\" id=\"Layout_29\" bgcolor=\"#ede6df\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n\t\t\t\t<tbody><tr>\n\t\t\t\t\t<td class=\"rnb-del-min-width\" style=\"min-width:590px;\" align=\"center\" valign=\"top\">\n\t\t\t\t\t\t<table class=\"rnb-container\" style=\"background-color:#ede6df;\" align=\"center\" bgcolor=\"#ede6df\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"590\">\n\t\t\t\t\t\t\t<tbody>\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</tbody></table>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t</tbody></table>\n\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style=\"background-color:#ede6df;\" align=\"center\" bgcolor=\"#ede6df\" valign=\"top\">\n\t\t\t\t<table class=\"rnb-del-min-width\" style=\"min-width:590px; background-color:#ede6df;\" name=\"Layout_34\" id=\"Layout_34\" bgcolor=\"#ede6df\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t<td class=\"rnb-del-min-width\" style=\"min-width:590px; background-color: #ede6df;\" align=\"center\" bgcolor=\"#ede6df\" valign=\"top\">\n\t\t\t\t\t\t\t<table style=\"background-color: rgb(255, 255, 255); border-bottom: 0px solid rgb(200, 200, 200); border-radius: 0px; padding-left: 20px; padding-right: 20px; border-collapse: separate;\" class=\"rnb-container\" bgcolor=\"#ffffff\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"590\">\n\t\t\t\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t\t\t\t<td style=\"font-size:1px; line-height:1px;\" height=\"20\"> </td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td class=\"rnb-container-padding\" style=\"background-color: #ffffff;\" align=\"left\" bgcolor=\"#ffffff\" valign=\"top\">\n\t\t\t\t\t\t\t\t\t\t<table class=\"rnb-columns-container\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n\t\t\t\t\t\t\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t\t\t\t\t\t\t<td style=\"padding-right: 0px;\" class=\"rnb-force-col\" valign=\"top\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<table valign=\"top\" class=\"rnb-col-1\" align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"550\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td align=\"left\" valign=\"top\" width=\"100%\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"'.$this->config->base_url().'\" target=\"_blank\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"'.$this->config->base_url().'img/destinations.gif\" class=\"rnb-col-1-img\" alt=\"\" style=\"vertical-align:top; width:550px;\" border=\"0\" hspace=\"0\" vspace=\"0\" width=\"550\">\n\t\t\t\t\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\t\t\t\t</td>\n\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<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td style=\"font-size:1px; line-height:1px;\" height=\"20\"> </td>\n\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<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td style=\"font-size:13px; font-family:Arial,Helvetica,sans-serif, sans-serif; color:#555;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div></div>\n\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</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody></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></table>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td style=\"font-size:1px; line-height:1px;\" height=\"20\"> </td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</tbody></table>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody></table>\n\t\t\t</td>\n\t\t\t</tr><tr>\n\t\t\t\t<td style=\"background-color:#ede6df;\" align=\"center\" bgcolor=\"#ede6df\" valign=\"top\">\n\t\t\t\t\t<table class=\"rnb-del-min-width\" style=\"min-width:590px; background-color:#ede6df;\" name=\"Layout_30\" id=\"Layout_30\" bgcolor=\"#ede6df\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n\t\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t\t<td class=\"rnb-del-min-width\" style=\"min-width:590px;\" align=\"center\" valign=\"top\">\n\t\t\t\t\t\t\t\t<table class=\"rnb-container\" style=\"background-color:#ede6df;\" align=\"center\" bgcolor=\"#ede6df\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"590\">\n\t\t\t\t\t\t\t\t\t<tbody><tr>\n\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<img src=\"'.$this->config->base_url().'img/bottom.png\" class=\"rnb-header-img\" alt=\"\" style=\"max-width:590px; display:block; border-radius:0px; height:px; width:590px;\" border=\"0\" height=\"\" hspace=\"0\" vspace=\"0\" width=\"590\">\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</tbody></table>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</tbody></table>\n\t\t\t\t\t</td>\n\t\t\t</tr><tr>\n\t\t\t\t<td style=\"background-color:#ede6df;\" align=\"center\" bgcolor=\"#ede6df\" valign=\"top\">\n\t\t\t\t\t<table class=\"rnb-del-min-width\" style=\"min-width:590px; background-color:#ede6df;\" name=\"Layout_24\" id=\"Layout_24\" bgcolor=\"#ede6df\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n\t\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t\t<td class=\"rnb-del-min-width\" style=\"min-width:590px; background-color: #ede6df;\" align=\"center\" bgcolor=\"#ede6df\" valign=\"top\">\n\t\t\t\t\t\t\t\t<table class=\"rnb-container\" style=\"padding-right:5px; padding-left:5px;\" align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"590\">\n\t\t\t\t\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t\t\t\t\t<td style=\"font-size:1px; line-height:1px;\" height=\"20\"> </td>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t<td class=\"rnb-container-padding\" style=\"font-size: 13px; font-family: Arial,Helvetica,sans-serif; color: #919191;\" align=\"left\" valign=\"top\">\n\t\t\t\t\t\t\t\t\t\t\t<table class=\"rnb-columns-container\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n\t\t\t\t\t\t\t\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"rnb-force-col\" style=\"padding-right:20px;\" valign=\"top\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<table valign=\"top\" class=\"rnb-col-2\" style=\"border-bottom:0;\" align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"264\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td valign=\"top\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<table class=\"rnb-btn-col-content\" align=\"left\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td style=\"font-size:13px; font-family:Arial,Helvetica,sans-serif; color:#919191;\" class=\"rnb-text-center\" align=\"left\" valign=\"middle\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div><div><span style=\"color:#ec8234;\"><span style=\"font-size: 14px;\"><strong>Au Coeur du Voyage</strong></span></span></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div><span style=\"color:#696969;\">36, avenue du Général de Gaulle</span></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div><span style=\"color:#696969;\">93170 Bagnolet</span></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div><span style=\"color:#696969;\">Tél : 01 84 16 04 60 - Fax: 09 59 72 02 91</span></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div><span style=\"color:#696969;\"><strong>[email protected]</strong></span></div>\n\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</td>\n\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</tbody></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></table>\n\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<td class=\"rnb-force-col\" valign=\"top\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<table valign=\"top\" class=\"rnb-last-col-2\" align=\"right\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"264\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td valign=\"top\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<table class=\"rnb-btn-col-content\" align=\"right\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"rnb-text-center\" valign=\"middle\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"color:#ffffff; font-weight:normal;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https://www.facebook.com/pages/Au-Coeur-Du-Voyage/233613626680309?fref=ts\"><img src=\"'.$this->config->base_url().'img/fb.gif\" alt=\"Facebook\" style=\"vertical-align:top;\" target=\"_blank\" border=\"0\" hspace=\"0\" vspace=\"0\"></a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span><span style=\"color:#ffffff; font-weight:normal;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https://twitter.com/aucoeurduvoyage\"><img src=\"'.$this->config->base_url().'img/tw.gif\" alt=\"Twitter\" style=\"vertical-align:top;\" target=\"_blank\" border=\"0\" hspace=\"0\" vspace=\"0\"></a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span><span style=\"color:#ffffff; font-weight:normal;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https://plus.google.com/u/0/+Aucoeurduvoyage/posts\"><img src=\"'.$this->config->base_url().'img/gg.gif\" alt=\"Google+\" style=\"vertical-align:top;\" target=\"_blank\" border=\"0\" hspace=\"0\" vspace=\"0\"></a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span><span style=\"color:#ffffff; font-weight:normal;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"http://www.linkedin.com/company/au-coeur-du-voyage\"><img src=\"'.$this->config->base_url().'img/in.gif\" alt=\"LinkedIn\" style=\"vertical-align:top;\" target=\"_blank\" border=\"0\" hspace=\"0\" vspace=\"0\"></a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span><span style=\"color:#ffffff; font-weight:normal;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"http://www.viadeo.com/v/company/au-coeur-du-voyage\"><img src=\"'.$this->config->base_url().'img/vi.gif\" alt=\"Viadeo\" style=\"vertical-align:top;\" target=\"_blank\" border=\"0\" hspace=\"0\" vspace=\"0\"></a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span><span style=\"color:#ffffff; font-weight:normal;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"http://i.instagram.com/aucoeurduvoyage/#\"><img src=\"'.$this->config->base_url().'img/inst.png\" alt=\"Instagram\" style=\"vertical-align:top;\" target=\"_blank\" border=\"0\" hspace=\"0\" vspace=\"0\"></a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span><span style=\"color:#ffffff; font-weight:normal;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"http://www.pinterest.com/aucoeurduvoyage/boards/\"><img src=\"'.$this->config->base_url().'img/pinterest.png\" alt=\"Pinterest\" style=\"vertical-align:top;\" target=\"_blank\" border=\"0\" hspace=\"0\" vspace=\"0\"></a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\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</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody></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></table>\n\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</tr>\n\t\t\t\t\t\t\t\t\t\t\t</tbody></table>\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>\n\t\t\t\t\t\t\t\t\t\t<td style=\"font-size:1px; line-height:1px;\" height=\"20\"> </td>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t</tbody></table>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</tbody></table>\n\t\t\t\t</td>\n\t\t\t</tr><tr>\n\t\t\t\t<td style=\"background-color:#ede6df;\" align=\"center\" bgcolor=\"#ede6df\" valign=\"top\">\n\t\t\t\t\t<table class=\"rnb-del-min-width\" style=\"min-width:590px; background-color:#ede6df;\" name=\"Layout_3\" id=\"Layout_3\" bgcolor=\"#ede6df\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n\t\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t\t<td class=\"rnb-del-min-width\" style=\"min-width:590px; background-color: #ede6df;\" align=\"center\" bgcolor=\"#ede6df\" valign=\"top\">\n\t\t\t\t\t\t\t\t<table class=\"rnb-container\" style=\"padding-right:20px; padding-left:20px;\" align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"590\">\n\t\t\t\t\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t\t\t\t\t<td style=\"font-size:1px; line-height:1px;\" height=\"10\"> </td>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t<div style=\"font-size:13px; color:#919191; font-weight:normal; text-align:center; font-family:Arial,Helvetica,sans-serif;\"><div>\n\t\t<div><span style=\"color:#696969;\">Vous avez reçu cet email car vous vous êtes inscrit sur Au Coeur du Voyage.</span></div>\n\t\t<div> </div>\n\t\t</div>\n\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div style=\"font-size:13px; font-weight:normal; text-align:center; font-family:Arial,Helvetica,sans-serif;\">\n\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"mailto:[email protected]?subject=Désinscription liste emailing\" style=\"text-decoration:none; color:#474747;\" target=\"_blank\">Se désinscrire</a>\n\t\t\t\t\t\t\t\t\t\t\t</div>\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>\n\t\t\t\t\t\t\t\t\t\t<td style=\"font-size:1px; line-height:1px;\" height=\"10\"> </td>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t</tbody></table>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</tbody></table>\n\t\t\t\t</td>\n\t\t\t</tr><tr>\n\t\t\t\t<td style=\"background-color:#ede6df;\" align=\"center\" bgcolor=\"#ede6df\" valign=\"top\">\n\t\t\t\t\t<table class=\"rnb-del-min-width\" style=\"min-width:590px; background-color:#ede6df;\" name=\"Layout_4\" id=\"Layout_4\" bgcolor=\"#ede6df\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n\t\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t\t<td class=\"rnb-del-min-width\" style=\"min-width:590px; background-color: #555;\" align=\"center\" bgcolor=\"#555\" valign=\"top\">\n\t\t\t\t\t\t\t\t<table class=\"rnb-container\" style=\"padding-right:20px; padding-left:20px;\" align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"590\">\n\t\t\t\t\t\t\t\t\t<tbody><tr>\n\t\t\t\t\t\t\t\t\t\t<td style=\"font-size:1px; line-height:1px;\" height=\"10\"> </td>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t<td style=\"font-size:13px; color:#ffffff; font-weight:normal; text-align:center; font-family:Arial,Helvetica,sans-serif;\">\n\t\t\t\t\t\t\t\t\t\t\t<div>© 2015 Au Coeur du Voyage</div>\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>\n\t\t\t\t\t\t\t\t\t\t<td style=\"font-size:1px; line-height:1px;\" height=\"10\"> </td>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t</tbody></table>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</tbody></table>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t</tbody></table>\n\t\t</body></html>';\n\t\t\n\t\t\n\t\t\t\n\t\t$firstname = trim($this->input->post(\"firstname\"));\n\t\t$lastname = trim($this->input->post(\"lastname\"));\n\t\t$email =trim($this->input->post(\"email\"));\n\t\t$phoneno =trim($this->input->post(\"phone\"));\n\t\t$comment =trim($this->input->post(\"comment\"));\n\t\t\n\t\t$tokenmatch\t = $this->session->userdata('token');\n\t\t$tokenhidden_value = $this->input->post('token');\n\t\t$tokenhidden_key = $this->input->post('token_key');\n\t\t$needle = 'http';\n\t\tif(isset($tokenmatch[$tokenhidden_key]) && !empty($tokenmatch[$tokenhidden_key]) && $tokenmatch[$tokenhidden_key] == $tokenhidden_value)\n\t\t{\n\t\t\t$this->session->unset_userdata('token');\n\t\t\n\t\t\tif((strlen(strstr($firstname,$needle))==0) && (strlen(strstr($lastname,$needle))==0) && (strlen(strstr($email,$needle))==0) && (strlen(strstr($phoneno,$needle))==0) && (strlen(strstr($comment,$needle))==0))\n\t\t\t{\n\t\t\t\n\t\t\t\t$this->contactmodel->insert_record();\n\t\t\t\t$admindetails = $this->commonlibmodel->getgeneralsetting();\n\t\t\t\t\n\t\t\t\t$this->email->from($admindetails[0]['email_id'],$admindetails[0]['company_name']);\n\t\t\t\t$this->email->to($email);\n\t\t\t\t$this->email->subject(\"Merci pour votre message\");\n\t\t\t\t$this->email->set_mailtype('html');\n\t\t\t\t$this->email->message($htmlmail);\n\t\t\t\t$this->email->send();\n\t\t\t\t\t\t\t\n\t\t\t\t$this->email->from($admindetails[0]['email_id'],$admindetails[0]['company_name']);\n\t\t\t\t$this->email->to($admindetails[0]['email_id']);\n\t\t\t\t$this->email->subject(\"Nouveau message\");\n\t\t\t\t$this->email->set_mailtype('html');\n\t\t\t\t$this->email->message($htmlmail);\n\t\t\t\t$this->email->send();\n\n\t\t\t\t/*$this->email->from($email);\n\t\t\t\t$this->email->to($admindetails[0]['email_id']);\n\t\t\t\t$this->email->subject(\"Nouveau message\");\n\t\t\t\t$this->email->set_mailtype('html');\n\t\t\t\t$this->email->message($htmlmail);\n\t\t\t\t$this->email->send(); */\n\t\t\t\t\n\t\t\t\t/*$this->email->from($email);\n\t\t\t\t$this->email->to('[email protected]');\n\t\t\t\t$this->email->subject(\"Nouveau message\");\n\t\t\t\t$this->email->set_mailtype('html');\n\t\t\t\t$this->email->message($htmlmail);\n\t\t\t\t$this->email->send(); */\n\t\t\t\n\t\t\t\tredirect('confirmation-envoi-message');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tredirect('confirmation-envoi-message');\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tredirect('confirmation-envoi-message');\n\t\t}\t\t\n\t\n\t\t\n\t}",
"public function __construct(){\n $this->loggerM = LoggerMgr::Instance()->getLogger(__CLASS__);\n \n $this->loggerM->trace(\"Enter\");\n parent::__construct();\n\t\t$this->tableDefinitionM = new TableDef(self::TB_SubscribersTableC);\n\t\t$this->tableDefinitionM->addColumn(new ColumnDef(\n self::IdColumnC,ColumnType::integerC));\n\t\t$this->tableDefinitionM->addColumn(new ColumnDef(\n self::NameColumnC,ColumnType::stringC));\n\t\t$this->tableDefinitionM->addColumn(new ColumnDef(\n self::SurnameColumnC,ColumnType::stringC));\n\t\t$this->tableDefinitionM->addColumn(new ColumnDef(\n self::EmailColumnC,ColumnType::stringC));\n\t\t$this->tableDefinitionM->addKey(self::IdColumnC);\n \n $this->tableMappingM = new TableMapping();\n \n $this->tableMappingM->addTable(self::phisicalTB_SubscribersC);\n $this->tableMappingM->addColumn(\n self::phisicalTB_SubscribersC ,\n self::phisicalTB_SubscribersIdColumnC ,\n self::IdColumnC,\n ColumnType::integerC);\n $this->tableMappingM->addColumn(\n self::phisicalTB_SubscribersC ,\n self::phisicalTB_SubscribersNameColumnC ,\n self::NameColumnC,\n ColumnType::stringC);\n $this->tableMappingM->addColumn(\n self::phisicalTB_SubscribersC ,\n self::phisicalTB_SubscribersSurnameColumnC ,\n self::SurnameColumnC,\n ColumnType::stringC);\n $this->tableMappingM->addColumn(\n self::phisicalTB_SubscribersC ,\n self::phisicalTB_SubscribersEmailColumnC ,\n self::EmailColumnC,\n ColumnType::stringC);\n \n $this->tableMappingM->addKey(self::phisicalTB_SubscribersC,\n self::phisicalTB_SubscribersIdColumnC );\n \n \n $this->loggerM->trace(\"Exit\");\n\t}",
"public function appendRecord(){\n $record = $this->document->createElement('record');\n $this->parentElement->appendChild($record);\n // Sets the parent of the next append functions\n $this->parentElement = $record;\n $this->appendHeader();\n $this->appendMetadata();\n }",
"public function action_create()\n\t{\n\t\t$this->_edit(\\Ticker\\Model_Message::forge());\n\t}",
"function form_content()\n {\n $it = new SwimTeamSwimmerProfileInfoTable('Swimmer Details') ;\n $it->setSwimmerId($this->get_hidden_element_value('swimmerid')) ;\n $it->constructSwimmerProfile(true) ;\n\n $table = html_table($this->_width, 0, 4) ;\n $table->set_style('border: 1px solid') ;\n\n $td = html_td() ;\n $td->set_tag_attributes(array('rowspan' => '4',\n 'valign' => 'middle', 'style' => 'padding-right: 10px;')) ;\n $td->add($it) ;\n\n $table->add_row(_HTML_SPACE, _HTML_SPACE, $td) ;\n $table->add_row($this->element_label($this->getActionLabel() . ' Type'),\n $this->element_form($this->getActionLabel() . ' Type')) ;\n $table->add_row(_HTML_SPACE) ;\n\n // Initialize the Full Strokes here instead of in \n // the form_init_data() method because it is a disabled\n // widget and the values won't be preserved if the\n // form has to be displayed again due to a validation\n // problem.\n\n $this->set_element_value('Full Strokes', $this->_strokeSelections()) ;\n\n // Build the Magic Divs\n\n $this->__full_strokes_div = $this->__strokes->build_div(0) ;\n $this->__partial_strokes_div = $this->__strokes->build_div(1) ;\n $this->__full_strokes_div->add($this->element_form('Full Strokes')) ;\n $this->__partial_strokes_div->add($this->element_form('Partial Strokes')) ;\n $strokes = html_div(null, $this->__full_strokes_div, $this->__partial_strokes_div) ;\n\n $table->add_row('Strokes', $strokes) ;\n\n $table->add_row(_HTML_SPACE) ;\n\n $td = html_td() ;\n $td->set_tag_attributes(array('colspan' => '2',\n 'valign' => 'middle', 'style' => 'padding-right: 10px;')) ;\n $td->add($this->element_form('Swim Meets')) ;\n $table->add_row($this->element_label('Swim Meets'), $td) ;\n \n $table->add_row(_HTML_SPACE) ;\n\n $td = html_td() ;\n $td->set_tag_attributes(array('colspan' => '3', 'align' => 'center')) ;\n $td->add(div_font8bold('This information replaces any existing information on a per swimmer basis.')) ;\n\n $table->add_row($td) ;\n\n $this->add_form_block(null, $table) ;\n }",
"public function addReceiptContent(){\n $sql = \"INSERT INTO cash_sales_receipt_content(receipt_number, spare_part, quantity, description, price, amount) VALUES ('$this->receiptNumber','$this->sparePartId',$this->quantity,'$this->description',$this->price, $this->amount)\";\n mysqli_query($this->connect,$sql);\n }",
"public function createMeta()\n {\n $table = $this->getTable();\n $invoiceData = $this->_metaData;\n $invoiceData = $this->unsetNonTableFields($invoiceData);\n $this->_invoiceId = $table->insert($invoiceData);\n }",
"public function insertRecord() {\n\n // Insert a single record\n if ($this->action == \"new\" || $this->action == \"add\") { \n\t$date = date('ndyhms');\n\t\n\t// We want to default the second byline if nothing is specified\n\t// lah - 5/19 - barbara asked to have this removed\n\t//\tif (trim($this->story[BYLINE2]) == \"\")\n\t//\t $this->story[BYLINE2] = \"Associated Press Writer\"; \n\n $sql = \"INSERT INTO apnews (id, title, content, priority, byline, byline2, breaking_story) VALUES (\\\"$date\\\", \\\"\" . $this->story[TITLE] . \"\\\", \\\"\" . $this->story[CONTENT] . \"\\\", \\\"\" . $this->story[PRIORITY] . \"\\\", \\\"\" . $this->story[BYLINE] . \"\\\", \\\"\" . $this->story[BYLINE2] . \"\\\", \\\"\" . $this->story[BREAKING] . \"\\\")\";\n\n\t$result = $this->_db->query($sql); \n\n // Error check \n if (! DB::isError($result)) {\n\t $this->_buildMarquee();\n\n // Build all of the news pages\n\t system('/data/stage/utils/go2/build_newsnow_ap.sh > /dev/null');\n\t return 0;\n\t \n\t}\n\n }\n return 1;\n \n }",
"static function buildDynamicDataView() {\n // entry.object_id as ticket_id, MAX(IF(field.name = 'subject',\n // ans.value, NULL)) as `subject`,MAX(IF(field.name = 'priority',\n // ans.value, NULL)) as `priority_desc`,MAX(IF(field.name =\n // 'priority', ans.value_id, NULL)) as `priority_id`\n // FROM ost_form_entry entry LEFT JOIN ost_form_entry_values ans ON\n // ans.entry_id = entry.id LEFT JOIN ost_form_field field ON\n // field.id=ans.field_id\n // where entry.object_type='T' group by entry.object_id;\n $sql = 'CREATE TABLE `'.TABLE_PREFIX.'ticket__cdata` (PRIMARY KEY\n (ticket_id)) AS ' . static::getCrossTabQuery('T', 'ticket_id');\n db_query($sql);\n }",
"public function add_new_newsletter_record() {\r\n\t\t$newsletter_html = $this->get_newsletter_html();\r\n\r\n\t\t$data = array(\r\n\t\t\t'data' => $newsletter_html,\r\n\t\t\t'created' => time(),\r\n\t\t\t'status' => 0,\r\n\t\t\t'type' => 'new post'\r\n\t\t);\r\n\r\n\t\t$this->db->insert($this->newsletter_table, $data);\r\n\t\t$newsletter_id = $this->db->insert_id();\r\n\r\n\t\t$newsletter_html = $this->get_newsletter_html($newsletter_id);\r\n\r\n\t\t$this->mail_model->set_records($newsletter_id);\r\n\r\n\t\techo $newsletter_html;\r\n\t}",
"private function setItems(): void\n {\n // init header labels\n $lblSessionId = \\SpoonFilter::ucfirst(BL::lbl('SessionId'));\n $lblSentOn = \\SpoonFilter::ucfirst(BL::lbl('SentOn'));\n $this->columnHeaders = [$lblSessionId, $lblSentOn];\n\n // fetch query and parameters\n list($query, $parameters) = $this->buildQuery();\n\n // get the data\n $records = (array) $this->get('database')->getRecords($query, $parameters);\n $data = [];\n\n // reformat data\n foreach ($records as $row) {\n // first row of a submission\n if (!isset($data[$row['data_id']])) {\n $data[$row['data_id']][$lblSessionId] = $row['session_id'];\n $data[$row['data_id']][$lblSentOn] = \\SpoonDate::getDate(\n 'Y-m-d H:i:s',\n $row['sent_on'],\n BL::getWorkingLanguage()\n );\n }\n\n // value is serialized\n $value = unserialize($row['value'], ['allowed_classes' => false]);\n\n // flatten arrays\n if (is_array($value)) {\n $value = implode(', ', $value);\n }\n\n // group submissions\n $data[$row['data_id']][$row['label']] = \\SpoonFilter::htmlentitiesDecode($value, null, ENT_QUOTES);\n\n // add into headers if not yet added\n if (!in_array($row['label'], $this->columnHeaders)) {\n $this->columnHeaders[] = $row['label'];\n }\n }\n\n // reorder data so they are in the correct column\n foreach ($data as $id => $row) {\n foreach ($this->columnHeaders as $header) {\n // submission has this field so add it\n if (isset($row[$header])) {\n $this->rows[$id][] = $row[$header];\n } else {\n // submission does not have this field so add a placeholder\n $this->rows[$id][] = '';\n }\n }\n }\n\n // remove the keys\n $this->rows = array_values($this->rows);\n }",
"public function tprint_row_add($data);"
] | [
"0.57599294",
"0.561383",
"0.5568762",
"0.55510193",
"0.55369425",
"0.55293924",
"0.5499786",
"0.54970753",
"0.5438246",
"0.54089963",
"0.5403076",
"0.5352418",
"0.5334915",
"0.53272223",
"0.53048843",
"0.52939653",
"0.52833813",
"0.52820003",
"0.52719504",
"0.52613366",
"0.5258423",
"0.5251607",
"0.5236229",
"0.52313644",
"0.5225549",
"0.52198935",
"0.5219183",
"0.52190715",
"0.5216419",
"0.520017"
] | 0.63052833 | 0 |
Returns a new rlsTradeNameQuery object. | public static function create($modelAlias = null, $criteria = null)
{
if ($criteria instanceof rlsTradeNameQuery) {
return $criteria;
}
$query = new rlsTradeNameQuery();
if (null !== $modelAlias) {
$query->setModelAlias($modelAlias);
}
if ($criteria instanceof Criteria) {
$query->mergeWith($criteria);
}
return $query;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function prune($rlsTradeName = null)\n {\n if ($rlsTradeName) {\n $this->addUsingAlias(rlsTradeNamePeer::ID, $rlsTradeName->getid(), Criteria::NOT_EQUAL);\n }\n\n return $this;\n }",
"public function filterByname($name = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($name)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $name)) {\n $name = str_replace('*', '%', $name);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(rlsTradeNamePeer::NAME, $name, $comparison);\n }",
"public function filterLikeVoucherName($name)\n {\n $this->where($this->expr()->like('account_name','%:account_name%'))\n ->setParameter('account_name',\n $name,\n $this->getGateway()->getMetaData()->getColumn('account_name')->getType());\n \n return $this; \n }",
"public function setMockQueryName($name)\n {\n $this->_mockQueryName = $name;\n \n return $this;\n }",
"public function setName($name)\n {\n //argument 1 must be a string\n Argument::i()->test(1, 'string');\n $this->query['name'] = $name;\n \n return $this;\n }",
"public function filterBylocalName($localName = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($localName)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $localName)) {\n $localName = str_replace('*', '%', $localName);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(rlsTradeNamePeer::LOCALNAME, $localName, $comparison);\n }",
"public function setName($name):self\n {\n $this->name = $name;\n\n return $this;\n }",
"public function withName(string $name): self;",
"public function scopeLikeName($query, $name)\n {\n return $query->where('offers.name', 'LIKE', '%'.$name.'%');\n }",
"public function nameSearch($name): self\n {\n return $this->andFilterWhere(['like', 'users.name', $name]);\n }",
"public function scopeName($query, $input)\n {\n return $query->where('name','=',$input);\n\n }",
"public function filterByName($name)\n {\n $this->filter[] = $this->field('name').' = '.$this->quote($name);\n return $this;\n }",
"public function name($name)\n {\n $this->name = $name;\n \n return $this;\n }",
"public function setName(string $name): self\n {\n $this->name = filter_var($name, FILTER_SANITIZE_STRING);\n\n return $this;\n }",
"public function name($name)\n {\n $this->name = $name;\n\n return $this;\n }",
"public function createNamedQuery($name)\n {\n return $this->delegate->createNamedQuery($name);\n }",
"public static function getRelationName(): Name\n {\n return new Name('instrument origin');\n }",
"public function name($name)\n {\n $this->name = $name;\n return $this;\n }",
"public function name($name) {\n $this->name = $name;\n return $this;\n }",
"public static function nameOf(string $name) : ?self\n {\n return self::fieldOf('name', $name);\n }",
"public function name($name) {\n $this->_name = $name;\n return $this;\n }",
"public function name($name)\n {\n $this->current_name = $name;\n\n return $this;\n }",
"public function setStrName($strName)\n {\n $this->strName = $strName;\n return $this;\n }",
"public function name(string $name): self\n {\n return $this->state(['name' => $name]);\n }",
"public function scopeRankName($query, $rank_name)\n {\n return $query->where('rank_name', 'LIKE', \"%$rank_name%\");\n }",
"public function name(string $name): self\n {\n $this->name = $name;\n\n return $this;\n }",
"public static function with(string $name) : self\n {\n return new self($name);\n }",
"public function set_name($name) \n\t{\n\t\t$this->name = $name;\n\t\treturn $this;\n\t}",
"public function set_name($name) \n\t{\n\t\t$this->name = $name;\n\t\treturn $this;\n\t}",
"public function setFromName($name)\n {\n $this->setAttributeRaw('from_name', $name);\n\n return $this;\n }"
] | [
"0.6008888",
"0.53943264",
"0.5385029",
"0.507456",
"0.4939869",
"0.4826802",
"0.47449946",
"0.4744529",
"0.4687178",
"0.4644154",
"0.46433774",
"0.4637182",
"0.46350852",
"0.462777",
"0.46203145",
"0.46076062",
"0.4603943",
"0.46037945",
"0.46024632",
"0.459084",
"0.4590155",
"0.45759085",
"0.45658755",
"0.45532206",
"0.45529836",
"0.4551143",
"0.45416236",
"0.4538966",
"0.4538966",
"0.45258942"
] | 0.5688083 | 1 |
Filter the query on the localName column Example usage: $query>filterBylocalName('fooValue'); // WHERE localName = 'fooValue' $query>filterBylocalName('%fooValue%'); // WHERE localName LIKE '%fooValue%' | public function filterBylocalName($localName = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($localName)) {
$comparison = Criteria::IN;
} elseif (preg_match('/[\%\*]/', $localName)) {
$localName = str_replace('*', '%', $localName);
$comparison = Criteria::LIKE;
}
}
return $this->addUsingAlias(rlsTradeNamePeer::LOCALNAME, $localName, $comparison);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function filterByElementName($elementName = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($elementName)) {\n $comparison = Criteria::IN;\n } elseif (preg_match('/[\\%\\*]/', $elementName)) {\n $elementName = str_replace('*', '%', $elementName);\n $comparison = Criteria::LIKE;\n }\n }\n\n return $this->addUsingAlias(CustomListElementPeer::ELEMENT_NAME, $elementName, $comparison);\n }",
"function filterStr($field, $value) {\n if (\"$value\" !== '') {\n if ($value[0] === '=') {\n $this->where($field, '=', trim( substr($value, 1) ));\n } else {\n $wrapped = $this->table->grammar->wrap($field);\n\n switch ($value[0]) {\n case '^':\n $cond = '= 1';\n case '?':\n isset($cond) or $cond = '!= 0';\n $this->raw_where(\"LOCATE(?, $wrapped) $cond\", array($value));\n break;\n\n case '%':\n $this->raw_where(\"$wrapped LIKE ?\", array($value));\n break;\n\n default:\n $this->where($field, '=', trim($value));\n break;\n }\n }\n }\n }",
"public function filter_method_name() {\n\t\t // TODO:\tDefine your filter method here\n\t\t}",
"abstract public function filter($name, $params = array());",
"public function testStringTrimFilterIsUsed()\n {\n $this->assertEquals(\n [['name' => 'Laminas\\Filter\\StringTrim']],\n $this->getSpecificationElement('filters')\n );\n }",
"public function filter_method_name() {\n\t\t// TODO: Define your filter method here\n\t}",
"function get_search_query(&$filters) {\n if (isset($_GET[\"search\"])) {\n $search = strtoupper($_GET[\"search\"]);\n array_push($filters, \"upper(item) LIKE :search\");\n }\n }",
"public function filter($filter_param);",
"public function where_like($column_name, $value) {\n return $this->_add_simple_where($column_name, 'LIKE', $value);\n }",
"function filter($col, $value=\"\")\n\t{\n\t\tif(empty($value)) return false;\n\t\t$select = $this->getSelect();\n\t\tif( preg_match(\"/^\\*/\", $col ) )\n\t\t\t$select->having( substr($col,1).\" = ?\", $value);\n\t\telse\n\t\t\t$select->where(\"$col = ?\", $value);\n\t\treturn true;\n\n\t}",
"public function filterOptionRecipientName($collection, $column)\n {\n $filterValue = $column->getFilter()->getValue();\n if (!$filterValue)\n {\n return;\n }\n\n // remove spaces\n $filterValue = $this->removeSpaces($filterValue);\n\n $collection->getSelect()\n ->where('CONCAT(recipient_firstname, recipient_lastname) LIKE ?', \"%{$filterValue}%\");\n }",
"protected function searchInternal($dataProvider)\n {\n $columns = $this->getTableSchema()->columns;\n \n foreach($this->getAttributes($this->safeAttributes()) as $attribute => $value)\n {\n if(!isset($columns[$attribute])) // If the attribute has no column in the database.\n {\n continue; // It cannot be searched.\n }\n \n // Add each attribute's condition depending on its type.\n switch($columns[$attribute]->type)\n {\n case 'boolean':\n case 'smallint':\n case 'integer':\n case 'bigint':\n case 'float':\n case 'decimal':\n $dataProvider->query->andFilterWhere([$attribute => $value]);\n break;\n default: // The search is done with an SQL LIKE.\n $dataProvider->query->andFilterWhere(['like', $attribute, $value]);\n }\n }\n \n return $dataProvider;\n }",
"public function getFilter(string $name): StringFilterInterface;",
"public function filterByAttribute($query, Attribute $attribute, $value): void;",
"public function scopeFilteredByString($query, $page, $column, $value){\n return self::where($column, \"like\", \"%$value%\")\n ->orderBy(\"created_at\", \"desc\")\n ->offset(self::PER_PAGE * ($page - 1))\n ->limit(self::PER_PAGE);\n }",
"function search_movies($filter) {\n global $db;\n $query = 'SELECT * FROM movies\n\t\t\t WHERE title LIKE %' . $filter . '%';\n $statement = $db->prepare($query);\n\t//$statement->bindValue(':filter', $filter);\n $statement->execute();\n\t$movies = $statement -> fetchALL();\n\t$statement->closeCursor();\n return $movies; \n}",
"public function q($value = all) {\n return (!$this->requestAllData($value)) ? $this->builder->where('product_datas.name', 'like', '%'.$value.'%') : null;\n }",
"public function addNameFilter(Builder $query = null, $product_name_part = null)\n {\n if(is_null($query)){\n $query = $this->query();\n }\n\n if(!is_null($product_name_part)) {\n $query = $query->where('ecom_products.name', 'like', '%' . $product_name_part . '%');\n }\n\n return $query;\n }",
"public function filter($args) {\n switch (true) {\n case is_string($args): return $this->where($args);\n default:\n return $this->spawn()->apply_filter($args);\n }\n }",
"public function hasLocalName()\n\t{\n\t return ($this->_local_columnname == null)? false : true;\n\t}",
"public function where_like( $column_name, $value = null ) {\n\t\treturn $this->_add_simple_where( $column_name, 'LIKE', $value );\n\t}",
"public static function scopeSearch($query, $filter = '')\n {\n return $query->where('name', 'LIKE', '%' . $filter . '%');\n }",
"public function scopeSearch($query, $filter)\n {\n return $query->where('name', 'LIKE' , \"%$filter%\");\n }",
"public function scopeName($query,$name){\n $query->where('name','like',\"%$name%\");\n\n }",
"function addInputFilter($displayName, $columnName, $exact=false, $type='string') { // type may be used later\n\t\t$x['displayName'] = $displayName;\n\t\t$x['columnName'] = $columnName;\n\t\t$x['type'] = $type;\n\t\t$x['exact'] = $exact;\n\t\t$this->inputFilters[] = $x;\n\t}",
"public function filter_method_name() {\n\t}",
"public function filterFieldByString($field, $filter)\r\n {\n if ($filter)\r\n {\r\n $filters = explode('|', Stringkit::strtolower($filter));\n $filters = array_diff($filters, array(''));\n foreach ($filters as $filter)\r\n {\r\n $this->addWhere(sprintf('LOWER(%s) LIKE \"%%%s%%\"', $field, addslashes($filter)));\r\n }\r\n }\r\n \r\n return $this;\r\n }",
"public function name($value) {\n return (!$this->requestAllData($value)) ? $this->builder->where('name', 'like', '%'.$value.'%') : null;\n }",
"function searchUsers($nameSearch) {\n //Figure out how to bind wildcard parameter\n $nameSearch = \"%$nameSearch%\";\n\n $conn = getConnection();\n $DBQuery = \"select * from users where username LIKE :nameSearch;\";\n $statement = $conn->prepare($DBQuery);\n $statement->bindParam(':nameSearch', $nameSearch);\n $statement->execute();\n $users = $statement->fetchAll();\n return $users;\n}",
"function Query_Filter()\r\n {\r\n $sql = \"select cod_materia , descricao_materia from materia where 1=1 \";\r\n if ( $this->getcod_materia() != \"\" ) \r\n $sql = $sql . \" and cod_materia = \".$this->getcod_materia();\r\n if ( $this->getdescrica_materia() != \"\" ) \r\n $sql = $sql . \" and descrica_materia like '%\".$this->getdescrica_materia().\"%' \";\r\n\r\n $result = mysql_query( $sql );\r\n return $result;\r\n }"
] | [
"0.50593203",
"0.50260425",
"0.49892315",
"0.4972321",
"0.49527007",
"0.4933852",
"0.49279988",
"0.49106643",
"0.48813307",
"0.48339096",
"0.48237506",
"0.48072246",
"0.4803336",
"0.48009032",
"0.47962022",
"0.47911817",
"0.47550178",
"0.47544175",
"0.47427142",
"0.4741173",
"0.47390175",
"0.47379738",
"0.47371382",
"0.47172245",
"0.47101086",
"0.4705209",
"0.46855265",
"0.46790734",
"0.4668727",
"0.4668677"
] | 0.6898811 | 0 |
Filter the query by a related rlsNomen object | public function filterByrlsNomen($rlsNomen, $comparison = null)
{
if ($rlsNomen instanceof rlsNomen) {
return $this
->addUsingAlias(rlsTradeNamePeer::ID, $rlsNomen->gettradeNameId(), $comparison);
} elseif ($rlsNomen instanceof PropelObjectCollection) {
return $this
->userlsNomenQuery()
->filterByPrimaryKeys($rlsNomen->getPrimaryKeys())
->endUse();
} else {
throw new PropelException('filterByrlsNomen() only accepts arguments of type rlsNomen or PropelCollection');
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function find( $relationName, Filter $filter_1 );",
"function findOne( $relationName, Filter $filter_1 );",
"public function getFiltrados($filtroNombre){\r\n\t\treturn R::find('tamano','where nombre like ? order by nombre',['%'.$filtroNombre.'%']);\r\n\t}",
"public function filter(){\n\t\t\t$this->filtroSQL = \"SELECT art.*, cat.categoria, fam.familia, sfam.subfamilia, autor\n\t\t\t\t,date_format(art.fmodificacion,'%d-%m-%Y %H:%i:%s') ffmodificacion\n\t\t\t\t,format(art.precio,2,'de_DE') fprecio\n\t\t\t\t,format(art.oferta,2,'de_DE') foferta\n\t\t\t\t,(select nombre from os_administradores adm where adm.id=art.id_administrador) gestor\n\t\t\t\t,(CASE art.estado WHEN 'ON' THEN 'Online' WHEN 'OFF' THEN 'Offline' ELSE 'Elimado/a' END) festado\t\t\t\t\n\t\t\t\tFROM articulos art\n\t\t\t\tLEFT JOIN subfamilias sfam ON art.id_subfamilia=sfam.id\n\t\t\t\tLEFT JOIN familias fam ON sfam.id_familia=fam.id\n\t\t\t\tLEFT JOIN categorias cat ON fam.id_categoria=cat.id\n\t\t\t\tLEFT JOIN autores aut ON art.id_autor=aut.id\n\t\t\t\tWHERE art.estado IN ('ON','OFF')\";\n\t\t\t\t\t\t\n\t\t\tif ( $_REQUEST['_articulo'] )\n\t\t\t\t$this->filtroSQL .= \" AND art.articulo LIKE '%$this->filtro_articulo%'\";\n\t\t\tif ( $_REQUEST['_categoria'] )\n\t\t\t\t$this->filtroSQL .= \" AND categoria LIKE '%$this->filtro_categoria%'\";\n\t\t\tif ( $_REQUEST['_familia'] )\n\t\t\t\t$this->filtroSQL .= \" AND familia LIKE '%$this->filtro_familia%'\";\n\t\t\tif ( $_REQUEST['_subfamilia'] )\n\t\t\t\t$this->filtroSQL .= \" AND subfamilia LIKE '%$this->filtro_subfamilia%'\";\n\t\t\tif ( $_REQUEST['_autor'] )\n\t\t\t\t$this->filtroSQL .= \" AND autor LIKE '%$this->filtro_autor%'\";\n\t\t\t\n\t\t\tif ( $this->filtro_campo )\n\t\t\t\t$this->filtroSQL .=\" ORDER BY $this->filtro_campo\".($this->filtro_orden==\"up\"?\"\":\" desc\");\n\t\t}",
"public function filterGestionnaire()\n {\n return $this->filterByIdlevel('2');\n }",
"public function filtreBarreRecherche(){\n try {\n $mysqli=$this->connexion();\n $stmt=$mysqli->prepare(\"select * from utilisateurs inner join voyages on utilisateurs.id = voyages.id\");\n $stmt->execute();\n $rs=$stmt->get_result();\n $filtre=$rs->fetch_all(MYSQLI_ASSOC);\n $mysqli->close();\n return $filtre;\n } catch (mysqli_sql_exception $m) {\n throw new DaoException($m->getMessage(), $m->getCode());\n }\n }",
"public function findWhere($parameters,$relationshipNames=[],$trashed = false);",
"public function filtrar(&$filtro) {\n parent::filtrar($filtro);\n $filtro_sql = '';\n if ($filtro->filtro('id'))\n $filtro_sql .= \" AND {$this->getTableName()}.id like '%{$filtro->filtro('id')}%' \";\n if ($filtro->filtro('nombre'))\n $filtro_sql .= \" AND {$this->getTableName()}.nombre like '%{$filtro->filtro('nombre')}%' \";\n if ($filtro->filtro('descripcion'))\n $filtro_sql .= \" AND {$this->getTableName()}.descripcion like '%{$filtro->filtro('descripcion')}%' \";\n return $filtro_sql;\n }",
"public function Filter($filter=null){\n $results = $this->where(function($query) use ($filter){\n if($filter){\n $query->where('cliente','LIKE',\"%{$filter}%\" or 'vendedor','LIKE',\"%{$filter}%\" or 'data','LIKE',\"%{$filter}%\")->orderBy(\"%{$filter}%\", 'desc')->get() ;\n }\n });\n return $results;\n }",
"public function consultar($nomCli)\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\t\t$criteria->with=array('entidad','estado');\n\t\t$criteria->addCondition(\"entidad.razonSocial like '%\".$nomCli.\"%'\");\n\t$criteria->order=\"t.id desc\";\n\t\treturn self::model()->findAll($criteria);\n\t}",
"public function testFilterByAttributeInRelationship()\n {\n parse_str('filter[post.text][like]=%repudiandae%&filter[text][like]=%veniam%&sorting=id', $parameters);\n $response = $this->get(self::API_URI, $parameters);\n\n $this->assertEquals(200, $response->getStatusCode());\n $this->assertNotNull($resource = json_decode((string)$response->getBody()));\n\n // manually checked with\n // SELECT comments.*\n // FROM comments\n // JOIN posts ON comments.id_post = posts.id_post\n // WHERE comments.text LIKE '%veniam%' AND posts.text LIKE '%repudiandae%'\n // ORDER BY comments.id_comment;\n $this->assertCount(4, $resource->data);\n $this->assertEquals(104, $resource->data[0]->id);\n $this->assertEquals(173, $resource->data[1]->id);\n $this->assertEquals(207, $resource->data[2]->id);\n $this->assertEquals(253, $resource->data[3]->id);\n }",
"public function search($queryFilter) {\n $search;\n if($queryFilter->query('term') === null) {\n $search = $this->model->all(); \n } else {\n $searchQuery = trim($queryFilter->query('term'));\n $requestData = ['description'];\n $this->share = $queryFilter->query('term');\n $search = $this->model->with([\n 'share' => function($query){\n $query->select('id', 'share_number'); \n }, \n 'transaction' => function($query){\n $query->select('id', 'description');\n }, \n 'partner' => function($query){\n $query->select('id', 'name', 'last_name');\n },\n 'titular' => function($query){\n $query->select('id', 'name', 'last_name');\n },\n 'currency' => function($query){\n $query->select('id', 'description');\n }\n ])->where(function($q) use($requestData, $searchQuery) {\n foreach ($requestData as $field) {\n $q->orWhere($field, 'like', \"{$searchQuery}%\");\n }\n\n $shares = $this->shareModel->query()->where('share_number','like', '%'.$this->share.'%')->get(); \n if(count($shares)) {\n foreach ($shares as $key => $value) {\n $q->orWhere('share_id', $value->id);\n }\n }\n\n $personData = ['name', 'last_name'];\n $persons = $this->personModel->query()->where(function($q) use($personData, $searchQuery) {\n foreach ($personData as $field) {\n $q->orWhere($field, 'like', \"%{$searchQuery}%\");\n }\n })->get();\n if(count($persons)) {\n foreach ($persons as $key => $value) {\n $q->orWhere('people_id', $value->id);\n }\n }\n if(count($persons)) {\n foreach ($persons as $key => $value) {\n $q->orWhere('id_titular_persona', $value->id);\n }\n }\n\n $transactionTypes = $this->transactionTypeModel->query()->where('description','like', \"%{$searchQuery}%\")->get();\n if(count($transactionTypes)) {\n foreach ($transactionTypes as $key => $value) {\n $q->orWhere('transaction_type_id', $value->id);\n }\n }\n })->orderBy('created', 'DESC')->paginate(8);\n }\n foreach ($search as $key => $value) {\n $search[$key]->number_sale_price = number_format((float)$search[$key]->number_sale_price,2);\n }\n return $search;\n }",
"private function query(){\n $source_table_obj = 'objekt';\n $source_table_obj_obj = 'objekt_objekt';\n $source_table_obj_rub = 'obj_rubriik';\n\n $query = Database::getConnection('default', 'legacy_saurus')\n ->select($source_table_obj,'o')\n ->fields('o', array('objekt_id', 'friendly_url', 'count', 'pealkiri', 'tyyp_id', 'author', 'on_avaldatud', 'keel', 'aeg', 'created_user_id', 'is_hided_in_menu'));\n $query->innerJoin($source_table_obj_obj, 'o_rel', 'o_rel.objekt_id = o.objekt_id');\n $query->leftJoin($source_table_obj, 'parents', 'parents.objekt_id = o_rel.parent_id');\n $query->addField('o_rel', 'parent_id');\n $query->addField('parents', 'pealkiri', 'parent_name');\n $query->condition('o.tyyp_id', '1','=');\n $query->condition('o.keel', '0', '=');\n $query->orderBy('parent_id', 'ASC');\n return $query;\n }",
"abstract protected function filterQuery(Query $q);",
"function filterObject()\n\t{\n\t\t$this->questionsObject();\n\t}",
"public function search_2()\n\t{\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\t\t\n\t\tif($this->responsable != ''){\n\t\t\t$criteria->addCondition(\"responsable in (select id from empleados where nombre_completo ilike '%\".$this->responsable.\"%')\");\n\t\t}\n\t\t$criteria->compare('id',$this->id);\n\t\t$criteria->compare('LOWER(nombre)',strtolower($this->nombre),true);\n\t\t//$criteria->compare('responsable',$this->responsable,true);\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function filterCandidate($attributes) {\r\n\t\t$paginate = $attributes['paginate'];\r\n\t\treturn $this->model->leftJoin('agency_staff', 'agency_staff.staff_id', '=', \"staff.id\")->where(\"agency_staff.staff_id\", null)\r\n\t\t->filter($attributes)->with(['user', 'staffJobs' => function ($query) use ($attributes) {\r\n \t$query->where('job_id', $attributes['job_id']);\r\n \t}])->select('staff.*')->paginate($paginate);\r\n\t}",
"public function filterByUser(int $id);",
"public function searchPrint()\n {\n // should not be searched.\n\n $criteria=new CDbCriteria;\n\t\t$criteria->compare('jenisnapza_id',$this->jenisnapza_id);\n\t\t$criteria->compare('LOWER(jenisnapza_nama)',strtolower($this->jenisnapza_nama),true);\n\t\t$criteria->compare('LOWER(jenisnapza_desc)',strtolower($this->jenisnapza_desc),true);\n\t\t//$criteria->compare('jenisnapza_aktif',$this->jenisnapza_aktif);\n // Klo limit lebih kecil dari nol itu berarti ga ada limit \n $criteria->limit=-1; \n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n 'pagination'=>false,\n ));\n }",
"function Query_Filter()\r\n {\r\n $sql = \"select cod_materia , descricao_materia from materia where 1=1 \";\r\n if ( $this->getcod_materia() != \"\" ) \r\n $sql = $sql . \" and cod_materia = \".$this->getcod_materia();\r\n if ( $this->getdescrica_materia() != \"\" ) \r\n $sql = $sql . \" and descrica_materia like '%\".$this->getdescrica_materia().\"%' \";\r\n\r\n $result = mysql_query( $sql );\r\n return $result;\r\n }",
"public function searchPrint()\n {\n // should not be searched.\n\n $criteria=new CDbCriteria;\n\t\t$criteria->compare('tindakanrm_id',$this->tindakanrm_id);\n\t\t$criteria->compare('jenistindakanrm_id',$this->jenistindakanrm_id);\n\t\t$criteria->compare('daftartindakan_id',$this->daftartindakan_id);\n\t\t$criteria->compare('LOWER(tindakanrm_nama)',strtolower($this->tindakanrm_nama),true);\n\t\t$criteria->compare('LOWER(tindakanrm_namalainnya)',strtolower($this->tindakanrm_namalainnya),true);\n\t\t$criteria->compare('tindakanrm_aktif',$this->tindakanrm_aktif);\n // Klo limit lebih kecil dari nol itu berarti ga ada limit \n $criteria->limit=-1; \n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n 'pagination'=>false,\n ));\n }",
"public static function filtroAndPaginacion($name){\n\n return Municipio::nombre($name)\n ->join('departamento', 'municipio.id_departamento', '=', 'departamento.id')\n ->select('municipio.*', 'departamento.nom_departamento')\n ->orderBy('municipio.id', 'asc')->paginate(15);\n }",
"public function searchPrint()\n {\n // should not be searched.\n\n $criteria=new CDbCriteria;\n\t\t$criteria->compare('obatalkes_id',$this->obatalkes_id);\n\t\t$criteria->compare('supplier_id',$this->supplier_id);\n\t\t$criteria->compare('obatsupplier_id',$this->obatsupplier_id);\n\t\t$criteria->compare('satuankecil_id',$this->satuankecil_id);\n\t\t$criteria->compare('satuanbesar_id',$this->satuanbesar_id);\n\t\t$criteria->compare('hargabelibesar',$this->hargabelibesar);\n\t\t$criteria->compare('diskon_persen',$this->diskon_persen);\n\t\t$criteria->compare('hargabelikecil',$this->hargabelikecil);\n\t\t$criteria->compare('ppn_persen',$this->ppn_persen);\n // Klo limit lebih kecil dari nol itu berarti ga ada limit \n $criteria->limit=-1; \n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n 'pagination'=>false,\n ));\n }",
"public function Opordpag_Nomina() {\n\n $this->c = new Criteria();\n $this->c->addSelectColumn(' distinct((CASE when' . NphojintPeer::CEDEMP . 'is null THEN' . NpnominaPeer::NOMNOM . 'else' . NphojintPeer::NOMEMP . '||(||' . NpnominaPeer::NOMNOM . 'END)) as NOMNOM');\n $this->c->addSelectColumn(NpcienomPeer::CODNOM);\n //$this->c->addSelectColumn(NpnominaPeer::NOMNOM);\n $this->c->addSelectColumn(NpcienomPeer::CODCON);\n $this->c->addSelectColumn(NpcienomPeer::FECNOM);\n $this->c->addSelectColumn(NpcienomPeer::CODPRE);\n $this->c->addSelectColumn(NpcienomPeer::CODCTA);\n $this->c->addSelectColumn(NpcienomPeer::MONTO);\n $this->c->addSelectColumn(NpcienomPeer::ASIDED);\n $this->c->addSelectColumn(NpcienomPeer::CODTIPGAS);\n $this->c->addSelectColumn(NpcienomPeer::CANTIDAD);\n $this->c->addSelectColumn(NpcienomPeer::CODBAN);\n $this->c->addSelectColumn(NpcienomPeer::ESPECIAL);\n $this->c->addSelectColumn(NpcienomPeer::CODNOMESP);\n $this->c->addSelectColumn(NpcienomPeer::NOMNOMESP);\n $this->c->addSelectColumn(NpcienomPeer::ID);\n $this->c->addJoin(NpcienomPeer::CODBAN, NphojintPeer::CEDEMP, Criteria::LEFT_JOIN);\n $sub = $this->c->getNewCriterion(NpcienomPeer::ASIDED, 'P', Criteria::NOT_EQUAL);\n $sub->addJoin($this->c->getNewCriterion(NpcienomPeer::CODNOM, NpnominaPeer::CODNOM));\n $this->c->add($sub);\n //$this->c->addJoin(NpcienomPeer::ASIDED,'P',Criteria::NOT_EQUAL);\n //$this->c->addJoin(NpcienomPeer::CODNOM,NpnominaPeer::CODNOM);\n //$this->c->addAscendingOrderByColumn(NpnominaPeer::NOMNOM);\n //$this->c->addAscendingOrderByColumn(NpcienomPeer::FECNOM);\n\n $this->columnas = array(//NpnominaPeer::NOMNOM => 'Descripción',\n NpcienomPeer::CODNOM => 'Código de la Nomina', NpcienomPeer::FECNOM => 'Fecha', NpcienomPeer::CODTIPGAS => 'Gasto', NpcienomPeer::CODBAN => 'Banco');\n }",
"public function childQuery(){\n return ImportCargamasivadet::find()->\n where(['cargamasiva_id' =>$this->id]);\n }",
"public function searchInfoJualResep()\n {\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n $criteria->select = array('jenispenjualan','no_rekam_medik','namadepan','nama_pasien','nama_bin','tanggal_lahir',\n 'noresep','totharganetto','totalhargajual','instalasiasal_nama','ruanganasal_nama','reseptur_id',\n 'no_pendaftaran','tglpenjualan');\n $criteria->group = 'jenispenjualan, no_rekam_medik, namadepan, nama_pasien, nama_bin, tanggal_lahir, noresep, totharganetto,\n totalhargajual, instalasiasal_nama, ruanganasal_nama, reseptur_id, no_pendaftaran, tglpenjualan';\n $criteria->order = 'reseptur_id';\n $criteria->addBetweenCondition('DATE(tglpenjualan)', $this->tgl_awal, $this->tgl_akhir);\n\t\t$criteria->compare('LOWER(jenispenjualan)',strtolower($this->jenispenjualan),true);\n\t\t$criteria->compare('LOWER(no_rekam_medik)',strtolower($this->no_rekam_medik),true);\n\t\t$criteria->compare('LOWER(namadepan)',strtolower($this->namadepan),true);\n\t\t$criteria->compare('LOWER(nama_pasien)',strtolower($this->nama_pasien),true);\n\t\t$criteria->compare('LOWER(nama_bin)',strtolower($this->nama_bin),true);\n\t\t$criteria->compare('LOWER(tanggal_lahir)',strtolower($this->tanggal_lahir),true);\n\t\t$criteria->compare('LOWER(noresep)',strtolower($this->noresep),true);\n\t\t$criteria->compare('totharganetto',$this->totharganetto);\n\t\t$criteria->compare('totalhargajual',$this->totalhargajual);\n\t\t$criteria->compare('LOWER(instalasiasal_nama)',strtolower($this->instalasiasal_nama),true);\n\t\t$criteria->compare('LOWER(ruanganasal_nama)',strtolower($this->ruanganasal_nama),true);\n\t\tif(!empty($this->reseptur_id)){\n\t\t\t$criteria->addCondition(\"reseptur_id = \".$this->reseptur_id);\t\t\t\t\t\t\n\t\t}\n\t\tif(!empty($this->pasienadmisi_id)){\n\t\t\t$criteria->addCondition(\"pasienadmisi_id = \".$this->pasienadmisi_id);\t\t\t\t\t\t\n\t\t}\n\t\tif(!empty($this->pendaftaran_id)){\n\t\t\t$criteria->addCondition(\"pendaftaran_id = \".$this->pendaftaran_id);\t\t\t\t\t\t\n\t\t}\n \n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n }",
"public function search() {\n // @todo Please modify the following code to remove attributes that should not be searched.\n if (Yii::app()->user->getLevel() == 2) {\n $criteria = new CDbCriteria(array\n (\n 'condition' => 'NIM=:NIM',\n 'params' => array(':NIM' => Yii::app()->user->name),\n ));\n } else {\n $criteria = new CDbCriteria();\n $criteria->join = 'INNER JOIN prd_sidangmaster sm ON t.IdSidang=sm.IdSidang INNER JOIN prd_jenissidang js ON js.IDJenisSidang=sm.IDJenisSidang';\n $criteria->order = 'js.NamaSidang';\n }\n $criteria->compare('js.IDJenisSidang', $this->IDJenisSidang);\n $criteria->compare('sm.status', $this->status);\n $criteria->compare('idPendaftaran', $this->idPendaftaran);\n $criteria->compare('Tanggal', $this->Tanggal, true);\n $criteria->compare('NIM', $this->NIM);\n $criteria->compare('js.IDJenisSidang', $this->IDJenisSidang);\n $criteria->compare('KodePembimbing1', $this->KodePembimbing1, true);\n $criteria->compare('KodePembimbing2', $this->KodePembimbing2, true);\n // $criteria->compare('IdSidang', $this->IdSidang, true);\n $criteria->compare('Judul', $this->Judul, true);\n\n return new CActiveDataProvider($this, array(\n 'criteria' => $criteria,\n ));\n }",
"public function search()\n\t{\n $loggedResponsable=Yii::app()->user->name;\n \n $practicaRespModel=DocenteresponsablepracticaHasConfiguracionpractica::model()->findAll('DocenteResponsablePractica_RutResponsable=?',array($loggedResponsable));\n \n $c2 = new CDbCriteria;\n $c2->alias = 'Planificacionclaseresponsable';\n foreach ($practicaRespModel as $txt) { \n $c2->compare('Planificacionclaseresponsable.ConfiguracionPractica_CodPractica', $txt->ConfiguracionPractica_CodPractica, true, 'OR');\n }\n \n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('CodPlanificacion',$this->CodPlanificacion);\n\t\t$criteria->compare('Estudiante_RutEstudiante',$this->Estudiante_RutEstudiante,true);\n\t\t$criteria->compare('CentroPractica_RBD',$this->CentroPractica_RBD);\n\t\t$criteria->compare('ProfesorGuiaCP_RutProfGuiaCP',$this->ProfesorGuiaCP_RutProfGuiaCP,true);\n\t\t$criteria->compare('Curso',$this->Curso,true);\n\t\t$criteria->compare('ConfiguracionPractica_CodPractica',$this->ConfiguracionPractica_CodPractica);\n\t\t$criteria->compare('Fecha',$this->Fecha,true);\n\t\t$criteria->compare('SesionInformada',$this->SesionInformada,true);\n\t\t$criteria->compare('Ejecutado',$this->Ejecutado,true);\n\t\t$criteria->compare('Supervisado',$this->Supervisado,true);\n\t\t$criteria->compare('ComentarioPlanificacion',$this->ComentarioPlanificacion,true);\n\t\t$criteria->compare('DocumentoPlanificacion',$this->DocumentoPlanificacion,true);\n \n $criteria->mergeWith($c2); // Merge $c2 into $c1\n \n $sort= new CSort();\n\t\t\n\t\t$_SESSION['datos_filtrados']=new CActiveDataProvider($this,array(\n\t\t'criteria'=>$criteria,\n\t\t'sort'=>$sort,\n\t\t'pagination'=>false\n\t\t));\n\n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n\t\t));\n\t}",
"public function filter(\\Magento\\Framework\\DataObject $params);",
"public function searchPrint()\n {\n // should not be searched.\n\n $criteria=new CDbCriteria;\n\t\t$criteria->compare('satuanbesar_id',$this->satuanbesar_id);\n\t\t$criteria->compare('LOWER(satuanbesar_nama)',strtolower($this->satuanbesar_nama),true);\n\t\t$criteria->compare('LOWER(satuanbesar_namalain)',strtolower($this->satuanbesar_namalain),true);\n\t\t$criteria->compare('satuanbesar_aktif',$this->satuanbesar_aktif);\n $criteria->order='satuanbesar_nama';\n $criteria->limit=-1; \n\n return new CActiveDataProvider($this, array(\n 'criteria'=>$criteria,\n 'pagination'=>false,\n ));\n }"
] | [
"0.60063916",
"0.5684928",
"0.5648477",
"0.56377184",
"0.563339",
"0.5524044",
"0.5507668",
"0.5496391",
"0.5462877",
"0.54006124",
"0.5387587",
"0.5356701",
"0.53006005",
"0.51905614",
"0.51723224",
"0.5159887",
"0.5130932",
"0.51285124",
"0.5124005",
"0.5122381",
"0.5115506",
"0.5112716",
"0.5101394",
"0.50965023",
"0.5087403",
"0.50810874",
"0.5073898",
"0.50667626",
"0.5066726",
"0.5065485"
] | 0.5949359 | 1 |
/ | Get Perticular Roles by Id | public function getRolesbyId($id)
{
$Roleslist = Roles::find($id);
if (empty($Roleslist)) {
try {
// success
} catch (\Exception $e) {
throw new RoleException('Roles not found', 40400000);
}
}
return $Roleslist;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getWithRoles($id);",
"public function getListAccountWithIDRole($id);",
"public function get_role($id) {\n\t\t$this->db->join($this->tables['role_permissions'], $this->tables['role_permissions'] . '.role_id = ' . $this->tables['roles'] . '.role_id');\n\t\t$this->db->join($this->tables['permissions'], $this->tables['permissions'] . '.perm_id = ' . $this->tables['role_permissions'] . '.perm_id');\n\t\treturn $this->db->get_where($this->tables['roles'], array($this->tables['roles'] . '.role_id' => $id))->result_array();\n\t}",
"public function getPermissionRoleByRoleID($id){\n return DB::table('permission_role')->where('permission_role.role_id', $id)\n ->pluck('permission_role.permission_id', 'permission_role.permission_id')->all();\n }",
"public function show($id)\n {\n return Role::find($id);\n }",
"public function show($id)\n {\n return Role::find($id);\n }",
"public function findRoleById($id)\n {\n return $this->repoRole->find($id);\n }",
"public function get_role($id)\n {\n return $this->db->select('name')->from('roles')->where('id',$id)->get()->row()->name;\n }",
"function get_by_id() {\n $id = (isset($_REQUEST['ro_idroles'])) ? $_REQUEST['ro_idroles'] : '';\n $result = $this->app_roles_model->get_by_id($id);\n echo json_encode($result);\n }",
"public function getRolesUser($id){\n $roles = DB::table('roles')\n ->join('permissionsrole','permissionsrole.roles_id','roles.id')\n ->join('permissions','permissions.id','permissionsrole.permissions_id')\n ->where('roles.id','=',$id)\n ->get();\n return response()->json($roles,200);\n }",
"function get_role($role_id){\n $result = $this->cosi_db->get_where(\"roles\",\n array(\n \"role_id\"=>$role_id\n ));\n foreach($result->result() as $r){\n return $r;\n }\n }",
"public function getRoleById($id)\n {\n $this->db->setStatement(\"SELECT * FROM t:benutzer_typen WHERE Typ_Id = :id \");\n $this->db->bindParameter(\"id\", \"i\", $id);\n return $this->db->pselect1();\n }",
"static function get($id)\n {\n global $user;\n\n $mdb2 = getConnection();\n\n $sql = \"select id, name, description, rank, rights, status from tt_roles\n where id = $id and group_id = \".$user->getGroup().\" and (status = 0 or status = 1)\";\n $res = $mdb2->query($sql);\n\n if (!is_a($res, 'PEAR_Error')) {\n $val = $res->fetchRow();\n\t if ($val['id'] != '') {\n return $val;\n } else\n return false;\n }\n return false;\n }",
"function get_roles() {\n\t\t\n\t\t$this->db->where(\"id > \",0);\n\t\treturn $this->db->get(\"roles\")->result();\n\t}",
"function getGuildMemberRoles($id) {\r\n $guildMember = getGuildMember($id);\r\n return $guildMember->roles;\r\n}",
"public function find($id)\n {\n return Role::findById($id);\n }",
"public function edit($id)\n {\n $role = UserRole::where('id',$id)->first();\n return [$role];\n }",
"public static function getUserRole($id)\n\t{\n\t\t$get_user_role = DB::table('user')->join('role', 'user.role_id', '=', 'role.id')->where('user.id', '=', $id)\n\t\t->get(array('role.role_name'));\n\t\n\t\treturn $get_user_role;\n\t}",
"function get_single_role($id) {\n\t\t\n\t\t$this->db->where('id', $id);\n\t\t$query = $this->db->get('roles');\n\t\t$result = $query->row();\n\t\t\n\t\treturn $result;\n\t\t\n\t}",
"public function get_roles();",
"public function roleById($id)\n {\n $user = User::find($id);\n foreach ($user->roles as $role){\n $roleName = $role->name;\n }\n return $roleName;\n }",
"public function getRoleId ();",
"public function show($id)\n {\n $role = Role::find($id);\n\n return $role;\n }",
"public function getListAccWithContractIDrole($id);",
"public function getRolesShow($id)\n {\n $role = Role::find($id);\n\n $role['permissions'] = $role\n ->permissions()\n ->select(['permissions.name', 'permissions.id'])\n ->get();\n\n return response()->success($role);\n }",
"public function get_user_roles($id) {\n\t\t$this->db->join('roles', \"{$this->tables['roles']}.role_id = {$this->tables['user_roles']}.role_id\");\n\t\t$result = $this->db->get_where($this->tables['user_roles'], array('user_id' => $id));\n\t\treturn $result->result_array();\n\t}",
"public function show($id)\n {\n\n return $this->roleRepository->find($id);\n\n }",
"public function getRoleId();",
"public function getRoleId();",
"public function getRoles();"
] | [
"0.86612934",
"0.78500134",
"0.78471863",
"0.7660119",
"0.7657256",
"0.7657256",
"0.7595519",
"0.7582344",
"0.7578953",
"0.75690055",
"0.7568098",
"0.7539779",
"0.7534806",
"0.7513959",
"0.75115466",
"0.74682134",
"0.7428059",
"0.740638",
"0.7354461",
"0.73259884",
"0.73106754",
"0.72623044",
"0.7260932",
"0.72566384",
"0.72250473",
"0.72210956",
"0.7214393",
"0.7209891",
"0.7209891",
"0.7192963"
] | 0.8013156 | 1 |
Inserts the given node into the current one before the reference node | function insertBefore (Node $child, Node $reference)
{
//Attributes can be inserted
if ($child instanceof Attr) {
throw new DomException("Node cannot be inserted at the specified point in the hierarchy");
}
//If the node to add is a document fragment insert its child nodes
//instead of it and remove them from the fragment
if ($child->nodeType === 11) {
$i = $child->childNodes->length;
while ($i) {
$docChild = $child->removeChild($child->childNodes[0]);
$this->insertBefore($docChild, $reference);
$i--;
}
return $child;
}
//See if the current node contains the reference node
$index = $this->_getChildNodeIndex($reference);
//If the reference node is not contained into the current one
//throw an exception
if ($index === null) {
throw new DomException("Node was not found");
} else {
//Remove the child from its parent node before continue
if ($child->parentNode) {
$child->parentNode->removeChild($child);
}
$child->parentNode = $this;
$this->childNodes->_addNodeAt($child, $index);
}
return $child;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function insertBefore(&$child, $refChild = null) {\n // Not implemented yet...\n }",
"function insertBefore($reference, &$object) {\n // Get the index added of the array.\n $index = count($this->children);\n\n // Give the child the id.\n $object->id = $index;\n\n // Assign the object.\n $this->children[] = &$object;\n\n // Check if the reference object has an id.\n if (isset($reference->id)) {\n // The reference ID is the index.\n $key = array_search($reference->id, $this->childIndex);\n\n if ($key !== false) {\n // Rebuilt the array.\n $array_left = array_slice($this->childIndex, 0, $key);\n $array_right = array_slice($this->childIndex, $key);\n\n // Add the object key, then append the right side of the array.\n array_push($array_left, $index);\n\n // Merge the array back together.\n $this->childIndex = array_merge($array_left, $array_right);\n }\n }\n }",
"public function testInsertNodeBefore() {\n $parent = $this->nestedSet->getNode(new NodeKey(6, 1));\n $childNodeKey = new NodeKey(14, 1);\n\n $newNode = $this->nestedSet->addNodeBefore($parent, $childNodeKey);\n\n // Should be inserted below 6 with depth 4.\n $this->assertEquals(6, $newNode->getLeft());\n $this->assertEquals(7, $newNode->getRight());\n $this->assertEquals(3, $newNode->getDepth());\n\n // Parent node right should have incremented.\n $newParent = $this->nestedSet->getNode(new NodeKey(4, 1));\n $this->assertEquals(3, $newParent->getLeft());\n $this->assertEquals(10, $newParent->getRight());\n }",
"public function insertBeforeSpecificNode(Node $node, Node $target): void;",
"public function insertAtHead(Node $node): void;",
"public function appendBefore($newNode, $refnode)\r\n {\r\n if (is_array($newNode))\r\n {\r\n foreach ($newNode as $node)\r\n {\r\n $this->appendBefore($node, $refnode);\r\n }\r\n\r\n return $this;\r\n }\r\n else\r\n {\r\n return $this->insertBefore($newNode, $refnode);\r\n }\r\n }",
"function prepend(&$node)\n\t\t{\n\t\t\t//if list is empty\n\t\t\tif ($this->firstNode == NULL)\n\t\t\t{\n\t\t\t\t//update list variables\n\t\t\t\t$this->firstNode = $node;\n\t\t\t\t$this->lastNode = $node;\n\t\t\t\t$this->nodeCount = 1;\n\t\t\t}\n\t\t\t//list is not empty\n\t\t\telse\n\t\t\t{\n\t\t\t\t//reassign firstNode\n\t\t\t\t$this->firstNode->prevNode = $node;\n\t\t\t\t$node->nextNode = $this->firstNode;\n\t\t\t\t$this->firstNode = &$node;\n\t\t\t\t$this->nodeCount++;\n\t\t\t}\t\n\t\t}",
"public function testInsertNodeAfter() {\n $parent = $this->nestedSet->getNode(new NodeKey(5, 1));\n $childNodeKey = new NodeKey(15, 1);\n\n $newNode = $this->nestedSet->addNodeAfter($parent, $childNodeKey);\n\n // Should be inserted below 6 with depth 4.\n $this->assertEquals(6, $newNode->getLeft());\n $this->assertEquals(7, $newNode->getRight());\n $this->assertEquals(3, $newNode->getDepth());\n\n // Parent node right should have incremented.\n $newParent = $this->nestedSet->getNode(new NodeKey(4, 1));\n $this->assertEquals(3, $newParent->getLeft());\n $this->assertEquals(10, $newParent->getRight());\n }",
"public function testMoveSubTreeBefore() {\n\n $target = $this->nestedSet->getNode(new NodeKey(4, 1));\n $nodeKey = new NodeKey(7, 1);\n $node = $this->nestedSet->getNode($nodeKey);\n\n $this->nestedSet->moveSubTreeBefore($target, $node);\n $this->assertNodeMovedBefore();\n\n $node = $this->nestedSet->getNode(new NodeKey(7, 1));\n // Check node is in new position.\n $node = $this->nestedSet->getNode($nodeKey);\n\n $this->nestedSet->moveSubTreeBefore($target, $node);\n $this->assertNodeMovedBefore();\n }",
"public function insertAsPrevSiblingOf($node) {\n if ($this->isInTree()) {\n throw new Exception('Oject must not already be in the tree to be inserted. Use the moveToFirstChildOf() instead.');\n }\n\n $left = $node->getLeftValue();\n\n // Update node properties\n $this->setLeftValue($left);\n $this->setRightValue($left + 1);\n $this->setLevelValue($node->getLevelValue());\n $scope = $node->getScopeValue();\n $this->setScopeValue($scope);\n\n /** @var \\Flywheel\\Model\\ActiveRecord $owner */\n $owner = $this->getOwner();\n if (!$owner->validate()) {//check validate before save\n return $owner;\n }\n\n $this->nestedSetQueries []= array(\n 'callable' => array($this, 'makeRoomForLeaf'),\n 'arguments' => array($left, $scope)\n );\n\n $owner->save();\n $node->reload();\n\n return $this->getOwner();\n }",
"public function insertBefore($data, $query)\n {\n $newNode = new ListNode($data);\n\n if ($this->_firstNode) {\n $previous = null;\n $currentNode = $this->_firstNode;\n\n while ($currentNode !== null) {\n if ($currentNode->data == $query) {\n $newNode->next = $currentNode;\n $currentNode->previous = $newNode;\n $previous->next = $newNode;\n $newNode->previous = $previous;\n $this->_totalNode++;\n break;\n }\n $previous = $currentNode;\n $currentNode = $currentNode->next;\n }\n }\n }",
"public function moveToLeftOf($node);",
"function insertAfter($reference, &$object) {\n // Get the index added of the array.\n $index = count($this->children);\n\n // Give the child the id.\n $object->id = $index;\n\n // Assign the object.\n $this->children[] = &$object;\n\n // Check if the reference object has an id.\n if (isset($reference->id)) {\n // The reference ID is the index.\n $key = array_search($reference->id, $this->childIndex);\n\n if ($key !== false) {\n // Rebuilt the array.\n $array_left = array_slice($this->childIndex, 0, $key + 1);\n $array_right = array_slice($this->childIndex, $key + 1);\n\n // Add the object key, then append the right side of the array.\n array_push($array_left, $index);\n\n // Merge the array back together.\n $this->childIndex = array_merge($array_left, $array_right);\n }\n }\n }",
"function insertNodeInList(&$newNode, &$nodeAtIndex){ \n $previousNode = &$nodeAtIndex->getPrevious(); \n \n $newNode->setPrevious(&$previousNode); \n $newNode->setNext(&$nodeAtIndex); \n $nodeAtIndex->setPrevious(&$newNode); \n $previousNode->setNext(&$newNode); \n }",
"public function prepend($data)\n {\n //make head node if null\n if ($this->head == null) {\n $this->head = new Node($data);\n return; \n }\n\n //make new node, make its next pointer current head then make current head new node \n $newHead = new Node($data);\n $newHead->next = $this->head;\n $this->head = $newHead;\n \n return;\n }",
"public function testInsertNodeBelowWithExistingChildren() {\n\n $parentNodeKey = new NodeKey(3, 1);\n $parent = $this->nestedSet->getNode($parentNodeKey);\n $childNodeKey = new NodeKey(12, 1);\n\n $newNode = $this->nestedSet->addNodeBelow($parent, $childNodeKey);\n\n // Should be inserted in right-most spot.\n $this->assertEquals(21, $newNode->getLeft());\n $this->assertEquals(22, $newNode->getRight());\n\n // Parent node right should have incremented.\n $newParent = $this->nestedSet->getNode($parentNodeKey);\n $this->assertEquals(10, $newParent->getLeft());\n $this->assertEquals(23, $newParent->getRight());\n }",
"function insert_node_before($lft,$data){\n\t\tif(!$this->get_node($lft))\n\t\t\treturn false;\n\t\treturn $this->insert_node($lft,$data);\n\t}",
"public function testInsertNodeBelowWithNoChildren() {\n $target = $this->nestedSet->getNode(new NodeKey(6, 1));\n $nodeKey = new NodeKey(13, 1);\n\n $newNode = $this->nestedSet->addNodeBelow($target, $nodeKey);\n\n // Should be inserted below 6 with depth 4.\n $this->assertEquals(7, $newNode->getLeft());\n $this->assertEquals(8, $newNode->getRight());\n $this->assertEquals(4, $newNode->getDepth());\n\n // Parent node right should have incremented.\n $newParent = $this->nestedSet->getNode(new NodeKey(6, 1));\n $this->assertEquals(6, $newParent->getLeft());\n $this->assertEquals(9, $newParent->getRight());\n }",
"public function predecessor($node);",
"public function insertNode($item) \n { \n \t // callback function\n \t if($this->callbeforenode !== null)\n \t {\n if(call_user_func($this->callbeforenode,$this->lastNode->nodeNum+1) === false)\n return false;\n \t }\n \n \n $node = new ListNode($item);\n $node->nextNode = null;\n $node->prevNode = $this->lastNode;\n \n if($this->head !== null)\n $this->lastNode->nextNode = $node; \n else\n // set the head\n $this->head = $node;\n \n $this->lastNode = $node; \n $this->lastNode->nodeNum = ++$this->totNode;\n if($this->callafternode !== null)\n \t {\n call_user_func($this->callafternode,$this->lastNode);\n \t }\n \n return $this->lastNode->nodeNum;\n }",
"public function nodeInsert() {\n // we clear the cache for this specific node right after it's inserted, so\n // that its fields are available to pass to the back-end.\n cache_clear_all('field:node:' . $this->getNid(), 'cache_field', TRUE);\n }",
"public function insertNodeAt($n,$item) \n {\n \n if($n > $this->lastNode->nodeNum)\n \t {\n \t return $this->insertNode($item);\n \t }\n \t \n if($this->callbeforenode !== null)\n \t {\n if(call_user_func($this->callbeforenode,$n) === false)\n return false;\n \t }\n \n $node = new ListNode($item);\n \t $currnode= $this->getNode($n);\n \t \n \t if($n === 1)\n \t {\n \t $prevNode = null;\n \t $this->head = $node;\n \t }\n \t else\n \t {\n \t $prevNode = $this->getNode($n - 1);\n \t $prevNode->nextNode = $node;\n \t \n \t }\n \t \n \t // update pointers to previous and next nodes\n \t $node->nextNode = $currnode;\n \t $node->prevNode = $prevNode;\n \t $currnode->prevNode = $node;\n \t \n \t \n if($this->callafternode !== null)\n \t {\n call_user_func($this->callafternode,$node);\n \t }\n \n $this->renumList();\n return $node;\n }",
"protected function _addBefore($index, \\sli_tom\\util\\Node $element) {\n\t\tif (is_object($index)) {\n\t\t\t$index = $this->indexOf($index);\n\t\t}\n\t\tif (isset($this->_data[$index])) {\n\t\t\treturn $this->_insert($element, $index);\n\t\t}\n\t\treturn $this->addChild($element, $index);\n\t}",
"function insertNew(NodeEntity $node);",
"public function insertAsNextSiblingOf($node) {\n if ($this->isInTree()) {\n throw new Exception('Oject must not already be in the tree to be inserted. Use the moveToFirstChildOf() instead.');\n }\n\n $left = $node->getRightValue() + 1;\n\n // Update node properties\n $this->setLeftValue($left);\n $this->setRightValue($left + 1);\n $this->setLevelValue($node->getLevelValue());\n $scope = $node->getScopeValue();\n $this->setScopeValue($scope);\n\n /** @var \\Flywheel\\Model\\ActiveRecord $owner */\n $owner = $this->getOwner();\n if (!$owner->validate()) {//check validate before save\n return $owner;\n }\n\n $this->nestedSetQueries []= array(\n 'callable' => array($this, 'makeRoomForLeaf'),\n 'arguments' => array($left, $scope)\n );\n\n $owner->save();\n $node->reload();\n\n return $this->getOwner();\n }",
"public function insertAtFirst($data)\n {\n $newNode = new ListNode($data);\n if ($this->_firstNode === null) {\n $this->_firstNode = $newNode;\n $this->_lastNode = $newNode;\n } else {\n $currentFirstNode = $this->_firstNode;\n $this->_firstNode = $newNode;\n $newNode->next = $currentFirstNode;\n $currentFirstNode->previous = $newNode;\n }\n $this->_totalNode++;\n }",
"function createBeforeNode(&$node)\n\t{\n\t\t$this->node = $this->createPageContentNode();\n\t\t$this->par_node =& $this->dom->create_element(\"Paragraph\");\n\t\t$this->par_node =& $this->node->append_child($this->par_node);\n\t\t$this->par_node->set_attribute(\"Language\", \"\");\n\t\t$node->insert_before($this->node, $node);\n\t}",
"function insert_node_after($lft,$data){\n\t\t$node = $this->get_node($lft);\n\t\tif(!$node)\n\t\t\treturn false;\n\t\treturn $this->insert_node($node[$this->right_col] + 1,$data);\n\t}",
"protected function insertBefore($brother_id){\n\t\t\n\t\t$parentInfo = $this->getNodeInfo($this->_parent);\t\t\n\t\t$brotherInfo = $this->getNodeInfo($brother_id);\t\t\n\t\t$bind\t\t= array(\"lft\"\t\t=> new Zend_db_Expr('lft + 2'));\n\t\t$where\t\t= 'lft >= '. $brotherInfo['lft'];\n\t\t$this->_db->update($this->_name,$bind,$where);\n\t\t\n\t\t$bind\t\t= array(\"rgt\"\t\t=> new Zend_db_Expr('rgt + 2'));\n\t\t$where\t\t= 'rgt >= '. ($brotherInfo['lft'] + 1);\n\t\t$this->_db->update($this->_name,$bind,$where);\n\t\t\n\t\t$data = $this->_data;\t\t\n\t\t$data['parents']\t= $this->_parent;\n\t\t$data['lft'] \t\t= $brotherInfo['lft'];\n\t\t$data['rgt'] \t\t= $brotherInfo['lft'] + 1;\n\t\t$data['level'] \t\t= $parentInfo['level'] + 1;\n\t\t$this->_db->insert($this->_name, $data);\n\t}",
"function insertFirst(&$object) {\n // Get the index added of the array.\n $index = count($this->children);\n\n // Give the child the id.\n $object->id = $index;\n\n // Assign the object.\n $this->children[] = &$object;\n\n // Check if the reference object has an id.\n array_unshift($this->childIndex, $index);\n }"
] | [
"0.6980362",
"0.6838834",
"0.6765018",
"0.67322767",
"0.66059524",
"0.6460311",
"0.637722",
"0.62953556",
"0.62783587",
"0.6256681",
"0.61425924",
"0.60774374",
"0.6066759",
"0.6054053",
"0.6025117",
"0.594672",
"0.59041214",
"0.5888476",
"0.58733904",
"0.58606076",
"0.5834773",
"0.5807134",
"0.5803696",
"0.5699527",
"0.5659583",
"0.5623292",
"0.5599113",
"0.5593675",
"0.5593323",
"0.55698705"
] | 0.72027034 | 0 |
Removes the given child node from the current node | function removeChild (Node $child)
{
//See if the current node contains the node to remove
$index = $this->_getChildNodeIndex($child);
//If the reference node is not contained into the current one
//throw an exception
if ($index === null) {
throw new DomException("Node was not found");
} else {
$child->parentNode = null;
$this->childNodes->_removeNodeAt($index);
}
return $child;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function removeChild(NodeInterface $child);",
"public function removeChild(Node $child): ?Node;",
"function removeChild() {\n // Not implemented yet...\n }",
"public function removeChildKeepGrandchild(NodeInterface $child);",
"protected function removeOne(){\n\t\t$nodeInfo = $this->getNodeInfo($this->_id);\n\t\t$select = $this->_db->select()\n\t\t\t\t\t\t->from($this->_name)\n\t\t\t\t\t\t->where('parents = ?', $nodeInfo['id'], INTEGER)\n\t\t\t\t\t\t->order('lft ASC');\n\t\t$result\t= $this->_db->fetchAll($select);\n\t\tforeach ($result as $k => $v){\n\t\t\t$childIds[] = $v['id'];\n\t\t}\n\t\trsort($childIds);\n\t\t\n\t\tif(count($childIds)>0){\n\t\t\tforeach ($childIds as $key => $val){\n\t\t\t\t$id = $val;\n\t\t\t\t$parent = $nodeInfo['parents'];\n\t\t\t\t$options = array('position'=>'after','brother_id'=>$nodeInfo['id']);\n\t\t\t\t$this->moveNode($id, $parent, $options);\n\t\t\t}\n\t\t\t$this->removeNode($nodeInfo['id']);\n\t\t}\n\t}",
"function removeChild($name);",
"public function remove($node);",
"public function removeChild(int $index): NodeInterface;",
"final public function removeChild(CtkBuildable $node) {\n\t\tthrow new CakeException(sprintf('Unknown child %s', get_class($node)));\n\t}",
"public function removeItemChild($itemName, $childName);",
"public function removeChild($child_id){\n $db = Database::getInstance();\n\n // Prepare the query\n $stmt = $db->prepare('DELETE FROM Children WHERE child_id = ?');\n\n $stmt->bind_param('i',$child_id);\n\n $stmt->execute();\n\n $stmt->close();\n }",
"function removeLastChild() : void\r\n {\r\n array_pop($this->children);\r\n }",
"public function removeNode(NodeInterface $node);",
"public function removeLeagueNode(LeagueInterface $node);",
"abstract public function DelNode( $theIdentifier );",
"public function deleteChild($child)\n {\n $key = $this->_searchChild($child);\n if ($key !== false) {\n unset($this->_childTask[$key]);\n }\n }",
"public function removeFromTree() {\n\t\ttry {\n\t\t\t$this->config->getDOM()->documentElement->appendChild($this->getNode());\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\tthrow $e;\n\t\t}\n\t}",
"public function removeChild($id)\n\t{\n\t\t$key = array_search($this, $this->_parent->_children);\n\t\tunset($this->_parent->_children[$key]);\n\t}",
"public function removeChild(NodeInterface $child)\n {\n $this->children->removeElement($child);\n\n return $this;\n }",
"public function removeChild() {\n\n $args = func_get_args();\n $return = array();\n\n for ($n = 0; $n < sizeof($args); $n++) {\n if (is_array($args[$n]))\n array_splice($args, $n, 1, $args[$n]);\n\n $obj = $args[$n];\n\n if (( $index = array_search($obj, $this->children, TRUE) ) === FALSE)\n throw new SFException('Node is not a child of this BranchNode', ERR_REPORT_APP);\n\n $this->fireLocalEvent('onBeforeRemoveChild', array($obj));\n\n if ($obj instanceof BranchNode && $this->isRegistered)\n $obj->unregisterChildren();\n\n $obj->unlink();\n\n array_splice($this->children, $index, 1);\n\n if ($this->isRegistered)\n $this->rootApplication->registry->remove($obj);\n\n $obj->unbind();\n\n $this->fireLocalEvent('onAfterRemoveChild', array($obj));\n\n array_push($return, $obj);\n }\n\n return TRUE;\n }",
"public function remove()\n\t{\n\t\t$this->element->parentNode->removeChild($this->element);\n\t}",
"public function removeChildren() {\n if (count($this->children))\n return $this->removeChild($this->children);\n }",
"function &remove_child($server_id)\r\n\t{\r\n\t\tforeach(array_keys($this->children) as $key)\r\n\t\t{\r\n\t\t\t$child = &$this->children[$key];\r\n\t\t\tif ($child->get_server_id() == $server_id)\r\n\t\t\t{\r\n\t\t\t\tunset($this->children[$key]);\r\n\t\t\t\treturn $child;\r\n\t\t\t} \r\n\t\t}\r\n\t}",
"public function removeChild(Tx_MmForum_Domain_Model_Forum_Forum $child) {\n\t\t$this->children->detach($child);\n\t}",
"public function removeChildNode($node)\n {\n if (false === $node instanceof \\DOMNode) {\n throw new \\InvalidArgumentException('Unsupported node type');\n }\n\n $this->element->removeChild($node);\n }",
"public function removeChild(string $key)\n {\n unset($this->children[$key]);\n }",
"public function deleting($node)\n {\n $node->destroyDescendants();\n }",
"public function delete(Node $node): void;",
"function remove($reference) {\n if (isset($reference->id)) {\n // The reference ID is the index.\n $key = array_search($reference->id, $this->childIndex);\n\n if ($key !== false) {\n // Rebuilt the array.\n $array_left = array_slice($this->childIndex, 0, $key);\n $array_right = array_slice($this->childIndex, $key + 1);\n\n // Merge the array back together.\n $this->childIndex = array_merge($array_left, $array_right);\n\n // Unset the value.\n unset($this->children[$reference->id]);\n }\n }\n }",
"protected function removeChild(PhpcrNodeInterface $node)\n {\n $nodeParent = $node->getParent();\n if (null !== $nodeParent && $this !== $nodeParent) {\n // Wrong child?\n $context = new ExceptionContext(\n 'exception.outofscope',\n 'Child Node belongs to a different bag'\n );\n throw new OutOfScopeException($context);\n }\n\n if (!$this->hasChild($node)) {\n // Nothing to do\n return null;\n }\n\n $children = $this->getChildren();\n $removed = $children->remove($node->getNodename());\n\n if (null === $removed || $removed !== $node) {\n // Put it back\n $this->addChild($removed);\n\n // Wrong child in bag?\n $context = new ExceptionContext(\n 'exception.outofscope',\n 'Child Node belongs to a different bag. should never get this exception?'\n );\n throw new OutOfScopeException($context);\n }\n\n if (null !== $nodeParent) {\n $node->setParent(null);\n }\n\n return $removed;\n }"
] | [
"0.8018953",
"0.7750652",
"0.76060164",
"0.73041695",
"0.7247966",
"0.7056663",
"0.7052999",
"0.6988468",
"0.6961175",
"0.66534483",
"0.6602996",
"0.6545805",
"0.64143866",
"0.6358205",
"0.63170856",
"0.63029987",
"0.6270737",
"0.6257612",
"0.62386364",
"0.6237523",
"0.62372005",
"0.6208561",
"0.61928314",
"0.6170761",
"0.6155933",
"0.61418587",
"0.613663",
"0.61322296",
"0.60696447",
"0.6057799"
] | 0.7805012 | 1 |
Returns true if the given node is the same as the current one | function isSameNode ($node)
{
return $this === $node;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function isEqualNode (Node $node)\n\t{\n\t\tif ($this->nodeType !== $node->nodeType ||\n\t\t\t$this->nodeName !== $node->nodeName ||\n\t\t\t$this->localName !== $node->localName ||\n\t\t\t$this->prefix !== $node->prefix ||\n\t\t\t$this->namespaceURI !== $node->namespaceURI ||\n\t\t\t$this->nodeValue !== $node->nodeValue) {\n\t\t\treturn false;\n\t\t}\n\t\tif ($this->nodeType === 10 &&\n\t\t\t($this->publicId !== $node->publicId ||\n\t\t\t$this->systemId !== $node->systemId)) {\n\t\t\treturn false;\n\t\t}\n\t\t$nodeL = $node->attributes ? $node->attributes->length : null;\n\t\t$length = $this->attributes ? $this->attributes->length : null;\n\t\tif ($nodeL !== $length) {\n\t\t\treturn false;\n\t\t}\n\t\tif ($length) {\n\t\t\tfor ($i = 0; $i < $length; $i++) {\n\t\t\t\t$att = $this->attributes[$i];\n\t\t\t\t$ret = $node->attributes->getNamedItemNS(\n\t\t\t\t\t$att->namespaceURI,\n\t\t\t\t\t$att->localName\n\t\t\t\t);\n\t\t\t\tif (!$ret || ($ret->value !== $att->value)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t$nodeL = $node->childNodes->length;\n\t\t$length = $this->childNodes->length;\n\t\tif ($nodeL !== $length) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif ($length) {\n\t\t\tfor ($i = 0; $i < $length; $i++) {\n\t\t\t\t$el = $this->childNodes[$i];\n\t\t\t\tif (!$el->isEqualNode($node->childNodes[$i])) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"protected function mutatesNode(Node $node): bool\n {\n $name = (string) $node;\n\n return $name == 'foo';\n }",
"public function inSameDocument(\\DOMNode $node) {\n if ($node instanceof \\DOMDocument) {\n return $this->isSameNode($node);\n }\n return $this->isSameNode($node->ownerDocument);\n }",
"private function start($node): bool {\n $this->_current = $node;\n return TRUE;\n }",
"public function isNode() {}",
"public function originalIsEquivalent($key, $current)\n {\n if (!array_key_exists($key, $this->original)) {\n return false;\n }\n\n $original = $this->getOriginal($key);\n\n if ($current === $original) {\n return true;\n } elseif (is_null($current)) {\n return false;\n } elseif ($this->isDateAttribute($key)) {\n return $this->fromDateTime($current) ===\n $this->fromDateTime($original);\n } elseif ($this->hasCast($key)) {\n return $this->castAttribute($key, $current) ===\n $this->castAttribute($key, $original);\n } elseif ($this->isCassandraObject($current)) {\n return $this->valueFromCassandraObject($current) ===\n $this->valueFromCassandraObject($original);\n }\n\n return is_numeric($current) && is_numeric($original)\n && strcmp((string) $current, (string) $original) === 0;\n }",
"protected function originalIsEquivalent($key, $current)\n {\n if (!array_key_exists($key, $this->original)) {\n return false;\n }\n\n $original = $this->getOriginal($key);\n\n if ($current === $original) {\n return true;\n }\n elseif (is_null($current)) {\n return false;\n }\n\n return is_numeric($current) && is_numeric($original)\n && strcmp((string)$current, (string)$original) === 0;\n }",
"public function equals(NodeInterface $other);",
"public function equals(PageNode $other) {\n\t\treturn $other instanceof EditProjectPage &&\n\t\t\t$other->_project == $this->_project; \n\t}",
"function equals ($that) {\r\n\r\n\t if ($this == $that) {\r\n\t return true;\r\n\t }\r\n\r\n\t if (($that == NULL) or !(is_a($that, 'Resource')) or (is_a($that, 'BlankNode'))) {\r\n\t return false;\r\n\t }\r\n\r\n\t\tif ($this->getURI() == $that->getURI()) {\r\n\t return true;\r\n\t }\r\n\r\n\t return false;\r\n\t}",
"public function isNode($key);",
"public function isLinkableNode(): bool;",
"protected function isSameClass(TreeNode $node)\n {\n if (get_class($this) != get_class($node) and !preg_match('/^DoctrineProxies/', get_class($node))) {\n throw new TreeException('Nodes must be same entity: ' . get_class($this) . ' not equals ' . get_class($node));\n }\n }",
"function same($a, $b) {\r\n\t\treturn ($this->arc->expandPName ( $a ) == $this->arc->expandPName ( $b ));\r\n\t}",
"function lingotek_node_pushed($node) {\n return isset($node->lingotek['document_id']) && !empty($node->lingotek['document_id']);\n}",
"public function isEqual($newCoord) {\n if ($newCoord->x == $this->x && $newCoord->y == $this->y) {\n return true;\n }\n return false;\n }",
"public function find(Node $node): bool;",
"abstract public function isRoot(Node $node);",
"public function isEqual($new, $old);",
"public function hasParent() {\n\t\treturn ($this->node->parentNode->nodeName == $this->nodeName);\n\t}",
"private function isWritten($node) {\n $oidStr = $node->getOID()->__toString();\n return (isset($this->writtenNodes[$oidStr]));\n }",
"function contains (Node $node)\n\t{\n\t\t$pos = $this->compareDocumentPosition($node);\n\t\treturn $pos && ($pos & 16) ? true : false;\n\t}",
"function nstValidNode ($node)\n\t/* only checks, if L-value < R-value (does no db-query)*/\n\t{ return ($node['l'] < $node['r']);\n\t}",
"protected function treeHasSinglePath($node)\n {\n $num_children = count($node->children);\n if (($num_children > 1)) {\n return false;\n } else if (($num_children == 0)) {\n return true;\n } else {\n return true && $this->treeHasSinglePath($node->children[0]);\n }\n }",
"function isCurrentAncestor();",
"public function sameSession() {\n\t\treturn $this->storedSessionId() == $this->Session->id();\n\t}",
"protected function handleXmlReaderCurrentNode(DOMNode $node, $resultObj)\n {\n\n if( parent::handleXmlReaderCurrentNode($node, $resultObj ))\n return true;\n\n switch ($node->nodeName)\n {\n case \"tokenid\":\n $resultObj->setTransactionId( $node->textContent );\n return true;\n }\n\n return false;\n }",
"public function isConnected($newCoord) {\n Log::debug(\"Comparing new \" . $newCoord->x . \", \" . $newCoord->y . \" to current \" . $this->x . \", \" . $this->y);\n $result = true;\n if ($newCoord->x < 0 || $newCoord->y < 0 \n || $newCoord->x > 3 || $newCoord->y > 3) {\n Log::debug(\"coordinate not on board\");\n $result = false; //invalid move\n }\n\n $diffx = abs($newCoord->x - $this->x);\n $diffy = abs($newCoord->y - $this->y);\n\n if ($diffx > 1 || $diffy > 1 || ($diffx == 0 && $diffy == 0)) {\n $result = false;\n }\n return $result;\n }",
"protected function assertNodeMovedBefore() {\n // Check node is in new position.\n $node = $this->nestedSet->getNode(new NodeKey(7, 1));\n $this->assertEquals(3, $node->getLeft());\n $this->assertEquals(8, $node->getRight());\n $this->assertEquals(2, $node->getDepth());\n\n // Check children are in new position.\n $node = $this->nestedSet->getNode(new NodeKey(10, 1));\n $this->assertEquals(4, $node->getLeft());\n $this->assertEquals(5, $node->getRight());\n $this->assertEquals(3, $node->getDepth());\n\n $node = $this->nestedSet->getNode(new NodeKey(11, 1));\n $this->assertEquals(6, $node->getLeft());\n $this->assertEquals(7, $node->getRight());\n $this->assertEquals(3, $node->getDepth());\n\n // Check old parent is updated.\n $node = $this->nestedSet->getNode(new NodeKey(3, 1));\n $this->assertEquals(16, $node->getLeft());\n $this->assertEquals(21, $node->getRight());\n $this->assertEquals(1, $node->getDepth());\n }",
"public function isRootNode(): bool;"
] | [
"0.7000227",
"0.6804439",
"0.6314366",
"0.6236018",
"0.5993303",
"0.5959274",
"0.5889378",
"0.5821656",
"0.5819758",
"0.5769513",
"0.57447505",
"0.57224643",
"0.57126564",
"0.5696953",
"0.56848115",
"0.56469524",
"0.56310385",
"0.5598983",
"0.5592709",
"0.5564576",
"0.55540556",
"0.55169123",
"0.54958713",
"0.5472997",
"0.5418608",
"0.54004514",
"0.53953826",
"0.5386812",
"0.53778005",
"0.53603864"
] | 0.8284692 | 0 |
Returns true if the node has at least one attribute | function hasAttributes ()
{
return $this->attributes && $this->attributes->length > 0 ?
true :
false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function hasAttrs(){\n return $this->_has(10);\n }",
"public function hasAttribute(): bool;",
"public function hasAttribute($attrName);",
"public function testHasAttribute()\n {\n $root = new Node('<a href=\"#\" class=\"test\">Test</a>');\n $anchor = $root->getFirstChild();\n $this->assertTrue($anchor->hasAttribute('class'));\n $this->assertFalse($anchor->hasAttribute('title'));\n }",
"public function has_attribute() {\n $class = $this->class;\n $argv = func_get_args();\n $attribute = $argv[0];\n\n $attributes = $class::get_column_names();\n\n foreach ($attributes as $value) {\n if ($value == $attribute) {\n return true;\n }\n }\n\n return false;\n }",
"public function hasAttribute($key)\n {\n return array_key_exists($key, $this->attributes);\n }",
"public function hasAttribute($key)\n {\n return array_key_exists($key, $this->attributes);\n }",
"public function hasAttribute($name)\n {\n return $this->getElement()->hasAttribute($name);\n }",
"function hasAttribute($name)\n {\n return $this->sf1Token->hasAttribute($name);\n }",
"public function has_attr( $attr )\n\t{\n\t\treturn isset( $this->_attrs[$attr] );\n\t}",
"public function hasAttribute(string $key): bool\n {\n return array_key_exists($key, $this->attributes);\n }",
"public function isAttributeExists($path)\n {\n $attributes = $this->attributes;\n $path = explode('.',$path);\n if (isset($attributes[$path[0]])) {\n $current = $attributes[array_shift($path)];\n foreach ($path as $key) {\n if (isset($current[$key])) {\n $current = $current[$key];\n }\n else {\n return false;\n }\n }\n return true;\n }\n else {\n return false;\n }\n }",
"private function has_attribute($attribute) {\n\t // Will return true or false\n\t return array_key_exists($attribute, $this->attributes());\n\t}",
"public function hasAttribute($name): bool\n {\n return isset($this->attributes[$name]) || \\in_array($name, $this->attributes(), true);\n }",
"public function hasAttribute($attributeName);",
"public function hasAttribute($attributeName);",
"public function hasAttribute($name)\n {\n return $this->element->hasAttribute($name);\n }",
"public function hasAttribute($name, $type = DrupalAttributes::ATTRIBUTES) {\n return $this->getAttributes($type)->hasAttribute($name);\n }",
"public function hasAttr($attr)\n {\n return isset($this->attributes[$attr]);\n }",
"public function hasAttribute($name) {\n\t\t\treturn array_key_exists($name, $this->attributes);\n\t\t}",
"public function has_attribute($attribute)\n\t{\n\t\tif ($this->_attribute($name) !== null)\n\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t\t\n\t}",
"public function isEmpty(array $attributes){\n foreach($attributes as $value){\n \tif(!isset($value)){\n \t\treturn true;\n \t}\n }\n\n return false;\n}",
"public function hasAttribute($key)\n\t{\n\t\tif ($this->isMasquerading()) {\n\t\t\treturn array_key_exists($key, $this->_attributes);\n\t\t}\n\n\t\treturn phpCAS::hasAttribute($key);\n\t}",
"public function hasAttribute($key): bool;",
"public function hasAttribute($key): bool;",
"public function __isset($key)\n {\n return ((isset($this->attributes[$key]) && ! \\is_null($this->getAttribute($key))));\n }",
"public function hasAttribute($name)\n {\n return isset($this->attributes[$name]) || in_array($name, $this->attributes(), false);\n }",
"public static function has_attributes( $attr, $omit = array() ) {\n\t\tforeach ( $attr as $attribute => $value ) {\n\t\t\tif ( ! in_array( $attribute, $omit, true ) && ! empty( $value ) ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"public function isSetAttribute()\n {\n return !is_null($this->_fields['Attribute']['FieldValue']);\n }",
"public function has_attribute($attribute) {\n\t \t// Will return true or false\n\t \treturn array_key_exists($attribute, $this->attributes());\n\t}"
] | [
"0.76286155",
"0.73926824",
"0.7347998",
"0.7101185",
"0.6911342",
"0.67818934",
"0.67818934",
"0.6746742",
"0.67413586",
"0.67354316",
"0.6722277",
"0.6720457",
"0.66872853",
"0.665943",
"0.6658366",
"0.6658366",
"0.6649769",
"0.6626786",
"0.6602093",
"0.65953887",
"0.6593307",
"0.6588295",
"0.6579517",
"0.65733474",
"0.65733474",
"0.65481514",
"0.6534741",
"0.6524538",
"0.6519225",
"0.6519067"
] | 0.7888175 | 0 |
Returns true if the node has at least one child node | function hasChildNodes ()
{
return $this->childNodes->length > 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function hasChildren()\n {\n return $this->nodeCount() > 0;\n }",
"public function hasChildren()\n {\n // check the children size\n if (sizeof($this->getChildren()) == 0) {\n return false;\n }\n return true;\n }",
"function hasChildNodes() {\n return !is_null($this->childNodes);\n }",
"public function hasChildren()\n {\n return ! $this->children->isEmpty();\n }",
"public function hasChildren(): bool\n {\n return \\count($this->children) > 0;\n }",
"public final function hasChilds() {\n return !empty($this->childs);\n }",
"function hasChildren();",
"public function hasChildren() {\n\t\treturn !empty($this->children);\n\t}",
"public function hasChildren();",
"public function hasChildren();",
"public function hasChildren();",
"public function hasChildren()\n {\n return count($this->children) > 0;\n }",
"public function hasChildren()\n {\n return ($this->children->count() > 0);\n }",
"public function hasChildren() {\n\t\treturn !empty($this->_data);\n\t}",
"public function hasChildren()\n {\n return $this->current()->hasChildNodes();\n }",
"public function hasChildren(){\n\t\treturn $this->_getResource()->getChildrenAmount($this) > 0;\n\t}",
"public function hasChildren()\n {\n return (bool) $this->children()->count();\n }",
"public function hasChildren() {\n return (bool) count($this->_item->getChildren());\n }",
"public function has_children()\n\t\t{\n return (count( $this->children ) > 0);\n }",
"public function hasChildren()\n {\n $node = $this->current();\n\n return $node->getTree()->hasChildren($node);\n }",
"public function hasChildren() {\n return ($this->getRightValue() - $this->getLeftValue()) > 1;\n }",
"public function hasChildren()\n {\n return (bool) $this->children;\n }",
"function hasChildren()\n\t{\n\t\treturn false;\n\t}",
"public function hasChildren()\n\t{\n\t\treturn true;\n\t}",
"public function hasChildElements()\n {\n return false;\n }",
"public function hasChildren(): bool\n {\n if ($this->current() instanceof Zend_Ldap_Node) {\n return $this->current()->hasChildren();\n } else {\n return false;\n }\n }",
"protected function hasChildren($node)\n {\n return !empty($node['children']);\n }",
"public function hasChildren()\n {\n if (!isset($this->_children)) {\n $this->setChildren($this->_sitemap->root);\n }\n return count($this->_children) > 0;\n }",
"final public function hasChildren() {\n\t\treturn false;\n\t}",
"function __hasChild( &$child ) {\n if ( $child && count($child) > 0 ) {\n return true;\n }\n return false;\n }"
] | [
"0.82277226",
"0.8036029",
"0.7930679",
"0.79142374",
"0.7856515",
"0.7853473",
"0.78488505",
"0.7838204",
"0.7832218",
"0.7832218",
"0.7832218",
"0.7826757",
"0.78081137",
"0.7779041",
"0.7708101",
"0.7684141",
"0.76745445",
"0.76569515",
"0.76369286",
"0.7628913",
"0.75814724",
"0.7534958",
"0.7509298",
"0.7489325",
"0.74353844",
"0.74086434",
"0.74056816",
"0.7404509",
"0.7399091",
"0.73384434"
] | 0.8130398 | 1 |
Returns true if the given namespace is the default namespace on the current node or false if not. | function isDefaultNamespace ($ns)
{
switch ($this->nodeType) {
case 1:
if (!$this->prefix) {
return $this->namespaceURI === $ns;
}
if ($this->attributes->length) {
$xmlns = $this->attributes->getNamedItem("xmlns");
if ($xmlns !== null) {
return $xmlns === $ns;
}
}
if ($this->parentNode) {
return $this->parentNode->isDefaultNamespace($ns);
}
break;
case 9:
if ($this->documentElement) {
return $this->documentElement->isDefaultNamespace($ns);
}
break;
case 2:
if ($this->ownerElement) {
return $this->ownerElement->isDefaultNamespace($ns);
}
break;
case 3:
case 4:
case 5:
case 7:
case 8:
if ($this->parentNode) {
return $this->parentNode->isDefaultNamespace($ns);
}
break;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function isInDefaultNamespace($defaultNamespaceName)\n {\n return $this->_namespace === $defaultNamespaceName || $this->_namespace === null;\n }",
"public function inNamespace()\n {\n return ( $this->getNamespaceName() !== '' );\n }",
"public function hasNamespace()\n {\n return (null !== $this->namespace);\n }",
"public function isNamespaceEmpty( $iNamespaceId ) {\n\t\tif ( BsCore::checkAccessAdmission( 'wikiadmin' ) === false ) return true;\n\t\t$dbr = wfGetDB( DB_SLAVE );\n\t\t$res = $dbr->select(\n\t\t\t\t'page',\n\t\t\t\t'page_namespace',\n\t\t\t\tarray( 'page_namespace' => $iNamespaceId )\n\t\t);\n\t\tif ( $res ) {\n\t\t\treturn !$res->numRows();\n\t\t}\n\t\treturn false;\n\t}",
"public function hasNamespace(): bool\n {\n $namespacePtr = $this->file->findNext(\n [T_NAMESPACE],\n 0\n );\n\n return $namespacePtr !== -1;\n }",
"protected function __get_default_ns()\n\t{\n\t\treturn $this->document->documentElement->namespaceURI;\n\t}",
"function isNS($ns)\n\t{\n\t\tif(!isset($this->all_ns[$ns])) return FALSE;\n\t\treturn TRUE;\n\t}",
"public function isDefault(): bool\n {\n return $this->default;\n }",
"public function isDefault(): bool;",
"public function isDefault();",
"public function isDefault();",
"public function isDefault();",
"public function getNamespace()\n {\n return false;\n }",
"abstract protected function getDefaultNamespace(): string;",
"public function hasDefaultTranslation()\n {\n $default = $this->get('em')->getRepository(Translation::class)->findOneBy([]);\n\n return $default !== null ? true : false;\n }",
"public function getNamespace()\n {\n return $this->useNamespace ? $this->namespace : false;\n }",
"public function isDefaultTheme() {\n return ($this->_defaultTheme);\n }",
"public function isDefaultTemplate()\n {\n $theme = Yii::app()->themeManager->getTheme($this->themeName);\n\n if(!empty($theme))\n {\n if(!empty($this->widgetInfo->template_name))\n {\n $themeViewPath = $theme->getBasePath().DS.'views'.DS.'menus';\n if(file_exists($themeViewPath.DS.$this->widgetInfo->template_name))\n {\n return false;\n }\n }\n }\n\n return true;\n }",
"public function isDefault()\n {\n return $this->default;\n }",
"public function hasNamespaceId(){\n return $this->_has(4);\n }",
"public function isDefault() : bool;",
"public function isDefaultSection()\n {\n return $this->name === \"\";\n }",
"public function isDefault()\n {\n return (bool) $this->default;\n }",
"public function isDefault()\r\n {\r\n return $this->getDefault();\r\n }",
"public function isDefaultLanguage() {\n \treturn !$this->isTranslationOverlay(); \n }",
"public function hasOnlyDefaultValues()\n\t{\n\t\t\tif ($this->is_package !== false) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t// otherwise, everything was equal, so return TRUE\n\t\treturn true;\n\t}",
"public function setDefaultNamespace($namespaceName){ }",
"public function isDefault()\n\t{\n\t\treturn \\IPS\\Dispatcher::i()->application->directory == 'core' and \\IPS\\Dispatcher::i()->module->key == 'clubs';\n\t}",
"protected function __get_default_ns_prefix()\n\t{\n\t\treturn $this->document->documentElement->lookupPrefix($this->default_ns);\n\t}",
"private static function defaultNamespace()\n {\n return '\\\\'.trim(str_replace('/', '\\\\', self::$namespace), '\\\\');\n }"
] | [
"0.792836",
"0.6945176",
"0.68414384",
"0.63931537",
"0.62611634",
"0.62502027",
"0.62447757",
"0.6221685",
"0.62125325",
"0.61902094",
"0.61902094",
"0.61902094",
"0.61395025",
"0.61318207",
"0.6092882",
"0.6070112",
"0.6053276",
"0.6037549",
"0.5995495",
"0.59829295",
"0.59404856",
"0.59320635",
"0.5903121",
"0.58717847",
"0.5803378",
"0.5793336",
"0.57867616",
"0.5786054",
"0.57827777",
"0.57800174"
] | 0.85124606 | 0 |
Takes a prefix and returns the namespaceURI associated with it on the current node | function lookupNamespaceURI ($prefix)
{
switch ($this->nodeType) {
case 1:
if ($this->namespaceURI !== null &&
$this->prefix === $prefix) {
return $this->namespaceURI;
}
if ($this->attributes->length) {
foreach ($this->attributes as $at) {
if (($at->name === "xmlns" &&
!$prefix) ||
(preg_match("#^xmlns:(.*)$#", $at->name, $match) &&
$match[1] === $prefix)) {
if ($at->value) {
return $at->value;
} else {
return null;
}
}
}
}
if ($this->parentNode) {
return $this->parentNode->lookupNamespaceURI($prefix);
}
break;
case 9:
if ($this->documentElement) {
return $this->documentElement->lookupNamespaceURI($prefix);
}
break;
case 2:
if ($this->ownerElement) {
return $this->ownerElement->lookupNamespaceURI($prefix);
}
break;
case 3:
case 4:
case 5:
case 7:
case 8:
if ($this->parentNode) {
return $this->parentNode->lookupNamespaceURI($prefix);
}
break;
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getNamespaceURI($prefix) {\r\n\t $total = count($this->namespaceMap);\r\n\t $uri = $prefix; //in case uri can't be found, just send back prefix\r\n\t //should really generate an error, but worry about this later\r\n\t\t//reset($this->namespaceMap);\r\n\r\n\t for ($i = ($total - 1); $i >= 0; $i--) {\r\n\t $currMap =& $this->namespaceMap[$i];\r\n\r\n\t if (isset($currMap[$prefix])) {\r\n\t $uri = $currMap[$prefix];\r\n\t break;\r\n\t }\r\n\t }\r\n\r\n\t return $uri;\r\n\t}",
"public static function lookupNamespace($prefix)\n {\n return isset(self::$_namespaces[$prefix]) ?\n self::$_namespaces[$prefix] :\n $prefix;\n }",
"function lookupPrefix ($ns)\n\t{\n\t\tif (!$ns) {\n\t\t\treturn null;\n\t\t}\n\t\tswitch ($this->nodeType) {\n\t\t\tcase 1:\n\t\t\t\tif ($this->namespaceURI === $ns &&\n\t\t\t\t\t$this->prefix &&\n\t\t\t\t\t$this->lookupNamespaceURI($this->prefix) === $ns) {\n\t\t\t\t\treturn $this->prefix;\n\t\t\t\t}\n\t\t\t\tif ($this->attributes->length) {\n\t\t\t\t\tforeach ($this->attributes as $at) {\n\t\t\t\t\t\tif ($at->value === $ns &&\n\t\t\t\t\t\t\tpreg_match(\"#^xmlns:(.*)$#\", $at->name, $match) &&\n\t\t\t\t\t\t\t$this->lookupNamespaceURI($match[1]) === $ns) {\n\t\t\t\t\t\t\treturn $match[1];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ($this->parentNode) {\n\t\t\t\t\treturn $this->parentNode->lookupPrefix($prefix);\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\tif ($this->documentElement) {\n\t\t\t\t\treturn $this->documentElement->lookupPrefix($prefix);\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tif ($this->ownerElement) {\n\t\t\t\t\treturn $this->ownerElement->lookupPrefix($prefix);\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\tcase 4:\n\t\t\tcase 5:\n\t\t\tcase 7:\n\t\t\tcase 8:\n\t\t\t\tif ($this->parentNode) {\n\t\t\t\t\treturn $this->parentNode->lookupPrefix($prefix);\n\t\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\treturn null;\n\t}",
"protected function getNormalizedNamespace($prefix = '')\n {\n return Str::start(Str::lower(self::PACKAGE_NAME), $prefix);\n }",
"public function getNamespaceURI();",
"public static function getPrefixedUri($uri)\n {\n // Find the base URI of the ontology\n $pos = strripos($uri, \"#\");\n\n if ($pos === FALSE)\n {\n $pos = strripos($uri, \"/\");\n }\n\n if ($pos !== FALSE)\n {\n $pos++;\n }\n\n // Save the URI of the ontology\n $onto = substr($uri, 0, $pos);\n\n // Save the URI of the class or property passed in parameter\n $resource = substr($uri, $pos, strlen($uri) - $pos); \n \n foreach(get_class_vars('\\StructuredDynamics\\structwsf\\framework\\Namespaces') as $prefix => $u) \n { \n if($onto == Namespaces::$$prefix)\n {\n return($prefix.\":\".$resource);\n }\n }\n \n return($uri);\n }",
"public function createUriFromPrefix(string $prefix): string{\n \n if(empty($prefix)){ return false; }\n \n $res = \"\";\n \n $newValue = explode(':', $prefix);\n $newPrefix = $newValue[0];\n $newValue = $newValue[1];\n \n $prefixes = \\Drupal\\oeaw\\ConnData::$prefixesToChange;\n \n foreach ($prefixes as $key => $value){\n if($value == $newPrefix){\n $res = $key.$newValue;\n }\n } \n return $res;\n }",
"function getNamespaceURI()\r\n\t{\r\n\t\treturn $this->namespaceURI;\r\n\t}",
"public function addNamespace($prefix, $uri);",
"public function getPrefix() {\n return \"{$this->_name}://{$this->_container}/\";\n }",
"function getNamespace() {\r\n \t// Import Package Utility\r\n \tinclude_once(RDFAPI_INCLUDE_DIR.PACKAGE_UTILITY);\r\n\r\n \treturn RDFUtil::guessNamespace($this->uri);\r\n }",
"protected function __get_default_ns_prefix()\n\t{\n\t\treturn $this->document->documentElement->lookupPrefix($this->default_ns);\n\t}",
"public function getNS($prefix)\n {\n $this->checkRepository();\n\n if (empty($prefix)) {\n throw new \\Exception('Please supply a prefix.');\n }\n\n $request = new HTTP_Request2($this->dsn . '/repositories/' . $this->repository . '/namespaces/' . $prefix,\n HTTP_Request2::METHOD_GET);\n $request->setHeader('Accept: text/plain; charset=' . $this->acceptCharset);\n $request = $this->prepareRequest($request);\n $response = $request->send();\n\n if ($response->getStatus() != 200) {\n throw new \\Exception('Failed to run query, HTTP response error: ' . $response->getStatus());\n }\n\n\n return (string) $response->getBody();\n\n }",
"public function prefix($prefix)\n {\n $prefix = $prefix ?? '';\n\n $this->updatePrefixOnAction($prefix);\n\n $uri = rtrim($prefix, '/').'/'.ltrim($this->uri, '/');\n\n return $this->setUri($uri !== '/' ? trim($uri, '/') : $uri);\n }",
"function getPrefix();",
"public function getPrefix();",
"public function getPrefix();",
"public function getNamespace(): ?string\n {\n return $this->namespaceURI;\n }",
"public function registerLocalNamespace($prefix)\n {\n }",
"private function namespaceToPath($xmlNS)\n {\n $ns = $xmlNS;\n $ns = $this->expandNS($ns);\n\n if (preg_match('/urn:/', $ns)) {\n $ns = preg_replace('/-/', '_', $ns);\n $ns = preg_replace('/urn:/', '', $ns);\n $ns = preg_replace('/:/', DIRECTORY_SEPARATOR, $ns);\n }\n\n\n $matches = array();\n if (preg_match(\"#((http|https|ftp)://(\\S*?\\.\\S*?))(\\s|\\;|\\)|\\]|\\[|\\{|\\}|,|\\\"|'|:|\\<|$|\\.\\s)#\", $ns, $matches)) {\n $elements = explode(\"/\", $matches[3]);\n $domain = $elements[0];\n array_shift($elements);\n //print_r($domain.\"\\n\");\n $ns = implode(DIRECTORY_SEPARATOR, array_reverse(explode(\".\", $domain)));\n //$ns = preg_replace('/\\./', '\\\\', );\n //print $ns.\"\\n\";\n foreach ($elements as $key => $value) {\n if ($value != '') {\n $value = preg_replace('/[\\.|-]/', '_', $value);\n $ns .= DIRECTORY_SEPARATOR . $value;\n }\n }\n }\n\n $ns = explode(DIRECTORY_SEPARATOR, $ns);\n $i = 0;\n foreach ($ns as $elem) {\n if (preg_match('/^([0-9]+)(.*)$/', $elem)) {\n $ns[$i] = \"_\".$elem;\n }\n if (in_array($elem, $this->reservedWords)) {\n $ns[$i] = \"_\".$elem;\n }\n $i++;\n }\n $ns = implode(DIRECTORY_SEPARATOR, $ns);\n return $ns;\n }",
"public function getQualifiedName(): string\n {\n if ($this->prefix === null) {\n return $this->localName;\n }\n\n return $this->prefix . ':' . $this->localName;\n }",
"function getXmlName($usePrefix = true) {\n if ($usePrefix) {\n $prefix = 'tns:';\n } else {\n $prefix = '';\n }\n return $prefix . $this->getName();\n }",
"public function getNamespace() : string {\n return $this->ns;\n }",
"function getNSURI($ns)\n\t{\n\t\tif($this->isNS($ns) == FALSE) {\n\t\t\ttrigger_error(\"Unable to find $ns in registry\");\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn $this->all_ns[$ns]['priority_uri'];\n\t}",
"protected function _getPrefix()\n {\n $prefix = $this->param('prefix');\n if (!$prefix) {\n return '';\n }\n $parts = explode('/', $prefix);\n\n return implode('/', array_map([$this, '_camelize'], $parts));\n }",
"public function registerLocalNamespace($name_prefix) {}",
"public function prefix( $prefix );",
"public function registerNamespace($prefix, $namespace) {\n if ($this->_documentReference instanceOf Document &&\n $this->_documentReference->getNamespace($prefix) !== $namespace) {\n $this->_documentReference->registerNameSpace($prefix, $namespace);\n }\n return parent::registerNamespace($prefix, $namespace);\n }",
"protected function getGroupUri()\n\t{\n\t\treturn Arr::get($this->currentGroup(), 'prefix', '');\n\t}",
"public function getAbsoluteNamespace()\n {\n return $this->namespaces ? '\\\\' . $this->getNamespace() : null;\n }"
] | [
"0.8287535",
"0.71660703",
"0.7048931",
"0.694758",
"0.6897527",
"0.68572134",
"0.68429816",
"0.6829469",
"0.66553664",
"0.66493815",
"0.6603235",
"0.6557494",
"0.645253",
"0.6420608",
"0.6310335",
"0.6290584",
"0.6290584",
"0.62802154",
"0.62748814",
"0.6211441",
"0.6196046",
"0.6181274",
"0.61672133",
"0.6163258",
"0.6160893",
"0.61578804",
"0.61380297",
"0.6131232",
"0.6107638",
"0.6105081"
] | 0.8037927 | 1 |
Returns the prefix for the given namespaceURI on the current node | function lookupPrefix ($ns)
{
if (!$ns) {
return null;
}
switch ($this->nodeType) {
case 1:
if ($this->namespaceURI === $ns &&
$this->prefix &&
$this->lookupNamespaceURI($this->prefix) === $ns) {
return $this->prefix;
}
if ($this->attributes->length) {
foreach ($this->attributes as $at) {
if ($at->value === $ns &&
preg_match("#^xmlns:(.*)$#", $at->name, $match) &&
$this->lookupNamespaceURI($match[1]) === $ns) {
return $match[1];
}
}
}
if ($this->parentNode) {
return $this->parentNode->lookupPrefix($prefix);
}
break;
case 9:
if ($this->documentElement) {
return $this->documentElement->lookupPrefix($prefix);
}
break;
case 2:
if ($this->ownerElement) {
return $this->ownerElement->lookupPrefix($prefix);
}
break;
case 3:
case 4:
case 5:
case 7:
case 8:
if ($this->parentNode) {
return $this->parentNode->lookupPrefix($prefix);
}
break;
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function getPrefixedUri($uri)\n {\n // Find the base URI of the ontology\n $pos = strripos($uri, \"#\");\n\n if ($pos === FALSE)\n {\n $pos = strripos($uri, \"/\");\n }\n\n if ($pos !== FALSE)\n {\n $pos++;\n }\n\n // Save the URI of the ontology\n $onto = substr($uri, 0, $pos);\n\n // Save the URI of the class or property passed in parameter\n $resource = substr($uri, $pos, strlen($uri) - $pos); \n \n foreach(get_class_vars('\\StructuredDynamics\\structwsf\\framework\\Namespaces') as $prefix => $u) \n { \n if($onto == Namespaces::$$prefix)\n {\n return($prefix.\":\".$resource);\n }\n }\n \n return($uri);\n }",
"protected function __get_default_ns_prefix()\n\t{\n\t\treturn $this->document->documentElement->lookupPrefix($this->default_ns);\n\t}",
"function getNamespaceURI($prefix) {\r\n\t $total = count($this->namespaceMap);\r\n\t $uri = $prefix; //in case uri can't be found, just send back prefix\r\n\t //should really generate an error, but worry about this later\r\n\t\t//reset($this->namespaceMap);\r\n\r\n\t for ($i = ($total - 1); $i >= 0; $i--) {\r\n\t $currMap =& $this->namespaceMap[$i];\r\n\r\n\t if (isset($currMap[$prefix])) {\r\n\t $uri = $currMap[$prefix];\r\n\t break;\r\n\t }\r\n\t }\r\n\r\n\t return $uri;\r\n\t}",
"public function getPrefix();",
"public function getPrefix();",
"function lookupNamespaceURI ($prefix)\n\t{\n\t\tswitch ($this->nodeType) {\n\t\t\tcase 1:\n\t\t\t\tif ($this->namespaceURI !== null &&\n\t\t\t\t\t$this->prefix === $prefix) {\n\t\t\t\t\treturn $this->namespaceURI;\n\t\t\t\t}\n\t\t\t\tif ($this->attributes->length) {\n\t\t\t\t\tforeach ($this->attributes as $at) {\n\t\t\t\t\t\tif (($at->name === \"xmlns\" &&\n\t\t\t\t\t\t\t!$prefix) ||\n\t\t\t\t\t\t\t(preg_match(\"#^xmlns:(.*)$#\", $at->name, $match) &&\n\t\t\t\t\t\t\t$match[1] === $prefix)) {\n\t\t\t\t\t\t\tif ($at->value) {\n\t\t\t\t\t\t\t\treturn $at->value;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\treturn null;\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\tif ($this->parentNode) {\n\t\t\t\t\treturn $this->parentNode->lookupNamespaceURI($prefix);\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\tif ($this->documentElement) {\n\t\t\t\t\treturn $this->documentElement->lookupNamespaceURI($prefix);\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tif ($this->ownerElement) {\n\t\t\t\t\treturn $this->ownerElement->lookupNamespaceURI($prefix);\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\tcase 4:\n\t\t\tcase 5:\n\t\t\tcase 7:\n\t\t\tcase 8:\n\t\t\t\tif ($this->parentNode) {\n\t\t\t\t\treturn $this->parentNode->lookupNamespaceURI($prefix);\n\t\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\treturn null;\n\t}",
"function getPrefix();",
"protected function _getPrefix()\n {\n $prefix = $this->param('prefix');\n if (!$prefix) {\n return '';\n }\n $parts = explode('/', $prefix);\n\n return implode('/', array_map([$this, '_camelize'], $parts));\n }",
"public function getPrefix() {\n return \"{$this->_name}://{$this->_container}/\";\n }",
"public function getPrefix() {\n\t\treturn $this->getProperty('prefix');\n\t}",
"public function getPrefix(): string\n {\n return $this->isPrefixed() ? $this->prefix : '';\n }",
"public function getPrefix()\n {\n }",
"public function getPrefix(): string;",
"public function getPrefix() : string;",
"protected function getPrefix()\n\t{\n\t\treturn $this->prefix;\n\t}",
"public function getPrefix(): string\n {\n return $this->prefix;\n }",
"public function getPrefix()\n {\n return $this->backend->getPrefix();\n }",
"private function prefix() {\n\n global $WC;\n\n $prefix = $this->local_prefix;\n\n $cache_prefix = xcache_get($prefix.\"_cache_prefix\");\n\n if($cache_prefix===false){\n $cache_prefix = $this->set_cache_prefix();\n }\n\n $prefix.=\"_$cache_prefix\";\n\n return $prefix;\n }",
"public function getPrefix()\n\t{\n\t\treturn $this->prefix;\n\t}",
"public function getPrefix(): string\n\t{\n\t\treturn $this->prefix;\n\t}",
"public static function getPrefix()\n {\n return self::$prefix;\n }",
"public function getPrefix()\n {\n return $this->prefix;\n }",
"public function getPrefix()\n {\n return $this->prefix;\n }",
"public function getPrefix()\n {\n return $this->prefix;\n }",
"public function getPrefix()\n {\n return $this->prefix;\n }",
"public function getPrefix()\n {\n return $this->prefix;\n }",
"public function getPrefix()\n {\n return $this->prefix;\n }",
"public function getPrefix()\n {\n return $this->prefix;\n }",
"public function getPrefix()\n {\n return $this->prefix;\n }",
"public function getPrefix() {\n\t\tif (!empty($this->prefix)) {\n\t\t\treturn $this->prefix;\n\t\t}\n\t\treturn false;\n\t}"
] | [
"0.7208164",
"0.7175811",
"0.70135814",
"0.6993343",
"0.6993343",
"0.6857654",
"0.6830723",
"0.676465",
"0.67241234",
"0.662247",
"0.66057473",
"0.6591648",
"0.6544705",
"0.6524062",
"0.64834833",
"0.6426113",
"0.64115405",
"0.63916624",
"0.6387705",
"0.6378052",
"0.63776916",
"0.63741505",
"0.63741505",
"0.63741505",
"0.63741505",
"0.63741505",
"0.63741505",
"0.63741505",
"0.63741505",
"0.63657886"
] | 0.73470145 | 0 |
Normalizes the current node's subtree. When a node is normalized it does not contain any empty or adjacent text nodes | function normalize ()
{
$length = $this->childNodes->length;
if (!$length) {
return;
}
$remove = array();
for ($i = 0; $i < $length; $i++) {
if ($this->childNodes[$i]->nodeType === 3) {
$checkEmptyIndex = $i;
//First check if there are adjacent text nodes
if (isset($this->childNodes[$i + 1]) &&
$this->childNodes[$i + 1]->nodeType === 3) {
$checkEmptyIndex = $i;
$data = "";
//For each text node that has been found, append its data
//to the current node and add its index to stack of elements
//to remove
do {
$i++;
$remove[] = $i;
$data .= $this->childNodes[$i]->data;
} while (isset($this->childNodes[$i + 1]) &&
$this->childNodes[$i + 1]->nodeType === 3);
$this->childNodes[$checkEmptyIndex]->appendData($data);
}
//Then check if the current node is empty, and if it is remove it
if (!$this->childNodes[$checkEmptyIndex]->data) {
$remove[] = $checkEmptyIndex;
}
} else {
$this->childNodes[$i]->normalize();
}
}
if (!count($remove)) {
return;
}
rsort($remove);
foreach ($remove as $i) {
$this->removeChild($this->childNodes[$i]);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function normalize();",
"public function normalize();",
"public function normalize()\n\t{\n\t\t// Supprime les espaces multiples\n\t\t$this->setValeur(preg_replace('#\\s+#', ' ', $this->getValeur()));\n\n // Trim\n $this->setValeur(trim($this->getValeur()));\n\t}",
"public function normalize(DOMElement $template)\n\t{\n\t\t$xpath = new DOMXPath($template->ownerDocument);\n\n\t\t// Query all text nodes that are entirely made of whitespace but not made of a single space\n\t\t// and not inside of an xsl:text element\n\t\t$query = '//text()[normalize-space() = \"\"][. != \" \"][not(parent::xsl:text)]';\n\t\tforeach ($xpath->query($query) as $textNode)\n\t\t{\n\t\t\t$textNode->parentNode->removeChild($textNode);\n\t\t}\n\t}",
"public function testNormalizeXPath()\n {\n static::assertEquals('/', DOM::normalizeXPath('/'));\n\n static::assertEquals('/body[1]', DOM::normalizeXPath('/body'));\n static::assertEquals('/body[1]/div[1]', DOM::normalizeXPath('/body/div'));\n static::assertEquals('/body[1]/div[1]', DOM::normalizeXPath('/body[1]/div'));\n static::assertEquals('/body[1]/div[1]', DOM::normalizeXPath('/body[1]/div[1]'));\n }",
"public function normalize_content() {\n\t\t$dom = $this->parse_content();\n\t\t$all_node = $dom->childNodes->item(0);\n\t\t$current_update_ids = array();\n\t\tfor ($number = 0; $number < $all_node->childNodes->length; $number++) {\n\t\t\t$top_node = $all_node->childNodes->item($number);\n\t\t\tif ($top_node->tagName == self::$chunks_tag && $top_node->getAttribute('id') != \"\") {\n\t\t\t\t$current_update_ids[] = $top_node->getAttribute('id');\n\t\t\t}\n\t\t}\n\n\t\t$changed = FALSE;\n\t\t$need_to_be_enclosed = array();\n\t\tfor ($number = 0; $number < $all_node->childNodes->length; $number++) {\n\t\t\t$top_node = $all_node->childNodes->item($number);\n\t\t\t$is_chunk_element = $top_node->nodeType == XML_ELEMENT_NODE\n\t\t\t\t&& $top_node->tagName == self::$chunks_tag\n\t\t\t\t&& in_array(self::$chunks_class,\n\t\t\t\t\t\t\texplode(\" \", $top_node->getAttribute('class')));\n\t\t\tif ($is_chunk_element) {\n\t\t\t\t$top_node_classes = explode(\" \", $top_node->getAttribute('class'));\n\t\t\t\tif (count($need_to_be_enclosed) > 0) {\n\t\t\t\t\t$this->enclose_indexes_by_chunk_mark_tag(\n\t\t\t\t\t\t\t$need_to_be_enclosed,$all_node, $dom,\n\t\t\t\t\t\t\t$current_update_ids);\n\t\t\t\t\t$need_to_be_enclosed = array();\n\t\t\t\t}\n\t\t\t\tif (in_array(self::$stub_chunks_class, $top_node_classes)) {\n\t\t\t\t\tif (self::has_child($top_node) || strlen(trim($top_node->nodeValue))) {\n\t\t\t\t\t\t$nodes = array();\n\t\t\t\t\t\tfor($i = 0; $i < $top_node->childNodes->length; $i++) {\n\t\t\t\t\t\t\t$nodes[] = $top_node->childNodes->item($i);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tforeach($nodes as $node) {\n\t\t\t\t\t\t\t$top_node->removeChild($node);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$this->enclose_nodes_by_chunk_mark_tag($nodes, $all_node,\n\t\t\t\t\t\t\t\t$dom, $current_update_ids, $top_node);\n\t\t\t\t\t}\n\t\t\t\t\t$changed = TRUE;\n\t\t\t\t\t$all_node->removeChild($top_node);\n\t\t\t\t} elseif ($top_node->getAttribute('id') === \"\") {\n\t\t\t\t\t// If isn't a stub update and doesn't have id, should put livepress id\n\t\t\t\t\t// this shouldn't happen unless in cases before hash feature was done\n\t\t\t\t\t$chunk_id = $this->next_post_update_id($current_update_ids);\n\t\t\t\t\t$top_node->setAttribute('id', $chunk_id);\n\t\t\t\t\t$changed = TRUE;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$changed = TRUE;\n\t\t\t\t$need_to_be_enclosed[] = $number;\n\t\t\t}\n\t\t}\n\t\tif (count($need_to_be_enclosed) > 0) {\n\t\t\t$this->enclose_indexes_by_chunk_mark_tag($need_to_be_enclosed,\n\t\t\t\t\t$all_node, $dom, $current_update_ids);\n\t\t}\n\n\t\tif ($changed) {\n\t\t\t$this->save_dom($dom);\n\t\t}\n\t}",
"function normalizer_normalize($input, $form = Normalizer::FORM_C) {}",
"public function testNormalizingColumns()\n {\n $rows = [\n ['a'],\n ['aa', 'bbbb'],\n ['aaa', 'bbb', 'ccc'],\n ['aaa', 'bbb', 'ccc', 'ddddd']\n ];\n $expected = [\n ['a', '', '', ''],\n ['aa', 'bbbb', '', ''],\n ['aaa', 'bbb', 'ccc', ''],\n ['aaa', 'bbb', 'ccc', 'ddddd']\n ];\n $this->assertEquals([3, 4, 3, 5], $this->formatter->normalizeColumns($rows));\n $this->assertEquals($expected, $rows);\n }",
"public static function normalize($input, $form = Normalizer::FORM_C) {}",
"function rebuild() {\n\t\t$data = $this->_getTreeWithChildren();\n\t\t\n\t\t$level = 0; // need a variable to hold the running level tally\n\t\t// invoke the recursive function. Start it processing\n\t\t// on the fake \"root node\" generated in getTreeWithChildren().\n\t\t// because this node doesn't really exist in the database, we\n\t\t// give it an initial nleft value of 0 and an nlevel of 0.\n\t\t$this->_generateTreeData($data, 0, 0);\n\n\t\t// at this point the the root node will have nleft of 0, nlevel of 0\n\t\t// and nright of (tree size * 2 + 1)\n\n\t\tforeach ($data as $id => $row) {\n\n\t\t\t// skip the root node\n\t\t\tif ($id == 0)\n\t\t\t\tcontinue;\n\n\t\t\t$query = sprintf('update %s set nlevel = %d where %s = %d', $this->db->dbprefix( 'taxonomy_term_data' ), $row->nlevel, $this->fields['id'], $id);\n\t\t\t$this->db->query($query);\n\t\t}\n\t}",
"public function normalize() {\n if ( $this->magnitude() != 0 ) {\n $dest = array(\n 'x' => $this->_x / $this->magnitude(),\n 'y' => $this->_y / $this->magnitude(),\n 'z' => $this->_z / $this->magnitude()\n );\n }\n else {\n $dest = array(\n 'x' => $this->_x,\n 'y' => $this->_y,\n 'z' => $this->_z\n );\n }\n return ( new Vector( array( 'dest' => new Vertex( $dest ) ) ) );\n }",
"public function normalize(File $file): File\n {\n if (!$this->filterManager->filter($this, $file)) {\n return $file;\n }\n\n $content = $file->getNewContent();\n\n $newContent = ltrim($content, \"\\r\\n\");\n\n if ($content !== $newContent) {\n $file->setNewContent($newContent);\n $this->eventDispatcher->dispatch(new NormalizationEvent(\n $file,\n sprintf(\n '%d leading EOL%s',\n count($this->getLeadingEols($content)),\n (1 === count($this->getLeadingEols($content))) ? '' : 's'\n )\n ));\n }\n\n return $file;\n }",
"private function sanitizeNode(DOMNode $node)\n {\n // Traverse the nodes, without foreach because nodes may be removed\n $child = (!empty($node->childNodes) && $node->childNodes->length > 0) ? $node->childNodes->item(0) : null;\n while ($child !== null)\n {\n $tag = $child->nodeName;\n\n // Allow text nodes\n if ($tag === \"#text\")\n {\n $child = $child->nextSibling;\n continue;\n }\n\n if (isset($this->remove_tags[$tag]))\n {\n // Tag is on the list of nodes to fully remove including child nodes\n $remove = $child;\n $child = $child->nextSibling;\n $node->removeChild($remove);\n }\n elseif (!isset($this->allowed_tags[$tag]))\n {\n // Add the child nodes of the disalowed tag to the parent node in its place,\n // and move the pointer to the first inserted child node, or the next node.\n $child = $this->unwrapContents($node, $child);\n }\n else\n {\n // Sanitize the attributes of an allowed tag\n if ($child->attributes !== null)\n $this->sanitizeAttributes($child);\n\n // And now process the contents\n $this->sanitizeNode($child);\n\n // Finally, call a callback if applicable\n if (isset($this->tag_callback[$tag]))\n $this->tag_callback[$tag]($child);\n\n $child = $child->nextSibling;\n }\n }\n }",
"public function normalize(\n string $value\n ): string;",
"protected static function _normalizeItem($item)\n {\n $item += self::$_itemDefaults;\n\n foreach ($item['children'] as $child) {\n $child = self::_normalizeItem($child);\n }\n\n return $item;\n }",
"function normalisasi($normal){\n\t\t$total = array_sum($normal);\n\t\tforeach($normal as $c){\n\t\t\t$normalized[] = $c/$total;\n\t\t}\n\t\t\t$normalisasi['total'] \t = $total;\n\t\t\t$normalisasi['normalized'] = $normalized;\n\n\t\treturn $normalized;\n\t\t}",
"public function testNormalization() {\n FilterFormat::create([\n 'format' => 'filter_html_enabled',\n 'name' => 'Filter HTML enabled',\n 'filters' => [\n 'filter_html' => [\n 'status' => 1,\n 'settings' => [\n 'allowed_html' => '<strong>',\n ],\n ],\n ],\n ])->save();\n FilterFormat::create([\n 'format' => 'filter_htmlcorrector_enabled',\n 'name' => 'Filter HTML corrector enabled',\n 'filters' => [\n 'filter_htmlcorrector' => [\n 'status' => 1,\n ],\n ],\n ])->save();\n FilterFormat::create([\n 'format' => 'neither_filter_enabled',\n 'name' => 'Neither filter enabled',\n 'filters' => [],\n ])->save();\n\n $filtered_markup = FilteredMarkup::create('<div><strong><span>Hello World</span></strong></div>');\n // With either HTML filter enabled, text_summary() will normalize the text\n // using HTML::normalize().\n $summary = text_summary($filtered_markup, 'filter_html_enabled', 30);\n $this->assertStringContainsString('<div><strong><span>', $summary);\n $this->assertStringContainsString('</span></strong></div>', $summary);\n $summary = text_summary($filtered_markup, 'filter_htmlcorrector_enabled', 30);\n $this->assertStringContainsString('<div><strong><span>', $summary);\n $this->assertStringContainsString('</span></strong></div>', $summary);\n // If neither filter is enabled, the text will not be normalized.\n $summary = text_summary($filtered_markup, 'neither_filter_enabled', 30);\n $this->assertStringContainsString('<div><strong><span>', $summary);\n $this->assertStringNotContainsString('</span></strong></div>', $summary);\n }",
"public function convertToNormalForm()\n {\n if (!$this->isSearchForm()) {\n return $this;\n }\n\n // clear the elements and re-run init\n $this->clearElements();\n $this->init();\n }",
"public function get_normalizeMatrix()\n {\n return $this->_normalizeMatrix;\n }",
"function normalize($input)\n{\n\t// 1. remove all white space, periods, commas\n\t// 2. lowercase everything\n\t$input_normalized = strtolower(preg_replace(\"/[\\s\\.,]+/\", \"\", $input));\n\treturn $input_normalized;\n}",
"public function testCustomNormalizerNormalized()\n {\n $this->testModel->tag('Apple,Banana,Cherry');\n $this->assertArrayValuesAreEqual(\n ['elppA', 'ananaB', 'yrrehC'],\n $this->testModel->getTagArrayNormalizedAttribute()\n );\n }",
"public static function normalize($array)\n {\n // $array = static::transformEntriesToTrue($array);\n $array = static::dot($array);\n $array = static::collect($array);\n\n return $array;\n }",
"static function normalizeData($data);",
"public function unwrapSelf()\n {\n return $this->each(function (HtmlNode $node) {\n $node->unwrapSelf();\n });\n }",
"public function onBeforeNormalization(BeforeNormalizationEvent $event): void\n {\n $resource = $event->getResource();\n\n if ($resource instanceof RelatedResourceInterface) {\n $this->fixForRelations($resource);\n }\n\n if ($resource instanceof ActionedResourceInterface) {\n $this->fixForActions($resource);\n }\n }",
"function normalize() {\n\t\t// Default values for meta box\n\t\t$this->_meta = array_merge( array(\n\t\t\t'taxonomies' => array( 'category', 'post_tag' )\n\t\t), $this->_meta );\n\n\t\t$this->_taxonomies = $this->_meta['taxonomies'];\n\t\t$this->_fields = $this->_meta['fields'];\n\n\t\t// Default values for fields\n\t\tforeach ( $this->_fields as & $field ) {\n\t\t\t$multiple = in_array( $field['type'], array( 'checkbox_list', 'file', 'image' ) ) ? true : false;\n\t\t\t$std = $multiple ? array() : '';\n\t\t\t$format = 'date' == $field['type'] ? 'yy-mm-dd' : ( 'time' == $field['type'] ? 'hh:mm' : '' );\n\t\t\t$style = in_array( $field['type'], array( 'text', 'textarea' ) ) ? 'width: 95%' : '';\n\t\t\t$optgroups = false;\n\t\t\tif ( 'select' == $field['type'] )\n\t\t\t\t$style = 'height: auto';\n\n\t\t\t$field = array_merge( array(\n\t\t\t\t'multiple' => $multiple,\n\t\t\t\t'optgroups' => $optgroups,\n\t\t\t\t'std' => $std,\n\t\t\t\t'desc' => '',\n\t\t\t\t'format' => $format,\n\t\t\t\t'style' => $style,\n\t\t\t), $field );\n\t\t}\n\t}",
"function norm($normal){\n\t\t$total = max($normal);\n\t\tforeach($normal as $c){\n\t\t\t$normalized[] = $c/$total;\n\t\t}\n\t\t\t$normalisasi['total'] \t = $total;\n\t\t\t$normalisasi['normalized'] = $normalized;\n\n\t\treturn $normalized;\n\t\t}",
"private function normalizeGeneratedXml () {\n $generatedXml = $this->generatedXml;\n $this->resetGeneratedXml();\n\n foreach ($generatedXml->children() as $structure) {\n if ($structure->getName() !== 'Separator') {\n $node = $this->generatedXml->addChild($structure->getName(), $structure);\n foreach ($structure->attributes() as $name => $value) {\n if ($name !== 'Length' && $name !== 'Count') {\n $node->addAttribute($name, $value);\n }\n }\n }\n }\n }",
"function normalizer_is_normalized($input, $form = Normalizer::FORM_C) {}",
"public function restoreDescendants();"
] | [
"0.6806305",
"0.6806305",
"0.6112737",
"0.60998255",
"0.55118734",
"0.5291476",
"0.5272078",
"0.5108976",
"0.50530624",
"0.5046126",
"0.50346243",
"0.5009344",
"0.500313",
"0.49046305",
"0.488721",
"0.48246193",
"0.48237354",
"0.4823545",
"0.48146048",
"0.48137373",
"0.48046207",
"0.47721452",
"0.4760574",
"0.47558156",
"0.47223482",
"0.46983197",
"0.46838304",
"0.46792132",
"0.46265444",
"0.46175873"
] | 0.78930086 | 0 |
Compare the position of the current node against the given one. This method follows Webkit implementation. | function compareDocumentPosition (Node $node)
{
//Check if both nodes are references of the same node
if ($this->isSameNode($node)) {
return null;
}
$nodeAtt = $node->nodeType === self::ATTRIBUTE_NODE;
$isAtt = $this->nodeType === self::ATTRIBUTE_NODE;
$nodeIsDoc = $node->nodeType === self::DOCUMENT_NODE;
$isDoc = $this->nodeType === self::DOCUMENT_NODE;
//Nodes from different documents or attributes node without
//ownerElement are disconnected and implementation specific
if (($nodeAtt && !$node->ownerElement) ||
($isAtt && !$this->ownerElement) ||
($nodeIsDoc && !$this->ownerDocument->isSameNode($node)) ||
($isDoc && !$this->isSameNode($node->ownerDocument)) ||
(!$nodeIsDoc && !$isDoc &&
!$node->ownerDocument->isSameNode($this->ownerDocument))) {
return self::DOCUMENT_POSITION_DISCONNECTED |
self::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
}
if ($nodeAtt || $isAtt) {
//If they are both attributes compare their ownerElement
if ($nodeAtt && $isAtt) {
//If the ownerElement is the same find the attribute that comes first
if ($node->ownerElement->isSameNode($this->ownerElement)) {
$count = $this->ownerElement->attributes;
for ($i = 0; $i < $count; $i++) {
if ($this->ownerElement->attributes[$i]->isSameNode($node)) {
return self::DOCUMENT_POSITION_FOLLOWING |
self::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
} elseif ($this->ownerElement->attributes[$i]->isSameNode($this)) {
return self::DOCUMENT_POSITION_PRECEDING |
self::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
}
}
}
//Otherwise compare their ownerElement
$ref = $this->ownerElement->compareDocumentPosition($node->ownerElement);
}
//If only one of them is an attribute compare its ownerElement to the other element
elseif ($nodeAtt) {
$ref = $this->compareDocumentPosition($node->ownerElement);
if ($ref === null) {
return self::DOCUMENT_POSITION_FOLLOWING |
self::DOCUMENT_POSITION_CONTAINED_BY;
}
} else {
$ref = $this->ownerElement->compareDocumentPosition($node);
if ($ref === null) {
return self::DOCUMENT_POSITION_PRECEDING |
self::DOCUMENT_POSITION_CONTAINS;
}
}
//Sanitize the result by removing the contains or contained by relations
if ($ref & self::DOCUMENT_POSITION_CONTAINS) {
$ref = $ref ^ self::DOCUMENT_POSITION_CONTAINS;
} elseif ($ref & self::DOCUMENT_POSITION_CONTAINED_BY) {
$ref = $ref ^ self::DOCUMENT_POSITION_CONTAINED_BY;
}
return $ref;
}
//If the parentNode is the same for both elements find which of them comes
//first in the parentNode child nodes collection
elseif ($node->parentNode && $node->parentNode->isSameNode($this->parentNode)) {
$count = $this->parentNode->childNodes->length;
for ($i = 0; $i < $count; $i++) {
$child = $this->parentNode->childNodes[$i];
if ($child->isSameNode($node)) {
return self::DOCUMENT_POSITION_PRECEDING;
} elseif ($child->isSameNode($this)) {
return self::DOCUMENT_POSITION_FOLLOWING;
}
}
} else {
//Collect the given node's parents
$nodeParents = array($node);
$parent = $node->parentNode;
while ($parent) {
//In the meantime check if the node is in a fragment
if ($parent->nodeType === self::DOCUMENT_FRAGMENT_NODE) {
return self::DOCUMENT_POSITION_DISCONNECTED |
self::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
}
//Check if the current node is one of the given node's parents
elseif ($parent->isSameNode($this)) {
return self::DOCUMENT_POSITION_FOLLOWING |
self::DOCUMENT_POSITION_CONTAINED_BY;
}
$nodeParents[] = $parent;
$parent = $parent->parentNode;
}
//Collect the current node's parents
$currentParents = array($this);
$parent = $this->parentNode;
while ($parent) {
if ($parent->nodeType === self::DOCUMENT_FRAGMENT_NODE) {
return self::DOCUMENT_POSITION_DISCONNECTED |
self::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
}
//Check if the given node is one of the current node's parents
elseif ($parent->isSameNode($node)) {
return self::DOCUMENT_POSITION_PRECEDING |
self::DOCUMENT_POSITION_CONTAINS;
}
$currentParents[] = $parent;
$parent = $parent->parentNode;
}
$currentParents = array_reverse($currentParents);
$nodeParents = array_reverse($nodeParents);
//If there's at least one disconnected node and they come from
//different trees they are disconnected
if (($currentParents[0]->nodeType !== self::DOCUMENT_NODE ||
$nodeParents[0]->nodeType !== self::DOCUMENT_NODE) &&
!$currentParents[0]->isSameNode($nodeParents[0])) {
return self::DOCUMENT_POSITION_DISCONNECTED |
self::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
}
//Otherwise compare the first different parents starting from the root
$count = count($currentParents);
for ($i = 0; $i < $count; $i++) {
if (!$currentParents[$i]->isSameNode($nodeParents[$i])) {
return $currentParents[$i]->compareDocumentPosition(
$nodeParents[$i]
);
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function hasPos(){\n return $this->_has(5);\n }",
"protected function assertNodeMovedBefore() {\n // Check node is in new position.\n $node = $this->nestedSet->getNode(new NodeKey(7, 1));\n $this->assertEquals(3, $node->getLeft());\n $this->assertEquals(8, $node->getRight());\n $this->assertEquals(2, $node->getDepth());\n\n // Check children are in new position.\n $node = $this->nestedSet->getNode(new NodeKey(10, 1));\n $this->assertEquals(4, $node->getLeft());\n $this->assertEquals(5, $node->getRight());\n $this->assertEquals(3, $node->getDepth());\n\n $node = $this->nestedSet->getNode(new NodeKey(11, 1));\n $this->assertEquals(6, $node->getLeft());\n $this->assertEquals(7, $node->getRight());\n $this->assertEquals(3, $node->getDepth());\n\n // Check old parent is updated.\n $node = $this->nestedSet->getNode(new NodeKey(3, 1));\n $this->assertEquals(16, $node->getLeft());\n $this->assertEquals(21, $node->getRight());\n $this->assertEquals(1, $node->getDepth());\n }",
"public function hasPos(){\n return $this->_has(6);\n }",
"function isEqualNode (Node $node)\n\t{\n\t\tif ($this->nodeType !== $node->nodeType ||\n\t\t\t$this->nodeName !== $node->nodeName ||\n\t\t\t$this->localName !== $node->localName ||\n\t\t\t$this->prefix !== $node->prefix ||\n\t\t\t$this->namespaceURI !== $node->namespaceURI ||\n\t\t\t$this->nodeValue !== $node->nodeValue) {\n\t\t\treturn false;\n\t\t}\n\t\tif ($this->nodeType === 10 &&\n\t\t\t($this->publicId !== $node->publicId ||\n\t\t\t$this->systemId !== $node->systemId)) {\n\t\t\treturn false;\n\t\t}\n\t\t$nodeL = $node->attributes ? $node->attributes->length : null;\n\t\t$length = $this->attributes ? $this->attributes->length : null;\n\t\tif ($nodeL !== $length) {\n\t\t\treturn false;\n\t\t}\n\t\tif ($length) {\n\t\t\tfor ($i = 0; $i < $length; $i++) {\n\t\t\t\t$att = $this->attributes[$i];\n\t\t\t\t$ret = $node->attributes->getNamedItemNS(\n\t\t\t\t\t$att->namespaceURI,\n\t\t\t\t\t$att->localName\n\t\t\t\t);\n\t\t\t\tif (!$ret || ($ret->value !== $att->value)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t$nodeL = $node->childNodes->length;\n\t\t$length = $this->childNodes->length;\n\t\tif ($nodeL !== $length) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif ($length) {\n\t\t\tfor ($i = 0; $i < $length; $i++) {\n\t\t\t\t$el = $this->childNodes[$i];\n\t\t\t\tif (!$el->isEqualNode($node->childNodes[$i])) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"function isSameNode ($node)\n\t{\n\t\treturn $this === $node;\n\t}",
"public function MoveNode()\n {\n $returnVal = false;\n if ($this->global->UserDataExists('tableid') && $this->global->UserDataExists('nodeID') && $this->global->UserDataExists('parentNodeID') && $this->global->UserDataExists('position')) {\n $updatedNodes = array();\n $iTableID = $this->global->GetUserData('tableid');\n $iNodeID = $this->global->GetUserData('nodeID');\n $iParentNodeID = $this->global->GetUserData('parentNodeID');\n $iPosition = $this->global->GetUserData('position');\n if (!empty($iTableID) && !empty($iNodeID) && 'undefined' != $iNodeID && !empty($iParentNodeID)) { // prevent saving if node was dropped on empty space instead of an other node\n $oTableEditor = new TCMSTableEditorManager();\n $sEntrySortField = $this->GetSortFieldName($iParentNodeID);\n $databaseConnection = $this->getDatabaseConnection();\n $quotedTreeTable = $databaseConnection->quoteIdentifier($this->treeTable);\n $quotedParentNodeId = $databaseConnection->quote($iParentNodeID);\n if (0 == $iPosition) { // set every other node pos+1\n $query = \"SELECT * FROM $quotedTreeTable WHERE `parent_id` = $quotedParentNodeId\";\n $oCmsTreeList = TdbCmsTreeList::GetList($query);\n while ($oCmsTreeNode = $oCmsTreeList->Next()) {\n $oTableEditor->Init($iTableID, $oCmsTreeNode->id);\n $newSortOrder = $oTableEditor->oTableEditor->oTable->sqlData[$sEntrySortField] + 1;\n $oTableEditor->SaveField('entry_sort', $newSortOrder);\n $updatedNodes[] = $oCmsTreeNode;\n }\n\n $oTableEditor->Init($iTableID, $iNodeID);\n $oTableEditor->SaveField('entry_sort', 0);\n $oTableEditor->SaveField('parent_id', $iParentNodeID);\n } else {\n $quotedNodeId = $databaseConnection->quote($iNodeID);\n $quotedEntrySortField = $databaseConnection->quoteIdentifier($sEntrySortField);\n $query = \"SELECT * FROM $quotedTreeTable WHERE `parent_id` = $quotedParentNodeId AND `id` != $quotedNodeId ORDER BY $quotedEntrySortField ASC\";\n /** @var BackendSessionInterface $backendSession */\n $backendSession = ServiceLocator::get('chameleon_system_cms_backend.backend_session');\n\n $oCmsTreeList = TdbCmsTreeList::GetList($query, $backendSession->getCurrentEditLanguageId());\n\n $count = 0;\n while ($oCmsTree = $oCmsTreeList->Next()) {\n if ($iPosition == $count) { // skip new position of moved node\n ++$count;\n }\n\n $oTableEditor->Init($iTableID, $oCmsTree->id);\n $oTableEditor->SaveField('entry_sort', $count);\n ++$count;\n }\n\n $oTableEditor->Init($iTableID, $iNodeID);\n $oTableEditor->SaveField('entry_sort', $iPosition);\n $oTableEditor->SaveField('parent_id', $iParentNodeID);\n $updatedNodes[] = $oCmsTree;\n }\n\n // update cache\n TCacheManager::PerformeTableChange($this->treeTable, $iNodeID);\n $this->UpdateSubtreePathCache($iNodeID);\n\n $returnVal = true;\n }\n\n $node = TdbCmsTree::GetNewInstance($iNodeID);\n $this->getNestedSetHelper()->updateNode($node);\n $this->writeSqlLog();\n\n $updatedNodes[] = $node;\n $event = new ChangeNavigationTreeNodeEvent($updatedNodes);\n $this->getEventDispatcher()->dispatch($event, CoreEvents::UPDATE_NAVIGATION_TREE_NODE);\n }\n\n return $returnVal;\n }",
"function nstValidNode ($node)\n\t/* only checks, if L-value < R-value (does no db-query)*/\n\t{ return ($node['l'] < $node['r']);\n\t}",
"function isCurrentAncestor();",
"public function position(\\sli_tom\\util\\Node $element) {\n\t\tif ($index = $this->indexOf($element)) {\n\t\t\treturn ++$index;\n\t\t}\n\t}",
"private function _get_list_position($node)\n\t{\n\t\t$position = 1;\n\n\t\t// Get all of the list nodes inside this parent\n\t\t$list_node = $this->_parser ? $node->parentNode : $node->parentNode();\n\t\t$total_nodes = $this->_parser ? $node->parentNode->childNodes->length : count($list_node->childNodes());\n\n\t\t// Loop through all li nodes and find where we are in this list\n\t\tfor ($i = 0; $i < $total_nodes; $i++)\n\t\t{\n\t\t\t$current_node = $this->_parser ? $list_node->childNodes->item($i) : $list_node->childNodes($i);\n\t\t\tif ($current_node === $node)\n\t\t\t{\n\t\t\t\t$position = $i + 1;\n\t\t\t}\n\t\t}\n\n\t\treturn $position;\n\t}",
"public function Pos() {\n\t\treturn $this->listPos($this->list, $this->current) + 1;\n\t}",
"function next_node()\n\t{\n\t\tif (!$this->ok) return false;\n\t\tif ($this->ptr == -1) return false;\n\n\t\t$pos = $this->ptr;\n\t\tdo {\n\t\t\t$pos = $this->_find_pos($pos+1);\n\t\t} while ($this->pos[$pos] == $this->pos[$this->ptr]);\n\n\t\t$this->ptr = $pos;\n\t\treturn $this->nodes[$this->pos[$pos]];\n\n\t}",
"public function isOrPositionBefore()\n {\n return ($this->getShowOrPosition() && $this->getShowOrPosition() == self::POSITION_BEFORE);\n }",
"public function key()\n {\n return $this->position;\n// $current = $this->current();\n// return ($current instanceof \\DOMText) ? $current->parentNode->tagName : $current->nodeName;\n }",
"public function isCurrent();",
"public function isCurrent();",
"function parent_compare( $a, $b ) {\n\t\t$ap = $a->parent;\n\t\t$bp = $b->parent;\n\n\t\tif ( $ap == $bp )\n\t\t\treturn 0;\n\t\treturn ( $ap > $bp ) ? 1 : -1;\n}",
"public function isValidPosition(){\r\n\t\treturn true;\r\n\t}",
"private function end(): bool {\n $this->_current = $this->_current->parentNode;\n return TRUE;\n }",
"function contains (Node $node)\n\t{\n\t\t$pos = $this->compareDocumentPosition($node);\n\t\treturn $pos && ($pos & 16) ? true : false;\n\t}",
"function isCurrent();",
"public function valid()\n {\n $this->_currentPosition = 0;\n $this->_currentNode = $this->_firstNode;\n }",
"public function isNode() {}",
"public function getPosition();",
"public function getPosition();",
"public function getPosition();",
"private function start($node): bool {\n $this->_current = $node;\n return TRUE;\n }",
"function getPosition();",
"public function isPositionInside()\n\t{\n\t\treturn ($this->getCfg('general/position') == 'inside');\n\t}",
"function snax_show_item_position() {\n\t$bool = true;\n\n\t$parent_id = snax_get_item_parent_id();\n\n\t$format = snax_get_format( $parent_id );\n\n\tif ( ! is_single( $parent_id ) ) {\n\t\t$bool = false;\n\t}\n\n\tif ( is_single( $parent_id ) && in_array( $format, array( 'image', 'embed', 'gallery', 'story' ), true ) ) {\n\t\t$bool = false;\n\t}\n\n\treturn (bool) apply_filters( 'snax_show_item_position', $bool );\n}"
] | [
"0.5582881",
"0.5507189",
"0.5401451",
"0.5375626",
"0.53068066",
"0.52321064",
"0.51880735",
"0.51603645",
"0.5141371",
"0.5135251",
"0.51233",
"0.51229876",
"0.50960904",
"0.5084301",
"0.50790197",
"0.50790197",
"0.49362877",
"0.49360654",
"0.49298894",
"0.49138063",
"0.4901994",
"0.48994094",
"0.48993325",
"0.4888285",
"0.4888285",
"0.4888285",
"0.48880172",
"0.48814556",
"0.48519075",
"0.48444843"
] | 0.56943357 | 0 |
Returns the index of the given node in the child nodes array of the current node | protected function _getChildNodeIndex (Node $node)
{
$count = $this->childNodes->length;
for ($i = 0; $i < $count; $i++) {
if ($this->childNodes[$i]->isSameNode($node)) {
return $i;
}
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function indexOf($node)\n {\n foreach ($this->nodes as $index => $child) {\n if ($node === $child) {\n return $index;\n }\n }\n \n return null;\n }",
"public function getChildrenIndex();",
"public function getIndexOf(Node $child) {\r\n foreach ($this->children as $key => &$value){\r\n if ($value === $child) {\r\n return $key;\r\n }\r\n }\r\n return null;\r\n }",
"function index() {\r\r\n\t\t\t$depth = func_num_args();\r\r\n\t\t\t$result = $this;\r\r\n\t\t\tfor ($index=0; $index<$depth; $index++) {\r\r\n\t\t\t\t$result = $result->nodes[func_get_arg($index)];\r\r\n\t\t\t}\t\t\t\r\r\n\t\t\treturn $result->index;\t\t\r\r\n\t\t}",
"public function indexOf(\\sli_tom\\util\\Node $element) {\n\t\treturn array_search($element, $this->_data, true);\n\t}",
"public function getChildNode($index) {}",
"function search_node($array, $id) {\n\tforeach($array as $index => $item) {\n\t\tif($item['id'] == $id) {\n\t\t\treturn $index;\n\t\t}\n\t}\n}",
"public function indexOf($el) : int {\n if ($this->size() == 1) {\n return $this->head->data() === $el ? 0 : -1;\n } else if ($this->size() == 0) {\n return -1;\n } else {\n $tmpIndex = 0;\n $node = $this->head;\n\n while ($node->next() !== null) {\n if ($node->data() === $el) {\n return $tmpIndex;\n }\n $node = &$node->next();\n $tmpIndex++;\n }\n\n if ($node->data() === $el) {\n return $tmpIndex;\n }\n }\n\n return -1;\n }",
"public function indexOf($o = null) {\n\t\t/* @var $x Node */\n\t\t$index = 0;\n\t\tif ($o == null) {\n\t\t\tfor($x = $this->first; $x != null; $x = $x->next) {\n\t\t\t\tif ($x->item == null) {\n\t\t\t\t\treturn $index;\n\t\t\t\t}\n\t\t\t\t$index++;\n\t\t\t}\n\t\t} else {\n\t\t\tfor($x = $this->first; $x != null; $x = $x->next) {\n\t\t\t\tif ($o == $x->item) {\n\t\t\t\t\treturn $index;\n\t\t\t\t}\n\t\t\t\t$index++;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}",
"private function _get_list_position($node)\n\t{\n\t\t$position = 1;\n\n\t\t// Get all of the list nodes inside this parent\n\t\t$list_node = $this->_parser ? $node->parentNode : $node->parentNode();\n\t\t$total_nodes = $this->_parser ? $node->parentNode->childNodes->length : count($list_node->childNodes());\n\n\t\t// Loop through all li nodes and find where we are in this list\n\t\tfor ($i = 0; $i < $total_nodes; $i++)\n\t\t{\n\t\t\t$current_node = $this->_parser ? $list_node->childNodes->item($i) : $list_node->childNodes($i);\n\t\t\tif ($current_node === $node)\n\t\t\t{\n\t\t\t\t$position = $i + 1;\n\t\t\t}\n\t\t}\n\n\t\treturn $position;\n\t}",
"private function getIndex($node) {\n $oidStr = $node->getOID()->__toString();\n if (!isset($this->nodeIndexMap[$oidStr])) {\n $this->nodeIndexMap[$oidStr] = $this->getNextIndex();\n }\n return $this->nodeIndexMap[$oidStr];\n }",
"protected function _findNodeIndex ($node, $types)\n\t{\n\t\tif (!$node->parentNode) {\n\t\t\treturn array(null, null);\n\t\t}\n\t\t$sib = $node->parentNode->childNodes;\n\t\t$tInd = 0;\n\t\tfor ($i = 0, $l = $sib->length; $i < $l; $i++) {\n\t\t\tif ($sib[$i]->isSameNode($node)) {\n\t\t\t\treturn array($i, $tInd);\n\t\t\t}\n\t\t\tif (isset($types[$sib[$i]->nodeType])) {\n\t\t\t\t$tInd++;\n\t\t\t}\n\t\t}\n\t}",
"public function key()\n {\n return $this->childrenPosition;\n }",
"public function findChild($child) {\n for ($n = 0; $n < count($this->children); $n++) {\n if ($child === $this->children[$n])\n return $n;\n }\n\n return NULL;\n }",
"function nstNbChildren ($node)\n\t{ return (($node['r']-$node['l']-1)/2);\n\t}",
"private function getNextIndex() {\n return $this->nodeIndex++;\n }",
"public function key()\n {\n return $this->position;\n// $current = $this->current();\n// return ($current instanceof \\DOMText) ? $current->parentNode->tagName : $current->nodeName;\n }",
"function snax_get_item_position( $item = null ) {\n\t$item = get_post( $item );\n\t$post_id = $item->post_parent;\n\n\t// Shouldn't happen.\n\t$position = - 1;\n\n\t$found_index = array_search( $item->ID, snax_get_items_ids( $post_id ) );\n\n\tif ( false !== $found_index ) {\n\t\t$position = $found_index + 1; // Array keys start from 0.\n\t}\n\n\treturn $position;\n}",
"protected function getArrayIndexFromMarkedTree($id) {\n\t\tforeach ($this->markedTree as $index => $treeItem) {\n\t\t\tif ($treeItem['id'] == $id) {\n\t\t\t\treturn $index;\n\t\t\t}\n\t\t}\n\t\tthrow new \\RuntimeException('Node ' . $id . ' not found.');\n\t}",
"protected function getCurrentIndex(): ?int\n {\n $index = $this->flatTree->search(function (Entity $entity) {\n return get_class($entity) === get_class($this->relativeBookItem)\n && $entity->id === $this->relativeBookItem->id;\n });\n\n return $index === false ? null : $index;\n }",
"public function getIndexOf($element) {\n $currentIndex = 0;\n\n foreach($this->data as $currentElement) {\n if($currentElement == $element) {\n return $currentIndex;\n }\n ++$currentIndex;\n }\n\n return -1;\n }",
"function get_page_post_index($ID, $post_index)\n{\n $query=mysql_query(\"SELECT post_ids FROM page_updates WHERE page_id=$ID LIMIT 1\");\n if($query&&mysql_num_rows($query)==1)\n {\n $array=mysql_fetch_row($query);\n $post_ids=explode('|^|*|', $array[0]);\n\n $index=-1;\n for($x = 0; $x < sizeof($post_ids); $x++)\n {\n if($post_ids[$x]==$post_index)\n $index=$x;\n }\n return $index;\n }\n}",
"public function getRank(){\n\t\t$result=0;\n\t\tforeach ($this->child_nodes as $level){\n\t\t\tif($level > $result) $result=$level;\n\t\t}\n\t\treturn $result;\n\t}",
"public function pos($element)\n {\n return ($index = $this->getIndexOf($element)) ? $index + 1 : $index;\n }",
"public function getNode($key){\n\t\treturn $this->index[key];\n\t}",
"public function getLineNo() {\n\n\t\t$container = $this->ownerDocument->getLineNumberContainer();\n\t\tif ($container && $container->contains($this)) {\n\t\t\treturn $container->offsetGet($this);\n\t\t}\n\n\t\treturn parent::getLineNo();\n\t}",
"public function current()\n {\n $children = $this->children->getValues();\n return $children[$this->childrenPosition];\n }",
"public function position(\\sli_tom\\util\\Node $element) {\n\t\tif ($index = $this->indexOf($element)) {\n\t\t\treturn ++$index;\n\t\t}\n\t}",
"public function getChildNum()\n\t{\n\t return $this->childNum;\n\t}",
"protected function getIndex(): int\n {\n $key = implode('.', $this->current);\n\n if (! isset($this->indices[$key])) {\n $this->indices[$key] = 0;\n } else {\n $this->indices[$key]++;\n }\n\n return $this->indices[$key];\n }"
] | [
"0.6855692",
"0.67896867",
"0.6623634",
"0.64873105",
"0.6117567",
"0.6038964",
"0.5958255",
"0.5955861",
"0.5954433",
"0.5885919",
"0.58535695",
"0.58264405",
"0.5780689",
"0.5668064",
"0.5625089",
"0.5612955",
"0.5600975",
"0.5562078",
"0.55314404",
"0.53986853",
"0.5388701",
"0.53626764",
"0.5358319",
"0.53286934",
"0.52827597",
"0.5273687",
"0.52338",
"0.5223804",
"0.52197444",
"0.52023363"
] | 0.74433863 | 0 |
Submit a task and return a promise for the sent task. | public function submitTask(ProgressReporter $reporter): PromiseInterface
{
// bind for statistics
$reporter->on('done', \Closure::fromCallable([$this, 'handleCompletedTask']));
$reporter->on('failed', \Closure::fromCallable([$this, 'handleFailedTask']));
return $this->__submitTask($reporter);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function perform_task()\n {\n $ret_value = $this->_submit();\n \n $this->response_data = $this->response($ret_value, $this->error_string);\n }",
"public function createSendTask() {\n $this->type = \"send\";\n return $this->createTask();\n }",
"function postTask($task, $args=[])\n {\n // Allow tasks to specify queue, exchange, and routing_key in the task details\n // TODO: should routing_key be a default param? also rename queue to queue\n $queue = $this->connection_details['queue'];\n $exchange = $this->connection_details['exchange'];\n $routing_key = $this->connection_details['queue'];\n\n if (isset($args['queue'])) {\n $queue = $args['queue'];\n $exchange = $args['queue'];\n $routing_key = $args['queue'];\n unset($args['queue']);\n }\n if (isset($args['exchange'])) {\n $exchange = $args['exchange'];\n unset($args['exchange']);\n }\n if (isset($args['routing_key'])) {\n $routing_key = $args['routing_key'];\n unset($args['routing_key']);\n }\n\n\t\t$id = uniqid('php_', TRUE);\n\n\t\t$task_array = array_merge(\n\t\t\tarray(\n\t\t\t\t'id' => $id,\n\t\t\t\t'task' => $task,\n\t\t\t),\n\t\t\t$args\n\t\t);\n\n\t\t$task_body = json_encode($task_array);\n $params = $this->buildParams();\n\n $ch = $this->declareTask($queue, $exchange, $routing_key);\n\t\t$msg = new AMQPMessage($task_body, $params);\n\t\t$ch->basic_publish($msg, $exchange, $routing_key);\n\t\t$ch->close();\n\n // TODO: Async result\n\n }",
"public function push(Task $task): Task;",
"public function run( callable$task ):Promise\n\t{\n\t\treturn new Promise( $this->_event_loop, function( $resolve, $reject )use( $task ){\n\t\t\t\n\t\t\t$gen= $task();\n\t\t\t\n\t\t\tif(!( $gen instanceof \\Generator ) )\n\t\t\t\treturn $resolve( $gen );\n\t\t\t\n\t\t\t$connect= $step= null;\n\t\t\t\n\t\t\t$connect= function()use( $gen, &$step ){\n\t\t\t\t$current= $gen->current();\n\t\t\t\t\n\t\t\t\tif( !self::is_thenable( $current ) )\n\t\t\t\t\t$current= Promise::resolve( $this->_event_loop, $current );\n\t\t\t\t\n\t\t\t\t$current->then( $step );\n\t\t\t};\n\t\t\t\n\t\t\t$step= function( $value )use( $gen, $resolve, &$connect ){\n\t\t\t\t$gen->send( $value );\n\t\t\t\t\n\t\t\t\tif( $gen->valid() )\n\t\t\t\t\t$connect();\n\t\t\t\telse\n\t\t\t\t\t$resolve( $gen->getReturn() );\n\t\t\t};\n\t\t\t\n\t\t\t$connect();\n\t\t} );\n\t}",
"public function sendAsync();",
"public function queueWork(): Response\n {\n return $this->callArtisan(\n 'queue:work',\n [\n '--tries' => 5,\n '--delay' => 15,\n '--sansdaemon' => true,\n '--queue' => 'password,job,default',\n ],\n true\n );\n }",
"public function promise();",
"public function store()\n\t{\n\t\ttask::create(array(\n\t\t\t'task' => Input::get('task'),\n\t\t\t'description' => Input::get('description')\n\t\t));\n\n\t\treturn Response::json(array('success' => true));\n\t}",
"public function store(CreateTaskRequest $request)\n {\n $task = Task::create($request->all());\n if ($task) {\n return $this->sendResponse($task, trans('task.messages.create.success'));\n } else {\n return $this->sendError(trans('task.messages.create.failed'));\n }\n }",
"function send_task($task) {\n\t\t$id = $task['id'];\n\t\tif(empty($id)) {\n\t\t\treturn \"ID must not be empty\";\t\n\t\t}\n\n\t\t$verb = $task['verb'];\n\n\n\t\t// Init curl\n\t\t$curl = curl_init(); \n\t\t$url = \"https://app.asana.com/api/1.0/tasks/$id\";\n\t\tcurl_setopt($curl, CURLOPT_PORT , 443); \n\t\tcurl_setopt($curl, CURLOPT_USERPWD, $this->get_asana_key());\n\t\tcurl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); \n\n\t\t$data = array();\n\n\t\tswitch($verb) {\n\t\t\tcase 'fix':\n\t\t\t\tcurl_setopt($curl, CURLOPT_CUSTOMREQUEST, \"PUT\");\n\t\t\t\t$data = array('completed'=>true);\n\t\t\tbreak;\n\t\t\tcase 'break':\n\t\t\t\tcurl_setopt($curl, CURLOPT_CUSTOMREQUEST, \"PUT\");\n\t\t\t\t$data = array('completed'=>false);\n\t\t\tbreak;\n\t\t\tcase 'see':\n\t\t\t\t$url .= \"/stories\";\n\t\t\t\tcurl_setopt($curl, CURLOPT_POST, 1); \n\t\t\t\t$data = array('text'=>$task['message'], 'type'=>'comment');\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn \"Unrecognized Verb.\";\n\t\t}\n\n\t\t$result = '';\n\t\tif(!empty($data)) {\n\t\t\tcurl_setopt($curl, CURLOPT_URL, $url);\n\t\t\tcurl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data)); \n\t\t\tob_start();\n\t\t\tcurl_exec($curl);\n\t\t\t$result = ob_get_clean();\n\t\t}\n\n\t\t$result = json_decode($result);\n\n\t\tif(isset($result->errors)) {\n\t\t\t$error_message = '';\n\t\t\tforeach($result->errors as $error) {\n\t\t\t\t$err = $error->message.\"\\n\";\n\t\t\t}\n\t\t\treturn $err;\n\t\t}\n\n\t\treturn true;\n\t}",
"public function store(TaskRequest $request)\n {\n $model = 'App\\\\' . ucfirst($request->resource);\n\n $resource = (new $model())->whereUid($request->uid)->first();\n\n $this->authorizeForUser($this->userFromToken(), 'member', $resource);\n\n return $this->response([\n 'task' => $resource->tasks()->create([\n 'uid' => generateUid(),\n 'assigned_to' => $request->assigned_to,\n 'name' => $request->name,\n 'due_on' => Carbon::createFromFormat('d/m/Y', $request->due_on),\n ]),\n ]);\n }",
"public function createTask($project_id, BugHerd_Task $task) {\n $url = self::URL . \"/\" . self::VERSION . \"/projects/{$project_id}/tasks.xml\";\n $method = \"POST\";\n $xml = $task->toXml();\n $xml = $this->_sendRequest($url, $method, $xml);\n return BugHerd_Task::fromXml($xml);\n }",
"public function store(TaskRequest $request)\n {\n $data=$this->service->store($request);\n\n return $this->apiResponse(new Task($data), true, 200);\n\n }",
"function process(){\n $result = $this->dma->managementApiCall('POST', \"{$this->hashid}/tasks/process\");\n $taskCreated = ($result['statusCode'] == 201);\n $taskId = $taskCreated ? obtainId($result['response']['link']) : null;\n return array('task_created'=>$taskCreated, 'task_id' => $taskId);\n }",
"public function sendAsync()\n {\n $this->mount();\n\n PushJob::dispatch(self::ONE_SIGNAL_URL, $this->params);\n }",
"public function execute(TaskInterface $task);",
"protected abstract function perform($task);",
"public function executePost()\n {\n /**\n * @todo Remove this once we figure out how to reference vars in file\n * that is autoloaded\n */\n global $tracking_dynamics;\n\n $valid = $this->hasRequiredParameters($this->requiredParams);\n if ($valid instanceof Frapi_Error) {\n return $valid;\n }\n\n $username = $this->getParam('username');\n $password = $this->getParam('password');\n $hassign = $this->getParam('hassign');\n $hdependencies = $this->getParam('hdependencies');\n $notify = $this->getParam('task_notify');\n $comment = $this->getParam('email_comment');\n $task_id = $this->getParam('task_id');\n $adjustStartDate = $this->getParam('set_task_start_date');\n $project_id = $this->getParam('project_id');\n\n if (!$project_id || !is_numeric($project_id)) {\n throw new Frapi_Error('ERROR_MISSING_REQUEST_ARG');\n }\n // Attempt to login as user, a little bit of a hack as we currently\n // require the $_POST['login'] var to be set as well as a global AppUI\n $AppUI = new CAppUI();\n $GLOBALS['AppUI'] = $AppUI;\n $_POST['login'] = 'login';\n\n if (!$AppUI->login($username, $password)) {\n throw new Frapi_Error('INVALID_LOGIN');\n }\n\n $post_data = array(\n 'task_id' => 0,\n 'task_name' => $this->getParam('task_name'),\n 'task_status' => $this->getParam('task_status'),\n 'task_percent_complete' => $this->getParam('task_percent_complete'),\n 'task_milestone' => $this->getParam('task_milestone'),\n 'task_owner' => $this->getParam('task_owner'),\n 'task_access' => $this->getParam('task_access'),\n 'task_related_url' => $this->getParam('task_related_url'),\n 'task_parent' => $this->getParam('task_parent'),\n 'task_type' => $this->getParam('task_type'),\n 'task_target_budget' => $this->getParam('task_target_budget'),\n 'task_description' => $this->getParam('task_description'),\n 'task_start_date' => $this->getParam('task_start_date'),\n 'task_end_date' => $this->getParam('task_end_date'),\n 'task_duration' => $this->getParam('task_duration'),\n 'task_duration_type' => $this->getParam('task_duration_type'),\n 'task_dynamic' => $this->getParam('task_dynamic'),\n 'task_allow_other_user_tasklogs' => $this->getParam('task_allow_other_user_tasklogs'),\n 'task_project' => $project_id,\n 'task_priority' => $this->getParam('task_priority'),\n );\n\n // Include any files for handling module-specific requirements\n foreach (findTabModules('tasks', 'addedit') as $mod) {\n $fname = W2P_BASE_DIR . '/modules/' . $mod . '/tasks_dosql.addedit.php';\n if (file_exists($fname)) {\n require_once $fname;\n }\n }\n\n // Find the task if we are set\n $task_end_date = null;\n if ($task_id) {\n $task->load($task_id);\n $task_end_date = new w2p_Utilities_Date($task->task_end_date);\n }\n\n $task = new CTask();\n\n if(!$task->bind($post_data)) {\n throw new Frapi_Error('SAVE_ERROR', $task->getError());\n }\n\n if ($task->task_dynamic != 1) {\n $task_dynamic_delay = ($this->getParam('task_dynamic_nodelay')) ? $this->getParam('task_dynamic_nodelay') : '0';\n if (in_array($task->task_dynamic, $tracking_dynamics)) {\n $task->task_dynamic = $task_dynamic_delay ? 21 : 31;\n } else {\n $task->task_dynamic = $task_dynamic_delay ? 11 : 0;\n }\n }\n\n // Let's check if task_dynamic is unchecked\n if (!$this->getParam('task_dynamic')) {\n $task->task_dynamic = false;\n }\n\n // Make sure task milestone is set or reset as appropriate\n if ($this->getParam('task_milestone')) {\n $task->task_milestone = false;\n }\n\n //format hperc_assign user_id=percentage_assignment;user_id=percentage_assignment;user_id=percentage_assignment;\n $tmp_ar = explode(';', $this->getParam('hperc_assign'));\n $i_cmp = sizeof($tmp_ar);\n\n $hperc_assign_ar = array();\n for ($i = 0; $i < $i_cmp; $i++) {\n $tmp = explode('=', $tmp_ar[$i]);\n if (count($tmp) > 1) {\n $hperc_assign_ar[$tmp[0]] = $tmp[1];\n } elseif ($tmp[0] != '') {\n $hperc_assign_ar[$tmp[0]] = 100;\n }\n }\n\n // let's check if there are some assigned departments to task\n $task->task_departments = implode(',', $this->getParam('dept_ids', self::TYPE_ARRAY));\n\n // convert dates to SQL format first\n if ($task->task_start_date) {\n $date = new w2p_Utilities_Date($task->task_start_date);\n $task->task_start_date = $date->format(FMT_DATETIME_MYSQL);\n }\n $end_date = null;\n if ($task->task_end_date) {\n if (strpos($task->task_end_date, '2400') !== false) {\n $task->task_end_date = str_replace('2400', '2359', $task->task_end_date);\n }\n $end_date = new w2p_Utilities_Date($task->task_end_date);\n $task->task_end_date = $end_date->format(FMT_DATETIME_MYSQL);\n }\n\n $error_array = $task->store($AppUI);\n\n // Return all the validation messages\n if ($error_array !== true) {\n $error_message = '';\n foreach ($error_array as $error) {\n $error_message .= $error . '. ';\n }\n\n throw new Frapi_Error('SAVE_ERROR', $error_message);\n }\n\n $task_parent = ($this->getParam('task_parent')) ? $this->getParam('task_parent', SELF::TYPE_INT) : 0;\n $old_task_parent = ($this->getParam('old_task_parent')) ? $this->getParam('old_task_parent', SELF::TYPE_INT) : 0;\n\n if ($task_parent != $old_task_parent) {\n $oldTask = new CTask();\n $oldTask->load($old_task_parent);\n $oldTask->updateDynamics(false);\n }\n\n // How to handle custom fields? Do we support it in api?\n\n // Now add any task reminders\n // If there wasn't a task, but there is one now, and\n // that task date is set, we need to set a reminder.\n if (empty($task_end_date) || (!empty($end_date) && $task_end_date->dateDiff($end_date))) {\n $task->addReminder();\n }\n\n if (isset($hassign)) {\n $task->updateAssigned($hassign, $hperc_assign_ar);\n }\n\n if (isset($hdependencies)) { // && !empty($hdependencies)) {\n // there are dependencies set!\n\n // backup initial start and end dates\n $tsd = new w2p_Utilities_Date($task->task_start_date);\n $ted = new w2p_Utilities_Date($task->task_end_date);\n\n // updating the table recording the\n // dependency relations with this task\n $task->updateDependencies($hdependencies, $task_parent);\n\n // we will reset the task's start date based upon dependencies\n // and shift the end date appropriately\n if ($adjustStartDate && !is_null($hdependencies)) {\n\n // load already stored task data for this task\n $tempTask = new CTask();\n $tempTask->load($task->task_id);\n\n // shift new start date to the last dependency end date\n $nsd = new w2p_Utilities_Date($tempTask->get_deps_max_end_date($tempTask));\n\n // prefer Wed 8:00 over Tue 16:00 as start date\n $nsd = $nsd->next_working_day();\n\n // prepare the creation of the end date\n $ned = new w2p_Utilities_Date();\n $ned->copy($nsd);\n\n if (empty($task->task_start_date)) {\n // appropriately calculated end date via start+duration\n $ned->addDuration($task->task_duration, $task->task_duration_type);\n\n } else {\n // calc task time span start - end\n $d = $tsd->calcDuration($ted);\n\n // Re-add (keep) task time span for end date.\n // This is independent from $obj->task_duration.\n // The value returned by Date::Duration() is always in hours ('1')\n $ned->addDuration($d, '1');\n\n }\n\n // prefer tue 16:00 over wed 8:00 as an end date\n $ned = $ned->prev_working_day();\n\n $task->task_start_date = $nsd->format(FMT_DATETIME_MYSQL);\n $task->task_end_date = $ned->format(FMT_DATETIME_MYSQL);\n\n $q = new w2p_Database_Query;\n $q->addTable('tasks', 't');\n $q->addUpdate('task_start_date', $task->task_start_date);\n $q->addUpdate('task_end_date', $task->task_end_date);\n $q->addWhere('task_id = ' . (int)$task->task_id);\n $q->addWhere('task_dynamic <> 1');\n $q->exec();\n $q->clear();\n }\n $task->pushDependencies($task->task_id, $task->task_end_date);\n }\n\n $this->data['task'] = get_object_vars($task);\n $this->data['success'] = true;\n\n $cache = new Frapi_Internal();\n $cache = $cache->getCachedDbConfig();\n $task_uri = !empty($_SERVER['HTTPS']) ? 'https://' : 'http://';\n $task_uri .= $cache['api_url'] . '/project/' . $this->data['task']['task_project'] . '/task/' . $this->data['task']['task_id'];\n $this->data['task']['task_uri'] = $task_uri;\n\n return new Frapi_Response(array(\n 'code' => 201,\n 'data' => $this->data,\n 'headers' => array('location' => $task_uri),\n ));\n }",
"private function submitting(Closure $then = null) : void\n {\n $this->spouting(co(function (array $spans) use ($then) {\n $request = new Request(\n 'POST',\n new Uri('http', $this->endpoint->host(), $this->endpoint->port(), $this->path),\n [\n 'Content-Type' => 'application/json',\n ],\n new Body(sprintf('[%s]', implode(',', $spans)))\n );\n try {\n /**\n * @var Response $response\n */\n $response = yield $this->client->perform($request);\n if ((int)($response->getStatusCode() / 100) !== 2) {\n logger('traced')->notice(\n 'Server not accepting',\n [\n 'endpoint' => (string)$request->getUri(),\n 'error' => sprintf('#%d->%s', $response->getStatusCode(), (string)$response->getBody()),\n 'payload' => debug() ? (string)$request->getBody() : '[IGNORED]',\n ]\n );\n }\n } catch (RequestException | SelectWaitException $e) {\n logger('traced')->notice(\n 'Posting failed',\n [\n 'endpoint' => (string)$request->getUri(),\n 'error' => sprintf('%s::%s', get_class($e), $e->getMessage()),\n ]\n );\n }\n $then && $then();\n }));\n }",
"public function saveTask()\n\t{\n\t\t// Check for request forgeries\n\t\tRequest::checkToken();\n\n\t\t// Incoming\n\t\t$cat = Request::getString('category', '');\n\t\t$refid = Request::getInt('referenceid', 0);\n\t\t$returnlink = Request::getString('link', '');\n\t\t$no_html = Request::getInt('no_html', 0);\n\n\t\t// Trim and addslashes all posted items\n\t\t$incoming = array_map('trim', $_POST);\n\n\t\t// Initiate class and bind posted items to database fields\n\t\t$row = Report::blank()->set(array(\n\t\t\t'report' => (isset($incoming['report']) ? $incoming['report'] : ''),\n\t\t\t'category' => (isset($incoming['category']) ? $incoming['category'] : ''),\n\t\t\t'referenceid' => (isset($incoming['referenceid']) ? $incoming['referenceid'] : 0),\n\t\t\t'subject' => (isset($incoming['subject']) ? $incoming['subject'] : 'Other')\n\t\t));\n\n\t\t$row->set('report', Sanitize::clean($row->get('report')));\n\t\t$row->set('report', nl2br($row->get('report')));\n\t\t$row->set('created_by', User::get('id'));\n\t\t$row->set('created', Date::toSql());\n\t\t$row->set('state', 0);\n\n\t\t// Store new content\n\t\tif (!$row->save())\n\t\t{\n\t\t\tif ($no_html)\n\t\t\t{\n\t\t\t\techo json_encode(array(\n\t\t\t\t\t'success' => false,\n\t\t\t\t\t'message' => $row->getError(),\n\t\t\t\t\t'id' => $refid,\n\t\t\t\t\t'category' => $cat\n\t\t\t\t));\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tRequest::setVar('id', $refid);\n\n\t\t\t$this->setError($row->getError());\n\t\t\treturn $this->displayTask();\n\t\t}\n\n\t\t// Get the search result totals\n\t\t$results = Event::trigger('support.onReportItem', array(\n\t\t\t$refid,\n\t\t\t$cat\n\t\t));\n\n\t\t// Send notification email\n\t\tif ($this->config->get('abuse_notify', 1))\n\t\t{\n\t\t\tLang::load($this->_option . '.abuse', dirname(__DIR__));\n\n\t\t\t$reported = new \\stdClass;\n\t\t\t$reported->author = 0;\n\n\t\t\t// Get the search result totals\n\t\t\t$results = Event::trigger('support.getReportedItem', array(\n\t\t\t\t$refid,\n\t\t\t\t$cat,\n\t\t\t\t0\n\t\t\t));\n\n\t\t\t// Check the results returned for a reported item\n\t\t\tif ($results)\n\t\t\t{\n\t\t\t\tforeach ($results as $result)\n\t\t\t\t{\n\t\t\t\t\tif ($result)\n\t\t\t\t\t{\n\t\t\t\t\t\t$reported = $result[0];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Get any set emails that should be notified of ticket submission\n\t\t\t$defs = str_replace(\"\\r\", '', $this->config->get('abuse_emails', '{config.mailfrom}'));\n\t\t\t$defs = str_replace('\\n', \"\\n\", $defs);\n\t\t\t$defs = explode(\"\\n\", $defs);\n\t\t\t$defs = array_map('trim', $defs);\n\n\t\t\t$message = new \\Hubzero\\Mail\\Message();\n\t\t\t$message->setSubject(Config::get('sitename') . ' ' . Lang::txt('COM_SUPPORT_ABUSE_REPORT'))\n\t\t\t\t\t->addFrom(\n\t\t\t\t\t\tConfig::get('mailfrom'),\n\t\t\t\t\t\tConfig::get('sitename') . ' ' . Lang::txt(strtoupper($this->_option))\n\t\t\t\t\t)\n\t\t\t\t\t->addHeader('X-Component', 'com_support')\n\t\t\t\t\t->addHeader('X-Component-Object', 'abuse_item_report');\n\n\t\t\t// Plain text email\n\t\t\t$eview = new \\Hubzero\\Mail\\View(array(\n\t\t\t\t'name' => 'emails',\n\t\t\t\t'layout' => 'abuse_plain'\n\t\t\t));\n\t\t\t$eview->option = $this->_option;\n\t\t\t$eview->controller = $this->_controller;\n\t\t\t$eview->report = $row;\n\t\t\t$eview->reported = $reported;\n\t\t\t$eview->author = null;\n\n\t\t\t$plain = $eview->loadTemplate(false);\n\t\t\t$plain = str_replace(\"\\n\", \"\\r\\n\", $plain);\n\n\t\t\t$message->addPart($plain, 'text/plain');\n\n\t\t\t// HTML email\n\t\t\t$eview->setLayout('abuse_html');\n\n\t\t\t$html = $eview->loadTemplate();\n\t\t\t$html = str_replace(\"\\n\", \"\\r\\n\", $html);\n\n\t\t\t$message->addPart($html, 'text/html');\n\n\t\t\t// Loop through the addresses\n\t\t\tforeach ($defs as $def)\n\t\t\t{\n\t\t\t\t// Check if the address should come from site config\n\t\t\t\tif ($def == '{config.mailfrom}')\n\t\t\t\t{\n\t\t\t\t\t$def = Config::get('mailfrom');\n\t\t\t\t}\n\n\t\t\t\t// Check for a valid address\n\t\t\t\tif (Validate::email($def))\n\t\t\t\t{\n\t\t\t\t\t$message->addTo($def);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Send e-mail\n\t\t\tif (!$message->send())\n\t\t\t{\n\t\t\t\t$this->setError(Lang::txt('Uh-oh'));\n\t\t\t}\n\t\t}\n\n\t\tif ($no_html)\n\t\t{\n\t\t\techo json_encode(array(\n\t\t\t\t'success' => true,\n\t\t\t\t'report_id' => $row->get('id'),\n\t\t\t\t'message' => Lang::txt('COM_SUPPORT_REPORT_NUMBER_REFERENCE', $row->id),\n\t\t\t\t'id' => $refid,\n\t\t\t\t'category' => $cat\n\t\t\t));\n\t\t\treturn;\n\t\t}\n\n\t\t// Set the page title\n\t\t$this->_buildTitle();\n\n\t\t// Set the pathway\n\t\t$this->_buildPathway();\n\n\t\t// Output HTML\n\t\t$this->view\n\t\t\t->set('title', $this->_title)\n\t\t\t->set('report', $row)\n\t\t\t->set('refid', $refid)\n\t\t\t->set('cat', $cat)\n\t\t\t->set('returnlink', $returnlink)\n\t\t\t->display();\n\t}",
"public function saveTask( Task $task ) : bool {\n if ($task->completedAt() && $task->result() && $this->deleteSuccessfulTasks) {\n return $this->deleteTask($task);\n }\n\n $statement = $this->pdo->prepare('INSERT INTO \"' . $this->tableName . '\" (\n \"taskIdentifier\",\n \"jobClass\",\n \"payload\",\n \"createdAt\",\n \"startedAt\",\n \"completedAt\",\n \"result\",\n \"message\"\n ) VALUES (\n :taskIdentifier,\n :jobClass,\n :payload,\n :createdAt,\n :startedAt,\n :completedAt,\n :result,\n :message\n ) ON CONFLICT (\"taskIdentifier\") DO UPDATE SET\n \"jobClass\" = :jobClass,\n \"payload\" = :payload,\n \"createdAt\" = :createdAt,\n \"startedAt\" = :startedAt,\n \"completedAt\" = :completedAt,\n \"result\" = :result,\n \"message\" = :message\n ;');\n $result = $statement->execute(array(\n 'taskIdentifier' => $task->identifier(),\n 'jobClass' => $task->jobClass(),\n 'payload' => $task->payload(),\n 'createdAt' => $this->timestampForDateTime( $task->createdAt() ),\n 'startedAt' => $this->timestampForDateTime( $task->startedAt() ),\n 'completedAt' => $this->timestampForDateTime( $task->completedAt() ),\n 'result' => $this->valueForBoolean( $task->result() ),\n 'message' => $task->message()\n ));\n\n return $result;\n }",
"public function createTask(\n AbstractTask $task,\n ?int $softId = null,\n ?string $languagePool = null,\n ?string $callbackUrl = null\n ): CreateTaskResponse {\n $request = $this->createRequest(\n $this->configuration->getApiUrl() . '/createTask',\n array_filter([\n 'clientKey' => $this->configuration->getClientKey(),\n 'softId' => $softId ?? $this->configuration->getSoftId(),\n 'languagePool' => $languagePool ?? $this->configuration->getLanguagePool(),\n 'task' => $task->toArray(),\n 'callbackUrl' => $callbackUrl ?? $this->configuration->getCallbackUrl(),\n ], fn ($value) => $value !== null)\n );\n\n $response = $this->httpClient->sendRequest($request);\n\n return CreateTaskResponse::fromHttpResponse($response);\n }",
"public function storeTask(StoreTaskRequest $request)\n {\n return $this->taskService->add($request->all());\n }",
"public static function createNew() {\n return new Task();\n }",
"public function sendAsync(RequestInterface $request);",
"public function queue()\n {\n (new QueueTask)->create();\n\n return Scout::response()\n ->visit(route('settings.edit'))\n ->notifyWithMessage('Generated Queue Runner Task XML.');\n }",
"public function dispatch()\n {\n return (new PendingDispatch(\n $this->job\n ))->chain($this->chain);\n }",
"public function send()\n {\n if (empty($this->requests)) {\n throw new \\RuntimeException('No requests have been set.');\n }\n // more than one, treat as batch request\n if (isset($this->requests[1])) {\n $payload = json_encode($this->requests);\n } else {\n $payload = json_encode($this->requests[0]);\n }\n\n $context = stream_context_create([\n 'http' => [\n 'method' => 'POST',\n 'header' => 'Content-Type: application/json',\n 'content' => $payload,\n ],\n ]);\n\n // oops?\n if (false === $response = file_get_contents($this->uri, false, $context)) {\n throw new \\RuntimeException('Unable to connect to ' . $this->uri);\n }\n\n // notification\n if (empty($response)) {\n return true;\n }\n\n // validate response and act accordingly\n if (null === $result = json_decode($response)) {\n throw new \\RuntimeException('Unable to decode JSON: ' . $response);\n }\n\n $sanitizeResponse = function ($result) {\n if (empty($result->error)) {\n return $result->result;\n }\n return ['error' => $result->error];\n };\n\n if (is_array($result)) {\n $result = array_map($sanitizeResponse, $result);\n } else {\n $result = $sanitizeResponse($result);\n }\n\n return $result;\n }",
"public function run_task(){\n\t $data = $this->send_get();\n if ($data){\n $this->send_post($data, $data[\"date\"]);\n }\n }"
] | [
"0.6401051",
"0.5994426",
"0.59071285",
"0.57605255",
"0.559979",
"0.54822344",
"0.5416251",
"0.53041536",
"0.53005797",
"0.5293912",
"0.52703285",
"0.52181065",
"0.52110165",
"0.5196225",
"0.5176162",
"0.5139828",
"0.50852334",
"0.5071635",
"0.5052284",
"0.5026879",
"0.50035876",
"0.49802363",
"0.49514633",
"0.49362767",
"0.4925087",
"0.48665372",
"0.4851539",
"0.48311496",
"0.48213276",
"0.48070106"
] | 0.6382102 | 1 |
Set and get finder. | public function finder($finder = null) {
if ($finder !== null) {
$this->_finder = $finder;
}
return $this->_finder;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getFinder ()\n {\n return $this->finder;\n }",
"public function getFinder()\n {\n return $this->get('finder');\n }",
"public function getFinder();",
"public function getFinder()\n {\n return $this->finder;\n }",
"public function getFinder()\n {\n return $this->finder;\n }",
"public function getFinderFactory();",
"function setFind($find){\n $this->find = $find;\n }",
"public function find() {\n $this->method = '_find';\n return $this;\n }",
"public function Find()\n {\n //TODO Suche mit den werten machen\n }",
"function _prepare_finder($options = array()){\n\t\t$options += array(\n\t\t\t\"conditions\" => array(),\n\t\t\t\"bind_ar\" => array(),\n\t\t\t\"class_name\" => null,\n\t\t\t\"limit\" => 20,\n\t\t);\n\n\t\tif(!$options[\"class_name\"]){\n\t\t\t$options[\"class_name\"] = String4::ToObject(get_class($this))->gsub('/Controller$/','')->singularize()->toString(); // \"PeopleController\" -> \"Person\" \n\t\t}\n\n\t\t$class_name = $options[\"class_name\"];\n\n\t\t$this->tpl_data[\"finder\"] = $finder = $class_name::Finder(array(\n\t\t\t\"conditions\" => $options[\"conditions\"],\n\t\t\t\"bind_ar\" => $options[\"bind_ar\"],\n\t\t\t\"offset\" => $this->params->getInt(\"offset\"),\n\t\t\t\"order_by\" => $this->sorting,\n\t\t\t\"limit\" => $options[\"limit\"],\n\t\t\t\"use_cache\" => true,\n\t\t));\n\n\t\treturn $finder;\n\t}",
"protected function getFinder(): PathFinderInterface\n {\n $result = ClassFactory::createFinder($this->configType, $this->options);\n\n return $result;\n }",
"public function finder()\n {\n $finder = $this->config('finder');\n\n return $finder ?: $this->name();\n }",
"private function _find()\n {\n /** Initilize symfony2 finder component */\n $finder = new Finder();\n\n /** Loop setting files */\n foreach($finder->name($this->file_name)->in(dirname(dirname(dirname(__DIR__)))) as $file) {\n\n /** Parse bundle setting file */\n $file_data = $this->decode_setting(file_get_contents($file->getRealpath()));\n\n /** Verify if file data is correct */\n $this->_verifyFile($file, $file_data);\n\n /** Save to setting array */\n $this->bundle_default_built[$file_data['name']] = $file_data;\n }\n\n return $this;\n }",
"public function find()\n {\n return $this->getDriver('Crud')->findImpl($this, func_get_args());\n }",
"protected function getFinder(): NodeFinder\n {\n if (! $this->finder) {\n $this->finder = new NodeFinder();\n }\n\n return $this->finder;\n }",
"public function getAllFinder()\n {\n return $this->model->finder()->with(['userDetail', 'company'])->get();\n }",
"public function find() {\n \n $args = func_get_args();\n \n // find multiple files\n if(count($args) > 1) {\n $result = array();\n foreach($args as $arg) {\n $file = $this->find($arg);\n if($file) $result[$file->filename()] = $file;\n } \n return (empty($result)) ? null : new Files($result, $this->page());\n } \n \n // find a single file\n $key = @$args[0]; \n if(!$key) return $this;\n return $this->get($key);\n \n }",
"public function find() {\n return parent::find();\n }",
"public function find() {\n return parent::find();\n }",
"public function find() {\n return parent::find();\n }",
"public function find() {\n return parent::find();\n }",
"public function testFinderOption(): void\n {\n $this->setAppNamespace('TestApp');\n\n $articles = $this->getTableLocator()->get('Articles');\n $tags = $this->getTableLocator()->get('Tags');\n\n $tags->belongsToMany('Articles', [\n 'sourceTable' => $tags,\n 'targetTable' => $articles,\n 'finder' => 'published',\n ]);\n $articles->updateAll(['published' => 'N'], ['id' => 1]);\n $entity = $tags->get(1, ...['contain' => 'Articles']);\n $this->assertCount(1, $entity->articles, 'only one article should load');\n $this->assertSame('Y', $entity->articles[0]->published);\n }",
"public function setFindMethod($findMethod)\n {\n $this->findMethod = $findMethod;\n\n return $this;\n }",
"public static function basicFind()\n {\n return parent::find();\n }",
"public static function setFsSearcher($inFs)\n\t{\n\t\tstatic::$searcher = $inFs;\n\t\t\n\t}",
"public function getFinderById(int $id)\n {\n return $this->model->finder()->with(['userDetail', 'company'])->findOrFail($id);\n }",
"public function find()\n {\n $arr = $this->applyFilters();\n if (count($this->group)>0)\n $arr = $this->applyGroup($arr);\n if (count($this->sort)>0)\n usort($arr, array($this, 'applySort'));\n if (count($this->tree)>0)\n $arr = $this->applyTree($arr);\n elseif (count($this->distinctArr)>0)\n $arr = $this->applyDistinct($arr);\n if ($this->limitValue>0 && $this->offsetValue>0)\n $arr = array_slice($arr, $this->offsetValue, $this->limitValue, false);\n if (count($arr)>0)\n return reset($arr);\n else\n return null;\n }",
"public function getFinderMappings();",
"protected function getInstance() {\n\n\t\t$type = $this->setType();\n\n\t\t$finder = new $type( $this->setArgs() );\n\t\t$this->assertInstanceOf( \\ItalyStrap\\View\\ViewFinderInterface::class, $finder );\n\t\t$this->assertInstanceOf( \\ItalyStrap\\View\\AbstractViewFinder::class, $finder );\n\t\t$this->assertInstanceOf( \\ItalyStrap\\Finder\\AbstractFinder::class, $finder );\n\t\t$this->assertInstanceOf( \\Countable::class, $finder );\n\t\treturn $finder;\n\t}",
"public function getFMFind () {\n // Ensure we at least have a 'find all' command.\n if ($this->_fmFindCommand === NULL) {\n $this->_fmFindCommand = $this->_FM->newFindAllCommand($this->_layout);\n }\n\n // Set the range now.\n $offset = 0;\n if ($this->_offset !== NULL) { $offset = $this->_offset; }\n $this->_fmFindCommand->setRange($offset, $this->_limit);\n\n return $this->_fmFindCommand;\n }"
] | [
"0.70979124",
"0.7047546",
"0.70274067",
"0.6825509",
"0.6825509",
"0.6626397",
"0.6591175",
"0.65638185",
"0.5986681",
"0.5980205",
"0.5928507",
"0.5882937",
"0.5852673",
"0.5816257",
"0.57895595",
"0.57757276",
"0.55688095",
"0.5532284",
"0.5532284",
"0.5532284",
"0.5532284",
"0.5455141",
"0.54484385",
"0.54083514",
"0.5389369",
"0.5369397",
"0.5358572",
"0.5351636",
"0.53515565",
"0.53413755"
] | 0.71874046 | 0 |
Set select fields to query options. | public function select($fields = []) {
$this->_queryOptions['fields'] = array_merge($this->_queryOptions['fields'], $fields);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function _resetSelect()\n {\n $aReset = array('aSelect' => array(),\n 'aFrom' => array(),\n 'aJoin' => array(),\n 'aWhere' => array(),\n 'aLike' => array(),\n 'aGroupby' => array(),\n 'aHaving' => array(),\n 'aOrderby' => array(),\n 'aWherein' => array(),\n 'aLimit' => false,\n 'aOffset' => false,\n 'aOrder' => false );\n\n $this->_resetRun($aReset);\n }",
"private function selectFields()\n {\n collect($this->request->get('fields', []))->each(function($expression, $key) {\n $fields = explode(',', $expression);\n $this->builder->select($fields);\n });\n }",
"protected function set_models_for_selects() {\n $this->consoles_for_select = Console::all_for_select_with('name', true);\n $this->games_for_select = Game::all_for_select_with('name', true);\n $this->accessories_for_select = Accessory::all_for_select_with('name', true);\n\n $all_cities = Ad::all_cities();\n $this->cities_for_select = ['' => ''] + array_combine($all_cities, $all_cities);\n }",
"public function set_rs_select() {\n }",
"private function _initSelectList()\n {\n $features = $this->Feature->getAllFeaturesKeyValue();\n $this->set('features', $features);\n $categories = $this->Category->getAllCategoryPair();\n $this->set('categories', $categories);\n }",
"private function generateSelectFields()\n {\n $entity = $this->defaultEntity();\n $this->selectFields = new IndexedCollection();\n $dataSettings = Settings::getValue(Settings::SKEY_DATA);\n \n foreach ($entity->getFields() as $field)\n {\n if (isset($dataSettings[Settings::KEY_DATA_LOGICALDELETEFIELD]) && $field->getFieldName() == $dataSettings[Settings::KEY_DATA_LOGICALDELETEFIELD])\n continue;\n \n if (ObjectIntrospector::isA($field, 'BinaryEntityField'))\n {\n if ($this->deferredExecution && $field->isDeferredExecution())\n continue;\n }\n \n $fieldName = $this->quoteIdentifier($entity->getTableName());\n $fieldName .= \".\" . $this->quoteIdentifier($field->getFieldName());\n \n $this->selectFields->addItem($fieldName);\n }\n }",
"public function select($fields = []);",
"public function prepareSelect(array &$select): void\n\t{\n\t\t$suffixes = $this->getFieldSuffixes();\n\n\t\tforeach ($this->getUserIdFields() as $fieldId)\n\t\t{\n\t\t\t$needLoadField = false;\n\t\t\tforeach ($suffixes as $suffix)\n\t\t\t{\n\t\t\t\t$fieldIdWithSuffix = $fieldId . '_' . $suffix;\n\t\t\t\t$fieldIndex = array_search($fieldIdWithSuffix, $select, true);\n\t\t\t\tif ($fieldIndex !== false)\n\t\t\t\t{\n\t\t\t\t\t$this->addToResultFields[$fieldId][] = $suffix;\n\t\t\t\t\tunset($select[$fieldIndex]);\n\t\t\t\t\t$needLoadField = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($needLoadField)\n\t\t\t{\n\t\t\t\t$this->addToResultFields[$fieldId][] = self::FIELD_FORMATTED_NAME;\n\t\t\t\t$this->addToResultFields[$fieldId][] = self::FIELD_SHOW_URL;\n\n\t\t\t\tif (!in_array($fieldId, $select))\n\t\t\t\t{\n\t\t\t\t\t$select[] = $fieldId;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tforeach ($this->getClientUserIdFields() as $fieldId)\n\t\t{\n\t\t\tif (in_array($fieldId, $select))\n\t\t\t{\n\t\t\t\t$this->addToResultFields[$fieldId] = [\n\t\t\t\t\tself::FIELD_FORMATTED_NAME,\n\t\t\t\t\tself::FIELD_SHOW_URL,\n\t\t\t\t];\n\t\t\t}\n\t\t}\n\t}",
"function alsoSelect($fields) {\n is_array($fields) or $fields = func_get_args();\n $this->select( array_merge((array) $this->table->selects, $fields) );\n return $this;\n }",
"protected function init()\n {\n foreach ($this->options as $name => $value) {\n switch ($name) {\n case 'field':\n $this->setFields($value);\n break;\n case 'facet':\n $this->setFacets($value);\n break;\n }\n }\n }",
"private function _reset_select()\n\t{\n\t\t$ar_reset_items = array(\n\t\t\t'ar_select' => array(),\n\t\t\t'ar_from' => array(),\n\t\t\t'ar_join' => array(),\n\t\t\t'ar_where' => array(),\n\t\t\t'ar_like' => array(),\n\t\t\t'ar_groupby' => array(),\n\t\t\t'ar_having' => array(),\n\t\t\t'ar_orderby' => array(),\n\t\t\t'ar_wherein' => array(),\n\t\t\t'ar_union' => array(),\n\t\t\t'ar_aliased_tables' => array(),\n\t\t\t'ar_distinct' => FALSE,\n\t\t\t'ar_limit' => FALSE,\n\t\t\t'ar_offset' => FALSE,\n\t\t\t'ar_order' => FALSE,\n\t\t);\n\t\t$this->_reset_run($ar_reset_items);\n\t}",
"public static function set_select($selects)\n\t{\n\t\tself::get_query()->select($selects);\n\t}",
"protected function _reset_select()\r\n\t{\r\n\t\t$ar_reset_items = array(\r\n\t\t\t\t'ar_select'\t\t\t=> array(),\r\n\t\t\t\t'ar_from'\t\t\t=> array(),\r\n\t\t\t\t'ar_join'\t\t\t=> array(),\r\n\t\t\t\t'ar_where'\t\t\t=> array(),\r\n\t\t\t\t'ar_like'\t\t\t=> array(),\r\n\t\t\t\t'ar_groupby'\t\t=> array(),\r\n\t\t\t\t'ar_having'\t\t\t=> array(),\r\n\t\t\t\t'ar_orderby'\t\t=> array(),\r\n\t\t\t\t'ar_wherein'\t\t=> array(),\r\n\t\t\t\t'ar_aliased_tables'\t=> array(),\r\n\t\t\t\t'ar_no_escape'\t\t=> array(),\r\n\t\t\t\t'ar_distinct'\t\t=> FALSE,\r\n\t\t\t\t'ar_limit'\t\t\t=> FALSE,\r\n\t\t\t\t'ar_offset'\t\t\t=> FALSE,\r\n\t\t\t\t'ar_order'\t\t\t=> FALSE,\r\n\t\t);\r\n\r\n\t\t$this->_reset_run($ar_reset_items);\r\n\t}",
"public function select($from, $filters = array(), array $options = array(), array $fields = array()) {}",
"public function setSelectFields($members)\n {\n if (is_string($members) === true)\n {\n $this->selectFields = new IndexedCollection();\n $this->aggregateFields = new IndexedCollection();\n $members = explode(\",\", $members);\n \n foreach ($members as $member)\n {\n $memberName = trim($member);\n $this->selectFields->addItem($memberName);\n }\n }\n }",
"public function addSelect($fieldName = null)\n {\n $select = func_get_args();\n foreach ($select as $fieldName) {\n $this->_select[] = $fieldName;\n }\n return $this;\n }",
"public function select($fields = '*') {\n\t\t$this->_select = $fields;\n\n\t\t// Return $this, needed for method chaining\n\t\treturn $this;\n\t}",
"private function _createSelects()\r\n {\r\n for ($i = count($this); $i < $this->size; $i++) {\r\n $data = $this->getData();\r\n unset($data['label']);\r\n $this->appendChild(new HTML_QuickForm2_Element_Select(\r\n $i, array('id' => self::generateId($this->getName() . \"[{$i}]\")) + $this->getAttributes(), $data\r\n ));\r\n }\r\n }",
"public function addFieldToSelect($fields)\n {\n if ($fields == self::SQL_INCLUDE_ALL) {\n $this->_fieldsToFilter = $fields;\n return $this;\n }\n\n if (!is_array($fields)) {\n $fields = array($fields);\n }\n\n if (is_array($this->_fieldsToSelect) && !empty($this->_fieldsToSelect)) {\n $fields = array_merge($fields, $this->_fieldsToSelect);\n }\n\n $this->_fieldsToSelect = $fields;\n return $this;\n }",
"public function setFilters()\n {\n $this->activeQueryLog()\n ->setFields()\n ->setCriteriaByQueryString()\n ->setCriteria()\n ->setIncludes()\n ->setLimit()\n ->setOrder()\n ->setGroup();\n }",
"private function initialQueryBuilder()\n {\n $this->select = [];\n $this->from = '';\n $this->where = [];\n $this->orderBy = [];\n $this->limit = null;\n $this->offset = null;\n }",
"public function setFilterByFields($fields)\n {\n $this->params['fields'] = $fields;\n }",
"protected function fieldType(){\n $this->type = 'select';\n }",
"public function set_select_options( $select_options = array() ) {\n\t\t\n\t\t$this->select_options = array();\n\t\t\n\t\t$this->add_select_options( $select_options );\n\t\t\n\t}",
"protected function setQueryFields(array $fields)\n {\n $this->queryFields = array();\n foreach ($fields as $field => $included) {\n if ($included) $this->queryFields[$field] = 1;\n }\n }",
"function setOptions()\n\t{\n\t\t\n\t\t// initialize option variables\n\t\t$dataField = '';\n\t\t$timespan = 'monthly';\n\t\t$operator = 'count';\n\t\t\n\t\t// set from GET vars\n\t\t// field (OPT)\n\t\tif(isset($_GET['f']))\n\t\t{\n\t\t\t$dataField = $_GET['f'];\n\t\t}\n\t\t\n\t\t// timespan\n\t\tif(isset($_GET['t']) && !empty($_GET['t']))\n\t\t{\n\t\t\t$timespan = $_GET['t'];\n\t\t}\n\t\t\n\t\t// operator\n\t\tif(isset($_GET['o']))\n\t\t{\n\t\t\t$operator = $_GET['o'];\n\t\t}\n\t\t\n\t\treturn [\n\t\t\t'field'\t\t=>\t$dataField,\n\t\t\t'timespan'\t=>\t$timespan,\n\t\t\t'operator'\t=>\t$operator\n\t\t];\n\t}",
"public function setQuery(SelectInterface $query) {\n $this->query = $query;\n }",
"protected function set_query_params() {\r\n\t\t$this->query_params = wp_parse_args(\r\n\t\t\tarray(\r\n\t\t\t\t'offset' => $this->offset,\r\n\t\t\t),\r\n\t\t\t$this->default_query_params\r\n\t\t);\r\n\r\n\t\tif ( ! empty( $this->fields_to_be_displayed ) ) {\r\n\t\t\t$this->query_params['Select'] = implode( ',', $this->fields_to_be_displayed );\r\n\t\t}\r\n\r\n\t\treturn $this->query_params;\r\n\t}",
"protected function initSettings()\n {\n if (empty($this->options['id'])) {\n $this->options['id'] = $this->getId();\n }\n if (empty($this->exportRequestParam)) {\n $this->exportRequestParam = 'selectCol_' . $this->options['id'];\n }\n $path = '@vendor/rikcage/yii2-grid-column-select/views';\n if (!isset($this->exportColumnsView)) {\n $this->exportColumnsView = \"{$path}/_columns\";\n }\n $this->_columnSelectorEnabled = $this->showColumnSelector;\n $request = Yii::$app->request;\n $this->_triggerDownload = $request->post($this->exportRequestParam, $this->triggerDownload);\n if ($this->_triggerDownload) {\n $this->_columnSelectorEnabled = $request->post($this->colSelFlagParam, $this->_columnSelectorEnabled);\n $this->initSelectedColumns();\n }else{\n\t\t\t$this->selectedColumns = $this->getSettings();\n\t\t}\n }",
"public function buildSelect() {\n\t\t$this->qry->select('*');\n\t\t// -TODO- only selected fields\n\t\t$this->qry->from($this->obj->table);\n\t\t// -TODO- JOIN for objects, and GROUP BY if necessary\n\t}"
] | [
"0.6652716",
"0.6597492",
"0.653649",
"0.64106",
"0.63311297",
"0.6133441",
"0.609848",
"0.6080654",
"0.6072968",
"0.606462",
"0.60198355",
"0.601",
"0.5935173",
"0.5898603",
"0.5892651",
"0.58913976",
"0.58602804",
"0.5848316",
"0.5837644",
"0.5836362",
"0.5822994",
"0.5820133",
"0.57957935",
"0.5791645",
"0.5787905",
"0.57414925",
"0.5733627",
"0.5729327",
"0.5711949",
"0.5709144"
] | 0.7019035 | 0 |
Set contain to query options. | public function contain($contain = []) {
$this->_queryOptions['contain'] = array_merge($this->_queryOptions['contain'], $contain);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function setContains($query){\n $this->contains = explode(\" \", $query);\n }",
"public function setOptions($var) {}",
"public function setOptions($var) {}",
"public function setOptions($var) {}",
"public function setOptions($var) {}",
"public function setOptions($var) {}",
"public function setOptions($var) {}",
"public function setOptions($var) {}",
"public function setOptions($var) {}",
"public function setOptions($var) {}",
"public function setOptions($var) {}",
"public function setOptions($var) {}",
"public function setOptions($var) {}",
"public function setOptions($var) {}",
"public function setOptions($var) {}",
"public function setOptions($var) {}",
"protected function setAdditionalClauses(){}",
"protected function setWhereValues()\n {\n $translator = $this->connection->getTypeTranslator();\n \n foreach ($this->whereClauses->getArrayReference() as $whereClause)\n {\n $value = $whereClause->getValue();\n \n if (is_array($value))\n {\n foreach ($value as $singleValue)\n $this->sqlCommand->addParam($whereClause->getIdentifier(), $translator->getSqlParameterDataType($singleValue), $singleValue);\n }\n else\n {\n $this->sqlCommand->addParam($whereClause->getIdentifier(), $translator->getSqlParameterDataType($value), $value);\n }\n }\n \n $this->whereClauses = new IndexedCollection();\n }",
"public function defineOptionsAlter(&$options) {\n $options['device_detection'] = [\n 'contains' => [\n 'title' => ['default' => ''],\n 'description' => ['default' => ''],\n ],\n ];\n }",
"public function setQuery() : void;",
"public function testConfigureOptions()\n {\n $resolverMock = Phake::mock('Symfony\\Component\\OptionsResolver\\OptionsResolver');\n\n $this->form->configureOptions($resolverMock);\n\n Phake::verify($resolverMock)->setDefaults(array(\n 'class' => $this->siteClass,\n 'property' => 'name',\n 'query_builder' => function (DocumentRepository $dr) {\n return $dr->createQueryBuilder()->field('deleted')->equals(false);\n },\n 'embed' => false,\n ));\n }",
"public function contains()\n {\n $this->arguments[] = '--contains';\n return $this;\n }",
"public function applyOptions(): void\n {\n if ($this->hasEndpoint()) {\n $this->withOptions(['endpoint' => $this->endpoint]);\n }\n\n $this->setProp('value', $this->attribute);\n $this->setProp('entities', $this->options(), false);\n }",
"public function findWithContain(Query $query, array $options = [])\n {\n $options += [\n 'sfw' => true,\n 'withAlbums' => true,\n 'withFiles' => true,\n 'withNotes' => true,\n 'withPosts' => true,\n 'withProjects' => true,\n 'withUsers' => true,\n ];\n\n // Fields\n $query->select(['id', 'album_count', 'file_count', 'note_count', 'post_count', 'project_count']);\n\n // Relations\n $sfw = $options['sfw'];\n $containLimit = Configure::read('cms.maxRelatedData');\n if ($options['withAlbums']) {\n $query->contain(['Albums' => function ($q) use ($sfw, $containLimit) {\n return $q->find('withContain', ['sfw' => $sfw, 'forceOrder' => true])\n ->limit($containLimit);\n }]);\n }\n if ($options['withFiles']) {\n $query->contain(['Files' => function ($q) use ($sfw, $containLimit) {\n return $q->find('withContain', ['sfw' => $sfw, 'forceOrder' => true])\n ->limit($containLimit);\n }]);\n }\n if ($options['withNotes']) {\n $query->contain(['Notes' => function ($q) use ($sfw, $containLimit) {\n return $q->find('withContain', ['sfw' => $sfw, 'forceOrder' => true])\n ->limit($containLimit);\n }]);\n }\n if ($options['withPosts']) {\n $query->contain(['Posts' => function ($q) use ($sfw, $containLimit) {\n return $q->find('withContain', ['sfw' => $sfw, 'forceOrder' => true])\n ->limit($containLimit);\n }]);\n }\n if ($options['withProjects']) {\n $query->contain(['Projects' => function ($q) use ($sfw, $containLimit) {\n return $q->find('withContain', ['sfw' => $sfw, 'forceOrder' => true])\n ->limit($containLimit);\n }]);\n }\n\n // Return the query\n return $query;\n }",
"public function test_query_args_setup_with_merge() {\n\n\t\t$args = array(\n\t\t\t'include' => array( 1, 2, 3 ),\n\t\t\t'exclude' => array( 4, 5, 6 ),\n\t\t\t'sort' => array(\n\t\t\t\t'description' => 'ASC',\n\t\t\t\t'id' => 'DESC',\n\t\t\t),\n\t\t);\n\n\t\t$query = new LLMS_REST_API_Keys_Query( $args );\n\n\t\t$args['page'] = 1;\n\t\t$args['per_page'] = 10;\n\t\t$args['permissions'] = '';\n\t\t$args['user'] = array();\n\t\t$args['user_not_in'] = array();\n\n\t\tforeach ( $args as $arg => $expect ) {\n\t\t\t$this->assertEquals( $expect, $query->get( $arg ), $arg );\n\t\t}\n\n\t}",
"public function setOptions($options){ }",
"public function setOptions($options){ }",
"public function setBuilderQuery()\n {\n }",
"protected function setExtensionsQueryValues()\n {\n $this->setQueryControllerDefaults(\n $process_events = 0,\n $query_object = 'list',\n $get_customfields = 0,\n $use_special_joins = 0,\n $use_pagination = 0,\n $check_view_level_access = 0,\n $get_item_children = 0\n );\n\n return $this;\n }",
"public function setOptions($in_options) {\n $this->options = $in_options;\n }"
] | [
"0.6008149",
"0.5495753",
"0.5495753",
"0.5495753",
"0.5495753",
"0.5495753",
"0.5495753",
"0.5495753",
"0.5495753",
"0.5495753",
"0.5495753",
"0.5495753",
"0.5495753",
"0.5495753",
"0.5495753",
"0.5495753",
"0.54903734",
"0.54027927",
"0.53495127",
"0.5260358",
"0.51524246",
"0.5142113",
"0.50693077",
"0.5063843",
"0.5045316",
"0.5036178",
"0.5036178",
"0.5029333",
"0.50272614",
"0.5023"
] | 0.70473987 | 0 |
Set joins to query options. | public function joins($joins = []) {
$this->_queryOptions['joins'] = array_merge($this->_queryOptions['joins'], $joins);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function _buildJoinOld()\n {\n if (empty($this->_join)) {\n return;\n }\n\n foreach ($this->_join as $data) {\n list ($joinType, $joinTable, $joinCondition) = $data;\n\n if (is_object($joinTable)) {\n $joinStr = $this->_buildPair(\"\", $joinTable);\n } else {\n $joinStr = $joinTable;\n }\n\n $this->_query .= \" \" . $joinType . \" JOIN \" . $joinStr .\n (false !== stripos($joinCondition, 'using') ? \" \" : \" on \")\n . $joinCondition;\n }\n }",
"protected function _buildJoin()\n {\n if (empty ($this->_join))\n return;\n\n foreach ($this->_join as $data) {\n list ($joinType, $joinTable, $joinCondition) = $data;\n\n if (is_object($joinTable))\n $joinStr = $this->_buildPair(\"\", $joinTable);\n else\n $joinStr = $joinTable;\n\n $this->_query .= \" \" . $joinType . \" JOIN \" . $joinStr . \" on \" . $joinCondition;\n\n // Add join and query\n if (!empty($this->_joinAnd) && isset($this->_joinAnd[$joinStr])) {\n foreach ($this->_joinAnd[$joinStr] as $join_and_cond) {\n list ($concat, $varName, $operator, $val) = $join_and_cond;\n $this->_query .= \" \" . $concat . \" \" . $varName;\n $this->conditionToSql($operator, $val);\n }\n }\n }\n }",
"public function getJoins(): array\n {\n return $this->joins;\n }",
"public function setJoins(iterable $joins): self\n {\n $joins = is_array($joins) ? $joins : iterator_to_array($joins, false);\n $this->joins = new ArrayCollection($joins);\n\n return $this;\n }",
"public function joinClear() {\r\n self::$joins[$this->getTableName()] = array();\r\n Samus_CRUD::$joins = array();\r\n Samus_CRUD::$joinsWith = array();\r\n }",
"protected function getJoins()\n {\n return array_get($this->searchable, 'joins', []);\n }",
"abstract protected function getFetchJoins();",
"public function getJoins()\n {\n return $this->joins;\n }",
"public function getJoins()\n {\n return $this->joins;\n }",
"protected function getJoins()\n {\n return \\Arr::get($this->searchable, 'joins', []);\n }",
"protected function join($joinTable,$connection,$type=\"inner\"){\n\t\tforeach($connection as $col=>$val){\n\t\t\t$cond = \"$this->table.$col = $joinTable.$val\";\n\t\t}\n\t\tif(!$this->sql_join){\n\t\t\t$this->sql_join =\" $type JOIN $joinTable ON $cond\";\n\t\t}else{\n\t\t\t$this->sql_join .=\" $type JOIN $joinTable ON $cond\";\n\t\t}\n\t\treturn $this;\n\t}",
"public function prepareOptions(array $options = array(), $joinOnColumn = 'e.guid') {\n if (! $this->includeCollection && ! $this->includeOthers) {\n // return none\n $options['wheres'][] = \"(1 = 2)\";\n return $options;\n }\n $tableAlias = self::getTableAlias();\n $guid = $this->collection ? $this->collection->get('guid') : 0;\n if (empty($options['order_by'])) {\n $options['order_by'] = self::DEFAULT_ORDER;\n }\n global $CONFIG;\n $join = \"JOIN {$CONFIG->dbprefix}xcollection_items {$tableAlias} \"\n . \"ON ({$joinOnColumn} = {$tableAlias}.item AND {$tableAlias}.guid = $guid)\";\n if ($this->includeOthers) {\n $join = \"LEFT {$join}\";\n }\n $options['joins'][] = $join;\n if ($this->includeCollection) {\n $order = \"{$tableAlias}.priority\";\n if ($this->collectionItemsFirst != $this->isReversed) {\n $order = \"- $order\";\n }\n if ($this->collectionItemsFirst) {\n $order .= \" DESC\";\n }\n $options['order_by'] = \"{$order}, {$options['order_by']}\";\n } else {\n $options['wheres'][] = \"({$tableAlias}.item IS NULL)\";\n }\n return $options;\n }",
"private function get_joins()\n {\n $conf = $this->pObj->conf;\n $mode = $this->pObj->piVar_mode;\n $view = $this->pObj->view;\n\n $str_left_join = false;\n\n $viewWiDot = $view . '.';\n $conf_view = $conf[ 'views.' ][ $viewWiDot ][ $mode . '.' ];\n\n $arr_return[ 'error' ][ 'status' ] = false;\n\n\n ////////////////////////////////////////////////////////////////////\n //\n // Tables used?\n\n if ( count( $this->pObj->arr_realTables_arrFields ) < 1 )\n {\n if ( $this->pObj->b_drs_sql || $this->pObj->b_drs_error )\n {\n t3lib_div::devlog( '[ERROR/SQL] There isn\\'t any table used.', $this->pObj->extKey, 3 );\n t3lib_div::devlog( '[HELP/SQL] There has to be the local table at least!', $this->pObj->extKey, 1 );\n t3lib_div::devlog( '[ERROR/SQL] ABORT (No relation building!)', $this->pObj->extKey, 3 );\n }\n $str_header = '<h1 style=\"color:red\">' . $this->pObj->pi_getLL( 'error_sql_h1' ) . '</h1>';\n $str_prompt = '<p style=\"color:red; font-weight:bold;\">' . $this->pObj->pi_getLL( 'error_table_no' ) . '</p>';\n $arr_return[ 'error' ][ 'status' ] = true;\n $arr_return[ 'error' ][ 'header' ] = $str_header;\n $arr_return[ 'error' ][ 'prompt' ] = $str_prompt;\n return $arr_return;\n }\n\n\n ////////////////////////////////////////////////////////////////////\n //\n // Do we have tables for a simple relation building?\n\n if ( is_array( $conf_view[ 'relations.' ][ 'simple.' ] ) )\n {\n if ( !is_array( $this->arr_relations_mm_simple ) )\n {\n $this->arr_relations_mm_simple = array();\n }\n $this->arr_relations_mm_simple[ 'simple' ] = $conf_view[ 'relations.' ][ 'simple.' ];\n if ( $this->pObj->b_drs_sql )\n {\n t3lib_div::devlog( '[INFO/SQL] relations.simple is configured.', $this->pObj->extKey, 0 );\n }\n }\n // Do we have tables for a simple relation building?\n ////////////////////////////////////////////////////////////////////\n //\n // Do we have tables for a MM relation building?\n\n if ( is_array( $conf_view[ 'relations.' ][ 'mm.' ] ) )\n {\n if ( !is_array( $this->arr_relations_mm_simple ) )\n {\n $this->arr_relations_mm_simple = array();\n }\n $this->arr_relations_mm_simple[ 'MM' ] = $conf_view[ 'relations.' ][ 'mm.' ];\n if ( $this->pObj->b_drs_sql )\n {\n t3lib_div::devlog( '[INFO/SQL] relations.mm is configured.', $this->pObj->extKey, 0 );\n }\n }\n // Do we have tables for a MM relation building?\n // RETURN there isn't any table\n if ( empty( $this->arr_relations_mm_simple ) )\n {\n // We don't have any table. Return.\n if ( $this->pObj->b_drs_sql )\n {\n t3lib_div::devlog( '[INFO/SQL] Nothing to do. There is no relation.', $this->pObj->extKey, 0 );\n }\n return $arr_return;\n }\n // RETURN there isn't any table\n // Do we have tables for relation building?\n //////////////////////////////////////////////////////////////////\n //\n // RETURN, if relation isn't MM or isn't simple\n\n if ( is_array( $this->arr_relations_mm_simple ) )\n {\n foreach ( $this->arr_relations_mm_simple as $relation => $tables )\n {\n if ( $relation != 'MM' && $relation != 'simple' )\n {\n if ( $this->pObj->b_drs_sql || $this->pObj->b_drs_error )\n {\n t3lib_div::devlog( '[ERROR/SQL] There is a undefined relation type: \\'' . $relation . '\\'', $this->pObj->extKey, 3 );\n t3lib_div::devlog( '[HELP/SQL] There has to be the local table at least!', $this->pObj->extKey, 1 );\n t3lib_div::devlog( '[ERROR/SQL] ABORT (No relation building!)', $this->pObj->extKey, 3 );\n }\n $str_header = '<h1 style=\"color:red\">ERROR Relation Building</h1>';\n $str_prompt = '<p style=\"color:red; font-weight:bold;\">relations.' . $relation . ' isn\\'t defined.</p>';\n $arr_return[ 'error' ][ 'status' ] = true;\n $arr_return[ 'error' ][ 'header' ] = $str_header;\n $arr_return[ 'error' ][ 'prompt' ] = $str_prompt;\n return $arr_return;\n }\n }\n }\n // RETURN, if relation isn't MM or simple\n\n\n $str_full_join = false;\n\n\n //////////////////////////////////////////////////////////////////\n //\n // MM-relation-building\n\n $tables = $this->arr_relations_mm_simple[ 'MM' ];\n if ( is_array( $tables ) )\n {\n if ( $this->pObj->b_drs_sql )\n {\n t3lib_div::devlog( '[INFO/SQL] views.' . $viewWiDot . $mode . ' has configured MM relations.', $this->pObj->extKey, 0 );\n }\n //////////////////////////////////\n //\n // Convert Array\n // from: [\"tt_news.\"][\"tt_news_cat_mm\"] = \"tt_news_cat\"\n // to: [\"tt_news\"][\"tt_news_cat_mm\"] = \"tt_news_cat\"\n foreach ( ( array ) $tables as $localTable => $localFields )\n {\n $str_dot = false;\n if ( substr( $localTable, -1 ) == '.' )\n {\n $tableWoDot = substr( $localTable, 0, strlen( $localTable ) - 1 );\n $tables[ $tableWoDot ] = $tables[ $localTable ];\n unset( $tables[ $localTable ] );\n }\n }\n // Convert Array\n// var_dump($tables);\n// exit;\n // array[\"tx_ships_main\"][\"tx_ships_main_g2_shipowner_mm\"] = \"tx_ships_owner\"\n // array[\"tx_ships_main\"][\"tx_ships_main_g3_application_mm\"] = \"tx_ships_application\"\n // array[\"tx_ships_main\"][\"tx_ships_main_g3_rigortype_mm\"] = \"tx_ships_rigortype\"\n // ...\n // Loop: tables\n foreach ( $tables as $localTable => $foreignTables )\n {\n //var_dump($foreignTables);\n // array[\"tx_ships_main_g2_shipowner_mm\"] = \"tx_ships_owner\"\n // array[\"tx_ships_main_g3_application_mm\"] = \"tx_ships_application\"\n // array[\"tx_ships_main_g3_rigortype_mm\"] = \"tx_ships_rigortype\"\n // array[\"tx_ships_main_g3_powersystem_mm\"] = ...\n // Load the TCA, if we don't have an table.columns array\n if ( !is_array( $GLOBALS[ 'TCA' ][ $localTable ][ 'columns' ] ) )\n {\n t3lib_div::loadTCA( $localTable );\n if ( $this->pObj->b_drs_localisation )\n {\n t3lib_div::devlog( '[INFO/SQL] $GLOBALS[\\'TCA\\'][\\'' . $localTable . '\\'] is loaded.', $this->pObj->extKey, 0 );\n }\n }\n // Load the TCA, if we don't have an table.columns array\n // Loop: foreignTables\n foreach ( ( array ) $foreignTables as $mmTable => $foreignTable )\n {\n // foreignTable is an element in the array of the real tables\n if ( in_array( $foreignTable, array_keys( $this->pObj->arr_realTables_arrFields ) ) )\n {\n // #9697, 100912, dwildt\n $bool_opposite = false;\n if ( !empty( $this->arr_relations_opposite[ $localTable ][ $mmTable ][ 'MM_opposite_field' ] ) )\n {\n $bool_opposite = true;\n }\n // #9697, 100912, dwildt\n // left join: true\n if ( $this->b_left_join )\n {\n // #9697, 100912, dwildt\n if ( $bool_opposite )\n {\n $str_left_join_uidlocal = ' LEFT JOIN ' . $mmTable .\n ' ON ( ' . $localTable . '.uid = ' . $mmTable . '.uid_foreign )';\n }\n if ( !$bool_opposite )\n {\n $str_left_join_uidlocal = ' LEFT JOIN ' . $mmTable .\n ' ON ( ' . $localTable . '.uid = ' . $mmTable . '.uid_local )';\n }\n // #9697, 100912, dwildt\n // Use current LEFT JOIN once only\n if ( strpos( $str_left_join, $str_left_join_uidlocal ) === false )\n {\n if ( $this->pObj->b_drs_sql )\n {\n t3lib_div::devlog( '[INFO/SQL] ' . $localTable . ' get a LEFT JOIN to ' . $foreignTable . '.', $this->pObj->extKey, 0 );\n }\n $str_left_join = $str_left_join . $str_left_join_uidlocal;\n }\n\n $str_enablefields_foreign = $this->pObj->cObj->enableFields( $foreignTable );\n $str_pidStatement = $this->str_andWherePid( $foreignTable );\n $str_pidStatement = ' AND ' . $str_pidStatement . ' ';\n\n // #9697, 100912, dwildt\n // Opposite relation: true\n if ( $bool_opposite )\n {\n $str_left_join_uidforeign = ' LEFT JOIN ' . $foreignTable .\n ' ON ( ' .\n $mmTable . '.uid_local = ' . $foreignTable . '.uid' .\n $str_enablefields_foreign .\n $str_pidStatement .\n ' )';\n }\n // Opposite relation: true\n // Opposite relation: false\n if ( !$bool_opposite )\n {\n $str_left_join_uidforeign = ' LEFT JOIN ' . $foreignTable .\n ' ON ( ' .\n $mmTable . '.uid_foreign = ' . $foreignTable . '.uid' .\n $str_enablefields_foreign .\n $str_pidStatement .\n ' )';\n }\n // Opposite relation: false\n // #9697, 100912, dwildt\n // Use current LEFT JOIN once only\n if ( strpos( $str_left_join, $str_left_join_uidforeign ) === false )\n {\n $str_left_join = $str_left_join . $str_left_join_uidforeign;\n }\n // Use current LEFT JOIN once only\n }\n // left join: true\n // left join: false\n if ( !$this->b_left_join )\n {\n if ( $this->pObj->b_drs_sql )\n {\n t3lib_div::devlog( '[INFO/SQL] ' . $localTable . ' get a FULL JOIN to ' . $foreignTable . '.', $this->pObj->extKey, 0 );\n }\n // #9697, 100912, dwildt\n if ( $bool_opposite )\n {\n $str_full_join .= ' AND ' . $localTable . '.uid = ' . $mmTable . '.uid_foreign' .\n ' AND ' . $mmTable . '.uid_local = ' . $foreignTable . '.uid';\n }\n if ( !$bool_opposite )\n {\n $str_full_join .= ' AND ' . $localTable . '.uid = ' . $mmTable . '.uid_local' .\n ' AND ' . $mmTable . '.uid_foreign = ' . $foreignTable . '.uid';\n }\n // #9697, 100912, dwildt\n }\n // left join: false\n // Add the mm table to the fetched tables, if it is new\n if ( !in_array( $mmTable, array_keys( $this->pObj->arr_realTables_arrFields ) ) )\n {\n // Add every new table.field to the global array arr_realTables_arrFields\n $this->pObj->arr_realTables_arrFields[ $mmTable ][] = 'uid_local';\n $this->pObj->arr_realTables_arrFields[ $mmTable ][] = 'uid_foreign';\n\n // 091128: ADDED (in context with table_mm.sorting)\n $keys_mmTable = array_keys( ($GLOBALS[ 'TYPO3_DB' ]->admin_get_fields( $mmTable ) ) );\n if ( in_array( 'sorting', $keys_mmTable ) )\n {\n $this->pObj->arr_realTables_arrFields[ $mmTable ][] = 'sorting';\n // Add every new table.field to the global array consolidate\n $this->pObj->arrConsolidate[ 'addedTableFields' ][] = $mmTable . '.sorting';\n $this->pObj->arrConsolidate[ 'select' ][ 'mmSortingTableFields' ][] = $mmTable . '.sorting';\n }\n // 091128: ADDED (in context with table_mm.sorting)\n // 13803, 110313, dwildt\n if ( in_array( 'sorting_foreign', $keys_mmTable ) )\n {\n $this->pObj->arr_realTables_arrFields[ $mmTable ][] = 'sorting_foreign';\n // Add every new table.field to the global array consolidate\n $this->pObj->arrConsolidate[ 'addedTableFields' ][] = $mmTable . '.sorting_foreign';\n $this->pObj->arrConsolidate[ 'select' ][ 'mmSortingTableFields' ][] = $mmTable . '.sorting_foreign';\n }\n // 13803, 110313, dwildt\n }\n // Add the mm table to the fetched tables, if it is new\n // Add the foreign table to the fetched tables, if it is new\n if ( !in_array( $foreignTable, array_keys( $this->pObj->arr_realTables_arrFields ) ) )\n {\n $this->pObj->arr_realTables_arrFields[ $foreignTable ][] = 'uid';\n }\n // Add the foreign table to the fetched tables, if it is new\n }\n // foreignTable is an element in the array of the real tables\n }\n // Loop: foreignTables\n }\n // Loop: tables\n }\n\n // MM-relation-building\n //////////////////////////////////////////////////////////////////\n //\n // simple-relation-building\n\n $tables = $this->arr_relations_mm_simple[ 'simple' ];\n if ( is_array( $tables ) )\n {\n //////////////////////////////////\n //\n // Convert Array\n // from: [\"tt_news\"][\"cruser_id\"] = \"be_users\"\n // to: [\"tt_news.cruser_id\"] = \"be_users\"\n // LOOP tables\n foreach ( ( array ) $tables as $keyTable => $arrFields )\n {\n foreach ( ( array ) $arrFields as $keyField => $valueField )\n {\n $str_dot = false;\n if ( substr( $keyTable, -1 ) != '.' )\n {\n $str_dot = '.';\n }\n $tables[ $keyTable . $str_dot . $keyField ] = $valueField;\n unset( $tables[ $keyTable ][ $keyField ] );\n }\n unset( $tables[ $keyTable ] );\n }\n // LOOP tables\n // LOOP tables\n foreach ( ( array ) $tables as $localTableField => $foreignTable )\n {\n list ($localTable, $localField) = explode( '.', $localTableField );\n // #11650, cweiske, 101223\n //$foreignTableField = $foreignTable.'.uid';\n if ( strpos( $foreignTable, '.' ) !== false )\n {\n list($foreignTable, $foreignTableField) = explode( '.', $foreignTable );\n }\n else\n {\n $foreignTableField = $foreignTable . '.uid';\n }\n\n // #32254, 111201, dwildt+\n $str_enablefields_foreign = $this->pObj->cObj->enableFields( $foreignTable );\n $str_pidStatement = $this->str_andWherePid( $foreignTable );\n $str_pidStatement = \" AND \" . $str_pidStatement . \" \";\n // #32254, 111201, dwildt+\n // #11843, fconstien, 110310\n $localTableFieldMaxItems = $GLOBALS[ 'TCA' ][ $localTable ][ 'columns' ][ $localField ][ 'config' ][ 'maxitems' ];\n switch ( true )\n {\n case($localTableFieldMaxItems == 1):\n // #41004, 121209, cweikse, 1-\n //$str_query_part = \" \" . $localTableField . \" = \" . $foreignTableField .\n // #41004, 121209, cweikse, 1+\n $str_query_part = \" \" . $localTableField . \" <=> \" . $foreignTableField .\n \" \" . $str_enablefields_foreign .\n \" \" . $str_pidStatement;\n break;\n case($localTableFieldMaxItems == 2):\n $str_query_part = \" ( \" .\n // #41004, 121209, cweikse, 1-\n// \" \" . $localTableField . \" = \" . $foreignTableField . \" OR \" .\n // #41004, 121209, cweikse, 1+\n \" \" . $localTableField . \" <=> \" . $foreignTableField . \" OR \" .\n \" \" . $localTableField . \" LIKE CONCAT(\" . $foreignTableField . \", ',%') OR \" .\n \" \" . $localTableField . \" LIKE CONCAT('%,', \" . $foreignTableField .\n \" )\" .\n \" \" . $str_enablefields_foreign .\n \" \" . $str_pidStatement;\n break;\n default:\n $str_query_part = \" ( \" .\n // #41004, 121209, cweikse, 1-\n// \" \" . $localTableField . \" = \" . $foreignTableField . \" OR \" .\n // #41004, 121209, cweikse, 1+\n \" \" . $localTableField . \" <=> \" . $foreignTableField . \" OR \" .\n \" \" . $localTableField . \" LIKE CONCAT(\" . $foreignTableField . \", ',%') OR \" .\n \" \" . $localTableField . \" LIKE CONCAT('%,', \" . $foreignTableField . \", ',%') OR \" .\n \" \" . $localTableField . \" LIKE CONCAT('%,', \" . $foreignTableField . \") \" .\n \" )\" .\n \" \" . $str_enablefields_foreign .\n \" \" . $str_pidStatement;\n }\n // #11843, fconstien, 110310\n // #11650, cweiske, 101223\n if ( $this->b_left_join )\n {\n // #32254, 11120, dwildt-\n //$str_enablefields_foreign = $this->pObj->cObj->enableFields($foreignTable);\n //$str_pidStatement = $this->str_andWherePid($foreignTable);\n //$str_pidStatement = \" AND \" . $str_pidStatement . \" \" ;\n // #32254, 111201, dwildt-\n $str_left_join_uidforeign = \" LEFT JOIN \" . $foreignTable .\n \" ON ( \" .\n $str_query_part .\n \" )\";\n // Use current LEFT JOIN once only\n if ( strpos( $str_left_join, $str_left_join_uidforeign ) === false )\n {\n $str_left_join .= $str_left_join_uidforeign;\n }\n }\n if ( !$this->b_left_join )\n {\n // The AND clause below makes only sense, if it is a 1:1-relation!\n $str_full_join .= \" AND (\" .\n $str_query_part .\n \" )\";\n }\n // Add the foreign table to the fetched tables, if it is new\n if ( !in_array( $foreignTable, array_keys( $this->pObj->arr_realTables_arrFields ) ) )\n {\n $this->pObj->arr_realTables_arrFields[ $foreignTable ][] = 'uid';\n }\n }\n // LOOP tables\n }\n // simple-relation-building\n //////////////////////////////////////////////////////////////////\n //\n // Building $arr_return\n\n if ( $this->b_left_join )\n {\n $arr_return[ 'data' ][ 'left_join' ] = $str_left_join;\n if ( $this->pObj->b_drs_sql )\n {\n t3lib_div::devlog( '[INFO/SQL] ' . $str_left_join, $this->pObj->extKey, 0 );\n }\n }\n if ( !$this->b_left_join )\n {\n $arr_return[ 'data' ][ 'full_join' ] = $str_full_join;\n if ( $this->pObj->b_drs_sql )\n {\n t3lib_div::devlog( '[INFO/SQL] ' . $str_full_join, $this->pObj->extKey, 0 );\n }\n }\n return $arr_return;\n // Building $arr_return\n }",
"protected function joinAlias()\n\t{\n\t\tif($this->listQry)\n\t\t{\n\t\t\tpreg_match_all(\"/`?#([\\w-]+)`?\\s*(as|AS)\\s*([\\w-])/im\",$this->listQry,$matches);\n\t\t\t$keys = array();\n\t\t\tforeach($matches[1] AS $k=>$v)\n\t\t\t{\n\t\t\t\tif(varset($matches[3][$k]))\n\t\t\t\t{\n\t\t\t\t\t$this->joinAlias[$v] = $matches[3][$k]; // array. eg $this->joinAlias['core_media'] = 'm';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$keys[] = $matches[3][$k];\n\t\t\t}\n\t\t\t\n\t\t\tforeach($keys as $alias)\n\t\t\t{\n\t\t\t\tpreg_match_all(\"/\".$alias.\"\\.([\\w]*)/i\",$this->listQry,$match);\n\t\t\t\tforeach($match[1] as $k=>$m)\n\t\t\t\t{\n\t\t\t\t\t$this->joinField[$m] = $match[0][$k];\t\t\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telseif($this->tableJoin)\n\t\t{\n\t\t\tforeach ($this->tableJoin as $tbl => $data) \n\t\t\t{\n\t\t\t\t$matches = explode('.', $tbl, 2);\n\t\t\t\t$this->joinAlias[$matches[1]] = $matches[0]; // array. eg $this->joinAlias['core_media'] = 'm';\n\t\t\t\t//'user_name'=>'u.user_name'\n\t\t\t\tif(isset($data['fields']) && $data['fields'] !== '*')\n\t\t\t\t{\n\t\t\t\t\t$tmp = explode(',', $data['fields']);\n\t\t\t\t\tforeach ($tmp as $field) \n\t\t\t\t\t{\n\t\t\t\t\t\t$this->joinField[$field] = $matches[0].'.'.$field;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public function setJoin($join) {\n $this->join = strtolower($join);\n }",
"public function getJoins(): Collection\n {\n return $this->joins;\n }",
"public function join($join_with, $join_on) {\n\n\t}",
"protected function setClauses()\n {\n\n foreach ($this->join as $join) {\n $this->query->join($join['table'], $join['firstConstraint'], $join['operator'], $join['secondConstraint']);\n }\n\n foreach ($this->wheres as $where) {\n\n if ($where['column'] instanceof Closure) {\n $this->query->where($where['column']);\n } else {\n $this->query->where($where['column'], $where['operator'], $where['value']);\n }\n\n }\n\n foreach ($this->orWhere as $orWhere) {\n $this->query->orWhere($orWhere['column'], $orWhere['operator'], $orWhere['value']);\n }\n\n foreach ($this->whereIns as $whereIn) {\n $this->query->whereIn($whereIn['column'], $whereIn['values']);\n }\n\n foreach ($this->orderBys as $orders) {\n $this->query->orderBy($orders['column'], $orders['direction']);\n }\n\n if (isset($this->take) and !is_null($this->take)) {\n $this->query->take($this->take);\n }\n\n if (isset($this->limit) and !is_null($this->limit)) {\n $this->query->limit($this->limit);\n }\n\n return $this;\n }",
"function _build_join($join_data)\n\t{\n\t\t$str = '';\n\t\t\n\t\tforeach($join_data as $table => $opts)\n\t\t{\n\t\t\tif($opts['type'] != '')\n\t\t\t{\n\t\t\t\t$type = strtoupper(trim($opts['type']));\n\n\t\t\t\tif ( ! in_array($type, array('LEFT', 'RIGHT', 'OUTER', 'INNER', 'LEFT OUTER', 'RIGHT OUTER'), TRUE))\n\t\t\t\t{\n\t\t\t\t\t$type = '';\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$str .= \"$type \";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$str .= 'JOIN ' . $this->_protect_identifiers($this->_add_prefix($table));\n\t\t\t\n\t\t\tif(isset($opts['cond']))\n\t\t\t{\n\t\t\t\t$str .= ' ON ';\n\t\t\t\t\n\t\t\t\tif(is_object($opts['cond']))\n\t\t\t\t{\n\t\t\t\t\t$opts['cond']->q_to_prefix = $this->q_to_prefix;\n\t\t\t\t\t\n\t\t\t\t\t$str .= $opts['cond']->get_select_sql();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t$str .= $this->_prefix($opts['cond']);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t$str .= \"\\n\";\n\t\t}\n\t\t\n\t\treturn $str;\n\t}",
"public function getJoinsSQL()\n {\n $sql = \"\";\n\n $bt_tables = array();\n foreach ($this->_table_names as $table){\n $bt_tables[] = \"`$table`\";\n }\n\n foreach ($this->_join as $join) {\n $sql .= \" \".$join[\"type\"].\" \";\n $join_table = explode(\" \", $join[\"table_name\"]);\n if (in_array($join_table[0], $this->_table_names)){\n $sql .= \"`\".$join_table[0].\"` \".$join_table[1];\n } else {\n $sql .= $join[\"table_name\"].\" \";\n }\n if (isset($join[\"table_alias\"])) {\n $sql .= $join[\"table_alias\"].\" \";\n }\n $sql .= \"ON \";\n $on = str_replace($this->_table_names, $bt_tables, $join[\"on\"]);\n $sql .= $on[0].\" \".$on[1].\" \".$on[2];\n }\n\n return $sql;\n }",
"public function applyJoins(QueryBuilder $qb, $joins)\n {\n QueryUtils::applyJoins($qb, $joins);\n }",
"function get_join_sql() {\n $joins=array(\"LEFT OUTER JOIN {$this->reefine->dbprefix}playa_relationships {$this->table_alias} \" .\n \"ON {$this->table_alias}.parent_entry_id = {$this->channel_titles_alias}.entry_id \" .\n \"AND {$this->table_alias}.parent_field_id = {$this->relation_field_id} \");\n \n // check for entry status as well\n $joins[] = \"LEFT OUTER JOIN {$this->reefine->dbprefix}channel_titles {$this->table_alias_titles} \" .\n \"ON {$this->table_alias_titles}.entry_id = {$this->table_alias}.child_entry_id \" .\n \"AND \" . $this->reefine->get_status_where_clause($this->reefine->status,\"{$this->table_alias_titles}.status\");\n \n // include channel_data only if we need fields from the related entry\n if ($this->child_field_name!='' && $this->child_field_name!='title') {\n $joins[] = \"LEFT OUTER JOIN {$this->reefine->dbprefix}channel_data {$this->table_alias_data} \" .\n \"ON {$this->table_alias_data}.entry_id = {$this->table_alias_titles}.entry_id \";\n }\n return $joins;\n}",
"protected function _buildListJoin($options)\n\t{\n\t\t$join = array();\n\n\t\t// count aliases\n\t\t$join[] = 'left join ' . $this->_db->quoteName('#__sh404sef_aliases') . ' as a';\n\t\t$join[] = 'on a.' . $this->_db->quoteName('newurl') . ' = u1.' . $this->_db->quoteName('newurl');\n\n\t\t// get page ids\n\t\t$join[] = 'left join ' . $this->_db->quoteName('#__sh404sef_pageids') . ' as pg';\n\t\t$join[] = 'on pg.' . $this->_db->quoteName('newurl') . ' = u1.' . $this->_db->quoteName('newurl');\n\n\t\t// aggregate clauses\n\t\t$join = (count($join) ? ' ' . implode(' ', $join) : '');\n\n\t\treturn $join;\n\t}",
"protected function makeJoins(\\Illuminate\\Database\\Eloquent\\Builder $query)\n {\n foreach ($this->getJoins() as $table => $keys) {\n $query->join($table, function ($join) use ($keys) {\n $join->on($keys[0], '=', $keys[1]);\n if (array_key_exists(2, $keys) && array_key_exists(3, $keys)) {\n $join->where($keys[2], '=', $keys[3]);\n }\n });\n }\n }",
"public function addJoin($join_arrays) {\n $join ='';\n if(!empty($join_arrays)) {\n if(is_array($join_arrays)) {\n foreach($join_arrays as $join_array) {\n $join .= ' LEFT JOIN '.$this->dbname.'.'.$join_array[0].' ON '.$join_array[1].' = '.$join_array[2].' ';\n }\n }\n else if(is_string($join_arrays)) {\n $join .= $join_arrays;\n }\n\n }\n\n $this->join_string .= $join;\n\n }",
"abstract function appendJoin(AbstractQuery &$query, $sourceAlias, $targetAlias, $left_join = false);",
"public static function doSelectJoinAll(Criteria $c, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n\t{\n\n foreach (sfMixer::getCallables('BaseMissionLegPeer:doSelectJoinAll:doSelectJoinAll') as $callable)\n {\n call_user_func($callable, 'BaseMissionLegPeer', $c, $con);\n }\n\n\n\t\t$c = clone $c;\n\n\t\t// Set the correct dbName if it has not been overridden\n\t\tif ($c->getDbName() == Propel::getDefaultDB()) {\n\t\t\t$c->setDbName(self::DATABASE_NAME);\n\t\t}\n\n\t\tMissionLegPeer::addSelectColumns($c);\n\t\t$startcol2 = (MissionLegPeer::NUM_COLUMNS - MissionLegPeer::NUM_LAZY_LOAD_COLUMNS);\n\n\t\tMissionPeer::addSelectColumns($c);\n\t\t$startcol3 = $startcol2 + (MissionPeer::NUM_COLUMNS - MissionPeer::NUM_LAZY_LOAD_COLUMNS);\n\n\t\tAirportPeer::addSelectColumns($c);\n\t\t$startcol4 = $startcol3 + (AirportPeer::NUM_COLUMNS - AirportPeer::NUM_LAZY_LOAD_COLUMNS);\n\n\t\tAirportPeer::addSelectColumns($c);\n\t\t$startcol5 = $startcol4 + (AirportPeer::NUM_COLUMNS - AirportPeer::NUM_LAZY_LOAD_COLUMNS);\n\n\t\tCoordinatorPeer::addSelectColumns($c);\n\t\t$startcol6 = $startcol5 + (CoordinatorPeer::NUM_COLUMNS - CoordinatorPeer::NUM_LAZY_LOAD_COLUMNS);\n\n\t\tPilotPeer::addSelectColumns($c);\n\t\t$startcol7 = $startcol6 + (PilotPeer::NUM_COLUMNS - PilotPeer::NUM_LAZY_LOAD_COLUMNS);\n\n\t\tMemberPeer::addSelectColumns($c);\n\t\t$startcol8 = $startcol7 + (MemberPeer::NUM_COLUMNS - MemberPeer::NUM_LAZY_LOAD_COLUMNS);\n\n\t\tPilotPeer::addSelectColumns($c);\n\t\t$startcol9 = $startcol8 + (PilotPeer::NUM_COLUMNS - PilotPeer::NUM_LAZY_LOAD_COLUMNS);\n\n\t\tMemberPeer::addSelectColumns($c);\n\t\t$startcol10 = $startcol9 + (MemberPeer::NUM_COLUMNS - MemberPeer::NUM_LAZY_LOAD_COLUMNS);\n\n\t\tMissionReportPeer::addSelectColumns($c);\n\t\t$startcol11 = $startcol10 + (MissionReportPeer::NUM_COLUMNS - MissionReportPeer::NUM_LAZY_LOAD_COLUMNS);\n\n\t\tPilotAircraftPeer::addSelectColumns($c);\n\t\t$startcol12 = $startcol11 + (PilotAircraftPeer::NUM_COLUMNS - PilotAircraftPeer::NUM_LAZY_LOAD_COLUMNS);\n\n\t\tFboPeer::addSelectColumns($c);\n\t\t$startcol13 = $startcol12 + (FboPeer::NUM_COLUMNS - FboPeer::NUM_LAZY_LOAD_COLUMNS);\n\n\t\t$c->addJoin(array(MissionLegPeer::MISSION_ID,), array(MissionPeer::ID,), $join_behavior);\n\t\t$c->addJoin(array(MissionLegPeer::FROM_AIRPORT_ID,), array(AirportPeer::ID,), $join_behavior);\n\t\t$c->addJoin(array(MissionLegPeer::TO_AIRPORT_ID,), array(AirportPeer::ID,), $join_behavior);\n\t\t$c->addJoin(array(MissionLegPeer::COORDINATOR_ID,), array(CoordinatorPeer::ID,), $join_behavior);\n\t\t$c->addJoin(array(MissionLegPeer::PILOT_ID,), array(PilotPeer::ID,), $join_behavior);\n\t\t$c->addJoin(array(MissionLegPeer::COPILOT_ID,), array(MemberPeer::ID,), $join_behavior);\n\t\t$c->addJoin(array(MissionLegPeer::BACKUP_PILOT_ID,), array(PilotPeer::ID,), $join_behavior);\n\t\t$c->addJoin(array(MissionLegPeer::BACKUP_COPILOT_ID,), array(MemberPeer::ID,), $join_behavior);\n\t\t$c->addJoin(array(MissionLegPeer::MISSION_REPORT_ID,), array(MissionReportPeer::ID,), $join_behavior);\n\t\t$c->addJoin(array(MissionLegPeer::PILOT_AIRCRAFT_ID,), array(PilotAircraftPeer::ID,), $join_behavior);\n\t\t$c->addJoin(array(MissionLegPeer::FBO_ID,), array(FboPeer::ID,), $join_behavior);\n\t\t$stmt = BasePeer::doSelect($c, $con);\n\t\t$results = array();\n\n\t\twhile ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$key1 = MissionLegPeer::getPrimaryKeyHashFromRow($row, 0);\n\t\t\tif (null !== ($obj1 = MissionLegPeer::getInstanceFromPool($key1))) {\n\t\t\t\t// We no longer rehydrate the object, since this can cause data loss.\n\t\t\t\t// See http://propel.phpdb.org/trac/ticket/509\n\t\t\t\t// $obj1->hydrate($row, 0, true); // rehydrate\n\t\t\t} else {\n\t\t\t\t$omClass = MissionLegPeer::getOMClass();\n\n\t\t\t\t$cls = substr('.'.$omClass, strrpos('.'.$omClass, '.') + 1);\n\t\t\t\t$obj1 = new $cls();\n\t\t\t\t$obj1->hydrate($row);\n\t\t\t\tMissionLegPeer::addInstanceToPool($obj1, $key1);\n\t\t\t} // if obj1 already loaded\n\n\t\t\t// Add objects for joined Mission rows\n\n\t\t\t$key2 = MissionPeer::getPrimaryKeyHashFromRow($row, $startcol2);\n\t\t\tif ($key2 !== null) {\n\t\t\t\t$obj2 = MissionPeer::getInstanceFromPool($key2);\n\t\t\t\tif (!$obj2) {\n\n\t\t\t\t\t$omClass = MissionPeer::getOMClass();\n\n\n\t\t\t\t\t$cls = substr('.'.$omClass, strrpos('.'.$omClass, '.') + 1);\n\t\t\t\t\t$obj2 = new $cls();\n\t\t\t\t\t$obj2->hydrate($row, $startcol2);\n\t\t\t\t\tMissionPeer::addInstanceToPool($obj2, $key2);\n\t\t\t\t} // if obj2 loaded\n\n\t\t\t\t// Add the $obj1 (MissionLeg) to the collection in $obj2 (Mission)\n\t\t\t\t$obj2->addMissionLeg($obj1);\n\t\t\t} // if joined row not null\n\n\t\t\t// Add objects for joined Airport rows\n\n\t\t\t$key3 = AirportPeer::getPrimaryKeyHashFromRow($row, $startcol3);\n\t\t\tif ($key3 !== null) {\n\t\t\t\t$obj3 = AirportPeer::getInstanceFromPool($key3);\n\t\t\t\tif (!$obj3) {\n\n\t\t\t\t\t$omClass = AirportPeer::getOMClass();\n\n\n\t\t\t\t\t$cls = substr('.'.$omClass, strrpos('.'.$omClass, '.') + 1);\n\t\t\t\t\t$obj3 = new $cls();\n\t\t\t\t\t$obj3->hydrate($row, $startcol3);\n\t\t\t\t\tAirportPeer::addInstanceToPool($obj3, $key3);\n\t\t\t\t} // if obj3 loaded\n\n\t\t\t\t// Add the $obj1 (MissionLeg) to the collection in $obj3 (Airport)\n\t\t\t\t$obj3->addMissionLegRelatedByFromAirportId($obj1);\n\t\t\t} // if joined row not null\n\n\t\t\t// Add objects for joined Airport rows\n\n\t\t\t$key4 = AirportPeer::getPrimaryKeyHashFromRow($row, $startcol4);\n\t\t\tif ($key4 !== null) {\n\t\t\t\t$obj4 = AirportPeer::getInstanceFromPool($key4);\n\t\t\t\tif (!$obj4) {\n\n\t\t\t\t\t$omClass = AirportPeer::getOMClass();\n\n\n\t\t\t\t\t$cls = substr('.'.$omClass, strrpos('.'.$omClass, '.') + 1);\n\t\t\t\t\t$obj4 = new $cls();\n\t\t\t\t\t$obj4->hydrate($row, $startcol4);\n\t\t\t\t\tAirportPeer::addInstanceToPool($obj4, $key4);\n\t\t\t\t} // if obj4 loaded\n\n\t\t\t\t// Add the $obj1 (MissionLeg) to the collection in $obj4 (Airport)\n\t\t\t\t$obj4->addMissionLegRelatedByToAirportId($obj1);\n\t\t\t} // if joined row not null\n\n\t\t\t// Add objects for joined Coordinator rows\n\n\t\t\t$key5 = CoordinatorPeer::getPrimaryKeyHashFromRow($row, $startcol5);\n\t\t\tif ($key5 !== null) {\n\t\t\t\t$obj5 = CoordinatorPeer::getInstanceFromPool($key5);\n\t\t\t\tif (!$obj5) {\n\n\t\t\t\t\t$omClass = CoordinatorPeer::getOMClass();\n\n\n\t\t\t\t\t$cls = substr('.'.$omClass, strrpos('.'.$omClass, '.') + 1);\n\t\t\t\t\t$obj5 = new $cls();\n\t\t\t\t\t$obj5->hydrate($row, $startcol5);\n\t\t\t\t\tCoordinatorPeer::addInstanceToPool($obj5, $key5);\n\t\t\t\t} // if obj5 loaded\n\n\t\t\t\t// Add the $obj1 (MissionLeg) to the collection in $obj5 (Coordinator)\n\t\t\t\t$obj5->addMissionLeg($obj1);\n\t\t\t} // if joined row not null\n\n\t\t\t// Add objects for joined Pilot rows\n\n\t\t\t$key6 = PilotPeer::getPrimaryKeyHashFromRow($row, $startcol6);\n\t\t\tif ($key6 !== null) {\n\t\t\t\t$obj6 = PilotPeer::getInstanceFromPool($key6);\n\t\t\t\tif (!$obj6) {\n\n\t\t\t\t\t$omClass = PilotPeer::getOMClass();\n\n\n\t\t\t\t\t$cls = substr('.'.$omClass, strrpos('.'.$omClass, '.') + 1);\n\t\t\t\t\t$obj6 = new $cls();\n\t\t\t\t\t$obj6->hydrate($row, $startcol6);\n\t\t\t\t\tPilotPeer::addInstanceToPool($obj6, $key6);\n\t\t\t\t} // if obj6 loaded\n\n\t\t\t\t// Add the $obj1 (MissionLeg) to the collection in $obj6 (Pilot)\n\t\t\t\t$obj6->addMissionLegRelatedByPilotId($obj1);\n\t\t\t} // if joined row not null\n\n\t\t\t// Add objects for joined Member rows\n\n\t\t\t$key7 = MemberPeer::getPrimaryKeyHashFromRow($row, $startcol7);\n\t\t\tif ($key7 !== null) {\n\t\t\t\t$obj7 = MemberPeer::getInstanceFromPool($key7);\n\t\t\t\tif (!$obj7) {\n\n\t\t\t\t\t$omClass = MemberPeer::getOMClass();\n\n\n\t\t\t\t\t$cls = substr('.'.$omClass, strrpos('.'.$omClass, '.') + 1);\n\t\t\t\t\t$obj7 = new $cls();\n\t\t\t\t\t$obj7->hydrate($row, $startcol7);\n\t\t\t\t\tMemberPeer::addInstanceToPool($obj7, $key7);\n\t\t\t\t} // if obj7 loaded\n\n\t\t\t\t// Add the $obj1 (MissionLeg) to the collection in $obj7 (Member)\n\t\t\t\t$obj7->addMissionLegRelatedByCopilotId($obj1);\n\t\t\t} // if joined row not null\n\n\t\t\t// Add objects for joined Pilot rows\n\n\t\t\t$key8 = PilotPeer::getPrimaryKeyHashFromRow($row, $startcol8);\n\t\t\tif ($key8 !== null) {\n\t\t\t\t$obj8 = PilotPeer::getInstanceFromPool($key8);\n\t\t\t\tif (!$obj8) {\n\n\t\t\t\t\t$omClass = PilotPeer::getOMClass();\n\n\n\t\t\t\t\t$cls = substr('.'.$omClass, strrpos('.'.$omClass, '.') + 1);\n\t\t\t\t\t$obj8 = new $cls();\n\t\t\t\t\t$obj8->hydrate($row, $startcol8);\n\t\t\t\t\tPilotPeer::addInstanceToPool($obj8, $key8);\n\t\t\t\t} // if obj8 loaded\n\n\t\t\t\t// Add the $obj1 (MissionLeg) to the collection in $obj8 (Pilot)\n\t\t\t\t$obj8->addMissionLegRelatedByBackupPilotId($obj1);\n\t\t\t} // if joined row not null\n\n\t\t\t// Add objects for joined Member rows\n\n\t\t\t$key9 = MemberPeer::getPrimaryKeyHashFromRow($row, $startcol9);\n\t\t\tif ($key9 !== null) {\n\t\t\t\t$obj9 = MemberPeer::getInstanceFromPool($key9);\n\t\t\t\tif (!$obj9) {\n\n\t\t\t\t\t$omClass = MemberPeer::getOMClass();\n\n\n\t\t\t\t\t$cls = substr('.'.$omClass, strrpos('.'.$omClass, '.') + 1);\n\t\t\t\t\t$obj9 = new $cls();\n\t\t\t\t\t$obj9->hydrate($row, $startcol9);\n\t\t\t\t\tMemberPeer::addInstanceToPool($obj9, $key9);\n\t\t\t\t} // if obj9 loaded\n\n\t\t\t\t// Add the $obj1 (MissionLeg) to the collection in $obj9 (Member)\n\t\t\t\t$obj9->addMissionLegRelatedByBackupCopilotId($obj1);\n\t\t\t} // if joined row not null\n\n\t\t\t// Add objects for joined MissionReport rows\n\n\t\t\t$key10 = MissionReportPeer::getPrimaryKeyHashFromRow($row, $startcol10);\n\t\t\tif ($key10 !== null) {\n\t\t\t\t$obj10 = MissionReportPeer::getInstanceFromPool($key10);\n\t\t\t\tif (!$obj10) {\n\n\t\t\t\t\t$omClass = MissionReportPeer::getOMClass();\n\n\n\t\t\t\t\t$cls = substr('.'.$omClass, strrpos('.'.$omClass, '.') + 1);\n\t\t\t\t\t$obj10 = new $cls();\n\t\t\t\t\t$obj10->hydrate($row, $startcol10);\n\t\t\t\t\tMissionReportPeer::addInstanceToPool($obj10, $key10);\n\t\t\t\t} // if obj10 loaded\n\n\t\t\t\t// Add the $obj1 (MissionLeg) to the collection in $obj10 (MissionReport)\n\t\t\t\t$obj10->addMissionLeg($obj1);\n\t\t\t} // if joined row not null\n\n\t\t\t// Add objects for joined PilotAircraft rows\n\n\t\t\t$key11 = PilotAircraftPeer::getPrimaryKeyHashFromRow($row, $startcol11);\n\t\t\tif ($key11 !== null) {\n\t\t\t\t$obj11 = PilotAircraftPeer::getInstanceFromPool($key11);\n\t\t\t\tif (!$obj11) {\n\n\t\t\t\t\t$omClass = PilotAircraftPeer::getOMClass();\n\n\n\t\t\t\t\t$cls = substr('.'.$omClass, strrpos('.'.$omClass, '.') + 1);\n\t\t\t\t\t$obj11 = new $cls();\n\t\t\t\t\t$obj11->hydrate($row, $startcol11);\n\t\t\t\t\tPilotAircraftPeer::addInstanceToPool($obj11, $key11);\n\t\t\t\t} // if obj11 loaded\n\n\t\t\t\t// Add the $obj1 (MissionLeg) to the collection in $obj11 (PilotAircraft)\n\t\t\t\t$obj11->addMissionLeg($obj1);\n\t\t\t} // if joined row not null\n\n\t\t\t// Add objects for joined Fbo rows\n\n\t\t\t$key12 = FboPeer::getPrimaryKeyHashFromRow($row, $startcol12);\n\t\t\tif ($key12 !== null) {\n\t\t\t\t$obj12 = FboPeer::getInstanceFromPool($key12);\n\t\t\t\tif (!$obj12) {\n\n\t\t\t\t\t$omClass = FboPeer::getOMClass();\n\n\n\t\t\t\t\t$cls = substr('.'.$omClass, strrpos('.'.$omClass, '.') + 1);\n\t\t\t\t\t$obj12 = new $cls();\n\t\t\t\t\t$obj12->hydrate($row, $startcol12);\n\t\t\t\t\tFboPeer::addInstanceToPool($obj12, $key12);\n\t\t\t\t} // if obj12 loaded\n\n\t\t\t\t// Add the $obj1 (MissionLeg) to the collection in $obj12 (Fbo)\n\t\t\t\t$obj12->addMissionLeg($obj1);\n\t\t\t} // if joined row not null\n\n\t\t\t$results[] = $obj1;\n\t\t}\n\t\t$stmt->closeCursor();\n\t\treturn $results;\n\t}",
"public function JoinAll() {\n $join = array();\n foreach($this->fields as $field) {\n if ($field->type == pdoMap_Dao_Metadata_Field::FIELD_TYPE_FK) {\n $ref = pdoMap::structure($field->adapter);\n if (!$ref) {\n throw new Exception(\n 'Could not join '.$field->bind.\n ' to an undefined table '.\n $field->adapter\n );\n }\n $join[] = sprintf(\n $this->sqlJoinFk,\n $this->escapeEntity($this->name.'_'.$field->name),\n $this->escapeEntity($field->name),\n $this->escapeTable($ref->name, $ref->db),\n $this->escapeEntity($ref->getPk()->name)\n );\n }\n } \n if (sizeof($join) == 0) return true; // have nothing to join\n return $this->Request(\n sprintf(\n $this->sqlAlterTable,\n $this->escapeTable(\n $this->name, \n $this->database\n ), // %1 (table name)\n implode(', ', $join) \n )\n ); \n }",
"public static function doSelectJoinAll(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN)\n\t{\n\t\t$criteria = clone $criteria;\n\n\t\t// Set the correct dbName if it has not been overridden\n\t\tif ($criteria->getDbName() == Propel::getDefaultDB()) {\n\t\t\t$criteria->setDbName(self::DATABASE_NAME);\n\t\t}\n\n\t\tWebsitePeer::addSelectColumns($criteria);\n\t\t$startcol2 = (WebsitePeer::NUM_COLUMNS - WebsitePeer::NUM_LAZY_LOAD_COLUMNS);\n\n\t\tCustomerPeer::addSelectColumns($criteria);\n\t\t$startcol3 = $startcol2 + (CustomerPeer::NUM_COLUMNS - CustomerPeer::NUM_LAZY_LOAD_COLUMNS);\n\n\t\tDomainPeer::addSelectColumns($criteria);\n\t\t$startcol4 = $startcol3 + (DomainPeer::NUM_COLUMNS - DomainPeer::NUM_LAZY_LOAD_COLUMNS);\n\n\t\tWebsiteTemplatePeer::addSelectColumns($criteria);\n\t\t$startcol5 = $startcol4 + (WebsiteTemplatePeer::NUM_COLUMNS - WebsiteTemplatePeer::NUM_LAZY_LOAD_COLUMNS);\n\n\t\tWebsiteAttributePeer::addSelectColumns($criteria);\n\t\t$startcol6 = $startcol5 + (WebsiteAttributePeer::NUM_COLUMNS - WebsiteAttributePeer::NUM_LAZY_LOAD_COLUMNS);\n\n\t\tHostPeer::addSelectColumns($criteria);\n\t\t$startcol7 = $startcol6 + (HostPeer::NUM_COLUMNS - HostPeer::NUM_LAZY_LOAD_COLUMNS);\n\n\t\t$criteria->addJoin(WebsitePeer::CUSTOMER_ID, CustomerPeer::ID, $join_behavior);\n\n\t\t$criteria->addJoin(WebsitePeer::PRIMARY_DOMAIN_ID, DomainPeer::ID, $join_behavior);\n\n\t\t$criteria->addJoin(WebsitePeer::TEMPLATE_ID, WebsiteTemplatePeer::ID, $join_behavior);\n\n\t\t$criteria->addJoin(WebsitePeer::WEBSITE_ATTRIBUTE_ID, WebsiteAttributePeer::ID, $join_behavior);\n\n\t\t$criteria->addJoin(WebsitePeer::HOST_ID, HostPeer::ID, $join_behavior);\n\n\t\t// symfony_behaviors behavior\n\t\tforeach (sfMixer::getCallables(self::getMixerPreSelectHook(__FUNCTION__)) as $sf_hook)\n\t\t{\n\t\t call_user_func($sf_hook, 'BaseWebsitePeer', $criteria, $con);\n\t\t}\n\n\t\t$stmt = BasePeer::doSelect($criteria, $con);\n\t\t$results = array();\n\n\t\twhile ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$key1 = WebsitePeer::getPrimaryKeyHashFromRow($row, 0);\n\t\t\tif (null !== ($obj1 = WebsitePeer::getInstanceFromPool($key1))) {\n\t\t\t\t// We no longer rehydrate the object, since this can cause data loss.\n\t\t\t\t// See http://www.propelorm.org/ticket/509\n\t\t\t\t// $obj1->hydrate($row, 0, true); // rehydrate\n\t\t\t} else {\n\t\t\t\t$cls = WebsitePeer::getOMClass(false);\n\n\t\t\t\t$obj1 = new $cls();\n\t\t\t\t$obj1->hydrate($row);\n\t\t\t\tWebsitePeer::addInstanceToPool($obj1, $key1);\n\t\t\t} // if obj1 already loaded\n\n\t\t\t// Add objects for joined Customer rows\n\n\t\t\t$key2 = CustomerPeer::getPrimaryKeyHashFromRow($row, $startcol2);\n\t\t\tif ($key2 !== null) {\n\t\t\t\t$obj2 = CustomerPeer::getInstanceFromPool($key2);\n\t\t\t\tif (!$obj2) {\n\n\t\t\t\t\t$cls = CustomerPeer::getOMClass(false);\n\n\t\t\t\t\t$obj2 = new $cls();\n\t\t\t\t\t$obj2->hydrate($row, $startcol2);\n\t\t\t\t\tCustomerPeer::addInstanceToPool($obj2, $key2);\n\t\t\t\t} // if obj2 loaded\n\n\t\t\t\t// Add the $obj1 (Website) to the collection in $obj2 (Customer)\n\t\t\t\t$obj2->addWebsite($obj1);\n\t\t\t} // if joined row not null\n\n\t\t\t// Add objects for joined Domain rows\n\n\t\t\t$key3 = DomainPeer::getPrimaryKeyHashFromRow($row, $startcol3);\n\t\t\tif ($key3 !== null) {\n\t\t\t\t$obj3 = DomainPeer::getInstanceFromPool($key3);\n\t\t\t\tif (!$obj3) {\n\n\t\t\t\t\t$cls = DomainPeer::getOMClass(false);\n\n\t\t\t\t\t$obj3 = new $cls();\n\t\t\t\t\t$obj3->hydrate($row, $startcol3);\n\t\t\t\t\tDomainPeer::addInstanceToPool($obj3, $key3);\n\t\t\t\t} // if obj3 loaded\n\n\t\t\t\t// Add the $obj1 (Website) to the collection in $obj3 (Domain)\n\t\t\t\t$obj3->addWebsiteRelatedByPrimaryDomainId($obj1);\n\t\t\t} // if joined row not null\n\n\t\t\t// Add objects for joined WebsiteTemplate rows\n\n\t\t\t$key4 = WebsiteTemplatePeer::getPrimaryKeyHashFromRow($row, $startcol4);\n\t\t\tif ($key4 !== null) {\n\t\t\t\t$obj4 = WebsiteTemplatePeer::getInstanceFromPool($key4);\n\t\t\t\tif (!$obj4) {\n\n\t\t\t\t\t$cls = WebsiteTemplatePeer::getOMClass(false);\n\n\t\t\t\t\t$obj4 = new $cls();\n\t\t\t\t\t$obj4->hydrate($row, $startcol4);\n\t\t\t\t\tWebsiteTemplatePeer::addInstanceToPool($obj4, $key4);\n\t\t\t\t} // if obj4 loaded\n\n\t\t\t\t// Add the $obj1 (Website) to the collection in $obj4 (WebsiteTemplate)\n\t\t\t\t$obj4->addWebsite($obj1);\n\t\t\t} // if joined row not null\n\n\t\t\t// Add objects for joined WebsiteAttribute rows\n\n\t\t\t$key5 = WebsiteAttributePeer::getPrimaryKeyHashFromRow($row, $startcol5);\n\t\t\tif ($key5 !== null) {\n\t\t\t\t$obj5 = WebsiteAttributePeer::getInstanceFromPool($key5);\n\t\t\t\tif (!$obj5) {\n\n\t\t\t\t\t$cls = WebsiteAttributePeer::getOMClass(false);\n\n\t\t\t\t\t$obj5 = new $cls();\n\t\t\t\t\t$obj5->hydrate($row, $startcol5);\n\t\t\t\t\tWebsiteAttributePeer::addInstanceToPool($obj5, $key5);\n\t\t\t\t} // if obj5 loaded\n\n\t\t\t\t// Add the $obj1 (Website) to the collection in $obj5 (WebsiteAttribute)\n\t\t\t\t$obj5->addWebsite($obj1);\n\t\t\t} // if joined row not null\n\n\t\t\t// Add objects for joined Host rows\n\n\t\t\t$key6 = HostPeer::getPrimaryKeyHashFromRow($row, $startcol6);\n\t\t\tif ($key6 !== null) {\n\t\t\t\t$obj6 = HostPeer::getInstanceFromPool($key6);\n\t\t\t\tif (!$obj6) {\n\n\t\t\t\t\t$cls = HostPeer::getOMClass(false);\n\n\t\t\t\t\t$obj6 = new $cls();\n\t\t\t\t\t$obj6->hydrate($row, $startcol6);\n\t\t\t\t\tHostPeer::addInstanceToPool($obj6, $key6);\n\t\t\t\t} // if obj6 loaded\n\n\t\t\t\t// Add the $obj1 (Website) to the collection in $obj6 (Host)\n\t\t\t\t$obj6->addWebsite($obj1);\n\t\t\t} // if joined row not null\n\n\t\t\t$results[] = $obj1;\n\t\t}\n\t\t$stmt->closeCursor();\n\t\treturn $results;\n\t}",
"protected function _autojoin()\n\t{\n\t\t$tables = $this->_autojoin_tables();\n\t\tforeach ($tables as $table)\n\t\t{\n\t\t\t$entity = entity($table);\n\t\t\t$this->db->join($table, \"$this->table.{$entity}_id = $table.id\", 'LEFT');\n\t\t}\n\t}"
] | [
"0.64434725",
"0.63325274",
"0.6130266",
"0.61238515",
"0.6065604",
"0.60505015",
"0.60422176",
"0.601639",
"0.601639",
"0.6004835",
"0.5890771",
"0.5863397",
"0.5853769",
"0.58395004",
"0.58385825",
"0.58024025",
"0.57957315",
"0.57927394",
"0.5786376",
"0.5732546",
"0.57077533",
"0.56993026",
"0.5695293",
"0.5680645",
"0.5676698",
"0.5662977",
"0.56618714",
"0.56544334",
"0.5651302",
"0.5641047"
] | 0.7509774 | 0 |
Set order to query options. | public function order($order = []) {
$this->_queryOptions['order'] = array_merge($this->_queryOptions['order'], $order);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function setQueryOrderBy(){\n\n // if search order_by is set then set as new value\n if ( $this->hasInput('order_by') && $this->getInput('order_by') != \"\" ){\n\n // overide default order_method\n if ( $this->getInput('order_method') == \"desc\" ){\n $this->order_method = \"desc\";\n } else if($this->getInput('order_method') == \"asc\"){\n $this->order_method = \"asc\";\n }\n\n // check if chosen order_by is exists in the columns properties\n if ( array_key_exists( $this->getInput('order_by'),$this->columns ) ){\n $this->order_by = $this->getInput('order_by');\n }\n }\n\n if (!empty($this->order_by) && !empty($this->order_method)){\n // just set the default order query string\n // just like: order by column_name desc\n $this->query->orderBy($this->order_by,$this->order_method);\n }\n\n }",
"function SetUpSortOrder() {\n\t\tglobal $acc_setting_coa;\n\n\t\t// Check for an Order parameter\n\t\tif (@$_GET[\"order\"] <> \"\") {\n\t\t\t$acc_setting_coa->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\n\t\t\t$acc_setting_coa->CurrentOrderType = @$_GET[\"ordertype\"];\n\t\t\t$acc_setting_coa->UpdateSort($acc_setting_coa->id); // Field \n\t\t\t$acc_setting_coa->UpdateSort($acc_setting_coa->description); // Field \n\t\t\t$acc_setting_coa->UpdateSort($acc_setting_coa->coa); // Field \n\t\t\t$acc_setting_coa->setStartRecordNumber(1); // Reset start position\n\t\t}\n\t}",
"private function initializeOrder()\n {\n $order = $this->request->getParameter(self::ORDER_PARAMETER_NAME) ?? $this->defaultOrder;\n if ($order != \"asc\" && $order != \"desc\") {\n $order = \"asc\";\n }\n $this->order = $order;\n }",
"protected function setOrderValues()\n {\n if (isset($_GET['sort']) && isset($_GET['table']) && $_GET['table'] == urlencode($this->key)) {\n $this->session->put($this->config['session']['key'] . '.' . $this->key . '.sort', $_GET['sort']);\n if (isset($_GET['dir'])) {\n $this->session->put($this->config['session']['key'] . '.' . $this->key . '.dir', true);\n } else {\n $this->session->forget($this->config['session']['key'] . '.' . $this->key . '.dir');\n }\n }\n }",
"public function initOrderQueryOption($default=NULL)\r\n {\r\n if($order= $this->getOrderByFromCookie()) {\r\n $this->query_options['order_by']= $order;\r\n }\r\n else if($default) {\r\n $this->query_options['order_by']= $default;\r\n }\r\n }",
"function SetUpSortOrder() {\r\n\t\tglobal $tbl_group;\r\n\r\n\t\t// Check for \"order\" parameter\r\n\t\tif (@$_GET[\"order\"] <> \"\") {\r\n\t\t\t$tbl_group->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\r\n\t\t\t$tbl_group->CurrentOrderType = @$_GET[\"ordertype\"];\r\n\t\t\t$tbl_group->UpdateSort($tbl_group->id); // id\r\n\t\t\t$tbl_group->UpdateSort($tbl_group->name); // name\r\n\t\t\t$tbl_group->UpdateSort($tbl_group->is_active); // is_active\r\n\t\t\t$tbl_group->setStartRecordNumber(1); // Reset start position\r\n\t\t}\r\n\t}",
"public function set_order_by($value){$this->_order_by = $value;}",
"private function setOrderByClauses()\n {\n $order_by = $this->order_by ?? self::DEFAULT_ORDER_BY_PARAMS;\n\n if(is_array($order_by[array_key_first($order_by)])) {\n foreach($order_by as $params) {\n $this\n ->query_instance\n ->orderBy($params['column'], $params['dir']);\n }\n } else {\n $this\n ->query_instance\n ->orderBy($order_by['column'], $order_by['dir']);\n }\n\n\n return $this->query_instance;\n }",
"function setOrder($order=\"DESC\"){\n\t\t\t$this->order = $order;\n\t\t}",
"function SetUpSortOrder() {\n global $avance_producto;\n\n // Check for an Order parameter\n if (@$_GET[\"order\"] <> \"\") {\n $avance_producto->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\n $avance_producto->CurrentOrderType = @$_GET[\"ordertype\"];\n $avance_producto->UpdateSort($avance_producto->idConsultoria); // Field\n $avance_producto->UpdateSort($avance_producto->idCronograma); // Field\n $avance_producto->setStartRecordNumber(1); // Reset start position\n }\n }",
"private function set_order_by()\n\t{\n\t\t$order_by = $this->input->post('order');\n\t\tif ($order_by)\n\t\t{\n\t\t\t$this->db->order_by($this->column_order[$order_by['0']['column']], $order_by['0']['dir']);\n\t\t}\n\t\telse if ($this->order)\n\t\t{\n\t\t\t$order = $this->order;\n\t\t\t$this->db->order_by(key($order), $order[key($order)]);\n\t\t}\n\t}",
"public function setOrder($order) {\n if(array_key_exists('field',$order)){\n if(array_key_exists('sort',$order)){\n $this->q->orderBy($this->aModel.'.'.$order['field'], $order['sort']);\n }else{\n $this->q->orderBy($this->aModel.'.'.$order['field'], 'asc');\n }\n }else{\n if (strpos($this->order['field'],'.') !== false) {\n $this->q->orderBy($this->order['field'], $this->order['sort']);\n }else{\n $this->q->orderBy($this->aModel.'.'.$this->order['field'], $this->order['sort']);\n }\n }\n }",
"function SetUpSortOrder() {\n\n\t\t// Check for \"order\" parameter\n\t\tif (@$_GET[\"order\"] <> \"\") {\n\t\t\t$this->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\n\t\t\t$this->CurrentOrderType = @$_GET[\"ordertype\"];\n\t\t\t$this->UpdateSort($this->nama); // nama\n\t\t\t$this->UpdateSort($this->status); // status\n\t\t\t$this->UpdateSort($this->tanggal); // tanggal\n\t\t\t$this->UpdateSort($this->gaji_pokok); // gaji_pokok\n\t\t\t$this->UpdateSort($this->lembur); // lembur\n\t\t\t$this->UpdateSort($this->tunjangan_proyek); // tunjangan_proyek\n\t\t\t$this->UpdateSort($this->Titil); // Titil\n\t\t\t$this->setStartRecordNumber(1); // Reset start position\n\t\t}\n\t}",
"private function setOrderClause() {\n\t\t$this->sOrderClause = \"ORDER BY `\".str_replace(\" , \", \" \", implode(\"`, `\", $this->sOrder)).\"`\";\n\t\t//$sOrderClause = \"`first_name`, `last_name`, `id`\";\n\t\t//print(\" OrderClause: \".$this->sOrderClause);\n\t}",
"private function setSortingOptions(): void\n {\n // default URL\n if (BackendModel::getContainer()->get('url')) {\n $this->setURL(\n BackendModel::createUrlForAction(\n null,\n null,\n null,\n ['offset' => '[offset]', 'order' => '[order]', 'sort' => '[sort]'],\n false\n )\n );\n }\n\n // sorting labels\n $this->setSortingLabels(\n BackendLanguage::lbl('SortAscending'),\n BackendLanguage::lbl('SortedAscending'),\n BackendLanguage::lbl('SortDescending'),\n BackendLanguage::lbl('SortedDescending')\n );\n }",
"protected function setupSortOrder()\n\t{\n\n\t\t// Check for \"order\" parameter\n\t\tif (Get(\"order\") !== NULL) {\n\t\t\t$this->CurrentOrder = Get(\"order\");\n\t\t\t$this->CurrentOrderType = Get(\"ordertype\", \"\");\n\t\t\t$this->setStartRecordNumber(1); // Reset start position\n\t\t}\n\t}",
"protected function setupSortOrder()\n\t{\n\n\t\t// Check for \"order\" parameter\n\t\tif (Get(\"order\") !== NULL) {\n\t\t\t$this->CurrentOrder = Get(\"order\");\n\t\t\t$this->CurrentOrderType = Get(\"ordertype\", \"\");\n\t\t\t$this->setStartRecordNumber(1); // Reset start position\n\t\t}\n\t}",
"public function set_order( $orderby, $order = 'ASC' ) {\n\t\t$this->_orderby = $orderby;\n\t\t$this->_order = $order;\n\t}",
"public function setOrdering($query)\n {\n if ( ! is_admin() )\n return;\n\n $orderby = $query->get( 'orderby');\n\n foreach($this->adminColumns as $key => $var){\n if ( $key == $orderby ) {\n $meta_query = array(\n 'relation' => 'OR',\n array(\n 'key' => $key,\n 'compare' => 'NOT EXISTS',\n ),\n array(\n 'key' => $key,\n ),\n );\n\n $query->set( 'meta_query', $meta_query );\n $query->set( 'orderby', 'meta_value' );\n }\n }\n }",
"function SetUpSortOrder() {\n\n\t\t// Check for \"order\" parameter\n\t\tif (@$_GET[\"order\"] <> \"\") {\n\t\t\t$this->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\n\t\t\t$this->CurrentOrderType = @$_GET[\"ordertype\"];\n\t\t\t$this->UpdateSort($this->personID); // personID\n\t\t\t$this->UpdateSort($this->personName); // personName\n\t\t\t$this->UpdateSort($this->lastName); // lastName\n\t\t\t$this->UpdateSort($this->nationalID); // nationalID\n\t\t\t$this->UpdateSort($this->mobilePhone); // mobilePhone\n\t\t\t$this->UpdateSort($this->nationalNumber); // nationalNumber\n\t\t\t$this->UpdateSort($this->fatherName); // fatherName\n\t\t\t$this->UpdateSort($this->gender); // gender\n\t\t\t$this->UpdateSort($this->locationLevel1); // locationLevel1\n\t\t\t$this->UpdateSort($this->picture); // picture\n\t\t\t$this->UpdateSort($this->registrationStation); // registrationStation\n\t\t\t$this->setStartRecordNumber(1); // Reset start position\n\t\t}\n\t}",
"private function _order($option) {\n\t\tif (is_array($this->parameters->getParameter('ordermethod')) && $this->parameters->getParameter('ordermethod')[0] !== 'none') {\n\t\t\tif ($option == 'descending') {\n\t\t\t\t$this->setOrderDir('DESC');\n\t\t\t} else {\n\t\t\t\t$this->setOrderDir('ASC');\n\t\t\t}\n\t\t}\n\t}",
"function setOrder($tag, $order) {\n\t\t$this->order = \" ORDER BY \" . $tag . \" \" . $order;\n\t}",
"function SetUpSortOrder() {\n\t\tglobal $announcement;\n\n\t\t// Check for \"order\" parameter\n\t\tif (@$_GET[\"order\"] <> \"\") {\n\t\t\t$announcement->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\n\t\t\t$announcement->CurrentOrderType = @$_GET[\"ordertype\"];\n\t\t\t$announcement->UpdateSort($announcement->title); // title\n\t\t\t$announcement->UpdateSort($announcement->announcement_1); // announcement\n\t\t\t$announcement->UpdateSort($announcement->timestamp); // timestamp\n\t\t\t$announcement->setStartRecordNumber(1); // Reset start position\n\t\t}\n\t}",
"public function setSortOrder(array $sort_order): QueryModifier;",
"public function setOrder($order)\n {\n $order = strtolower($order);\n if (!in_array($order, $this->_columns)) {\n \n $order = $this->_defaultOrder;;\n }\n \n $this->_order = $order;\n \n if (in_array($this->_order, $this->_ascColumns)) {\n \n $this->_defaultDir = \"ASC\";\n \n } else {\n \n $this->_defaultDir = \"DESC\";\n }\n \n return $this;\n }",
"function SetUpSortOrder() {\r\n\r\n\t\t// Check for \"order\" parameter\r\n\t\tif (@$_GET[\"order\"] <> \"\") {\r\n\t\t\t$this->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\r\n\t\t\t$this->CurrentOrderType = @$_GET[\"ordertype\"];\r\n\t\t\t$this->UpdateSort($this->Articulo); // Articulo\r\n\t\t\t$this->UpdateSort($this->Codigo); // Codigo\r\n\t\t\t$this->UpdateSort($this->COD_Compania_eq); // COD_Compania_eq\r\n\t\t\t$this->UpdateSort($this->Amigo_CHIP); // Amigo_CHIP\r\n\t\t\t$this->UpdateSort($this->Activacion_Movi); // Activacion_Movi\r\n\t\t\t$this->UpdateSort($this->Precio_compra); // Precio_compra\r\n\t\t\t$this->UpdateSort($this->Precio_lista_venta_publico_1); // Precio_lista_venta_publico_1\r\n\t\t\t$this->UpdateSort($this->Precio_lista_venta_publico_2); // Precio_lista_venta_publico_2\r\n\t\t\t$this->UpdateSort($this->Precio_lista_venta_medio_mayoreo); // Precio_lista_venta_medio_mayoreo\r\n\t\t\t$this->UpdateSort($this->Precio_lista_venta_mayoreo); // Precio_lista_venta_mayoreo\r\n\t\t\t$this->UpdateSort($this->Id_Almacen_Entrada); // Id_Almacen_Entrada\r\n\t\t\t$this->UpdateSort($this->Status); // Status\r\n\t\t\t$this->setStartRecordNumber(1); // Reset start position\r\n\t\t}\r\n\t}",
"function SetUpSortOrder() {\n\t\tglobal $CustomView1;\n\n\t\t// Check for an Order parameter\n\t\tif (@$_GET[\"order\"] <> \"\") {\n\t\t\t$CustomView1->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\n\t\t\t$CustomView1->CurrentOrderType = @$_GET[\"ordertype\"];\n\t\t\t$CustomView1->UpdateSort($CustomView1->DetailNo); // Field \n\t\t\t$CustomView1->UpdateSort($CustomView1->PatientID); // Field \n\t\t\t$CustomView1->UpdateSort($CustomView1->StudyDate); // Field \n\t\t\t$CustomView1->UpdateSort($CustomView1->StudyTime); // Field \n\t\t\t$CustomView1->UpdateSort($CustomView1->PatientName); // Field \n\t\t\t$CustomView1->UpdateSort($CustomView1->PatientSex); // Field \n\t\t\t$CustomView1->UpdateSort($CustomView1->Modality); // Field \n\t\t\t$CustomView1->UpdateSort($CustomView1->ProtocolName); // Field \n\t\t\t$CustomView1->UpdateSort($CustomView1->BodyPartExamined); // Field \n\t\t\t$CustomView1->UpdateSort($CustomView1->StudyID); // Field \n\t\t\t$CustomView1->UpdateSort($CustomView1->InstanceNumber); // Field \n\t\t\t$CustomView1->UpdateSort($CustomView1->Status); // Field \n\t\t\t$CustomView1->setStartRecordNumber(1); // Reset start position\n\t\t}\n\t}",
"function SetUpSortOrder() {\r\r\tglobal $ratings;\r\r\r\r\t// Check for an Order parameter\r\r\tif (@$_GET[\"order\"] <> \"\") {\r\r\t\t$ratings->CurrentOrder = ew_StripSlashes(@$_GET[\"order\"]);\r\r\t\t$ratings->CurrentOrderType = @$_GET[\"ordertype\"];\r\r\r\r\t\t// Field id\r\r\t\t$ratings->UpdateSort($ratings->id);\r\r\r\r\t\t// Field rating\r\r\t\t$ratings->UpdateSort($ratings->rating);\r\r\r\r\t\t// Field domain\r\r\t\t$ratings->UpdateSort($ratings->domain);\r\r\r\r\t\t// Field id_2\r\r\t\t$ratings->UpdateSort($ratings->id_2);\r\r\t\t$ratings->setStartRecordNumber(1); // Reset start position\r\r\t}\r\r\t$sOrderBy = $ratings->getSessionOrderBy(); // Get order by from Session\r\r\tif ($sOrderBy == \"\") {\r\r\t\tif ($ratings->SqlOrderBy() <> \"\") {\r\r\t\t\t$sOrderBy = $ratings->SqlOrderBy();\r\r\t\t\t$ratings->setSessionOrderBy($sOrderBy);\r\r\t\t}\r\r\t}\r\r}",
"public function setOrder($order);",
"public function processListQueryOrderBy() {\n\t\tif (!empty($this->values['\\Object\\Form\\Model\\Dummy\\Sort'])) {\n\t\t\tforeach ($this->values['\\Object\\Form\\Model\\Dummy\\Sort'] as $k => $v) {\n\t\t\t\tif (!empty($v['__sort'])) {\n\t\t\t\t\t$name = $this->detail_fields['\\Object\\Form\\Model\\Dummy\\Sort']['elements']['__sort']['options']['options'][$v['__sort']]['name'];\n\t\t\t\t\t$this->misc_settings['list']['sort'][$name] = $v['__order'];\n\t\t\t\t\t$this->query->orderby([$v['__sort'] => $v['__order']]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}"
] | [
"0.7811532",
"0.7124042",
"0.70231843",
"0.7002648",
"0.69762915",
"0.6968568",
"0.695547",
"0.6906103",
"0.69016063",
"0.6862119",
"0.6849524",
"0.6793737",
"0.6785927",
"0.67402565",
"0.67349243",
"0.67287445",
"0.67287445",
"0.67246586",
"0.66732526",
"0.6631246",
"0.65887254",
"0.6538612",
"0.6504353",
"0.6492489",
"0.6487038",
"0.6479151",
"0.6475804",
"0.644014",
"0.6402875",
"0.6389988"
] | 0.7586536 | 1 |
Set group to query options. | public function group($group = []) {
$this->_queryOptions['group'] = array_merge($this->_queryOptions['group'], $group);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setGroup($value) {}",
"function group($group){\n\t\t\t$this->group = $group;\n\t\t}",
"public function initOptions() {\n\t\t$sql = \"SELECT * FROM {$this->table_name} WHERE `group` = '{$this->group}'\";\n\t\t$row = $this->db->get_row( $sql );\n\t\tif ( $row ) {\n\t\t\t$this->show_group_options = $row->show_group_options;\n\t\t\t$this->hide_group_options = $row->hide_group_options;\n\t\t\t$this->description = $row->description;\n\t\t}\n\n\t\treturn $this;\n\t}",
"public function setOptions(array $options, $group = null) {\n if ($group != null) {\n $this->options[$group] = $options;\n $this->hasGroupedOptions = true;\n } else {\n $this->options = $options;\n $this->hasGroupedOptions = false;\n }\n }",
"protected function setGroup($group)\n {\n $this->group = (array) $group;\n }",
"private function set($group, $option, $value) {\n\t\t$this->options[$group][$option] = $value;\n\t}",
"public function addGroupQuery($value) {}",
"public function setGroup( $group ) {\n\t\t$this->group = $group;\n\t\treturn $this;\n\t}",
"function group($group = '') {\n\t\t$this->_group = $group;\n\t\treturn $this;\n\t}",
"public function setGroup(OTS_Group $group)\n {\n $this->data['group_id'] = $group->getId();\n }",
"public function setGroup($group) {\n\n\t\t$this->group = $group;\n\t\t\n\t\treturn $this;\n\t\n\t}",
"public function setFirstGroup(?string $group): void;",
"public function setGroup(Mage_Core_Model_Config_Element $group)\n {\n $this->_groups[(string)$group->label] = $group;\n return $this;\n }",
"public function group($group)\n {\n if (!$this->key) {\n return $this;\n }\n\n $selection = $this->config->filter(function ($v, $k) use ($group) {\n if (Str::startsWith($k, $group)) {\n return $k;\n }\n });\n\n $keys = $selection\n ->keys()\n ->map(function ($v) use ($group) {\n return Str::replaceFirst($group . '.', '', $v);\n });\n\n $values = $selection\n ->values()\n ->map(function ($v) use ($group) {\n return $v;\n });\n\n $this->config = $keys->combine($values);\n\n return $this;\n }",
"public function setGroup(string $group)\n\t{\n\t\t$this->group = $group;\n\n\t\treturn $this;\n\t}",
"public function setJsGroup($group)\r\n {\r\n if (!is_array($group)) $group = $this->explodeParam($group);\r\n $this->config['jsGroups'] = $group;\r\n }",
"public function setGroupBy(array $group_by): QueryModifier;",
"public function set_group($id_group){\n if ( is_int($id_group) ){\n $this->id_group = $id_group;\n }\n return $this;\n }",
"function set_mygrp(){\r\n\t $_SESSION['mygroupId'] = $_POST['query'];\r\n\t }",
"public function setGroup($group = '')\n {\n $this->group = $group;\n return $this;\n }",
"public function setEffectiveGroup( Group $group ) {\n posix_setegid( $group->ID );\n }",
"public function setGroup($group)\n {\n $this->group = $group;\n\n return $this;\n }",
"public function group($query) {\r\n\t\t$args = func_get_args();\r\n\t\t$this->queryData['group'][] = call_user_func_array(array($this->db, 'formatQuery'), $args);\r\n\t\treturn $this;\r\n\t}",
"public function setDatagroup($datagroup) {\n\t\t$this->datagroup = $datagroup;\n\t}",
"protected function setGroups() {\n $this->groups = Moondee_Entity_Group_Helper::getObjectGroups( $this->id );\n }",
"public function setGroupFacet($value) {}",
"public function addGroup($group): self;",
"public function setGroup( Group $group ) {\n posix_setgid( $group->id );\n }",
"public function setGroup($group) {\n chgrp($this->__full_path, $group);\n }",
"public function setGroups($table)\n {\n $query = $this->query->groupBy('metric');\n $group = strtolower($this->filter->group);\n $subgroup = $this->filter->subgroup;\n \n $selectedGroup = strtolower($this->filter->selectedGroup);\n if ($selectedGroup == 'program') {\n $group = 'channel';\n }\n if ($group == '') {\n $group = $subgroup;\n }\n\n // if ($this->filter->expandType == 'initiative') {\n // $group = 'initiative';\n // }\n if ($subgroup == 'bu' || $subgroup == 'program' || $subgroup == 'channel' || $subgroup == 'initiative') {\n $group = $subgroup;\n }\n // If we are grouping by a known attributes, include\n if ($group == 'program' || $group == 'code') {\n $query = $query->groupBy($table . '.program');\n } elseif ($group == 'channel') {\n $query = $query->groupBy($table . '.channel');\n $query = $query->groupBy($table . '.initiative');\n } elseif ($group == 'initiative') {\n $query = $query->groupBy($table . '.initiative');\n } else {\n $query = $query->groupBy('program');\n } \n // If subgroup is channel, group by that as well\n if (strtolower($this->filter->subgroup) == 'channel') {\n $query = $query->groupBy($table . '.channel');\n }\n\n $this->setQuery($query);\n return $this;\n }"
] | [
"0.6877921",
"0.68496364",
"0.65988904",
"0.6542245",
"0.6486871",
"0.64492124",
"0.64172643",
"0.6382279",
"0.62930936",
"0.6061779",
"0.60553575",
"0.6017723",
"0.60174996",
"0.6015802",
"0.60139316",
"0.59578407",
"0.5955401",
"0.59382176",
"0.5936496",
"0.58936423",
"0.5880873",
"0.5872247",
"0.5856795",
"0.58308786",
"0.58194846",
"0.58163154",
"0.58008265",
"0.57978845",
"0.57799834",
"0.57790095"
] | 0.7434591 | 0 |
Set offset to query options. | public function offset($offset = null) {
$this->_queryOptions['offset'] = $offset;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function setQueryOffset(){\n if ($this->per_page == -1) return ;\n\n $this->query->skip($this->offset)->take($this->per_page);\n }",
"public function setLimitOffset($limit,$offset=1)\n\t{\n\t \t$queryArray = $this->fmxQueryStringArray;\n\t \t$queryArray['_offset'] = $offset;\n\t \t$queryArray['_limit'] = $limit;\n\t \t$this->fmxQueryStringArray = $queryArray;\n\t}",
"public function setOffset(?int $offset): QueryInterface\n {\n $this->offset = $offset;\n $this->queryBuilder->setFirstResult($offset);\n return $this;\n }",
"private function _offset($option) {\n\t\t$this->setOffset($option);\n\t}",
"public function setOffset(int $offset): void {\n $this->offset = $offset;\n $this->page = intval(ceil(intval($offset) / $this->pageSize)) + 1;\n }",
"public function setOffset($offset)\n {\n $this->offset = $offset;\n }",
"public function _setOffset($offset)\r\n {\r\n $this->offset = $offset;\r\n }",
"public function setOffset ($offset = null) {\n if (is_null($offset)) {\n $this->offset = null;\n return;\n }\n\n if (!is_numeric($offset) || $offset < 0) {\n throw new InvalidArgumentException();\n }\n $this->offset = intval($offset);\n }",
"function mbdmaster_query_offset(&$query) {\n if( ! isset( $query->query_vars['my_special_query'] ) ) {\n return;\n }\n \n //First, define your desired offset...\n $offset = 1;\n \n //Next, determine how many posts per page you want (we'll use WordPress's settings)\n $ppp = get_option('posts_per_page');\n\n //Next, detect and handle pagination...\n if ( $query->is_paged ) {\n\n //Manually determine page query offset (offset + current page (minus one) x posts per page)\n $page_offset = $offset + ( ($query->query_vars['paged']-1) * $ppp );\n\n //Apply adjust page offset\n $query->set('offset', $page_offset );\n\n }\n else {\n\n //This is the first page. Just use the offset...\n $query->set('offset',$offset);\n\n }\n}",
"public function setOffset($offset) {\n $this->offset = $this->checkVal($offset);\n }",
"protected function setPagingLimitOffset()\n {\n $this->setLimit(0);\n $this->setOffset(0);\n if ($this->page) {\n $this->setLimit($this->paging);\n $this->setOffset($this->paging * ($this->page - 1));\n }\n }",
"public function offset(int $offset){\r\n\t\t$this->add_query('OFFSET', $offset);\r\n\t\treturn $this;\r\n\t}",
"public function set_offset_sql( $stmt ) {\n\t\t$query = strtoupper( $stmt );\n\t\tif ( false === stripos( $query, 'ORDER BY' ) ) {\n\t\t\t// By default order by the first ID.\n\t\t\t$stmt .= ' ORDER BY 1';\n\t\t}\n\n\t\tif ( false === stripos( $query, 'LIMIT' )\n\t\t\t&& false === stripos( $query, 'PROCEDURE' )\n\t\t\t&& false === stripos( $query, 'FOR UPDATE' )\n\t\t\t&& false === stripos( $query, 'LOCK IN SHARE MODE' ) ) {\n\t\t\t// Automatically add a LIMIT clause to standard queries.\n\t\t\t$stmt .= ' LIMIT :offset, :size';\n\t\t} elseif ( false === stripos( $query, 'LIMIT' )\n\t\t\t&& ( false !== stripos( $query, 'PROCEDURE' )\n\t\t\t&& false !== stripos( $query, 'FOR UPDATE' )\n\t\t\t&& false !== stripos( $query, 'LOCK IN SHARE MODE' ) ) ) {\n\t\t\t// A LIMIT clause can't be added automatically but is required.\n\t\t\t// Throw an exception here.\n\t\t\tthrow new \\Exception( \"A LIMIT clause in the format 'LIMIT :offset, :size' must be specified manually for this custom query.\" );\n\t\t} elseif ( false !== stripos( $query, 'LIMIT' )\n\t\t\t&& false === stripos( $query, 'LIMIT :offset, :size' ) ) {\n\t\t\t// A LIMIT clause was added but is incompatible.\n\t\t\tthrow new \\Exception( \"A LIMIT clause must be specified in the format 'LIMIT :offset, :size'.\" );\n\t\t}\n\n\t\treturn $stmt;\n\t}",
"public function offset($offset){\n $this->request['offset'] = $offset;\n return $this;\n }",
"public function offset(int $offset = 0): Select\n {\n if (!\\is_int($offset) || $offset < 0) {\n throw new InvalidArgumentException('$offset have to be a positive integer or a zero');\n }\n $this->offset = $offset;\n return $this;\n }",
"public function setOffset($offset)\n {\n $this->offset = intval($offset);\n return $this;\n }",
"public function setOffset(int $offset): void\n {\n $this->offset = $offset;\n }",
"public function setOffset(int $offset): void\n {\n $this->offset = $offset;\n }",
"public function setOffset(int $offset = 50)\n\t{\n\t\tif ($offset < 1) {\n\t\t\t$offset = 1;\n\t\t}\n\n\t\t$this->offset = $offset;\n\n\t\treturn $this;\n\t}",
"public function setOffsetAndLimit($offset = 0, $limit = 15)\n {\n\n }",
"public function setOffset(string $offset)\n\t{\n\t\t$this->addKeyValue('offset', $offset); \n\n\t}",
"function mbdmaster_cpt_query_offset(&$query) {\n if( ! isset( $query->query_vars['my_special_cpt_query'] ) ) {\n return;\n }\n \n //First, define your desired offset...\n $offset = 1;\n \n //Next, determine how many posts per page you want (we'll use WordPress's settings)\n $ppp = get_option('posts_per_page');\n\n //Next, detect and handle pagination...\n if ( $query->is_paged ) {\n\n //Manually determine page query offset (offset + current page (minus one) x posts per page)\n $page_offset = $offset + ( ($query->query_vars['paged']-1) * $ppp );\n\n //Apply adjust page offset\n $query->set('offset', $page_offset );\n\n }\n else {\n\n //This is the first page. Just use the offset...\n $query->set('offset',$offset);\n\n }\n}",
"function offset($offset)\n {\n if(is_numeric($offset)) {\n $this->aOffset = intval($offset);\n } else {\n $this->aOffset = 0;\n }\n return $this;\n }",
"public function setOffset($offset)\n {\n $this->vkarg_offset = $offset;\n\n return $this;\n }",
"public function setOffset($offset)\n {\n $this->vkarg_offset = $offset;\n\n return $this;\n }",
"public function setOffset($offset)\n {\n $this->vkarg_offset = $offset;\n\n return $this;\n }",
"public function offset($offset) { $this->offset = $offset; return $this; }",
"public function setOffset($offset)\n {\n if (!ctype_digit($offset) && !is_int($offset)) {\n throw new \\InvalidArgumentException('offset should be a number');\n }\n\n $this->offset = $offset;\n }",
"public function set_initial_offset( $initial_offset )\n\t{\n\t\t$this->offset = $initial_offset;\n\t}",
"public function offset(int $offset) :ISelect\n {\n $this->offset = $offset;\n return $this;\n }"
] | [
"0.796382",
"0.7221137",
"0.7147801",
"0.6875792",
"0.6819682",
"0.67491186",
"0.67167807",
"0.6689175",
"0.66282684",
"0.6598679",
"0.65953803",
"0.6582172",
"0.6529046",
"0.6518212",
"0.6400184",
"0.6381128",
"0.63708663",
"0.63708663",
"0.63577247",
"0.63185155",
"0.63180363",
"0.63082194",
"0.62577146",
"0.62317556",
"0.62317556",
"0.62317556",
"0.6161472",
"0.6156534",
"0.61070496",
"0.6093207"
] | 0.7981659 | 0 |
Set page to query options. | public function page($page = null) {
$this->_queryOptions['page'] = $page;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setPage() {\n }",
"public function setPage($page);",
"protected function setCurrentPage(){\n\n if ($this->per_page == -1) return ;\n if( $this->hasInput('page') ){\n $this->page = $this->getInput('page');\n }\n }",
"public function setPage(int $page);",
"public function setPage($page) {\n }",
"private function initializePage()\n {\n $page = $this->request->getParameter(self::PAGE_PARAMETER_NAME, 1);\n if (!is_numeric($page)) {\n $page = 1;\n }\n $this->page = $page;\n }",
"function set_page($page)\n {\n $this->list_page = (int)$page;\n }",
"public function page($page) {\n $this->page = $page;\n }",
"static public function post_screenoptions() {\n\t\t$screen = get_current_screen();\n\t\t$screen->add_option( 'per_page', false );\n\t}",
"public function setOptions( Array $options )\n {\n $pageEncoding = isset( $options[self::OPT_PAGE_ENCODING] ) ? $options[self::OPT_PAGE_ENCODING] : null;\n $this->_treatPageEncodingOption( $pageEncoding );\n \n $pageLength = isset( $options[self::OPT_PAGE_LENGTH] ) ? $options[self::OPT_PAGE_LENGTH] : null;\n $this->_treatPageLengthOption( $pageLength );\n \n $pageWidth = isset( $options[self::OPT_PAGE_WIDTH] ) ? $options[self::OPT_PAGE_WIDTH] : null;\n $this->_treatPageWidthOption( $pageWidth );\n \n $pageResolution = isset( $options[self::OPT_PAGE_RESOLUTION] ) ? $options[self::OPT_PAGE_RESOLUTION] : null;\n $this->_treatPageResolutionOption( $pageResolution );\n }",
"public function setPage(int $page = null): self {\n\n\t\t$this->page = $page ?? $this->page;\n\n\t\t$this->addQueryParams(['page' => $this->page]);\n\n\t\treturn $this;\n\t}",
"public function setPage($page)\n {\n $this->getPager()->setPage($page);\n }",
"public function setPage(Page $page) {\n\t\t$this->page = $page; \n\t}",
"protected function setPerPage(){\n\n // if per_page is set to -1 then results will be unlimited\n if ($this->per_page == -1) return ;\n\n if( $this->hasInput('per_page') ){\n $this->per_page = $this->getInput('per_page') > 0? $this->getInput('per_page'):1;\n } else if (Session::has('per_page')) {\n $this->per_page = Session::get('per_page');\n }\n }",
"public function setCurrentPage($page = 0);",
"function adext_core_page_options() {\r\n \r\n if(adverts_request( \"adaction\" ) == \"gallery\" ) {\r\n _adext_core_page_options_gallery();\r\n } else {\r\n _adext_core_page_options_main();\r\n }\r\n}",
"public function setPage(int $page) {\n $this->page = $page;\n }",
"protected function _construct()\n {\n parent::_construct();\n\n $this->setPageVarName('page');\n\n $baseLimit = $this->optionManager->getOption('posts_per_page', 10);\n\n $this->setDefaultLimit($baseLimit);\n $this->setLimit($baseLimit);\n $this->setAvailableLimit([$baseLimit => $baseLimit]);\n\n $this->setFrameLength(\n (int)$this->_scopeConfig->getValue(\n 'design/pagination/pagination_frame',\n ScopeInterface::SCOPE_STORE\n )\n );\n }",
"private function setPageData() {\n $this->page_data = $this->SiteModel->getPageByID($this->getPage());\n }",
"public function changeQuery(){\n\t\tif ( $this->_post_type !== get_post_type() ){\n\t\t\tif( empty($_GET[\"s\"]) ) {\n\t\t\t\t$this->_pageForArchives = $this->_post;\n\t\t\t\tquery_posts( array('post_type' => $this->_post_type, 'paged' => $this->_paged ) );\n\t\t\t}\n\t\t}\n\t}",
"public function setPage(int $page): void {\n $this->page = intval($page);\n $this->offset = ($page - 1) * $this->pageSize;\n }",
"public function init() {\n\t\t\n\t\t$pagesTable = DIBASIC_DB_PREFIX.'pages';\n\t\t$q = \"SELECT * FROM $pagesTable ORDER BY `order` ASC\";\n\t\t$qr = mysql_query($q) or trigger_error(mysql_error(), E_USER_ERROR);\n\t\t\n\t\t$this->options['pageTitles'] = array();\n\t\t$this->options['pageDefaultPermissions'] = array();\n\t\t\n\t\twhile ($r = mysql_fetch_assoc($qr)) {\n\t\t\t$title = $r['group'] ? $r['group'].\" » \" : '';\n\t\t\t$title .= $r['title'];\n\t\t\t\n\t\t\t$this->options['pageTitles'][$r['id']] = $title;\n\t\t\t$this->options['pageDefaultPermissions'][$r['id']] = (int) $r['can_open_by_default'];\n\t\t}\n\t}",
"function px_change_query_vars($query) {\n\t\t\n\t\tif (is_search() || is_home()) {\n\t\t\t\n\t\t\tif (empty($_GET['page_id_all']))$_GET['page_id_all'] = 1;\n\t\t\t$query->query_vars['paged'] = $_GET['page_id_all'];\n\t\t}\n \t\treturn $query;\n\t\t// Return modified query variables\n\t}",
"static function add_options_page()\n\t{\n\t\tif (apply_filters('social_connect_enable_options_page', false))\n\t\t{\n\t\t\tadd_options_page('Social Connect', 'Social Connect', 'manage_options', 'social-connect-id', array('SC_Admin','render_options') );\n\t\t}\n\t}",
"public function addOptionsPage() {\n\n\t\t$this->_options_page_hook = add_options_page(\n\t\t\t'Managed Missions Options',\n\t\t\t'Managed Missions',\n\t\t\t'manage_options',\n\t\t\tself::OPT_GROUP,\n\t\t\tarray( $this, 'renderOptionsPage' )\n\t\t);\n\t}",
"function set_link($page = null)\n\t{\n\t\t$url = url()->current();\n\t\tif ($page) {\n\t\t\t$url = add_query_params(['page' => $page]);\n\t\t}\n\t\tprint_link($url);\n\t}",
"private function set_options(): void {\n $GLOBALS['wp_tests_options'] = $this->options;\n }",
"function setPage($pageNumber) {\n\t\t$this->_pageNumber = $pageNumber;\n\t}",
"protected function build_option_page()\n\t{\n\t\t/* intentionally left blank */\n\t}",
"public function options_page() {\n\t\tpremise_field_section( array(\n\t\t\tarray(\n\t\t\t\t'type' => 'text',\n\t\t\t\t'name' => 'pwps_theme_options',\n\t\t\t),\n\n\t\t\tarray(\n\t\t\t\t'type' => 'submit',\n\t\t\t)\n\t\t) );\n\t}"
] | [
"0.6798529",
"0.6711939",
"0.66100264",
"0.6535763",
"0.652832",
"0.64283174",
"0.62985086",
"0.61880517",
"0.6171216",
"0.6134688",
"0.6104956",
"0.6100458",
"0.6080202",
"0.604646",
"0.6034205",
"0.60135514",
"0.60129404",
"0.5996777",
"0.5971697",
"0.5931093",
"0.592798",
"0.5905532",
"0.58720946",
"0.5870263",
"0.58691484",
"0.58496267",
"0.58456475",
"0.58383465",
"0.58323056",
"0.5828661"
] | 0.7577913 | 0 |
Set limit to query options. | public function limit($limit = null) {
$this->_queryOptions['limit'] = $limit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setLimit($limit);",
"public static function set_limit($limit)\n\t{\n\t\tself::get_query()->take($limit);\n\t}",
"function setLimit(int $limit);",
"protected function _applyLimitToQuery() {\n\t\t$this->query()->limit($this->_pageLimit);\n\t}",
"public function _setLimit($limit)\r\n {\r\n $this->limit = $limit;\r\n }",
"public function setLimit($numLimit);",
"public function setLimit($limit) {\n\t\t$this->limit = $limit;\n\t}",
"public function setLimit($limit)\n {\n $this->limit = $limit;\n }",
"public function setLimit($limit)\n {\n $this->limit = $limit;\n }",
"public function setLimit()\n {\n if (isset($this->requestParams['start']) && $this->requestParams['length'] != '-1') {\n $this->qb->setFirstResult($this->requestParams['start'])->setMaxResults($this->requestParams['length']);\n }\n\n return $this;\n }",
"function setLimit($limit) {\n\t\t$this->_pageLimit = $limit;\n\t}",
"public function setLimit($limit)\n {\n $this->limit = (int) $limit;\n }",
"public function setLimit(?int $limit): QueryInterface\n {\n $this->limit = $limit;\n $this->queryBuilder->setMaxResults($limit);\n return $this;\n }",
"public function setLimit()\n {\n if (func_num_args() == 1) {\n $this->limit = 'LIMIT ' . func_get_arg(0);\n } elseif (func_num_args() == 2) {\n $this->limit = 'LIMIT ' . func_get_arg(0) . ', ' . func_get_arg(1);\n } else {\n $this->limit = '';\n }\n return 1;\n }",
"public function limit($limit){\n $this->request['limit'] = $limit;\n return $this;\n }",
"public function setLimit($int) { $this->limit = (int)$int; return $this; }",
"public function limit($limit): self\n {\n }",
"public function setLimit($limit) {\n $this->limit = $this->checkVal($limit);\n }",
"private function setLimitClause() {\n\t\t//$this->sLimitClause = \"LIMIT \".$this->sRangeStart.\", \".$this->sRange;\n\t\t$this->sLimitClause = \"LIMIT :range_start, :range\";\n\t}",
"public function setLimit(int $limit): void\n {\n $this->limit = $limit;\n }",
"public function setLimit(int $limit): void\n {\n $this->limit = $limit;\n }",
"function setLimit($limit) {\n\t\ttrigger_error('implement setLimit in form db driver');\n\t}",
"public static function limit($limit): self\n {\n }",
"public function applyLimit(){\n $offset=$this->request->getQuery('start');\n $limit=$this->request->getQuery('length', -1);\n\n if(isset($offset) && $limit!=-1){\n $this->criteria->offset=$offset;\n $this->criteria->limit=$limit;\n }\n\n return $this;\n }",
"public function setLimit($limit)\n {\n $this->limit = $limit;\n\n return $this;\n }",
"public function limit($size) { $this->limit = $size; return $this; }",
"public function setFetchLimit($limit)\n {\n $this->limit = (int) $limit;\n }",
"public function limit($count) {\r\n\t\t$args = func_get_args();\r\n\t\tswitch (count($args)) {\r\n\t\t\tcase 1:\r\n\t\t\t\t$this->queryData['limitCount'] = $args[0];\r\n\t\t\t\t$this->queryData['limitOffset'] = false;\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\t$this->queryData['limitCount'] = $args[0];\r\n\t\t\t\t$this->queryData['limitOffset'] = $args[1];\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\t$this->queryData['limitCount'] = false;\r\n\t\t\t\t$this->queryData['limitOffset'] = false;\r\n\t\t}\r\n\t\treturn $this;\r\n\t}",
"public function limit($limit)\n {\n $this->limit = $limit;\n return $this;\n }",
"public function setLimitFields($limit_fields);"
] | [
"0.7742806",
"0.772419",
"0.77191365",
"0.76804346",
"0.7472712",
"0.74712455",
"0.74149853",
"0.73723197",
"0.73723197",
"0.7318445",
"0.7227896",
"0.7206987",
"0.71988297",
"0.71729594",
"0.71526647",
"0.7132772",
"0.71293396",
"0.70961463",
"0.7072482",
"0.70623106",
"0.70623106",
"0.7036517",
"0.70064884",
"0.7000392",
"0.69272035",
"0.6920352",
"0.6901867",
"0.6882922",
"0.6873059",
"0.6853939"
] | 0.82948947 | 0 |
Set recursive to query options. | public function recursive($recursive = null) {
$this->_queryOptions['recursive'] = $recursive;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setRecursive($recursive)\n {\n $this->options['recursive'] = (bool) $recursive;\n return $this;\n }",
"protected function setExtensionsQueryValues()\n {\n $this->setQueryControllerDefaults(\n $process_events = 0,\n $query_object = 'list',\n $get_customfields = 0,\n $use_special_joins = 0,\n $use_pagination = 0,\n $check_view_level_access = 0,\n $get_item_children = 0\n );\n\n return $this;\n }",
"private function setPaginationClauses()\n {\n $limit = $this->pagination['limit'] ?? self::DEFAULT_PAGINATION_PARAMS['limit'];\n $offset = $this->pagination['offset'] ?? self::DEFAULT_PAGINATION_PARAMS['offset'];\n\n return $this\n ->query_instance\n ->limit($limit)\n ->offset($offset);\n }",
"public function setDefaultQuery()\n {\n $this->defaultQuery = http_build_query([\n 'limit' => $this->limit,\n 'entity' => self::ENTITY,\n 'media' => self::MEDIA\n ]);\n }",
"public function setRecursion(bool $recursion)\n {\n $this->recursion = $recursion;\n }",
"private function initialQueryBuilder()\n {\n $this->select = [];\n $this->from = '';\n $this->where = [];\n $this->orderBy = [];\n $this->limit = null;\n $this->offset = null;\n }",
"protected function init(): void\n {\n $id = $this->getOption('id');\n if (null !== $id) {\n if (\\is_array($id)) {\n $this->addIds($id);\n } else {\n $this->addId($id);\n }\n }\n\n $queries = $this->getOption('query');\n if (null !== $queries) {\n if (\\is_array($queries)) {\n $this->addQueries($queries);\n } else {\n $this->addQuery($queries);\n }\n }\n }",
"public function setQueryOption($options)\n {\n $allowedOptions = Array('ALL', 'DISTINCT', 'DISTINCTROW', 'HIGH_PRIORITY', 'STRAIGHT_JOIN', 'SQL_SMALL_RESULT',\n 'SQL_BIG_RESULT', 'SQL_BUFFER_RESULT', 'SQL_CACHE', 'SQL_NO_CACHE', 'SQL_CALC_FOUND_ROWS',\n 'LOW_PRIORITY', 'IGNORE', 'QUICK', 'MYSQLI_NESTJOIN', 'FOR UPDATE', 'LOCK IN SHARE MODE');\n\n if (!is_array($options)) {\n $options = Array($options);\n }\n\n foreach ($options as $option) {\n $option = strtoupper($option);\n if (!in_array($option, $allowedOptions)) {\n throw new Exception('Wrong query option: ' . $option);\n }\n\n if ($option == 'MYSQLI_NESTJOIN') {\n $this->_nestJoin = true;\n } elseif ($option == 'FOR UPDATE') {\n $this->_forUpdate = true;\n } elseif ($option == 'LOCK IN SHARE MODE') {\n $this->_lockInShareMode = true;\n } else {\n $this->_queryOptions[] = $option;\n }\n }\n\n return $this;\n }",
"public function setQuery() : void;",
"public function getQueryRecursionOptionAllowableValues()\n {\n return [\n self::QUERY_RECURSION_OPTION_PARENT_FIRST,\n self::QUERY_RECURSION_OPTION_CHILD_FIRST,\n ];\n }",
"protected function init()\n {\n parent::init();\n\n foreach ($this->options as $name => $value) {\n switch ($name) {\n case 'exclude':\n $this->getLocalParameters()->addExcludes($value);\n break;\n case 'pivot':\n $this->setPivot(new Pivot($value));\n }\n }\n }",
"abstract protected function setDefaultOptions();",
"protected function init() {\n\t\tforeach ( $this->options as $name => $value ) {\n\t\t\tswitch ( $name ) {\n\t\t\t\tcase 'facet':\n\t\t\t\t\t$this->setFacets( $value );\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'pivot':\n\t\t\t\t\t$this->setPivots( $value );\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'exclude':\n\t\t\t\t\tif ( ! is_array( $value ) ) {\n\t\t\t\t\t\t$value = array( $value );\n\t\t\t\t\t}\n\t\t\t\t\t$this->setExcludes( $value );\n\t\t\t\t\tunset( $this->options['exclude'] );\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"protected function adjustOptionsValues() \n {\n $this->root = config('organizer.root');\n $this->init();\n $this->create();\n }",
"final protected function init_dc_options(){\r\n\t\t//List of defined properties\r\n\t\t$this->dc_options = get_option('elegant-child-options');\r\n\t}",
"protected function init_build_options()\n\t{\n\t\t$this->current_options = $this->options;\n\t}",
"final public function setupOptions()\n {\n \n $this->loadOptions();\n \n //first arg is path we don't need it here\n array_shift($this->args);\n \n foreach ($this->args as $value) {\n \n if(strpos($value, '-') !== false || strpos($value, '--') !== false) {\n \n $this->loadInternalOption($value);\n \n }\n \n }\n \n }",
"protected function set_options() {\n\t\tif (is_multisite()) {\n\t\t\tswitch_to_blog(1);\n\t\t\t$options = get_option($this->option_name);\n\t\t\trestore_current_blog();\n\t\t} else {\n\t\t\t$options = get_option($this->option_name);\n\t\t}\n\t\tif (!is_array($options)) {\n\t\t\t$options = array();\n\t\t}\n\t\t$this->options = array_merge($this->options_default, $options);\n\t}",
"public function setOptions()\n {\n // TODO: Implement setOptions() method.\n }",
"function graphql_init_set_query() {\n\treturn new \\WPGraphQL\\SetQuery();\n}",
"private function _set_option( &$obj, $var, $value, $recurse = false ) {\r\n\t\t$var = (array) explode( '.', $var );\r\n\t\t$current_var = array_shift( $var );\r\n\t\tif ( is_object( $obj ) ) {\r\n\t\t\t$obj_vars = get_object_vars( $obj );\r\n\t\t\tif ( array_key_exists( $current_var, $obj_vars ) ) { // isset( $obj->{$current_var} ) ){\r\n\t\t\t\tif ( count( $var ) ) {\r\n\t\t\t\t\tif ( is_object( $obj->$current_var ) ) {\r\n\t\t\t\t\t\t$obj->$current_var = new stdClass();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$obj->$current_var = array();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$this->_set_option( $obj->$current_var, join( '.', $var ), $value, $recurse );\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$obj->$current_var = $value;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif ( $recurse ) {\r\n\t\t\t\t\tif ( count( $var ) ) {\r\n\t\t\t\t\t\t$next_var = reset( $var );\r\n\t\t\t\t\t\tif ( is_object( $obj->$current_var ) ) {\r\n\t\t\t\t\t\t\t$obj->$current_var = new stdClass();\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$obj->$current_var = array();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$this->_set_option( $obj->$current_var, join( '.', $var ), $value, $recurse );\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$obj->$current_var = $value;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$obj->$current_var = $value;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else if ( is_array( $obj ) ) {\r\n\t\t\tif ( array_key_exists( $current_var, $obj ) ) {\r\n\t\t\t\tif ( count( $var ) ) {\r\n\t\t\t\t\t$obj[$current_var] = array();\r\n\t\t\t\t\t$this->_set_option( $obj[$current_var], join( '.', $var ), $value, $recurse );\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$obj[$current_var] = $value;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif ( $recurse ) {\r\n\t\t\t\t\tif ( count( $var ) ) {\r\n\t\t\t\t\t\t$next_var = reset( $var );\r\n\t\t\t\t\t\t$obj[$current_var] = array();\r\n\t\t\t\t\t\t$this->_set_option( $obj[$current_var], join( '.', $var ), $value, $recurse );\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$obj[$current_var] = $value;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$obj[$current_var] = $value;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected function _processNestedSetQueries() {\n foreach ($this->nestedSetQueries as $query) {\n call_user_func_array($query['callable'], $query['arguments']);\n }\n $this->nestedSetQueries = array();\n }",
"protected function setClauses()\n {\n\n foreach ($this->join as $join) {\n $this->query->join($join['table'], $join['firstConstraint'], $join['operator'], $join['secondConstraint']);\n }\n\n foreach ($this->wheres as $where) {\n\n if ($where['column'] instanceof Closure) {\n $this->query->where($where['column']);\n } else {\n $this->query->where($where['column'], $where['operator'], $where['value']);\n }\n\n }\n\n foreach ($this->orWhere as $orWhere) {\n $this->query->orWhere($orWhere['column'], $orWhere['operator'], $orWhere['value']);\n }\n\n foreach ($this->whereIns as $whereIn) {\n $this->query->whereIn($whereIn['column'], $whereIn['values']);\n }\n\n foreach ($this->orderBys as $orders) {\n $this->query->orderBy($orders['column'], $orders['direction']);\n }\n\n if (isset($this->take) and !is_null($this->take)) {\n $this->query->take($this->take);\n }\n\n if (isset($this->limit) and !is_null($this->limit)) {\n $this->query->limit($this->limit);\n }\n\n return $this;\n }",
"function setPaginated($value = true) {\n\t\ttrigger_error('implement setPaginated in form db driver');\n\t}",
"public static function setExpandOptions($options)\n {\n \tself::$expandOptions = $options;\n }",
"public function getRecursive()\n {\n return $this->options['recursive'];\n }",
"public function setFilters()\n {\n $this->activeQueryLog()\n ->setFields()\n ->setCriteriaByQueryString()\n ->setCriteria()\n ->setIncludes()\n ->setLimit()\n ->setOrder()\n ->setGroup();\n }",
"public function findAllOptions($settings) {\r\n }",
"protected function init()\n {\n foreach ($this->options as $name => $value) {\n switch ($name) {\n case 'field':\n $this->setFields($value);\n break;\n case 'facet':\n $this->setFacets($value);\n break;\n }\n }\n }",
"public function setOptions($var) {}"
] | [
"0.579493",
"0.57004684",
"0.55850136",
"0.5492215",
"0.544671",
"0.5424427",
"0.5408031",
"0.5391524",
"0.53772426",
"0.5370394",
"0.5318479",
"0.5316473",
"0.53027534",
"0.52447605",
"0.5244368",
"0.5211086",
"0.51846826",
"0.5177031",
"0.51540416",
"0.51285064",
"0.5127361",
"0.5125216",
"0.51156056",
"0.5101957",
"0.51011646",
"0.50561446",
"0.5037605",
"0.50347924",
"0.5032518",
"0.5019684"
] | 0.7179235 | 0 |
Try to find subject model in conditions data. | protected function _findModelInConditions($conditions) {
$model = null;
foreach ($conditions as $key => $value) {
if (is_array($value)) {
$model = $this->_findModelInConditions($value);
}
if (!empty($model)) {
break;
}
$model = $this->_findModelInValue($key);
if (!empty($model)) {
break;
}
$model = $this->_findModelInValue($value);
if (!empty($model)) {
break;
}
}
return $model;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function CheckSubjectItemReqs() {\n\n\t\t/* SET UP AN OBJECT TO THE SUBJECT_DETAIL_ID CLASS */\n\t\t$obj_sdi=new SubjectDetailID;\n\t\t$obj_sdi->SetParameters($this->arr_subject_details[\"subject_detail_id\"]);\n\n\t\t$arr_items=$obj_sdi->GetItemReqsArr();\n\t\tprint_r($arr_items);\n\n\t\t$arr_matching_resources=array();\n\t\t$v_arr_items=array();\n\n\t\t/* DATABASE CONNECTION */\n\t\t$db=$GLOBALS['db'];\n\n\t\t$sql=\"SELECT DISTINCT(resource_id) as resource_id\n\t\t\t\t\tFROM \".$GLOBALS['database_prefix'].\"resource_items ri\n\t\t\t\t\tORDER BY resource_id\n\t\t\t\t\t\";\n\t\t//echo $sql.\"<br>\";\n\t\t$result = $db->Query($sql);\n\t\tif ($db->NumRows($result) > 0) {\n\t\t\twhile($row = $db->FetchArray($result)) {\n\n\n\t\t\t\t$v_arr_items=\"\";\n\t\t\t\t$sql1=\"SELECT ri.item_id, rim.item_name\n\t\t\t\t\t\t\tFROM \".$GLOBALS['database_prefix'].\"resource_items ri, \".$GLOBALS['database_prefix'].\"resource_item_master rim\n\t\t\t\t\t\t\tWHERE ri.resource_id = '\".$row['resource_id'].\"'\n\t\t\t\t\t\t\tAND ri.item_id = rim.item_id\n\t\t\t\t\t\t\t\";\n\t\t\t\t//echo $sql1.\"<br>\";\n\t\t\t\t$result1 = $db->Query($sql1);\n\t\t\t\tif ($db->NumRows($result1) > 0) {\n\t\t\t\t\twhile($row1 = $db->FetchArray($result1)) {\n\t\t\t\t\t\t$item_id=$row1['item_id'];\n\t\t\t\t\t\t$v_arr_items[$item_id]=$row1['item_name'];\n\t\t\t\t\t\t/*\n\t\t\t\t\t\tif (!array_key_exists($row1['item_id'],$arr_items)) {\n\t\t\t\t\t\t\techo \"I did not find item reqd: \".$row1['item_id'].\" in the list of requirements for resource id: \".$row['resource_id'];\n\t\t\t\t\t\t\t$found=False;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t*/\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\techo \"Items that this subject has:\";\n\t\t\t\tprint_r($arr_items);\n\t\t\t\techo \"Items that the venue has:\";\n\t\t\t\tprint_r($v_arr_items);\n\t\t\t\t*/\n\n\t\t\t\t$found=True;\n\t\t\t\tforeach ($arr_items as $key => $val) {\n\t\t\t\t\t$this->debug(\"Searching for item: $val [$key] in the array of requirements for facilities\");\n\t\t\t\t\tif (!array_key_exists($key,$v_arr_items)) {\n\t\t\t\t\t\t$this->debug(\"Resource id: \".$row['resource_id'].\" is NOT equipped with a $val [$key]\");\n\t\t\t\t\t\t$found=False;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$this->debug(\"Resource id: \".$row['resource_id'].\" is equipped with a $val [$key]\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ($found) {\n\t\t\t\t\t$this->debug(\"Found a match in resource id: \".$row['resource_id']);\n\t\t\t\t\t//return $row['resource_id'];\n\t\t\t\t\t$arr_matching_resources=$row['resource_id'];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $arr_matching_resources;\n\t\t}\n\t\telse {\n\t\t\t$this->debug(\"No venues available to check for resources\",$this->arr_subject_details[\"user_id\"],\"ERROR\");\n\t\t\treturn false;\n\t\t}\n\t}",
"private function parse_subject() {\n\t foreach($this->graph->resourcesMatching(NS::expand(\"rr:subject\")) as $key => $TripleMap)\n\t {\n \t\t//echo \"rr:subject \".$TripleMap.\"\\n\";\n\t $tmp = array_search($TripleMap, $this->mapping);\n\t if(!$tmp)\n\t {\n\t $this->mapping[] = $TripleMap;\n\t }\n\t }\n\t}",
"private function GetSubjectDetail() {\n\t\t/* DATABASE CONNECTION */\n\t\t$db=$GLOBALS['db'];\n\n\t\t$var_return_code=True;\n\n\t\t$sql=\"SELECT subject_detail_id,description,user_id,date_start,date_end,duration_hours,capacity\n\t\t\t\t\tFROM \".$GLOBALS['database_prefix'].\"scheduling_subject_detail\n\t\t\t\t\tWHERE resource_booking_id IS NULL\n\t\t\t\t\tORDER BY user_id\n\t\t\t\t\t\";\n\t\t$this->debug($sql,\"\",\"SQL\");\n\t\t$result = $db->Query($sql);\n\t\tif ($db->NumRows($result) > 0) {\n\t\t\twhile($row = $db->FetchArray($result)) {\n\n\t\t\t\t$this->arr_subject_details[\"subject_detail_id\"]=$row['subject_detail_id'];\n\t\t\t\t$this->arr_subject_details[\"description\"]=$row['description'];\n\t\t\t\t$this->arr_subject_details[\"user_id\"]=$row['user_id'];\n\t\t\t\t$this->arr_subject_details[\"date_start\"]=$row['date_start'];\n\t\t\t\t$this->arr_subject_details[\"date_end\"]=$row['date_end'];\n\t\t\t\t$this->arr_subject_details[\"duration_hours\"]=$row['duration_hours'];\n\t\t\t\t$this->arr_subject_details[\"capacity\"]=$row['capacity'];\n\n\n\t\t\t\t//$this->debug(\"Starting MatchSubjectLecturers method\",$row['user_id'],\"LECTSTART\");\n\t\t\t\t//$this->arr_subject_details=$db->FetchArray($result);\n\t\t\t\t//print_r($this->arr_subject_details);\n\t\t\t\t$v=$this->MatchSubjectLecturers();\n\t\t\t\tif (!$v) {\n\t\t\t\t\t$var_return_code=False;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t$this->Errors(\"No subjects to run schedule for\");\n\t\t\t$var_return_code=False;\n\t\t}\n\n\t\treturn $var_return_code;\n\t}",
"abstract public function getCriteria(DBaseModelSearch $search);",
"public static function find($arrConditions);",
"public function buildConditions($model, $data) {\n\t\t$this->setComparisonTypes($data, $model, true);\n\t\t$conditions = $this->controller->{$model}->parseCriteria($data);\n\n\t\treturn $conditions;\n\t}",
"private function getSubjectVars()\n {\n //map requests only\n if ($this->pdfType !== null) {\n return [$this->pdfType, $this->regNo, $this->ebsr->getId()];\n }\n\n if ($this->regNo) {\n return [$this->regNo, $this->ebsr->getId()];\n }\n\n return [$this->ebsr->getId()];\n }",
"private function parse_subjectMap() {\n\t foreach($this->graph->resourcesMatching(NS::expand(\"rr:subjectMap\")) as $key => $TripleMap)\n\t {\n \t\t//echo \"rr:subjectMap \".$TripleMap.\"\\n\";\n\t $tmp = array_search($TripleMap, $this->mapping);\n\t if(!$tmp)\n\t {\n\t $this->mapping[] = $TripleMap;\n\t }\n\t }\n\t}",
"function getSubjectDetails($params = array()){\n\n\t\t$this->db->select('*');\n\n\t\t$this->db->from($this->subjectTbl);\n\n //fetch data by conditions\n\n\t\tif(array_key_exists(\"conditions\",$params)){\n\n\t\t\tforeach ($params['conditions'] as $key => $value) {\n\n\t\t\t\t$this->db->where($key,$value);\n\n\t\t\t}\n\n\t\t}\n\n\t\tif(array_key_exists(\"id\",$params)){\n\n\t\t\t$this->db->where('id',$params['id']);\n\n\t\t\t$query = $this->db->get();\n\n\t\t\t$result = $query->row_array();\n\n\t\t}else{\n\n //set start and limit\n\n\t\t\tif(array_key_exists(\"start\",$params) && array_key_exists(\"limit\",$params)){\n\n\t\t\t\t$this->db->limit($params['limit'],$params['start']);\n\n\t\t\t}elseif(!array_key_exists(\"start\",$params) && array_key_exists(\"limit\",$params)){\n\n\t\t\t\t$this->db->limit($params['limit']);\n\n\t\t\t}\n\n\t\t\t$query = $this->db->get();\n\n\t\t\tif(array_key_exists(\"returnType\",$params) && $params['returnType'] == 'count'){\n\n\t\t\t\t$result = $query->num_rows();\n\n\t\t\t}elseif(array_key_exists(\"returnType\",$params) && $params['returnType'] == 'single'){\n\n\t\t\t\t$result = ($query->num_rows() > 0)?$query->row_array():FALSE;\n\n\t\t\t}else{\n\n\t\t\t\t$result = ($query->num_rows() > 0)?$query->result_array():FALSE;\n\n\t\t\t}\n\n\t\t}\n\n //return fetched data\n\n\t\treturn $result;\n\n\t}",
"public function SearchSubject(){\n \n }",
"public static function classSubjectStudent($aagc_id,$session_id,$term_id=false,$student_id){\n \n /*Collect subject in a given term*/\n if($session_id > 4)\n {\n if($term_id)\n\n $subjects = DB::select('SELECT DISTINCT sub.id, sub.name FROM (SELECT subject_id FROM assessments WHERE aagc_id='.$aagc_id.' AND session_id='.$session_id.' AND term_id='.$term_id.' AND student_id='.$student_id.') ass INNER JOIN subjects sub ON ass.subject_id = sub.id \n\n ORDER BY sub.name ASC');\n\n\n /*Collect subject in a given session*/\n else\n $subjects = DB::select('SELECT DISTINCT sub.id, sub.name FROM (SELECT subject_id FROM assessments WHERE aagc_id='.$aagc_id.' AND session_id='.$session_id.' AND student_id='.$student_id.' AND subject_id !=49) ass INNER JOIN subjects sub ON ass.subject_id = sub.id ORDER BY sub.name ASC');\n\n }\n else {\n if($term_id)\n\n $subjects = DB::select('SELECT DISTINCT sub.id, sub.name FROM (SELECT subject_id FROM assessments WHERE aagc_id='.$aagc_id.' AND session_id='.$session_id.' AND term_id='.$term_id.' AND student_id='.$student_id.') ass INNER JOIN subjects sub ON ass.subject_id = sub.id \n\n ORDER BY sub.name ASC');\n\n\n /*Collect subject in a given session*/\n else\n $subjects = DB::select('SELECT DISTINCT sub.id, sub.name FROM (SELECT subject_id FROM assessments WHERE aagc_id='.$aagc_id.' AND session_id='.$session_id.' AND student_id='.$student_id.') ass INNER JOIN subjects sub ON ass.subject_id = sub.id ORDER BY sub.name ASC');\n\n }\n\n\n return Addon::isEmpty($subjects);\n }",
"function beforeFind(&$model, $queryData) \n { \n if (array_key_exists($this->typeField, $model->_schema) && $model->alias != $this->parentClass->alias) { \n if (!isset($queryData['conditions'])) { \n $queryData['conditions'] = array(); \n } \n if (is_string($queryData['conditions'])) { \n if (strlen(trim($queryData['conditions']))) { \n $queryData['conditions'] = \"({$queryData['conditions']}) AND \"; \n } \n $queryData['conditions'] .= $model->alias.'.'.$this->typeField.' = '.$this->typeAlias; \n } \n elseif (is_array($queryData['conditions'])) { \n if (!isset($queryData['conditions'][$model->alias.'.'.$this->typeField])) { \n $queryData['conditions'][$model->alias.'.'.$this->typeField] = array(); \n } \n $queryData['conditions'][$model->alias.'.'.$this->typeField] = $this->typeAlias; \n } \n \n } \n return $queryData; \n }",
"private function getSubject($subj)\r\n {\r\n $result = $this->getDoctrine()->getManager()->getRepository(Subject::class)\r\n ->findOneBy(['subjName' => $subj]);\r\n if (!$result) {\r\n throw $this->createNotFoundException(\"Не найде тема по заданному имени.{$subj}\");\r\n }\r\n return $result;\r\n\r\n }",
"abstract public function getCriteria();",
"function ting_search_context_check_subject_contexts($facets, $subject_contexts, $type) {\n $index = ting_search_context_get_subject_index_by_type($type);\n $top_term_count = 0;\n $top_context = null;\n foreach ($subject_contexts as $context) {\n if (isset($context->subjects)) {\n $context->subjects = preg_replace('/\\s+/', '', $context->subjects);\n $subjects= explode(',', $context->subjects);\n $term_count = ting_search_context_get_top_term_count($facets, $index, $subjects);\n // Check if the current context is a better match than the previous.\n if ($term_count > $top_term_count) {\n $top_term_count = $term_count;\n $top_context = $context;\n }\n }\n }\n return $top_context;\n}",
"public function getSubjectData();",
"private function MatchSubjectLecturers() {\n\n\t\t//$row=$this->arr_subject_details;\n\t\t/* WE ARE LOOPING THE LIST OF SUBJECTS WITH THEIR CORRESPONDING DATA */\n\t\t//foreach ($row as $key => $val) {\n\n\t\t\t$this->debug(\"<hr>\",\"\",\"HTML\");\n\n\t\t\t/* INITIAL DEBUG TO DESCRIBE THE SUBJECT WE'RE DEALING WITH */\n\t\t\t$this->debug(\"Starting check for subject ID \".$this->arr_subject_details['subject_detail_id'].\" desc: \".$this->arr_subject_details['description'].\" for \".$this->arr_subject_details['duration_hours'].\" hours\",$this->arr_subject_details[\"user_id\"],\"SUBJECT\");\n\n\t\t\t/* THIS MUST COME BEFORE THE GetLecturerFreeSlots METHOD */\n\t\t\t$this->debug(\"Initialising all resources for at least \".$this->arr_subject_details['capacity'].\" people\",$this->arr_subject_details[\"user_id\"],\"RESOURCES\");\n\t\t\t$result=$this->SetResourcesAvailable($this->arr_subject_details['capacity']);\n\t\t\tif (!$result) { $this->Errors(\"No available resources\"); return false; }\n\n\t\t\t/* GET ALL THE FREE SLOTS FOR THE LECTURER TEACHING THE SUBJECT */\n\t\t\t$this->debug(\"Initialising lecturer free slots\",$this->arr_subject_details[\"user_id\"],\"SLOTS\");\n\t\t\t$result=$this->InitLecturerFreeSlots($this->arr_subject_details['user_id'],$this->arr_subject_details['duration_hours']);\n\t\t\tif (!$result) { $this->Errors(\"The lecturer [ID:\".$this->arr_subject_details['user_id'].\"] has no free slots\"); return false; }\n\n\t\t\t/* SEARCH FOR AN AVAILABLE RESOURCE */\n\t\t\t$this->debug(\"Now searching available resources\",$this->arr_subject_details[\"user_id\"],\"RESOURCES\");\n\t\t\t$v_resource_id_found=$this->MatchResourceAvailability($this->found_lect_available[\"dow\"],$this->found_lect_available[\"start_time\"],$this->found_lect_available[\"end_time\"]);\n\t\t\tif (!$v_resource_id_found) { $this->Error(\"There are no available venues\"); return false; }\n\t\t\telse {\n\t\t\t\t$this->debug(\"Found an available venue: \".$v_resource_id_found.\" on \".$this->found_lect_available[\"dow\"].\" at \".$this->found_lect_available[\"start_time\"].\" to \".$this->found_lect_available[\"end_time\"].\" lets start saving the slot\",$this->arr_subject_details[\"user_id\"],\"RESOURCES\");\n\t\t\t}\n\n\t\t\t/* LETS RESERVE THE SLOT IN THE RESOURCES BOOKING */\n\t\t\t$obj_ri=new ResourceID;\n\t\t\t$result=$obj_ri->ResourceBookingIDAdd($v_resource_id_found,$this->arr_subject_details[\"date_start\"],$this->arr_subject_details[\"date_end\"],$this->found_lect_available[\"dow\"],$this->found_lect_available[\"start_time\"],$this->found_lect_available[\"end_time\"],$this->arr_subject_details[\"description\"],$this->arr_subject_details[\"subject_detail_id\"]);\n\t\t\tif (!$result) { $this->Errors($obj_ri->ShowErrors()); return false; }\n\t\t\telse {\n\n\t\t\t\t$this->debug(\"Found venue and booked: \".$v_resource_id_found.\" with booking id: \".$obj_ri->GetInfo(\"last_insert_resource_booking_id\"),$this->arr_subject_details[\"user_id\"],\"RESOURCES\");\n\t\t\t}\n\n\t\t\t/* UPDATE THE BOOKING ID BACK TO THE SCHEDULING TABLE */\n\t\t\t$result=$this->UpdateSchedulingSubjectDetail($obj_ri->GetInfo(\"last_insert_resource_booking_id\"),$this->arr_subject_details[\"subject_detail_id\"]);\n\t\t\tif (!$result) { $this->Errors(\"Unable to save the stored venue into the scheduling table\"); return false; }\n\t\t\telse {\n\t\t\t\t$this->debug(\"Updated the booking ID into the scheduling table\",$this->arr_subject_details[\"user_id\"],\"RESOURCES\");\n\t\t\t}\n\n\n\t\t\t$this->debug(\"<hr>\",\"\",\"HTML\");\n\t\t//}\n\t}",
"private function findModels()\n {\n $this->models = array();\n foreach ($this->methods as $func) {\n $matches = array();\n for ($i = $func['start']; $i <= $func['end']; $i++) {\n // A model is assigned and not ignored with tag @checkForgetMe\n if (preg_match_all('/\\$([a-zA-Z_]+)\\s*=\\s*ORM::factory\\([\\'\"]([a-zA-Z_]+)[\\'\"]/',\n $this->content[$i], $matches) > 0\n && strpos($this->content[$i], \"@checkForgetMe\") === FALSE) {\n for ($j = 0; $j < sizeof($matches[0]); $j++) {\n $orm = ORM::factory($matches[2][$j]);\n \n // Create data structure\n $this->models[] = array(\n \"var\" => $matches[1][$j],\n \"model\" => $matches[2][$j],\n \"start\" => $i,\n \"end\" => $func['end'],\n \"columns\" => array_keys($orm->table_columns()),\n \"relationships\" => array_merge(array_keys($orm->belongs_to()),\n array_keys($orm->has_many()),\n array_keys($orm->has_one())),\n \"update\" => false,\n \"insert\" => false\n );\n }\n }\n }\n }\n }",
"public function findWhere($condition)\n {\n $model = $this->model->where($condition);\n return $model->first();\n }",
"public function getCriteria();",
"public function getCriteria();",
"protected function _getFindResult($subject)\n {\n if (!empty($subject->entities)) {\n return $subject->entities;\n }\n\n return $subject->entity;\n }",
"private function guessSubject(): ?RichSnippetSubjectInterface\n {\n foreach ($this->subjectFetchers as $subjectFetcher) {\n if ($subjectFetcher->canFromRequest($this->request)) {\n return $subjectFetcher->fetchFromRequest($this->request);\n }\n }\n\n return null;\n }",
"function get_subject_by_id($sel_sid){\n\tglobal $connection;\n\t\t$query= \"SELECT * \".\" \";\n\t\t$query.=\"FROM subjects\".\" \";\n\t\t$query.=\"WHERE id={$sel_sid}\".\" \";\n\t\t$query.=\"LIMIT 1 \";\n\t\t$result = mysql_query($query,$connection);\n\t\t$subject_set=confirm_query($result);\n\t\t$subject_set = mysql_fetch_array($subject_set);\n\t\tif($subject_set){\n\t\t\treturn $subject_set;\n\t\t}\n}",
"function find_subject_by_id($subject_id)\n {\n global $connection;\n\n /* Genero la cadena con el query */\n $query = \"select * \";\n $query .= \"from Subjects \";\n $query .= \"where id= \" . mysqli_prep($subject_id) .\" \";\n $query .= \"limit 1 \";\n\n /* Ejecuto query en la base */\n $subject_set = mysqli_query($connection,$query);\n\n /* Verifico si hubo retorno del query */\n confirm_query($subject_set);\n\n /* Genero un array asociativo con toda la información o null */\n if($subject=mysqli_fetch_assoc($subject_set))\n {\n return $subject;\n }\n return null;\n\n }",
"public function selectWorkshop($subjects,$planID){\n\t\t$collection = collect([]);\n\n\t\tforeach($subjects as $subject){\n\t\t\t$sub = Subject::find($subject);\n\t\t\tif($sub->isAvailable($planID)){\n\t\t\t\t$collection->push($sub->id);\n\t\t\t}\n\t\t}\n\n\t\tif($collection->isEmpty()){\n\t\t\treturn false;\n\t\t}else{\n\t\t\treturn $subjectID = $collection->random();\n\t\t}\n\n\t\t\n\t}",
"private function queryAvailable($model = '')\n {\n // Setup query limiters based on self::$input_filters\n $limit_to_insts = self::limitToIds('inst_id');\n $limit_to_provs = self::limitToIds('prov_id');\n $limit_to_plats = self::limitToIds('plat_id');\n\n // Get counts and min/max yearmon for each master report\n $output = array();\n $all_models = ['TR' => '\\\\App\\\\TitleReport', 'DR' => '\\\\App\\\\DatabaseReport',\n 'PR' => '\\\\App\\\\PlatformReport', 'IR' => '\\\\App\\\\ItemReport'];\n $raw_query = \"Count(*) as count, min(yearmon) as YM_min, max(yearmon) as YM_max\";\n $models = ($model == '') ? $all_models : array($all_models[$model]);\n\n foreach ($models as $key => $model) {\n $result = $model::when($limit_to_insts, function ($query, $limit_to_insts) {\n return $query->whereIn('inst_id', $limit_to_insts);\n })\n ->when($limit_to_provs, function ($query, $limit_to_provs) {\n return $query->whereIn('prov_id', $limit_to_provs);\n })\n ->when($limit_to_plats, function ($query, $limit_to_plats) {\n return $query->whereIn('plat_id', $limit_to_plats);\n })\n ->selectRaw($raw_query)\n ->get()\n ->toArray();\n\n // if no data, set dates to one month ago (to keep them from being ...1969)\n if ($result[0]['count'] == 0) {\n $result[0]['YM_min'] = date(\"Y-m\", mktime(0, 0, 0, date(\"m\") - 1, date(\"d\"), date(\"Y\")));\n $result[0]['YM_max'] = $result[0]['YM_min'];\n }\n $output[$key] = $result[0];\n }\n return $output;\n }",
"abstract protected function getSubject();",
"public function condition($model) {\n\t\t$p = $this->params;\n\t\treturn ( ( $p['deal'] == '*' || $p['deal'] === $model->deal ) && ( $p['what'] == '*' || $p['what'] === $model->what ) && \n\t\t\t$model->price >= $p['p1'] && $model->price <= $p['p2'] );\n\t}",
"public function getbysubject($subject)\n {\n\n $question=QuestionFill::with('question_answer')->with('reverseQuestionSubject.reverseQuestionCategory')->where('subject', 'like', $subject.'%')->get();\n\n \treturn [\n 'prodikudata' => $question,\n 'total_item' => count($question),\n 'success' => 1\n ];\n }"
] | [
"0.5333488",
"0.5328497",
"0.5149798",
"0.51372266",
"0.50991255",
"0.50851655",
"0.5013376",
"0.49534294",
"0.49366987",
"0.49116924",
"0.4905959",
"0.4898697",
"0.48608747",
"0.48514637",
"0.48300377",
"0.48051673",
"0.47926998",
"0.4763985",
"0.4762244",
"0.4746615",
"0.4746615",
"0.47456318",
"0.47220898",
"0.47180402",
"0.47117424",
"0.4711182",
"0.47101173",
"0.47089684",
"0.4706507",
"0.4702783"
] | 0.61284804 | 0 |
sadly this facade has no option to retrieve annotations of testcases | protected function getTestCaseAnnotations()
{
return array();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function get_annotations() {\n\n\t\t// PHPUnit < 9.5.0.\n\t\tif ( method_exists( $this, 'getAnnotations' ) ) {\n\t\t\treturn $this->getAnnotations();\n\t\t}\n\n\t\t// PHPUnit >= 9.5.0.\n\t\treturn \\PHPUnit\\Util\\Test::parseTestMethodAnnotations(\n\t\t\tstatic::class,\n\t\t\t$this->getName( false )\n\t\t);\n\n\t}",
"public function getAnnotations(){ }",
"public function getAnnotation() {}",
"public function testExtractAnnotations()\n {\n // Test Data\n $testAnnotations = [\n \"nodeName\" => \"annotations\",\n \"features\" => [\n [\n \"nodeName\" => \"features\",\n \"value\" => \"TestFeatures\"\n ]\n ],\n \"stories\" => [\n [\n \"nodeName\" => \"stories\",\n \"value\" => \"TestStories\"\n ]\n ],\n \"description\" => [\n [\n \"nodeName\" => \"description\",\n \"value\" => \"TestDescription\"\n ]\n ],\n \"severity\" => [\n [\n \"nodeName\" => \"severity\",\n \"value\" => \"CRITICAL\"\n ]\n ],\n \"group\" => [\n [\n \"nodeName\" => \"group\",\n \"value\" => \"TestGroup\"\n ]\n ],\n ];\n // Perform Test\n $extractor = new AnnotationExtractor();\n $returnedAnnotations = $extractor->extractAnnotations($testAnnotations, \"testFileName\");\n\n // Asserts\n\n $this->assertEquals(\"TestFeatures\", $returnedAnnotations['features'][0]);\n $this->assertEquals(\"TestStories\", $returnedAnnotations['stories'][0]);\n $this->assertEquals(\"TestDescription\", $returnedAnnotations['description'][0]);\n $this->assertEquals(\"CRITICAL\", $returnedAnnotations['severity'][0]);\n $this->assertEquals(\"TestGroup\", $returnedAnnotations['group'][0]);\n }",
"public function getTestCaseResults(): array;",
"public function testGetMetadata2()\n {\n }",
"public function get_annotations($obj);",
"public function testGetName()\n {\n $this->assertSame('success', $this->annotation->getName());\n }",
"public static function annotateTextsTest()\n {\n return self::annotateTexts(\n array(\n 'http://www.healthline.com/health/food-nutrition/pineapple-juice-benefits' => 'Chicken, pineapple, avocado, and black beans bring all of the flavors of Cuba to romaine lettuce! I came up with this recipe to use leftover chicken in a way that combines all of the delicious Cuban flavors I grew up with.'\n ));\n }",
"public function getAnnotations()\n {\n return $this->annotations;\n }",
"public function getAnnotations()\n {\n return $this->annotations;\n }",
"public function testLoadAnnotations(): void\n {\n $factory = new ClassMetadataFactory($this->dm);\n\n // Check the annotation is correctly read if it is present\n $metadata = $factory->getMetadataFor(VersionableArticle::class);\n $this->assertInstanceOf(ClassMetadata::class, $metadata);\n $this->assertEquals('simple', $metadata->versionable);\n\n // Check the annotation is not set if it is not present\n $metadata = $factory->getMetadataFor(NonVersionableArticle::class);\n $this->assertInstanceOf(ClassMetadata::class, $metadata);\n $this->assertFalse($metadata->versionable);\n }",
"public function testScenarioAnalysis()\n {\n }",
"public function getAnnotationTarget();",
"public function readMethodMetaData()\n {\n /** @var Inspector\\AnnotationsList|Inspector\\AnnotationInterface[] $tags */\n $tags = $this->_inspector->getMethodAnnotations('start');\n $this->assertEquals('\\Exception', $tags->getAnnotation('@throws')->getValue());\n $this->assertEquals('boolean The car state', $tags['return']->getValue());\n $this->assertEquals(0, count($this->_inspector->getMethodAnnotations('stop')));\n $this->_inspector->getMethodAnnotations('_unknown');\n }",
"public function getAnnotations() : array\n {\n return $this->annotations;\n }",
"public function annotate();",
"public function testInfo()\n {\n }",
"public function getters_testcases() {\n return [\n 'Dataset 1' => [\n 'constructorparams' => [\n 'event' => new core_calendar_action_event_test_event(),\n 'action' => new action(\n 'action 1',\n new moodle_url('http://example.com'),\n 2,\n true\n )\n ]\n ],\n 'Dataset 2' => [\n 'constructorparams' => [\n 'event' => new core_calendar_action_event_test_event(),\n 'action' => new action(\n 'action 2',\n new moodle_url('http://example.com'),\n 5,\n false\n )\n ]\n ],\n ];\n }",
"public function getIdentifyingTest()\n {\n return $this->identifyingTest;\n }",
"public function accessTestCases() {\n return [\n 'Transition add' => [\n 'add-transition',\n 'add-transition',\n ],\n 'Transition update' => [\n 'update-transition',\n 'update-transition:foo-transition',\n [\n 'workflow_transition' => 'foo-transition',\n ],\n ],\n 'Transition delete' => [\n 'delete-transition',\n 'delete-transition:foo-transition',\n [\n 'workflow_transition' => 'foo-transition',\n ],\n ],\n 'State add' => [\n 'add-state',\n 'add-state',\n ],\n 'State update' => [\n 'update-state',\n 'update-state:bar-state',\n [\n 'workflow_state' => 'bar-state',\n ],\n ],\n 'State delete' => [\n 'delete-state',\n 'delete-state:bar-state',\n [\n 'workflow_state' => 'bar-state',\n ],\n ],\n ];\n }",
"public function getAnnotations($annotation_name = null);",
"public function readClassMetaData()\n {\n\n /** @var Inspector\\Annotation[]|Inspector\\AnnotationsList $result */\n $result = $this->_inspector->getClassAnnotations();\n $this->assertInstanceOf('Slick\\Common\\Inspector\\AnnotationsList', $result);\n $this->assertTrue($result['package']->getValue() == 'Test\\Common\\Examples');\n $this->assertTrue($result['author']->getValue() == 'Filipe Silva <[email protected]>');\n $this->assertTrue($result['test']->getValue());\n\n $this->assertTrue($result->hasAnnotation('@author'));\n\n $this->assertFalse($result->hasAnnotation('@read'));\n \n $inspector = new Inspector('\\Common\\Examples\\Motor');\n $this->assertTrue(count($inspector->getClassAnnotations()) == 0);\n unset($inspector);\n }",
"public function getTestInformation()\n {\n return $this->info;\n }",
"public function test_likePrototypeGetReview() {\n\n }",
"public function testGetOrderLineActivityTags()\n {\n }",
"function getTestCases()\r\n {\r\n return $this->mTestCases;\r\n }",
"public function getAnnotationClassNames ();",
"public function testResult()\n {\n // /TestResult\n }",
"public function testLookupAspects()\n {\n }"
] | [
"0.66688216",
"0.66029435",
"0.6306665",
"0.6092008",
"0.59978217",
"0.5819265",
"0.5800114",
"0.57832015",
"0.57349545",
"0.57338",
"0.57338",
"0.5724222",
"0.5713588",
"0.56288624",
"0.56208843",
"0.56135696",
"0.56102425",
"0.5586678",
"0.5541974",
"0.5530323",
"0.54582953",
"0.5453962",
"0.5436938",
"0.5420728",
"0.5418134",
"0.5390259",
"0.5380614",
"0.5364696",
"0.53459233",
"0.5341061"
] | 0.76381993 | 0 |
Returns array of defined units. | public function getUnits(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function units() {\r\n\treturn array('cm', 'em', 'rem', 's', 'en', 'ex', 'mm', 'in', 'pc', 'pt', 'px', '%');\r\n }",
"public static function getUnits()\n {\n $conn = &PDOData::connect();\n $stmt = $conn->prepare(\"SELECT * FROM units\");\n $stmt->execute();\n\n $result = array();\n while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {\n $result[] = $row;\n }\n\n PDOData::disconnect();\n return $result;\n }",
"public function getUnits() {\n return isset($this->container['Units']) ? $this->container['Units'] : null;\n\t}",
"protected function getAllowedUnits(): array\n {\n return [\n self::SECONDS,\n self::MINUTES,\n self::HOURS,\n self::DAYS,\n self::WEEKS,\n self::MONTHS,\n self::YEARS,\n ];\n }",
"public function units()\n\t{\n\t\tif (isset($this->units))\n\t\t{\n\t\t\treturn $this->units;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->units = array();\n\t\t}\n\n\t\t$assets = $this->_tbl->find(array('w'=>array('asset_id'=>$this->get('id'))));\n\t\tif ($assets && count($assets) > 0)\n\t\t{\n\t\t\tforeach ($assets as $asset)\n\t\t\t{\n\t\t\t\tif (isset($asset->unit_id))\n\t\t\t\t{\n\t\t\t\t\tif (!isset($this->units[$asset->unit_id]))\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->units[$asset->unit_id] = new Unit($asset->unit_id);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $this->units;\n\t}",
"function getForunits()\n\t{\n\t\t$st = $this->_getBoundStmt();\n\t\t\n\t\t$r = array();\n\t\twhile( $row = $st->fetch( PDO::FETCH_BOUND ) ) {\n\t\t\tif( !isset( $r[ $this->_d['unit'] ] ) ) {\n\t\t\t\t$r[ $this->_d['unit'] ] = array();\n\t\t\t}\n\t\t\t\n\t\t\t$r[ $this->_d['unit'] ][ $this->_d['id'] ] = array(\n\t\t\t\t'id'=>$this->_d['id'],\n\t\t\t\t'x'=>$this->_d['point']['x'],\n\t\t\t\t'y'=>$this->_d['point']['y'],\n\t\t\t\t't'=>$this->_d['time']\n\t\t\t);\n\t\t}\n\t\t\n\t\treturn $r;\n\t}",
"public function getUnits() {\n\t\t$sql = \"SELECT UnitID as value, UnitName as display FROM p_food_unit \" .\n\t\t\t\t\t\t\"WHERE UnitTypeID IN (1, 3, 4, 5)\";\n\t\t$units = $this->dbOb->query($sql);\n\t\treturn $units;\n\t}",
"public function getUnit()\n {\n $unit = $this->_params['unit'];\n\n switch ($unit) {\n case 'GB':\n $calc = 1024 * 1024 * 1024.0;\n break;\n\n case 'KB':\n $calc = 1024.0;\n break;\n\n case 'MB':\n default:\n $calc = 1024 * 1024.0;\n $unit = 'MB';\n break;\n }\n\n return array($calc, $unit);\n }",
"public function getUnits($x, $y)\n {\n if (isset($this->units[$x][$y])) {\n return $this->units[$x][$y];\n }\n return array();\n }",
"public function getUnits()\n {\n $query = \" SELECT unitName FROM $this->unitTable\";\n $exist = $this->conn->prepare($query);\n $exist->execute();\n while($row = $exist->fetch(PDO::FETCH_ASSOC)){\n $data[]=$row[\"unitName\"];\n }\n return $data;\n }",
"public function getPeriodUnits()\n {\n return array(\n // 'S' => $this->_('Seconds'),\n 'N' => $this->_('Minutes'),\n 'H' => $this->_('Hours'),\n 'D' => $this->_('Days'),\n 'W' => $this->_('Weeks'),\n 'M' => $this->_('Months'),\n 'Q' => $this->_('Quarters'),\n 'Y' => $this->_('Years')\n );\n }",
"function getMeasurementUnits()\n {\n return ($this->__measurement_units) ;\n }",
"public static function unitTypes()\n {\n\n // Mass_and Weight Units\n $mass_and_weight_units = array(\n 'Mass and Weight' => (object) array(\n 'pound' => 'pound',\n 'ounce' => 'ounce',\n 'mg' => 'mg',\n 'g' => 'g',\n 'kg' => 'kg',\n ),\n );\n\n // Volume Units\n $volume_units = array(\n 'Volume' => (object) array(\n 'tsp' => 'tsp',\n 'tbsp' => 'tbsp',\n 'ounce' => 'ounce',\n 'gill' => 'gill',\n 'cup' => 'cup',\n 'pint' => 'pint',\n 'quart' => 'quart',\n 'gallon' => 'gallon',\n 'ml' => 'ml',\n 'l' => 'l',\n 'dl' => 'dl',\n ),\n );\n\n // Create Array of Unit Types\n $units = array_merge($mass_and_weight_units, $volume_units);\n\n return $units;\n }",
"public function getDateUnitsList()\n {\n return array(\n 'S' => $this->translate->_('Seconds'),\n 'N' => $this->translate->_('Minutes'),\n 'H' => $this->translate->_('Hours'),\n 'D' => $this->translate->_('Days'),\n 'W' => $this->translate->_('Weeks'),\n 'M' => $this->translate->_('Months'),\n 'Q' => $this->translate->_('Quarters'),\n 'Y' => $this->translate->_('Years')\n );\n }",
"public function listUnits(string $measurement = null): array;",
"public static function units($type){\n if($type==\"defender\"){\n return array(\"def\"=>1,\"maj\"=>0);\n } else if($type==\"2maj\"){\n return array(\"def\"=>0,\"maj\"=>2);\n } else if($type==\"3maj\"){\n return array(\"def\"=>0,\"maj\"=>3);\n } else if($type==\"majestic\"){\n return array(\"def\"=>0,\"maj\"=>1);\n } else if($type==\"system\"){\n return array(\"def\"=>1,\"maj\"=>1);\n } else if($type==\"supersystem\"){\n return array(\"def\"=>2,\"maj\"=>1);\n } else if($type==\"megasystem\"){\n return array(\"def\"=>3,\"maj\"=>1);\n } else if($type==\"novasystem\"){\n return array(\"def\"=>4,\"maj\"=>1);\n } else if($type==\"2defenders\"){\n return array(\"def\"=>2,\"maj\"=>0);\n } else if($type==\"3defenders\"){\n return array(\"def\"=>3,\"maj\"=>0);\n } else if($type==\"2system\"){\n return array(\"def\"=>2,\"maj\"=>2);\n } else if($type==\"supernova\"){\n return array(\"def\"=>5,\"maj\"=>1);\n }\n }",
"public function getUnits()\n\t{\n\t\t$Unit = new Product_Unit();\n\t\treturn $Unit->findList( array( 'ProductId = '.$this->Id ), 'Position asc' );\n\t}",
"public function wpf_units( $units ) {\r\n $units['g'] = __( 'g', 'wpf' );\r\n $units['kg'] = __( 'kg', 'wpf' );\r\n $units['mm'] = __( 'mm', 'wpf' );\r\n $units['cm'] = __( 'cm', 'wpf' ); \r\n $units['m'] = __( 'm', 'wpf' );\r\n $units['lbs'] = __( 'lbs', 'wpf' );\r\n $units['oz'] = __( 'oz', 'wpf' );\r\n $units['in'] = __( 'in', 'wpf' );\r\n $units['yd'] = __( 'yd', 'wpf' );\r\n return $units;\r\n }",
"function build_units() {\n global $SQUARES, $UNITLIST;\n\n $units = array();\n foreach ($SQUARES as $s) {\n if (!isset($units[$s])) {\n $units[$s] = array();\n }\n foreach ($UNITLIST as $u) {\n if (in_array($s, $u)) {\n $units[$s][] = $u;\n }\n }\n }\n return $units;\n}",
"public function get_units()\n\t{\n\t\t$ol = new object_list(array(\n\t\t\t\"class_id\" => CL_UNIT,\n\t\t\t\"status\" => object::STAT_ACTIVE\n\t\t));\n\t\treturn $ol;\n\t}",
"public function getAllFactors()\n {\n return $this->units;\n }",
"public function getUnitOfMeasurementAllowableValues()\n {\n return [\n self::UNIT_OF_MEASUREMENT_SI,\n self::UNIT_OF_MEASUREMENT_SU,\n ];\n }",
"public static function setUNITS()\n {\n\n self::$UNITS = array(\n 'Speed' => array(\n Speed::MILES_PER_HOUR => Yii::t('main_translator', 'mph'),\n Speed::KILOMETER_PER_HOUR => Yii::t('main_translator', 'km_h'),\n Speed::METER_PER_SECOND => Yii::t('main_translator', 'm_s'),\n ),\n 'Distance' => array(\n Distance::INCH => Yii::t('main_translator', 'in'),\n Distance::FOOT => Yii::t('main_translator', 'ft'),\n Distance::KILOMETER => Yii::t('main_translator', 'km'),\n Distance::MILE => Yii::t('main_translator', 'mi'),\n Distance::METER => Yii::t('main_translator', 'm'),\n Distance::CENTIMETER => Yii::t('main_translator', 'cm'),\n ),\n 'Weight' => array(\n Weight::KILOGRAM => Yii::t('main_translator', 'kg'),\n Weight::GRAM => Yii::t('main_translator', 'g'),\n Weight::POUND => Yii::t('main_translator', 'lb'),\n ),\n 'Sugar' => array(\n Sugar::MILIGRAM_DL => Yii::t('main_translator', 'mg_dL'),\n Sugar::MILIMOL_L => Yii::t('main_translator', 'mmol_L'),\n ),\n 'Pressure' => array(\n Pressure::MMHG => Yii::t('main_translator', 'mmHg'),\n Pressure::PASCAL => Yii::t('main_translator', 'Pa'),\n ),\n 'Heartrate' => array(\n Heartrate::BPM => Yii::t('main_translator', 'bpm'),\n ),\n 'Respiration' => array(\n Respiration::BRPM => Yii::t('main_translator', 'brpm'),\n ),\n 'CAL' => array(\n Calories::CAL => Yii::t('main_translator', 'cal'),\n )\n );\n }",
"public function getUnits()\n {\n $query = Unit::where('course_id', $this->course->id);\n if ($this->parentUnit) {\n $query->where('parent_id', $this->parentUnit->id);\n }\n else {\n $query->whereNull('parent_id');\n }\n return $query->get();\n }",
"function measurement_unit_types() {\n return apply_filters( 'measurement_unit_types', array(\n 'px' => 'px',\n '%' => '%',\n 'em' => 'em',\n 'pt' => 'pt'\n ) );\n}",
"public function information_units_measure($id)\n {\n return $this->db->where('id_unit_measure', $id)->get('units_measure')->result_array();\n }",
"public function getItemDimensionsUnitAllowableValues()\n {\n return [\n self::ITEM_DIMENSIONS_UNIT_IN,\n self::ITEM_DIMENSIONS_UNIT_FT,\n self::ITEM_DIMENSIONS_UNIT_MM,\n self::ITEM_DIMENSIONS_UNIT_CM,\n self::ITEM_DIMENSIONS_UNIT_M,\n self::ITEM_DIMENSIONS_UNIT_YD,\n self::ITEM_DIMENSIONS_UNIT_INCHES,\n ];\n }",
"public function getNewAttackingUnits(): array {\n return $this->newAttackingUnits;\n }",
"function getAllUnits(){\n\tglobal $conn;\n\t\n\t$sql = \"SELECT COUNT(*) FROM `\".DB_PREFIX.\"units`\";\n\t$res = db_query($sql,DB_NAME,$conn);\n\t$row = db_fetch_array($res);\n\treset($row);\n\treturn current($row);\n}",
"public function getUnits(): Units\n {\n $headers = $this->__getLastResponseHeaders();\n\n if ($headers !== '' && preg_match('@^Units: (\\d+)/(\\d+)/(\\d+)@m', $headers, $m)) {\n return new Units($m[1], $m[2], $m[3]);\n }\n\n return new Units(-1, -1, -1);\n }"
] | [
"0.786757",
"0.77358323",
"0.75773644",
"0.74472904",
"0.73162323",
"0.7274611",
"0.7268688",
"0.72615564",
"0.7252953",
"0.72488785",
"0.72034436",
"0.71833736",
"0.7124435",
"0.71060795",
"0.70959646",
"0.70793873",
"0.7070851",
"0.6989592",
"0.6973152",
"0.6873508",
"0.68439114",
"0.67868954",
"0.6675887",
"0.6573972",
"0.6507819",
"0.6469329",
"0.6467141",
"0.64600337",
"0.6457698",
"0.64310426"
] | 0.8423054 | 0 |
Return a list with the liked posts | public function getLikes() {
$app = Aplicacion::getSingleton();
$conn = $app->conexionBd();
$sql = 'SELECT LP.idPost, LP.time FROM likedposts LP WHERE '.$_SESSION['user']->id().' = LP.idUser ORDER BY LP.time DESC'; // Return the user
$rs = $conn->query($sql);
if ($rs->num_rows > 0) {
return $rs;
} else return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function topic_posts_likes_get($post_data, $posts_list = false)\n\t{\n\t\tglobal $db, $cache, $config, $user, $lang;\n\n\t\tif (empty($post_data) || empty($post_data['topic_id']))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!empty($posts_list) && is_array($posts_list))\n\t\t{\n\t\t\t$sql_where = \" post_id IN(\" . implode(',', $posts_list) . \") \";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$sql_where = \" topic_id = \" . $post_data['topic_id'];\n\t\t}\n\n\t\t$topic_posts_likes = array();\n\t\t$sql = \"SELECT *\n\t\t\tFROM \" . POSTS_LIKES_TABLE . \"\n\t\t\tWHERE \" . $sql_where;\n\t\t$result = $db->sql_query($sql);\n\t\twhile ($row = $db->sql_fetchrow($result))\n\t\t{\n\t\t\t$topic_posts_likes['posts'][$row['post_id']][] = $row['user_id'];\n\t\t\t$topic_posts_likes['users'][$row['user_id']][] = $row['post_id'];\n\t\t}\n\t\t$db->sql_freeresult($result);\n\n\t\treturn $topic_posts_likes;\n\t}",
"public function post_likes() {\n\t\treturn $this->hasMany(PostLikes::class, 'post_id', 'id')->with('user');\n\t}",
"public function getAllPostLike($post_id)\n {\n return Like::find()->with('user')->with('post')->where(['post_id' => $post_id,'status' => '1'])->orderBy(['created_date'=>SORT_DESC])->all();\n \n }",
"public function likes()\n {\n return $this->has_many('Vote')\n ->where('like', '=', 1);\n }",
"public function get_likes(){\n\t\t\t//query \n\t\t\t$query = \"SELECT count(user_id)\n\t\t\t\t\t FROM \".$this->table.\"\n\t\t\t\t\t WHERE post_id = :post_id\";\n\n\t\t\t//stmt\n\t\t\t$stmt = $this->conn->prepare($query);\n\n\t\t\t//bind params \n\t\t\t$stmt->bindParam(':post_id', $this->post_id);\n\n\t\t\t//execute statement\n\t\t\t$stmt->execute();\n\n\t\t\t$result = $stmt->fetch(PDO::FETCH_ASSOC);\n\n\t\t\treturn $result;\n\t\t}",
"public function likePost(Request $request) {\n $liked = $request->input('liked');\n $postId = $request->input('id');\n $post = Post::find($postId);\n if($post != null) {\n $liked_users = unserialize($post->liked_by);\n if($liked_users == null) $liked_users = Array();\n $userId = Auth::user()->id;\n if($liked == 0) {\n if(in_array($userId, $liked_users)) {\n $index = array_search($userId, $liked_users);\n unset($liked_users[$index]);\n }\n } else {\n if(!in_array($userId, $liked_users)) array_push($liked_users, $userId);\n }\n $post->liked_by = serialize($liked_users);\n $post->save();\n return sizeof($liked_users);\n }\n }",
"public function fetchLikes()\n\t{\n\t\t$from_prefix = $this->config->from_prefix;\n\n\t\t$request = $this->db->query(\"\n\t\t\tSELECT l.id_member, l.content_id AS id_msg, m.id_member AS id_poster, l.like_time AS like_timestamp\n\t\t\tFROM {$from_prefix}user_likes AS l\n\t\t\t\tINNER JOIN {$from_prefix}messages AS m ON (m.id_msg = l.content_id)\n\t\t\tWHERE content_type = 'msg'\");\n\t\t$return = array();\n\t\twhile ($row = $this->db->fetch_assoc($request))\n\t\t\t$return[] = array(\n\t\t\t\t'id_member' => $row['id_member'],\n\t\t\t\t'id_msg' => $row['id_msg'],\n\t\t\t\t'id_poster' => $row['id_poster'],\n\t\t\t\t'like_timestamp' => $row['like_timestamp'],\n\t\t\t);\n\t\t$this->db->free_result($request);\n\n\t\treturn $return;\n\t}",
"public function postLikes(){\n $post = Comment::find(1);\n $like = new Like();\n $post->likes()->save($like);\n\n foreach($post->likes as $like){\n dd($like);\n }\n return Like::find(1)->likeable;\n }",
"public function GetLikes_post()\r\n {\r\n $feed_id = $this->input->post('feed_id');\r\n $GetLikes = $this->Feed_model->get_like($feed_id);\r\n $this->response([\r\n 'status' => true,\r\n 'data' => $GetLikes,\r\n ], REST_Controller::HTTP_OK);\r\n }",
"public function getLikes()\n {\n return $this->likes;\n }",
"public function index(Post $post)\n {\n\n $likesvalue = count($post->likes);\n return [\n 'likesvalue' => $likesvalue\n ];\n }",
"public function get_likes() {\n\t\t\treturn $this->likes;\n\t\t}",
"public function posts()\n {\n return $this->belongsToMany('App\\Post', 'likes');\n }",
"public function like() {\n return $this->hasMany('App\\Like', 'post_id', 'id');\n }",
"function likes($like)\n{\n $curl = curl_init();\n $paccess_token=pagetoken();\n //echo $access_token;\n curl_setopt_array($curl, array(\n CURLOPT_URL => \"https://graph.facebook.com/\".$like.\"/likes?access_token=\".$paccess_token,\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => \"\",\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 30,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => \"GET\",\n CURLOPT_HTTPHEADER => array(\n \"cache-control: no-cache\",\n \"postman-token: e4d23fcb-75ed-ece9-4fa2-32764d9de2ad\"\n ),\n ));\n\n $response = curl_exec($curl);\n $err = curl_error($curl);\n\n curl_close($curl);\n\n if ($err) {\n echo \"cURL Error #:\" . $err;\n die();\n }\n else {\n $result=(json_decode($response,true));\n $data=$result['data'];\n // echo '<pre>';\n // print_r($data);\n $dcount=count($data);\n $likes_id=array();\n for($i=0;$i<$dcount;$i++)\n {\n $likes_id[$i]=$data[$i]['id'];\n }\n // echo '<pre>';\n // print_r($posts_id);\n return $likes_id;\n\n }\n }",
"public function like()\n {\n return $this->postResponse($this->link['LIKES']);\n }",
"public function get_likes($network) {\n \n // Set params for getting all comments\n $params = array(\n 'owner_id' => $network[0]->net_id,\n 'item_id' => $network[0]->post_id,\n 'fields' => 'first_name,last_name,photo_100',\n 'extended' => 1,\n 'count' => '100',\n 'type' => 'post',\n 'access_token' => $network[0]->token,\n 'v' => $this->version\n );\n\n // Get cURL resource\n $curl = curl_init();\n\n // Set some options to in a useragent\n curl_setopt_array($curl, array(CURLOPT_RETURNTRANSFER => 1, CURLOPT_URL => $this->url . 'likes.getList' . '?' . urldecode(http_build_query($params)), CURLOPT_HEADER => false));\n\n // Get response\n $reactions = json_decode(curl_exec($curl), true);\n\n // Close request to clear up some resources\n curl_close($curl);\n \n // Verify if comments exists\n if ( !empty($reactions['response']['count']) ) {\n \n $all_reactions = array();\n \n foreach ( $reactions['response']['items'] as $reaction ) {\n \n $from = array(\n 'name' => $reaction['first_name'] . ' ' . $reaction['last_name'],\n 'id' => $reaction['id'],\n 'link' => 'https://vk.com/id' . $reaction['id'],\n 'user_picture' => $reaction['photo_100']\n\n );\n \n $all_reactions[1] = array(\n 'created_time' => '',\n 'message' => '<i class=\"icon-like\"></i>',\n 'from' => $from,\n 'id' => 1\n );\n \n }\n \n return array_values($all_reactions);\n \n } else {\n \n return $this->CI->lang->line('no_reactions');\n \n }\n \n }",
"public function getLikes(){\n $query = \"select count(*) as qtd_likes from tb_likes where id_jogo = :id_jogo\";\n\n $stmt = $this->db->prepare($query);\n\n $stmt->bindValue(':id_jogo', $this->__get('id'));\n\n $stmt->execute();\n\n return $stmt->fetch(\\PDO::FETCH_ASSOC);\n }",
"public function likes(){\n return $this->belongsToMany(LikeUserPost::class);\n }",
"public function getLikes()\n {\n return $this->getResponse($this->link['LIKES']);\n }",
"public function like(Post $post)\n {\n /**\n * Check if the post exists\n */\n if ($post === null) {\n return response()->json([\n 'message' => 'Post does not exist.'\n ], 404);\n }\n\n $like = Like::create([\n 'post_id' => $post->getKey(),\n 'user_id' => Auth::user()->getKey()\n ]);\n\n /**\n * Only notify is the post was liked by other users\n */\n if (Auth::user()->getKey() !== $post->uploader_id) {\n $post->uploader->notify(new LikeNotification(\n sprintf('%s liked your post.', Auth::user()->name),\n $post\n ));\n\n event(new LikeEvent(\n sprintf('%s liked your post.', Auth::user()->name),\n $like\n ));\n }\n\n return response()->json(new PostResource($post), 200);\n }",
"public function like(Request $request) {\n //Get the post id to insert in the post table via the request\n //Store the like in the likes table, no pivot table required\n //Check if post is already liked\n //Checking if the row exists in the likes table\n $post_id = $request->only('id')['id'];\n $liked = Like::where(['user_id' => Auth::user()->id, 'post_id' => $post_id])->first();\n if ($liked) {\n $this->unlike($liked);\n\n return response()->json([\n 'liked' => false,\n 'likesCount' => Like::where('post_id', $post_id)->count()\n ]);\n }\n $like = Like::create(['user_id' => Auth::user()->id, 'post_id' => $request->only('id')['id']]);\n\n return response()->json([\n 'liked' => true,\n 'likesCount' => Like::where('post_id', $post_id)->count()\n ]);\n }",
"public function getLikesForPost($connection, $postID) {\n\t\t$query = $connection->prepare(\"SELECT * FROM Likes WHERE postID = ?\");\t\t\n\t\t$query->bind_param(\"i\", $postID);\n\t\t\n\t\t$query->execute();\n\t\t/* Returns values */\n\t\treturn $query->get_result();\n }",
"function likes($post_id,$enroll){\n\t\t$like = 1;\n\t\t$sqllike = \"SELECT l_like FROM likes WHERE post_id ='\".$post_id.\"' AND l_like = '\".$like.\"'\";\n\t\t$result = $this->select($sqllike);\n\t\t$c_likes = $result->num_rows;\n\n\t\t$sqlcom = \"SELECT id FROM post_comments WHERE post_id ='\".$post_id.\"'\";\n\t\t$result = $this->select($sqlcom);\n\t\t$c_post = $result->num_rows;\n\t\t//check if user liked post\n\t\t$sql = \"SELECT * FROM likes WHERE post_id ='\".$post_id.\"' AND user_enroll = '\".$enroll.\"'\";\n\t\t$query = $this->select($sql);\n\t\t$check = $query->fetch_row();\n\t\tif($check >= 1){\n\t\t\tif($c_likes == 1){\n\t\t\t\techo $c_likes .\" like\";\n\t\t\t}else{\n\t\t\t\techo $c_likes .\" likes\";\n\t\t\t}\n\t\t}else{\n\t\t\tif($c_likes == 0){\n\t\t\t\techo $c_likes .\" like\";\n\t\t\t}else{\n\t\t\t\techo $c_likes .\" likes\";\n\t\t\t}\n\t\t}\n\t}",
"public function getLikes() {\n $likes = Mage::getStoreConfig('ls_instagram/general_feed_setup/likes');\n\n if ($likes) {\n return '<div class=\"like-box\"><span>{{likes}}</span></div>';\n }\n }",
"public function getUserPostLike($user_id)\n {\n return Like::find()->with('user')->with('post')->where(['user_id' => \"$user_id\",'status' => '1'])->orderBy(['created_date'=>SORT_DESC])->all();\n \n }",
"public function getAllLike()\n {\n return Like::find()->with('user')->orderBy(['created_date'=>SORT_DESC])->all();\n \n }",
"public function getLikeUser($post_id)\n {\n $likes_buddy = Like::find()->with('user')->where(['post_id' => $post_id,'status' => '1'])->orderBy(['updated_date'=>SORT_DESC])->all();\n \n // echo '<pre>';print_r($likes_buddy);exit;\n \n return $likes_buddy;\n }",
"function addAllLikes($post) {\n $getLikesQuery = \"SELECT * FROM \" . LIKES_TABLE_NAME . \" WHERE postId=\" . $post['id'];\n\n $likesRes = getQueryRes($getLikesQuery);\n\n if($post['likes'] > 0) {\n echo \"<div class='tooltipLikes'>\" . $post['likes'] . \" likes\" .\n \"<span class='tooltipLikestext'>\"; //all the names here\n echo \"<ul class='listOfLikes' style='list-style-type:none;'>\";\n $num = mysqli_num_rows($likesRes);\n while($like = mysqli_fetch_assoc($likesRes)) {\n $getLikingUserQuery = \"SELECT * FROM \" . USERS_TABLE_NAME . \" WHERE id=\" . $like['userId'];\n $userRes = fetchOne($getLikingUserQuery);\n echo \"<li>\" . $userRes['fname'] . \" \" . $userRes['lname'] . \"</li>\";\n }\n echo \"</ul>\";\n echo \"</span>\";\n echo \"</div>\";\n }\n}",
"public function likedUsersList(Request $request,$post_id)\n {\n\n $html_result='';\n\n $liked_users=Like::where('likeable_id', $post_id)\n ->with(['user'=>function($user_query){\n \t$user_query->select('users.id','username','profile_uri','profile_image');\n }])\n ->orderBy('created_at','desc')\n //->selectRaw('`likes`.*,(select count(*) from `users` inner join `likes` on `users`.`id` = `likes`.`user_id` where `likes`.`likeable_id` = '.$post_id.' and `users`.`deleted_at` is null) as `users_count`')\n ->paginate(env('DEFAULT_HOME_PAGE_VIEWED_OR_LIKED_USERS_LIMIT'));\n //->toSql();\n\n // For web response\n if($request->is('api/*') == false){\n if(!empty($liked_users)){\n $view = \\View::make('frontend.includes.posts.viewed_or_liked_list',['viewed_or_liked_users'=>$liked_users]);\n $html_result = $view->render();\n }else{\n $html_result = 'users not found ';\n }\n return response()->json(['status' => 200, 'message' => 'success','html_result'=>$html_result]);\n }else{\n\n if(!empty($liked_users)){\n $this->content['error'] = false;\n $this->content['massage'] = \"liked_users\";\n $this->content['data'] = $liked_users->toArray();\n $status = 200;\n }else{\n $this->content['error'] = false;\n $this->content['massage'] = \"no_users.\";\n $this->content['data'] ='';\n $status = 200;\n }\n return response()->json($this->content, $status);\n }\n }"
] | [
"0.756845",
"0.7239099",
"0.71709555",
"0.7110011",
"0.6942349",
"0.6925377",
"0.691499",
"0.6878244",
"0.67947966",
"0.6768262",
"0.67185044",
"0.6712302",
"0.6673585",
"0.6639031",
"0.6609536",
"0.6603682",
"0.65585226",
"0.65293676",
"0.65289474",
"0.65263766",
"0.6501625",
"0.64917374",
"0.6490697",
"0.64667314",
"0.6462013",
"0.6459955",
"0.6443426",
"0.6442331",
"0.64419395",
"0.6423513"
] | 0.77250576 | 0 |
Repet a post (add it to your repeted list) | public function repetPost($postId) {
$app = Aplicacion::getSingleton();
$conn = $app->conexionBd();
$sql = 'INSERT INTO repets VALUES ('.$this->id.', '.$postId.')'; // Return the user ID
$result = $conn->query($sql);
if ($result) {
return true;
} else return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function addPostItem($post)\n {\n return $this->post[] = $post;\n }",
"public function run()\n {\n for ($i = 0; $i < 10; $i++) {\n\n $newPost = new Post();\n $newPost->title = \"Titolo Post \" . ($i+1);\n $newPost->content = \"Lorem ipsum dolor sit amet consectetur, adipisicing elit. Ab exercitationem consectetur sapiente dolore similique aspernatur beatae, aperiam molestias quaerat quibusdam. Non deleniti cum quam odit ipsa, atque, temporibus accusantium mollitia amet, repellat maxime blanditiis totam pariatur tenetur! Eveniet atque unde libero soluta cupiditate! Eligendi veritatis deleniti libero necessitatibus doloribus fugiat quam illo minima natus quis, nulla, voluptates reprehenderit voluptatibus officiis ab soluta, hic provident tenetur vel. Quisquam sed incidunt maxime. Officia vel enim fugit. Minima ab accusamus labore incidunt aspernatur? Modi ipsum iusto repudiandae amet molestias in repellat natus quia deserunt. Nesciunt temporibus saepe fuga accusantium explicabo veniam sequi animi.\";\n $newPost->slug = Str::slug($newPost->title,'-');\n\n $newPost->save();\n }\n }",
"function duplicate_posts() {\n\t// Code\n\tduplicate_post_clone_post_link( __('Clone This Post','duplicate-post'), $before, $after, $id );\n}",
"public function the_blog(){\n\t\t$this->current_index++;\n\t\t$this->in_the_loop = true;\n\n\t\t// Get all item IDs in the correct order.\n\t\t$item_ids = array_keys( $this->blogs_arr );\n\t\tset_postdata( parse_arg($this->current_index, $item_ids) );\n\t}",
"public function run()\n\t{\n\t\tfor ($i = 1; $i <= 15; $i++) {\n\t\t\tfor ($j = 1; $j < mt_rand(2, 6); $j++) {\n\t\t\t\tPost::find($i)->tags()->attach([mt_rand(1, 20)]);\n\t\t\t}\n\t\t}\n\t}",
"public function run()\n {\n for($i = 0; $i < 10; $i++){\n $new_post = new Post();\n $new_post->title = \"Post title\" . ($i + 1);\n $new_post->slug = Str::slug($new_post->title, '-');\n $new_post->content = 'Lorem ipsum dolor, sit amet consectetur adipisicing elit. Nesciunt fugit, officia ipsa magni culpa quidem iste quasi eos dignissimos nostrum. Eos quo veritatis voluptatem nihil, assumenda saepe cumque delectus ex.';\n $new_post->save();\n }\n }",
"public function post_attach_repost($current_post)\n {\n $repost = $current_post->act_repost_id;\n\n if ($repost) {\n global $post;\n $old_post = $post;\n // Store original loop query, calling $this->get_post() will overwrite it.\n $PeepSoActivity = new PeepSoActivity;\n // $_orig_post_query = $PeepSoActivity->post_query;\n // $_orig_post_data = $PeepSoActivity->post_data;\n $activity = $PeepSoActivity->get_activity($repost);\n\n // $act_post = apply_filters('peepso_activity_get_post', NULL, $activity, NULL, NULL);\n $act_post = $PeepSoActivity->activity_get_post(NULL, $activity, NULL, NULL);\n\n if (NULL !== $act_post) {\n // TODO: resetting the value of the global $post variable is dangerous.\n $post = $act_post;\n // Add this property so that callbacks can do necessary adjustments if it's a repost.\n $post->is_repost = TRUE;\n setup_postdata($post);\n\n $PeepSoActivity->post_data = get_object_vars($post);\n PeepSoTemplate::exec_template('activity', 'repost', $PeepSoActivity->post_data);\n $post = $old_post;\n } else {\n//\t\t\t\t$post = get_post($repost);\n // TODO: this will reset the global $post variable. Avoid this\n//\t\t\t\t$post = get_post($repost)\n $re_post = get_post($activity->act_external_id);\n $data = array(\n 'post_author' => (NULL !== $re_post) ? $re_post->post_author : ''\n );\n PeepSoTemplate::exec_template('activity', 'repost-private', $data);\n }\n\n // Reset to the original loop\n // $PeepSoActivity->post_query = $_orig_post_query;\n // $PeepSoActivity->post_data = $_orig_post_data;\n // $PeepSoActivity->comment_query = NULL;\n\n // TODO: if you can avoid changing this then it's not needed. Definitely not needed in both cases above so only change it in one and reset before the end of the if-block\n #$post = $_orig_post_data;\n #setup_postdata($post);\n }\n }",
"public function run()\n {\n for( $i = 0; $i < 5; $i++) {\n $new_post = new Post();\n\n $new_post->title = 'Post title ' . ($i + 1);\n $new_post->slug = Str::slug($new_post->title, '-');\n $new_post->content = 'Lorem, ipsum dolor sit amet consectetur adipisicing elit. Facere assumenda eius quos, beatae at incidunt maxime illo dolor ratione exercitationem expedita id perspiciatis, necessitatibus hic, fugit quam dolorem ab temporibus.';\n\n $new_post->save();\n }\n }",
"public function run()\n {\n //\n for($i=0;$i<10;$i++){\n DB::table('post_item')->insert([\n 'post_id'=>rand(1,10),\n 'item_id'=>rand(1,10),\n ]);\n }\n }",
"public function run(Faker $faker)\n {\n\n $categoryList=[\n 'thriller',\n 'Comico',\n 'horror',\n 'avventura'\n ];\n\n $listOfCategoryID =[];\n\n foreach($categoryList as $category){\n $categoryObject= new Category();\n $categoryObject->name = $category;\n $categoryObject->save();\n $listOfCategoryID[] = $categoryObject->id;\n }\n \n for ($i = 0; $i <50; $i++){\n \n $postDetail = new PostDetail();\n $postDetail->form_factor = $faker->words(1, true);\n $postDetail->publisher = $faker->words(1, true);\n $postDetail->publication_year = $faker->date('Y');\n $postDetail->save();\n\n $postObject = new Post();\n $postObject->title= $faker->sentence(10);\n $postObject->imagen= $faker->imageUrl(640,480,'posts',true);\n $postObject->data= $faker->dateTime();\n \n $randCategoryKey = array_rand($listOfCategoryID, 1);\n $categoryID= $listOfCategoryID[$randCategoryKey];\n $post->category_id=$categoryID;\n $postObject->price= $faker->randomFloat(2,5,100);\n \n $post->post_detail_id = $PostDetail->id;\n \n $postObject->save();\n }\n\n\n// $posts=[\n// 'title'=>'Notte stellata',\n// 'imagen'=> 'http://lh6.ggpht.com/HlgucZ0ylJAfZgusynnUwxNIgIp5htNhShF559x3dRXiuy_UdP3UQVLYW6c=w454-h300-n-l64',\n// 'data' => '1889-06-01',\n// 'price'=> '5.000',\n// ];\n \n// [\n// 'title'=>'Il bacio',\n// 'imagen'=> 'http://lh4.ggpht.com/UuYCUnqvo2EIZhyFHYFVLbkmma_cubVk7SwxOF3lklT6aor5647BXVhEaFB7jg=w298-h300-n-l64',\n// 'data' => '1907-06-01',\n// 'price'=> '6.000',\n// ];\n\n// [\n// 'title'=>'La persistenza della memoria',\n// 'imagen'=> 'https://m.media-amazon.com/images/I/5152BzKdYTL._AC_.jpg',\n// 'data' => '1934-01-01',\n// 'price'=> '7.000',\n// ];\n\n// foreach($posts as $post){\n// $postObject= new Post();\n// $postObject->title = $post['title'];\n// $postObject->imagen= $post['imagen'];\n// $postObject->data= $post['data'];\n// $postObject->price= $post['price'];\n// $postObject->save();\n// }\n\n }",
"public function addRepeatableItem()\n {\n if (! Guard::verifyAjaxNonce('cuztom', 'security')) {\n return;\n }\n\n $field = self::getField();\n $count = self::$request->get('count');\n\n $response = ((! $field->limit) || ($field->limit > $count))\n ? new Response(true, $field->outputInput())\n : new Response(false, __('Limit reached!', 'cuztom'));\n\n echo $response->toJson();\n\n // wp\n exit;\n }",
"function meintopf_ajax_repost() {\n\t// Get attribute\n\t$id = intval($_POST[\"post_id\"]);\n\t// Get the post to be reposted\n\t$post = get_post($id);\n\t// Check if it is a valid post, and has not been reposted before.\n\tif ($post->post_type == \"meintopf_item\" && $post->post_status == \"draft\") {\n\t\t// Grab post metadata\n\t\t$meta = get_post_meta($post->ID, 'meintopf_item_metadata', true);\n\t\t// create the real post\n\t\t$repost = array(\n\t\t\t'post_type' =>'post',\n\t\t\t'post_title' => $post->post_title,\n\t\t\t'post_content' => $post->post_content,\n\t\t\t'post_status' => \"publish\",\n\t\t\t'comment_status' => \"closed\",\n\t\t\t'ping_status' => \"open\"\n\t\t);\n\t\t// insert it\n\t\t$success = wp_insert_post($repost);\n\t\tif ($success <> 0) {\n\t\t\t// Append metadata for repost\n\t\t\tupdate_post_meta($success, 'meintopf_item_metadata', $meta);\n\t\t\t\n\t\t\t// Send pingback\n\t\t\tpingback(meintopf_filter_content_append($post->post_content,$success), $success);\n\t\t\t\n\t\t\t// Set meintopf item status to publish, as in \"has been reposted\"\n\t\t\t$post->post_status = \"publish\";\n\t\t\twp_update_post($post);\n\t\t\t\n\t\t\t$post->meta = $meta;\n\t\t\t// Send meintopf item back as json.\n\t\t\twp_send_json($post);\n\t\t} else {\n\t\t\techo \"failure while posting\";\n\t\t}\n\t} else {\n\t\techo \"failure while getting post\";\n\t}\n\tdie();\n}",
"public function run() {\n $i = 0;\n for ($i = 0; $i < 30; $i++) {\n $post = new post;\n $post->title = \"hola mundo\" . $i;\n // $post->slug = \"HIx\" . $i;\n $post->content = \"#hola\" . $i;\n $post->author = \"rsg\" . $i;\n// $post->content_md= Markdown::convertToHtml($post->content);\n $post->save();\n }\n }",
"public function createListPostsPopular() {\n $condition = array(\n \"order_by\" => \"p_view_count\",\n \"type\" => 'post',\n \"status\" => 'public',\n );\n $this->_data['populars'] = $this->MPost->getPosts($condition, \n array('records' => 10, 'begin' => 0))['posts'];\n }",
"public function run()\n {\n for ($i = 0; $i < 10; $i++) {\n // New instance\n $new_post = new Post();\n\n // Populate\n $new_post->title = 'Post Title ' . ($i + 1);\n $new_post->slug = Str::slug($new_post->title, '-');\n $new_post->content = 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Molestias voluptatibus architecto aut inventore cumque esse! Quaerat quidem, mollitia fugit odit sunt corporis, consectetur hic, nemo et sapiente earum illum rerum.';\n\n // Save\n $new_post->save();\n }\n }",
"public function repost(PostReaction $request)\n {\n $userId = Auth::user()->id;\n\n DB::beginTransaction();\n Repost::create([\n 'user_id' => $userId,\n 'post_id' => $request->post_id\n ]);\n\n $post = Post::find($request->post_id);\n $post->num_reposts++;\n $post->save();\n DB::commit();\n\n return redirect()->back();\n }",
"public function run()\n {\n $posts = App\\Models\\Post::all();\n $tags = App\\Models\\Tag::pluck('id')->all();\n\n foreach ($posts as $post) {\n $post->tags()->attach(array_random($tags));\n }\n }",
"public function run()\n {\n for($i = 0; $i < 10; $i++){\n $r = mt_rand(1, 9);\n Post::create([\n 'title' => 'Vivamus sed nunc in arcu cursus mollis quis et orci. Interdum et malesuada.',\n 'body' => '<p>Praesent ac magna sed massa euismod congue vitae vitae risus. Nulla lorem augue, mollis non est et, eleifend elementum ante. Nunc id pharetra magna. Praesent vel orci ornare, blandit mi sed, aliquet nisi. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. </p> <p> Mauris viverra cursus ante laoreet eleifend. Donec vel fringilla ante. Aenean finibus velit id urna vehicula, nec maximus est sollicitudin. Praesent at tempus lectus, eleifend blandit felis. Fusce augue arcu, consequat a nisl aliquet, consectetur elementum turpis. Donec iaculis lobortis nisl, et viverra risus imperdiet eu. Etiam mollis posuere elit non sagittis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc quis arcu a magna sodales venenatis. Integer non diam sit amet magna luctus mollis ac eu nisi. In accumsan tellus ut dapibus blandit. </p>',\n 'image' => \"blog_\".$r.\".jpg\"\n ]);\n }\n }",
"public function incrementNumPosts()\n {\n $this->numPosts++;\n }",
"public function the_post() {\n\t\t$this->_last_query->the_post();\n\t}",
"public function postListar()\n\t{\n\t}",
"public function run(Faker $faker)\n {\n for($i = 0; $i < 10; $i++) {\n $new_post = new Post();\n $new_post->title = $faker->sentence(rand(2,5));\n $new_post->content = $faker->text(rand(100,200));\n $new_post->category_id = $faker->numberBetween(1, 5);\n $slug = Str::slug($new_post->title, '-');\n $slug_appoggio = $slug;\n\n $post_attuale = Post::where('slug', $slug)->first();\n $cont = 1;\n\n if($post_attuale) {\n $slug = $slug_appoggio . '-' . $cont;\n $cont++;\n $post_attuale = Post::where('slug', $slug)->first();\n }\n\n $new_post->slug = $slug;\n $new_post->user_id = 1;\n $new_post->save();\n }\n }",
"public function add_posts()\n\t{\n\t\tif ($this->_post_added)\n\t\t\treturn;\n\t\t\t\t\n\t\tif (strtoupper(Input::instance()->post('__formo')) == strtoupper($this->_formo_name))\n\t\t{\n\t\t\t$this->_post_type = 'post';\n\t\t}\n\t\telseif (strtoupper(Input::instance()->get('__formo')) == strtoupper($this->_formo_name))\n\t\t{\n\t\t\t$this->_post_type = 'get';\n\t\t}\n\t\t\t\n\t\tif ( ! $this->_post_type)\n\t\t\treturn;\n\t\t\n\t\t$type = $this->_post_type;\n\n\t\tEvent::run('formo.pre_addpost');\n\t\t\n\t\tforeach ($this->find_elements() as $element)\n\t\t{\n\t\t\t$value = Input::instance()->$type($element);\n\t\t\t$this->$element->add_post($value, $type);\n\t\t}\n\n\t\t// first run all \"all\" filters, then \"some\" if necessary\n\t\t( ! $this->_all_pre_filters() AND $this->_some_pre_filters());\n\n\t\tEvent::run('formo.post_addpost');\n\n\t\t$this->_post_added = TRUE;\n\t\t$this->_sent = TRUE;\n\t}",
"private function getPosts(){\r\n\r\n $reactionType = 'post';\r\n\r\n \t\twhile($post = $this->Query->assoc($this->execQuery)){\r\n\r\n \t\t\t$mediaId = $post['media_id'];\r\n\r\n \t\t\t$mediaOwnerId = $post['user_id'];\r\n\r\n require_once('C:/xampp/htdocs/kampuscrush/api/user/user.php');\r\n\r\n # Create User Object\r\n $User = new User(2, $mediaOwnerId, $this->Id);\r\n\r\n $this->Reply['list'] = true;\r\n\r\n \t\t\t$this->Reply['posts'][] = array(\r\n \t\t\t\t# User Information\r\n \t\t\t\t\"user\" => $User->init(),\r\n\r\n \t\t\t\t# Actual Posts Details\r\n \t\t\t\t\"post\" => $post, # Since $post Is An Associative Array Itself\r\n\r\n \t\t\t\t\"commentCount\" => $this->Query->count(\"SELECT count(comment_id) FROM comments WHERE post_id = '$mediaId'\"),\r\n\r\n \t\t\t\t\"likesCount\" => $this->Query->count(\"SELECT count(like_id) FROM reaction WHERE post_id = '$mediaId' AND type = '$reactionType'\"),\r\n\r\n \t\t\t\t\"isLiked\" => $this->Query->count(\"SELECT count(like_id) FROM reaction WHERE post_id = '$mediaId' AND liker_id = '$this->Id' AND type = '$reactionType'\") == 0 ? false : true,\r\n \r\n \"views\" => $this->Query->count(\"SELECT count(play_id) FROM plays WHERE post_id = '$mediaId'\")\r\n \r\n \t\t\t); # End Of Array\r\n\r\n \t\t} # End Of While Loop\r\n \t\t\r\n return $this->Reply;\r\n \t}",
"public function run()\n {\n factory(Post::class, 50)->create()->each(function ($post) {\n for ($i = 0; $i < rand(1, 10); $i++) {\n $user = User::inRandomOrder()->first();\n\n if (! $user->hasLiked($post)) {\n $post->likes()->attach($user);\n\n if ($user->id !== $post->user_id) {\n $post->user->notify(new PostLiked($user));\n }\n }\n }\n });\n }",
"public function run()\n {\n Post::factory()\n ->count(50)\n ->create()->each(function ($post) {\n $r = rand(0, 2);\n for($count = 0; $count < $r; $count++) {\n $tag = Tag::find(rand(1, 9));\n $post->tags()->save($tag);\n ;\n }\n });\n }",
"public function run()\n {\n $tags = Tag::all();\n Post::all()->each(function ($post) use ($tags) {\n $post->tags()->attach(\n $tags->random(rand(1, 5))->pluck('id')->toArray()\n );\n });\n }",
"private function posts(object $pp1) //private\n {\n //$dm = $this ; //globals for all sites (eg for CRUD...) !!\n\n if ( isset($pp1->uriq) ) { $uriq = $pp1->uriq ; } else {$uriq = (object)[] ;}\n\n $category_from_url = \n ( isset($uriq->c) and null !== $pp1->uriq->c ) ? $pp1->uriq->c : '' ;\n\n $this->Login_Confirm_SesUsrId();\n\n $title = 'Posts' ;\n require_once(\"navbar_admin.php\");\n require $pp1->shares_path . 'hdr.php';\n require $pp1->module_path . '../post/posts.php'; \n require $pp1->shares_path . 'ftr.php';\n }",
"function the_posts_filter( $posts ) {\n\t\t$posts[] = clone $posts[0];\n\n\t\t// Add some custom data to each post.\n\t\tforeach ( $posts as $key => $post )\n\t\t\t$posts[ $key ]->custom_data = array( $post->ID, 'custom data' );\n\n\t\treturn $posts;\n\t}",
"public function addPost(Post $post)\n {\n //clear the old file I think from the last post???\n //json_encode to the file of the post array\n\n\n }"
] | [
"0.6285294",
"0.5863824",
"0.572477",
"0.5720274",
"0.5696158",
"0.56439704",
"0.5615318",
"0.5614942",
"0.55261505",
"0.55233455",
"0.55190116",
"0.55171824",
"0.55001426",
"0.5483442",
"0.5454494",
"0.54516697",
"0.54268837",
"0.5411399",
"0.5406382",
"0.5406172",
"0.5397133",
"0.53949684",
"0.5361951",
"0.53586084",
"0.5352605",
"0.53496724",
"0.53311896",
"0.5315631",
"0.5297612",
"0.52948254"
] | 0.59966975 | 1 |
Revokes moderator priviledges from a user | public static function revokeMod($id) {
$app = Aplicacion::getSingleton();
$conn = $app->conexionBd();
$sql = 'UPDATE users U SET moderator = 0 WHERE id = '.$id.'';
$result = $conn->query($sql);
return $result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function bbp_remove_moderator($object_id = 0, $user_id = 0, $object_type = 'post')\n{\n}",
"function updateRemoveAdminPrivileges(){\n $userId = $_POST[\"userId\"];\n $value = 0; //Variable que uso con los valores 1 y 0. (1->Tiene permisos; la uso para dar permisos. 0->No tiene permisos; la uso para quitar permisos).\n $this->userModel->updateAdminPrivileges($value, $userId);\n header(ADMIN); //Redirecciona a la página de adminsitración.\n }",
"public function revokeAllPrivileges()\n {\n\n }",
"function removeAdminPrivileges(){\n $rol = \"Quitar\"; //$rol tiene 3 valores posibles. (\"Asignar\" Privilegios. \"Quitar\" Privilegios. \"Borrar\" Cuenta de Usuario).\n $Users = $this->userModel->getUsers();\n $currentUser = $_SESSION['User']; //Sirve para saber el nombre del usuario actual, y así no permitir que se quite los permisos de administrador a si mismo.\n $this->view->assignRemoveAdminPrivilegesOrDeleteAccount($this->Titulo, $Users, $rol, $currentUser);\n }",
"function demote_user($group_id,$user_id)\n{\n $db = connectToDB();\n $res = $db->query(\"SELECT authorisers FROM groups WHERE group_id = $group_id\");\n if ($res->num_rows == 1)\n {\n $row = $res->fetch_array();\n $authorisers = $row['authorisers'];\n if (isGroupAdmin($authorisers))\n {\n //$db->query(\"DELETE FROM group_membership WHERE user_id=$user_id AND group_id=$group_id \");\n // dont delete, need to set it to deleting\n $db->query(\"UPDATE group_membership SET previous_state=0, state=97 WHERE user_id=$user_id AND group_id=$group_id \");\n\n\n audit_log(\"User with id $user_id was removed from group $group_id.\");\n add_user_notification($user_id, \"You have been removed from group $group_id.\",$GLOBALS['userid'] );\n\n my_meta_refresh(\"api.php?action=group_superadmin&action2=show&group_id=$group_id\", 0);\n } else {\n\t\techo \"You are not allowed to do that!\";\n\t}\n }\n}",
"function delModerator($idUser)\n {\n $resultQuery = mysql_query(\"SELECT id,moderateurs FROM \" . FORUM_TABLE . \" WHERE moderateurs LIKE '%\" . $idUser . \"%'\");\n while (list($forumID, $listModos) = mysql_fetch_row($resultQuery))\n {\n if (is_int(strpos($listModos, '|'))) //Multiple moderators in this category\n {\n $tmpListModos = explode('|', $listModos);\n $tmpKey = array_search($idUser, $tmpListModos);\n if ($tmpKey !== false)\n {\n unset($tmpListModos[$tmpKey]);\n $tmpListModos = implode('|', $tmpListModos);\n $updateQuery = mysql_query(\"UPDATE \" . FORUM_TABLE . \" SET moderateurs = '\" . $tmpListModos . \"' WHERE id = '\" . $forumID . \"'\");\n }\n }\n else\n {\n if ($idUser == $listModos) // Only one moderator in this category\n {\n $updateQuery = mysql_query(\"UPDATE \" . FORUM_TABLE . \" SET moderateurs = '' WHERE id = '\" . $forumID . \"'\");\n }\n // Else, no moderator in this category\n }\n }\n if ($resultQuery)\n return true;\n else\n return false;\n }",
"public function revoke_access() {\n // Nothing to do!\n }",
"public function revokeSitePrivileges()\n {\n\n }",
"public function testRevokePrivileges()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }",
"function remove_mod($user_id)\n\t{\n\t\tif (!isAjax())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (!$this->tank_auth->is_admin())\n\t\t\treturn false;\n\t\t$profile = new Profile();\n\t\tif ($profile->change_group($user_id, 2))\n\t\t{\n\t\t\tflash_notice('notice', _('You have removed the user from the moderators group.'));\n\t\t\t$this->output->set_output(json_encode(array('href' => site_url('/admin/members/member/' . $user_id))));\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public function revokeRootPrivileges()\n {\n\n }",
"public function testACreatorSetsAbilityAndRevokesIt() {\n $this->actingAs($this->creator)\n ->post($this->projectsTeamPage.'/allow', ['user'=>$this->member->name, 'ability_name' => 'manage'])\n ->assertStatus(200);\n\n $this->assertTrue($this->member->can('manage', $this->project));\n\n // Revokes a manage ability\n $this->actingAs($this->creator)\n ->post($this->projectsTeamPage.'/disallow', ['user'=>$this->member->name, 'ability_name' => 'manage'])\n ->assertStatus(200);\n\n Bouncer::refresh();\n $this->assertFalse($this->member->can('manage', $this->project));\n }",
"function xarRemovePrivileges($module)\n{\n xarPrivileges::removeModule($module);\n}",
"public function RevokeModifyPermission()\n {\n if (!$this->m_aData[self::PROPERTY_IS_COORDINATOR])\n $this->m_aData[self::PROPERTY_CAN_MODIFY] = FALSE;\n }",
"public function revoke_access() \n {\n if (!$this->user_model->isAuth()) {\n redirect('user/login', 'refresh');\n }\n\n $this->load->model('user_admin_model');\n\n $this->user_admin_model->deleteAccessToken(\n $this->session->userdata('ID'),\n $this->input->get('id')\n );\n redirect('/user/apikey');\n }",
"function xarRemovePrivileges($module)\n{\n // Get the pids for the module\n $modulePrivileges = xarPrivileges::findPrivilegesForModule($module);\n foreach ($modulePrivileges as $modulePrivilege) {\n $modulePrivilege->remove();\n }\n}",
"public static function Deny($idUser, $perm_key, $is_id = false){\n self::$dbc->select_db('sistemas');\n $id_perm = $perm_key;\n if(!$is_id)\n $id_perm = self::getPermisoID($perm_key);\n $query = \"UPDATE permisos_user SET allow=0,last_modification=NOW() WHERE user_id = \".$idUser.\" AND permiso_id=\".$id_perm;\n self::$dbc->query($query);\n // $idUser, $id_perm, $action, $idUserMod\n // echo $idUser;\n $affected = self::$dbc->affected_rows;\n Logger::log(self::getUserID(),$id_perm,'deny',$idUser);\n return $affected;\n }",
"public function destroy2($id)\n {\n //this id is the post_id in my feedback case\n if(Auth::guard('admin')->check())\n {\n $user_id = (int)$id;\n $check = CustomDB::getInstance()->delete(\"moderators\")->where(\"id = ?\", [$user_id])->e();\n if($check)\n {\n return redirect('/feedback')->with('success', 'Moderator Removed');\n } \n else\n return redirect('/feedback')->with('error', 'Moderator Not Removed');\n \n }\n else \n return redirect('/');\n \n }",
"function revokePrivilegeTo($id, $type) {\n global $dbc;\n\n $q = \"DELETE FROM Privilege\n WHERE user = :id\n AND type = :type\";\n $stmt = $dbc->prepare($q);\n $stmt->bindParam(\":id\", $id, PDO::PARAM_INT);\n $stmt->bindParam(\":type\", $type, PDO::PARAM_STR);\n $stmt->execute();\n $success = $stmt->rowCount() > 0;\n\n return array(\n \"error\" => !$success,\n \"message\" => $success ? \"\" : \"Errore nella revoca del privilegio $type.\"\n );\n}",
"function rynonuke_update_notification_nonadmins() {\r\n if (!current_user_can('administrator'))\r\n remove_action('admin_notices','update_nag',3);\r\n}",
"function remove_adminmenus_for_author() {\r\n\tglobal $menu;\r\n\tif(!current_user_can( 'edit_posts' )) {\t\r\n\tremove_menu_page( 'edit.php' );\r\n\t}\r\n}",
"function deactivateUser() {\n $id = $_POST['id'];\n $rank = $this->M_Users->getUserRank($id);\n if ($GLOBALS['config']['uel'][$rank][$_SESSION['auth']['accesslevel']]) {\n return $this->M_Users->deactivateUser($id);\n } else {\n return 'Insuficent permisions to perform action.';\n }\n }",
"public function deny( User &$user )\r\n\t\t{\r\n\t\t\t$result = false;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif( $this->status == self::PENDING && $user->is_moderator_of( $this->table ) )\r\n\t\t\t{\r\n\t\t\t\t$this->reviewed = 0;\r\n\t\t\t\t$this->status = self::DENIED;\r\n\t\t\t\t$this->update( $user->id );\r\n\t\t\t\t$result = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn $result;\r\n\t\t}",
"function updateAssignAdminPrivileges(){\n $userId = $_POST[\"userId\"];\n $value = 1; //Variable que uso con los valores 1 y 0. (1->Tiene permisos; la uso para dar permisos. 0->No tiene permisos; la uso para quitar permisos).\n $this->userModel->updateAdminPrivileges($value, $userId);\n header(ADMIN); //Redirecciona a la página de adminsitración.\n }",
"private function remove_admin()\n\t{\n\t\t$this->login();\n\t\t$user = $this->auth->get_user();\n\t\tModel::factory('user_roles')->remove($user->user_id, 3); // 3 is admin in testing...\n\t\t$this->auth->logout();\n\t\t$this->login();\n\t}",
"public function unlike($userId = null);",
"function hide_adminstrator_editable_roles( $roles ){\n if ( isset( $roles['administrator'] ) && !current_user_can('level_10') ){\n unset( $roles['administrator'] );\n }\n return $roles;\n}",
"public static function revokeAdmin( $user, $usr) {\n\t\tif( Login::isAdmin( $usr ) ) {\n\t\t\tif(!($db = new DB()) ) return false;\n\t\t\tif(!($result = $db->query( \"DELETE FROM `login_admin` WHERE `login_admin_id` LIKE '§0'\",[$user]) ) ) return false;\n\t\t\tLog::msg( \"Privileges\", \"$usr revoked $user admin rights\" );\n\t\t\treturn Login::isAdmin( $user );\n\t\t}\n\t}",
"function revoke_user_access( $access_type , $value=NULL ){\n\t\t\n\t\t$user_access = get_user_meta( $this->ID , 'dev_user_access' , true );\n\t\t\n\t\tif ( $value && isset( $user_access[$access_type][$value] ) ) {\n\t\t\tunset( $user_access[$access_type][$value] );\n\t\t\tupdate_user_meta( $this->ID , 'dev_user_access' , $user_access );\t\t\t\n\t\t}\n\t}",
"abstract public function revoke();"
] | [
"0.69478303",
"0.67503196",
"0.66795427",
"0.6599691",
"0.6533553",
"0.6287852",
"0.6273858",
"0.6235953",
"0.6211052",
"0.6209854",
"0.6203388",
"0.61743474",
"0.6168857",
"0.6141821",
"0.6129775",
"0.6098959",
"0.6092065",
"0.6085614",
"0.60053265",
"0.5898353",
"0.5886606",
"0.5876743",
"0.585796",
"0.5833216",
"0.5825111",
"0.57904947",
"0.57852",
"0.5778533",
"0.5777169",
"0.5753582"
] | 0.7198135 | 0 |
/ Returns WP user id from access token. | public function get_user_id_from_access_token($token) {
global $wpdb;
if (!defined('API_BEARER_JWT_SECRET')) {
return $wpdb->get_var($wpdb->prepare('SELECT user_id
FROM ' . $wpdb->base_prefix . 'user_tokens
WHERE access_token = %s AND access_token_valid > NOW()', $token));
}
$payload = $this->verify_jwt($token);
if (is_wp_error($payload)) {
return $payload;
}
return $payload->sub;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function authenticatedUserId( $accessToken )\n\t{\n\t\treturn $this->_userData( $accessToken )['sub'];\n\t}",
"public function get_user_id_from_refresh_token($token) {\n global $wpdb;\n return $wpdb->get_var($wpdb->prepare('SELECT user_id\n FROM ' . $wpdb->base_prefix . 'user_tokens\n WHERE refresh_token = %s', $token));\n }",
"public function getUserIdentifier() {\n return $this->accessToken['user_identifier'];\n }",
"public function determine_current_user( $user_id ) {\n\t\tif ( strpos( $_SERVER['REQUEST_URI'], '/indieauth/1.0' ) ) {\n\t\t\treturn $user_id;\n\t\t}\n\t\t$token = $this->get_provided_token();\n\t\tif ( ! $token ) {\n\t\t\treturn $user_id;\n\t\t}\n\t\t$me = $this->verify_access_token( $token );\n\t\tif ( ! $me ) {\n\t\t\treturn $user_id;\n\t\t}\n\t\tif ( is_oauth_error( $me ) ) {\n\t\t\t$this->error = $me->to_wp_error();\n\t\t\treturn $user_id;\n\t\t}\n\t\t$user = get_user_by_identifier( $me );\n\t\tif ( $user instanceof WP_User ) {\n\t\t\treturn $user->ID;\n\t\t}\n\t\t$this->error = new WP_Error(\n\t\t\t'indieauth.user_not_found', __( 'User Not Found on this Site', 'indieauth' ),\n\t\t\tarray(\n\t\t\t\t'status' => '401',\n\t\t\t\t'response' => $me,\n\t\t\t)\n\t\t);\n\t\treturn $user_id;\n\n\t}",
"public function getCurrentUserID()\n {\n // Verificar si ya se valido un access_token\n if(!is_array($this->current) && !is_object($this->current)){\n return 0;\n }\n // Devolver el UserID del usuario que se verifico el Access Token\n return $this->current->id;\n }",
"public function getUserTokenId(): int\n {\n return $this -> user_token_id;\n }",
"function eager_EagerWordpressBasePlugin_cms_v2_1_pace_get_token(){\n eager_EagerWordpressBasePlugin_cms_v2_1_pace_get_user_id();\n \n return get_option('eager_access_token');\n}",
"public static function determine_current_user( $user_id ) {\n\t\t$cls = get_called_class();\n\n\t\t// find the access token\n\t\t$auth = static::get_authorization_header();\n\t\t$token = mp_get( $_POST, 'access_token' ); // phpcs:ignore\n\t\tif ( ! $auth && ! $token ) {\n\t\t\t// Fail if micropub is in the requested path\n\t\t\tif ( ! empty( $_SERVER['REQUEST_URI'] ) && false !== strpos( MICROPUB_NAMESPACE, $_SERVER['REQUEST_URI'] ) ) {\n\t\t\t\tstatic::$error = new WP_Micropub_Error( 'unauthorized', 'missing access token', 401 );\n\t\t\t}\n\t\t\treturn $user_id;\n\t\t}\n\n\t\t$resp = wp_remote_get(\n\t\t\tget_option( 'indieauth_token_endpoint', MICROPUB_TOKEN_ENDPOINT ),\n\t\t\tarray(\n\t\t\t\t'headers' => array(\n\t\t\t\t\t'Accept' => 'application/json',\n\t\t\t\t\t'Authorization' => $auth ?: 'Bearer ' . $token,\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\t\tif ( is_wp_error( $resp ) ) {\n\t\t\tstatic::$error = $resp;\n\t\t\treturn 0;\n\t\t}\n\n\t\t$code = (int) wp_remote_retrieve_response_code( $resp );\n\t\t$body = wp_remote_retrieve_body( $resp );\n\t\t$params = json_decode( $body, true );\n\t\tstatic::$scopes = explode( ' ', $params['scope'] );\n\n\t\tif ( ( $code / 100 ) !== 2 ) {\n\t\t\tstatic::$error = new WP_Micropub_Error( 'invalid_request', 'invalid access token', 403 );\n\t\t\treturn 0;\n\t\t} elseif ( empty( static::$scopes ) ) {\n\t\t\tstatic::$error = new WP_Micropub_Error( 'insufficient_scope', 'access token is missing scope', 401 );\n\t\t\treturn 0;\n\t\t}\n\n\t\t$me = untrailingslashit( $params['me'] );\n\t\tstatic::$micropub_auth_response = $params;\n\n\t\t// look for a user with the same url as the token's `me` value.\n\t\t$user_id = static::url_to_user( $me );\n\n\t\t// IndieAuth Plugin uses priority 9\n\t\t// TODO: These filters are added here to ensure that they are loaded after the scope is set\n\t\t// However future changes will change the order so this is no longer needed\n\t\tadd_filter( 'indieauth_scopes', array( $cls, 'indieauth_scopes' ), 11 );\n\t\tadd_filter( 'indieauth_response', array( $cls, 'indieauth_response' ), 11 );\n\n\t\tif ( $user_id ) {\n\t\t\treturn $user_id;\n\t\t}\n\t\t// Nothing was found return 0 to indicate no privileges given\n\t\tstatic::$error = new WP_Micropub_Error( 'forbidden', 'user not found', 403, $me );\n\t\treturn 0;\n\t}",
"public static function getUserIdFromToken($token)\n {\n $getUser = UserToken::where('token','=',$token)->first();\n\n if (count($getUser) != 0) {\n\n return $getUser->profile_user_id;\n\n } else {\n\n return 0;\n\n }\n }",
"function eager_EagerWordpressBasePlugin_cms_v2_1_pace_get_user_id(){\n $userId = get_option('eager_user_id');\n\n if (!$userId){\n $userId = eager_EagerWordpressBasePlugin_cms_v2_1_pace_create_user();\n }\n\n return $userId;\n}",
"public function getAuthenticatedUserId()\n {\n if (! $user = JWTAuth::parseToken()->authenticate()) {\n return false;\n }\n\n return $user->id;\n }",
"function get_login_user_id(){}",
"public function userId(){\r\n if(Yii::app()->user->isGuest)\r\n YiiRestler::error(403,Yii::t('api','Can\\'t get id'));\r\n return Yii::app()->user->getId();\r\n }",
"function get_user_id($username)\n{\n return auth_instance()->get_user_id($username); \n}",
"protected function get_userid() \n {\n return isset($_SESSION['user']) ? $_SESSION['user']['id'] : 0;\n }",
"public function getCurrentUserId() {\n\t\t$token = $this->app['security.token_storage']->getToken();\n\t\tif ($token === null) {\n\t\t\treturn -1;\n\t\t}\n\t\t$user = $token->getUser();\n\t\tif ($user === 'anon.') {\n\t\t\treturn -1;\n\t\t}\n\t\treturn $user->getId();\n\t}",
"public function getUserId() {\n return Mage::getStoreConfig('ls_instagram/general/user_id');\n }",
"public static function getAuthenticatedUserId() {\n $sessionRepository = new SessionRepository();\n return $sessionRepository->getSessionUserId($_COOKIE[self::TOKEN_NAME]);\n }",
"public function getUserId(): int\n {\n return (int) $this->currentUserApi->get('uid');\n }",
"function getUserId();",
"protected function getAccessTokenResourceOwnerId()\n {\n return 'user_id';\n }",
"public function getUserId()\n {\n $accessToken = AccessToken::model()->findByAttributes(array('token'=>$this->provider->token));\n if($accessToken === false)\n throw new CException(\"Couldn't find a user id corresponding with current token information\");\n\n return $accessToken->user_id;\n }",
"private function getAuthUserId()\n {\n $userId = null;\n try {\n // Get the current active/logged in user\n $user = Sentry::getUser();\n $userId = $user->id;\n } catch (UserNotFoundException $e) {\n // User wasn't found, should only happen if the user was deleted\n // when they were already logged in or had a \"remember me\" cookie set\n // and they were deleted.\n }\n return $userId;\n }",
"public function get_user_id()\n\t{\n\t\treturn $this->get_session_data('id');\n\t}",
"public static function get_user_token() {\n\t\tif ( ! is_user_logged_in() ) {\n\t\t\treturn '';\n\t\t}\n\n\t\treturn self::get_signed_token( wp_get_current_user() );\n\t}",
"protected function getLoggedInUserId()\n\t {\n\t try {\n\t if (Auth::guard('user')->check()) {\n\t return Auth::guard('user')->user()->getAuthIdentifier();\n\t }\n\n\t else if (Auth::guard('admin')->check()) {\n\t return Auth::guard('admin')->user()->getAuthIdentifier();\n\t }\n\t } catch (\\Exception $e) {\n\t return;\n\t }\n\t }",
"function get_user_id() {\n return isset($_SESSION['user_id']) ? $_SESSION['user_id'] : -1;\n }",
"private function get_user_id() {\n\t\t//Get user ID\n\t\t$user_id = isset( $_GET[ 'user_id' ] ) ? absint( $_GET[ 'user_id' ] ) : 0;\n\t\tif ( $user_id == 0 && IS_PROFILE_PAGE ) {\n\t\t\t$current_user = wp_get_current_user();\n\t\t\t$user_id = $current_user->ID;\n\t\t}\n\t\treturn $user_id;\n\t}",
"function bbp_get_current_user_id()\n{\n}",
"public function get_user_id()\n {\n //check logged in\n if (!$this->is_logged_in()) {\n return false;\n }\n\n return user()->id;\n }"
] | [
"0.70188975",
"0.69050777",
"0.68739355",
"0.66404223",
"0.65582454",
"0.65415454",
"0.6498823",
"0.6479943",
"0.643408",
"0.6366265",
"0.63496447",
"0.63247585",
"0.61795366",
"0.6171173",
"0.61462134",
"0.606903",
"0.6046285",
"0.6037334",
"0.60367954",
"0.60331094",
"0.6030764",
"0.6018093",
"0.6013569",
"0.6004022",
"0.59982497",
"0.59795314",
"0.59544706",
"0.59487885",
"0.59398097",
"0.59382546"
] | 0.7416274 | 0 |
Returns user id for this refresh token. | public function get_user_id_from_refresh_token($token) {
global $wpdb;
return $wpdb->get_var($wpdb->prepare('SELECT user_id
FROM ' . $wpdb->base_prefix . 'user_tokens
WHERE refresh_token = %s', $token));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getUserIdentifier() {\n return $this->accessToken['user_identifier'];\n }",
"public function getUserID() {\n return $this->getUser()->getId();\n }",
"public function get_user_id()\n\t{\n\t\treturn $this->get_session_data('id');\n\t}",
"public function getUserTokenId(): int\n {\n return $this -> user_token_id;\n }",
"public function getCurrentUserId() {\n\t\t$token = $this->app['security.token_storage']->getToken();\n\t\tif ($token === null) {\n\t\t\treturn -1;\n\t\t}\n\t\t$user = $token->getUser();\n\t\tif ($user === 'anon.') {\n\t\t\treturn -1;\n\t\t}\n\t\treturn $user->getId();\n\t}",
"public function getUserId()\n {\n return $this->user->getId();\n }",
"public function getUserId()\n {\n return $this->get(self::USER_ID);\n }",
"public function getUserId()\n {\n return $this->get(self::USER_ID);\n }",
"public function get_user_id()\n {\n return $this->get_default_property(self::PROPERTY_USER_ID);\n }",
"public function get_user_id()\n {\n return $this->get_default_property(self::PROPERTY_USER_ID);\n }",
"public function get_user_id()\n {\n return $this->get_default_property(self::PROPERTY_USER_ID);\n }",
"public function get_user_id()\n {\n return $this->get_default_property(self::PROPERTY_USER_ID);\n }",
"public function getUserId()\n {\n $accessToken = AccessToken::model()->findByAttributes(array('token'=>$this->provider->token));\n if($accessToken === false)\n throw new CException(\"Couldn't find a user id corresponding with current token information\");\n\n return $accessToken->user_id;\n }",
"public function GetIdUser() {\n return $this->idUser;\n }",
"public function getCurrentUserID()\n {\n // Verificar si ya se valido un access_token\n if(!is_array($this->current) && !is_object($this->current)){\n return 0;\n }\n // Devolver el UserID del usuario que se verifico el Access Token\n return $this->current->id;\n }",
"public function getUserId()\n {\n return $this->auth->getNameId();\n }",
"function user_id()\n {\n $authenticate = service('authentication');\n $authenticate->check();\n\n return $authenticate->id();\n }",
"public function get_user_id() {\n\t\treturn $this->user_id;\n\t}",
"public function getAuthenticatedUserId()\n {\n if (! $user = JWTAuth::parseToken()->authenticate()) {\n return false;\n }\n\n return $user->id;\n }",
"public function getUserId()\n {\n return $this->user_id;\n }",
"public function getUserId()\n {\n return $this->user_id;\n }",
"public function getUserId()\n {\n return $this->user_id;\n }",
"public function getUserId()\n {\n return $this->user_id;\n }",
"public function getUserId()\n {\n return $this->user_id;\n }",
"public function getUserId()\n {\n return $this->user_id;\n }",
"public function getUserId()\n {\n return $this->user_id;\n }",
"public function getUserId()\n {\n return $this->user_id;\n }",
"public function getUserId()\n {\n return $this->user_id;\n }",
"public function getUserId()\n {\n return $this->user_id;\n }",
"public function getUserId()\n {\n return $this->user_id;\n }"
] | [
"0.77217513",
"0.7561518",
"0.7480361",
"0.7405485",
"0.73682666",
"0.7361314",
"0.7336506",
"0.7336506",
"0.73020935",
"0.73020935",
"0.73020935",
"0.73020935",
"0.7289758",
"0.72725874",
"0.7264087",
"0.7247207",
"0.72434455",
"0.72041094",
"0.71926093",
"0.71877754",
"0.71877754",
"0.71877754",
"0.71877754",
"0.71877754",
"0.71877754",
"0.71877754",
"0.71877754",
"0.71877754",
"0.71877754",
"0.71877754"
] | 0.77561724 | 0 |
Get postcodes from the query string, sanitize the input and convert to an array | function getPostcodesArray()
{
$safe_postcodes = filter_input(INPUT_GET, 'p', FILTER_SANITIZE_STRING);
if (empty($safe_postcodes)) {
return array();
}
$safe_postcodes = explode("\n", $safe_postcodes);
return array_map('strtoupper', $safe_postcodes);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function QueryStrToArray($encoded)\r\n\t{\r\n\t\r\n\t$finalArr=array();\r\n\t\tif($encoded)\r\n\t\t{\r\n\t\t\t$qryArr=split(\"&\",$this->QRYSTR_DECRYPT($_SERVER['QUERY_STRING']));\r\n\t\t\tif($this->QRYSTR_DECRYPT($_SERVER['QUERY_STRING']))\r\n\t\t\t{\r\n\t\t\t\tforeach($qryArr as $item)\r\n\t\t\t\t{\r\n\t\t\t\t\t$Qarr=split(\"=\",$item);\r\n\t\t\t\t\tif(count($Qarr)==2)\r\n\t\t\t\t\t$finalArr[$Qarr[0]]=$Qarr[1];\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treturn $finalArr;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\r\n\t\t$qryArr=split(\"&\",$_SERVER['QUERY_STRING']);\r\n\t\t\r\n\t\t\tif($_SERVER['QUERY_STRING']!=\"\")\r\n\t\t\t{\r\n\t\t\t\r\n\t\t\t\tforeach($qryArr as $item)\r\n\t\t\t\t{\r\n\t\t\t\t\t$Qarr=split(\"=\",$item);\r\n\t\t\t\t\tif(count($Qarr)==2)\r\n\t\t\t\t\t$finalArr[$Qarr[0]]=$Qarr[1];\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treturn $finalArr;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn $_POST;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected function _parseQueryString()\n {\n $params = [];\n $queryString = '';\n if (isset($_SERVER['QUERY_STRING'])) {\n $queryString = $_SERVER['QUERY_STRING'];\n }\n if (empty($queryString)) {\n return [];\n }\n $parts = explode('&', $queryString);\n foreach ($parts as $kvpair) {\n $pair = explode('=', $kvpair);\n $key = rawurldecode($pair[0]);\n $value = rawurldecode($pair[1]);\n if (isset($params[$key])) {\n if (is_array($params[$key])) {\n $params[$key][] = $value;\n } else {\n $params[$key] = [$params[$key], $value];\n }\n } else {\n $params[$key] = $value;\n }\n }\n return $params;\n }",
"function getQueryArray() {\n\t\t$queryString = PKPRequest::getQueryString();\n\t\t$queryArray = array();\n\n\t\tif (isset($queryString)) {\n\t\t\tparse_str($queryString, $queryArray);\n\t\t}\n\n\t\treturn $queryArray;\n\t}",
"function parse_query($str, $urlEncoding = true)\n{\n $result = [];\n\n if ($str === '') {\n return $result;\n }\n\n if ($urlEncoding === true) {\n $decoder = function ($value) {\n return rawurldecode(str_replace('+', ' ', $value));\n };\n } elseif ($urlEncoding == PHP_QUERY_RFC3986) {\n $decoder = 'rawurldecode';\n } elseif ($urlEncoding == PHP_QUERY_RFC1738) {\n $decoder = 'urldecode';\n } else {\n $decoder = function ($str) { return $str; };\n }\n\n foreach (explode('&', $str) as $kvp) {\n $parts = explode('=', $kvp, 2);\n $key = $decoder($parts[0]);\n $value = isset($parts[1]) ? $decoder($parts[1]) : null;\n if (!isset($result[$key])) {\n $result[$key] = $value;\n } else {\n if (!is_array($result[$key])) {\n $result[$key] = [$result[$key]];\n }\n $result[$key][] = $value;\n }\n }\n\n return $result;\n}",
"private function parsePostcode(string $postcode): array\n {\n //Strip postcode formatting from argument\n $postcode = strtoupper(preg_replace(\"[^A-Za-z0-9]\", \"\", $postcode));\n\n //If previously deemed invalid, throw exception\n if (array_key_exists($postcode, self::$invalid) !== false) {\n throw ParseException::parseFailure($postcode, debug_backtrace()[1]['function']);\n }\n\n //If not already parsed, parse the postcode for use\n if (array_key_exists($postcode, self::$parsed) === false) {\n preg_match(self::REGEX_PARSE, $postcode, $parsedPostcode);\n\n if (empty($parsedPostcode)) {\n self::$invalid[$postcode] = true; //use keys to avoid every growing arrays\n throw ParseException::parseFailure($postcode, debug_backtrace()[1]['function']);\n }\n\n self::$parsed[$postcode] = $parsedPostcode;\n }\n\n return self::$parsed[$postcode];\n }",
"function arrayFromQS ($qs) {\n\n settype($retval, \"array\");\n settype($aPairs, \"array\");\n\n if ($qs===\"\") {\n return [];\n }\n \n $aPairs = explode(\"&\", rtrim($qs, \"&\"));\n\n foreach ($aPairs as $pair) {\n $aPair = explode(\"=\", $pair);\n\n $retval[$aPair[0]] = $aPair[1];\n }\n\n return $retval;\n}",
"private function _searchParamsFromString()\n\t{\n\t\t$this->_search_params = array();\n\n\t\tif (isset($this->_req->query->params) || isset($this->_req->post->params))\n\t\t{\n\t\t\t// Feed it\n\t\t\t$temp_params = $this->_req->query->params ?? $this->_req->post->params;\n\n\t\t\t// Decode and replace the uri safe characters we added\n\t\t\t$temp_params = base64_decode(str_replace(array('-', '_', '.'), array('+', '/', '='), $temp_params));\n\n\t\t\t$temp_params = explode('|\"|', $temp_params);\n\t\t\tforeach ($temp_params as $i => $data)\n\t\t\t{\n\t\t\t\tlist ($k, $v) = array_pad(explode('|\\'|', $data), 2, '');\n\t\t\t\t$this->_search_params[$k] = $v;\n\t\t\t}\n\t\t}\n\n\t\treturn $this->_search_params;\n\t}",
"private static function parseQuery(string $query): array\n {\n $output = [];\n\n \\parse_str($query, $output);\n\n return $output;\n }",
"private function extractQueryParams(): array\n {\n if (!isset($this->parsedURL['query'])) {\n return [];\n }\n\n parse_str($this->parsedURL['query'], $queryParams);\n\n return $queryParams;\n }",
"function urlQueryToArray($query, $url_encode = true) {\n if ($url_encode) {\n $query = urldecode($query);\n }\n\n $query = str_replace(\"&\", '&', $query);\n $queryParts = explode('&', $query);\n $params = array();\n foreach ($queryParts as $param) {\n $item = explode('=', $param);\n $params [$item [0]] = $item [1];\n }\n\n return $params;\n}",
"private function parseInput(){\n\t\t$parts = explode(\" \", $this->userInput);\n\t\t\n\t\treturn array('amount'=>$parts[1], 'source'=>$parts[2], 'taget'=>$parts[4]);\n\t}",
"public function convertUrlQuery(string $query): array\n {\n if (!empty($query)) {\n return [];\n }\n $queryParts = explode('&', $query);\n $params = [];\n foreach ($queryParts as $param) {\n $item = explode('=', $param);\n $params[$item[0]] = $item[1] ?? '';\n }\n\n return $params;\n }",
"public function mangledCharsProvider()\n {\n $list = array_diff(range(' ', '~'), range('0', '9'), range('A', 'Z'), range('a', 'z'), ['&', ';']);\n $data = [];\n foreach($list as $char)\n {\n $name = \"?\" . urlencode($char) . \"=1\";\n $data[\"'{$name}' ($char)\"] = [\n $name,\n $this->_normalized([\n 'query' => [$char => '1'],\n ]),\n ];\n }\n\n return $data;\n }",
"function convertUrlQuery($query)\r\n{ \r\n $queryParts = explode('&', $query); \r\n \r\n $params = array(); \r\n foreach ($queryParts as $param) \r\n\t{ \r\n $item = explode('=', $param); \r\n $params[$item[0]] = $item[1]; \r\n } \r\n \r\n return $params; \r\n}",
"function convertUrlQuery($query) {\n $queryParts = explode('&', $query);\n \n $params = array();\n foreach ($queryParts as $param) {\n $item = explode('=', $param);\n $params[$item[0]] = $item[1];\n }\n \n return $params;\n}",
"private static function get_url_vars() {\n $return = array();\n if (isset($_GET['q']) && $_GET['q'] != \"\") {\n $qs = $_GET['q'];\n $qs = str_replace(\"\\\\\", \"/\", $qs);\n $qs = str_replace(\" \", \"_\", $qs);\n $qs = url::remove_suffix($qs);\n $explode = explode(\"/\", $qs);\n foreach ($explode as $ex) {\n if ($ex != \"\") {\n $return[] = strtolower($ex);\n }\n }\n }\n return $return;\n }",
"function UrlParamstoArray($params)\n{\n $items = array();\n foreach (explode('&', $params) as $chunk) {\n $param = explode(\"=\", $chunk);\n $items = array_merge($items, array($param[0] => urldecode($param[1])));\n }\n return $items;\n\n}",
"public static function parse($queryStr = null) {\n $results = [];\n \n if(!$queryStr) {\n return $_REQUEST;\n }\n \n if(!is_array($queryStr)) {\n $queryStr = array($queryStr);\n }\n \n foreach($queryStr as $value) {\n if(!isset($_REQUEST[$value])) {\n $results[$value] = null;\n }\n else {\n $results[$value] = $_REQUEST[$value];\n }\n }\n \n \n if(count($results) === 1) {\n $results = $results[$value];\n }\n \n return $results;\n \n }",
"private function getArrayUrl() {\n $this->post = array_key_exists('POST', $_SESSION) ? unserialize($_SESSION['POST']) : null;\n $this->get = array_key_exists('GET', $_SESSION) ? unserialize($_SESSION['GET']) : null;\n \n foreach ($this->gets as $key => $value) {\n //$this->gets[$key] = utf8_decode(urldecode($value));\n $value = is_array($value) ? $value : urldecode($value);\n $this->gets[$key] = $value;\n }\n \n if (is_array($this->post) && count($this->post) >= 1) {\n $key++;\n foreach ($this->post as $keyPost => $value) {\n $this->gets[$key++] = urldecode($keyPost);\n $value = is_array($value) ? $value : urldecode($value);\n $this->gets[$key++] = $value;\n }\n }\n \n if (is_array($this->get) && count($this->get) >= 1) {\n $key++;\n foreach ($this->get as $keyPost => $value) {\n $this->gets[$key++] = urldecode($keyPost);\n $value = is_array($value) ? $value : urldecode($value);\n $this->gets[$key++] = $value;\n }\n }\n return $this->gets;\n }",
"private function paramsDissect() {\n $thestring = $this->query;\n $string_array = parse_str($thestring, $output);\n return $output;\n }",
"private function _parseQueryString() {\n $data = $this->_parseNameValuePairs($_SERVER['QUERY_STRING']);\n array_shift($data); // because of URL modification\n\n $r = false;\n if (isset(array_keys($data)[0])) {\n $r = json_decode(array_keys($data)[0], true);\n }\n if (!$r) {\n $r = $data;\n }\n return $r;\n }",
"function convertUrlQuery($query)\n{\n if (empty($query)) {\n return null;\n }\n $queryParts = explode('&', $query);\n \n $params = array();\n if (!empty($queryParts)) {\n foreach ($queryParts as $param)\n {\n $item = explode('=', $param);\n if (count($item) == 2) {\n $params[$item[0]] = $item[1];\n }\n }\n }\n return $params;\n}",
"public function parseArguments() {\r\n if( !isSet( $_GET['args'] ) ) return Array();\r\n else return explode( '|', $_GET['args'] );\r\n }",
"public function parseStr($string)\n {\n $result = array();\n $query = trim($string, '?&');\n $query = explode('&', $query);\n\n foreach ($query as $item) {\n $item = explode('=', $item);\n $result[urldecode(array_shift($item))] = urldecode(array_shift($item));\n }\n\n return $result;\n }",
"private function getQueryStringParams() {\n\t\t$url = explode(\"?\", $_SERVER['REQUEST_URI']);\n\t\tif(!isset($url[1])) {\n\t\t\treturn array();\n\t\t} else {\n\t\t\t$ret = array();\n\t\t\t$params = $url[1];\n\t\t\t$params = explode(\"&\", $params);\n\t\t\tforeach($params as $value_key) {\n\t\t\t\t$parts = explode(\"=\", $value_key);\n\t\t\t\t$ret[$parts[0]] = $parts[1];\n\t\t\t}\n\t\t\treturn $ret;\n\t\t}\n\t}",
"public function parseQueryString($queryString) {\n\t\t\tif( $queryString ) {\n\t\t\t\t$queryParams = array();\n\t\t\t\t$pairs = explode( \"&\", $queryString );\n\t\t\t\tforeach( $pairs as $pair ) {\n\t\t\t\t\t$keyValue = explode( \"=\", $pair );\n\t\t\t\t\t$queryParams[ $keyValue[0] ] = $keyValue[1];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $queryParams;\n\t\t}",
"protected function parseData()\n\t{\n\t\t$postQuery = (array)$this->httpRequest->getPost();\n\t\t$urlQuery = (array)$this->httpRequest->getQuery();\n\t\t$requestBody = $this->parseRequestBody();\n\n\t\treturn array_merge($urlQuery, $postQuery, $requestBody);\t// $requestBody must be the last one!!!\n\t}",
"public function values(): ?array\n {\n $filter_params = [];\n\n foreach ($this->data['fields'] as $index => $value) {\n $filter_params[$index] = FILTER_SANITIZE_SPECIAL_CHARS;\n }\n\n return filter_input_array(INPUT_POST, $filter_params);\n }",
"private function convertUrlQuery($query)\n {\n $queryParts = explode('&', $query);\n\n $params = array();\n foreach ($queryParts as $param) {\n $item = explode('=', $param);\n $params[$item[0]] = $item[1];\n }\n\n return $params;\n }",
"protected static function _parseURL() {\r\n\t\t/* stop if not available */\r\n\t\tif (!isset($_SERVER['REQUEST_URI'])) {\r\n\t\t\treturn array();\r\n\t\t}\r\n\t\t\r\n\t\t/* set defaults */\r\n\t\t$clean = array();\r\n\t\tself::$baseURI = self::getBaseUrl();\r\n\t\t\r\n\t\t/* break up the sections */\r\n\t\t$parts = (self::$baseURI == '' || self::$baseURI == '/') ? array() : explode('/', self::$baseURI);\r\n\t\t\r\n\t\t/* remove the empty first item */\r\n\t\tarray_shift($parts);\r\n\t\t\r\n\t\t/* process the set */\r\n\t\tforeach ($parts as $part) {\r\n\t\t\t/* see how we should treat it */\r\n\t\t\tswitch (true) {\r\n\t\t\t\tcase (strpos($part, ',')):\r\n\t\t\t\t\t/* split it up */\r\n\t\t\t\t\t$set = explode(',', $part);\r\n\t\t\t\t\t$key = array_shift($set);\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* clean it */\r\n\t\t\t\t\t$clean[$key] = self::clean($set);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\tdefault:\r\n\t\t\t\t\t$clean[] = self::clean($part);\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/* done */\r\n\t\treturn $clean;\r\n\t}"
] | [
"0.6847906",
"0.6661082",
"0.6594271",
"0.6341284",
"0.63284695",
"0.62685466",
"0.619918",
"0.6197472",
"0.6187289",
"0.6052419",
"0.594839",
"0.5897237",
"0.5892166",
"0.58906984",
"0.5849372",
"0.58245367",
"0.5815053",
"0.58132404",
"0.57460105",
"0.5729358",
"0.5707181",
"0.5691655",
"0.56550163",
"0.56376404",
"0.56307507",
"0.56159335",
"0.5608165",
"0.56009424",
"0.55698806",
"0.55328244"
] | 0.784403 | 0 |
Convert the postcodes to commadelimited quoted list; e.g., 'TN33 0PF','BN4 1UH' | function postcodesForSql()
{
$postcodes = getPostcodesArray();
$out = '';
foreach ($postcodes as $postcode) {
$out .= addQuotesAndCommas($postcode);
}
return rtrim($out, ',');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function quoteList($list)\n {\n $res = [];\n foreach ($list as $el) {\n if (is_int($el) || is_double($el)) {\n $res[] = $el;\n } else if (is_bool($el)) {\n $res[] = $el ? 1 : 0;\n } else {\n $res[] = $this->QuoteString($el);\n }\n }\n return implode(\",\", $res);\n }",
"private function toStringInCsvFormat($addressData)\n {\n if (!$addressData) {\n return \"\";\n }\n foreach ($addressData as $key => $value) {\n $addressData[$key] = \"\\\"\" . str_replace('\"', '\\\"', $value) . \"\\\"\";\n }\n $result = implode(\",\", $addressData);\n return $result;\n }",
"function csv(array $args) {\n\t\treturn implode(',',array_map('stripcslashes',\n\t\t\tarray_map(array($this,'stringify'),$args)));\n\t}",
"function csv(array $args) {\n\t\treturn implode(',',array_map('stripcslashes',\n\t\t\tarray_map(array($this,'stringify'),$args)));\n\t}",
"protected function address($address) {\n\t\treturn str_replace(', , ', ', ', implode(', ', $address));\n\t}",
"private function pos_field() {\r\n $fields = explode(',', POS_FIELD);\r\n $new_ps = '';\r\n foreach ($fields as $f) {\r\n if ($f == 'kd_kanwil_bank')\r\n $new_ps.= 'kd_kanwil,';\r\n else if ($f == 'kd_kppbb_bank')\r\n $new_ps.= 'kd_kppbb,';\r\n else\r\n $new_ps.= \"{$f},\";\r\n }\r\n $new_ps = substr($new_ps, 0, -1);\r\n return $new_ps;\r\n }",
"static public function QuoteValue($pValue)\n {\n if (is_array($pValue)) {\n foreach ($pValue AS &$lValue) {\n $lValue = self::QuoteValue($lValue);\n } \n return implode(', ', $pValue);\n } else if ($pValue instanceof FS_Db_Query) {\n $pValue = $pValue->Assemble();\n } else if ($pValue instanceof FS_Db_Expr) {\n //$pValue = $pValue->toString();\n return addcslashes($pValue, \"\\000\\n\\r\\\\'\\\"\\032\");\n } else if (!is_string($pValue)) {\n return $pValue;\n }\n return '\"' . addcslashes($pValue, \"\\000\\n\\r\\\\'\\\"\\032\") . '\"';\n }",
"function postcodesForTextarea()\n{\n $postcodes = getPostcodesArray();\n\n return implode(\"\\n\", $postcodes);\n}",
"function format_english_list($pieces, $conjunction='and', $serial_comma=TRUE)\n{\n\tif (!$pieces)\n\t\treturn '';\n\n\tif (count($pieces) == 1)\n\t\treturn $pieces[0];\n\n\t$last_piece = array_pop($pieces);\n\t$csv = implode($pieces, ', ');\n\tif (count($pieces) >= 2 && $serial_comma) $csv .= ', ';\n\treturn implode(' ', array($csv, $conjunction, $last_piece));\n}",
"function getPostcodesArray()\n{\n $safe_postcodes = filter_input(INPUT_GET, 'p', FILTER_SANITIZE_STRING);\n\n if (empty($safe_postcodes)) {\n return array();\n }\n\n $safe_postcodes = explode(\"\\n\", $safe_postcodes);\n\n return array_map('strtoupper', $safe_postcodes);\n}",
"function clean_postcode ($postcode) {\n\n\t\t$postcode = str_replace(' ','',$postcode);\n\t\t$postcode = strtoupper($postcode);\n\t\t$postcode = trim($postcode);\n\t\t$postcode = preg_replace('/(\\d[A-Z]{2})/', ' $1', $postcode);\n\t\n\t\treturn $postcode;\n\n\t}",
"public function quote($value)\r\n {\r\n if (is_array($value)) {\r\n foreach ($value as &$val) {\r\n $val = $this->quote($val);\r\n }\r\n return implode(', ', $value);\r\n } elseif (is_int($value)) {\r\n return $value;\r\n } elseif (is_float($value)) {\r\n return sprintf('%F', $value);\r\n }\r\n return \"'\" . addcslashes($value, \"\\000\\n\\r\\\\'\\\"\\032\") . \"'\";\r\n }",
"public function toString()\n {\n return (string) $this->join(',');\n }",
"function crp_sanitize_numbercsv_field( $value ) {\n\n\treturn implode( ',', array_filter( array_map( 'absint', explode( ',', sanitize_text_field( wp_unslash( $value ) ) ) ) ) );\n}",
"function quoteNameList($list)\n {\n $res = [];\n foreach ($list as $el) {\n $res[] = $this->quoteName($el);\n }\n return implode(\",\", $res);\n }",
"public function formatPostcode($postCode) {\n \n\t\t$formattedPostCode = trim(strip_tags($postCode));\n\t\tif(substr($formattedPostCode, -3) != \" \") {\n\t\t\n\t\t\tfunction stringrpl($x,$r,$str) {\n\t\t\t\n\t\t\t\t$out = \"\";\n\t\t\t\t$temp = substr($str,$x);\n\t\t\t\t$out = substr_replace($str,\"$r\",$x);\n\t\t\t\t$out .= $temp;\n\t\t\t\treturn $out;\n\t\t\t}\n\t\t\n\t\t\t$formattedPostCode = stringrpl(-3,\" \", $formattedPostCode);\n\t\t}\n\t\treturn strtoupper($formattedPostCode);\n\t}",
"function quoted_list($array, $quote=\"'\") {\n //$array = array_map('addslashes', $array);\n return $quote.implode($quote.','.$quote, $array).$quote;\n}",
"function wpcom_vip_csv_quote( $v ) {\n\tif ( is_array( $v ) )\n\t\treturn join(',', array_map( 'wpcom_vip_csv_quote', $v ));\n\n\tif ( strstr( $v, '\"' ) || strstr( $v, ',' ) || strstr( $v, \"\\n\" ) )\n\t\treturn '\"' . str_replace( '\"', '\"\"', $v ) . '\"';\n\n\treturn \"$v\";\n}",
"function array_values_list($array, $del=\", \") {\n $values = array_values($array);\n $qvals = array();\n foreach($values as $val) {\n //$pos = strpos($val, \"'\");\n //$start = $pos>5 ? $pos-5 : 0;\n //$len = strlen($val) > $start+10 ? 10 : strlen($val)-1;\n //$snippet = substr($val, $start, $len);\n $val = addslashes($val);\n //$snippet2 = substr($val, $start, $len);\n //if($pos) echo(\"Found ' in value at pos $pos - <br>before: $snippet<br>after: $snippet2<br>\");\n if(strpos($val, \"'\")!==0) $val = \"'$val'\"; // quote value\n $qvals[] = $val;\n }\n return implode($del, $qvals);\n}",
"private function parse_comma_list($results = '')\n {\n }",
"function correctCommas($csv) {\n\t\t$inpt= array(\"\\r\",\"\\n\",' ',';',':','\"','.',\"'\",'`','\\t','(',')','<','>','{','}','#',\"\\r\\n\",'-','_','?','+');\n\t\t$oupt= array(',',',',',',',',',',',',',',',',',',',',',',',',',',',',',',',',',',',',',',',',',',',');\n\t\t$csv = str_replace($inpt,$oupt,$csv);\n\t\twhile(strpos($csv,',,') !== false){\n\t\t\t$csv = str_replace(',,',',',$csv);\n\t\t}\n\t\treturn trim($csv,\",\");\n\t}",
"function toList($data) {\n\n $last = count($data)-1;\n $list = '';\n\n for ($i=0; $i <= $last; $i++) {\n $list .= $data[$i];\n if ($i == ($last-1)) {\n $list .= ' and ';\n } elseif ($i < $last) {\n $list .= ', ';\n }\n }\n\n return $list;\n\n}",
"function implode_commas($pieces) {\n if (func_num_args() > 1 || !is_array($pieces)) {\n $pieces = func_get_args();\n }\n // remove any trailing commas:\n foreach ($pieces as $i => $piece) {\n if (right($piece, 1) == ',') {\n $pieces[$i] = left($piece, strlen($piece) - 1);\n }\n $pieces[$i] = trim($pieces[$i]);\n }\n return implode_trim(', ', $pieces);\n}",
"function alterPhone($gsm) {\n\t\t$array = is_array($gsm);\n\t\t$gsm = ($array) ? $gsm : explode(\",\",$gsm);\n\t\t$homeCountry = $this -> setting(\"countryCode\");\n\t\t$outArray = array();\n\t\tforeach($gsm as $item)\n\t\t{\n\t\t\tif(!empty($item)){\n\t\t\t\t//$item = (string)$item;\n\t\t\t\t$item = (substr($item,0,1) == \"+\") ? substr($item,1) : $item;\n\t\t\t\t$item = (substr($item,0,3) == \"009\") ? substr($item,3): $item;\n\t\t\t\t$outArray[] = (substr($item,0,1) == \"0\") ? $homeCountry.substr($item,1): $item;\n\t\t\t}\n\t\t}\n\t\treturn ($array) ? $outArray : implode(\",\",$outArray);\n\t}",
"function PF_singleQuote($i_array)\n{\n if (isset($i_array)) {\n $ret_val = \"'\" . implode(\"','\", $i_array) . \"'\";\n return($ret_val);\n } else {\n return(\"\");\n }\n}",
"public function RegionAddressString(){\n\t\t$address = array();\n\n\t\tif($this->State)\n\t\t\t$address[] = $this->State;\n\t\t\t\t\t\t\n\t\tif($this->PostCode)\n\t\t\t$address[] = $this->PostCode;\n\t\t\t\t\t\t\n\t\tif($this->Country)\n\t\t\t$address[] = $this->Country;\n\t\t\t\t\t\t\t\t\n\t\t$addressStr = '';\n\t\tforeach($address as $str){\n\t\t\tif($addressStr== '')\n\t\t\t\t$addressStr= $str;\n\t\t\telse\n\t\t\t\t$addressStr.= \",$str\";\n\t\t}\n\t\t\t\t\t\t\t\t\n\t\treturn $addressStr;\n\t}",
"public function ids_to_string()\n\t{\n\t\treturn implode(', ', $this->ids());\n\t\t\n\t}",
"function remove_postcode($t){\r\n$vv=\"\";\r\n$t=trim($t);\r\n$num=\"\";\r\nfor($i=0;$i<=strlen($t);$i++){\r\n if (is_numeric($t[$i])){\r\n $num.=$t[$i];\r\n }else{\r\n if (strlen($num)>0 && strlen($num)<5){ // add buffer so far\r\n\t $vv.=$num;\r\n\t $num=\"\";\r\n\t}\r\n $vv.=$t[$i];\r\n }\r\n}\r\n if (strlen($num)>0 && strlen($num)<5){ // add buffer so far\r\n\t $vv.=$num;\r\n\t $num=\"\";\r\n\t}\r\n\r\nreturn trim($vv);\r\n}",
"function format_where_in_value($values)\n\t{\n\t\tif (is_string($values) && strpos($values, ',') !== FALSE)\n\t\t\t$values = explode(\", \", $values);\n\t\telseif (!is_array($values))\n\t\t\t$values = array($values);\n\n\t\t// Quote the titles\n\t\tforeach ($values as $index => $value) {\n\t\t\t$values[$index] = \"'{$value}'\";\n\t\t}\n\n\t\treturn implode(', ', $values);\n\t}",
"public function transform($value)\n {\n return implode(', ',$value);\n }"
] | [
"0.5879787",
"0.58431154",
"0.5708434",
"0.5708434",
"0.57081276",
"0.564802",
"0.5565098",
"0.5514122",
"0.54747957",
"0.5432352",
"0.5430615",
"0.5398575",
"0.53732914",
"0.53609705",
"0.53605664",
"0.53596175",
"0.53555596",
"0.53332525",
"0.532818",
"0.52974033",
"0.52913046",
"0.52865285",
"0.52554595",
"0.5243935",
"0.5194065",
"0.5181476",
"0.51787174",
"0.51555467",
"0.51447064",
"0.5102182"
] | 0.78267556 | 0 |
Convert postcodes from array to string with newline between each postcode so they can be stuffed back into the textarea | function postcodesForTextarea()
{
$postcodes = getPostcodesArray();
return implode("\n", $postcodes);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function postcodesForSql()\n{\n $postcodes = getPostcodesArray();\n $out = '';\n\n foreach ($postcodes as $postcode) {\n $out .= addQuotesAndCommas($postcode);\n }\n\n return rtrim($out, ',');\n}",
"function getPostcodesArray()\n{\n $safe_postcodes = filter_input(INPUT_GET, 'p', FILTER_SANITIZE_STRING);\n\n if (empty($safe_postcodes)) {\n return array();\n }\n\n $safe_postcodes = explode(\"\\n\", $safe_postcodes);\n\n return array_map('strtoupper', $safe_postcodes);\n}",
"function photochrom_shortcodes_autop( $content ) {\n return strtr( $content, array( '<p>[' => '[', ']</p>' => ']', ']<br />' => ']', ']<br>' => ']' ) );\n}",
"function jebstores_wc_add_postcodes_to_wc_product()\n{\n $args = array(\n 'label' => __('Postcodes list', 'woocommerce'),\n 'placeholder' => __('Enter a comma separated list of postcodes', 'woocommerce'),\n 'id' => __JEBSTORES_PRODUCT_POSTCODES__,\n 'desc_tip' => true,\n 'description' => __('This product can only be delivered to these postcodes.', 'woocommerce'),\n 'placeholder' => get_option(__JEBSTORES_DELIVERABLE_POSTCODES__)\n );\n woocommerce_wp_textarea_input($args);\n}",
"function remove_postcode($t){\r\n$vv=\"\";\r\n$t=trim($t);\r\n$num=\"\";\r\nfor($i=0;$i<=strlen($t);$i++){\r\n if (is_numeric($t[$i])){\r\n $num.=$t[$i];\r\n }else{\r\n if (strlen($num)>0 && strlen($num)<5){ // add buffer so far\r\n\t $vv.=$num;\r\n\t $num=\"\";\r\n\t}\r\n $vv.=$t[$i];\r\n }\r\n}\r\n if (strlen($num)>0 && strlen($num)<5){ // add buffer so far\r\n\t $vv.=$num;\r\n\t $num=\"\";\r\n\t}\r\n\r\nreturn trim($vv);\r\n}",
"function drupal_implode_autocomplete($array) {\n $output = array();\n foreach ($array as $k => $v) {\n $output[] = str_replace('|', '|', $k) .'|'. str_replace('|', '|', $v);\n }\n return implode('||', $output);\n}",
"function dzkVarPrepHTMLDisplay($text)\n{\n // remove code tags\n $codecount1 = preg_match_all(\"/\\[code(.*)\\](.*)\\[\\/code\\]/si\", $text, $codes1);\n for ($i=0; $i < $codecount1; $i++) {\n $text = preg_replace('/(' . preg_quote($codes1[0][$i], '/') . ')/', \" DIZKUSCODEREPLACEMENT{$i} \", $text, 1);\n }\n \n // the real work\n $text = nl2br(DataUtil::formatForDisplayHTML($text));\n \n // re-insert code tags\n for ($i = 0; $i < $codecount1; $i++) {\n $text = preg_replace(\"/ DIZKUSCODEREPLACEMENT{$i} /\", $codes1[0][$i], $text, 1);\n }\n\n return $text;\n}",
"function encode_line($data)\n{\n\treturn implode(FIELD_SEP, array_map(\"encode_field\", $data)) . RECORD_SEP;\n}",
"protected function replaceNewlineCharacters(array $arr): array\n {\n for ($i = 0; $i < count($arr); ++$i) {\n if (is_string($arr[$i])) {\n $arr[$i] = str_replace([\"\\r\", \"\\n\"], ' ', $arr[$i]);\n }\n }\n return $arr;\n }",
"function custom_shortcodes_formatter($content) {\n\t$array = array (\n '<p>[' => '[', \n ']</p>' => ']', \n ']<br />' => ']'\n );\n\n $content = strtr($content, $array);\n\t\n\treturn $content;\n}",
"protected function formatOutput(array $data){\r\n\t\treturn implode(self::NEWLINE, $data);\r\n\t}",
"function wpex_clean_shortcodes($content){ \r\n\t$array = array (\r\n\t\t'<p>[' => '[',\r\n\t\t']</p>' => ']',\r\n\t\t']<br />' => ']'\r\n\t);\r\n\t$content = strtr($content, $array);\r\n\treturn $content;\r\n}",
"public function formatPostcode($postCode) {\n \n\t\t$formattedPostCode = trim(strip_tags($postCode));\n\t\tif(substr($formattedPostCode, -3) != \" \") {\n\t\t\n\t\t\tfunction stringrpl($x,$r,$str) {\n\t\t\t\n\t\t\t\t$out = \"\";\n\t\t\t\t$temp = substr($str,$x);\n\t\t\t\t$out = substr_replace($str,\"$r\",$x);\n\t\t\t\t$out .= $temp;\n\t\t\t\treturn $out;\n\t\t\t}\n\t\t\n\t\t\t$formattedPostCode = stringrpl(-3,\" \", $formattedPostCode);\n\t\t}\n\t\treturn strtoupper($formattedPostCode);\n\t}",
"private function encode_code($message)\n {\n $count = preg_match_all(\"#(\\\\[code=*(.*?)\\\\])(.*?)(\\\\[\\\\/code\\\\])#si\", $message, $code);\n // with $message=\"[code=php,start=25]php code();[/code]\" the array $code now contains\n // [0] [code=php,start=25]php code();[/code]\n // [1] [code=php,start=25]\n // [2] php,start=25\n // [3] php code();\n // [4] [/code]\n\n if ($count > 0 && is_array($code)) {\n $codebodyblock = '<!--code--><div class=\"dz-code\"><div class=\"dz-codeheader\">%h</div><div class=\"dz-codetext\">%c</div></div><!--/code-->';\n $codebodyinline = '<!--code--><code>%c</code><!--/code-->';\n\n for ($i = 0; $i < $count; $i++) {\n // the code in between incl. code tags\n $str_to_match = '/' . preg_quote($code[0][$i], '/') . '/';\n\n $after_replace = trim($code[3][$i]);\n $containsLineEndings = !mb_strstr($after_replace, PHP_EOL) ? false : true;\n\n if ($containsLineEndings) {\n $after_replace = '<pre class=\"pre-scrollable\">' . $after_replace . '</pre>';\n // replace %h with 'Code'\n $codetext = str_replace('%h', $this->__('Code'), $codebodyblock);\n // replace %c with code\n $codetext = str_replace('%c', $after_replace, $codetext);\n // replace %e with urlencoded code (prepared for javascript)\n $codetext = str_replace('%e', urlencode(nl2br($after_replace)), $codetext);\n } else {\n // replace %c with code\n $codetext = str_replace('%c', $after_replace, $codebodyinline);\n // replace %e with urlencoded code (prepared for javascript)\n $codetext = str_replace('%e', urlencode(nl2br($after_replace)), $codetext);\n }\n\n $message = preg_replace($str_to_match, $codetext, $message);\n }\n }\n\n return $message;\n }",
"function puls_fix_shortcodes($content){\n\t$array = array (\n\t\t'<p>[' => '[',\n\t\t']</p>' => ']',\n\t\t']<br />' => ']'\n\t);\n\n\t$content = strtr($content, $array);\n\treturn $content;\n}",
"function _convertBBCodeToHTML($code)\n {\t\t\n //For Prettyprint\n $code = str_replace('[code class="prettyprint"', '<?prettify lang=html linenums=true?>[code class=\"prettyprint\"', $code);\n $code = str_replace('[code class=;squote;prettyprint;squote;', '<?prettify lang=html linenums=true?>[code class=\"prettyprint\"', $code);\n $code = str_replace('[code class='prettyprint'', '<?prettify lang=html linenums=true?>[code class=\"prettyprint\"', $code);\n //Process Single Quote\n $code = str_replace(';squote;', \"'\", $code);\t\n\n\t\t//Tring to fix edit bug - works but breaks prettify\n //$code = str_replace('\\n', '<br>', $code);\t\t\n\n $pattern = [\n '/\\\\\\r/',\n '/\\\\\\n/',\n '/\\[b\\]/i',\n '/\\[\\/b\\]/i',\n '/\\[code(.*?)\\]/i',\n '/\\[\\/code\\]/i',\n '/\\[font(.*?)\\]/i',\n '/\\[\\/font\\]/i',\n '/\\[div(.*?)\\]/i', \n '/\\[\\/div\\]/i', \n '/\\[span(.*?)\\]/i',\n '/\\[\\/span\\]/i',\n '/\\[p(.*?)\\]/i',\n '/\\[\\/p\\]/i',\n '/\\[i\\]/i',\n '/\\[\\/i\\]/i',\n '/\\[u\\]/i',\n '/\\[\\/u\\]/i',\n '/\\[s\\]/i',\n '/\\[\\/s\\]/i',\n '/\\[url=(.*?)\\](.*?)\\[\\/url\\]/i',\n '/\\[img(.*?)\\](.*?)\\[\\/img\\]/i',\n '/\\[list\\](.*?)\\[\\/list\\]/i',\n '/\\[list=1\\](.*?)\\[\\/list\\]/i',\n '/\\[list\\]/i',\n '/\\[list=1\\]/i',\n '/\\[\\*\\](.*?)\\[\\/\\*\\]/',\n '/\\[\\*\\]/',\n '/\\[([a-zA-Z0-9]+)([^\\]]*)\\](.*?)\\[\\/\\1\\]/i'\n ];\n $replace = [\n \"\",\n '<br />',\n '<b>',\n '</b>',\n '<code><pre$1>',\n '</pre></code>',\n '<font$1>',\n '</font>',\n '<div$1>', \n '</div>', \n '<span$1>',\n '</span>',\n '<p$1>',\n '</p>',\n '<i>',\n '</i>',\n '<u>',\n '</u>',\n '<strike>',\n '</strike>',\n '<a href=\\'$1\\'>$2</a>',\n '<img $1 src=\\'$2\\'>',\n '<ul>$1</ul>',\n '<ol>$1</ol>',\n '<ul>',\n '<ol>',\n '<li>$1</li>',\n '<li>',\n '<$1 $2>$3</$1>'\n ];\n \n foreach($pattern as $i=>$p)\n {\n while (preg_match($p, $code)) {\n $code = preg_replace($p, $replace[$i], $code);\n }\n }\n// $code = preg_replace($pattern, $replace, $code);\n \n $pos = 0;\n //For PrettyPrint\n while( ($pos = strpos($code, '<?prettify lang=html linenums=true?>', $pos)) !== false)\n {\n $rpos = strpos($code, '</pre>', $pos);\n if($rpos !== false)\n {\n $subcode = substr($code, $pos, $rpos - $pos);\n $subcode = str_replace('<br />', PHP_EOL, $subcode);\n $code = substr($code, 0, $pos) . $subcode . substr($code, $rpos);\n $pos = strpos($code, '</pre>', $pos);\n }else{\n $subcode = substr($code, $pos);\n $subcode = str_replace('<br />', PHP_EOL, $subcode);\n $code = substr($code, 0, $pos) . $subcode;\n break;\n }\n }\n \n return $code;\n }",
"public static function array_to_string(array $data)\n\t{\n\t\t$r = \"\\n\";\n\t\tforeach ($data as $key => $value)\n\t\t{\n\t\t\t$r .= str_pad($key, 25).$value.\"\\n\";\n\t\t}\n\n\t\treturn $r;\n\t}",
"private function minl2brOLD($txt) {\n\t\t// pasa si txt termina en [kkcode] podria hacerlo con condicional right\n\t\t// pero que es mas simple y directo a�adiendo un spacios\n\t\t$txt .= \" \";\n\t\t\n\t\t$out = \"\";\n\t\t$ixf = 0;\n\n\t\t$ixp = strpos($txt, \"[kkcode\",0);\n\n\t\twhile ($ixp !== false) {\t\n\n\t\t\t$out .= nl2br(substr($txt,$ixf,$ixp-$ixf-1));\n\n\t\t\t$ixf = strpos($txt, \"]\",$ixp);\n\t\t\t$lgj = substr($txt,$ixp+7,$ixf-$ixp-7);\n\n\t\t\tif ($lgj != \"\")\n\t\t\t\t$out .= \"\\n\".'<pre class=\"brush:'.$lgj.'\">';\n\t\t\t\t\t\n\t\t\t$ixp = $ixf+1;\t\t\t\t\n\t\t\t$ixf = strpos($txt, \"[kkcode]\",$ixp);\n\t\t\tif ($lgj != \"\") {\n\t\t\t\t//$out .= htmlentities(substr($txt,$ixp,$ixf-$ixp));\n\t\t\t\t//ojo arriba los kkcode que tuvieran por ejempolo � no salian\n\t\t\t\t$out .= substr($txt,$ixp,$ixf-$ixp);\n\t\t\t\t$out .= \"</pre>\\n\";\n\t\t\t} else\n\t\t\t\t$out .= \"<br>\".substr($txt,$ixp,$ixf-$ixp);\n\n\t\t\t$ixf = $ixf+9;\t\n\t\t\t$ixp = strpos($txt, \"[kkcode\",$ixf);\n\t\t}\n\n\t\t\n\t\t$out .= nl2br(substr($txt, $ixf));\n\n\n\t/*\n\t\t \"/\\[off\\](.*?)\\[\\/off\\]/is\"\t \n\t<div onclick=\"vercapa('????')\">Ver Codigo</div><div id='????' style='display:none;'>$1</div>\n\n\t*/\n\n\t\t//italic, enfatiz, subrayada\n\t\t$a = array(\n\t\t \"/\\[i\\](.*?)\\[\\/i\\]/is\",\n\t\t \"/\\[b\\](.*?)\\[\\/b\\]/is\",\n\t\t \"/\\[u\\](.*?)\\[\\/u\\]/is\",\n\t\t \"/\\[url\\](.*?)\\[\\/url\\]/is\"\n\t\t);\n\t\t\n\t\t$b = array(\n\t\t \"<i>$1</i>\",\n\t\t \"<b>$1</b>\",\n\t\t \"<u>$1</u>\",\n\t\t \"<a href='$1' target='_blank'>$1</a>\"\n\t\t);\n\t\t\n\t// \t \"<a class='links' href='$1' target='_blank'>$1</a>\"\n\t\t\n\t\t$out = preg_replace($a, $b, $out);\n\t\t\n\t\t$cad = \"/\\[off\\](.*?)\\[\\/off\\]/is\";\n\t\t$c = 0;\n\t\t$out = preg_replace_callback($cad,\"fnoff\",$out);\n\t\t\n\t\t\n\t\treturn $out;\n\t}",
"public static function postcode($state = null)\n {\n $format = array(\n 'perlis' => array( // (01000 - 02800)\n '0' . mt_rand(1000, 2800)\n ),\n 'kedah' => array( // (05000 - 09810)\n '0' . mt_rand(5000, 9810)\n ),\n 'penang' => array( // (10000 - 14400)\n mt_rand(10000, 14400)\n ),\n 'kelantan' => array( // (15000 - 18500)\n mt_rand(15000, 18500)\n ),\n 'terengganu' => array( // (20000 - 24300)\n mt_rand(20000, 24300)\n ),\n 'pahang' => array( // (25000 - 28800 | 39000 - 39200 | 49000, 69000)\n mt_rand(25000, 28800),\n mt_rand(39000, 39200),\n mt_rand(49000, 69000)\n ),\n 'perak' => array( // (30000 - 36810)\n mt_rand(30000, 36810)\n ),\n 'selangor' => array( // (40000 - 48300 | 63000 - 68100)\n mt_rand(40000, 48300),\n mt_rand(63000, 68100)\n ),\n 'kl' => array( // (50000 - 60000)\n mt_rand(50000, 60000),\n ),\n 'putrajaya' => array( // (62000 - 62988)\n mt_rand(62000, 62988)\n ),\n 'nsembilan' => array( // (70000 - 73509)\n mt_rand(70000, 73509)\n ),\n 'melaka' => array( // (75000 - 78309)\n mt_rand(75000, 78309)\n ),\n 'johor' => array( // (79000 - 86900)\n mt_rand(79000, 86900)\n ),\n 'labuan' => array( // (87000 - 87033)\n mt_rand(87000, 87033)\n ),\n 'sabah' => array( // (88000 - 91309)\n mt_rand(88000, 91309)\n ),\n 'sarawak' => array( // (93000 - 98859)\n mt_rand(93000, 98859)\n )\n );\n\n $postcode = is_null($state) ? static::randomElement($format) : $format[$state];\n return (string)static::randomElement($postcode);\n }",
"function wpex_clean_shortcodes($content){ \n\t\t\t\t$array = array (\n\t\t\t\t\t'<p>[' => '[', \n\t\t\t\t\t']</p>' => ']', \n\t\t\t\t\t']<br />' => ']'\n\t\t\t\t);\n\t\t\t\t$content = strtr($content, $array);\n\t\t\t\treturn $content;\n\t\t\t}",
"public static function formatArrayToText(array $list)\n\t{\n\t\t$result = array();\n\t\t$num = 0;\n\t\t$count = count($list);\n\n\t\tforeach ($list as $item)\n\t\t{\n\t\t\t$num++;\n\t\t\t$isLast = $num >= $count;\n\t\t\t$result[] = '- ' . $item . ($isLast ? '.': ';');\n\t\t}\n\n\t\treturn implode(\"\\n\", $result);\n\t}",
"public static function formatArray(array $array) {\n\t\t$temp = [];\n\t\tforeach ($array as $key => $value) {\n\t\t\t$temp[] = $key . ' ' . PHP_EOL . $value;\n\t\t}\n\t\t$output = PHP_EOL . join(' ' . PHP_EOL . PHP_EOL, $temp);\n\t\treturn $output;\n\t}",
"private function arrayToContent(array $array): string\n {\n $contentParts = ['<?php', 'return array('];\n foreach ($array as $key => $value) {\n array_push($contentParts, sprintf($this->getOutputPatternForValue($value), $key, $value));\n }\n array_push($contentParts, ');');\n return implode(PHP_EOL, $contentParts);\n }",
"public function convertToString($natowords) {\r\n $natowords = @explode(\" \",trim($natowords));\r\n $natoKeys = array_keys($this->nato);\r\n $natoreturn = array();\r\n\r\n foreach($natowords as $n) {\r\n if (in_array(ucwords(strtolower($n)),$this->nato)) {\r\n $natoreturn[] = array_search(ucwords(strtolower($n)),$this->nato);\r\n\r\n }\r\n else {\r\n if (strtolower($n) == \"(space)\") {\r\n $natoreturn[] = \" \";\r\n }\r\n else {\r\n $natoreturn[] = \" _\" . $n . \"_ \";\r\n }\r\n\r\n }\r\n }\r\n\r\n return implode(\"\",$natoreturn);\r\n }",
"function xNl2Br($_Data, $_Key = array()){\r\n\t\r\n\r\n\tif (!is_array($_Data)){\r\n\t\t\r\n\t\treturn nl2br($_Data);\r\n\t}\r\n\t\r\n\tif (!is_array($_Key))$_Key = array($_Key);\r\n\tforeach ($_Data as $__Key=>$__Data){\r\n\t\t\r\n\t\tif (count($_Key)&&!is_array($__Data)){\r\n\t\t\t\r\n\t\t\tif (in_array($__Key, $_Key)){\r\n\t\t\t\t\r\n\t\t\t\t$_Data[$__Key] = xNl2Br($__Data, $_Key);\r\n\t\t\t}\r\n\t\t}else $_Data[$__Key] = xNl2Br($__Data, $_Key);\r\n\t\t\r\n\t}\r\n\treturn $_Data;\r\n}",
"function textToArray($inputText) {\r\n #$inputTextArray = explode('*nl*', $inputTextReplace); // Alternative method\r\n $inputTextReplaced = str_replace(chr(13) . chr(10), chr(10), $inputText);\r\n $inputTextReplaced = str_replace(chr(13), chr(10), $inputText);\r\n $inputTextArray = explode(chr(10), $inputTextReplaced);\r\n return $inputTextArray;\r\n}",
"function codeToDisplay($code, $beautify=true, $linenumbers=true){\n\n\t\t\t$code = htmlentities($code);\n\n\t\t\t$lines = General::str2array($code);\n\n\t\t\t$final_code = \"\"; $ii = 1;\n\n\t\t\tforeach($lines as $l){\n\n\t\t\t\t$l=trim($spaces . $l);\n\n\t\t\t\tif ($l == \"\") { $l = \" \"; }\n\n\t\t\t\tif($linenumbers)\n\t\t\t\t\t$final_code .= \"<li>$l</li>\\n\";\n\t\t\t\telse\n\t\t\t\t\t$final_code .= \"$l\\n\";\n\n\t\t\t\t$ii++;\n\t\t\t}\n\n\t\t\tif($linenumbers)\n\t\t\t\treturn \"<ol>\\n$final_code\\n</ol>\";\n\t\t\telse\n\t\t\t\treturn \"$final_code\\n\";\n\t\t}",
"function shortcode_paragraph_insertion_fix($content) { \n $array = array (\n '<p>[' => '[', \n ']</p>' => ']', \n ']<br />' => ']'\n );\n $content = strtr($content, $array);\n return $content;\n}",
"private function formatAddresses(array $array): string\n {\n // Just in case, get rid of any custom, non-numeric indices.\n $array = array_values($array);\n\n $addresses = [\n 'records' => [],\n ];\n foreach ($array as $i => $address) {\n $addresses['records'][] = [\n 'attributes' => [\n 'OBJECTID' => $i + 1,\n 'SingleLine' => $address,\n ],\n ];\n }\n\n return json_encode($addresses);\n }",
"protected function _deflate($arr)\n\t{\n\t\t$output = 'Array( ' . \"\\n\";\n\t\t$a = array();\n\t\tforeach ($arr as $key => $val)\n\t\t{\n\t\t\tif (is_array($val))\n\t\t\t{\n\t\t\t\t$a[] = \"\\t\" . '<code class=\"ky\">' . $key . '</code> <code class=\"op\">=></code> <code class=\"vl\">' . $this->_deflate($val) . '</code>';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$a[] = \"\\t\" . '<code class=\"ky\">' . $key . '</code> <code class=\"op\">=></code> <code class=\"vl\">' . htmlentities($val, ENT_COMPAT, 'UTF-8') . '</code>';\n\t\t\t}\n\t\t}\n\t\t$output .= implode(\", \\n\", $a) . \"\\n\" . ' )' . \"\\n\";\n\n\t\treturn $output;\n\t}"
] | [
"0.6223878",
"0.5751942",
"0.5686382",
"0.5643471",
"0.553786",
"0.53755754",
"0.5367825",
"0.5338092",
"0.5329294",
"0.5305632",
"0.5303099",
"0.52465636",
"0.5208502",
"0.51974136",
"0.5157855",
"0.5140682",
"0.51126784",
"0.5110618",
"0.51009804",
"0.5097381",
"0.5090347",
"0.50872713",
"0.5026756",
"0.5026174",
"0.50086564",
"0.49524713",
"0.4941863",
"0.49381074",
"0.4924423",
"0.49090907"
] | 0.8258987 | 0 |
Get either the current decile value from the query string, or an empty string. This is used to populate the decile input field. | function decileForInput()
{
$decile = getDecileInt();
if (!empty($_GET['d'])) {
return $decile;
} else {
return '';
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getDecileInt()\n{\n $options = array(\n 'options' => array(\n 'default' => 10,\n 'min_range' => 1,\n 'max_range' => 10,\n ),\n );\n\n return filter_input(INPUT_GET, 'd', FILTER_VALIDATE_INT, $options);\n}",
"public function _getQueryValue($name) {\n\t\n \tif(array_key_exists($name, $_GET)) {\n\t\t\treturn $_GET[$name];\n \t} \n \telse if(array_key_exists($name, $_POST)) {\n\t\t\t\treturn $_POST[$name];\n \t\t }\n else {\n\t\t\treturn \"\";\n \t}\n }",
"function getGETValue($value)\n{\n return $_GET[$value] ?? '';\n}",
"function input(string $query)\n {\n return $_GET[$query] ?? $_POST[$query] ?? null;\n }",
"public static function value($name, $default = null) {\n $value = get_instance()->request->query($name);\n if ((is_array($value) && count($value) > 0) || strlen($value) > 0) {\n return $value;\n }\n return $default;\n }",
"private function getUserInput() {\n $input = null;\n\n if (isset($this->request->query['i'])) {\n // BotDetect built-in Ajax Captcha validation\n $input = $this->request->query['i'];\n } else {\n // jQuery validation support, the input key may be just about anything,\n // so we have to loop through fields and take the first unrecognized one\n $recognized = array('get', 'c', 't', 'd');\n foreach($this->request->query as $key => $value) {\n if (!in_array($key, $recognized)) {\n $input = $value;\n break;\n }\n }\n }\n\n return $input;\n }",
"public function getQueryParameter() {\n\t\tif(is_numeric($this->value)) {\n\t\t\treturn $this->value;\n\t\t}\n\t\t// End workaround\n\t\t\n\t\tif($this->operator == self::ASSIGNMENT) { \n\t\t\treturn self::COLON . self::ASSIGNMENT_PREFIX . $this->pdoLabel;\n\t\t} elseif($this->operator == self::IS_NULL || $this->operator == self::IS_NOT_NULL) {\n\t\t\treturn '';\n\t\t} else {\n\t\t\treturn self::COLON . $this->pdoLabel;\n\t\t}\n\t}",
"function get_req_query($name, $def_value = false) {\n return isset($_GET[$name]) ? $_GET[$name] : $def_value;\n }",
"function querystring_get($variable,$default=0) {\r\n $querystring = $_SERVER['QUERY_STRING'];\r\n parse_str($querystring,$values);\r\n if(!isset($values[$variable])) return $default;\r\n else return $values[$variable];\r\n}",
"function param($name, $default) {\n return isset($_GET[$name]) ? floatval($_GET[$name]) : $default;\n}",
"protected function getParameterFromGET($name) {/*{{{*/\n if ( !$name ) {\n return null;\n }\n\n return $_GET[$name];\n }",
"function _get_param($key, $default_value = '')\n\t\t{\n\t\t\t$val = $this->EE->TMPL->fetch_param($key);\n\n\t\t\tif($val == '') {\n\t\t\t\treturn $default_value;\n\t\t\t}\n\t\t\treturn $val;\n\t\t}",
"protected function getInput($input_name) {\n if ($this->hasInput($input_name)){\n\n $request_val = $this->doTrim($_REQUEST[$input_name]);\n\n // if a request value is not array then it is not a\n // filters input. so we need to check if a string value is empaty\n // and return ampty vaue\n // return empty if the input value has nothing on it\n // coz we don't want to call a method if a value is empty\n if (!is_array($request_val)){\n if (empty($request_val) || $request_val == \"\") return \"\";\n }\n\n return $request_val;\n } else {\n return \"\";\n }\n }",
"private static function getUrlParameter() {\n $retval = NULL;\n \n if(filter_has_var(INPUT_GET, 'url')) {\n // split URL (Controller/Action/Parameter)\n $url = trim($_GET['url'], '/');\n $url = filter_var($url, FILTER_SANITIZE_URL);\n $url = explode('/', $url);\n \n $retval = $url[2];\n }\n \n return $retval;\n }",
"public function hidden_value($name) {\n\t\t\t\tif ($this->form_submitted) {\n\t\t\t\t\t$value = request($name, $this->form_method);\n\t\t\t\t\t$value = ($value === NULL ? NULL : urldecode($value));\n\t\t\t\t} else {\n\t\t\t\t\t$value = '';\n\t\t\t\t}\n\t\t\t\t$this->hidden_value_set($name, $value);\n\t\t\t}",
"function qsGet($field)\n\t{\n\t\tif (isset($_GET[$field]))\n\t\t\treturn removeHtmlEntities( trim($_GET[$field]) );\n\t\telse\n\t\t\treturn '';\n\t}",
"public function value() {\n\t\tswitch ($this->Unit) {\n\t\t\tcase self::KM_PER_H:\n\t\t\t\treturn $this->asKmPerHour();\n\n\t\t\tcase self::MIN_PER_KM:\n\t\t\t\treturn $this->asMinPerKm();\n\n\t\t\tcase self::MIN_PER_100M:\n\t\t\t\treturn $this->asMinPer100m();\n\t\t\n\t\t\tcase self::MIN_PER_500M:\n\t\t\t\treturn $this->asMinPer500m();\n\n\t\t\tcase self::M_PER_S:\n\t\t\t\treturn $this->asMeterPerSecond();\n\t\t}\n\n\t\treturn '?';\n\t}",
"function ExpresionGetVAL($string)\r\n\t{\r\n\t\t//Separamos\r\n\t\t$var = explode(\"\t\", $string);\r\n\t\r\n\t\t//Convertimos a caracteres correctos\r\n\t\t$valor = preg_replace('/[^A-Za-z0-9\\. -]/', '', $var[1]);\r\n\t\t\r\n\t\t//Convertimos las comas en puntos\r\n\t\t$valor = str_replace(',', '.', $valor);\r\n\t\t\r\n\t\t//Devolvemos\r\n\t\treturn $valor;\r\n\t}",
"function default_get($str, $default = null)\n{\n return isset($_GET[$str]) ? $_GET[$str] : $default;\n}",
"public static function getVal($key) {\n $value = false;\n if(isset($_GET[$key])) {\n $value = strip_tags($_GET[$key]);\n $value = preg_replace('/[<>\\\\\\\\\\/]/', '', $value);\n }\n return $value;\n }",
"function fetch($name){\n \n return (isset($_GET[$name])? $_GET[$name]:''); \n }",
"function fetch($name){\n \n return (isset($_GET[$name])? $_GET[$name]:''); \n }",
"protected function factor() {\n\t\t$base = $this->terminal();\n\t\tif ($this->accept('EXP')) {\n\t\t\t$exp = $this->factor();\n\t\t\treturn new QueryFunction('exp', array($base, $exp));\n\t\t} else\n\t\t\treturn $base;\n\t}",
"function get( $key = false ) {\n if( $key === false ) {\n return $_GET;\n } else {\n if ( isset( $_GET[ $key ] ) ) {\n return strTrim( $_GET[ $key ] );\n } else {\n return '';\n }\n }\n }",
"public function varivelGET()\n\t{\n\t\t$jinput = JFactory::getApplication()->input;\n\t\t$foo = $jinput->get('varname', 'default_value', 'filter');\n\t}",
"public function getCurrencyAttribute(?string $value = null): string;",
"function getArgument($name)\r\n {\r\n // if in GET VARS array return it \r\n if (!empty($_GET[$name])) {\r\n return $_GET[$name];\r\n }\r\n \r\n // ok, pull from query string\r\n if (in_array($name,array_keys($this->_arguments))) {\r\n return $this->_arguments[$name];\r\n }\r\n \r\n return '';\r\n }",
"function get_value_post_get($key){\n\tif('' == $key) return '';\n\t\n\t\n\tif(isset($_GET[$key]) && $_GET[$key] !==''){\n\t\treturn $_GET[$key];\t\n\t}else if(isset($_POST[$key]) && $_POST[$key] !=''){\n\t\treturn $_POST[$key];\n\t}\t\n\n\treturn '';\t\n}",
"function get_str($name, $optional=false) {\n if (isset($_GET[$name])) {\n $x = $_GET[$name];\n } else {\n if (!$optional) {\n error_page(\"missing or bad parameter: $name\");\n }\n $x = null;\n }\n return $x;\n}",
"function get($get) {\n\t\tif ($get == \"?\") {\n\t\t\treturn adjust($_SERVER[\"QUERY_STRING\"]);\n\t\t} else {\n\t\t\treturn adjust(@$_GET[$get]);\n\t\t}\n\t}"
] | [
"0.5762911",
"0.5185996",
"0.51765025",
"0.50929904",
"0.49609244",
"0.49245542",
"0.48838612",
"0.48651174",
"0.4854298",
"0.4844627",
"0.4811811",
"0.48013845",
"0.47365063",
"0.47320548",
"0.4727777",
"0.4696476",
"0.46886882",
"0.46764725",
"0.46219993",
"0.46142277",
"0.4604066",
"0.4604066",
"0.45998782",
"0.45960334",
"0.45944044",
"0.45917302",
"0.45839623",
"0.45774272",
"0.45752645",
"0.45690405"
] | 0.7379281 | 0 |
Collect the configuration contexts. | public function collectConfigContexts(ChecklistInterface $checklist, array $config_context = []) : array; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getContexts();",
"protected function contexts(): array\n {\n return [];\n }",
"public function collect() {\n foreach($this->loader->getPrefixesPsr4() as $dir) {\n $this->drilldown($dir);\n }\n foreach($this->loader->getClassMap() as $dir) {\n $this->drilldown($dir);\n }\n\n return $this->configData;\n }",
"public function collect(): array\n\t{\n\t\treturn $this->config;\n\t}",
"public function getContexts() {\n return $this->contexts;\n }",
"public function getContext()\n {\n if (!$context = $this->config->getContext()) {\n return;\n }\n\n if (!$context = $context->getContext()) {\n return;\n }\n\n if (!is_array($context)) {\n return;\n }\n\n return array('context' => $context);\n }",
"public function getContexts()\n {\n return $this->contexts;\n }",
"public function getContextDefinitions();",
"public function getContexts(): array {\n return $this->_contexts;\n }",
"public function getContexts()\n {\n return array_values($this->contexts);\n }",
"public static function getall_config() { return self::$config; }",
"public function providerConfig()\n {\n return array(\n array(new Config(__DIR__ . '/mocks/pass/config-exec.php')),\n array(new Config(__DIR__ . '/mocks/pass/config.ini')),\n array(new Config(__DIR__ . '/mocks/pass/config.json')),\n array(new Config(__DIR__ . '/mocks/pass/config.php')),\n array(new Config(__DIR__ . '/mocks/pass/config.xml')),\n array(new Config(__DIR__ . '/mocks/pass/config.yaml'))\n );\n }",
"public function getConfig(): Collection\n {\n return $this->config;\n }",
"public function __invoke()\n {\n return [\n 'view_helpers' => $this->getViewHelperConfig(),\n 'view_manager' => $this->getViewManagerConfig(),\n 'templates' => $this->getTemplatesConfig(),\n ];\n }",
"public function getConfigurations()\n {\n return $this->configurations;\n }",
"public function all()\n {\n return $this->config;\n }",
"public function all()\n {\n return $this->config;\n }",
"public function getContext(): array\n {\n return $this->context;\n }",
"public function getContext(): array\n {\n return $this->context;\n }",
"function acquia_get_layout_contexts() {\n $con = &drupal_static(__FUNCTION__, NULL);\n\n if (!isset($con)) {\n $contexts = context_enabled_contexts();\n ksort($contexts);\n $con = array();\n foreach ($contexts as $context) {\n if($context->tag != 'DiamondLayers page layout') {\n continue;\n }\n $con[$context->name] = $context->name;\n\n $cons[] = $con;\n }\n }\n\n return $con;\n}",
"protected function getConfig()\n {\n return $this->app['config']->all();\n }",
"protected function prepareConfiguration()\n {\n array_walk_recursive($this->configuration, function(&$value, $key, $context){\n if (is_string($value))\n {\n if (0 === strpos($value, 'resource://'))\n $value = $context->resolveResourcePath($value);\n }\n }, $this);\n\n //extend configurations\n foreach ($this->configuration as $index => $subConfiguration)\n $this->configuration[$index] = $this->extendConfiguration($index, $subConfiguration);\n }",
"public abstract function getListContextManager();",
"function _fserver_context_default_contexts() {\n $export = array();\n $context = new stdClass;\n $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */\n $context->api_version = 3;\n $context->name = 'fserver-section-project';\n $context->description = 'Feature Server Releases';\n $context->tag = 'fserver';\n $context->conditions = array(\n 'node' => array(\n 'values' => array(\n '0' => 'fserver_project',\n '1' => 'fserver_distro',\n ),\n 'options' => array(),\n ),\n );\n $context->reactions = array(\n 'block' => array(\n 'blocks' => array(\n 'views-fserver_releases-block_1' => array(\n 'module' => 'views',\n 'delta' => 'fserver_releases-block_1',\n 'weight' => 7,\n 'region' => 'content',\n 'status' => '0',\n 'label' => 'fserver_releases: Recommended releases',\n 'type' => 'context_ui',\n ),\n ),\n ),\n );\n\n $export['fserver-section-project'] = $context;\n return $export;\n}",
"protected static function config()\n {\n return [];\n }",
"public function all()\n\t{\n\t\treturn $this->config;\n\t}",
"public static function GetAll()\n {\n return self::$config;\n }",
"function _atrium_context_default_contexts() {\n $export = array();\n $context = new stdClass;\n $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */\n $context->api_version = 3;\n $context->name = 'atrium-intranet-global';\n $context->description = '';\n $context->tag = 'Intranet';\n $context->conditions = array(\n 'sitewide' => array(\n 'values' => array(\n '1' => 1,\n ),\n ),\n );\n $context->reactions = array(\n 'block' => array(\n 'blocks' => array(\n 'atrium-account' => array(\n 'module' => 'atrium',\n 'delta' => 'account',\n 'region' => 'header',\n 'weight' => 0,\n ),\n 'atrium-user_links' => array(\n 'module' => 'atrium',\n 'delta' => 'user_links',\n 'region' => 'header',\n 'weight' => 1,\n ),\n 'atrium-create' => array(\n 'module' => 'atrium',\n 'delta' => 'create',\n 'region' => 'space_tools',\n 'weight' => 0,\n ),\n 'atrium-admin_links' => array(\n 'module' => 'atrium',\n 'delta' => 'admin_links',\n 'region' => 'space_tools',\n 'weight' => 1,\n ),\n 'atrium-search' => array(\n 'module' => 'atrium',\n 'delta' => 'search',\n 'region' => 'space_tools',\n 'weight' => 2,\n ),\n 'xref-create' => array(\n 'module' => 'xref',\n 'delta' => 'create',\n 'region' => 'page_tools',\n 'weight' => 0,\n ),\n 'spaces_dashboard-editor' => array(\n 'module' => 'spaces_dashboard',\n 'delta' => 'editor',\n 'region' => 'palette',\n 'weight' => 0,\n ),\n 'spaces-menu_editor' => array(\n 'module' => 'spaces',\n 'delta' => 'menu_editor',\n 'region' => 'palette',\n 'weight' => 1,\n ),\n 'atrium-help' => array(\n 'module' => 'atrium',\n 'delta' => 'help',\n 'region' => 'palette',\n 'weight' => 2,\n ),\n ),\n ),\n );\n $context->condition_mode = 0;\n\n $translatables['atrium-intranet-global'] = array(\n t('Intranet'),\n );\n\n $export['atrium-intranet-global'] = $context;\n $context = new stdClass;\n $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */\n $context->api_version = 3;\n $context->name = 'atrium-section-taxonomy';\n $context->description = '';\n $context->tag = 'Intranet';\n $context->conditions = array(\n 'views' => array(\n 'values' => array(\n 'atrium_taxonomy' => 'atrium_taxonomy',\n ),\n ),\n );\n $context->reactions = array(\n 'block' => array(\n 'blocks' => array(\n 'views-atrium_taxonomy-block_1' => array(\n 'module' => 'views',\n 'delta' => 'atrium_taxonomy-block_1',\n 'region' => 'right',\n 'weight' => 0,\n ),\n ),\n ),\n );\n $context->condition_mode = 0;\n\n $translatables['atrium-section-taxonomy'] = array(\n t('Intranet'),\n );\n\n $export['atrium-section-taxonomy'] = $context;\n $context = new stdClass;\n $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */\n $context->api_version = 3;\n $context->name = 'layout_login';\n $context->description = '';\n $context->tag = 'Theme';\n $context->conditions = array();\n $context->reactions = array(\n 'block' => array(\n 'blocks' => array(),\n 'layout' => 'login',\n ),\n );\n $context->condition_mode = 0;\n\n $translatables['layout_login'] = array(\n t('Theme'),\n );\n\n $export['layout_login'] = $context;\n $context = new stdClass;\n $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */\n $context->api_version = 3;\n $context->name = 'layout_wide';\n $context->description = '';\n $context->tag = 'Theme';\n $context->conditions = array(\n 'path' => array(\n 'values' => array(\n 'node/add/*' => 'node/add/*',\n 'node/*/edit' => 'node/*/edit',\n 'admin' => 'admin',\n 'admin/*' => 'admin/*',\n 'user/*/edit' => 'user/*/edit',\n 'user/*/edit/*' => 'user/*/edit/*',\n ),\n ),\n );\n $context->reactions = array(\n 'block' => array(\n 'blocks' => array(),\n 'layout' => 'wide',\n ),\n );\n $context->condition_mode = 0;\n\n $translatables['layout_wide'] = array(\n t('Theme'),\n );\n\n $export['layout_wide'] = $context;\n $context = new stdClass;\n $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */\n $context->api_version = 3;\n $context->name = 'spaces_dashboard-custom-1';\n $context->description = 'Dashboard';\n $context->tag = 'Dashboard';\n $context->conditions = array();\n $context->reactions = array(\n 'block' => array(\n 'blocks' => array(\n 'atrium-welcome_admin' => array(\n 'module' => 'atrium',\n 'delta' => 'welcome_admin',\n 'region' => 'content',\n 'weight' => 0,\n ),\n 'views-atrium_intranet-block_1' => array(\n 'module' => 'views',\n 'delta' => 'atrium_intranet-block_1',\n 'region' => 'content',\n 'weight' => 1,\n ),\n 'views-atrium_groups-block_2' => array(\n 'module' => 'views',\n 'delta' => 'atrium_groups-block_2',\n 'region' => 'right',\n 'weight' => 0,\n ),\n ),\n ),\n );\n $context->condition_mode = 0;\n\n $translatables['spaces_dashboard-custom-1'] = array(\n t('Dashboard'),\n );\n\n $export['spaces_dashboard-custom-1'] = $context;\n return $export;\n}",
"public static function getAll()\n {\n\treturn self::$config;\n }",
"public function getOutputContexts()\n {\n return $this->output_contexts;\n }"
] | [
"0.65088356",
"0.650212",
"0.6491067",
"0.6284176",
"0.61344457",
"0.6082558",
"0.6044948",
"0.58942485",
"0.58647937",
"0.5768444",
"0.5716699",
"0.5700685",
"0.5690804",
"0.5649545",
"0.5617583",
"0.54970986",
"0.54970986",
"0.54728425",
"0.54728425",
"0.5469289",
"0.54678524",
"0.5467655",
"0.54328907",
"0.5421993",
"0.5404187",
"0.5389645",
"0.53847015",
"0.53629017",
"0.533278",
"0.5262639"
] | 0.6562395 | 0 |
get the pdo URI part | protected function _getURI() : string {
return 'mysql';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function uri(): string{\r\n return strtok($this->server->get('REQUEST_URI'), '?');\r\n }",
"function pg_connection_string_from_database_url() {\n\t // extract(parse_url($_ENV[\"DATABASE_URL\"]));\n\t // return \"user=$user password=$pass host=$host port=$port dbname=\" . substr($path, 1);\n\t}",
"function getUri();",
"public function getUri();",
"public function getUri();",
"abstract public function uri();",
"public function getUri() {\r\n\t\t// if you need the raw form access the property without\r\n\t\t// this get function\r\n\t\tif (substr($this->uri, 0, 5) == \"repo:\") {\r\n\t\t\treturn substr($this->uri, 5);\r\n\t\t} else {\r\n\t\t\treturn $this->uri;\r\n\t\t}\r\n\t}",
"public function getUri() {\n $s= $this->path.'?';\n foreach ($this->query as $key => $value) {\n $s.= rawurlencode($key).'={'.rawurlencode($value).'}&';\n }\n return substr($s, 0, -1);\n }",
"public function fullURI()\n\t{\n\t\treturn $this->uri;\n\t}",
"function pg_connection_string_from_database_url() {\n extract(parse_url(getenv(\"HEROKU_POSTGRESQL_COBALT_URL\")));\n return \"user=$user password=$pass host=$host dbname=\" . substr($path, 1);\n }",
"public function getDbLink();",
"protected function getUrl() {\n $partten = \"#([a-zA-Z0-9\\/]+)(\\?.*)?#\";\n $arg = preg_replace($partten, \"$1\", $_SERVER['REQUEST_URI']);\n return $arg;\n }",
"public function getUrlParts () {\n\t\t$thisUrl = 'http' . ( isset($_SERVER[\"HTTPS\"]) && $_SERVER[\"HTTPS\"] == \"on\" ? \"s\" : '' ) . '://'\n\t\t\t\t. $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];\n\t\treturn parse_url($thisUrl);\n\t}",
"public function uriName(): string;",
"function getEndPoint($cod_ambiente) {\n $query = $this->mysql->query(\"select url\n from endpoint_ambiente\n\t\t\t\t\t\t\t\t where activo = 'S'\n\t\t\t\t\t\t\t\t and cod_ambiente =\".$cod_ambiente);\n\treturn $query->row['url'];\t\t\t\n}",
"public function getUri()\n {\n return $this->getIdentifier('uri');\n }",
"public static function get_uri():string { return self::$uri; }",
"public function getUri(){\n return libvirt_connect_get_uri($this->connection);\n }",
"function uri_string(){\n\t\t\treturn $this->uri_string;\n\t\t}",
"private function prepareURI() {\n if (Configuration::read('basepath') != '') {\n $devnull = array_shift($this->uri);\n }\n\n //Deal with lack of mod-rewrite\n if (!Configuration::read('mod_rewrite_enabled')) {\n $devnull = array_shift($this->uri);\n }\n }",
"abstract public function withUri(): string;",
"public function getRowUrl()\n {\n $parts = \\parse_url($this->url);\n unset($parts['query']);\n if (empty($parts['user'])) {\n unset($parts['user']);\n unset($parts['pass']);\n } else {\n $parts['user'] = rawurldecode($parts['user']);\n if (isset($parts['pass'])) {\n $parts['pass'] = rawurldecode($parts['pass']);\n } else {\n $parts['pass'] = '';\n }\n }\n\n return $parts;\n }",
"protected abstract function getUrlIdent();",
"function uri()\n{/*{{{*/\n $schema = is_https() ? 'https://' : 'http://';\n\n $request = _request();\n\n return $schema.$request->header['host'].$request->server['request_uri'];\n}",
"function geturiparam($pathdelimiter, $addhttp) {\n $uri = @$_REQUEST['uri']; // use explicitly specified uri parameter if any\n \n // if no explict url is found, get it from the path\n if ($uri=='') {\n if ($pathdelimiter=='') {\n $pathdelimiter = '.com/';\n }\n $uri = explode($pathdelimiter, $_SERVER['REQUEST_URI'], 2);\n $uri = $uri[1];\n }\n $uri = webaddresstouri(urldecode($uri), $addhttp);\n \n // if no explicit nor path uri, look for use referrer request\n if ($uri=='referrer' || $uri== 'referer' || $uri=='http://referrer' || $uri=='http://referer') {\n $uri=getenv(\"HTTP_REFERER\");\n }\n return $uri;\n}",
"public abstract function getConnectionUrl();",
"public function getURI() {\n\n $useSSL = ((isset($this->ssl) && $this->ssl && Configuration::get('PS_SSL_ENABLED')) || Tools::usingSecureMode()) ? true : false;\n $protocol_content = ($useSSL) ? 'https://' : 'http://';\n\n return $protocol_content . Tools::getHttpHost() . __PS_BASE_URI__;\n }",
"function bf_get_uri( $append = '' ) {\n\n\t\treturn BF_URI . $append;\n\t}",
"protected function getEndPointURL()\n {\n $uri = $this->_sgw->_server('REQUEST_URI');\n $host = $this->_sgw->_server('HTTP_HOST');\n $uri_parts = explode('?', $uri, 2);\n return 'http://' . $host . $uri_parts[0];\n }",
"function actualaddr()\n\t{\n\t$query=getenv(\"QUERY_STRING\");\n\tif (!empty($query))\n\t\t{\n\t\treturn \"http://\". getenv(\"SERVER_NAME\"). getenv(\"SCRIPT_NAME\") .\"?\". $query;\n\t\t}\n\telse\n\t\t{\n\t\treturn \"http://\". getenv(\"SERVER_NAME\"). getenv(\"SCRIPT_NAME\");\n\t\t}\n\t}"
] | [
"0.6185563",
"0.6034841",
"0.5859752",
"0.57299286",
"0.57299286",
"0.57075936",
"0.5639079",
"0.56373894",
"0.5631559",
"0.56244504",
"0.56052184",
"0.5604591",
"0.5590164",
"0.5573177",
"0.55577326",
"0.5556429",
"0.55526614",
"0.5540112",
"0.55084544",
"0.5506137",
"0.5497986",
"0.549388",
"0.5483236",
"0.54794616",
"0.54756296",
"0.5473758",
"0.5470791",
"0.546051",
"0.54445946",
"0.5443724"
] | 0.6310336 | 0 |
Get the default database | public static function GetDefaultDatabase() : string {
return static::$_DefaultDatabase;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function getDefaultDatabase() {\t\t\n\t\tif (self::$defaultDb == null) {\n\t\t\t$options = ConfigUtils::getOptions();\n\t\t\t\n\t\t\tself::$defaultDb = Zend_Db::factory('PDO_MYSQL',array(\n\t\t\t\t'host'=>$options['resources']['doctrine']['dbal']['connections']['default']['parameters']['host'],\n\t\t\t\t'dbname'=>$options['resources']['doctrine']['dbal']['connections']['default']['parameters']['dbname'],\n\t\t\t\t'username'=>$options['resources']['doctrine']['dbal']['connections']['default']['parameters']['user'],\n\t\t\t\t'password'=>$options['resources']['doctrine']['dbal']['connections']['default']['parameters']['password'],\n\t\t\t\t'port'=>$options['resources']['doctrine']['dbal']['connections']['default']['parameters']['port']\n\t\t\t));\n\t\t}\n\t\t\n\t\treturn self::$defaultDb;\n\t}",
"public static function GetDefaultDatabase() : ADatabase {\n if (isset(self::$_Database[static::class])) {\n return self::$_Database[static::class];\n }\n if (isset(self::$_Database[self::class])) {\n return self::$_Database[self::class];\n }\n throw new \\Exception('Default database is not set!');\n }",
"public static function GetDatabase() {\n\t\t\treturn QApplication::$Database[1];\n\t\t}",
"public static function GetDatabase() {\n\t\t\treturn QApplication::$Database[1];\n\t\t}",
"public static function GetDatabase() {\n\t\t\treturn QApplication::$Database[1];\n\t\t}",
"public static function GetDatabase() {\n\t\t\treturn QApplication::$Database[1];\n\t\t}",
"public static function GetDatabase() {\n\t\t\treturn QApplication::$Database[1];\n\t\t}",
"public static function GetDatabase() {\n\t\t\treturn QApplication::$Database[1];\n\t\t}",
"public static function GetDatabase() {\n\t\t\treturn QApplication::$Database[1];\n\t\t}",
"public static function GetDatabase() {\n\t\t\treturn QApplication::$Database[1];\n\t\t}",
"public static function GetDatabase() {\n\t\t\treturn QApplication::$Database[1];\n\t\t}",
"public static function GetDatabase() {\n\t\t\treturn QApplication::$Database[1];\n\t\t}",
"public static function GetDatabase() {\n\t\t\treturn QApplication::$Database[1];\n\t\t}",
"public static function GetDatabase() {\n\t\t\treturn QApplication::$Database[1];\n\t\t}",
"public static function GetDatabase() {\n\t\t\treturn QApplication::$Database[1];\n\t\t}",
"public function getDefaultConnection()\n {\n return $this->app['config']['database.default'];\n }",
"public function getDefaultConnection()\n {\n return $this->app['config']['database.default'];\n }",
"public function getDatabase() : ADatabase {\n if ($this->_database === NULL) {\n $this->_database = static::GetDefaultDatabase();\n }\n return $this->_database;\n }",
"public function getDefaultDb(): ConnectionInterface|null;",
"public function get_database() {\n\t\treturn $this->database;\n\t}",
"protected function getDatabase()\n {\n return $this->getMetaModel()->getServiceContainer()->getDatabase();\n }",
"public function getDatabase($database = null);",
"public static function get_database(): string;",
"public function getDatabase()\n {\n if ($this->database === null) {\n $this->database = Db::getInstance();\n }\n\n return $this->database;\n }",
"public static function get_db(){\n\t\treturn Config::get('database.main_db');\n\t\t//return \"fusarung\";\n\t}",
"static protected function database() {\n return $GLOBALS['app']->getContainer()->database;\n }",
"protected function get_db()\n\t{\n\t\treturn $this->connections['primary'];\n\t}",
"public function getDatabase(): string\n {\n return $this->database;\n }",
"public function getDatabase()\n {\n return $this->database;\n }",
"public function getDatabase()\n {\n return $this->database;\n }"
] | [
"0.8095447",
"0.78981787",
"0.77333987",
"0.77333987",
"0.77333987",
"0.77333987",
"0.77333987",
"0.77333987",
"0.77333987",
"0.77333987",
"0.77333987",
"0.77333987",
"0.77333987",
"0.77333987",
"0.77333987",
"0.7715497",
"0.7715497",
"0.76817626",
"0.76685256",
"0.76648015",
"0.7614954",
"0.75793535",
"0.757084",
"0.7561115",
"0.756099",
"0.75548255",
"0.753837",
"0.75185823",
"0.75169736",
"0.75169736"
] | 0.8647642 | 0 |
Get the column name for given property | private function _getColumnName(string $propertyName) {
if ($propertyName === 'id') {
$colName = 'telegram_id';
} else {
$colName = $propertyName;
}
return $colName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function formatAsColumn(string $property): string;",
"public function getColumnProperty($i, $property)\n {\n $column = $this->column($i);\n if( ! $column )\n {\n return NULL;\n }\n if( ! array_key_exists($property, $column) )\n {\n return NULL;\n }\n return $column[$property];\n }",
"public function column_name();",
"function getColumnName()\n {\n return $this->columnName;\n }",
"public function getColumn (): string\n {\n return $this->column_name;\n }",
"public function getName()\n {\n return $this->_column->getName();\n }",
"public function translateName(PropertyMetadata $property): string;",
"public function getColumnName() {\n return $this->_columnName;\n }",
"public function formatAsProperty(string $column): string;",
"public function propertyToColumnName($propertyName, $className = null)\n {\n return $this->str->snake($propertyName);\n }",
"public function __getPropertyGetterName($property);",
"public function __get( $property ) {\n\t\tif ( in_array( $property, $this->get_columns(), true ) && isset( $this->data[ $property ] ) ) {\n\t\t\treturn $this->data[ $property ];\n\t\t}\n\n\t\treturn $this->get_column_default( $property );\n\t}",
"public function getPropertyName()\n {\n return $this->propertyName;\n }",
"public function toField(string $property): string\n {\n $mapping = self::mapping();\n return $mapping[$property];\n }",
"public function getPropertyName();",
"function getColumnName($columnIndex) { \n\t\treturn $this->tableColumns[$columnIndex]->name;\t\n\t}",
"public function joinColumnName($propertyName)\n {\n return $this->str->snake($this->str->singular($propertyName)) . '_' . $this->referenceColumnName();\n }",
"function getPropertyName()\n {\n return $this->propertyName;\n }",
"function getPropertyName()\n {\n return $this->propertyName;\n }",
"public function columnName($i)\n {\n $column = $this->get('columns')[$i];\n\n return isset($column['name']) && $column['name'] <> '' ? $column['name'] : $column['data'];\n }",
"public function column()\r\n {\r\n return isset($this->data->COLUMN_NAME) ? $this->data->COLUMN_NAME : false;\r\n }",
"public function getFieldNameByColumn($column)\n {\n // Todo_Maynotuse: since column and join column can have the same name\n // TODO: ??? get field name but return BizField object ???\n return $this->bizRecord->getFieldByColumn($column); // main table column\n }",
"protected function _getColumnName($index) {\n\t\t$alias = $this->_object->alias;\n\t\tif (!isset($this->_columnKeys[$alias][$index])) {\n\t\t\treturn false;\n\t\t}\n\t\treturn $this->_columnKeys[$alias][$index];\n\t}",
"public function getName()\n\t{\n\t\treturn $this->property->getName();\n\t}",
"public function getColumn()\n {\n return strval($this->column);\n }",
"public function getFieldMethodName(CodeGeneratorColumn $column){\n\t\t$method = $this->engine->getFieldMethodName($column);\n\t\tif(strtolower($method) == 'id'){\n\t\t\t$method = 'ID';\n\t\t}\n\t\treturn $method;\n\t}",
"public function getResolvedTableAlias($property)\n {\n return $this->resolvedTableAliases[$property];\n }",
"public function get_column($columnname);",
"protected function getPropertyFunction($property) {\n return sprintf('get%sProperty', $this->propertyMethodTransform($property));\n }",
"function getColumnName($columnIndex) { \n\t\treturn $this->columnModel->getColumnName($columnIndex);\n\t}"
] | [
"0.7520295",
"0.7185034",
"0.69526607",
"0.688867",
"0.6876644",
"0.68477386",
"0.6816795",
"0.6793322",
"0.6719717",
"0.6684301",
"0.66382617",
"0.66213",
"0.6534023",
"0.65199476",
"0.6514188",
"0.65025723",
"0.6474821",
"0.6465864",
"0.6465864",
"0.6444655",
"0.64420426",
"0.6432275",
"0.6399581",
"0.6363236",
"0.6327819",
"0.630414",
"0.62887543",
"0.62857985",
"0.6285391",
"0.62735313"
] | 0.7383127 | 1 |
menampilkan form buat kuis uraian | public function tampil_formKU()
{
$this->load->view('templates/guru_sidebar');
$this->topbarGuru();
$data['data_kessay'] = $this->M_guru->get_kessay()->result();
$data['judul_kuis'] = $this->M_guru->get_jkuis()->result();
$this->load->view('view_guru/V_formkuisuraian', $data);
$this->load->view('templates/user_footer');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function buildForm(){\n\t\t# menampilkan form\n\t}",
"public function form_mutasi(){\n\t\t$data['jabatan'] = $this->m_models->getAll('jabatan');\n\t\t$data['penempatan'] = $this->m_models->getAll('sekolah order by nama');\n\t\t$this->load->view('pegawai/form_mutasi',$data);\n\t}",
"private function form() {\n // carrega formulario\n $template = array('admin/form');\n\n $data = array();\n $data['title'] = 'Manutenção de Bloco de Site';\n $data['subtitle'] = 'Pagina: ' . $this->page_data['page'];\n $data['submenu'] = TRUE;\n $data['uri'] = $this->uri->uri_string();\n $data['form_url'] = $data['uri'];\n $data['form_label'] = 'Configurações do Bloco:';\n $data['form'] = $this->getDiv(); //data to form\n\n $this->html->set_tinymce();\n $this->html->output($template, $data);\n }",
"function tambah_aksi(){\n\t\t$nama = $this->input->post('nama');//dengan function tambah aksi kita menamngkap input dari form \n\t\t$alamat = $this->input->post('alamat');//dengan function tambah aksi kita menamngkap input dari form\n\t\t$pekerjaan = $this->input->post('pekerjaan');//dengan function tambah aksi kita menamngkap input dari form\n \n\t\t$data = array(\n\t\t\t'nama' => $nama,\n\t\t\t'alamat' => $alamat,\n\t\t\t'pekerjaan' => $pekerjaan\n\t\t\t);//kemudian merubahnya dalam bentuk array\n\t\t$this->m_data->input_data($data,'user');// dan barulah kemdian diarahkan ke m_data untuk mengimputkan data baru yang berupa array tersebut ke database tabel user\n\t\tredirect('crud/index');// setelah itu langsung diarah kan ke function index yang menampilkan v_tampil\n }",
"function kodjenisfasiliti_tambah(){\n $data['title'] = \"Tambah Kod Jenis Fasiliti\"; \n $data['kodjenisfasiliti']['perihalJenisFasiliti'] = $this->input->post('perihalJenisFasiliti'); \n //form validation\n $this->form_validation->set_rules('perihalJenisFasiliti','Perihal Kod Jenis Fasiliti','required'); \n if($this->form_validation->run() == true){\n $insert_id = $this->Tbl_kodjenisfasiliti_model->save($data['kodjenisfasiliti']);\n if($insert_id > '0'){\n if($this->input->is_ajax_request()){\n echo \"Rekod Berjaya Disimpan!\";\n } else{\n flashMsg('Rekod Berjaya Disimpan!','success');\n redirect('maintenance/senarai_kodjenisfasiliti');\n }//end if\n } else {\n echo \"Kod Rekod Sudah Wujud!\";\n }//end if\n } else {\n echo \"Rekod Tidak Berjaya Disimpan!\";\n }//end if\n // untuk table tbl_users\n if(!$this->input->is_ajax_request()){$this->_render_page($data);}\n }",
"public function form() {\n $id = filter_input(INPUT_POST, 'id');\n\n if($id){\n\n\n \n }else{\n\n \n\n }\n\n Log::inserir('Acessou', 'Menu');\n\n }",
"public function addForm()\n {\n //mengambil data kelas_keilmuan dari model Keilmuan.php berdasarkan id\n $keilmuan = Keilmuan::orderBy('id', 'desc')->get();\n\n //menampilkan data kelas_keilmuan yang dipanggil diatas untuk ditampilkan di form tambah data\n return view('admin.add')->with([\n 'keilmuan' => $keilmuan\n ]);\n }",
"function padananfp_tambah(){\n $data['title'] = \"Tambah Padanan Fasiliti Penempatan\";\n $data['padananfp']['fasiliti'] = $this->input->post('fasiliti');\n $data['padananfp']['penempatan'] = $this->input->post('penempatan');\n //form validation\n $this->form_validation->set_rules('fasiliti','Fasiliti','required');\n $this->form_validation->set_rules('penempatan','Penempatan','required'); \n if($this->form_validation->run() == true) {\n $insert_id = $this->Tbl_padananfp_model->save($data['padananfp']);\n if($insert_id){\n if($this->input->is_ajax_request()){\n echo \"Rekod Berjaya Disimpan!\";\n }else{\n flashMsg('Rekod Berjaya Disimpan!','success');\n redirect('maintenance/senarai_padanansj');\n }//end if\n }else{\n echo \"Padanan Sudah Wujud!\";\n }//end if\n } else{\n echo \"Rekod Tidak Berjaya Disimpan!\";\n }//end if \n // untuk table tbl_users\n if(!$this->input->is_ajax_request()){ $this->_render_page($data); }\n }",
"public function input_mutasi(){\n\t\t$this->load->view('template/header');\n\t\t$data['pegawai'] = $this->m_models->getAll(\"pegawai where status_aktf='Aktif' order by nama\");\n\t\t$data['jabatan'] = $this->m_models->getAll('jabatan');\n\t\t$data['penempatan'] = $this->m_models->getAll('sekolah order by nama');\n\t\t$this->load->view('pegawai/f_mutasi',$data);\n\n\t\t//menampilkan tampilan footer\n\t\t$this->load->view('template/footer');\n\t}",
"function jawapan_tambah(){\n $data['title'] = \"Tambah Jawapan\";\n $data['jawapan']['pilihanJawapan'] = $this->input->post('pilihanJawapan'); \n $data['jawapan']['skor'] = $this->input->post('skor');\n $data['jawapan']['inputType'] = $this->input->post('inputType');\n $this->form_validation->set_rules('pilihanJawapan','Pilihan Jawapan','required');\n $this->form_validation->set_rules('skor','Skor','required|max_length[2]');\n $this->form_validation->set_rules('inputType','Jenis Input','required'); \n if($this->form_validation->run() == true){\n $insert_id = $this->Tbl_jawapan_model->save($data['jawapan']);\n if($insert_id > '0'){\n if($this->input->is_ajax_request()){\n echo \"Rekod Berjaya Disimpan!\";\n } else {\n flashMsg('Rekod Berjaya Disimpan!','success');\n redirect('maintenance/senarai_jawapan');\n }//end if\n } else {\n echo \"Kod Rekod Sudah Wujud!\";\n }//end if\n } else {\n echo \"Rekod Tidak Berjaya Disimpan!\";\n }//end if\n // untuk table tbl_users\n if(!$this->input->is_ajax_request()){ $this->_render_page($data); }\n }",
"public function form()\n {\n\t\t$this->hidden('id');\n\t\t//$this->switch('open', '启用位置')->help('是否启用位置功能');\n $this->tags('poses', '设置位置')->help('设置位置,如 焦点,精华,固顶等');\n }",
"public function form($id = NULL )\n {\n if ($id) {\n $id = decrypting($id);\n $this->data['user'] = $this->Settuser_m->get($id);\n count($this->data['user']) || $this->show_404();\n } else {\n $this->data['user'] = $this->Settuser_m->get_new();\n }\n \n // buat dropdown hakakses\n $this->data['hakakses_dropdown'] = $this->Settuser_m->get_drowpdown_hakakses();\n \n $rules = $this->Settuser_m->rules;\n $id || $rules['userpass']['rules'] .= '|required';\n $this->form_validation->set_rules($rules);\n\n if ($this->form_validation->run() == TRUE) {\n $data = $this->Settuser_m->array_from_post(array(\n // 'iduserlevel',\n 'namalengkap',\n 'namauser',\n 'email',\n 'nomorhp',\n 'logo',\n 'stts',\n 'userpass'\n ));\n // $data['iduserlevel'] =$this->input->post('ac_an_id');\n $ex = explode(':',$this->input->post('iduserlevel'));\n if( ! empty($ex)){\n $data['iduserlevel'] = $ex[0];\n $data['u_an_id'] = $ex[1];\n }\n \n\n if (empty($data['userpass'])) {\n $data['userpass'] = $this->data['user']->userpass;\n \n } else {\n $data['userpass'] = $this->Settuser_m->hash($data['userpass']);\n\n }\n $this->Settuser_m->simpan($data, $id);\n //var_dump($data);\n // redirect('backoffice/settuser/');\n \n $this->data['sukses']='<script>\n swal({\n title: \"Berhasil Disimpan\",\n type: \"success\",\n closeOnConfirm: false,\n showConfirmButton: false\n });\n setTimeout(function(){\n \n window.location.replace(\"'.site_url('backoffice/settuser/').'\");\n }, 1500);\n </script>';\n }\n \n $this->data['subview'] = 'backoffice/user/form';\n $this->load->view('backoffice/_layout_main',$this->data);\n }",
"function kodfasiliti_tambah(){\n $data['title'] = \"Tambah Kod Fasiliti\";\n $data['kodfasiliti']['kodFasiliti'] = $this->input->post('kodFasiliti');\n $data['kodfasiliti']['perihalFasiliti'] = $this->input->post('perihalFasiliti'); \n $data['kodfasiliti']['kodJenisFasiliti'] = $this->input->post('kodJenisFasiliti');\n $data['kodfasiliti']['lokalitiPentadbir'] = $this->input->post('lokalitiPentadbir'); \n //form validation \n $this->form_validation->set_rules('kodFasiliti','Kod Fasiliti','required|max_length[15]');\n $this->form_validation->set_rules('perihalFasiliti','Perihal Fasiliti','required');\n $this->form_validation->set_rules('kodJenisFasiliti','Jenis Fasiliti','required');\n $this->form_validation->set_rules('lokalitiPentadbir','Lokaliti Pentadbir','required|max_length[15]'); \n if($this->form_validation->run() == true){\n $insert_id = $this->Tbl_kodfasiliti_model->save($data['kodfasiliti']);\n if($insert_id){\n if($this->input->is_ajax_request()){\n echo \"Rekod Berjaya Disimpan!\";\n } else {\n flashMsg('Rekod Berjaya Disimpan!','success');\n redirect('maintenance/senarai_kodfasiliti');\n }//end if\n } else { \n echo \"Kod Rekod Sudah Wujud!\";\n }//end if\n } else {\n echo \"Rekod Tidak Berjaya Disimpan!\";\n }//end if \n // untuk table tbl_users\n if(!$this->input->is_ajax_request()){ $this->_render_page($data);}\n }",
"function tambah_aksi()\n\t{\n\n\t\t$nama = $this->input->post('nama');\n\t\t$alamat = $this->input->post('alamat');\n\t\t$pekerjaan = $this->input->post('pekerjaan');\n\t\t//ini adalah baris kode array yang menjadikan ketiga di atas menjadi 1 variable\n\t\t//dan nantiny akan di kirim ke dalam query database di model m_data\n\t\t$data = array(\n\t\t\t'nama' => $nama,\n\t\t\t'alamat' => $alamat,\n\t\t\t'pekerjaan' => $pekerjaan\n\t\t);\n\t\t$this->m_data->input_data($data, 'user');\n\t\tredirect('crud/index');\n\t}",
"public function tambahdata()\n\t{\n\t\t$this->isi['kendaraan']\t= $this->M_kendaraan->cth();\n\t\t$this->isi['pengemudi'] = $this->M_pengemudi->cth();\n\t\t$this->isi['tformk'] = $this->M_formk->getform('t_form_kotamobagu');\n\t\t$this->load->view('admin/formkotamobagu/tambahdatakotamobagu', $this->isi);\n\t}",
"public function formlaporan()\r\n {\r\n\r\n $data['title'] = 'Form Laporan Kejadian';\r\n $data['user'] = $this->db->get_where('tb_user', ['email' => $this->session->userdata('email')])->row_array();\r\n $data['kec'] = $this->M_admin->getKecamatan();\r\n $data['ben'] = $this->M_admin->getBencana();\r\n $kode = $this->db->get_where('tb_user', ['email' => $this->session->userdata('email')])->row_array();\r\n $dariDB = $this->M_admin->kodeOtomatismj($kode);\r\n // contoh JRD0004, angka 3 adalah awal pengambilan angka, dan 4 jumlah angka yang diambil\r\n $nourut = substr($dariDB, 4, 3);\r\n $id_lapskrg = $nourut + 1;\r\n $res = array('id_lap' => $id_lapskrg);\r\n\r\n $this->load->view('template/header', $data);\r\n $this->load->view('template/topbar');\r\n $this->load->view('template/sidebar', $data);\r\n $this->load->view('template/breadcrumb', $data);\r\n $this->load->view('admin/formlaporan', $res, $data);\r\n $this->load->view('template/footer');\r\n }",
"protected function form()\n {\n \n }",
"function kodsp_tambah(){\n $data['title'] = \"Tambah Kod Fasiliti\"; \n $data['kodsp']['perihalSkim'] = $this->input->post('perihalSkim'); \n $data['kodsp']['kodKlasifikasiSkim'] = $this->input->post('kodKlasifikasiSkim');\n $data['kodsp']['kumpPerkhidmatan'] = $this->input->post('kodKumpulan');\n $this->form_validation->set_rules('perihalSkim','Perihal Skim','required');\n $this->form_validation->set_rules('kodKlasifikasiSkim','Jenis Klasifikasi Skim','required');\n $this->form_validation->set_rules('kodKumpulan','Kumpulan Perkhidmatan');\n if($this->form_validation->run() == true){\n $insert_id = $this->Tbl_kodskimperkhidmatan_model->save($data['kodsp']);\n if($insert_id){\n if($this->input->is_ajax_request()){\n echo \"Rekod Berjaya Disimpan!\";\n }else{\n flashMsg('Rekod Berjaya Disimpan!','success');\n redirect('maintenance/senarai_kodsp');\n }//end if\n } else {\n echo \"Kod Rekod Sudah Wujud!\";\n }//end if\n } else {\n echo \"Rekod Tidak Berjaya Disimpan!\";\n }//end if\n // untuk table tbl_users\n if(!$this->input->is_ajax_request()){$this->_render_page($data);}\n }",
"public function form()\n {\n foreach ($this->seo_field as $value){\n $this->text($value.'.title', __($value).'.标题')->rules('required');\n $this->text($value.'.keywords', __($value).'.关键字')->rules('required');\n $this->textarea($value.'.description', __($value).'.描述')->rules('required');\n }\n\n }",
"public function tambah_data_mahasiswa()\n\t{\n\t\tif($this->input->post('btnSimpan')){\n\t\t\t$d=array( \n\t\t\t\t'nim'=>$this->input->post('txtnim'),\n\t\t\t\t'nama'=>$this->input->post('txtnama'),\n\t\t\t\t'angkatan'=>$this->input->post('txtangkatan'),\n\t\t\t\t'alamat'=>$this->input->post('txtalamat') \n\n\t\t\t\t);\n\t\t\t$this->mdata_mahasiswa->insert_data_mahasiswa($d);\n\t\t\tredirect('Data_Mahasiswa'); //diarahkan kembali ke Data_Mahasiswa\n\t\t} \n\t\t$this->data['konten']=\"admin/tambah_data_mahasiswa\";\n\t\t$this->load->view('template_admin', $this->data);\n\t}",
"public function tambahPemilih(){\n\n $where1 = array('id_kecamatan' => '1');\n $where2 = array('id_kecamatan' => '2');\n $where3 = array('id_kecamatan' => '3');\n\n $content = 'admin/form/formTambahPemilihSA';\n\n $data = array( 'title' => 'Super Admin | Tim Sukses',\n 'isi' => $content,\n 'kec' => $this->Crud->ga('kecamatan'),\n 'kel1' => $this->Crud->gw('kelurahan', $where1),\n 'kel2' => $this->Crud->gw('kelurahan', $where2),\n 'kel3' => $this->Crud->gw('kelurahan', $where3),\n 'count' => $this->HomeModel->get_count(),\n 'count1' => $this->HomeModel->get_mamajang(),\n 'count2' => $this->HomeModel->get_mariso(),\n 'count3' => $this->HomeModel->get_tamalate(),\n 'dataScript' => 'admin/dataScript/tabel-script' );\n \n $this->load->view('admin/_layout/wrapper', $data);\n }",
"public function post_tambah_ajukan_barang(){\n\t\t$this->form_validation->set_rules('no_identitas', 'No Identitas','required');\n\t\t$this->form_validation->set_rules('kode_barang', 'Nama Barang','required');\n\t\t$this->form_validation->set_rules('tgl_item_pengajuan', 'Tanggal Item Pengajuan','required');\n\t\t$this->form_validation->set_rules('nama_item_pengajuan', 'Nama Item Pengajuan','required');\n\t\t$this->form_validation->set_rules('url', 'URL','required');\n\t\t$this->form_validation->set_rules('harga_satuan', 'Harga Satuan','required');\n\t\t$this->form_validation->set_rules('merk', 'Merk','required');\n\t\t$this->form_validation->set_rules('jumlah', 'Jumlah Barang','required');\n\t\t// $this->form_validation->set_rules('pimpinan', 'Pimpinan','required');\n\t\tif($this->form_validation->run() == FALSE)\n\t\t{\n\t\t\t$this->session->set_flashdata('error','Data Pengajuan Kegiatan anda tidak berhasil ditambahkan 1');\n\t\t\tredirect('Staf_sarprasC/ajukan_barang') ;\n\t\t\t//redirect ke halaman pengajuan barang\n\t\t}else{\n\t\t\t$upload = $this->Staf_sarprasM->upload(); // lakukan upload file dengan memanggil function upload yang ada di Staf_sarprasM.php\n\t\t\t$no_identitas \t\t= $_POST['no_identitas'];\n\t\t\t$kode_barang \t\t= $_POST['kode_barang'];\n\t\t\t$tgl_item_pengajuan = $_POST['tgl_item_pengajuan'];\n\t\t\t$nama_item_pengajuan= $_POST['nama_item_pengajuan'];\n\t\t\t$url \t\t\t\t= $_POST['url'];\n\t\t\t$harga_satuan \t\t= $_POST['harga_satuan'];\n\t\t\t$merk \t\t\t\t= $_POST['merk'];\n\t\t\t$jumlah \t\t\t= $_POST['jumlah'];\n\t\t\t// $pimpinan\t\t\t= $_POST['pimpinan'];\n\n\t\t\t$baru = \"baru\"; //buat status pengajuan berstatus baru ketika baru dibuat\n\n\t\t\t$data_pengguna\t\t= array(\n\t\t\t\t'no_identitas'\t\t\t=> $no_identitas,\n\t\t\t\t'kode_barang'\t\t\t=> $kode_barang,\n\t\t\t\t'status_pengajuan'\t\t=> $baru,\n\t\t\t\t'tgl_item_pengajuan'\t=> $tgl_item_pengajuan,\n\t\t\t\t'nama_item_pengajuan'\t=> $nama_item_pengajuan,\n\t\t\t\t'url'\t\t\t\t\t=> $url,\n\t\t\t\t'harga_satuan'\t\t\t=> $harga_satuan,\n\t\t\t\t'merk'\t\t\t\t\t=> $merk,\n\t\t\t\t'jumlah'\t\t\t\t=> $jumlah,\n\t\t\t\t'file_gambar' \t\t\t=> $upload['file']['file_name']\n\t\t\t\t// 'pimpinan'\t\t\t\t=> $pimpinan\n\n\t\t\t);\n\t\t\tif($upload['result'] == \"success\"){ // Jika proses upload sukses\n\t\t\t\t$this->Staf_sarprasM->insert_pengajuan_barang($data_pengguna); // untuk memasukkan data ke tabel item_pengajuan\n\t\t\t\t$this->session->set_flashdata('sukses','Data Barang berhasil ditambahkan');\n\t\t\t\tredirect('Staf_sarprasC/ajukan_barang');//redirect ke halaman pengajuan barang\n\t\t\t}else{ // Jika proses upload gagal\n\t\t\t\t$data['message'] = $upload['error']; // Ambil pesan error uploadnya untuk dikirim ke file form dan ditampilkan\n\t\t\t\t$this->session->set_flashdata('error','Data Pengajuan Kegiatan anda tidak berhasil ditambahkan 2');\n\t\t\t\tredirect('Staf_sarprasC/ajukan_barang');//redirect ke halaman pengajuan barang\n\t\t\t}\n\n\t\t}\n\n\t}",
"public function post_tambah_ajukan_barang(){\n\t\t$this->form_validation->set_rules('no_identitas', 'No Identitas','required');\n\t\t$this->form_validation->set_rules('kode_barang', 'Nama Barang','required');\n\t\t$this->form_validation->set_rules('tgl_item_pengajuan', 'Tanggal Item Pengajuan','required');\n\t\t$this->form_validation->set_rules('nama_item_pengajuan', 'Nama Item Pengajuan','required');\n\t\t$this->form_validation->set_rules('url', 'URL','required');\n\t\t$this->form_validation->set_rules('harga_satuan', 'Harga Satuan','required');\n\t\t$this->form_validation->set_rules('merk', 'Merk','required');\n\t\t$this->form_validation->set_rules('jumlah', 'Jumlah Barang','required');\n\t\t// $this->form_validation->set_rules('pimpinan', 'Pimpinan','required');\n\t\tif($this->form_validation->run() == FALSE)\n\t\t{\n\t\t\t$this->session->set_flashdata('error','Data Pengajuan Kegiatan anda tidak berhasil ditambahkan 1');\n\t\t\tredirect('Staf_sarprasC/ajukan_barang') ;\n\t\t\t//redirect ke halaman pengajuan barang\n\t\t}else{\n\t\t\t$upload = $this->Staf_sarprasM->upload(); // lakukan upload file dengan memanggil function upload yang ada di Staf_sarprasM.php\n\t\t\t$no_identitas \t\t= $_POST['no_identitas'];\n\t\t\t$kode_barang \t\t= $_POST['kode_barang'];\n\t\t\t$tgl_item_pengajuan = $_POST['tgl_item_pengajuan'];\n\t\t\t$nama_item_pengajuan= $_POST['nama_item_pengajuan'];\n\t\t\t$url \t\t\t\t= $_POST['url'];\n\t\t\t$harga_satuan \t\t= $_POST['harga_satuan'];\n\t\t\t$merk \t\t\t\t= $_POST['merk'];\n\t\t\t$jumlah \t\t\t= $_POST['jumlah'];\n\t\t\t// $pimpinan\t\t\t= $_POST['pimpinan'];\n\n\t\t\t$baru = \"baru\"; //buat status pengajuan berstatus baru ketika baru dibuat\n\n\t\t\t$data_pengguna\t\t= array(\n\t\t\t\t'no_identitas'\t\t\t=> $no_identitas,\n\t\t\t\t'kode_barang'\t\t\t=> $kode_barang,\n\t\t\t\t'status_pengajuan'\t\t=> $baru,\n\t\t\t\t'tgl_item_pengajuan'\t=> $tgl_item_pengajuan,\n\t\t\t\t'nama_item_pengajuan'\t=> $nama_item_pengajuan,\n\t\t\t\t'url'\t\t\t\t\t=> $url,\n\t\t\t\t'harga_satuan'\t\t\t=> $harga_satuan,\n\t\t\t\t'merk'\t\t\t\t\t=> $merk,\n\t\t\t\t'jumlah'\t\t\t\t=> $jumlah,\n\t\t\t\t'file_gambar' \t\t\t=> $upload['file']['file_name']\n\t\t\t\t// 'pimpinan'\t\t\t\t=> $pimpinan\n\n\t\t\t);\n\t\t\tif($upload['result'] == \"success\"){ // Jika proses upload sukses\n\t\t\t\t$this->Staf_sarprasM->insert_pengajuan_barang($data_pengguna); // untuk memasukkan data ke tabel item_pengajuan\n\t\t\t\t$this->session->set_flashdata('sukses','Data Barang berhasil ditambahkan');\n\t\t\t\tredirect('Staf_sarprasC/ajukan_barang');//redirect ke halaman pengajuan barang\n\t\t\t}else{ // Jika proses upload gagal\n\t\t\t\t$data['message'] = $upload['error']; // Ambil pesan error uploadnya untuk dikirim ke file form dan ditampilkan\n\t\t\t\t$this->session->set_flashdata('error','Data Pengajuan Kegiatan anda tidak berhasil ditambahkan 2');\n\t\t\t\tredirect('Staf_sarprasC/ajukan_barang');//redirect ke halaman pengajuan barang\n\t\t\t}\n\n\t\t}\n\n\t}",
"function kujian_tambah(){\n $data['title'] = \"Tambah Kod Ujian\"; \n $data['_kodUjian']['kodUjian'] = $this->input->post('kodUjian');\n $data['_kodUjian']['perihalUjian'] = $this->input->post('perihalUjian'); \n $data['_kodUjian']['keterangan1'] = $this->input->post('keterangan1'); \n $data['_kodUjian']['keterangan2'] = $this->input->post('keterangan2');// Dropdown List\n //form validation\n $this->form_validation->set_rules('kodUjian','Kod Ujian','required|max_length[5]');\n $this->form_validation->set_rules('perihalUjian','Perihal Ujian','required');\n $this->form_validation->set_rules('keterangan1','keterangan 1','required');\n $this->form_validation->set_rules('keterangan1','keterangan 2','required');\n if($this->form_validation->run() == true){\n $insert_id = $this->Tbl_kodujian_model->save($data['_kodUjian']);\n if($insert_id =='true') {\n if($this->input->is_ajax_request()){\n echo \"Rekod Berjaya Disimpan!\";\n }else{\n flashMsg('Rekod Berjaya Disimpan!','success');\n redirect('maintenance/senarai_kujian');\n }//end if\n } else {\n echo \"Kod Rekod Sudah Wujud!\";\n }//end if \n } else{\n echo \"Rekod Tidak Berjaya Disimpan!\";\n }//end if \n // untuk table tbl_users\n if(!$this->input->is_ajax_request()){$this->_render_page($data);}\n }",
"public function formEdit()\n\t{\n\t\t//$nomor = $this->uri->segment(4);\n\t\t$nomor = $this->input->post('nomor');\n\t\t$data = $this->model->getDataFormEdit($nomor);\n\t\t\n\t\t$data_ruang = $this->model->getRuang();\n\t\tforeach ($data_ruang as $k => $v) {\n\t\t\t$select_ruang[$v->kd_ruang] = $v->nm_ruang;\n\t\t}\n\n\t\t//set array komponen array bulan\n\t\t$array_bulan = array('1'=>'Januari', '2'=>'Februari', '3'=>'Maret', '4'=>'April', '5'=>'Mei', '6'=>'Juni', '7'=>'Juli',\n\t\t '8'=>'Agustus', '9'=>'September', '10'=>'Oktober', '11'=>'Nopember', '12'=>'Desember', );\n\n\t\t//set data variabel\n\t\tforeach ($data as $k => $v) {\n\t\t\t$event_id \t\t= $v->event_id;\n\t\t\t$nomor \t\t\t= $v->nomor;\n\t\t\t$nama_kegiatan \t= $v->event_name;\n\t\t\t$prodi \t\t\t= $v->prodi;\n\t\t\t$jml_peserta\t= $v->jml_peserta;\n\t\t\t$ruang \t\t\t= $v->kd_ruang;\n\t\t\t$nama_peminjam \t= $v->nama_peminjam;\n\t\t\t$id_peminjam \t= $v->id_peminjam;\n\t\t\t$no_telp \t\t= $v->no_telp;\n\t\t\t$email \t\t\t= $v->email;\n\n\t\t\t//manipulasi tanggal permohonan\n\t\t\t$hari_permohonan\t= $v->hari_permohonan;\n\t\t\t$day_permohonan\t\t= $v->day_permohonan;\n\t\t\t$bulan_permohonan\t= $array_bulan[$v->bulan_permohonan];\n\t\t\t$tahun_permohonan\t= $v->tahun_permohonan;\n\t\t\t$tgl_permohonan\t\t= $hari_permohonan.', '.$day_permohonan.' '.$bulan_permohonan.' '.$tahun_permohonan;\t\t\t\n\n\t\t\t//manipulasi tanggal kegiatan\n\t\t\t$d \t\t\t \t= date('D', strtotime($v->start_date));\n\t\t\t$jam_mulai \t \t= date('H', strtotime($v->start_date));\n\t\t\t$menit_mulai \t= date('i', strtotime($v->start_date));\n\t\t\t$jam_selesai \t= date('H', strtotime($v->end_date));\n\t\t\t$menit_selesai \t= date('i', strtotime($v->end_date));\n\t\t\t$hari \t\t\t= $v->hari;\n\t\t\t$tgl \t\t \t= $v->tgl;\n\t\t\t$bulan \t\t \t= $array_bulan[$v->bulan];\n\t\t\t$tahun\t\t \t= $v->tahun;\n\t\t\t$tgl_kegiatan \t= $hari.', '.$tgl.' '.$bulan.' '.$tahun;\n\t\t}\t\t\t\n\t\t\n\t\t//untuk ngisi komponen field form edit\n\t\t$array = array(\n\t\t\t'event_id' \t\t=> $event_id,\n\t\t\t'nomor' \t\t=> $nomor,\n\t\t\t'nama_kegiatan' => $nama_kegiatan,\n\t\t\t'prodi' \t\t=> $prodi,\n\t\t\t'jml_peserta'\t=> $jml_peserta,\n\t\t\t'nama_peminjam' => $nama_peminjam,\n\t\t\t'id_peminjam' \t=> $id_peminjam,\n\t\t\t'no_telp' \t\t=> $no_telp, \n\t\t\t'email' \t\t=> $email, \n\t\t\t'ruang' \t\t=> $ruang,\n\t\t\t'select_ruang' \t=> $select_ruang,\n\t\t\t'tgl_permohonan'=> $tgl_permohonan,\n\t\t\t'tgl_kegiatan' \t=> $tgl_kegiatan,\n\t\t\t'jam_mulai' \t=> $jam_mulai,\n\t\t\t'menit_mulai' \t=> $menit_mulai,\n\t\t\t'jam_selesai' \t=> $jam_selesai,\n\t\t\t'menit_selesai' => $menit_selesai\n\t\t);\n\n\t\t//print_r($array) ;\n\t\techo json_encode($array);\n\t}",
"function edit_aksi()\n\t\t{\n\t\t\t$data=array(\n\t\t\t\t'nama'=>$this->input->post('nama'),\n\t\t\t\t'nama'=>$this->input->post('nama'),\n\t\t\t\t'password'=>$this->input->post('password'),\n\t\t\t\t'alamat'=>$this->input->post('alamat'),\n\t\t\t\t'notelp'=>$this->input->post('notelp'),\n\t\t\t);\n\t\t\t$id_admin=$this->input->post('id_admin');\n\t\t\t$this->admin_model->edit_data($id_admin, $data);\n\t\t//untuk balik kehalaman admin\n\t\t\tredirect(site_url('admin'));\n\t\t}",
"function padanansj_tambah(){\n $data['title'] = \"Tambah Padanan Soalan Jawapan\"; \n $data['padanansj']['idSoalan'] = $this->input->post('idSoalan');\n $data['padanansj']['idJawapan'] = $this->input->post('idJawapan');\n //form validation\n $this->form_validation->set_rules('idSoalan','Soalan','required');\n $this->form_validation->set_rules('idJawapan','Jawapan','required');\n if($this->form_validation->run() == true){\n $insert_id = $this->Tbl_padanansj_model->save($data['padanansj']);\n if($insert_id > '0'){\n if($this->input->is_ajax_request()){\n echo \"Rekod Berjaya Disimpan!\";\n } else {\n flashMsg('Rekod Berjaya Disimpan!','success');\n redirect('maintenance/senarai_padanansj');\n }//end if\n } else{\n echo \"Kod Rekod Sudah Wujud!\";\n }//end if\n } else {\n echo \"Rekod Tidak Berjaya Disimpan!\";\n }//end if\n // untuk table tbl_users\n if(!$this->input->is_ajax_request()){$this->_render_page($data);}\n }",
"public function form_ubahsandi()\n {\n $data_title['title'] = 'Ubah Kata Sandi Saya';\n $data['admin'] = $this->db->get_where('admin', ['id_admin' =>\n $this->session->userdata('id_admin')])->row_array();\n $data['total_notif'] = $this->m_admin->jml_notif()->result();\n\n $detailhere = array('id_admin' => $this->session->userdata('id_admin'));\n $data_detail['detail_profil_saya'] = $this->m_admin->get_detail_profil_saya($detailhere, 'admin')->result();\n\n $this->load->view('header', $data_title);\n $this->load->view('admin/sidebar');\n $this->load->view('topbar', $data);\n $this->load->view('admin/ubahsandi', $data_detail);\n $this->load->view('footer');\n }",
"public function form_tessay()\n {\n $this->load->view('templates/guru_sidebar');\n $this->topbarGuru();\n $idjudultugas = $this->input->post('id_jTugas');\n $data['data_tEssay'] = $this->M_guru->get_tessay()->result();\n // $data['data_tEssay'] = $this->M_guru->getTugas()->result();\n $data['judul_tugas'] = $this->M_guru->get_judultugas($idjudultugas)->result();\n // $data['upload_data'] = $this->M_guru->\n // $this->image = $this->uploadtgas();\n $this->load->view('view_guru/V_formturaian', $data);\n $this->load->view('templates/user_footer');\n }",
"public function edit() {\n\t\t$this->form_validation->set_rules('jalur_masuk', 'Jalur Masuk', 'trim|required');\n\t\t$this->form_validation->set_rules('beasiswa', 'Beasiswa', 'trim|required');\n\t\t$this->form_validation->set_rules('email', 'Email', 'trim|required|valid_email');\n\t\t$this->form_validation->set_rules('nohp', 'Nomor HP', 'trim|required');\n\t\t$this->form_validation->set_rules('sd', 'SD', 'trim|required');\n\t\t$this->form_validation->set_rules('smp', 'SMP', 'trim|required');\n\t\t$this->form_validation->set_rules('sma', 'SMA', 'trim|required');\t\t\n\t\t\n\t\t//* Check if form valid *//\n\t\tif ($this->form_validation->run() == TRUE) {\t\t\n\t\n\t\t\t//* Declare var $database to be input at the database. Sanitize the input post *//\n\t\t\t$database['nim']\t\t\t= $this->input->post('nim');\n\t\t\t$database['jalur_masuk']\t= $this->input->post('jalur_masuk');\n\t\t\t$database['beasiswa']\t\t= $this->input->post('beasiswa');\n\t\t\t$database['tempat_lahir']\t= htmlspecialchars($this->input->post('tempat_lahir'));\n\t\t\t$database['email']\t\t\t= htmlspecialchars($this->input->post('email'));\n\t\t\t$database['nohp']\t\t\t= htmlspecialchars($this->input->post('nohp'));\n\t\t\t$database['status_nikah']\t= $this->input->post('status_nikah');\n\t\t\t$database['sd']\t\t\t\t= htmlspecialchars($this->input->post('sd'));\n\t\t\t$database['smp']\t\t\t= htmlspecialchars($this->input->post('smp'));\n\t\t\t$database['sma']\t\t\t= htmlspecialchars($this->input->post('sma'));\n\n\t\t\t$database['alamat']\t\t\t= htmlspecialchars($this->input->post('alamat'));\n\t\t\t$database['alamat_ortu']\t= htmlspecialchars($this->input->post('alamat_ortu'));\n\t\t\t$database['alamat_manado']\t= htmlspecialchars($this->input->post('alamat_manado'));\n\t\t\t$database['status_rumah']\t= $this->input->post('status_rumah');\n\t\t\t$database['jarak']\t\t\t= htmlspecialchars(str_replace(\",\",\".\",$this->input->post('jarak')));\n\t\t\t$database['transportasi']\t= $this->input->post('transportasi');\n\n\t\t\t$database['anak_ke']\t\t\t= htmlspecialchars($this->input->post('anak_ke'));\n\t\t\t$database['bersaudara']\t\t\t= htmlspecialchars($this->input->post('bersaudara'));\n\t\t\t$database['nama_ayah']\t\t\t= htmlspecialchars($this->input->post('nama_ayah'));\n\t\t\t$database['pekerjaan_ayah']\t\t= htmlspecialchars($this->input->post('pekerjaan_ayah'));\n\t\t\t$database['pendidikan_ayah']\t= $this->input->post('pendidikan_ayah');\n\t\t\t$database['telp_ayah']\t\t\t= htmlspecialchars($this->input->post('telp_ayah'));\n\t\t\t$database['nama_ibu']\t\t\t= htmlspecialchars($this->input->post('nama_ibu'));\n\t\t\t$database['pekerjaan_ibu']\t\t= htmlspecialchars($this->input->post('pekerjaan_ibu'));\n\t\t\t$database['pendidikan_ibu']\t\t= $this->input->post('pendidikan_ibu');\n\t\t\t$database['telp_ibu']\t\t\t= htmlspecialchars($this->input->post('telp_ibu'));\n\t\t\t$database['nama_wali']\t\t\t= htmlspecialchars($this->input->post('nama_wali'));\n\t\t\t$database['pekerjaan_wali']\t\t= htmlspecialchars($this->input->post('pekerjaan_wali'));\n\t\t\t$database['pendidikan_wali']\t= $this->input->post('pendidikan_wali');\n\t\t\t$database['telp_wali']\t\t\t= htmlspecialchars($this->input->post('telp_wali'));\n\n\t\t\t$database['facebook']\t\t= htmlspecialchars($this->input->post('facebook'));\n\t\t\t$database['twitter']\t\t= htmlspecialchars($this->input->post('twitter'));\n\t\t\t$database['website']\t\t= htmlspecialchars($this->input->post('website'));\n\t\t\t$database['hobi']\t\t\t= htmlspecialchars($this->input->post('hobi'));\n\t\t\t$database['cita_cita']\t\t= htmlspecialchars($this->input->post('cita_cita'));\n\t\t\t$database['organisasi']\t\t= htmlspecialchars($this->input->post('organisasi'));\n\n\t\t\t//* Add var $database to be input in the database*//\n\t\t\tif ($this->Tabel_mahasiswa->update($database)) {\n\t\t\t\t\n\t\t\t\t$this->session->set_flashdata('type', 'success');\n\t\t\t\t$this->session->set_flashdata('message', 'Berhasil diupdate!');\n\n\t\t\t} else {\n\t\t\t\n\t\t\t\t$this->session->set_flashdata('type', 'danger');\n\t\t\t\t$this->session->set_flashdata('message', 'Gagal diupdate!');\n\t\t\t}\n\n\t\t} else {\n\n\t\t\t$this->session->set_flashdata('type', 'warning');\n\t\t\t$this->session->set_flashdata('message', validation_errors('Form tidak lengkap! '));\n\t\t}\n\n\t\tredirect(site_url('mahasiswa/profile'));\n\n\t}"
] | [
"0.7535374",
"0.7308943",
"0.70576596",
"0.7010059",
"0.6979268",
"0.69768935",
"0.6884088",
"0.6872114",
"0.68562376",
"0.6846426",
"0.68347794",
"0.68319315",
"0.681185",
"0.6793936",
"0.6776848",
"0.67662126",
"0.6761243",
"0.67574877",
"0.675109",
"0.671165",
"0.6701617",
"0.66802293",
"0.66802293",
"0.66720563",
"0.66647387",
"0.6663269",
"0.66524065",
"0.66401273",
"0.6639341",
"0.6633098"
] | 0.7322359 | 1 |
/ Single line block comment with $this | public function methodThatHasThisInBlockComments()
{
/**
* Block Comments too should ignore $this (this'll be hard)
*/
/*
Another block comment without extra stars should ignore $this;
*/
return;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function methodThatHasThisInSingleLineComments()\n {\n //$this is not used\n //even on this line $this is not used\n #Comments with Hashes as well ignore $this\n //When it is at the end as well it'll fail $this\n return;\n }",
"private function commentBlock() {\n $comment = '';\n $this->matches('<!');\n while ($this->look() !== '>' && $this->pos < $this->len) {\n if ($this->lookMatches('--')) {\n $comment .= $this->comment();\n } else {\n $this->matchAny(); // Ignore characters outside comment\n }\n }\n $this->match('>');\n $this->fireComment($comment);\n }",
"public function Comment(){\r\n\t\t\r\n\t}",
"public function comment ($comment) {}",
"function another_method_with_comment()\n {\n // A test comment.\n // Another test comment.\n }",
"public function methodWithDocblocks()\n {\n\n }",
"public function render()\n {\n $comment = '/**' . PHP_EOL;\n\n if (strpos($this->comment, PHP_EOL) !== false) {\n $commentAry = explode(PHP_EOL, $this->comment);\n } else {\n $commentAry = (strlen($this->comment) > 80) ?\n explode(PHP_EOL, wordwrap($this->comment, 80, PHP_EOL)) : [$this->comment];\n }\n\n foreach ($commentAry as $line) {\n $comment .= ' * ' . $line . PHP_EOL;\n }\n\n $comment .= ' */' . PHP_EOL;\n\n return $comment;\n }",
"public function __toString()\n\t{\n\t\t$str = '';\n\t\tforeach ($this->blocks as $name => $block)\n\t\t{\n\t\t\t$str .= \"<!-- BEGIN: $name -->\\n\" . $block->__toString() . \"<!-- END: $name -->\\n\";\n\t\t}\n\t\treturn $str;\n\t}",
"public function setLeadingComments($var) {}",
"public function open():string\n\t{\n\t\treturn $this->htmlComment ?\n\t\t '<!--'.str_replace('-->','--'.chr(0xC).'>',substr($this->line->getContent(),1)):\n\t\t '<?php /* '.substr($this->line->getContent(),2);\n\t}",
"public function comment() : string\n {\n return $this->info()->commentString;\n }",
"public function block($name = null)\n {\n if ($name === null) {\n $this->addBlock($this->currentBlock, ob_get_clean());\n $this->currentBlock = '';\n ob_clean();\n } else {\n $this->currentBlock = $name;\n ob_start();\n }\n }",
"function commentStart($comment, $args, $depth) {\n $GLOBALS['comment'] = $comment;\n?>\n <li>\n <div class=\"comment\">\n <div class=\"comment-media\">\n <?php if ($args['avatar_size'] != 0) { ?>\n <div class=\"comment-media-img\">\n <?php echo get_avatar( $comment, $args['avatar_size'] ); ?>\n </div>\n <?php } ?>\n <div class=\"comment-media-content\">\n <div class=\"comment-media-content-hd\">\n\n\n </div>\n <div class=\"comment-media-content-meta\">\n <?php printf( __('%s'), get_comment_date('F d Y')); ?>\n </div>\n <div class=\"comment-media-content-bd\">\n <?php comment_text(); ?>\n </div>\n </div>\n </div>\n </div>\n </li>\n<?php\n}",
"function _generate_block()\n\t{\n\t\t\t$sRules = $this->_assemble_rules( TRUE );\n\t\n\t\t$sBlock = $this->_sSelector.' { '.$sRules.' }';\n\t\n\t\treturn $sBlock;\n\t}",
"public function __toString()\n {\n $str = '/**' . $this->newLineStr .\n parent::__toString() . $this->_getIndentationString() . ' */';\n return $str;\n }",
"private function commentBlock($text, $char = ' ')\n {\n $text = wordwrap($text, PO_MAX_LINE_LEN - 3);\n return self::prependEachLine($text, '#' . $char . ' ');\n }",
"function method_with_comment()\n {\n /**\n * Invalid doc comment location.\n */\n }",
"function yy_r47(){ $this->_retvalue = yy('Comment', $this->yystack[$this->yyidx + 0]->minor); }",
"function myFunc() {\n sdfdf\n // Comment from jack\n //Additional comment from Richard\n}",
"function doCodeBlocks( $text ) {\n $text = preg_replace_callback('{\n (?:\\n|\\A)\n # 1: Opening marker\n (\n `{3,} # Marker: three tilde or more.\n )\n [ ]* # Optional whitspace following marker.\n # 2: Optional language\n (\n [a-zA-Z0-9_-]+ # Alphanumeric with hyphen and underscore allowed\n )?\n [ ]* \\n # Optional whitespace and mandatory newline following marker and optional language.\n\n # 2: Content\n (\n (?>\n (?!\\1 [ ]* \\n) # Not a closing marker.\n .*\\n+\n )+\n )\n\n # Closing marker.\n \\1 [ ]* \\n\n }xm',\n array( $this, '_doCodeBlocks_callback' ), $text);\n\n return parent::doCodeBlocks( $text );\n }",
"function __construct() { ?>\n <style>ol.comment-list {padding-left: 0;}</style>\n <ul class=\"media-list\">\n <?php }",
"function printCodeblock($number='',$titlelink='') {\n\t$codeblock = getCodeblock($number,$titlelink);\n\t$context = get_context();\n\ttry {\n\t\t@eval(\"?>\".$codeblock);\n\t} catch (Exception $e) {\n\t\tdebugLog('printCodeblock('.$number.','.$titlelink.') exception: '.$e->getMessage());\n\t}\n\tset_context($context);\n}",
"function zilla_commentform_before() {\n echo '<div class=\"block\">';\n}",
"public function comment($cdata);",
"public function comment($comment);",
"function comment_function (){\n\n}",
"function COXYMallComments() {\r\n\t}",
"public function setTrailingComments($var) {}",
"public function comment() { return $this->_m_comment; }",
"function Studiorum_Side_Comments()\n\t{\n\n\t\t$Studiorum_Side_Comments = new Studiorum_Side_Comments;\n\n\t}"
] | [
"0.7538781",
"0.7142185",
"0.6711912",
"0.63311344",
"0.62873363",
"0.6237572",
"0.6150243",
"0.6070456",
"0.5946928",
"0.59325886",
"0.5930985",
"0.5889006",
"0.5862347",
"0.5848583",
"0.5822577",
"0.57801926",
"0.56993717",
"0.5697423",
"0.5661495",
"0.56434447",
"0.5631525",
"0.5626259",
"0.5619575",
"0.5615694",
"0.5606586",
"0.56009156",
"0.55942154",
"0.55813026",
"0.5557531",
"0.553709"
] | 0.75031364 | 1 |
Returns WHRE SQL for field operation | public function getWhereSQL()
{
$operation = trim($this->field_row->operation);
if (strlen($operation) == 0) {
return "";
}
$crit = $this->field_row->criteria;
if ($crit == "[ME]")
{
$crit = Auth::user()->id;
}
if ($this->field_row->sys_name == "bool") {
$crit = ($this->field_row->criteria == "'" . trans('fields.yes') . "'") ? 1 : 0;
}
return " AND " . $this->field_where_name . " " . $operation . " " . $crit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function sql(){\r\n return $this->sql->replace('@fields', $this->selectFields)->toString();\r\n }",
"public abstract function field($sql);",
"public function fieldSql(){\n\t\tif($this->field && $this->field->getOption(\"multiselect\"))\n\t\t\treturn \"TEXT NULL\";\t\t\n\t\telse\n\t\t\treturn parent::fieldSql ();\n\t}",
"private function setFields()\n {\n $sql = \" \";\n\n foreach (array_keys($this->data) as $key) {\n $sql .= \" `{$key}` = ? , \";\n }\n\n // remove the last \"[ Comma ]\"\n $sql = rtrim($sql, ' , ');\n \n if ($this->wheres) {\n foreach ($this->wheres as $key => $value) {\n if ($key == 0) {\n $sql .= \" WHERE {$value} \";\n } else {\n $sql .= \" AND {$value} \";\n }\n }\n }\n\n return $sql;\n }",
"public function get_as_sql() {\n\t\tif ( count( $this->filters ) > 0 ) {\n\t\t\treturn 'WHERE ' . implode( ' AND ', $this->filters );\n\t\t}\n\n\t\treturn '';\n\t}",
"public function getFieldQuery() {\n\t\tif ($this->_fieldName) {\n\t\t\t$field = $this->_fieldName;\n\t\t\tif ($isTranslated = $field[0] == '*')\n\t\t\t\t$field = substr($field, 1);\n\t\t\t$p0 = strpos($field, '!');\n\t\t\tif ($p0 !== false) {\n\t\t\t\t$expression = $field;\n\t\t\t\t// Extract the field name\n\t\t\t\t$pre = substr($field, 0, $p0);\n\t\t\t\t$field = substr($field, $p0+1);\n\t\t\t\t$p1 = strpos($field, '!')-1;\n\t\t\t\tif ($p1 !== false) {\n\t\t\t\t\t$post = substr($field, $p1+2);\n\t\t\t\t\t$field = substr($field, 0, $p1+1);\n\t\t\t\t}\n\t\t\t} \n\t\t\treturn $pre . ($isTranslated ? 'translation' : 'item') . '.`' .\n\t\t\t\t$field . '`' . $post;\n\t\t} else\n\t\t\treturn null; \n\t}",
"private function _getSQL() {\n\t\t$str = '';\n\n\t\t// Inicia la construccion de la consulta\n\t\tswitch ($this->_operation) {\n\t\t\tcase 'SELECT':\n\t\t\tcase 'SELECT DISTINCT':\n\t\t\t\t$str = $this->_operation . ' ';\n\t\t\t\t$str .= $this->_getCols();\n\t\t\t\t$str .= $this->_getFrom();\n\t\t\t\t$str .= $this->_getWhere();\n\t\t\t\t$str .= $this->_getGroup();\n\t\t\t\t$str .= $this->_getHaving();\n\t\t\t\t$str .= $this->_getOrder();\n\t\t\t\t$str .= $this->_getLimit();\n\t\t\t\tbreak;\n\n\t\t\tcase 'INSERT':\n\t\t\t\t$str = 'INSERT INTO ' . $this->_table . ' '. $this->_getCols();\n\t\t\t\tbreak;\n\n\t\t\tcase 'INSERT IGNORE':\n\t\t\t\t$str = 'INSERT IGNORE INTO ' . $this->_table . ' '. $this->_getCols();\n\t\t\t\tbreak;\n\n\t\t\tcase 'REPLACE':\n\t\t\t\t$str = 'REPLACE INTO ' . $this->_table . ' '. $this->_getCols();\n\t\t\t\tbreak;\n\n\t\t\tcase 'UPDATE':\n\t\t\t\t$str = 'UPDATE ' . $this->_table . ' SET '. $this->_getCols();\n\t\t\t\t$str .= $this->_getWhere();\n\t\t\t\tbreak;\n\n\t\t\tcase 'DELETE':\n\t\t\t\t$str = 'DELETE FROM ' . $this->_table;\n\t\t\t\t$str .= $this->_getWhere();\n\t\t\t\tbreak;\n\n\t\t\tcase 'QUERY':\n\t\t\t\t$str = $this->_query;\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\treturn '';\n\t\t\t\tbreak;\n\t\t}\n\t\treturn $str;\n\t}",
"private function __sql() {\n return UtilMySql::developSql($this->__sql, $this->getDatabaseSchema(), true, true);\n }",
"public function getSQL() :string\n {\n return sprintf($this->selectInstruction, implode('', [\n (!empty($this->selectRule) ? ' ' . $this->selectRule : '') .\n ($this->highPriority == true ? ' HIGH_PRIORITY' : '') .\n ($this->straightJoin == true ? ' STRAIGHT_JOIN' : '') .\n (count($this->sizeResult) > 0 ? ' ' . implode(' ', $this->sizeResult) : '') .\n ($this->noCache == true ? ' SQL_NO_CACHE' : '') .\n ($this->sqlCalcFoundRows == true ? ' SQL_CALC_FOUND_ROWS' : '') .\n ' ' . implode(',', $this->select)\n ]), implode('', [\n ($this->tableAlias ? ' `' . $this->table . '` AS `' . $this->tableAlias . '`' : ' `' . $this->table . '`'),\n (count($this->join) > 0 ? ' ' . $this->mountJoin($this->join) : ''),\n (count($this->where) > 0 ? ' WHERE ' . $this->mountWhere($this->where) : ''),\n count($this->groupBy) > 0 ? $this->mountGroupBy($this->groupBy) : '',\n ($this->groupByWithRollup == true ? ' WITH ROLLUP' : ''),\n (is_object($this->having) > 0 ? ' ' . $this->mountHaving($this->having) : ''),\n (count($this->orderBy) > 0 ? ' ' . $this->mountOrderBy($this->orderBy) : ''),\n ($this->orderByWithRollup == true ? ' WITH ROLLUP' : ''),\n (!empty($this->limit) ? ' LIMIT ' . $this->limit : ''),\n (!empty($this->offset) ? ' OFFSET ' . $this->offset : '')\n ]));\n }",
"public function query() {\n $this->ensureMyTable();\n $field = \"$this->tableAlias.$this->realField\";\n\n $info = $this->operators();\n if (!empty($info[$this->operator]['method'])) {\n $this->{$info[$this->operator]['method']}($field);\n }\n }",
"public function get_sql();",
"function render() {\n $clause = ( !empty( $this->prefix ) ? \"{$this->prefix}.\" : \"\" ) . $this->column;\n if ( !empty( $this->function ) ) {\n $clause = sprintf( $this->function, $clause );\n }\n if ( in_array( strtoupper( $this->operator ), array( 'IS NULL', 'IS NOT NULL' ) ) ) {\n $clause .= ' ' . $this->operator;\n } else {\n if ( '' === ( $value = trim( $this->value ) ) ) {\n return '';\n }\n if ( !in_array( strtoupper( $this->operator ), array( 'IN', 'NOT IN' ) ) ) {\n if ( ( substr( $value, 0, 1 ) != '`' ) && ( substr( $value, -1 ) != '`' ) ) {\n $value = \"'$value'\";\n } elseif ( !preg_match( '/^[a-zA-Z0-9_\\.\\-`]*$/', $value ) ) {\n $value = '``';\n }\n }\n $clause .= \" {$this->operator} $value\";\n }\n return $clause;\n }",
"public function sql() : string\n {\n return $this->sql;\n }",
"public function sql();",
"public function getField(): string\n {\n return $this->getCommand()->getField().'*';\n }",
"public function sql()\r\n {\r\n return $this->sql;\r\n }",
"public function get_sql() {\n\t\treturn $this->_build_select();\n\t}",
"public function getSQL();",
"public function getSql() {\n return $this -> sql;\n }",
"function _create_filter_sql () {\n\t\t$OBJ = $this->_load_sub_module(\"articles_filter\");\n\t\treturn is_object($OBJ) ? $OBJ->_create_filter_sql() : \"\";\n\t}",
"function getSQL(){\n\t\t\treturn $this->sql;\n\t\t}",
"public function getSQL()\n {\n return $this->buildQuery()->getSQL();\n }",
"public static function getSql(): string\n {\n $fields = [];\n foreach (static::getDceFieldMappings() as $fieldName => $fieldType) {\n $fields[] = $fieldName . ' ' . $fieldType;\n }\n if (!empty($fields)) {\n return 'CREATE TABLE tt_content (' . PHP_EOL . implode(',' . PHP_EOL, $fields) . PHP_EOL . ');';\n }\n\n return '';\n }",
"function getSQL(){\n\t\t\treturn $this->createSQL();\n\t\t}",
"public function getSQL()\n\t {\n\t return $this->sql;\n\t }",
"public function _toSql(){\n return $this->fields_string;\n }",
"public function renderSQLDef()\n\t{\n\t\t$elems = array();\n\t\t$elems[] = $this->name;\n\t\t$elems[] = $this->SQLType() . (($this->maxlength) ? ('(' . $this->maxlength . ')') : '');\n\t\t$elems[] = ($this->nullable) ? 'DEFAULT NULL' : 'NOT NULL';\n\t\tif ($this->autoincrement) $elems[] = 'AUTO_INCREMENT';\n\t\tif ($this->primarykey) $elems[] = ', PRIMARY KEY(' . $this->name . ')';\n\t\treturn implode(' ', $elems);\n\t}",
"public function asWhere() : string\n {\n return empty($this->sql) ? '' : \" WHERE {$this->sql}\" ;\n }",
"private function getSQL()\n {\n $this->extendedLayout = true;\n return \"SELECT DISTINCT `resource_id`, `name` \" .\n \"FROM `resources_objects` \" .\n \"WHERE `name` LIKE :input \" .\n \"ORDER BY name ASC\";\n }",
"public function getSql() : string\n {\n return $this->_sql;\n }"
] | [
"0.6977063",
"0.6912452",
"0.6862365",
"0.6431099",
"0.6357784",
"0.63444656",
"0.61640674",
"0.60779595",
"0.6064881",
"0.60506314",
"0.60259026",
"0.6008886",
"0.5974887",
"0.5973826",
"0.59525067",
"0.59468204",
"0.5927232",
"0.5921263",
"0.59055537",
"0.5900139",
"0.58939826",
"0.5890817",
"0.5883718",
"0.58728576",
"0.5858564",
"0.5847284",
"0.583345",
"0.5830599",
"0.5828732",
"0.5818996"
] | 0.70108116 | 0 |
get middle elements in attraction wishlist | public function get_middleElements() {
session_start();
if (!empty($_GET['sess_id'])) {
$sess_id = $this->input->get('sess_id');
if (!empty($_SESSION[$sess_id])) {
$arr = $_SESSION[$sess_id];
$count = 0;
$ret = array('first' => '', 'last' => '');
foreach ($arr as $key) {
if ($count == 0) {
$ret['first'] = $key;
}
if ($count == count($arr) - 1) {
$ret['last'] = $key;
}
$count++;
}
$firstElement = $ret['first']['attr_id'];
$lastElement = $ret['last']['attr_id'];
$tempArray = $_SESSION[$sess_id];
unset($tempArray[$firstElement]);
unset($tempArray[$lastElement]);
echo json_encode($tempArray);
} else {
echo "No Session Data";
}
} else {
echo "false";
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function get_wish_list() {\n\n\t\t\t$wishlist_list = ! empty( $_SESSION['jet-wish-list'] ) ? $_SESSION['jet-wish-list'] : '';\n\t\t\t$save_for_logged_user = filter_var( jet_cw()->settings->get( 'save_user_wish_list' ), FILTER_VALIDATE_BOOLEAN );\n\n\t\t\tif ( is_user_logged_in() && $save_for_logged_user ) {\n\t\t\t\t$wishlist_list = get_user_meta( get_current_user_id(), 'jet_wish_list', true );\n\t\t\t}\n\n\t\t\tif ( ! empty( $wishlist_list ) ) {\n\t\t\t\t$wishlist_list = explode( ':', $wishlist_list );\n\t\t\t} else {\n\t\t\t\t$wishlist_list = array();\n\t\t\t}\n\n\t\t\tforeach ( $wishlist_list as $key => $value ) {\n\t\t\t\t$product = get_post( $value );\n\n\t\t\t\tif ( ! empty( $product ) && 'publish' !== get_post_status( $product ) ) {\n\t\t\t\t\tarray_splice( $wishlist_list, $key, 1 );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $wishlist_list;\n\n\t\t}",
"protected function _getWishlist()\n {\n if (!Mage::helper('cminds_multiwishlist')->isEnabled()) {\n return parent::_getWishlist();\n }\n\n $wishlistId = Mage::registry('wishlist_id');\n $wishlist = Mage::getModel('cminds_multiwishlist/multiwishlist')->load($wishlistId);\n\n return $wishlist;\n }",
"public function getKeywordsToShow()\n {\n preg_match_all(\"/#(?P<kw>[^#]+)#/\", $this->full_text, $kws);\n if (! array_key_exists('kw', $kws)) {\n return [];\n }\n $kws = $kws['kw'];\n foreach ($kws as $k => $v) {\n $kwId = Keyword::find()->where(['description' => \\usv\\yii2helper\\PHPHelper::dbNormalizeString($v)])->one()->id;\n $kws[$k] = ['id' => $kwId, 'description' => $v];\n }\n return $kws;\n }",
"public function getWishlists()\n {\n return $this->hasMany(Wishlist::className(), ['product_attribute_value_id' => 'id']);\n }",
"protected function getWishlistItems()\n {\n $block = $this->layout->createBlock(\"WebbyTroops\\WishlistAPI\\Block\\Share\\Email\\Items\");\n return $block->setArea(\\Magento\\Framework\\App\\Area::AREA_FRONTEND)\n ->setIsSecureMode(true)\n ->toHtml();\n }",
"public function getWishlistsByUser();",
"public function getEverrewardList(){\n return $this->_get(3);\n }",
"public function getAppliesTo()\n\t{\n\t\t$coveredElements = array(\n\t\t\t'th'\n\t\t);\n\n\t\treturn $coveredElements;\n\t}",
"public function getWishlist()\n {\n $resp = $this->validateRequest();\n \n if($resp=='401')\n {\n $resp_arr = array('success'=>true,'error'=>'authentication key is missing','data'=>null);\n }\n else\n {\n if(empty($_REQUEST['user_id']))\n {\n $resp_arr = array('success'=>true,'error'=>'required parameter is missing','data'=>null);\n }\n else\n {\n $user_id = $_REQUEST['user_id'];\n \n $whishlist = $this->Whislist->find('all', array('conditions' => array('user_id' => $user_id, 'status' => 'Active')));\n \n if(empty($whishlist))\n {\n $resp_arr = array('success'=>true,'error'=>'whishlist is empty','data'=>null);\n }\n else\n {\n $i = 0;\n \n foreach($whishlist as $item)\n {\n $product = $this->Product->find('first', array('conditions' => array('product_id' => $item['Whislist']['product_id'])));\n $category = $this->Category->find('first', array('conditions' => array('category_id' => $product['Product']['category_id'])));\n $product_code = $category['Category']['category_code'].$product['Product']['product_code'];\n $productid = $product['Product']['product_id'];\n \n if(!empty($product['Product']['stone_color_id']))\n {\n $colors = $this->Color->find('first', array('conditions' => array('color_id' => $product['Product']['stone_color_id'])));\n $customid = $product['Product']['metal_purity'].\"K\".$colors['Color']['clarity'].\"-\".$colors['Color']['color'];\n $gcolor = $product['Product']['metal_color'];\n $product_code .= \" - \".str_replace(\"-\",\"\",$customid);\n }\n else\n {\n $customid = $product['Product']['metal_purity'].\"K\";\n $gcolor = $product['Product']['metal_color'];\n }\n \n // echo $customid;\n // exit;\n \n //gold\n $propurity = $this->Productmetal->find('first', array('conditions' => array('product_id' => $productid, 'type' => 'Purity')));\n $material = explode(\"K\", $customid);\n \n $size_data = $this->Size->find('first', array('conditions' => array('goldpurity' => $material[0], 'category_id' => $category['Category']['category_id'], 'status' => 'Active')));\n \n if(!empty($size_data))\n {\n $size = 9;\n }\n \n if ($product['Product']['stone'] == 'Yes') \n {\n $diamond = $this->Productdiamond->find('all', array('conditions' => array('product_id' => $productid)));\n $this->set('diamonddetails', $diamond);\n }\n \n if ($product['Product']['gemstone'] == 'Yes') \n {\n $gemstone = $this->Productgemstone->find('all', array('conditions' => array('product_id' => $productid)));\n $this->set('sgemstone', $gemstone);\n }\n \n if (!empty($size)) \n {\n $product_wt = $product['Product']['metal_weight'];\n if ($category['Category']['category'] != \"Bangles\") {\n $t = '1';\n } else {\n $t = '0.125';\n }\n\n $minsize = $this->Productmetal->find('first', array('fields' => array('MIN(value) as minsizes'), 'conditions' => array('product_id' => $productid, 'type' => 'Size')));\n $minsizenew = $minsize[0]['minsizes'];\n if ($size == $minsizenew) {\n $add_wt = 0;\n } else {\n $nsize = $this->Size->find('first', array('conditions' => array('size_value BETWEEN ' . ($minsizenew + $t) . ' AND ' . $size, 'goldpurity' => $material[0], 'category_id' => $category['Category']['category_id'], 'status' => 'Active'), 'fields' => array('SUM(gold_diff) AS tot_wt')));\n\n $add_wt = $nsize[0]['tot_wt'];\n }\n $tot_weight = $product_wt + $add_wt;\n } \n else \n {\n $tot_weight = $product['Product']['metal_weight'];\n }\n\n if (!empty($gcolor)) {\n $mcolor = $this->Metalcolor->find('first', array('conditions' => array('metalcolor' => $gcolor, 'status' => 'Active')));\n //modified by prakash\n $goldprice = $this->Price->find('first', array('conditions' => array('metalcolor_id' => $mcolor['Metalcolor']['metalcolor_id'], 'metal_id' => '1', 'metal_fineness' => $product['Product']['metal_fineness'])));\n // echo $goldprice['Price']['price'];\n // exit;\n $gprice = !empty($goldprice['Price']['price']) ? $goldprice['Price']['price'] : 0;\n\n $gold_price = round(round($gprice * ($material[0] / 24)) * $tot_weight);\n // $gold_price = round(round($goldprice['Price']['price'] * ($material[0] / 24)) * $tot_weight);\n $purity = $material[0];\n $making_charge = $product['Product']['making_charge'];\n } else {\n $gold_price = '0';\n $making_charge = '0';\n $purity = '';\n }\n\n //diamond\n if (!empty($material[1])) {\n list($clarity, $color) = explode(\"-\", $material[1]);\n $stone_price = '0';\n $diamond_wt = '0';\n $stone_details = $this->Productdiamond->find('first', array('conditions' => array('clarity' => $clarity, 'color' => $color, 'product_id' => $productid), 'fields' => array('SUM(stone_weight) AS sweight', 'SUM(noofdiamonds) AS stone_nos')));\n $clarities = $this->Clarity->find('first', array('conditions' => array('clarity' => $clarity)));\n $colors = $this->Color->find('first', array('conditions' => array('color' => $color, 'clarity' => $clarity)));\n $stoneprice = $this->Price->find('first', array('conditions' => array('clarity_id' => $clarities['Clarity']['clarity_id'], 'color_id' => $colors['Color']['color_id'])));\n $stone_price = round($stoneprice['Price']['price'] * $stone_details['0']['sweight'], 0, PHP_ROUND_HALF_DOWN);\n $diamond_wt = $stone_details['0']['sweight'] / 5;\n $all_stone_details = $this->Productdiamond->find('all', array('conditions' => array('clarity' => $clarity, 'color' => $color, 'product_id' => $productid)));\n\n } else {\n $clarity = $color = '';\n $stone_price = '0';\n $diamond_wt = '0';\n }\n\n //gemstone\n if (!empty($gemstone)) {\n $gemprice = 0;\n $gemstone_wt = 0;\n foreach ($gemstone as $gemstones) {\n $stone = $this->Gemstone->find('first', array('conditions' => array('stone' => $gemstones['Productgemstone']['gemstone'])));\n $stone_shape = $this->Shape->find('first', array('conditions' => array('shape' => $gemstones['Productgemstone']['shape'])));\n $prices = $this->Price->find('first', array('conditions' => array('gemstone_id' => $stone['Gemstone']['gemstone_id'], 'gemstoneshape' => $stone_shape['Shape']['shape_id'])));\n $gemprice+=round($prices['Price']['price'] * $gemstones['Productgemstone']['stone_weight']);\n $gemstone_wt+=$gemstones['Productgemstone']['stone_weight'] / 5;\n }\n } else {\n $gemprice = '0';\n $gemstone_wt = '';\n }\n\n $sub_total = $gold_price + $stone_price + $gemprice;\n $making = 0;\n //addded by prakash\n if ($product['Product']['making_charge_calc'] == 'PER') {\n $making = round($gold_price * ($making_charge / 100), 0, PHP_ROUND_HALF_DOWN);\n } elseif ($product['Product']['making_charge_calc'] == 'INR') {\n $making = $making_charge;\n }\n $making = floatval($making);\n $vat = round(($sub_total + $making) * ($product['Product']['vat_cst'] / 100), 0, PHP_ROUND_HALF_DOWN);\n $total = $sub_total + $making + $vat;\n\n $total_weight = $tot_weight + $diamond_wt + $gemstone_wt;\n // echo $gold_price.\" gold \".$stone_price.\" diamond \".$sub_total.\" subtotal \".$making.\" making \".$vat.\" vat \";\n // echo $gold_price.\" G \".$stone_price.\" S \".$gemprice$total.\" G \".$total_weight.\" t \";\n // echo \"<pre>\";\n // print_r($product);\n // print_r($category);\n // exit;\n \n\n \n \n if(!empty($product))\n {\n $whish_list['item'][$i]['product_id'] = $product['Product']['product_id'];\n $whish_list['item'][$i]['product_name'] = $product['Product']['product_name'];\n $whish_list['item'][$i]['product_code'] = $product_code;\n $whish_list['item'][$i]['product_price'] = $total;\n $whish_list['item'][$i]['custom_id'] = $item['Whislist']['custom_id'];\n $whish_list['item'][$i]['gcolor'] = $item['Whislist']['gcolor'];\n $whish_list['item'][$i]['size'] = $item['Whislist']['size'];\n }\n \n $product_image = $this->Productimage->find('first', array('conditions' => array('product_id' => $item['Whislist']['product_id'])));\n \n if(!empty($product_image))\n {\n $whish_list['item'][$i]['product_image'] = 'http://shagunn.in/img/product/small/'.$product_image['Productimage']['imagename'];\n }\n \n $i++;\n }\n \n $resp_arr = array('success'=>true,'error'=>null,'data'=>$whish_list);\n }\n }\n }\n \n $this->apiResponse($resp_arr);\n }",
"public function getIngredientsToDishes() {\n return $this->dishesIngredients;\n }",
"public function getSiblings();",
"public function getSiblings();",
"public function getSiblings();",
"function show_ingredients($atts, $content = null) {\n\t\n\textract(shortcode_atts(array(\n\t\t\t\t\t\t\t\t\t'title' => ''\n\t\t\t\t\t\t\t\t), $atts));\n\t\n\tglobal $post;\t\t\n\t\n\t$ingredients = get_post_meta($post->ID, 'RECIPE_META_ingredients');\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t$ingredients_count = count($ingredients[0]);\n\t\n\t\n\tif(empty($title))\n\t{\n\t\t$ingredients_html = '<h3>'.__('Ingredients','woothemes').'</h3>';\n\t}else{\n\t\t$ingredients_html = '<h3>'.$title.'</h3>';\n\t}\n\t\n\tif( $ingredients_count >= 1 && (!empty($ingredients[0][0])) )\n\t{\n\t\t$i = 0;\n\t\t$ingredients_html .= '<ul class=\"ingre\">';\n\n\t\twhile($i < $ingredients_count)\n\t\t{\n\t\t\t$ingredients_html .= '<li> ';\n\t\t\t$ingredients_html .= $ingredients[0][$i];\n\t\t\t$ingredients_html .= '</li>';\n\t\t\t$i++;\n\t\t}\n\t\t\t\t\n\t\t$ingredients_html .= '</ul>';\n\t}\n\telse\n\t{\n\t\t$ingredients_html .= '<p>';\n\t\t$ingredients_html .= __('No Ingredients Found ! ','woothemes');\n\t\t$ingredients_html .= '</p>';\n\t}\n\t\n\treturn $ingredients_html;\n\n\t\n}",
"public function getMiddle()\n {\n if (array_key_exists(\"middle\", $this->_propDict)) {\n return $this->_propDict[\"middle\"];\n } else {\n return null;\n }\n }",
"public function getWishlistProduct(){\n $query = $this->db->select('t.*,c.attribute_name as attributename,p.image')->from('wishlist_product as t')->join('product_variation as c', 'c.id = t.product_variation_id')->join('product_variation_images as p','p.product_id = c.id')->where(['t.userid' => $this->session->userdata('login_id'), 'p.fstatus' => 1 ])->get();\n //print_r($this->db->last_query());exit;\n if($query) return $query->result_array(); else FALSE;\n }",
"public function wished() {\n\t\treturn $this->hasMany('App\\Models\\Wishlist', 'store_id', 'id');\n\t}",
"public function wishes()\n {\n return $this->belongsToMany(Product::class, 'wishlist', 'user_id', 'product_id');\n }",
"function fatherly_sponsor($atts)\n{\n return $atts;\n}",
"public static function getSmileys()\n\t{\n\t\t$smileys = array();\n\t\t$oReflectionClass = new ReflectionClass('specialetekens');\n\t\tforeach ($oReflectionClass->getConstants() as $key => $val) {\n\t\t\tif (strstr($key, \"SMILEY\")) {\n\t\t\t\t$smilies[$key] = $val;\n\t\t\t}\n\t\t}\n\t\treturn $smilies;\n\t}",
"public function myWishList()\n {\n $data = array();\n $data['page5'] = $this->PagesModel->get(19); \n $data['categories'] = $this->CategoriesModel->getParentCategory();\n\n $data['categoriesMenu'] = $this->CategoriesModel->getParentCategoryMenu();\n foreach ($data['categoriesMenu'] as $key => $value) {\n $child_category = $this->CategoriesModel->getChildCategories($value['id']);\n $data['categoriesMenu'][$key]['child'] = $child_category;\n }\n $user = $this->session->userdata('user');\n $this->load->model('UserWishListModel');\n\n $data[\"user_wishlist\"] = $this->UserWishListModel->getUserWishList($user->id);\n\n //print_r(json_encode($data[\"user_wishlist\"]));exit();\n\n $this->load->template('profile/my-wishlist',$data);\n }",
"public function wishlist() {\n $this->load->model('Item_model', 'Item', TRUE);\n $this->load->model('Category_model', 'Category', TRUE);\n \n $data = array(\n 'title' => 'Ma wishlist',\n 'active' => 'wishlist',\n 'css' => array(\n 'listItem.css',\n 'user/index.css'\n ),\n 'categories' => $this->Category->getCategory(),\n 'subcategories' => $this->Category->getCategory('sub'),\n 'js' => array(\n 'listItem.js'\n ),\n 'items' => $this->Item->getWishlist(array(\n 'where' => array(\n 'W.user_id' => $this->session->user['id']\n )\n ))\n );\n \n $this->load->view('template/header', $data);\n $this->load->view('user/index', $data);\n $this->load->view('template/footer', $data);\n }",
"function getTopWords($class) {\r\n\tglobal $topwords;\r\n\tfor ($i=0; $i<count($class); $i++) {\r\n\t\tarray_push($topwords, $class[$i][0]);\r\n\t}\r\n}",
"public function getMarkList(){\n return $this->_get(15);\n }",
"public function wishlist()\n {\n return $this->hasMany('App\\Wishlist');\n }",
"public static function get_element_extras() {\n\t\t\t\t$fusion_settings = fusion_get_fusion_settings();\n\t\t\t\treturn [\n\t\t\t\t\t'linktarget' => $fusion_settings->get( 'social_icons_new' ),\n\t\t\t\t\t'social_links_box_color' => $fusion_settings->get( 'social_links_box_color' ),\n\t\t\t\t\t'social_links_icon_color' => $fusion_settings->get( 'social_links_icon_color' ),\n\t\t\t\t\t'social_media_icons' => $fusion_settings->get( 'social_media_icons' ),\n\t\t\t\t];\n\t\t\t}",
"public function wishlists()\n {\n return $this->hasMany('App\\Wishlist');\n }",
"function get_brothers($sweetheart) {\n $glob_dir = \"*/*/\";\n $brother_dir1 = \"Images/Brothers/\";\n $affiliation = \"brothers\";\n if($sweetheart) {\n $glob_dir .= \"*/\";\n $brother_dir1 .= \"Sweethearts/\";\n $affiliation = \"sweethearts\";\n }\n $names = array_diff(scandir($brother_dir1),\n array('..', '.', 'Sweethearts'));\n $member = array();\n\n foreach($names as $name) {\n $name_short = substr($name, 0, strlen($name)-4);\n array_push($member,\n set_properties($name, $brother_dir1, $name_short));\n }\n return $member;\n }",
"public function getAppliesTo()\n\t{\n\t\t$coveredElements = array(\n\t\t\t'li'\n\t\t);\n\n\t\treturn $coveredElements;\n\t}",
"protected function otherElements()\n {\n return $this->otherElements;\n }"
] | [
"0.5108504",
"0.48847124",
"0.48801142",
"0.48639247",
"0.47779465",
"0.47611094",
"0.47581354",
"0.46888402",
"0.4658939",
"0.46538037",
"0.45783865",
"0.45783865",
"0.45783865",
"0.4546508",
"0.4494813",
"0.4492384",
"0.4491587",
"0.44882953",
"0.44715387",
"0.44630474",
"0.44590682",
"0.44530156",
"0.4427215",
"0.44249442",
"0.44182497",
"0.4406758",
"0.4400612",
"0.43999892",
"0.43993676",
"0.43993643"
] | 0.5206508 | 0 |
Create code in constructor so we can set validation rule AppraisalRequest constructor. | public function __construct(Request $request)
{
$request->request->add(['code' => getCode($request->title)]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function __construct(string $code);",
"public function __construct (){\n $this->_mTitle = trans( 'admin.applications' );\n $this->_categories = Category::all();\n $this->_user = Auth::user();\n\n $this->_initRules = [\n 'name' => 'required|max:255',\n 'platform' => 'required|in:' . implode( ',' , array_keys( config('consts.app_platforms') ) ), \n 'package_id' => 'required|max:255',\n 'fcategory' => 'required|exists:categories,id'\n ];\n }",
"public function __construct($code)\n {\n //\n $this->code = $code;\n }",
"function __construct(Application $app, Request $request){\n $this->_request = $request;\n $this->_app = $app;\n $_permission_role_array[0]['role_staus'] = Role::$NORMAL_STATUS;\n parent::__construct(['class_name'=>self::class]);\n }",
"public function __construct($code)\n {\n\t $this->code = $code;\n }",
"public function __construct($code)\n {\n $this->code = $code;\n }",
"public function __construct($code)\n\t{\n\t\t$this->code = $code;\n\t}",
"public function __construct($_attribute_id = NULL,$_code = NULL,$_type = NULL,$_required = NULL,$_scope = NULL)\r\n\t{\r\n\t\tparent::__construct(array('attribute_id'=>$_attribute_id,'code'=>$_code,'type'=>$_type,'required'=>$_required,'scope'=>$_scope));\r\n\t}",
"public function __construct($code)\n {\n $this->verification_code = $code;\n }",
"public function __construct() {\n\n\t\t\t//assign private variables\n\t\t\t\t$this->app_name = 'fax';\n\t\t\t\t$this->app_uuid = '24108154-4ac3-1db6-1551-4731703a4440';\n\n\t\t}",
"public function __construct(Code $code)\n\t{\n\t\t$this->code = $code->code;\n\t}",
"function __construct() {\n parent::__construct();\n $this->benchmark->mark('code_start');\n $this->_data = $this->post();\n $this->_data['Key'] = \"value\";\n $this->_response = [\n \"Status\" => TRUE,\n \"StatusCode\" => self::HTTP_OK,\n \"ServiceName\" => \"\",\n \"Message\" => \"Success\",\n \"Errors\" => (object) [],\n \"Data\" => (object) [],\n \"ElapsedTime\" => \"\",\n ];\n $this->load->library('form_validation');\n $this->form_validation->set_data($this->_data);\n }",
"public function __construct($Code=''){\n $this->Code=$Code;\n }",
"public function assembleRequest()\n {\n $this->setCode($this->payload['code']);\n }",
"public static function init(): self\n {\n return new self(new CreateMobileAuthorizationCodeResponse());\n }",
"public function _construct()\n {\n $this->_init('affiliate/affiliateprogram', 'program_id');\n }",
"public function __construct() {\n $this->requester = (isset($_REQUEST['requester']) ? $_REQUEST['requester'] : null);\n $this->responder = (isset($_REQUEST['responder']) ? $_REQUEST['responder'] : null);\n $this->preferred_language = (isset($_REQUEST['preferred_language']) ? $_REQUEST['preferred_language'] : null);\n }",
"public function __construct(string $code)\n {\n $this->code = $code;\n }",
"public function __construct($data)\n\t{\n\t\t$this->data = (object) json_decode($data);\n\t\tif(isset($this->data->request->type)){ $this->type = $this->data->request->type; }\n\t\tif(isset($this->data->session->user->userId)){ $this->user = $this->data->session->user->userId; }\n\t\tif(isset($this->data->request->intent->name)){ $this->name = $this->data->request->intent->name; }\n\t\tif(isset($this->data->request->intent->slots)){ $this->value = $this->data->request->intent->slots; }\n\t}",
"public function __construct( $code = null )\n {\n parent::__construct();\n $this->code = $code;\n }",
"public function init()\n\t{\n\t\t// Normalization information here\n\t\t$this->addFilter(new VendorAPI_Actions_Validators_Filter_PhoneNumber('phone_home'));\n\t\t$this->addFilter(new VendorAPI_Actions_Validators_Filter_PhoneNumber('phone_work'));\n\t\t$this->addFilter(new VendorAPI_Actions_Validators_Filter_PhoneNumber('phone_cell'));\n\t\t$this->addFilter(new VendorAPI_Actions_Validators_Filter_Ampersand('employer_name'));\n\n\t\t$this->addFilter(new VendorAPI_Actions_Validators_Filter_UpperCase('bank_account_type'));\n\t\t$this->addFilter(new VendorAPI_Actions_Validators_Filter_BankAccount('bank_account'));\n\n\t\t// =======================================================================================================\n\t\t// Application info\n\t\t$this->addValidator('external_id', new Validation_Optional_1(new Validation_Number_1()));\n\t\t$this->addValidator('track_id', new Validation_String_1(24, 32));\n\t\t$this->addValidator('page_id', new Validation_Number_1());\n\t\t$this->addValidator('promo_id', new Validation_Number_1());\n\t\t$this->addValidator('promo_sub_code', new Validation_Optional_1(new Validation_String_1(0, 100)));\n\n\t\t// =======================================================================================================\n\t\t// Name\n\t\t$this->addValidators('name_first', array(new Validation_String_1(1, 50)));\n\t\t$this->addValidators('name_last', array(new Validation_String_1(1, 50)));\n\t\t$this->addValidators('name_middle', array(\n\t\t\tnew Validation_Optional_1(new Validation_String_1(1, 50))\n\t\t));\n\n\t\t// =======================================================================================================\n\t\t// Address\n\t\t$this->addValidator('street', new Validation_NotEmpty_1());\n\n\t\t$this->addValidators('unit', array(\n\t\t\tnew Validation_Optional_1(new Validation_String_1(1, 10))\n\t\t));\n\t\t$this->addValidators('state', array(\n\t\t\tnew Validation_String_1(2, 2),\n\t\t\tnew Validation_Alpha_1()\n\t\t));\n\t\t$this->addValidators('zip_code', array(\n\t\t\tnew Validation_String_1(5, 9),\n\t\t\tnew Validation_Number_1()\n\t\t));\n\n\t\t// =======================================================================================================\n\t\t// Phone\n\t\t$this->addValidators('phone_home', array(\n\t\t\tnew Validation_Number_1(),\n\t\t\tnew Validation_String_1(7, 10)\n\t\t));\n\t\t$this->addValidators('phone_work', array(\n\t\t\tnew Validation_Number_1(),\n\t\t\tnew Validation_String_1(7, 10)\n\t\t));\n\t\t$this->addValidators('phone_fax', array(\n\t\t\tnew Validation_Optional_1(new Validation_Number_1()),\n\t\t\tnew Validation_Optional_1(new Validation_String_1(7, 10))\n\t\t));\n\n\t\t// =======================================================================================================\n\t\t// Work\n\n\t\t$this->addValidator('employer_name', new Validation_NotEmpty_1());\n\t\t// =======================================================================================================\n\t\t// Personal info\n\t\t$this->addValidator('email', new Validation_EmailAddress_1());\n\t\t$this->addValidators('ssn', array(\n\t\t\tnew Validation_String_1(9, 9),\n\t\t\tnew Validation_Number_1()\n\t\t));\n\t\t$this->addValidator('dob', new Validation_Date_1());\n\n\t\t$this->addValidator('legal_id_type', new Validation_Alpha_1());\n\n\n\t\t$this->addValidators('legal_id_state', array(\n\t\t\tnew Validation_String_1(2, 2),\n\t\t\tnew Validation_Alpha_1()\n\t\t));\n\n\t\t// =======================================================================================================\n\t\t// Personal references\n\n\t\t$pr_validator = new Validation_SubArray_1('personal_reference');\n\n\t\t// First things first, add the normalization filters\n\t\t$pr_validator->addFilter(new VendorAPI_Actions_Validators_Filter_PhoneNumber('phone_home'));\n\t\t$pr_validator->addFilter(new VendorAPI_Actions_Validators_Filter_NoFilter('name_full'));\n\t\t$pr_validator->addFilter(new VendorAPI_Actions_Validators_Filter_NoFilter('relationship'));\n\n\t\t/*\n\t\t * get rid of the validator\n\t\t//Now validate the newly normalized values\n\t\t$pr_validator->addValidator('name_full', new Validation_NotEmpty_1());\n\t\t$pr_validator->addValidators('phone_home', array(\n\t\t\tnew Validation_Optional_1(new Validation_Number_1()),\n\t\t));\n\t\t$pr_validator->addValidator('relationship', new Validation_NotEmpty_1());\n\t\t*/\n\t\t$this->addFilter(new VendorAPI_Actions_Validators_Filter_Optional('personal_reference', $pr_validator));\n\n\n\t\t// =======================================================================================================\n\t\t// Campaign Info\n\t\t$ci_validator = new Validation_SubArray_1('campaign_info');\n\t\t$ci_validator->addValidator('promo_id', new Validation_Number_1());\n\t\t$ci_validator->addValidator('promo_sub_code', new Validation_Optional_1(new Validation_String_1(0, 100)));\n\t\t// @todo Find out what the actual length of the license key is\n\t\t$ci_validator->addValidator('license_key', new Validation_String_1(32, 64));\n\t\t$ci_validator->addValidator('name', new Validation_NotEmpty_1());\n\t\t$this->addFilter($ci_validator);\n\n\t\t$this->addValidators('bank_name', array(\n\t\t\tnew Validation_String_1(1, 255),\n\t\t\tnew Validation_NotEmpty_1()\n\t\t));\n\n\n\t\t$this->addValidators('bank_aba', array(\n\t\t\tnew Validation_Number_1(),\n\t\t\tnew Validation_String_1(9, 9)\n\t\t));\n\t\t$this->addValidators('bank_account', array(\n\t\t\tnew Validation_Number_1(),\n\t\t\tnew Validation_String_1(2, 17)\n\t\t));\n\t\t$this->addValidator('bank_account_type', new Validation_Set_1(array('CHECKING', 'SAVINGS')));\n\n\t\t// =======================================================================================================\n\t\t// Income\n\t\t$this->addValidators('income_monthly', array(\n\t\t\tnew Validation_String_1(1, 5),\n\t\t\tnew Validation_Number_1()\n\t\t));\n\t}",
"public function __construct($_code = NULL,$_scope = NULL)\r\n\t{\r\n\t\tparent::__construct(array('code'=>$_code,'scope'=>$_scope));\r\n\t}",
"public function __construct() {\n $this->secureData($_REQUEST);\n $this->response = new Response();\n $this->request = new Request();\n }",
"protected function _construct()\n {\n $this->_init('onsale/rule', 'rule_id');\n }",
"public function __construct() { \n\n\t\t//Call the parent constructor\n\t\tparent::__construct(); \n\t\t\n\t\t$this->validate = array_merge(\n\t\t\t\t\t$this->validate\n\t\t\t\t);\t\t\n\n\t}",
"public function __construct(array $request_data)\n {\n $this->request_data = $request_data;\n }",
"function __construct(){\n if (is_array($_REQUEST)){\n // web application\n foreach ($_REQUEST as $key => $value){\n $this->add($key, $value);\n }\n }\n\n if (isset($_SERVER['REQUEST_METHOD']))\n $this->add(\"REQUEST_METHOD\", $_SERVER[\"REQUEST_METHOD\"]);\n }",
"public function __construct($_code = NULL,$_message = NULL)\r\n\t{\r\n\t\tparent::__construct(array('code'=>$_code,'message'=>$_message));\r\n\t}",
"function __construct($data)\n {\n $this->code = isset($data['code']) ? $data['code'] : null;\n $this->messages = isset($data['messages']) ? $data['messages'] : array();\n $this->data = isset($data['return']) ? $data['return'] : array();\n }",
"public function __construct() {\n $this->handleData('code', Response\\Code::OK_200);\n }"
] | [
"0.66038173",
"0.6549403",
"0.6533444",
"0.65197045",
"0.64387244",
"0.6385809",
"0.63772875",
"0.6356798",
"0.62814033",
"0.6270434",
"0.6256039",
"0.6251639",
"0.62264943",
"0.6211209",
"0.6206308",
"0.61970985",
"0.6169864",
"0.61276966",
"0.6112698",
"0.60658514",
"0.60499424",
"0.60227436",
"0.6008233",
"0.59844714",
"0.5983294",
"0.597856",
"0.5960857",
"0.59563595",
"0.5953206",
"0.59507066"
] | 0.67762005 | 0 |
Render the field with the appropriate template. | function FieldHolder() {
return $this->renderWith($this->template);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function render(){\n\n $this->sanitizeProperties();\n\n echo '<div class=\"field-wrapper html-field\">';\n \n if( $this->getProperty( 'label' ) !== '' )\n echo '<h3>'.esc_html( $this->getProperty( 'label' ) ).'</h3>';\n\n if( $this->getProperty( 'defaultValue' ) !== '' )\n echo $this->getProperty( 'defaultValue' );\n\n echo '</div>';\n\n }",
"public function render()\n\t{\n\t\treturn View::factory('bootstrap/form/field', array('field' => $this))\n\t\t\t->render();\n\t}",
"private function render_html()\n {\n if ( is_array( $this->fields ) ) {\n $html = '';\n foreach ( $this->fields as $f ) {\n switch ( $f[ 'type' ] ) {\n case 'text':\n case 'password':\n case 'number':\n case 'date':\n case 'time':\n case 'email':\n case 'reset':\n case 'submit':\n case 'hidden':\n $html_field = $this->input( $f );\n break;\n case 'textarea':\n $html_field = $this->textarea( $f );\n break;\n case 'select':\n $html_field = $this->select( $f );\n break;\n case 'radio':\n $html_field = $this->radio( $f );\n break;\n case 'checkbox':\n $html_field = $this->checkbox( $f );\n break;\n default:\n $html_field = __r( 'Invalid field...' );\n break;\n }\n\n $html .= sprintf(\n apply_filters( 'form_field', '<div><label for=\"%s\">%s</label>%s</div>', $html_field, $f, ( $html ) ),\n $f[ 'id' ],\n $f[ 'label' ],\n $html_field\n );\n }\n return $html;\n }\n }",
"public function renderField()\n {\n $attributes = $this->getAttributes();\n\n $attributes['name'] = $this->get('name');\n $attributes['value'] = $this->getEscapedValue();\n\n return $this->getGenerator()->tag('input', '', false, $attributes)->render();\n }",
"public function render()\n\t{\n\t\t// This is an example of how to create a text field and some values that\n\t\t// are available to you.\n\t\t$attributes = array(\n\t\t\t'name' => $this->fieldname,\n\t\t\t'id' => $this->field_id,\n\t\t\t'tabindex' => $this->tabindex,\n\t\t\t'value' => HTML::convertSpecialCharacters($this->field_data)\n\t\t);\n\t\treturn HTML::makeInput('text', $attributes, $this->is_required);\n\t}",
"public function render_field()\n\t{\n\t\t// This is the default order. You can rearrange or completely modify the return value.\n\t\treturn $this->render_label() .\n\t\t $this->render_instructions_above() .\n\t\t $this->render_error() .\n\t\t $this->render() .\n\t\t $this->render_instructions_below();\n\t}",
"function render_field( $field ) {\n\t\t\n\t\t\n\t\t/*\n\t\t* Review the data of $field.\n\t\t* This will show what data is available\n\t\t*/\n\t\t\n\t\t// echo '<pre>';\n\t\t// \tprint_r( $field );\n\t\t// echo '</pre>';\n\t\t\n\t\t\n\t\t/*\n\t\t* Create a simple text input using the 'font_size' setting.\n\t\t*/\n\t\t$atts = array(\n\t\t\t'class'\t\t=> 'acf_column'\n\t\t);\n\t\t\n\t\t?>\n\t\t<div <?php acf_esc_attr_e( $atts ); ?>><?php echo $field['label']; ?></div>\n\t\t<?php\n\t\t\n\t\techo '<div class=\"acf-column column-layout-' . $field['column-type'] . '\" data-id=\"' . $field['key'] . '\" data-column=\"' . $field['column-type'] . '\"> </div>';\n\t\t?>\n\t\t<?php\n\t}",
"public function renderField( $field ) {\n\t\t// Template the field.\n\t\t$field_type = $this->getFieldTypeInstance( $field['type'] );\n\t\t$field_html = $this->renderer->render( [ $field_type, 'render' ], [ 'field' => $field ] );\n\n\t\t// Template the wrapper.\n\t\t$style = $this->getFormStyle( $this->formOptions['style'] );\n\n\t\treturn $this->renderer->render( [ $style, 'fieldWrapper' ], [\n\t\t\t'field' => $field,\n\t\t\t'field_html' => $field_html,\n\t\t] );\n\t}",
"function acf_render_field( $field = false ) {\n\t\n\t// get valid field\n\t$field = acf_get_valid_field( $field );\n\t\n\t\n\t// prepare field for input\n\t$field = acf_prepare_field( $field );\n\t\n\t\n\t// bail ealry if no field\n\tif( !$field ) return;\n\t\t\n\t\n\t// create field specific html\n\tdo_action( \"acf/render_field\", $field );\n\tdo_action( \"acf/render_field/type={$field['type']}\", $field );\n\t\n}",
"public function renderInput(): string\n {\n return view('cms::components.form.fields', [\n 'name' => $this->getKey(),\n 'fields' => $this->getFieldInstances(),\n ])->render();\n }",
"public function Render()\r\n\t{\r\n\t\t$this->_template->Type = $this->_inputType;\r\n\t\t$this->_template->InputValue = \"value=\\\"{$this->RenderDisplayValue()}\\\"\";\r\n\r\n\t\t//Do we need to pick a template still?\r\n\t\tif (is_set($this->_template->FileName) == false)\r\n\t\t{\r\n\t\t\t\t//Which template should we use?\r\n\t\t\t\tif (is_set($this->_labelText))\r\n\t\t\t\t{\r\n\t\t\t\t\t\t$this->_template->FileName = \"inputandlabel\";\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t\t$this->_template->FileName = \"input\";\r\n\t\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Now call our parent's render method to generate the actual output.\r\n\t\t$returnValue = parent::Render();\r\n\r\n\t\treturn $returnValue;\r\n\t}",
"public function renderField($field, $name)\n\t{\n\t\t$html = '';\n\t\t$value = $this->item ? $this->item->$name : null;\n\t\t$type = app('krustr.fields')->get($field['type']);\n\n\t\tif ($type)\n\t\t{\n\t\t\t// Field entity\n\t\t\t$field = new FieldEntity(array_merge($field, $type->data));\n\t\t\t$class = $field->class;\n\n\t\t\t// Instance of field object\n\t\t\t$fieldInstance = new $class($field, $value);\n\n\t\t\t// // And fetch HTML for rendering\n\t\t\t$html .= $fieldInstance->render($value);\n\t\t}\n\n\t\treturn $html;\n\t}",
"function druvel_render_field($entity_type, $entity, $field) {\n\n // Must load field content for entity before using field_view_value()\n $fields = field_get_items($entity_type, $entity, $field);\n\n // $index corresponds to the value you want to render. First value = 0.\n $index = 0;\n $output = field_view_value($entity_type, $entity, $field, $fields[$index]);\n\n return render($output);\n }",
"function render() {\n $rendered = '';\n // TODO: data items should go in an array and be rendered all together\n // in order to be extendable by subclasses...\n\n $rendered .= '<input value=\"' . str_replace('\"', '"', $this->getCurrentValue()) . '\" type=\"' . $this->getHTMLType() . '\" ' .\n ($this->isDisabled() ? 'disabled ' : '') .\n ($this->isRequired() ? 'required ' : '') .\n ('class=\"' . $this->getClass() . '\" ') .\n ('size=\"' . $this->getSize() . '\" ') .\n ('placeholder=\"' . $this->getPlaceHolder() . '\" ') .\n ('name=\"' . $this->getName() . '\" ') .\n ('id=\"' . $this->getId() . '\" ') .\n ($this->isMultiple() ? 'data-multiple ' : ' ') .\n ($this->isDistinct() ? 'data-distinct ' : ' ') .\n ($this->isMultiple() ? 'data-limit=\"' . $this->getData('limit'). '\" ' : ' ') .\n (!empty($this->getInputAttr('node')) ? ('data-node=\"' . $this->getInputAttr('node')) . '\" ' : ' ') .\n '/>';\n\n return $rendered;\n }",
"function renderTicketField( $context ) {\n global $templateDir;\n global $rootUrl;\n \n $view = $context->view();\n \n $form_name = $context->form();\n $field_name = $context->field();\n $value = $context->value();\n $override_name = $context->name();\n $override_as_label = $context->force_label();\n $field_events = $context->events();\n \n // collect field properties\n $field = $this->getFieldFromMap($view,$field_name);\n $typeint = $this->getTypeInt($field['field_type']);\n $typename = $field['field_type'];\n \n // override properties if appropriate\n if( $context->columns() ) { $field['num_cols'] = $context->columns(); }\n if( $context->rows() ) { $field['num_rows'] = $context->rows(); }\n if( $context->label() ) { $field['label'] = $context->label(); }\n if( $context->multiple()) { $field['multiple'] = $context->multiple();}\n \n if ($typeint != ZTFIELD_SECTION && $typeint != ZTFIELD_HIDDEN && $override_as_label == 1) {\n $typeint = ZTFIELD_LABEL;\n $typename = \"label\";\n }\n \n // don't waste time on spacers\n if( $typeint == ZTFIELD_SECTION ) {\n $vals = array('label'=>tr($field['field_label']));\n return $this->_template($templateDir, $typename, $vals); \n }\n\n // collect system properties\n $fprops = getFmFieldProps($view, $field_name);\n $tprops = getFmTypeProps($typename);\n \n // see if this is a 'viewonly' screen, if so, no form fields needed\n if( $this->getViewProp($view, 'view_only') ) { return $this->getTextValue($view,$field_name,$value); }\n \n // collect template props\n $vals = array();\n $vals[\"view\"] = $view;\n $vals[\"form_name\"] = $form_name;\n $vals[\"templateDir\"] = $templateDir;\n $vals[\"rooturl\"] = $rootUrl;\n $vals['date_format'] = $this->_zen->popupDateFormat();\n $vals[\"field_name\"] = $this->_zen->ffv($override_name);\n $vals[\"field_events\"] = $field_events;\n \n if( !isset($value) && ($view==\"ticket_create\" || $view==\"project_create\"\n || $view == 'search_form' || preg_match('@(ticket|project)_list_filters@',$view) )) {\n // if there is no value and this is a create page or search page then we will\n // retrieve a default value to use instead\n $vals[\"field_value\"] = $this->getDefaultValue($view,$field_name);\n } else if( $typeint == ZTFIELD_DATE && !preg_match('/[^0-9]/', $value) ) {\n // if it is a date and we have a numeric value, then we will parse it to\n // a date right here\n //$vals['field_value'] = $this->_zen->showDate($value);\n $vals[\"field_value\"] = strlen($value)? $this->_zen->showDateTime($value) : '';\n } else if( ZenFieldMap::isMultiField($vals['field_name']) ) {\n/*\n $tok=strtok($value,\"\\t\");\n $vals[\"field_value\"]=array();\n while ($tok !== false) {\n $vals[\"field_value\"][] = $this->_zen->ffv($tok, $field['num_cols']);\n $tok = strtok(\"\\t\");\n }\n*/\n $vals[\"field_value\"]=array();\n if ( is_array($value) ) {\n foreach($value as $element) {\n $vals[\"field_value\"][] = $element;\n }\n } else {\n $vals[\"field_value\"][] = $value;\n }\n } else {\n $vals[\"field_value\"] = $value;\n }\n $vals[\"field_label\"] = $this->getTextValue($view,$field_name,$value);\n $vals[\"field_max\"] = $context->maxlength()? $context->maxlength() : $field['num_cols'];\n if( $tprops[\"has_choices\"] ) {\n $vals[\"field_choices\"] = $this->getChoices($view,$field_name);\n }\n \n // deal with fields by checking \n // the row count to make sure it is reasonable\n if( $field['num_rows'] == 1 ) { $vals['field_cols'] = $field['num_cols'] > 30? 30 : $field['num_cols']+2; }\n else { $vals['field_cols'] = $field['num_cols'] > 50? 50 : $field['num_cols']; }\n $vals['field_rows'] = $field['num_rows'];\n \n// $vals['field_multiple'] = $view == 'search_form' && $typeint == ZTFIELD_MENU && $field['num_rows'] > 1? \"multiple\" : \"\";\n// $vals['field_multiple'] = (\n// ( $view == 'search_form' || strpos($field_name,'custom_multi')===0 )\n// && $typeint == ZTFIELD_MENU && $field['num_rows'] > 1\n// ) ? \"multiple\" : \"\";\n $vals['field_multiple'] = ( $context->multiple()\n ||\n ( $view == 'search_form' && $typeint == ZTFIELD_MENU && $field['num_rows'] > 1 )\n || \n ( ZenFieldMap::isMultiField($field_name) )\n ) ? \"multiple\" : \"\";\n\n if( $vals['field_multiple'] ) {\n $vals['field_name'] .= \"[]\";\n }\n\n // set up special searchbox properties such as url and instructions\n if( $typeint == ZTFIELD_SEARCHBOX ) {\n if( $field_name == 'relations' ) { \n $vals['search_text'] = '<br>('.tr(\"Enter multiple ids, separated by a comma\").')';\n }\n switch($field_name) {\n case \"project_id\":\n $s = 'project';\n break;\n case \"id\":\n case \"relations\":\n $s = 'ticket';\n break;\n case \"user_id\":\n case \"creator_id\":\n $s = 'user';\n break;\n case \"type_id\":\n case \"bin_id\":\n case \"status\":\n case \"priority\":\n case \"system_id\":\n $s = 'datatype';\n break;\n default:\n $this->_zen->addDebug(\"renderTicketField\",\"The field $field_name cannot have a searchbox\",1);\n return $this->getTextValue($view,$field_name,$value);\n }\n $vals[\"search_url\"] = $rootUrl.\"/helpers/{$s}Searchbox.php?\"\n .\"return_form=$form_name&return_field={$vals['field_name']}\";\n if( !$fprops[\"multiple\"] && !$this->getViewProp($view,'multiple') ) {\n $vals['search_url'] .= \"&onechoice=1\";\n }\n }\n \n // deal with special custom field problems\n if( ZenFieldMap::isVariableField($field_name) ) {\n $f = $this->_zen->getCustomField($field_name);\n if( $f['js_validation'] ) {\n if( $vals['field_events'] ) {\n if( preg_match(\"/onblur=(['\\\"])([^'\\\"]+)['\\\"]/\", $vals['field_events'], $matches) ) {\n $q = $matches[1];\n $v = str_replace($q, \"\\\\$q\", $f['js_validation']);\n if( !preg_match('@;$@', $v) ) { $v .= ';'; }\n $val = \"onblur='{$v};{$matches[2]}'\";\n $vals['field_events'] = preg_replace(\"/onblur=['\\\"]([^'\\\"]+)['\\\"]/\", $val, $vals['field_events']);\n }\n else {\n $vals['field_events'] .= \" onblur=\".$zen->fixJsVal($f['js_validation']);\n }\n }\n else {\n $vals['field_events'] = \"onblur=\".$zen->fixJsVal($f['js_validation']);\n }\n }\n if( strpos($field_name,'custom_date') === 0 ) {\n if( $vals['field_value'] == 'NULL' ) { $vals['field_value'] = ''; }\n if( $vals['field_value'] == 0 ) { $vals['field_value'] = \"\"; }\n }\n }\n \n // check for special cases, such as textarea\n if( $typeint == ZTFIELD_TEXT && $field['num_rows'] > 1 ) {\n $typename = 'textarea';\n }\n \n // check field if it is a checkbox\n if( $typeint == ZTFIELD_CHECKBOX && !$vals['field_value'] ) {\n $vals['field_value'] = null;\n }\n \n // hide any fields which are not visible\n if( $field['is_visible'] < 1 ) {\n $typename = 'hidden';\n if( $field['is_required'] && !strlen($value) ) {\n $value = $this->getDefaultValue($view, $field_name);\n if( !strlen($value) ) {\n $this->_zen->addDebug(\"renderTicketField\", \"Required field is hidden and has no value: $view, $field_name\", 1);\n }\n }\n }\n\n if ( $typename == 'label' && strpos($field_name,\"multi\")>0 ) {\n $typename = \"multilabel\";\n $vals[\"field_choices\"] = $this->getChoices($view,$field_name);\n }\n\n if ( $typename == \"hidden\" && ZenFieldMap::isMultiField($field_name) ) {\n $typename = \"multihidden\";\n $vals[\"field_choices\"] = $this->getChoices($view,$field_name);\n //Prevent loosing current values in hidden fields:\n if( is_array($vals['field_value']) ) {\n foreach ($vals[\"field_value\"] as $value) {\n if ( ! in_array($value, $vals[\"field_choices\"]) ) {\n $vals[\"field_choices\"][$value]= $value;\n }\n }\n }\n }\n \n // variable fields have some special attributes. First, we don't want\n // to try to render keys for these (too much trouble with escaping), so\n // we render them without keys. Second, the normal comparisons (key to\n // current value) won't work since there are no keys, so we have to\n // check the value.\n $vf = ZenFieldMap::isVariableField($vals['field_name']);\n if( $vf && $typename == 'menu' ) { $typename = 'menunokeys'; }\n \n // we escape the field_choices array here (values only) and try\n // to find the correct value to select if this is a variable field\n if( $vf && isset($vals['field_choices']) ) {\n foreach($vals['field_choices'] as $k=>$v) {\n if( $v == $vals['field_value'] ) { \n $vals['field_selected'] = $v;\n }\n }\n }\n \n // parse and return \n return $this->_template($templateDir, $typename, $vals);\n }",
"function render($value, $editable = true, $parent = null, $position = null) {\n $field = $this;\n include $this->template_path;\n }",
"protected function renderField($field) {\r\n\t\treturn $field->def();\r\n\t}",
"public function renderField() {\n $objToolkit = class_carrier::getInstance()->getObjToolkit(\"admin\");\n $strReturn = \"\";\n if($this->getStrHint() != null)\n $strReturn .= $objToolkit->formTextRow($this->getStrHint());\n $strReturn .= $objToolkit->formInputDropdown($this->getStrEntryName(), $this->arrKeyValues, $this->getStrLabel(), $this->getStrValue(), \"\", !$this->getBitReadonly(), $this->getStrAddons());\n return $strReturn;\n }",
"function render_field($id, $label ,$fieldName, $fieldType = \"text\", $args = []){\n // Get the location data if it's already been entered\n $key_value = get_post_meta($id, $fieldName, true);\n\n // Output the field\n $output = \"<label style='font-size: 1.3em'>$label</label>\";\n switch ($fieldType) {\n\n case 'number' :\n $output .='<input type=\"number\" name=\"'. $fieldName. '\" value=\"' . $key_value . '\" class=\"form-control\">';\n break;\n\n case 'select' :\n $output .= '<br>';\n $output .= \"<Select name='\" .$fieldName. \"' class='form-control'>\";\n foreach($args as $arg){\n if($key_value == $arg){\n $output .='<option value=\"' . $arg . '\" class=\"form-control\" selected>'. ucfirst($arg) .'</option>';\n }\n $output .='<option value=\"' . $arg . '\" class=\"form-control\">'. ucfirst($arg) .'</option>';\n }\n $output .= \"</Select>\";\n break;\n\n case 'checkbox' :\n\n $output = '<div class=\" form-group form-check\">';\n $output .= '<input style=\"margin: 3px 0 0 -20px;\" id=\"'. $fieldName .'\" name=\"'. $fieldName .'\" class=\"form-check-input\" type=\"checkbox\" ' . ($key_value == 'on' ? 'checked' : '') .'>';\n $output .= \"<label for='\" . $fieldName . \"' class='form-check-label' style='font-size: 1.3em'>$label</label>\";\n $output .= '</div>';\n break;\n\n default:\n $extra_class = '';\n $styles = '';\n if(strpos($fieldName, 'color')){\n $extra_class = 'color-container';\n if(!empty($key_value)){\n $styles = \"background-color:\".$key_value.\"; color: white;\";\n }\n }\n\n $output .= '<input style=\"' . $styles . '\" type=\"text\" name=\"'. $fieldName. '\" value=\"' . $key_value . '\" class=\"form-control ' . $extra_class . '\">';\n break;\n \n }\n \n $output .= '<br>';\n echo $output;\n\n }",
"public function render_field( $field ) {\n\t\t$output = null;\n\t\t$type = isset( $field['type'] ) ? $field['type'] : null;\n\t\t$section = isset( $field['section'] ) ? $field['section'] : null;\n\t\t$name = isset( $field['name'] ) ? $field['name'] : null;\n\t\t$class = isset( $field['class'] ) ? $field['class'] : null;\n\t\t$placeholder = isset( $field['placeholder'] ) ? $field['placeholder'] : null;\n\t\t$description = isset( $field['desc'] ) ? $field['desc'] : null;\n\t\t$href = isset( $field['href'] ) ? $field['href'] : null;\n\t\t$rows = isset( $field['rows'] ) ? $field['rows'] : 10;\n\t\t$cols = isset( $field['cols'] ) ? $field['cols'] : 50;\n\t\t$after_field = isset( $field['after_field'] ) ? $field['after_field'] : null;\n\t\t$default = isset( $field['default'] ) ? $field['default'] : null;\n\t\t$min = isset( $field['min'] ) ? $field['min'] : 0;\n\t\t$max = isset( $field['max'] ) ? $field['max'] : 999;\n\t\t$step = isset( $field['step'] ) ? $field['step'] : 1;\n\t\t$title = isset( $field['title'] ) ? $field['title'] : null;\n\t\t$nonce = isset( $field['nonce'] ) ? $field['nonce'] : null;\n\n\t\tif ( isset( $field['value'] ) ) {\n\t\t\t$current_value = $field['value'];\n\t\t} else {\n\t\t\tif ( isset( $this->options[ $section . '_' . $name ] ) ) {\n\t\t\t\t$current_value = $this->options[ $section . '_' . $name ];\n\t\t\t} else {\n\t\t\t\t$current_value = null;\n\t\t\t}\n\t\t}\n\n\t\t$option_key = $this->option_key;\n\n\t\tif ( is_callable( $current_value ) ) {\n\t\t\t$current_value = call_user_func( $current_value );\n\t\t}\n\n\t\tif ( ! $type || ! $section || ! $name ) {\n\t\t\treturn '';\n\t\t}\n\n\t\tif ( 'multi_checkbox' === $type && ( empty( $field['choices'] ) || ! is_array( $field['choices'] ) ) ) {\n\t\t\treturn '';\n\t\t}\n\n\t\tswitch ( $type ) {\n\t\t\tcase 'text':\n\t\t\tcase 'number':\n\t\t\t\t$output = sprintf(\n\t\t\t\t\t'<input type=\"%1$s\" name=\"%2$s[%3$s_%4$s]\" id=\"%2$s_%3$s_%4$s\" class=\"%5$s\" placeholder=\"%6$s\" min=\"%7$d\" max=\"%8$d\" step=\"%9$d\" value=\"%10$s\" /> %11$s',\n\t\t\t\t\tesc_attr( $type ),\n\t\t\t\t\tesc_attr( $option_key ),\n\t\t\t\t\tesc_attr( $section ),\n\t\t\t\t\tesc_attr( $name ),\n\t\t\t\t\tesc_attr( $class ),\n\t\t\t\t\tesc_attr( $placeholder ),\n\t\t\t\t\tesc_attr( $min ),\n\t\t\t\t\tesc_attr( $max ),\n\t\t\t\t\tesc_attr( $step ),\n\t\t\t\t\tesc_attr( $current_value ),\n\t\t\t\t\twp_kses_post( $after_field )\n\t\t\t\t);\n\t\t\t\tbreak;\n\t\t\tcase 'textarea':\n\t\t\t\t$output = sprintf(\n\t\t\t\t\t'<textarea name=\"%1$s[%2$s_%3$s]\" id=\"%1$s_%2$s_%3$s\" class=\"%4$s\" placeholder=\"%5$s\" rows=\"%6$d\" cols=\"%7$d\">%8$s</textarea> %9$s',\n\t\t\t\t\tesc_attr( $option_key ),\n\t\t\t\t\tesc_attr( $section ),\n\t\t\t\t\tesc_attr( $name ),\n\t\t\t\t\tesc_attr( $class ),\n\t\t\t\t\tesc_attr( $placeholder ),\n\t\t\t\t\tabsint( $rows ),\n\t\t\t\t\tabsint( $cols ),\n\t\t\t\t\tesc_textarea( $current_value ),\n\t\t\t\t\twp_kses_post( $after_field )\n\t\t\t\t);\n\t\t\t\tbreak;\n\t\t\tcase 'checkbox':\n\t\t\t\tif ( isset( $current_value ) ) {\n\t\t\t\t\t$value = $current_value;\n\t\t\t\t} elseif ( isset( $default ) ) {\n\t\t\t\t\t$value = $default;\n\t\t\t\t} else {\n\t\t\t\t\t$value = 0;\n\t\t\t\t}\n\n\t\t\t\t$output = sprintf(\n\t\t\t\t\t'<label><input type=\"checkbox\" name=\"%1$s[%2$s_%3$s]\" id=\"%1$s[%2$s_%3$s]\" value=\"1\" %4$s /> %5$s</label>',\n\t\t\t\t\tesc_attr( $option_key ),\n\t\t\t\t\tesc_attr( $section ),\n\t\t\t\t\tesc_attr( $name ),\n\t\t\t\t\tchecked( $value, 1, false ),\n\t\t\t\t\twp_kses_post( $after_field )\n\t\t\t\t);\n\t\t\t\tbreak;\n\t\t\tcase 'multi_checkbox':\n\t\t\t\t$output = sprintf(\n\t\t\t\t\t'<div id=\"%1$s[%2$s_%3$s]\"><fieldset>',\n\t\t\t\t\tesc_attr( $option_key ),\n\t\t\t\t\tesc_attr( $section ),\n\t\t\t\t\tesc_attr( $name )\n\t\t\t\t);\n\t\t\t\t// Fallback if nothing is selected.\n\t\t\t\t$output .= sprintf(\n\t\t\t\t\t'<input type=\"hidden\" name=\"%1$s[%2$s_%3$s][]\" value=\"__placeholder__\" />',\n\t\t\t\t\tesc_attr( $option_key ),\n\t\t\t\t\tesc_attr( $section ),\n\t\t\t\t\tesc_attr( $name )\n\t\t\t\t);\n\t\t\t\t$current_value = (array) $current_value;\n\t\t\t\t$choices = $field['choices'];\n\t\t\t\tif ( is_callable( $choices ) ) {\n\t\t\t\t\t$choices = call_user_func( $choices );\n\t\t\t\t}\n\t\t\t\tforeach ( $choices as $value => $label ) {\n\t\t\t\t\t$output .= sprintf(\n\t\t\t\t\t\t'<label>%1$s <span>%2$s</span></label><br />',\n\t\t\t\t\t\tsprintf(\n\t\t\t\t\t\t\t'<input type=\"checkbox\" name=\"%1$s[%2$s_%3$s][]\" value=\"%4$s\" %5$s />',\n\t\t\t\t\t\t\tesc_attr( $option_key ),\n\t\t\t\t\t\t\tesc_attr( $section ),\n\t\t\t\t\t\t\tesc_attr( $name ),\n\t\t\t\t\t\t\tesc_attr( $value ),\n\t\t\t\t\t\t\tchecked( in_array( $value, $current_value, true ), true, false )\n\t\t\t\t\t\t),\n\t\t\t\t\t\tesc_html( $label )\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\t$output .= '</fieldset></div>';\n\t\t\t\tbreak;\n\t\t\tcase 'select':\n\t\t\t\t$current_value = $this->options[ $section . '_' . $name ];\n\t\t\t\t$default_value = isset( $default['value'] ) ? $default['value'] : '-1';\n\t\t\t\t$default_name = isset( $default['name'] ) ? $default['name'] : 'Choose Setting';\n\n\t\t\t\t$output = sprintf(\n\t\t\t\t\t'<select name=\"%1$s[%2$s_%3$s]\" class=\"%1$s_%2$s_%3$s\">',\n\t\t\t\t\tesc_attr( $option_key ),\n\t\t\t\t\tesc_attr( $section ),\n\t\t\t\t\tesc_attr( $name )\n\t\t\t\t);\n\t\t\t\t$output .= sprintf(\n\t\t\t\t\t'<option value=\"%1$s\" %2$s>%3$s</option>',\n\t\t\t\t\tesc_attr( $default_value ),\n\t\t\t\t\tchecked( $default_value === $current_value, true, false ),\n\t\t\t\t\tesc_html( $default_name )\n\t\t\t\t);\n\t\t\t\tforeach ( $field['choices'] as $value => $label ) {\n\t\t\t\t\t$output .= sprintf(\n\t\t\t\t\t\t'<option value=\"%1$s\" %2$s>%3$s</option>',\n\t\t\t\t\t\tesc_attr( $value ),\n\t\t\t\t\t\tchecked( $value === $current_value, true, false ),\n\t\t\t\t\t\tesc_html( $label )\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\t$output .= '</select>';\n\t\t\t\tbreak;\n\t\t\tcase 'file':\n\t\t\t\t$output = sprintf(\n\t\t\t\t\t'<input type=\"file\" name=\"%1$s[%2$s_%3$s]\" class=\"%4$s\">',\n\t\t\t\t\tesc_attr( $option_key ),\n\t\t\t\t\tesc_attr( $section ),\n\t\t\t\t\tesc_attr( $name ),\n\t\t\t\t\tesc_attr( $class )\n\t\t\t\t);\n\t\t\t\tbreak;\n\t\t\tcase 'link':\n\t\t\t\t$output = sprintf(\n\t\t\t\t\t'<a id=\"%1$s_%2$s_%3$s\" class=\"%4$s\" href=\"%5$s\">%6$s</a>',\n\t\t\t\t\tesc_attr( $option_key ),\n\t\t\t\t\tesc_attr( $section ),\n\t\t\t\t\tesc_attr( $name ),\n\t\t\t\t\tesc_attr( $class ),\n\t\t\t\t\tesc_attr( $href ),\n\t\t\t\t\tesc_attr( $title )\n\t\t\t\t);\n\t\t\t\tbreak;\n\t\t\tcase 'select2':\n\t\t\t\tif ( ! isset( $current_value ) ) {\n\t\t\t\t\t$current_value = '';\n\t\t\t\t}\n\n\t\t\t\t$data_values = array();\n\n\t\t\t\tif ( isset( $field['choices'] ) ) {\n\t\t\t\t\t$choices = $field['choices'];\n\t\t\t\t\tif ( is_callable( $choices ) ) {\n\t\t\t\t\t\t$param = ( isset( $field['param'] ) ) ? $field['param'] : null;\n\t\t\t\t\t\t$choices = call_user_func( $choices, $param );\n\t\t\t\t\t}\n\t\t\t\t\tforeach ( $choices as $key => $value ) {\n\t\t\t\t\t\tif ( is_array( $value ) ) {\n\t\t\t\t\t\t\t$child_values = array();\n\t\t\t\t\t\t\tif ( isset( $value['children'] ) ) {\n\t\t\t\t\t\t\t\t$child_values = array();\n\t\t\t\t\t\t\t\tforeach ( $value['children'] as $child_key => $child_value ) {\n\t\t\t\t\t\t\t\t\t$child_values[] = array(\n\t\t\t\t\t\t\t\t\t\t'id' => $child_key,\n\t\t\t\t\t\t\t\t\t\t'text' => $child_value,\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif ( isset( $value['label'] ) ) {\n\t\t\t\t\t\t\t\t$data_values[] = array(\n\t\t\t\t\t\t\t\t\t'id' => $key,\n\t\t\t\t\t\t\t\t\t'text' => $value['label'],\n\t\t\t\t\t\t\t\t\t'children' => $child_values,\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$data_values[] = array(\n\t\t\t\t\t\t\t\t'id' => $key,\n\t\t\t\t\t\t\t\t'text' => $value,\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$class .= ' with-source';\n\t\t\t\t}\n\n\t\t\t\t$input_html = sprintf(\n\t\t\t\t\t'<input type=\"hidden\" name=\"%1$s[%2$s_%3$s]\" data-values=\\'%4$s\\' value=\"%5$s\" class=\"select2-select %6$s\" data-placeholder=\"%7$s\" />',\n\t\t\t\t\tesc_attr( $option_key ),\n\t\t\t\t\tesc_attr( $section ),\n\t\t\t\t\tesc_attr( $name ),\n\t\t\t\t\tesc_attr( wp_stream_json_encode( $data_values ) ),\n\t\t\t\t\tesc_attr( $current_value ),\n\t\t\t\t\tesc_attr( $class ),\n\t\t\t\t\t// translators: Placeholder refers to the title of the dropdown menu (e.g. \"users\")\n\t\t\t\t\tsprintf( esc_html__( 'Any %s', 'stream' ), $title )\n\t\t\t\t);\n\n\t\t\t\t$output = sprintf(\n\t\t\t\t\t'<div class=\"%1$s_%2$s_%3$s\">%4$s</div>',\n\t\t\t\t\tesc_attr( $option_key ),\n\t\t\t\t\tesc_attr( $section ),\n\t\t\t\t\tesc_attr( $name ),\n\t\t\t\t\t$input_html\n\t\t\t\t);\n\n\t\t\t\tbreak;\n\t\t\tcase 'rule_list':\n\t\t\t\t$users = count_users();\n\t\t\t\t$form = new Form_Generator();\n\t\t\t\t$output = '<p class=\"description\">' . esc_html( $description ) . '</p>';\n\n\t\t\t\t$actions_top = sprintf( '<input type=\"button\" class=\"button\" id=\"%1$s_new_rule\" value=\"+ %2$s\" />', esc_attr( $section . '_' . $name ), esc_html__( 'Add New Rule', 'stream' ) );\n\t\t\t\t$actions_bottom = sprintf( '<input type=\"button\" class=\"button\" id=\"%1$s_remove_rules\" value=\"%2$s\" />', esc_attr( $section . '_' . $name ), esc_html__( 'Delete Selected Rules', 'stream' ) );\n\n\t\t\t\t$output .= sprintf( '<div class=\"tablenav top\">%1$s</div>', $actions_top );\n\t\t\t\t$output .= '<table class=\"wp-list-table widefat fixed stream-exclude-list\">';\n\n\t\t\t\tunset( $description );\n\n\t\t\t\t$heading_row = sprintf(\n\t\t\t\t\t'<tr>\n\t\t\t\t\t\t<td scope=\"col\" class=\"manage-column column-cb check-column\">%1$s</td>\n\t\t\t\t\t\t<th scope=\"col\" class=\"manage-column\">%2$s</th>\n\t\t\t\t\t\t<th scope=\"col\" class=\"manage-column\">%3$s</th>\n\t\t\t\t\t\t<th scope=\"col\" class=\"manage-column\">%4$s</th>\n\t\t\t\t\t\t<th scope=\"col\" class=\"manage-column\">%5$s</th>\n\t\t\t\t\t\t<th scope=\"col\" class=\"actions-column manage-column\"><span class=\"hidden\">%6$s</span></th>\n\t\t\t\t\t</tr>',\n\t\t\t\t\t'<input class=\"cb-select\" type=\"checkbox\" />',\n\t\t\t\t\tesc_html__( 'Author or Role', 'stream' ),\n\t\t\t\t\tesc_html__( 'Context', 'stream' ),\n\t\t\t\t\tesc_html__( 'Action', 'stream' ),\n\t\t\t\t\tesc_html__( 'IP Address', 'stream' ),\n\t\t\t\t\tesc_html__( 'Filters', 'stream' )\n\t\t\t\t);\n\n\t\t\t\t$exclude_rows = array();\n\n\t\t\t\t// Account for when no rules have been added yet.\n\t\t\t\tif ( ! is_array( $current_value ) ) {\n\t\t\t\t\t$current_value = array();\n\t\t\t\t}\n\n\t\t\t\t// Prepend an empty row.\n\t\t\t\t$current_value['exclude_row'] = ( isset( $current_value['exclude_row'] ) ? $current_value['exclude_row'] : array() ) + array( 'helper' => '' );\n\n\t\t\t\tforeach ( $current_value['exclude_row'] as $key => $value ) {\n\t\t\t\t\t// Prepare values.\n\t\t\t\t\t$author_or_role = isset( $current_value['author_or_role'][ $key ] ) ? $current_value['author_or_role'][ $key ] : '';\n\t\t\t\t\t$connector = isset( $current_value['connector'][ $key ] ) ? $current_value['connector'][ $key ] : '';\n\t\t\t\t\t$context = isset( $current_value['context'][ $key ] ) ? $current_value['context'][ $key ] : '';\n\t\t\t\t\t$action = isset( $current_value['action'][ $key ] ) ? $current_value['action'][ $key ] : '';\n\t\t\t\t\t$ip_address = isset( $current_value['ip_address'][ $key ] ) ? $current_value['ip_address'][ $key ] : '';\n\n\t\t\t\t\t// Author or Role dropdown menu\n\t\t\t\t\t$author_or_role_values = array();\n\t\t\t\t\t$author_or_role_selected = array();\n\n\t\t\t\t\tforeach ( $this->get_roles() as $role_id => $role ) {\n\t\t\t\t\t\t$args = array(\n\t\t\t\t\t\t\t'value' => $role_id,\n\t\t\t\t\t\t\t'text' => $role,\n\t\t\t\t\t\t);\n\t\t\t\t\t\t$count = isset( $users['avail_roles'][ $role_id ] ) ? $users['avail_roles'][ $role_id ] : 0;\n\n\t\t\t\t\t\tif ( ! empty( $count ) ) {\n\t\t\t\t\t\t\t// translators: Placeholder refers to a number of users (e.g. \"42\")\n\t\t\t\t\t\t\t$args['user_count'] = sprintf( _n( '%d user', '%d users', absint( $count ), 'stream' ), absint( $count ) );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( $role_id === $author_or_role ) {\n\t\t\t\t\t\t\t$author_or_role_selected['value'] = $role_id;\n\t\t\t\t\t\t\t$author_or_role_selected['text'] = $role;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$author_or_role_values[] = $args;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( empty( $author_or_role_selected ) && is_numeric( $author_or_role ) ) {\n\t\t\t\t\t\t$user = new WP_User( $author_or_role );\n\t\t\t\t\t\t$display_name = ( 0 === $user->ID ) ? esc_html__( 'N/A', 'stream' ) : $user->display_name;\n\t\t\t\t\t\t$author_or_role_selected = array(\n\t\t\t\t\t\t\t'value' => $user->ID,\n\t\t\t\t\t\t\t'text' => $display_name,\n\t\t\t\t\t\t);\n\t\t\t\t\t\t$author_or_role_values[] = $author_or_role_selected;\n\t\t\t\t\t}\n\n\t\t\t\t\t$author_or_role_input = $form->render_field(\n\t\t\t\t\t\t'select2',\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'name' => esc_attr( sprintf( '%1$s[%2$s_%3$s][%4$s][]', $option_key, $section, $name, 'author_or_role' ) ),\n\t\t\t\t\t\t\t'options' => $author_or_role_values,\n\t\t\t\t\t\t\t'classes' => 'author_or_role',\n\t\t\t\t\t\t\t'data' => array(\n\t\t\t\t\t\t\t\t'placeholder' => esc_html__( 'Any Author or Role', 'stream' ),\n\t\t\t\t\t\t\t\t'nonce' => esc_attr( wp_create_nonce( 'stream_get_users' ) ),\n\t\t\t\t\t\t\t\t'selected-id' => isset( $author_or_role_selected['value'] ) ? esc_attr( $author_or_role_selected['value'] ) : '',\n\t\t\t\t\t\t\t\t'selected-text' => isset( $author_or_role_selected['text'] ) ? esc_attr( $author_or_role_selected['text'] ) : '',\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\n\t\t\t\t\t// Context dropdown menu\n\t\t\t\t\t$context_values = array();\n\n\t\t\t\t\tforeach ( $this->get_terms_labels( 'context' ) as $context_id => $context_data ) {\n\t\t\t\t\t\tif ( is_array( $context_data ) ) {\n\t\t\t\t\t\t\t$child_values = array();\n\t\t\t\t\t\t\tif ( isset( $context_data['children'] ) ) {\n\t\t\t\t\t\t\t\t$child_values = array();\n\t\t\t\t\t\t\t\tforeach ( $context_data['children'] as $child_id => $child_value ) {\n\t\t\t\t\t\t\t\t\t$child_values[] = array(\n\t\t\t\t\t\t\t\t\t\t'value' => $context_id . '-' . $child_id,\n\t\t\t\t\t\t\t\t\t\t'text' => $child_value,\n\t\t\t\t\t\t\t\t\t\t'parent' => $context_id,\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif ( isset( $context_data['label'] ) ) {\n\t\t\t\t\t\t\t\t$context_values[] = array(\n\t\t\t\t\t\t\t\t\t'value' => $context_id,\n\t\t\t\t\t\t\t\t\t'text' => $context_data['label'],\n\t\t\t\t\t\t\t\t\t'children' => $child_values,\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$context_values[] = array(\n\t\t\t\t\t\t\t\t'value' => $context_id,\n\t\t\t\t\t\t\t\t'text' => $context_data,\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$connector_or_context_input = $form->render_field(\n\t\t\t\t\t\t'select2',\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'name' => esc_attr( sprintf( '%1$s[%2$s_%3$s][%4$s][]', $option_key, $section, $name, 'connector_or_context' ) ),\n\t\t\t\t\t\t\t'options' => $context_values,\n\t\t\t\t\t\t\t'classes' => 'connector_or_context',\n\t\t\t\t\t\t\t'data' => array(\n\t\t\t\t\t\t\t\t'group' => 'connector',\n\t\t\t\t\t\t\t\t'placeholder' => __( 'Any Context', 'stream' ),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\n\t\t\t\t\t$connector_input = $form->render_field(\n\t\t\t\t\t\t'hidden',\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'name' => esc_attr( sprintf( '%1$s[%2$s_%3$s][%4$s][]', $option_key, $section, $name, 'connector' ) ),\n\t\t\t\t\t\t\t'value' => $connector,\n\t\t\t\t\t\t\t'classes' => 'connector',\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\n\t\t\t\t\t$context_input = $form->render_field(\n\t\t\t\t\t\t'hidden',\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'name' => esc_attr( sprintf( '%1$s[%2$s_%3$s][%4$s][]', $option_key, $section, $name, 'context' ) ),\n\t\t\t\t\t\t\t'value' => $context,\n\t\t\t\t\t\t\t'classes' => 'context',\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\n\t\t\t\t\t// Action dropdown menu\n\t\t\t\t\t$action_values = array();\n\n\t\t\t\t\tforeach ( $this->get_terms_labels( 'action' ) as $action_id => $action_data ) {\n\t\t\t\t\t\t$action_values[] = array(\n\t\t\t\t\t\t\t'value' => $action_id,\n\t\t\t\t\t\t\t'text' => $action_data,\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\t\t\t\t\t$action_input = $form->render_field(\n\t\t\t\t\t\t'select2',\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'name' => esc_attr( sprintf( '%1$s[%2$s_%3$s][%4$s][]', $option_key, $section, $name, 'action' ) ),\n\t\t\t\t\t\t\t'value' => $action,\n\t\t\t\t\t\t\t'options' => $action_values,\n\t\t\t\t\t\t\t'classes' => 'action',\n\t\t\t\t\t\t\t'data' => array(\n\t\t\t\t\t\t\t\t'placeholder' => __( 'Any Action', 'stream' ),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\n\t\t\t\t\t// IP Address input\n\t\t\t\t\t$ip_address_input = $form->render_field(\n\t\t\t\t\t\t'select2',\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'name' => esc_attr( sprintf( '%1$s[%2$s_%3$s][%4$s][]', $option_key, $section, $name, 'ip_address' ) ),\n\t\t\t\t\t\t\t'value' => $ip_address,\n\t\t\t\t\t\t\t'classes' => 'ip_address',\n\t\t\t\t\t\t\t'data' => array(\n\t\t\t\t\t\t\t\t'placeholder' => esc_attr__( 'Any IP Address', 'stream' ),\n\t\t\t\t\t\t\t\t'nonce' => esc_attr( wp_create_nonce( 'stream_get_ips' ) ),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t'multiple' => true,\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\n\t\t\t\t\t// Hidden helper input\n\t\t\t\t\t$helper_input = sprintf(\n\t\t\t\t\t\t'<input type=\"hidden\" name=\"%1$s[%2$s_%3$s][%4$s][]\" value=\"\" />',\n\t\t\t\t\t\tesc_attr( $option_key ),\n\t\t\t\t\t\tesc_attr( $section ),\n\t\t\t\t\t\tesc_attr( $name ),\n\t\t\t\t\t\t'exclude_row'\n\t\t\t\t\t);\n\n\t\t\t\t\t$exclude_rows[] = sprintf(\n\t\t\t\t\t\t'<tr class=\"%1$s %2$s\">\n\t\t\t\t\t\t\t<th scope=\"row\" class=\"check-column\">%3$s %4$s</th>\n\t\t\t\t\t\t\t<td>%5$s</td>\n\t\t\t\t\t\t\t<td>%6$s %7$s %8$s</td>\n\t\t\t\t\t\t\t<td>%9$s</td>\n\t\t\t\t\t\t\t<td>%10$s</td>\n\t\t\t\t\t\t\t<th scope=\"row\" class=\"actions-column\">%11$s</th>\n\t\t\t\t\t\t</tr>',\n\t\t\t\t\t\t( 0 !== (int) $key % 2 ) ? 'alternate' : '',\n\t\t\t\t\t\t( 'helper' === (string) $key ) ? 'hidden helper' : '',\n\t\t\t\t\t\t'<input class=\"cb-select\" type=\"checkbox\" />',\n\t\t\t\t\t\t$helper_input,\n\t\t\t\t\t\t$author_or_role_input,\n\t\t\t\t\t\t$connector_or_context_input,\n\t\t\t\t\t\t$connector_input,\n\t\t\t\t\t\t$context_input,\n\t\t\t\t\t\t$action_input,\n\t\t\t\t\t\t$ip_address_input,\n\t\t\t\t\t\t'<a href=\"#\" class=\"exclude_rules_remove_rule_row\">Delete</a>'\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\t$no_rules_found_row = sprintf(\n\t\t\t\t\t'<tr class=\"no-items hidden\"><td class=\"colspanchange\" colspan=\"5\">%1$s</td></tr>',\n\t\t\t\t\tesc_html__( 'No rules found.', 'stream' )\n\t\t\t\t);\n\n\t\t\t\t$output .= '<thead>' . $heading_row . '</thead>';\n\t\t\t\t$output .= '<tfoot>' . $heading_row . '</tfoot>';\n\t\t\t\t$output .= '<tbody>' . $no_rules_found_row . implode( '', $exclude_rows ) . '</tbody>';\n\n\t\t\t\t$output .= '</table>';\n\n\t\t\t\t$output .= sprintf( '<div class=\"tablenav bottom\">%1$s</div>', $actions_bottom );\n\n\t\t\t\tbreak;\n\t\t}\n\t\t$output .= ! empty( $description ) ? wp_kses_post( sprintf( '<p class=\"description\">%s</p>', $description ) ) : null;\n\n\t\treturn $output;\n\t}",
"public function render_field( $args ) { \r\n $field_type = isset( $args[ 'type' ] ) ? $args[ 'type' ] : 'text';\r\n\r\n charitable_admin_view( 'settings/' . $field_type . '-field', $args );\r\n }",
"public function render()\n {\n return view('backend::components.widgets.form.fields');\n }",
"public function render() {\n\t\t\tif ( true === $this->field['regular'] && false !== $this->field['default']['regular'] ) {\n\t\t\t\techo '<span class=\"linkColor\">';\n\t\t\t\techo '<strong>' . esc_html__( 'Regular', 'redux-framework' ) . '</strong> ';\n\t\t\t\techo '<input ';\n\t\t\t\techo 'id=\"' . esc_attr( $this->field['id'] ) . '-regular\" ';\n\t\t\t\techo 'name=\"' . esc_attr( $this->field['name'] . $this->field['name_suffix'] ) . '[regular]\"';\n\t\t\t\techo 'value=\"' . esc_attr( $this->value['regular'] ) . '\"';\n\t\t\t\techo 'class=\"color-picker redux-color redux-color-regular redux-color-init ' . esc_attr( $this->field['class'] ) . '\"';\n\t\t\t\techo 'type=\"text\"';\n\t\t\t\techo 'data-default-color=\"' . esc_attr( $this->field['default']['regular'] ) . '\"';\n\n\t\t\t\tif ( ReduxCore::$_pro_loaded ) {\n\t\t\t\t\t$data = array(\n\t\t\t\t\t\t'field' => $this->field,\n\t\t\t\t\t\t'index' => 'regular',\n\t\t\t\t\t);\n\n\t\t\t\t\t// phpcs:ignore WordPress.NamingConventions.ValidHookName\n\t\t\t\t\techo esc_html( apply_filters( 'redux/pro/render/color_alpha', $data ) );\n\t\t\t\t}\n\n\t\t\t\techo '/>';\n\t\t\t\techo '</span>';\n\t\t\t}\n\n\t\t\tif ( true === $this->field['hover'] && false !== $this->field['default']['hover'] ) {\n\t\t\t\techo '<span class=\"linkColor\">';\n\t\t\t\techo '<strong>' . esc_html__( 'Hover', 'redux-framework' ) . '</strong> ';\n\t\t\t\techo '<input ';\n\t\t\t\techo 'id=\"' . esc_attr( $this->field['id'] ) . '-hover\"';\n\t\t\t\techo 'name=\"' . esc_attr( $this->field['name'] . $this->field['name_suffix'] ) . '[hover]\"';\n\t\t\t\techo 'value=\"' . esc_attr( $this->value['hover'] ) . '\"';\n\t\t\t\techo 'class=\"color-picker redux-color redux-color-hover redux-color-init ' . esc_attr( $this->field['class'] ) . '\"';\n\t\t\t\techo 'type=\"text\"';\n\t\t\t\techo 'data-default-color=\"' . esc_attr( $this->field['default']['hover'] ) . '\"';\n\n\t\t\t\tif ( ReduxCore::$_pro_loaded ) {\n\t\t\t\t\t$data = array(\n\t\t\t\t\t\t'field' => $this->field,\n\t\t\t\t\t\t'index' => 'hover',\n\t\t\t\t\t);\n\n\t\t\t\t\t// phpcs:ignore WordPress.NamingConventions.ValidHookName\n\t\t\t\t\techo esc_html( apply_filters( 'redux/pro/render/color_alpha', $data ) );\n\t\t\t\t}\n\n\t\t\t\techo '/>';\n\t\t\t\techo '</span>';\n\t\t\t}\n\n\t\t\tif ( true === $this->field['visited'] && false !== $this->field['default']['visited'] ) {\n\t\t\t\techo '<span class=\"linkColor\">';\n\t\t\t\techo '<strong>' . esc_html__( 'Visited', 'redux-framework' ) . '</strong> ';\n\t\t\t\techo '<input ';\n\t\t\t\techo 'id=\"' . esc_attr( $this->field['id'] ) . '-visited\"';\n\t\t\t\techo 'name=\"' . esc_attr( $this->field['name'] . $this->field['name_suffix'] ) . '[visited]\"';\n\t\t\t\techo 'value=\"' . esc_attr( $this->value['visited'] ) . '\"';\n\t\t\t\techo 'class=\"color-picker redux-color redux-color-visited redux-color-init ' . esc_attr( $this->field['class'] ) . '\"';\n\t\t\t\techo 'type=\"text\"';\n\t\t\t\techo 'data-default-color=\"' . esc_attr( $this->field['default']['visited'] ) . '\"';\n\n\t\t\t\tif ( ReduxCore::$_pro_loaded ) {\n\t\t\t\t\t$data = array(\n\t\t\t\t\t\t'field' => $this->field,\n\t\t\t\t\t\t'index' => 'visited',\n\t\t\t\t\t);\n\n\t\t\t\t\t// phpcs:ignore WordPress.NamingConventions.ValidHookName\n\t\t\t\t\techo esc_html( apply_filters( 'redux/pro/render/color_alpha', $data ) );\n\t\t\t\t}\n\n\t\t\t\techo '/>';\n\t\t\t\techo '</span>';\n\t\t\t}\n\n\t\t\tif ( true === $this->field['active'] && false !== $this->field['default']['active'] ) {\n\t\t\t\techo '<span class=\"linkColor\">';\n\t\t\t\techo '<strong>' . esc_html__( 'Active', 'redux-framework' ) . '</strong> ';\n\t\t\t\techo '<input ';\n\t\t\t\techo 'id=\"' . esc_attr( $this->field['id'] ) . '-active\"';\n\t\t\t\techo 'name=\"' . esc_attr( $this->field['name'] . $this->field['name_suffix'] ) . '[active]\"';\n\t\t\t\techo 'value=\"' . esc_attr( $this->value['active'] ) . '\"';\n\t\t\t\techo 'class=\"color-picker redux-color redux-color-active redux-color-init ' . esc_attr( $this->field['class'] ) . '\"';\n\t\t\t\techo 'type=\"text\"';\n\t\t\t\techo 'data-default-color=\"' . esc_attr( $this->field['default']['active'] ) . '\"';\n\n\t\t\t\tif ( ReduxCore::$_pro_loaded ) {\n\t\t\t\t\t$data = array(\n\t\t\t\t\t\t'field' => $this->field,\n\t\t\t\t\t\t'index' => 'active',\n\t\t\t\t\t);\n\n\t\t\t\t\t// phpcs:ignore WordPress.NamingConventions.ValidHookName\n\t\t\t\t\techo esc_html( apply_filters( 'redux/pro/render/color_alpha', $data ) );\n\t\t\t\t}\n\n\t\t\t\techo '/>';\n\t\t\t\techo '</span>';\n\t\t\t}\n\n\t\t\tif ( true === $this->field['focus'] && false !== $this->field['default']['focus'] ) {\n\t\t\t\techo '<span class=\"linkColor\">';\n\t\t\t\techo '<strong>' . esc_html__( 'Focus', 'redux-framework' ) . '</strong> ';\n\t\t\t\techo '<input ';\n\t\t\t\techo 'id=\"' . esc_attr( $this->field['id'] ) . '-focus\"';\n\t\t\t\techo 'name=\"' . esc_attr( $this->field['name'] . $this->field['name_suffix'] ) . '[focus]\"';\n\t\t\t\techo 'value=\"' . esc_attr( $this->value['focus'] ) . '\"';\n\t\t\t\techo 'class=\"color-picker redux-color redux-color-focus redux-color-init ' . esc_attr( $this->field['class'] ) . '\"';\n\t\t\t\techo 'type=\"text\"';\n\t\t\t\techo 'data-default-color=\"' . esc_attr( $this->field['default']['focus'] ) . '\"';\n\n\t\t\t\tif ( ReduxCore::$_pro_loaded ) {\n\t\t\t\t\t$data = array(\n\t\t\t\t\t\t'field' => $this->field,\n\t\t\t\t\t\t'index' => 'focus',\n\t\t\t\t\t);\n\n\t\t\t\t\t// phpcs:ignore WordPress.NamingConventions.ValidHookName\n\t\t\t\t\techo esc_html( apply_filters( 'redux/pro/render/color_alpha', $data ) );\n\t\t\t\t}\n\n\t\t\t\techo '/>';\n\t\t\t\techo '</span>';\n\t\t\t}\n\t\t}",
"function render(){\r\n //$display = $this->get_field_value('display','select'); //picker style\r\n $class = (isset($this->field['class']))? $this->field['class'] : '';\r\n\r\n $field_name = $this->args['opt_name'].'['.$this->field['id'].']'; //base field name\r\n $attributes = array(\r\n 'id' => $this->field['id'],\r\n 'name' => $field_name,\r\n 'class' => $class,\r\n\r\n );\r\n //$_aAttributes = $aAttributes+ $_aAttributes;\r\n $_aOutput[] = $this->renderTableRow($this->field, $attributes);\r\n echo implode(\"\\n\", $_aOutput);\r\n echo (isset($this->field['desc']) && !empty($this->field['desc']))?' <span class=\"description\">'.$this->field['desc'].'</span>' : '';\r\n }",
"public function render() {\n\n\t\t$form = $this->arguments['form'];\n\t\t$field = $this->arguments['field'];\n\t\t$fieldset = $this->arguments['fieldset'];\n\n\t\tif ($field !== null) {\n\t\t\t// used in File.html template\n\n\t\t\t// get field configuration\n\t\t\t$config = \\Slub\\SlubForms\\Helper\\ArrayHelper::configToArray($field->getConfiguration());\n\t\t\tif (!empty($config['file-accept-mimetypes']) && (empty($config['file-extension-check']) || !$config['file-extension-check'])) {\n\t\t\t\t// e.g. file-mimetypes = audio/*, image/*, application/\n\t\t\t\t$javascriptFooter = '$(\"#slub-forms-field-'.$form->getUid().'-'.$fieldset->getUid().'-'.$field->getUid().'\").rules(\"add\", {\n\t\t\t\t\t\trequired: '.($field->getRequired() ? 'true' : 'false').',\n\t\t\t\t\t\taccept: \"'.$config['file-accept-mimetypes'].'\"';\n\t\t\t\t\t\tif (!empty($config['file-accept-size']))\n\t\t\t\t\t\t\t$javascriptFooter .= ',\n\t\t\t\t\t\t\t\tfilesize: '.$config['file-accept-size'];\n\t\t\t\t$javascriptFooter .= '});\n\t\t\t\t';\n\t\t\t}\n\n\t\t\tif(!empty($config['file-extension-check']) && $config['file-extension-check']) {\n\t\t\t\t// e.g. file-mimetypes = audio/*, image/*, application/\n\t\t\t\t$javascriptFooter = '$(\"#slub-forms-field-'.$form->getUid().'-'.$fieldset->getUid().'-'.$field->getUid().'\").rules(\"add\", {\n\t\t\t\t\t\trequired: '.($field->getRequired() ? 'true' : 'false').',\n\t\t\t\t\t\textension: \"'.str_replace(array('.',' ',','),array('','','|'),$config['file-accept-info']).'\"';\n\t\t\t\t\t\tif (!empty($config['file-accept-size']))\n\t\t\t\t\t\t\t$javascriptFooter .= ',\n\t\t\t\t\t\t\t\tfilesize: '.$config['file-accept-size'];\n\t\t\t\t$javascriptFooter .= '});\n\t\t\t\t';\n\t\t\t}\n\n\t\t\tif(!empty($config['file-extension-check']) && $config['file-extension-check']) {\n\t\t\t\t// e.g. file-mimetypes = audio/*, image/*, application/\n\t\t\t\t$javascriptFooter = '$(\"#slub-forms-field-'.$form->getUid().'-'.$fieldset->getUid().'-'.$field->getUid().'\").rules(\"add\", {\n\t\t\t\t\t\trequired: '.($field->getRequired() ? 'true' : 'false').',\n\t\t\t\t\t\textension: \"'.str_replace(array('.',' ',','),array('','','|'),$config['file-accept-info']).'\"';\n\t\t\t\t\t\tif (!empty($config['file-accept-size']))\n\t\t\t\t\t\t\t$javascriptFooter .= ',\n\t\t\t\t\t\t\t\tfilesize: '.$config['file-accept-size'];\n\t\t\t\t$javascriptFooter .= '});\n\t\t\t\t';\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t// used in New.html Template for fieldset required\n\t\t\tif ($fieldset->getRequired()) {\n\n\t\t\t\tforeach($fieldset->getFields() as $field) {\n\n\t\t\t\t\tif (in_array($field->getType(), array('Textfield', 'Radio', 'Checkbox', 'File', 'Textarea') )) {\n\t\t\t\t\t\t$javascriptFooter .= '\n\t\t\t\t\t\t\t$(\"#slub-forms-field-'.$form->getUid().'-'.$fieldset->getUid().'-'.$field->getUid().'\").rules(\"add\",\n\t\t\t\t\t\t\t { require_from_group: [1, \\'.requiregroup-'.$form->getUid().'-'.$fieldset->getUid().'\\'],\n\t\t\t\t\t\t\t });';\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\t$pageRenderer = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\\TYPO3\\CMS\\Core\\Page\\PageRenderer::class);\n\t\t$pageRenderer->addJsFooterInlineCode('slub-forms-field-'.$form->getUid().'-'.$fieldset->getUid().'-'.$field->getUid(), $javascriptFooter);\n\n\t}",
"function render() {\n // just override the template being used.\n $bHasErrors = false; \n if (count($this->aErrors) != 0) { $bHasErrors = true; }\n //var_dump($this->aErrors);\n $oTemplating =& KTTemplating::getSingleton(); \n $oTemplate = $oTemplating->loadTemplate('ktcore/forms/widgets/base');\n \n if (!empty($this->aJavascript)) {\n // grab our inner page.\n $oPage =& $GLOBALS['main']; \n $oPage->requireJSResources($this->aJavascript);\n }\n if (!empty($this->aCSS)) {\n // grab our inner page.\n $oPage =& $GLOBALS['main']; \n $oPage->requireCSSResources($this->aCSS);\n } \n \n $widget_content = $this->getWidget();\n \n $aTemplateData = array(\n \"context\" => $this,\n \"label\" => $this->sLabel,\n \"description\" => $this->sDescription,\n \"name\" => $this->sName,\n \"required\" => $this->bRequired,\n \"has_id\" => ($this->sId !== null),\n \"id\" => $this->sId,\n \"has_value\" => ($this->value !== null),\n \"value\" => $this->value,\n \"has_errors\" => $bHasErrors,\n \"errors\" => $this->aErrors,\n \"options\" => $this->aOptions,\n \"widget\" => $widget_content,\n );\n return $oTemplate->render($aTemplateData); \n }",
"function render() {\n\t\t$this->spec_cache = array();\n\t\tforeach($this->fields as &$field) {\n\t\t\ttry {\n\t\t\t\tlist($entity, $f) = $this->queryset->entity->resolvePath($field);\n\t\t\t\t$spec = $entity->getField($f);\n\t\t\t\t// modify onetoone and foreignkey fields\n\t\t\t\tif($this->auto_related) {\n\t\t\t\t\tif($spec['type'] == 'foreignkey' || $spec['type'] == 'onetoone') {\n\t\t\t\t\t\t$related = $entity->getRelatedEntity($f);\n\t\t\t\t\t\tif($display = $related->getMeta('display_field')) {\n\t\t\t\t\t\t\t$field .= '__' . $display;\n\t\t\t\t\t\t\t$f = $display;\n\t\t\t\t\t\t\t$entity = $related;\n\t\t\t\t\t\t\t$this->column_headings[$field] = $entity->getMeta('verbose');\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// add the field to the query\n\t\t\t\t\t\t\t$this->queryset->_addField($field);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$this->spec_cache[$field] = $entity->getField($f);\n\t\t\t} catch(Dormio_Config_Exception $e) {\n\t\t\t\t// not an entity field - ignore\n\t\t\t\tDormio::$logger && Dormio::$logger->log($e->getMessage(), LOG_WARNING);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// auto sorting\n\t\tif($this->auto_sort) $this->setSortable(array_keys($this->spec_cache));\n\t\t\n\t\t// do pagination if required\n\t\tif($this->page_size) $this->queryset = $this->pagenate($this->queryset);\n\n\t\treturn parent::render();\n\t}",
"public function getFieldTpl()\n {\n return $this->fieldTpl;\n }",
"public function render()\n {\n $content = \"{\n fieldLabel: '\" . $this->getDecorator('label')->setElement($this)->getLabel() .\"',\n name: '\" . $this->getName() . \"',\n inputType: 'password',\n xtype: 'textfield'\";\n \n if ($this->getAttrib('validator')) {\n $content .= \", validator: \" . $this->getAttrib('validator');\n }\n \n if ($this->isRequired()) {\n $content .= \", allowBlank: false\";\n }\n \n $content .= \"}\";\n \n return $content;\n }",
"function templateText($args = array()){\n global $DOPBSP;\n \n $field = $args['field'];\n $language = isset($args['language']) && $args['language'] != '' ? $args['language']:$DOPBSP->classes->backend_language->get();\n?>\n <li id=\"DOPBSP-form-field-<?php echo $field->id; ?>\" class=\"dopbsp-field-wrapper\">\n<?php\n /*\n * Preview\n */\n $this->displayPreview(array('field' => $field,\n 'language' => $language));\n?>\n <div class=\"dopbsp-settings-wrapper\">\n<?php\n /*\n * Label\n */\n $this->displayTextInput(array('id' => 'label',\n 'label' => $DOPBSP->text('FORMS_FORM_FIELD_LABEL_LABEL'),\n 'value' => $DOPBSP->classes->translation->decodeJSON($field->translation, $language),\n 'form_field_id' => $field->id,\n 'help' => $DOPBSP->text('FORMS_FORM_FIELD_LABEL_HELP')));\n /*\n * Allowed characters.\n */\n $this->displayTextInput(array('id' => 'allowed_characters',\n 'label' => $DOPBSP->text('FORMS_FORM_FIELD_ALLOWED_CHARACTERS_LABEL'),\n 'value' => $field->allowed_characters,\n 'form_field_id' => $field->id,\n 'help' => $DOPBSP->text('FORMS_FORM_FIELD_ALLOWED_CHARACTERS_HELP')));\n /*\n * Size\n */\n $this->displayTextInput(array('id' => 'size',\n 'label' => $DOPBSP->text('FORMS_FORM_FIELD_SIZE_LABEL'),\n 'value' => $field->size < 1 ? '':$field->size,\n 'form_field_id' => $field->id,\n 'help' => $DOPBSP->text('FORMS_FORM_FIELD_SIZE_HELP')));\n /*\n * Is email.\n */\n $this->displaySwitchInput(array('id' => 'is_email',\n 'label' => $DOPBSP->text('FORMS_FORM_FIELD_EMAIL_LABEL'),\n 'value' => $field->is_email,\n 'form_field_id' => $field->id,\n 'help' => $DOPBSP->text('FORMS_FORM_FIELD_EMAIL_HELP')));\n /*\n * Is phone.\n */\n $this->displaySwitchInput(array('id' => 'is_phone',\n 'label' => $DOPBSP->text('FORMS_FORM_FIELD_PHONE_LABEL'),\n 'value' => $field->is_phone,\n 'form_field_id' => $field->id,\n 'help' => $DOPBSP->text('FORMS_FORM_FIELD_PHONE_HELP')));\n /*\n * Required\n */\n $this->displaySwitchInput(array('id' => 'required',\n 'label' => $DOPBSP->text('FORMS_FORM_FIELD_REQUIRED_LABEL'),\n 'value' => $field->required,\n 'form_field_id' => $field->id,\n 'help' => $DOPBSP->text('FORMS_FORM_FIELD_REQUIRED_HELP')));\n /*\n * Add to info.\n */\n $this->displaySwitchInput(array('id' => 'add_to_day_hour_info',\n 'label' => $DOPBSP->text('FORMS_FORM_FIELD_ADD_TO_DAY_HOUR_INFO_LABEL'),\n 'value' => $field->add_to_day_hour_info,\n 'form_field_id' => $field->id,\n 'help' => $DOPBSP->text('FORMS_FORM_FIELD_ADD_TO_DAY_HOUR_INFO_HELP')));\n /*\n * Add to body.\n */\n $this->displaySwitchInput(array('id' => 'add_to_day_hour_body',\n 'label' => $DOPBSP->text('FORMS_FORM_FIELD_ADD_TO_DAY_HOUR_BODY_LABEL'),\n 'value' => $field->add_to_day_hour_body,\n 'form_field_id' => $field->id,\n 'help' => $DOPBSP->text('FORMS_FORM_FIELD_ADD_TO_DAY_HOUR_BODY_HELP'),\n 'dopbsp-last'));\n?>\n </div>\n </li>\n<?php\n }"
] | [
"0.7667766",
"0.72858226",
"0.717963",
"0.7173701",
"0.7116684",
"0.7012447",
"0.6961695",
"0.69616914",
"0.69557285",
"0.6928748",
"0.6882147",
"0.68402797",
"0.6805169",
"0.6775376",
"0.67688763",
"0.67561835",
"0.67220694",
"0.67208445",
"0.6711171",
"0.6648143",
"0.6599473",
"0.65849334",
"0.65704006",
"0.6552879",
"0.64744425",
"0.64506096",
"0.64280343",
"0.6420162",
"0.64024377",
"0.63893783"
] | 0.7575167 | 1 |
Get a form action to remove an order item. | function RemoveItemAction() {
return new RemoveItemAction('removeItem', $this->Item()->ID, null, null, 'remove-item-action');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function removeAction()\n {\n /** @var Session $session */\n $session = $this->get('session');\n\n // product id from the button of the item clicked to be removed\n $productId = $_POST['product_id'];\n $cartItems = $session->get('cart_items');\n\n\n pre($cartItems, 'cartItems');\n\n foreach ($cartItems as $key => $value) {\n if ($value['productId'] == $productId) {\n unset($cartItems[$key]);\n }\n }\n\n\n $session->set('cart_items', $cartItems);\n\n return $this->redirect('/cart');\n }",
"public function removeAction(){\n $this->isEnabled();\n if($this->prDispatch()){\n $this->_redirect('*/index/');\n return;\n }\n if($this->_getHelper()->checkIsValidList()){\n Mage::getSingleton('core/session')->addError('Você não possui listas criadas, crie uma lista');\n $this->_redirect('*/index/', array('login'=>1));\n return;\n }\n $productId = $this->getRequest()->getParam('item');\n if(!empty($productId)){\n Mage::getModel('jbp_giftlist/item')->removeData($productId);\n $this->_redirectUrl(Mage::getSingleton('core/session')->getLastUrl());\n return;\n }\n $this->_redirect('/');\n }",
"public function actionRemoveFromCart() {\n\n OrderItem::deleteItem(Yii::$app->request->get('remove'));\n\n return $this->goBack(['order/show-cart']);\n }",
"public function getPostDeleteItem()\n {\n $title = \"Delete an item\";\n $view = $this->di->get(\"view\");\n $pageRender = $this->di->get(\"pageRender\");\n $userId = $this->di->get(\"session\")->get(\"userId\");\n $form = new DeleteForm($this->di, $userId);\n\n $form->check();\n\n $data = [\n \"form\" => $form->getHTML(),\n ];\n\n $view->add(\"comment/delete\", $data);\n\n $pageRender->renderPage([\"title\" => $title]);\n }",
"public function deleteAction()\r\n {\r\n $id = (int) $this->getRequest()->getParam('id');\r\n if ($id) {\r\n try {\r\n $this->_getCart()->removeItem($id)\r\n ->save();\r\n } catch (Exception $e) {\r\n $this->_getSession()->addError($this->__('Cannot remove the item.'));\r\n }\r\n }\r\n $this->_goBack();\r\n }",
"function commerce_pos_transaction_line_item_remove_submit($form, &$form_state) {\n if (!empty($form_state['triggering_element']['#line_item_id'])) {\n $form_state['transaction']->doAction('deleteLineItem', $form_state['triggering_element']['#line_item_id'], TRUE);\n $form_state['transaction']->doAction('saveOrder');\n $form_state['order_updated'] = TRUE;\n $form_state['rebuild'] = TRUE;\n }\n}",
"protected function remove()\n {\n \\IPS\\Output::i()->title = \\IPS\\Member::loggedIn()->language()->addToStack( 'award_title_remove' );\n\n $form = new \\IPS\\Helpers\\Form;\n\n $form->add( new \\IPS\\Helpers\\Form\\TextArea( 'award_removed_reason', NULL, TRUE, array() ) );\n\n if ( $values = $form->values() )\n {\n\n $remove = \\IPS\\awards\\Awarded::load( \\IPS\\Request::i()->id );\n $remove->remove( $values['award_removed_reason'], \\IPS\\Member::loggedIn() );\n\n \\IPS\\Output::i()->redirect( \\IPS\\Http\\Url::internal( 'app=awards&module=awards&controller=manage&do=manage_members&subnode=1' . '&id=' . \\IPS\\Request::i()->award ), 'awarded_removed' );\n }\n\n \\IPS\\Output::i()->output = $form;\n }",
"public function delete_item() {\n\t\tif (input()->id != \"\") {\n\t\t\t$changed_menu_item = $this->loadModel(input()->type, input()->id);\n\t\t\tif ($changed_menu_item->delete()) {\n\t\t\t\t$this->corpPageRedirect();\n\t\t\t}\n\t\t}\n\n\t\t$this->redirect();\n\t}",
"public function deleteAction() : object\n {\n $page = $this->di->get(\"page\");\n $form = new DeleteForm($this->di);\n $form->check();\n\n $page->add(\"questions/crud/delete\", [\n \"form\" => $form->getHTML(),\n ]);\n\n return $page->render([\n \"title\" => \"Delete an item\",\n ]);\n }",
"function current_search_delete_item_form($form, &$form_state, stdClass $item, $name) {\n $form['#current_search'] = array(\n 'item' => $item,\n 'name' => $name\n );\n\n $form['text'] = array(\n '#markup' => '<p>' . t('Are you sure you want to remove the item %name from the current search block configuration?.', array('%name' => $name)) . '</p>',\n );\n\n $form['actions']['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Remove item'),\n );\n\n $form['actions']['cancel'] = array(\n '#type' => 'link',\n '#title' => t('Cancel'),\n '#href' => 'admin/config/search/current_search/list/' . $item->name . '/edit',\n '#attributes' => array('title' => t('Go back to current search block configuration')),\n );\n\n $form['#submit'][] = 'current_search_delete_item_form_submit';\n\n return $form;\n}",
"function menu_item_delete_submit($form, &$form_state) {\n $form_state['redirect'] = 'admin/structure/menu/item/' . $form_state['values']['mlid'] . '/delete';\n}",
"public function getRemoveActionName()\n {\n return null;\n }",
"public function removeAction(string $name);",
"public function delete() {\n\n $id = $this->request->getParameter(\"actionid\");\n $this->model->delete($id);\n\n // generate view\n $this->redirect(\"psentryreason\");\n }",
"function menu_item_delete_form($form, &$form_state, $item) {\n $form['#item'] = $item;\n return confirm_form($form, t('Are you sure you want to delete the custom menu link %item?', array('%item' => $item['link_title'])), 'admin/structure/menu/manage/' . $item['menu_name']);\n}",
"public function action_delete()\n\t{\n\t\t$element = ORM::Factory($this->_orm_model, $_GET['id']);\n\n\t\tif($_POST)\n\t\t{\n\t\t\tif($_POST['id'] == $element->id)\n\t\t\t{\n\t\t\t\t$element->delete();\n\t\t\t\t$this->request->redirect(Route::get($this->_route_name)->uri(array('controller'=> Inflector::plural($this->_orm_model))));\n\t\t\t}\n\t\t}\n\n\t\t$this->response->body(self::View('crud/'.$this->_template.'/delete')\n\t\t ->set(array('name' => $this->_orm_model,\n\t\t 'element' => $element,\n\t\t 'route' => $this->_route_name))\n\t\t);\n\t}",
"public function actionRemove()\n\t{\n\t\t$id = Yii::app()->request->getPost('id');\n $this->loadModel($id)->delete();\n\n\t}",
"public function deleteItem(FormItem $data): Request\n\t{\n\t\treturn $this->listItem->delete($data['id']);\n\t}",
"function remove() {\n\t\t\n\t\t$index = isset($this->passedArgs['index']) ? $this->passedArgs['index'] : -1;\n\t\t$store_number = isset($this->passedArgs['store']) ? $this->passedArgs['store'] : 1;\n\t\t\n\t\tif ($index > -1) {\n\t\t\t\n\t\t\t$store = $this->Store->findByNumber($store_number);\n\t\t\t$cart = $this->Cart->get($store);\n\t\t\t\n\t\t\tif (isset($cart['OrderDetail'][$index])) {\n\t\t\t\t\n\t\t\t\tunset($cart['OrderDetail'][$index]);\n\t\t\t\t\n\t\t\t\t$cart = $this->Cart->recalculate($cart, $store);\n\t\t\t\t\n\t\t\t\t$this->Cart->save($cart, $store_number);\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->redirect(array('plugin' => 'kaching', 'controller' => 'carts', 'action' => 'view'));\n\t}",
"public function action_delete_item()\n {\n try {\n $type_stub = $this->request->param('id');\n $type = $this->_crud_items[$type_stub];\n $id = $this->request->param('toggle');\n\n if (empty($type)) {\n IbHelpers::set_message('This action cannot be performed on items of type '.$type_stub, 'error popup_box');\n $this->request->redirect('/admin/'.$this->_plugin);\n }\n\n if (!empty($type['delete_permission']) && !Auth::instance()->has_access($type['delete_permission'])) {\n IbHelpers::set_message('You need access to the "'.$type['delete_permission'].'" permission to perform this action.', 'error popup_box');\n $this->request->redirect('/admin/'.$this->_plugin);\n }\n\n $model = ORM::factory($type['model'])->where('id', '=', $id)->find_undeleted();\n $model->delete_and_save();\n\n IbHelpers::set_message(htmlspecialchars($type['name'].' #'.$id.' successfully deleted.'), 'success popup_box');\n\n $name_plural = isset($type['name_plural']) ? $type['name_plural'] : $type['name'].'s';\n $stub_plural = isset($type['stub_plural']) ? $type['stub_plural'] : $type_stub.'s';\n\n $this->request->redirect('/admin/'.$this->_plugin.'/'.$stub_plural);\n }\n catch (Exception $e) {\n Log::instance()->add(Log::ERROR, \"Error deleting\\n\".$e->getMessage().\"\\n\".$e->getTraceAsString());\n IbHelpers::set_message('Unexpected internal error deleting. If this problem continues, please ask an administrator to check the error logs.');\n $this->request->redirect('/admin');\n }\n }",
"function current_search_delete_item_form_submit($form, &$form_state) {\n $name = $form['#current_search']['name'];\n $item = $form['#current_search']['item'];\n\n // Removes item from the current search block configuration.\n if (isset($item->settings['items'][$name])) {\n $label = $item->settings['items'][$name]['label'];\n drupal_set_message(t('@label has been removed.', array('@label' => $label)));\n unset($item->settings['items'][$name]);\n ctools_export_crud_save('current_search', $item);\n }\n\n // Resirects back to current search block configuration page.\n $form_state['redirect'] = 'admin/config/search/current_search/list/' . $item->name . '/edit';\n}",
"public function getDeleteAction()\n {\n return $this->deleteAction;\n }",
"public function deleteAction() {\n if ($id = $this->getRequest()->getParam('item_id')) {\n $name = \"\";\n try {\n // init model and delete\n $model = Mage::getModel('robots/item');\n $model->load($id);\n $name = $model->getName();\n $model->delete();\n // display success message\n Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('robots')->__('Item was successfully deleted'));\n // go to grid\n $this->_redirect('*/*/');\n return;\n } catch (Exception $e) {\n // display error message\n Mage::getSingleton('adminhtml/session')->addError($e->getMessage());\n // go back to edit form\n $this->_redirect('*/*/edit', array('item_id' => $id));\n return;\n }\n }\n // display error message\n Mage::getSingleton('adminhtml/session')->addError(Mage::helper('robots')->__('Unable to find a item to delete'));\n // go to grid\n $this->_redirect('*/*/');\n }",
"public function removeAction(int $id);",
"public function remove()\n\t{\n\t\tJRequest::checkToken() or jexit( 'Invalid Token' );\n\n\t\t$cid = JRequest::getVar( 'cid', array(), 'post', 'array' );\n\t\tJArrayHelper::toInteger($cid);\n\n\t\tif (count( $cid ) < 1) {\n\t\t\tJError::raiseError(500, JText::_( 'Select an item to delete' ) );\n\t\t}\n\n\t\t$model = $this->getModel('feed');\n\t\tif(!$model->delete($cid)) {\n\t\t\techo \"<script> alert('\".$model->getError(true).\"'); window.history.go(-1); </script>\\n\";\n\t\t}\n\n\t\t$this->setRedirect($this->_link);\n\t}",
"public function deleteAction()\n {\n $missionId = $this->getEvent()->getRouteMatch()->getParam('missionId');\n $mission = $this->getMissionService()->findById($missionId);\n $this->getMissionService()->remove($mission);\n\n return $this->redirect()->toRoute('admin/mission/list');\n }",
"function uc_flatrate_terminals_admin_method_edit_form_delete($form, &$form_state) {\n drupal_goto('admin/store/settings/quotes/flatrate-terminals/' . $form_state['values']['mid'] . '/delete');\n}",
"function GetQuestionDeleteAction()\n {\n return \"QuestionDelete\";\n }",
"public function destroy(Form $form, FormItem $formItem, Request $request)\n {\n $itemName = $request->input('name');\n\n // Todo : move away from the schemaless system so that we can obviate\n // functions like this.\n\n $itemIndex = $form->items->pluck('name')->search($itemName);\n\n $form->schema->set(\"meta[$itemIndex]\", null);\n\n $form->save();\n\n return redirect()->route('form.edit', $form)\n ->with('status', \"$itemName has been removed from $form->name form\");\n }",
"public function getModalRemoveSessionFormAction()\n {\n // Форма удаления сессии\n $removeSessionForm = $this->createForm(new RemoveSessionType());\n\n return $this->render('BrainstrapCoreNCBundle:Form:modal_remove_session.html.twig', array(\n 'removeSessionForm' => $removeSessionForm->createView(),\n ));\n }"
] | [
"0.6589807",
"0.64409983",
"0.64216965",
"0.640523",
"0.6335234",
"0.6232288",
"0.61732787",
"0.6166076",
"0.601046",
"0.59102947",
"0.59094054",
"0.590767",
"0.58685845",
"0.5827479",
"0.5790102",
"0.57851255",
"0.5772557",
"0.5769209",
"0.5757006",
"0.57518005",
"0.57161176",
"0.56764996",
"0.56682897",
"0.56682575",
"0.56523734",
"0.5651687",
"0.5634725",
"0.5611249",
"0.5576586",
"0.5558398"
] | 0.70483345 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.