query
stringlengths 10
8.11k
| document
stringlengths 17
398k
| negatives
sequencelengths 19
20
| metadata
dict |
---|---|---|---|
Fonction de redirection par header, meta ou javascript | function redirection($cible = 'index.php' , $type = 'php' , $time = 0)
{
if($type == 'meta' OR $type == 'html' OR $type == 'js')
{
echo '<meta http-equiv="refresh" content="'.$time.'; url='.$cible.'" />';
}elseif($type == 'php' OR $type == 'header')
{
header('location:'.$cible);
}/*elseif($type == 'js')
{
echo '<script language="javascript"
type="text/javascript">
document.location.href="'.$cible.'";
</script>';
}*/
} | [
"function clientRedirect($url)\n\t {\t\t\n\t\t$url=$this->makeSefUrl($url);\n\t\t\tdie(\"<meta HTTP-EQUIV='REFRESH' content='0; url='$url'><script type='text/javascript'>window.location='$url';</script>\");\n\t\t}",
"function helper_js_redirect($value) {\n if (USE_JS_REDIRECT){\necho \"<script>\";\n echo \"window.location = \\\"$value\\\"\"; \n echo \"</script>\";\n }else{\nheader('Refresh: 0;url='.$value.'');\n }\n}",
"function redirect($location) {\n if (!headers_sent())\n header('Location: ' . $location);\n else {\n echo '<script type=\"text/javascript\">';\n echo 'window.location.href=\"' . $location . '\";';\n echo '</script>';\n echo '<noscript>';\n echo '<meta http-equiv=\"refresh\" content=\"0;url=' . $location . '\" />';\n echo '</noscript>';\n }\n die();\n }",
"function hs_do_redirect() {\n\t\tif ($qs = $_SERVER['REQUEST_URI']) {\n\t\t\t$pos = strpos($qs, 'hs_redirect');\n\t\t\tif (!(false === $pos)) { \n\t\t\t\t$link = substr($qs, $pos);\n\t\t\t\t$link = str_replace('hs_redirect=', '', $link);\n\t\n\t\t\t\t// Extract the ID and get the link\n\t\t\t\t$pattern = '/hs_redirect_(\\d+?)\\=/';\n\t\t\t\tpreg_match($pattern, $link, $matches);\n\t\t\t\t$link = preg_replace($pattern, '', $link);\n\t\n\t\t\t\t// Save click!\n\t\t\t\t//if (get_option('administer_statistics') == 'true') { \n\t\t\t\t\t$id = $matches[1];\n\t\t\t\t\tif(!$this->is_bot($_SERVER['HTTP_USER_AGENT'])){\n\t\t\t\t\t\t$this->hs_register_click($id);\n\t\t\t\t\t}\n\t\t\t\t//}\n\t\n\t\t\t\t// Redirect\n\t\t\t\theader(\"HTTP/1.1 302 Temporary Redirect\");\n\t\t\t\theader(\"Location:\" . $link);\n\t\t\t\t// I'm outta here!\n\t\t\t\texit(1);\n\t\t\t}\n\t\t} \n\t}",
"public function protectHeaderRedirect()\n {\n foreach (apache_response_headers() as $key => $value)\n {\n\n if (strtolower($key) == \"location\")\n {\n $href = $this->protectUrl($value, 'GET');\n\n if ($href !== false)\n {\n header(\"$key: $href\");\n return;\n }\n }\n }\n }",
"function header_redirect($second,$uri){\n\t\t\t$html = \"<META HTTP-EQUIV=Refresh CONTENT=\\\"$second; URL=$uri\\\">\n\t\t\t\t\t<title>Redirection</title>\";\n\t\t\treturn $html;\n\t\t}",
"protected function _doRedirect() {\n\t\theader(\"Location: {$this->_currVisit->redirect}\", 302);\n\t\texit; \n\t}",
"public function redirect()\n\t{\n\t\t$url = Piwik_Common::getRequestVar('url', '', 'string', $_GET);\n\n\t\t// validate referrer\n\t\t$referrer = Piwik_Url::getReferer();\n\t\tif(!empty($referrer) && !Piwik_Url::isLocalUrl($referrer))\n\t\t{\n\t\t\tdie('Invalid Referer detected - check that your browser sends the Referer header. <br/>The link you would have been redirected to is: '.$url);\n\t\t\texit;\n\t\t}\n\n\t\t// mask visits to *.piwik.org\n\t\tif(self::isPiwikUrl($url))\n\t\t{\n\t\t\techo\n'<html><head>\n<meta http-equiv=\"refresh\" content=\"0;url=' . $url . '\" />\n</head></html>';\n\t\t}\n\t\texit;\n\t}",
"public function mustRedirect();",
"function redirect_to($url){\n if (!headers_sent()){ //If headers not sent yet... then do php redirect\n header('Location: '.$url); exit;\n }else{ //If headers are sent... do javascript redirect... if java disabled, do html redirect.\n echo '<script type=\"text/javascript\">';\n echo 'window.location.href=\"'.$url.'\";';\n echo '</script>';\n echo '<noscript>';\n echo '<meta http-equiv=\"refresh\" content=\"0;url='.$url.'\" />';\n echo '</noscript>'; exit;\n }\n}",
"public function redirect(){\n $route = $this->get();\n if(!empty($route)){\n header('Location: '.$route);\n exit();\n }\n }",
"function redirect($url){\n\tif (!headers_sent()){ //If headers not sent yet... then do php redirect\n\t\theader('Location: '.$url); exit;\n\t}else{ //If headers are sent... do java redirect... if java disabled, do html redirect.\n\t\techo '<script type=\"text/javascript\">';\n\t\techo 'window.location.href=\"'.$url.'\";';\n\t\techo '</script>';\n\t\techo '<noscript>';\n\t\techo '<meta http-equiv=\"refresh\" content=\"0;url='.$url.'\" />';\n\t\techo '</noscript>'; exit;\n\t}\n}",
"static public function redirect($url)\n\t{\n\t\t// Headers already sent, this is the best we can do\n\t\tif (headers_sent()) {\n\t\t\t$html = '<meta http-equiv=\"refresh\" content=\"0;url='.$url.'\" />';\n\t\t\t$html .= '<script type=\"text/javascript\">window.location=\"'.Orb_String::addslashesJs($url).'\";</script>';\n\t\t\techo $html;\n\n\t\t// Standard header\n\t\t} else {\n\t\t\theader('Location: ' . Strings::getFirstLine($url));\n\t\t}\n\n\t\texit;\n\t}",
"function page_redirect($url)\n\t\t{\n\t\t\tprint \"<script>\";\n\t\t\tprint \" self.location='$url'\"; // Comment this line if you don't want to redirect\n\t\t\tprint \"</script>\";\n\t\t}",
"public function Redirect($page){\r\necho \"<script type=\\\"text/javascript\\\">\t\";\r\necho \"document.location = '\".$page.\"' \";\r\necho \"</script>\";\r\n}",
"function print_header_redirect( $p_url, $p_die=true ) {\n\t\t$t_use_iis = config_get( 'use_iis');\n\n\t\tif ( ON == config_get( 'stop_on_errors' ) && error_handled() ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif ( OFF == $t_use_iis ) {\n\t\t\theader( 'Status: 302' );\n\t\t}\n\t\theader( 'Content-Type: text/html' );\n\t\theader( 'Pragma: no-cache' );\n\t\theader( 'Expires: Fri, 01 Jan 1999 00:00:00 GMT' );\n\t\theader( 'Cache-control: no-cache, no-cache=\"Set-Cookie\", private' );\n\t\tif ( ON == $t_use_iis ) {\n\t\t\theader( \"Refresh: 0;url=$p_url\" );\n\t\t} else {\n\t\t\theader( \"Location: $p_url\" );\n\t\t}\n\n\t\tif ( $p_die ) {\n\t\t\tdie; # additional output can cause problems so let's just stop output here\n\t\t}\n\n\t\treturn true;\n\t}",
"function redirect() {\n $isProtected = false;\n $isLanding = (DeMomentsomtresTools::get_option(self::OPTIONS, 'landing_mode', '') != ''); //checks if is landing\n $url = $_SERVER[\"REQUEST_URI\"];\n $protectedPrefixs = array(\n \"wp-login\",\n \"wp-admin\",\n \"wp-content\",\n );\n foreach ($protectedPrefixs as $prefix):\n if (!(strpos($url, $prefix) === false)):\n $isProtected = true;\n endif;\n endforeach;\n if (!$isProtected):\n if ($isLanding):\n wp_redirect($this->destination(), 301);\n exit;\n endif;\n endif;\n }",
"public function redirect()\n {\n // TODO: Implement redirect() method.\n }",
"public function actionRedirect_to_main()\r\n\t{\r\n\t//\tprint ($redirect);\r\n\t//\tvar_dump(main_site);\r\n\t//\theader($redirect);\r\n\t\theader('Location: https://akademorto.kz/');\r\n\t//\tdie();\r\n\t\texit();\r\n\t\r\n\t//\treturn 0;\r\n\t\t\t\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the trs code tarif3. | public function setTrsCodeTarif3(?string $trsCodeTarif3): Clients2 {
$this->trsCodeTarif3 = $trsCodeTarif3;
return $this;
} | [
"public function setTrsCodeTarif3Sens($trsCodeTarif3Sens) {\n $this->trsCodeTarif3Sens = $trsCodeTarif3Sens;\n return $this;\n }",
"public function getTrsCodeTarif5() {\n return $this->trsCodeTarif5;\n }",
"public function getTrsCodeTarif6() {\n return $this->trsCodeTarif6;\n }",
"public function testSetPrixNetTr3() {\n\n $obj = new Tarifs();\n\n $obj->setPrixNetTr3(true);\n $this->assertEquals(true, $obj->getPrixNetTr3());\n }",
"public function setTrCCaisse3($trCCaisse3) {\n $this->trCCaisse3 = $trCCaisse3;\n return $this;\n }",
"public function setTrsCodeTarif6($trsCodeTarif6) {\n $this->trsCodeTarif6 = $trsCodeTarif6;\n return $this;\n }",
"public function setCodeTransporteur3($codeTransporteur3) {\n $this->codeTransporteur3 = $codeTransporteur3;\n return $this;\n }",
"public function getTrsCodeTarif3Sens() {\n return $this->trsCodeTarif3Sens;\n }",
"public function getTrsCodeTarif4(): ?string {\n return $this->trsCodeTarif4;\n }",
"public function setTrsCodeTarif4(?string $trsCodeTarif4): Clients2 {\n $this->trsCodeTarif4 = $trsCodeTarif4;\n return $this;\n }",
"function setFutureUse3($txt)\n {\n $this->_future_use_3 = $txt ;\n }",
"public function setCoeffTr3(?float $coeffTr3): Tarifs {\n $this->coeffTr3 = $coeffTr3;\n return $this;\n }",
"public function testSetCodeTarifArt() {\n\n $obj = new Articles();\n\n $obj->setCodeTarifArt(\"codeTarifArt\");\n $this->assertEquals(\"codeTarifArt\", $obj->getCodeTarifArt());\n }",
"public function getCodeTarif()\n {\n return $this->codeTarif;\n }",
"public function testSetTvatlraIban3() {\n\n $obj = new Dossier4();\n\n $obj->setTvatlraIban3(\"tvatlraIban3\");\n $this->assertEquals(\"tvatlraIban3\", $obj->getTvatlraIban3());\n }",
"public function getTrsCodeTarif4Sens() {\n return $this->trsCodeTarif4Sens;\n }",
"public function testSetTvatlraBic3() {\n\n $obj = new Dossier4();\n\n $obj->setTvatlraBic3(\"tvatlraBic3\");\n $this->assertEquals(\"tvatlraBic3\", $obj->getTvatlraBic3());\n }",
"public function setTrsCodeTarif6(?string $trsCodeTarif6): Clients2 {\n $this->trsCodeTarif6 = $trsCodeTarif6;\n return $this;\n }",
"public function testSetCodeIntitContratTrav() {\n\n $obj = new EmpDadsuGene();\n\n $obj->setCodeIntitContratTrav(\"codeIntitContratTrav\");\n $this->assertEquals(\"codeIntitContratTrav\", $obj->getCodeIntitContratTrav());\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the 'sylius.controller.shipment' service. This service is shared. This method always returns the same instance of the service. | protected function getSylius_Controller_ShipmentService()
{
$this->services['sylius.controller.shipment'] = $instance = new \Sylius\Bundle\ShippingBundle\Controller\ShipmentController($this->get('sylius.controller.configuration_factory')->createConfiguration('sylius', 'shipment', NULL));
$instance->setContainer($this);
return $instance;
} | [
"protected function getSylius_EmailManager_ShipmentService()\n {\n return $this->services['sylius.email_manager.shipment'] = new \\Sylius\\Bundle\\AdminBundle\\EmailManager\\ShipmentEmailManager(${($_ = isset($this->services['sylius.email_sender']) ? $this->services['sylius.email_sender'] : $this->get('sylius.email_sender')) && false ?: '_'});\n }",
"protected function getSylius_Factory_ShipmentService()\n {\n return $this->services['sylius.factory.shipment'] = new \\Sylius\\Component\\Resource\\Factory\\Factory('Sylius\\\\Component\\\\Core\\\\Model\\\\Shipment');\n }",
"public function getShipment()\n {\n return Mage::registry('current_shipment');\n }",
"public function getShipment()\n {\n return $this->shipment;\n }",
"protected function getSylius_Controller_ShipmentUnitService()\n {\n $this->services['sylius.controller.shipment_unit'] = $instance = new \\Sylius\\Bundle\\ResourceBundle\\Controller\\ResourceController(${($_ = isset($this->services['sylius.resource_registry']) ? $this->services['sylius.resource_registry'] : $this->getSylius_ResourceRegistryService()) && false ?: '_'}->get('sylius.shipment_unit'), ${($_ = isset($this->services['sylius.resource_controller.request_configuration_factory']) ? $this->services['sylius.resource_controller.request_configuration_factory'] : $this->getSylius_ResourceController_RequestConfigurationFactoryService()) && false ?: '_'}, ${($_ = isset($this->services['sylius.resource_controller.view_handler']) ? $this->services['sylius.resource_controller.view_handler'] : $this->getSylius_ResourceController_ViewHandlerService()) && false ?: '_'}, ${($_ = isset($this->services['sylius.repository.shipment_unit']) ? $this->services['sylius.repository.shipment_unit'] : $this->get('sylius.repository.shipment_unit')) && false ?: '_'}, ${($_ = isset($this->services['sylius.factory.shipment_unit']) ? $this->services['sylius.factory.shipment_unit'] : $this->get('sylius.factory.shipment_unit')) && false ?: '_'}, ${($_ = isset($this->services['sylius.resource_controller.new_resource_factory']) ? $this->services['sylius.resource_controller.new_resource_factory'] : $this->getSylius_ResourceController_NewResourceFactoryService()) && false ?: '_'}, ${($_ = isset($this->services['doctrine.orm.default_entity_manager']) ? $this->services['doctrine.orm.default_entity_manager'] : $this->get('doctrine.orm.default_entity_manager')) && false ?: '_'}, ${($_ = isset($this->services['sylius.resource_controller.single_resource_provider']) ? $this->services['sylius.resource_controller.single_resource_provider'] : $this->getSylius_ResourceController_SingleResourceProviderService()) && false ?: '_'}, ${($_ = isset($this->services['sylius.resource_controller.resources_collection_provider']) ? $this->services['sylius.resource_controller.resources_collection_provider'] : $this->getSylius_ResourceController_ResourcesCollectionProviderService()) && false ?: '_'}, ${($_ = isset($this->services['sylius.resource_controller.form_factory']) ? $this->services['sylius.resource_controller.form_factory'] : $this->getSylius_ResourceController_FormFactoryService()) && false ?: '_'}, ${($_ = isset($this->services['sylius.resource_controller.redirect_handler']) ? $this->services['sylius.resource_controller.redirect_handler'] : $this->getSylius_ResourceController_RedirectHandlerService()) && false ?: '_'}, ${($_ = isset($this->services['sylius.resource_controller.flash_helper']) ? $this->services['sylius.resource_controller.flash_helper'] : $this->getSylius_ResourceController_FlashHelperService()) && false ?: '_'}, ${($_ = isset($this->services['sylius.resource_controller.authorization_checker']) ? $this->services['sylius.resource_controller.authorization_checker'] : $this->get('sylius.resource_controller.authorization_checker')) && false ?: '_'}, ${($_ = isset($this->services['sylius.resource_controller.event_dispatcher']) ? $this->services['sylius.resource_controller.event_dispatcher'] : $this->getSylius_ResourceController_EventDispatcherService()) && false ?: '_'}, ${($_ = isset($this->services['sylius.resource_controller.state_machine']) ? $this->services['sylius.resource_controller.state_machine'] : $this->getSylius_ResourceController_StateMachineService()) && false ?: '_'}, ${($_ = isset($this->services['sylius.custom_resource_controller.resource_update_handler']) ? $this->services['sylius.custom_resource_controller.resource_update_handler'] : $this->getSylius_CustomResourceController_ResourceUpdateHandlerService()) && false ?: '_'}, ${($_ = isset($this->services['sylius.resource_controller.resource_delete_handler']) ? $this->services['sylius.resource_controller.resource_delete_handler'] : $this->getSylius_ResourceController_ResourceDeleteHandlerService()) && false ?: '_'});\n\n $instance->setContainer($this);\n\n return $instance;\n }",
"protected function getSylius_OrderProcessing_ShipmentFactoryService()\n {\n return $this->services['sylius.order_processing.shipment_factory'] = new \\Sylius\\Component\\Core\\OrderProcessing\\ShipmentFactory($this->get('sylius.repository.shipment'));\n }",
"protected function getSylius_Controller_ShippingMethodService()\n {\n $this->services['sylius.controller.shipping_method'] = $instance = new \\Sylius\\Bundle\\ResourceBundle\\Controller\\ResourceController($this->get('sylius.controller.configuration_factory')->createConfiguration('sylius', 'shipping_method', NULL));\n\n $instance->setContainer($this);\n\n return $instance;\n }",
"protected function getSylius_OrderProcessing_ShippingProcessorService()\n {\n return $this->services['sylius.order_processing.shipping_processor'] = new \\Sylius\\Component\\Core\\OrderProcessing\\ShippingChargesProcessor($this->get('sylius.repository.adjustment'), $this->get('sylius.shipping_calculator'));\n }",
"public function getShipmentId()\n {\n return $this->shipmentId;\n }",
"private function getOrderShipmentDetailsService()\n {\n if ($this->orderShipmentDetailsService === null) {\n $this->orderShipmentDetailsService = ServiceRegister::getService(OrderShipmentDetailsService::CLASS_NAME);\n }\n\n return $this->orderShipmentDetailsService;\n }",
"public function getShippingService()\n {\n return $this->shippingService;\n }",
"public function getGlsShipment()\n {\n return Mage::getModel('synergeticagency_gls/shipment')->load( $this->getShipment()->getId(), 'shipment_id');\n }",
"public function _getShipmentId() {\n\t\treturn $this->_shipmentId;\n\t}",
"protected function getSylius_Listener_OrderShippingService()\n {\n return $this->services['sylius.listener.order_shipping'] = new \\Sylius\\Bundle\\CoreBundle\\EventListener\\OrderShippingListener($this->get('sylius.order_processing.shipment_factory'), $this->get('sylius.processor.shipment_processor'), $this->get('sylius.order_processing.shipping_processor'));\n }",
"public function getItemShipment()\n {\n if ($this->itemShipmentItem == null) {\n $this->itemShipmentItem = Mage::getModel('sales/order_shipment_item')->getCollection()->addFieldToFilter(\n 'order_item_id', $this->getId()\n )->getFirstItem();\n }\n\n return $this->itemShipmentItem;\n }",
"protected function getSylius_StateResolver_OrderShippingService()\n {\n return $this->services['sylius.state_resolver.order_shipping'] = new \\Sylius\\Component\\Core\\StateResolver\\OrderShippingStateResolver(${($_ = isset($this->services['sm.factory']) ? $this->services['sm.factory'] : $this->get('sm.factory')) && false ?: '_'});\n }",
"private function get_order_shipment_details_service()\n\t{\n\t\t/** @var OrderShipmentDetailsService $orderShipmentDetailsService */\n\t\t$orderShipmentDetailsService = ServiceRegister::getService( OrderShipmentDetailsService::CLASS_NAME );\n\n\t\treturn $orderShipmentDetailsService;\n\t}",
"public function getConsolidatedShipment()\n {\n return $this->consolidatedShipment;\n }",
"public function getShipment()\r\n {\r\n return $this->fields['Shipment']['value'];\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if 'playtime_forever' has a value | public function hasPlaytimeForever()
{
return $this->playtime_forever !== null;
} | [
"public function isPlayable() {\r\n if($this->getMinutesToWait() <= 0){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }",
"public function hasTimeLimitReached(): bool;",
"public function hasTimeLimitReached();",
"public function hasTimeLimitReached(): bool\n\t{\n\t\treturn $this->instanceTimer()->hasTimeLimitReached();\n\t}",
"function check_phone_home_timer()\n\t{\n\t\t$time_update\t\t= sql_get_singlevalue(\"SELECT value FROM config WHERE name='PHONE_HOME_TIMER' LIMIT 1\");\n\t\t$time_current\t\t= mktime();\n\n\t\tif (($time_update + 43200) < $time_current)\n\t\t{\n\t\t\t// time to phone home (been more than 12 hours since last attempt)\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn 0;\n\n\t}",
"function is_nowplaying(){\n\tif ($GLOBALS['match']['name']=='nowplaying' || $GLOBALS['match']['name']=='nowplayingpaged'):\n\t\treturn true;\n\telse:\n\t\treturn false;\n\tendif;\n}",
"public function hasTimeLimitReached()\n\t{\n\t\treturn $this->instanceTimer()->hasTimeLimitReached();\n\t}",
"public function hasFlowTime()\n {\n return $this->get(self::FLOWTIME) !== null;\n }",
"public function hasTime(): bool\n {\n return preg_match('/[0-9]*T[0-9]*/', $this->value) == 1;\n }",
"public function has_time() {\n return in_array( $this->duration_unit, array( 'hour', 'minute' ) );\n }",
"public function hasTimeLimit()\n {\n return (null !== $this->timeLimit);\n }",
"public function hasDuration(): bool;",
"public function hasPlaytime2weeks()\n {\n return $this->playtime_2weeks !== null;\n }",
"function site_status_check() {\n $now = time();\n $ret = true;\n \n if(date('D', $now) == 'Fri' && date('H', $now) >= PROD_END_HOUR) {\n // End of the work week. Pause the site\n pause_site();\n $ret = false;;\n } else if(date('D', $now) == 'Mon' && date('H', $now) >= 8) {\n // Beginning of the work week. Resume the site\n resume_site();\n }\n return 1;\n}",
"function checkRetrieve()\r\n\t{\r\n\t\tif (!get_option('twt_every') || !get_option('twt_last_checked')) return true;\r\n\t\tif ((time() - $this->toSeconds(get_option('twt_every'))) > get_option('twt_last_checked')) return true;\t\t\t\t\r\n\t\treturn false;\r\n\t}",
"public function hasSvrtime()\n {\n return $this->get(self::SVRTIME) !== null;\n }",
"public function getHasEndTime() {\n\t\treturn $this->endTime > -1;\n\t}",
"private function _playerIsDefined(){\n\t\treturn $this->player->getId()>0;\n\t}",
"static function timerExists($task = 'default') {\n\t\treturn (isset(self::$starttime[$task]));\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find a logged call. | public static function find($reference, $call = null, $reset = true) {
if ($reset) {
static::$_index = 0;
}
if ($call === null) {
return static::_findAll($reference);
}
$index = static::$_index;
$count = count(static::$_logs);
for ($i = $index; $i < $count; $i++) {
$log = static::$_logs[$i];
if (!static::_matchReference($reference, $log)) {
continue;
}
if ($call->match($log)) {
static::$_index = $i + 1;
return $log;
}
}
return false;
} | [
"function CabGetCall($log) {\n // Scan for the CALLSIGN: header\n // if (preg_match(\"/^CALLSIGN:[\\s{0,}|\\t{0,}]([\\w|\\W]+?)[\\s|\\n]/ms\", $log, $match)) {\n // return($match[1]);\n // }\n\n // Scan for the first QSO record...\n if (preg_match(\"/(QSO:.*\\n)/ms\", $log, $match)) {\n // Got a QSO record... clean it up and split it into fields\n $q = $match[1];\n $q = CabCleanQRec($q);\n $f = explode(' ', $q);\n $f[5] = preg_replace('/\\//', '-', $f[5]);\n return($f[5]);\t// Cabrillo log should have this!\n }\n\n pd(\" Can't find CALLSIGN for this log\");\n exit(1);\n}",
"protected function findAssociatedCallNumber()\n {\n if ($this->associatedCallNumber) {\n return $this->associatedCallNumber;\n }\n $firstRev = $this->revisions->first();\n $class = $firstRev->revisionable_type;\n $instance =\n $class::withTrashed()->findOrFail($firstRev->revisionable_id);\n if (! array_key_exists($firstRev->revisionable_type, $this->baseClasses)) {\n $instance = $instance->superclass;\n }\n $this->associatedCallNumber = $instance->call_number;\n\n return $instance->call_number;\n }",
"public function getCall();",
"public function find($call_id)\n\t{\n\t\t$request = new Request();\n\t\t$request->send('call.get', [ $call_id ]);\n\t\treturn $request->getOutput();\n\t}",
"public function getCallTracked()\n {\n return isset($this->call_tracked) ? $this->call_tracked : null;\n }",
"public function getLoggedCalls()\n\t{\n\t\treturn $this->calls;\n\t}",
"public function findCaller() {\n $driver_namespace = Database::getConnectionInfo($this->connectionKey)['default']['namespace'];\n $stack = static::removeDatabaseEntries($this->getDebugBacktrace(), $driver_namespace);\n\n // Return the first function call whose stack entry has a 'file' key, that\n // is, it is not a callback or a closure.\n for ($i = 0; $i < count($stack); $i++) {\n if (!empty($stack[$i]['file'])) {\n return [\n 'file' => $stack[$i]['file'],\n 'line' => $stack[$i]['line'],\n 'function' => $stack[$i + 1]['function'],\n 'class' => $stack[$i + 1]['class'] ?? NULL,\n 'type' => $stack[$i + 1]['type'] ?? NULL,\n 'args' => $stack[$i + 1]['args'] ?? [],\n ];\n }\n }\n }",
"public function getCall()\n {\n return $this->call;\n }",
"function logCall() {\n\t\t$this->insertCall();\n\t\t$this->incrementsUsage();\n\t}",
"public function getCallRecord($open_id){\n $result = $this->getRawData($open_id);\n if($result['code'] != 0){\n return $result;\n }\n $callRecord = $result['raw_data']['transactions'][0]['calls'];\n return $callRecord;\n }",
"public function get_current_phone_call()\n {\n // without an assignment there can be no current call\n $db_assignment = $this->get_current_assignment();\n if( is_null( $db_assignment) ) return NULL;\n\n // query for phone calls which do not have a end time\n $modifier = lib::create( 'database\\modifier' );\n $modifier->where( 'end_datetime', '=', NULL );\n $phone_call_list = $db_assignment->get_phone_call_list( $modifier );\n\n // only one phone call should ever be open at a time, warn if this isn't the case\n if( 1 < count( $phone_call_list ) )\n log::crit(\n sprintf( 'User %s has more than one active phone call!',\n $this->get_user()->name ) );\n\n return 1 == count( $phone_call_list ) ? current( $phone_call_list ) : NULL;\n }",
"private function logCall() {\r\n $log = new Log();\r\n $log->method = $this->request->getHttpMethod();\r\n $log->endpoint = substr(isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '/', strlen(Environment::i()->getBasePath()));\r\n $log->ip_addr = $this->request->getClientIP();\r\n $log->save();\r\n }",
"public function findOriginalCall(int $pid): ?Call\n {\n foreach ($this->calls as $call) {\n if ($call->getPid() == $pid) {\n return $call;\n }\n }\n return null;\n }",
"public function getCallInfo();",
"function get_user_from_callsign($localcallsign){\n\t// Name recorded most frequently associated with that callsign.\n\n\t// For example I usually record myself as \"Dan\" but sometimes when I first started\n\t// keeping track, I used my initial: \"desl\". This function finds what has been used\n\t// most frequently and returns that.\n\n\trequire('phpsqlsearch_dbinfo.php');\n\n\t$pdostring = 'mysql:host=' . $servername .';dbname=' . $dbname .';charset=utf8mb4';\n\t$db = new PDO($pdostring, $username, $password);\n\t$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t$db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);\n\n\t$stmt = $db->prepare(\"SELECT user, COUNT(*) AS magnitude FROM Checkins WHERE callsign = ? GROUP BY user ORDER BY magnitude DESC LIMIT 1\");\n\t$stmt->execute(array($localcallsign));\n\t$resulting_user = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\n\treturn $resulting_user[0]['user'];\n\n}",
"public function getCallId() {\n return $this->callId;\n }",
"public function getCallId()\n {\n return $this->callId;\n }",
"public function getCallByID($CALLID){\n __loadclass('database');\n $database = new database($GLOBALS['scaneyes_db_config']);\n\n $result = $database->select('calls',\"*\",['TIME[=]'=>$CALLID]);\n if ($result){\n foreach ($result as $resultNumber => $resultData) { // allows multiple queries per object instance\n $this->CALL[] = $resultData;\n }\n return true;\n }else{\n return false;\n }\n }",
"function get_call_record($call_sid) {\n if (preg_match('/^[A=Za-z0-9]{4,}$/', $call_sid) === 1) {\n $sql = 'SELECT\n *\n FROM\n calls\n WHERE\n CallSid = :CallSid';\n $stmt = $this->db->prepare($sql);\n if ($stmt) {\n $stmt->bindParam(':fieldname', $call_sid, PDO::PARAM_STR);\n if ($stmt->execute()) {\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n if ($row !== FALSE) {\n // Success, return the array from the db row.\n return $row;\n }\n else {\n error_log(__FILE__ . ': ' . __METHOD__ . ': ' . __LINE__ .\n ': Error fetching record');\n }\n }\n else {\n error_log(__FILE__ . ': ' . __METHOD__ . ': ' . __LINE__ .\n ': Error executing SQL statement');\n }\n }\n else {\n error_log(__FILE__ . ': ' . __METHOD__ . ': ' . __LINE__ .\n ': Error preparing SQL statement');\n }\n }\n else {\n error_log(__FILE__ . ': ' . __METHOD__ . ': ' . __LINE__ .\n ': Invalid $call_sid value');\n }\n\n // Some error occurred.\n return FALSE;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return the seat that belongs to a vehicle | public function seat()
{
return $this->belongsTo(VehicleSeat::class);
} | [
"public function getSeat()\n {\n return $this->seat;\n }",
"public function getSeat()\n {\n return $this->hasOne(Seat::class, ['id' => 'seatId']);\n }",
"public function getReservation($seat_id)\n {\n return ($this->reservations[$seat_id]);\n }",
"public function getSeatid()\n {\n return $this->seatid;\n }",
"public function seat()\n {\n return $this->hasOne(Seat::class,'id');\n }",
"public function getSeatAvailability() {\n return $this->seatAvailability;\n }",
"public function getReservedSeat(int $id);",
"public function getSeatById($id)\n {\n }",
"public function getVehicle()\n {\n return $this->vehicle;\n }",
"public function getSingleVehicle(): Vehicle\n {\n return $this->vehicle;\n }",
"public function getSeatReservations()\n {\n return isset($this->SeatReservations) ? $this->SeatReservations : null;\n }",
"public function getSeatPref()\n {\n return $this->seatPref;\n }",
"public function viewOneReserve($time_id,$seat_id){\n $sql = \"SELECT * FROM reserve_tbl INNER JOIN time_tbl ON reserve_tbl.time_id=time_tbl.time_id INNER JOIN seat_tbl ON reserve_tbl.seat_id=seat_tbl.seat_id INNER JOIN user_tbl ON reserve_tbl.login_id=user_tbl.login_id WHERE time_tbl.time_id='$time_id' AND seat_tbl.seat_id='$seat_id'\";\n $result = $this->conn->query($sql);\n\n if($result->num_rows >= 0){\n $row = array();\n while($rows = $result->fetch_assoc()){\n $row[] = $rows;\n }\n return $row;\n }else{\n return FALSE;\n }\n }",
"public function getseat_preference()\n {\n return $this->seat_preference;\n }",
"public function getSeatNo()\n {\n return $this->seat_no;\n }",
"public function getSeatNumber()\n {\n return $this->seatNumber;\n }",
"public function vehicle()\n {\n return Vehicles::all()->lists('registration','registration');\n }",
"public function getToSeatid()\n {\n return $this->toSeatid;\n }",
"public function getSeatNumber()\n {\n return $this->seatNumber;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get_enrolled_employees($roleid, $userid) returns an array of user ids that resemble the userid's the user is enrolled in | static public function get_enrolled_employees($roleid, $userid) {
global $DB;
$list = array();
$sql = "SELECT c.instanceid
FROM {context} AS c
JOIN {role_assignments} AS ra ON ra.contextid = c.id
WHERE ra.roleid='{$roleid}'
AND ra.userid='{$userid}'";
$list = array_keys($DB->get_records_sql($sql));
return $list;
} | [
"protected function getIncludedEmployeeIDs() {\n\n /* Set necessary data */\n $companies = $this->getCompanyIDs($this->user, 'Adding/Editing of Learning Activities'); \n $ids = [];\n\n foreach($companies as $key => $tmpCompany) {\n\n /* Check if role is null, meaning all companies */\n if(!$tmpCompany)\n return User::withTrashed()->get()->pluck('id')->toArray();\n\n\n /* Fetch company */\n $company = Company::withTrashed()->findOrFail($tmpCompany);\n\n\n foreach($company->divisions as $division) {\n foreach($division->departments as $department) {\n\n /* Merge the employee IDs */\n $ids = array_merge($ids, $department->employees()->pluck('employee_id')->toArray());\n }\n }\n }\n\n /* Include self */\n $ids = array_merge($ids, [$this->user->id]); \n\n\n return $ids;\n }",
"protected function fetchEmployees($id,$role)\n {\n $a = [$id];\n if($role == 'child_id') $role2 = 'parent_id';\n else $role2 = 'child_id';\n for ($i=0; $i < sizeof($a); $i++) {\n $m = (new \\yii\\db\\Query())->select($role2)->from('roles')->where([$role=>$a[$i]]);\n $ids = $m->createCommand()->queryAll();\n foreach ($ids as $id) {\n if (!in_array($id[$role2], $a)) {\n array_push($a,$id[$role2]);\n }\n }\n }\n $b = array_slice($a,1,sizeof($a));\n $managers = (new \\yii\\db\\Query())->select('*')->from('bas_user')->where(['user_id'=>$b]);\n $man = $managers->createCommand()->queryAll();\n return $man;\n }",
"private function getEmployeesIDs() {\n return DB::table('dx_users as u')\n ->select('u.id')\n ->whereExists(function ($query) {\n $query->select(DB::raw(1))\n ->from('dx_users_accrual_policies as a')\n ->whereRaw('a.user_id = u.id')\n ->where('a.timeoff_type_id', '=', $this->argument('timeoff_id'))\n ->whereNull('a.end_date');\n })\n ->get();\n }",
"public function getEmployeeIds(): array;",
"function get_array_of_enrolled_courses($user_id)\n{\n $enrolled_courses = enrol_get_users_courses($user_id);\n $courses = array();\n\n foreach ($enrolled_courses as $value) {\n array_push($courses, $value->id);\n }\n return $courses;\n}",
"public function getEmployeeIds(): array\n {\n $this->ensureIdsFetched();\n return $this->employeeIds;\n }",
"function get_all_userids_with_role($role) {\n global $wpdb;\n $userids_in_role = array();\n \n if ( $userids = $this->get_all_user_ids() ) {\n foreach($userids as $userid) {\n $user = new WP_User($userid);\n $user->roles = $this->fill_array_keys_with_true( $user->roles );\n if ( in_array($role, array_keys($user->roles))) {\n $userids_in_role[]=$userid;\n }\n }\n }\n return $userids_in_role;\n }",
"function getRoleUserIds($roleId) {\n\tglobal $log, $adb;\n\t$log->debug('> getRoleUserIds '.$roleId);\n\t$query = 'select vtiger_user2role.*,vtiger_users.user_name from vtiger_user2role inner join vtiger_users on vtiger_users.id=vtiger_user2role.userid where roleid=?';\n\t$result = $adb->pquery($query, array($roleId));\n\t$num_rows=$adb->num_rows($result);\n\t$roleRelatedUsers=array();\n\tfor ($i=0; $i<$num_rows; $i++) {\n\t\t$roleRelatedUsers[]=$adb->query_result($result, $i, 'userid');\n\t}\n\t$log->debug('< getRoleUserIds');\n\treturn $roleRelatedUsers;\n}",
"public function getEmployees() {\n\n /* Fetch all included employee IDs */\n $employeeIDs = $this->getIncludedEmployeeIDs();\n\n\n /* Set orWhereIn variables */\n array_push($this->whereIn, [\n 'column' => 'employee_id',\n 'array' => $employeeIDs\n ]);\n }",
"public function test_get_enrolled_users_without_parameters() {\n $capability = 'moodle/course:viewparticipants';\n $data = $this->get_enrolled_users_setup($capability);\n\n // Call the external function.\n $enrolledusers = core_enrol_external::get_enrolled_users($data->course->id);\n\n // We need to execute the return values cleaning process to simulate the web service server.\n $enrolledusers = external_api::clean_returnvalue(core_enrol_external::get_enrolled_users_returns(), $enrolledusers);\n\n // Check the result set.\n $this->assertEquals(3, count($enrolledusers));\n $this->assertArrayHasKey('email', $enrolledusers[0]);\n }",
"function buggm_get_user_ids_by_role($role){\n $ids=array();\n $users=get_users(array('role'=>$role));\n foreach((array)$users as $user){\n $ids[]=$user->ID;\n }\n return $ids;\n}",
"public function getAllEmployees()\n {\n $employees = $this->userModel->whereHas('roles', function($q){\n $q->where('name','=','employee');\n })->get();\n\n if(!$employees || $employees->isEmpty())\n {\n throw new \\Exception(trans('reports.no_employee'));\n }\n\n return $employees;\n }",
"function getRoleAndSubordinateUserIds($roleId) {\n\tglobal $log, $adb;\n\t$log->debug('> getRoleAndSubordinateUserIds '.$roleId);\n\t$roleInfoArr=getRoleInformation($roleId);\n\t$parentRole=$roleInfoArr[$roleId][1];\n\t$query = 'select vtiger_user2role.userid\n\t\tfrom vtiger_user2role\n\t\tinner join vtiger_role on vtiger_role.roleid=vtiger_user2role.roleid\n\t\twhere vtiger_role.parentrole like ?';\n\t$result = $adb->pquery($query, array($parentRole.'%'));\n\t$roleRelatedUsers=array();\n\twhile ($row = $adb->getNextRow($result, false)) {\n\t\t$roleRelatedUsers[] = $row[0];\n\t}\n\t$log->debug('< getRoleAndSubordinateUserIds');\n\treturn $roleRelatedUsers;\n}",
"public function getEmployeesByRole($role)\n {\n $employees = new ArrayCollection();\n\n /* @var \\Organizations\\Entity\\Employee $employee */\n foreach ($this->getEmployees() as $employee) {\n if ($role === $employee->getRole()) {\n $employees->add($employee);\n }\n }\n\n return $employees;\n }",
"function enroll_worker($courseid, $mdluserid){\n if(!is_enrolled($context, $mdluserid)){\n $manual = enrol_get_plugin('manual');\n\n $instances = enrol_get_instances($courseid, false);\n foreach($instances as $instance){\n if($instance->enrol == 'manual'){\n $winner = $instance;\n break;\n }\n }\n\n if(isset($winner)){\n $roleid = $DB->get_field('role', 'id', array(\n 'archetype'=>'student'));\n if($roleid)\n $manual->enrol_user($winner, $mdluserid, $roleid, time());\n else\n $manual->enrol_user($winner, $mdluserid, 5, time());\n }else{\n echo \"Cannot enroll $worker->firstname $worker->lastname\\n\";\n }\n } else {\n //do nothing; already enrolled\n }\n}",
"public static function getUserAssignedRoles($userid) {\n $criteria = new CDbCriteria();\n $criteria->join = 'LEFT JOIN ' . Assignments::model()->tableName() . ' a ON name = a.itemname';\n $criteria->condition = \"type = \". CAuthItem::TYPE_ROLE;\n if ($userid) {\n $criteria->condition.= \" AND user_id= '\" . $userid . \"'\";\n }\n $criteria->order = \"name ASC\";\n $assigned = AuthItem::model()->findAll($criteria);\n return ($assigned === null) ? array(): $assigned;\n }",
"function getCourseIdsByUser($userid) {\n $this->CoursesEnrollment->recursive = -1;\n $userEnrollments = $this->CoursesEnrollment->find('all', array('conditions' =>array('user_id'=>$userid), 'fields'=>array('course_id')));\n if($userEnrollments) {\n $courses = [];\n foreach($userEnrollments as $enrollment) {\n array_push($courses, $enrollment['CoursesEnrollment']['course_id']);\n }\n return $courses;\n }\n }",
"private function getAvailableEmployees()\n {\n $assigned = EmployeeConstructionSite::find()->select(['employee_id'])->column();\n $employees = Employee::find()->andFilterWhere(['NOT IN', 'id', $assigned])->all();\n $filtered_employees = Employee::filterByRoles($employees, ['employee']);\n\n return ArrayHelper::map($filtered_employees, 'id', function($employee){\n return $employee->first_name . \" \" . $employee->last_name;\n });\n }",
"public function getAllEmployees()\n {\n // Set query \n $sql = \"SELECT * FROM tbl_user ORDER BY id DESC\";\n $this->setSql($sql);\n $employees = $this->getAll();\n if (empty($employees))\n {\n return false;\n }\n return $employees;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create CursorPaginator instance using `before` query. | protected function newBeforeCursorPaginator($id, $perPage, $orderBy)
{
return $this->newCursorPaginator($id, true, $perPage, $orderBy);
} | [
"public static function createFromQuery($query)\n {\n $perPage = $query->getModel()->getPerPage();\n $page = static::resolveCurrentPage();\n $query->skip(($page - 1) * $perPage)->take($perPage + 1);\n return new Paginator($query->get(),$perPage,$page);\n }",
"private function preparePagination($query)\n {\n $countQuery = clone $query;\n $pagination = new Pagination(['totalCount' => $countQuery->count(), 'pageSize' => static::PAGINATION_PAGE_SIZE]);\n $query->offset($pagination->offset)->limit($pagination->limit);\n return $pagination;\n\n }",
"function createPaginatorAdapter($query);",
"public function createPaginatorAdapter($query, $options = array());",
"public function beforeQuery() {\n\t}",
"public function prepareQuery(): static\n {\n if (! $this->prepared) {\n $this->totalRecords = $this->totalCount();\n\n $this->filterRecords();\n $this->ordering();\n $this->paginate();\n }\n\n $this->prepared = true;\n\n return $this;\n }",
"private function paginateQuery()\n {\n $limit = $this->conf->getViewLimit();\n $page = $this->http->router->get('page', 1);\n $offset = $limit * ($page - 1);\n\n $query = $this->query->getQuery()\n ->setFirstResult($offset)\n ->setMaxResults($limit)\n ->getResult();\n\n $this->entityArray = $query;\n }",
"protected function getPaginator(Cursor $cursor)\n {\n $paginator = new Paginator(new DoctrinePaginator($cursor));\n $paginator->setMockDocument($this->createDocument());\n return $paginator;\n }",
"protected function cursorPaginator($items, $perPage, $cursor, $options)\n {\n return Container::getInstance()->makeWith(CursorPaginator::class, compact(\n 'items', 'perPage', 'cursor', 'options'\n ));\n }",
"public function filterCreatedBefore(DateTime $before)\n {\n \n $this->andWhere($this->expr()->lte('tag_date_created',':dte_created_before'))->setParameter('dte_created_before',$before,$this->getGateway()->getMetaData()->getColumn('tag_date_created')->getType());\n \n return $this;\n }",
"public function scopeIsBefore($query, $created_at = null)\n {\n return $query->where($this->tableCol('created_at'), '<=', to_datetime_utc_string($created_at ?: now()));\n }",
"public function onQueryObjectsBefore()\r\n\t{\r\n\t}",
"public function beforeFind($query) {\n\t\tif (isset($query['fields'])) {\n\t\t\t$this->_setFindFields($query['fields']);\n\t\t}\n\n\t\treturn parent::beforeFind($query);\n\t}",
"public function scopeBefore($query, Carbon $date)\n {\n return $query->where('date', '<=', $date);\n }",
"public function before($content){ $this->before=$content; return $this; }",
"public function taskCreatedBeforeExpression(?string $beforeExpression): TaskQueryInterface;",
"protected function setQueryOffset(){\n if ($this->per_page == -1) return ;\n\n $this->query->skip($this->offset)->take($this->per_page);\n }",
"public function setBeforeWidget($before_widget)\n {\n $this->before_widget = $before_widget;\n\n return $this;\n }",
"public function createHybridPaginatorAdapter($query, array $options = []);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
handle php fatal errors, if can | public static function handleFatal()
{
$error = error_get_last();
if (!$error) {
return false;
}
ini_set('memory_limit', (ini_get('memory_limit') + 25).'M');
$message = "Fatal: ".self::varExport($error);
self::createError(
$message,
self::ERROR_LEVEL_FATAL,
self::getErrorKey(
$error['file'],
$error['line'],
$error['message']
)
);
} | [
"function handle_fatal_error(){\n\t\t$GLOBALS[\"ErrorHandler\"]->error_memory = null;\n\t\t$error = error_get_last();\n\t\t// Unset Error Type and Message implies a proper shutdown.\n\t\tif(!isset($error['type']) && !isset($error['message']))\n\t\t\texit();\n\t\telse{\n\t\t\thandle_runtime_error($error['type'], \"Fatal Error: \" . $error['message'], $error['file'], $error['line']);\n\t\t}\n\t}",
"public function checkForFatal()\n {\n $error = error_get_last();\n if ($error['type'] == E_ERROR)\n $this->logError($error[\"type\"], $error[\"message\"], $error[\"file\"], $error[\"line\"]);\n \n }",
"function __fatalHandler()\n{\n\t$error = error_get_last();\n\t//check if it's a core/fatal error, otherwise it's a normal shutdown\n\tif ($error !== NULL && in_array($error['type'], array(E_ERROR, E_PARSE, E_CORE_ERROR, E_CORE_WARNING, E_COMPILE_ERROR, E_COMPILE_WARNING,E_RECOVERABLE_ERROR))) {\n\t\techo \"<pre>fatal error:\\n\";\n\t\tprint_r($error);\n\t\techo \"</pre>\";\n\t\tdie;\n\t}\n}",
"abstract public function handleFatalError($e);",
"public static function handleFatalError() {\n $error = error_get_last();\n if ($error !== null) {\n self::handleError($error['type'], $error['message'], $error['file'], $error['line'], array());\n }\n }",
"function catch_fatal_errors()\n{\n if (!function_exists('error_get_last')) {\n return;\n }\n\n $error = error_get_last();\n\n if (!is_null($error)) {\n if (!array_key_exists('message', $error)) {\n return; // Needed for HHVM\n }\n if (substr($error['message'], 0, 26) == 'Maximum execution time of ') {\n if (function_exists('i_force_refresh')) {\n i_force_refresh();\n }\n }\n //$tmp = $GLOBALS;unset($tmp['GLOBALS']);@var_dump($tmp);@exit();\n //@var_dump(get_defined_functions()); exit(); // Useful for debugging memory problems, finding unneeded stuff that is loaded\n switch ($error['type']) {\n case E_ERROR:\n case E_CORE_ERROR:\n case E_COMPILE_ERROR:\n case E_USER_ERROR:\n $GLOBALS['SUPPRESS_ERROR_DEATH'] = false; // We can't recover as we've lost our execution track. Force a nice death rather than trying to display a recoverable error.\n $GLOBALS['DYING_BADLY'] = true; // Tells composr_error_handler to roll through, definitely an error.\n $GLOBALS['EXITING'] = 2; // Fudge to force a critical error, we're too desperate to show a Tempcode stack trace.\n composr_error_handler($error['type'], $error['message'], $error['file'], $error['line']);\n }\n }\n}",
"public static function fatalError(): void\n {\n $error = error_get_last();\n if ($error!==null) {\n $e = new self($error['message'], 0);\n $e->line = $error['line'];\n $e->file = $error['file'];\n if (empty(self::$errorHandler)) {\n die($error['message']);\n }\n self::$errorHandler->handle($e);\n }\n }",
"function fatal_error_handler() {\n $last_error = error_get_last();\n $this->logger->error($last_error);\n if ($last_error['type'] === E_ERROR) {\n header('Location: '.$this->fallback);\n exit;\n }\n }",
"public static function fatalError()\n {\n http_response_code(500);\n $error = error_get_last();\n if($error[\"type\"] === E_ERROR)\n {\n extract(array(\n \"title\" => $error[\"message\"],\n \"file\" => $error[\"file\"],\n \"line\" => $error[\"line\"]\n ));\n ob_start();\n require $_SERVER[\"DOCUMENT_ROOT\"] . \"/public/janpa/error.php\";\n $render_view = ob_get_clean();\n echo $render_view;\n }\n die();\n }",
"public static function checkForFatalError()\n {\n $error = error_get_last();\n if ($error !== null) {\n $type = $error['type'];\n if ($type & E_ERROR) {\n static::printError(new \\Exception($error['message'], $error['type']));\n }\n }\n }",
"public static function fatal()\n {\n static::returnCode(static::CODE_FATAL);\n }",
"public static function handleFatalErrorsOnShutdown() {\n // prematurely.\n register_shutdown_function('HttpResponder::handleFatalError');\n ob_start();\n self::$isShutdownHandlerEnabled = TRUE;\n }",
"function fatal_handler() \n\t{\n\t\t$error = error_get_last();\n\t\tif(!empty($error)) //throw to screen\n\t\t{\n\t\t\t$errfile = \"unknown file\";\n\t\t\t$errstr = \"shutdown\";\n\t\t\t$errline = 0;\n\t\t\t\t\n\t\t\t//gathering information\n\t\t\t$errno = E_CORE_ERROR;\n\t\t\t$trace = print_r( debug_backtrace( false ), true );\n\t\t\t$url = $_SERVER['REQUEST_URI'];\n\t\t\t$get = print_r($_GET,true);\n\t\t\t$post = print_r($_POST,true);\n\t\t\t\n\t\t\t//setting variables from intormation\n\t\t\t$errno = $error[\"type\"];\n\t\t\t$errfile = $error[\"file\"];\n\t\t\t$errline = $error[\"line\"];\n\t\t\t$errstr = $error[\"message\"];\n\t\t\t\t\n\t\t\tif(DEBUG) //throw to screen\n\t\t\t{\n\t\t\t\techo \"<pre>\";\n\t\t\t\techo \"<strong>URL</strong>\\n\";\n\t\t\t\techo $url.\"\\n\";\n\t\t\t\techo \"<strong>GET</strong>\\n\";\n\t\t\t\techo $get;\n\t\t\t\techo \"<strong>POST</strong>\\n\";\n\t\t\t\techo $post;\n\t\t\t\techo \"<strong>ERROR</strong>\\n\";\n\t\t\t\tprint_r($error);\n\t\t\t\techo \"<strong>TRACE</strong>\\n\";\n\t\t\t\tprint_r($trace);\n\t\t\t\techo \"</pre>\";\n\n\t\t\t} else {\n\t\t\t\t$message = format_error( $errno, $errstr, $errfile, $errline, $get, $url, $trace, $post );\n\t\t\t\t\n\t\t\t\t$to = SYSADMIN_EMAIL;\n\t\t\t\t$subject = 'SYSTEM ERROR - '.SITE_WWW;\n\t\t\t\t\n\t\t\t\t$headers = 'From: '.SYSADMIN_EMAIL.\"\\r\\n\";\n\t\t\t\t$headers .= 'MIME-Version: 1.0' . \"\\r\\n\";\n\t\t\t\t$headers .= 'Content-type:text/html;charset=UTF-8' . \"\\r\\n\";\n\t\t\t\t$headers .= 'X-Mailer: PHP/' . phpversion();\n\t\t\t\t\n\t\t\t\t$server_email = '-f '.WEBSERVER_EMAIL;\n\n\t\t\t\tmail($to, $subject, $message, $headers, $server_email);\n\t\t\t}\n\t\t}\n\t\texit();\n\t}",
"public static function atkFatalHandler()\n {\n\n $error = error_get_last();\n if ($error) {\n self::atkErrorHandler(E_ERROR, $error['message'], $error['file'], $error['line']);\n }\n }",
"public function fatalAction() {\r\n\t\t$error = trim($_REQUEST['error']);\r\n\t\tif (preg_match('/^(Fatal|Parse) error: (.*) in (.*) on line (.*)$/', $error, $match)) {\r\n\t\t\t$this->handleError($match[1], $match[2], $match[3], $match[4], NULL, false);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdie($error);\r\n\t\t}\r\n\t}",
"public function fatalError()\n {\n $this->unknownMethod();\n }",
"function fatal_exit($text)\n{\n//\tif (is_object($text)) $text=$text->evaluate();\n\n\t// To break any looping of errors\n\tglobal $EXITING;\n\tif ((!is_null($EXITING)) || (!class_exists('ocp_tempcode')))\n\t{\n\t\tif ((get_domain()=='localhost') || ((function_exists('get_member')) && (has_specific_permission(get_member(),'see_stack_dump'))))\n\t\t{\n\t\t\tdie_html_trace($text);\n\t\t} else\n\t\t{\n\t\t\tcritical_error('RELAY',is_object($text)?$text->evaluate():escape_html($text));\n\t\t}\n\t}\n\t$EXITING=1;\n\n\t$title=get_page_title('ERROR_OCCURRED');\n\n\t$trace=get_html_trace();\n\t$echo=new ocp_tempcode();\n\t$echo->attach(do_template('FATAL_SCREEN',array('_GUID'=>'95877d427cf4e785b2f16cc71381e7eb','TITLE'=>$title,'MESSAGE'=>$text,'TRACE'=>$trace)));\n\t$css_url='install.php?type=css';\n\t$css_url_2='install.php?type=css_2';\n\t$logo_url='install.php?type=logo';\n\t$version=strval(ocp_version());\n\t$version.=(is_numeric(ocp_version_minor())?'.':' ').ocp_version_minor();\n\tif (!array_key_exists('step',$_GET))\n\t{\n\t\t$_GET['step']=1;\n\t}\n\trequire_code('tempcode_compiler');\n\t$css_nocache=_do_template('default','/css/','no_cache','no_cache','EN','.css');\n\tif (running_script('restore'))\n\t{\n\t\t$out_final=do_template('RESTORE_WRAP',array('_GUID'=>'190e78523cee0b6782e1e09d73a700a7','CSS_NOCACHE'=>$css_nocache,'MESSAGE'=>$echo,'ERROR'=>true));\n\t} else\n\t{\n\t\t$out_final=do_template('INSTALLER_WRAP',array('_GUID'=>'990e78523cee0b6782e1e09d73a700a7','CSS_NOCACHE'=>$css_nocache,'DEFAULT_FORUM'=>'','PASSWORD_PROMPT'=>'','CSS_URL'=>$css_url,'CSS_URL_2'=>$css_url_2,'LOGO_URL'=>$logo_url,'STEP'=>integer_format(intval($_GET['step'])),'CONTENT'=>$echo,'VERSION'=>$version));\n\t}\n\t$out_final->evaluate_echo();\n\n\texit();\n}",
"static function fatal($msg)\n {\n echo json_encode(array(\n \"error\" => $msg\n ), JSON_THROW_ON_ERROR);\n exit(0);\n }",
"public function logPhpShutdownError()\n {\n $error = error_get_last();\n\n if (!empty($error)) {\n $this->logPhpError(\n $error['type'],\n $error['message'],\n $error['file'],\n $error['line'],\n null,\n $this->notes\n );\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test the `template()` method of the `TemplateManager` class when it throws exceptions of the type Exception. | public function testTemplateException()
{
$templateManager = new TemplateManager();
$testTemplateFile = TEST_DIRECTORY . 'testTemplate.html';
if (file_exists($testTemplateFile)) {
unlink($testTemplateFile);
}
$this->setExpectedExceptionRegExp(
'Exception',
'/^Could not open file: `.*`$/'
);
$this->assertEquals(
'',
trim(
$templateManager->template(
$testTemplateFile,
[ 'test' => 'test' ]
)
)
);
} | [
"public function testInvalidTemplate() {\n\t\t$this->object->setTemplate(\"x\");\n\t}",
"public function testThrowsExceptionIfTemplateFileNotFound()\n\t{\n\t\t$this->template->setInputValue('content', 'example content');\n\t\t$this->template->setTemplateFilename('incorrect-filename.php');\n\t\t$this->template->getOutput();\n\t}",
"public function testNoTemplateFileSetException() \n {\n $smartyEngine = new SmartyEngine();\n $smartyEngine->render();\n }",
"public function shouldThrowExceptionAboutLackingTemplateForRegularContentType()\n {\n\n RequestFactory::produce('MockComponent13');\n Environment::destroyInstance();\n $oResponse = Boot::run(Boot::getEnv(), Config::get());\n $sContent = $oResponse->getContent()->get();\n $this->assertTrue(false !== strstr($sContent, 'Template path not defined in component'));\n\n }",
"public function testCreateTemplateRenderException()\n {\n $message = uniqid('message-');\n $code = intval(rand(1, 99));\n $previous = $this->createException(uniqid('message-'), intval(rand(100, 199)), null);\n $template = $this->createTemplate();\n $context = $this->createContext();\n $subject = $this->createInstance($message, $code, $previous, $template);\n $_subject = $this->reflect($subject);\n $exception = $_subject->_createTemplateRenderException($message, $code, $previous, $template, $context);\n\n $this->assertSame($message, $exception->getMessage(), 'The new exception does not have the correct message');\n $this->assertSame($code, $exception->getCode(), 'The new exception does not have the correct code');\n $this->assertSame($previous, $exception->getPrevious(), 'The new exception does not have the correct inner exception');\n $this->assertSame($template, $exception->getRenderer(), 'The new exception does not have the correct template');\n $this->assertSame($context, $exception->getContext(), 'The new exception does not have the correct context');\n }",
"public function testTemplateFileDoesntExistException() \n {\n $smartyEngine = new SmartyEngine();\n $smartyEngine->setTemplateFileName('/pass/to/fake/template/file.tpl');\n $smartyEngine->render();\n }",
"function testInvalidTemplateCreation() {\n\t\t$o = \\Scrivo\\PageDefinition::fetch(self::$context, 12345);\n\t}",
"public function testTemplateNotFoundException() {\n /** @var \\Drupal\\Core\\Template\\TwigEnvironment $environment */\n $environment = \\Drupal::service('twig');\n\n try {\n $environment->loadTemplate('this-template-does-not-exist.html.twig')->render([]);\n $this->fail('Did not throw an exception as expected.');\n }\n catch (LoaderError $e) {\n $this->assertStringStartsWith('Template \"this-template-does-not-exist.html.twig\" is not defined', $e->getMessage());\n }\n }",
"private static function checkTemplate()\n\t{\n\t\tif (!file_exists(self::$tmpl_file)) {\n\t\t\tthrow new Exception(\"Cant seem to find \".self::$tmpl_file);\n\t\t}\n\t\t// If template directory not set, assume base on template file\n\t\tif(self::$tmpl_dir === ''){\n\t\t\tself::$tmpl_dir = dirname(self::$tmpl_file);\n\t\t}\n\n\t\tself::$tmpl_html = file_get_contents(self::$tmpl_file);\n\t\t \n\t}",
"private static function viewCheckTemplateFile(): void\n {\n if (empty($viewTemplateFile = self::$routeController->getTemplateFile())) {\n throw new Exception(self::UNDEFINED_TEMPLATE_FILE[1], self::UNDEFINED_TEMPLATE_FILE[0]);\n }\n\n self::$viewTemplateFile = new TypeString($viewTemplateFile);\n }",
"public function testThrowsExceptionIfTemplateDirectoryNotSet()\n\t{\n\t\tTemplate::setTemplateDirectory(null);\n\t\t$this->template->setInputValue('content', 'example content');\n\t\t$this->template->getOutput();\n\t}",
"public function testExceptionThrownWithInvalidFieldTemplateKeyInConfig()\n {\n $this->expectException(InvalidArgumentException::class);\n $this->registry->registerErrorTemplatesFromConfig([' . ' => 'template']);\n }",
"public function testErrorACtionEditTemplateNotHasPermission()\n\t{\n\t\t$userLoginTest = UserModel::find(10);\n\n\t\t$templateParrent = TemplateFolderModelMongo::where('name', 'Templates')->where('parent_id', '0')->first();\n\n\t\t$template = TemplateContentManagerModel::where('folder_id', $templateParrent->_id)->first();\n\n\t\t$contentTemplate = ContentTemplateModelMongo::where('base_id', $template->_id)->first();\n\n\t\t$data = [\n\t\t\t'base_id' => $template->_id,\n\t\t\t'content' => 'test 1111 1111 11111111',\n\t\t\t'_id' => $contentTemplate->_id,\n\t\t\t'language'=> 'en',\n\t\t 'region'=> null,\n\t\t 'status'=> $contentTemplate->status,\n\t\t 'thumbnail'=> null,\n\t\t 'name'=> '',\n\t\t 'folderName'=> 'Templates',\n\t\t 'folder_id'=> $templateParrent->_id,\n\t\t 'blocks'=> [],\n\t\t 'extends' => [],\n\t\t];\n\t\t$request = $this->actingAs($userLoginTest)->put('api/template-content-manager/' . $contentTemplate->_id, $data);\n\n\t\t$request->seeJson(['status' => 0]);\n\t}",
"public function testChangeStatusTemplateFailFeature()\n {\n $template = factory(Template::class)->create();\n $this->actingAs($template->user);\n\n $response = $this->put('templates/-1/change_status', ['status' => TemplateStatus::STATUS_PUBLIC]);\n\n $response->assertStatus(404);\n }",
"public function testMissingTemplate(): void\n {\n Configure::write('debug', false);\n $this->get('/pages/not_existing');\n\n $this->assertResponseError();\n $this->assertResponseContains('Error');\n }",
"public function testInvalidPath() {\n AbstractTemplate::setPath(DATA_DIR.'no-templates');\n }",
"public function testInvalidArgumentExceptionIsThrownIfNoValidLoaderCanBeFoundWhenLoadingTemplate()\n {\n $this->setExpectedException('\\InvalidArgumentException');\n\n $procedureLoaders = array();\n\n $chainProcedureLoader = $this->getChainProcedureLoader($procedureLoaders);\n $chainProcedureLoader->loadTemplate('test');\n }",
"public function testTemplateFileNotExists1()\n {\n $tpl = $this->smarty->createTemplate('notthere.tpl');\n $this->assertFalse($tpl->source->exists);\n }",
"public function testMissingTemplate()\n {\n Configure::write('debug', false);\n $this->get('/pages/not_existing');\n\n $this->assertResponseError();\n $this->assertResponseContains('Error');\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ public $vvars = [ 'menu' => 'pay', 'nav' =>'pay', ]; | public function init(){
$this->vvars['menu'] = 'channelcount';
$this->vvars['nav'] = 'channelcount';
} | [
"public function init(){\n $this->vvars['menu'] = 'paid';\n $this->vvars['nav'] = 'paid';\n }",
"public function menu_vue(){\n\t\t\t$this->load->helper('url');\n\t\t\t$this->load->library('session');\n\t\t\t$this->load->helper('html');\n\t\t\t$this->load->library('form_validation');\n\t\t\t$this->load->helper('form');\n\t\t\t$data['nom_vue'] = \"v_menu\";\n\t\t\t$this->load->vars($data);\n\t\t\t$this->load->view('templates');\n\t\t}",
"protected function setPageViewMenuVariables(): void {\n $urlPrefix = Config::instance()->get('application', 'urlPrefix');\n if ($this->getAuth()->isAdmin()) {\n $mainMenu = array(\n array('link' => $urlPrefix . '/admin/seller', 'caption' => 'Продавцы'),\n array('link' => $urlPrefix . '/admin/admin', 'caption' => 'Администраторы'),\n array('link' => $urlPrefix . '/admin/question', 'caption' => 'Антибот'),\n array('link' => $urlPrefix . '/admin/setting', 'caption' => 'Настройки'),\n array('link' => $urlPrefix . '/admin/page', 'caption' => 'Страницы'),\n );\n } else if ($this->getAuth()->isSeller()) {\n $mainMenu = array(\n array('link' => $urlPrefix . '/seller/order', 'caption' => 'Заказы'),\n array('link' => $urlPrefix . '/seller/price', 'caption' => 'Прайс'),\n array('link' => $urlPrefix . '/seller/file', 'caption' => 'Файлы'),\n array('link' => $urlPrefix . '/seller/new', 'caption' => 'Заявки'),\n array('link' => $urlPrefix . '/seller/buyer', 'caption' => 'Покупатели'),\n );\n } else if ($this->getAuth()->isBuyer()) {\n $mainMenu = array(\n array('link' => $urlPrefix . '/', 'caption' => 'Каталог'),\n array('link' => $urlPrefix . '/order', 'caption' => 'Ваш заказ'),\n array('link' => $urlPrefix . '/history', 'caption' => 'История заказов'),\n array('link' => $urlPrefix . '/contacts', 'caption' => 'Контакты'),\n );\n } else if ($this->getAuth()->isGuest()) {\n $mainMenu = array(\n array('link' => $urlPrefix . '/publiccontacts', 'caption' => 'Контакты'),\n );\n }\n \n if ($this->getAuth()->isGuest()) {\n $mainMenu[] = array('link' => $urlPrefix . '/register', 'caption' => 'Регистрация');\n $mainMenu[] = array('link' => $urlPrefix . '/login', 'caption' => 'Вход');\n } else {\n $mainMenu[] = array('link' => $urlPrefix . '/profile', 'caption' => 'Профиль');\n $mainMenu[] = array('link' => $urlPrefix . '/logout', 'caption' => 'Выйти', 'class' => 'leave');\n }\n \n foreach ($mainMenu as &$menuItem) {\n if ($menuItem['link'] === $urlPrefix . '/') { // Каталог.\n $menuItem['current'] =\n preg_match('|' . $menuItem['link'] . '$|', $this->getUrl())\n || strpos($this->getUrl(), $menuItem['link'] . 'catalog/') !== false;\n } else {\n $menuItem['current'] = strpos($this->getUrl(), $menuItem['link']) !== false;\n }\n }\n $this->getPageView()->set('mainMenu', $mainMenu);\n }",
"private function vue() {\n \tif(isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER'] != NULL) {\n \t\t$htr = $_SERVER['HTTP_REFERER'];\n \t} else {\n \t\t$htr = 'fastsaas.php?vu=0:0&rq=123';\n \t}\n \t$url1 = explode('vu=',$htr);\n \t$url2 = explode('vu=',$_SERVER['QUERY_STRING']);\n \tif(!empty($url1['1'])) {\n \t\t$urli1 = $url1['1']; \n \t}\n \tif(isset($urli1)) {\n\t \tif(strpos($urli1,'&')) {\n\t \t\t$x = explode('&',$urli1);\n\t \t\t$urli1 = $x['0'];\n\t \t}\n \t}\n \tif(!empty($url2['1'])) {\n \t\t$urli2 = $url2['1'];\n \t}\n \tif(isset($urli2)) {\n\t \tif(strpos($urli2,'&')) {\n\t \t\t$x = explode('&',$urli2);\n\t \t\t$urli2 = $x['1'];\n\t \t}\n \t}\n \tif(isset($urli1)) { \n \t\t$_SESSION['vur'] = $urli1;\n \t} else{\n \t\t$_SESSION['vur'] = '';\n \t}\n \tif(isset($urli2)) {\n \t\t$_SESSION['vuc'] = $urli2;\n \t} else {\n \t\t$_SESSION['vuc'] = '';\n \t}\n }",
"public function varsForCreatePayment(): array;",
"private function layoutVariables() : array\n {\n return [\n 'navbar' => [\n [ 'uri' => '/', 'name' => 'Dlayer vNext'],\n [ 'uri' => '/content', 'name' => 'Content Manager', 'active' => true ],\n [ 'uri' => '/helpers', 'name' => 'View helpers']\n ]\n ];\n }",
"protected function _addIsVirtual()\n {\n if ($this->_order->getIsVirtual() == '1') {\n $array = array('isVirtual' => 1);\n \n if (is_array($this->_vars)) {\n $this->_vars = array_merge($this->_vars, $array);\n } else {\n $this->_vars = $array;\n }\n } \n }",
"public function index(){\n// $this->gtools->s_session('vmt', $_GET['vmt']);\n// echo 'vmt : '.$this->gtools->g_session('vmt');exit;\n//\techo '<pre>';print_r($_SESSION);echo '<pre>';exit;\n// $data['vmt'] = $_GET['vmt'];\n $this->load->view('vmt');\n }",
"public function makeVisaPayment(){\n }",
"function f_app_vars_page ($arg_vars_page) \n {\n $vars_page_arr = array();\n\n IF ($arg_vars_page != \"\")\n {\n $vars_page = f_app_decrypt($arg_vars_page, DESK_KEY, DESK_IV);\n \n $kol_val1 = STR_REPLACE(array(\"<pikp>\", \"<_and_>\"), array(\";\", \"&\"), $vars_page);\n $kol_val_array1 = EXPLODE(\"<->\", $kol_val1);\n $kol_array1 = EXPLODE(\"<_>\", $kol_val_array1[0]);\n $val_array1 = EXPLODE(\"<_>\", $kol_val_array1[1]);\n \n $nr_var_ses = COUNT($kol_array1) - 1;\n \n IF (($kol_array1[0] == \"oOo\") AND ($val_array1[0] == \"oOo\") AND ($kol_array1[$nr_var_ses] == \"cCc\") AND ($val_array1[$nr_var_ses] == \"cCc\"))\n {\n FOR ($i=1; $i < $nr_var_ses; $i++)\n {\n $et = $kol_array1[$i];\n $vl = TRIM($val_array1[$i]);\n \n IF ($et == \"form_id_token\")\n {\n $token_ekziston = f_app_form_id_token_check($vl);\n $vars_page_arr[$et] = $token_ekziston;\n }\n ELSE\n {\n $vars_page_arr[$et] = $vl;\n }\n }\n }\n ELSE\n {\n header('Location: ' . APP_URL);\n EXIT;\n }\n }\n \n RETURN $vars_page_arr;\n }",
"public function vAction()\n\t{\n\t \n// \t $di = $this->getDI();\n// \t $di->site = asdfal;sdfjad;\n\t \n\t \n// \t $optid = $this->dispatcher->getParam( 'id' );\n// // \t $this->view->setVar( 'sign' , $optid );\n\t \n// \t $strHtmlFile = $this->view->getRender( 'Test', 'details', array( 'sign' => $optid ));\n// \t var_dump( $strHtmlFile);\n\n\t \n\t}",
"public function getServerVariables();",
"function plugin_getmenuitems_myshop() {\n global $_CONF;\n $menuitems[MyShop_str('menu_label')] = $_CONF['site_url'] . '/myshop/index.php';\n return $menuitems;\n}",
"public function vitimas() {\n $this->validaAutenticacao();\n $vitimas = Container::getModel('Vitimas');\n $this->view->vitimas = $vitimas->getAllDashboard();\n $vitimas->__set('id', '1');\n $this->view->vtm = $vitimas->getVitima();\n $this->menu();\n $this->render('vitimas', 'layout-dashboard');\n }",
"public function VirtualVault()\r\n\t{\r\n\t\t$virtualVault = $this->LoadClass(\"VirtualVault\", \"class_virtualvault\");\r\n\t\t$virtualVault->OpenVault();\r\n\t\t\r\n\t\tswitch($_GET['do'])\r\n\t\t{\r\n\t\t\tcase 'transferToVirtual' :\r\n\t\t\t\tswitch($virtualVault->TransferItemToVirtual($_GET['itemSerial']))\r\n\t\t\t\t{\r\n\t\t\t\t\tcase \"ERROR\" :\r\n\t\t\t\t\t\texit();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"VAULT_FULL\" :\r\n\t\t\t\t\t\t$limit = $this->settings['USERPANEL']['ACCOUNT']['VIRTUAL_VAULT']['ITEMS_LIMIT'][$this->userData['vip'][VIP_COLUMN]];\r\n\t\t\t\t\t\t$this->lang->setArguments(\"UserPanel,VirtualVault,Messages,VirtualFull\", $limit);\r\n\t\t\t\t\t\texit(showMessage($this->lang->words['UserPanel']['VirtualVault']['Messages']['VirtualFull'], 2));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"ALL_OK\" :\r\n\t\t\t\t\t\texit(\"<script>transferItemVault('\".$_GET['itemSerial'].\"');</script>\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault :\r\n\t\t\t\t\t\texit();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\tbreak;\r\n\t\t\tcase \"transferToVault\" :\r\n\t\t\t\tswitch($virtualVault->TransferItemToGame($_GET['itemSerial']))\r\n\t\t\t\t{\r\n\t\t\t\t\tcase \"ERROR\" :\r\n\t\t\t\t\t\texit();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"VAULT_FULL\" :\r\n\t\t\t\t\t\texit(showMessage($this->lang->words['UserPanel']['VirtualVault']['Messages']['VaultFull'], 2));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"ALL_OK\" :\r\n\t\t\t\t\t\texit(\"<script>transferItemVirtual('\".$_GET['itemSerial'].\"');</script>\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault :\r\n\t\t\t\t\t\texit();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\tbreak;\r\n\t\t\tdefault :\r\n\t\t\t\t$items = $virtualVault->LoadItemsVaults();\r\n\t\t\t\t$GLOBALS['userpanel']['virtual_vault']['game_vault_items'] = $items['GameVault'];\r\n\t\t\t\t$GLOBALS['userpanel']['virtual_vault']['virtual_vault_items'] = $items['VirtualVault'];\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"public function getServerVariables(): array;",
"function _makeVCHash($menuitems) {\r\n\t$vcatalog = array();\r\n\tforeach($menuitems as $item) {\r\n\t\t$vcatalog[$item->vcid] = $item->vcname;\r\n\t}\r\n\t$vcatalog[0] = '無分類';\r\n\treturn $vcatalog;\r\n}",
"public function vnPayInitPayment(Request $request)\n {\n $payGate = Paygate::where('code', self::CODE_VN_PAY)->first();\n if (empty($payGate)) {\n return redirect('/');\n }\n $param = $request->all();\n $configs = json_decode($payGate->configs, true);\n $vnp_Url = \"http://sandbox.vnpayment.vn/paymentv2/vpcpay.html\";\n $vnp_Returnurl = url('/vn-pay/return');\n $vnp_TmnCode = $configs['vnp_TmnCode']; // Mã website tại VNPAY\n $vnp_HashSecret = $configs['vnp_HashSecret']; // Chuỗi bí mật\n\n $vnp_TxnRef = date('YmdHis'); //Mã đơn hàng lấy từ bảng cart trong DB\n $vnp_OrderInfo = \"Thanh toán hóa đơn phí dich vụ\";\n $vnp_OrderType = 'billpayment';\n $vnp_Amount = $param['amount'] * 100;\n $vnp_Locale = 'vn';\n $vnp_IpAddr = request()->ip();\n $inputData = array(\n \"vnp_Version\" => \"2.0.0\",\n \"vnp_TmnCode\" => $vnp_TmnCode,\n \"vnp_Amount\" => $vnp_Amount,\n \"vnp_Command\" => \"pay\",\n \"vnp_CreateDate\" => date('YmdHis'),\n \"vnp_CurrCode\" => \"VND\",\n \"vnp_IpAddr\" => $vnp_IpAddr,\n \"vnp_Locale\" => $vnp_Locale,\n \"vnp_OrderInfo\" => $vnp_OrderInfo,\n \"vnp_OrderType\" => $vnp_OrderType,\n \"vnp_ReturnUrl\" => $vnp_Returnurl,\n \"vnp_TxnRef\" => $vnp_TxnRef,\n );\n $vnPay = new VNPAY();\n $renderUrl = $vnPay->doDirectPayment($inputData, $vnp_Url, $vnp_HashSecret);\n\n return '<meta http-equiv=\"refresh\" content=\"0; url='.$renderUrl.'\" >';\n }",
"function add_custom_page_variables( $public_query_vars ) {\r\n\t\t$public_query_vars[] = 'projekktor';\r\n $public_query_vars[] = 'limit';\r\n $public_query_vars[] = 'offset';\r\n $public_query_vars[] = 'id';\r\n\t\treturn $public_query_vars;\r\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
fill class dropdown depending on the selected grade level | public function getClassByGradeLevel()
{
$gradelevel_id = $this->input->post('id');
$query = $this->schoolclass_model->GetClassByGradeLevel($gradelevel_id);
$classes["-1"]="Select Class";
$options = '<option value="All" selected>All Classes/Groups</option>';
if($query){
foreach($query as $row){
$options .= '<option value="' . $row->id . '">'.$row->title.'</option>';
}
echo $options;
}
else{
echo $options;
}
} | [
"function genSubjectClassDropdown($subjectLevel) //param subject - mysqli::result\r\n\t{\r\n\t\t$dropdown = '<br>';\r\n\t\t#lable for the dropdown\r\n\t\t$dropdown .= \"<label class='control-label' for='subjectDropdown'>Grade </label>\";\r\n \r\n\t\t#subject dropdown\r\n\t\t$dropdown .= \"<select class='form-control' id='gradeDropdown' name='gradeDropdown' onchange='gradeChange(this.value)'>\";#create a selection box\r\n \r\n $dropdown .= (\"<option value=''></option>\");\r\n\t\t#unset the loop variables\r\n\t\tunset($subjectLevel);\r\n\t\tunset($tmp_topicId);\r\n\t\tunset($tmp_topicName);\r\n\r\n\t\t#close select \r\n\t\t$dropdown.=\"</select>\";\r\n\r\n\t\treturn $dropdown;\r\n\t}",
"function fetch_masterlist_gl($school_id)\n {\n \n $this->db->where('school_id', $school_id);\n $this->db->group_by('grade', 'ASC');\n $query = $this->db->get('cbt_add_section');\n $output = '<option value=\"\">Select Grade Level</option>';\n \n foreach($query->result() as $row)\n {\n $output .= '<option value=\"'.$row->grade.'\">'.$row->grade.'</option>';\n }\n return $output;\n }",
"function getClassifiedSelect()\n\t{\n\t\tglobal $_CONN;\n\t\t\n\t\tif(!$_CONN)\n\t\t{\n\t\t\techo \"Failed to connect to the database !\";\n\t\t\tdie();\n\t\t}\n\t\t\n\t\t$query = \"SELECT class_id, class_name FROM classifiedtype\";\n\t\t$result = mysqli_query($_CONN, $query);\n\t\t$resultArray = mysqli_fetch_all($result, MYSQLI_ASSOC);\n\t\t\n\t\tif(sizeof($resultArray) == 0)\n\t\t{\n\t\t\techo \"No Data Recived !\";\n\t\t\tdie();\n\t\t}\n\t\n\t\techo \"<option value='' disabled selected>Select Classified Catagory</option>\";\n\t\n\t\tfor($i=0; $i<sizeof($resultArray); $i++)\n\t\t{\n\t\t\t$classId = $resultArray[$i]['class_id'];\n\t\t\t$className = $resultArray[$i]['class_name'];\n\t\t\t\n\t\t\techo \"<option value='$classId'> $className </option>\";\n\t\t}\n\t}",
"function update_all_class_grades($classgrades = array()) {\n global $CURMAN;\n\n if (isset($this->course) && (get_class($this->course) == 'course')) {\n $elements = $this->course->get_completion_elements();\n } else {\n $elements = false;\n }\n\n $timenow = time();\n\n if (!empty($elements)) {\n // for each student, find out how many required completion elements are\n // incomplete, and when the last completion element was graded\n $sql = \"SELECT s.*, grades.incomplete, grades.maxtime\n FROM {$CURMAN->db->prefix_table(STUTABLE)} s\n JOIN (SELECT s.userid, COUNT(CASE WHEN grades.id IS NULL AND cc.required = 1 THEN 1\n ELSE NULL END) AS incomplete,\n MAX(timegraded) AS maxtime\n FROM {$CURMAN->db->prefix_table(STUTABLE)} s\n JOIN {$CURMAN->db->prefix_table(CRSCOMPTABLE)} cc\n ON cc.courseid = {$this->courseid}\n LEFT JOIN {$CURMAN->db->prefix_table(CLSGRTABLE)} grades\n ON grades.userid = s.userid\n AND grades.completionid = cc.id\n AND grades.classid = {$this->id}\n AND grades.grade >= cc.completion_grade\n WHERE s.classid = {$this->id} AND s.locked = 0\n GROUP BY s.userid\n ) grades ON grades.userid = s.userid\n WHERE s.classid = {$this->id} AND s.locked = 0\";\n $rs = get_recordset_sql($sql);\n if ($rs) {\n while ($rec = rs_fetch_next_record($rs)) {\n if ($rec->incomplete == 0 && $rec->grade > 0 &&\n $rec->grade >= $this->course->completion_grade) {\n $student = new student($rec, $this, null);\n $student->completestatusid = STUSTATUS_PASSED;\n $student->completetime = $rec->maxtime;\n $student->credits = $this->course->credits;\n $student->locked = 1;\n $student->complete();\n }\n }\n }\n } else {\n /// We have no completion elements so just make sure the user's grade is at least the\n /// minimum value required for the course.\n\n /// Get all unlocked enrolments\n $select = \"classid = {$this->id} AND locked = 0\";\n $rs = get_recordset_select(STUTABLE, $select, 'userid');\n if ($rs) {\n while ($rec = rs_fetch_next_record($rs)) {\n if ($rec->grade > 0 && $rec->grade >= $this->course->completion_grade) {\n $student = new student($rec, $this, null);\n $student->completestatusid = STUSTATUS_PASSED;\n $student->completetime = $timenow;\n $student->credits = $this->course->credits;\n $student->locked = 1;\n $student->complete();\n }\n }\n }\n }\n }",
"function mkClassList($id,$selected=''){\n\t$classlist = \"<select name='classlist\".$id.\"' \n\t\t\t\t\tid='classlist\".$id.\"' \n\t\t\t\t\tclass='classlist' \n\t\t\t\t\tonchange='updateCSC(this.form)'\n\t\t\t\t\t>\";\n\t\n\t// For colouring the classes\n/*\t$colours['DRUID']=\"#FF7D0A\";\n\t$colours['HUNTER']=\"#ABD473\";\n\t$colours['MAGE']=\"#69CCF0\";\n\t$colours['PALADIN']=\"#F58CBA\";\n\t$colours['PRIEST']=\"#000000\";\n\t$colours['ROGUE']=\"#FFF569\";\n\t$colours['SHAMAN']=\"#2459FF\";\n\t$colours['WARLOCK']=\"#9482CA\";\n\t$colours['WARRIOR']=\"#C79C6E\";\n\t$colours['DEATHKNIGHT']=\"#C41F3B\";\n*/\n\n\t$class['DEATHKNIGHT']=\"Death Knight\";\n\t$class['DRUID']=\"Druid\";\n\t$class['HUNTER']=\"Hunter\";\n\t$class['MAGE']=\"Mage\";\n\t$class['PALADIN']=\"Paladin\";\n\t$class['PRIEST']=\"Priest\";\n\t$class['ROGUE']=\"Rogue\";\n\t$class['SHAMAN']=\"Shaman\";\n\t$class['WARLOCK']=\"Warlock\";\n\t$class['WARRIOR']=\"Warrior\";\n\t\n\tforeach($class as $key=>$cname) {\n\t\tif ($key == $selected) {\n\t\t\t$cscset = \"selected='selected'\";\n\t\t} else {\n\t\t\t$cscset = \"\";\n\t\t}\n\t\t\n\t\t$classlist .= \"<option value='\".$key.\"' \".$cscset.\">\".$cname.\"</option>\";\n\t}\n\t\n\tif ($selected == '') {\n\t\t$noneset = \"selected='selected'\";\n\t}\n\t\n\t$classlist .= \"\n\t\t\t<option value='' \".$noneset.\">None</option>\n\t\t</select>\";\n\t\n\treturn $classlist;\n}",
"public function custom() {\n //first step would be select type i.e. staff/student\n\n //second step select aspects to be in report i.e. grades\n }",
"function get_grade_level($grade_level) {\n\tif ($grade_level == 1) return \"Freshman\";\n\tif ($grade_level == 2) return \"Sophomore\";\n\tif ($grade_level == 3) return \"Junior\";\n\tif ($grade_level == 4) return \"Senior\";\n\treturn \"None\";\n}",
"function grades($class_id) {\r\n $this->load->model(\"class_admin/gradebk_model\");\r\n $data['class_id'] = $class_id;\r\n $data['classinfo'] = $this->admin_model->load_class_info($data['class_id']);\r\n $student_id = $this->session->userdata('id');\r\n\r\n $data['possible'] = $this->gradebk_model->get_possible_points($class_id);\r\n $data['stud'] = $this->admin_model->load_student_info($student_id);\r\n $data['stud_avg'] = $this->gradebk_model->get_student_avg($class_id, $student_id);\r\n\r\n // pull program info for each item and add it to the same array\r\n $grades = $this->admin_model->load_student_grades($class_id, $student_id);\r\n foreach ($grades as $item) {\r\n $item->prog_info = $this->admin_model->pull_prog($class_id, $item->prog_id);\r\n }\r\n $data['grades'] = $grades;\r\n\r\n // append program info to programs\r\n $p = $this->gradebk_model->get_programs($class_id);\r\n $programs = array();\r\n\r\n foreach ($p as $item) {\r\n $x = explode('_', $item); // extract prog_id\r\n $y = new stdClass(); // template\r\n $y->prog_info = $this->tc_model->load_prog_info($class_id, $x[1]); // pull data\r\n \r\n // echo \"<hr /><h2>Extracting from class: {$class_id} prog_id: {$x[1]}</h2>\";\r\n \r\n if ( is_array($y->prog_info) ) {\r\n $y->prog_info = $y->prog_info[0];\r\n }\r\n \r\n // var_dump($y->prog_info); echo '<br />----------<br />';\r\n\r\n $y->prog_info->session = $this->tc_model->load_session_info($class_id, $y->prog_info->session_id);\r\n\r\n if (is_array($y->prog_info->session)) {\r\n $y->prog_info->session = $y->prog_info->session[0];\r\n }\r\n\r\n // var_dump($y->prog_info->session); echo '<hr />'; \r\n \r\n if (!empty($y->prog_info->e_points) || !empty($y->prog_info->s_points)) {\r\n $y->prog_info->possible = $y->prog_info->c_points +\r\n $y->prog_info->s_points +\r\n $y->prog_info->d_points +\r\n $y->prog_info->e_points;\r\n }\r\n $y->prog_info->deadline = date(\"F j, Y\", strtotime($y->prog_info->session->late)); //.\" - \".date(\"H:i\", strtotime($y->prog_info->session->late)) ;\r\n\r\n if ($y->prog_info->graded == 1) {\r\n $y->prog_info->graded = \"yes\";\r\n } else {\r\n $y->prog_info->graded = \"no\";\r\n }\r\n\r\n $programs[] = $y; // replace with real data\r\n }\r\n \r\n //var_dump($programs); //die();\r\n \r\n $data['programs'] = & $programs;\r\n\r\n $data['main_content'] = 'stud/grades';\r\n $this->load->view('includes/template', $data);\r\n }",
"public function listStatusByClassAction()\n {\n $form = new Zend_Form();\n\n $elems = new My_FormElement();\n $classDropdown = $elems->getClassChoiceSelect();\n $classDropdown->setLabel('Select class');\n $semDropdown = $elems->getCurrentToPastSemestersDropdown('semesters_id', 'Select semester');\n //die(var_dump($classDropdown));\n $submit = new Zend_Form_Element_Button('Submit');\n //die(var_dump($submit));\n\n $form->addElements(array($classDropdown, $semDropdown, $submit));\n\n $this->view->form = $form;\n }",
"public function initGrade($grade)\r\n\t{\r\n\t\t$this->grade = (int) $grade;\r\n\t\t$this->getGrade();\r\n\t}",
"function fluid_edge_menu_dropdown_appearance($classes) {\n\t if(fluid_edge_options()->getOptionValue('menu_dropdown_appearance') !== 'default'){\n\t\t $classes[] = 'edgtf-'.fluid_edge_options()->getOptionValue('menu_dropdown_appearance');\n }\n\n return $classes;\n }",
"public function selectClassRoutin() {\n $data['classTile'] = $this->common->getAllData('class');\n $data['day'] = $this->common->getAllData('config_week_day');\n $this->load->view('temp/header');\n $this->load->view('selectClassRoutine', $data);\n $this->load->view('temp/footer');\n }",
"function select_regency($array)\n{\n\t$ci =& get_instance();\n\n\t$select = '<select name=\"regency\" class=\"browser-default custom-select mb-4 form-control border-0 border-bottom \" onchange=\"is_selected_regency(event,this)\">\n\t<option>...</option>';\n\t$regencies = $ci->db\n\t->where('regencies.province_id',$array['province_id'])\n\t->get('regencies')->result_array();\n\tforeach ($regencies as $key => $regency) {\n\n\t\t$selected = (@$array['selected_id'] == $regency['id'] ? 'selected=\"true\"' : '');\n\t\t$select.='<option value=\"'.$regency['id'].'\" '.$selected.'>'.ucfirst(strtolower( $regency['name'])).'</option>';\n\n\t}\n\t$select .= '</select>';\n\treturn $select;\n\n}",
"public function advanced_filters() {\n\n\t\t\tglobal $wpdb;\n\n\n\n\t\t\t$levels = $wpdb->get_results( \"SELECT * FROM {$wpdb->prefix}js_grade_level \"\n\n\t\t\t\t. \"WHERE is_active = 1 ORDER BY level_order ASC\" );\n\n\t\t\t$level_options = array();\n\n\n\n\t\t\tif ( !empty( $_GET['level'] ) ) {\n\n\t\t\t\t$selected_level = sanitize_text_field( $_GET['level'] );\n\n\t\t\t} else {\n\n\t\t\t\t$selected_level = $levels[0]->level_id;\n\n\t\t\t}\n\n\n\n\t\t\t$subjects = $wpdb->get_results( \"SELECT * FROM {$wpdb->prefix}js_subjects \"\n\n\t\t\t\t. \"WHERE is_active = 1 AND subject_id IN (SELECT subject_id FROM {$wpdb->prefix}js_subject_levels \"\n\n\t\t\t\t\t. \"WHERE level_id = \" . $selected_level . \") \"\n\n\t\t\t\t. \"ORDER BY subject_name ASC\" , 'ARRAY_A' );\n\n\t\t\t$subject_options = array();\n\n\n\n\t\t\tif ( !empty( $_GET['subject'] ) ) {\n\n\t\t\t\t$selected_subject = sanitize_text_field( $_GET['subject'] );\n\n\t\t\t} else {\n\n\t\t\t\t$selected_subject = $subjects[0]->subject_id;\n\n\t\t\t}\n\n\n\n\t\t\tif ( !empty($levels) ) {\n\n\t\t\t\tforeach ( $levels as $level ) {\n\n\t\t\t\t\t$level_options[$level->level_id] =\n\n\t\t\t\t\t\tsprintf( '<option value=\"%s\"%s>%s</option>', \n\n\t\t\t\t\t\t\t\t $level->level_id, \n\n\t\t\t\t\t\t\t\t $selected_level === $level->level_id ? ' selected' : '', \n\n\t\t\t\t\t\t\t\t __( $level->level_name, 'js_topic_manager' ) );\n\n\t\t\t\t}\n\n\t\t\t}\n\n\n\n\t\t\tif ( !empty($subjects) ) {\n\n\t\t\t\tforeach ( $subjects as $subject ) {\n\n\t\t\t\t\t$subject_options[$subject['subject_id']] =\n\n\t\t\t\t\t\tsprintf( '<option value=\"%s\"%s>%s</option>', \n\n\t\t\t\t\t\t\t\t $subject['subject_id'], \n\n\t\t\t\t\t\t\t\t $selected_subject === $subject['subject_id'] ? ' selected' : '', \n\n\t\t\t\t\t\t\t\t __( $subject['subject_name'], 'js_topic_manager' ) );\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t?>\n\n\n\n\t\t\t<p class=\"filter-title\">Education Level:</p>\n\n\t\t\t<select name=\"topic_level\">\n\n\t\t\t\t<?php echo join( '', $level_options ); ?>\n\n\t\t\t</select>\n\n\n\n\t\t\t<p class=\"filter-title\">Subject:</p>\n\n\t\t\t<select name=\"topic_subject\">\n\n\t\t\t\t<?php echo join( '', $subject_options ); ?>\n\n\t\t\t</select>\n\n\n\n\t\t\t<?php\n\n\t\t}",
"public function input_WbfsysRoleGroup_Level( $params )\n {\n $i18n = $this->view->i18n;\n \n if( !isset( $this->listElementData['wbfsys_role_group_level'] ) )\n {\n if( !Webfrap::classLoadable( 'WbfsysSecurityLevelValue_Selectbox' ) )\n {\n if( DEBUG )\n Debug::console( 'WbfsysSecurityLevelValue_Selectbox not exists' );\n \n Log::warn( 'Looks like Selectbox: WbfsysSecurityLevelValue_Selectbox is missing' );\n \n return;\n }\n }\n\n\n //p: Selectbox\n $inputLevel = $this->view->newItem( 'inputWbfsysRoleGroupLevel', 'WbfsysSecurityLevelValue_Selectbox' );\n $this->items['wbfsys_role_group-level'] = $inputLevel;\n $inputLevel->addAttributes\n (\n array\n (\n 'name' => 'wbfsys_role_group[level]',\n 'id' => 'wgt-input-wbfsys_role_group_level'.($this->suffix?'-'.$this->suffix:''),\n 'class' => 'wcm wcm_ui_tip medium'.($this->assignedForm?' asgd-'.$this->assignedForm:''),\n 'title' => $i18n->l( 'Insert value for {@attr@} ({@src@})', 'wbf.label', array( 'attr' => 'Access Level', 'src' => 'Role Group' ) ),\n )\n );\n $inputLevel->setWidth( 'medium' );\n\n\n if( $this->assignedForm )\n $inputLevel->assignedForm = $this->assignedForm;\n\n $inputLevel->setActive( $this->entity->getData( 'level' ) );\n $inputLevel->setReadonly( $this->fieldReadOnly( 'wbfsys_role_group', 'level' ) );\n $inputLevel->setRequired( $this->fieldRequired( 'wbfsys_role_group', 'level' ) );\n\n\n $inputLevel->setLabel( $i18n->l( 'Access Level', 'wbfsys.role_group.label' ) );\n\n\n $acl = $this->getAcl();\n\n if( $acl->access( 'mod-wbfsys>mod-wbfsys-cat-core_data:insert' ) )\n {\n $inputLevel->refresh = $this->refresh;\n $inputLevel->serializeElement = $this->sendElement;\n $inputLevel->editUrl = 'index.php?c=Wbfsys.SecurityLevel.listing&target='.$this->namespace.'&field=level&publish=selectbox&suffix='.$this->suffix.'&input_id=wgt-input-wbfsys_role_group_level'.$this->suffix;\n }\n // set an empty first entry\n $inputLevel->setFirstFree( 'No Access Level selected' );\n\n \n $queryLevel = null;\n // prüfen ob nicht schon custom daten gesetzt wurden\n if( !isset( $this->listElementData['wbfsys_role_group_level'] ) )\n {\n \n $queryLevel = $this->db->newQuery( 'WbfsysSecurityLevelValue_Selectbox' );\n\n $queryLevel->fetchSelectbox();\n $inputLevel->setData( $queryLevel->getAll() );\n \n }\n else\n {\n $inputLevel->setData( $this->listElementData['wbfsys_role_group_level'] );\n }\n \n // fallback funktion um den aktiven datensatz laden zu können, auch wenn \n // er von filtern in dern selectbox eigentlich ausgeblendet wurde\n // wird nur ausgeführt denn der aktive datensatz nicht in der liste \n // vorhanden ist\n \n if( !$queryLevel )\n $queryLevel = $this->db->newQuery( 'WbfsysSecurityLevelValue_Selectbox' );\n \n $inputLevel->loadActive = function( $activeId ) use ( $queryLevel ){\n \n return $queryLevel->fetchSelectboxEntry( $activeId );\n \n };\n \n\n // activate the category\n $this->view->addVar\n (\n 'showCat'.$this->namespace.'_Default' ,\n true\n );\n\n }",
"function magazinevibe_edge_menu_dropdown_appearance($classes) {\n\n if(magazinevibe_edge_options()->getOptionValue('menu_dropdown_appearance') !== 'default'){\n $classes[] = 'edgtf-'.magazinevibe_edge_options()->getOptionValue('menu_dropdown_appearance');\n }\n\n return $classes;\n }",
"function formJavascriptClass()\n\t{\n\t\tFabrikHelperHTML::script('javascript.js', 'components/com_fabrik/plugins/element/fabrikdropdown/', false);\n\t}",
"function get_uc_classes_by_grade( $grade = 'all', $check_ell = false, $check_at_risk = false, $post_status = 'publish', $school_year = false ) {\n\t$args = array(\n\t\t'post_type' => 'uc_class',\n\t\t'post_status' => $post_status,\n\t\t'posts_per_page' => -1,\n\t\t'meta_query' => array(),\n\t);\n\n\tif ( $school_year ) {\n\t\t$school_year_array = get_school_year( $school_year );\n\t\t$args['date_query'] = array(\n\t\t\tarray(\n\t\t\t\t'after' => $school_year_array['start'],\n\t\t\t\t'before' => $school_year_array['end'],\n\t\t\t\t'inclusive' => true,\n\t\t\t)\n\t\t);\n\t}\n\n\tif ( $grade == '' )\n\t\t$args['meta_query'][] = array( 'relation' => 'OR', array( 'key' => 'grade', 'compare' => 'NOT EXISTS', 'value' => '' ), array( 'key' => 'grade', 'value' => '' ) );\n\telseif ( $grade != 'all' )\n\t\t$args['meta_query'][] = array( 'key' => 'grade', 'value' => $grade );\n\n\t$wp_posts = get_posts( $args );\n\t\n\t$result = array();\n\tforeach ($wp_posts as $post) {\n\t\tif ( !( $check_ell && !is_class_ell( $post->ID ) ) && !( $check_at_risk && !is_class_at_risk( $post->ID ) ) )\n\t\t\t$result[] = array('value' => $post->ID, 'label' => $post->post_title);\n\t}\n\treturn $result;\n}",
"function pdev_plugin_setting_level() {\n\n // Get option 'level' value from the database\n // Set to 0 as a default if the option does not exist\n\t$options = get_option('pdev_plugin_options', [ 'level' => 0 ] );\n\t$level = $options['level'];\n\n\t// Define the select option values for level\n\t$items = array( 0, 1, 2, 3, 4, 5 );\n\t\n\techo \"<select id='level' name='pdev_plugin_options[level]'>\";\n\t\n\tforeach( $items as $item ) {\n\n\t\t// Loop through the option values\n\t\t// If saved option matches the option value, select it\n\t\techo \"<option value='\" . esc_attr( $item ) . \"' \" . selected( $level, $item, false ) . \">\" . esc_html( $item ) . \"</option>\";\n\t\n\t}\n\n\techo \"</select>\";\n\n}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Filter the BP Core avatar url to be global and not network specific. | public function hcommons_set_bp_core_avatar_url( $url ) {
if ( ! empty( $url ) ) {
$site_loc = strpos( $url, '/site' );
if ( false === $site_loc ) {
return $url;
} else {
$global_url = substr( $url, 0, $site_loc );
//hcommons_write_error_log( 'info', '****BP_CORE_AVATAR_URL****-'.var_export( $global_url, true ) );
return $global_url;
}
} else {
return $url;
}
} | [
"public function getAvatarURL()\n\t{\n\t}",
"public function getAvatarUrl();",
"public function urlBlankAvatarScheme()\n {\n $sUrl = DEPLOY_CDN_DRIVER_AWS_CLOUDFRONT_URL_PROCESSING;\n $sUrl .= 'blank_avatar/{{width}}/{{height}}/{{sex}}';\n\n return $this->urlMakeSecure($sUrl);\n }",
"function ProfilePicUrl($user=false){\r\n\r\n$user=$this->GetUserById($user);\r\n\r\nif(!filter_var($user->profile_pic, FILTER_VALIDATE_URL))\r\n{\r\n\treturn $user && !empty($user->profile_pic)?AppURLs::ProfilePictureURL($user->profile_pic):Helpers::get_image(\"nopic.png\");\r\n}\r\nelse\r\n{\r\n\treturn $user && !empty($user->profile_pic)?$user->profile_pic:Helpers::get_image(\"nopic.png\");\r\n}\r\n\r\n\r\n\r\n}",
"public function getLocalAvatarSrc()\n {\n $user_data = $this->getUserData();\n if (strpos($user_data['avatar'], 'default_') === false) {\n return '/uploads/avatars/' . $user_data['avatar'];\n } else {\n return '/img/avatars/' . $user_data['avatar'];\n }\n }",
"protected function defaultProfilePhotoUrl()\n {\n return 'https://ui-avatars.com/api/?name='.urlencode($this->name).'&color=F97316&background=FED7AA';\n }",
"protected function defaultProfilePhotoUrl()\n {\n return 'https://ui-avatars.com/api/?name='.urlencode($this->name).'&color=252f3f&background=EBF4FF';\n }",
"protected function defaultProfilePhotoUrl()\n {\n return 'https://ui-avatars.com/api/?name='.urlencode($this->name).'&color=7F9CF5&background=EBF4FF';\n }",
"function df_remove_no_avatar() {\r\n\tglobal $db, $src_db, $convert;\r\n\r\n\t$result = $src_db->sql_query(\"SELECT cfg_value FROM \".$convert->src_table_prefix.\"config_custom WHERE cfg_name = 'avatar' AND cfg_field= 'default'\");\r\n\t$default_image = $src_db->sql_fetchfield('cfg_value');\r\n\r\n\t$default_image = substr($default_image, 8, strlen($default_image));\r\n\r\n\t$result = $db->sql_query(\"UPDATE \".USERS_TABLE.\" SET user_avatar='', user_avatar_type=0, user_avatar_width=0, user_avatar_height=0 WHERE user_avatar = '\".$default_image.\"' AND user_avatar_type=3\");\r\n}",
"public function getProfileAvatarUrl() : string {\n\t\treturn ($this->profileAvatarUrl);\n\t}",
"public function getAvatarsUrl ()\n {\n return $this->getBaseUrl() . '/' . $this->_avatarDirectoryName;\n }",
"public function profile_pic_url()\n {\n return asset('uploads/others/original/'. $this->profile_pic_url);\n }",
"public function getAvatarURL()\n {\n return Url::toAvatar($this->avatar);\n }",
"public function getFullAvatarUrl() {\n return $this->imageUrl . '_full.jpg';\n }",
"function bp_remove_gravatar ($image, $params, $item_id, $avatar_dir, $css_id, $html_width, $html_height, $avatar_folder_url, $avatar_folder_dir) {\n $default = home_url().'/wp-includes/images/smilies/icon_cool.gif'; // get_stylesheet_directory_uri() .'/images/avatar.png';\n if( $image && strpos( $image, \"gravatar.com\" ) ){\n return '<img src=\"' . $default . '\" alt=\"avatar\" class=\"avatar\" ' . $html_width . $html_height . ' />';\n } else {\n return $image;\n }\n }",
"public function getAvatar_url_imagen()\n {\n return $this->avatar_url_imagen;\n }",
"public function getAvatarUrlAttribute()\n {\n //this is for profile pic at the top \n return $this->avatar->getUrl('thumb');\n }",
"public function getAvatarLink(){\n\t\treturn 'http://'.$this->getRegion().'.battle.net/static-render/'.$this->getRegion().'/'.$this->json->thumbnail;\n\t}",
"function bp_remove_gravatar ($image, $params, $item_id, $avatar_dir, $css_id, $html_width, $html_height, $avatar_folder_url, $avatar_folder_dir) {\n\t$default = get_stylesheet_directory_uri() .'/images/avatar.png';\n\tif( $image && strpos( $image, \"gravatar.com\" ) ){\n\t\treturn '<img src=\"' . $default . '\" alt=\"avatar\" class=\"avatar\" ' . $html_width . $html_height . ' />';\n\t} else {\n\t\treturn $image;\n\t}\n}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ setLimitOffset Adds a portal option to the $fmxQueryStringArray property. | public function setLimitOffset($limit,$offset=1)
{
$queryArray = $this->fmxQueryStringArray;
$queryArray['_offset'] = $offset;
$queryArray['_limit'] = $limit;
$this->fmxQueryStringArray = $queryArray;
} | [
"function setOffsetLimit($offset, $limit);",
"protected function setOffsetAndLimit(){\n $parameters = $this->request->getQueryParams();\n $this->offset = !empty($parameters['offset']) ? (int)filter_var($parameters['offset'], FILTER_SANITIZE_NUMBER_INT) : 0;\n if((!empty($parameters['limit']) && (int)$parameters['limit'] <= DEFAULT_DB_LIMIT) ){\n $this->limit = (int)filter_var($parameters['limit'], FILTER_SANITIZE_NUMBER_INT);\n }else{\n $this->limit = DEFAULT_DB_LIMIT;\n }\n }",
"public function setOffsetAndLimit($offset = 0, $limit = 15)\n {\n\n }",
"public function setLimitAndOffset(LimitOffsetQueryComponent $component) { $this->limit_and_offset = $component; }",
"private function addOffsetAndLimit() {\n\t\t\tif ($this->limit) {\n\t\t\t\t// Do we also have an offset?\n\t\t\t\tif ($this->offset) {\n\t\t\t\t\t$this->queryString .= \" LIMIT \".$this->limit.\" OFFSET \".$this->offset;\n\t\t\t\t} else {\n\t\t\t\t\t$this->queryString .= \" LIMIT \".$this->limit;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Only an offset then - use the mysql max row value here to ensure\n\t\t\t\t// that all remaining rows after offset are returned.\n\t\t\t\t$this->queryString .= \" LIMIT \".self::MYSQL_MAX_ROW.\" OFFSET \".$this->offset;\n\t\t\t}\n\t\t}",
"public function addLimitOffset($sql, $options)\n {\n if (isset($options['limit']) && $limit = $options['limit']) {\n if (isset($options['offset']) && $offset = $options['offset']) {\n $sql .= \" LIMIT $offset, $limit\";\n } else {\n $sql .= \" LIMIT $limit\";\n }\n }\n return $sql;\n }",
"public function limit($limit, $offset = null);",
"public function limit($limit, $offset = 0);",
"public function limit($limit = null) {\n\t\t$this->_queryOptions['limit'] = $limit;\n\t}",
"public function setQueryOffset(int $offset)\n {\n $this->offset = (int) $offset;\n }",
"protected function set_offset(){\n $this->data['offset'] = ($this->page - 1) * $this->limit;\n }",
"abstract public function addLimit($sql, $limit = -1, $offset = 1);",
"public function applyLimit(&$sql, $offset, $limit);",
"public function offset($offset)\n {\n if (false) {\n $limitFragmentFound = false;\n foreach ($this->queryFragments as $sqlFragment) {\n if ($sqlFragment instanceof LimitFragment) {\n $limitFragmentFound = true;\n }\n }\n if ($limitFragmentFound == false) {\n throw new EntityWranglerException(\"Cannot add offset without a limit, due to mysql limitation\");\n }\n }\n \n $this->queryFragments[] = new OffsetFragment($offset);\n }",
"private function applyOffsetLimit($endPointUrl)\n {\n $endPointUrlArray = parse_url($endPointUrl);\n\n if (!isset($endPointUrlArray['query'])) {\n $endPointUrlArray['query'] = null;\n }\n\n parse_str($endPointUrlArray['query'], $queryStringArray);\n\n $queryStringArray['offset'] = $this->offset;\n $queryStringArray['limit'] = min(max(1, $this->limit), 10);\n\n $endPointUrlArray['query'] = http_build_query($queryStringArray, null, '&');\n\n $endPointUrl = (isset($endPointUrlArray['scheme'])) ? \"{$endPointUrlArray['scheme']}://\" : '';\n $endPointUrl.= (isset($endPointUrlArray['host'])) ? \"{$endPointUrlArray['host']}\" : '';\n $endPointUrl.= (isset($endPointUrlArray['port'])) ? \":{$endPointUrlArray['port']}\" : '';\n $endPointUrl.= (isset($endPointUrlArray['path'])) ? \"{$endPointUrlArray['path']}\" : '';\n $endPointUrl.= (isset($endPointUrlArray['query'])) ? \"?{$endPointUrlArray['query']}\" : '';\n\n return $endPointUrl;\n }",
"function applyLimit(&$sql, $limit, $offset);",
"public function setLimits($offset, $limit, $max = 1000, $cutoff = 0)\n\t{\n\t\t$this->offset = $offset;\n\t\t$this->limit = $limit;\n\t\t$this->maxmatches = $max;\n\t}",
"public function setLimit( $count = null, $offset = 0 ) {\n $this->_limit = [ (int) $offset, (int) $count ];\n\n return $this;\n }",
"function set_paging ($arg_int_page_limit=0, $arg_offset_var_name=\"offset\") {\r\n\t\tif ($arg_int_page_limit < 0) $arg_int_page_limit = 0;\r\n\t\t$this->__page_limit = $arg_int_page_limit;\r\n\t\t$this->__offset_var_name = $arg_offset_var_name;\r\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get value from internal stack | protected function retrieve_value($k) {
if( !isset($this->_stack[$k]) ) {
return false;
}
return $this->_stack[$k];
} | [
"protected function popFromStack() {\n\n\t\tif (count($this->values_stack) === 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$value = array_shift($this->values_stack);\n\t\treturn $value;\n\n\t}",
"public function get()\n {\n return $this->_stack;\n }",
"protected function _peek()\n\t{\n\t\treturn $this->decode_stack[$this->decode_top];\n\t}",
"public function testPeekReturnsTopValue() : void\n {\n $this->stack->push('foo');\n $this->assertEquals('foo', $this->stack->peek());\n $this->stack->push('bar');\n $this->assertEquals('bar', $this->stack->peek());\n }",
"public function getStack()\n {\n if (array_key_exists('stack', $this->_data)) { return $this->_data['stack']; }\n return NULL;\n }",
"public function peek(){\n return current($this->stack);\n }",
"public function popCharacter(){\n\n $valor = array_shift($this->stack);\n return $valor;\n }",
"protected function &getStorageRef()\n {\n if (count($this->stack) > 0) {\n return $this->stack[count($this->stack) - 1];\n }\n return $this->var;\n }",
"private function getCurrentState() {\n\t\treturn $this->stateStack[0];\n\t}",
"function getValue($value) {\n\t\t\tif ($this->isReg($value)) { return $this->registers[$value]; }\n\t\t\treturn $value;\n\t\t}",
"function getStack($num = null)\n {\n return isset($num, $this->stack[$num]) ? \n $this->stack[$num] : $this->stack;\n }",
"function popResult() {\n return array_pop($this->stack);\n }",
"public function getValue() {\n\t\treturn $this->cache[$this->key];\n\t}",
"public function getStack()\r\n {\r\n return $this->stack;\r\n }",
"public function pop () {\n\t\t#/opt/haxe/std/haxe/ds/GenericStack.hx:131: characters 3-16\n\t\t$k = $this->head;\n\t\t#/opt/haxe/std/haxe/ds/GenericStack.hx:132: lines 132-137\n\t\tif ($k === null) {\n\t\t\t#/opt/haxe/std/haxe/ds/GenericStack.hx:133: characters 4-15\n\t\t\treturn null;\n\t\t} else {\n\t\t\t#/opt/haxe/std/haxe/ds/GenericStack.hx:135: characters 4-17\n\t\t\t$this->head = $k->next;\n\t\t\t#/opt/haxe/std/haxe/ds/GenericStack.hx:136: characters 4-16\n\t\t\treturn $k->elt;\n\t\t}\n\t}",
"function getVariable($name, $defValue = null) {\n if(is_array($name)) {\n $name = $name[1];\n }\n \n $i = $this->stackPosition;\n while($i >= 0 && !array_key_exists($name, $this->stack[$i])) {\n $i--;\n } \n \n return $i >= 0 ? $this->stack[$i][$name] : $defValue; \n }",
"public function pop() {\n\t\t\t$item = array_pop($this->stack);\n\t\t\treturn $item;\n\t\t}",
"abstract protected function getStackPos(): int;",
"public function __invoke() {\n return $this->stack;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if a place exists with the same name | function place_exists($name)
{
//Query the places table and get the place with the selected name
$query = $this->db->get_where('places',array('name'=>$name));
//If the place was found then return true, otherwise false
if (count($query->result()) > 0)
{
return TRUE;
}
else
{
return FALSE;
}
} | [
"function _place_exists($name)\n\t{\t\t\t\t\n\t\t//Check if the user exists with the username and password provided\n\t\tif($this->Place_model->place_exists($name) === FALSE)\n\t\t{\t\n\t\t\t//Category exists, return true\n\t\t\treturn TRUE;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//Category does not exist, set a validation message\n\t\t\t$this->form_validation->set_message('_place_exists','Place with that name already exists');\n\t\n\t\t\t//Return false, validation failed\n\t\t\treturn FALSE;\n\t\t}\n\t\n\t}",
"public function testPlaceExists() {\n\t\t$expected = array('foo', 'bar');\n\t\t$result = $this->Image->placeExists(array('foo', 'bar'));\n\t\t$this->assertEquals($expected, $result);\n\t\t$this->assertEmpty($this->Image->errors);\n\n\t\t$expected = array('foo');\n\t\t$result = $this->Image->placeExists(array('foo', 'baz'));\n\t\t$this->assertEquals($expected, $result);\n\t\t$this->assertEmpty($this->Image->errors);\n\n\t\t$expected = array('foo');\n\t\t$result = $this->Image->placeExists('foo');\n\t\t$this->assertEquals($expected, $result);\n\t\t$this->assertEmpty($this->Image->errors);\n\n\t\t$result = $this->Image->placeExists(array('baz'));\n\t\t$this->assertFalse($result);\n\n\t\t$expected = array('the place(s) does not exist.');\n\t\t$this->assertEquals($expected, $this->Image->errors);\n\t}",
"public function hasPlace() {\n return isset($this->place);\n }",
"public function hasPlace() {\n return false;\n }",
"function exist() {\n\t\t\t$exist = $this->db->prepare(\"SELECT 1 FROM LOCATION WHERE name = ? \");\n\t\t\t$exist->execute(array($this->name));\n\t\t\treturn count($exist->fetchAll()) >= 1;\n\t\t}",
"function position_name_exists($positionName) {\n global $link;\n $positionName = sanitize($positionName);\n $query = mysqli_query($link, \"SELECT position_name FROM position_type WHERE position_name = '$positionName'\");\n if(mysqli_num_rows($query) > 0 ) {\n return true; \n }\n else {\n return false; \n }\n }",
"function _place_available($name)\n\t{\t\n\t\t//Get the id of the place from post\n\t\t$id = $this->input->post('id');\n\t\t\n\t\t//Get the entered place name from post\n\t\t$name = $this->input->post('name');\t\n\t\t\n\t\t//Get the user object\n\t\t$place = $this->Place_model->get_place($id);\n\t\t\n\t\t//If place exists\n\t\tif ($place)\n\t\t{\n\t\t\t//If place name is not the same as stored place name\n\t\t\tif ($place->name != $name)\n\t\t\t{\n\t\t\t\t//Name is not the same as the stored name, it is being changed\n\t\t\t\tif ($this->Place_model->place_exists($name) === FALSE)\n\t\t\t\t{\n\t\t\t\t\t//Name can be changed, new name is available return true\n\t\t\t\t\treturn TRUE;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//Name cannot be changed, set validation message\n\t\t\t\t\t$this->form_validation->set_message('_place_available','The place name chosen is already in use');\n\n\t\t\t\t\t//Return false, validation failed\n\t\t\t\t\treturn FALSE;\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//Username is not being changed\n\t\t\t\treturn TRUE;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//Cannot find user with ID provided, set validation message\n\t\t\t$this->form_validation->set_message('_place_available','Cannot find place with the information provided');\n\t\t\n\t\t\t//Return false, validation failed\n\t\t\treturn FALSE;\n\t\t}\t\n\t\n\t}",
"function exists () {\n $db = $this->getDatabase();\n\n $n = count($this->data);\n\n //If not defined, it doesn't exist\n if ($n == 0) {\n return false;\n }\n\n //Checks global location\n switch ($this->data[0][0]) {\n case 'B':\n switch (strlen($this->data[0])) {\n case 9:\n if (!$place = Place::from_code($db, $this->data[0])) {\n return false;\n }\n break;\n\n case 6:\n $body = new Body($db, substr($this->data[0], 1));\n if ($body->lastError) {\n return false;\n }\n break;\n\n default:\n message_die(GENERAL_ERROR, \"Invalid global location expression size: \" . $this->data[0], \"Location exists method\", __LINE__, __FILE__);\n\n }\n break;\n\n case 'S':\n $ship = new Ship($db, substr($this->data[0], 1));\n if ($ship->lastError) {\n return false;\n }\n break;\n\n default:\n message_die(GENERAL_ERROR, \"Invalid global location expression size: \" . $this->data[0], \"Location exists method\", __LINE__, __FILE__);\n return false;\n }\n\n\n if ($n > 1) {\n if (!isset($place)) {\n message_die(GENERAL_ERROR, \"Can't check if a local place exists for the following location: \" . $this->data[0], \"Location exists method\", __LINE__, __FILE__);\n }\n if (!$place->is_valid_local_location($this->data[1])) {\n return false;\n }\n }\n\n return true;\n }",
"function checkExistingVenue($name,$address,$pdo) {\n $checkExistingStmt = $pdo->prepare(\"SELECT VenueID FROM Venue WHERE VenueName=:VenueName AND VenueAddress=:VenueAddress\");\n $checkExistingStmt->bindValue(\":VenueName\",$name);\n $checkExistingStmt->bindValue(\":VenueAddress\",$address);\n $checkExistingStmt->execute();\n if ($checkExistingStmt->rowCount() > 0) {\n // A venue exists with the same name and address!\n return true;\n } else {\n return false;\n }\n }",
"public function checkPlace($place)\n {\n if(!is_string($place) OR empty($place))\n return false;\n\n\n $id = $this->db->select('id')\n ->from($this->expense_table)\n ->where(\"place = '$place'\")\n ->get()\n ->result();\n if(!empty($id[0]->id))\n return $id[0]->id;\n else\n return false;\n\n }",
"public function contains(string $positionName): bool;",
"function check_duplicate($name, $destination) {\n $query = $this->db\n ->where(\"tour_name\", $name)\n ->where(\"destinationID\", $destination)\n ->where(\"deleted\", 0)\n ->get(\"tours\");\n if ($query->num_rows() > 0) {\n return true;\n }\n }",
"function duplicateName(){\n $dup = $this->app['db']->fetchColumn('SELECT id from worlds where name=?', array($this->name));\n if($dup == $this->id || !$dup){\n return false;\n }\n $this->validation_errors[] = 'Name is a duplicate';\n return true;\n }",
"public function IsZoneExists($name)\r\n\t\t{\r\n\t\t\t$retval = preg_match(\"/zone(.*?){$name}(.*?)/i\", $this->NamedConfPath); \r\n\t\t\t$retval &= file_exists(\"{$this->RootPath}/{$name}.db\");\r\n\t\t\treturn($retval);\r\n\t\t}",
"public function isOwner($place_id) {\n\n $result = false;\n\n $query = \"SELECT id FROM \"._T_PLACE.\"\n WHERE id = ? AND account_id = ? ;\";\n \n if ($stmt = $this->db->prepare($query)) {\n\n $stmt->bind_param('ii', $place_id, $_SESSION['id']);\n $stmt->execute();\n $db_result = $stmt->get_result();\n\n if($db_result && $db_result->num_rows > 0){\n\n $result = true;\n\n }\n\n $stmt->close();\n\n }\n\n return $result;\n\n }",
"public function name_exists( $name ) {\n\t\n\t\t$query = $this->db->prepare(\"SELECT id FROM {$this->table_prefix}accounts WHERE name=:name\");\n\t\t$query->execute(array(\":name\" => $name));\n\t\t$member = $query->fetch();\n\t\t\t\n\t\tif(!empty($member['id'])) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t}",
"function exists($name)\n {\n clearos_profile(__METHOD__, __LINE__);\n\n try {\n $share_info = $this->get_share($name);\n } catch (Flexshare_Not_Found_Exception $e) {\n return FALSE;\n }\n\n return TRUE;\n }",
"public function teamNameExists($name)\n {\n $result = mysql_query(\"SELECT name from teams WHERE name = '$name'\");\n $no_of_rows = mysql_num_rows($result);\n if($no_of_rows > 0)\n {\n return true;\n }\n else\n {\n return false;\n }\n }",
"function exist($name, $db) {\n $resultSet = $db -> query(\"SELECT * from Pokedex WHERE name = '$name'\");\n $count = $resultSet->rowCount();\n return (!$count == 0);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of field first_leader | public function getFirstLeader()
{
return $this->first_leader;
} | [
"public function leader() {\n return $this->leader;\n }",
"function getLeaderName() {\n return $this->getFieldValue('leader_name');\n }",
"public function getLeader()\n {\n return $this->_leader;\n }",
"public function setFirstLeader($first_leader)\n {\n $this->first_leader = $first_leader;\n\n return $this;\n }",
"public function getLeader()\n\t{\n\t\t$lead_id = $this->getLeaderID();\n\t\tif (false === ($leader = Shadowrun4::getPlayerByPID($lead_id)))\n\t\t{\n\t\t\tif (false === ($leader = SR_Player::getByID($lead_id)))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn $leader;\n\t}",
"public function getLeaderId()\n {\n return $this->leaderId;\n }",
"function firstValue() {\n return $this->firstValue;\n }",
"public function getFirstNumber()\n {\n return $this->first_number;\n }",
"public function first_name()\n\t{\n\t\tif ( $this->name_parser->getName() !== $this->profile->name ) \n\t\t{\n\t\t\t$this->name_parser->setName($this->profile->name);\n\t\t}\n\t\treturn($this->name_parser->getFirst());\n\t}",
"public function getAFirst()\n\t{\n\t\treturn $this->a_first;\n\t}",
"public function getIsLeader()\n {\n return $this->is_leader;\n }",
"public function getFirstname() {\n return $this->getValue('firstname');\n }",
"public function getFirstName()\n {\n //Parse the name and set it\n $namePieces = preg_split(\"/\\s/\", $this->name);\n return $namePieces[0];\n }",
"public function getUserFirstName () {\n\t\treturn ($this->userFirstName);\n\t}",
"public static function getLeader($id) {\n // Get the student leaders cwid\n $cwid = StudentGroup::where('group_id', $id)->where('status', 'leader')->value('cwid');\n // Return their name\n return Student::getFirstName($cwid);\n }",
"public function getFirstResult()\n {\n return $this->firstResult;\n }",
"public function getFirstLetter()\n {\n return $this->data['fields']['first_letter'];\n }",
"public function getFirstTurn() {\n\t\t$turn = elgg_get_annotations(array(\n\t\t\t'guid' => $this->guid,\n\t\t\t'metastring_names' => 'pool_turn',\n\t\t\t'order_by' => 'v.string asc',\n\t\t\t'limit' => 1,\n\t\t));\n\n\t\treturn $turn[0];\n\t}",
"public function getFirstName()\n {\n return isset($this->FirstName) ? $this->FirstName : null;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Displays the topic menu | function displayTopicMenu($subId)
{
$arrTopics=getAllTopics($subId);
echo "<table id='tblTopic'>";
/* echo "<tr><td colspan='2'>".getSubName($subId)."</td></tr>";*/
foreach($arrTopics as $valTopic)
{
$arrTopicDetails=getTopicDetails($valTopic[0]);
//to give link to all subtopics
$arrSubTopic=getAllSubTopics($valTopic[0]);
$str_topic="";
foreach($arrSubTopic as $valSubTopic)
{
$arrExperiments=getExperimentDetails($valSubTopic[0]);
foreach($arrExperiments as $valExperiments)
$str_topic.="<a href='?sub=$subId&brch=$valTopic[0]&sim=$valExperiments[0]&cnt=1'>".$valExperiments[1]."</a>"." || ";
}
//
echo "<tr><td valign=\"top\"><img src='".getMenuIcons('topic_'.$valTopic[0])."' width='48' height='48' /></td>";
echo "<td><a href='?sub=$subId&brch=$valTopic[0]'>".$valTopic[1]."</a><br><span class=\"clsDescription\">".$arrTopicDetails[0][1]."<br /><br />".substr($str_topic, 0, -3)."</span></td></tr>";
}
echo "</table>";
} | [
"public function view() {\n $idTopic = filter_var($_GET['topic'], FILTER_SANITIZE_NUMBER_INT);\n\n $this->render(\"view.topic\", \"Sujet\", [\"id\" => $idTopic]);\n }",
"public function display_topic_index()\n {\n }",
"function discussion_menu($title) {\n\t$title = discussion::decode_title($title);\n\t$query = database::getInstance()->query(\"SELECT * FROM `\" . DB_PREFIX . \"Discussion` WHERE `title`='$title'\");\n\t$rows = $query->fetchAll();\n\t$owner;\n\tforeach ($rows as $row) { $owner = $row['author']; }\n\t// display these if it's the owner of the article\n\tif ($owner == auth::getCurrentUser() || auth::isAdmin() || auth::isMod()) {\n\t\techo '<a class=\"clear\" href=\"' . delete_link($title) . '\"><button class=\"red\">Delete</button></a>';\n\t\tif (auth::isAdmin() || auth::isMod()) {\n\t\t\techo '<a class=\"clear\" href=\"' . stick_link($title) . '\"><button>Toggle Stick</button></a>';\n\t\t}\n\t} else {\n\t\t// don't display delete, because they're not the owner\n\t}\n}",
"function topics($topics) {\n echo \"<div id='sidebar'>\\n\";\n echo \"\\n\";\n\n echo \"<div id='vnavcontainer'>\\n\";\n echo \"<h2>Topics</h2>\\n\";\n echo \"<ul id='vnavlist'>\\n\";\n\n # Generate the topics menu list of links.\n if (empty($topics) ) {\n echo \" <li class=\\\"comment\\\"><em>No topics listed</em></li>\\n\";\n }\n else {\n while (list($key, $val) = each($topics) ) {\n echo \" <li><a href=\\\"$val\\\">$key</a></li>\\n\";\n }\n }\n\n echo \"</ul>\\n\";\n echo \"</div>\\n\";\n\n# echo \"\\n\";\n# include(\"search.php\");\n# echo \"\\n\";\n\n# include(\"w3.php\");\n\n echo \"\\n\";\n echo \"<!-- div#sidebar -->\\n\";\n echo \"</div>\\n\";\n}",
"protected function TopicListing() {\n\t$oPathIn = fcApp::Me()->GetKioskObject()->GetInputObject();\n\t$oFormIn = fcHTTP::Request();\n\t\n\t$tTxT = $this->XTopicTable();\n\t$tTopics = $this->TopicTable();\n\t$rsTopics = $this->TopicRecords();\n\n\t$me = $this;\n\t$arOpts = $tTopics->TopicListing_base_array();\n\t$arOpts['fHandleData_Change_Start'] = function($iText) use ($me) {\n\t $arEv = array(\n\t\t'descr'\t=> 'Adding '.$iText,\n\t\t'code'\t=> 'topic++',\n\t\t'where'\t=> __METHOD__\n\t\t);\n\t $me->StartEvent($arEv);\n\t };\n\n\t$arOpts['fHandleData_Change_Finish'] = function($iText) use ($me) {\n\t $arEv = array(\n\t\t'descrfin'\t=> $iText\n\t\t);\n\t //$me->FinishEvent($arEv);\t// gives an error. TODO: fix event logging\n\t };\n\t$arOpts['fHandleData_Change_Item'] = function($iVal) use ($me,$tTxT) {\n\t $db = $me->Engine();\n\n\t $sqlTopic = $iVal;\n\t $arIns = array(\n\t\t'ID_Title'\t=> $db->SanitizeAndQuote($me->GetKeyValue()),\n\t\t'ID_Topic'\t=> $sqlTopic\n\t\t);\n\t $db->ClearError();\n\t $ok = $tTxT->Insert($arIns);\n\t if (!$ok) {\n\t\t $strErr = $db->getError();\n\t\t $out = $sqlTopic.': '.$strErr.' (SQL:'.$tTxT->sqlExec.')';\n\t } else {\n\t\t $out = $db->SanitizeAndQuote($sqlTopic);\n\t }\n\t return $out;\n\t };\n\n\t$ctrlList = new clsWidget_ShortList();\n\t$ctrlList->Options($arOpts);\n\t$htStatus = $ctrlList->HandleInput();\n\n\t$doRmvTopics = $oFormIn->GetBool('btnRmvTopics');\n\n\t// section header\n\t\n\t$oHdr = new fcSectionHeader('Topics');\n\n\t// OUTPUT begins\n\t\n\t$out = $oHdr->Render();\n\n\tif ($doRmvTopics) {\n\t $arTopics = $oFormIn->GetArray('rmvTitle');\n\t $cnt = $tTxT->DelTopics($this->GetKeyValue(),$arTopics);\n\t $out .= 'Removed '.$cnt.' topic'.fcString::Pluralize($cnt).':';\n\t foreach ($arTopics as $id => $on) {\n\t\t$rcTopic = $tTopics->GetRecord_forKey($id);\n\t\t$out .= ' '.$rcTopic->SelfLink();\n\t }\n\t $this->SelfRedirect(NULL,$out);\n\t}\n/*\n\t$htPath = $vgPage->SelfURL();\n\t$out = \"\\n<form method=post action=\\\"$htPath\\\">\";\n*/\n\t$out .= \"\\n<form method=post>\";\n\n\t//$rs = $this->Topics();\n\tif ($rsTopics->HasRows()) {\n\t while ($rsTopics->NextRow()) {\n\n\t\t$id = $rsTopics->GetKeyValue();\n\t\t$ftName = $rsTopics->SelfLink_name();\n\n\t\t$out .= \"\\n[<input type=checkbox name=\\\"rmvTitle[$id]\\\">$ftName ]\";\n\t }\n\t $out .= '<br><input type=submit name=\"btnRmvTopics\" value=\"Remove Checked\">';\n\t} else {\n\t $out .= '<i>None found.</i>';\n\t}\n/*\n\t$out .= '<input type=submit name=\"btnAddTopics\" value=\"Add These:\">';\n\t$out .= '<input size=40 name=txtNewTitles> (IDs separated by spaces)';\n*/\n\t$out .= '<br>'.$htStatus;\n\t$out .= $ctrlList->RenderForm_Entry();\n\n\t$out .= '</form>';\n\treturn \"<div class=content>$out</div>\";\n }",
"function view_sub_topic()\r\n\t{\t\t\t\t\r\n\t\tif(!isset($_SESSION['adminUserName']) || $_SESSION['adminUserName'] =='')\r\n\t\t{\r\n\t\t\tredirect('admin/admin_login', 'location');\r\n\t\t}\r\n\t\telse\r\n\t\t{\t\r\n\t\t\t$arrDetails = array();\t\r\n\t\t\t$this->load->model('dal/help_db_manager');\r\n\t\t\t$this->load->model('dal/time_manager');\t\r\n\t\t\t$arrDetails['arrSubTopics'] = $this->help_db_manager->getAllSubTopics();\t\t\t\t\t\t\r\n\t\t\t$this->load->view('admin/view_help_sub_topic', $arrDetails);\t\t\r\n\t\t}\r\n\t}",
"public function display_topic_tags()\n {\n }",
"function viewtopic() {\n\t\t$this->filter_url($this->seo_stop_vars);\n\t\t\n\t\tif ( !empty($this->get_vars[POST_TOPIC_URL]) ) {\n\t\t\n\t\t\t// Filter default params\n\t\t\t$this->filter_get_var($this->phpbb_filter);\n\t\t\t$this->seo_pagination();\n\t\t\t$this->url = $this->seo_static['topic'] . $this->get_vars[POST_TOPIC_URL] . $this->start . $this->seo_ext['topic'];\n\t\t\tunset($this->get_vars[POST_TOPIC_URL]);\n\t\t\t\n\t\t} elseif ( !empty($this->get_vars[POST_POST_URL]) ) {\n\t\t\n\t\t\t$this->url = $this->seo_static['post'] . $this->get_vars[POST_POST_URL] . $this->seo_ext['topic'];\n\t\t\tunset($this->get_vars[POST_POST_URL]);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn;\n\t}",
"function display()\n {\n echo $this->menu;\n }",
"public function vxTopicView($topic_id) {\n\t\t$Topic = new Topic($topic_id, $this->db, 1, 1);\n\t\t$Node = new Node($Topic->tpc_pid, $this->db);\n\t\t$Section = $Node->vxGetNodeInfo($Node->nod_sid);\n\t\tif ($this->User->vxIsLogin()) {\n\t\t\t$sql = \"SELECT fav_id FROM babel_favorite WHERE fav_uid = {$this->User->usr_id} AND fav_type = 0 AND fav_res = {$Topic->tpc_id}\";\n\t\t\t$rs = mysql_query($sql, $this->db);\n\t\t\tif (mysql_num_rows($rs) == 1) {\n\t\t\t\t$Fav = mysql_result($rs, 0, 0);\n\t\t\t} else {\n\t\t\t\t$Fav = 0;\n\t\t\t}\n\t\t\tmysql_free_result($rs);\n\t\t} else {\n\t\t\t$Fav = 0;\n\t\t}\n\t\techo('<div id=\"main\">');\n\t\techo('<div class=\"blank\">你当前位于 <a href=\"/\">' . Vocabulary::site_name . '</a> > <a href=\"/go/' . $Section->nod_name . '\" target=\"_self\">' . $Section->nod_title . '</a> > <a href=\"/go/' . $Node->nod_name . '\" target=\"_self\">' . $Node->nod_title . '</a> > ' . make_plaintext($Topic->tpc_title) . '</div>');\n\t\t\n\t\techo('<div class=\"blank\"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">');\n\t\techo('<tr><td valign=\"top\" align=\"center\"><a name=\"imgPortrait\"></a>');\n\t\tif ($Topic->usr_portrait == '') {\n\t\t\techo('<a href=\"/u/' . $Topic->usr_nick . '\" class=\"var\"><img src=\"/img/p_' . $Topic->usr_gender . '.gif\" style=\"margin-bottom: 5px;\" class=\"portrait\" /></a><br /><a href=\"/u/' . $Topic->usr_nick . '\">' . $Topic->usr_nick . '</a>');\n\t\t} else {\n\t\t\techo('<a href=\"/u/' . $Topic->usr_nick . '\" class=\"var\"><img src=\"/img/p/' . $Topic->usr_portrait . '.' . BABEL_PORTRAIT_EXT . '\" style=\"margin-bottom: 5px;\" class=\"portrait\" /></a><br /><a href=\"/u/' . $Topic->usr_nick . '\">' . $Topic->usr_nick . '</a>');\n\t\t}\n\t\t$sql = \"SELECT COUNT(tpc_id) FROM babel_topic WHERE tpc_uid = {$Topic->usr_id}\";\n\t\t$rs = mysql_query($sql, $this->db);\n\t\tif ($this->tpc_count > 0) {\n\t\t\t$usr_share = (mysql_result($rs, 0, 0) / $this->tpc_count) * 100;\n\t\t} else {\n\t\t\t$usr_share = 0;\n\t\t}\n\t\tmysql_free_result($rs);\n\t\tprintf(\"<small class=\\\"grey\\\"><br /><br /><a href=\\\"/topic/archive/user/{$Topic->usr_nick}\\\">%.3f%%</a></small>\", $usr_share);\n\t\tif ($this->User->vxIsLogin()) {\n\t\t\tif ($Topic->usr_id != $this->User->usr_id) {\n\t\t\t\techo(\"<br /><br /><button class=\\\"mini\\\" onclick=\\\"sendMessage({$Topic->usr_id})\\\"><img src=\\\"/img/tico_mail_send.gif\\\" border=\\\"0\\\" /></button>\");\n\t\t\t}\n\t\t}\n\t\techo('</td><td valign=\"top\" align=\"right\" class=\"text\">');\n\t\tif ($this->User->vxIsLogin()) {\n\t\t\techo('<a href=\"#replyForm\" onclick=\"jumpReply();\">回复主题</a>');\n\t\t} else {\n\t\t\techo('<a href=\"/login//topic/view/' . $Topic->tpc_id . '.html\">登录后回复主题</a>');\t\n\t\t}\n\t\techo(' | ');\n\t\tif (strlen($Topic->tpc_description) > 0) {\n\t\t\techo('<a href=\"#\" onclick=\"switchDisplay(' . \"'\" . 'tpcBrief' . \"'\" . ');\">切换简介显示</a> | ');\n\t\t}\n\t\techo('<a href=\"#reply\">跳到回复</a>');\n\t\tif ($Topic->tpc_posts > 0) {\n\t\t\techo('<small class=\"fade\">(' . $Topic->tpc_posts . ')</small>');\n\t\t}\n\t\tif ($this->User->usr_id == 1) {\n\t\t\techo(' | <a href=\"/topic/move/' . $Topic->tpc_id . '.vx\">移动主题</a>');\n\t\t}\n\t\tif ($Topic->tpc_uid == $this->User->usr_id) {\n\t\t\techo(' | <a href=\"/topic/modify/' . $Topic->tpc_id . '.vx\">修改主题</a>');\n\t\t} else {\n\t\t\tif ($this->User->usr_id == 1) {\n\t\t\t\techo(' | <a href=\"/topic/modify/' . $Topic->tpc_id . '.vx\">修改主题</a>');\n\t\t\t}\n\t\t}\n\t\techo('<div class=\"brief\" id=\"tpcBrief\">' . $Topic->tpc_description . '</div><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td width=\"40\" height=\"30\" class=\"lt\"></td><td height=\"30\" class=\"ct\"></td><td width=\"40\" height=\"30\" class=\"rt\"></td></tr><tr><td width=\"40\" class=\"lm\" valign=\"top\"><img src=\"/img/td_arrow.gif\" /></td><td class=\"origin\" valign=\"top\"><span class=\"text_title\">');\n\t\tif ($Fav > 0) {\n\t\t\techo('<img src=\"/img/tico_star.gif\" align=\"absmiddle\" /> ');\n\t\t}\n\t\techo('<strong>' . make_plaintext($Topic->tpc_title) . '</strong></span> <span class=\"tip_i\">... by ' . $Topic->usr_nick . ' ... ' . make_descriptive_time($Topic->tpc_created) . ',' . $Topic->tpc_hits . ' 次点击 </span>');\n\t\tif ($this->User->usr_id == 1) {\n\t\t\techo(' <img src=\"/img/tico_erase.gif\" align=\"absmiddle\" onclick=\"if (confirm(' . \"'确认擦除?'\" . ')) {location.href=' . \"'/topic/erase/{$Topic->tpc_id}.vx';\" . '}\" border=\"0\" />');\n\t\t}\n\t\techo('</span><br /><br />' . $Topic->tpc_content);\n\t\t\n\t\techo('</span></td><td width=\"40\" class=\"rm\"></td></tr><tr><td width=\"40\" height=\"20\" class=\"lb\"></td><td height=\"20\" class=\"cb\"></td><td width=\"40\" height=\"20\" class=\"rb\"></td></tr></table></td></tr>');\n\t\techo('</table>');\n\t\techo('</div>');\n\t\t\n\t\techo('<div class=\"blank\" align=\"right\">');\n\t\t\n\t\t/* S: left and right */\n\t\t\n\t\t$sql = \"SELECT tpc_id, tpc_title FROM babel_topic WHERE tpc_created < {$Topic->tpc_created} AND tpc_uid = {$Topic->tpc_uid} ORDER BY tpc_created DESC LIMIT 1\";\n\t\t$rs = mysql_query($sql, $this->db);\n\t\tif (mysql_num_rows($rs) == 1) {\n\t\t\t$Left = mysql_fetch_object($rs);\n\t\t\techo ('<a href=\"/topic/view/' . $Left->tpc_id . '.html\" class=\"h\"><span class=\"tip_i\">< ... </span>' . make_plaintext($Left->tpc_title) . ' </a>');\n\t\t}\n\t\tmysql_free_result($rs);\n\t\t\n\t\t$sql = \"SELECT tpc_id, tpc_title FROM babel_topic WHERE tpc_created > {$Topic->tpc_created} AND tpc_uid = {$Topic->tpc_uid} ORDER BY tpc_created ASC LIMIT 1\";\n\t\t$rs = mysql_query($sql, $this->db);\n\t\tif (mysql_num_rows($rs) == 1) {\n\t\t\t$Right = mysql_fetch_object($rs);\n\t\t\techo ('<a href=\"/topic/view/' . $Right->tpc_id . '.html\" class=\"h\"> ' . make_plaintext($Right->tpc_title) . '<span class=\"tip_i\"> ... ></span></a>');\n\t\t}\n\t\tmysql_free_result($rs);\n\t\t\n\t\t/* E: left and right */\n\t\t\n\t\t/* S: add to favorite */\n\t\t\n\t\tif ($this->User->vxIsLogin()) {\n\t\t\tif ($Fav > 0) {\n\t\t\t\techo('<div id=\"tpcFav\" style=\"display: inline;\"><a onclick=\"removeFavoriteTopic(' . $Fav . ')\" href=\"#;\" class=\"h\">X 我不再喜欢这篇主题</a></div>');\n\t\t\t} else {\n\t\t\t\techo('<div id=\"tpcFav\" style=\"display: inline;\"><a onclick=\"addFavoriteTopic(' . $Topic->tpc_id . ')\" href=\"#;\" class=\"h\">:) 我喜欢这篇主题</a></div>');\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* E: add to favorite */\n\t\t\n\t\techo('</div>');\n\t\techo('<div class=\"blank\">');\n\t\techo('<a name=\"reply\" class=\"img\"><img src=\"/img/spacer.gif\" width=\"1\" height=\"1\" style=\"display: none;\" /></a>');\n\t\t$p = array();\n\t\t$p['base'] = '/topic/view/' . $topic_id . '/';\n\t\t$p['ext'] = '.html';\n\t\t$sql = \"SELECT COUNT(pst_id) FROM babel_post WHERE pst_tid = {$topic_id}\";\n\t\t$rs = mysql_query($sql, $this->db);\n\t\t$p['items'] = mysql_result($rs, 0, 0);\n\t\t$Topic->tpc_reply_count = $p['items'];\n\t\tmysql_free_result($rs);\n\t\t$i = 0;\n\t\tif ($p['items'] > 0) {\n\t\t\t$p['size'] = BABEL_TPC_PAGE;\n\t\t\t$p['span'] = BABEL_PG_SPAN;\n\t\t\tif (($p['items'] % $p['size']) == 0) {\n\t\t\t\t$p['total'] = $p['items'] / $p['size'];\n\t\t\t} else {\n\t\t\t\t$p['total'] = floor($p['items'] / $p['size']) + 1;\n\t\t\t}\n\t\t\tif (isset($_GET['p'])) {\n\t\t\t\t$p['cur'] = intval($_GET['p']);\n\t\t\t} else {\n\t\t\t\t$p['cur'] = 1;\n\t\t\t}\n\t\t\tif ($p['cur'] < 1) {\n\t\t\t\t$p['cur'] = 1;\n\t\t\t}\n\t\t\tif ($p['cur'] > $p['total']) {\n\t\t\t\t$p['cur'] = $p['total'];\n\t\t\t}\n\t\t\tif (($p['cur'] - $p['span']) >= 1) {\n\t\t\t\t$p['start'] = $p['cur'] - $p['span'];\n\t\t\t} else {\n\t\t\t\t$p['start'] = 1;\n\t\t\t}\n\t\t\tif (($p['cur'] + $p['span']) <= $p['total']) {\n\t\t\t\t$p['end'] = $p['cur'] + $p['span'];\n\t\t\t} else {\n\t\t\t\t$p['end'] = $p['total'];\n\t\t\t}\n\t\t\t$p['sql'] = ($p['cur'] - 1) * $p['size'];\n\t\t\t$rs = $Topic->vxGetAllReply($p);\n\t\t}\n\t\tif ($Topic->tpc_reply_count > 0) {\n\t\t\techo('<div id=\"vxReplyTop\">本主题共有 ' . $Topic->tpc_posts . ' 条回复 | <a href=\"#top\">回到顶部</a> | ');\n\t\t\tif ($this->User->vxIsLogin()) {\n\t\t\t\techo('<a href=\"#replyForm\" onclick=\"jumpReply();\">回复主题</a>');\n\t\t\t} else {\n\t\t\t\techo('<a href=\"/login//topic/view/' . $Topic->tpc_id . '.html\">登录后回复主题</a>');\t\n\t\t\t}\n\t\t\tif ($p['total'] > 1) {\n\t\t\t\techo('<br /><br />');\n\t\t\t\t$this->vxDrawPages($p);\n\t\t\t}\n\t\t\techo('</div>');\n\t\t\t$i = 0;\n\t\t\twhile ($Reply = mysql_fetch_object($rs)) {\n\t\t\t\tif ($Reply->usr_portrait == '') {\n\t\t\t\t\t$img_usr_portrait = '/img/p_' . $Reply->usr_gender . '_s.gif';\n\t\t\t\t} else {\n\t\t\t\t\t$img_usr_portrait = '/img/p/' . $Reply->usr_portrait . '_s.' . BABEL_PORTRAIT_EXT;\n\t\t\t\t}\n\t\t\t\tif ($this->User->usr_id == 1) {\n\t\t\t\t\t$ico_erase = ' <img src=\"/img/tico_erase.gif\" align=\"absmiddle\" onclick=\"if (confirm(' . \"'确认擦除?'\" . ')) {location.href=' . \"'/post/erase/{$Reply->pst_id}.vx';\" . '}\" border=\"0\" />';\n\t\t\t\t} else {\n\t\t\t\t\t$ico_erase = '';\n\t\t\t\t}\n\t\t\t\t$i++;\n\t\t\t\t$j = ($p['cur'] - 1) * 60 + $i;\n\t\t\t\tif (substr($Reply->pst_title, 0, 4) == 'Re: ') {\n\t\t\t\t\tif ($Reply->usr_id == $Topic->tpc_uid) {\n\t\t\t\t\t\t$txt_title = $j . ' 楼 <strong class=\"red\">**</strong> <a href=\"/u/' . $Reply->usr_nick . '\">' . $Reply->usr_nick . '</a> @ ' . make_descriptive_time($Reply->pst_created);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$txt_title = $j . ' 楼 <a href=\"/u/' . $Reply->usr_nick . '\">' . $Reply->usr_nick . '</a> @ ' . make_descriptive_time($Reply->pst_created);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif ($Reply->usr_id == $Topic->tpc_uid) {\n\t\t\t\t\t\t$txt_title = $j . ' 楼 <strong class=\"red\">**</strong> <a href=\"/u/' . $Reply->usr_nick . '\">' . $Reply->usr_nick . '</a> @ ' . make_descriptive_time($Reply->pst_created) . '说: ' . $Reply->pst_title;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$txt_title = $j . ' 楼 <a href=\"/u/' . $Reply->usr_nick . '\">' . $Reply->usr_nick . '</a> @ ' . make_descriptive_time($Reply->pst_created) . '说: ' . $Reply->pst_title;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$txt_title .= $ico_erase;\n\t\t\t\t\n\t\t\t\tif (($i % 2) == 0) {\n\t\t\t\t\techo ('<div class=\"light_even\"><span style=\"color: ' . rand_color() . ';\"><img src=\"' . $img_usr_portrait . '\" align=\"absmiddle\" style=\"border-left: 2px solid ' . rand_color() . '; padding: 0px 5px 0px 5px;\" />');\n\t\t\t\t\tif ($Reply->usr_id == $Topic->tpc_uid) {\n\t\t\t\t\t\techo ($txt_title . '</span><br /><br />' . format_ubb($Reply->pst_content));\n\t\t\t\t\t} else {\n\t\t\t\t\t\techo ($txt_title . '</span><br /><br />' . format_ubb($Reply->pst_content));\n\t\t\t\t\t}\n\t\t\t\t\techo ('</div>');\n\t\t\t\t} else {\n\t\t\t\t\techo ('<div class=\"light_odd\"><span style=\"color: ' . rand_color() . ';\"><img src=\"' . $img_usr_portrait . '\" align=\"absmiddle\" style=\"border-left: 2px solid ' . rand_color() . '; padding: 0px 5px 0px 5px;\" />');\n\t\t\t\t\tif ($Reply->usr_id == $Topic->tpc_uid) {\n\t\t\t\t\t\techo ($txt_title . '</span><br /><br />' . format_ubb($Reply->pst_content));\n\t\t\t\t\t} else {\n\t\t\t\t\t\techo ($txt_title . '</span><br /><br />' . format_ubb($Reply->pst_content));\n\t\t\t\t\t}\n\t\t\t\t\techo ('</div>');\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($p['total'] > 1) {\n\t\t\t\t$this->vxDrawPages($p);\n\t\t\t\techo('<br /><br />');\n\t\t\t}\n\t\t\techo('<div id=\"vxReplyTip\"><a name=\"replyForm\" class=\"img\"><img src=\"/img/spacer.gif\" width=\"1\" height=\"1\" style=\"display: none;\" /></a>看完之后有话想说?那就帮楼主加盖一层吧!</div>');\n\t\t} else {\n\t\t\techo('<div id=\"vxReplyTip\"><a name=\"replyForm\" class=\"img\"><img src=\"/img/spacer.gif\" width=\"1\" height=\"1\" style=\"display: none;\" /></a>目前这个主题还没有回复,或许你可以帮楼主加盖一层?</div>');\n\t\t}\n\t\t$i++;\n\t\tif (($i % 2) == 0) { $_tmp = 'light_even'; } else { $_tmp = 'light_odd'; }\n\t\tif ($this->User->vxIsLogin()) {\n\t\t\tif ($this->User->usr_portrait == '') {\n\t\t\t\t$img_usr_portrait = '/img/p_' . $this->User->usr_gender . '_s.gif';\n\t\t\t} else {\n\t\t\t\t$img_usr_portrait = '/img/p/' . $this->User->usr_portrait . '_s.' . BABEL_PORTRAIT_EXT;\n\t\t\t}\n\t\t\techo('<div class=\"' . $_tmp . '\"><form action=\"/post/create/' . $Topic->tpc_id . '.vx\" method=\"post\"><span style=\"color: ' . rand_color() . ';\"><img src=\"' . $img_usr_portrait . '\" align=\"absmiddle\" style=\"border-left: 2px solid ' . rand_color(0, 1) . '; padding: 0px 5px 0px 5px;\" />现在回复楼主道:<input type=\"text\" class=\"sll\" name=\"pst_title\" value=\"Re: ' . make_single_return($Topic->tpc_title, 0) . '\" /><br /><br /><textarea name=\"pst_content\" rows=\"10\" class=\"quick\" id=\"taQuick\"></textarea><div align=\"left\" style=\"margin: 10px 0px 0px 0px; padding-left: 450px;\"><input id=\"imgReply\" type=\"image\" src=\"/img/silver/sbtn_reply.gif\" border=\"0\" alt=\"回复\" /></div></span></form></div>');\n\t\t} else {\n\t\t\techo('<div class=\"' . $_tmp . '\" align=\"left\"><span class=\"text_large\"><img src=\"/img/ico_conf.gif\" align=\"absmiddle\" class=\"home\" />在回复之前你需要先进行登录</span>');\n\t\t\techo('<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"form\">');\n\t\t\techo('<form action=\"/login.vx\" method=\"post\" id=\"Login\">');\n\t\t\techo('<input type=\"hidden\" name=\"return\" value=\"/topic/view/' . $Topic->tpc_id . '.html\" />');\n\t\t\techo('<tr><td width=\"200\" align=\"right\">电子邮件或昵称</td><td width=\"200\" align=\"left\"><input type=\"text\" maxlength=\"100\" class=\"sl\" name=\"usr\" tabindex=\"1\" /></td><td width=\"150\" rowspan=\"2\" valign=\"middle\" align=\"right\"><input type=\"image\" src=\"/img/silver/btn_login.gif\" alt=\"' . Vocabulary::action_login . '\" tabindex=\"3\" /></td></tr><tr><td width=\"200\" align=\"right\">密码</td><td align=\"left\"><input type=\"password\" maxlength=\"32\" class=\"sl\" name=\"usr_password\" tabindex=\"2\" /></td></tr></form></table></div>');\n\t\t}\n\t\techo('<a href=\"#top\">回到顶部</a> | <a href=\"/\">回到首页</a>');\n\t\tif ($this->User->vxIsLogin()) {\n\t\t\techo(' | <a href=\"/user/modify.vx\">修改信息</a>');\n\t\t} else {\n\t\t\techo(' | <a href=\"/signup.html\">注册</a> | <a href=\"/passwd.vx\">忘记密码</a>');\n\t\t}\n\t\techo('</div>');\n\t\techo('</div>');\n\t}",
"public function showToMegaMenu()\n {\n }",
"public function add_latest_topics_page() {\n\t\t$latest_topics_settings = add_submenu_page(\n\t\t// The parent page from the wp-discourse plugin.\n\t\t\t'wp_discourse_options',\n\t\t\t__( 'Latest Topics', 'dclt' ),\n\t\t\t__( 'Latest Topics', 'dclt' ),\n\t\t\t'manage_options',\n\t\t\t'dclt_options',\n\t\t\tarray( $this, 'dclt_options_page' )\n\t\t);\n\t\t// This is optional, it checks the connection status with Discourse after saving the settings page.\n\t\tadd_action( 'load-' . $latest_topics_settings, array( $this->form_helper, 'connection_status_notice' ) );\n\t}",
"public function view ()\n {\n Layout::addPageTitle(dgettext('phpwsbb', 'Topic').': '.strip_tags($this->title));\n Layout::addStyle('phpwsbb');\n\n /* Get Thread Info */\n $tags = $this->_get_tags();\n\n /* Now test to see if thread is viewable */\n if($this->is_phpwsbb && !$this->total_posts > 0)\n $content = dgettext('phpwsbb', 'The thread you requested is awaiting approval by an administrator.');\n elseif(empty($tags))\n $content = dgettext('phpwsbb', 'The thread you requested is not available. Please check the security logs.');\n else {\n /* Raise the Key flag (also updates view count)*/\n $this->_key->flag();\n /* Get Comment Thread */\n PHPWS_Core::initModClass('comments', 'Comments.php');\n $thread = Comments::getThread($this->_key);\n $content = $thread->view();\n }\n return PHPWS_Template::processTemplate($tags, 'phpwsbb', 'topic.tpl') . $content;\n }",
"public function execute( )\r\n\t{\r\n\t\tglobal $wgOut, $wgArticlePath, $wgRequest;\r\n\r\n\t\t$topic = $wgRequest->getVal( 'topic' );\r\n\t\tif( !$topic || !strlen( $topic )) {\r\n\t\t\tob_start();\r\n\t\t\t?>\r\n\t\t\t<p>\r\n\t\t\tThis special page is supposed to be called from a Documentation topic. It's use is to list all available articles for a requested topic.\r\n\t\t\t</p>\r\n\t\t\t<p>\r\n\t\t\tTo use this feature, browse to a Documentation article and click on the 'View All' link at the top of the article.\r\n\t\t\t</p>\r\n\t\t\t<?php\r\n\t\t\t$this->setHeaders();\r\n\t\t\t$wgOut->setPagetitle('Invalid Use Of This Special Page');\r\n\t\t\t$wgOut->addHTML(ob_get_contents());\r\n\t\t\tob_end_clean();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif( !preg_match( '/' . PONYDOCS_DOCUMENTATION_PREFIX . '(.*):(.*):(.*)/i', $topic, $match ))\r\n\t\t\treturn;\r\n\r\n\t\t$dbr = wfGetDB( DB_SLAVE );\r\n\r\n\t\t$this->setHeaders( );\r\n\t\t$wgOut->setPagetitle( 'Topic Listing For ' . $topic );\r\n\t\t$wgOut->addHTML( '<h2>Topic Listing For Topic <b>'. $match[3] . '</b> in ' . $match[2] . ' manual for ' . $match[1] . ' product.</h2>' );\r\n\r\n\t\t$q =\t\"SELECT DISTINCT(cl_sortkey) \" .\r\n\t\t\t\t\"FROM categorylinks \" .\r\n\t\t\t\t\"WHERE LOWER(CAST(cl_sortkey AS CHAR)) LIKE '\" . $dbr->strencode( strtolower( $topic ) ) . \":%'\";\r\n\r\n\t\t$res = $dbr->query( $q, __METHOD__ );\r\n\t\tif( !$res->numRows( ))\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t$wgOut->addHTML( 'The following is a list of articles for the specified topic and the versions to which they apply.<br><br><ul>' );\r\n\r\n\t\twhile( $row = $dbr->fetchObject( $res ))\r\n\t\t{\r\n\t\t\t$vRes = $dbr->select( 'categorylinks', 'cl_to', \"cl_sortkey = '\" . $row->cl_sortkey . \"'\", __METHOD__ );\r\n\t\t\tif( !$vRes->numRows( ))\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t$wgOut->addHTML( '<li>' . $row->cl_sortkey . ': ' );\r\n\r\n\t\t\t$hasVersions = false;\r\n\t\t\twhile( $vRow = $dbr->fetchObject( $vRes ))\r\n\t\t\t{\r\n\t\t\t\tif( preg_match( '/^V:(.*):(.*)/i', $vRow->cl_to, $vmatch ))\r\n\t\t\t\t{\r\n\t\t\t\t\t$wgOut->addHTML( '<a href=\"' . str_replace( '$1', $row->cl_sortkey, $wgArticlePath ) . '\">' . $vmatch[2] . '</a> ' );\r\n\t\t\t\t\t$hasVersions = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif( !$hasVersions )\r\n\t\t\t\t$wgOut->addHTML( 'None' );\r\n\r\n\t\t\t$wgOut->addHTML( '</li><br>' );\r\n\t\t}\r\n\r\n\t\t$wgOut->addHTML( '</ul><br><br>' );\r\n\t\treturn;\r\n\t}",
"function bbp_member_forums_screen_topics() {\n\tadd_action( 'bp_template_content', 'bbp_member_forums_topics_content' );\n\tbp_core_load_template( apply_filters( 'bbp_member_forums_screen_topics', 'members/single/plugins' ) );\n}",
"function visithasselt_general_topic_menu($node) {\n if ($node->type != 'landings_page') {\n return;\n }\n\n $landings_page_type = !empty($node->field_landings_page_type[LANGUAGE_NONE][0]['value']) ? $node->field_landings_page_type[LANGUAGE_NONE][0]['value'] : NULL;\n $landings_page_menu = !empty($node->field_landings_page_menu[LANGUAGE_NONE][0]['value']) ? $node->field_landings_page_menu[LANGUAGE_NONE][0]['value'] : FALSE;\n if ($landings_page_type != 'landings_page' || !$landings_page_menu) {\n return;\n }\n\n $nid = $node->nid;\n if (isset($node->tnid) && !empty($node->tnid)) {\n $nid = $node->tnid;\n }\n\n drupal_goto('admin/structure/menu/manage/landings_page_' . $nid);\n}",
"function bb_base_homepage_topics( $args = false ) {\n\techo bb_base_get_homepage_topics( $args );\n}",
"function meta_box_topics_callback() {\n\t?>\n\t<div id=\"sfwd-topics-app\"></div>\n\t<?php\n}",
"function display_a_topic($row, $header_title='', $with_nav=false)\n\t{\n\t\tglobal $template, $config, $user, $forums, $icons, $topics_attr;\n\t\tglobal $images;\n\n\t\t// retreive topic type attributs\n\t\t$attr = $topics_attr->get_attr($row);\n\t\t$count_attr = count($attr);\n\n\t\t// folder image\n\t\t$s_folder_img = $user->img($attr[0]['img']);\n\t\t$s_folder_txt = '';\n\t\t$count_txt = count($attr[0]['txt']);\n\t\tfor ( $i = 0; $i < $count_txt; $i++ )\n\t\t{\n\t\t\t$s_folder_txt .= (empty($s_folder_txt) ? ' ' : \" \\n \") . _clean_html($user->lang($attr[0]['txt'][$i]));\n\t\t}\n\n\t\t// usernames\n\t\tif ( ($row['topic_poster'] != ANONYMOUS) && isset($user->pool[ $row['topic_poster'] ]) )\n\t\t{\n\t\t\t$row['topic_first_username'] = $user->pool[ $row['topic_poster'] ]['username'];\n\t\t}\n\t\tif ( ($row['topic_last_poster'] != ANONYMOUS) && isset($user->pool[ $row['topic_last_poster'] ]) )\n\t\t{\n\t\t\t$row['topic_last_username'] = $user->pool[ $row['topic_last_poster'] ]['username'];\n\t\t}\n//-- mod : hypercell class -----------------------------------------------------\n//-- add\n\t\tif ( $row['topic_type'] == POST_GLOBAL_ANNOUNCE )\n\t\t{\n\t\t\t$hcc_dft = 'hccRow-announce';\n\t\t\t$hcc_new = 'hccRow-new-announce';\n\t\t}\n\t\telse if ( $row['topic_type'] == POST_ANNOUNCE )\n\t\t{\n\t\t\t$hcc_dft = 'hccRow-announce';\n\t\t\t$hcc_new = 'hccRow-new-announce';\n\t\t}\n\t\telse if ( $row['topic_type'] == POST_STICKY )\n\t\t{\n\t\t\t$hcc_dft = 'hccRow-sticky';\n\t\t\t$hcc_new = 'hccRow-new-sticky';\n\t\t}\n\t\telse if ( $row['topic_replies'] >= $config->data['hot_threshold'] && $row['topic_type'] != POST_ANNOUNCE && $row['topic_type'] != POST_STICKY )\n\t\t{\n\t\t\t$hot = true;\n\t\t\t$hcc_dft = 'hccRow-hot';\n\t\t\t$hcc_new = 'hccRow-new-hot';\n\t\t}\t\n\t\telse\n\t\t{\n\t\t\t$hcc_dft = 'hccRow';\n\t\t\t$hcc_new = 'hccRow-new';\n\t\t}\n\t\t$hcc_lock = 'hccRow-lock';\n\t\t$hypercell_class = ( $row['topic_status'] == TOPIC_LOCKED ) ? $hcc_lock : ($row['topic_unread'] ? $hcc_new : $hcc_dft);\n//-- fin mod : hypercell class -------------------------------------------------\n\t\t// send to template\n\t\t$template->assign_block_vars('topicrow', array(\n\t\t\t'L_HEADER_TITLE' => $user->lang($header_title),\n\n\t\t\t'I_TOPIC_FOLDER' => $s_folder_img,\n\t\t\t'L_TOPIC_FOLDER' => $s_folder_txt,\n//-- mod : hypercell class -----------------------------------------------------\n//-- add\n\t\t\t'HYPERCELL_CLASS' => $hypercell_class,\n\t\t\t'HYPERCELL_ONCLICK' => ( $config->data['hypercell_onclick'] ) ? ' onclick=\"window.location.href=\\'' . $config->url($this->requester_topics, $this->extra_parms + array(POST_TOPIC_URL => ((!empty($row['topic_moved_id']) && empty($this->extra_parms)) ? $row['topic_moved_id'] : $row['topic_id'])), empty($this->extra_parms)) . '\\';\"' : '',\n\t\t\t'HYPERCELL_LAST_ONCLICK' => ( $config->data['hypercell_onclick'] ) ? ' onclick=\"window.location.href=\\'' . $config->url($this->requester_topics, array(POST_POST_URL => $row['topic_last_post_id']), true, $row['topic_last_post_id']) . '\\';\"' : '',\n//-- fin mod : hypercell class -------------------------------------------------\n\t\t\t'U_NEWEST_POST' => $config->url($this->requester_topics, array(POST_TOPIC_URL => $row['topic_id'], 'view' => 'newest'), true),\n\t\t\t'L_NEWEST_POST' => $user->lang('View_newest_post'),\n\t\t\t'I_NEWEST_POST' => $user->img('icon_newest_reply'),\n\n\t\t\t'U_VIEW_TOPIC' => $config->url($this->requester_topics, $this->extra_parms + array(POST_TOPIC_URL => ((!empty($row['topic_moved_id']) && empty($this->extra_parms)) ? $row['topic_moved_id'] : $row['topic_id'])), true),\n\t\t\t'TOPIC_TITLE' => _censor($row['topic_title']),\n\t\t\t'TOPIC_SUB_TITLE' => _censor($row['topic_sub_title']),\n\t\t\t'TOPIC_ID' => $row['topic_id'],\n\n\t\t\t'U_TOPIC_AUTHOR' => $config->url('profile', array('mode' => 'viewprofile', POST_USERS_URL => $row['topic_poster']), true),\n\t\t\t'TOPIC_AUTHOR' => (empty($row['topic_first_username']) || ($row['topic_first_username'] == ANONYMOUS)) ? $user->lang('Guest') : $row['topic_first_username'],\n\t\t\t'VIEWS' => $row['topic_moved_id'] ? '' : $row['topic_views'],\n\t\t\t'REPLIES' => $row['topic_moved_id'] ? '' : $row['topic_replies'],\n\n\t\t\t'LAST_POST_TIME' => $row['topic_moved_id'] ? '' : $user->date($row['topic_last_time']),\n\t\t\t'U_LAST_POST_AUTHOR' => $config->url('profile', array('mode' => 'viewprofile', POST_USERS_URL => $row['topic_last_poster']), true),\n\t\t\t'LAST_POST_AUTHOR' => $row['topic_moved_id'] ? '' : ((empty($row['topic_last_username']) || ($row['topic_last_username'] == ANONYMOUS)) ? $user->lang('Guest') : $row['topic_last_username']),\n\t\t\t'U_LAST_POST' => $config->url($this->requester_topics, array(POST_POST_URL => $row['topic_last_post_id']), true, $row['topic_last_post_id']),\n\t\t));\n\t\t$template->set_switch('topicrow.topic');\n\t\t$template->set_switch('topicrow.topic.select', $this->with_select);\n\t\t$template->set_switch('topicrow.topic.moved', !empty($row['topic_moved_id']));\n\t\t$template->set_switch('topicrow.topic.last_post_link', empty($row['topic_moved_id']) && !$this->with_select);\n\t\t$template->set_switch('topicrow.topic.newest_post', !empty($row['topic_unread']));\n\t\t$template->set_switch('topicrow.topic.header', !empty($header_title));\n\t\tif ( !empty($header_title) )\n\t\t{\n\t\t\t$template->set_switch('topicrow.topic.header.select', $this->with_select);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$template->set_switch('topicrow.topic.header_ELSE.select', $this->with_select);\n\t\t}\n\t\t$template->set_switch('topicrow.topic.author_userlink', ($row['topic_poster'] != ANONYMOUS) && !empty($row['topic_poster']));\n\t\t$template->set_switch('topicrow.topic.last_post_userlink', ($row['topic_last_poster'] != ANONYMOUS) && !empty($row['topic_last_poster']));\n\n\t\t// enhance the topic title\n\t\t$row['post_icon'] = $row['topic_icon'];\n\t\t$this->front_title->set('topicrow.topic', $row);\n\n\t\t// pagination/navigation\n\t\tif ( empty($row['topic_moved_id']) && (($row['topic_replies'] + 1) > $config->data['posts_per_page']) )\n\t\t{\n\t\t\t$pagination = new pagination($this->requester_topics, array(POST_TOPIC_URL => $row['topic_id']) + $this->extra_parms, 'start');\n\t\t\t$pagination->display('topicrow.topic.pagination', $row['topic_replies'] + 1, $config->data['posts_per_page'], 0, false);\n\t\t}\n\t\tif ( $with_nav )\n\t\t{\n\t\t\t$template->set_switch('topicrow.topic.navigation');\n\t\t\t$forums->display_nav($row['forum_id'], 'topicrow.topic.navigation.nav', true);\n\t\t}\n\t\t$template->set_switch('topicrow.topic.pagination_OR_nav', isset($pagination) || $with_nav);\n\n\t\t// sub topic type (moved, poll, etc.)\n\t\tfor ( $i = 1; $i < $count_attr; $i++ )\n\t\t{\n\t\t\tif ( !empty($attr[$i]['txt']) || !empty($attr[$i]['img']) )\n\t\t\t{\n\t\t\t\t$img = !empty($attr[$i]['img']) && isset($images[ $attr[$i]['img'] ]);\n\t\t\t\t$template->assign_block_vars('topicrow.topic.type', array(\n\t\t\t\t\t'L_TOPIC_TYPE' => $img ? _clean_html($user->lang($attr[$i]['txt'])) : $user->lang($attr[$i]['txt']),\n\t\t\t\t\t'I_TOPIC_TYPE' => $img ? $user->img($attr[$i]['img']) : '',\n\t\t\t\t));\n\t\t\t\t$template->set_switch('topicrow.topic.type.txt', !empty($attr[$i]['txt']) && !$img);\n\t\t\t\t$template->set_switch('topicrow.topic.type.img', $img);\n\t\t\t}\n\t\t}\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Funcion que presenta el encabezado del horario para los grupos del proyecto | function crearEncabezadoHorario($estilo, $mensajeEnlace) {
?>
<div class='sigma'>
<th class='<? echo $estilo ?>' width="50">Grupo</th>
<th class='<? echo $estilo ?>' width="60">Lun</th>
<th class='<? echo $estilo ?>' width="60">Mar</th>
<th class='<? echo $estilo ?>' width="60">Mie</th>
<th class='<? echo $estilo ?>' width="60">Jue</th>
<th class='<? echo $estilo ?>' width="60">Vie</th>
<th class='<? echo $estilo ?>' width="60">Sáb</th>
<th class='<? echo $estilo ?>' width="60">Dom</th>
<th class='<? echo $estilo ?>' width="40">Cupo</th>
<th class='<? echo $estilo ?>' width="80">Disponibles</th>
<th class='<? echo $estilo ?>' ><? echo $mensajeEnlace ?></th>
</div>
<?
} | [
"function generarHorario($gruposProyecto,$variables,$estilo,$icono,$horario) {\n $noHorario=0;\n ?>\n <tr onmouseover=\"this.style.background='#F4F4EA'\" onmouseout=\"this.style.background=''\">\n <td class='<? echo $estilo ?>'>\n <? echo $gruposProyecto['GRUPO'];?>\n </td>\n <?\n if (is_array($horario))\n {\n $this->mostrarHorarioGrupo($horario,$estilo);\n }else\n {\n $this->mostrarNoHorario($estilo);\n $noHorario=1;\n }\n $cupo = $gruposProyecto['CUPO'];\n ?>\n <td class='<? echo $estilo ?>'>\n <? echo $cupo ?>\n </td>\n <?\n $inscritos = $gruposProyecto['INSCRITOS'];\n $disponibles = $cupo - $inscritos;\n ?>\n <td class='<? echo $estilo ?>'>\n <? if($disponibles>0){echo $disponibles; } else {echo \"0\";} ?>\n </td>\n <?if(is_array($this->horarioEstudiante))\n {\n $cruce=$this->validacion->verificarCruceHorarios($this->horarioEstudiante,$horario);\n }else\n {\n $cruce='ok';\n }\n if($noHorario==0)\n {\n $this->crearEnlaceCambioUno($estilo, $disponibles, $cruce, $gruposProyecto, $icono);\n }else\n {\n $this->crearEnlaceCambioUno($estilo, 'a', 'ok', $gruposProyecto, $icono);\n }\n ?>\n </tr><?\n }",
"function buscarHorarioGrupo() {\n $variables=array(array('CODIGO'=>$this->datosInscripcion['codEspacio'],\n 'GRUPO'=>$this->datosInscripcion['grupo']));\n $horarioGrupo=$this->procedimientos->buscarHorario($variables);\n return $horarioGrupo;\n }",
"function enlaceHorario() {\n $pagina = $this->configuracion[\"host\"] . $this->configuracion[\"site\"] . \"/index.php?\";\n $variable=$this->variablesRetorno();\n ?>\n <a href=\"<?= $pagina . $variable ?>\" >\n <img src=\"<? echo $this->configuracion['site'] . $this->configuracion['grafico'] ?>/vcalendar.png\" width=\"35\" height=\"35\" border=\"0\"><br>\n <b>Horario Estudiante</b>\n </a>\n <?\n }",
"function horario_propiedad($id_propiedad,$fecha_visita,$id_vendedor,$id_cliente) {\n\tglobal $mysqli;\n\t$options = '';\n\t$horas = array(); $horas_ocupadas = array();\n\t\n\t$horas = MostrarIntervalo(array('hora'=>9,'min'=>'00'), array('hora'=>18,'min'=>'00'), 30);\n\t\n\t//Consulta de horarios de la propiedad\n\t$sql = \"SELECT TIME_FORMAT(hora_in, '%H:%i') AS hora_in, TIME_FORMAT(hora_out, '%H:%i') AS hora_out FROM agenda_visitas\n\t\t\tWHERE id_propiedad=\".$id_propiedad.\" AND fecha_visita='\".$fecha_visita.\"'\";\n\t$result = $mysqli->query($sql) or die('Error: '.$mysqli->error);\n\twhile ($row = $result->fetch_assoc()) {\n\t\t$horas_ocupadas[] = $row['hora_in'];\n\t\t$horas_ocupadas[] = $row['hora_out'];\n\t}\n\t//Consulta de horarios del vendedor\n\tif ( !empty($id_vendedor) ) {\n\t\t$sql = \"SELECT TIME_FORMAT(hora_in, '%H:%i') AS hora_in, TIME_FORMAT(hora_out, '%H:%i') AS hora_out FROM agenda_visitas\n\t\t\t\tWHERE id_vendedor=\".$id_vendedor.\" AND fecha_visita='\".$fecha_visita.\"'\";\n\t\t$result = $mysqli->query($sql) or die('Error: '.$mysqli->error);\n\t\twhile ($row = $result->fetch_assoc()) {\n\t\t\t$horas_ocupadas[] = $row['hora_in'];\n\t\t\t$horas_ocupadas[] = $row['hora_out'];\n\t\t}\n\t}\n\t//Consulta de horarios del cliente\n\tif ( !empty($id_cliente) ) {\n\t\t$sql = \"SELECT TIME_FORMAT(hora_in, '%H:%i') AS hora_in, TIME_FORMAT(hora_out, '%H:%i') AS hora_out FROM agenda_visitas\n\t\t\t\tWHERE id_cliente=\".$id_cliente.\" AND fecha_visita='\".$fecha_visita.\"'\";\n\t\t$result = $mysqli->query($sql) or die('Error: '.$mysqli->error);\n\t\twhile ($row = $result->fetch_assoc()) {\n\t\t\t$horas_ocupadas[] = $row['hora_in'];\n\t\t\t$horas_ocupadas[] = $row['hora_out'];\n\t\t}\n\t}\n\t$horas_ocupadas = array_unique($horas_ocupadas); //Elimina valores duplicados de un array\n\t//$horas_ocupadas = array_values(array_unique($horas_ocupadas)); //Elimina valores duplicados de un array y ordena los indices secuencialmente\n\t\n\tif ( !empty($horas_ocupadas) ) {\n\t\tforeach ($horas as $key => $hora) {\n\t\t\tif ( !in_array($hora, $horas_ocupadas) ) {\n\t\t\t\t$options .= '<option value=\"'.$hora.'\">'.$hora.'</option>';\n\t\t\t} else {\n\t\t\t\t$options .= '<option value=\"'.$hora.'\" disabled=\"disabled\">'.$hora.'</option>';\n\t\t\t}\n\t\t}\n\t} else {\n\t\tforeach ($horas as $key => $hora) {\n\t\t\t$options .= '<option value=\"'.$hora.'\">'.$hora.'</option>';\n\t\t}\n\t}\n\t\n\treturn '<select name=\"horarios[]\" id=\"horario-'.$id_propiedad.'\" class=\"horarios\">\n\t\t\t<option value=\"\">00:00</option>'.$options.'\n\t\t\t</select>';\n}",
"function mostrarHorarioEstudiante($configuracion) {\r\n\r\n $codigoEstudiante = $this->usuario;\r\n\r\n $this->cadena_sql = $this->sql->cadena_sql($configuracion, \"consultaEstudiante\", $codigoEstudiante);\r\n $registroEstudiante = $this->accesoOracle->ejecutarAcceso($this->cadena_sql, \"busqueda\");\r\n\r\n if (isset($registroEstudiante)) {\r\n $this->datosEstudiante($configuracion, $registroEstudiante);\r\n\r\n //busca los grupos y el horario inscrito por el estudinate\r\n $this->cadena_sql = $this->sql->cadena_sql($configuracion, \"consultaGrupo\", $codigoEstudiante);\r\n $registroGrupo = $this->accesoOracle->ejecutarAcceso($this->cadena_sql, \"busqueda\");\r\n $this->HorarioEstudiante($configuracion, $registroGrupo);\r\n $var = $this->HorarioEstudiantePrueba($configuracion, $registroGrupo);\r\n echo \"88888888888888\".$var;\r\n } else {\r\n echo \"El código de estudiante: <strong>\" . $codigoEstudiante . \"</strong> no está inscrito en Créditos.\";\r\n }\r\n }",
"function mostrarHorarioEstudiante() {\r\n\r\n if ($this->datosEstudiante['CODIGO']) {\r\n $cadena_sql = $this->sql->cadena_sql(\"periodoActivo\");\r\n $resultado_periodo = $this->ejecutarSQL($this->configuracion, $this->accesoOracle, $cadena_sql, \"busqueda\");\r\n $this->periodo=$resultado_periodo;\r\n\r\n $variablesInscritos = array($this->datosEstudiante['CODIGO'], $resultado_periodo[0][0], $resultado_periodo[0][1]);\r\n $cadena_sql = $this->sql->cadena_sql(\"consultaGrupo\", $variablesInscritos);\r\n $registroGrupo = $this->ejecutarSQL($this->configuracion, $this->accesoOracle, $cadena_sql, \"busqueda\");\r\n if(!is_array($registroGrupo)){\r\n $cadena_sql = $this->sql->cadena_sql(\"consultaGrupoPeriodoAnterior\", $variablesInscritos);\r\n $registroGrupo = $this->ejecutarSQL($this->configuracion, $this->accesoOracle, $cadena_sql, \"busqueda\");\r\n \r\n }\r\n\r\n $this->HorarioEstudianteConsulta($registroGrupo);\r\n\r\n\r\n $creditos = $this->calcularCreditos($registroGrupo);\r\n }\r\n }",
"public function horasdisponibles(){\n return round($this->gethorasturno()-($this->gethorasparada() /*+$this->hpp*/),2);\n \n }",
"private function asignarHorarioFijo() {// var_dump($this->atndGroup);\n if (empty($this->horariosTodos))return null; \n if (empty($this->atndGroup))return null; \n\n \n $this->horariosSemanalFijo[1] = $this->buscarHorarioPorId($this->atndGroup->atndgrp_s1timezoneofmon);\n $this->horariosSemanalFijo[2] = $this->buscarHorarioPorId($this->atndGroup->atndgrp_s1timezoneoftue);\n $this->horariosSemanalFijo[3] = $this->buscarHorarioPorId($this->atndGroup->atndgrp_s1timezoneofwed);\n $this->horariosSemanalFijo[4] = $this->buscarHorarioPorId($this->atndGroup->atndgrp_s1timezoneofthu);\n $this->horariosSemanalFijo[5] = $this->buscarHorarioPorId($this->atndGroup->atndgrp_s1timezoneoffri);\n $this->horariosSemanalFijo[6] = $this->buscarHorarioPorId($this->atndGroup->atndgrp_s1timezoneofsat);\n $this->horariosSemanalFijo[7] = $this->buscarHorarioPorId($this->atndGroup->atndgrp_s1timezoneofsun); \n }",
"function mostrarHorarioEstudiante()\r\n {\r\n $codigoEstudiante=$_REQUEST['codEstudiante'];\r\n\r\n $this->cadena_sql=$this->sql->cadena_sql($this->configuracion,\"consultaEstudiante\",$codigoEstudiante);\r\n $registroEstudiante=$this->accesoOracle->ejecutarAcceso($this->cadena_sql,\"busqueda\");\r\n\r\n if(isset($registroEstudiante))\r\n {\r\n $this->datosEstudiante($registroEstudiante);\r\n\r\n $cadena_sql=$this->sql->cadena_sql($this->configuracion,\"periodoActivo\",'');\r\n $resultado_periodo=$this->ejecutarSQL($this->configuracion, $this->accesoOracle, $cadena_sql,\"busqueda\" );\r\n\r\n $variablesInscritos=array($codigoEstudiante,$resultado_periodo[0][0],$resultado_periodo[0][1]);\r\n\r\n $cadena_sql=$this->sql->cadena_sql($this->configuracion,\"consultaGrupo\",$variablesInscritos);\r\n $registroGrupo=$this->ejecutarSQL($this->configuracion, $this->accesoOracle, $cadena_sql,\"busqueda\" );\r\n\r\n $registro_permisos=$this->fechas->validar_fechas_estudiante_coordinador($this->configuracion,$registroEstudiante[0][0]);\r\n\r\n switch ($registro_permisos)\r\n {\r\n case 'adicion':\r\n $this->HorarioEstudianteInscripcion($registroGrupo,$registroEstudiante,$_REQUEST['planEstudioGeneral'],$_REQUEST[\"codProyecto\"]);\r\n break;\r\n\r\n case 'cancelacion':\r\n $this->HorarioEstudianteCancelacion($registroGrupo,$registroEstudiante,$_REQUEST['planEstudioGeneral'],$_REQUEST[\"codProyecto\"]);\r\n break;\r\n\r\n case 'consulta':\r\n $this->HorarioEstudianteConsulta($registroGrupo,$registroEstudiante);\r\n break;\r\n\r\n\r\n default:\r\n $this->HorarioEstudianteConsulta($registroGrupo,$registroEstudiante);\r\n break;\r\n }\r\n\r\n $creditos=$this->calcularCreditos($registroGrupo);\r\n ?>\r\n <div align=\"right\">\r\n\r\n </div>\r\n<table class=\"sigma\" align=\"center\" width=\"70%\">\r\n <tr>\r\n <td colspan=\"2\" class=\"sigma derecha\">\r\n <?if ($creditos==0)\r\n {\r\n echo \"<font size='1'><b>Créditos Inscritos: 0</b></font>\";\r\n }\r\n else\r\n {\r\n echo \"<font size='1'><b>Total Créditos Inscritos: \".$creditos.\"</b></font>\";\r\n }\r\n ?>\r\n </td>\r\n </tr>\r\n <tr>\r\n <th class=\"sigma centrar\">\r\n Abreviatura\r\n </th>\r\n <th class=\"sigma centrar\">\r\n Nombre\r\n </th>\r\n </tr>\r\n <?\r\n\r\n\r\n $cadena_sql=$this->sql->cadena_sql($this->configuracion,\"clasificacion\",'');\r\n $resultado_clasificacion=$this->accesoGestion->ejecutarAcceso($cadena_sql,\"busqueda\");\r\n\r\n for($k=0;$k<count($resultado_clasificacion);$k++)\r\n {\r\n ?>\r\n <tr class=\"sigma cuadro_plano\">\r\n <td class=\"sigma centrar\">\r\n <?echo $resultado_clasificacion[$k][1]?>\r\n </td>\r\n <td class=\"sigma centrar\">\r\n <?echo $resultado_clasificacion[$k][2]?>\r\n </td>\r\n </tr>\r\n <?\r\n }\r\n\r\n ?>\r\n\r\n <tr class=\"sigma centrar\">\r\n <th class=\"sigma centrar\" colspan=\"2\">\r\n Observaciones\r\n </th>\r\n </tr>\r\n <tr class=\"sigma\">\r\n <td class=\"sigma\" colspan=\"2\">\r\n <!--<h3>Recuerde el proceso de adiciones se cerrará el 15 de febrero de 2010 a las 11:59pm.</h3>-->\r\n <br>\r\n * Recuerde que si cancela un espacio académico, no podra adicionarlo de nuevo para el periodo actual\r\n <br>\r\n * Recuerde verificar el cruce de horarios de los espacios académicos\r\n <br>\r\n * Recuerde que si el grupo no cumple con el cupo mínimo, puede ser cancelado\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n <?\r\n\r\n\r\n }\r\n else{\r\n echo \"El código de estudiante: <strong>\".$codigoEstudiante.\"</strong> no está inscrito en Créditos.\";\r\n }\r\n\r\n\r\n\r\n\r\n }",
"function mostrarGrupos($grupos,$codEspacio) {\r\n $totalInscritosFacultad=0;\r\n $totalGruposFacultad=0;\r\n\r\n if(!is_array($grupos))\r\n { \r\n ?>\r\n <tr align=\"center\">\r\n <td>No hay grupos en la Facultad</td>\r\n </tr>\r\n <?\r\n }else{\r\n ?>\r\n <tr align=\"center\">\r\n <td>Código</td>\r\n <td>Proyecto</td>\r\n <td>Grupo</td>\r\n <td>Cupos</td>\r\n <td>Inscritos</td>\r\n </tr>\r\n <?\r\n \r\n foreach ($grupos as $key => $value) {\r\n $enlace=$this->crearEnlaceGrupo($grupos[$key],$codEspacio)\r\n ?>\r\n <tr class='bloquecentralcuerpo' onclick=\"location.href='<?=$enlace?>'\" style=\"cursor:pointer\" onmouseover=\"this.style.background='#FFFFAA'\" onmouseout=\"this.style.background=''\">\r\n <!--<tr align=\"center\">-->\r\n <td class=\"contenidotabla\" border=\"1px\"><?echo $value['COD_PROYECTO']?></td>\r\n <td align=\"left\"><?echo $value['NOMBRE_PROYECTO']?></td>\r\n <td><?echo $value['GRUPO']?></td>\r\n <td><?echo $value['CUPO']?></td>\r\n <td><?echo $value['INSCRITOS']?></td>\r\n </tr>\r\n <?\r\n $totalInscritosFacultad=$totalInscritosFacultad+$value['INSCRITOS'];\r\n $this->totalInscritos=$this->totalInscritos+$value['INSCRITOS'];\r\n $totalGruposFacultad=$totalGruposFacultad+1;\r\n $this->totalGrupos=$this->totalGrupos+1;\r\n }\r\n ?><tr>\r\n <td align=\"right\" colspan=\"4\"><br>Total inscritos Facultad:</td>\r\n <td align=\"center\">\r\n <b>\r\n <? \r\n echo $totalInscritosFacultad; \r\n ?> </b> \r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"right\" colspan=\"4\">Total grupos Facultad:</td>\r\n <td align=\"center\"><b>\r\n <? \r\n echo $totalGruposFacultad; \r\n ?> </b>\r\n </td>\r\n </tr> \r\n <?\r\n }\r\n ?>\r\n <tr><td colspan=\"5\"><hr></td></tr>\r\n <?\r\n }",
"function obtener_horarios_disp (){\n \n //el formato de s__fecha_consulta es y-m-d.\n $anio_lectivo=date('Y', strtotime($this->s__fecha_consulta)); \n \n $aulas_ua=$this->dep('datos')->tabla('aula')->get_aulas_por_sede($this->s__id_sede);\n \n $periodo=$this->dep('datos')->tabla('periodo')->get_periodo_calendario($this->s__fecha_consulta, $anio_lectivo, $this->s__id_sede);\n \n $asignaciones=$this->procesar_periodo($periodo, 'hd'); \n \n //obtenemos todas las aulas involucradas \n $aulas=$this->obtener_aulas($asignaciones);\n toba::memoria()->set_dato_instancia(0, $this->s__id_sede);\n $horarios_disponibles=new HorariosDisponibles();\n \n $this->s__horarios_disponibles=$horarios_disponibles->calcular_horarios_disponibles($aulas, $aulas_ua, $asignaciones);\n \n if(count($this->s__horarios_disponibles)==0){\n $mensaje=\"No existen horarios disponibles para el día seleccionado\";\n toba::notificacion()->agregar(utf8_decode($mensaje), 'info');\n }\n \n toba::memoria()->set_dato_operacion(0, $this->s__fecha_consulta);\n \n }",
"public function holgura_coordinador()\n\t{\n\t\t\t$userRol = $this->session->userdata(\"rol\");\n\t\t\t$userID = $this->session->userdata(\"id\");\n\t\t\tif ($userRol != 3 ) { \n\t\t\t\tshow_error('ERROR!!! - You are in the wrong place.');\t\n\t\t\t}\n\t\t\t\n\t\t\t$arrParam = array(\"idCoordinador\" => $userID);\n\t\t\t$data['info'] = $this->novedades_model->get_holguras($arrParam);//listado de holguras\n\t\t\t\n\t\t\t$data[\"view\"] = 'holgura_coordinador';\n\t\t\t$this->load->view(\"layout\", $data);\n\t}",
"public function padre_horario_ciclo_actual_alumno()\n {\n $codigo = $_SESSION[\"Codigo\"];\n $codigo_alumno = ee()->TMPL->fetch_param('codigo_alumno');\n //$token = $_SESSION[\"Token\"];\n \n $codigo = $_COOKIE[$this->services->get_fuzzy_name(\"Codigo\")];\n $this->services->set_cookie(\"Codigo\",$codigo, time() + (1800), \"/\");\n\n ee()->db->select('*');\n ee()->db->where('codigo',$codigo);\n $query_modelo_result = ee()->db->get('exp_user_upc_data');\n\n foreach($query_modelo_result->result() as $row){\n $token = $row->token;\n }\n\n\n $url = 'HorarioPadre/?Codigo='.$codigo.'&CodAlumno='.$codigo_alumno.'&Token='.$token;\n //$url = 'Horario/?CodAlumno='.$codigo.'&Token='.$token;\n // var_dump($url);\n\n $result=$this->services->curl_url($url);\n // var_dump($result);\n $json = json_decode($result, true);\n \n $error = $json['CodError'];\n $error_mensaje = $json['MsgError'];\n $error_result = $this->error_eval($error);\n if ($error_result != '0' && $error_result != '1') {\n $site_url = ee()->config->item('site_url');\n $this->EE->functions->redirect($site_url.\"general/session-expired\");\n return;\n }\n //limpio la variable para reutilizarla\n $result = '';\n \n //genera el tamano del array\n $tamano = count($json['HorarioDia']); \n \n for ($i=0; $i<$tamano; $i++) {\n $result .= '<div>';\n $result .= '<span class=\"zizou-16\">';\n if ($json['HorarioDia'][$i]['CodDia'] == 1) {\n $result .= 'Lunes';\n }\n if ($json['HorarioDia'][$i]['CodDia'] == 2) {\n $result .= 'Martes';\n } \n if ($json['HorarioDia'][$i]['CodDia'] == 3) {\n $result .= 'Miércoles';\n } \n if ($json['HorarioDia'][$i]['CodDia'] == 4) {\n $result .= 'Jueves';\n } \n if ($json['HorarioDia'][$i]['CodDia'] == 5) {\n $result .= 'Viernes';\n } \n if ($json['HorarioDia'][$i]['CodDia'] == 6) {\n $result .= 'Sábado';\n } \n $result .= '</span>';\n\n $result .= '</div>'; \n $result .= '<div class=\"panel-body red-line mb-7\">';\n $result .= '<div class=\"panel-body-head-table\">'; \n $result .= '<ul class=\"tr table-border\">'; \n $result .= '<li class=\"col-sm-1-5 col-xs-1-5 col-md-2 hidden-xs\">'; \n $result .= '<div><span>Inicio</span></div>'; \n $result .= '</li>'; \n $result .= '<li class=\"col-sm-1-5 col-xs-1-5 col-md-2 hidden-xs\">'; \n $result .= '<div><span>Fin</span></div>'; \n $result .= '</li>'; \n $result .= '<li class=\"col-sm-1-5 col-xs-2-5 col-md-2 hidden-sm hidden-md hidden-lg\">'; \n $result .= '<div><span>Inicio - Fin</span></div>'; \n $result .= '</li>'; \n $result .= '<li class=\"col-sm-4-5 col-md-4-5 col-xs-4\">'; \n $result .= '<div><span>Clase</span></div>'; \n $result .= '</li>'; \n $result .= '<li class=\"col-sm-1-5 col-md-2 col-xs-2\">'; \n $result .= '<div><span>Campus</span></div>'; \n $result .= '</li>'; \n $result .= '<li class=\"col-sm-1-5 col-md-2 col-xs-1-5\">'; \n $result .= '<div><span>Sección</span></div>'; \n $result .= '</li>'; \n $result .= '<li class=\"col-sm-1-5 col-md-2 col-xs-2 br-xs-no\">'; \n $result .= '<div><span>Aula</span></div>'; \n $result .= '</li>'; \n $result .= '</ul>'; \n $result .= '</div>'; \n \n //genera el tamano del array\n $tamano_int = count($json['HorarioDia'][$i]['Clases']); \n \n for ($b=0; $b<$tamano_int; $b++) {\n $result .= '<div class=\"panel-table\">'; \n $result .= '<ul class=\"tr\" table-border>'; \n $result .= '<li class=\"col-sm-1-5 col-md-2 col-xs-2 hidden-xs\">'; \n $result .= '<div class=\"text-center\"><span class=\"helvetica-14\">';\n $HoraInicio = substr($json['HorarioDia'][$i]['Clases'][$b]['HoraInicio'], 0, 2);\n $HoraInicio = ltrim($HoraInicio,'0');\n $result .= $HoraInicio.':00';\n $result .='</span></div>'; \n $result .= '</li>'; \n $result .= '<li class=\"col-sm-1-5 col-md-2 col-xs-2 hidden-xs \">'; \n $result .= '<div class=\"text-center\"><span class=\"helvetica-14\">';\n $HoraFin = substr($json['HorarioDia'][$i]['Clases'][$b]['HoraFin'], 0, 2);\n $HoraFin = ltrim($HoraFin,'0');\n $result .= $HoraFin.':00'; \n $result .='</span></div>'; \n $result .= '</li>'; \n $result .= '<li class=\"col-sm-1-5 col-xs-2-5 col-md-2 hidden-sm hidden-md hidden-lg\">'; \n $result .= '<div><span>'.$HoraInicio.':00 - '.$HoraFin.':00</span></div>'; \n $result .= '</li>'; \n $result .= '<li class=\"col-sm-4-5 col-md-4-5 col-xs-4\">'; \n $result .= '<div class=\"text-center\"><span class=\"helvetica-14\">';\n $result .= $json['HorarioDia'][$i]['Clases'][$b]['CursoNombre'];\n $result .= '</span></div>'; \n $result .= '</li>'; \n $result .= '<li class=\"col-sm-1-5 col-md-2 col-xs-2 \">'; \n $result .= '<div class=\"text-center\"><span class=\"helvetica-14\">';\n $result .= $json['HorarioDia'][$i]['Clases'][$b]['Sede'];\n $result .= '</span></div>'; \n $result .= '</li>'; \n $result .= '<li class=\"col-sm-1-5 col-md-2 col-xs-1-5 \">'; \n $result .= '<div class=\"text-center\"><span class=\"helvetica-14\">';\n $result .= $json['HorarioDia'][$i]['Clases'][$b]['Seccion'];\n $result .= '</span></div>'; \n $result .= '</li>'; \n $result .= '<li class=\"col-sm-1-5 col-md-2 col-xs-2 br-xs-no\">'; \n $result .= '<div class=\"text-center\"><span class=\"helvetica-14\">';\n $result .= $json['HorarioDia'][$i]['Clases'][$b]['Salon'];\n $result .= '</span></div'; \n $result .= '</li>'; \n $result .= '</ul>'; \n $result .= '</div>'; \n } \n $result .= '</div>';\n }\n\n //Control de errores\n if ($error!='00000') {\n $result = '';\n $result .= '<div>';\n $result .= '<div class=\"panel-body mb-35\">';\n $result .= '<div class=\"panel-table\">';\n $result .= '<ul class=\"tr\">';\n $result .= '<li class=\"col-xs-12\">';\n $result .= '<span>'.$error_mensaje.'</span>';\n $result .= '</li>'; \n $result .= '</ul>'; \n $result .= '</div>';\n $result .= '</div>'; \n $result .= '</div>'; \n } \n \n return $result; \n }",
"function presentarComponentePropedeutico($registroEncabezadosPropedeuticos,$registroPropedeuticos,$nivel) {\r\n $creditosAprobadosNivel=0;\r\n $creditosNivel=0;\r\n\r\n if(is_array($registroEncabezadosPropedeuticos))\r\n {\r\n//******** presenta los encabezados propedeuticos con sus espacios\r\n\r\n foreach ($registroEncabezadosPropedeuticos as $key1 => $value1) {\r\n $encabezadoEliminado=array_shift($registroEncabezadosPropedeuticos);\r\n if($encabezadoEliminado['COD_ENCABEZADO']!=$id_encabezado)\r\n {\r\n $this->generarCeldaEncabezado($encabezadoEliminado);\r\n if($encabezadoEliminado['CLASIF_ENCABEZADO']!=4)\r\n {\r\n if (!is_null($encabezadoEliminado['COD_ESPACIO']))\r\n {\r\n $this->generarCeldaEspaciosEncabezados($encabezadoEliminado);\r\n }\r\n }\r\n $id_encabezado=$encabezadoEliminado['COD_ENCABEZADO'];\r\n $creditosNivel+=$encabezadoEliminado['CREDITOS_ENCABEZADO'];\r\n if ($encabezadoEliminado['APROBADO_ENC_ESPACIO']==1)\r\n {\r\n $creditosAprobadosNivel+=$encabezadoEliminado['CREDITOS_ENCABEZADO'];\r\n }\r\n }else\r\n {\r\n if($encabezadoEliminado['CLASIF_ENCABEZADO']!=4)\r\n {\r\n if (!is_null($encabezadoEliminado['COD_ESPACIO']))\r\n {\r\n $this->generarCeldaEspaciosEncabezados($encabezadoEliminado);\r\n }\r\n }\r\n $id_encabezado=$encabezadoEliminado['COD_ENCABEZADO'];\r\n }\r\n }\r\n//******** fin encabezados con propedeuticos\r\n }else\r\n {\r\n\r\n }\r\n//******** presenta los espacios propedeuticos no asociados\r\n if (is_array($registroPropedeuticos))\r\n {\r\n foreach($registroPropedeuticos as $key2 => $value2){\r\n $espacioEliminado=array_shift($registroPropedeuticos);\r\n $this->generarCeldaEspacios($espacioEliminado);\r\n $creditosNivel+=$espacioEliminado['CREDITOS_ESPACIO'];\r\n if ($espacioEliminado['APROBADO_ESPACIO']==1)\r\n {\r\n $creditosAprobadosNivel+=$espacioEliminado['CREDITOS_ESPACIO'];\r\n }\r\n }\r\n }else {\r\n\r\n }\r\n $this->mostrarCeldaCreditosNivel($creditosNivel,$creditosAprobadosNivel);\r\n\r\n }",
"function presentarCreditosRegistradosPlan() {\r\n $mensajeEncabezado='CRÉDITOS APROBADOS POR VICERRECTORIA';\r\n $mensaje='Los créditos aprobados por vicerrectoría, corresponden a la suma de créditos de los espacios académicos<br>\r\n registrados por el coordinador y aprobados por vicerrectoría, para el plan de estudios.';\r\n $creditosAprobados=array(array('OB'=>$this->creditosOB,\r\n 'OC'=>$this->creditosOC,\r\n 'EI'=>$this->creditosEI,\r\n 'EE'=>$this->creditosEE,\r\n 'CP'=>$this->creditosCP,\r\n 'TOTAL'=>$this->creditosTotal,\r\n 'ENCABEZADO'=>$mensajeEncabezado,\r\n 'MENSAJE'=>$mensaje,\r\n 'PROPEDEUTICO'=>$this->datosPlan[0]['PLAN_PROPEDEUTICO']));\r\n $this->parametrosPlan->mostrarParametrosRegistradosPlan($creditosAprobados);\r\n $mensajeEncabezado='RANGOS DE CRÉDITOS INGRESADOS POR EL COORDINADOR *';\r\n $mensaje='*Los rangos de créditos, corresponden a los datos que el Coordinador registró como parámetros iniciales<br>\r\n del plan de estudio, según lo establecido en el artículo 12 del acuerdo 009 de 2006.';\r\n $parametrosAprobados=array(array('ENCABEZADO'=>$mensajeEncabezado,\r\n 'MENSAJE'=>$mensaje,\r\n 'PROPEDEUTICO'=>$this->datosPlan[0]['PLAN_PROPEDEUTICO']));\r\n $this->parametrosPlan->mostrarParametrosAprobadosPlan($this->datosPlan[0]['COD_PLAN_ESTUDIO'],$parametrosAprobados);\r\n }",
"function actualizarHorario($cod_salon,$cod_hora,$cod_curso,$anio,$periodo){\r\n\t\t//verifica q ese salon este disponible para esa hora\r\n\t\t$cadena_sql = $this->sql->cadena_sql($this->configuracion, \"salon_ocupado\", array(\"cod_salon\"=>$cod_salon,\"cod_hora\"=>$cod_hora,'anio'=>$anio,'periodo'=>$periodo));\r\n\t\t$resultado=$this->ejecutarSQL($this->configuracion, $this->accesoOracle, $cadena_sql,\"busqueda\");\r\n\r\n\t\t$json=array();\r\n\t\t\r\n\t\t//si no esta asignado\r\n\t\tif(!is_array($resultado)){\r\n\t\t\r\n\t\t\t//verifica que el curso tenga un horario asignado para esa hora\r\n\t\t\t$cadena_sql = $this->sql->cadena_sql($this->configuracion, \"curso_con_horario\", array(\"curso\"=>$cod_curso,\"cod_hora\"=>$cod_hora));\r\n\t\t\t$curso=$this->ejecutarSQL($this->configuracion, $this->accesoOracle, $cadena_sql,\"busqueda\");\r\n\t\r\n\t\t\t\t\t\r\n\t\t\t//si el curso no tiene asignada esa hora la registra\r\n\t\t\tif(!is_array($curso)){\r\n\t\t\t\t\r\n\t\t\t\t$inscritos=$this->consultarEstudiantesInscritos($cod_salon,$cod_hora,$cod_curso);\r\n\t\t\t\tif(($inscritos*1)>0){\r\n\t\t\t\t\t$json[\"mensaje\"]=\" No puede modificar el horario, este curso tiene {$inscritos[0][0]} estudiantes inscritos.\";\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$cadena_sql = $this->sql->cadena_sql($this->configuracion, \"siguienteHorario\", \"\");\r\n\t\t\t\t\t$resultadoHor = $this->ejecutarSQL($this->configuracion, $this->accesoOracle, $cadena_sql, \"busqueda\");\r\n \r\n //verfica la maximo numero de horas\r\n\t\t\t\t\t$cod_hora=explode(\"-\",$cod_hora);\r\n\t\t\t\t\t$parametro=array('curso'=>$cod_curso, 'dia'=>$cod_hora[0],'hora'=>$cod_hora[1],'anio'=>$cod_curso[0],\"periodo\"=>$cod_curso[1],\"salon\"=>$cod_salon,\"estado\"=>'A','id_horario'=>$resultadoHor[0][0]); \r\n\t\t\t\t\t\t \r\n\t\t\t\t\t$cadena_sql = $this->sql->cadena_sql($this->configuracion, 'registrar_horario', $parametro);\r\n\t\t\t\t\t$resultadoHor = $this->ejecutarSQL($this->configuracion, $this->accesoOracle, $cadena_sql, \"\");\r\n $datosRegistro=array('usuario'=>$this->usuario,\r\n 'evento'=>'59',\r\n 'descripcion'=>'Crea Horario de curso',\r\n 'registro'=>$anio.\"-\".$periodo.\", SAL=\".$cod_salon.\", D=\".$cod_hora[0].\", HR=\".$cod_hora[1].\", ID=\".$parametro['id_horario'].\", CUR=\".$cod_curso,\r\n 'afectado'=>$cod_curso);\r\n $this->procedimientos->registrarEvento($datosRegistro);\r\n \r\n\t\t\t\t\t\r\n\t\t\t\t\t$cadena_sql = $this->sql->cadena_sql($this->configuracion, \"verHorarioTemp\", $parametro);\r\n\t\t\t\t\t$resultadoHor = $this->ejecutarSQL($this->configuracion, $this->accesoOracle, $cadena_sql, \"busqueda\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t$json[\"mensaje\"]=\"\";\r\n\t\t\t\t\t$json[\"data\"]=\"<div class='borrar_horario' onclick='borrarHorario(\\\"{$cod_hora[0]}-{$cod_hora[1]}\\\",\\\"$anio\\\",\\\"$periodo\\\")'>[X]</div>\";\r\n\t\t\t\t\t$json[\"data\"].=\"<div class='contenido_horario' onclick='actualizarCeldaHora(\\\"{$cod_hora[0]}-{$cod_hora[1]}\\\",\\\"$anio\\\",\\\"$periodo\\\")'>\";\r\n\t\t\t\t\t$json[\"data\"].=\"\tSede: \".$resultadoHor[0]['NOM_SEDE'].\"<br>Edificio: \".$resultadoHor[0]['NOM_EDIFICIO'].\"<br>Salon: \".$resultadoHor[0]['SALON_NVO'].\"<BR> \".$resultadoHor[0]['NOM_SALON'].\"\";\r\n\t\t\t\t\t$json[\"data\"].=\"</div>\";\r\n\t\t\t\t\t$json[\"cod_hora_nueva\"]=$cod_hora[0].\"-\".$cod_hora[1];\r\n\t\t\t\t}\r\n\r\n\t\t\t}else{\r\n\t\t\t\t//si ya esta asignado actualiza el salon actual con el nuevo\r\n\t\t\t\t$this->cadena_sql = $this->sql->cadena_sql($this->configuracion, 'actualizar_horario',array(\"curso\"=>$cod_curso,\"cod_hora\"=>$cod_hora,\"salon\"=>$cod_salon));\r\n\t\t\t\t$resultadoHor = $this->ejecutarSQL($this->configuracion, $this->accesoOracle, $this->cadena_sql, \"\"); \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t$cod_hora=explode(\"-\",$cod_hora);\r\n\t\t\t\t$parametro=array('curso'=>$cod_curso, 'dia'=>$cod_hora[0],'hora'=>$cod_hora[1],'anio'=>$cod_curso[0],\"periodo\"=>$cod_curso[1],\"salon\"=>$cod_salon,\"estado\"=>'A'); \r\n $datosRegistro=array('usuario'=>$this->usuario,\r\n 'evento'=>'62',\r\n 'descripcion'=>'Actualiza Horario de curso',\r\n 'registro'=>$anio.\"-\".$periodo.\", SAL=\".$cod_salon.\", D=\".$cod_hora[0].\", HR=\".$cod_hora[1].\", CUR=\".$cod_curso,\r\n 'afectado'=>$cod_curso);\r\n $this->procedimientos->registrarEvento($datosRegistro);\r\n\t\t\t\t\t\t\r\n\t\t\t\t$this->cadena_sql = $this->sql->cadena_sql($this->configuracion, \"verHorarioTemp\", $parametro);\r\n\t\t\t\t$resultadoHor = $this->ejecutarSQL($this->configuracion, $this->accesoOracle, $this->cadena_sql, \"busqueda\");\r\n\t\t\t\t\r\n\t\t\t\t$json[\"mensaje\"]=\"El salon se actualizo correctamente \";\r\n\t\t\t\t$json[\"data\"]=\"<div class='borrar_horario' onclick='borrarHorario(\\\"{$cod_hora[0]}-{$cod_hora[1]}\\\",\\\"$anio\\\",\\\"$periodo\\\")'>[X]</div>\";\r\n\t\t\t\t$json[\"data\"].=\"<div class='contenido_horario' onclick='actualizarCeldaHora(\\\"{$cod_hora[0]}-{$cod_hora[1]}\\\",\\\"$anio\\\",\\\"$periodo\\\")'>\";\r\n\t\t\t\t$json[\"data\"].=\"\tSede: \".$resultadoHor[0]['NOM_SEDE'].\"<br>Edificio: \".$resultadoHor[0]['NOM_EDIFICIO'].\"<br>Salon: \".$resultadoHor[0]['SALON_NVO'].\"<BR> \".$resultadoHor[0]['NOM_SALON'].\"\";\r\n\t\t\t\t$json[\"data\"].=\"</div>\";\r\n\t\t\t\t$json[\"cod_hora_nueva\"]=$cod_hora[0].\"-\".$cod_hora[1];\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\t$json[\"mensaje\"]=\"El salón ya está asignado en esta hora \";\r\n\t\t\t$json[\"cod_hora\"]=$resultado[0][\"COD_HORA\"];\r\n\t\t\r\n\t\t}\r\n\t\t \r\n\t\techo json_encode($json);\r\n\t}",
"function consultarHorario($datosGrupo) {\n $cadena_sql_horarios = $this->sql->cadena_sql(\"horario_grupos\", $datosGrupo);\n return $resultado_horarios = $this->ejecutarSQL($this->configuracion, $this->accesoMyOracle, $cadena_sql_horarios, \"busqueda\");\n}",
"function modificarClasificacionEspacioAcademico() {\n $this->crearArregloDatosEspacio();\n $resultadoPeriodo=$this->consultarPeriodoActivo();\n $ano=$resultadoPeriodo[0][0];\n $periodo=$resultadoPeriodo[0][1];\n\n $espacio=$this->buscarEspacio();\n if (is_array($espacio)&&$espacio[0][0]>0)\n {\n $this->modificarClasificacion();\n $this->modificarClasificacionPlanEspacio();\n if($this->datosEspacio['clasificacionTodos']==3||$this->datosEspacio['clasificacionTodos']==4)\n {\n $this->datosEspacio['electiva']='S';\n }\n else\n {\n $this->datosEspacio['electiva']='N';\n }\n $this->modificarClasificacionAcpen();\n\n if ($this->datosEspacio['clasificacionTodos']==4)\n {\n $this->datosEspacio['nivel']=0;\n $this->modificarNivelPlanEspacio();\n $this->modificarNivelAcpen();\n }\n elseif ($this->datosEspacio['clasificacionTodos']==5)\n {\n $this->datosEspacio['nivel']=98;\n $this->modificarNivelPlanEspacio();\n $this->modificarNivelAcpen();\n }\n }else\n {\n $this->errorConexion();\n }\n\n $planOriginal=$this->datosEspacio['planEstudio'];\n $resultado_proyectos=$this->consultarPlanesEspacio();\n foreach ($resultado_proyectos as $key => $value) {\n $this->datosEspacio['planEstudio']=$value['PLAN'];\n\n $datosRegistro=array(usuario=>$this->usuario,\n evento=>'19',\n descripcion=>'Modifica Clasificacion Espacio Asesor',\n registro=>$ano.'-'.$periodo.', '.$this->datosEspacio['codEspacio'].', 0, 0, '.$this->datosEspacio['planEstudio'],\n afectado=>$this->datosEspacio['planEstudio']);\n $this->procedimientos->registrarEvento($datosRegistro);\n }\n $this->datosEspacio['planEstudio']=$planOriginal;\n\n $this->datosEspacio['pagina']=\"adminAprobarEspacioPlan\";\n $this->datosEspacio['opcion']=\"mostrar\";\n unset ($this->datosEspacio['action']);\n echo \"<script>alert('La clasificaci\\u00F3n del Espacio Acad\\u00E9mico \".$this->datosEspacio['nombreEspacio'].\" se ha modificado')</script>\";\n $retorno=$this->generarRetorno($this->datosEspacio);\n $this->retornar($retorno);\n }",
"function conf__cuadro_espacio_ocupado (toba_ei_cuadro $cuadro){\n\n if(count($this->s__horarios_libres) > 0){\n $cuadro->set_titulo(\"HORARIOS DISPONIBLES ALTERNATIVOS\");\n $cuadro->set_datos($this->s__horarios_libres);\n }\n else{\n $cuadro->descolapsar();\n }\n \n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns value of '_charge_reply' property | public function getChargeReply()
{
return $this->get(self::_CHARGE_REPLY);
} | [
"public function getReply()\n {\n return $this->reply;\n }",
"public function getCharge()\n {\n return $this->charge;\n }",
"public function getCharge()\n {\n return $this->_fields['Charge']['FieldValue'];\n }",
"public function getReply(): string\n {\n return (string) $this->reply;\n }",
"public function getChargeValue()\n {\n return $this->chargeValue;\n }",
"public function getReply() : \\stdClass\n {\n return $this->reply;\n }",
"public function getReplyText()\n {\n return $this->reply_text;\n }",
"public function getCharge(): int\n {\n return $this->charge;\n }",
"public function getWorldcupReply()\n {\n return $this->get(self::_WORLDCUP_REPLY);\n }",
"public function getChargeItem()\n {\n return $this->chargeItem;\n }",
"function get_reply_address()\n {\n return $this->get_default_property(self :: PROPERTY_REPLY_ADDRES);\n }",
"public function getCharge()\n {\n if (array_key_exists(\"charge\", $this->_propDict)) {\n if (is_a($this->_propDict[\"charge\"], \"\\Beta\\Microsoft\\Graph\\Model\\Decimal\") || is_null($this->_propDict[\"charge\"])) {\n return $this->_propDict[\"charge\"];\n } else {\n $this->_propDict[\"charge\"] = new \\Beta\\Microsoft\\Graph\\Model\\Decimal($this->_propDict[\"charge\"]);\n return $this->_propDict[\"charge\"];\n }\n }\n return null;\n }",
"public function getCptCharge() {\n return $this->cptCharge;\n }",
"public function getChargeDescription()\n {\n return $this->{$this->getChargeDescriptionName()};\n }",
"public function getDeliveryCharge() {\n return $this->deliveryCharge;\n }",
"public function getGuildReply()\n {\n return $this->get(self::_GUILD_REPLY);\n }",
"public function getAdminReply()\n {\n return $this->admin_reply;\n }",
"public function getTotalCharge()\n {\n return $this->totalCharge;\n }",
"public function getNativeResponse()\n {\n $this->info();\n return $this->braintree_charge;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
studentanswer = replaceFunctionName($answer, $mingze); | function replaceFunctionName($studentanswer, $actualname)
{
$x = strpos($studentanswer, "(");
$y = substr($studentanswer, 0, $x);
$z = ltrim($studentanswer, $y);
$newstudentanswer = "def " . $actualname . $z;
return $newstudentanswer;
} | [
"function grade_exam($student_answer, $funcname, $parameters, $testcase_input, $testcase_output, $studentID, $pointValue, $constraints){\n $grade = $pointValue;\n $gradeTotal = 0;\n $comments = \"\";\n\n $student_answer = ltrim($student_answer); //trimming white space from beginning\n $split_answer = preg_split(\"/\\s+|\\(|:/\", $student_answer);\n $def = $split_answer[0]; //first word should be 'def'\n //echo \"$def\\n\";\n\n /*\n if ($def != \"def\"){\n $comments += \"Function was not declared properly, 1 point off\\n\";\n $gradeTotal++;\n }\n else{\n $comments += \"Function declaration correct\\n\";\n $grade++;\n $gradeTotal++;\n } */\n\n\n $student_funcname = $split_answer[1]; //the second word which should be the function name\n //echo \"$student_funcname\\n\";\n\n //echo $student_funcname;\n //echo $funcname;\n\n if($student_funcname != $funcname){\n $comments .= \"Function name incorrect. Function name required is $funcname, student provided $student_funcname, 5 point off~\";\n $grade-=5; //come back to this!!!\n $gradeTotal+=5;\n }\n else{\n $comments .= \"Function name correct!~\";\n $gradeTotal+=5;\n }\n\n $split_answer2 = explode(\")\", $student_answer); //splitting original student answer\n $temp = $split_answer2[0]; //should give you everything up to ')'\n $splitagain = explode(\"(\", $temp); //splitting it again giving you everything up to '('\n $studentparams = $splitagain[1]; //the student parameters\n //echo \"$studentparams\\n\";\n\n $studentparams = preg_replace(\"/\\s/\",\"\", $studentparams);\n $parameters = preg_replace(\"/\\s/\",\"\", $parameters);\n //echo \"$studentparams\\n\";\n //echo \"$parameters\\n\";\n\n //echo $studentparams;\n //echo $parameters;\n\n if(strcmp($studentparams, $parameters) == 0){\n $comments .= \"correct parameter names~\";\n $gradeTotal++;\n }\n else{\n $comments .= \"Parameter names incorrect. The parameter names required are $parameters , student provided $studentparams, 1 point off~\";\n $grade--;\n $gradeTotal++;\n }\n\n switch ($constraints) {\n case \"for\":\n if(preg_match(\"/\\bfor\\b/\", $student_answer)){\n //do nothing\n break;\n }\n else{\n $comments .= \"Constraint incorrect. Did not use a for loop when the question required it, 1 point off~\";\n $grade--;\n $gradeTotal++;\n break;\n }\n case \"while\":\n if(preg_match(\"/\\bwhile\\b/\", $student_answer)){\n //do nothing\n break;\n }\n else{\n $comments .= \"Constraint incorrect. Did not use a while loop when the question required it, 1 point off~\";\n $grade--;\n $gradeTotal++;\n break;\n }\n case \"recursion\":\n if(preg_match(\"/(\\b$student_funcname\\b).*(\\b$student_funcname\\b)/\", $student_answer)){\n //do nothing\n break;\n }\n else{\n $comments .= \"Constraint incorrect. Did not use recursion when the question required it, 1 point off~\";\n $grade--;\n $gradeTotal++;\n break;\n }\n //if you see the function name at least twice in the answer then recursion is used.\n //do this later\n default:\n echo \"there are no constraints for this question\";\n\n }\n\n //check for colons in the student answer!!\n\n\n //fix this a bit\n if(preg_match(\"/\\bprint\\b/\", $student_answer)){\n $student_answer = preg_replace(\"/\\bprint\\b/\", \"return\", $student_answer);\n $grade--;\n $gradeTotal++;\n $comments .= \"incorrect return of function, 1 point off~\";\n //change this to check for the last line having a print in it.\n }\n\n //CHECKING FOR COLONS STARTS HERE!!!!\n if(preg_match(\"/\\bdef\\b|\\bfor\\b|\\bif\\b|\\belse\\b|\\bwhile\\b/\", $student_answer)){\n //for where there is a for, if , else etc.... check to see if there is a colon at the end of the line\n //foreach(\n $separator = \"\\r\\n\";\n $line = strtok($student_answer, $separator);\n $line1 = \"\";\n while ($line !== false) {\n if(preg_match(\"/\\bdef\\b|\\bfor\\b|\\bif\\b|\\belse\\b|\\bwhile\\b|\\belif\\b/\", $line)){\n //check if it ends with a colon\n if (preg_match('/:$/', $line)) {\n //echo \"it worked wohoo!\\n\";\n $line1 .= $line . $separator;\n }\n else{\n //add the colon at the end of the line\n //echo \"nope try again\\n\";\n $grade--;\n $gradeTotal++; //come back to this\n $line1 .= $line . \":\" . $separator;\n $comments .= \"incorrect, no colon at the end of line, 1 point off~\";\n }\n }\n else {\n $line1 .= $line . $separator;\n }\n $line = strtok( $separator );\n }\n $student_answer = $line1;\n echo $student_answer;\n }\n //CHECKING FOR COLONS ENDS HERE!!!\n $newparams = $testcase_input; //the testcase input parameters.\n $temp = explode(\"~\", $newparams); //tilda delimited testcase inputs\n $testcaseCount = count($temp);\n\n\n\n //echo $testcase_input;\n\n $testcase_output = explode(\"~\", $testcase_output);\n\n //$file = \"$studentID.py\";\n\n\n $remainingGrade = $pointValue - $gradeTotal;\n $testcasePointValue = $remainingGrade/$testcaseCount;\n $testcasePointValue = round($testcasePointValue, 0);\n\n for($i = 0; $i < $testcaseCount; ++$i){\n\n\n $newparams = $temp[$i]; //testcase inputs\n $testcase_output1 = $testcase_output[$i];\n\n\n //file_put_contents($file, $student_answer . \"\\n\" . \"print($student_funcname($newparams))\");\n $myfile = fopen(\"pyfile$i.py\", \"w\") or die(\"Unable to open file!\");\n fwrite($myfile, $student_answer);\n $txt = \"\\n\\nprint($student_funcname($newparams))\\n\";\n fwrite($myfile, $txt);\n fclose($myfile);\n chmod(\"/afs/cad.njit.edu/u/k/m/kmp59/public_html/pyfile$i.py\", 0755);\n $runpython = exec(\"python pyfile$i.py\");\n //echo \"$runpython\\n\";\n //echo \"$testcase_output\\n\";\n if ($runpython == $testcase_output1){\n $comments .= \"Testcase output was correct~\";\n }\n else{\n //if there is a python error then make $runpython = \"python error\".\n if($runpython == \"\"){\n $grade-=$testcasePointValue;\n $comments .= \"Testcase incorrect. For $funcname($newparams), the expected output is $testcase_output1, the student output was a python error. $testcasePointValue points off~\";\n }\n else{\n //$testcasePointValue = round($testcasePointValue, 0);\n $grade-=$testcasePointValue;\n $comments .= \"Testcase incorrect. For $funcname($newparams), the expected output is $testcase_output1, the student output was $runpython. $testcasePointValue points off~\";\n }\n }\n //testcase input/output loop would end here $funcname($newparams)\n unlink(\"pyfile$i.py\") or die(\"Couldn't delete file\");\n }\n\n $carrot = \"^\";\n //$grade = round($grade, 0);\n $grade = $comments .= $carrot .= $grade;\n\n return $grade;\n}",
"function gender($input){\r\n\r\n\tglobal $gendersearch,$genderreplace,$aftersearch,$afterreplace,$replacecounter;\r\n\r\n\t$newinput=preg_replace($gendersearch,$genderreplace,$input);\r\n\r\n\t$newinput=str_replace($aftersearch,$afterreplace,$newinput);\r\n\t\r\n\t$replacecounter=1;\r\n\t$aftersearch=array();\r\n\t$afterreplace=array();\r\n\r\n\treturn $newinput;\r\n\r\n}",
"function grade($answer, $questionId, $functionName, $backend_constraints, $backend_testCases, $totalPoints){\n //setting initial grade and comments\n $function_pointsEarned = 0;\n $constraints_pointsEarned = 0;\n $colon_pointsEarned = 0;\n $parameters_pointsEarned = 0;\n $comments = \"\";\n\t$pointsPerItem = floor($totalPoints*.2);\n\n //function name testing\n //cleaning students answer of white space in the beginning\n $student_answer = ltrim($answer);\n $split = preg_split(\"/\\s+|\\(|:/\", $student_answer);\n //grabbing the first word, which should be def\n $def = $split [0]; \n //grabbing the function name\n $answer_function_name = $split[1];\n //checking if function name is correct\n if($answer_function_name == $functionName){\n $comments .= \"Congrats. Function name is correct!\\n\";\n $function_pointsEarned += floor($totalPoints*0.2);\n }\n else{\n $comments .= \"Better luck next time. Function name is incorrect. The correct answer should be: $functionName.\\n\";\n }\n\n //constraint testing\n $student_answer_substr = \"\";\n $student_answer_colon = \"\";\n if(strpos($student_answer, ':') !== false )\n {\n $student_answer_substr = substr($student_answer,strpos($student_answer,':')+1,strlen($student_answer));\n }\n else{\n $split_left = explode(\")\", $answer);\n $temp = $split_left[0];\n $split_right = explode(\"(\", $temp);\n $answer_parameter = $split_right[1];\n $student_parameters = preg_replace(\"/s/\",\"\", $answer_parameter);\n $student_answer_colon = \"def $answer_function_name($student_parameters): \" . substr($student_answer,strpos($student_answer,')')+1,strlen($student_answer));\n $student_answer_substr = substr($student_answer,strpos($student_answer,')'),strlen($student_answer));\n }\n\n //colon testing, if colon is in the student answer then they get points\n if(strpos($student_answer, '):') !== false){\n $comments .= \"Awesome you got the colon.\\n\";\n $colon_pointsEarned += floor($totalPoints*0.2);\n }\n else{\n $comments .= \"Sorry you didn't have the colon.\\n\";\n }\n\n //counting the amount of constraints\n if(empty($backend_constraints)){\n $comments .= \"\";\n }\n else if(strpos($student_answer_substr, $backend_constraints) !== false){\n $comments .= \"Awesome you got right constraint.\\n\";\n $constraints_pointsEarned += floor($totalPoints*0.2);\n }\n else{\n $comments .= \"Sorry you got wrong constraint. The actual constraint was: $backend_constraints.\\n\";\n }\n\n //test case testing\n if($backend_constraints == \"\"){\n $testCase_totalPoints = $totalPoints-$pointsPerItem*2;\n }\n else{\n $testCase_totalPoints = $totalPoints-$pointsPerItem*3;\n }\n $testCases_num = count($backend_testCases);\n\t$pointsPerCase = floor($testCase_totalPoints/$testCases_num);\n\t$lastCasePoints = $testCase_totalPoints-$pointsPerCase*($testCases_num-1);\n $testCase_array = array();\n //setting file\n $file = \"test.py\";\n //testing for each parameter\n for($i = 0; $i < $testCases_num; $i++){\n //grab test case id\n $testCaseId = $backend_testCases[$i]['testCaseId'];\n $parameters = \"\";\n $result = \"\";\n $testCases_pointsEarned = 0;\n $data = json_decode($backend_testCases[$i]['data'], true);\n $result = $data['result'];\n //grabbing parameters\n for ($h=0; $h < count($data['parameters']); $h++) {\n if(is_numeric($data['parameters'][strval($h)])){\n $parameters .= $data['parameters'][strval($h)].\",\";\n }\n else{\n $parameters .= \"'\".$data['parameters'][strval($h)].\"'\".\",\";\n }\n }\n $parameters = substr($parameters, 0, -1);\n //inserting code into file\n if(strpos($student_answer, ':') !== false ){\n if (strpos($student_answer_substr, 'print') || $answer_function_name == \"\") {\n file_put_contents($file, \"#!/usr/bin/env python\\n\" . $student_answer . \"\\n\" . \"$answer_function_name($parameters)\");\n }\n else {\n file_put_contents($file, \"#!/usr/bin/env python\\n\" . $student_answer . \"\\n\" . \"print($answer_function_name($parameters))\");\n }\n }\n else{\n if (strpos($student_answer_substr, 'print') || $answer_function_name == \"\") {\n file_put_contents($file, \"#!/usr/bin/env python\\n\" . $student_answer_colon . \"\\n\" . \"$answer_function_name($parameters)\");\n }\n else {\n file_put_contents($file, \"#!/usr/bin/env python\\n\" . $student_answer_colon . \"\\n\" . \"print($answer_function_name($parameters))\");\n }\n }\n /* if($backend_constraints == 'print'){\n file_put_contents($file, \"#!/usr/bin/env python\\n\" . $student_answer . \"\\n\" . \"$answer_function_name($parameters)\");\n }\n else{\n file_put_contents($file, \"#!/usr/bin/env python\\n\" . $student_answer . \"\\n\" . \"print($answer_function_name($parameters))\");\n } */\n //running the python code\n $runpython = exec(\"python $file\");\n //checking if code matches the result\n if ($runpython == $result){\n $comments .= \"Awesome code results were correct.\\n\";\n\t\t\tif ($i == $testCases_num-1) {\n\t\t\t\t$testCases_pointsEarned += $lastCasePoints;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$testCases_pointsEarned += $pointsPerCase;\n\t\t\t}\n }\n else{\n $comments .= \"Result was incorrect. Your result was: $runpython. Correct result was $result.\\n\";\n }\n\t\tif ($i == $testCases_num-1) {\n\t\t\t$temp = array('testCaseId' => $testCaseId, 'pointsEarned' => $testCases_pointsEarned, 'totalSubPoints' => $lastCasePoints);\n\t\t}\n\t\telse {\n\t\t\t$temp = array('testCaseId' => $testCaseId, 'pointsEarned' => $testCases_pointsEarned, 'totalSubPoints' => $pointsPerCase);\n\t\t}\n \n array_push($testCase_array, $temp);\n }\n\n //packaging the grade \n if(empty($backend_constraints)){\n $grade = array('questionId' => $questionId, 'function' => array('pointsEarned' => $function_pointsEarned, 'totalSubPoints' => $pointsPerItem), 'colon' => array('pointsEarned' => $colon_pointsEarned, 'totalSubPoints' => $pointsPerItem), 'constraints' => array('pointsEarned' => $constraints_pointsEarned, 'totalSubPoints' => 0), 'testCases' => $testCase_array, 'answer' => $student_answer, 'comments' => $comments, 'totalPoints' => $totalPoints);\n }\n else {\n $grade = array('questionId' => $questionId, 'function' => array('pointsEarned' => $function_pointsEarned, 'totalSubPoints' => $pointsPerItem), 'colon' => array('pointsEarned' => $colon_pointsEarned, 'totalSubPoints' => $pointsPerItem), 'constraints' => array('pointsEarned' => $constraints_pointsEarned, 'totalSubPoints' => $pointsPerItem), 'testCases' => $testCase_array, 'answer' => $student_answer, 'comments' => $comments, 'totalPoints' => $totalPoints);\n }\n\n //returning grade\n return $grade;\n}",
"function incorrectAnswer() {\n\t}",
"function correctAnswer() {\n\t}",
"function newAnswer($input);",
"function witch_function ($res) {\n\t\tif (preg_match(\"/(\\\\w+)\\\\s*\\\\(([\\\\w\\\\W\\\\d]*)\\\\)/\",$res,$tmp)==0) {\n\t\t\t$ret[0]=trim($res);\n\t\t\treturn $ret;\n\t\t}\n\t\t\t\n\t\t$ret[0]=strtoupper($tmp[1]);\n\t\t$tmp2 = explode(\"\\\",\\\"\",$tmp[2]);\n\t\t\n\t\tfor($i=0;$i<count($tmp2);$i++) {\n\t\t\t//$tmp2[$i] = str_replace(\"\\\"\",\"\",$tmp2[$i]);\n\t\t\t$tmp2[$i] = str_replace(\"\\\")\",\"\",$tmp2[$i]);\n\t\t\t$tmp2[$i] = str_replace(\"(\\\"\",\"\",$tmp2[$i]);\n\t\t\t$tmp2[$i] = str_replace(\"\\\"\",\"\",$tmp2[$i]);\n\t\t}\n\t\t\n\t\t$ret[1]=$tmp2;\n\t\treturn $ret;\n\t\t\n\t}",
"function askname($nama)\n{\n $format_nama=ucwords(strtolower($nama));\n echo \"namamu adalah $format_nama\";\n}",
"function studyFrench()\n {\n }",
"function transformIYouStatement($statement){\n echo \"Why do you $something me?\";\n }",
"public function secondtestString($thing);",
"function text_field($userAnswer, $answerDetails){\n //converT user answer to lower case as correct answers not case sensitive\n $userAnswer = strtolower($userAnswer);\n\n //initiate $found variable to boolean of false\n //used to track whether the user's answer is correct / was found in the answerDetails array\n $found = False;\n\n //use for loop to iterate through the answers in the answerDetails array\n //foreach could not be used as need to specify the individual value with respect to the count i\n for ($i = 0; $i < count($answerDetails); $i++){\n //if correct / almost correct answer was found\n if ($answerDetails[$i][0] == $userAnswer){\n //if user answer is correct (score of 5 found at array location) output correct response\n if ($answerDetails[$i][1] == 5){\n //display correct answer response\n echo $GLOBALS['c'] . $answerDetails[$i][2] . \"You score 5 points\";\n } //if user answer is nearly correct (score of 2 found at array location)\n else if ($answerDetails[$i][1] == 2){\n //display nearly correct answer response\n echo $GLOBALS['nc'] . $answerDetails[$i][2] . \"You score 2 points\";\n }\n //increment the GLOBALS['score'] with the correct score to the corresponding answer given\n $GLOBALS['score'] += $answerDetails[$i][1];\n //set found to true if an answer was found in the array\n $found = True;\n break;\n \n } \n }\n //if nothing was found - wrong answer\n if (!$found){\n //echo default response message for incorrect answer\n //appended with final element in the array which is the response given for wrong answers\n echo $GLOBALS['ic'] . end($answerDetails)[0] . \"You score 0 points\";\n\n }\n\n}",
"function make_func_name($string=\"\") {\n $string = trim($string);\n\n if (ctype_digit($string)){\n return $string;\n\n } else {\n // replace accented chars\n $accents = '/&([A-Za-z]{1,2})(grave|acute|circ|cedil|uml|lig);/';\n $string_encoded = htmlentities($string,ENT_NOQUOTES,'UTF-8');\n\n $string = preg_replace($accents,'$1',$string_encoded);\n\n // clean out the rest\n $replace = array('([\\40])','([^a-zA-Z0-9-])','(-{2,})');\n $with = array('_','_','_');\n $string = preg_replace($replace,$with,$string);\n $string = trim($string,\"-\");\n\n }\n return strtolower($string);\n}",
"function submitWord($word) {\n\n\n\n }",
"function reemplazar($n, $function){\n\t\t\t\n\t\t\t//Asignar a la variable funcion los $n's ya reemplazados\n\t\t\t$function = str_replace(\"n\", $n, $function);\n\t\t\t//Retornar el string procesado\n\t\t\treturn $function;\n\t\t\n\t\t}",
"public function make_coderunner_question_teststudentanswermacro() {\n return $this->make_macro_question('matlab_function');\n }",
"function exoMeteo($saisons, $temperature){\n $saisons == 'printemps';\n\n switch($saisons) {\n case 'printemps' : echo \"Nous sommes au $saisons et il fait $temperature degrés <br>\"; break;\n default: echo \"Nous sommes en $saisons et il fait $temperature degrés <br>\";\n }\n\n\n // correction version ternaire\n $article = ($saisons == 'printemps') ? 'au' : 'en';\n echo \"Nous sommes $article $saisons et il fait $temperature degrés <br>\";\n}",
"function func($user_func, $x){\n\t$fun_pos=strlen($user_func)-1;\n\twhile($fun_pos>=0){\n\t\tif($user_func[$fun_pos]=='x'){\n\t\t\tif($fun_pos>0 && $fun_pos<(strlen($user_func)-1)){\n\t\t\tif($user_func[$fun_pos+1]!='p' && $user_func[$fun_pos-1]!='a'){\n\t\t\t\t$user_func = substr_replace($user_func,\"$\",$fun_pos,0);\n\t\t\t}\n\t\t\t}else{$user_func = substr_replace($user_func,\"$\",$fun_pos,0);}\n\t\t}\n\t\t$fun_pos--;\n\t}\n\teval(\"\\$out=$user_func;\");\n\treturn $out;\n}",
"function spam($cadena){\n //$cadena = str_replace('(Lyrics)', '', $cadena);\n //$cadena = str_replace('(Lyric Video)', '', $cadena);\n //$cadena = str_replace('Letra', '', $cadena);\n //$cadena = str_replace('LETRA', '', $cadena);\n $cadena = str_replace('.wmv', '', $cadena);\n //$cadena = str_replace('(LYRICS)', '', $cadena);\n //$cadena = str_replace('( Audio Oficial )', '', $cadena);\n $cadena = str_replace('|', '', $cadena);\n $cadena = str_replace('(', '', $cadena);\n $cadena = str_replace(')', '', $cadena);\n $cadena = str_replace('/', '', $cadena);\n //$cadena = str_replace('(Con La Letra)', '', $cadena);\n //$cadena = str_replace('(con Letra)', '', $cadena);\n //$cadena = str_replace('Official Video', '', $cadena);\n //$cadena = ucwords($cadena);\n return $cadena;\n}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the resource type that the request is for. | public function getResourceType()
{
return $this->jsonApiRequest->getResourceType();
} | [
"public function getResourceType()\n {\n return $this->resource_type;\n }",
"public function typeResource()\n {\n return $this->get('rdf:type');\n }",
"public function getResourceType()\n {\n return $this->getProperty(\"resourceType\");\n }",
"public function getResourceType(): string\n {\n return $this->config['type'];\n }",
"function getResourceListType()\n\t{\n\t\tif (is_object($this->res_node))\n\t\t{\n\t\t\t$children = $this->res_node->child_nodes();\n\t\t\tif (is_object($children[0]))\n\t\t\t{\n\t\t\t\treturn $children[0]->get_attribute(\"Type\");\n\t\t\t}\n\t\t}\n\t}",
"public function getResourceTypeName() {\n return $this->resourceType->name;\n }",
"public function getResourceTypeName() {\n return $this->resourceTypeName;\n }",
"public function getResourceType();",
"public function type()\n {\n if ($this->_uri) {\n $res = $this->get($this->_uri);\n return $res->type();\n } else {\n return null;\n }\n }",
"public function type() {\r\n return $this->request_type;\r\n }",
"public function resourceType(): ?string\n {\n return optional($this->clientJob)->resource_type;\n }",
"public function getTypeName() {\n return $this->resourceTypeName;\n }",
"public function getResourceRelationshipType()\n {\n return $this->resourceRelationshipType;\n }",
"protected function getRequestType() {\r\n\t\tif(is_null($this->request_type)) {\r\n\t\t\tif($this->isConsoleRequest()) {\r\n\t\t\t\t$this->request_type = self::REQUEST_TYPE_CONSOLE;\r\n\t\t\t} elseif($this->isApiRequest()) {\r\n\t\t\t\t$this->request_type = self::REQUEST_TYPE_API;\r\n\t\t\t} else {\r\n\t\t\t\t$this->request_type = self::REQUEST_TYPE_HTTP;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $this->request_type;\r\n\t}",
"public function getResourceType()\n {\n return $this->_propertyResourceType;\n }",
"public function getResourceClass()\n {\n return $this->resourceClass;\n }",
"public function getRequestType()\n {\n return $this->request_type;\n }",
"protected function type()\n {\n $request = Mage::app()->getRequest();\n\n if ($request->getModuleName() === 'pagecache' &&\n $request->getControllerName() === 'request' &&\n $request->getActionName() === 'process'\n ) {\n return 'partial';\n } else {\n return 'miss';\n }\n }",
"public function getResourceTypeId();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Arguments: $message. Body : array defined in the 'PublicInterface.php' file returns: the defined in the 'PublicInterface.php' file | function getMessageBodyFromMessage($message){
return simpleGetMessageBodyFromMessage($message);
} | [
"protected function _adMessageBody()\r\n\t{\r\n\t}",
"function rewind_body(MessageInterface $message)\n{\n return Utils::rewind_body($message);\n}",
"abstract protected function getBuiltMessage();",
"abstract public function processMessage();",
"public function getMessageParams(): array;",
"function imap_bodystruct ($imap_stream, $msg_number, $section) {}",
"public function pullTransientMessage(): object|array;",
"abstract public function defineMessages();",
"public function getResponseMessage () {}",
"protected function _parseMessage()\n {\n }",
"public function getMessageContainer();",
"abstract public function setMessageBody($messageBody);",
"function callback($msg){\n dump($msg->body);\n }",
"abstract public function getMailjetMessage(Swift_Mime_SimpleMessage $message);",
"public function getRawMessage();",
"public function getMessageBody()\n {\n return $this->messageBody;\n }",
"public function createMessage();",
"function MIME_Message($message) {\n\t\t\t$this->MIME_message = array();\n\t\t\t$this->content_map = array();\n\t\t\tunset($this->main_header);\n\t\t\t$this->decode_article($message);\n\t\t}",
"public function readBody();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "T__14" $ANTLR start "T__15" | function mT__15(){
try {
$_type = t018llstarLexer::T_T__15;
$_channel = t018llstarLexer::DEFAULT_TOKEN_CHANNEL;
// runtime/Php/test/Antlr/Tests/grammers/t018llstar.g
// runtime/Php/test/Antlr/Tests/grammers/t018llstar.g
{
$this->matchChar(125);
}
$this->state->type = $_type;
$this->state->channel = $_channel;
}
catch(Exception $e){
throw $e;
}
} | [
"function mT__14(){\n try {\n $_type = t018llstarLexer::T_T__14;\n $_channel = t018llstarLexer::DEFAULT_TOKEN_CHANNEL;\n // runtime/Php/test/Antlr/Tests/grammers/t018llstar.g\n // runtime/Php/test/Antlr/Tests/grammers/t018llstar.g\n {\n $this->matchChar(123); \n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }",
"function mT__13(){\n try {\n $_type = t018llstarLexer::T_T__13;\n $_channel = t018llstarLexer::DEFAULT_TOKEN_CHANNEL;\n // runtime/Php/test/Antlr/Tests/grammers/t018llstar.g\n // runtime/Php/test/Antlr/Tests/grammers/t018llstar.g\n {\n $this->matchString(\"void\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }",
"function mT__9(){\n try {\n $_type = t016actionsLexer::T_T__9;\n $_channel = t016actionsLexer::DEFAULT_TOKEN_CHANNEL;\n // runtime/Php/test/Antlr/Tests/grammers/t016actions.g\n // runtime/Php/test/Antlr/Tests/grammers/t016actions.g\n {\n $this->matchString(\"void\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }",
"function mT__41(){\n try {\n $_type = t042astLexer::T_T__41;\n $_channel = t042astLexer::DEFAULT_TOKEN_CHANNEL;\n // runtime/Php/test/Antlr/Tests/grammers/t042ast.g\n // runtime/Php/test/Antlr/Tests/grammers/t042ast.g\n {\n $this->matchString(\"fooze\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }",
"function mT__12(){\n try {\n $_type = t018llstarLexer::T_T__12;\n $_channel = t018llstarLexer::DEFAULT_TOKEN_CHANNEL;\n // runtime/Php/test/Antlr/Tests/grammers/t018llstar.g\n // runtime/Php/test/Antlr/Tests/grammers/t018llstar.g\n {\n $this->matchString(\"char\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }",
"function mT__11(){\n try {\n $_type = t046rewriteLexer::T_T__11;\n $_channel = t046rewriteLexer::DEFAULT_TOKEN_CHANNEL;\n // runtime/Php/test/Antlr/Tests/grammers/t046rewrite.g\n // runtime/Php/test/Antlr/Tests/grammers/t046rewrite.g\n {\n $this->matchChar(125); \n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }",
"function mT__20(){\n try {\n $_type = t018llstarLexer::T_T__20;\n $_channel = t018llstarLexer::DEFAULT_TOKEN_CHANNEL;\n // runtime/Php/test/Antlr/Tests/grammers/t018llstar.g\n // runtime/Php/test/Antlr/Tests/grammers/t018llstar.g\n {\n $this->matchChar(43); \n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }",
"function mT__25(){\n try {\n $_type = t042astLexer::T_T__25;\n $_channel = t042astLexer::DEFAULT_TOKEN_CHANNEL;\n // runtime/Php/test/Antlr/Tests/grammers/t042ast.g\n // runtime/Php/test/Antlr/Tests/grammers/t042ast.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 }",
"function mPLUS(){\n try {\n $_type = t048rewrite2::T_PLUS;\n $_channel = t048rewrite2::DEFAULT_TOKEN_CHANNEL;\n // runtime/Php/test/Antlr/Tests/grammers/t048rewrite2.g\n // runtime/Php/test/Antlr/Tests/grammers/t048rewrite2.g\n {\n $this->matchChar(43); \n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }",
"function mT__25(){\n try {\n $_type = t047treeparserLexer::T_T__25;\n $_channel = t047treeparserLexer::DEFAULT_TOKEN_CHANNEL;\n // runtime/Php/test/Antlr/Tests/grammers/t047treeparser.g\n // runtime/Php/test/Antlr/Tests/grammers/t047treeparser.g\n {\n $this->matchChar(123); \n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }",
"function mT__18(){\n try {\n $_type = t018llstarLexer::T_T__18;\n $_channel = t018llstarLexer::DEFAULT_TOKEN_CHANNEL;\n // runtime/Php/test/Antlr/Tests/grammers/t018llstar.g\n // runtime/Php/test/Antlr/Tests/grammers/t018llstar.g\n {\n $this->matchString(\"==\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }",
"function mT__33(){\n try {\n $_type = t042astLexer::T_T__33;\n $_channel = t042astLexer::DEFAULT_TOKEN_CHANNEL;\n // runtime/Php/test/Antlr/Tests/grammers/t042ast.g\n // runtime/Php/test/Antlr/Tests/grammers/t042ast.g\n {\n $this->matchString(\"class\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }",
"function mT__26(){\n try {\n $_type = GroupLexer::T_T__26;\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->matchString(\"implements\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }",
"function mDOT(){\n try {\n $_type = GroupLexer::T_DOT;\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(46); \n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }",
"function mT__8(){\n try {\n $_type = t046rewriteLexer::T_T__8;\n $_channel = t046rewriteLexer::DEFAULT_TOKEN_CHANNEL;\n // runtime/Php/test/Antlr/Tests/grammers/t046rewrite.g\n // runtime/Php/test/Antlr/Tests/grammers/t046rewrite.g\n {\n $this->matchChar(40); \n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }",
"function mT__27(){\n try {\n $_type = GroupLexer::T_T__27;\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->matchString(\"default\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }",
"function mT__32(){\n try {\n $_type = t042astLexer::T_T__32;\n $_channel = t042astLexer::DEFAULT_TOKEN_CHANNEL;\n // runtime/Php/test/Antlr/Tests/grammers/t042ast.g\n // runtime/Php/test/Antlr/Tests/grammers/t042ast.g\n {\n $this->matchChar(61); \n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }",
"function mT__37(){\n try {\n $_type = t042astLexer::T_T__37;\n $_channel = t042astLexer::DEFAULT_TOKEN_CHANNEL;\n // runtime/Php/test/Antlr/Tests/grammers/t042ast.g\n // runtime/Php/test/Antlr/Tests/grammers/t042ast.g\n {\n $this->matchChar(125); \n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }",
"function mRPAREN(){\n try {\n $_type = GroupLexer::T_RPAREN;\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(41); \n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
OAuth starting URI Generated from protobuf field string bank_linking_uri = 3; | public function setBankLinkingUri($var)
{
GPBUtil::checkString($var, True);
$this->bank_linking_uri = $var;
return $this;
} | [
"public function oauth_url();",
"public function woo_slg_linkedin_auth_url() {\n\t\t\t\n\t\t\t//Remove unused scope for login\n\t\t\t\n\t\t\t$scope\t= array( 'r_emailaddress', 'r_liteprofile' );\n\t\t\t\n\t\t\t//load linkedin class\n\t\t\t$linkedin = $this->woo_slg_load_linkedin();\n\t\t\t\n\t\t\t//check linkedin loaded or not\n\t\t\tif( !$linkedin ) return false;\n\t\t\t\n\t\t\t//Get Linkedin config\n\t\t\t$config\t= $this->linkedinconfig;\n\t\t\t\n\t\t\ttry {//Prepare login URL\n\t\t\t\t$preparedurl\t= $this->linkedin->getAuthorizeUrl( $config['appKey'], $config['callbackUrl'], $scope );\n\t\t\t} catch( Exception $e ) {\n\t\t\t\t$preparedurl\t= '';\n\t }\n\t \n\t\t\treturn $preparedurl;\n\t\t}",
"public static function getOAuthRedirectUrl()\n {\n return urlencode(static::getOAuthRedirectUrlRaw());\n }",
"public static function getOAuthRedirectUrl(): string\n {\n return UrlHelper::cpUrl('instagram/oauth-redirect');\n }",
"private static function getOauthLink() {\n\t\t$curl = curl_init();\n\t\tcurl_setopt_array($curl, array(\n\t\t\tCURLOPT_HEADER => true,\n\t\t\tCURLOPT_NOBODY => true,\n\t\t\tCURLOPT_RETURNTRANSFER => true,\n\t\t\tCURLOPT_SSL_VERIFYPEER => false,\n\t\t\tCURLOPT_SSL_VERIFYHOST => false,\n\t\t\tCURLOPT_URL => self::$ucwa_baseserver . self::$ucwa_path_user,\n\t\t\tCURLOPT_REFERER => self::$ucwa_baseserver . self::$ucwa_path_xframe,\n\t\t\tCURLOPT_HTTPHEADER => array(\n\t\t\t\t\"Accept: application/json\",\n\t\t\t\t\"X-Ms-Origin: \" . self::$ucwa_fqdn,\n\t\t\t),\n\t\t\tCURLOPT_TIMEOUT => 15,\n\t\t));\n\t\t\n\t\t$response = curl_exec($curl);\n\t\t$status = curl_getinfo($curl);\n\t\tcurl_close($curl);\t\n\t\t\n\t\tif ($status[\"http_code\"] == 401) {\t\t\t\n\t\t\tpreg_match('/href=[\"\\']?([^\"\\'>]+)[\"\\']?/', $response, $match);\n\t\t\t$link = parse_url( $match[1] );\n\t\t\t\n\t\t\tself::$ucwa_path_oauth = (substr($link[\"path\"], 0, 1) == \"/\" ? \"\" : \"/\") . $link[\"path\"];\n\t\t\treturn true;\n\t\t} else {\n\t\t\tself::_error(\"Can't get OAuth-Link.\", $status);\n\t\t}\n\t}",
"public function getAuthorizationLink()\n {\n $url = $this->auth_url . \"/\" .\n \"?response_type=code\" .\n \"&client_id=\" . $this->getClientId() .\n \"&nonce=\" . $this->getNonce() .\n \"&scope=\" . $this->getScope() .\n \"&redirect_uri=\" . $this->getRequestUri() .\n \"&state=\" . urlencode($this->getState()) .\n \"&enable_mock=true\" .\n \"&enable_oauth_providers=true\" .\n \"&enable_open_banking_providers=false\" .\n \"&enable_credentials_sharing_providers=true\" .\n \"&response_mode=form_post\";\n\n if ($this->provider) {\n $url .= \"&provider_id=\" . $this->provider;\n }\n\n return $url;\n }",
"function getOAuthServerBaseURI();",
"public static function getAuthUrl() {\n $queryString = http_build_query(\n array( 'client_id' => self::CLIENT_ID,\n 'response_type' => 'code',\n 'redirect_uri' => self::getAbsoluteUrl(array(\n 'controller' => 'oauth',\n 'action' => 'callback',\n 'service' => self::TYPE\n )),\n 'scope' => 'user_about_me,user_checkins,friends_checkins,publish_checkins,offline_access'\n ));\n $url = self::OAUTH_URL . '?' . $queryString;\n return $url;\n }",
"public static function build_oauth_url() {\n\t\t$response = \"https://www.dropbox.com/oauth2/authorize?client_id=\".client_id2.\"&token_access_type=offline&response_type=code&state=12345&redirect_uri=\".urlencode(callback_uri2);\n\t\treturn $response;\n\t}",
"private function generateOpenIDConnectAuthorizeURL()\n\t\t{\n\t\t\t$current_link = \"http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]\";\n\t\t\treturn $this->config->authorize_url . \"?scope=openid&response_type=code&client_id=\".$this->config->client_id.\"&state=\".urlencode($current_link).\"&redirect_uri=\".$this->config->redirect_url;\n\t\t}",
"function Show_DropBox_Login_Link($Call_Back_URL){\r\n\r\n// Create login link\r\n$login_link=REMOTE_AUTH_PATH.$Call_Back_URL;\r\n\r\n// Get DropBox login oauth link with login token and call back url\r\n$load_link=file_get_contents($login_link);\r\nreturn($load_link);\r\n}",
"public function getDropboxLink()\n {\n\t\theader('Location: https://www.dropbox.com/oauth2/authorize?client_id=52u9mwxlcxgv1j2&response_type=code&redirect_uri=https://simola.herokuapp.com/index.php/user/getDropBoxAT/');\n\t}",
"function mastodon_oauth_redirect_uri_authorize($domain) {\n\tif (!function_exists('url_absolue')) {\n\t\tinclude_spip('inc/filres_mini');\n\t}\n\treturn url_absolue(_DIR_RACINE . \"mastodon_oauth.api/authorize/$domain\");\n}",
"public static function getSignInUrl() {\n\t\t// Initialise the OAuth object\n\t\t$conn = self::buildTwitterConnection();\n\t\t\n\t\t// Get temporary credentials for authorisation. \n\t\t// The callback URL is actually ignored by the 1.1 version of the Twitter API.\n\t\t$callbackUrl = 'http://contacts.tobysullivan.net/index.php?r=auth/callback';\n\t\t$temp_creds = $conn->getRequestToken($callbackUrl);\n\n\t\t// Store temp credentials for use in callback\n\t\tYii::app()->session['oauth_token'] = $temp_creds['oauth_token'];\n\t\tYii::app()->session['oauth_token_secret'] = $temp_creds['oauth_token_secret'];\n\t\t\n\t\t// Get the callback URL\n\t\t$redirectUrl = $conn->getAuthorizeURL($temp_creds);\n\t\t\n\t\treturn $redirectUrl;\n\t}",
"protected function getRedirectUrl() {\n return url(\"fluxservice/oauth/{$this->bundle()}/{$this->identifier()}\", array('absolute' => TRUE));\n }",
"private function get_redirect_uri() {\n\t\treturn add_query_arg( 'oauth2callback', '1', admin_url( 'index.php' ) );\n\t}",
"static public function connect_url() {\n\t\treturn Controller::join_links(\"facebook\", \"connect\");\n\t}",
"public function buildBackendUri() {}",
"function fblogin_social_inscription_links($flux){\n\tif (defined('_FB_API_KEY')\n\t && !isset($_SESSION['fb_session'])\n\t && !isset($GLOBALS['visiteur_session']['fb_session'])\n\t ){\n\t\t$h = recuperer_fond('modeles/fblogin_insc_link');\n\t\t$flux .= $h;\n\t}\n\treturn $flux;\n}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
It should allow replacing a non defined non namespaced function | public function allow_replacing_a_non_defined_non_namespaced_function()
{
$f = 'func' . uniqid(rand(1, 9999));
$spy = FunctionMocker::replace($f, 2324);
$this->assertTrue(function_exists($f));
$this->assertEquals(2324,$f());
$spy->wasCalledOnce();
} | [
"public function allow_replacing_a_non_defined_namespaced_function()\n {\n $f = 'Some\\Name\\Space\\func' . uniqid(rand(1, 9999));\n\n $spy = FunctionMocker::replace($f, 2324);\n\n $this->assertTrue(function_exists($f));\n $this->assertEquals(2324, $f());\n $spy->wasCalledOnce();\n }",
"function runkit_function_remove($funcname)\n{\n}",
"function runkit7_function_remove($funcname){}",
"public static function replace()\n\t{\n\t}",
"function runkit_function_redefine($function_name, $args, $code) {}",
"function dummy_deprecated_function2 () {\n\treturn true;\n}",
"public function ReplacePhpFunctions () {\n\t\treturn parent::ReplacePhpFunctions(func_get_args());\n\t}",
"function zend_obfuscate_function_name($function_name) {}",
"public function allowFunctionMatch()\n {\n $this->content = preg_replace_callback('/@(.*)\\((.*)\\)/', function($match){\n if (in_array($match[1], $this->allowFunctions)) {\n return \"<?php \" . $match[1] . \"(\" . $match[2] . \"); ?>\";\n }\n }, $this->content);\n }",
"function runkit_function_rename($funcname, $newname)\n{\n}",
"public function testDoNotReplaceInStringThatIsNotCode()\n {\n $originalNamespace = \"TrustedLogin\";\n $replacement = \"Prefix\\\\TrustedLogin\";\n $contents = \"esc_html__( 'Learn about TrustedLogin', 'trustedlogin' )\";\n\n $config = $this->createMock(StraussConfig::class);\n\n $replacer = new Prefixer($config, __DIR__);\n $result = $replacer->replaceNamespace($contents, $originalNamespace, $replacement);\n\n $expected = \"esc_html__( 'Learn about TrustedLogin', 'trustedlogin' )\";\n\n $this->assertEquals($expected, $result);\n }",
"public function should_allow_defining_a_non_existing_function() {\n\t\tdefine('foo', function () {\n\t\t\treturn 'bar';\n\t\t});\n\n\t\t$this->assertEquals('bar', foo());\n\t}",
"function replaceDefaultHook($str) {\n global $default_hooks, $default_replace;\n return (str_replace($default_hooks, $default_replace, $str));\n}",
"public function testInternalFunction()\n {\n $f = 2; // function glob\\singleFunction\n\n $this->assertFalse(\n self::$models[$f]->isInternal(),\n self::$models[$f]->getName() . ' is a user-defined function.'\n );\n }",
"function _wpsc_deprecated_function( $function, $version, $replacement = null ) {\n\tdo_action( 'wpsc_deprecated_function_run', $function, $replacement, $version );\n\n\t// Allow plugin to filter the output error trigger\n\tif ( WP_DEBUG && apply_filters( 'wpsc_deprecated_function_trigger_error', true ) ) {\n\t\tif ( ! is_null( $replacement ) )\n\t\t\ttrigger_error(\n\t\t\t\tsprintf( __( '%1$s is <strong>deprecated</strong> since WP eCommerce version %2$s! Use %3$s instead.', 'wpsc' ),\n\t\t\t\t\t$function,\n\t\t\t\t\t$version,\n\t\t\t\t\t$replacement\n\t\t\t\t)\n\t\t\t);\n\t\telse\n\t\t\ttrigger_error(\n\t\t\t\tsprintf( __( '%1$s is <strong>deprecated</strong> since WP eCommerce version %2$s with no alternative available.', 'wpsc' ),\n\t\t\t\t\t$function,\n\t\t\t\t\t$version\n\t\t\t\t)\n\t\t\t);\n\t}\n}",
"public function replaceSignature()\n {\n }",
"function replaceFunctionName($studentanswer, $actualname)\n{\n $x = strpos($studentanswer, \"(\");\n $y = substr($studentanswer, 0, $x);\n $z = ltrim($studentanswer, $y);\n $newstudentanswer = \"def \" . $actualname . $z;\n return $newstudentanswer;\n}",
"function _cptr_deprecated_function( $function, $version, $replacement=null ) {\n\tif ( WP_DEBUG ) {\n\t\tif ( ! is_null($replacement) )\n\t\t\ttrigger_error( sprintf( __('Function %1$s is <strong>deprecated</strong> since CPTR version %2$s! Use %3$s instead.'), $function, $version, $replacement ) );\n\t\telse\n\t\t\ttrigger_error( sprintf( __('Function %1$s is <strong>deprecated</strong> since CPTR version %2$s with no alternative available.'), $function, $version ) );\n\t}\n}",
"public function provideReplacement();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Puts data to specific page data. So any data can be send to new page. | function put_page_data($name, $value)
{
return $_POST[PAGE_DATA_PREFIX . $name] = $value;
} | [
"private function setPageData()\n {\n // Load $this->data['article']\n if ($this->getTextId()) {\n $this->getArticle($this->getTextId());\n }\n\n $path_arr = explode('/', $_SERVER['REQUEST_URI']);\n $path = $path_arr[count($path_arr)-1];\n\n $seo = Seo::get($path, $this->getLang('input'));\n\n // SITE NAME\n $this->data['page']['site_name'] = cfg::get('name');\n\n\n // ROBOTS\n if ($this->data['article'][$this->getTextId()]['robots']) {\n // 1. get value from the custom field named robots\n $this->data['page']['robots'] = $this->data['article'][$this->getTextId()]['robots'];\n } elseif (cfg::get('robots')) {\n\n // 2. get value from main site configuration (robots)\n $this->data['page']['robots'] = cfg::get('robots');\n } else {\n\n // 3. default value: \"index, follow\"\n $this->data['page']['robots'] = 'index, follow';\n }\n\n // TITLE\n if ($this->data['article'][$this->getTextId()]['customtitle']) {\n\n // 1. get value from the custom field named customtitle\n $this->data['page']['custom_title'] = str_replace('\"', '"', $this->data['article'][$this->getTextId()]['customtitle']);\n }\n\n if ($seo && $seo['title']) {\n // 2. SEO table value\n $this->data['page']['title'] = $seo['title'];\n } elseif ($this->data['article'][$this->getTextId()]['title']) {\n // 3. use the value of the field named \"title\"\n $this->data['page']['title'] = $this->data['article'][$this->getTextId()]['title'];\n } elseif ($this->cfg['context'] === 'tags') {\n // 4. if context is tags the main site configuration (title) will be used followed by comma-separated-list of filtering tgs\n $this->data['page']['title'] = cfg::get('title') . ' / ' . implode(', ', $this->getFilterTags());\n } else {\n // 5. default value is main site configuration value (title)\n $this->data['page']['title'] = cfg::get('title');\n }\n\n // Replace double quotes with html character in Title\n $this->data['page']['title'] = str_replace('\"', '"', $this->data['page']['title']);\n\n // DESCRIPTION\n if ($seo && $seo['description']) {\n // 1. Use Seo table value\n $this->data['page']['description'] = $seo['description'];\n } elseif ($this->data['article'][$this->getTextId()]['customdescription']) {\n // 2. get value from the custom field named customdescription\n $this->data['page']['description'] = str_replace('\"', '"', $this->data['article'][$this->getTextId()]['customdescription']);\n } elseif ($this->data['article'][$this->getTextId()]['summary'] && trim(strip_tags($this->data['article'][$this->getTextId()]['summary'])) != '') {\n // 3. use the value of the field named \"summary\"\n $this->data['page']['description'] = str_replace('\"', '"', trim(strip_tags($this->data['article'][$this->getTextId()]['summary'])));\n } elseif ($this->cfg['context'] === 'tags') {\n // 4. if context is tags the main site configuration (description) will be used followed by comma-separated-list of filtering tgs\n $this->data['page']['description'] = str_replace('\"', '"', cfg::get('description') . ' / ' . implode(', ', $this->getFilterTags()));\n } else {\n // 5. default value is main site configuration value (description)\n $this->data['page']['description'] = str_replace('\"', '"', cfg::get('description'));\n }\n\n // truncate description up to 500 digits\n if (strlen($this->data['page']['description']) > 500) {\n $this->data['page']['description'] = str_replace('\"', '"', substr($this->data['page']['description'], 0, 497) . '...');\n }\n\n // Replace double quotes with html character in Description\n $this->data['page']['description'] = str_replace('\"', '"', $this->data['page']['description']);\n\n // KEYWORDS\n if ($seo && $seo['keywords']) {\n $this->data['page']['keywords'] = $seo['keywords'];\n } elseif ($this->data['article'][$this->getTextId()]['keywords']) {\n // 1. use the value of the field named \"keywords\"\n $this->data['page']['keywords'] = $this->data['article'][$this->getTextId()]['keywords'];\n } else {\n // 2. default value is main site configuration value (keywords)\n $this->data['page']['keywords'] = cfg::get('keywords');\n }\n // Replace double quotes with html character in Keywords\n $this->data['page']['keywords'] = str_replace('\"', '"', $this->data['page']['keywords']);\n\n // LANG\n $this->data['page']['lang'] = $this->getLang('current', true);\n\n // URL\n // http://stackoverflow.com/a/23717829/586449\n $this->data['page']['url'] = (isset($_SERVER['HTTPS']) ? \"https\" : \"http\") . \"://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]\";\n\n // MISSION\n $this->data['page']['mission'] = cfg::get('mission');\n\n // IMAGE\n $path2img = str_replace(utils::getBaseUrl(), null, $this->data['article'][$this->getTextId()]['art_img']['orig']);\n\n if (file_exists($path2img)) {\n // 1. check first for article image\n $this->data['page']['image'] = utils::getBaseUrl() . $path2img;\n } elseif ($this->data['article'][$this->getTextId()]['text']) {\n // 2. get first image available in the article body\n $xpath = new DOMXPath(@DOMDocument::loadHTML($this->data['article'][$this->getTextId()]['text']));\n $src = $xpath->evaluate(\"string(//img/@src)\");\n\n $this->data['page']['image'] = (!preg_match('/http/', $src) ? utils::getBaseUrl() . '/' : '') . $src;\n }\n\n // AUTHOR\n if (\n $this->data['article'][$this->getTextId()]['author']\n &&\n trim($this->data['article'][$this->getTextId()]['author']) != ''\n ) {\n $this->data['page']['author'] = $this->data['article'][$this->getTextId()]['author'];\n }\n\n // DATE\n if (\n $this->data['article'][$this->getTextId()]['publish'] &&\n $this->data['article'][$this->getTextId()]['publish'] !== '0000-00-00') {\n $this->data['page']['date'] = $this->data['article'][$this->getTextId()]['publish'];\n }\n }",
"public function updatePage($page, array $data);",
"public function updatePage(PageContract $page, $data);",
"public function update($page, array $data);",
"public function set_PageData() {\n\n // We have an existing page\n // should feed a wp_update_post not wp_insert_post\n //\n if ($this->linked_postid > 0) {\n $this->pageData = array(\n 'ID' => $this->linked_postid,\n );\n $this->plugin->debugMP('slp.main',\n 'msg',\n 'location.set_PageData()',\n ' pre-existing post ID ' . $this->linked_postid . '<br/>' .\n ' this pageType ' . $this->pageType . '<br/>' .\n ' this pageDefaultStatus ' . $this->pageDefaultStatus . '<br/>' .\n ' this store ' . $this->store\n ,__FILE__,__LINE__\n );\n\n // No page yet, default please.\n //\n } else {\n $this->pageData = array(\n 'ID' => '',\n 'post_type' => $this->pageType,\n 'post_status' => $this->pageDefaultStatus,\n 'post_title' => $this->store,\n 'post_content' => ''\n );\n $this->plugin->debugMP('slp.main',\n 'msg',\n 'location.set_PageData()',\n ' new post ID ' . $this->linked_postid . '<br/>' .\n ' this pageType ' . $this->pageType . '<br/>' .\n ' this pageDefaultStatus ' . $this->pageDefaultStatus . '<br/>' .\n ' this store ' . $this->store\n ,__FILE__,__LINE__\n );\n }\n\n // Apply our location page data filters.\n // This is what allows add-ons to tweak page data.\n //\n $this->pageData = apply_filters('slp_location_page_attributes', $this->pageData);\n\n // Debugging\n $this->plugin->debugMP('slp.main','pr','location.set_PageData() post-filter',$this->pageData,__FILE__,__LINE__);\n\n return $this->pageData;\n }",
"private function setData($data) {\n // preparando data (com post)\n $data['div_id'] = strtolower($data['div_id']);\n $data['div_type'] = 'div';\n $data['id_page'] = $this->getPage();\n $data['id'] = $this->getId();\n\n try {\n $this->SiteModel->setDiv($data);\n // mensagem de dados gravados com sucesso\n $view = array();\n $view['message'] = 'Dados da Div salvos com sucesso';\n $view['url'] = \"/admin/pages/{$data['id_page']}\";\n $template = 'admin/message';\n $this->html->output($template, $view);\n } catch (Exception $e) {\n show_error($e->getMessage());\n }\n }",
"public function prepareData()\n {\n $layoutData = $this->prepareLayoutData();\n $pageData = $this->preparePageData();\n\n $this\n ->addLayout($layoutData)\n ->addPage($pageData['slug'], $pageData['data'])\n ;\n }",
"public static function update_page_record($data, $context) {\n global $DB;\n\n $pagecontentsoptions = simplelesson_get_editor_options($context);\n $data->timemodified = time();\n\n $data = file_postupdate_standard_editor(\n $data,\n 'pagecontents',\n $pagecontentsoptions,\n $context,\n 'mod_simplelesson',\n 'pagecontents',\n $data->id);\n\n $DB->update_record('simplelesson_pages', $data);\n }",
"private function setHomepageData($data)\r\n {\r\n $this->_homepage[\"version\"] = $data[\"version\"];\r\n $this->_homepage[\"langs\"] = $data[\"langs\"];\r\n }",
"protected function setPageInfo() : void {}",
"public function write(Page $page);",
"public function get_page_data(&$data, $page_meta){\n $data['menu'] = $page_meta['menu'];\n $data['menu_id'] = $page_meta['menu_id'];\n }",
"function processPageData() {\n\n $this->cookieOk = $this->utility->checkAuthCookie($this->cookieArray);\n\n if ($this->cookieOk == 1) {\n\n $this->weeks = $this->utility->getWeeks();\n $this->years = $this->utility->getYears();\n\n $this->processPostData();\n\n $this->payrollData = $this->dataLayer->getPayrollData($this->weekSelected, $this->yearSelected);\n\n }\n else {\n $this->cookieNotOkText = $this->utility->getCookieNotOkText();\n }\n\n }",
"public function putData($data);",
"public function setPage() {\n }",
"public function setupPageData($page_no) \n {\n //NB: gets login page defaults all messages/errors\n $this->data['login'] = $this->user->viewLogin();\n $this->saveData('data');\n }",
"function putData($url, $data);",
"protected function StoreData($data)\n {\n }",
"protected function collectPageData()\n {\n $currentPage = $this->pageManager->getCurrentPage();\n\n if (!is_null($currentPage)) {\n $this->data['currentPage'] = array(\n 'name' => $currentPage->getName(),\n 'type' => $currentPage->getType(),\n );\n $this->data['cache'] = array(\n 'enabled' => $this->cacheEnabled,\n 'private' => $currentPage->getCachePrivate(),\n 'max_age' => $currentPage->getCacheMaxAge(),\n 'shared_max_age' => $currentPage->getCacheSharedMaxAge(),\n 'must_revalidate' => $currentPage->getCacheMustRevalidate(),\n 'last_modified' => $currentPage->getLastCacheModifiedDate()\n );\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method set_city Sample of usage: $address>city = $object; | public function set_city(City $object)
{
$this->city = $object;
$this->city_id = $object->id;
} | [
"public function setCity( $city );",
"public function setCity($city) { $this->city = $city ; }",
"function setCity($city)\n {\n $this->__city = $city ;\n }",
"public function setCity($city) { $this->city = $city; }",
"public function set_city($city) {\r\n $this->city = $city;\r\n }",
"function setCity($city) {\n\t\t$this->m_city = $city;\n\t}",
"public function setCity($city)\n {\n $this->city = $city;\n }",
"public function test_set_address_city(){\n $this->address->setCity('Vantaa');\n $this->assertEquals($this->address->getCity(), 'Vantaa');\n }",
"public function setCity( string $city )\n\t{\n\t\t$this->city = $city;\n\t}",
"public function setCity($city)\n {\n $this->city = $city;\n }",
"function setCustomerCity($value)\n {\n $this->setAttribute(\"Customer::City\", $value);\n }",
"function setCity($s)\n\t{\n\t\t$this->Info['City'] = $s;\n\t\tupdateTableByClient('ClientContact', 'City', $s, $this->Clientname);\n\t}",
"public function testSetCity(): void {\n\n $obj = new Adresse();\n\n $obj->setCity(\"city\");\n $this->assertEquals(\"city\", $obj->getCity());\n }",
"public function testSetCity()\n {\n $this->testAddress= new Address($this->id, $this->testHAN, $this->testStName, $this->testCity, $this->testProv, $this->testPostalC);\n\n $this->assertEquals($this->testCity, $this->testAddress->getCity());\n $this->testAddress->setCity(\"hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh\"); //boundary case where set word is 50 chars long\n $this->assertEquals(\"hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh\", $this->testAddress->getCity());\n\n $this->expectException(\\InvalidArgumentException::class);\n $this->testAddress->setCity(\"Hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh\"); //exception case where set name is over 50 characters (amount allowed)\n\n $this->expectException(\\InvalidArgumentException::class);\n $this->testAddress->setCity(48957497); //exception case where set name is only numeric (should be a string)\n\n }",
"public function testCanSetAndGetCity()\n {\n $mockCity = 'Corpus Christi';\n\n $this->dataCenter->setCity($mockCity);\n\n $this->assertEquals($mockCity, $this->dataCenter->getCity());\n }",
"public function testCanSetAndGetCity()\n {\n $mockCity = 'Corpus Christi';\n\n $this->nationalDataCenter->setCity($mockCity);\n\n $this->assertEquals($mockCity, $this->nationalDataCenter->getCity());\n }",
"public function setCity($value)\n {\n $this->_billCity = $this->_deliveryCity = $value;\n return $this;\n }",
"public function setShippingCity()\n\t{\n\t\t// Ensure we have an argument to work with\n\t\t\t\tif (func_num_args()<1)\n\t\t{\n\t\t\t$this->error[]=\"Invalid number of arguments in function '\".__FUNCTION__.\"()'\";\n\t\t\treturn;\n\t\t}\n\t\t$value=func_get_arg(0);\n\t\t$this->shippingCity = $this->dom->createElement('city',substr($value,0,40));\n\t\treturn;\n\t}",
"public function setCity($var)\n {\n GPBUtil::checkString($var, True);\n $this->city = $var;\n\n return $this;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Funcion para encontrar la info de las empresas por su email, o por el email de uno de sus contactos | public function _searchByEmail($email) {
$url = "https://crm.zoho.com/crm/private/json/Accounts/searchRecords";
$params = 'authtoken='.$this->authToken.'&scope=crmapi&newFormat=2&criteria=(Correo electrónico:"'.$email.'")';
$response = json_decode($this->_curl($url, $params), true);
if (isset($response['response']['result']['Accounts']['row']['FL'])){
$data = $response['response']['result']['Accounts']['row']['FL'];
$idGlobal = $this->_content($data, 'Account Number');
$this->_zohoAccountToDB($data, $idGlobal);
return $idGlobal;
}else{
$url = "https://crm.zoho.com/crm/private/json/Contacts/searchRecords";
$params = 'authtoken='.$this->authToken.'&scope=crmapi&newFormat=2&criteria=(Email:"'.$email.'")';
$response = json_decode($this->_curl($url, $params), true);
if (isset($response['response']['result']['Contacts']['row']['FL'])){
$data = $response['response']['result']['Contacts']['row']['FL'];
$accountId = $this->_content($data, 'ACCOUNTID');
$url = "https://crm.zoho.com/crm/private/json/Accounts/getRecordById";
$params = 'authtoken='.$this->authToken.'&scope=crmapi&newFormat=2&id='.$accountId;
$response = json_decode($this->_curl($url, $params), true);
if (isset($response['response']['result']['Accounts']['row']['FL'])){
$data = $response['response']['result']['Accounts']['row']['FL'];
$idGlobal = $this->_content($data, 'Account Number');
$this->_zohoAccountToDB($data, $idGlobal);
return $idGlobal;
}
}
}
return "";
} | [
"function searchForPersonByEmail($email) {\n $searchItems = array(\n 'term='.$email,\n \"field=email\",\n \"exact_match=true\"\n );\n $searchString = implode ('&', $searchItems);\n $searchResults = searchForPerson($searchString);\n\n // Person ID of 0 === non-existing user\n $person = array(\"id\" => 0, \"name\" => \"\");\n if ($searchResults[\"success\"]) {\n $emailMatches = $searchResults[\"data\"][\"items\"];\n if (count($emailMatches) > 0) {\n $person = $emailMatches[0][\"item\"];\n }\n }\n return $person;\n }",
"public function getEmployeeByEmail($email) {\n $result = new \\stdClass();\n $result->pass = FALSE;\n\n $all_employees = $this->all();\n if (($all_employees->pass) && isset($all_employees->body->employees)) {\n $employees = reset($all_employees->body->employees);\n if (count($employees) > 0) {\n foreach ($employees as $employee) {\n if ($email == $employee->email) {\n $result->pass = TRUE;\n $result->data = $employee;\n break;\n }\n }\n }\n }\n return $result;\n }",
"public static function emailsEmp(){\n $con = new Conexion();\n $cont = $con->ejecutarConsulta(\"SELECT email from usuarios WHERE ROL = 'ROL_EMP'\");\n $con->cerrarConexion();\n return $cont;\n }",
"public function infoPorEmail($email){ \r\n $consulta = $this->conexion->prepare(\"select idUsuario,nombre,apellido1,apellido2,email,telefono,contrasena,foto FROM \".$this->table.\" WHERE email= :email \" );\r\n $consulta->execute(array('email'=>$email));\r\n $usuario= $consulta->fetchAll();\r\n $this->conexion=null;\r\n return $usuario;\r\n }",
"public function search_user_byEmail()\n {\n $query_search_user = \"select user_id, nom, prenom, email,\n date_de_naissance, photo, description, mdp, completed\n from users where email = '$this->email'\";\n return $this->requete($query_search_user);\n }",
"public function searchEmail($data){ //check email only\n\t\t$wildCardEmail = $data['email'].'%'; //create the wildcard variable\n\t\t$sqlst = \"SELECT user_email FROM users WHERE user_email LIKE :email\";\n\t\t$st = $this->db->prepare($sqlst);\n\t\t$st->execute(array(\":email\"=>$wildCardEmail));\n\t\treturn $st->fetchAll();\n\t}",
"public function getByEmail($email='') {\n\t\t\n\t\t//\tValidate email:\n\t\t\t$email = $this->validate($email, 'EMAIL');\n\t\t\tif ($email === false) { return false;}\n\t\t\t$email =strtolower($email);\n\t\t\n\t\t//\tGet record from user-table:\n\t\t\t$options = array();\n\t\t\t$options['where'] = '`email`=\"'.$email.'\"';\n\t\t\t$records = $this->active_table->select_all($options);\n\t\t\t\n\t\t\t\n\t\t\t$aR = count($records) === 1? $records[0] : false;\n\t\t\tif ($aR == false ) {return false;}\n\t\t\t\n\t\t//\tAdd respond_date:\n\t\t\t$date = new DateTime($aR['updateRequest']);\n\t\t\t$date->add(new DateInterval('PT'.TIMESLOT.'H'));\n\t\t\t$aR['respond_date'] =$date->format('j-M-Y, H:i');\n\t\t\t\n\t\t//\tAdd fullname:\n\t\t\t$full_name = array();\n\t\t\t$name = array_key_exists('firstName', $aR)? trim($aR['firstName'])\t\t: \"\";\n\t\t\tif ( strlen($name) > 0) {\n\t\t\t\t$full_name[] = $name;\n\t\t\t}\n\t\t\t$name = array_key_exists('midName', $aR)? trim($aR['midName'])\t\t: \"\";\n\t\t\tif ( strlen($name) > 0) {\n\t\t\t\t$full_name[] = $name;\n\t\t\t}\n\t\t\t$name = array_key_exists('lastName', $aR)? trim($aR['lastName'])\t\t: \"\";\n\t\t\tif ( strlen($name) > 0) {\n\t\t\t\t$full_name[] = $name;\n\t\t\t}\n\t\t\t$aR['full_name'] = implode(' ',$full_name);\n\t\t\t\n\t\t\treturn $aR;\n\t\t\t\n\t}",
"public function searchEmail(){\n\t\tif(isset($_POST)){\n\t\t\t//the email var is set and not empty\n\t\t\tif(isset($_POST['email']) && $_POST['email'] !=''){\n\t\t\t\t//search for the email using the email (uses a like keyword%)\n\t\t\t\t$searchEmailArray = $this->userModel->searchEmail($_POST);\n\t\t\t\t//this will return emails that match in an array, even array[0]\n\t\t\t\techo json_encode(array('message'=>'email_search', 'result'=>$searchEmailArray));\n\t\t\t}else{\n\t\t\t\techo json_encode(array('message'=>'[\"email\"] must be set and not be empty'));\n\t\t\t}\n\t\t}else{\n\t\t\t// send message that we should be receiving a $_POST\n\t\t\techo json_encode(array('message'=>'use post'));\n\t\t}\n\t}",
"public function getEmployeeForCheckExists($email)\n\t{\n\t\t$result = $this->myPdoObj\n\t\t\t->select('name_employee, mail_employee')\n\t\t\t->table('employee')\n\t\t\t->where(array('mail_employee' => $email), array('='))\n\t\t\t->query()\n\t\t\t->commit();\n\n\t\treturn $result;\n\t}",
"function get_info($email)\n\t{\n\t\tif(! $email)\n\t\t\treturn FALSE;\n\t\t\t\n\t\t$get = $this->db->select('company_id, name AS company_name, registrant_name, registrant_email')\n\t\t\t\t\t\t->where('registrant_email', $email)\n\t\t\t\t\t\t->get('company');\n\t\t\n\t\tif($get && $get->num_rows()>0)\n\t\t{\n\t\t\treturn $get->row_array();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t}",
"function search_employ_by_email($tableName,$email) // searching merchant by email\r\n {\r\n $conn = self::build_connection();\r\n $q = \"select * from \".$tableName .\" WHERE merchant_email='{$email}'\";\r\n $result = $conn->query($q);\r\n self::close_connection($conn);\r\n if($result->num_rows > 0){\r\n return true;\r\n }\r\n else{\r\n return false;\r\n }\r\n }",
"public function getEmail($id,$email);",
"function searchExistingEmail($strEmailAddress = \"\", $strModule = \"Contacts\")\n\t{\n\t\t$GLOBALS['log']->info(\"function::searchExistingContacts(emailaddress:$strEmailAddress)\");\n\t\t\n\t\tif ($strEmailAddress != \"\")\n\t\t{\n\t\t\t$objSearchContact = BeanFactory::getBean($strModule);\n\t\t\t\n\t\t\t$strEmailAddress = trim($strEmailAddress);\n\t\t\t$arrContacts = $objSearchContact->emailAddress->getRelatedId($objSearchContact->db->quote($strEmailAddress), $strModule);\n\t\t\t\n\t\t\t//$GLOBALS['log']->info(\"arrContacts from email address: \" . print_r($arrContacts, true));\n\t\t\t\n\t\t\tif ($arrContacts !== false)\n\t\t\t{\n\t\t\t\t$objContact = BeanFactory::getBean($strModule);\n\t\t\t\t$objContact->retrieve($arrContacts[0]);\n\t\t\t\t\n\t\t\t\t$GLOBALS['log']->info(\"Exisiting $strModule record Sugar ID from email address: \" . $objContact->id);\n\t\t\t\t\n\t\t\t\treturn $objContact;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public function checkEmail(){\n\t\t// $objects of dbHandler class retrieve information from databases\n\t\t$db = new dbHandler();\n\t\t$row_obj = $db->select_Users_email($this->email); \n//\t\t$row_obj = $db->selectQuery(\"users\", $this->email);\n\t\treturn $row_obj;\n\t}",
"function busca_por_email() {\n\t\t// epga o parametro\n\t\t$email = $this->input->post('email');\n\t\t$usu = $this->usuario_modelo->busca_por_email ($email);\n\t\tif($usu){\n\t\t\techo $usu->nome;\n\t\t}\n\n\t}",
"protected function findEmail()\n {\n global $TYPO3_DB;\n $this->email = null;\n $this->recipientList = null;\n\n if (preg_match_all('|Message-ID: <(.*)@.*>|', $this->mailsource, $match)) {\n // The last match is the authcode of the email sent\n $this->authCode = end($match[1]);\n\n // Find the recipientList and email UIDs according to authcode\n $rs = $TYPO3_DB->sql_query(\"\n\t\t\tSELECT tx_newsletter_domain_model_newsletter.recipient_list, tx_newsletter_domain_model_email.uid\n\t\t\tFROM tx_newsletter_domain_model_email\n\t\t\tINNER JOIN tx_newsletter_domain_model_newsletter ON (tx_newsletter_domain_model_email.newsletter = tx_newsletter_domain_model_newsletter.uid)\n\t\t\tINNER JOIN tx_newsletter_domain_model_recipientlist ON (tx_newsletter_domain_model_newsletter.recipient_list = tx_newsletter_domain_model_recipientlist.uid)\n\t\t\tWHERE MD5(CONCAT(tx_newsletter_domain_model_email.uid, tx_newsletter_domain_model_email.recipient_address)) = '$this->authCode' AND recipient_list IS NOT NULL\n\t\t\tLIMIT 1\");\n\n if (list($recipientListUid, $emailUid) = $TYPO3_DB->sql_fetch_row($rs)) {\n $emailRepository = $this->objectManager->get('Ecodev\\\\Newsletter\\\\Domain\\\\Repository\\\\EmailRepository');\n $this->email = $emailRepository->findByUid($emailUid);\n\n $recipientListRepository = $this->objectManager->get('Ecodev\\\\Newsletter\\\\Domain\\\\Repository\\\\RecipientListRepository');\n $this->recipientList = $recipientListRepository->findByUid($recipientListUid);\n }\n }\n }",
"function readByEmail()\n {\n\n // query to read single record\n $query = \"SELECT * FROM \" . $this->table_name . \" r \n WHERE r.email = ? LIMIT 0,1\";\n\n // prepare query statement\n $stmt = $this->conn->prepare($query);\n\n // sanitize\n $this->email = htmlspecialchars(strip_tags($this->email));\n\n // bind id of restaurant to be updated\n $stmt->bindParam(1, $this->email);\n\n // execute query\n $stmt->execute();\n\n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n // set values to object properties\n $this->id = $row['id'];\n $this->name = $row['name'];\n $this->email = $row['email'];\n $this->urlName = $row['urlName'];\n $this->address = $row['address'];\n $this->admin = $row['admin'];\n $this->token = $row['token'];\n }",
"function getUserInfoByEmail($email=null){\n\t\t$CI\t= & get_instance();\n\t\ttry{\n\t\t\tif(!empty($email)){\n\t\t\t\t$result\t\t= $CI->db->where('qw_users.email',$email)->select('qw_users.*')\n\t\t\t\t\t\t->get('qw.qw_users')->row();\n\t\t\t\tif($result){\n\t\t\t\t\treturn $result;\n\t\t\t\t}return false;\n\t\t\t}return false;\n\t\t}catch(Exception\t$ex){\n\t\t\tlog_message('error','Unable to get user info based on user email '.$ex->getMessage());\n\t\t}\n\t}",
"public function getAllDocentesEmail()\n\t{\n\t\t$this->db->select('pe.nombre_persona, pe.apellidos_persona, p.nombre_puesto, pe.id_persona, pe.correo_electr_persona');\n\t\t$this->db->from('PERSONA pe');\n\t\t$this->db->join('PUESTO p', 'pe.id_puesto = p.id_puesto', 'inner');\n\t\t//$this->db->like('pe.apellidos_persona', $ape, 'after');\n\t\t$this->db->where('p.nombre_puesto', 'docente');\n\t\t$this->db->where('pe.estado_persona', true);\n\t\t$query = $this->db->get();\n\t\treturn $query->result_array();\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ gets all the devices names per class and stores it in $allClassesDevicesList | function getAllClassesDevices() {
$this->allClassesDevicesList = array();
$this->getClassesNames();
foreach ($this->classesNamesList as $class) {
$this->getClassDevices($class);
$this->allClassesDevicesList[$class] = $this->classDevicesList;
}
} | [
"public static function getDeviceClassList()\n {\n return DB::table('css_networking_device_class AS dc')\n ->select('dc.id', 'dc.description')\n ->join('css_networking_device_type AS dt', 'dc.id', '=', 'dt.class_id') \n ->where('dt.auto_build_enabled', '=', 1)\n ->groupBy('dc.description')\n ->orderBy('dc.description')\n ->get();\n }",
"abstract public function listDevices();",
"public function GetDeviceClasses()\n {\n return $this->deviceClassManager;\n }",
"public function getAll()\n {\n return $this->devices;\n }",
"public function getAllAvailableDevices ()\n {\n return DeviceMapper::getInstance()->fetchAll();\n }",
"public function get_devices()\n {\n $this->db->from('device');\n $this->db->order_by('name', 'ASC');\n $this->db->join('device__types', 'device__types.id_type = device.device_type');\n $query = $this->db->get();\n return $query->result_array();\n }",
"public function getAll(){\n\t\treturn \\App\\DeviceType::all();\n\t}",
"function get_devices() {\n return $this->devices;\n }",
"public function allDevices()\n {\n // Just to make sure, lets refresh the client\n $this->http->refresh();\n\n return $this->devices;\n }",
"public function getDeviceNames(): array\n {\n return $this->deviceNames;\n }",
"public function getDevices() {\n\t\t$url = \"https://fmipmobile.icloud.com/fmipservice/device/\".$this->username.\"/initClient\";\n\t\tlist($headers, $body) = $this->curlPOST($url, \"\", $this->username.\":\".$this->password);\n\t\t$this->devices = array();\n\t\tfor ($x = 0; $x < sizeof($body[\"content\"]); $x++) {\n\t\t\t$device = $this->generateDevice($body[\"content\"][$x]);\n\t\t\t$this->devices[$device->ID] = $device;\n\t\t}\n\t}",
"final private function _get_devices()\n {\n $devices = array();\n\n // Find USB devices that match: %d-%d\n $entries = $this->_scan_directory(self::PATH_USB_DEVICES, '/^\\d-\\d$/');\n\n if (!empty($entries)) {\n $devices_set_1 = $this->_get_devices_helper($entries);\n if (count($devices_set_1)) {\n $devices[] = $devices_set_1[0];\n }\n }\n\n // Some USB devices are detected in a slightly different way:\n // Find USB devices that match: %d-%d.%d\n $entries2 = $this->_scan_directory(self::PATH_USB_DEVICES, '/^\\d-\\d\\.\\d$/');\n if (!empty($entries2)) {\n $devices_set_2 = $this->_get_devices_helper($entries2);\n if (count($devices_set_2)) {\n $devices[] = $devices_set_2[0];\n }\n }\n\n if (count($devices)) {\n // Create a hashed array of all device nodes that match: /dev/s*\n // XXX: This can be fairly expensive, takes a few seconds to run.\n if (!($ph = popen('/usr/bin/stat -c 0x%t:0x%T:%n /dev/s*', 'r')))\n throw new Engine_Exception(\"Error running stat command\");\n\n $nodes = array();\n $major = '';\n $minor = '';\n\n while (!feof($ph)) {\n $buffer = chop(fgets($ph, 4096));\n\n if (sscanf($buffer, '%x:%x:', $major, $minor) != 2)\n continue;\n\n if ($major == 0)\n continue;\n\n $nodes[\"$major:$minor\"] = substr($buffer, strrpos($buffer, ':') + 1);\n }\n\n if (pclose($ph) != 0) {\n throw new Engine_Exception(\"Error running stat command\");\n }\n\n // Hopefully we can now find the TRUE device name for each\n // storage device found above. Validation continues...\n foreach ($devices as $key => $device) {\n if (!isset($nodes[$device['nodes']])) {\n unset($devices[$key]);\n continue;\n }\n\n // Set the block device\n $devices[$key]['device'] = $nodes[$device['nodes']];\n\n $device_name = basename($nodes[$device['nodes']]);\n\n // Here we are looking for detected partitions\n $partitions = $this->_scan_directory($device['path'] . \"/block/\" . $device_name, '/^' . $device_name . '\\d$/');\n if (! empty($partitions)) {\n foreach($partitions as $partition)\n $devices[$key]['partition'][] = dirname($nodes[$device['nodes']]) . '/' . $partition;\n }\n\n unset($devices[$key]['path']);\n unset($devices[$key]['nodes']);\n }\n }\n return $devices;\n }",
"public function get_usb_devices()\n {\n $out = array();\n $sql = \"SELECT COUNT(CASE WHEN name <> '' AND name IS NOT NULL THEN 1 END) AS count, name \n FROM usb\n LEFT JOIN reportdata USING (serial_number)\n \".get_machine_group_filter().\"\n GROUP BY name\n ORDER BY count DESC\";\n \n foreach ($this->query($sql) as $obj) {\n if (\"$obj->count\" !== \"0\") {\n $obj->name = $obj->name ? $obj->name : 'Unknown';\n $out[] = $obj;\n }\n }\n return $out;\n }",
"public function getKnownDeviceClasses()\n {\n if (array_key_exists(\"knownDeviceClasses\", $this->_propDict)) {\n return $this->_propDict[\"knownDeviceClasses\"];\n } else {\n return null;\n }\n }",
"public function get_pci_devices()\n {\n $out = array();\n $sql = \"SELECT COUNT(CASE WHEN name <> '' AND name IS NOT NULL THEN 1 END) AS count, name \n FROM pci\n LEFT JOIN reportdata USING (serial_number)\n \".get_machine_group_filter().\"\n GROUP BY name\n ORDER BY count DESC\";\n \n foreach ($this->query($sql) as $obj) {\n if (\"$obj->count\" !== \"0\") {\n $obj->name = $obj->name ? $obj->name : 'Unknown';\n $out[] = $obj;\n }\n }\n return $out;\n }",
"public function get_jdisc_device_types()\n {\n return $this->fetch_array('SELECT * FROM devicetypelookup ORDER BY singular;');\n }",
"public function get_devices(){\n $settingsObj = DPSFolioAuthor_Settings::getInstance();\n\t\t $settings = $settingsObj->get_settings();\n return isset($settings[\"devices\"]) ? $settings[\"devices\"] : $this->initial_devices();\n\t\t}",
"public function getEmulatedDevicesList()\n {\n return EmulatedDevice::getList($this->getSetting('emulated_device')->getValue());\n }",
"public function allDevices() {\n return new Device([\n \"iden\" => \"\",\n \"pushable\" => true,\n \"has_sms\" => false\n ], $this->apiKey);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fetch a quota project from the environment variable GOOGLE_CLOUD_QUOTA_PROJECT. Return null if GOOGLE_CLOUD_QUOTA_PROJECT is not specified. | public static function quotaProjectFromEnv()
{
return getenv(self::QUOTA_PROJECT_ENV_VAR) ?: null;
} | [
"public function getQuotaProject()\n {\n if ($this->fetcher instanceof GetQuotaProjectInterface) {\n return $this->fetcher->getQuotaProject();\n }\n\n return null;\n }",
"public function getQuotaProject()\n {\n return $this->quotaProject;\n }",
"function project()\n {\n if (empty(Input::get('projectToken', ''))) {\n return null;\n }\n $projectRepository = app()->make(Knoters\\Repositories\\ProjectRepository::class);\n\n return $projectRepository->findBy(['uuid' => Input::get('projectToken')]);\n }",
"private function detectProjectId()\n {\n if (getenv('GOOGLE_CLOUD_PROJECT')) {\n return getenv('GOOGLE_CLOUD_PROJECT');\n }\n\n if (getenv('GCLOUD_PROJECT')) {\n return getenv('GCLOUD_PROJECT');\n }\n\n throw new ValidationException(\n 'No project ID was provided, ' .\n 'and we were unable to detect a default project ID.'\n );\n }",
"public function getGoogleCloudStorageProjectId() {\n return @$this->attributes['google_cloud_storage_project_id'];\n }",
"function just_get_project_from_request()\n{\n if (!isset($_REQUEST['project'])) {\n json_error_response(['error' => 'Valid project required']);\n return null;\n }\n $projectname = $_REQUEST['project'];\n $projectid = get_project_id($projectname);\n $service = ServiceContainer::getInstance();\n $Project = $service->get(Project::class);\n $Project->Id = $projectid;\n if (!$Project->Exists()) {\n json_error_response(['error' => 'Project does not exist']);\n return null;\n }\n return $Project;\n}",
"function helper_get_current_project() {\n\t\t$t_cookie_name = config_get( 'project_cookie' );\n\n\t\t$t_project_id = gpc_get_cookie( $t_cookie_name, null );\n\n\t\tif ( null === $t_project_id ) {\n\t\t\t$t_project_id = current_user_get_pref( 'default_project' );\n\t\t}\n\n\t\tif ( ! project_exists( $t_project_id ) ||\n\t\t\t 0 == project_get_field( $t_project_id, 'enabled' ) ||\n\t\t\t ! access_has_project_level( VIEWER, $t_project_id ) ) {\n\t\t\t$t_project_id = ALL_PROJECTS;\n\n\t\t}\t\t\n\t\treturn (int)$t_project_id;\n\t}",
"function helper_get_current_project() {\r\n global $g_project_override;\r\n \r\n if ( $g_project_override !== null ) {\r\n return $g_project_override;\r\n }\r\n \r\n\t\t$t_cookie_name = config_get( 'project_cookie' );\r\n\r\n\t\t$t_project_id = gpc_get_cookie( $t_cookie_name, null );\r\n\r\n\t\tif ( null === $t_project_id ) {\r\n\t\t\t$t_pref_row = user_pref_cache_row( auth_get_current_user_id(), ALL_PROJECTS, false );\r\n\t\t\tif ( false === $t_pref_row ) {\r\n\t\t\t\t$t_project_id = ALL_PROJECTS;\r\n\t\t\t} else {\r\n\t\t\t\t$t_project_id = $t_pref_row['default_project'];\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$t_project_id = split( ';', $t_project_id );\r\n\t\t\t$t_project_id = $t_project_id[ count( $t_project_id ) - 1 ];\r\n\t\t}\r\n\r\n\t\tif ( !project_exists( $t_project_id ) ||\r\n\t\t\t ( 0 == project_get_field( $t_project_id, 'enabled' ) ) ||\r\n\t\t\t !access_has_project_level( VIEWER, $t_project_id ) ) {\r\n\t\t\t$t_project_id = ALL_PROJECTS;\r\n\t\t}\r\n\r\n\t\treturn (int)$t_project_id;\r\n\t}",
"function getProject() {\n\t\t// Pokud byl predtim promo naassignovanej projekt\n\t\tif(is_object($this->data->project) || $this->data->project === null) return $this->data->project;\n\t\t\n\t\tif(($cached = $this->fieldCache(\"project\")) !== null) return $cached;\n\t\t\n\t\t$value = $this->context->repository->findAll('vManager\\Modules\\Tickets\\Project')\n\t\t\t->where('[revision] > 0 AND [projectId] = %i', $this->data->project)->fetch();\n\t\t\n\t\tif(!$value) return null;\t\t\n\t\treturn $this->fieldCache(\"project\", $value);\n\t}",
"public function get($projectId, $optParams = array())\n {\n $params = array('projectId' => $projectId);\n $params = array_merge($params, $optParams);\n return $this->call('get', array($params), \"Google_Service_Storagetransfer_GoogleServiceAccount\");\n }",
"protected function _getGlobalProjectId ()\r\n {\r\n $value = Bootstrap::instance()->getSession()->projectId;\r\n return empty($value) ? null : $value;\r\n }",
"public function getProject()\n\t{\n\t\t$key = $this->getProjectId();\n\n\t\tif(empty($key))\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\treturn \\b8\\Store\\Factory::getStore('Project')->getById($key);\n\t}",
"public function get_project(): GP_Project {\n\t\treturn $this->project;\n\t}",
"protected function getProject()\r\n {\r\n $projectManager = $this->getService('cerad.project.repository');\r\n $projectParams = $this->getService('cerad_tourn.project');\r\n $projectEntity = $projectManager->findOneBy(array('hash' => $projectParams->getKey()));\r\n return $projectEntity;\r\n }",
"static function getProjectByName( $projectname ) {\n\t\t$project = new OpenStackNovaProject( $projectname );\n\t\tif ( $project->projectInfo ) {\n\t\t\treturn $project;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"function validate_project($project)\n{\n\tglobal $conf;\n\n\tif (!in_array($project, array_keys($conf['projects']))) {\n\t\tdie('Invalid project');\n\t}\n\treturn $project;\n}",
"public function getProject(): ProjectDescriptor|null\n {\n return $this->project;\n }",
"public function GetProject()\n\t{\n\t\treturn $this->project;\n\t}",
"public function project()\n {\n return $this->environment->project;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Remove group contact | public function removeGroupContact() {
try {
/* Check if for the empty or null parameters */
if (isset($_POST["group_id"]) && isset($_POST["contact_id"])) {
// Get the group id and contact id from POST request to insert or remove
$form_data = array(
':group_id' => $_POST["group_id"],
':contact_id' => $_POST["contact_id"],
);
// Checking data
$check_data = array(
':group_id' => $_POST["group_id"],
':contact_id' => $_POST["contact_id"],
);
// Check for existent contact in Database
$query = "
select id from
tb_group_contact
where group_id = :group_id and contact_id = :contact_id;
";
// Create object to connect to MySQL using PDO
$mysqlPDO = new MySQLPDO();
// Prepare the query
$statement = $mysqlPDO->getConnection()->prepare($query);
// Execute the query with passed parameters
$statement->execute($check_data);
// Get affect rows in associative array
$row = $statement->fetch(PDO::FETCH_ASSOC);
// Check if any affected row
if (!$row) {
$data[] = array('result' => 'Record not found!');
} else {
// Create a SQL query to insert an new contact with all parameters
$query = "
delete from tb_group_contact
where group_id = :group_id and contact_id = :contact_id
";
// Prepare the query
$statement = $mysqlPDO->getConnection()->prepare($query);
// Execute the query with passed parameter token, password and access
$statement->execute($form_data);
// Check if any affected row
if ($statement->rowCount()) {
$data[] = array('result' => '1');
} else {
$data[] = array('result' => 'No operations performed on the database!');
}
}
}
else {
// Check for missing parameters
if (!isset($_POST["group_id"]) && !isset($_POST["contact_id"])) {
$data[] = array('result' => 'Missing all parameters');
} else if (!isset($_POST["group_id"])) {
$data[] = array('result' => 'Missing group_id parameter!');
} else {
$data[] = array('result' => 'Missing contact_id parameter!');
}
}
return $data;
} catch (PDOException $e) {
die("Error message" . $e->getMessage());
}
} | [
"function civicrm_rules_rules_action_remove_from_group($contact, $settings) {\n $contactId = !empty($contact->id) ? $contact->id : $contact->getVar('_contactId');\n if ($contactId) {\n foreach ($settings as $gid) {\n _civicrm_rules_group_contact($contactId, $gid, 'delete');\n }\n return array('contact' => $contact);\n }\n}",
"public function actionRemovecontacts($id) {\n $model = $this->findModel($id);\n $this->checkPermissionByModelsUserId($model->user_id);\n \n //select all group's contacts(frontend/models/Abonent)\n $contacts = $model->getAbonents();\n //optimize data for displaying in view\n foreach ($contacts as $contact) {\n $contact->setFullName();\n }\n \n //check if the form has been submitted and if the $_POST has form data\n if($_SERVER['REQUEST_METHOD'] == 'POST') {\n if(!isset($_POST['abonents'])){\n return $this->redirect(['index']);\n }\n $ids = $_POST['abonents'];\n //update contacns unset group_id\n foreach ($ids as $abonent_id) {\n $abonent = Abonent::findOne(['id' => $abonent_id]);\n $abonent->group_id = '';\n $abonent->save(); \n }\n return $this->redirect(['index']);\n }\n \n return $this->render('contacts', [\n 'contacts' => $contacts,\n 'mode' => 'remove',\n 'model' => $model,\n ]);\n \n }",
"function tdr_remove_from_email_group ( $group_id, $user_email ) {\n\t// Check for Contactology class\n\tif ( ! class_exists( 'Contactology' ) ) {\n\t\t//Require the Contactology base class\n\t\trequire get_template_directory() . '/class.Contactology.php';\n\t}\n\n\t// Get API Key -- default to DigitalBrands API key if not set (Site General Settings)\n\t$contactology_api_key = get_option( 'tdr_email_list_api_key', $default = '91475b8ada42e6336141da18b84168db' );\n\n\t// Start contactology with API key\n\t$c = new Contactology( $contactology_api_key );\n\t$remove_from_group_results = $c->Group_Remove_Contact( $group_id, $user_email );\n\treturn $remove_from_group_results;\n}",
"public function removeContactGroupAction($id_contact, $id_group) {\n\t\t$this->group->id = $id_group;\n\t\t$this->group->id_contact = $id_contact;\n\t\treturn $this->group->removeContactGroup();\n\t}",
"public function removefromgroupAction()\n {\n \t//Don't display a new view\n\t\t$this->_helper->viewRenderer->setNoRender();\n\t\t\n\t\t$itemid = $this->getRequest()->getParam('itemID');\n\t\t\n\t\t$group = GroupNamespace::getCurrentGroup();\n\t\tif (isset($itemid) && isset($group))\n\t\t{\n\t\t\t$item = $group->removeRecord($itemid);\n\t\t\t$item->setGroupID(NULL);\n\t\t\tItemDAO::getItemDAO()->saveItemIdentification($item, $item);\n\t\t}\n }",
"public function DeleteGroup() {\n\t\t\t$this->objGroup->Delete();\n\t\t}",
"function elobbyist_rule_remove_contacts($contacts, $grpid, $rids) { \n $cids = array_keys($contacts);\n \n foreach($cids as $cid) {\n relation_delete($rids[$cid]);\n }\n}",
"function delete_field_group($field_group)\n {\n }",
"function GRP_del($groupName)\n{\n\tCHECK_FW(CC_groupname,$groupName);\n\t$groupId = GRP_getIdByName($groupName);\n\n\t//delete all clients from the group\n\t$sql = \"DELETE FROM `clientgroups` WHERE groupid='$groupId'\";\t\n\tdb_query($sql); //FW ok\n\n\t//delete group\n\t$sql = \"DELETE FROM `groups` WHERE id='$groupId'\";\n\tdb_query($sql); //FW ok\n}",
"public function RemoveImContactFromGroup($request)\n {\n return $this->makeRequest(__FUNCTION__, $request);\n }",
"function remove_from_group($group_id, $contact_ids)\n {\n $group_cache = $this->_fetch_groups();\n $member_attr = $group_cache[$group_id]['member_attr'];\n $group_dn = $group_cache[$group_id]['dn'];\n $del_attrs = array();\n\n if (!is_array($contact_ids)) {\n $contact_ids = explode(',', $contact_ids);\n }\n\n foreach ($contact_ids as $id) {\n $del_attrs[$member_attr][] = self::dn_decode($id);\n }\n\n if (!$this->ldap->mod_del($group_dn, $del_attrs)) {\n $this->set_error(self::ERROR_SAVING, 'errorsaving');\n return 0;\n }\n\n if ($this->cache) {\n $this->cache->remove('groups');\n }\n\n return count($del_attrs[$member_attr]);\n }",
"public function testDeletingGroup()\n {\n $connector = \\Mockery::mock(new Curl());\n $connector->shouldReceive('call')\n ->with(BASE_API_URL . '/' . API_VERSION . '/contacts/groups/2', 'DELETE', array())\n ->once()\n ->andReturn(array(\n 'info' => array(\n 'http_code' => 204,\n 'Content-Type' => 'application/json'\n ),\n 'response' => json_encode(array())\n ));\n \n $client = new Client('abc123', $connector);\n $contact = $client->contact->deleteGroup(2);\n \n $this->assertInternalType('array', $contact);\n }",
"function contacts_delete_groups( $params ) {\n $response = $this->call('contacts/deleteGroups', $params);\n if(empty($response)) return FALSE; // Transmission error\n require_once 'response_objects/generic.class.inc';\n if(!empty( $response->data )) $response->data = new Emfl_Response($response->data);\n return $response;\n }",
"public function fb_delete_group()\n {\n // Make sure that the store has a registered Firebase group\n if (!$this->fb_notification_key) {\n Log::warning(\"FB: Store {$this->code} doesn't have a valid fb_notification_key, ignoring request to delete group from Firebase!\");\n return;\n }\n\n // Deleting all the registered devices deletes the group\n $deviceIds = $this->users->pluck('fb_device_id')->filter(function ($id) {return isset($id);});\n\n // Perform the Firebase request with the required parameters\n $response = fb_curl_post([\n \"operation\" => \"remove\",\n \"notification_key_name\" => $this->code,\n \"notification_key\" => $this->fb_notification_key,\n \"registration_ids\" => $deviceIds,\n ]);\n\n // Log result of the Firebase request\n if ($response && !isset($response->error)) {\n Log::info(\"FB: Firebase group deletion for store {$this->code} completed with response \" . print_r($response, true));\n } else {\n Log::error(\"FB: Firebase group deletion for store {$this->code} failed with response \" . print_r($response, true));\n }\n }",
"function bbp_remove_group_id_from_forum($forum_id = 0, $group_id = 0)\n{\n}",
"public static function delete()\r\n {\r\n if(!self::user()->hasPerm('groups_delete'))\r\n Json::printError('You are not allowed for the requested action!');\r\n $val = \\CAT\\Helper\\Validate::getInstance();\r\n $id = $val->sanitizePost('id');\r\n if(!\\CAT\\Helper\\Groups::exists($id))\r\n Json::printError('No such group!');\r\n $group = \\CAT\\Groups::getInstance()->getGroup($id);\r\n if($group['builtin']=='Y')\r\n Json::printError('Built-in elements cannot be removed!');\r\n $res = \\CAT\\Helper\\Groups::removeGroup($id);\r\n Base::json_result($res,($res?'':'Failed!'),($res?true:false));\r\n }",
"public function group_del_contact($group,$contact_dn){\n \n // Find the parent dn\n $group_info=$this->group_info($group,array(\"cn\"));\n if ($group_info[0][\"dn\"]===NULL){ return (false); }\n $group_dn=$group_info[0][\"dn\"];\n \n $del=array();\n $del[\"member\"] = $contact_dn;\n \n $result=@ldap_mod_del($this->_conn,$group_dn,$del);\n if ($result==false){ return (false); }\n return (true);\n }",
"private function deleteGroup()\n {\n try\n {\n $request = $_REQUEST;\n\n if( !isset($request['group_id']) || $request['group_id']==\"\" )\n throw_error_msg(\"group id not provided\");\n \n if( !is_numeric($request['group_id']) )\n throw_error_msg(\"invalid group id\");\n\n $id = (int)$request['group_id'];\n\n if(!userid())\n throw_error_msg(lang(\"you_not_logged_in\"));\n\n global $cbgroup;\n\n $cbgroup->delete_group($id);\n\n if( error() )\n {\n throw_error_msg(error('single')); \n }\n\n if( msg() )\n {\n $data = array('code' => \"200\", 'status' => \"success\", \"msg\" => 'group deleted successfully', \"data\" => array());\n $this->response($this->json($data));\n } \n }\n catch(Exception $e)\n {\n $this->getExceptionDelete($e->getMessage());\n }\n }",
"function deletegroupAction() {\n\n $groupId = $this->getRequest()->getParam('groupId');\n $em = Zend_Registry::getInstance()->entitymanager;\n if(isset($groupId) && $groupId != \"\") {\n $groupObj = $em->find('TGroup',$groupId);\n $em->remove($groupObj);\n $em->flush();\n $this->_helper->redirector('index');\n }\n\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The DeleteVpnConnection operation is asynchronous. After you send the request, the system returns a request ID. However, the operation is still being performed in the system background. You can call the [DescribeVpnGateway](~~73720~~) operation to query the status of a VPN gateway. If the VPN gateway is in the updating state, the IPsecVPN connection is being deleted. If the VPN gateway is in the active state, the IPsecVPN connection is deleted. You cannot repeatedly call DeleteVpnConnection to delete an IPsecVPN connection from the same VPN gateway within the specified period of time. > After an IPsecVPN connection between a virtual private cloud (VPC) and a data center is deleted, the communication between the VPC and data center is interrupted. | public function deleteVpnConnection($request)
{
$runtime = new RuntimeOptions([]);
return $this->deleteVpnConnectionWithOptions($request, $runtime);
} | [
"public function deleteVpnGateway($request)\n {\n if (!$request instanceof Amazon_EC2_Model_DeleteVpnGatewayRequest) {\n require_once ('Amazon/EC2/Model/DeleteVpnGatewayRequest.php');\n $request = new Amazon_EC2_Model_DeleteVpnGatewayRequest($request);\n }\n \n require_once ('Amazon/EC2/Model/DeleteVpnGatewayResponse.php');\n return Amazon_EC2_Model_DeleteVpnGatewayResponse::fromXML($this->_invoke($this->_convertDeleteVpnGateway($request)));\n}",
"public function deleteVpnGateway($request)\n {\n $runtime = new RuntimeOptions([]);\n\n return $this->deleteVpnGatewayWithOptions($request, $runtime);\n }",
"public function detachVpnGateway($request);",
"public function detachVpnGateway($request) \n {\n require_once ('Amazon/EC2/Model/DetachVpnGatewayResponse.php');\n return Amazon_EC2_Model_DetachVpnGatewayResponse::fromXML($this->_invoke('DetachVpnGateway'));\n }",
"public function detachVpnGateway($request)\n {\n if (!$request instanceof Amazon_EC2_Model_DetachVpnGatewayRequest) {\n require_once ('Amazon/EC2/Model/DetachVpnGatewayRequest.php');\n $request = new Amazon_EC2_Model_DetachVpnGatewayRequest($request);\n }\n \n require_once ('Amazon/EC2/Model/DetachVpnGatewayResponse.php');\n return Amazon_EC2_Model_DetachVpnGatewayResponse::fromXML($this->_invoke($this->_convertDetachVpnGateway($request)));\n}",
"public function deleteSslVpnServer($request)\n {\n $runtime = new RuntimeOptions([]);\n\n return $this->deleteSslVpnServerWithOptions($request, $runtime);\n }",
"public function DescribeVpnConnections($vpnConnection = null)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t$response = $this->EC2SoapClient->DescribeVpnConnections($vpnConnection);\r\n\t\t\t\t\r\n\t\t\t\tif ($response instanceof SoapFault)\r\n\t\t\t\t\tthrow new Exception($response->faultstring, E_ERROR);\r\n\t\t\t}\r\n\t\t\tcatch (SoapFault $e)\r\n\t\t\t{\r\n\t\t\t\tthrow new Exception($e->getMessage(), E_ERROR);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn $response;\r\n\t\t}",
"private function _convertDeleteVpnGateway($request) {\n \n $parameters = array();\n $parameters['Action'] = 'DeleteVpnGateway';\n if ($request->isSetVpnGatewayId()) {\n $parameters['VpnGatewayId'] = $request->getVpnGatewayId();\n }\n\n return $parameters;\n }",
"function p2p_delete_connection( $p2p_id ) {\n\tglobal $wpdb;\n\n\tif ( empty( $p2p_id ) )\n\t\treturn 0;\n\n\t$p2p_ids = array_map( 'absint', (array) $p2p_id );\n\n\tdo_action( 'p2p_delete_connections', $p2p_ids );\n\n\t$where = \"WHERE p2p_id IN (\" . implode( ',', $p2p_ids ) . \")\";\n\n\t$count = $wpdb->query( \"DELETE FROM $wpdb->p2p $where\" );\n\t$wpdb->query( \"DELETE FROM $wpdb->p2pmeta $where\" );\n\n\treturn $count;\n}",
"public function deleteVpcPeerConnectionWithOptions($request, $runtime)\n {\n Utils::validateModel($request);\n $body = [];\n if (!Utils::isUnset($request->clientToken)) {\n $body['ClientToken'] = $request->clientToken;\n }\n if (!Utils::isUnset($request->dryRun)) {\n $body['DryRun'] = $request->dryRun;\n }\n if (!Utils::isUnset($request->force)) {\n $body['Force'] = $request->force;\n }\n if (!Utils::isUnset($request->instanceId)) {\n $body['InstanceId'] = $request->instanceId;\n }\n $req = new OpenApiRequest([\n 'body' => OpenApiUtilClient::parseToMap($body),\n ]);\n $params = new Params([\n 'action' => 'DeleteVpcPeerConnection',\n 'version' => '2022-01-01',\n 'protocol' => 'HTTPS',\n 'pathname' => '/',\n 'method' => 'POST',\n 'authType' => 'AK',\n 'style' => 'RPC',\n 'reqBodyType' => 'formData',\n 'bodyType' => 'json',\n ]);\n\n return DeleteVpcPeerConnectionResponse::fromMap($this->callApi($params, $req, $runtime));\n }",
"public function createVpnConnection($request);",
"public function getVpnConnection() \n {\n return $this->_fields['VpnConnection']['FieldValue'];\n }",
"public function deleteNatGateway($request)\n {\n $runtime = new RuntimeOptions([]);\n\n return $this->deleteNatGatewayWithOptions($request, $runtime);\n }",
"public function delete($project, $region, $vpnTunnel, $optParams = array())\n {\n $params = array('project' => $project, 'region' => $region, 'vpnTunnel' => $vpnTunnel);\n $params = array_merge($params, $optParams);\n return $this->call('delete', array($params), \"Forminator_Google_Service_Compute_Operation\");\n }",
"public function delete($project, $region, $vpnTunnel, $optParams = array())\n {\n $params = array('project' => $project, 'region' => $region, 'vpnTunnel' => $vpnTunnel);\n $params = array_merge($params, $optParams);\n return $this->call('delete', array($params), \"Google_Service_Compute_Operation\");\n }",
"public function createVpnConnection($request)\n {\n if (!$request instanceof Amazon_EC2_Model_CreateVpnConnectionRequest) {\n require_once ('Amazon/EC2/Model/CreateVpnConnectionRequest.php');\n $request = new Amazon_EC2_Model_CreateVpnConnectionRequest($request);\n }\n \n require_once ('Amazon/EC2/Model/CreateVpnConnectionResponse.php');\n return Amazon_EC2_Model_CreateVpnConnectionResponse::fromXML($this->_invoke($this->_convertCreateVpnConnection($request)));\n}",
"function deleteConnectionRecord($connection_id) {\n $hn = 'db715263433.db.1and1.com';\n $db = 'db715263433';\n $un = 'dbo715263433';\n $pw = '1Lovecandy!';\n $conn = new mysqli($hn, $un, $pw, $db);\n if ($conn->connect_error) die($conn->connect_error);\n $query = \"DELETE FROM connections WHERE connection_id=$connection_id;\";\n return $conn->query($query);\n}",
"public function testConnectionsDelete()\n {\n $api = new MockManagementApi( [ new Response( 204 ) ] );\n\n $id = 'con_testConnection10';\n $api->call()->connections()->delete($id);\n\n $this->assertEquals( 'DELETE', $api->getHistoryMethod() );\n $this->assertEquals( 'https://api.test.local/api/v2/connections/'.$id, $api->getHistoryUrl() );\n $this->assertEmpty( $api->getHistoryQuery() );\n\n $headers = $api->getHistoryHeaders();\n $this->assertEquals( 'Bearer __api_token__', $headers['Authorization'][0] );\n $this->assertEquals( self::$expectedTelemetry, $headers['Auth0-Client'][0] );\n }",
"public function deleteDhcpOptions($request);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the Fully Qualified Structural Element Name (FQSEN) for this element. | public function setFullyQualifiedStructuralElementName(Fqsen $name): void; | [
"public function setFullyQualifiedStructuralElementName(Fqsen $name): void\n {\n $this->fqsen = $name;\n }",
"public function asFQSEN() : FQSEN\n {\n if (!empty($this->fqsen)) {\n return $this->fqsen;\n }\n\n return parent::asFQSEN();\n }",
"public function setFullyQualifiedName($fqn)\n\t{\n\t\t$this->_fullyQualifiedName = (string)$fqn;\n\t}",
"public function setFullyQualifiedName($fqn)\n\t{\n\t\t$this->_fullyQualifiedName = (string)$fqn;\n\n\t\tif($fqn == '')\n\t\t{\n\t\t\t$path = $this->_name;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$path = $fqn.'['.$this->_name.']';\n\t\t}\n\n\t\tforeach($this->_wrappers as $i => $wrapper)\n\t\t{\n\t\t\t$wrapper->setSuperiorQualifiedName($path.'['.$i.']');\n\t\t}\n\t}",
"public function asFQSEN(): FQSEN\n {\n return $this->fqsen ?? parent::asFQSEN();\n }",
"public function set_name_sef($value) {\r\n data::add(\"name_sef\", $this->name !== \"\" ? sef_link($this->name) : NODATA, $this->table_fields);\r\n }",
"public function setFullFieldName() {\n\t\t$this->fullFieldName = $this->buildFullFieldName($this->kickstarterFieldConfiguration['fieldName']);\n }",
"public function getRealDefiningFQSEN()\n {\n return $this->getDefiningFQSEN();\n }",
"protected function setRfcString()\n {\n if ($this->getName() === null) {\n $rfcName = $this->getAddress();\n } else {\n $rfcName = $this->getName();\n $rfcName.= ' <' . $this->getAddress() . '>';\n }\n\n $this->rfcString = $rfcName;\n }",
"public function asPropertyFQSENString(): string\n {\n return $this->getClassFQSEN()->__toString() .\n ($this->isStatic() ? '::$' : '->') .\n $this->name;\n }",
"function setName($name)\n\t{\n\t\t$this->elementName=$name;\n\t}",
"public function setNameEn($nameEn) {\n\t\t$this->nameEn = $nameEn;\n\t}",
"final public function getQualifiedName() {\n\t\t$chunks = array(\n\t\t\t$this->getAcronym()->getFieldValue(),\n\t\t\t$this->getName()->getFieldValue() );\n\n\t\t$qname = implode(' - ', array_filter($chunks));\n\t\treturn str_replace('<nop>', '', $qname);\n\t}",
"function expandQname($qname){\n\t\t// get element prefix\n\t\tif(strpos($qname,':') && !ereg('^http://',$qname)){\n\t\t\t// get unqualified name\n\t\t\t$name = substr(strstr($qname,':'),1);\n\t\t\t// get ns prefix\n\t\t\t$prefix = substr($qname,0,strpos($qname,':'));\n\t\t\tif(isset($this->namespaces[$prefix])){\n\t\t\t\treturn $this->namespaces[$prefix].':'.$name;\n\t\t\t} else {\n\t\t\t\treturn $qname;\n\t\t\t}\n\t\t} else {\n\t\t\treturn $qname;\n\t\t}\n\t}",
"public function setNameEn($name_en)\n {\n $this->setName(sprintf(\"en:%s;fr:%s\", $name_en, $this->getNameFr()));\n }",
"public function setFirstName($fname)\n {\n # Check if the passed value is empty.\n if (!empty($fname)) {\n # Strip slashes and decode any html entities.\n $fname = html_entity_decode(stripslashes($fname), ENT_COMPAT, 'UTF-8');\n # Set the data member.\n $this->fname = trim($fname);\n } else {\n # Explicitly set the data member to NULL.\n $this->fname = null;\n }\n }",
"public function getFQFN()\n {\n return strtolower(\"{$this->getNamespace()}\\\\$this->name\");\n }",
"public function getQualifiedName(): string\n {\n return $this->namespace.'.'.$this->name;\n }",
"function SetFromName() {\n\tglobal $fromName, $fromNameThem, $fromNameThemField;\n\n\t$fn = \"\";\n\n\t// If we want to use the sender's name as the From Name, parse all name-{fields}\n\tif ($fromNameThem) {\n\t\t$fn = $fromNameThemField;\n\n\t\t// Extract variable names from the name field\n\t\tpreg_match_all(\"/\\{([a-zA-Z0-9_-]+)\\}/\", $fn, $nameMatches);\n\n\t\t// Loop through all variables of the name field\n\t\tforeach($nameMatches[1] as $val) {\n\t\t\t// Try to replace all variables with the corresponding postvars (if they exist, otherwise it'll make it empty)\n\t\t\t$fn = str_replace(\"{\" . $val . \"}\", (isset($_POST[$val]) ? $_POST[$val] : \"\"), $fn);\n\t\t}\n\t}\n\n\t// Double check if fromName isn't empty, otherwise fill it with the predefined name\n\t$fn = trim($fn);\n\t$fn = ($fn ? $fn : $fromName);\n\t$fn = preg_replace('/([\"“”‘’„”«»]|")/', \"\", $fn, -1);\n\n\treturn $fn;\n}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Rewrites Blade structure closings into PHP structure closings. | protected static function compile_structure_closings($value)
{
$pattern = '/(\s*)@(endif|endforeach|endfor|endwhile)(\s*)/';
return preg_replace($pattern, '$1<?php $2; ?>$3', $value);
} | [
"public function blade()\n {\n $raw = str_replace('.blade.php', '', $this->filepath);\n $raw = str_replace('/', '.', $raw);\n $raw = str_replace('views.', '', $raw);\n return $raw;\n }",
"public function printFormTagClosing()\n {\n ?>\n </form>\n <?php\n}",
"protected function bladeExtensions()\n {\n Blade::extend(function ($view, $compiler) {\n if (preg_match(self::LM_ATTRS_PATTERN, $view)) {\n \\Log::debug(\"laravel-menu: @lm-attrs/@lm-endattrs is deprecated. Please switch to @lm_attrs and @lm_endattrs\");\n }\n return preg_replace(self::LM_ATTRS_PATTERN, self::LM_ATTRS_REPLACE, $view);\n });\n\n Blade::extend(function ($view, $compiler) {\n return preg_replace(self::LM_ENDATTRS_PATTERN, self::LM_ENDATTRS_REPLACE, $view);\n });\n }",
"function crmpress_structure_end() {\n\n\techo '</section><!--end #wrapper-->'; // HTML 5 section tag\n\twp_footer(); // Output this so plugins and other people don't get in a tizzy\n\techo '</body><!--end body-->';\n\n\tdo_action( 'crmpress_after_html' );\n\n}",
"private function addLoopDirectives(BladeCompiler $blade)\n {\n $blade->extend(function ($value) {\n $pattern = '/(?<!\\\\w)(\\\\s*)@loop(?:\\\\s*)\\\\((.*)(?:\\\\sas\\\\s)([^)]*)\\\\)/';\n $replacement = <<<'EOT'\n$1<?php\n$loop = app('blade.loop')->newLoop($2);\nforeach($loop->getItems() as $3):\n $loop = app('blade.loop')->loop();\n?>\nEOT;\n return preg_replace($pattern, $replacement, $value);\n });\n\n $blade->extend(function ($value) {\n $pattern = '/(?<!\\\\w)(\\\\s*)@endloop(\\\\s*)/';\n $replacement = <<<'EOT'\n$1<?php\nendforeach;\napp('blade.loop')->endLoop($loop);\n?>$2\nEOT;\n return preg_replace($pattern, $replacement, $value);\n });\n\n return $blade;\n }",
"protected function compileEndphp()\n {\n return ' ?>';\n }",
"public static function updateBladeViews()\n {\n if (!File::isDirectory(resource_path('views/buefy'))) {\n File::makeDirectory(resource_path('views/buefy'));\n } else {\n File::cleanDirectory(resource_path('views/buefy'));\n }\n\n File::makeDirectory(resource_path('views/buefy/layouts'));\n File::makeDirectory(resource_path('views/buefy/shared'));\n\n copy(__DIR__ . '/stubs/views/layouts/app.blade.php', resource_path('views/buefy/layouts/app.blade.php'));\n copy(__DIR__ . '/stubs/views/shared/bulma-nav.blade.php', resource_path('views/buefy/shared/bulma-nav.blade.php'));\n copy(__DIR__ . '/stubs/views/welcome.blade.php', resource_path('views/buefy/welcome.blade.php'));\n\n static::$command->info('Blade View Directory: resources/views/buefy');\n }",
"public static function compileEndOnce()\n {\n /** @var \\Illuminate\\View\\Compilers\\BladeCompiler $instance */\n return $instance->compileEndOnce();\n }",
"public function closeTag()\n {\n return '</form> </div></div>';\n }",
"public function sideclose(){\n\t\t\techo '\n </div>\n <!--/.Sidebar-->\n </div>\n </div>\n <!--/.Main layout-->\n\n </main>\n';\n\t\t}",
"protected static function compile_structure_openings($value)\n\t{\n\t\t$pattern = '/(\\s*)@(if|elseif|foreach|for|while)(\\s*\\(.*\\))/';\n\n\t\treturn preg_replace($pattern, '$1<?php $2$3: ?>', $value);\n\t}",
"public function registerBlade()\n {\n // Extend Blade\n $blade = $this->app['view']->getEngineResolver()->resolve('blade')->getCompiler();\n if (!method_exists($blade, 'directive')) {\n return;\n }\n\n $blade->directive('cache', function($expression) {\n $expression = rtrim($expression, ')');\n\n return '<?php echo Flatten\\\\Facades\\\\Flatten::section' .$expression. ', function() { ?>';\n });\n\n $blade->directive('endcache', function() {\n return '<?php }); ?>';\n });\n }",
"protected function compileEndforeach()\n {\n return $this->phpTag . 'endforeach; $this->popLoop(); $loop = $this->getFirstLoop(); ?>';\n }",
"public function registerBladeDirectives ()\n {\n Blade::directive('define', function($expression) {\n return \"<?php {$expression}; ?>\";\n });\n }",
"public function close()\n\t{\n\t\t$this->blocks[array_pop($this->openBlocks)] = ob_get_clean();\n\t}",
"public function renderClosingFormatTags(): string {\n $result = \"\";\n /** @var AbstractFormat $format */\n foreach (array_reverse($this->formats, true) as $format) {\n $result .= $format->renderClosingTag();\n }\n return $result;\n }",
"function _blockSplit()\n\t{\n\t\t// the XHTML to return\n\t\t$xhtml = '';\n\t\t\n\t\t// if not using automated layout, stop now.\n\t\tif (! $this->layout) {\n\t\t\treturn $xhtml;\n\t\t}\n\t\t\n\t\t// not already in a block, so don't bother.\n\t\tif (! $this->_inBlock) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// end any group we might already be in\n\t\tif ($this->_inGroup) {\n\t\t\t$xhtml .= $this->group('end');\n\t\t}\n\t\t\n\t\t// end the current block and start a new one\n\t\tswitch ($this->_blockType) {\n\t\t\n\t\tcase 'row':\n\t\t\t$xhtml .= '</tr>';\n\t\t\t$xhtml .= $this->_tag('tr');\n\t\t\tbreak;\n\t\t\n\t\tcase 'col':\n\t\t\t$xhtml .= '</table>';\n\t\t\t$xhtml .= $this->_tag('table');\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\t// done!\n\t\treturn $xhtml;\n\t}",
"private function bladeDirectives()\n {\n $this->app->singleton('view', function ($app) {\n $factory = new ViewFactory($app['view.engine.resolver'], $app['view.finder'], $app['events']);\n $factory->setContainer($app);\n $factory->share('app', $app);\n\n return $factory;\n });\n\n Blade::directive('once', function () {\n $id = (string) Str::uuid();\n\n return '<?php if (! $__env->hasRenderedOnce(\"'.$id.'\")): $__env->markAsRenderedOnce(\"'.$id.'\"); ?>';\n });\n\n Blade::directive('endonce', function () {\n return '<?php endif; ?>';\n });\n }",
"public function closeTag()\n {\n return '</form>';\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if HTTP request to $url results in 403 forbidden response. Method returns: true if HTTP request to $url returns HTTP status 403. false if HTTP request to $url returns HTTP status 200 and response body is equal to $body (if given) or 404 is returned (meaning file does not exist, but access is not forbidden). null, in all other cases: especially if HTTP request to $url fails or other HTTP status than 200, 403 or 404 is returned. Null is also returned for HTTP status 200 if response body is different than $body (if given). | public static function isAccessToUrlForbidden(string $url, ?string $body = null): ?bool
{
// Try to get provided URL. Use HEAD request for simplicity if response body is of no interest.
$response = \is_string($body) ? wp_remote_get($url) : wp_remote_head($url);
switch (wp_remote_retrieve_response_code($response)) {
case 200:
// Status suggests that URL can be accessed, but check response body too if given.
return \is_string($body) ? ((wp_remote_retrieve_body($response) === $body) ? false : null) : false;
case 403:
// Status suggests that access to URL is forbidden.
return true;
case 404:
// Status suggests that no resource has been found, but access to URL is not forbidden.
return false;
default:
// Otherwise assume nothing.
return null;
}
} | [
"public static function statusForbidden() {\n $aStatus = drupal_get_http_header(\"status\");\n if ($aStatus == '403 Forbidden') {\n return true;\n }\n }",
"public function testThatAOnlineHostWithBadUrlReturnsNotA200()\n {\n $url = 'http://www.google.com/ughhhh.htm';\n $status = $this->checker->check($url);\n\n $this->assertTrue($status->isRespondingButNotOk());\n $this->assertNotEquals($status->getStatusCode(), 200);\n }",
"protected function __volatile_get_is_forbidden()\n\t{\n\t\treturn $this->status == 403;\n\t}",
"private function checkUrlStatus()\n {\n $request = curl_init($this->url);\n\n curl_setopt($request, CURLOPT_HEADER, true);\n curl_setopt($request, CURLOPT_NOBODY, true);\n curl_setopt($request, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($request, CURLOPT_TIMEOUT, 10);\n\n curl_exec($request);\n $httpCode = curl_getinfo($request, CURLINFO_HTTP_CODE);\n curl_close($request);\n\n if ($httpCode >= 200 && $httpCode < 400) {\n return true;\n }\n\n return false;\n }",
"function http_test_existance($url) {\r\n return (($fp = @fopen($url, 'r')) === false) ? false : @fclose($fp);\r\n }",
"public static function isForbidden(){}",
"public function isForbidden(): bool\n {\n return $this->getStatusCode() === 403;\n }",
"public function isForbidden()\n {\n return 403 === $this->getStatusCode();\n }",
"public function isForbidden()\n {\n return $this->getStatusCode() === 403;\n }",
"public function isForbidden()\n\t{\n\t\treturn 403 === $this->statusCode;\n\t}",
"static function remoteURLHeaderCheck( $url ) {\n\t\tif ( strpos( @get_headers( $url )[0] , '404 Not Found' ) == false ) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"function isUrlExist($url) {\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_NOBODY, true);\n curl_exec($ch);\n $code = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n\n if ($code == 200) {\n $status = true;\n } else {\n $status = false;\n }\n curl_close($ch);\n return $status;\n }",
"function url_exists(string $url) : bool\n {\n return get_http_response_code($url) < 400;\n }",
"public function isForbidden();",
"function _bellcom_check_if_file_in_url_exists($file_url) {\n $file_headers = @get_headers($file_url);\n\n if ($file_headers[0] == 'HTTP/1.1 404 Not Found') {\n return FALSE;\n }\n else {\n return TRUE;\n }\n}",
"public function is_404() {}",
"public function cannotGetFalse()\n {\n $response = $this->get(\"/api/falseurl\");\n\n $response->assertStatus(404);\n }",
"function get_response( $url ) {\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);\n\n // if it returns a 403 it will return no $output\n curl_setopt($ch, CURLOPT_FAILONERROR, 1);\n $output = curl_exec($ch);\n curl_close($ch);\n return $output;\n}",
"public function isFileExistsRemotely()\n {\n // Try to get the HTTP headers of the file at the specified URL\n try {\n $this->guzzle->head($this->fileUrl);\n\n // If the file exists, return true\n return true;\n } catch (ClientException $client_exception) {\n // If the file does not exist, return false\n return false;\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
load emoji files return array | private function loadEmoji($path)
{
$files = [];
if (is_dir($path)) {
$basename = basename($path);
$dirs = opendir($path);
if ($dirs) {
while (($file = readdir($dirs)) !== false) {
if ($file !== '.' && $file !== '..') {
if (is_dir($path . DIRECTORY_SEPARATOR . $file)) {
$files[$file] = call_user_func_array([$this,'loadEmoji'], [$path . DIRECTORY_SEPARATOR . $file]);
} else {
preg_match('/\.(gif|jpg|png)/i', $file) && $files[] = $path . DIRECTORY_SEPARATOR . $file;
}
}
}
closedir($dirs);
}
}
return $files;
} | [
"function read_file()\n{\n\t// Read the htm file\n\t$input = file_get_contents(\"emoji_cheat_sheet.htm\");\n\t// Create an array of all words of the file. (breaking from spaces)\n\t$array = explode(\" \",$input);\n\t// Getting the match from regex to fetch only the links to image files. This has to be suitably modified by seeing the source file of HTML in case we want to use for other purposes.\n\t$reg = preg_grep('/data-src=\"graphics\\/emojis\\//',$array);\n\t// Applying function trimming to each of the member of the array.\n\t$reg = array_map('trimming',$reg);\n}",
"private function obtainTwemojiIndex()\n {\n $twemojiIndex = file_get_contents(__DIR__ . '/twemoji-index.json');\n $twemojiIndex = json_decode($twemojiIndex, true);\n\n $this->twemojiIndex = [];\n\n foreach ($twemojiIndex as $twemoji) {\n $this->twemojiIndex[':' . $twemoji['name'] . ':'] = [\n 'unicode' => $twemoji['unicode'],\n 'description' => $twemoji['description'],\n ];\n }\n }",
"function load_internal_letters_emoticons($text)\r\n \t {\r\n \t if(file_exists(LTChatTemplateSystemPath.\"tpl_emoticons.txt\"))\r\n \t {\r\n\t\t $tpl_emoticons = file(LTChatTemplateSystemPath.\"tpl_emoticons.txt\");\r\n\t\t foreach ($tpl_emoticons as $line)\r\n\t\t {\r\n\t\t \t$lines = explode(\"\\t\",$line);\r\n\t\t \tif(count($lines) <2) continue;\r\n\r\n\t\t \t$from = htmlspecialchars($lines[0]);\r\n\t\t \t$letter[$from] = str_replace(\"#path#\",\"./emoticons/smiles/\".$lines[count($lines)-1],LTChat_emotStyle);\r\n\t\t }\r\n \t }\r\n \t return $out = strtr($text, $letter);\r\n \t }",
"public static function All()\n {\n return Emoji::findAll();\n }",
"function ArrayEmojis(){ \n\treturn array(array('iOS2' => '','iOS5' => '😄','iOS7' => '','Hex' => '1F604'), array('iOS2' => '','iOS5' => '😃','iOS7' => '','Hex' => '1F603'), array('iOS2' => '','iOS5' => '😀','iOS7' => '','Hex' => '1F600'), array('iOS2' => '','iOS5' => '😊','iOS7' => '','Hex' => '1F60A'), array('iOS2' => '','iOS5' => '☺','iOS7' => '☺️','Hex' => '263A'), array('iOS2' => '','iOS5' => '😉','iOS7' => '','Hex' => '1F609'), array('iOS2' => '','iOS5' => '😍','iOS7' => '','Hex' => '1F60D'), array('iOS2' => '','iOS5' => '😘','iOS7' => '','Hex' => '1F618'), array('iOS2' => '','iOS5' => '😚','iOS7' => '','Hex' => '1F61A'), array('iOS2' => '','iOS5' => '😗','iOS7' => '','Hex' => '1F617'), array('iOS2' => '','iOS5' => '😙','iOS7' => '','Hex' => '1F619'), array('iOS2' => '','iOS5' => '😜','iOS7' => '','Hex' => '1F61C'), array('iOS2' => '','iOS5' => '😝','iOS7' => '','Hex' => '1F61D'), array('iOS2' => '','iOS5' => '😛','iOS7' => '','Hex' => '1F61B'), array('iOS2' => '','iOS5' => '😳','iOS7' => '','Hex' => '1F633'), array('iOS2' => '','iOS5' => '😁','iOS7' => '','Hex' => '1F601'), array('iOS2' => '','iOS5' => '😔','iOS7' => '','Hex' => '1F614'), array('iOS2' => '','iOS5' => '😌','iOS7' => '','Hex' => '1F60C'), array('iOS2' => '','iOS5' => '😒','iOS7' => '','Hex' => '1F612'), array('iOS2' => '','iOS5' => '😞','iOS7' => '','Hex' => '1F61E'), array('iOS2' => '','iOS5' => '😣','iOS7' => '','Hex' => '1F623'), array('iOS2' => '','iOS5' => '😢','iOS7' => '','Hex' => '1F622'), array('iOS2' => '','iOS5' => '😂','iOS7' => '','Hex' => '1F602'), array('iOS2' => '','iOS5' => '😭','iOS7' => '','Hex' => '1F62D'), array('iOS2' => '','iOS5' => '😪','iOS7' => '','Hex' => '1F62A'), array('iOS2' => '','iOS5' => '😥','iOS7' => '','Hex' => '1F625'), array('iOS2' => '','iOS5' => '😰','iOS7' => '','Hex' => '1F630'), array('iOS2' => '','iOS5' => '😅','iOS7' => '','Hex' => '1F605'), array('iOS2' => '','iOS5' => '😓','iOS7' => '','Hex' => '1F613'), array('iOS2' => '','iOS5' => '😩','iOS7' => '','Hex' => '1F629'), array('iOS2' => '','iOS5' => '😫','iOS7' => '','Hex' => '1F62B'), array('iOS2' => '','iOS5' => '😨','iOS7' => '','Hex' => '1F628'), array('iOS2' => '','iOS5' => '😱','iOS7' => '','Hex' => '1F631'), array('iOS2' => '','iOS5' => '😠','iOS7' => '','Hex' => '1F620'), array('iOS2' => '','iOS5' => '😡','iOS7' => '','Hex' => '1F621'), array('iOS2' => '','iOS5' => '😤','iOS7' => '','Hex' => '1F624'), array('iOS2' => '','iOS5' => '😖','iOS7' => '','Hex' => '1F616'), array('iOS2' => '','iOS5' => '😆','iOS7' => '','Hex' => '1F606'), array('iOS2' => '','iOS5' => '😋','iOS7' => '','Hex' => '1F60B'), array('iOS2' => '','iOS5' => '😷','iOS7' => '','Hex' => '1F637'), array('iOS2' => '','iOS5' => '😎','iOS7' => '','Hex' => '1F60E'), array('iOS2' => '','iOS5' => '😴','iOS7' => '','Hex' => '1F634'), array('iOS2' => '','iOS5' => '😵','iOS7' => '','Hex' => '1F635'), array('iOS2' => '','iOS5' => '😲','iOS7' => '','Hex' => '1F632'), array('iOS2' => '','iOS5' => '😟','iOS7' => '','Hex' => '1F61F'), array('iOS2' => '','iOS5' => '😦','iOS7' => '','Hex' => '1F626'), array('iOS2' => '','iOS5' => '😧','iOS7' => '','Hex' => '1F627'), array('iOS2' => '','iOS5' => '😈','iOS7' => '','Hex' => '1F608'), array('iOS2' => '','iOS5' => '👿','iOS7' => '','Hex' => '1F47F'), array('iOS2' => '','iOS5' => '😮','iOS7' => '','Hex' => '1F62E'), array('iOS2' => '','iOS5' => '😬','iOS7' => '','Hex' => '1F62C'), array('iOS2' => '','iOS5' => '😐','iOS7' => '','Hex' => '1F610'), array('iOS2' => '','iOS5' => '😕','iOS7' => '','Hex' => '1F615'), array('iOS2' => '','iOS5' => '😯','iOS7' => '','Hex' => '1F62F'), array('iOS2' => '','iOS5' => '😶','iOS7' => '','Hex' => '1F636'), array('iOS2' => '','iOS5' => '😇','iOS7' => '','Hex' => '1F607'), array('iOS2' => '','iOS5' => '😏','iOS7' => '','Hex' => '1F60F'), array('iOS2' => '','iOS5' => '😑','iOS7' => '','Hex' => '1F611'), array('iOS2' => '','iOS5' => '👲','iOS7' => '','Hex' => '1F472'), array('iOS2' => '','iOS5' => '👳','iOS7' => '','Hex' => '1F473'), array('iOS2' => '','iOS5' => '👮','iOS7' => '','Hex' => '1F46E'), array('iOS2' => '','iOS5' => '👷','iOS7' => '','Hex' => '1F477'), array('iOS2' => '','iOS5' => '💂','iOS7' => '','Hex' => '1F482'), array('iOS2' => '','iOS5' => '👶','iOS7' => '','Hex' => '1F476'), array('iOS2' => '','iOS5' => '👦','iOS7' => '','Hex' => '1F466'), array('iOS2' => '','iOS5' => '👧','iOS7' => '','Hex' => '1F467'), array('iOS2' => '','iOS5' => '👨','iOS7' => '','Hex' => '1F468'), array('iOS2' => '','iOS5' => '👩','iOS7' => '','Hex' => '1F469'), array('iOS2' => '','iOS5' => '👴','iOS7' => '','Hex' => '1F474'), array('iOS2' => '','iOS5' => '👵','iOS7' => '','Hex' => '1F475'), array('iOS2' => '','iOS5' => '👱','iOS7' => '','Hex' => '1F471'), array('iOS2' => '','iOS5' => '👼','iOS7' => '','Hex' => '1F47C'), array('iOS2' => '','iOS5' => '👸','iOS7' => '','Hex' => '1F478'), array('iOS2' => '','iOS5' => '😺','iOS7' => '','Hex' => '1F63A'), array('iOS2' => '','iOS5' => '😸','iOS7' => '','Hex' => '1F638'), array('iOS2' => '','iOS5' => '😻','iOS7' => '','Hex' => '1F63B'), array('iOS2' => '','iOS5' => '😽','iOS7' => '','Hex' => '1F63D'), array('iOS2' => '','iOS5' => '😼','iOS7' => '','Hex' => '1F63C'), array('iOS2' => '','iOS5' => '🙀','iOS7' => '','Hex' => '1F640'), array('iOS2' => '','iOS5' => '😿','iOS7' => '','Hex' => '1F63F'), array('iOS2' => '','iOS5' => '😹','iOS7' => '','Hex' => '1F639'), array('iOS2' => '','iOS5' => '😾','iOS7' => '','Hex' => '1F63E'), array('iOS2' => '','iOS5' => '👹','iOS7' => '','Hex' => '1F479'), array('iOS2' => '','iOS5' => '👺','iOS7' => '','Hex' => '1F47A'), array('iOS2' => '','iOS5' => '🙈','iOS7' => '','Hex' => '1F648'), array('iOS2' => '','iOS5' => '🙉','iOS7' => '','Hex' => '1F649'), array('iOS2' => '','iOS5' => '🙊','iOS7' => '','Hex' => '1F64A'), array('iOS2' => '','iOS5' => '💀','iOS7' => '','Hex' => '1F480'), array('iOS2' => '','iOS5' => '👽','iOS7' => '','Hex' => '1F47D'), array('iOS2' => '','iOS5' => '💩','iOS7' => '','Hex' => '1F4A9'), array('iOS2' => '','iOS5' => '🔥','iOS7' => '','Hex' => '1F525'), array('iOS2' => '','iOS5' => '✨','iOS7' => '','Hex' => '2728'), array('iOS2' => '','iOS5' => '🌟','iOS7' => '','Hex' => '1F31F'), array('iOS2' => '','iOS5' => '💫','iOS7' => '','Hex' => '1F4AB'), array('iOS2' => '','iOS5' => '💥','iOS7' => '','Hex' => '1F4A5'), array('iOS2' => '','iOS5' => '💢','iOS7' => '','Hex' => '1F4A2'), array('iOS2' => '','iOS5' => '💦','iOS7' => '','Hex' => '1F4A6'), array('iOS2' => '','iOS5' => '💧','iOS7' => '','Hex' => '1F4A7'), array('iOS2' => '','iOS5' => '💤','iOS7' => '','Hex' => '1F4A4'), array('iOS2' => '','iOS5' => '💨','iOS7' => '','Hex' => '1F4A8'), array('iOS2' => '','iOS5' => '👂','iOS7' => '','Hex' => '1F442'), array('iOS2' => '','iOS5' => '👀','iOS7' => '','Hex' => '1F440'), array('iOS2' => '','iOS5' => '👃','iOS7' => '','Hex' => '1F443'), array('iOS2' => '','iOS5' => '👅','iOS7' => '','Hex' => '1F445'), array('iOS2' => '','iOS5' => '👄','iOS7' => '','Hex' => '1F444'), array('iOS2' => '','iOS5' => '👍','iOS7' => '','Hex' => '1F44D'), array('iOS2' => '','iOS5' => '👎','iOS7' => '','Hex' => '1F44E'), array('iOS2' => '','iOS5' => '👌','iOS7' => '','Hex' => '1F44C'), array('iOS2' => '','iOS5' => '👊','iOS7' => '','Hex' => '1F44A'), array('iOS2' => '','iOS5' => '✊','iOS7' => '','Hex' => '270A'), array('iOS2' => '','iOS5' => '✌','iOS7' => '✌️','Hex' => '270C'), array('iOS2' => '','iOS5' => '👋','iOS7' => '','Hex' => '1F44B'), array('iOS2' => '','iOS5' => '✋','iOS7' => '','Hex' => '270B'), array('iOS2' => '','iOS5' => '👐','iOS7' => '','Hex' => '1F450'), array('iOS2' => '','iOS5' => '👆','iOS7' => '','Hex' => '1F446'), array('iOS2' => '','iOS5' => '👇','iOS7' => '','Hex' => '1F447'), array('iOS2' => '','iOS5' => '👉','iOS7' => '','Hex' => '1F449'), array('iOS2' => '','iOS5' => '👈','iOS7' => '','Hex' => '1F448'), array('iOS2' => '','iOS5' => '🙌','iOS7' => '','Hex' => '1F64C'), array('iOS2' => '','iOS5' => '🙏','iOS7' => '','Hex' => '1F64F'), array('iOS2' => '','iOS5' => '☝','iOS7' => '☝️','Hex' => '261D'), array('iOS2' => '','iOS5' => '👏','iOS7' => '','Hex' => '1F44F'), array('iOS2' => '','iOS5' => '💪','iOS7' => '','Hex' => '1F4AA'), array('iOS2' => '','iOS5' => '🚶','iOS7' => '','Hex' => '1F6B6'), array('iOS2' => '','iOS5' => '🏃','iOS7' => '','Hex' => '1F3C3'), array('iOS2' => '','iOS5' => '💃','iOS7' => '','Hex' => '1F483'), array('iOS2' => '','iOS5' => '👫','iOS7' => '','Hex' => '1F46B'), array('iOS2' => '','iOS5' => '👪','iOS7' => '','Hex' => '1F46A'), array('iOS2' => '','iOS5' => '👬','iOS7' => '','Hex' => '1F46C'), array('iOS2' => '','iOS5' => '👭','iOS7' => '','Hex' => '1F46D'), array('iOS2' => '','iOS5' => '💏','iOS7' => '','Hex' => '1F48F'), array('iOS2' => '','iOS5' => '💑','iOS7' => '','Hex' => '1F491'), array('iOS2' => '','iOS5' => '👯','iOS7' => '','Hex' => '1F46F'), array('iOS2' => '','iOS5' => '🙆','iOS7' => '','Hex' => '1F646'), array('iOS2' => '','iOS5' => '🙅','iOS7' => '','Hex' => '1F645'), array('iOS2' => '','iOS5' => '💁','iOS7' => '','Hex' => '1F481'), array('iOS2' => '','iOS5' => '🙋','iOS7' => '','Hex' => '1F64B'), array('iOS2' => '','iOS5' => '💆','iOS7' => '','Hex' => '1F486'), array('iOS2' => '','iOS5' => '💇','iOS7' => '','Hex' => '1F487'), array('iOS2' => '','iOS5' => '💅','iOS7' => '','Hex' => '1F485'), array('iOS2' => '','iOS5' => '👰','iOS7' => '','Hex' => '1F470'), array('iOS2' => '','iOS5' => '🙎','iOS7' => '','Hex' => '1F64E'), array('iOS2' => '','iOS5' => '🙍','iOS7' => '','Hex' => '1F64D'), array('iOS2' => '','iOS5' => '🙇','iOS7' => '','Hex' => '1F647'), array('iOS2' => '','iOS5' => '🎩','iOS7' => '','Hex' => '1F3A9'), array('iOS2' => '','iOS5' => '👑','iOS7' => '','Hex' => '1F451'), array('iOS2' => '','iOS5' => '👒','iOS7' => '','Hex' => '1F452'), array('iOS2' => '','iOS5' => '👟','iOS7' => '','Hex' => '1F45F'), array('iOS2' => '','iOS5' => '👞','iOS7' => '','Hex' => '1F45E'), array('iOS2' => '','iOS5' => '👡','iOS7' => '','Hex' => '1F461'), array('iOS2' => '','iOS5' => '👠','iOS7' => '','Hex' => '1F460'), array('iOS2' => '','iOS5' => '👢','iOS7' => '','Hex' => '1F462'), array('iOS2' => '','iOS5' => '👕','iOS7' => '','Hex' => '1F455'), array('iOS2' => '','iOS5' => '👔','iOS7' => '','Hex' => '1F454'), array('iOS2' => '','iOS5' => '👚','iOS7' => '','Hex' => '1F45A'), array('iOS2' => '','iOS5' => '👗','iOS7' => '','Hex' => '1F457'), array('iOS2' => '','iOS5' => '🎽','iOS7' => '','Hex' => '1F3BD'), array('iOS2' => '','iOS5' => '👖','iOS7' => '','Hex' => '1F456'), array('iOS2' => '','iOS5' => '👘','iOS7' => '','Hex' => '1F458'), array('iOS2' => '','iOS5' => '👙','iOS7' => '','Hex' => '1F459'), array('iOS2' => '','iOS5' => '💼','iOS7' => '','Hex' => '1F4BC'), array('iOS2' => '','iOS5' => '👜','iOS7' => '','Hex' => '1F45C'), array('iOS2' => '','iOS5' => '👝','iOS7' => '','Hex' => '1F45D'), array('iOS2' => '','iOS5' => '👛','iOS7' => '','Hex' => '1F45B'), array('iOS2' => '','iOS5' => '👓','iOS7' => '','Hex' => '1F453'), array('iOS2' => '','iOS5' => '🎀','iOS7' => '','Hex' => '1F380'), array('iOS2' => '','iOS5' => '🌂','iOS7' => '','Hex' => '1F302'), array('iOS2' => '','iOS5' => '💄','iOS7' => '','Hex' => '1F484'), array('iOS2' => '','iOS5' => '💛','iOS7' => '','Hex' => '1F49B'), array('iOS2' => '','iOS5' => '💙','iOS7' => '','Hex' => '1F499'), array('iOS2' => '','iOS5' => '💜','iOS7' => '','Hex' => '1F49C'), array('iOS2' => '','iOS5' => '💚','iOS7' => '','Hex' => '1F49A'), array('iOS2' => '','iOS5' => '❤','iOS7' => '❤️','Hex' => '2764'), array('iOS2' => '','iOS5' => '💔','iOS7' => '','Hex' => '1F494'), array('iOS2' => '','iOS5' => '💗','iOS7' => '','Hex' => '1F497'), array('iOS2' => '','iOS5' => '💓','iOS7' => '','Hex' => '1F493'), array('iOS2' => '','iOS5' => '💕','iOS7' => '','Hex' => '1F495'), array('iOS2' => '','iOS5' => '💖','iOS7' => '','Hex' => '1F496'), array('iOS2' => '','iOS5' => '💞','iOS7' => '','Hex' => '1F49E'), array('iOS2' => '','iOS5' => '💘','iOS7' => '','Hex' => '1F498'), array('iOS2' => '','iOS5' => '💌','iOS7' => '','Hex' => '1F48C'), array('iOS2' => '','iOS5' => '💋','iOS7' => '','Hex' => '1F48B'), array('iOS2' => '','iOS5' => '💍','iOS7' => '','Hex' => '1F48D'), array('iOS2' => '','iOS5' => '💎','iOS7' => '','Hex' => '1F48E'), array('iOS2' => '','iOS5' => '👤','iOS7' => '','Hex' => '1F464'), array('iOS2' => '','iOS5' => '👥','iOS7' => '','Hex' => '1F465'), array('iOS2' => '','iOS5' => '💬','iOS7' => '','Hex' => '1F4AC'), array('iOS2' => '','iOS5' => '👣','iOS7' => '','Hex' => '1F463'), array('iOS2' => '','iOS5' => '💭','iOS7' => '','Hex' => '1F4AD'), array('iOS2' => '','iOS5' => '🏠','iOS7' => '','Hex' => '1F3E0'), array('iOS2' => '','iOS5' => '🏡','iOS7' => '','Hex' => '1F3E1'), array('iOS2' => '','iOS5' => '🏫','iOS7' => '','Hex' => '1F3EB'), array('iOS2' => '','iOS5' => '🏢','iOS7' => '','Hex' => '1F3E2'), array('iOS2' => '','iOS5' => '🏣','iOS7' => '','Hex' => '1F3E3'), array('iOS2' => '','iOS5' => '🏥','iOS7' => '','Hex' => '1F3E5'), array('iOS2' => '','iOS5' => '🏦','iOS7' => '','Hex' => '1F3E6'), array('iOS2' => '','iOS5' => '🏪','iOS7' => '','Hex' => '1F3EA'), array('iOS2' => '','iOS5' => '🏩','iOS7' => '','Hex' => '1F3E9'), array('iOS2' => '','iOS5' => '🏨','iOS7' => '','Hex' => '1F3E8'), array('iOS2' => '','iOS5' => '💒','iOS7' => '','Hex' => '1F492'), array('iOS2' => '','iOS5' => '⛪','iOS7' => '⛪️','Hex' => '26EA'), array('iOS2' => '','iOS5' => '🏬','iOS7' => '','Hex' => '1F3EC'), array('iOS2' => '','iOS5' => '🏤','iOS7' => '','Hex' => '1F3E4'), array('iOS2' => '','iOS5' => '🌇','iOS7' => '','Hex' => '1F307'), array('iOS2' => '','iOS5' => '🌆','iOS7' => '','Hex' => '1F306'), array('iOS2' => '','iOS5' => '🏯','iOS7' => '','Hex' => '1F3EF'), array('iOS2' => '','iOS5' => '🏰','iOS7' => '','Hex' => '1F3F0'), array('iOS2' => '','iOS5' => '⛺','iOS7' => '⛺️','Hex' => '26FA'), array('iOS2' => '','iOS5' => '🏭','iOS7' => '','Hex' => '1F3ED'), array('iOS2' => '','iOS5' => '🗼','iOS7' => '','Hex' => '1F5FC'), array('iOS2' => '','iOS5' => '🗾','iOS7' => '','Hex' => '1F5FE'), array('iOS2' => '','iOS5' => '🗻','iOS7' => '','Hex' => '1F5FB'), array('iOS2' => '','iOS5' => '🌄','iOS7' => '','Hex' => '1F304'), array('iOS2' => '','iOS5' => '🌅','iOS7' => '','Hex' => '1F305'), array('iOS2' => '','iOS5' => '🌃','iOS7' => '','Hex' => '1F303'), array('iOS2' => '','iOS5' => '🗽','iOS7' => '','Hex' => '1F5FD'), array('iOS2' => '','iOS5' => '🌉','iOS7' => '','Hex' => '1F309'), array('iOS2' => '','iOS5' => '🎠','iOS7' => '','Hex' => '1F3A0'), array('iOS2' => '','iOS5' => '🎡','iOS7' => '','Hex' => '1F3A1'), array('iOS2' => '','iOS5' => '⛲','iOS7' => '⛲️','Hex' => '26F2'), array('iOS2' => '','iOS5' => '🎢','iOS7' => '','Hex' => '1F3A2'), array('iOS2' => '','iOS5' => '🚢','iOS7' => '','Hex' => '1F6A2'), array('iOS2' => '','iOS5' => '⛵','iOS7' => '⛵️','Hex' => '26F5'), array('iOS2' => '','iOS5' => '🚤','iOS7' => '','Hex' => '1F6A4'), array('iOS2' => '','iOS5' => '🚣','iOS7' => '','Hex' => '1F6A3'), array('iOS2' => '','iOS5' => '⚓','iOS7' => '⚓️','Hex' => '2693'), array('iOS2' => '','iOS5' => '🚀','iOS7' => '','Hex' => '1F680'), array('iOS2' => '','iOS5' => '✈','iOS7' => '✈️','Hex' => '2708'), array('iOS2' => '','iOS5' => '💺','iOS7' => '','Hex' => '1F4BA'), array('iOS2' => '','iOS5' => '🚁','iOS7' => '','Hex' => '1F681'), array('iOS2' => '','iOS5' => '🚂','iOS7' => '','Hex' => '1F682'), array('iOS2' => '','iOS5' => '🚊','iOS7' => '','Hex' => '1F68A'), array('iOS2' => '','iOS5' => '🚉','iOS7' => '','Hex' => '1F689'), array('iOS2' => '','iOS5' => '🚞','iOS7' => '','Hex' => '1F69E'), array('iOS2' => '','iOS5' => '🚆','iOS7' => '','Hex' => '1F686'), array('iOS2' => '','iOS5' => '🚄','iOS7' => '','Hex' => '1F684'), array('iOS2' => '','iOS5' => '🚅','iOS7' => '','Hex' => '1F685'), array('iOS2' => '','iOS5' => '🚈','iOS7' => '','Hex' => '1F688'), array('iOS2' => '','iOS5' => '🚇','iOS7' => '','Hex' => '1F687'), array('iOS2' => '','iOS5' => '🚝','iOS7' => '','Hex' => '1F69D'), array('iOS2' => '','iOS5' => '🚋','iOS7' => '','Hex' => '1F68B'), array('iOS2' => '','iOS5' => '🚃','iOS7' => '','Hex' => '1F683'), array('iOS2' => '','iOS5' => '🚎','iOS7' => '','Hex' => '1F68E'), array('iOS2' => '','iOS5' => '🚌','iOS7' => '','Hex' => '1F68C'), array('iOS2' => '','iOS5' => '🚍','iOS7' => '','Hex' => '1F68D'), array('iOS2' => '','iOS5' => '🚙','iOS7' => '','Hex' => '1F699'), array('iOS2' => '','iOS5' => '🚘','iOS7' => '','Hex' => '1F698'), array('iOS2' => '','iOS5' => '🚗','iOS7' => '','Hex' => '1F697'), array('iOS2' => '','iOS5' => '🚕','iOS7' => '','Hex' => '1F695'), array('iOS2' => '','iOS5' => '🚖','iOS7' => '','Hex' => '1F696'), array('iOS2' => '','iOS5' => '🚛','iOS7' => '','Hex' => '1F69B'), array('iOS2' => '','iOS5' => '🚚','iOS7' => '','Hex' => '1F69A'), array('iOS2' => '','iOS5' => '🚨','iOS7' => '','Hex' => '1F6A8'), array('iOS2' => '','iOS5' => '🚓','iOS7' => '','Hex' => '1F693'), array('iOS2' => '','iOS5' => '🚔','iOS7' => '','Hex' => '1F694'), array('iOS2' => '','iOS5' => '🚒','iOS7' => '','Hex' => '1F692'), array('iOS2' => '','iOS5' => '🚑','iOS7' => '','Hex' => '1F691'), array('iOS2' => '','iOS5' => '🚐','iOS7' => '','Hex' => '1F690'), array('iOS2' => '','iOS5' => '🚲','iOS7' => '','Hex' => '1F6B2'), array('iOS2' => '','iOS5' => '🚡','iOS7' => '','Hex' => '1F6A1'), array('iOS2' => '','iOS5' => '🚟','iOS7' => '','Hex' => '1F69F'), array('iOS2' => '','iOS5' => '🚠','iOS7' => '','Hex' => '1F6A0'), array('iOS2' => '','iOS5' => '🚜','iOS7' => '','Hex' => '1F69C'), array('iOS2' => '','iOS5' => '💈','iOS7' => '','Hex' => '1F488'), array('iOS2' => '','iOS5' => '🚏','iOS7' => '','Hex' => '1F68F'), array('iOS2' => '','iOS5' => '🎫','iOS7' => '','Hex' => '1F3AB'), array('iOS2' => '','iOS5' => '🚦','iOS7' => '','Hex' => '1F6A6'), array('iOS2' => '','iOS5' => '🚥','iOS7' => '','Hex' => '1F6A5'), array('iOS2' => '','iOS5' => '⚠','iOS7' => '⚠️','Hex' => '26A0'), array('iOS2' => '','iOS5' => '🚧','iOS7' => '','Hex' => '1F6A7'), array('iOS2' => '','iOS5' => '🔰','iOS7' => '','Hex' => '1F530'), array('iOS2' => '','iOS5' => '⛽','iOS7' => '⛽️','Hex' => '26FD'), array('iOS2' => '','iOS5' => '🏮','iOS7' => '','Hex' => '1F3EE'), array('iOS2' => '','iOS5' => '🎰','iOS7' => '','Hex' => '1F3B0'), array('iOS2' => '','iOS5' => '♨','iOS7' => '♨️','Hex' => '2668'), array('iOS2' => '','iOS5' => '🗿','iOS7' => '','Hex' => '1F5FF'), array('iOS2' => '','iOS5' => '🎪','iOS7' => '','Hex' => '1F3AA'), array('iOS2' => '','iOS5' => '🎭','iOS7' => '','Hex' => '1F3AD'), array('iOS2' => '','iOS5' => '📍','iOS7' => '','Hex' => '1F4CD'), array('iOS2' => '','iOS5' => '🚩','iOS7' => '','Hex' => '1F6A9'), array('iOS2' => '','iOS5' => '🇯🇵','iOS7' => '','Hex' => '1F1EF_1F1F5'), array('iOS2' => '','iOS5' => '🇰🇷','iOS7' => '','Hex' => '1F1F0_1F1F7'), array('iOS2' => '','iOS5' => '🇩🇪','iOS7' => '','Hex' => '1F1E9_1F1EA'), array('iOS2' => '','iOS5' => '🇨🇳','iOS7' => '','Hex' => '1F1E8_1F1F3'), array('iOS2' => '','iOS5' => '🇺🇸','iOS7' => '','Hex' => '1F1FA_1F1F8'), array('iOS2' => '','iOS5' => '🇫🇷','iOS7' => '','Hex' => '1F1EB_1F1F7'), array('iOS2' => '','iOS5' => '🇪🇸','iOS7' => '','Hex' => '1F1EA_1F1F8'), array('iOS2' => '','iOS5' => '🇮🇹','iOS7' => '','Hex' => '1F1EE_1F1F9'), array('iOS2' => '','iOS5' => '🇷🇺','iOS7' => '','Hex' => '1F1F7_1F1FA'), array('iOS2' => '','iOS5' => '🇬🇧','iOS7' => '','Hex' => '1F1EC_1F1E7'), array('iOS2' => '','iOS5' => '','iOS7' => '','Hex' => ''), array('iOS2' => '','iOS5' => '🐶','iOS7' => '','Hex' => '1F436'), array('iOS2' => '','iOS5' => '🐺','iOS7' => '','Hex' => '1F43A'), array('iOS2' => '','iOS5' => '🐱','iOS7' => '','Hex' => '1F431'), array('iOS2' => '','iOS5' => '🐭','iOS7' => '','Hex' => '1F42D'), array('iOS2' => '','iOS5' => '🐹','iOS7' => '','Hex' => '1F439'), array('iOS2' => '','iOS5' => '🐰','iOS7' => '','Hex' => '1F430'), array('iOS2' => '','iOS5' => '🐸','iOS7' => '','Hex' => '1F438'), array('iOS2' => '','iOS5' => '🐯','iOS7' => '','Hex' => '1F42F'), array('iOS2' => '','iOS5' => '🐨','iOS7' => '','Hex' => '1F428'), array('iOS2' => '','iOS5' => '🐻','iOS7' => '','Hex' => '1F43B'), array('iOS2' => '','iOS5' => '🐷','iOS7' => '','Hex' => '1F437'), array('iOS2' => '','iOS5' => '🐽','iOS7' => '','Hex' => '1F43D'), array('iOS2' => '','iOS5' => '🐮','iOS7' => '','Hex' => '1F42E'), array('iOS2' => '','iOS5' => '🐗','iOS7' => '','Hex' => '1F417'), array('iOS2' => '','iOS5' => '🐵','iOS7' => '','Hex' => '1F435'), array('iOS2' => '','iOS5' => '🐒','iOS7' => '','Hex' => '1F412'), array('iOS2' => '','iOS5' => '🐴','iOS7' => '','Hex' => '1F434'), array('iOS2' => '','iOS5' => '🐑','iOS7' => '','Hex' => '1F411'), array('iOS2' => '','iOS5' => '🐘','iOS7' => '','Hex' => '1F418'), array('iOS2' => '','iOS5' => '🐼','iOS7' => '','Hex' => '1F43C'), array('iOS2' => '','iOS5' => '🐧','iOS7' => '','Hex' => '1F427'), array('iOS2' => '','iOS5' => '🐦','iOS7' => '','Hex' => '1F426'), array('iOS2' => '','iOS5' => '🐤','iOS7' => '','Hex' => '1F424'), array('iOS2' => '','iOS5' => '🐥','iOS7' => '','Hex' => '1F425'), array('iOS2' => '','iOS5' => '🐣','iOS7' => '','Hex' => '1F423'), array('iOS2' => '','iOS5' => '🐔','iOS7' => '','Hex' => '1F414'), array('iOS2' => '','iOS5' => '🐍','iOS7' => '','Hex' => '1F40D'), array('iOS2' => '','iOS5' => '🐢','iOS7' => '','Hex' => '1F422'), array('iOS2' => '','iOS5' => '🐛','iOS7' => '','Hex' => '1F41B'), array('iOS2' => '','iOS5' => '🐝','iOS7' => '','Hex' => '1F41D'), array('iOS2' => '','iOS5' => '🐜','iOS7' => '','Hex' => '1F41C'), array('iOS2' => '','iOS5' => '🐞','iOS7' => '','Hex' => '1F41E'), array('iOS2' => '','iOS5' => '🐌','iOS7' => '','Hex' => '1F40C'), array('iOS2' => '','iOS5' => '🐙','iOS7' => '','Hex' => '1F419'), array('iOS2' => '','iOS5' => '🐚','iOS7' => '','Hex' => '1F41A'), array('iOS2' => '','iOS5' => '🐠','iOS7' => '','Hex' => '1F420'), array('iOS2' => '','iOS5' => '🐟','iOS7' => '','Hex' => '1F41F'), array('iOS2' => '','iOS5' => '🐬','iOS7' => '','Hex' => '1F42C'), array('iOS2' => '','iOS5' => '🐳','iOS7' => '','Hex' => '1F433'), array('iOS2' => '','iOS5' => '🐋','iOS7' => '','Hex' => '1F40B'), array('iOS2' => '','iOS5' => '🐄','iOS7' => '','Hex' => '1F404'), array('iOS2' => '','iOS5' => '🐏','iOS7' => '','Hex' => '1F40F'), array('iOS2' => '','iOS5' => '🐀','iOS7' => '','Hex' => '1F400'), array('iOS2' => '','iOS5' => '🐃','iOS7' => '','Hex' => '1F403'), array('iOS2' => '','iOS5' => '🐅','iOS7' => '','Hex' => '1F405'), array('iOS2' => '','iOS5' => '🐇','iOS7' => '','Hex' => '1F407'), array('iOS2' => '','iOS5' => '🐉','iOS7' => '','Hex' => '1F409'), array('iOS2' => '','iOS5' => '🐎','iOS7' => '','Hex' => '1F40E'), array('iOS2' => '','iOS5' => '🐐','iOS7' => '','Hex' => '1F410'), array('iOS2' => '','iOS5' => '🐓','iOS7' => '','Hex' => '1F413'), array('iOS2' => '','iOS5' => '🐕','iOS7' => '','Hex' => '1F415'), array('iOS2' => '','iOS5' => '🐖','iOS7' => '','Hex' => '1F416'), array('iOS2' => '','iOS5' => '🐁','iOS7' => '','Hex' => '1F401'), array('iOS2' => '','iOS5' => '🐂','iOS7' => '','Hex' => '1F402'), array('iOS2' => '','iOS5' => '🐲','iOS7' => '','Hex' => '1F432'), array('iOS2' => '','iOS5' => '🐡','iOS7' => '','Hex' => '1F421'), array('iOS2' => '','iOS5' => '🐊','iOS7' => '','Hex' => '1F40A'), array('iOS2' => '','iOS5' => '🐫','iOS7' => '','Hex' => '1F42B'), array('iOS2' => '','iOS5' => '🐪','iOS7' => '','Hex' => '1F42A'), array('iOS2' => '','iOS5' => '🐆','iOS7' => '','Hex' => '1F406'), array('iOS2' => '','iOS5' => '🐈','iOS7' => '','Hex' => '1F408'), array('iOS2' => '','iOS5' => '🐩','iOS7' => '','Hex' => '1F429'), array('iOS2' => '','iOS5' => '🐾','iOS7' => '','Hex' => '1F43E'), array('iOS2' => '','iOS5' => '💐','iOS7' => '','Hex' => '1F490'), array('iOS2' => '','iOS5' => '🌸','iOS7' => '','Hex' => '1F338'), array('iOS2' => '','iOS5' => '🌷','iOS7' => '','Hex' => '1F337'), array('iOS2' => '','iOS5' => '🍀','iOS7' => '','Hex' => '1F340'), array('iOS2' => '','iOS5' => '🌹','iOS7' => '','Hex' => '1F339'), array('iOS2' => '','iOS5' => '🌻','iOS7' => '','Hex' => '1F33B'), array('iOS2' => '','iOS5' => '🌺','iOS7' => '','Hex' => '1F33A'), array('iOS2' => '','iOS5' => '🍁','iOS7' => '','Hex' => '1F341'), array('iOS2' => '','iOS5' => '🍃','iOS7' => '','Hex' => '1F343'), array('iOS2' => '','iOS5' => '🍂','iOS7' => '','Hex' => '1F342'), array('iOS2' => '','iOS5' => '🌿','iOS7' => '','Hex' => '1F33F'), array('iOS2' => '','iOS5' => '🌾','iOS7' => '','Hex' => '1F33E'), array('iOS2' => '','iOS5' => '🍄','iOS7' => '','Hex' => '1F344'), array('iOS2' => '','iOS5' => '🌵','iOS7' => '','Hex' => '1F335'), array('iOS2' => '','iOS5' => '🌴','iOS7' => '','Hex' => '1F334'), array('iOS2' => '','iOS5' => '🌲','iOS7' => '','Hex' => '1F332'), array('iOS2' => '','iOS5' => '🌳','iOS7' => '','Hex' => '1F333'), array('iOS2' => '','iOS5' => '🌰','iOS7' => '','Hex' => '1F330'), array('iOS2' => '','iOS5' => '🌱','iOS7' => '','Hex' => '1F331'), array('iOS2' => '','iOS5' => '🌼','iOS7' => '','Hex' => '1F33C'), array('iOS2' => '','iOS5' => '🌐','iOS7' => '','Hex' => '1F310'), array('iOS2' => '','iOS5' => '🌞','iOS7' => '','Hex' => '1F31E'), array('iOS2' => '','iOS5' => '🌝','iOS7' => '','Hex' => '1F31D'), array('iOS2' => '','iOS5' => '🌚','iOS7' => '','Hex' => '1F31A'), array('iOS2' => '','iOS5' => '🌑','iOS7' => '','Hex' => '1F311'), array('iOS2' => '','iOS5' => '🌒','iOS7' => '','Hex' => '1F312'), array('iOS2' => '','iOS5' => '🌓','iOS7' => '','Hex' => '1F313'), array('iOS2' => '','iOS5' => '🌔','iOS7' => '','Hex' => '1F314'), array('iOS2' => '','iOS5' => '🌕','iOS7' => '','Hex' => '1F315'), array('iOS2' => '','iOS5' => '🌖','iOS7' => '','Hex' => '1F316'), array('iOS2' => '','iOS5' => '🌗','iOS7' => '','Hex' => '1F317'), array('iOS2' => '','iOS5' => '🌘','iOS7' => '','Hex' => '1F318'), array('iOS2' => '','iOS5' => '🌜','iOS7' => '','Hex' => '1F31C'), array('iOS2' => '','iOS5' => '🌛','iOS7' => '','Hex' => '1F31B'), array('iOS2' => '','iOS5' => '🌙','iOS7' => '','Hex' => '1F319'), array('iOS2' => '','iOS5' => '🌍','iOS7' => '','Hex' => '1F30D'), array('iOS2' => '','iOS5' => '🌎','iOS7' => '','Hex' => '1F30E'), array('iOS2' => '','iOS5' => '🌏','iOS7' => '','Hex' => '1F30F'), array('iOS2' => '','iOS5' => '🌋','iOS7' => '','Hex' => '1F30B'), array('iOS2' => '','iOS5' => '🌌','iOS7' => '','Hex' => '1F30C'), array('iOS2' => '','iOS5' => '🌠','iOS7' => '','Hex' => '1F320'), array('iOS2' => '','iOS5' => '⭐','iOS7' => '⭐️','Hex' => '2B50'), array('iOS2' => '','iOS5' => '☀','iOS7' => '☀️','Hex' => '2600'), array('iOS2' => '','iOS5' => '⛅','iOS7' => '⛅️','Hex' => '26C5'), array('iOS2' => '','iOS5' => '☁','iOS7' => '☁️','Hex' => '2601'), array('iOS2' => '','iOS5' => '⚡','iOS7' => '⚡️','Hex' => '26A1'), array('iOS2' => '','iOS5' => '☔','iOS7' => '☔️','Hex' => '2614'), array('iOS2' => '','iOS5' => '❄','iOS7' => '❄️','Hex' => '2744'), array('iOS2' => '','iOS5' => '⛄','iOS7' => '⛄️','Hex' => '26C4'), array('iOS2' => '','iOS5' => '🌀','iOS7' => '🌀','Hex' => '1F300'), array('iOS2' => '','iOS5' => '🌁','iOS7' => '','Hex' => '1F301'), array('iOS2' => '','iOS5' => '🌈','iOS7' => '','Hex' => '1F308'), array('iOS2' => '','iOS5' => '🌊','iOS7' => '','Hex' => '1F30A'), array('iOS2' => '','iOS5' => '🎍','iOS7' => '','Hex' => '1F38D'), array('iOS2' => '','iOS5' => '💝','iOS7' => '','Hex' => '1F49D'), array('iOS2' => '','iOS5' => '🎎','iOS7' => '','Hex' => '1F38E'), array('iOS2' => '','iOS5' => '🎒','iOS7' => '','Hex' => '1F392'), array('iOS2' => '','iOS5' => '🎓','iOS7' => '','Hex' => '1F393'), array('iOS2' => '','iOS5' => '🎏','iOS7' => '','Hex' => '1F38F'), array('iOS2' => '','iOS5' => '🎆','iOS7' => '','Hex' => '1F386'), array('iOS2' => '','iOS5' => '🎇','iOS7' => '','Hex' => '1F387'), array('iOS2' => '','iOS5' => '🎐','iOS7' => '','Hex' => '1F390'), array('iOS2' => '','iOS5' => '🎑','iOS7' => '','Hex' => '1F391'), array('iOS2' => '','iOS5' => '🎃','iOS7' => '','Hex' => '1F383'), array('iOS2' => '','iOS5' => '👻','iOS7' => '','Hex' => '1F47B'), array('iOS2' => '','iOS5' => '🎅','iOS7' => '','Hex' => '1F385'), array('iOS2' => '','iOS5' => '🎄','iOS7' => '','Hex' => '1F384'), array('iOS2' => '','iOS5' => '🎁','iOS7' => '','Hex' => '1F381'), array('iOS2' => '','iOS5' => '🎋','iOS7' => '','Hex' => '1F38B'), array('iOS2' => '','iOS5' => '🎉','iOS7' => '','Hex' => '1F389'), array('iOS2' => '','iOS5' => '🎊','iOS7' => '','Hex' => '1F38A'), array('iOS2' => '','iOS5' => '🎈','iOS7' => '','Hex' => '1F388'), array('iOS2' => '','iOS5' => '🎌','iOS7' => '','Hex' => '1F38C'), array('iOS2' => '','iOS5' => '🔮','iOS7' => '','Hex' => '1F52E'), array('iOS2' => '','iOS5' => '🎥','iOS7' => '','Hex' => '1F3A5'), array('iOS2' => '','iOS5' => '📷','iOS7' => '','Hex' => '1F4F7'), array('iOS2' => '','iOS5' => '📹','iOS7' => '','Hex' => '1F4F9'), array('iOS2' => '','iOS5' => '📼','iOS7' => '','Hex' => '1F4FC'), array('iOS2' => '','iOS5' => '💿','iOS7' => '','Hex' => '1F4BF'), array('iOS2' => '','iOS5' => '📀','iOS7' => '','Hex' => '1F4C0'), array('iOS2' => '','iOS5' => '💽','iOS7' => '','Hex' => '1F4BD'), array('iOS2' => '','iOS5' => '💾','iOS7' => '','Hex' => '1F4BE'), array('iOS2' => '','iOS5' => '💻','iOS7' => '','Hex' => '1F4BB'), array('iOS2' => '','iOS5' => '📱','iOS7' => '','Hex' => '1F4F1'), array('iOS2' => '','iOS5' => '☎','iOS7' => '☎️','Hex' => '260E'), array('iOS2' => '','iOS5' => '📞','iOS7' => '','Hex' => '1F4DE'), array('iOS2' => '','iOS5' => '📟','iOS7' => '','Hex' => '1F4DF'), array('iOS2' => '','iOS5' => '📠','iOS7' => '','Hex' => '1F4E0'), array('iOS2' => '','iOS5' => '📡','iOS7' => '','Hex' => '1F4E1'), array('iOS2' => '','iOS5' => '📺','iOS7' => '','Hex' => '1F4FA'), array('iOS2' => '','iOS5' => '📻','iOS7' => '','Hex' => '1F4FB'), array('iOS2' => '','iOS5' => '🔊','iOS7' => '','Hex' => '1F50A'), array('iOS2' => '','iOS5' => '🔉','iOS7' => '','Hex' => '1F509'), array('iOS2' => '','iOS5' => '🔈','iOS7' => '','Hex' => '1F508'), array('iOS2' => '','iOS5' => '🔇','iOS7' => '','Hex' => '1F507'), array('iOS2' => '','iOS5' => '🔔','iOS7' => '','Hex' => '1F514'), array('iOS2' => '','iOS5' => '🔕','iOS7' => '','Hex' => '1F515'), array('iOS2' => '','iOS5' => '📢','iOS7' => '','Hex' => '1F4E2'), array('iOS2' => '','iOS5' => '📣','iOS7' => '','Hex' => '1F4E3'), array('iOS2' => '','iOS5' => '⏳','iOS7' => '','Hex' => '23F3'), array('iOS2' => '','iOS5' => '⌛','iOS7' => '⌛️','Hex' => '231B'), array('iOS2' => '','iOS5' => '⏰','iOS7' => '⏰','Hex' => '23F0'), array('iOS2' => '','iOS5' => '⌚','iOS7' => '⌚️','Hex' => '231A'), array('iOS2' => '','iOS5' => '🔓','iOS7' => '','Hex' => '1F513'), array('iOS2' => '','iOS5' => '🔒','iOS7' => '','Hex' => '1F512'), array('iOS2' => '','iOS5' => '🔏','iOS7' => '','Hex' => '1F50F'), array('iOS2' => '','iOS5' => '🔐','iOS7' => '','Hex' => '1F510'), array('iOS2' => '','iOS5' => '🔑','iOS7' => '','Hex' => '1F511'), array('iOS2' => '','iOS5' => '🔎','iOS7' => '','Hex' => '1F50E'), array('iOS2' => '','iOS5' => '💡','iOS7' => '','Hex' => '1F4A1'), array('iOS2' => '','iOS5' => '🔦','iOS7' => '','Hex' => '1F526'), array('iOS2' => '','iOS5' => '🔆','iOS7' => '','Hex' => '1F506'), array('iOS2' => '','iOS5' => '🔅','iOS7' => '','Hex' => '1F505'), array('iOS2' => '','iOS5' => '🔌','iOS7' => '','Hex' => '1F50C'), array('iOS2' => '','iOS5' => '🔋','iOS7' => '','Hex' => '1F50B'), array('iOS2' => '','iOS5' => '🔍','iOS7' => '','Hex' => '1F50D'), array('iOS2' => '','iOS5' => '🛁','iOS7' => '','Hex' => '1F6C1'), array('iOS2' => '','iOS5' => '🛀','iOS7' => '','Hex' => '1F6C0'), array('iOS2' => '','iOS5' => '🚿','iOS7' => '','Hex' => '1F6BF'), array('iOS2' => '','iOS5' => '🚽','iOS7' => '','Hex' => '1F6BD'), array('iOS2' => '','iOS5' => '🔧','iOS7' => '','Hex' => '1F527'), array('iOS2' => '','iOS5' => '🔩','iOS7' => '','Hex' => '1F529'), array('iOS2' => '','iOS5' => '🔨','iOS7' => '','Hex' => '1F528'), array('iOS2' => '','iOS5' => '🚪','iOS7' => '','Hex' => '1F6AA'), array('iOS2' => '','iOS5' => '🚬','iOS7' => '','Hex' => '1F6AC'), array('iOS2' => '','iOS5' => '💣','iOS7' => '','Hex' => '1F4A3'), array('iOS2' => '','iOS5' => '🔫','iOS7' => '','Hex' => '1F52B'), array('iOS2' => '','iOS5' => '🔪','iOS7' => '','Hex' => '1F52A'), array('iOS2' => '','iOS5' => '💊','iOS7' => '','Hex' => '1F48A'), array('iOS2' => '','iOS5' => '💉','iOS7' => '','Hex' => '1F489'), array('iOS2' => '','iOS5' => '💰','iOS7' => '','Hex' => '1F4B0'), array('iOS2' => '','iOS5' => '💴','iOS7' => '','Hex' => '1F4B4'), array('iOS2' => '','iOS5' => '💵','iOS7' => '','Hex' => '1F4B5'), array('iOS2' => '','iOS5' => '💷','iOS7' => '','Hex' => '1F4B7'), array('iOS2' => '','iOS5' => '💶','iOS7' => '','Hex' => '1F4B6'), array('iOS2' => '','iOS5' => '💳','iOS7' => '','Hex' => '1F4B3'), array('iOS2' => '','iOS5' => '💸','iOS7' => '','Hex' => '1F4B8'), array('iOS2' => '','iOS5' => '📲','iOS7' => '','Hex' => '1F4F2'), array('iOS2' => '','iOS5' => '📧','iOS7' => '','Hex' => '1F4E7'), array('iOS2' => '','iOS5' => '📥','iOS7' => '','Hex' => '1F4E5'), array('iOS2' => '','iOS5' => '📤','iOS7' => '','Hex' => '1F4E4'), array('iOS2' => '','iOS5' => '✉','iOS7' => '✉️','Hex' => '2709'), array('iOS2' => '','iOS5' => '📩','iOS7' => '','Hex' => '1F4E9'), array('iOS2' => '','iOS5' => '📨','iOS7' => '','Hex' => '1F4E8'), array('iOS2' => '','iOS5' => '📯','iOS7' => '','Hex' => '1F4EF'), array('iOS2' => '','iOS5' => '📫','iOS7' => '','Hex' => '1F4EB'), array('iOS2' => '','iOS5' => '📪','iOS7' => '','Hex' => '1F4EA'), array('iOS2' => '','iOS5' => '📬','iOS7' => '','Hex' => '1F4EC'), array('iOS2' => '','iOS5' => '📭','iOS7' => '','Hex' => '1F4ED'), array('iOS2' => '','iOS5' => '📮','iOS7' => '','Hex' => '1F4EE'), array('iOS2' => '','iOS5' => '📦','iOS7' => '','Hex' => '1F4E6'), array('iOS2' => '','iOS5' => '📝','iOS7' => '','Hex' => '1F4DD'), array('iOS2' => '','iOS5' => '📄','iOS7' => '','Hex' => '1F4C4'), array('iOS2' => '','iOS5' => '📃','iOS7' => '','Hex' => '1F4C3'), array('iOS2' => '','iOS5' => '📑','iOS7' => '','Hex' => '1F4D1'), array('iOS2' => '','iOS5' => '📊','iOS7' => '','Hex' => '1F4CA'), array('iOS2' => '','iOS5' => '📈','iOS7' => '','Hex' => '1F4C8'), array('iOS2' => '','iOS5' => '📉','iOS7' => '','Hex' => '1F4C9'), array('iOS2' => '','iOS5' => '📜','iOS7' => '','Hex' => '1F4DC'), array('iOS2' => '','iOS5' => '📋','iOS7' => '','Hex' => '1F4CB'), array('iOS2' => '','iOS5' => '📅','iOS7' => '','Hex' => '1F4C5'), array('iOS2' => '','iOS5' => '📆','iOS7' => '','Hex' => '1F4C6'), array('iOS2' => '','iOS5' => '📇','iOS7' => '','Hex' => '1F4C7'), array('iOS2' => '','iOS5' => '📁','iOS7' => '','Hex' => '1F4C1'), array('iOS2' => '','iOS5' => '📂','iOS7' => '','Hex' => '1F4C2'), array('iOS2' => '','iOS5' => '✂','iOS7' => '✂️','Hex' => '2702'), array('iOS2' => '','iOS5' => '📌','iOS7' => '','Hex' => '1F4CC'), array('iOS2' => '','iOS5' => '📎','iOS7' => '','Hex' => '1F4CE'), array('iOS2' => '','iOS5' => '✒','iOS7' => '✒️','Hex' => '2712'), array('iOS2' => '','iOS5' => '✏','iOS7' => '✏️','Hex' => '270F'), array('iOS2' => '','iOS5' => '📏','iOS7' => '','Hex' => '1F4CF'), array('iOS2' => '','iOS5' => '📐','iOS7' => '','Hex' => '1F4D0'), array('iOS2' => '','iOS5' => '📕','iOS7' => '','Hex' => '1F4D5'), array('iOS2' => '','iOS5' => '📗','iOS7' => '','Hex' => '1F4D7'), array('iOS2' => '','iOS5' => '📘','iOS7' => '','Hex' => '1F4D8'), array('iOS2' => '','iOS5' => '📙','iOS7' => '','Hex' => '1F4D9'), array('iOS2' => '','iOS5' => '📓','iOS7' => '','Hex' => '1F4D3'), array('iOS2' => '','iOS5' => '📔','iOS7' => '','Hex' => '1F4D4'), array('iOS2' => '','iOS5' => '📒','iOS7' => '','Hex' => '1F4D2'), array('iOS2' => '','iOS5' => '📚','iOS7' => '','Hex' => '1F4DA'), array('iOS2' => '','iOS5' => '📖','iOS7' => '','Hex' => '1F4D6'), array('iOS2' => '','iOS5' => '🔖','iOS7' => '','Hex' => '1F516'), array('iOS2' => '','iOS5' => '📛','iOS7' => '','Hex' => '1F4DB'), array('iOS2' => '','iOS5' => '🔬','iOS7' => '','Hex' => '1F52C'), array('iOS2' => '','iOS5' => '🔭','iOS7' => '','Hex' => '1F52D'), array('iOS2' => '','iOS5' => '📰','iOS7' => '','Hex' => '1F4F0'), array('iOS2' => '','iOS5' => '🎨','iOS7' => '','Hex' => '1F3A8'), array('iOS2' => '','iOS5' => '🎬','iOS7' => '','Hex' => '1F3AC'), array('iOS2' => '','iOS5' => '🎤','iOS7' => '','Hex' => '1F3A4'), array('iOS2' => '','iOS5' => '🎧','iOS7' => '','Hex' => '1F3A7'), array('iOS2' => '','iOS5' => '🎼','iOS7' => '','Hex' => '1F3BC'), array('iOS2' => '','iOS5' => '🎵','iOS7' => '','Hex' => '1F3B5'), array('iOS2' => '','iOS5' => '🎶','iOS7' => '','Hex' => '1F3B6'), array('iOS2' => '','iOS5' => '🎹','iOS7' => '','Hex' => '1F3B9'), array('iOS2' => '','iOS5' => '🎻','iOS7' => '','Hex' => '1F3BB'), array('iOS2' => '','iOS5' => '🎺','iOS7' => '','Hex' => '1F3BA'), array('iOS2' => '','iOS5' => '🎷','iOS7' => '','Hex' => '1F3B7'), array('iOS2' => '','iOS5' => '🎸','iOS7' => '','Hex' => '1F3B8'), array('iOS2' => '','iOS5' => '👾','iOS7' => '','Hex' => '1F47E'), array('iOS2' => '','iOS5' => '🎮','iOS7' => '','Hex' => '1F3AE'), array('iOS2' => '','iOS5' => '🃏','iOS7' => '','Hex' => '1F0CF'), array('iOS2' => '','iOS5' => '🎴','iOS7' => '','Hex' => '1F3B4'), array('iOS2' => '','iOS5' => '🀄','iOS7' => '🀄️','Hex' => '1F004'), array('iOS2' => '','iOS5' => '🎲','iOS7' => '','Hex' => '1F3B2'), array('iOS2' => '','iOS5' => '🎯','iOS7' => '','Hex' => '1F3AF'), array('iOS2' => '','iOS5' => '🏈','iOS7' => '','Hex' => '1F3C8'), array('iOS2' => '','iOS5' => '🏀','iOS7' => '','Hex' => '1F3C0'), array('iOS2' => '','iOS5' => '⚽','iOS7' => '⚽️','Hex' => '26BD'), array('iOS2' => '','iOS5' => '⚾','iOS7' => '⚾️','Hex' => '26BE'), array('iOS2' => '','iOS5' => '🎾','iOS7' => '','Hex' => '1F3BE'), array('iOS2' => '','iOS5' => '🎱','iOS7' => '','Hex' => '1F3B1'), array('iOS2' => '','iOS5' => '🏉','iOS7' => '','Hex' => '1F3C9'), array('iOS2' => '','iOS5' => '🎳','iOS7' => '','Hex' => '1F3B3'), array('iOS2' => '','iOS5' => '⛳','iOS7' => '⛳️','Hex' => '26F3'), array('iOS2' => '','iOS5' => '🚵','iOS7' => '','Hex' => '1F6B5'), array('iOS2' => '','iOS5' => '🚴','iOS7' => '','Hex' => '1F6B4'), array('iOS2' => '','iOS5' => '🏁','iOS7' => '','Hex' => '1F3C1'), array('iOS2' => '','iOS5' => '🏇','iOS7' => '','Hex' => '1F3C7'), array('iOS2' => '','iOS5' => '🏆','iOS7' => '','Hex' => '1F3C6'), array('iOS2' => '','iOS5' => '🎿','iOS7' => '','Hex' => '1F3BF'), array('iOS2' => '','iOS5' => '🏂','iOS7' => '','Hex' => '1F3C2'), array('iOS2' => '','iOS5' => '🏊','iOS7' => '','Hex' => '1F3CA'), array('iOS2' => '','iOS5' => '🏄','iOS7' => '','Hex' => '1F3C4'), array('iOS2' => '','iOS5' => '🎣','iOS7' => '','Hex' => '1F3A3'), array('iOS2' => '','iOS5' => '☕','iOS7' => '☕️','Hex' => '2615'), array('iOS2' => '','iOS5' => '🍵','iOS7' => '','Hex' => '1F375'), array('iOS2' => '','iOS5' => '🍶','iOS7' => '','Hex' => '1F376'), array('iOS2' => '','iOS5' => '🍼','iOS7' => '','Hex' => '1F37C'), array('iOS2' => '','iOS5' => '🍺','iOS7' => '','Hex' => '1F37A'), array('iOS2' => '','iOS5' => '🍻','iOS7' => '','Hex' => '1F37B'), array('iOS2' => '','iOS5' => '🍸','iOS7' => '','Hex' => '1F378'), array('iOS2' => '','iOS5' => '🍹','iOS7' => '','Hex' => '1F379'), array('iOS2' => '','iOS5' => '🍷','iOS7' => '','Hex' => '1F377'), array('iOS2' => '','iOS5' => '🍴','iOS7' => '','Hex' => '1F374'), array('iOS2' => '','iOS5' => '🍕','iOS7' => '','Hex' => '1F355'), array('iOS2' => '','iOS5' => '🍔','iOS7' => '','Hex' => '1F354'), array('iOS2' => '','iOS5' => '🍟','iOS7' => '','Hex' => '1F35F'), array('iOS2' => '','iOS5' => '🍗','iOS7' => '','Hex' => '1F357'), array('iOS2' => '','iOS5' => '🍖','iOS7' => '','Hex' => '1F356'), array('iOS2' => '','iOS5' => '🍝','iOS7' => '','Hex' => '1F35D'), array('iOS2' => '','iOS5' => '🍛','iOS7' => '','Hex' => '1F35B'), array('iOS2' => '','iOS5' => '🍤','iOS7' => '','Hex' => '1F364'), array('iOS2' => '','iOS5' => '🍱','iOS7' => '','Hex' => '1F371'), array('iOS2' => '','iOS5' => '🍣','iOS7' => '','Hex' => '1F363'), array('iOS2' => '','iOS5' => '🍥','iOS7' => '','Hex' => '1F365'), array('iOS2' => '','iOS5' => '🍙','iOS7' => '','Hex' => '1F359'), array('iOS2' => '','iOS5' => '🍘','iOS7' => '','Hex' => '1F358'), array('iOS2' => '','iOS5' => '🍚','iOS7' => '','Hex' => '1F35A'), array('iOS2' => '','iOS5' => '🍜','iOS7' => '','Hex' => '1F35C'), array('iOS2' => '','iOS5' => '🍲','iOS7' => '','Hex' => '1F372'), array('iOS2' => '','iOS5' => '🍢','iOS7' => '','Hex' => '1F362'), array('iOS2' => '','iOS5' => '🍡','iOS7' => '','Hex' => '1F361'), array('iOS2' => '','iOS5' => '🍳','iOS7' => '','Hex' => '1F373'), array('iOS2' => '','iOS5' => '🍞','iOS7' => '','Hex' => '1F35E'), array('iOS2' => '','iOS5' => '🍩','iOS7' => '','Hex' => '1F369'), array('iOS2' => '','iOS5' => '🍮','iOS7' => '','Hex' => '1F36E'), array('iOS2' => '','iOS5' => '🍦','iOS7' => '','Hex' => '1F366'), array('iOS2' => '','iOS5' => '🍨','iOS7' => '','Hex' => '1F368'), array('iOS2' => '','iOS5' => '🍧','iOS7' => '','Hex' => '1F367'), array('iOS2' => '','iOS5' => '🎂','iOS7' => '','Hex' => '1F382'), array('iOS2' => '','iOS5' => '🍰','iOS7' => '','Hex' => '1F370'), array('iOS2' => '','iOS5' => '🍪','iOS7' => '','Hex' => '1F36A'), array('iOS2' => '','iOS5' => '🍫','iOS7' => '','Hex' => '1F36B'), array('iOS2' => '','iOS5' => '🍬','iOS7' => '','Hex' => '1F36C'), array('iOS2' => '','iOS5' => '🍭','iOS7' => '','Hex' => '1F36D'), array('iOS2' => '','iOS5' => '🍯','iOS7' => '','Hex' => '1F36F'), array('iOS2' => '','iOS5' => '🍎','iOS7' => '','Hex' => '1F34E'), array('iOS2' => '','iOS5' => '🍏','iOS7' => '','Hex' => '1F34F'), array('iOS2' => '','iOS5' => '🍊','iOS7' => '','Hex' => '1F34A'), array('iOS2' => '','iOS5' => '🍋','iOS7' => '','Hex' => '1F34B'), array('iOS2' => '','iOS5' => '🍒','iOS7' => '','Hex' => '1F352'), array('iOS2' => '','iOS5' => '🍇','iOS7' => '','Hex' => '1F347'), array('iOS2' => '','iOS5' => '🍉','iOS7' => '','Hex' => '1F349'), array('iOS2' => '','iOS5' => '🍓','iOS7' => '','Hex' => '1F353'), array('iOS2' => '','iOS5' => '🍑','iOS7' => '','Hex' => '1F351'), array('iOS2' => '','iOS5' => '🍈','iOS7' => '','Hex' => '1F348'), array('iOS2' => '','iOS5' => '🍌','iOS7' => '','Hex' => '1F34C'), array('iOS2' => '','iOS5' => '🍐','iOS7' => '','Hex' => '1F350'), array('iOS2' => '','iOS5' => '🍍','iOS7' => '','Hex' => '1F34D'), array('iOS2' => '','iOS5' => '🍠','iOS7' => '','Hex' => '1F360'), array('iOS2' => '','iOS5' => '🍆','iOS7' => '','Hex' => '1F346'), array('iOS2' => '','iOS5' => '🍅','iOS7' => '','Hex' => '1F345'), array('iOS2' => '','iOS5' => '🌽','iOS7' => '','Hex' => '1F33D'), array('iOS2' => '','iOS5' => '1⃣','iOS7' => '','Hex' => '0031_20E3'), array('iOS2' => '','iOS5' => '2⃣','iOS7' => '','Hex' => '0032_20E3'), array('iOS2' => '','iOS5' => '3⃣','iOS7' => '','Hex' => '0033_20E3'), array('iOS2' => '','iOS5' => '4⃣','iOS7' => '','Hex' => '0034_20E3'), array('iOS2' => '','iOS5' => '2⃣','iOS7' => '','Hex' => '0032_20E3'), array('iOS2' => '','iOS5' => '0⃣','iOS7' => '','Hex' => '0030_20E3'), array('iOS2' => '','iOS5' => '5⃣','iOS7' => '','Hex' => '0035_20E3'), array('iOS2' => '','iOS5' => '6⃣','iOS7' => '','Hex' => '0036_20E3'), array('iOS2' => '','iOS5' => '7⃣','iOS7' => '','Hex' => '0037_20E3'), array('iOS2' => '','iOS5' => '8⃣','iOS7' => '','Hex' => '0038_20E3'), array('iOS2' => '','iOS5' => '9⃣','iOS7' => '','Hex' => '0039_20E3'), array('iOS2' => '','iOS5' => '🔟','iOS7' => '','Hex' => '1F51F'), array('iOS2' => '','iOS5' => '🔢','iOS7' => '','Hex' => '1F522'), array('iOS2' => '','iOS5' => '#⃣','iOS7' => '','Hex' => '0023_20E3'), array('iOS2' => '','iOS5' => '🔣','iOS7' => '','Hex' => '1F523'), array('iOS2' => '','iOS5' => '⬆','iOS7' => '⬆️','Hex' => '2B06'), array('iOS2' => '','iOS5' => '⬇','iOS7' => '⬇️','Hex' => '2B07'), array('iOS2' => '','iOS5' => '⬅','iOS7' => '⬅️','Hex' => '2B05'), array('iOS2' => '','iOS5' => '➡','iOS7' => '➡️','Hex' => '27A1'), array('iOS2' => '','iOS5' => '🔠','iOS7' => '','Hex' => '1F520'), array('iOS2' => '','iOS5' => '🔡','iOS7' => '','Hex' => '1F521'), array('iOS2' => '','iOS5' => '🔤','iOS7' => '','Hex' => '1F524'), array('iOS2' => '','iOS5' => '↗','iOS7' => '↗️','Hex' => '2197'), array('iOS2' => '','iOS5' => '↖','iOS7' => '↖️','Hex' => '2196'), array('iOS2' => '','iOS5' => '↘','iOS7' => '↘️','Hex' => '2198'), array('iOS2' => '','iOS5' => '↙','iOS7' => '↙️','Hex' => '2199'), array('iOS2' => '','iOS5' => '↔','iOS7' => '↔️','Hex' => '2194'), array('iOS2' => '','iOS5' => '↕','iOS7' => '↕️','Hex' => '2195'), array('iOS2' => '','iOS5' => '🔄','iOS7' => '','Hex' => '1F504'), array('iOS2' => '','iOS5' => '◀','iOS7' => '◀️','Hex' => '25C0'), array('iOS2' => '','iOS5' => '▶','iOS7' => '▶️','Hex' => '25B6'), array('iOS2' => '','iOS5' => '🔼','iOS7' => '','Hex' => '1F53C'), array('iOS2' => '','iOS5' => '🔽','iOS7' => '','Hex' => '1F53D'), array('iOS2' => '','iOS5' => '↩','iOS7' => '↩️','Hex' => '21A9'), array('iOS2' => '','iOS5' => '↪','iOS7' => '↪️','Hex' => '21AA'), array('iOS2' => '','iOS5' => 'ℹ','iOS7' => 'ℹ️','Hex' => '2139'), array('iOS2' => '','iOS5' => '⏪','iOS7' => '','Hex' => '23EA'), array('iOS2' => '','iOS5' => '⏩','iOS7' => '','Hex' => '23E9'), array('iOS2' => '','iOS5' => '⏫','iOS7' => '','Hex' => '23EB'), array('iOS2' => '','iOS5' => '⏬','iOS7' => '','Hex' => '23EC'), array('iOS2' => '','iOS5' => '⤵','iOS7' => '⤵️','Hex' => '2935'), array('iOS2' => '','iOS5' => '⤴','iOS7' => '⤴️','Hex' => '2934'), array('iOS2' => '','iOS5' => '🆗','iOS7' => '','Hex' => '1F197'), array('iOS2' => '','iOS5' => '🔀','iOS7' => '','Hex' => '1F500'), array('iOS2' => '','iOS5' => '🔁','iOS7' => '','Hex' => '1F501'), array('iOS2' => '','iOS5' => '🔂','iOS7' => '','Hex' => '1F502'), array('iOS2' => '','iOS5' => '🆕','iOS7' => '','Hex' => '1F195'), array('iOS2' => '','iOS5' => '🆙','iOS7' => '','Hex' => '1F199'), array('iOS2' => '','iOS5' => '🆒','iOS7' => '','Hex' => '1F192'), array('iOS2' => '','iOS5' => '🆓','iOS7' => '','Hex' => '1F193'), array('iOS2' => '','iOS5' => '🆖','iOS7' => '','Hex' => '1F196'), array('iOS2' => '','iOS5' => '📶','iOS7' => '','Hex' => '1F4F6'), array('iOS2' => '','iOS5' => '🎦','iOS7' => '','Hex' => '1F3A6'), array('iOS2' => '','iOS5' => '🈁','iOS7' => '','Hex' => '1F201'), array('iOS2' => '','iOS5' => '🈯','iOS7' => '🈯️','Hex' => '1F22F'), array('iOS2' => '','iOS5' => '🈳','iOS7' => '','Hex' => '1F233'), array('iOS2' => '','iOS5' => '🈵','iOS7' => '','Hex' => '1F235'), array('iOS2' => '','iOS5' => '🈴','iOS7' => '','Hex' => '1F234'), array('iOS2' => '','iOS5' => '🈲','iOS7' => '','Hex' => '1F232'), array('iOS2' => '','iOS5' => '🉐','iOS7' => '','Hex' => '1F250'), array('iOS2' => '','iOS5' => '🈹','iOS7' => '','Hex' => '1F239'), array('iOS2' => '','iOS5' => '🈺','iOS7' => '','Hex' => '1F23A'), array('iOS2' => '','iOS5' => '🈶','iOS7' => '','Hex' => '1F236'), array('iOS2' => '','iOS5' => '🈚','iOS7' => '🈚️','Hex' => '1F21A'), array('iOS2' => '','iOS5' => '🚻','iOS7' => '','Hex' => '1F6BB'), array('iOS2' => '','iOS5' => '🚹','iOS7' => '','Hex' => '1F6B9'), array('iOS2' => '','iOS5' => '🚺','iOS7' => '','Hex' => '1F6BA'), array('iOS2' => '','iOS5' => '🚼','iOS7' => '','Hex' => '1F6BC'), array('iOS2' => '','iOS5' => '🚾','iOS7' => '','Hex' => '1F6BE'), array('iOS2' => '','iOS5' => '🚰','iOS7' => '','Hex' => '1F6B0'), array('iOS2' => '','iOS5' => '🚮','iOS7' => '','Hex' => '1F6AE'), array('iOS2' => '','iOS5' => '🅿','iOS7' => '🅿️','Hex' => '1F17F'), array('iOS2' => '','iOS5' => '♿','iOS7' => '♿️','Hex' => '267F'), array('iOS2' => '','iOS5' => '🚭','iOS7' => '','Hex' => '1F6AD'), array('iOS2' => '','iOS5' => '🈷','iOS7' => '','Hex' => '1F237'), array('iOS2' => '','iOS5' => '🈸','iOS7' => '','Hex' => '1F238'), array('iOS2' => '','iOS5' => '🈂','iOS7' => '','Hex' => '1F202'), array('iOS2' => '','iOS5' => 'Ⓜ','iOS7' => 'Ⓜ️','Hex' => '24C2'), array('iOS2' => '','iOS5' => '🛂','iOS7' => '','Hex' => '1F6C2'), array('iOS2' => '','iOS5' => '🛄','iOS7' => '','Hex' => '1F6C4'), array('iOS2' => '','iOS5' => '🛅','iOS7' => '','Hex' => '1F6C5'), array('iOS2' => '','iOS5' => '🛃','iOS7' => '','Hex' => '1F6C3'), array('iOS2' => '','iOS5' => '🉑','iOS7' => '','Hex' => '1F251'), array('iOS2' => '','iOS5' => '㊙','iOS7' => '㊙️','Hex' => '3299'), array('iOS2' => '','iOS5' => '㊗','iOS7' => '㊗️','Hex' => '3297'), array('iOS2' => '','iOS5' => '🆑','iOS7' => '','Hex' => '1F191'), array('iOS2' => '','iOS5' => '🆘','iOS7' => '','Hex' => '1F198'), array('iOS2' => '','iOS5' => '🆔','iOS7' => '','Hex' => '1F194'), array('iOS2' => '','iOS5' => '🚫','iOS7' => '','Hex' => '1F6AB'), array('iOS2' => '','iOS5' => '🔞','iOS7' => '','Hex' => '1F51E'), array('iOS2' => '','iOS5' => '📵','iOS7' => '','Hex' => '1F4F5'), array('iOS2' => '','iOS5' => '🚯','iOS7' => '','Hex' => '1F6AF'), array('iOS2' => '','iOS5' => '🚱','iOS7' => '','Hex' => '1F6B1'), array('iOS2' => '','iOS5' => '🚳','iOS7' => '','Hex' => '1F6B3'), array('iOS2' => '','iOS5' => '🚷','iOS7' => '','Hex' => '1F6B7'), array('iOS2' => '','iOS5' => '🚸','iOS7' => '','Hex' => '1F6B8'), array('iOS2' => '','iOS5' => '⛔','iOS7' => '⛔️','Hex' => '26D4'), array('iOS2' => '','iOS5' => '✳','iOS7' => '✳️','Hex' => '2733'), array('iOS2' => '','iOS5' => '❇','iOS7' => '❇️','Hex' => '2747'), array('iOS2' => '','iOS5' => '❎','iOS7' => '','Hex' => '274E'), array('iOS2' => '','iOS5' => '✅','iOS7' => '','Hex' => '2705'), array('iOS2' => '','iOS5' => '✴','iOS7' => '✴️','Hex' => '2734'), array('iOS2' => '','iOS5' => '💟','iOS7' => '','Hex' => '1F49F'), array('iOS2' => '','iOS5' => '🆚','iOS7' => '','Hex' => '1F19A'), array('iOS2' => '','iOS5' => '📳','iOS7' => '','Hex' => '1F4F3'), array('iOS2' => '','iOS5' => '📴','iOS7' => '','Hex' => '1F4F4'), array('iOS2' => '','iOS5' => '🅰','iOS7' => '','Hex' => '1F170'), array('iOS2' => '','iOS5' => '🅱','iOS7' => '','Hex' => '1F171'), array('iOS2' => '','iOS5' => '🆎','iOS7' => '','Hex' => '1F18E'), array('iOS2' => '','iOS5' => '🅾','iOS7' => '','Hex' => '1F17E'), array('iOS2' => '','iOS5' => '💠','iOS7' => '','Hex' => '1F4A0'), array('iOS2' => '','iOS5' => '➿','iOS7' => '','Hex' => '27BF'), array('iOS2' => '','iOS5' => '♻','iOS7' => '♻️','Hex' => '267B'), array('iOS2' => '','iOS5' => '♈','iOS7' => '♈️','Hex' => '2648'), array('iOS2' => '','iOS5' => '♉','iOS7' => '♉️','Hex' => '2649'), array('iOS2' => '','iOS5' => '♊','iOS7' => '♊️','Hex' => '264A'), array('iOS2' => '','iOS5' => '♋','iOS7' => '♋️','Hex' => '264B'), array('iOS2' => '','iOS5' => '♌','iOS7' => '♌️','Hex' => '264C'), array('iOS2' => '','iOS5' => '♍','iOS7' => '♍️','Hex' => '264D'), array('iOS2' => '','iOS5' => '♎','iOS7' => '♎️','Hex' => '264E'), array('iOS2' => '','iOS5' => '♏','iOS7' => '♏️','Hex' => '264F'), array('iOS2' => '','iOS5' => '♐','iOS7' => '♐️','Hex' => '2650'), array('iOS2' => '','iOS5' => '♑','iOS7' => '♑️','Hex' => '2651'), array('iOS2' => '','iOS5' => '♒','iOS7' => '♒️','Hex' => '2652'), array('iOS2' => '','iOS5' => '♓','iOS7' => '♓️','Hex' => '2653'), array('iOS2' => '','iOS5' => '⛎','iOS7' => '','Hex' => '26CE'), array('iOS2' => '','iOS5' => '🔯','iOS7' => '','Hex' => '1F52F'), array('iOS2' => '','iOS5' => '🏧','iOS7' => '','Hex' => '1F3E7'), array('iOS2' => '','iOS5' => '💹','iOS7' => '','Hex' => '1F4B9'), array('iOS2' => '','iOS5' => '💲','iOS7' => '','Hex' => '1F4B2'), array('iOS2' => '','iOS5' => '💱','iOS7' => '','Hex' => '1F4B1'), array('iOS2' => '©','iOS5' => '©','iOS7' => '','Hex' => '00A9'), array('iOS2' => '®','iOS5' => '®','iOS7' => '','Hex' => '00AE'), array('iOS2' => '™','iOS5' => '™','iOS7' => '','Hex' => '2122'), array('iOS2' => '','iOS5' => '〽','iOS7' => '〽️','Hex' => '303D'), array('iOS2' => '','iOS5' => '〰','iOS7' => '','Hex' => '3030'), array('iOS2' => '','iOS5' => '🔝','iOS7' => '','Hex' => '1F51D'), array('iOS2' => '','iOS5' => '🔚','iOS7' => '','Hex' => '1F51A'), array('iOS2' => '','iOS5' => '🔙','iOS7' => '','Hex' => '1F519'), array('iOS2' => '','iOS5' => '🔛','iOS7' => '','Hex' => '1F51B'), array('iOS2' => '','iOS5' => '🔜','iOS7' => '','Hex' => '1F51C'), array('iOS2' => '','iOS5' => '❌','iOS7' => '','Hex' => '274C'), array('iOS2' => '','iOS5' => '⭕','iOS7' => '⭕️','Hex' => '2B55'), array('iOS2' => '','iOS5' => '❗','iOS7' => '❗️','Hex' => '2757'), array('iOS2' => '','iOS5' => '❓','iOS7' => '','Hex' => '2753'), array('iOS2' => '','iOS5' => '❕','iOS7' => '','Hex' => '2755'), array('iOS2' => '','iOS5' => '❔','iOS7' => '','Hex' => '2754'), array('iOS2' => '','iOS5' => '🔃','iOS7' => '','Hex' => '1F503'), array('iOS2' => '','iOS5' => '🕛','iOS7' => '','Hex' => '1F55B'), array('iOS2' => '','iOS5' => '🕧','iOS7' => '','Hex' => '1F567'), array('iOS2' => '','iOS5' => '🕐','iOS7' => '','Hex' => '1F550'), array('iOS2' => '','iOS5' => '🕜','iOS7' => '','Hex' => '1F55C'), array('iOS2' => '','iOS5' => '🕑','iOS7' => '','Hex' => '1F551'), array('iOS2' => '','iOS5' => '🕝','iOS7' => '','Hex' => '1F55D'), array('iOS2' => '','iOS5' => '🕒','iOS7' => '','Hex' => '1F552'), array('iOS2' => '','iOS5' => '🕞','iOS7' => '','Hex' => '1F55E'), array('iOS2' => '','iOS5' => '🕓','iOS7' => '','Hex' => '1F553'), array('iOS2' => '','iOS5' => '🕟','iOS7' => '','Hex' => '1F55F'), array('iOS2' => '','iOS5' => '🕔','iOS7' => '','Hex' => '1F554'), array('iOS2' => '','iOS5' => '🕠','iOS7' => '','Hex' => '1F560'), array('iOS2' => '','iOS5' => '🕕','iOS7' => '','Hex' => '1F555'), array('iOS2' => '','iOS5' => '🕖','iOS7' => '','Hex' => '1F556'), array('iOS2' => '','iOS5' => '🕗','iOS7' => '','Hex' => '1F557'), array('iOS2' => '','iOS5' => '🕘','iOS7' => '','Hex' => '1F558'), array('iOS2' => '','iOS5' => '🕙','iOS7' => '','Hex' => '1F559'), array('iOS2' => '','iOS5' => '🕚','iOS7' => '','Hex' => '1F55A'), array('iOS2' => '','iOS5' => '🕡','iOS7' => '','Hex' => '1F561'), array('iOS2' => '','iOS5' => '🕢','iOS7' => '','Hex' => '1F562'), array('iOS2' => '','iOS5' => '🕣','iOS7' => '','Hex' => '1F563'), array('iOS2' => '','iOS5' => '🕤','iOS7' => '','Hex' => '1F564'), array('iOS2' => '','iOS5' => '🕥','iOS7' => '','Hex' => '1F565'), array('iOS2' => '','iOS5' => '🕦','iOS7' => '','Hex' => '1F566'), array('iOS2' => '','iOS5' => '✖','iOS7' => '✖️','Hex' => '2716'), array('iOS2' => '','iOS5' => '➕','iOS7' => '','Hex' => '2795'), array('iOS2' => '','iOS5' => '➖','iOS7' => '','Hex' => '2796'), array('iOS2' => '','iOS5' => '➗','iOS7' => '','Hex' => '2797'), array('iOS2' => '','iOS5' => '♠','iOS7' => '♠️','Hex' => '2660'), array('iOS2' => '','iOS5' => '♥','iOS7' => '♥️','Hex' => '2665'), array('iOS2' => '','iOS5' => '♣','iOS7' => '♣️','Hex' => '2663'), array('iOS2' => '','iOS5' => '♦','iOS7' => '♦️','Hex' => '2666'), array('iOS2' => '','iOS5' => '💮','iOS7' => '','Hex' => '1F4AE'), array('iOS2' => '','iOS5' => '💯','iOS7' => '','Hex' => '1F4AF'), array('iOS2' => '','iOS5' => '✔','iOS7' => '✔️','Hex' => '2714'), array('iOS2' => '','iOS5' => '☑','iOS7' => '☑️','Hex' => '2611'), array('iOS2' => '','iOS5' => '🔘','iOS7' => '','Hex' => '1F518'), array('iOS2' => '','iOS5' => '🔗','iOS7' => '','Hex' => '1F517'), array('iOS2' => '','iOS5' => '➰','iOS7' => '','Hex' => '27B0'), array('iOS2' => '','iOS5' => '🔱','iOS7' => '','Hex' => '1F531'), array('iOS2' => '','iOS5' => '🔲','iOS7' => '','Hex' => '1F532'), array('iOS2' => '','iOS5' => '🔳','iOS7' => '','Hex' => '1F533'), array('iOS2' => '','iOS5' => '◼','iOS7' => '◼️','Hex' => '25FC'), array('iOS2' => '','iOS5' => '◻','iOS7' => '◻️','Hex' => '25FB'), array('iOS2' => '','iOS5' => '◾','iOS7' => '◾️','Hex' => '25FE'), array('iOS2' => '','iOS5' => '◽','iOS7' => '◽️','Hex' => '25FD'), array('iOS2' => '','iOS5' => '▪','iOS7' => '▪️','Hex' => '25AA'), array('iOS2' => '','iOS5' => '▫','iOS7' => '▫️','Hex' => '25AB'), array('iOS2' => '','iOS5' => '🔺','iOS7' => '','Hex' => '1F53A'), array('iOS2' => '','iOS5' => '⬜','iOS7' => '⬜️','Hex' => '2B1C'), array('iOS2' => '','iOS5' => '⬛','iOS7' => '⬛️','Hex' => '2B1B'), array('iOS2' => '','iOS5' => '⚫','iOS7' => '⚫️','Hex' => '26AB'), array('iOS2' => '','iOS5' => '⚪','iOS7' => '⚪️','Hex' => '26AA'), array('iOS2' => '','iOS5' => '🔴','iOS7' => '','Hex' => '1F534'), array('iOS2' => '','iOS5' => '🔵','iOS7' => '','Hex' => '1F535'), array('iOS2' => '','iOS5' => '🔻','iOS7' => '','Hex' => '1F53B'), array('iOS2' => '','iOS5' => '🔶','iOS7' => '','Hex' => '1F536'), array('iOS2' => '','iOS5' => '🔷','iOS7' => '','Hex' => '1F537'), array('iOS2' => '','iOS5' => '🔸','iOS7' => '','Hex' => '1F538'), array('iOS2' => '','iOS5' => '🔹','iOS7' => '','Hex' => '1F539'), array('iOS2' => '','iOS5' => '⁉','iOS7' => '⁉️','Hex' => '2049'), array('iOS2' => '','iOS5' => '‼','iOS7' => '‼️','Hex' => '203C'));\n}",
"public function getEmojiSets() {\n if (!isset($this->emojiSets)) {\n $root = '/plugins/emojiextender/emoji';\n\n $this->addEmojiSet(\n '',\n [\n 'name' => 'Apple Emoji',\n 'author' => 'Apple Inc.',\n 'description' => 'A modern set of emoji you might recognize from any of your ubiquitous iDevices.',\n 'icon' => 'icon.png',\n\n ],\n '/resources/emoji'\n );\n\n $this->addEmojiSet('twitter', PATH_ROOT . \"$root/twitter/manifest.php\", \"$root/twitter\");\n $this->addEmojiSet('little', PATH_ROOT . \"$root/little/manifest.php\", \"$root/little\");\n $this->addEmojiSet('rice', PATH_ROOT . \"$root/rice/manifest.php\", \"$root/rice\");\n $this->addEmojiSet('yahoo', PATH_ROOT . \"$root/yahoo/manifest.php\", \"$root/yahoo\");\n\n $this->fireEvent('Init');\n\n $this->addEmojiSet('none', PATH_ROOT . \"$root/none/manifest.php\", \"$root/none\");\n }\n\n return $this->emojiSets;\n }",
"protected function getEmojiCodeList() \n {\n return [\n // Various 'older' charactes, dingbats etc. which over time have\n // received an additional emoji representation.\n 0x203c,\n 0x2049,\n 0x2122,\n 0x2139,\n range(0x2194, 0x2199),\n range(0x21a9, 0x21aa),\n range(0x231a, 0x231b),\n 0x2328,\n range(0x23ce, 0x23cf),\n range(0x23e9, 0x23f3),\n range(0x23f8, 0x23fa),\n 0x24c2,\n range(0x25aa, 0x25ab),\n 0x25b6,\n 0x25c0,\n range(0x25fb, 0x25fe),\n range(0x2600, 0x2604),\n 0x260e,\n 0x2611,\n range(0x2614, 0x2615),\n 0x2618,\n 0x261d,\n 0x2620,\n range(0x2622, 0x2623),\n 0x2626,\n 0x262a,\n range(0x262e, 0x262f),\n range(0x2638, 0x263a),\n 0x2640,\n 0x2642,\n range(0x2648, 0x2653),\n 0x2660,\n 0x2663,\n range(0x2665, 0x2666),\n 0x2668,\n 0x267b,\n 0x267f,\n range(0x2692, 0x2697),\n 0x2699,\n range(0x269b, 0x269c),\n range(0x26a0, 0x26a1),\n range(0x26aa, 0x26ab),\n range(0x26b0, 0x26b1),\n range(0x26bd, 0x26be),\n range(0x26c4, 0x26c5),\n 0x26c8,\n range(0x26ce, 0x26cf),\n 0x26d1,\n range(0x26d3, 0x26d4),\n range(0x26e9, 0x26ea),\n range(0x26f0, 0x26f5),\n range(0x26f7, 0x26fa),\n 0x26fd,\n 0x2702,\n 0x2705,\n range(0x2708, 0x270d),\n 0x270f,\n 0x2712,\n 0x2714,\n 0x2716,\n 0x271d,\n 0x2721,\n 0x2728,\n range(0x2733, 0x2734),\n 0x2744,\n 0x2747,\n 0x274c,\n 0x274e,\n range(0x2753, 0x2755),\n 0x2757,\n range(0x2763, 0x2764),\n range(0x2795, 0x2797),\n 0x27a1,\n 0x27b0,\n 0x27bf,\n range(0x2934, 0x2935),\n range(0x2b05, 0x2b07),\n range(0x2b1b, 0x2b1c),\n 0x2b50,\n 0x2b55,\n 0x3030,\n 0x303d,\n 0x3297,\n 0x3299,\n // Modifier for emoji sequences.\n 0x200d,\n 0x20e3,\n 0xfe0f,\n // 'Regular' emoji unicode space, containing the bulk of them.\n range(0x1f000, 0x1f9cf),\n // Egyptian Hieroglyphs\n range(0x13000, 0x1340C),\n // Dingbats\n range(0x2700, 0x27BF),\n ];\n }",
"public static function getEmoticonsByText() {\r\n \r\n $smilies = []; \r\n $ext = \"gif\";\r\n $path = \"<img src='//static.railpage.com.au/images/smiles/%s.%s' class='emoticon'>\"; \r\n \r\n foreach (self::getEmoticons() as $file => $emoticons) {\r\n foreach ($emoticons as $text) {\r\n $smilies[$text] = sprintf($path, $file, $ext); \r\n }\r\n }\r\n \r\n return $smilies; \r\n \r\n }",
"function _print_emoji_detection_script()\n{\n}",
"public function find_emoticons()\n {\n if (!is_null($this->EMOTICON_CACHE)) {\n return $this->EMOTICON_CACHE;\n }\n $rows = $this->connection->query_select('smilies', array('*'));\n $this->EMOTICON_CACHE = array();\n foreach ($rows as $myrow) {\n $src = str_replace('{imagefolder}' . '/', 'images/', $myrow['smiliepath']);\n if (url_is_local($src)) {\n $src = $this->get_emo_dir() . $src;\n }\n $this->EMOTICON_CACHE[$myrow['smiliecode']] = array('EMOTICON_IMG_CODE_DIR', $src, $myrow['smiliecode']);\n }\n uksort($this->EMOTICON_CACHE, '_strlen_sort');\n $this->EMOTICON_CACHE = array_reverse($this->EMOTICON_CACHE);\n return $this->EMOTICON_CACHE;\n }",
"function _print_emoji_detection_script() {}",
"public function getFileAsArray() {\n return json_decode(file_get_contents($this->folder . $this->lang . $this->ext), true);\n }",
"public function extract() {\n\t\t$this->strings = array();\n\t\tforeach ($this->files as $file) {\n\t\t\t$content = file_get_contents($file);\n\t\t\tif ($content == '')\n\t\t\t\tthrow new Exception('can not get file content: ' . $content);\n\n\t\t\t$strings = array();\n\n\t\t\t//drop svg\n\t\t\t$content = preg_replace('|<path.*/>|i', '', $content);\n\n\t\t\t//drop exceptions\n\t\t\t$content = preg_replace('|\\/\\/no-translate BEGIN[\\s\\S]+?\\/\\/no-translate END|mi', '', $content);\n\n\t\t\t//drop\n\t\t\t$content = stripslashes($content);\n\n\t\t\tif (stripos($file, '.js') !== false) {\n\t\t\t\t//json\n\n\t\t\t\t$ignore_matches = [\n\t\t\t\t\t'\\.addEventListener',\n\t\t\t\t\t'\\.style\\.',\n\t\t\t\t\t'aria-label',\n\t\t\t\t\t'\\.font',\n\t\t\t\t];\n\t\t\t\tforeach ($ignore_matches as $ignore_match) {\n\t\t\t\t\t$content = preg_replace('/' . $ignore_match . '.*/', '', $content);\n\t\t\t\t}\n\n\t\t\t\t$content = preg_replace('|[\\r\\n][ \\t]*//.*|', \"\\n\", $content);\n\n\t\t\t\t//extract between ' '\n\t\t\t\t$out = array();\n\t\t\t\tpreg_match_all(\"/[']([^']*)[']/\", $content, $out);\n\t\t\t\t$strings = array_merge($strings, $out[1]);\n\n\t\t\t\t//extract between \" \"\n\t\t\t\t$out = array();\n\t\t\t\tpreg_match_all('/[\"]([^\"]*)[\"]/', $content, $out);\n\t\t\t\t$strings = array_merge($strings, $out[1]);\n\t\t\t}\n\t\t\tif (stripos($file, '.htm') !== false || true) {\n\t\t\t\t//html\n\t\t\t\t$ignore_attributes = [\n\t\t\t\t\t'dir',\n\t\t\t\t\t'lang',\n\t\t\t\t\t'http-equiv',\n\t\t\t\t\t'content',\n\t\t\t\t\t'name',\n\t\t\t\t\t'rel',\n\t\t\t\t\t'style',\n\t\t\t\t\t'onclick',\n\t\t\t\t\t'type',\n\t\t\t\t\t'class',\n\t\t\t\t\t'id',\n\t\t\t\t\t'href',\n\t\t\t\t\t'onchange',\n\t\t\t\t\t'onKeyUp',\n\t\t\t\t\t'oninput',\n\t\t\t\t\t'src',\n\t\t\t\t\t'aria-label',\n\t\t\t\t];\n\t\t\t\tforeach ($ignore_attributes as $ignore_attribute) {\n\t\t\t\t\t$content = preg_replace('/' . $ignore_attribute . '=\"[^\"]*\"/', '', $content);\n\t\t\t\t}\n\n\t\t\t\t//extract between \" \"\n\t\t\t\t$out = array();\n\t\t\t\tpreg_match_all('/[\"]([^\"]*)[\"]/', $content, $out);\n\t\t\t\t//$strings = array_merge($strings, $out[1]);\n\t\t\t\t//extract between > <\n\t\t\t\t$out = array();\n\t\t\t\tpreg_match_all('|>([^<]{1,200})<[^ ]|', $content, $out);\n\t\t\t\t$strings = array_merge($strings, $out[1]);\n\t\t\t}\n\n\t\t\tforeach ($strings as $string) {\n\t\t\t\tif (trim($string) == '' || substr($string, 0, 2) == './')\n\t\t\t\t\tcontinue;\n\n\t\t\t\t//remove tags\n\t\t\t\t$string = preg_replace('/<[^>]*>/', ' ', $string);\n\t\t\t\t$string = trim($string);\n\n\t\t\t\t$this->strings[] = $string;\n\t\t\t}\n\t\t}\n\n\t\t$this->strings = array_unique($this->strings);\n\t\tsort($this->strings);\n\t}",
"protected function loadGlyphList() {\r\n $this->glyph_list = array(); \r\n $a = $this->load_file('PDF_CORE','glyphlist.txt');\r\n foreach ($a as $l) {\r\n $l = trim($l);\r\n if (strpos($l,'#')===0) {\r\n continue;\r\n }\r\n $e = explode(\";\",rtrim($l));\r\n $cps = explode(' ',trim($e[1]));\r\n foreach ($cps as $n=>$cp) {\r\n $cps[$n] = hexdec($cp);\r\n }\r\n $this->glyph_list[$e[0]] = $cps;\r\n }\r\n }",
"public static function default_emoticons()\r\n\t{\r\n\t\tglobal $config;\r\n\t\t\r\n\t\treturn array(\r\n\t\t\t\":)\" \t\t=> $config['BaseURL'] . \"/template/style/images/emoticons/smile.png\",\r\n\t\t\t\":angel:\" \t=> $config['BaseURL'] . \"/template/style/images/emoticons/angel.png\",\r\n\t\t\t\":angry:\" \t=> $config['BaseURL'] . \"/template/style/images/emoticons/angry.png\",\r\n\t\t\t\"8-)\" \t\t=> $config['BaseURL'] . \"/template/style/images/emoticons/cool.png\",\r\n\t\t\t\":'(\"\t \t=> $config['BaseURL'] . \"/template/style/images/emoticons/cwy.png\",\r\n\t\t\t\":ermm:\" \t=> $config['BaseURL'] . \"/template/style/images/emoticons/ermm.png\",\r\n\t\t\t\":D\" \t\t=> $config['BaseURL'] . \"/template/style/images/emoticons/grin.png\",\r\n\t\t\t\"<3\" \t\t=> $config['BaseURL'] . \"/template/style/images/emoticons/heart.png\",\r\n\t\t\t\":(\" \t\t=> $config['BaseURL'] . \"/template/style/images/emoticons/sad.png\",\r\n\t\t\t\":O\" \t\t=> $config['BaseURL'] . \"/template/style/images/emoticons/shocked.png\",\r\n\t\t\t\":P\" \t\t=> $config['BaseURL'] . \"/template/style/images/emoticons/tongue.png\",\r\n\t\t\t\";)\" \t\t=> $config['BaseURL'] . \"/template/style/images/emoticons/wink.png\",\r\n\t\t\t\":alien:\" \t=> $config['BaseURL'] . \"/template/style/images/emoticons/alien.png\",\r\n\t\t\t\":blink:\" \t=> $config['BaseURL'] . \"/template/style/images/emoticons/blink.png\",\r\n\t\t\t\":blush:\" \t=> $config['BaseURL'] . \"/template/style/images/emoticons/blush.png\",\r\n\t\t\t\":cheerful:\" => $config['BaseURL'] . \"/template/style/images/emoticons/cheerful.png\",\r\n\t\t\t\":devil:\" \t=> $config['BaseURL'] . \"/template/style/images/emoticons/devil.png\",\r\n\t\t\t\":dizzy:\" \t=> $config['BaseURL'] . \"/template/style/images/emoticons/dizzy.png\",\r\n\t\t\t\":getlost:\" => $config['BaseURL'] . \"/template/style/images/emoticons/getlost.png\",\r\n\t\t\t\":happy:\" \t=> $config['BaseURL'] . \"/template/style/images/emoticons/happy.png\",\r\n\t\t\t\":kissing:\" => $config['BaseURL'] . \"/template/style/images/emoticons/kissing.png\",\r\n\t\t\t\":ninja:\" \t=> $config['BaseURL'] . \"/template/style/images/emoticons/ninja.png\",\r\n\t\t\t\":pinch:\" \t=> $config['BaseURL'] . \"/template/style/images/emoticons/pinch.png\",\r\n\t\t\t\":pouty:\" \t=> $config['BaseURL'] . \"/template/style/images/emoticons/pouty.png\",\r\n\t\t\t\":sick:\" \t=> $config['BaseURL'] . \"/template/style/images/emoticons/sick.png\",\r\n\t\t\t\":sideways:\" => $config['BaseURL'] . \"/template/style/images/emoticons/sideways.png\",\r\n\t\t\t\":silly:\" \t=> $config['BaseURL'] . \"/template/style/images/emoticons/silly.png\",\r\n\t\t\t\":sleeping:\" => $config['BaseURL'] . \"/template/style/images/emoticons/sleeping.png\",\r\n\t\t\t\":unsure:\" \t=> $config['BaseURL'] . \"/template/style/images/emoticons/unsure.png\",\r\n\t\t\t\":woot:\" \t=> $config['BaseURL'] . \"/template/style/images/emoticons/w00t.png\",\r\n\t\t\t\":wassat:\" \t=> $config['BaseURL'] . \"/template/style/images/emoticons/wassat.png\",\r\n\t\t\t\":whistling:\" => $config['BaseURL'] . \"/template/style/images/emoticons/whistling.png\",\r\n\t\t\t\":love:\" \t=> $config['BaseURL'] . \"/template/style/images/emoticons/wub.png\"\r\n\t\t);\r\n\t}",
"function fetch_fontlist()\n\t{\n\t\t$path = APPPATH.'/fonts/';\n\n\t\t$font_files = array();\n\n\t\tif ($fp = @opendir($path))\n\t\t{\n\t\t\twhile (false !== ($file = readdir($fp)))\n\t\t\t{\n\t\t\t\tif (stripos(substr($file, -4), '.ttf') !== FALSE)\n\t\t\t\t{\n\t\t\t\t\t$name = substr($file, 0, -4);\n\t\t\t\t\t$name = ucwords(str_replace(\"_\", \" \", $name));\n\n\t\t\t\t\t$font_files[$file] = $name;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tclosedir($fp);\n\t\t}\n\n\t\treturn $font_files;\n\t}",
"function imagepsloadfont(string $filename) {}",
"public abstract function loadStrings($file);",
"public function testEmoji13_0() {\n # https://emojipedia.org/emoji-13.0/\n $string = '🫁 🤌🏽 🤵🏾♀️';\n $emojis = detect_emoji($string);\n $this->assertCount(3, $emojis);\n $this->assertSame('lungs', $emojis[0]['short_name']);\n $this->assertSame('pinched_fingers', $emojis[1]['short_name']);\n $this->assertSame('skin-tone-4', $emojis[1]['skin_tone']);\n $this->assertSame('woman_in_tuxedo', $emojis[2]['short_name']);\n $this->assertSame('skin-tone-5', $emojis[2]['skin_tone']);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
function validateRegistrationForm Insert a new valid affiliate into the database Args: none Return: none | private function insertNewAffiliate() {
$queryVals = array(
'~company' => prepDB($this->registrationForm['company']),
'~first' => prepDB($this->registrationForm['first']),
'~last' => prepDB($this->registrationForm['last']),
'~phone' => prepDB($this->registrationForm['phone']),
'~fax' => prepDB($this->registrationForm['fax']),
'~email' => prepDB($this->registrationForm['email']),
'~website' => prepDB($this->registrationForm['website']),
'~password' => prepDB($this->registrationForm['password']),
'~address1' => prepDB($this->registrationForm['address1']),
'~address2' => prepDB($this->registrationForm['address2']),
'~city' => prepDB($this->registrationForm['city']),
'~state' => prepDB($this->registrationForm['state']),
'~postal' => prepDB($this->registrationForm['postal']),
'~country' => prepDB($this->registrationForm['country']),
'agreeTerms' => prepDB($this->registrationForm['agreeTerms']),
'agreePolicy' => prepDB($this->registrationForm['agreePolicy']),
'isOverAge' => prepDB($this->registrationForm['isOverAge']),
'entryDate' => 'NOW()'
);
$this->dbh->perform('affiliates', $queryVals);
} | [
"private function validateRegistrationForm() {\n\t\t\t$require = $this->requiredRegistrationFields;\n\t\t\t$this->checkRequired($require);\n\t\t\t// country/state/postal info\n\t\t\t// this removes state from missing array if international\n\t\t\tif ($this->registrationForm['country'] == 'USA') {\n\t\t\t\t// US postal code incorrect length\n\t\t\t\tif (!is_numeric($this->registrationForm['postal']) || strlen($this->registrationForm['postal']) < 5) {\n\t\t\t\t\t$this->errorMsgs[] = 'Invalid zip code';\n\t\t\t\t\taddErrorField('postal');\n\t\t\t\t}\n\t\t\t\t// Valid state code abbreviation\n\t\t\t\tif (!($this->registrationForm['state']) || strlen($this->registrationForm['state']) > 2) {\n\t\t\t\t\t$this->errorMsgs[] = 'Invalid state';\n\t\t\t\t\taddErrorField('state');\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tremoveFromArray($this->missing, 'state');\n\t\t\t\t$this->registrationForm['state'] = '';\n\t\t\t}\n\t\t\t// check email\n\t\t\tif (!validEmail($this->registrationForm['email'])) {\n\t\t\t\t$this->errorMsgs[] = 'Please enter a valid email address';\n\t\t\t\taddErrorField('email');\n\t\t\t} else {\n\t\t\t\t// check for existing email\n\t\t\t\t$result = $this->dbh->query(\"SELECT * FROM `affiliates` WHERE `email` = '\".prepDB($this->registrationForm['email']).\"'\");\n\t\t\t\tif ($result->rowCount) {\n\t\t\t\t\t$this->errorMsgs[] = 'The email address already exists, please enter a new one or sign in';\n\t\t\t\t\taddErrorField('email');\n\t\t\t\t} else {\n\t\t\t\t\t// login defaults to email\n\t\t\t\t\tif (!$this->registrationForm['login']) {\n\t\t\t\t\t\t$this->registrationForm['login'] = $this->registrationForm['email'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// password confirmation\n\t\t\tif (!$this->registrationForm['password'] || $this->registrationForm['password'] != $this->registrationForm['confPassword']) {\n\t\t\t\tif ($this->registrationForm['password'] != $this->registrationForm['confPassword']) $this->errorMsgs[] = 'Password confirmation does not match';\n\t\t\t\taddErrorField('password');\n\t\t\t\taddErrorField('confirmPassword');\n\t\t\t}\n\t\t\tif (!empty($this->missing)) $this->errorMsgs[] = 'Missing required information';\n\t\t}",
"function validateAddFinancialAid()\n{\n $db = new Database();\n\n $errors = array();\n\n if(!($_POST['resource_name'] == null) || !($_POST['resource_name'] == \"\")) {\n $resource_name = $_POST['resource_name'];\n } else {\n array_push($errors,\"Please enter a resource name\");\n }\n\n if(!($_POST['resource_info'] == null) || !($_POST['resource_info'] == \"\")) {\n $resource_info = $_POST['resource_info'];\n } else {\n array_push($errors,\"Please enter a description for this resource\");\n }\n\n if(isset($_POST[\"resource_link\"]) && $_POST['resource_link'] != \"\") {\n if (filter_var($_POST[\"resource_link\"], FILTER_VALIDATE_URL)===false) {\n array_push($errors,\"Please enter a valid link\");\n } else {\n $resource_link = $_POST['resource_link'];\n }\n }\n\n if(sizeof($errors) > 0) {\n return $errors;\n } else {\n $active = 1;\n\n $db->insertIntoFinancialAid($resource_name, $resource_info,\n $resource_link, 1);\n\n return true;\n }\n}",
"private function newAffiliate($affiliates)\n\t{\n\t\t\n\t\t$audit = \\Audit::instance();\n\t\t$this->f3->scrub($_POST);\n\t\t$this->f3->set('SESSION.flash',array());\n\t\t\n\t\t// validate form\n\t\tif ( !preg_match(\"/^[\\w\\- ]{2,30}$/\", $this->f3->get('POST.name')) )\n\t\t\t$this->f3->push('SESSION.flash',array('type'=>'warning','msg'=>'Invalid name.'));\n\t\tif ( !$audit->email($this->f3->get('POST.email'), FALSE) )\n\t\t\t$this->f3->push('SESSION.flash',array('type'=>'warning','msg'=>'Invalid email address'));\n\t\tif ( !preg_match(\"/^.{2,30}$/\", $this->f3->get('POST.tcgname')) )\n\t\t\t$this->f3->push('SESSION.flash',array('type'=>'warning','msg'=>'Invalid TCG Name.'));\n\t\tif ( !$audit->url($this->f3->get('POST.url')) )\n\t\t\t$this->f3->push('SESSION.flash',array('type'=>'warning','msg'=>'Invalid URL.'));\n\t\tif ( !$audit->url($this->f3->get('POST.button')) )\n\t\t\t$this->f3->push('SESSION.flash',array('type'=>'warning','msg'=>'Invalid button URL.'));\n\t\tif ( !in_array($this->f3->get('POST.status'),$this->f3->get('affiliates_status')) )\n\t\t\t$this->f3->push('SESSION.flash',array('type'=>'warning','msg'=>'Invalid status.'));\n\t\t\n\t\t// process form if there are no errors\n\t\tif ( count($this->f3->get('SESSION.flash')) === 0 ) {\n\t\t\t\n\t\t\t// save to db\n\t\t\tif ( $affiliates->add() ) {\n\t\t\t\t$this->f3->push('SESSION.flash',array('type'=>'success','msg'=>'The new affiliate has been added successfully!'));\n\t\t\t} else {\n\t\t\t\t$this->f3->push('SESSION.flash',array('type'=>'danger','msg'=>'There was a problem processing the request. Please try again.'));\n\t\t\t}\n\t\t}\n\n\t}",
"public function validateRegistration()\n\t{\n\t\t$competitor = ActualCompetitor::model()->findByAttributes(array(\n\t\t\t'registration_id'=>$this->registration,\n\t\t\t'competition_id'=>$this->competition,\n\t\t));\n\n\t\tif ($competitor !== null)\n\t\t\t$this->addError('competition', Yii::t('competition', 'Du har redan anmält dig till denna tävling'));\n\t}",
"function culturefeed_uitpas_user_register_form_validate(&$form, &$form_state) {\n\n $number = str_replace(' ', '', $form_state['values']['uitpasnumber']);\n $dob = $form_state['values']['dob']['year'] . '-' . $form_state['values']['dob']['month'] . '-' . $form_state['values']['dob']['day'];\n $dob = new DateTime($dob);\n\n $cf = DrupalCultureFeed::getConsumerInstance();\n if ($number) {\n\n try {\n\n $callback_options = array(\n 'query' => array('isnewpassholder' => 'true'),\n 'absolute' => TRUE,\n );\n $callback_url = url('culturefeed/oauth/authorize', $callback_options);\n\n $activation_data = new CultureFeed_Uitpas_Passholder_Query_ActivationData();\n $activation_data->uitpasNumber = $number;\n $activation_data->dob = $dob;\n\n $link = $cf->uitpas()->getPassholderActivationLink($activation_data, function () use ($cf, $callback_url) {\n\n $token = $cf->getRequestToken($callback_url);\n\n $_SESSION['oauth_token'] = $token['oauth_token'];\n $_SESSION['oauth_token_secret'] = $token['oauth_token_secret'];\n\n $auth_url = $cf->getUrlAuthorize($token, $callback_url, CultureFeed::AUTHORIZE_TYPE_REGULAR, TRUE);\n\n return $auth_url;\n\n });\n\n $form_state['values']['link'] = $link;\n\n }\n catch (CultureFeed_Exception $e) {\n\n switch ($e->error_code) {\n case 'INVALID_DOB':\n $error = variable_get('culturefeed_uitpas_user_register_validation_invalid_dob', t('Invalid date of birth.'));\n form_set_error('dob', $error);\n break;\n\n case 'PARSE_INVALID_UITPASNUMBER':\n $error = variable_get('culturefeed_uitpas_user_register_validation_parse_invalid_uitpasnumber', t('Invalid UiTPAS number.'));\n form_set_error('number', $error);\n break;\n\n case 'USER_ALREADY_ACTIVATED':\n $error = variable_get('culturefeed_uitpas_user_register_validation_user_already_activated', t('User already activated.'));\n form_set_error('number', $error);\n break;\n\n case 'MISSING_REQUIRED_FIELDS':\n $error = variable_get('culturefeed_uitpas_user_register_validation_user_missing_required_fields', t('Missing required fields.'));\n form_error($form, $error);\n break;\n\n case 'PARSE_INVALID_DATE':\n $error = variable_get('culturefeed_uitpas_user_register_validation_parse_invalid_date', t('Invalid date.'));\n form_set_error('dob', $error);\n break;\n\n case 'UNKNOWN_UITPASNUMBER':\n $error = variable_get('culturefeed_uitpas_user_register_validation_unknown_uitpasnumber', t('Unknown UiTPAS number.'));\n form_set_error('number', $error);\n break;\n\n case 'ACTION_FAILED':\n $error = variable_get('culturefeed_uitpas_user_register_validation_action_failed', t('Action failed.'));\n form_error($form, $error);\n break;\n\n default:\n form_error($form, t('We are unable to process your request at this moment. Please try again later.'));\n watchdog(__FUNCTION__, 'Unexpected error code when validating UiTPAS: @code', array('@code' => $e->error_code), WATCHDOG_WARNING);\n }\n }\n catch (Exception $e) {\n form_error($form, t('We are unable to process your request at this moment. Please try again later.'));\n watchdog_exception('culturefeed_uitpas_user_register_form_validate', $e);\n }\n }\n\n}",
"function insert_form_data( $action ){\n global $conn ; \n //echo\"uid->\".$uid ;\n /*\n * fetching the input credentials from form \n */\n $user_id =( isset( $_POST['decoy_user_id'] ) )?$_POST['decoy_user_id']:0 ;\n $name = $_POST['name'] ;\n $gender=$_POST['gender'];\n $age= $_POST['age'];\n $address=$_POST['address'] ;\n \n $mobileNumber=$_POST['mobile'];\n $passNumber=$_POST['pass_no']; \n \n $regDay = $_POST['reg_date']; \n $regMonth=$_POST['reg_month'];\n $regYear =$_POST['reg_year'] ;\n \n $registerBy=$_POST['registrar_name'] ;\n \n $area= $_POST['area'] ;\n $city=$_POST['city'] ;\n \n $amountPaid=$_POST['amt_paid'] ;\n $amountDue=$_POST['amt_due'] ;\n \n $status=$_POST['registration_type'] ; \n $email =$_POST['email'] ;\n $occupation = $_POST['occupation'] ;\n /*\n * pushing fetched values into the database\n */ \n \n if( $action =='update' ){\n /**\n * Intiate UPDATE query\n */\n $query='UPDATE registration_details \n SET registration_type = \"'.$status.'\",\n pass_no = \"'.$passNumber.'\" ,\n name = \"'.$name.'\" ,\n registrar_name = \"'.$registerBy.'\",\n reg_date = \"'.$regDay.'\",\n reg_month = \"'.$regMonth.'\" ,\n reg_year = \"'.$regYear.'\" ,\n address = \"'.$address.'\" ,\n area = \"'.$area.'\",\n city = \"'.$city.'\" ,\n gender = \"'.$gender.'\",\n age = \"'.$age.'\",\n occupation = \"'.$occupation.'\",\n mobile = \"'.$mobileNumber.'\",\n email = \"'.$email.'\" ,\n amt_paid = \"'.$amountPaid.'\" ,\n amt_due = \"'.$amountDue.'\" WHERE user_id = '.$user_id ;\n \n\n }else{\n \n $query=\"INSERT INTO registration_details(\n `registration_type`,\n `pass_no`,\n `name`,\n `registrar_name`\n ,`reg_date`\n ,`reg_month`,\n `reg_year` ,\n `address`,\n `area`,\n `city`,\n `gender`,\n `age`,\n `occupation`,\n `mobile`,\n `email`,\n `amt_paid`,\n `amt_due`\n )VALUES(\n '$status',\n '$passNumber',\n '$name',\n '$registerBy',\n '$regDay',\n '$regMonth',\n '$regYear',\n '$address',\n '$area',\n '$city',\n '$gender',\n '$age',\n '$occupation',\n '$mobileNumber',\n '$email',\n '$amountPaid',\n '$amountDue'\n )\";\n }\n\n /*querying the sql query*/\n if( $result=mysqli_query( $conn , $query ) ){\n\n $last_auto_user_id = mysqli_insert_id( $conn ) ;\n insert_key( $last_auto_user_id ) ;\n }else{\n die(\"failed to perfomr query..\") ;\n }\n \n \n \n}",
"public function validateInsert(){}",
"public function validateInsert() {}",
"private function insert() {\n\n\t\t$post = $this->input->post();\n\n\t\t// Registration data.\n\t\t$data = array(\n\t\t\t'church' => (int) $post['church'],\n\t\t\t'name' => trim( $post['name'] ),\n\t\t\t'gender' => $post['gender'] === 'F' ? 'F' : 'M',\n\t\t\t'age' => (int) $post['age'],\n\t\t\t'accommodation' => $post['accommodation'] ? 1 : 0,\n\t\t\t'hot_water' => isset( $post['hot_water'] ) ? 1 : 0,\n\t\t\t'milk' => isset( $post['milk'] ) ? 1 : 0,\n\t\t\t'inserted_by' => $this->session->userdata( 'user_id' )? $this->session->userdata( 'user_id' ) : null,\n\t\t);\n\n\t\t// Insert attendee personal data and get attendee id.\n\t\t$attendee_id = $this->registration_model->register( $data );\n\t\t// If attendee added, insert date and time.\n\t\tif ( $attendee_id ) {\n\t\t\t$this->insert_dates_time( $attendee_id, $post['day'] );\n\t\t}\n\n\t\treturn ( ! empty( $attendee_id ) );\n\t}",
"function reg_form2_insert() {\n\tif($this->name!=\"\"){\n\t$sql = \"insert into registeration (class_id,name,address,city,state,country,phone,fax,email,driver_license,driver_license_state,social_security,dob,interest1,interest2,interest3)\";\n\t$sql .= \" values ('\" .$this->selectedclassid. \"','\" .$this->name. \"','\" .$this->address. \"','\" .$this->city. \"','\" .$this->state. \"','\" .$this->country. \"','\" .$this->phone. \"','\" .$this->fax. \"','\" .$this->email. \"','\" .$this->driver_license. \"','\" .$this->driver_license_state. \"','\" .$this->social_security. \"','\" .$this->dob. \"','\" .$this->interest1. \"','\" .$this->interest2. \"','\" .$this->interest3. \"')\";\n\t$this->db->setQry($sql);\n\t$this->reg_id= $this->db->getNewid();\n\treturn $this->reg_id;// IF inserted Successfully to db\n\t}\n\telse{\n\treturn 0;// No data entered so output 0\n\t}\n\t}",
"function hook_signup_insert($signup) {\n // TODO\n}",
"function register($redirect){\n\n\t\t\tglobal $jdb ;\n\n\t\t\t// To check the form submission is coming from our script. yes im pro xD\n\n\n\n\t\t\t// Full Url of the the original / our Registration Page ;\n\t\t\t$current = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] ;\n\n\t\t\t// Full url of the page the form was submitted from :\n\t\t\t$referrer = $_SERVER['HTTP_REFERER'] ;\n\n\n\t\t\t// Check is the post is empty or contains some array :\n\n\t\t\tif (!empty($_POST)) {\n\n\n\n\t\t\t\tif ($referrer == $current) {\n\n\t\t\t\t\trequire_once('db.php') ;\n\n\n\t\t\t\t$table = \"Seller\" ;\n\n\t\t\t\t// fields\n\t\t\t\t$fields = array('sname', 'user_name' , 'user_password' , 'phone' , 'email' ) ;\n\n\t\t\t\t// clean the post array from any dangerous character or to prevent sql injection\n\n\t\t\t\t$values = $jdb->clean($_POST) ;\n\n\t\t\t\t// Getting seperate values from the post .\n\n\n\t\t\t\t$sname = $values['sname'] ;\n\t\t\t\t$user_name = $values['user_name'] ;\n\t\t\t\t$user_password = \t $values['user_password'] ;\n\t\t\t\t$phone = $values['phone'] ;\n\t\t\t\t$email = $values['email'] ;\n\n\t\t\t\t// creating an 128 bit \tnonce which is unique for every user using md5 algorithm (message digest)\n\t\t\t\t$nonce = md5('registeration-seller-' . $user_name . NONCE_SALT) ;\n\n\n\t\t\t\t// the above nonce + sitekey is used to create a secured hashed password .\n\t\t\t\t// hashing password\n\n\t\t\t\t$user_password = $jdb->hash_passwd($user_password, $nonce) ;\n\n\t\t\t\t//recompile values\n\t\t\t\t$values = array('sname'=>$sname , 'user_name'=>$user_name , 'user_password'=>$user_password , 'phone'=>$phone , 'email'=>$email ) ;\n\n\t\t\t\t $conn = $jdb->connect() ;\n\n\t\t\t\t$result = $jdb->insert($conn , $table , $fields , $values) ;\n\n\t\t\t\tif ($result == TRUE) {\n\n\t\t\t\t\t// Redirecting\n\t\t\t\t\t$url = \"http://\".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] ;\n\n\t\t\t\t\t// string the redirecting url in redirect\n\t\t\t\t\t// \"login.php\" ===> \"http://www.flipkart.com/login.php\" where \"http://www.flipkart.com/register.php\" ==> \"http://www.flipkart.com/login.php\"\n\t\t\t\t\t$redirect = str_replace('register.php', $redirect, $url) ;\n\n\t\t\t\t\theader(\"Location: $redirect?reg=true\") ;\n\t\t\t\t\texit ;\n\t\t\t\t }\n\n\n \t\t}\n\n\n \t\telse {\n \t\t\tdie('Your form submissiondid not come from your/original page') ;\n \t\t}\n\n\t\t\t }\n\n\t\t}",
"public function ValidatorInsertDBsuccesfull(){\n }",
"function reg_form3_insert() {\n\tif($this->name!=\"\"){\n\t$sql = \"insert into registeration (class_id,name,address,city,state,country,phone,fax,email,driver_license,driver_license_state,social_security,dob,interest1,interest2,interest3)\";\n\t$sql .= \" values ('\" .$this->selectedclassid. \"','\" .$this->name. \"','\" .$this->address. \"','\" .$this->city. \"','\" .$this->state. \"','\" .$this->country. \"','\" .$this->phone. \"','\" .$this->fax. \"','\" .$this->email. \"','\" .$this->driver_license. \"','\" .$this->driver_license_state. \"','\" .$this->social_security. \"','\" .$this->dob. \"','\" .$this->interest1. \"','\" .$this->interest2. \"','\" .$this->interest3. \"')\";\n\t$this->db->setQry($sql);\n\t$this->reg_id= $this->db->getNewid();\n\treturn $this->reg_id;// IF inserted Successfully to db\n\t}\n\telse{\n\treturn 0;// No data entered so output 0\n\t}\n\t}",
"private function form_validation_sign_up()\r\n {\r\n $this->load->helper('form');\r\n $this->load->library('form_validation');\r\n\r\n // regole per la validazione della form di iscrizione\r\n $this->form_validation->set_rules('nome_referente', 'Nome Referente', 'required');\r\n $this->form_validation->set_rules('cognome_referente', 'Cognome Referente', 'required');\r\n $this->form_validation->set_rules('email_referente', 'Email Referente', 'required|valid_email|matches[conferma_email_referente]|is_unique[tab_col.email_referente]');\r\n $this->form_validation->set_rules('conferma_email_referente', 'Conferma Email', 'required|valid_email');\r\n $this->form_validation->set_rules('password', 'Password', 'required|min_length[6]|matches[conferma_password]');\r\n $this->form_validation->set_rules('conferma_password', 'Conferma Password', 'required|min_length[6]');\r\n $this->form_validation->set_rules('comune', 'Comune', 'required');\r\n $this->form_validation->set_rules('provincia', 'Provincia', 'required');\r\n $this->form_validation->set_rules('regione', 'Regione', 'required');\r\n $this->form_validation->set_rules('indirizzo', 'Indirizzo', 'required');\r\n\r\n return $this->form_validation->run();\r\n }",
"function inscription_jesa_direct_validate($form, &$form_state) {\n //**************************\n // Validation Utilisateur \n //**************************\n //Si le champ stagiaire existant est rempli, on ne regade pas les champs nouveau\n if (!empty($form_state['values']['stagiaire']['existant']['user_name'])) {\n //Controle si le stagiaire existe déjà et si les champs sont corrects\n $user_by_name = user_load_by_name($form_state['values']['stagiaire']['existant']['user_name']);\n if (empty($user_by_name)) {\n form_set_error('stagiaire][existant][user_name', 'The member doesn\\'t exist.'); \n }\n $form_state['values']['stagiaire']['uid'] = is_object($user_by_name) ? $user_by_name->uid : 0;\n } \n else {\n // Le champs utilisateur existant n'a pas été rempli, on controle les champs\n // du nouvel utilisateur\n $stagiaire = _inscription_jesa_get_user_data($form_state['values']['stagiaire']['nouveau']);\n // Validité de la date de naissance\n if (empty($stagiaire['date_naissance'])) {\n form_set_error('stagiaire][nouveau][date_naissance', ucfirst(t('the birthdate is mandatory for a new member.')));\n }\n else { \n $date_naissance_dt = _inscription_jesa_chek_birthdate($stagiaire['date_naissance']);\n if (is_int($date_naissance_dt)) {\n $form_state['values']['stagiaire']['nouveau']['date_naissance_ts'] = $date_naissance_dt;\n } \n else {\n form_set_error('stagiaire][nouveau][date_naissance', $date_naissance_dt);\n unset($form_state['values']['stagiaire']['nouveau']['date_naissance_ts']);\n }\n }\n\n if (empty($stagiaire['nom'])) {\n form_set_error('stagiaire][nouveau][nom', ucfirst(t('the name is mandatory for a new member.')));\n }\n if (empty($stagiaire['prenom'])) {\n form_set_error('stagiaire][nouveau][prenom', ucfirst(t('the fisrtname is mandatory for a new member.')));\n }\n //Controle si le stagiaire existe déjà et si les champs sont corrects\n $stagiaire_account = _inscription_jesa_validate_user($stagiaire);\n if (is_string($stagiaire_account)) {\n // le résultat est un string => c'est un message d'erreur.\n form_set_error('stagiaire][nouveau', $stagiaire_account); \n }\n $form_state['values']['stagiaire']['uid'] = is_object($stagiaire_account) ? $stagiaire_account->uid : 0;\n if ($stagiaire_account === FALSE) {\n //C'est un nouveau stagiaire => certains champs deviennent obligatoires\n if (empty($stagiaire['adresse_1']) || empty($stagiaire['adresse_2'])) {\n form_set_error('stagiaire][nouveau', ucfirst(t('the address is mandatory for a new member.')));\n form_set_error('stagiaire][nouveau][adresse_2', ' ');\n array_pop($_SESSION['messages']['error']); \n }\n if (empty($stagiaire['sexe'])) {\n form_set_error('stagiaire][nouveau][sexe', ucfirst(t('the gender is mandatory for a new member.')));\n } \n if (empty($stagiaire['mail']) && empty($stagiaire['nouveau']['telephone'])) {\n form_set_error(\n 'stagiaire][nouveau][mail', \n ucfirst(t('the email address or the phone number is mandatory for a new member.'))\n );\n form_set_error('stagiaire][telephone', ' ');\n array_pop($_SESSION['messages']['error']); \n } \n } \n }\n \n //**************************\n // Validation Stage\n //**************************\n if (empty($form_state['values']['stage']['list'])) {\n form_set_error('stage][list' ,t('Please select an event.'));\n }\n}",
"function registerStaffUser($registrationData)\n {\n $dbConnection = connectToDB();\n if(!$dbConnection)\n {\n // echo \"Unable to connect to MySQL.\".PHP_EOL;\n return 0;\n }\n\n //these fields were already saved\n $staffID = $registrationData['staffID'];\n\n //gathering fields to save\n $address = $registrationData['address'];\n $city = $registrationData['city'];\n $state = $registrationData['state'];\n $zipcode = $registrationData['zipcode'];\n $ethnicity = $registrationData['ethnicity'];\n $ethnicityCode = $registrationData['ethnicityCode'];\n $languages = $registrationData['languages'];\n \n //preparing language values for DB\n if( count($languages) == 3 )\n {\n $nativeLanguage = $languages[0];\n $secondLanguage = $languages[1];\n $thirdLanguage = $languages[2];\n }\n \n $tshirtSize = $registrationData['tshirtSize'];\n $tattoos = $registrationData['tattoos'];\n $eyeColor = $registrationData['eyeColor'];\n $hairColor = $registrationData['hairColor'];\n $piercings = $registrationData['piercings']; \n $height = $registrationData['height'];\n\n //preparing height value for DB\n $height = prepareHeightValueForDBStorage($height);\n\n $weight = $registrationData['weight'];\n\n $gender = $registrationData['genderType'];//0 female | 1 male\n if($gender == 0) //females only\n {\n $chestSize = $registrationData['chestSize'];\n $waistSize = $registrationData['waistSize'];\n $hipSize = $registrationData['hipSize'];\n $dressSize = $registrationData['dressSize'];\n }\n else\n {\n $chestSize = \"\";\n $waistSize = \"\";\n $hipSize = \"\";\n $dressSize = \"\";\n }\n\n $pantSize = $registrationData['pantSize'];\n $shoeSize = $registrationData['shoeSize'];\n\n $hasCommercialLicense = $registrationData['commercialLicense']; \n $hasDriverLicense = $registrationData['driverLicense']; \n if( $hasCommercialLicense == 0 && $hasDriverLicense == 0 )\n {\n $typeOfLicense = -1; //no license\n }\n else if( $hasCommercialLicense == 0 && $hasDriverLicense == 1 )\n {\n $typeOfLicense = 0; //regular driver License\n }\n else if( $hasCommercialLicense == 1 && $hasDriverLicense == 0 )\n {\n $typeOfLicense = 1; //commercial License\n }\n else if( $hasCommercialLicense == 1 && $hasDriverLicense == 1 )\n {\n $typeOfLicense = 1; //commercial License\n }\n\n $travel = $registrationData['travelPercentage'];\n $Incorporated = $registrationData['Incorporated'];\n if($Incorporated)\n {\n $ssnOrEin = $registrationData['ein'];\n $business_name = $registrationData['business_name'];\n }\n else\n {\n $ssnOrEin = $registrationData['ssn'];\n $business_name = \"\";\n }\n\n $hasProfessionalInsurance = $registrationData['ProfessionalInsurance'];\n\n $desiredHourlyRate = $registrationData['desiredHourlyRate'];\n $desiredWeeklyRate = $registrationData['desiredWeeklyRate'];\n\n $DirectDeposit = $registrationData['DirectDeposit'];\n if($DirectDeposit)\n {\n $DirectDepositRoutingNumber = $registrationData['DirectDepositRoutingNumber'];\n $DirectDepositAccountNumber = $registrationData['DirectDepositAccountNumber'];\n }\n else\n {\n $DirectDepositRoutingNumber = \"\";\n $DirectDepositAccountNumber = \"\";\n }\n\n /*\n missing these fields:\n `staffType` int(11) NOT NULL,\n `pictures` varchar(30) NOT NULL,\n `insuranceDocuments` varchar(30) NOT NULL,\n `resume` varchar(30) NOT NULL\n */\n $part1 = \"address='\".$address.\"',city='\".$city.\"',zipcode='\".$zipcode.\"',state='\".$state.\"',\";\n $part2 = \"gender='\".$gender.\"', nativeLanguage='\".$nativeLanguage.\"', secondLanguage='\".$secondLanguage.\"', thirdLanguage='\".$thirdLanguage.\"',\";\n $part3 = \"typeDL='\".$typeOfLicense.\"',ethnicity='\".$ethnicity.\"',ethnicityCode='\".$ethnicityCode.\"',\";\n $part4 = \"height='\".$height.\"' ,weight='\".$weight.\"',hairColor='\".$hairColor.\"',\";\n $part5 = \"eyeColor='\".$eyeColor.\"',shirtSize='\".$tshirtSize.\"',chestSize='\".$chestSize.\"',waistSize='\".$waistSize.\"',hipSize='\".$hipSize.\"',\";\n $part6 = \"dressSize='\".$dressSize.\"',pantSize='\".$pantSize.\"',shoeSize='\".$shoeSize.\"',piercings='\".$piercings.\"',\";\n $part7 = \"desiredHourlyRate='\".$desiredHourlyRate.\"',desiredWeeklyRate='\".$desiredWeeklyRate.\"',ssnOrEin='\".$ssnOrEin.\"',businessName='\".$business_name.\"',\";\n $part8 = \"travel='\".$travel.\"',insurance='\".$hasProfessionalInsurance.\"',\";\n $part9 = \"bankRouting='\".$DirectDepositRoutingNumber.\"',accountNumber='\".$DirectDepositAccountNumber.\"'\";\n\n $query = \"UPDATE registered_staff\n SET $part1 $part2 $part3 $part4 $part5 $part6 $part7 $part8 $part9\n WHERE staffID = '\".$staffID.\"'\";\n\n // echo \"<p>\".$query.\"</p>\";\n $result = mysqli_query($dbConnection, $query);\n if($result)\n {\n // //services\n // $services = array (\n // 0 => 'Catering Company',\n // 1 => 'Sales Executive',\n // 2 => 'Live Band',\n // 3 => 'Other',\n // );\n\n // //Type of experiences\n // $typeOfExperiences = array (\n // 0 => 'Brand Ambassador',\n // 1 => 'Catering Company',\n // 2 => 'Dancer',\n // 3 => 'DJ',\n // 4 => 'Field Marketing Manager',\n // 5 => 'Flyer Distributor',\n // 6 => 'Live Band',\n // 7 => 'Model',\n // 8 => 'Production Assistant',\n // 9 => 'Sales Executive',\n // 10 => 'Waiter/Waitress',\n // 11 => 'Other',\n // );\n\n /*\n Incoming Data:\n 'experience' => \n array (\n 0 => 'Model',\n 1 => 'Sales Executive',\n ),\n\n */\n\n /*\n DB Keys\n `` int(11) NOT NULL DEFAULT '0',\n `` int(11) NOT NULL DEFAULT '0',\n `` int(11) NOT NULL DEFAULT '0',\n `` int(11) NOT NULL DEFAULT '0',\n `` int(11) NOT NULL DEFAULT '0',\n `` int(11) NOT NULL DEFAULT '0',\n */\n $brandAmbassador = 0;\n $dancer = 0;\n $fieldMarketingManager = 0;\n $flyerDistributor = 0;\n $model = 0;\n $productionAssistant = 0;\n $salesExecutive = 0;\n $waiterWaitress = 0;\n\n //experiences\n $experience = $registrationData['experience'];//\n $totalTalents = count($experience);\n for($iter = 0; $iter < $totalTalents; $iter++)\n {\n //current talent\n $currTalent = $experience[$iter];\n\n echo \"<p>$currTalent</p>\";\n //removing incoming data whitespace\n $currTalent = str_ireplace(\" \", \"\", $currTalent);\n echo \"<p>after update: $currTalent</p>\";\n\n\n if (strcasecmp($currTalent, \"BrandAmbassador\") == 0) \n {\n $brandAmbassador = 1;\n }\n if (strcasecmp($currTalent, \"dancer\") == 0) \n {\n $dancer = 1;\n }\n if (strcasecmp($currTalent, \"fieldMarketingManager\") == 0) \n {\n $fieldMarketingManager = 1;\n }\n if (strcasecmp($currTalent, \"flyerDistributor\") == 0) \n {\n $flyerDistributor = 1;\n }\n if (strcasecmp($currTalent, \"model\") == 0) \n {\n $model = 1;\n }\n if (strcasecmp($currTalent, \"productionAssistant\") == 0) \n {\n $productionAssistant = 1;\n }\n if (strcasecmp($currTalent, \"salesExecutive\") == 0) \n {\n $salesExecutive = 1;\n }\n if (strcasecmp($currTalent, \"waiter/Waitress\") == 0) \n {\n $waiterWaitress = 1;\n }\n }//eofl\n \n\n $mainPart = \"('\".$staffID.\"', '\".$brandAmbassador.\"', '\".$dancer.\"', '\".$fieldMarketingManager.\"', '\".$flyerDistributor.\"', '\".$model.\"', '\".$productionAssistant.\"', '\".$salesExecutive.\"', '\".$waiterWaitress.\"',\";\n // $djPart = \"`dJ`, `dJDescription`, `dJWebsite`, `dJSocialMedia`,\";\n // $cateringCompanyPart = \"`cateringCompany`, `cateringCompanyDescription`, `cateringCompanyWebsite`, `cateringCompanySocialMedia`,\";\n // $liveBandPart = \"`liveBand`, `liveBandDescription`, `liveBandWebsite`, `liveBandSocialMedia`,\";\n // $otherPart = \"`other`, `otherDescription`, `otherwebsite`, `othersocialMedia`)\";\n\n $djPart = \" '', '', '', '',\";\n $cateringCompanyPart = \" '', '', '', '',\";\n $liveBandPart = \" '', '', '', '',\";\n $otherPart = \" '', '', '', '')\";\n\n $talentQuery = \"INSERT INTO `staff_type`(`staffID`, `BrandAmbassador`, `dancer`, `fieldMarketingManager`, `flyerDistributor`, `model`, `productionAssistant`, `salesExecutive`, `waiterWaitress`, `dJ`, `dJDescription`, `dJWebsite`, `dJSocialMedia`, `cateringCompany`, `cateringCompanyDescription`, `cateringCompanyWebsite`, `cateringCompanySocialMedia`, `liveBand`, `liveBandDescription`, `liveBandWebsite`, `liveBandSocialMedia`, `other`, `otherDescription`, `otherwebsite`, `othersocialMedia`) \n VALUES \".$mainPart.\" \".$djPart.\" \".$cateringCompanyPart.\" \".$liveBandPart.\" \".$otherPart;\n echo \"<p>$talentQuery</p>\";\n \n\n /*\n DB Keys\n\n `dJ` int(11) NOT NULL DEFAULT '0',\n `dJDescription` int(11) NOT NULL DEFAULT '0',\n `dJWebsite` int(11) NOT NULL DEFAULT '0',\n `dJSocialMedia` int(11) NOT NULL DEFAULT '0',\n `cateringCompany` int(11) NOT NULL DEFAULT '0',\n `cateringCompanyDescription` int(11) NOT NULL DEFAULT '0',\n `cateringCompanyWebsite` int(11) NOT NULL DEFAULT '0',\n `cateringCompanySocialMedia` int(11) NOT NULL DEFAULT '0',\n `liveBand` int(11) NOT NULL DEFAULT '0',\n `liveBandDescription` int(11) NOT NULL DEFAULT '0',\n `liveBandWebsite` int(11) NOT NULL DEFAULT '0',\n `liveBandSocialMedia` int(11) NOT NULL DEFAULT '0',\n `other` int(11) NOT NULL DEFAULT '0',\n `otherDescription` int(11) NOT NULL DEFAULT '0',\n `otherwebsite` int(11) NOT NULL DEFAULT '0',\n `othersocialMedia` int(11) NOT NULL DEFAULT '0'\n\n */\n\n // $djSelected = $registrationData['djSelected'];//\n // $liveBandSelected = $registrationData['liveBandSelected'];//\n // $cateringCompanySelected = $registrationData['cateringCompanySelected'];//\n // $otherServices = $registrationData['otherServices'];//\n // $djDescription = $registrationData['djDescription'];//\n // $djWebsite = $registrationData['djWebsite'];//\n // $djSocialMedia = $registrationData['djSocialMedia'];//\n // $liveBandDescription = $registrationData['liveBandDescription'];//\n // $liveBandWebsite = $registrationData['liveBandWebsite'];//\n // $liveBandSocialMedia = $registrationData['liveBandSocialMedia'];//\n // $cateringCompanyDescription = $registrationData['cateringCompanyDescription'];//\n // $cateringCompanyWebsite = $registrationData['cateringCompanyWebsite'];//\n // $cateringCompanySocialMedia = $registrationData['cateringCompanySocialMedia'];//\n // $otherServicesDescription = $registrationData['otherServicesDescription'];//\n // $otherServicesBandWebsite = $registrationData['otherServicesBandWebsite'];//\n // $otherServicesBandSocialMedia = $registrationData['otherServicesBandSocialMedia'];\n\n return 1;\n }\n\n return -1;\n }",
"function addAffiliateMain($oAffiliate)\n\t\t{\n\t\t\t$query = \"insert into tbl_member set \n\t\t\tfirst_name='\".$oAffiliate->first_name.\"'\n\t\t\t,last_name='\".$oAffiliate->last_name.\"'\n\t\t\t,user_name='\".$oAffiliate->username.\"'\n\t\t\t,email='\".$oAffiliate->email.\"'\n\t\t\t,isActive='n'\n\t\t\t,password=md5('\".$oAffiliate->password.\"')\n\t\t\t,member_type='affiliate'\n\t\t\t,reg_date=now()\";\n\t\t\t\n\t\t\t$rs = $this->Execute($query);\n\t\t\t$newid= mysql_insert_id();\n\t\t\t\n\t\t\t$oAffiliate->affiliate_code = $oAffiliate->affiliate_code.$newid;\n\t\t\t\n\t\t\t$query_affiliate = \"insert into tbl_affiliate set \n\t\t\taffiliate_id = '\".$newid.\"'\n\t\t\t,organisation_name = '\".$oAffiliate->organisation_name.\"'\n\t\t\t,affiliate_code = '\".$oAffiliate->affiliate_code.\"'\n\t\t\t,description = '\".$oAffiliate->description.\"'\t\t\t\n\t\t\t,organisation_website ='\".$oAffiliate->organisation_website.\"'\n\t\t\t,street_address = '\".$oAffiliate->address.\"'\n\t\t\t,city = '\".$oAffiliate->city.\"'\n\t\t\t,state = '\".$oAffiliate->state.\"'\n\t\t\t,zip_code = '\".$oAffiliate->postal_code.\"'\";\n\t\t\t\n\t\t\t$rs_affiliate = $this->Execute($query_affiliate);\n\t\t\t\n\t\t\treturn $newid;\n\t\t}",
"protected function showRegFormFilled() \n { \n $success = $this->saveUserData();\n if ($success == true)\n {\n echo ' thank you so much for registering!';\n }\n else\n {\n echo ' but registration failed!';\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
pregmatch the Google sheet ID from the google sheet link | function google_get_sheet_id($link) {
$matches = array();
preg_match('/spreadsheets\/d\/(.*)\/edit/', $link, $matches);
if (!empty($matches[1])) {
return $matches[1];
}
return null;
} | [
"function google_get_sheet_link($id) {\n return \"https://docs.google.com/spreadsheets/d/{$id}/edit\";\n}",
"private function getIdFromRedirectedUrl(): string\n {\n $url = $this->getResponse()\n ->getHeader('Location')\n ->getFieldValue();\n $pattern = '!/id/(.*?)/!';\n $result = preg_match($pattern, $url, $matches);\n\n return $result ? $matches[1] : '';\n }",
"function obtainId($url){\n preg_match('~/\\w{32}/(items/\\w+|tasks)/([\\w-_]+)/?$~', $url, $matches);\n return $matches[2];\n}",
"public static function DriveID($link)\r\n {\r\n $parse = parse_url(trim($link));\r\n if ($parse[\"host\"] == \"docs.google.com\" || $parse[\"host\"] == \"drive.google.com\") {\r\n parse_str($parse[\"query\"]);\r\n if (empty($id)) {\r\n preg_match_all(\"@d/(.*)/@i\", $link, $m);\r\n $id = $m[\"1\"][\"0\"];\r\n }\r\n return trim($id);\r\n }\r\n return false;\r\n }",
"function imdb_url_id($url) {\n if (!is_string($url)) {\n return '';\n }\n $id = regex_get('#title\\\\/(.*)\\\\/#', $url, 1);\n return empty($id) ? FALSE : $id;\n}",
"static function validateGoogleCalendarLink($url){\n\n if(is_null($url)){\n return false;\n }\n\n if(!Str::startsWith($url, \"https://calendar.google.com\")){\n return false;\n }\n\n $calendar_id = str_replace(\"https://calendar.google.com/calendar/ical/\", \"\", $url);\n $calendar_id = str_replace(\"/public/basic.ics\", \"\", $calendar_id);\n $calendar_id = str_replace(\"https://calendar.google.com/calendar/u/0/embed?src=\", \"\", $calendar_id);\n $calendar_id = str_replace(\"https://calendar.google.com/calendar/embed?src=\", \"\", $calendar_id);\n\n if(Str::startsWith($calendar_id, \"http\")){\n return false;\n }\n\n if(Str::contains($calendar_id, \"&\")){\n $calendar_id = substr($calendar_id, 0, strpos($calendar_id, \"&\"));\n }\n\n return trim($calendar_id);\n }",
"function extract_youtube_id($content) {\n if( preg_match('/\\[youtube.+id=\"(.*?)\".*\\]/i',$content,$regs) ) {\n return $regs[1];\n }\n else {\n return \"NO_VIDEO\";\n }\n}",
"function get_course_link($course_div) {\r\n // Pattern simply gets a href attribute from the <a> tag\r\n $URL_PATTERN = \"#(?<=href=\\\").*?(?=\\\")#\";\r\n preg_match($URL_PATTERN, $course_div, $match);\r\n return $match[0];\r\n}",
"private static function obtainId($url) {\n preg_match('~/\\w{32}/(items/\\w+|tasks)/([\\w-_]+)/?$~', $url, $matches);\n return $matches[2];\n }",
"public function getIdFromLink(){\n if(empty($this->link)){\n return null;\n }\n\n $template='/^(?:http[s]?:\\/\\/)?(?:www.)?youtube.com\\/watch\\?v=([\\w-]{11}).*$/';\n\n preg_match($template, $this->link, $result);\n\n return isset($result[1])?$result[1]:null;\n }",
"public static function ExtractID($id) {\n\t\tpreg_match('~SG_[A-Za-z0-9]{22}~', $id, $matches);\n\t\treturn isset($matches[0]) ? $matches[0] : false;\n\t}",
"function getIDfromURI ( $uri ) {\n \tpreg_match('/otvet(\\d+).html/s', $uri, $matches);\n\t\t//company\\/realty(\\d+).html/s\n \tif ( $matches[1] > 0 ) {\n \t\treturn $matches[1];\n \t}\n \treturn false;\n }",
"public function update(Request $request, GoogleModel $googleSheetDb, $id)\n {\n //-- Validator\n $rules = [\n 'editie_jaar' => 'required|min:4',\n 'googlesheet_id' => 'required|url|regex:^https://docs.google.com/spreadsheets/d^' //-- Valid URL?\n ];\n\n $result = [];\n $errors = [];\n\n $data = $request->except('_token');\n\n //-- Validatie check gegevens\n $validator = Validator::make($data, $rules);\n\n if ($validator->fails()) {\n $errors = $this->errorMsg['validationError'];\n $errors['description'] = $validator->errors(); // override 'default' error message to specific error\n return $this->apiResponse->create($result, $errors);\n }\n\n //-- URL gevalideerd: nu uit elkaar fluizen\n try {\n $url = $request->get('googlesheet_id');\n preg_match(\"/spreadsheets\\/d\\/([a-zA-Z0-9-_]+)/\", $url, $googleId); //-- Filter URL\n\n //-- Check if retrieved data matches the pattern?\n if(count($googleId) == 0){\n $errors = $this->errorMsg['googleUrlInvalid'];\n return $this->apiResponse->create($result, $errors);\n }\n\n //-- Filter google ID (normaal lijkt het op bijvb: \"1Jv0rl-Q5ob7fQr_jtJcLS_GO5fz03y_WksiIBfol60E\")\n if((str_replace($googleId[1], \"\", $googleId[0]) != \"spreadsheets/d/\") || $googleId[1] == \"\"){\n $errors = $this->errorMsg['invalidGoogleSheet'];\n return $this->apiResponse->create($result, $errors);\n }\n\n $googleId = $googleId[1];\n\n } catch (Exception $e) {\n $errors = $this->errorMsg['invalidGoogleSheetID'];\n return $this->apiResponse->create($result, $errors);\n }\n\n //-- Gevonden Google ID nu on-line checken of het document wel degelijk bestaat?\n Sheets::setService(Google::make('sheets'));\n Sheets::spreadsheet($googleId);\n\n try {\n //-- Checken of de sheet 'PrgPaulusfeesten' bestaat in het geselecteerde document (op basis van template)\n $sheetTabs = Sheets::sheetList();\n\n //-- Google ID bestaat!!\n if(!in_array('PrgPaulusfeesten',$sheetTabs)){\n $errors = $this->errorMsg['invalidSheetData'];\n return $this->apiResponse->create($result, $errors);\n };\n\n //-- Google ID bestaat niet of is ongeldig!! (of de boel ligt plat)\n } catch (Google_Service_Exception $e) {\n $errors = $this->errorMsg['cannotOpenSheet'];\n return $this->apiResponse->create($result, $errors);\n }\n\n //-- Haal nu alle data op uit de sheet-tab \"PrgPaulusfeesten\"\n try {\n $document = Sheets::sheet('PrgPaulusfeesten')->get();\n } catch (Google_Service_Exception $e) {\n dump($e);\n $errors = $this->errorMsg['cannotFindSheetTab'];\n return $this->apiResponse->create($result, $errors);\n }\n\n //-- Check nu op bestaan v kolommen. Als ze bestaan -> GELDIGE PAULUSFEESTEN PROGRAMMATIE FILE, Feestje! JEUJ!\n try {\n $rij2 = 1;\n if(!$document->has($rij2)) throw new Exception();\n $test = $document[$rij2];\n\n } catch (Exception $e) {\n $errors = $this->errorMsg['columnDataNotFound'];\n return $this->apiResponse->create($result, $errors);\n }\n\n for($i = 0; $i < count($this->sheetColumns); $i++){\n $pos = null;\n $kolomNr = $i + 1;\n\n //-- Check of kolom bestaat (anders krijg je exception)\n if(array_key_exists($i, $test)){\n //-- verwijder onnodige spaties + maak alle letters klein\n //dump($test[$i]);\n $test[$i] = strtolower(preg_replace(\"/[^a-zA-Z0-9]+/\", \"\", $test[$i]));\n //dump($test[$i]);\n $pos = strpos($test[$i], $this->sheetColumns[$i]);\n }\n\n if(in_array($this->sheetColumns[$i], $test)) {\n //-- Element existing = ok\n //dump($checkKolom[$i] . \" exists!\");\n }\n else {\n //dump($checkKolom[$i] . \" dus NOT exists!\");\n $errors = $this->errorMsg['columnNotFound'];\n $errors['description'] = 'Rij 2 Kolom \\' . $kolomNr' . 'Bevat geen naam ' . $this->sheetColumns[$i] . ' in de Google Sheet';\n }\n }\n\n if(!empty($errors)) return $this->apiResponse->create($result, $errors);\n\n //-- Good enough for me, genoeg checks doorstaan. Bewaar veranderde gegevens maar in database...\n $result = $googleSheetDb->find($id);\n $result->update($data);\n\n // stuur json-response terug met het (hopelijk heugelijke) nieuws...\n return $this->apiResponse->create($result, $errors);\n }",
"public static function getDocId($url) {\n\t\t$re = '/coda.io\\/d\\/.*?_d(.{10})\\/*/m';\n\t\tpreg_match($re, $url, $res);\n\t\treturn $res[1] ?? false;\n\t}",
"function extractGoogleRedirect($url)\n{\n if(preg_match('/&url=(.+)$/is', $url, $matches)) {\n if(!empty($matches)) {\n return urldecode(str_replace('&url=', '', $matches[0]));\n }\n }\n}",
"function get_youtube_id($url){\n\t$shortlink_domain = '/^http\\:\\/\\/(?:www.)?youtu.be/';\n\tif (preg_match($shortlink_domain, $url)) {\n\t\t$parts = parse_url($url);\n\t\treturn substr($parts['path'], 1, strlen($parts['path']) - 1);\n\t}\n\telse {\n\t\t$parts = parse_url($url);\n\t\tparse_str($parts['query'], $parts);\n\t\treturn $parts['v'];\n\t}\n}",
"function get_code($import_io_url)\n{\n preg_match(\"/[a-z0-9A-Z\\-]{1,}\\z/\", $import_io_url, $code);\n if (count($code) == 0)\n return FALSE; \n else\n return trim($code[0]);\n}",
"function getyoutube_video_id($html)\n{\n $pattern = '#(?<=(?:v|i)=)[a-zA-Z0-9-]+(?=&)|(?<=(?:v|i)\\/)[^&\\n]+|(?<=embed\\/)[^\"&\\n]+|(?<=(?:v|i)=)[^&\\n]+|(?<=youtu.be\\/)[^&\\n]+#';\n preg_match($pattern, $html, $matches);\n $url = reset($matches);\n $url = strtok($url, '?');\n return $url;\n}",
"function youtube_video_id($url){\n $parts = parse_url($url);\n parse_str($parts['query'], $query);\n $videoID = $query['v'];\n return $videoID;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return true if is a mobile device | public function isMobile(); | [
"public function isMobile() {\n $session = $this->getSession();\n $driver = $session->GetDriver();\n $user_agent = $driver->evaluateScript('return navigator.userAgent');\n return preg_match(\"/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\\.browser|up\\.link|webos|wos)/i\", $user_agent);\n }",
"public function isMobileOrTablet();",
"public function isMobile()\n {\n return $this->selectedUserInterfaceType == self::MOBILE;\n }",
"public function isMobileDevice()\n\t{\n\n\t\tif ($this->_device->getCapability('is_wireless_device') === 'true') {\n\t\t\treturn TRUE;\n\t\t}\n\n\t\treturn FALSE;\n\n\t}",
"function mc_is_mobile() {\n\t$mobile = false;\n\tif ( function_exists( 'wp_is_mobile' ) ) {\n\t\t$mobile = wp_is_mobile();\n\t}\n\n\treturn apply_filters( 'mc_is_mobile', $mobile );\n}",
"static function is_mobile()\n\t{\t\t\n\t\tif(!isset(self::$_libs['user_agent'])){\n\t\t\tself::loadLibrary('SHIN_User_agent', TRUE);\n\t\t}\n\t\treturn self::$_libs['user_agent']->is_mobile();\n\t}",
"function isMobile() {\n\n\t// Check the server headers to see if they're mobile friendly\n\tif(isset($_SERVER[\"HTTP_X_WAP_PROFILE\"])) {\n\t\treturn true;\n\t}\n\n\t// If the http_accept header supports wap then it's a mobile too\n\tif(preg_match(\"/wap\\.|\\.wap/i\",$_SERVER[\"HTTP_ACCEPT\"])) {\n\t\treturn true;\n\t}\n\n\t// Still no luck? Let's have a look at the user agent on the browser. If it contains\n\t// any of the following, it's probably a mobile device. Kappow!\n\tif(isset($_SERVER[\"HTTP_USER_AGENT\"])){\n\t\t$user_agents = array(\"midp\", \"j2me\", \"avantg\", \"docomo\", \"novarra\", \"palmos\", \"palmsource\", \"240x320\", \"opwv\", \"chtml\", \"pda\", \"windows\\ ce\", \"mmp\\/\", \"blackberry\", \"mib\\/\", \"symbian\", \"wireless\", \"nokia\", \"hand\", \"mobi\", \"phone\", \"cdm\", \"up\\.b\", \"audio\", \"SIE\\-\", \"SEC\\-\", \"samsung\", \"HTC\", \"mot\\-\", \"mitsu\", \"sagem\", \"sony\", \"alcatel\", \"lg\", \"erics\", \"vx\", \"NEC\", \"philips\", \"mmm\", \"xx\", \"panasonic\", \"sharp\", \"wap\", \"sch\", \"rover\", \"pocket\", \"benq\", \"java\", \"pt\", \"pg\", \"vox\", \"amoi\", \"bird\", \"compal\", \"kg\", \"voda\", \"sany\", \"kdd\", \"dbt\", \"sendo\", \"sgh\", \"gradi\", \"jb\", \"\\d\\d\\di\", \"moto\");\n\t\tforeach($user_agents as $user_string){\n\t\t\tif(preg_match(\"/\".$user_string.\"/i\",$_SERVER[\"HTTP_USER_AGENT\"])) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}\n\n\t// Let's NOT return \"mobile\" if it's an iPhone, because the iPhone can render normal pages quite well.\n\tif(preg_match(\"/iphone/i\",$_SERVER[\"HTTP_USER_AGENT\"])) {\n\t\treturn false;\n\t}\n\n\t// None of the above? Then it's probably not a mobile device.\n\treturn false;\n}",
"private function is_mobile(): bool {\n\t\treturn $this->options->get( 'cache_mobile', 0 )\n\t\t\t&&\n\t\t\t$this->options->get( 'do_caching_mobile_files', 0 )\n\t\t\t&&\n\t\t\twp_is_mobile();\n\t}",
"public function supports_mobile() {\n return true;\n }",
"function is_smartphone() {\n\tglobal $mobble_detect;\n\t$grade = $mobble_detect->mobileGrade();\n\tif ($grade == 'A' || $grade == 'B') {\n\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n}",
"function detect_mobile () {\n\t// Set variable\n\t$mobile_browser = '0';\n\t\n\t// Determine whether or a not a browser is mobile\n\tif (strpos(strtolower($_SERVER['ALL_HTTP']), 'operamini') !== false) {\n\t\t$mobile_browser++;\n\t} elseif (strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'iphone') !== false) {\n\t\t$mobile_browser++;\n\t} elseif (strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'android') !== false) {\n\t\t$mobile_browser++;\n\t} elseif (strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'webos') !== false) {\n\t\t$mobile_browser++;\n\t} elseif (strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'windows') !== false) {\n\t\t$mobile_browser=0;\n\t}\n\t\n\t// Tell variable whether or not a browser is mobile\n\tif ($mobile_browser > 0) {\n\t\treturn true;\n\t} else {\n\t\treturn false;\n\t}\n}",
"function is_smart_phone()\n {\n return ((strpos($this->user_agent, 'iPhone') !== false) || (strpos($this->user_agent, 'iPod') !== false) || (strpos($this->user_agent, 'Android') !== false));\n }",
"function check_mobile()\n\t{\r\n\t\t\r\n\t\t$detect = new Mobile_Detect();\r\n \tif ($detect->isMobile() || $detect->isTablet() || $detect->isAndroidOS()) \n \t{\r\n return 'Mobile';\r\n \t}\n \telse\n \t{\r\n \t\treturn 'PC';\r\n \t}\r\n\t}",
"public static function isMobilePlatform()\n\t\t{\n\t\t\treturn null !== self::get_platform_type(wc_get_user_agent());\n\t\t}",
"public function supports_mobile() {\n return false;\n }",
"public function isRealInterfaceMobile()\n {\n return $this->defaultUserInterfaceType == self::MOBILE;\n }",
"function wpmd_is_device() {\n\tglobal $detect;\n\tif( $detect->isMobile() || $detect->isTablet() ) return true;\n}",
"function isMobile() {\n\t$userAgent = strtolower($_SERVER['HTTP_USER_AGENT']);\n\t$mobileAgents = array(\n\t\t'w3c ','acs-','alav','alca','amoi','audi','avan','benq','bird','blac',\n\t\t'blaz','brew','cell','cldc','cmd-','dang','doco','eric','hipt','inno',\n\t\t'ipaq','java','jigs','kddi','keji','leno','lg-c','lg-d','lg-g','lge-',\n\t\t'maui','maxo','midp','mits','mmef','mobi','mot-','moto','mwbp','nec-',\n\t\t'newt','noki','oper','palm','pana','pant','phil','play','port','prox',\n\t\t'qwap','sage','sams','sany','sch-','sec-','send','seri','sgh-','shar',\n\t\t'sie-','siem','smal','smar','sony','sph-','symb','t-mo','teli','tim-',\n\t\t'tosh','tsm-','upg1','upsi','vk-v','voda','wap-','wapa','wapi','wapp',\n\t\t'wapr','webc','winw','winw','xda','xda-'\n\t);\n\n\tif (preg_match('%(tablet|ipad|playbook)|(android(?!.*(mobi|opera mini)))%', $userAgent)) {\n\t\treturn 1; //mobile but tablet\n\t}\n\tif (preg_match('%(symbian|midp|mobile|phone|ipod|android)%',$userAgent)) {\n\t\treturn 2; //mobile\n\t} elseif ((isset($_SERVER['HTTP_ACCEPT'])) and (strpos(strtolower($_SERVER['HTTP_ACCEPT']),'application/vnd.wap.xhtml+xml') !== false)) {\n\t\treturn 2; //mobile\n\t} elseif (in_array((substr($userAgent,0,4)),$mobileAgents)) {\n\t\treturn 2; //mobile\n\t}\n\treturn 0;\n}",
"public function isMobileForced()\n {\n $this->debugLog(\"--------------- isMobileForced BEGIN ----------------------\");\n $this->debugLog(print_r($_COOKIE, 1));\n $this->debugLog(print_r($_GET, 1));\n $this->debugLog(\"--------------- isMobileForced END ----------------------\");\n\n return ((isset($_COOKIE[$this->conf['cookie_name']]) &&\n $_COOKIE[$this->conf['cookie_name']] == self::MOBILEREDIRECT_COOKIE_MOBILE &&\n !isset($_GET[$this->conf['no_mobile_name']])) ||\n (!empty($this->conf['is_mobile_name']) && isset($_GET[$this->conf['is_mobile_name']])))\n ? true\n : false;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets a new permissionsEmailSingle | public function setPermissionsEmailSingle($permissionsEmailSingle)
{
$this->permissionsEmailSingle = $permissionsEmailSingle;
return $this;
} | [
"public function setPermission($todolist_id,$user_email,$permission)\n \t{\n \t\t$db = Model::getDoctrine();\n\t\t$perm=$this->checkPermByEmail($todolist_id,$user_email,$db);\n\t\tif ($perm) {\n \t\t\t$query=$db->createQueryBuilder();\n\t\t $result = $query->select('p')\n\t ->from('entities\\Share', 'p')\n\t ->where('p.user_email= :user_email')\n\t ->setParameter('user_email', $user_email)\n\t ->andWhere('p.todolist_id= :todolist_id')\n\t ->setParameter('todolist_id', $todolist_id)\n\t ->getQuery()\n\t ->getResult(\\Doctrine\\ORM\\Query::HYDRATE_ARRAY);\n\t $id=$result[0]['id'];\n\t\t\t$share = $db->getRepository('entities\\Share')->findOneBy(['id' =>$id]);\n\t\t\t$share->setPermission($permission);\n\t\t\t$db->merge($share);\n\t\t\t$db->flush();\n\t\t\t$this->setData(\t1,\n\t\t\t\t\t\t\t$share->getPermission(),\n\t\t\t\t\t\t\t$share->getUserEmail(),\n\t\t\t\t\t\t\t$this->db->getTitle(),\n\t\t\t\t\t\t\tjson_decode($this->db->getTasks())\n\t\t\t\t\t\t);\n\t\t\treturn true;\n\t\t} else {\n\t\t\t$share = (new Share())\n\t\t\t ->setPermission($permission)\n\t\t\t ->setUserEmail($user_email)\n\t\t\t ->setTodolistId($todolist_id);\n\t\t\t$db->persist($share);\n\t\t\t$db->flush();\n\t\t\t$this->setData(\t1,\n\t\t\t\t\t\t\t$share->getPermission(),\n\t\t\t\t\t\t\t$share->getUserEmail(),\n\t\t\t\t\t\t\t$this->db->getTitle(),\n\t\t\t\t\t\t\tjson_decode($this->db->getTasks())\n\t\t\t\t\t\t);\n\t\t\treturn true;\n\t\t}\n \t}",
"function setEmail($value) { $this->set('email', $value); }",
"function setEmail($newEmail)\n {\n $this->email = $newEmail; \n }",
"function setEmail($value)\r\n {\r\n $this->_email = $value;\r\n }",
"public function setEmail($value) { $this->email = $value; }",
"public function setEmail(string $value) {\n\n }",
"function set_contact_email($new_contact_email){\n\t\t$this->detail_info_is_loaded=true;\n\t\t$this->contact_email=$new_contact_email;\n\t}",
"function SetEmail($id, $email){\n\t}",
"protected function setEmailId(){\n\t\t$this -> emailId = $this -> $name . ' <' . $this -> $emailAddress . '>';\n\t}",
"function setNotificationEmail($arg) {\n\t\t$this->parameters['notification_emails'] = array($arg);\n\t\treturn $this;\n\t}",
"public function setPermissions($permissions)\n {\n }",
"public function setPermission($value);",
"public function setEmail( $email ){\n \tif( $this->email_registered($email) ){\n\n \t\t// get_user() berdasarkan email --> simpan ke $userdata\n\t\t \t$this->userdata = $this->get_user('email', $email);\n\n \t\t$this->init_user();\n \t}\n }",
"public function setPermissions()\n\t{\n\n\t}",
"public function setEmail($email){\n $this->email = $email;\n if($this->id != 0){\n $sql = \"UPDATE `tbl_sinhvien` SET `email` = '$email' WHERE id = '$this->$id'\";\n $this->db->executeQuery($sql);\n }\n\t}",
"public function assignUserPermission()\n\t{\n\t\t// Find the role\n $user = User::where('email', '=', 'admin@udistro.com')->first();\n\n\t\t// Find the permission\n\t\t$permission = Permission::find(2);\n\n\t\t// Attach permission to role\n\t\t$user->attachPermission($permission); // parameter can be a Permission object, array or id\n\t}",
"function setRegistrationEmail($email)\n {\n $this->__registration_email = $email ;\n }",
"private function registerEmail() {\n\t\ttry {\n\t\t\t$primary = 1;\n\t\t\tif(!empty($this->contactRow['EmailPUM'])) {\n\t\t\t\tcivicrm_api3('Email','Create', array('contact_id' => $this->contactIdentifier, 'email' => $this->contactRow['EmailPUM'], 'location_type_id' => 2, 'is_primary' => $primary));\n\t\t\t\t$primary = 0;\n\t\t\t}\n\t\t\tif(!empty($this->contactRow['Email1'])) civicrm_api3('Email','Create', array('contact_id' => $this->contactIdentifier, 'email' => $this->contactRow['Email1'], 'location_type_id' => 1, 'is_primary' => $primary));\n\t\t} catch (Exception $e) {\n\t\t\techo \"E-mail registration failed for contact \".$this->contactIdentifier.\"\\r\\n\";\n\t\t\techo $e;\n\t\t}\n\t}",
"function setEmail( $email ){\n\t\t$this->email = $email;\n\t\t$this->v_email = true;\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Make CSS class names specific to the current path for use in the HTML tag for example: /content/some/path/to/current/content => SomePathToCurrentContent | public function pathCSS($path = null)
{
$path = (is_null($path))
? $this->getPath()->get()
: $path;
// Build Classes based on Path parts names
if($path)
{
foreach(explode('/', $path) as $folder)
{
if(!empty($folder))
$out[] = str_replace(
' ', '',
ucwords(
preg_replace('/[^0-9A-Za-z]/', ' ', FSObject::clean($folder))
)
);
}
$out = implode(' ', $out);
// Figureout depth
$out .= ' Depth'.(count(explode('/', $path)) - 1);
return $out;
}
else
return 'Top'; // Homepage
} | [
"function getCssClass($path) {\n\tif(is_link($path)) return 'link';\n\tif(is_file($path)) return 'file';\n\tif(is_dir($path)) return 'dir';\n\treturn 'error';\n}",
"function highlight($path, $home = false, $normal = '', $selected = 'active') {\n $class = $normal;\n $currentPath = substr($this->Html->here, strlen($this->Html->base));\n // if there is a star in the path we need to do different checking\n $regs = array();\n if($home) {\n if($currentPath === '' || $currentPath === '/pages/home' || $currentPath === '/')\n $class = $selected;\n } else if (!$home && $path == $currentPath){\n $class = $selected;\n }\n\n return $class;\n }",
"function set_active($path, $keywords = '', $active_class = 'active')\n{\n $url_path = Request::path();\n // check if our path string and any of the keywords also\n // exist in the full url path\n $temp = strpos($url_path, $path) !== false && check_in_string(\n $url_path, $keywords);\n\n if (Request::is($path) || $temp) {\n return ' class=\"' . $active_class . '\"';\n }\n\n return '';\n}",
"public function setDir() {\n $fullClass = get_class($this);\n $pieces = explode('\\\\', $fullClass);\n $fullName = array_pop($pieces); //SiteProductController\n $name = str_replace('Controller', '', $fullName);\n preg_match_all('/((?:^|[A-Z])[a-z]+)/', $name, $controller);\n $controller = implode('-', $controller[0]);\n $controller = strtolower($controller);\n return 'views/'.$controller;\n }",
"function current_menu_item_class ($classes, $item) {\n if (in_array('current-cat', $classes)){\n $classes[] = 'current-menu-item ';\n }\n return $classes;\n}",
"function FoundationPress_active_list_pages_class( $input ) {\n\n\t$pattern = '/current_page_item/';\n $replace = 'current_page_item active';\n\n $output = preg_replace( $pattern, $replace, $input );\n\n return $output;\n}",
"function jw_list_pages_active_class($menu){\n\t\t\n\t\t$menu = str_replace('current_page_item', 'active', $menu);\n\t\t\n\t\treturn $menu;\n\t\t\n\t}",
"private function setCurrentPath(){\n\t\t$dirs = explode('/', $this->pages[0]);\n\t\t// if last character is a / then just use it\n\t\tif(empty($dirs[count($dirs)-1]) || is_null($dirs[count($dirs)-1])){\n\t\t\t$this->current_path = $this->pages[0];\n\t\t// if end of path was a filename, remove it and add a /\n\t\t} else {\n\t\t\tarray_pop($dirs);\n\t\t\t$this->current_path = implode('/', $dirs).'/';\n\t\t}\n\t}",
"private function getOverridePath()\n\t{\n\t\treturn str_replace([CLASSOVERRIDER_BASE_NS, '\\\\'], [CLASSOVERRIDER_PATH, '/'], $this->class);\n\t}",
"function path_info_to_content() {\n\n if (! isset($_SERVER['PATH_INFO'])) {\n return '_content.index.php';\n }\n\n $path_info = $_SERVER['PATH_INFO'];\n $path_info = preg_replace('/^\\/|\\/$/', '', $path_info);\n\n // species/* is handled by the species page\n if (preg_match('/^species\\/[^\\/]+$/', $path_info)) {\n $path_info = 'species';\n }\n\n // species/overview/* is handled by the species_overview page\n if (preg_match('/^species\\/overview\\/[^\\/]+$/', $path_info)) {\n $path_info = 'species_overview';\n }\n\n $path_info = preg_replace('/\\//', '_', $path_info);\n \n return \"_content.$path_info.php\";\n}",
"function kct_list_pages_css_class( $css_class, $page, $depth, $args, $current_page ) {\n\tif ( empty($args['post_type']) || !is_singular($args['post_type']) )\n\t\treturn $css_class;\n\n\tif ( !empty($current_page) ) {\n\t\t$_current_page = get_post( $current_page );\n\t\tif ( in_array( $page->ID, $_current_page->ancestors ) )\n\t\t\t$css_class[] = 'current_page_ancestor';\n\t\tif ( $page->ID == $current_page )\n\t\t\t$css_class[] = 'current_page_item';\n\t\telseif ( $_current_page && $page->ID == $_current_page->post_parent )\n\t\t\t$css_class[] = 'current_page_parent';\n\t} elseif ( $page->ID == get_option('page_for_posts') ) {\n\t\t$css_class[] = 'current_page_parent';\n\t}\n\n\treturn $css_class;\n}",
"function body_class( $classes, $class ) {\n\tglobal $wp_query;\n\tif ( 'my-patterns' === $wp_query->get( 'pagename' ) ) {\n\t\t$classes[] = 'my-patterns';\n\t}\n\treturn $classes;\n}",
"abstract protected function get_css_file_name();",
"function body_class( $classes, $class ) {\n\tglobal $wp_query;\n\tif ( 'my-patterns' === $wp_query->get( 'pagename' ) ) {\n\t\t$classes[] = 'my-patterns';\n\t}\n\tif ( $wp_query->is_page() ) {\n\t\t$classes[] = 'page-' . $wp_query->get( 'pagename' );\n\t}\n\treturn $classes;\n}",
"protected function getContentCssFileNames() {}",
"private function generateClassFromPath(string $path)\n {\n $this->path = $path;\n\n //Uppercase every word, and word that are after \"_\"\n $this->path = ucwords($this->path, \"_\");\n\n //Remove \"_\" from the string and replace with nothing\n $this->path = str_replace(\"_\", \"\", $this->path);\n\n //Split the path by \"/\"\n $words = explode(\"/\", $this->path);\n\n foreach ($words as $word) {\n $this->class .= $word;\n }\n\n $this->class .= \"Controller\";\n\n $this->classPath = \"Controllers/\" . $this->class . \".php\";\n }",
"static public function findClassNameFromPath($path) {\n\t\t\t$handle = self::findHandleFromPath($path);\n\t\t\t$class = ucwords(str_replace('-', ' ', Lang::createHandle($handle)));\n\t\t\t$class = 'Formatter' . str_replace(' ', null, $class);\n\n\t\t\treturn $class;\n\t\t}",
"function formatCurrentUrl() ;",
"function wpcampus_filter_nav_menu_css_class( $classes, $item, $args, $depth ) {\n\tif ( is_singular( 'post' ) && 'Blog' == $item->title ) {\n\t\t$classes[] = 'current-menu-item';\n\t} elseif ( is_singular( 'podcast' ) && '/podcast/' == $item->url ) {\n\t\t$classes[] = 'current-menu-item';\n\t} elseif ( is_singular( 'resource' ) && 'Resources' == $item->title ) {\n\t\t$classes[] = 'current-menu-item';\n\t} elseif ( is_singular( 'video' ) && 'Videos' == $item->title ) {\n\t\t$classes[] = 'current-menu-item';\n\t} elseif ( is_singular( 'tribe_events' ) && '/events/' == $item->url ) {\n\t\t$classes[] = 'current-menu-item';\n\t}\n\treturn $classes;\n}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Register Event service provider | public function registerEventProvider()
{
$this->register(new EventServiceProvider($this));
} | [
"protected function registerEventProvider()\n {\n $this->register(new EventServiceProvider($this));\n }",
"public function registerEvents() : void\n {\n $this->container->singleton('events', function () : Dispatcher {\n return new Dispatcher();\n });\n }",
"public function registerEvents()\n {\n }",
"public function register(){\n \n $dispatch = $this->getEventDispatch();\n \n $event_name_list = $this->getEventNames();\n foreach($event_name_list as $event_name => $callback){\n $dispatch->listen($event_name,$callback);\n }//foreach\n \n }",
"protected function initEvent()\n {\n $this->register('event', $this->loader->loadStack(static::LOAD_STACK, 'Event',\n function ($result, $type) {\n $class = sprintf('\\\\Phork\\\\%s\\\\Event', $type);\n return $class::instance(true);\n }\n ));\n }",
"function register($event,$callback) {\n self::$event[$event][]=$callback;\n }",
"public function registerEvent($event, $handler);",
"function addEvent($event);",
"public function registerEvents() :void\n {\n $this->registerEventListeners(\n $this->registry('eventListeners')->toArray()\n );\n\n $this->registerEventMaps(\n $this->registry('eventMaps')->toArray()\n );\n\n $this->registerEventSubscribers(\n $this->registry('eventSubscribers')->toArray()\n );\n }",
"public function register()\n {\n $this->app->singleton('eventy', function ($app) {\n return new Events();\n });\n }",
"private function registerEventListeners()\n {\n Event::subscribe(PermissionEventsSubscriber::class);\n Event::subscribe(RoleEventsSubscriber::class);\n Event::subscribe(UserEventsSubscriber::class);\n }",
"protected function registerEventToServer() {\r\n foreach ($this->eventManager->register() as $event => $callback) {\r\n $this::$original->on($event,function(...$args) use($callback) {\r\n $this->eventManager::invoke($callback,$args);\r\n });\r\n }\r\n }",
"public function add(Event $event);",
"public function registerEvents()\n {\n foreach ($this->events as $event => $listeners) {\n foreach ($listeners as $listener) {\n Event::listen($event, $listener);\n }\n }\n\n foreach ($this->subscribe as $subscriber) {\n Event::subscribe($subscriber);\n }\n }",
"public function register()\n {\n // Get all event listener from the config file\n // for all of those listener will attach the Innovate.* (all events that fall in the innovate namespace)\n // the listen for the events\n $listeners = $this->app['config']->get('innovate.listeners');\n foreach ($listeners as $listener) {\n $this->app['events']->listen('Innovate.*', $listener);\n }\n }",
"private function registerEvent()\n {\n TutorProfile::observe(new TutorProfileEvent());\n }",
"abstract public function addEvent($event);",
"public function generateEventProvider()\n {\n $this->writeFile(\n $this->getModulesPath(\"Providers/EventServiceProvider\"),\n $this->getContentFor('module-event-provider.stub')\n );\n\n return $this;\n }",
"public function subscribe($event);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieve the topic event | public function get_event() {
$topic = explode( '.', $this->get( 'topic' ) );
return apply_filters( 'llms_rest_webhook_get_event', isset( $topic[1] ) ? $topic[1] : '', $this->get( 'id' ) );
} | [
"public static function event($topic)\n {\n return self::context()->event($topic);\n }",
"function get_event_topic_id(){\n\t\treturn $this->event_topic_id;\n\t}",
"public function getIdEventTopic()\n {\n return $this->id_event_topic;\n }",
"public function getEvent() \n\t{\n\t\treturn $this->event;\n\t}",
"public function getEvent() {\n\t\treturn $this->event;\n\t}",
"public function getEvent()\n {\n return $this->event;\n }",
"public function getEvent()\n {\n return $this->_event;\n }",
"public function getTopic()\n {\n return $this->_topic;\n }",
"public function getTopic()\n {\n return $this->topic;\n }",
"public function get_topic( $context = 'view' ) {\n\t\treturn apply_filters( 'woocommerce_webhook_topic', $this->get_prop( 'topic', $context ), $this->get_id() );\n\t}",
"private function getTopic() {\n return Xss::filter($this->request->get('topic'));\n }",
"public function getTopic(): string\n {\n return $this->topic;\n }",
"protected function getEvent()\n {\n if ($event = $this->read()) {\n $header = $this->parseData($event);\n\n $payload = $this->read($header['len']);\n $payload = explode(\"\\n\", $payload, 2);\n isset($payload[1]) or $payload[1] = null;\n\n list($payload, $body) = $payload;\n\n $event = $this->resolveEvent(\n $header,\n $this->parseData($payload),\n $body\n );\n }\n\n return $event;\n }",
"private function getEvent()\n {\n $eventData = $this->coreRegistry->registry('current_store_event');\n\n return $eventData;\n }",
"public function get_resource() {\n\n\t\t$topic = explode( '.', $this->get( 'topic' ) );\n\t\treturn apply_filters( 'llms_rest_webhook_get_resource', $topic[0], $this->get( 'id' ) );\n\n\t}",
"public function getEvent(): Event\n {\n return $this->event;\n }",
"public function getTopicNotificationSession() {\n \treturn $this->manager->getTopicNotificationSession();\n\t}",
"public function event()\n {\n return $this->event;\n }",
"public function getTopicName();"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new post to add the action to the audit log. | public function testCreatePostForAuditLog( AcceptanceTester $I ) {
$I->wantToTest( 'Create a new post to add the action to the audit log.' );
$I->loginAsAdmin();
// Go to new post page.
$I->amOnAdminPage( 'post-new.php' );
// Add a title.
$I->click( '.editor-post-title__input' );
$I->type( 'Test audit log' );
// Publish the post.
$I->click( '.editor-post-publish-button__button' );
$I->click( '.editor-post-publish-panel__header-publish-button .editor-post-publish-button__button' );
$el = Locator::contains( '.editor-post-publish-panel__header-publish-button .editor-post-publish-button__button', 'Publishing' );
$I->waitForElementNotVisible( $el, 20 );
// Check post is published correctly.
$I->seePostInDatabase( [
'post_title' => 'Test audit log',
'post_status' => 'publish',
] );
} | [
"public function actionCreate()\n {\n $this->checkAccess('blog___blog__admin');\n $model = new Post();\n\n $model->user_id = Yii::$app->getUser()->getId();\n\n $model->status_id = Publishable::STATUS_DRAFT;\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['index']);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }",
"function createPost();",
"public function metaWeblog_newPost($args) {\n $this->auth(fallback($args[1]), fallback($args[2]));\n global $user;\n\n if (!$user->group->can(\"add_post\", \"add_draft\"))\n return new IXR_Error(403, __(\"You do not have sufficient privileges to add posts.\"));\n\n fallback($args[3], array());\n fallback($args[3][\"description\"], \"\");\n fallback($args[3][\"mt_basename\"], \"\");\n fallback($args[3][\"title\"], \"\");\n fallback($args[3][\"post_status\"]);\n fallback($args[3][\"mt_allow_pings\"], \"open\");\n\n $trigger = Trigger::current();\n $struct = $args[3];\n\n # Support for extended content.\n if (isset($struct[\"mt_text_more\"]))\n $struct[\"description\"].= \"<!--more-->\".$struct[\"mt_text_more\"];\n\n # Convert statuses from WordPress to Chyrp equivalents.\n switch ($struct[\"post_status\"]) {\n case \"draft\":\n $status = \"draft\";\n break;\n case \"future\":\n $status = \"scheduled\";\n break;\n case \"private\":\n $status = \"private\";\n break;\n default:\n $status = \"public\";\n }\n\n $slug = oneof(sanitize($struct[\"mt_basename\"], true, true, 80), slug(8));\n $status = $user->group->can(\"add_post\") ? $status : \"draft\" ;\n $pings = ($struct[\"mt_allow_pings\"] == \"open\");\n $created_at = oneof($this->convertFromDateCreated($struct), datetime());\n $values = array(\"title\" => $struct[\"title\"],\n \"body\" => oneof($struct[\"description\"], __(\"Nothing here yet!\")));\n\n $trigger->filter($values, \"metaWeblog_before_newPost\", $struct);\n\n $post = Post::add($values,\n $slug,\n \"\",\n \"text\",\n $user->id,\n null,\n $status,\n $created_at,\n null,\n $pings);\n\n $trigger->call(\"metaWeblog_newPost\", $struct, $post);\n return $post->id;\n }",
"public function createpost() {\n\t\t$my_post = array(\n\t\t 'post_title' => 'My post',\n\t\t 'post_content' => 'This is my post.',\n\t\t 'post_status' => 'publish',\n\t\t 'post_author' => 1,\n\t\t 'post_category' => array(8,39)\n\t\t);\n\t\t$post_id = wp_insert_post( $my_post );\n\n\t\t/**\n\t\t * Return a success message if my post was created\n\t\t *\n\t\t * For more available messages: https://github.com/wp-cli/wp-cli/wiki/API\n\t\t */\n\t\tif ( $post_id )\n\t\t\tWP_CLI::success( 'Post created with ID ' . $post_id );\n\t}",
"public function created(Post $post)\n {\n // $user = User::first();\n // $user->notify(new PostCreatedNotification());\n // Notification::send($user, new PostCreatedNotification($post));\n\n PostCreated::dispatch($post);\n }",
"function save_as_post() {\n\t\tglobal $wpdb;\n\t\t// Ensure sane defaults\n\t\tif(!$this->get('created_on') && $this->get('modified_on')) $this->set('created_on', $this->get('modified_on'));\n\t\t$this->set('created_on', (int)$this->get('created_on') ? (int)$this->get('created_on') : time());\n\t\t// Build post object\n\t\t$post = array(\n\t\t\t'post_modified' => date('Y-m-d H:i:s', $this->get('modified_on')),\n\t\t\t'post_modified_gmt' => gmdate('Y-m-d H:i:s', $this->get('modified_on')),\n\t\t\t'post_status' => 'publish',\n\t\t\t'post_type' => 'actionstream',\n\t\t\t'tags_input' => 'service_'.$this->service.','.$this->service.'_'.$this->setup_idx,\n\t\t\t'post_author' => $this->user_id,\n\t\t\t'guid' => $this->identifier()\n\t\t\t);\n\t\t// Check for existing post\n\t\t$id = $wpdb->get_row(\"SELECT ID,post_date,post_date_gmt FROM $wpdb->posts WHERE post_type='actionstream' AND guid='\".$wpdb->escape($post['guid']).\"' LIMIT 1\");\n\t\tif($id && $id->ID) {\n\t\t\t$post['ID'] = $id->ID;\n\t\t\t$post['post_date'] = $id->post_date;\n\t\t\t$post['post_date_gmt'] = $id->post_date_gmt;\n\t\t} else {\n\t\t\t$post['post_date'] = date('Y-m-d H:i:s', $this->get('created_on'));\n\t\t\t$post['post_date_gmt'] = gmdate('Y-m-d H:i:s', $this->get('created_on'));\n\t\t}\n\t\tif($this->get('title')) $post['post_title'] = $this->get('title');\n\t\tif($this->get('description')) $post['post_content'] = $this->get('description');\n\t\tif($this->get('url')) $post['post_excerpt'] = $this->get('url');\n\t\tif($this->get('coment_status')) $post['comment_status'] = $this->get('coment_status');\n\t\t\telse $post['comment_status'] = 'open';\n\t\t// Handle inserting a dupe\n\t\tif($this->parent) $post['post_parent'] = $this->parent;\n\t\t// Actually insert the post\n\t\t$id = wp_insert_post($post);\n\t\t// Update meta keys for this post\n\t\tforeach($this->data as $k => $v) {\n\t\t\tif(preg_match('/^title|description|created_on|modified_on|identifier|url|dupes$/', $k)) continue;\n\t\t\tupdate_post_meta($id, $k, $this->get($k));\n\t\t}\n\t\t// Return post_ID\n\t\t$this->post_id = $id;\n\t\treturn $id;\n\t}",
"public function actionCreate()\n {\n\t$this->layout='wide';\n $post=new Post;\n if(isset($_POST['Post']))\n {\n $post->attributes=$_POST['Post'];\n if(isset($_POST['previewPost']))\n $post->validate();\n else if(isset($_POST['submitPost']) && $post->save())\n {\n if(Yii::app()->user->status==User::STATUS_VISITOR)\n {\n Yii::app()->user->setFlash('message','Thank you for your post. Your post will be posted once it is approved.');\n $this->redirect(Yii::app()->homeUrl);\n }\n $this->redirect(array('show','slug'=>$post->slug));\n }\n }\n $this->pageTitle=Yii::t('lan','New Post');\n $this->render('create',array('post'=>$post));\n }",
"public function createPost()\n {\n // Call of view\n $myView = new View('addpost');\n $myView->build(array('chapters' => null, 'comments' => null, 'warningList' => null,'HOST' => HOST, 'adminLevel' => $_SESSION['adminLevel']));\n }",
"private function createNewDailyDogPost() {\n $user = User::where('id', 1)->first();\n\n $data = $this->callApi();\n $json = json_decode($data->getBody()->getContents());\n $fileName = $this->downloadImage($json[0]->url);\n $image = $this->createImage($fileName);\n $post = $this->createPost($user);\n $post->image()->save($image);\n\n $tag = $this->getTag();\n\n $post->tags()->attach($tag);\n \n return $post;\n }",
"public function created(Post $Post)\n {\n //code...\n }",
"public static function post_create()\n\t{\n\t\t$post = new BlogPost();\n\n\t\t/**\n\t\t * Set the Post's author to the current user name\n\t\t */\n\t\t$post->author = Auth::user()->name;\n\n\t\t/**\n\t\t * Initialize the post date\n\t\t */\n\t\t$post->date = Carbon::now()->toIso8601String();\n\n\t\t/**\n\t\t * Prepare for hosting users' comments\n\t\t */\n\t\t$post->comments = array();\n\n\t\t/**\n\t\t * Set the default post language\n\t\t */\n\t\t$post->language = 'en-US';\n\n\t\treturn $post;\n\t}",
"public function createActionPost() : object\n {\n $db = $this->app->db;\n $contentWrapper = new ContentWrapper();\n\n if (hasKeyPost(\"doCreate\")) {\n $id = $contentWrapper->create($db, getPost(\"contentTitle\"));\n setSession(\"flashmessage\", \"Ny databaspost med id \" . $id . \" har lagts till i databasen!\");\n return $this->app->response->redirect(\"content/update?contentId=\" . $id);\n }\n\n return $this->app->response->redirect(\"content\");\n }",
"public function p_add() {\n $_POST['user_id'] = $this->user->user_id;\n\n # Unix timestamp of when this post was created / modified\n $_POST['created'] = Time::now();\n $_POST['modified'] = Time::now();\n\n # Insert\n # Note we didn't have to sanitize any of the $_POST data because we're using the insert method which does it for us\n DB::instance(DB_NAME)->insert('posts', $_POST);\n\n # Send 'em back\n \n Router::redirect(\"/users/profile\");\n }",
"public function post()\n\t{\n\t\t$crud = $this->generate_crud('blog_posts');\n\t\t$crud->columns('author_id', 'category_id', 'title', 'image_url', 'tags', 'publish_time', 'status');\n\t\t$crud->set_field_upload('image_url', UPLOAD_BLOG_POST);\n\t\t$crud->set_relation('category_id', 'blog_categories', 'title');\n\t\t$crud->set_relation_n_n('tags', 'blog_posts_tags', 'blog_tags', 'post_id', 'tag_id', 'title');\n\t\t\n\t\t$state = $crud->getState();\n\t\tif ($state==='add')\n\t\t{\n\t\t\t$crud->field_type('author_id', 'hidden', $this->mUser->id);\n\t\t\t$this->unset_crud_fields('status');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$crud->set_relation('author_id', 'admin_users', '{first_name} {last_name}');\n\t\t}\n\n\t\t$this->mPageTitle = 'Blog Posts';\n\t\t$this->render_crud();\n\t}",
"public function created(Post $post)\n {\n event(new PostCreated($post));\n }",
"function add_blogpost() {\n $post = $this->posts->create();\n $this->present_blogpost($post);\n }",
"public function postCreatePost()\n\t{\n\t\t$post = new Post;\n\n\t\t$post->author_id = Auth::user()->id;\n\t\t$post->title = Input::get('title');\n\t\t$post->content = Input::get('content');\n\t\t$post->commentsEnabled = Input::get('comments_enabled', 0);\n\n\t\tif($post->save())\n\t\t{\n\t\t\t$message = 'Successfully created post. ';\n\t\t\t$message .= '<a href=\"'.Url::to('blog/post/'.$post->id).'\">View post</a>';\n\n\t\t\treturn Redirect::to('admin/blog/post/'.$post->id)\n\t\t\t\t\t->with('message', $message);\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\treturn Redirect::back()\n\t\t\t\t\t->withInput()\n\t\t\t\t\t->withErrors($post->errors());\n\t\t}\n\t}",
"public function blogcreateActionPost() : object\n {\n $response = $this->app->response;\n $request = $this->app->request;\n\n $blogTitle = $request->getPost(\"blogTitle\") ?: $request->getGet(\"title\");\n\n $this->blogAdminClass->createBlog($blogTitle);\n\n $blogId = $this->blogAdminClass->getIdBlogByTitle($blogTitle);\n $blogId = json_encode($blogId[0]);\n $blogId = substr($blogId, 6, -1);\n\n return $response->redirect(\"admin/blogedit?id=$blogId\");\n }",
"public function actionCreate()\n {\n $model = new Post();\n\n if (Yii::$app->request->isPost) \n {\n $model->attributes = Yii::$app->request->post('Post');\n\n $transaction = Yii::$app->db->beginTransaction();\n\n try \n {\n if($model->save())\n {\n $transaction->commit();\n }\n\n return $this->redirect(['manage']);\n }\n catch (\\Exception $e) \n {\n $transaction->rollBack();\n throw $e;\n }\n } \n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the target file name | public function getTargetFileName()
{
return $this->target_file_name;
} | [
"public function getTargetFilename()\n {\n if ($this->targetFolder->containsFile($this->getFilename()) &&\n strpos($this->copyOptions, 'overwrite') === false &&\n strpos($this->copyOptions, 'autorename') !== false) {\n $this->autorename();\n }\n\n return $this->fileName;\n }",
"protected function getTargetFile() {\r\n\t\treturn str_replace('%s', $this->currentDate, $this->file);\r\n\t}",
"private function getTargetFilePath()\n {\n return $this->generateTargetFilePath($this->generator, $this->getFileName());\n }",
"public function getTarget_file()\n {\n return $this->target_file;\n }",
"public function getTargetFile()\n {\n return $this->targetFile;\n }",
"protected function getTargetFile() {\n $eventDate = $this->getDate(time());\n\n // Initial setting of current date\n if (!isset($this->currentDate)) {\n $this->currentDate = $eventDate;\n }\n // Check if rollover is needed\n else if ($this->currentDate !== $eventDate) {\n $this->currentDate = $eventDate;\n }\n\n\n $file = Yii::$app->getRuntimePath() . '/logs/%s.log';\n return str_replace('%s', $this->currentDate, $file);\n }",
"private function _target() {\n return $this->standard . '/' . $this->section . '/' . $this->sniff . '.php.test';\n }",
"public function getTargetFilePath()\n {\n return Path::combine($this->getTargetFolder()->getPath(), $this->getTargetFilename());\n }",
"public function targetName()\n {\n return $this->targetName;\n }",
"public function getFileName(): string\n {\n $aeFiles = \\MarkNotes\\Files::getInstance();\n $aeSettings = \\MarkNotes\\Settings::getInstance();\n\n $fname=$aeFiles->makeFileNameAbsolute($this->sMDFileName);\n $fname=str_replace('/', DS, $fname);\n\n $fname = $aeFiles->replaceExtension($fname, $this->sLayout);\n\n // <!-- build:debug -->\n if ($aeSettings->getDebugMode()) {\n $aeDebug = \\MarkNotes\\Debug::getInstance();\n $aeDebug->log('Target file : ' . $fname, 'debug');\n }\n // <!-- endbuild -->\n\n return $fname;\n }",
"public function getTargetFilepath()\n {\n return $this->target_file_path;\n }",
"private function getFileName()\n {\n return $this->file->getBaseName() . '.' . $this->file->getExtension();\n }",
"private function getFileName()\n\t{\n\t\treturn $this->file_name;\n\t}",
"public function getSourceFileName();",
"public function get_filename() {\n\t\treturn $this->current_file->get_filename();\n\t}",
"public function target(): string\n {\n return $this->target;\n }",
"public function getFileName()\r\n\t{\r\n\t\treturn self::$HTTPPath.$this->unaltered;\r\n\t}",
"public function getFileName() {\n if ( $this->reflectionSource instanceof ReflectionMethod ) {\n \t\treturn $this->reflectionSource->getFileName();\n \t} else {\n \t\treturn parent::getFileName();\n \t}\n }",
"public function getNewFilePath()\n {\n //Get the directory path of the source file\n $path = dirname($this->sourceFile);\n\n //Create new unique file name\n $this->fileName = time() . '_' . $this->fileName;\n\n return $path . $this->fileName;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generated from protobuf field string sector_identifier_uri = 26[json_name = "sectorIdentifierUri"]; | public function setSectorIdentifierUri($var)
{
GPBUtil::checkString($var, True);
$this->sector_identifier_uri = $var;
return $this;
} | [
"public function getSectorIdentifierUri()\n {\n return $this->sectorIdentifierUri;\n }",
"public function setSectorIdentifierUri($uri)\n {\n ValidationUtility::ensureNullOrString('$uri', $uri);\n\n $this->sectorIdentifierUri = $uri;\n\n return $this;\n }",
"public function getSectorId()\n {\n return $this->sector_id;\n }",
"public function getSectorId() {\r\n\t\t\treturn $this->_intSectorId;\r\n\t\t}",
"public function setSector($sector)\r\n {\r\n if (Util::validarAulaSector($sector)) {\r\n $this->sector = Util::convertirCamelCase($sector);\r\n }\r\n }",
"public function getSector()\n {\n return substr($this->getInwardCode(), 0, 1);\n }",
"public function uriId(): string\n {\n return $this->uriId;\n }",
"public function getNotaSectororigenid()\n {\n return $this->nota_sectorOrigenId;\n }",
"public function getIdSector()\n {\n return $this->idSector;\n }",
"public function getIdCompanySector()\n {\n return $this->id_company_sector;\n }",
"public function getDetallesectorSectorid()\n {\n return $this->detalleSector_sectorId;\n }",
"public function getSectorEconomicoid()\n\t{\n\t\treturn $this->sectorEconomicoid;\n\t}",
"public function getLocationSectorSlug($id) {\r\n\t\t$result = $this->find(\r\n\t\t\t'first',\r\n\t\t\tarray(\r\n\t\t\t\t'conditions' => array('Location.id' => $id),\r\n\t\t\t\t'fields' => array('Location.sector_slug')\r\n\t\t\t)\r\n\t\t);\r\n\t\treturn $result;\r\n\t}",
"public function uriKey(): string;",
"function smarty_modifier_sector (Location $location) : string {\n $xyz = explode(',', substr($location->local, 1, -1));\n $x = (int)$xyz[0];\n $y = (int)$xyz[1];\n $z = (int)$xyz[2];\n\n return (string)Octocube::getSector($x, $y, $z);\n}",
"public function flavorIdUrl()\n {\n return [\n 'type' => self::STRING_TYPE,\n 'location' => self::URL,\n ];\n }",
"public function getSector(string $postcode): string\n {\n return $this->parsePostcode($postcode)[3];\n }",
"public function getIdFromUri(string $uri): string;",
"public function idCard()\n {\n return url('/files/card/uni_' . $this->university()->id . '/card_' . $this->getQRCode() . '.png');\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return_browse_tab This method processes and creates the browse tab Returns html of browse tab | function return_browse_tab(){
global $theme, $image_path, $app_list_strings, $mod_strings, $app_strings;
$ss_brws = new Sugar_Smarty();
$ss_brws->assign("MOD", $mod_strings);
$ss_brws->assign("APP", $app_strings);
require_once('vendor/ytree/Tree.php');
require_once('vendor/ytree/Node.php');
require_once('modules/KBTags/TreeData.php');
$tagstree=new Tree('kb_browse_tags');
$tagstree->set_param('module','KBTags');
$tagstree->set_param('moduleview', 'browse');
$nodes=get_tag_nodes_for_browsing();
foreach ($nodes as $node) {
$tagstree->add_node($node);
}
if(empty($tagstree->_nodes)){
$notag_node = new Node('foo','There are no tags to browse');
$tagstree->add_node($notag_node);
}
$ss_brws->assign("TREEHEADER",$tagstree->generate_header());
$ss_brws->assign("TREEINSTANCE",$tagstree->generate_nodes_array());
$ss_brws->assign("TREE_WIDTH","15%");
$ss_brws->assign("BORDER",1);
//set the site_url variable.
global $sugar_config;
$sugar_config['site_url'] = preg_replace('/^http(s)?\:\/\/[^\/]+/',"http$1://".$_SERVER['HTTP_HOST'],$sugar_config['site_url']);
if(!empty($_SERVER['SERVER_PORT']) &&$_SERVER['SERVER_PORT'] == '443') {
$sugar_config['site_url'] = preg_replace('/^http\:/','https:',$sugar_config['site_url']);
}
$site_data = "<script> var site_url= {\"site_url\":\"".$sugar_config['site_url']."\"};</script>\n";
$ss_brws->assign("SITEURL",$site_data);
return $ss_brws->fetch("modules/KBDocuments/tpls/browseTab.tpl");
} | [
"public function getTabContent() {\n\n\t\t$expandPage = NULL;\n\t\tif (!isset($this->browseLinksObj->expandPage)) {\n\t\t\t$urlInfo = $this->browseLinksObj->curUrlInfo;\n\t\t\tif ($urlInfo['recordTable'] && $urlInfo['recordUid']) {\n\t\t\t\t$record = \\TYPO3\\CMS\\Backend\\Utility\\BackendUtility::getRecord($urlInfo['recordTable'], $urlInfo['recordUid']);\n\t\t\t\tif (isset($record)) {\n\t\t\t\t\t$expandPage = $record['pid'];\n\t\t\t\t\t$this->browseLinksObj->expandPage = $expandPage;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$content = '';\n\n\t\tif ($this->elementBrowserHook->isRTE()) {\n\t\t\t$content .= $this->browseLinksObj->addAttributesForm();\n\t\t}\n\n\t\t/** @var \\Aoe\\Linkhandler\\Browser\\PageTree $pagetree */\n\t\t/** @var \\TYPO3\\CMS\\Core\\Authentication\\BackendUserAuthentication $beUser */\n\t\t$beUser = $GLOBALS['BE_USER'];\n\t\t$pagetree = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance('Aoe\\\\Linkhandler\\\\Browser\\\\PageTree');\n\t\t$pagetree->ext_showNavTitle = $beUser->getTSConfigVal('options.pageTree.showNavTitle');\n\t\t$pagetree->ext_showPageId = $beUser->getTSConfigVal('options.pageTree.showPageIdWithTitle');\n\t\t$pagetree->addField('nav_title');\n\n\t\tif (\n\t\t\tisset($this->tabConfiguration['pageTreeMountPoints.'])\n\t\t\t&& is_array($this->tabConfiguration['pageTreeMountPoints.'])\n\t\t\t&& !empty($this->tabConfiguration['pageTreeMountPoints.'])) {\n\t\t\t$pagetree->MOUNTS = $this->tabConfiguration['pageTreeMountPoints.'];\n\t\t}\n\n\t\t$pm = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::_GP('PM');\n\t\tif (isset($expandPage) && !isset($pm)) {\n\t\t\t$pagetree->expandToPage($expandPage);\n\t\t}\n\n\t\t/** @var \\Aoe\\Linkhandler\\Browser\\RecordListRte $recordList */\n\t\t$recordList = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance('Aoe\\\\Linkhandler\\\\Browser\\\\RecordListRte');\n\t\t$recordList->setBrowseLinksObj($this->browseLinksObj);\n\n\t\tif (isset($this->tabConfiguration['additionalSearchQueries.']) && is_array($this->tabConfiguration['additionalSearchQueries.'])) {\n\t\t\tforeach ($this->tabConfiguration['additionalSearchQueries.'] as $table => $searchQuery) {\n\t\t\t\t$recordList->addAdditionalSearchQuery($table, $searchQuery);\n\t\t\t}\n\t\t}\n\n\t\tif (isset($this->tabConfiguration['enableSearchBox'])) {\n\t\t\t$recordList->setEnableSearchBox($this->tabConfiguration['enableSearchBox']);\n\t\t}\n\n\t\t$tables = '*';\n\t\tif (isset($this->tabConfiguration['listTables'])) {\n\t\t\t$tables = $this->tabConfiguration['listTables'];\n\t\t}\n\n\t\t$this->browseLinksObj->setRecordList($recordList);\n\t\t$cElements = $this->browseLinksObj->TBE_expandPage($tables);\n\n\t\t// Outputting Temporary DB mount notice:\n\t\t$dbmount = '';\n\t\t/** @var \\TYPO3\\CMS\\Lang\\LanguageService $lang */\n\t\t$lang = $GLOBALS['LANG'];\n\t\tif (intval($beUser->getSessionData('pageTree_temporaryMountPoint'))) {\n\t\t\t$link = '<a href=\"' . htmlspecialchars(\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::linkThisScript(array('setTempDBmount' => 0))) . '\">' . $lang->sl('LLL:EXT:lang/locallang_core.xlf:labels.temporaryDBmount', 1) . '</a>';\n\t\t\t$flashMessage = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance('TYPO3\\\\CMS\\\\Core\\\\Messaging\\\\FlashMessage', $link, '', \\TYPO3\\CMS\\Core\\Messaging\\FlashMessage::INFO);\n\t\t\t$dbmount = $flashMessage->render();\n\t\t}\n\t\t$content .= '\n\t\t\t<!--\n\t\t\t\tWrapper table for page tree / record list:\n\t\t\t-->\n\t\t\t<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"typo3-linkPages\" class=\"tx-linkbrowser-tab\">\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=\"c-wCell\" valign=\"top\">' . $this->browseLinksObj->barheader(($lang->getLL('pageTree') . ':')) . $dbmount . $pagetree->getBrowsableTree() . '</td>\n\t\t\t\t\t<td class=\"c-wCell\" valign=\"top\">' . $cElements . '</td>\n\t\t\t\t</tr>\n\t\t\t</table>\n\t\t';\n\n\t\treturn $content;\n\t}",
"function _render_create_tab()\n {\n return $this->object->_render_ngg_page_in_frame('ngg_addgallery', 'create_tab');\n }",
"function bck_tabbed_content() {\n \n }",
"private function subpart_setTabs()\n {\n $content = null;\n\n $this->linkDefaultTab = $this->zz_tabDefaultLink();\n $bool_dontLinkDefaultTab = false;\n if ( $this->pObj->conf[ 'navigation.' ][ 'indexBrowser.' ][ 'defaultTab.' ][ 'display_in_url' ] == 0 )\n {\n $bool_dontLinkDefaultTab = true;\n // #7582, Bugfix, 100501\n if ( $this->pObj->objFlexform->bool_emptyAtStart )\n {\n $bool_dontLinkDefaultTab = false;\n // DRS - Development Reporting System\n if ( $this->pObj->b_drs_templating )\n {\n t3lib_div::devlog( '[WARN/TEMPLATING] Empty list by start is true and the default tab of the index browser shouldn\\'t linked with a piVar. ' .\n 'This is not proper.', $this->pObj->extKey, 2 );\n t3lib_div::devlog( '[INFO/TEMPLATING] The default tab of the index browser will be linked with a piVar by the system!', $this->pObj->extKey, 0 );\n }\n }\n }\n // Get the tab array\n ( array ) $arrTabs = $this->indexBrowserTab[ 'tabIds' ];\n // get id of the last visible tab\n $lastTabId = $this->zz_tabLastId();\n\n // LOOP : tabs\n foreach ( ( array ) $this->indexBrowserTab[ 'tabIds' ] as $key => $tab )\n {\n if ( $tab[ 'sum' ] < 1 && !$tab[ 'displayWoItems' ] )\n {\n continue;\n }\n\n // Wrap the label\n if ( isset( $tab[ 'wrap' ] ) )\n {\n $tab[ 'label' ] = str_replace( '|', $tab[ 'label' ], $tab[ 'wrap' ] );\n }\n if ( !( isset( $tab[ 'wrap' ] ) ) )\n {\n $tab[ 'label' ] = str_replace\n (\n '|', $tab[ 'label' ], $this->pObj->conf[ 'navigation.' ][ 'indexBrowser.' ][ 'defaultTabWrap' ]\n );\n }\n $markerArray = array();\n\n // Get class\n $class = $this->zz_tabClass( $lastTabId, $tab, $key );\n $markerArray[ '###CLASS###' ] = $class;\n $markerArray[ '###LI_CLASS###' ] = $class;\n\n // SWITCH : sum of hits of tab, display without items\n switch ( true )\n {\n case(!empty( $tab[ 'sum' ] ) ):\n // Tab with hits\n $markerArray[ '###TAB###' ] = $this->zz_tabLinkLabel( $tab );\n break;\n case( $tab[ 'displayWoItems' ] ):\n // Tab without hits\n // #43732, #i0109, 141214, dwildt\n //$class = 'class=\"ui-tabs-anchor without-href\"';\n $class = 'class=\"' . $this->pObj->conf[ 'navigation.' ][ 'indexBrowser.' ][ 'classes.' ][ 'a.' ][ 'empty' ] . '\"';\n $tab[ 'label' ] = '<a ' . $class . '>' . $tab[ 'label' ] . '</a>';\n//$this->pObj->dev_var_dump( $tab['label'] );\n $markerArray[ '###TAB###' ] = $tab[ 'label' ];\n break;\n default:\n continue;\n }\n // SWITCH : sum of hits of tab, display without items\n // Set the content\n $content = $content . $this->pObj->cObj->substituteMarkerArray( $this->subpartTab, $markerArray );\n }\n // LOOP : tabs\n // Set the class var subpartTab\n $this->subpartTab = $content;\n }",
"function displaybrowse($browse, $limit, $pagenum)\n{\n // Connect to database\n $db_Connection = new dbConnect()\n or die(_(\"Failed to connect to database.\"));\n\n // Which sort order and criteria do we want?\n //\n // The $where clause is normally empty.\n //\n // However, in the case of PG identifier, there may be projects which are\n // in the archive but were not posted to PG, i.e., a decision was made to\n // archive the project files to preserve the efforts of volunteers even\n // though it was unable to be completed.\n // Rather than suppress them in every browse option, we leave them visible\n // in author/title so a visitor can find them (if they know about them),\n // and only suppress their appearance in the PG listing where the lack of\n // an identifier is glaringly obvious.\n\n switch ($browse) {\n case \"title\":\n $where = \"\";\n $order = \"title\";\n break;\n case \"author_name\":\n $where = \"\";\n $order = \"author_name\";\n break;\n case \"postednum\":\n $where = \"WHERE pg_identifier != ''\";\n $order = \"CAST(pg_identifier AS UNSIGNED INTEGER)\";\n break;\n default:\n $where = \"\";\n $order = \"author_name\";\n break;\n }\n\n // Establish variables to hold various parts of the table display\n $table_part1 = \"<table id='browse' width =\\\"100%\\\" >\\n\"; // Table Open\n $table_part2 = \"\"; // Table Header Row\n $table_part3 = \"\"; // Table Rows for Results\n $table_part4 = \"</table>\\n\"; // Table Close\n\n // Get the total number of rows\n $sql = \"SELECT COUNT(id) as numrecs FROM catalog $where\";\n $result = mysqli_query($db_Connection->connection,$sql);\n $finfo = mysqli_fetch_array($result);\n $num_rows = $finfo['numrecs'];\n\n // How many results we want per page\n $page_rows = $limit;\n\n // How many prev/next page links we want to display\n $next_pages = 4;\n\n // What is the last page\n $last_page = ceil($num_rows/$page_rows);\n // Ensure it's not < 1\n if ($last_page < 1 ) $last_page = 1;\n\n // pagenum is validated as $pn in the URL parameters and then passed\n // intothe function, so it should already meet these criteria.\n\n // Ensure pagenum isn't < 1 or > the last page\n if ($pagenum < 1) { $pagenum = 1; }\n else if ($pagenum > $last_page ) { $pagenum = $last_page; }\n\n // Set the row range we want for the specified page of results\n $limit = 'LIMIT ' .($pagenum - 1) * $page_rows .',' .$page_rows;\n\n // Build our query\n $sql = \"SELECT\n id, author_name, title, pg_identifier\n FROM catalog\n $where\n ORDER BY $order ASC $limit\";\n $result = mysqli_query($db_Connection->connection,$sql);\n $num_returned_rows = mysqli_num_rows($result);\n\n // Show total number of pages and current page number\n $header_1 = \"<div>$num_rows Records: \";\n $header_2 = \"Displaying page $pagenum (of $last_page)</div>\\n\";\n\n // Build the pagination control\n $paginationCtrls = '';\n\n // If there is more than 1 page worth of results\n if ($last_page != 1)\n {\n /* First we check if we are on page one. If we are then we don't need a link to \n the previous page or the first page so we do nothing. If we aren't then we\n generate links to the first page, and to the previous page. */\n if ($pagenum > 1)\n {\n // Add a first page link\n $paginationCtrls .= '<a href=\"'.$_SERVER['PHP_SELF'].'?pn=1&browse='.$browse.'\">First</a> ';\n\n $previous = $pagenum - 1;\n $paginationCtrls .= '<a href=\"'.$_SERVER['PHP_SELF'].'?pn='.$previous.'&browse='.$browse.'\">Previous</a> ';\n\n\n // Render clickable number links that should appear on the left of the target page number\n for ($i = ($pagenum - $next_pages); $i < $pagenum; $i++)\n {\n if ($i > 0)\n {\n $paginationCtrls .= '<a href=\"'.$_SERVER['PHP_SELF'].'?pn='.$i.'&browse='.$browse.'\">'.$i.'</a> ';\n }\n }\n }\n\n // Render the target page number, but without it being a link\n $paginationCtrls .= ''.$pagenum.' ';\n\n // Render clickable number links that should appear on the right of the target page number\n for ($i = $pagenum+1; $i <= $last_page; $i++)\n {\n $paginationCtrls .= '<a href=\"'.$_SERVER['PHP_SELF'].'?pn='.$i.'&browse='.$browse.'\">'.$i.'</a> ';\n if ($i >= ($pagenum + $next_pages) )\n {\n break;\n }\n }\n // This does the same as above, only checking if we are on the last page, and then generating the \"Next\"\n if ($pagenum != $last_page)\n {\n $next = $pagenum + 1;\n $paginationCtrls .= ' <a href=\"'.$_SERVER['PHP_SELF'].'?pn='.$next.'&browse='.$browse.'\">Next</a> ';\n // And add a last page link\n $paginationCtrls .= ' <a href=\"'.$_SERVER['PHP_SELF'].'?pn='.$last_page.'&browse='.$browse.'\">Last</a> ';\n }\n }\n\n // Build the table headers display\n if ($browse == 'title'){\n $table_part2 = \"<tr><th id='title'>Title</th><th id='author'>Author</th><th id='pg' class='right'>PG No.</th></tr>\\n\";\n }elseif ($browse =='author_name'){\n $table_part2 = \"<tr><th id='author'>Author</th><th id='title'>Title</th><th id='pg' class='right'>PG No.</th></tr>\\n\";\n }elseif ($browse =='postednum'){\n $table_part2 = \"<tr><th id='pg' class='right'>PG No.</th><th id='author'>Author</th><th id='title'>Title</th></tr>\\n\";\n }\n\n // Build the display of the retrieved rows\n for ( $rownum=0; $rownum < $num_returned_rows; )\n {\n $finfo = mysqli_fetch_array($result,MYSQLI_ASSOC);\n $id = html_safe($finfo['id']);\n $author = html_safe($finfo['author_name']);\n $title = html_safe($finfo['title']);\n $postednum = html_safe($finfo['pg_identifier']);\n \n // Create table by title\n if ($browse == 'title')\n {\n $table_part3 .= \"<tr><td><a href =\\\"{SiteBase}/tools/biblio.php?id=$id\\\">$title</a></td>\";\n $table_part3 .= \"<td>$author</td><td class='right'>$postednum</td></tr>\";\n }\n\n if ($browse =='author_name')\n {\n $table_part3 .= \"<tr><td>$author</td>\";\n $table_part3 .= \"<td><a href =\\\"{SiteBase}/tools/biblio.php?id=$id\\\">$title</a></td>\";\n $table_part3 .= \"<td class='right'>$postednum</td></tr>\";\n }\n if ($browse =='postednum')\n {\n $table_part3 .= \"<tr><td class='right'>$postednum</td><td>$author</td>\";\n $table_part3 .= \"<td><a href =\\\"{SiteBase}/tools/biblio.php?id=$id\\\">$title</a></td></tr>\";\n }\n $rownum++;\n }\n\n $paging_header = \"<div id='pagination_header'>\".$header_1.$header_2.\"</div>\\n\";\n // Position the pagination controls\n $paginationCtrls = \"<div id='pagination_controls'>\".$paginationCtrls.\"</div>\\n\";\n\n $contents = $paging_header.$paginationCtrls.$table_part1.$table_part2.$table_part3.$table_part4; \n return $contents;\n}",
"private function recordbrowser_rendering()\n {\n $record_browser = null;\n $arr_buttons = array();\n\n // Uid of the current record\n $singlePid = (int) $this->pObj->piVars['showUid'];\n // Uid of the current plugin\n $tt_content_uid = $this->pObj->cObj->data['uid'];\n $lang = ( int ) $GLOBALS['TSFE']->sys_language_content;\n\n\n\n //////////////////////////////////////////////////////////////////////\n //\n // RETURN record_browser should not be displayed\n\n $bool_record_browser = $this->conf['navigation.']['record_browser'];\n if(!$bool_record_browser)\n {\n if ($this->pObj->b_drs_templating)\n {\n t3lib_div::devlog('[INFO/TEMPLATING] record browser should not displayed: RETURN', $this->pObj->extKey, 0);\n }\n return $record_browser;\n }\n // RETURN record_browser should not be displayed\n\n\n\n //////////////////////////////////////////////////////////////////////\n //\n // Get record_browser configuration\n\n $conf_record_browser = $this->conf['navigation.']['record_browser.'];\n // Get record_browser configuration\n\n\n\n //////////////////////////////////////////////////////////////////////\n //\n // RETURN record_browser should not be displayed in case of no result\n\n $bool_display_without_result = $conf_record_browser['display.']['withoutResult'];\n if(!$bool_display_without_result)\n {\n if(empty($this->pObj->uids_of_all_rows[$tt_content_uid]['cache'][$lang]['mode-' . $this->mode]['uids_of_all_rows']))\n {\n if ($this->pObj->b_drs_templating)\n {\n t3lib_div::devlog('[INFO/TEMPLATING] uids_of_all_rows is empty. ' .\n 'record browser should not displayed in case of an empty result: RETURN', $this->pObj->extKey, 0);\n }\n return $record_browser;\n }\n }\n // RETURN record_browser should not be displayed in case of no result\n\n\n\n //////////////////////////////////////////////////////////////////////\n //\n // Get first, current and last positions and the position array\n\n $uids_of_all_rows = $this->pObj->uids_of_all_rows[$tt_content_uid]['cache'][$lang]['mode-' . $this->mode]['uids_of_all_rows'];\n // Position array: the position (0, 1, ... , n) will be the value, the uid of the record will be the key\n $pos_of_all_rows = array_flip($uids_of_all_rows);\n\n $pos_of_first_row = 0;\n $pos_of_curr_row = $pos_of_all_rows[$singlePid];\n $pos_of_last_row = $pos_of_all_rows[end($uids_of_all_rows)];\n $marker['###RECORD_SUM###'] = $pos_of_last_row + 1;\n $marker['###TT_CONTENT.UID###'] = $this->pObj->cObj->data['uid'];\n // Get first, current and last positions and the position array\n\n\n\n //////////////////////////////////////////////////////////////////////\n //\n // Set the button first\n\n $button = null;\n if($conf_record_browser['display.']['firstAndLastButton'])\n {\n if($pos_of_curr_row >= ($pos_of_first_row + 2))\n {\n // Get uid of the record\n $marker['###RECORD_UID###'] = $uids_of_all_rows[0];\n // Get position of the record\n $marker['###RECORD_POSITION###'] = $pos_of_all_rows[$marker['###RECORD_UID###']] + 1;\n\n // Get button configuration\n $button_name = $conf_record_browser['buttons.']['current.']['first'];\n $button_conf = $conf_record_browser['buttons.']['current.']['first.'];\n\n // Set and replace markers\n $button_conf = $this->pObj->objMarker->substitute_marker($button_conf, $marker);\n\n // Set button\n $button = $this->pObj->cObj->cObjGetSingle($button_name, $button_conf);\n }\n if($pos_of_curr_row < ($pos_of_first_row + 2))\n {\n if($conf_record_browser['display.']['buttonsWithoutLink'])\n {\n // Get button configuration\n $button_name = $conf_record_browser['buttons_wo_link.']['current.']['first'];\n $button_conf = $conf_record_browser['buttons_wo_link.']['current.']['first.'];\n\n // Set button\n $button = $this->pObj->cObj->cObjGetSingle($button_name, $button_conf);\n }\n }\n }\n if(!empty($button))\n {\n $arr_buttons[] = $button;\n }\n // Set the button first\n\n\n\n //////////////////////////////////////////////////////////////////////\n //\n // Set the button prev\n\n $button = null;\n if($pos_of_curr_row >= ($pos_of_first_row + 1))\n {\n // Get uid of the record\n $marker['###RECORD_UID###'] = $uids_of_all_rows[$pos_of_curr_row - 1];\n // Get position of the record\n $marker['###RECORD_POSITION###'] = $pos_of_all_rows[$marker['###RECORD_UID###']] + 1;\n\n // Get button configuration\n $button_name = $conf_record_browser['buttons.']['current.']['prev'];\n $button_conf = $conf_record_browser['buttons.']['current.']['prev.'];\n\n // Set and replace markers\n $button_conf = $this->pObj->objMarker->substitute_marker($button_conf, $marker);\n\n // Set button\n $button = $this->pObj->cObj->cObjGetSingle($button_name, $button_conf);\n }\n if($pos_of_curr_row < ($pos_of_first_row + 1))\n {\n if($conf_record_browser['display.']['buttonsWithoutLink'])\n {\n // Get button configuration\n $button_name = $conf_record_browser['buttons_wo_link.']['current.']['prev'];\n $button_conf = $conf_record_browser['buttons_wo_link.']['current.']['prev.'];\n\n // Set button\n $button = $this->pObj->cObj->cObjGetSingle($button_name, $button_conf);\n }\n }\n if(!empty($button))\n {\n $arr_buttons[] = $button;\n }\n // Set the button prev\n\n\n\n //////////////////////////////////////////////////////////////////////\n //\n // Set the button curr\n\n $button = null;\n // Get uid of the record\n $marker['###RECORD_UID###'] = $singlePid;\n // Get position of the record\n $marker['###RECORD_POSITION###'] = $pos_of_all_rows[$marker['###RECORD_UID###']] + 1;\n\n // Get button configuration\n $button_name = $conf_record_browser['buttons.']['current.']['curr'];\n $button_conf = $conf_record_browser['buttons.']['current.']['curr.'];\n\n // Set and replace markers\n $button_conf = $this->pObj->objMarker->substitute_marker($button_conf, $marker);\n\n // Set button\n $button = $this->pObj->cObj->cObjGetSingle($button_name, $button_conf);\n\n if(!empty($button))\n {\n $arr_buttons[] = $button;\n }\n // Set the button curr\n\n\n\n //////////////////////////////////////////////////////////////////////\n //\n // Set the button next\n\n $button = null;\n if($pos_of_curr_row <= ($pos_of_last_row - 1))\n {\n // Get uid of the record\n $marker['###RECORD_UID###'] = $uids_of_all_rows[$pos_of_curr_row + 1];\n // Get position of the record\n $marker['###RECORD_POSITION###'] = $pos_of_all_rows[$marker['###RECORD_UID###']] + 1;\n\n // Get button configuration\n $button_name = $conf_record_browser['buttons.']['current.']['next'];\n $button_conf = $conf_record_browser['buttons.']['current.']['next.'];\n\n // Set and replace markers\n $button_conf = $this->pObj->objMarker->substitute_marker($button_conf, $marker);\n\n // Set button\n $button = $this->pObj->cObj->cObjGetSingle($button_name, $button_conf);\n }\n if($pos_of_curr_row > ($pos_of_last_row - 1))\n {\n if($conf_record_browser['display.']['buttonsWithoutLink'])\n {\n // Get button configuration\n $button_name = $conf_record_browser['buttons_wo_link.']['current.']['next'];\n $button_conf = $conf_record_browser['buttons_wo_link.']['current.']['next.'];\n\n // Set button\n $button = $this->pObj->cObj->cObjGetSingle($button_name, $button_conf);\n }\n }\n if(!empty($button))\n {\n $arr_buttons[] = $button;\n }\n // Set the button next\n\n\n\n //////////////////////////////////////////////////////////////////////\n //\n // Set the button last\n\n $button = null;\n if($conf_record_browser['display.']['firstAndLastButton'])\n {\n if($pos_of_curr_row <= ($pos_of_last_row - 2))\n {\n // Get uid of the record\n $marker['###RECORD_UID###'] = $uids_of_all_rows[count($uids_of_all_rows) - 1];\n // Get position of the record\n $marker['###RECORD_POSITION###'] = $pos_of_all_rows[$marker['###RECORD_UID###']] + 1;\n\n // Get button configuration\n $button_name = $conf_record_browser['buttons.']['current.']['last'];\n $button_conf = $conf_record_browser['buttons.']['current.']['last.'];\n\n // Set and replace markers\n $button_conf = $this->pObj->objMarker->substitute_marker($button_conf, $marker);\n\n // Set button\n $button = $this->pObj->cObj->cObjGetSingle($button_name, $button_conf);\n }\n if($pos_of_curr_row > ($pos_of_last_row - 2))\n {\n if($conf_record_browser['display.']['buttonsWithoutLink'])\n {\n // Get button configuration\n $button_name = $conf_record_browser['buttons_wo_link.']['current.']['last'];\n $button_conf = $conf_record_browser['buttons_wo_link.']['current.']['last.'];\n\n // Set button\n $button = $this->pObj->cObj->cObjGetSingle($button_name, $button_conf);\n }\n }\n }\n if(!empty($button))\n {\n $arr_buttons[] = $button;\n }\n // Set the button last\n\n\n\n //////////////////////////////////////////////////////////////////////\n //\n // Set the record browser\n\n // Devide configuration\n $devider_name = $conf_record_browser['buttons.']['current.']['devider'];\n $devider_conf = $conf_record_browser['buttons.']['current.']['devider.'];\n\n // Set devider\n $devider = $this->pObj->cObj->cObjGetSingle($devider_name, $devider_conf);\n\n // Devide buttons\n $record_browser = implode($devider, $arr_buttons);\n\n // Wrapper configuration\n $wrap_all_name = $conf_record_browser['buttons.']['current.']['wrap_all'];\n $wrap_all_conf = $conf_record_browser['buttons.']['current.']['wrap_all.'];\n if(empty($wrap_all_conf['value']))\n {\n $wrap_all_conf['value'] = $record_browser;\n }\n\n // Wrap record browser\n $record_browser = $this->pObj->cObj->cObjGetSingle($wrap_all_name, $wrap_all_conf);\n // Set the record browser\n\n\n\n // RETURN the record browser\n return $record_browser;\n }",
"static function renderBrowsePanel() {\n $html = '<div class=\"resultBar\">';\n $html .= _BIZ_SECTIONS_HIERARCHY;\n $html .= '</div>';\n $html .= '<ul class=\"browse\">';\n \n $channels = channel::getChannelHierarchy();\n \n foreach ($channels as $id=>$path) {\n // make a nice display for current channel\n $parts = explode(' :: ', $path);\n $html .= '<li class=\"channel level-'.strtolower(chr(64 + min(5, count($parts)))).'\">';\n $html .= '<a href=\"';\n $html .= wcmMVC_Action::computeObjectURL('channel', $id);\n $html .= '\">'.array_pop($parts).'</a></li>';\n }\n \n unset($channels);\n $html .= '</ul>';\n \n return $html;\n}",
"public function rendercreatetab()\n\t{\n\t\t$mentor_link = $this->CFG->wwwroot.'/create';\n\t\t$school_link=$this->CFG->wwwroot.'/create/listschool.php';\n\t\t$event_link = $this->CFG->wwwroot.'/create/listevent.php';\n\t\t$content = '<div class=\"card-text content\">\n\t\t<div id=\"block-createtab\" class=\"block-createtab\" data-region=\"createtab\">\n\t\t\t<ul id=\"block-createtab-view-choices\" class=\"nav nav-tabs\" role=\"tablist\">\n\t\t\t\t<li class=\"nav-item\">\n\t\t\t\t<a id=\"v1\" class=\"nav-link active\" href=\"'.$mentor_link.'\" data-tabname=\"mentors\" aria-expanded=\"true\">Mentors </a>\n\t\t\t\t</li>\n\t\t\t\t<li class=\"nav-item\">\n\t\t\t\t<a id=\"v2\" class=\"nav-link\" href=\"'.$school_link.'\" data-tabname=\"schools\" aria-expanded=\"false\">Schools</a>\n\t\t\t\t</li>\n\t\t\t\t<li class=\"nav-item\">\n\t\t\t\t<a id=\"v2\" class=\"nav-link\" href=\"'.$event_link.'\" data-tabname=\"events\" aria-expanded=\"false\">Events</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t<div class=\"tab-content content-centred tabcontentatal\">';\n\t\t$content.=$this->render_mentor_content();\n\t\t$content.='</div></div></div>'; //Close tabcotent,block-createab,card-text\n\treturn $content;\n\t}",
"public function showBrowser()\n {\n $browse = $this->browseDirectory(FRAMEWORK_PATH.self::$directory);\n\n // create the form fields for the upload\n $upload = $this->createUploadForm();\n\n $create_directory = $this->createDirectoryForm();\n\n switch (self::$usage) {\n case 'CKEditor':\n $msg = $this->app['translator']->trans('No file selected!');\n $exit_link = \"javascript:returnCKEMessage('$msg', '\".self::$CKEditorFuncNum.\"');\";\n break;\n default:\n $exit_params = base64_encode(json_encode(array(\n 'usage' => self::getUsage(),\n 'redirect' => self::getRedirect(),\n )));\n $exit_link = FRAMEWORK_URL.'/mediabrowser/exit/'.$exit_params;\n break;\n }\n\n return $this->app['twig']->render($this->app['utils']->getTemplateFile(\n '@phpManufaktur/MediaBrowser/Template',\n 'browser.twig'),\n array(\n 'actual_directory' => self::$directory,\n 'usage' => self::$usage,\n 'iframe_add_height' => 35,\n 'images' => $browse['images'],\n 'directories' => $browse['directories'],\n 'alert' => $this->getAlert(),\n 'upload' => $upload->createView(),\n 'create_directory' => $create_directory->createView(),\n 'action' => array(\n 'upload' => FRAMEWORK_URL.'/mediabrowser/upload',\n 'directory' => FRAMEWORK_URL.'/mediabrowser/directory/create',\n 'exit' => $exit_link\n ),\n ));\n }",
"function wdtBrowseTables()\n{\n if (!current_user_can('manage_options')) {\n wp_die(__('You do not have sufficient permissions to access this page.'));\n }\n\n $action = '';\n if (isset($_REQUEST['action']) && -1 != $_REQUEST['action']) {\n $action = $_REQUEST['action'];\n }\n if (isset($_REQUEST['action2']) && -1 != $_REQUEST['action2']) {\n $action = $_REQUEST['action2'];\n }\n\n if ($action === 'delete') {\n $tableId = $_REQUEST['table_id'];\n\n if (!is_array($tableId)) {\n WPDataTable::deleteTable((int)$tableId);\n } else {\n foreach ($tableId as $singleTableId) {\n WPDataTable::deleteTable((int)$singleTableId);\n }\n }\n }\n\n $wdtBrowseTable = new WDTBrowseTable();\n $wdtBrowseTable->prepare_items();\n\n ob_start();\n $wdtBrowseTable->display();\n /** @noinspection PhpUnusedLocalVariableInspection */\n $tableHTML = ob_get_contents();\n ob_end_clean();\n\n ob_start();\n include WDT_ROOT_PATH . 'templates/admin/browse/table/browse.inc.php';\n $browseTablesPage = ob_get_contents();\n ob_end_clean();\n\n $browseTablesPage = apply_filters('wpdatatables_filter_browse_page', $browseTablesPage);\n\n echo $browseTablesPage;\n\n do_action('wpdatatables_browse_page');\n}",
"function ui_renderSubmitTab($label, $editorUrl, $counter, $active, $has_predecessors) {\n\tglobal $gSession;\n\t\n\t## init return value\n\t$return_value = \"\";\n\t\n\t## here we define the start\n\tif($counter == $active) {\n\t\t$image_base = 'content/high';\n\t} else {\n\t\t$image_base = 'content/norm';\n\t}\n\t\n\tif(!$has_predecessors) {\n\t\t$image_right = '_end';\n\t} else {\n\t\tif($counter+1 == $active) {\n\t\t\t## the next one his active\n\t\t\t$image_right = '_high';\n\t\t} else {\n\t\t\t$image_right = '_norm';\n\t\t}\n\t}\n\n\t## prepare the url to ourselves\n\t$self = $gSession->url($_SERVER['PHP_SELF']);\n\t$self .= '&tab='.$counter;\n\t\n\n\t## get the template\n\t$template = new Template(INTERFACE_DIR);\n\t$template -> set_templatefile(array(\"contentbegin\" => \"tab.tpl\",\"contentmiddle\" => \"tab.tpl\",\"contentmodulebegin\" => \"tab.tpl\"));\n\n\t## now start setting the vars\n\t$template->set_var('LABEL', $label);\n\t$template->set_var('RIGHT', $image_right);\n\t$template->set_var('BASE', $image_base);\n\t$template->set_var('EDITOR', $editorUrl);\n\t$template->set_var('SELF', $self);\n\t$template->set_var('SITE', SITE);\n\t\n\t## finally we need to set the order-\n\t## if the tab should be highlightes we need to\n\t## handle this in here too\n\tif ($counter == 0) {\n\t\t$return_value = $template->fill_block('contentbegin');\n\t} else if($counter == 3) {\n\t\t$return_value = $template->fill_block('contentmodulebegin');\n\t} else {\n\t\t$return_value = $template->fill_block('contentmiddle');\n\t}\t\t\t\t\n\n\treturn $return_value;\t\n}",
"protected function render_tabs()\n {\n }",
"private function renderCreateTab()\r\n\t\t{\t\t\t\r\n\t\t\t$scripts = $this->getScripts();\t\r\n\t\t\t$this->context->smarty->assign(\r\n\t\t\t\tarray(\t\t\t\t\t\r\n\t\t\t\t\t'recipes' => $scripts\r\n\t\t\t\t)\r\n\t\t\t);\t\t\t\t\t\t\r\n\t\t\t$tpl = $this->context->smarty->fetch(_PS_MODULE_DIR_ . 'massivo/views/templates/admin/tabs/renderCreateTab.tpl');\r\n\t\t\treturn $tpl;\r\n\t\t}",
"private function output_tab_content(){\n\t\t\techo $this->form->output_customfields_form();\n\t\t}",
"public function getTab($linkSelectorAction)\n {\n // Only return content if the media tab was called.\n if ($linkSelectorAction !== 'jfmulticontent') {\n return false;\n }\n\n $this->browseLinks = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance('tx_rtehtmlarea_browse_links');\n $this->browseLinks->init();\n\n $content .= $this->browseLinks->addAttributesForm();\n\n $pagetree = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance('tx_rtehtmlarea_pageTree');\n $pagetree->ext_showNavTitle = $GLOBALS['BE_USER']->getTSConfigVal('options.pageTree.showNavTitle');\n $pagetree->ext_showPageId = $GLOBALS['BE_USER']->getTSConfigVal('options.pageTree.showPageIdWithTitle');\n $pagetree->addField('nav_title');\n $tree = $pagetree->getBrowsableTree();\n $cElements = $this->expandPage();\n\n // Outputting Temporary DB mount notice:\n if (intval($GLOBALS['BE_USER']->getSessionData('pageTree_temporaryMountPoint'))) {\n $link = '<a href=\"' . htmlspecialchars(\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::linkThisScript(array('setTempDBmount' => 0))) . '\">' .\n $GLOBALS['LANG']->sl('LLL:EXT:lang/locallang_core.xml:labels.temporaryDBmount', 1) .\n '</a>';\n $flashMessage = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\n 't3lib_FlashMessage',\n $link,\n '',\n t3lib_FlashMessage::INFO\n );\n $dbmount = $flashMessage->render();\n }\n\n $content .= '\n\t\t<!--\n\t\t\tWrapper table for page tree / record list:\n\t\t-->\n\t\t<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"typo3-linkPages\">\n\t\t\t<tr>\n\t\t\t\t<td class=\"c-wCell\" valign=\"top\">' . $this->browseLinks->barheader($GLOBALS['LANG']->getLL('pageTree') . ':') . $dbmount . $tree . '</td>\n\t\t\t\t<td class=\"c-wCell\" valign=\"top\">' . $cElements . '</td>\n\t\t\t</tr>\n\t\t</table>\n\t\t';\n\n return $content;\n }",
"function browse_tab()\r\n{\r\n add_action('admin_print_scripts', 'windows_azure_storage_dialog_scripts');\r\n wp_enqueue_style('media');\r\n wp_iframe('windows_azure_storage_dialog_browse_tab');\r\n}",
"function buildTabs()\r\n {\r\n $this->_formBuilt = true;\r\n\r\n // Here we get all page names in the controller\r\n $pages = array();\r\n $myName = $current = $this->getAttribute('id');\r\n while (null !== ($current = $this->controller->getPrevName($current))) {\r\n $pages[] = $current;\r\n }\r\n $pages = array_reverse($pages);\r\n $pages[] = $current = $myName;\r\n while (null !== ($current = $this->controller->getNextName($current))) {\r\n $pages[] = $current;\r\n }\r\n // Here we display buttons for all pages, the current one's is disabled\r\n foreach ($pages as $pageName) {\r\n $tabs[] = $this->createElement(\r\n 'submit', $this->getButtonName($pageName), ucfirst($pageName),\r\n array('class' => 'flat') + ($pageName == $myName? array('disabled' => 'disabled'): array())\r\n );\r\n }\r\n $this->addGroup($tabs, 'tabs', null, ' ', false);\r\n }",
"function buildTabs()\n {\n $this->_formBuilt = true;\n $this->setRequiredNote('<span class=\"required\">*</span><span class=\"note\"> denotes required field</span>');\n\n // Here we get all page names in the controller\n $pages = array();\n $myName = $current = $this->getAttribute('id');\n while (null !== ($current = $this->controller->getPrevName($current))) {\n $pages[] = $current;\n }\n $pages = array_reverse($pages);\n $pages[] = $current = $myName;\n while (null !== ($current = $this->controller->getNextName($current))) {\n $pages[] = $current;\n }\n // Here we display buttons for all pages, the current one's is disabled\n foreach ($pages as $pageName) {\n $tabs[] = $this->createElement(\n 'submit', $this->getButtonName($pageName), ucfirst($pageName),\n array('class' => 'flat') + ($pageName == $myName? array('disabled' => 'disabled'): array())\n );\n }\n $this->addGroup($tabs, 'tabs', null, ' ', false);\n }",
"protected function createTabs() {}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Render edit row values | function RenderEditRow() {
global $Security, $gsLanguage, $Language;
// Call Row Rendering event
$this->Row_Rendering();
// id
$this->id->EditAttrs["class"] = "form-control";
$this->id->EditCustomAttributes = "";
$this->id->EditValue = $this->id->CurrentValue;
$this->id->ViewCustomAttributes = "";
// id_sector
$this->id_sector->EditAttrs["class"] = "form-control";
$this->id_sector->EditCustomAttributes = "";
// id_tipoactividad
$this->id_tipoactividad->EditAttrs["class"] = "form-control";
$this->id_tipoactividad->EditCustomAttributes = "";
// organizador
$this->organizador->EditAttrs["class"] = "form-control";
$this->organizador->EditCustomAttributes = "";
// nombreactividad
$this->nombreactividad->EditAttrs["class"] = "form-control";
$this->nombreactividad->EditCustomAttributes = "";
$this->nombreactividad->EditValue = $this->nombreactividad->CurrentValue;
$this->nombreactividad->PlaceHolder = ew_RemoveHtml($this->nombreactividad->FldCaption());
// nombrelocal
$this->nombrelocal->EditAttrs["class"] = "form-control";
$this->nombrelocal->EditCustomAttributes = "";
$this->nombrelocal->EditValue = $this->nombrelocal->CurrentValue;
$this->nombrelocal->PlaceHolder = ew_RemoveHtml($this->nombrelocal->FldCaption());
// direccionlocal
$this->direccionlocal->EditAttrs["class"] = "form-control";
$this->direccionlocal->EditCustomAttributes = "";
$this->direccionlocal->EditValue = $this->direccionlocal->CurrentValue;
$this->direccionlocal->PlaceHolder = ew_RemoveHtml($this->direccionlocal->FldCaption());
// fecha_inicio
$this->fecha_inicio->EditAttrs["class"] = "form-control";
$this->fecha_inicio->EditCustomAttributes = "";
$this->fecha_inicio->EditValue = ew_FormatDateTime($this->fecha_inicio->CurrentValue, 8);
$this->fecha_inicio->PlaceHolder = ew_RemoveHtml($this->fecha_inicio->FldCaption());
// fecha_fin
$this->fecha_fin->EditAttrs["class"] = "form-control";
$this->fecha_fin->EditCustomAttributes = "";
$this->fecha_fin->EditValue = ew_FormatDateTime($this->fecha_fin->CurrentValue, 8);
$this->fecha_fin->PlaceHolder = ew_RemoveHtml($this->fecha_fin->FldCaption());
// horasprogramadas
$this->horasprogramadas->EditAttrs["class"] = "form-control";
$this->horasprogramadas->EditCustomAttributes = "";
$this->horasprogramadas->EditValue = $this->horasprogramadas->CurrentValue;
$this->horasprogramadas->PlaceHolder = ew_RemoveHtml($this->horasprogramadas->FldCaption());
// id_persona
$this->id_persona->EditAttrs["class"] = "form-control";
$this->id_persona->EditCustomAttributes = "";
$this->id_persona->EditValue = $this->id_persona->CurrentValue;
$this->id_persona->PlaceHolder = ew_RemoveHtml($this->id_persona->FldCaption());
// contenido
$this->contenido->EditAttrs["class"] = "form-control";
$this->contenido->EditCustomAttributes = "";
$this->contenido->EditValue = $this->contenido->CurrentValue;
$this->contenido->PlaceHolder = ew_RemoveHtml($this->contenido->FldCaption());
// observaciones
$this->observaciones->EditAttrs["class"] = "form-control";
$this->observaciones->EditCustomAttributes = "";
$this->observaciones->EditValue = $this->observaciones->CurrentValue;
$this->observaciones->PlaceHolder = ew_RemoveHtml($this->observaciones->FldCaption());
// id_centro
$this->id_centro->EditAttrs["class"] = "form-control";
$this->id_centro->EditCustomAttributes = "";
// Call Row Rendered event
$this->Row_Rendered();
} | [
"public function renderEditRow()\n\t{\n\t\tglobal $Security, $CurrentLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// id\n\t\t$this->id->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->id->EditCustomAttributes = \"\";\n\t\t$this->id->EditValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// property_id\n\t\t$this->property_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->property_id->EditCustomAttributes = \"\";\n\t\t$this->property_id->EditValue = $this->property_id->CurrentValue;\n\t\t$this->property_id->PlaceHolder = RemoveHtml($this->property_id->caption());\n\n\t\t// property\n\t\t$this->property->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->property->EditCustomAttributes = \"\";\n\t\tif (!$this->property->Raw)\n\t\t\t$this->property->CurrentValue = HtmlDecode($this->property->CurrentValue);\n\t\t$this->property->EditValue = $this->property->CurrentValue;\n\t\t$this->property->PlaceHolder = RemoveHtml($this->property->caption());\n\n\t\t// templatefile2\n\t\t$this->templatefile2->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->templatefile2->EditCustomAttributes = \"\";\n\t\tif (!$this->templatefile2->Raw)\n\t\t\t$this->templatefile2->CurrentValue = HtmlDecode($this->templatefile2->CurrentValue);\n\t\t$this->templatefile2->EditValue = $this->templatefile2->CurrentValue;\n\t\t$this->templatefile2->PlaceHolder = RemoveHtml($this->templatefile2->caption());\n\n\t\t// transactionno\n\t\t$this->transactionno->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->transactionno->EditCustomAttributes = \"\";\n\t\tif (!$this->transactionno->Raw)\n\t\t\t$this->transactionno->CurrentValue = HtmlDecode($this->transactionno->CurrentValue);\n\t\t$this->transactionno->EditValue = $this->transactionno->CurrentValue;\n\t\t$this->transactionno->PlaceHolder = RemoveHtml($this->transactionno->caption());\n\n\t\t// transactiondate\n\t\t$this->transactiondate->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->transactiondate->EditCustomAttributes = \"\";\n\t\t$this->transactiondate->EditValue = FormatDateTime($this->transactiondate->CurrentValue, 8);\n\t\t$this->transactiondate->PlaceHolder = RemoveHtml($this->transactiondate->caption());\n\n\t\t// recommendedby\n\t\t$this->recommendedby->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->recommendedby->EditCustomAttributes = \"\";\n\t\t$this->recommendedby->EditValue = $this->recommendedby->CurrentValue;\n\t\t$this->recommendedby->PlaceHolder = RemoveHtml($this->recommendedby->caption());\n\n\t\t// signatureby\n\t\t$this->signatureby->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->signatureby->EditCustomAttributes = \"\";\n\t\tif (!$this->signatureby->Raw)\n\t\t\t$this->signatureby->CurrentValue = HtmlDecode($this->signatureby->CurrentValue);\n\t\t$this->signatureby->EditValue = $this->signatureby->CurrentValue;\n\t\t$this->signatureby->PlaceHolder = RemoveHtml($this->signatureby->caption());\n\n\t\t// positionby\n\t\t$this->positionby->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->positionby->EditCustomAttributes = \"\";\n\t\tif (!$this->positionby->Raw)\n\t\t\t$this->positionby->CurrentValue = HtmlDecode($this->positionby->CurrentValue);\n\t\t$this->positionby->EditValue = $this->positionby->CurrentValue;\n\t\t$this->positionby->PlaceHolder = RemoveHtml($this->positionby->caption());\n\n\t\t// ce_id\n\t\t$this->ce_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->ce_id->EditCustomAttributes = \"\";\n\t\t$this->ce_id->EditValue = $this->ce_id->CurrentValue;\n\t\t$this->ce_id->PlaceHolder = RemoveHtml($this->ce_id->caption());\n\n\t\t// signaturece\n\t\t$this->signaturece->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->signaturece->EditCustomAttributes = \"\";\n\t\tif (!$this->signaturece->Raw)\n\t\t\t$this->signaturece->CurrentValue = HtmlDecode($this->signaturece->CurrentValue);\n\t\t$this->signaturece->EditValue = $this->signaturece->CurrentValue;\n\t\t$this->signaturece->PlaceHolder = RemoveHtml($this->signaturece->caption());\n\n\t\t// itm_id\n\t\t$this->itm_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->itm_id->EditCustomAttributes = \"\";\n\t\t$this->itm_id->EditValue = $this->itm_id->CurrentValue;\n\t\t$this->itm_id->PlaceHolder = RemoveHtml($this->itm_id->caption());\n\n\t\t// signatureitm\n\t\t$this->signatureitm->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->signatureitm->EditCustomAttributes = \"\";\n\t\tif (!$this->signatureitm->Raw)\n\t\t\t$this->signatureitm->CurrentValue = HtmlDecode($this->signatureitm->CurrentValue);\n\t\t$this->signatureitm->EditValue = $this->signatureitm->CurrentValue;\n\t\t$this->signatureitm->PlaceHolder = RemoveHtml($this->signatureitm->caption());\n\n\t\t// sign1\n\t\t$this->sign1->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sign1->EditCustomAttributes = \"\";\n\t\t$this->sign1->EditValue = $this->sign1->CurrentValue;\n\t\t$this->sign1->PlaceHolder = RemoveHtml($this->sign1->caption());\n\n\t\t// jobt1\n\t\t$this->jobt1->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->jobt1->EditCustomAttributes = \"\";\n\t\tif (!$this->jobt1->Raw)\n\t\t\t$this->jobt1->CurrentValue = HtmlDecode($this->jobt1->CurrentValue);\n\t\t$this->jobt1->EditValue = $this->jobt1->CurrentValue;\n\t\t$this->jobt1->PlaceHolder = RemoveHtml($this->jobt1->caption());\n\n\t\t// sign2\n\t\t$this->sign2->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sign2->EditCustomAttributes = \"\";\n\t\t$this->sign2->EditValue = $this->sign2->CurrentValue;\n\t\t$this->sign2->PlaceHolder = RemoveHtml($this->sign2->caption());\n\n\t\t// jobt2\n\t\t$this->jobt2->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->jobt2->EditCustomAttributes = \"\";\n\t\tif (!$this->jobt2->Raw)\n\t\t\t$this->jobt2->CurrentValue = HtmlDecode($this->jobt2->CurrentValue);\n\t\t$this->jobt2->EditValue = $this->jobt2->CurrentValue;\n\t\t$this->jobt2->PlaceHolder = RemoveHtml($this->jobt2->caption());\n\n\t\t// sign3\n\t\t$this->sign3->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sign3->EditCustomAttributes = \"\";\n\t\t$this->sign3->EditValue = $this->sign3->CurrentValue;\n\t\t$this->sign3->PlaceHolder = RemoveHtml($this->sign3->caption());\n\n\t\t// jobt3\n\t\t$this->jobt3->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->jobt3->EditCustomAttributes = \"\";\n\t\tif (!$this->jobt3->Raw)\n\t\t\t$this->jobt3->CurrentValue = HtmlDecode($this->jobt3->CurrentValue);\n\t\t$this->jobt3->EditValue = $this->jobt3->CurrentValue;\n\t\t$this->jobt3->PlaceHolder = RemoveHtml($this->jobt3->caption());\n\n\t\t// disposaldetail_id\n\t\t$this->disposaldetail_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->disposaldetail_id->EditCustomAttributes = \"\";\n\t\t$this->disposaldetail_id->EditValue = $this->disposaldetail_id->CurrentValue;\n\t\t$this->disposaldetail_id->ViewCustomAttributes = \"\";\n\n\t\t// asset_id\n\t\t$this->asset_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->asset_id->EditCustomAttributes = \"\";\n\t\t$this->asset_id->EditValue = $this->asset_id->CurrentValue;\n\t\t$this->asset_id->PlaceHolder = RemoveHtml($this->asset_id->caption());\n\n\t\t// code\n\t\t$this->code->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->code->EditCustomAttributes = \"\";\n\t\tif (!$this->code->Raw)\n\t\t\t$this->code->CurrentValue = HtmlDecode($this->code->CurrentValue);\n\t\t$this->code->EditValue = $this->code->CurrentValue;\n\t\t$this->code->PlaceHolder = RemoveHtml($this->code->caption());\n\n\t\t// description\n\t\t$this->description->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->description->EditCustomAttributes = \"\";\n\t\tif (!$this->description->Raw)\n\t\t\t$this->description->CurrentValue = HtmlDecode($this->description->CurrentValue);\n\t\t$this->description->EditValue = $this->description->CurrentValue;\n\t\t$this->description->PlaceHolder = RemoveHtml($this->description->caption());\n\n\t\t// department_id\n\t\t$this->department_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->department_id->EditCustomAttributes = \"\";\n\t\t$this->department_id->EditValue = $this->department_id->CurrentValue;\n\t\t$this->department_id->PlaceHolder = RemoveHtml($this->department_id->caption());\n\n\t\t// asset_dept\n\t\t$this->asset_dept->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->asset_dept->EditCustomAttributes = \"\";\n\t\tif (!$this->asset_dept->Raw)\n\t\t\t$this->asset_dept->CurrentValue = HtmlDecode($this->asset_dept->CurrentValue);\n\t\t$this->asset_dept->EditValue = $this->asset_dept->CurrentValue;\n\t\t$this->asset_dept->PlaceHolder = RemoveHtml($this->asset_dept->caption());\n\n\t\t// procurementdate\n\t\t$this->procurementdate->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->procurementdate->EditCustomAttributes = \"\";\n\t\t$this->procurementdate->EditValue = FormatDateTime($this->procurementdate->CurrentValue, 8);\n\t\t$this->procurementdate->PlaceHolder = RemoveHtml($this->procurementdate->caption());\n\n\t\t// procurementcurrentcost\n\t\t$this->procurementcurrentcost->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->procurementcurrentcost->EditCustomAttributes = \"\";\n\t\t$this->procurementcurrentcost->EditValue = $this->procurementcurrentcost->CurrentValue;\n\t\t$this->procurementcurrentcost->PlaceHolder = RemoveHtml($this->procurementcurrentcost->caption());\n\t\tif (strval($this->procurementcurrentcost->EditValue) != \"\" && is_numeric($this->procurementcurrentcost->EditValue))\n\t\t\t$this->procurementcurrentcost->EditValue = FormatNumber($this->procurementcurrentcost->EditValue, -2, -2, -2, -2);\n\t\t\n\n\t\t// remarks\n\t\t$this->remarks->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->remarks->EditCustomAttributes = \"\";\n\t\t$this->remarks->EditValue = $this->remarks->CurrentValue;\n\t\t$this->remarks->PlaceHolder = RemoveHtml($this->remarks->caption());\n\n\t\t// condstatus\n\t\t$this->condstatus->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->condstatus->EditCustomAttributes = \"\";\n\t\tif (!$this->condstatus->Raw)\n\t\t\t$this->condstatus->CurrentValue = HtmlDecode($this->condstatus->CurrentValue);\n\t\t$this->condstatus->EditValue = $this->condstatus->CurrentValue;\n\t\t$this->condstatus->PlaceHolder = RemoveHtml($this->condstatus->caption());\n\n\t\t// reasonstatus\n\t\t$this->reasonstatus->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->reasonstatus->EditCustomAttributes = \"\";\n\t\tif (!$this->reasonstatus->Raw)\n\t\t\t$this->reasonstatus->CurrentValue = HtmlDecode($this->reasonstatus->CurrentValue);\n\t\t$this->reasonstatus->EditValue = $this->reasonstatus->CurrentValue;\n\t\t$this->reasonstatus->PlaceHolder = RemoveHtml($this->reasonstatus->caption());\n\n\t\t// disposaldate\n\t\t$this->disposaldate->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->disposaldate->EditCustomAttributes = \"\";\n\t\t$this->disposaldate->EditValue = FormatDateTime($this->disposaldate->CurrentValue, 8);\n\t\t$this->disposaldate->PlaceHolder = RemoveHtml($this->disposaldate->caption());\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}",
"function RenderEditRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// id\n\t\t$this->id->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->id->EditCustomAttributes = \"\";\n\t\t$this->id->EditValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// NOMR\n\t\t$this->NOMR->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NOMR->EditCustomAttributes = \"\";\n\t\t$this->NOMR->EditValue = $this->NOMR->CurrentValue;\n\t\t$this->NOMR->PlaceHolder = ew_RemoveHtml($this->NOMR->FldCaption());\n\n\t\t// TITLE\n\t\t$this->TITLE->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->TITLE->EditCustomAttributes = \"\";\n\n\t\t// NAMA\n\t\t$this->NAMA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NAMA->EditCustomAttributes = \"\";\n\t\t$this->NAMA->EditValue = $this->NAMA->CurrentValue;\n\t\t$this->NAMA->PlaceHolder = ew_RemoveHtml($this->NAMA->FldCaption());\n\n\t\t// IBUKANDUNG\n\t\t$this->IBUKANDUNG->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->IBUKANDUNG->EditCustomAttributes = \"\";\n\t\t$this->IBUKANDUNG->EditValue = $this->IBUKANDUNG->CurrentValue;\n\t\t$this->IBUKANDUNG->PlaceHolder = ew_RemoveHtml($this->IBUKANDUNG->FldCaption());\n\n\t\t// TEMPAT\n\t\t$this->TEMPAT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->TEMPAT->EditCustomAttributes = \"\";\n\t\t$this->TEMPAT->EditValue = $this->TEMPAT->CurrentValue;\n\t\t$this->TEMPAT->PlaceHolder = ew_RemoveHtml($this->TEMPAT->FldCaption());\n\n\t\t// TGLLAHIR\n\t\t$this->TGLLAHIR->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->TGLLAHIR->EditCustomAttributes = \"\";\n\t\t$this->TGLLAHIR->EditValue = ew_FormatDateTime($this->TGLLAHIR->CurrentValue, 7);\n\t\t$this->TGLLAHIR->PlaceHolder = ew_RemoveHtml($this->TGLLAHIR->FldCaption());\n\n\t\t// JENISKELAMIN\n\t\t$this->JENISKELAMIN->EditCustomAttributes = \"\";\n\n\t\t// ALAMAT\n\t\t$this->ALAMAT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->ALAMAT->EditCustomAttributes = \"\";\n\t\t$this->ALAMAT->EditValue = $this->ALAMAT->CurrentValue;\n\t\t$this->ALAMAT->PlaceHolder = ew_RemoveHtml($this->ALAMAT->FldCaption());\n\n\t\t// KDPROVINSI\n\t\t$this->KDPROVINSI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KDPROVINSI->EditCustomAttributes = \"\";\n\n\t\t// KOTA\n\t\t$this->KOTA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KOTA->EditCustomAttributes = \"\";\n\n\t\t// KDKECAMATAN\n\t\t$this->KDKECAMATAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KDKECAMATAN->EditCustomAttributes = \"\";\n\n\t\t// KELURAHAN\n\t\t$this->KELURAHAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KELURAHAN->EditCustomAttributes = \"\";\n\n\t\t// NOTELP\n\t\t$this->NOTELP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NOTELP->EditCustomAttributes = \"\";\n\t\t$this->NOTELP->EditValue = $this->NOTELP->CurrentValue;\n\t\t$this->NOTELP->PlaceHolder = ew_RemoveHtml($this->NOTELP->FldCaption());\n\n\t\t// NOKTP\n\t\t$this->NOKTP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NOKTP->EditCustomAttributes = \"\";\n\t\t$this->NOKTP->EditValue = $this->NOKTP->CurrentValue;\n\t\t$this->NOKTP->PlaceHolder = ew_RemoveHtml($this->NOKTP->FldCaption());\n\n\t\t// SUAMI_ORTU\n\t\t$this->SUAMI_ORTU->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->SUAMI_ORTU->EditCustomAttributes = \"\";\n\t\t$this->SUAMI_ORTU->EditValue = $this->SUAMI_ORTU->CurrentValue;\n\t\t$this->SUAMI_ORTU->PlaceHolder = ew_RemoveHtml($this->SUAMI_ORTU->FldCaption());\n\n\t\t// PEKERJAAN\n\t\t$this->PEKERJAAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PEKERJAAN->EditCustomAttributes = \"\";\n\t\t$this->PEKERJAAN->EditValue = $this->PEKERJAAN->CurrentValue;\n\t\t$this->PEKERJAAN->PlaceHolder = ew_RemoveHtml($this->PEKERJAAN->FldCaption());\n\n\t\t// STATUS\n\t\t$this->STATUS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->STATUS->EditCustomAttributes = \"\";\n\n\t\t// AGAMA\n\t\t$this->AGAMA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->AGAMA->EditCustomAttributes = \"\";\n\n\t\t// PENDIDIKAN\n\t\t$this->PENDIDIKAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PENDIDIKAN->EditCustomAttributes = \"\";\n\n\t\t// KDCARABAYAR\n\t\t$this->KDCARABAYAR->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KDCARABAYAR->EditCustomAttributes = \"\";\n\n\t\t// NIP\n\t\t$this->NIP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NIP->EditCustomAttributes = \"\";\n\t\t$this->NIP->EditValue = $this->NIP->CurrentValue;\n\t\t$this->NIP->PlaceHolder = ew_RemoveHtml($this->NIP->FldCaption());\n\n\t\t// TGLDAFTAR\n\t\t$this->TGLDAFTAR->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->TGLDAFTAR->EditCustomAttributes = \"\";\n\t\t$this->TGLDAFTAR->EditValue = ew_FormatDateTime($this->TGLDAFTAR->CurrentValue, 7);\n\t\t$this->TGLDAFTAR->PlaceHolder = ew_RemoveHtml($this->TGLDAFTAR->FldCaption());\n\n\t\t// ALAMAT_KTP\n\t\t$this->ALAMAT_KTP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->ALAMAT_KTP->EditCustomAttributes = \"\";\n\t\t$this->ALAMAT_KTP->EditValue = $this->ALAMAT_KTP->CurrentValue;\n\t\t$this->ALAMAT_KTP->PlaceHolder = ew_RemoveHtml($this->ALAMAT_KTP->FldCaption());\n\n\t\t// PARENT_NOMR\n\t\t$this->PARENT_NOMR->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PARENT_NOMR->EditCustomAttributes = \"\";\n\t\t$this->PARENT_NOMR->EditValue = $this->PARENT_NOMR->CurrentValue;\n\t\t$this->PARENT_NOMR->PlaceHolder = ew_RemoveHtml($this->PARENT_NOMR->FldCaption());\n\n\t\t// NAMA_OBAT\n\t\t$this->NAMA_OBAT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NAMA_OBAT->EditCustomAttributes = \"\";\n\t\t$this->NAMA_OBAT->EditValue = $this->NAMA_OBAT->CurrentValue;\n\t\t$this->NAMA_OBAT->PlaceHolder = ew_RemoveHtml($this->NAMA_OBAT->FldCaption());\n\n\t\t// DOSIS\n\t\t$this->DOSIS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->DOSIS->EditCustomAttributes = \"\";\n\t\t$this->DOSIS->EditValue = $this->DOSIS->CurrentValue;\n\t\t$this->DOSIS->PlaceHolder = ew_RemoveHtml($this->DOSIS->FldCaption());\n\n\t\t// CARA_PEMBERIAN\n\t\t$this->CARA_PEMBERIAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->CARA_PEMBERIAN->EditCustomAttributes = \"\";\n\t\t$this->CARA_PEMBERIAN->EditValue = $this->CARA_PEMBERIAN->CurrentValue;\n\t\t$this->CARA_PEMBERIAN->PlaceHolder = ew_RemoveHtml($this->CARA_PEMBERIAN->FldCaption());\n\n\t\t// FREKUENSI\n\t\t$this->FREKUENSI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->FREKUENSI->EditCustomAttributes = \"\";\n\t\t$this->FREKUENSI->EditValue = $this->FREKUENSI->CurrentValue;\n\t\t$this->FREKUENSI->PlaceHolder = ew_RemoveHtml($this->FREKUENSI->FldCaption());\n\n\t\t// WAKTU_TGL\n\t\t$this->WAKTU_TGL->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->WAKTU_TGL->EditCustomAttributes = \"\";\n\t\t$this->WAKTU_TGL->EditValue = $this->WAKTU_TGL->CurrentValue;\n\t\t$this->WAKTU_TGL->PlaceHolder = ew_RemoveHtml($this->WAKTU_TGL->FldCaption());\n\n\t\t// LAMA_WAKTU\n\t\t$this->LAMA_WAKTU->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->LAMA_WAKTU->EditCustomAttributes = \"\";\n\t\t$this->LAMA_WAKTU->EditValue = $this->LAMA_WAKTU->CurrentValue;\n\t\t$this->LAMA_WAKTU->PlaceHolder = ew_RemoveHtml($this->LAMA_WAKTU->FldCaption());\n\n\t\t// ALERGI_OBAT\n\t\t$this->ALERGI_OBAT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->ALERGI_OBAT->EditCustomAttributes = \"\";\n\t\t$this->ALERGI_OBAT->EditValue = $this->ALERGI_OBAT->CurrentValue;\n\t\t$this->ALERGI_OBAT->PlaceHolder = ew_RemoveHtml($this->ALERGI_OBAT->FldCaption());\n\n\t\t// REAKSI_ALERGI\n\t\t$this->REAKSI_ALERGI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->REAKSI_ALERGI->EditCustomAttributes = \"\";\n\t\t$this->REAKSI_ALERGI->EditValue = $this->REAKSI_ALERGI->CurrentValue;\n\t\t$this->REAKSI_ALERGI->PlaceHolder = ew_RemoveHtml($this->REAKSI_ALERGI->FldCaption());\n\n\t\t// RIWAYAT_KES\n\t\t$this->RIWAYAT_KES->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->RIWAYAT_KES->EditCustomAttributes = \"\";\n\t\t$this->RIWAYAT_KES->EditValue = $this->RIWAYAT_KES->CurrentValue;\n\t\t$this->RIWAYAT_KES->PlaceHolder = ew_RemoveHtml($this->RIWAYAT_KES->FldCaption());\n\n\t\t// BB_LAHIR\n\t\t$this->BB_LAHIR->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->BB_LAHIR->EditCustomAttributes = \"\";\n\t\t$this->BB_LAHIR->EditValue = $this->BB_LAHIR->CurrentValue;\n\t\t$this->BB_LAHIR->PlaceHolder = ew_RemoveHtml($this->BB_LAHIR->FldCaption());\n\n\t\t// BB_SEKARANG\n\t\t$this->BB_SEKARANG->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->BB_SEKARANG->EditCustomAttributes = \"\";\n\t\t$this->BB_SEKARANG->EditValue = $this->BB_SEKARANG->CurrentValue;\n\t\t$this->BB_SEKARANG->PlaceHolder = ew_RemoveHtml($this->BB_SEKARANG->FldCaption());\n\n\t\t// FISIK_FONTANEL\n\t\t$this->FISIK_FONTANEL->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->FISIK_FONTANEL->EditCustomAttributes = \"\";\n\t\t$this->FISIK_FONTANEL->EditValue = $this->FISIK_FONTANEL->CurrentValue;\n\t\t$this->FISIK_FONTANEL->PlaceHolder = ew_RemoveHtml($this->FISIK_FONTANEL->FldCaption());\n\n\t\t// FISIK_REFLEKS\n\t\t$this->FISIK_REFLEKS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->FISIK_REFLEKS->EditCustomAttributes = \"\";\n\t\t$this->FISIK_REFLEKS->EditValue = $this->FISIK_REFLEKS->CurrentValue;\n\t\t$this->FISIK_REFLEKS->PlaceHolder = ew_RemoveHtml($this->FISIK_REFLEKS->FldCaption());\n\n\t\t// FISIK_SENSASI\n\t\t$this->FISIK_SENSASI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->FISIK_SENSASI->EditCustomAttributes = \"\";\n\t\t$this->FISIK_SENSASI->EditValue = $this->FISIK_SENSASI->CurrentValue;\n\t\t$this->FISIK_SENSASI->PlaceHolder = ew_RemoveHtml($this->FISIK_SENSASI->FldCaption());\n\n\t\t// MOTORIK_KASAR\n\t\t$this->MOTORIK_KASAR->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MOTORIK_KASAR->EditCustomAttributes = \"\";\n\t\t$this->MOTORIK_KASAR->EditValue = $this->MOTORIK_KASAR->CurrentValue;\n\t\t$this->MOTORIK_KASAR->PlaceHolder = ew_RemoveHtml($this->MOTORIK_KASAR->FldCaption());\n\n\t\t// MOTORIK_HALUS\n\t\t$this->MOTORIK_HALUS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MOTORIK_HALUS->EditCustomAttributes = \"\";\n\t\t$this->MOTORIK_HALUS->EditValue = $this->MOTORIK_HALUS->CurrentValue;\n\t\t$this->MOTORIK_HALUS->PlaceHolder = ew_RemoveHtml($this->MOTORIK_HALUS->FldCaption());\n\n\t\t// MAMPU_BICARA\n\t\t$this->MAMPU_BICARA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MAMPU_BICARA->EditCustomAttributes = \"\";\n\t\t$this->MAMPU_BICARA->EditValue = $this->MAMPU_BICARA->CurrentValue;\n\t\t$this->MAMPU_BICARA->PlaceHolder = ew_RemoveHtml($this->MAMPU_BICARA->FldCaption());\n\n\t\t// MAMPU_SOSIALISASI\n\t\t$this->MAMPU_SOSIALISASI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MAMPU_SOSIALISASI->EditCustomAttributes = \"\";\n\t\t$this->MAMPU_SOSIALISASI->EditValue = $this->MAMPU_SOSIALISASI->CurrentValue;\n\t\t$this->MAMPU_SOSIALISASI->PlaceHolder = ew_RemoveHtml($this->MAMPU_SOSIALISASI->FldCaption());\n\n\t\t// BCG\n\t\t$this->BCG->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->BCG->EditCustomAttributes = \"\";\n\t\t$this->BCG->EditValue = $this->BCG->CurrentValue;\n\t\t$this->BCG->PlaceHolder = ew_RemoveHtml($this->BCG->FldCaption());\n\n\t\t// POLIO\n\t\t$this->POLIO->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->POLIO->EditCustomAttributes = \"\";\n\t\t$this->POLIO->EditValue = $this->POLIO->CurrentValue;\n\t\t$this->POLIO->PlaceHolder = ew_RemoveHtml($this->POLIO->FldCaption());\n\n\t\t// DPT\n\t\t$this->DPT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->DPT->EditCustomAttributes = \"\";\n\t\t$this->DPT->EditValue = $this->DPT->CurrentValue;\n\t\t$this->DPT->PlaceHolder = ew_RemoveHtml($this->DPT->FldCaption());\n\n\t\t// CAMPAK\n\t\t$this->CAMPAK->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->CAMPAK->EditCustomAttributes = \"\";\n\t\t$this->CAMPAK->EditValue = $this->CAMPAK->CurrentValue;\n\t\t$this->CAMPAK->PlaceHolder = ew_RemoveHtml($this->CAMPAK->FldCaption());\n\n\t\t// HEPATITIS_B\n\t\t$this->HEPATITIS_B->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->HEPATITIS_B->EditCustomAttributes = \"\";\n\t\t$this->HEPATITIS_B->EditValue = $this->HEPATITIS_B->CurrentValue;\n\t\t$this->HEPATITIS_B->PlaceHolder = ew_RemoveHtml($this->HEPATITIS_B->FldCaption());\n\n\t\t// TD\n\t\t$this->TD->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->TD->EditCustomAttributes = \"\";\n\t\t$this->TD->EditValue = $this->TD->CurrentValue;\n\t\t$this->TD->PlaceHolder = ew_RemoveHtml($this->TD->FldCaption());\n\n\t\t// SUHU\n\t\t$this->SUHU->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->SUHU->EditCustomAttributes = \"\";\n\t\t$this->SUHU->EditValue = $this->SUHU->CurrentValue;\n\t\t$this->SUHU->PlaceHolder = ew_RemoveHtml($this->SUHU->FldCaption());\n\n\t\t// RR\n\t\t$this->RR->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->RR->EditCustomAttributes = \"\";\n\t\t$this->RR->EditValue = $this->RR->CurrentValue;\n\t\t$this->RR->PlaceHolder = ew_RemoveHtml($this->RR->FldCaption());\n\n\t\t// NADI\n\t\t$this->NADI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NADI->EditCustomAttributes = \"\";\n\t\t$this->NADI->EditValue = $this->NADI->CurrentValue;\n\t\t$this->NADI->PlaceHolder = ew_RemoveHtml($this->NADI->FldCaption());\n\n\t\t// BB\n\t\t$this->BB->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->BB->EditCustomAttributes = \"\";\n\t\t$this->BB->EditValue = $this->BB->CurrentValue;\n\t\t$this->BB->PlaceHolder = ew_RemoveHtml($this->BB->FldCaption());\n\n\t\t// TB\n\t\t$this->TB->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->TB->EditCustomAttributes = \"\";\n\t\t$this->TB->EditValue = $this->TB->CurrentValue;\n\t\t$this->TB->PlaceHolder = ew_RemoveHtml($this->TB->FldCaption());\n\n\t\t// EYE\n\t\t$this->EYE->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->EYE->EditCustomAttributes = \"\";\n\t\t$this->EYE->EditValue = $this->EYE->CurrentValue;\n\t\t$this->EYE->PlaceHolder = ew_RemoveHtml($this->EYE->FldCaption());\n\n\t\t// MOTORIK\n\t\t$this->MOTORIK->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MOTORIK->EditCustomAttributes = \"\";\n\t\t$this->MOTORIK->EditValue = $this->MOTORIK->CurrentValue;\n\t\t$this->MOTORIK->PlaceHolder = ew_RemoveHtml($this->MOTORIK->FldCaption());\n\n\t\t// VERBAL\n\t\t$this->VERBAL->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->VERBAL->EditCustomAttributes = \"\";\n\t\t$this->VERBAL->EditValue = $this->VERBAL->CurrentValue;\n\t\t$this->VERBAL->PlaceHolder = ew_RemoveHtml($this->VERBAL->FldCaption());\n\n\t\t// TOTAL_GCS\n\t\t$this->TOTAL_GCS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->TOTAL_GCS->EditCustomAttributes = \"\";\n\t\t$this->TOTAL_GCS->EditValue = $this->TOTAL_GCS->CurrentValue;\n\t\t$this->TOTAL_GCS->PlaceHolder = ew_RemoveHtml($this->TOTAL_GCS->FldCaption());\n\n\t\t// REAKSI_PUPIL\n\t\t$this->REAKSI_PUPIL->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->REAKSI_PUPIL->EditCustomAttributes = \"\";\n\t\t$this->REAKSI_PUPIL->EditValue = $this->REAKSI_PUPIL->CurrentValue;\n\t\t$this->REAKSI_PUPIL->PlaceHolder = ew_RemoveHtml($this->REAKSI_PUPIL->FldCaption());\n\n\t\t// KESADARAN\n\t\t$this->KESADARAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KESADARAN->EditCustomAttributes = \"\";\n\t\t$this->KESADARAN->EditValue = $this->KESADARAN->CurrentValue;\n\t\t$this->KESADARAN->PlaceHolder = ew_RemoveHtml($this->KESADARAN->FldCaption());\n\n\t\t// KEPALA\n\t\t$this->KEPALA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KEPALA->EditCustomAttributes = \"\";\n\t\t$this->KEPALA->EditValue = $this->KEPALA->CurrentValue;\n\t\t$this->KEPALA->PlaceHolder = ew_RemoveHtml($this->KEPALA->FldCaption());\n\n\t\t// RAMBUT\n\t\t$this->RAMBUT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->RAMBUT->EditCustomAttributes = \"\";\n\t\t$this->RAMBUT->EditValue = $this->RAMBUT->CurrentValue;\n\t\t$this->RAMBUT->PlaceHolder = ew_RemoveHtml($this->RAMBUT->FldCaption());\n\n\t\t// MUKA\n\t\t$this->MUKA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MUKA->EditCustomAttributes = \"\";\n\t\t$this->MUKA->EditValue = $this->MUKA->CurrentValue;\n\t\t$this->MUKA->PlaceHolder = ew_RemoveHtml($this->MUKA->FldCaption());\n\n\t\t// MATA\n\t\t$this->MATA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MATA->EditCustomAttributes = \"\";\n\t\t$this->MATA->EditValue = $this->MATA->CurrentValue;\n\t\t$this->MATA->PlaceHolder = ew_RemoveHtml($this->MATA->FldCaption());\n\n\t\t// GANG_LIHAT\n\t\t$this->GANG_LIHAT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->GANG_LIHAT->EditCustomAttributes = \"\";\n\t\t$this->GANG_LIHAT->EditValue = $this->GANG_LIHAT->CurrentValue;\n\t\t$this->GANG_LIHAT->PlaceHolder = ew_RemoveHtml($this->GANG_LIHAT->FldCaption());\n\n\t\t// ALATBANTU_LIHAT\n\t\t$this->ALATBANTU_LIHAT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->ALATBANTU_LIHAT->EditCustomAttributes = \"\";\n\t\t$this->ALATBANTU_LIHAT->EditValue = $this->ALATBANTU_LIHAT->CurrentValue;\n\t\t$this->ALATBANTU_LIHAT->PlaceHolder = ew_RemoveHtml($this->ALATBANTU_LIHAT->FldCaption());\n\n\t\t// BENTUK\n\t\t$this->BENTUK->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->BENTUK->EditCustomAttributes = \"\";\n\t\t$this->BENTUK->EditValue = $this->BENTUK->CurrentValue;\n\t\t$this->BENTUK->PlaceHolder = ew_RemoveHtml($this->BENTUK->FldCaption());\n\n\t\t// PENDENGARAN\n\t\t$this->PENDENGARAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PENDENGARAN->EditCustomAttributes = \"\";\n\t\t$this->PENDENGARAN->EditValue = $this->PENDENGARAN->CurrentValue;\n\t\t$this->PENDENGARAN->PlaceHolder = ew_RemoveHtml($this->PENDENGARAN->FldCaption());\n\n\t\t// LUB_TELINGA\n\t\t$this->LUB_TELINGA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->LUB_TELINGA->EditCustomAttributes = \"\";\n\t\t$this->LUB_TELINGA->EditValue = $this->LUB_TELINGA->CurrentValue;\n\t\t$this->LUB_TELINGA->PlaceHolder = ew_RemoveHtml($this->LUB_TELINGA->FldCaption());\n\n\t\t// BENTUK_HIDUNG\n\t\t$this->BENTUK_HIDUNG->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->BENTUK_HIDUNG->EditCustomAttributes = \"\";\n\t\t$this->BENTUK_HIDUNG->EditValue = $this->BENTUK_HIDUNG->CurrentValue;\n\t\t$this->BENTUK_HIDUNG->PlaceHolder = ew_RemoveHtml($this->BENTUK_HIDUNG->FldCaption());\n\n\t\t// MEMBRAN_MUK\n\t\t$this->MEMBRAN_MUK->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MEMBRAN_MUK->EditCustomAttributes = \"\";\n\t\t$this->MEMBRAN_MUK->EditValue = $this->MEMBRAN_MUK->CurrentValue;\n\t\t$this->MEMBRAN_MUK->PlaceHolder = ew_RemoveHtml($this->MEMBRAN_MUK->FldCaption());\n\n\t\t// MAMPU_HIDU\n\t\t$this->MAMPU_HIDU->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MAMPU_HIDU->EditCustomAttributes = \"\";\n\t\t$this->MAMPU_HIDU->EditValue = $this->MAMPU_HIDU->CurrentValue;\n\t\t$this->MAMPU_HIDU->PlaceHolder = ew_RemoveHtml($this->MAMPU_HIDU->FldCaption());\n\n\t\t// ALAT_HIDUNG\n\t\t$this->ALAT_HIDUNG->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->ALAT_HIDUNG->EditCustomAttributes = \"\";\n\t\t$this->ALAT_HIDUNG->EditValue = $this->ALAT_HIDUNG->CurrentValue;\n\t\t$this->ALAT_HIDUNG->PlaceHolder = ew_RemoveHtml($this->ALAT_HIDUNG->FldCaption());\n\n\t\t// RONGGA_MULUT\n\t\t$this->RONGGA_MULUT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->RONGGA_MULUT->EditCustomAttributes = \"\";\n\t\t$this->RONGGA_MULUT->EditValue = $this->RONGGA_MULUT->CurrentValue;\n\t\t$this->RONGGA_MULUT->PlaceHolder = ew_RemoveHtml($this->RONGGA_MULUT->FldCaption());\n\n\t\t// WARNA_MEMBRAN\n\t\t$this->WARNA_MEMBRAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->WARNA_MEMBRAN->EditCustomAttributes = \"\";\n\t\t$this->WARNA_MEMBRAN->EditValue = $this->WARNA_MEMBRAN->CurrentValue;\n\t\t$this->WARNA_MEMBRAN->PlaceHolder = ew_RemoveHtml($this->WARNA_MEMBRAN->FldCaption());\n\n\t\t// LEMBAB\n\t\t$this->LEMBAB->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->LEMBAB->EditCustomAttributes = \"\";\n\t\t$this->LEMBAB->EditValue = $this->LEMBAB->CurrentValue;\n\t\t$this->LEMBAB->PlaceHolder = ew_RemoveHtml($this->LEMBAB->FldCaption());\n\n\t\t// STOMATITIS\n\t\t$this->STOMATITIS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->STOMATITIS->EditCustomAttributes = \"\";\n\t\t$this->STOMATITIS->EditValue = $this->STOMATITIS->CurrentValue;\n\t\t$this->STOMATITIS->PlaceHolder = ew_RemoveHtml($this->STOMATITIS->FldCaption());\n\n\t\t// LIDAH\n\t\t$this->LIDAH->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->LIDAH->EditCustomAttributes = \"\";\n\t\t$this->LIDAH->EditValue = $this->LIDAH->CurrentValue;\n\t\t$this->LIDAH->PlaceHolder = ew_RemoveHtml($this->LIDAH->FldCaption());\n\n\t\t// GIGI\n\t\t$this->GIGI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->GIGI->EditCustomAttributes = \"\";\n\t\t$this->GIGI->EditValue = $this->GIGI->CurrentValue;\n\t\t$this->GIGI->PlaceHolder = ew_RemoveHtml($this->GIGI->FldCaption());\n\n\t\t// TONSIL\n\t\t$this->TONSIL->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->TONSIL->EditCustomAttributes = \"\";\n\t\t$this->TONSIL->EditValue = $this->TONSIL->CurrentValue;\n\t\t$this->TONSIL->PlaceHolder = ew_RemoveHtml($this->TONSIL->FldCaption());\n\n\t\t// KELAINAN\n\t\t$this->KELAINAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KELAINAN->EditCustomAttributes = \"\";\n\t\t$this->KELAINAN->EditValue = $this->KELAINAN->CurrentValue;\n\t\t$this->KELAINAN->PlaceHolder = ew_RemoveHtml($this->KELAINAN->FldCaption());\n\n\t\t// PERGERAKAN\n\t\t$this->PERGERAKAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PERGERAKAN->EditCustomAttributes = \"\";\n\t\t$this->PERGERAKAN->EditValue = $this->PERGERAKAN->CurrentValue;\n\t\t$this->PERGERAKAN->PlaceHolder = ew_RemoveHtml($this->PERGERAKAN->FldCaption());\n\n\t\t// KEL_TIROID\n\t\t$this->KEL_TIROID->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KEL_TIROID->EditCustomAttributes = \"\";\n\t\t$this->KEL_TIROID->EditValue = $this->KEL_TIROID->CurrentValue;\n\t\t$this->KEL_TIROID->PlaceHolder = ew_RemoveHtml($this->KEL_TIROID->FldCaption());\n\n\t\t// KEL_GETAH\n\t\t$this->KEL_GETAH->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KEL_GETAH->EditCustomAttributes = \"\";\n\t\t$this->KEL_GETAH->EditValue = $this->KEL_GETAH->CurrentValue;\n\t\t$this->KEL_GETAH->PlaceHolder = ew_RemoveHtml($this->KEL_GETAH->FldCaption());\n\n\t\t// TEKANAN_VENA\n\t\t$this->TEKANAN_VENA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->TEKANAN_VENA->EditCustomAttributes = \"\";\n\t\t$this->TEKANAN_VENA->EditValue = $this->TEKANAN_VENA->CurrentValue;\n\t\t$this->TEKANAN_VENA->PlaceHolder = ew_RemoveHtml($this->TEKANAN_VENA->FldCaption());\n\n\t\t// REF_MENELAN\n\t\t$this->REF_MENELAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->REF_MENELAN->EditCustomAttributes = \"\";\n\t\t$this->REF_MENELAN->EditValue = $this->REF_MENELAN->CurrentValue;\n\t\t$this->REF_MENELAN->PlaceHolder = ew_RemoveHtml($this->REF_MENELAN->FldCaption());\n\n\t\t// NYERI\n\t\t$this->NYERI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NYERI->EditCustomAttributes = \"\";\n\t\t$this->NYERI->EditValue = $this->NYERI->CurrentValue;\n\t\t$this->NYERI->PlaceHolder = ew_RemoveHtml($this->NYERI->FldCaption());\n\n\t\t// KREPITASI\n\t\t$this->KREPITASI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KREPITASI->EditCustomAttributes = \"\";\n\t\t$this->KREPITASI->EditValue = $this->KREPITASI->CurrentValue;\n\t\t$this->KREPITASI->PlaceHolder = ew_RemoveHtml($this->KREPITASI->FldCaption());\n\n\t\t// KEL_LAIN\n\t\t$this->KEL_LAIN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KEL_LAIN->EditCustomAttributes = \"\";\n\t\t$this->KEL_LAIN->EditValue = $this->KEL_LAIN->CurrentValue;\n\t\t$this->KEL_LAIN->PlaceHolder = ew_RemoveHtml($this->KEL_LAIN->FldCaption());\n\n\t\t// BENTUK_DADA\n\t\t$this->BENTUK_DADA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->BENTUK_DADA->EditCustomAttributes = \"\";\n\t\t$this->BENTUK_DADA->EditValue = $this->BENTUK_DADA->CurrentValue;\n\t\t$this->BENTUK_DADA->PlaceHolder = ew_RemoveHtml($this->BENTUK_DADA->FldCaption());\n\n\t\t// POLA_NAPAS\n\t\t$this->POLA_NAPAS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->POLA_NAPAS->EditCustomAttributes = \"\";\n\t\t$this->POLA_NAPAS->EditValue = $this->POLA_NAPAS->CurrentValue;\n\t\t$this->POLA_NAPAS->PlaceHolder = ew_RemoveHtml($this->POLA_NAPAS->FldCaption());\n\n\t\t// BENTUK_THORAKS\n\t\t$this->BENTUK_THORAKS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->BENTUK_THORAKS->EditCustomAttributes = \"\";\n\t\t$this->BENTUK_THORAKS->EditValue = $this->BENTUK_THORAKS->CurrentValue;\n\t\t$this->BENTUK_THORAKS->PlaceHolder = ew_RemoveHtml($this->BENTUK_THORAKS->FldCaption());\n\n\t\t// PAL_KREP\n\t\t$this->PAL_KREP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PAL_KREP->EditCustomAttributes = \"\";\n\t\t$this->PAL_KREP->EditValue = $this->PAL_KREP->CurrentValue;\n\t\t$this->PAL_KREP->PlaceHolder = ew_RemoveHtml($this->PAL_KREP->FldCaption());\n\n\t\t// BENJOLAN\n\t\t$this->BENJOLAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->BENJOLAN->EditCustomAttributes = \"\";\n\t\t$this->BENJOLAN->EditValue = $this->BENJOLAN->CurrentValue;\n\t\t$this->BENJOLAN->PlaceHolder = ew_RemoveHtml($this->BENJOLAN->FldCaption());\n\n\t\t// PAL_NYERI\n\t\t$this->PAL_NYERI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PAL_NYERI->EditCustomAttributes = \"\";\n\t\t$this->PAL_NYERI->EditValue = $this->PAL_NYERI->CurrentValue;\n\t\t$this->PAL_NYERI->PlaceHolder = ew_RemoveHtml($this->PAL_NYERI->FldCaption());\n\n\t\t// PERKUSI\n\t\t$this->PERKUSI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PERKUSI->EditCustomAttributes = \"\";\n\t\t$this->PERKUSI->EditValue = $this->PERKUSI->CurrentValue;\n\t\t$this->PERKUSI->PlaceHolder = ew_RemoveHtml($this->PERKUSI->FldCaption());\n\n\t\t// PARU\n\t\t$this->PARU->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PARU->EditCustomAttributes = \"\";\n\t\t$this->PARU->EditValue = $this->PARU->CurrentValue;\n\t\t$this->PARU->PlaceHolder = ew_RemoveHtml($this->PARU->FldCaption());\n\n\t\t// JANTUNG\n\t\t$this->JANTUNG->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->JANTUNG->EditCustomAttributes = \"\";\n\t\t$this->JANTUNG->EditValue = $this->JANTUNG->CurrentValue;\n\t\t$this->JANTUNG->PlaceHolder = ew_RemoveHtml($this->JANTUNG->FldCaption());\n\n\t\t// SUARA_JANTUNG\n\t\t$this->SUARA_JANTUNG->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->SUARA_JANTUNG->EditCustomAttributes = \"\";\n\t\t$this->SUARA_JANTUNG->EditValue = $this->SUARA_JANTUNG->CurrentValue;\n\t\t$this->SUARA_JANTUNG->PlaceHolder = ew_RemoveHtml($this->SUARA_JANTUNG->FldCaption());\n\n\t\t// ALATBANTU_JAN\n\t\t$this->ALATBANTU_JAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->ALATBANTU_JAN->EditCustomAttributes = \"\";\n\t\t$this->ALATBANTU_JAN->EditValue = $this->ALATBANTU_JAN->CurrentValue;\n\t\t$this->ALATBANTU_JAN->PlaceHolder = ew_RemoveHtml($this->ALATBANTU_JAN->FldCaption());\n\n\t\t// BENTUK_ABDOMEN\n\t\t$this->BENTUK_ABDOMEN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->BENTUK_ABDOMEN->EditCustomAttributes = \"\";\n\t\t$this->BENTUK_ABDOMEN->EditValue = $this->BENTUK_ABDOMEN->CurrentValue;\n\t\t$this->BENTUK_ABDOMEN->PlaceHolder = ew_RemoveHtml($this->BENTUK_ABDOMEN->FldCaption());\n\n\t\t// AUSKULTASI\n\t\t$this->AUSKULTASI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->AUSKULTASI->EditCustomAttributes = \"\";\n\t\t$this->AUSKULTASI->EditValue = $this->AUSKULTASI->CurrentValue;\n\t\t$this->AUSKULTASI->PlaceHolder = ew_RemoveHtml($this->AUSKULTASI->FldCaption());\n\n\t\t// NYERI_PASI\n\t\t$this->NYERI_PASI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NYERI_PASI->EditCustomAttributes = \"\";\n\t\t$this->NYERI_PASI->EditValue = $this->NYERI_PASI->CurrentValue;\n\t\t$this->NYERI_PASI->PlaceHolder = ew_RemoveHtml($this->NYERI_PASI->FldCaption());\n\n\t\t// PEM_KELENJAR\n\t\t$this->PEM_KELENJAR->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PEM_KELENJAR->EditCustomAttributes = \"\";\n\t\t$this->PEM_KELENJAR->EditValue = $this->PEM_KELENJAR->CurrentValue;\n\t\t$this->PEM_KELENJAR->PlaceHolder = ew_RemoveHtml($this->PEM_KELENJAR->FldCaption());\n\n\t\t// PERKUSI_AUS\n\t\t$this->PERKUSI_AUS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PERKUSI_AUS->EditCustomAttributes = \"\";\n\t\t$this->PERKUSI_AUS->EditValue = $this->PERKUSI_AUS->CurrentValue;\n\t\t$this->PERKUSI_AUS->PlaceHolder = ew_RemoveHtml($this->PERKUSI_AUS->FldCaption());\n\n\t\t// VAGINA\n\t\t$this->VAGINA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->VAGINA->EditCustomAttributes = \"\";\n\t\t$this->VAGINA->EditValue = $this->VAGINA->CurrentValue;\n\t\t$this->VAGINA->PlaceHolder = ew_RemoveHtml($this->VAGINA->FldCaption());\n\n\t\t// MENSTRUASI\n\t\t$this->MENSTRUASI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MENSTRUASI->EditCustomAttributes = \"\";\n\t\t$this->MENSTRUASI->EditValue = $this->MENSTRUASI->CurrentValue;\n\t\t$this->MENSTRUASI->PlaceHolder = ew_RemoveHtml($this->MENSTRUASI->FldCaption());\n\n\t\t// KATETER\n\t\t$this->KATETER->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KATETER->EditCustomAttributes = \"\";\n\t\t$this->KATETER->EditValue = $this->KATETER->CurrentValue;\n\t\t$this->KATETER->PlaceHolder = ew_RemoveHtml($this->KATETER->FldCaption());\n\n\t\t// LABIA_PROM\n\t\t$this->LABIA_PROM->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->LABIA_PROM->EditCustomAttributes = \"\";\n\t\t$this->LABIA_PROM->EditValue = $this->LABIA_PROM->CurrentValue;\n\t\t$this->LABIA_PROM->PlaceHolder = ew_RemoveHtml($this->LABIA_PROM->FldCaption());\n\n\t\t// HAMIL\n\t\t$this->HAMIL->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->HAMIL->EditCustomAttributes = \"\";\n\t\t$this->HAMIL->EditValue = $this->HAMIL->CurrentValue;\n\t\t$this->HAMIL->PlaceHolder = ew_RemoveHtml($this->HAMIL->FldCaption());\n\n\t\t// TGL_HAID\n\t\t$this->TGL_HAID->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->TGL_HAID->EditCustomAttributes = \"\";\n\t\t$this->TGL_HAID->EditValue = ew_FormatDateTime($this->TGL_HAID->CurrentValue, 8);\n\t\t$this->TGL_HAID->PlaceHolder = ew_RemoveHtml($this->TGL_HAID->FldCaption());\n\n\t\t// PERIKSA_CERVIX\n\t\t$this->PERIKSA_CERVIX->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PERIKSA_CERVIX->EditCustomAttributes = \"\";\n\t\t$this->PERIKSA_CERVIX->EditValue = $this->PERIKSA_CERVIX->CurrentValue;\n\t\t$this->PERIKSA_CERVIX->PlaceHolder = ew_RemoveHtml($this->PERIKSA_CERVIX->FldCaption());\n\n\t\t// BENTUK_PAYUDARA\n\t\t$this->BENTUK_PAYUDARA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->BENTUK_PAYUDARA->EditCustomAttributes = \"\";\n\t\t$this->BENTUK_PAYUDARA->EditValue = $this->BENTUK_PAYUDARA->CurrentValue;\n\t\t$this->BENTUK_PAYUDARA->PlaceHolder = ew_RemoveHtml($this->BENTUK_PAYUDARA->FldCaption());\n\n\t\t// KENYAL\n\t\t$this->KENYAL->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KENYAL->EditCustomAttributes = \"\";\n\t\t$this->KENYAL->EditValue = $this->KENYAL->CurrentValue;\n\t\t$this->KENYAL->PlaceHolder = ew_RemoveHtml($this->KENYAL->FldCaption());\n\n\t\t// MASSA\n\t\t$this->MASSA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MASSA->EditCustomAttributes = \"\";\n\t\t$this->MASSA->EditValue = $this->MASSA->CurrentValue;\n\t\t$this->MASSA->PlaceHolder = ew_RemoveHtml($this->MASSA->FldCaption());\n\n\t\t// NYERI_RABA\n\t\t$this->NYERI_RABA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NYERI_RABA->EditCustomAttributes = \"\";\n\t\t$this->NYERI_RABA->EditValue = $this->NYERI_RABA->CurrentValue;\n\t\t$this->NYERI_RABA->PlaceHolder = ew_RemoveHtml($this->NYERI_RABA->FldCaption());\n\n\t\t// BENTUK_PUTING\n\t\t$this->BENTUK_PUTING->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->BENTUK_PUTING->EditCustomAttributes = \"\";\n\t\t$this->BENTUK_PUTING->EditValue = $this->BENTUK_PUTING->CurrentValue;\n\t\t$this->BENTUK_PUTING->PlaceHolder = ew_RemoveHtml($this->BENTUK_PUTING->FldCaption());\n\n\t\t// MAMMO\n\t\t$this->MAMMO->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MAMMO->EditCustomAttributes = \"\";\n\t\t$this->MAMMO->EditValue = $this->MAMMO->CurrentValue;\n\t\t$this->MAMMO->PlaceHolder = ew_RemoveHtml($this->MAMMO->FldCaption());\n\n\t\t// ALAT_KONTRASEPSI\n\t\t$this->ALAT_KONTRASEPSI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->ALAT_KONTRASEPSI->EditCustomAttributes = \"\";\n\t\t$this->ALAT_KONTRASEPSI->EditValue = $this->ALAT_KONTRASEPSI->CurrentValue;\n\t\t$this->ALAT_KONTRASEPSI->PlaceHolder = ew_RemoveHtml($this->ALAT_KONTRASEPSI->FldCaption());\n\n\t\t// MASALAH_SEKS\n\t\t$this->MASALAH_SEKS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MASALAH_SEKS->EditCustomAttributes = \"\";\n\t\t$this->MASALAH_SEKS->EditValue = $this->MASALAH_SEKS->CurrentValue;\n\t\t$this->MASALAH_SEKS->PlaceHolder = ew_RemoveHtml($this->MASALAH_SEKS->FldCaption());\n\n\t\t// PREPUTIUM\n\t\t$this->PREPUTIUM->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PREPUTIUM->EditCustomAttributes = \"\";\n\t\t$this->PREPUTIUM->EditValue = $this->PREPUTIUM->CurrentValue;\n\t\t$this->PREPUTIUM->PlaceHolder = ew_RemoveHtml($this->PREPUTIUM->FldCaption());\n\n\t\t// MASALAH_PROSTAT\n\t\t$this->MASALAH_PROSTAT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MASALAH_PROSTAT->EditCustomAttributes = \"\";\n\t\t$this->MASALAH_PROSTAT->EditValue = $this->MASALAH_PROSTAT->CurrentValue;\n\t\t$this->MASALAH_PROSTAT->PlaceHolder = ew_RemoveHtml($this->MASALAH_PROSTAT->FldCaption());\n\n\t\t// BENTUK_SKROTUM\n\t\t$this->BENTUK_SKROTUM->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->BENTUK_SKROTUM->EditCustomAttributes = \"\";\n\t\t$this->BENTUK_SKROTUM->EditValue = $this->BENTUK_SKROTUM->CurrentValue;\n\t\t$this->BENTUK_SKROTUM->PlaceHolder = ew_RemoveHtml($this->BENTUK_SKROTUM->FldCaption());\n\n\t\t// TESTIS\n\t\t$this->TESTIS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->TESTIS->EditCustomAttributes = \"\";\n\t\t$this->TESTIS->EditValue = $this->TESTIS->CurrentValue;\n\t\t$this->TESTIS->PlaceHolder = ew_RemoveHtml($this->TESTIS->FldCaption());\n\n\t\t// MASSA_BEN\n\t\t$this->MASSA_BEN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MASSA_BEN->EditCustomAttributes = \"\";\n\t\t$this->MASSA_BEN->EditValue = $this->MASSA_BEN->CurrentValue;\n\t\t$this->MASSA_BEN->PlaceHolder = ew_RemoveHtml($this->MASSA_BEN->FldCaption());\n\n\t\t// HERNIASI\n\t\t$this->HERNIASI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->HERNIASI->EditCustomAttributes = \"\";\n\t\t$this->HERNIASI->EditValue = $this->HERNIASI->CurrentValue;\n\t\t$this->HERNIASI->PlaceHolder = ew_RemoveHtml($this->HERNIASI->FldCaption());\n\n\t\t// LAIN2\n\t\t$this->LAIN2->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->LAIN2->EditCustomAttributes = \"\";\n\t\t$this->LAIN2->EditValue = $this->LAIN2->CurrentValue;\n\t\t$this->LAIN2->PlaceHolder = ew_RemoveHtml($this->LAIN2->FldCaption());\n\n\t\t// ALAT_KONTRA\n\t\t$this->ALAT_KONTRA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->ALAT_KONTRA->EditCustomAttributes = \"\";\n\t\t$this->ALAT_KONTRA->EditValue = $this->ALAT_KONTRA->CurrentValue;\n\t\t$this->ALAT_KONTRA->PlaceHolder = ew_RemoveHtml($this->ALAT_KONTRA->FldCaption());\n\n\t\t// MASALAH_REPRO\n\t\t$this->MASALAH_REPRO->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MASALAH_REPRO->EditCustomAttributes = \"\";\n\t\t$this->MASALAH_REPRO->EditValue = $this->MASALAH_REPRO->CurrentValue;\n\t\t$this->MASALAH_REPRO->PlaceHolder = ew_RemoveHtml($this->MASALAH_REPRO->FldCaption());\n\n\t\t// EKSTREMITAS_ATAS\n\t\t$this->EKSTREMITAS_ATAS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->EKSTREMITAS_ATAS->EditCustomAttributes = \"\";\n\t\t$this->EKSTREMITAS_ATAS->EditValue = $this->EKSTREMITAS_ATAS->CurrentValue;\n\t\t$this->EKSTREMITAS_ATAS->PlaceHolder = ew_RemoveHtml($this->EKSTREMITAS_ATAS->FldCaption());\n\n\t\t// EKSTREMITAS_BAWAH\n\t\t$this->EKSTREMITAS_BAWAH->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->EKSTREMITAS_BAWAH->EditCustomAttributes = \"\";\n\t\t$this->EKSTREMITAS_BAWAH->EditValue = $this->EKSTREMITAS_BAWAH->CurrentValue;\n\t\t$this->EKSTREMITAS_BAWAH->PlaceHolder = ew_RemoveHtml($this->EKSTREMITAS_BAWAH->FldCaption());\n\n\t\t// AKTIVITAS\n\t\t$this->AKTIVITAS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->AKTIVITAS->EditCustomAttributes = \"\";\n\t\t$this->AKTIVITAS->EditValue = $this->AKTIVITAS->CurrentValue;\n\t\t$this->AKTIVITAS->PlaceHolder = ew_RemoveHtml($this->AKTIVITAS->FldCaption());\n\n\t\t// BERJALAN\n\t\t$this->BERJALAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->BERJALAN->EditCustomAttributes = \"\";\n\t\t$this->BERJALAN->EditValue = $this->BERJALAN->CurrentValue;\n\t\t$this->BERJALAN->PlaceHolder = ew_RemoveHtml($this->BERJALAN->FldCaption());\n\n\t\t// SISTEM_INTE\n\t\t$this->SISTEM_INTE->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->SISTEM_INTE->EditCustomAttributes = \"\";\n\t\t$this->SISTEM_INTE->EditValue = $this->SISTEM_INTE->CurrentValue;\n\t\t$this->SISTEM_INTE->PlaceHolder = ew_RemoveHtml($this->SISTEM_INTE->FldCaption());\n\n\t\t// KENYAMANAN\n\t\t$this->KENYAMANAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KENYAMANAN->EditCustomAttributes = \"\";\n\t\t$this->KENYAMANAN->EditValue = $this->KENYAMANAN->CurrentValue;\n\t\t$this->KENYAMANAN->PlaceHolder = ew_RemoveHtml($this->KENYAMANAN->FldCaption());\n\n\t\t// KES_DIRI\n\t\t$this->KES_DIRI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KES_DIRI->EditCustomAttributes = \"\";\n\t\t$this->KES_DIRI->EditValue = $this->KES_DIRI->CurrentValue;\n\t\t$this->KES_DIRI->PlaceHolder = ew_RemoveHtml($this->KES_DIRI->FldCaption());\n\n\t\t// SOS_SUPORT\n\t\t$this->SOS_SUPORT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->SOS_SUPORT->EditCustomAttributes = \"\";\n\t\t$this->SOS_SUPORT->EditValue = $this->SOS_SUPORT->CurrentValue;\n\t\t$this->SOS_SUPORT->PlaceHolder = ew_RemoveHtml($this->SOS_SUPORT->FldCaption());\n\n\t\t// ANSIETAS\n\t\t$this->ANSIETAS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->ANSIETAS->EditCustomAttributes = \"\";\n\t\t$this->ANSIETAS->EditValue = $this->ANSIETAS->CurrentValue;\n\t\t$this->ANSIETAS->PlaceHolder = ew_RemoveHtml($this->ANSIETAS->FldCaption());\n\n\t\t// KEHILANGAN\n\t\t$this->KEHILANGAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KEHILANGAN->EditCustomAttributes = \"\";\n\t\t$this->KEHILANGAN->EditValue = $this->KEHILANGAN->CurrentValue;\n\t\t$this->KEHILANGAN->PlaceHolder = ew_RemoveHtml($this->KEHILANGAN->FldCaption());\n\n\t\t// STATUS_EMOSI\n\t\t$this->STATUS_EMOSI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->STATUS_EMOSI->EditCustomAttributes = \"\";\n\t\t$this->STATUS_EMOSI->EditValue = $this->STATUS_EMOSI->CurrentValue;\n\t\t$this->STATUS_EMOSI->PlaceHolder = ew_RemoveHtml($this->STATUS_EMOSI->FldCaption());\n\n\t\t// KONSEP_DIRI\n\t\t$this->KONSEP_DIRI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KONSEP_DIRI->EditCustomAttributes = \"\";\n\t\t$this->KONSEP_DIRI->EditValue = $this->KONSEP_DIRI->CurrentValue;\n\t\t$this->KONSEP_DIRI->PlaceHolder = ew_RemoveHtml($this->KONSEP_DIRI->FldCaption());\n\n\t\t// RESPON_HILANG\n\t\t$this->RESPON_HILANG->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->RESPON_HILANG->EditCustomAttributes = \"\";\n\t\t$this->RESPON_HILANG->EditValue = $this->RESPON_HILANG->CurrentValue;\n\t\t$this->RESPON_HILANG->PlaceHolder = ew_RemoveHtml($this->RESPON_HILANG->FldCaption());\n\n\t\t// SUMBER_STRESS\n\t\t$this->SUMBER_STRESS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->SUMBER_STRESS->EditCustomAttributes = \"\";\n\t\t$this->SUMBER_STRESS->EditValue = $this->SUMBER_STRESS->CurrentValue;\n\t\t$this->SUMBER_STRESS->PlaceHolder = ew_RemoveHtml($this->SUMBER_STRESS->FldCaption());\n\n\t\t// BERARTI\n\t\t$this->BERARTI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->BERARTI->EditCustomAttributes = \"\";\n\t\t$this->BERARTI->EditValue = $this->BERARTI->CurrentValue;\n\t\t$this->BERARTI->PlaceHolder = ew_RemoveHtml($this->BERARTI->FldCaption());\n\n\t\t// TERLIBAT\n\t\t$this->TERLIBAT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->TERLIBAT->EditCustomAttributes = \"\";\n\t\t$this->TERLIBAT->EditValue = $this->TERLIBAT->CurrentValue;\n\t\t$this->TERLIBAT->PlaceHolder = ew_RemoveHtml($this->TERLIBAT->FldCaption());\n\n\t\t// HUBUNGAN\n\t\t$this->HUBUNGAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->HUBUNGAN->EditCustomAttributes = \"\";\n\t\t$this->HUBUNGAN->EditValue = $this->HUBUNGAN->CurrentValue;\n\t\t$this->HUBUNGAN->PlaceHolder = ew_RemoveHtml($this->HUBUNGAN->FldCaption());\n\n\t\t// KOMUNIKASI\n\t\t$this->KOMUNIKASI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KOMUNIKASI->EditCustomAttributes = \"\";\n\t\t$this->KOMUNIKASI->EditValue = $this->KOMUNIKASI->CurrentValue;\n\t\t$this->KOMUNIKASI->PlaceHolder = ew_RemoveHtml($this->KOMUNIKASI->FldCaption());\n\n\t\t// KEPUTUSAN\n\t\t$this->KEPUTUSAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KEPUTUSAN->EditCustomAttributes = \"\";\n\t\t$this->KEPUTUSAN->EditValue = $this->KEPUTUSAN->CurrentValue;\n\t\t$this->KEPUTUSAN->PlaceHolder = ew_RemoveHtml($this->KEPUTUSAN->FldCaption());\n\n\t\t// MENGASUH\n\t\t$this->MENGASUH->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MENGASUH->EditCustomAttributes = \"\";\n\t\t$this->MENGASUH->EditValue = $this->MENGASUH->CurrentValue;\n\t\t$this->MENGASUH->PlaceHolder = ew_RemoveHtml($this->MENGASUH->FldCaption());\n\n\t\t// DUKUNGAN\n\t\t$this->DUKUNGAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->DUKUNGAN->EditCustomAttributes = \"\";\n\t\t$this->DUKUNGAN->EditValue = $this->DUKUNGAN->CurrentValue;\n\t\t$this->DUKUNGAN->PlaceHolder = ew_RemoveHtml($this->DUKUNGAN->FldCaption());\n\n\t\t// REAKSI\n\t\t$this->REAKSI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->REAKSI->EditCustomAttributes = \"\";\n\t\t$this->REAKSI->EditValue = $this->REAKSI->CurrentValue;\n\t\t$this->REAKSI->PlaceHolder = ew_RemoveHtml($this->REAKSI->FldCaption());\n\n\t\t// BUDAYA\n\t\t$this->BUDAYA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->BUDAYA->EditCustomAttributes = \"\";\n\t\t$this->BUDAYA->EditValue = $this->BUDAYA->CurrentValue;\n\t\t$this->BUDAYA->PlaceHolder = ew_RemoveHtml($this->BUDAYA->FldCaption());\n\n\t\t// POLA_AKTIVITAS\n\t\t$this->POLA_AKTIVITAS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->POLA_AKTIVITAS->EditCustomAttributes = \"\";\n\t\t$this->POLA_AKTIVITAS->EditValue = $this->POLA_AKTIVITAS->CurrentValue;\n\t\t$this->POLA_AKTIVITAS->PlaceHolder = ew_RemoveHtml($this->POLA_AKTIVITAS->FldCaption());\n\n\t\t// POLA_ISTIRAHAT\n\t\t$this->POLA_ISTIRAHAT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->POLA_ISTIRAHAT->EditCustomAttributes = \"\";\n\t\t$this->POLA_ISTIRAHAT->EditValue = $this->POLA_ISTIRAHAT->CurrentValue;\n\t\t$this->POLA_ISTIRAHAT->PlaceHolder = ew_RemoveHtml($this->POLA_ISTIRAHAT->FldCaption());\n\n\t\t// POLA_MAKAN\n\t\t$this->POLA_MAKAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->POLA_MAKAN->EditCustomAttributes = \"\";\n\t\t$this->POLA_MAKAN->EditValue = $this->POLA_MAKAN->CurrentValue;\n\t\t$this->POLA_MAKAN->PlaceHolder = ew_RemoveHtml($this->POLA_MAKAN->FldCaption());\n\n\t\t// PANTANGAN\n\t\t$this->PANTANGAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PANTANGAN->EditCustomAttributes = \"\";\n\t\t$this->PANTANGAN->EditValue = $this->PANTANGAN->CurrentValue;\n\t\t$this->PANTANGAN->PlaceHolder = ew_RemoveHtml($this->PANTANGAN->FldCaption());\n\n\t\t// KEPERCAYAAN\n\t\t$this->KEPERCAYAAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KEPERCAYAAN->EditCustomAttributes = \"\";\n\t\t$this->KEPERCAYAAN->EditValue = $this->KEPERCAYAAN->CurrentValue;\n\t\t$this->KEPERCAYAAN->PlaceHolder = ew_RemoveHtml($this->KEPERCAYAAN->FldCaption());\n\n\t\t// PANTANGAN_HARI\n\t\t$this->PANTANGAN_HARI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PANTANGAN_HARI->EditCustomAttributes = \"\";\n\t\t$this->PANTANGAN_HARI->EditValue = $this->PANTANGAN_HARI->CurrentValue;\n\t\t$this->PANTANGAN_HARI->PlaceHolder = ew_RemoveHtml($this->PANTANGAN_HARI->FldCaption());\n\n\t\t// PANTANGAN_LAIN\n\t\t$this->PANTANGAN_LAIN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PANTANGAN_LAIN->EditCustomAttributes = \"\";\n\t\t$this->PANTANGAN_LAIN->EditValue = $this->PANTANGAN_LAIN->CurrentValue;\n\t\t$this->PANTANGAN_LAIN->PlaceHolder = ew_RemoveHtml($this->PANTANGAN_LAIN->FldCaption());\n\n\t\t// ANJURAN\n\t\t$this->ANJURAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->ANJURAN->EditCustomAttributes = \"\";\n\t\t$this->ANJURAN->EditValue = $this->ANJURAN->CurrentValue;\n\t\t$this->ANJURAN->PlaceHolder = ew_RemoveHtml($this->ANJURAN->FldCaption());\n\n\t\t// NILAI_KEYAKINAN\n\t\t$this->NILAI_KEYAKINAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NILAI_KEYAKINAN->EditCustomAttributes = \"\";\n\t\t$this->NILAI_KEYAKINAN->EditValue = $this->NILAI_KEYAKINAN->CurrentValue;\n\t\t$this->NILAI_KEYAKINAN->PlaceHolder = ew_RemoveHtml($this->NILAI_KEYAKINAN->FldCaption());\n\n\t\t// KEGIATAN_IBADAH\n\t\t$this->KEGIATAN_IBADAH->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KEGIATAN_IBADAH->EditCustomAttributes = \"\";\n\t\t$this->KEGIATAN_IBADAH->EditValue = $this->KEGIATAN_IBADAH->CurrentValue;\n\t\t$this->KEGIATAN_IBADAH->PlaceHolder = ew_RemoveHtml($this->KEGIATAN_IBADAH->FldCaption());\n\n\t\t// PENG_AGAMA\n\t\t$this->PENG_AGAMA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PENG_AGAMA->EditCustomAttributes = \"\";\n\t\t$this->PENG_AGAMA->EditValue = $this->PENG_AGAMA->CurrentValue;\n\t\t$this->PENG_AGAMA->PlaceHolder = ew_RemoveHtml($this->PENG_AGAMA->FldCaption());\n\n\t\t// SPIRIT\n\t\t$this->SPIRIT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->SPIRIT->EditCustomAttributes = \"\";\n\t\t$this->SPIRIT->EditValue = $this->SPIRIT->CurrentValue;\n\t\t$this->SPIRIT->PlaceHolder = ew_RemoveHtml($this->SPIRIT->FldCaption());\n\n\t\t// BANTUAN\n\t\t$this->BANTUAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->BANTUAN->EditCustomAttributes = \"\";\n\t\t$this->BANTUAN->EditValue = $this->BANTUAN->CurrentValue;\n\t\t$this->BANTUAN->PlaceHolder = ew_RemoveHtml($this->BANTUAN->FldCaption());\n\n\t\t// PAHAM_PENYAKIT\n\t\t$this->PAHAM_PENYAKIT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PAHAM_PENYAKIT->EditCustomAttributes = \"\";\n\t\t$this->PAHAM_PENYAKIT->EditValue = $this->PAHAM_PENYAKIT->CurrentValue;\n\t\t$this->PAHAM_PENYAKIT->PlaceHolder = ew_RemoveHtml($this->PAHAM_PENYAKIT->FldCaption());\n\n\t\t// PAHAM_OBAT\n\t\t$this->PAHAM_OBAT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PAHAM_OBAT->EditCustomAttributes = \"\";\n\t\t$this->PAHAM_OBAT->EditValue = $this->PAHAM_OBAT->CurrentValue;\n\t\t$this->PAHAM_OBAT->PlaceHolder = ew_RemoveHtml($this->PAHAM_OBAT->FldCaption());\n\n\t\t// PAHAM_NUTRISI\n\t\t$this->PAHAM_NUTRISI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PAHAM_NUTRISI->EditCustomAttributes = \"\";\n\t\t$this->PAHAM_NUTRISI->EditValue = $this->PAHAM_NUTRISI->CurrentValue;\n\t\t$this->PAHAM_NUTRISI->PlaceHolder = ew_RemoveHtml($this->PAHAM_NUTRISI->FldCaption());\n\n\t\t// PAHAM_RAWAT\n\t\t$this->PAHAM_RAWAT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PAHAM_RAWAT->EditCustomAttributes = \"\";\n\t\t$this->PAHAM_RAWAT->EditValue = $this->PAHAM_RAWAT->CurrentValue;\n\t\t$this->PAHAM_RAWAT->PlaceHolder = ew_RemoveHtml($this->PAHAM_RAWAT->FldCaption());\n\n\t\t// HAMBATAN_EDUKASI\n\t\t$this->HAMBATAN_EDUKASI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->HAMBATAN_EDUKASI->EditCustomAttributes = \"\";\n\t\t$this->HAMBATAN_EDUKASI->EditValue = $this->HAMBATAN_EDUKASI->CurrentValue;\n\t\t$this->HAMBATAN_EDUKASI->PlaceHolder = ew_RemoveHtml($this->HAMBATAN_EDUKASI->FldCaption());\n\n\t\t// FREK_MAKAN\n\t\t$this->FREK_MAKAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->FREK_MAKAN->EditCustomAttributes = \"\";\n\t\t$this->FREK_MAKAN->EditValue = $this->FREK_MAKAN->CurrentValue;\n\t\t$this->FREK_MAKAN->PlaceHolder = ew_RemoveHtml($this->FREK_MAKAN->FldCaption());\n\n\t\t// JUM_MAKAN\n\t\t$this->JUM_MAKAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->JUM_MAKAN->EditCustomAttributes = \"\";\n\t\t$this->JUM_MAKAN->EditValue = $this->JUM_MAKAN->CurrentValue;\n\t\t$this->JUM_MAKAN->PlaceHolder = ew_RemoveHtml($this->JUM_MAKAN->FldCaption());\n\n\t\t// JEN_MAKAN\n\t\t$this->JEN_MAKAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->JEN_MAKAN->EditCustomAttributes = \"\";\n\t\t$this->JEN_MAKAN->EditValue = $this->JEN_MAKAN->CurrentValue;\n\t\t$this->JEN_MAKAN->PlaceHolder = ew_RemoveHtml($this->JEN_MAKAN->FldCaption());\n\n\t\t// KOM_MAKAN\n\t\t$this->KOM_MAKAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KOM_MAKAN->EditCustomAttributes = \"\";\n\t\t$this->KOM_MAKAN->EditValue = $this->KOM_MAKAN->CurrentValue;\n\t\t$this->KOM_MAKAN->PlaceHolder = ew_RemoveHtml($this->KOM_MAKAN->FldCaption());\n\n\t\t// DIET\n\t\t$this->DIET->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->DIET->EditCustomAttributes = \"\";\n\t\t$this->DIET->EditValue = $this->DIET->CurrentValue;\n\t\t$this->DIET->PlaceHolder = ew_RemoveHtml($this->DIET->FldCaption());\n\n\t\t// CARA_MAKAN\n\t\t$this->CARA_MAKAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->CARA_MAKAN->EditCustomAttributes = \"\";\n\t\t$this->CARA_MAKAN->EditValue = $this->CARA_MAKAN->CurrentValue;\n\t\t$this->CARA_MAKAN->PlaceHolder = ew_RemoveHtml($this->CARA_MAKAN->FldCaption());\n\n\t\t// GANGGUAN\n\t\t$this->GANGGUAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->GANGGUAN->EditCustomAttributes = \"\";\n\t\t$this->GANGGUAN->EditValue = $this->GANGGUAN->CurrentValue;\n\t\t$this->GANGGUAN->PlaceHolder = ew_RemoveHtml($this->GANGGUAN->FldCaption());\n\n\t\t// FREK_MINUM\n\t\t$this->FREK_MINUM->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->FREK_MINUM->EditCustomAttributes = \"\";\n\t\t$this->FREK_MINUM->EditValue = $this->FREK_MINUM->CurrentValue;\n\t\t$this->FREK_MINUM->PlaceHolder = ew_RemoveHtml($this->FREK_MINUM->FldCaption());\n\n\t\t// JUM_MINUM\n\t\t$this->JUM_MINUM->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->JUM_MINUM->EditCustomAttributes = \"\";\n\t\t$this->JUM_MINUM->EditValue = $this->JUM_MINUM->CurrentValue;\n\t\t$this->JUM_MINUM->PlaceHolder = ew_RemoveHtml($this->JUM_MINUM->FldCaption());\n\n\t\t// JEN_MINUM\n\t\t$this->JEN_MINUM->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->JEN_MINUM->EditCustomAttributes = \"\";\n\t\t$this->JEN_MINUM->EditValue = $this->JEN_MINUM->CurrentValue;\n\t\t$this->JEN_MINUM->PlaceHolder = ew_RemoveHtml($this->JEN_MINUM->FldCaption());\n\n\t\t// GANG_MINUM\n\t\t$this->GANG_MINUM->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->GANG_MINUM->EditCustomAttributes = \"\";\n\t\t$this->GANG_MINUM->EditValue = $this->GANG_MINUM->CurrentValue;\n\t\t$this->GANG_MINUM->PlaceHolder = ew_RemoveHtml($this->GANG_MINUM->FldCaption());\n\n\t\t// FREK_BAK\n\t\t$this->FREK_BAK->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->FREK_BAK->EditCustomAttributes = \"\";\n\t\t$this->FREK_BAK->EditValue = $this->FREK_BAK->CurrentValue;\n\t\t$this->FREK_BAK->PlaceHolder = ew_RemoveHtml($this->FREK_BAK->FldCaption());\n\n\t\t// WARNA_BAK\n\t\t$this->WARNA_BAK->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->WARNA_BAK->EditCustomAttributes = \"\";\n\t\t$this->WARNA_BAK->EditValue = $this->WARNA_BAK->CurrentValue;\n\t\t$this->WARNA_BAK->PlaceHolder = ew_RemoveHtml($this->WARNA_BAK->FldCaption());\n\n\t\t// JMLH_BAK\n\t\t$this->JMLH_BAK->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->JMLH_BAK->EditCustomAttributes = \"\";\n\t\t$this->JMLH_BAK->EditValue = $this->JMLH_BAK->CurrentValue;\n\t\t$this->JMLH_BAK->PlaceHolder = ew_RemoveHtml($this->JMLH_BAK->FldCaption());\n\n\t\t// PENG_KAT_BAK\n\t\t$this->PENG_KAT_BAK->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PENG_KAT_BAK->EditCustomAttributes = \"\";\n\t\t$this->PENG_KAT_BAK->EditValue = $this->PENG_KAT_BAK->CurrentValue;\n\t\t$this->PENG_KAT_BAK->PlaceHolder = ew_RemoveHtml($this->PENG_KAT_BAK->FldCaption());\n\n\t\t// KEM_HAN_BAK\n\t\t$this->KEM_HAN_BAK->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KEM_HAN_BAK->EditCustomAttributes = \"\";\n\t\t$this->KEM_HAN_BAK->EditValue = $this->KEM_HAN_BAK->CurrentValue;\n\t\t$this->KEM_HAN_BAK->PlaceHolder = ew_RemoveHtml($this->KEM_HAN_BAK->FldCaption());\n\n\t\t// INKONT_BAK\n\t\t$this->INKONT_BAK->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->INKONT_BAK->EditCustomAttributes = \"\";\n\t\t$this->INKONT_BAK->EditValue = $this->INKONT_BAK->CurrentValue;\n\t\t$this->INKONT_BAK->PlaceHolder = ew_RemoveHtml($this->INKONT_BAK->FldCaption());\n\n\t\t// DIURESIS_BAK\n\t\t$this->DIURESIS_BAK->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->DIURESIS_BAK->EditCustomAttributes = \"\";\n\t\t$this->DIURESIS_BAK->EditValue = $this->DIURESIS_BAK->CurrentValue;\n\t\t$this->DIURESIS_BAK->PlaceHolder = ew_RemoveHtml($this->DIURESIS_BAK->FldCaption());\n\n\t\t// FREK_BAB\n\t\t$this->FREK_BAB->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->FREK_BAB->EditCustomAttributes = \"\";\n\t\t$this->FREK_BAB->EditValue = $this->FREK_BAB->CurrentValue;\n\t\t$this->FREK_BAB->PlaceHolder = ew_RemoveHtml($this->FREK_BAB->FldCaption());\n\n\t\t// WARNA_BAB\n\t\t$this->WARNA_BAB->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->WARNA_BAB->EditCustomAttributes = \"\";\n\t\t$this->WARNA_BAB->EditValue = $this->WARNA_BAB->CurrentValue;\n\t\t$this->WARNA_BAB->PlaceHolder = ew_RemoveHtml($this->WARNA_BAB->FldCaption());\n\n\t\t// KONSIST_BAB\n\t\t$this->KONSIST_BAB->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KONSIST_BAB->EditCustomAttributes = \"\";\n\t\t$this->KONSIST_BAB->EditValue = $this->KONSIST_BAB->CurrentValue;\n\t\t$this->KONSIST_BAB->PlaceHolder = ew_RemoveHtml($this->KONSIST_BAB->FldCaption());\n\n\t\t// GANG_BAB\n\t\t$this->GANG_BAB->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->GANG_BAB->EditCustomAttributes = \"\";\n\t\t$this->GANG_BAB->EditValue = $this->GANG_BAB->CurrentValue;\n\t\t$this->GANG_BAB->PlaceHolder = ew_RemoveHtml($this->GANG_BAB->FldCaption());\n\n\t\t// STOMA_BAB\n\t\t$this->STOMA_BAB->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->STOMA_BAB->EditCustomAttributes = \"\";\n\t\t$this->STOMA_BAB->EditValue = $this->STOMA_BAB->CurrentValue;\n\t\t$this->STOMA_BAB->PlaceHolder = ew_RemoveHtml($this->STOMA_BAB->FldCaption());\n\n\t\t// PENG_OBAT_BAB\n\t\t$this->PENG_OBAT_BAB->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PENG_OBAT_BAB->EditCustomAttributes = \"\";\n\t\t$this->PENG_OBAT_BAB->EditValue = $this->PENG_OBAT_BAB->CurrentValue;\n\t\t$this->PENG_OBAT_BAB->PlaceHolder = ew_RemoveHtml($this->PENG_OBAT_BAB->FldCaption());\n\n\t\t// IST_SIANG\n\t\t$this->IST_SIANG->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->IST_SIANG->EditCustomAttributes = \"\";\n\t\t$this->IST_SIANG->EditValue = $this->IST_SIANG->CurrentValue;\n\t\t$this->IST_SIANG->PlaceHolder = ew_RemoveHtml($this->IST_SIANG->FldCaption());\n\n\t\t// IST_MALAM\n\t\t$this->IST_MALAM->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->IST_MALAM->EditCustomAttributes = \"\";\n\t\t$this->IST_MALAM->EditValue = $this->IST_MALAM->CurrentValue;\n\t\t$this->IST_MALAM->PlaceHolder = ew_RemoveHtml($this->IST_MALAM->FldCaption());\n\n\t\t// IST_CAHAYA\n\t\t$this->IST_CAHAYA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->IST_CAHAYA->EditCustomAttributes = \"\";\n\t\t$this->IST_CAHAYA->EditValue = $this->IST_CAHAYA->CurrentValue;\n\t\t$this->IST_CAHAYA->PlaceHolder = ew_RemoveHtml($this->IST_CAHAYA->FldCaption());\n\n\t\t// IST_POSISI\n\t\t$this->IST_POSISI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->IST_POSISI->EditCustomAttributes = \"\";\n\t\t$this->IST_POSISI->EditValue = $this->IST_POSISI->CurrentValue;\n\t\t$this->IST_POSISI->PlaceHolder = ew_RemoveHtml($this->IST_POSISI->FldCaption());\n\n\t\t// IST_LING\n\t\t$this->IST_LING->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->IST_LING->EditCustomAttributes = \"\";\n\t\t$this->IST_LING->EditValue = $this->IST_LING->CurrentValue;\n\t\t$this->IST_LING->PlaceHolder = ew_RemoveHtml($this->IST_LING->FldCaption());\n\n\t\t// IST_GANG_TIDUR\n\t\t$this->IST_GANG_TIDUR->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->IST_GANG_TIDUR->EditCustomAttributes = \"\";\n\t\t$this->IST_GANG_TIDUR->EditValue = $this->IST_GANG_TIDUR->CurrentValue;\n\t\t$this->IST_GANG_TIDUR->PlaceHolder = ew_RemoveHtml($this->IST_GANG_TIDUR->FldCaption());\n\n\t\t// PENG_OBAT_IST\n\t\t$this->PENG_OBAT_IST->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PENG_OBAT_IST->EditCustomAttributes = \"\";\n\t\t$this->PENG_OBAT_IST->EditValue = $this->PENG_OBAT_IST->CurrentValue;\n\t\t$this->PENG_OBAT_IST->PlaceHolder = ew_RemoveHtml($this->PENG_OBAT_IST->FldCaption());\n\n\t\t// FREK_MAND\n\t\t$this->FREK_MAND->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->FREK_MAND->EditCustomAttributes = \"\";\n\t\t$this->FREK_MAND->EditValue = $this->FREK_MAND->CurrentValue;\n\t\t$this->FREK_MAND->PlaceHolder = ew_RemoveHtml($this->FREK_MAND->FldCaption());\n\n\t\t// CUC_RAMB_MAND\n\t\t$this->CUC_RAMB_MAND->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->CUC_RAMB_MAND->EditCustomAttributes = \"\";\n\t\t$this->CUC_RAMB_MAND->EditValue = $this->CUC_RAMB_MAND->CurrentValue;\n\t\t$this->CUC_RAMB_MAND->PlaceHolder = ew_RemoveHtml($this->CUC_RAMB_MAND->FldCaption());\n\n\t\t// SIH_GIGI_MAND\n\t\t$this->SIH_GIGI_MAND->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->SIH_GIGI_MAND->EditCustomAttributes = \"\";\n\t\t$this->SIH_GIGI_MAND->EditValue = $this->SIH_GIGI_MAND->CurrentValue;\n\t\t$this->SIH_GIGI_MAND->PlaceHolder = ew_RemoveHtml($this->SIH_GIGI_MAND->FldCaption());\n\n\t\t// BANT_MAND\n\t\t$this->BANT_MAND->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->BANT_MAND->EditCustomAttributes = \"\";\n\t\t$this->BANT_MAND->EditValue = $this->BANT_MAND->CurrentValue;\n\t\t$this->BANT_MAND->PlaceHolder = ew_RemoveHtml($this->BANT_MAND->FldCaption());\n\n\t\t// GANT_PAKAI\n\t\t$this->GANT_PAKAI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->GANT_PAKAI->EditCustomAttributes = \"\";\n\t\t$this->GANT_PAKAI->EditValue = $this->GANT_PAKAI->CurrentValue;\n\t\t$this->GANT_PAKAI->PlaceHolder = ew_RemoveHtml($this->GANT_PAKAI->FldCaption());\n\n\t\t// PAK_CUCI\n\t\t$this->PAK_CUCI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PAK_CUCI->EditCustomAttributes = \"\";\n\t\t$this->PAK_CUCI->EditValue = $this->PAK_CUCI->CurrentValue;\n\t\t$this->PAK_CUCI->PlaceHolder = ew_RemoveHtml($this->PAK_CUCI->FldCaption());\n\n\t\t// PAK_BANT\n\t\t$this->PAK_BANT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PAK_BANT->EditCustomAttributes = \"\";\n\t\t$this->PAK_BANT->EditValue = $this->PAK_BANT->CurrentValue;\n\t\t$this->PAK_BANT->PlaceHolder = ew_RemoveHtml($this->PAK_BANT->FldCaption());\n\n\t\t// ALT_BANT\n\t\t$this->ALT_BANT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->ALT_BANT->EditCustomAttributes = \"\";\n\t\t$this->ALT_BANT->EditValue = $this->ALT_BANT->CurrentValue;\n\t\t$this->ALT_BANT->PlaceHolder = ew_RemoveHtml($this->ALT_BANT->FldCaption());\n\n\t\t// KEMP_MUND\n\t\t$this->KEMP_MUND->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KEMP_MUND->EditCustomAttributes = \"\";\n\t\t$this->KEMP_MUND->EditValue = $this->KEMP_MUND->CurrentValue;\n\t\t$this->KEMP_MUND->PlaceHolder = ew_RemoveHtml($this->KEMP_MUND->FldCaption());\n\n\t\t// BIL_PUT\n\t\t$this->BIL_PUT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->BIL_PUT->EditCustomAttributes = \"\";\n\t\t$this->BIL_PUT->EditValue = $this->BIL_PUT->CurrentValue;\n\t\t$this->BIL_PUT->PlaceHolder = ew_RemoveHtml($this->BIL_PUT->FldCaption());\n\n\t\t// ADAPTIF\n\t\t$this->ADAPTIF->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->ADAPTIF->EditCustomAttributes = \"\";\n\t\t$this->ADAPTIF->EditValue = $this->ADAPTIF->CurrentValue;\n\t\t$this->ADAPTIF->PlaceHolder = ew_RemoveHtml($this->ADAPTIF->FldCaption());\n\n\t\t// MALADAPTIF\n\t\t$this->MALADAPTIF->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MALADAPTIF->EditCustomAttributes = \"\";\n\t\t$this->MALADAPTIF->EditValue = $this->MALADAPTIF->CurrentValue;\n\t\t$this->MALADAPTIF->PlaceHolder = ew_RemoveHtml($this->MALADAPTIF->FldCaption());\n\n\t\t// PENANGGUNGJAWAB_NAMA\n\t\t$this->PENANGGUNGJAWAB_NAMA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PENANGGUNGJAWAB_NAMA->EditCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_NAMA->EditValue = $this->PENANGGUNGJAWAB_NAMA->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_NAMA->PlaceHolder = ew_RemoveHtml($this->PENANGGUNGJAWAB_NAMA->FldCaption());\n\n\t\t// PENANGGUNGJAWAB_HUBUNGAN\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->EditCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->EditValue = $this->PENANGGUNGJAWAB_HUBUNGAN->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->PlaceHolder = ew_RemoveHtml($this->PENANGGUNGJAWAB_HUBUNGAN->FldCaption());\n\n\t\t// PENANGGUNGJAWAB_ALAMAT\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->EditCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->EditValue = $this->PENANGGUNGJAWAB_ALAMAT->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->PlaceHolder = ew_RemoveHtml($this->PENANGGUNGJAWAB_ALAMAT->FldCaption());\n\n\t\t// PENANGGUNGJAWAB_PHONE\n\t\t$this->PENANGGUNGJAWAB_PHONE->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PENANGGUNGJAWAB_PHONE->EditCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_PHONE->EditValue = $this->PENANGGUNGJAWAB_PHONE->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_PHONE->PlaceHolder = ew_RemoveHtml($this->PENANGGUNGJAWAB_PHONE->FldCaption());\n\n\t\t// obat2\n\t\t$this->obat2->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->obat2->EditCustomAttributes = \"\";\n\t\t$this->obat2->EditValue = $this->obat2->CurrentValue;\n\t\t$this->obat2->PlaceHolder = ew_RemoveHtml($this->obat2->FldCaption());\n\n\t\t// PERBANDINGAN_BB\n\t\t$this->PERBANDINGAN_BB->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PERBANDINGAN_BB->EditCustomAttributes = \"\";\n\t\t$this->PERBANDINGAN_BB->EditValue = $this->PERBANDINGAN_BB->CurrentValue;\n\t\t$this->PERBANDINGAN_BB->PlaceHolder = ew_RemoveHtml($this->PERBANDINGAN_BB->FldCaption());\n\n\t\t// KONTINENSIA\n\t\t$this->KONTINENSIA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KONTINENSIA->EditCustomAttributes = \"\";\n\t\t$this->KONTINENSIA->EditValue = $this->KONTINENSIA->CurrentValue;\n\t\t$this->KONTINENSIA->PlaceHolder = ew_RemoveHtml($this->KONTINENSIA->FldCaption());\n\n\t\t// JENIS_KULIT1\n\t\t$this->JENIS_KULIT1->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->JENIS_KULIT1->EditCustomAttributes = \"\";\n\t\t$this->JENIS_KULIT1->EditValue = $this->JENIS_KULIT1->CurrentValue;\n\t\t$this->JENIS_KULIT1->PlaceHolder = ew_RemoveHtml($this->JENIS_KULIT1->FldCaption());\n\n\t\t// MOBILITAS\n\t\t$this->MOBILITAS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MOBILITAS->EditCustomAttributes = \"\";\n\t\t$this->MOBILITAS->EditValue = $this->MOBILITAS->CurrentValue;\n\t\t$this->MOBILITAS->PlaceHolder = ew_RemoveHtml($this->MOBILITAS->FldCaption());\n\n\t\t// JK\n\t\t$this->JK->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->JK->EditCustomAttributes = \"\";\n\t\t$this->JK->EditValue = $this->JK->CurrentValue;\n\t\t$this->JK->PlaceHolder = ew_RemoveHtml($this->JK->FldCaption());\n\n\t\t// UMUR\n\t\t$this->UMUR->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->UMUR->EditCustomAttributes = \"\";\n\t\t$this->UMUR->EditValue = $this->UMUR->CurrentValue;\n\t\t$this->UMUR->PlaceHolder = ew_RemoveHtml($this->UMUR->FldCaption());\n\n\t\t// NAFSU_MAKAN\n\t\t$this->NAFSU_MAKAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NAFSU_MAKAN->EditCustomAttributes = \"\";\n\t\t$this->NAFSU_MAKAN->EditValue = $this->NAFSU_MAKAN->CurrentValue;\n\t\t$this->NAFSU_MAKAN->PlaceHolder = ew_RemoveHtml($this->NAFSU_MAKAN->FldCaption());\n\n\t\t// OBAT1\n\t\t$this->OBAT1->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->OBAT1->EditCustomAttributes = \"\";\n\t\t$this->OBAT1->EditValue = $this->OBAT1->CurrentValue;\n\t\t$this->OBAT1->PlaceHolder = ew_RemoveHtml($this->OBAT1->FldCaption());\n\n\t\t// MALNUTRISI\n\t\t$this->MALNUTRISI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MALNUTRISI->EditCustomAttributes = \"\";\n\t\t$this->MALNUTRISI->EditValue = $this->MALNUTRISI->CurrentValue;\n\t\t$this->MALNUTRISI->PlaceHolder = ew_RemoveHtml($this->MALNUTRISI->FldCaption());\n\n\t\t// MOTORIK1\n\t\t$this->MOTORIK1->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MOTORIK1->EditCustomAttributes = \"\";\n\t\t$this->MOTORIK1->EditValue = $this->MOTORIK1->CurrentValue;\n\t\t$this->MOTORIK1->PlaceHolder = ew_RemoveHtml($this->MOTORIK1->FldCaption());\n\n\t\t// SPINAL\n\t\t$this->SPINAL->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->SPINAL->EditCustomAttributes = \"\";\n\t\t$this->SPINAL->EditValue = $this->SPINAL->CurrentValue;\n\t\t$this->SPINAL->PlaceHolder = ew_RemoveHtml($this->SPINAL->FldCaption());\n\n\t\t// MEJA_OPERASI\n\t\t$this->MEJA_OPERASI->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MEJA_OPERASI->EditCustomAttributes = \"\";\n\t\t$this->MEJA_OPERASI->EditValue = $this->MEJA_OPERASI->CurrentValue;\n\t\t$this->MEJA_OPERASI->PlaceHolder = ew_RemoveHtml($this->MEJA_OPERASI->FldCaption());\n\n\t\t// RIWAYAT_JATUH\n\t\t$this->RIWAYAT_JATUH->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->RIWAYAT_JATUH->EditCustomAttributes = \"\";\n\t\t$this->RIWAYAT_JATUH->EditValue = $this->RIWAYAT_JATUH->CurrentValue;\n\t\t$this->RIWAYAT_JATUH->PlaceHolder = ew_RemoveHtml($this->RIWAYAT_JATUH->FldCaption());\n\n\t\t// DIAGNOSIS_SEKUNDER\n\t\t$this->DIAGNOSIS_SEKUNDER->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->DIAGNOSIS_SEKUNDER->EditCustomAttributes = \"\";\n\t\t$this->DIAGNOSIS_SEKUNDER->EditValue = $this->DIAGNOSIS_SEKUNDER->CurrentValue;\n\t\t$this->DIAGNOSIS_SEKUNDER->PlaceHolder = ew_RemoveHtml($this->DIAGNOSIS_SEKUNDER->FldCaption());\n\n\t\t// ALAT_BANTU\n\t\t$this->ALAT_BANTU->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->ALAT_BANTU->EditCustomAttributes = \"\";\n\t\t$this->ALAT_BANTU->EditValue = $this->ALAT_BANTU->CurrentValue;\n\t\t$this->ALAT_BANTU->PlaceHolder = ew_RemoveHtml($this->ALAT_BANTU->FldCaption());\n\n\t\t// HEPARIN\n\t\t$this->HEPARIN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->HEPARIN->EditCustomAttributes = \"\";\n\t\t$this->HEPARIN->EditValue = $this->HEPARIN->CurrentValue;\n\t\t$this->HEPARIN->PlaceHolder = ew_RemoveHtml($this->HEPARIN->FldCaption());\n\n\t\t// GAYA_BERJALAN\n\t\t$this->GAYA_BERJALAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->GAYA_BERJALAN->EditCustomAttributes = \"\";\n\t\t$this->GAYA_BERJALAN->EditValue = $this->GAYA_BERJALAN->CurrentValue;\n\t\t$this->GAYA_BERJALAN->PlaceHolder = ew_RemoveHtml($this->GAYA_BERJALAN->FldCaption());\n\n\t\t// KESADARAN1\n\t\t$this->KESADARAN1->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KESADARAN1->EditCustomAttributes = \"\";\n\t\t$this->KESADARAN1->EditValue = $this->KESADARAN1->CurrentValue;\n\t\t$this->KESADARAN1->PlaceHolder = ew_RemoveHtml($this->KESADARAN1->FldCaption());\n\n\t\t// NOMR_LAMA\n\t\t$this->NOMR_LAMA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NOMR_LAMA->EditCustomAttributes = \"\";\n\t\t$this->NOMR_LAMA->EditValue = $this->NOMR_LAMA->CurrentValue;\n\t\t$this->NOMR_LAMA->PlaceHolder = ew_RemoveHtml($this->NOMR_LAMA->FldCaption());\n\n\t\t// NO_KARTU\n\t\t$this->NO_KARTU->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NO_KARTU->EditCustomAttributes = \"\";\n\t\t$this->NO_KARTU->EditValue = $this->NO_KARTU->CurrentValue;\n\t\t$this->NO_KARTU->PlaceHolder = ew_RemoveHtml($this->NO_KARTU->FldCaption());\n\n\t\t// JNS_PASIEN\n\t\t$this->JNS_PASIEN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->JNS_PASIEN->EditCustomAttributes = \"\";\n\n\t\t// nama_ayah\n\t\t$this->nama_ayah->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->nama_ayah->EditCustomAttributes = \"\";\n\t\t$this->nama_ayah->EditValue = $this->nama_ayah->CurrentValue;\n\t\t$this->nama_ayah->PlaceHolder = ew_RemoveHtml($this->nama_ayah->FldCaption());\n\n\t\t// nama_ibu\n\t\t$this->nama_ibu->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->nama_ibu->EditCustomAttributes = \"\";\n\t\t$this->nama_ibu->EditValue = $this->nama_ibu->CurrentValue;\n\t\t$this->nama_ibu->PlaceHolder = ew_RemoveHtml($this->nama_ibu->FldCaption());\n\n\t\t// nama_suami\n\t\t$this->nama_suami->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->nama_suami->EditCustomAttributes = \"\";\n\t\t$this->nama_suami->EditValue = $this->nama_suami->CurrentValue;\n\t\t$this->nama_suami->PlaceHolder = ew_RemoveHtml($this->nama_suami->FldCaption());\n\n\t\t// nama_istri\n\t\t$this->nama_istri->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->nama_istri->EditCustomAttributes = \"\";\n\t\t$this->nama_istri->EditValue = $this->nama_istri->CurrentValue;\n\t\t$this->nama_istri->PlaceHolder = ew_RemoveHtml($this->nama_istri->FldCaption());\n\n\t\t// KD_ETNIS\n\t\t$this->KD_ETNIS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KD_ETNIS->EditCustomAttributes = \"\";\n\n\t\t// KD_BHS_HARIAN\n\t\t$this->KD_BHS_HARIAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KD_BHS_HARIAN->EditCustomAttributes = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}",
"function RenderEditRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// no\n\t\t$this->no->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->no->EditCustomAttributes = \"\";\n\t\t$this->no->EditValue = $this->no->CurrentValue;\n\t\t$this->no->ViewCustomAttributes = \"\";\n\n\t\t// nama\n\t\t$this->nama->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->nama->EditCustomAttributes = \"\";\n\t\t$this->nama->EditValue = $this->nama->CurrentValue;\n\t\t$this->nama->PlaceHolder = ew_RemoveHtml($this->nama->FldCaption());\n\n\t\t// kelas\n\t\t$this->kelas->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->kelas->EditCustomAttributes = \"\";\n\t\t$this->kelas->EditValue = $this->kelas->CurrentValue;\n\t\t$this->kelas->PlaceHolder = ew_RemoveHtml($this->kelas->FldCaption());\n\n\t\t// ruang\n\t\t$this->ruang->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->ruang->EditCustomAttributes = \"\";\n\t\t$this->ruang->EditValue = $this->ruang->CurrentValue;\n\t\t$this->ruang->PlaceHolder = ew_RemoveHtml($this->ruang->FldCaption());\n\n\t\t// jumlah_tt\n\t\t$this->jumlah_tt->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->jumlah_tt->EditCustomAttributes = \"\";\n\t\t$this->jumlah_tt->EditValue = $this->jumlah_tt->CurrentValue;\n\t\t$this->jumlah_tt->PlaceHolder = ew_RemoveHtml($this->jumlah_tt->FldCaption());\n\n\t\t// ket_ruang\n\t\t$this->ket_ruang->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->ket_ruang->EditCustomAttributes = \"\";\n\t\t$this->ket_ruang->EditValue = $this->ket_ruang->CurrentValue;\n\t\t$this->ket_ruang->PlaceHolder = ew_RemoveHtml($this->ket_ruang->FldCaption());\n\n\t\t// fasilitas\n\t\t$this->fasilitas->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->fasilitas->EditCustomAttributes = \"\";\n\t\t$this->fasilitas->EditValue = $this->fasilitas->CurrentValue;\n\t\t$this->fasilitas->PlaceHolder = ew_RemoveHtml($this->fasilitas->FldCaption());\n\n\t\t// keterangan\n\t\t$this->keterangan->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->keterangan->EditCustomAttributes = \"\";\n\t\t$this->keterangan->EditValue = $this->keterangan->CurrentValue;\n\t\t$this->keterangan->PlaceHolder = ew_RemoveHtml($this->keterangan->FldCaption());\n\n\t\t// kepala_ruangan\n\t\t$this->kepala_ruangan->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->kepala_ruangan->EditCustomAttributes = \"\";\n\t\t$this->kepala_ruangan->EditValue = $this->kepala_ruangan->CurrentValue;\n\t\t$this->kepala_ruangan->PlaceHolder = ew_RemoveHtml($this->kepala_ruangan->FldCaption());\n\n\t\t// nip_kepala_ruangan\n\t\t$this->nip_kepala_ruangan->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->nip_kepala_ruangan->EditCustomAttributes = \"\";\n\t\t$this->nip_kepala_ruangan->EditValue = $this->nip_kepala_ruangan->CurrentValue;\n\t\t$this->nip_kepala_ruangan->PlaceHolder = ew_RemoveHtml($this->nip_kepala_ruangan->FldCaption());\n\n\t\t// group_id\n\t\t$this->group_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->group_id->EditCustomAttributes = \"\";\n\t\t$this->group_id->EditValue = $this->group_id->CurrentValue;\n\t\t$this->group_id->PlaceHolder = ew_RemoveHtml($this->group_id->FldCaption());\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}",
"public function renderEditRow()\n\t{\n\t\tglobal $Security, $CurrentLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// IPCNo\n\t\t$this->IPCNo->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->IPCNo->EditCustomAttributes = \"\";\n\t\t$this->IPCNo->EditValue = $this->IPCNo->CurrentValue;\n\t\t$this->IPCNo->ViewCustomAttributes = \"\";\n\n\t\t// ContractNo\n\t\t$this->ContractNo->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->ContractNo->EditCustomAttributes = \"\";\n\t\tif ($this->ContractNo->getSessionValue() != \"\") {\n\t\t\t$this->ContractNo->CurrentValue = $this->ContractNo->getSessionValue();\n\t\t\t$this->ContractNo->ViewValue = $this->ContractNo->CurrentValue;\n\t\t\t$this->ContractNo->ViewCustomAttributes = \"\";\n\t\t} else {\n\t\t\tif (!$this->ContractNo->Raw)\n\t\t\t\t$this->ContractNo->CurrentValue = HtmlDecode($this->ContractNo->CurrentValue);\n\t\t\t$this->ContractNo->EditValue = $this->ContractNo->CurrentValue;\n\t\t\t$this->ContractNo->PlaceHolder = RemoveHtml($this->ContractNo->caption());\n\t\t}\n\n\t\t// ContractAuthorizedByAG\n\t\t$this->ContractAuthorizedByAG->EditCustomAttributes = \"\";\n\t\t$this->ContractAuthorizedByAG->EditValue = $this->ContractAuthorizedByAG->options(FALSE);\n\n\t\t// VATApplied\n\t\t$this->VATApplied->EditCustomAttributes = \"\";\n\t\t$this->VATApplied->EditValue = $this->VATApplied->options(FALSE);\n\n\t\t// ArithmeticCheckDone\n\t\t$this->ArithmeticCheckDone->EditCustomAttributes = \"\";\n\t\t$this->ArithmeticCheckDone->EditValue = $this->ArithmeticCheckDone->options(FALSE);\n\n\t\t// VariationsApproved\n\t\t$this->VariationsApproved->EditCustomAttributes = \"\";\n\t\t$this->VariationsApproved->EditValue = $this->VariationsApproved->options(FALSE);\n\n\t\t// PerformanceBondValidUntil\n\t\t$this->PerformanceBondValidUntil->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PerformanceBondValidUntil->EditCustomAttributes = \"\";\n\t\t$this->PerformanceBondValidUntil->EditValue = FormatDateTime($this->PerformanceBondValidUntil->CurrentValue, 8);\n\t\t$this->PerformanceBondValidUntil->PlaceHolder = RemoveHtml($this->PerformanceBondValidUntil->caption());\n\n\t\t// AdvancePaymentBondValidUntil\n\t\t$this->AdvancePaymentBondValidUntil->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->AdvancePaymentBondValidUntil->EditCustomAttributes = \"\";\n\t\t$this->AdvancePaymentBondValidUntil->EditValue = FormatDateTime($this->AdvancePaymentBondValidUntil->CurrentValue, 8);\n\t\t$this->AdvancePaymentBondValidUntil->PlaceHolder = RemoveHtml($this->AdvancePaymentBondValidUntil->caption());\n\n\t\t// RetentionDeductionClause\n\t\t$this->RetentionDeductionClause->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->RetentionDeductionClause->EditCustomAttributes = \"\";\n\t\tif (!$this->RetentionDeductionClause->Raw)\n\t\t\t$this->RetentionDeductionClause->CurrentValue = HtmlDecode($this->RetentionDeductionClause->CurrentValue);\n\t\t$this->RetentionDeductionClause->EditValue = $this->RetentionDeductionClause->CurrentValue;\n\t\t$this->RetentionDeductionClause->PlaceHolder = RemoveHtml($this->RetentionDeductionClause->caption());\n\n\t\t// RetentionDeducted\n\t\t$this->RetentionDeducted->EditCustomAttributes = \"\";\n\t\t$this->RetentionDeducted->EditValue = $this->RetentionDeducted->options(FALSE);\n\n\t\t// LiquidatedDamagesDeducted\n\t\t$this->LiquidatedDamagesDeducted->EditCustomAttributes = \"\";\n\t\t$this->LiquidatedDamagesDeducted->EditValue = $this->LiquidatedDamagesDeducted->options(FALSE);\n\n\t\t// LiquidatedPenaltiesDeducted\n\t\t$this->LiquidatedPenaltiesDeducted->EditCustomAttributes = \"\";\n\t\t$this->LiquidatedPenaltiesDeducted->EditValue = $this->LiquidatedPenaltiesDeducted->options(FALSE);\n\n\t\t// AdvancedPaymentDeducted\n\t\t$this->AdvancedPaymentDeducted->EditCustomAttributes = \"\";\n\t\t$this->AdvancedPaymentDeducted->EditValue = $this->AdvancedPaymentDeducted->options(FALSE);\n\n\t\t// CurrentProgressReportAttached\n\t\t$this->CurrentProgressReportAttached->EditCustomAttributes = \"\";\n\t\t$this->CurrentProgressReportAttached->EditValue = $this->CurrentProgressReportAttached->options(FALSE);\n\n\t\t// CurrentProgressReport\n\t\t$this->CurrentProgressReport->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->CurrentProgressReport->EditCustomAttributes = \"\";\n\t\tif (!EmptyValue($this->CurrentProgressReport->Upload->DbValue)) {\n\t\t\t$this->CurrentProgressReport->EditValue = $this->IPCNo->CurrentValue;\n\t\t\t$this->CurrentProgressReport->IsBlobImage = IsImageFile(ContentExtension($this->CurrentProgressReport->Upload->DbValue));\n\t\t} else {\n\t\t\t$this->CurrentProgressReport->EditValue = \"\";\n\t\t}\n\n\t\t// DateOfSiteInspection\n\t\t$this->DateOfSiteInspection->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->DateOfSiteInspection->EditCustomAttributes = \"\";\n\t\t$this->DateOfSiteInspection->EditValue = FormatDateTime($this->DateOfSiteInspection->CurrentValue, 8);\n\t\t$this->DateOfSiteInspection->PlaceHolder = RemoveHtml($this->DateOfSiteInspection->caption());\n\n\t\t// TimeExtensionAuthorized\n\t\t$this->TimeExtensionAuthorized->EditCustomAttributes = \"\";\n\t\t$this->TimeExtensionAuthorized->EditValue = $this->TimeExtensionAuthorized->options(FALSE);\n\n\t\t// LabResultsChecked\n\t\t$this->LabResultsChecked->EditCustomAttributes = \"\";\n\t\t$this->LabResultsChecked->EditValue = $this->LabResultsChecked->options(FALSE);\n\n\t\t// LabResults\n\t\t$this->LabResults->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->LabResults->EditCustomAttributes = \"\";\n\t\tif (!EmptyValue($this->LabResults->Upload->DbValue)) {\n\t\t\t$this->LabResults->EditValue = $this->IPCNo->CurrentValue;\n\t\t\t$this->LabResults->IsBlobImage = IsImageFile(ContentExtension($this->LabResults->Upload->DbValue));\n\t\t} else {\n\t\t\t$this->LabResults->EditValue = \"\";\n\t\t}\n\n\t\t// TerminationNoticeGiven\n\t\t$this->TerminationNoticeGiven->EditCustomAttributes = \"\";\n\t\t$this->TerminationNoticeGiven->EditValue = $this->TerminationNoticeGiven->options(FALSE);\n\n\t\t// CopiesEmailedToMLG\n\t\t$this->CopiesEmailedToMLG->EditCustomAttributes = \"\";\n\t\t$this->CopiesEmailedToMLG->EditValue = $this->CopiesEmailedToMLG->options(FALSE);\n\n\t\t// ContractStillValid\n\t\t$this->ContractStillValid->EditCustomAttributes = \"\";\n\t\t$this->ContractStillValid->EditValue = $this->ContractStillValid->options(FALSE);\n\n\t\t// DeskOfficer\n\t\t$this->DeskOfficer->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->DeskOfficer->EditCustomAttributes = \"\";\n\t\tif (!$this->DeskOfficer->Raw)\n\t\t\t$this->DeskOfficer->CurrentValue = HtmlDecode($this->DeskOfficer->CurrentValue);\n\t\t$this->DeskOfficer->EditValue = $this->DeskOfficer->CurrentValue;\n\t\t$this->DeskOfficer->PlaceHolder = RemoveHtml($this->DeskOfficer->caption());\n\n\t\t// DeskOfficerDate\n\t\t$this->DeskOfficerDate->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->DeskOfficerDate->EditCustomAttributes = \"\";\n\t\t$this->DeskOfficerDate->EditValue = FormatDateTime($this->DeskOfficerDate->CurrentValue, 8);\n\t\t$this->DeskOfficerDate->PlaceHolder = RemoveHtml($this->DeskOfficerDate->caption());\n\n\t\t// SupervisingEngineer\n\t\t$this->SupervisingEngineer->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->SupervisingEngineer->EditCustomAttributes = \"\";\n\t\tif (!$this->SupervisingEngineer->Raw)\n\t\t\t$this->SupervisingEngineer->CurrentValue = HtmlDecode($this->SupervisingEngineer->CurrentValue);\n\t\t$this->SupervisingEngineer->EditValue = $this->SupervisingEngineer->CurrentValue;\n\t\t$this->SupervisingEngineer->PlaceHolder = RemoveHtml($this->SupervisingEngineer->caption());\n\n\t\t// EngineerDate\n\t\t$this->EngineerDate->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->EngineerDate->EditCustomAttributes = \"\";\n\t\t$this->EngineerDate->EditValue = FormatDateTime($this->EngineerDate->CurrentValue, 8);\n\t\t$this->EngineerDate->PlaceHolder = RemoveHtml($this->EngineerDate->caption());\n\n\t\t// CouncilSecretary\n\t\t$this->CouncilSecretary->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->CouncilSecretary->EditCustomAttributes = \"\";\n\t\tif (!$this->CouncilSecretary->Raw)\n\t\t\t$this->CouncilSecretary->CurrentValue = HtmlDecode($this->CouncilSecretary->CurrentValue);\n\t\t$this->CouncilSecretary->EditValue = $this->CouncilSecretary->CurrentValue;\n\t\t$this->CouncilSecretary->PlaceHolder = RemoveHtml($this->CouncilSecretary->caption());\n\n\t\t// CSDate\n\t\t$this->CSDate->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->CSDate->EditCustomAttributes = \"\";\n\t\t$this->CSDate->EditValue = FormatDateTime($this->CSDate->CurrentValue, 8);\n\t\t$this->CSDate->PlaceHolder = RemoveHtml($this->CSDate->caption());\n\n\t\t// MLGComments\n\t\t$this->MLGComments->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MLGComments->EditCustomAttributes = \"\";\n\t\t$this->MLGComments->EditValue = $this->MLGComments->CurrentValue;\n\t\t$this->MLGComments->PlaceHolder = RemoveHtml($this->MLGComments->caption());\n\n\t\t// ContractType\n\t\t$this->ContractType->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->ContractType->EditCustomAttributes = \"\";\n\t\t$this->ContractType->EditValue = $this->ContractType->CurrentValue;\n\t\t$this->ContractType->PlaceHolder = RemoveHtml($this->ContractType->caption());\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}",
"public function renderEditRow()\n {\n global $Security, $CurrentLanguage, $Language;\n\n // Call Row Rendering event\n $this->rowRendering();\n\n // nik\n $this->nik->EditAttrs[\"class\"] = \"form-control\";\n $this->nik->EditCustomAttributes = \"\";\n if (!$this->nik->Raw) {\n $this->nik->CurrentValue = HtmlDecode($this->nik->CurrentValue);\n }\n $this->nik->EditValue = $this->nik->CurrentValue;\n $this->nik->PlaceHolder = RemoveHtml($this->nik->caption());\n\n // nama_usaha\n $this->nama_usaha->EditAttrs[\"class\"] = \"form-control\";\n $this->nama_usaha->EditCustomAttributes = \"\";\n $this->nama_usaha->EditValue = $this->nama_usaha->CurrentValue;\n $this->nama_usaha->PlaceHolder = RemoveHtml($this->nama_usaha->caption());\n\n // prf_addbis\n $this->prf_addbis->EditAttrs[\"class\"] = \"form-control\";\n $this->prf_addbis->EditCustomAttributes = \"\";\n $this->prf_addbis->EditValue = $this->prf_addbis->CurrentValue;\n $this->prf_addbis->PlaceHolder = RemoveHtml($this->prf_addbis->caption());\n\n // prf_addbi1\n $this->prf_addbi1->EditAttrs[\"class\"] = \"form-control\";\n $this->prf_addbi1->EditCustomAttributes = \"\";\n $this->prf_addbi1->EditValue = $this->prf_addbi1->CurrentValue;\n $this->prf_addbi1->PlaceHolder = RemoveHtml($this->prf_addbi1->caption());\n\n // kabupaten\n $this->kabupaten->EditAttrs[\"class\"] = \"form-control\";\n $this->kabupaten->EditCustomAttributes = \"\";\n $this->kabupaten->EditValue = $this->kabupaten->CurrentValue;\n $this->kabupaten->PlaceHolder = RemoveHtml($this->kabupaten->caption());\n\n // klasifikas\n $this->klasifikas->EditAttrs[\"class\"] = \"form-control\";\n $this->klasifikas->EditCustomAttributes = \"\";\n if (!$this->klasifikas->Raw) {\n $this->klasifikas->CurrentValue = HtmlDecode($this->klasifikas->CurrentValue);\n }\n $this->klasifikas->EditValue = $this->klasifikas->CurrentValue;\n $this->klasifikas->PlaceHolder = RemoveHtml($this->klasifikas->caption());\n\n // sektor_per\n $this->sektor_per->EditAttrs[\"class\"] = \"form-control\";\n $this->sektor_per->EditCustomAttributes = \"\";\n $this->sektor_per->EditValue = $this->sektor_per->CurrentValue;\n $this->sektor_per->PlaceHolder = RemoveHtml($this->sektor_per->caption());\n\n // sektor_kbl\n $this->sektor_kbl->EditAttrs[\"class\"] = \"form-control\";\n $this->sektor_kbl->EditCustomAttributes = \"\";\n $this->sektor_kbl->EditValue = $this->sektor_kbl->CurrentValue;\n $this->sektor_kbl->PlaceHolder = RemoveHtml($this->sektor_kbl->caption());\n\n // sektor_ekr\n $this->sektor_ekr->EditAttrs[\"class\"] = \"form-control\";\n $this->sektor_ekr->EditCustomAttributes = \"\";\n $this->sektor_ekr->EditValue = $this->sektor_ekr->CurrentValue;\n $this->sektor_ekr->PlaceHolder = RemoveHtml($this->sektor_ekr->caption());\n\n // nama_lengk\n $this->nama_lengk->EditAttrs[\"class\"] = \"form-control\";\n $this->nama_lengk->EditCustomAttributes = \"\";\n $this->nama_lengk->EditValue = $this->nama_lengk->CurrentValue;\n $this->nama_lengk->PlaceHolder = RemoveHtml($this->nama_lengk->caption());\n\n // jenis_kela\n $this->jenis_kela->EditAttrs[\"class\"] = \"form-control\";\n $this->jenis_kela->EditCustomAttributes = \"\";\n if (!$this->jenis_kela->Raw) {\n $this->jenis_kela->CurrentValue = HtmlDecode($this->jenis_kela->CurrentValue);\n }\n $this->jenis_kela->EditValue = $this->jenis_kela->CurrentValue;\n $this->jenis_kela->PlaceHolder = RemoveHtml($this->jenis_kela->caption());\n\n // no_hp\n $this->no_hp->EditAttrs[\"class\"] = \"form-control\";\n $this->no_hp->EditCustomAttributes = \"\";\n if (!$this->no_hp->Raw) {\n $this->no_hp->CurrentValue = HtmlDecode($this->no_hp->CurrentValue);\n }\n $this->no_hp->EditValue = $this->no_hp->CurrentValue;\n $this->no_hp->PlaceHolder = RemoveHtml($this->no_hp->caption());\n\n // pendidikan\n $this->pendidikan->EditAttrs[\"class\"] = \"form-control\";\n $this->pendidikan->EditCustomAttributes = \"\";\n if (!$this->pendidikan->Raw) {\n $this->pendidikan->CurrentValue = HtmlDecode($this->pendidikan->CurrentValue);\n }\n $this->pendidikan->EditValue = $this->pendidikan->CurrentValue;\n $this->pendidikan->PlaceHolder = RemoveHtml($this->pendidikan->caption());\n\n // disabilita\n $this->disabilita->EditAttrs[\"class\"] = \"form-control\";\n $this->disabilita->EditCustomAttributes = \"\";\n if (!$this->disabilita->Raw) {\n $this->disabilita->CurrentValue = HtmlDecode($this->disabilita->CurrentValue);\n }\n $this->disabilita->EditValue = $this->disabilita->CurrentValue;\n $this->disabilita->PlaceHolder = RemoveHtml($this->disabilita->caption());\n\n // tglmulai\n $this->tglmulai->EditAttrs[\"class\"] = \"form-control\";\n $this->tglmulai->EditCustomAttributes = \"\";\n $this->tglmulai->EditValue = FormatDateTime($this->tglmulai->CurrentValue, 8);\n $this->tglmulai->PlaceHolder = RemoveHtml($this->tglmulai->caption());\n\n // umurusaha\n $this->umurusaha->EditAttrs[\"class\"] = \"form-control\";\n $this->umurusaha->EditCustomAttributes = \"\";\n $this->umurusaha->EditValue = $this->umurusaha->CurrentValue;\n $this->umurusaha->PlaceHolder = RemoveHtml($this->umurusaha->caption());\n\n // addbisnis\n $this->addbisnis->EditAttrs[\"class\"] = \"form-control\";\n $this->addbisnis->EditCustomAttributes = \"\";\n $this->addbisnis->EditValue = $this->addbisnis->CurrentValue;\n $this->addbisnis->PlaceHolder = RemoveHtml($this->addbisnis->caption());\n\n // nilai_aset\n $this->nilai_aset->EditAttrs[\"class\"] = \"form-control\";\n $this->nilai_aset->EditCustomAttributes = \"\";\n $this->nilai_aset->EditValue = $this->nilai_aset->CurrentValue;\n $this->nilai_aset->PlaceHolder = RemoveHtml($this->nilai_aset->caption());\n\n // omsetbulan\n $this->omsetbulan->EditAttrs[\"class\"] = \"form-control\";\n $this->omsetbulan->EditCustomAttributes = \"\";\n $this->omsetbulan->EditValue = $this->omsetbulan->CurrentValue;\n $this->omsetbulan->PlaceHolder = RemoveHtml($this->omsetbulan->caption());\n\n // kegiatan_u\n $this->kegiatan_u->EditAttrs[\"class\"] = \"form-control\";\n $this->kegiatan_u->EditCustomAttributes = \"\";\n $this->kegiatan_u->EditValue = $this->kegiatan_u->CurrentValue;\n $this->kegiatan_u->PlaceHolder = RemoveHtml($this->kegiatan_u->caption());\n\n // uraian_keg\n $this->uraian_keg->EditAttrs[\"class\"] = \"form-control\";\n $this->uraian_keg->EditCustomAttributes = \"\";\n $this->uraian_keg->EditValue = $this->uraian_keg->CurrentValue;\n $this->uraian_keg->PlaceHolder = RemoveHtml($this->uraian_keg->caption());\n\n // emailusaha\n $this->emailusaha->EditAttrs[\"class\"] = \"form-control\";\n $this->emailusaha->EditCustomAttributes = \"\";\n if (!$this->emailusaha->Raw) {\n $this->emailusaha->CurrentValue = HtmlDecode($this->emailusaha->CurrentValue);\n }\n $this->emailusaha->EditValue = $this->emailusaha->CurrentValue;\n $this->emailusaha->PlaceHolder = RemoveHtml($this->emailusaha->caption());\n\n // akun_ig\n $this->akun_ig->EditAttrs[\"class\"] = \"form-control\";\n $this->akun_ig->EditCustomAttributes = \"\";\n if (!$this->akun_ig->Raw) {\n $this->akun_ig->CurrentValue = HtmlDecode($this->akun_ig->CurrentValue);\n }\n $this->akun_ig->EditValue = $this->akun_ig->CurrentValue;\n $this->akun_ig->PlaceHolder = RemoveHtml($this->akun_ig->caption());\n\n // akun_faceb\n $this->akun_faceb->EditAttrs[\"class\"] = \"form-control\";\n $this->akun_faceb->EditCustomAttributes = \"\";\n if (!$this->akun_faceb->Raw) {\n $this->akun_faceb->CurrentValue = HtmlDecode($this->akun_faceb->CurrentValue);\n }\n $this->akun_faceb->EditValue = $this->akun_faceb->CurrentValue;\n $this->akun_faceb->PlaceHolder = RemoveHtml($this->akun_faceb->caption());\n\n // akun_gmb\n $this->akun_gmb->EditAttrs[\"class\"] = \"form-control\";\n $this->akun_gmb->EditCustomAttributes = \"\";\n if (!$this->akun_gmb->Raw) {\n $this->akun_gmb->CurrentValue = HtmlDecode($this->akun_gmb->CurrentValue);\n }\n $this->akun_gmb->EditValue = $this->akun_gmb->CurrentValue;\n $this->akun_gmb->PlaceHolder = RemoveHtml($this->akun_gmb->caption());\n\n // url_websit\n $this->url_websit->EditAttrs[\"class\"] = \"form-control\";\n $this->url_websit->EditCustomAttributes = \"\";\n if (!$this->url_websit->Raw) {\n $this->url_websit->CurrentValue = HtmlDecode($this->url_websit->CurrentValue);\n }\n $this->url_websit->EditValue = $this->url_websit->CurrentValue;\n $this->url_websit->PlaceHolder = RemoveHtml($this->url_websit->caption());\n\n // url_market\n $this->url_market->EditAttrs[\"class\"] = \"form-control\";\n $this->url_market->EditCustomAttributes = \"\";\n $this->url_market->EditValue = $this->url_market->CurrentValue;\n $this->url_market->PlaceHolder = RemoveHtml($this->url_market->caption());\n\n // kelas\n $this->kelas->EditAttrs[\"class\"] = \"form-control\";\n $this->kelas->EditCustomAttributes = \"\";\n if (!$this->kelas->Raw) {\n $this->kelas->CurrentValue = HtmlDecode($this->kelas->CurrentValue);\n }\n $this->kelas->EditValue = $this->kelas->CurrentValue;\n $this->kelas->PlaceHolder = RemoveHtml($this->kelas->caption());\n\n // Call Row Rendered event\n $this->rowRendered();\n }",
"function RenderEditRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// tanggal\n\t\t$this->tanggal->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->tanggal->EditCustomAttributes = \"\";\n\t\t$this->tanggal->EditValue = ew_FormatDateTime($this->tanggal->CurrentValue, 8);\n\t\t$this->tanggal->PlaceHolder = ew_RemoveHtml($this->tanggal->FldCaption());\n\n\t\t// periode\n\t\t$this->periode->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->periode->EditCustomAttributes = \"\";\n\t\t$this->periode->EditValue = $this->periode->CurrentValue;\n\t\t$this->periode->PlaceHolder = ew_RemoveHtml($this->periode->FldCaption());\n\n\t\t// id\n\t\t$this->id->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->id->EditCustomAttributes = \"\";\n\t\t$this->id->EditValue = $this->id->CurrentValue;\n\t\t$this->id->PlaceHolder = ew_RemoveHtml($this->id->FldCaption());\n\n\t\t// nomor\n\t\t$this->nomor->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->nomor->EditCustomAttributes = \"\";\n\t\t$this->nomor->EditValue = $this->nomor->CurrentValue;\n\t\t$this->nomor->ViewCustomAttributes = \"\";\n\n\t\t// transaksi\n\t\t$this->transaksi->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->transaksi->EditCustomAttributes = \"\";\n\t\t$this->transaksi->EditValue = $this->transaksi->CurrentValue;\n\t\t$this->transaksi->PlaceHolder = ew_RemoveHtml($this->transaksi->FldCaption());\n\n\t\t// referensi\n\t\t$this->referensi->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->referensi->EditCustomAttributes = \"\";\n\t\t$this->referensi->EditValue = $this->referensi->CurrentValue;\n\t\t$this->referensi->PlaceHolder = ew_RemoveHtml($this->referensi->FldCaption());\n\n\t\t// group\n\t\t$this->group->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->group->EditCustomAttributes = \"\";\n\t\t$this->group->EditValue = $this->group->CurrentValue;\n\t\t$this->group->PlaceHolder = ew_RemoveHtml($this->group->FldCaption());\n\n\t\t// rekening\n\t\t$this->rekening->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->rekening->EditCustomAttributes = \"\";\n\t\t$this->rekening->EditValue = $this->rekening->CurrentValue;\n\t\t$this->rekening->PlaceHolder = ew_RemoveHtml($this->rekening->FldCaption());\n\n\t\t// tipe\n\t\t$this->tipe->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->tipe->EditCustomAttributes = \"\";\n\t\t$this->tipe->EditValue = $this->tipe->CurrentValue;\n\t\t$this->tipe->PlaceHolder = ew_RemoveHtml($this->tipe->FldCaption());\n\n\t\t// posisi\n\t\t$this->posisi->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->posisi->EditCustomAttributes = \"\";\n\t\t$this->posisi->EditValue = $this->posisi->CurrentValue;\n\t\t$this->posisi->PlaceHolder = ew_RemoveHtml($this->posisi->FldCaption());\n\n\t\t// laporan\n\t\t$this->laporan->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->laporan->EditCustomAttributes = \"\";\n\t\t$this->laporan->EditValue = $this->laporan->CurrentValue;\n\t\t$this->laporan->PlaceHolder = ew_RemoveHtml($this->laporan->FldCaption());\n\n\t\t// keterangan\n\t\t$this->keterangan->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->keterangan->EditCustomAttributes = \"\";\n\t\t$this->keterangan->EditValue = $this->keterangan->CurrentValue;\n\t\t$this->keterangan->PlaceHolder = ew_RemoveHtml($this->keterangan->FldCaption());\n\n\t\t// debet1\n\t\t$this->debet1->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->debet1->EditCustomAttributes = \"\";\n\t\t$this->debet1->EditValue = $this->debet1->CurrentValue;\n\t\t$this->debet1->PlaceHolder = ew_RemoveHtml($this->debet1->FldCaption());\n\t\tif (strval($this->debet1->EditValue) <> \"\" && is_numeric($this->debet1->EditValue)) $this->debet1->EditValue = ew_FormatNumber($this->debet1->EditValue, -2, -1, -2, 0);\n\n\t\t// credit1\n\t\t$this->credit1->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->credit1->EditCustomAttributes = \"\";\n\t\t$this->credit1->EditValue = $this->credit1->CurrentValue;\n\t\t$this->credit1->PlaceHolder = ew_RemoveHtml($this->credit1->FldCaption());\n\t\tif (strval($this->credit1->EditValue) <> \"\" && is_numeric($this->credit1->EditValue)) $this->credit1->EditValue = ew_FormatNumber($this->credit1->EditValue, -2, -1, -2, 0);\n\n\t\t// saldo1\n\t\t$this->saldo1->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->saldo1->EditCustomAttributes = \"\";\n\t\t$this->saldo1->EditValue = $this->saldo1->CurrentValue;\n\t\t$this->saldo1->PlaceHolder = ew_RemoveHtml($this->saldo1->FldCaption());\n\t\tif (strval($this->saldo1->EditValue) <> \"\" && is_numeric($this->saldo1->EditValue)) $this->saldo1->EditValue = ew_FormatNumber($this->saldo1->EditValue, -2, -1, -2, 0);\n\n\t\t// debet2\n\t\t$this->debet2->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->debet2->EditCustomAttributes = \"\";\n\t\t$this->debet2->EditValue = $this->debet2->CurrentValue;\n\t\t$this->debet2->PlaceHolder = ew_RemoveHtml($this->debet2->FldCaption());\n\t\tif (strval($this->debet2->EditValue) <> \"\" && is_numeric($this->debet2->EditValue)) $this->debet2->EditValue = ew_FormatNumber($this->debet2->EditValue, -2, -1, -2, 0);\n\n\t\t// credit2\n\t\t$this->credit2->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->credit2->EditCustomAttributes = \"\";\n\t\t$this->credit2->EditValue = $this->credit2->CurrentValue;\n\t\t$this->credit2->PlaceHolder = ew_RemoveHtml($this->credit2->FldCaption());\n\t\tif (strval($this->credit2->EditValue) <> \"\" && is_numeric($this->credit2->EditValue)) $this->credit2->EditValue = ew_FormatNumber($this->credit2->EditValue, -2, -1, -2, 0);\n\n\t\t// saldo2\n\t\t$this->saldo2->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->saldo2->EditCustomAttributes = \"\";\n\t\t$this->saldo2->EditValue = $this->saldo2->CurrentValue;\n\t\t$this->saldo2->PlaceHolder = ew_RemoveHtml($this->saldo2->FldCaption());\n\t\tif (strval($this->saldo2->EditValue) <> \"\" && is_numeric($this->saldo2->EditValue)) $this->saldo2->EditValue = ew_FormatNumber($this->saldo2->EditValue, -2, -1, -2, 0);\n\n\t\t// debet3\n\t\t$this->debet3->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->debet3->EditCustomAttributes = \"\";\n\t\t$this->debet3->EditValue = $this->debet3->CurrentValue;\n\t\t$this->debet3->PlaceHolder = ew_RemoveHtml($this->debet3->FldCaption());\n\t\tif (strval($this->debet3->EditValue) <> \"\" && is_numeric($this->debet3->EditValue)) $this->debet3->EditValue = ew_FormatNumber($this->debet3->EditValue, -2, -1, -2, 0);\n\n\t\t// credit3\n\t\t$this->credit3->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->credit3->EditCustomAttributes = \"\";\n\t\t$this->credit3->EditValue = $this->credit3->CurrentValue;\n\t\t$this->credit3->PlaceHolder = ew_RemoveHtml($this->credit3->FldCaption());\n\t\tif (strval($this->credit3->EditValue) <> \"\" && is_numeric($this->credit3->EditValue)) $this->credit3->EditValue = ew_FormatNumber($this->credit3->EditValue, -2, -1, -2, 0);\n\n\t\t// saldo3\n\t\t$this->saldo3->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->saldo3->EditCustomAttributes = \"\";\n\t\t$this->saldo3->EditValue = $this->saldo3->CurrentValue;\n\t\t$this->saldo3->PlaceHolder = ew_RemoveHtml($this->saldo3->FldCaption());\n\t\tif (strval($this->saldo3->EditValue) <> \"\" && is_numeric($this->saldo3->EditValue)) $this->saldo3->EditValue = ew_FormatNumber($this->saldo3->EditValue, -2, -1, -2, 0);\n\n\t\t// debet4\n\t\t$this->debet4->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->debet4->EditCustomAttributes = \"\";\n\t\t$this->debet4->EditValue = $this->debet4->CurrentValue;\n\t\t$this->debet4->PlaceHolder = ew_RemoveHtml($this->debet4->FldCaption());\n\t\tif (strval($this->debet4->EditValue) <> \"\" && is_numeric($this->debet4->EditValue)) $this->debet4->EditValue = ew_FormatNumber($this->debet4->EditValue, -2, -1, -2, 0);\n\n\t\t// credit4\n\t\t$this->credit4->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->credit4->EditCustomAttributes = \"\";\n\t\t$this->credit4->EditValue = $this->credit4->CurrentValue;\n\t\t$this->credit4->PlaceHolder = ew_RemoveHtml($this->credit4->FldCaption());\n\t\tif (strval($this->credit4->EditValue) <> \"\" && is_numeric($this->credit4->EditValue)) $this->credit4->EditValue = ew_FormatNumber($this->credit4->EditValue, -2, -1, -2, 0);\n\n\t\t// saldo4\n\t\t$this->saldo4->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->saldo4->EditCustomAttributes = \"\";\n\t\t$this->saldo4->EditValue = $this->saldo4->CurrentValue;\n\t\t$this->saldo4->PlaceHolder = ew_RemoveHtml($this->saldo4->FldCaption());\n\t\tif (strval($this->saldo4->EditValue) <> \"\" && is_numeric($this->saldo4->EditValue)) $this->saldo4->EditValue = ew_FormatNumber($this->saldo4->EditValue, -2, -1, -2, 0);\n\n\t\t// debet5\n\t\t$this->debet5->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->debet5->EditCustomAttributes = \"\";\n\t\t$this->debet5->EditValue = $this->debet5->CurrentValue;\n\t\t$this->debet5->PlaceHolder = ew_RemoveHtml($this->debet5->FldCaption());\n\t\tif (strval($this->debet5->EditValue) <> \"\" && is_numeric($this->debet5->EditValue)) $this->debet5->EditValue = ew_FormatNumber($this->debet5->EditValue, -2, -1, -2, 0);\n\n\t\t// credit5\n\t\t$this->credit5->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->credit5->EditCustomAttributes = \"\";\n\t\t$this->credit5->EditValue = $this->credit5->CurrentValue;\n\t\t$this->credit5->PlaceHolder = ew_RemoveHtml($this->credit5->FldCaption());\n\t\tif (strval($this->credit5->EditValue) <> \"\" && is_numeric($this->credit5->EditValue)) $this->credit5->EditValue = ew_FormatNumber($this->credit5->EditValue, -2, -1, -2, 0);\n\n\t\t// saldo5\n\t\t$this->saldo5->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->saldo5->EditCustomAttributes = \"\";\n\t\t$this->saldo5->EditValue = $this->saldo5->CurrentValue;\n\t\t$this->saldo5->PlaceHolder = ew_RemoveHtml($this->saldo5->FldCaption());\n\t\tif (strval($this->saldo5->EditValue) <> \"\" && is_numeric($this->saldo5->EditValue)) $this->saldo5->EditValue = ew_FormatNumber($this->saldo5->EditValue, -2, -1, -2, 0);\n\n\t\t// debet6\n\t\t$this->debet6->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->debet6->EditCustomAttributes = \"\";\n\t\t$this->debet6->EditValue = $this->debet6->CurrentValue;\n\t\t$this->debet6->PlaceHolder = ew_RemoveHtml($this->debet6->FldCaption());\n\t\tif (strval($this->debet6->EditValue) <> \"\" && is_numeric($this->debet6->EditValue)) $this->debet6->EditValue = ew_FormatNumber($this->debet6->EditValue, -2, -1, -2, 0);\n\n\t\t// credit6\n\t\t$this->credit6->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->credit6->EditCustomAttributes = \"\";\n\t\t$this->credit6->EditValue = $this->credit6->CurrentValue;\n\t\t$this->credit6->PlaceHolder = ew_RemoveHtml($this->credit6->FldCaption());\n\t\tif (strval($this->credit6->EditValue) <> \"\" && is_numeric($this->credit6->EditValue)) $this->credit6->EditValue = ew_FormatNumber($this->credit6->EditValue, -2, -1, -2, 0);\n\n\t\t// saldo6\n\t\t$this->saldo6->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->saldo6->EditCustomAttributes = \"\";\n\t\t$this->saldo6->EditValue = $this->saldo6->CurrentValue;\n\t\t$this->saldo6->PlaceHolder = ew_RemoveHtml($this->saldo6->FldCaption());\n\t\tif (strval($this->saldo6->EditValue) <> \"\" && is_numeric($this->saldo6->EditValue)) $this->saldo6->EditValue = ew_FormatNumber($this->saldo6->EditValue, -2, -1, -2, 0);\n\n\t\t// debet7\n\t\t$this->debet7->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->debet7->EditCustomAttributes = \"\";\n\t\t$this->debet7->EditValue = $this->debet7->CurrentValue;\n\t\t$this->debet7->PlaceHolder = ew_RemoveHtml($this->debet7->FldCaption());\n\t\tif (strval($this->debet7->EditValue) <> \"\" && is_numeric($this->debet7->EditValue)) $this->debet7->EditValue = ew_FormatNumber($this->debet7->EditValue, -2, -1, -2, 0);\n\n\t\t// credit7\n\t\t$this->credit7->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->credit7->EditCustomAttributes = \"\";\n\t\t$this->credit7->EditValue = $this->credit7->CurrentValue;\n\t\t$this->credit7->PlaceHolder = ew_RemoveHtml($this->credit7->FldCaption());\n\t\tif (strval($this->credit7->EditValue) <> \"\" && is_numeric($this->credit7->EditValue)) $this->credit7->EditValue = ew_FormatNumber($this->credit7->EditValue, -2, -1, -2, 0);\n\n\t\t// saldo7\n\t\t$this->saldo7->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->saldo7->EditCustomAttributes = \"\";\n\t\t$this->saldo7->EditValue = $this->saldo7->CurrentValue;\n\t\t$this->saldo7->PlaceHolder = ew_RemoveHtml($this->saldo7->FldCaption());\n\t\tif (strval($this->saldo7->EditValue) <> \"\" && is_numeric($this->saldo7->EditValue)) $this->saldo7->EditValue = ew_FormatNumber($this->saldo7->EditValue, -2, -1, -2, 0);\n\n\t\t// debet8\n\t\t$this->debet8->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->debet8->EditCustomAttributes = \"\";\n\t\t$this->debet8->EditValue = $this->debet8->CurrentValue;\n\t\t$this->debet8->PlaceHolder = ew_RemoveHtml($this->debet8->FldCaption());\n\t\tif (strval($this->debet8->EditValue) <> \"\" && is_numeric($this->debet8->EditValue)) $this->debet8->EditValue = ew_FormatNumber($this->debet8->EditValue, -2, -1, -2, 0);\n\n\t\t// credit8\n\t\t$this->credit8->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->credit8->EditCustomAttributes = \"\";\n\t\t$this->credit8->EditValue = $this->credit8->CurrentValue;\n\t\t$this->credit8->PlaceHolder = ew_RemoveHtml($this->credit8->FldCaption());\n\t\tif (strval($this->credit8->EditValue) <> \"\" && is_numeric($this->credit8->EditValue)) $this->credit8->EditValue = ew_FormatNumber($this->credit8->EditValue, -2, -1, -2, 0);\n\n\t\t// saldo8\n\t\t$this->saldo8->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->saldo8->EditCustomAttributes = \"\";\n\t\t$this->saldo8->EditValue = $this->saldo8->CurrentValue;\n\t\t$this->saldo8->PlaceHolder = ew_RemoveHtml($this->saldo8->FldCaption());\n\t\tif (strval($this->saldo8->EditValue) <> \"\" && is_numeric($this->saldo8->EditValue)) $this->saldo8->EditValue = ew_FormatNumber($this->saldo8->EditValue, -2, -1, -2, 0);\n\n\t\t// debet9\n\t\t$this->debet9->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->debet9->EditCustomAttributes = \"\";\n\t\t$this->debet9->EditValue = $this->debet9->CurrentValue;\n\t\t$this->debet9->PlaceHolder = ew_RemoveHtml($this->debet9->FldCaption());\n\t\tif (strval($this->debet9->EditValue) <> \"\" && is_numeric($this->debet9->EditValue)) $this->debet9->EditValue = ew_FormatNumber($this->debet9->EditValue, -2, -1, -2, 0);\n\n\t\t// credit9\n\t\t$this->credit9->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->credit9->EditCustomAttributes = \"\";\n\t\t$this->credit9->EditValue = $this->credit9->CurrentValue;\n\t\t$this->credit9->PlaceHolder = ew_RemoveHtml($this->credit9->FldCaption());\n\t\tif (strval($this->credit9->EditValue) <> \"\" && is_numeric($this->credit9->EditValue)) $this->credit9->EditValue = ew_FormatNumber($this->credit9->EditValue, -2, -1, -2, 0);\n\n\t\t// saldo9\n\t\t$this->saldo9->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->saldo9->EditCustomAttributes = \"\";\n\t\t$this->saldo9->EditValue = $this->saldo9->CurrentValue;\n\t\t$this->saldo9->PlaceHolder = ew_RemoveHtml($this->saldo9->FldCaption());\n\t\tif (strval($this->saldo9->EditValue) <> \"\" && is_numeric($this->saldo9->EditValue)) $this->saldo9->EditValue = ew_FormatNumber($this->saldo9->EditValue, -2, -1, -2, 0);\n\n\t\t// debet10\n\t\t$this->debet10->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->debet10->EditCustomAttributes = \"\";\n\t\t$this->debet10->EditValue = $this->debet10->CurrentValue;\n\t\t$this->debet10->PlaceHolder = ew_RemoveHtml($this->debet10->FldCaption());\n\t\tif (strval($this->debet10->EditValue) <> \"\" && is_numeric($this->debet10->EditValue)) $this->debet10->EditValue = ew_FormatNumber($this->debet10->EditValue, -2, -1, -2, 0);\n\n\t\t// credit10\n\t\t$this->credit10->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->credit10->EditCustomAttributes = \"\";\n\t\t$this->credit10->EditValue = $this->credit10->CurrentValue;\n\t\t$this->credit10->PlaceHolder = ew_RemoveHtml($this->credit10->FldCaption());\n\t\tif (strval($this->credit10->EditValue) <> \"\" && is_numeric($this->credit10->EditValue)) $this->credit10->EditValue = ew_FormatNumber($this->credit10->EditValue, -2, -1, -2, 0);\n\n\t\t// saldo10\n\t\t$this->saldo10->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->saldo10->EditCustomAttributes = \"\";\n\t\t$this->saldo10->EditValue = $this->saldo10->CurrentValue;\n\t\t$this->saldo10->PlaceHolder = ew_RemoveHtml($this->saldo10->FldCaption());\n\t\tif (strval($this->saldo10->EditValue) <> \"\" && is_numeric($this->saldo10->EditValue)) $this->saldo10->EditValue = ew_FormatNumber($this->saldo10->EditValue, -2, -1, -2, 0);\n\n\t\t// debet11\n\t\t$this->debet11->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->debet11->EditCustomAttributes = \"\";\n\t\t$this->debet11->EditValue = $this->debet11->CurrentValue;\n\t\t$this->debet11->PlaceHolder = ew_RemoveHtml($this->debet11->FldCaption());\n\t\tif (strval($this->debet11->EditValue) <> \"\" && is_numeric($this->debet11->EditValue)) $this->debet11->EditValue = ew_FormatNumber($this->debet11->EditValue, -2, -1, -2, 0);\n\n\t\t// credit11\n\t\t$this->credit11->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->credit11->EditCustomAttributes = \"\";\n\t\t$this->credit11->EditValue = $this->credit11->CurrentValue;\n\t\t$this->credit11->PlaceHolder = ew_RemoveHtml($this->credit11->FldCaption());\n\t\tif (strval($this->credit11->EditValue) <> \"\" && is_numeric($this->credit11->EditValue)) $this->credit11->EditValue = ew_FormatNumber($this->credit11->EditValue, -2, -1, -2, 0);\n\n\t\t// saldo11\n\t\t$this->saldo11->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->saldo11->EditCustomAttributes = \"\";\n\t\t$this->saldo11->EditValue = $this->saldo11->CurrentValue;\n\t\t$this->saldo11->PlaceHolder = ew_RemoveHtml($this->saldo11->FldCaption());\n\t\tif (strval($this->saldo11->EditValue) <> \"\" && is_numeric($this->saldo11->EditValue)) $this->saldo11->EditValue = ew_FormatNumber($this->saldo11->EditValue, -2, -1, -2, 0);\n\n\t\t// debet12\n\t\t$this->debet12->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->debet12->EditCustomAttributes = \"\";\n\t\t$this->debet12->EditValue = $this->debet12->CurrentValue;\n\t\t$this->debet12->PlaceHolder = ew_RemoveHtml($this->debet12->FldCaption());\n\t\tif (strval($this->debet12->EditValue) <> \"\" && is_numeric($this->debet12->EditValue)) $this->debet12->EditValue = ew_FormatNumber($this->debet12->EditValue, -2, -1, -2, 0);\n\n\t\t// credit12\n\t\t$this->credit12->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->credit12->EditCustomAttributes = \"\";\n\t\t$this->credit12->EditValue = $this->credit12->CurrentValue;\n\t\t$this->credit12->PlaceHolder = ew_RemoveHtml($this->credit12->FldCaption());\n\t\tif (strval($this->credit12->EditValue) <> \"\" && is_numeric($this->credit12->EditValue)) $this->credit12->EditValue = ew_FormatNumber($this->credit12->EditValue, -2, -1, -2, 0);\n\n\t\t// saldo12\n\t\t$this->saldo12->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->saldo12->EditCustomAttributes = \"\";\n\t\t$this->saldo12->EditValue = $this->saldo12->CurrentValue;\n\t\t$this->saldo12->PlaceHolder = ew_RemoveHtml($this->saldo12->FldCaption());\n\t\tif (strval($this->saldo12->EditValue) <> \"\" && is_numeric($this->saldo12->EditValue)) $this->saldo12->EditValue = ew_FormatNumber($this->saldo12->EditValue, -2, -1, -2, 0);\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}",
"function RenderEditRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// model_id\n\t\t$this->model_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->model_id->EditCustomAttributes = \"\";\n\t\t$this->model_id->EditValue = $this->model_id->CurrentValue;\n\t\t$this->model_id->ViewCustomAttributes = \"\";\n\n\t\t// model_name\n\t\t$this->model_name->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->model_name->EditCustomAttributes = \"\";\n\t\t$this->model_name->EditValue = $this->model_name->CurrentValue;\n\t\t$this->model_name->PlaceHolder = ew_RemoveHtml($this->model_name->FldCaption());\n\n\t\t// price\n\t\t$this->price->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->price->EditCustomAttributes = \"\";\n\t\t$this->price->EditValue = $this->price->CurrentValue;\n\t\t$this->price->PlaceHolder = ew_RemoveHtml($this->price->FldCaption());\n\t\tif (strval($this->price->EditValue) <> \"\" && is_numeric($this->price->EditValue)) $this->price->EditValue = ew_FormatNumber($this->price->EditValue, -2, -1, -2, 0);\n\n\t\t// displacement\n\t\t$this->displacement->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->displacement->EditCustomAttributes = \"\";\n\t\t$this->displacement->EditValue = $this->displacement->CurrentValue;\n\t\t$this->displacement->PlaceHolder = ew_RemoveHtml($this->displacement->FldCaption());\n\n\t\t// url_slug\n\t\t$this->url_slug->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->url_slug->EditCustomAttributes = \"\";\n\t\t$this->url_slug->EditValue = $this->url_slug->CurrentValue;\n\t\t$this->url_slug->PlaceHolder = ew_RemoveHtml($this->url_slug->FldCaption());\n\n\t\t// model_logo\n\t\t$this->model_logo->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->model_logo->EditCustomAttributes = \"\";\n\t\t$this->model_logo->UploadPath = '../assets/images/model_thumbnail/';\n\t\tif (!ew_Empty($this->model_logo->Upload->DbValue)) {\n\t\t\t$this->model_logo->ImageWidth = 90;\n\t\t\t$this->model_logo->ImageHeight = 0;\n\t\t\t$this->model_logo->ImageAlt = $this->model_logo->FldAlt();\n\t\t\t$this->model_logo->EditValue = $this->model_logo->Upload->DbValue;\n\t\t} else {\n\t\t\t$this->model_logo->EditValue = \"\";\n\t\t}\n\t\tif (!ew_Empty($this->model_logo->CurrentValue))\n\t\t\t\t$this->model_logo->Upload->FileName = $this->model_logo->CurrentValue;\n\n\t\t// model_year\n\t\t$this->model_year->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->model_year->EditCustomAttributes = \"\";\n\t\t$this->model_year->EditValue = $this->model_year->CurrentValue;\n\t\t$this->model_year->PlaceHolder = ew_RemoveHtml($this->model_year->FldCaption());\n\n\t\t// icon_menu\n\t\t$this->icon_menu->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->icon_menu->EditCustomAttributes = \"\";\n\t\t$this->icon_menu->UploadPath = '../assets/images/model_menu/';\n\t\tif (!ew_Empty($this->icon_menu->Upload->DbValue)) {\n\t\t\t$this->icon_menu->ImageWidth = 150;\n\t\t\t$this->icon_menu->ImageHeight = 0;\n\t\t\t$this->icon_menu->ImageAlt = $this->icon_menu->FldAlt();\n\t\t\t$this->icon_menu->EditValue = $this->icon_menu->Upload->DbValue;\n\t\t} else {\n\t\t\t$this->icon_menu->EditValue = \"\";\n\t\t}\n\t\tif (!ew_Empty($this->icon_menu->CurrentValue))\n\t\t\t\t$this->icon_menu->Upload->FileName = $this->icon_menu->CurrentValue;\n\n\t\t// thumbnail\n\t\t$this->_thumbnail->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_thumbnail->EditCustomAttributes = \"\";\n\t\t$this->_thumbnail->UploadPath = '../assets/images/model_thumbnail/';\n\t\tif (!ew_Empty($this->_thumbnail->Upload->DbValue)) {\n\t\t\t$this->_thumbnail->ImageWidth = 200;\n\t\t\t$this->_thumbnail->ImageHeight = 0;\n\t\t\t$this->_thumbnail->ImageAlt = $this->_thumbnail->FldAlt();\n\t\t\t$this->_thumbnail->EditValue = $this->_thumbnail->Upload->DbValue;\n\t\t} else {\n\t\t\t$this->_thumbnail->EditValue = \"\";\n\t\t}\n\t\tif (!ew_Empty($this->_thumbnail->CurrentValue))\n\t\t\t\t$this->_thumbnail->Upload->FileName = $this->_thumbnail->CurrentValue;\n\n\t\t// full_image\n\t\t$this->full_image->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->full_image->EditCustomAttributes = \"\";\n\t\t$this->full_image->UploadPath = '../assets/images/model/';\n\t\tif (!ew_Empty($this->full_image->Upload->DbValue)) {\n\t\t\t$this->full_image->ImageWidth = 200;\n\t\t\t$this->full_image->ImageHeight = 0;\n\t\t\t$this->full_image->ImageAlt = $this->full_image->FldAlt();\n\t\t\t$this->full_image->EditValue = $this->full_image->Upload->DbValue;\n\t\t} else {\n\t\t\t$this->full_image->EditValue = \"\";\n\t\t}\n\t\tif (!ew_Empty($this->full_image->CurrentValue))\n\t\t\t\t$this->full_image->Upload->FileName = $this->full_image->CurrentValue;\n\n\t\t// description\n\t\t$this->description->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->description->EditCustomAttributes = \"\";\n\t\t$this->description->EditValue = $this->description->CurrentValue;\n\t\t$this->description->PlaceHolder = ew_RemoveHtml($this->description->FldCaption());\n\n\t\t// youtube_url\n\t\t$this->youtube_url->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->youtube_url->EditCustomAttributes = \"\";\n\t\t$this->youtube_url->EditValue = $this->youtube_url->CurrentValue;\n\t\t$this->youtube_url->PlaceHolder = ew_RemoveHtml($this->youtube_url->FldCaption());\n\n\t\t// category_id\n\t\t$this->category_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->category_id->EditCustomAttributes = \"\";\n\t\tif ($this->category_id->getSessionValue() <> \"\") {\n\t\t\t$this->category_id->CurrentValue = $this->category_id->getSessionValue();\n\t\tif (strval($this->category_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`category_id`\" . ew_SearchString(\"=\", $this->category_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `category_id`, `category_name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `model_category`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->category_id->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->category_id, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t$sSqlWrk .= \" ORDER BY `category_name` ASC\";\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->category_id->ViewValue = $this->category_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->category_id->ViewValue = $this->category_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->category_id->ViewValue = NULL;\n\t\t}\n\t\t$this->category_id->ViewCustomAttributes = \"\";\n\t\t} else {\n\t\t}\n\n\t\t// m_order\n\t\t$this->m_order->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->m_order->EditCustomAttributes = \"\";\n\t\t$this->m_order->EditValue = $this->m_order->CurrentValue;\n\t\t$this->m_order->PlaceHolder = ew_RemoveHtml($this->m_order->FldCaption());\n\n\t\t// seo_description\n\t\t$this->seo_description->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->seo_description->EditCustomAttributes = \"\";\n\t\t$this->seo_description->EditValue = $this->seo_description->CurrentValue;\n\t\t$this->seo_description->PlaceHolder = ew_RemoveHtml($this->seo_description->FldCaption());\n\n\t\t// seo_keyword\n\t\t$this->seo_keyword->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->seo_keyword->EditCustomAttributes = \"\";\n\t\t$this->seo_keyword->EditValue = $this->seo_keyword->CurrentValue;\n\t\t$this->seo_keyword->PlaceHolder = ew_RemoveHtml($this->seo_keyword->FldCaption());\n\n\t\t// status\n\t\t$this->status->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->status->EditCustomAttributes = \"\";\n\t\t$this->status->EditValue = $this->status->Options(TRUE);\n\n\t\t// is_feature\n\t\t$this->is_feature->EditCustomAttributes = \"\";\n\t\t$this->is_feature->EditValue = $this->is_feature->Options(FALSE);\n\n\t\t// is_available\n\t\t$this->is_available->EditCustomAttributes = \"\";\n\t\t$this->is_available->EditValue = $this->is_available->Options(FALSE);\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}",
"private function editable_row()\n {\n if ( isset( $this->field->attributes['readonly'] ) && $this->field->attributes['readonly'] === 'readonly' && ! \\Participants_Db::current_user_has_plugin_role('editor', __METHOD__) ) return '';\n $row = '';\n $index = $this->value_row_count() + 1;\n $values = $this->post_data_array();\n \n $row_template = apply_filters( 'pdb-member_payments_table_body_row', '<tr data-index=\"%1$s\">%2$s</tr>' );\n $cell_template = apply_filters( 'pdb-member_payments_table_body_cell', '<th class=\"%1$s-column\">%2$s</th>' );\n foreach ( array_keys( $this->columns ) as $name ) {\n $input = \\PDb_FormElement::get_element(array(\n 'type' => 'text-line',\n //'name' => $this->field->name . '[' . $index . '][' . $name . ']',\n 'name' => $this->field->name . '[' . $name . ']',\n 'value' => isset( $values[$name] ) ? $values[$name] : '',\n ));\n $row .= sprintf( $cell_template, $name, $input );\n }\n return sprintf( $row_template, $index, $row );\n }",
"function RenderEditRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// id_admission\n\t\t$this->id_admission->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->id_admission->EditCustomAttributes = \"\";\n\t\t$this->id_admission->EditValue = $this->id_admission->CurrentValue;\n\t\t$this->id_admission->ViewCustomAttributes = \"\";\n\n\t\t// nomr\n\t\t$this->nomr->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->nomr->EditCustomAttributes = \"\";\n\t\t$this->nomr->EditValue = $this->nomr->CurrentValue;\n\t\t$this->nomr->PlaceHolder = ew_RemoveHtml($this->nomr->FldCaption());\n\n\t\t// ket_nama\n\t\t$this->ket_nama->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->ket_nama->EditCustomAttributes = \"\";\n\t\t$this->ket_nama->EditValue = $this->ket_nama->CurrentValue;\n\t\t$this->ket_nama->PlaceHolder = ew_RemoveHtml($this->ket_nama->FldCaption());\n\n\t\t// ket_tgllahir\n\t\t$this->ket_tgllahir->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->ket_tgllahir->EditCustomAttributes = \"\";\n\t\t$this->ket_tgllahir->EditValue = ew_FormatDateTime($this->ket_tgllahir->CurrentValue, 8);\n\t\t$this->ket_tgllahir->PlaceHolder = ew_RemoveHtml($this->ket_tgllahir->FldCaption());\n\n\t\t// ket_alamat\n\t\t$this->ket_alamat->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->ket_alamat->EditCustomAttributes = \"\";\n\t\t$this->ket_alamat->EditValue = $this->ket_alamat->CurrentValue;\n\t\t$this->ket_alamat->PlaceHolder = ew_RemoveHtml($this->ket_alamat->FldCaption());\n\n\t\t// ket_jeniskelamin\n\t\t$this->ket_jeniskelamin->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->ket_jeniskelamin->EditCustomAttributes = \"\";\n\t\t$this->ket_jeniskelamin->EditValue = $this->ket_jeniskelamin->CurrentValue;\n\t\t$this->ket_jeniskelamin->PlaceHolder = ew_RemoveHtml($this->ket_jeniskelamin->FldCaption());\n\n\t\t// ket_title\n\t\t$this->ket_title->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->ket_title->EditCustomAttributes = \"\";\n\t\t$this->ket_title->EditValue = $this->ket_title->CurrentValue;\n\t\t$this->ket_title->PlaceHolder = ew_RemoveHtml($this->ket_title->FldCaption());\n\n\t\t// dokterpengirim\n\t\t$this->dokterpengirim->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->dokterpengirim->EditCustomAttributes = \"\";\n\t\t$this->dokterpengirim->EditValue = $this->dokterpengirim->CurrentValue;\n\t\t$this->dokterpengirim->PlaceHolder = ew_RemoveHtml($this->dokterpengirim->FldCaption());\n\n\t\t// statusbayar\n\t\t$this->statusbayar->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->statusbayar->EditCustomAttributes = \"\";\n\t\t$this->statusbayar->EditValue = $this->statusbayar->CurrentValue;\n\t\t$this->statusbayar->PlaceHolder = ew_RemoveHtml($this->statusbayar->FldCaption());\n\n\t\t// kirimdari\n\t\t$this->kirimdari->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->kirimdari->EditCustomAttributes = \"\";\n\t\t$this->kirimdari->EditValue = $this->kirimdari->CurrentValue;\n\t\t$this->kirimdari->PlaceHolder = ew_RemoveHtml($this->kirimdari->FldCaption());\n\n\t\t// keluargadekat\n\t\t$this->keluargadekat->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->keluargadekat->EditCustomAttributes = \"\";\n\t\t$this->keluargadekat->EditValue = $this->keluargadekat->CurrentValue;\n\t\t$this->keluargadekat->PlaceHolder = ew_RemoveHtml($this->keluargadekat->FldCaption());\n\n\t\t// panggungjawab\n\t\t$this->panggungjawab->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->panggungjawab->EditCustomAttributes = \"\";\n\t\t$this->panggungjawab->EditValue = $this->panggungjawab->CurrentValue;\n\t\t$this->panggungjawab->PlaceHolder = ew_RemoveHtml($this->panggungjawab->FldCaption());\n\n\t\t// masukrs\n\t\t$this->masukrs->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->masukrs->EditCustomAttributes = \"\";\n\t\t$this->masukrs->EditValue = ew_FormatDateTime($this->masukrs->CurrentValue, 8);\n\t\t$this->masukrs->PlaceHolder = ew_RemoveHtml($this->masukrs->FldCaption());\n\n\t\t// noruang\n\t\t$this->noruang->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->noruang->EditCustomAttributes = \"\";\n\t\t$this->noruang->EditValue = $this->noruang->CurrentValue;\n\t\t$this->noruang->PlaceHolder = ew_RemoveHtml($this->noruang->FldCaption());\n\n\t\t// tempat_tidur_id\n\t\t$this->tempat_tidur_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->tempat_tidur_id->EditCustomAttributes = \"\";\n\t\t$this->tempat_tidur_id->EditValue = $this->tempat_tidur_id->CurrentValue;\n\t\t$this->tempat_tidur_id->PlaceHolder = ew_RemoveHtml($this->tempat_tidur_id->FldCaption());\n\n\t\t// nott\n\t\t$this->nott->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->nott->EditCustomAttributes = \"\";\n\t\t$this->nott->EditValue = $this->nott->CurrentValue;\n\t\t$this->nott->PlaceHolder = ew_RemoveHtml($this->nott->FldCaption());\n\n\t\t// NIP\n\t\t$this->NIP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NIP->EditCustomAttributes = \"\";\n\t\t$this->NIP->EditValue = $this->NIP->CurrentValue;\n\t\t$this->NIP->PlaceHolder = ew_RemoveHtml($this->NIP->FldCaption());\n\n\t\t// dokter_penanggungjawab\n\t\t$this->dokter_penanggungjawab->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->dokter_penanggungjawab->EditCustomAttributes = \"\";\n\t\t$this->dokter_penanggungjawab->EditValue = $this->dokter_penanggungjawab->CurrentValue;\n\t\t$this->dokter_penanggungjawab->PlaceHolder = ew_RemoveHtml($this->dokter_penanggungjawab->FldCaption());\n\n\t\t// KELASPERAWATAN_ID\n\t\t$this->KELASPERAWATAN_ID->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KELASPERAWATAN_ID->EditCustomAttributes = \"\";\n\t\t$this->KELASPERAWATAN_ID->EditValue = $this->KELASPERAWATAN_ID->CurrentValue;\n\t\t$this->KELASPERAWATAN_ID->PlaceHolder = ew_RemoveHtml($this->KELASPERAWATAN_ID->FldCaption());\n\n\t\t// NO_SKP\n\t\t$this->NO_SKP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NO_SKP->EditCustomAttributes = \"\";\n\t\t$this->NO_SKP->EditValue = $this->NO_SKP->CurrentValue;\n\t\t$this->NO_SKP->PlaceHolder = ew_RemoveHtml($this->NO_SKP->FldCaption());\n\n\t\t// sep_tglsep\n\t\t$this->sep_tglsep->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sep_tglsep->EditCustomAttributes = \"\";\n\t\t$this->sep_tglsep->EditValue = ew_FormatDateTime($this->sep_tglsep->CurrentValue, 5);\n\t\t$this->sep_tglsep->PlaceHolder = ew_RemoveHtml($this->sep_tglsep->FldCaption());\n\n\t\t// sep_tglrujuk\n\t\t$this->sep_tglrujuk->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sep_tglrujuk->EditCustomAttributes = \"\";\n\t\t$this->sep_tglrujuk->EditValue = ew_FormatDateTime($this->sep_tglrujuk->CurrentValue, 5);\n\t\t$this->sep_tglrujuk->PlaceHolder = ew_RemoveHtml($this->sep_tglrujuk->FldCaption());\n\n\t\t// sep_kodekelasrawat\n\t\t$this->sep_kodekelasrawat->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sep_kodekelasrawat->EditCustomAttributes = \"\";\n\t\t$this->sep_kodekelasrawat->EditValue = $this->sep_kodekelasrawat->CurrentValue;\n\t\t$this->sep_kodekelasrawat->PlaceHolder = ew_RemoveHtml($this->sep_kodekelasrawat->FldCaption());\n\n\t\t// sep_norujukan\n\t\t$this->sep_norujukan->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sep_norujukan->EditCustomAttributes = \"\";\n\t\t$this->sep_norujukan->EditValue = $this->sep_norujukan->CurrentValue;\n\t\t$this->sep_norujukan->PlaceHolder = ew_RemoveHtml($this->sep_norujukan->FldCaption());\n\n\t\t// sep_kodeppkasal\n\t\t$this->sep_kodeppkasal->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sep_kodeppkasal->EditCustomAttributes = \"\";\n\t\t$this->sep_kodeppkasal->EditValue = $this->sep_kodeppkasal->CurrentValue;\n\t\t$this->sep_kodeppkasal->PlaceHolder = ew_RemoveHtml($this->sep_kodeppkasal->FldCaption());\n\n\t\t// sep_namappkasal\n\t\t$this->sep_namappkasal->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sep_namappkasal->EditCustomAttributes = \"\";\n\t\t$this->sep_namappkasal->EditValue = $this->sep_namappkasal->CurrentValue;\n\t\t$this->sep_namappkasal->PlaceHolder = ew_RemoveHtml($this->sep_namappkasal->FldCaption());\n\n\t\t// sep_kodeppkpelayanan\n\t\t$this->sep_kodeppkpelayanan->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sep_kodeppkpelayanan->EditCustomAttributes = \"\";\n\t\t$this->sep_kodeppkpelayanan->EditValue = $this->sep_kodeppkpelayanan->CurrentValue;\n\t\t$this->sep_kodeppkpelayanan->PlaceHolder = ew_RemoveHtml($this->sep_kodeppkpelayanan->FldCaption());\n\n\t\t// sep_jenisperawatan\n\t\t$this->sep_jenisperawatan->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sep_jenisperawatan->EditCustomAttributes = \"\";\n\t\t$this->sep_jenisperawatan->EditValue = $this->sep_jenisperawatan->CurrentValue;\n\t\t$this->sep_jenisperawatan->PlaceHolder = ew_RemoveHtml($this->sep_jenisperawatan->FldCaption());\n\n\t\t// sep_catatan\n\t\t$this->sep_catatan->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sep_catatan->EditCustomAttributes = \"\";\n\t\t$this->sep_catatan->EditValue = $this->sep_catatan->CurrentValue;\n\t\t$this->sep_catatan->PlaceHolder = ew_RemoveHtml($this->sep_catatan->FldCaption());\n\n\t\t// sep_kodediagnosaawal\n\t\t$this->sep_kodediagnosaawal->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sep_kodediagnosaawal->EditCustomAttributes = \"\";\n\t\t$this->sep_kodediagnosaawal->EditValue = $this->sep_kodediagnosaawal->CurrentValue;\n\t\t$this->sep_kodediagnosaawal->PlaceHolder = ew_RemoveHtml($this->sep_kodediagnosaawal->FldCaption());\n\n\t\t// sep_namadiagnosaawal\n\t\t$this->sep_namadiagnosaawal->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sep_namadiagnosaawal->EditCustomAttributes = \"\";\n\t\t$this->sep_namadiagnosaawal->EditValue = $this->sep_namadiagnosaawal->CurrentValue;\n\t\t$this->sep_namadiagnosaawal->PlaceHolder = ew_RemoveHtml($this->sep_namadiagnosaawal->FldCaption());\n\n\t\t// sep_lakalantas\n\t\t$this->sep_lakalantas->EditCustomAttributes = \"\";\n\n\t\t// sep_lokasilaka\n\t\t$this->sep_lokasilaka->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sep_lokasilaka->EditCustomAttributes = \"\";\n\t\t$this->sep_lokasilaka->EditValue = $this->sep_lokasilaka->CurrentValue;\n\t\t$this->sep_lokasilaka->PlaceHolder = ew_RemoveHtml($this->sep_lokasilaka->FldCaption());\n\n\t\t// sep_user\n\t\t$this->sep_user->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sep_user->EditCustomAttributes = \"\";\n\t\t$this->sep_user->EditValue = $this->sep_user->CurrentValue;\n\t\t$this->sep_user->PlaceHolder = ew_RemoveHtml($this->sep_user->FldCaption());\n\n\t\t// sep_flag_cekpeserta\n\t\t$this->sep_flag_cekpeserta->EditCustomAttributes = \"\";\n\t\t$this->sep_flag_cekpeserta->EditValue = $this->sep_flag_cekpeserta->Options(FALSE);\n\n\t\t// sep_flag_generatesep\n\t\t$this->sep_flag_generatesep->EditCustomAttributes = \"\";\n\t\t$this->sep_flag_generatesep->EditValue = $this->sep_flag_generatesep->Options(FALSE);\n\n\t\t// sep_nik\n\t\t$this->sep_nik->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sep_nik->EditCustomAttributes = \"\";\n\t\t$this->sep_nik->EditValue = $this->sep_nik->CurrentValue;\n\t\t$this->sep_nik->PlaceHolder = ew_RemoveHtml($this->sep_nik->FldCaption());\n\n\t\t// sep_namapeserta\n\t\t$this->sep_namapeserta->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sep_namapeserta->EditCustomAttributes = \"\";\n\t\t$this->sep_namapeserta->EditValue = $this->sep_namapeserta->CurrentValue;\n\t\t$this->sep_namapeserta->PlaceHolder = ew_RemoveHtml($this->sep_namapeserta->FldCaption());\n\n\t\t// sep_jeniskelamin\n\t\t$this->sep_jeniskelamin->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sep_jeniskelamin->EditCustomAttributes = \"\";\n\t\t$this->sep_jeniskelamin->EditValue = $this->sep_jeniskelamin->CurrentValue;\n\t\t$this->sep_jeniskelamin->PlaceHolder = ew_RemoveHtml($this->sep_jeniskelamin->FldCaption());\n\n\t\t// sep_pisat\n\t\t$this->sep_pisat->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sep_pisat->EditCustomAttributes = \"\";\n\t\t$this->sep_pisat->EditValue = $this->sep_pisat->CurrentValue;\n\t\t$this->sep_pisat->PlaceHolder = ew_RemoveHtml($this->sep_pisat->FldCaption());\n\n\t\t// sep_tgllahir\n\t\t$this->sep_tgllahir->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sep_tgllahir->EditCustomAttributes = \"\";\n\t\t$this->sep_tgllahir->EditValue = $this->sep_tgllahir->CurrentValue;\n\t\t$this->sep_tgllahir->PlaceHolder = ew_RemoveHtml($this->sep_tgllahir->FldCaption());\n\n\t\t// sep_kodejeniskepesertaan\n\t\t$this->sep_kodejeniskepesertaan->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sep_kodejeniskepesertaan->EditCustomAttributes = \"\";\n\t\t$this->sep_kodejeniskepesertaan->EditValue = $this->sep_kodejeniskepesertaan->CurrentValue;\n\t\t$this->sep_kodejeniskepesertaan->PlaceHolder = ew_RemoveHtml($this->sep_kodejeniskepesertaan->FldCaption());\n\n\t\t// sep_namajeniskepesertaan\n\t\t$this->sep_namajeniskepesertaan->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sep_namajeniskepesertaan->EditCustomAttributes = \"\";\n\t\t$this->sep_namajeniskepesertaan->EditValue = $this->sep_namajeniskepesertaan->CurrentValue;\n\t\t$this->sep_namajeniskepesertaan->PlaceHolder = ew_RemoveHtml($this->sep_namajeniskepesertaan->FldCaption());\n\n\t\t// sep_nokabpjs\n\t\t$this->sep_nokabpjs->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sep_nokabpjs->EditCustomAttributes = \"\";\n\t\t$this->sep_nokabpjs->EditValue = $this->sep_nokabpjs->CurrentValue;\n\t\t$this->sep_nokabpjs->PlaceHolder = ew_RemoveHtml($this->sep_nokabpjs->FldCaption());\n\n\t\t// sep_status_peserta\n\t\t$this->sep_status_peserta->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sep_status_peserta->EditCustomAttributes = \"\";\n\t\t$this->sep_status_peserta->EditValue = $this->sep_status_peserta->CurrentValue;\n\t\t$this->sep_status_peserta->PlaceHolder = ew_RemoveHtml($this->sep_status_peserta->FldCaption());\n\n\t\t// sep_umur_pasien_sekarang\n\t\t$this->sep_umur_pasien_sekarang->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sep_umur_pasien_sekarang->EditCustomAttributes = \"\";\n\t\t$this->sep_umur_pasien_sekarang->EditValue = $this->sep_umur_pasien_sekarang->CurrentValue;\n\t\t$this->sep_umur_pasien_sekarang->PlaceHolder = ew_RemoveHtml($this->sep_umur_pasien_sekarang->FldCaption());\n\n\t\t// statuskeluarranap_id\n\t\t$this->statuskeluarranap_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->statuskeluarranap_id->EditCustomAttributes = \"\";\n\t\t$this->statuskeluarranap_id->EditValue = $this->statuskeluarranap_id->CurrentValue;\n\t\t$this->statuskeluarranap_id->PlaceHolder = ew_RemoveHtml($this->statuskeluarranap_id->FldCaption());\n\n\t\t// keluarrs\n\t\t$this->keluarrs->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->keluarrs->EditCustomAttributes = \"\";\n\t\t$this->keluarrs->EditValue = ew_FormatDateTime($this->keluarrs->CurrentValue, 8);\n\t\t$this->keluarrs->PlaceHolder = ew_RemoveHtml($this->keluarrs->FldCaption());\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}",
"public function render_edit_row_modal() {\n\t\t//verify nonce\n\t\tcheck_ajax_referer( 'fsn-admin-edit', 'security' );\n\n\t\t//verify capabilities\n\t\tif ( !current_user_can( 'edit_post', intval($_POST['post_id']) ) )\n\t\t\tdie( '-1' );\n\n\t\t$saved_values = !empty($_POST['saved_values']) ? $_POST['saved_values'] : '';\n\t\tif (empty($saved_values)) {\n\t\t\t$saved_values = array();\n\t\t} else {\n\t\t\tforeach($saved_values as $key => $value) {\n\t\t\t\t$saved_values[$key] = wp_filter_post_kses($value);\n\t\t\t}\n\t\t}\n\n $row_function_options = array(\n '' => __('Choose row function.', 'fusion'),\n 'collapse' => __('Collapse', 'fusion')\n );\n\t\t$row_function_options = apply_filters('fsn_row_function_options', $row_function_options);\n\n\t\t$row_style_options = array(\n\t\t\t'light' => __('Light', 'fusion'),\n\t\t\t'dark' => __('Dark', 'fusion')\n\t\t);\n\t\t$row_style_options = apply_filters('fsn_row_style_options', $row_style_options);\n\n\t\t//map row parameters\n\t\t$params = array(\n\t\t\tarray(\n\t\t\t\t'type' => 'radio',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'container' => __('Container', 'fusion'),\n\t\t\t\t\t'full-width' => __('Full Width','fusion')\n\t\t\t\t),\n\t\t\t\t'param_name' => 'row_width',\n\t\t\t\t'label' => __('Width', 'fusion'),\n\t\t\t\t'help' => __('Choose whether Row is wrapped in container (default) or is full width.', 'fusion')\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'checkbox',\n\t\t\t\t'param_name' => 'seamless',\n\t\t\t\t'label' => __('Seamless', 'fusion'),\n\t\t\t\t'help' => __('Check to enable seamless Columns with no left/right margins for Row.', 'fusion')\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'select',\n\t\t\t\t'options' => $row_function_options,\n\t\t\t\t'param_name' => 'row_function',\n\t\t\t\t'label' => __('Function', 'fusion'),\n\t\t\t\t'help' => __('\"Collapse\" will hide row and allow it to be triggered and revealed by a button.', 'fusion'),\n\t\t\t\t'section' => 'advanced'\n\t\t\t),array(\n\t\t\t\t'type' => 'text',\n\t\t\t\t'param_name' => 'id',\n\t\t\t\t'label' => __('ID', 'fusion'),\n\t\t\t\t'help' => __('Input row ID. Rows can be targeted by their ID for triggering collapsed Rows or anchor links.', 'fusion'),\n\t\t\t\t'section' => 'advanced'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'select',\n\t\t\t\t'options' => $row_style_options,\n\t\t\t\t'param_name' => 'row_style',\n\t\t\t\t'label' => __('Theme', 'fusion'),\n\t\t\t\t'help' => __('Choose Row theme. Light will inherit globally set text color. Dark will adopt text color set within this Row for headlines and links.', 'fusion'),\n\t\t\t\t'section' => 'style'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'image',\n\t\t\t\t'param_name' => 'background_image',\n\t\t\t\t'label' => __('Background Image', 'fusion'),\n\t\t\t\t'section' => 'style'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'select',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'repeat' => __('Repeat','fusion'),\n\t\t\t\t\t'no-repeat' => __('No Repeat', 'fusion')\n\t\t\t\t),\n\t\t\t\t'param_name' => 'background_repeat',\n\t\t\t\t'label' => __('Background Image Repeat', 'fusion'),\n\t\t\t\t'section' => 'style'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'select',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'left top' => __('Top Left', 'fusion'),\n\t\t\t\t\t'center top' => __('Top Center', 'fusion'),\n\t\t\t\t\t'right top' => __('Top Right', 'fusion'),\n\t\t\t\t\t'left center' => __('Center Left', 'fusion'),\n\t\t\t\t\t'center center' => __('Center Center', 'fusion'),\n\t\t\t\t\t'right center' => __('Center Right', 'fusion'),\n\t\t\t\t\t'left bottom' => __('Bottom Left', 'fusion'),\n\t\t\t\t\t'center bottom' => __('Bottom Center', 'fusion'),\n\t\t\t\t\t'right bottom' => __('Bottom Right', 'fusion'),\n\t\t\t\t\t'custom' => __('Custom', 'fusion')\n\t\t\t\t),\n\t\t\t\t'param_name' => 'background_position',\n\t\t\t\t'label' => __('Background Image Position', 'fusion'),\n\t\t\t\t'section' => 'style'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'text',\n\t\t\t\t'param_name' => 'background_position_custom',\n\t\t\t\t'label' => __('Custom Background Image Position', 'fusion'),\n\t\t\t\t'help' => __('Input background image x-y position (e.g. 20px 20px).', 'fusion'),\n\t\t\t\t'section' => 'style',\n\t\t\t\t'dependency' => array(\n\t\t\t\t\t'param_name' => 'background_position',\n\t\t\t\t\t'value' => 'custom'\n\t\t\t\t)\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'select',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'scroll' => __('Scroll', 'fusion'),\n\t\t\t\t\t'fixed' => __('Fixed', 'fusion')\n\t\t\t\t),\n\t\t\t\t'param_name' => 'background_attachment',\n\t\t\t\t'label' => __('Background Image Attachment', 'fusion'),\n\t\t\t\t'section' => 'style'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'select',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'auto' => __('Auto', 'fusion'),\n\t\t\t\t\t'cover' => __('Cover', 'fusion'),\n\t\t\t\t\t'contain' => __('Contain', 'fusion')\n\t\t\t\t),\n\t\t\t\t'param_name' => 'background_size',\n\t\t\t\t'label' => __('Background Image Size', 'fusion'),\n\t\t\t\t'section' => 'style'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'select',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'show' => __('Show','fusion'),\n\t\t\t\t\t'hide' => __('Hide', 'fusion')\n\t\t\t\t),\n\t\t\t\t'param_name' => 'background_image_xs',\n\t\t\t\t'label' => __('Background Image Mobile', 'fusion'),\n\t\t\t\t'section' => 'style'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'note',\n\t\t\t\t'help' => __('Set left and right margins or padding on Columns.', 'fusion'),\n\t\t\t\t'section' => 'style'\n\t\t\t)\n\t\t);\n\n\t\t//filter row params\n\t\t$params = apply_filters('fsn_row_params', $params);\n\n\t\t//add style params\n\t\tglobal $fsn_style_params;\n\t\t$style_params = $fsn_style_params;\n\t\t$params = array_merge_recursive($params, $style_params);\n\n\t\t//sort params into sections\n\t\t$fsn_param_sections = fsn_get_sorted_param_sections($params);\n\t\t$tabset_id = uniqid();\n\t\t?>\n\t\t<div class=\"modal\" id=\"editRowModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"fsnModalLabel\" aria-hidden=\"true\">\n\t\t\t<div class=\"modal-dialog modal-lg\">\n\t\t\t\t<div class=\"modal-content\">\n\t\t\t\t\t<div class=\"modal-header has-tabs\">\n\t\t\t\t\t\t<h4 class=\"modal-title\" id=\"fsnModalLabel\"><?php _e('Row', 'fusion'); ?></h4>\n\t\t\t\t\t\t<a href=\"#\" class=\"close\" data-dismiss=\"modal\" aria-label=\"<?php _e('Close', 'fusion'); ?>\"><span aria-hidden=\"true\"><i class=\"material-icons\"></i></span></a>\n\t\t\t\t\t\t<?php\n\t\t\t\t\t\techo '<ul class=\"nav nav-tabs\" role=\"tablist\">';\n\t\t\t\t\t\t\t$active_tab = true;\n\t\t\t\t\t\t\tfor($i=0; $i < count($fsn_param_sections); $i++) {\n\t\t\t\t\t\t\t\tif (count($fsn_param_sections[$i]['params']) > 0) {\n\t\t\t\t\t\t\t \techo '<li role=\"presentation\"'. ($active_tab == true ? ' class=\"active\"' : '') .'><a href=\"#'. esc_attr($fsn_param_sections[$i]['id']) .'-'. esc_attr($tabset_id) .'\" aria-controls=\"options\" role=\"tab\" data-toggle=\"tab\">'. esc_html($fsn_param_sections[$i]['name']) .'</a></li>';\n\t\t\t\t\t\t\t \t$active_tab = false;\n\t\t\t\t\t\t \t} else {\n\t\t\t\t\t\t\t \techo '<li role=\"presentation\" style=\"display:none;\"><a href=\"#'. esc_attr($fsn_param_sections[$i]['id']) .'-'. esc_attr($tabset_id) .'\" aria-controls=\"options\" role=\"tab\" data-toggle=\"tab\">'. esc_html($fsn_param_sections[$i]['name']) .'</a></li>';\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\techo '</ul>';\n\t\t\t\t\t\t?>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"modal-body\">\n\t\t\t\t\t\t<form role=\"form\">\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\techo '<div class=\"tab-content\">';\n\t\t\t\t\t\t\t\t$active_tab = true;\n\t\t\t\t\t\t\t\tfor($i=0; $i < count($fsn_param_sections); $i++) {\n\t\t\t\t\t\t\t\t\tif (count($fsn_param_sections[$i]['params']) > 0) {\n\t\t\t\t\t\t\t\t\t\techo '<div role=\"tabpanel\" class=\"tab-pane'. ($active_tab == true ? ' active' : '') .'\" id=\"'. esc_attr($fsn_param_sections[$i]['id']) .'-'. esc_attr($tabset_id) .'\" data-section-id=\"'. esc_attr($fsn_param_sections[$i]['id']) .'\">';\n\t\t\t\t\t\t\t\t\t\t\tforeach($fsn_param_sections[$i]['params'] as $param) {\n\t\t\t\t\t\t\t\t\t\t\t\t//check for saved values\n\t\t\t\t\t\t\t\t\t\t\t\tif (!empty($param['param_name'])) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (!isset($param['content_field']) && $param['param_name'] == 'fsncontent') {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$param['content_field'] = true;\n\t\t\t\t\t\t\t\t\t\t\t\t\t} elseif (empty($param['content_field'])) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$param['content_field'] = false;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t$data_attribute_name = str_replace('_', '-', $param['param_name']);\n\t\t\t\t\t\t\t\t\t\t\t\t\tif ( array_key_exists($data_attribute_name, $saved_values) ) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$param_value = stripslashes($saved_values[$data_attribute_name]);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!empty($param['encode_base64'])) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$param_value = wp_strip_all_tags($param_value);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$param_value = htmlentities(base64_decode($param_value));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (!empty($param['encode_url'])) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$param_value = wp_strip_all_tags($param_value);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$param_value = urldecode($param_value);\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//decode custom entities\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$param_value = FusionCore::decode_custom_entities($param_value);\n\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$param_value = '';\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t\t$param_value = '';\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t//check for dependency\n\t\t\t\t\t\t\t\t\t\t\t\t$dependency = !empty($param['dependency']) ? true : false;\n\t\t\t\t\t\t\t\t\t\t\t\tif ($dependency === true) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t$depends_on_param = $param['dependency']['param_name'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t$depends_on_not_empty = !empty($param['dependency']['not_empty']) ? $param['dependency']['not_empty'] : false;\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (!empty($param['dependency']['value']) && is_array($param['dependency']['value'])) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$depends_on_value = json_encode($param['dependency']['value']);\n\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (!empty($param['dependency']['value'])) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$depends_on_value = $param['dependency']['value'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$depends_on_value = '';\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t$dependency_callback = !empty($param['dependency']['callback']) ? $param['dependency']['callback'] : '';\n\t\t\t\t\t\t\t\t\t\t\t\t\t$dependency_string = ' data-dependency-param=\"'. esc_attr($depends_on_param) .'\"'. ($depends_on_not_empty === true ? ' data-dependency-not-empty=\"true\"' : '') . (!empty($depends_on_value) ? ' data-dependency-value=\"'. esc_attr($depends_on_value) .'\"' : '') . (!empty($dependency_callback) ? ' data-dependency-callback=\"'. esc_attr($dependency_callback) .'\"' : '');\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\techo '<div class=\"form-group'. ( !empty($param['class']) ? ' '. esc_attr($param['class']) : '' ) .'\"'. ( $dependency === true ? $dependency_string : '' ) .'>';\n\t\t\t\t\t\t\t\t\t\t\t\t\techo self::get_input_field($param, $param_value);\n\t\t\t\t\t\t\t\t\t\t\t\techo '</div>';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\techo '</div>';\n\t\t\t\t\t\t\t\t\t\t$active_tab = false;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\techo '<div role=\"tabpanel\" class=\"tab-pane\" id=\"'. esc_attr($fsn_param_sections[$i]['id']) .'-'. esc_attr($tabset_id) .'\" data-section-id=\"'. esc_attr($fsn_param_sections[$i]['id']) .'\"></div>';\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\techo '</div>';\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"modal-footer\">\n\t\t\t\t\t\t<span class=\"save-notice\"><?php _e('Changes will be saved on close.', 'fusion'); ?></span>\n\t\t\t\t\t\t<button type=\"button\" class=\"button\" data-dismiss=\"modal\"><?php _e('Close', 'fusion'); ?></button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<?php\n\t\texit;\n\t}",
"function render_dialog_row_edit() {\n\t\tinclude_once 'dialog_row_edit.tpl.php';\n\t}",
"protected function row_edit() {\n\t\t\n\t\tif (key_exists('id', $_GET)) $id = $_GET['id']; else $id = false;\n\t\t\n\t\tif (is_numeric($id) || $id == self::NEW_MARKER) {\n\t\t\t\t\t\n\t\t\tif ($id == self::NEW_MARKER) {\n\t\t\t\n\t\t\t\t$title = $this->create_new_button_text; //__('Create New', $this->plugin_id);\n\t\t\t\t\n\t\t\t\t$action = new q2w3_table_new_row($this->plugin_id);\n\t\t\t\t\t\t\t\t\n\t\t\t} else {\n\t\t\t\n\t\t\t\t$action = new q2w3_table_update_row($this->plugin_id);\n\n\t\t\t\t$this->object->load_values_from_db($id, 'db2php');\n\t\t\t\t\n\t\t\t\t$title = $this->object->title->val;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t$res = '<div id=\"poststuff\" class=\"metabox-holder\">'.PHP_EOL;\n\t\t\t\n\t\t\t//$res .= '<div id=\"advanced-sortables\" class=\"meta-box-sortables\">'.PHP_EOL;\n\t\t\t\n\t\t\t$res .= '<div id=\"q2w3_inc_manager\" class=\"postbox\" style=\"width: 100%; margin-bottom: 0px;\">'.PHP_EOL;\n\t\t\t\n\t\t\t$res .= '<h3 class=\"hndle\" style=\"cursor: normal;\"><span>'. $title .'</span></h3>'.PHP_EOL;\n\t\t\t\n\t\t\t$res .= '<div class=\"inside\">'.PHP_EOL;\n\t\t\t\t\t\t\n\t\t\t$res .= '<form method=\"post\" action=\"'. $this->post_handler .'\">'.PHP_EOL;\n\n\t\t\t$res .= $action->html();\n\t\t\t\t\t\t\t\n\t\t\t$res .= new q2w3_hidden_input(array('name'=>'wp_nonce', 'value'=>wp_create_nonce('q2w3_table')));\n\t\t\t\n\t\t\t$res .= new q2w3_hidden_input(array('name'=>'object', 'value'=>get_class($this->object)));\n\t\t\t\n\t\t\t$res .= new q2w3_hidden_input(array('name'=>'propertie[id]', 'value'=>$id));\n\t\n\t\t\t$res .= '<table class=\"form-table\" id=\"q2w3_inc_options_table\">'.PHP_EOL;\n\t\t\t\n\t\t\tforeach ($this->object as $propertie) {\n\t\n\t\t\t\tif ($propertie->single_view) { \n\t\n\t\t\t\t\t$res .= '<tr valign=\"top\">'.PHP_EOL;\n\t\t\t\t\t\n\t\t\t\t\t$res .= '<th scope=\"row\">'. $propertie->name .' (<a class=\"tooltip\" rel=\"'. $propertie->help .'\">?</a>)</th>';\n\t\t\t\t\t\n\t\t\t\t\t$res .= '<td>';\n\t\t\t\t\t\n\t\t\t\t\t$propertie->input->value = $propertie->val;\n\t\n\t\t\t\t\t$res .= $propertie->input; \n\t\n\t\t\t\t\t$res .= '</td>'.PHP_EOL;\n\t\t\t\t\t\n\t\t\t\t\t$res .= '</tr>'.PHP_EOL;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$res .= '</table>'.PHP_EOL;\n\t\n\t\t\t$res .= '<p class=\"submit\"><input type=\"submit\" class=\"button-primary\" value=\"'. __('Save Changes') .'\" /></p>'.PHP_EOL;\n\t\t\t\n\t\t\t$res .= '</form>'.PHP_EOL;\n\t\t\t\n\t\t\t$res .= '</div>'.PHP_EOL.'</div>'.PHP_EOL.'</div>'.PHP_EOL; //'</div>'.PHP_EOL;\n\n\t\t\t$res .= '<script type=\"text/javascript\">jQuery(\"#q2w3_inc_manager .hndle\").click(function(){jQuery(\"#q2w3_inc_manager .inside\").toggle()})</script>';\n\t\t\t\n\t\t\t$res .= $this->object->js();\n\t\t\t\t\t\t\n\t\t\treturn $res;\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public function renderRow()\n {\n if ($this->model->hasRef('updated_by_user_id')) {\n $this->t_row->trySet('user', $this->model->ref('updated_by_user_id')->getTitle());\n }\n\n $diff = $this->model->get('request_diff') ?? [];\n\n if ($this->t_row->hasTag('changes') && count($diff) > 0) {\n $t_change = clone $this->t_row_change;\n $html = '';\n foreach ($diff as $field => [$old_value, $new_value]) {\n if ($field === 'id') {\n continue;\n }\n\n // if field is no more in the model schema\n if (!$this->linkedModel->hasField($field)) {\n continue;\n }\n\n if ($this->isEmptyOrNull($old_value) && $this->isEmptyOrNull($new_value)) {\n continue;\n }\n\n if ($this->linkedModel->getField($field) instanceof Field_SQL_Expression) {\n continue;\n }\n\n $t_change->trySet('field', $this->linkedModel->getField($field)->getCaption());\n $t_change->trySet('old_value', $this->normalizeValue($field, $old_value), false);\n $t_change->trySet('new_value', $this->normalizeValue($field, $new_value), false);\n $html .= $t_change->render();\n }\n $this->t_row->setHTML('changes', $html);\n } else {\n $this->t_row->del('changes');\n }\n\n return parent::renderRow();\n }",
"public function EditRecord()\n {\n $rec = $this->GetActiveRecord();\n if (!$rec) return;\n $this->UpdateActiveRecord($rec);\n $this->SetDisplayMode(MODE_E);\n return $this->ReRender(true,false);\n }",
"function RenderRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\tglobal $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->SEG_LAT->FormValue == $this->SEG_LAT->CurrentValue && is_numeric(ew_StrToFloat($this->SEG_LAT->CurrentValue)))\n\t\t\t$this->SEG_LAT->CurrentValue = ew_StrToFloat($this->SEG_LAT->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->SEG_LONG->FormValue == $this->SEG_LONG->CurrentValue && is_numeric(ew_StrToFloat($this->SEG_LONG->CurrentValue)))\n\t\t\t$this->SEG_LONG->CurrentValue = ew_StrToFloat($this->SEG_LONG->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->FP_Armada->FormValue == $this->FP_Armada->CurrentValue && is_numeric(ew_StrToFloat($this->FP_Armada->CurrentValue)))\n\t\t\t$this->FP_Armada->CurrentValue = ew_StrToFloat($this->FP_Armada->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->FP_Ejercito->FormValue == $this->FP_Ejercito->CurrentValue && is_numeric(ew_StrToFloat($this->FP_Ejercito->CurrentValue)))\n\t\t\t$this->FP_Ejercito->CurrentValue = ew_StrToFloat($this->FP_Ejercito->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->FP_Policia->FormValue == $this->FP_Policia->CurrentValue && is_numeric(ew_StrToFloat($this->FP_Policia->CurrentValue)))\n\t\t\t$this->FP_Policia->CurrentValue = ew_StrToFloat($this->FP_Policia->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// llave\n\t\t// F_Sincron\n\t\t// USUARIO\n\t\t// Cargo_gme\n\t\t// NOM_PE\n\t\t// Otro_PE\n\t\t// NOM_APOYO\n\t\t// Otro_Nom_Apoyo\n\t\t// Otro_CC_Apoyo\n\t\t// NOM_ENLACE\n\t\t// Otro_Nom_Enlace\n\t\t// Otro_CC_Enlace\n\t\t// NOM_PGE\n\t\t// Otro_Nom_PGE\n\t\t// Otro_CC_PGE\n\t\t// Departamento\n\t\t// Muncipio\n\t\t// NOM_VDA\n\t\t// LATITUD\n\t\t// GRA_LAT\n\t\t// MIN_LAT\n\t\t// SEG_LAT\n\t\t// GRA_LONG\n\t\t// MIN_LONG\n\t\t// SEG_LONG\n\t\t// FECHA_ACC\n\t\t// HORA_ACC\n\t\t// Hora_ingreso\n\t\t// FP_Armada\n\t\t// FP_Ejercito\n\t\t// FP_Policia\n\t\t// NOM_COMANDANTE\n\t\t// TESTI1\n\t\t// CC_TESTI1\n\t\t// CARGO_TESTI1\n\t\t// TESTI2\n\t\t// CC_TESTI2\n\t\t// CARGO_TESTI2\n\t\t// Afectados\n\t\t// NUM_Afectado\n\t\t// Nom_Afectado\n\t\t// CC_Afectado\n\t\t// Cargo_Afectado\n\t\t// Tipo_incidente\n\t\t// Riesgo\n\t\t// Parte_Cuerpo\n\t\t// ESTADO_AFEC\n\t\t// EVACUADO\n\t\t// DESC_ACC\n\t\t// Modificado\n\t\t// llave_2\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// llave\n\t\t\t$this->llave->ViewValue = $this->llave->CurrentValue;\n\t\t\t$this->llave->ViewCustomAttributes = \"\";\n\n\t\t\t// F_Sincron\n\t\t\t$this->F_Sincron->ViewValue = $this->F_Sincron->CurrentValue;\n\t\t\t$this->F_Sincron->ViewValue = ew_FormatDateTime($this->F_Sincron->ViewValue, 5);\n\t\t\t$this->F_Sincron->ViewCustomAttributes = \"\";\n\n\t\t\t// USUARIO\n\t\t\tif (strval($this->USUARIO->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`USUARIO`\" . ew_SearchString(\"=\", $this->USUARIO->CurrentValue, EW_DATATYPE_STRING);\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"en\":\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `USUARIO`, `USUARIO` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `view1_acc`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `USUARIO`, `USUARIO` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `view1_acc`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->USUARIO, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `USUARIO` ASC\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->USUARIO->ViewValue = $rswrk->fields('DispFld');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->USUARIO->ViewValue = $this->USUARIO->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->USUARIO->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->USUARIO->ViewCustomAttributes = \"\";\n\n\t\t\t// Cargo_gme\n\t\t\t$this->Cargo_gme->ViewValue = $this->Cargo_gme->CurrentValue;\n\t\t\t$this->Cargo_gme->ViewCustomAttributes = \"\";\n\n\t\t\t// NOM_PE\n\t\t\tif (strval($this->NOM_PE->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`NOM_PE`\" . ew_SearchString(\"=\", $this->NOM_PE->CurrentValue, EW_DATATYPE_STRING);\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"en\":\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `NOM_PE`, `NOM_PE` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `view1_acc`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `NOM_PE`, `NOM_PE` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `view1_acc`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->NOM_PE, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `NOM_PE` ASC\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->NOM_PE->ViewValue = $rswrk->fields('DispFld');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->NOM_PE->ViewValue = $this->NOM_PE->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->NOM_PE->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->NOM_PE->ViewCustomAttributes = \"\";\n\n\t\t\t// Otro_PE\n\t\t\t$this->Otro_PE->ViewValue = $this->Otro_PE->CurrentValue;\n\t\t\t$this->Otro_PE->ViewCustomAttributes = \"\";\n\n\t\t\t// NOM_APOYO\n\t\t\tif (strval($this->NOM_APOYO->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`NOM_APOYO`\" . ew_SearchString(\"=\", $this->NOM_APOYO->CurrentValue, EW_DATATYPE_STRING);\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"en\":\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `NOM_APOYO`, `NOM_APOYO` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `view1_acc`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `NOM_APOYO`, `NOM_APOYO` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `view1_acc`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->NOM_APOYO, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `NOM_APOYO` ASC\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->NOM_APOYO->ViewValue = $rswrk->fields('DispFld');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->NOM_APOYO->ViewValue = $this->NOM_APOYO->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->NOM_APOYO->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->NOM_APOYO->ViewCustomAttributes = \"\";\n\n\t\t\t// Otro_Nom_Apoyo\n\t\t\t$this->Otro_Nom_Apoyo->ViewValue = $this->Otro_Nom_Apoyo->CurrentValue;\n\t\t\t$this->Otro_Nom_Apoyo->ViewCustomAttributes = \"\";\n\n\t\t\t// Otro_CC_Apoyo\n\t\t\t$this->Otro_CC_Apoyo->ViewValue = $this->Otro_CC_Apoyo->CurrentValue;\n\t\t\t$this->Otro_CC_Apoyo->ViewCustomAttributes = \"\";\n\n\t\t\t// NOM_ENLACE\n\t\t\tif (strval($this->NOM_ENLACE->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`NOM_ENLACE`\" . ew_SearchString(\"=\", $this->NOM_ENLACE->CurrentValue, EW_DATATYPE_STRING);\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"en\":\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `NOM_ENLACE`, `NOM_ENLACE` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `view1_acc`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `NOM_ENLACE`, `NOM_ENLACE` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `view1_acc`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->NOM_ENLACE, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `NOM_ENLACE` ASC\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->NOM_ENLACE->ViewValue = $rswrk->fields('DispFld');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->NOM_ENLACE->ViewValue = $this->NOM_ENLACE->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->NOM_ENLACE->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->NOM_ENLACE->ViewCustomAttributes = \"\";\n\n\t\t\t// Otro_Nom_Enlace\n\t\t\t$this->Otro_Nom_Enlace->ViewValue = $this->Otro_Nom_Enlace->CurrentValue;\n\t\t\t$this->Otro_Nom_Enlace->ViewCustomAttributes = \"\";\n\n\t\t\t// Otro_CC_Enlace\n\t\t\t$this->Otro_CC_Enlace->ViewValue = $this->Otro_CC_Enlace->CurrentValue;\n\t\t\t$this->Otro_CC_Enlace->ViewCustomAttributes = \"\";\n\n\t\t\t// NOM_PGE\n\t\t\tif (strval($this->NOM_PGE->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`NOM_PGE`\" . ew_SearchString(\"=\", $this->NOM_PGE->CurrentValue, EW_DATATYPE_STRING);\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"en\":\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `NOM_PGE`, `NOM_PGE` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `view1_acc`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `NOM_PGE`, `NOM_PGE` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `view1_acc`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->NOM_PGE, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `NOM_PGE` ASC\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->NOM_PGE->ViewValue = $rswrk->fields('DispFld');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->NOM_PGE->ViewValue = $this->NOM_PGE->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->NOM_PGE->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->NOM_PGE->ViewCustomAttributes = \"\";\n\n\t\t\t// Otro_Nom_PGE\n\t\t\t$this->Otro_Nom_PGE->ViewValue = $this->Otro_Nom_PGE->CurrentValue;\n\t\t\t$this->Otro_Nom_PGE->ViewCustomAttributes = \"\";\n\n\t\t\t// Otro_CC_PGE\n\t\t\t$this->Otro_CC_PGE->ViewValue = $this->Otro_CC_PGE->CurrentValue;\n\t\t\t$this->Otro_CC_PGE->ViewCustomAttributes = \"\";\n\n\t\t\t// Departamento\n\t\t\t$this->Departamento->ViewValue = $this->Departamento->CurrentValue;\n\t\t\t$this->Departamento->ViewCustomAttributes = \"\";\n\n\t\t\t// Muncipio\n\t\t\t$this->Muncipio->ViewValue = $this->Muncipio->CurrentValue;\n\t\t\t$this->Muncipio->ViewCustomAttributes = \"\";\n\n\t\t\t// NOM_VDA\n\t\t\t$this->NOM_VDA->ViewValue = $this->NOM_VDA->CurrentValue;\n\t\t\t$this->NOM_VDA->ViewCustomAttributes = \"\";\n\n\t\t\t// LATITUD\n\t\t\t$this->LATITUD->ViewValue = $this->LATITUD->CurrentValue;\n\t\t\t$this->LATITUD->ViewCustomAttributes = \"\";\n\n\t\t\t// GRA_LAT\n\t\t\t$this->GRA_LAT->ViewValue = $this->GRA_LAT->CurrentValue;\n\t\t\t$this->GRA_LAT->ViewCustomAttributes = \"\";\n\n\t\t\t// MIN_LAT\n\t\t\t$this->MIN_LAT->ViewValue = $this->MIN_LAT->CurrentValue;\n\t\t\t$this->MIN_LAT->ViewCustomAttributes = \"\";\n\n\t\t\t// SEG_LAT\n\t\t\t$this->SEG_LAT->ViewValue = $this->SEG_LAT->CurrentValue;\n\t\t\t$this->SEG_LAT->ViewCustomAttributes = \"\";\n\n\t\t\t// GRA_LONG\n\t\t\t$this->GRA_LONG->ViewValue = $this->GRA_LONG->CurrentValue;\n\t\t\t$this->GRA_LONG->ViewCustomAttributes = \"\";\n\n\t\t\t// MIN_LONG\n\t\t\t$this->MIN_LONG->ViewValue = $this->MIN_LONG->CurrentValue;\n\t\t\t$this->MIN_LONG->ViewCustomAttributes = \"\";\n\n\t\t\t// SEG_LONG\n\t\t\t$this->SEG_LONG->ViewValue = $this->SEG_LONG->CurrentValue;\n\t\t\t$this->SEG_LONG->ViewCustomAttributes = \"\";\n\n\t\t\t// FECHA_ACC\n\t\t\t$this->FECHA_ACC->ViewValue = $this->FECHA_ACC->CurrentValue;\n\t\t\t$this->FECHA_ACC->ViewCustomAttributes = \"\";\n\n\t\t\t// HORA_ACC\n\t\t\t$this->HORA_ACC->ViewValue = $this->HORA_ACC->CurrentValue;\n\t\t\t$this->HORA_ACC->ViewCustomAttributes = \"\";\n\n\t\t\t// Hora_ingreso\n\t\t\t$this->Hora_ingreso->ViewValue = $this->Hora_ingreso->CurrentValue;\n\t\t\t$this->Hora_ingreso->ViewCustomAttributes = \"\";\n\n\t\t\t// FP_Armada\n\t\t\t$this->FP_Armada->ViewValue = $this->FP_Armada->CurrentValue;\n\t\t\t$this->FP_Armada->ViewCustomAttributes = \"\";\n\n\t\t\t// FP_Ejercito\n\t\t\t$this->FP_Ejercito->ViewValue = $this->FP_Ejercito->CurrentValue;\n\t\t\t$this->FP_Ejercito->ViewCustomAttributes = \"\";\n\n\t\t\t// FP_Policia\n\t\t\t$this->FP_Policia->ViewValue = $this->FP_Policia->CurrentValue;\n\t\t\t$this->FP_Policia->ViewCustomAttributes = \"\";\n\n\t\t\t// NOM_COMANDANTE\n\t\t\t$this->NOM_COMANDANTE->ViewValue = $this->NOM_COMANDANTE->CurrentValue;\n\t\t\t$this->NOM_COMANDANTE->ViewCustomAttributes = \"\";\n\n\t\t\t// TESTI1\n\t\t\t$this->TESTI1->ViewValue = $this->TESTI1->CurrentValue;\n\t\t\t$this->TESTI1->ViewCustomAttributes = \"\";\n\n\t\t\t// CC_TESTI1\n\t\t\t$this->CC_TESTI1->ViewValue = $this->CC_TESTI1->CurrentValue;\n\t\t\t$this->CC_TESTI1->ViewCustomAttributes = \"\";\n\n\t\t\t// CARGO_TESTI1\n\t\t\t$this->CARGO_TESTI1->ViewValue = $this->CARGO_TESTI1->CurrentValue;\n\t\t\t$this->CARGO_TESTI1->ViewCustomAttributes = \"\";\n\n\t\t\t// TESTI2\n\t\t\t$this->TESTI2->ViewValue = $this->TESTI2->CurrentValue;\n\t\t\t$this->TESTI2->ViewCustomAttributes = \"\";\n\n\t\t\t// CC_TESTI2\n\t\t\t$this->CC_TESTI2->ViewValue = $this->CC_TESTI2->CurrentValue;\n\t\t\t$this->CC_TESTI2->ViewCustomAttributes = \"\";\n\n\t\t\t// CARGO_TESTI2\n\t\t\t$this->CARGO_TESTI2->ViewValue = $this->CARGO_TESTI2->CurrentValue;\n\t\t\t$this->CARGO_TESTI2->ViewCustomAttributes = \"\";\n\n\t\t\t// Afectados\n\t\t\t$this->Afectados->ViewValue = $this->Afectados->CurrentValue;\n\t\t\t$this->Afectados->ViewCustomAttributes = \"\";\n\n\t\t\t// NUM_Afectado\n\t\t\t$this->NUM_Afectado->ViewValue = $this->NUM_Afectado->CurrentValue;\n\t\t\t$this->NUM_Afectado->ViewCustomAttributes = \"\";\n\n\t\t\t// Nom_Afectado\n\t\t\t$this->Nom_Afectado->ViewValue = $this->Nom_Afectado->CurrentValue;\n\t\t\t$this->Nom_Afectado->ViewCustomAttributes = \"\";\n\n\t\t\t// CC_Afectado\n\t\t\t$this->CC_Afectado->ViewValue = $this->CC_Afectado->CurrentValue;\n\t\t\t$this->CC_Afectado->ViewCustomAttributes = \"\";\n\n\t\t\t// Cargo_Afectado\n\t\t\t$this->Cargo_Afectado->ViewValue = $this->Cargo_Afectado->CurrentValue;\n\t\t\t$this->Cargo_Afectado->ViewCustomAttributes = \"\";\n\n\t\t\t// Tipo_incidente\n\t\t\tif (strval($this->Tipo_incidente->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`label`\" . ew_SearchString(\"=\", $this->Tipo_incidente->CurrentValue, EW_DATATYPE_STRING);\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"en\":\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `label`, `label` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `dominio`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `label`, `label` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `dominio`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$lookuptblfilter = \"`list name`='Incidente'\";\n\t\t\tif (strval($lookuptblfilter) <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->Tipo_incidente, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `label` ASC\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->Tipo_incidente->ViewValue = $rswrk->fields('DispFld');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->Tipo_incidente->ViewValue = $this->Tipo_incidente->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->Tipo_incidente->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->Tipo_incidente->ViewCustomAttributes = \"\";\n\n\t\t\t// Riesgo\n\t\t\tif (strval($this->Riesgo->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`label`\" . ew_SearchString(\"=\", $this->Riesgo->CurrentValue, EW_DATATYPE_STRING);\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"en\":\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `label`, `label` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `dominio`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `label`, `label` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `dominio`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$lookuptblfilter = \"`list name`='Riesgo'\";\n\t\t\tif (strval($lookuptblfilter) <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->Riesgo, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `label` ASC\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->Riesgo->ViewValue = $rswrk->fields('DispFld');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->Riesgo->ViewValue = $this->Riesgo->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->Riesgo->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->Riesgo->ViewCustomAttributes = \"\";\n\n\t\t\t// Parte_Cuerpo\n\t\t\t$this->Parte_Cuerpo->ViewValue = $this->Parte_Cuerpo->CurrentValue;\n\t\t\t$this->Parte_Cuerpo->ViewCustomAttributes = \"\";\n\n\t\t\t// ESTADO_AFEC\n\t\t\t$this->ESTADO_AFEC->ViewValue = $this->ESTADO_AFEC->CurrentValue;\n\t\t\t$this->ESTADO_AFEC->ViewCustomAttributes = \"\";\n\n\t\t\t// EVACUADO\n\t\t\tif (strval($this->EVACUADO->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($this->EVACUADO->CurrentValue) {\n\t\t\t\t\tcase $this->EVACUADO->FldTagValue(1):\n\t\t\t\t\t\t$this->EVACUADO->ViewValue = $this->EVACUADO->FldTagCaption(1) <> \"\" ? $this->EVACUADO->FldTagCaption(1) : $this->EVACUADO->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase $this->EVACUADO->FldTagValue(2):\n\t\t\t\t\t\t$this->EVACUADO->ViewValue = $this->EVACUADO->FldTagCaption(2) <> \"\" ? $this->EVACUADO->FldTagCaption(2) : $this->EVACUADO->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$this->EVACUADO->ViewValue = $this->EVACUADO->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->EVACUADO->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->EVACUADO->ViewCustomAttributes = \"\";\n\n\t\t\t// DESC_ACC\n\t\t\t$this->DESC_ACC->ViewValue = $this->DESC_ACC->CurrentValue;\n\t\t\t$this->DESC_ACC->ViewCustomAttributes = \"\";\n\n\t\t\t// Modificado\n\t\t\tif (strval($this->Modificado->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($this->Modificado->CurrentValue) {\n\t\t\t\t\tcase $this->Modificado->FldTagValue(1):\n\t\t\t\t\t\t$this->Modificado->ViewValue = $this->Modificado->FldTagCaption(1) <> \"\" ? $this->Modificado->FldTagCaption(1) : $this->Modificado->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase $this->Modificado->FldTagValue(2):\n\t\t\t\t\t\t$this->Modificado->ViewValue = $this->Modificado->FldTagCaption(2) <> \"\" ? $this->Modificado->FldTagCaption(2) : $this->Modificado->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$this->Modificado->ViewValue = $this->Modificado->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->Modificado->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->Modificado->ViewCustomAttributes = \"\";\n\n\t\t\t// llave_2\n\t\t\t$this->llave_2->ViewValue = $this->llave_2->CurrentValue;\n\t\t\t$this->llave_2->ViewCustomAttributes = \"\";\n\n\t\t\t// llave\n\t\t\t$this->llave->LinkCustomAttributes = \"\";\n\t\t\t$this->llave->HrefValue = \"\";\n\t\t\t$this->llave->TooltipValue = \"\";\n\n\t\t\t// F_Sincron\n\t\t\t$this->F_Sincron->LinkCustomAttributes = \"\";\n\t\t\t$this->F_Sincron->HrefValue = \"\";\n\t\t\t$this->F_Sincron->TooltipValue = \"\";\n\n\t\t\t// USUARIO\n\t\t\t$this->USUARIO->LinkCustomAttributes = \"\";\n\t\t\t$this->USUARIO->HrefValue = \"\";\n\t\t\t$this->USUARIO->TooltipValue = \"\";\n\n\t\t\t// Cargo_gme\n\t\t\t$this->Cargo_gme->LinkCustomAttributes = \"\";\n\t\t\t$this->Cargo_gme->HrefValue = \"\";\n\t\t\t$this->Cargo_gme->TooltipValue = \"\";\n\n\t\t\t// NOM_PE\n\t\t\t$this->NOM_PE->LinkCustomAttributes = \"\";\n\t\t\t$this->NOM_PE->HrefValue = \"\";\n\t\t\t$this->NOM_PE->TooltipValue = \"\";\n\n\t\t\t// Otro_PE\n\t\t\t$this->Otro_PE->LinkCustomAttributes = \"\";\n\t\t\t$this->Otro_PE->HrefValue = \"\";\n\t\t\t$this->Otro_PE->TooltipValue = \"\";\n\n\t\t\t// NOM_APOYO\n\t\t\t$this->NOM_APOYO->LinkCustomAttributes = \"\";\n\t\t\t$this->NOM_APOYO->HrefValue = \"\";\n\t\t\t$this->NOM_APOYO->TooltipValue = \"\";\n\n\t\t\t// Otro_Nom_Apoyo\n\t\t\t$this->Otro_Nom_Apoyo->LinkCustomAttributes = \"\";\n\t\t\t$this->Otro_Nom_Apoyo->HrefValue = \"\";\n\t\t\t$this->Otro_Nom_Apoyo->TooltipValue = \"\";\n\n\t\t\t// Otro_CC_Apoyo\n\t\t\t$this->Otro_CC_Apoyo->LinkCustomAttributes = \"\";\n\t\t\t$this->Otro_CC_Apoyo->HrefValue = \"\";\n\t\t\t$this->Otro_CC_Apoyo->TooltipValue = \"\";\n\n\t\t\t// NOM_ENLACE\n\t\t\t$this->NOM_ENLACE->LinkCustomAttributes = \"\";\n\t\t\t$this->NOM_ENLACE->HrefValue = \"\";\n\t\t\t$this->NOM_ENLACE->TooltipValue = \"\";\n\n\t\t\t// Otro_Nom_Enlace\n\t\t\t$this->Otro_Nom_Enlace->LinkCustomAttributes = \"\";\n\t\t\t$this->Otro_Nom_Enlace->HrefValue = \"\";\n\t\t\t$this->Otro_Nom_Enlace->TooltipValue = \"\";\n\n\t\t\t// Otro_CC_Enlace\n\t\t\t$this->Otro_CC_Enlace->LinkCustomAttributes = \"\";\n\t\t\t$this->Otro_CC_Enlace->HrefValue = \"\";\n\t\t\t$this->Otro_CC_Enlace->TooltipValue = \"\";\n\n\t\t\t// NOM_PGE\n\t\t\t$this->NOM_PGE->LinkCustomAttributes = \"\";\n\t\t\t$this->NOM_PGE->HrefValue = \"\";\n\t\t\t$this->NOM_PGE->TooltipValue = \"\";\n\n\t\t\t// Otro_Nom_PGE\n\t\t\t$this->Otro_Nom_PGE->LinkCustomAttributes = \"\";\n\t\t\t$this->Otro_Nom_PGE->HrefValue = \"\";\n\t\t\t$this->Otro_Nom_PGE->TooltipValue = \"\";\n\n\t\t\t// Otro_CC_PGE\n\t\t\t$this->Otro_CC_PGE->LinkCustomAttributes = \"\";\n\t\t\t$this->Otro_CC_PGE->HrefValue = \"\";\n\t\t\t$this->Otro_CC_PGE->TooltipValue = \"\";\n\n\t\t\t// Departamento\n\t\t\t$this->Departamento->LinkCustomAttributes = \"\";\n\t\t\t$this->Departamento->HrefValue = \"\";\n\t\t\t$this->Departamento->TooltipValue = \"\";\n\n\t\t\t// Muncipio\n\t\t\t$this->Muncipio->LinkCustomAttributes = \"\";\n\t\t\t$this->Muncipio->HrefValue = \"\";\n\t\t\t$this->Muncipio->TooltipValue = \"\";\n\n\t\t\t// NOM_VDA\n\t\t\t$this->NOM_VDA->LinkCustomAttributes = \"\";\n\t\t\t$this->NOM_VDA->HrefValue = \"\";\n\t\t\t$this->NOM_VDA->TooltipValue = \"\";\n\n\t\t\t// LATITUD\n\t\t\t$this->LATITUD->LinkCustomAttributes = \"\";\n\t\t\t$this->LATITUD->HrefValue = \"\";\n\t\t\t$this->LATITUD->TooltipValue = \"\";\n\n\t\t\t// GRA_LAT\n\t\t\t$this->GRA_LAT->LinkCustomAttributes = \"\";\n\t\t\t$this->GRA_LAT->HrefValue = \"\";\n\t\t\t$this->GRA_LAT->TooltipValue = \"\";\n\n\t\t\t// MIN_LAT\n\t\t\t$this->MIN_LAT->LinkCustomAttributes = \"\";\n\t\t\t$this->MIN_LAT->HrefValue = \"\";\n\t\t\t$this->MIN_LAT->TooltipValue = \"\";\n\n\t\t\t// SEG_LAT\n\t\t\t$this->SEG_LAT->LinkCustomAttributes = \"\";\n\t\t\t$this->SEG_LAT->HrefValue = \"\";\n\t\t\t$this->SEG_LAT->TooltipValue = \"\";\n\n\t\t\t// GRA_LONG\n\t\t\t$this->GRA_LONG->LinkCustomAttributes = \"\";\n\t\t\t$this->GRA_LONG->HrefValue = \"\";\n\t\t\t$this->GRA_LONG->TooltipValue = \"\";\n\n\t\t\t// MIN_LONG\n\t\t\t$this->MIN_LONG->LinkCustomAttributes = \"\";\n\t\t\t$this->MIN_LONG->HrefValue = \"\";\n\t\t\t$this->MIN_LONG->TooltipValue = \"\";\n\n\t\t\t// SEG_LONG\n\t\t\t$this->SEG_LONG->LinkCustomAttributes = \"\";\n\t\t\t$this->SEG_LONG->HrefValue = \"\";\n\t\t\t$this->SEG_LONG->TooltipValue = \"\";\n\n\t\t\t// FECHA_ACC\n\t\t\t$this->FECHA_ACC->LinkCustomAttributes = \"\";\n\t\t\t$this->FECHA_ACC->HrefValue = \"\";\n\t\t\t$this->FECHA_ACC->TooltipValue = \"\";\n\n\t\t\t// HORA_ACC\n\t\t\t$this->HORA_ACC->LinkCustomAttributes = \"\";\n\t\t\t$this->HORA_ACC->HrefValue = \"\";\n\t\t\t$this->HORA_ACC->TooltipValue = \"\";\n\n\t\t\t// Hora_ingreso\n\t\t\t$this->Hora_ingreso->LinkCustomAttributes = \"\";\n\t\t\t$this->Hora_ingreso->HrefValue = \"\";\n\t\t\t$this->Hora_ingreso->TooltipValue = \"\";\n\n\t\t\t// FP_Armada\n\t\t\t$this->FP_Armada->LinkCustomAttributes = \"\";\n\t\t\t$this->FP_Armada->HrefValue = \"\";\n\t\t\t$this->FP_Armada->TooltipValue = \"\";\n\n\t\t\t// FP_Ejercito\n\t\t\t$this->FP_Ejercito->LinkCustomAttributes = \"\";\n\t\t\t$this->FP_Ejercito->HrefValue = \"\";\n\t\t\t$this->FP_Ejercito->TooltipValue = \"\";\n\n\t\t\t// FP_Policia\n\t\t\t$this->FP_Policia->LinkCustomAttributes = \"\";\n\t\t\t$this->FP_Policia->HrefValue = \"\";\n\t\t\t$this->FP_Policia->TooltipValue = \"\";\n\n\t\t\t// NOM_COMANDANTE\n\t\t\t$this->NOM_COMANDANTE->LinkCustomAttributes = \"\";\n\t\t\t$this->NOM_COMANDANTE->HrefValue = \"\";\n\t\t\t$this->NOM_COMANDANTE->TooltipValue = \"\";\n\n\t\t\t// TESTI1\n\t\t\t$this->TESTI1->LinkCustomAttributes = \"\";\n\t\t\t$this->TESTI1->HrefValue = \"\";\n\t\t\t$this->TESTI1->TooltipValue = \"\";\n\n\t\t\t// CC_TESTI1\n\t\t\t$this->CC_TESTI1->LinkCustomAttributes = \"\";\n\t\t\t$this->CC_TESTI1->HrefValue = \"\";\n\t\t\t$this->CC_TESTI1->TooltipValue = \"\";\n\n\t\t\t// CARGO_TESTI1\n\t\t\t$this->CARGO_TESTI1->LinkCustomAttributes = \"\";\n\t\t\t$this->CARGO_TESTI1->HrefValue = \"\";\n\t\t\t$this->CARGO_TESTI1->TooltipValue = \"\";\n\n\t\t\t// TESTI2\n\t\t\t$this->TESTI2->LinkCustomAttributes = \"\";\n\t\t\t$this->TESTI2->HrefValue = \"\";\n\t\t\t$this->TESTI2->TooltipValue = \"\";\n\n\t\t\t// CC_TESTI2\n\t\t\t$this->CC_TESTI2->LinkCustomAttributes = \"\";\n\t\t\t$this->CC_TESTI2->HrefValue = \"\";\n\t\t\t$this->CC_TESTI2->TooltipValue = \"\";\n\n\t\t\t// CARGO_TESTI2\n\t\t\t$this->CARGO_TESTI2->LinkCustomAttributes = \"\";\n\t\t\t$this->CARGO_TESTI2->HrefValue = \"\";\n\t\t\t$this->CARGO_TESTI2->TooltipValue = \"\";\n\n\t\t\t// Afectados\n\t\t\t$this->Afectados->LinkCustomAttributes = \"\";\n\t\t\t$this->Afectados->HrefValue = \"\";\n\t\t\t$this->Afectados->TooltipValue = \"\";\n\n\t\t\t// NUM_Afectado\n\t\t\t$this->NUM_Afectado->LinkCustomAttributes = \"\";\n\t\t\t$this->NUM_Afectado->HrefValue = \"\";\n\t\t\t$this->NUM_Afectado->TooltipValue = \"\";\n\n\t\t\t// Nom_Afectado\n\t\t\t$this->Nom_Afectado->LinkCustomAttributes = \"\";\n\t\t\t$this->Nom_Afectado->HrefValue = \"\";\n\t\t\t$this->Nom_Afectado->TooltipValue = \"\";\n\n\t\t\t// CC_Afectado\n\t\t\t$this->CC_Afectado->LinkCustomAttributes = \"\";\n\t\t\t$this->CC_Afectado->HrefValue = \"\";\n\t\t\t$this->CC_Afectado->TooltipValue = \"\";\n\n\t\t\t// Cargo_Afectado\n\t\t\t$this->Cargo_Afectado->LinkCustomAttributes = \"\";\n\t\t\t$this->Cargo_Afectado->HrefValue = \"\";\n\t\t\t$this->Cargo_Afectado->TooltipValue = \"\";\n\n\t\t\t// Tipo_incidente\n\t\t\t$this->Tipo_incidente->LinkCustomAttributes = \"\";\n\t\t\t$this->Tipo_incidente->HrefValue = \"\";\n\t\t\t$this->Tipo_incidente->TooltipValue = \"\";\n\n\t\t\t// Riesgo\n\t\t\t$this->Riesgo->LinkCustomAttributes = \"\";\n\t\t\t$this->Riesgo->HrefValue = \"\";\n\t\t\t$this->Riesgo->TooltipValue = \"\";\n\n\t\t\t// Parte_Cuerpo\n\t\t\t$this->Parte_Cuerpo->LinkCustomAttributes = \"\";\n\t\t\t$this->Parte_Cuerpo->HrefValue = \"\";\n\t\t\t$this->Parte_Cuerpo->TooltipValue = \"\";\n\n\t\t\t// ESTADO_AFEC\n\t\t\t$this->ESTADO_AFEC->LinkCustomAttributes = \"\";\n\t\t\t$this->ESTADO_AFEC->HrefValue = \"\";\n\t\t\t$this->ESTADO_AFEC->TooltipValue = \"\";\n\n\t\t\t// EVACUADO\n\t\t\t$this->EVACUADO->LinkCustomAttributes = \"\";\n\t\t\t$this->EVACUADO->HrefValue = \"\";\n\t\t\t$this->EVACUADO->TooltipValue = \"\";\n\n\t\t\t// DESC_ACC\n\t\t\t$this->DESC_ACC->LinkCustomAttributes = \"\";\n\t\t\t$this->DESC_ACC->HrefValue = \"\";\n\t\t\t$this->DESC_ACC->TooltipValue = \"\";\n\n\t\t\t// Modificado\n\t\t\t$this->Modificado->LinkCustomAttributes = \"\";\n\t\t\t$this->Modificado->HrefValue = \"\";\n\t\t\t$this->Modificado->TooltipValue = \"\";\n\n\t\t\t// llave_2\n\t\t\t$this->llave_2->LinkCustomAttributes = \"\";\n\t\t\t$this->llave_2->HrefValue = \"\";\n\t\t\t$this->llave_2->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\n\t\t\t// llave\n\t\t\t$this->llave->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->llave->EditCustomAttributes = \"\";\n\t\t\t$this->llave->EditValue = $this->llave->CurrentValue;\n\t\t\t$this->llave->ViewCustomAttributes = \"\";\n\n\t\t\t// F_Sincron\n\t\t\t$this->F_Sincron->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->F_Sincron->EditCustomAttributes = \"\";\n\t\t\t$this->F_Sincron->EditValue = $this->F_Sincron->CurrentValue;\n\t\t\t$this->F_Sincron->EditValue = ew_FormatDateTime($this->F_Sincron->EditValue, 5);\n\t\t\t$this->F_Sincron->ViewCustomAttributes = \"\";\n\n\t\t\t// USUARIO\n\t\t\t$this->USUARIO->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->USUARIO->EditCustomAttributes = \"\";\n\t\t\t$sFilterWrk = \"\";\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"en\":\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `USUARIO`, `USUARIO` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `view1_acc`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `USUARIO`, `USUARIO` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `view1_acc`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->USUARIO, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `USUARIO` ASC\";\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\n\t\t\t$this->USUARIO->EditValue = $arwrk;\n\n\t\t\t// Cargo_gme\n\t\t\t$this->Cargo_gme->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Cargo_gme->EditCustomAttributes = \"\";\n\t\t\t$this->Cargo_gme->EditValue = ew_HtmlEncode($this->Cargo_gme->CurrentValue);\n\t\t\t$this->Cargo_gme->PlaceHolder = ew_RemoveHtml($this->Cargo_gme->FldCaption());\n\n\t\t\t// NOM_PE\n\t\t\t$this->NOM_PE->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NOM_PE->EditCustomAttributes = \"\";\n\t\t\t$sFilterWrk = \"\";\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"en\":\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `NOM_PE`, `NOM_PE` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `view1_acc`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `NOM_PE`, `NOM_PE` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `view1_acc`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->NOM_PE, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `NOM_PE` ASC\";\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\n\t\t\t$this->NOM_PE->EditValue = $arwrk;\n\n\t\t\t// Otro_PE\n\t\t\t$this->Otro_PE->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Otro_PE->EditCustomAttributes = \"\";\n\t\t\t$this->Otro_PE->EditValue = ew_HtmlEncode($this->Otro_PE->CurrentValue);\n\t\t\t$this->Otro_PE->PlaceHolder = ew_RemoveHtml($this->Otro_PE->FldCaption());\n\n\t\t\t// NOM_APOYO\n\t\t\t$this->NOM_APOYO->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NOM_APOYO->EditCustomAttributes = \"\";\n\t\t\t$sFilterWrk = \"\";\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"en\":\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `NOM_APOYO`, `NOM_APOYO` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `view1_acc`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `NOM_APOYO`, `NOM_APOYO` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `view1_acc`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->NOM_APOYO, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `NOM_APOYO` ASC\";\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\n\t\t\t$this->NOM_APOYO->EditValue = $arwrk;\n\n\t\t\t// Otro_Nom_Apoyo\n\t\t\t$this->Otro_Nom_Apoyo->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Otro_Nom_Apoyo->EditCustomAttributes = \"\";\n\t\t\t$this->Otro_Nom_Apoyo->EditValue = ew_HtmlEncode($this->Otro_Nom_Apoyo->CurrentValue);\n\t\t\t$this->Otro_Nom_Apoyo->PlaceHolder = ew_RemoveHtml($this->Otro_Nom_Apoyo->FldCaption());\n\n\t\t\t// Otro_CC_Apoyo\n\t\t\t$this->Otro_CC_Apoyo->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Otro_CC_Apoyo->EditCustomAttributes = \"\";\n\t\t\t$this->Otro_CC_Apoyo->EditValue = ew_HtmlEncode($this->Otro_CC_Apoyo->CurrentValue);\n\t\t\t$this->Otro_CC_Apoyo->PlaceHolder = ew_RemoveHtml($this->Otro_CC_Apoyo->FldCaption());\n\n\t\t\t// NOM_ENLACE\n\t\t\t$this->NOM_ENLACE->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NOM_ENLACE->EditCustomAttributes = \"\";\n\t\t\t$sFilterWrk = \"\";\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"en\":\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `NOM_ENLACE`, `NOM_ENLACE` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `view1_acc`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `NOM_ENLACE`, `NOM_ENLACE` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `view1_acc`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->NOM_ENLACE, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `NOM_ENLACE` ASC\";\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\n\t\t\t$this->NOM_ENLACE->EditValue = $arwrk;\n\n\t\t\t// Otro_Nom_Enlace\n\t\t\t$this->Otro_Nom_Enlace->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Otro_Nom_Enlace->EditCustomAttributes = \"\";\n\t\t\t$this->Otro_Nom_Enlace->EditValue = ew_HtmlEncode($this->Otro_Nom_Enlace->CurrentValue);\n\t\t\t$this->Otro_Nom_Enlace->PlaceHolder = ew_RemoveHtml($this->Otro_Nom_Enlace->FldCaption());\n\n\t\t\t// Otro_CC_Enlace\n\t\t\t$this->Otro_CC_Enlace->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Otro_CC_Enlace->EditCustomAttributes = \"\";\n\t\t\t$this->Otro_CC_Enlace->EditValue = ew_HtmlEncode($this->Otro_CC_Enlace->CurrentValue);\n\t\t\t$this->Otro_CC_Enlace->PlaceHolder = ew_RemoveHtml($this->Otro_CC_Enlace->FldCaption());\n\n\t\t\t// NOM_PGE\n\t\t\t$this->NOM_PGE->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NOM_PGE->EditCustomAttributes = \"\";\n\t\t\t$sFilterWrk = \"\";\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"en\":\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `NOM_PGE`, `NOM_PGE` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `view1_acc`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `NOM_PGE`, `NOM_PGE` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `view1_acc`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->NOM_PGE, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `NOM_PGE` ASC\";\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\n\t\t\t$this->NOM_PGE->EditValue = $arwrk;\n\n\t\t\t// Otro_Nom_PGE\n\t\t\t$this->Otro_Nom_PGE->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Otro_Nom_PGE->EditCustomAttributes = \"\";\n\t\t\t$this->Otro_Nom_PGE->EditValue = ew_HtmlEncode($this->Otro_Nom_PGE->CurrentValue);\n\t\t\t$this->Otro_Nom_PGE->PlaceHolder = ew_RemoveHtml($this->Otro_Nom_PGE->FldCaption());\n\n\t\t\t// Otro_CC_PGE\n\t\t\t$this->Otro_CC_PGE->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Otro_CC_PGE->EditCustomAttributes = \"\";\n\t\t\t$this->Otro_CC_PGE->EditValue = ew_HtmlEncode($this->Otro_CC_PGE->CurrentValue);\n\t\t\t$this->Otro_CC_PGE->PlaceHolder = ew_RemoveHtml($this->Otro_CC_PGE->FldCaption());\n\n\t\t\t// Departamento\n\t\t\t$this->Departamento->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Departamento->EditCustomAttributes = \"\";\n\t\t\t$this->Departamento->EditValue = ew_HtmlEncode($this->Departamento->CurrentValue);\n\t\t\t$this->Departamento->PlaceHolder = ew_RemoveHtml($this->Departamento->FldCaption());\n\n\t\t\t// Muncipio\n\t\t\t$this->Muncipio->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Muncipio->EditCustomAttributes = \"\";\n\t\t\t$this->Muncipio->EditValue = ew_HtmlEncode($this->Muncipio->CurrentValue);\n\t\t\t$this->Muncipio->PlaceHolder = ew_RemoveHtml($this->Muncipio->FldCaption());\n\n\t\t\t// NOM_VDA\n\t\t\t$this->NOM_VDA->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NOM_VDA->EditCustomAttributes = \"\";\n\t\t\t$this->NOM_VDA->EditValue = ew_HtmlEncode($this->NOM_VDA->CurrentValue);\n\t\t\t$this->NOM_VDA->PlaceHolder = ew_RemoveHtml($this->NOM_VDA->FldCaption());\n\n\t\t\t// LATITUD\n\t\t\t$this->LATITUD->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->LATITUD->EditCustomAttributes = \"\";\n\t\t\t$this->LATITUD->EditValue = ew_HtmlEncode($this->LATITUD->CurrentValue);\n\t\t\t$this->LATITUD->PlaceHolder = ew_RemoveHtml($this->LATITUD->FldCaption());\n\n\t\t\t// GRA_LAT\n\t\t\t$this->GRA_LAT->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->GRA_LAT->EditCustomAttributes = \"\";\n\t\t\t$this->GRA_LAT->EditValue = ew_HtmlEncode($this->GRA_LAT->CurrentValue);\n\t\t\t$this->GRA_LAT->PlaceHolder = ew_RemoveHtml($this->GRA_LAT->FldCaption());\n\n\t\t\t// MIN_LAT\n\t\t\t$this->MIN_LAT->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->MIN_LAT->EditCustomAttributes = \"\";\n\t\t\t$this->MIN_LAT->EditValue = ew_HtmlEncode($this->MIN_LAT->CurrentValue);\n\t\t\t$this->MIN_LAT->PlaceHolder = ew_RemoveHtml($this->MIN_LAT->FldCaption());\n\n\t\t\t// SEG_LAT\n\t\t\t$this->SEG_LAT->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->SEG_LAT->EditCustomAttributes = \"\";\n\t\t\t$this->SEG_LAT->EditValue = ew_HtmlEncode($this->SEG_LAT->CurrentValue);\n\t\t\t$this->SEG_LAT->PlaceHolder = ew_RemoveHtml($this->SEG_LAT->FldCaption());\n\t\t\tif (strval($this->SEG_LAT->EditValue) <> \"\" && is_numeric($this->SEG_LAT->EditValue)) $this->SEG_LAT->EditValue = ew_FormatNumber($this->SEG_LAT->EditValue, -2, -1, -2, 0);\n\n\t\t\t// GRA_LONG\n\t\t\t$this->GRA_LONG->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->GRA_LONG->EditCustomAttributes = \"\";\n\t\t\t$this->GRA_LONG->EditValue = ew_HtmlEncode($this->GRA_LONG->CurrentValue);\n\t\t\t$this->GRA_LONG->PlaceHolder = ew_RemoveHtml($this->GRA_LONG->FldCaption());\n\n\t\t\t// MIN_LONG\n\t\t\t$this->MIN_LONG->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->MIN_LONG->EditCustomAttributes = \"\";\n\t\t\t$this->MIN_LONG->EditValue = ew_HtmlEncode($this->MIN_LONG->CurrentValue);\n\t\t\t$this->MIN_LONG->PlaceHolder = ew_RemoveHtml($this->MIN_LONG->FldCaption());\n\n\t\t\t// SEG_LONG\n\t\t\t$this->SEG_LONG->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->SEG_LONG->EditCustomAttributes = \"\";\n\t\t\t$this->SEG_LONG->EditValue = ew_HtmlEncode($this->SEG_LONG->CurrentValue);\n\t\t\t$this->SEG_LONG->PlaceHolder = ew_RemoveHtml($this->SEG_LONG->FldCaption());\n\t\t\tif (strval($this->SEG_LONG->EditValue) <> \"\" && is_numeric($this->SEG_LONG->EditValue)) $this->SEG_LONG->EditValue = ew_FormatNumber($this->SEG_LONG->EditValue, -2, -1, -2, 0);\n\n\t\t\t// FECHA_ACC\n\t\t\t$this->FECHA_ACC->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->FECHA_ACC->EditCustomAttributes = \"\";\n\t\t\t$this->FECHA_ACC->EditValue = ew_HtmlEncode($this->FECHA_ACC->CurrentValue);\n\t\t\t$this->FECHA_ACC->PlaceHolder = ew_RemoveHtml($this->FECHA_ACC->FldCaption());\n\n\t\t\t// HORA_ACC\n\t\t\t$this->HORA_ACC->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->HORA_ACC->EditCustomAttributes = \"\";\n\t\t\t$this->HORA_ACC->EditValue = ew_HtmlEncode($this->HORA_ACC->CurrentValue);\n\t\t\t$this->HORA_ACC->PlaceHolder = ew_RemoveHtml($this->HORA_ACC->FldCaption());\n\n\t\t\t// Hora_ingreso\n\t\t\t$this->Hora_ingreso->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Hora_ingreso->EditCustomAttributes = \"\";\n\t\t\t$this->Hora_ingreso->EditValue = ew_HtmlEncode($this->Hora_ingreso->CurrentValue);\n\t\t\t$this->Hora_ingreso->PlaceHolder = ew_RemoveHtml($this->Hora_ingreso->FldCaption());\n\n\t\t\t// FP_Armada\n\t\t\t$this->FP_Armada->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->FP_Armada->EditCustomAttributes = \"\";\n\t\t\t$this->FP_Armada->EditValue = ew_HtmlEncode($this->FP_Armada->CurrentValue);\n\t\t\t$this->FP_Armada->PlaceHolder = ew_RemoveHtml($this->FP_Armada->FldCaption());\n\t\t\tif (strval($this->FP_Armada->EditValue) <> \"\" && is_numeric($this->FP_Armada->EditValue)) $this->FP_Armada->EditValue = ew_FormatNumber($this->FP_Armada->EditValue, -2, -1, -2, 0);\n\n\t\t\t// FP_Ejercito\n\t\t\t$this->FP_Ejercito->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->FP_Ejercito->EditCustomAttributes = \"\";\n\t\t\t$this->FP_Ejercito->EditValue = ew_HtmlEncode($this->FP_Ejercito->CurrentValue);\n\t\t\t$this->FP_Ejercito->PlaceHolder = ew_RemoveHtml($this->FP_Ejercito->FldCaption());\n\t\t\tif (strval($this->FP_Ejercito->EditValue) <> \"\" && is_numeric($this->FP_Ejercito->EditValue)) $this->FP_Ejercito->EditValue = ew_FormatNumber($this->FP_Ejercito->EditValue, -2, -1, -2, 0);\n\n\t\t\t// FP_Policia\n\t\t\t$this->FP_Policia->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->FP_Policia->EditCustomAttributes = \"\";\n\t\t\t$this->FP_Policia->EditValue = ew_HtmlEncode($this->FP_Policia->CurrentValue);\n\t\t\t$this->FP_Policia->PlaceHolder = ew_RemoveHtml($this->FP_Policia->FldCaption());\n\t\t\tif (strval($this->FP_Policia->EditValue) <> \"\" && is_numeric($this->FP_Policia->EditValue)) $this->FP_Policia->EditValue = ew_FormatNumber($this->FP_Policia->EditValue, -2, -1, -2, 0);\n\n\t\t\t// NOM_COMANDANTE\n\t\t\t$this->NOM_COMANDANTE->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NOM_COMANDANTE->EditCustomAttributes = \"\";\n\t\t\t$this->NOM_COMANDANTE->EditValue = ew_HtmlEncode($this->NOM_COMANDANTE->CurrentValue);\n\t\t\t$this->NOM_COMANDANTE->PlaceHolder = ew_RemoveHtml($this->NOM_COMANDANTE->FldCaption());\n\n\t\t\t// TESTI1\n\t\t\t$this->TESTI1->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TESTI1->EditCustomAttributes = \"\";\n\t\t\t$this->TESTI1->EditValue = ew_HtmlEncode($this->TESTI1->CurrentValue);\n\t\t\t$this->TESTI1->PlaceHolder = ew_RemoveHtml($this->TESTI1->FldCaption());\n\n\t\t\t// CC_TESTI1\n\t\t\t$this->CC_TESTI1->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->CC_TESTI1->EditCustomAttributes = \"\";\n\t\t\t$this->CC_TESTI1->EditValue = ew_HtmlEncode($this->CC_TESTI1->CurrentValue);\n\t\t\t$this->CC_TESTI1->PlaceHolder = ew_RemoveHtml($this->CC_TESTI1->FldCaption());\n\n\t\t\t// CARGO_TESTI1\n\t\t\t$this->CARGO_TESTI1->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->CARGO_TESTI1->EditCustomAttributes = \"\";\n\t\t\t$this->CARGO_TESTI1->EditValue = ew_HtmlEncode($this->CARGO_TESTI1->CurrentValue);\n\t\t\t$this->CARGO_TESTI1->PlaceHolder = ew_RemoveHtml($this->CARGO_TESTI1->FldCaption());\n\n\t\t\t// TESTI2\n\t\t\t$this->TESTI2->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TESTI2->EditCustomAttributes = \"\";\n\t\t\t$this->TESTI2->EditValue = ew_HtmlEncode($this->TESTI2->CurrentValue);\n\t\t\t$this->TESTI2->PlaceHolder = ew_RemoveHtml($this->TESTI2->FldCaption());\n\n\t\t\t// CC_TESTI2\n\t\t\t$this->CC_TESTI2->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->CC_TESTI2->EditCustomAttributes = \"\";\n\t\t\t$this->CC_TESTI2->EditValue = ew_HtmlEncode($this->CC_TESTI2->CurrentValue);\n\t\t\t$this->CC_TESTI2->PlaceHolder = ew_RemoveHtml($this->CC_TESTI2->FldCaption());\n\n\t\t\t// CARGO_TESTI2\n\t\t\t$this->CARGO_TESTI2->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->CARGO_TESTI2->EditCustomAttributes = \"\";\n\t\t\t$this->CARGO_TESTI2->EditValue = ew_HtmlEncode($this->CARGO_TESTI2->CurrentValue);\n\t\t\t$this->CARGO_TESTI2->PlaceHolder = ew_RemoveHtml($this->CARGO_TESTI2->FldCaption());\n\n\t\t\t// Afectados\n\t\t\t$this->Afectados->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Afectados->EditCustomAttributes = \"\";\n\t\t\t$this->Afectados->EditValue = ew_HtmlEncode($this->Afectados->CurrentValue);\n\t\t\t$this->Afectados->PlaceHolder = ew_RemoveHtml($this->Afectados->FldCaption());\n\n\t\t\t// NUM_Afectado\n\t\t\t$this->NUM_Afectado->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NUM_Afectado->EditCustomAttributes = \"\";\n\t\t\t$this->NUM_Afectado->EditValue = ew_HtmlEncode($this->NUM_Afectado->CurrentValue);\n\t\t\t$this->NUM_Afectado->PlaceHolder = ew_RemoveHtml($this->NUM_Afectado->FldCaption());\n\n\t\t\t// Nom_Afectado\n\t\t\t$this->Nom_Afectado->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Nom_Afectado->EditCustomAttributes = \"\";\n\t\t\t$this->Nom_Afectado->EditValue = ew_HtmlEncode($this->Nom_Afectado->CurrentValue);\n\t\t\t$this->Nom_Afectado->PlaceHolder = ew_RemoveHtml($this->Nom_Afectado->FldCaption());\n\n\t\t\t// CC_Afectado\n\t\t\t$this->CC_Afectado->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->CC_Afectado->EditCustomAttributes = \"\";\n\t\t\t$this->CC_Afectado->EditValue = ew_HtmlEncode($this->CC_Afectado->CurrentValue);\n\t\t\t$this->CC_Afectado->PlaceHolder = ew_RemoveHtml($this->CC_Afectado->FldCaption());\n\n\t\t\t// Cargo_Afectado\n\t\t\t$this->Cargo_Afectado->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Cargo_Afectado->EditCustomAttributes = \"\";\n\t\t\t$this->Cargo_Afectado->EditValue = ew_HtmlEncode($this->Cargo_Afectado->CurrentValue);\n\t\t\t$this->Cargo_Afectado->PlaceHolder = ew_RemoveHtml($this->Cargo_Afectado->FldCaption());\n\n\t\t\t// Tipo_incidente\n\t\t\t$this->Tipo_incidente->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Tipo_incidente->EditCustomAttributes = \"\";\n\t\t\t$sFilterWrk = \"\";\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"en\":\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `label`, `label` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `dominio`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `label`, `label` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `dominio`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$lookuptblfilter = \"`list name`='Incidente'\";\n\t\t\tif (strval($lookuptblfilter) <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->Tipo_incidente, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `label` ASC\";\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\n\t\t\t$this->Tipo_incidente->EditValue = $arwrk;\n\n\t\t\t// Riesgo\n\t\t\t$this->Riesgo->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Riesgo->EditCustomAttributes = \"\";\n\t\t\t$sFilterWrk = \"\";\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"en\":\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `label`, `label` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `dominio`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT DISTINCT `label`, `label` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `dominio`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$lookuptblfilter = \"`list name`='Riesgo'\";\n\t\t\tif (strval($lookuptblfilter) <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->Riesgo, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `label` ASC\";\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\n\t\t\t$this->Riesgo->EditValue = $arwrk;\n\n\t\t\t// Parte_Cuerpo\n\t\t\t$this->Parte_Cuerpo->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Parte_Cuerpo->EditCustomAttributes = \"\";\n\t\t\t$this->Parte_Cuerpo->EditValue = ew_HtmlEncode($this->Parte_Cuerpo->CurrentValue);\n\t\t\t$this->Parte_Cuerpo->PlaceHolder = ew_RemoveHtml($this->Parte_Cuerpo->FldCaption());\n\n\t\t\t// ESTADO_AFEC\n\t\t\t$this->ESTADO_AFEC->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ESTADO_AFEC->EditCustomAttributes = \"\";\n\t\t\t$this->ESTADO_AFEC->EditValue = ew_HtmlEncode($this->ESTADO_AFEC->CurrentValue);\n\t\t\t$this->ESTADO_AFEC->PlaceHolder = ew_RemoveHtml($this->ESTADO_AFEC->FldCaption());\n\n\t\t\t// EVACUADO\n\t\t\t$this->EVACUADO->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->EVACUADO->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array($this->EVACUADO->FldTagValue(1), $this->EVACUADO->FldTagCaption(1) <> \"\" ? $this->EVACUADO->FldTagCaption(1) : $this->EVACUADO->FldTagValue(1));\n\t\t\t$arwrk[] = array($this->EVACUADO->FldTagValue(2), $this->EVACUADO->FldTagCaption(2) <> \"\" ? $this->EVACUADO->FldTagCaption(2) : $this->EVACUADO->FldTagValue(2));\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$this->EVACUADO->EditValue = $arwrk;\n\n\t\t\t// DESC_ACC\n\t\t\t$this->DESC_ACC->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->DESC_ACC->EditCustomAttributes = \"\";\n\t\t\t$this->DESC_ACC->EditValue = ew_HtmlEncode($this->DESC_ACC->CurrentValue);\n\t\t\t$this->DESC_ACC->PlaceHolder = ew_RemoveHtml($this->DESC_ACC->FldCaption());\n\n\t\t\t// Modificado\n\t\t\t$this->Modificado->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Modificado->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array($this->Modificado->FldTagValue(1), $this->Modificado->FldTagCaption(1) <> \"\" ? $this->Modificado->FldTagCaption(1) : $this->Modificado->FldTagValue(1));\n\t\t\t$arwrk[] = array($this->Modificado->FldTagValue(2), $this->Modificado->FldTagCaption(2) <> \"\" ? $this->Modificado->FldTagCaption(2) : $this->Modificado->FldTagValue(2));\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$this->Modificado->EditValue = $arwrk;\n\n\t\t\t// llave_2\n\t\t\t$this->llave_2->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->llave_2->EditCustomAttributes = \"\";\n\t\t\t$this->llave_2->EditValue = $this->llave_2->CurrentValue;\n\t\t\t$this->llave_2->ViewCustomAttributes = \"\";\n\n\t\t\t// Edit refer script\n\t\t\t// llave\n\n\t\t\t$this->llave->HrefValue = \"\";\n\n\t\t\t// F_Sincron\n\t\t\t$this->F_Sincron->HrefValue = \"\";\n\n\t\t\t// USUARIO\n\t\t\t$this->USUARIO->HrefValue = \"\";\n\n\t\t\t// Cargo_gme\n\t\t\t$this->Cargo_gme->HrefValue = \"\";\n\n\t\t\t// NOM_PE\n\t\t\t$this->NOM_PE->HrefValue = \"\";\n\n\t\t\t// Otro_PE\n\t\t\t$this->Otro_PE->HrefValue = \"\";\n\n\t\t\t// NOM_APOYO\n\t\t\t$this->NOM_APOYO->HrefValue = \"\";\n\n\t\t\t// Otro_Nom_Apoyo\n\t\t\t$this->Otro_Nom_Apoyo->HrefValue = \"\";\n\n\t\t\t// Otro_CC_Apoyo\n\t\t\t$this->Otro_CC_Apoyo->HrefValue = \"\";\n\n\t\t\t// NOM_ENLACE\n\t\t\t$this->NOM_ENLACE->HrefValue = \"\";\n\n\t\t\t// Otro_Nom_Enlace\n\t\t\t$this->Otro_Nom_Enlace->HrefValue = \"\";\n\n\t\t\t// Otro_CC_Enlace\n\t\t\t$this->Otro_CC_Enlace->HrefValue = \"\";\n\n\t\t\t// NOM_PGE\n\t\t\t$this->NOM_PGE->HrefValue = \"\";\n\n\t\t\t// Otro_Nom_PGE\n\t\t\t$this->Otro_Nom_PGE->HrefValue = \"\";\n\n\t\t\t// Otro_CC_PGE\n\t\t\t$this->Otro_CC_PGE->HrefValue = \"\";\n\n\t\t\t// Departamento\n\t\t\t$this->Departamento->HrefValue = \"\";\n\n\t\t\t// Muncipio\n\t\t\t$this->Muncipio->HrefValue = \"\";\n\n\t\t\t// NOM_VDA\n\t\t\t$this->NOM_VDA->HrefValue = \"\";\n\n\t\t\t// LATITUD\n\t\t\t$this->LATITUD->HrefValue = \"\";\n\n\t\t\t// GRA_LAT\n\t\t\t$this->GRA_LAT->HrefValue = \"\";\n\n\t\t\t// MIN_LAT\n\t\t\t$this->MIN_LAT->HrefValue = \"\";\n\n\t\t\t// SEG_LAT\n\t\t\t$this->SEG_LAT->HrefValue = \"\";\n\n\t\t\t// GRA_LONG\n\t\t\t$this->GRA_LONG->HrefValue = \"\";\n\n\t\t\t// MIN_LONG\n\t\t\t$this->MIN_LONG->HrefValue = \"\";\n\n\t\t\t// SEG_LONG\n\t\t\t$this->SEG_LONG->HrefValue = \"\";\n\n\t\t\t// FECHA_ACC\n\t\t\t$this->FECHA_ACC->HrefValue = \"\";\n\n\t\t\t// HORA_ACC\n\t\t\t$this->HORA_ACC->HrefValue = \"\";\n\n\t\t\t// Hora_ingreso\n\t\t\t$this->Hora_ingreso->HrefValue = \"\";\n\n\t\t\t// FP_Armada\n\t\t\t$this->FP_Armada->HrefValue = \"\";\n\n\t\t\t// FP_Ejercito\n\t\t\t$this->FP_Ejercito->HrefValue = \"\";\n\n\t\t\t// FP_Policia\n\t\t\t$this->FP_Policia->HrefValue = \"\";\n\n\t\t\t// NOM_COMANDANTE\n\t\t\t$this->NOM_COMANDANTE->HrefValue = \"\";\n\n\t\t\t// TESTI1\n\t\t\t$this->TESTI1->HrefValue = \"\";\n\n\t\t\t// CC_TESTI1\n\t\t\t$this->CC_TESTI1->HrefValue = \"\";\n\n\t\t\t// CARGO_TESTI1\n\t\t\t$this->CARGO_TESTI1->HrefValue = \"\";\n\n\t\t\t// TESTI2\n\t\t\t$this->TESTI2->HrefValue = \"\";\n\n\t\t\t// CC_TESTI2\n\t\t\t$this->CC_TESTI2->HrefValue = \"\";\n\n\t\t\t// CARGO_TESTI2\n\t\t\t$this->CARGO_TESTI2->HrefValue = \"\";\n\n\t\t\t// Afectados\n\t\t\t$this->Afectados->HrefValue = \"\";\n\n\t\t\t// NUM_Afectado\n\t\t\t$this->NUM_Afectado->HrefValue = \"\";\n\n\t\t\t// Nom_Afectado\n\t\t\t$this->Nom_Afectado->HrefValue = \"\";\n\n\t\t\t// CC_Afectado\n\t\t\t$this->CC_Afectado->HrefValue = \"\";\n\n\t\t\t// Cargo_Afectado\n\t\t\t$this->Cargo_Afectado->HrefValue = \"\";\n\n\t\t\t// Tipo_incidente\n\t\t\t$this->Tipo_incidente->HrefValue = \"\";\n\n\t\t\t// Riesgo\n\t\t\t$this->Riesgo->HrefValue = \"\";\n\n\t\t\t// Parte_Cuerpo\n\t\t\t$this->Parte_Cuerpo->HrefValue = \"\";\n\n\t\t\t// ESTADO_AFEC\n\t\t\t$this->ESTADO_AFEC->HrefValue = \"\";\n\n\t\t\t// EVACUADO\n\t\t\t$this->EVACUADO->HrefValue = \"\";\n\n\t\t\t// DESC_ACC\n\t\t\t$this->DESC_ACC->HrefValue = \"\";\n\n\t\t\t// Modificado\n\t\t\t$this->Modificado->HrefValue = \"\";\n\n\t\t\t// llave_2\n\t\t\t$this->llave_2->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}",
"public function renderEditModalHTML()\n {\n $input_form = \"<div class=\\\"form-group\\\">\n <label for=\\\"{{label}}\\\">{{label}}</label>\n <input type=\\\"{{type}}\\\" class=\\\"form-control\\\" id=\\\"edit_input_{{label}}\\\" {{otherAttr}}>\n </div>\";\n $break_line = \"\\n\";\n\n $form_result = \"\";\n $columns = $this->getShowColumn();\n foreach ($columns as $name => $type) {\n $input_type = 'text';\n $other_attr = '';\n\n if ( in_array($name,self::DISABLED_COLUMNS)){\n $other_attr = $other_attr.' disabled';\n }\n\n if ($type == \"bigint\" OR $type == \"integer\"){\n $input_type = 'number';\n }elseif ($type == \"string\"){\n $input_type = 'text';\n }elseif ($type == \"datetime\"){\n $input_type = 'datetime-local';\n }\n\n $one_form = str_replace(\n [\n '{{label}}',\n '{{type}}',\n '{{otherAttr}}',\n ],\n [\n $name,\n $input_type,\n $other_attr,\n ],\n $input_form\n );\n $form_result = $form_result.$one_form.$break_line;\n }\n\n return $form_result;\n }",
"function editRow($table_name, $key_column_name, $key_value, $row)\n {\n foreach($row as $column_name=>$column_value)\n {\n $this->editValue(\n $table_name,\n $key_column_name,\n $key_value,\n $column_name,\n $column_value);\n }\n }",
"function RenderListRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n // Common render codes\n\t\t// NO\n\t\t// Klinik\n\t\t// DOKTER\n\t\t// No_Pasien\n\t\t// Nama\n\t\t// Alamat\n\t\t// Tanggal\n\t\t// Masuk\n\t\t// Lewati\n\t\t// RMOK\n\t\t// CETAK\n\t\t// NOANTRI\n\t\t// NO\n\n\t\t$this->NO->ViewValue = $this->NO->CurrentValue;\n\t\t$this->NO->ViewCustomAttributes = \"\";\n\n\t\t// Klinik\n\t\t$this->Klinik->ViewValue = $this->Klinik->CurrentValue;\n\t\t$this->Klinik->ViewCustomAttributes = \"\";\n\n\t\t// DOKTER\n\t\t$this->DOKTER->ViewValue = $this->DOKTER->CurrentValue;\n\t\t$this->DOKTER->ViewCustomAttributes = \"\";\n\n\t\t// No_Pasien\n\t\t$this->No_Pasien->ViewValue = $this->No_Pasien->CurrentValue;\n\t\t$this->No_Pasien->ViewCustomAttributes = \"\";\n\n\t\t// Nama\n\t\t$this->Nama->ViewValue = $this->Nama->CurrentValue;\n\t\t$this->Nama->ViewCustomAttributes = \"\";\n\n\t\t// Alamat\n\t\t$this->Alamat->ViewValue = $this->Alamat->CurrentValue;\n\t\t$this->Alamat->ViewCustomAttributes = \"\";\n\n\t\t// Tanggal\n\t\t$this->Tanggal->ViewValue = $this->Tanggal->CurrentValue;\n\t\t$this->Tanggal->ViewValue = ew_FormatDateTime($this->Tanggal->ViewValue, 0);\n\t\t$this->Tanggal->ViewCustomAttributes = \"\";\n\n\t\t// Masuk\n\t\t$this->Masuk->ViewValue = $this->Masuk->CurrentValue;\n\t\t$this->Masuk->ViewCustomAttributes = \"\";\n\n\t\t// Lewati\n\t\t$this->Lewati->ViewValue = $this->Lewati->CurrentValue;\n\t\t$this->Lewati->ViewCustomAttributes = \"\";\n\n\t\t// RMOK\n\t\t$this->RMOK->ViewValue = $this->RMOK->CurrentValue;\n\t\t$this->RMOK->ViewCustomAttributes = \"\";\n\n\t\t// CETAK\n\t\t$this->CETAK->ViewValue = $this->CETAK->CurrentValue;\n\t\t$this->CETAK->ViewCustomAttributes = \"\";\n\n\t\t// NOANTRI\n\t\t$this->NOANTRI->ViewValue = $this->NOANTRI->CurrentValue;\n\t\t$this->NOANTRI->ViewCustomAttributes = \"\";\n\n\t\t// NO\n\t\t$this->NO->LinkCustomAttributes = \"\";\n\t\t$this->NO->HrefValue = \"\";\n\t\t$this->NO->TooltipValue = \"\";\n\n\t\t// Klinik\n\t\t$this->Klinik->LinkCustomAttributes = \"\";\n\t\t$this->Klinik->HrefValue = \"\";\n\t\t$this->Klinik->TooltipValue = \"\";\n\n\t\t// DOKTER\n\t\t$this->DOKTER->LinkCustomAttributes = \"\";\n\t\t$this->DOKTER->HrefValue = \"\";\n\t\t$this->DOKTER->TooltipValue = \"\";\n\n\t\t// No_Pasien\n\t\t$this->No_Pasien->LinkCustomAttributes = \"\";\n\t\t$this->No_Pasien->HrefValue = \"\";\n\t\t$this->No_Pasien->TooltipValue = \"\";\n\n\t\t// Nama\n\t\t$this->Nama->LinkCustomAttributes = \"\";\n\t\t$this->Nama->HrefValue = \"\";\n\t\t$this->Nama->TooltipValue = \"\";\n\n\t\t// Alamat\n\t\t$this->Alamat->LinkCustomAttributes = \"\";\n\t\t$this->Alamat->HrefValue = \"\";\n\t\t$this->Alamat->TooltipValue = \"\";\n\n\t\t// Tanggal\n\t\t$this->Tanggal->LinkCustomAttributes = \"\";\n\t\t$this->Tanggal->HrefValue = \"\";\n\t\t$this->Tanggal->TooltipValue = \"\";\n\n\t\t// Masuk\n\t\t$this->Masuk->LinkCustomAttributes = \"\";\n\t\t$this->Masuk->HrefValue = \"\";\n\t\t$this->Masuk->TooltipValue = \"\";\n\n\t\t// Lewati\n\t\t$this->Lewati->LinkCustomAttributes = \"\";\n\t\t$this->Lewati->HrefValue = \"\";\n\t\t$this->Lewati->TooltipValue = \"\";\n\n\t\t// RMOK\n\t\t$this->RMOK->LinkCustomAttributes = \"\";\n\t\t$this->RMOK->HrefValue = \"\";\n\t\t$this->RMOK->TooltipValue = \"\";\n\n\t\t// CETAK\n\t\t$this->CETAK->LinkCustomAttributes = \"\";\n\t\t$this->CETAK->HrefValue = \"\";\n\t\t$this->CETAK->TooltipValue = \"\";\n\n\t\t// NOANTRI\n\t\t$this->NOANTRI->LinkCustomAttributes = \"\";\n\t\t$this->NOANTRI->HrefValue = \"\";\n\t\t$this->NOANTRI->TooltipValue = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}",
"public function renderRow(): void\n {\n $this->tRow->set($this->model);\n\n if ($this->useHtmlTags) {\n // prepare row-specific HTML tags\n $htmlTags = [];\n\n foreach ($this->hook(Table\\Column::HOOK_GET_HTML_TAGS, [$this->model]) as $ret) {\n if (is_array($ret)) {\n $htmlTags = array_merge($htmlTags, $ret);\n }\n }\n\n foreach ($this->columns as $name => $columns) {\n if (!is_array($columns)) {\n $columns = [$columns];\n }\n $field = is_int($name) ? null : $this->model->getField($name);\n foreach ($columns as $column) {\n $htmlTags = array_merge($column->getHtmlTags($this->model, $field), $htmlTags);\n }\n }\n\n // Render row and add to body\n $this->tRow->dangerouslySetHtml($htmlTags);\n $this->tRow->set('dataId', (string) $this->model->getId());\n $this->template->dangerouslyAppendHtml('Body', $this->tRow->renderToHtml());\n $this->tRow->del(array_keys($htmlTags));\n } else {\n $this->template->dangerouslyAppendHtml('Body', $this->tRow->renderToHtml());\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Formats the value as a date and time. | public function formatDatetime($value)
{
return Yii::app()->dateFormatter->formatDateTime($value, $this->dateFormatWidth, $this->timeFormatWidth);
} | [
"public function formatTime($value)\n\t{\n\t\treturn date($this->timeFormat,$this->normalizeDateValue($value));\n\t}",
"public function modifierFormatDateTime($value)\n {\n $params = func_get_args();\n array_shift($params);\n $formatStr = implode(':', $params);\n switch ($formatStr) {\n case 'full':\n $_coreFormat = Mage_Core_Model_Locale::FORMAT_TYPE_FULL;\n break;\n case 'long':\n $_coreFormat = Mage_Core_Model_Locale::FORMAT_TYPE_LONG;\n break;\n case 'medium':\n $_coreFormat = Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM;\n break;\n case 'short':\n $_coreFormat = Mage_Core_Model_Locale::FORMAT_TYPE_SHORT;\n break;\n default:\n $_coreFormat = null;\n break;\n }\n if ($_coreFormat) {\n //new format date processing\n if (is_numeric($value)) $value = date('d-m-Y H:i:s', $value);\n Mage::app()->getLocale()->emulate($this->getStoreId());\n $_dateStr = Mage::helper('core')->formatDate($value, $_coreFormat);\n Mage::app()->getLocale()->revert();\n return $_dateStr;\n }\n\n if (is_numeric($value)) return date($formatStr, $value);\n\n $date = date_parse($value);\n if (false === $date\n || (isset($date['error_count'])\n && $date['error_count']\n )\n ) return $value;\n\n return date($formatStr, mktime($date['hour'], $date['minute'], $date['second'], $date['month'], $date['day'], $date['year']));\n }",
"public function formatDate($value)\n\t{\n\t\treturn date($this->dateFormat,$this->normalizeDateValue($value));\n\t}",
"function acf_format_date($value, $format) {}",
"public function formatTime($value)\n\t{\n\t\treturn date($this->timeFormat,strtotime($value));\n\t}",
"public function formatDate($value)\n\t{\n\t\treturn date('Y-m-d', $value);\n\t}",
"public function formatDate($value)\n {\n $return = \"'\" . date($this->dateFormat, strtotime($value)) . \"'\";\n\n return $return;\n }",
"abstract public function formatDateTime(): string;",
"function acf_format_date( $value, $format ) {\n}",
"public function setDatetimeFormatAttribute($value)\n {\n $this->attributes['datetime_format'] = $value;\n $this->attributes['date_format'] = get_date_format_from_datetime_format($value);\n }",
"protected function getFormattedDate()\n\t{\n\t\t$value = $this->getValue();\n\t\t$defaultText = $this->getDefaultText();\n\t\tif(empty($value) && !empty($defaultText))\n\t\t\treturn $this->getDefaultText();\n\n\t\t$app = $this->getApplication()->getGlobalization();\n\n\t\t//initialized the default class wide formatter\n\t\tif(self::$formatter===null)\n\t\t\tself::$formatter = new DateFormat($app->getCulture());\n\n\t\t$culture = $this->getCulture();\n\n\t\t//return the specific cultural formatted date time\n\t\tif(strlen($culture) && $app->getCulture() !== $culture)\n\t\t{\n\t\t\t$formatter = new DateFormat($culture);\n\t\t\treturn $formatter->format($value,\n\t\t\t\t\t\t\t\t\t $this->getPattern(),\n\t\t\t\t\t\t\t\t\t $this->getCharset());\n\t\t}\n\t\t//return the application wide culture formatted date time.\n\t\t$result = self::$formatter->format($value,\n\t\t\t\t\t\t\t\t\t\t$this->getPattern(),\n\t\t\t\t\t\t\t\t\t\t$this->getCharset());\n\t\treturn $result;\n\t}",
"public static function get_date_time_format()\n {\n return apply_filters('rp_wcec_date_time_format', (RP_WCEC::get_date_format() . ' ' . RP_WCEC::get_time_format()));\n }",
"function getFormattedDate() {\r\n return date(\"Y.m.d - H:i\");\r\n }",
"public function getDatetimeFormat() : string\n\t{\n\t\treturn 'Y-m-d\\TH:i:sP';\n\t}",
"public function getTimeFormatter();",
"public function asDatetime($value, $format = null)\n\t{\n\t\tif (in_array($value, ['0000-00-00 00:00:00', '1970-01-01 00:00:00', '0002-12-02 07:07:12', '-0001-11-30 00:00:00', ''])) {\n\t\t\treturn $this->nullDisplay;\n }\n\n\t\treturn parent::asDatetime($value, $format);\n\t}",
"public function formatTime() {\n\t $timeFormat = \\GO::user() ? \\GO::user()->time_format : \\GO::config()->default_time_format;\n\t return parent::format($timeFormat);\n\t}",
"public static function prepareDatetime($value)\n {\n // @TODO: Implement the formatter to handle DateTime objects and strtotime strings to convert to datetime automatically\n return $value;\n }",
"public function formatTime() {\n\t\treturn $this->list->getLanguage()->userTime( $this->getTimestamp(),\n\t\t\t$this->list->getUser() );\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if a User is following a given serie. Return true if there is one row in table user_serie with the id of the serie, and of the user | public function checkIfFollow($userId, $serieId) {
$users = Users::find($userId)
->series()
->where('serie_id', '=', $serieId)
->count();
if ($users === 1) {
$thereIsOne = json_encode(true);
return $thereIsOne;
} else if ($users === 0) {
$thereIsNone = json_encode(false);
return $thereIsNone;
}
} | [
"public function following(User $user){\n return $this->follows()\n ->where('following_user_id', $user->id)\n ->exists();\n }",
"public function isFollowing(User $user)\n {\n /* @var $redis Connection */\n $redis = Yii::$app->redis;\n return (bool) $redis->sismember(\"user:{$this->getId()}:subscriptions\", $user->getId());\n }",
"public function is_followed_by($user) {\n return $this->redis->sismember($this->user_followed_by_db.$this->id, $user);\n }",
"public function is_following($user) {\n return $this->redis->sismember($this->user_follow_db.$this->id, $user);\n }",
"public function isFollowing(): bool\n {\n return $this->followers()->where('user_id', Auth::user()->id)->count() === 1;\n }",
"public function is_followed_by($user) {\n\t\treturn $this->redis()->sIsMember(\"graph:user:{$this->id}:followed_by\", $user);\n\t}",
"public function followingUser($user_id) {\n\t\t\tif(eregi(\"^[0-9]{1,11}$\", $user_id)){\n\t\t\t\t$sql = new SQL();\n\t\t\t\tif($sql->getCount(\"SELECT * FROM \".$sql->prefix.\"UserFollowUser WHERE follower=\".$this->userId.\" AND following=\".$user_id)>0)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"function isFollowing($connection, $user1, $user2) {\n\t$friendship = $connection->get(\"friendships/show\", [\"source_id\" => $user1, \"target_id\" => $user2]);\n\t//3017389047 and 87701473\n\t//echo '<pre>'; print_r($friendship); echo '</pre>';\n\t$following = $friendship->relationship->source->following;\n\t\n\treturn $following==1;\n}",
"public function isFollower($userObj) {\n\t\t$follower_id = $this->pkId;\t\n\t\t$user_id = $userObj->pkId;\n\t\t\n\t\t$query = 'select * from '. self::FOLLOWER_TABLE . ' where user_id='. $user_id .\n\t\t\t\t' and follower_id = '. $follower_id;\n\t\t\n\t\t#echo $query;\n\t\t$resultSet = DBAccess::runQuery($query);\n\t\t\n\t\tif ($resultSet == NULL || $resultSet->num_rows === 0) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t }",
"public function follows($param) \n\t{\n\t\t$user_id = $param instanceof User ? $param->id : $param;\n\t\t// Allow the user to pass in a User object, or an id\n\n\t\t$relationship = $this->api->getRelationship($user_id);\n\n\t\treturn $relationship->outgoing_status === 'follows';\n\t}",
"public function isFollowedBy(User $otherUser)\n {\n \t$idsWhoOtherUserFollows = $otherUser->subscribes()\n \t\t->lists('followed_id');\n\n \treturn in_array($this->id, $idsWhoOtherUserFollows);\n }",
"public function isFollowerOf($userId) {\n return Follow::findOne(['followerId'=>$this->userId, 'followeeId'=>$userId]) != null;\n }",
"public function checkFollow()\n {\n $follow = $this->followers()->find(Auth::user()->id);\n if ($follow) {\n return true;\n } else {\n return false;\n }\n }",
"public function followedEachOther(User $user)\n {\n return $user->followed($this) && $this->followed($user);\n }",
"public function follow($user)\n {\n return $user->hasPermission('follow_stores');\n }",
"public function isQFollower($question_id, $user_id)\n {\n return QuestionFollow::whereQuestionId($question_id)->whereUserId($user_id)->exists();\n }",
"public function isUserFollowed(Product $product);",
"public function isFollowing($targetUser, $user = null)\n {\n Argument::i()\n ->test(1, 'string')\n ->test(2, 'string', 'null');\n \n // search and replace\n if ($user) {\n $link = StringType::i($this->link['CHECK_FOLLOW'])\n ->str_replace(':user', $user)\n ->str_replace(':target_user', $targetUser)\n ->get();\n } else {\n $link = StringType::i($this->link['FOLLOW_USER'])\n ->str_replace(':user', $targetUser)\n ->get();\n }\n \n return $this->getResponse($link);\n }",
"function isMutualFollower($id, $followingId){\n $sql = \"select 1 as follows from user_follows uf inner join user_follows uf2 on (uf.user_id=uf2.follows_user) where uf.user_id=$id and uf.follows_user=$followingId and uf2.user_id=$followingId and uf2.follows_user=$id\";\n \n $response = false;\n $rs = $this->query($sql);\n foreach($rs as $i => $values){\n if($rs[$i][0]['follows'] != null){\n $response = true;\n }\n }\n \n $this->log(\"UserFollows->isMutualFollower() returns $response for id $id and followingId $followingId\", LOG_DEBUG);\n return $response;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/! \brief Returns a list of used item names for a given path. | function getUsedNamesForPath($path)
{
$item = $this->dataModel->getItemByPath($path);
$names = array();
foreach($item['children'] as $path => $data){
$names[] = $data['name'];
}
return($names);
} | [
"public function getNames()\n {\n $allItems = [];\n foreach ($this->items as $item) {\n $allItems[] = $item->getName();\n }\n return $allItems;\n }",
"public function listItems($path, $options = null);",
"public function get_arrPathItems()\n {\n return $this->arrPathItems;\n }",
"public function getPathwayNames()\n\t{\n\t\t$names = array();\n\n\t\t// Build the names array using just the names of each pathway item\n\t\tforeach ($this->_pathway as $item)\n\t\t{\n\t\t\t$names[] = $item->name;\n\t\t}\n\n\t\t// Use array_values to reset the array keys numerically\n\t\treturn array_values($names);\n\t}",
"function getItems($path = '') {\n\t\t$path = $this->sanitizePath($path);\n\t\t$this->prepareMode($path);\n\t\t$items = array();\n\t\t$completePath = $this->itemCompletePath;\n\t\t// If path is dir, glob it.\n\t\tif ($this->mode == 'dir') {\n\t\t\tif (substr($completePath,-1,1) != '/') {\n\t\t\t\t$completePath.='/';\n\t\t\t}\n\t\t\t$filepaths = glob($completePath.'*');\n\t\t\tforeach($filepaths as $filepath) {\n\t\t\t\tif (is_dir($filepath)) {\n\t\t\t\t\t$items []= array('type' => 'dir', 'name' => substr($filepath,strrpos($filepath, '/')+1), 'path' => str_replace($this->config->langBasePath.$this->config->mainLanguage.'/', '', $filepath));\n\t\t\t\t}\n\t\t\t\telseif(is_file($filepath)) {\n\t\t\t\t\t$item = array('type' => 'file', 'name' => substr($filepath,strrpos($filepath, '/')+1), 'languages' => array(), 'path' => str_replace($this->config->langBasePath.$this->config->mainLanguage, '', $filepath));\n\t\t\t\t\tforeach($this->languages as $language) {\n\t\t\t\t\t\t$langPath = $this->config->langBasePath.$language.$item['path'];\n\t\t\t\t\t\t$pathDisp = $language.$item['path'];\n\t\t\t\t\t\tif (file_exists($langPath)) {\n\t\t\t\t\t\t\t$item['languages'] []= array('path' => $pathDisp, 'name' => $language);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$items []= $item;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (is_file($completePath)) {\n\t\t\t\t$entries = $this->readFile($completePath);\n\t\t\t\tforeach($entries as $key=>$value) {\n\t\t\t\t\t$items []= array('type' => 'entry', 'name' => $key, 'value' => $value, 'path' => $path);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $items;\n\t}",
"public function getParentNames($itemName);",
"public function getTakenPaths(): array;",
"public function getPlantSearchableNames();",
"public function getClassPathList();",
"function _get_item_segments(){\n $segments = \"electrical/instrument/\";\n return $segments;\n}",
"public function getItemList(){\n $items = [];\n\n foreach($this->inventory as $item)\n array_push($items, $item->getName());\n\n return $items;\n }",
"public function getAvatarItemFileUsage(): array\n {\n $filesInUse = array_map(function ($item) {\n return strtolower($item->filename);\n }, $this->provider->getItems());\n\n $files = array_merge(\n glob(storage_path(self::ITEM_FILE_LOCATION . '*.png')),\n glob(storage_path(self::BACKGROUND_FILE_LOCATION . '*.png'))\n );\n\n $usage = array_map(function ($file) use ($filesInUse) {\n return [\n 'filename' => $file,\n 'inUse' => in_array(strtolower(basename($file)), $filesInUse)\n ];\n }, $files);\n\n return $usage;\n }",
"static function getAllUsedItemsForUser() {\n $items = [];\n\n $types = ['Computer', 'Monitor', 'Peripheral', 'Phone', 'Printer', 'SoftwareLicense', 'PluginBadgesBadge'];\n\n $users_id = Session::getLoginUserID();\n foreach ($types as $itemtype) {\n if (!($item = getItemForItemtype($itemtype))) {\n continue;\n }\n $condition = ['users_id' => $users_id];\n if ($item->maybeTemplate()) {\n $condition['is_template'] = 0;\n }\n if ($item->maybeDeleted()) {\n $condition['is_deleted'] = 0;\n }\n $dbu = new DbUtils();\n $condition += $dbu->getEntitiesRestrictCriteria(getTableForItemType($itemtype), '', '', true);\n\n $objects = $item->find($condition);\n\n $nb = count($objects);\n if ($nb > 0) {\n foreach ($objects as $object) {\n $items[$itemtype][] = $object;\n }\n }\n }\n return $items;\n }",
"static function dirNameInfos($path){\n\t\t$arrInfos = explode('__', basename($path) );\n\t\t$assocArrInfos=array();\n\t\tif( count($arrInfos)==1 && strlen($arrInfos[0])==18 ){$assocArrInfos['id']=$arrInfos[0];}\n\t\telseif(count($arrInfos)==1){return false;}\n\t\telse{ for($i=0; $i<count($arrInfos); $i+=2){ $assocArrInfos[$arrInfos[$i]]=$arrInfos[$i+1]; } }\n\t\treturn $assocArrInfos;\n\t}",
"public function listItems();",
"static function getUsedItemtypes() {\n global $DB;\n\n $types= [];\n $iterator = $DB->request([\n 'SELECT' => 'itemtype',\n 'DISTINCT' => true,\n 'FROM' => static::getTable()\n ]);\n while ($data = $iterator->next()) {\n $types[] = $data['itemtype'];\n }\n return $types;\n }",
"public function getFullTakenPaths(): array;",
"private function getItemNames($ids) {\n return $this->Stock->Item->find('list', array(\n 'fields' => array('item_id', 'short_name'),\n 'conditions' => array(\n 'item_id' => $ids\n )\n ));\n }",
"protected static function collectUsedIcons() {\n\t\treturn array_filter(static::collectIcons(), function($name) {\n\t\t\treturn isset(static::$usedIcons[$name]);\n\t\t}, ARRAY_FILTER_USE_KEY);\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the hint for an exception handler. | protected function handlerHint(callable $callback)
{
$reflection = new ReflectionFunction($callback);
$exception = $reflection->getParameters()[0];
return $exception->getType()->getName();
} | [
"public function getExceptionHandler() {\r\n if (!isset($this->_settings['exception-handler'])) {\r\n return null;\r\n }\r\n return (string) $this->_settings['exception-handler'];\r\n }",
"public function getHint() {\n\t\tif (empty($this->hint)) {\n\t\t\treturn $this->message;\n\t\t}\n\t\treturn $this->hint;\n\t}",
"public function get_hint() {\n\t\treturn $this->hint;\n\t}",
"protected function _exception_handler ()\n {\n if (isset ($this->context->exception_handler))\n {\n return $this->context->exception_handler;\n }\n \n return null;\n }",
"public function getHint()\n {\n return $this->hint;\n }",
"public function getHint() {\n\t\treturn $this->hint;\n\t}",
"public function getErrorHintLabel();",
"public function hint_key() {\n return $this->hintkey;\n }",
"public function getErrorHandler() {\r\n if (!isset($this->_settings['error-handler'])) {\r\n return null;\r\n }\r\n return (string) $this->_settings['error-handler'];\r\n }",
"public function getSuggestionReason()\n {\n if (array_key_exists(\"suggestionReason\", $this->_propDict)) {\n return $this->_propDict[\"suggestionReason\"];\n } else {\n return null;\n }\n }",
"public function getHint() {\n return $this->wordContext->getHint();\n }",
"public function getHint() { return $this->data['hint']; }",
"public function captureLastError(/*?EventHint $hint = null*/): ?EventId;",
"public function getExceptionhandler()\n {\n return $this->exceptionhandler;\n }",
"public function getExceptionHandler()\n {\n return $this->exceptionHandler;\n }",
"public static function getExceptionsHandler()\n {\n return static::$exceptionsHandler;\n }",
"public function getHintUrl()\n {\n if (null === $this->_hintUrl) {\n $this->_hintUrl = Mage::helper('core/hint')->getHintByCode(self::XPATH_HINT_KEY);\n }\n return $this->_hintUrl;\n }",
"public function get_exception(/* ... */)\n {\n return $this->_exception;\n }",
"public function getTriggerHint(): string;"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Required. The notification category to send the test message for. All contacts must be subscribed to this category. Generated from protobuf field .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; | public function getNotificationCategory()
{
return $this->notification_category;
} | [
"public function setNotificationCategory($var)\n {\n GPBUtil::checkEnum($var, \\Google\\Cloud\\EssentialContacts\\V1\\NotificationCategory::class);\n $this->notification_category = $var;\n\n return $this;\n }",
"public function setNotificationCategories($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::ENUM, \\Google\\Cloud\\EssentialContacts\\V1\\NotificationCategory::class);\n $this->notification_categories = $arr;\n\n return $this;\n }",
"public function sendNotificationFrom($category)\n {\n return $this->notifynder($category)->from($this);\n }",
"public function getNotificationCategory( $notificationType ) {\n\t\tif ( isset( $this->notifications[$notificationType]['category'] ) ) {\n\t\t\t$category = $this->notifications[$notificationType]['category'];\n\t\t\tif ( isset( $this->categories[$category] ) ) {\n\t\t\t\treturn $category;\n\t\t\t}\n\t\t}\n\n\t\treturn 'other';\n\t}",
"public static function getNotificationCategory( $notificationType ) {\n\t\tglobal $wgEchoNotifications, $wgEchoNotificationCategories;\n\t\tif ( isset( $wgEchoNotifications[$notificationType]['category'] ) ) {\n\t\t\t$category = $wgEchoNotifications[$notificationType]['category'];\n\t\t\tif ( isset( $wgEchoNotificationCategories[$category] ) ) {\n\t\t\t\treturn $category;\n\t\t\t}\n\t\t}\n\t\treturn 'other';\n\t}",
"public function category()\n {\n return $this->hasOne(NotificationCategory::class, 'id', 'category_id');\n }",
"public function testRetrieveListNotificationCategory()\n {\n }",
"public function delete_category_notification_comments($notification_category_id)\n\t{\n\t\t$this->db->where(array('notification_category_id' => $notification_category_id));\n\t\t$this->db->select('notification_id');\n\t\t$query = $this->db->get('notification');\n\t\t$row = $query->row();\n\t\t$notification_id = $row->notification_id;\n\t\t\n\t\tif($this->db->delete('notification_comment', array('notification_id' => $notification_id)))\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\t\telse{\n\t\t\treturn FALSE;\n\t\t}\n\t}",
"function supports_categories($notification_code)\n\t{\n\t\treturn true;\n\t}",
"public function send_a_notification_by_condition_in_fcm()\n {\n $this->mockPushNotification = Mockery::mock(PushNotification::class, ['fcm'])->makePartial()->shouldAllowMockingProtectedMethods();\n $response = $this->mockPushNotification->setMessage(['message' => 'Hello World'])\n ->setApiKey('asdfasdffasdfasdfasdf')\n ->setConfig(['dry_run' => false])\n ->sendByTopic(\"'dogs' in topics || 'cats' in topics\", true)\n ->getFeedback();\n $this->assertInstanceOf('stdClass', $response);\n }",
"function supports_categories($notification_code)\n\t{\n\t\treturn false;\n\t}",
"public function supports_categories($notification_code)\n {\n return true;\n }",
"function _getNotificationSettingCategories() {\n\t\treturn array(\n\t\t\t'submissions' => array('categoryKey' => 'notification.type.submissions',\n\t\t\t\t'settings' => array(NOTIFICATION_TYPE_PAPER_SUBMITTED, NOTIFICATION_TYPE_METADATA_MODIFIED, NOTIFICATION_TYPE_SUPP_FILE_MODIFIED)),\n\t\t\t'reviewing' => array('categoryKey' => 'notification.type.reviewing',\n\t\t\t\t'settings' => array(NOTIFICATION_TYPE_REVIEWER_COMMENT, NOTIFICATION_TYPE_REVIEWER_FORM_COMMENT, NOTIFICATION_TYPE_DIRECTOR_DECISION_COMMENT)),\n\t\t\t'editing' => array('categoryKey' => 'notification.type.editing',\n\t\t\t\t'settings' => array(NOTIFICATION_TYPE_GALLEY_MODIFIED, NOTIFICATION_TYPE_SUBMISSION_COMMENT)),\n\t\t\t'site' => array('categoryKey' => 'notification.type.site',\n\t\t\t\t'settings' => array(NOTIFICATION_TYPE_USER_COMMENT, NOTIFICATION_TYPE_NEW_ANNOUNCEMENT)),\n\t\t);\n\t}",
"public function test_notification_customdata() {\n $this->resetAfterTest(true);\n\n $course = $this->getDataGenerator()->create_course();\n\n $options = array('course' => $course->id, 'forcesubscribe' => FORUM_FORCESUBSCRIBE);\n $forum = $this->getDataGenerator()->create_module('forum', $options);\n\n list($author) = $this->helper_create_users($course, 1);\n list($commenter) = $this->helper_create_users($course, 1);\n\n $strre = get_string('re', 'forum');\n\n // New posts should not have Re: in the subject.\n list($discussion, $post) = $this->helper_post_to_forum($forum, $author);\n $expect = [\n 'author' => (object) [\n 'userid' => $author->id,\n 'messages' => 1,\n ],\n 'commenter' => (object) [\n 'userid' => $commenter->id,\n 'messages' => 1,\n ],\n ];\n $this->queue_tasks_and_assert($expect);\n\n $this->send_notifications_and_assert($author, [$post]);\n $this->send_notifications_and_assert($commenter, [$post]);\n $messages = $this->messagesink->get_messages();\n $customdata = json_decode($messages[0]->customdata);\n $this->assertEquals($forum->id, $customdata->instance);\n $this->assertEquals($forum->cmid, $customdata->cmid);\n $this->assertEquals($post->id, $customdata->postid);\n $this->assertEquals($discussion->id, $customdata->discussionid);\n $this->assertObjectHasAttribute('notificationiconurl', $customdata);\n $this->assertObjectHasAttribute('actionbuttons', $customdata);\n $this->assertCount(1, (array) $customdata->actionbuttons);\n }",
"public function testSnaSubscriberNotificationServiceSendByCategory()\n {\n\n }",
"public function getCategory()\n {\n return $this->readOneof(6);\n }",
"public static function createNotificationForSpecialist($question_id, $notifiable, $notifier_id, $notification_message)\n {\n $notifications_message_id = self::getNotificationMessageId($notification_message);\n $getNotifiable = User::find($notifiable);\n switch ($getNotifiable) {\n case $getNotifiable->email == 'psychosocial@maya.com.bd':\n self::createGroupNotification(1, $question_id, $notifier_id, $notifications_message_id);\n break;\n case $getNotifiable->email == 'legal@maya.com.bd':\n self::createGroupNotification(2, $question_id, $notifier_id, $notifications_message_id);\n break;\n case $getNotifiable->email == 'public-health@maya.com.bd':\n self::createGroupNotification(3, $question_id, $notifier_id, $notifications_message_id);\n break;\n case $getNotifiable->email == 'medical@maya.com.bd':\n self::createGroupNotification(4, $question_id, $notifier_id, $notifications_message_id);\n break;\n case $getNotifiable->email == 'beauty@maya.com.bd':\n self::createGroupNotification(5, $question_id, $notifier_id, $notifications_message_id);\n break;\n case $getNotifiable->email == 'pediatric@maya.com.bd':\n self::createGroupNotification(6, $question_id, $notifier_id, $notifications_message_id);\n break;\n case $getNotifiable->email == 'gynecology@maya.com.bd':\n self::createGroupNotification(7, $question_id, $notifier_id, $notifications_message_id);\n break;\n case $getNotifiable->email == 'tech@maya.com.bd':\n self::createGroupNotification(8, $question_id, $notifier_id, $notifications_message_id);\n break;\n case $getNotifiable->email == 'dental@maya.com.bd':\n self::createGroupNotification(9, $question_id, $notifier_id, $notifications_message_id);\n break;\n default:\n self::createNotification($question_id, $notifiable, $notifier_id, $notifications_message_id);\n }\n }",
"public function event($category)\n {\n $message = new Message($this->getEndpoint('events'), $this);\n $message->set('category', $category);\n\n return $message;\n }",
"public function setCategory($var)\n {\n GPBUtil::checkString($var, True);\n $this->category = $var;\n\n return $this;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return internal channel ID. | public function getChannelId(); | [
"public function getChannelID();",
"public function getChannelId() {\n return $this->channel->getChannelId();\n }",
"public function channel_id() : string {\r\n return $this->payload[\"channel\"][\"id\"];\r\n }",
"public function getChannelId()\n {\n return isset($this->channel_id) ? $this->channel_id : null;\n }",
"public function getChannelId()\n {\n return $this->channelId;\n }",
"public function getChannelId()\n {\n return $this->channel_id;\n }",
"public function getChannelId()\n\t{\n\t\treturn $this->channelId; \n\n\t}",
"public function getChannelUniqueid(): string\n {\n return $this->channelUniqueid;\n }",
"private function getChannelId() {\n $event = $this->getEvent();\n\n if (isset($event['channel'])) {\n return $event['channel'];\n }\n\n return $event['channel_id'];\n }",
"public function getChannelKey() : int\n {\n return $this->channelId;\n }",
"public function getChannelNumber(){}",
"public function getChanId()\n {\n return $this->chan_id;\n }",
"public function get_channel_id() {\n\t\tif ( defined( 'WPP_YOUTUBE_CHANNEL_SYNC_CHANNEL_ID' ) ) {\n\t\t\treturn WPP_YOUTUBE_CHANNEL_SYNC_CHANNEL_ID;\n\t\t}\n\n\t\tif ( isset( $this->config[ self::CONFIG_CHANNEL_ID ] ) ) {\n\t\t\treturn $this->config[ self::CONFIG_CHANNEL_ID ];\n\t\t}\n\n\t\treturn self::CONFIG_DEFAULTS[ self::CONFIG_CHANNEL_ID ];\n\t}",
"public function getChannelIdUnwrapped()\n {\n return $this->readWrapperValue(\"channel_id\");\n }",
"public function getChannelKey()\n\t{\n\t\treturn @$this->data['channelKey'];\n\t}",
"public function getChannel()\n {\n $value = $this->get(self::channel);\n return $value === null ? (integer)$value : $value;\n }",
"public function getChannelIdAttribute()\n {\n return $this->channel->id;\n }",
"public function getChannel()\n {\n return $this->getKey('Channel');\n }",
"public function getChannelCode()\n {\n return $this->channelCode;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Encode a string using Q encoding. | public function encodeQ($str, $position = 'text')
{
} | [
"function EncodeQ ($str, $position = \"text\") {\n // There should not be any EOL in the string\n $encoded = preg_replace(\"[\\r\\n]\", \"\", $str);\n\n switch (strtolower($position)) {\n case \"phrase\":\n $encoded = preg_replace(\"/([^A-Za-z0-9!*+\\/ -])/e\", \"'='.sprintf('%02X', ord('\\\\1'))\", $encoded);\n break;\n case \"comment\":\n $encoded = preg_replace(\"/([\\(\\)\\\"])/e\", \"'='.sprintf('%02X', ord('\\\\1'))\", $encoded);\n case \"text\":\n default:\n // Replace every high ascii, control =, ? and _ characters\n $encoded = preg_replace('/([\\000-\\011\\013\\014\\016-\\037\\075\\077\\137\\177-\\377])/e',\n \"'='.sprintf('%02X', ord('\\\\1'))\", $encoded);\n break;\n }\n \n // Replace every spaces to _ (more readable than =20)\n $encoded = str_replace(\" \", \"_\", $encoded);\n\n return $encoded;\n }",
"protected function _prep_q_encoding($str)\n\t{\n\t\t$str = str_replace(array(\"\\r\", \"\\n\"), '', $str);\n\n\t\tif ($this->charset === 'UTF-8')\n\t\t{\n\t\t\t// Note: We used to have mb_encode_mimeheader() as the first choice\n\t\t\t// here, but it turned out to be buggy and unreliable. DO NOT\n\t\t\t// re-add it! -- Narf\n\t\t\tif (ICONV_ENABLED === TRUE)\n\t\t\t{\n\t\t\t\t$output = @iconv_mime_encode('', $str,\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'scheme' => 'Q',\n\t\t\t\t\t\t'line-length' => 76,\n\t\t\t\t\t\t'input-charset' => $this->charset,\n\t\t\t\t\t\t'output-charset' => $this->charset,\n\t\t\t\t\t\t'line-break-chars' => $this->crlf\n\t\t\t\t\t)\n\t\t\t\t);\n\n\t\t\t\t// There are reports that iconv_mime_encode() might fail and return FALSE\n\t\t\t\tif ($output !== FALSE)\n\t\t\t\t{\n\t\t\t\t\t// iconv_mime_encode() will always put a header field name.\n\t\t\t\t\t// We've passed it an empty one, but it still prepends our\n\t\t\t\t\t// encoded string with ': ', so we need to strip it.\n\t\t\t\t\treturn self::substr($output, 2);\n\t\t\t\t}\n\n\t\t\t\t$chars = iconv_strlen($str, 'UTF-8');\n\t\t\t}\n\t\t\telseif (MB_ENABLED === TRUE)\n\t\t\t{\n\t\t\t\t$chars = mb_strlen($str, 'UTF-8');\n\t\t\t}\n\t\t}\n\n\t\t// We might already have this set for UTF-8\n\t\tisset($chars) OR $chars = self::strlen($str);\n\n\t\t$output = '=?'.$this->charset.'?Q?';\n\t\tfor ($i = 0, $length = self::strlen($output); $i < $chars; $i++)\n\t\t{\n\t\t\t$chr = ($this->charset === 'UTF-8' && ICONV_ENABLED === TRUE)\n\t\t\t\t? '='.implode('=', str_split(strtoupper(bin2hex(iconv_substr($str, $i, 1, $this->charset))), 2))\n\t\t\t\t: '='.strtoupper(bin2hex($str[$i]));\n\n\t\t\t// RFC 2045 sets a limit of 76 characters per line.\n\t\t\t// We'll append ?= to the end of each line though.\n\t\t\tif ($length + ($l = self::strlen($chr)) > 74)\n\t\t\t{\n\t\t\t\t$output .= '?='.$this->crlf // EOL\n\t\t\t\t\t.' =?'.$this->charset.'?Q?'.$chr; // New line\n\t\t\t\t$length = 6 + self::strlen($this->charset) + $l; // Reset the length for the new line\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$output .= $chr;\n\t\t\t\t$length += $l;\n\t\t\t}\n\t\t}\n\n\t\t// End the header\n\t\treturn $output.'?=';\n\t}",
"function qoutedPrintableEncode($ascii_in = \"\") {\n\t\tif(strtolower($this->charset) != 'utf-8' && function_exists('imap_8bit')){\n\t\t\treturn imap_8bit($ascii_in);\n\t\t} else {\n\t\t\treturn t3lib_div::quoted_printable($ascii_in);\n\t\t}\n\t}",
"public function encodeQP($string, $line_max = 76)\n {\n // Use native function if it's available (>= PHP5.3)\n if (function_exists('quoted_printable_encode')) {\n return quoted_printable_encode($string);\n }\n // Fall back to a pure PHP implementation\n $string = str_replace(\n array('%20', '%0D%0A.', '%0D%0A', '%'),\n array(' ', \"\\r\\n=2E\", \"\\r\\n\", '='),\n rawurlencode($string)\n );\n return preg_replace('/[^\\r\\n]{' . ($line_max - 3) . '}[^=\\r\\n]{2}/', \"$0=\\r\\n\", $string);\n }",
"function _utf8_encode($in_str)\r\n {\r\n $out_str = $in_str;\r\n if (strtolower($this->CharSet) == 'utf-8' && preg_match('/[\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f-\\xff]/',\r\n $in_str)) {\r\n if ($out_str) {\r\n // define start delimimter, end delimiter and spacer\r\n $end = \"?=\";\r\n $start = \"=?\" . $this->CharSet . \"?B?\";\r\n $spacer = $end . $this->_newline . ' ' . $start;\r\n\r\n // determine length of encoded text within chunks\r\n // and ensure length is even\r\n $length = 512 - strlen($start) - strlen($end);\r\n $length = floor($length / 4) * 4;\r\n\r\n // encode the string and split it into chunks\r\n // with spacers after each chunk\r\n $out_str = base64_encode($out_str);\r\n $out_str = chunk_split($out_str, $length, $spacer);\r\n\r\n // remove trailing spacer and\r\n // add start and end delimiters\r\n $spacer = preg_quote($spacer);\r\n $out_str = preg_replace(\"/\" . $spacer . \"$/\", \"\", $out_str);\r\n $out_str = $start . $out_str . $end;\r\n }\r\n }\r\n return $out_str;\r\n }",
"function encodeString($str, $encoding = ENCODING_BASE64)\n{\n $encoded = '';\n switch (strtolower($encoding)) {\n case ENCODING_BASE64:\n $encoded = chunk_split(\n base64_encode($str),\n STD_LINE_LENGTH,\n EOL\n );\n break;\n case ENCODING_7BIT:\n case ENCODING_8BIT:\n $encoded = normalizeBreaks($str);\n // Make sure it ends with a line break\n if (substr($encoded, -(strlen(EOL))) != EOL) {\n $encoded .= EOL;\n }\n break;\n case ENCODING_QUOTED_PRINTABLE:\n $encoded = encodeQP($str);\n break;\n default:\n $encoded = $str;\n break;\n }\n\n return $encoded;\n}",
"public function EncodeQP($string, $line_max = 76, $space_conv = false) {\n if (function_exists('quoted_printable_encode')) { //Use native function if it's available (>= PHP5.3)\n return quoted_printable_encode($string);\n }\n $filters = stream_get_filters();\n if (!in_array('convert.*', $filters)) { //Got convert stream filter?\n return $this->EncodeQPphp($string, $line_max, $space_conv); //Fall back to old implementation\n }\n $fp = fopen('php://temp/', 'r+');\n $string = preg_replace('/\\r\\n?/', $this->LE, $string); //Normalise line breaks\n $params = array('line-length' => $line_max, 'line-break-chars' => $this->LE);\n $s = stream_filter_append($fp, 'convert.quoted-printable-encode', STREAM_FILTER_READ, $params);\n fputs($fp, $string);\n rewind($fp);\n $out = stream_get_contents($fp);\n stream_filter_remove($s);\n $out = preg_replace('/^\\./m', '=2E', $out); //Encode . if it is first char on a line, workaround for bug in Exchange\n fclose($fp);\n return $out;\n }",
"public function encode();",
"public function setQ(?string $value): void {\n $this->getBackingStore()->set('q', $value);\n }",
"function encoding( $str )\n{\n\t$search = array( '?', '=', '&' );\n\t$replace = array( '%3F', '%3D', '%26' );\n\n\t$str = str_replace( $search,$replace, $str );\n\t$str = urlencode( $str );\n\treturn $str;\n}",
"public function encode($str)\n\t{\n\t\t$str = trim($str);\n\t\tif (strtolower($str) == 'all') {\n\t\t\treturn $str;\n\t\t}\n\t\treturn rawurlencode(base64_encode($str));\n\t}",
"private function encodeRqlString($value)\n {\n return strtr(\n rawurlencode($value),\n [\n '-' => '%2D',\n '_' => '%5F',\n '.' => '%2E',\n '~' => '%7E',\n ]\n );\n }",
"public function encodeString($data);",
"final public static function encodeQuery(string $query):string\n {\n $array = self::parseQuery($query);\n $return = self::buildQuery($array,true);\n\n return $return;\n }",
"function encode_string ($str, $encoding = \"base64\") {\n switch(strtolower($encoding)) {\n case \"base64\":\n // chunk_split is found in PHP >= 3.0.6\n $encoded = chunk_split(base64_encode($str));\n break;\n\n case \"7bit\":\n case \"8bit\":\n $encoded = $this->fix_eol($str);\n if (substr($encoded, -2) != \"\\r\\n\")\n $encoded .= \"\\r\\n\";\n break;\n\n case \"binary\":\n $encoded = $str;\n break;\n\n case \"quoted-printable\":\n $encoded = $this->encode_qp($str);\n break;\n\n default:\n $this->error_handler(sprintf(\"Unknown encoding: %s\", $encoding));\n return false;\n }\n return($encoded);\n }",
"public function encode($string) {\n return utf8_encode($string);\n }",
"private function encodeQS($data)\n {\n $request = '';\n foreach ($data as $key => $value) {\n $request .= $key . '=' . urlencode(stripslashes($value)) . '&';\n }\n $request = substr($request, 0, strlen($request)-1);\n return $request;\n }",
"private static function qsencode ($data) {\n\t\t$req = \"\";\n\t\tforeach ( $data as $key => $value )\n\t\t\t\t$req .= $key . '=' . urlencode( stripslashes($value) ) . '&';\n\t\t// Cut the last '&'\n\t\t$req=substr($req,0,strlen($req)-1);\n\t\treturn $req;\n\t}",
"function encode(string $string, string $encoding): string\n{\n if ($encoding === 'base58') {\n $string = base58_encode($string);\n }\n\n if ($encoding === 'base64') {\n $string = base64_encode($string);\n }\n\n if ($string === false) {\n throw new \\InvalidArgumentException(\"Failed to encode to '$encoding'\");\n }\n\n return $string;\n}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generate the temporary directory for media to be generated in. | protected function generateTempDirectory()
{
$tempdir = vsprintf('%s/media-generate-%s', [
sys_get_temp_dir(),
microtime(true),
]);
if (! wp_mkdir_p($tempdir)) {
WP_CLI::error("Failed to create the temp directory $tempdir");
}
add_action('shutdown', function() use ($tempdir) {
WP_CLI::debug("Cleaning up $tempdir");
foreach(glob("$tempdir/*") as $file) {
unlink($file);
}
rmdir($tempdir);
});
return $tempdir;
} | [
"private function generateTempDirectory()\n {\n $dirname = uniqid();\n\n $fs = new Filesystem();\n\n $fs->mkdir($this->report_dir.$dirname);\n\n return $this->report_dir.$dirname;\n }",
"private function createNewTempdir(){\n $tempdirname = '';\n do{\n $tempdirname = uniqid('temp_',true);\n }while(file_exists(FRONTEND_ABSDIRPATH.ARTICLEIMAGESPATH.$tempdirname));\n\n if(@mkdir(FRONTEND_ABSDIRPATH.ARTICLEIMAGESPATH.$tempdirname)){\n mkdir(FRONTEND_ABSDIRPATH.ARTICLEIMAGESPATH.$tempdirname.DIRECTORY_SEPARATOR.'gallery');\n }else{\n die(json_encode(array('state'=>'error','data'=> $this->text('e28').': '.FRONTEND_ABSDIRPATH.ARTICLEIMAGESPATH.'!')));\n }\n return $tempdirname;\n }",
"private function createTempFolder()\n {\n if (!is_dir($this->passRealPath)) {\n Storage::disk('passgenerator')->makeDirectory($this->passRelativePath);\n }\n }",
"protected function getMediaDirTmpDir()\n {\n return $this->directoryList->getPath(DirectoryList::MEDIA) . DIRECTORY_SEPARATOR . 'tmp';\n }",
"protected function getMediaDirTmpDir()\n {\n\n return $this->directoryList->getPath(DirectoryList::MEDIA) . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR;\n }",
"private function createTmpPath() {\n $this->message->update(\"Creating a working directory.\");\n\n $dir = md5(mktime());\n mkdir($this->getUploadPath() . '/' . $dir);\n $this->tmpPath = $this->getUploadPath() . '/' . $dir;\n copy($this->file, $this->tmpPath . '/' . basename($this->file));\n $this->workingFile = $this->tmpPath . '/' . basename($this->file);\n }",
"public function createTemporaryDirectoryPath();",
"public function createTemporaryDirectory() {\n if (function_exists('sys_get_temp_dir')) {\n $baseDirectory = sys_get_temp_dir();\n } elseif (file_exists('/tmp') &&\n is_dir('/tmp') &&\n is_writeable('/tmp')\n ) {\n $baseDirectory = '/tmp';\n } elseif (is_writeable(dirname(__FILE__))) {\n $baseDirectory = dirname(__FILE__);\n } elseif (is_writeable('./')) {\n $baseDirectory = realpath('./');\n } else {\n $this->skipTest('Can not get writeable directory for file system functions.');\n }\n $counter = 0;\n do {\n $rand = substr(base64_encode(rand()), 0, -2);\n if (substr($baseDirectory, -1) == DIRECTORY_SEPARATOR) {\n $temporaryDirectory = $baseDirectory.'testfs.'.$rand;\n } else {\n $temporaryDirectory = $baseDirectory.DIRECTORY_SEPARATOR.'testfs.'.$rand;\n }\n } while (++$counter < 10 &&\n file_exists($temporaryDirectory) &&\n is_dir($temporaryDirectory));\n $this->_temporaryDirectory = $temporaryDirectory;\n if (file_exists($this->_temporaryDirectory) &&\n is_dir($this->_temporaryDirectory)\n ) {\n $directory = $this->_temporaryDirectory;\n $this->_temporaryDirectory = '';\n $this->fail('Test directory \"'.$directory.'\" did already exists.');\n return FALSE;\n } else {\n $oldMask = umask(0);\n mkdir($this->_temporaryDirectory, 0777, TRUE);\n $this->_temporaryDirectories[] = $this->_temporaryDirectory;\n umask($oldMask);\n return $this->_temporaryDirectory;\n }\n }",
"public function createTemporaryDirectoryPath()\n {\n return $this->factoryByPlatform()\n ->create(sys_get_temp_dir());\n }",
"protected function createTmpDir()\n {\n mkdir($this->getTargetPath());\n }",
"protected function getTemporaryDirectory(): string\n {\n $directory = rtrim(sys_get_temp_dir(), '/\\\\');\n $directory .= DIRECTORY_SEPARATOR;\n return $directory;\n }",
"public function createTempDirectory()\n {\n unlink($file = $this->createTempFile());\n mkdir($file);\n\n return $file;\n }",
"protected function getTmpDownloadDir()\r\n {\r\n $root = __DIR__ . '/../../../../web/';\r\n $downloadDir = $this->container->getParameter('media.tmp_download_dir'); \r\n return (substr($downloadDir, 0, 1) === '/' ? '' : $root) . $downloadDir . (substr($downloadDir, -1) === '/' ? '' : '/');\r\n }",
"function _create_upload_dir()\n {\n global $conf;\n # determine upload dir from conf\n $file_upload = $this->_strip_doubleslashes($conf['savedir'] . '/media/' . $this->getConf('sourcetree') . '/');\n mkdir($file_upload);\n $this->_save_status(\"UPLOADDIRCREATED\");\n }",
"protected function createTemporaryDirectory()\n {\n $prefix = (\n 'configwriter-'\n . (new \\ReflectionClass($this))->getShortName()\n . '-'\n . $this->getName()\n );\n $attemps = 5;\n $path = sprintf(\n \"%s%s%s.%d\",\n sys_get_temp_dir(),\n DIRECTORY_SEPARATOR,\n $prefix,\n random_int(10000000, 99999999)\n );\n\n do {\n if (@mkdir($path)) {\n return $path;\n }\n } while (0 < --$attemps);\n\n throw new RuntimeException(\n sprintf('Failed to create temporary directory [%s]', $path)\n );\n }",
"protected function init_temp_directories() {\n make_writable_directory($this->temproot.'/distfiles');\n make_writable_directory($this->temproot.'/archive');\n }",
"function getTemporaryDirectory()\n\t{\n\t\t$config = Zend_Registry::get('config');\n\n\t\treturn getResourceLocation($config->temp_dir, false);\n\t}",
"private function prepareTempDirectory()\n {\n $path = $this->getTempDirPath();\n if (!is_dir($path)) \n mkdir($path, 0777, true);\n }",
"private function generateTemporaryPath() {\n $file_path = tempnam(ForgeConfig::get('tmp_dir'), '');\n // Erase it but keep the path\n unlink($file_path);\n\n return $file_path;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retorna o disciplina do Diario | public function getDisciplina(){
return $this->disciplina;
} | [
"public function getDisciplina() {\n return $this->oDisciplina;\n }",
"public function getDisciplina() {\n\n return $this->oDisciplina;\n }",
"public function getDisciplina()\n {\n return $this->disciplina;\n }",
"public function GetDiscAtrDisciplina()\n\t{\n\t\treturn $this->_phreezer->GetManyToOne($this, \"atribuicao_ibfk_3\");\n\t}",
"public function get_disciplinas()\n {\n // loads the associated object\n if (empty($this->disciplinas))\n $this->disciplinas = new Disciplinas($this->disciplina_id);\n \n // returns the associated object\n return $this->disciplinas;\n }",
"public function getdisciplinas()\n {\n return $this->disciplinas;\n }",
"public function getId_Discografica()\n {\n return $this->id_discografica;\n }",
"function get_disciplina($id) {\r\n return $this->db->get_where('disciplinas', array('id' => $id))->row_array();\r\n }",
"function lista_consejoDisciplinario(){\n\t\t\t$sql=\"SELECT c.idCadete,c.paterno,c.materno,c.nombres,c.codigo,u.curso2,u.curso,f.idFalta,f.falta,t.clase,d.fechaIngreso,d.idRegistro,d.idConsejo,d.numero,d.gestion\n\t FROM cadetes c, registroCadetes r, gestion g, cursos u,consejoDisciplinario d, faltas f,tipoFaltas t\n\t\t WHERE r.idGestion=g.idGestion and c.idCadete=r.idCadete and u.idCurso=r.idCurso \n\t\t \t\tAND r.idRegistro=d.idRegistro AND f.idFalta=d.idFalta AND t.idTipoFalta=f.idTipoFalta AND d.baja='0'\n\t\t ORDER BY c.paterno\";\n return $this->select ($sql);\n\t}",
"public function getCDFaltantes()\n {\n return $this->CDFaltantes;\n }",
"public function getCodigoDisciplinaGeral() {\n return $this->iCodigoDisciplinaGeral;\n }",
"public function getSueldoDiario()\n {\n return $this->sueldoDiario;\n }",
"function get_aluno_has_disciplina($id)\n {\n return $this->db->get_where('aluno_has_disciplina',array('id'=>$id))->row_array();\n }",
"public function getDistrito()\n {\n return $this->distrito;\n }",
"public function darCosto(){\n $precio = parent::darCosto();\n $precioCine = $precio * 1.65;\n return $precioCine;\n }",
"function notasDisciplinaAluno($cod_disciplina, $matricula) {\n\n\t\t// consulta os códigos das avaliações que são da disciplina\n\t\t$query = \"SELECT Codigo_Avaliacao FROM Avaliacoes WHERE Disciplina_Codigo_Disciplina = \".$cod_disciplina.\" ORDER BY Codigo_Avaliacao\";\n\t\t$consulta = $GLOBALS['pdo']->query($query);\n\t\t$cod_avaliacoes = array();\n\t\tfor ($i = 0; $linha = $consulta->fetch(PDO::FETCH_ASSOC); $i++) {\n\t\t\tarray_push($cod_avaliacoes, $linha['Codigo_Avaliacao']);\n\t\t}\n\n\t\t$notas = array();\n\t\tfor ($i=0; $i < count($cod_avaliacoes); $i++) { \n\t\t\tarray_push($notas, notaAvaliacao($cod_avaliacoes[$i], $matricula));\n\t\t}\n\n\t\treturn $notas;\n\t}",
"function pnts_cm ($medida, $resolucion=72){\r\n return ($medida/(2.54))*$resolucion;}",
"public function getDisciplines()\n {\n return $this->disciplines;\n }",
"public function getPais_codi(){\n return $this->pais_codi;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
My Account navigation template. | function communityservice_account_navigation() {
cs_get_template( 'myaccount/navigation.php' );
} | [
"public function menu_my_account() {\n\t\tdo_action( 'plugpress_account_view' );\n\t}",
"function woocommerce_account_navigation()\n {\n }",
"function kapee_before_account_navigation() {\n\n\t\t// Name to display\n\t\t$current_user = wp_get_current_user();\n\n\t\tif ( $current_user->display_name ) {\n\t\t\t$name = $current_user->display_name;\n\t\t} else {\n\t\t\t$name = esc_html__( 'Welcome!', 'kapee' );\n\t\t}\n\t\t$name = apply_filters( 'kapee_user_profile_name_text', $name );\n\n\t\techo '<div class=\"MyAccount-navigation-wrapper\">';\n\t\t\techo '<div class=\"kapee-user-profile\">';\n\t\t\t\techo '<div class=\"user-avatar\">'. get_avatar( $current_user->user_email, 128 ) .'</div>';\n\t\t\t\techo '<div class=\"user-info\">';\n\t\t\t\t\techo '<h5 class=\"display-name\">'. esc_attr( $name ) .'</h5>';\n\t\t\t\techo '</div>';\n\t\t\techo '</div>';\n\t}",
"public function account()\n {\n $data['title'] = 'Account Settings';\n $data['welcomeMessage'] = 'Welcome to your account settings. Enjoy!';\n\n /** Check to see if user is logged in **/\n $data['isLoggedIn'] = $this->auth->isLogged();\n\n /** Setup Breadcrumbs **/\n \t\t$data['breadcrumbs'] = \"\n \t\t\t<li class='active'>\".$data['title'].\"</li>\n \";\n\n View::renderTemplate('header', $data);\n View::render('Members/Member-Account-Sidebar', $data);\n View::render('Members/Account-Settings', $data);\n View::renderTemplate('footer', $data);\n }",
"public function modern_my_account_template() {\n\t\t\tif ( true === astra_get_option( 'modern-woo-account-view', false ) && is_account_page() ) {\n\t\t\t\tremove_action( 'woocommerce_account_navigation', 'woocommerce_account_navigation' );\n\t\t\t\tadd_action( 'woocommerce_account_navigation', array( $this, 'woocommerce_account_navigation' ) );\n\n\t\t\t\t// Add custom CTA to switch between Login & registration form on WooCommerce my account page.\n\t\t\t\tif ( 'yes' === get_option( 'woocommerce_enable_myaccount_registration' ) ) {\n\t\t\t\t\tadd_action( 'woocommerce_login_form_end', array( $this, 'add_registration_link_text' ) );\n\t\t\t\t\tadd_action( 'woocommerce_register_form_end', array( $this, 'add_member_login_link_text' ) );\n\t\t\t\t}\n\n\t\t\t\tif ( true === astra_get_option( 'show-woo-grid-orders', false ) ) {\n\t\t\t\t\t// Orders content.\n\t\t\t\t\tremove_action( 'woocommerce_account_orders_endpoint', 'woocommerce_account_orders' );\n\t\t\t\t\tadd_action( 'woocommerce_account_orders_endpoint', array( $this, 'astra_addon_woo_account_orders' ) );\n\n\t\t\t\t\t// Downloads content.\n\t\t\t\t\tremove_action( 'woocommerce_available_downloads', 'woocommerce_order_downloads_table', 10 );\n\t\t\t\t\tadd_action( 'woocommerce_available_downloads', array( $this, 'woo_account_downloads' ), 10 );\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"function basel_sticky_toolbar_account_template() {\n\t\tif ( ! basel_woocommerce_installed() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$is_side = basel_get_opt( 'login_sidebar' );\n\t\t$classes = ! is_user_logged_in() && $is_side ? ' login-side-opener' : '';\n\n\t\t?>\n\t\t<div class=\"basel-toolbar-account basel-toolbar-item<?php echo esc_attr( $classes ); ?>\">\n\t\t\t<a href=\"<?php echo esc_url( get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ) ); ?>\">\n\t\t\t\t<span class=\"basel-toolbar-label\">\n\t\t\t\t\t<?php echo esc_html_x( 'My account', 'toolbar', 'basel' ); ?>\n\t\t\t\t</span>\n\t\t\t</a>\n\t\t</div>\n\t\t<?php\n\t}",
"function storefront_myaccount_link() {\n\t\t?>\n\t\t\t<div class=\"set-inline\">\n\t\t\t\t<a class=\"my-account\" href=\"<?php echo esc_url( get_permalink( get_theme_mod('my_account_page')) ); ?>\" title=\"<?php esc_attr_e( 'View your account', 'storefront' ); ?>\">\n\t\t\t\t</a>\n\t\t\t</div>\n\t\t<?php\n\t}",
"private function _generate_main_nav()\n\t {\n\t \tif(isset($_SESSION['username']))\n\t\t{\n\t\t\t$this->load->view('navigation/main_user');\n\t\t}\n\t\telse \n\t\t{\n\t\t\t$this->load->view('navigation/main_visitor');\n\t\t}\n\t }",
"function login_menu() {\n\t$lanaya = CLanaya::Instance();\n\tif($lanaya->user->IsAuthenticated()) {\n\t\t$items = '<img src=\"' . get_gravatar(30) . '\" alt=\"Gravatar\"/>';\n\t\t$items .= \"<a href='\" . create_url('user/profile') . \"'>\" . $lanaya->user->GetAcronym() . \"</a> \";\n\t\tif($lanaya->user->IsAdministrator()) {\n\t\t\t$items .= \"<a href='\" . create_url('acp') . \"'>acp</a> \";\n\t\t}\n\t\t$items .= \"<a href='\" . create_url('user/logout') . \"'>logout</a> \";\n\t} else {\n\t\t$items = \"<a href='\" . create_url('user/login') . \"'>login</a> \";\n\t}\n\t\n\treturn \"<nav>$items</nav>\";\n}",
"function login_menu() {\n\t$lanaya = CLanaya::Instance();\n\tif($lanaya->user->IsAuthenticated()) {\n\t\t$items = '<img src=\"' . get_gravatar(30) . '\" alt=\"Gravatar\"/>';\n\t\t$items .= \" <a href='\" . create_url('user/profile') . \"'>\" . $lanaya->user->GetAcronym() . \"</a> \";\n\t\tif($lanaya->user->IsAdministrator()) {\n\t\t\t$items .= \"<a href='\" . create_url('acp') . \"'>acp</a> \";\n\t\t}\n\t\t$items .= \"<a href='\" . create_url('user/logout') . \"'>logout</a> \";\n\t} else {\n\t\t$items = \"<a href='\" . create_url('user/login') . \"'>login</a> \";\n\t}\n\t\n\treturn \"<nav>$items</nav>\";\n}",
"public function getLinkedAccountsView()\n {\n $this->main_title = \"Vigas - Settings\";\n $this->content_title = \"Settings\";\n\t\tob_start();\n require_once __DIR__.'/../../StreamingPlatforms/View/linkedAccountsView.php';\n $this->content = ob_get_clean();\n $this->getGamesNavbarView();\n }",
"public function account_view()\n {\n $user = $_SESSION[LOGGED_IN];\n $userId = $user[USER_ID];\n $userData[RESULTS] = $this->Dashboardmodel->getUserBankInfo($userId);\n $this->_tpl('Account_view', $userData);\n }",
"function bp_adminbar_account_menu() {\n\tglobal $bp;\n\n\tif ( !$bp->bp_nav || !is_user_logged_in() )\n\t\treturn false;\n\n\techo '<li id=\"bp-adminbar-account-menu\"><a href=\"' . bp_loggedin_user_domain() . '\">';\n\techo __( 'My Account', 'buddypress' ) . '</a>';\n\techo '<ul>';\n\n\t// Loop through each navigation item\n\t$counter = 0;\n\tforeach( (array) $bp->bp_nav as $nav_item ) {\n\t\t$alt = ( 0 == $counter % 2 ) ? ' class=\"alt\"' : '';\n\n\t\tif ( -1 == $nav_item['position'] )\n\t\t\tcontinue;\n\n\t\techo '<li' . $alt . '>';\n\t\techo '<a id=\"bp-admin-' . $nav_item['css_id'] . '\" href=\"' . $nav_item['link'] . '\">' . $nav_item['name'] . '</a>';\n\n\t\tif ( isset( $bp->bp_options_nav[$nav_item['slug']] ) && is_array( $bp->bp_options_nav[$nav_item['slug']] ) ) {\n\t\t\techo '<ul>';\n\t\t\t$sub_counter = 0;\n\n\t\t\tforeach( (array) $bp->bp_options_nav[$nav_item['slug']] as $subnav_item ) {\n\t\t\t\t$link = $subnav_item['link'];\n\t\t\t\t$name = $subnav_item['name'];\n\n\t\t\t\tif ( bp_displayed_user_domain() )\n\t\t\t\t\t$link = str_replace( bp_displayed_user_domain(), bp_loggedin_user_domain(), $subnav_item['link'] );\n\n\t\t\t\tif ( isset( $bp->displayed_user->userdata->user_login ) )\n\t\t\t\t\t$name = str_replace( $bp->displayed_user->userdata->user_login, $bp->loggedin_user->userdata->user_login, $subnav_item['name'] );\n\n\t\t\t\t$alt = ( 0 == $sub_counter % 2 ) ? ' class=\"alt\"' : '';\n\t\t\t\techo '<li' . $alt . '><a id=\"bp-admin-' . $subnav_item['css_id'] . '\" href=\"' . $link . '\">' . $name . '</a></li>';\n\t\t\t\t$sub_counter++;\n\t\t\t}\n\t\t\techo '</ul>';\n\t\t}\n\n\t\techo '</li>';\n\n\t\t$counter++;\n\t}\n\n\t$alt = ( 0 == $counter % 2 ) ? ' class=\"alt\"' : '';\n\n\techo '<li' . $alt . '><a id=\"bp-admin-logout\" class=\"logout\" href=\"' . wp_logout_url( home_url() ) . '\">' . __( 'Log Out', 'buddypress' ) . '</a></li>';\n\techo '</ul>';\n\techo '</li>';\n}",
"function login_menu() {\n $ne = CNeurosis::Instance();\n if($ne->user['isAuthenticated']) {\n $items = \"<a href='\" . create_url('user/profile') . \"'><img class='gravatar' src='\" . get_gravatar(50) . \"' alt=''> \" . $ne->user['acronym'] . \"</a> \";\n if($ne->user['hasRoleAdmin']) {\n $items .= \"<a href='\" . create_url('admin') . \"'>acp</a> \";\n }\n $items .= \"<a href='\" . create_url('user/logout') . \"'>logout</a> \";\n } else {\n $items = \"<a href='\" . create_url('user/login') . \"'>login</a> \";\n }\n return \"<nav id='login-menu'>$items</nav>\";\n}",
"public function accountListAction()\n {\n return $this->render(\n 'SuluContactBundle:Template:account.list.html.twig'\n );\n }",
"public function index() {\n # - this is a double check; nav-bar does not have any call to \"/users/index\".\n # If user is blank, they're not logged in; redirect them to the login page\n # - otherwise, use the profile page as the default user page.\n if (!$this->user) {\n Router::redirect('/users/login');\n } else {\n Router::redirect('/users/profile');\n }\n }",
"function print_side_nav() {\n\t\t\t$list = $this->get_list();\n\t\t\techo '<h4>Templates</h4>';\n\t\t\tif($list) {\n\t\t\t\tforeach($list as $i => $t) {\n\t\t\t\t\techo '<a href=\"' . URL . '/index.php?m=template&action=view&template=' . $i . '\">' . $t . '</a>';\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\techo '<a href=\"' . URL . '/index.php?m=template&action=new\" class=\"add_new\"><b>Add New Template</b></a>';\n\t\t}",
"public function my_account(){\n\t\tif(user()->my_account()){\n\t\t\tsml()->say(text('users:myaccount:say:success'), true);\n\t\t\tapp()->router->redirect('index/view');\n\t\t}\n\t\ttemplate()->display();\n\t}",
"function login_menu() {\n $asf = CAsdf::Instance();\n if($asf->user['isAuthenticated']) {\n $items = \"<a href='\" . create_url('user/profile') . \"'><img class='gravatar' src='\" . get_gravatar(20) . \"' alt=''> \" . $asf->user['acronym'] . \"</a> \";\n if($asf->user['hasRoleAdministrator']) {\n $items .= \"<a href='\" . create_url('acp') . \"'>acp</a> \";\n }\n $items .= \"<a href='\" . create_url('user/logout') . \"'>logout</a> \";\n } else {\n $items = \"<a href='\" . create_url('user/login') . \"'>login</a> \";\n }\n return \"<nav id='login-menu'>$items</nav>\";\n}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Match current action name with provided action name | public function matchAction($action)
{
return $this->action === $action;
} | [
"public function setActionName($action) {}",
"public function get_action($action_name, $context = 'view')\n {\n }",
"protected function RetrieveActionName()\n {\n $this->_process_level++;\n if(count($this->_parts) > $this->_URI_Accept_Level && ($c = $this->_parts[$this->_URI_Accept_Level]))\n {\n if(method_exists($this->controller, \"${c}Action\"))\n {\n if(!is_callable(array($this->controller, \"${c}Action\")))\n {\n throw new \\iMVC\\Exceptions\\NotFoundException(\"The method '\".$this->controller.\"::${c}Action' exists. but not callable [ this may the result of mothod's incorrect modifier... ]\");\n }\n $this->_URI_Accept_Level++;\n $this->action = \"${c}Action\";\n }\n }\n }",
"function manialinksGetAction($name){\n\tglobal $_ml_act;\n\n\tif(!isset($_ml_act[$name]))\n\t\treturn false;\n\treturn $_ml_act[$name];\n}",
"private function getActionName()\n {\n return strtolower($this->_request->getActionName());\n }",
"private function get_action_name($act) {\n return strtolower($act) . \"Action\";\n }",
"function isCustomAction( $name )\n {\n $http = eZHTTPTool::instance();\n $postVariable = 'CollaborationAction_' . $name;\n return $http->hasPostVariable( $postVariable );\n }",
"protected function resolveActionMethodName() {}",
"final protected function assertActionNameEquals($name) {\r\n\t\t$this->assertEquals($name, getActionName());\r\n\t}",
"public function set_actionname( $name ) {\n\t\tif( ! is_string($name))\n\t\t\treturn false;\n\t\t$this->actionname = esc_attr($name);\n\t\t\treturn $this->actionname;\t\n\t}",
"private function determine_form_action_key() {\n\n $unit = new FilterUnit($actionkey,\"GET\",\"^[a-z]+$\",\"validate_regexp,string\");\n $this->action = Accessor::get($unit); // filter failures are thrown in here\n $inputprovider->set(\"action\",$this->action);\n $filelogger->info(\"evaluated action=%, unit=%\",array($this->action,$unit));\n\n }",
"public function getCurrentAction()\n\t{\n\t\tif (null !== $this->_action_name)\n\t\t\treturn $this->_action_name;\n\t}",
"abstract public function getRouteName($action);",
"protected function textActionName()\n {\n return 'action name is equal to expected';\n }",
"private function getActionName()\n {\n if (empty($this->action_name)) {\n $this->action_name = substr($this->name, 0, strlen($this->name) - 6);\n }\n\n return $this->action_name;\n }",
"function test_current_action() {\n\t\tglobal $wp_current_filter;\n\t\t$wp_current_filter[] = 'first';\n\t\t$wp_current_filter[] = 'second'; // Let's say a second action was invoked.\n\n\t\t$this->assertSame( 'second', current_action() );\n\t}",
"private function _setActionName($action)\r\n\t{\r\n\t\t//remove any - chars, and capitalize every word\r\n\t\t$action = ucwords(str_replace('-', ' ', $action));\r\n\t\t$action = str_replace(' ', '', $action);\r\n\t\t//lowercase the first character\r\n\t\t$action[0] = strtolower($action[0]);\r\n\r\n\t\t$this->_action = $action . \"Action\";\t\r\n\t}",
"private function setActionName(): void\n {\n $processedRequestActionName = $this->getProcessedName($this->requestActionName);\n\n $this->actionName = \"action{$processedRequestActionName}\";\n }",
"public function getDispatchAction()\n {\n $args = $this->request->getAsArray('args');\n $arg = array_shift($args);\n if (preg_match('/^(\\w+\\.\\w+)$/', $arg, $matches)) {\n $action = $matches[1];\n return $action;\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Operation removeProductBundleWithHttpInfo Remove product bundle from cart | public function removeProductBundleWithHttpInfo($cart_id, $product_bundle_id)
{
$returnType = '\Swagger\Client\Model\InlineResponse20032';
$request = $this->removeProductBundleRequest($cart_id, $product_bundle_id);
try {
$options = $this->createHttpClientOption();
try {
$response = $this->client->send($request, $options);
} catch (RequestException $e) {
throw new ApiException(
"[{$e->getCode()}] {$e->getMessage()}",
$e->getCode(),
$e->getResponse() ? $e->getResponse()->getHeaders() : null,
$e->getResponse() ? $e->getResponse()->getBody()->getContents() : null
);
}
$statusCode = $response->getStatusCode();
if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
sprintf(
'[%d] Error connecting to the API (%s)',
$statusCode,
$request->getUri()
),
$statusCode,
$response->getHeaders(),
$response->getBody()
);
}
$responseBody = $response->getBody();
if ($returnType === '\SplFileObject') {
$content = $responseBody; //stream goes to serializer
} else {
$content = $responseBody->getContents();
if ($returnType !== 'string') {
$content = json_decode($content);
}
}
return [
ObjectSerializer::deserialize($content, $returnType, []),
$response->getStatusCode(),
$response->getHeaders()
];
} catch (ApiException $e) {
switch ($e->getCode()) {
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\Swagger\Client\Model\InlineResponse20032',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
break;
}
throw $e;
}
} | [
"protected function removeProductBundleRequest($cart_id, $product_bundle_id)\n {\n // verify the required parameter 'cart_id' is set\n if ($cart_id === null || (is_array($cart_id) && count($cart_id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $cart_id when calling removeProductBundle'\n );\n }\n // verify the required parameter 'product_bundle_id' is set\n if ($product_bundle_id === null || (is_array($product_bundle_id) && count($product_bundle_id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $product_bundle_id when calling removeProductBundle'\n );\n }\n\n $resourcePath = '/v3/carts/{cart_id}/product_bundles/{product_bundle_id}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($cart_id !== null) {\n $resourcePath = str_replace(\n '{' . 'cart_id' . '}',\n ObjectSerializer::toPathValue($cart_id),\n $resourcePath\n );\n }\n // path params\n if ($product_bundle_id !== null) {\n $resourcePath = str_replace(\n '{' . 'product_bundle_id' . '}',\n ObjectSerializer::toPathValue($product_bundle_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }",
"function testRemoveBundle() {\n $result = $this->client->bundles->remove(array('id' => $this->bundleId));\n $this->assertTrue($result);\n //client.bundles.remove id: bundleId, (err) ->\n //err.should.equal(no)\n //do done\n }",
"function removeBundle()\n {\n $output ['error'] = 1;\n $bundle_id = FormUtil::getPassedValue('bundle_id', 0, 'REQUEST');\n $shop_id = FormUtil::getPassedValue('shop_id', 0, 'REQUEST');\n $repo = $this->entityManager->getRepository('ZSELEX_Entity_Shop');\n\n $deleteServices = $repo->deleteEntity(null, 'ZSELEX_Entity_ServiceShop',\n array(\n 'a.shop' => $shop_id\n ));\n\n $deleteBundle = $repo->deleteEntity(null, 'ZSELEX_Entity_ServiceBundle',\n array(\n 'a.shop' => $shop_id\n ));\n\n /*\n $deleteBundle = $repo->deleteEntity(null,\n 'ZSELEX_Entity_ServiceBundle',\n array(\n 'a.shop' => $shop_id, 'a.bundle' => $bundle_id\n ));\n */\n // $deleteDemo = $repo->deleteEntity(null, 'ZSELEX_Entity_ServiceDemo', array('a.shop' => $shop_id, 'a.bundle' => $bundle_id));\n /*\n * $updateDemoItem = array('timer_days' => 0);\n * $updateDemo = $repo->updateEntity(null, 'ZSELEX_Entity_ServiceDemo', $updateDemoItem, array('a.shop' => $shop_id, 'a.bundle' => $bundle_id));\n *\n * $updateBundleItem = array('timer_days' => 0);\n * $updateBundle = $repo->updateEntity(null, 'ZSELEX_Entity_ServiceBundle', $updateBundleItem, array('a.shop' => $shop_id, 'a.bundle' => $bundle_id));\n */\n $output ['error'] = 0;\n AjaxUtil::output($output);\n }",
"public function removeProductBundleAsyncWithHttpInfo($cart_id, $product_bundle_id)\n {\n $returnType = '\\Swagger\\Client\\Model\\InlineResponse20032';\n $request = $this->removeProductBundleRequest($cart_id, $product_bundle_id);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }",
"public function removeBundle($observer)\n {\n if ($this->_removeBundleProduct) {\n $items = $observer->getCart()->getItems();\n $session = Mage::getSingleton('checkout/session');\n $discountedProducts = is_null($session->getDiscountedProducts())?array():$session->getDiscountedProducts();\n $discounts = is_null($session->getDiscounts())?array():$session->getDiscounts();\n $duplicates = array();\n foreach ($items as $itemId => $item) {\n if ($item->getProduct()->getTypeId() == 'bundle') {\n $observer->getCart()->removeItem($itemId);\n continue;\n } elseif ($this->_percent >= 0 && is_null($item->getParentItemId()) && !in_array($item->getProductId(), $discounts)) {\n $item->setOriginalCustomPrice(($item->getProduct()->getPrice())*($this->_percent)/100\n + $this->_selectsPrice[$item->getProductId()]);\n $discountedProducts[$this->_removeBundleProduct][] = $item->getId();\n $discounts[] = $item->getProductId();\n }elseif (in_array($item->getProductId(), $discounts) && in_array($item->getProductId(), $this->_addedProducts)) {\n $discountedProducts[$this->_removeBundleProduct][] = $item->getId();\n $duplicates[] = $item->getProductId();\n $this->_addedProducts = array();\n }\n }\n\n $session->setDiscountedProducts($discountedProducts);\n $session->setDiscounts($discounts);\n $session->setDuplicates($duplicates);\n $this->_removeBundleProduct = false;\n $this->_percent = false;\n }\n\n return $this;\n }",
"public function deleteBundleItemWithHttpInfo($id)\n {\n $returnType = '';\n $request = $this->deleteBundleItemRequest($id);\n\n try {\n\n try {\n $response = $this->client->send($request);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n \"[$statusCode] Error connecting to the API ({$request->getUri()})\",\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n return [null, $statusCode, $response->getHeaders()];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 400:\n $data = ObjectSerializer::deserialize($e->getResponseBody(), '\\KnetikCloud\\Model\\Result', $e->getResponseHeaders());\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }",
"function removeImageBundle($bundle)\n\t{\n\t\t$tmp = array();\n\t\t\n\t\tfor ($i = 0; $i < sizeof($this->imageBundles); $i++)\n\t\t{\n\t\t\tif ($this->imageBundles[$i] !== $bundle)\n\t\t\t{\n\t\t\t\tarray_push($tmp, $this->imageBundles[$i]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->imageBundles = $tmp;\n\t}",
"public function removeMapping(Request $request) {\n if (isset($request['bundleId']) && isset($request['productId'])) {\n DB::table('xref_bundle_products')\n ->where('fk_bundle_id', '=', $request['bundleId'])\n ->where('fk_product_id', '=', $request['productId'])\n ->delete();\n return 'success';\n }\n }",
"public function testRemoveProductBundle()\n {\n }",
"function nm_mini_cart_remove_product() {\n\t\t$cart_item_key = $_POST['cart_item_key'];\n\t\t\n\t\t$cart = WC()->instance()->cart;\n\t\t$removed = $cart->remove_cart_item( $cart_item_key ); // Note: WP 2.3 >\n\t\t\n\t\tif ( $removed )\t{\n\t\t $json_array['status'] = '1';\n\t\t $json_array['cart_count'] = $cart->get_cart_contents_count();\n\t\t $json_array['cart_subtotal'] = $cart->get_cart_subtotal();\n\t\t} else {\n\t\t\t$json_array['status'] = '0';\n\t\t}\n\t\t\n\t\techo json_encode( $json_array );\n\t\t\t\t\n\t\texit;\n\t}",
"public function removeProduct($product);",
"protected function removeBundleField() {\n $this->state->delete('entity_test_update.additional_field_storage_definitions');\n $this->state->delete('entity_test_update.additional_bundle_field_definitions.test_bundle');\n }",
"public function delete_bundle(Request $request,$id) {\n \n $user = Bundle::where('id', $id)->firstorfail()->delete();\n $request->session()->flash('flash_message_delete', 'Bundle is Deleted!');\n return redirect()->route('bundle-details');\n \n }",
"public function removeBundle($bundle)\n {\n $kernel = $this->getContainer()->get('kernel');\n $this->reflected = new \\ReflectionObject($kernel);\n\n if (!$this->reflected->getFilename()) {\n return false;\n }\n\n $src = file($this->reflected->getFilename());\n\n $method = $this->reflected->getMethod('registerBundles');\n $lines = array_slice($src, $method->getStartLine() - 1, $method->getEndLine() - $method->getStartLine() + 1);\n\n // Exception if the bundle is not there anyways\n if (false === strpos(implode('', $lines), $bundle)) {\n throw new \\RuntimeException(sprintf('Bundle \"%s\" is already not defined in \"AppKernel::registerBundles()\".', $bundle));\n }\n\n //Finds the bundle inside 'registerBundles' function and removes it.\n foreach ($lines as $key => $line) {\n if (false !== strpos($line, $bundle)) {\n $srcKey = $key + $method->getStartLine() - 1;\n unset($src[$srcKey]);\n }\n }\n\n file_put_contents($this->reflected->getFilename(), implode('', $src));\n\n return true;\n }",
"public function linkRemove($bundleLink, $link)\n {\n $query = array(\n 'bundle_link' => $bundleLink,\n 'link' => $link,\n );\n\n return $this->get('/bundle/link_remove', $query);\n }",
"public function bundleLinkRemove($bundleLink, $link)\n {\n return $this->make('bundle/link_remove', array(\n 'bundle_link' => $bundleLink,\n 'link' => $link,\n ));\n }",
"protected function removeBundle(Bundle $bundle)\n {\n $owner = $bundle->getOwner();\n if ($owner instanceof Owner) {\n $owner->removeBundle($bundle);\n }\n\n // remove bundle from search index\n $this->indexer->deleteBundlesIndexes($bundle);\n\n $this->em->remove($bundle);\n $this->em->flush();\n\n // @todo also delete folder\n\n if ($this->logger) {\n $this->logger->warn(sprintf('Bundle \"%s\" was deleted', $bundle->getName()));\n }\n }",
"public function remove_product(){\n\t \t$productId = $_REQUEST['productId'];\n\t \t$attributeValueId = $_REQUEST['attributeValueId'];\n\t \t\n\t \t//remove_product\n\t \tProductExt::deleteSessionCart($productId, $attributeValueId);\n \t\t\t\n\t \t//view\n\t \tSessionMessage::addSessionMessage(SessionMessage::$SUCCESS, 'Remove product is success');\n\t \t$this->setRender('success');\n }",
"public function removeTagWithHttpInfo($itemname, $tag)\n {\n $returnType = '';\n $request = $this->removeTagRequest($itemname, $tag);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n return [null, $statusCode, $response->getHeaders()];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n }\n throw $e;\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Query get business account by ids | public function getBusinessAccountByIds($ids)
{
return $this->getByIds($ids)->role(UserRole::BUSINESS_ACCOUNT);
} | [
"public function getAllBusinessUnitIds();",
"function SearchAccountsByUserId($userId)\n{\n $GLOBALS['proxy'] = $GLOBALS['customerProxy']; \n \n // Specify the page index and number of customer results per page.\n\n $pageInfo = new Paging();\n $pageInfo->Index = 0; // The first page\n $pageInfo->Size = 100; // The first 100 accounts for this page of results\n\n $ordering = new OrderBy();\n $ordering->Field = OrderByField::Number;\n $ordering->Order = SortOrder::Ascending; \n\n $predicate = new Predicate();\n $predicate->Field = \"UserId\";\n $predicate->Operator = PredicateOperator::Equals;\n $predicate->Value = $userId; \n\n $request = new SearchAccountsRequest();\n $request->Ordering = $ordering;\n $request->PageInfo = $pageInfo;\n $request->Predicates = array($predicate);\n\n return $GLOBALS['proxy']->GetService()->SearchAccounts($request)->Accounts;\n}",
"public function meGetBankAccounts();",
"public function getAccountsWithUsers();",
"public function listAccountIds() //*\n\t{\n\t$this->errorLogging->logInfo(__CLASS__, __METHOD__, \"Called.\");\n\t\n\t$userGroup = $_SESSION[\"usergroup\"];\n\n\t$select_array = array(\n\t\"table\" => 'accounts', \n\t\"where\" => 'WHERE', \n\t\"columns\" => array(\n\t\"account_pk\",\n\t\"account_name\",),\n\t\"returns\" => array(\n\t\"accountPK\",\n\t\"accountName\"),\n\t\"conditions\" => array(\n\t\tarray(\n\t\t\"column\" => \"user_group\",\n\t\t\"operator\" => \"=\",\n\t\t\"value\" => \"$userGroup\",\n\t\t\"concat\" => \"\")\n\t),\n\t\"endingQuery\" => \"\"\n\t);\n\t\n\t$returnedArray = $this->dbConnection->ConstructSelect($select_array); //errors handled by dbase class\n\t$this->responseClass->apiResponse($returnedArray);\n\treturn true;\n\t}",
"public function subaccountGetIds();",
"public function getAccounts();",
"private function findAccountsByIds($ids)\n {\n if (0 === count($ids)) {\n return [];\n }\n\n $queryBuilder = $this->entityManager->createQueryBuilder()\n ->select('CONCAT(\\'a\\', a.id) AS id, a.name AS name')\n ->from($this->accountEntityClass, 'a')\n ->where('a.id IN (:ids)');\n\n $query = $queryBuilder->getQuery();\n $query->setParameter('ids', $ids);\n\n return $query->getArrayResult();\n }",
"public function listIdAccounts(){\n\n $listIdAccounts = [];\n $q = $this->_db->query('SELECT id FROM accounts');\n while ($donnees = $q->fetch(PDO::FETCH_ASSOC)){\n $listIdAccounts[] = $donnees['id'];\n }\n return $listIdAccounts;\n }",
"public function getWhereAccounts($post_id) {\n $return = array();\n $get = array(\n //'limit' => 10,\n 'conditions' => array(array('post_id' => $post_id, 'scheduled' => 1)),\n //'fields' => array('', ''),\n //'order' => array('date'=>'desc')\n );\n //fb users\n $fbusers = $this->FcbUserPosts->find('all', $get);\n if (!empty($fbusers)) {\n foreach ($fbusers as $user) {\n $value = 'fcbuseredit-' . $user['FcbUserPosts']['fcb_uid'];\n array_push($return, $value);\n }\n }\n //fb pages\n $fbpages = $this->FcbPagePosts->find('all', $get);\n if (!empty($fbpages)) {\n foreach ($fbpages as $page) {\n $value = 'fcbpageedit-' . $page['FcbPagePosts']['fcb_uid'] . '-' . $page['FcbPagePosts']['fcb_page_id'];\n array_push($return, $value);\n }\n }\n //twitter\n $twitter = $this->TwUserPosts->find('all', $get);\n if (!empty($twitter)) {\n foreach ($twitter as $account) {\n $value = 'twuseredit-' . $account['TwUserPosts']['tw_uid'];\n array_push($return, $value);\n }\n }\n //return \n return $return;\n }",
"public function list($id){\n\n $account = DB::table('transactions')\n ->where('from',$id)\n ->orWhere('to',$id)\n ->get();\n\n return $account;\n \n }",
"public function getByIds($ids);",
"public function searchByIds($ids = array());",
"function getBusinessAddresses($userId) {\r\n $sql = $this->db->prepare(\"SELECT addressid, postal FROM BUSINESS JOIN USER ON USER.businessID=BUSINESS.businessID WHERE UserID=:user_id\");\r\n $sql->execute(array('user_id' => $userId));\r\n $result = $sql->fetch(PDO::FETCH_ASSOC);\r\n return $result;\r\n }",
"public function getOnlyUserBusinesses()\r\n\t{\r\n\t $userid = sfContext::getInstance()->getUser()->getGuardUser()->getId(); // get the id of the user logged\r\n\t \r\n\t //we will select the investment id for current logged user\r\n\t $query = Doctrine_Manager::getInstance()->getCurrentConnection()->fetchAssoc(\"\r\n\t SELECT investment_application.id FROM investment_application WHERE created_by = '$userid' order by investment_application.id desc limit 1 \r\n\t \");\r\n\t $id = null ;\r\n\t $id2 = null;\r\n\t foreach($query as $q)\r\n\t {\r\n\t $id = $q['id'];\r\n\t }\r\n\t //print $id; exit;\r\n\t $query2 = Doctrine_Manager::getInstance()->getCurrentConnection()->fetchAssoc(\"\r\n\t SELECT business_plan.investment_id FROM business_plan WHERE investment_id = '$id' order by investment_id desc limit 1\r\n\t \");\r\n\t //\r\n\t foreach($query2 as $q2)\r\n\t {\r\n\t $id2 = $q2['investment_id'] ;\r\n\t }\r\n\t // print $id2; exit;\r\n\t ///now check if the two values are not equal, if not we return this value and use to save in BusinessPlanTable and BusinessApplicationStatusTable\r\n\t if($id != $id2 )\r\n\t {\r\n\t return $id;\r\n\t } \r\n\t return \"Identity\";\r\n\t \r\n\t \r\n\t}",
"public static function get_user_accounts()\n {\n $userid=Auth::user()->id;\n $accounts=DB::select(\"select * from accounts where fk_user_id='$userid'\");\n }",
"function _erpal_invoice_helper_get_bank_accounts() {\n return _erpal_basic_helper_get_bank_accounts(); //this will return an array of entities\n}",
"public function getAccountListByNotificationSetting() {\n\t\t$em = $this->getDoctrine()->getManager();\n\t\t\n\t\t//$from for entity name (table name)\n\t\t$from = \"DB\\\\Bundle\\\\AppBundle\\Entity\\\\Account account \";\n\t\t\n\t\t\n\t\t$sql = \"SELECT account.accountId, account.account, account.businessTypeId, account.categoryId, account.creationDate, account.endDate, account.apiKey, account.accountStatus FROM \" . $from;\n\t\t\n\t\t$sql .= \" JOIN DB\\\\Bundle\\\\AppBundle\\Entity\\\\NotificationSettings notificationSettings WITH account.accountId = notificationSettings.accountId ORDER BY account.accountId ASC \";\n\t\t\n\t\t//echo $sql;\n\t\t\n\t\t$query = $em->createQuery($sql);\n\t\t\n\t\t$result = $query->getResult();\n\t\t\n\t\treturn $result;\n\t}",
"public function getAccountsList() {\r\n return $this->_em->getRepository(\"CommercialBankAccount\")->findAll();\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Identifies all metrics used in this worksheet Checks the database for alreadyidentified metrics and interacts with the user if necessary | public function identifyMetrics()
{
$this->shell_io->out('Identifying metrics...');
$unknownMetrics = $this->getUnknownMetrics();
if (!$unknownMetrics) {
$this->shell_io->out(' - Done');
unset($unknownMetrics);
return;
}
$context = $this->getWorksheets()[$this->activeWorksheet]['context'];
$count = count($unknownMetrics);
$this->shell_io->out(sprintf(
"%s new %s found",
$count,
__n('metric', 'metrics', $count)
));
if (!$this->acceptMetricSuggestions) {
$this->shell_io->out(
"\n\n" .
(($count == 1) ? "Options:\n" : "Options for each:\n") .
" - Enter an existing $context metric ID\n" .
" - Enter the name of a new metric to create \n" .
" - Enter nothing to accept the suggested name \n" .
" - Enter \"auto\" to accept all suggested names for this file\n\n" .
'To nest a metric underneath one or more ancestors, separate each level with " > ", ' .
'e.g. "Population > Nerds > Sci-fi nerds > Star Trek nerds"'
);
}
$filename = $this->getFilename();
$worksheetName = $this->activeWorksheet;
foreach ($unknownMetrics as $colNum => $unknownMetric) {
$cleanColName = str_replace("\n", ' ', $unknownMetric['name']);
$this->shell_io->info("\nColumn: $cleanColName");
$suggestedName = $this->getSuggestedMetricName($filename, $worksheetName, $unknownMetric);
$this->shell_io->out('Suggested metric name: ' . $suggestedName);
try {
$metricId = $this->getMetricInput($suggestedName, $unknownMetric);
$this->setMetricId($colNum, $metricId);
} catch (Exception $e) {
$this->shell_io->error('Error: ' . $e->getMessage());
}
unset($cleanColName, $metricId, $suggestedName);
}
unset(
$context,
$count,
$filename,
$unknownMetrics,
$worksheetName
);
} | [
"public function fetchMetrics();",
"public function fetchMetrics()\n {\n $names = array_keys($this->groups);\n $rights = $this->groups;\n\n // build SQL fragments\n $outerSelects = [];\n $innerSelects = [];\n foreach ($names as $group) {\n $outerSelects[] = \"`user_has_$group`\";\n if ($rights[$group])\n $outerSelects[] = \"CASE WHEN `user_has_$group`<>0 THEN (SELECT log_timestamp FROM logging_userindex WHERE log_user=user_id AND log_type IN ('\" . implode(\"','\", $rights[$group]) . \"') ORDER BY log_id DESC LIMIT 1) END AS `last_$group`\";\n $innerSelects[] = \"COUNT(CASE WHEN ug_group='$group' THEN 1 END) AS `user_has_$group`\";\n }\n\n // execute SQL\n $this->db->Connect($this->wiki->name);\n $sql = \"SELECT * FROM (SELECT user_name,(SELECT rev_timestamp FROM revision_userindex WHERE rev_user=user_id ORDER BY rev_timestamp DESC LIMIT 1) AS last_edit,\" . implode(\",\", $outerSelects) . \" FROM (SELECT user_id,user_name,\" . implode(\",\", $innerSelects) . \" FROM user INNER JOIN user_groups ON user_id = ug_user AND ug_group IN('\" . implode(\"','\", $names) . \"') GROUP BY ug_user) AS t_users) AS t_metrics ORDER BY last_edit DESC\";\n return $this->db->query($sql)->fetchAllAssoc();\n }",
"private function checkUnselectableWithStats()\n {\n if (!$this->getConfirmation('Check for unselectable metrics with associated statistics?')) {\n return;\n }\n\n $this->io->out('Finding unselectable metrics with associated statistics...');\n $unselectableMetrics = $this->getSelectableMetrics(false);\n\n $progress = $this->makeProgressBar(count($unselectableMetrics));\n $metricsWithStats = [];\n foreach ($unselectableMetrics as $metric) {\n if ($this->hasStats($metric['id'])) {\n $metricsWithStats[] = $metric;\n }\n $progress->increment(1)->draw();\n }\n\n if (!$metricsWithStats) {\n $this->io->overwrite(' - None found');\n\n return;\n }\n\n $this->io->overwrite(sprintf(\n ' - %s found',\n count($metricsWithStats)\n ));\n\n $this->listMetricResults($metricsWithStats);\n }",
"protected function getMetricsToggles()\n {\n $i = 0;\n $metrics = array();\n foreach ($this->availableMetrics as $metric => $metricData) {\n $unit = Metrics::getUnit($metric, $this->idSite);\n $change = isset($metricData['change']) ? $metricData['change'] : false;\n\n list($first, $last) = $this->getFirstAndLastDataPointsForMetric($metric);\n $details = Piwik::translate('RowEvolution_MetricBetweenText', array(\n NumberFormatter::getInstance()->format($first),\n NumberFormatter::getInstance()->format($last)\n ));\n\n if ($change !== false) {\n $lowerIsBetter = Metrics::isLowerValueBetter($metric);\n if (substr($change, 0, 1) == '+') {\n $changeClass = $lowerIsBetter ? 'bad' : 'good';\n $changeImage = $lowerIsBetter ? 'arrow_up_red' : 'arrow_up';\n } else if (substr($change, 0, 1) == '-') {\n $changeClass = $lowerIsBetter ? 'good' : 'bad';\n $changeImage = $lowerIsBetter ? 'arrow_down_green' : 'arrow_down';\n } else {\n $changeClass = 'neutral';\n $changeImage = false;\n }\n\n $change = '<span class=\"' . $changeClass . '\">'\n . ($changeImage ? '<img src=\"plugins/MultiSites/images/' . $changeImage . '.png\" /> ' : '')\n . $change . '</span>';\n\n $details .= ', ' . Piwik::translate('RowEvolution_MetricChangeText', $change);\n }\n\n // set metric min/max text (used as tooltip for details)\n $max = isset($metricData['max']) ? $metricData['max'] : 0;\n $min = isset($metricData['min']) ? $metricData['min'] : 0;\n $min .= $unit;\n $max .= $unit;\n $minmax = Piwik::translate('RowEvolution_MetricMinMax', array(\n $metricData['name'],\n NumberFormatter::getInstance()->formatNumber($min),\n NumberFormatter::getInstance()->formatNumber($max)\n ));\n\n $newMetric = array(\n 'label' => $metricData['name'],\n 'details' => $details,\n 'minmax' => $minmax,\n 'sparkline' => $this->getSparkline($metric),\n );\n // Multi Rows, each metric can be for a particular row and display an icon\n if (!empty($metricData['logo'])) {\n $newMetric['logo'] = $metricData['logo'];\n }\n\n // TODO: this check should be determined by metric metadata, not hardcoded here\n if ($metric == 'nb_users'\n && $first == 0\n && $last == 0\n ) {\n $newMetric['hide'] = true;\n }\n\n $metrics[] = $newMetric;\n $i++;\n }\n\n return $metrics;\n }",
"public function registerMetrics(): array;",
"private function summarizeUsers() {\n DBManager::Get()->exec(\"INSERT IGNORE INTO user_statistics_uniqueusers (hash, permission, hits, visits) (SELECT hash, permission, SUM(hits) AS hits, COUNT(*) AS visits FROM user_statistics WHERE daystamp<=LAST_DAY(TIMESTAMPADD(MONTH, -1, NOW())) AND daystamp<=TIMESTAMPADD(DAY, -2, NOW()) GROUP BY hash) ON DUPLICATE KEY UPDATE hits=hits+VALUES(hits), visits=visits+VALUES(visits)\");\n }",
"protected function insertMetricsIntoDatabase($metrics): void\n {\n $this->metricRepository->insertOnDuplicateKey($metrics);\n }",
"private function aggregateReport()\n {\n $params = $this->getProcessor()->getParams();\n $period = $params->getPeriod();\n $idSites = $params->getIdSites();\n $metrics = array_values(Audit::METRICS);\n $emulatedDevices = EmulatedDevice::getList(EmulatedDevice::Both);\n\n foreach ($idSites as $idSite) {\n Log::info(\"Will process performance audit for website id = {$idSite}, period = {$period}\");\n foreach ($metrics as $metric) {\n foreach ($emulatedDevices as $emulatedDevice) {\n $table = new DataTable();\n $table->setMaximumAllowedRows(0);\n\n $emulatedDeviceId = EmulatedDevice::getIdFor($emulatedDevice);\n $rows = $this->fetchAllMetrics($idSite, $metric, $period, $emulatedDeviceId);\n foreach ($rows as $row) {\n $url = PageUrl::reconstructNormalizedUrl($row['url'], $row['url_prefix']);\n $url = Common::unsanitizeInputValue($url);\n $table->addRowFromArray([\n Row::COLUMNS => [\n 'label' => $url,\n (new Min())->getName() => $row['min'],\n (new Median())->getName() => $row['median'],\n (new Max())->getName() => $row['max'],\n ],\n Row::METADATA => [\n 'url' => $url\n ]\n ]);\n }\n\n $recordName = sprintf(\n self::DATABASE_RECORD_PREFIX . '%s_%s',\n ucfirst($metric),\n ucfirst($emulatedDevice)\n );\n $this->insertTable($table, $recordName);\n }\n }\n }\n }",
"public function getMetrics();",
"public static function getActiveMetrics() {\n $metrics_repo = self::$em->getRepository(Metric::class);\n $active_metrics = $metrics_repo->findBy(['active' => true], ['name' => 'ASC', 'k' => 'ASC']);\n return $active_metrics;\n }",
"protected function resetMetrics()\n {\n $this->metrics = ['gauges' => [], 'counters' => []];\n }",
"private function get_installed_metrics() {\n\t\t$db = nessquikDB::getInstance();\n\t\t$sql = array (\n\t\t\t'installed' => \"SELECT name FROM metrics WHERE type=':1'\",\n\t\t);\n\n\t\t$stmt = $db->prepare($sql['installed']);\n\t\t$stmt->execute($this->type);\n\n\t\twhile ($row = $stmt->fetch_array()) {\n\t\t\t$this->installed_metrics[] = $row[\"name\"];\n\t\t}\n\n\t\tsort($this->installed_metrics);\n\t}",
"public function metrics(): array;",
"function getMetrics()\n {\n if (!isset($this->metrics)) {\n $this->updateMetrics();\n }\n return $this->metrics;\n }",
"function clear_metrics_data( $uninstalling = false ) {\n\t\tglobal $wpdb;\n\n\t\t$metrics = new \\SearchWP_Metrics();\n\n\t\tif ( ! $uninstalling ) {\n\t\t\tcheck_ajax_referer( 'searchwp_metrics_ajax' );\n\n\t\t\t// Truncate all custom database tables. If uninstalling they're going to get DROPPED.\n\t\t\tforeach ( $metrics->get_db_tables() as $table ) {\n\t\t\t\t$table = $metrics->get_db_prefix() . $table;\n\n\t\t\t\t$wpdb->query( \"TRUNCATE TABLE {$table}\" );\n\t\t\t}\n\t\t}\n\n\t\t$meta_key = str_replace( '_', '\\_', $metrics->get_db_prefix() . 'click_buoy_' ) . '%';\n\n\t\t// Remove all click tracking metadata\n\t\t$wpdb->query(\n\t\t\t\"DELETE FROM $wpdb->postmeta\n\t\t\t\tWHERE meta_key LIKE '\" . $meta_key . \"'\"\n\t\t);\n\n\t\tif ( ! $uninstalling ) {\n\t\t\twp_send_json_success();\n\t\t}\n\t}",
"public static function getAllCounters() {\n $user_id = Yii::$app->getUser()->getId();\n }",
"public function testMetrics() {\r\n\t\t$phpcheckstyle = $GLOBALS['PHPCheckstyle'];\r\n\r\n\t\t$phpcheckstyle->processFiles(array(\r\n\t\t\t'./test/sample/bad_metrics.php'\r\n\t\t));\r\n\r\n\t\t$errorCounts = $phpcheckstyle->getErrorCounts();\r\n\r\n\t\t$this->assertEquals(0, $errorCounts['error'], 'We expect 0 errors of naming');\r\n\t\t$this->assertEquals(0, $errorCounts['ignore'], 'We expect 0 ignored checks');\r\n\t\t$this->assertEquals(1, $errorCounts['info'], 'We expect 1 info');\r\n\t\t$this->assertEquals(3, $errorCounts['warning'], 'We expect 3 warnings');\r\n\t}",
"private function displayClassifiedMetrics()\n {\n foreach (Context::getContexts() as $context) {\n if ($this->getConfirmation(\"Show classified $context metrics? (Percent metrics will be in green)\")) {\n $this->displayMetricGroup($this->metrics[$context]);\n }\n }\n }",
"public function metrics()\n {\n return $this->_metrics;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Displays plugin activity statistics. | private function _displayPluginActivityStatistics()
{
$statistics = array();
// Combine statistics from all plugins.
foreach ( $this->_plugins as $plugin ) {
$statistics = array_merge($statistics, array_filter($plugin->getStatistics()));
}
// Show statistics.
$this->_io->writeln('<debug>Combined Plugin Statistics:</debug>');
foreach ( $statistics as $statistic_type => $occurrences ) {
$this->_io->writeln('<debug> * ' . $statistic_type . ': ' . $occurrences . '</debug>');
}
} | [
"public function show_stats()\r\n {\r\n }",
"function showStatistics() {\n global $options;\n include($options['pluginpath'].\"/statistic/statistics.html.inc.php\");\n}",
"public function actionStatistics()\n {\n return $this->render('statistics');\n }",
"public function plugin_stats() {\n\t\treturn $this->get_break_out_content() . get_template_part( 'html_includes/shortcodes/plugin-stats', array( 'return' => true ) ) . $this->get_content_restart();\n\t}",
"public function stats_page() {\r\n\t\techo '<div id=\"beehive-statistics-app\"></div>';\r\n\r\n\t\t// Enqueue assets.\r\n\t\tAssets::instance()->enqueue_style( 'beehive-statistics-page' );\r\n\t\tAssets::instance()->enqueue_script( 'beehive-statistics-page' );\r\n\t}",
"public function actionStatistics()\n {\n $searchModel = new HanziUserTaskSearch();\n\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('statistics', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }",
"function statistics_init() {\n\telgg_extend_view('core/settings/statistics', 'core/settings/statistics/online');\n\telgg_extend_view('core/settings/statistics', 'core/settings/statistics/numentities');\n}",
"public function actionStatistics()\n {\n $query = Statistics::find()\n ->select('news_id, COUNT(client_ip) as unique_clicks, SUM(count_clicks) as clicks, country_code, date')\n ->groupBy('news_id, client_ip')\n ->asArray()\n ->all();\n\n $provider = new ArrayDataProvider([\n 'allModels' => $query,\n 'pagination' => [\n 'pageSize' => 10,\n ],\n 'sort' => [\n 'attributes' => ['news_id','date'],\n ],\n ]);\n\n return $this->render('statistics', [\n 'dataProvider' => $provider\n ]);\n }",
"public function displayStats()\n {\n // section 127-0-1-1--35dee990:156e03a0457:-8000:0000000000000902 begin\n // section 127-0-1-1--35dee990:156e03a0457:-8000:0000000000000902 end\n }",
"public function statsAction()\n {\n }",
"public function logStats()\r\n {\r\n $logInfo = Logger::getLogInfo();\r\n foreach ($logInfo as $message) {\r\n echo '» ' . $message . '<br>';\r\n }\r\n }",
"public static function statistics() {\n if (Auth::hasAdmin()) {\n $admin_st = new View(\"admin/statistics.php\");\n $admin_st->render();\n } else {\n redirect(\"/admin/login\");\n }\n }",
"public function statistics()\n {\n return view('game.statistics');\n }",
"public function statsTask()\n\t{\n\t\t$filters = array(\n\t\t\t'scope' => 'all',\n\t\t\t'published' => array(0, 1)\n\t\t);\n\n\t\t$stats = Citation::getYearlyStats($filters);\n\n\t\t// Output the HTML\n\t\t$this->view\n\t\t\t->set('stats', $stats)\n\t\t\t->display();\n\t}",
"function display_stats($content) {\n\tglobal $post;\n\t$args = array(\n 'days'=>-1,\n 'limit'=>-1,\n 'post_id'=>$post->ID\n);\n\t if ( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'stats' ) ) {\n\t$results = stats_get_csv('postviews', $args);\n\tob_start();\n\t\t?>\n\t\t\t<span class=\"views\">Views: \n\t\t\t\t<?php echo $results[0]['views']; ?>\n\t\t\t</span>\n\t\t<?php\n\t\t$content .= ob_get_contents();\n\tob_end_clean();\n }\n\nreturn $content;\n }",
"public function printStats () {\n\n print(sprintf(\"Finished converting [%s resources][%s from cache] %s > %s\\n\", $this->stats['total'], $this->stats['cache'], strtoupper($this->source), strtoupper($this->target)));\n }",
"public function statisticAction() {\r\n $this->view->navigation = Engine_Api::_()->getApi('menus', 'core')\r\n ->getNavigation('sesvideo_admin_main', array(), 'sesvideo_admin_main_statistic');\r\n\r\n $videoTable = Engine_Api::_()->getDbtable('videos', 'sesvideo');\r\n $videoTableName = $videoTable->info('name');\r\n\r\n //Total Videos\r\n $select = $videoTable->select()->from($videoTableName, 'count(*) AS totalvideo');\r\n $this->view->totalvideo = $select->query()->fetchColumn();\r\n\r\n //Total featured video\r\n $select = $videoTable->select()->from($videoTableName, 'count(*) AS totalfeatured')->where('is_featured =?', 1);\r\n $this->view->totalvideofeatured = $select->query()->fetchColumn();\r\n\r\n //Total sponsored video\r\n $select = $videoTable->select()->from($videoTableName, 'count(*) AS totalsponsored')->where('is_sponsored =?', 1);\r\n $this->view->totalvideosponsored = $select->query()->fetchColumn();\r\n\r\n //Total favourite video\r\n $select = $videoTable->select()->from($videoTableName, 'count(*) AS totalfavourite')->where('favourite_count <>?', 0);\r\n $this->view->totalvideofavourite = $select->query()->fetchColumn();\r\n\r\n //Total rated video\r\n $select = $videoTable->select()->from($videoTableName, 'count(*) AS totalrated')->where('rating <>?', 0);\r\n $this->view->totalvideorated = $select->query()->fetchColumn();\r\n\r\n //Video Chanels\r\n $chanelTable = Engine_Api::_()->getDbtable('chanels', 'sesvideo');\r\n $chanelTableName = $chanelTable->info('name');\r\n\r\n //Total chanels\r\n $select = $chanelTable->select()->from($chanelTableName, 'count(*) AS totalchanels')->where('chanel_id != ?', '');\r\n $this->view->totalchanel = $select->query()->fetchColumn();\r\n\r\n //Total featured chanel\r\n $select = $chanelTable->select()->from($chanelTableName, 'count(*) AS totalfeaturedchanel')->where('is_featured =?', 1);\r\n $this->view->totalchanelfeatured = $select->query()->fetchColumn();\r\n\r\n //Total sponsored chanel\r\n $select = $chanelTable->select()->from($chanelTableName, 'count(*) AS totalsponsoredchanel')->where('is_sponsored =?', 1);\r\n $this->view->totalchanelsponsored = $select->query()->fetchColumn();\r\n\r\n //Total favourite chanel\r\n $select = $chanelTable->select()->from($chanelTableName, 'count(*) AS totalfavourite')->where('favourite_count <>?', 0);\r\n $this->view->totalchanelfavourite = $select->query()->fetchColumn();\r\n\r\n //Video Playlists\r\n $playlistTable = Engine_Api::_()->getDbtable('playlists', 'sesvideo');\r\n $playlistTableName = $playlistTable->info('name');\r\n\r\n //Total chanels\r\n $select = $playlistTable->select()->from($playlistTable, 'count(*) AS totalplaylist')->where('playlist_id != ?', '');\r\n $this->view->totalplaylist = $select->query()->fetchColumn();\r\n\r\n //Total featured chanel\r\n $select = $playlistTable->select()->from($playlistTable, 'count(*) AS totalfeaturedplaylist')->where('is_featured =?', 1);\r\n $this->view->totalplaylistfeatured = $select->query()->fetchColumn();\r\n\r\n //Total sponsored chanel\r\n $select = $playlistTable->select()->from($playlistTable, 'count(*) AS totalsponsoredplaylist')->where('is_sponsored =?', 1);\r\n $this->view->totalplaylistsponsored = $select->query()->fetchColumn();\r\n $this->view->plugin_name = $this->_pluginName;\r\n }",
"public function action_index() {\n $this->page_data['content'] = \\Sleek\\View::render('pages/statistics', $this->page_data, TRUE);\n }",
"public function statistics()\n {\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: Implement addOffreVideo() method. | public function addOffreVideo($data)
{
$data['etat'] = self::$etatImpMetier->getEtatByNum(1);
$data['image'] = self::$metierImpImage->addImage($data['image']);
$data['duree'] = self::$metierImpDuree->addDuree($data['duree']);
$data['devise'] = self::$deviseImpMetier->getDevise($data['devise']['id']);
$offreVid = self::$daoImpOffreVideo->addOffreVideo($data);
return $offreVid;
} | [
"public function extractEmbedToVideo()\n\t{\n\t\t// test listids with special case such as reminder (252) and agenda (253)\n\t\t$checkList = false;\n\t\tif (!empty($this->listIds))\n\t\t{\n\t\t\tif (!is_array($this->listIds))\n\t\t\t\t$list = unserialize($this->listIds);\n\t\t\telse \n\t\t\t\t$list = $this->listIds;\n\t\t\t\t\n\t\t\tif (in_array('252', $list) || in_array('253', $list))\n\t\t\t\t$checkList = true;\n\t\t}\n\t\t\n\t\t// on ne créé pas de vidéo si agenda ou reminder coché\n\t\tif (!empty($this->embedVideo) && !$checkList)\n\t\t{\n\t\t\t// on récupère le content de la news\t \t\n\t \t$contents = $this->getContents(); \t\t \t\n\t \t$video = new video();\n\t \t\n\t \t// on teste si une vidéo n'existe pas déjà avec l'id de la news\n\t \t$testVideoId = $video->refreshBySourceId($this->id);\n\t \t\n\t \tif (empty($testVideoId->id))\n\t \t{\n\t \t\t$video->title = $this->title;\n\t\t \t$video->siteId = $this->siteId;\n\t\t \t$video->sourceId = $this->id;\n\t\t \t$video->source = $this->source;\n\t\t \t\n\t\t \tif (!empty($this->listIds))\n\t\t \t\t$video->listIds = $this->listIds;\t\n\t\t \t\n\t\t \t$videoEmbed = $this->embedVideo;\n\t\t \t// on remplace les valeurs de hauteur et largeur par des valeurs par défaut\n\t\t \t$videoEmbed = preg_replace('~((?:width)\\s?[=:]\\s?[\\'\"]?)[0-9]+~i','${1}450', $videoEmbed);\n\t\t \t$videoEmbed = preg_replace('~((?:height)\\s?[=:]\\s?[\\'\"]?)[0-9]+~i','${1}360', $videoEmbed);\n\t\t \t$video->embed = $videoEmbed;\n\t\t \t \t\n\t\t \t$video->workflowState = $this->workflowState;\n\t\t \t$video->publicationDate = $this->publicationDate;\n\t\t \t$video->channelId = $this->channelId;\n\t\t \t$video->channelIds = $this->channelIds;\n\t\t \t\n\t\t \tif ($video->save())\n\t\t \t{\n\t\t \t\t//wcmTrace(\"[EXTRACT EMBED] id : \".$video->id.\" / title : \".$video->title.\" (news : \".$this->id.\") saved !\"); \n\t\t \t\t\n\t\t \t\t//init contenu de la vidéo\n\t\t \t$content = new content();\n\t\t\t $content->referentId = $video->id;\n\t\t\t $content->referentClass = $video->getClass();\n\t\t\t $content->provider = \"\";\n\t\t\t $content->title = $video->title;\n\t\t\t \n\t\t\t \tif (isset($contents) && is_array($contents))\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach ($contents as $contentItem)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t $content->description = $contentItem->description;\n\t\t\t\t\t\t\t $content->text = $contentItem->text;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t \n\t\t\t if (!$content->save())\n\t\t\t \twcmTrace(\"[EXTRACT EMBED] id : \".$video->id.\" content error !\"); \t \t\t\t\n\t\n\t\t \t\t// on parcourt les bizrelations de type photo de la news pour les associer à la vidéo\n\t\t \t\tforeach ($this->getPhotos() as $photo) \n\t\t\t \t{\t\n\t\t\t\t\t\t$bizRelation = new bizrelation();\n\t\t\t\t $bizRelation->sourceClass = \"video\";\n\t\t\t\t $bizRelation->sourceId = $video->id;\n\t\t\t\t $bizRelation->kind = bizrelation::IS_COMPOSED_OF;\n\t\t\t\t $bizRelation->destinationClass = \"photo\";\n\t\t\t\t $bizRelation->destinationId = $photo['destinationId'];\n\t\t\t\t $bizRelation->title = $photo['title'];\n\t\t\t\t $bizRelation->rank = $bizRelation->getLastPosition() + 1;\n\t\t\t\t\t\t$bizRelation->addBizrelation();\n\t\t\t\t \t//wcmTrace(\"[EXTRACT EMBED] photo id : \".$photo['destinationId'].\" bizrelation created !\"); \t \t\t\n\t\t\t \t} \n\t\t\t \t\t\t\t\n\t\t\t \t$video->save();\n\t\t\t \twcmTrace(\"[EXTRACT EMBED] news title : \".$video->title.\" video (id:\".$video->id.\") creation done (news : \".$this->id.\") !\");\n\t\t \t\t// on met à jour l'info extract sur la propriété sourceVersion de la news\n\t\t\t \tif ($this->sourceVersion != \"extract\")\n\t\t\t \t{\n\t\t\t \t\t$this->sourceVersion = \"extract\";\n\t\t\t \t\t$this->save();\n\t\t\t \t}\n\t\t\t \treturn true; \n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t wcmTrace(\"[EXTRACT EMBED] news title : \".$video->title.\" video creation error (news : \".$this->id.\") !\");\n\t\t \t return false; \n\t\t \t}\n\t\t \t\t\t \t \t \t \n\t \t} \n\t \telse\n\t \t{\n\t \t\twcmTrace(\"[EXTRACT EMBED] existing video : \".$testVideoId->id.\" (news : \".$this->id.\") !\"); \n\t \t\treturn false;\n\t \t}\t\n\t }\n\t else\n\t \treturn false;\t\n\t}",
"function addVideo($name='video') {\n\n $field = (new Fields\\Video($name));\n return $this->addField($field);\n\n }",
"private function add_video_definition($mform) {\n $addinstance = empty($this->current->entry_id) ? true : false;\n\n $thumbnail = $this->get_thumbnail_markup(!$addinstance);\n\n $videopreview = $this->get_iframe_video_preview_markup($addinstance);\n\n $mform->addElement('static', 'add_video_thumb', ' ', $thumbnail);\n $mform->addElement('html', $videopreview);\n\n $videogroup = array();\n if ($addinstance) {\n $videogroup[] =& $mform->createElement('button', $this->addvideobutton, get_string('add_video', 'kalvidres'));\n } else {\n $videogroup[] =& $mform->createElement('button', $this->addvideobutton, get_string('replace_video', 'kalvidres'));\n }\n\n $mform->addGroup($videogroup, 'video_group', ' ', ' ', false);\n }",
"public function addVideo(VideoMedia $video);",
"function TS_VCSC_Add_PlyrVideoPlayer_Element_Define() {\r\n\t\t\t\tglobal $VISUAL_COMPOSER_EXTENSIONS;\r\n\t\t\t\t// Add Plyr Video Player\r\n\t\t\t\t$VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_VisualComposer_Element = array(\r\n\t\t\t\t\t\"name\" \t=> __( \"TS Plyr Video Player\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\"base\" \t=> \"TS_VCSC_Plyr_Player\",\r\n\t\t\t\t\t\"icon\" \t \t=> \"ts-composer-element-icon-plyr-video\",\r\n\t\t\t\t\t\"category\" \t=> __( \"Composium\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\"description\" \t=> __(\"Place a Plyr Video player element\", \"ts_visual_composer_extend\"),\r\n\t\t\t\t\t\"admin_enqueue_js\" \t=> \"\",\r\n\t\t\t\t\t\"admin_enqueue_css\" \t=> \"\",\r\n\t\t\t\t\t\"params\" \t=> array(\r\n\t\t\t\t\t\t// Video Sources\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"seperator\",\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"seperator_1\",\r\n\t\t\t\t\t\t\t\"seperator\"\t\t\t\t\t=> \"Video Sources\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"switch_button\",\r\n\t\t\t\t\t\t\t\"heading\"\t\t\t \t=> __( \"MP4 Video Source\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\"\t\t \t \t=> \"video_mp4_source\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"false\",\r\n\t\t\t\t\t\t\t\"description\"\t\t \t=> __( \"Switch the toggle if you want to use a local or remote MP4 video file.\", \"ts_visual_composer_extend\" )\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"videoselect\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"MP4 Video\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"video_mp4_local\",\r\n\t\t\t\t\t\t\t\"video_format\"\t\t\t\t=> \"mp4,m4v\",\r\n\t\t\t\t\t\t\t\"value\" \t \t=> \"\",\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Select a local MP4 video from WordPress.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"video_mp4_source\", 'value' => 'true' ),\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"textfield\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"MP4 Video\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"video_mp4_remote\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"\",\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Enter the remote path to the MP4 version of the video.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"video_mp4_source\", 'value' => 'false' ),\r\n\t\t\t\t\t\t),\t\t\t\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"switch_button\",\r\n\t\t\t\t\t\t\t\"heading\"\t\t\t \t=> __( \"WEBM Video Source\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\"\t\t \t=> \"video_webm_source\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"false\",\r\n\t\t\t\t\t\t\t\"description\"\t\t \t=> __( \"Switch the toggle if you want to use a local or remote WEBM video file.\", \"ts_visual_composer_extend\" )\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"videoselect\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"WEBM Video\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"video_webm_local\",\r\n\t\t\t\t\t\t\t\"video_format\"\t\t\t\t=> \"webm\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"\",\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Select a local WEBM video from WordPress.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"video_webm_source\", 'value' => 'true' ),\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"textfield\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"WEBM Video\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"video_webm_remote\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"\",\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Enter the remote path to the WEBM version of the video.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"video_webm_source\", 'value' => 'false' ),\r\n\t\t\t\t\t\t),\t\t\t\t\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"switch_button\",\r\n\t\t\t\t\t\t\t\"heading\"\t\t\t \t=> __( \"OGV Video Source\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\"\t\t \t=> \"video_ogg_source\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"false\",\r\n\t\t\t\t\t\t\t\"description\"\t\t \t=> __( \"Switch the toggle if you want to use a local or remote OGV video file.\", \"ts_visual_composer_extend\" )\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t \t=> \"videoselect\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"OGV Video\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"video_ogg_local\",\r\n\t\t\t\t\t\t\t\"video_format\"\t\t\t\t=> \"ogg,ogv\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"\",\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Select a local OGV video from WordPress.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"video_ogg_source\", 'value' => 'true' ),\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"textfield\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"OGV Video\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"video_ogg_remote\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"\",\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Enter the remote path to the OGV version of the video.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"video_ogg_source\", 'value' => 'false' ),\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\t// Video Information\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\"\t\t\t\t \t=> \"seperator\",\r\n\t\t\t\t\t\t\t\"param_name\"\t\t \t=> \"seperator_2\",\r\n\t\t\t\t\t\t\t\"seperator\"\t\t\t\t\t=> \"Video Information\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"textfield\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Video: Title\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"video_title\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"\",\r\n\t\t\t\t\t\t\t\"admin_label\" \t=> true,\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Enter an optional title for the video.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"attach_image\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Video: Poster\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"video_poster\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"\",\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Select the image that should be used as video poster.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"switch_button\",\r\n\t\t\t\t\t\t\t\"heading\"\t\t\t \t=> __( \"Video: Dimensions\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\"\t\t \t=> \"video_dimensions\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"false\",\r\n\t\t\t\t\t\t\t\"description\"\t\t \t=> __( \"Switch the toggle if you want to provide the original dimensions of the video (width/height).\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"nouislider\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Video: Width\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"video_width\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"1280\",\r\n\t\t\t\t\t\t\t\"min\" \t=> \"360\",\r\n\t\t\t\t\t\t\t\"max\" \t=> \"3840\",\r\n\t\t\t\t\t\t\t\"step\" \t=> \"1\",\r\n\t\t\t\t\t\t\t\"unit\" \t=> 'px',\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Define the width of the video to be shown within the player.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"video_dimensions\", 'value' => 'true' ),\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"nouislider\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Video: Height\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"video_height\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"720\",\r\n\t\t\t\t\t\t\t\"min\" \t=> \"240\",\r\n\t\t\t\t\t\t\t\"max\" \t=> \"2160\",\r\n\t\t\t\t\t\t\t\"step\" \t=> \"1\",\r\n\t\t\t\t\t\t\t\"unit\" \t=> 'px',\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Define the height of the video to be shown within the player.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"video_dimensions\", 'value' => 'true' ),\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\t// Player Settings\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\"\t\t\t\t \t=> \"seperator\",\r\n\t\t\t\t\t\t\t\"param_name\"\t\t \t=> \"seperator_3\",\r\n\t\t\t\t\t\t\t\"seperator\"\t\t\t\t\t=> \"Player Settings\",\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Player\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"switch_button\",\r\n\t\t\t\t\t\t\t\"heading\"\t\t\t \t=> __( \"Video: Auto-Play\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\"\t\t \t=> \"player_autoplay\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"false\",\r\n\t\t\t\t\t\t\t\"admin_label\" \t=> true,\r\n\t\t\t\t\t\t\t\"description\"\t\t \t=> __( \"Switch the toggle if you want the media to start playing upon page load (non-mobile devices).\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"edit_field_class\"\t\t\t=> \"vc_col-sm-6 vc_column\",\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Player\",\r\n\t\t\t\t\t\t),\t\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"switch_button\",\r\n\t\t\t\t\t\t\t\"heading\"\t\t\t \t=> __( \"Video: Loop\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\"\t\t \t=> \"player_loop\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"false\",\r\n\t\t\t\t\t\t\t\"description\"\t\t \t=> __( \"Switch the toggle if you want the media to loop and start over each time it has finished.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"edit_field_class\"\t\t\t=> \"vc_col-sm-6 vc_column\",\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Player\",\r\n\t\t\t\t\t\t),\t\t\t\t\t\t\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"switch_button\",\r\n\t\t\t\t\t\t\t\"heading\"\t\t\t \t=> __( \"Video: Mute\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\"\t\t \t=> \"player_mute\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"false\",\r\n\t\t\t\t\t\t\t\"description\"\t\t \t=> __( \"Switch the toggle if you want the media to be muted when the video first starts playing.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Player\",\r\n\t\t\t\t\t\t),\t\t\t\t\t\t\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"nouislider\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Video: Volume\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"player_volume\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"50\",\r\n\t\t\t\t\t\t\t\"min\" \t=> \"0\",\r\n\t\t\t\t\t\t\t\"max\" \t=> \"100\",\r\n\t\t\t\t\t\t\t\"step\" \t=> \"1\",\r\n\t\t\t\t\t\t\t\"unit\" \t=> '%',\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Select the initial playing volume for the media; desktop only (valid for first session).\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"player_mute\", 'value' => 'false' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Player\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"switch_button\",\r\n\t\t\t\t\t\t\t\"heading\"\t\t\t \t=> __( \"Video: Hide Controls\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\"\t\t \t=> \"player_hidecontrols\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"true\",\r\n\t\t\t\t\t\t\t\"description\"\t\t \t=> __( \"Switch the toggle if you want to automatically hide the video controls when the video is playing.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"edit_field_class\"\t\t\t=> \"vc_col-sm-6 vc_column\",\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Player\",\r\n\t\t\t\t\t\t),\t\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"switch_button\",\r\n\t\t\t\t\t\t\t\"heading\"\t\t\t \t=> __( \"Video: Show Poster\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\"\t\t \t=> \"player_showposterend\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"true\",\r\n\t\t\t\t\t\t\t\"description\"\t\t \t=> __( \"Switch the toggle if you want to switch back to the video poster once the video has finished playing.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"edit_field_class\"\t\t\t=> \"vc_col-sm-6 vc_column\",\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Player\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"switch_button\",\r\n\t\t\t\t\t\t\t\"heading\"\t\t\t \t=> __( \"Video: Tooltips\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\"\t\t \t=> \"player_tooltips\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"false\",\r\n\t\t\t\t\t\t\t\"description\"\t\t \t=> __( \"Switch the toggle if you want to show tooltips for the video control elements.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"edit_field_class\"\t\t\t=> \"vc_col-sm-6 vc_column\",\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Player\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"switch_button\",\r\n\t\t\t\t\t\t\t\"heading\"\t\t\t \t=> __( \"Video: Hide Context\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\"\t\t \t=> \"player_hidecontext\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"true\",\r\n\t\t\t\t\t\t\t\"description\"\t\t \t=> __( \"Switch the toggle if you want to hide the right click context menu for the video.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"edit_field_class\"\t\t\t=> \"vc_col-sm-6 vc_column\",\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Player\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\t// Theme Settings\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\"\t\t\t\t \t=> \"seperator\",\r\n\t\t\t\t\t\t\t\"param_name\"\t\t \t=> \"seperator_4\",\r\n\t\t\t\t\t\t\t\"seperator\"\t\t\t\t\t=> \"Theme Settings\",\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Player\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"switch_button\",\r\n\t\t\t\t\t\t\t\"heading\"\t\t\t \t=> __( \"Customize Theme\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\"\t\t \t=> \"theme_customize\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"false\",\r\n\t\t\t\t\t\t\t\"description\"\t\t \t=> __( \"Switch the toggle if you want to customize some aspects of the player theme.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Player\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t\t=> \"colorpicker\",\r\n\t\t\t\t\t\t\t\"heading\" \t\t=> __( \"Theme: Play Button\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t\t=> \"theme_playbutton\",\r\n\t\t\t\t\t\t\t\"value\" \t\t=> \"#3498db\",\r\n\t\t\t\t\t\t\t\"description\" \t\t=> __( \"Define the background color for the main play button.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"theme_customize\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"edit_field_class\"\t\t\t=> \"vc_col-sm-6 vc_column\",\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Player\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t\t=> \"colorpicker\",\r\n\t\t\t\t\t\t\t\"heading\" \t\t=> __( \"Theme: Hover Background\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t\t=> \"theme_hoverback\",\r\n\t\t\t\t\t\t\t\"value\" \t\t=> \"#3498db\",\r\n\t\t\t\t\t\t\t\"description\" \t\t=> __( \"Define the background color for control buttons when hovering.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"theme_customize\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"edit_field_class\"\t\t\t=> \"vc_col-sm-6 vc_column\",\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Player\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t\t=> \"colorpicker\",\r\n\t\t\t\t\t\t\t\"heading\" \t\t=> __( \"Theme: Progress Bar\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t\t=> \"theme_progressbar\",\r\n\t\t\t\t\t\t\t\"value\" \t\t=> \"#3498db\",\r\n\t\t\t\t\t\t\t\"description\" \t\t=> __( \"Define the background color for the player progress bar.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"theme_customize\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"edit_field_class\"\t\t\t=> \"vc_col-sm-6 vc_column\",\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Player\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t\t=> \"colorpicker\",\r\n\t\t\t\t\t\t\t\"heading\" \t\t=> __( \"Theme: Volume Bar\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t\t=> \"theme_volumebar\",\r\n\t\t\t\t\t\t\t\"value\" \t\t=> \"#3498db\",\r\n\t\t\t\t\t\t\t\"description\" \t\t=> __( \"Define the background color for the volume bar.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"theme_customize\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"edit_field_class\"\t\t\t=> \"vc_col-sm-6 vc_column\",\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Player\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\t// Lightbox Settings\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\"\t\t\t\t \t=> \"seperator\",\r\n\t\t\t\t\t\t\t\"param_name\"\t\t \t=> \"seperator_5\",\r\n\t\t\t\t\t\t\t\"seperator\"\t\t\t\t\t=> \"Lightbox Settings\",\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Lightbox\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t\t=> \"switch_button\",\r\n\t\t\t\t\t\t\t\"heading\" \t\t=> __( \"Show in Lightbox\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t\t=> \"lightbox_open\",\r\n\t\t\t\t\t\t\t\"value\" \t\t=> \"false\",\r\n\t\t\t\t\t\t\t\"description\" \t\t=> __( \"Switch the toggle if the video should be opened within a lightbox.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"admin_label\" \t=> true,\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Lightbox\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"dropdown\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Maximum Lightbox Width\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"lightbox_width\",\r\n\t\t\t\t\t\t\t\"width\" \t=> 150,\r\n\t\t\t\t\t\t\t\"value\" \t=> array(\r\n\t\t\t\t\t\t\t\t__( 'Auto', \"ts_visual_composer_extend\" ) \t=> \"auto\",\r\n\t\t\t\t\t\t\t\t__( 'Set Width (%)', \"ts_visual_composer_extend\" ) \t=> \"widthpercent\",\r\n\t\t\t\t\t\t\t\t__( 'Set Width (px)', \"ts_visual_composer_extend\" ) \t=> \"widthpixel\",\r\n\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Select how the maximum element width inside the lightbox should be determined.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"lightbox_open\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Lightbox\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"nouislider\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Maximum Lightbox Width\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"lightbox_width_percent\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"100\",\r\n\t\t\t\t\t\t\t\"min\" \t=> \"25\",\r\n\t\t\t\t\t\t\t\"max\" \t=> \"100\",\r\n\t\t\t\t\t\t\t\"step\" \t=> \"1\",\r\n\t\t\t\t\t\t\t\"unit\" \t=> '%',\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Select the maximum element width inside the lightbox in percent.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"lightbox_width\", 'value' => 'widthpercent' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Lightbox\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"nouislider\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Maximum Lightbox Width\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"lightbox_width_pixel\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"960\",\r\n\t\t\t\t\t\t\t\"min\" \t=> \"1\",\r\n\t\t\t\t\t\t\t\"max\" \t \t=> \"1920\",\r\n\t\t\t\t\t\t\t\"step\" \t=> \"1\",\r\n\t\t\t\t\t\t\t\"unit\" \t=> 'px',\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Select the maximum element width inside the lightbox in px.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"lightbox_width\", 'value' => 'widthpixel' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Lightbox\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"dropdown\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Maximum Lightbox Height\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"lightbox_height\",\r\n\t\t\t\t\t\t\t\"width\" \t=> 150,\r\n\t\t\t\t\t\t\t\"value\" \t=> array(\r\n\t\t\t\t\t\t\t\t__( 'Auto', \"ts_visual_composer_extend\" ) \t=> \"auto\",\r\n\t\t\t\t\t\t\t\t__( 'Set Height (%)', \"ts_visual_composer_extend\" ) \t=> \"heightpercent\",\r\n\t\t\t\t\t\t\t\t__( 'Set Height (px)', \"ts_visual_composer_extend\" ) \t=> \"heightpixel\",\r\n\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Select how the maximum element height inside the lightbox should be determined.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"lightbox_open\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Lightbox\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"nouislider\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Maximum Lightbox Height\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"lightbox_height_percent\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"100\",\r\n\t\t\t\t\t\t\t\"min\" \t=> \"25\",\r\n\t\t\t\t\t\t\t\"max\" \t=> \"100\",\r\n\t\t\t\t\t\t\t\"step\" \t=> \"1\",\r\n\t\t\t\t\t\t\t\"unit\" \t=> '%',\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Select the maximum element height inside the lightbox in percent.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"lightbox_height\", 'value' => 'heightpercent' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Lightbox\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"nouislider\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Maximum Lightbox Height\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"lightbox_height_pixel\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"540\",\r\n\t\t\t\t\t\t\t\"min\" \t=> \"100\",\r\n\t\t\t\t\t\t\t\"max\" \t=> \"1080\",\r\n\t\t\t\t\t\t\t\"step\" \t=> \"1\",\r\n\t\t\t\t\t\t\t\"unit\" \t=> 'px',\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Select the maximum element height inside the lightbox in px.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"lightbox_height\", 'value' => 'heightpixel' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Lightbox\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"textfield\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Group Name\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"lightbox_group_name\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"krautgroup\",\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Enter a custom group name to manually build group with other video items; leave empty for non-grouping\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"lightbox_open\", 'value' => \"true\" ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Lightbox\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"dropdown\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Transition Effect\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"lightbox_effect\",\r\n\t\t\t\t\t\t\t\"width\" \t=> 150,\r\n\t\t\t\t\t\t\t\"value\" \t=> $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Lightbox_Animations,\r\n\t\t\t\t\t\t\t\"default\" \t\t\t\t\t=> $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_LightboxDefaultAnimation,\r\n\t\t\t\t\t\t\t\"std\" \t\t\t\t\t\t=> $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_LightboxDefaultAnimation,\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Select the transition effect to be used for the image in the lightbox.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"lightbox_open\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Lightbox\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"dropdown\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Backlight Color\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"lightbox_backlight_choice\",\r\n\t\t\t\t\t\t\t\"width\" \t=> 150,\r\n\t\t\t\t\t\t\t\"value\" \t=> array(\r\n\t\t\t\t\t\t\t\t__( 'Predefined Color', \"ts_visual_composer_extend\" )\t\t\t=> \"predefined\",\r\n\t\t\t\t\t\t\t\t__( 'Custom Color', \"ts_visual_composer_extend\" )\t\t\t\t=> \"customized\",\r\n\t\t\t\t\t\t\t\t__( 'Transparent Backlight', \"ts_visual_composer_extend\" ) \t=> \"hideit\",\r\n\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Select the (backlight) color style for the popup box.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"lightbox_open\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Lightbox\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"dropdown\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Select Backlight Color\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"lightbox_backlight_color\",\r\n\t\t\t\t\t\t\t\"width\" \t=> 150,\r\n\t\t\t\t\t\t\t\"value\" \t=> array(\r\n\t\t\t\t\t\t\t\t__( 'Default', \"ts_visual_composer_extend\" ) \t\t=> \"#0084E2\",\r\n\t\t\t\t\t\t\t\t__( 'Neutral', \"ts_visual_composer_extend\" ) \t\t=> \"#FFFFFF\",\r\n\t\t\t\t\t\t\t\t__( 'Success', \"ts_visual_composer_extend\" ) \t\t=> \"#4CFF00\",\r\n\t\t\t\t\t\t\t\t__( 'Warning', \"ts_visual_composer_extend\" ) \t\t=> \"#EA5D00\",\r\n\t\t\t\t\t\t\t\t__( 'Error', \"ts_visual_composer_extend\" ) \t\t=> \"#CC0000\",\r\n\t\t\t\t\t\t\t\t__( 'None', \"ts_visual_composer_extend\" ) \t\t=> \"#000000\",\r\n\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Select the predefined backlight color for the modal popup.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"lightbox_backlight_choice\", 'value' => 'predefined' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Lightbox\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t\t=> \"colorpicker\",\r\n\t\t\t\t\t\t\t\"heading\" \t\t=> __( \"Select Backlight Color\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t\t=> \"lightbox_backlight_custom\",\r\n\t\t\t\t\t\t\t\"value\" \t\t=> \"#000000\",\r\n\t\t\t\t\t\t\t\"description\" \t\t=> __( \"Define a custom backlight color for the modal popup.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"lightbox_backlight_choice\", 'value' => 'customized' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Lightbox\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\t// Trigger Settings\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\"\t\t\t\t \t=> \"seperator\",\r\n\t\t\t\t\t\t\t\"param_name\"\t\t \t=> \"seperator_6\",\r\n\t\t\t\t\t\t\t\"seperator\"\t\t\t\t\t=> \"Trigger Settings\",\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"lightbox_open\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"dropdown\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Trigger Type\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"content_trigger\",\r\n\t\t\t\t\t\t\t\"value\" \t=> array(\r\n\t\t\t\t\t\t\t\t__(\"Poster Image\", \"ts_visual_composer_extend\") \t=> \"poster\",\r\n\t\t\t\t\t\t\t\t__(\"Default Image\", \"ts_visual_composer_extend\") \t=> \"default\",\r\n\t\t\t\t\t\t\t\t__(\"Custom Image\", \"ts_visual_composer_extend\") \t=> \"image\",\r\n\t\t\t\t\t\t\t\t__(\"Font Icon\", \"ts_visual_composer_extend\") \t=> \"icon\",\r\n\t\t\t\t\t\t\t\t__(\"Winged Button\", \"ts_visual_composer_extend\") \t=> \"winged\",\r\n\t\t\t\t\t\t\t\t__(\"Simple Button\", \"ts_visual_composer_extend\") \t=> \"simple\",\r\n\t\t\t\t\t\t\t\t__(\"Flat Icon Button\", \"ts_visual_composer_extend\") \t=> \"flaticon\",\r\n\t\t\t\t\t\t\t\t__(\"Flat Button\", \"ts_visual_composer_extend\") \t\t=> \"flat\",\r\n\t\t\t\t\t\t\t\t__(\"Text\", \"ts_visual_composer_extend\") \t=> \"text\",\r\n\t\t\t\t\t\t\t\t__(\"Custom HTML\", \"ts_visual_composer_extend\") \t=> \"custom\",\r\n\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Select the type of trigger to click on in order to show the lightbox.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"lightbox_open\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\t// Custom Image\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"attach_image\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Select Image\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"content_image\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"\",\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Select the preview image for the modal popup.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"content_trigger\", 'value' => 'image' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"switch_button\",\r\n\t\t\t\t\t\t\t\"heading\"\t\t\t \t=> __( \"Simple Image Only\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\"\t\t \t=> \"content_image_simple\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"false\",\r\n\t\t\t\t\t\t\t\"description\"\t\t \t=> __( \"Switch the toggle if you want display just the image without any styling.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"content_trigger\", 'value' => 'image' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"dropdown\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Auto Height Setting\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"content_image_height\",\r\n\t\t\t\t\t\t\t\"width\" \t=> 150,\r\n\t\t\t\t\t\t\t\"value\" \t=> array(\r\n\t\t\t\t\t\t\t\t__( '100% Height Setting', \"ts_visual_composer_extend\" )\t\t=> \"height: 100%;\",\r\n\t\t\t\t\t\t\t\t__( 'Auto Height Setting', \"ts_visual_composer_extend\" ) \t=> \"height: auto;\",\r\n\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Select what CSS height setting should be applied to the image (change only if image height does not display correctly).\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"content_trigger\", 'value' => array('poster', 'default', 'image') ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\t// Font Icon\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t\t\t\t\t\t=> \"icons_panel\",\r\n\t\t\t\t\t\t\t'heading' \t\t\t\t\t=> __( 'Select Icon', 'ts_visual_composer_extend' ),\r\n\t\t\t\t\t\t\t'param_name' \t\t\t\t=> 'content_icon',\r\n\t\t\t\t\t\t\t'value'\t\t\t\t\t\t=> '',\r\n\t\t\t\t\t\t\t\"settings\" \t\t\t\t\t=> array(\r\n\t\t\t\t\t\t\t\t\"emptyIcon\" \t\t\t\t\t=> false,\r\n\t\t\t\t\t\t\t\t'emptyIconValue'\t\t\t\t=> 'transparent',\r\n\t\t\t\t\t\t\t\t\"type\" \t\t\t\t\t\t\t=> 'extensions',\r\n\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\"description\" \t\t=> ($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_EditorVisualSelector == \"true\" ? __( \"Select the icon you want to display.\", \"ts_visual_composer_extend\" ) : $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_IconSelectorString),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"content_trigger\", 'value' => array('icon', 'flaticon') ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\t\t\t\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"nouislider\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Icon Size\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"content_iconsize\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"30\",\r\n\t\t\t\t\t\t\t\"min\" \t=> \"16\",\r\n\t\t\t\t\t\t\t\"max\" \t=> \"512\",\r\n\t\t\t\t\t\t\t\"step\" \t=> \"1\",\r\n\t\t\t\t\t\t\t\"unit\" \t=> 'px',\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Select the icon size\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"content_trigger\", 'value' => 'icon' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"colorpicker\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Icon Color\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"content_iconcolor\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"#cccccc\",\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Define the color of the icon.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"content_trigger\", 'value' => 'icon' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\t// Flat Button\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"dropdown\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Button Color Style\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"content_buttonstyle\",\r\n\t\t\t\t\t\t\t\"width\" \t=> 300,\r\n\t\t\t\t\t\t\t\"value\" \t=> $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Flat_Button_Default_Colors,\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Select the general color style for button.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"content_trigger\", 'value' => array('flat', 'flaticon') ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"dropdown\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Button Hover Style\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"content_buttonhover\",\r\n\t\t\t\t\t\t\t\"width\" \t=> 300,\r\n\t\t\t\t\t\t\t\"value\" \t=> $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Flat_Button_Hover_Colors,\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Select the general hover style for button.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"content_trigger\", 'value' => array('flat', 'flaticon') ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\t// Button\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"textfield\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Button Text\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"content_buttontext\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"View Video\",\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Enter the text for the button.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"content_trigger\", 'value' => array('winged', 'simple', 'flat', 'flaticon') ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"nouislider\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Button Text Size\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"content_buttonsize\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"16\",\r\n\t\t\t\t\t\t\t\"min\" \t=> \"12\",\r\n\t\t\t\t\t\t\t\"max\" \t=> \"20\",\r\n\t\t\t\t\t\t\t\"step\" \t=> \"1\",\r\n\t\t\t\t\t\t\t\"unit\" \t=> 'px',\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Select the top margin for the element.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"content_trigger\", 'value' => array('flat', 'flaticon') ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\t// Text Link\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"textfield\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Trigger Text\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"content_text\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"\",\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Enter the trigger text for the modal popup.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"content_trigger\", 'value' => 'text' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\t// Custom Code\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"textarea_raw_html\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __(\"Raw HTML\", \"ts_visual_composer_extend\"),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"content_raw\",\r\n\t\t\t\t\t\t\t\"value\" \t=> base64_encode(\"\"),\r\n\t\t\t\t\t\t\t\"description\" \t=> __(\"Enter your custom HTML code; code will be wrapped in appropriate link automatically.\", \"ts_visual_composer_extend\"),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"content_trigger\", 'value' => 'custom' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\t// Subtitle\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"textfield\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Subtitle\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"content_subtitle\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"\",\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Enter a subtitle for video trigger.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"content_trigger\", 'value' => array('winged') ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\t\t\t\r\n\t\t\t\t\t\t// Overlay Settings\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"seperator\",\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"seperator_7\",\r\n\t\t\t\t\t\t\t\"seperator\" \t=> \"Overlay Settings\",\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"content_trigger\", 'value' => array('default', 'image', 'poster') ),\t\t\t\t\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\t\t\t\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t\t=> \"colorpicker\",\r\n\t\t\t\t\t\t\t\"heading\" \t\t=> __( \"Overlay: Background Color\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t\t=> \"overlay_background\",\r\n\t\t\t\t\t\t\t\"value\" \t\t=> \"rgba(24, 24, 24, 0.3)\",\r\n\t\t\t\t\t\t\t\"description\" \t\t=> __( \"Select the background color and opacity for the overlay.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"content_trigger\", 'value' => array('default', 'image', 'poster') ),\r\n\t\t\t\t\t\t\t\"edit_field_class\"\t\t\t=> \"vc_col-sm-6 vc_column\",\t\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\"\r\n\t\t\t\t\t\t),\t\t\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t\t=> \"dropdown\",\r\n\t\t\t\t\t\t\t\"heading\" \t\t=> __( \"Overlay: Animation\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t\t=> \"overlay_animation\",\r\n\t\t\t\t\t\t\t\"width\" \t\t=> 300,\r\n\t\t\t\t\t\t\t\"value\" \t\t=> array(\r\n\t\t\t\t\t\t\t\t__( \"Zoom Effect\", \"ts_visual_composer_extend\" )\t\t\t\t=> \"zoom\",\r\n\t\t\t\t\t\t\t\t__( \"Zoom + Rotate Effect\", \"ts_visual_composer_extend\" )\t\t=> \"rotate\",\r\n\t\t\t\t\t\t\t\t__( \"No Effect\", \"ts_visual_composer_extend\" )\t\t\t\t\t=> \"none\",\r\n\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\"description\" \t\t=> __( \"Select if and what type of animation should be applied to the image on hover.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"content_trigger\", 'value' => array('default', 'image', 'poster') ),\r\n\t\t\t\t\t\t\t\"edit_field_class\"\t\t\t=> \"vc_col-sm-6 vc_column\",\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\"\r\n\t\t\t\t\t\t),\t\t\t\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t\t=> \"dropdown\",\r\n\t\t\t\t\t\t\t\"heading\" \t\t=> __( \"Overlay: Decoration\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t\t=> \"overlay_decoration\",\r\n\t\t\t\t\t\t\t\"width\" \t\t=> 300,\r\n\t\t\t\t\t\t\t\"value\" \t\t=> array(\r\n\t\t\t\t\t\t\t\t__( \"Default Image\", \"ts_visual_composer_extend\" )\t\t\t\t=> \"default\",\r\n\t\t\t\t\t\t\t\t__( \"Custom Internal Image\", \"ts_visual_composer_extend\" )\t\t=> \"image\",\r\n\t\t\t\t\t\t\t\t__( \"Custom External Image\", \"ts_visual_composer_extend\" )\t\t=> \"external\",\r\n\t\t\t\t\t\t\t\t__( \"Font Icon\", \"ts_visual_composer_extend\" )\t\t\t\t\t=> \"icon\",\r\n\t\t\t\t\t\t\t\t__( \"No Decoration\", \"ts_visual_composer_extend\" )\t\t\t\t=> \"none\",\r\n\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\"description\" \t\t=> __( \"Select if and how the overlay should be decorated.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"edit_field_class\"\t\t\t=> \"vc_col-sm-6 vc_column\",\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"content_trigger\", 'value' => array('default', 'image', 'poster') ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t\t=> \"dropdown\",\r\n\t\t\t\t\t\t\t\"heading\" \t\t=> __( \"Overlay: Visibility\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t\t=> \"overlay_visibility\",\r\n\t\t\t\t\t\t\t\"width\" \t\t=> 300,\r\n\t\t\t\t\t\t\t\"value\" \t\t=> array(\r\n\t\t\t\t\t\t\t\t__( \"Show Only On Hover\", \"ts_visual_composer_extend\" )\t\t\t=> \"hover\",\r\n\t\t\t\t\t\t\t\t__( \"Always Show Decoration\", \"ts_visual_composer_extend\" )\t\t=> \"only_deco\",\r\n\t\t\t\t\t\t\t\t__( \"Always Show Title\", \"ts_visual_composer_extend\" )\t\t\t=> \"only_title\",\r\n\t\t\t\t\t\t\t\t__( \"Always Show Full Overlay\", \"ts_visual_composer_extend\" )\t=> \"always\",\r\n\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\"admin_label\" \t=> true,\r\n\t\t\t\t\t\t\t\"description\" \t\t=> __( \"Select if and when the overlay should be visible.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"edit_field_class\"\t\t\t=> \"vc_col-sm-6 vc_column\",\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"content_trigger\", 'value' => array('default', 'image', 'poster') ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\t\t\t\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t\t=> \"attach_image\",\r\n\t\t\t\t\t\t\t\"heading\" \t\t=> __( \"Overlay: Decoration Image\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t\t=> \"overlay_image\",\r\n\t\t\t\t\t\t\t\"value\" \t\t=> \"\",\r\n\t\t\t\t\t\t\t\"description\" \t\t=> __( \"Select an image to be used as decoration for the overlay.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"overlay_decoration\", 'value' => 'image' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\t\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t\t=> \"textfield\",\r\n\t\t\t\t\t\t\t\"heading\" \t\t=> __( \"Overlay: Decoration Image\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t\t=> \"overlay_external\",\r\n\t\t\t\t\t\t\t\"value\" \t\t=> \"\",\r\n\t\t\t\t\t\t\t\"description\" \t\t=> __( \"Enter the full path to the image to be used as decoration for the overlay.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"overlay_decoration\", 'value' => 'external' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t\t\t\t\t\t=> \"icons_panel\",\r\n\t\t\t\t\t\t\t'heading' \t\t\t\t\t=> __( 'Overlay: Decoration Icon', 'ts_visual_composer_extend' ),\r\n\t\t\t\t\t\t\t'param_name' \t\t\t\t=> 'overlay_icon_name',\r\n\t\t\t\t\t\t\t'value'\t\t\t\t\t\t=> '',\r\n\t\t\t\t\t\t\t\"settings\" \t\t\t\t\t=> array(\r\n\t\t\t\t\t\t\t\t\"emptyIcon\" \t\t\t\t\t=> false,\r\n\t\t\t\t\t\t\t\t'emptyIconValue'\t\t\t\t=> 'transparent',\r\n\t\t\t\t\t\t\t\t\"type\" \t\t\t\t\t\t\t=> 'extensions',\r\n\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\"description\" \t\t=> ($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_EditorVisualSelector == \"true\" ? __( \"Select the icon to be used as decoration for the overlay.\", \"ts_visual_composer_extend\" ) : $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_IconSelectorString),\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"overlay_decoration\", 'value' => 'icon' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\t\t\t\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t\t=> \"colorpicker\",\r\n\t\t\t\t\t\t\t\"heading\" \t\t=> __( \"Overlay: Decoration Color\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t\t=> \"overlay_icon_color\",\r\n\t\t\t\t\t\t\t\"value\" \t\t=> \"#ededed\",\r\n\t\t\t\t\t\t\t\"description\" \t\t=> __( \"Select the color for the decoration element.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"overlay_decoration\", 'value' => 'icon' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"nouislider\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Overlay: Decoration Size\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t \t=> \"overlay_size\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"100\",\r\n\t\t\t\t\t\t\t\"min\" \t=> \"50\",\r\n\t\t\t\t\t\t\t\"max\" \t=> \"200\",\r\n\t\t\t\t\t\t\t\"step\" \t=> \"1\",\r\n\t\t\t\t\t\t\t\"unit\" \t=> 'px',\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Define the size of the decoration element in the overlay.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"overlay_decoration\", 'value' => array('icon', 'image', 'external') ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"nouislider\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Overlay: Decoration Opacity\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"overlay_opacity\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"75\",\r\n\t\t\t\t\t\t\t\"min\" \t=> \"50\",\r\n\t\t\t\t\t\t\t\"max\" \t=> \"100\",\r\n\t\t\t\t\t\t\t\"step\" \t=> \"1\",\r\n\t\t\t\t\t\t\t\"unit\" \t=> '%',\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Define the opacity of the decoration element in the overlay.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"overlay_decoration\", 'value' => array('icon', 'image', 'external') ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t\t=> \"colorpicker\",\r\n\t\t\t\t\t\t\t\"heading\" \t\t=> __( \"Overlay: Title Color\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t\t=> \"overlay_title_color\",\r\n\t\t\t\t\t\t\t\"value\" \t\t=> \"#ffffff\",\r\n\t\t\t\t\t\t\t\"description\" \t\t=> __( \"Select the font color for the overlay title.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"edit_field_class\"\t\t\t=> \"vc_col-sm-6 vc_column\",\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"content_trigger\", 'value' => array('default', 'image', 'poster') ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t\t=> \"colorpicker\",\r\n\t\t\t\t\t\t\t\"heading\" \t\t=> __( \"Overlay: Title Background\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t\t=> \"overlay_title_back\",\r\n\t\t\t\t\t\t\t\"value\" \t\t=> \"rgba(0, 0, 0, 0.4)\",\r\n\t\t\t\t\t\t\t\"description\" \t\t=> __( \"Select the background color and opacity for the overlay title.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"edit_field_class\"\t\t\t=> \"vc_col-sm-6 vc_column\",\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"content_trigger\", 'value' => array('default', 'image', 'poster') ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\t// Auto-Open Lightbox\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\"\t\t\t\t \t=> \"seperator\",\r\n\t\t\t\t\t\t\t\"param_name\"\t\t \t=> \"seperator_8\",\r\n\t\t\t\t\t\t\t\"seperator\"\t\t\t\t\t=> \"Auto-Open Lightbox\",\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"lightbox_open\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"switch_button\",\r\n\t\t\t\t\t\t\t\"heading\"\t\t\t \t=> __( \"Show on Page Load\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\"\t\t \t=> \"content_open\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"false\",\r\n\t\t\t\t\t\t\t\"description\"\t\t \t=> __( \"Switch the toggle if you want show the popup on page load (limit to one per page).\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"lightbox_open\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"switch_button\",\r\n\t\t\t\t\t\t\t\"heading\"\t\t\t \t=> __( \"Hide Popup Trigger on Page\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\"\t\t \t=> \"content_open_hide\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"false\",\r\n\t\t\t\t\t\t\t\"description\"\t\t \t=> __( \"Switch the toggle if you want show or hide the popup trigger on the page.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"content_open\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"nouislider\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Time Delay\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"content_open_delay\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"0\",\r\n\t\t\t\t\t\t\t\"min\" \t=> \"0\",\r\n\t\t\t\t\t\t\t\"max\" \t=> \"10000\",\r\n\t\t\t\t\t\t\t\"step\" \t=> \"100\",\r\n\t\t\t\t\t\t\t\"unit\" \t=> 'ms',\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Define the delay in ms until the modal popup should be shown (starting from 'Document Ready').\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"content_open\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Trigger\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\t// Language Settings\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\"\t\t\t\t \t=> \"seperator\",\r\n\t\t\t\t\t\t\t\"param_name\"\t\t \t=> \"seperator_9\",\r\n\t\t\t\t\t\t\t\"seperator\"\t\t\t\t\t=> \"Language Settings\",\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Language\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t\t=> \"switch_button\",\r\n\t\t\t\t\t\t\t\"heading\" \t\t=> __( \"Customize Text Strings\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t\t=> \"language_customize\",\r\n\t\t\t\t\t\t\t\"value\" \t\t=> \"false\",\r\n\t\t\t\t\t\t\t\"description\" \t\t=> __( \"Switch the toggle if you want to customize some text strings used within the player.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Language\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"textfield\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"String:\", \"ts_visual_composer_extend\" ) . ' ' . $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['restart'],\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"language_restart\",\r\n\t\t\t\t\t\t\t\"value\" \t=> (isset($this->TS_VCSC_Plyr_Player_Language['restart']) ? $this->TS_VCSC_Plyr_Player_Language['restart'] : $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['restart']),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"language_customize\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Language\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"textfield\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"String:\", \"ts_visual_composer_extend\" ) . ' ' . $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['rewind'],\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"language_rewind\",\r\n\t\t\t\t\t\t\t\"value\" \t=> (isset($this->TS_VCSC_Plyr_Player_Language['rewind']) ? $this->TS_VCSC_Plyr_Player_Language['rewind'] : $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['rewind']),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"language_customize\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Language\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"textfield\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"String:\", \"ts_visual_composer_extend\" ) . ' ' . $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['play'],\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"language_play\",\r\n\t\t\t\t\t\t\t\"value\" \t=> (isset($this->TS_VCSC_Plyr_Player_Language['play']) ? $this->TS_VCSC_Plyr_Player_Language['play'] : $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['play']),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"language_customize\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Language\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"textfield\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"String:\", \"ts_visual_composer_extend\" ) . ' ' . $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['pause'],\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"language_pause\",\r\n\t\t\t\t\t\t\t\"value\" \t=> (isset($this->TS_VCSC_Plyr_Player_Language['pause']) ? $this->TS_VCSC_Plyr_Player_Language['pause'] : $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['pause']),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"language_customize\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Language\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"textfield\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"String:\", \"ts_visual_composer_extend\" ) . ' ' . $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['forward'],\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"language_forward\",\r\n\t\t\t\t\t\t\t\"value\" \t=> (isset($this->TS_VCSC_Plyr_Player_Language['forward']) ? $this->TS_VCSC_Plyr_Player_Language['forward'] : $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['forward']),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"language_customize\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Language\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"textfield\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"String:\", \"ts_visual_composer_extend\" ) . ' ' . $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['played'],\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"language_played\",\r\n\t\t\t\t\t\t\t\"value\" \t=> (isset($this->TS_VCSC_Plyr_Player_Language['played']) ? $this->TS_VCSC_Plyr_Player_Language['played'] : $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['played']),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"language_customize\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Language\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"textfield\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"String:\", \"ts_visual_composer_extend\" ) . ' ' . $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['buffered'],\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"language_buffered\",\r\n\t\t\t\t\t\t\t\"value\" \t=> (isset($this->TS_VCSC_Plyr_Player_Language['buffered']) ? $this->TS_VCSC_Plyr_Player_Language['buffered'] : $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['buffered']),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"language_customize\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Language\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"textfield\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"String:\", \"ts_visual_composer_extend\" ) . ' ' . $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['currenttime'],\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"language_currenttime\",\r\n\t\t\t\t\t\t\t\"value\" \t=> (isset($this->TS_VCSC_Plyr_Player_Language['currenttime']) ? $this->TS_VCSC_Plyr_Player_Language['currenttime'] : $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['currenttime']),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"language_customize\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Language\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"textfield\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"String:\", \"ts_visual_composer_extend\" ) . ' ' . $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['duration'],\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"language_duration\",\r\n\t\t\t\t\t\t\t\"value\" \t=> (isset($this->TS_VCSC_Plyr_Player_Language['duration']) ? $this->TS_VCSC_Plyr_Player_Language['duration'] : $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['duration']),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"language_customize\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Language\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"textfield\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"String:\", \"ts_visual_composer_extend\" ) . ' ' . $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['volume'],\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"language_volume\",\r\n\t\t\t\t\t\t\t\"value\" \t=> (isset($this->TS_VCSC_Plyr_Player_Language['volume']) ? $this->TS_VCSC_Plyr_Player_Language['volume'] : $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['volume']),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"language_customize\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Language\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"textfield\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"String:\", \"ts_visual_composer_extend\" ) . ' ' . $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['togglemute'],\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"language_togglemute\",\r\n\t\t\t\t\t\t\t\"value\" \t=> (isset($this->TS_VCSC_Plyr_Player_Language['togglemute']) ? $this->TS_VCSC_Plyr_Player_Language['togglemute'] : $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['togglemute']),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"language_customize\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Language\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"textfield\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"String:\", \"ts_visual_composer_extend\" ) . ' ' . $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['togglecaptions'],\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"language_togglecaptions\",\r\n\t\t\t\t\t\t\t\"value\" \t=> (isset($this->TS_VCSC_Plyr_Player_Language['togglecaptions']) ? $this->TS_VCSC_Plyr_Player_Language['togglecaptions'] : $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['togglecaptions']),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"language_customize\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Language\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"textfield\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"String:\", \"ts_visual_composer_extend\" ) . ' ' . $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['togglefullscreen'],\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"language_togglefullscreen\",\r\n\t\t\t\t\t\t\t\"value\" \t=> (isset($this->TS_VCSC_Plyr_Player_Language['togglefullscreen']) ? $this->TS_VCSC_Plyr_Player_Language['togglefullscreen'] : $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['togglefullscreen']),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"language_customize\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Language\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"textfield\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"String:\", \"ts_visual_composer_extend\" ) . ' ' . $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['frametitle'],\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"language_frametitle\",\r\n\t\t\t\t\t\t\t\"value\" \t=> (isset($this->TS_VCSC_Plyr_Player_Language['frametitle']) ? $this->TS_VCSC_Plyr_Player_Language['frametitle'] : $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_Plyr_Player_Language_Defaults['frametitle']),\r\n\t\t\t\t\t\t\t\"dependency\" \t=> array( 'element' => \"language_customize\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Language\",\r\n\t\t\t\t\t\t),\t\t\t\t\r\n\t\t\t\t\t\t// Tooltip Settings\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t\t=> \"seperator\",\r\n\t\t\t\t\t\t\t\"param_name\" \t\t=> \"seperator_10\",\r\n\t\t\t\t\t\t\t\"seperator\" \t\t=> \"Tooltip Settings\",\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Tooltip\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\"\t\t\t\t\t\t=> \"switch_button\",\r\n\t\t\t\t\t\t\t\"heading\" \t\t=> __( \"Tooltip Addition\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t\t=> \"tooltip_usage\",\r\n\t\t\t\t\t\t\t\"value\" \t \t\t=> \"false\",\r\n\t\t\t\t\t\t\t\"description\" \t\t=> __( \"Switch the toggle if you want to add an optional tooltip to the element.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Tooltip\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t\t=> ($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_EditorBase64TinyMCE == \"true\" ? \"wysiwyg_base64\" : \"textarea_raw_html\"),\r\n\t\t\t\t\t\t\t\"heading\" \t\t=> __( \"Tooltip Content\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t\t=> \"tooltip_content\",\r\n\t\t\t\t\t\t\t\"minimal\"\t\t\t\t\t=> \"true\",\r\n\t\t\t\t\t\t\t\"value\" \t\t=> base64_encode(\"\"),\r\n\t\t\t\t\t\t\t\"description\" \t \t\t=> __( \"Enter the tooltip content for the element; basic HTML code can be used.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"tooltip_usage\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Tooltip\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\"\t\t\t\t\t\t=> \"switch_button\",\r\n\t\t\t\t\t\t\t\"heading\" \t\t=> __( \"Tooltip Arrow\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t\t=> \"tooltip_arrow\",\r\n\t\t\t\t\t\t\t\"value\" \t\t=> \"true\",\r\n\t\t\t\t\t\t\t\"description\" \t\t=> __( \"Switch the toggle to either show or hide the tooltip arrow.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"tooltip_usage\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Tooltip\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\"\t\t\t\t\t\t=> \"dropdown\",\r\n\t\t\t\t\t\t\t\"heading\"\t\t\t\t\t=> __( \"Tooltip Position\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\"\t\t\t\t=> \"tooltip_position\",\r\n\t\t\t\t\t\t\t\"value\"\t\t\t\t\t\t=> $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_ToolTipster_Positions,\r\n\t\t\t\t\t\t\t\"description\"\t\t\t\t=> __( \"Select the tooltip position in relation to the element.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"edit_field_class\"\t\t\t=> \"vc_col-sm-6 vc_column\",\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"tooltip_usage\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Tooltip\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\"\t\t\t\t \t=> \"dropdown\",\r\n\t\t\t\t\t\t\t\"heading\"\t\t\t \t=> __( \"Tooltip Animation\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\"\t\t \t \t=> \"tooltip_animation\",\r\n\t\t\t\t\t\t\t\"value\" \t=> $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_ToolTipster_Animations,\r\n\t\t\t\t\t\t\t\"description\"\t\t \t=> __( \"Select how the tooltip entry and exit should be animated once triggered.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"edit_field_class\"\t\t\t=> \"vc_col-sm-6 vc_column\",\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"tooltip_usage\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\"\t\t\t\t\t\t=> \"Tooltip\",\r\n\t\t\t\t\t\t),\t\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\"\t\t\t\t\t\t=> \"dropdown\",\r\n\t\t\t\t\t\t\t\"heading\"\t\t\t\t\t=> __( \"Tooltip Style\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\"\t\t\t\t=> \"tooltip_style\",\r\n\t\t\t\t\t\t\t\"value\" \t\t=> $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_ToolTipster_Styles,\r\n\t\t\t\t\t\t\t\"description\"\t\t\t\t=> __( \"Select the tooltip style.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"edit_field_class\"\t\t\t=> \"vc_col-sm-6 vc_column\",\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"tooltip_usage\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Tooltip\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t\t=> \"colorpicker\",\r\n\t\t\t\t\t\t\t\"heading\" \t\t=> __( \"Tooltip Font Color\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t\t=> \"tooltip_color\",\r\n\t\t\t\t\t\t\t\"value\" \t\t=> \"#ffffff\",\r\n\t\t\t\t\t\t\t\"description\" \t\t=> __( \"Define the custom font color for the tooltip.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"tooltip_style\", 'value' => array('tooltipster-custom', 'ts-simptip-style-custom') ),\r\n\t\t\t\t\t\t\t\"edit_field_class\"\t\t\t=> \"vc_col-sm-6 vc_column\",\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Tooltip\",\r\n\t\t\t\t\t\t),\t\t\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t\t=> \"colorpicker\",\r\n\t\t\t\t\t\t\t\"heading\" \t\t=> __( \"Tooltip Background Color\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t\t=> \"tooltip_background\",\r\n\t\t\t\t\t\t\t\"value\" \t\t=> \"#000000\",\r\n\t\t\t\t\t\t\t\"description\" \t\t=> __( \"Define the custom background color for the tooltip.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"tooltip_style\", 'value' => array('tooltipster-custom', 'ts-simptip-style-custom') ),\r\n\t\t\t\t\t\t\t\"edit_field_class\"\t\t\t=> \"vc_col-sm-6 vc_column\",\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Tooltip\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t\t=> \"colorpicker\",\r\n\t\t\t\t\t\t\t\"heading\" \t\t=> __( \"Tooltip Border Color\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t\t=> \"tooltip_border\",\r\n\t\t\t\t\t\t\t\"value\" \t\t=> \"#000000\",\r\n\t\t\t\t\t\t\t\"description\" \t\t=> __( \"Define the custom border color for the tooltip.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"tooltip_style\", 'value' => array('tooltipster-custom', 'ts-simptip-style-custom') ),\r\n\t\t\t\t\t\t\t\"edit_field_class\"\t\t\t=> \"vc_col-sm-6 vc_column\",\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Tooltip\",\r\n\t\t\t\t\t\t),\t\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\"\t\t\t\t\t\t=> \"nouislider\",\r\n\t\t\t\t\t\t\t\"heading\"\t\t\t\t\t=> __( \"Tooltip X-Offset\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\"\t\t\t\t=> \"tooltip_offsetx\",\r\n\t\t\t\t\t\t\t\"value\"\t\t\t\t\t\t=> \"0\",\r\n\t\t\t\t\t\t\t\"min\"\t\t\t\t\t\t=> \"-100\",\r\n\t\t\t\t\t\t\t\"max\"\t\t\t\t\t\t=> \"100\",\r\n\t\t\t\t\t\t\t\"step\"\t\t\t\t\t\t=> \"1\",\r\n\t\t\t\t\t\t\t\"unit\"\t\t\t\t\t\t=> 'px',\r\n\t\t\t\t\t\t\t\"description\"\t\t\t\t=> __( \"Define an optional X-Offset for the tooltip position.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"tooltip_usage\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Tooltip\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\"\t\t\t\t\t\t=> \"nouislider\",\r\n\t\t\t\t\t\t\t\"heading\"\t\t\t\t\t=> __( \"Tooltip Y-Offset\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\"\t\t\t\t=> \"tooltip_offsety\",\r\n\t\t\t\t\t\t\t\"value\"\t\t\t\t\t\t=> \"0\",\r\n\t\t\t\t\t\t\t\"min\"\t\t\t\t\t\t=> \"-100\",\r\n\t\t\t\t\t\t\t\"max\"\t\t\t\t\t\t=> \"100\",\r\n\t\t\t\t\t\t\t\"step\"\t\t\t\t\t\t=> \"1\",\r\n\t\t\t\t\t\t\t\"unit\"\t\t\t\t\t\t=> 'px',\r\n\t\t\t\t\t\t\t\"description\"\t\t\t\t=> __( \"Define an optional Y-Offset for the tooltip position.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"dependency\" \t\t=> array( 'element' => \"tooltip_usage\", 'value' => 'true' ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Tooltip\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\t// Other Settings\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\"\t\t\t\t \t=> \"seperator\",\r\n\t\t\t\t\t\t\t\"param_name\"\t\t \t=> \"seperator_11\",\r\n\t\t\t\t\t\t\t\"seperator\"\t\t\t\t\t=> \"Other Settings\",\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Other\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"nouislider\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Margin: Top\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"margin_top\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"0\",\r\n\t\t\t\t\t\t\t\"min\" \t=> \"0\",\r\n\t\t\t\t\t\t\t\"max\" \t=> \"200\",\r\n\t\t\t\t\t\t\t\"step\" \t=> \"1\",\r\n\t\t\t\t\t\t\t\"unit\" \t=> 'px',\r\n\t\t\t\t\t\t\t\"description\" \t \t=> __( \"Select the top margin for the element.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Other\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"nouislider\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Margin: Bottom\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"margin_bottom\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"0\",\r\n\t\t\t\t\t\t\t\"min\" \t=> \"0\",\r\n\t\t\t\t\t\t\t\"max\" \t=> \"200\",\r\n\t\t\t\t\t\t\t\"step\" \t=> \"1\",\r\n\t\t\t\t\t\t\t\"unit\" \t=> 'px',\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Select the bottom margin for the element.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Other\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"textfield\",\r\n\t\t\t\t\t\t\t\"heading\" \t=> __( \"Define ID Name\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"el_id\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"\",\r\n\t\t\t\t\t\t\t\"description\" \t=> __( \"Enter an unique ID for the element.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Other\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\"type\" \t=> \"tag_editor\",\r\n\t\t\t\t\t\t\t\"heading\" \t\t=> __( \"Extra Class Names\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"param_name\" \t=> \"el_class\",\r\n\t\t\t\t\t\t\t\"value\" \t=> \"\",\r\n\t\t\t\t\t\t\t\"description\" \t\t\t=> __( \"Enter additional class names for the element.\", \"ts_visual_composer_extend\" ),\r\n\t\t\t\t\t\t\t\"group\" \t\t\t\t\t=> \"Other\",\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t)\r\n\t\t\t\t);\r\n\t\t\t\tif ($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_VisualComposer_LeanMap == \"true\") {\r\n\t\t\t\t\treturn $VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_VisualComposer_Element;\r\n\t\t\t\t} else {\t\t\t\r\n\t\t\t\t\tvc_map($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_VisualComposer_Element);\r\n\t\t\t\t};\r\n\t\t\t}",
"function video_lead_video( $service ) {\n\tif ( empty( $service ) )\n\t\treturn;\n\n\t$service = ! empty( $service ) ? esc_attr( $service ) : '';\n\t$video = video_lead_field( $service );\n?>\n\n\t<div class=\"video-lead-embed video-wrap\">\n\n\t\t<?php if ( $service != 'embed' ) : ?>\n\n\t\t\t<iframe width=\"640\" height=\"480\" src=\"<?php echo esc_url( $video ); ?>\" frameborder=\"0\" allowfullscreen></iframe>\n\n\t\t<?php elseif ( $service == 'embed' ) :\n\t\t\t$filter = video_lead_field( 'embed_format' );\n\t\t?>\n\n\t\t\t<?php if ( ! empty( $filter['enable'] ) ) : ?>\n\t\t\t\t<?php echo apply_filters( 'the_content', $video ); ?>\n\t\t\t<?php else : ?>\n\t\t\t\t<?php echo $video; ?>\n\t\t\t<?php endif; ?>\n\n\t\t<?php endif; ?>\n\n\t</div>\n\n<?php }",
"public function video()\n {\n $data = array(\n 'judul_halaman' => 'Sibejoo - Video',\n 'judul_header' => 'Layanan Video',\n );\n\n $konten = 'modules/layanan/views/r-layanan-video.php';\n\n $data['files'] = array(\n APPPATH . 'modules/homepage/views/r-header-detail.php',\n APPPATH . $konten,\n APPPATH . 'modules/homepage/views/r-footer.php',\n );\n\n $this->parser->parse('r-index-layanan', $data);\n }",
"function addVideo($vidId,$crsId)\r\n{\r\n\t$yt = new Zend_Gdata_YouTube();\r\n $entry = $yt->getVideoEntry($vidId);\r\n $videoTitle = addslashes($entry->mediaGroup->title);\r\n $videoUrl = $entry->mediaGroup->player[0]->url;\r\n\t//$videoUrl = findFlashUrl($entry);\r\n\t$description = addslashes($entry->mediaGroup->description);\r\n $authorUsername = $entry->author[0]->name;\r\n\t//list($vburl, $rest) = split('[?]', $videoUrl);\r\n\t$upDate = date_create($entry->getUpdated());\r\n\t$lastUpdate = date_format($upDate,'Y-m-d H:i:s');\r\n\t$pubDate = date_create($entry->getPublished());\r\n\t$videoUploaded = date_format($pubDate,'Y-m-d H:i:s');\r\n\t$duration = $entry->mediaGroup->duration->seconds;\r\n\tdb_connect();\r\n\t$foundAuthor = mysqli_num_rows(mysqli_query($db,\"SELECT * FROM `vb_videos` WHERE `crsid_fk` = $crsId AND `author` LIKE '$authorUsername'\"));\r\n\tif($foundAuthor != 0){\r\n\t\t$lastOrder = mysqli_fetch_row(mysqli_query($db,\"SELECT MAX(`vidorder`) FROM `vb_videos` WHERE `crsid_fk` = $crsId AND `author` LIKE '$authorUsername' AND `pubdate` < '$videoUploaded'\"));\r\n\t\t$vidOrder = $lastOrder[0]+1;\r\n\t}\r\n\telse {\r\n\t$lastOrder = mysqli_fetch_row(mysqli_query($db,\"SELECT MAX(`vidorder`) FROM `vb_videos` WHERE `crsid_fk` = $crsId\"));\r\n\t$vidOrder = $lastOrder[0]+1;\r\n\t}\r\n\t\r\n\t// filtering url from un-wanted characters\r\n\t\tif(strpos($videoUrl,\"&\") !== false) $length = strpos($videoUrl,\"&\");\r\n\t\telse $length = strlen($videoUrl);\r\n\t\t$vidUrl = trim(str_replace(\"watch?v=\",\"v/\",substr($videoUrl,0,$length)));\r\n\t\t$insBefore = mysqli_num_rows(mysqli_query($db,\"SELECT `vidid` FROM `vb_videos` WHERE `crsid_fk` = $crsId AND `vidurl` LIKE '$vidUrl'\"));\r\n\t\tif($insBefore == 0){\r\n\t\t\tif($foundAuthor != 0){mysqli_query($db,\"UPDATE `vb_videos` SET `vidorder` = `vidorder`+1 WHERE `crsid_fk` = $crsId AND `vidorder` >= '$vidOrder';\");}\r\n\t\t\t$insertNewLine = mysqli_query($db,\"INSERT INTO `vb_videos` (`crsid_fk`, `vidtitle`, `vidurl`, `vidorder`, `modify_date`, `author`, `desc`, `lastupdate`, `duration`, `pubdate`) VALUES ('$crsId', '$videoTitle', '$vidUrl', '$vidOrder', '\".date(\"Y-m-d H:i:s\").\"', '$authorUsername', '$description', '$lastUpdate', '$duration', '$videoUploaded');\");\r\n\t\t\tif($insertNewLine) echo'<div id=\"popDiv\" class=\"addSucc\"><div style=\"text-align:right\"><a href=\"javascript:closeAd(\\'popDiv\\')\"><img src=\"../../images/close.gif\" border=0 /></a></div><br /><!-- Message Start -->Adding choosed video to course is done successfully!.<!-- Message End --></div>';\r\n\t\t}\r\n\t\telse {echo'<div id=\"popDiv\" class=\"addFail\"><div style=\"text-align:right\"><a href=\"javascript:closeAd(\\'popDiv\\')\"><img src=\"../../images/close.gif\" border=0 /></a></div><br /><!-- Message Start -->Adding choosed video to course is Failed!, it was added before.<!-- Message End --></div>';}\r\n\tdb_disconnect();\r\n}",
"public function updateOffreVideo($data)\n {\n\n $data['image'] = self::$metierImpImage->updateImage($data['image']);\n\n $data['etat'] = self::$etatImpMetier->getEtatByNum($data['etat']['num']);\n\n $data['duree'] = self::$metierImpDuree->updateDuree($data['duree']);\n $data['devise'] = self::$deviseImpMetier->getDevise($data['devise']['id']);\n\n $offreFT = self::$daoImpOffreVideo->findById(self::CLASSNAMEOFFREVIDEO, $data['id']);\n\n return self::$daoImpOffreVideo->updateOffreVideo($offreFT, $data);\n\n }",
"function mainViewVideo()\n{\n ?>\n <embed type=\"application/x-mplayer2\" \n src=\"<?php echo TOP_DIR.\"/actions/file_download.php?imgid=\".$_GET['imgid'].\"&ignore=true\"; ?>\"\n width=\"<?php echo $this->stage_width; ?>\"\n height=\"<?php echo ($this->stage_height + 45); ?>\"\n transparentatstart=\"true\"\n autostart=\"true\"\n animationatstart=\"true\"\n showcontrols=\"true\"\n showaudiocontrols=\"true\"\n showpositioncontrols=\"true\"\n autosize=\"false\"\n showstatusbar=\"true\"\n displaysize=\"true\"\n hspace=\"4\">\n </embed>\n <br />\n <?php\n $this->printDownloadLink();\n}",
"function pp_add_series_video() {\n $user_id = get_current_user_id();\n\n $is_series = get_post_meta( get_the_ID(), 'series_id', true );\n $video = get_post_meta( get_the_ID(), 'pp_mp4', true );\n \n /**\n * Premium video\n */\n if ( has_post_format( 'video' ) ) : ?>\n <div id=\"post-video\">\n <?php\n if( strpos( $video, home_url() ) === false ) {\n echo wp_oembed_get( $video, array( 'width' => 720 ) ); \n } else {\n echo do_shortcode( '[video width=\"720\" src=\"' . $video . '\"]' ); \n }\n ?>\n </div>\n\n <?php endif; \n}",
"public function addVideo($title, $vID, $sID=\"vimSID\", $hdID=\"hdID\", $sdID=\"sdID\", $mobileID=\"mobileID\", $type=\"Generic\", $thumb=\"tn\", $frame=\"fr-img\", $ro_dir=\"Director\", $ro_dp=\"DP\", $ro_cam=\"Camera\", $ro_ed=\"Editor\", $desc=\"Long description\"){\n $this->videoList[] = new cShowcaseVideo($title, $vID, $sID, $hdID, $sdID, $mobileID, $type, $thumb, $frame, $ro_dir, $ro_dp, $ro_cam, $ro_ed, $desc);\n }",
"public function getVideo() {\n // fopen($this->videoClip, \"r\");\n // play($this->videoClip);\n }",
"function mrss_add_video( $media ) {\n\t\tglobal $post;\n\n\t\t$video = wpseo_get_value( 'video_meta', $post->ID );\n\n\t\tif ( !$video || $video == 'none' )\n\t\t\treturn $media;\n\n\t\t$video_duration = wpseo_get_value( 'videositemap-duration', $post->ID );\n\t\tif ( !$video_duration && isset( $video['duration'] ) ) {\n\t\t\t$video_duration = $video['duration'];\n\t\t}\n\n\t\t$item['content']['attr']['url'] = $video['player_loc'];\n\t\t$item['content']['attr']['duration'] = $video_duration;\n\t\t$item['content']['children']['player']['attr']['url'] = $video['player_loc'];\n\t\t$item['content']['children']['title']['attr']['type'] = 'html';\n\t\t$item['content']['children']['title']['children'][] = esc_html( $video['title'] );\n\t\t$item['content']['children']['description']['attr']['type'] = 'html';\n\t\t$item['content']['children']['description']['children'][] = esc_html( $video['description'] );\n\t\t$item['content']['children']['thumbnail']['attr']['url'] = $video['thumbnail_loc'];\n\t\t$item['content']['children']['keywords']['children'][] = implode( ',', $video['tag'] );\n\t\tarray_unshift( $media, $item );\n\n\t\treturn $media;\n\t}",
"public function testReviewPrototypeUpdateVideo()\n {\n\n }",
"public function videourl()\n\t{\n\t\t$view = $this->getView('videourl');\n\n\t\tif ($model = $this->getModel('videourl'))\n\t\t{\n\t\t\t$view->setModel($model, true);\n\t\t}\n\n\t\t$view->getvideourl();\n\t}",
"public function add_video($link)\n {\n echo 'to aqui';\n if(!preg_match(\"/vimeo/\", $link)) {\n $vendor = 'youtube';\n } else {\n $vendor = 'vimeo';\n echo $vendor ;\n echo $link;\n }\n if($vendor == 'youtube') {\n if($id = SELF::get_youtube_id($link)) {\n $this->_video_id = $id;\n $this->_video_type = 'youtube';\n return $this->_video_id;\n } else {\n return FALSE;\n }\n } else if($vendor == 'vimeo') {\n \n $id = SELF::get_vimeo_id($link);\n \n echo 'Valor dor Id=';\n echo $id;\n //echo $id;\n \n echo '____entrei =';\n $this->_video_id = $id;\n $this->_video_type = 'vimeo';\n echo $this->_video_id;\n return $this->_video_id;\n \n \n \n } else {\n return FALSE;\n }\n }",
"public function getVideo()\n {\n return $this->video;\n }",
"public function GetVideoInfo()\n {\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Time spent waiting during this transition. Wait duration corresponds to idle time and does not include break time. Also note that this wait time may be split into several noncontiguous intervals. Generated from protobuf field .google.protobuf.Duration wait_duration = 6; | public function setWaitDuration($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
$this->wait_duration = $var;
return $this;
} | [
"public function getWaitingTime ()\n {\n return round($this->waitingTime * 1000);\n }",
"public function getWaitingTime()\n {\n if ($this->lastActionTime === null) {\n return 0;\n }\n $diff = $this->lastActionTime - ($this->timeProvider->getTime() - $this->getCurrentInterval());\n return $diff;\n }",
"public function getEstimatedWaitingTime()\n {\n $peopleAheadInLine = $this->getPosInQueue();\n $estimatedTime = $peopleAheadInLine * self::SESSION_LENGTH;\n\n $currentSessionOfTheSpecialist = $this->specialist->getCurrentSession();\n if($currentSessionOfTheSpecialist) {\n $timePassedSinceStarted = Carbon::now()->diffInSeconds(\n $currentSessionOfTheSpecialist->updated_at\n );\n $timeRemaining = self::SESSION_LENGTH - $timePassedSinceStarted;\n if($timeRemaining > 0)\n $estimatedTime += $timeRemaining;\n }\n\n return $estimatedTime;\n }",
"public function getWaitDurationInterval(){\n return new \\DateInterval($this->getWaitDuration());\n }",
"public function setWait($var)\n {\n GPBUtil::checkInt64($var);\n $this->wait = $var;\n\n return $this;\n }",
"public function getWaitTimeSeconds()\n {\n return $this->WaitTimeSeconds;\n }",
"public function getWaitTime() : int {\r\n\r\n return (int) $this->getMain()->getDatabase()->get(\"waiting_time\", [\"table\" => \"Games\", \"name\" => $this->getName()])->fetchArray()[0];\r\n\r\n }",
"public function getRoundWait() : int {\n\t\treturn $this->expectedRoundWait;\n\t}",
"protected function getPauseDuration()\n {\n return 0.005;\n }",
"public function reloadWaitingSeconds(){\n $this->waitingSeconds = exc::stringToFloat($this->game->get(\"waiting_seconds\"));\n }",
"private function howLongShouldItTake()\n\t{\n\t\t// Let's count how many seconds do we need from current time to the deadline\n\t\t$currentTime = new \\DateTime();\n\t\t$difference = $this->deadline->diff($currentTime);\n\n\t\treturn ($difference->h * 3600) + ($difference->i * 60) + $difference->s;\n\t}",
"public function setGameWait(int $wait) : Tournament {\n\t\t$this->expectedGameWait = $wait;\n\t\treturn $this;\n\t}",
"protected function _calculateDuration()\n {\n if( $this->completed_at == null )\n throw new \\Exception(\"Cannot calcuate time difference because completed_at is not set\");\n\n $diff = $this->created_at->diffInSeconds($this->completed_at);\n $diffSec = $diff - $this->paused_duration_sec;\n return ceil($diffSec/60);\n }",
"public function getTotalSleepTimeMilliseconds(): int;",
"public function getSleepBetweenRuns()\n {\n if ($this->sleepDuration > 0) {\n return $this->sleepDuration;\n }\n\n return 5;\n }",
"public function getWaitRetryDelay()\n {\n return $this->waitRetryDelay;\n }",
"function waiting_time ($seconds) {\n // waiting time code start\n $hours = floor($seconds/3600);\n $min = ($seconds/60)%60;\n $sec = $seconds%60;\n \n $waiting_time_hours = $hours;\n $waiting_time_hours = $hours*1;\n $waiting_time_min = $min;\n if($waiting_time_hours > 1) $hours=' hours '; \n else if($waiting_time_hours == 1) $hours=' hour '; \n else {$waiting_time_hours=\"\";$hours=\"\";}\n \n $waiting_time = $waiting_time_hours.$hours.$waiting_time_min. \" min\"; \n // waiting time code end\n return $waiting_time;\n }",
"public function getMinutesToWait() {\r\n \t\r\n \t$last_game_time = strtotime($this->date);\r\n \t\r\n \tif($this->getGameSettings()->getWaitTime() === false){\r\n \t\t$start_today_time = strtotime(date('Y-m-d').' 00:00:00');\r\n \t\tif($last_game_time < $start_today_time){\r\n \t\t\treturn 0;\r\n \t\t}else{\r\n \t\t\treturn $minutes_to_wait = ceil(($start_today_time + 24*60*60 - time())/60);\r\n \t\t}\r\n \t}else{\r\n \t\treturn $minutes_to_wait = ceil(($last_game_time + $this->getGameSettings()->getWaitTime()*60 - time())/60);\r\n \t}\r\n }",
"public function setTimeToWait($value)\n {\n return $this->set('TimeToWait', $value);\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of field civility_id | public function getCivilityId()
{
return $this->civility_id;
} | [
"public function getCivility()\n {\n return $this->civility;\n }",
"public function getIdCovoitureur(): string\n {\n return $this->idCovoitureur;\n }",
"function get_candidat_id() {\n\treturn read_session('abb_id_candidat', false);\n}",
"public function getCouncilId() {\n\n return $this->councils_id;\n\n }",
"public function getFacilityId()\n {\n return $this->getLoginInfoSv()->getFacilityId();\n }",
"public function getId_ciudad()\n\t{\n\t\treturn $this->id_ciudad;\n\t}",
"function getCampusID()\n {\n return $this->getValueByFieldName('campus_id');\n }",
"public function getIdClinic(): int\n {\n return $this->idClinic;\n }",
"public function getFacilityId()\n {\n return $this->getLoginInfoValue('FACILITY', 'FACILITY_ID');\n }",
"function City_CGI_Value()\n {\n $cityid=$this->CGI_GETint(\"City\");\n\n return $cityid;\n }",
"public function getIdCandidature()\n {\n return $this->idCandidature;\n }",
"private function get_incident_id()\n \t{\n \t\t////////////////////////////////////////////////////////////////\n\t\t// GET fields check out, let's check the database\n\t\t// can we find the custom field that stores the IVR code\n\t\t$ivr_field = ORM::factory('form_field')->where('field_name',$this->form_fields['ivrcode'])->find();\n\t\t//no we couldn't find it\n\t\tif(! $ivr_field->loaded){\n\t\t\t$this->response['status'] = 'Error';\n\t\t\t$this->response['message'][] = \"Could not find ivrcode db form field named \" . $this->form_fields['ivrcode'];\n\t\t\t$this->send_response($this->response, $this->resp);\n\t\t\treturn;\n\t\t}\n\n\t\t//can we find the reponse for the IVR custom field that has the IVR code in question?\n\t\t$incident_form_field = ORM::factory('form_response')\n\t\t\t\t\t\t\t\t\t->where('form_field_id',$ivr_field->id)\n\t\t\t\t\t\t\t\t\t->where('form_response',$this->form_answers['ivrcode'])\n\t\t\t\t\t\t\t\t\t->find();\n\t\t//no we couldn't find it.\n\t\tif(! $incident_form_field->loaded){\n\t\t\t$this->response['status'] = 'Error';\n\t\t\t$this->response['message'][] = \"Could not find incident referenced by ivrcode \" . $this->form_answers['ivrcode'];\n\t\t\t$this->errors_found = TRUE;\n\t\t}else{\n\t\t\t$incident_id = $incident_form_field->incident_id;\n\t\t}\n\n\n\t\t//if any thing above didn't work then error out.\n\t\tif($this->errors_found){\n\t\t\t$this->send_response();\n\t\t\texit;\n\t\t}\n \t\treturn $incident_id;\n \t}",
"public function getVatId();",
"public function getCargoId()\n\t{\n\t\treturn $this->cargo_id;\n\t}",
"public function getCargo_id(){\n return $this->cargo_id;\n }",
"public function get_id_c()\n {\n return $this->_id_c;\n }",
"function getIdValue()\n {\n }",
"public function getId_ciudad()\n {\n return $this->id_ciudad;\n }",
"function getId_ciudad() {\n return $this->id_ciudad;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
UPDATE SUM RMIC 3 | public function updSumScmRmic3($refid, $staff_id, $scm_rm_tot_amt_rmic, $scm_total_amt_dept_apprv_hod, $scm_rm_tot_amt_apprv_rmic, $scm_rm_tot_amt_apprv_tncpi, $scm_rm_total_amt_approve_tnca, $scm_foreign_tot_amt_rmic, $scm_rm_total_amt, $scm_rm_total_amt_approve_hod, $scm_rm_total_amt_approve_tnca2, $scm_rm_total_amt_approve_tnca3, $scm_rm_total_amt_approve_vc, $scm_foreign_total_amt)
{
$data = array(
"SCM_RM_TOT_AMT_RMIC" => $scm_rm_tot_amt_rmic,
"SCM_TOTAL_AMT_DEPT_APPRV_HOD" => $scm_total_amt_dept_apprv_hod,
"SCM_RM_TOT_AMT_APPRV_RMIC" => $scm_rm_tot_amt_apprv_rmic,
"SCM_RM_TOT_AMT_APPRV_TNCPI" => $scm_rm_tot_amt_apprv_tncpi,
"SCM_FOREIGN_TOT_AMT_RMIC" => $scm_foreign_tot_amt_rmic,
"SCM_RM_TOTAL_AMT_APPROVE_TNCA" => $scm_rm_total_amt_approve_tnca3,
"SCM_RM_TOTAL_AMT_APPROVE_VC" => $scm_rm_total_amt_approve_vc,
"SCM_RM_TOTAL_AMT" => $scm_rm_total_amt,
"SCM_FOREIGN_TOTAL_AMT" => $scm_foreign_total_amt,
"SCM_RM_TOTAL_AMT_DEPT" => 0,
"SCM_FOREIGN_TOTAL_AMT_DEPT" => 0,
"SCM_RM_TOTAL_AMT_APPROVE_HOD" => $scm_rm_total_amt_approve_hod,
);
$this->db->where("SCM_STAFF_ID", $staff_id);
$this->db->where("SCM_REFID", $refid);
return $this->db->update("STAFF_CONFERENCE_MAIN", $data);
} | [
"function total_sisa_paket_update($dapaket_dpaket, $dapaket_jpaket, $dapaket_paket){\r\n\t\t//* UPDATE db.detail_jual_paket.dpaket_sisa_paket ==> sisa paket dari paket yang dibeli akan diupdate akibat dari pengambilan paket /\r\n\t\t/*$sql_sisa_paket=\"UPDATE detail_jual_paket\r\n\t\t\tSET dpaket_sisa_paket=\r\n\t\t\t\t(\r\n\t\t\t\tSELECT ((dpaket_jumlah*paket_jmlisi)-(sum(dapaket_jumlah)))\r\n\t\t\t\tFROM detail_ambil_paket\r\n\t\t\t\tLEFT JOIN paket ON(dapaket_paket=paket_id)\r\n\t\t\t\tWHERE paket_id='$dapaket_paket'\r\n\t\t\t\t\tAND dapaket_dpaket='$dapaket_dpaket'\r\n\t\t\t\t\tAND dapaket_jpaket='$dapaket_jpaket'\r\n\t\t\t\t\tAND dapaket_stat_dok<>'Batal'\r\n\t\t\t\tGROUP BY dapaket_dpaket, dapaket_jpaket, dapaket_paket\r\n\t\t\t\t)\r\n\t\t\tWHERE detail_jual_paket.dpaket_id='$dapaket_dpaket'\r\n\t\t\t\tAND detail_jual_paket.dpaket_master='$dapaket_jpaket'\r\n\t\t\t\tAND detail_jual_paket.dpaket_paket='$dapaket_paket'\";*/\r\n\t\t$sql_sisa_paket = \"UPDATE detail_jual_paket\r\n\t\t\tLEFT JOIN paket ON(dpaket_paket=paket_id)\r\n\t\t\tLEFT JOIN vu_total_ambil_paket ON(vu_total_ambil_paket.dapaket_dpaket=dpaket_id \r\n\t\t\t\tAND vu_total_ambil_paket.dapaket_jpaket=detail_jual_paket.dpaket_master\r\n\t\t\t\tAND vu_total_ambil_paket.dapaket_paket=detail_jual_paket.dpaket_paket)\r\n\t\t\tSET dpaket_sisa_paket=((dpaket_jumlah*paket_jmlisi)- IF(isnull(vu_total_ambil_paket.total_ambil_paket),0,vu_total_ambil_paket.total_ambil_paket))\r\n\t\t\tWHERE detail_jual_paket.dpaket_id='$dapaket_dpaket'\r\n\t\t\t\tAND detail_jual_paket.dpaket_master='$dapaket_jpaket'\r\n\t\t\t\tAND detail_jual_paket.dpaket_paket='$dapaket_paket'\";\r\n\t\t$this->db->query($sql_sisa_paket);\r\n\t\treturn 1;\r\n\t\t\r\n\t}",
"function plusProduct($dbprefix,$pcode,$invent,$qty){\n\t//$rs = mysql_query($sql);\n\t$sql = \"update \".$dbprefix.\"product set qty = qty+$qty WHERE pcode='$pcode' \";\n\t$rs = mysql_query($sql);\n}",
"private function _updateBalance()\n\t{\n\t\t$id = intval($this->_data['id']);\n\t\t\n\t\t$sql = 'UPDATE invoice SET';\n\t\t$sql.= ' sub_total = ( SELECT SUM ( quantity * rate * (1 + tax_rate)) FROM invoice_item WHERE invoice_id = ?)';;\n\t\t$sql.= ', tax_total = ( SELECT SUM ( quantity * rate * tax_rate) FROM invoice_item WHERE invoice_id = ?)';\n\t\t$sql.= ', bill_amount = ( SELECT SUM ( quantity * rate * (1 + tax_rate)) FROM invoice_item WHERE invoice_id = ?) ';\n\t\t// $sql.= ', paid_amount =\n\t\t$sql.= ' WHERE id = ? ';\n\t\tSQL::query($sql, array($id, $id, $id, $id));\n\t\t// die(SQL::lastError());\n\n\t\t// $r = array();\n\t\t// $r['sub_total'] = floatval($d->fetchOne(\"select sum( quantity * rate ) as sub_total from invoice_item where invoice_id={$id}\"));\n\t\t// $r['tax_total'] = floatval($d->fetchOne(\"select sum( quantity * rate * tax_rate) as tax_total from invoice_item where invoice_id={$id}\"));\n\t\t// $sql.= ' sub_total = ?, ';\n\t\t// $arg[] = floatval(SQL::fetch_one(\"select sum( quantity * rate * tax_rate) as tax_total from invoice_item where invoice_id={$id}\"));\n\t\t// // $r['bill_amount'] = $r['sub_total'] + $r['tax_total'];\n\t\t// $sql.= ' bill_amount = ?, ';\n\t\t// $arg[] = $r['sub_total'] + $r['tax_total'];\n\t\t// // $r['paid_amount'] = $this->getTransactionSum();\n\t\t// $sql.= ' paid_amount = ? ';\n\t\t// $arg[] = $this->getTransactionSum();\n\n\t\t// @todo Force Marking as Paid Amount Full?\n\t\t// if ($this->status == 'Paid') {\n\t\t//\t $r['paid_amount'] = $r['bill_amount'];\n\t\t// }\n\t\t// $w = array('id = ?'=>$this->id);\n\t\t// $t = new Zend_Db_Table(array('name'=>'invoice'));\n\t\t// $t->update($r,$w);\n\n\t\t// @todo Save to Object Data?\n\t\t// $this->bill_amount = $r['bill_amount'];\n\t\t// $this->paid_amount = $r['paid_amount'];\n\t\t// $this->sub_total = $r['sub_total'];\n\t\t// $this->tax_total = $r['tax_total'];\n\n\t}",
"public function updateSummaryRktVra($row = array())\n\t{\n\t\t//delete data lama\n\t\t$sql = \"\n\t\t\tDELETE FROM TR_RKT_VRA_SUM\n\t\t\tWHERE PERIOD_BUDGET = TO_DATE('01-01-{$row['PERIOD_BUDGET']}','DD-MM-RRRR') \n\t\t\t\tAND BA_CODE = '{$row['BA_CODE']}'\n\t\t\t\tAND VRA_CODE = '\".addslashes($row['VRA_CODE']).\"';\n\t\t\";\n\t\t\n\t\t///////////////////////////// SUMMARY RKT VRA /////////////////////////////\n\t\t$query = \"\n\t\t\tSELECT SUM(TOTAL_BIAYA) TOTAL_BIAYA, SUM(TOTAL_QTY_TAHUN) TOTAL_QTY_TAHUN\n\t\t\tFROM TR_RKT_VRA\n\t\t\tWHERE VRA_CODE = '\".addslashes($row['VRA_CODE']).\"'\n\t\t\t\tAND to_char(PERIOD_BUDGET,'DD-MM-RRRR') = '01-01-{$row['PERIOD_BUDGET']}'\n\t\t\t\tAND BA_CODE = '\".addslashes($row['BA_CODE']).\"'\n\t\t\t\tAND DELETE_USER IS NULL\n\t\t\t\tAND FLAG_TEMP IS NULL\n\t\t\";\n\t\t$hasil = $this->_db->fetchRow($query);\n\t\t\n\t\t//rp/qty\n\t\t$rp_qty = ($hasil['TOTAL_QTY_TAHUN']) ? $hasil['TOTAL_BIAYA'] / $hasil['TOTAL_QTY_TAHUN'] : 0;\n\t\t$row['RP_QTY'] = $rp_qty;\n\t\t\n\t\t$sql .= \"\n\t\t\tINSERT INTO TR_RKT_VRA_SUM (PERIOD_BUDGET, BA_CODE, VRA_CODE, VALUE, INSERT_USER, INSERT_TIME)\n\t\t\tVALUES (\n\t\t\t\tTO_DATE('01-01-{$row['PERIOD_BUDGET']}','DD-MM-RRRR'),\n\t\t\t\t'\".addslashes($row['BA_CODE']).\"',\n\t\t\t\t'\".addslashes($row['VRA_CODE']).\"',\n\t\t\t\t'\".$rp_qty.\"',\n\t\t\t\t'{$this->_userName}',\n\t\t\t\tSYSDATE\n\t\t\t);\n\t\t\";\n\t\t\n\t\t//create sql file\n\t\t$this->_global->createSqlFile($row['filename'], $sql);\t\t\n return true;\t\n\t}",
"public function drug_stock_balance_update(){\n\t\t//SELECT QUANTITY ,QUANTITY_OUT,@BALANCE:=@BALANCE+QUANTITY-QUANTITY_OUT FROM adt.drug_stock_movement ,(SELECT @BALANCE:=0) as DUMMY WHERE transaction_type!='11' AND drug='155' AND batch_number='NVSA12022-' AND source='13050' AND source=destination ORDER BY ID ASC; \n\t\t//SELECT TRANSACTION_TYPE,QUANTITY ,QUANTITY_OUT,IF(TRANSACTION_TYPE='11',@BALANCE:=@BALANCE-@BALANCE+QUANTITY,@BALANCE:=@BALANCE+QUANTITY-QUANTITY_OUT) FROM adt.drug_stock_movement ,(SELECT @BALANCE:=0) as DUMMY WHERE drug='155' AND batch_number='NVSA12022-' AND source='13050' AND source=destination ORDER BY ID ASC; \n\t\t\n\t}",
"function kpc_update($data)\n\t {\n\t $sql = \"UPDATE user_score SET score=score+{$data['kpc_value']} WHERE uId = {$data['uId']}\";\n\t\t$this->db->query($sql);\n\t }",
"private function updateAggregationSums($day, $month)\n {\n DB::update('UPDATE ' . $this->aggregation_table . ' SET last_transaction_id=' . $this->last_transaction_id . ', commission_sum = commission_sum + ' . $this->day_commission_sum . ', sale_sum = sale_sum + ' . $this->day_sale_sum . ', transaction_count = transaction_count + ' . $this->number_of_transactions . ' WHERE month = ' . $month . ' AND day = ' . $day . ';');\n\n }",
"function insert_data_total(){\n\t\t\t\n\t\t\t$query = $this->db->query(\"UPDATE data_kucing SET gejala_khusus_1 = '$optradio'\");\n\t\t\t\n\t\t\treturn $query;\n\t\t\t\n\t\t}",
"public function updateTotal() {\n //get the scans for this user\n $scans = $this->scans();\n //create running total\n $newTotal = 0; \n //for each scan, add the total pups and virus to the total\n foreach ($scans as $scan) {\n $newTotal += $scan->pups + $scan->troj_mal;\n }\n //sets and saves the new total for this user\n $this->total = $newTotal;\n $this->save();\n }",
"function qtyUpdate($record_pk, $action){\n global $conn;\n\n if($action){\n // increment\n $sql = \"update inventory set \" .\n \"on_hand = on_hand + 1, \" .\n \"last_updated = now() \" . \n \"where id = $record_pk;\";\n } else {\n // decrement\n $sql = \"update inventory set \" .\n \"on_hand = on_hand - 1, \" .\n \"last_updated = now() \" .\n \"where id = $record_pk and \" .\n \"on_hand > 0;\";\n }\n\n $conn->query($sql);\n }",
"function increaseInventory($sku, $amount) {\n \n # STH means \"Statement Handle\" \n $STH = $this->DBH->prepare(\"update xcart_products set avail = avail+{$amount} where productcode = '$sku';\"); \n $STH->execute(); \n }",
"public function update_total() {\n\t\t$this->load->model('pos/pos');\n\t\t$this->language->load('module/pos');\n\t\t$json = $this->recalculate_total($this->request->post);\n\t\t$this->response->setOutput(json_encode($json));\t\n\t}",
"public function positive_stock_adjust($filter_data,$qty)\n {\n # update the quantity in master inventory by adding the adjusted quantity \n # where the item code is equal to the item code of the refunded item\n $sql=\"UPDATE master_inventory SET Available_stock=Available_stock+$qty WHERE item_code='$filter_data'\";\n $this->db->query($sql);\n\n }",
"function update_vat_n_total() {\r\n\t\t\r\n\t//VAT EXP\r\n mysql_query(\"UPDATE sales_orders SET inc_vat = (Grand_total+shipping_cost)*1.2 , VAT_ammount=(Grand_total+shipping_cost)*0.2\");\r\n\t\r\n $redirect = '' . base_url() . 'index.php/salesorders/';\r\n redirect($redirect);\r\n }",
"function updateAmount($table,$field1,$amt,$where)\n {\n $this->db->set($field1, \"$field1+$amt\",FALSE);\n $this->db->where($where);\n $this->db->update($table);\n }",
"function update_portfolio($connection, $id, $symbol, $amount){\n $result = get_portfolio($connection, $id, $symbol);\n $newAmount = $result['amount'] + $amount;\n if ($newAmount < 1){\n remove_portfolio($connection, $id, $symbol);\n }\n else{\n try {\n $sql = \"UPDATE portfolio Set amount = ? WHERE userId = ? AND symbol = ?\";\n $result = runQuery($connection, $sql, array($newAmount, $id, $symbol));\n return $result;\n }\n catch (PDOException $e) {\n die( $e->getMessage() );\n }\n }\n}",
"function update_vdmsummary($id_user, $opt_order, $opt_trade, $opt_volume, $fut_order, $fut_trade, $fut_volume, $tt_order, $tt_trade, $tt_volume){\n //$ini, $cur_value,$perfom , SQL = `initial` = '{$ini}', `cur_value` = '{$cur_value}', `perform` = '{$perfom}',\n $sql=\"UPDATE vdm_user_summary SET \n `opt_nb_ord` = '{$opt_order}', `opt_nb_trd` = '{$opt_trade}',`opt_volume`='{$opt_volume}' , \n `fut_nb_ord` = '{$fut_order}', `fut_nb_trd`='{$fut_trade}', `fut_volume` ='{$fut_volume}',\n `tt_nb_ord` = '{$tt_order}', `tt_nb_trd` = '{$tt_trade}', `tt_volume` ='{$tt_volume}' WHERE `id_user` = '{$id_user}'\";\n return $this->db3->query($sql); \n }",
"private function updatePurchasesDetailQuantity()\n {\n\t\t $query=\"update purchasedetail set remaining = purchasedetail.quantity - ( select IFNULL(sum(quantity),0) FROM orderdetail where orderdetail.purchasedetailid =purchasedetail.purchasedetailid)\";\n //echo $query; \n\n\t\t error_log($query);\n\t\t $r = $this->mysqli->query($query) or die($this->mysqli->error.__LINE__);\n\n\n\t\t // $query = \"update product set inventory = IFNULL(( (select sum(quantity) as sumquantity from purchasedetail where productcode=product.productcode) ) - (SELECT sum(quantity) as totalvalue FROM orderdetail WHERE purchasedetailid in ( select purchasedetailid from purchasedetail where productcode=product.productcode)),0)\";\n\n$query = \"update product set inventory = (IFNULL((select sum(quantity) as sumquantity from purchasedetail where productcode=product.productcode),0)) - (IFNULL((SELECT sum(quantity) as totalvalue FROM orderdetail WHERE purchasedetailid in ( select purchasedetailid from purchasedetail where productcode=product.productcode)),0))\";\n //echo $query; \n\t\t error_log($query);\n\t\t $r = $this->mysqli->query($query) or die($this->mysqli->error.__LINE__);\n\n\n }",
"function block_risk_monitor_adjust_weightings_rule_deleted($categoryid, $old_sum) {\n \n global $DB;\n \n //Get all the rules\n $registered_rules = block_risk_monitor_get_rules($categoryid);\n \n foreach($registered_rules as $registered_rule) {\n //Get the weighting\n $weighting_value = $registered_rule->weighting;\n\n $new_weighting = ($weighting_value/$old_sum) * 100;\n\n //Change in DB\n $new_record = new object();\n $new_record->id = $registered_rule->id;\n $new_record->weighting = $new_weighting;\n $DB->update_record('block_risk_monitor_rule_inst', $new_record);\n }\n}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case for getZRLocationSettings Get location settings. | public function testGetZRLocationSettings()
{
// TODO: implement
$this->markTestIncomplete('Not implemented');
} | [
"public function testGetZRLocationSettings()\n {\n }",
"public function testListZRLocations()\n {\n }",
"public function testGetZRLocationProfile()\n {\n }",
"abstract public function getSettings();",
"public function testChangeZRLocation()\n {\n }",
"public function getSettings();",
"public function getSettings()\n\t{\n\t}",
"protected function getZRLocationSettingsRequest($setting_type, $location_id)\n {\n // verify the required parameter 'setting_type' is set\n if ($setting_type === null || (is_array($setting_type) && count($setting_type) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $setting_type when calling getZRLocationSettings'\n );\n }\n // verify the required parameter 'location_id' is set\n if ($location_id === null || (is_array($location_id) && count($location_id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $location_id when calling getZRLocationSettings'\n );\n }\n\n $resourcePath = '/rooms/locations/{locationId}/settings';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n // query params\n if ($setting_type !== null) {\n $queryParams['setting_type'] = ObjectSerializer::toQueryValue($setting_type);\n }\n\n // path params\n if ($location_id !== null) {\n $resourcePath = str_replace(\n '{' . 'locationId' . '}',\n ObjectSerializer::toPathValue($location_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json', 'application/xml']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json', 'application/xml'],\n ['application/json', 'multipart/form-data']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n \n if($headers['Content-Type'] === 'application/json') {\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass) {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n // array has no __toString(), so we should encode it manually\n if(is_array($httpBody)) {\n $httpBody = \\GuzzleHttp\\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));\n }\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires OAuth (access token)\n if ($this->config->getAccessToken() !== null) {\n $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }",
"public function testLocationInformation()\n {\n }",
"public function locationdetailsAction() {\n $location = [];\n $location['promotion1'] = Mage::getStoreConfig('vrshop/vrshop_group/vrshop_promotion1');\n $location['promotion2'] = Mage::getStoreConfig('vrshop/vrshop_group/vrshop_promotion2');\n $location['template'] = Mage::getStoreConfig('vrshop/vrshop_group/vrshop_location');\n $location['shop_name'] = Mage::app()->getWebsite()->getName();\n $location['shop_id'] = Mage::app()->getWebsite()->getId();\n $location['shop_logo'] = Mage::getStoreConfig('design/header/logo_src', $location['shop_id']);\n die(json_encode($location));\n }",
"function getCustomLocation()\n\t{\n\t\treturn $this->_customLocation;\n\t}",
"function GetLocationInfo($location) {\n $info = null;\n $from_cache = false;\n if (isset($location) && strlen($location)) {\n $has_apcu = false;\n $has_apc = false;\n if (function_exists('apcu_fetch') && function_exists('apcu_store')) {\n $has_apcu = true;\n $info = apcu_fetch(\"locinfo_$location\");\n if ($info === false)\n $info = null;\n if (isset($info))\n $from_cache = true;\n } elseif (function_exists('apc_fetch') && function_exists('apc_store')) {\n $has_apc = true;\n $info = apc_fetch(\"locinfo_$location\");\n if ($info === false)\n $info = null;\n if (isset($info))\n $from_cache = true;\n }\n \n if (!isset($info)) {\n $info = array();\n $locations = LoadLocationsIni();\n if ($locations !== false && is_array($locations) && isset($locations[$location])) {\n $info = $locations[$location];\n if (!isset($info['key'])) {\n $default_key = GetSetting('location_key');\n $info['key'] = $default_key ? $default_key : '';\n }\n }\n }\n \n if (isset($info) && !$from_cache) {\n if ($has_apcu)\n apcu_store(\"locinfo_$location\", $info, 120);\n elseif ($has_apc)\n apc_store(\"locinfo_$location\", $info, 120);\n }\n }\n return $info;\n}",
"public function testLightspeedGetStoreSettings()\n {\n }",
"function setTestLoc ( $LOC )\r\n{\r\n global $myLat,$myLong,$ourTZ,$maxDistance;\r\n \r\n if ($LOC == 'NZ') {\r\n $myLat = -37.07; \r\n $myLong = 174.35; \r\n $ourTZ = \"Pacific/Auckland\"; \r\n\t$maxDistance = 1000;\r\n// Yes, the above settings are for Brian Hamilton's Grahams Beach, NZ station\r\n// in honor of his outstanding work as author of Weather-Display software\r\n } elseif ($LOC == 'JP') {\r\n $myLat = 35.8499; \r\n $myLong = 139.97; \r\n $ourTZ = \"Asia/Tokyo\"; \r\n\t$maxDistance = 1000;\r\n } elseif ($LOC == 'MX') {\r\n $myLat = 19.3999; \r\n $myLong = -99.1999; \r\n $ourTZ = \"America/Mexico_City\"; \r\n\t$maxDistance = 1000;\r\n } elseif ($LOC == 'PR') {\r\n $myLat = 18.467248; \r\n $myLong = -66.108963; \r\n $ourTZ = \"America/Puerto_Rico\"; \r\n\t$maxDistance = 2000;\r\n } elseif ($LOC == 'AK') {\r\n $myLat = 61.21574783; \r\n $myLong = -149.86894226; \r\n $ourTZ = \"America/Anchorage\"; \r\n\t$maxDistance = 2000;\r\n } elseif ($LOC == 'IR') {\r\n $myLat = 35.68; \r\n $myLong = 51.3499; \r\n $ourTZ = \"Asia/Tehran\"; \r\n\t$maxDistance = 1000;\r\n } elseif ($LOC == 'GR') {\r\n $myLat = 37.983056; \r\n $myLong = 23.733056; \r\n $ourTZ = \"Europe/Athens\"; \r\n\t$maxDistance = 1000;\r\n } elseif ($LOC == 'SU') {\r\n $myLat = 3.0; \r\n $myLong = 100.0; \r\n $ourTZ = \"Asia/Jakarta\"; \r\n\t$maxDistance = 1000;\r\n }\r\n\r\n}",
"public static function GetLocations(){ \r\n $client = new SoapClient(ANTHILL_INSTALLATION . ANTHILL_WSDL);\r\n $header = Anthill::CreateAuthHeader();\r\n $result = $client->__soapCall('GetLocations', array(), null, $header);\r\n return $result->GetLocationsResult->Location;\r\n }",
"public static function get_settings() {\n static $plagiarismsettings;\n if (!empty($plagiarismsettings) || $plagiarismsettings === false) {\n return $plagiarismsettings;\n }\n $plagiarismsettings = (array)get_config('plagiarism_urkund');\n // Check if enabled.\n if (isset($plagiarismsettings['enabled']) && $plagiarismsettings['enabled']) {\n // Now check to make sure required settings are set!\n if (empty($plagiarismsettings['api'])) {\n debugging(\"URKUND API URL not set!\");\n return false;\n }\n return $plagiarismsettings;\n } else {\n return false;\n }\n }",
"public function returnAdditionalSettings();",
"function user_locations() {\n\treturn User_Locations_Setup::instance();\n}",
"private static function readSettings()\n\t\t{\n\n\t\t\tif (FileSystem::exists(self::fileLocation() ) == false )\n\t\t\t\tself::makeUserSettings();\n\n\t\t\treturn( FileSystem::readJson( self::fileLocation() ) );\n\t\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check external links for existence | protected function checkExternalLinks()
{
if (!$this->getEditionOption('plugins.options.LinkCheck.check_external_links')) {
return;
}
$checker = new LinkChecker();
$this->writeLn('Checking external links....');
$errors = false;
$numLinks = 0;
foreach ($this->links['external'] as $links) {
$numLinks += count($links);
}
$this->progressStart($numLinks);
foreach ($this->links['external'] as $xref => $links) {
foreach ($links as $index => $link) {
try {
$checker->check($link['uri']);
$this->links['external'][$xref][$index]['status'] = 'OK';
} catch (\Exception $e) {
$this->links['external'][$xref][$index]['status'] = $e->getMessage();
$errors = true;
}
$this->progressAdvance();
}
}
$this->progressFinish();
if ($errors) {
$this->writeLn('Some external links are not correct.', 'error');
} else {
$this->writeLn('All external links are correct.');
}
} | [
"public function shouldCheckLink($url);",
"public function hasHref();",
"private function checkExternal( $url ) {\n\t\treturn isset( $url ) ? preg_match( '/(http)s?/', $url ) : false;\n\t}",
"function is_external_link($url)\n {\n return strpos($url, config('app.url')) === FALSE;\n }",
"function verifyExternalLink() {\n\t\t$this->type( LINK_PREVIEW, \"\" );\n\t\t$this->click( LINK_ADDLINK );\n\t\t$this->type( TEXT_LINKNAME, WIKI_EXTERNAL_LINK );\n\t\t$this->assertTrue( $this->isElementPresent( ICON_PAGEEXTERNAL ) );\n\t\t$this->assertEquals( \"on\", $this->getValue( OPT_EXTERNAL ) );\n\t\t$this->click( BUTTON_INSERTLINK );\n\t\t$this->click( LINK_PREVIEW );\n\t\t$this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );\n\t\t$this->assertEquals( WIKI_EXTERNAL_LINK, $this->getText( LINK_START . WIKI_EXTERNAL_LINK ) );\n\n\t\t$this->click( LINK_START . WIKI_EXTERNAL_LINK );\n\t\t$this->waitForPageToLoad( WIKI_TEST_WAIT_TIME );\n\t\t$this->assertEquals( WIKI_EXTERNAL_LINK_TITLE, $this->getTitle() );\n\t}",
"function is_external_url($url)\n{\n $main_url = parse_url( getenv('URL') );\n $url_to_check = parse_url( $url );\n if( $main_url['host'] != $url_to_check['host'] )\n {\n return true;\n }\n\n return false;\n}",
"function verifyExternalLink(){\n $this->type(BUTTON_PREVIEW, \"\");\n $this->click(LINK_ADDLINK);\n $this->type(TEXT_LINKNAME, WIKI_EXTERNAL_LINK);\n try {\n $this->assertTrue($this->isElementPresent(ICON_PAGEEXTERNAL));\n } catch (PHPUnit_Framework_AssertionFailedError $e) {\n parent::doCreateScreenShot(__FUNCTION__);\n array_push($this->verificationErrors, $e->toString());\n }\n $this->assertEquals(\"on\", $this->getValue(OPT_EXTERNAL));\n $this->click(BUTTON_INSERTLINK);\n $this->click(BUTTON_PREVIEW);\n $this->waitForPageToLoad((WIKI_TEST_WAIT_TIME));\n try {\n $this->assertEquals((WIKI_EXTERNAL_LINK), $this->getText(LINK_START.(WIKI_EXTERNAL_LINK)));\n } catch (PHPUnit_Framework_AssertionFailedError $e) {\n parent::doCreateScreenShot(__FUNCTION__);\n array_push($this->verificationErrors, $e->toString());\n }\n $this->click(LINK_START.(WIKI_EXTERNAL_LINK));\n $this->waitForPageToLoad((WIKI_TEST_WAIT_TIME));\n try {\n $this->assertEquals((WIKI_EXTERNAL_LINK_TITLE), $this->getTitle());\n } catch (PHPUnit_Framework_AssertionFailedError $e) {\n parent::doCreateScreenShot(__FUNCTION__);\n array_push($this->verificationErrors, $e->toString());\n }\n }",
"function IsExternal() {\n\t\treturn parent::LinkIsExternal();\n\t}",
"public function hasUrl();",
"static function isExternal($url) {\n $head = substr($url, 0, 15);\n\n if ((strrchr($head, ':') !== false or strpos($head, '//') !== false) and\n !starts_with($url, \\Laravel\\URL::home())) {\n strtok($url, '/');\n return strtok('/') !== Request::server('host');\n }\n }",
"function validateNoLinks($value) {\n $matched = preg_match('`https?://`i', $value);\n return !$matched;\n }",
"function link_is_extern($url)\n{\n\t$ret = FALSE;\n\n\tif (strstr($url,\"http:\")) $ret = \"http:\";\n\tif (strstr($url,\"https:\"))\t$ret = \"https:\";\n\tif (strstr($url,\"mailto:\"))\t$ret = \"mailto:\";\n\n\treturn ($ret);\n}",
"public function checkLink($link);",
"private function isExternalLink($url)\n {\n $baseLink = preg_replace('#^(http)s?://#', '', $this->link->getBaseLink());\n $url = strtolower($url);\n\n if (preg_match('#^(http)s?://#', $url) && !preg_match('#^(http)s?://' . preg_quote(rtrim($baseLink, '/'), '/') . '#', $url)) {\n return true;\n }\n\n return false;\n }",
"public static function supportsLink()\n {\n return function_exists( 'link' );\n }",
"protected function externalLink($link)\n {\n return !preg_match('/^(https?:)?(\\/\\/)?(www\\.)?' . $this->domain . '/Ui', $link);\n }",
"private function _validateLinks($html) {\n\t\t$dom = new DomDocument;\n\n\t\t$dom->loadHTML($html);\n\t\t\t\n\t\t$elems = $dom->getElementsByTagName('*');\n\t\t\t\n\t\tforeach ($elems as $elm) {\n\t\t\tif ($elm->hasAttribute('src')) {\n\t\t\t\t$srcs[] = $elm->getAttribute('src');\n\t\t\t\tforeach ($srcs as $src) {\n\t\t\t\t\t$src = str_replace(\"//\", \"http://\", $src);\n\t\t\t\t\t$ret = wp_remote_get($src);\n\t\t\t\t\t\n\t\t\t\t\t$this->assertEquals(200, $ret['response']['code']);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private function getLinksFromExternalSystems() {\r\n \r\n }",
"private function is_external( $href, $rel ) {\r\n\t\treturn ( isset( $href ) AND ( ( strpos( $href, strtolower( get_bloginfo( 'wpurl' ) ) ) === FALSE )\r\n AND ( substr( $href, 0, 7 ) == 'http://'\r\n OR substr( $href, 0, 8 ) == 'https://'\r\n OR substr( $href, 0, 6 ) == 'ftp://'\r\n OR substr( $href, 0, 2 ) == '//' ) ) );\r\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Static function to get the XML attribute from the SimpleXmlElement object. | private static function getXmlAttribute(\SimpleXMLElement $xmlObject, string $attribute)
{
if (isset($xmlObject[$attribute])) {
return (string) $xmlObject[$attribute];
}
return null;
} | [
"function get_attribute($attribute)\n {\n $attributes = $this->xml_value_[0][\"attributes\"];\n return $attributes[$attribute];\n }",
"private function get_attribute($attr)\n\t{\n\t\t$attributes = $this->saml->getAttributes();\n\t\treturn $attributes[$attr][0];\n\t}",
"public function getAttr()\n {\n return $this->get(self::ATTR);\n }",
"function xml_get_attribute(array $xmlArray, string $attr, string|null &$ret): int\n{\n if (!array_key_exists('attributes', $xmlArray)) {\n return 1;\n } else {\n return xml_get_value($xmlArray['attributes'], array($attr), $ret);\n }\n}",
"function get_attribute($name) {\r\n return $this->attributes[$name];\r\n }",
"public function getAttribute();",
"public function getAttr()\n {\n return $this->attr;\n }",
"function get_attribute($attribute)\n {\n #$attribute = strtoupper($attribute);\n $attributes = $this->xml_value_[0][\"attributes\"];\n return $attributes[$attribute];\n }",
"private function getAttribute()\n {\n return $this->attribute;\n }",
"public function xml_attribute($object, $att){\n\t\tif(null !== ($object[\"tag\"]== $att))\n\t\t\treturn (string) $object->subfield;\n\t}",
"public function get_attribute($attribute)\n\t{\n\t\t#$attribute = strtoupper($attribute);\n\t\t$attributes = $this->xml_value_[0][\"attributes\"];\n\t\treturn $attributes[$attribute];\n \t}",
"public function getAttribute($attr);",
"public function getAttribute()\n {\n return $this->attribute;\n }",
"public function get_attribute($name) {\n $xpath = new DOMXPath($this->xml);\n $xpath->registerNamespace(\"samlp\",\"urn:oasis:names:tc:SAML:2.0:protocol\");\n $xpath->registerNamespace(\"saml\",\"urn:oasis:names:tc:SAML:2.0:assertion\");\n $query = \"/samlp:Response/saml:Assertion/saml:AttributeStatement/saml:Attribute[@Name=\\\"$name\\\"]/saml:AttributeValue\";\n\n $entries = $xpath->query($query);\n if($entries->length){\n return $entries->item(0)->nodeValue;\n }else{\n return false;\n }\n }",
"public function getAttribute($attr)\n\t{\n\t\tif (isset($this->_attributes[$attr])) {\n\t\t\treturn($this->_attributes[$attr]);\n\t\t} else {\n\t\t\treturn(null);\n\t\t}\n\t}",
"function get_attribute($tname,$tindex,$attrname)\t\r\n\t{\r\n\t\t$mytag=$this->get_tag_in_tree($tname,$tindex);\r\n\t\treturn $this->get_attribute_internal($mytag,$attrname);\r\n\t}",
"function get_attribute($name) {\r\n return $this->basenode->get_attributes($name);\r\n }",
"function getAttribute($name) {\r\n return $this->attributes[strtolower($name)];\r\n }",
"static function getAttribute(SimpleXMLElement $inXML, $inAttribute, $inDefault = null) {\n\t\t$return = '';\n\t\tif ( isset($inXML[$inAttribute]) ) {\n\t\t\t$return = trim((string) $inXML[$inAttribute]);\n\t\t} else {\n\t\t\t$xml = $inXML->attributes();\n\t\t\tif ( isset($xml[$inAttribute]) ) {\n\t\t\t\t$return = trim((string) $xml[$inAttribute]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ( strlen($return) == 0 ) {\n\t\t\treturn $inDefault;\n\t\t} else {\n\t\t\treturn $return;\n\t\t}\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
ellipseArc($mx, $my, $rx, $ry, $xar, $laflag, $sflag, $x, $y, $style) A rx ry xaxisrotation largearcflag sweepflag x y $mx,$my = starting absolute curve point $rx,$ry = ellipse radiuses $xar = xaxisrotation $laflag = largearcflag $sflag = sweepflag $x,$y = last absolute curve point | public static function ellipseArc($mx=100, $my=100, $rx=20, $ry=50, $xar=0, $laflag=0, $sflag=0,
$x=200, $y=100, $style='stroke:black;stroke-width:1;fill:none;') {
echo "<path d='M$mx $my A$rx $ry $xar $laflag $sflag $x $y'
style='$style' />";
return array($mx,$my,$rx,$ry,$xar,$laflag,$sflag,$x,$y);
} | [
"public static function ellipseArcCcw($mx=100, $my=100, $rx=20, $ry=50,\r\n$x=200, $y=100, $style='stroke:black;stroke-width:1;fill:none;') {\r\necho \"<path d='M$mx $my A$rx $ry 0 0 0 $x $y' \r\nstyle='$style' />\";\r\nreturn array($mx,$my,$rx,$ry,$x,$y);\r\n}",
"public static function ellipseArcCw($mx=100, $my=100, $rx=20, $ry=50, \r\n$x=200, $y=100, $style='stroke:black;stroke-width:1;fill:none;') {\r\necho \"<path d='M$mx $my A$rx $ry 0 1 1 $x $y' \r\nstyle='$style' />\";\r\nreturn array($mx,$my,$rx,$ry,$x,$y);\r\n}",
"function ellipse($params)\n {\n $x = $params['x'];\n $y = $params['y'];\n $rx = $params['rx'];\n $ry = $params['ry'];\n $fillColor = (isset($params['fill']) ? $params['fill'] : false);\n $lineColor = (isset($params['line']) ? $params['line'] : false);\n\n $line = $this->_setLineStyle($lineColor);\n $fill = $this->_setFillStyle($fillColor);\n if (($line) || ($fill)) {\n if ($rx == $ry) {\n ps_circle($this->_ps, $this->_getX($x), $this->_getY($y), $rx);\n } else {\n ps_moveto($this->_ps, $this->_getX($x - $rx), $this->_getY($y));\n ps_curveto($this->_ps,\n $this->_getX($x - $rx), $this->_getY($y),\n $this->_getX($x - $rx), $this->_getY($y - $ry),\n $this->_getX($x), $this->_getY($y - $ry)\n );\n ps_curveto($this->_ps,\n $this->_getX($x), $this->_getY($y - $ry),\n $this->_getX($x + $rx), $this->_getY($y - $ry),\n $this->_getX($x + $rx), $this->_getY($y)\n );\n ps_curveto($this->_ps,\n $this->_getX($x + $rx), $this->_getY($y),\n $this->_getX($x + $rx), $this->_getY($y + $ry),\n $this->_getX($x), $this->_getY($y + $ry)\n );\n ps_curveto($this->_ps,\n $this->_getX($x), $this->_getY($y + $ry),\n $this->_getX($x - $rx), $this->_getY($y + $ry),\n $this->_getX($x - $rx), $this->_getY($y)\n );\n }\n\n if (($line) && ($fill)) {\n ps_fill_stroke($this->_ps);\n } elseif ($line) {\n ps_stroke($this->_ps);\n } elseif ($fill) {\n ps_fill($this->_ps);\n }\n }\n parent::ellipse($params);\n }",
"public function ellipse($x, $y, $rx, $ry, $style = self::STYLE_DRAW) {}",
"function ellipse($x0, $y0, $r1, $r2 = 0, $angle = 0, $nSeg = 8, $astart = 0, $afinish = 360, $close = 1, $fill = 0, $fill_color = array(), $nc = 8) {\n\n\t\t\tif ($r1 == 0) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif ($r2 == 0) {\n\t\t\t\t$r2 = $r1;\n\t\t\t}\n\t\t\tif ($nSeg < 2) {\n\t\t\t\t$nSeg = 2;\n\t\t\t}\n\n\t\t\t$astart = deg2rad((float) $astart);\n\t\t\t$afinish = deg2rad((float) $afinish);\n\t\t\t$totalAngle = $afinish - $astart;\n\n\t\t\t$dt = $totalAngle / $nSeg;\n\t\t\t$dtm = $dt / 3;\n\n\t\t\tif ($angle != 0) {\n\t\t\t\t$a = -1 * deg2rad((float) $angle);\n\t\t\t\t$tmp = \"\\n q \";\n\t\t\t\t$tmp .= sprintf('%.3f', cos($a)) . ' ' . sprintf('%.3f', (-1.0 * sin($a))) . ' ' . sprintf('%.3f', sin($a)) . ' ' . sprintf('%.3f', cos($a)) . ' ';\n\t\t\t\t$tmp .= sprintf('%.3f', $x0) . ' ' . sprintf('%.3f', $y0) . ' cm';\n\t\t\t\t$x0 = 0;\n\t\t\t\t$y0 = 0;\n\t\t\t} else {\n\t\t\t\t$tmp = '';\n\t\t\t}\n\n\t\t\t$t1 = $astart;\n\t\t\t$a0 = $x0 + $r1 * cos($t1);\n\t\t\t$b0 = $y0 + $r2 * sin($t1);\n\t\t\t$c0 = -$r1 * sin($t1);\n\t\t\t$d0 = $r2 * cos($t1);\n\n\t\t\t$tmp .= \"\\n\" . sprintf('%.3f', $a0) . ' ' . sprintf('%.3f', $b0) . ' m ';\n\t\t\tfor ($i = 1; $i <= $nSeg; $i++) {\n\t\t\t\t// draw this bit of the total curve\n\t\t\t\t$t1 = $i * $dt + $astart;\n\t\t\t\t$a1 = $x0 + $r1 * cos($t1);\n\t\t\t\t$b1 = $y0 + $r2 * sin($t1);\n\t\t\t\t$c1 = -$r1 * sin($t1);\n\t\t\t\t$d1 = $r2 * cos($t1);\n\t\t\t\t$tmp .= \"\\n\" . sprintf('%.3f', ($a0 + $c0 * $dtm)) . ' ' . sprintf('%.3f', ($b0 + $d0 * $dtm));\n\t\t\t\t$tmp .= ' ' . sprintf('%.3f', ($a1 - $c1 * $dtm)) . ' ' . sprintf('%.3f', ($b1 - $d1 * $dtm)) . ' ' . sprintf('%.3f', $a1) . ' ' . sprintf('%.3f', $b1) . ' c';\n\t\t\t\t$a0 = $a1;\n\t\t\t\t$b0 = $b1;\n\t\t\t\t$c0 = $c1;\n\t\t\t\t$d0 = $d1;\n\t\t\t}\n\t\t\tif ($fill) {\n\t\t\t\t//$this->objects[$this->currentContents]['c']\n\t\t\t\t$tmp .= ' f';\n\t\t\t} else {\n\t\t\t\tif ($close) {\n\t\t\t\t\t$tmp .= ' s'; // small 's' signifies closing the path as well\n\t\t\t\t} else {\n\t\t\t\t\t$tmp .= ' S';\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($angle != 0) {\n\t\t\t\t$tmp .= ' Q';\n\t\t\t}\n\t\t\t$this->_out($tmp);\n\t\t}",
"public function ellipse($ox, $oy, $rx, $ry, $start, $end){}",
"public static function ellipse($cx=150, $cy=50, $rx=40, $ry=20, \r\n$style='stroke:black;stroke-width:1;fill:none;') {\r\necho \"<ellipse cx='$cx' cy='$cy' rx='$rx' ry='$ry' style='$style' />\";\r\nreturn array($cx,$cy,$rx,$ry);\r\n}",
"function ellipse($params)\n {\n $x = $params['x'];\n $y = $params['y'];\n $rx = $params['rx'];\n $ry = $params['ry'];\n $fillColor = (isset($params['fill']) ? $params['fill'] : false);\n $lineColor = (isset($params['line']) ? $params['line'] : false);\n\n $line = $this->_setLineStyle($lineColor);\n $fill = $this->_setFillStyle($fillColor);\n if (($line) || ($fill)) {\n if ($rx == $ry) {\n pdf_circle($this->_pdf, $this->_getX($x), $this->_getY($y), $rx);\n } else {\n pdf_moveto($this->_pdf, $this->_getX($x - $rx), $this->_getY($y));\n pdf_curveto($this->_pdf,\n $this->_getX($x - $rx), $this->_getY($y),\n $this->_getX($x - $rx), $this->_getY($y - $ry),\n $this->_getX($x), $this->_getY($y - $ry)\n );\n pdf_curveto($this->_pdf,\n $this->_getX($x), $this->_getY($y - $ry),\n $this->_getX($x + $rx), $this->_getY($y - $ry),\n $this->_getX($x + $rx), $this->_getY($y)\n );\n pdf_curveto($this->_pdf,\n $this->_getX($x + $rx), $this->_getY($y),\n $this->_getX($x + $rx), $this->_getY($y + $ry),\n $this->_getX($x), $this->_getY($y + $ry)\n );\n pdf_curveto($this->_pdf,\n $this->_getX($x), $this->_getY($y + $ry),\n $this->_getX($x - $rx), $this->_getY($y + $ry),\n $this->_getX($x - $rx), $this->_getY($y)\n );\n }\n\n if (($line) && ($fill)) {\n pdf_fill_stroke($this->_pdf);\n } elseif ($line) {\n pdf_stroke($this->_pdf);\n } elseif ($fill) {\n pdf_fill($this->_pdf);\n }\n }\n parent::ellipse($params);\n }",
"public function ellipse ($ox, $oy, $rx, $ry, $start, $end) {}",
"public function newFigureWithArc($point, $radius, $angle, $sweep, $negative){}",
"public function arc($sx, $sy, $ex, $ey, $sd, $ed){}",
"function DrawArc($xStart, $yStart, $xEnd, $yEnd, $xc, $yc, wxPoint $ptStart, wxPoint $ptEnd, wxPoint $centre){}",
"function Arc($x1, $y1, $x2, $y2, $x3, $y3, $x4, $y4)\n {\n $this->forcePen();\n //echo \"$this->_canvas.drawArc($x1, $y1, $r * 2, $r * 2, 180, 270);\\n\";\n }",
"function DrawEllipse($x, $y, $width, $height, wxPoint $pt, wxSize $size, wxRect $rect){}",
"function arc($x1, $y1, $x2, $y2, $x3, $y3, $x4, $y4)\r\n {\r\n $this->forcePen();\r\n //echo \"$this->_canvas.drawArc($x1, $y1, $r * 2, $r * 2, 180, 270);\\n\";\r\n }",
"public static function circleArcCw($mx=100, $my=100, $r=20, $x=200, $y=100, \r\n$style='stroke:black;stroke-width:1;fill:none;') {\r\necho \"<path d='M$mx $my A$r $r 0 0 1 $x $y' \r\nstyle='$style' />\";\r\nreturn array($mx,$my,$r,$x,$y);\r\n}",
"public static function arcCcwDeg($mx=100, $my=100, $r=30, $deg=45, \r\n$style='stroke:black;stroke-width:1;fill:none;') {\r\n$rad=deg2rad($deg); $dx=$r*sin($rad); $dy=$r*(1-cos($rad)); $x=$mx+$dx; $y=$my-$dy;\r\necho \"<path d='M$mx $my A$r $r 0 0 0 $x $y' style='$style' />\";\r\nreturn array($mx,$my,$r,$deg,$x,$y);\r\n}",
"function Circle($x,$y,$r,$style='')\r\n\t{\r\n\t $this->Ellipse($x,$y,$r,$r,$style);\r\n\t}",
"public function drawEllipse($x1, $y1, $x2, $y2, $param5 = null, $param6 = null, $param7 = null);"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns value of 'relive_total_time' property | public function getReliveTotalTime()
{
$value = $this->get(self::RELIVE_TOTAL_TIME);
return $value === null ? (integer)$value : $value;
} | [
"public function getReliveTime()\n {\n $value = $this->get(self::RELIVE_TIME);\n return $value === null ? (integer)$value : $value;\n }",
"public function getTotalTime()\n {\n return $this->total_time;\n }",
"public function getTotalTime()\n {\n return $this->totalTime;\n }",
"protected function itemprop_total_time(){\n $this->set_tag($this->get_total_time_tag(), $this->get_total_time_attributes(), $this->get_total_time());\n return $this->get_tag();\n }",
"public function getTotalTime() {\n return (float) $this->profile->userTotals->totalDuration;\n }",
"public function total_time() {\n\t\treturn $this->session_duration;\n\t}",
"public function getTotalTime(): float\n\t{\n\t\treturn $this->app['send']->getTotalTime();\n\t}",
"public function totalRunTime() {\n\t\tif(!$this->checkUserId()) {\n\t\t\techo $this->idErrorMessage;\n\t\t\treturn false;\n\t\t}\n\t\t$nikePlusRunList = $this->getRuns();\n\t\t$runTime = 0;\n\t\tforeach($nikePlusRunList->run as $run) {\n\t\t\t$runTime += $run->duration;\n\t\t}\n\t\tif($this->json) {\n\t\t\treturn $this->json($runTime);\n\t\t} else {\n\t\t\treturn $runTime;\n\t\t}\n\t}",
"public function getTotalTime()\n {\n if (isset($this->results)) {\n return $this->results->getTotalTime();\n }\n }",
"public function getTotalDuration()\n {\n return $this->total_duration;\n }",
"public function getTimeused()\n {\n return $this->timeused;\n }",
"public function getTotalDuration()\n {\n return $this->totalDuration;\n }",
"public function getTimeTaken()\n {\n return $this->time_taken;\n }",
"public function rt() {\n $time = $this->retentionTime;\n $time = \\Regex::Match($time, \"\\\\d+(\\\\.\\\\d+)?\");\n return floatval($time);\n }",
"public static function totalQueryTime()\n\t\t{\n\t\t\treturn self::$totalQueryTime;\n\t\t}",
"public function getElapsedTime()\n {\n return $this->get(self::ELAPSEDTIME);\n }",
"public function getTotalTimeSpent() {\n return $this->totalTimeSpent;\n }",
"public function getTimeToLive()\n {\n return $this->time_to_live;\n }",
"public function getTimeToLive()\n {\n return $this->getValue('nb_commerce_product_time_to_live');\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Arguments $user (&Object) Returns: Object isKickRequired (Boolean) isIPDifferent (Boolean) | function handleUserIPChangeCheck (&$user) {
$previousIP = getPreviousLastIPValue();
$currentIP = Users\Session\getCurrentIP();
$hasEmptyPreviousIP = empty($previousIP);
$hasDifferentIP = (
$hasEmptyPreviousIP ||
($currentIP != $previousIP)
);
$hasIPCheckDisabled = ($user['noipcheck'] == 1);
return [
'isIPDifferent' => $hasDifferentIP,
'isKickRequired' => (
$hasDifferentIP &&
!$hasEmptyPreviousIP &&
!$hasIPCheckDisabled
)
];
} | [
"public function isIpKicked() {\n\t\treturn isset($_SERVER['REMOTE_ADDR']) && $this->kicksService->isIpAddressKicked($_SERVER['REMOTE_ADDR']);\n\t}",
"function handleUserKick(&$user, $params) {\n $userID = $user['id'];\n $isKickedOut = ($user['dokick'] == 1);\n $timestamp = $params['timestamp'];\n\n if (!$isKickedOut) {\n return false;\n }\n\n $sessionTimestamp = $timestamp - 100000;\n\n $query_KickUser = (\n \"UPDATE {{table}} \" .\n \"SET \" .\n \" `dokick` = 0 \" .\n \"WHERE \" .\n \" `id` = {$userID} \" .\n \"LIMIT 1;\"\n );\n\n doquery($query_KickUser, 'users');\n setcookie(getSessionCookieKey(), '', $sessionTimestamp, '/', '', 0);\n\n return true;\n}",
"public static function onKickBannedIP()\n\t{\n\t\tif (false === isset($_SERVER['REMOTE_ADDR']))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t$path = GWF_PROTECTED_PATH.'temp_ban.lst.txt';\n\t\tif (false === Common::isFile($path))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tif ('' === ($bans = file_get_contents($path)))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\t$ip = $_SERVER['REMOTE_ADDR'];\n\t\t$bans = explode(\"\\n\", $bans);\n\t\tforeach ($bans as $i => $ban)\n\t\t{\n\t\t\t$ban = explode(':', $ban);\n\t\t\tif (count($ban) === 2)\n\t\t\t{\n\t\t\t\tif ($ban[1] === $ip && $ban[0] > time())\n\t\t\t\t{\n\t\t\t\t\t# FIXME: WTF? and why not logDie ?\n\t\t\t\t\tdie(sprintf('You are banned until %s+UGZ.', date('Y-m-d H:i:s', $ban[0])));\n// \t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public function checkCLIuser() {}",
"function um_wp_form_errors_hook_ip_test( $user, $username, $password ) {\n\tif ( ! empty( $username ) ) {\n\t\tdo_action( 'um_submit_form_errors_hook__blockedips', array() );\n\t\tdo_action( 'um_submit_form_errors_hook__blockedemails', array( 'username' => $username ) );\n\t}\n\n\treturn $user;\n}",
"public function isIpAddressKicked($ip) {\n\t\treturn $this->kicksDAO->getByIp($ip) !== null;\n\t}",
"public function hasRemoteUser();",
"public function isCanChallenge($user) {\n return true;\n }",
"public function isUserIPAddressAllowedAccess()\n\t{\n\t\ttry\n {\n $IpBin = new IpBin();\n return $IpBin->isUserIPAddressAllowedAccess($this->getSiteUser()->getId());\n }\n catch(\\Whoops\\Example\\Exception $e)\n {\n Log::error(\"Could not check if ip address is allowed access for user [\" . $this->getSiteUser()->getId() . \"]. \" . $e);\n return FALSE;\n }\n\t}",
"static function CheckUserIP(){\n\t\t\treturn self::CheckIP($_SERVER['REMOTE_ADDR']);\n\t\t}",
"function validate_user() {\t\t\t\t\t\t\t\t\t\t\t\t//Start the validate user funciton\n\t\t$banned_array = $this->banned_array;\t\t\t\t\t\t\t//Get banned array\n\t\t$ip = trim($_SERVER['REMOTE_ADDR']);\t\t\t\t\t\t\t//Get IP Address\n\t\t$cpu = gethostbyaddr($ip);\n\t\t$count = count($banned_array);\t\t\t\t\t\t\t\t\t//Count the number of banned users\n\t\t\tif ($count < 1) {\t\t\t\t\t\t\t\t\t\t\t\t\t//Are there users in the list???\n\t\t\t\treturn true;\t\t\t\t\t\t\t\t\t\t\t\t\t//If not user is valid, if so check em!\n\t\t\t} else {\n\t\t\t\tforeach($banned_array as $key => $value) {\t\t\t\t//Start extraction of banned users from the array\n\t\t\t\t\tif ($value == $ip .\"-\". $cpu) {\t\t\t\t\t\t\t//If the user's IP address is found in list, continue\n\t\t\t\t\t\treturn false;\t\t\t\t\t\t\t\t\t\t\t//Function returns false if user is on list\n\t\t\t\t\t} else {\t\t\t\t\t\t\t\t\t\t\t\t\t//Else\n\t\t\t\t\t\treturn true;\t\t\t\t\t\t\t\t\t\t\t//the function returns true\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t}",
"function checkuser() {\n\n return true;\n }",
"function isPrivilegedUser($user)\n\t{\n\t\tif(!$user->id)\n\t\t\treturn false;\n\t\t$db = JFactory::getDBO();\n\t\t$query = \"SELECT privilege_groups FROM #__payperdownloadplus_config\";\n\t\t$db->setQuery( $query, 0, 1 );\n\t\t$privileged_groups = $db->loadResult();\n\t\t$groups = explode(',', $privileged_groups);\n\t\t$version = new JVersion();\n\t\tif($version->RELEASE == \"1.5\")\n\t\t\treturn array_search($user->gid, $groups) !== false;\n\t\telse\n\t\t{\n\t\t\tforeach($user->groups as $group)\n\t\t\t{\n\t\t\t\tif(array_search($group, $groups) !== false)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}",
"function bbp_is_user_keymaster($user_id = 0)\n{\n}",
"function isServer($user)\n {\n if (is_array($user)) {\n $user = reset($user);\n }\n\n if ($user == 'AUTH' || $user == '*') {\n return true;\n }\n\n if (isUser($user)) {\n return false;\n }\n\n return true;\n }",
"public function userIsBlocked();",
"private function _userIp() {\n\t\treturn defined( 'SURVEY_DISGUISE_USER_IP' ) && SURVEY_DISGUISE_USER_IP\n\t\t\t? md5( $_SERVER[ 'REMOTE_ADDR'] )\n\t\t\t: $_SERVER[ 'REMOTE_ADDR'];\n\t}",
"public function isUserHalfOp($user)\n\t{\n\t\t$nickname = $this->instance->getUser($user)->getNickname();\n\t\t\n\t\tif(!isset($this->users[$nickname]))\n\t\t\treturn false;\n\t\t\n\t\treturn preg_match(\"/[qaoh]/\", $this->users[$nickname][\"modes\"]) == true;\n\t}",
"private function cacheLoginIP( User $user ) {\n\t\t// For simplicity, this only stores the last IP subnet used.\n\t\t// Its assumed that most of the time, we'll be able to rely on\n\t\t// the cookie or checkuser data.\n\t\t$expiry = $this->config->get( 'LoginNotifyCacheLoginIPExpiry' );\n\t\tif ( $expiry !== false ) {\n\t\t\t$ipPrefix = $this->getIPNetwork( $user->getRequest()->getIP() );\n\t\t\t$key = $this->getKey( $user, 'prevSubnet' );\n\t\t\t$this->cache->set( $key, $ipPrefix, $expiry );\n\t\t}\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
[0] Initializes a new instance of the Random class, using a timedependent default seed value. [1] Initializes a new instance of the Random class, using the specified seed value. | public function __construct($Seed = null) {
parent::__construct();
if (!is_null($Seed)) {
mt_srand($Seed);
}
} | [
"function srand ($seed = null) {}",
"function mt_srand ($seed = null) {}",
"function _seedRandom() {\n if(!$this->_srand) {\n srand((double)microtime() * 1000000);\n $this->_srand = true;\n }\n }",
"function __construct($seed = 0)\n\t{\n\t\tif( func_num_args() == 0 ){\n\t\t\t$seed = getmypid();\n\t\t\t$seed = ($seed << 5) ^ $seed ^ crc32( spl_object_hash($this) );\n\t\t\t$seed = ($seed << 5) ^ $seed ^ mt_rand();\n\t\t\t$seed = ($seed << 5) ^ $seed ^ crc32( (string) microtime() );\n\t\t\tif( self::$common !== NULL )\n\t\t\t\t$seed = ($seed << 5) ^ $seed ^ self::$common->seed;\n\t\t}\n\t\t$this->seed = $seed & 0xffffffff;\n\t}",
"public function __construct($seed);",
"public function rand_init($seed)\n {\n /*\n $s = gmp_init($seed);\n\n // make random numbers and put them into the buffer\n $s = gmp_and(gmp_sub(gmp_mul($s, 29943829), 1), \"0xFFFFFFFF\");\n $rand_store_0 = $s;\n $s = gmp_and(gmp_sub(gmp_mul($s, 29943829), 1), \"0xFFFFFFFF\");\n $rand_store_1 = $s;\n $s = gmp_and(gmp_sub(gmp_mul($s, 29943829), 1), \"0xFFFFFFFF\");\n $rand_store_2 = $s;\n $s = gmp_and(gmp_sub(gmp_mul($s, 29943829), 1), \"0xFFFFFFFF\");\n $rand_store_3 = $s;\n $s = gmp_and(gmp_sub(gmp_mul($s, 29943829), 1), \"0xFFFFFFFF\");\n $rand_store_4 = $s;\n\n // randomize some more\n for ($i = 0; $i < 19; $i++)\n {\n rand32();\n }\n $rand_init_done = 1;\n */\n $s = $seed;\n\n bcscale(0);\n // make random numbers and put them into the buffer\n $s = bcmod(bcsub(bcmul($s, 29943829), 1), \"4294967296\");\n $this->rand_store_0 = $s;\n $s = bcmod(bcsub(bcmul($s, 29943829), 1), \"4294967296\");\n $this->rand_store_1 = $s;\n $s = bcmod(bcsub(bcmul($s, 29943829), 1), \"4294967296\");\n $this->rand_store_2 = $s;\n $s = bcmod(bcsub(bcmul($s, 29943829), 1), \"4294967296\");\n $this->rand_store_3 = $s;\n $s = bcmod(bcsub(bcmul($s, 29943829), 1), \"4294967296\");\n $this->rand_store_4 = $s;\n\n // randomize some more\n for ($i = 0; $i < 19; $i++)\n {\n $this->rand32();\n }\n $this->rand_init_done = 1;\n }",
"public function srand($seed)\n {\n $this->random_seed = $seed;\n }",
"function wfSeedRandom() {\n\tglobal $wgRandomSeeded;\n\n\tif ( ! $wgRandomSeeded && version_compare( phpversion(), '4.2.0' ) < 0 ) {\n\t\t$seed = hexdec(substr(md5(microtime()),-8)) & 0x7fffffff;\n\t\tmt_srand( $seed );\n\t\t$wgRandomSeeded = true;\n\t}\n}",
"public function __construct(int $seed = null)\n {\n $this->prng = XoShiRo128pp::from_rand($seed);\n }",
"function make_seed() { \n list($mcs,$sec)=explode(' ',microtime()); \n return ((float)$mcs*1000000+(float)$sec);\n }",
"public function __construct()\n {\n mt_srand((float) microtime() * 1000000);\n // Discard the first 100 numbers.\n for ($i = 0; $i < 100; $i++)\n mt_rand();\n }",
"function safe_seed_random() {\n $b = openssl_random_pseudo_bytes(4);\n $i = unpack('L', $b);\n if (empty($i[1]))\n $i[1] = 10000 * microtime(true);\n srand((int)$i[1]);\n}",
"function generate($generator, $seed = 10) {\n mt_srand($seed);\n return Eris\\Sample::of($generator, 'mt_rand')->repeat(1)->collected()[0];\n}",
"public function setSeed($seed);",
"function knuth_rand($seed) {\n $n = 6364136223846793005 * $seed + 1442695040888963407;\n if ($n < 0) {\n $n = -$n;\n }\n return $n;\n}",
"function sample($generator, $times, $seed = 10) {\n mt_srand($seed);\n return Eris\\Sample::of($generator, 'mt_rand')->repeat($times)->collected();\n}",
"public static function seed() {\n\t\t// Seeding more than once means less entropy, not more, so bail\n\t\tif (isset(static::$_urandom)) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Use urandom if the device is available\n\t\tif (is_readable('/dev/urandom')) {\n\t\t\tstatic::$_urandom = fopen('/dev/urandom', 'rb');\n\t\t// Else seed PHP's mt_rand()\n\t\t} else {\n\t\t\t$seed = function() {\n\t\t\t\tlist($usec, $sec) = explode(' ', microtime());\n\t\t\t\t$seed = (float) $sec + ((float) $usec * 100000);\n\t\t\t\tif (function_exists('getmypid')) {\n\t\t\t\t\t$seed .= getmypid();\n\t\t\t\t}\n\t\t\t\treturn $seed;\n\t\t\t};\n\t\t\tmt_srand($seed());\n\t\t\tstatic::$_urandom = false;\n\t\t}\n\n\t\treturn true;\n\t}",
"public function __construct($seed = null) {\n // Remove all ampersands from the seed\n if ($seed != null) {\n $seed = str_replace('&', '', $seed);\n }\n \n // Set the seed\n // Generate a user\n $this->seed = is_null($seed) ? sha1(date('dmY')) : $seed;\n $this->regenerate();\n }",
"public function setRandomSeed(int $seed): void {\n $this->randomSeed = abs($seed) % 9999999 + 1;\n ;\n $this->getRandomInt();\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ expand a network alias, if necessary | function alias_expand_net($name) {
global $aliastable;
if (isset($aliastable[$name]) && is_subnet($aliastable[$name]))
return $aliastable[$name];
else if (is_subnet($name))
return $name;
else
return null;
} | [
"function alias_expand($name) {\n\n\tglobal $aliastable;\n\n\tif (isset($aliastable[$name]))\n\treturn $aliastable[$name];\n\telse if (is_ipaddr($name) || is_subnet($name))\n\treturn $name;\n\telse\n\treturn null;\n}",
"function alias_expand_net($name) {\n\n\tglobal $aliastable;\n\n\tif (isset($aliastable[$name]) && is_subnet($aliastable[$name]))\n\treturn $aliastable[$name];\n\telse if (is_subnet($name))\n\treturn $name;\n\telse\n\treturn null;\n}",
"function alias_expand_net($name) {\n\n\tglobal $aliastable;\n\n\tif (isset($aliastable[$name]) && is_subnet($aliastable[$name]))\n\t\treturn $aliastable[$name];\n\telse if (is_subnet($name))\n\t\treturn $name;\n\telse\n\t\treturn null;\n}",
"function alias_expand($name) {\n\t\n\tglobal $aliastable;\n\t\n\tif (isset($aliastable[$name]))\n\t\treturn $aliastable[$name];\n\telse if (is_ipaddr($name) || is_subnet($name) || is_ipaddr6($name))\n\t\treturn $name;\n\telse\n\t\treturn null;\n}",
"function alias_expand_host($name) {\n\tglobal $aliastable;\n\n\tif (isset($aliastable[$name])) {\n\t\t$ip_arr = explode(\" \", $aliastable[$name]);\n\t\tforeach($ip_arr as $ip) {\n\t\t\tif (!is_ipaddr($ip))\n\t\t\t\treturn null;\n\t\t}\n\t\treturn $aliastable[$name];\n\t} else if (is_ipaddr($name))\n\t\treturn $name;\n\telse\n\t\treturn null;\n}",
"public function resolveAlias(string $alias);",
"public function networkAlias($alias = 'WiFi'): self {\n $this->alias = $alias;\n return $this;\n }",
"public function alias(string $alias, string $id);",
"public function alias($alias, $binding);",
"function _drush_sitealias_load_alias($alias, $alias_path_context = NULL) {\n $all_site_aliases = drush_get_context('site-aliases');\n $result = array();\n\n // Check to see if this is a relative alias ('@site/@peer')\n $relative_alias_pos = strpos($alias, '/@');\n if ($relative_alias_pos !== false) {\n $primary_alias = substr($alias,0,$relative_alias_pos);\n $relative_alias = substr($alias,$relative_alias_pos + 1);\n $primary_record = drush_sitealias_get_record($primary_alias);\n _drush_sitealias_find_and_load_alias(substr($relative_alias,1), $primary_record);\n $result = drush_sitealias_get_record($relative_alias);\n if (!empty($result)) {\n if (array_key_exists('inherited', $result)) {\n $result = array_merge($primary_record, $result);\n }\n $result['#name'] = $relative_alias;\n _drush_sitealias_add_inherited_values_to_record($result);\n _drush_sitealias_cache_alias($alias, $result);\n }\n }\n else {\n // Only aliases--those named entities that begin with '@'--can be loaded this way.\n // We also skip any alias that has already been loaded.\n if ((substr($alias,0,1) == '@') && !array_key_exists($alias,$all_site_aliases)) {\n $aliasname = substr($alias,1);\n $result = _drush_sitealias_find_and_load_alias($aliasname, $alias_path_context);\n if (!empty($result)) {\n $alias_options = array('site-aliases' => array($aliasname => $result));\n _drush_sitealias_add_inherited_values($alias_options['site-aliases']);\n drush_set_config_special_contexts($alias_options);\n if (array_key_exists('#file', $result)) {\n drush_log(dt('Loaded alias !alias from file !file', array('!alias' => $alias, '!file' => $result['#file'])));\n }\n }\n }\n }\n\n return $result;\n}",
"protected static function makeAlias() {\n\t\tdo {\n\t\t\t$alias2alias = false;\n\t\t\tforeach(static::$info as $name => $info) {\n\t\t\t\tif(!isset($info['alias']))\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\tif(!isset(static::$info[ $info['alias'] ]))\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\t$myAlias = static::$info[ $info['alias'] ];\n\n\t\t\t\t// does my alias, have an alias?\n\t\t\t\tif(isset($myAlias['alias'])) {\n\t\t\t\t\t$alias2alias = true;\n\t\t\t\t\tunset($info['alias']);\n\t\t\t\t}\n\n\t\t\t\t// $info overwrites alias\n\t\t\t\t$info['middleware'] = array_unique(array_merge($myAlias['middleware'], $info['middleware']), SORT_REGULAR);\n\t\t\t\tstatic::$info[$name] = array_merge($myAlias, $info);\n\t\t\t}\n\t\t} while($alias2alias);\n\t}",
"public function aliasResolutionDataProvider()\n\t{\n\t\treturn array(\n\t\t\t'single alias' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'a1' => array('host' => static::HOST, 'port' => static::PORT),\n\t\t\t\t),\n\t\t\t\tarray('alias' => 'a1'),\n\t\t\t\tarray(\n\t\t\t\t\t'host' => static::HOST, 'port' => static::PORT, 'browserName' => 'firefox',\n\t\t\t\t\t'baseUrl' => 'http://www.super-url.com', // Comes from driver defaults.\n\t\t\t\t),\n\t\t\t),\n\t\t\t'recursive alias' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'a1' => array('alias' => 'a2', 'host' => static::HOST, 'port' => static::PORT),\n\t\t\t\t\t'a2' => array('browserName' => 'safari', 'baseUrl' => 'http://example_host'),\n\t\t\t\t),\n\t\t\t\tarray('alias' => 'a1'),\n\t\t\t\tarray(\n\t\t\t\t\t'host' => static::HOST,\n\t\t\t\t\t'port' => static::PORT,\n\t\t\t\t\t'browserName' => 'safari',\n\t\t\t\t\t'baseUrl' => 'http://example_host',\n\t\t\t\t),\n\t\t\t),\n\t\t\t'alias merging' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'a1' => array('host' => static::HOST, 'port' => static::PORT),\n\t\t\t\t),\n\t\t\t\tarray('alias' => 'a1', 'browserName' => 'firefox'),\n\t\t\t\tarray(\n\t\t\t\t\t'host' => static::HOST, 'port' => static::PORT, 'browserName' => 'firefox',\n\t\t\t\t\t'baseUrl' => 'http://www.super-url.com', // Comes from driver defaults.\n\t\t\t\t),\n\t\t\t),\n\t\t\t'with overwrite' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'a1' => array('host' => 'alias-host', 'port' => static::PORT),\n\t\t\t\t),\n\t\t\t\tarray('alias' => 'a1', 'host' => static::HOST),\n\t\t\t\tarray(\n\t\t\t\t\t'host' => static::HOST, 'port' => static::PORT, 'browserName' => 'firefox',\n\t\t\t\t\t'baseUrl' => 'http://www.super-url.com', // Comes from driver defaults.\n\t\t\t\t),\n\t\t\t),\n\t\t\t'without alias given' => array(\n\t\t\t\tarray(),\n\t\t\t\tarray('host' => static::HOST, 'port' => static::PORT, 'browserName' => 'safari'),\n\t\t\t\tarray(\n\t\t\t\t\t'host' => static::HOST, 'port' => static::PORT, 'browserName' => 'safari',\n\t\t\t\t\t'baseUrl' => 'http://www.super-url.com', // Comes from driver defaults.\n\t\t\t\t),\n\t\t\t),\n\t\t);\n\t}",
"public function createFullAlias() {\n// if (strlen($this->full_alias) == 0) {\n static::findTreeModel(static::$treeCurrent);\n static::fillinTree(static::$treeCurrent);\n\n if ($this->parent > 0) {\n $path = static::getPathById($this->parent);\n $alias = array();\n foreach ($path as $m) {\n $alias[] = $m->alias;\n }\n $alias[] = $this->alias;\n\n $this->full_alias = implode($this->delimiterFullAlias, $alias);\n } else {\n $this->full_alias = $this->alias;\n }\n// }\n }",
"public function addAlias($alias = null) {\n $new_alias = ($alias) ?: $this->search_api_index->machine_name;\n $index = $this->getRealIndex();\n $index->addAlias($new_alias);\n }",
"private function _create_network_alias() {\n\t\t$sites = ep_get_sites();\n\t\t$indexes = array();\n\n\t\tforeach ( $sites as $site ) {\n\t\t\tswitch_to_blog( $site['blog_id'] );\n\n\t\t\t$indexes[] = ep_get_index_name();\n\n\t\t\trestore_current_blog();\n\t\t}\n\n\t\treturn ep_create_network_alias( $indexes );\n\t}",
"public function alias($original, $aliasOrAliases);",
"function xarModGetAlias($alias) { return xarModAlias::resolve($alias);}",
"function filter_core_get_port_alias($aliasname, $aliases = [], $aliasObject = null, $all_aliases = [])\n{\n $response = [];\n $aliases[] = $aliasname;\n $aliasObject = $aliasObject == null ? (new \\OPNsense\\Firewall\\Alias()) : $aliasObject;\n foreach ($aliasObject->aliasIterator() as $aliased) {\n if ($aliasname == $aliased['name'] && $aliased['type'] == 'port' && !empty($aliased['enabled'])) {\n foreach ($aliased['content'] as $address) {\n if (in_array($address, $all_aliases)) {\n if (!in_array($address, $aliases)) {\n foreach (filter_core_get_port_alias($address, $aliases, $aliasObject, $all_aliases) as $port) {\n if (!in_array($port, $response)) {\n $response[] = $port;\n }\n }\n }\n } elseif ((is_port($address) || is_portrange($address)) && !in_array($address, $response)) {\n $response[] = $address;\n }\n }\n }\n }\n return $response;\n}",
"function alias()\n {\n global $W_SES ;\n return $W_SES['alias'] ;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if current user is not the author and does not have permitted role to edit an item | public function cannotEdit($author = 0) {
return !$this->canEdit($author);
} | [
"public function allowEdit()\n\t{\n\t\treturn $this->id == Auth::user() -> id || Auth::user() -> admin;\n\t}",
"public function userNotOwnerOrAdmin()\n {\n if(auth()->id() != $this->user_id && !auth()->user()->hasRole('admin')) return true;\n return false;\n }",
"public static function cannotEdit($author = 0) {\n\t\treturn !self::canEdit($author);\n\t}",
"public function isUserEditAllowed()\n {\n return $this->authorization->isAllowed('Magento_Company::users_edit');\n }",
"public function allowOnlyOwner() {\n if (Yii::app()->user->getState('role') > 2) {\n return true;\n } else {\n $example = Equipment::model()->findByPk($_GET[\"id\"]);\n return $example->userId === Yii::app()->user->id;\n }\n }",
"public function canEdit(): bool\n {\n if (Auth::getLoggedInUserId() == $this->user_id || Auth::isMod() || Auth::isAdmin()) {\n return true;\n }\n\n return false;\n }",
"public function hasEditPermission()\n {\n if ($this->getUser() == $this->adapter->getUser()) {\n return true;\n }\n\n return false;\n }",
"public function is_editable_by_current_user() {\n if ( current_user_can( 'edit_post', $this->get_id() ) ) {\n return true;\n }\n return false;\n }",
"public function isNotUser()\n\t{\n\t\treturn $this->role->slug != 'user';\n\t}",
"public function canEdit()\n\t{\n\t\tif (!$this->hasId())\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t// User has global edit permissions\n\t\tif ($this->canDo($this->getAclPrefix() . '.edit'))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\t// User has global edit permissions\n\t\tif ($this->canDo($this->getAclPrefix() . '.edit.own'))\n\t\t{\n\t\t\treturn $this->isOwner();\n\t\t}\n\n\t\treturn false;\n\t}",
"public function allowOnlyOwner(){\n if(Yii::app()->user->getState('role')>2){\n return true;\n }\n else{\n return Element::model()->findByPk($_GET[\"id\"])->step->traveler->userId === Yii::app()->user->id;\n }\n }",
"public function allowOnlyOwner() {\n if (Yii::app()->user->getState('role') > 2) {\n return true;\n } else {\n return Step::model()->findByPk($_GET[\"id\"])->traveler->userId === Yii::app()->user->id;\n }\n }",
"public function canEdit()\n {\n if (!function_exists('current_user_can')) {\n return false;\n }\n if (current_user_can('edit_post', $this->ID)) {\n return true;\n }\n return false;\n }",
"public function isEditable(): bool\n\t{\n\t\treturn Auth::user() && Auth::user()->getId() === $this->user->getId();\n\t}",
"public function user_can_edit_item( $item_id, $user_id = null ) {\n return false;\n }",
"public function current_user_can_edit_campaign() {\n\t\t\t$campaign = $this->get_campaign();\n\n\t\t\tif ( ! $campaign ) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\treturn $this->get_campaign()->post_author == get_current_user_id();\n\t\t}",
"public function isRoleEditAllowed()\n {\n return $this->authorization->isAllowed('Magento_Company::roles_edit');\n }",
"private function allowModify()\n {\n if($this->controllerVar['loggedUserRole'] < 60 )\n {\n return $this->allowModify = true;\n }\n elseif(($this->controllerVar['loggedUserRole'] >= 60) &&\n ($this->controllerVar['loggedUserRole'] < 100))\n {\n return $this->allowModify = $this->model->action('article','checkUserRights',\n array('id_article' => (int)$this->current_id_article,\n 'id_user' => (int)$this->controllerVar['loggedUserId']));\n }\n\n return $this->allowModify = false;\n }",
"function userCanEditAndDelete() {\n\t\tglobal $icmsUser, $profile_isAdmin;\n\t\tif (!is_object($icmsUser)) {\n\t\t\treturn false;\n\t\t}\n\t\tif ($profile_isAdmin) {\n\t\t\treturn true;\n\t\t}\n\t\treturn $this->getVar('uid_owner', 'e') == $icmsUser->uid();\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the second value for this point | public function set_second_value($value) {
if (is_int($value) || is_float($value)) {
$this->secondvalue = $value;
} else if (is_string($value)) {
if (strpos($value, '.')!==false) {
$this->secondvalue = (float)$value;
} else {
$this->secondvalue = (int)$value;
}
}
} | [
"public function setX2($x2){\n $this->x2 = $x2;\n }",
"public function use_second_xvalue() {\n $this->usesecondxvalue = true;\n }",
"public function setValue2($var)\n {\n GPBUtil::checkInt32($var);\n $this->Value2 = $var;\n\n return $this;\n }",
"public function setY2($y2){\n $this->y2 = $y2;\n }",
"public function setSecondOperand($val)\n {\n $this->_propDict[\"secondOperand\"] = $val;\n return $this;\n }",
"public function setPrice2($price) {\n\t\t$this->price2 = $price;\n\t}",
"public function updatePt2() {\n parent::updatePt2();\n $this->pt2[\"y\"]++;\n }",
"public function testSetPrime2() {\n\n $obj = new PointBonTrav();\n\n $obj->setPrime2(10.092018);\n $this->assertEquals(10.092018, $obj->getPrime2());\n }",
"public function getPoint2(): Point {\n return $this->point2;\n }",
"public function updatePt2() {\n parent::updatePt2();\n $this->pt2[\"y\"]--;\n }",
"abstract public function setPointValue($value);",
"public function getVal2()\r\n {\r\n return $this->val2;\r\n }",
"public function setY2($y2)\n {\n return $this->setAttribute('y2', $y2);\n }",
"public static function setPointValue()\n\t{\n\t\tself::$value = (include \"bootstrap/values.php\")[self::getConfiguration()[\"pointValue\"]];\n\t}",
"public function setParam2($value)\n {\n return $this->set(self::_PARAM2, $value);\n }",
"public function setLine2($value)\n {\n $this->_fields['Line2']['FieldValue'] = $value;\n return $this;\n }",
"public function getValue2(){\n return $this->_value2;\n }",
"function setAnswerTwo($answerTwo)\r\n {\r\n $this->answerTwo = $answerTwo;\r\n }",
"public function testSetMontant2() {\n\n $obj = new DecTva3519();\n\n $obj->setMontant2(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant2());\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inserts a new payer into the payer table | public function insert_new_payer($input_data) {
$table_name = $this->wpdb->prefix . '_Payers';
$this->wpdb->insert(
$table_name,
array(
'merchantid' => $input_data["merchantid"],
'payerid' => $input_data["payerid"],
'email' => $input_data["email"]
)
);
} | [
"public function insertSkier($skier) {\n try {\n\t$stmt = $this->db->prepare('INSERT INTO Skier (userName, firstName, lastName, yearOfBirth)'\n\t\t\t\t . 'VALUES(:userName, :firstName, :lastName, :yearOfBirth)');\n\t$stmt->bindValue(':userName', $skier->userName);\n\t$stmt->bindValue(':firstName', $skier->firstName);\n\t$stmt->bindValue(':lastName', $skier->lastName);\n $stmt->bindValue(':yearOfBirth', $skier->yearOfBirth);\n\t$stmt->execute();\n } catch(PDOException $e) {\n\t throw $e;\n }\n}",
"public function addSkier($skier)\n {\n //Prepare statement and bind values for the skier to be added to the database\n try {\n $stmt = $this->db->prepare('INSERT INTO skier (userName, firstName, lastName, dateOfBirth)'\n . 'VALUES (:userName, :firstName, :lastName, :dateOfBirth)');\n $stmt->bindValue(':userName', $skier->userName);\n $stmt->bindValue(':firstName', $skier->firstName);\n $stmt->bindValue(':lastName', $skier->lastName);\n\t\t\t$stmt->bindValue(':dateOfBirth', $skier->dateOfBirth);\n $stmt->execute();\n } catch(PDOException $ex) {\n throw $ex;\n } \n }",
"public function newPayer( $payer )\n {\n $timestamp = $this->getTimeStamp();\n\n $rtrans = new \\Entities\\RealexTransaction();\n $rtrans->setPayer( $payer);\n $rtrans->setRequestType( 'payer-new' );\n $rtrans->setAccount( $this->_account );\n $rtrans->setState( \\Entities\\RealexTransaction::STATE_INIT );\n \n $rtrans->setRequest( \"\" );\n $rtrans->setCreated( new \\DateTime() );\n $rtrans->setUpdated( new \\DateTime() );\n $rtrans->setIsFake( 0 );\n\n $this->getD2EM()->persist( $rtrans );\n $this->getD2EM()->flush();\n\n $this->_log( \"[RTRANS: {$rtrans->getId()}] Realex::newPayer() - transaction set to STATE_INIT\" );\n\n // we're about to create a Realex payer which means the paygate state should be none\n if( $payer->getState() != \\Entities\\RealexPayer::STATE_NONE )\n throw new OSS_PaymentProcessor_Exception( OSS_PaymentProcessor_Exception::ERR_INCONSISTANT_PAYGATE_STATE );\n\n $orderId = self::createOrderId( $rtrans );\n $payerRef = $payer->getPayerref();\n $hash = OSS_PaymentProcessor_Realex_Hash::payer( $timestamp, $this->getMerchantId(), $orderId, $payerRef, $this->getMerchantSecret() );\n\n $reqXML = \"<request type='payer-new' timestamp='{$timestamp}'>\n <merchantid>{$this->getMerchantId()}</merchantid>\n <orderid>{$orderId}</orderid>\n <payer type='subscriber' ref='{$payerRef}'>\n <firstname>{$payer->getFirstname()}</firstname>\n <surname>{$payer->getLastname()}</surname>\n </payer>\n <sha1hash>{$hash}</sha1hash>\n </request>\";\n\n //FIXME: payer first name and last name\n\n $rtrans->setState( \\Entities\\RealexTransaction::STATE_PRESEND );\n $this->_log( \"[RTRANS: {$rtrans->getId()}] Realex::newPayer() - transaction set to STATE_PRESEND\\n\\n{$reqXML}\\n\\n\" );\n $rtrans->setUpdated( new \\DateTime() );\n $this->getD2EM()->flush();\n\n if( $this->_fake_transactions )\n {\n $this->_log( \"[RTRANS: {$rtrans->getId()}] Realex::newPayer() - faking transaction\" );\n $payer->setState( \\Entities\\RealexPayer::STATE_INSYNC );\n return $this->_completeFakeTransation( $rtrans );\n }\n \n $this->_sendRequest( $rtrans, $reqXML );\n\n if( $rtrans->isSuccessful() )\n {\n $payer->setState( \\Entities\\RealexPayer::STATE_INSYNC );\n $this->getD2EM()->flush();\n }\n\n return $rtrans;\n }",
"public function insert(personal $personal);",
"public function insert_record(){\n\n\t\t}",
"function add_supplyer($params)\n {\n $this->db->insert('Supplyers',$params);\n return $this->db->insert_id();\n }",
"public function createSavingsAccount() {\n $query = 'INSERT INTO ' . $this->table . '\n SET\n balance = :balance,\n interest_rate = :interest_rate,\n user_id = :user_id';\n $stmt = $this->conn->prepare($query);\n $stmt->bindParam(':balance', $this->balance);\n $stmt->bindParam(':interest_rate', $this->interest_rate);\n $stmt->bindParam(':user_id', $this->user_id);\n if($stmt->execute()) return true;\n printf(\"Error: %s.\\n\", $stmt->error);\n return false;\n }",
"function add_person($table, $data){\n $this->db->trans_begin();\n $this->db->insert($table, $data);\n if($this->db->affected_rows() == 0){\n $this->db->trans_rollback();\n return 400;\n }\n else{\n $this->db->trans_commit();\n }\n return 0;\n }",
"public function insert($candidato);",
"public function insertRecord()\n {\n }",
"public function insert($proveedor);",
"public function insertIntoPayments($data){\n\t\t\t$id = $this->db->lastInsertId();\n\t\t\t$data += array(\"customer_id\" => $id);\n\t\t\t$table = self::AMOUNTS_TABLE;\n\t\t\t$sql = \"INSERT INTO $table (customer_id, Amount) VALUES (:customer_id, :amount)\";\n\t\t\t$stmt = $this->db->prepare($sql);\n\t\t\t$stmt->execute($data);\n\t\t}",
"function insert_purchase_request($db, $buyer_id, $seller_id, $bookid)\n{\n\t/* Create the query */\n\t$sql = 'INSERT INTO purchase_requests (buyer_id, seller_id, bookid, date_time) \n\t\t\t\t\tVALUES (:buyer_id, :seller_id, :bookid, NOW())';\n\n\t/* Execute the query */\n\t$st = $db->prepare($sql);\n\t$st->execute(array(':buyer_id' =>$buyer_id, ':seller_id'=> $seller_id,\n\t\t\t\t\t\t\t\t\t\t ':bookid'=> $bookid));\n}",
"public function insert()\n {\n \n $val_errors = array ();\n dbg(\"+\".__METHOD__.\";$this->game_id:{$this->sql_column_name_value_pairs()}\");\n $val_errors = ($this->validate());\n// if (\"{$game_error_msgs['count']}\" == \"0\") {\n if (sizeof($val_errors) == 0 ) {\n try {\nrequire(BASE_URI . \"includes/pok.open.inc.php\");\n # insert seat\n $query = \"INSERT INTO seats ({$this->sql_column_name_list()}) \" .\n \"VALUES ({$this->sql_column_parm_list()})\";\n dbg(\"=\".__METHOD__.\":query=$query\");\n $stmt = $pokdb->prepare($query);\n $stmt->bindValue(':game_id', $this->game_id, PDO::PARAM_INT);\n $stmt->bindValue(':member_id', $this->member_id, PDO::PARAM_INT);\n $stmt->bindValue(':response', $this->response, PDO::PARAM_STR);\n $stmt->bindValue(':note_member', $this->note_member, PDO::PARAM_STR);\n $stmt->bindValue(':note_master', $this->note_master, PDO::PARAM_STR);\n $stmt->execute();\n } catch (PDOException $e) {\n # case [23000]: Integrity constraint violation ... Duplicate entry\n # case 42000: SQLSTATE[42000]: Syntax error or access violation:\n throw new PokerException(\"PDO Exception:{$e->getCode()}:{$e->getMessage()}\",\n self::INS_ERR_PDO,\n $e);\n }\n } else {\n throw new PokerException(\"Data validation errors\", \n self::INS_ERR_VALIDTN, \n null, \n $val_errors);\n }\n dbg(\"-\".__METHOD__.\";$this->game_id;$this->member_id;errs=\".sizeof($val_errors).\"\");\n }",
"function addPayment() \n\t{\n\t\t//Insert tansaction data into the database\n\t\t$query = \"INSERT INTO payment (C_ID, Q_ID, RP_ID, Txn_ID, Pay_Date, Pay_Amount, Pay_Status) VALUES (:C_ID,:Q_ID, :RP_ID, :Txn_ID, :Pay_Date, :Pay_Amount, :Pay_Status)\";\n\t\t$args = [ // the parameter that will be bind by pdo\n\t\t':C_ID' => $this->cid,\n\t\t':Q_ID' => $this->qid,\n\t\t':RP_ID' => $this->rpid,\n\t\t':Txn_ID' => $this->Txn_ID,\n\t\t':Pay_Date' => $this->Pay_Date,\n\t\t':Pay_Amount' => $this->Pay_Amount,\n\t\t':Pay_Status' => $this->Pay_Status\n\t];\t\n\n\t\t$stmt = DB::run($query, $args);\n\t\t$count = $stmt->rowCount();\n\t\treturn $count;\n\t}",
"function add_person(){\n $person = $this->people->create();\n $this->present_person($person);\n }",
"private function insert() {\n\n\t\t$post = $this->input->post();\n\n\t\t// Registration data.\n\t\t$data = array(\n\t\t\t'church' => (int) $post['church'],\n\t\t\t'name' => trim( $post['name'] ),\n\t\t\t'gender' => $post['gender'] === 'F' ? 'F' : 'M',\n\t\t\t'age' => (int) $post['age'],\n\t\t\t'accommodation' => $post['accommodation'] ? 1 : 0,\n\t\t\t'hot_water' => isset( $post['hot_water'] ) ? 1 : 0,\n\t\t\t'milk' => isset( $post['milk'] ) ? 1 : 0,\n\t\t\t'inserted_by' => $this->session->userdata( 'user_id' )? $this->session->userdata( 'user_id' ) : null,\n\t\t);\n\n\t\t// Insert attendee personal data and get attendee id.\n\t\t$attendee_id = $this->registration_model->register( $data );\n\t\t// If attendee added, insert date and time.\n\t\tif ( $attendee_id ) {\n\t\t\t$this->insert_dates_time( $attendee_id, $post['day'] );\n\t\t}\n\n\t\treturn ( ! empty( $attendee_id ) );\n\t}",
"protected function addAccount()\n {\n $query = 'INSERT INTO bank_account (balance, account_number) VALUES(?, ?)';\n\n $statement = $this->pdo->prepare($query);\n $statement->execute([$this->balance, $this->accountNumber]);\n }",
"public function insertNewPlayer($player){\n \n $sql = \"INSERT INTO \" . $this -> playersTableName . \" \n (firstName, lastName, email, nickname, wins, losses, tie, playNow)\n VALUES ('\" . $player->firstName . \"', '\" . $player->lastName . \"', '\"\n . $player->email . \"', '\" . $player->nickname . \"', \" \n . $player->wins . \", \" . $player->losses . \", \"\n . $player->tie . \", 0)\";\n \n if ($this -> db-> query($sql) === TRUE) {\n // New player created successfully\n // Return the Id of the new player (last insert)\n $last_id = $this -> db->insert_id;\n return $last_id;\n } else {\n return \"Error: \" . $sql . \"<br>\" . $conn->error;\n }\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the created date formatted with time | function getFormattedCreatedDateTime()
{
return $this->created_at->format('d/m/Y H:i:s');
} | [
"public function getCreatedDateString()\n {\n return date('l, F j, Y g:i:s A', strtotime($this->created_date));\n }",
"public function createDate () {\n return date('Y-m-d H:i:s', $this->created);\n }",
"public function getFormattedCreateDate();",
"public function created() {\n\t\treturn gmdate( 'Y-m-d\\TH:i:s\\Z' );\n\t}",
"public function getCreatedDate() : string\n {\n return $this->getProperty()->createdDate;\n }",
"public function getCreateDate()\n {\n return $this->formatDate(\n $this->getCustomer()->getCreatedAt(),\n \\IntlDateFormatter::MEDIUM,\n true\n );\n }",
"public function getCreateDatetime() {\n return date(\"Y-m-d H:i:s\");\n }",
"public function getCreatedTime()\n {\n }",
"private function getObjectCreationDate() {\n $date_created = new DateTime($this->item->objectProfile->objCreateDate);\n return $date_created->format('F j, Y');\n }",
"public function getCreatedDate()\n {\n $rtn = $this->data['created_date'];\n\n if (!empty($rtn)) {\n $rtn = new \\DateTime($rtn);\n }\n\n return $rtn;\n }",
"public function getCreateDate()\n {\n return $this->_getCoreHelper()->formatDate($this->getCustomer()->getCreatedAt(),\n Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM, true);\n }",
"public function get_time_created(){\n\t\treturn $this->time_created;\n\t}",
"public function getCreatedTime() {\n return $this->createdTime;\n }",
"public function getTimestampCreated();",
"public function getCreationDate()\n {\n $date = $this->get('ts_created');\n return Date::factory($date);\n }",
"public function getCreate_time()\r\n {\r\n return $this->create_time;\r\n }",
"public function createdAt()\n {\n return $this->created_at->toFormattedDateString();\n }",
"public function getCreatedDate()\n {\n return $this->created_date;\n }",
"public function formatCreatedAtDate()\n {\n $date = new DateFormatter($this->created_at);\n\n return $date->format();\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get "allow negative" flag value | public function getAllowNegative()
{
return ($this->_allowNegative);
} | [
"public function getAllowNegative() : bool\r\n {\r\n return $this->allowNegative ?? self::DEFAULT_ALLOW_NEGATIVE;\r\n }",
"public function getNegativeUnwrapped()\n {\n return $this->readWrapperValue(\"negative\");\n }",
"public function getNegativeIntValue() {}",
"protected function _negative()\n {\n return $this->value < 0;\n }",
"public function getMinusSign();",
"public function getDurationNegative()\n {\n return $this->getProperty('neg');\n }",
"public function setNegative($var)\n {\n GPBUtil::checkUint32($var);\n $this->negative = $var;\n\n return $this;\n }",
"function is_negative($x) {\n\t\treturn $x < 0 ? true : false;\n\t}",
"public function isNegative()\n {\n return $this->compareTo0() === -1;\n }",
"public function isNegative() : bool\n {\n return $this->amount < 0;\n }",
"function isNegative () {\n return (($this->num < 0) xor ($this->denom < 0));\n }",
"public function isNegative(): bool\n {\n return $this->amount < 0;\n }",
"function is_negative (&$x) {\n $isOverflowOrNegative = $this->is_overflow($x) || $x[9] < 0;\n $leastSignificantBit = $x[0] & 1;\n return (($isOverflowOrNegative ? 1 : 0) ^ $leastSignificantBit) & 0xFFFFFFFF;\n }",
"public function isNegative(): bool {\n return $this->invert === 1;\n }",
"public function isNegative()\n {\n return $this->amount->isNegative();\n }",
"function negate() { # :: Num -> Num\n return -$this->value;\n }",
"public function data_isNegative() {\n\t\t\t$data = array(\n\t\t\t\tarray(array(1), array(false)),\n\t\t\t\tarray(array(0), array(false)),\n\t\t\t\tarray(array(-1), array(true)),\n\t\t\t);\n\t\t\treturn $data;\n\t\t}",
"public function getAdjustmentNegative();",
"public function getNegate()\n {\n return $this->negate;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Site maintenance. Determine if the website is under maintenance. There is a default method for determining if this is the case, but modules can define their own methods, too. If any of the modules' methods returns true then the site is considered to be under maintenance. | function site_maintenance()
{
return maintenance_file_exists()||module_invoke_all('maintenance');
} | [
"function chkIsSiteUnderMaintenance()\n\t{\n\t\tglobal $CFG;\n\n\t\tif(!isAdmin())\n\t\t\t{\n\t\t\t\t$currentPage = strtolower($CFG['html']['current_script_name']);\n\t\t\t\tif($CFG['admin']['module']['site_maintenance'] AND $currentPage != 'maintenance')\n\t\t\t\t\t{\n\t\t\t\t\t\t// Unset all of the session variables.\n\t\t\t\t\t\t$_SESSION = array();\n\t\t\t\t\t\t// If it's desired to kill the session, also delete the session cookie.\n\t\t\t\t\t\t// Note: This will destroy the session, and not just the session data!\n\t\t\t\t\t\tif (isset($_COOKIE[session_name()]))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t setcookie(session_name(), '', time()-42000, '/');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t// Finally, destroy the session.\n\t\t\t\t\t\tsession_destroy();\n\t\t\t\t\t\tsession_write_close();\n\t\t\t\t\t\tsetcookie($CFG['cookie']['starting_text'].'_bba', '', time()-42000, '/');\n\t\t\t\t\t\t$murl = getUrl($CFG['redirect']['maintenance_module_url']['file_name'], $CFG['redirect']['maintenance_module_url']['normal'], $CFG['redirect']['maintenance_module_url']['htaccess'], 'root');\n\t\t\t\t\t\t$CFG['site']['current_url'];\n\t\t\t\t\t\tif($CFG['site']['current_url']!=$murl)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tRedirect2Url($murl);\n\t\t\t\t\t\t\t\texit;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\t\t$value_array = explode('/', $CFG['site']['relative_url']);\n\t\t\t\tif(!in_array('admin', $value_array) and $CFG['admin']['module']['site_maintenance'])\n\t\t\t\t\t{\n\t\t\t\t\t\t$admin_url = $CFG['site']['url'].'admin/index.php';\n\t\t\t\t\t\tRedirect2URL($admin_url);\n\t\t\t\t\t}\n\t\t\t}\n\t}",
"public static function isMaintenanceEnabled()\n {\n return self::$application_is_maintenance_mode_enabled;\n }",
"public function is_maintenance() {\n\t\t$html = str_get_html($this->ios_index);\n\t\treturn (strpos($html->find('body', 0)->class, 'maintenance') !== false);\n\t}",
"private function isMaintenanceMode()\n {\n return $this->maintenancePage instanceof Maintenance ? $this->maintenancePage->getEnable() : false;\n }",
"public function has_maintenance() {\n global $pagenow;\n if ($this->settings_values['enabled'] != '1') {\n return false;\n }\n\n if (defined('WPUMAINTENANCE_DISABLED') && WPUMAINTENANCE_DISABLED) {\n return false;\n }\n\n // Don't launch if CLI\n if (function_exists('php_sapi_name') && php_sapi_name() == 'cli') {\n return false;\n }\n\n // Don't launch if user is logged in\n $disable_loggedin = $this->settings_values['disabled_users'];\n if ($disable_loggedin == '1' && is_user_logged_in()) {\n return false;\n }\n\n // Don't launch if in admin\n if (is_admin()) {\n return false;\n }\n\n // Don't launch if login page\n if ($pagenow == 'wp-login.php') {\n return false;\n }\n\n // Check authorized ips\n $opt_ips = $this->settings_values['authorized_ips'];\n $opt_ips = str_replace(' ', '', $opt_ips);\n $opt_ips = str_replace(array(\n ';',\n ',',\n \"\\n\",\n \"\\r\"\n ), '###', $opt_ips);\n $authorized_ips = explode('###', $opt_ips);\n\n // If no IPs are authorized : maintenance\n if (empty($authorized_ips) || $authorized_ips[0] == '') {\n return true;\n }\n\n $my_ip = $this->get_ip();\n return !in_array($my_ip, $authorized_ips);\n }",
"public function isInMaintenanceMode() {\n\n $automation = json_decode($this->request('/maintenance'));\n return $automation->isInMaintenanceMode;\n }",
"public function check_site_maintenance(){ // && $_SERVER['REMOTE_ADDR'] != '127.0.0.1'\n\t\tif(Configure::read('WEBSITE_MAINTENANCE') == 1){\t\t\t\n\t\t\techo file_get_contents(Configure::read('WEBSITE').$this->webroot.'maintenance.php');\n\t\t\tdie;\t\t\n\t\t}\t\t\n\t}",
"function yourls_check_maintenance_mode() {\n\n\t$file = YOURLS_ABSPATH . '/.maintenance' ;\n\tif ( !file_exists( $file ) || yourls_is_upgrading() || yourls_is_installing() )\n\t\treturn;\n\t\n\tglobal $maintenance_start;\n\n\tinclude_once( $file );\n\t// If the $maintenance_start timestamp is older than 10 minutes, don't die.\n\tif ( ( time() - $maintenance_start ) >= 600 )\n\t\treturn;\n\n\t// Use any /user/maintenance.php file\n\tif( file_exists( YOURLS_USERDIR.'/maintenance.php' ) ) {\n\t\tinclude_once( YOURLS_USERDIR.'/maintenance.php' );\n\t\tdie();\n\t}\n\t\n\t// https://www.youtube.com/watch?v=Xw-m4jEY-Ns\n\t$title = yourls__( 'Service temporarily unavailable' );\n\t$message = yourls__( 'Our service is currently undergoing scheduled maintenance.' ) . \"</p>\\n<p>\" .\n\tyourls__( 'Things should not last very long, thank you for your patience and please excuse the inconvenience' );\n\tyourls_die( $message, $title , 503 );\n\n}",
"public function isInMaintenanceMode()\n {\n return $this->isInMaintenance;\n }",
"public function isDownForMaintenance()\n {\n return is_file($this->storagePath() . '/framework/down') || (defined('ABSPATH') && is_file(constant('ABSPATH') . '/.maintenance'));\n }",
"public function isMaintenanceMode(): bool\n {\n return $this->maintenanceMode->isMaintenanceMode();\n }",
"public static function isDownForMaintenance() {\n \n }",
"public static function isEnabled()\n {\n return CONFIG['maintenance_on'];\n }",
"public function isDownForMaintenance()\n {\n }",
"function __2c_wp_maintenance_mode(){\n if(!current_user_can('update_core')){\n wp_die('<h1 style=\"color:red\">Website under Maintenance</h1><br />We are performing scheduled maintenance. We will be back on-line shortly!');\n }\n}",
"function sp_maintenance() {\n\tif ( sp_get_option( 'maintenance_enable', 'is', 'on' ) ) {\n\t\t$ips = array_map( 'trim', explode( \"\\n\", sp_get_option( 'maintenance_ips' ) ) );\n\n\t\tif ( sp_get_option( 'maintenance_redirect_to', 'isset' ) && sp_get_option( 'maintenance_redirect_to', 'is', 'maintenance page' ) ) {\n\t\t\t// if user is logged in and is an admin, don't continue\n\t\t\tif ( is_user_logged_in() && current_user_can( 'manage_options' ) )\n\t\t\t\treturn;\n\t\t\t\n\t\t\t// if page does not exist, don't continue\n\t\t\tif ( is_null( sp_get_page_id_from_slug( 'maintenance' ) ) )\n\t\t\t\treturn;\n\n\t\t\tif ( sp_check_ip( $ips ) == false && ! is_page( 'maintenance' ) ) {\n\t\t\t\t$page_id = get_permalink( sp_get_page_id_from_slug( 'maintenance' ) );\n\t\t\t\tif ( $page_id ) {\n\t\t\t\t\twp_safe_redirect( $page_id ); \n\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\t}\n\t\t} elseif ( sp_get_option( 'maintenance_redirect_to', 'isset' ) && sp_get_option( 'maintenance_redirect_to', 'is', 'url' ) ) {\n\t\t\t// if user is logged in and is an admin, don't continue\n\t\t\tif ( is_user_logged_in() && current_user_can( 'manage_options' ) )\n\t\t\t\treturn;\n\t\t\t\n\t\t\tif ( sp_check_ip( $ips ) == false && ( sp_get_option( 'maintenance_url', 'isset' ) && sp_get_option( 'maintenance_url' ) != '' ) ) {\n\t\t\t\twp_redirect( sp_get_option( 'maintenance_url' ) ); \n\t\t\t\texit; \n\t\t\t}\n\t\t}\n\t}\n}",
"function _checkMaintenance()\n\t{\n\t\tglobal $ilSetting, $ilUser, $rbacsystem;\n\n\t\tif (!$ilSetting->get(\"lang_ext_maintenance\"))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tif ($ilUser->getId())\n\t\t{\n\t\t\t$ref_id = self::_lookupLangFolderRefId();\n\t\t\treturn $rbacsystem->checkAccess(\"read,write\", (int) $ref_id);\n\t\t}\n\t\treturn false;\n\t}",
"function bp_get_maintenance_mode() {\n\t\treturn buddypress()->maintenance_mode;\n\t}",
"public static function MaintenanceStuff() {\n\t\t// Check Bancho maintenance\n\t\tif (checkBanchoMaintenance()) {\n\t\t\tself::BanchoMaintenanceAlert();\n\t\t}\n\t\t// Game maintenance check\n\t\tif (checkGameMaintenance()) {\n\t\t\tself::GameMaintenanceAlert();\n\t\t}\n\t\t// Check website maintenance\n\t\tif (checkWebsiteMaintenance()) {\n\t\t\tself::MaintenanceAlert();\n\t\t}\n\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Operation addBillOfLadingAsyncWithHttpInfo Create a billOfLading | public function addBillOfLadingAsyncWithHttpInfo($body)
{
$returnType = '\Infoplus\Infoplus\Model\BillOfLading';
$request = $this->addBillOfLadingRequest($body);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
->then(
function ($response) use ($returnType) {
$responseBody = $response->getBody();
if ($returnType === '\SplFileObject') {
$content = $responseBody; //stream goes to serializer
} else {
$content = $responseBody->getContents();
if ($returnType !== 'string') {
$content = json_decode($content);
}
}
return [
ObjectSerializer::deserialize($content, $returnType, []),
$response->getStatusCode(),
$response->getHeaders()
];
},
function ($exception) {
$response = $exception->getResponse();
$statusCode = $response->getStatusCode();
throw new ApiException(
sprintf(
'[%d] Error connecting to the API (%s)',
$statusCode,
$exception->getRequest()->getUri()
),
$statusCode,
$response->getHeaders(),
$response->getBody()
);
}
);
} | [
"public function getBillOfLadingByIdAsyncWithHttpInfo($bill_of_lading_id)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\BillOfLading';\n $request = $this->getBillOfLadingByIdRequest($bill_of_lading_id);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }",
"public function updateBillOfLadingAsyncWithHttpInfo($body)\n {\n $returnType = '';\n $request = $this->updateBillOfLadingRequest($body);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n return [null, $response->getStatusCode(), $response->getHeaders()];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }",
"public function addBillOfLadingFileAsync($bill_of_lading_id, $file_name)\n {\n return $this->addBillOfLadingFileAsyncWithHttpInfo($bill_of_lading_id, $file_name)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }",
"public function getBillOfLading($request)\n {\n require_once (dirname(__FILE__) . '/Model/GetBillOfLadingResponse.php');\n return FBAInboundServiceMWS_Model_GetBillOfLadingResponse::fromXML($this->_invoke('GetBillOfLading'));\n }",
"public function getBillOfLadingFilesAsyncWithHttpInfo($bill_of_lading_id)\n {\n $returnType = '';\n $request = $this->getBillOfLadingFilesRequest($bill_of_lading_id);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n return [null, $response->getStatusCode(), $response->getHeaders()];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }",
"public function billsAddRequest($bill, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null)\n {\n // verify the required parameter 'bill' is set\n if ($bill === null || (is_array($bill) && count($bill) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $bill when calling billsAdd'\n );\n }\n\n $resourcePath = '/accounting/bills';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n // query params\n if ($raw !== null) {\n if('form' === 'form' && is_array($raw)) {\n foreach($raw as $key => $value) {\n $queryParams[$key] = $value;\n }\n }\n else {\n $queryParams['raw'] = $raw;\n }\n }\n\n // header params\n if ($x_apideck_consumer_id !== null) {\n $headerParams['x-apideck-consumer-id'] = ObjectSerializer::toHeaderValue($x_apideck_consumer_id);\n }\n // header params\n if ($x_apideck_app_id !== null) {\n $headerParams['x-apideck-app-id'] = ObjectSerializer::toHeaderValue($x_apideck_app_id);\n }\n // header params\n if ($x_apideck_service_id !== null) {\n $headerParams['x-apideck-service-id'] = ObjectSerializer::toHeaderValue($x_apideck_service_id);\n }\n\n\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($bill)) {\n if ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode(ObjectSerializer::sanitizeForSerialization($bill));\n } else {\n $httpBody = $bill;\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue];\n foreach ($formParamValueItems as $formParamValueItem) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValueItem\n ];\n }\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\Query::build($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('Authorization');\n if ($apiKey !== null) {\n $headers['Authorization'] = $apiKey;\n }\n\n $defaultHeaders = $this->config->getDefaultHeaders();\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\Query::build($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }",
"protected function addBillOfLadingFileByURLRequest($body, $bill_of_lading_id)\n {\n // verify the required parameter 'body' is set\n if ($body === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $body when calling addBillOfLadingFileByURL'\n );\n }\n // verify the required parameter 'bill_of_lading_id' is set\n if ($bill_of_lading_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $bill_of_lading_id when calling addBillOfLadingFileByURL'\n );\n }\n\n $resourcePath = '/beta/billOfLading/{billOfLadingId}/file';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($bill_of_lading_id !== null) {\n $resourcePath = str_replace(\n '{' . 'billOfLadingId' . '}',\n ObjectSerializer::toPathValue($bill_of_lading_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n if (isset($body)) {\n $_tempBody = $body;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }",
"public function create(CreateBillRequest $request) {\n\n // Save request data\n $clientName = $request->get('client');\n $useCurrentCampaign = $request->get('use_current_campaign');\n $campaignYear = $request->get('campaign_year');\n $campaignNumber = $request->get('campaign_number');\n\n $client = DB::table('clients')->where('name', $clientName)->where('user_id', Auth::user()->id)->first();\n\n // Create new client if not exists\n if (!$client) {\n $client = new Client();\n $client->user_id = Auth::user()->id;\n $client->name = $clientName;\n $client->save();\n }\n\n // Create new bill\n $bill = new Bill();\n $bill->client_id = $client->id;\n $bill->user_id = Auth::user()->id;\n\n $campaign = Campaigns::current();\n\n // Check if current campaign should be used\n if (!$useCurrentCampaign) {\n $campaign = Campaign::where('year', $campaignYear)->where('number', $campaignNumber)->first();\n }\n\n $bill->campaign_id = $campaign->id;\n $bill->campaign_order = Campaigns::autoDetermineOrderNumber($campaign, $client->id);\n $bill->save();\n\n event(new UserCreatedNewBill(Auth::user()->id, $bill->id));\n\n // Return response\n $response = new AjaxResponse();\n $response->setSuccessMessage(trans('bills.bill_created'));\n\n return response($response->get());\n }",
"public function createLoanAsyncWithHttpInfo($loan)\n {\n $returnType = '\\GateApi\\Model\\Loan';\n $request = $this->createLoanRequest($loan);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }",
"protected function addBillOfLadingAuditRequest($bill_of_lading_id, $bill_of_lading_audit)\n {\n // verify the required parameter 'bill_of_lading_id' is set\n if ($bill_of_lading_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $bill_of_lading_id when calling addBillOfLadingAudit'\n );\n }\n // verify the required parameter 'bill_of_lading_audit' is set\n if ($bill_of_lading_audit === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $bill_of_lading_audit when calling addBillOfLadingAudit'\n );\n }\n\n $resourcePath = '/beta/billOfLading/{billOfLadingId}/audit/{billOfLadingAudit}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($bill_of_lading_id !== null) {\n $resourcePath = str_replace(\n '{' . 'billOfLadingId' . '}',\n ObjectSerializer::toPathValue($bill_of_lading_id),\n $resourcePath\n );\n }\n // path params\n if ($bill_of_lading_audit !== null) {\n $resourcePath = str_replace(\n '{' . 'billOfLadingAudit' . '}',\n ObjectSerializer::toPathValue($bill_of_lading_audit),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'PUT',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }",
"public function ledgerAccountsAddAsyncWithHttpInfo($request_body, $raw = false, $x_apideck_consumer_id = null, $x_apideck_app_id = null, $x_apideck_service_id = null)\n {\n $returnType = '\\Apideck\\Client\\Model\\CreateLedgerAccountResponse';\n $request = $this->ledgerAccountsAddRequest($request_body, $raw, $x_apideck_consumer_id, $x_apideck_app_id, $x_apideck_service_id);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n if ($returnType === '\\SplFileObject') {\n $content = $response->getBody(); //stream goes to serializer\n } else {\n $content = (string) $response->getBody();\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n (string) $response->getBody()\n );\n }\n );\n }",
"public function quotesV2PostAsyncWithHttpInfo($id, $number, $customer_id, $due_date, $quote_date, $created_utc, $approved_date, $currency_code, $status, $currency_rate, $company_reference, $eu_third_party, $customer_reference, $invoice_customer_name, $invoice_address1, $invoice_address2, $invoice_postal_code, $invoice_city, $invoice_country_code, $delivery_customer_name, $delivery_address1, $delivery_address2, $delivery_postal_code, $delivery_city, $delivery_country_code, $delivery_method_name, $delivery_method_code, $delivery_term_code, $delivery_term_name, $customer_is_private_person, $includes_vat, $is_domestic, $rot_reduced_invoicing_type, $rot_property_type, $rot_reduced_invoicing_property_name, $rot_reduced_invoicing_org_number, $rot_reduced_invoicing_amount, $rot_reduced_invoicing_automatic_distribution, $persons, $terms_of_payment, $sales_document_attachments, $rows, $total_amount, $vat_amount, $roundings_amount, $uses_green_technology)\n {\n $returnType = '\\Swagger\\Client\\Model\\QuoteApi';\n $request = $this->quotesV2PostRequest($id, $number, $customer_id, $due_date, $quote_date, $created_utc, $approved_date, $currency_code, $status, $currency_rate, $company_reference, $eu_third_party, $customer_reference, $invoice_customer_name, $invoice_address1, $invoice_address2, $invoice_postal_code, $invoice_city, $invoice_country_code, $delivery_customer_name, $delivery_address1, $delivery_address2, $delivery_postal_code, $delivery_city, $delivery_country_code, $delivery_method_name, $delivery_method_code, $delivery_term_code, $delivery_term_name, $customer_is_private_person, $includes_vat, $is_domestic, $rot_reduced_invoicing_type, $rot_property_type, $rot_reduced_invoicing_property_name, $rot_reduced_invoicing_org_number, $rot_reduced_invoicing_amount, $rot_reduced_invoicing_automatic_distribution, $persons, $terms_of_payment, $sales_document_attachments, $rows, $total_amount, $vat_amount, $roundings_amount, $uses_green_technology);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }",
"public function addAisleAsyncWithHttpInfo($body)\n {\n $returnType = '\\Infoplus\\Infoplus\\Model\\Aisle';\n $request = $this->addAisleRequest($body);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }",
"public function createWireBankLinkUsingPostAsyncWithHttpInfo($request)\n {\n $returnType = '\\com\\hydrogen\\integration\\Model\\WireBankLinkResponseVO';\n $request = $this->createWireBankLinkUsingPostRequest($request);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }",
"public function addBillOfLadingAuditAsync($bill_of_lading_id, $bill_of_lading_audit)\n {\n return $this->addBillOfLadingAuditAsyncWithHttpInfo($bill_of_lading_id, $bill_of_lading_audit)\n ->then(\n function ($response) {\n return $response[0];\n }\n );\n }",
"protected function getBillOfLadingTagsRequest($bill_of_lading_id)\n {\n // verify the required parameter 'bill_of_lading_id' is set\n if ($bill_of_lading_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $bill_of_lading_id when calling getBillOfLadingTags'\n );\n }\n\n $resourcePath = '/beta/billOfLading/{billOfLadingId}/tag';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($bill_of_lading_id !== null) {\n $resourcePath = str_replace(\n '{' . 'billOfLadingId' . '}',\n ObjectSerializer::toPathValue($bill_of_lading_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('API-Key');\n if ($apiKey !== null) {\n $headers['API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }",
"public function createBillExamples() {\n $bills = [\n '23000',\n '25678',\n '345.89'\n ];\n\n foreach ($bills as $u => $b) {\n \\App\\Models\\Backoffice\\Bill::create([\n 'user_id' => $u + 1,\n 'num_tokens' => $b\n ]);\n }\n }",
"public function addBill(Array $params)\n\t{\n\t\tglobal $registry;\n\t\t$thisUser = unserialize($registry->get('session')->read('thisUser'));\n\n\t\t$salesDetails = isset($params['salesDetails']) ? $params['salesDetails'] : json_encode(array());\n\n\t\t#bills\n\t\t$billsInsert = $this->_driver->prepare('CALL sp_insertGuestBill(:date, :guestId, :roomId, :transId, :amt, :billType, :details)');\n\t\tforeach ($params as $key => $value) {\n\t\t\t# code...\n\t\t\tif($key != 'staffId') {\n\t\t\t\tif ( $key != 'salesDetails' ) {\n\t\t\t\t\tif ( $key == 'amt' || $key == 'billType' ) {\n\t\t\t\t\t\t$billsInsert->bindValue(':' . $key, $value, PDO::PARAM_INT);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$billsInsert->bindValue(':' . $key, $value, PDO::PARAM_STR);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$billsInsert->execute();\n\t\t$billsInsert->bindColumn('id', $billsId);\n\t\t$billsInsert->fetch(PDO::FETCH_ASSOC);\n\t\t$billsInsert->closeCursor();\n\n\n\t\t#insert bill into transactions\n\n\t\treturn \\Transaction::addNew(array(\n\t\t\t 'date' => $params['date'],\n\t\t\t 'time' => time() ,\n\t\t\t 'transId' => $params['transId'],\n\t\t\t 'transType' => 1,\n\t\t\t 'src' => json_encode(array('tbl' => 'guestBills', 'id' => $billsId)),\n\t\t\t 'details' => json_encode(array(\n\t\t\t\t\t\t\t\t\t\t\t'type' => 'Guest Bill',\n\t\t\t\t\t\t\t\t\t\t\t'guestId' => $params['guestId'],\n\t\t\t\t\t\t\t\t\t\t\t'desc' => $params['details'],\n\t\t\t\t\t\t\t\t\t\t\t'amt' => $params['amt'],\n\t\t\t \t\t'salesDetails' => $salesDetails\n\t\t\t \t\t)),\n\n\t\t\t\t\t\t\t\t\t'staffId' => isset($params['staffId']) ? $params['staffId'] : $thisUser->id,\n\t\t\t\t\t\t\t\t\t'privilege' => $thisUser->get('activeAcct')\n\t\t\t));\n\n\t}",
"public function articlesV2PostAsyncWithHttpInfo($id, $is_active, $number, $name, $name_english, $net_price, $gross_price, $coding_id, $coding_name, $unit_id, $unit_name, $unit_abbreviation, $stock_balance, $stock_balance_manually_changed_utc, $stock_balance_reserved, $stock_balance_available, $created_utc, $changed_utc, $house_work_type, $purchase_price, $purchase_price_manually_changed_utc, $send_to_webshop, $uses_moss, $article_labels, $is_stock, $stock_location_reference, $freight_costs, $freight_costs_manually_changed_utc, $update_stock_prices, $barcodes, $stock_value, $green_technology_type)\n {\n $returnType = '\\Swagger\\Client\\Model\\ArticleApi';\n $request = $this->articlesV2PostRequest($id, $is_active, $number, $name, $name_english, $net_price, $gross_price, $coding_id, $coding_name, $unit_id, $unit_name, $unit_abbreviation, $stock_balance, $stock_balance_manually_changed_utc, $stock_balance_reserved, $stock_balance_available, $created_utc, $changed_utc, $house_work_type, $purchase_price, $purchase_price_manually_changed_utc, $send_to_webshop, $uses_moss, $article_labels, $is_stock, $stock_location_reference, $freight_costs, $freight_costs_manually_changed_utc, $update_stock_prices, $barcodes, $stock_value, $green_technology_type);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
It is the tag that is listed in RabbitMQ UI as the consumer "name" | private function getConsumerTag(): string
{
return sprintf("%s_%s_%s", $this->aliasName, gethostname(), getmypid());
} | [
"public function ConsumerName()\n {\n return $this->consumer['name'];\n }",
"public function getConsumerName()\n {\n return $this->consumer_name;\n }",
"public function getConsumerName() {\n\t\treturn $this->_getField(self::$CONSUMER_NAME);\n\t}",
"public function getConsumerName()\n {\n return (string)$this->consumerName;\n }",
"public function getConsumerTag()\n {\n return get_class($this);\n }",
"public function getConsumerTag(): ?string\n {\n }",
"public function getConsumerName() {\n return (string) $this->idealConsumerName;\n }",
"function getConsumerByTag ($t) {\n foreach ($this->consumers as $c) {\n if ($c[2] == 'READY' && $c[1] === $t) {\n return $c[0];\n }\n }\n }",
"function getConsumerTags () {\n $tags = array();\n foreach ($this->consumers as $c) {\n if ($c[2] == 'READY') {\n $tags[] = $c[1];\n }\n }\n return $tags;\n }",
"public function getConsumerGroup(): string;",
"public function getConsumer()\n {\n return Mage::registry('current_consumer');\n }",
"public function getConsumerKey(): string\n {\n return $this->consumerKey;\n }",
"public function getConsumerDescription()\n {\n return $this->requirement->getConsumerDescription();\n }",
"public function name()\r\n {\r\n return $this->queueName;\r\n }",
"public function getConsumerId();",
"public function getConsumer()\n {\n return $this->consumer;\n }",
"public function getName ()\r\n\t{\r\n\t\treturn $this->mq->getName();\r\n\t}",
"public static function queue_name() {\n return 'queue';\n }",
"public function getConsumerId()\n {\n return $this->consumerId;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the shipping information for the shipment. | public function getShippingInformation(){
return $this->_getData(self::SHIPPING_INFORMATION);
} | [
"public function getShippingInfo();",
"public function getShippingInformation();",
"public function getShipping() {\n return Mage::getSingleton(\"customer/session\")->getPargoShippingAddress();\n }",
"public function getShippingPackageInfo()\n {\n return $this->shippingPackageInfo;\n }",
"public function getShipping()\n {\n return $this->_fields['Shipping']['FieldValue'];\n }",
"public function getShipping() \n {\n return $this->_fields['Shipping']['FieldValue'];\n }",
"public function getShipping()\n {\n $shipping = $this->shipping->getShipping($this->orderWeight);\n\n return $shipping;\n }",
"public function getShipmentInfo()\n {\n return $this->ShipmentInfo;\n }",
"public function getGeodisShippingInformations() {\n $order_id = $this->getOrder()->getId();\n $shippingCollection = Mage::getModel('geodis_ondemandlogo/shippment')->getCollection()->addFieldToFilter('order_id', $order_id);\n return $shippingCollection->getFirstItem();\n }",
"protected function getShippingInfo() {\n return array(\n \"PreparationTime\" => $this->oPrepare->get('PreparationTime'),\n \"ShippingFeeStandard\" => $this->oPrepare->get('ShippingFeeStandard'),\n \"ShippingFeeTracked\" => $this->oPrepare->get('ShippingFeeTracked'),\n \"ShippingFeeRegistered\" => $this->oPrepare->get('ShippingFeeRegistered'),\n \"ShippingFeeExtraStandard\" => $this->oPrepare->get('ShippingFeeExtraStandard'),\n \"ShippingFeeExtraTracked\" => $this->oPrepare->get('ShippingFeeExtraTracked'),\n \"ShippingFeeExtraRegistered\" => $this->oPrepare->get('ShippingFeeExtraRegistered'),\n );\n }",
"public function getShippingServiceDetails()\n {\n return $this->shippingServiceDetails;\n }",
"public function getShippingDetailsAttribute()\n {\n return $this->getDetails('shipping');\n }",
"public function getShippingPackageDetails()\n {\n return $this->shippingPackageDetails;\n }",
"protected function getCustomerShippingInfo()\n {\n $customerShippingInfo = Mage::getModel(\n 'hipay/api_formatter_info_customerShippingInfoFormatter',\n array(\"paymentMethod\" => $this->_paymentMethod, \"payment\" => $this->_payment)\n );\n\n return $customerShippingInfo->generate();\n }",
"public function getShippingAddress()\n {\n return $this->getAddress('shipping');\n }",
"private function getShippingData()\n {\n if ($this->_checkoutSession->getLastRealOrder()->getIsVirtual()) {\n return $this->getBillingAddress();\n }\n return $this->_checkoutSession->getLastRealOrder()->getShippingAddress();\n }",
"public function getShippingLocationDetails()\n {\n return $this->shippingLocationDetails;\n }",
"private function getShippingData()\n {\n $isOrderVirtual = $this->order->getIsVirtual();\n $orderParams = null;\n\n if ($isOrderVirtual) {\n $orderParams = $this->order->getBillingAddress();\n } else {\n $orderParams = $this->order->getShippingAddress();\n }\n\n return $orderParams->getData();\n }",
"public function getShippingAddress()\r\n {\r\n return $this->client->get('checkout/address/shipping',[]);\r\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the value of livro_isbn | public function getLivroIsbn()
{
return $this->livro_isbn;
} | [
"public function getIsbn_livro()\r\n {\r\n return $this->isbn_livro;\r\n }",
"public function getISBN();",
"public function getIsbn()\n {\n return $this->isbn;\n }",
"public function getISBN()\n {\n return $this->iSBN;\n }",
"public function getIsbn()\n {\n\n return $this->isbn;\n }",
"public function getIsbn() {\n\t\treturn $this->isbn;\n\t}",
"public function getISBN()\n {\n return $this->ISBN;\n }",
"public function getISBN()\n {\n return $this->ISBN;\n }",
"function by_isbn($isbn){\n global $books;\n foreach($books as $book) {\n $book = str_replace('\"', \"\", $book);\n $bookarr = explode(',', $book);\n if($bookarr[5] == $isbn){\n echo $isbn;\n }\n } \n }",
"public function getBookByIsbn(string $isbn)\n {\n $req = $this->getDB()->prepare($this->_getDatasQuery() . ' WHERE l.isbn = ?');\n $req->execute([$isbn]);\n return $req->fetch();\n }",
"private function get_isbn($query) {\n $isbn = str_replace(array(' ', '-'), '', $query);\n if (preg_match('/^(97(8|9))?\\d{9}(\\d|X)$/', $isbn)) {\n return $isbn;\n }\n return FALSE;\n }",
"public function getInrIsbnOrIsbn()\n {\n $isbn = (isset($this->inrIsbn) && ! empty($this->isbn)) ? $this->inrIsbn : $this->isbn;\n\n return $isbn;\n }",
"function bookByIsbn_get(){\n\n $isbn = $this->get('isbn');\n \n if(!$isbn){\n\n $this->response(\"No ISBN specified\", 400);\n\n exit;\n }\n\n $result = $this->book_model->getbookbyisbn( $isbn );\n\n if($result){\n\n $this->response($result, 200); \n\n exit;\n } \n else{\n\n $this->response(\"Invalid ISBN\", 404);\n\n exit;\n }\n }",
"public function getIsbn13()\n\t\t{\n\t\t\tif(is_null($this->data))\n\t\t\t\treturn null;\n\t\t\t\n\t\t\tif(!array_key_exists('identifiers', $this->data) || !array_key_exists('isbn_13', $this->data['identifiers']))\n\t\t\t\treturn null;\n\t\t\t\n\t\t\treturn $this->data['identifiers']['isbn_13'][0];\n\t\t}",
"private function sanitiseISBN($isbn) {\n\t\tpreg_match('/[^\\s]+/', trim($isbn), $match);\n\t\treturn (isset($match[0])) ? $match[0] : null;\n\t}",
"public function getBookByISBN($isbn) {\n\t\t$this->xpp = new \\XMLReader();\n\t\t\n\t\tif ($this->xpp->open('http://books.google.com/books/feeds/volumes?q=' . urlencode($isbn))) {\n\t\t\t$this->moveToEntry();\n\t\t\t\n\t\t\t$found = false;\n\t\t\twhile ($this->xpp->name == \"entry\") {\n\t\t\t\t$book = $this->parseBook();\n\t\t\t\t\n\t\t\t\t// if book is found \n\t\t\t\tif (isset($book['identifier']) &&\n\t\t\t\t\t(strlen($isbn) == 10 && isset($book['identifier']['ISBN']) && $book['identifier']['ISBN'] == $isbn) || // ISBN\n\t\t\t\t\t(strlen($isbn) == 13 && isset($book['identifier']['ISBN2']) && $book['identifier']['ISBN2'] == $isbn)) // ISBN2\n\t\t\t\t{\n\t\t\t\t\t$found = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn (!isset($book) || !$found) ? null : $book;\n\t}",
"public function getBookByISBN($ISBN) {\r\n $stmt = $this->conn->prepare(\"SELECT kbo.* FROM keedo_books kb, keedo_books_own kbo WHERE kbo.ISBN = ? AND kb.ISBN=kbo.ISBN\");\r\n $stmt->bind_param(\"s\",$ISBN);\r\n if ($stmt->execute()) {\r\n $books = $stmt->get_result();\r\n $stmt->close();\r\n return $books;\r\n } else {\r\n return NULL;\r\n }\r\n }",
"public function getCheckDigit() : string\n {\n return $this->isbn[-1];\n }",
"function isbn_to_title($isbn) { \n $html = file_get_contents('http://www.isbnsearch.org/isbn/' . $_GET[\"isbn\"]);\n $a = explode('<div class=\"bookinfo\">', $html);\n $b = explode('<h2>', $a[1]);\n $c = explode('</h2>', $b[1]);\n return $c[0];\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Loads the order data from supplied context and order objects. | public function loadData(Context $context, Order $order)
{
if (!Validate::isLoadedObject($order))
return;
$customer = new Customer((int)$order->id_customer);
// The order reference was introduced in prestashop 1.5 where orders can be split into multiple ones.
$this->order_number = isset($order->reference) ? (string)$order->reference : $order->id;
$this->buyer_info = new TiresiasTaggingOrderBuyer();
$this->buyer_info->loadData($customer);
$this->created_date = Tiresias::helper('date')->format($order->date_add);
$this->purchased_items = $this->findPurchasedItems($context, $order);
$payment_module = Module::getInstanceByName($order->module);
if ($payment_module !== false && isset($payment_module->version))
$this->payment_provider = $order->module.' ['.$payment_module->version.']';
else
$this->payment_provider = $order->module.' [unknown]';
$this->order_status = new TiresiasTaggingOrderStatus();
$this->order_status->loadData($order);
} | [
"private function loadOrder()\n {\n $brqOrderId = $this->getOrderIncrementId();\n\n //Check if the order can receive further status updates\n $this->order->loadByIncrementId((string) $brqOrderId);\n\n if (!$this->order->getId()) {\n $this->logging->addDebug('Order could not be loaded by brq_invoicenumber or brq_ordernumber');\n // try to get order by transaction id on payment.\n $this->order = $this->getOrderByTransactionKey();\n }\n }",
"public function loadData(Order $order)\n {\n $this->setOrderNumber($order->getNumber());\n $this->setCreatedAt($order->getOrderTime());\n $payment = $order->getPayment();\n try {\n $paymentProvider = $payment->getName();\n $paymentPlugin = $payment->getPlugin();\n if ($payment instanceof \\Shopware\\Models\\Payment\\Payment) {\n $paymentProvider = $payment->getName();\n $paymentPlugin = $payment->getPlugin();\n if ($paymentPlugin !== null && $paymentPlugin->getVersion()) {\n $paymentProvider .= sprintf(' [%s]', $paymentPlugin->getVersion());\n }\n } else {\n throw new \\InvalidArgumentException(sprintf(\"Could not determine payment method of order %s\", $order->getNumber()));\n }\n } catch (Exception $e) {\n $paymentProvider = 'unknown';\n /** @noinspection PhpUndefinedMethodInspection */\n Shopware()->Plugins()->Frontend()->NostoTagging()->getLogger()->error($e->getMessage());\n }\n $this->setPaymentProvider($paymentProvider);\n\n $orderStatus = new OrderStatus();\n $orderStatus->loadData($order);\n $this->setOrderStatus($orderStatus);\n\n $buyerInfo = new OrderBuyer();\n $buyerInfo->loadData($order->getCustomer());\n $this->setCustomer($buyerInfo);\n foreach ($order->getDetails() as $detail) {\n /** @var Detail $detail */\n if ($this->includeSpecialLineItems || $detail->getArticleId() > 0) {\n $item = new OrderLineItem();\n $item->loadData($detail);\n $this->addPurchasedItems($item);\n }\n }\n\n if ($this->includeSpecialLineItems) {\n $shippingCost = $order->getInvoiceShipping();\n if ($shippingCost > 0) {\n $item = new OrderLineItem();\n $item->loadSpecialItemData('Shipping cost', $shippingCost, $order->getCurrency());\n $this->addPurchasedItems($item);\n }\n }\n\n Shopware()->Events()->notify(\n __CLASS__ . '_AfterLoad',\n array(\n 'nostoOrder' => $this,\n 'order' => $order\n )\n );\n }",
"public function getOrderContext();",
"protected function _initOrderData()\n\t{\n\t\tif(isset($_SESSION['credit_covers']))\n\t\t{\n\t\t\t$_SESSION['payment'] = ''; //ICW added for CREDIT CLASS\n\t\t}\n\t\t\n\t\t$this->coo_payment = new payment($_SESSION['payment']);\n\t\t\n\t\t// load the selected shipping module\n\t\t$this->coo_shipping = new shipping($_SESSION['shipping']);\n\t\t\n\t\t$GLOBALS['order'] = new order();\n\t\t$this->coo_order = $GLOBALS['order'];\n\t\t\n\t\t// load the before_process function from the payment modules\n\t\t$this->coo_payment->before_process();\n\t\t\n\t\t$GLOBALS['order_total_modules'] = new order_total();\n\t\t$this->coo_order_total = $GLOBALS['order_total_modules'];\n\t\t$this->order_totals_array = $this->coo_order_total->process();\n\t\t$GLOBALS['order_totals'] =& $this->order_totals_array;\n\t\t\n\t\t# PropertiesControl Object\n\t\t$this->coo_properties = MainFactory::create_object('PropertiesControl');\n\t\t\n\t\t// check if tmp order id exists\n\t\tif(isset($_SESSION['tmp_oID']) && is_int($_SESSION['tmp_oID']))\n\t\t{\n\t\t\t$GLOBALS['tmp'] = false;\n\t\t\t$this->tmp_order =& $GLOBALS['tmp'];\n\t\t\t$GLOBALS['insert_id'] = $_SESSION['tmp_oID'];\n\t\t\t$this->order_id = $GLOBALS['insert_id'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// check if tmp order need to be created\n\t\t\t//if (isset ($GLOBALS[$_SESSION['payment']]->form_action_url) && $GLOBALS[$_SESSION['payment']]->tmpOrders) {\n\t\t\tif($GLOBALS[$_SESSION['payment']]->tmpOrders == true)\n\t\t\t{\n\t\t\t\t$GLOBALS['tmp'] = true;\n\t\t\t\t$this->tmp_order =& $GLOBALS['tmp'];\n\t\t\t\t$this->tmp_status = $GLOBALS[$_SESSION['payment']]->tmpStatus;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$GLOBALS['tmp'] = false;\n\t\t\t\t$this->tmp_order =& $GLOBALS['tmp'];\n\t\t\t\t$this->tmp_status = $this->coo_order->info['order_status'];\n\t\t\t}\n\t\t\t\n\t\t\t$this->_setCCNumber();\n\t\t\t$this->_setComments();\n\t\t}\n\t\t\n\t\t/** @var OrderWriteService */\n\t\t$this->orderWriteService = StaticGXCoreLoader::getService('OrderWrite');\n\t}",
"public function loadOnOrder(Order $order)\n {\n foreach ($order->getItems() as $item) {\n $this->loadOnOrderItem($item);\n }\n\n if (!$this->moduleManager->isEnabled('Magento_GiftWrapping')) {\n return;\n }\n\n /** @var OrderExtensionInterface $extensionAttributes */\n $extensionAttributes = $order->getExtensionAttributes() ?: $this->orderExtensionFactory->create();\n $extensionAttributes->setGwBasePrice($order->getData('gw_base_price'));\n $extensionAttributes->setGwCardBasePrice($order->getData('gw_card_base_price'));\n $extensionAttributes->setGwItemsBasePrice($order->getData('gw_items_base_price'));\n\n $order->setExtensionAttributes($extensionAttributes);\n }",
"public function loadData(Order $order)\n\t{\n\t\t// We prefer to use the English state name for the status code, as we use it as an unique identifier of that\n\t\t// particular order status. The status label will primarily be in the language of the order.\n\t\t$id_lang = (int)Language::getIdByIso('en');\n\t\tif (empty($id_lang))\n\t\t\t$id_lang = (int)$order->id_lang;\n\n\t\t$state = $order->getCurrentStateFull($id_lang);\n\t\tif (!empty($state['name']))\n\t\t{\n\t\t\t$state_name = $state['name'];\n\t\t\t$this->code = $this->convertNameToCode($state_name);\n\t\t\tif ($id_lang !== (int)$order->id_lang)\n\t\t\t{\n\t\t\t\t$state = $order->getCurrentStateFull((int)$order->id_lang);\n\t\t\t\tif (!empty($state['name']))\n\t\t\t\t\t$state_name = $state['name'];\n\t\t\t}\n\t\t\t$this->label = $state_name;\n\t\t}\n\t}",
"public function prepareForStorage($orderData);",
"public function loadByContext(Context $context);",
"function LoadOrders()\n{\n\t$orders;\n\t\tglobal $wpdb;\n\t\t$tablename= $wpdb->prefix.\"orders\";\n\t\t$orderq = $wpdb->get_results(\"\n\t\t\t\t\t\t\t\t\tSELECT id, Organizationfull, Organizationshort, FIOdir, Positiondir, Reasondir, Phonedir,FIOcont,Positioncont,Phonecont,Email,INN,KPP,OGRN,Schet,Korrschet,BIK,Bankname,Addrlegal,Addrfact,Comment\n\t\t\t\t\t\t\t\t\tFROM $tablename\n\t\t\t\t\t\t\t\t\t\");\n\n\t\tforeach ( $orderq as $orderqi ) // 'i' means instance\n\t\t{\n\t\t$OrderI = new Order();\n\t\t\t//echo $orderqi->organization;\n\t\t\t\n\t\t\t$OrderI->setOrganizationfull($orderqi->Organizationfull);\n\t\t\t$OrderI->setOrganizationshort($orderqi->Organizationshort);\n\t\t\t$OrderI->setFIOdir($orderqi->FIOdir);\n\t\t\t$OrderI->setPositiondir($orderqi->Positiondir);\n\t\t\t$OrderI->setReasondir($orderqi->Reasondir);\n\t\t\t$OrderI->setPhonedir($orderqi->Phonedir);\n\t\t\t$OrderI->setFIOcont($orderqi->FIOcont);\n\t\t\t$OrderI->setPositioncont($orderqi->Positioncont);\n\t\t\t$OrderI->setPhonecont($orderqi->Phonecont);\n\t\t\t$OrderI->setEmail($orderqi->Email);\n\t\t\t$OrderI->setINN($orderqi->INN);\n\t\t\t$OrderI->setKPP($orderqi->KPP);\n\t\t\t$OrderI->setOGRN($orderqi->OGRN);\n\t\t\t$OrderI->setSchet($orderqi->Schet);\n\t\t\t$OrderI->setKorrschet($orderqi->Korrschet);\n\t\t\t$OrderI->setBIK($orderqi->BIK);\n\t\t\t$OrderI->setBankname($orderqi->Bankname);\n\t\t\t$OrderI->setAddrlegal($orderqi->Addrlegal);\n\t\t\t$OrderI->setAddrfact($orderqi->Addrfact);\n\t\t\t$OrderI->setComment($orderqi->Comment);\n\t\t\t$order_id=$orderqi->id;\n\t\t\t\n\t\t\t$tablenameitem= $wpdb->prefix.\"items\";\n\t\t\t$itemsr = $wpdb->get_results(\"\n\t\t\t\t\t\t\t\t\t\tSELECT name, quantity\n\t\t\t\t\t\t\t\t\t\tFROM $tablenameitem\n\t\t\t\t\t\t\t\t\t\tWHERE order_id=$order_id\n\t\t\t\t\t\t\t\t\t\t\");\n\t\t\t\tforeach ( $itemsr as $itemsri ) // 'i' means instance\n\t\t\t\t{\t\n\t\t\t\t$citem=new item(); //'c' meand current\n\t\t\t\t$citem->setProduct($itemsri->name);\n\t\t\t\t$citem->setQuantity($itemsri->quantity);\n\t\t\t\t$OrderI->items[]=$citem;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t$orders[]=$OrderI;\n\t\t}\n\t\t//print_r($orders);\t\n\t\treturn $orders;\n}",
"function load_by_order_id($order_id) {\n\t\t$this->load_query(ORDER_TAX_DETAIL_SQL_LOAD_BY_ORDER_ID, array($order_id), false);\n\t}",
"private function readOrders() {\n $this->xmldas = SDO_DAS_XML::create(\"./Orders.xsd\");\n $this->doc = $this->xmldas->loadFile(\"./Orders.xml\");\n $this->orders = $this->doc->getRootDataObject();\n }",
"protected function setUpOrderData()\n {\n $country = SpyCountryQuery::create()->findOneByIso2Code('DE');\n $billingAddress = new SpySalesOrderAddress();\n $billingAddress->fromArray($this->getAddressTransfer('billing')->toArray());\n $billingAddress->setFkCountry($country->getIdCountry())->save();\n\n $shippingAddress = new SpySalesOrderAddress();\n $shippingAddress->fromArray($this->getAddressTransfer('shipping')->toArray());\n $shippingAddress->setFkCountry($country->getIdCountry())->save();\n\n $customer = (new SpyCustomerQuery())\n ->filterByFirstName('John')\n ->filterByLastName('Doe')\n ->filterByEmail('john@doe.com')\n ->filterByDateOfBirth('1970-01-01')\n ->filterByGender(SpyCustomerTableMap::COL_GENDER_MALE)\n ->filterByCustomerReference('test')\n ->findOneOrCreate();\n $customer->save();\n\n $this->orderEntity = (new SpySalesOrder())\n ->setEmail('john@doe.com')\n ->setOrderReference('TEST--1')\n ->setFkSalesOrderAddressBilling($billingAddress->getIdSalesOrderAddress())\n ->setFkSalesOrderAddressShipping($shippingAddress->getIdSalesOrderAddress())\n ->setCustomer($customer);\n\n $this->orderEntity->save();\n\n $stateEntity = $this->createOrderItemStateEntity();\n $processEntity = $this->createOrderProcessEntity();\n\n $orderItemEntity = (new SpySalesOrderItem())\n ->setFkSalesOrder($this->orderEntity->getIdSalesOrder())\n ->setFkOmsOrderItemState($stateEntity->getIdOmsOrderItemState())\n ->setFkOmsOrderProcess($processEntity->getIdOmsOrderProcess())\n ->setName('test product')\n ->setSku('1324354657687980')\n ->setGrossPrice(1000)\n ->setQuantity(1);\n $orderItemEntity->save();\n }",
"private function _setOrderDataArray()\n {\n foreach ($this->orderCollection->getItems() as $order){\n $this->_prepareOrderStatusArray($order);\n $this->_prepareOrderPaymentArray($order);\n\n $this->_prepareOrderTrackingArray($order);\n $this->_prepareOrderProductsArray($order);\n }\n }",
"function ciniki_poma_web_orderLoad(&$ciniki, $settings, $tnid, $args) {\n\n //\n // Check to make sure the module is enabled\n //\n if( !isset($ciniki['tenant']['modules']['ciniki.poma']) ) {\n return array('stat'=>'ok');\n }\n\n //\n // Load tenant settings\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'tenants', 'private', 'intlSettings');\n $rc = ciniki_tenants_intlSettings($ciniki, $tnid);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $intl_timezone = $rc['settings']['intl-default-timezone'];\n\n //\n // Get the order information\n //\n $strsql = \"SELECT ciniki_poma_orders.id, \"\n . \"ciniki_poma_orders.status, \"\n . \"ciniki_poma_orders.payment_status, \"\n . \"ciniki_poma_orders.pickup_time, \"\n . \"ciniki_poma_orders.date_id, \"\n . \"ciniki_poma_orders.order_date, \"\n . \"ciniki_poma_orders.subtotal_amount, \"\n . \"ciniki_poma_orders.total_amount, \"\n . \"ciniki_poma_orders.customer_notes, \"\n . \"ciniki_poma_orders.order_notes \"\n . \"FROM ciniki_poma_orders \"\n . \"WHERE ciniki_poma_orders.customer_id = '\" . ciniki_core_dbQuote($ciniki, $ciniki['session']['customer']['id']) . \"' \"\n . \"AND ciniki_poma_orders.tnid = '\" . ciniki_core_dbQuote($ciniki, $tnid) . \"' \"\n . \"\";\n if( isset($args['date_id']) && $args['date_id'] > 0 ) {\n $strsql .= \"AND ciniki_poma_orders.date_id = '\" . ciniki_core_dbQuote($ciniki, $args['date_id']) . \"' \";\n } elseif( isset($args['order_id']) && $args['order_id'] > 0 ) {\n $strsql .= \"AND ciniki_poma_orders.id = '\" . ciniki_core_dbQuote($ciniki, $args['order_id']) . \"' \";\n } else {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.poma.49', 'msg'=>\"No order specified.\"));\n }\n $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.poma', 'order');\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n } \n if( !isset($rc['order']) ) {\n //\n // If a date was specified, setup a default order\n //\n if( isset($args['date_id']) && $args['date_id'] > 0 ) {\n $strsql = \"SELECT ciniki_poma_order_dates.id, \"\n . \"ciniki_poma_order_dates.status, \"\n . \"ciniki_poma_order_dates.order_date, \"\n . \"ciniki_poma_order_dates.display_name \"\n . \"FROM ciniki_poma_order_dates \"\n . \"WHERE ciniki_poma_order_dates.id = '\" . ciniki_core_dbQuote($ciniki, $args['date_id']) . \"' \"\n . \"AND ciniki_poma_order_dates.tnid = '\" . ciniki_core_dbQuote($ciniki, $tnid) . \"' \"\n . \"\";\n $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.poma', 'date');\n if( $rc['stat'] != 'ok' ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.poma.51', 'msg'=>\"Oops, we seem to have trouble loading your order. Please try again or contact us for help.\"));\n }\n if( !isset($rc['date']) ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.poma.52', 'msg'=>\"Oops, we seem to have trouble loading your order. Please try again or contact us for help.\"));\n }\n $odate = $rc['date'];\n $order = array(\n 'id'=>0,\n 'order_number'=>'New Order',\n 'order_date'=>$odate['order_date'],\n 'order_date_status'=>$odate['status'],\n 'status'=>10,\n 'payment_status'=>0,\n 'flags'=>0,\n 'subtotal_amount'=>0,\n 'subtotal_discount_amount'=>0,\n 'subtotal_discount_percentage'=>0,\n 'total_amount'=>0,\n 'total_savings'=>0,\n 'paid_amount'=>0,\n 'balance_amount'=>0,\n 'customer_notes'=>'',\n 'order_notes'=>'',\n 'items'=>array(),\n );\n } else {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.poma.50', 'msg'=>\"Oops, we seem to have trouble loading your order. Please try again or contact us for help.\"));\n }\n } else {\n $order = $rc['order'];\n //\n // Get the order date\n //\n if( $order['date_id'] > 0 ) {\n $strsql = \"SELECT ciniki_poma_order_dates.id, \"\n . \"ciniki_poma_order_dates.status, \"\n . \"ciniki_poma_order_dates.order_date, \"\n . \"ciniki_poma_order_dates.display_name \"\n . \"FROM ciniki_poma_order_dates \"\n . \"WHERE ciniki_poma_order_dates.id = '\" . ciniki_core_dbQuote($ciniki, $order['date_id']) . \"' \"\n . \"AND ciniki_poma_order_dates.tnid = '\" . ciniki_core_dbQuote($ciniki, $tnid) . \"' \"\n . \"\";\n $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.poma', 'date');\n if( $rc['stat'] != 'ok' ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.poma.118', 'msg'=>\"Oops, we seem to have trouble loading your order. Please try again or contact us for help.\"));\n }\n if( !isset($rc['date']) ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.poma.228', 'msg'=>\"Oops, we seem to have trouble loading your order. Please try again or contact us for help.\"));\n }\n $odate = $rc['date'];\n $order['order_date_status'] = $odate['status'];\n }\n\n //\n // FIXME: Add query to get taxes\n //\n }\n $dt = new DateTime($order['order_date'] . ' 12:00:00', new DateTimezone($intl_timezone));\n $order['order_date_text'] = $dt->format('M j, Y');\n $order['total_text'] = '$' . number_format($order['total_amount'], 2, '.', ',');\n \n //\n // Check if order can be edited by customer\n //\n if( $order['status'] == 10 ) {\n $order['editable'] = 'yes';\n }\n\n //\n // Get any order items for the date\n //\n $strsql = \"SELECT \"\n . \"ciniki_poma_order_items.id, \"\n . \"ciniki_poma_order_items.uuid, \"\n . \"ciniki_poma_order_items.parent_id, \"\n . \"ciniki_poma_order_items.line_number, \"\n . \"ciniki_poma_order_items.object, \"\n . \"ciniki_poma_order_items.object_id, \"\n . \"ciniki_poma_order_items.code, \"\n . \"ciniki_poma_order_items.description, \"\n . \"ciniki_poma_order_items.flags, \"\n . \"ciniki_poma_order_items.itype, \"\n . \"ciniki_poma_order_items.weight_units, \"\n . \"ciniki_poma_order_items.weight_quantity, \"\n . \"ciniki_poma_order_items.unit_quantity, \"\n . \"ciniki_poma_order_items.unit_suffix, \"\n . \"ciniki_poma_order_items.unit_amount, \"\n . \"ciniki_poma_order_items.unit_discount_amount, \"\n . \"ciniki_poma_order_items.unit_discount_percentage, \"\n . \"ciniki_poma_order_items.cdeposit_description, \"\n . \"ciniki_poma_order_items.cdeposit_amount, \"\n . \"ciniki_poma_order_items.deposited_amount, \"\n . \"ciniki_poma_order_items.subtotal_amount, \"\n . \"ciniki_poma_order_items.discount_amount, \"\n . \"ciniki_poma_order_items.total_amount, \"\n . \"ciniki_poma_order_items.taxtype_id, \"\n . \"IFNULL(taxtypes.name, '') AS taxtype_name \"\n . \"FROM ciniki_poma_order_items \"\n . \"LEFT JOIN ciniki_tax_types AS taxtypes ON (\"\n . \"ciniki_poma_order_items.taxtype_id = taxtypes.id \"\n . \"AND taxtypes.tnid = '\" . ciniki_core_dbQuote($ciniki, $tnid) . \"' \"\n . \") \"\n . \"WHERE ciniki_poma_order_items.order_id = '\" . ciniki_core_dbQuote($ciniki, $order['id']) . \"' \"\n . \"AND ciniki_poma_order_items.tnid = '\" . ciniki_core_dbQuote($ciniki, $tnid) . \"' \"\n// . \"AND ciniki_poma_order_items.parent_id = 0 \" // Don't load child items, they are only used for product baskets in foodmarket\n . \"ORDER BY parent_id, line_number, description \"\n . \"\";\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbHashQueryIDTree');\n $rc = ciniki_core_dbHashQueryIDTree($ciniki, $strsql, 'ciniki.poma', array(\n array('container'=>'items', 'fname'=>'id', \n 'fields'=>array('id', 'parent_id', 'line_number', 'object', 'object_id', 'code', 'description', \n 'flags', 'itype', 'weight_units', 'weight_quantity', 'unit_quantity', 'unit_suffix', 'cdeposit_description', 'cdeposit_amount', 'deposited_amount',\n 'unit_amount', 'unit_discount_amount', 'unit_discount_percentage', 'subtotal_amount', 'discount_amount', 'total_amount', \n 'taxtype_id', 'taxtype_name')),\n ));\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n if( isset($rc['items']) ) {\n $order['items'] = $rc['items'];\n ciniki_core_loadMethod($ciniki, 'ciniki', 'poma', 'web', 'orderItemFormat');\n foreach($order['items'] as $iid => $item) {\n/* //\n // Check if limited quantity and lookup \n //\n if( isset($item['flags']) && ($item['flags']&0x0800) == 0x0800 && $item['object'] != '') {\n list($pkg, $mod, $obj) = explode('.', $item['object']);\n $rc = ciniki_core_loadMethod($ciniki, $pkg, $mod, 'poma', 'itemLookup');\n if( $rc['stat'] != 'ok' ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.poma.185', 'msg'=>'Unable to find item.'));\n }\n $fn = $rc['function_call'];\n $rc = $fn($ciniki, $tnid, array('object'=>$item['object'], 'object_id'=>$item['object_id']));\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n if( !isset($rc['item']) ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.poma.195', 'msg'=>'Unable to find order item.'));\n }\n $o_item = $rc['item'];\n $item['inventory'] = $rc['item']['inventory'];\n $item['num_ordered'] = $rc['item']['num_ordered'];\n $item['num_available'] = $rc['item']['num_available'];\n } */\n\n $rc = ciniki_poma_web_orderItemFormat($ciniki, $settings, $tnid, $item);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $order['items'][$iid] = $rc['item'];\n\n if( ($order['items'][$iid]['flags']&0x02) == 0x02 && $order['order_date_status'] == 30 ) {\n $order['items'][$iid]['substitutions'] = 'yes';\n }\n if( $order['order_date_status'] < 50 ) {\n $order['items'][$iid]['modifications'] = 'yes';\n } else {\n $order['items'][$iid]['modifications'] = 'no';\n }\n if( ($order['items'][$iid]['flags']&0x20) == 0x20 ) {\n $order['items'][$iid]['modifications'] = 'no';\n }\n if( isset($item['parent_id']) && $item['parent_id'] > 0 && isset($order['items'][$item['parent_id']]) ) {\n if( !isset($order['items'][$item['parent_id']]['subitems']) ) {\n $order['items'][$item['parent_id']]['subitems'] = array();\n }\n $order['items'][$item['parent_id']]['subitems'][$iid] = $order['items'][$iid];\n unset($order['items'][$iid]);\n }\n\n/* //\n // Setup discount text (taken from private/formatItems.php)\n //\n $order['items'][$iid]['discount_text'] = '';\n if( $order['items'][$iid]['discount_amount'] > 0 ) {\n if( $order['items'][$iid]['unit_discount_amount'] > 0 ) {\n if( $order['items'][$iid]['quantity'] != 1 ) {\n $order['items'][$iid]['discount_text'] .= '-$' . number_format($order['items'][$iid]['unit_discount_amount'], 2) . 'x' . $order['items'][$iid]['quantity'];\n } else {\n if( $order['items'][$iid]['unit_discount_percentage'] > 0 ) {\n $order['items'][$iid]['discount_text'] .= '-$' . number_format($order['items'][$iid]['unit_discount_amount'], 2);\n }\n }\n }\n if( $order['items'][$iid]['unit_discount_percentage'] > 0 ) {\n $order['items'][$iid]['discount_text'] .= ($order['items'][$iid]['discount_text'] != '' ? ', ' : '')\n . (float)$order['items'][$iid]['unit_discount_percentage'] . '%';\n }\n $order['items'][$iid]['discount_text'] .= ' (-$' . number_format($order['items'][$iid]['discount_amount'], 2) . ')';\n }\n $order['items'][$iid]['deposit_text'] = '';\n if( ($order['items'][$iid]['flags']&0x80) == 0x80 && $order['items'][$iid]['cdeposit_amount'] > 0 ) {\n $order['items'][$iid]['deposit_text'] = $order['items'][$iid]['cdeposit_description'];\n $order['items'][$iid]['deposit_text'] .= ($order['items'][$iid]['deposit_text'] != '' ? ': ' : '')\n . '$' . number_format(bcmul($order['items'][$iid]['quantity'], $order['items'][$iid]['cdeposit_amount'], 2), 2);\n } */\n }\n } else {\n $order['items'] = array();\n }\n uasort($order['items'], function($a, $b) {\n if( $a['line_number'] == $b['line_number'] ) {\n return 0;\n }\n return $a['line_number'] < $b['line_number'] ? -1 : 1;\n });\n\n // \n // Get the taxes\n //\n $strsql = \"SELECT id, \" \n . \"line_number, \"\n . \"description, \"\n . \"ROUND(amount, 2) AS amount \"\n . \"FROM ciniki_poma_order_taxes \"\n . \"WHERE ciniki_poma_order_taxes.order_id = '\" . ciniki_core_dbQuote($ciniki, $order['id']) . \"' \"\n . \"AND ciniki_poma_order_taxes.tnid = '\" . ciniki_core_dbQuote($ciniki, $tnid) . \"' \"\n . \"ORDER BY line_number, date_added \"\n . \"\";\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbHashQueryTree');\n $rc = ciniki_core_dbHashQueryIDTree($ciniki, $strsql, 'ciniki.poma', array(\n array('container'=>'taxes', 'fname'=>'id', 'name'=>'tax',\n 'fields'=>array('id', 'line_number', 'description', 'amount')),\n ));\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n if( !isset($rc['taxes']) ) {\n $order['taxes'] = array();\n $order['taxes_amount'] = 0;\n } else {\n $order['taxes'] = $rc['taxes'];\n $order['taxes_amount'] = 0;\n foreach($rc['taxes'] as $tid => $tax) {\n if( $tax['amount'] > 0 ) {\n $order['taxes_amount'] = bcadd($order['taxes_amount'], $tax['amount'], 2);\n } \n }\n }\n\n return array('stat'=>'ok', 'order'=>$order);\n}",
"public function loadByOrderId($id)\n {\n $this->load($id, 'order_id');\n }",
"function loadItemsInOrders($db2, &$orderList) {\n\t\tif (!$orderList)\n\t\t\treturn;\n\t\tforeach($orderList as &$order) {\n\t\t\t$orderedItems = runDb2SelectQuery($db2,\n\t\t\t\"SELECT * FROM ORDER_ITEMS INNER JOIN ITEMS ON ORDER_ITEMS.SKU=ITEMS.SKU WHERE ORDERNBR = ?\", array($order['ordernbr']));\n\t\t\t$order['items'] = $orderedItems;\n\t\t\terror_log(print_r($order, true));\n\t\t}\n\t}",
"function loadOrders($status)\n\t{\n\t\t$do = new DobaOrders();\n\t\t$orders = array();\n\t\t$sql = 'select \n\t\t\t\t\t' . TABLE_ORDERS . '.orders_id as ponumber, \n\t\t\t\t\t' . TABLE_ORDERS . '.delivery_name as name,\n\t\t\t\t\t' . TABLE_ORDERS . '.delivery_street_address as address1,\n\t\t\t\t\t' . TABLE_ORDERS . '.delivery_city as city,\n\t\t\t\t\t' . TABLE_ORDERS . '.delivery_state as state,\n\t\t\t\t\t' . TABLE_ORDERS . '.delivery_postcode as postal,\n\t\t\t\t\t' . TABLE_ORDERS . '.delivery_country as country,\n\t\t\t\t\t' . TABLE_ORDERS_PRODUCTS . '.products_id as item_id,\n\t\t\t\t\t' . TABLE_ORDERS_PRODUCTS . '.products_quantity as quantity,\n\t\t\t\t\t' . TABLE_ORDERS_PRODUCTS . '.final_price as max_expected_total,\n\t\t\t\t\tDobaLog.doba_log_id,\n\t\t\t\t\tDobaLog.api_response\n\t\t\t\tfrom \n\t\t\t\t\t' . TABLE_ORDERS . '\n\t\t\t\t\tjoin ' . TABLE_ORDERS_PRODUCTS . ' on ' . TABLE_ORDERS_PRODUCTS . '.orders_id=' . TABLE_ORDERS . '.orders_id \n\t\t\t\t\tleft join DobaLog on DobaLog.local_id=' . TABLE_ORDERS . '.orders_id and DobaLog.datatype=\"order\"';\n\t\tif ($status == 'new') {\n\t\t\t$sql .= ' where DobaLog.doba_log_id is NULL';\n\t\t} else if ($status == 'submitted') {\n\t\t\t$sql .= ' where DobaLog.api_response is not NULL';\n\t\t} else if ($status == 'unsubmitted') {\n\t\t\t$sql .= ' where DobaLog.api_response is NULL';\n\t\t}\n \t\t$orders_query = tep_db_query($sql);\n \t\twhile ($o = tep_db_fetch_array($orders_query)) {\n \t\t\t$i = new DobaOrderInfo();\n\t\t\t$i->po_number($o['ponumber']);\n\t\t\t$name = $i->name_to_parts($o['name']);\n\t\t\t$i->first_name($name['FirstName']);\n\t\t\t$i->last_name($name['LastName']);\n\t\t\t$i->address1($o['address1']);\n\t\t\t$i->city($o['city']);\n\t\t\t$i->state($o['state']);\n\t\t\t$i->postal($o['postal']);\n\t\t\t$i->country($o['country']);\n\t\t\t$i->item_id($o['item_id']);\n\t\t\t$i->quantity($o['quantity']);\n\t\t\t$i->max_expected_total($o['max_expected_total']);\n\t\t\t$do->addOrder($i);\n \t\t}\n\t\t\t\n\t\treturn $do;\n\t}",
"private function updateOrderData()\n {\n $sign = $this->connector->signRequestKid(\n null,\n $this->connector->accountURL,\n $this->orderURL\n );\n\n $post = $this->connector->post($this->orderURL, $sign);\n if (strpos($post['header'], \"200 OK\") !== false) {\n $this->status = $post['body']['status'];\n $this->expires = $post['body']['expires'];\n $this->identifiers = $post['body']['identifiers'];\n $this->authorizationURLs = $post['body']['authorizations'];\n $this->finalizeURL = $post['body']['finalize'];\n if (array_key_exists('certificate', $post['body'])) {\n $this->certificateURL = $post['body']['certificate'];\n }\n $this->updateAuthorizations();\n } else {\n //@codeCoverageIgnoreStart\n $this->log->error(\"Failed to fetch order for {$this->basename}\");\n //@codeCoverageIgnoreEnd\n }\n }",
"protected function getOrderData($order)\n {\n $createdAt = date('dmY H:i:s');\n $paht = $fdpAchatHT = 0;\n if ($order->getCreatedAt()) {\n $createdAt = date('dmY H:i:s', strtotime($order->getCreatedAt()));\n }\n $taxeRate = $this->taxCalculation->getCalculatedRate(\n $order->getItemsCollection()->getFirstItem()->getProduct()->getTaxClassId(),\n $order->getCustomerId(),\n $order->getStoreId()\n );\n $productTypesFilter = [\n \\Magento\\Catalog\\Model\\Product\\Type::TYPE_SIMPLE,\n \\Magento\\Catalog\\Model\\Product\\Type::TYPE_VIRTUAL,\n ];\n foreach ($order->getItemsCollection($productTypesFilter) as $item) {\n $paht += $item->getProduct()->getCost() * $item->getQtyOrdered();\n $fdpAchatHT += $item->getProduct()->getPortpaht();\n }\n $orderData = [\n 'numero' => $order->getIncrementId(),\n 'id' => $order->getId(),\n 'statut' => $order->getStatus(),\n 'dateCreation' => $createdAt,\n 'paHT' => $paht,\n 'pBTTC' => $this->getItemsTotalCost($order),\n 'pNTTC' => $order->getGrandTotal(),\n 'coeffTva' => $taxeRate / 100,\n 'fdpAchatHT' => $fdpAchatHT,\n 'fdpTTC' => $order->getShippingAmount(),\n 'sellerId' => $order->getSellerId(),\n 'quoteId' => $order->getQuotationIncrementId(),\n ];\n $comData = ['message' => null];\n $orderData['commentaires'] = $comData;\n $promotionData = $this->getPromotionDataForOrder($order);\n $orderData['promotions'] = $promotionData;\n\n return $orderData;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test Requested Attributes With Id | public function testRequestedAttributesWithId() {
$this->Query->Controller->request
->expects($this->any())
->method('query')
->with('attributes')
->will($this->returnValue('att1,att2,id'));
$results = $this->Query->requestedAttributes();
$this->assertEquals(array('att1', 'att2', 'id'), $results);
} | [
"public function findAttributesById($id, $dynamic);",
"public function testInventoryAttributeValueGETRequestInventoryIDAttributeGroupsAttributeGroupIDAttributeValuesAttributeIDGet()\n {\n }",
"public function test_id() {\n\t\t$reflected = self::get_method('id');\n\t\t$form = new Form();\n\n\t\t$this->assertEquals('test_id_1', $reflected->invokeArgs($form, array('test', array('id' => 'test_id_1'))));\n\n\t\t$label1 = '<label for=\"test_name\">Test Value</label>'.PHP_EOL;\n\t\t$this->assertEquals($label1, Form::label('test_name', 'Test Value', array()));\n\t\t$this->assertEquals('test_name', $reflected->invokeArgs($form, array('test_name', array('class' => 'test_class'))));\n\t}",
"public function getAttributeId();",
"public function testAssertIdProperty(): void\n {\n $this->assertIdProperty(Account::class, 'accountId');\n }",
"public function get_attraction($id);",
"public function testGettingId()\n {\n $this->assertEquals(1, $this->membership->getId());\n }",
"public function testGetId()\n {\n $this->assertEquals(2, $this->alignment->getId());\n }",
"public function testGetAttribute()\n {\n $this->assertEquals(array('count'=>1, 'Bieber'), $this->object->getAttribute('bbieber2', 'sn'));\n }",
"public function testgetIdAcceso() {\n\n $this->assertEquals($this->object->getId(), $this->object->getIdAcceso());\n\n }",
"public function testAttributeGet()\r\n {\r\n\r\n }",
"function testGetId()\n {\n echo 'Test GetAmount' . \"\\n\";\n $user = self::getUser('teamowner@team.com');\n $activity = $user->getStairsActivities();\n $this->assertEquals($activity[0]->getId(), 11);\n }",
"public function testAfasAssignedIdField()\n {\n // Check setting object with only an ID. Should not yield errors.\n $element = [[]];\n // An update action should not work without an ID.\n $object = UpdateObject::create('FbSalesLines', $element, 'update');\n $this->expectException(UnexpectedValueException::class);\n $this->expectExceptionMessage(\"'GuLi' (guid) field must have a value, or Action 'update' must be set to 'insert'.\");\n $object->getElements(UpdateObject::DEFAULT_CHANGE, UpdateObject::DEFAULT_VALIDATION);\n }",
"public function testGetId()\n {\n $id = $this->message->getId();\n\n $this->assertContains(gettype($id), ['string', 'integer']);\n }",
"public function testInventoryAttributeGroupTemplateAttributeGETRequestAttributeGroupTemplatesAttributeGroupTemplateIDAttributesTemplateAttributeIDGet()\n {\n }",
"public function testValidateIDProperty()\n {\n $json = '{\"0\": [{\"id\": \"try\", \"title\": \"House\", \"level\": 0, \"children\": [], \"parent_id\": null}]}';\n $response = $this->getJson('/api/v1/json/' . $json);\n $response->assertStatus(Response::HTTP_UNPROCESSABLE_ENTITY)->assertJson([\n 'success' => false,\n 'message' => 'Invalid ID value',\n ]);\n }",
"public function testThatWeCanGetTheId()\n {\n $ads = new Categories;\n \n $ads->setId('1');\n \n \n //$this->assertEquals($ads->getId(), '1');\n $this->assertEquals(1 , preg_match( '/^[0-9]+$/', $ads->getId() ), $ads->getId() . ' is not a set of digits' );\n\n\n }",
"public function testGetId(): void\n {\n $this->class->setId($this->value);\n\n self::assertSame($this->value, $this->class->getId());\n }",
"public function testDynamicDataIdExistsGet()\n {\n\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find client that will be expired in the next 30 days. | public function toBeExpired(): \Illuminate\Http\JsonResponse
{
$today = new \DateTime('now');
$from = $today->format('Y-m-d');
$end = $today->add(new \DateInterval('P30D'))->format('Y-m-d');
$clients = $this->client->whereBetween('membership_expiry_date', [$from, $end])->get();
if(!$clients) {
abort(204);
}
return response()->json($clients);
} | [
"public function findExpired()\n {\n $date = new \\DateTime();\n $date->setTime(0, 0, 0);\n $date->modify('-2 weeks');\n $query = $this->getEntityManager()\n ->createQuery(\n 'SELECT c FROM AppBundle:Coupon c '\n . 'WHERE c.expireDate < :date'\n )\n ->setParameters([\n 'date' => $date,\n ]);\n\n return $query->getResult();\n }",
"static function check_expired_cache(){\n\n\t\tglobal $wpdb;\n\t\t$limit = 2000;\n\t\tif ( class_exists( 'WRC_Logger' ) ) {\n\t\t\tself::$logger = new WRC_Logger( get_called_class() );\n\t\t\t$cron_limit = get_option( WRC_Logger::SETTING_FLAG . '_limit', '2000' );\n\t\t\tif ( is_numeric( $cron_limit ) ) {\n\t\t\t\t$limit = $cron_limit;\n\t\t\t}\n\t\t}\n\n\t\t$expiredBefore = date('Y-m-d', strtotime('-1 year'));\n\n\t\t$query = '\nDELETE FROM ' . REST_CACHE_TABLE . ' \nWHERE rest_expires < \"' . $expiredBefore . '\" AND rest_to_update=0\nLIMIT ' . $limit;\n\n\t\ttry {\n\t\t\tif ( $wpdb->query( $query ) ) {\n\t\t\t\t// executed successfully\n\t\t\t} else {\n\t\t\t\tif ( function_exists( 'newrelic_notice_error' ) ) {\n\t\t\t\t\tnewrelic_notice_error( 'CRON FAIL: Unable to perform cleanup on un-requested old API cache. Limit ' . $limit . ', Expired ' . $expiredBefore );\n\t\t\t\t}\n\t\t\t}\n\t\t}catch( \\Exception $e){\n\t\t\tif ( function_exists( 'newrelic_notice_error' ) ) {\n\t\t\t\tnewrelic_notice_error( 'CRON FAIL: '.$e->getMessage().'. Limit ' . $limit . ', Expired ' . $expiredBefore );\n\t\t\t}\n\t\t}\n\t\treturn;\n\n\t}",
"public function getExpiredAccounts()\n {\n return $this->where('expired', true)->get();\n }",
"public function findForwardersExpiredDue();",
"public function valid(): self\n {\n return $this->where('last_renewed_at', '>', now()->subDays(90));\n }",
"public function getExpiredRefreshTokens();",
"public function checkIfAccountExpired()\n {\n $days = config('plans.freeForXDays');\n\n //note: this query is MySQL only. DATEDIFF function not available in sqlite\n $expiredUserIds = DB::table('users')\n ->select('id')\n ->where('confirmed', 1)\n ->where(function ($query) use ($days) {\n $query->where(function ($query) {\n $query->whereNotNull('trial_ends_at');\n $query->whereRaw('DATEDIFF(`trial_ends_at`, NOW()) = -1');\n })->orWhere(function ($query) {\n $query->where('is_grandfathered', 1);\n $query->whereRaw('DATEDIFF(DATE_ADD(`created_at`, INTERVAL 1 YEAR), NOW()) = -1');\n })->orWhere(function ($query) use ($days) {\n $query->where('is_grandfathered', 0);\n $query->whereRaw('DATEDIFF(DATE_ADD(`created_at`, INTERVAL ' . $days . ' DAY), NOW()) = -1');\n });\n })->groupBy('id')\n ->lists('id');\n\n if(count($expiredUserIds)) {\n foreach($expiredUserIds as $id) {\n $user = $this->userRepository->find($id);\n $this->rentalService->deactivateTrialNow($user);\n }\n }\n }",
"public function findAllExpired(): array;",
"private function _clearExpiredClientRecords(){\n\t\t\n\t\t$expiredTime = (time() - self::$cookieLifetime);\n\t\t\n\t\t\\GO::debug('Client.php: Clear records older than the cookie lifetime. ('.$expiredTime.')');\n\t\t\n\t\t$sql = \"DELETE FROM \".$this->tableName().\" WHERE ctime < \".$expiredTime.\";\";\n\t\t\\GO::getDbConnection()->query($sql);\n\t}",
"public static function whereNotExpired()\n {\n return self::where('expiration_date', '>', date('Y-m-d'));\n }",
"public function listExpired() \n\t{\n\t\treturn $this->list(true);\n\t}",
"public function findExpired()\n {\n $result = [];\n $currencies = $this->_repository->findAll();\n\n foreach ($currencies as $currency) {\n if (!$currency->getLastUpdatedAt() || $currency->isExpired()) {\n $result[] = $currency;\n }\n }\n\n return $result;\n }",
"public function calcualteExpiredCustomers()\n {\n \\DB::update('Update `customers` SET is_expired=1 \n WHERE id IN (SELECT customer_id FROM customer_product WHERE product_id=2) \n AND customers.created_at < DATE_SUB( now() , INTERVAL 30 DAY) \n AND !customers.is_activated');\n }",
"protected function removeExpired()\n {\n YII_DEBUG && Yii::trace(\"Removing expired refresh tokens\",'oauth2.storage.refreshtoken');\n $now = date('Y-m-d H:i:s', new \\DateTime());\n $this->getCollection()->remove(array('expires' => array('$lt' => $now)));\n }",
"private function validateExpDate() {\n $now = (new DateTime())->getTimestamp();\n \n if ($this->body['validFrom_time_t'] <= $now === false) {\n throw new Exception('Cert not valid yet');\n }\n \n if ($now <= $this->body['validTo_time_t'] === false) {\n throw new Exception('Cert expired');\n }\n \n return $this;\n }",
"public function excludeExpired() {\n $today = new \\DateTime();\n return $this->filter(function(Item $item) use ($today) {\n return $item->getUseByDate() > $today;\n });\n }",
"function edd_sl_get_expiring_licenses( $period = '+1month' ) {\n\n\t$args = array(\n\t\t'number' => - 1,\n\t\t'fields' => 'ids',\n\t\t'parent' => 0,\n\t\t'expiration' => array(\n\t\t\t'start' => strtotime( $period . ' midnight', current_time( 'timestamp' ) ),\n\t\t\t'end' => strtotime( $period . ' midnight', current_time( 'timestamp' ) ) + ( DAY_IN_SECONDS - 1 ),\n\t\t)\n\t);\n\n\t$args = apply_filters( 'edd_sl_expiring_licenses_args', $args );\n\t$keys = edd_software_licensing()->licenses_db->get_licenses( $args );\n\n\tif( ! $keys ) {\n\t\treturn false; // no expiring keys found\n\t}\n\n\treturn $keys;\n}",
"public function removeExpiredOccasions()\n {\n global $wpdb;\n $date_limit = strtotime(\"midnight now\") - 1;\n // Get all occasions from database\n $db_table = $wpdb->prefix.\"integrate_occasions\";\n $occasions = $wpdb->get_results(\"SELECT * FROM $db_table ORDER BY start_date DESC\", ARRAY_A);\n\n if (count($occasions) == 0) {\n return;\n }\n\n foreach ($occasions as $o) {\n // Delete the occasion if expired\n if (strtotime($o['end_date']) < $date_limit) {\n $id = $o['ID'];\n $wpdb->delete($db_table, array('ID' => $id));\n }\n }\n\n return;\n }",
"public function testTimeToLiveMoreThan30days()\n {\n $pool = $this->createCachePool();\n\n $item = $pool->getItem('365days');\n $item->set('4711');\n $item->expiresAfter(86400 * 365);\n $pool->save($item);\n\n $this->assertTrue($pool->getItem('365days')->isHit(), 'Item is not stored correctly');\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the aArchivos for this model. | public function aArchivos()
{
return $this->hasMany('App\Models\AArchivo','cia_id','id');
} | [
"public function getComparte_archivos(){\r\n return $this->comparte_archivos;\r\n }",
"public function getDilArchivos()\r\n {\r\n return $this->dil_archivos;\r\n }",
"public function _listarArchivos()\n {\n $objIterator = new RecursiveIteratorIterator($obj_Directory = new RecursiveDirectoryIterator($this->_dirBase),\n RecursiveIteratorIterator::SELF_FIRST);\n $objIterator->setMaxDepth($this->_profundidadEscaneo);\n // Recorro los Archivos.\n foreach ($objIterator as $file) {\n if (is_file($file)) {\n $ext = substr($file, strripos($file, '.')+1);\n if (in_array($ext, $this->_tipoArchivos)) {\n $this->_resultados[$file->__toString()] = array('date' => date(\"d-m-Y H:i\",$obj_Directory->getATime()),\n 'dateUpdate'=> date(\"d-m-Y H:i\",$obj_Directory->getMTime()),\n 'size' => filesize($file),//$obj_Directory->getSize(),\n 'hash' => sha1_file($file),\n 'name' => substr($file, strripos($file, DIRECTORY_SEPARATOR )+1));\n }\n }\n }\n ksort($this->_resultados);\n }",
"public function findArchived()\n {\n $files = array();\n $records = $this->getApiClient()->get($this->getContext() . '/files/archive');\n\n foreach ($records as $data) {\n $files[] = new File($data, $this);\n }\n\n return $files;\n }",
"public function getArchivos()\n\t{\t#abrimos el identificador de directorio\n\t\t$direccion\t\t= 'planillas/';\n\t\t$f \t\t\t\t= opendir($direccion);\n\t\t#Establecemos los tipos de archivo permitidos\n\t\t$extenciones \t= array('xls' => 1,'xlsx'\t=> 1, 'nxd' => 0);\n\n\t\t$datos\t\t\t= array();\n\t\t//leemos todos los ficheros\n\t\t$fichero\t\t= readdir($f);\n\t\twhile($fichero)\n\t\t{\tif($fichero==\".\" || $fichero ==\"..\") {\t$fichero=\"fichero.nxd\";\t}\n\t\t\t$punto\t\t= strpos($fichero,\".\");\n\t\t\tif ($punto)\n\t\t\t{\t$ext\t= substr($fichero,$punto+1,strlen($fichero));\n\t\t\t\t$ext\t= strtolower($ext);\n\t\t\t}\n\t\t\t\n\t\t\tif($extenciones[$ext]==1)\n\t\t\t{\t//$visualizar = $fichero;\n\t\t\t\t$datosAux['valor']\t\t\t= $fichero;\t\t \t\n\t\t\t\t$datosAux['titulo']\t\t\t= $fichero;\n\t\t\t\t$datosAux['comentario']\t\t= $fichero;\n\t\t\t\t$datos[]\t\t\t\t\t= $datosAux;\t\t\n\t\t\t}\n\t\t\t$fichero\t= readdir($f);\n\t\t}\n\t\tclosedir($f);\n\t\treturn $datos;\n\t}",
"private function setArchivos($vArchivosAPI = null) {\n\t\ttry {\n\t\t\tif (is_array($vArchivosAPI)) {\n\t\t\t\t$vArchivos = array();\n\t\t\t\tforeach ($vArchivosAPI as $oArchivoAPI) {\n\t\t\t\t\t$vArchivos[] = new Archivo($oArchivoAPI);\n\t\t\t\t}\n\n\t\t\t\treturn $vArchivos;\n\t\t\t}\n\t\t} catch (Exception $e) {\n\t\t\tLog::error($e);\n\t\t}\n\t}",
"public function get_arquivo()\n {\n \n // loads the associated object\n if (empty($this->arquivo))\n $this->arquivo = new Arquivos($this->arquivo_id);\n \n // returns the associated object\n return $this->arquivo;\n }",
"public static function getArchivedArticles()\n {\n return Article::where('archive', 1)->orderBy('created_at','desc')->get();\n }",
"public function obtenerListadoDeArchivos($carpeta){\r\n\t\t/* ----------- VALIDA ACCESO USUARIO ----------- */\r\n\t\t$this->validateSession();\r\n\r\n\t\t$index=0;//FCPATH\r\n\t\t$arrayArchivos=array();\r\n\t\tif(is_dir($carpeta)){\r\n\t \tif($dir = opendir($carpeta)){\r\n\t \t\t$carpeta = @scandir($carpeta);\r\n\t\t\t\tif (count($carpeta) > 2){\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$arrayArchivos[$index]='VACIO';\r\n\t\t\t\t}\r\n\t while(($archivo = readdir($dir)) !== false){\r\n\t \t//$ext=substr($archivo,-3);\r\n\t \t$index++;\r\n\t if($archivo != '.' && $archivo != '..' && $archivo != '.htaccess' && (substr($archivo,-2)!='db') && (substr($archivo,0,1)!='~')){\r\n\t\t\t\t\t\t$arrayArchivos[$index]=utf8_encode($archivo);\r\n\t }\r\n\t }\r\n\t closedir($dir);\r\n\t }\r\n\t\t}\r\n\t\treturn $arrayArchivos;\r\n\t}",
"public function getArchivoAtributoexes()\n {\n return $this->hasMany(ArchivoAtributoex::className(), ['tar_id' => 'tar_id']);\n }",
"public function getArchives() \r\n\t{\r\n\t\treturn $this->directory->read();\r\n\t}",
"function getArchivosOfTarea() {\t\r\n\t\t$sql = \"SELECT * FROM archivos WHERE (`FASES_TAREAS_id_TAREAS` = '$this->FASES_TAREAS_id_TAREAS')\";\r\n\t\r\n\t\tif (!($resultado = $this->mysqli->query($sql))){\r\n\t\t\treturn 'No existe'; //Devuelve mensaje de error\r\n\t\t}\r\n\t\telse{ \r\n\t\t\t$result = $resultado;//Se guarda el resultado de la consulta sql\r\n\t\t\treturn $result;//Se devuelve el resultado de la consulta\r\n\t\t\r\n\t\t}\r\n\t}",
"function archivos($usuario_id)\n {\n $tipo_asignacion_id = 598; //Ver tabla item\n \n $this->db->where('tipo_asignacion_id', $tipo_asignacion_id);\n $this->db->where('usuario_id', $usuario_id);\n $this->db->order_by('archivo.editado', 'DESC');\n $this->db->join('usuario_asignacion', 'archivo.id = usuario_asignacion.referente_id');\n $query = $this->db->get('archivo');\n \n return $query;\n \n }",
"public function aStArchivo()\n {\n return $this->belongsTo('App\\Models\\AStArchivo','st_archivo_id','id');\n }",
"public function getArchivo_evidencia()\n {\n return $this->archivo_evidencia;\n }",
"function get_option_archivos()\n\t{\n $cod_ent = $_SESSION['usuario']['cod_ent'];\n\t\t$q = \"SELECT registro.archivo FROM registro WHERE cod_ent = '\".$cod_ent.\"' GROUP BY registro.archivo ORDER BY registro.archivo ASC \";\n\t\t$result = mysql_query ($q, $GLOBALS['conn']) or die (mysql_error());\n\t\t$archivos = array();\n\t\twhile($fila = mysql_fetch_assoc($result))\n\t\t{\n\t\t\t$archivos[] = $fila['archivo'];\n\t\t}\n\n\t\treturn $archivos;\n\t}",
"public function getArchivoPublicidad(){\n\t\treturn $this->archivo_publicidad;\n\t}",
"public function getArchivos($proveedor) {\n $db = new MySQL(Sesion::getConexion());\n $sql = \"SELECT * \"\n . \"FROM `proveedores_archivos` \"\n . \"WHERE `proveedor` = '\" . $proveedor . \"'\";\n $consulta = $db->sql_query($sql);\n $archivos = array();\n while ($fila = $db->sql_fetchrow($consulta)) {\n array_push($archivos, $fila);\n }\n $db->sql_close();\n return($archivos);\n }",
"public function asignar()\n {\n $this->verificarRutaAnterior();\n\n if (!file_exists($this->rutaBase)) {\n return null;\n }\n\n $archivos = scandir($this->rutaBase);\n\n if ($archivos === false) {\n return null;\n }\n\n $archivosReales = [];\n\n foreach ($archivos as $indice => $valor) {\n if ($valor !== '.' && $valor !== '..') {\n $archivosReales[] = $valor;\n }\n }\n\n return $archivosReales;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get search label query. | public function getSearchLabelQuery()
{
$query = (new Db\Query())->select(['csl.crmid', 'csl.setype', 'csl.searchlabel'])
->from('u_#__crmentity_search_label csl')->innerJoin('vtiger_tab', 'csl.setype = vtiger_tab.name');
$where = ['and', ['vtiger_tab.presence' => 0]];
if ($this->moduleName) {
$where[] = ['csl.setype' => $this->moduleName];
if (\is_string($this->moduleName) && isset($this->moduleConditions[$this->moduleName])) {
$where[] = $this->moduleConditions[$this->moduleName]['where'];
if (isset($this->moduleConditions[$this->moduleName]['innerJoin'])) {
foreach ($this->moduleConditions[$this->moduleName]['innerJoin'] as $table => $on) {
$query->innerJoin($table, $on);
}
}
}
} elseif ($this->entityName) {
$where[] = ['vtiger_entityname.turn_off' => 1];
$query->innerJoin('vtiger_entityname', 'csl.setype = vtiger_entityname.modulename');
if (2 === \App\Config::search('GLOBAL_SEARCH_SORTING_RESULTS')) {
$query->orderBy('vtiger_entityname.sequence');
}
}
if ($this->checkPermissions) {
$where[] = ['like', 'csl.userid', ",$this->userId,"];
}
switch ($this->operator) {
case 'Begin':
$where[] = ['like', 'csl.searchlabel', "$this->searchValue%", false];
break;
case 'End':
$where[] = ['like', 'csl.searchlabel', "%$this->searchValue", false];
break;
default:
case 'Contain':
if (false !== strpos($this->searchValue, '*') || false !== strpos($this->searchValue, '_')) {
$where[] = ['like', 'csl.searchlabel', str_replace('*', '%', "%{$this->searchValue}%"), false];
} else {
$where[] = ['like', 'csl.searchlabel', $this->searchValue];
}
break;
case 'FulltextBegin':
$query->addSelect(['matcher' => new \yii\db\Expression('MATCH(csl.searchlabel) AGAINST(:searchValue IN BOOLEAN MODE)', [':searchValue' => $this->searchValue . '*'])]);
$query->andWhere('MATCH(csl.searchlabel) AGAINST(:findvalue IN BOOLEAN MODE)', [':findvalue' => $this->searchValue . '*']);
$query->addOrderBy(['matcher' => \SORT_DESC]);
break;
case 'FulltextWord':
$query->addSelect(['matcher' => new \yii\db\Expression('MATCH(csl.searchlabel) AGAINST(:searchValue IN BOOLEAN MODE)', [':searchValue' => $this->searchValue])]);
$query->andWhere('MATCH(csl.searchlabel) AGAINST(:findvalue IN BOOLEAN MODE)', [':findvalue' => $this->searchValue]);
$query->addOrderBy(['matcher' => \SORT_DESC]);
break;
}
return $query->andWhere($where);
} | [
"public function search_label($query)\n {\n }",
"public function search_label( $query ) {\n\t\tglobal $pagenow, $typenow;\n\n\t\tif ( 'edit.php' !== $pagenow || 'cs-activity' !== $typenow || ! get_query_var( 'cs-activity_search' ) || ! isset( $_GET['s'] ) ) { // WPCS: input var ok.\n\t\t\treturn $query;\n\t\t}\n\n\t\treturn cs_clean( wp_unslash( $_GET['s'] ) ); // WPCS: input var ok, sanitization ok.\n\t}",
"public function getSearchQuery()\n {\n return $this->getRequestHandler()->getRequest()->requestVar('Search');\n }",
"public function getSearchTerm();",
"public function getSearchQueryText()\n {\n $mesg = (int)$this->getRequest()->getParam('as') ?\n __(\"Search results for: '%1'\", 'Attributes Search') :\n __(\"Search results for: '%1'\", $this->catalogSearchData->getEscapedQueryText());\n return $mesg;\n }",
"public function label($label)\n {\n $this->where('label','ILIKE',\"%$label%\");\n }",
"public function getSearchQueryText()\n {\n return __(\"Search results for: '%1'\", $this->catalogSearchData->getEscapedQueryText());\n }",
"public function getSearchQuery() {\n\t\treturn Convert::raw2xml($_REQUEST['Search']);\n\t}",
"public function getSearchQuery()\n {\n return $this->search_query;\n }",
"function _govcms_ui_kit_get_search_keyword() {\n $params = drupal_get_query_parameters();\n return !empty($params['search']) ? check_plain($params['search']) : '';\n}",
"public function getQuery(){\n\t\t\n\t\t$isin = $this->isin ;\n\t\t\n\t\t$query = '\nPREFIX wikibase: <http://wikiba.se/ontology#>\nPREFIX wd: <http://www.wikidata.org/entity/>\nPREFIX wdt: <http://www.wikidata.org/prop/direct/>\n\nSELECT ?item ?itemLabel WHERE {\n ?item wdt:P946 \"' . $isin . '\".\n \n SERVICE wikibase:label { bd:serviceParam wikibase:language \"es, en, [AUTO_LANGUAGE]\". }\n}';\n\n\t\t\n\n\t\treturn $query;\n\t}",
"public function keyword()\n {\n return $this->request->input('search.value');\n }",
"public function getSearchQuery()\n {\n return $this->search;\n }",
"public function getLabel()\n {\n $this->addFieldCache('label');\n\n if (!isset($this->data['fields']['label']) &&\n !$this->isFieldInQuery('label'))\n {\n $this->loadFull();\n }\n // Still not set? It can only be null\n if (!isset($this->data['fields']['label'])) {\n $this->data['fields']['label'] = null;\n }\n\n return $this->data['fields']['label'];\n }",
"public function getSearchTerm()\n {\n return $this->request->get('search');\n }",
"public function getQueryKeyword()\n {\n $params = $this->getQueryParameters();\n return array_key_exists('keyword', $params) ? $params['keyword'] : '';\n }",
"function get_query_keyword() {\n $str = '';\n if (array_key_exists('filter_keyword', $_GET)) {\n $str = vf_search_keyword($_GET['filter_keyword']);\n }\n return $str;\n }",
"public function getSearchText();",
"public function getSearchQuery()\n {\n return $this->searchQuery;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the value of supplier_id | public function getSupplier_id()
{
return $this->supplier_id;
} | [
"public function getSupplierId()\n {\n return $this->supplierId;\n }",
"public function getSupplierId() : SupplierId\n {\n return $this->supplierId;\n }",
"public function getIdSupplier()\n {\n return $this->idSupplier;\n }",
"function get_supplier_id($supplier_name)\n\t{\n\t\tglobal $connection;\n\t\t$query = \"SELECT supplier_id \n\t\t\t\t\tFROM supplier\n\t\t\t\t\tWHERE supplier_name = \\\"{$supplier_name}\\\"\n\t\t\t\t\tLIMIT 1\";\n\t\t $supplier_id = mysql_query($query, $connection);\n\t confirm_query($supplier_id);\n \n\t\t$array = mysql_fetch_array($supplier_id);\n\t\t$id = $array[0];\n\t\treturn $id;\t\t\n\t}",
"public function bySupplierId($value)\r\n {\r\n return $this->byFieldValues('supplier_id', $value);\r\n }",
"public function getSupplierCode()\n\t{\n\t\treturn $this->supplierCode;\n\t}",
"public function getSupplierData($supplier_id){\n $query = \"SELECT * FROM supplier WHERE supplier_id='\".$supplier_id.\"'\";\n try{\n $result = self::$db->executeQuery($query);\n $row = mysqli_fetch_array($result);\n return $row;\n\n }\n catch(Exception $e){\n echo $e;\n }\n }",
"public function getASupplierById($supplier_id);",
"public function getVendorSupplierId()\n {\n return $this->vendor_supplier_id;\n }",
"public function getSupplier() {\n return $this->supplier;\n }",
"public static function getIdByProductAndSupplier($product_id, $product_attribute_id, $supplier_id){\n\t\t$db = JFactory::getDBO();\n\t\t// build query\n\t\t$query = \"SELECT product_supplier.product_supplier_id FROM \" . $db->quoteName('#__jeproshop_product_supplier') . \" AS\";\n\t\t$query .= \" product_supplier WHERE product_supplier.product_id = \" .(int)$product_id . \" AND product_supplier.product_attribute_id\";\n\t\t$query .= \" = \" . (int)$product_attribute_id . \" AND product_supplier.supplier_id = \" .(int)$supplier_id . \"\";\n\t\n\t\t$db->setQuery($query);\n\t\treturn $db->loadResult();\n\t}",
"public function getSupplier()\n\t{\n\t\treturn $this->supplier;\n\t}",
"public function getSupplierCode()\n {\n return isset($this->SupplierCode) ? $this->SupplierCode : null;\n }",
"public function getSupplierReference()\n\t{\n\t\treturn $this->supplier_reference;\n\t}",
"public function getSupplierAssignedAccountID()\n {\n return $this->supplierAssignedAccountID;\n }",
"function getSupplierName($supplierID)\n {\n $sql = \"SELECT * FROM supplier WHERE supplierID = $supplierID\";\n $result = $this->db->query($sql);\n while ($supplier = $result->fetch_assoc())\n {\n return $supplier['SupplierName'];\n }\n }",
"public function get($supplierProductId);",
"public function getSupplierName() { return $this->supplierName; }",
"public function getSupplier()\n {\n return $this->sendRequest('supplier');\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fix the max value of "order_num" and set that before the save | public function before_save(&$obj)
{
$field_name = $this->get_order_field($obj);
$table_name = $obj->get_table();
$curval = $obj->$field_name;
if ($curval == null || intval($curval) < 1)
{
$new_map = array_flip($obj->field_maps);
if (array_key_exists($field_name, $new_map)) $field_name = $new_map[$field_name];
$params = array();
$query = "SELECT max({$field_name}) FROM {$table_name}" . $this->generate_where_clause($obj, $params);
$new_order_num = cms_db()->GetOne($query, $params);
if ($new_order_num)
{
$obj->$field_name = $new_order_num + 1;
}
else
{
$obj->$field_name = 1;
}
}
} | [
"public function setHighestOrderNumber()\n {\n }",
"private function get_max_order_number() {\n\n\t\tglobal $wpdb;\n\n\t\tif ( ! is_null( $this->max_order_number ) ) {\n\t\t\treturn $this->max_order_number;\n\t\t}\n\n\t\treturn $this->max_order_number = $wpdb->get_var( \"SELECT MAX( CAST( meta_value AS SIGNED ) ) FROM $wpdb->postmeta WHERE meta_key='_order_number'\" );\n\t}",
"protected function updateOrderFieldOnRestore()\n {\n static::orderModel()\n ->where($this->getOrderField(), '>', $this->getOrderValue())\n ->increment($this->getOrderField());\n }",
"public function maxOrdernum()\n {\n return $this->hasOne(Order::class, 'ordernum', 'ordernum')->orderBy('id', 'DESC');\n }",
"public function setMaxOrderAmount(float $number);",
"function set_max_relnum($num) {\n if ( is_int($num) ) $this->max_relnum = $num;\n }",
"public function set_last_payment_order_id( $value ) {\n\t\t$this->set_prop( 'last_payment_order_id', absint( $value ) ) ;\n\t}",
"public function setMaxOrderQuantity($value) {\r\n $this->_data[\"MaxOrderQuantity\"] = $value;\r\n return $this;\r\n }",
"private function updateTaskNumberSequence()\n {\n if (config('database.default') !== 'sqlite') {\n \\DB::statement(\"SELECT setval('task_number_seq', (SELECT MAX(number) FROM tasks))\");\n }\n }",
"public function getMaxOrderNumber()\n {\n $orderNumber = $this->find('all', [\n 'conditions' => [\n 'top_flag' => FLAG_TRUE,\n 'delete_flag' => FLAG_FALSE\n ],\n 'fields' => [\n 'order_number' => 'MAX(Articles.order_number) + 1 '\n ]\n ]);\n \n if($orderNumber->first()->order_number) {\n $maxOrderNumber = $orderNumber->first()->order_number;\n } else {\n $maxOrderNumber = 1;\n }\n \n return $maxOrderNumber;\n }",
"protected function afterSave()\n {\n return parent::afterSave();\n if (!$this->order) $this->order = $this->id;\n $this->save(false);\n }",
"public function getMaxOrderNumber()\n {\n $orderNumber = $this->find('all', [\n 'conditions' => [\n 'delete_flag' => FLAG_FALSE\n ],\n 'fields' => [\n 'order_number' => 'MAX(NewsCategories.order_number) + 1 '\n ]\n ]);\n\n if ($orderNumber->first()->order_number) {\n $maxOrderNumber = $orderNumber->first()->order_number;\n } else {\n $maxOrderNumber = 1;\n }\n\n return $maxOrderNumber;\n }",
"public function save_aparment_number($order_id)\n\t{\n\t\tif (!empty( $_POST['aparment_number'] ) ) {\n update_post_meta( $order_id, 'apartment_number', sanitize_text_field( $_POST['aparment_number'] ));\n \t}\n\t}",
"public function number_generator_order()\n {\n $this->db->select_max('order', 'order_no');\n $query = $this->db->get('order');\n $result = $query->result_array();\n $order_no = $result[0]['order_no'];\n if ($order_no != '') {\n $order_no = $order_no + 1;\n } else {\n $order_no = 1000;\n }\n return $order_no;\n }",
"protected function setLastOrder()\n {\n $this->setIsTestOrderPage();\n\n if ($this->testOrder !== false)\n {\n $order = $this->testOrder;\n } else {\n $order = Mage::getModel('sales/order')\n ->loadByIncrementId(Mage::getSingleton('checkout/session')->getLastRealOrderId());\n }\n\n if ($order) {\n $this->hasLastOrder = true;\n $this->lastOrder = $order;\n $this->visibleItems = $order->getAllVisibleItems();\n $this->allItems = $order->getAllItems();\n $this->setBillingAddress();\n $this->setShippingAddress();\n }\n }",
"function setMax($value) { $this->_max=$value; }",
"private function setInvoiceNumber()\n {\n if (isset($this->purchase->invoice_no)) {\n $this->invoiceNumber = $this->purchase->invoice_no;\n } else {\n $this->invoiceNumber = Purchase::count() ? Purchase::latest()->first()->invoice_no + 1 : 1; // take the last invoice number from database and increment by 1\n $this->invoiceNumber = str_pad($this->invoiceNumber, 4, '0', STR_PAD_LEFT); // add prefix if number is to sort\n }\n }",
"public function setQtyOrderMax( $qtyOrderMax ) {\n\t\t$this->qtyOrderMax = $qtyOrderMax;\n\t}",
"public static function get_max_order_id()\n\t\t{\n\t\t\t$database\t= new database();\n\t\t\t$sql\t\t= \"SELECT MAX(order_id) AS order_id FROM planning\";\n\t\t\t//echo $sql;\n\t\t\t$result\t\t= $database->query($sql);\n\t\t\t\n\t\t\tif ($result->num_rows > 0)\n\t\t\t{\n\t\t\t\t$data\t= $result->fetch_object();\n\t\t\t\treturn $data->order_id > 0 ? $data->order_id : 0;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case for shareCart Warenkorbvorlage erstellen. | public function testShareCart()
{
} | [
"public function testCartConfirmCheckout()\n {\n }",
"public function testSecondMarketSell()\n {\n }",
"public function testRetrieveCashDrawerShift()\n {\n\n }",
"public function testCartCheckout()\n {\n }",
"public function testCartAddLoyalty()\n {\n }",
"public function testCadastresBuyAndSave()\n {\n }",
"public function testSaleGetGiftCards()\n {\n }",
"public function testCartReset()\n {\n }",
"public function testPostContentmanagementShares()\n {\n }",
"public function testGetContentmanagementShare()\n {\n }",
"public function testCreateCartFromTemplate()\n {\n }",
"public function testChargeCheckoutSession()\n {\n }",
"public function testCreateCart()\n {\n }",
"public function testGetCustomerCarts()\n {\n\n }",
"public function testTransferLoyaltyCard()\n {\n }",
"public function testSalePurchaseContract()\n {\n }",
"public function testHasCartSubmissionsTab()\n {\n $response = $this->get('admin/documents');\n $this->assertEquals(200, $response->getStatusCode());\n $this->assertContains('Cart Submission', (string) $response->getBody());\n }",
"public function testGetEnvelopeSharedZip()\n {\n }",
"public function testGetKekosResearchCard()\n {\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get Automatic HTTPS Rewrites setting. Enable the Automatic HTTPS Rewrites feature for this zone. | public function get_zone_settings_automatic_https_rewrites( $id ) {
return $this->build_request( "zones/$id/settings/automatic_https_rewrites" )->fetch();
} | [
"public function update_zone_settings_automatic_https_rewrites( string $id, bool $on ) {\n\t\t\t$args = array(\n\t\t\t\t'value' => ( true === $on ) ? 'on' : 'off',\n\t\t\t);\n\t\t\treturn $this->build_request( \"zones/$id/settings/automatic_https_rewrites\", $args, 'PATCH' )->fetch();\n\t\t}",
"public function getHttpsProxy();",
"private function _getForceHttps()\n {\n return Mage::getStoreConfig('tierko_canonical/canonical_settings/https');\n }",
"public function getUrlRewrite()\n {\n if (!self::$_urlRewrite) {\n self::$_urlRewrite = Mage::getSingleton('core/factory')->getUrlRewriteInstance();\n }\n return self::$_urlRewrite;\n }",
"public function getUrlRewrite()\r\n {\r\n if (!self::$_urlRewrite) {\r\n self::$_urlRewrite = Mage::getModel('core/url_rewrite');\r\n }\r\n return self::$_urlRewrite;\r\n }",
"public function get_redirect_rules($manual = false)\n {\n if (!current_user_can($this->capability)) return;\n $this->trace_log(\"retrieving redirect rules\");\n //only add the redirect rules when a known type of SSL was detected. Otherwise, we use https.\n $rule = \"\";\n\n //if the htaccess test was successfull, and we know the redirectype, edit\n if ($this->htaccess_redirect && ($manual || $this->htaccess_test_success) && $this->ssl_type != \"NA\") {\n $this->trace_log(\"starting insertion of .htaccess redirects.\");\n $rule .= \"<IfModule mod_rewrite.c>\" . \"\\n\";\n $rule .= \"RewriteEngine on\" . \"\\n\";\n\n $or = \"\";\n if ($this->ssl_type == \"SERVER-HTTPS-ON\") {\n $rule .= \"RewriteCond %{HTTPS} !=on [NC]\" . \"\\n\";\n } elseif ($this->ssl_type == \"SERVER-HTTPS-1\") {\n $rule .= \"RewriteCond %{HTTPS} !=1\" . \"\\n\";\n } elseif ($this->ssl_type == \"LOADBALANCER\") {\n $rule .= \"RewriteCond %{HTTP:X-Forwarded-Proto} !https\" . \"\\n\";\n } elseif ($this->ssl_type == \"CLOUDFLARE\") {\n $rule .= \"RewriteCond %{HTTP:CF-Visitor} '\" . '\"scheme\":\"http\"' . \"'\" . \"\\n\";//some concatenation to get the quotes right.\n } elseif ($this->ssl_type == \"SERVERPORT443\") {\n $rule .= \"RewriteCond %{SERVER_PORT} !443\" . \"\\n\";\n } elseif ($this->ssl_type == \"CLOUDFRONT\") {\n $rule .= \"RewriteCond %{HTTP:CloudFront-Forwarded-Proto} !https\" . \"\\n\";\n } elseif ($this->ssl_type == \"CDN\") {\n $rule .= \"RewriteCond %{HTTP:X-Forwarded-SSL} !on\" . \"\\n\";\n } elseif ($type == \"ENVHTTPS\") {\n $rule .= \"RewriteCond %{ENV:HTTPS} !=on\" . \"\\n\";\n }\n\n //if multisite, and NOT subfolder install (checked for in the detec_config function)\n //, add a condition so it only applies to sites where plugin is activated\n if (is_multisite() && !RSSSL()->rsssl_multisite->ssl_enabled_networkwide) {\n $this->trace_log(\"multisite, per site activation\");\n\n foreach ($this->sites as $domain) {\n $this->trace_log(\"adding condition for:\" . $domain);\n\n //remove http or https.\n $domain = preg_replace(\"/(http:\\/\\/|https:\\/\\/)/\", \"\", $domain);\n //We excluded subfolders, so treat as domain\n\n $domain_no_www = str_replace(\"www.\", \"\", $domain);\n $domain_yes_www = \"www.\" . $domain_no_www;\n\n $rule .= \"#wpmu rewritecond \" . $domain . \"\\n\";\n $rule .= \"RewriteCond %{HTTP_HOST} ^\" . preg_quote($domain_no_www, \"/\") . \" [OR]\" . \"\\n\";\n $rule .= \"RewriteCond %{HTTP_HOST} ^\" . preg_quote($domain_yes_www, \"/\") . \" [OR]\" . \"\\n\";\n $rule .= \"#end wpmu rewritecond \" . $domain . \"\\n\";\n }\n\n //now remove last [OR] if at least on one site the plugin was activated, so we have at lease one condition\n if (count($this->sites) > 0) {\n $rule = strrev(implode(\"\", explode(strrev(\"[OR]\"), strrev($rule), 2)));\n }\n } else {\n if ($this->debug) {\n $this->trace_log(\"single site or networkwide activation\");\n }\n }\n\n //fastest cache compatibility\n if (class_exists('WpFastestCache')) {\n $rule .= \"RewriteCond %{REQUEST_URI} !wp-content\\/cache\\/(all|wpfc-mobile-cache)\" . \"\\n\";\n }\n\n $rule .= \"RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]\" . \"\\n\";\n\n $rule .= \"</IfModule>\" . \"\\n\";\n }\n\n if (strlen($rule) > 0) {\n $rule = \"\\n\" . \"# BEGIN rlrssslReallySimpleSSL rsssl_version[\" . rsssl_version . \"]\\n\" . $rule . \"# END rlrssslReallySimpleSSL\" . \"\\n\";\n }\n\n $rule = apply_filters(\"rsssl_htaccess_output\", $rule);\n\n $rule = preg_replace(\"/\\n+/\", \"\\n\", $rule);\n return $rule;\n }",
"protected function getForcedHttpsBackendRedirectorService()\n {\n return $this->services['TYPO3\\\\CMS\\\\Backend\\\\Middleware\\\\ForcedHttpsBackendRedirector'] = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstanceForDi(\\TYPO3\\CMS\\Backend\\Middleware\\ForcedHttpsBackendRedirector::class);\n }",
"public function get_redirect_rules($manual = false)\n {\n $this->trace_log(\"retrieving redirect rules\");\n //only add the redirect rules when a known type of SSL was detected. Otherwise, we use https.\n $rule = \"\";\n //if the htaccess test was successfull, and we know the redirectype, edit\n if ($this->htaccess_redirect && ($manual || $this->htaccess_test_success) && $this->ssl_type != \"NA\") {\n\t $this->trace_log(\"starting insertion of .htaccess redirects.\");\n $rule .= \"<IfModule mod_rewrite.c>\" . \"\\n\";\n $rule .= \"RewriteEngine on\" . \"\\n\";\n\n $or = \"\";\n if ($this->ssl_type == \"SERVER-HTTPS-ON\") {\n $rule .= \"RewriteCond %{HTTPS} !=on [NC]\" . \"\\n\";\n } elseif ($this->ssl_type == \"SERVER-HTTPS-1\") {\n $rule .= \"RewriteCond %{HTTPS} !=1\" . \"\\n\";\n } elseif ($this->ssl_type == \"LOADBALANCER\") {\n $rule .= \"RewriteCond %{HTTP:X-Forwarded-Proto} !https\" . \"\\n\";\n } elseif ($this->ssl_type == \"HTTP_X_PROTO\") {\n $rule .= \"RewriteCond %{HTTP:X-Proto} !SSL\" . \"\\n\";\n } elseif ($this->ssl_type == \"CLOUDFLARE\") {\n $rule .= \"RewriteCond %{HTTP:CF-Visitor} '\" . '\"scheme\":\"http\"' . \"'\" . \"\\n\";//some concatenation to get the quotes right.\n } elseif ($this->ssl_type == \"SERVERPORT443\") {\n $rule .= \"RewriteCond %{SERVER_PORT} !443\" . \"\\n\";\n } elseif ($this->ssl_type == \"CLOUDFRONT\") {\n $rule .= \"RewriteCond %{HTTP:CloudFront-Forwarded-Proto} !https\" . \"\\n\";\n } elseif ($this->ssl_type == \"HTTP_X_FORWARDED_SSL_ON\") {\n $rule .= \"RewriteCond %{HTTP:X-Forwarded-SSL} !on\" . \"\\n\";\n } elseif ($this->ssl_type == \"HTTP_X_FORWARDED_SSL_1\") {\n $rule .= \"RewriteCond %{HTTP:X-Forwarded-SSL} !=1\" . \"\\n\";\n } elseif ($this->ssl_type == \"ENVHTTPS\") {\n $rule .= \"RewriteCond %{ENV:HTTPS} !=on\" . \"\\n\";\n }\n\n //if multisite, and NOT subfolder install (checked for in the detect_config function)\n //, add a condition so it only applies to sites where plugin is activated\n if (is_multisite() && !RSSSL()->rsssl_multisite->ssl_enabled_networkwide) {\n $this->trace_log(\"multisite, per site activation\");\n\n foreach ($this->sites as $domain) {\n $this->trace_log(\"adding condition for:\" . $domain);\n\n //remove http or https.\n $domain = preg_replace(\"/(http:\\/\\/|https:\\/\\/)/\", \"\", $domain);\n //We excluded subfolders, so treat as domain\n\n $domain_no_www = str_replace(\"www.\", \"\", $domain);\n $domain_yes_www = \"www.\" . $domain_no_www;\n\n $rule .= \"#wpmu rewritecond \" . $domain . \"\\n\";\n $rule .= \"RewriteCond %{HTTP_HOST} ^\" . preg_quote($domain_no_www, \"/\") . \" [OR]\" . \"\\n\";\n $rule .= \"RewriteCond %{HTTP_HOST} ^\" . preg_quote($domain_yes_www, \"/\") . \" [OR]\" . \"\\n\";\n $rule .= \"#end wpmu rewritecond \" . $domain . \"\\n\";\n }\n\n //now remove last [OR] if at least on one site the plugin was activated, so we have at least one condition\n if (count($this->sites) > 0) {\n $rule = strrev(implode(\"\", explode(strrev(\"[OR]\"), strrev($rule), 2)));\n }\n } else {\n $this->trace_log(\"single site or networkwide activation\");\n }\n\n //fastest cache compatibility\n if (class_exists('WpFastestCache')) {\n $rule .= \"RewriteCond %{REQUEST_URI} !wp-content\\/cache\\/(all|wpfc-mobile-cache)\" . \"\\n\";\n }\n\n //Exclude .well-known/acme-challenge for Let's Encrypt validation\n if ($this->has_acme_challenge_directory() && !$this->has_well_known_needle()) {\n $rule .= \"RewriteCond %{REQUEST_URI} !^/\\.well-known/acme-challenge/\" . \"\\n\";\n }\n\n $rule .= \"RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]\" . \"\\n\";\n\n $rule .= \"</IfModule>\" . \"\\n\";\n }\n\n if (strlen($rule) > 0) {\n $rule = \"\\n\" . \"# BEGIN rlrssslReallySimpleSSL rsssl_version[\" . rsssl_version . \"]\\n\" . $rule . \"# END rlrssslReallySimpleSSL\" . \"\\n\";\n }\n\n $rule = apply_filters(\"rsssl_htaccess_output\", $rule);\n\n $rule = preg_replace(\"/\\n+/\", \"\\n\", $rule);\n return $rule;\n }",
"public function setHttpsProxy($https_proxy);",
"public function set_https_mode($flag)\n {\n return $this->_api->setHttpsMode($flag);\n }",
"public function getHttps(){\r\n\r\n return $this->https;\r\n\r\n }",
"public function restrictToHttps() {\n return $this->restrictToSchemes([\"https\"]);\n }",
"static function https(){\n\t\tself::init();\n\n\t\treturn self::$isHttps;\n\t}",
"private function configureProxiedURLs() {\n $urlOverride = \"\";\n $proxyHeader = Config::get(\n \t'proxypass.proxy_path_header', 'HTTP_X_FORWARDED_PATH');\n \n // check the explicit path header (default is 'HTTP_X_FORWARDED_PATH') for rewrite purposes; this\n // header can take both regular subdomain hosting as well as a path within\n // a subdomain into account\n $forwardedPath = (!empty($_SERVER[$proxyHeader]) ? $_SERVER[$proxyHeader] : \"\");\n if(!empty($forwardedPath)) {\n $urlOverride = $forwardedPath;\n }\n \n // should there also be a schema override for HTTPS?\n $schemaOverride = \"\";\n if(!empty($_SERVER['SERVER_PORT'])) {\n // check port as a first attempt\n $schemaOverride = ($_SERVER['SERVER_PORT'] == '443' ? \"https\" : \"\");\n }\n if(!empty($_SERVER['HTTP_X_FORWARDED_PROTO'])) {\n // check standard LB request header\n $schemaOverride = ($_SERVER['HTTP_X_FORWARDED_PROTO'] == \"https\" ? \"https\" : \"\");\n }\n if(!empty($urlOverride)) {\n // does the schema of the URL override begin with https?\n if(starts_with($urlOverride, 'https')) {\n // set the schema override explicitly because the URL override\n // in URL::forceRootUrl() does not take schema into account\n $schemaOverride = \"https\";\n }\n }\n if(!empty($schemaOverride)) {\n Config::set('proxypass.public_schema_override', $schemaOverride);\n }\n \n // if we now have a URL override, set it\n if(!empty($urlOverride)) {\n if($schemaOverride == \"https\") {\n // override the root URL to include HTTPS as well\n Config::set('proxypass.public_url_override',\n str_replace('http:', 'https:', $urlOverride));\n }\n else\n {\n Config::set('proxypass.public_url_override', $urlOverride);\n }\n }\n\t}",
"protected function _getUrlRewrite()\n {\n if (!$this->hasData('url_rewrite')) {\n $this->setUrlRewrite($this->_rewriteFactory->create());\n }\n return $this->getUrlRewrite();\n }",
"public function getAutoRedirect(): ?bool\n {\n return $this->autoRedirect;\n }",
"public function get_enable_https_warnings() {\n return $this->_enablehttpswarnings;\n }",
"public function get_option_htaccess_redirect()\n {\n\n $options = get_option('rlrsssl_options');\n\n $htaccess_redirect = $this->htaccess_redirect;\n $disabled = \"\";\n $comment = \"\";\n\n //networkwide is not shown, so this only applies to per site activated sites.\n if (is_multisite() && RSSSL()->rsssl_multisite->htaccess_redirect) {\n $disabled = \"disabled\";\n $htaccess_redirect = TRUE;\n $comment = __(\"This option is enabled on the network menu.\", \"really-simple-ssl\");\n } else {\n $disabled = ($this->do_not_edit_htaccess) ? \"disabled\" : \"\";\n }\n\n echo '<input ' . $disabled . ' id=\"rlrsssl_options\" name=\"rlrsssl_options[htaccess_redirect]\" size=\"40\" type=\"checkbox\" value=\"1\"' . checked(1, $this->htaccess_redirect, false) . \" />\";\n RSSSL()->rsssl_help->get_help_tip(__(\"A .htaccess redirect is faster. Really Simple SSL detects the redirect code that is most likely to work (99% of websites), but this is not 100%. Make sure you know how to regain access to your site if anything goes wrong!\", \"really-simple-ssl\"));\n echo $comment;\n\n if ($this->htaccess_redirect && (!is_writable($this->ABSpath . \".htaccess\") || !$this->htaccess_test_success)) {\n echo \"<br><br>\";\n if (!is_writable($this->ABSpath . \".htaccess\")) _e(\"The .htaccess file is not writable. Add these lines to your .htaccess manually, or set 644 writing permissions\", \"really-simple-ssl\");\n if (!$this->htaccess_test_success) _e(\"The .htaccess redirect rules that were selected by this plugin failed in the test. The following redirect rules were tested:\", \"really-simple-ssl\");\n echo \"<br><br>\";\n if ($this->ssl_type != \"NA\") {\n $manual = true;\n $rules = $this->get_redirect_rules($manual);\n\n $arr_search = array(\"<\", \">\", \"\\n\");\n $arr_replace = array(\"<\", \">\", \"<br>\");\n $rules = str_replace($arr_search, $arr_replace, $rules);\n\n ?>\n <code>\n <?php echo $rules; ?>\n </code>\n <?php\n } else {\n _e(\"The plugin could not detect any possible redirect rule.\", \"really-simple-ssl\");\n }\n }\n\n //on multisite, the .htaccess do not edit option is not available\n if (!is_multisite()) {\n if ($this->do_not_edit_htaccess) {\n _e(\"If the setting 'do not edit htaccess' is enabled, you can't change this setting.\", \"really-simple-ssl\");\n } elseif (!$this->htaccess_redirect) {\n $link_start = '<a target=\"_blank\" href=\"https://really-simple-ssl.com/knowledge-base/remove-htaccess-redirect-site-lockout/\">';\n $link_end = '</a>';\n printf(\n __('Before you enable this, make sure you know how to %1$sregain access%2$s to your site in case of a redirect loop.', 'really-simple-ssl'),\n $link_start,\n $link_end\n );\n }\n }\n\n }",
"public function updateHTTPSRewritesSetting(string $zoneID, string $value)\n {\n $return = $this->adapter->patch(\n 'zones/' . $zoneID . '/settings/automatic_https_rewrites',\n [\n 'value' => $value,\n ]\n );\n $body = json_decode($return->getBody());\n if (isset($body->success) && $body->success == true) {\n return true;\n }\n return false;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If this reference is of an entity type, this will return a valid entity type reference to the type definition. Otherwise, it will return a bad entity type reference. | public function asEntity(): IEntityTypeReference
{
if ($this instanceof IEntityTypeReference) {
return $this;
}
$typeDefinition = $this->getDefinition();
if ($typeDefinition->getTypeKind()->isEntity()) {
assert($typeDefinition instanceof IEntityType);
return new EdmEntityTypeReference($typeDefinition, $this->getNullable());
}
$typeFullName = $this->fullName();
EdmUtil::checkArgumentNull($typeFullName, 'typeFullName');
$errors = [];
if ($this instanceof ICheckable) {
$errors = $this->getErrors();
$errors = iterable_to_array($errors);
}
if (count($errors) == 0) {
$errors = array_merge(
$errors,
self::conversionError(
$this->location(),
$typeFullName,
EdmConstants::Type_Entity
)
);
}
return new BadEntityTypeReference($typeFullName, $this->getNullable(), $errors);
} | [
"protected function getReferencedEntityType() {\n $field_def = $this->getFieldDefinition();\n $entity_type_id = $field_def->getItemDefinition()->getSetting('target_type');\n return $this->entityTypeManger->getDefinition($entity_type_id);\n }",
"public function asEntityReference(): IEntityReferenceTypeReference;",
"public static function getRelatedEntityType(): EntityType\n {\n return new EntityType(EntityType::URL);\n }",
"public function getType(): EntityType;",
"public function asEntity(): IEntityTypeReference;",
"protected function getExternalEntityType() {\n return \\Drupal::entityTypeManager()\n ->getStorage('external_entity_type')\n ->load($this->entityTypeId);\n }",
"protected abstract function EntityType();",
"public function getExternalEntityType() {\n return $this\n ->entityTypeManager\n ->getStorage('external_entity_type')\n ->load($this->getEntityTypeId());\n }",
"public function ref()\n {\n return new TypeRef($this->getId());\n }",
"public static function getRelatedEntityType(): EntityType\n {\n return new EntityType(EntityType::PLACE);\n }",
"private function getObjectEntityType() {\n // If the function is being called from static context and $this->entity_type is defined, then return it.\n if (!is_null($this->entity_type)) {\n return $this->entity_type;\n }\n\n return self::getClassEntityType();\n }",
"public function getParentReferenceEntityTypeId() {\n // Get the parent reference field name.\n if ($parent_field_name = $this->getParentReferenceFieldName()) {\n return $this->getFieldDefinition($parent_field_name)->getSetting('target_type');\n }\n return NULL;\n }",
"public function getReferenceType()\n {\n return $this->reference_type;\n }",
"public function getEntityType();",
"public function getReferenceType()\n {\n return $this->referenceType;\n }",
"public function getDrupalEntityType();",
"public function getTypeInstance(){\n if (is_null($this->_typeInstance)) {\n $type = $this->getType();\n /** @var Ultimate_ModuleCreator_Helper_Data $helper */\n $helper = Mage::helper('modulecreator');\n $types = $helper->getEntityTypes(false);\n if (isset($types[$type])) {\n /** @var Ultimate_ModuleCreator_Model_Entity_Type_Abstract $typeInstance */\n $typeInstance = Mage::getModel((string)$types[$type]->type_model);\n $this->_typeInstance = $typeInstance;\n }\n else {\n throw new Ultimate_ModuleCreator_Exception(Mage::helper('modulecreator')->__('Entity \"%s\" type is not valid', $type));\n }\n $this->_typeInstance->setEntity($this);\n }\n return $this->_typeInstance;\n }",
"public function getReferenceType()\n\t{\n\t\treturn $this->reference_type;\n\t}",
"public function getBadgrEntityType(){\n return $this->entityTypeId;\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Singleton access to RbacAuthorization controller | public function getRbacAuthorization()
{
return Controllers\RbacAuthorizationController::getInstance();
} | [
"public function getAuthorization()\n {\n return Controllers\\AuthorizationController::getInstance();\n }",
"public static function getInstance() {\n if (static::$instance == null) {\n static::$instance = new AnnAuthorization();\n }\n return static::$instance;\n }",
"public function getOAuthAuthorization()\n {\n return Controllers\\OAuthAuthorization::getInstance();\n }",
"public function getAuthentication()\n {\n return Controllers\\AuthenticationController::getInstance();\n }",
"function &getACL()\n {\n if($this->_instance == null)\n {\n uses('controller'.DS.'components'.DS.ACL_FILENAME);\n $classname = ACL_CLASSNAME;\n $this->_instance = new $classname;\n }\n return $this->_instance;\n }",
"public function getAccessController() {\n\t\tif (!$this->accessController) {\n\t\t\tlist($vendor, $extension,) = Utility::getClassNamePartsForPath($this->dispatcher->getPath());\n\n\t\t\t// Check if an extension provides a Authentication Provider\n\t\t\t$accessControllerClass = 'Tx_' . $extension . '_Rest_AccessController';\n\t\t\tif (!class_exists($accessControllerClass)) {\n\t\t\t\t$accessControllerClass = ($vendor ? $vendor . '\\\\' : '') . $extension . '\\\\Rest\\\\AccessController';\n\t\t\t}\n\n\t\t\t// Use the configuration based Authentication Provider\n\t\t\tif (!class_exists($accessControllerClass)) {\n\t\t\t\t$accessControllerClass = 'Cundd\\\\Rest\\\\Access\\\\ConfigurationBasedAccessController';\n\t\t\t}\n\t\t\t$this->accessController = $this->get($accessControllerClass);\n\t\t\t$this->accessController->setRequest($this->dispatcher->getRequest());\n\t\t}\n\t\treturn $this->accessController;\n\t}",
"public function getRbac(){\n\t\treturn Yii::app()->getAuthManager();\n\t}",
"protected function _guard_controller(){\n }",
"abstract protected function createAuthorization();",
"public function controllerAuthorization()\n {\n\n $contact = Contact::first();\n $user = User::first();\n\n // Chiamata esplicita al gate\n if(Gate::cannot('update-contact', $contact)){\n //abort(403)\n }\n\n // Utilizzo i metodi forniti dal controller\n $this->authorize('update-contact', $contact);\n $this->authorizeForUser($user, 'update-contact', $contact); // autorizzo per conto di altro utente\n\n // definisco le autorizzazioni per l'intera risorsa (da usare nel costruttore).\n // Vedi GatePoliciesControllerAuthorizeResource controller\n $this->authorizeResource(Contact::class);\n }",
"public function getAccounts()\n {\n return Controllers\\AccountsController::getInstance();\n }",
"final public function getAuthorizationHandler()\r\n\t{\r\n\t\tif ($this->authorizationHandler === NULL) {\r\n\t\t\t$this->authorizationHandler = Environment::getService('Nette\\\\Security\\\\IAuthorizator');\r\n\t\t}\r\n\t\treturn $this->authorizationHandler;\r\n\t}",
"public function getAdmin()\n {\n return Controllers\\AdminController::getInstance();\n }",
"public function getAuthentications()\n {\n return Controllers\\AuthenticationsController::getInstance();\n }",
"public function getAccount()\n\t{\n\t\treturn Controllers\\AccountController::getInstance();\n\t}",
"public function __construct()\n\t{\n\t\t$this->protect = new AuthController();\n\t}",
"public function authorizationFlow();",
"function getInstance(){\n\treturn MVC_controller::getInstance();\n}",
"public function getAuthorizationService(): AuthorizationServiceInterface;"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
BuddyPress creates ajaxurl, no need to define ajaxurl then If BuddyPress is not active, add ajaxurl in the head | public function ajax_url() {
if ( function_exists( 'bp_is_active' ) ) {
return;
}
?>
<script type="text/javascript">
var ajaxurl = "<?php echo admin_url( 'admin-ajax.php' );?>";
</script>
<?php
} | [
"function wp_experts_ajax_url_admin_head() {\r\n echo '<script type=\"text/javascript\"> var ajaxurl = \"'.admin_url('admin-ajax.php').'\"; </script>';\r\n}",
"public static function define_ajaxurl() {\n ?>\n <script type=\"text/javascript\">\n ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>';\n </script>\n <?php\n }",
"function bbp_get_ajax_url()\n{\n}",
"public function add_ajax_library() {\n\t $html = '<script type=\"text/javascript\">';\n\t $html .= 'var ajaxurl = \"' . admin_url( 'admin-ajax.php' ) . '\"';\n\t $html .= '</script>';\n\t echo $html;\n\t \n\t}",
"public static function add_ajax_url_js() {\n ?>\n\n <script\n type=\"text/javascript\">var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', is_ssl() ? 'admin' : 'http' ); ?>';</script>\n\n <?php\n }",
"function knoppy_ajax_add_ajax_library() {\n\n\t$html = '<script type=\"text/javascript\">';\n\t$html .= 'var ajaxurl = \"' . admin_url( 'admin-ajax.php' ) . '\"';\n\t$html .= '</script>';\n\n\techo $html;\n\n}",
"static function wck_fep_print_ajax_url() {\n\t\t/* ajax url for frontend */\n\t\techo '<script type=\"text/javascript\">var wckAjaxurl = \"'. admin_url('admin-ajax.php') .'\";</script>';\n\t}",
"function pmwAjaxUrl()\r\n{\r\n\treturn get_template_directory_uri() . '/requests/pmw_ajax.php';\r\n}",
"function qode_tours_ajax_url() {\n\t\techo '<script type=\"application/javascript\">var qodeToursAjaxURL = \"'.admin_url('admin-ajax.php').'\"</script>';\n\t}",
"public function getAjaxUrl()\r\n {\r\n return Mage::helper('adminhtml')->getUrl(\"cubix_hubspot/adminhtml_ajax\", array('isAjax'=> true));\r\n }",
"function _ajax_url()\n\t\t{\n\t\t\t$url = $this->EE->functions->fetch_site_index(0,0);\n\n\t\t\t$host = (isset($_SERVER['HTTP_HOST']) == TRUE && $_SERVER['HTTP_HOST'] != FALSE) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME'];\n\t\t\t$url = preg_replace('#http\\://(([\\w][\\w\\-\\.]*)\\.)?([\\w][\\w\\-]+)(\\.([\\w][\\w\\.]*))?\\/#', \"http://\".$host.\"/\", $url);\n\t\t\t\n\t\t\t// Create new URL\n\t\t\t$this->ajax_url = $url.QUERY_MARKER.'ACT=';\n\t\t}",
"public function register_ajax_hooks();",
"function worthreading_jsvars() {\n ?><script type='text/javascript'>\n // <![CDATA[\n var ajaxUrl = \"<?php echo esc_js( get_bloginfo( 'wpurl' ) . '/wp-admin/admin-ajax.php' ); ?>\";\n //]]>\n </script><?php\n}",
"function abp01_get_ajax_baseurl() {\n\treturn abp01_get_env()->getAjaxBaseUrl();\n}",
"public function register_ajax_hooks()\n {\n }",
"function wp_ajax_sample_permalink() {}",
"protected function getNoWpAJAX() {\n\t\treturn plugins_url('nowp/ajax.php', SSLFIX_PLUGIN_FILE);\n\t}",
"function add_ajax_scripts()\n{\n wp_enqueue_script(\n 'ajaxcalls',\n get_template_directory_uri() . '/assets/js/ajax-calls.js?v=' . time(),\n ['jquery'],\n '1.0.0',\n true\n );\n // Rend disponible la variable AJAXCALLS avant l'éxécution de ajax-calls.js\n wp_add_inline_script(\n 'ajaxcalls',\n 'const AJAXCALLS = ' .\n json_encode([\n 'ajaxurl' => admin_url('admin-ajax.php'),\n // 'param' => 'value',\n ]),\n 'before'\n );\n}",
"protected function getAjaxUri() {}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Attempts to purge a URL, sending the result as an XHR/JSON response. | public function handle_purge_url_request() {
$cache = $this->plugin->cache;
$purge = $this->plugin->purge;
$url = isset( $_POST['url'] ) ? $_POST['url'] : '';
$host = parse_url( $url, PHP_URL_HOST );
$path = parse_url( $url, PHP_URL_PATH );
$purge_ctx = $purge->purge_info( 'plugin/purge_url', null );
$purge_ctx->purge_method( 'url' );
$purge_ctx->hostname( $host );
$purge_ctx->purge_objects( [ $path ] );
$response = $this->plugin->purge->purge_request( $purge_ctx );
if ( ! $response['error'] ) {
$response['message'] = "Purge URL <code>{$url}</code> successful "
. "on {$purge_ctx->purge_network()} network(s).";
}
echo json_encode( $response );
wp_die();
} | [
"public function purge($url);",
"public function purgeUrl($url);",
"public function purge($url, array $headers = []);",
"public function API_purge ( $url ) {\n\t\t$this->_laststatus = null;\n\n\t\t#prevent stupid\n\t\tif( empty($url) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$this->_curl_init();\n\t\tcurl_setopt($this->_ch, CURLOPT_URL, $url);\n\t\tcurl_setopt($this->_ch, CURLOPT_CUSTOMREQUEST, \"PURGE\");\n\t\t$ret = $this->_curl();\n\n\t\t#check for hard fail\n\t\tif( $ret === false ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t# did it give us a status?\n\t\tif( empty($ret->status) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t# stash it\n\t\t$this->_laststatus = $ret->status;\n\n\t\t# is it what we wanted?\n\t\tif( $ret->status != 'ok' ) {\n\t\t\t# /purge didnt return 'ok'? is that even possible?\n\t\t\treturn false;\n\t\t}\n\n\t\t# woo!\n\t\treturn $ret;\n\t}",
"public function purgeUrl($url) {\n return $this->purgeUrls(array($url));\n }",
"public function purgeInvalidUrls();",
"public function purgeUrl($url)\n {\n return $this->command($this->commands->getPurgeUrlCommand() . ' ' . $url);\n }",
"public function purgeCache(string $url)\n {\n return $this->APIcall('POST', 'purge', json_encode(array(\"url\" => $url)));\n }",
"function send_purge_request($site_url, $port)\n\t{\n if ( ! $site_url) {\n $protocol = (isset($_SERVER[\"HTTPS\"]) && $_SERVER[\"HTTPS\"] == \"on\") ? \"https://\" : \"http://\";\n $site_url = $protocol . $_SERVER['HTTP_HOST'] . '/';\n }\n if ( ! $port) {\n $port = isset($_SERVER['SERVER_PORT']) ? $_SERVER['SERVER_PORT'] : 80; \n }\n\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $site_url);\n curl_setopt($ch, CURLOPT_PORT , (int)$port);\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST,'EE_PURGE');\n curl_exec($ch);\n\t}",
"public function purgeProcess()\n {\n $urls = array_filter(array_unique(explode(\"\\n\", file_get_contents($this->_getPurgeListPath()))));\n\n $varnishServers = $this->getVarnishServers();\n $errors = array();\n\n // Init curl handler\n $curlHandlers = array(); // keep references for clean up\n $mh = curl_multi_init();\n\n foreach ((array)$varnishServers as $varnishServer) {\n foreach (array('http', 'https') as $scheme) {\n foreach ($urls as $url) {\n $urlParts = parse_url($varnishServer);\n $varnishUrl = $scheme . \"://\" . $urlParts['host'] . $url;\n\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $varnishUrl);\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PURGE');\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);\n //curl_setopt($ch, CURLOPT_HTTPHEADER, array('Host: ' . $varnishServer));\n\n curl_multi_add_handle($mh, $ch);\n $curlHandlers[] = $ch;\n }\n }\n }\n\n do {\n $n = curl_multi_exec($mh, $active);\n } while ($active);\n\n // Error handling and clean up\n foreach ($curlHandlers as $ch) {\n $info = curl_getinfo($ch);\n\n if (curl_errno($ch)) {\n $errors[] = \"Cannot purge url {$info['url']} due to error\" . curl_error($ch);\n } else if ((int)$info['http_code'] && $info['http_code'] != 200 && $info['http_code'] != 404) {\n $errors[] = \"Cannot purge url {$info['url']}, http code: {$info['http_code']}\";\n }\n\n curl_multi_remove_handle($mh, $ch);\n curl_close($ch);\n }\n curl_multi_close($mh);\n\n if (!count($errors))\n file_put_contents($this->_getPurgeListPath(), '');\n else\n Mage::throwException(implode(\"\\n\", $errors));\n\n return $errors;\n }",
"function w3tc_pgcache_flush_url( $url ) {\n\treturn w3tc_flush_url( $url );\n}",
"function atozsitesVarnishPurgeURL($atozsites_purl) {\n $atozsites_purl = preg_replace( '#^https?://[^/]+#i', '', $atozsites_purl );\n $this->atozsitesVarnishPurgeObject($atozsites_purl);\n }",
"function delete($url);",
"function vh_purge($uri) {\r\n vh_generic_purge($uri, 'PURGE');\r\n}",
"function output_cache_remove_url($url) {}",
"abstract public function purgeByUrl($pattern);",
"public function purge($url, $contentType = 'c')\n {\n $timestamp = time();\n $info = parse_url($url);\n\n $host = strtr($info['host'], '.', '-');\n\n $url = \"{$info['host']}{$info['path']}\" . urlencode(isset($info['query']) ? \"?{$info['query']}\" : '');\n\n $ampCachePath = \"/update-cache/{$contentType}/\" . ('https' === $info['scheme'] ? 's/' : '');\n $ampCachePath .= \"{$url}?amp_action=flush&_ts={$timestamp}\";\n\n $privateKey = openssl_pkey_get_private('file://' . $this->keyFilePath);\n openssl_sign($ampCachePath, $signature, $privateKey, OPENSSL_ALGO_SHA256);\n openssl_free_key($privateKey);\n\n $signature = self::base64encode($signature);\n $status = true;\n\n foreach ($this->getCaches() as $cache) {\n $ampCacheBase = \"https://{$host}.{$cache->updateCacheApiDomainSuffix}\";\n $response = $this->guzzleClient->get(\"{$ampCacheBase}{$ampCachePath}&_url_signature={$signature}\");\n $status = $status && ('OK' === (string)$response->getBody());\n }\n\n return $status;\n }",
"function purge_remote($remote_url)\n {\n $query = \"DELETE FROM `message-cache` WHERE `Remote_URL` = '@v'\";\n $this->query($query, $remote_url);\n }",
"public function sendDELETE( string $url )\n : Response\n {\n\n return $this->send( RequestMethod::DELETE, $url );\n\n }"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if the string is a valid time in HH:MM 12hour format, with optional leading 0. | public function isTime_HM12( string $time ): bool {
return (bool) @preg_match(
'/^(0?[1-9]|1[0-2]):[0-5][0-9]$/',
$time
);
} | [
"static function validate12HrTime($param)\n {\n if (preg_match('/00:00:00/', $param) == false) {\n return preg_match(\"(((0[1-9])|(1[0-2])):([0-5])(0|5)\\s(A|P)M)\", $param);\n }\n return false;\n }",
"function check_time($string) {\n if (preg_match('@[0-9]{2}:[0-9]{2}@', $string)) {\n $time_parts = explode(\":\", $string);\n $hour = $time_parts[0]; $minute = $time_parts[1];\n if ($hour >= 0 && $hour <= 23 && $minute >= 0 && $minute <= 59)\n return true;\n }\n return false;\n }",
"function ValidateTime12($inputData) \n\t{\n\t\t$inputData = str_replace(\" \", \"\", $inputData);\n\n\t\tif (preg_match('/^([0-9]|1[0-2]):[0-5]\\d(:[0-5]\\d)?\\.?\\s?(am|AM|pm|PM)?\\s?$/',$inputData)) \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\t\n\t\t}\n\t}",
"public function valid_time($str) {\n\n $entradas = explode(':', $str);\n\n if(count($entradas) > 2){\n return false;\n }\n \n foreach ($entradas as $key => $entrada) {\n if (!is_numeric($entrada)) {\n return FALSE;\n }elseif($key == 0){\n if ((int) $entrada > 24){\n return FALSE;\n }\n }else{\n if ((int) $entrada > 59) {\n return false;\n }\n }\n }\n\n return TRUE;\n }",
"public static function time12($input, ValidationInfo $info = null)\n {\n if (preg_match(\n '/^([1-9]|1[0-2]|0[1-9]){1}(:[0-5][0-9])?\\s?([aApP][mM]{1})?$/',\n $input)\n ) {\n return $input;\n }\n throw new Invalid(\n 'Expecting time in 12 hour format, such as `08:00AM` and `10:05:11`'\n );\n }",
"function is_time_valid($time) {\n return preg_match(\"/^\\d{2}:\\d{2}(?::\\d{2})?$/\", $time) !== 0;\n}",
"public static function is_time($string) {\n\t\t$regEx = '/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/';\n\t\treturn preg_match($regEx, $string);\n\t}",
"function validTime($inTime) {\r\n$pattern = \"/^((([9])|([0-2])|([0-1][0-2])):?([0-5][0-9]))|(([0-3]):?([0-2][0-9])|([0-3][0]))$/\";\r\n if(preg_match($pattern,$inTime)){\r\n return true;\r\n }\r\n}",
"private function validateTime(string $time) {\r\n return preg_match(\"/^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/\", $time);\r\n }",
"function is_hour(\r\n $hour_str // string to validate\r\n\t\t\t\t)\r\n{\r\n if (strlen($hour_str) != 5)\r\n\treturn -1;\r\n\t\r\n if (!ereg(\"([0-1]{1})([0-9]{1}):([0-5]{1})([0-9]{1})\", $hour_str))\r\n\treturn -1;\r\n\t\r\n return 0;\r\n}",
"function validateTime($value) {\n if (preg_match('`^(\\d\\d?):(\\d\\d)(?::(\\d\\d))?$`', $value, $match)) {\n $h = (int)$match[1];\n $m = (int)$match[2];\n $s = (int)($match[3] ?? 0);\n\n if (0 <= $h && $h < 24 && 0 <= $m && $m < 60 && 0 <= $s && $s < 60) {\n return sprintf('%d:%02d:%02d', $h, $m, $s);\n }\n }\n return \\Vanilla\\Invalid::emptyMessage();\n }",
"private function validateTime()\n {\n return is_numeric($this->getHours()) && is_numeric($this->getMinutes());\n }",
"private function getValidTimeFromString($string)\n {\n $data = explode(':', $string);\n\n if (count($data) >= 2) {\n\n $hour = intval($data[0]);\n $minute = intval($data[1]);\n\n if ((ctype_digit($data[0])) && (0 <= $hour) && ($hour < 24) && (ctype_digit($data[1])) && (0 <= $minute) && ($minute < 60)) {\n return strtotime('today ' . $hour . ':' . $minute . ':0');\n }\n } elseif ((count($data) == 1) && (strlen($data[0]) == 4)) {\n\n $hour = intval(substr($data[0], 0, 2));\n $minute = intval(substr($data[0], -2));\n\n if ((ctype_digit(substr($data[0], 0, 2))) && (0 <= $hour) && ($hour < 24) && (ctype_digit(substr($data[0], -2))) && (0 <= $minute) && ($minute < 60)) {\n return strtotime('today ' . $hour . ':' . $minute . ':0');\n }\n }\n return false;\n }",
"public function isValidTimeFormat($time): bool\n {\n $regex = '/^(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/';\n\n return preg_match($regex, $time);\n }",
"public static function time24($var)\n {\n return preg_match( '/^([0-1][0-9]|2[0-3]):([0-5][0-9])$/', $var ) ? $var : false;\n }",
"public function time_validate($time)\n {\n \treturn preg_match(\"/^(2[0-3]|[01][0-9]):([0-5][0-9])$/\", $time);\n }",
"function checkTime($time)\n {\n //Check input exists\n if(isset($time) && $time !== \"\"){\n\n //Check input against timestamp format\n if(preg_match('/^\\d{4}-(?:(?:0\\d)|(?:1[0-2]))-(?:(?:[0-2]\\d)|(?:3[01]))T(?:(?:[01]\\d)|(?:2[0-3])):[0-5]\\d:[0-5]\\d$/', $time))\n {\n return true;\n }else{\n return false;\n }\n }else{\n return false;\n }\n }",
"function containsHour($text){\n\t\t$words = explode(\" \", $text);\n\t\t$posibleHour = $words[0];\n\t\t$isHour = preg_match('/(?:[01][0-9]|2[0-4]|[0-9]):[0-5][0-9]/',$posibleHour);\n\t\treturn ($isHour == 1);\n\t}",
"function dtlIsTimeStr($ts) {\n // * does not check for validity of the time (use dtlIsValidTime())\n return is_string($ts) && strlen($ts) == 8 && preg_match('/\\d\\d:\\d\\d:\\d\\d/', $ts) == 1;\n}"
] | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.