query
stringlengths
7
5.25k
document
stringlengths
15
1.06M
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Encode en utf8 si demande
private function utf8Encode($data) { return $data; /* * if (is_array ( $data )) { * foreach ( $data as $key => $value ) { * $data [$key] = $this->utf8Encode ( $value ); * } * } else { * $data = utf8_encode ( $data ); * } * return $data; */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function utf8_encode($data)\n{\n}", "function seguridad_utf8($entrada){\n\t\tglobal $mysqli;\n\t\treturn addslashes($mysqli -> real_escape_string(nl2br(trim($entrada))));\n\t}", "final public function setUTF() {\n mysqli_query($this->resourceId,\"SET NAMES 'utf8'\");\n }", "function convert_to_utf8($obj)\n{\n global $config;\n $ret = $obj;\n // wenn die Verbindung zur Datenbank nicht auf utf8 steht, dann muessen die Rückgaben in utf8 gewandelt werden,\n // da die Webseite utf8-kodiert ist\n if (!isset($config['mysql_can_change_encoding'])) {\n get_sql_encodings();\n }\n\n if ($config['mysql_can_change_encoding'] == false && $config['mysql_standard_character_set'] != 'utf8') {\n if (is_array($obj)) {\n foreach ($obj as $key => $val) {\n //echo \"<br> Wandle \" . $val . \" nach \";\n $obj[$key] = utf8_encode($val);\n //echo $obj[$key];\n }\n }\n if (is_string($obj)) {\n $obj = utf8_encode($obj);\n }\n $ret = $obj;\n }\n\n return $ret;\n}", "private function set_charset() {\n\t\t//regresa bool\n\t\t$this->conn->set_charset(\"utf8\");\n\t}", "abstract public function setUTF();", "public function convertDatabaseToUTF8();", "public function convPOSTCharset() {}", "public function setUTF()\n\t{\n\t\treturn true;\n\t}", "function lang_encode_from_utf($strValue)\r\n{\r\n\tif(function_exists(\"iconv\"))\r\n\t\treturn iconv('UTF-8','Windows-1252',$strValue);\r\n\treturn $strValue;\r\n}", "function utf8_to_iso_8859_1() {\r\n\t\t$result = preg_match('/<meta http\\-equiv=\"[Cc]ontent\\-[Tt]ype\" content=\"text\\/html;\\s*charset\\s*=\\s*utf\\-8\"/is', $this->code, $encoding_matches);\r\n\t\tif($result) {\r\n\t\t\t$this->code = iconv(\"UTF-8\", \"CP1252\" . \"//TRANSLIT\", $this->code);\r\n\t\t\t$this->code = htmlspecialchars($this->code);\r\n\t\t\t$this->code = htmlentities($this->code);\r\n\t\t\t$this->code = htmlspecialchars_decode($this->code);\r\n\t\t\t$this->code = htmlspecialchars_decode($this->code);\r\n\t\t\t$this->code = preg_replace('/<meta http\\-equiv=\"[Cc]ontent\\-[Tt]ype\" content=\"text\\/html;\\s*charset\\s*=\\s*utf\\-8\"/is', '<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"', $this->code);\r\n\t\t}\r\n\t}", "function utf8($x){\n\t#return is_string($x)?utf8_encode($x):$x;\n\treturn $x;\n}", "public function encode()\n {\n }", "abstract public function encode();", "function encode($name){\n\t\treturn $name->toUTF8();\n\t}", "public function setUTF()\n {\n return false;\n }", "protected function _getToUnicode() {}", "function win2utf($val,$always=false) { #trace();\r\n global $ezer_mysql_cp;\r\n if ( $always || !$ezer_mysql_cp || $ezer_mysql_cp=='cp1250' ) {\r\n $val= strtr($val, \"\\x9E\\x9A\\x9D\\x8E\\x8A\\x8D\", \"\\xBE\\xB9\\xBB\\xAE\\xA9\\xAB\");\r\n $val= mb_convert_encoding($val,'UTF-8','ISO-8859-2');\r\n }\r\n return $val;\r\n}", "function encoding_conv($var, $enc_out, $enc_in='utf-8')\r\n{\r\n$var = htmlentities($var, ENT_QUOTES, $enc_in);\r\nreturn html_entity_decode($var, ENT_QUOTES, $enc_out);\r\n}", "public function getContentEncoding();", "public function setUTF()\n\t{\n\t\t$this->connect();\n\n\t\treturn false;\n\t}", "function uni2utf8($uniescape)\n\t{\n\t\t$c = \"\";\n\t\t\n\t\t$n = intval(substr($uniescape, -4), 16);\n\t\tif ($n < 0x7F) {// 0000-007F\n\t\t\t$c .= chr($n);\n\t\t} elseif ($n < 0x800) {// 0080-0800\n\t\t\t$c .= chr(0xC0 | ($n / 64));\n\t\t\t$c .= chr(0x80 | ($n % 64));\n\t\t} else {\t\t\t\t// 0800-FFFF\n\t\t\t$c .= chr(0xE0 | (($n / 64) / 64));\n\t\t\t$c .= chr(0x80 | (($n / 64) % 64));\n\t\t\t$c .= chr(0x80 | ($n % 64));\n\t\t}\n\t\treturn $c;\n\t}", "function utf8encode($string){\n\tif(function_exists('mb_convert_encoding')){\n\t\t return mb_convert_encoding($string, \"UTF-8\", mb_detect_encoding($string));\n\t}else{\n\t\treturn utf8_encode($string);\n\t}\n}", "public static function setCharsetEncoding () {\r\n\t\tif ( self::$instance == null ) {\r\n\t\t\tself::getInstance ();\r\n\t\t}\r\n\t\tself::$instance->exec (\r\n\t\t\t\"SET NAMES 'utf8';\r\n\t\t\tSET character_set_connection=utf8;\r\n\t\t\tSET character_set_client=utf8;\r\n\t\t\tSET character_set_results=utf8\" );\r\n\t}", "public function getEncoding(): string;", "function encode($str)\n{\n\treturn mb_convert_encoding($str,'UTF-8');\n}", "public function getContentEncoding()\n {\n }", "function TxtEncoding4Soap($txt){\r\n $to = $GLOBALS[\"POSTA_SECURITY\"]->Security->configuration['charset'];\r\n return iconv('UTF-8',$to, $txt);\r\n}", "function seems_utf8($str)\n {\n }", "function setDoXmlUtf8Encoding($value)\n {\n $this->_props['DoXmlUtf8Encoding'] = $value;\n }", "function utf8init()\n{\n mb_internal_encoding('UTF-8');\n\n // Tell PHP that we'll be outputting UTF-8 to the browser\n mb_http_output('UTF-8');\n\n //$str = json_encode($arr, JSON_UNESCAPED_UNICODE); //这样我们存进去的是就是中文了,那么取出的也就是中文了\n\n}", "function echo8($txt) {\n\techo $txt;\n\t//echo utf8_decode($txt);\n}", "function encodeTuulo'Esse($text)\r\n\t{\r\n\t\t// Activate tanya following line manka antaed\r\n\t\t// $text = \"=?{$sina->charSet}?B?\".base64_encode($text).\"?=\";\r\n\t\treturn $text;\r\n\t}", "function wp_set_internal_encoding()\n {\n }", "public function encode_to_utf8(&$item, $key)\n\t{\n\t\tif(mb_detect_encoding($item) !== 'ASCII')\n\t\t{\n\t\t\t$item = utf8_encode($item);\n\t\t}\t\t\n\t}", "function win1252_to_utf8($data){\r\n\treturn iconv(\"Windows-1252\", \"UTF-8\", $data);\r\n}", "function __toString(){\n\t\treturn \"UTF-8\";\n\t}", "protected function _encode($str = '') {\n\t\treturn iconv(\"UTF-8\",\"WINDOWS-1257\", html_entity_decode($str, ENT_COMPAT, 'utf-8'));\n//\t\treturn $str;\n\t}", "function fixEncoding($in_str) \r\n{ \r\n $cur_encoding = mb_detect_encoding($in_str) ; \r\n if($cur_encoding == \"UTF-8\" && mb_check_encoding($in_str,\"UTF-8\")) \r\n return $in_str; \r\n else \r\n return utf8_encode($in_str); \r\n}", "function utf8($str)\n{\n if(mb_detect_encoding($str) == \"UTF-8\" && mb_check_encoding($str,\"UTF-8\")) return $str;\n else return utf8_encode($str);\n}", "function unicode_encode( $name )\r\n{\r\n\t\t\t\t$name = iconv( \"UTF-8\", \"UCS-2\", $name );\r\n\t\t\t\t$len = strlen( $name );\r\n\t\t\t\t$str = \"\";\r\n\t\t\t\t$i = 0;\r\n\t\t\t\tfor ( ;\t$i < $len - 1;\t$i += 2\t)\r\n\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$c = $name[$i];\r\n\t\t\t\t\t\t\t\t$c2 = $name[$i + 1];\r\n\t\t\t\t\t\t\t\tif ( 0 < ord( $c ) )\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t$c2 = base_convert( ord( $c2 ), 10, 16 );\r\n\t\t\t\t\t\t\t\t\t\t\t\tif ( strlen( $c2 ) == 1 )\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$c2 = \"0\".$c2;\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t$str .= \"\\\\u\".base_convert( ord( $c ), 10, 16 ).$c2;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t$str .= $c2;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn $str;\r\n}", "function sendUnicode()\n {\n $fieldcnt = 6;\n $fieldstring = \"Userid=$this->username&pwd=$this->password&APIKEY=$this->apikey&MSG=$this->msgtext&FROM=$this->from&To=$this->to\";\n\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $this->base_url_SendSMSUnicode);\n curl_setopt($ch, CURLOPT_POST, $fieldcnt);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $fieldstring);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n $res = curl_exec($ch);\n curl_close($ch);\n return $res;\n }", "public function encoding($encoding);", "function convert_to_utf8($str)\n{\n\t$old_charset = $_SESSION['old_charset'];\n\t\n\tif ($str === null || $str == '' || $old_charset == 'UTF-8')\n\t\treturn $str;\n\n\t$save = $str;\n\n\t// Replace literal entities (for non-UTF-8 compliant html_entity_encode)\n\tif (version_compare(PHP_VERSION, '5.0.0', '<') && $old_charset == 'ISO-8859-1' || $old_charset == 'ISO-8859-15')\n\t\t$str = html_entity_decode($str, ENT_QUOTES, $old_charset);\n\n\tif ($old_charset != 'UTF-8' && !seems_utf8($str))\n\t{\n\t\tif (function_exists('iconv'))\n\t\t\t$str = iconv($old_charset == 'ISO-8859-1' ? 'WINDOWS-1252' : $old_charset, 'UTF-8', $str);\n\t\telse if (function_exists('mb_convert_encoding'))\n\t\t\t$str = mb_convert_encoding($str, 'UTF-8', $old_charset == 'ISO-8859-1' ? 'WINDOWS-1252' : 'ISO-8859-1');\n\t\telse if ($old_charset == 'ISO-8859-1')\n\t\t\t$str = utf8_encode($str);\n\t}\n\n\t// Replace literal entities (for UTF-8 compliant html_entity_encode)\n\tif (version_compare(PHP_VERSION, '5.0.0', '>='))\n\t\t$str = html_entity_decode($str, ENT_QUOTES, 'UTF-8');\n\n\t// Replace numeric entities\n\t$str = preg_replace_callback('/&#([0-9]+);/', 'utf8_callback_1', $str);\n\t$str = preg_replace_callback('/&#x([a-f0-9]+);/i', 'utf8_callback_2', $str);\n\n\t// Remove \"bad\" characters\n\t$str = remove_bad_characters($str);\n\n\treturn $str;//($save != $str);\n}", "public static function content_encoding()\n {\n }", "public function encode($data) {}", "function convert_to_latin1($obj)\n{\n global $config;\n $ret = $obj;\n // wenn die Verbindung zur Datenbank nicht auf utf8 steht, dann muessen die Rückgaben in utf8 gewandelt werden,\n // da die Webseite utf8-kodiert ist\n if ($config['mysql_can_change_encoding'] == false && $config['mysql_standard_character_set'] != 'utf8') {\n if (is_array($obj)) {\n foreach ($obj as $key => $val) {\n $obj[$key] = utf8_decode($val);\n }\n }\n if (is_string($obj)) {\n $obj = utf8_decode($obj);\n }\n $ret = $obj;\n }\n\n return $ret;\n}", "public function encode($data) {}", "public function encode($data) {}", "public function encode($data) {}", "public function encode($data) {}", "function p_enc($string) {\r\n $char_encoded = mb_convert_encoding($string, 'UTF-8', 'SJIS');\r\n return urlencode($char_encoded);\r\n}", "public function getEncoding();", "public function updateAutoEncoding() {}", "function fixEncoding($in_str)\r\n\r\n{\r\n\r\n $cur_encoding = mb_detect_encoding($in_str) ;\r\n\r\n if($cur_encoding == \"UTF-8\" && mb_check_encoding($in_str,\"UTF-8\"))\r\n\r\n return $in_str;\r\n\r\n else\r\n\r\n return utf8_encode($in_str);\r\n\r\n}", "public function get_encoding()\n {\n }", "function setEncoding($encode){\n\t\t$this->encodetext=$encode;\n\t}", "function html_to_utf8 ($data)\r\n {\r\n return preg_replace(\"/\\\\&\\\\#([0-9]{3,10})\\\\;/e\", '_html_to_utf8(\"\\\\1\")', $data);\r\n }", "function utf8Encode($attributes)\n {\n return $this->_utf8($attributes, 'utf8_encode');\n }", "function utf2win($val,$always=false) {\r\n global $ezer_mysql_cp;\r\n if ( $always || !$ezer_mysql_cp || $ezer_mysql_cp=='cp1250' ) {\r\n $val= iconv(\"utf-8\", \"windows-1250\", urldecode(mysql_real_escape_string($val)));\r\n }\r\n return $val;\r\n}", "static public function stringToUtf8($string) {\n if ($GLOBALS['LANG']->charSet == '' || $GLOBALS['LANG']->charSet == 'iso-8859-1') {\n return utf8_encode($string);\n } else {\n return $string;\n }\n\t}", "function _encoding($val)\n{\n\tif ( is_string($val) )\n\t\t$val = iconv('cp1251', 'utf-8', $val);\n\t\n\tif ( is_array($val) )\n\t\tforeach ($val as $k => $v)\n\t\t\t\t$val[$k] = _encoding($v);\n\t\t\t\t\n\treturn $val;\n}", "function getDoXmlUtf8Encoding()\n {\n return $this->_props['DoXmlUtf8Encoding'];\n }", "private function uniConvert ()\n\t\t{\n\t\t\t return preg_replace(\"/\\\\\\\\u([a-f0-9]{4})/e\",\n \"iconv('UCS-4LE','UTF-8',pack('V', hexdec('U$1')))\",\n json_encode($this->result));\n\t\t}", "protected function _encode($str = '') {\n\t\treturn iconv(\"UTF-8\",\"UTF-8//IGNORE\", html_entity_decode($str, ENT_COMPAT, 'utf-8'));\n\t}", "function pdo_client_encoding($link=NULL) {\r\n return pdo_query(\"SELECT @@character_set_client AS cs\", pdo_handle($link))->fetchObject()->cs;\r\n }", "abstract function encode($s);", "protected function setUtf8Context()\n {\n setlocale(LC_ALL, $locale = 'en_US.UTF-8');\n putenv('LC_ALL=' . $locale);\n }", "function utf8_to_win1252($data){\r\n\treturn iconv(\"UTF-8\", \"Windows-1252\", $data);\r\n}", "function extraeTipo($idTipo)\n{\n $link = conection();\n \n $query = \"select * from Tipo_Raza where idTipo = '$idTipo'\";\n $result = mysqli_query($link, $query);\n \n $array = mysqli_fetch_assoc($result);\n \n $parseUTF8 = [\"idTipo\" => $array[\"idTipo\"],\n \"tamano\" => utf8_encode($array[\"tamano\"])];\n \n mysqli_close($link);\n return $parseUTF8;\n}", "function encodeData($data)\n {\n if (is_array($data)) {\n /*\n * Traitement des tableaux\n */\n foreach ($data as $key => $value) {\n $data[$key] = $this->encodeData($value);\n }\n } else {\n /*\n * Traitement des chaines individuelles\n */\n if ($this->typeDatabase == 'pgsql') {\n if ($this->UTF8 && mb_detect_encoding($data) != \"UTF-8\") {\n $data = mb_convert_encoding($data, 'UTF-8');\n }\n $data = pg_escape_string($data);\n } else {\n $data = addslashes($data);\n }\n }\n return $data;\n }", "abstract function encode($data);", "public function encode($data);", "public function encode($data);", "public function encode($data);", "private function convToOutputCharset($str,$pagecodefrom='UTF-8')\n\t{\n\t\tglobal $conf;\n\t\tif ($pagecodefrom == 'ISO-8859-1' && $conf->file->character_set_client == 'UTF-8') $str=utf8_encode($str);\n\t\tif ($pagecodefrom == 'UTF-8' && $conf->file->character_set_client == 'ISO-8859-1') $str=utf8_decode($str);\n\t\treturn $str;\n\t}", "protected function setUtf8Context()\n {\n $locale = 'en_US.UTF-8';\n setlocale(LC_ALL, $locale);\n putenv('LC_ALL=' . $locale);\n }", "protected function getCharsetConversion() {}", "function convFromOutputCharset($str,$pagecodeto='UTF-8')\n\t{\n\t\tglobal $conf;\n\t\tif ($pagecodeto == 'ISO-8859-1' && $conf->file->character_set_client == 'UTF-8') $str=utf8_decode($str);\n\t\tif ($pagecodeto == 'UTF-8' && $conf->file->character_set_client == 'ISO-8859-1') $str=utf8_encode($str);\n\t\treturn $str;\n\t}", "function tarkista($s) {\n\t\n\t$etsi = array('#', '´', '%', '|', '--', '\\t');\n\t$korv = array('&#35;', '&#39;', '&#37;', '&#124;', '&#150;', '&nbsp;');\n\n\t$s = htmlspecialchars($s);\n\t$s = trim(str_replace($etsi, $korv, $s));\n\t$s = stripslashes($s);\n\t$enc = mb_detect_encoding($s, 'UTF-8', true);\n\n\tif ($enc == 'UTF-8'){\n\t\treturn $s;\n\t} else {\n\t\treturn utf8_encode($s);\n\t}\n\t\n}", "function _encoding(&$text, $in_charset, $out_charset)\r\n\t{\r\n\t\t// refer to schinese.php for example\r\n\t\t$text =& XoopsLocal::convert_encoding($text, $out_charset, $in_charset);\r\n\t}", "public static function encoding($value) {\n return iconv( \"UTF-8\", \"windows-1251//TRANSLIT\", $value);\n }", "public static function setUtf8EncodingHeader() : void {\n if (!headers_sent()) {\n header('Content-Type: text/html; charset=utf-8');\n }\n }", "private function handle_encoding($string)\n {\n switch ($this->get_option('encode')) {\n case 'utf8':\n return $string;\n case 'iso88591':\n return utf8_encode($string);\n default:\n return $string;\n }\n }", "function utf8ize($d) {\n if (is_array($d)) {\n foreach ($d as $k => $v) {\n $d[$k] = utf8ize($v);\n }\n } else if (is_string ($d)) {\n return utf8_encode($d);\n }\n return $d;\n}", "function convert_data_encodings($known_utf8 = false)\n{\n global $VALID_ENCODING, $CONVERTED_ENCODING;\n $VALID_ENCODING = true;\n\n if ($CONVERTED_ENCODING) {\n return; // Already done it\n }\n\n if (preg_match('#^[\\x00-\\x7F]*$#', serialize($_POST) . serialize($_GET) . serialize($_FILES)) != 0) { // Simple case, all is ASCII\n $CONVERTED_ENCODING = true;\n return;\n }\n\n require_code('character_sets');\n _convert_data_encodings($known_utf8);\n}", "function encode($string){\n return htmlentities($string, ENT_QUOTES, 'UTF-8');\n}", "function convert_to_utf8($data, $encoding) {\n if (function_exists('iconv')) {\n $out = @iconv($encoding, 'utf-8', $data);\n }\n else if (function_exists('mb_convert_encoding')) {\n $out = @mb_convert_encoding($data, 'utf-8', $encoding);\n }\n else if (function_exists('recode_string')) {\n $out = @recode_string($encoding .'..utf-8', $data);\n }\n else {\n /* watchdog('php', t(\"Unsupported encoding '%s'. Please install iconv, GNU\nrecode or mbstring for PHP.\", array('%s' => $encoding)), WATCHDOG_ERROR); */\n return FALSE;\n }\n return $out;\n}", "function wp_encode_emoji($content)\n {\n }", "abstract public function encode($data);", "function toUtf8(&$v, $k) {\n\t$v = utf8_encode($v);\n}", "function get_encoded_string ($str) {\n setlocale(LC_ALL, 'fr_FR.UTF-8');\n return iconv('UTF-8', 'ASCII//TRANSLIT', $str);\n}", "function _encode($text)\r\n\t{\r\n\t\t$source_encoding = mb_detect_encoding($text);\r\n\t\t$target_encoding = _get_codeset();\r\n\t\tif ($source_encoding != $target_encoding) {\r\n\t\t\treturn mb_convert_encoding($text, $target_encoding, $source_encoding);\r\n\t\t} else {\r\n\t\t\treturn $text;\r\n\t\t}\r\n\t}", "public static function xmlEncode($_str,$_latin=FALSE) {\n\t\treturn strtr($_str,self::xmlTable($_latin));\n\t}", "function unicode2charset($texte, $charset='AUTO') {\n\tstatic $CHARSET_REVERSE;\n\tstatic $trans = array();\n\t\n\tif ($charset == 'AUTO')\n\t\t$charset = $GLOBALS['meta']['charset'];\n$charset='utf-8';\n\tswitch($charset) {\n\tcase 'utf-8':\n\t\treturn unicode_to_utf_8($texte);\n\t\tbreak;\n\n\tdefault:\n\t\t$charset = load_charset($charset);\n\n\t\tif (!is_array($CHARSET_REVERSE[$charset])) {\n\t\t\t$CHARSET_REVERSE[$charset] = array_flip($GLOBALS['CHARSET'][$charset]);\n\t\t}\n\n\t\tif (!isset($trans[$charset])){\n\t\t\t$trans[$charset]=array();\n\t\t\t$t = &$trans[$charset];\n\t\t\tfor($e=128;$e<255;$e++){\n\t\t\t\t$h = dechex($e);\n\t\t\t\tif ($s = isset($CHARSET_REVERSE[$charset][$e])){\n\t\t\t\t\t$s = $CHARSET_REVERSE[$charset][$e];\n\t\t\t\t\t$t['&#'.$e.';'] = $t['&#0'.$e.';'] = $t['&#00'.$e.';'] = chr($s);\n\t\t\t\t\t$t['&#x'.$h.';'] = $t['&#x0'.$h.';'] = $t['&#x00'.$h.';'] = chr($s);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$t['&#'.$e.';'] = $t['&#0'.$e.';'] = $t['&#00'.$e.';'] = chr($e);\n\t\t\t\t\t$t['&#x'.$h.';'] = $t['&#x0'.$h.';'] = $t['&#x00'.$h.';'] = chr($e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$texte = strtr($texte, $trans[$charset]);\n\t\treturn $texte;\n\t}\n}", "function encodeFormValue ($s) {\n return htmlentities($s, ENT_COMPAT|ENT_QUOTES,'ISO-8859-1', true); \n}", "function sanitize_utf8($str){\n return htmlentities($str);\n }", "function encode($var)\n {\n switch (gettype($var)) {\n case 'boolean':\n return $var ? 'true' : 'false';\n\n case 'NULL':\n return 'null';\n\n case 'integer':\n return (int) $var;\n\n case 'double':\n case 'float':\n return (float) $var;\n\n case 'string':\n // STRINGS ARE EXPECTED TO BE IN ASCII OR UTF-8 FORMAT\n $ascii = '';\n $strlen_var = strlen($var);\n\n /*\n * Iterate over every character in the string,\n * escaping with a slash or encoding to UTF-8 where necessary\n */\n for ($c = 0; $c < $strlen_var; ++$c) {\n\n $ord_var_c = ord($var{$c});\n\n switch (true) {\n case $ord_var_c == 0x08:\n $ascii .= '\\b';\n break;\n case $ord_var_c == 0x09:\n $ascii .= '\\t';\n break;\n case $ord_var_c == 0x0A:\n $ascii .= '\\n';\n break;\n case $ord_var_c == 0x0C:\n $ascii .= '\\f';\n break;\n case $ord_var_c == 0x0D:\n $ascii .= '\\r';\n break;\n\n case $ord_var_c == 0x22:\n case $ord_var_c == 0x2F:\n case $ord_var_c == 0x5C:\n // double quote, slash, slosh\n $ascii .= '\\\\'.$var{$c};\n break;\n\n case (($ord_var_c >= 0x20) && ($ord_var_c <= 0x7F)):\n // characters U-00000000 - U-0000007F (same as ASCII)\n $ascii .= $var{$c};\n break;\n\n case (($ord_var_c & 0xE0) == 0xC0):\n // characters U-00000080 - U-000007FF, mask 110XXXXX\n // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8\n $char = pack('C*', $ord_var_c, ord($var{$c + 1}));\n $c += 1;\n $utf16 = $this->utf82utf16($char);\n $ascii .= sprintf('\\u%04s', bin2hex($utf16));\n break;\n\n case (($ord_var_c & 0xF0) == 0xE0):\n // characters U-00000800 - U-0000FFFF, mask 1110XXXX\n // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8\n $char = pack('C*', $ord_var_c,\n ord($var{$c + 1}),\n ord($var{$c + 2}));\n $c += 2;\n $utf16 = $this->utf82utf16($char);\n $ascii .= sprintf('\\u%04s', bin2hex($utf16));\n break;\n\n case (($ord_var_c & 0xF8) == 0xF0):\n // characters U-00010000 - U-001FFFFF, mask 11110XXX\n // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8\n $char = pack('C*', $ord_var_c,\n ord($var{$c + 1}),\n ord($var{$c + 2}),\n ord($var{$c + 3}));\n $c += 3;\n $utf16 = $this->utf82utf16($char);\n $ascii .= sprintf('\\u%04s', bin2hex($utf16));\n break;\n\n case (($ord_var_c & 0xFC) == 0xF8):\n // characters U-00200000 - U-03FFFFFF, mask 111110XX\n // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8\n $char = pack('C*', $ord_var_c,\n ord($var{$c + 1}),\n ord($var{$c + 2}),\n ord($var{$c + 3}),\n ord($var{$c + 4}));\n $c += 4;\n $utf16 = $this->utf82utf16($char);\n $ascii .= sprintf('\\u%04s', bin2hex($utf16));\n break;\n\n case (($ord_var_c & 0xFE) == 0xFC):\n // characters U-04000000 - U-7FFFFFFF, mask 1111110X\n // see http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8\n $char = pack('C*', $ord_var_c,\n ord($var{$c + 1}),\n ord($var{$c + 2}),\n ord($var{$c + 3}),\n ord($var{$c + 4}),\n ord($var{$c + 5}));\n $c += 5;\n $utf16 = $this->utf82utf16($char);\n $ascii .= sprintf('\\u%04s', bin2hex($utf16));\n break;\n }\n }\n\n return '\"'.$ascii.'\"';\n\n case 'array':\n /*\n * As per JSON spec if any array key is not an integer\n * we must treat the the whole array as an object. We\n * also try to catch a sparsely populated associative\n * array with numeric keys here because some JS engines\n * will create an array with empty indexes up to\n * max_index which can cause memory issues and because\n * the keys, which may be relevant, will be remapped\n * otherwise.\n *\n * As per the ECMA and JSON specification an object may\n * have any string as a property. Unfortunately due to\n * a hole in the ECMA specification if the key is a\n * ECMA reserved word or starts with a digit the\n * parameter is only accessible using ECMAScript's\n * bracket notation.\n */\n\n // treat as a JSON object\n if (is_array($var) && count($var) && (array_keys($var) !== range(0, sizeof($var) - 1))) {\n $properties = array_map(array($this, 'name_value'),\n array_keys($var),\n array_values($var));\n\n foreach($properties as $property) {\n if(Services_JSON::isError($property)) {\n return $property;\n }\n }\n\n return '{' . join(',', $properties) . '}';\n }\n\n // treat it like a regular array\n $elements = array_map(array($this, 'encode'), $var);\n\n foreach($elements as $element) {\n if(Services_JSON::isError($element)) {\n return $element;\n }\n }\n\n return '[' . join(',', $elements) . ']';\n\n case 'object':\n $vars = get_object_vars($var);\n\n $properties = array_map(array($this, 'name_value'),\n array_keys($vars),\n array_values($vars));\n\n foreach($properties as $property) {\n if(Services_JSON::isError($property)) {\n return $property;\n }\n }\n\n return '{' . join(',', $properties) . '}';\n\n default:\n return ($this->use & SERVICES_JSON_SUPPRESS_ERRORS)\n ? 'null'\n : new Services_JSON_Error(gettype($var).\" can not be encoded as JSON string\");\n }\n }", "function convert_to_utf8(string $str): string\n {\n return preg_replace_callback(\n '/\\\\\\\\u([0-9a-fA-F]{4})/',\n static function (array $match): string {\n return mb_convert_encoding(pack('H*', $match[1]), 'UTF-8', 'UCS-2BE');\n },\n $str\n );\n }", "function unicode_conv($originalString) {\n $replacedString = preg_replace(\"#\\\\\\\\u(\\w{4})#\", \"&#x$1;\", $originalString);\n $unicodeString = mb_convert_encoding($replacedString, 'ISO-8859-1', 'HTML-ENTITIES');\n return $unicodeString;\n}" ]
[ "0.75446504", "0.7289369", "0.6893151", "0.67974335", "0.67942053", "0.6765652", "0.6666312", "0.66527045", "0.66292256", "0.6622444", "0.6515897", "0.6464597", "0.6427954", "0.6419815", "0.6391757", "0.6387482", "0.6361808", "0.6353403", "0.6350187", "0.63097686", "0.6295162", "0.6280818", "0.62642133", "0.6257367", "0.6252626", "0.6243767", "0.622625", "0.6212373", "0.6207669", "0.62065893", "0.61969155", "0.6188857", "0.6183035", "0.61791104", "0.6171167", "0.6161463", "0.6149755", "0.6144045", "0.6123865", "0.6117708", "0.61141074", "0.6092678", "0.6087007", "0.60853875", "0.60827506", "0.6081429", "0.60796994", "0.60788167", "0.60788167", "0.60788167", "0.60788167", "0.60723394", "0.60648125", "0.60523784", "0.60442406", "0.60307634", "0.60247475", "0.6015788", "0.60122323", "0.6010999", "0.6006883", "0.59823525", "0.59614193", "0.5956025", "0.5955397", "0.59487784", "0.593787", "0.59294826", "0.5921998", "0.5908109", "0.58984625", "0.5887965", "0.5881512", "0.5881512", "0.5881512", "0.58769447", "0.5867957", "0.5861877", "0.58600736", "0.5848347", "0.58346057", "0.58304715", "0.5821526", "0.5815917", "0.5802873", "0.57924885", "0.57913756", "0.5786813", "0.5783926", "0.5782422", "0.5779589", "0.5778956", "0.5778182", "0.57600325", "0.5758549", "0.5752138", "0.57497877", "0.5742927", "0.57304466", "0.572773" ]
0.61451244
37
Reinitialise le tableau des erreurs
function resetErrorData() { $this->errorData = array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _initsTable() {}", "public function resetTable();", "function restablecer()\n {\n $this->_datos = null;\n $this->_errores = array();\n }", "public function initTable(){\n\t\t\t\n\t\t}", "public function reset_tableaux() {\n\t\treturn $this->setArbreMoniteurs ( array () )\n\t\t\t->setArbreGroupes ( array () )\n\t\t\t->setArbreMachines ( array () )\n\t\t\t->setDependance ( array () )\n\t\t\t->setGroupeNumbers ( array () );\n\t}", "function reset(){\n\t\t$this->__columns = array();\n\t\t$this->__actions = array();\n\t}", "function init(&$msg) {\n clearDB();\n $msg.= \"<br>Tabulky vyprazdnené\";\n resetIDs();\n $msg.= \"<br>ID zresetované\";\n insertAll($msg);\n}", "private function reset(){\n\n\t\tforeach($this as $k=>$v) unset($this->$k);\n\n\t\t$this::$map = $this->maper();\n\n\t\t$this->name = \"\";\n\n\t\t$this->address = [];\n\n\t\t$this->tableclass();\n\n\t}", "public function initTables(): void\n {\n $table = TableRegistry::getTableLocator()->get('Qobo/Survey.Surveys');\n $this->Surveys = $table;\n\n $table = TableRegistry::getTableLocator()->get('Qobo/Survey.SurveyResults');\n $this->SurveyResults = $table;\n\n $table = TableRegistry::getTableLocator()->get('Qobo/Survey.SurveyEntries');\n $this->SurveyEntries = $table;\n\n $table = TableRegistry::getTableLocator()->get('Qobo/Survey.SurveyEntryQuestions');\n $this->SurveyEntryQuestions = $table;\n }", "protected function resetTableInfo()\n {\n $this->constraintLoader = null;\n $this->columnLoader = null;\n $this->identityLoader = null;\n }", "protected function resetExistingTables()\n {\n $this->existingTables = null;\n }", "private function prepareTables() {}", "private function reset()\n\t{\t\t\n\t\t$this->limit = null;\n\t\t\n\t\t$this->table = null;\n\t\t\n\t\t$this->offset = null;\n\t\t\n\t\t$this->data = [];\n\t\t\n\t\t$this->joins = [];\n\t\t\n\t\t$this->wheres = [];\n\t\t\n\t\t$this->orderBy = [];\n\t\t\n\t\t$this->selects = [];\n\t\t\n\t\t$this->bindings = [];\n\t\t\t\n\t}", "function afterCreateTable(){\n $aData = array(\n array( \"Intranet\", \"INTR\", 1 ),\n array( \"Document Management\", \"DOCU\" ),\n array( \"Email\", \"EMAI\" ),\n array( \"General\", \"GENE\" )\n );\n \n foreach( $aData as $row ){\n $this->id = 0;\n $this->aFields[\"name\"]->value = $row[0];\n $this->aFields[\"code\"]->value = $row[1];\n \n // Default option\n if( array_key_exists( 2, $row ) ) $this->aFields[\"is_default\"]->value = $row[2];\n else $this->aFields[\"is_default\"]->value = 0;\n \n $this->save();\n }\n \n // Make everything point to the default\n $sql = \"SELECT id FROM issue_system WHERE is_default = 1\";\n $db = new DB();\n $db->query( $sql );\n $row = $db->fetchRow();\n $sql = \"UPDATE issue SET issue_system_id = \".$row[\"id\"];\n $db->query( $sql );\n \n }", "public function __construct()\n\t{\n\t\t$this->tableObjects = Array();\n\t\t$this->count = 0;\n\t}", "public function reset() {\n $this->databasefieldcount = 0;\n $this->databaserecordcount = 0;\n\n parent::reset();\n }", "function resetEverything() {\n\t\texecSql(\"drop table gamestate_characters\");\n\t\texecSql(\"create table gamestate_characters select * from initialstate_players\");\n\t\t$this->printState();\n\n\t}", "public function reloadTableNames() {\n\t\t$this->_loadTableNames();\n\t}", "public function initEtablissements()\n {\n $this->collEtablissements = new PropelObjectCollection();\n $this->collEtablissements->setModel('Etablissement');\n }", "public function reset_rezultati()\n {\n $query = $this->query(\"SELECT * FROM rezultati;\");\n foreach ($query->getResultArray() as $row)\n {\n $this->delete($row['idrezultati']);\n }\n }", "function refreshTable(){\n\t\t$this->table = array();\n\n\t\t//set the column headers\n\t\t$this->table[0] = $this->getColumnHeaders();\n\n\t\t//add a row for each user\n\t\tforeach ($this->users as $name => $schedule) {\n\t\t\t$row = array();\n\n\t\t\t//if this user is being edited\n\t\t\tif($this->currentEdit == $name) $row = $this->userEditRow($name, $schedule, $this->table[0]);\n\t\t\telse $row = $this->userDisplayRow($name, $schedule, $this->table[0]);\n\t\t\t\n\t\t\tarray_push($this->table, $row);\n\t\t}\n\n\t\tarray_push($this->table, $this->genSubmitRow());\n\n\t\tarray_push($this->table, $this->genTotalRow());\n\n\t\t$this->logMsg(SUCCESS, 'internal table constructed');\n\t}", "public function refreshTable();", "public function initRowsHolders()\n {\n $this->phantomIdMap = [\n 'tasks' => [],\n 'calendars' => [],\n 'resources' => []\n ];\n\n $this->updatedRows = [\n 'tasks' => [],\n 'calendars' => [],\n 'resources' => []\n ];\n\n $this->removedRows = [\n 'tasks' => [],\n 'assignments' => []\n ];\n }", "public function uninitialize()\n {\n $table_name = $this->get_table_name();\n $sql = \"DROP TABLE IF EXISTS $table_name;\";\n\n if (!is_null($this->wpdb)) {\n $this->wpdb->query($sql);\n }\n }", "private function _set_table()\n\t{\n\t\t$dossier = $this->config->item('dossier');\n\t\tif($dossier === false)\n\t\t{\n\t\t\tlog_message('info', '\"Dossier\" params is not set');\n\t\t\treturn;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->_dossier = $dossier;\n\t\t\t$this->_table = $this->_dossier . '.' . $this->_table;\n\t\t}\n\t}", "public function reinit()\n {\n }", "protected function startTable() {}", "function revert_table() {\r\n $this->_table = $this->_table_org;\r\n $this->_table_org = NULL;\r\n }", "protected function reset() {\n //query builder reset\n $this->queryBuilder->reset();\n $this->numRows = 0;\n $this->insertId = null;\n $this->query = null;\n $this->result = array();\n $this->data = array();\n $this->queryCount = 0;\n }", "public function reset()\n {\n $this->_metaData = array();\n $this->_columnMap = array();\n }", "public function reset()\n\t{\n\t\t$this->queries = [];\n\t\t$this->count = [\n\t\t\t'total' => 0, 'slow' => 0, 'select' => 0, 'insert' => 0, 'update' => 0, 'delete' => 0, 'other' => 0\n\t\t];\n\n\t\t$this->modelsActions = [];\n\t\t$this->modelsCount = [\n\t\t\t'retrieved' => [], 'created' => [], 'updated' => [], 'deleted' => []\n\t\t];\n\n\t\t$this->nextQueryModel = null;\n\t}", "private function init(){\n\t\t$this->conf = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tidier'];\n\t\t// cache all tidy results\n\t\t$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('uid,error_code','tx_tidier_errorcode',1);\n\t\twhile(list($uid,$error_code) = $GLOBALS['TYPO3_DB']->sql_fetch_row($res)){\n\t\t\t$this->errorCodes[$error_code] = $uid;\n\t\t}\n\t}", "private function populateDummyTable() {}", "public function resetVisitor(): void\n {\n $this->tables = array();\n $this->isSelectVisited = false;\n }", "function postCreateTable(){\n\t}", "public function reset(){\r\n try{\r\n self::$PDO->reset();\r\n }\r\n catch(Exception $e){\r\n self::$error_message = $e->getMessage();\r\n self::reportError();\r\n }\r\n }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_RSEED] = null;\n $this->values[self::_HERO_BASES] = array();\n $this->values[self::_HERO_DYNAS] = array();\n }", "function resetErrorList(){\n\t\t$this->_errorList = array();\n\t}", "function _reset()\n {\n foreach ($this->_cols as $col => $val) {\n if (isset($val['default'])) {\n $this->_data[$col] = $val['default'];\n } else {\n $this->_data[$col] = '';\n }\n }\n }", "public function init()\r\r\n {\r\r\n // -------------------------\r\r\n $modelMetier = new Model_DbTable_Metiers();\r\r\n $metiers = $modelMetier->getDatas();\r\r\n $this->view->metiers = $metiers;\r\r\n \r\n // Get notre entreprise text\r\n // ----------------------\r\n $model = new Model_DbTable_Vitrine();\r\n $txtEntreprise = $model->getDatas('notre-entreprise');\r\n $this->view->txtEntreprise = $txtEntreprise;\r\r\n }", "public function init() {\n//\t\tif (checkTable()) {\n//\t\t\t$this->model->upgrade();\n//\t\t}\n//\t\telse {\n\t\t\t$this->model->install();\n\t\t\t$this->loadDefaults();\n//\t\t}\n\t\t\n\t}", "protected static function init()\n\t{\n\t\tif( static::$table === null )\n\t\t{\n\t\t\t// set the table name by Model name\n\t\t\t// Ex: UserModel -> users\n\t\t\tstatic::$table = strtolower( preg_replace('/Model$/', '', get_called_class()) ) . \"s\";\n\t\t}\n\t}", "public function reset()\n {\n $this->values[self::_RECORDS] = array();\n }", "protected function _prepareRowsAction() {\n \n }", "function populate_table()\n\t{\n\t\t$this->table = array();\n\n\t\t$prev_row = array();\n\t\tfor ($i = -1; $i < $this->data_new_len; $i++)\n\t\t{\n\t\t\t$prev_row[$i] = 0;\n\t\t}\n\n\t\tfor ($i = 0; $i < $this->data_old_len; $i++)\n\t\t{\n\t\t\t$this_row = array('-1' => 0);\n\t\t\t$data_old_value = $this->data_old[$i];\n\n\t\t\tfor ($j = 0; $j < $this->data_new_len; $j++)\n\t\t\t{\n\t\t\t\tif ($data_old_value == $this->data_new[$j])\n\t\t\t\t{\n\t\t\t\t\t$this_row[$j] = $prev_row[$j - 1] + 1;\n\t\t\t\t}\n\t\t\t\telse if ($this_row[$j - 1] > $prev_row[$j])\n\t\t\t\t{\n\t\t\t\t\t$this_row[$j] = $this_row[$j - 1];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this_row[$j] = $prev_row[$j];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->table[$i - 1] = $this->compress_row($prev_row);\n\t\t\t$prev_row = $this_row;\n\t\t}\n\t\tunset($prev_row);\n\t\t$this->table[$this->data_old_len - 1] = $this->compress_row($this_row);\n\t}", "function init()\n\t{\n\t\t// Ghetto fix for formText problem\n\t\t$this->view->addHelperPath(ROOT_DIR . '/library/Zarrar/View/HelperFix', 'Zarrar_View_HelperFix');\n\t\t\n\t\t// Disable header file\n\t\t$this->view->headerFile = '_empty.phtml';\n\t\t\n\t\t// Add stylesheet for table\n\t\t$this->view\n\t\t\t->headLink()\n\t\t\t->appendStylesheet(\"{$this->view->dir_styles}/oranges-in-the-sky.css\");\n\t\t\t\n\t\t// Instantiate table for later usage\n\t\t$this->_table = new Study();\n\t}", "function reset_rows()\n{\n}", "public function init()\n {\n parent::init();\n\n $this->deleted = 0;\n }", "public function reset()\n {\n $this->values[self::_USERS] = array();\n $this->values[self::_HIRE_UIDS] = array();\n $this->values[self::_FROM] = null;\n }", "function emptyIndexTable(){\n\t\t$this->ecmDBhandle->truncateTable($this->dfs_db-> table_name);\n\t}", "public function reset() {\n\t\t\tforeach ( $this->dbFields as $property ) {\n\t\t\t\t$this->$property = '';\n\t\t\t}\n\t\t\t$this->pageData = null;\n\t\t\t$this->attributes = null;\n\t\t\t// TODO: set exdata to array()?\n\t\t}", "protected function prepareDetailsTables()\n\t{\n\t}", "function init(){\n\t\t/*\n\t\t * Redefine this object, call parent then use addField to specify which fields\n\t\t * you are going to use\n\t\t */\n\t\tparent::init();\n\t\t$this->table_name = get_class($this);\n\t}", "public function init()\r\n {\r\n $dbTable = new Application_Model_DbTable_Fournisseur();\r\n $this->mapper = new Application_Model_Mapper_Fournisseur($dbTable);\r\n }", "protected function initialize()\n {\n if (!is_array($this->rows)) {\n $this->rows = $this->query->getResult();\n }\n }", "protected function dbReset() {\r\n $this->query_result = '';\r\n }", "protected function init()\r\n {\r\n $this->table_name = 'libelles';\r\n $this->table_type = 'system';\r\n $this->table_gateway_alias = 'Sbm\\Db\\SysTableGateway\\Libelles';\r\n $this->id_name = array(\r\n 'nature',\r\n 'code'\r\n );\r\n }", "public function initCheckInformations()\n\t{\n\t\t$this->collCheckInformations = array();\n\t}", "public function init() {\n $this->table = 'depenses';\n }", "public function reset()\n {\n $this->errors = array();\n }", "function ReInitTableColumns()\n {\n if ($this->debug_mode)\n echo $this->ClassName . \"::ReInitTableColumns();\" . \"<HR>\";\n foreach ($this->form_fields as $prefix => $form) {\n foreach ($form as $i => $field) {\n foreach ($field as $param => $value) {\n //if found database parameters\n if (strpos($param, \"dbfield_\") !== false) {\n $columnparam = substr($param, strlen(\"dbfield_\"), strlen($param));\n $this->Storage->setColumnParameter($field[\"field_name\"], trim($columnparam), $value);\n }\n }\n }\n }\n }", "public function refresh()\n {\n $this->_totalCount = null;\n $this->_models = null;\n $this->_keys = null;\n }", "private function getCleanTables() {\n\t\tunset($this->_vm_product);\n\t\tunset($this->product_id);\n\t\tunset($this->product_sku);\n\t\tunset($this->product_in_stock);\n\t}", "protected function reset() {\n\t\t$this->data = array();\n\t}", "private function resetErrors() {\n $this->errors = array();\n }", "function initialize() {\n\n switch ($this->type) {\n case 'sqlite':\n $query[0] = 'CREATE TABLE `enrolled` (\n `sid` INTEGER PRIMARY KEY,\n `first` TEXT ,\n `last` TEXT);';\n\n $query[1] = 'CREATE TABLE `paid` (\n `sid` INTEGER PRIMARY KEY);';\n\n $query[2] = 'CREATE TABLE `admin` (\n `sid` INTEGER PRIMARY KEY);';\n\n $query[3] = 'CREATE TABLE `log` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `sid` TEXT,\n `event` TEXT,\n `status` TEXT,\n `timestamp` TEXT);';\n \n $query[4] = 'CREATE TABLE `stage` (\n `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n `sid` TEXT,\n `last` TEXT,\n `first` TEXT,\n `dest` TEXT);';\n\t\t\t\t \n\t\t\t\t$query[5] = 'CREATE TABLE `guest` (\n `sid` INTEGER PRIMARY KEY);';\n\n\t\t\t\t \n break;\n\n case 'mysql':\n\n $query[0] = 'CREATE TABLE IF NOT EXISTS `enrolled` (\n `sid` INT NOT NULL ,\n `first` VARCHAR(45) NULL ,\n `last` VARCHAR(45) NULL ,\n PRIMARY KEY (`sid`) );\n ENGINE = InnoDB;';\n\n $query[1] = 'CREATE TABLE IF NOT EXISTS `paid` (\n `sid` INT NOT NULL ,\n PRIMARY KEY (`sid`) )\n ENGINE = InnoDB;';\n\n $query[2] = 'CREATE TABLE IF NOT EXISTS `admin` (\n `sid` INT NOT NULL ,\n PRIMARY KEY (`sid`) )\n ENGINE = InnoDB;';\n\n $query[3] = 'CREATE TABLE IF NOT EXISTS `log` (\n `id` INT NOT NULL ,\n `sid` VARCHAR(45) NULL ,\n `status` VARCHAR(45) NULL,\n `event` VARCHAR(45) NULL ,\n `timestamp` DATETIME NULL ,\n PRIMARY KEY (`id`) )\n ENGINE = InnoDB;';\n\n break;\n\n default:\n throw new Exception($this->type . \" is not a valid database type.\");\n break;\n\n }\n\n foreach ($query as $insert) {\n $this->query($insert);\n }\n \n /**\n * Integrity Checking goes here\n */\n \n }", "public function autoSetTableNames()\n\t{\n\t\t$db = $this->getDatabaseInstance();\n\t\t$query = \"SHOW TABLE STATUS LIKE 'event\\_log%'\";\n\t\t\n\t\t$result = $db->prepare($query);\n\t\t$result->execute();\n\t\t\n\t\t$table_names = array();\n\t\twhile ($row = $result->fetch())\n\t\t{\n\t\t\tif (strcasecmp($row['Engine'], 'MRG_MyISAM'))\n\t\t\t{\n\t\t\t\t$table_names[] = $row['Name'];\n\t\t\t}\n\t\t}\n\t\t\n\t\trsort($table_names);\n\t\t\n\t\t$this->setTableNames($table_names);\n\t\tif (isset($table_names[0]))\n\t\t{\n\t\t\t$this->setTableName($table_names[0]);\n\t\t}\n\t}", "function clear() {\r\n /* clear datasource. you should call this before calling another populate() to avoid datasource gets appended\r\n */\r\n $this->ds = new DataSource;\r\n $this->db_count = 0;\r\n }", "public function clear()\n {\n $this->sql = '';\n $this->columns = array();\n $this->values = array();\n }", "function reset_error_log() {\n $this->error_count = 0;\n $this->error_log = array();\n }", "public function init() {\n\n\t\t$table_maker = new ActionScheduler_LoggerSchema();\n\t\t$table_maker->register_tables();\n\n\t\tparent::init();\n\n\t\tadd_action( 'action_scheduler_deleted_action', [ $this, 'clear_deleted_action_logs' ], 10, 1 );\n\t}", "public static function reset()\n {\n self::$toLoad = array();\n }", "public function reset() {\n $this->num_aliases = 0;\n $this->alias2class = array();\n $this->alias2table = array();\n }", "protected function envelheceErros() {\n\t\t\t$sSQL = \"INSERT INTO aged_rdtb_accounting SELECT * FROM rdtb_accounting WHERE login < date_trunc('day',now() - interval '2 days') AND session_id like 'E:%'\";\n\t\t\t$this->bd->consulta($sSQL,false);\n\t\t\t$sSQL = \"DELETE FROM rdtb_accounting WHERE login < date_trunc('day',now() - interval '2 days') AND session_id like 'E:%'\";\n\t\t\t$this->bd->consulta($sSQL);\n\n\t\t\t$this->vacuum(\"rdtb_accounting\");\n\t\t}", "public function clean(): void\n {\n $this->truncateJournalTable();\n $this->output(\"<success>Table {$this->internalTable} truncated</success>\");\n }", "public function init()\r\n\t{\r\n\t\tif (count($this->table_fields) < 1)\r\n\t\t\treturn false;\r\n\t\tforeach ($this->table_fields as $table_field) {\r\n\t\t\tif ($table_field->get_primary_key()) {\r\n\t\t\t\t$this->id_field = $table_field->get_name();\r\n\t\t\t}\r\n\t\t\tif ($table_field->get_name_key()) {\r\n\t\t\t\t$this->name_fields[] = $table_field->get_name();\r\n\t\t\t}\r\n\t\t\tif ($table_field->get_unike_key()) {\r\n\t\t\t\t$this->unike_keys[] = $table_field->get_name();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function tableWizard() {}", "public function reset()\n {\n $this->values[self::_INDEX] = null;\n $this->values[self::_ITEM_ID] = null;\n $this->values[self::_EXP] = null;\n }", "public function init()\n {\n $sql = \"truncate ranks\";\n $this->getDb()->getPdo()->prepare($sql)->execute();\n }", "public function __construct() {\n parent::__construct();\n $this->_table_columns = array(\"id\", \"entry_date\", \"account_type\", \"entry_value\", \"memo\", \"expense\", \"confirm\", \"deleted\", \"create_stamp\", \"modified_stamp\");\n }", "public static function resetIndex(){\n\t\t$sql = \"TRUNCATE TABLE `documents`\";\n\t\t$result = mysqli_query(self::$conn, $sql) or die(mysqli_error(self::$conn));\n\t\t$sql = \"TRUNCATE TABLE `terms`\";\n\t\t$result = mysqli_query(self::$conn, $sql) or die(mysqli_error(self::$conn));\n\t\t$sql = \"TRUNCATE TABLE `term_documents`\";\n\t\t$result = mysqli_query(self::$conn, $sql) or die(mysqli_error(self::$conn));\n\t\t// delete all files from documents directory\n\t\tarray_map('unlink', glob('documents/' . '*.txt'));\n\t}", "public function indexTable()\n {\n $this->paginate = array('all', 'order' => array('modified' => 'desc'));\n $contentVariableTables = $this->paginate('ContentVariableTable');\n $this->set(compact('contentVariableTables', $contentVariableTables));\n }", "private function _fetch_table()\n {\n if ($this->_table == NULL)\n {\n $this->_table = plural(preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))));\n }\n }", "public function reset() {\n $this->data = array(); \n $this->input = array();\n $this->missing = array();\n $this->invalid = array();\n $this->errors = array();\n $this->error = false;\n }", "public function reset()\n {\n $this->values[self::_GUILDS] = array();\n $this->values[self::_RESULT] = null;\n $this->values[self::_CREATE_COST] = null;\n }", "public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_NAME] = null;\n $this->values[self::_AVATAR] = null;\n $this->values[self::_SLOGAN] = null;\n $this->values[self::_JOIN_TYPE] = null;\n $this->values[self::_JOIN_LIMIT] = null;\n $this->values[self::_MEMBER_CNT] = null;\n $this->values[self::_PRESIDENT] = null;\n $this->values[self::_LIVENESS] = null;\n $this->values[self::_CAN_JUMP] = null;\n }", "public function reset()\n {\n $this->values[self::_EXCAVATE] = array();\n $this->values[self::_SEARCHED_ID] = null;\n $this->values[self::_SEARCH_TIMES] = null;\n $this->values[self::_LAST_SEARCH_TS] = null;\n $this->values[self::_ATTACKING_ID] = null;\n $this->values[self::_BAT_HEROES] = array();\n $this->values[self::_CFG] = null;\n $this->values[self::_HIRE] = null;\n }", "public function reset() : void\n {\n $this->_modified = [];\n $this->_errors = [];\n }", "public function resetData()\r\n {\r\n }", "protected function resetErrors() {\n $this->errors = array();\n }", "public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_TYPE] = null;\n $this->values[self::_START_TIME] = null;\n $this->values[self::_END_TIME] = null;\n $this->values[self::_REWARDS] = array();\n $this->values[self::_TITLE] = null;\n $this->values[self::_DESC] = null;\n $this->values[self::_RULES] = null;\n }", "function initSession(){\n\n\t\t//load resource files\n\t\t$this->refreshDataSet();\n\n\t\tif($this->isFatal())return;\n\n\t\t//check the state\n\t\t$this->checkInput();\n\n\t\t\n\t\tif($this->isFatal())return;\n\n\t\t//construct the table from the data\n\t\t$this->buildTable($this->schedule, $this->users);\n\n\t\tif($this->isFatal())return;\t\n\n\t}", "public function initialize()\n {\n $this->setSchema(\"dldh\");\n $this->setSource(\"pole_error\");\n $this->belongsTo('pole_id', '\\Pole', 'id', ['alias' => 'Pole']);\n $this->belongsTo('worker_id', '\\Worker', 'id', ['alias' => 'Worker']);\n }", "public function reset()\n {\n $this->env = array();\n $this->object_handlers = array();\n $this->pagetitle = '';\n }", "protected function getCleanableTableList() {}", "public function refreshRows(){\n if (count($this->rows) > 0){\n foreach ($this->rows as $row){\n $this->removeRow($row);\n }\n }\n }", "private function reset_internal() {\n\t\t$this->started = false;\n\t\t$this->failed = false;\n\t\t$this->querys = array();\n\t\t$this->querys_info = array();\n\t\t$this->querys_info['exec_times'] = array();\n\t\t$this->querys_info['explain_results'] = array();\n\t}", "public function init()\n {\n $this->_items = $this->getTable('Item');\n $this->_exhibits = $this->getTable('NeatlineExhibit');\n $this->_editions = $this->getTable('NeatlineEdition');\n\n // Get exhibit and document markup.\n $item = $this->_items->find($this->_request->id);\n $edition = $this->_editions->findByItem($item);\n $exhibit = $edition->getExhibit();\n $document = $edition->getDocumentMarkup();\n\n // Push records.\n $this->view->exhibit = $exhibit;\n $this->view->edition = $edition;\n $this->view->document = $document;\n }", "public function Clear() {\n $this->_row = '';\n $this->_table = '';\n $this->_itemcount = 0;\n $this->_rown = 0;\n }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_HERO] = null;\n $this->values[self::_ITEMS] = array();\n }", "public function reset()\n {\n $this->data = array();\n }" ]
[ "0.7139228", "0.6847646", "0.68023694", "0.67820275", "0.669525", "0.65297914", "0.64202714", "0.636681", "0.6323655", "0.62756693", "0.6222451", "0.62014925", "0.61881983", "0.61550087", "0.61237204", "0.60943145", "0.6082738", "0.60801494", "0.6072485", "0.60670114", "0.60603666", "0.6041192", "0.600572", "0.59622127", "0.5947977", "0.5947044", "0.5887431", "0.5858012", "0.5827997", "0.5823354", "0.5822935", "0.58209014", "0.57944405", "0.5786648", "0.5785558", "0.5781253", "0.5777286", "0.5769038", "0.57615006", "0.5751599", "0.5730541", "0.5729128", "0.5728879", "0.5710036", "0.57062864", "0.569858", "0.5680865", "0.5679418", "0.5679339", "0.5675853", "0.56676775", "0.5664093", "0.5663598", "0.5659791", "0.56557655", "0.5652555", "0.5643362", "0.56347317", "0.56229293", "0.5622041", "0.5621387", "0.5606085", "0.56059086", "0.559919", "0.559803", "0.55826604", "0.5578018", "0.5573599", "0.5569341", "0.5569213", "0.55671734", "0.5567169", "0.5562073", "0.55572414", "0.5557001", "0.555473", "0.5550302", "0.55479014", "0.5534519", "0.5526365", "0.5525384", "0.55225855", "0.5519111", "0.5517359", "0.55056524", "0.5501424", "0.5501395", "0.54992664", "0.5497025", "0.54947275", "0.5488548", "0.5488049", "0.54827666", "0.54704803", "0.54678077", "0.5466437", "0.54645246", "0.5463396", "0.5462277", "0.5459392", "0.5454056" ]
0.0
-1
Fonction retournant la date du du jour formatee
function getDateJour() { return $this->formatDateDBversLocal(date('Y-m-d')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function dateDuJour(){\n return date(\"Y-m-d\");\n }", "function date_ajourdhui()\n{\n $date = localtime(time());\n\n $mois = $date[4]+1;\n $annee = $date[5] + 1900;\n\n $aujourdhui = mktime(0,0,0,$mois,$date[3],$annee,-1);\n \n return date('Y-m-d', $aujourdhui); \n}", "public function getDateDebut();", "public function setDateDuJour()\n{\n$this->setDateSysteme(date(\"Y-m-d\"));\n$this->setDateUtilisateur(date(\"d/m/Y\"));\n}", "function faireDate($pDate)\n\t\t\t{\n\t\t\t\t$jour = substr($pDate,8);\n\t\t\t\t$mois = substr($pDate,5);\n\t\t\t\t$annee = substr($pDate,0,4);\n\t\t\t\t$tabMois = array('Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre');\n\t\t\t\t$nvlDate = $jour.\" \".$tabMois[$mois-1].\" \".$annee;\n\t\t\t\treturn $nvlDate;\n\t\t\t}", "protected function getJour()\n{\nreturn substr($this->getDateSysteme(), 8, 2);\t\n}", "function fecha($cadena){\n\t\treturn date($cadena);\n\t}", "function moisActuel()\n{\n\t$dateActuelle = date(\"d/m/Y\");\n\t@list($jour, $mois, $annee) = explode('/', $dateActuelle);\n\t//$annee--;\n\t$moisActuel = $mois;\n\treturn $annee . $moisActuel;\n}", "function dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}", "function dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}", "function dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}", "public function fecha();", "static function makeDate($jour, $mois, $annee) {\r\n return $annee . \"-\" . $mois . \"-\" . $jour;\r\n }", "function moisAnPasse()\n{\n\t$dateActuelle = date(\"d/m/Y\");\n\t@list($jour, $mois, $annee) = explode('/', $dateActuelle);\n\t$annee--;\n\t$moisActuel = $annee . $mois;\n\treturn $moisActuel;\n}", "public function date();", "public function date();", "public function getFecha_inicio_joven() {\n return $this->fecha_inicio_joven;\n }", "function date_fr($date_saisie){\n @list ($jour , $mois , $an) = split(\"[-./]\",$date_saisie);\n //inverse la date\n return($an.\"-\".$mois.\"-\".$jour);\n \n}", "function getFecha(){\n\t\t$anio = date(\"Y\");\n\t\t$dia = date(\"j\");\n\t\t$mes = date(\"m\");\n\t\t$fechactual = $anio.\"-\".$mes.\"-\".$dia;\n\t\treturn $fechactual;\n\t}", "public function getDateUtilisateur()\n{\nif (!strcmp($this->dateUtilisateur, \"00/00/0000\"))\n\t$date = \"\";\nelse $date = $this->dateUtilisateur;\nreturn $date;\n}", "function Fecha_estandar($IngresoFecha){\t\n$date = date_create($IngresoFecha);\nreturn date_format($date, 'd-m-Y');\n}", "function agenda_jourdecal($date, $decalage, $format = 'Y-m-d H:i:s') {\n\tinclude_spip('inc/filtres');\n\t$date_array = recup_date($date);\n\tif ($date_array) {\n\t\tlist($annee, $mois, $jour) = $date_array;\n\t}\n\tif (!$jour) {\n\t\t$jour = 1;\n\t}\n\tif (!$mois) {\n\t\t$mois = 1;\n\t}\n\t$jour2 = $jour + $decalage;\n\t$date2 = mktime(1, 1, 1, $mois, $jour2, $annee);\n\treturn date($format, $date2);\n}", "protected function convertDateUser()\n{\n$jour = substr($this->getDateUtilisateur(), 0, 2);\n$mois= substr($this->getDateUtilisateur(), 3, 2);\n$annee= substr($this->getDateUtilisateur(), 6, 4);\n$dateSys = $annee.\"-\".$mois.\"-\".$jour;\nreturn $dateSys;\n}", "function getFecha(){\n\t\t\treturn date(\"Y-m-d H:i:s\");\n\t}", "public function dias_del_mes(){\n \n $fecha= date('Y-m-d');\n return; date('t',strtotime($fecha));\n \n}", "function agenda_date_debut_liste($date, $affichage_debut = 'date_jour') {\n\tswitch ($affichage_debut) {\n\t\tcase 'date_jour':\n\t\t\tbreak;\n\t\tcase 'date_veille':\n\t\t\t$date = agenda_jourdecal($date, -1);\n\t\t\tbreak;\n\t\tcase 'debut_semaine':\n\t\t\t$t = strtotime($date);\n\t\t\t$date = agenda_jourdecal($date, -(date('N', $t)-1));\n\t\t\tbreak;\n\t\tcase 'debut_semaine_prec':\n\t\t\t$t = strtotime($date);\n\t\t\t$date = agenda_jourdecal($date, -(date('N', $t)-1+7));\n\t\t\tbreak;\n\t\tcase 'debut_mois':\n\t\t\t$t = strtotime($date);\n\t\t\t$date = agenda_jourdecal($date, -(date('j', $t)-1));\n\t\t\tbreak;\n\t\tcase 'debut_mois_prec':\n\t\t\t$t = strtotime($date);\n\t\t\t$date = agenda_jourdecal($date, -(date('j', $t)-1)); // debut de mois\n\t\t\t$date = agenda_moisdecal($date, -1); // precedent\n\t\t\tbreak;\n\t\tcase 'debut_mois_1':\n\t\tcase 'debut_mois_2':\n\t\tcase 'debut_mois_3':\n\t\tcase 'debut_mois_4':\n\t\tcase 'debut_mois_5':\n\t\tcase 'debut_mois_6':\n\t\tcase 'debut_mois_7':\n\t\tcase 'debut_mois_8':\n\t\tcase 'debut_mois_9':\n\t\tcase 'debut_mois_10':\n\t\tcase 'debut_mois_11':\n\t\tcase 'debut_mois_12':\n\t\t\t$t = strtotime($date);\n\t\t\t$mdebut = intval(substr($affichage_debut, strlen('debut_mois_')));\n\t\t\t$mcourant = date('n', $t);\n\t\t\t$offset = ($mcourant-$mdebut+12)%12;\n\t\t\t$date = agenda_jourdecal($date, -(date('j', $t)-1)); // debut de mois\n\t\t\t$date = agenda_moisdecal($date, -$offset);\n\t\t\tbreak;\n\t}\n\treturn $date;\n}", "static function show_dateFr($date) {\r\n echo Functions::convert_dateFr($date);\r\n }", "function restar_dias_a_una_fecha($dia,$mes,$anio,$numdias){\r\nif (!checkdate($mes,$dia,$anio)) die(\"error en restar_dias_a_una_fecha() - Se le ha mandado a la función una fecha incorrecta\");\r\n$fecha=mktime ( 0,0,0, $mes,$dia-$numdias,$anio);\r\nreturn date( \"Y-m-d\", $fecha);\r\n}", "function getDebutMois($dateDuJour){\n global $dbHandler;\n $db = $dbHandler->openConnection();\n\n $sql = \"SELECT * FROM getdebutmois(date('$dateDuJour'));\";\n $result = $db->query($sql);\n\n if (DB::isError($result)) {\n $dbHandler->closeConnection(false);\n Signalerreur(__FILE__,__LINE__,__FUNCTION__,_(\"DB\").\": \".$result->getMessage());\n }\n\n $date_row = $result->fetchrow(DB_FETCHMODE_ASSOC);\n\n $dbHandler->closeConnection(true);\n return $date_row['getdebutmois'];\n}", "function formatDate($date){\r\n\t\t\t\t$dateObject = date_create($date);\r\n\t\t\t\treturn date_format($dateObject, \"j F Y\");\r\n\t\t\t}", "function fecha($fecha){\n $timestamp = strtotime($fecha);\n $meses = ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'];\n\n $dia = date('d', $timestamp);\n $mes = date('m', $timestamp) - 1;\n $year = date('Y', $timestamp);\n\n $fecha = \"$dia de \" . $meses[$mes] . \" del $year\";\n return $fecha; \n}", "function getFinMois($dateDuJour){\n global $dbHandler;\n $db = $dbHandler->openConnection();\n\n $sql = \"SELECT * FROM getfinmois(date('$dateDuJour'));\";\n $result = $db->query($sql);\n\n if (DB::isError($result)) {\n $dbHandler->closeConnection(false);\n Signalerreur(__FILE__,__LINE__,__FUNCTION__,_(\"DB\").\": \".$result->getMessage());\n }\n\n $date_row = $result->fetchrow(DB_FETCHMODE_ASSOC);\n\n $dbHandler->closeConnection(true);\n return $date_row['getfinmois'];\n}", "function getDateJhjjmmtt() {\n\t\n\t$date \t= getdate();\n\t$year \t= $date['year'];\n\t$mon \t= $date['mon'];\n $day\t\t= $date['mday'];\n \n\tif( $mon < \"10\" ) \t\t$mon = \"0\".$mon;\n\tif( $day < \"10\" )\t\t$day = \"0\".$day;\n\t\n\t$moddate \t= $year.$mon.$day;\n\n\treturn $moddate;\n}", "public function getDate();", "public function getDate();", "public function getDateEn() {\n return $this->date;\n }", "function getFecha(){\n\t\treturn $this->fecha;\n\t}", "function date_modif_manuelle_autoriser() {\n}", "function Fecha()\n{\n return date('d/m/y');\n}", "public function getDateDebut() {\n\t\t\t$d = DateTime::createFromFormat(\"Y-m-d\", $this->attributs['dateDebut']);\n\t\t\tif ($d == false)\n\t\t\t\tdie(\"date de début '\".$this->attributs['dateDebut'].\"' non valide pour être une date\");\n\t\t\treturn $d;\n\t\t}", "function getJulianDate()\r\n {\r\n return Data_Calc::dataJuliana($this->dia, $this->mes, $this->ano);\r\n }", "function affdate_periode($date, $nb_mois, $affichage_debut = 'date_jour') {\n\t$fixe = in_array($affichage_debut, array('debut_mois_1', 'debut_mois_2', 'debut_mois_3', 'debut_mois_4', 'debut_mois_5', 'debut_mois_6', 'debut_mois_7', 'debut_mois_8', 'debut_mois_9', 'debut_mois_10', 'debut_mois_11', 'debut_mois_12'));\n\tif ($nb_mois == 1) {\n\t\treturn affdate_mois_annee($date);\n\t}\n\tif ($nb_mois == 12 and mois($date) == 1) {\n\t\treturn ($fixe?_T('agenda:label_annee').' ':'').annee($date);\n\t}\n\n\treturn ($fixe?_T('agenda:label_periode_saison').' ':'').affdate_mois_annee($date).' - '.affdate_mois_annee(agenda_moisdecal($date, $nb_mois-1));\n}", "public function getDateFin();", "function agenda_moisdecal($date, $decalage, $format = 'Y-m-d H:i:s') {\n\tinclude_spip('inc/filtres');\n\t$date_array = recup_date($date);\n\tif ($date_array) {\n\t\tlist($annee, $mois, $jour) = $date_array;\n\t}\n\tif (!$jour) {\n\t\t$jour = 1;\n\t}\n\tif (!$mois) {\n\t\t$mois = 1;\n\t}\n\t$mois2 = $mois + $decalage;\n\t$date2 = mktime(1, 1, 1, $mois2, $jour, $annee);\n\t// mois normalement attendu\n\t$mois3 = date('m', mktime(1, 1, 1, $mois2, 1, $annee));\n\t// et si le mois de la nouvelle date a moins de jours...\n\t$mois2 = date('m', $date2);\n\tif ($mois2 - $mois3) {\n\t\t$date2 = mktime(1, 1, 1, $mois2, 0, $annee);\n\t}\n\treturn date($format, $date2);\n}", "public function graficDate(Registro $registro)\n {\n //\n }", "public function nutriments() {\n\t\tfunction dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}\n\t\t\n\t\t// Fonction qui renvoi le nombre de jours entre deux dates\n\t\tfunction jours($date1, $date2){\n\t\t\t$diff = abs($date1 - $date2); \n\t\t\t$retour = array();\n\t\t \n\t\t\t$tmp = $diff;\n\t\t\t$retour['second'] = $tmp % 60;\n\t\t \n\t\t\t$tmp = floor( ($tmp - $retour['second']) /60 );\n\t\t\t$retour['minute'] = $tmp % 60;\n\t\t\t\n\t\t\t$tmp = floor( ($tmp - $retour['minute'])/60 );\n\t\t\t$retour['hour'] = $tmp % 24;\n\t\t\t\t \n\t\t\t$tmp = floor( ($tmp - $retour['hour']) /24 );\n\t\t\t$retour['day'] = $tmp;\n\t\t\t\t \n\t\t\treturn $retour['day'];\n\t\t}\n\t\t\n\t\t\n\t\t$id = AuthComponent::user('id');\n\t\tsetlocale (LC_TIME, 'fr_FR.utf8','fra');\n\t\t$date = date('Y-m-d');\n\t\t\n\t\t$this->set('debut',null);\n\t\t$this->set('fin',null);\n\t\tif ($this->request->is('post')) {\n\t\t\t/* Vérification des informations envoyées */\n\t\t\t$message;\n\t\t\t$stop = false;\n\t\t\t$deb = $_POST['debut'];\n\t\t\t$fin = $_POST['fin'];\n\t\t\t\n\t\t\tif (!(preg_match(\"/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/\",$deb))) {\n\t\t\t\t$stop = true;\n\t\t\t\t$message = \"Erreur, la date de début est invalide, elle doit être sous format 'YYYY-MM-DD'\";\n\t\t\t} elseif (!(preg_match(\"/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/\",$fin))) {\n\t\t\t\t$stop = true;\n\t\t\t\t$message = \"Erreur, la date de fin est invalide, elle doit être sous format 'YYYY-MM-DD'\";\n\t\t\t} else {\n\t\t\t\tif ($deb > $date ) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être supérieure à la date d'aujourd'hui\";\n\t\t\t\t} elseif ($fin > $date) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être supérieure à la date d'aujourd'hui\";\n\t\t\t\t}\n\t\t\t\tif ($deb == $fin) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être égale à la date de fin\";\n\t\t\t\t} elseif ($deb > $fin) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être supérieure à la date de fin\";\n\t\t\t\t}\n\t\t\t\t$this->set('debut',$deb);\n\t\t\t\t$this->set('fin',$fin);\n\t\t\t}\n\t\t\t/* fin vérif */\n\t\t\tif ($stop) {\n\t\t\t\t$this->Session->setFlash(__($message));\n\t\t\t} else {\n\t\t\t\t$fin = $fin . ' 23:59:59';\n\t\t\t\t$repas = $this->Suivialimentaire->find('all',array('conditions' => array('AND' => array(\n\t\t\t\t\t\t\t\tarray('id_user' => $id),\n\t\t\t\t\t\t\t\tarray('Suivialimentaire.created BETWEEN ? AND ?' => array($deb, $fin))\n\t\t\t\t)),'order' => array('Suivialimentaire.created DESC') ));\n\t\t\t\t$temp = $repas;\n\t\t\t\t$i = 0;\n\t\t\t\tforeach ($repas as $r) {\n\t\t\t\t\t$temp[$i]['Aliment']= $this->Aliment->find('first', array('conditions' => array('Aliment.id' => $r['Suivialimentaire']['id_aliment'])));\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t\t$repas = $temp;\n\t\t\t\t$nutriments = array();\n\t\t\t\t$descri = $this->Constituantaliment->query(\"select name from constituantaliments join donneescompilees on constituantaliments_id = constituantaliments.id where aliments_id = 1000\");\n\t\t\t\tforeach ($descri as $desc) {\n\t\t\t\t\t$nutriments[]['nom'] = $desc['constituantaliments']['name'];\n\t\t\t\t}\n\t\t\t\tfor ($i = 0; $i < 57; $i++) $nutriments[$i]['valeur'] = 0;\n\t\t\t\tforeach ($repas as $rep) {\n\t\t\t\t\tfor ($i = 0; $i < 57; $i++) {\n\t\t\t\t\t\tif (!empty($rep['Aliment'])) {\n\t\t\t\t\t\t\t$nutriments[$i]['valeur'] = $nutriments[$i]['valeur'] + ($rep['Aliment']['Donneesaliment'][$i]['valmoy'] * $rep['Suivialimentaire']['quantite'] * $rep['Suivialimentaire']['portion']/100) * count(explode(\"@\",$rep['Suivialimentaire']['nomSA']));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$valsplit = explode(\"@\", $rep['Alimhorsclassification']['nutri']);\n\t\t\t\t\t\t\t$valresul = $valsplit[$i];\n\t\t\t\t\t\t\t$nutriments[$i]['valeur'] = $nutriments[$i]['valeur'] + ($valresul * $rep['Suivialimentaire']['quantite'] * $rep['Suivialimentaire']['portion']/100) * count(explode(\"@\",$rep['Suivialimentaire']['nomSA']));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$this->set('repas',$repas);\n\t\t\t\t$this->set('nutriments',$nutriments);\n\t\t\t\t$time1 = strtotime($deb);\n\t\t\t\t$time2 = strtotime($fin);\n\t\t\t\t$e=jours($time1, $time2);\n\t\t\t\t$this->set('joursDiff',$e);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private function set_date()\r\n\t{\r\n\t\tif ($this->month > 12)\r\n\t\t{\r\n\t\t\t$this->month=1;\r\n\t\t\t$this->year++;\r\n\t\t}\r\n\r\n\t\tif ($this->month < 1)\r\n\t\t{\r\n\t\t\t$this->month=12;\r\n\t\t\t$this->year--;\r\n\t\t}\r\n\r\n\t\tif ($this->year > 2037) $this->year = 2037;\r\n\t\tif ($this->year < 1971) $this->year = 1971;\r\n\t}", "public function groupes_ali_et_cal() {\n\t\tfunction dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}\n\t\t\n\t\t// Fonction qui renvoi le nombre de jours entre deux dates\n\t\tfunction jours($date1, $date2){\n\t\t\t$diff = abs($date1 - $date2); \n\t\t\t$retour = array();\n\t\t \n\t\t\t$tmp = $diff;\n\t\t\t$retour['second'] = $tmp % 60;\n\t\t \n\t\t\t$tmp = floor( ($tmp - $retour['second']) /60 );\n\t\t\t$retour['minute'] = $tmp % 60;\n\t\t\t\n\t\t\t$tmp = floor( ($tmp - $retour['minute'])/60 );\n\t\t\t$retour['hour'] = $tmp % 24;\n\t\t\t\t \n\t\t\t$tmp = floor( ($tmp - $retour['hour']) /24 );\n\t\t\t$retour['day'] = $tmp;\n\t\t\t\t \n\t\t\treturn $retour['day'];\n\t\t}\n\t\t\n\t\t\n\t\t$id = AuthComponent::user('id');\n\t\tsetlocale (LC_TIME, 'fr_FR.utf8','fra');\n\t\t$date = date('Y-m-d');\n\t\t\n\t\t$this->set('debut',null);\n\t\t$this->set('fin',null);\n\t\tif ($this->request->is('post')) {\n\t\t\t/* Vérification des informations envoyées */\n\t\t\t$message;\n\t\t\t$stop = false;\n\t\t\t$deb = $_POST['debut'];\n\t\t\t$fin = $_POST['fin'];\n\t\t\t\n\t\t\tif (!(preg_match(\"/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/\",$deb))) {\n\t\t\t\t$stop = true;\n\t\t\t\t$message = \"Erreur, la date de début est invalide, elle doit être sous format 'YYYY-MM-DD'\";\n\t\t\t} elseif (!(preg_match(\"/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/\",$fin))) {\n\t\t\t\t$stop = true;\n\t\t\t\t$message = \"Erreur, la date de fin est invalide, elle doit être sous format 'YYYY-MM-DD'\";\n\t\t\t} else {\n\t\t\t\tif ($deb > $date ) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être supérieure à la date d'aujourd'hui\";\n\t\t\t\t} elseif ($fin > $date) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être supérieure à la date d'aujourd'hui\";\n\t\t\t\t}\n\t\t\t\tif ($deb == $fin) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être égale à la date de fin\";\n\t\t\t\t} elseif ($deb > $fin) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être supérieure à la date de fin\";\n\t\t\t\t}\n\t\t\t\t$this->set('debut',$deb);\n\t\t\t\t$this->set('fin',$fin);\n\t\t\t}\n\t\t\t/* fin vérif */\n\t\t\tif ($stop) {\n\t\t\t\t$this->Session->setFlash(__($message));\n\t\t\t} else {\n\t\t\t\t$fin = $fin . ' 23:59:59';\n\t\t\t\t$repas = $this->Suivialimentaire->find('all',array('conditions' => array('AND' => array(\n\t\t\t\t\t\t\t\tarray('id_user' => $id),\n\t\t\t\t\t\t\t\tarray('Suivialimentaire.created BETWEEN ? AND ?' => array($deb, $fin))\n\t\t\t\t)),'order' => array('Suivialimentaire.created DESC') ));\n\t\t\t\t$temp = $repas;\n\t\t\t\t$i = 0;\n\t\t\t\tforeach ($repas as $r) {\n\t\t\t\t\t$temp[$i]['Aliment']= $this->Aliment->find('first', array('conditions' => array('Aliment.id' => $r['Suivialimentaire']['id_aliment'])));\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t\t$repas = $temp;\n\t\t\t\t$cal = 0;\n\t\t\t\tforeach ($repas as $rep) {\n\t\t\t\t\tif (!empty($rep['Aliment'])) {\n\t\t\t\t\t\t$cal = $cal + ($rep['Aliment']['Donneesaliment'][1]['valmoy'] * $rep['Suivialimentaire']['quantite'] * $rep['Suivialimentaire']['portion']/100) * count(explode(\"@\",$rep['Suivialimentaire']['nomSA']));\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$valsplit = explode(\"@\", $rep['Alimhorsclassification']['nutri']);\n\t\t\t\t\t\t$valresul = $valsplit[1];\n\t\t\t\t\t\t$cal = $cal + ($valresul * $rep['Suivialimentaire']['quantite'] * $rep['Suivialimentaire']['portion']/100) * count(explode(\"@\",$rep['Suivialimentaire']['nomSA']));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$this->set('repas',$repas);\n\t\t\t\t$this->set('cal',$cal);\n\t\t\t\t$time1 = strtotime($deb);\n\t\t\t\t$time2 = strtotime($fin);\n\t\t\t\t$e=jours($time1, $time2);\n\t\t\t\t$this->set('joursDiff',$e);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "function Fecha()\n\t{\n\t\t$this->SetFont('Arial','B',8);\n\t\t$this->SetX(133);\n\t\t$this->Cell(12,5,strtoupper(_('fecha')).': ',0,0,'L');\n\t\t$this->SetFont('Arial','',8);\n\t\t$this->Cell(18,5,date(\"d/m/Y\"),0,0,'L');\n\t\t$this->SetFont('Arial','B',8);\n\t\t$this->Cell(12,5,strtoupper(_('hora')).': ',0,0,'L');\n\t\t$this->SetFont('Arial','',8);\n\t\t$this->Cell(18,5,date(\"h:i:s A\"),0,0,'L');\n\t\t$this->Ln();\t\t\n\t}", "function verifVadsTransDate($dateData) {\n if ( $dateData == \"ERRORDATE\") {\n return '<p style=\"margin-top:1px;\">Erreur verifVadsTransDate()</p>';\n } else {\n return strftime('%d/%m/%Y',strtotime($dateData)); //convert date Us YYYYMMJJ to Fr JJ/MM/YYYY\n }\n }", "public function getrep_fecha()\r\n {\r\n return $this->rep_fecha;\r\n }", "function formatoFecha($data = NULL){\n\n\t\tif($data){\n\n\t\t\t//SEPARA LA FECHA EN 3 PARTES\n\t\t\t$data_funcion = explode(\"-\", $data);\n\t\t\t/*\t$data_funcion[0] = 2019\n\t\t\t\t$data_funcion[1] = 10\n\t\t\t\t$data_funcion[2] = 29\n\t\t\t*/\n\n\t\t\t//retornar la fecha en otro formato\n\t\t\treturn $data_funcion[2] .'/'. $data_funcion[1] .'/'. $data_funcion[0];\n\n\t\t}\n\n\t}", "function Fecha()\n\t{\n\t\t$this->SetFont('Arial','B',8);\n\t\t$this->SetX(133);\n\t\t$this->Cell(12,5,strtoupper(_('fecha')).\": \",0,0,'L');\n\t\t$this->SetFont('Arial','',8);\n\t\t$this->Cell(18,5,date(\"d/m/Y\"),0,0,'L');\n\t\t$this->SetFont('Arial','B',8);\n\t\t$this->Cell(12,5,strtoupper(_('hora')).\": \",0,0,'L');\n\t\t$this->SetFont('Arial','',8);\n\t\t$this->Cell(18,5,date(\"h:i:s A\"),0,0,'L');\n\t\t$this->Ln();\t\t\n\t}", "function sky_date_french($format, $timestamp = null, $echo = null)\n{\n $param_D = array('', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam', 'Dim');\n $param_l = array('', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi', 'Dimanche');\n $param_F = array('', 'Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre');\n $param_M = array('', 'Jan', 'Fév', 'Mar', 'Avr', 'Mai', 'Jun', 'Jul', 'Aoû', 'Sep', 'Oct', 'Nov', 'Déc');\n $return = '';\n if (is_null($timestamp)) {\n $timestamp = mktime();\n }\n for ($i = 0, $len = strlen($format); $i < $len; $i++) {\n switch ($format[$i]) {\n case '\\\\': // fix.slashes\n $i++;\n $return .= isset($format[$i]) ? $format[$i] : '';\n break;\n case 'D':\n $return .= $param_D[date('N', $timestamp)];\n break;\n case 'l':\n $return .= $param_l[date('N', $timestamp)];\n break;\n case 'F':\n $return .= $param_F[date('n', $timestamp)];\n break;\n case 'M':\n $return .= $param_M[date('n', $timestamp)];\n break;\n default:\n $return .= date($format[$i], $timestamp);\n break;\n }\n }\n if (is_null($echo)) {\n return $return;\n } else {\n echo $return;\n }\n}", "private function _consolideDate(){\n\t\t$this->_mktime();\n\t\t$this->_setDate();\n\t}", "function shwThaiDate($dte) { //where $dte is a Date format\r\n\t\treturn date(\"d-m-Y\",strtotime($dte));//formulate date format for displaying\r\n\t}", "function convertdateanglais($date){\n\t$ladate=explode('-',$date);\n\t$jour=$ladate[2];\n\t$moi=$ladate[1];\n\t$anne=$ladate[0];\n\t$madate=date(\"d/m/Y\", mktime(0, 0, 0, $moi, $jour, $anne));\n\treturn $madate;\n}", "public function getfecha()\r\n {\r\n return $this->fecha;\r\n }", "function setDate($date = null)\r\n\t{\t\r\n\t\t$day = substr($date ,8, 2);\r\n\t\t$month = substr($date ,5, 2);\r\n\t\t$year = substr($date ,0, 4);\r\n\t\t\r\n\t\t$newDate = $day.'-'.$month.'-'.$year;\r\n\t\t\r\n\t\treturn $newDate;\r\n\t}", "function getFecha() {\r\n return $this->fecha;\r\n }", "public function getDateF(){\n return $this->dateF;\n }", "public function getDateFecha()\n {\n return $this->dateFecha;\n }", "static function convert_dateFr($date) {\r\n $tab = explode('-', $date);\r\n $result = $tab['0'] . \" \" . Functions::get_mois($tab['1']) . \" \" . $tab['2'];\r\n return $result;\r\n }", "function FormatDate2($fecha)\n {\n if($fecha!=NULL || $fecha!=\"\"){\n $meses = [\"\", \"Enero\", \"Febrero\", \"Marzo\", \"Abril\", \"Mayo\", \"Junio\", \"Julio\", \"Agosto\", \"Septiembre\", \"Octubre\", \"Noviembre\", \"Diciembre\"];\n $dias = [\"\", \"Lunes\", \"Martes\", \"Miercoles\", \"Jueves\", \"Viernes\", \"Sabado\", \"Domingo\"];\n return date(\"j\", strtotime($fecha)) . \" de \" . $meses[date(\"n\", strtotime($fecha))] . \", \" . date(\"Y\", strtotime($fecha));}\n else\n return \"\";\n }", "function bank_date_fin_mois($annee, $mois){\n\t$date_fin = mktime(0, 0, 0, $mois, 01, $annee);\n\t$date_fin = strtotime(\"+1 month\", $date_fin);\n\treturn date('Y-m-d H:i:s', $date_fin);\n}", "public function getReceptionDate();", "public function date($date=null)\n {\n if(is_null($date)) { \t\n\t\t\t$date = $this->publication; \n }\n\n return $date;\n //date_format($date, 'g:ia \\o\\n l jS F Y');;\n }", "function get_sql_date()\n {\n $year=$this->get_year();\n $month=$this->get_month();\n if (strlen($month)<2)\n {\n $month=\"0\".$month;\n }\n\n $day=$this->get_day();\n\n if (strlen($day)<2)\n {\n $day=\"0\".$day;\n }\n return $year.\"-\".$month.\"-\".$day.\" 00:00:00\";\n }", "public function formateaFecha($fecha){\n\n\n\t\t$array=explode(\"-\",$fecha);\n\t\t$numeromes=$array[1];\n\t\t$dia=$array[2];\n\t\t$año=$array[0];\n\n\t\tif($numeromes<10){\n\t\t\t$numeromes=substr($numeromes,1);\n\t\t}\n\n\t\t$meses=array(\"enero\",\"febrero\",\"marzo\",\"abril\",\"mayo\",\"junio\",\"julio\",\"agosto\",\"septiembre\",\"octubre\",\"noviembre\",\"diciembre\");\n\n\t\t$mes=$meses[$numeromes-1];\n\t\t \n\t\t$fecha=$dia . \" de \" . $mes .\" de \".$año;\n\n\t\treturn $fecha;\n\n}", "function convertDate_Amj_jmA($date)\n{\n\tsetlocale (LC_TIME, 'fr_FR','fra'); \n\treturn strftime(\"%d/%m/%Y\", strtotime($date)); \n}", "public function get_date_permastruct()\n {\n }", "public function DateFR2DateSQL ($date) {\n //29/12/1990 23:30\n $day = substr($date,0,2);\n $month = substr($date,3,2);\n $year = substr($date,6,4);\n $hour = substr($date,11,2);\n $minute = substr($date,14,2);\n $second = substr($date,18,2);\n //debug($hour.'-'.$minute.'-'.$second.'-'.$month.'-'.$day.'-'.$year);die;\n\n $timestamp= mktime($hour,$minute,$second,$month,$day,$year);\n return date('Y-m-d H:i:s',$timestamp); \n }", "function _fechaInput($fecha = ''){\n return \\Carbon\\Carbon::parse($fecha)->format('d/m/Y');\n // return \"{$d}/{$m}/{$y}\";\n\n\n\n\n }", "function articles_creer_modifer_jour($date_jour, $aff_det = false) {\r\n\tglobal $couleur_foncee, $couleur_claire;\r\n\r\n\t$tbl_jour = recup_date($date_jour);\r\n\t$deb_jour = date('YmdHis', mktime(0, 0, 0, $tbl_jour[1], $tbl_jour[2], $tbl_jour[0]));\r\n\t$fin_jour = date('YmdHis', mktime(0, 0, 0, $tbl_jour[1], $tbl_jour[2] + 1, $tbl_jour[0]));\r\n\r\n\t$jour = date('d/m/Y', mktime(0, 0, 0, $tbl_jour[1], $tbl_jour[2], $tbl_jour[0]));\r\n\r\n\t$aff = \"\";\r\n\r\n\t#\r\n\t$q = sql_select(\"id_article, titre, statut, id_rubrique, \r\n\t\t\t\t\t\tDATE_FORMAT(date,'%d/%m/%Y %H:%i') as f_date, \r\n\t\t\t\t\t\tDATE_FORMAT(maj,'%d/%m/%Y %H:%i') as f_maj, \r\n\t\t\t\t\t\tDATE_FORMAT(date_redac,'%d/%m/%Y %H:%i') as f_date_redac, \r\n\t\t\t\t\t\tDATE_FORMAT(date_modif,'%d/%m/%Y %H:%i') as f_date_modif \"\r\n\t\t. \"FROM spip_articles \"\r\n\t\t. \"WHERE maj > $deb_jour AND maj < $fin_jour \"\r\n\t\t. \"ORDER BY maj DESC\"\r\n\t);\r\n\t$nb_art = sql_count($q);\r\n\r\n\tif ($aff_det) {\r\n\t\t# tableau de page actijour_art\r\n\r\n\t\t$aff .= debut_cadre_relief(\"\", true)\r\n\t\t\t. \"<div class='cell_huit_p'>\" . _T('actijour:articles_modifies_crees_jour', array('jour' => $jour)) . \"</div>\";\r\n\r\n\t\tif ($nb_art) {\r\n\t\t\t$ifond = 0;\r\n\r\n\t\t\t$aff .= \"<table align='center' border='0' cellpadding='2' cellspacing='0' width='100%'>\\n\"\r\n\t\t\t\t. \"<tr bgcolor='$couleur_foncee' class='head_tbl'>\\n\"\r\n\t\t\t\t. \"<td width='7%'>\" . _T('actijour:numero_court') . \"</td>\\n\"\r\n\t\t\t\t. \"<td width='50%'>\" . _T('actijour:titre_article') . \"</td>\\n\"\r\n\t\t\t\t. \"<td width=25%>\" . _T('actijour:date_maj') . \"</td>\\n\"\r\n\t\t\t\t. \"</tr>\\n\";\r\n\r\n\t\t\twhile ($r = sql_fetch($q)) {\r\n\t\t\t\t$ifond = $ifond ^ 1;\r\n\t\t\t\t$couleur = ($ifond) ? '#FFFFFF' : $couleur_claire;\r\n\t\t\t\t$url_art = generer_url_ecrire('articles', 'id_article=' . $r['id_article']);\r\n\r\n\t\t\t\t$aff .= \"<tr bgcolor='$couleur'>\"\r\n\t\t\t\t\t. \"<td width='7%'>\\n\"\r\n\t\t\t\t\t. \"<div align='right' class='verdana2'>\"\r\n\t\t\t\t\t. $r['id_article']\r\n\t\t\t\t\t. \"</div>\\n</td>\"\r\n\t\t\t\t\t. \"<td width='50%'>\\n\"\r\n\t\t\t\t\t. \"<div class='verdana3' style='margin-left:5px;'><a href='\" . $url_art . \"'>\"\r\n\t\t\t\t\t. http_img_pack(\"puce-\" . puce_statut($r['statut']) . \".gif\", 'ico', '', '') . \"&nbsp;&nbsp;\"\r\n\t\t\t\t\t. entites_html(supprimer_numero($r['titre']))\r\n\t\t\t\t\t. \"</a></div>\\n\"\r\n\t\t\t\t\t. \"</td>\\n\"\r\n\t\t\t\t\t. \"<td width='25%'>\\n\"\r\n\t\t\t\t\t. \"<div align='center' class='verdana2'><b>\" . $r['f_maj'] . \"</b></div></td>\\n\"\r\n\t\t\t\t\t. \"</tr>\\n\"\r\n\t\t\t\t\t. \"<tr bgcolor='$couleur'><td colspan='3'>\"\r\n\t\t\t\t\t. \"<div align='right' class='verdana1'>\"\r\n\t\t\t\t\t. _T('actijour:date_publication_dpt') . $r['f_date'] . \"<br />\"\r\n\t\t\t\t\t. _T('actijour:date_redaction_dpt') . $r['f_date_redac'] . \"</div>\\n\"\r\n\t\t\t\t\t. \"</tr>\\n\";\r\n\t\t\t}\r\n\t\t\t$aff .= \"</table>\";\r\n\t\t} else {\r\n\t\t\t$aff .= _T('actijour:aucun_article_cree');\r\n\t\t}\r\n\t\t$aff .= fin_cadre_relief(true);\r\n\t} else {\r\n\t\t# encart sur actijour_pg\r\n\t\t$url = generer_url_ecrire('actijour_art', 'd=' . $date_jour);\r\n\t\t$icone = http_img_pack('article-24.gif', 'ico', '', '');\r\n\r\n\t\t$aff .= debut_cadre_relief('', true);\r\n\t\t$aff .= \"<div class='bouton_droite icone36'>\\n\"\r\n\t\t\t. \"<a href='\" . $url . \"' title='\" . _T('actijour:voir_details') . \"'>\\n\"\r\n\t\t\t. $icone . \"</a>\\n\"\r\n\t\t\t. \"</div>\\n\";\r\n\t\t$aff .= \"<span class='arial2 bold'>\" . _T('actijour:articles_crees_modifies') . \"</span><br />\";\r\n\t\t#\r\n\t\tif ($nb_art) {\r\n\t\t\t$aff .= http_img_pack(_DIR_IMG_ACJR . \"mini_art.png\", 'ico', '', '') . \"&nbsp;\" . $nb_art;\r\n\t\t} else {\r\n\t\t\t$aff .= _T('actijour:aucun');\r\n\t\t}\r\n\r\n\t\t$aff .= \"<div class='nettoyeur'></div>\";\r\n\t\t$aff .= fin_cadre_relief(true);\r\n\r\n\t}\r\n\r\n\treturn $aff;\r\n}", "function comment_date($format = '', $comment_id = 0)\n {\n }", "protected function setDateUtilisateur($date)\n{\n$this->dateUtilisateur = $date;\t\n}", "public function getDateEmbauche() \n {\n return $this->dateEmbauche;\n }", "public function fechaVigencia() // funcion que suma fecha usada para años biciestos\n\t{\n\n\t\t$fecha = $_GET['fecha'];\n\t\t$nuevafecha = strtotime('+365 day', strtotime($fecha));\n\t\t$nuevafecha = date('Y-m-d', $nuevafecha);\n\t\treturn $nuevafecha;\n\t}", "public static function rfcDate()\n {\n }", "public function getModDate();", "public function date()\n {\n\n $date = date(\"Y-m-d\");\n\n $date = strtotime($date . \"-30 days\");\n\n $date = date('Y-m-d', $date);\n\n return $date;\n }", "function tous_auteurs_date_passage() {\r\n\tglobal $couleur_claire, $connect_id_auteur;\r\n\r\n\t// fixer le nombre de ligne du tableau (tranche)\r\n\t$fl = $GLOBALS['actijour']['nbl_aut'];\r\n\r\n\t// recup $vl dans URL\r\n\t$dl = intval(_request('vl'));\r\n\t$dl = ($dl + 0);\r\n\t// valeur de tranche affichꥍ\r\n\t$nba1 = $dl + 1;\r\n\r\n\t$p_st = _request('st');\r\n\tif (!$p_st) {\r\n\t\t$where_st = \"statut IN ('0minirezo','1comite','6forum')\";\r\n\t\t$p_st = 'tous';\r\n\t} else {\r\n\t\t$where_st = \"statut = \" . _q($p_st);\r\n\t}\r\n\r\n\t$q = sql_select(\"SQL_CALC_FOUND_ROWS id_auteur, statut, nom,\r\n\t\t\t\t\t\tDATE_FORMAT(en_ligne,'%d/%m/%y %H:%i') AS vu \"\r\n\t\t. \"FROM spip_auteurs \"\r\n\t\t. \"WHERE $where_st \"\r\n\t\t. \"ORDER BY en_ligne DESC,nom \"\r\n\t\t. \"LIMIT $dl,$fl\"\r\n\t);\r\n\r\n\t// recup nombre total d'entrees\r\n\t$nl = sql_select(\"FOUND_ROWS()\");\r\n\t$found = @sql_fetch($nl);\r\n\t$nb_auteurs = $found['FOUND_ROWS()'];\r\n\r\n\t$ifond = 0;\r\n\r\n\t$aff = '';\r\n\r\n\t# onglet select statut\r\n\t$lst_statut = array('tous', '0minirezo', '1comite', '6forum');\r\n\t$script = _request('exec');\r\n\r\n\t$aff .= debut_onglet();\r\n\tforeach ($lst_statut as $statut) {\r\n\t\t$aff .= onglet(_T('actijour:onglet_connect_' . $statut),\r\n\t\t\tgenerer_url_ecrire($script, 'st=' . ($statut == 'tous' ? '' : $statut)),\r\n\t\t\t$statut,\r\n\t\t\t($p_st == $statut ? $statut : ''), '');\r\n\t}\r\n\t$aff .= fin_onglet();\r\n\r\n\r\n\t# tableau\r\n\t#\r\n\t$aff .= debut_cadre_relief(\"annonce.gif\", true);\r\n\r\n\t$aff .= \"<table align='center' border='0' cellpadding='2' cellspacing='0' width='100%'>\\n\"\r\n\t\t. \"<tr><td colspan='3' class='verdana3 bold'>\" . _T('actijour:tous_date_connections')\r\n\t\t. \"</td></tr>\";\r\n\t# Tranches\r\n\t$aff .= \"<tr><td colspan='3' class='verdana3 bold'>\";\r\n\t$aff .= \"<div align='center' class='iconeoff verdana2 bold' style='clear:both;'>\\n\"\r\n\t\t. tranches_liste_art($nba1, $nb_auteurs, $fl)\r\n\t\t. \"\\n</div>\\n\";\r\n\t$aff .= \"</td></tr>\";\r\n\r\n\twhile ($row = sql_fetch($q)) {\r\n\t\t$ifond = $ifond ^ 1;\r\n\t\t$couleur = ($ifond) ? '#FFFFFF' : $couleur_claire;\r\n\r\n\t\t$aff .= \"<tr bgcolor='$couleur'>\"\r\n\t\t\t. \"<td width='5%'>\\n\"\r\n\t\t\t. bonhomme_statut($row) . \"</td>\\n\"\r\n\t\t\t. \"<td width='75%'>\"\r\n\t\t\t. \"<a class='verdana2 bold' href='\" . generer_url_ecrire(\"auteur_infos\", \"id_auteur=\" . $row['id_auteur']) . \"'>\"\r\n\t\t\t. entites_html($row['nom']) . \"</a>\\n\"\r\n\t\t\t. \"<td width='20%'>\\n\"\r\n\t\t\t. \"<div align='right' class='verdana1'>\" . $row['vu'] . \"</div>\\n\"\r\n\t\t\t. \"</td></tr>\\n\";\r\n\r\n\t}\r\n\t$aff .= \"</table>\\n\\n\";\r\n\r\n\t$aff .= fin_cadre_relief(true);\r\n\r\n\treturn $aff;\r\n}", "public function getFecha()\n {\n return $this->c_fecha;\n }", "public function premierdelasemaine(): DateTime{\n // Obtenir le premier jour de la premiere semaine de l'année en cours\n $begin = new DateTime(\"{$this->year}-01-01\");\n \n if ($begin->format('w')!=1) $begin->modify(\"next monday\");\n \n return $begin->modify(\"+\".($this->week-1).\" weeks\");\n }", "public function getDateFormate($date){\n\n \t\tif($date != null){\n \t\t $dateAformater = explode(\"-\", $date);\n\n \t\t $annee = $dateAformater[0];\n \t\t $mois = $dateAformater[1];\n \t\t $jour = $dateAformater[2];\n\n $newDate = $jour . '/' . $mois . '/' . $annee ;\n\n return $newDate;\n \t\t}else{\n \t\t\treturn null;\n \t\t}\n\n }", "function _putDateConvGtJDate(&$pdf, $src, $x, $height, $font)\n {\n $year = date('Y', strtotime($src));\n $month = date('n', strtotime($src));\n $day = date('j', strtotime($src));\n// list($year, $month, $day) = explode('-', $src);\n $date = str_replace('-', '', $src);\n if ($date >= 19890108) {\n $gengo = '平成';\n $wayear = $year - 1988;\n } elseif ($date >= 19261225) {\n $gengo = '昭和';\n $wayear = $year - 1925;\n } elseif ($date >= 19120730) {\n $gengo = '大正';\n $wayear = $year - 1911;\n } else {\n $gengo = '明治';\n $wayear = $year - 1868;\n }\n //Set x y month day\n $pdf->SetXY($x + 2.5, $height + 0.7);\n $pdf->MultiCell(20, 5, $wayear, 0, 'C');\n $pdf->SetXY($x + 10.0, $height + 0.7);\n $pdf->MultiCell(20, 5, $month, 0, 'C');\n $pdf->SetFont($font, null, 14, true);\n\n if ($gengo == '昭和') {\n $pdf->SetXY($x - 8.8, $height - 2.5);\n $pdf->MultiCell(28, 2, '◯', 0, 'C');\n }\n if ($gengo == '平成') {\n $pdf->SetXY($x - 8.8, $height + 1.6);\n $pdf->MultiCell(28, 2, '◯', 0, 'C');\n }\n }", "function date_mois_fr($mois, $suffix = '')\n\t{\n\t\t$liste_mois = array('01' => 'janvier', '02' => 'fevrier', '03' => 'mars' , '04' => 'avril', '05' => 'mai', '06' => 'juin', '07' => 'juillet', '08' => 'aout', '09' => 'septembre', '10' => 'octobre', '11' => 'novembre', '12' => 'décembre' );\n\t\t$liste_cour = array('01' => 'jan', '02' => 'fev', '03' => 'mar' , '04' => 'avr', '05' => 'mai', '06' => 'juin', '07' => 'juil', '08' => 'aou', '09' => 'sept', '10' => 'oct', '11' => 'nov', '12' => 'déc' );\n\n\t\tif(array_key_exists($mois, $liste_mois))\n\t\t{\n\t\t\t$date['full'] = $liste_mois[$mois];\n\t\t\t$date['court'] = $liste_cour[$mois].$suffix;\n\n\t\t\treturn $date;\n\t\t}\n\n\t\treturn FALSE;\n\t}", "function diffdate($unite, $operateur, $valeur) {\n //$unite : month year day\n // $operateur : + ou -\n // $valeur : nombre\n $datej = date(\"d\", strtotime($operateur . '' . $valeur . ' ' . $unite));\n $datem = date(\"m\", strtotime($operateur . '' . $valeur . ' ' . $unite));\n $datey = date(\"Y\", strtotime($operateur . '' . $valeur . ' ' . $unite));\n return \"$datey-$datem-$datej\";\n}", "public function getFechaCierre() {\n return $this->fechaCierre;\n }", "function hoje() {\n $data_hoje = date(\"Y-m-d H:i:s\");\n return $data_hoje;\n }", "function DateToIndo($date) {\r\n // variabel BulanIndo merupakan variabel array yang menyimpan nama-nama bulan\r\n $BulanIndo = array(\"Januari\", \"Februari\", \"Maret\",\r\n \"April\", \"Mei\", \"Juni\",\r\n \"Juli\", \"Agustus\", \"September\",\r\n \"Oktober\", \"November\", \"Desember\");\r\n $tahun = substr($date, 0, 4); // memisahkan format tahun menggunakan substring\r\n $bulan = substr($date, 5, 2); // memisahkan format bulan menggunakan substring\r\n $tgl = substr($date, 8, 2); // memisahkan format tanggal menggunakan substring\r\n $zzesult = $tgl . \" \" . $BulanIndo[(int)$bulan-1] . \" \". $tahun;\r\n return($zzesult);\r\n }", "function modify_date($fe)\n\t{\n\t\t$cdate = mktime(substr($fe,5,2), substr($fe,7,2), 0, 1, 1, 2000+substr($fe,0,2)) + (substr($fe,2,3)-1)*24*60*60;\n\t\treturn Date(\"Y.m.d H:i\", $cdate);\n\t}", "public function getFecha()\n {\n return $this->fecha;\n }", "public function getFecha()\n {\n return $this->fecha;\n }", "function convertdate($date) {\r\n\t$date = strtotime($date);\r\n\treturn date(\"M j, Y g:ia\", $date);\r\n}", "public function display_date(){\n\t\t$display = date('d-m-Y');\n\t\treturn $display;\n\t}", "function formatear_fecha($parametro){\n\n\t\t/* Declaro variables personalizadas para que queden claros los datos */\n\t\t$hora = substr($parametro, 11, 2);\n\t\t$minuto = substr($parametro, 14, 2);\n\t\t$dia = substr($parametro, 8, 2);\n\t\t$mes = substr($parametro, 5, 2);\n\t\t$anno = substr($parametro, 0, 4);\n\n\t\t/* Generamos el formato */\n\t\t$temp = $dia.\"/\".$mes.\"/\".$anno.\" (\".$hora.\":\".$minuto.\")\";\n\t\t\n\t\treturn $temp;\n\t}", "function vads_trans_date() {\n $date = date('YmdHis');\n return $date;\n }", "function liste_articles_jour($date_jour, $nb_art_visites_jour, $date_maj_art, $prev_visites = '') {\r\n\tglobal $couleur_foncee, $couleur_claire;\r\n\r\n\t// fixer le nombre de ligne du tableau (tranche)\r\n\t$fl = $GLOBALS['actijour']['nbl_art'];\r\n\r\n\t// recup $vl dans URL\r\n\t$dl = intval(_request('vl'));\r\n\t$dl = ($dl + 0);\r\n\r\n\t//\r\n\t// requete liste article du jour\r\n\t$q = sql_select(\"sva.id_article, sva.date, sva.visites as visites_j, \r\n\t\t\tsa.titre, sa.visites, sa.popularite, sa.statut \r\n\t\t\tFROM spip_visites_articles sva \r\n\t\t\tLEFT JOIN spip_articles sa ON sva.id_article = sa.id_article \r\n\t\t\tWHERE sva.date='$date_jour' \r\n\t\t\tORDER BY visites_j DESC LIMIT $dl,$fl\");\r\n\r\n\t$nbart = sql_count($q);\r\n\r\n\r\n\t$aff = debut_cadre_relief(\"cal-jour.gif\", true);\r\n\r\n\t// bouton relance brut de la page\r\n\t// en attendant de passer a jquery !\r\n\tif ($date_jour == date('Y-m-d', mktime(0, 0, 0, date(\"m\"), date(\"d\"), date(\"Y\")))) {\r\n\t\t$aff .= \"<div class='bouton_maj'>\\n\"\r\n\t\t\t. \"<a href='\" . generer_url_ecrire(\"actijour_pg\") . \"'>\"\r\n\t\t\t. http_img_pack('puce-blanche.gif', 'ico', '', _T('actijour:mise_a_jour')) . \"</a>\\n\"\r\n\t\t\t. \"</div>\\n\";\r\n\t}\r\n\r\n\t// texte entete\r\n\tif (empty($date_maj_art)) {\r\n\t\t# La date du jour passé en 1er arg (jour, hier ...)\r\n\t\t$tbdate = recup_date($date_jour);\r\n\t\t$date_maj_art = date('d/m/y', mktime(0, 0, 0, $tbdate[1], $tbdate[2], $tbdate[0]));\r\n\t}\r\n\t$aff .= \"<div class='verdana3'>\"\r\n\t\t. _T('actijour:entete_tableau_art_jour', array(\r\n\t\t\t'nb_art_visites_jour' => $nb_art_visites_jour,\r\n\t\t\t'aff_date_now' => ' - ' . $date_maj_art\r\n\t\t))\r\n\t\t. \"</div>\\n\";\r\n\r\n\t// affichage tableau\r\n\tif (sql_count($q)) {\r\n\t\t// valeur de tranche affichꥉ\r\n\t\t$nba1 = $dl + 1;\r\n\t\t//\t\r\n\t\t$ifond = 0;\r\n\r\n\t\t// Presenter valeurs de la tranche de la requete\r\n\t\t$aff .= \"<div align='center' class='iconeoff verdana2 bold' style='clear:both;'>\\n\"\r\n\t\t\t. tranches_liste_art($nba1, $nb_art_visites_jour, $fl)\r\n\t\t\t. \"\\n</div>\\n\";\r\n\r\n\t\t// tableau\r\n\t\t$aff .= \"<table align='center' border='0' cellpadding='1' cellspacing='1' width='100%'>\\n\"\r\n\t\t\t. \"<tr bgcolor='$couleur_foncee' class='head_tbl'>\\n\"\r\n\t\t\t. \"<td width='7%'>\" . _T('actijour:numero_court') . \"</td>\\n\"\r\n\t\t\t. \"<td width='65%'>\" . _T('actijour:titre_article') . \"</td>\\n\"\r\n\t\t\t. \"<td width=9%>\" . _T('actijour:visites_jour') . \"</td>\\n\"\r\n\t\t\t. \"<td width=11%>\" . _T('actijour:total_visites') . \"</td>\\n\"\r\n\t\t\t. \"<td width=8%>\" . _T('actijour:popularite') . \"</td>\\n\"\r\n\t\t\t. \"</tr>\\n\";\r\n\r\n\t\t// corps du tableau\r\n\t\twhile ($row = sql_fetch($q)) {\r\n\t\t\t$visites_a = $row['visites'];\r\n\t\t\t$visites_j = $row['visites_j'];\r\n\t\t\t$id_art = $row['id_article'];\r\n\t\t\t$titre = $row['titre'];\r\n\t\t\t$etat = $row['statut'];\r\n\t\t\t// round sur popularit鍊\t\t\t$pop = round($row['popularite']);\r\n\t\t\t// Le total-visites de l'article\r\n\t\t\t#$tt_visit = $visit + $ipv;\r\n\r\n\t\t\t$ifond = $ifond ^ 1;\r\n\t\t\t$couleur = ($ifond) ? '#FFFFFF' : $couleur_claire;\r\n\r\n\t\t\t$aff .= \"<tr bgcolor='$couleur'><td width='7%'>\\n\"\r\n\t\t\t\t. \"<div align='right' class='verdana2'>\"\r\n\t\t\t\t. affiche_lien_graph($id_art, $titre, $etat, 'spip')\r\n\t\t\t\t. \"</div>\\n</td>\"\r\n\t\t\t\t. \"<td width='65%'>\\n\"\r\n\t\t\t\t. \"<div align='left' class='verdana1' style='margin-left:5px;'><b>\"\r\n\t\t\t\t. affiche_lien_graph($id_art, $titre, $etat)\r\n\t\t\t\t. \"</b></div></td>\\n\"\r\n\t\t\t\t. \"<td width='9%'>\\n\"\r\n\t\t\t\t. \"<div align='center' class='verdana2'><b>$visites_j</b></div></td>\\n\"\r\n\t\t\t\t. \"<td width='11%'>\\n\"\r\n\t\t\t\t. \"<div align='right' class='verdana1' style='margin-right:3px;'><b>$visites_a</b></div></td>\\n\"\r\n\t\t\t\t. \"<td width='8%'>\\n\"\r\n\t\t\t\t. \"<div align='center' class='verdana1'>$pop</div>\\n\"\r\n\t\t\t\t. \"</td></tr>\\n\";\r\n\t\t}\r\n\t\t$aff .= \"</table>\";\r\n\t} // aucun articles\r\n\telse {\r\n\t\t$aff .= \"<div align='center' class='iconeoff bold' style='clear:both;'>\"\r\n\t\t\t. _T('actijour:aucun_article_visite') . \"</div><br />\\n\";\r\n\t}\r\n\t$aff .= visites_pre_traitement($prev_visites);\r\n\t$aff .= fin_cadre_relief(true);\r\n\r\n\treturn $aff;\r\n}", "function fecha($fecha, $separador=\"\"){\n if(empty($fecha)){\n return \"\";\n }\n if(!$separador){\n $separador=\"-\";\n }\n $fecha=substr($fecha,8,2).\"$separador\".substr($fecha,5,2).\"$separador\".substr($fecha,0,4);\n return $fecha;\n}" ]
[ "0.77893305", "0.6935568", "0.68714064", "0.68658143", "0.6822671", "0.68066466", "0.6780359", "0.67678106", "0.6737547", "0.6737547", "0.6737547", "0.6652781", "0.6641389", "0.6630109", "0.65856206", "0.65856206", "0.6508232", "0.6480332", "0.6463724", "0.64548707", "0.64325213", "0.635868", "0.6347473", "0.63089716", "0.6253731", "0.6193945", "0.618712", "0.61743784", "0.617348", "0.6127571", "0.60970163", "0.6094623", "0.6083341", "0.60774136", "0.60774136", "0.6066171", "0.60594654", "0.6056434", "0.60557795", "0.60414267", "0.60411114", "0.6029795", "0.60185915", "0.60181403", "0.59940267", "0.5977744", "0.5963627", "0.595804", "0.5951814", "0.59483534", "0.59450394", "0.5932985", "0.5931221", "0.59289604", "0.59264773", "0.592435", "0.5920951", "0.5915851", "0.59132", "0.59122264", "0.5906234", "0.5905294", "0.5899541", "0.58981353", "0.58897024", "0.58887833", "0.5888439", "0.5863127", "0.5862397", "0.5861153", "0.58582217", "0.58580863", "0.585704", "0.5857033", "0.58517027", "0.58371526", "0.58368284", "0.5834098", "0.5829641", "0.5823485", "0.581903", "0.5818437", "0.5812831", "0.57867944", "0.5782687", "0.5779944", "0.5778636", "0.5776423", "0.5772457", "0.5771215", "0.57691705", "0.5766571", "0.57608926", "0.57608926", "0.5759861", "0.5756298", "0.5753545", "0.57518184", "0.5751777", "0.5749632" ]
0.70989764
1
Fonction retournant la dateheure courante formatee
function getDateHeure() { return $this->formatDateDBversLocal(date('Y-m-d H:i:s'), 3); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDateDebut();", "private function _consolideDate(){\n\t\t$this->_mktime();\n\t\t$this->_setDate();\n\t}", "public function setDateDuJour()\n{\n$this->setDateSysteme(date(\"Y-m-d\"));\n$this->setDateUtilisateur(date(\"d/m/Y\"));\n}", "function moisActuel()\n{\n\t$dateActuelle = date(\"d/m/Y\");\n\t@list($jour, $mois, $annee) = explode('/', $dateActuelle);\n\t//$annee--;\n\t$moisActuel = $mois;\n\treturn $annee . $moisActuel;\n}", "function _fechaInput($fecha = ''){\n return \\Carbon\\Carbon::parse($fecha)->format('d/m/Y');\n // return \"{$d}/{$m}/{$y}\";\n\n\n\n\n }", "function Fecha_estandar($IngresoFecha){\t\n$date = date_create($IngresoFecha);\nreturn date_format($date, 'd-m-Y');\n}", "function moisAnPasse()\n{\n\t$dateActuelle = date(\"d/m/Y\");\n\t@list($jour, $mois, $annee) = explode('/', $dateActuelle);\n\t$annee--;\n\t$moisActuel = $annee . $mois;\n\treturn $moisActuel;\n}", "public function date();", "public function date();", "function fecha($cadena){\n\t\treturn date($cadena);\n\t}", "public function fecha();", "public function getDateUtilisateur()\n{\nif (!strcmp($this->dateUtilisateur, \"00/00/0000\"))\n\t$date = \"\";\nelse $date = $this->dateUtilisateur;\nreturn $date;\n}", "function date_fr($date_saisie){\n @list ($jour , $mois , $an) = split(\"[-./]\",$date_saisie);\n //inverse la date\n return($an.\"-\".$mois.\"-\".$jour);\n \n}", "public function graficDate(Registro $registro)\n {\n //\n }", "function faireDate($pDate)\n\t\t\t{\n\t\t\t\t$jour = substr($pDate,8);\n\t\t\t\t$mois = substr($pDate,5);\n\t\t\t\t$annee = substr($pDate,0,4);\n\t\t\t\t$tabMois = array('Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre');\n\t\t\t\t$nvlDate = $jour.\" \".$tabMois[$mois-1].\" \".$annee;\n\t\t\t\treturn $nvlDate;\n\t\t\t}", "protected function convertDateUser()\n{\n$jour = substr($this->getDateUtilisateur(), 0, 2);\n$mois= substr($this->getDateUtilisateur(), 3, 2);\n$annee= substr($this->getDateUtilisateur(), 6, 4);\n$dateSys = $annee.\"-\".$mois.\"-\".$jour;\nreturn $dateSys;\n}", "function date_modif_manuelle_autoriser() {\n}", "public function getDateFin();", "abstract public function getCrdate();", "function formatear_fecha($parametro){\n\n\t\t/* Declaro variables personalizadas para que queden claros los datos */\n\t\t$hora = substr($parametro, 11, 2);\n\t\t$minuto = substr($parametro, 14, 2);\n\t\t$dia = substr($parametro, 8, 2);\n\t\t$mes = substr($parametro, 5, 2);\n\t\t$anno = substr($parametro, 0, 4);\n\n\t\t/* Generamos el formato */\n\t\t$temp = $dia.\"/\".$mes.\"/\".$anno.\" (\".$hora.\":\".$minuto.\")\";\n\t\t\n\t\treturn $temp;\n\t}", "public function dias_del_mes(){\n \n $fecha= date('Y-m-d');\n return; date('t',strtotime($fecha));\n \n}", "function formDate($data) {\n\t\t\t// AQUI RECEBER O PADRAO PARA ENTAO EFETUAR O TIMESTAMP\n\t\t\t$timestamp \t= explode(\" \", $data);\n\t\t\t$getData\t= $timestamp[0];\n\t\t\t$getTime\t= $timestamp[1];\n\n\t\t\t\t$setData\t= explode('/', $getData);\n\t\t\t\t$dia \t\t= $setData[0];\n\t\t\t\t$mes \t\t= $setData[1];\n\t\t\t\t$ano \t\t= $setData[2];\n\t\t\t// AQUI VAMOS DEFINIR AS HORAS, CASO SELECIONA OU NAO\n\t\t\t\tif (!$getTime):\n\t\t\t\t\t$getTime = date('H:i:s');\n\t\t\t\tendif;\n\t\t\t$result \t= $ano.'-'.$mes.'-'.$dia.' '.$getTime;\n\n\t\t\treturn $result;\n\t\t}", "function restar_dias_a_una_fecha($dia,$mes,$anio,$numdias){\r\nif (!checkdate($mes,$dia,$anio)) die(\"error en restar_dias_a_una_fecha() - Se le ha mandado a la función una fecha incorrecta\");\r\n$fecha=mktime ( 0,0,0, $mes,$dia-$numdias,$anio);\r\nreturn date( \"Y-m-d\", $fecha);\r\n}", "function getFecha(){\n\t\t$anio = date(\"Y\");\n\t\t$dia = date(\"j\");\n\t\t$mes = date(\"m\");\n\t\t$fechactual = $anio.\"-\".$mes.\"-\".$dia;\n\t\treturn $fechactual;\n\t}", "public function getDate();", "public function getDate();", "function shwThaiDate($dte) { //where $dte is a Date format\r\n\t\treturn date(\"d-m-Y\",strtotime($dte));//formulate date format for displaying\r\n\t}", "function Fecha_dia($Ingresodia){\t\n$dia1 = new DateTime($Ingresodia);\n$dia = $dia1->format('d');\n$cadena = (\"$dia\");\nreturn $cadena;\n}", "function formulaire_periode($date_jour, $retour, $prim_an_stats) {\r\n\tinclude_spip('inc/date');\r\n\r\n\t$date = recup_date($date_jour);\r\n\r\n\t$aff = debut_boite_info(true)\r\n\t\t. \"<form action ='\" . generer_url_ecrire($retour) . \"' method='post'>\"\r\n\t\t. \"<div style='padding:3px;' align='center' ><b>\"\r\n\t\t. _T('actijour:jour_affiche_dpt') . \"</b><br /><br />\"\r\n\r\n\t\t. afficher_jour($date[2], \"name='jour' size='1' class='fondl' \", true)\r\n\t\t. afficher_mois($date[1], \"name='mois' size='1' class='fondl' \", true) . \"<br /><br />\"\r\n\t\t. acjr_afficher_annee($date[0], \"name='annee' size='1' class='fondl' \", $prim_an_stats) . \"<br /><br />\"\r\n\r\n\t\t. \"<input type='submit' class='fondo' value='\" . _T('actijour:text_bouton_afficher') . \"' />\"\r\n\t\t. \"</div>\"\r\n\t\t. \"</form>\"\r\n\t\t. fin_boite_info(true);\r\n\r\n\treturn $aff;\r\n}", "function converfecha($fechao){\n\t$cuenta = 0;\n\t$año=substr($fechao,-4,4);\n\t$mes=substr($fechao,-7,2);\n\t$dia=substr($fechao,0,2);\n\t//checa si la fecha recibida es valida\n\t\tif(is_numeric($año)&&is_numeric($mes)&&is_numeric($dia)){$fechac=$año.\"-\".$mes.\"-\".$dia;}else{$fechac=$fechao;}\n\treturn $fechac;\n}", "public function get_date_permastruct()\n {\n }", "function dataCarnaval($ano=false, $form=\"d/m/Y\") {\n\t$ano=$ano?$ano:date(\"Y\");\n\t$a=explode(\"/\", dataPascoa($ano));\n\treturn date($form, mktime(0,0,0,$a[1],$a[0]-47,$a[2]));\n}", "private function dateDuJour(){\n return date(\"Y-m-d\");\n }", "public static function rfcDate()\n {\n }", "public function requestDate();", "public function sanitizarFecha($fecha)\n{\n $date = date_create($fecha);\n return date_format($date,'Y-m-d');\n}", "public function sanitizarFecha($fecha)\n{\n $date = date_create($fecha);\n return date_format($date,'Y-m-d');\n}", "public function sanitizarFecha($fecha)\n{\n $date = date_create($fecha);\n return date_format($date,'Y-m-d');\n}", "public function sanitizarFecha($fecha)\n{\n $date = date_create($fecha);\n return date_format($date,'Y-m-d');\n}", "public function sanitizarFecha($fecha)\n{\n $date = date_create($fecha);\n return date_format($date,'Y-m-d');\n}", "private function set_date()\r\n\t{\r\n\t\tif ($this->month > 12)\r\n\t\t{\r\n\t\t\t$this->month=1;\r\n\t\t\t$this->year++;\r\n\t\t}\r\n\r\n\t\tif ($this->month < 1)\r\n\t\t{\r\n\t\t\t$this->month=12;\r\n\t\t\t$this->year--;\r\n\t\t}\r\n\r\n\t\tif ($this->year > 2037) $this->year = 2037;\r\n\t\tif ($this->year < 1971) $this->year = 1971;\r\n\t}", "public function fechaVigencia() // funcion que suma fecha usada para años biciestos\n\t{\n\n\t\t$fecha = $_GET['fecha'];\n\t\t$nuevafecha = strtotime('+365 day', strtotime($fecha));\n\t\t$nuevafecha = date('Y-m-d', $nuevafecha);\n\t\treturn $nuevafecha;\n\t}", "public function groupes_ali_et_cal() {\n\t\tfunction dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}\n\t\t\n\t\t// Fonction qui renvoi le nombre de jours entre deux dates\n\t\tfunction jours($date1, $date2){\n\t\t\t$diff = abs($date1 - $date2); \n\t\t\t$retour = array();\n\t\t \n\t\t\t$tmp = $diff;\n\t\t\t$retour['second'] = $tmp % 60;\n\t\t \n\t\t\t$tmp = floor( ($tmp - $retour['second']) /60 );\n\t\t\t$retour['minute'] = $tmp % 60;\n\t\t\t\n\t\t\t$tmp = floor( ($tmp - $retour['minute'])/60 );\n\t\t\t$retour['hour'] = $tmp % 24;\n\t\t\t\t \n\t\t\t$tmp = floor( ($tmp - $retour['hour']) /24 );\n\t\t\t$retour['day'] = $tmp;\n\t\t\t\t \n\t\t\treturn $retour['day'];\n\t\t}\n\t\t\n\t\t\n\t\t$id = AuthComponent::user('id');\n\t\tsetlocale (LC_TIME, 'fr_FR.utf8','fra');\n\t\t$date = date('Y-m-d');\n\t\t\n\t\t$this->set('debut',null);\n\t\t$this->set('fin',null);\n\t\tif ($this->request->is('post')) {\n\t\t\t/* Vérification des informations envoyées */\n\t\t\t$message;\n\t\t\t$stop = false;\n\t\t\t$deb = $_POST['debut'];\n\t\t\t$fin = $_POST['fin'];\n\t\t\t\n\t\t\tif (!(preg_match(\"/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/\",$deb))) {\n\t\t\t\t$stop = true;\n\t\t\t\t$message = \"Erreur, la date de début est invalide, elle doit être sous format 'YYYY-MM-DD'\";\n\t\t\t} elseif (!(preg_match(\"/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/\",$fin))) {\n\t\t\t\t$stop = true;\n\t\t\t\t$message = \"Erreur, la date de fin est invalide, elle doit être sous format 'YYYY-MM-DD'\";\n\t\t\t} else {\n\t\t\t\tif ($deb > $date ) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être supérieure à la date d'aujourd'hui\";\n\t\t\t\t} elseif ($fin > $date) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être supérieure à la date d'aujourd'hui\";\n\t\t\t\t}\n\t\t\t\tif ($deb == $fin) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être égale à la date de fin\";\n\t\t\t\t} elseif ($deb > $fin) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être supérieure à la date de fin\";\n\t\t\t\t}\n\t\t\t\t$this->set('debut',$deb);\n\t\t\t\t$this->set('fin',$fin);\n\t\t\t}\n\t\t\t/* fin vérif */\n\t\t\tif ($stop) {\n\t\t\t\t$this->Session->setFlash(__($message));\n\t\t\t} else {\n\t\t\t\t$fin = $fin . ' 23:59:59';\n\t\t\t\t$repas = $this->Suivialimentaire->find('all',array('conditions' => array('AND' => array(\n\t\t\t\t\t\t\t\tarray('id_user' => $id),\n\t\t\t\t\t\t\t\tarray('Suivialimentaire.created BETWEEN ? AND ?' => array($deb, $fin))\n\t\t\t\t)),'order' => array('Suivialimentaire.created DESC') ));\n\t\t\t\t$temp = $repas;\n\t\t\t\t$i = 0;\n\t\t\t\tforeach ($repas as $r) {\n\t\t\t\t\t$temp[$i]['Aliment']= $this->Aliment->find('first', array('conditions' => array('Aliment.id' => $r['Suivialimentaire']['id_aliment'])));\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t\t$repas = $temp;\n\t\t\t\t$cal = 0;\n\t\t\t\tforeach ($repas as $rep) {\n\t\t\t\t\tif (!empty($rep['Aliment'])) {\n\t\t\t\t\t\t$cal = $cal + ($rep['Aliment']['Donneesaliment'][1]['valmoy'] * $rep['Suivialimentaire']['quantite'] * $rep['Suivialimentaire']['portion']/100) * count(explode(\"@\",$rep['Suivialimentaire']['nomSA']));\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$valsplit = explode(\"@\", $rep['Alimhorsclassification']['nutri']);\n\t\t\t\t\t\t$valresul = $valsplit[1];\n\t\t\t\t\t\t$cal = $cal + ($valresul * $rep['Suivialimentaire']['quantite'] * $rep['Suivialimentaire']['portion']/100) * count(explode(\"@\",$rep['Suivialimentaire']['nomSA']));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$this->set('repas',$repas);\n\t\t\t\t$this->set('cal',$cal);\n\t\t\t\t$time1 = strtotime($deb);\n\t\t\t\t$time2 = strtotime($fin);\n\t\t\t\t$e=jours($time1, $time2);\n\t\t\t\t$this->set('joursDiff',$e);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public function getStarthiredateinputThAttribute(){\n return date('d/m/' , strtotime( $this->starthiredate ) ).(date('Y',strtotime($this->starthiredate))+543);\n }", "function comprobar_fecha_inicio($fecha_entrada,$fecha_salida){\r\n // echo $fecha_salida;\r\n //echo $fecha_actual = strtotime(date(\"d-m-Y H:i:00\",time()));\r\n if( (empty($fecha_entrada))){\r\n return 'Las fechas no pueden estar vacias';\r\n }\r\n}", "function verifVadsTransDate($dateData) {\n if ( $dateData == \"ERRORDATE\") {\n return '<p style=\"margin-top:1px;\">Erreur verifVadsTransDate()</p>';\n } else {\n return strftime('%d/%m/%Y',strtotime($dateData)); //convert date Us YYYYMMJJ to Fr JJ/MM/YYYY\n }\n }", "function getFecha(){\n\t\treturn $this->fecha;\n\t}", "function date_diasemana($date,$type='') {\n\n if (!empty($date)) {\n\n #pega informações da data\n $date = en2timestamp($date);\n $wday = getdate($date);\n $wday = $wday['wday']; #usa apenas o dia da semana em números de 0 a 6\n\n switch($wday) {\n case 0: $s_min = 'dom'; $s_nor = 'domingo';\n break;\n case 1: $s_min = 'seg'; $s_nor = 'segunda';\n break;\n case 2: $s_min = 'ter'; $s_nor = 'terça';\n break;\n case 3: $s_min = 'qua'; $s_nor = 'quarta';\n break;\n case 4: $s_min = 'qui'; $s_nor = 'quinta';\n break;\n case 5: $s_min = 'sex'; $s_nor = 'sexta';\n break;\n case 6: $s_min = 'sab'; $s_nor = 'sábado';\n break;\n }\n\n $return = empty($type)?$s_nor:$s_min;\n\n return $return;\n\n }\n\n }", "function _field_date_us($fval) \n {\n $f_date = \"\";\n if ($fval) {\n list($m,$d,$y) = split('/', $fval);\n $f_date = array($y, $m, $d);\n }\n return $this->_field_date($f_date);\n }", "function dateformatusa($date)\n{\n\t$ndate = explode(\"-\",$date);\n\t$year = $ndate[2];\n\t$day = $ndate[0];\n\t$month = $ndate[1];\n\t\n\treturn $year . \"-\" . $month . \"-\" . $day;\n}", "function errorFecha($valor){\n\tswitch($valor){\n\t\tcase 1: //Date of begininig is bigger than the date of end\n\t\techo \"La fecha de Inicio es mayor que la de fin </br>\";\n\t\tbreak;\n\t\t\n\t\tcase 2: //Date of beginning is less of the date of now\n\t\techo \"La fecha de inicio es menor que la de ahora </br>\";\n\t\tbreak;\n\t\t\n\t\tcase 3://Date of end is less of the date of now\n\t\techo \"La fecha de fin es menor que la actual </br>\";\n\t\tbreak;\n\t\t\n\t\tcase 4://Date of beginning is not enough to create dates of class\n\t\techo \"La fecha de inicio es corta para crear los dias de clase que pidio </br>\";\n\t\tbreak;\n\t\n\t}\n}", "function diffdate($unite, $operateur, $valeur) {\n //$unite : month year day\n // $operateur : + ou -\n // $valeur : nombre\n $datej = date(\"d\", strtotime($operateur . '' . $valeur . ' ' . $unite));\n $datem = date(\"m\", strtotime($operateur . '' . $valeur . ' ' . $unite));\n $datey = date(\"Y\", strtotime($operateur . '' . $valeur . ' ' . $unite));\n return \"$datey-$datem-$datej\";\n}", "function the_date($format = '', $before = '', $after = '', $display = \\true)\n {\n }", "public function sanitizarFechaF($fecha)\n{\n $date =New DateTime();\n return $fechaPedidoDesde= date_format($date->createFromFormat('d/m/Y',$fecha), 'd/m/Y');\n \n}", "public function getDateF(){\n return $this->dateF;\n }", "function dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}", "function dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}", "function dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}", "function Fecha_completa($IngresoFecha){\t\n$mes_c = new DateTime($IngresoFecha);\n$dia = $mes_c->format('d');\n$me = $mes_c->format('m');\n$agno = $mes_c->format('Y');\n$mes='';\nif($me=='01') $mes='enero';\nif($me=='02') $mes='febrero';\nif($me=='03') $mes='marzo';\nif($me=='04') $mes='abril';\nif($me=='05') $mes='mayo';\nif($me=='06') $mes='junio';\nif($me=='07') $mes='julio';\nif($me=='08') $mes='agosto';\nif($me=='09') $mes='septiembre';\nif($me=='10') $mes='octubre';\nif($me=='11') $mes='noviembre';\nif($me=='12') $mes='diciembre';\n$cadena = (\"$mes \") ;\n$cadena .= (\"$dia del \");\n$cadena .= (\"$agno\");\nreturn $cadena;\n}", "function ToonFormulierAfspraak()\n{\n\n}", "public function display_date(){\n\t\t$display = date('d/m/Y');\n\t\treturn $display;\n\t}", "function ExibeData($data){\n\t\treturn date(\"d/m/Y\", strtotime($data));\n\t}", "function fecha_normal($fecha){\n // toma los primeros 4 números separados por un guion, deben ser entre 2 y 4\n // después busca el siguiente par de números separados por un guion, pueden ser 1 o 2\n // por ultimo toma el ultimo par de números, pueden ser 1 o 2\n //ereg( \"([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})\", $fecha, $mifecha);\n ereg( \"([0-9]{4})-([0-9]{2})-([0-9]{2})\", $fecha, $mifecha);\n $lafecha=$mifecha[3].\"/\".$mifecha[2].\"/\".$mifecha[1];\n return $lafecha;\n}", "public function getDateFormatee() {\n return date('d/m/Y', strtotime($this->date));\n }", "function agenda_date_debut_liste($date, $affichage_debut = 'date_jour') {\n\tswitch ($affichage_debut) {\n\t\tcase 'date_jour':\n\t\t\tbreak;\n\t\tcase 'date_veille':\n\t\t\t$date = agenda_jourdecal($date, -1);\n\t\t\tbreak;\n\t\tcase 'debut_semaine':\n\t\t\t$t = strtotime($date);\n\t\t\t$date = agenda_jourdecal($date, -(date('N', $t)-1));\n\t\t\tbreak;\n\t\tcase 'debut_semaine_prec':\n\t\t\t$t = strtotime($date);\n\t\t\t$date = agenda_jourdecal($date, -(date('N', $t)-1+7));\n\t\t\tbreak;\n\t\tcase 'debut_mois':\n\t\t\t$t = strtotime($date);\n\t\t\t$date = agenda_jourdecal($date, -(date('j', $t)-1));\n\t\t\tbreak;\n\t\tcase 'debut_mois_prec':\n\t\t\t$t = strtotime($date);\n\t\t\t$date = agenda_jourdecal($date, -(date('j', $t)-1)); // debut de mois\n\t\t\t$date = agenda_moisdecal($date, -1); // precedent\n\t\t\tbreak;\n\t\tcase 'debut_mois_1':\n\t\tcase 'debut_mois_2':\n\t\tcase 'debut_mois_3':\n\t\tcase 'debut_mois_4':\n\t\tcase 'debut_mois_5':\n\t\tcase 'debut_mois_6':\n\t\tcase 'debut_mois_7':\n\t\tcase 'debut_mois_8':\n\t\tcase 'debut_mois_9':\n\t\tcase 'debut_mois_10':\n\t\tcase 'debut_mois_11':\n\t\tcase 'debut_mois_12':\n\t\t\t$t = strtotime($date);\n\t\t\t$mdebut = intval(substr($affichage_debut, strlen('debut_mois_')));\n\t\t\t$mcourant = date('n', $t);\n\t\t\t$offset = ($mcourant-$mdebut+12)%12;\n\t\t\t$date = agenda_jourdecal($date, -(date('j', $t)-1)); // debut de mois\n\t\t\t$date = agenda_moisdecal($date, -$offset);\n\t\t\tbreak;\n\t}\n\treturn $date;\n}", "function calendar1($date){ //get \"from\" date\r\n\t\t\t$myCalendar = new tc_calendar(\"date1\", true, false);\r\n\t\t\t$myCalendar->setIcon(\"calendar/images/iconCalendar.gif\");\r\n\t\t\t$myCalendar->setPath(\"calendar/\");\r\n\t\t\t$myCalendar->setYearInterval(1970, 2020);\r\n\t\t\t$myCalendar->setAlignment('left', 'bottom');\r\n\t\t\tif($date!=\"\"){\r\n\t\t\t\t$myCalendar->setDate(Date(\"d\",strtotime($date)),Date(\"m\",strtotime($date)),Date(\"Y\",strtotime($date)));\r\n\t\t\t}\r\n\t\t\t$myCalendar->setOnChange(\"calculate()\");\t\r\n\t\t\t$myCalendar->writeScript();\r\n\t}", "function fecha($fecha, $separador=\"\"){\n if(empty($fecha)){\n return \"\";\n }\n if(!$separador){\n $separador=\"-\";\n }\n $fecha=substr($fecha,8,2).\"$separador\".substr($fecha,5,2).\"$separador\".substr($fecha,0,4);\n return $fecha;\n}", "function affdate_periode($date, $nb_mois, $affichage_debut = 'date_jour') {\n\t$fixe = in_array($affichage_debut, array('debut_mois_1', 'debut_mois_2', 'debut_mois_3', 'debut_mois_4', 'debut_mois_5', 'debut_mois_6', 'debut_mois_7', 'debut_mois_8', 'debut_mois_9', 'debut_mois_10', 'debut_mois_11', 'debut_mois_12'));\n\tif ($nb_mois == 1) {\n\t\treturn affdate_mois_annee($date);\n\t}\n\tif ($nb_mois == 12 and mois($date) == 1) {\n\t\treturn ($fixe?_T('agenda:label_annee').' ':'').annee($date);\n\t}\n\n\treturn ($fixe?_T('agenda:label_periode_saison').' ':'').affdate_mois_annee($date).' - '.affdate_mois_annee(agenda_moisdecal($date, $nb_mois-1));\n}", "function primer_dia_periodo() {\n\n $sql=\"select fecha_inicio from mocovi_periodo_presupuestario where actual=true\";\n $resul=toba::db('designa')->consultar($sql);\n return $resul[0]['fecha_inicio'];\n \n }", "public function display_date(){\n\t\t$display = date('d-m-Y');\n\t\treturn $display;\n\t}", "public function formateaFecha($fecha){\n\n\n\t\t$array=explode(\"-\",$fecha);\n\t\t$numeromes=$array[1];\n\t\t$dia=$array[2];\n\t\t$año=$array[0];\n\n\t\tif($numeromes<10){\n\t\t\t$numeromes=substr($numeromes,1);\n\t\t}\n\n\t\t$meses=array(\"enero\",\"febrero\",\"marzo\",\"abril\",\"mayo\",\"junio\",\"julio\",\"agosto\",\"septiembre\",\"octubre\",\"noviembre\",\"diciembre\");\n\n\t\t$mes=$meses[$numeromes-1];\n\t\t \n\t\t$fecha=$dia . \" de \" . $mes .\" de \".$año;\n\n\t\treturn $fecha;\n\n}", "function ultimoDiaMes($x_fecha_f){\r\n\techo \"entra a ultimo dia mes con fecha \".$x_fecha_f.\"<br>\";\r\n\t\t\t\t\t$temptime_f = strtotime($x_fecha_f);\t\r\n\t\t\t\t\t$x_numero_dia_f = strftime('%d', $temptime_f);\r\n\t\t\t\t\t$x_numero_mes_f = strftime('%m', $temptime_f);\r\n\t\t\t\t\techo \"numero mes\".$x_numero_mes_f.\"<br>\";\r\n\t\t\t\t\t$x_numero_anio_f = strftime('%Y', $temptime_f);\r\n\t\t\t\t\t$x_ultimo_dia_mes_f = strftime(\"%d\", mktime(0, 0, 0, $x_numero_mes_f+2, 0, $x_numero_anio_f));\r\n\techo \"el ultimo dia de mes es\".\t$x_ultimo_dia_mes_f .\"<br>\";\t\t\t\r\n\treturn $x_ultimo_dia_mes_f;\r\n}", "function diaMesAno($data1) {\n\t$myDateTime = DateTime::createFromFormat('Y-m-d', $data1);\n\t$convertida = $myDateTime->format('d/m/Y');\n\treturn ($convertida);\n}", "public function modifierDate($f3) {\n $sujet = \\Sujet\\Manager::instance()->getFromId($f3->get('POST.sujet'));\n $nouvelle_date = $f3->get('POST.date');\n if(CIA(EDIT_SUJET, 0, $sujet)) {\n try {\n $sujet->setDate($nouvelle_date);\n \\Sujet\\Manager::instance()->update($sujet);\n } catch (\\Exception $exc) {\n echo $exc->getMessage();\n }\n\n }\n else {\n echo ERREUR;\n }\n }", "function fechabd($fecha, $separador=\"-\"){\n $fecha=substr($fecha,6,4).\"$separador\".substr($fecha,3,2).\"$separador\".substr($fecha,0,2);\n return $fecha;\n}", "private function getCalculatedDate(){\n date_default_timezone_set('GMT+1');//@todo get the information from system\n\n $oneDay = 86400;//seconds\n $numDays = 7; //default are 7 days\n $today = strtotime('now');\n\n if(!empty($this->settings['flexform']['countDays'])){\n $numDays = $this->settings['flexform']['countDays'];\n }\n\n //calcaulate date\n $date = date(\"d.m.Y\",$today-($numDays * $oneDay));\n\n return $date;\n }", "public function getrep_fecha()\r\n {\r\n return $this->rep_fecha;\r\n }", "public function getReceptionDate();", "public function retosSemana(){\n\n\n //$s = explode(\"-\",$fecha);\n\n\t\t//$actualDate = Carbon::create(intval($s[2]),intval($s[1]),intval($s[0]));\n\t\t\n\t\t$actualDate= Carbon::now();\n\n \n\n $date1 = Carbon::now();\n $date2 = Carbon::now();\n $date3 = Carbon::now();\n $date4 = Carbon::now();\n $date5 = Carbon::now();\n $date6 = Carbon::now();\n $date7 = Carbon::now();\n\n \n \n \n $nD = $date1->dayOfWeekIso;\n\n \n if($nD==1){\n //Lunes\n\n $monday = $date1;\n $tuesday = $date2->addDay();\n $wednesday = $date3->addDays(2);\n $thursday= $date4->addDays(3);\n $friday= $date5->addDays(4);\n $saturday= $date6->addDays(5);\n $sunday= $date7->addDays(6);\n\n }elseif(intval($nD==2)){\n //Martes\n $monday = $date1->subDay();\n $tuesday = $date2;\n $wednesday = $date3->addDay();\n $thursday= $date4->addDays(2);\n $friday= $date5->addDays(3);\n $saturday= $date6->addDays(4);\n $sunday= $date7->addDays(5);\n\n }\n elseif(intval($nD==3)){\n //Miercoles\n \n $monday = $date1->subDays(2);\n $tuesday = $date2->subDay();\n $wednesday = $date3;\n $thursday= $date4->addDay();\n $friday= $date5->addDays(2);\n $saturday= $date6->addDays(3);\n $sunday= $date7->addDays(4);\n\n \n\n }elseif($nD==4){\n //Jueves\n $monday = $date1->subDays(3);\n $tuesday = $date2->subDays(2);\n $wednesday = $date3->subDay();\n $thursday= $date4;\n $friday= $date5->addDay();\n $saturday= $date6->addDays(2);\n $sunday= $date7->addDays(3);\n }elseif($nD==5){\n //Viernes\n $monday = $date1->subDays(4);\n $tuesday = $date2->subDays(3);\n $wednesday = $date3->subDays(2);\n $thursday= $date4->subDay();\n $friday= $date5;\n $saturday= $date6->addDay();\n $sunday= $date7->addDays(2);\n }elseif($nD==6){\n //Sabado\n $monday = $date1->subDays(5);\n $tuesday = $date2->subDays(4);\n $wednesday = $date3->subDays(3);\n $thursday= $date4->subDays(2);\n $friday= $date5->subDay();\n $saturday= $date6;\n $sunday= $date7->addDay();\n }else{\n //Domingo\n $monday = $date1->subDays(6);\n $tuesday = $date2->subDays(5);\n $wednesday = $date3->subDays(4);\n $thursday= $date4->subDays(3);\n $friday= $date5->subDays(2);\n $saturday= $date6->subDay();\n $sunday= $date7;\n\t\t}\n\n\n\t\t$company_id = auth()->user()->company_id;\n\t\t\n\n\t\t$sumaLunes = count(DB::table('innovations')->where(function ($query) {\n\t\t\t$query->where('innovations.type', '=', 'solucion')\n\t\t\t\t->orWhere('innovations.type', '=', 'idea');\n\n\t\t})->where('company_id',$company_id)->whereDate('created_at',$monday->toDateString())->get());\n\t\t$sumaMartes = count(DB::table('innovations')->where(function ($query) {\n\t\t\t$query->where('innovations.type', '=', 'solucion')\n\t\t\t\t->orWhere('innovations.type', '=', 'idea');\n\n\t\t})->where('company_id',$company_id)->whereDate('created_at',$tuesday->toDateString())->get());\n\t\t$sumaMiercoles = count(DB::table('innovations')->where(function ($query) {\n\t\t\t$query->where('innovations.type', '=', 'solucion')\n\t\t\t\t->orWhere('innovations.type', '=', 'idea');\n\n\t\t})->where('company_id',$company_id)->whereDate('created_at',$wednesday->toDateString())->get());\n\t\t$sumaJueves = count(DB::table('innovations')->where(function ($query) {\n\t\t\t$query->where('innovations.type', '=', 'solucion')\n\t\t\t\t->orWhere('innovations.type', '=', 'idea');\n\n\t\t})->where('company_id',$company_id)->whereDate('created_at',$thursday->toDateString())->get());\n\t\t$sumaViernes = count(DB::table('innovations')->where(function ($query) {\n\t\t\t$query->where('innovations.type', '=', 'solucion')\n\t\t\t\t->orWhere('innovations.type', '=', 'idea');\n\n\t\t})->where('company_id',$company_id)->whereDate('created_at',$friday->toDateString())->get());\n\t\t$sumaSabado = count(DB::table('innovations')->where(function ($query) {\n\t\t\t$query->where('innovations.type', '=', 'solucion')\n\t\t\t\t->orWhere('innovations.type', '=', 'idea');\n\n\t\t})->where('company_id',$company_id)->whereDate('created_at',$saturday->toDateString())->get());\n\t\t$sumaDomingo = count(DB::table('innovations')->where(function ($query) {\n\t\t\t$query->where('innovations.type', '=', 'solucion')\n\t\t\t\t->orWhere('innovations.type', '=', 'idea');\n\n\t\t})->where('company_id',$company_id)->whereDate('created_at',$sunday->toDateString())->get());\n\n\t\t\n\n\n\n\t\t$sumaSemanal = array(\n\n\t\t\t'Lunes ' =>$sumaLunes,\n\t\t\t'Martes'=>$sumaMartes,\n\t\t\t'Miércoles'=>$sumaMiercoles,\n\t\t\t'Jueves'=>$sumaJueves,\n\t\t\t'Viernes'=>$sumaViernes,\n\t\t\t'Sábado'=>$sumaSabado,\n\t\t\t'Domingo ' =>$sumaDomingo,\n\t\t);\n\n\t\treturn $sumaSemanal;\n\t}", "function fecha($name, $boton, $obligatorio, $mensaje) {\n echo \"<script type='text/javascript'>\";\n echo \"\n\t\t\tCalendar.setup({\n inputField : '\" . $name . \"', // id of the input field\n ifFormat : '%d-%m-%Y', // format of the input field\n button : '\" . $boton . \"', // trigger for the calendar (button ID)\n align : 'B2', // alignment (defaults to 'Bl')\n singleClick : true\n \t});\n\t\t\";\n echo \"var \" . $name . \" = new LiveValidation('\" . $name . \"');\";\n if ($obligatorio):\n echo \"$name.add( Validate.Presence);\";\n endif;\n if (empty($mensaje)):\n echo \"$name.add( Validate.Fecha );\";\n else:\n echo \"$name.add( Validate.Fecha, {failureMessage: '$mensaje!'} );\"; //asi es komo se ponen mensajes personalizados\n endif;\n echo \"</script>\";\n }", "public function getDateFormate($date){\n\n \t\tif($date != null){\n \t\t $dateAformater = explode(\"-\", $date);\n\n \t\t $annee = $dateAformater[0];\n \t\t $mois = $dateAformater[1];\n \t\t $jour = $dateAformater[2];\n\n $newDate = $jour . '/' . $mois . '/' . $annee ;\n\n return $newDate;\n \t\t}else{\n \t\t\treturn null;\n \t\t}\n\n }", "function setDate($date = null)\r\n\t{\t\r\n\t\t$day = substr($date ,8, 2);\r\n\t\t$month = substr($date ,5, 2);\r\n\t\t$year = substr($date ,0, 4);\r\n\t\t\r\n\t\t$newDate = $day.'-'.$month.'-'.$year;\r\n\t\t\r\n\t\treturn $newDate;\r\n\t}", "function aDate($string){\n\n\n\t\t}", "function formataDataAmericanaEmBrasileira($dataAmericana) {\n return date('d/m/Y', strtotime($dataAmericana));\n}", "function datum_nu() {\n\t\t//\n\t\t$datestring \t\t\t\t= \"%d-%m-%Y\" ; \n\t\t$time \t\t\t\t\t\t= time();\t\t\t\n\t\t\n\t\treturn date($datestring, $time);\n\t\t//-----/\n\t}", "function validar_fecha_stock($fechaStock)\n{\n //$fecha = date('d-m-Y');\n $fecha = date('d/m/Y');\n //$fecha = strftime($fecha);\n\n if ($fecha == $fechaStock) {\n return true;\n }\n\n return false;\n}", "function cambiaf_a_normal($fecha){ \n\t \tereg( \"([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})\", $fecha, $mifecha); \n\t \t$lafecha=$mifecha[3].\"/\".$mifecha[2].\"/\".$mifecha[1]; \n\t \treturn $lafecha; \n\t}", "function convertdateanglais($date){\n\t$ladate=explode('-',$date);\n\t$jour=$ladate[2];\n\t$moi=$ladate[1];\n\t$anne=$ladate[0];\n\t$madate=date(\"d/m/Y\", mktime(0, 0, 0, $moi, $jour, $anne));\n\treturn $madate;\n}", "function form_date($variable='date', $date='', $nopop = false) {\n\n\tglobal $request;\n\n\t/***********\n\t* Select the current date\n\t***********/\n\n\t// use now\n\tif ($date == 'NOW') {\n\n\t\t$date = convert_gmt_timestamp_to_local_input(TIMENOW);\n\n\t// use the value submitted by form\n\t} elseif ($date == 'FORM') {\n\n\t\t$date = $request->getArrayString($variable);\n\n\t// use a numeric\n\t} elseif (is_numeric($date) AND $date > 0) {\n\t\t$date = convert_gmt_timestamp_to_local_input($date);\n\t}\n\n\t// the other option is an array for $date; which all the others are converted to so it is covered\n\tif (dpcheckdate($date)) {\n\t\t$month = $date['month'];\n\t\t$day = $date['day'];\n\t\t$year = $date['year'];\n\t}\n\n\t// we load the javascript & css if this is first time here\n\tif (!defined('DESKPRO_JSLOADED_DATA')) {\n\t\t$html .= get_javascript('./../3rdparty/selectcalendar/calendar.js');\n\t\t$html .= get_javascript('./../3rdparty/selectcalendar/lang/calendar-en.js');\n\t\t$html .= get_javascript('./../3rdparty/selectcalendar/calendar-setup.js');\n\t\t$html .= get_css('./../3rdparty/selectcalendar/calendar-win2k-cold-1.css');\n\t\tdefine('DESKPRO_JSLOADED_DATA', 1);\n\t}\n\n\t// random button link\n\t$button = 'data' . dp_rand(1,1000000);\n\n\t// the html for creating the calendar\n\t$html .= \"\n\t<table cellspacing=\\\"0\\\" cellpadding=\\\"0\\\"><tr>\n\t\t<td style=\\\"padding-right:4px\\\">\" . form_select_day($variable . '[day]', $day, $variable . '_day') . \"</td>\n\t\t<td style=\\\"padding-right:4px\\\">\" . form_select_month($variable . '[month]', $month, $variable . '_month'). \"</td>\n\t\t<td style=\\\"padding-right:4px\\\">\" . form_select_year($variable . '[year]', $year, $variable . '_year') . \"</td>\n\t\t<td style=\\\"padding-right:4px\\\">\n\n\t<input style=\\\"display:none\\\" type=\\\"text\\\" value=\\\"$current\\\" name=\\\"$variable\" . \"_selector\\\" id=\\\"$variable\\\" /></td>\";\n\n\tif (!$nopop) {\n\n\t\t$html .= \"<td>\" . html_image('icons/view_calendar.gif', '', \"id=\\\"$button\\\" title=\\\"Date selector\\\"\n onmouseover=\\\"this.style.background='red';\\\" onmouseout=\\\"this.style.background=''\\\"\");\n\n\t\tif ($time) {\n\n\t\t\t$html .= \"\n\t\t\t<script type=\\\"text/javascript\\\">\n\t\t\t\tCalendar.setup({\n\t\t\t\t\tinputField : \\\"$variable\" . \"_selector\\\",\n\t\t\t\t\tifFormat : \\\"%Y-%m-%d %H:%M\\\",\n\t\t\t\t\tshowsTime : true,\n\t\t\t\t\tbutton : \\\"$button\\\",\n\t\t\t\t\tsingleClick : true,\n\t\t\t\t\talign\t\t\t:\t'Bl',\n\t\t\t\t\tstep : 1,\n\t\t\t\t\tonSelect : onSelect\n\t\t\t\t});\n\t\t\t</script>\n\t\t\t\";\n\n\t\t} else {\n\n\t\t\t$html .= \"\n\t\t\t<script type=\\\"text/javascript\\\">\n\t\t\t\tCalendar.setup({\n\t\t\t\t\tinputField : \\\"$variable\\\",\n\t\t\t\t\tifFormat : \\\"%Y-%m-%d\\\",\n\t\t\t\t\tshowsTime : false,\n\t\t\t\t\tbutton : \\\"$button\\\",\n\t\t\t\t\tsingleClick : true,\n\t\t\t\t\talign\t\t\t:\t'Bl',\n\t\t\t\t\tstep : 1,\n\t\t\t\t\tonSelect : onSelect\n\t\t\t\t});\n\t\t\t</script>\n\t\t\t\";\n\n\t\t}\n\n\t\t$html .= \"</td>\";\n\n\t}\n\n\t$html .= \"</tr></table>\";\n\n\treturn $html;\n}", "function date_ajourdhui()\n{\n $date = localtime(time());\n\n $mois = $date[4]+1;\n $annee = $date[5] + 1900;\n\n $aujourdhui = mktime(0,0,0,$mois,$date[3],$annee,-1);\n \n return date('Y-m-d', $aujourdhui); \n}", "function agenda_jourdecal($date, $decalage, $format = 'Y-m-d H:i:s') {\n\tinclude_spip('inc/filtres');\n\t$date_array = recup_date($date);\n\tif ($date_array) {\n\t\tlist($annee, $mois, $jour) = $date_array;\n\t}\n\tif (!$jour) {\n\t\t$jour = 1;\n\t}\n\tif (!$mois) {\n\t\t$mois = 1;\n\t}\n\t$jour2 = $jour + $decalage;\n\t$date2 = mktime(1, 1, 1, $mois, $jour2, $annee);\n\treturn date($format, $date2);\n}", "function dbToUIdate() {\r\n\t\t\r\n\t\t$year = substr($this->event_date_time, -19, 4);\r\n\t\t$month = substr($this->event_date_time, -14, 2);\r\n\t\t$day = substr($this->event_date_time, -11, 2);\r\n\r\n\t\t$this->date = $month . \"/\" . $day . \"/\" . $year;\r\n\t\r\n\t}", "function leerlafecha($fechaentrada, $idioma) {\n\t\t//devuelve variables en el idioma dado por la variable $idioma que puede valer 'cas' o 'cat'\n\t\t//Así podremos leer la fecha en formato humanoide.\n\t\t\n\t\tdate_default_timezone_set('Europe/Madrid');\t//Esta definicion de la zona horaria me la pide el php del hosting en freehostia.com para dejarme usar strtotime en el script\n\t\t\n\t\t//Dependiendo del idioma definimos los nombres de los meses del año y los dias de la semana\n\t\tif ($idioma == 'cat' or empty($idioma)) {$anno = array (\"gener\", \"febrer\", \"març\", \"abril\", \"maig\", \"juny\", \"juliol\", \"agost\", \"setembre\", \"octubre\", \"novembre\", \" desembre \"); $dias = array ('', 'Dilluns', 'Dimarts', 'Dimecres', 'Jueves', 'Divendres', 'Dissabte', 'Diumenge');}\n\t\telse if ($idioma == 'cas') {$anno = array(\"enero\", \"febrero\", \"marzo\", \"abril\",\"mayo\",\"junio\",\"julio\",\"agosto\",\"septiembre\",\"octubre\",\"noviembre\",\"diciembre\"); $dias = array('','Lunes','Martes','Miercoles','Jueves','Viernes','Sabado','Domingo');}\n\t\t\n\t\tif (empty($fechaentrada)==false){\n\t\t\t$dia = substr ($fechaentrada, 8 , 2 ); //número del dia\n\t\t\t$mesnumerico = substr($fechaentrada,5,2); //número del mes\n\t\t\t$ano = substr ($fechaentrada,0,4); //número del año\n\t\t\t$indicemes = intval($mesnumerico) - 1;\n\t\t\t$nombremes = $anno[$indicemes]; //nombre del mes en el idioma escojido\n\t\t\t$nombredia = $dias[date('N', strtotime($fechaentrada))]; //nombre del dia en el idioma elejido\n\t\t}\n\t\t\n\t\t return array ($dia,$mesnumerico,$ano,$nombremes,$nombredia);\n\t\t\n\t}", "function datum_nu2() {\n //\n\t\t\t$datestring \t\t\t\t= \"%Y-%m-%d\" ; \n\t\t\t$time \t\t\t\t\t\t= time();\t\t\t\n\t\t\treturn mdate($datestring, $time);\n\t}", "public function sanitizarFecha($fecha)\n{\n $date =New DateTime();\n return $fechaPedidoDesde= date_format($date->createFromFormat('d/m/Y',$fecha), 'd/m/Y');\n}", "function formatear_fecha($fecha, $tipo)\n{\n if($tipo == 1) //Formato AAAA-MM-DD\n {\n $fecha_aux = explode('-',$fecha);\n if(count($fecha_aux)<3)\n {\n $fecha_aux = explode('/',$fecha);\n }\n if(count($fecha_aux)<3)\n {\n return $fecha;\n }\n\n if(strlen($fecha_aux[0])>2)\n {\n $fecha_final = $fecha_aux[0].'-'.$fecha_aux[1].'-'.$fecha_aux[2];\n }\n else\n $fecha_final = $fecha_aux[2].'-'.$fecha_aux[1].'-'.$fecha_aux[0];\n }\n else //Formato DD-MM-AAAA\n {\n $fecha_aux = explode('-',$fecha);\n if(count($fecha_aux)<3)\n {\n $fecha_aux = explode('/',$fecha);\n }\n if(count($fecha_aux)<3)\n {\n return $fecha;\n }\n\n if(strlen($fecha_aux[0])>2)\n {\n $fecha_final = $fecha_aux[2].'-'.$fecha_aux[1].'-'.$fecha_aux[0];\n }\n else\n $fecha_final = $fecha_aux[0].'-'.$fecha_aux[1].'-'.$fecha_aux[2];\n }\n\n return $fecha_final;\n}", "function ritorna_data_attuale() {\n\t$tz = 'Europe/Rome';\n\t$format='d/m/Y H:i:s'; // Formato Italiano\n $retData='';\n//\n// DO NOT EDIT ANYTHING BELOW THIS LINE!\n//\n\tdate_default_timezone_set($tz);\n\t$retData = date($format);\n\treturn($retData);\n}", "public function getIngresoAttribute()\n {\n return strftime(\"%d/%b/%Y\", strtotime(date_format(date_create($this->fecha_ingreso), 'd-m-Y')));\n }", "function modifyDate($mode, $date, $amount);", "function fecha2display($fecha) {\n $fecha = split(\"-\", $fecha);\n $dia = $fecha[2];\n $mes = $fecha[1];\n $anyo = $fecha[0];\n return \"$dia/$mes/$anyo\";\n}", "public function getDateEn() {\n return $this->date;\n }" ]
[ "0.730154", "0.7028957", "0.6983645", "0.69141144", "0.6903435", "0.68965465", "0.6884869", "0.67804927", "0.67804927", "0.6754572", "0.6695354", "0.66748893", "0.66232044", "0.66163373", "0.6604238", "0.6596938", "0.6586493", "0.6569976", "0.6504762", "0.65024775", "0.6495248", "0.6488908", "0.64779264", "0.6438147", "0.6438127", "0.6438127", "0.64324933", "0.6404875", "0.6376476", "0.63557065", "0.635234", "0.6345595", "0.6338524", "0.6333224", "0.6316182", "0.6304272", "0.6304272", "0.6304272", "0.6304272", "0.6304272", "0.62961453", "0.62867165", "0.62742853", "0.6273995", "0.62734", "0.6245042", "0.62414205", "0.62294537", "0.6220889", "0.62089515", "0.6207438", "0.62059265", "0.62022626", "0.6185082", "0.61790437", "0.61739177", "0.61739177", "0.61739177", "0.61611444", "0.6152888", "0.61475027", "0.6144118", "0.6142785", "0.6141115", "0.6127412", "0.61272603", "0.6114823", "0.61134326", "0.611097", "0.61026406", "0.6102599", "0.61008877", "0.60917586", "0.6088827", "0.60885394", "0.60774016", "0.6073678", "0.60731405", "0.60728765", "0.60711247", "0.6069726", "0.6069157", "0.60606515", "0.6055339", "0.60537046", "0.60521483", "0.6047034", "0.6044661", "0.603553", "0.60355175", "0.6031144", "0.6030988", "0.6025243", "0.6019194", "0.6018817", "0.60184056", "0.601753", "0.60171264", "0.60167724", "0.60096204", "0.6008291" ]
0.0
-1
Retourne le login, pour creer la valeur par defaut
function getLogin() { if (isset($_SESSION["login"])) { return $_SESSION["login"]; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function getLogin() {\n //resultat : chaîne de caractère qui correspond au login \n return self::$databases['login'];\n }", "public function get_login() \n {\n return $this->login;\n }", "public function getLogin () {\n if ($this->donnees !== null and key_exists(self::LOGIN_REF, $this->donnees)) {\n return $this->donnees[self::LOGIN_REF];\n } else {\n return \"\";\n }\n }", "public function getLogin();", "public function getLogin();", "public function getLogin();", "function getLogin() {\n return $this->login;\n }", "public function getLogin()\n {\n return $this->login;\n }", "public function getLogin()\n\t{\n\t\treturn $this->login;\n\t}", "public function getLogin()\n\t{\n\t\treturn $this->login;\n\t}", "public function getLogin()\n {\n return $this->login;\n }", "public function getLogin()\n {\n return $this->login;\n }", "public function getLogin()\n {\n return $this->login;\n }", "public function getLogin()\n {\n return $this->login;\n }", "public function getLogin()\n {\n return $this->login;\n }", "public function getLogin()\n {\n return $this->login;\n }", "public function getLogin()\n {\n return $this->login;\n }", "public function getLogin()\n {\n return $this->login;\n }", "public function getLogin()\n {\n return $this->Login;\n }", "public function getLogin()\n {\n return $this->__get(\"login\");\n }", "public function getStoredLogin(): string\n {\n return $this->login;\n }", "public function getLogin()\n {\n return $this->_login;\n }", "public function getLogin()\n {\n return $this->_login;\n }", "public function info_login()\r\n\t{ \r\n\t\treturn $this->login;\r\n\t}", "public function getUserLogin()\n {\n return $this->userLogin;\n }", "public function getUserLogin() {\n\t\treturn $this->_userLogin;\n\t}", "function get_login ()\r\n {\r\n return $_SESSION[\"login\"];\r\n }", "public function getLogin(): string\n {\n }", "public function getLogin()\n {\n return $this->email;\n }", "public function loginUsername()\n {\n return 'username';\n }", "public function loginUsername()\n {\n return 'username';\n }", "public function getUsername(){\n return $this->login;\n }", "public function getUserLoginId()\n {\n if ($this->_hasVar('user_login_id')) {\n return $this->_getVar('user_login_id');\n }\n return 0;\n }", "public function getUsername(){\n return $this->login;\n }", "function login() {\n\t $login_parameters = array(\n\t\t \"user_auth\" => array(\n\t\t \"user_name\" => $this->username,\n\t\t \"password\" => $this->hash,\n\t\t \"version\" => \"1\"\n\t\t ),\n\t\t \"application_name\" => \"mCasePortal\",\n\t\t \"name_value_list\" => array(),\n\t );\n\n\t $login_result = $this->call(\"login\", $login_parameters);\n\t $this->session = $login_result->id;\n\t return $login_result->id;\n\t}", "public function getUserLogin() {\n\t\t$default = new Zend_Session_Namespace ( 'default' );\n\t\tif ($default->userLogin)\n\t\t\treturn $default->userLogin;\n\t\telse\n\t\t\treturn null;\n\t}", "public function getForLogin()\n\t{\n##if @BUILDER.strLoginTableConnectionID.len##\n\t\treturn $this->byId( \"##@BUILDER.strLoginTableConnectionID s##\" );\n##else##\t\t\n\t\treturn $this->getDefault();\n##endif##\n\t}", "function get_login_user_id()\n\t{\n\t\treturn $this->login_user_id;\n\t}", "Public Function PublisherLogin() {\n\t\treturn $this->publisherLogin;\n\t\n\t}", "function getPaybackLogin() {\n global $_SESSION;\n if ($this->is()) {\n return $_SESSION['payback']['user'];\n } else return '';\n }", "public function loginUsername()\n {\n return property_exists($this, 'username') ? $this->username : 'email';\n }", "public function loginUsername()\n {\n return 'email';\n }", "public function identity()\r\n {\r\n\t\t$storage = $this->get_storage();\r\n\r\n if ($storage->is_empty()) {\r\n return null;\r\n }\r\n if( is_null(self::$login_user) ){\r\n $u = $storage->read();\r\n\t\t\tself::$login_user = Model_User::instance()->user($u['uid']);\r\n \r\n global $VIEW_AUTH_USERID;\r\n $VIEW_AUTH_USERID = idtourl(self::$login_user['uid']);\r\n }\r\n return self::$login_user; \r\n }", "public function getLoginName()\n {\n return $this->loginName;\n }", "public function getLogin()\n {\n return $this->getAttribute('login', '', 'subscriber');\n }", "function get_userdatabylogin($user_login)\n {\n }", "protected function loginUsername()\n {\n return 'email';\n }", "public function loginValide () {\n $login = $this->donnees[self::LOGIN_REF];\n // Le champ login ne doit pas ?tre vide\n if ($login == null) {\n $this->erreur[self::LOGIN_REF] = \"Veuillez remplir le champ login\";\n return false;\n // Le champ login doit contenir un login pr?sent dans la base de donn?es\n } else if (! $this->utilisateurs->exist($login)) {\n $this->erreur[self::LOGIN_REF] .= \"ce login est inconnu\";\n return false;\n }\n return true;\n }", "public function getDsLogin()\n\t{\n\t\treturn $this->ds_login;\n\t}", "public function login();", "public function login();", "public function getUsername(): string\n {\n return (string) $this->login;\n }", "public function getUsername(): string\n {\n return (string) $this->login;\n }", "public function getUsername(): string\n {\n return (string) $this->login;\n }", "public function getUsername(): string\n {\n return (string) $this->login;\n }", "public function getUsername()\n {\n return $this->login;\n }", "public function getUsername()\n {\n return $this->login;\n }", "public function login(): ?string\n {\n if ($this->validate()) {\n $token = $this->getUser()->generateToken();\n return $token;\n }\n \n return null;\n }", "function cek_login($tabel,$where) {\n\t\t$login = $this->db->get_where('user',$where);\n\t\treturn $login;\n\t}", "public function diviroids_user_login($atts)\n {\n return DiviRoids_Security::get_current_user('user_login');\n }", "public function getLogin() //El nombre de la ruta es lo que está escrito después del get. Debo tener el get porque es en la que se manda a llamar el formulario.\n {\n return render('../views/login.php');\n }", "private static function loginGet(){\r\n \r\n if(!isset($_POST['login']) || !isset($_POST['password']))\r\n return false;\r\n \r\n $client = new Login(addslashes($_POST['login']), addslashes($_POST['password']));\r\n if($client->identification()){\r\n //for agency\r\n $_SESSION['account'] = $_POST['login'];\r\n $_SESSION['login'] = $client->login;\r\n \r\n if (!Security::isAdmin()){\r\n $date = Client::GetConfigurationStatic($_SESSION['login'], 'LAST_CONNEXION');\r\n Client::setConfigurationStatic($_SESSION['login'], 'BEFORE_LAST_CONNEXION', $date);\r\n Client::setConfigurationStatic($_SESSION['login'], 'LAST_CONNEXION', date('Y-m-d H:i:s'));\r\n header ('location:/');\r\n }else\r\n header ('location:/admin');\r\n \r\n exit;\r\n }\r\n \r\n return false;\r\n }", "public function login(string $username, string $password): int|string|null;", "public function getPassword_login()\n {\n return $this->password_login;\n }", "function getLoginFlag()\n\t\t{\n\t\t\treturn $this->loginflag;\n\t\t}", "function getUser(Login $login);", "static function getLogin(&$rsData)\n {\n return $rsData['login'];\n }", "function getUserName()\n{\n $logger = new Logger();\n\n // Default : method of login (Cookie)\n // Fallback method : IP based (To be done)\n if (!isCookiesEnabled()) \n {\n\t$logger->addLog(\"Error : Cookies not enabled\");\n\treturn false;\n }\n\n if(!isset($_COOKIE[\"login_key\"]) || !isset($_COOKIE[\"login_id\"])) \n {\n\t$logger->addLog(\"No login key found for this user\");\n\treturn false;\n }\n\n $logger->addLog(\"Login key found for this user\");\n $base_dir = $_SERVER['DOCUMENT_ROOT'];\n $file_path = \"$base_dir/Data/users/\".$_COOKIE['login_id'].\"/userInfo.dat\";\n\n if (!file_exists($file_path))\n {\n\t$logger->addLog(\"Error : User \".$_COOKIE['login_id'].\" does not exists.\");\n\treturn false;\n }\n\n $data = file_get_contents($file_path);\n $data = json_decode($data, true);\n\n if ($data['hash'] != $_COOKIE[\"login_key\"]) \n {\n\t$logger->addLog(\"Fatal Error : Password miss-match for user \".$_COOKIE['login_id'], 'e');\n\treturn false;\n }\n\n return $_COOKIE['login_id'];\n}", "public function getUsername()\n {\n return $this->getLogin();\n }", "function checkLogin() {\r\n if(getSession('pass')===null) { //test if 'pass' is null\r\n return false; //returns false indicating 'pass' was null\r\n }\r\n else {\r\n return getSession('pass'); //returns the value, indicating the user is logged in\r\n }\r\n}", "public function getCurrentUsername(): string;", "public function login( )\n\t\t{\n\t\t\treturn $this->get_session();\n\t\t}", "public function getUserIdentifier(): string\n {\n return (string) $this->login;\n }", "public static function getLoggedUserId()\r\n {\r\n return self::getVariable(\"login\", \"user-id\");\r\n }", "function shopLogin()\r\n\t{\r\n\t\t$tpl_dir = BASE_DIR . \"/modules/login/templates/\";\r\n\t\t$lang_file = BASE_DIR . \"/modules/login/lang/\" . STD_LANG . \".txt\";\r\n\r\n\t//\t$login = new Login;\r\n\r\n\t\tif(!isset($_SESSION[\"cp_benutzerid\"]))\r\n\t\t\treturn $this->displayLoginform($tpl_dir,$lang_file);\r\n\t\telse\r\n\t\t\treturn $this->displayPanel($tpl_dir,$lang_file);\r\n\t}", "function get_username() {\n\treturn $_SESSION['GHOME_CUSER'];\n}", "public function getLogin()\n {\n return Mage::getStoreConfig('smsnotifier/main_conf/apilogin');\n\n }", "public function getLastlogin() {}", "function getLoginUserType()\n {\n if (evo()->isFrontend() && evo()->session('webValidated')) {\n return 'web';\n }\n\n if (evo()->isBackend() && evo()->session('mgrValidated')) {\n return 'manager';\n }\n\n return '';\n }", "public function getDefaultUsername() : ?string;", "public function getLoginUserId(){\n $auth = Zend_Auth::getInstance();\n if($auth->hasIdentity())\n {\n return $loginUserId = $auth->getStorage()->read()->id;\n }else{\n\t\t\treturn 1;\n\t\t}\n }", "public static function getLoggedInUser() {\n if (self::$loggedInUser == false) {\n //We need the Db class to escape the username, just in case.\n $db = Db::getInstance();\n\n // The email is used as the username to log into the service.\n $login = $db->escapeString($_SERVER['PHP_AUTH_USER']);\n $password = $db->escapeString($_SERVER['PHP_AUTH_PW']);\n \n $query = \"SELECT \".Config::AUTH_FIELD_UID.\", \".Config::AUTH_FIELD_LOGIN.\" \"\n .\"FROM \".Config::DB_DB.\".\".Config::AUTH_TABLE.\" WHERE \"\n .Config::AUTH_FIELD_LOGIN.\" = '$login' \"\n .\"AND `\".Config::AUTH_FIELD_PASSWORD.\"` = SHA1('$password')\";\n\n self::$loggedInUser = self::loadBySql($query);\n }\n\n return self::$loggedInUser;\n }", "public function get_first_login() \n {\n\t\t$conn = $this->conn;\n\t\t$pass = md5($this->pass);\n $login = $this->login;\n\t\t\n\t\t$params = array($login,$pass);\n $query = \"SELECT * FROM users WHERE login = ? AND pass = ?\";\n\t\t\n\t\t$rs = $conn->Execute($query, $params);\n\t\t\n\t\tif(!$rs)\n\t\t{\n \t\tAv_exception::write_log(Av_exception::DB_ERROR, $conn->ErrorMsg());\n \t\t\n \t\treturn FALSE;\n\t\t}\t\t\n \n if (!$rs->EOF) \n {\n\t\t\t$first_login = $rs->fields['first_login'];\n \n return ($first_login) ? TRUE : FALSE;\n }\n\t}", "function login();", "public function getLoginBase($default = '')\n\t{\n\t\treturn ($this->login_base) ? $this->login_base : $default;\n\t}", "public function isLogin();", "public function getUsername() {}", "public function checkLogin($type=''){\n \tif ($type == 'A'){\n \t\treturn $this->session->userdata(APPNAMES.'_session_admin_id');\n \t}else if ($type == 'P'){\n \t\treturn $this->session->userdata(APPNAMES.'_session_admin_privileges');\n \t}else if ($type == 'U'){\n \t\treturn $this->session->userdata(APPNAMES.'_session_user_id');\n \t}else if ($type == 'T'){\n \t\treturn $this->session->userdata(APPNAMES.'_session_temp_id');\t\t\t\n \t}\n }", "public function getLoginNameForRegister()\n {\n return $this->loginNameForRegister;\n }", "function username(string $login, string $default = 'id'): string\n{\n $map = [\n 'email' => filter_var($login, FILTER_VALIDATE_EMAIL),\n 'phone' => validateChinaPhoneNumber($login),\n 'name' => validateUsername($login),\n ];\n\n foreach ($map as $field => $value) {\n if ($value) {\n return $field;\n }\n }\n\n return $default;\n}", "public function checkFirstLogin();", "private function login(){\n \n }", "public function providerLogin()\n {\n return $this->authRepo->providerLogin();\n }", "function _genLogin()\n {\n $this->mismatch = false;\n if (isset($_POST['login']) && $this->_verify() == \"\") {\n $this->name_post = $_POST['gebruikersnaam'];\n $this->pass_post = $_POST['wachtwoord'];\n\n $this->_getFromGebruikersDb($this->name_post);\n if ($this->_isMatch()) {\n $_SESSION['ingelogd'] = true;\n //toegevoegd door rens om een gebruikersnaam en rol te krijgen\n $_SESSION['gebruikersnaam'] = $this->name_post;\n $_SESSION['Rol'] = $this->role_db;\n header('location: Login_Redir.php');\n }\n }\n }", "public function login()\n {\n return $this->authRepo->login();\n }", "public function checkLogin($type=''){\n\t\tif ($type == 'A'){\n\t\t\treturn $this->session->userdata(APPNAMES.'_session_admin_id');\n\t\t}else if ($type == 'P'){\n\t\t\treturn $this->session->userdata(APPNAMES.'_session_admin_privileges');\n\t\t}else if ($type == 'U'){\n\t\t\treturn $this->session->userdata(APPNAMES.'_session_user_id');\n\t\t}else if ($type == 'T'){\n\t\t\treturn $this->session->userdata(APPNAMES.'_session_temp_id');\n\t\t}\n }", "function Login(){\n\n\t\t$this->ConectarBD();\n\t\t$sql = \"select * from EMPLEADOS where EMP_USER = '\".$this->EMP_USER.\"'\";\n\t\t$result = $this->mysqli->query($sql);\n\t\tif ($result->num_rows == 1 ){\n\t\t\t$tupla = $result->fetch_array();\n\t\t\tif ($tupla['EMP_PASSWORD'] == md5($this->EMP_PASSWORD)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn 'La contraseña para este empleado es errónea';\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\treturn \"El empleado no existe\";\n\t\t}\n\n\t}", "public function GetUserName ();", "public function GetLoginDate()\n\t\t{\n\t\t\tif (isset($_SESSION[\"LoginDate\"])) return '+'.$_SESSION['LoginDate'];\n\t\t\telse return null;\n\t\t}", "protected function token() {\n\t\treturn $this->name().'_login';\n\t}" ]
[ "0.81909513", "0.81313956", "0.7980994", "0.79746586", "0.79746586", "0.79746586", "0.7973525", "0.7955411", "0.7912691", "0.7912691", "0.7902742", "0.7902742", "0.7902742", "0.7902742", "0.7902742", "0.7902742", "0.7902742", "0.7902742", "0.78870654", "0.78712916", "0.78532666", "0.78184843", "0.78184843", "0.77227086", "0.76626605", "0.76505095", "0.75899106", "0.7469384", "0.7342747", "0.73108286", "0.73108286", "0.7233909", "0.7228374", "0.722403", "0.7177412", "0.714858", "0.71305084", "0.7113132", "0.7081531", "0.70627147", "0.70460236", "0.7042413", "0.704005", "0.7039825", "0.70365083", "0.7034138", "0.7034127", "0.7017927", "0.69953394", "0.69777095", "0.69777095", "0.6942508", "0.6942508", "0.6942508", "0.6942508", "0.6931627", "0.6931627", "0.6913298", "0.69075245", "0.6900394", "0.6856814", "0.684474", "0.6811907", "0.67883515", "0.6778094", "0.6756751", "0.6751227", "0.67359823", "0.67226523", "0.6721498", "0.6716925", "0.6707634", "0.6702269", "0.6701629", "0.66936225", "0.6686814", "0.6685518", "0.66724926", "0.6660405", "0.66416204", "0.66357595", "0.66244864", "0.6609668", "0.66070634", "0.66061985", "0.65983725", "0.65917695", "0.65855217", "0.6579147", "0.65768707", "0.65701216", "0.6569476", "0.6555138", "0.6548153", "0.6545409", "0.6544581", "0.65441066", "0.65428036", "0.6539256", "0.65311354" ]
0.76869756
24
Fonction permettant de recuperer les valeurs par defaut
function getDefaultValue($parentValue = 0) { $data = array(); /* * Assignation des valeurs par defaut */ foreach ($this->colonnes as $key => $colonne) { if (strlen($colonne["defaultValue"]) > 0) { if (is_callable(array( $this, $colonne["defaultValue"] ))) { /* * Appel de la fonction */ $data[$key] = $this->{$colonne["defaultValue"]}(); } else { /* * Attribution de la valeur par defaut */ $data[$key] = $colonne["defaultValue"]; } } /* * Gestion de l'attribut "pere" */ if ($parentValue > 0 && strlen($colonne["parentAttrib"]) > 0) { $data[$key] = $parentValue; } } return $data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function afficherAll()\n {\n }", "private function iniciarRecolectarData()\r\n\t\t{\r\n\t\t\tself::findPagoDetalleActividadEconomica();\r\n\t\t\tself::findPagoDetalleInmuebleUrbano();\r\n\t\t\tself::findPagoDetalleVehiculo();\r\n\t\t\tself::findPagoDetalleAseo();\r\n\t\t\tself::findPagoDetallePropaganda();\r\n\t\t\tself::findPagoDetalleEspectaculo();\r\n\t\t\tself::findPagoDetalleApuesta();\r\n\t\t\tself::findPagoDetalleVario();\r\n\t\t\tself::findPagoDetalleMontoNegativo();\r\n\t\t\tself::ajustarDataReporte();\r\n\t\t}", "public function listaVisitantes(){\n \n }", "function rec_empresa_list(){\n\t\t}", "public function getUtilisateurs();", "public function liste__() {\n\n // lecture des informations\n $this->db->select(\"rgl_id,rgl_reference,rgl_date,rgl_montant,rgl_type,vtr_type,rgl_cheque,rgl_banque,rgl_client,ctc_nom\",false);\n $this->db->join('v_types_reglements','vtr_id=rgl_type','left');\n $this->db->join('t_contacts','ctc_id=rgl_client','left');\n $this->db->where('rgl_inactif is null');\n $this->db->order_by(\"rgl_date desc\");\n $this->db->order_by(\"rgl_id desc\");\n $query = $this->db->get_compiled_select('t_reglements');\n //log_message('DEBUG', 'M_reglements '.$query);\n $q = $this->db->query($query);\n if ($q->num_rows() > 0) {\n $result = $q->result();\n foreach($result as $r) {\n $query = $this->db->where('ipu_reglement',$r->rgl_id)\n ->where('ipu_inactif is null')\n ->select('ipu_facture,fac_reference,ipu_avoir,avr_reference')\n ->join('t_factures','fac_id=ipu_facture','left')\n ->join('t_avoirs','avr_id=ipu_avoir','left')\n ->get_compiled_select('t_imputations');\n //log_message('DEBUG', 'M_reglements '.$query);\n $q = $this->db->query($query);\n $pieces = '';\n $sep = '';\n foreach ($q->result() as $p) {\n $pieces .= $sep;\n if ($p->fac_reference != '') {\n $pieces .= anchor_popup('factures/detail2/'.$p->ipu_facture,$p->fac_reference);\n }\n else if ($p->avr_reference != '') {\n $pieces .= anchor_popup('avoirs/detail2/'.$p->ipu_avoir,$p->avr_reference);\n }\n $sep = '<br />';\n }\n $r->pieces = $pieces;\n if ( $pieces!='' )\n log_message('DEBUG', 'M_reglements ipu_reglement:'.$r->rgl_id.' pieces:'.$pieces);\n }\n return $result;\n }\n else {\n return array();\n }\n }", "function listaRuta()\r\n\t{\t\r\n\t\t$query = \"SELECT * FROM \" . self::TABLA . \";\";\r\n\t\treturn parent::listaRegistros( $query );\r\n\t}", "public function listar(){\r\n }", "function recuperarFinalistas(){\n\t\t$votopro = new VotaProfesional();\n\t\t$res = $votopro->recuperarFinalistas();\n\t\treturn $res;\n\t}", "protected abstract function getIListar();", "function retourneListeUtilisateur(){\n\tglobal $connexion; // on définie la variables globale de connection dans la fonction\n\t\n\t$utilisateurs = array();\n\t$requete = $connexion->query(\"SELECT * FROM utilisateur\");\n\t$requete->setFetchMode(PDO::FETCH_OBJ);\n\twhile($enregistrement = $requete->fetch()){\n\t\t$utilisateurs[] = $enregistrement; // on ajoute à $utilisateurs[n+1] un objet utilisateur\n\t}\n\treturn $utilisateurs;\n}", "private function liste() {\n\t\t$this->_ctrlLivre = new ControleurLivre();\n\n\t\t// modifie livre\n\t\tif(isset($_SESSION['error_livre_modifie'])) unset($_SESSION['error_livre_modifie']);\n\t\tif(isset($_POST['modifie_livre'])){\n\t\t\t\t$id = Utils::getPost('id_livre_m');\n\t\t\t\t$titre = Utils::getPost('nom_livre_m');\n\t\t\t\t$annee = Utils::getPost('annee_livre_m');\n\t\t\t\t$auteur = Utils::getPost('auteur_livre_m');\n\t\t\t\t$resume = Utils::getPost('resume_livre_m');\n\t\t\t\tif ($id && $titre && $annee && $auteur && $resume) {\n\t\t\t\t\t$id = Utils::filtreForte($id);\n\t\t\t\t\t$annee = Utils::filtreForte($annee);\n\t\t\t\t\t$annee = intval($annee);\n\t\t\t\t\t$titre = Utils::filtreForte($titre);\n\t\t\t\t\t$auteur = Utils::filtreForte($auteur);\n\t\t\t\t\t$resume = Utils::filtreForte($resume);\n\t\t\t\t\t\tif (strlen($annee) > 2 && strlen($titre) > 2 && strlen($resume) > 2) {\n\t\t\t\t\t\t\t$this->_ctrlLivre->modifieLivre($id, $annee, $titre, $auteur, $resume);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$_SESSION['error_livre_modifie'] = 'Minimum trois caractères !!!';\n\t\t\t\t\t\t\theader(\"Location: index.php?controler=mlivre&id=\".$id);\n\t\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Exception('Valeur introdui incorect !!!');\n\t\t\t\t}\n\t\t\t}\n\n\t\t// cree livre\n\t\tif(isset($_SESSION['error_livre_cree'])) unset($_SESSION['error_livre_cree']);\n\t\tif(isset($_POST['cree_livre'])){\n\t\t\t\t$titre = Utils::getPost('nom_livre');\n\t\t\t\t$annee = Utils::getPost('annee_livre');\n\t\t\t\t$auteur = Utils::getPost('auteur_livre');\n\t\t\t\t$resume = Utils::getPost('resume_livre');\n\t\t\t\tif ($titre && $annee && $auteur && $resume) {\n\t\t\t\t\t$annee = Utils::filtreForte($annee);\n\t\t\t\t\t$annee = intval($annee);\n\t\t\t\t\t$titre = Utils::filtreForte($titre);\n\t\t\t\t\t$auteur = Utils::filtreForte($auteur);\n\t\t\t\t\t$resume = Utils::filtreForte($resume);\n\t\t\t\t\t\tif (strlen($annee) > 2 && strlen($titre) > 2 && strlen($resume) > 2) {\n\t\t\t\t\t\t\t$this->_ctrlLivre->creeLivre($annee, $titre, $auteur, $resume);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$_SESSION['error_livre_cree'] = 'Minimum trois caractères !!!';\n\t\t\t\t\t\t\theader(\"Location: index.php?controler=ajoutuser\");\n\t\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Exception('Valeur introdui incorect !!!');\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t$filtreArray = ['titre', 'annee', 'nom_auteur'];\n\t\t$ordreArray = ['ASC', 'DESC'];\n\t\t\tif(Utils::getGet('filtre')&& Utils::getGet('ordre')) {\n\t\t\t\t\t\t\t$filtre = Utils::getGet('filtre');\n\t\t\t\t\t\t\t$ordre = Utils::getGet('ordre');\n\t\t\t\t\t\t\tif (!$filtre || !in_array($filtre, $filtreArray)) { \n\t\t\t\t\t\t\t\tthrow new Exception('Tri invalide !!!'); }\n\t\t\t\t\t\t\t\telseif (!$ordre || !in_array($ordre, $ordreArray)) { \n\t\t\t\t\t\t\t\t\tthrow new Exception('Ordre invalide !!!'); } \n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t$this->_ctrlLivre->livreListe($filtre,$ordre); \n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else { $this->_ctrlLivre->livreListe(); }\n\t}", "public function recuperar(): array {\r\n \r\n $autorDao = new AutorDao();\r\n \r\n $livros = [];\r\n $query = \"SELECT livro.*, editora.nome \"\r\n . \"FROM livro \"\r\n . \"INNER JOIN editora ON \"\r\n . \"editora.id = livro.editora_id\";\r\n \r\n $statement = $this->pdo->prepare($query);\r\n $statement->execute();\r\n while($registro = $statement->fetch(\\PDO::FETCH_LAZY)){\r\n $livro = $this->hydrate((array) $registro);\r\n $livro->autores = $autorDao->recuperarPorLivro($livro->id);\r\n $livros[] = $livro;\r\n }\r\n return $livros;\r\n }", "public function getAllVisiteurs(){\r\n\t\t$req =\"select * from visiteur where comptable=0\";\r\n\t\t\r\n\t\t$res = PdoGsb::$monPdo->query($req);\r\n\t\t$lesVisiteurs =array();\r\n\t\t$laLigne = $res->fetch();\r\n\t\twhile($laLigne != null)\t{\r\n\t\t\t$selection = $laLigne['id'];\r\n $nom=$laLigne['nom'];\r\n $prenom=$laLigne['prenom'];\r\n\t\t\t$lesVisiteurs[\"$selection\"]=array(\r\n \"id\"=>\"$selection\",\r\n \"nom\"=>\"$nom\",\r\n \"prenom\"=>\"$prenom\"\r\n );\r\n\t\t\t$laLigne = $res->fetch(); \t\t\r\n\t\t}\r\n\t\treturn $lesVisiteurs;\r\n\t}", "protected function getAll() {}", "public function all() {\n \n }", "private function cargarDatosValores(){\n\n\t\t$colaboradores = $this->user_model->getPagination(null);\n\n\t\tforeach ($colaboradores as $colaborador){\n\t\t\t\n\t\t\t$this->valores_model->create_actividades_mes($colaborador->id,1);\n\t\t\t\t$this->valores_model->create_actividades_mes($colaborador->id,2);\n\t\t\t\t\t$this->valores_model->create_actividades_mes($colaborador->id,3);\n\t\t\t\t\t\t$this->valores_model->create_actividades_mes($colaborador->id,4);\n\t\t\t\t\t\t\t$this->valores_model->create_actividades_mes($colaborador->id,5);\n\t\t\t\t\t\t\t\t$this->valores_model->create_actividades_mes($colaborador->id,6);\n\t\t}\n\t}", "function carrinho(){\n\t\t\t$this->items = array();\n\t\t}", "function cextras_objets_valides(){\r\n\t$objets = array();\r\n\tforeach (array('article','auteur','breve','groupes_mot','mot','rubrique','site') as $objet) {\r\n\t\t$objets[$objet] = array(\r\n\t\t\t'table' => table_objet_sql($objet), \r\n\t\t\t'nom' => _T('cextras:table_'.$objet),\r\n\t\t);\r\n\t}\r\n\treturn $objets;\r\n}", "function retourneListeAdministrateurs(){\n\tglobal $connexion; // on définie la variables globale de connection dans la fonction\n\t\n\t$utilisateurs = array();\n\t$requete = $connexion->query(\"SELECT * FROM utilisateur WHERE type='1' OR type='2'\");\n\t$requete->setFetchMode(PDO::FETCH_OBJ);\n\twhile($enregistrement = $requete->fetch()){\n\t\t$utilisateurs[] = $enregistrement; // on ajoute à $utilisateurs[n+1] un objet utilisateur\n\t}\n\treturn $utilisateurs;\n}", "public function values()\n {\n }", "protected function doDefaultGetValueList() {\n return false;\n }", "function recuperarGanadores(){\n\t\t$votopro = new VotaProfesional();\n\t\t$res = $votopro->recuperarGanadores();\n\t\treturn $res;\n\t}", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function all();", "public function listarParaUnir() {\n\t\t//de sesion, falta cambiar\n\t\t$_SESSION[\"nomCon\"] = $_GET[\"NombreCon\"];\n\t\t$juradoL = $this -> JuradoMapper -> findAllPro();\n\n\t\t$this -> view -> setVariable(\"jurado\", $juradoL);\n\t\t//falta agregar la vista, no se continuar\n\t\t$this -> view -> render(\"jurado\", \"listarUnir\");\n\t\t//falta cambiar\n\t}", "public function acessarRelatorios(){\n\n }", "function prepareData(){\n $this->ref = array();\n foreach($this->getIterator() as $junk=>$item){\n // current values\n $id = $item[$this->id_field];\n \n // save item\n $this->items[$id] = $item;\n \n // save relation\n if(isset($item[$this->parent_id_field])) {\n $this->ref[$item[$this->parent_id_field]][] = $id;\n } else {\n $this->ref[undefined][] = $id;\n }\n }\n }", "function recuperarFavoritos(){\n\t\t$codpincho = new CodigoPincho();\n\t\t$res = $codpincho->recuperarFavoritos();\n\t\treturn $res;\n\t}", "public function loadAllVilles()\n {\n /** vous pouvez écrire les requêtes pour les différents managers de DB, ou bien vous focaliser sur celui de votre choix */\n if (DB_MANAGER == PDO) // version PDO\n {\n $req = $this->getDatabase()->prepare(\"SELECT * FROM villes_france \");\n $req->execute();\n $villes = $req->fetchAll(PDO::FETCH_ASSOC);\n $req->closeCursor();\n } else if (DB_MANAGER == MEDOO) // version MEDOO\n {\n $villes = $this->getDatabase()->select(\"villes_france\", \"*\");\n }\n\n // on a récupéré tous les utilisateurs, on les ajoute au manager de villes\n foreach ($villes as $ville) {\n $new_ville = new Ville(\n $ville['id'],\n $ville['departement'],\n $ville['nom'],\n $ville['code_postal'],\n $ville['canton'],\n $ville['population'],\n $ville['densite'],\n $ville['surface']\n );\n $this->addVille($new_ville);\n }\n }", "public function getDataRecolectada()\r\n\t\t{\r\n\t\t\treturn $this->_data = self::findDetalleRecolectado();\r\n\t\t}", "public function tratarDados(){\r\n\t\r\n\t\r\n }", "abstract protected function getDefaultViewList();", "function cicleinscription_get_vacancies_remaning(){\n\t\n}", "function cl_far_listacontroladomed() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"far_listacontroladomed\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "static function getAllVoitures(){\r\n $req = Model1::$pdo->query('SELECT * From voiture');\r\n $req->setFetchMode(PDO::FETCH_CLASS,\"ModelVoiture\");\r\n $tab_voit=$req->fetchall();\r\n return $tab_voit;\r\n }", "protected static function getAll()\n {\n }", "public function allResults(){\n }", "abstract public function all();", "public function all(){\n\n $a= parent::bdd()->query(\"SELECT * FROM auteur\");\n $b= $a->fetchall(\\PDO::FETCH_OBJ);\n\n return $b;\n\n }", "public function all()\n {\n }", "public function all()\n {\n }", "public function all()\n {\n }", "public function all()\n {\n }", "public function liste(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n return $this->db->getRows(array(\"return_type\"=>\"many\"));\n\t\t\t\t\t }", "public function liste(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n return $this->db->getRows(array(\"return_type\"=>\"many\"));\n\t\t\t\t\t }", "public function liste(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n return $this->db->getRows(array(\"return_type\"=>\"many\"));\n\t\t\t\t\t }", "function expositor_list(){\n return expositor_novo();\n}", "public function get_all ();", "public function reset_tableaux() {\n\t\treturn $this->setArbreMoniteurs ( array () )\n\t\t\t->setArbreGroupes ( array () )\n\t\t\t->setArbreMachines ( array () )\n\t\t\t->setDependance ( array () )\n\t\t\t->setGroupeNumbers ( array () );\n\t}", "protected function fetchFlagsAllergen() {\n return null;\n }", "public function all()\n {\n\n }", "public function forgetAll()\n {\n $this->unsaved = true;\n $this->settings = [ ];\n }", "function restablecer()\n {\n $this->_datos = null;\n $this->_errores = array();\n }", "function formulaires_recommander_charger_dist(){\n\t$valeurs = array('destinataire'=>'','destinataires'=>'','texte'=>'');\n\n\treturn $valeurs;\n}", "public abstract function getAll();", "public function readAllVoto(){\n\n return self::read('voto','voto'); \n }", "abstract public function getAll();", "abstract public function getAll();", "abstract public function getAll();", "public function all(): array;", "public function all(): array;", "public function all(): array;", "public function all(): array;", "public function all(): array;", "public function all(): array;", "public function all(): array;", "public function all(): array;", "public function all(): array;", "public function all(): array;", "public function all(): array;", "public function all(): array;" ]
[ "0.6728149", "0.61015964", "0.6040656", "0.60336757", "0.57927907", "0.579263", "0.56755936", "0.5654425", "0.5652261", "0.5623319", "0.5597243", "0.55810696", "0.55805606", "0.5580212", "0.55239457", "0.55029213", "0.5500547", "0.5492025", "0.5479638", "0.5479535", "0.5453921", "0.54429686", "0.5439439", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.543465", "0.5434264", "0.54235196", "0.54155165", "0.53941435", "0.53931105", "0.5385559", "0.53851175", "0.53730494", "0.53726566", "0.5371862", "0.5365279", "0.5356399", "0.53558517", "0.5342046", "0.53303456", "0.53254586", "0.53254586", "0.53254586", "0.53254586", "0.5322369", "0.5322369", "0.5322369", "0.53135717", "0.5307719", "0.53063005", "0.5282839", "0.52778107", "0.5270123", "0.5269968", "0.5267813", "0.52628976", "0.5254826", "0.52527535", "0.52527535", "0.52527535", "0.52510554", "0.52510554", "0.52510554", "0.52510554", "0.52510554", "0.52510554", "0.52510554", "0.52510554", "0.52510554", "0.52510554", "0.52510554", "0.52510554" ]
0.0
-1
Fonction encodant toutes les quotes pour le tableau fourni en parametre Devrait etre appelee avant toute requete SQL
function encodeData($data) { if (is_array($data)) { /* * Traitement des tableaux */ foreach ($data as $key => $value) { $data[$key] = $this->encodeData($value); } } else { /* * Traitement des chaines individuelles */ if ($this->typeDatabase == 'pgsql') { if ($this->UTF8 && mb_detect_encoding($data) != "UTF-8") { $data = mb_convert_encoding($data, 'UTF-8'); } $data = pg_escape_string($data); } else { $data = addslashes($data); } } return $data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function filtrarSql($valor) {\n\n $valor = str_replace(\"'\", \"\\'\", $valor);\n $valor = str_replace('\"', '\\\"', $valor);\n return $valor;\n}", "private function quote( )\n {\n if ( @ count( $this->data_buffer ) == 0 )\n return;\n foreach ( $this->data_buffer as $key => $val )\n {\n if ( in_array( $key, $this->string_fields ))\n $this->data_buffer[$key] = @\"'\".mysql_real_escape_string($val,underQL::$db_handle).\"'\";\n else\n $this->data_buffer[$key] = $val;\n }\n }", "function esc_sql($data)\n {\n }", "private function setField()\n {\n $sql = '';\n $sql = rtrim($sql , ', ');\n\n foreach (array_keys($this->data) as $key){\n $sql .= '`' . $key . '` = ?, ';\n }\n\n $sql = rtrim($sql , ', ');\n return $sql;\n }", "function varSQL($cadena, $tipo=\"text\"){\n $cadena = (!get_magic_quotes_gpc()) ? addslashes($cadena) : $cadena;\n switch ($tipo) {\n case \"text\":\n $cadena = ($cadena != \"\") ? \"'\" . $cadena . \"'\" : \"NULL\";\n break;\n case \"int\":\n $cadena = ($cadena != \"\") ? intval($cadena) : \"NULL\";\n break;\n case \"double\":\n $cadena = ($cadena != \"\") ? \"'\" . doubleval($cadena) . \"'\" : \"NULL\";\n break;\n case \"date\":\n $cadena = ($cadena != \"\") ? \"'\" . $cadena . \"'\" : \"NULL\";\n break;\n }\n return $cadena;\n}", "public function fetchSqlString();", "function changesqlquote($str,$rep=\"'\")\r\n{\r\n\treturn str_replace(\"`\", $rep, $str);\r\n}", "function getSql($nomConsulta,$p1=\"<NULL>\", $p2=\"<NULL>\", $p3=\"<NULL>\", $p4=\"<NULL>\", $p5=\"<NULL>\", \n\t\t\t\t\t\t\t $p6=\"<NULL>\", $p7=\"<NULL>\", $p8=\"<NULL>\", $p9=\"<NULL>\", $p10=\"<NULL>\",\n\t\t\t\t\t\t\t $p11=\"<NULL>\", $p12=\"<NULL>\", $p13=\"<NULL>\", $p14=\"<NULL>\", $p15=\"<NULL>\",\n\t\t\t\t\t\t\t $p16=\"<NULL>\", $p17=\"<NULL>\", $p18=\"<NULL>\", $p19=\"<NULL>\", $p20=\"<NULL>\",\n $p21=\"<NULL>\", $p22=\"<NULL>\", $p23=\"<NULL>\", $p24=\"<NULL>\", $p25=\"<NULL>\")\n{\n\tglobal $query;\t\n\t$queryBase = \"\";\n\t$arr = array();\n\t/*$arr[1] = $p1;\t\t$arr[2] = $p2;\n\t$arr[3] = $p3;\t\t$arr[4] = $p4;\n\t$arr[5] = $p5;\t\t$arr[6] = $p6;\n\t$arr[7] = $p7;\t\t$arr[8] = $p8;\n\t$arr[9] = $p9;\t\t$arr[10] = $p10;\n\t$arr[11] = $p11;\t$arr[12] = $p12;\n\t$arr[13] = $p13;\t$arr[14] = $p14;\n\t$arr[15] = $p15;\t$arr[16] = $p16;\n\t$arr[17] = $p17;\t$arr[18] = $p18;\n\t$arr[19] = $p19;\t$arr[20] = $p20;*/\n\t\n\t$arr[1] = str_replace(chr(13), ' ', str_replace(chr(10), ' ',$p1));\n\t$arr[2] = str_replace(chr(13), ' ', str_replace(chr(10), ' ',$p2));\n\t$arr[3] = str_replace(chr(13), ' ', str_replace(chr(10), ' ',$p3));\n\t$arr[4] = str_replace(chr(13), ' ', str_replace(chr(10), ' ',$p4));\n\t$arr[5] = str_replace(chr(13), ' ', str_replace(chr(10), ' ',$p5));\n\t$arr[6] = str_replace(chr(13), ' ', str_replace(chr(10), ' ',$p6));\n\t$arr[7] = str_replace(chr(13), ' ', str_replace(chr(10), ' ',$p7));\n\t$arr[8] = str_replace(chr(13), ' ', str_replace(chr(10), ' ',$p8));\n\t$arr[9] = str_replace(chr(13), ' ', str_replace(chr(10), ' ',$p9));\n\t$arr[10] = str_replace(chr(13), ' ', str_replace(chr(10), ' ',$p10));\n\t$arr[11] = str_replace(chr(13), ' ', str_replace(chr(10), ' ',$p11));\n\t$arr[12] = str_replace(chr(13), ' ', str_replace(chr(10), ' ',$p12));\n\t$arr[13] = str_replace(chr(13), ' ', str_replace(chr(10), ' ',$p13));\n\t$arr[14] = str_replace(chr(13), ' ', str_replace(chr(10), ' ',$p14));\n\t$arr[15] = str_replace(chr(13), ' ', str_replace(chr(10), ' ',$p15));\n\t$arr[16] = str_replace(chr(13), ' ', str_replace(chr(10), ' ',$p16));\n\t$arr[17] = str_replace(chr(13), ' ', str_replace(chr(10), ' ',$p17));\n\t$arr[18] = str_replace(chr(13), ' ', str_replace(chr(10), ' ',$p18));\n\t$arr[19] = str_replace(chr(13), ' ', str_replace(chr(10), ' ',$p19));\n\t$arr[20] = str_replace(chr(13), ' ', str_replace(chr(10), ' ',$p20));\n\t$arr[21] = str_replace(chr(13), ' ', str_replace(chr(10), ' ',$p21));\n\t$arr[22] = str_replace(chr(13), ' ', str_replace(chr(10), ' ',$p22));\n\t$arr[23] = str_replace(chr(13), ' ', str_replace(chr(10), ' ',$p23));\n\t$arr[24] = str_replace(chr(13), ' ', str_replace(chr(10), ' ',$p24));\n\t$arr[25] = str_replace(chr(13), ' ', str_replace(chr(10), ' ',$p25));\n\t\n\t$queryBase = $query[$nomConsulta];\t\n\t\t\n\t$result = replaceParams($queryBase, $arr);\n\treturn $result;\n}", "public function sql(){\n $str = \"\";\n foreach($this->params as $key => $val){\n if($val != false){\n $str .= \"$key $val \";\n }\n }\n return $str;\n }", "abstract function getSQL();", "private function setFields()\n\t{\t\n\t\t$sql = '';\n\t\t\n\t\tforeach (array_keys($this->data) as $key)\n\t\t{\n\t\t\t$sql .= '`' . $key . '` = ? , ';\n\t\t}\n\t\t\n\t\t$sql = rtrim($sql, ', ');\n\t\t\n\t\treturn $sql;\n\t}", "private function setFields(): string\n {\n $sql = '';\n\n foreach (array_keys($this->data) as $key) {\n $sql .= '`' . $key . '` = ? , ';\n }\n return rtrim($sql, ', ');\n }", "abstract protected function buildSQL(): string;", "public function getSQL();", "function insertQuote(array $data){\n // On ajoute la nouvelle citation\n $pdo = getPDO();\n // La requête SQL\n $sql = \"INSERT INTO citations (texte, auteur) value (?,?)\";\n // Préparation de la requête\n $statement = $pdo->prepare($sql);\n // Paramètres\n $params = [$data[\"texte\"], $data[\"auteur\"]];\n // Exécution des paramètres\n $statement->execute($params);\n}", "function str_values(){\n //\n //map the std objects inthe array to return an array of strings of this \n //format INSERT INTO Customers (CustomerName, ContactName, Address, City, PostalCode, Country)\n //VALUES ('Cardinal', 'Tom B. Erichsen', 'Skagen 21', 'Stavanger', '4006', 'Norway');\n\n $col_str= array_map(function($obj){\n //\n //Return the full description of the columns\n return \"`$obj->name`\"; \n }, $this->values);\n //\n //\n $values_str= array_map(function($obj){\n //\n //Trim the spaces\n $tvalue = trim($obj->value);\n //\n //Replace '' with null\n $value = $tvalue=='' ? 'null': \"'$tvalue'\";\n //\n return $value;\n \n }, $this->values);\n //\n //retun the imploded version of the array with a , separator\n $values= implode(\",\",$values_str);\n $cols= implode(\",\",$col_str);\n return \"($cols) VALUES ($values)\";\n }", "private static function addQuotes($el) {\r\n if( is_array($el) ) {\r\n $el = array_map(array($this, __FUNCTION__), $el);\r\n }\r\n if( is_string($el) ) {\r\n $el = '\\'' . SQLite3::escapeString($el) . '\\'';\r\n }\r\n if( is_bool($el) ){\r\n $el = $el?'1':'0';\r\n }\r\n if( is_null($el) ){\r\n $el = 'NULL';\r\n }\r\n return $el;\r\n }", "public function sql(): string\n {\n $columnsNames = array();\n $columnsValues = array();\n\n foreach ($this->parameters as $key => $val) {\n $arg = $this->getArgName($key);\n $columnsNames[] = $this->escape($key); \n $columnsValues[] = ':' . $arg;\n } \n return trim(sprintf(\n 'INSERT INTO %s (%s) VALUES (%s)',\n $this->escape($this->tableName),\n implode(', ', $columnsNames),\n implode(', ', $columnsValues)\n ));\n }", "function tosql($value, $type)\n{\n if(!strlen($value))\n return \"NULL\";\n else\n if($type == \"Number\")\n return str_replace (\",\", \".\", doubleval($value));\n else\n {\n if(get_magic_quotes_gpc() == 0)\n {\n $value = str_replace(\"'\",\"''\",$value);\n $value = str_replace(\"\\\\\",\"\\\\\\\\\",$value);\n }\n else\n {\n $value = str_replace(\"\\\\'\",\"''\",$value);\n $value = str_replace(\"\\\\\\\"\",\"\\\"\",$value);\n }\n\n return \"'\" . $value . \"'\";\n }\n}", "function tosql($value, $type)\n{\n if(!strlen($value))\n return \"NULL\";\n else\n if($type == \"Number\")\n return str_replace (\",\", \".\", doubleval($value));\n else\n {\n if(get_magic_quotes_gpc() == 0)\n {\n $value = str_replace(\"'\",\"''\",$value);\n $value = str_replace(\"\\\\\",\"\\\\\\\\\",$value);\n }\n else\n {\n $value = str_replace(\"\\\\'\",\"''\",$value);\n $value = str_replace(\"\\\\\\\"\",\"\\\"\",$value);\n }\n\n return \"'\" . $value . \"'\";\n }\n}", "function prepareValue ($data)\n {\n return \"'\".pg_escape_string($data).\"'\";\n }", "private function create_insert_sql($param) {\n $ques = array();\n foreach ($param as $key => $value) {\n $ques[] = '?';\n }\n\n return implode(', ', $ques);\n }", "public function __toString() {\n return str_replace(array_keys($this->param), array_values($this->param), $this->sql);\n }", "function sqlingData(array $data)\n{\n\n $keys = \"(\" . implode(\",\", array_keys($data)) . \")\";\n $values = \"('\" . implode(\"','\", array_values($data)) . \"')\";\n\n return $keys . 'Values' . $values;\n}", "public function getSQL(){\n $sqlString = \"select \";\n $campos = $this->getCampos();\n //var_dump($campos);\n if (is_array($campos) && empty($campos)) {\n $sqlString .= \" * \";\n } else {\n $campos = \"\";\n foreach ($this->getCampos() as $key => $value) {\n if (!$campos == \"\") { \n $campos.=\" ,\"; \n };\n $campos.=\" \".$value.\" as \".$key.\" \";\n }\n $sqlString .= $campos;\n }\n $sqlString .= \" from \" . $this->getTabla();\n if ( $this->getSQLFilter() != \"\" ) {\n $sqlString .= \" where \" . $this->getSQLFilter();\n }\n \n $sqlString .= $this->getSQLGroupBy();\n $sqlString .= $this->getSQLOrderBy();\n //echo $sqlString.\"\\n\";\n return $sqlString; \n }", "private function getSyntaxe(){\n $Fields = implode(', ', array_keys($this->Dados));\n $Places = ':' . implode(', :', array_keys($this->Dados));\n\n $this->Create = \"INSERT INTO {$this->Tabela} ({$Fields}) VALUES ({$Places})\";\n }", "function trataApostrofeFromBD($str){\n\t\t$result_subst = str_replace(\"\\'\", \"'\", $str);\t\t\t\t\t\t\n\t\treturn $result_subst;\n\t}", "function sql_quote($text, $column_or_table = false){\n\t$sql = sql_connect();\n\tif( !$sql ){\n\t\treturn false;\n\t}\n\tif( is_null($text) ){\n\t\treturn 'NULL';\n\t}\n\tif( !is_string($text) && is_numeric($text) ){\n\t\treturn $text;\n\t}\n\tif( !$column_or_table ){\n\t\treturn $sql->quote($text);\n\t}\n\treturn '`' . str_replace('`', '``', $text) . '`';\n}", "function toSqlList($lista) {\n $sql = \"\";\n foreach( explode(\",\",$lista) as $opc) {\n $sql .= ($sql!=\"\" ? \",\" : \"\").\"'\".trim($opc).\"'\";\n }\n return $sql;\n }", "function envio_quote($conn, $conteudo, $legenda, $tabela) {\n\t\ttry {\n\t\t\t$query = $conn->prepare(\"INSERT INTO \" . $tabela . \"(conteudo,legenda) VALUES (:conteudo, :legenda);\");\n\t\t\t$query->bindParam('conteudo', $conteudo, PDO::PARAM_STR);\n\t\t\t$query->bindParam('legenda', $legenda, PDO::PARAM_STR);\n\t\t\t$query->execute();\n\t\t\treturn true;\t\n\t\t} catch (Exception $e) {\n\t\t\treturn false;\n\t\t}\n\t}", "function sqlStudentTajuk()\n\t{\n\t\t//echo '<hr>Nama class ini :' . __METHOD__ . '()<hr>';\n\t\t$sql0 = \"SELECT 'Bil',\n\t\t'Student Name',\n\t\t'Roll No.',\n\t\t'Date of Birth',\n\t\t'Location & Grade',\n\t\t'&nbsp;Edit',\n\t\t'&nbsp;Delete' \";\n\t\t$sql = \" SELECT \\\"\\\" as Bil,\"\n\t\t. \" student_name 'Student Name',\"\n\t\t. \" student_roll_number 'Roll No.',\"\n\t\t. \" student_dob 'Date of Birth',\"\n\t\t. \" student_grade_id 'Location & Grade',\"\n\t\t. \" student_id '&nbsp;Edit', student_id '&nbsp;Delete' \"\n\t\t. \" FROM tbl_student INNER JOIN tbl_grade \"\n\t\t. \" ON tbl_grade.grade_id = tbl_student.student_grade_id \"\n\t\t. \"\";\n\n\t\treturn $sql0;\n\t}", "function allinea_db(){\n\t\tif ($this->attributes['BYTB']!='' ) $this->fields_value_bytb($this->attributes['BYTB']);\n\t\tif ($this->attributes['TB']!='no'){\n\t\t\t$i=0;\n\t\t\tforeach ($this->values as $key => $val){\n\t\t\t\t$ret[$i]=\"{$key} NUMBER\";\n\t\t\t\t$i++;\n\t\t\t\t$ret[$i]=\"D_{$key} VARCHAR2(200 CHAR)\";\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\treturn $ret;\n\t\t}\n\t\telse return ;\n\t}", "public function s($input,$table = 'cheese'){\n return $GLOBALS['TYPO3_DB']->fullQuoteStr($input,$table);\n }", "public function toInterpolatedSql() {\n $query = $this->toSql();\n $params = $this->values;\n\n $keys = array();\n $values = $params;\n\n # build a regular expression for each parameter\n foreach ($params as $key => $value) {\n if (is_string($key)) {\n $keys[] = '/:'.$key.'/';\n } else {\n $keys[] = '/[?]/';\n }\n\n if (is_string($value))\n $values[$key] = \"'\" . self::quoteValue($value) . \"'\";\n\n if (is_array($value))\n $values[$key] = \"'\" . implode(\"','\", self::quoteValue($value)) . \"'\";\n\n if (is_null($value))\n $values[$key] = 'NULL';\n }\n\n $query = preg_replace($keys, $values, $query, 1, $count);\n\n return $query;\n }", "function trataApostrofeToBD($str){\n\t\t$result_subst = str_replace(\"\\'\", \"'\", $str);\t\t\t\t\t\t\n\t\t$result_subst = str_replace(\"'\", \"\\'\", $result_subst);\n\t\treturn $result_subst;\n\t}", "function getCamposToQuery($nombre_tabla, $key_value, $as_tabla=\"\"/*, ...*/){\r\n $cadena=\"\";\r\n global $$nombre_tabla;//si o si para que el array se pueda usar en esta funcion\r\n if($key_value=='key'){\r\n foreach ($$nombre_tabla as $key => $value) { $cadena.=$as_tabla.$key.\",\"; }\r\n }\r\n if($key_value=='value'){\r\n foreach ($$nombre_tabla as $key => $value) { $cadena.=$as_tabla.$value.\",\"; }\r\n }\r\n $cadena=trim($cadena,\",\");\r\n return $cadena;\r\n}", "function tosql_string($string,$addslashes = false,$quotes){\n\tif (empty($string) && (!isset($string) || $string!='0')){\n\t\t$string = \"NULL\";\n\t}else{\n\t\t$string = trim(addslashes($string));\n\t\tif ($quotes){\n\t\t\tif ($addslashes){\n\t\t\t\t$string = \"\\\\'\".$string.\"\\\\'\";\n\t\t\t}else{\n\t\t\t\t$string = \"'\".$string.\"'\";\n\t\t\t}\n\t\t}\n\t}\n\treturn $string;\n}", "public\n\tfunction limpiadorSql( $valor ) {\n\n\t\t$variable = mysqli_real_escape_string( $this->connection, $valor );\n\n\t\treturn $variable;\n\n\t}", "private function getInsertString($data, $table) {\n $attr = '';\n $values = '';\n\n foreach ($data as $key => $val) {\n if ($val instanceof \\DateTime) {\n $val = $val->format('Y-m-d H:i:s');\n }\n if ($attr == '' && $values == '') {\n $attr .= $key;\n $values .= \"'\" . trim(addslashes(htmlspecialchars($val))) . \"'\";\n } else {\n $attr .= \", \" . $key;\n $values .= \", '\" . trim(addslashes(htmlspecialchars($val))) . \"'\";\n }\n }\n return \"INSERT INTO \" . $table . \" (\" . $attr . \") VALUES (\" . $values . \");\";\n }", "function formatAndQuery() {\n\tglobal $DB;\n\t$args = func_get_args();\n\t$query = array_shift($args); #remove the first element of the array as its own variable\n\t$query = str_replace(\"%sv\",\"'%s'\",$query);\n\tforeach ($args as $key => $val)\n\t {\n\t $args[$key] = $DB->real_escape_string($val);\n\t\t\t$args[$key] = htmlspecialchars($val);\n\t }\n\t$query = vsprintf($query, $args);\n\t$result = $DB->query($query);\n\tif (!$result)\n\t{\n\tthrow new Exception($DB->error.\" [$query]\");\n\t}\n\treturn $result;\n}", "function sqlString( $string ) {\r\n\t\t\tif ( strtolower( $string ) == 'null' ) {\r\n\t\t\t\treturn 'null';\r\n\t\t\t}\r\n\t\t\tif ( strtolower( substr( $string, 0, 7 ) ) == 'to_date' ) {\r\n\t\t\t\treturn $string;\r\n\t\t\t}\r\n\t\t\treturn $this->_fmtQuote . $this->string( $string ) . $this->_fmtQuote;\r\n\t\t}", "public function sql(): string;", "public function toSql()\n {\n if ($this->isEmpty()) {\n return '';\n }\n\n $params = $this->getParams();\n\n $sql = array('SET');\n $set = array();\n\n foreach ($params as $column => $value) {\n $set[] = implode(' = ', array(\n $column, $this->getBuilder()->getHelper()->toDbValue($value)\n ));\n }\n\n $sql[] = implode(', ', $set);\n\n return implode(' ', $sql);\n }", "abstract protected function _getSQL(): String;", "public function getSql()\n {\n $operators['='] = '=';\n $operators['like'] = 'like';\n $operators['>='] = '>=';\n $operators['<='] = '<=';\n\n $select = 'SELECT ';\n foreach ($this->columns as $key => $value)\n {\n $alias = '';\n //bairros::nome|bairro\n if(preg_match('/\\|/',$key) && !preg_match('/like/',$key)) \n {\n $explode_values = explode('|',$key);\n $table_field = str_replace('::', '.', $explode_values[0]);\n $alias = $explode_values[1]; \n $alias = \" as {$alias}\"; \n }\n // elseif(preg_match('/like/',$key))\n // {\n \n // $explode_values = explode('|',$key);\n // $exKey = explode('::',$explode_values[0]);\n // $alias = $explode_values[1]; \n // $alias = \" as {$alias}\";\n \n // $table_field = \"{$exKey[0]}.{$exKey[1]}\"; \n // }\n else\n {\n\n $table_field = str_replace('::', '.', $key); \n }\n \n $select.= \" {$table_field}{$alias},\";\n $table = explode('.', $table_field);\n $from[$table[0]] = $table[0];\n\n if ($value->relation)\n {\n $where.= ' ' . $value->relation . ' AND';\n }\n }\n\n if ($this->filter)\n {\n foreach ($this->filter as $key_filter => $filter)\n {\n if ($filter)\n {\n \n\n if(preg_match('/\\|/',$key_filter))\n {\n $key_filter = explode('::', $key_filter);\n $operator = $key_filter[2];\n $explode_values = explode('|',$key_filter[1]);\n $key_filter = $this->model->getTable() . '.' . $explode_values[0]; \n\n }\n else\n {\n $key_filter = explode('::', $key_filter);\n $operator = $key_filter[2];\n $key_filter = $this->model->getTable() . '.' . $key_filter[1]; \n }\n\n if ($operator)\n {\n if ($operator == 'like')\n {\n $where.= \" {$key_filter} like '%{$filter}%' AND\";\n }\n elseif ($operators[$operator])\n {\n $where.= \" {$key_filter} {$operators[$operator]} '{$filter}' AND\";\n }\n }\n else\n {\n $where.= \" {$key_filter} like '%{$filter}%' AND\";\n }\n }\n }\n }\n if ($where)\n {\n $where = ' WHERE ' . $where;\n }\n $where = substr($where, 0, -3);\n $select = substr($select, 0, -1);\n $from = implode(',', $from);\n \n return $select . ' from ' . $from . $where . ' limit 20';\n }", "protected function quote_escaped()\n {\n }", "function escape_sq($str)\n{\n $esc_str = str_replace(\"'\", \"''\", $str);\n return $esc_str;\n}", "function cadena_sql($tipo,$variable=\"\") {\n\n\t\t$prefijo=$this->miConfigurador->getVariableConfiguracion(\"prefijo\");\n\t\t$idSesion=$this->miConfigurador->getVariableConfiguracion(\"id_sesion\");\n\n\t\tswitch($tipo) {\n\n\t\t\t/**\n\t\t\t * Clausulas específicas\n\t\t\t */\n\n\t\t\tcase \"api_key\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"dbms DBMS, \";\n\t\t\t\t$cadena_sql.=\"id_tipoReserva IDCOMMERCE, \";\n\t\t\t\t$cadena_sql.=\"files_folder FOLDER \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce \";\n\t\t\t\t$cadena_sql.=\"WHERE estado=1 \";\n\t\t\t\t$cadena_sql.=\"AND api_key='\".$variable.\"'\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"buscarReservablesOcupados\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"'S' \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation \";\n\t\t\t\t$cadena_sql.=\"INNER JOIN \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation_reservable \";\n\t\t\t\t$cadena_sql.=\"ON (\".$prefijo.\"reservation_reservable.id_reserva = \".$prefijo.\"reservation.id_reserva) \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"( \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation.fecha_inicio BETWEEN '\".$variable[\"timeStampStart\"].\"' AND '\".$variable[\"timeStampEnd\"].\"' \";\n\t\t\t\t$cadena_sql.=\" OR \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation.fecha_fin BETWEEN '\".$variable[\"timeStampStart\"].\"' AND '\".$variable[\"timeStampEnd\"].\"' \";\n\t\t\t\t$cadena_sql.=\" OR \";\n\t\t\t\t$cadena_sql.=\"\t( \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation.fecha_inicio < '\".$variable[\"timeStampStart\"].\"' \";\n\t\t\t\t$cadena_sql.=\"\tAND \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation.fecha_fin > '\".$variable[\"timeStampEnd\"].\"' \";\n\t\t\t\t$cadena_sql.=\"\t) \";\n\t\t\t\t$cadena_sql.=\") \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation.estado_reserva NOT IN (3,4) \"; //la reservation no contenga los estados FINALIZADO Y CANCELADO\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation.tipo_reserva='\".$variable[\"commerce\"].\"' \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation_reservable.id_reservable_type='\".$variable[\"groupRoom\"].\"' \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation.estado='1' \";\n\t\t\t\t$cadena_sql.=\"GROUP BY id_reservable \";\n\t\t\t\tbreak;\n\n\t\t\tcase \"getFieldsAdditional\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"id_field IDFIELD, \";\n\t\t\t\t$cadena_sql.=\"name NAMEFIELD \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reserva_fields \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\" id_commerce='\".$variable[\"commerce\"].\"' \";\n\n\t\t\t\tbreak;\n\n\t\t\tcase \"buscarReservable\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable.id_reservable ID_RESERVABLE, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable.nombre NOMBRE_RESERVABLE, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable.descripcion DESCRIPCION_RESERVABLE, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable.grupo GRUPO_RESERVABLE \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable.id_reservable = '\".$variable.\"' \";\n\n\t\t\t\tbreak;\n\t\t\tcase \"buscarServiciosAdicionales\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=$prefijo.\"adicional.id_adicional ID_ADICIONAL, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"adicional.nombre NOMBRE_ADICIONAL, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"adicional.descripcion DESCRIPCION_ADICIONAL, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"adicional.valor_cargo VALOR_CARGO, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"adicional.moneda_cargo MONEDA_CARGO \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"adicional \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=$prefijo.\"adicional.tipo_reserva = '\".$variable[\"tipo_reserva\"].\"' \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=$prefijo.\"adicional.establecimiento >= '\".$variable[\"establecimiento\"].\"' \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=$prefijo.\"adicional.estado<>0 \";\n\t\t\t\tbreak;\n\n\t\t\tcase \"buscarInformacionReservables\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable.id_reservable ID_RESERVABLE, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable.nombre NOMBRE_RESERVABLE, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable.descripcion DESCRIPCION_RESERVABLE, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable.grupo GRUPO_RESERVABLE, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable.capacidad CAPACIDAD, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable.valor VALOR, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable.moneda MONEDA, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable.imagen IMAGEN \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable.tipo_reserva = '\".$variable[\"tipo_reserva\"].\"' \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable.id_reservable IN ( \".$variable[\"cadena_reservables\"].\" ) \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable.establecimiento >= '\".$variable[\"establecimiento\"].\"' \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable.estado<>0 \";\n\t\t\t\tbreak;\n\n\t\t\tcase \"insertBooking\":\n\t\t\t\t$cadena_sql=\"INSERT INTO \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation \";\n\t\t\t\t$cadena_sql.=\"( \";\n\t\t\t\t$cadena_sql.=\"`fecha_inicio`, \";\n\t\t\t\t$cadena_sql.=\"`fecha_fin`, \";\n\t\t\t\t$cadena_sql.=\"`tipo_reserva`, \";\n\t\t\t\t$cadena_sql.=\"`establecimiento`, \";\n\t\t\t\t$cadena_sql.=\"`cliente`, \";\n\t\t\t\t$cadena_sql.=\"`valor_total`, \";\n\t\t\t\t$cadena_sql.=\"`fecha_registro`, \";\n\t\t\t\t$cadena_sql.=\"`usuario_registro`, \";\n\t\t\t\t$cadena_sql.=\"`sesion_temp`, \";\n\t\t\t\t$cadena_sql.=\"`plugin`, \";\n\t\t\t\t$cadena_sql.=\"`tiempo_expira_temp`, \";\n\t\t\t\t$cadena_sql.=\"`estado_reserva`, \";\n\t\t\t\t$cadena_sql.=\"`estado_pago` \";\n\t\t\t\t$cadena_sql.=\") \";\n\t\t\t\t$cadena_sql.=\"VALUES \";\n\t\t\t\t$cadena_sql.=\"( \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['timeStampStart'].\"', \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['timeStampEnd'].\"', \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['commerce'].\"', \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['company'].\"', \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['user'].\"', \";\n\t\t\t\t$cadena_sql.=\"'0', \";\n\t\t\t\t$cadena_sql.=\"'\".time().\"', \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['user'].\"', \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['session'].\"', \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['plugin'].\"', \";\n\t\t\t\t$cadena_sql.=\"'\".((time())+1800).\"', \"; //POR DEFECTO CADA RESERVA SE GUARDARA 30 MINUTOS SI NO SE FINALIZA CORRECTAMENTE\n\t\t\t\t$cadena_sql.=\"'1', \";\n\t\t\t\t$cadena_sql.=\"'0' \";\n\t\t\t\t$cadena_sql.=\")\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"insertBookingItems\":\n\t\t\t\t$cadena_sql=\"INSERT INTO \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation_reservable \";\n\t\t\t\t$cadena_sql.=\"( \";\n\t\t\t\t$cadena_sql.=\"`id_reserva`, \";\n\t\t\t\t$cadena_sql.=\"`id_reservable_type` \";\n\t\t\t\t$cadena_sql.=\") \";\n\t\t\t\t$cadena_sql.=\"VALUES \";\n\t\t\t\t$cadena_sql.=\"( \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['id_reserva'].\"', \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['groupRoom'].\"' \";\n\t\t\t\t$cadena_sql.=\")\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"insertReservables\":\n\t\t\t\t$cadena_sql=\"INSERT INTO \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation_reservable \";\n\t\t\t\t$cadena_sql.=\"( \";\n\t\t\t\t$cadena_sql.=\"`id_reserva`, \";\n\t\t\t\t$cadena_sql.=\"`adults`, \";\n\t\t\t\t$cadena_sql.=\"`children`, \";\n\t\t\t\t$cadena_sql.=\"`infants`, \";\n\t\t\t\t$cadena_sql.=\"`id_reservable_type`, \";\n\t\t\t\t$cadena_sql.=\"`id_reservable` \";\n\t\t\t\t$cadena_sql.=\") \";\n\t\t\t\t$cadena_sql.=\"VALUES \";\n\t\t\t\t$cadena_sql.=\"( \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['id_reserva'].\"', \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['adults'].\"', \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['children'].\"', \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['infants'].\"', \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['groupRoom'].\"', \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['idRoom'].\"' \";\n\t\t\t\t$cadena_sql.=\")\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"insertServices\":\n\t\t\t\t$cadena_sql=\"INSERT INTO \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reserva_servicio \";\n\t\t\t\t$cadena_sql.=\"( \";\n\t\t\t\t$cadena_sql.=\"`id_reserva`, \";\n\t\t\t\t$cadena_sql.=\"`id_servicio`, \";\n\t\t\t\t$cadena_sql.=\"`cantidad` \";\n\t\t\t\t$cadena_sql.=\") \";\n\t\t\t\t$cadena_sql.=\"VALUES \";\n\t\t\t\t$cadena_sql.=\"( \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['id_reserva'].\"', \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['id_servicio'].\"', \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['cantidad'].\"' \";\n\t\t\t\t$cadena_sql.=\")\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"dataBookingItems\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"id_reservable_type IDGROUP, \";\n\t\t\t\t$cadena_sql.=\"adults ADULTS, \";\n\t\t\t\t$cadena_sql.=\"children CHILDREN, \";\n\t\t\t\t$cadena_sql.=\"infants INFANTS \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation_reservable \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"id_reserva ='\".$variable.\"' \";\n\t\t\t\tbreak;\n\n\t\t\tcase \"insertFriend\":\n\t\t\t\t$cadena_sql=\"INSERT INTO \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reserva_guest \";\n\t\t\t\t$cadena_sql.=\"( \";\n\t\t\t\t$cadena_sql.=\"`id_reserva`, \";\n\t\t\t\t$cadena_sql.=\"`id_usuario` \";\n\t\t\t\t$cadena_sql.=\") \";\n\t\t\t\t$cadena_sql.=\"VALUES \";\n\t\t\t\t$cadena_sql.=\"( \";\n\t\t\t\t$cadena_sql.=\"'\".$variable[0].\"', \";\n\t\t\t\t$cadena_sql.=\"'\".$variable[1].\"' \";\n\t\t\t\t$cadena_sql.=\")\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"dataOtherFields\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"id_field IDFIELD, \";\n\t\t\t\t$cadena_sql.=\"value VALUE \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reserva_values \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"id_reserva ='\".$variable.\"' \";\n\n\t\t\t\tbreak;\n\n\t\t\tcase \"insertOtherFields\":\n\t\t\t\t$cadena_sql=\"INSERT INTO \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reserva_values \";\n\t\t\t\t$cadena_sql.=\"( \";\n\t\t\t\t$cadena_sql.=\"`id_field`, \";\n\t\t\t\t$cadena_sql.=\"`id_reserva`, \";\n\t\t\t\t$cadena_sql.=\"`value` \";\n\t\t\t\t$cadena_sql.=\") \";\n\t\t\t\t$cadena_sql.=\"VALUES \";\n\t\t\t\t$cadena_sql.=\"( \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['idfield'].\"', \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['idbooking'].\"', \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['value'].\"' \";\n\t\t\t\t$cadena_sql.=\")\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"createFriend\":\n\t\t\t\t$cadena_sql=\"INSERT INTO \";\n\t\t\t\t$cadena_sql.=$prefijo.\"guest \";\n\t\t\t\t$cadena_sql.=\"( \";\n\t\t\t\t$cadena_sql.=\"`identificacion`, \";\n\t\t\t\t$cadena_sql.=\"`nombre`, \";\n\t\t\t\t$cadena_sql.=\"`pais_origen`, \";\n\t\t\t\t$cadena_sql.=\"`estado` \";\n\t\t\t\t$cadena_sql.=\") \";\n\t\t\t\t$cadena_sql.=\"VALUES \";\n\t\t\t\t$cadena_sql.=\"( \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['Id'].\"', \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['name'].\"', \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['country'].\"', \";\n\t\t\t\t$cadena_sql.=\"'1' \";\n\t\t\t\t$cadena_sql.=\")\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"buscarTipoReserva\":\n\t\t\t\t$cadena_sql=\"SELECT DISTINCT \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.id_tipoReserva ID_TIPORESERVA \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce \";\n\t\t\t\t$cadena_sql.=\"INNER JOIN \";\n\t\t\t\t$cadena_sql.=$prefijo.\"tipo_reserva_filtrador \";\n\t\t\t\t$cadena_sql.=\"ON (\".$prefijo.\"commerce.id_tipoReserva = \".$prefijo.\"commerce_filtrador.id_tipoReserva) \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.estado=1 \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=$prefijo.\"tipo_reserva_filtrador.estado=1 \";\n\t\t\t\tif($variable['filtros']<>\"\"){\n\t\t\t\t $cadena_sql.=\"AND \";\n\t\t\t\t $cadena_sql.=$prefijo.\"tipo_reserva_filtrador.id_filtroOpcion IN ({$variable['filtros']}) \";\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\n\n\t\t\tcase \"dataGroupReservable\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"id_reservable_type IDGROUP, \";\n\t\t\t\t$cadena_sql.=\"nombre NAME, \";\n\t\t\t\t$cadena_sql.=\"nombre_maquina MACHINE_NAME, \";\n\t\t\t\t$cadena_sql.=\"capacidad CAPACITY, \";\n\t\t\t\t$cadena_sql.=\"tipo_capacidad CAPACITYTYPE, \";\n\t\t\t\t$cadena_sql.=\"descripcion DESCRIPTION \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable_type \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"id_tipoReserva ='\".$variable[\"commerce\"].\"' \";\n\t\t\t\tif($variable[\"group\"]<>\"\"){\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=\"id_reservable_type ='\".$variable[\"group\"].\"' \";\n\t\t\t\t}\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=\"estado = 1 \";\n\n\t\t\tbreak;\n\n\t\t\tcase \"dataRoomAvailability\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"id_reservable_type IDGROUP, \";\n\t\t\t\t$cadena_sql.=\"nombre NAME, \";\n\t\t\t\t$cadena_sql.=\"nombre_maquina MACHINE_NAME, \";\n\t\t\t\t$cadena_sql.=\"capacidad CAPACITY, \";\n\t\t\t\t$cadena_sql.=\"descripcion DESCRIPTION \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable_type \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"id_tipoReserva ='\".$variable[\"commerce\"].\"' \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=\"capacidad >= '\".$variable[\"guest\"].\"' \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=\"estado = 1 \";\n\t\t\t\t$cadena_sql.=\"ORDER BY \";\n\t\t\t\t$cadena_sql.=\"capacidad ASC \";\n\n\t\t\tbreak;\n\n\t\t\tcase \"dataUserByID\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"id_usuario USUARIOID, \";\n\t\t\t\t$cadena_sql.=\"nombre NOMBRE, \";\n\t\t\t\t$cadena_sql.=\"apellido APELLIDO, \";\n\t\t\t\t$cadena_sql.=\"telefono TELEFONO, \";\n\t\t\t\t$cadena_sql.=\"correo EMAIL, \";\n\t\t\t\t$cadena_sql.=\"fecha_nacimiento BIRTHDAY \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"`id_usuario` ='\".$variable.\"' \";\n\t\t\tbreak;\n\n\t\t\tcase \"dataUserByEmail\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"id_usuario USERID, \";\n\t\t\t\t$cadena_sql.=\"nombre NAME, \";\n\t\t\t\t$cadena_sql.=\"apellido LASTNAME, \";\n\t\t\t\t$cadena_sql.=\"telefono PHONE, \";\n\t\t\t\t$cadena_sql.=\"correo EMAIL, \";\n\t\t\t\t$cadena_sql.=\"fecha_nacimiento BIRTHDAY \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"`correo` ='\".$variable.\"' \";\n\t\t\tbreak;\n\n\t\t\tcase \"dataUserById\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"id_usuario USERID, \";\n\t\t\t\t$cadena_sql.=\"nombre NAME, \";\n\t\t\t\t$cadena_sql.=\"apellido LASTNAME, \";\n\t\t\t\t$cadena_sql.=\"telefono PHONE, \";\n\t\t\t\t$cadena_sql.=\"correo EMAIL, \";\n\t\t\t\t$cadena_sql.=\"fecha_nacimiento BIRTHDAY \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"`id_usuario` ='\".$variable.\"' \";\n\t\t\tbreak;\n\n\t\t\tcase \"dataUserByIden\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"id_usuario USUARIOID, \";\n\t\t\t\t$cadena_sql.=\"nombre NOMBRE, \";\n\t\t\t\t$cadena_sql.=\"apellido APELLIDO, \";\n\t\t\t\t$cadena_sql.=\"telefono TELEFONO, \";\n\t\t\t\t$cadena_sql.=\"correo EMAIL, \";\n\t\t\t\t$cadena_sql.=\"fecha_nacimiento BIRTHDAY \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"`identificacion` ='\".$variable.\"' \";\n\t\t\tbreak;\n\n\t\t\tcase \"dataGuestByIden\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"id_guest USUARIOID, \";\n\t\t\t\t$cadena_sql.=\"nombre NOMBRE, \";\n\t\t\t\t$cadena_sql.=\"apellido APELLIDO, \";\n\t\t\t\t$cadena_sql.=\"telefono TELEFONO, \";\n\t\t\t\t$cadena_sql.=\"correo EMAIL, \";\n\t\t\t\t$cadena_sql.=\"fecha_nacimiento BIRTHDAY \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"guest \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"`identificacion` ='\".$variable.\"' \";\n\t\t\tbreak;\n\n\t\t\tcase \"priceList\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"id_reservable_type IDTYPEROOM, \";\n\t\t\t\t$cadena_sql.=\"id_temporada SEASON, \";\n\t\t\t\t$cadena_sql.=\"guest GUEST, \";\n\t\t\t\t$cadena_sql.=\"COP COP, \";\n\t\t\t\t$cadena_sql.=\"USD USD \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable_valor \";\n\t\t\t\t$cadena_sql.=\"WHERE estado='1' \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=\"`id_reservable_type` ='\".$variable['idgroup'].\"' \";\n\t\t\t\t$cadena_sql.=\"AND( \";\n\t\t\t\t$cadena_sql.=\"`guest` ='\".$variable['guest'].\"' \";\n\t\t\t\t$cadena_sql.=\"OR \";\n\t\t\t\t$cadena_sql.=\"`guest` = '0' \"; //para incluir niños\n\t\t\t\t$cadena_sql.=\") \";\n\n\t\t\t\tbreak;\n\n\t\t\tcase \"activeBooking\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"r.id_reserva IDBOOKING, \";\n\t\t\t\t$cadena_sql.=\"r.tipo_reserva IDCOMMERCE, \";\n\t\t\t\t$cadena_sql.=\"r.fecha_inicio STARTBOOKING, \";\n\t\t\t\t$cadena_sql.=\"r.fecha_fin ENDBOOKING, \";\n\t\t\t\t$cadena_sql.=\"DATEDIFF(FROM_UNIXTIME( `fecha_fin` ),FROM_UNIXTIME( `fecha_inicio` )) NUMDAYS \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation r \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"r.sesion_temp ='\".$variable['session'].\"' \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=\"r.estado_reserva ='1' \";\n\t\t\tbreak;\n\n\t\t\tcase \"bookingByID\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"r.id_reserva IDBOOKING, \";\n\t\t\t\t$cadena_sql.=\"r.tipo_reserva IDCOMMERCE, \";\n\t\t\t\t$cadena_sql.=\"FROM_UNIXTIME(r.fecha_inicio) CHECKIN, \";\n\t\t\t\t$cadena_sql.=\"r.fecha_inicio STARTBOOKING, \";\n\t\t\t\t$cadena_sql.=\"r.fecha_fin ENDBOOKING, \";\n\t\t\t\t$cadena_sql.=\"FROM_UNIXTIME(r.fecha_fin) CHECKOUT, \";\n\t\t\t\t$cadena_sql.=\"DATEDIFF(FROM_UNIXTIME( `fecha_fin` ),FROM_UNIXTIME( `fecha_inicio` )) NUMDAYS \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation r \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"r.id_reserva ='\".$variable.\"' \";\n\n\n\t\t\tbreak;\n\n\t\t\tcase \"lockedBooking\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"date \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reserva_locked \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\" date ='\".$variable['date'].\"' \";\n\t\t\t\t$cadena_sql.=\" AND \";\n\t\t\t\t$cadena_sql.=\" id_commerce ='\".$variable['commerce'].\"' \";\n\n\t\t\tbreak;\n\n\t\t\tcase \"searchDay\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"id_season IDSEASON \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"season_calendar \";\n\t\t\t\t$cadena_sql.=\"WHERE estado='1' \";\n\t\t\t\t$cadena_sql.=\" AND id_commerce = \".$variable['commerce'];\n\t\t\t\t$cadena_sql.=\" AND time = '\".$variable['day'].\"'\";\n\t\t\t\t//$cadena_sql.=\" AND DATE_FORMAT(FROM_UNIXTIME(time),'%m%d') = DATE_FORMAT(FROM_UNIXTIME('\".$variable['day'].\"'),'%m%d')\";\n\t\t\tbreak;\n\n case \"getTypeRoomSeason\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"min_days MINIMUN, \";\n\t\t\t\t$cadena_sql.=\"id_reservable_type IDTYPEROOM, \";\n $cadena_sql.=\"DATEDIFF(FROM_UNIXTIME(\".$variable['timeStampEnd'].\"),FROM_UNIXTIME(\".$variable['timeStampStart'].\")) NUMDAYS, \";\n\t\t\t\t$cadena_sql.=\"id_season SEASON \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable_type_season \";\n $cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"`id_reservable_type` ='\".$variable['groupRoom'].\"' \";\n\t\t\t\tbreak;\n\n\n\t\t\tcase \"dataBookingByID\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"r.id_reserva IDBOOKING, \";\n\t\t\t\t$cadena_sql.=\"DATE_FORMAT(FROM_UNIXTIME(r.fecha_inicio),'%d %b %Y') CHECKIN, \";\n\t\t\t\t$cadena_sql.=\"DATE_FORMAT(FROM_UNIXTIME((r.fecha_fin)+2),'%d %b %Y') CHECKOUT, \";\n\t\t\t\t$cadena_sql.=\"r.fecha_inicio CHECKIN_UNIXTIME, \";\n\t\t\t\t$cadena_sql.=\"r.fecha_fin CHECKOUT_UNIXTIME, \";\n\t\t\t\t$cadena_sql.=\"r.observacion_cliente OBSERVATION_CLIENT, \";\n\t\t\t\t$cadena_sql.=\"rr.adults ADULTS, \";\n\t\t\t\t$cadena_sql.=\"rr.children CHILDREN, \";\n\t\t\t\t$cadena_sql.=\"rr.infants INFANTS, \";\n\t\t\t\t$cadena_sql.=\"r.cliente CLIENT, \";\n\t\t\t\t$cadena_sql.=\"r.tipo_reserva COMMERCE, \";\n\t\t\t\t$cadena_sql.=\"r.valor_total VALUE \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation r \";\n\t\t\t\t$cadena_sql.=\"INNER JOIN \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation_reservable rr \";\n\t\t\t\t$cadena_sql.=\"ON r.id_reserva = rr.id_reserva \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"r.id_reserva ='\".$variable.\"' \";\n\t\t\tbreak;\n\n\t\t\tcase \"dataBookingBySession\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"r.id_reserva IDBOOKING, \";\n\t\t\t\t$cadena_sql.=\"DATE_FORMAT(FROM_UNIXTIME(r.fecha_inicio),'%m/%d/%Y') CHECKIN, \";\n\t\t\t\t$cadena_sql.=\"DATE_FORMAT(FROM_UNIXTIME((r.fecha_fin)+2),'%m/%d/%Y') CHECKOUT, \";\n\t\t\t\t$cadena_sql.=\"r.fecha_inicio CHECKIN_UNIXTIME, \";\n\t\t\t\t$cadena_sql.=\"r.fecha_fin CHECKOUT_UNIXTIME, \";\n\t\t\t\t$cadena_sql.=\"'0' INFANTS, \";\n\t\t\t\t$cadena_sql.=\"r.cliente CLIENT, \";\n\t\t\t\t$cadena_sql.=\"r.tipo_reserva COMMERCE, \";\n\t\t\t\t$cadena_sql.=\"r.observacion_cliente OBSERVATION_CLIENT, \";\n\t\t\t\t$cadena_sql.=\"r.valor_total VALUE \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation r \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"r.sesion_temp ='\".$variable.\"' \";\n\t\t\tbreak;\n\n\t\t\tcase \"dataBasicBooking\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"r.id_reserva IDBOOKING, \";\n\t\t\t\t$cadena_sql.=\"DATE_FORMAT(FROM_UNIXTIME(r.fecha_inicio),'%d/%m/%Y') CHECKIN, \";\n\t\t\t\t$cadena_sql.=\"DATE_FORMAT(FROM_UNIXTIME((r.fecha_fin)+2),'%d/%m/%Y') CHECKOUT, \";\n\t\t\t\t$cadena_sql.=\"r.fecha_inicio CHECKIN_UNIXTIME, \";\n\t\t\t\t$cadena_sql.=\"r.fecha_fin CHECKOUT_UNIXTIME, \";\n\t\t\t\t$cadena_sql.=\"'0' INFANTS, \";\n\t\t\t\t$cadena_sql.=\"r.cliente CLIENT, \";\n\t\t\t\t$cadena_sql.=\"r.tipo_reserva COMMERCE, \";\n\t\t\t\t$cadena_sql.=\"r.observacion_cliente OBSERVATION_CLIENT, \";\n\t\t\t\t$cadena_sql.=\"r.observacion OBSERVATION_HOTEL, \";\n\t\t\t\t$cadena_sql.=\"r.estado_reserva STATUS_CODE, \";\n\t\t\t\t$cadena_sql.=\"r.estado_pago STATUS_PÄYMENT_CODE, \";\n\t\t\t\t$cadena_sql.=\"r.medio ORIGIN, \";\n\t\t\t\t$cadena_sql.=\"r.valor_pagado HOTEL_PAYMENT, \";\n\t\t\t\t$cadena_sql.=\"r.valor_total VALUE \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation r \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"r.id_reserva ='\".$variable.\"' \";\n\t\t\tbreak;\n\n\t\t\tcase \"dataRoomTypeBookingbyID\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"rg.nombre NAME, \";\n\t\t\t\t$cadena_sql.=\"rg.id_reservable_type IDTYPEROOM \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation r \";\n\t\t\t\t$cadena_sql.=\"INNER JOIN \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation_reservable rr \";\n\t\t\t\t$cadena_sql.=\"ON \";\n\t\t\t\t$cadena_sql.=\"rr.id_reserva = r.id_reserva \";\n\t\t\t\t$cadena_sql.=\"INNER JOIN \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable_type rg \";\n\t\t\t\t$cadena_sql.=\"ON \";\n\t\t\t\t$cadena_sql.=\"rr.id_reservable_type = rg.id_reservable_type \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"r.id_reserva ='\".$variable.\"' \";\n\t\t\tbreak;\n\n\t\t\tcase \"dataRoomBookingbyID\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"rs.nombre NAME, \";\n\t\t\t\t$cadena_sql.=\"rs.id_reservable IDROOM \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation r \";\n\t\t\t\t$cadena_sql.=\"INNER JOIN \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation_reservable rr \";\n\t\t\t\t$cadena_sql.=\"ON \";\n\t\t\t\t$cadena_sql.=\"rr.id_reserva = r.id_reserva \";\n\t\t\t\t$cadena_sql.=\"INNER JOIN \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable rs \";\n\t\t\t\t$cadena_sql.=\"ON \";\n\t\t\t\t$cadena_sql.=\"rs.id_reservable = rr.id_reservable \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"r.id_reserva ='\".$variable.\"' \";\n\t\t\tbreak;\n\n\n\t\t\tcase \"deleteUnconfirmedBookingUser\":\n\t\t\t\t$cadena_sql=\"DELETE \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"`cliente` ='\".$variable.\"' \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=\"sesion_temp<>'' \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=\"estado_reserva=1 \";\n\t\t\tbreak;\n\n\t\t\tcase \"deleteUnconfirmedSession\":\n\t\t\t\t$cadena_sql=\"DELETE \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"`sesion_temp` ='\".$variable.\"' \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=\"`estado_reserva` ='1' \";\n\t\t\tbreak;\n\n\t\t\tcase \"deleteUnconfirmedBookingAll\":\n\t\t\t\t$cadena_sql=\"DELETE \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"sesion_temp<>'' \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=\"`tiempo_expira_temp` < \".time().\" \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=\"`estado_reserva` ='1' \";\n\n\t\t\tbreak;\n\n\t\t\tcase \"paymentByBookingID\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"pp.system_reference SYSTEMREFERENCE, \";\n\t\t\t\t$cadena_sql.=\"pp.description DESCRIPTION, \";\n\t\t\t\t$cadena_sql.=\"pp.id_payu_reference IDPAYMENT, \";\n\t\t\t\t$cadena_sql.=\"pp.value VALUE, \";\n\t\t\t\t$cadena_sql.=\"pp.id_commerce IDCOMMERCE, \";\n\t\t\t\t$cadena_sql.=\"pp.answer ANSWER, \";\n\t\t\t\t$cadena_sql.=\"pp.currency CURRENCY \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"payu_payment pp \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"pp.system_reference='\".$variable.\"' \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=\"pp.status = 1 \";\n\t\t\t\tbreak;\n\n\t\t\tcase \"countRoomsByGroup\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"count(id_reservable) \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservable \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"id_reservableGrupo ='\".$variable['groupRoom'].\"' \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=\"tipo_reserva = '\".$variable['commerce'].\"' \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=\"estado = '1' \";\n\t\t\tbreak;\n\n\t\t\tcase \"updateDataUser\":\n\t\t\t\t$cadena_sql=\"UPDATE \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user \";\n\t\t\t\t$cadena_sql.=\"SET \";\n\t\t\t\tif($variable['country']<>\"\"){\n\t\t\t\t\t$cadena_sql.=\"pais_origen ='\".$variable['country'].\"', \";\n\t\t\t\t}\n\t\t\t\tif($variable['name']<>\"\"){\n\t\t\t\t\t$cadena_sql.=\"nombre ='\".$variable['name'].\"', \";\n\t\t\t\t}\n\t\t\t\tif($variable['lastname']<>\"\"){\n\t\t\t\t\t$cadena_sql.=\"apellido ='\".$variable['lastname'].\"', \";\n\t\t\t\t}\n\t\t\t\tif($variable['dni']<>\"\"){\n\t\t\t\t\t$cadena_sql.=\"identificacion ='\".$variable['dni'].\"', \";\n\t\t\t\t}\n\t\t\t\tif($variable['phone']<>\"\"){\n\t\t\t\t\t$cadena_sql.=\"telefono='\".$variable['phone'].\"', \";\n\t\t\t\t}\n\t\t\t\t$cadena_sql.=\"estado='1' \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"correo ='\".$variable['email'].\"' \";\n\t\t\tbreak;\n\n\t\t\tcase \"insertUser\":\n\t\t\t\t$cadena_sql=\"INSERT INTO \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user \";\n\t\t\t\t$cadena_sql.=\"( \";\n\t\t\t\t$cadena_sql.=\"`nombre`, \";\n\t\t\t\t$cadena_sql.=\"`apellido`, \";\n\t\t\t\t$cadena_sql.=\"`correo`, \";\n\t\t\t\t$cadena_sql.=\"`telefono`, \";\n\t\t\t\t$cadena_sql.=\"`usuario`, \";\n\t\t\t\t$cadena_sql.=\"`clave`, \";\n\t\t\t\t$cadena_sql.=\"`identificacion`, \";\n\t\t\t\t$cadena_sql.=\"`pais_origen`, \";\n\t\t\t\t$cadena_sql.=\"`estilo`, \";\n\t\t\t\t$cadena_sql.=\"`idioma`, \";\n\t\t\t\t$cadena_sql.=\"`estado` \";\n\t\t\t\t$cadena_sql.=\") \";\n\t\t\t\t$cadena_sql.=\"VALUES \";\n\t\t\t\t$cadena_sql.=\"( \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['name'].\"', \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['lastname'].\"', \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['email'].\"', \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['phone'].\"', \";\n\t\t\t\t$cadena_sql.=\"'', \";\n\t\t\t\t$cadena_sql.=\"'', \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['dni'].\"', \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['country'].\"', \";\n\t\t\t\t$cadena_sql.=\"'default', \";\n\t\t\t\t$cadena_sql.=\"'es_es', \";\n\t\t\t\t$cadena_sql.=\"'1' \";\n\t\t\t\t$cadena_sql.=\")\";\n\t\t\t\tbreak;\n\n case \"insertRole\":\n\t\t\t\t$cadena_sql=\"INSERT INTO \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user_role \";\n\t\t\t\t$cadena_sql.=\"( \";\n\t\t\t\t$cadena_sql.=\"`id_usuario`, \";\n\t\t\t\t$cadena_sql.=\"`id_subsistema`, \";\n\t\t\t\t$cadena_sql.=\"`estado` \";\n\t\t\t\t$cadena_sql.=\") \";\n\t\t\t\t$cadena_sql.=\"VALUES \";\n\t\t\t\t$cadena_sql.=\"( \";\n\t\t\t\t$cadena_sql.=\"'\".$variable['user'].\"', \";\n\t\t\t\t$cadena_sql.=\"'3', \";\n\t\t\t\t$cadena_sql.=\"'1' \";\n\t\t\t\t$cadena_sql.=\")\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"getAllSession\":\n\t\t\t\t$cadena_sql = \"SELECT valor \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"session \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"sesionId = '\".$variable.\"' \";\n\t\t\t\tbreak;\n\n\t\t\tcase \"setBookingSession\":\n\t\t\t\t$cadena_sql=\"INSERT INTO \";\n\t\t\t\t$cadena_sql.=$prefijo.\"session \";\n\t\t\t\t$cadena_sql.=\"( \";\n\t\t\t\t$cadena_sql.=\"`sesionId`, \";\n\t\t\t\t$cadena_sql.=\"`variable`, \";\n\t\t\t\t$cadena_sql.=\"`valor`, \";\n\t\t\t\t$cadena_sql.=\"`expiracion` \";\n\t\t\t\t$cadena_sql.=\") \";\n\t\t\t\t$cadena_sql.=\"VALUES \";\n\t\t\t\t$cadena_sql.=\"( \";\n\t\t\t\t$cadena_sql.=\"'\".$variable.\"', \";\n\t\t\t\t$cadena_sql.=\"'idUsuario', \";\n\t\t\t\t$cadena_sql.=\"'\".time().\"', \";\n\t\t\t\t$cadena_sql.=\"'\".(time()+86400).\"' \";\n\t\t\t\t$cadena_sql.=\")\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"updateValueBookingbyID\":\n\t\t\t\t$cadena_sql=\"UPDATE \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation \";\n\t\t\t\t$cadena_sql.=\"SET \";\n\t\t\t\t$cadena_sql.=\"valor_total ='\".$variable['value'].\"' \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"id_reserva ='\".$variable['idbooking'].\"' \";\n\t\t\tbreak;\n\n\n\t\t\tcase \"confirmBookingbyID\":\n\t\t\t\t$cadena_sql=\"UPDATE \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation \";\n\t\t\t\t$cadena_sql.=\"SET \";\n\t\t\t\t$cadena_sql.=\"sesion_temp ='', \";\n\t\t\t\t$cadena_sql.=\"tiempo_expira_temp=fecha_fin, \";\n\t\t\t\t$cadena_sql.=\"estado_reserva=2, \";\n\t\t\t\t$cadena_sql.=\"cliente ='\".$variable['customer'].\"', \";\n\t\t\t\t$cadena_sql.=\"valor_total ='\".$variable['valueBooking'].\"' \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"id_reserva ='\".$variable['idbooking'].\"' \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=\"estado_reserva = '1' \";\n\t\t\tbreak;\n\n\t\t\tcase \"confirmBooking\":\n\t\t\t\t$cadena_sql=\"UPDATE \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation \";\n\t\t\t\t$cadena_sql.=\"SET \";\n\t\t\t\t$cadena_sql.=\"sesion_temp ='', \";\n\t\t\t\t$cadena_sql.=\"tiempo_expira_temp=fecha_fin, \";\n\t\t\t\tif(isset($variable['user'])){\n\t\t\t\t\t$cadena_sql.=\"cliente ='\".$variable['user'].\"', \";\n\t\t\t\t}\n\t\t\t\tif(isset($variable['observation'])){\n\t\t\t\t\t$cadena_sql.=\"observacion_cliente='\".$variable['observation'].\"', \";\n\t\t\t\t}\n\t\t\t\tif(isset($variable['value'])){\n\t\t\t\t\t$cadena_sql.=\"valor_total ='\".$variable['value'].\"', \";\n\t\t\t\t}\n\t\t\t\t$cadena_sql.=\"estado_reserva=2 \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"sesion_temp ='\".$variable['session'].\"' \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=\"estado_reserva = '1' \";\n\t\t\tbreak;\n\n\t\t\tcase \"updateUserBooking\":\n\t\t\t\t$cadena_sql=\"UPDATE \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reservation \";\n\t\t\t\t$cadena_sql.=\"SET \";\n\t\t\t\t$cadena_sql.=\"cliente ='\".$variable['user'].\"' \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"sesion_temp ='\".$variable['session'].\"' \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=\"estado_reserva = '1' \";\n\t\t\tbreak;\n\n\t\t\tcase \"valFiltersCommerceID\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"fo.nombre NOMBRE \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"filtro_opcion fo \";\n\t\t\t\t$cadena_sql.=\"INNER JOIN \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce_filtrador trf \";\n\t\t\t\t$cadena_sql.=\"ON (fo.id_filtroOpcion = trf.id_filtroOpcion) \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"trf.id_tipoReserva ='\".$variable['commerce'].\"' \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=\"fo.id_filtroComponente = '\".$variable['component'].\"' \";\n\t\t\tbreak;\n\n\n\t\t\tcase \"iniciarTransaccion\":\n\t\t\t\t$cadena_sql=\"START TRANSACTION\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"finalizarTransaccion\":\n\t\t\t\t$cadena_sql=\"COMMIT\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"cancelarTransaccion\":\n\t\t\t\t$cadena_sql=\"ROLLBACK\";\n\t\t\t\tbreak;\n\n\n\t\t\tcase \"eliminarTemp\":\n\n\t\t\t\t$cadena_sql=\"DELETE \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"tempFormulario \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"id_sesion = '\".$variable.\"' \";\n\t\t\t\tbreak;\n\n\t\t\tcase \"dataAllCommerce\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\" GROUP_CONCAT(\".$prefijo.\"commerce.id_tipoReserva) ID, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.nombre NAME, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.url URL, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.facebook FACEBOOK, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.correo EMAIL, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.descripcion DESCRIPTION, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.id_establecimiento BRANCH, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.capacidad CAPACITY, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.files_folder FILESFOLDER, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.imagen IMAGE, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.hora_inicio CHECKIN, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.hora_cierre CHECKOUT, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.direccion ADDRESS, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.latitud LATITUDE, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.longitud LONGITUDE, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.telefono PHONE \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.estado=1 \";\n\t\t\t\tif($variable[\"all\"]==\"\"){\n\t\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t\t$cadena_sql.=$prefijo.\"commerce.id_tipoReserva IN ( \".$variable[\"commerces\"].\" ) \";\n\t\t\t\t}\n\t\t\t\tif($variable[\"commerceType\"]<>\"\"){\n\t\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t\t$cadena_sql.=$prefijo.\"commerce.id_claTipoReserva='\".$variable[\"commerceType\"].\"' \";\n\t\t\t\t}\n\t\t\t\tif($variable[\"plan\"]<>\"\"){\n\t\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t\t$cadena_sql.=$prefijo.\"commerce.id_plan='\".$variable[\"plan\"].\"' \";\n\t\t\t\t}\n\t\t\t\t$cadena_sql.=\"GROUP BY `id_establecimiento` \";\n\t\t\t\t$cadena_sql.=\"ORDER BY \".$prefijo.\"commerce.id_plan DESC, \".$prefijo.\"commerce.nombre ASC\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"apiCommerceByID\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.api_key APIKEY \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.id_tipoReserva ='\".$variable.\"' \";\n\t\t\t\tbreak;\n\n\t\t\tcase \"dataCommerceByID\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.nombre NAME, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.descripcion DESCRIPTION, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.telefono PHONE, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.longitud LONGITUDE, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.latitud LATITUDE, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.facebook FACEBOOK, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.datos_cuenta BANKACCOUNT, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.payment_hotel PAYMENTHOTEL, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.payment_bank PAYMENTBANK, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.payment_payu PAYMENTPAYU, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.payment_davivienda PAYMENTDAVIVIENDA, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.files_folder FOLDER, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.imagen LOGO, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.correo EMAIL \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=$prefijo.\"commerce.id_tipoReserva ='\".$variable.\"' \";\n\t\t\t\tbreak;\n\n case \"getAdditionalFields\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"id_field IDFIELD, \";\n\t\t\t\t$cadena_sql.=\"name NAME \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"reserva_fields \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\" id_commerce='\".$variable[\"commerce\"].\"' \";\n $cadena_sql.=\"ORDER BY id_field ASC \";\n\t\t\t\tbreak;\n\n\t\t}\n\t\t//echo \"<br/><br/><br/>\".$tipo.\"=\".$cadena_sql;\n\t\treturn $cadena_sql;\n\n\t}", "function sql_quote_string($val,$dbh=NULL) {\n global $SQL_DBH;\n if (is_null($dbh))\n return $SQL_DBH->quote($val);\n else\n return $dbh->quote($val);\n }", "function toSQL($mixed,$addslashes = false,$quotes = true){\n\tif (is_null($mixed)){\n\t\treturn 'NULL';\n\t}\n\tif (!is_array($mixed)){\n\t\treturn tosql_string($mixed,$addslashes,$quotes);\n\t}\n\t$string = '';\n\tforeach($mixed as $value){\n\t\tif ($string != ''){\n\t\t\t$string .= ',';\n\t\t}\n\t\t$string .= tosql_string($value,$addslashes,$quotes);\n\t}\n\treturn $string;\n}", "function cadena_sql($tipo,$variable)\n {\n switch ($tipo)\n {\n case 'periodoActivo':\n\n $cadena_sql=\"SELECT ape_ano ANO,\";\n $cadena_sql.=\" ape_per PERIODO\";\n $cadena_sql.=\" FROM acasperi\";\n $cadena_sql.=\" WHERE\";\n $cadena_sql.=\" ape_estado LIKE '%A%'\";\n break;\n\n case \"estudiantesPruebaAcademica\":\n\n $cadena_sql =\" SELECT ins_est_cod AS COD_ESTUDIANTE, \";\n $cadena_sql.=\" ins_est_cra_cod AS COD_PROYECTO, \";\n $cadena_sql.=\" 3 AS CLASIFICACION, \";\n $cadena_sql.=\" ins_est_tipo AS TIPO\";\n $cadena_sql.=\" FROM sga_carga_inscripciones \";\n $cadena_sql.=\" WHERE ins_est_estado in ('B')\";\n $cadena_sql.=\" AND ins_est_cra_cod=\".$variable;\n break;\n\n case \"estudiantesSinPrueba\":\n if($this->periodo==1){\n $periodo= $this->periodo;\n }elseif($this->periodo==3){\n $periodo= 2;\n }\n $cadena_sql =\" SELECT ins_est_cod AS COD_ESTUDIANTE, \";\n $cadena_sql .=\" ins_est_estado AS COD_ESTADO, \"; \n $cadena_sql .=\" ins_estado_descripcion AS ESTADO, \";\n $cadena_sql .=\" ins_est_cra_cod AS COD_PROYECTO, \";\n $cadena_sql .=\" ins_cra_nombre AS PROYECTO, \";\n $cadena_sql .=\" ins_est_tipo AS TIPO, \";\n $cadena_sql .=\" ins_espacios_por_cursar AS ESPACIOS_POR_CURSAR, \";\n $cadena_sql .=\" ins_ano AS ANO, \";\n $cadena_sql .=\" ins_periodo AS PERIODO \";\n $cadena_sql .=\" FROM sga_carga_inscripciones \";\n $cadena_sql .=\" WHERE ins_est_estado in ('A')\";\n $cadena_sql.=\" AND ins_est_cra_cod=\".$variable;\n $cadena_sql.=\" AND ins_est_cod not like '\".$this->ano.$periodo.\"%'\";\n break;\n\n case \"notas\":\n $cadena_sql =\" SELECT not_est_cod AS COD_ESTUDIANTE,\";\n $cadena_sql.=\" not_asi_cod AS COD_ASIGNATURA,\";\n $cadena_sql.=\" not_nota AS NOTA,\";\n $cadena_sql.=\" not_obs AS OBSERVACION\";\n $cadena_sql.=\" FROM acnot \";\n $cadena_sql.=\" INNER JOIN acest ON not_est_cod = est_cod \";\n $cadena_sql.=\" WHERE not_est_reg='A' \";\n $cadena_sql.=\" AND est_estado_est IN ('A','B')\";\n $cadena_sql.=\" AND not_cra_cod= \".$variable;\n break;\n\n case 'adicionar_estudianteClasificacion':\n $cadena_sql=\"INSERT INTO sga_clasificacion_estudiantes \";\n $cadena_sql.=\"(cle_id, cle_codEstudiante, cle_codProyectoCurricular, cle_clasificacion, cle_tipoEstudiante) \";\n $cadena_sql.=\"VALUES (\";\n $cadena_sql.=\"'\".$variable['ID'].\"',\";\n $cadena_sql.=\"'\".$variable['COD_ESTUDIANTE'].\"',\";\n $cadena_sql.=\"'\".$variable['COD_PROYECTO'].\"',\";\n $cadena_sql.=\"'\".$variable['CLASIFICACION'].\"',\";\n $cadena_sql.=\"'\".$variable['TIPO'].\"')\"; \n break; \n \n }\n return $cadena_sql;\n }", "public function make_sql()\n\t{\n\t\ttry{\n\t\t\t$metot = $this->metot;\n\t\t\t$metot = strtolower($metot);\n\t\t\t\n\t\t\tif($metot == \"select\") /* Select için sql oluşturma*/\n\t\t\t{\n\t\t\t\tif ((count($this->tables))== 1)\n\t\t\t\t{\n\t\t\t\t\tfor ($c=1;$c<=(count($this->tables[0])-1);$c++){\n\t\t\t\t\t$col .= $this->tables[0][$c].\", \";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$col = trim($col);\n\t\t\t\t\t$col = substr(\"$col\", 0, -1);\n\t\t\t\t\t$table = $this->tables[0][0]; \n\t\t\t\t\t/*\n\t\t\t\t\t\tvar_dump($col);\n\t\t\t\t\t\tvar_dump($table);\n\t\t\t\t\t\tstring 'id, adsoyad' (length=12)\n\t\t\t\t\t\tstring 'email' (length=5)\n\t\t\t\t\t*/\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tforeach ($this->tables AS $row){\n\t\t\t\t\t\t$table = $row[0];\n\t\t\t\t\t\tfor($c=1; $c<=(count($row)-1);$c++){\n\t\t\t\t\t\t\t$var = trim($row[$c]);\n\t\t\t\t\t\t\t$col .= \"{$table}.{$var}, \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$col = trim($col);\n\t\t\t\t\t$col = substr($col, 0, -1);\n\t\t\t\t\t$table = $this->tables[0][0]; \n\t\t\t\t\t/*\n\t\t\t\t\t\tvar_dump($col);\n\t\t\t\t\t\tvar_dump($table);\n\t\t\t\t\t\tstring 'email.id, email.adsoyad, blog.id, blog.title' (length=44)\n\t\t\t\t\t\tstring 'email' (length=5)\n\t\t\t\t\t*/\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (!is_null($this->join)){\n\t\t\t\t\tforeach($this->join AS $row) {$join .=\" $row \";}\n\t\t\t\t}\n\t\t\t\telse $join = \"\";\n\t\t\t\t\n\t\t\t\tif (!is_null($this->where)) $where = $this->where;\n\t\t\t\telse $where =\"\";\n\t\t\t\t\n\t\t\t\tif (!is_null($this->order)) $order = $this->order;\n\t\t\t\telse $order =\"\";\n\t\t\t\t\n\t\t\t\tif (!is_null($this->group)) $group = $this->group;\n\t\t\t\telse $group =\"\";\n\t\t\t\t\n\t\t\t\tif (!is_null($this->limit)) $limit = $this->limit;\n\t\t\t\telse $limit =\"\";\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$this->sql = $this->metot.\" \". $col.\" FROM \".$table.\" \".$join.\" \".$where.\" \".$group.\" \".$order.\" \".$limit;\n\t\t\t\t/*var_dump($this->sql); string 'SELECT id, adsoyad FROM email WHERE email.id=35 ' (length=53)*/\n\t\t\t} /*if($metot == \"select\")*/\n\t\t\t\n\t\t\tif($metot == \"insert\") /* Insert için sql oluşturma*/\n\t\t\t{\n\t\t\t\tforeach ($this->tables AS $row)\n\t\t\t\t{\n\t\t\t\t\t$table = $row[0];\n\t\t\t\t\t$col = \"\";\n\t\t\t\t\t$colVal = \"\";\n\t\t\t\t\tfor ($c=1;$c<=(count($row)-1);$c++)\n\t\t\t\t\t{\n\t\t\t\t\t\t$col \t.= strstr($row[$c], \"=\", true).\", \";\n\t\t\t\t\t\t$colVal .= substr((strstr($row[$c], \"=\")), 1).\", \";\n\t\t\t\t\t}\n\t\t\t\t\t$col = trim($col);\n\t\t\t\t\t$col = substr($col, 0, -1);\n\t\t\t\t\t$colVal = trim($colVal);\n\t\t\t\t\t$colVal = substr($colVal, 0, -1);\n\t\t\t\t\t\n\t\t\t\t\t$sql[] = \"INSERT INTO {$table} ($col) VALUES ($colVal) \";\n\t\t\t\t}\n\t\t\t\t$this->sql = $sql;\n\t\t\t} /*if($metot == \"insert\")*/\n\t\t\t\n\t\t\tif ($metot == \"update\") /* Update için sql oluşturma*/\n\t\t\t{\n\t\t\t\tif (!is_null($this->where)) $where = $this->where;\n\t\t\t\telse $where =\"\";\n\t\t\t\t\n\t\t\t\tforeach ($this->tables AS $row)\n\t\t\t\t{\n\t\t\t\t\t$table = $row[0];\n\t\t\t\t\t$col = \"\";\n\t\t\t\t\t$colVal = \"\";\n\t\t\t\t\tfor ($c=1;$c<=(count($row)-1);$c++)\n\t\t\t\t\t{\n\t\t\t\t\t\t$col \t.= $row[$c].\", \";\n\t\t\t\t\t}\n\t\t\t\t\t$col = trim($col);\n\t\t\t\t\t$col = substr($col, 0, -1);\n\t\t\t\t\t$sql[] = \"UPDATE {$table} SET {$col} {$where}\";\n\t\t\t\t}\n\t\t\t\t$this->sql = $sql;\n\t\t\t} /*if ($metot == \"update\")*/\n\t\t\t\n\t\t\tif ($metot == \"delete\") /* Delete için sql oluşturma*/\n\t\t\t{\n\t\t\t\tif (!is_null($this->where)) $where = $this->where;\n\t\t\t\telse $where =\"\";\n\t\t\t\t\n\t\t\t\tforeach ($this->tables AS $row)\n\t\t\t\t{\n\t\t\t\t\t$table = $row[0];\n\t\t\t\t\t$col = \"\";\n\t\t\t\t\t$colVal = \"\";\n\t\t\t\t\tfor ($c=1;$c<=(count($row)-1);$c++)\n\t\t\t\t\t{\n\t\t\t\t\t\t$table = $row[0];\n\t\t\t\t\t\t$col = \"\";\n\t\t\t\t\t\t$colVal = \"\";\n\t\t\t\t\t\tfor ($c=1;$c<=(count($row)-1);$c++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$col \t.= strstr($row[$c], \"=\", true).\", \";\n\t\t\t\t\t\t\t$colVal .= substr((strstr($row[$c], \"=\")), 1).\", \";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$col = trim($col);\n\t\t\t\t\t\t$col = substr($col, 0, -1);\n\t\t\t\t\t\t$colVal = trim($colVal);\n\t\t\t\t\t\t$colVal = substr($colVal, 0, -1);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$sql[] = \"DELETE FROM {$table} WHERE ($col) = ($colVal) \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$this->sql = $sql;\n\t\t\t} /*if ($metot == \"delete\")*/\n\t\t\t\n\t\t\t$this->run();\n\t\t}\n\t\tcatch(Exception $e){\n\t\t\techo \"Error : \".$e->getMessage() .\"<br/>\".\"File : \".$e->getFile() . \"<br/>\".\"Line : \".$e->getLine() . \"<br/>\";\n\t\t}\n\t}", "private function prepareValuesRow(): string\n {\n $values = [];\n foreach ($this->storage as $key => $value) {\n $values[] = \"('{$key}', '{$value}')\";\n }\n\n return implode(', ', $values);\n }", "private static function buildNameParametersSQL() {\n $namedParams = '';\n foreach (static::$tableSchema as $columnName => $type) {\n $namedParams .= $columnName . ' = :' . $columnName . ', ';\n }\n return trim($namedParams, ', ');\n }", "public function make_sql_string(){\n\t\t$argumentos=[];\n\t\tforeach($this->arguments as $arg){\n\t\t\tif($arg instanceof resolve_to_sql){\n\t\t\t\t$argumentos[]=$arg->make_sql_string();\n\t\t\t}else{\n\t\t\t\tif(is_object($arg)){\n\t\t\t\t\tthrow new \\Exception('Argumento erroneo ('.get_class($arg).') en el grupo al construir');\n\t\t\t\t}else{\n\t\t\t\t\tthrow new \\Exception(\"Argumento erroneo ($arg) en el grupo al construir\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn '('.implode($this->get_union(),$argumentos).')';\n\t}", "public function getSQL($param=false){\n\t\t\tswitch( $name = $this->obtenerDato(\"name\") ){\n\t\t\t\t// Los campos modelfield::$specials los ponemos en código\n\t\t\t\t// Debemos refactorizar esto con algo mas de tiempo\n\t\t\t\tcase \"estado_contratacion\":\n\t\t\t\t\t$sql = \"( -- empresas validas\n\t\t\t\t\t\t\tn1 IN (<%empresasvalidas%>)\n\t\t\t\t\t\tAND if(n2 IS NULL OR !n2, 1, n2 IN (<%empresasvalidas%>) )\n\t\t\t\t\t\tAND if(n3 IS NULL OR !n3, 1, n3 IN (<%empresasvalidas%>) )\n\t\t\t\t\t\tAND if(n4 IS NULL OR !n4, 1, n4 IN (<%empresasvalidas%>) )\n\t\t\t\t\t)\";\n\n\t\t\t\t\treturn $sqlFinal = \"(SELECT if(($sql), 'Valido', 'No Valido'))\";\n\t\t\t\tbreak;\n\t\t\t\tcase \"cadena_contratacion_cumplimentada\":\n\t\t\t\t\t$sql = \"( -- empresas cumplimentadas\n\t\t\t\t\t\t\tn1 IN (<%empresacumplimentadas%>)\n\t\t\t\t\t\tAND if(n2 IS NULL OR !n2, 1, n2 IN (<%empresacumplimentadas%>) )\n\t\t\t\t\t\tAND if(n3 IS NULL OR !n3, 1, n3 IN (<%empresacumplimentadas%>) )\n\t\t\t\t\t\tAND if(n4 IS NULL OR !n4, 1, n4 IN (<%empresacumplimentadas%>) )\n\t\t\t\t\t)\";\n\n\t\t\t\t\treturn $sqlFinal = \"(SELECT if(($sql), 'Si', 'No'))\";\n\t\t\t\tbreak;\n\t\t\t\tcase 'asignado_en_conjunto_de_agrupadores': case 'valido_conjunto_agrupadores': \n\t\t\t\t// case 'valido_conjunto_agrupadores_asignados':\n\t\t\t\tcase 'valido_conjunto_agrupadores_seleccionados':\n\t\t\t\tcase 'valido_conjunto_agrupadores_solo_asignados':\n\t\t\t\t\tif( $param instanceof ArrayObjectList && $sql = trim($this->obtenerDato(\"sql\")) ){\n\t\t\t\t\t\t$subsql = array();\n\t\t\t\t\t\tforeach ($param as $item) {\n\t\t\t\t\t\t\t$subsql[] = \"((\". str_replace('%s', $item->getUID(), $sql) .\") = 1)\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn $sql = '( IF( '.implode(' AND ',$subsql) .',\\'Si\\',\\'No\\') )';\n\t\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t\tcase 'valido_algun_agrupador': \n\t\t\t\t\tif( $param instanceof ArrayObjectList && $sql = trim($this->obtenerDato(\"sql\")) ){\n\t\t\t\t\t\tforeach($param as $item) {\n\t\t\t\t\t\t\t$subsql[] = \"((\". str_replace('%s', $item->getUID(), $sql) .\") = 1)\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn $sql = '( IF( '.implode(' OR ',$subsql) .',\\'Si\\',\\'No\\') )';\n\t\t\t\t\t} \n\t\t\t\tbreak;\n\t\t\t\tcase 'mostrar_agrupador_asignado': case 'trabajos': case 'codigo_agrupador_valido':\n\t\t\t\t\tif( $param instanceof ArrayObjectList && $sql = trim($this->obtenerDato(\"sql\")) ){\n\t\t\t\t\t\treturn str_replace('%s', $param->toComaList() ,$sql);\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif( $sql = trim($this->obtenerDato(\"sql\")) ){\n\t\t\t\t\t\tif( $param instanceof Ielemento ) $param = $param->getUID();\n\t\t\t\t\t\tif( $param ) $sql = str_replace(\"%s\", $param, $sql);\n\t\t\t\t\t\treturn $sql;\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}", "final public static function toSQL()\n {\n $select = false;\n foreach (self::$starts as $reserved) {\n if (strpos(self::$query, $reserved . ' ') === 0) {\n $select = true;\n break;\n }\n }\n\n if (!$select) {\n self::$query = \"SELECT * FROM \" . self::tableName() . self::$query;\n }\n\n\n $values = [];\n for ($i = 0; $i < sizeof(self::$bindParams); $i++) {\n foreach (self::$bindParams[$i] as $item) {\n $values[] = $item;\n }\n }\n\n if (sizeof($values) > 0) {\n $query = self::$query;\n self::$query = \"\";\n self::$where = false;\n self::$bindParams = array();\n $query = str_replace(\"?\", \"#%s#\", $query);\n $query = sprintf($query, ...$values);\n $query = str_replace(\"#\", \"'\", $query);\n return sprintf($query, ...$values);\n }\n return self::$query;\n }", "private static function escapeSql($s) // {{{\n {\n $matches = array(\"\\\\\", \"'\", \"\\\"\" /*,\"\\0\", \"\\b\", \"\\n\", \"\\r\", \"\\t\"*/);\n $replacements = array(\"\\\\\\\\\", \"\\\\'\", \"\\\\\\\"\", /*\"\\\\0\", \"\\\\b\", \"\\\\n\", \"\\\\r\",\n \"\\\\t\"*/);\n $st = str_replace($matches, $replacements, $s);\n return $st;\n }", "public function inject()\n\t{\n\t\t$insert = '?id=1%27 and 1%3d1 union select ';\n\t\treturn $insert;\n\t}", "public function insertSql(){\n\n $columnNames = implode(',', $this->params['columnNames']);\n $columnNamePdo = implode(',', $this->params['columnNamePdo']);\n $columnsValues = implode(',', $this->paramsValues);\n $sql = \"INSERT INTO {$this->table} ({$columnNames}) VALUES ({$columnNamePdo})\";\n \n return $sql;\n }", "function insert_csv_param_aux($tabela, $data)\n { \n\n /**\n * Insere os dados na tabela \n * Inserts the data into the table\n */ \n $this->db->insert($tabela, $data); \n }", "function insererLigneSQL($nomTable, $tabAsso)\r\n{\r\n // MAINTENANT JE PEUX CONSTRUIRE LA REQUETE SQL PREPAREE\r\n $requeteSQL =\r\n<<<CODESQL\r\n\r\nINSERT INTO $nomTable\r\n(nom, prenom, adresse, raison, numero, dateDeclaration) \r\nVALUES \r\n(:nom, :prenom, :adresse, :raison, :numero, :dateDeclaration) \r\n\r\nCODESQL;\r\n // ENSUITE, ON VA ENVOYER LA REQUETE SQL PREPAREE\r\n // CONNECTER A SQL\r\n \r\n // ETAPE1: CONNECTER PHP A SQL\r\n // ATTENTION: NE PAS OUBLIER DE CHANGER LA DATABASE...\r\n $pdo = new PDO(\"mysql:host=localhost;dbname=attestation;charset=utf8;\", \"root\", \"\");\r\n\r\n // ETAPE2a: ON ENVOIE LA REQUETE PREPAREE\r\n // PDOStatement EST UN CONTAINER QUI ENGLOBE LES RESULTATS DE LA REQUETE SQL\r\n $pdoStatement = $pdo->prepare($requeteSQL);\r\n\r\n // ETAPE2b: ON FOURNIT LES DONNEES EXTERIEURES A PART\r\n $pdoStatement->execute($tabAsso);\r\n\r\n // POUR DEBUG SQL SI BESOIN\r\n // https://www.php.net/manual/fr/pdostatement.debugdumpparams.php\r\n // ON ACTIVE CETTE LIGNE SI ON A BESOIN DE DEBUG LES REQUETES SQL...\r\n // => AFFICHE PLUS D'INFORMATIONS SUR LA REQUETE SQL ENTRE PHP ET SQL\r\n // $pdoStatement->debugDumpParams();\r\n\r\n}", "function to_str() {\n //\n //Test if this sql has an elias \n $alias= is_null($this->alias) ? \"\":\"as `$this->alias`\";\n //\n //the update statement \n $smt=\"\"\n //This is an update statement \n .\"UPDATE \\n\"\n //\n //Get the root from expression as the source table of this update \n //statement \n . \"{$this->root->fromexp()} \\n\"\n . \"SET \\n\"\n //\n //get the values as key values pairs \n .\"{$this->str_values()} \\n\"\n //\n //The joins, if any\n . \"{$this->joins->to_str()} \\n\"\n //\n //the where condition is that the primary value is equal to the \n //primary column\n .\"WHERE {$this->wheres->to_str()} \\n\"\n //\n //include an ellias if any \n .\"$alias\";\n //\n //Return the sql statement\n return $smt;\n }", "function bindQuery($dades,$orders)\n{\n\n\t$qstring='';\n\t$orders=params2array($orders,array(',',':'));\n\t$last_item = count($orders);\n\t$counter=0;\n\tforeach ($orders as $camp=>$func)\n\t{\n\t\t$counter++;\n\t\t$noq=false;\n\t\tif ($func===true)\t//cap funció a fer, agafa-ho de l'array\n\t\t{\n\t\t\t$dada_final=$dades[$camp];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tswitch ($func)\n\t\t\t{\n\t\t\t\tcase 'real':\t//convertir cadena a nombre real\n\t\t\t\t\t$dada_final=redigit($dades[$camp]);\n\t\t\t\t\t$dada_final=(float)$dada_final;\n\t\t\t\t\t$noq=true;\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'dataasql':\t//convertir data php a mysql\n\t\t\t\t\t$dada_final=dataasql($dades[$camp]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'sha1':\t//codificar\n\t\t\t\t\t$dada_final=$dades[camp]!=''?sha1($dades[camp]):'';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'ornull':\t//si es buit convertir a null\n\t\t\t\t\t$dada_final=$dades[$camp];\n\t\t\t\t\tif ($dada_final=='')\n\t\t\t\t\t{\n\t\t\t\t\t\t$dada_final='NULL';\n\t\t\t\t\t\t$noq=true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif ($func[0]=='=')\t//expresió mysql\n\t\t\t\t\t{\n\t\t\t\t\t\t$dada_final=substr($func,1);\n\t\t\t\t\t\t$noq=true;\n\t\t\t\t\t}\n\t\t\t\t\telse {$dada_final=$func;}\t// asignar valor directe\n\t\t\t\n\t\t\t}\n\t\t}\n\t\tif (!$noq) {$dada_final=\"'\".MQ($dada_final).\"'\";}\n\t\t$qstring.=\"$camp = $dada_final\".($counter!=$last_item?\", \":\" \");\n\t}\n\treturn $qstring;\n}", "public function getSql();", "public function getSql();", "public function get_sql()\n {\n }", "function fixSQLInjection($value){\n $newstring=$value;\n //echo \"value=\".$value.\"<br/>\";\n $latestPos=0;\n $counter=0;\n if (strpos($value,',')!==false) throw new Exception (\"PASS. Comma is unavaiable as a character. PGSQL doesn\\'t like it :( \");\n //echo \"position of ': \";var_dump(strpos($value,'\\'')); echo \"<br/>\";\n while(($positionOfXrenb=strpos($value,'\\'',$latestPos))!==false){\n //echo \"GG\";\n $newstring = substr($newstring,0,$positionOfXrenb+$counter);\n $newstring.='\\'';\n $newstring.=substr($value,$positionOfXrenb,strlen($value)-$positionOfXrenb);\n //var_dump ($newstring);\n //echo \"<br/>\";\n $latestPos=$positionOfXrenb;\n $value[$positionOfXrenb]='X';\n $counter++;\n \n }\n //var_dump ($newstring);\n return $newstring;\n}", "function createTableString($tablas){\n\t\tglobal $formatedTables;\n\n\t\tforeach ($tablas as $key => $value) {\n\t\t\tif(!@in_array($value, $formatedTables)){\n\t\t\t\t$formatedTables[] = $value;\n\t\t\t}\n\t\t}\n\t}", "function createTableString($tablas){\n\t\tglobal $formatedTables;\n\n\t\tforeach ($tablas as $key => $value) {\n\t\t\tif(!@in_array($value, $formatedTables)){\n\t\t\t\t$formatedTables[] = $value;\n\t\t\t}\n\t\t}\n\t}", "public function quote($value){\n $connection = $this -> connect();\n return pg_escape_literal($value);\n }", "function arrayIntoString_sql(array $arr)\n {\n $str = \"\";\n foreach ($arr as $k => $v) {\n $str .= (count($arr) - 1 != $k)\n ? \"'\". $v . \"', \"\n : \"'\". $v . \"'\";\n }\n return $str;\n }", "public function insertEscaped(...$field_values);", "public function toSql()\n {\n if (0 === count($this->getParams())) {\n return 'SELECT *';\n } else {\n return 'SELECT ' . implode(', ', $this->getParams());\n }\n }", "function f_filtro($cadena)\n {\n return $this->conexion->real_escape_string($cadena);\n }", "public static function intoQuote($string){ return \"'\".$string.\"'\"; }", "public function ConstruirSQL(string $tipoConsulta, string $nombretabla, array $datosRecibidos){\n $instruccionSql= \"\";\n $campos = array();\n\n $camposTabla = $this->ObtenerCamposTabla($nombretabla);\n\n switch ($tipoConsulta){\n case \"I\":\n\n $nuevoDato=array(); \n\n foreach ($camposTabla as $claveCampos => $campo) {\n \n if( !array_key_exists ( $campo , $datosRecibidos ) ) $datosRecibidos[$campo] = 'NULL';\n else if( is_null($datosRecibidos[$campo]) ) $datosRecibidos[$campo] = 'NULL';\n else $datosRecibidos[$campo] = \"'\".$datosRecibidos[$campo].\"'\";\n\n $nuevoDato[] = $datosRecibidos[$campo];\n\n }\n\n $informacion = implode ( \",\" , $nuevoDato );\n $instruccionSql = \"INSERT INTO $nombretabla ( \".implode ( \",\" , $camposTabla ).\" ) VALUES ( $informacion )\";\n \n break;\n case \"A\":\n\n $nuevoDato=array();\n\n foreach ($camposTabla as $claveCampos => $campo) {\n\n if( !array_key_exists ( $campo , $datosRecibidos ) ) $datosRecibidos[$campo] = 'NULL';\n else if (is_null($datosRecibidos[$campo]) ) $datosRecibidos[$campo] = $campo.\" = NULL\";\n else $datosRecibidos[$campo] = $campo.\" = '\".$datosRecibidos[$campo].\"'\";\n \n $nuevoDato[] = $datosRecibidos[$campo];\n\n }\n\n $informacion = implode ( \",\" , $nuevoDato );\n $instruccionSql = \"UPDATE $nombretabla SET $informacion WHERE \".$datosRecibidos['id'];\n\n break;\n case \"E\":\n\n $instruccionSql = \"DELETE FROM $nombretabla WHERE id = \".$datosRecibidos['id'];\n\n break; \n }\n\n return $instruccionSql;\n }", "function getCadenaSql($tipo, $variable = \"\") {\n\t\t$prefijo = $this->miConfigurador->getVariableConfiguracion ( \"prefijo\" );\n\t\t$idSesion = $this->miConfigurador->getVariableConfiguracion ( \"id_sesion\" );\n\t\t\n\t\tswitch ($tipo) {\n\t\t\t\n\t\t\t/**\n\t\t\t * Clausulas específicas\n\t\t\t */\n\t\t\tcase \"buscarUsuario\" :\n\t\t\t\t$cadenaSql = \"SELECT \";\n\t\t\t\t$cadenaSql .= \"FECHA_CREACION, \";\n\t\t\t\t$cadenaSql .= \"PRIMER_NOMBRE \";\n\t\t\t\t$cadenaSql .= \"FROM \";\n\t\t\t\t$cadenaSql .= \"USUARIOS \";\n\t\t\t\t$cadenaSql .= \"WHERE \";\n\t\t\t\t$cadenaSql .= \"`PRIMER_NOMBRE` ='\" . $variable . \"' \";\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"insertarRegistro\" :\n\t\t\t\t$cadenaSql = \"INSERT INTO \";\n\t\t\t\t$cadenaSql .= $prefijo . \"registradoConferencia \";\n\t\t\t\t$cadenaSql .= \"( \";\n\t\t\t\t$cadenaSql .= \"`idRegistrado`, \";\n\t\t\t\t$cadenaSql .= \"`nombre`, \";\n\t\t\t\t$cadenaSql .= \"`apellido`, \";\n\t\t\t\t$cadenaSql .= \"`identificacion`, \";\n\t\t\t\t$cadenaSql .= \"`codigo`, \";\n\t\t\t\t$cadenaSql .= \"`correo`, \";\n\t\t\t\t$cadenaSql .= \"`tipo`, \";\n\t\t\t\t$cadenaSql .= \"`fecha` \";\n\t\t\t\t$cadenaSql .= \") \";\n\t\t\t\t$cadenaSql .= \"VALUES \";\n\t\t\t\t$cadenaSql .= \"( \";\n\t\t\t\t$cadenaSql .= \"NULL, \";\n\t\t\t\t$cadenaSql .= \"'\" . $variable ['nombre'] . \"', \";\n\t\t\t\t$cadenaSql .= \"'\" . $variable ['apellido'] . \"', \";\n\t\t\t\t$cadenaSql .= \"'\" . $variable ['identificacion'] . \"', \";\n\t\t\t\t$cadenaSql .= \"'\" . $variable ['codigo'] . \"', \";\n\t\t\t\t$cadenaSql .= \"'\" . $variable ['correo'] . \"', \";\n\t\t\t\t$cadenaSql .= \"'0', \";\n\t\t\t\t$cadenaSql .= \"'\" . time () . \"' \";\n\t\t\t\t$cadenaSql .= \")\";\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"actualizarRegistro\" :\n\t\t\t\t$cadenaSql = \"UPDATE \";\n\t\t\t\t$cadenaSql .= $prefijo . \"conductor \";\n\t\t\t\t$cadenaSql .= \"SET \";\n\t\t\t\t$cadenaSql .= \"`nombre` = '\" . $variable [\"nombre\"] . \"', \";\n\t\t\t\t$cadenaSql .= \"`apellido` = '\" . $variable [\"apellido\"] . \"', \";\n\t\t\t\t$cadenaSql .= \"`identificacion` = '\" . $variable [\"identificacion\"] . \"', \";\n\t\t\t\t$cadenaSql .= \"`telefono` = '\" . $variable [\"telefono\"] . \"' \";\n\t\t\t\t$cadenaSql .= \"WHERE \";\n\t\t\t\t$cadenaSql .= \"`idConductor` =\" . $_REQUEST [\"registro\"] . \" \";\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t/**\n\t\t\t * Clausulas genéricas.\n\t\t\t * se espera que estén en todos los formularios\n\t\t\t * que utilicen esta plantilla\n\t\t\t */\n\t\t\tcase \"iniciarTransaccion\" :\n\t\t\t\t$cadenaSql = \"START TRANSACTION\";\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"finalizarTransaccion\" :\n\t\t\t\t$cadenaSql = \"COMMIT\";\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"cancelarTransaccion\" :\n\t\t\t\t$cadenaSql = \"ROLLBACK\";\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"eliminarTemp\" :\n\t\t\t\t\n\t\t\t\t$cadenaSql = \"DELETE \";\n\t\t\t\t$cadenaSql .= \"FROM \";\n\t\t\t\t$cadenaSql .= $prefijo . \"tempFormulario \";\n\t\t\t\t$cadenaSql .= \"WHERE \";\n\t\t\t\t$cadenaSql .= \"id_sesion = '\" . $variable . \"' \";\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"insertarTemp\" :\n\t\t\t\t$cadenaSql = \"INSERT INTO \";\n\t\t\t\t$cadenaSql .= $prefijo . \"tempFormulario \";\n\t\t\t\t$cadenaSql .= \"( \";\n\t\t\t\t$cadenaSql .= \"id_sesion, \";\n\t\t\t\t$cadenaSql .= \"formulario, \";\n\t\t\t\t$cadenaSql .= \"campo, \";\n\t\t\t\t$cadenaSql .= \"valor, \";\n\t\t\t\t$cadenaSql .= \"fecha \";\n\t\t\t\t$cadenaSql .= \") \";\n\t\t\t\t$cadenaSql .= \"VALUES \";\n\t\t\t\t\n\t\t\t\tforeach ( $_REQUEST as $clave => $valor ) {\n\t\t\t\t\t$cadenaSql .= \"( \";\n\t\t\t\t\t$cadenaSql .= \"'\" . $idSesion . \"', \";\n\t\t\t\t\t$cadenaSql .= \"'\" . $variable ['formulario'] . \"', \";\n\t\t\t\t\t$cadenaSql .= \"'\" . $clave . \"', \";\n\t\t\t\t\t$cadenaSql .= \"'\" . $valor . \"', \";\n\t\t\t\t\t$cadenaSql .= \"'\" . $variable ['fecha'] . \"' \";\n\t\t\t\t\t$cadenaSql .= \"),\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$cadenaSql = substr ( $cadenaSql, 0, (strlen ( $cadenaSql ) - 1) );\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"rescatarTemp\" :\n\t\t\t\t$cadenaSql = \"SELECT \";\n\t\t\t\t$cadenaSql .= \"id_sesion, \";\n\t\t\t\t$cadenaSql .= \"formulario, \";\n\t\t\t\t$cadenaSql .= \"campo, \";\n\t\t\t\t$cadenaSql .= \"valor, \";\n\t\t\t\t$cadenaSql .= \"fecha \";\n\t\t\t\t$cadenaSql .= \"FROM \";\n\t\t\t\t$cadenaSql .= $prefijo . \"tempFormulario \";\n\t\t\t\t$cadenaSql .= \"WHERE \";\n\t\t\t\t$cadenaSql .= \"id_sesion='\" . $idSesion . \"'\";\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t/**\n\t\t\t * Clausulas Del Caso Uso.\n\t\t\t */\n\t\t\t\n\t\t\tcase \"buscar_placa_maxima\" :\n\t\t\t\t$cadenaSql = \" SELECT MAX(placa::FLOAT) placa_max \";\n\t\t\t\t$cadenaSql .= \" FROM elemento_individual \";\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"buscar_repetida_placa\" :\n\t\t\t\t$cadenaSql = \" SELECT count (placa) \";\n\t\t\t\t$cadenaSql .= \" FROM elemento_individual \";\n\t\t\t\t$cadenaSql .= \" WHERE placa ='\" . $variable . \"';\";\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"idElementoMaxIndividual\" :\n\t\t\t\t\n\t\t\t\t$cadenaSql = \"SELECT max(id_elemento_ind) \";\n\t\t\t\t$cadenaSql .= \"FROM elemento_individual \";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"ingresar_elemento_individual\" :\n\t\t\t\t\n\t\t\t\t$cadenaSql = \" \tINSERT INTO elemento_individual(\";\n\t\t\t\t$cadenaSql .= \"fecha_registro, placa, serie, id_elemento_gen,id_elemento_ind,id_salida,funcionario,ubicacion_elemento,cantidad_asignada) \";\n\t\t\t\t$cadenaSql .= \" VALUES (\";\n\t\t\t\t$cadenaSql .= \"'\" . $variable [0] . \"',\";\n\t\t\t\t$cadenaSql .= ((is_null ( $variable [1] )) ? 'null' . \",\" : \"'\" . $variable [1] . \"',\");\n\t\t\t\t$cadenaSql .= ((is_null ( $variable [2] )) ? 'null' . \",\" : \"'\" . $variable [2] . \"',\");\n\t\t\t\t$cadenaSql .= \"'\" . $variable [3] . \"',\";\n\t\t\t\t$cadenaSql .= \"'\" . $variable [4] . \"',\";\n\t\t\t\tif (is_null ( $variable ['id_salida'] ) == false) {\n\t\t\t\t\t$cadenaSql .= \"'\" . $variable ['id_salida'] . \"',\";\n\t\t\t\t} else {\n\t\t\t\t\t$cadenaSql .= \"NULL,\";\n\t\t\t\t}\n\t\t\t\tif (is_null ( $variable ['funcionario'] ) == false) {\n\t\t\t\t\t$cadenaSql .= \"'\" . $variable ['funcionario'] . \"',\";\n\t\t\t\t} else {\n\t\t\t\t\t$cadenaSql .= \"NULL,\";\n\t\t\t\t}\n\t\t\t\tif (is_null ( $variable ['ubicacion_elemento'] ) == false) {\n\t\t\t\t\t$cadenaSql .= \"'\" . $variable ['ubicacion_elemento'] . \"',\";\n\t\t\t\t} else {\n\t\t\t\t\t$cadenaSql .= \"NULL,\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$cadenaSql .= \"'\" . $variable ['cantidad_asignada'] . \"') \";\n\t\t\t\t$cadenaSql .= \"RETURNING id_elemento_ind; \";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"Informacion_Elemento\" :\n\t\t\t\t$cadenaSql = \"SELECT * \";\n\t\t\t\t$cadenaSql .= \" FROM elemento \";\n\t\t\t\t$cadenaSql .= \" WHERE id_elemento='\" . $variable . \"';\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"sede\" :\n\t\t\t\t$cadenaSql = \"SELECT DISTINCT \\\"ESF_ID_SEDE\\\", \\\"ESF_SEDE\\\" \";\n\t\t\t\t$cadenaSql .= \" FROM arka_parametros.arka_sedes \";\n\t\t\t\t$cadenaSql .= \" WHERE \\\"ESF_ESTADO\\\"='A'\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"dependencias\" :\n\t\t\t\t$cadenaSql = \"SELECT DISTINCT \\\"ESF_CODIGO_DEP\\\" , \\\"ESF_DEP_ENCARGADA\\\" \";\n\t\t\t\t$cadenaSql .= \" FROM arka_parametros.arka_dependencia ad \";\n\t\t\t\t$cadenaSql .= \" JOIN arka_parametros.arka_espaciosfisicos ef ON ef.\\\"ESF_ID_ESPACIO\\\"=ad.\\\"ESF_ID_ESPACIO\\\" \";\n\t\t\t\t$cadenaSql .= \" JOIN arka_parametros.arka_sedes sa ON sa.\\\"ESF_COD_SEDE\\\"=ef.\\\"ESF_COD_SEDE\\\" \";\n\t\t\t\t$cadenaSql .= \" WHERE ad.\\\"ESF_ESTADO\\\"='A'\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"dependenciasConsultadas\" :\n\t\t\t\t$cadenaSql = \"SELECT DISTINCT \\\"ESF_CODIGO_DEP\\\" , \\\"ESF_DEP_ENCARGADA\\\" \";\n\t\t\t\t$cadenaSql .= \" FROM arka_parametros.arka_dependencia ad \";\n\t\t\t\t$cadenaSql .= \" JOIN arka_parametros.arka_espaciosfisicos ef ON ef.\\\"ESF_ID_ESPACIO\\\"=ad.\\\"ESF_ID_ESPACIO\\\" \";\n\t\t\t\t$cadenaSql .= \" JOIN arka_parametros.arka_sedes sa ON sa.\\\"ESF_COD_SEDE\\\"=ef.\\\"ESF_COD_SEDE\\\" \";\n\t\t\t\t$cadenaSql .= \" WHERE sa.\\\"ESF_ID_SEDE\\\"='\" . $variable . \"' \";\n\t\t\t\t$cadenaSql .= \" AND ad.\\\"ESF_ESTADO\\\"='A'\";\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"funcionarios\" :\n\t\t\t\t\n\t\t\t\t$cadenaSql = \"SELECT \\\"FUN_IDENTIFICACION\\\", \\\"FUN_IDENTIFICACION\\\" ||' - '|| \\\"FUN_NOMBRE\\\" \";\n\t\t\t\t$cadenaSql .= \"FROM arka_parametros.arka_funcionarios \";\n\t\t\t\t$cadenaSql .= \"WHERE \\\"FUN_ESTADO\\\"='A' \";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"buscar_placa\" :\n\t\t\t\t$cadenaSql = \" SELECT DISTINCT placa, placa as placas \";\n\t\t\t\t$cadenaSql .= \"FROM elemento_individual \";\n\t\t\t\t$cadenaSql .= \"WHERE placa IS NOT NULL \";\n\t\t\t\t$cadenaSql .= \"ORDER BY placa DESC ;\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"buscar_serie\" :\n\t\t\t\t$cadenaSql = \" SELECT DISTINCT serie, serie as series \";\n\t\t\t\t$cadenaSql .= \"FROM elemento_individual \";\n\t\t\t\t$cadenaSql .= \"WHERE serie IS NOT NULL \";\n\t\t\t\t$cadenaSql .= \"ORDER BY serie DESC \";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"buscar_entradas\" :\n\t\t\t\t\n\t\t\t\t$cadenaSql = \"SELECT DISTINCT en.id_entrada, en.consecutivo||' - ('||en.vigencia||')' entradas \";\n\t\t\t\t$cadenaSql .= \"FROM entrada en \";\n\t\t\t\t$cadenaSql .= \"JOIN elemento el ON el.id_entrada=en.id_entrada \";\n\t\t\t\t$cadenaSql .= \"WHERE en.cierre_contable='f' \";\n\t\t\t\t$cadenaSql .= \"AND en.estado_registro='t' \";\n\t\t\t\t$cadenaSql .= \"AND en.estado_entrada = 1 \";\n\t\t\t\t$cadenaSql .= \"ORDER BY en.id_entrada DESC ;\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"consultarElementoCD\" :\n\t\t\t\t\n\t\t\t\t$cadenaSql = \"SELECT DISTINCT \";\n\t\t\t\t$cadenaSql .= \"placa, \";\n\t\t\t\t$cadenaSql .= \"elemento.serie, elemento.fecha_registro as fecharegistro, id_elemento as idelemento,\n\t\t\t\t\t\t estado_entrada as estadoentrada, \n\t\t\t\t\t\t entrada.cierre_contable as cierrecontable,\n\t\t\t\t\t\t entrada.consecutivo||' - ('||entrada.vigencia||')' entrada,\n\t\t\t\t\t\t elemento.descripcion descripcion , elemento.tipo_bien \";\n\t\t\t\t$cadenaSql .= \"FROM elemento \";\n\t\t\t\t$cadenaSql .= \"JOIN tipo_bienes ON tipo_bienes.id_tipo_bienes = elemento.tipo_bien \";\n\t\t\t\t$cadenaSql .= \"JOIN elemento_individual ON elemento_individual.id_elemento_gen = elemento.id_elemento \";\n\t\t\t\t$cadenaSql .= \"JOIN entrada ON entrada.id_entrada = elemento.id_entrada \";\n\t\t\t\t$cadenaSql .= \"WHERE elemento.estado=TRUE \";\n\t\t\t\t$cadenaSql .= \"AND elemento_individual.id_salida IS NULL \";\n\t\t\t\t$cadenaSql .= \"AND entrada.cierre_contable='f' \";\n\t\t\t\t$cadenaSql .= \"AND entrada.estado_entrada='1' \";\n\t\t\t\t$cadenaSql .= \"AND elemento_individual.estado_registro='TRUE' \";\n\t\t\t\t$cadenaSql .= \"AND entrada.estado_registro='t' \";\n\t\t\t\t$cadenaSql .= \"AND tipo_bienes.id_tipo_bienes <> '1' \";\n\t\t\t\t\n\t\t\t\tif ($variable [0] != '') {\n\t\t\t\t\t$cadenaSql .= \" AND elemento.fecha_registro BETWEEN CAST ( '\" . $variable [0] . \"' AS DATE) \";\n\t\t\t\t\t$cadenaSql .= \" AND CAST ( '\" . $variable [1] . \"' AS DATE) \";\n\t\t\t\t}\n\t\t\t\tif ($variable [2] != '') {\n\t\t\t\t\t$cadenaSql .= \" AND elemento_individual.placa = '\" . $variable [2] . \"' \";\n\t\t\t\t}\n\t\t\t\tif ($variable [3] != '') {\n\t\t\t\t\t$cadenaSql .= \" AND elemento.serie= '\" . $variable [3] . \"' \";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ($variable [4] != '') {\n\t\t\t\t\t$cadenaSql .= \" AND entrada.id_entrada= '\" . $variable [4] . \"' \";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"consultarElementoC\" :\n\t\t\t\t\n\t\t\t\t$cadenaSql = \"SELECT DISTINCT \";\n\t\t\t\t$cadenaSql .= \"'' as placa, \";\n\t\t\t\t$cadenaSql .= \"elemento.serie, elemento.fecha_registro as fecharegistro, id_elemento as idelemento,\n\t\t\t\t\t\t estado_entrada as estadoentrada,\n\t\t\t\t\t\t entrada.cierre_contable as cierrecontable,\n\t\t\t\t\t\t entrada.consecutivo||' - ('||entrada.vigencia||')' entrada,\n\t\t\t\t\t\t elemento.descripcion descripcion, elemento.tipo_bien \";\n\t\t\t\t$cadenaSql .= \"FROM elemento \";\n\t\t\t\t$cadenaSql .= \"JOIN tipo_bienes ON tipo_bienes.id_tipo_bienes = elemento.tipo_bien \";\n\t\t\t\t$cadenaSql .= \"LEFT JOIN elemento_individual ON elemento_individual.id_elemento_gen = elemento.id_elemento \";\n\t\t\t\t$cadenaSql .= \"JOIN entrada ON entrada.id_entrada = elemento.id_entrada \";\n\t\t\t\t$cadenaSql .= \"WHERE 1=1 \";\n\t\t\t\t$cadenaSql .= \"AND elemento.estado='t' \";\n\t\t\t\t$cadenaSql .= \"AND entrada.cierre_contable='f' \";\n// \t\t\t\t$cadenaSql .= \"AND elemento_individual.estado_registro='t' \";\n\t\t\t\t$cadenaSql .= \"AND elemento_individual.id_salida IS NULL \";\n\t\t\t\t$cadenaSql .= \"AND entrada.estado_registro='t' \";\n\t\t\t\t$cadenaSql .= \"AND entrada.estado_entrada='1' \";\n\t\t\t\t$cadenaSql .= \"AND tipo_bienes.id_tipo_bienes='1' \";\n\t\t\t\t\n\t\t\t\tif ($variable [0] != '') {\n\t\t\t\t\t$cadenaSql .= \" AND elemento.fecha_registro BETWEEN CAST ( '\" . $variable [0] . \"' AS DATE) \";\n\t\t\t\t\t$cadenaSql .= \" AND CAST ( '\" . $variable [1] . \"' AS DATE) \";\n\t\t\t\t}\n\t\t\t\tif ($variable [2] != '') {\n\t\t\t\t\t$cadenaSql .= \" AND elemento_individual.placa = '\" . $variable [2] . \"' \";\n\t\t\t\t}\n\t\t\t\tif ($variable [3] != '') {\n\t\t\t\t\t$cadenaSql .= \" AND elemento.serie= '\" . $variable [3] . \"' \";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ($variable [4] != '') {\n\t\t\t\t\t$cadenaSql .= \" AND entrada.id_entrada= '\" . $variable [4] . \"' \";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"consultarElementoParticular\" :\n\t\t\t\t$cadenaSql = \" SELECT \";\n\t\t\t\t$cadenaSql .= \"nivel,tipo_bien, descripcion, cantidad, \";\n\t\t\t\t$cadenaSql .= \"unidad, valor, iva, ajuste, bodega, subtotal_sin_iva, total_iva,\";\n\t\t\t\t$cadenaSql .= \"total_iva_con, tipo_poliza, fecha_inicio_pol, fecha_final_pol, \";\n\t\t\t\t$cadenaSql .= \"marca, serie \";\n\t\t\t\t$cadenaSql .= \" FROM arka_inventarios.elemento \";\n\t\t\t\t$cadenaSql .= \" WHERE id_elemento='\" . $variable . \"'\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"consultar_tipo_bien\" :\n\t\t\t\t\n\t\t\t\t$cadenaSql = \"SELECT id_tipo_bienes, descripcion \";\n\t\t\t\t$cadenaSql .= \"FROM arka_inventarios.tipo_bienes;\";\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"consultar_tipo_poliza\" :\n\t\t\t\t\n\t\t\t\t$cadenaSql = \"SELECT id_tipo_poliza, descripcion \";\n\t\t\t\t$cadenaSql .= \"FROM arka_inventarios.tipo_poliza;\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"consultar_tipo_iva\" :\n\t\t\t\t\n\t\t\t\t$cadenaSql = \"SELECT id_iva, descripcion \";\n\t\t\t\t$cadenaSql .= \"FROM arka_inventarios.aplicacion_iva;\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"consultar_bodega\" :\n\t\t\t\t\n\t\t\t\t$cadenaSql = \"SELECT id_bodega, descripcion \";\n\t\t\t\t$cadenaSql .= \"FROM arka_inventarios.bodega;\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"consultar_placa\" :\n\t\t\t\t\n\t\t\t\t$cadenaSql = \"SELECT MAX( placa) \";\n\t\t\t\t$cadenaSql .= \"FROM elemento \";\n\t\t\t\t$cadenaSql .= \"WHERE tipo_bien='1';\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t// SELECT id_elemento, fecha_registro, tipo_bien, descripcion, cantidad,\n\t\t\t// unidad, valor, iva, ajuste, bodega, subtotal_sin_iva, total_iva,\n\t\t\t// total_iva_con, placa, tipo_poliza, fecha_inicio_pol, fecha_final_pol,\n\t\t\t// marca, serie, id_entrada, estado\n\t\t\t// FROM elemento;\n\t\t\t\n\t\t\tcase \"actualizar_elemento_tipo_1\" :\n\t\t\t\t\n\t\t\t\t$cadenaSql = \" UPDATE \";\n\t\t\t\t$cadenaSql .= \" elemento \";\n\t\t\t\t$cadenaSql .= \" SET \";\n\t\t\t\t$cadenaSql .= \" tipo_bien='\" . $variable [0] . \"', \";\n\t\t\t\t$cadenaSql .= \" descripcion='\" . $variable [1] . \"', \";\n\t\t\t\t$cadenaSql .= \" cantidad='\" . $variable [2] . \"', \";\n\t\t\t\t$cadenaSql .= \" unidad='\" . $variable [3] . \"', \";\n\t\t\t\t$cadenaSql .= \" valor='\" . $variable [4] . \"', \";\n\t\t\t\t$cadenaSql .= \" iva='\" . $variable [5] . \"', \";\n\t\t\t\t$cadenaSql .= \" ajuste='\" . $variable [6] . \"', \";\n\t\t\t\t$cadenaSql .= \" bodega='\" . $variable [7] . \"', \";\n\t\t\t\t$cadenaSql .= \" subtotal_sin_iva='\" . $variable [8] . \"', \";\n\t\t\t\t$cadenaSql .= \" total_iva='\" . $variable [9] . \"', \";\n\t\t\t\t$cadenaSql .= \" total_iva_con='\" . $variable [10] . \"', \";\n\t\t\t\t$cadenaSql .= \" marca='\" . $variable [11] . \"', \";\n\t\t\t\t$cadenaSql .= \" serie='\" . $variable [12] . \"', \";\n\t\t\t\t$cadenaSql .= \" nivel='\" . $variable [14] . \"', \";\n\t\t\t\t$cadenaSql .= \" cantidad_por_asignar='\" . $variable [2] . \"' \";\n\t\t\t\t$cadenaSql .= \" WHERE id_elemento='\" . $variable [13] . \"';\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"actualizar_elemento_tipo_2\" :\n\t\t\t\t\n\t\t\t\t$cadenaSql = \" UPDATE \";\n\t\t\t\t$cadenaSql .= \" elemento \";\n\t\t\t\t$cadenaSql .= \" SET \";\n\t\t\t\t$cadenaSql .= \" tipo_bien='\" . $variable [0] . \"', \";\n\t\t\t\t$cadenaSql .= \" descripcion='\" . $variable [1] . \"', \";\n\t\t\t\t$cadenaSql .= \" cantidad='\" . $variable [2] . \"', \";\n\t\t\t\t$cadenaSql .= \" unidad='\" . $variable [3] . \"', \";\n\t\t\t\t$cadenaSql .= \" valor='\" . $variable [4] . \"', \";\n\t\t\t\t$cadenaSql .= \" iva='\" . $variable [5] . \"', \";\n\t\t\t\t$cadenaSql .= \" ajuste='\" . $variable [6] . \"', \";\n\t\t\t\t$cadenaSql .= \" bodega='\" . $variable [7] . \"', \";\n\t\t\t\t$cadenaSql .= \" subtotal_sin_iva='\" . $variable [8] . \"', \";\n\t\t\t\t$cadenaSql .= \" total_iva='\" . $variable [9] . \"', \";\n\t\t\t\t$cadenaSql .= \" total_iva_con='\" . $variable [10] . \"', \";\n\t\t\t\t$cadenaSql .= \" tipo_poliza='\" . $variable [11] . \"', \";\n\t\t\t\t$cadenaSql .= \" fecha_inicio_pol='\" . $variable [12] . \"', \";\n\t\t\t\t$cadenaSql .= \" fecha_final_pol='\" . $variable [13] . \"', \";\n\t\t\t\t$cadenaSql .= \" marca='\" . $variable [14] . \"', \";\n\t\t\t\t$cadenaSql .= \" serie='\" . $variable [15] . \"', \";\n\t\t\t\t$cadenaSql .= \" nivel='\" . $variable [17] . \"', \";\n\t\t\t\t$cadenaSql .= \" cantidad_por_asignar='\" . $variable [2] . \"' \";\n\t\t\t\t$cadenaSql .= \" WHERE id_elemento='\" . $variable [16] . \"';\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"inhabilitar_elementos_individuales\" :\n\t\t\t\t$cadenaSql = \" UPDATE elemento_individual \";\n\t\t\t\t$cadenaSql .= \" SET estado_registro='FALSE' \";\n\t\t\t\t$cadenaSql .= \" WHERE id_elemento_ind='\" . $variable . \"' \";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"consultar_elementos_individuales_sin_placa\" :\n\t\t\t\t$cadenaSql = \" SELECT * \";\n\t\t\t\t$cadenaSql .= \" FROM elemento_individual \";\n\t\t\t\t$cadenaSql .= \" WHERE id_elemento_gen='\" . $variable . \"' \";\n\t\t\t\t$cadenaSql .= \"AND placa IS NULL ;\";\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"consultar_elementos_individuales\" :\n\t\t\t\t$cadenaSql = \" SELECT * \";\n\t\t\t\t$cadenaSql .= \" FROM elemento_individual \";\n\t\t\t\t$cadenaSql .= \" WHERE id_elemento_gen='\" . $variable . \"' \";\n\t\t\t\t$cadenaSql .= \"AND placa IS NOT NULL ;\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"estado_elemento_individual\" :\n\t\t\t\t\n\t\t\t\t$cadenaSql = \" UPDATE \";\n\t\t\t\t$cadenaSql .= \" elemento_individual \";\n\t\t\t\t$cadenaSql .= \" SET \";\n\t\t\t\t$cadenaSql .= \" estado_registro='FALSE' \";\n\t\t\t\t$cadenaSql .= \" WHERE id_elemento='\" . $variable . \"';\";\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"estado_elemento\" :\n\t\t\t\t\n\t\t\t\t$cadenaSql = \" UPDATE \";\n\t\t\t\t$cadenaSql .= \" elemento\";\n\t\t\t\t$cadenaSql .= \" SET \";\n\t\t\t\t$cadenaSql .= \" estado='FALSE' \";\n\t\t\t\t$cadenaSql .= \" WHERE id_elemento='\" . $variable . \"';\";\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"anular_elemento\" :\n\t\t\t\t$cadenaSql = \" INSERT INTO \";\n\t\t\t\t$cadenaSql .= \" elemento_anulado(\";\n\t\t\t\t$cadenaSql .= \"id_elemento,observacion) \";\n\t\t\t\t$cadenaSql .= \" VALUES (\";\n\t\t\t\t$cadenaSql .= \"'\" . $variable [0] . \"',\";\n\t\t\t\t$cadenaSql .= \"'\" . $variable [1] . \"') ;\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t// _________________________________________________\n\t\t\t\n\t\t\tcase \"consultarSolicitante\" :\n\t\t\t\t$cadenaSql = \" SELECT \";\n\t\t\t\t$cadenaSql .= \"dependencia, rubro \";\n\t\t\t\t$cadenaSql .= \" FROM solicitante_servicios \";\n\t\t\t\t$cadenaSql .= \" WHERE id_solicitante='\" . $variable . \"'\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"consultarEncargado\" :\n\t\t\t\t$cadenaSql = \" SELECT \";\n\t\t\t\t$cadenaSql .= \" id_tipo_encargado, nombre, identificacion, cargo,asignacion \";\n\t\t\t\t$cadenaSql .= \" FROM encargado \";\n\t\t\t\t$cadenaSql .= \" WHERE id_encargado='\" . $variable . \"'\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t// _________________________________________________update___________________________________________\n\t\t\t\n\t\t\tcase \"actualizarSolicitante\" :\n\t\t\t\t\n\t\t\t\t$cadenaSql = \" UPDATE \";\n\t\t\t\t$cadenaSql .= \" solicitante_servicios\";\n\t\t\t\t$cadenaSql .= \" SET \";\n\t\t\t\t$cadenaSql .= \" dependencia='\" . $variable [0] . \"',\";\n\t\t\t\t$cadenaSql .= \" rubro='\" . $variable [1] . \"' \";\n\t\t\t\t$cadenaSql .= \" WHERE id_solicitante='\" . $variable [2] . \"';\";\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"actualizarSupervisor\" :\n\t\t\t\t$cadenaSql = \" UPDATE supervisor_servicios \";\n\t\t\t\t$cadenaSql .= \" SET nombre='\" . $variable [0] . \"', \";\n\t\t\t\t$cadenaSql .= \" cargo='\" . $variable [1] . \"', \";\n\t\t\t\t$cadenaSql .= \" dependencia='\" . $variable [2] . \"' \";\n\t\t\t\t$cadenaSql .= \" WHERE id_supervisor='\" . $variable [3] . \"';\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"actualizarContratista\" :\n\t\t\t\t$cadenaSql = \" UPDATE contratista_servicios \";\n\t\t\t\t$cadenaSql .= \" SET nombre_razon_social='\" . $variable [0] . \"', \";\n\t\t\t\t$cadenaSql .= \" identificacion='\" . $variable [1] . \"', \";\n\t\t\t\t$cadenaSql .= \" direccion='\" . $variable [2] . \"', \";\n\t\t\t\t$cadenaSql .= \" telefono='\" . $variable [3] . \"', \";\n\t\t\t\t$cadenaSql .= \" cargo='\" . $variable [4] . \"' \";\n\t\t\t\t$cadenaSql .= \" WHERE id_contratista='\" . $variable [5] . \"';\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"actualizarEncargado\" :\n\t\t\t\t$cadenaSql = \" UPDATE encargado \";\n\t\t\t\t$cadenaSql .= \" SET id_tipo_encargado='\" . $variable [0] . \"', \";\n\t\t\t\t$cadenaSql .= \" nombre='\" . $variable [1] . \"', \";\n\t\t\t\t$cadenaSql .= \" identificacion='\" . $variable [2] . \"', \";\n\t\t\t\t$cadenaSql .= \" cargo='\" . $variable [3] . \"', \";\n\t\t\t\t$cadenaSql .= \" asignacion='\" . $variable [4] . \"' \";\n\t\t\t\t$cadenaSql .= \" WHERE id_encargado='\" . $variable [5] . \"';\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"actualizarOrden\" :\n\t\t\t\t$cadenaSql = \" UPDATE \";\n\t\t\t\t$cadenaSql .= \" orden_servicio \";\n\t\t\t\t$cadenaSql .= \" SET \";\n\t\t\t\t$cadenaSql .= \" objeto_contrato='\" . $variable [0] . \"', \";\n\t\t\t\tif ($variable [1] != '') {\n\t\t\t\t\t$cadenaSql .= \" poliza1='\" . $variable [1] . \"', \";\n\t\t\t\t} else {\n\t\t\t\t\t$cadenaSql .= \" poliza1='0', \";\n\t\t\t\t}\n\t\t\t\tif ($variable [2] != '') {\n\t\t\t\t\t$cadenaSql .= \" poliza2='\" . $variable [2] . \"', \";\n\t\t\t\t} else {\n\t\t\t\t\t$cadenaSql .= \" poliza2='0', \";\n\t\t\t\t}\n\t\t\t\tif ($variable [3] != '') {\n\t\t\t\t\t$cadenaSql .= \" poliza3='\" . $variable [3] . \"', \";\n\t\t\t\t} else {\n\t\t\t\t\t$cadenaSql .= \" poliza3='0', \";\n\t\t\t\t}\n\t\t\t\tif ($variable [4] != '') {\n\t\t\t\t\t$cadenaSql .= \" poliza4='\" . $variable [4] . \"', \";\n\t\t\t\t} else {\n\t\t\t\t\t$cadenaSql .= \" poliza4='0', \";\n\t\t\t\t}\n\t\t\t\t$cadenaSql .= \" duracion_pago='\" . $variable [5] . \"', \";\n\t\t\t\t$cadenaSql .= \" fecha_inicio_pago='\" . $variable [6] . \"', \";\n\t\t\t\t$cadenaSql .= \" fecha_final_pago='\" . $variable [7] . \"', \";\n\t\t\t\t$cadenaSql .= \" forma_pago='\" . $variable [8] . \"', \";\n\t\t\t\t$cadenaSql .= \" total_preliminar='\" . $variable [9] . \"', \";\n\t\t\t\t$cadenaSql .= \" iva='\" . $variable [10] . \"', \";\n\t\t\t\t$cadenaSql .= \" total='\" . $variable [11] . \"', \";\n\t\t\t\t$cadenaSql .= \" fecha_diponibilidad='\" . $variable [12] . \"', \";\n\t\t\t\t$cadenaSql .= \" numero_disponibilidad='\" . $variable [13] . \"', \";\n\t\t\t\t$cadenaSql .= \" valor_disponibilidad='\" . $variable [14] . \"', \";\n\t\t\t\t$cadenaSql .= \" fecha_registrop='\" . $variable [15] . \"', \";\n\t\t\t\t$cadenaSql .= \" numero_registrop='\" . $variable [16] . \"', \";\n\t\t\t\t$cadenaSql .= \" valor_registrop='\" . $variable [17] . \"', \";\n\t\t\t\t$cadenaSql .= \" letra_registrop='\" . $variable [18] . \"' \";\n\t\t\t\t$cadenaSql .= \" WHERE id_orden_servicio='\" . $variable [19] . \"';\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"limpiarItems\" :\n\t\t\t\t$cadenaSql = \" DELETE FROM \";\n\t\t\t\t$cadenaSql .= \" items_orden_compra \";\n\t\t\t\t$cadenaSql .= \" WHERE id_orden='\" . $variable . \"';\";\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"insertarItems\" :\n\t\t\t\t$cadenaSql = \" INSERT INTO \";\n\t\t\t\t$cadenaSql .= \" items_orden_compra(\";\n\t\t\t\t$cadenaSql .= \" id_orden, item, unidad_medida, cantidad, descripcion, \";\n\t\t\t\t$cadenaSql .= \" valor_unitario, valor_total)\";\n\t\t\t\t$cadenaSql .= \" VALUES (\";\n\t\t\t\t$cadenaSql .= \"'\" . $variable [0] . \"',\";\n\t\t\t\t$cadenaSql .= \"'\" . $variable [1] . \"',\";\n\t\t\t\t$cadenaSql .= \"'\" . $variable [2] . \"',\";\n\t\t\t\t$cadenaSql .= \"'\" . $variable [3] . \"',\";\n\t\t\t\t$cadenaSql .= \"'\" . $variable [4] . \"',\";\n\t\t\t\t$cadenaSql .= \"'\" . $variable [5] . \"',\";\n\t\t\t\t$cadenaSql .= \"'\" . $variable [6] . \"');\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t// listo\n\t\t\tcase \"consultarOrden\" :\n\t\t\t\t\n\t\t\t\t$cadenaSql = \"SELECT DISTINCT \";\n\t\t\t\t$cadenaSql .= \"id_orden_servicio, fecha_registro, \";\n\t\t\t\t$cadenaSql .= \"identificacion, dependencia \";\n\t\t\t\t$cadenaSql .= \"FROM orden_servicio \";\n\t\t\t\t$cadenaSql .= \"JOIN solicitante_servicios ON solicitante_servicios.id_solicitante = orden_servicio.id_solicitante \";\n\t\t\t\t$cadenaSql .= \"JOIN contratista_servicios ON contratista_servicios.id_contratista = orden_servicio.id_contratista \";\n\t\t\t\t$cadenaSql .= \"WHERE 1=1\";\n\t\t\t\tif ($variable [0] != '') {\n\t\t\t\t\t$cadenaSql .= \" AND fecha_registro BETWEEN CAST ( '\" . $variable [0] . \"' AS DATE) \";\n\t\t\t\t\t$cadenaSql .= \" AND CAST ( '\" . $variable [1] . \"' AS DATE) \";\n\t\t\t\t}\n\t\t\t\tif ($variable [2] != '') {\n\t\t\t\t\t$cadenaSql .= \" AND id_orden_servicio = '\" . $variable [2] . \"'\";\n\t\t\t\t}\n\t\t\t\tif ($variable [3] != '') {\n\t\t\t\t\t$cadenaSql .= \" AND identificacion= '\" . $variable [3] . \"'\";\n\t\t\t\t}\n\t\t\t\tif ($variable [4] != '') {\n\t\t\t\t\t$cadenaSql .= \" AND dependencia= '\" . $variable [4] . \"'\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"consultar_nivel_inventario\" :\n\t\t\t\t\n\t\t\t\t$cadenaSql = \"SELECT ce.elemento_id, ce.elemento_codigo||' - '||ce.elemento_nombre \";\n\t\t\t\t$cadenaSql .= \"FROM catalogo.catalogo_elemento ce \";\n\t\t\t\t$cadenaSql .= \"JOIN catalogo.catalogo_lista cl ON cl.lista_id = ce.elemento_catalogo \";\n\t\t\t\t$cadenaSql .= \"WHERE cl.lista_activo = 1 \";\n\t\t\t\t$cadenaSql .= \"AND ce.elemento_id > 0 \";\n\t\t\t\t$cadenaSql .= \"AND ce.elemento_padre > 0 \";\n\t\t\t\t$cadenaSql .= \"ORDER BY ce.elemento_codigo ASC ;\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"ConsultaTipoBien\" :\n\t\t\t\t$cadenaSql = \"SELECT ge.elemento_tipobien , tb.descripcion \";\n\t\t\t\t$cadenaSql .= \"FROM catalogo.catalogo_elemento ce \";\n\t\t\t\t$cadenaSql .= \"JOIN grupo.catalogo_elemento ge ON (ge.elemento_id)::text =ce .elemento_grupoc \";\n\t\t\t\t$cadenaSql .= \"JOIN arka_inventarios.tipo_bienes tb ON tb.id_tipo_bienes = ge.elemento_tipobien \";\n\t\t\t\t$cadenaSql .= \"WHERE ce.elemento_id = '\" . $variable . \"';\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'consultarExistenciaImagen' :\n\t\t\t\t\n\t\t\t\t$cadenaSql = \"SELECT num_registro \";\n\t\t\t\t$cadenaSql .= \"FROM arka_movil.asignar_imagen \";\n\t\t\t\t$cadenaSql .= \"WHERE id_elemento ='\" . $variable . \"';\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"RegistrarElementoImagen\" :\n\t\t\t\t\n\t\t\t\t$cadenaSql = \" \tINSERT INTO arka_movil.asignar_imagen(\";\n\t\t\t\t$cadenaSql .= \" id_elemento, imagen ,prioridad) \";\n\t\t\t\t$cadenaSql .= \" VALUES (\";\n\t\t\t\t$cadenaSql .= \"'\" . $variable ['elemento'] . \"',\";\n\t\t\t\t$cadenaSql .= \"'\" . $variable ['imagen'] . \"',\";\n\t\t\t\t$cadenaSql .= \"1) \";\n\t\t\t\t$cadenaSql .= \"RETURNING num_registro; \";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase \"ActualizarElementoImagen\" :\n\t\t\t\t\n\t\t\t\t$cadenaSql = \" UPDATE arka_movil.asignar_imagen \";\n\t\t\t\t$cadenaSql .= \"SET id_elemento='\" . $variable ['elemento'] . \"', imagen='\" . $variable ['imagen'] . \"' \";\n\t\t\t\t$cadenaSql .= \"WHERE num_registro='\" . $variable ['id_imagen'] . \"';\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"ConsultasPlacas\" :\n\t\t\t\t$cadenaSql = \" SELECT DISTINCT placa AS value, placa as data \";\n\t\t\t\t$cadenaSql .= \"FROM elemento_individual \";\n\t\t\t\t$cadenaSql .= \"WHERE placa IS NOT NULL \";\n\t\t\t\t$cadenaSql .= \" AND placa LIKE '%\" . $variable . \"%' \";\n\t\t\t\t$cadenaSql .= \"ORDER BY placa DESC ;\";\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"actualizar_cantidad_elemento\" :\n\t\t\t\t\n\t\t\t\t$cadenaSql = \" UPDATE \";\n\t\t\t\t$cadenaSql .= \" elemento \";\n\t\t\t\t$cadenaSql .= \" SET \";\n\t\t\t\t$cadenaSql .= \" cantidad_por_asignar='\".$variable['cantidad'].\"' \";\n\t\t\t\t$cadenaSql .= \" WHERE id_elemento='\" . $variable ['id_elemento'] . \"';\";\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t}\n\t\treturn $cadenaSql;\n\t}", "public function traerDatos(Sql $sql);", "function do_queryTodo($conn, $query)\n{\n//$xColabora=26; // Ejemplo de un colaborador : JOSE MARIA RODRIGUEZ MILLAN\n//$xFASE=$_POST[\"xFASE\"];\n$stid = oci_parse($conn, $query);\n//oci_bind_by_name($stid, ':xFASE', $xFASE, 4, SQLT_CHR);\n\n\n\n$r = oci_execute($stid, OCI_DEFAULT);\n\n\t$suma=\"\";\n\twhile ($row = oci_fetch_array($stid, OCI_ASSOC+OCI_RETURN_NULLS)) \n\t{\n\t\tforeach ($row as $key =>$field) \n\t\t\t{\n\t\t\t$field = htmlspecialchars($field, ENT_NOQUOTES);\n\t\t\t$suma=$suma.$field.'|';\n\t\t\t}\n\t}\necho $suma;\n}", "public function buildSqlString()\n {\n $param = array();\n\n $join = '';\n $filter = '';\n $order = '';\n $limit = '';\n\n // Create the fieldprefix. If given as alias use this, otherwise we use the tablename\n $field_prefifx = !empty($this->alias) ? $this->alias : '{db_prefix}' . $this->tbl;\n\n // Biuld joins\n if (!empty($this->join))\n {\n $tmp = array();\n\n foreach ( $this->join as $def )\n $tmp[] = ' ' . $def['by'] . ' JOIN ' . '{db_prefix}' . (isset($def['as']) ? $def['tbl'] . ' AS ' . $def['as'] : $def['join']) . ' ON (' . $def['cond'] . ')';\n }\n\n $join = isset($tmp) ? implode(' ', $tmp) : '';\n\n // Create fieldlist\n if (!empty($this->fields))\n {\n // Add `` to some field names as reaction to those stupid developers who chose systemnames as fieldnames\n foreach ( $this->fields as $key_field => $field )\n {\n if (in_array($field, array('date', 'time')))\n $field = '`' . $field . '`';\n\n // Extend fieldname either by table alias or name when no dot as alias/table indicator is found.\n #if (strpos($field, '.') === false)\n # $field .= (!empty($this->alias) ? $this->alias : $this->tbl) . '.' . $field;\n\n $this->fields[$key_field] = $field;\n }\n\n $fieldlist = implode(', ', $this->fields);\n } else\n {\n $fieldlist = '*';\n }\n\n // Create filterstatement\n $filter = !empty($this->filter) ? ' WHERE ' . $this->filter : null;\n\n // Create group by statement\n $group_by = !empty($this->group_by) ? ' GROUP BY ' . $this->group_by : null;\n\n // Create having statement\n $having = !empty($this->having) ? ' HAVING ' . $this->having : null;\n\n // Create order statement\n $order = !empty($this->order) ? ' ORDER BY ' . $this->order : null;\n\n // Create limit statement\n if (!empty($this->limit))\n {\n $limit = ' LIMIT ';\n\n if (isset($this->limit['lower']))\n $limit .= $this->limit['lower'];\n\n if (isset($this->limit['lower']) && isset($this->limit['upper']))\n $limit .= ',' . $this->limit['upper'];\n }\n\n // We need a string for the table. if there is an alias, we have to set it\n $tbl = !empty($this->alias) ? $this->tbl . ' AS ' . $this->alias : $this->tbl;\n\n // Is this an distinct query?\n $distinct = $this->distinct ? 'DISTINCT ' : '';\n\n // Create sql statement by joining all parts from above\n $this->sql = 'SELECT ' . $distinct . $fieldlist . ' FROM {db_prefix}' . $tbl . $join . $filter . $group_by . $having . $order . $limit;\n\n return $this->sql;\n }", "public function createQuery(): string\n {\n return 'INSERT INTO products(name,quantity,price,msrp) \n VALUES(:name,:quantity,:price,:msrp)';\n }", "function quote($s) { \n return \"'\".str_replace('\\\\\"', '\"', addslashes($s)).\"'\"; \n }", "function prepare_insert($data = []){\n // if there is no data to set, then return an empty string\n if($data == []){\n return '';\n }\n $set_sql = $this->create_set($data);\n // check again to make sure there were proper columns listed in the SET\n if(strlen($set_sql) == 0){\n return '';\n }\n $return_string = \"INSERT INTO {$this->table_name} $set_sql;\";\n return $return_string;\n }", "public static function quote($n) {\n return \"'\" . DbSqlController::EscapeString($n) . \"'\";\n }", "function limpiar($value){\r\n\t\t$value=str_replace(\"'\",\"\",$value);\r\n\t\t$value=str_replace(\";\",\"\",$value);\r\n\t\t$value=str_replace(\"&\",\"\",$value);\r\n\t\t$value=str_replace(\"SELECT\",\"\",$value);\r\n\t\t$value=str_replace(\"DELETE\",\"\",$value);\r\n\t\t$value=str_replace(\"UPDATE\",\"\",$value);\r\n\t\t$value=str_replace(\"INSERT\",\"\",$value);\r\n\t\t$value=str_replace(\"DROP\",\"\",$value);\r\n\t\t\r\n\t\t\r\n\t\t$value = trim(htmlentities($value)); // Evita introducción código HTML\r\n\t\t\r\n\t\tif (get_magic_quotes_gpc()) {\t// quita los caracteres escapados\r\n\t\t\t$value = stripslashes($value);\r\n\t\t}\r\n\t\treturn $value;\r\n\t}", "function fetch($table, $campos=\"*\", $where=\"\", $order=\"\", $tipo=\"\", $limite=\"\"){\n\n\t\t$sql = \"SELECT DISTINCT \";\n\n\t\tif(is_array($campos)){\n\n\t\t\tforeach ($campos as $value){\n\t\t\t\t$sql .= \"'$value' ,\";\n\t\t\t}\n\n\t\t\t$strCut = strlen($sql) -1;\n\t\t\t$sql = substr($sql,0,$strCut);\n\n\t\t}else{\n\n\t\t\t$sql .= \" $campos \";\n\n\t\t}\n\n\t\tif ( strstr($table, \"|\") ) {\n\n\t\t\t$fromTable = substr($table,0,strpos($table,\"|\"));\n\n\t\t\t$leftJoin = substr($table,strpos($table,\"|\"),strlen($table));\n\n\t\t\t$leftJoin = explode(\"|\",$leftJoin);\n\n\t\t\t$sql .= \" FROM \".$fromTable;\n\n\t\t\tforeach ($leftJoin as $ex){\n\n\t\t\t\t$leftEx = explode(\">\", $ex );\n\n\t\t\t\t@list($left_table, $on_condition) = $leftEx;\n\n\t\t\t\tif(!empty($left_table)){\n\t\t\t\t\t$sql .= \" LEFT JOIN \" . $left_table;\n\t\t\t\t}\n\t\t\t\tif(!empty($on_condition)){\n\t\t\t\t\t$sql .= \" ON \" . $on_condition;\n\t\t\t\t}\n\n\n\t\t\t}\n\n\t\t}else{\n\n\t\t\t$sql .= \" FROM $table \";\n\n\t\t}\n\n\n\t\tif(!empty($where)) $sql .= \" WHERE \";\n\n\n\t\tif(is_array($where)){\n\n\t\t\tforeach ($where as $key => $value){\n\n\t\t\t\tif( strstr($value,\"!\") ){\n\t\t\t\t\t\t$value = substr($value, 1);\n\t\t\t\t\t\tif (strtolower($value) == \"empty\"){\n\t\t\t\t\t\t\t\t$sql .= \" $key <> '' OR $key <> 0 OR $key <> NULL AND\";\n\t\t\t\t\t\t}else if(is_int($value)){\n\t\t\t\t\t\t\t\t$sql .= \" $key <> $value OR $key <> 0 OR $key <> NULL AND\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$sql .= \" $key <> '$value' OR $key <> 0 OR $key <> NULL AND\";\n\t\t\t\t\t\t}\n\n\t\t\t\t}elseif( strstr($value,\"!<\") ){\n\t\t\t\t\t\t$value = substr($value, 2);\n\t\t\t\t\t\tif (strtolower($value) == \"empty\"){\n\t\t\t\t\t\t\t\t$sql .= \" $key <= '' AND\";\n\t\t\t\t\t\t}else if(is_int($value)){\n\t\t\t\t\t\t\t\t$sql .= \" $key <= $value AND\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$sql .= \" $key <= '$value' AND\";\n\t\t\t\t\t\t}\n\n\t\t\t\t}elseif( strstr($value,\"!>\") ){\n\t\t\t\t\t\t$value = substr($value, 2);\n\t\t\t\t\t\tif (strtolower($value) == \"empty\"){\n\t\t\t\t\t\t\t\t$sql .= \" $key >= '' AND\";\n\t\t\t\t\t\t}else if(is_int($value)){\n\t\t\t\t\t\t\t\t$sql .= \" $key >= $value AND\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$sql .= \" $key >= '$value' AND\";\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif(is_int($value)){\n\t\t\t\t\t\t$sql .= \" $key LIKE $value AND\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t$sql .= \" $key LIKE '$value' AND\";\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$strCut = strlen($sql)-3;\n\t\t\t$sql = substr($sql,0,$strCut);\n\n\t\t}else{\n\n\t\t\t$sql .= \" $where \";\n\n\t\t}\n\n\t\t//envia sql para total rows\n\t\t$this->sql = $sql;\n\n\t\tif(!empty($order)) $sql .= \" ORDER BY \";\n\n\n\t\tif(is_array($order)){\n\n\t\t\tforeach ($order as $value){\n\t\t\t\t$sql .= \"$value ,\";\n\t\t\t}\n\n\t\t\t$strCut = strlen($sql)-1;\n\t\t\t$sql = substr($sql,0,$strCut);\n\n\t\t}else{\n\n\t\t\t$sql .= \" $order \";\n\n\t\t}\n\n\t\tif(!empty($tipo)) $sql .= \" $tipo \";\n\n\t\tif(!empty($limite)) $sql .= \" LIMIT $limite \";\n\n\t\t$qr = mysql_query($sql) or die($sql . \" <hr> \" . mysql_error());\n\t\t$rows = mysql_num_rows($qr);\n\n\t if($rows){\n\n\t\t\twhile ($rs = mysql_fetch_array($qr) ) {\n\n\t\t\t\t$exFetch[] = $rs;\n\n\t\t\t}\n\n\t\t}else{\n\n\t\t\t\t$exFetch = false;\n\t\t}\n\n\t\treturn $exFetch;\n\n\t}", "function str()\n\t{\n return\n \"SELECT $this->select\" .\n \" FROM $this->from \" .\n \" WHERE $this->where \" .\n ($this->group_by ? \" GROUP BY $this->group_by\": '') .\n ($this->having ? \" HAVING $this->having\" : '') .\n ($this->order_by ? \" ORDER BY $this->order_by\": '') .\n ($this->limit ? \" LIMIT $this->limit\": '');\t\t\t\n }", "final protected function getSqlRow() {\n\t\t$myArray = array ();\n\t\tforeach ( $this as $key => $value ) {\n\t\t\t$value = addslashes ( $value );\n\t\t\t$myArray [\"$key\"] = \"$value\";\n\t\t}\n\t\treturn $myArray;\n\t}", "function getCadenaSql($tipo, $variable = \"\") {\n $prefijo = $this->miConfigurador->getVariableConfiguracion(\"prefijo\");\n $idSesion = $this->miConfigurador->getVariableConfiguracion(\"id_sesion\");\n\n switch ($tipo) {\n\n /**\n * Clausulas específicas\n */\n case \"buscarUsuario\" :\n $cadenaSql = \"SELECT \";\n $cadenaSql .= \"FECHA_CREACION, \";\n $cadenaSql .= \"PRIMER_NOMBRE \";\n $cadenaSql .= \"FROM \";\n $cadenaSql .= \"USUARIOS \";\n $cadenaSql .= \"WHERE \";\n $cadenaSql .= \"`PRIMER_NOMBRE` ='\" . $variable . \"' \";\n break;\n\n case \"insertarRegistro\" :\n $cadenaSql = \"INSERT INTO \";\n $cadenaSql .= $prefijo . \"registradoConferencia \";\n $cadenaSql .= \"( \";\n $cadenaSql .= \"`idRegistrado`, \";\n $cadenaSql .= \"`nombre`, \";\n $cadenaSql .= \"`apellido`, \";\n $cadenaSql .= \"`identificacion`, \";\n $cadenaSql .= \"`codigo`, \";\n $cadenaSql .= \"`correo`, \";\n $cadenaSql .= \"`tipo`, \";\n $cadenaSql .= \"`fecha` \";\n $cadenaSql .= \") \";\n $cadenaSql .= \"VALUES \";\n $cadenaSql .= \"( \";\n $cadenaSql .= \"NULL, \";\n $cadenaSql .= \"'\" . $variable ['nombre'] . \"', \";\n $cadenaSql .= \"'\" . $variable ['apellido'] . \"', \";\n $cadenaSql .= \"'\" . $variable ['identificacion'] . \"', \";\n $cadenaSql .= \"'\" . $variable ['codigo'] . \"', \";\n $cadenaSql .= \"'\" . $variable ['correo'] . \"', \";\n $cadenaSql .= \"'0', \";\n $cadenaSql .= \"'\" . time() . \"' \";\n $cadenaSql .= \")\";\n break;\n\n case \"actualizarRegistro\" :\n $cadenaSql = \"UPDATE \";\n $cadenaSql .= $prefijo . \"conductor \";\n $cadenaSql .= \"SET \";\n $cadenaSql .= \"`nombre` = '\" . $variable [\"nombre\"] . \"', \";\n $cadenaSql .= \"`apellido` = '\" . $variable [\"apellido\"] . \"', \";\n $cadenaSql .= \"`identificacion` = '\" . $variable [\"identificacion\"] . \"', \";\n $cadenaSql .= \"`telefono` = '\" . $variable [\"telefono\"] . \"' \";\n $cadenaSql .= \"WHERE \";\n $cadenaSql .= \"`idConductor` =\" . $_REQUEST [\"registro\"] . \" \";\n break;\n\n /**\n * Clausulas genéricas.\n * se espera que estén en todos los formularios\n * que utilicen esta plantilla\n */\n case \"iniciarTransaccion\" :\n $cadenaSql = \"START TRANSACTION\";\n break;\n\n case \"finalizarTransaccion\" :\n $cadenaSql = \"COMMIT\";\n break;\n\n case \"cancelarTransaccion\" :\n $cadenaSql = \"ROLLBACK\";\n break;\n\n case \"eliminarTemp\" :\n\n $cadenaSql = \"DELETE \";\n $cadenaSql .= \"FROM \";\n $cadenaSql .= $prefijo . \"tempFormulario \";\n $cadenaSql .= \"WHERE \";\n $cadenaSql .= \"id_sesion = '\" . $variable . \"' \";\n break;\n\n case \"insertarTemp\" :\n $cadenaSql = \"INSERT INTO \";\n $cadenaSql .= $prefijo . \"tempFormulario \";\n $cadenaSql .= \"( \";\n $cadenaSql .= \"id_sesion, \";\n $cadenaSql .= \"formulario, \";\n $cadenaSql .= \"campo, \";\n $cadenaSql .= \"valor, \";\n $cadenaSql .= \"fecha \";\n $cadenaSql .= \") \";\n $cadenaSql .= \"VALUES \";\n\n foreach ($_REQUEST as $clave => $valor) {\n $cadenaSql .= \"( \";\n $cadenaSql .= \"'\" . $idSesion . \"', \";\n $cadenaSql .= \"'\" . $variable ['formulario'] . \"', \";\n $cadenaSql .= \"'\" . $clave . \"', \";\n $cadenaSql .= \"'\" . $valor . \"', \";\n $cadenaSql .= \"'\" . $variable ['fecha'] . \"' \";\n $cadenaSql .= \"),\";\n }\n\n $cadenaSql = substr($cadenaSql, 0, (strlen($cadenaSql) - 1));\n break;\n\n case \"rescatarTemp\" :\n $cadenaSql = \"SELECT \";\n $cadenaSql .= \"id_sesion, \";\n $cadenaSql .= \"formulario, \";\n $cadenaSql .= \"campo, \";\n $cadenaSql .= \"valor, \";\n $cadenaSql .= \"fecha \";\n $cadenaSql .= \"FROM \";\n $cadenaSql .= $prefijo . \"tempFormulario \";\n $cadenaSql .= \"WHERE \";\n $cadenaSql .= \"id_sesion='\" . $idSesion . \"'\";\n break;\n\n /**\n * Clausulas Del Caso Uso.\n */\n case \"buscar_Proveedores\" :\n $cadenaSql = \" SELECT \\\"PRO_NIT\\\"||' - ('||\\\"PRO_RAZON_SOCIAL\\\"||')' AS value,\\\"PRO_NIT\\\" AS data \";\n $cadenaSql .= \" FROM arka_parametros.arka_proveedor \";\n $cadenaSql .= \"WHERE cast(\\\"PRO_NIT\\\" as text) LIKE '%\" . $variable . \"%' \";\n $cadenaSql .= \"OR \\\"PRO_RAZON_SOCIAL\\\" LIKE '%\" . $variable . \"%' LIMIT 10; \";\n\n break;\n\n case \"buscar_entradas\" :\n $cadenaSql = \"SELECT DISTINCT entrada.id_entrada, entrada.consecutivo||' - ('||entrada.vigencia||')' entradas \";\n $cadenaSql .= \"FROM entrada \";\n $cadenaSql .= \"WHERE cierre_contable ='f' \";\n $cadenaSql .= \"AND estado_entrada = 1 \";\n $cadenaSql .= \"AND estado_registro='t' \";\n $cadenaSql .= \"ORDER BY id_entrada DESC \";\n\n break;\n\n case \"consultarInfoClase\" :\n $cadenaSql = \" SELECT observacion, id_entrada, id_salida, id_hurto,\";\n $cadenaSql .= \" num_placa, val_sobrante, ruta_archivo, nombre_archivo \";\n $cadenaSql .= \" FROM info_clase_entrada \";\n $cadenaSql .= \" WHERE id_info_clase='\" . $variable . \"';\";\n\n break;\n\n case \"proveedores\" :\n $cadenaSql = \" SELECT \\\"PRO_NIT\\\",\\\"PRO_NIT\\\"||' - '||\\\"PRO_RAZON_SOCIAL\\\" AS proveedor \";\n $cadenaSql .= \" FROM arka_parametros.arka_proveedor \";\n\n break;\n case \"tipo_contrato_avance\" :\n\n $cadenaSql = \"SELECT id_tipo, descripcion \";\n $cadenaSql .= \"FROM arka_inventarios.tipo_contrato \";\n $cadenaSql .= \"WHERE id_tipo<>1;\";\n\n break;\n\n case \"clase_entrada\" :\n\n $cadenaSql = \"SELECT \";\n $cadenaSql .= \"id_clase, descripcion \";\n $cadenaSql .= \"FROM clase_entrada \";\n $cadenaSql .= \"WHERE id_clase > 1 \";\n $cadenaSql .= \"ORDER BY descripcion ASC ;\";\n\n break;\n\n case \"clase_entrada_consulta\" :\n\n $cadenaSql = \"SELECT \";\n $cadenaSql .= \"id_clase, descripcion \";\n $cadenaSql .= \"FROM clase_entrada \";\n// \t\t\t\t$cadenaSql .= \"WHERE id_clase > 1 \";\n $cadenaSql .= \"ORDER BY descripcion ASC ;\";\n\n break;\n\n case \"tipo_contrato\" :\n\n $cadenaSql = \"SELECT \";\n $cadenaSql .= \"id_tipo, descripcion \";\n $cadenaSql .= \"FROM tipo_contrato \";\n $cadenaSql .= \"WHERE id_tipo > 0;\";\n\n break;\n\n case \"consultarEntrada\" :\n $cadenaSql = \"SELECT DISTINCT \";\n $cadenaSql .= \"entrada.id_entrada, entrada.fecha_registro, \";\n $cadenaSql .= \" descripcion,pr.\\\"PRO_NIT\\\" as nit ,consecutivo||' - ('||entrada.vigencia||')' consecutivo , cierre_contable, pr.\\\"PRO_RAZON_SOCIAL\\\" as razon_social \";\n $cadenaSql .= \"FROM entrada \";\n $cadenaSql .= \"JOIN clase_entrada ON clase_entrada.id_clase = entrada.clase_entrada \";\n $cadenaSql .= \"LEFT JOIN arka_parametros.arka_proveedor pr ON pr.\\\"PRO_NIT\\\" = CAST(entrada.proveedor AS CHAR(50)) \";\n $cadenaSql .= \"WHERE 1=1 \";\n $cadenaSql .= \"AND entrada.cierre_contable='f' \";\n $cadenaSql .= \"AND entrada.estado_entrada = 1 \";\n $cadenaSql .= \"AND entrada.estado_registro='t' \";\n\n if ($variable [0] != '') {\n $cadenaSql .= \" AND entrada.id_entrada = '\" . $variable [0] . \"'\";\n }\n\n if ($variable [1] != '') {\n $cadenaSql .= \" AND entrada.fecha_registro BETWEEN CAST ( '\" . $variable [1] . \"' AS DATE) \";\n $cadenaSql .= \" AND CAST ( '\" . $variable [2] . \"' AS DATE) \";\n }\n\n if ($variable [3] != '') {\n $cadenaSql .= \" AND clase_entrada = '\" . $variable [3] . \"'\";\n }\n if ($variable [4] != '') {\n $cadenaSql .= \" AND entrada.proveedor = '\" . $variable [4] . \"'\";\n }\n\n break;\n\n // SELECT id_entrada, fecha_registro, consecutivo, vigencia, clase_entrada,\n // info_clase, tipo_contrato, numero_contrato, fecha_contrato, proveedor,\n // numero_factura, fecha_factura, observaciones, acta_recibido,\n // ordenador, sede, dependencia, supervisor, estado_entrada, estado_registro\n // FROM entrada;\n\n case \"consultarEntradaParticular\" :\n\n $cadenaSql = \"SELECT DISTINCT \";\n $cadenaSql .= \" vigencia, clase_entrada, info_clase , \";\n $cadenaSql .= \"\ttipo_contrato, numero_contrato, fecha_contrato, proveedor,\";\n $cadenaSql .= \"numero_factura, fecha_factura, observaciones, acta_recibido , ordenador, sede, dependencia, supervisor ,tipo_ordenador, identificacion_ordenador,\n\t\t\t\t\t\t \\\"PRO_NIT\\\"||' - ('||\\\"PRO_RAZON_SOCIAL\\\"||')' AS nom_razon \";\n $cadenaSql .= \"FROM entrada \";\n $cadenaSql .= \"LEFT JOIN arka_parametros.arka_proveedor ap ON ap.\\\"PRO_NIT\\\"=CAST(entrada.proveedor AS CHAR(50))\";\n $cadenaSql .= \"WHERE id_entrada='\" . $variable . \"';\";\n\n break;\n\n case \"actasRecicbido\" :\n $cadenaSql = \" SELECT id_actarecibido, id_actarecibido \";\n $cadenaSql .= \"FROM registro_actarecibido \";\n\n break;\n\n case \"sede\" :\n $cadenaSql = \"SELECT DISTINCT \\\"ESF_ID_SEDE\\\", \\\"ESF_SEDE\\\" \";\n $cadenaSql .= \" FROM arka_parametros.arka_sedes \";\n $cadenaSql .= \" WHERE \\\"ESF_ESTADO\\\"='A' \";\n $cadenaSql .= \" AND \\\"ESF_COD_SEDE\\\" > 0 \";\n\n break;\n case \"informacion_ordenador2\" :\n $cadenaSql = \" SELECT \\\"ORG_NOMBRE\\\",\\\"ORG_IDENTIFICACION\\\",\\\"ORG_TIPO_ORDENADOR\\\",\\\"ORG_IDENTIFICACION\\\" as identificacion \";\n $cadenaSql .= \" FROM arka_parametros.arka_ordenadores \";\n $cadenaSql .= \" WHERE \\\"ORG_IDENTIFICACION\\\"='\" . $variable [0] . \"' \";\n $cadenaSql .= \" AND \\\"ORG_TIPO_ORDENADOR\\\"='\" . $variable [1] . \"' \";\n\n break;\n\n case \"tipoComprador\" :\n\n $cadenaSql = \" \tSELECT \\\"ORG_TIPO_ORDENADOR\\\", \\\"ORG_ORDENADOR_GASTO\\\" \";\n $cadenaSql .= \" FROM arka_parametros.arka_ordenadores \";\n $cadenaSql .= \" WHERE \\\"ORG_ESTADO\\\"='A' \";\n\n break;\n case \"OrdenadorGasto\" :\n $cadenaSql = \" SELECT DISTINCT \\\"ORG_IDENTIFICACION\\\" as ORG_IDENTIFICACION,\\\"ORG_NOMBRE\\\" as ORG_NOMBRE \";\n $cadenaSql .= \" FROM arka_parametros.arka_ordenadores \";\n\n break;\n\n case \"informacion_ordenadorConsultados\" :\n $cadenaSql = \" SELECT \\\"ORG_NOMBRE\\\",\\\"ORG_IDENTIFICACION\\\",\\\"ORG_TIPO_ORDENADOR\\\",\\\"ORG_IDENTIFICACION\\\" as identificacion \";\n $cadenaSql .= \" FROM arka_parametros.arka_ordenadores \";\n $cadenaSql .= \" WHERE \\\"ORG_IDENTIFICACION\\\"='\" . $variable . \"' \";\n $cadenaSql .= \" AND \\\"ORG_ESTADO\\\"='A' \";\n break;\n case \"informacion_ordenador\" :\n $cadenaSql = \" SELECT DISTINCT \\\"ORG_NOMBRE\\\" as ORG_NOMBRE,\\\"ORG_IDENTIFICACION\\\" as ORG_IDENTIFICACION \";\n $cadenaSql .= \" FROM arka_parametros.arka_ordenadores \";\n $cadenaSql .= \" WHERE \\\"ORG_TIPO_ORDENADOR\\\"='\" . $variable . \"' \";\n\n break;\n\n case \"dependencias\" :\n $cadenaSql = \"SELECT DISTINCT \\\"ESF_CODIGO_DEP\\\" , \\\"ESF_DEP_ENCARGADA\\\" \";\n $cadenaSql .= \" FROM arka_parametros.arka_dependencia ad \";\n $cadenaSql .= \" JOIN arka_parametros.arka_espaciosfisicos ef ON ef.\\\"ESF_ID_ESPACIO\\\"=ad.\\\"ESF_ID_ESPACIO\\\" \";\n $cadenaSql .= \" JOIN arka_parametros.arka_sedes sa ON sa.\\\"ESF_COD_SEDE\\\"=ef.\\\"ESF_COD_SEDE\\\" \";\n $cadenaSql .= \" WHERE ad.\\\"ESF_ESTADO\\\"='A'\";\n break;\n case \"consultarReposicion\" :\n\n $cadenaSql = \"SELECT \";\n $cadenaSql .= \" id_entrada, id_hurto, id_salida \";\n $cadenaSql .= \"FROM reposicion_entrada \";\n $cadenaSql .= \"WHERE id_reposicion='\" . $variable . \"';\";\n\n break;\n\n case \"consultarDonacion\" :\n\n $cadenaSql = \"SELECT \";\n $cadenaSql .= \" ruta_acto, nombre_acto \";\n $cadenaSql .= \"FROM donacion_entrada \";\n $cadenaSql .= \"WHERE id_donacion='\" . $variable . \"';\";\n\n break;\n\n case \"consultarSobrante\" :\n\n $cadenaSql = \"SELECT \";\n $cadenaSql .= \" observaciones, nombre_acta \";\n $cadenaSql .= \"FROM sobrante_entrada \";\n $cadenaSql .= \"WHERE id_sobrante='\" . $variable . \"';\";\n\n break;\n\n case \"consultarProduccion\" :\n\n $cadenaSql = \"SELECT \";\n $cadenaSql .= \" observaciones, nombre_acta \";\n $cadenaSql .= \"FROM produccion_entrada \";\n $cadenaSql .= \"WHERE id_produccion='\" . $variable . \"';\";\n\n break;\n\n case \"consultarRecuperacion\" :\n\n $cadenaSql = \"SELECT \";\n $cadenaSql .= \"observaciones, nombre_acta \";\n $cadenaSql .= \"FROM recuperacion_entrada \";\n $cadenaSql .= \"WHERE id_recuperacion='\" . $variable . \"';\";\n\n break;\n\n case \"ActualizarReposicion\" :\n $cadenaSql = \" UPDATE reposicion_entrada \";\n $cadenaSql .= \" SET id_entrada='\" . $variable [0] . \"', \";\n $cadenaSql .= \" id_hurto='\" . $variable [1] . \"', \";\n $cadenaSql .= \" id_salida='\" . $variable [2] . \"' \";\n $cadenaSql .= \" WHERE id_reposicion='\" . $variable [3] . \"' \";\n $cadenaSql .= \" RETURNING id_reposicion \";\n\n break;\n\n case \"actualizarDonacion\" :\n $cadenaSql = \" UPDATE donacion_entrada \";\n $cadenaSql .= \" SET ruta_acto='\" . $variable [0] . \"', \";\n $cadenaSql .= \" nombre_acto='\" . $variable [1] . \"' \";\n $cadenaSql .= \" WHERE id_donacion='\" . $variable [2] . \"' \";\n $cadenaSql .= \" RETURNING id_donacion \";\n\n break;\n\n case \"actualizarSobrante\" :\n $cadenaSql = \" UPDATE sobrante_entrada \";\n $cadenaSql .= \" SET observaciones='\" . $variable [2] . \"' \";\n if ($variable [0] == 1) {\n\n $cadenaSql .= \" , ruta_acta='\" . $variable [3] . \"' , \";\n $cadenaSql .= \" nombre_acta='\" . $variable [4] . \"' \";\n }\n $cadenaSql .= \" WHERE id_sobrante='\" . $variable [1] . \"' \";\n $cadenaSql .= \" RETURNING id_sobrante \";\n break;\n\n case \"actualizarProduccion\" :\n $cadenaSql = \" UPDATE produccion_entrada \";\n $cadenaSql .= \" SET observaciones='\" . $variable [2] . \"' \";\n if ($variable [0] == 1) {\n\n $cadenaSql .= \" , ruta_acta='\" . $variable [3] . \"' , \";\n $cadenaSql .= \" nombre_acta='\" . $variable [4] . \"' \";\n }\n $cadenaSql .= \" WHERE id_produccion='\" . $variable [1] . \"' \";\n $cadenaSql .= \" RETURNING id_produccion \";\n\n break;\n\n case \"actualizarRecuperacion\" :\n $cadenaSql = \" UPDATE recuperacion_entrada \";\n $cadenaSql .= \" SET observaciones='\" . $variable [2] . \"' \";\n if ($variable [0] == 1) {\n\n $cadenaSql .= \" , ruta_acta='\" . $variable [3] . \"' , \";\n $cadenaSql .= \" nombre_acta='\" . $variable [4] . \"' \";\n }\n $cadenaSql .= \" WHERE id_recuperacion='\" . $variable [1] . \"' \";\n $cadenaSql .= \" RETURNING id_recuperacion \";\n\n break;\n // UPDATE info_clase_entrada\n // SET id_info_clase=?, observacion=?, id_entrada=?, id_salida=?, id_hurto=?,\n // num_placa=?, val_sobrante=?, ruta_archivo=?, nombre_archivo=?\n // WHERE <condition>;\n case \"actualizarInformacionArchivo\" :\n $cadenaSql = \" UPDATE info_clase_entrada \";\n $cadenaSql .= \" SET observacion= '\" . $variable [0] . \"', \";\n $cadenaSql .= \" id_entrada='\" . $variable [1] . \"', \";\n $cadenaSql .= \" id_salida='\" . $variable [2] . \"', \";\n $cadenaSql .= \" id_hurto='\" . $variable [3] . \"', \";\n $cadenaSql .= \" num_placa='\" . $variable [4] . \"', \";\n $cadenaSql .= \" val_sobrante='\" . $variable [5] . \"', \";\n $cadenaSql .= \" ruta_archivo='\" . $variable [6] . \"', \";\n $cadenaSql .= \" nombre_archivo='\" . $variable [7] . \"' \";\n $cadenaSql .= \" WHERE id_info_clase='\" . $variable [8] . \"' \";\n\n break;\n\n case \"insertarInformación\" :\n $cadenaSql = \" INSERT INTO info_clase_entrada( \";\n $cadenaSql .= \" observacion, id_entrada, id_salida, id_hurto,\";\n $cadenaSql .= \" num_placa, val_sobrante, ruta_archivo, nombre_archivo)\";\n $cadenaSql .= \" VALUES (\";\n $cadenaSql .= \"'\" . $variable [0] . \"',\";\n $cadenaSql .= \"'\" . $variable [1] . \"',\";\n $cadenaSql .= \"'\" . $variable [2] . \"',\";\n $cadenaSql .= \"'\" . $variable [3] . \"',\";\n $cadenaSql .= \"'\" . $variable [4] . \"',\";\n $cadenaSql .= \"'\" . $variable [5] . \"',\";\n $cadenaSql .= \"'\" . $variable [6] . \"',\";\n $cadenaSql .= \"'\" . $variable [7] . \"') \";\n $cadenaSql .= \"RETURNING id_info_clase; \";\n\n break;\n\n case \"actualizarInformacion\" :\n $cadenaSql = \" UPDATE info_clase_entrada \";\n $cadenaSql .= \" SET observacion= '\" . $variable [0] . \"', \";\n $cadenaSql .= \" id_entrada='\" . $variable [1] . \"', \";\n $cadenaSql .= \" id_salida='\" . $variable [2] . \"', \";\n $cadenaSql .= \" id_hurto='\" . $variable [3] . \"', \";\n $cadenaSql .= \" num_placa='\" . $variable [4] . \"', \";\n $cadenaSql .= \" val_sobrante='\" . $variable [5] . \"', \";\n $cadenaSql .= \" WHERE id_info_clase='\" . $variable [6] . \"' \";\n\n break;\n\n case \"actualizarEntrada\" :\n $cadenaSql = \" UPDATE entrada \";\n $cadenaSql .= \" SET vigencia='\" . $variable [0] . \"', \";\n $cadenaSql .= \" clase_entrada='\" . $variable [1] . \"', \";\n $cadenaSql .= \" tipo_contrato='\" . $variable [2] . \"', \";\n $cadenaSql .= \" numero_contrato='\" . $variable [3] . \"', \";\n $cadenaSql .= \" fecha_contrato=\" . $variable [4] . \", \";\n $cadenaSql .= \" proveedor=\" . $variable [5] . \", \";\n $cadenaSql .= \" numero_factura=\" . $variable [6] . \", \";\n $cadenaSql .= \" fecha_factura=\" . $variable [7] . \", \";\n $cadenaSql .= \" observaciones='\" . $variable [8] . \"', \";\n $cadenaSql .= \" acta_recibido='\" . $variable [10] . \"', \";\n $cadenaSql .= \" ordenador=\" . $variable [11] . \", \";\n $cadenaSql .= \" sede='\" . $variable [12] . \"', \";\n $cadenaSql .= \" dependencia='\" . $variable [13] . \"', \";\n $cadenaSql .= \" supervisor='\" . $variable [14] . \"', \";\n $cadenaSql .= \" tipo_ordenador=\" . $variable [15] . \", \";\n $cadenaSql .= \" identificacion_ordenador=\" . $variable [16] . \", \";\n $cadenaSql .= \" info_clase='\" . $variable [17] . \"', \";\n $cadenaSql .= \" estado_entrada='1' \";\n $cadenaSql .= \" WHERE id_entrada='\" . $variable [9] . \"' \";\n $cadenaSql .= \" RETURNING consecutivo||' - ('||vigencia||')' entrada \";\n\n break;\n\n case \"insertarReposicion\" :\n $cadenaSql = \" INSERT INTO \";\n $cadenaSql .= \" reposicion_entrada(\";\n $cadenaSql .= \" id_entrada, id_hurto, id_salida )\";\n $cadenaSql .= \" VALUES (\";\n $cadenaSql .= \"'\" . $variable [0] . \"',\";\n $cadenaSql .= \"'\" . $variable [1] . \"',\";\n $cadenaSql .= \"'\" . $variable [2] . \"') \";\n $cadenaSql .= \"RETURNING id_reposicion; \";\n\n break;\n\n case \"insertarDonacion\" :\n $cadenaSql = \" INSERT INTO \";\n $cadenaSql .= \" donacion_entrada(\";\n $cadenaSql .= \" ruta_acto, nombre_acto)\";\n $cadenaSql .= \" VALUES (\";\n $cadenaSql .= \"'\" . $variable [0] . \"',\";\n $cadenaSql .= \"'\" . $variable [1] . \"') \";\n $cadenaSql .= \"RETURNING id_donacion; \";\n\n break;\n\n case \"insertarSobrante\" :\n $cadenaSql = \" INSERT INTO \";\n $cadenaSql .= \" sobrante_entrada(\";\n $cadenaSql .= \" observaciones, ruta_acta, nombre_acta)\";\n $cadenaSql .= \" VALUES (\";\n $cadenaSql .= \"'\" . $variable [0] . \"',\";\n $cadenaSql .= \"'\" . $variable [1] . \"',\";\n $cadenaSql .= \"'\" . $variable [2] . \"') \";\n $cadenaSql .= \"RETURNING id_sobrante; \";\n\n break;\n\n case \"insertarProduccion\" :\n $cadenaSql = \" INSERT INTO \";\n $cadenaSql .= \" produccion_entrada(\";\n $cadenaSql .= \" observaciones, ruta_acta, nombre_acta)\";\n $cadenaSql .= \" VALUES (\";\n $cadenaSql .= \"'\" . $variable [0] . \"',\";\n $cadenaSql .= \"'\" . $variable [1] . \"',\";\n $cadenaSql .= \"'\" . $variable [2] . \"') \";\n $cadenaSql .= \"RETURNING id_produccion; \";\n\n break;\n\n case \"insertarRecuperacion\" :\n $cadenaSql = \" INSERT INTO \";\n $cadenaSql .= \" recuperacion_entrada(\";\n $cadenaSql .= \" observaciones, ruta_acta, nombre_acta)\";\n $cadenaSql .= \" VALUES (\";\n $cadenaSql .= \"'\" . $variable [0] . \"',\";\n $cadenaSql .= \"'\" . $variable [1] . \"',\";\n $cadenaSql .= \"'\" . $variable [2] . \"') \";\n $cadenaSql .= \"RETURNING id_recuperacion; \";\n\n break;\n\n case \"dependenciasConsultadas\" :\n $cadenaSql = \"SELECT DISTINCT \\\"ESF_CODIGO_DEP\\\" , \\\"ESF_DEP_ENCARGADA\\\" \";\n $cadenaSql .= \" FROM arka_parametros.arka_dependencia ad \";\n $cadenaSql .= \" JOIN arka_parametros.arka_espaciosfisicos ef ON ef.\\\"ESF_ID_ESPACIO\\\"=ad.\\\"ESF_ID_ESPACIO\\\" \";\n $cadenaSql .= \" JOIN arka_parametros.arka_sedes sa ON sa.\\\"ESF_COD_SEDE\\\"=ef.\\\"ESF_COD_SEDE\\\" \";\n $cadenaSql .= \" WHERE sa.\\\"ESF_ID_SEDE\\\"='\" . $variable . \"' \";\n $cadenaSql .= \" AND ad.\\\"ESF_ESTADO\\\"='A'\";\n\n break;\n\n case 'consultarActas' :\n $cadenaSql = \"SELECT registro_actarecibido.* , contratos.numero_contrato, contratos.fecha_contrato \";\n $cadenaSql .= \"FROM registro_actarecibido \";\n $cadenaSql .= \"LEFT JOIN contratos ON contratos.id_contrato=registro_actarecibido.id_contrato \";\n $cadenaSql .= \"WHERE id_actarecibido='\" . $variable . \"';\";\n\n break;\n\n case \"funcionarios\" :\n\n $cadenaSql = \"SELECT \\\"FUN_IDENTIFICACION\\\", \\\"FUN_IDENTIFICACION\\\" ||' - '|| \\\"FUN_NOMBRE\\\" \";\n $cadenaSql .= \"FROM arka_parametros.arka_funcionarios \";\n $cadenaSql .= \"WHERE \\\"FUN_ESTADO\\\"='A' \";\n\n break;\n\n case 'consultarEntradas' :\n $cadenaSql = \"SELECT id_entrada, consecutivo||' - ('||vigencia||')' entradas \";\n $cadenaSql .= \"FROM entrada \";\n $cadenaSql .= \"WHERE consecutivo > 0 \";\n break;\n\n case 'consultarSalidas' :\n $cadenaSql = \"SELECT id_salida, consecutivo||' - ('||vigencia||')' salidas \";\n $cadenaSql .= \"FROM salida \";\n $cadenaSql .= \"WHERE consecutivo > 0 \";\n break;\n\n case 'consultarHurtos' :\n $cadenaSql = \"SELECT id_estado_elemento, id_hurto||' - ('||fecha_hurto||')' hurtos \";\n $cadenaSql .= \"FROM estado_elemento \";\n $cadenaSql .= \"WHERE id_hurto > 0 \";\n $cadenaSql .= \"ORDER BY id_hurto ASC \";\n\n break;\n\n case 'consultarPlacas' :\n $cadenaSql = \"SELECT id_elemento_ind, placa \";\n $cadenaSql .= \"FROM elemento_individual \";\n $cadenaSql .= \"WHERE placa <> '' \";\n break;\n }\n return $cadenaSql;\n }", "function sql_query_issplaninscr ($q20_planilha, $campos = \"*\") {\n\t \t\n\t \t$sql = \"select \";\n\t \tif ( $campos != \"*\") {\n\t \t\t\n\t \t\t$campos_sql = split(\"#\",$campos);\n\t \t\t$virgula = \"\";\n\t \t\tfor($i=0;$i<sizeof($campos_sql);$i++){\n\t \t\t\t$sql .= $virgula.$campos_sql[$i];\n\t \t\t\t$virgula = \",\";\n\t \t\t}\n\t \t} else { \n\t \t\t$sql .= $campos;\n\t \t}\n\t \t\n\t \t$sql .= \" from issplan\";\n\t \t$sql .= \" \tleft join issplaninscr on q24_planilha = q20_planilha\";\n\t \t$sql .= \" left join issplannumpre on q32_planilha = q20_planilha\";\n\t \t$sql .= \" where issplan.q20_planilha = {$q20_planilha}\";\n\n\t \treturn $sql;\n\t }", "function trataApostrofe($str){\n\t\t$result_subst = str_replace(\"\\'\", \"'\", $str);\n\t\t$result_subst = str_replace(\"'\", \"\\'\", $result_subst);\n\t\treturn $result_subst;\n\t}", "protected function quote()\n {\n }", "function insert($table_name,$data){\r\n$keys='';\r\n$values='';\r\nforeach($data as $k=>$v){\r\n\t$keys.='`'.$k.'`,';\r\n\t$values.=\"'\".$v.\"',\";\r\n}\r\n$keys=rtrim($keys,',');\r\n$values=rtrim($values,',');\r\n\r\n\t$query= \"INSERT INTO `{$table_name}` ({$keys}) VALUES ({$values})\";\r\n\t//echo $query;\r\n\t$this->query($query);\r\n}", "static function sql_to_insert($table, $idname, $data)\n {\n $sql = \"INSERT INTO `$table` \";\n if (is_array($data)){\n $fields = \"`$idname`\";\n $values = \"NULL\";\n foreach ($data as $key=>$value)\n {\n $fields .= \", `\" . $key . \"`\";\n if (is_numeric($value)){\n $values .= \", \" . $value . \"\";\n } elseif (strpos($value, \"'\") !== false){//Tim thay '\n $values .= \", \\\"\" . $value . \"\\\"\";\n } else {\n $values .= \", '\" . $value . \"'\";\n }\n }\n $sql .= \"($fields) VALUES ($values)\";\n } else {\n $sql .= \" SET \" . $data;\n }\n return $sql;\n }", "function Quote($var='')\n\t{\n\t\tif (is_string($var) || is_numeric($var) || is_null($var)) {\n\t\t\treturn trim(str_replace(\"'\",\"''\",$var));\n\t\t} else if (is_array($var)) {\n\t\t\treturn array_map(array($this, 'Quote'), $var);\n\t\t} else {\n\t\t\ttrigger_error(\"Invalid type passed to DB quote\", E_USER_ERROR);\n\t\t\treturn false;\n\t\t}\n\t}", "function assoc($table, $campos=\"*\", $where=\"\", $order=\"\", $tipo=\"\", $limite=\"\"){\n\n\t\t$sql = \"SELECT DISTINCT \";\n\n\t\tif(is_array($campos)){\n\n\t\t\tforeach ($campos as $value){\n\t\t\t\t$sql .= \"'$value' ,\";\n\t\t\t}\n\n\t\t\t$strCut = strlen($sql) -1;\n\t\t\t$sql = substr($sql,0,$strCut);\n\n\t\t}else{\n\n\t\t\t$sql .= \" $campos \";\n\n\t\t}\n\n\t\tif ( strstr($table, \"|\") ) {\n\n\t\t\t$fromTable = substr($table,0,strpos($table,\"|\"));\n\n\t\t\t$leftJoin = substr($table,strpos($table,\"|\"),strlen($table));\n\n\t\t\t$leftJoin = explode(\"|\",$leftJoin);\n\n\t\t\t$sql .= \" FROM \".$fromTable;\n\n\t\t\tforeach ($leftJoin as $ex){\n\n\t\t\t\t$leftEx = explode(\">\", $ex );\n\n\t\t\t\t@list($left_table, $on_condition) = $leftEx;\n\n\t\t\t\tif(!empty($left_table)){\n\t\t\t\t\t$sql .= \" LEFT JOIN \" . $left_table;\n\t\t\t\t}\n\t\t\t\tif(!empty($on_condition)){\n\t\t\t\t\t$sql .= \" ON \" . $on_condition;\n\t\t\t\t}\n\n\n\t\t\t}\n\n\t\t}else{\n\n\t\t\t$sql .= \" FROM $table \";\n\n\t\t}\n\n\n\t\tif(!empty($where)) $sql .= \" WHERE \";\n\n\n\t\tif(is_array($where)){\n\n\t\t\tforeach ($where as $key => $value){\n\n\t\t\t\tif( strstr($value,\"!\") ){\n\t\t\t\t\t\t$value = substr($value, 1);\n\t\t\t\t\t\tif (strtolower($value) == \"empty\"){\n\t\t\t\t\t\t\t\t$sql .= \" $key <> '' AND\";\n\t\t\t\t\t\t}else if(is_int($value)){\n\t\t\t\t\t\t\t\t$sql .= \" $key <> $value AND\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$sql .= \" $key <> '$value' AND\";\n\t\t\t\t\t\t}\n\n\t\t\t\t}elseif( strstr($value,\"!<\") ){\n\t\t\t\t\t\t$value = substr($value, 2);\n\t\t\t\t\t\tif (strtolower($value) == \"empty\"){\n\t\t\t\t\t\t\t\t$sql .= \" $key <= '' AND\";\n\t\t\t\t\t\t}else if(is_int($value)){\n\t\t\t\t\t\t\t\t$sql .= \" $key <= $value AND\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$sql .= \" $key <= '$value' AND\";\n\t\t\t\t\t\t}\n\n\t\t\t\t}elseif( strstr($value,\"!>\") ){\n\t\t\t\t\t\t$value = substr($value, 2);\n\t\t\t\t\t\tif (strtolower($value) == \"empty\"){\n\t\t\t\t\t\t\t\t$sql .= \" $key >= '' AND\";\n\t\t\t\t\t\t}else if(is_int($value)){\n\t\t\t\t\t\t\t\t$sql .= \" $key >= $value AND\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$sql .= \" $key >= '$value' AND\";\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif(is_int($value)){\n\t\t\t\t\t\t$sql .= \" $key LIKE $value AND\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t$sql .= \" $key LIKE '$value' AND\";\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$strCut = strlen($sql)-3;\n\t\t\t$sql = substr($sql,0,$strCut);\n\n\t\t}else{\n\n\t\t\t$sql .= \" $where \";\n\n\t\t}\n\n\t\t//envia sql para total rows\n\t\t$this->sql = $sql;\n\n\t\tif(!empty($order)) $sql .= \" ORDER BY \";\n\n\n\t\tif(is_array($order)){\n\n\t\t\tforeach ($order as $value){\n\t\t\t\t$sql .= \"$value ,\";\n\t\t\t}\n\n\t\t\t$strCut = strlen($sql)-1;\n\t\t\t$sql = substr($sql,0,$strCut);\n\n\t\t}else{\n\n\t\t\t$sql .= \" $order \";\n\n\t\t}\n\n\t\tif(!empty($tipo)) $sql .= \" $tipo \";\n\n\t\tif(!empty($limite)) $sql .= \" LIMIT $limite \";\n\n\t\t$qr = mysql_query($sql) or die($sql . \" <hr> \" . mysql_error());\n\t\t$rows = mysql_num_rows($qr);\n\n\t if($rows){\n\n\t\t\twhile ($rs = mysql_fetch_assoc($qr) ) {\n\n\t\t\t\t$exFetch[] = $rs;\n\n\t\t\t}\n\n\t\t}else{\n\n\t\t\t\t$exFetch = false;\n\t\t}\n\n\t\treturn $exFetch;\n\n\t}", "function dbEscape($dados){\n\t\t\n\t\t$link = dbconectar();\n\t\t\n\t\tif(!is_array($dados))\n\t\t\t$dados = mysqli_real_escape_string($link, $dados);\n\t\telse{\n\t\t\t$arr = $dados;\n\t\t\tforeach($arr as $key=>$value){\n\t\t\t\t$key = mysqli_real_escape_string($link, $key);\n\t\t\t\t$value = mysqli_real_escape_string($link, $value);\n\t\t\t\t\n\t\t\t\t$dados[$key] = $value;\n\t\t\t}\n\t\t}\n\t\tdbdesconectar($link);\n\t\treturn $dados;\n\t}", "private function createBaseQuery(): string\n {\n // Prefix the table columns with 'entries.'\n $tableColumns = array_map(function ($column) {\n return 'entries.' . $column;\n }, self::TABLE_COLUMNS);\n\n if ($this->listView) {\n // Filter out the properties that are not available to the listview\n $jsonColumns = array_filter($this->properties, function (Collection\\Property $property) {\n return $property->getIncludeInJsonListView();\n });\n }\n\n // Create the select syntax for the json data column\n $jsonColumns = array_map(function (Collection\\Property $property) {\n return $this->jsonUnquote($property->getIdentifier()) . ' AS `' . $property->getIdentifier() . '`';\n }, $jsonColumns ?? $this->properties);\n\n // Merge both of the above\n $columns = array_merge($tableColumns, $jsonColumns);\n\n // Create the select statement\n $select = implode(', ', $columns);\n\n // Create the query\n // We need the entries.data to be able to perform a HAVING query on it, when parsing the entry, the DATA object is removed\n return 'SELECT entries.data, ' . $select . ' FROM collection_entries AS entries WHERE entries.collection_id = :collection_id AND entries.active = 1 ';\n }", "function cadena_sql($tipo,$variable=\"\") {\n\n\t\t$prefijo=$this->miConfigurador->getVariableConfiguracion(\"prefijo\");\n\t\t$idSesion=$this->miConfigurador->getVariableConfiguracion(\"id_sesion\");\n\n\t\tswitch($tipo) {\n\n\t\t\t/**\n\t\t\t * Clausulas específicas\n\t\t\t */\n\n\t\t\tcase \"dataUserByID\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=\"id_usuario USUARIOID, \";\n\t\t\t\t$cadena_sql.=\"nombre NOMBRE \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=\"id_usuario ='\".$variable.\"'\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"buscarUsuarioAplicativo\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user.id_usuario USUARIOID, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user.clave CLAVE, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user.usuario, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user_role.id_subsistema ROL, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user_role.estado, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user.estilo TEMA, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user.idioma IDIOMA, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"page.nombre PAGINA, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"page.modulo MODULE, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user.tipo \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user, \";\n $cadena_sql.=$prefijo.\"page, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"role, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user_role \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user.usuario='\".$variable[\"usuario\"].\"' \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user.clave='\".$variable['clave'].\"' \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user_role.id_subsistema=\".$prefijo.\"role.id_subsistema \";\n $cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=$prefijo.\"page.id_pagina=\".$prefijo.\"role.id_pagina \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user_role.estado=1 \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user.id_usuario=\".$prefijo.\"user_role.id_usuario \";\n\t\t\t\tbreak;\n\n\t\t\tcase \"buscarIndexUsuario\":\n\t\t\t\t$cadena_sql=\"SELECT \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user.id_usuario USUARIOID, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user.usuario, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user_role.id_subsistema ROL, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user_role.estado, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user.estilo TEMA, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user.idioma IDIOMA, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"role.pagina PAGINA, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user.tipo \";\n\t\t\t\t$cadena_sql.=\"FROM \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"role, \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user_role \";\n\t\t\t\t$cadena_sql.=\"WHERE \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user.id_usuario='\".$variable[\"usuario\"].\"' \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user_role.id_subsistema=\".$prefijo.\"role.id_subsistema \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user_role.estado=1 \";\n\t\t\t\t$cadena_sql.=\"AND \";\n\t\t\t\t$cadena_sql.=$prefijo.\"user.id_usuario=\".$prefijo.\"user_role.id_usuario \";\n\t\t\t\tbreak;\n\n\n\t\t\tcase \"iniciarTransaccion\":\n\t\t\t\t$cadena_sql=\"START TRANSACTION\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"finalizarTransaccion\":\n\t\t\t\t$cadena_sql=\"COMMIT\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"cancelarTransaccion\":\n\t\t\t\t$cadena_sql=\"ROLLBACK\";\n\t\t\t\tbreak;\n\n\t\t}\n\t\t//echo \"<br/>\".$tipo.\"=\".$cadena_sql;\n\t\treturn $cadena_sql;\n\n\t}" ]
[ "0.69965273", "0.6797999", "0.6764167", "0.6575411", "0.6557126", "0.6465537", "0.64037555", "0.6378435", "0.6350389", "0.63463885", "0.6331268", "0.62744427", "0.6273166", "0.62708175", "0.6267207", "0.6226998", "0.6211683", "0.6169755", "0.6165408", "0.6165408", "0.6152201", "0.61519957", "0.612522", "0.6104546", "0.60856074", "0.6059003", "0.6052339", "0.6041505", "0.600383", "0.5982605", "0.5978347", "0.59766424", "0.5976214", "0.5972435", "0.59662336", "0.5965572", "0.5962099", "0.5959572", "0.5958542", "0.59519583", "0.59503955", "0.5944032", "0.5941936", "0.59237325", "0.59215844", "0.592078", "0.59190094", "0.58923256", "0.5892319", "0.5886643", "0.5886595", "0.58775216", "0.5874743", "0.58716977", "0.5835269", "0.5826236", "0.5813543", "0.5807019", "0.5792221", "0.57774323", "0.57694614", "0.5757932", "0.5756972", "0.5753046", "0.5749808", "0.5749808", "0.57431746", "0.574067", "0.5729832", "0.5729832", "0.57281166", "0.5720405", "0.5717678", "0.570644", "0.57032156", "0.5702714", "0.5694436", "0.56817263", "0.56816345", "0.5666347", "0.56655574", "0.5663781", "0.56552696", "0.564739", "0.56461394", "0.5639268", "0.56287706", "0.56235546", "0.56196713", "0.56194514", "0.56170845", "0.56121165", "0.5604162", "0.5599383", "0.5590718", "0.55887586", "0.55882543", "0.5586463", "0.5583347", "0.5580257" ]
0.5686499
77
Fonction permettant de recuperer la reference d'un champ binaire, pour traitement par exemple, pour manipuler une image : $image = new Imagick (); $image>readimagefile($BlobRef); ou bien, pour envoyer directement au navigateur : header("ContentType: image/png"); fpassthru ($BlobRef);
function getBlobReference($id, $fieldName) { if ($id > 0) { $sql = "select " . $fieldName . " from " . $this->table . " where " . $this->cle . " = ?"; $query = $this->connection->prepare($sql); $query->execute(array( $id )); if ($query->rowCount() == 1) { $query->bindColumn(1, $BlobRef, PDO::PARAM_LOB); $query->fetch(PDO::FETCH_BOUND); return $BlobRef; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getBlob();", "function setBlob($blob);", "public static function blob() {}", "public function getBlob()\n {\n return $this->blob;\n }", "public function getBlob()\n {\n return $this->blob;\n }", "private function objectFromBlob($blob){\n return json_decode($blob);\n }", "public function returnImgCapa($anunRef){\n\n\t$sql = \"SELECT anuncio_imagem_capa FROM Anuncio WHERE anuncio_id = '{$anunRef}'\";\n\n\tif($row = $this->runSelect($sql)){\n\n\t \treturn $row[0]['anuncio_imagem_capa'];\n\n\t} else {\n\n\t}\n }", "function image_return_blob($im)\n{\n $return = $im->getImageBlob();\n $im->clear();\n $im->destroy();\n return $return;\n}", "function processBlobClient($fileToUpload) {\n $connectionString = \"DefaultEndpointsProtocol=https;AccountName=\" . getenv('ACCOUNT_NAME') . \";AccountKey=\" . getenv('ACCOUNT_KEY');\n\n $blobClient = BlobRestProxy::createBlobService($connectionString);\n\n $containerName = \"blockblobsbzgbgh\";\n \n uploadBlob($blobClient, $containerName, $fileToUpload);\n analyzeImage($containerName, $fileToUpload);\n }", "public function setBlob($var)\n {\n GPBUtil::checkString($var, False);\n $this->blob = $var;\n\n return $this;\n }", "public function setBlob($var)\n {\n GPBUtil::checkString($var, False);\n $this->blob = $var;\n\n return $this;\n }", "private function _recO2R($blob)\n {\n $changed = false;\n foreach($blob as $key => $val) {\n if ($val instanceof \\Phalcore\\Models\\Mongo) {\n $val = Mongo\\AdHocDBRef::create($val);\n $blob[$key] = $val;\n $changed = true;\n } elseif (is_array($val)) {\n list ($converted, $recChanged) = $this->_recO2R($val);\n if ($recChanged) {\n $blob[$key] = $converted;\n $changed = true;\n }\n }\n }\n return [$blob, $changed];\n }", "function BlobDecode($blob,$maxsize=false,$hastrans=true)\n\t{\n\t\tif (!$this->GuessOID($blob)) return $blob;\n\n\t\tif ($hastrans) pg_query($this->_connectionID,'begin');\n\t\t$fd = @pg_lo_open($this->_connectionID,$blob,'r');\n\t\tif ($fd === false) {\n\t\t\tif ($hastrans) pg_query($this->_connectionID,'commit');\n\t\t\treturn $blob;\n\t\t}\n\t\tif (!$maxsize) $maxsize = $this->maxblobsize;\n\t\t$realblob = @pg_lo_read($fd,$maxsize);\n\t\t@pg_loclose($fd);\n\t\tif ($hastrans) pg_query($this->_connectionID,'commit');\n\t\treturn $realblob;\n\t}", "public function decodeBlob( $b ) {\n\t\treturn $b;\n\t}", "function image_scale_blob($blob, $aspect, $width, $strategy)\n{\n $im = new \\Imagick();\n $im->readImageBlob($blob);\n $im = image_scale_im_obj($im, $aspect, $width, $strategy);\n return image_return_blob($im);\n}", "public function setBlob($blog)\n {\n }", "private function _recR2O($blob)\n {\n $changed = false;\n foreach($blob as $key => $val) {\n if (Mongo\\AdHocDBRef::isRef($val)) {\n $val = Mongo\\AdHocDBRef::expand($val);\n $blob[$key] = $val;\n $changed = true;\n } elseif (is_array($val)) {\n list ($converted, $recChanged) = $this->_recR2O($val);\n if ($recChanged) {\n $blob[$key] = $converted;\n $changed = true;\n }\n }\n }\n return [$blob, $changed];\n }", "function imageAccess($file, $mime) \n{ \n $contents = file_get_contents($file);\n $base64 = base64_encode($contents); \n return ('data:' . $mime . ';base64,' . $base64);\n}", "abstract public function getRemoteFile($path, $ref = 'master');", "public function getRef(string $ref): mixed;", "function ibase_blob_get($blob_handle, int $len): string\n{\n error_clear_last();\n $safeResult = \\ibase_blob_get($blob_handle, $len);\n if ($safeResult === false) {\n throw IbaseException::createFromPhpError();\n }\n return $safeResult;\n}", "private function getRasterBlobFromImage(Imagick $im)\n {\n $blob = $im -> getimageblob();\n /* Find where header ends */\n $i = strpos($blob, \"P4\\n\") + 2;\n while ($blob[$i + 1] == '#') {\n $i = strpos($blob, \"\\n\", $i + 1);\n }\n $i = strpos($blob, \"\\n\", $i + 1);\n /* Return raster data only */\n $subBlob = substr($blob, $i + 1);\n return $subBlob;\n }", "public function &image()\n {\n return $this->_image;\n }", "private function arrayFromBlob($blob){\n return json_decode($blob, true);\n }", "public function setRef($ref);", "public static function convertBase64ToBlob(string $base64, &$mime = null): string {\r\n if (!self::isBase64($base64, $mime)) {\r\n throw new \\RuntimeException('Did not match data URI with image data');\r\n }\r\n $blob = base64_decode(substr($base64, strpos($base64, ',') + 1));\r\n if ($blob === false) {\r\n throw new \\RuntimeException('Base64 decode failed');\r\n }\r\n return $blob;\r\n }", "function handle_blob_command($command) {\n $mark = $this->checkAndGet($command, 'mark', FALSE);\n $data = $this->checkAndGet($command, 'data');\n $output = \"blob\\n\";\n $output .= $this->handleMark($mark);\n $output .= $this->handleData($data);\n return $output;\n }", "public function getRefBancaria(){\n return $this->ref_bancaria->toArray();\n }", "public function testBlobArray()\n {\n $blobStr = trim(str_repeat(\"some clob data \", 519));\n $fixture = new Mad_Test_Fixture_Base($this->_conn, 'unit_tests');\n $fixture->load();\n $record = $fixture->getRecord('unit_test_6');\n $this->assertEquals($blobStr, $record['blob_value']);\n }", "public function getImage() {}", "public function testSetRefImage() {\n\n $obj = new Materiels();\n\n $obj->setRefImage(\"refImage\");\n $this->assertEquals(\"refImage\", $obj->getRefImage());\n }", "public function getReferenceTo() {}", "public function getWebPicture();", "function UpdateBlobFile($table,$column,$path,$where,$blobtype='BLOB')\n\t{\n\t\tpg_query($this->_connectionID, 'begin');\n\n\t\t$fd = fopen($path,'r');\n\t\t$contents = fread($fd,filesize($path));\n\t\tfclose($fd);\n\n\t\t$oid = pg_lo_create($this->_connectionID);\n\t\t$handle = pg_lo_open($this->_connectionID, $oid, 'w');\n\t\tpg_lo_write($handle, $contents);\n\t\tpg_lo_close($handle);\n\n\t\t// $oid = pg_lo_import ($path);\n\t\tpg_query($this->_connectionID, 'commit');\n\t\t$rs = ADOConnection::UpdateBlob($table,$column,$oid,$where,$blobtype);\n\t\t$rez = !empty($rs);\n\t\treturn $rez;\n\t}", "public function getImage();", "public function getImage();", "public function getImage();", "public function getImage();", "function uploadBlob($blobClient, $containerName, $fileToUpload) {\n\n // Upload file as BlockBlob\n echo \"<p class='message'>Uploading BlockBlob: \" . PHP_EOL . $fileToUpload . \"<br /></p>\";\n \n $content = fopen($fileToUpload, \"r\");\n \n // Upload blob\n $blobClient->createBlockBlob($containerName, $fileToUpload, $content);\n }", "abstract function exportOne( Reference $reference);", "protected function createFileReferenceFromFalFileObject($file, $userUid)\n {\n $fields = [\n 'pid' => (int) $this->extConfig['users']['storagePid'],\n 'crdate' => time(),\n 'tstamp' => time(),\n 'table_local' => 'sys_file',\n 'uid_local' => $file->getUid(),\n 'tablenames' => 'fe_users',\n 'uid_foreign' => $userUid,\n 'fieldname' => 'image',\n ];\n\n $connection = GeneralUtility::makeInstance(ConnectionPool::class)\n ->getConnectionForTable('sys_file_reference');\n $connection->insert(\n 'sys_file_reference',\n $fields,\n [\n Connection::PARAM_INT,\n Connection::PARAM_INT,\n Connection::PARAM_INT,\n Connection::PARAM_STR,\n Connection::PARAM_INT,\n Connection::PARAM_STR,\n Connection::PARAM_INT,\n Connection::PARAM_STR,\n ]\n );\n }", "function mbifthen_format_ref( $ref ) {\r\n\t\treturn WC_IfthenPay_Webdados()->format_multibanco_ref( $ref );\r\n\t}", "public function getAbsolutePicture();", "function BlobDelete( $blob )\n\t{\n\t\tpg_query($this->_connectionID, 'begin');\n\t\t$result = @pg_lo_unlink($blob);\n\t\tpg_query($this->_connectionID, 'commit');\n\t\treturn( $result );\n\t}", "public function testBlobInsert()\n {\n $fixture = new Mad_Test_Fixture_Base($this->_conn, 'unit_tests');\n $fixture->load();\n $record = $fixture->getRecord('unit_test_6');\n\n $ut = $this->_getRecord(6);\n $this->assertEquals($record['blob_value'], $ut['blob_value']);\n }", "public function testGetImageInfoFromBlob()\n {\n $imgBlob = file_get_contents($this->_testImagePath);\n $imgInfo = Tinebase_ImageHelper::getImageInfoFromBlob($imgBlob);\n \n $this->assertEquals($this->_testImageData['width'], $imgInfo['width']);\n }", "public function rutaImageFly()\n {\n\n // primero vemos a que galeria pertenece\n $galeria = ORM::factory( 'Galeria', $this->galeria );\n\n return( $galeria->rutaImageFly().$this->imagen );\n\n }", "function reorganizar($ref, $refId) {\n foreach ($this->Lista('WHERE a.ref = :ref AND a.refid = :refid AND a.status != 99 ORDER BY a.position ASC', ['ref' => $ref, 'refid' => $refId]) as $i => $img) {\n $img->setPosition($i + 1);\n $this->Save($img);\n }\n }", "function pdf_image($pdf_path){\n\n $cmd = \"convert $pdf_path $pdf_path.$this->ext\" ;\n exec($cmd);\n }", "protected function generateReference(MediaInterface $media)\n {\n if (!$media->getBinaryContent()) {\n return;\n }\n\n $file = $this->getFilesystem()->get(sprintf('%s/%s.jpg', $this->generatePath($media), $media->getProviderReference()), true);\n\n try {\n $file->delete();\n }\n catch (FileNotFound $e) {\n }\n $file = $this->getFilesystem()->get(sprintf('%s/%s.jpg', $this->generatePath($media), $media->getProviderReference()), true);\n\n $content = file_get_contents($media->getProviderMetadata()['thumbnail_url']);\n\n if ($content) {\n $result = $file->setContent($content);\n\n return;\n }\n }", "public function subirImagen($idBache){\n\t\t$this->load->model(\"Multimedia\");\n\t\t$this->Multimedia->subirImagen($idBache);\n\t}", "protected function getFile($urn) {\n\t\t$resolved = $this->systemUtil->resolvePath($urn, array('onError'=>'return'));\n\t\tif( $resolved !== null and file_exists($resolved) ) return $resolved;\n\t\t\n\t\t$blob = $this->blobRepository->getBlob($urn);\n\t\tif( $blob === null ) {\n\t\t\tthrow new Exception(\"'$urn' could not be found\");\n\t\t} else if( $blob instanceof Nife_FileBlob ) {\n\t\t\treturn $blob->getFile();\n\t\t} else {\n\t\t\t$file = $this->primaryBlobRepository->newTempFile();\n\t\t\tfile_put_contents($file, (string)$blob);\n\t\t\treturn $file;\n\t\t}\n\t}", "public function blobEndpoint(string $blobEndpoint): AzureBlobExternalAnalyticsLink\n {\n }", "public function GetByRef( $ref ){\n return $this->genericRepository->GetEntityRepository()->findOneBy( array( 'externalReference' => $ref ) );\n }", "function setFileRef($filePath) {\n\t\t$this->filePath = $filePath;\n\t\t$this->fileContent = tsLib_CObj::fileResource($filePath);\n\t}", "public function image();", "public function image();", "function ibase_blob_create($link_identifier = null)\n{\n error_clear_last();\n if ($link_identifier !== null) {\n $safeResult = \\ibase_blob_create($link_identifier);\n } else {\n $safeResult = \\ibase_blob_create();\n }\n if ($safeResult === false) {\n throw IbaseException::createFromPhpError();\n }\n return $safeResult;\n}", "public function getFileFondimage(): string\n {\n return (string) $this->fileFondimage;\n }", "function fbird_blob_cancel($blob_handle): void\n{\n error_clear_last();\n $safeResult = \\fbird_blob_cancel($blob_handle);\n if ($safeResult === false) {\n throw IbaseException::createFromPhpError();\n }\n}", "public function getOurReference(): string;", "protected function renderReferences() {}", "function Utilities_Image(){\n\t\t// $this->$imageAsset = $img;\t\t\n\t}", "public function readBlobString(Blob $blob)\n\t{\n\t\t$try = $this->attempts;\n\t\twhile (--$try >= 0) {\n\t\t\ttry {\n\t\t\t\t/** @var $model \\Guzzle\\Service\\Resource\\Model */\n\t\t\t\t$model = $this->s3->getObject(array(\n\t\t\t\t\t'Bucket' => $this->bucket,\n\t\t\t\t\t'Key' => $this->resolvePath($blob->getPath()),\n\t\t\t\t));\n\t\t\t\tbreak;\n\t\t\t} catch (\\Exception $e) {\n\t\t\t\tif ($try == 0) {\n\t\t\t\t\tthrow $e;\n\t\t\t\t}\n\t\t\t\tif ($this->retry_sleep) {\n\t\t\t\t\tsleep($this->retry_sleep);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $model->get('body');\n\t}", "private function _openImage($value)\n {\n if (!extension_loaded(\"gd\")) {\n /** Bear_Filter_Image_Exception_GdExtensionNotLoaded */\n require_once \"Bear/Filter/Image/Exception/GdExtensionNotLoaded.php\";\n\n throw new Bear_Filter_Image_Exception_GdExtensionNotLoaded();\n }\n\n if (!file_exists($value)) {\n /** Bear_Filter_Image_Exception_FileNotFound */\n require_once \"Bear/Filter/Image/Exception/FileNotFound.php\";\n\n throw new Bear_Filter_Image_Exception_FileNotFound($value);\n }\n\n $blob = @file_get_contents($value);\n if (!$blob) {\n /** Bear_Filter_Image_Exception_CouldNotReadFile */\n require_once \"Bear/Filter/Image/Exception/CouldNotReadFile.php\";\n\n throw new Bear_Filter_Image_Exception_CouldNotReadFile($value);\n }\n\n $gd = @imagecreatefromstring($blob);\n if (!$gd) {\n /** Bear_Filter_Image_Exception_CouldNotLoadFile */\n require_once \"Bear/Filter/Image/Exception/CouldNotLoadFile.php\";\n\n throw new Bear_Filter_Image_Exception_CouldNotLoadFile($value);\n }\n\n return $gd;\n }", "public function getBitmap()\n {\n return $this->bitmap;\n }", "public function getBitmap()\n {\n return $this->bitmap;\n }", "public function show($data,Fileupload $fileupload)\n {\n \n $contents = Storage::url('images/sunil.jpg');\n\n echo \"<img src='\".$contents.\"' height='400px' width='200px'/>\";\n }", "public function getFileImage(): string\n {\n return (string) $this->fileImage;\n }", "function filets_creer_icone_barre($file, $num=-1) {\n\tstatic $icones_barre;\n\trep_icones_barre($icones_barre);\n\tdefine_IMG_GD_MAX_PIXELS();\n\t// la config \"Methode de fabrication des vignettes\" doit etre renseignee pour 'image_reduire'\n\tif($num<0) {\n\t\tlist($w) = @getimagesize($file);\n\t\t$file = filtrer('image_recadre', $file, floor($w/4), 40, '');\n\t\t$file = filtrer('image_reduire', $file, 19, 19);\n\t\t$file = filtrer('image_recadre', $file, 16, 16, 'left');\n\t} else {\n\t\t$file = image_typo(\"_{$num}_\", 'couleur=00BFFF', 'taille=9', 'police=dustismo.ttf');\n\t\t$file = filtrer('image_recadre', $file, 16, 10, 'bottom');\n\t}\n\t$nom = basename($src = extraire_attribut($file, 'src'));\n\t@copy($src, $icones_barre.$nom);\n\treturn $nom;\n}", "public function encodeBlob( $b ) {\n\t\treturn $b;\n\t}", "public function preview(ColumnBuilder $preview): void\n {\n $preview->col('<img src=\"{image.conversion_urls.thumb}\">');\n }", "public function getBulanRef()\n {\n return $this->db->get('ref_Bulan')->result_array();\n }", "public function getCroppedImageSrcByFileReference($fileReference, $ratio)\n {\n if ($fileReference instanceof FileReference) {\n $fileReference = $fileReference->getOriginalResource();\n }\n if ($fileReference instanceof \\TYPO3\\CMS\\Core\\Resource\\FileReference) {\n return $this->getCroppedImageSrcByFile($fileReference->getOriginalFile(), $ratio);\n }\n throw new \\InvalidArgumentException('The given argument is not a valid file reference', 123671283);\n }", "public function uploadfile($refdoc){\n\t\t$filename = $_FILES['file']['name'];\n\t\t$filename = $filename;\n\t\t$location = \"./images/grfile/\". $filename;\n\t\t$temp = $_FILES['file']['tmp_name'];\n\t\t$fileType = pathinfo($location,PATHINFO_EXTENSION);\n\t\t$acak = rand(000000,999999);\t\n\n\t\t// move_uploaded_file($temp, $location);\n\t\t$this->model('Grpo_model')->uploadfile($refdoc, $temp, $location, $filename, $fileType);\n\t\tmove_uploaded_file($temp, $location);\n\t\t// /* Valid Extensions */\n\t\t// $valid_extensions = array(\"jpg\",\"jpeg\",\"png\");\n\t\t// /* Check file extension */\n\t\t// if( !in_array(strtolower($imageFileType),$valid_extensions) ) {\n\t\t// \t$uploadOk = 0;\n\t\t// }\n\n\t\t// if($uploadOk == 0){\n\t\t// echo 0;\n\t\t// }else{\n\t\t// /* Upload file */\n\t\t// if(move_uploaded_file($_FILES['file']['tmp_name'],$location)){\n\t\t// \techo $location;\n\t\t// }else{\n\t\t// \techo 0;\n\t\t// }\n\t}", "public function init()\n {\n $this->setSource('blobs');\n $this->setDbRef(true);\n }", "public function refereshCapcha(){\n return captcha_img('flat');\n }", "function &image( )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID );\n\n $ret = false;\n if ( $this->ImageID != 0 )\n {\n $ret = new eZImage( $this->ImageID );\n }\n\n return $ret;\n }", "public function getBinaryContent();", "public function getImage()\n{\nreturn $this->image;\n}", "function capa($ref, $refId, $default = true) {\n $busca = $this->Lista('WHERE a.ref = :ref AND a.refid = :id AND a.status = 1 ORDER BY a.position ASC LIMIT 1', ['ref' => $ref, 'id' => $refId]);\n if (count($busca)) {\n return $busca[0];\n } else if ($default) {\n return $this->newValueObject();\n }\n return null;\n }", "public function testGetImageInfoFromBlobException()\n {\n $rwongBlob = file_get_contents(__FILE__);\n $this->setExpectedException('Exception');\n Tinebase_ImageHelper::getImageInfoFromBlob($rwongBlob);\n }", "public function getImageBo()\r\n\t{\r\n\t\treturn $this->ImageBo;\r\n\t}", "final public function getImage() {\n\t\t\tif(strlen($this->text) === 0)\n\t\t\t\treturn null;\n\t\t\t\n\t\t\t$data = $this->getTCPDFBarcode()->getBarcodeArray();\n\t\t\tif($data === false)\n\t\t\t\treturn null;\n\t\t\t\n\t\t\t$image = new Image($data['maxw'], $data['maxh']);\n\t\t\t\n\t\t\t$x = 0;\n\t\t\tforeach($data['bcode'] as $bar) {\n\t\t\t\tfor($i = 0; $i < $bar['w']; ++$i) {\n\t\t\t\t\tfor($y = 0; $y < $bar['h']; ++$y)\n\t\t\t\t\t\t$image->setPixel($x + $i, $bar['p'] + $y, (int)$bar['t']);\n\t\t\t\t}\n\t\t\t\t$x += $bar['w'];\n\t\t\t}\n\t\t\t\n\t\t\treturn $image;\n\t\t}", "function getImageFile() \n { \n return $this->_imageFile; \n }", "function getFile($position) {\n global $connection, $user;\n $result = new PathFile();\n\n $sql = \"select imlf.path, imlf.filename, tbi.barcode, imo2.object_name, repo.ID, repo.URL_PREFIX, imo2.uri\n from TR_BATCH_IMAGE tbi\n join IMAGE_OBJECT imo on tbi.IMAGE_OBJECT_ID = imo.ID\n left join IMAGE_LOCAL_FILE imlf on imo.IMAGE_LOCAL_FILE_ID = imlf.ID\n left join IMAGE_OBJECT imo2 on imo.IMAGE_SET_ID = imo2.IMAGE_SET_ID and imo2.ACTIVE_FLAG = 1 and imo2.OBJECT_TYPE_ID = 3\n left join REPOSITORY repo on imo2.REPOSITORY_ID = repo.ID\n where tbi.TR_BATCH_ID = ?\n and tbi.POSITION = ? ;\";\n\n if ($statement = $connection->prepare($sql)) {\n $statement->bind_param(\"ii\", $this->getBatchID(), $position);\n $statement->execute();\n $statement->bind_result($path, $filename, $barcode, $objectname, $repoid, $repourl, $objecturi);\n $statement->store_result();\n if ($statement->fetch()) {\n $result->path = rtrim($path, '/') . '/';\n $result->filename = $filename;\n $result->position = $position;\n $result->barcode = $barcode;\n\n if ($repoid && $repourl && $objecturi) {\n $result->webPath = $repourl . $objecturi;\n } elseif (strcmp('huhimagestorage/huhspecimenimages/', substr($uri, 0, 34)) == 0) {\n $result->webPath = 'http://s3.amazonaws.com/huhspecimenimages' . substr($uri, 33); // TODO: move aws path to Docker\n } else {\n $result->webPath = null;\n }\n\n // if (strcmp('huhimagestorage/huhspecimenimages/', substr($uri, 0, 34)) == 0) {\n // $result->webPath = 'http://s3.amazonaws.com/huhspecimenimages' . substr($uri, 33); // TODO: move aws path to Docker\n // } else {\n // $result->webPath = null;\n // }\n\n $result->batch_id = $this->getBatchID();\n $result->filecount = $this->getFileCount();\n } else {\n return null;\n }\n } else {\n throw new Exception(\"Connection to database failed\");\n }\n\n return $result;\n }", "public function preview($tmp_filename) {\n\t\t\n\t\t$type = mime_content_type($this->tmp_path . $tmp_filename);\n\t\tif (in_array($type, array('image/jpg', 'image/jpeg', 'image/gif', 'image/png'))) {\t//if it is image file, return the image\n\t\t\t$this->header('Content-type: ' . $type);\n\t\t\treadfile($this->tmp_path . $tmp_filename);\n\t\t\texit;\n\t\t} else {\n\t\t\t//TODO: if file is not image, return icon based on filetype (image)\n\t\t\tdie('icon');\n\t\t}\n\t\t\n\t}", "private function _get_contents($ref)\n\t{\n if($this->isURL($ref) && (ini_get('allow_url_fopen') == 0 || $this->force_curl))\n {\n\t\t\t$this->_load('curl');\n\t\t\t$contents = $this->CI->curl->simple_get($ref);\n\t\t}\n else\n {\n\t\t\t$contents = file_get_contents($ref);\n\t }\n\t\treturn $contents;\n }", "public function getImageResource()\n {\n return imagecreatefromstring($this->getRaw());\n }", "private function toBlob($obj){\n return json_encode($obj);\n }", "public function execWithBlobProcessing( $sql, $blobs, $blobTypes = array() )\r\n\t{\r\n\t\t$stml = db2_prepare($this->conn, $sql);\r\n\t\t\r\n\t\t$numblobs = 1;\r\n\t\tforeach($blobs as $bfield)\r\n\t\t{\r\n\t\t\tdb2_bind_param($stml, $numblobs, \"bfield\", DB2_BINARY, DB2_PARAM_IN);\r\n\t\t\t$numblobs += 1;\r\n\t\t}\r\n\t\t\r\n\t\t$ret = @db2_execute( $stml );\r\n\t\tdb2_commit( $this->conn );\r\n\t\treturn $ret;\r\n\t}", "public function setImageRef($imageRef)\n {\n return $this->set('imageRef', $imageRef);\n }", "public function getReference():string\n {\n return $reference;\n }", "function ibase_blob_cancel($blob_handle): void\n{\n error_clear_last();\n $safeResult = \\ibase_blob_cancel($blob_handle);\n if ($safeResult === false) {\n throw IbaseException::createFromPhpError();\n }\n}", "public function getRef()\n {\n return $this->_ref;\n }", "public function getRef() {\n return $ref;\n }", "function data_uri($contents, $mime)\n{\n// $contents = file_get_contents($file);\n $base64 = base64_encode($contents);\n return ('data:' . $mime . ';base64,' . $base64);\n}", "function read_image_descriptor()\r\n\t{\r\n\t\t/* Reset global variables */\r\n\t\t$this->buffer = array();\r\n\t\t$this->fou = '';\r\n\r\n\t\t/* Header -> GIF89a */\r\n\t\t$this->fou .= \"\\x47\\x49\\x46\\x38\\x39\\x61\";\r\n\r\n\t\t$this->getbytes(9);\r\n for($i = 0; $i < 9; $i++)\r\n $this->image_descriptor[$i] = $this->buffer[$i];\r\n\r\n $local_color_table_flag = ($this->buffer[8] & 0x80) ? TRUE : FALSE;\r\n if($local_color_table_flag)\r\n {\r\n \t$code = ($this->buffer[8] & 0x07);\r\n \t$sorted = ($this->buffer[8] & 0x20) ? TRUE : FALSE;\r\n }\r\n else\r\n {\r\n $code = $this->global_color_table_code;\r\n $sorted = $this->global_sorted;\r\n }\r\n\r\n $size = 2 << $code;\r\n\r\n $this->logical_screen_descriptor[4] &= 0x70;\r\n $this->logical_screen_descriptor[4] |= 0x80;\r\n $this->logical_screen_descriptor[4] |= $code;\r\n\r\n if($sorted)\r\n\t\t\t$this->logical_screen_descriptor [4] |= 0x08;\r\n\t\t$this->putbytes($this->logical_screen_descriptor, 7);\r\n\r\n\t\tif($local_color_table_flag)\r\n\t\t{\r\n\t\t\t$this->getbytes(3 * $size);\r\n $this->putbytes($this->buffer, 3 * $size);\r\n\t\t}\r\n\t\telse\r\n\t\t\t$this->putbytes($this->global, 3 * $size);\r\n\r\n\t\t$this->fou .= \"\\x2C\";\r\n\r\n\t\t$this->image_descriptor[8] &= 0x40;\r\n\r\n\t\t$this->putbytes($this->image_descriptor, 9);\r\n\r\n /* LZW minimum code size */\r\n\t\t$this->getbytes(1);\r\n\t\t$this->putbytes($this->buffer, 1);\r\n\r\n\t\t/* Image Data */\r\n for(;;)\r\n {\r\n \t$this->getbytes(1);\r\n\t\t\t$this->putbytes($this->buffer, 1);\r\n if(($u = $this->buffer[0]) == 0)\r\n \tbreak;\r\n $this->getbytes($u);\r\n $this->putbytes($this->buffer, $u);\r\n }\r\n\r\n\t\t/* trailer */\r\n\t\t$this->fou .= \"\\x3B\";\r\n\r\n\t\t/* Write to file */\r\n\t\tswitch($this->fm)\r\n\t\t{\r\n\t\t\t/* Write as BMP */\r\n\t\t\tcase \"BMP\":\r\n\t\t\t\t$im = imageCreateFromString($this->fou);\r\n\t\t\t\t$framename = $this->sp . $this->image_count++ . \".bmp\";\r\n\t\t\t\tif(!$this->imageBmp($im, $framename))\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->es = \"error #3\";\r\n\t\t\t\t\treturn(0);\r\n\t\t\t\t}\r\n\t\t\t\timageDestroy($im);\r\n\t\t\tbreak;\r\n /* Write as PNG */\r\n\t\t\tcase \"PNG\":\r\n\t\t\t\t$im = imageCreateFromString($this->fou);\r\n\t\t\t\t$framename = $this->sp . $this->image_count++ . \".png\";\r\n\t\t\t\tif(!imagePng($im, $framename))\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->es = \"error #3\";\r\n\t\t\t\t\treturn(0);\r\n\t\t\t\t}\r\n\t\t\t\timageDestroy($im);\r\n\t\t\tbreak;\r\n\t\t\t/* Write as JPG */\r\n\t\t\tcase \"JPG\":\r\n\t\t\t\t$im = imageCreateFromString($this->fou);\r\n\t\t\t\t$framename = $this->sp . $this->image_count++ . \".jpg\";\r\n\t\t\t\tif(!imageJpeg($im, $framename))\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->es = \"error #3\";\r\n\t\t\t\t\treturn(0);\r\n\t\t\t\t}\r\n\t\t\t\timageDestroy($im);\r\n\t\t\tbreak;\r\n\t\t\t/* Write as GIF */\r\n\t\t\tcase \"GIF\":\r\n\t\t\t\t$im = imageCreateFromString($this->fou);\r\n\t\t\t\t$framename = $this->sp . $this->image_count++ . \".gif\";\r\n\t\t\t\tif(!imageGif($im, $framename))\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->es = \"error #3\";\r\n\t\t\t\t\treturn(0);\r\n\t\t\t\t}\r\n\t\t\t\timageDestroy($im);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public function getReference(){\n return $this->reference;\n }", "protected function processImage() {}" ]
[ "0.6151094", "0.61447024", "0.6066619", "0.55852056", "0.55852056", "0.5558342", "0.55280286", "0.54628366", "0.5350778", "0.5293151", "0.5293151", "0.5187016", "0.5118718", "0.51186335", "0.5113259", "0.5080489", "0.50347996", "0.5031869", "0.502482", "0.500394", "0.497877", "0.49552628", "0.4873237", "0.48273078", "0.47848174", "0.47777414", "0.4768321", "0.47453237", "0.47233343", "0.4713388", "0.4708092", "0.46937576", "0.46920782", "0.46874726", "0.4672117", "0.4672117", "0.4672117", "0.4672117", "0.46558604", "0.46522242", "0.46511605", "0.462697", "0.46068382", "0.45982194", "0.45947665", "0.45884052", "0.45802265", "0.4568927", "0.45508543", "0.45402223", "0.45379204", "0.45298862", "0.45224756", "0.45086503", "0.44973236", "0.44817975", "0.44817975", "0.4471579", "0.44655013", "0.44637114", "0.44503498", "0.44486305", "0.44445336", "0.44391143", "0.4438045", "0.44374895", "0.44374895", "0.44354865", "0.4432583", "0.44308257", "0.4428807", "0.44279745", "0.44220382", "0.44153804", "0.44152537", "0.44086885", "0.43915743", "0.43838245", "0.4368477", "0.436696", "0.4365238", "0.43642676", "0.43620485", "0.43617985", "0.43616685", "0.43477648", "0.4346044", "0.43457392", "0.43408376", "0.43385988", "0.43377766", "0.43353975", "0.4333039", "0.43294993", "0.43287814", "0.432421", "0.431803", "0.43139106", "0.4299419", "0.4296811" ]
0.54778415
7
Execute une requete preparee
function executeAsPrepared($sql, $data, $onlyExecute = false) { if ($this->debug_mode == 2) { echo "executeAsPrepared - $sql<br>"; printr($data); } try { if ($sql != $this->lastPrepared) { $this->statement = $this->connection->prepare($sql); $this->lastPrepared = $sql; } /* * Execution de la requete */ $this->lastResultExec = $this->statement->execute($data); if ($this->lastResultExec && !$onlyExecute) { return $this->statement->fetchAll(PDO::FETCH_ASSOC); } else { return $this->lastResultExec; } } catch (PDOException $e) { $this->lastResultExec = false; if ($this->debug_mode > 0) { $this->addMessage($e->getMessage()); } throw new ObjetBDDException($e->getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function prepare()\n {\n $this->getInstruction()->execute();\n }", "protected function prepareExecute()\n {\n parent::prepareExecute();\n }", "public function prepare();", "public function prepare();", "function SQLExecuterRequete($sql, array $arg) {\n try {\n $sth = SQLPreparerRequete($sql);\n $sth->setFetchMode(PDO::FETCH_ASSOC);\n foreach ($arg as $key => &$val) {\n $sth->bindParam($key, $val);\n }\n if (!$sth->execute()) {\n throw new Exception(\"La requete SQL a echouee\", 500);\n }\n } catch (Exception $e) {\n ob_end_clean();\n die('<!DOCTYPE html><html><head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><title>Arcade 2i</title><link rel=\"stylesheet\" type=\"text/css\" href=\"assets/css/bootstrap.css\"/><link rel=\"stylesheet\" type=\"text/css\" href=\"assets/css/style.css\"/><script src=\"https://code.jquery.com/jquery-2.2.3.min.js\"></script><script src=\"assets/js/bootstrap.js\"></script></head><body><div class=\"container\"><div class=\"row\"><div class=\"alert alert-danger\">Erreur lors de l\\'execution de la page : ' . $e->getMessage() . '</div></div></div></body></html>');\n }\n return $sth;\n}", "public function prepare() {}", "public function prepare() {}", "public function execute() {\r\n // $this->connecxao = parent::getConnect();\r\n $stmt = $this->connecxao->prepare($this->getQuery());\r\n $this->transition = $stmt->execute($this->getBinds());\r\n $this->error = $stmt->errorInfo();\r\n\r\n if ($this->error[0] == \"00000\") {\r\n $stmt->setFetchMode(PDO::FETCH_ASSOC);\r\n $this->data = $stmt;\r\n } else {\r\n $this->setMsgError(\"Code Aplic Error: \" . $this->error[0] . \"<br />Code BD Error: \" . $this->error[1] . \"<br />Msg BD Error: \" . $this->error[2]);\r\n }\r\n }", "private function execute() {\n $this->statement = $this->pdo->prepare($this->queryString);\n\n foreach ($this->params as $boundParam) {\n $this->statement->bindValue($boundParam->name, $boundParam->value, $boundParam->type);\n }\n\n $this->statement->execute();\n }", "abstract public function prepare(): self;", "public function prepare()\n {\n }", "function SQLPreparerRequete($sql) {\n $BDD_host = \"localhost\";\n $BDD_user = \"root\";\n $BDD_password = \"\";\n $BDD_base = \"arcade\";\n\n try {\n $dbh = new PDO('mysql:host=' . $BDD_host . ';dbname=' . $BDD_base . ';charset=utf8', $BDD_user, $BDD_password);\n $dbh->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);\n $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $dbh->exec(\"SET CHARACTER SET utf8\");\n $return = $dbh->prepare($sql);\n } catch (Exception $e) {\n ob_end_clean();\n die('<!DOCTYPE html><html><head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><title>Arcade 2i</title><link rel=\"stylesheet\" type=\"text/css\" href=\"assets/css/bootstrap.css\"/><link rel=\"stylesheet\" type=\"text/css\" href=\"assets/css/style.css\"/><script src=\"https://code.jquery.com/jquery-2.2.3.min.js\"></script><script src=\"assets/js/bootstrap.js\"></script></head><body><div class=\"container\"><div class=\"row\"><div class=\"alert alert-danger\">Erreur lors de l\\'execution de la page : ' . $e->getMessage() . '</div></div></div></body></html>');\n }\n return $return;\n}", "protected function prepare()\n\t{\n\t}", "private function preExe(){\n\t\t$pre = $this->prepare($this->_query);\n\t\t$pre->execute();\n\t\treturn $pre->fetchAll();\n\t}", "private function Execute(){\n $this->Connect();\n\n try{\n $this->Create->execute($this->Dados);\n $this->Result = $this->Conn->lastInsertId();\n $this->StatusInsert = true;\n\n }catch (PDOException $e){\n $this->Result = null;\n WSErro(\"<b>Erro ao cadastrar:</b> {$e->getMessage()}\", $e->getCode());\n }\n }", "public function execute() {\n\t\t\t$connection = \\Leap\\Core\\DB\\Connection\\Pool::instance()->get_connection($this->data_source);\n\t\t\tif ($this->before !== NULL) {\n\t\t\t\tcall_user_func_array($this->before, array($connection));\n\t\t\t}\n\t\t\t$connection->execute($this->command());\n\t\t\tif ($this->after !== NULL) {\n\t\t\t\tcall_user_func_array($this->after, array($connection));\n\t\t\t}\n\t\t}", "function exec($requete){\r\n\t\t$message=\"\";\r\n\t\ttry{\r\n\t\t\t$resultats=$this->connexion->exec($requete);\r\n\t\t\t\r\n\t\t}\r\n\t\tcatch(PDOException $e){\r\n\t\t\t$message=\"probleme pour executer cette requete $requete : \";\r\n\t\t\t$message=$message.$e->getMessage();\r\n\t\t\t//echo $message;\r\n\t\t}\r\n\t\t\r\n\t\treturn $message;\r\n\t}", "abstract public function prepare($params=array());", "public function prepare() {\n\t\tif ($this->_statement == null) \n\t\t{\n\t\t\ttry {\n\t\t\t\t$this->_statement = $this->_connection->getPdoInstance()->prepare($this->getText());\n\t\t\t\t$this->_paramLog = array();\n\t\t\t} catch (\\Exception $e) {\n\t\t\t\t$errorInfo = $e instanceof PDOException ? $e->errorInfo : null;\n\t\t\t\tthrow new \\GO\\Base\\Exception\\Database('DbCommand failed to prepare the SQL statement: '. $e->getMessage(), $e->getCode(), $errorInfo);\n\t\t\t}\n\t\t}\n\t}", "public function prepare_query()\n {\n }", "abstract protected function _prepare();", "private function _prepareQuery() \n\t{\n\t\t\t// Establish connection to the database if not already connected\n\t\tif (! $this->_connection || empty($this->_connection)) {\n\t\t\t\n\t\t\t // retrieve the database configuration from the registry\n\t\t\t$config = Registry::getSetting('dbConfig');\n\t\t\t\n\t\t\t$this->_newConnection(\n\t\t\t\t\t$config['host'], \n\t\t\t\t\t$config['database'], \n\t\t\t\t\t$config['user'], \n\t\t\t\t\t$config['password']);\n\t\t}\n\t\t\n\t\tif (! $stmt = $this->_connection->prepare ( $this->_query )) {\n\t\t\ttrigger_error ( 'Problem preparing query', E_USER_ERROR );\n\t\t}\n\t\t$this->_stmt = $stmt;\n\t}", "function execute_requete($req){\r\n\tglobal $pdo;\r\n\t$pdostatement = $pdo->query($req);\r\n\treturn $pdostatement;\r\n}", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public function execute();", "public static function execute()\n {\n //bind params\n foreach ( self::$_BINDS as $k => $_b ):\n $type = \\PDO::PARAM_STR;\n if ( $_b['type'] ):\n $type = self::getDataType( $_b['type'] );\n endif;\n\n $length = NULL;\n if ( $_b['size'] ):\n $length = (int) $_b['size'];\n endif;\n $k++;\n self::$stmt->bindParam( $k, $_b['value'], $type, $length );\n endforeach;\n self::$_BINDS = array(); //reset\n return self::$stmt->execute();\n }", "abstract public function prepare( $args );", "abstract public function execute() ;", "public function prepareAndExecute (PDO $connection, string $query, array $params = []);", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute() {}", "public function execute () {\n $this->query->execute();\n }", "function executerSQL($requete){\n global $dbhost,$dbusername,$dbpassword,$dbname;\n\n //Créer une connection mysql\n $connection = new sql($dbhost,$dbusername,$dbpassword,$dbname); //Connection à  la db\n $connection->setQuery($requete);\t\t\t \t//créeer la requete\n $requete = $connection->runQuery($connection->getQuery());\t//executer la requête\n\n return $requete;\n }", "abstract public function execute();", "abstract public function execute();", "abstract public function execute();", "abstract public function execute();", "protected function prepareStatements()\n {\n if (!empty($this->statements)) {\n return;\n }\n $this->statements['load'] = $this->db->prepare(\n 'SELECT * FROM `' . $this->options['table'] . '` WHERE `userId` = :userId '\n . 'AND `scope` = :scope AND `name` = :name AND `args` = :args'\n );\n\n $this->statements['save'] = $this->db->prepare(\n 'INSERT INTO `' . $this->options['table'] . '` (`userId`, `scope`, `name`, `args`, `xml`) VALUES '\n . '(:userId, :scope, :name, :args, :xml)'\n );\n\n $this->statements['delete'] = $this->db->prepare(\n 'DELETE FROM`' . $this->options['table'] . '` WHERE `userId` = :userId '\n . 'AND `scope` = :scope AND `name` = :name AND `args` = :args'\n );\n }", "function ejecutar($sql){\n\t\t$res = mysqli_query($this->id,$sql);\t\n\t\t/*if (!$res) // error en la sentencia\n\t\t\tthrow new Exception (\"Error en la sentencia SQL\");*/\n\t\treturn $res;\n\t}", "function executarSQLAction($query)\n\t {\n\t global $basedados;\n\t try\n\t {\n\t $stmt = $basedados->prepare($query);\n\t $stmt->execute();\n\n\t return( $stmt );\n\t }\n\t catch (PDOException $e)\n\t {\n\t imprimir($e->getMessage());\n\t return false;\n\t }\n\t }", "public function prepare()\n\t{\n\t\tif ($this->pdoStatement == null) {\n\t\t\t$sql = $this->getSql();\n\t\t\ttry {\n\t\t\t\t$this->pdoStatement = $this->connection->pdo->prepare($sql);\n\t\t\t\t$this->_paramLog = array();\n\t\t\t}\n\t\t\tcatch(\\Exception $e) {\n\t\t\t\t\\Yii::error(\"Failed to prepare SQL ($sql): \" . $e->getMessage(), __CLASS__);\n $errorInfo = $e instanceof \\PDOException ? $e->errorInfo : null;\n\t\t\t\t$message = YII_DEBUG ? 'Failed to prepare SQL: ' . $e->getMessage() : 'Failed to prepare SQL.';\n\t\t\t\tthrow new Exception($message, (int)$e->getCode(), $errorInfo);\n\t\t\t}\n\t\t}\n\t}", "private function prepare ($sql) {\n $this->query = $this->connection->prepare($sql);\n }", "public function execute() { \n return $this -> stmt -> execute();\n }", "public function prepare($sql);", "public function ejecutar_una_consulta($query){\n $response=self::ConnectDB()->prepare($query);\n $response->execute();\n return $response;\n }", "abstract function execute();", "abstract function execute();", "public function execute() { }", "public function cadastro(){\n\n $query = \"insert into usuario\n set\n email=:e,\n senha=:s,\n nome=:n,\n telefone=:t,\n cpf=:c,\n foto=:f\";\n \n $stmt = $this->conn->prepare($query);\n\n \n //vamos usar uma função para retirar \n //todos os caracteres especiais vindos de \n //uma pagina html\n //isso fará com que você evite a execução \n //de comandos maliciosos no banco de dados\n //comandos de sqlinject\n\n $this->email = htmlspecialchars(strip_tags($this->email));\n $this->senha = htmlspecialchars(strip_tags($this->senha));\n $this->nome = htmlspecialchars(strip_tags($this->nome));\n $this->telefone = htmlspecialchars(strip_tags($this->telefone));\n $this->cpf = htmlspecialchars(strip_tags($this->cpf));\n $this->foto = htmlspecialchars(strip_tags($this->foto));\n\n //Vamos fazer i, bindParam(ligação de parametros) entre os dados\n //enviado pelo usuario no navegador ou smartphone para o banco \n //da dados\n\n $stmt->bindParam(\":e\",$this->email);\n $stmt->bindParam(\":s\",md5($this->senha));\n $stmt->bindParam(\":n\",$this->nome);\n $stmt->bindParam(\":c\",$this->cpf);\n $stmt->bindParam(\":t\",$this->telefone);\n $stmt->bindParam(\":f\",$this->foto);\n\n //executar a comsulta e verificar se cadastrou \n if ($stmt->execute()){\n return true;\n\n }\n return false;\n\n}", "public function execute(){\n\t\ttry{\n\t\t\t#echo 'exectuteed...' ;\n\t\t\treturn $this->statement->execute() ;\n\t\t}catch(PDOException $e){\n\t\t\t$this->error = $e->getMessage() ;\n\t\t\techo $this->error ;\n\t\t}\n\t}", "public abstract function execute();", "public abstract function execute();", "public abstract function execute();", "public function exec( $sql, $prepared=array(), $dataTypes=array() )\n {\n if( !$sql ) throw new \\RuntimeException( \"missing Sql statement.\" );\n if( empty( $prepared ) ) {\n $this->pdoStmt = $this->pdoObj->query( $sql );\n }\n else {\n $this->execPrepare( $sql );\n $this->execExecute( $prepared, $dataTypes );\n }\n $this->applyFetchMode();\n return $this->pdoStmt;\n }", "private function prepareStatements() {\n $sql = \"INSERT INTO users(userName, password, email) VALUES (:user, :pass, :email)\";\n $this->insertUser = $this->connection->prepare($sql);\n\n $sql = \"UPDATE users SET userName=:userName, password=:pass, email=:email WHERE userName=:user\";\n $this->updateUser = $this->connection->prepare($sql);\n\n $sql = \"SELECT * FROM users WHERE userName=:user\";\n $this->selectUser = $this->connection->prepare($sql);\n }", "public function get($sql)\n{\n $stmt = $this->link->prepare($sql);\n $stmt->execute();\n return $stmt;\n\n}", "public function prepare( $sql ){\n $this->stmt = $this->pdo->prepare( $sql );\n }", "public function execSql(){\n\t\t$cant=func_num_args();\n\t\t$instSql=\"\";\n\t\t$instSql=$this->reemplazaParametro(func_get_args());\n//\t\techo \"<br>\".$instSql.\"<br>\";\n//\t\techo $this->tipodb.\"<br>\";\n//\t\t$this->registroLog($instSql,$_SESSION['PERMISO'][0],$_SESSION['PERMISO'][1]);\n\t\tswitch ($this->tipodb) {\n\t\t\tcase \"my\":\n\t\t\t\t$resultado=mysql_query($instSql,$this->conn);\n//echo mysql_errno().\"<br>\";\n\t\t\t\tbreak;\n\t\t\tcase \"pg\":\n\t\t\t\t$resultado=pg_query($this->conn,$instSql);\n\t\t\t\tbreak;\n\t\t}\n\t\treturn $resultado;\n\t}", "private function prepareStatement()\n {\n $columns = '';\n $fields = '';\n foreach ($this->fields as $key => $f) {\n if ($key == 0) {\n $columns .= \"$f\";\n $fields .= \":$f\";\n continue;\n }\n\n $columns .= \", $f\";\n $fields .= \", :$f\";\n }\n\n $this->statement = $this->pdo->prepare(\n 'INSERT INTO `' . $this->table . '` (' . $columns . ') VALUES (' . $fields . ')'\n );\n }", "public function prepare_execute_add_up_del($_req, $_param = array()) {\n// var_dump($_param);\n $stmt = $this->base->prepare($_req);\n// echo \"<br>---------bdd--------<br> stmt <br>\";\n// var_dump($stmt);\n $stmt->execute($_param);\n }", "public function testPrepare()\n {\n \t$qs = $this->conn->prepare('SELECT * FROM test WHERE status=\"ACTIVE\"');\n \t$this->assertType('Q\\DB_Statement', $qs);\n \t\n \t$result = $qs->execute();\n \t$this->assertType('Q\\DB_Result', $result);\n \t\n \t$this->assertEquals(array(1, 'one', 'first row', 'ACTIVE'), $result->fetchOrdered());\n \t$this->assertEquals(array(2, 'two', 'next row', 'ACTIVE'), $result->fetchOrdered());\n \t$this->assertNull($result->fetchOrdered());\n \t\n \t$result = $this->conn->query($qs);\n\t\t$this->assertType('Q\\DB_Result', $result);\n \t$this->assertEquals(array(1, 'one', 'first row', 'ACTIVE'), $result->fetchOrdered(), 'Using conn->query(prepared statement)');\n }", "public function execute() {\n\t}", "public function execute()\n {\n $query = $this->__toString();\n if (!empty($this->params)) {\n $statement = $this->pdo->prepare($query);\n $statement->execute($this->params);\n return $statement;\n }\n return $this->pdo->query($query);\n }", "public function execute()\n\t{\n\t\t$this->query->setFetchMode($this->fetchMode);\n\n\t\t$this->query->execute($this->params);\t\n\n\t\t// Fetch the data in the appropriate format\n\t\tswitch ($this->fetchMethod) {\n\t\t\tcase 'row':\n\t\t\t\t$this->result = $this->query->fetch();\n\t\t\t\tbreak;\n\t\t\tcase 'field':\n\t\t\t\t$this->result = $this->query->fetchColumn();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$this->result = $this->query->fetchAll();\n\t\t\t\tbreak;\n\t\t}\n\t}", "public function __invoke()\n {\n $this->execute();\n }", "public function execute() {\n }", "public function execute() {\n $lastImplementaion = '';\n $finalWhere = ( count($this->_lastWhere) > 0) ? ' WHERE ' . join($this->_currentImplement['where'], ' ' ) : '';\n $finalLimit = ( strlen($this->_lastLimit) > 0 ) ? ' lIMIT ' . $this->_lastLimit : '';\n\n if ( !empty($this->_lastSelect) ) {\n $finalSelect = ' SELECT ' . join( $this->_currentImplement['select'], ',' );\n\n $finalTables = ' FROM ' . join( array_map(function($item ){\n return '`'.$item.'`';\n }, $this->_currentImplement['table']), ',');\n\n $finalOrder = ( strlen($this->_lastOrder) > 0 ) ? ' ORDER BY ' . $this->_lastOrder : '';\n\n $finalJoin = '';\n\n if ( isset($this->_currentImplement['join']) && count($this->_currentImplement['join']) > 0 ) {\n foreach ( $this->_currentImplement['join'] as $key => $value ) {\n $finalJoin[] = ' ' . $value['type'] . ' JOIN `' . $value['table'] . '`' . ' ON ' . $value['on'];\n }\n\n $finalJoin = join( $finalJoin, ' ' );\n }\n\n $lastImplementaion = $finalSelect . $finalTables . $finalJoin . $finalWhere . $finalOrder . $finalLimit;\n } else if ( !empty($this->_lastUpdate) ) {\n if(empty($finalWhere)){\n throw new Exception(\"If you preform this query, you will update all rows in table\", 1);\n }\n\n $lastImplementaion = 'UPDATE ' . $this->_lastTable . ' SET ' . $this->_lastUpdate . $finalWhere . $finalLimit;\n } else if ( !empty($this->_lastInsert) ) {\n $lastImplementaion = 'INSERT INTO `' . $this->_lastTable . '` ' . $this->_lastInsert;\n } else if ( !empty($this->_lastCreate) ) {\n $lastImplementaion = $this->_lastCreate;\n } else if ( !empty($this->_lastDrop) ) {\n $lastImplementaion = $this->_lastDrop;\n }else if( !empty($this->_lastTruncate) ){\n $lastImplementaion = $this->_lastTruncate;\n }else if( !empty($this->_lastDelete) ) {\n if(empty($finalWhere)){\n throw new Exception(\"If you preform this query, you will delete all rows in table, if you want so user truncate() instead.\", 1);\n }\n\n $lastImplementaion = $this->_lastDelete . $finalWhere . $finalLimit;\n }\n\n $lastImplementaion = trim( $lastImplementaion );\n $this->unsetAll();\n\n unset( $this->_currentImplement );\n unset( $finalSelect );\n unset( $finalTables );\n unset( $finalJoin );\n unset( $finalWhere );\n unset( $finalOrder );\n unset( $finalLimit );\n return $lastImplementaion;\n }", "public function prepare()\r\n\t{\r\n\t\treturn null; // nothing\r\n\t}", "public function execute()\n {\n }" ]
[ "0.7428883", "0.72828144", "0.72357076", "0.72357076", "0.7133911", "0.6984811", "0.6984355", "0.6788122", "0.6718246", "0.6525039", "0.65030926", "0.6472184", "0.64633477", "0.6392608", "0.6383268", "0.6377094", "0.6376968", "0.63712674", "0.6343686", "0.6339389", "0.6329372", "0.63085127", "0.6299047", "0.62659585", "0.62659585", "0.62659585", "0.62659585", "0.62659585", "0.62659585", "0.62659585", "0.62659585", "0.62659585", "0.62659585", "0.62659585", "0.62659585", "0.62659585", "0.62659585", "0.62659585", "0.6257001", "0.62469465", "0.62313765", "0.62311614", "0.6216505", "0.6216505", "0.6216505", "0.6216505", "0.6216505", "0.6216505", "0.6216505", "0.6216505", "0.6216505", "0.6216505", "0.6216505", "0.6216505", "0.6216505", "0.62160003", "0.62160003", "0.62159693", "0.62159693", "0.62159693", "0.62159693", "0.62159693", "0.62159693", "0.6204006", "0.61887664", "0.61869305", "0.61869305", "0.61869305", "0.61869305", "0.61706936", "0.61632824", "0.6113446", "0.60808396", "0.60731673", "0.6066671", "0.60655695", "0.60575175", "0.6055682", "0.6055682", "0.60350853", "0.6032339", "0.60236734", "0.6019683", "0.6019683", "0.6019683", "0.60152745", "0.60073686", "0.60036075", "0.59984", "0.59977096", "0.5976796", "0.5974988", "0.59686536", "0.5962157", "0.5955544", "0.59518397", "0.59447616", "0.5932808", "0.5925761", "0.5923983", "0.59208536" ]
0.0
-1
Lit un enregistrement a partir d'une requete preparee
function lireParamAsPrepared($sql, $data) { $collection = $this->executeAsPrepared($sql, $data); $collection = $collection[0]; if ($this->auto_date == 1) { $collection = $this->utilDatesDBVersLocale($collection); } if ($this->toUTF8) { $collection = $this->utf8Encode($collection); } return $collection; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function criar_enquete(){\n\n// dados de formulario\n$conteudo = remove_html($_REQUEST['conteudo']);\n\n// tabela\n$tabela = TABELA_ENQUETE;\n\n// data\n$data = data_atual();\n\n// query\n$query = \"insert into $tabela values(null, '$conteudo', '$data');\";\n\n// valida conteudo\nif($conteudo != null){\n\ncomando_executa($query);\n\t\n};\n\n}", "public function register(){\n $db = Database::init();\n $sql = \"INSERT INTO CLIENT(NOMC,PRENOMC,SEXE,DATE_DE_NAISSANCE,ADRESSEC,TELEPHONEC,EMAILC,USERC,PASSWORDC,NUM_PASSEPORT) VALUES (:nom,:prenom,:sexe,:daten,:adresse,:tel,:email,:username,:password,:passeport)\";\n $qry = $db->prepare($sql);\n //htmlentities\n $daten = date(\"Y-m-d\", strtotime($this->daten));\n $qry->bindParam(\":nom\",$this->nom,\\PDO::PARAM_STR);\n $qry->bindParam(\":prenom\",$this->prenom,\\PDO::PARAM_STR);\n $qry->bindParam(\":sexe\",$this->sexe,\\PDO::PARAM_STR);\n $qry->bindParam(\":daten\",$daten,\\PDO::PARAM_STR);\n $qry->bindParam(\":adresse\",$this->adresse,\\PDO::PARAM_STR);\n $qry->bindParam(\":tel\",$this->tel,\\PDO::PARAM_STR);\n $qry->bindParam(\":email\",$this->email,\\PDO::PARAM_STR);\n $qry->bindParam(\":username\",$this->username,\\PDO::PARAM_STR);\n $qry->bindParam(\":password\",$this->password,\\PDO::PARAM_STR);\n $qry->bindParam(\":passeport\",$this->passeport,\\PDO::PARAM_INT);\n $qry->execute();\n }", "function registrar(){\r\n\r\n include('config.php');\r\n\r\n date_default_timezone_set('America/Cuiaba');\r\n $pdo = new PDO('mysql:host='.HOST.';dbname='.DATABASE, USUARIO, SENHA);\r\n\r\n $cursos = array('Engenharia da Computação', 'Engenharia de Controle e Automação', 'Engenharia de Minas', 'Engenharia de Trasportes', 'Engenharia Quimica');\r\n \r\n $nome = $_POST['nome'];\r\n $email = $_POST['email'];\r\n $rga = $_POST['rga'];\r\n $semestre = $_POST['semestre']; \r\n $data = date('Y-m-d H:i:s');\r\n $senha = $_POST['senha'];\r\n $confirmaSenha = $_POST['confirmaSenha'];\r\n $curso = '';\r\n \r\n for($i = 1; $i <= 5; $i++){ //verificando qual o curso pelo rga\r\n\r\n if($rga['9'] == $i)\r\n $curso = $cursos[$i];\r\n \r\n \r\n }\r\n \r\n\r\n $sql = $pdo->prepare(\"INSERT INTO `tabela_estudantes` VALUES (null,?,?,?,?,?,?,?)\"); //inserirndo na tabela vendas\r\n\r\n $sql->execute(array($nome, $senha, $data, $email, $curso, $semestre, $rga));\r\n\r\n echo '<h6 style=\"color: rgb(255, 255, 255);\">Usuario registrado com sucesso!</h6>';\r\n\r\n }", "public function RegistrarCompras()\n{\n\tself::SetNames();\n\tif(empty($_POST[\"codcompra\"]) or empty($_POST[\"codseriec\"]) or empty($_POST[\"codproveedor\"]))\n\t{\n\t\techo \"1\";\n\t\texit;\n\t}\n\n\tif(empty($_SESSION[\"CarritoC\"]))\n\t{\n\t\techo \"2\";\n\t\texit;\n\n\t} \n\n $sql = \" select codcompra from compras where codcompra = ? \";\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->execute( array($_POST[\"codcompra\"]) );\n\t$num = $stmt->rowCount();\n\tif($num > 0)\n\t{\n\n\t\techo \"3\";\n\t\texit;\n\t}\n\telse\n\t{\n\t\t$sql = \" select codseriec from compras where codseriec = ? \";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->execute( array($_POST[\"codseriec\"]) );\n\t\t$num = $stmt->rowCount();\n\t\tif($num > 0)\n\t\t{\n\n\t\t\techo \"4\";\n\t\t\texit;\n\t\t}\n\t\telse\n\t\t{\n\n\n\t\t$query = \" insert into compras values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t$stmt = $this->dbh->prepare($query);\n\t\t$stmt->bindParam(1, $codcompra);\n\t\t$stmt->bindParam(2, $codseriec);\n\t\t$stmt->bindParam(3, $codproveedor);\n\t\t$stmt->bindParam(4, $subtotalivasic);\n\t\t$stmt->bindParam(5, $subtotalivanoc);\n\t\t$stmt->bindParam(6, $ivac);\n\t\t$stmt->bindParam(7, $totalivac);\n\t\t$stmt->bindParam(8, $descuentoc);\n\t\t$stmt->bindParam(9, $totaldescuentoc);\n\t\t$stmt->bindParam(10, $totalc);\n\t\t$stmt->bindParam(11, $tipocompra);\n\t\t$stmt->bindParam(12, $formacompra);\n\t\t$stmt->bindParam(13, $fechavencecredito);\n\t\t$stmt->bindParam(14, $statuscompra);\n\t\t$stmt->bindParam(15, $fechacompra);\n\t\t$stmt->bindParam(16, $codigo);\n\n\t\t$codcompra = strip_tags($_POST[\"codcompra\"]);\n\t\t$codseriec = strip_tags($_POST[\"codseriec\"]);\n\t\t$codproveedor = strip_tags($_POST[\"codproveedor\"]);\n\t\t$subtotalivasic = strip_tags($_POST[\"txtsubtotal\"]);\n\t\t$subtotalivanoc = strip_tags($_POST[\"txtsubtotal2\"]);\n\t\t$ivac = strip_tags($_POST[\"iva\"]);\n\t\t$totalivac = strip_tags($_POST[\"txtIva\"]);\n\t\t$descuentoc = strip_tags($_POST[\"descuento\"]);\n\t\t$totaldescuentoc = strip_tags($_POST[\"txtDescuento\"]);\n\t\t$totalc = strip_tags($_POST[\"txtTotal\"]);\n\t\t$tipocompra = strip_tags($_POST[\"tipocompra\"]);\n\t\tif (strip_tags($_POST[\"tipocompra\"]==\"CONTADO\")) { $formacompra = strip_tags($_POST[\"formacompra\"]); } else { $formacompra = \"CREDITO\"; }\n\t\tif (strip_tags($_POST[\"tipocompra\"]==\"CREDITO\")) { $fechavencecredito = strip_tags(date(\"Y-m-d\",strtotime($_POST['fechavencecredito']))); } else { $fechavencecredito = \"0000-00-00\"; }\n\t\tif (strip_tags($_POST[\"tipocompra\"]==\"CONTADO\")) { $statuscompra = strip_tags(\"PAGADA\"); } else { $statuscompra = \"PENDIENTE\"; }\n\t\t$fechacompra = strip_tags(date(\"Y-m-d h:i:s\",strtotime($_POST['fecharegistro'])));\n\t\t$codigo = strip_tags($_SESSION[\"codigo\"]);\n\t\t$stmt->execute();\n\n\t\t$compra = $_SESSION[\"CarritoC\"];\n\t\tfor($i=0;$i<count($compra);$i++){\n\n\t\t\t$query = \" insert into detallecompras values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t$stmt = $this->dbh->prepare($query);\n\t\t\t$stmt->bindParam(1, $codcompra);\n\t\t\t$stmt->bindParam(2, $codproducto);\n\t\t\t$stmt->bindParam(3, $producto);\n\t\t\t$stmt->bindParam(4, $codcategoria);\n\t\t\t$stmt->bindParam(5, $cantidad);\n\t\t\t$stmt->bindParam(6, $precio);\n\t\t\t$stmt->bindParam(7, $precio2);\n\t\t\t$stmt->bindParam(8, $ivaproductoc);\n\t\t\t$stmt->bindParam(9, $importe);\n\t\t\t$stmt->bindParam(10, $tipoentrada);\n\t\t\t$stmt->bindParam(11, $fechadetallecompra);\n\t\t\t$stmt->bindParam(12, $codigo);\n\n\t\t\t$codcompra = strip_tags($_POST['codcompra']);\n\t\t\t$codproducto = strip_tags($compra[$i]['txtCodigo']);\n\t\t\t$producto = strip_tags($compra[$i]['producto']);\n\t\t\t$codcategoria = strip_tags($compra[$i]['presentacion']);\n\t\t\t$cantidad = strip_tags($compra[$i]['cantidad']);\n\t\t\t$precio = strip_tags($compra[$i]['precio']);\n\t\t\t$precio2 = strip_tags($compra[$i]['precio2']);\n\t\t\t$ivaproductoc = strip_tags($compra[$i]['ivaproducto']);\n\t\t\t$importe = strip_tags($compra[$i]['cantidad'] * $compra[$i]['precio']);\n\t\t\t$tipoentrada = strip_tags($compra[$i]['tipoentrada']);\n\t\t\t$fechadetallecompra = strip_tags(date(\"Y-m-d h:i:s\",strtotime($_POST['fecharegistro'])));\n\t\t\t$codigo = strip_tags($_SESSION['codigo']);\n\t\t\t$stmt->execute();\n\n\n\t################ REALIZAMOS EL PROCESO DE REGISTRO DE INGREDIENTES ###################\n\t\t\tif($compra[$i]['tipoentrada']==\"INGREDIENTE\"){\n\n\t\t\t\t$sql = \" select codingrediente from ingredientes where codingrediente = ? \";\n\t\t\t\t$stmt = $this->dbh->prepare($sql);\n\t\t\t\t$stmt->execute( array($compra[$i]['txtCodigo']) );\n\t\t\t\t$num = $stmt->rowCount();\n\t\t\t\tif($num == 0)\n\t\t\t\t{\n\t##################### REGISTRAMOS LOS NUEVOS INGREDIENTES COMPRADOS ##################\n\t\t\t\t\t$query = \" insert into ingredientes values (null, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t\t\t$stmt = $this->dbh->prepare($query);\n\t\t\t\t\t$stmt->bindParam(1, $codingrediente);\n\t\t\t\t\t$stmt->bindParam(2, $nomingrediente);\n\t\t\t\t\t$stmt->bindParam(3, $cantingrediente);\n\t\t\t\t\t$stmt->bindParam(4, $costoingrediente);\n\t\t\t\t\t$stmt->bindParam(5, $codcategoria);\n\t\t\t\t\t$stmt->bindParam(6, $codproveedor);\n\t\t\t\t\t$stmt->bindParam(7, $stockminimoingrediente);\n\n\t\t\t\t\t$codingrediente = strip_tags($compra[$i]['txtCodigo']);\n\t\t\t\t\t$nomingrediente = strip_tags($compra[$i]['producto']);\n\t\t\t\t\t$cantingrediente = strip_tags(rount($compra[$i]['cantidad'],2));\n\t\t\t\t\t$costoingrediente = strip_tags($compra[$i]['precio']);\n\t\t\t\t\t$codcategoria = strip_tags($compra[$i]['presentacion']);\n\t\t $codproveedor = strip_tags($_POST[\"codproveedor\"]);\n\t\t\t\t\t$stockminimoingrediente = strip_tags('0');\n\t\t\t\t\t$stmt->execute();\n\t##################### REGISTRAMOS LOS NUEVOS INGREDIENTES COMPRADOS ###################\n\n\t##################### REGISTRAMOS LOS DATOS DE INGREDIENTES EN KARDEX ####################\n\t\t\t\t\t$query = \" insert into kardexingredientes values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t\t\t$stmt = $this->dbh->prepare($query);\n\t\t\t\t\t$stmt->bindParam(1, $codcompra);\n\t\t\t\t\t$stmt->bindParam(2, $codproveedor);\n\t\t\t\t\t$stmt->bindParam(3, $codigoproducto);\n\t\t\t\t\t$stmt->bindParam(4, $codingrediente);\n\t\t\t\t\t$stmt->bindParam(5, $movimientoing);\n\t\t\t\t\t$stmt->bindParam(6, $entradasing);\n\t\t\t\t\t$stmt->bindParam(7, $salidasing);\n\t\t\t\t\t$stmt->bindParam(8, $stockactualing);\n\t\t\t\t\t$stmt->bindParam(9, $preciouniting);\n\t\t\t\t\t$stmt->bindParam(10, $costototaling);\n\t\t\t\t\t$stmt->bindParam(11, $documentoing);\n\t\t\t\t\t$stmt->bindParam(12, $fechakardexing);\n\n\t\t\t\t\t$codcompra = strip_tags($_POST['codcompra']);\n\t\t\t\t\t$codproveedor = strip_tags($_POST[\"codproveedor\"]);\n\t\t\t\t\t$codigoproducto = strip_tags('0');\n\t\t\t\t\t$codingrediente = strip_tags($compra[$i]['txtCodigo']);\n\t\t\t\t\t$movimientoing = strip_tags(\"ENTRADAS\");\n\t\t\t\t\t$entradasing = strip_tags(rount($compra[$i]['cantidad'],2));\n\t\t\t\t\t$salidasing = strip_tags(\"0\");\n\t\t\t\t\t$stockactualing = strip_tags(rount($compra[$i]['cantidad'],2));\n\t\t\t\t\t$preciouniting = strip_tags($compra[$i]['precio']);\n\t\t\t\t\t$costototaling = strip_tags($compra[$i]['precio'] * $compra[$i]['cantidad']);\n\t\t\t\t\t$documentoing = strip_tags(\"COMPRA - \".$_POST[\"tipocompra\"].\" - FACTURA: \".$_POST['codcompra']);\n\t\t\t\t\t$fechakardexing = strip_tags(date(\"Y-m-d\",strtotime($_POST['fecharegistro'])));\n\t\t\t\t\t$stmt->execute();\n\t##################### REGISTRAMOS LOS DATOS DE INGREDIENTES EN KARDEX ###################\n\n\t\t\t\t} else {\n\n\t\t\t\t\t//$sql = \" select * from ingredientes WHERE CAST(cantingrediente AS DECIMAL(10,5)) <= CAST(stockminimoingrediente AS DECIMAL(10,5))\";\n\n\t\t\t\t\t$sql = \"select cantingrediente from ingredientes where codingrediente = '\".$compra[$i]['txtCodigo'].\"'\";\n\t\t\t\t\tforeach ($this->dbh->query($sql) as $row)\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->p[] = $row;\n\t\t\t\t\t}\n\t\t\t\t\t$cantidanterior = $row['cantingrediente'];\n\n\t################## ACTUALIZAMOS LA EXISTENCIA DE INGREDIENTES COMPRADOS ###################\n\t\t\t\t\t$sql = \" update ingredientes set \"\n\t\t\t\t\t.\" costoingrediente = ?, \"\n\t\t\t\t\t.\" cantingrediente = ? \"\n\t\t\t\t\t.\" where \"\n\t\t\t\t\t.\" codingrediente = ?;\n\t\t\t\t\t\";\n\t\t\t\t\t$stmt = $this->dbh->prepare($sql);\n\t\t\t\t\t$stmt->bindParam(1, $costoingrediente);\n\t\t\t\t\t$stmt->bindParam(2, $existencia);\n\t\t\t\t\t$stmt->bindParam(3, $codigo);\n\n\t\t\t\t\t$costoingrediente = strip_tags($compra[$i]['precio']);\n\t\t\t\t\t$cantidad = strip_tags(rount($compra[$i]['cantidad'],2));\n\t\t\t\t\t$existencia= rount($cantidad + $cantidanterior,2);\n\t\t\t\t\t$codigo = strip_tags($compra[$i]['txtCodigo']);\n\t\t\t\t\t$stmt->execute();\n\t##################### ACTUALIZAMOS LA EXISTENCIA DE INGREDIENTES COMPRADOS ##################\t\n\n\n\t##################### REGISTRAMOS LOS DATOS DE INGREDIENTES EN KARDEX ####################\n\t\t\t\t\t$query = \" insert into kardexingredientes values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t\t\t$stmt = $this->dbh->prepare($query);\n\t\t\t\t\t$stmt->bindParam(1, $codcompra);\n\t\t\t\t\t$stmt->bindParam(2, $codproveedor);\n\t\t\t\t\t$stmt->bindParam(3, $codigoproducto);\n\t\t\t\t\t$stmt->bindParam(4, $codingrediente);\n\t\t\t\t\t$stmt->bindParam(5, $movimientoing);\n\t\t\t\t\t$stmt->bindParam(6, $entradasing);\n\t\t\t\t\t$stmt->bindParam(7, $salidasing);\n\t\t\t\t\t$stmt->bindParam(8, $stockactualing);\n\t\t\t\t\t$stmt->bindParam(9, $preciouniting);\n\t\t\t\t\t$stmt->bindParam(10, $costototaling);\n\t\t\t\t\t$stmt->bindParam(11, $documentoing);\n\t\t\t\t\t$stmt->bindParam(12, $fechakardexing);\n\n\t\t\t\t\t$codcompra = strip_tags($_POST['codcompra']);\n\t\t\t\t\t$codproveedor = strip_tags($_POST[\"codproveedor\"]);\n\t\t\t\t\t$codigoproducto = strip_tags('0');\n\t\t\t\t\t$codingrediente = strip_tags($compra[$i]['txtCodigo']);\n\t\t\t\t\t$movimientoing = strip_tags(\"ENTRADAS\");\n\t\t\t\t\t$entradasing = strip_tags(rount($compra[$i]['cantidad'],2));\n\t\t\t\t\t$salidasing = strip_tags(\"0\");\n\t\t\t\t\t$stockactualing = strip_tags(rount($cantidanterior+$compra[$i]['cantidad'],2));\n\t\t\t\t\t$preciouniting = strip_tags($compra[$i]['precio']);\n\t\t\t\t\t$costototaling = strip_tags($compra[$i]['precio'] * $compra[$i]['cantidad']);\n\t\t\t\t\t$documentoing = strip_tags(\"COMPRA - \".$_POST[\"tipocompra\"].\" - FACTURA: \".$_POST['codcompra']);\n\t\t\t\t\t$fechakardexing = strip_tags(date(\"Y-m-d\",strtotime($_POST['fecharegistro'])));\n\t\t\t\t\t$stmt->execute();\n\t################### REGISTRAMOS LOS DATOS DE INGREDIENTES EN KARDEX #################\t\t\n\t\t\t\t}\n\n\t################ REALIZAMOS EL PROCESO DE REGISTRO DE PRODUCTOS ###################\n\t\t\t} else {\n\n\t\t\t\t$sql = \" select codproducto from productos where codproducto = ? \";\n\t\t\t\t$stmt = $this->dbh->prepare($sql);\n\t\t\t\t$stmt->execute( array($compra[$i]['txtCodigo']) );\n\t\t\t\t$num = $stmt->rowCount();\n\t\t\t\tif($num == 0)\n\t\t\t\t{\n\t##################### REGISTRAMOS LOS NUEVOS PRODUCTOS COMPRADOS ####################\n\t\t\t\t\t$query = \" insert into productos values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t\t\t$stmt = $this->dbh->prepare($query);\n\t\t\t\t\t$stmt->bindParam(1, $codproducto);\n\t\t\t\t\t$stmt->bindParam(2, $producto);\n\t\t\t\t\t$stmt->bindParam(3, $codcategoria);\n\t\t\t\t\t$stmt->bindParam(4, $preciocompra);\n\t\t\t\t\t$stmt->bindParam(5, $precioventa);\n\t\t\t\t\t$stmt->bindParam(6, $existencia);\n\t\t\t\t\t$stmt->bindParam(7, $stockminimo);\n\t\t\t\t\t$stmt->bindParam(8, $ivaproducto);\n\t\t\t\t\t$stmt->bindParam(9, $descproducto);\n\t\t\t\t\t$stmt->bindParam(10, $codproveedor);\n\t\t\t\t\t$stmt->bindParam(11, $codigobarra);\n\t\t\t\t\t$stmt->bindParam(12, $favorito);\n\t\t\t\t\t$stmt->bindParam(13, $statusproducto);\n\n\t\t\t\t\t$codproducto = strip_tags($compra[$i]['txtCodigo']);\n\t\t\t\t\t$producto = strip_tags($compra[$i]['producto']);\n\t\t\t\t\t$codcategoria = strip_tags($compra[$i]['presentacion']);\n\t\t\t\t\t$existencia = strip_tags($compra[$i]['cantidad']);\n\t\t\t\t\t$preciocompra = strip_tags($compra[$i]['precio']);\n\t\t\t\t\t$precioventa = strip_tags($compra[$i]['precio2']);\n\t\t\t\t\t$stockminimo = strip_tags('0');\n\t\t\t\t\t$ivaproducto = strip_tags($compra[$i]['ivaproducto']);\n\t\t\t\t\t$descproducto = strip_tags('0.00');\n\t\t\t\t\t$codproveedor = strip_tags($_POST[\"codproveedor\"]);\n\t\t\t\t\t$codigobarra = strip_tags(\"00000000000\");\n\t\t\t\t\t$favorito = strip_tags('NO');\n\t\t\t\t\t$statusproducto = strip_tags('ACTIVO');\n\t\t\t\t\t$stmt->execute();\n\t##################### REGISTRAMOS LOS NUEVOS PRODUCTOS COMPRADOS ####################\n\n\t##################### REGISTRAMOS LOS DATOS DE PRODUCTOS EN KARDEX ####################\n\t\t\t\t\t$query = \" insert into kardexproductos values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t\t\t$stmt = $this->dbh->prepare($query);\n\t\t\t\t\t$stmt->bindParam(1, $codcompra);\n\t\t\t\t\t$stmt->bindParam(2, $codproveedor);\n\t\t\t\t\t$stmt->bindParam(3, $codproducto);\n\t\t\t\t\t$stmt->bindParam(4, $movimiento);\n\t\t\t\t\t$stmt->bindParam(5, $entradas);\n\t\t\t\t\t$stmt->bindParam(6, $salidas);\n\t\t $stmt->bindParam(7, $devolucion);\n\t\t\t\t\t$stmt->bindParam(8, $stockactual);\n\t\t\t\t\t$stmt->bindParam(9, $preciom);\n\t\t\t\t\t$stmt->bindParam(10, $costototal);\n\t\t\t\t\t$stmt->bindParam(11, $documento);\n\t\t\t\t\t$stmt->bindParam(12, $fechakardex);\n\n\t\t\t\t\t$codcompra = strip_tags($_POST['codcompra']);\n\t\t\t\t\t$codproveedor = strip_tags($_POST[\"codproveedor\"]);\n\t\t\t\t\t$codproducto = strip_tags($compra[$i]['txtCodigo']);\n\t\t\t\t\t$movimiento = strip_tags(\"ENTRADAS\");\n\t\t\t\t\t$entradas = strip_tags($compra[$i]['cantidad']);\n\t\t\t\t\t$salidas = strip_tags(\"0\");\n\t\t\t\t\t$devolucion = strip_tags(\"0\");\n\t\t\t\t\t$stockactual = strip_tags($compra[$i]['cantidad']);\n\t\t\t\t\t$preciom = strip_tags($compra[$i]['precio']);\n\t\t\t\t\t$costototal = strip_tags($compra[$i]['precio'] * $compra[$i]['cantidad']);\n\t\t\t\t\t$documento = strip_tags(\"COMPRA - \".$_POST[\"tipocompra\"].\" - FACTURA: \".$_POST['codcompra']);\n\t\t\t\t\t$fechakardex = strip_tags(date(\"Y-m-d\",strtotime($_POST['fecharegistro'])));\n\t\t\t\t\t$stmt->execute();\n\t##################### REGISTRAMOS LOS DATOS DE PRODUCTOS EN KARDEX ####################\n\n\t\t\t\t} else {\n\n\t\t\t\t\t$sql = \"select existencia from productos where codproducto = '\".$compra[$i]['txtCodigo'].\"'\";\n\t\t\t\t\tforeach ($this->dbh->query($sql) as $row)\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->p[] = $row;\n\t\t\t\t\t}\n\t\t\t\t\t$cantidanterior = $row['existencia'];\n\n\t##################### ACTUALIZAMOS LA EXISTENCIA DE PRODUCTOS COMPRADOS ####################\n\t\t\t\t\t$sql = \" update productos set \"\n\t\t\t\t\t.\" preciocompra = ?, \"\n\t\t\t\t\t.\" precioventa = ?, \"\n\t\t\t\t\t.\" existencia = ?, \"\n\t\t\t\t\t.\" ivaproducto = ? \"\n\t\t\t\t\t.\" where \"\n\t\t\t\t\t.\" codproducto = ?;\n\t\t\t\t\t\";\n\t\t\t\t\t$stmt = $this->dbh->prepare($sql);\n\t\t\t\t\t$stmt->bindParam(1, $preciocompra);\n\t\t\t\t\t$stmt->bindParam(2, $precioventa);\n\t\t\t\t\t$stmt->bindParam(3, $existencia);\n\t\t\t\t\t$stmt->bindParam(4, $ivaproducto);\n\t\t\t\t\t$stmt->bindParam(5, $codigo);\n\n\t\t\t\t\t$preciocompra = strip_tags($compra[$i]['precio']);\n\t\t\t\t\t$precioventa = strip_tags($compra[$i]['precio2']);\n\t\t\t\t\t$cantidad = strip_tags($compra[$i]['cantidad']);\n\t\t\t\t\t$existencia = $cantidad + $cantidanterior;\n\t\t\t\t\t$ivaproducto = strip_tags($compra[$i]['ivaproducto']);\n\t\t\t\t\t$codigo = strip_tags($compra[$i]['txtCodigo']);\n\t\t\t\t\t$stmt->execute();\n\t##################### ACTUALIZAMOS LA EXISTENCIA DE PRODUCTOS COMPRADOS #####################\t\t\n\n\t##################### REGISTRAMOS LOS DATOS DE PRODUCTOS EN KARDEX ####################\n\t\t\t\t\t$query = \" insert into kardexproductos values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t\t\t\t$stmt = $this->dbh->prepare($query);\n\t\t\t\t\t$stmt->bindParam(1, $codcompra);\n\t\t\t\t\t$stmt->bindParam(2, $codproveedor);\n\t\t\t\t\t$stmt->bindParam(3, $codproducto);\n\t\t\t\t\t$stmt->bindParam(4, $movimiento);\n\t\t\t\t\t$stmt->bindParam(5, $entradas);\n\t\t\t\t\t$stmt->bindParam(6, $salidas);\n\t\t $stmt->bindParam(7, $devolucion);\n\t\t\t\t\t$stmt->bindParam(8, $stockactual);\n\t\t\t\t\t$stmt->bindParam(9, $preciounit);\n\t\t\t\t\t$stmt->bindParam(10, $costototal);\n\t\t\t\t\t$stmt->bindParam(11, $documento);\n\t\t\t\t\t$stmt->bindParam(12, $fechakardex);\n\n\t\t\t\t\t$codcompra = strip_tags($_POST['codcompra']);\n\t\t\t\t\t$codproveedor = strip_tags($_POST[\"codproveedor\"]);\n\t\t\t\t\t$codproducto = strip_tags($compra[$i]['txtCodigo']);\n\t\t\t\t\t$movimiento = strip_tags(\"ENTRADAS\");\n\t\t\t\t\t$entradas = strip_tags($compra[$i]['cantidad']);\n\t\t\t\t\t$salidas = strip_tags(\"0\");\n\t\t $devolucion = strip_tags(\"0\");\n\t\t\t\t\t$stockactual = strip_tags($cantidanterior+$compra[$i]['cantidad']);\n\t\t\t\t\t$preciounit = strip_tags($compra[$i]['precio']);\n\t\t\t\t\t$costototal = strip_tags($compra[$i]['precio'] * $compra[$i]['cantidad']);\n\t\t\t\t\t$documento = strip_tags(\"COMPRA - \".$_POST[\"tipocompra\"].\" - FACTURA: \".$_POST['codcompra']);\n\t\t\t\t\t$fechakardex = strip_tags(date(\"Y-m-d\",strtotime($_POST['fecharegistro'])));\n\t\t\t\t\t$stmt->execute();\n\t##################### REGISTRAMOS LOS DATOS DE PRODUCTOS EN KARDEX ####################\t\t\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t###### AQUI DESTRUIMOS TODAS LAS VARIABLES DE SESSION QUE RECIBIMOS EN CARRITO DE COMPRA ######\n\t\tunset($_SESSION[\"CarritoC\"]);\n\n\t\techo \"<div class='alert alert-success'>\";\n\t\techo \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\n\t\techo \"<span class='fa fa-check-square-o'></span> LA COMPRA DE PRODUCTOS FUE REGISTRADA EXITOSAMENTE <a href='reportepdf?codcompra=\".base64_encode($codcompra).\"&tipo=\".base64_encode(\"FACTURACOMPRAS\").\"' class='on-default' data-placement='left' data-toggle='tooltip' data-original-title='Imprimir Factura' target='_black'><strong>IMPRIMIR FACTURA DE COMPRA</strong></a>\";\n\t\techo \"</div>\";\n\t\texit;\n\t }\n\t}\n}", "function ajouter_article($nom,$prix,$quantite,$description,$type){\r\n\tglobal $bdd;\r\n\r\n\t$req=$bdd->prepare('INSERT INTO article(id_article, nom_article, prix_article, quantite_article, description_article,type_article) VALUES (:id_article, :nom_article, :prix_article,:quantite_article, :description_article,:type_article)');\r\n\r\n\t$req->execute(array(\r\n\t\t'id_article'=>'',\r\n\t\t'nom_article'=>$nom,\r\n\t\t'prix_article'=>$prix,\r\n\t\t'quantite_article'=>$quantite,\r\n\t\t'description_article'=>$description,\r\n\t\t'type_article'=>$type));\r\n\r\n}", "public function RegistrarArqueoCaja()\n{\n\tself::SetNames();\n\tif(empty($_POST[\"codcaja\"]) or empty($_POST[\"montoinicial\"]) or empty($_POST[\"fecharegistro\"]))\n\t{\n\t\techo \"1\";\n\t\texit;\n\t}\n\n\t$sql = \"select codigo from cajas where codcaja = '\".$_POST[\"codcaja\"].\"'\";\n\tforeach ($this->dbh->query($sql) as $row)\n\t{\n\t\t$this->p[] = $row;\n\t}\n\t$codigo = $row['codigo'];\n\n\t$sql = \" select codcaja from arqueocaja where codcaja = ? and statusarqueo = '1'\";\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->execute( array($_POST[\"codcaja\"]) );\n\t$num = $stmt->rowCount();\n\tif($num == 0)\n\t{\n\t\t$query = \" insert into arqueocaja values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t$stmt = $this->dbh->prepare($query);\n\t\t$stmt->bindParam(1, $codcaja);\n\t\t$stmt->bindParam(2, $montoinicial);\n\t\t$stmt->bindParam(3, $ingresos);\n\t\t$stmt->bindParam(4, $egresos);\n\t\t$stmt->bindParam(5, $dineroefectivo);\n\t\t$stmt->bindParam(6, $diferencia);\n\t\t$stmt->bindParam(7, $comentarios);\n\t\t$stmt->bindParam(8, $fechaapertura);\n\t\t$stmt->bindParam(9, $fechacierre);\n\t\t$stmt->bindParam(10, $statusarqueo);\n\t\t$stmt->bindParam(11, $codigo);\n\n\t\t$codcaja = strip_tags($_POST[\"codcaja\"]);\n\t\t$montoinicial = strip_tags($_POST[\"montoinicial\"]);\n\t\tif (strip_tags(isset($_POST['ingresos']))) { $ingresos = strip_tags($_POST['ingresos']); } else { $ingresos =''; }\n\t\tif (strip_tags(isset($_POST['egresos']))) { $egresos = strip_tags($_POST['egresos']); } else { $egresos =''; }\n\t\tif (strip_tags(isset($_POST['dineroefectivo']))) { $dineroefectivo = strip_tags($_POST['dineroefectivo']); } else { $dineroefectivo =''; }\n\t\tif (strip_tags(isset($_POST['diferencia']))) { $diferencia = strip_tags($_POST['diferencia']); } else { $diferencia =''; }\n\t\tif (strip_tags(isset($_POST['comentarios']))) { $comentarios = strip_tags($_POST['comentarios']); } else { $comentarios =''; }\n\t\t$fechaapertura = strip_tags(date(\"Y-m-d h:i:s\",strtotime($_POST['fecharegistro'])));\n\t\t$fechacierre = strip_tags(date(\"0000-00-00 00:00:00\"));\n\t\t$statusarqueo = strip_tags(\"1\");\n\t\t$stmt->execute();\n\n\t\techo \"<div class='alert alert-success'>\";\n\t\techo \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\n\t\techo \"<span class='fa fa-check-square-o'></span> EL ARQUEO DE CAJA FUE REALIZADO EXITOSAMENTE\";\n\t\techo \"</div>\";\t\t\n\t\texit;\n\t}\n\telse\n\t{\n\t\techo \"2\";\n\t\texit;\n\t}\n}", "public static function registrarPelicula($idpelicula, $nombre, $direccion, $produccion, $guion, $musica, $pais, $ano, $estreno, $duracion, $idiomas, $productora, $distribucion, $presupuesto, $recaudacion, $generos, $argumento, $nombre_foto, $foto) {\n// . \"VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)\"; //Estos parametros seran sustituidos mas adelante por valores.\n// $stmt = conexion::$conexion->prepare($query);\n//\n//\n// $stmt->bind_param(\"isssssssssssssssssb\", $idpelicula, $nombre, $direccion, $produccion, $guion, $musica, $pais, $ano, $estreno, $duracion, $idiomas, $productora, $distribucion, $presupuesto, $recaudacion, $selected, $argumento, $nombre_foto, $foto);\n//\n// /* Ejecución de la sentencia. */\n// $stmt->execute();\n $activa = 0;\n if ($foto != null) {\n $query = \"INSERT INTO pelicula (idpelicula, nombre, direccion, produccion, guion, musica, pais, ano, estreno, duracion, idiomas, productora, distribucion, presupuesto, recaudacion, argumento, nombre_foto, foto, activa) \"\n . \"VALUES ('$idpelicula','$nombre','$direccion','$produccion','$guion','$musica','$pais','$ano','$estreno','$duracion','$idiomas','$productora','$distribucion','$presupuesto','$recaudacion','$argumento','$nombre_foto','$foto','$activa')\"; //Estos parametros seran sustituidos mas adelante por valores.\n } else {\n $query = \"INSERT INTO pelicula (idpelicula, nombre, direccion, produccion, guion, musica, pais, ano, estreno, duracion, idiomas, productora, distribucion, presupuesto, recaudacion, argumento, nombre_foto, foto, activa) \"\n . \"VALUES ('$idpelicula','$nombre','$direccion','$produccion','$guion','$musica','$pais','$ano','$estreno','$duracion','$idiomas','$productora','$distribucion','$presupuesto','$recaudacion','$argumento',NULL,NULL,'$activa')\"; //Estos parametros seran sustituidos mas adelante por valores.\n }\n mysqli_query(conexion::$conexion, $query);\n\n\n\n //Que esta llena la lista de generos la recorremos y la guardamos en la \n // variable generos\n foreach ($generos as $selected) {\n $queryID = \"SELECT idpelicula FROM pelicula WHERE nombre = '\" . $nombre . \"'\";\n $queryGenero = \"INSERT INTO pelicula_genero (idpelicula, generos_idgeneros) \"\n . \"VALUES ((\" . $queryID . \"),'$selected')\"; //Estos parametros seran sustituidos mas adelante por valores.\n mysqli_query(conexion::$conexion, $queryGenero);\n }\n }", "public function agregar($obj, $conex)\r\n {\r\n\r\n $cedula = $obj->getCedula();\r\n $usuario = $obj->getUsuario();\r\n $password= $obj->getPassword();\r\n $pNombre = $obj->getPNombre();\r\n //$sNombre = $obj->getSNombre();\r\n $pApellido = $obj->getPApellido();\r\n //$sApellido = $obj->getSApellido();\r\n $fNacimiento = $obj->getFecNac();\r\n $email = $obj->getEmail();\r\n //$calle = $obj->getCalle();\r\n //$numero = $obj->getNumero();\r\n //$esquina = $obj->getEsquina();\r\n //$cPostal = $obj->getCPostal();\r\n //$localidad = $obj->getLocalidad();\r\n //$departamento = $obj->getDepartamento();\r\n //$tipo = $obj->getTipo();\r\n //$estado = $obj->getEstado();\r\n //$rol = $obj->getRol();\r\n //$passwordadm = $obj->getPasswordADm();\r\n $activacion = bin2hex(mcrypt_create_iv(22, MCRYPT_DEV_URANDOM));\r\n //$baja = $obj->getBaja();\r\n\r\n \r\n\t\t//Encripto la password antes de guardarla --------------------------- \r\n $password=sha1($password);\r\n //Genera la sentencia a ejecutar\r\n\t\t//La sql que vale es la primera, pero hay que completar los parametros en el execute\r\n\r\n $sql = \"insert into USUARIO (CEDULA,USUARIO,PASSWORD,PNOMBRE,PAPELLIDO,FNACIMIENTO,EMAIL,ACTIVACION) values \r\n (:cedula, :usuario, :password, :pNombre, :pApellido, :fNacimiento,:email, :activacion)\";\r\n\r\n $result = $conex->prepare($sql);\t\t\r\n $result->execute(array(\":cedula\" => $cedula, \r\n \":usuario\" => $usuario,\r\n \":password\" => $password,\r\n \":pNombre\" => $pNombre, \r\n \":pApellido\" => $pApellido, \r\n \":fNacimiento\" => $fNacimiento,\r\n \":email\" => $email,\r\n \":activacion\" => $activacion));\r\n\r\n //Para saber si ocurrió un error\r\n if($result)\r\n {\r\n return(true);\r\n }\r\n else\r\n {\r\n return(false);\r\n }\r\n }", "function creer_membre($num_licence, $nom, $prenom, $date_naissance, $mdp) {\n static $query = null;\n\n if ($query == null) {\n $query = connectDB()->prepare(\"INSERT INTO t_membres(num_licence, nom, prenom, date_naissance, mdp) \n VALUES (:num_licence, :nom, :prenom, :date_naissance, :mdp)\");\n }\n\n $query->execute([\n \"num_licence\" => $num_licence,\n \"nom\" => $nom,\n \"prenom\" => $prenom,\n \"date_naissance\" => $date_naissance,\n \"mdp\" => sha1($mdp)\n ]);\n}", "function inserir() {\n\t\t$this->sql = mysql_query(\"INSERT INTO suporte (user_cad, data_cad, id_regiao, exibicao, tipo, prioridade, assunto, mensagem, arquivo, status, status_reg,suporte_pagina)\n\t\t\t\t\t VALUES\t('$this->id_user_cad ','$this->data_cad','$this->id_regiao', '$this->exibicao', '$this->tipo','$this->prioridade', '$this->assunto', '$this->menssagem', '$this->tipo_arquivo','1','1','$this->pagina');\") or die(mysql_error());\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\n\t\t}", "public function register($pseudo,$prenom,$nom,$email,$password,$classe,$datedenaissance,$sexe)\n {\n try\n {\n $passwordhash = passwordhash($password);\n\n $dateinscription = date('Y-m-d', time());\n $prenomplusnom = $prenom.\" \".$nom;\n $lastco = strftime('%d %B %Y à %H:%M');\n \n $stmt = $this->db->prepare(\"INSERT INTO users(pseudo,prenom,nom,prenomplusnom,email,password,classe,datedenaissance,sexe,dateinscription,notifMailPrive,allowFindSearch,comptePrive,lastco) VALUES(:pseudo, :prenom, :nom, :prenomplusnom, :email, :password, :classe, :datedenaissance, :sexe, :dateinscription, :notifMailPrive, :allowFindSearch, :comptePrive, :lastco)\"); \n $stmt->execute(array(\n 'pseudo' => $pseudo,\n 'prenom' => $prenom,\n 'nom' => $nom,\n 'prenomplusnom' => $prenomplusnom,\n 'email' => $email,\n 'password' => $passwordhash,\n 'classe' => $classe,\n 'datedenaissance' => $datedenaissance,\n 'sexe' => $sexe,\n 'dateinscription' => $dateinscription,\n 'notifMailPrive' => 'true',\n 'allowFindSearch' => 'true',\n 'comptePrive' => 'false',\n 'lastco' => $lastco\n ));\n \n return true; \n }\n catch(PDOException $e)\n {\n echo $e->getMessage();\n }\n }", "function registerChild($id_resp,$nom,$prenom,$age){\n$co = connect_me();\n$query = \"INSERT INTO enfant(id_enfant,id_responsable,nom,prenom,age) VALUES (NULL,'\".$id_resp.\"','\".$nom.\"','\".$prenom.\"',\".$age.\")\";\n\tif($res =$co->query($query)){\n\t\t$msg= \"<p class='message'>L'enregistrement s'est bien passé. <a href='index.php'> Retour à l'accueil</a></p>\";\n\t\t//header(\"Location: settings.php?query_res=\".$msg.\"\");\n\t}else{\n\t\t$msg= \"<p class='message_error'>L'enregistrement s'est mal passé.<a href='index.php'> Retour à l'accueil</a></p>\";\n\t\t//header(\"Location: settings.php?query_res=\".$msg.\"\");\n\t}\n\t$co->close();\n}", "function prelasesor(){\n include(\"../include/conectar.php\"); \n $query =\"UPDATE tblsemestrepro SET asesor = '$this->asesor' WHERE tblsemestrepro.id_semestrepro = $this->semestrepy;\";\n $sql = mysqli_query($conection, $query);\n mysqli_close($conection); \n if($sql){\n\t\t\t $p =\"relacion\";\n include('../plantillas/paso.php');\n } \n else\n throw new Exception (\"Error: No es posible registrar\");\n }", "function registrarModeloIns() {\n $Accion = \"\";\n $Datos[0] = $Accion;\n $Datos[1] = $this->getNModCodigo(); //1\n $Datos[2] = $this->getNModCodigo(); //1\n $Datos[3] = $this->getNModCodigo(); //1\n $query = $this->db->query(\"CALL USP_MOD_I_MODELO(?,?,?)\", $Datos);\n /*return $query;*/\n //$query = $this->db->query(\"CALL USP_MUL_I_HIJOS2(?,?,?,?)\", $Datos);\n $this->db->close();\n if($query){\n $query = $query->result_array();\n $this->setNModeloId($query[0]['nModID']);\n return true;\n }else{\n return false;\n }\n }", "public function RegistrarAbonos()\n{\n\tself::SetNames();\n\tif(empty($_POST[\"codcliente\"]) or empty($_POST[\"codventa\"]) or empty($_POST[\"montoabono\"]))\n\t{\n\t\techo \"1\";\n\t\texit;\n\t}\n\n\tif($_POST[\"montoabono\"] > $_POST[\"totaldebe\"])\n\t{\n\t\techo \"2\";\n\t\texit;\n\n\t} else {\n\n\t\t$query = \" insert into abonoscreditos values (null, ?, ?, ?, ?, ?, ?); \";\n\t\t$stmt = $this->dbh->prepare($query);\n\t\t$stmt->bindParam(1, $codventa);\n\t\t$stmt->bindParam(2, $codcliente);\n\t\t$stmt->bindParam(3, $montoabono);\n\t\t$stmt->bindParam(4, $fechaabono);\n\t\t$stmt->bindParam(5, $codigo);\n\t\t$stmt->bindParam(6, $codcaja);\n\n\t\t$codventa = strip_tags($_POST[\"codventa\"]);\n\t\t$codcliente = strip_tags($_POST[\"codcliente\"]);\n\t\t$montoabono = strip_tags($_POST[\"montoabono\"]);\n\t\t$fechaabono = strip_tags(date(\"Y-m-d h:i:s\"));\n\t\t$codigo = strip_tags($_SESSION[\"codigo\"]);\n\t\t$codcaja = strip_tags($_POST[\"codcaja\"]);\n\t\t$stmt->execute();\n\n\n$sql = \"select ingresos from arqueocaja where codcaja = '\".$_POST[\"codcaja\"].\"' and statusarqueo = '1'\";\n\t\tforeach ($this->dbh->query($sql) as $row)\n\t\t{\n\t\t\t$this->p[] = $row;\n\t\t}\n\t\t$ingreso = $row['ingresos'];\n\n\t\t$sql = \" update arqueocaja set \"\n\t\t.\" ingresos = ? \"\n\t\t.\" where \"\n\t\t.\" codcaja = ? and statusarqueo = '1';\n\t\t\";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->bindParam(1, $txtTotal);\n\t\t$stmt->bindParam(2, $codcaja);\n\n\t\t$txtTotal = strip_tags($_POST[\"montoabono\"]+$ingreso);\n\t\t$codcaja = strip_tags($_POST[\"codcaja\"]);\n\t\t$stmt->execute();\n\n\n############## ACTUALIZAMOS EL STATUS DE LA FACTURA ##################\n\t\tif($_POST[\"montoabono\"] == $_POST[\"totaldebe\"]) {\n\n\t\t\t$sql = \" update ventas set \"\n\t\t\t.\" statusventa = ? \"\n\t\t\t.\" where \"\n\t\t\t.\" codventa = ?;\n\t\t\t\";\n\t\t\t$stmt = $this->dbh->prepare($sql);\n\t\t\t$stmt->bindParam(1, $statusventa);\n\t\t\t$stmt->bindParam(2, $codventa);\n\n\t\t\t$codventa = strip_tags($_POST[\"codventa\"]);\n\t\t\t$statusventa = strip_tags(\"PAGADA\");\n\t\t\t$stmt->execute();\n\t\t}\n\n\t\techo \"<div class='alert alert-success'>\";\n\t\techo \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\n\t\techo \"<span class='fa fa-check-square-o'></span> EL ABONO AL CR&Eacute;DITO DE FACTURA FUE REGISTRADO EXITOSAMENTE <a href='reportepdf.php?codventa=\".base64_encode($codventa).\"&tipo=\".base64_encode(\"TICKETCREDITOS\").\"' class='on-default' data-placement='left' data-toggle='tooltip' data-original-title='Imprimir Ticket' target='_black'><strong>IMPRIMIR TICKET</strong></a>\";\n\t\techo \"</div>\";\n\t\texit;\n\t}\n}", "public function addtrajet(Trajet $trajet)\r\n{\r\n\t try\r\n {\r\n $stmt = $this->_db->prepare(\"INSERT INTO Trajet(Type,Num_Ville1,Num_Ville2,Date_aller,Date_retour,Heure_aller,Heure_retour,Prix,Nombre_place,ID_conducteur,Description) \r\n VALUES(:type, :num_ville1, :num_ville2, :date_aller, :date_retour, :heure_aller, :heure_retour, :prix, :nombre_place,:id_conducteur,:description)\");\r\n\t\t $stmt->bindValue(\":type\", $trajet->type());\r\n\t\t $stmt->bindValue(\":num_ville1\", $trajet->num_ville1());\r\n $stmt->bindValue(\":num_ville2\", $trajet->num_ville2());\r\n $stmt->bindValue(\":date_aller\",$trajet->date_aller()); \r\n\t\t $stmt->bindValue(\":date_retour\",$trajet->date_retour());\r\n $stmt->bindValue(\":heure_aller\", $trajet->heure_aller());\r\n $stmt->bindValue(\":heure_retour\",$trajet->heure_retour());\r\n\t\t $stmt->bindValue(\":prix\",$trajet->prix());\r\n\t\t $stmt->bindValue(\":nombre_place\",$trajet->nombre_place());\r\n\t\t $stmt->bindValue(\":id_conducteur\",$trajet->id_conducteur()); \r\n\t\t $stmt->bindValue(\":description\",$trajet->description()); \r\n $stmt->execute(); \r\n\t\t $trajet->hydrate(array('num_trajet' => $this->_db->lastInsertId()));\r\n \r\n return true; \r\n }\r\n catch(PDOException $e)\r\n {\r\n echo $e->getMessage();\r\n } \r\n }", "function ToRegister($prenom, $nom, $username, $mail, $EncryptedPassword)\r\n{\r\n $connexion = getDB();\r\n $erreurinscription = \"RAS\";\r\n\r\n $requetelog = \"SELECT Username,Mail FROM users\";\r\n\r\n $prepare = $connexion->prepare($requetelog);\r\n $prepare->execute();\r\n $resultats1 = $prepare->fetchAll();\r\n\r\n\r\n foreach ($resultats1 as $useremail) {\r\n if (strtoupper($mail) == strtoupper($useremail['Mail'])) {\r\n $erreurinscription = \"email\";\r\n return $erreurinscription;\r\n }\r\n if ($username == $useremail['Username']) {\r\n $erreurinscription = \"user\";\r\n return $erreurinscription;\r\n }\r\n }\r\n\r\n //Insertion des données de l'user\r\n $requetelog2 = \"INSERT into users (Username,Password,Nom,Prenom,Mail,Admin) VALUES(?,?,?,?,?,0);\";\r\n $prepare = $connexion->prepare($requetelog2);\r\n $prepare->execute(array($username,$EncryptedPassword,$nom,$prenom,$mail));\r\n\r\n\r\n return $erreurinscription;\r\n\r\n}", "static public function mdlIngresarEntrada($tabla, $datos){\n\t\t\n\t\t\n\n\t\n\t$stmt = Conexion::conectar()->prepare(\"INSERT INTO $tabla(codigo, id_responsable, id_proveedor,id_comprobante,comprobante, secuencia, descripcion, productos,neto,impuesto,total_pagar,fecha_emision,fecha_vencimiento) VALUES (:codigo, :id_responsable, :id_proveedor,:id_comprobante,:comprobante, :secuencia, :descripcion, :productos,:neto,:impuesto,:total_pagar,:fecha_emision,:fecha_vencimiento)\");\n\t\n\t\t\t$stmt->bindParam(\":codigo\", $datos[\"codigo\"], PDO::PARAM_STR);\n\t\t\t$stmt->bindParam(\":id_responsable\", $datos[\"id_responsable\"], PDO::PARAM_INT);\n\t\t\t$stmt->bindParam(\":id_proveedor\", $datos[\"id_proveedor\"], PDO::PARAM_STR);\n\t\t\t$stmt->bindParam(\":id_comprobante\", $datos[\"id_comprobante\"], PDO::PARAM_INT);\n\t\t\t$stmt->bindParam(\":comprobante\", $datos[\"comprobante\"], PDO::PARAM_STR);\n\t\t\t$stmt->bindParam(\":secuencia\", $datos[\"secuencia\"], PDO::PARAM_STR);\n\t\t\t$stmt->bindParam(\":descripcion\", $datos[\"descripcion\"], PDO::PARAM_STR);\n\t\t\t$stmt->bindParam(\":productos\", $datos[\"productos\"], PDO::PARAM_STR);\n\t\t\t$stmt->bindParam(\":neto\", $datos[\"neto\"], PDO::PARAM_STR);\n\t\t\t$stmt->bindParam(\":impuesto\", $datos[\"impuesto\"], PDO::PARAM_STR);\n\t\t\t$stmt->bindParam(\":total_pagar\", $datos[\"total_pagar\"], PDO::PARAM_STR);\t\t\n\t\t\t$stmt->bindParam(\":fecha_emision\", $datos[\"fecha_emision\"], PDO::PARAM_STR);\t\t\n\t\t\t$stmt->bindParam(\":fecha_vencimiento\", $datos[\"fecha_vencimiento\"], PDO::PARAM_STR);\t\t\n\n\n\n\n\n\n\t\tif($stmt->execute()){\n\n\t\t\treturn \"ok\";\n\n\t\t\t\n\n\t\t}else{\n\n\t\t\treturn $stmt->errorInfo();\n\t\t\n\t\t}\n\n\t\t$stmt->close();\n\t\t$stmt = null;\n\n\t}", "public function guardar(){\r\n\r\n\t $conexion = new Conexion();\r\n\t if($this->nombre ==true ){\r\n\t \t $consulta = $conexion->prepare('INSERT INTO ' . self::TABLA .' ( nombre,apellidos,edad,curso,transporteEscolar) \r\n\t \tVALUES(:nombre,:apellidos,:edad,:curso,:transporteEscolar)');\r\n\t \r\n\t $consulta->bindParam(':nombre', $this->nombre);\r\n\t $consulta->bindParam(':apellidos', $this->apellidos);\r\n\t $consulta->bindParam(':edad', $this->edad);\r\n\t $consulta->bindParam(':curso', $this->curso);\r\n\t $consulta->bindParam(':transporteEscolar', $this->transporteEscolar);\r\n\t $consulta->execute();\r\n\t\t\t$this->idAlumno = $conexion->lastInsertId();\r\n\t\t//\tif($respuesta1){\r\n\t\t//\t\treturn $respuesta1;\r\n\t\t//\t}\t\r\n\t\t\techo \"<h2 style='color:white;'>El Alumno se ha registrado con el id: \" . $this->idAlumno.\"</h2>\";\r\n\t\t\t printf (\"<br/><a href='registroAlumnos.php'><button class='lila'>Volver</button></a>\");\t\r\n\t\t}else{\r\n\t\t\techo \"<h2 style='color:white;'>No se pudo realizar el registro.</h2>\";\r\n\t\t\t printf (\"<br/><a href='registroAlumnos.php'><button class='lila'>Volver</button></a>\");\r\n\t\t}\r\n\t\t$conexion = null; \r\n\t\t}", "static public function mdlIngresarUsuario($tabla, $datos){\n\n $stmt = Conexion::conectar()->prepare(\"INSERT INTO $tabla(nombres,apellidos,tipo_documento,documento,celular,email,profesion,tipo_vinculacion,cvlac,cargo,ficha,fecha_vinculacion,fecha_desvinculacion,estado_vinculacion,contrasena,id_programa,id_rol ) VALUES (:nombres,:apellidos,:tipo_documento,:documento,:celular,:email,:profesion,:tipo_vinculacion,:cvlac,:cargo,:ficha,:fecha_vinculacion,:fecha_desvinculacion,:estado_vinculacion,:contrasena,:id_programa,:id_rol)\");\n\n $p=null;\n if($datos[\"id_programa\"]==\"NULL\"){\n $p=null;\n }else{\n $p=$datos[\"id_programa\"];\n }\n\n $stmt->bindParam(\":nombres\", $datos[\"nombres\"], PDO::PARAM_STR);\n $stmt->bindParam(\":apellidos\", $datos[\"apellidos\"], PDO::PARAM_STR);\n $stmt->bindParam(\":tipo_documento\", $datos[\"tipo_documento\"], PDO::PARAM_STR);\n $stmt->bindParam(\":documento\", $datos[\"documento\"], PDO::PARAM_STR);\n $stmt->bindParam(\":celular\", $datos[\"celular\"], PDO::PARAM_STR);\n $stmt->bindParam(\":email\", $datos[\"email\"], PDO::PARAM_STR);\n $stmt->bindParam(\":profesion\", $datos[\"profesion\"], PDO::PARAM_STR);\n $stmt->bindParam(\":tipo_vinculacion\", $datos[\"tipo_vinculacion\"], PDO::PARAM_STR);\n $stmt->bindParam(\":cvlac\", $datos[\"cvlac\"], PDO::PARAM_STR);\n $stmt->bindParam(\":cargo\", $datos[\"cargo\"], PDO::PARAM_STR);\n $stmt->bindParam(\":ficha\", $datos[\"ficha\"], PDO::PARAM_STR);\n $stmt->bindParam(\":fecha_vinculacion\", $datos[\"fecha_vinculacion\"], PDO::PARAM_STR);\n $stmt->bindParam(\":fecha_desvinculacion\", $datos[\"fecha_desvinculacion\"], PDO::PARAM_STR);\n $stmt->bindParam(\":estado_vinculacion\", $datos[\"estado_vinculacion\"], PDO::PARAM_STR);\n $stmt->bindParam(\":contrasena\", $datos[\"contrasena\"], PDO::PARAM_STR);\n $stmt->bindParam(\":id_programa\", $p, PDO::PARAM_STR);\n $stmt->bindParam(\":id_rol\", $datos[\"id_rol\"], PDO::PARAM_STR);\n \n if($stmt->execute()){\n\n return \"ok\";\n\n }else{\n\n return \"error\";\n\n }\n\n $stmt->close();\n\n $stmt = null;\n\n }", "function insertarReserva($conexion, $reservaForm)\n{\n\n\ttry {\n\t\t//Formateamos la fecha introducida para introducida en la base de datos\n\t\t$fechaLlegada = date('d/m/Y', strtotime($reservaForm[\"FechaLlegada\"]));\n\t\t$fechaSalida = date('d/m/Y', strtotime($reservaForm[\"FechaSalida\"]));\n\t\t$mayor = $reservaForm[\"MayoriaEdad\"];\n\t\t$comedor = $reservaForm[\"pagoComedor\"];\n\n\t\t//Formateamos las checkbox para introducirla en la base de datos\n\t\tif ($mayor == \"on\") {\n\t\t\t$mayor = \"1\";\n\t\t\t$mayor = (integer)$mayor;\n\t\t} else {\n\t\t\t$mayor = \"0\";\n\t\t\t$mayor = (integer)$mayor;\n\t\t}\n\t\tif ($comedor == \"on\") {\n\t\t\t$comedor = \"1\";\n\t\t\t$comedor = (integer)$comedor;\n\t\t} else {\n\t\t\t$comedor = \"0\";\n\t\t\t$comedor = (integer)$comedor;\n\t\t}\n\t\t//Convertimos el código postal en Integer\n\t\t$codPostal = $reservaForm[\"CodigoPostal\"];\n\t\t$codPostal = (integer)$codPostal;\n\n\t\t//Llamamos al procedure que está en la base de datos\n\t\t$reservar = \"CALL INSERTAR_RESERVA(:dni, :nombre, :ape1, :ape2, :sex, :may, :pai, :pob,\n\t\t\t\t\t\t\t\t\t\t\t :cod, :dom, :corr, :corp, :pas, :lleg, :sal, :pag, :fpag, :pagc)\";\n\t\t$stmt = $conexion->prepare($reservar);\n\t\t$stmt->bindParam(':dni', $reservaForm[\"DNI\"]);\n\t\t$stmt->bindParam(':nombre', $reservaForm[\"Nombre\"]);\n\t\t$stmt->bindParam(':ape1', $reservaForm[\"PrimerApellido\"]);\n\t\t$stmt->bindParam(':ape2', $reservaForm[\"SegundoApellido\"]);\n\t\t$stmt->bindParam(':sex', $reservaForm[\"Sexo\"]);\n\t\t$stmt->bindParam(':may', $mayor);\n\t\t$stmt->bindParam(':pai', $reservaForm[\"paises\"]);\n\t\t$stmt->bindParam(':pob', $reservaForm[\"Poblacion\"]);\n\t\t$stmt->bindParam(':cod', $codPostal);\n\t\t$stmt->bindParam(':dom', $reservaForm[\"Domicilio\"]);\n\t\t$stmt->bindParam(':corr', $reservaForm[\"CorreoElectronico\"]);\n\t\t$stmt->bindParam(':corp', $reservaForm[\"CorreoPadre\"]);\n\t\t$stmt->bindParam(':pas', $reservaForm[\"pass\"]);\n\t\t$stmt->bindParam(':lleg', $fechaLlegada);\n\t\t$stmt->bindParam(':sal', $fechaSalida);\n\t\t$stmt->bindParam(':pag', $reservaForm[\"TipoPago\"]);\n\t\t$stmt->bindParam(':fpag', $reservaForm[\"FormaPago\"]);\n\t\t$stmt->bindParam(':pagc', $comedor);\n\t\t$stmt->execute();\n\t} catch (PDOException $e) {\n\t\t$_SESSION['excepcion'] = $e->GetMessage();\n\t\theader(\"Location: excepcion.php\");\n\t}\n}", "function inserirAgencia(){\n\n $banco = abrirBanco();\n //declarando as variáveis usadas na inserção dos dados\n $nomeAgencia = $_POST[\"nomeAgencia\"];\n $cidadeAgencia = $_POST[\"cidadeAgencia\"];\n\n //a consulta sql\n $sql = \"INSERT INTO Agencias(nomeAgencia,cidadeAgencia) VALUES ('$nomeAgencia','$cidadeAgencia')\";\n \n //executando a inclusão\n $banco->query($sql);\n //fechando a conexao com o banco\n $banco->close();\n voltarIndex();\n\n }", "function AjouterExemplaires($connexion, $numeroLivre, $achat, $edition, $etat, $vide)\n{\n $request = $connexion->prepare(\"SELECT ID_livre FROM livres WHERE ID_livre = :numero\");\n $request->bindParam(\":numero\", $numeroLivre);\n $request->execute();\n if($request->fetchColumn()){\n $numeroExemplaire = rand(0, 9999);\n $request = $connexion->prepare(\"SELECT ID_exemplaire FROM exemplaire WHERE ID_exemplaire = :numero\");\n $request->bindParam(\":numero\", $numeroExemplaire);\n $request->execute();\n if($request->fetchColumn()){\n header(\"Location:../ListeErreurs.php?numeroAleatoire_erreur\");\n }\n else{\n $insert = $connexion->prepare(\"INSERT INTO exemplaire VALUES(:numero, :achat, :etat, :edition)\");\n $insert->bindParam(\":numero\", $numeroExemplaire);\n $insert->bindParam(\":achat\", $achat);\n $insert->bindParam(\":etat\", $etat);\n $insert->bindParam(\":edition\", $edition);\n $insert->execute();\n\n $insert = $connexion->prepare(\"INSERT INTO emprunt(Disponibilite,ID_exemplaire) VALUES('Disponible', :numero)\");\n $insert->bindParam(\":numero\", $numeroExemplaire);\n $insert->execute();\n InsertionNumero($connexion, $numeroLivre, $numeroExemplaire, $vide);\n }\n }\n else{\n header(\"Location:../ListeErreurs.php?EchecNumeroLivre=\". 0);\n }\n}", "public function RegistrarSalas()\n{\n\tself::SetNames();\n\tif(empty($_POST[\"nombresala\"]))\n\t{\n\t\techo \"1\";\n\t\texit;\n\t}\n\t$sql = \" select nombresala from salas where nombresala = ? \";\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->execute( array($_POST[\"nombresala\"]) );\n\t$num = $stmt->rowCount();\n\tif($num == 0)\n\t{\n\t\t$query = \" insert into salas values (null, ?, ?); \";\n\t\t$stmt = $this->dbh->prepare($query);\n\t\t$stmt->bindParam(1, $nombresala);\n\t\t$stmt->bindParam(2, $salacreada);\n\n\t\t$nombresala = strip_tags($_POST[\"nombresala\"]);\n\t\t$salacreada = strip_tags(date(\"Y-m-d h:i:s\"));\n\t\t$stmt->execute();\n\n\n\t\techo \"<div class='alert alert-success'>\";\n\t\techo \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\n\t\techo \"<span class='fa fa-check-square-o'></span> LA SALA DEL RESTAURANT FUE REGISTRADA EXITOSAMENTE\";\n\t\techo \"</div>\";\t\t\n\t\texit;\n\t}\n\telse\n\t{\n\t\techo \"2\";\n\t\texit;\n\t}\n}", "function ajoue_proprietaire($nom,$CA,$debut_contrat,$fin_contrat)\r\n{ $BDD=ouverture_BDD_Intranet_Admin();\r\n\r\n if(exist($BDD,\"proprietaire\",\"nom\",$nom)){echo \"nom deja pris\";return;}\r\n\r\n $SQL=\"INSERT INTO `proprietaire` (`ID`, `nom`, `CA`, `debut_contrat`, `fin_contrat`) VALUES (NULL, '\".$nom.\"', '\".$CA.\"', '\".$debut_contrat.\"', '\".$fin_contrat.\"')\";\r\n\r\n $result = $BDD->query ($SQL);\r\n\r\n if (!$result)\r\n {echo \"<br>SQL : \".$SQL.\"<br>\";\r\n die('<br>Requête invalide ajoue_equipe : ' . mysql_error());}\r\n}", "public function registrarConsulta(){\n\t\tConexion::getConexion();\n\t\t$con = Conexion::$conexion;\n\t\t$ins = $con->prepare(\"INSERT INTO consulta(idconsulta, idpaciente, fechaconsulta, consulta) VALUES (:idconsulta,:idpaciente,:fechaconsulta,:consulta)\");\n\t\t$ins->execute(array(\n\t\t\t\":idconsulta\" => 0,\n\t\t\t\":idpaciente\" => $this->getIdPaciente(),\n\t\t\t\":fechaconsulta\" => $this->getFechaConsulta(),\n\t\t\t\":consulta\" => $this->getConsultaCadena()\n\t\t\t));\n\t\tConexion::killConexion();\n\t\tif ($ins) {\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "function ajouter_commande($date,$id_client,$prix_commande){\r\n\tglobal $bdd;\r\n\r\n\t$req=$bdd->prepare('INSERT INTO commande(id_commande, date_commande, client_id, prix_commande) VALUES (:id_commande, :date_commande, :client_id, :prix_commande)');\r\n\r\n\t$req->execute(array(\r\n\t\t'id_commande'=>'',\r\n\t\t'date_commande'=>$date,\r\n\t\t'client_id'=>$id_client,\r\n\t\t'prix_commande'=>$prix_commande));\r\n\r\n}", "function registra_noleggio($payload, $conn)\n {\n $restituita = 'N';\n $targa = $payload['targa'];\n $cf = $payload['cf'];\n $inizio = $payload['inizio'];\n $fine = $payload['fine'];\n $stmt = $conn->prepare('INSERT INTO noleggi(targa,cf, inizio, fine, restituita) VALUES (?,?,?,?,?)');\n if(!$stmt)\n echo $conn->error;\n $stmt->bind_param(\"sssss\", $targa, $cf, $inizio, $fine, $restituita);\n $stmt->execute();\n echo 'noleggio è stato inserito';\n }", "function registrarUsuario($nombre,$apellidos,$email,$edad,$puntos,$passW)\n {\n $consulta =\"INSERT INTO usuario (nombre,apellidos,email,edad,puntos,password) VALUES ('$nombre','$apellidos','$email',$edad,$puntos,'$passW')\";\n if($this->conexion->query($consulta))\n {\n \n }else{ \n echo \"Falló la creación de la tabla: (\" . $this->conexion->errno . \")// \" . $this->conexion->error.\"<br>\";\n }\n }", "public static function add($entreprise){\n $con=new connexion();\n $resultat=$con->executeactualisation(\"insert into tblentreprise (id_entreprise,admin_id,nom,logo,ville_id,adresse_complete,etat,date_ajout,date_modifier)\n values('\" . $entreprise->ident . \"','\" . $entreprise->adminid . \"','\" . $entreprise->nom . \"','\" . $entreprise->logo . \"','\" . $entreprise->villeid . \"','\" . $entreprise->adressecomp . \"',1,NOW(),NOW())\");\n $con->closeconnexion();\n\n }", "function add($nombre,$correo){\n\t\tglobal $conn;\n\t\t//$sql = \"INSERT INTO usuario (nombre,correo) VALUES ('$nombre','$correo')\";\n\t\t$stmt = $conn->prepare('INSERT INTO user (email,nombre) VALUES ( :email,:password)');\n\t\t//$stmt->bindParam(':nombre', $nombre);\n\t\t$stmt->bindParam(':email', $nombre);\n\t\t$stmt->bindParam(':password', $correo);\n\t\t$stmt->execute();\n\t\t//$conn->query($sql);\n\t}", "public function cadastro(){\n\n $query = \"insert into usuario\n set\n email=:e,\n senha=:s,\n nome=:n,\n telefone=:t,\n cpf=:c,\n foto=:f\";\n \n $stmt = $this->conn->prepare($query);\n\n \n //vamos usar uma função para retirar \n //todos os caracteres especiais vindos de \n //uma pagina html\n //isso fará com que você evite a execução \n //de comandos maliciosos no banco de dados\n //comandos de sqlinject\n\n $this->email = htmlspecialchars(strip_tags($this->email));\n $this->senha = htmlspecialchars(strip_tags($this->senha));\n $this->nome = htmlspecialchars(strip_tags($this->nome));\n $this->telefone = htmlspecialchars(strip_tags($this->telefone));\n $this->cpf = htmlspecialchars(strip_tags($this->cpf));\n $this->foto = htmlspecialchars(strip_tags($this->foto));\n\n //Vamos fazer i, bindParam(ligação de parametros) entre os dados\n //enviado pelo usuario no navegador ou smartphone para o banco \n //da dados\n\n $stmt->bindParam(\":e\",$this->email);\n $stmt->bindParam(\":s\",md5($this->senha));\n $stmt->bindParam(\":n\",$this->nome);\n $stmt->bindParam(\":c\",$this->cpf);\n $stmt->bindParam(\":t\",$this->telefone);\n $stmt->bindParam(\":f\",$this->foto);\n\n //executar a comsulta e verificar se cadastrou \n if ($stmt->execute()){\n return true;\n\n }\n return false;\n\n}", "function enregistrerMembreJuryEpreuve(){\n $this->vue->titre='';\n $this->informations();\n $tableMembresJuryEpreuve=new Zoraux_Modeles_MembreJuryEpreuve();\n $tableMembresJuryEpreuve->supprimerMembreJuryEpreuve($_POST['epreuve_id']);\n foreach($_POST['professeur_id'] as $membreJury_id){\n $membreJuryEpreuve=$tableMembresJuryEpreuve->newMembreJuryEpreuve();\n $membreJuryEpreuve->epreuve_id=$_POST['epreuve_id'];\n $membreJuryEpreuve->membreJury_id=$membreJury_id;\n $membreJuryEpreuve->enregistrer();\n }\n foreach($_POST['professionnel_id'] as $membreJury_id){\n $membreJuryEpreuve=$tableMembresJuryEpreuve->newMembreJuryEpreuve();\n $membreJuryEpreuve->epreuve_id=$_POST['epreuve_id'];\n $membreJuryEpreuve->membreJury_id=$membreJury_id;\n $membreJuryEpreuve->enregistrer();\n }\n }", "public function agregar_empresa_controlador(){\n\t\t$codigo=mainModel::limpiar_cadena($_POST[\"cc-reg\"]);\n\t\t$nombre=mainModel::limpiar_cadena($_POST[\"nombre-reg\"]);\n\t\t$telefono=mainModel::limpiar_cadena($_POST[\"telefono-reg\"]);\n\t\t$email=mainModel::limpiar_cadena($_POST[\"email-reg\"]);\n\t\t$direccion=mainModel::limpiar_cadena($_POST[\"direccion-reg\"]);\n\t\t$director=mainModel::limpiar_cadena($_POST[\"director-reg\"]);\n\t\t$telefono2=mainModel::limpiar_cadena($_POST[\"telefono2-reg\"]);\n\t\t$year=mainModel::limpiar_cadena($_POST[\"year-reg\"]);\n\t\t\n\t\t\n\t\t$consulta1=mainModel::ejecutar_consulta_simple(\"SELECT EmpresaCodigo FROM empresa WHERE EmpresaCodigo='$codigo'\");\n\t\t\t\t\n\t\t\tif ($consulta1->rowCount()<=0){\n\n\t\t\t\t$consulta2=mainModel::ejecutar_consulta_simple(\"SELECT EmpresaNombre FROM empresa WHERE EmpresaNombre='$nombre'\");\t\n\n\t\t\t\tif($consulta2->rowCount()<=0){\n\t\t\t\t\t$datosEmpresa=[\n\t\t\t\t\t\t\"Codigo\"=>$codigo,\n\t\t\t\t\t\t\"Nombre\"=>$nombre,\n\t\t\t\t\t\t\"Telefono\"=>$telefono,\n\t\t\t\t\t\t\"Email\"=>$email,\n\t\t\t\t\t\t\"Direccion\"=>$direccion,\n\t\t\t\t\t\t\"Director\"=>$director,\n\t\t\t\t\t\t\"Telefono2\"=>$telefono2,\n\t\t\t\t\t\t\"Year\"=>$year\n\t\t\t\t\t\t];\n\t\t\t\t\t$guardarEmpresa=empresaModelo::agregar_empresa_modelo($datosEmpresa);\n\t\t\t\t\tif($guardarEmpresa->rowCount()>=1){\n\t\t\t\t\t\t$alerta=[\n\t\t\t\t\t\t\t\"Alertas\"=>\"recargar\",\n\t\t\t\t\t\t\t\"Titulo\"=>\"Registro exitoso\",\n\t\t\t\t\t\t\t\"Texto\"=>\"Se ha registrado la empresa en el sistema\",\n\t\t\t\t\t\t\t\"Tipo\"=>\"success\"\n\t\t\t\t\t\t\t];\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$alerta=[\n\t\t\t\t\t\t\t\"Alertas\"=>\"simple\",\n\t\t\t\t\t\t\t\"Titulo\"=>\"Ocurrio un error inesperado\",\n\t\t\t\t\t\t\t\"Texto\"=>\"No se ha podido registrar la Empresa en el sistema\",\n\t\t\t\t\t\t\t\"Tipo\"=>\"error\"\n\t\t\t\t\t\t\t];\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t$alerta=[\n\t\t\t\t\t\"Alertas\"=>\"simple\",\n\t\t\t\t\t\"Titulo\"=>\"Ocurrio un error inesperado\",\n\t\t\t\t\t\"Texto\"=>\"El nombre de la empresa que acaba de ingresar ya se encuentra resgitrada en el sistema\",\n\t\t\t\t\t\"Tipo\"=>\"error\"\n\t\t\t\t\t];\n\t\t\t\t}\n\n\t\t\t}else{\n\t\t\t\t$alerta=[\n\t\t\t\t\t\"Alertas\"=>\"simple\",\n\t\t\t\t\t\"Titulo\"=>\"Ocurrio un error inesperado\",\n\t\t\t\t\t\"Texto\"=>\"El NIT que acaba de ingresar ya se encuentra resgitrada en el sistema\",\n\t\t\t\t\t\"Tipo\"=>\"error\"\n\t\t\t\t\t];\n\t\t\t}\n\t\t\treturn mainModel::sweet_alert($alerta);\n\t}", "public function save(){\n $statement =\"INSERT INTO conf_usuario(email,username,pass,estado,id_rol,id_persona,id_main)\n values(:Email,:Username,:Pass,:Estado,:IdRol,:IdPersona,:IdMain)\";\n $sql= MainModel::getConection()->prepare($statement);\n $sql->bindParam(\":Email\",$this->getEmail());\n $sql->bindParam(\":Username\",$this->getUsername());\n $sql->bindParam(\":Pass\",$this->getPass());\n $sql->bindParam(\":Estado\",$this->getEstado());\n $sql->bindParam(\":IdRol\",$this->getId_rol());\n $sql->bindParam(\":IdPersona\",$this->getId_persona());\n $sql->bindParam(\":IdMain\",$this->getId_main());\n $sql->execute();\n return $sql;\n }", "public function Registrar_Ref_Personal(HojaVida $data){\n $modelo = new HojaVida();\n $fechahora = $modelo->get_fecha_actual();\n $datosfecha = explode(\" \",$fechahora);\n $fechalog = $datosfecha[0];\n $horalog = $datosfecha[1];\n \n $tiporegistro = \"Referencia Personal\";\n $accion = \"Registra una Nueva \".$tiporegistro.\" En el Sistema (Hoja vida) TALENTO HUMANO\";\n $detalle = $_SESSION['nombre'].\" \".$accion.\" \".$fechalog.\" \".\"a las: \".$horalog;\n $tipolog = 15;\n $idusuario = $_SESSION['idUsuario'];\n \n try {\n $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\t\t\n //EMPIEZA LA TRANSACCION\n $this->pdo->beginTransaction();\n\n $sql = \"INSERT INTO `th_referencias_personales`(`ref_id_hv`, `ref_id_usuario`, `ref_id_usuarioR`, `ref_nombre`, `ref_cargo`, `ref_empresa`, `ref_telefono`) \n VALUES (?,?,?,?,?,?,?)\";\n $this->pdo->prepare($sql)\n ->execute(\n array(\n $data->id,\n $data->usuario,\n $idusuario,\n $data->ref_per_nombre,\n $data->ref_per_cargo,\n $data->ref_per_empresa,\n $data->ref_per_telefono\n )\n ); \n $this->pdo->exec(\"INSERT INTO log (fecha, accion,detalle,idusuario,idtipolog) VALUES ('$fechalog', '$accion','$detalle','$idusuario','$tipolog')\");\n \n //SE TERMINA LA TRANSACCION \n $this->pdo->commit();\n } catch (Exception $e) {\n $this->pdo->rollBack();\n die($e->getMessage());\n }\n }", "function registrarEnvioDetalles(){\n\t\t$x = $this->pdo->prepare('INSERT INTO enviodetalles (cedulaCliente,empresa,telefono,fechaEnvio) VALUES (?,?,?,?)');\n\t\t$x->execute(array($this->cedulaCliente,$this->empresa,$this->telefono,$this->fechaEnvio));\n\t\treturn $x;\n\t}", "function ajouterCommande($idUser,$idAdmin,$montantCommande){\n require(\"./modele/connexionBD.php\");\n $sql_ajt = \"INSERT INTO `commande`(`EtatCommande`, `MontantCommande`, `DateCommande`,`idAdmin`, `idUtilisateur`) \n VALUES ('En cours',:montant,now(),:idAdmin,:idUser);\";\n try {\n $statement = $pdo->prepare($sql_ajt);\n $statement->bindParam(':montant', $montantCommande);\n $statement->bindParam(':idUser', $idUser);\n $statement->bindParam(':idAdmin',$idAdmin);\n $statement->setFetchMode(PDO::FETCH_ASSOC);\n $statement->execute();\n $commandeUser=commandeUserLast($idUser);\n return $commandeUser;\n } catch (PDOException $e) {\n echo utf8_encode(\"Echec de select : \" . $e->getMessage() . \"\\n\");\n die();\n }\n}", "private function registrarLocalmente()\n\t{\n\t\t$conexionBd = new ConectorBaseDatos();\n\t\t$conexionBd->Sentencia = sprintf(\"INSERT UsuarioFacebook (IdFacebook, DatosFacebook, ValidadoPor, FbAccessToken) VALUES (%s, %s, NULL, %s)\",\n\t\t$conexionBd->Escapar($this->IdFacebook),\n\t\t$conexionBd->Escapar(addslashes(serialize($this->DatosFacebook))),\n\t\t$conexionBd->Escapar($this->accessToken)\n\t\t);\n\t\t$conexionBd->EjecutarComando();\n\t\t$conexionBd->Desconectar();\n\t}", "function registrarGuia($ulimoIdGuia, $numremesa, $idestablecimiento, $iddestinatario, $formaPago, $pesokg, $alto, $ancho, $largo, $unidades, $pesocobrar, $valorDeclarado, $flete, $costomanejo, $totalflete, $tipocarga, $idoperario, $numplaca, $idoperarioext, $estadocarga, $estadoRecogida, $observaciones, $idusaurio, $fechaRegistro) {\n \t\t $data = array('id_control' => $ulimoIdGuia,\n \t'nro_remesa' => $numremesa,\n 'id_establecimientos' => $idestablecimiento,\n \n 'id_destinatario' => $iddestinatario,\n 'forma_pago' => $formaPago,\n 'unidades' => $unidades,\n 'peso' => $pesokg,\n 'pv_alto' => $alto,\n 'pv_ancho' => $ancho,\n 'pv_largo' => $largo,\n 'peso_cobrar' => $pesocobrar,\n 'valor_declarado' => $valorDeclarado,\n 'flete' => $flete,\n 'costo_manejo' => $costomanejo,\n 'total_fletes' => $totalflete,\n 'tipo_carga' => $tipocarga,\n 'id_usuario_operario' => $idoperario,\n 'nro_placa' => $numplaca,\n 'id_operario' => $idoperarioext,\n 'estado_carga' => $estadocarga,\n 'estado_control' => $estadoRecogida,\n 'observaciones' => $observaciones,\n 'estado_contable' => 0,\n 'id_usuario' => $idusaurio,\n 'fecha_registro' => $fechaRegistro);\n $this->db->insert('txtar_admin_control', $data);\n $this->db->close();\n //echo $this->db->last_query();\n }", "function ajouterPraticien($unNom, $unPrenom, $uneAdresse, $uneTel, $uneSpe, $unDepartement, $uneNotoriete, $unType, &$tabErr)\n {\n $idConnexion = connecterServeurBD();\n \n // Si la connexion au SGBD à réussi\n if ($idConnexion) \n {\n // sélectionner la base de donnée\n activerBD($idConnexion);\n \n // Vérifier que la référence saisie n'existe pas déja\n $requete=\"select * from praticien\";\n $requete=$requete.\" where PRA_NOM = '\".$unNom.\"';\"; \n $jeuResultat=mysql_query($requete,$idConnexion);\n $ligne=mysql_fetch_assoc($jeuResultat);\n echo\"test\",$requete;\n if($ligne)\n {\n $message=\"Echec de l'ajout : le praticien existe déjà !\";\n ajouterErreur($tabErr, $message);\n \n }\n else\n {\n // Créer la requête d'ajout \n $requete=\"insert into praticien\"\n .\"(PRA_NOM, PRA_PRENOM, PRA_ADRESSE, PRA_TEL, PRA_SPECIALITE_COMP, PRA_DEPARTEMENT, PRA_COEFNOTORIETE, TYP_CODE) values ('\"\n \n .$unNom.\"','\"\n .$unPrenom.\"','\"\n .$uneAdresse.\"','\"\n .$uneTel.\"','\"\n .$uneSpe.\"','\"\n .$unDepartement.\"','\"\n .$uneNotoriete.\"','\"\n .$unType.\"');\";\n // Lancer la requête d'ajout \n $ok= mysql_query($requete,$idConnexion);\n \n // Si la requête a réussi\n if ($ok)\n {\n \n $message = \"Le praticien a été correctement ajoutée\";\n ajouterErreur($tabErr, $message);\n echo \"test\",$message;\n }\n else\n {\n $message = \"Attention, l'ajout du praticien a échoué !!!\";\n ajouterErreur($tabErr, $message);\n } \n\n }\n \n }\n else\n {\n $message = \"problème à la connexion <br />\";\n ajouterErreur($tabErr, $message);\n }\n}", "function insertarHerrajeaccesorio(){\n\t\t$this->procedimiento='snx.ft_herrajeaccesorio_ime';\n\t\t$this->transaccion='SNX_HAC_INS';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('herrajeaccesorio','herrajeaccesorio','varchar');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "public function insererBD()\r\n {\r\n // Connexion à la base\r\n self::connexionBD();\r\n \r\n // Prépare la requête\r\n $requete = self::getBaseDeDonnees()->getCnxBD()->prepare(self::RQT_AJOUTER_UTIL);\r\n \r\n // Exécution de la requête avec les paramètres.\r\n return $requete->execute(array(\r\n ':login' => $this->login,\r\n ':mdp' => $this->mdp,\r\n ':email' => $this->email,\r\n ':type' => $this->type\r\n ));\r\n }", "function saveNew() {\n\t\t$this->prepareForDb(); \n\t\t$query = \"INSERT INTO `\".sql_table('plug_miniforum_templates').\"` \".\n\t\t\t $this->prepareQuery();\t\t\n\t\t\t\t\t\n\t\tsql_query($query);\n }", "function create(){\n $query = \"INSERT INTO trabajo SET Nombre = :Nombre, Requisitos = :Requisitos, Conocimientos = :Conocimientos, Beneficios = :Beneficios, Fecha_Publicacion = :Fecha_Publicacion;\";\n \n // prepare query\n $stmt = $this->conn->prepare($query);\n \n // sanitize\n $this->Nombre=htmlspecialchars(strip_tags($this->Nombre));\n $this->Requisitos=htmlspecialchars(strip_tags($this->Requisitos));\n $this->Conocimientos=htmlspecialchars(strip_tags($this->Conocimientos));\n $this->Beneficios=htmlspecialchars(strip_tags($this->Beneficios));\n $this->Fecha_Publicacion=htmlspecialchars(strip_tags($this->Fecha_Publicacion));\n \n // bind values\n $stmt->bindParam(\":Nombre\", $this->Nombre);\n $stmt->bindParam(\":Requisitos\", $this->Requisitos);\n $stmt->bindParam(\":Conocimientos\", $this->Conocimientos);\n $stmt->bindParam(\":Beneficios\", $this->Beneficios);\n $stmt->bindParam(\":Fecha_Publicacion\", $this->Fecha_Publicacion);\n \n // execute query\n if($stmt->execute()){\n return true;\n }\n \n return false;\n \n }", "public function criar(Evento $evet){\n $securty = new SegurancaDao();\n $login=$_SESSION['login'];\n try {\n parent::setTabela('evento');\n parent::setCampos('nomeEvento,descricao,categoria,dtLimiteInscr,hrLimiteInscr,dataRealiza,horaInicioRealiza,horaFimRealiza,estado,ambito,dataCriacao,anexo,idSala,idDocente');\n parent::setDados(':nomeEvento,:descricao,:categoria,:dtLimiteInscr,:hrLimiteInscr,:dataRealiza,:horaInicioRealiza,:horaFimRealiza,:estado,:ambito,:dataCriacao,:anexo,:idSala,:idDocente');\n\n //chamada da query que vai montar o inserte\n $inserir = parent::inserir();\n $inserir->bindParam(':nomeEvento', $evet->getNome(), PDO::PARAM_STR);\n $inserir->bindParam(':descricao', $evet->getDescricao(), PDO::PARAM_STR);\n $inserir->bindParam(':categoria', $evet->getCategoria(), PDO::PARAM_STR);\n $inserir->bindParam(':dtLimiteInscr', $evet->getDataLimiteInscricao(), PDO::PARAM_STR);\n $inserir->bindParam(':hrLimiteInscr', $evet->getHoraLimiteInscricao());\n $inserir->bindParam(':dataRealiza', $evet->getDataRealiz());\n $inserir->bindParam(':horaInicioRealiza', $evet->getHora_inicioRealiz());\n $inserir->bindParam(':horaFimRealiza', $evet->getHora_fimRealiz());\n $inserir->bindParam(':estado', $evet->getEstado(), PDO::PARAM_INT);\n $inserir->bindParam(':ambito', $evet->getAmbito(), PDO::PARAM_STR);\n $inserir->bindParam(':dataCriacao', $evet->getDataCriacao());\n $inserir->bindParam(':anexo', $evet->getAnexo(), PDO::PARAM_STR);\n $inserir->bindParam(':idSala', $evet->getId_Sala());\n $inserir->bindParam(':idDocente', $login->idUser);\n $retorno = $inserir->execute();\n /* recuperando o ultimo id inserido */\n $evet->setIdEvento(parent::getId()->lastInsertId());\n\n /**vai destroir a session do formulario do evento*/\n $securty->destroyToken();\n\n if ($retorno) :\n\n return TRUE;\n\n else :\n\n return FALSE;\n\n endif;\n\n } catch (Exception $exc) {\n return $exc->getMessage();\n }\n }", "public function RegistrarMesas()\n{\n\tself::SetNames();\n\tif(empty($_POST[\"codsala\"]) or empty($_POST[\"nombremesa\"]))\n\t{\n\t\techo \"1\";\n\t\texit;\n\t}\n\t$sql = \" select codsala, nombremesa from mesas where codsala = ? and nombremesa = ? \";\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->execute( array($_POST[\"codsala\"], $_POST[\"nombremesa\"]) );\n\t$num = $stmt->rowCount();\n\tif($num == 0)\n\t{\n\t\t$query = \" insert into mesas values (null, ?, ?, ?, ?); \";\n\t\t$stmt = $this->dbh->prepare($query);\n\t\t$stmt->bindParam(1, $codsala);\n\t\t$stmt->bindParam(2, $nombremesa);\n\t\t$stmt->bindParam(3, $mesacreada);\n\t\t$stmt->bindParam(4, $statusmesa);\n\n\t\t$codsala = strip_tags($_POST[\"codsala\"]);\n\t\t$nombremesa = strip_tags($_POST[\"nombremesa\"]);\n\t\t$mesacreada = strip_tags(date(\"Y-m-d h:i:s\"));\n\t\t$statusmesa = strip_tags(\"0\");\n\t\t$stmt->execute();\n\n\n\t\techo \"<div class='alert alert-success'>\";\n\t\techo \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\n\t\techo \"<span class='fa fa-check-square-o'></span> LA MESA EN SALA DEL RESTAURANT FUE REGISTRADA EXITOSAMENTE\";\n\t\techo \"</div>\";\t\t\n\t\texit;\n\t}\n\telse\n\t{\n\t\techo \"2\";\n\t\texit;\n\t}\n}", "public function agregar($obj, $conex)\r\n {\r\n //Obtiene los datos del objeto $obj\r\n \r\n\t\t$id_usu = $obj->getIdusuario();\r\n\t\t$nom_pub = $obj->getNombre();\r\n $precio_pub=$obj->getPrecio();\r\n $stock_pub=$obj->getStock();\r\n $descripcion_pub = $obj->getDescripcion();\r\n $img01_pub = $obj->getImagen1();\r\n $img02_pub = $obj->getImagen2();\r\n $img03_pub = $obj->getImagen3();\r\n $nuevo_pub = $obj->getNuevo();\r\n $fecha_pub = $obj->getFecha();\r\n $acepta_permuta_pub = $obj->getPermuta();\r\n $categoria_pub = $obj->getCategoria();\r\n $denuncia_pub = $obj->getDenuncia();\r\n\t\t$activa = $obj->getActiva();\r\n\t\r\n //Genera la sentencia a ejecutar\r\n\t\t//La sql que vale es la primera, pero hay que completar los parametros en el execute\r\n\t\t\r\n\t\t$sql = \"INSERT INTO `publicacion`(`id_usup`, `nom_pub`, `precio_pub`, `stock_pub`, `descripcion_pub`, `img01_pub`, `img02_pub`, `img03_pub`, `nuevo_pub`, `fecha_pub`, `acepta_permuta_pub`, `categoria_pub`, `denuncia_pub`, `activa` ) \r\n\t\tVALUES (:id_usup,:nom_pub,:precio_pub,:stock_pub,:descripcion_pub,:img01_pub,:img02_pub,:img03_pub,:nuevo_pub,:fecha_pub,:acepta_permuta_pub,:categoria_pub,:denuncia_pub,'si')\";\r\n\t\t\r\n\t\t$result = $conex->prepare($sql);\r\n\t\t$result->execute(array(\":id_usup\" => $id_usu,\":nom_pub\" => $nom_pub,\":precio_pub\" => $precio_pub,\":stock_pub\" => $stock_pub,\":descripcion_pub\" => $descripcion_pub,\":img01_pub\" => $img01_pub,\r\n\t\t\":img02_pub\" => $img02_pub,\":img03_pub\" => $img03_pub,\":nuevo_pub\" => $nuevo_pub,\":fecha_pub\" => $fecha_pub,\":acepta_permuta_pub\" => $acepta_permuta_pub,\":categoria_pub\" => $categoria_pub,\":denuncia_pub\" => $denuncia_pub));\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n \r\n \r\n //Para saber si ocurrió un error\r\n if($result)\r\n {\r\n return(true);\r\n }\r\n else\r\n {\r\n return(false);\r\n }\r\n }", "public function guardar($datosCampos) {\n $guardar = new SqlQuery(); //instancio objeto de la clase sqlQuery\n (string) $tabla = get_class($this); //obtengo el nombre de la clase para poder realizar la consulta\n switch ($datosCampos[\"acceso\"]) {\n case \"total\":\n $datosCampos[\"acceso\"] = 1;\n break;\n case \"restringido\":\n $datosCampos[\"acceso\"] = 2;\n break;\n default:\n $datosCampos[\"acceso\"] = 0;\n break;\n }\n $datosCampos[\"pass\"] = sha1(\"123\"); //agrego la contraseña en sha1 para que solicite el cambio cada vez que se cree un usuario\n $this->refControladorPersistencia->get_conexion()->beginTransaction(); //comienza transaccion\n $rtaVerifUser = $this->refControladorPersistencia->ejecutarSentencia(\n $guardar->verificarExistenciaUsuario($tabla, $datosCampos[\"usuario\"])); //verifico si ya hay un usuario con ese nombre \n $existeUser = $rtaVerifUser->fetch(); //paso a un array\n $this->refControladorPersistencia->get_conexion()->commit(); //cierro\n if ($existeUser[0] == '0') {//solamente si el usuario no existe se comienza con la carga a la BD\n try {\n $this->refControladorPersistencia->get_conexion()->beginTransaction(); //comienza la transacción\n $arrayCabecera = $guardar->meta($tabla); //armo la cabecera del array con los datos de la tabla de BD\n $sentencia = $guardar->armarSentencia($arrayCabecera, $tabla); //armo la sentencia\n $array = $guardar->armarArray($arrayCabecera, $datosCampos); //armo el array con los datos de la vista y los datos que obtuve de la BD \n array_shift($array); //remuevo el primer elemento id si es nuevo se genera automaticamente en la BD\n $this->refControladorPersistencia->ejecutarSentencia($sentencia, $array); //genero la consulta\n $this->refControladorPersistencia->get_conexion()->commit();\n $this->refControladorPersistencia->get_conexion()->beginTransaction();\n $ultimo = $guardar->buscarUltimo($tabla);\n $idUser = $this->refControladorPersistencia->ejecutarSentencia($ultimo); //busco el ultimo usuario para mostrarlo en la vista \n $id = $idUser->fetchColumn(); //array \n $this->refControladorPersistencia->get_conexion()->commit(); //si todo salió bien hace el commit\n } catch (PDOException $excepcionPDO) {\n echo \"<br>Error PDO: \" . $excepcionPDO->getTraceAsString() . '<br>';\n $this->refControladorPersistencia->get_conexion()->rollBack(); //si salio mal hace un rollback\n } catch (Exception $exc) {\n echo $exc->getTraceAsString();\n $this->refControladorPersistencia->get_conexion()->rollBack(); //si hay algún error hace rollback\n }\n $respuesta = $this->getUsuario($id); //busco el usuario\n return $respuesta; //regreso\n } else {\n return $id = [\"incorrecto\" => \"incorrecto\"]; //si hubo un error volvemos a vista y corregimos\n }\n }", "public function saveMod() {\n\t\t$sql_query = \"INSERT INTO usuarios(Email, Nombre, Fecha_Nacimiento, Passwd ,Rol)\n\t\tVALUES(?, ?, ?, ?, ?);\";\n\t\t$stmt = $this->connection->prepare($sql_query);\n\t\t$stmt->bind_param('sssss',$param_email, $param_name, $param_date, $hashed_psswd, $param_rol);\n\t\t$param_name = \"moderador1\";\n\t\t$param_email = \"moderador@kadede.es\";\n\t\t$param_date = \"1970-01-01\";\n\t\t$param_rol = \"mod\";\n\t\t$hashed_psswd = password_hash(\"123\", PASSWORD_DEFAULT);\n\t\t$success = $stmt->execute();\n\t\tif(!$success) {\n\t\t\techo(\"Error al intentar insertar en BD\");\n\t\t}\n\t}", "function insertarSolicitudCompletaMenor()\r\n {\r\n $cone = new conexion();\r\n $link = $cone->conectarpdo();\r\n $copiado = false;\r\n try {\r\n $link->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\r\n $link->beginTransaction();\r\n\r\n /////////////////////////\r\n // inserta cabecera de la solicitud de compra\r\n ///////////////////////\r\n\r\n //Definicion de variables para ejecucion del procedimiento\r\n $this->procedimiento = 'adq.f_solicitud_modalidades_ime';\r\n $this->transaccion = 'ADQ_SOLMODAL_INS';\r\n $this->tipo_procedimiento = 'IME';\r\n\r\n //Define los parametros para la funcion\r\n $this->setParametro('estado_reg', 'estado_reg', 'varchar');\r\n $this->setParametro('id_solicitud_ext', 'id_solicitud_ext', 'int4');\r\n $this->setParametro('presu_revertido', 'presu_revertido', 'varchar');\r\n $this->setParametro('fecha_apro', 'fecha_apro', 'date');\r\n $this->setParametro('estado', 'estado', 'varchar');\r\n $this->setParametro('id_moneda', 'id_moneda', 'int4');\r\n $this->setParametro('id_gestion', 'id_gestion', 'int4');\r\n $this->setParametro('tipo', 'tipo', 'varchar');\r\n $this->setParametro('num_tramite', 'num_tramite', 'varchar');\r\n $this->setParametro('justificacion', 'justificacion', 'text');\r\n $this->setParametro('id_depto', 'id_depto', 'int4');\r\n $this->setParametro('lugar_entrega', 'lugar_entrega', 'varchar');\r\n $this->setParametro('extendida', 'extendida', 'varchar');\r\n $this->setParametro('numero', 'numero', 'varchar');\r\n $this->setParametro('posibles_proveedores', 'posibles_proveedores', 'text');\r\n $this->setParametro('id_proceso_wf', 'id_proceso_wf', 'int4');\r\n $this->setParametro('comite_calificacion', 'comite_calificacion', 'text');\r\n $this->setParametro('id_categoria_compra', 'id_categoria_compra', 'int4');\r\n $this->setParametro('id_funcionario', 'id_funcionario', 'int4');\r\n $this->setParametro('id_estado_wf', 'id_estado_wf', 'int4');\r\n $this->setParametro('fecha_soli', 'fecha_soli', 'date');\r\n $this->setParametro('id_proceso_macro', 'id_proceso_macro', 'int4');\r\n $this->setParametro('id_proveedor', 'id_proveedor', 'int4');\r\n $this->setParametro('tipo_concepto', 'tipo_concepto', 'varchar');\r\n $this->setParametro('fecha_inicio', 'fecha_inicio', 'date');\r\n $this->setParametro('dias_plazo_entrega', 'dias_plazo_entrega', 'integer');\r\n $this->setParametro('precontrato', 'precontrato', 'varchar');\r\n $this->setParametro('correo_proveedor', 'correo_proveedor', 'varchar');\r\n\r\n $this->setParametro('nro_po', 'nro_po', 'varchar');\r\n $this->setParametro('fecha_po', 'fecha_po', 'date');\r\n\r\n $this->setParametro('prioridad', 'prioridad', 'integer');\r\n\r\n $this->setParametro('tipo_modalidad', 'tipo_modalidad', 'varchar');\r\n\r\n //Ejecuta la instruccion\r\n $this->armarConsulta();\r\n $stmt = $link->prepare($this->consulta);\r\n $stmt->execute();\r\n $result = $stmt->fetch(PDO::FETCH_ASSOC);\r\n\r\n //recupera parametros devuelto depues de insertar ... (id_solicitud)\r\n $resp_procedimiento = $this->divRespuesta($result['f_intermediario_ime']);\r\n if ($resp_procedimiento['tipo_respuesta'] == 'ERROR') {\r\n throw new Exception(\"Error al ejecutar en la bd\", 3);\r\n }\r\n\r\n $respuesta = $resp_procedimiento['datos'];\r\n\r\n $id_solicitud = $respuesta['id_solicitud'];\r\n\r\n //////////////////////////////////////////////\r\n //inserta detalle de la solicitud de compra\r\n /////////////////////////////////////////////\r\n\r\n\r\n //decodifica JSON de detalles\r\n $json_detalle = $this->aParam->_json_decode($this->aParam->getParametro('json_new_records'));\r\n\r\n //var_dump($json_detalle)\t;\r\n foreach ($json_detalle as $f) {\r\n\r\n $this->resetParametros();\r\n //Definicion de variables para ejecucion del procedimiento\r\n $this->procedimiento = 'adq.f_solicitud_det_ime';\r\n $this->transaccion = 'ADQ_SOLD_INS';\r\n $this->tipo_procedimiento = 'IME';\r\n //modifica los valores de las variables que mandaremos\r\n $this->arreglo['id_centro_costo'] = $f['id_centro_costo'];\r\n $this->arreglo['descripcion'] = $f['descripcion'];\r\n $this->arreglo['precio_unitario'] = $f['precio_unitario'];\r\n $this->arreglo['id_solicitud'] = $id_solicitud;\r\n $this->arreglo['id_orden_trabajo'] = $f['id_orden_trabajo'];\r\n $this->arreglo['id_concepto_ingas'] = $f['id_concepto_ingas'];\r\n $this->arreglo['precio_total'] = $f['precio_total'];\r\n $this->arreglo['cantidad_sol'] = $f['cantidad_sol'];\r\n $this->arreglo['precio_ga'] = $f['precio_ga'];\r\n $this->arreglo['precio_sg'] = $f['precio_sg'];\r\n\r\n $this->arreglo['id_activo_fijo'] = $f['id_activo_fijo'];\r\n $this->arreglo['codigo_act'] = $f['codigo_act'];\r\n $this->arreglo['fecha_ini_act'] = $f['fecha_ini_act'];\r\n $this->arreglo['fecha_fin_act'] = $f['fecha_fin_act'];\r\n\r\n\r\n //Define los parametros para la funcion\r\n $this->setParametro('id_centro_costo', 'id_centro_costo', 'int4');\r\n $this->setParametro('descripcion', 'descripcion', 'text');\r\n $this->setParametro('precio_unitario', 'precio_unitario', 'numeric');\r\n $this->setParametro('id_solicitud', 'id_solicitud', 'int4');\r\n $this->setParametro('id_orden_trabajo', 'id_orden_trabajo', 'int4');\r\n $this->setParametro('id_concepto_ingas', 'id_concepto_ingas', 'int4');\r\n $this->setParametro('precio_total', 'precio_total', 'numeric');\r\n $this->setParametro('cantidad_sol', 'cantidad_sol', 'int4');\r\n $this->setParametro('precio_ga', 'precio_ga', 'numeric');\r\n $this->setParametro('precio_sg', 'precio_sg', 'numeric');\r\n\r\n $this->setParametro('id_activo_fijo', 'id_activo_fijo', 'varchar');\r\n $this->setParametro('codigo_act', 'codigo_act', 'varchar');\r\n $this->setParametro('fecha_ini_act', 'fecha_ini_act', 'date');\r\n $this->setParametro('fecha_fin_act', 'fecha_fin_act', 'date');\r\n\r\n\r\n //Ejecuta la instruccion\r\n $this->armarConsulta();\r\n $stmt = $link->prepare($this->consulta);\r\n $stmt->execute();\r\n $result = $stmt->fetch(PDO::FETCH_ASSOC);\r\n\r\n //recupera parametros devuelto depues de insertar ... (id_solicitud)\r\n $resp_procedimiento = $this->divRespuesta($result['f_intermediario_ime']);\r\n if ($resp_procedimiento['tipo_respuesta'] == 'ERROR') {\r\n throw new Exception(\"Error al insertar detalle en la bd\", 3);\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n //si todo va bien confirmamos y regresamos el resultado\r\n $link->commit();\r\n $this->respuesta = new Mensaje();\r\n $this->respuesta->setMensaje($resp_procedimiento['tipo_respuesta'], $this->nombre_archivo, $resp_procedimiento['mensaje'], $resp_procedimiento['mensaje_tec'], 'base', $this->procedimiento, $this->transaccion, $this->tipo_procedimiento, $this->consulta);\r\n $this->respuesta->setDatos($respuesta);\r\n } catch (Exception $e) {\r\n $link->rollBack();\r\n $this->respuesta = new Mensaje();\r\n if ($e->getCode() == 3) {//es un error de un procedimiento almacenado de pxp\r\n $this->respuesta->setMensaje($resp_procedimiento['tipo_respuesta'], $this->nombre_archivo, $resp_procedimiento['mensaje'], $resp_procedimiento['mensaje_tec'], 'base', $this->procedimiento, $this->transaccion, $this->tipo_procedimiento, $this->consulta);\r\n } else if ($e->getCode() == 2) {//es un error en bd de una consulta\r\n $this->respuesta->setMensaje('ERROR', $this->nombre_archivo, $e->getMessage(), $e->getMessage(), 'modelo', '', '', '', '');\r\n } else {//es un error lanzado con throw exception\r\n throw new Exception($e->getMessage(), 2);\r\n }\r\n\r\n }\r\n\r\n return $this->respuesta;\r\n }", "public function RegistrarProveedores()\n{\n\tself::SetNames();\n\tif(empty($_POST[\"ritproveedor\"]) or empty($_POST[\"nomproveedor\"]) or empty($_POST[\"direcproveedor\"]) or empty($_POST[\"tlfproveedor\"]))\n\t{\n\t\techo \"1\";\n\t\texit;\n\t}\n\t$sql = \" select ritproveedor from proveedores where ritproveedor = ? \";\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->execute( array($_POST[\"ritproveedor\"]) );\n\t$num = $stmt->rowCount();\n\tif($num == 0)\n\t{\n\t\t$query = \" insert into proveedores values (null, ?, ?, ?, ?, ?, ?); \";\n\t\t$stmt = $this->dbh->prepare($query);\n\t\t$stmt->bindParam(1, $ritproveedor);\n\t\t$stmt->bindParam(2, $nomproveedor);\n\t\t$stmt->bindParam(3, $direcproveedor);\n\t\t$stmt->bindParam(4, $tlfproveedor);\n\t\t$stmt->bindParam(5, $emailproveedor);\n\t\t$stmt->bindParam(6, $contactoproveedor);\n\n\t\t$ritproveedor = strip_tags($_POST[\"ritproveedor\"]);\n\t\t$nomproveedor = strip_tags($_POST[\"nomproveedor\"]);\n\t\t$direcproveedor = strip_tags($_POST[\"direcproveedor\"]);\n\t\t$tlfproveedor = strip_tags($_POST[\"tlfproveedor\"]);\n\t\t$emailproveedor = strip_tags($_POST[\"emailproveedor\"]);\n\t\t$contactoproveedor = strip_tags($_POST[\"contactoproveedor\"]);\n\t\t$stmt->execute();\n\n\t\techo \"<div class='alert alert-success'>\";\n\t\techo \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\n\t\techo \"<span class='fa fa-check-square-o'></span> EL PROVEEDOR FUE REGISTRADO EXITOSAMENTE\";\n\t\techo \"</div>\";\t\t\n\t\texit;\n\t}\n\telse\n\t{\n\t\techo \"3\";\n\t\texit;\n\t}\n}", "public function guardarRegistro2(){\r\n $this->database->execute(\"INSERT INTO empleados (nombreApellido, dni, email, pass) VALUES ('rodri', '12345678', 'rodri@gmail.com', '123456'\");\r\n }", "static public function mdlIngresarSigno($tabla, $datos){\n\n $stmt = Conexion::conectar()->prepare(\"INSERT INTO $tabla(Si, Di, Dia, Bo, Ax, InL, Re, Ca,Ra, Axi,Bro, Femu, O ,Cita,Paciente) VALUES (:Si, :Di, :Dia, :Bo, :Ax, :InL, :Re, :Ca,:Ra, :Axi,:Bro, :Femu, :O ,:Cita,:Paciente)\");\n\n $stmt->bindParam(\":Paciente\", $datos[\"Paciente\"], PDO::PARAM_STR);\n\n\n $stmt->bindParam(\":Cita\", $datos[\"Cita\"], PDO::PARAM_STR);\n $stmt->bindParam(\":Si\", $datos[\"Si\"], PDO::PARAM_STR);\n $stmt->bindParam(\":Di\", $datos[\"Di\"], PDO::PARAM_STR);\n $stmt->bindParam(\":Dia\", $datos[\"Dia\"], PDO::PARAM_STR);\n $stmt->bindParam(\":Bo\", $datos[\"Bo\"], PDO::PARAM_STR);\n $stmt->bindParam(\":Ax\", $datos[\"Ax\"], PDO::PARAM_STR);\n $stmt->bindParam(\":InL\", $datos[\"In\"], PDO::PARAM_STR);\n $stmt->bindParam(\":Re\", $datos[\"Re\"], PDO::PARAM_STR);\n $stmt->bindParam(\":Ca\", $datos[\"Ca\"], PDO::PARAM_STR);\n $stmt->bindParam(\":Ra\", $datos[\"Ra\"], PDO::PARAM_STR);\n $stmt->bindParam(\":Axi\", $datos[\"Axi\"], PDO::PARAM_STR);\n $stmt->bindParam(\":Bro\", $datos[\"Bro\"], PDO::PARAM_STR);\n $stmt->bindParam(\":Femu\", $datos[\"Femu\"], PDO::PARAM_STR);\n $stmt->bindParam(\":O\", $datos[\"O\"], PDO::PARAM_STR);\n \n \n\n if($stmt->execute()){\n\n return \"ok\";\n\n }else{\n\n return \"error\";\n \n }\n\n $stmt->close();\n $stmt = null;\n\n}", "public function inserCompte()\n {\n $username = \"Numherit\";\n $userId = 1;\n $token = $this->utils->getToken($userId);\n\n $nom = $this->utils->securite_xss($_POST['nom']);\n $prenom = $this->utils->securite_xss($_POST['prenom']);\n $adresse = $this->utils->securite_xss($_POST['adresse']);\n $email = $this->utils->securite_xss($_POST['email']);\n $password = $this->utils->generation_code(12);\n $dateNaissance = $this->utils->securite_xss($_POST['datenaiss']);\n $typePiece = $this->utils->securite_xss($_POST['typepiece']);\n $numPiece = $this->utils->securite_xss($_POST['piece']);\n $dateDeliv = $this->utils->securite_xss($_POST['datedelivrancepiece']);\n $telephone = trim(str_replace(\"+\", \"00\", $this->utils->securite_xss($_POST['phone'])));\n $sexe = $this->utils->securite_xss($_POST['sexe']);\n $user_creation = $this->userConnecter->rowid;\n $agence = $this->userConnecter->fk_agence;\n $response = $this->api_numherit->creerCompte($username, $token, $nom, $prenom, $adresse, $email, $password, $dateNaissance, $telephone, $user_creation, $agence, $sexe, $typePiece, $numPiece, $dateDeliv);\n\n $tab = json_decode($response);\n if (is_object($tab)) {\n if ($tab->{'statusCode'} == '000') {\n @$num_transac = $this->utils->generation_numTransaction();\n @$idcompte = $this->utils->getCarteTelephone($telephone);\n @$this->utils->SaveTransaction($num_transac, $service = ID_SERVICE_CREATION_COMPTE, $montant = 0, $idcompte, $user_creation, $statut = 0, 'SUCCESS: CREATION COMPTE', $frais = 0, $agence, 0);\n $true = 'bon';\n $this->utils->log_journal('Creation compte', 'Client:' . $nom . ' ' . $prenom . ' Agence:' . $agence, 'succes', 1, $user_creation);\n $this->rediriger('compte', 'compte/' . base64_encode($true));\n } else {\n $this->utils->log_journal('Creation compte', 'Client:' . $nom . ' ' . $prenom . ' Agence:' . $agence, 'echec', 1, $user_creation);\n $this->rediriger('compte', 'compte/' . base64_encode($tab->{'statusMessage'}));\n }\n }\n }", "public function RegistrarCajas()\n{\n\tself::SetNames();\n\tif(empty($_POST[\"nrocaja\"]) or empty($_POST[\"nombrecaja\"]))\n\t{\n\t\techo \"1\";\n\t\texit;\n\t}\n\t$sql = \" select nombrecaja from cajas where nombrecaja = ? \";\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->execute( array($_POST[\"nombrecaja\"]) );\n\t$num = $stmt->rowCount();\n\tif($num > 0)\n\t{\n\t\techo \"2\";\n\t\texit;\n\t}\n\telse\n\t{\n\t\t$sql = \" select codigo from cajas where codigo = ? and codigo != ''\";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->execute( array($_POST[\"codigo\"]) );\n\t\t$num = $stmt->rowCount();\n\t\tif($num == 0)\n\t\t{\n\t\t\t$query = \" insert into cajas values (null, ?, ?, ?); \";\n\t\t\t$stmt = $this->dbh->prepare($query);\n\t\t\t$stmt->bindParam(1, $nrocaja);\n\t\t\t$stmt->bindParam(2, $nombrecaja);\n\t\t\t$stmt->bindParam(3, $codigo);\n\n\t\t\t$nrocaja = strip_tags($_POST[\"nrocaja\"]);\n\t\t\t$nombrecaja = strip_tags($_POST[\"nombrecaja\"]);\n\t\t\t$codigo = strip_tags($_POST[\"codigo\"]);\n\t\t\t$stmt->execute();\n\n\t\t\techo \"<div class='alert alert-success'>\";\n\t\t\techo \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\n\t\t\techo \"<span class='fa fa-check-square-o'></span> LA CAJA PARA VENTA FUE REGISTRADA EXITOSAMENTE\";\n\t\t\techo \"</div>\";\t\t\n\t\t\texit;\n\t\t}\n\t\telse\n\t\t{\n\t\t\techo \"3\";\n\t\t\texit;\n\t\t}\n\t}\n}", "function registrarPedido(){\n\t\t$x = $this->pdo->prepare('INSERT INTO pedido (cedulaCliente,fechaPedido) VALUES (?,?)');\n\t\t$x->execute(array($this->cedulaCliente,$this->fechaPedido));\n\t\treturn $x;\n\t}", "public function agregar_banco(){\r\n $conectar=parent::conexion();\r\n parent::set_names();\r\n if(empty($_POST[\"pregunta\"])){\r\n header(\"Location:\".Conectar::ruta().\"admin/banco/crear.php?m=1\");\r\n exit();\r\n }\r\n $contra='activo';\r\n $conectar=parent::conexion();\r\n $sql=\"insert into banco values(null,?,?,?,now());\";\r\n $sql=$conectar->prepare($sql);\r\n $sql->bindValue(1, $_POST[\"pregunta\"]);\r\n $sql->bindValue(2, $_SESSION[\"id\"]);\r\n $sql->bindValue(3, $contra);\r\n $sql->execute();\r\n $resultado=$sql->fetch(PDO::FETCH_ASSOC);\r\n \r\n header(\"Location:\".Conectar::ruta().\"admin/banco/index.php?m=2\");\r\n \r\n }", "function store($mail, $nombre, $apellido, $password,$admin)\n {\n $sentencia = $this->db->prepare('INSERT INTO usuario(mail,nombre,apellido,password,admin) VALUES(?,?,?,?,?)');\n $sentencia->execute([$mail, $nombre, $apellido, $password,$admin]);\n }", "protected function fijarSentenciaInsert(){}", "function alumno_registra_entrada($codigo_curso,$codigo_alumno,$entrada){\r\n\t\t$cn = $this->conexion();\r\n \r\n if($cn!=\"no_conexion\"){\r\n \t\r\n \t$sql=\"update $this->nombre_tabla_blog set eliminable=0 where codigo_curso='$codigo_curso' and codigo_alumno='$codigo_alumno'\";\r\n \t\r\n \t$rs = mysql_query($sql,$cn);\r\n \t\r\n\t \t$sql=\"insert into $this->nombre_tabla_blog (codigo_curso,codigo_alumno,entrada,persona_responde,fecha,hora) values ('$codigo_curso','$codigo_alumno','$entrada','A',curdate(),curtime() )\";\r\n\t\t\t\r\n\t $rs = mysql_query($sql,$cn);\r\n \r\n\t\t\tmysql_close($cn);\r\n\r\n\t\t\treturn \"mysql_si\";\r\n\t\t}else{\r\n\t\treturn \"mysql_no\";\r\n\t\t}\r\n\t}", "public function registrar($_params){\n $sql = \"INSERT INTO `clientes`(`nombres`, `apellidos`, `email`, `clave`, `telefono`) \n VALUES (:nombres,:apellidos,:email,:clave,:telefono)\";\n\n $resultado = $this->cn->prepare($sql);\n\n $_array = array(\n \":nombres\" =>$_params['nombres'],\n \":apellidos\" =>$_params['apellidos'],\n \":email\" =>$_params['email'],\n \":clave\" =>$_params['clave'],\n \":telefono\" =>$_params['telefono'] \n );\n\n if($resultado->execute($_array))\n return $this->cn->lastInsertId(); \n\n return false;\n }", "static public function mdlIngresarEspecialidad($tabla, $datos){\n\n\t\t$stmt = Conexion::conectar()->prepare(\"INSERT INTO $tabla(titulo) VALUES (:titulo)\");\n\n\t\t$stmt->bindParam(\":titulo\", $datos[\"titulo\"], PDO::PARAM_STR);\n\n\t\tif($stmt->execute()){\n\n\t\t\treturn \"ok\";\n\n\t\t}else{\n\n\t\t\treturn \"error\";\n\t\t\n\t\t}\n\n\t\t$stmt->close();\n\t\t$stmt = null;\n\n\t}", "public function registrar_usuario($nombre, $apellido, $cedula, $telefono, $email, $direccion, $cargo, $usuario, $password1, $password2, $estado, $permisos)\n {\n $conectar = parent::conexion();\n parent::set_names();\n $sql = \"insert into usuarios \n values(null,?,?,?,?,?,?,?,?,?,?,now(),?);\";\n $sql = $conectar->prepare($sql);\n $sql->bindValue(1, $_POST[\"nombre\"]);\n $sql->bindValue(2, $_POST[\"apellido\"]);\n $sql->bindValue(3, $_POST[\"cedula\"]);\n $sql->bindValue(4, $_POST[\"telefono\"]);\n $sql->bindValue(5, $_POST[\"email\"]);\n $sql->bindValue(6, $_POST[\"direccion\"]);\n $sql->bindValue(7, $_POST[\"cargo\"]);\n $sql->bindValue(8, $_POST[\"usuario\"]);\n $sql->bindValue(9, $_POST[\"password1\"]);\n $sql->bindValue(10, $_POST[\"password2\"]);\n $sql->bindValue(11, $_POST[\"estado\"]);\n $sql->execute();\n //obtenemos el valor del id del usuario\n $id_usuario = $conectar->lastInsertId();\n //insertamos los permisos\n //almacena todos los checkbox que han sido marcados\n //este es un array tiene un name=permiso[]\n $permisos = $_POST[\"permiso\"];\n // print_r($_POST);\n $num_elementos = 0;\n while ($num_elementos < count($permisos)) {\n $sql_detalle = \"insert into usuario_permiso\n values(null,?,?)\";\n $sql_detalle = $conectar->prepare($sql_detalle);\n $sql_detalle->bindValue(1, $id_usuario);\n $sql_detalle->bindValue(2, $permisos[$num_elementos]);\n $sql_detalle->execute();\n //recorremos los permisos con este contador\n $num_elementos = $num_elementos + 1;\n }\n }", "public function Registrar_FormacionProfesional(HojaVida $data){\n $modelo = new HojaVida();\n $fechahora = $modelo->get_fecha_actual();\n $datosfecha = explode(\" \",$fechahora);\n $fechalog = $datosfecha[0];\n $horalog = $datosfecha[1];\n \n $tiporegistro = \"Formación Profesional\";\n $accion = \"Registra una Nueva \".$tiporegistro.\" En el Sistema (Hoja vida) TALENTO HUMANO\";\n $detalle = $_SESSION['nombre'].\" \".$accion.\" \".$fechalog.\" \".\"a las: \".$horalog;\n $tipolog = 15;\n $idusuario = $_SESSION['idUsuario'];\n try {\n $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\t\t\n //EMPIEZA LA TRANSACCION\n $this->pdo->beginTransaction();\n\n $sql = \"INSERT INTO `th_formacion_profesional`(`for_pro_id_HV`, `for_pro_id_user`, `for_pro_id_userR`, `for_pro_id_nivel_educacion`, \n `for_pro_titulo`,`for_pro_institucion`, `for_pro_fecha_inicio`, `for_pro_fecha_fin`, `for_pro_ruta_certificado`) \n VALUES (?,?,?,?,?,?,?,?,?)\";\n $this->pdo->prepare($sql)\n ->execute(\n array(\n $data->id,\n $data->usuario,\n $idusuario,\n $data->for_pro_id_nivel,\n $data->for_pro_titulo,\n $data->for_pro_institucion,\n $data->for_pro_fecha_inicio,\n $data->for_pro_fecha_fin,\n $data->for_pro_ruta_certificado\n )\n ); \n $this->pdo->exec(\"INSERT INTO log (fecha, accion,detalle,idusuario,idtipolog) VALUES ('$fechalog', '$accion','$detalle','$idusuario','$tipolog')\");\n //SE TERMINA LA TRANSACCION \n $this->pdo->commit();\n } catch (Exception $e) {\n $this->pdo->rollBack();\n die($e->getMessage());\n }\n }", "function ajouterSupport($nom, $type, $destination, $idProfesseur){\n\t$query='insert into support values(\"\",\"'.$nom.'\",\"'.$type.'\",\"'.$destination.'\")';\n\tmysql_query($query) or die(' Erreur d insertion de support'.$query.mysql_error());\n\tajoutProfSup($idProfesseur);\n}", "public function registerUser(){\r\n\t\t$name = $_POST['register_name'];\r\n\t\t$email = $_POST['register_email'];\r\n\t\t$password = $_POST['register_password'];\r\n\r\n\t\t$sql = \"INSERT INTO users values (null,?,?,?)\";\r\n\t\t$query = $this->db->prepare($sql);\r\n\t\t$query->execute([$name,$email,$password]);\r\n\t\t//ako je registracija uspela pojavice se div u formu sa ispisom notifikacije!!!\r\n\t\tif ($query) {\r\n\t\t\t$this->register_result=true;\r\n\t\t}\r\n\t}", "function crear_trabajador($mysqli, $id_usuario, $calle_trabajador, $numero_trabajador, $colonia_trabajador, $correo_trabajador, $telefono_trabajador, $tipo_telefono_trabajador, $lada_trabajador, $ciudad, $estado, $municipio)\n {\n $estatus = 1;//Por defecto los trabajadores estan activos\n\n //Encrypta los datos privados\n $correo_trabajador = encrypt_string($correo_trabajador);\n $calle_trabajador = encrypt_string($calle_trabajador);\n $numero_trabajador = encrypt_string($numero_trabajador);\n $colonia_trabajador = encrypt_string($colonia_trabajador);\n $telefono_trabajador = encrypt_string($telefono_trabajador);\n\n //******Alta del trabajador******\n $stmt = $mysqli->prepare(\"INSERT INTO `trabajador`(`id_trabajador`, `id_usuario`, `estatus`, `fecha_creacion`, `ultima_modificacion`)\n \t\t\t\t\t\t\t\t\t\t\t\t\tVALUES\n \t\t\t\t\t\t\t\t\t\t\t\t\t(NULL,?,?,now(),now())\");\n\n //Indica a la base de datos que recibira 2 integer correspoendietes a los signos de ? en el query\n $stmt->bind_param(\"ii\", $id_usuario, $estatus);\n\n //Ejecuta el query\n $stmt->execute();\n\n //Toma el ID del insert recien hecho\n $nuevo_id_trabajador = $mysqli->insert_id;\n\n //Cierra el query\n $stmt->close();\n\n\n\n //******Relacion del trabajador con correo_electronico******\n $stmt = $mysqli->prepare(\"INSERT INTO `correo_electronico`(`id_correo_electronico`, `correo_electronico`, `estatus`, `fecha_creacion`, `ultima_modificacion`)\n \t\t\t\t\t\t\t\t\t\t\t\t\tVALUES\n \t\t\t\t\t\t\t\t\t\t\t\t\t(NULL,?,?,now(),now())\");\n\n //Indica a la base de datos que recibira 1 string y 1 integer correspoendietes a los signos de ? en el query\n $stmt->bind_param(\"si\", $correo_trabajador, $estatus);\n\n //Ejecuta el query\n $stmt->execute();\n\n\t//Toma el ID del insert recien hecho\n $nuevo_id_correo_electronico = $mysqli->insert_id;\n\n //Cierra el query\n $stmt->close();\n\n\n\n //******Relacion del correo_electronico con trabajador_correo******\n $stmt = $mysqli->prepare(\"INSERT INTO `trabajador_correo`(`id_trabajador_correo`, `id_trabajador`, `id_correo_electronico`, `estatus`, `fecha_creacion`, `ultima_modificacion`)\n \t\t\t\t\t\t\t\t\t\t\t\t\tVALUES\n \t\t\t\t\t\t\t\t\t\t\t\t\t(NULL,?,?,?,now(),now())\");\n\n //Indica a la base de datos que recibira 3 integer correspoendietes a los signos de ? en el query\n $stmt->bind_param(\"iii\", $nuevo_id_trabajador, $nuevo_id_correo_electronico, $estatus);\n\n //Ejecuta el query\n $stmt->execute();\n\n //Cierra el query\n $stmt->close();\n\n\n\n //******Relacion del trabajador con su domicilio******\n $stmt = $mysqli->prepare(\"INSERT INTO `domicilio`(`id_domicilio`, `calle`, `numero`, `colonia`, `estatus`, `fecha_creacion`, `ultima_modificacion`)\n \t\t\t\t\t\t\t\t\t\t\t\t\tVALUES\n \t\t\t\t\t\t\t\t\t\t\t\t\t(NULL,?,?,?,?,now(),now())\");\n\n //Indica a la base de datos que recibira 3 String y 1 integer correspondientes a los signos de ? en el query\n $stmt->bind_param(\"sssi\", $calle_trabajador, $numero_trabajador, $colonia_trabajador, $estatus);\n\n //Ejecuta el query\n $stmt->execute();\n\n\t//Toma el ID del insert recien hecho\n $nuevo_id_domicilio = $mysqli->insert_id;\n\n //Cierra el query\n $stmt->close();\n\n\n\n\t //******Relacion de domicilio con trabajador_domicilio******\n $stmt = $mysqli->prepare(\"INSERT INTO `trabajador_domicilio`(`id_trabajador_domicilio`, `id_trabajador`, `id_domicilio`, `estatus`, `fecha_creacion`, `ultima_modificacion`)\n \t\t\t\t\t\t\t\t\t\t\t\t\tVALUES\n \t\t\t\t\t\t\t\t\t\t\t\t\t(NULL,?,?,?,now(),now())\");\n\n //Indica a la base de datos que recibira 3 integer correspondientes a los signos de ? en el query\n $stmt->bind_param(\"iii\", $nuevo_id_trabajador, $nuevo_id_domicilio, $estatus);\n\n //Ejecuta el query\n $stmt->execute();\n\n //Cierra el query\n $stmt->close();\n\n\n\n\t //******Relacion del trabajador con su telefono******\n $stmt = $mysqli->prepare(\"INSERT INTO `telefono`(`id_telefono`, `telefono`, `tipo_telefono`, `lada`, `estatus`, `fecha_creacion`, `ultima_modificacion`)\n \t\t\t\t\t\t\t\t\t\t\t\t\tVALUES\n \t\t\t\t\t\t\t\t\t\t\t\t\t(NULL,?,?,?,?,now(),now())\");\n\n //Indica a la base de datos que recibira 1 String y 3 integer correspondientes a los signos de ? en el query\n $stmt->bind_param(\"siii\", $telefono_trabajador, $tipo_telefono_trabajador, $lada_trabajador, $estatus);\n\n //Ejecuta el query\n $stmt->execute();\n\n\t//Toma el ID del insert recien hecho\n $nuevo_id_telefono = $mysqli->insert_id;\n\n //Cierra el query\n $stmt->close();\n\n\n\n\t //******Relacion del telefono con su trabajador_telefono******\n $stmt = $mysqli->prepare(\"INSERT INTO `trabajador_telefono`(`id_trabajador_telefono`, `id_trabajador`, `id_telefono`, `estatus`, `fecha_creacion`, `ultima_modificacion`)\n \t\t\t\t\t\t\t\t\t\t\t\t\tVALUES\n \t\t\t\t\t\t\t\t\t\t\t\t\t(NULL,?,?,?,now(),now())\");\n\n //Indica a la base de datos que recibira 3 integer correspondientes a los signos de ? en el query\n $stmt->bind_param(\"iii\", $nuevo_id_trabajador, $nuevo_id_telefono, $estatus);\n\n //Ejecuta el query\n $stmt->execute();\n\n //Cierra el query\n $stmt->close();\n\n\t\n\t//relacion de usuario con estado\n\t$stmt = $mysqli->prepare(\"INSERT INTO `usuario_estado`(`id_usuario_estado`, `id_usuario`, `id_estado`, `estatus`, `fecha_creacion`, `ultima_modificacion`) VALUES (NULL, ?, ?, ?, now(), now())\");\n\t$estado = 4;\n\t$stmt->bind_param(\"iii\", $id_usuario, $estado, $estatus);\n\t\n\t$stmt->execute();\n\n\t//Cierra el query\n\t$stmt->close();\n\t\n\t\n\t//relacion de usuario con municipio\n\t$stmt = $mysqli->prepare(\"INSERT INTO `usuario_municipio`(`id_usuario_municipio`, `id_usuario`, `id_municipio`, `ciudad`, `estatus`, `fecha_creacion`, `ultima_modificacion`) VALUES (NULL, ?, ?, ?, ?, now(), now())\");\n\t\n\t$stmt->bind_param(\"iisi\", $id_usuario, $municipio, $ciudad, $estatus);\n\t\n\t$stmt->execute();\n\n\t//Cierra el query\n\t$stmt->close();\n\t\n\t\n\n return $nuevo_id_trabajador;\n }", "public function saveInfosTransfertRefound($num_transac,$code,$montant,$frais,$montant_total,$date_tranfert,$nom_sender,$prenom_sender,$type_piece_sender,$cin_sender,$tel_sender,$pays_sender,$ville_sender,$adresse_sender,$nom_receiver,$prenom_receiver,$tel_receiver,$pays_receiver,$ville_receiver,$adresse_receiver,$fk_service,$user_sender,$agencesender)\n {\n $insertSQL = \"INSERT INTO tranfert ( num_transac,code, montant,frais,montant_total, date_tranfert, nom_sender, prenom_sender,type_piece_sender, cin_sender, tel_sender, pays_sender, ville_sender,adresse_sender, nom_receiver, prenom_receiver, tel_receiver, pays_receiver,ville_receiver, adresse_receiver, statut, refound, fk_service, user_sender, user_receiver)\";\n $insertSQL .= \" VALUES(:num_transac,:code_transfert, :montant,:frais,:montant_total, :date_tranfert, :nom_sender, :prenom_sender,:type_piece_sender, :cin_sender, :tel_sender, :pays_sender,:ville_sender, :adresse_sender, :nom_receiver, :prenom_receiver, :tel_receiver, :pays_receiver,:ville_receiver,:adresse_receiver, :statut, :refound, :fk_service, :user_sender, :user_receiver,:agencesender)\";\n $rs_insert = $this->getConnexion()->prepare($insertSQL);\n $rs_insert->execute(array(\"num_transac\"=>$num_transac,\n \"code_transfert\"=>$code,\n \"montant\"=>$montant,\n \"frais\"=>$frais,\n \"montant_total\"=>$montant_total,\n \"date_tranfert\"=>$date_tranfert,\n \"nom_sender\"=>$nom_sender,\n \"prenom_sender\"=>$prenom_sender,\n \"type_piece_sender\"=>$type_piece_sender,\n \"cin_sender\"=>$cin_sender,\n \"tel_sender\"=>$tel_sender,\n \"pays_sender\"=>$pays_sender,\n \"ville_sender\"=>$ville_sender,\n \"adresse_sender\"=>$adresse_sender,\n \"nom_receiver\"=>$nom_receiver,\n \"prenom_receiver\"=>$prenom_receiver,\n \"tel_receiver\"=>$tel_receiver,\n \"pays_receiver\"=>$pays_receiver,\n \"ville_receiver\"=>$ville_receiver,\n \"adresse_receiver\"=>$adresse_receiver,\n \"statut\"=>0,\n \"refound\"=>1,\n \"fk_service\"=>$fk_service,\n \"user_sender\"=>$user_sender,\n \"user_receiver\"=>0,\n \"agencesender\"=>$agencesender));\n if($rs_insert->rowCount() === 1)\n return 1;\n else return -1;\n\n }", "function ins_datos($DBcon)\n\t{\n\t\t$now = date(\"Y-m-d H:i:s\");\n\n //create guid for user confirm\n require_once(C_P_CLASES.'utils/string.functions.php');\n $STR = new STRFN();\n\n $guid = $STR->gen_uuid();\n\n $query = \"INSERT INTO \".$this->tableName.\"(\".$this->arrDataNames['data1'].\",\".$this->arrDataNames['data2'].\",\".$this->arrDataNames['data3'].\",\".$this->arrDataNames['data4'].\"\n\t\t\t\t\t,\".$this->arrDataNames['data5'].\",\".$this->arrDataNames['data6'].\",\".$this->arrDataNames['data7'].\") \n\t\t\t\t\tVALUES\n\t\t\t\t\t(\n\t\t\t\t\t'\" . $this->data['data1'] .\"','\". $this->data['data2'] . \"'\n ,'\" . $this->data['data3'] .\"','2','\". $now . \"'\n ,'\" . $this->data['data6'].\"','\" . $guid .\"'\n\t\t\t\t\t)\";\n\n $stmt = $DBcon->prepare($query);\n\n // check for successfull registration\n if ( $stmt->execute() ) {\n\n //establecer permisos\n $userId = $DBcon->lastInsertId();\n $respuesta = $this->ins_permisos($DBcon,$userId,$this->data['data3']);\n\n $response['status'] = 'success';\n $response['message'] = $STR->setMsgStyle('&nbsp; Registro exitoso, Gracias!');\n $response['guid'] = $guid;\n\n\n //if($ambiente == 'PRO')\n //{\n $this->send_regMail('info@jadecapitalflow.com',$this->data['data1'],$guid);\n //}\n } else {\n $response['status'] = 'error'; // could not register\n $response['message'] = $STR->setMsgStyle('&nbsp; No se pudo registrar, intente nuevamente más tarde', 3);\n $response['guid'] = '-';\n }\n\n\t\treturn $response;\t\t\n\t}", "public function create(){\n\n try {\n //mysql_real_escape_string($clean)\n $this->_query = \"INSERT INTO \". $this->_dbtable .\" SET usuario = :usuario,contrasena = :contrasena,nombre = :nombre, apellido = :apellido, email = :email, telefono = :telefono\";\n\n // preparing statement\n $statement = $this->_conn->prepare($this->_query);\n\n // sanitizing parameters\n\n $this->usuario = Sanatize::xss_cleaner($this->usuario);\n $this->contrasena = Sanatize::xss_cleaner($this->contrasena);\n $this->nombre = Sanatize::xss_cleaner($this->nombre);\n $this->apellido = Sanatize::xss_cleaner($this->apellido);\n $this->email = Sanatize::xss_cleaner($this->email);\n $this->telefono = Sanatize::xss_cleaner($this->telefono);\n\n // binding params\n\n $statement->bindParam(':usuario', $this->usuario);\n $statement->bindParam(':contrasena', $this->contrasena);\n $statement->bindParam(':nombre', $this->nombre);\n $statement->bindParam(':apellido' ,$this->apellido);\n $statement->bindParam(':email', $this->email);\n $statement->bindParam(':telefono', $this->telefono);\n\n // executing statement\n if($statement->execute()){\n return true;\n }\n\n else{\n\n return false;\n }\n\n }\n\n catch (PDOException $ex) {\n echo \"Error\" . $ex->getMessage();\n }\n\n }", "static public function mdlIngresaraccion($tabla, $datos){\n\t\t\n\t\t$stmt = Conexion::conectar()->prepare(\"INSERT INTO $tabla (id_programacion_anual\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t, id_entes\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t, codigo\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t,id_accion_centralizada\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t,tipo\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t,id_usuario\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t,fecha ) \n\t\t\t\t\t\t\t\t\t\t\t\t\t\tVALUES (:id_programacion_anual\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :id_entes\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :codigo\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :id_accion_centralizada\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :tipo\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :id_usuario\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :fecha\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t )\");\n\n$stmt->bindParam(\":id_programacion_anual\", $datos[\"id_programacion_anual\"], PDO::PARAM_STR);\n$stmt->bindParam(\":id_entes\", $datos[\"id_entes\"], PDO::PARAM_STR);\n$stmt->bindParam(\":codigo\", $datos[\"codigo\"], PDO::PARAM_STR);\n$stmt->bindParam(\":id_accion_centralizada\", $datos[\"id_accion_centralizada\"], PDO::PARAM_STR);\n$stmt->bindParam(\":tipo\", $datos[\"tipo\"], PDO::PARAM_STR);\n$stmt->bindParam(\":id_usuario\", $datos[\"id_usuario\"], PDO::PARAM_STR);\n$stmt->bindParam(\":fecha\", $datos[\"fecha\"], PDO::PARAM_STR);\n\n//var_dump($datos);\n//exit($datos);\nif($stmt->execute()){\n\n\treturn \"ok\";\n\n}else{\n\n\t$arr=$stmt->errorInfo();\n\treturn $arr[2];\n\n}\n\n$stmt->close();\n$stmt = null;\n\n}", "function constitueCommande($idProd,$idCommande,$qteProd){\n require(\"./modele/connexionBD.php\");\n $sql_ajt = \"INSERT INTO `constitue`(`idProduit`, `idCommande`, `qteProduit`) \n VALUES (:idp,:idc,:qteP);\";\n try {\n $statement = $pdo->prepare($sql_ajt);\n $statement->bindParam(':idc', $idCommande);\n $statement->bindParam(':idp', $idProd);\n $statement->bindParam(':qteP', $qteProd);\n $statement->setFetchMode(PDO::FETCH_ASSOC);\n $statement->execute();\n } catch (PDOException $e) {\n echo utf8_encode(\"Echec de select : \" . $e->getMessage() . \"\\n\");\n die();\n }\n\n}", "public function registrar(){\n $cedula = $_POST['cedula'];\n $nombre = $_POST['nombre'];\n $apellido = $_POST['apellido'];\n $edad = $_POST['edad'];\n \n //2. Crear un objeto Estudiante y enviar a actualizar\n $estudiante = new Estudiante($cedula,$nombre,$apellido,$edad); \n \n //3. llamar al modelo para registar un Estudiante\n $this->model->registrarEstudiante($estudiante);\n \n //4. redirección index. \n $mensaje= \"El estudiante fue registrado de manera correcta!\";\n Util::mostarAlerta($mensaje);\n }", "public function registrar_accesorios($marca_accesorio,$des_accesorio,$tipo_accesorio){\n\n\t\t$conectar= parent::conexion();\n\t\tparent::set_names();\n\t\t$sql=\"insert into accesorios values(null,?,?,?);\";\n\t\t$sql=$conectar->prepare($sql);\n\t\t$sql->bindValue(1, $marca_accesorio);\n\t\t$sql->bindValue(2, $des_accesorio);\n\t\t$sql->bindValue(3, $tipo_accesorio);\n\n\t\t$sql->execute();\n\n\t\t//print_r($_POST);\n\t}", "public function RegistrarDatosPlantaPersonal(HojaVida $data){\n $modelo = new HojaVida();\n $fechahora = $modelo->get_fecha_actual();\n $datosfecha = explode(\" \",$fechahora);\n $fechalog = $datosfecha[0];\n $horalog = $datosfecha[1];\n \n $tiporegistro = \"Planta de Personal\";\n $accion = \"Registro en \".$tiporegistro.\" En el Sistema (Planta de Personal) TALENTO HUMANO\";\n $detalle = $_SESSION['nombre'].\" \".$accion.\" \".$fechalog.\" \".\"a las: \".$horalog;\n $tipolog = 15;\n $idusuario = $_POST['id_usuarioR'];\n $idusuarioR = $_SESSION['idUsuario'];\n try {\n $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); \n //EMPIEZA LA TRANSACCION\n $this->pdo->beginTransaction();\n\n $sql = \"INSERT INTO `th_planta_personal`(`pla_id_usuario`, `pla_fecha`, `pla_id_cargo`, `pla_id_clase_nombra`, \n `pla_flag_licencia`, `pla_num_resolucion`,`pla_id_res_nombramiento`, `pla_fecha_inicio`, `pla_fecha_fin`, \n `pla_id_ubicacion`, `pla_id_area_cs`, `pla_num_resolu_tras`, `pla_id_usuario_reemplaza`, `pla_id_userR`, \n `pla_flag_alerta`,`pla_estado`) \n VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)\";\n $this->pdo->prepare($sql)\n ->execute(\n array(\n $data->id_usuario,\n $fechalog,\n $data->id_cargo,\n $data->pla_id_clase_nombra,\n $data->pla_flag_licencia,\n $data->num_resolucion_nombramiento,\n 0,\n $data->fecha_inicio,\n $data->fecha_fin,\n $data->id_ubicacion,\n $data->id_area,\n $data->num_resolucion_traslado,\n $data->id_user_reemplaza,\n $idusuarioR,\n $data->flag_alerta,\n 1\n )\n ); \n $this->pdo->exec(\"INSERT INTO log (fecha, accion,detalle,idusuario,idtipolog) VALUES ('$fechalog', '$accion','$detalle','$idusuario','$tipolog')\");\n \n //SE TERMINA LA TRANSACCION \n $this->pdo->commit();\n } catch (Exception $e) {\n $this->pdo->rollBack();\n die($e->getMessage());\n }\n }", "public function registrarCliente($dados){\n //$conexao = $c->conexao();\n $tipoCadastro = $_POST['tipocad'];\n $tipoCliente = $_POST['tipo'];\n $iss = $_POST['iss'];\n $nome = trim($_POST['nome']);\n // $nomeJuridico = trim($_POST['nomeJuridico']);\n $nomeFantasia = trim($_POST['nomeFantasia']);\n $apelido = trim($_POST['apelido']);\n $cnpj = $_POST['cnpj'];\n $cpf = $_POST['cpf'];\n $rg = trim($_POST['rg']);\n $dt_nascimento = trim($_POST['dtnascimento']);\n $telefone = $_POST['telefone'];\n // $telefoneJ = $_POST['telefoneJ'];\n $telefone2J = $_POST['telefone2J'];\n $cep = $_POST['cep'];\n $endereco = $_POST['endereco'];\n $bairro = $_POST['bairro'];\n $uf = $_POST['uf'];\n $cidade = $_POST['cidade'];\n $complemento = $_POST['complemento'];\n $numero = trim($_POST['numero']);\n $usuid = $_SESSION['usuid'];\n\n $sql = \"SELECT count(*) as total from tbclientes WHERE rg = '$rg' or cnpj = '$cnpj' or cpf = '$cpf' \";\n $sql = $this->conexao->query($sql);\n $row = $sql->fetch_assoc();\n\n if($row['total'] == 1){\n return 0;\n }else{\n\n $sql = \"INSERT INTO tbclientes (nome, nomefantasia, apelido, tipocad, tipopessoa, iss, cpf, cnpj, rg, telefone, telefone2, dt_nascimento, data_cadastro, usuid, habilitado, cep, endereco, bairro, uf, cidade, complemento, numero) VALUES ('$nome', '$nomeFantasia', '$apelido', '$tipoCadastro', '$tipoCliente', '$iss', '$cpf', '$cnpj', '$rg', '$telefone', '$telefone2J', '$dt_nascimento', NOW(), '$usuid', 'S', '$cep', '$endereco', '$bairro', '$uf', '$cidade', '$complemento', '$numero') \";\n\n $mensagem = \"O Usuário \".$_SESSION['email'].\" cadastrou o Cliente $nome \";\n $this->salvaLog($mensagem);\n\n return $this->conexao->query($sql);\n\n }\n\n }", "function addChambrehospi(Chambrehospi $chambre){\n try {\n $sql = \"INSERT INTO chambre_hospitalisation( numero_chambre, type_chambre, num_tel, nbre_lit, etat_occupation, prix_chambre, date_entre, date_sortie) VALUES \"\n . \"(:numchambre, :typchambre, :numtel, :nbrelit, :etatoccupation, :prixchambre, :dateentree , :datesortie)\";\n \n $params =array(\n ':numchambre' => $chambre->getNumchambre(),\n ':typchambre' => $chambre->getTypchambre(),\n ':numtel' => $chambre->getNumtel(),\n ':nbrelit' =>$chambre->getNbrelit(),\n ':etatoccupation' =>$chambre->getEtatoccupation(),\n ':prixchambre' => $chambre->getPrixchambre(),\n ':dateentree' => $chambre->getDatentree(),\n ':datesortie' => $chambre->getDatsortie()\n );\n $resultat = $this->executeRequete($sql, $params);\n \n // return $resultat;\n } catch (Exception $ex) {\n echo $ex->getMessage();\n }\n }", "public static function crearTipo_documento($tipo_documento){\n \n if (is_null($tipo_documento->getId_tipo_documento())) {\n $query = \"INSERT INTO tipo_documento(nombre,estado) VALUES (:nombre,:estado)\";\n } else {\n $query = \"UPDATE tipo_documento SET nombre=:nombre,estado=:estado WHERE id_tipo_documento=:id_tipo_documento\";\n }\n \n \n self::getConexion();\n\n $resultado = self::$cnx->prepare($query);\n\n $nombre = $tipo_documento->getNombre();\n $estado = $tipo_documento->getEstado();\n\n if (!is_null($tipo_documento->getId_tipo_documento())) {\n $id_tipo_documento = $tipo_documento->getId_tipo_documento();\n $resultado->bindParam(\":id_tipo_documento\", $id_tipo_documento);\n } \n \n $resultado->bindParam(\":nombre\", $nombre);\n $resultado->bindParam(\":estado\", $estado);\n \n if ($resultado->execute()) {\n return true;\n \n }\n\n return false;\n \n}", "function agregar($consulta){\n\t\t$objectSql = conectar(\"on\");\n\t\t\t$objectSql->query($consulta);\n\t\tconectar(\"off\");\n\t}", "public function prepare();", "public function prepare();", "Function donneefournisseurs()\r\n {\r\n echo \"copie des données de la table fournisseurs\";\r\n $req=\"INSERT INTO `\".Valorisation::$anneenouvelle.\"`.`fournisseurs` SELECT * FROM `\".Valorisation::$anneeancienne.\"`.`fournisseurs`\";\r\n Valorisation::$bddnew->query($req); \r\n }", "function insert_details($db, $nom, $prenom, $email, $username, $password, $date_inscrit, $date_dern_conn, $admin)\n {\n $query = $db->prepare(\"\n \n INSERT INTO users(nom, prenom, email, username, password, date_inscrit, date_dern_conn, admin)\n \n VALUES(:nom, :prenom, :email, :username, :password, :date_inscrit, :date_dern_conn, :admin)\n \n \");\n\n $query->bindParam(\":nom\", $nom);\n $query->bindParam(\":prenom\", $prenom);\n $query->bindParam(\":email\", $email);\n $query->bindParam(\":username\", $username);\n $query->bindParam(\":password\", $password);\n $query->bindParam(\":date_inscrit\", $date_inscrit);\n $query->bindParam(\":date_dern_conn\", $date_dern_conn);\n $query->bindParam(\":admin\", $admin);\n\n return $query->execute();\n\n }", "public function guardar(){\n \n $_vectorpost=$this->_vcapitulo;\n $_programadas=[1,3,4,5,6,7,8,2,11,15,26];\n \n if(!empty($this->_relaciones)){\n \n $_vpasspregunta=explode(\"%%\",$this->_relaciones);\n \n /*Iniciando Transaccion*/\n $_transaction = Yii::$app->db->beginTransaction();\n try {\n foreach($_vpasspregunta as $_clguardar){\n\n /*Aqui se debe ir la funcion segun el tipo de pregunta\n * la variable $_clguardar es un string que trae\n * name_input ::: id_pregunta ::: id_tpregunta ::: id_respuesta\n * cada funcion de guardar por tipo se denomina gr_tipo...\n */\n\n $_ldata=explode(\":::\",$_clguardar);\n\n //Recogiendo codigos SQL\n //Se envia a la funcion de acuerdo al tipo\n // @name_input \"0\"\n // @id_pregunta \n // @id_tpregunta\n // @id_respuesta ==========================//\n \n /*Asociando Respuesta*/\n $_nameq = 'rpta'.$_ldata[0];\n \n \n \n if(!empty($_ldata[2]) and in_array($_ldata[2], $_programadas) === TRUE and isset($_vectorpost['Detcapitulo'][$_nameq])){\n \n \n //Yii::trace(\"Llegan tipos de preguntas \".$_ldata[2].\" Para idpregunta \".$_ldata[1],\"DEBUG\");\n /*Recogiendo Id_respuesta si existe*/ \n $_idrespuesta=(!empty($_ldata[3]))? $_ldata[3]:'';\n $id_pregunta= $_ldata[1];\n $this->_idcapitulo = $_ldata[4];\n \n \n /*Armando Trama SQL segun el tipo de pregunta*/\n $_valor = $_vectorpost['Detcapitulo'][$_nameq];\n \n //Yii::trace(\"que respuestas llegan \".$_valor,\"DEBUG\");\n \n if(isset($this->_agrupadas[$id_pregunta])){\n \n /*1) Buscando si existe una respuesta asociada a la agrupacion*/\n $idrpta_2a = Yii::$app->db->createCommand(\n 'SELECT id_respuesta FROM fd_respuesta\n LEFT JOIN fd_pregunta ON fd_pregunta.id_pregunta = fd_respuesta.id_pregunta\n WHERE fd_pregunta.id_agrupacion= :agrupacion \n and fd_respuesta.id_conjunto_pregunta= :idconjprta \n and fd_respuesta.id_conjunto_respuesta= :idconjrpta\n and fd_respuesta.id_capitulo= :idcapitulo\n and fd_respuesta.id_formato = :idformato\n and fd_respuesta.id_version = :idversion ')\n ->bindValues([\n ':idconjrpta' => $this->_idconjrpta,\n ':idcapitulo' =>$this->_idcapitulo,\n ':idformato' =>$this->_idformato,\n ':idconjprta' => $this->_idconjprta,\n ':idversion' =>$this->_idversion, \n ':agrupacion' =>$this->_agrupadas[$id_pregunta],\n ])->queryOne();\n \n $_idrespuesta = $idrpta_2a['id_respuesta'];\n \n /*2) Si existe respuesta asociada se envia como _idrespuesta*/\n \n $v_rpta= $this->{\"gr_tipo2a\"}($_idrespuesta,$_valor,$id_pregunta); //Preguntas tipo 2 agrupadas\n $_ldata[1]= $v_rpta[2];\n \n }else{\n \n //Averiguando si la pregunta es tipo multiple y si la respuesta es null si es asi \n //Salta a la siguiente pregunta\n if(!empty($this->multiples[$id_pregunta]) and empty($_valor)){\n continue;\n }else if(!empty($this->multiples[$id_pregunta]) and !is_null($_valor)){\n $_idrespuesta=''; \n } \n \n /*Si la pregunta es tipo 3 se averigua si la respuesta es tipo especifique*/\n $_otros=null;\n if($_ldata[2]=='3' and isset($_vectorpost['Detcapitulo']['otros_'.$_ldata[0]])){\n \n $_otros = $_vectorpost['Detcapitulo']['otros_'.$_ldata[0]];\n $v_rpta= $this->{\"gr_tipo\".$_ldata[2]}($_idrespuesta,$_valor,$_otros);\n \n }else{\n \n if($_ldata[2]==11 and isset($this->_tipo11[$_nameq])){\n $_valor=count($this->_tipo11[$_nameq]);\n $v_rpta= $this->{\"gr_tipo\".$_ldata[2]}($_idrespuesta,$_valor);\n }else if ($_ldata[2]!=11 and !isset($this->_tipo11[$_nameq])){\n $v_rpta= $this->{\"gr_tipo\".$_ldata[2]}($_idrespuesta,$_valor,$_otros,$id_pregunta);\n }else{\n continue;\n } \n }\n } \n \n /*Asignando valor == null*/\n $v_rpta[1]=(!isset($v_rpta[1]))? NULL:$v_rpta[1];\n \n \n /*Generado comando SQL*/\n if(!empty($v_rpta[0])){\n \n if(empty($this->_idjunta))$this->_idjunta=0;\n if(is_null($_otros)){ \n \n if (strpos($v_rpta[0], ';') !== false) {\n $sep_qu = explode(\";\", $v_rpta[0]);\n \n Yii::$app->db->createCommand($sep_qu[0])\n ->bindValues([\n ':valor' => $v_rpta[1],\n ':idconjrpta' => $this->_idconjrpta,\n ':idpregunta' => $_ldata[1],\n ':idtpregunta' => $_ldata[2],\n ':idcapitulo' =>$this->_idcapitulo,\n ':idformato' =>$this->_idformato,\n ':idconjprta' => $this->_idconjprta,\n ':idversion' =>$this->_idversion,\n ':idjunta' =>$this->_idjunta,\n ])->execute();\n \n Yii::$app->db->createCommand($sep_qu[1])\n ->bindValues([\n ':valor' => $v_rpta[1],\n ])->execute();\n \n \n }\n else\n {\n Yii::$app->db->createCommand($v_rpta[0])\n ->bindValues([\n ':valor' => $v_rpta[1],\n ':idconjrpta' => $this->_idconjrpta,\n ':idpregunta' => $_ldata[1],\n ':idtpregunta' => $_ldata[2],\n ':idcapitulo' =>$this->_idcapitulo,\n ':idformato' =>$this->_idformato,\n ':idconjprta' => $this->_idconjprta,\n ':idversion' =>$this->_idversion,\n ':idjunta' =>$this->_idjunta,\n ])->execute();\n }\n \n \n }else{ \n Yii::$app->db->createCommand($v_rpta[0])\n ->bindValues([\n ':valor' => $v_rpta[1],\n ':idconjrpta' => $this->_idconjrpta,\n ':idpregunta' => $_ldata[1],\n ':idtpregunta' => $_ldata[2],\n ':idcapitulo' =>$this->_idcapitulo,\n ':idformato' =>$this->_idformato,\n ':idconjprta' => $this->_idconjprta,\n ':idversion' =>$this->_idversion,\n ':idjunta' =>$this->_idjunta,\n ':otros' =>$_otros, \n ])->execute();\n }\n\n /*Se averigua con que id quedo guardada la respuesta si es tipo 11 -> guarda en SOP SOPORTE*/\n if($_ldata[2]=='11' and !empty($this->_tipo11[$_nameq])){\n\n $id_rpta = Yii::$app->db->createCommand(\n 'SELECT id_respuesta FROM fd_respuesta '\n . 'WHERE id_pregunta = :_prta'\n . ' and fd_respuesta.id_conjunto_pregunta= :idconjprta \n and fd_respuesta.id_conjunto_respuesta= :idconjrpta\n and fd_respuesta.id_capitulo= :idcapitulo\n and fd_respuesta.id_formato = :idformato\n and fd_respuesta.id_version = :idversion' )\n ->bindValues([\n ':_prta' => $_ldata[1], \n ':idconjrpta' => $this->_idconjrpta,\n ':idcapitulo' =>$this->_idcapitulo,\n ':idformato' =>$this->_idformato,\n ':idconjprta' => $this->_idconjprta,\n ':idversion' =>$this->_idversion, \n ])->queryOne();\n\n\n foreach($this->_tipo11[$_nameq] as $_cltp11){\n\n $_vctp11=explode(\":::\",$_cltp11);\n $_namefile = $_vctp11[0].\".\".$_vctp11[2];\n\n $_sqlSOP=\"INSERT INTO sop_soportes ([[ruta_soporte]],[[titulo_soporte]],[[tamanio_soportes]],[[id_respuesta]]) VALUES (:ruta, :titulo, :tamanio, :_idrpta)\";\n\n Yii::$app->db->createCommand($_sqlSOP)\n ->bindValues([\n ':ruta' => $_vctp11[1],\n ':titulo' => $_namefile,\n ':tamanio' => $_vctp11[3],\n ':_idrpta' => $id_rpta[\"id_respuesta\"],\n ])->execute();\n\n }\n \n }\n /*Fin guardando en SOP_SOPORTES para tipo 11*/\n \n } \n }\n\n }\n \n \n \n $_transaction->commit();\n \n }catch (\\Exception $e) {\n $_transaction->rollBack();\n throw $e;\n return FALSE;\n } catch (\\Throwable $e) {\n $_transaction->rollBack();\n throw $e;\n return FALSE;\n } \n \n }\n return TRUE;\n }", "public function RegistrarMovimientoCajas()\n{\nself::SetNames();\nif(empty($_POST[\"tipomovimientocaja\"]) or empty($_POST[\"montomovimientocaja\"]) or empty($_POST[\"mediopagomovimientocaja\"]) or empty($_POST[\"codcaja\"]))\n{\n\techo \"1\";\n\texit;\n}\n\n$sql = \" SELECT * FROM arqueocaja INNER JOIN cajas ON arqueocaja.codcaja = cajas.codcaja WHERE arqueocaja.codcaja = \".$_POST[\"codcaja\"].\" AND statusarqueo = '1'\";\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->execute();\n\t$num = $stmt->rowCount();\n\tif($num==0)\n\t{\n\t\techo \"2\";\n\t\texit;\n\n\t} \n\telse if($_POST[\"montomovimientocaja\"]>0)\n{\n\t\n\n#################### AQUI AGREGAMOS EL INGRESO A ARQUEO DE CAJA ####################\n\t$sql = \"select montoinicial, ingresos, egresos from arqueocaja where codcaja = '\".$_POST[\"codcaja\"].\"'\";\n\tforeach ($this->dbh->query($sql) as $row)\n\t{\n\t\t$this->p[] = $row;\n\t}\n\t$inicial = $row['montoinicial'];\n\t$ingreso = $row['ingresos'];\n\t$egresos = $row['egresos'];\n\t$total = $inicial+$ingreso-$egresos;\n\n\tif($_POST[\"tipomovimientocaja\"]==\"INGRESO\"){\n\n\t\t$sql = \" update arqueocaja set \"\n\t\t.\" ingresos = ? \"\n\t\t.\" where \"\n\t\t.\" codcaja = ? and statusarqueo = '1';\n\t\t\";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->bindParam(1, $ingresos);\n\t\t$stmt->bindParam(2, $codcaja);\n\n\t\t$ingresos = rount($_POST[\"montomovimientocaja\"]+$ingreso,2);\n\t\t$codcaja = strip_tags($_POST[\"codcaja\"]);\n\t\t$stmt->execute();\n\n\t\t$query = \" insert into movimientoscajas values (null, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t$stmt = $this->dbh->prepare($query);\n\t\t$stmt->bindParam(1, $tipomovimientocaja);\n\t\t$stmt->bindParam(2, $montomovimientocaja);\n\t\t$stmt->bindParam(3, $mediopagomovimientocaja);\n\t\t$stmt->bindParam(4, $codcaja);\n\t\t$stmt->bindParam(5, $descripcionmovimientocaja);\n\t\t$stmt->bindParam(6, $fechamovimientocaja);\n\t\t$stmt->bindParam(7, $codigo);\n\n\t\t$tipomovimientocaja = strip_tags($_POST[\"tipomovimientocaja\"]);\n\t\t$montomovimientocaja = strip_tags($_POST[\"montomovimientocaja\"]);\n\t\t$mediopagomovimientocaja = strip_tags($_POST[\"mediopagomovimientocaja\"]);\n\t\t$codcaja = strip_tags($_POST[\"codcaja\"]);\n\t\t$descripcionmovimientocaja = strip_tags($_POST[\"descripcionmovimientocaja\"]);\n\t\t$fechamovimientocaja = strip_tags(date(\"Y-m-d h:i:s\",strtotime($_POST['fecharegistro'])));\n\t\t$codigo = strip_tags($_SESSION[\"codigo\"]);\n\t\t$stmt->execute();\n\n\t} else {\n\n\t\tif($_POST[\"montomovimientocaja\"]>$total){\n\t\t\n\t\techo \"3\";\n\t\texit;\n\n\t} else {\n\n\t\t$sql = \" update arqueocaja set \"\n\t\t.\" egresos = ? \"\n\t\t.\" where \"\n\t\t.\" codcaja = ? and statusarqueo = '1';\n\t\t\";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->bindParam(1, $egresos);\n\t\t$stmt->bindParam(2, $codcaja);\n\n\t\t$egresos = rount($_POST[\"montomovimientocaja\"]+$egresos,2);\n\t\t$codcaja = strip_tags($_POST[\"codcaja\"]);\n\t\t$stmt->execute();\n\n\t\t$query = \" insert into movimientoscajas values (null, ?, ?, ?, ?, ?, ?, ?); \";\n\t\t$stmt = $this->dbh->prepare($query);\n\t\t$stmt->bindParam(1, $tipomovimientocaja);\n\t\t$stmt->bindParam(2, $montomovimientocaja);\n\t\t$stmt->bindParam(3, $mediopagomovimientocaja);\n\t\t$stmt->bindParam(4, $codcaja);\n\t\t$stmt->bindParam(5, $descripcionmovimientocaja);\n\t\t$stmt->bindParam(6, $fechamovimientocaja);\n\t\t$stmt->bindParam(7, $codigo);\n\n\t\t$tipomovimientocaja = strip_tags($_POST[\"tipomovimientocaja\"]);\n\t\t$montomovimientocaja = strip_tags($_POST[\"montomovimientocaja\"]);\n\t\t$mediopagomovimientocaja = strip_tags($_POST[\"mediopagomovimientocaja\"]);\n\t\t$codcaja = strip_tags($_POST[\"codcaja\"]);\n\t\t$descripcionmovimientocaja = strip_tags($_POST[\"descripcionmovimientocaja\"]);\n\t\t$fechamovimientocaja = strip_tags(date(\"Y-m-d h:i:s\",strtotime($_POST['fecharegistro'])));\n\t\t$codigo = strip_tags($_SESSION[\"codigo\"]);\n\t\t$stmt->execute();\n\n\t }\n\n\t}\n\necho \"<div class='alert alert-success'>\";\necho \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\necho \"<span class='fa fa-check-square-o'></span> EL MOVIMIENTO DE CAJA FUE REGISTRADO EXITOSAMENTE\";\necho \"</div>\";\t\t\nexit;\n }\n else\n {\n\techo \"4\";\n\texit;\n }\n}", "public function inscription($array)\n\t{\n\t\ttry\n\t\t{\n\t\t\t//préparer la requete SQL pour insérer les données\n\t\t\t$stmt = $this->conn->prepare(\"INSERT INTO comptes (login,mdp,user) VALUES (:email, :password, :user)\");\n //initialiser un tableau avec les données à insérer\n\t\t\t$param = array(\n ':email' => $array['email'],\n ':password' => $array['password'],\n ':user' => $array['user']\n );\n\n //éxécuter la requête SQL\n $stmt = $stmt->execute($param);\n\n //si la requête à été bien éxecuté alors creer l'etudiant ou l'enseignant\n if ($stmt) {\n \tif($array['user']==\"Etudiant\"){\n \t\t//recuperie la moyenne de l'etudiant\n\t\t\t $moy = $this->conn->query(\"SELECT id FROM moyennes WHERE code=\\\"\".$array['code'].\"\\\"\");\n\t\t\t $moy=$moy->fetch();\n\t\t //recuperie l'id de compte \n\t\t\t $compt = $this->conn->query(\"SELECT id FROM comptes WHERE login=\\\"\".$array['email'].\"\\\" and mdp=\\\"\".$array['password'].\"\\\"\");\n\t\t\t $compt=$compt->fetch();\n\t\t\t //préparer la requete SQL pour insérer les données\n\t\t\t $stmt = $this->conn->prepare(\"INSERT INTO etudiants (nom,code,prenom,specialite, moyenne_id,compt_id) VALUES (:nom, :code, :prenom, :specialite,:moyenne_id,:compt_id)\");\n //initialiser un tableau avec les données à insérer\n\t\t\t $param = array(\n ':nom' => $array['nom'],\n ':code' => $array['code'],\n ':prenom' => $array['prenom'],\n ':specialite' => $array['specialite'],\n ':moyenne_id' => $moy['id'],\n ':compt_id' => $compt['id']\n );\n\n //éxécuter la requête SQL\n $stmt = $stmt->execute($param);\n\n \t}\n \tif($array['user']==\"Enseignant\"){\n \t\t\n \t}\n }\n\n //si la requête à été bien éxecuté alors connecter\n if ($stmt) {\n \treturn true;\n }else{\n \treturn false;\n }\n\n\t\t}\n\t\tcatch(PDOException $e)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "static Public function MdlGuardaCancelado($idcliente, $num_cancelacion, $numsalida, $fechasalida, $valor1, $valor2, $prevta, $idalmacen, $espromo,$idUsuario){\n\n $stmt = Conexion::conectar()->prepare(\"INSERT INTO cancela_venta(id_cliente, num_cancelacion, num_salida, fecha_salida, id_producto, cantidad, precio_venta, id_almacen, es_promo, ultusuario) VALUES (:id_cliente, :num_cancelacion, :num_salida, :fecha_salida, :id_producto, :cantidad, :precio_venta, :id_almacen, :es_promo, :ultusuario)\");\n\n $stmt->bindParam(\":id_cliente\", $idcliente, PDO::PARAM_INT);\n $stmt->bindParam(\":num_cancelacion\", $num_cancelacion, PDO::PARAM_INT);\n $stmt->bindParam(\":num_salida\", $numsalida, PDO::PARAM_STR);\n $stmt->bindParam(\":fecha_salida\", $fechasalida, PDO::PARAM_STR);\n $stmt->bindParam(\":id_producto\", $valor1, PDO::PARAM_INT);\n $stmt->bindParam(\":cantidad\", $valor2, PDO::PARAM_INT);\n $stmt->bindParam(\":precio_venta\", $prevta, PDO::PARAM_STR);\n $stmt->bindParam(\":id_almacen\", $idalmacen, PDO::PARAM_INT);\n $stmt->bindParam(\":es_promo\", $espromo, PDO::PARAM_INT);\n $stmt->bindParam(\":ultusuario\", $idUsuario, PDO::PARAM_INT);\n\t\tif($stmt->execute()){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\n\t//$stmt->close();\n\t$stmt = null;\n \n}", "function ajouterArticle($data){ \n global $connexion;\n $requete = $connexion -> prepare('\n INSERT INTO articles\n (title, created_at, modified_at, introduction, content, image_url, category_id) \n VALUES \n (:title, NOW(), NOW(), :introduction, :content, :image_url, :category_id)');\n $requete -> execute([\n ':title' => $data['title'],\n ':introduction' => $data['introduction'],\n ':content' => $data['content'],\n ':image_url' => $data['image_url'],\n ':category_id' => $data['category_id']\n ]);\n $idNewArticle = $connexion -> lastInsertId();\n return $idNewArticle;\n \n \n}", "function registrarCliente (){\n\t\t$x = $this->pdo->prepare('INSERT INTO cliente (cedula,correo,clave,nombre,celular,ciudad,direccion) VALUES (?,?,?,?,?,?,?)');\n\t\t$x->execute(array($this->cedula,$this->correo,$this->clave,$this->nombre,$this->celular,$this->ciudad,$this->direccion));\n\t\treturn $x;\n\t}", "public function prepare()\n {\n $this->getInstruction()->execute();\n }", "function ajouterArticle($id,$qteProduit){\r\n $idpanier=creationPanier();\r\n if($idpanier==false)\r\n {\r\n echo 'Probleme acces au panier.';\r\n die(); \r\n }\r\n\r\n echo 'debug1';\r\n //Connexion database\r\n try {\r\n $dbh = new PDO('mysql:host=localhost;dbname=retromathon', 'root', '');\r\n }\r\n catch( PDOException $Exception ) {\r\n echo $Exception->getMessage();\r\n die();\r\n }\r\n\r\n //Selection du id produit s'il existe dans le panier\r\n $req = \"SELECT * FROM selectionne WHERE REF_PANIER=\".$idpanier.\" AND REF_ART='\".$id.\"';\";\r\n $prep = $dbh->query($req);\r\n if($prep==false) //Erreur\r\n {\r\n echo 'Erreur Base de Donnees';\r\n die(); \r\n }\r\n $article = $prep->fetch();\r\n if(($article!=null)&&(count($article)!=0)) //Article existe\r\n {\r\n //On incremante la quantite\r\n $newQte=$article['QTE_CHOISI']+$qteProduit;\r\n $req = \"UPDATE selectionne SET QTE_CHOISI=\".$newQte.\" WHERE REF_PANIER=\".$idpanier.\" AND REF_ART='\".$id.\"';\";\r\n $prep = $dbh->exec($req);\r\n if($prep==0) //Erreur\r\n {\r\n echo 'Erreur Base de Donnees';\r\n die(); \r\n }\r\n }\r\n else //Article n'existe pas\r\n {\r\n //Ajout de l'article au panier\r\n $req = \"INSERT INTO selectionne (REF_ART, REF_PANIER,QTE_CHOISI) VALUES ('\".$id.\"',\".$idpanier.\",\".$qteProduit.\");\";\r\n $prep = $dbh->exec($req);\r\n if($prep==0) //Erreur\r\n {\r\n echo 'Erreur INSERT Base de Donnees';\r\n die(); \r\n }\r\n }\r\n}", "function crearEntrenador(){\n\t\tglobal $con;\n\t\t$Nombre = $_POST['Nombre'];\n\t\t$Apellido = $_POST['Apellido'];\n\t\t$Telefono = $_POST['Telefono'];\n\t\t$Club = $_POST['Club'];\n\t\t$Email = $_POST['Email'];\n\t\t$Password = $_POST['Password'];\n\t\t$user = strstr($Email, '@', true);\n\n\t\t$crear_entrenador = \"INSERT INTO User(Name, LastName, UserName, Password, Phone, Email, Role)\n\t\t\t\t\t\t\tVALUES('$Nombre', '$Apellido', '$user', '$Password', '$Telefono','$Email', 'Entrenador')\";\n\t\t$send_query = mysqli_query($con, $crear_entrenador);\n\n\t\t$login = \"INSERT INTO Coachs(UserID, Role, Asociacion)\n\t\t\t\t\tVALUES( LAST_INSERT_ID(),'Entrenador','$Club')\";\n\t\t$send_query2 = mysqli_query($con, $login);\n\n\t\tif(!$send_query or !$send_query2){\n\t\t\t\tdie('Could not update data: ');\n\t\t}\n\t\telse{\n\t\t\t\techo \"Updated data successfully\\n\";\n\t\t\t\tunset($_POST);\n\t\t\t\tunset($_REQUEST);\n\t\t\t\techo \"<script>location.href='tablaEntrenadoresAdmin.php';</script>\";\n\t\t}\n}", "public function inscription($mail, $nom, $prenom, $rue, $cp, $ville, $num, $mdp)\r\n\t{\r\n\t\t$req = \"INSERT INTO demandeurs VALUES ('$mail','$nom','$prenom','$rue','$cp','$ville','$num','$mdp')\";\r\n\t\t$res = PdoFredi::$monPdo->exec($req);\r\n\t}", "function insertarEnBd(){\n $conexion = new PDO('mysql:host=localhost;dbname=tarea02;charset=UTF8', 'root', '');\n $conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n \n /* Se define la consulta SQL */\n $consulta = \"INSERT INTO maestro (noEmpleado,carrera,nombre,telefono) VALUES (\";\n $consulta .= \"'$this->noEmpleado','$this->carrera','$this->nombre','$this->telefono');\";\n \n /* Se efectúa la consulta. */\n $conexion->exec($consulta);\n\n}", "function registrarDetalleDocumento(DetalleDocumento $nuevoDetalle){\n\n require 'parametrosBD.php';\n\n try{\n $conn = new PDO(\"mysql:host=$host;dbname=$nombreBaseDatos\", $usuario,$password);\n\n $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n $query = $conn->prepare(\"INSERT INTO DETALLE_DOCUMENTO (idTipoDoc, folioDoc, codProd, precioUnitario, cantUnitaria, descuento, valor) \n VALUES (?, ?, ?, ?, ?, ?, ?)\");\n \n $result = $query->execute([$nuevoDetalle->getEncabezadoDocumento()->getTipoDoc()->getIdTipoDoc(),\n $nuevoDetalle->getEncabezadoDocumento()->getFolioDoc(), \n $nuevoDetalle->getProducto()->getCodProd(),\n $nuevoDetalle->getPrecioUnitario(),\n $nuevoDetalle->getCantUnitaria(),\n $nuevoDetalle->getDescuento(),\n $nuevoDetalle->getValor()]);\n \n if($result === true)\n {\n return 'ok';\n }\n else\n {\n return 'err';\n }\n\n }catch(PDOException $pe){\n\n return \"err : \" . $pe->getMessage();\n\n }\n }", "function registrar(){\n\n\t\t\t\n\t\t$sql = \"INSERT INTO USUARIOS (\n\t\t\tlogin,\n\t\t\tpassword,\n\t\t\tnombre,\n\t\t\tapellidos,\n\t\t\temail,\n\t\t\tDNI,\n\t\t\ttelefono,\n\t\t\tFechaNacimiento,\n\t\t\tfotopersonal,\n\t\t\tsexo\n\t\t\t) \n\t\t\t\tVALUES (\n\t\t\t\t\t'\".$this->login.\"',\n\t\t\t\t\t'\".$this->password.\"',\n\t\t\t\t\t'\".$this->nombre.\"',\n\t\t\t\t\t'\".$this->apellidos.\"',\n\t\t\t\t\t'\".$this->email.\"',\n\t\t\t\t\t'\".$this->DNI.\"',\n\t\t\t\t\t'\".$this->telefono.\"',\n\t\t\t\t\t'\".$this->FechaNacimiento.\"',\n\t\t\t\t\t'\".$this->fotopersonal.\"',\n\t\t\t\t\t'\".$this->sexo.\"'\n\n\t\t\t\t\t)\";\n\t\t\t\t\t\t\t\t\n\t\tif (!$this->mysqli->query($sql)) { //Si la sentencia sql no devuelve información\n\t\t\treturn 'Error de gestor de base de datos';\n\t\t}\n\t\telse{\n\t\t\treturn 'Inserción realizada con éxito'; //si es correcta\n\t\t}\t\t\n\t}", "public function registrar($obj) {\n //echo \"\\n\\n\";\n $model = new DiaNoSubsidiado();\n $model = $obj;\n $query = \"\n INSERT INTO dias_nosubsidiados\n (\n id_trabajador_pdeclaracion,\n cantidad_dia,\n cod_tipo_suspen_relacion_laboral,\n estado,\n fecha_inicio,\n fecha_fin)\n VALUES (\n ?,\n ?,\n ?,\n ?,\n ?,\n ?); \n \";\n\n $stm = $this->pdo->prepare($query);\n $stm->bindValue(1, $model->getId_trabajador_pdeclaracion());\n $stm->bindValue(2, $model->getCantidad_dia());\n $stm->bindValue(3, $model->getCod_tipo_suspen_relacion_laboral());\n $stm->bindValue(4, $model->getEstado());\n $stm->bindValue(5, $model->getFecha_inicio());\n $stm->bindValue(6, $model->getFecha_fin());\n\n $stm->execute();\n //$lista = $stm->fetchAll();\n $stm = null;\n return true;\n }", "public function insertarEmpresa($nombre_empresa, $representante, $nit, $direccion, $municipio, $correo, $pagina_web, $celular, $telefono, $sector, $actividad, $clave)\n {\n $query = \"INSERT INTO empresa(nombre_empresa,representante_legal,nit_empresa,direccion_empresa,municipio_empresa,correo_empresa,web_empresa,celular_empresa,telefono_empresa,sector_empresa,actividad_empresa,clave_empresa) VALUES(:nombre,:representante,:nit,:direccion,:municipio,:correo,:pagina_web,:celular,:telefono,:sector,:actividad,:clave)\";\n $stmt = $this->conexion->prepare($query);\n $stmt->bindParam(\":nombre\", $nombre_empresa);\n $stmt->bindParam(\":representante\", $representante);\n $stmt->bindParam(\":nit\", $nit);\n $stmt->bindParam(\":direccion\", $direccion);\n $stmt->bindParam(\":municipio\", $municipio);\n $stmt->bindParam(\":correo\", $correo);\n $stmt->bindParam(\":pagina_web\", $pagina_web);\n $stmt->bindParam(\":celular\", $celular);\n $stmt->bindParam(\":telefono\", $telefono);\n $stmt->bindParam(\":sector\", $sector);\n $stmt->bindParam(\":actividad\", $actividad);\n $stmt->bindParam(\":clave\", $clave);\n if (!$stmt->execute()) {\n $stmt->closeCursor();\n return 0;\n } else {\n $stmt->closeCursor();\n return 1;\n }\n }", "function evt__enviar(){\n if($this->dep('datos')->tabla('mesa')->esta_cargada()){\n $m = $this->dep('datos')->tabla('mesa')->get();\n // print_r($m);\n $m['estado'] = 2;//Cambia el estado de la mesa a Enviado\n $this->dep('datos')->tabla('mesa')->set($m);\n // print_r($m['id_mesa']);\n $this->dep('datos')->tabla('mesa')->sincronizar();\n // $this->dep('datos')->tabla('mesa')->resetear();\n \n $m = $this->dep('datos')->tabla('mesa')->get_listado($m['id_mesa']);\n if($m[0]['estado'] == 2){//Obtengo de la BD y verifico que hizo cambios en la BD\n //Se enviaron correctamente los datos\n toba::notificacion()->agregar(utf8_decode(\"Los datos fueron enviados con éxito\"),\"info\");\n }\n else{\n //Se generó algún error al guardar en la BD\n toba::notificacion()->agregar(utf8_decode(\"Error al enviar la información, verifique su conexión a internet\"),\"info\");\n }\n }\n \n }", "public function crearInstalacion() {\n\n if ($this->seguridad->esAdmin()) {\n $id = $this->instalacion->getLastId();\n $nombre = $_REQUEST[\"nombre\"];\n $descripcion = $_REQUEST[\"descripcion\"];\n $imagen = $_FILES[\"imagen\"];\n $precioHora = $_REQUEST[\"precioHora\"];\n $horarios = array();\n \n for ($i=1; $i<=14; $i++) {\n $horarios[] = $_REQUEST[\"d\" . $i];\n }\n \n \n if ($this->instalacion->add($nombre,$descripcion,$imagen,$precioHora,$horarios,$id) > 1) {\n $this->instalacion($id);\n } else {\n echo \"<script>\n i=5;\n setInterval(function() {\n if (i==0) {\n location.href='index.php';\n }\n document.body.innerHTML = 'Ha ocurrido un error. Redireccionando en ' + i;\n i--;\n },1000);\n </script>\";\n }\n } else {\n $this->gestionReservas();\n }\n\n }" ]
[ "0.6368735", "0.63280785", "0.62358075", "0.6227785", "0.6214408", "0.6212143", "0.6191082", "0.61895865", "0.6184609", "0.6174016", "0.61727196", "0.6166378", "0.6137482", "0.6130844", "0.61057985", "0.60670036", "0.6049764", "0.6046924", "0.60467684", "0.6037135", "0.60352147", "0.6021268", "0.60151714", "0.6011215", "0.6006797", "0.5998882", "0.5986491", "0.59834653", "0.5980948", "0.59725136", "0.5961966", "0.59533", "0.59297705", "0.59292954", "0.59245193", "0.5922742", "0.5915196", "0.5900507", "0.5895173", "0.58888185", "0.58780956", "0.58697563", "0.5869479", "0.58652407", "0.5862965", "0.5857516", "0.5856992", "0.5852887", "0.5849082", "0.5837748", "0.5835911", "0.5833599", "0.58278894", "0.5822849", "0.58171856", "0.58160806", "0.5803098", "0.5802356", "0.5797756", "0.5790549", "0.5788884", "0.578639", "0.5776069", "0.5775477", "0.5775344", "0.5773997", "0.57735986", "0.57677156", "0.5764369", "0.57632303", "0.57624125", "0.57600635", "0.57459867", "0.57439494", "0.57414603", "0.5735931", "0.573308", "0.5732648", "0.572598", "0.5725592", "0.57247716", "0.57247716", "0.5720747", "0.5720574", "0.571855", "0.5715804", "0.5712595", "0.57113886", "0.57083076", "0.57065845", "0.5705398", "0.56960505", "0.5695315", "0.56797636", "0.5679632", "0.56766486", "0.56732184", "0.56663424", "0.56658405", "0.5660958", "0.56609464" ]
0.0
-1
Lit une collection a partir d'une requete preparee
function getListeParamAsPrepared($sql, $data) { $collection = $this->executeAsPrepared($sql, $data); if ($this->auto_date == 1) { $collection = $this->utilDatesDBVersLocale($collection); } if ($this->toUTF8) { $collection = $this->utf8Encode($collection); } if (is_array($collection)) { return $collection; } else { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function lireParamAsPrepared($sql, $data)\n {\n $collection = $this->executeAsPrepared($sql, $data);\n $collection = $collection[0];\n if ($this->auto_date == 1) {\n $collection = $this->utilDatesDBVersLocale($collection);\n }\n if ($this->toUTF8) {\n $collection = $this->utf8Encode($collection);\n }\n return $collection;\n }", "protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel($this->_getCollectionClass());\n $collection->setOrder('ID','DESC');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "protected function _prepareCollection() {\n /**\n * \n * @var unknown\n */\n /**\n * Calling the parent Construct Method.\n * \n * Getting collection for bank details\n */\n $managebankdetailsCollection = Mage::getModel ( 'airhotels/managebankdetails' )->getCollection ();\n $this->setCollection ( $managebankdetailsCollection ); \n return parent::_prepareCollection ();\n /**\n * return _prepareCollection\n */\n }", "protected function _prepareCollection() {\n /**\n * Get the Collection of Manage Subscription\n */\n $manageSubscription = Mage::getModel ( 'airhotels/managesubscriptions' )->getCollection ();\n \n /**\n * Get the Table Prefix Value\n */\n $tablePrefix = Mage::getConfig ()->getTablePrefix ();\n $manageSubscription->getSelect ()->group ( 'main_table.product_id' )->joinLeft ( $tablePrefix . 'apptha_productsubscriptions', 'main_table.product_id =' . $tablePrefix . 'apptha_productsubscriptions.product_id AND ' . $tablePrefix . 'apptha_productsubscriptions.is_delete = 0', array (\n 'main_table.id as id',\n 'main_table.product_name as product_name',\n $tablePrefix . 'apptha_productsubscriptions.subscription_type as subscription_type' \n ) )->where ( 'main_table.is_subscription_only = ?', 1 );\n \n $collection = $manageSubscription;\n $this->setCollection ( $collection );\n /**\n * Calling the parent Construct Method.\n */\n return parent::_prepareCollection ();\n }", "public function collection() {\n \t$db = $this->db;\n\t\t$sql = $this->sql();\n\t\t$rows = $db::execute($sql);\n\t\t$model = $this->model;\n\t\treturn new \\Collection($model::arrayFactoryFromRows($rows));\n\t}", "protected function _prepareCollection() {\n $collection = Config::get()->collectionTransaction();\n $asTrnx = 'main_table';\n $collection->addFieldToSelect(Transaction::ATTR_ID, self::AS_TRAN_ID);\n $collection->addFieldToSelect(Transaction::ATTR_DATE_APPLIED, self::AS_DATE_APPLIED);\n $collection->addFieldToSelect(Transaction::ATTR_VALUE, self::AS_VALUE);\n /* LEFT JOIN prxgt_bonus_operation oper ON trnx.operation_id = oper.id */\n $asOper = 'oper';\n $tbl = array( $asOper => Config::ENTITY_OPERATION );\n $cond = $asTrnx . '.' . Transaction::ATTR_OPERATION_ID . '=' . $asOper . '.' . Operation::ATTR_ID;\n $cols = array(\n self::AS_OPER_ID => Operation::ATTR_ID,\n self::AS_DATE_PERFORMED => Operation::ATTR_DATE_PERFORMED\n );\n $collection->join($tbl, $cond, $cols);\n /* LEFT JOIN prxgt_bonus_account credit ON trnx.credit_acc_id = credit.id */\n $asCredit = 'credit';\n $tbl = array( $asCredit => Config::ENTITY_ACCOUNT );\n $cond = $asTrnx . '.' . Transaction::ATTR_CREDIT_ACC_ID . '=' . $asCredit . '.' . Account::ATTR_ID;\n $cols = array();\n $collection->join($tbl, $cond, $cols);\n /* LEFT JOIN prxgt_bonus_account debit ON trnx.debit_acc_id = debit.id */\n $asDebit = 'debit';\n $tbl = array( $asDebit => Config::ENTITY_ACCOUNT );\n $cond = $asTrnx . '.' . Transaction::ATTR_DEBIT_ACC_ID . '=' . $asDebit . '.' . Account::ATTR_ID;\n $cols = array();\n $collection->join($tbl, $cond, $cols);\n /* LEFT JOIN customer_entity custCred ON credit.customer_id = custCred.entity_id */\n $asCreditCust = 'creditCust';\n $tbl = array( $asCreditCust => 'customer/entity' );\n $cond = $asCredit . '.' . Account::ATTR_CUSTOMER_ID . '=' . $asCreditCust . '.' . Eav::DEFAULT_ENTITY_ID_FIELD;\n $cols = array( self::AS_CREDIT_CUST => ConfigCore::ATTR_CUST_MLM_ID );\n $collection->join($tbl, $cond, $cols);\n /* LEFT JOIN customer_entity custDeb ON debit.customer_id = custDeb.entity_id */\n $asDebitCust = 'debitCust';\n $tbl = array( $asDebitCust => 'customer/entity' );\n $cond = $asDebit . '.' . Account::ATTR_CUSTOMER_ID . '=' . $asDebitCust . '.' . Eav::DEFAULT_ENTITY_ID_FIELD;\n $cols = array( self::AS_DEBIT_CUST => ConfigCore::ATTR_CUST_MLM_ID );\n $collection->join($tbl, $cond, $cols);\n /* LEFT JOIN prxgt_bonus_type_asset asset ON credit.asset_id = asset.id */\n $asAsset = 'asset';\n $tbl = array( $asAsset => Config::ENTITY_TYPE_ASSET );\n $cond = $asCredit . '.' . Account::ATTR_ASSET_ID . '=' . $asAsset . '.' . TypeAsset::ATTR_ID;\n $cols = array( self::AS_ASSET_CODE => TypeAsset::ATTR_CODE );\n $collection->join($tbl, $cond, $cols);\n /* LEFT JOIN prxgt_bonus_type_oper operType ON oper.type_id = operType.id */\n $asOperType = 'operType';\n $tbl = array( $asOperType => Config::ENTITY_TYPE_OPER );\n $cond = $asOper . '.' . Operation::ATTR_TYPE_ID . '=' . $asOperType . '.' . TypeOper::ATTR_ID;\n $cols = array( self::AS_OPER_CODE => TypeOper::ATTR_CODE );\n $collection->join($tbl, $cond, $cols);\n /* prepare collection */\n $sql = $collection->getSelectSql(true);\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }", "protected function _prepareCollection()\n\t{\n\t\t$collection = Mage::getResourceModel($this->_getCollectionClass());\n\t\t$this->setCollection($collection);\n\t\t \n\t\treturn parent::_prepareCollection();\n\t}", "protected function _prepareCollection()\n {\n $collection = Mage::getModel('lavi_news/news')->getResourceCollection();\n\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "function lireParam($sql)\n {\n $collection = $this->execute($sql);\n $collection = $collection[0];\n if ($this->auto_date == 1) {\n $collection = $this->utilDatesDBVersLocale($collection);\n }\n if ($this->codageHtml) {\n $collection = $this->htmlEncode($collection);\n }\n if ($this->toUTF8) {\n $collection = $this->utf8Encode($collection);\n }\n return $collection;\n }", "protected function _prepareCollection()\n {\n $collection = $this->collectionFactory->create();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "public function prepareCollection()\n {\n $this->_reset();\n\n $this->addAttributeToSelect('*');\n\n // Select cart items\n $this->joinTable(\n array('qi' => 'sales/quote_item'),\n 'product_id = entity_id',\n array(\n 'product_name' => 'name',\n 'counts' => 'COUNT(1)',\n 'sum_qty' => \"SUM(CASE WHEN qip.product_type IN ('configurable', 'bundle') THEN qip.qty * qi.qty ELSE qi.qty END)\",\n 'total' => \"SUM(CASE WHEN qip.product_type='configurable' THEN qip.base_row_total ELSE qi.base_row_total END)\",\n 'product_type',\n 'quote_id' => 'quote_id',\n 'parent_item_id' => 'parent_item_id',\n 'item_created_at' => 'created_at'\n )\n );\n $this->addFilterToMap('parent_item_id', 'qi.parent_item_id');\n $this->addFilterToMap('product_type', 'qi.product_type');\n $this->addFilterToMap('item_created_at', 'item_created_at');\n\n // Retrieve base currency code from parent quote\n $this->joinTable(\n array('q' => 'sales/quote'),\n 'entity_id = quote_id',\n array('currency_code' => 'base_currency_code', 'store_id' => 'store_id')\n );\n\n // Select only cart items attached to a subscription\n $this->joinTable(\n array('s' => 'sheep_subscription/subscription'),\n 'quote_id = quote_id',\n array('subscription_created_at' => 'created_at',)\n );\n\n // re-join sales_flat_quote_item to retrieve parent info (if available)\n $this->joinTable(\n array('qip' => 'sales/quote_item'),\n 'item_id = parent_item_id',\n array('parent_product_type' => 'product_type', 'parent_qty' => 'qty'),\n null,\n 'left'\n );\n $this->addFilterToMap('parent_product_type', 'qip.product_type');\n $this->addFilterToMap('parent_qty', 'qip.qty');\n\n // Filter only cart items created during specified period\n $this->addFieldToFilter('item_created_at', array(\n 'from' => $this->_from,\n 'to' => $this->_to,\n 'datetime' => true\n ));\n\n $this->getSelect()->where(\n \"(qi.parent_item_id is null and qi.product_type NOT IN ('bundle', 'configurable')) OR\" .\n \"(qi.parent_item_id is not null and qip.product_type IN ('bundle', 'configurable'))\"\n );\n\n $this->getSelect()\n ->group('e.entity_id')\n ->order('counts ' . self::SORT_ORDER_DESC)\n ->having('COUNT(qi.product_id) > ?', 0);\n\n\n // Filter only quotes that were created in specified stores\n if ($this->_storeIds) {\n $this->addFieldToFilter('store_id', array('in' => $this->_storeIds));\n }\n }", "protected function _prepareCollection()\n {\n $currentCampaign = Mage::getSingleton('adminhtml/session')->getCurrentCampaign();\n $collection = Mage::getModel('campaign/bannerslider')->getCollection();\n $collection->getSelect()\n ->joinLeft(array('campaign'=>$collection->getTable('campaign/campaign')),\n 'main_table.campaign_id = campaign.campaign_id', '')\n ->columns(array('campaign_name'=>'IF(main_table.campaign_id = \"'.$currentCampaign->getId().'\", \"Current\", campaign.name)'))\n ->group('main_table.bannerslider_id');\n $filter = Mage::registry('banner_reloaded_ids');\n if(!isset($filter)){//if reset no filter\n $selected_id = $this->_selectedId();\n if(!empty($selected_id)){\n $collection->addFieldToFilter('bannerslider_id', array('in'=>$selected_id));\n }\n }\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "protected function _prepareCollection()\n {\t\t \n\t\t\n $collection = Mage::getModel('catalog/product')\n \t->getCollection()\n \t->addAttributeToSelect('name')\n \t->addAttributeToSelect('price')\n \t->addAttributeToSelect('special_price')\n \t->addAttributeToSelect('name')\n \t->addAttributeToSelect('manufacturer')\n \t->addFieldToFilter('type_id', array('in' => array(Mage_Catalog_Model_Product_Type::TYPE_SIMPLE, Mage_Catalog_Model_Product_Type::TYPE_VIRTUAL)))\n ->joinField('qty',\n 'cataloginventory/stock_item',\n 'qty',\n 'product_id=entity_id',\n '{{table}}.stock_id=1',\n 'left');\n \t;\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "protected function _prepareCollection()\n {\n /** @var $collection ChazkiExpressCollection */\n $collection = $this->_collectionFactory->create();\n $collection->setWebsiteFilter($this->getWebsiteId());\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "protected function _prepareCollection()\n {\n $collection = Mage::getModel('solutionpartner/partner')->getCollection();\n $collection->getSelect()->joinLeft(\n array('order' => $collection->getTable('sales/order')),\n 'main_table.email = order.customer_email AND order.status = \"complete\"',\n array(\n 'order_id' => 'entity_id',\n 'order_status' => 'order.status',\n 'number_qtys' => 'count(order.entity_id)'\n ))\n ->group('main_table.solutionpartner_id');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "protected function _prepareCollection()\n {\n $userId = Mage::getSingleton('admin/session')->getUser()->getId();\n\n /* var $collection Gri_Cms_Model_Mysql4_Version_Collection */\n $collection = Mage::getModel('gri_cms/page_version')->getCollection()\n ->addPageFilter($this->getPage())\n ->addVisibilityFilter($userId,\n Mage::getSingleton('gri_cms/config')->getAllowedAccessLevel())\n ->addUserColumn()\n ->addUserNameColumn();\n\n if (!$this->getParam($this->getVarNameSort())) {\n $collection->addNumberSort();\n }\n\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel($this->_getCollectionClass());\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "protected function _prepareCollection()\n {\n $collection = Mage::getModel('sales/order_shipment')->getCollection();\n $tableName = Mage::getSingleton('core/resource')->getTableName('sales_flat_order');\n\n $collection->getSelect()->joinLeft(array('o'=>$tableName), 'main_table.order_id=o.entity_id', array(\n 'order_increment_id'=>'o.increment_id',\n 'order_created_date'=>'o.created_at',\n 'o.shipping_description'));\n\n $collection->addFieldToFilter('o.shipping_description', array('like'=>'%canpar%'));\n $tableName = Mage::getSingleton('core/resource')->getTableName('ch_canpar_shipment');\n\n $collection->getSelect()->joinLeft(array('ch_shipment'=>$tableName), 'main_table.entity_id=ch_shipment.magento_shipment_id',array(\n 'canpar_shipment_id'=>'shipment_id',\n 'manifest_id'=>'manifest_id'));\n\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "public function prepare();", "public function prepare();", "protected function _prepareCollection()\n {\n $collection = Mage::getModel('oggetto_oneclick/order')->getResourceCollection();\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "abstract public function prepareSelect();", "public function getCollection() ;", "private function buildCollection(): void\n {\n //todo 這邊可以在sql裡面處理,但因為時程的關係,先用這種方法處理\n $userId = auth()->user()->id;\n $this->collection->map(function ($item) use ($userId) {\n $item->isAuthor = ($item->user_id == $userId);\n $item->user_id = null;\n });\n }", "protected function _prepareCollection()\r\n {\r\n\t\tif($this->getRequest()->getParam('store')){\r\n\t\t\t$store_id = $this->getRequest()->getParam('store');\r\n\t\t} else {\r\n\t\t\t$store_id = Mage::helper('items')-> getMlDefaultStoreId();\r\n\t\t}\r\n\t\t$attribute_id = '';\r\n\t\tif($this->getRequest()->getParam('attribute_id')!=''){\r\n\t\t\t$attribute_id = $this->getRequest()->getParam('attribute_id');\r\n\t\t} \r\n\t\t\r\n\t\t$category_id = 0;\r\n\t\tif($this->getRequest()->getParam('category_id')){\r\n\t\t\t$category_id = $this->getRequest()->getParam('category_id');\r\n\t\t}\r\n\t\t\r\n\t\t$collection = Mage::getModel('eav/entity_attribute_option')\r\n\t\t\t\t\t-> getCollection()\r\n\t\t\t\t\t-> setStoreFilter($store_id)\r\n\t\t\t\t\t-> join('attribute','attribute.attribute_id=main_table.attribute_id', 'attribute_code')\r\n\t\t\t\t\t-> addFieldToFilter('attribute.attribute_id',$attribute_id)\r\n\t\t\t\t\t-> addFieldToFilter('tsv.value', array('neq' => 'NULL' ));\t\t\t\r\n\t\t\t\t\t\r\n $collection -> getSelect()\r\n\t\t\t\t -> joinleft(array('mavm'=>'mercadolibre_attribute_value_mapping'), \" main_table.option_id = mavm.mage_attribute_option_id AND mavm.sort_order = '0' AND mavm.category_id = '\".$category_id.\"' AND mavm.store_id = '\".$store_id.\"'\",array('mavm.*'));\r\n\t\t \r\n\t\t\t\t \r\n\t\t\t\t \t\t\t\t\t\t\t\t\r\n\t $this->setCollection($collection);\r\n return parent::_prepareCollection();\r\n }", "public function Panier() \n {\n $this->CollProduit = new Collection;\n }", "public function getAll() : Collection;", "public function prepareFieldset();", "public function getCollection();", "public function getCollection();", "public function getCollection();", "public function getCollection();", "public function prepare_items() {\r\n\t\t$this->_column_headers = $this->get_column_info();\r\n\r\n\t\t/** Process bulk action */\r\n\t\t$this->process_bulk_action();\r\n\r\n\t\t$per_page = $this->get_items_per_page( 'customers_per_page', 5 );\r\n\t\t$current_page = $this->get_pagenum();\r\n\t\t$total_items = self::record_count();\r\n\r\n\t\t$this->set_pagination_args( [\r\n\t\t\t'total_items' => $total_items,\r\n\t\t\t'per_page' => $per_page\r\n\t\t] );\r\n\r\n\t\t$this->items = self::get_customers( $per_page, $current_page );\r\n\t}", "protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel('bs_docwise/docwisement_collection');\n\n if ($this->getExam()->getId()) {\n $constraint = 'related.exam_id='.$this->getExam()->getId();\n } else {\n $constraint = 'related.exam_id=0';\n }\n $collection->getSelect()->joinLeft(\n array('related' => $collection->getTable('bs_docwise/exam_docwisement')),\n 'related.docwisement_id = main_table.entity_id AND '.$constraint,\n array('position')\n );\n\n\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }", "protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel($this->_getCollectionClass());\n\t\t//$collection->getSelect()->joinLeft(array('st' => 'core_store'),'main_table.SiteID = st.store_id',array('storename' => 'st.name'));\n $this->setCollection($collection);\n \n return parent::_prepareCollection();\n }", "protected function _prepareCollection()\n {\n $collection = $this->_createCollection()->addCustomerIdFilter($this->_getCustomer()->getId())\n ->resetSortOrder()\n ->addDaysInWishlist()\n ->addStoreData();\n $this->setCollection($collection);\n\n return parent::_prepareCollection();\n }", "abstract public function iterateCollection();", "public function getList3($depart,$limit){\r\n $listArticles =[]; ///on creer une liste vide ou ont mettra tous les articles\r\n\r\n\r\n //prepare une requete de type select\r\n $sql= 'SELECT id, ' \r\n .'titre, '\r\n .'texte, '\r\n .'publie, '\r\n .'DATE_FORMAT(date, \"%d/%m/%Y\")as date '\r\n .'FROM articles '\r\n .'LIMIT :depart, :limit';\r\n \r\n $req = $this->bdd->prepare($sql);\r\n\r\n $req->bindValue(':depart', $depart, PDO::PARAM_INT);\r\n $req->bindValue(':limit', $limit, PDO::PARAM_INT);\r\n\r\n//////execution de la requete avec attribution des valeurs\r\n$req->execute();\r\n\r\n/////on stocke les données obtenues dans un tableau\r\nwhile ($donnees = $req->fetch(PDO::FETCH_ASSOC)){///tant que il y a des article alors on boucle\r\n ////on cree des objets avec les données issue de la bdd\r\n $articles = new articles();\r\n $articles->hydrate($donnees);\r\n $listArticles[] = $articles;\r\n}\r\n///print_r2($listArticles)\r\nreturn $listArticles;\r\n\r\n}", "public function asCollection();", "public function selectAllClasse(){\n\n\t\tif($this->unPdo!=null)\n\t\t{\n\t\t\t$requete=\"select * from classe ;\";\n\t\t\t//preparation de la requete avant execution\n\t\t\t$select= $this->unPdo->prepare($requete);\n\t\t\t//execution de la requete\n\t\t\t$select->execute();\n\t\t\t//extraction des données\n\t\t\t$resultats = $select->fetchAll();\n\t\t\treturn $resultats;\n\t\t}\n\t}", "public function getList(){\r\n $listArticles =[]; ///on creer une liste vide ou ont mettra tous les articles\r\n\r\n\r\n //prepare une requete de type select\r\n $sql='SELECT * FROM articles';\r\n $req = $this->bdd->prepare($sql);\r\n\r\n//////execution de la requete avec attribution des valeurs\r\n$req->execute();\r\n\r\n/////on stocke les données obtenues dans un tableau\r\nwhile ($donnees = $req->fetch(PDO::FETCH_ASSOC)){///tant que il y a des article alors on boucle\r\n ////on cree des objets avec les données issue de la bdd\r\n $articles = new articles();\r\n $articles->hydrate($donnees);\r\n $listArticles[] = $articles;\r\n}\r\n///print_r2($listArticles)\r\nreturn $listArticles;\r\n\r\n}", "abstract protected function doFetchAll();", "protected function _prepareCollection()\n {\n /* @var $collection Scandi_MenuManager_Model_Resource_Item_Collection */\n $collection = Mage::getModel('scandi_menumanager/item')->getResourceCollection()\n ->addMenuFilter(Mage::registry('menumanager_menu'));\n if (!$this->getRequest()->getParam('sort')) { $collection->setPositionOrder(); }\n\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "public function fetchList();", "protected function _prepareSubset() {}", "private function preExe(){\n\t\t$pre = $this->prepare($this->_query);\n\t\t$pre->execute();\n\t\treturn $pre->fetchAll();\n\t}", "protected function _prepareCollection()\n\t{\n\t\t$collection = Mage::getResourceModel($this->_getCollectionClass());\n $collection->getSelect()->joinLeft(\n array('sfo' => 'sales_flat_order'),\n 'main_table.order_id = sfo.entity_id',\n array('increment_id')\n );\n\t\t$this->setCollection($collection);\n\n\t\treturn parent::_prepareCollection();\n\t}", "public function resultaSet(){\n $this->execute();\n return $this->statemet->fetchAll(PDO::FETCH_OBJ);\n }", "public function collect();", "function GetPeliculasConGenero(){\n //$sentencia = $this->db->prepare(\"SELECT * FROM peliculas INNER JOIN genero ON peliculas.titulo = genero.nombre\");\n $sentenciasad = $this->db->prepare(\"SELECT peliculas.titulo, genero.nombre FROM peliculas INNER JOIN genero ON peliculas.id_genero = genero.id_genero\");\n $sentencias->executing();\n //print_r( $sentencia->fetchAll(PDO::FETCH_OBJ));// vemos que este cargado y con que \n return $sentencia->fetchAll(PDO::FETCH_OBJ);\n }", "public abstract function fetchAll();", "public function all() : Collection;", "protected function _prepareCollection()\n {\n $collection = Mage::getModel('catalog/product')->getCollection()\n ->addAttributeToSelect('name')\n ->addAttributeToSelect('type')\n ->addAttributeToSelect('status')\n ->addAttributeToSelect('visibility')\n ->addAttributeToSelect('sku');\n $this->setCollection($collection);\n return parent::_prepareCollection();\n }", "public function prepare_items()\n {\n }", "public function prepare_items()\n {\n }", "public function prepare_items()\n {\n }", "public function prepare_items()\n {\n }", "public function prepare_items()\n {\n }", "public function prepare_items() {\n\n\t\t// Retrieve count.\n\t\t$this->get_counts();\n\n\t\t/**\n\t\t * TODO: implement.\n\t\t */\n\t\t$this->process_bulk_action();\n\n\t\t/*\n\t\t * Prepare all the params to pass to our Collection.\n\t\t * All sanitization is done in that class.\n\t\t */\n\t\t$params = $this->get_filters_query_params();\n\n\t\t// Total amount for pagination with WHERE clause - super quick count DB request.\n\t\t$total_items = ( new EmailsCollection( $params ) )->get_count();\n\n\t\tif ( ! empty( $_REQUEST['orderby'] ) && in_array( $_REQUEST['orderby'], [ 'subject', 'date_sent' ], true ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended\n\t\t\t$params['orderby'] = sanitize_key( $_REQUEST['orderby'] ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended\n\t\t}\n\n\t\tif ( ! empty( $_REQUEST['order'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended\n\t\t\t$params['order'] = sanitize_key( $_REQUEST['order'] ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended\n\t\t}\n\n\t\t$params['offset'] = ( $this->get_pagenum() - 1 ) * EmailsCollection::$per_page;\n\n\t\t// Get the data from the DB using parameters defined above.\n\t\t$collection = new EmailsCollection( $params );\n\t\t$this->items = $collection->get();\n\n\t\t/*\n\t\t * Register our pagination options & calculations.\n\t\t */\n\t\t$this->set_pagination_args(\n\t\t\t[\n\t\t\t\t'total_items' => $total_items,\n\t\t\t\t'per_page' => EmailsCollection::$per_page,\n\t\t\t]\n\t\t);\n\t}", "public function prepare_items() {\n\t\t/** Process bulk action */\n\t\t$this->process_bulk_action();\n\n\t\t$columns = $this->get_columns();\n $hidden = $this->get_hidden_columns();\n $sortable = $this->get_sortable_columns();\n $this->_column_headers = array($columns, $hidden, $sortable);\n\n\t\t$per_page = $this->get_items_per_page( 'posts_per_page', 20 );\n\t\t$current_page = $this->get_pagenum();\n\t\t$total_items = self::record_count();\n\n\t\t$this->set_pagination_args( [\n\t\t\t'total_items' => $total_items, //WE have to calculate the total number of items\n\t\t\t'per_page' => $per_page //WE have to determine how many items to show on a page\n\t\t] );\n\n\t\t$this->items = self::get_posts( $per_page, $current_page );\n\t}", "public function all(): Collection;", "public function all(): Collection;", "public function all(): Collection;", "public function all(): Collection;", "public function prepare() {}", "public function prepare() {}", "public function prepare_items() {\n\t\t$column = $this->get_columns();\n\t\t$hidden = array();\n\t\t$sortable = $this->get_sortable_columns();\n\n\t\t$this->_column_headers = array( $column, $hidden, $sortable );\n\n\t\t$per_page = 20;\n\t\t$current_page = $this->get_pagenum();\n\t\t$offset = ( $current_page - 1 ) * $per_page;\n\n\t\t$args = array(\n\t\t\t'number' => $per_page,\n\t\t\t'offset' => $offset,\n\t\t);\n\n\t\tif ( isset( $_REQUEST['orderby'] ) && isset( $_REQUEST['order'] ) ) {\n\t\t\t$args['orderby'] = $_REQUEST['orderby'];\n\t\t\t$args['order'] = $_REQUEST['order'];\n\t\t}\n\n\t\t$this->items = Persistence::get( $args );\n\n\t\t$this->set_pagination_args(\n\t\t\tarray(\n\t\t\t\t'total_items' => Persistence::count(),\n\t\t\t\t'per_page' => $per_page,\n\t\t\t)\n\t\t);\n\t}", "abstract protected function _prepare();", "public function getList2(){\r\n $listArticles =[]; ///on creer une liste vide ou ont mettra tous les articles\r\n\r\n\r\n //prepare une requete de type select\r\n $sql= 'SELECT id, ' \r\n .'titre, '\r\n .'texte, '\r\n .'publie, '\r\n .'DATE_FORMAT(date, \"%d/%m/%Y\")as date '\r\n .'FROM articles ';\r\n \r\n \r\n $req = $this->bdd->prepare($sql);\r\n\r\n//////execution de la requete avec attribution des valeurs\r\n$req->execute();\r\n\r\n/////on stocke les données obtenues dans un tableau\r\nwhile ($donnees = $req->fetch(PDO::FETCH_ASSOC)){///tant que il y a des article alors on boucle\r\n ////on cree des objets avec les données issue de la bdd\r\n $articles = new articles();\r\n $articles->hydrate($donnees);\r\n $listArticles[] = $articles;\r\n}\r\n///print_r2($listArticles)\r\nreturn $listArticles;\r\n\r\n\r\n}", "public function requeteSelect($table) {\n $injectionSQL = \"SELECT * FROM `$table`\";\n // INSERT INTO `livre` (`id_livre`, `Auteur`, `Titre`) VALUES (NULL, 'Test', 'Un test');\n\n $request = $this->monPDO->prepare($injectionSQL);\n\n if ($request->execute()) { \n \n $res = $request->fetchAll();\n return $res;\n }\n }", "protected function _prepareCollection()\r\n {\r\n $this->setCollection(Mage::getModel('dynamic_brand/brand')->getCollection());\r\n return parent::_prepareCollection();\r\n }", "public function execute()\n {\n /** @var \\Unit4\\Retailer\\Model\\ResourceModel\\Retailer\\Collection $collection */\n $collection = $this->collectionFactory->create();\n// $collection->addFieldToFilter('region_id',['eq'=>2]);\n $collection->addFilterByProduct(3);\n \\Zend_Debug::dump($collection->getData());\n\n }", "public function getItems(): CollectionInterface;", "public function prepare_items() {\n\n\t\t$columns = $this->get_columns();\n\t\t$hidden = get_hidden_columns( $this->screen );\n \t\t$sortable = $this->get_sortable_columns();\n \t\t$this->_column_headers = array($columns, $hidden, $sortable);\n \t\t//$this->_column_headers = $this->get_column_info();\n\t\t/** Process bulk action */\n\t\t$this->process_bulk_action();\n\n\t\t$per_page = $this->get_items_per_page( 'transactions_per_page', 10 );\n\t\t$current_page = $this->get_pagenum();\n\t\t$total_items = self::record_count();\n\n\t\t$this->set_pagination_args( array(\n\t\t\t'total_items' => $total_items, //WE have to calculate the total number of items\n\t\t\t'per_page' => $per_page //WE have to determine how many items to show on a page\n\t\t));\n\n\t\t$this->items = self::get_customers( $per_page, $current_page );\n\t}", "public function prepare_items()\r\r\n {\r\r\n\r\r\n $this->_column_headers = $this->get_column_info();\r\r\n\r\r\n /** Process bulk action */\r\r\n //\t$this->process_bulk_action();\r\r\n $per_page = $this->get_items_per_page('data_logs_per_page', 5);\r\r\n $current_page = $this->get_pagenum();\r\r\n $total_items = self::record_count();\r\r\n $this->set_pagination_args(array(\r\r\n 'total_items' => $total_items,\r\r\n 'per_page' => $per_page,\r\r\n ));\r\r\n\r\r\n $this->items = self::get_Data($per_page, $current_page);\r\r\n }", "private function getPrepared()\n {\n $array = $this->ToArray();\n unset($array['currentPage']);\n unset($array['pageCount']);\n unset($array['errors']);\n unset($array['insert']);\n unset($array['table']);\n unset($array['Adapter']);\n unset($array['pdoFetch']);\n unset($array['cmsFetchMode']);\n unset($array[$this->primaryName]);\n unset($array['primaryName']);\n $prepared['update'] = '';\n foreach($array as $k=>$v)\n {\n $prepared['values'][':'.$k] = $v;\n $prepared['update'] .= '`'.$k.'`'.\"=\".':'.$k.',';\n }\n if ($prepared['update']{strlen($prepared['update'])-1} == ',')\n {\n $prepared['update'] = substr($prepared['update'],0,-1);\n }\n $prepared['set'] = implode(', ', array_keys($array));\n return $prepared;\n }", "public function all() {return $this->requete(\"SELECT * FROM \" . $this->table . \" ORDER BY marque\");}", "public function setCollection()\n {\n $cl = $this->nameCollection;\n $this->collection = self::$database->$cl;\n }", "public function prepare_items()\r\n\t{\r\n\t\t$columns = $this->get_columns();\r\n\t\t$hidden = $this->get_hidden_columns();\r\n\t\t$sortable = $this->get_sortable_columns();\r\n\r\n\t\t$currentPage = $this->get_pagenum();\r\n\r\n\t\t$this->total = Lead::count();\r\n\t\t$data = Lead::take( $this->per_page )->skip( ( $currentPage - 1 ) * $this->per_page )\r\n\t\t ->get()->toArray();\r\n\r\n\t\t$this->set_pagination_args( [\r\n\t\t\t'total_items' => $this->total,\r\n\t\t\t'per_page' => $this->per_page\r\n\t\t] );\r\n\r\n\t\t$this->_column_headers = [ $columns, $hidden, $sortable ];\r\n\r\n\t\t$this->items = $data;\r\n\t}", "public function all(): Collection\n {\n }", "public function prepare_items()\n\t\t {\n\t\t // How many records are to be shown on page\n\t\t\t\t$per_page = 20;\n\n\t\t\t\t// Columns array to be displayed\n\t\t $columns = $this->get_columns();\n\n\t\t // Columns array to be hidden\n\t\t $hidden = array();\n\n\t\t // List of sortable columns\n\t\t $sortable = $this->get_sortable_columns();\n\t\t \n\t\t // Create the array that is used by the class\n\t\t $this->_column_headers = array($columns, $hidden, $sortable);\n\t\t \n\t\t // Process bulk actions\n\t\t $this->process_bulk_action();\n\n\t\t \t// Current page\n\t\t $current_page = $this->get_pagenum();\n\n\t\t // Get contests\n\t\t $data = $this->getContests();\n\t\t \n\t\t // Total number of items\n\t\t $total_items = count($data);\n\t\t \n\t\t // Slice data for pagination\n\t\t $data = array_slice($data, (($current_page-1)*$per_page), $per_page);\n\t\t \n\t\t // Send processed data to the items property to be used\n\t\t $this->items = $data;\n\t\t \n\t\t // Register pagination options & calculations\n\t\t $this->set_pagination_args(array(\n\t\t 'total_items' => $total_items, //WE have to calculate the total number of items\n\t\t 'per_page' => $per_page, //WE have to determine how many items to show on a page\n\t\t 'total_pages' => ceil($total_items/$per_page) //WE have to calculate the total number of pages\n\t\t ));\n\t\t }", "function fetchPais() {\n\n $paises = array();\n\n $con = new DB();\n $sql = $con->prepare(\"SELECT * FROM pais\");\n $result = $con->executeQuery($sql);\n\n foreach ($result as $row) {\n $id = $row['id'];\n $nombre = $row['nombre'];\n $pais = new Pais($id, $nombre);\n array_push($paises, $pais);\n }\n\n return $paises;\n }", "public function readAll(){\n //select all data\n $query = \"SELECT\n id, num_compte, cle_rib, num_agence, duree_epargne, frais, solde, created\n FROM\n \" . $this->table_name . \"\n ORDER BY\n num_compte\";\n \n $stmt = $this->conn->prepare( $query );\n $stmt->execute();\n \n return $stmt;\n }", "abstract protected function collectionLoader();", "public function getAllCollection() \n\n\t{\n\n\t\treturn $this->db->get('tb_collection')->result_array();\n\t}", "public function rechercherTous() {\n // select all query\n $sRequete = \"SELECT * FROM \" . $this->sNomTable .\"\n LEFT JOIN panier ON idPanier = iNoPanier\n LEFT JOIN produit ON idProduit = iNoProduit\n \";\n\n // prepare query statement\n $stmt = $this->oConnexion->prepare($sRequete);\n\n // execute query\n $stmt->execute();\n\n return $stmt;\n }", "protected function _prepareCollection()\n {\n $collection = Mage::getResourceModel('bs_worksheet/worksheet_collection');\n if ($this->getCurriculum()->getId()) {\n $constraint = 'related.curriculum_id='.$this->getCurriculum()->getId();\n } else {\n $constraint = 'related.curriculum_id=0';\n }\n $collection->getSelect()->joinLeft(\n array('related' => $collection->getTable('bs_worksheet/worksheet_curriculum')),\n 'related.worksheet_id=main_table.entity_id AND '.$constraint,\n array('position')\n );\n $this->setCollection($collection);\n parent::_prepareCollection();\n return $this;\n }", "public function titre()\n{\n\n $db = $this->_db;\n $requete = $db->prepare('SELECT titre FROM musiques');\n $requete->execute();\n $resultat = $requete->fetchall();\n\n foreach($resultat as $titre)\n {\n echo $titre['titre'];\n }\n\n}", "public function fetch(): ItemCollection\n {\n $result = $this->connection->getClient()->{$this->fetchMode}($this->toArray());\n\n return $this->processor->processItems($result);\n }", "public function fetchAll();", "public function fetchAll();", "public function fetchAll();", "public function fetchAll();", "public function prepare_response_for_collection($response)\n {\n }", "function liste_titre()\n{\n global $connection;\n // req ordonnée pas titre_article\n $sql = \"SELECT id_article, titre_article FROM articles \n WHERE actif=1\n ORDER BY titre_article ASC\";\n $sth = $connection->prepare($sql);\n $sth->execute();\n\n $resultat = $sth->fetchAll(PDO::FETCH_OBJ);\n\n return $resultat;\n}", "public function fetchCollection($criteria = null);", "public function getCollection()\n {\n $collection = trim(str_replace('\\\\', '_', $this->collection), '_');\n return $this->$collection()\n ->setDatabase($this->database)\n ->setTable($this->table)\n ->setModel($this->model)\n ->set($this->getRows());\n }", "abstract public function prepareData();", "public function findAll() {\r\n$sql = \"SELECT * FROM $this->tabela\";\r\n$stm = DB::prepare($sql);\r\n$stm->execute();\r\nreturn $stm->fetchAll();\r\n}", "function SQLExecuterRequete($sql, array $arg) {\n try {\n $sth = SQLPreparerRequete($sql);\n $sth->setFetchMode(PDO::FETCH_ASSOC);\n foreach ($arg as $key => &$val) {\n $sth->bindParam($key, $val);\n }\n if (!$sth->execute()) {\n throw new Exception(\"La requete SQL a echouee\", 500);\n }\n } catch (Exception $e) {\n ob_end_clean();\n die('<!DOCTYPE html><html><head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><title>Arcade 2i</title><link rel=\"stylesheet\" type=\"text/css\" href=\"assets/css/bootstrap.css\"/><link rel=\"stylesheet\" type=\"text/css\" href=\"assets/css/style.css\"/><script src=\"https://code.jquery.com/jquery-2.2.3.min.js\"></script><script src=\"assets/js/bootstrap.js\"></script></head><body><div class=\"container\"><div class=\"row\"><div class=\"alert alert-danger\">Erreur lors de l\\'execution de la page : ' . $e->getMessage() . '</div></div></div></body></html>');\n }\n return $sth;\n}" ]
[ "0.62334913", "0.6180792", "0.61499816", "0.61472833", "0.6138994", "0.61166346", "0.61032313", "0.6066027", "0.6061088", "0.5997533", "0.5987077", "0.5985219", "0.59589005", "0.59158427", "0.59122956", "0.59089905", "0.58940864", "0.58895177", "0.5882965", "0.5882965", "0.5870923", "0.58578455", "0.5844667", "0.58360386", "0.57401043", "0.5739575", "0.57283086", "0.5715665", "0.5682032", "0.5682032", "0.5682032", "0.5682032", "0.56750387", "0.5670398", "0.5667402", "0.56671625", "0.56593287", "0.5645162", "0.56422555", "0.56363195", "0.5615256", "0.56102216", "0.56023175", "0.55813354", "0.5566191", "0.55522406", "0.55476886", "0.5545584", "0.55414474", "0.5533875", "0.5532212", "0.5516927", "0.55135006", "0.55067694", "0.55067694", "0.55067694", "0.55059874", "0.5504968", "0.5499025", "0.5482653", "0.5478772", "0.5478772", "0.5478772", "0.5478772", "0.54752487", "0.5474922", "0.54665625", "0.5457399", "0.5455617", "0.54488766", "0.54461426", "0.54399115", "0.5437135", "0.54352176", "0.5433239", "0.5422606", "0.5399987", "0.53994983", "0.539564", "0.5392886", "0.53799653", "0.537802", "0.53636783", "0.53537923", "0.534791", "0.53474224", "0.5346316", "0.53445923", "0.53424984", "0.5340185", "0.5340185", "0.5340185", "0.5340185", "0.53354156", "0.53253657", "0.53165734", "0.53123647", "0.5310121", "0.5307447", "0.5302876" ]
0.61276925
5
Fonction permettant d'ajouter un fichier binaire a un enregistrement
function updateBinaire($id, $field, $ref) { if ($id > 0 && strlen($field) > 0 && !is_null($ref)) { try { $field = $this->encodeData($field); $sql = "update $this->table set $field = ? where $this->cle = ?"; $stmt = $this->connection->prepare($sql); $stmt->bindParam(1, $ref, PDO::PARAM_LOB); $stmt->bindParam(2, $id); $stmt->execute(); } catch (PDOException $pe) { throw new ObjetBDDException($pe->getMessage()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add(){\n\t\t\n\t\t// Open or create file\n\t\t$f = fopen($this->file, 'wb');\n\t\tfclose($f);\n\t}", "public function crear(){\n\t\t$this->archivo = fopen($this->nombre , \"w+\");\n\t}", "function enregistreFichier($categorie, $tmp_name, $real_name, $nompre, $AncienFichier){\n\t\t$extension = extensionFichier($real_name);\n\t\tif(substr($categorie,-1) == \"/\"){\n\t\t\t$categorie = substr($categorie, 0, -1);\n\t\t}\n\t\tif(($extension == \"jpg\") || ($extension == \"jpeg\") || ($extension == \"png\") || ($extension == \"gif\") || ($extension == \"flv\") || ($extension == \"xml\") || ($extension == \"mov\") || ($extension == \"avi\") || ($extension == \"mpg\") || ($extension == \"mpeg\") || ($extension == \"wmv\")){\n\t\t\t$savefile = $nompre.\"_\".date(\"YmdHis\").\".\".$extension; // Nom de fichier horodaté\n\t\t\t//$savefile = normalise_fichier($real_name); // Nom réel du fichier avec normalisation\n\t\t\tif(is_file($categorie.\"/\".$AncienFichier)){\n\t\t\t\tunlink($categorie.\"/\".$AncienFichier);\n\t\t\t}\n\t\t\tif(is_file($categorie.\"/\".$savefile)){\n\t\t\t\tunlink($categorie.\"/\".$savefile);\n\t\t\t}\n\t\t\tmove_uploaded_file($tmp_name, $categorie.\"/\".$savefile);\n\t\t\tchmod($categorie.\"/\".$savefile,0777);\n\t\t\t$file = $categorie.\"/\".$savefile;\n\t\t}else{\n\t\t\t$savefile = \"0\";\n\t\t}\n\t\treturn($savefile);\n\t}", "function newFile($path, $data = NULL) {\n\t\tif(file_exists($path)) {\n\t\t\tprint \"<p> FILE ALREADY EXISTS </p>\".PHP_EOL;\n\t\t} else {\n\t\t\ttouch($path);\n\t\t\t\n\t\t\tif(isset($data)) {\n\t\t\t\tfile_put_contents($path, $data, FILE_APPEND | LOCK_EX);\n\t\t\t} else {\n\t\t\t\tprint \"<p> NO DATA </p>\";\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public function new_file()\n {\n $input = JFactory::getApplication()->input;\n\n $ecr_project = $input->get('ecr_project');\n\n if($input->get('do_action') == 'new_file')\n {\n $reqPath = $input->getPath('act_path');\n $reqName = $input->getPath('act_name');\n\n $path = JPath::clean(JPATH_ROOT.DS.$reqPath.DS.$reqName);\n\n if(is_dir($path))\n {\n EcrHtml::message(array(jgettext('This is a folder'), $path), 'error');\n\n return;\n }\n\n if(is_file($path))\n {\n EcrHtml::message(array(jgettext('The file already exists'), $path), 'error');\n\n return;\n }\n\n //-- @todo file from template\n $template = 'new file';\n\n if( ! is_int(file_put_contents($path, $template)))\n {\n EcrHtml::message(array(jgettext('Unable to create file'), $path), 'error');\n\n return;\n }\n\n //-- Clean the cache\n JFactory::getCache('EasyCreator_'.$ecr_project)->clean();\n\n echo '*OK*';\n\n return;\n }\n\n $this->actForm(jgettext('New file'), 'add', jgettext('Create'));\n $this->processForm('new_file', $ecr_project, 'file', 'new', true, true);\n }", "protected function createFile() {}", "public function addTaskFile($task_id){\n\n $err=\"\";\n $file=\"\";\n // Testons si le fichier n'est pas trop gros\n if ($_FILES['myfile']['error'] == 0){\n if ($_FILES['myfile']['size'] <= MAX_FILE_SIZE)\n {\n // On peut valider le fichier et le stocker définitivement\n if (!is_dir(REPOSITORY_PATH . '/'. $task_id .'/')) {\n mkdir(REPOSITORY_PATH . '/'. $task_id .'/', 0777, true);\n }\n //move file to 'uploads' repository\n $file=REPOSITORY_PATH . '/'. $task_id .'/'. basename($_FILES['myfile']['name']);\n move_uploaded_file($_FILES['myfile']['tmp_name'], $file);\n\n //retrieve the task team id\n $bdd = $this->connectDB();\n $req=$bdd->prepare('SELECT team from task WHERE id= ?');\n $req->execute(array($task_id));\n\n if ($req->rowCount()){\n $row = $req->fetch();\n $team=$row['team'];\n }\n\n //update history\n $history_manager=new historyManager();\n $history_manager->addEvent($team,'attach_file',$task_id);\n\n }else{\n $err=\"fichier trop volumineux\";\n }\n }else{\n $err=\"erreur lors de l'envoi du fichier\";\n }\n\n\n $file_add=array(\n 'error'=>$err,\n 'file'=>$file\n );\n\n return $file_add;\n }", "function AgregaRevisame()\n {\n\t try{\n\t $nombre_archivo = 'Revisame/25.mbg'; \n \t $contenido=\"0\";\n \t fopen($nombre_archivo, 'a+'); \n\t \t //Asegurarse primero de que el archivo existe y puede escribirse sobre el. \n\t\t if (is_writable(\"Revisame/25.mbg\")) { \n\t\t if (!$gestor = fopen($nombre_archivo, 'a')) { \n\t\t\t echo \"No se puede abrir el archivo ($nombre_archivo)\"; \n\t\t\t exit; \n\t\t } \n\t\t if (fwrite($gestor, $contenido.\"\\n\") === FALSE) { \n\t\t echo \"No se puede escribir al archivo ($nombre_archivo)\"; \n\t\t exit; \n\t\t } \n\t\t fclose($gestor); \n\t\t } else { \n\t\t\t echo \"No se puede escribir sobre el archivo $nombre_archivo\"; \n\t\t\t } \n\t\t} catch(Exception $e){\n echo \"Error :\" & $e;\n }\t\n}", "public function AddFile($asFile = null)\n\t{\n $config = Config::GetInstance();\n\t\t$this->_File = $asFile;\n\t\tif($this->_File != null){\n\t\t\t$CarpetaFicheros = $config->get(\"Ruta\").'app/contenidos/proyectos/';\n\t\t\tcheckCarpeta($CarpetaFicheros);\n\t\t\tcheckCarpeta($CarpetaFicheros.$this->IdProyecto);\n\t\t\t$Nombrefichero = $this->IdProyecto.'/'.getToken(4).\"_\".normaliza($this->_File['name']);\n\t\t\t$ficheroFinal = $CarpetaFicheros.$Nombrefichero;\n\n\t\t\tif (move_uploaded_file($this->_File['tmp_name'], $ficheroFinal)) {\n\t\t\t\t// Guardarlo en la BD\n\t\t\t\t$this->Ruta = $Nombrefichero;\n\t\t\t}else{\n\t\t\t\t$this->Ruta = null;\n\t\t\t}\n\t\t}\n\t}", "public function addFile($file);", "function addFile(FileUpload $file)\n\t{\n\t\t$file->move($this->getUniqueFilePath());\n\t\t$this->query('INSERT INTO files (queueID, created, data, name) VALUES (\"' . sqlite_escape_string($this->getQueueID()) . '\",' . time() . ',\\'' . sqlite_escape_string(serialize($file)) . '\\', \\'' . sqlite_escape_string($file->getName()) . '\\')');\n\t}", "private function auto_create(){\n\n if ( $this->firebug ) \\FB::info(get_called_class().\": auto creating file\");\n\n $root = $this->use_codeza_root ? (string)new Code_Alchemy_Root_Path() : '';\n\n $filename = $root . $this->template_file;\n\n if ( file_exists($filename) && ! file_exists($this->file_path)) {\n\n $copier = new Smart_File_Copier($filename,$this->file_path,$this->string_replacements,false);\n\n $copier->copy();\n\n }\n\n\n\n }", "function creaFichero($nombre, $ruta, $contenido){\r\n (file_put_contents($nombre, $ruta, $contenido) !== false) ? true : false;\r\n}", "public function ajouter($nom_fichier)\n {\n try {\n $stmt = $this->bdd->prepare(\"INSERT INTO image(nom_fichier, date_création, date_modification) VALUES (:nom,SYSDATE(),SYSDATE())\");\n $stmt->bindparam(\":nom\", $nom_fichier);\n $stmt->execute();\n\n $stmt2 = $this->bdd->prepare(\"INSERT INTO image_description(titre, description, date_création, date_modification) VALUES ('', '', SYSDATE(), SYSDATE())\");\n $stmt2->execute();\n } catch (PDOException $e) {\n die ('Erreur : ' . $e->getMessage());\n }\n }", "public function upload()\n {\n if (null === $this->file) {\n return;\n }\n\n // si on avait un ancien fichier on le supprime\n if (null !== $this->tempFilename) {\n $oldFile = $this->getUploadRootDir().'/'.$this->id.'.'.$this->tempFilename;\n if (file_exists($oldFile)) {\n unlink($oldFile);\n }\n }\n\n // déplace le fichier envoyé dans le répertoire de notre choix\n $this->file->move(\n $this->getUploadRootDir(), // répertoire de destination\n $this->id.'.'.$this->url // nom du fichier à créer \"id.extension\"\n );\n\n }", "function addFile(File $newFile)\r\n\t{\r\n\t\tif( file_exists( $this->path . '/' . $newFile->getName( ) ) )\r\n\t\t{\r\n\t\t\t$this->filesCollection->add( $newFile );\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttrigger_error( \"arquivo inexistente! não foi possível adicionar\" );\r\n\t\t}\r\n\t}", "function addFile($path)\n {\n }", "function addto_recent_files($file) {\n\n\t $recentfiles = $this->gtk_path . \"recfiles.txt\"; //echo $recentfiles;\n\t\t\n\t\tif (file_exists($recentfiles)) \n $fp = fopen ($recentfiles , \"a+\");\t\n\t\telse\n $fp = fopen ($recentfiles , \"wb\");\t \n\t \n if ($fp) {\n fwrite ($fp, $file.\"\\r\\n\");\n fclose ($fp);\n\t\t\t\t \n\t\t $this->set_console_message(\"Added to recent files successfully.\");\t\t\t\t \n\t\t\t\t return (true);\n\t }\n\t else {\n\t\t $this->set_console_message(\"NOT added to recent files !!!\");\t\t\n\t\t\t\t return (false);\n\t\t}\t\t\n\t}", "function add($file,$user,$text){\r\n\t\t\r\n\t\t\t// Prepare the message (remove \\')\r\n\t\t\t$text = eregi_replace(\"\\\\\\\\'\",\"'\",$text);\r\n\t\t\t$time = time();\r\n\t\t\t$log_file = ROOT_LOGS_PATH.\"saved/$file.html\";\r\n\t\t\t$fh = fopen($log_file,\"a\");\r\n\t\t\tflock($fh,2);\r\n\t\t\tfwrite($fh,\"$user$text\\n\");\r\n\t\t\tflock($fh,3);\r\n\t\t\tfclose($fh);\r\n\t\t\r\n\t}", "function create($file = null) {\n $file = (isset($this->_file) && !$file) ? $this->_file : $file;\n \n \tif (!Fire_File_Helper::exists($file)) {\n $io = new Fire_File_IO_Helper($file);\n $io->open('w+');\n $io->close();\n } else {\n Fire_Error::throwError(sprintf('File \"%s\" already exists.',\n $file\n ), __FILE__, __LINE__\n );\n }\n \n }", "public static function add($tmpFile,$file){\n\t\t$file->ext=UFile::extension($file->name);\n\t\t\n\t\tif($file->_pkExists()){\n\t\t\t$id=$file->_getPkValue();\n\t\t\t$file->update();\n\t\t}else $id=$file->insert();\n\t\t\n\t\t$filename=static::folderPath().$id;\n\t\trename($tmpFile,$fullFilename=($filename.'.'.$file->ext));\n\t\tchmod($fullFilename,0755);\n\t\t\n\t\treturn $id;\n\t}", "private function _createNewConfigFile( $file ) {\n \\File::append($file,'');\n }", "function ajouter_vue(){\n $fichier = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'cli' . DIRECTORY_SEPARATOR . 'compteur';\n $fichier_journalier = $fichier . '_' . date('Y-m-d');\n incrementer_compteur($fichier);\n incrementer_compteur($fichier_journalier);\n }", "public function store(){\n $url_path = 'assets/imgs/' . $_FILES['file']['name'];\n move_uploaded_file($_FILES['file']['tmp_name'], $url_path);\n $_POST['url_image'] = $url_path;\n echo parent::register($_POST) ? header('location: ?controller=admin') : 'Error en el registro';\n }", "public function add() {\r\n\t\t\r\n\t\t$res['success'] = true;\r\n\t\t$data['nombre'] = $this->data['Version']['file']['name'];\r\n\t\t$data['tmp_name'] = $this->data['Version']['file']['tmp_name'];\r\n\t\t$data['size'] = $this->data['Version']['file']['size'];\r\n\t\t$data = Sanitize::clean($data);\r\n\t\t$data['type'] = Sanitize::escape($this->data['Version']['file']['type']);\r\n\t\t$data['archivo_id'] = Sanitize::escape($this->data['Version']['archivo_id']);\r\n\t\t$data['usuario_id'] = Sanitize::escape($this->Session->read('usuario_id'));\r\n\t\t\r\n\t\t#Verificar Permisos\r\n\t\tif($this->Archivo->verificarPermiso($data['archivo_id'], $this->Session->read('usuario_id'), 'write') ) {\r\n\t\t\t#Verificación el tipo de archivo\r\n\t\t\t$this->Archivo->unbind();\r\n\t\t\t$this->Archivo->unbindModel(array( 'hasMany' => array('Permiso') ) );\t\t\t\r\n\t\t\t$archivo = $this->Archivo->findById($data['archivo_id']);\r\n\t\t\t\r\n\t\t\t$f = new File($data['nombre']);\r\n\t\t\t$ext1 = $f->ext();\r\n\t\t\t$f = new File($archivo['Archivo']['nombre']);\r\n\t\t\t$ext2 = $f->ext();\r\n\t\t\t\r\n\t\t\tif(true || $archivo['Archivo']['type']==$data['type'] && $ext1==$ext2) {\r\n\t\t\t\t\r\n\t\t\t\t$this->Version->begin();\r\n\t\t\t\t$save = true;\r\n\t\t\t\t$num = $this->Version->find('count', array('conditions' => array('Version.archivo_id' => $archivo['Archivo']['id']) ) );\r\n\t\t\t\t\r\n\t\t\t\tif(!$this->Version->updateAll(array('Version.ultima' => 0), array('Version.archivo_id' => $archivo['Archivo']['id'] ) ) ) {\r\n\t\t\t\t\t$save = false;\r\n\t\t\t\t}\r\n\t\t\t\t$data['numero'] = $num+1;\r\n\t\t\t\tif(!$this->Version->save($data)) {\r\n\t\t\t\t\t$save = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif($save) {\r\n\t\t\t\t\t$this->Version->commit();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$res['success'] = false;\r\n\t\t\t\t\t$this->Version->rollback();\r\n\t\t\t\t\t$res['error'] = 'No se pudo guardar, intente de nuevo';\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\t$res['success'] = false;\r\n\t\t\t\t$res['error'] = 'Debe subir un archivo del mismo tipo';\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\t$this->log('No pasa nada');\r\n\t\t\t$res['success'] = false;\r\n\t\t\t$res['error'] = 'Usted no tiene permiso de escritura';\r\n\t\t}\r\n\t\t$this->layout = 'ajax';\r\n\t\t$this->set(compact('res'));\r\n\t\t\r\n\t\t$this->render('../pages/json');\r\n\t}", "public function addDocument()\n\t{\n\t\t$id = $this->getId();\n\t\t$moduleName = $this->getModuleName();\n\n\t\tif (!$this->isNew) {\n\t\t\t$commessaPrec = $this->getPreviousValue('doccommessa');\n\t\t\tif($commessaPrec !== false) {\n\t\t\t\tunset($this->changes['doccommessa']);\n\t\t\t}\n\t\t}\n\t\tif (isset($_FILES['docfilename'])) {\n\t\t\t$file = $_FILES['docfilename'];\n\n\t\t\tif (empty($file['tmp_name'])) {\n\t\t\t\tunset($this->changes['docfilename']);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t$fileInstance = \\App\\Fields\\File::loadFromRequest($file);\n\t\t\tif (!$fileInstance->validate()) {\n\t\t\t\tunset($this->changes['docfilename']);\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t$commessaId = $this->get('doccommessa');\n\t\t\tif (!empty($commessaId)) {\n\t\t\t\t$commessa = Vtiger_Record_Model::getInstanceById($commessaId, 'Commesse');\n\t\t\t\t$commessaPath = $commessa->get('nome');\n\t\t\t} else {\n\t\t\t\t$commessaPath = 'Condivisa';\n\t\t\t}\n\t\t\t$configDocPath = !empty(AppConfig::module($moduleName, 'DOC_PATH')) ? AppConfig::module($moduleName, 'DOC_PATH') : 'storage/Documenti';\n\t\t\t$uploadFilePath = ROOT_DIRECTORY . DIRECTORY_SEPARATOR . $configDocPath. DIRECTORY_SEPARATOR . $commessaPath;\n\t\t\tif (!is_dir($uploadFilePath)) { //create new folder\n\t\t\t\tif(!mkdir($uploadFilePath, 0744, true)) {\n\t\t\t\t\tunset($this->changes['docfilename']);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Verifico se esiste gia` un documento allegato\n\t\t\t$fileName = !empty($this->get('docfilename')) ? $this->get('docfilename') : false;\n\n\t\t\tif (empty($fileName)) {\n\t\t\t\t$fileName = trim(App\\Purifier::purify($fileInstance->name));\n\t\t\t\t$fileNameWithoutExt = trim(App\\Purifier::purify($fileInstance->getNameWithoutExtension()));\n\t\t\t\t$extension = pathinfo($fileName, PATHINFO_EXTENSION);\n\t\t\t\t$count = 0;\n\t\t\t\twhile (file_exists($uploadFilePath . DIRECTORY_SEPARATOR. $fileName)) {\n\t\t\t\t $count = $count + 1;\n\t\t\t\t $fileName = \"{$fileNameWithoutExt}_{$count}.{$extension}\";\n\t\t\t\t}\n\t\t\t\tif ($fileInstance->moveFile($uploadFilePath . DIRECTORY_SEPARATOR. $fileName)) {\n\t\t\t\t\t$this->set('docnome', $fileNameWithoutExt);\n\t\t\t\t\t$this->set('docfilename', $fileName);\n\t\t\t\t\t$this->set('doctype', $file['type']);\n\t\t\t\t\t$this->set('docpath', $uploadFilePath);\n\t\t\t\t\t$this->set('docsize', $file['size']);\n\t\t\t\t\t$this->set('docinuso', 0);\n\t\t\t\t\t$version = $this->get('docversione');\n\t\t\t\t\t$version +=1;\n\t\t\t\t\t$this->set('docversione',$version);\n\t\t\t\t} else {\n\t\t\t\t\t\\App\\Log::error('Error on the save attachment process.');\n\t\t\t\t\tunset($this->changes['docfilename']);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(!$this->validateUploadedFileName($fileName)) {\n\t\t\t\t\tunset($this->changes['docfilename']);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif ($fileInstance->moveFile($uploadFilePath . DIRECTORY_SEPARATOR. $fileName)) {\n\t\t\t\t\t$this->set('doctype', $file['type']);\n\t\t\t\t\t$this->set('docsize', $file['size']);\n\t\t\t\t\t$this->set('docinuso', 0);\n\t\t\t\t\t$version = $this->get('docversione');\n\t\t\t\t\t$version +=1;\n\t\t\t\t\t$this->set('docversione',$version);\n\t\t\t\t} else {\n\t\t\t\t\t\\App\\Log::error('Error on the save attachment process.');\n\t\t\t\t\tunset($this->changes['docfilename']);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t} else {\n\t\t\tunset($this->changes['docfilename']);\n\t\t\treturn false;\n\t\t}\n\n\t}", "public function salvarArquivo()\n {\n $caminho = dirname($this->arquivo);\n if (!is_dir($caminho)) {\n mkdir($caminho, '0775', true);\n }\n // grava o arquivo\n file_put_contents($this->arquivo, $this->conteudo);\n }", "function addFile($file_name, $mime_type, $file, $comment) {\n global $pdo;\n $id = '';\n for ($i = 0; $i < 16; $i++) $id .= chr(rand(97, 122));\n $file = base64_encode($file);\n $statement = $pdo->prepare('INSERT INTO `file` (`sid`, `mime_type`, `file`, `name`, `comment`) VALUES (:sid, :mime_type, :file, :name, :comment)');\n $statement->bindParam(\":sid\", $id);\n $statement->bindParam(\":mime_type\", $mime_type);\n $statement->bindParam(\":file\", $file);\n $statement->bindParam(\":name\", $file_name);\n $statement->bindParam(\":comment\", $comment);\n $statement->execute();\n return getFileId($pdo->lastInsertId())['sid'];\n}", "public function executeGenerarfile(sfWebRequest $request)\n {\n\n // Variables\n $sqlUpdate='';\n\n // Redirige al inicio si no tiene acceso\n if (!$this->getUser()->getGuardUser()->getIsSuperAdmin())\n $this->redirect('ingreso');\n\n $archivo = Doctrine_Core::getTable('Actualizacionestrat')->find(array($request['id']));\n // $archivo = Doctrine_Core::getTable('Actualizaciones')->find(array(2));\n\n $arr = explode(\".\", $archivo->getImagefile(), 2);\n $first = $arr[0];\n\n $nombre_archivo_upd = sfConfig::get('app_pathfiles_folder').\"/../actualizacionestrat\".'/upd_'.$first.\".sql\";\n\n // DATOS conexion\n /*$dbhost = 'localhost';$dbname = 'circulo'; $dbuser = 'root'; $dbpass = 'root911';\n\n $pdo = new \\PDO('mysql:host=' . $dbhost . ';dbname=' . $dbname, $dbuser, $dbpass, array(\n \\PDO::MYSQL_ATTR_LOCAL_INFILE => true\n ));*/\n\n\n // PRIMER PASO : ACTUALIZACION DE REGISTROS\n\n // SI existe el archivo previamente, lo borro\n if (file_exists($nombre_archivo_upd)) unlink($nombre_archivo_upd);\n\n // CONSULTA por registros a ACTUALIZAR (ya existe el email en la tabla de Pacientes)\n //$datoss = $archivo = Doctrine_Core::getTable('Actualizaciones')->obtenerRegistrosAActualizar();\n\n $fp=fopen($nombre_archivo_upd,\"w+\");\n\n $sqlUpdate = $archivo = Doctrine_Core::getTable('Actualizacionestrat')->obtenerRegistrosAActualizar('nombre','nombre','T');\n fwrite($fp,$sqlUpdate);\n\n $sqlUpdate = $archivo = Doctrine_Core::getTable('Actualizacionestrat')->obtenerRegistrosAActualizar('abreviacion','abreviacion','T');\n fwrite($fp,$sqlUpdate);\n\n $sqlUpdate = $archivo = Doctrine_Core::getTable('Actualizacionestrat')->obtenerRegistrosAActualizar('idgrupotratamiento','idgrupotratamiento','N');\n fwrite($fp,$sqlUpdate);\n\n $sqlUpdate = $archivo = Doctrine_Core::getTable('Actualizacionestrat')->obtenerRegistrosAActualizar('idobrasocial','idobrasocial','N');\n fwrite($fp,$sqlUpdate);\n\n $sqlUpdate = $archivo = Doctrine_Core::getTable('Actualizacionestrat')->obtenerRegistrosAActualizar('idplan','idplan','N');\n fwrite($fp,$sqlUpdate);\n\n $sqlUpdate = $archivo = Doctrine_Core::getTable('Actualizacionestrat')->obtenerRegistrosAActualizar('idontologia','idontologia','N');\n fwrite($fp,$sqlUpdate);\n\n $sqlUpdate = $archivo = Doctrine_Core::getTable('Actualizacionestrat')->obtenerRegistrosAActualizar('garantia','garantia','N');\n fwrite($fp,$sqlUpdate);\n\n $sqlUpdate = $archivo = Doctrine_Core::getTable('Actualizacionestrat')->obtenerRegistrosAActualizar('importe','importe','N');\n fwrite($fp,$sqlUpdate);\n\n $sqlUpdate = $archivo = Doctrine_Core::getTable('Actualizacionestrat')->obtenerRegistrosAActualizar('coseguro','coseguro','N');\n fwrite($fp,$sqlUpdate);\n\n $sqlUpdate = $archivo = Doctrine_Core::getTable('Actualizacionestrat')->obtenerRegistrosAActualizar('importeos','importeos','N');\n fwrite($fp,$sqlUpdate);\n\n\n\n fclose ($fp);\n\n return true;\n\n }", "function fileCommit(){\n\t\t// Target folder, make sure it is 777\n\t\t$target = \"uploads/\";\n\t\t\n\t\t// Appends the file name\n\t\t$target = $target . basename( $_FILES['file']['name']);\n\t\t\n\t\t// Moves the file to target\n\t\tmove_uploaded_file($_FILES['file']['tmp_name'], $target);\n\t\tif($_POST['sqlType'] == \"create\") {\n\t\t\t$result = mysql_query(createObject(getLangVar(\"userId\"), $_POST['objectText'], $_POST['parentId'], $_POST['objectTitle']));\n\t\t\t$result = mysql_query(createFile(fullURL($_FILES[\"file\"][\"name\"], \"uploads\"), $_FILES[\"file\"][\"size\"], $_FILES[\"file\"][\"type\"], mysql_insert_id()));\n\t\t\t$forwardId = mysql_insert_id();\n\t\t} else if($_POST['sqlType'] == \"edit\") {\n\t\t\t$result = mysql_query(editObject($_POST['objectText'], $_POST['parentId'], $_POST['objectTitle'], $_POST['objectId']));\n\t\t\t$result = mysql_query(editFile());\n\t\t\t$forwardId = $_POST['fileId'];\n\t\t}\n\t\theader('Location:' . fullURL(getLangVar(\"fileURL\") . $forwardId));\n\t}", "public function uploadAdherentFile(FileAdherent $file,$finalPath,$categorie){\n $req = $this->db->prepare('INSERT INTO p5_adherent_files(adherent_name,\n adherent_firstname,adherent_city,adherent_file_name,adherent_file_url,upload_date,category_id) \n VALUES (?,?,?,?,?,NOW(),?)');\n $req->execute(array($file->getAdherent_name(),$file->getAdherent_firstname(),$file->getAdherent_city(),\n $file->getAdherent_file_name(),$finalPath,$categorie));\n\n }", "public function create_file($file){\n\n // handle ekstensi\n if (empty($this->mime[$file['type']])) {\n // jika extensi tidak terdaftar, ambil dari nama file\n $path = $_FILES['image']['name'];\n $ext = pathinfo($path, PATHINFO_EXTENSION);\n } else {\n $ext = '.'.$this->mime[$file['type']]; // tambah titik sebelum ekstensi\n }\n\n $folder = $this->folder.'/'.$this->user['folder'].'/'; // path folder user\n $file_path = $folder.$this->encrypt_name();// encrypt nama \n $this->confirm_folder($folder); // pastikan folder ada\n $this->ck->putObjectFile($file['tmp_name'], \n $this->bucket,\n $file_path.$ext, // tambah ekstensi\n $this->ck::ACL_PUBLIC_READ // izin dibaca publik\n );\n // upload thumb\n if (isset($file['tmp_name_thumb'])){\n $this->ck->putObjectFile($file['tmp_name_thumb'], \n $this->bucket,\n $file_path.'_thumb'.$ext, // tambah suffix dan ekstensi\n $this->ck::ACL_PUBLIC_READ // izin dibaca publik\n );\n }\n\n $result = array(\n 'url'=>$this->create_url($file_path.$ext),\n 'error'=>false,\n 'success'=>true\n );\n return $result;\n }", "private function add_file()\n {\n \t$helperPluginManager = $this->getServiceLocator();\n \t$serviceManager = $helperPluginManager->getServiceLocator();\n \t\n \t$file = $serviceManager->get('PM/Model/Files');\n \t\n \t$result = $file->getFileById($this->pk);\n \tif($result)\n \t{\n \t\tif($result['company_name'] != '' && $result['company_id'] && $result['company_id'] > 0)\n \t\t{\n \t\t\t$company_url = $this->view->url('companies/view', array('company_id' => $result['company_id']));\n \t\t\t$this->add_breadcrumb($company_url, $result['company_name']);\n \t\t}\n \t\t\n \t\tif($result['project_name'] != '' && $result['project_id'] && $result['project_id'] > 0)\n \t\t{ \t\t\n \t\t\t$project_url = $this->view->url('projects/view', array('project_id' => $result['project_id']));\n \t\t\t$this->add_breadcrumb($project_url, $result['project_name']);\n \t\t}\n \t\t\n \t\tif($result['task_name'] != '' && $result['task_id'] && $result['task_id'] > 0)\n \t\t{\n \t\t\t$task_url = $this->view->url('tasks/view', array('task_id' => $result['task_id']));\n \t\t\t$this->add_breadcrumb($task_url, $result['task_name']);\n \t\t}\n \t\t\n \t\t$file_url = $this->view->url('pm', array('module' => 'pm','controller' => 'files','action'=>'view', 'id' => $result['file_id']), null, TRUE);\n \t\t$this->add_breadcrumb($file_url, 'File: '.$result['name'], TRUE); \t\t\n \t}\n }", "function create_file($file_path, $content=''){\r\n die( __FILE__ . ' : ' . __LINE__ );\r\n }", "function onInsertFile(&$man, &$file) {\r\n\t\treturn true;\r\n\t}", "public function addNewUser($cogn, $nom, $mail, $idu, $pass){\r\n $cogn = self::$conn->real_escape_string($cogn);\r\n $nom = self::$conn->real_escape_string($nom);\r\n $mail = self::$conn->real_escape_string($mail);\r\n $pass = password_hash($pass,PASSWORD_BCRYPT);\r\n $filexml = $idu.'.xml';\r\n $cogn = mb_strtoupper($cogn, 'UTF-8');\r\n $nom = mb_strtoupper($nom, 'UTF-8');\r\n $today = date('d\\/m\\/Y');\r\n $query = \"INSERT INTO `utente` (`nome`, `cognome`,`nickname`,`password`,`email`,`filexml`,`ultimoaccesso`)\".\r\n \"VALUES('$nom','$cogn','$idu','$pass','$mail','$filexml','$today')\";\r\n\t\tif(self::$conn->query($query) && mkdir($this->folderFilexmlUser .$idu)){\r\n //CREAZIONE DEL FILEXML DELL'UTENTE\r\n $file = str_replace('<utente></utente>',\"<utente>$idu</utente>\", file_get_contents('Modello/UserFile_model.xml'));\r\n $file2 = str_replace('<utente></utente>',\"<utente>$idu</utente>\", file_get_contents('Modello/lastnewsmodello.xml'));\r\n $file3 = str_replace('<utente></utente>',\"<utente>$idu</utente>\", file_get_contents('Modello/social_model.xml'));\r\n file_put_contents($this->folderFilexmlUser .\"$idu/\".$filexml, $file);\r\n file_put_contents($this->folderFilexmlUser .\"$idu/lastnews.xml\", $file2);\r\n file_put_contents($this->folderFilexmlUser .\"$idu/social.xml\", $file3);\r\n return true;\r\n }\r\n return false; \r\n }", "function storeFiles()\n {\n }", "protected function createFile($path,$data) {\n File::put($path,$data);\n }", "private function doAdd($filename)\n\t{\n\t\t$sql = '\n\t\t\tupdate file set \n\t\t\t\tenable = 0\n\t\t\twhere \n\t\t\t\tuser = ? and \n\t\t\t\tenable = 1';\n\n\t\t// Disable the old record\n\t\tDB::update($sql, [Auth::id()]);\n\n\t\t// We want relative\n\t\t$path = str_replace($_SERVER['DOCUMENT_ROOT'], '', $this->path);\n\n\t\t$sql = '\n\t\t\tinsert into file \n\t\t\t\t(name, user, path, created_at) \n\t\t\tvalues \n\t\t\t\t(?, ?, ?, NOW())\n\t\t\ton duplicate key update\n\t\t\t\tpath = ?,\n\t\t\t\tenable = 1, \n\t\t\t\tupdated_at = NOW()';\n\n\t\tDB::insert($sql, [$filename, Auth::id(), $path, $path]);\n\t}", "public function add(){\n $errors = false;\n $sdate = date('Y-m-d H:i:s');\n $dtime = time();\n\n if(!empty($_POST)){\n $artiste_hash = 'artiste+' . md5(uniqid());\n if(!empty($_FILES['fichier']['name'])){\n $art_photo = $_FILES['fichier']['name'];\n $path = ROOT . '/public/medias/images/interviews/';\n $ext = substr($art_photo, strpos($art_photo,'.'), strlen($art_photo)-1);\n $allowed = array('.jpeg','.jpg','.png','.GIF','.JPEG','.JPG','.PNG','.GIF');\n $art_photo = $_FILES[\"fichier\"][\"name\"] = $dtime . 'iphoto' . uniqid() . rand(1,99999) . $ext;\n $filename = $art_photo;\n if(!in_array($ext, $allowed)){\n ?><div class=\"alert alert-warm\"><span class=\"fa fa-ban\" ></span> Oops, l'extension de ce fichier n'est pas pris en compte !</div><?php\n }else{\n if(!is_writable($path)){\n ?><div class=\"alert alert-warm\"><span class=\"fa fa-ban\" ></span> Oops, vous n'avez pas accès à ce dossier !</div><?php\n }else{\n if(move_uploaded_file($_FILES['fichier']['tmp_name'],$path.$filename)){\n $naissdate = $_POST['annee'] . '-' . $_POST['mois'] . '-' . $_POST['jour'];\n $result = $this->Artiste->create([\n 'pseudo' => $_POST['pseudo'],\n 'noms' => $_POST['noms'],\n 'annee' => $naissdate,\n 'photo' => $filename,\n 'bio' => $_POST['biographie'],\n 'genre_id' => $_POST['genre'],\n 'artiste_hash' => $artiste_hash,\n 'dtime' => $dtime,\n 'sdate' => $sdate\n ]);\n if($result){\n $errors = true;\n }\n }else{\n ?><div class=\"alert alert-warm\"><span class=\"fa fa-ban\" ></span> Oops, Impossible d'uploader ce fichier !</div><?php\n }\n }\n }\n }else{\n ?><div class=\"alert alert-warm\"><span class=\"fa fa-ban\" ></span> Vous devez choisir un fichier (.mp4) !</div><?php\n }\n }\n\n $form = new DafstyleForm($_POST);\n\n $this->loadModel('Genre');\n $genres = $this->Genre->extractThis('id', 'titre');\n\n $this->render('admin.artistes.add', compact('form', 'genres', 'errors'));\n }", "function addToRecoveryFile($task)\n{\n\t$file = '../recovery.txt';\n\t$myfile = file_put_contents($file, $task .\"\\r\\n\" , FILE_APPEND | LOCK_EX);\n\techo \"Server Offline, Task will start when server is started!\";\n\tdie();\n}", "function salvarDatos($cadena, $fichero){\n $fp = fopen(FILE_PATH.$fichero, \"a\");\n fputs($fp, $cadena);\n fputs($fp, \"\\n\");\n fclose($fp);\n}", "public function subir_datos() {\n $datos = array(\n 'nombre' => $this->helper->cleanInput($_POST['cname']),\n 'email' => $this->helper->cleanInput($_POST['email']),\n 'telefono' => $this->helper->cleanInput($_POST['phone']),\n 'message' => $this->helper->cleanInput($_POST['message'])\n );\n $insert = $this->model->subir_datos($datos);\n $id = $insert['id'];\n #SUBIMOS EL ARCHIVO\n $dir = 'public/archivos/cv/';\n $serverdir = $dir;\n $filename = \"\";\n foreach ($_FILES as $inputname => $file) {\n $newname = $this->helper->cleanUrl($_POST[$inputname . '_name']);\n //$extension = strtolower(end(explode('.', $file['name'])));\n $ext = explode('.', $file['name']);\n $extension = strtolower(end($ext));\n $fname = $id . '_' . $newname . '.' . $extension;\n $contents = file_get_contents($file['tmp_name']);\n\n $handle = fopen($serverdir . $fname, 'w');\n fwrite($handle, $contents);\n fclose($handle);\n\n $filename = $fname;\n var_dump($filename);\n }\n $update = array(\n 'id' => $id,\n 'archivo' => $filename\n );\n $updateTrabaja = $this->model->updateTrabaja($update);\n if (!empty($id)) {\n $data = array(\n 'type' => 'succes',\n 'message' => $this->helper->messageAlert('success', 'Gracias, tu C.V. se ha agregado correctamente a nuestra Base de Datos.')\n );\n } else {\n $data = array(\n 'type' => 'error',\n 'message' => $this->helper->messageAlert('error', 'Lo sentimos ha ocurrido un error, por favor vuelva a intertarlo')\n );\n }\n Session::set('result', $data);\n header('Location: ' . URL . 'trabaja_con_nosotros/');\n }", "protected function initStorageFile()\n {\n $storageFilePath = $this->getStoragePath();\n if(!file_exists($storageFilePath)) {\n touch($storageFilePath);\n fwrite(fopen($storageFilePath, \"w\"), static::HEADER . \"\\n\");\n }\n }", "public function createFile($file){\n \t\ttry{\n\t \t\t$f=fopen($file,'w'); \n\t \t\t\n\t \t\tfclose($f);\n\t \t\tif(!file_exists($file)) {\n\t \t\t\t$this->log(\"UNBXD_MODULE:Couldn't create the file\");\n\t \t\t\treturn false;\n\t \t\t}\n\t \t\t$this->log(\"UNBXD_MODULE: created the file\");\n\t \t\treturn true;\n \t\t} catch (Exception $ex) {\n\t \t$this->log(\"UNBXD_MODULE:Error while creating the file\");\n\t \t$this->log($ex->getMessage());\n\t \treturn false;\n\t }\n \t}", "public function add() {\n $this->usePostRequest();\n //$this->dbFileModel->add_file();\n }", "function saveuploadfile($campo,$namefilesaved='XXXXX')\n\t{\n\t\t$pathfinal=\"\";\n\t\tif($_FILES[$campo]['name'] != \"\"){ // El campo contiene algo... \n\t\t // Primero, hay que validar que se trata de un CRT/KEY\n\t\t $allowedExts = array(\"crt\", \"key\",\"CRT\",\"KEY\");\n\t\t $tmp=explode(\".\", $_FILES[$campo][\"name\"]);\n\t\t $extension = end($tmp);\n\t\t if (in_array($extension, $allowedExts)) {\n\t\t // el archivo es un CRT/KEY, entonces... \n\t\t $tmp=explode('.', $_FILES[$campo]['name']);\n\t\t $extension = end($tmp);\n\t\t $certificado = $namefilesaved.\"_\".substr(md5(uniqid(rand())),0,6).\".\".$extension;\n\t\t $directorio = realpath(__DIR__ . '/../../').\"/files/cert\"; // directorio de tu elección\t \n\t\t // almacenar imagen en el servidor\n\t\t move_uploaded_file($_FILES[$campo]['tmp_name'], $directorio.'/'.$certificado);\t\t\n\t\t //unlink($directorio.'/'.$certificado);\n\t\t $pathfinal=\"files/cert/\".$certificado;\n\t\t \n\t\t }\n\t\t }//campo imagen\n\t\treturn $pathfinal;\n\t}", "public function indexNewFile(File $file)\n {\n $query = $this->pdo->prepare(\"INSERT INTO rt_files VALUES(:id_bind, :name_bind)\");\n $query->bindValue(\":id_bind\", $file->getId(), \\PDO::PARAM_INT);\n $query->bindValue(\":name_bind\", $file->getClientFilename(), \\PDO::PARAM_STR);\n $query->execute();\n }", "function _webform_submit_file(&$data, $component) {\r\n $upload_dir = file_directory_path() .'/webform/'. $component['extra']['savelocation'];\r\n if (!empty($_FILES['files']['name'][$data['new']])) {\r\n if (file_check_directory($upload_dir, FILE_CREATE_DIRECTORY)) {\r\n $file_saved = file_save_upload($data['new'], array(), $upload_dir);\r\n if (!$file_saved) {\r\n drupal_set_message(t('The uploaded file %filename was unable to be saved. The destination directory may not be writable.', array('%filename' => $file_saved['filename'])), 'error');\r\n }\r\n else {\r\n @chmod($file_saved->filepath, 0664);\r\n file_set_status($file_saved, FILE_STATUS_PERMANENT);\r\n if (isset($data['existing']['filepath'])) {\r\n file_delete($data['existing']['filepath']);\r\n }\r\n $data = serialize((array)$file_saved);\r\n }\r\n }\r\n else {\r\n drupal_set_message(t('The uploaded file was unable to be saved. The destination directory does not exist.'), 'error');\r\n }\r\n }\r\n else {\r\n $data = serialize(array());\r\n }\r\n}", "function SaveUpload() {\n // save entry for it in the database\n global $cDB, $cErr;\n \n if($this->filename == null)\n $this->filename = $_FILES['userfile']['name'];\n \n $query = $cDB->Query(\"SELECT null from \". DATABASE_UPLOADS .\" WHERE filename ='\".$_FILES['userfile']['name'].\"';\");\n \n if($row = mysql_fetch_array($query)) {\n $cErr->Error(\"Ya existe un documento con ese nombre en el sistema\");\n return false;\n } \n \n if(move_uploaded_file($_FILES['userfile']['tmp_name'], UPLOADS_PATH . $this->filename)) {\n $insert = $cDB->Query(\"INSERT INTO \". DATABASE_UPLOADS .\" (type, title, filename, note) VALUES ('\".$this->type .\"', '\". $this->title .\"', '\". $this->filename .\"', \". $cDB->EscTxt($this->note) .\");\");\n \n if(mysql_affected_rows() == 1) {\n $this->upload_id = mysql_insert_id(); \n $query = $cDB->Query(\"SELECT upload_date FROM \".DATABASE_UPLOADS.\" WHERE upload_id=\". $this->upload_id.\";\");\n if($row = mysql_fetch_array($query))\n $this->upload_date = $row[0]; \n return true;\n } else {\n $cErr->Error(\"No se ha podido insertar el elemento en la base de datos para el documento subido.\");\n return false;\n } \n } else {\n $cErr->Error(\"No se ha podido subir el elemento. Puede deberse a un problema de permisos. ¿Tiene el usuario permiso de escritura para el directorio de subidas? Puede que el documento sea demasiado grande. El tamaño de fichero máximo permitido es de \".MAX_FILE_UPLOAD.\" bytes.\");\n return false;\n }\n }", "public function store(){\n $validateactualite = $this->validate([\n 'titre'=>'required',\n 'sous_titre'=>'required',\n 'descri'=>'required'\n ]);\n $this->validate([\n 'photo'=>'required'\n ]);\n $record = actualite::create($validateactualite);\n $this->photo->storePubliclyAs('public/actualite/', $record->id.'.png');\n //$this->photos[$index]->storePubliclyAs('public/galleries/', $data->id.'.png' );\n session()->flash('message', 'actualite enregistré avec succès');\n $this->emit('Added');\n $this->dispatchBrowserEvent('Added');\n $this->resetFields();\n }", "function saveTxT($chatId, $from, $message){\r\r\n $myfile = \"fichero.txt\";\r\r\n //$fichero = file_get_contents($myfile);\r\r\n $txt = $chatId.\"-\".$message.\"-\".$from. \" \\n\";\r\r\n //$fichero.= $txt;\r\r\n\r\r\n file_put_contents($myfile, $txt, FILE_APPEND | LOCK_EX); \r\r\n \r\r\n}", "function save_langfile()\n\t{\n\t\t//-----------------------------------------\n\n\t\tif ($this->ipsclass->input['id'] == \"\")\n\t\t{\n\t\t\t$this->ipsclass->admin->error(\"Невозможно определить ID языка\");\n\t\t}\n\n\t\tif ($this->ipsclass->input['lang_file'] == \"\")\n\t\t{\n\t\t\t$this->ipsclass->admin->error(\"Вы должны указать имя языкового модуля, вернитесь назад и попробуйте еще раз\");\n\t\t}\n\n\t\t$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'languages', 'where' => \"lid='\".$this->ipsclass->input['id'].\"'\" ) );\n\t\t$this->ipsclass->DB->simple_exec();\n\n\t\tif ( ! $row = $this->ipsclass->DB->fetch_row() )\n\t\t{\n\t\t\t$this->ipsclass->admin->error(\"Невозможно найти язык по введенному ID\");\n\t\t}\n\n\t\t$lang_file = CACHE_PATH.\"cache/lang_cache/\".$row['ldir'].\"/\".$this->ipsclass->input['lang_file'];\n\n\t\tif (! file_exists( $lang_file ) )\n\t\t{\n\t\t\t$this->ipsclass->admin->error(\"Невозможно найти файл '$lang_file', проверьте есть ли он.\");\n\t\t}\n\n\t\tif (! is_writeable( $lang_file ) )\n\t\t{\n\t\t\t$this->ipsclass->admin->error(\"Невозможно записать в файл '$lang_file', проверьте права доступа (CHMOD) и, если необходимо установить права доступа 0777. IPB не может сделать это за вас\");\n\t\t}\n\n\t\t$barney = array();\n\n\t\tforeach ($this->ipsclass->input as $k => $v)\n\t\t{\n\t\t\tif ( preg_match( \"/^XX_(\\S+)$/\", $k, $match ) )\n\t\t\t{\n\t\t\t\tif ( isset($this->ipsclass->input[ $match[0] ]) )\n\t\t\t\t{\n\t\t\t\t\t$v = str_replace(\"&#39;\", \"'\", stripslashes($_POST[ $match[0] ]) );\n\t\t\t\t\t$v = str_replace(\"&#60;\", \"<\", $v );\n\t\t\t\t\t$v = str_replace(\"&#62;\", \">\", $v );\n\t\t\t\t\t$v = str_replace(\"&#38;\", \"&\", $v );\n\t\t\t\t\t$v = str_replace(\"\\r\", \"\", $v );\n\n\t\t\t\t\t$barney[ $match[1] ] = $v;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ( count($barney) < 1 )\n\t\t{\n\t\t\t$this->ipsclass->admin->error(\"Что-то сделано не так, вернитесь назад и попробуйте еще раз\");\n\t\t}\n\n\t\t$start = \"<?php\\n\\n\".'$lang = array('.\"\\n\";\n\n\t\tforeach($barney as $key => $text)\n\t\t{\n\t\t\t$text = preg_replace(\"/\\n{1,}$/\", \"\", $text);\n\t\t\t$start .= \"\\n'\".$key.\"' => \\\"\".str_replace( '\"', '\\\"', $text).\"\\\",\";\n\t\t}\n\n\t\t$start .= \"\\n\\n);\\n\\n?\".\">\";\n\n\t\tif ($fh = fopen( $lang_file, 'w') )\n\t\t{\n\t\t\tfwrite($fh, $start );\n\t\t\tfclose($fh);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->ipsclass->admin->error(\"Нельзя сделать запись в $lang_file\");\n\t\t}\n\n\t\tif ( $this->ipsclass->input['id'] )\n\t\t{\n\t\t\t$this->ipsclass->admin->done_screen(\"Язык обновлен\", \"Управление языками\", \"{$this->ipsclass->form_code}&code=edit&id={$this->ipsclass->input['id']}\", 'redirect' );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->ipsclass->admin->done_screen(\"Язык обновлен\", \"Управление языками\", \"{$this->ipsclass->form_code}\", 'redirect' );\n\t\t}\n\t}", "function addFile($conn, $filename, $filetype, $filesize, $contents, $myID)\n{\n\t$statement = $conn->prepare(\"SELECT * FROM files where name = ? AND userid = ?\");\n\t$statement->bind_param(\"si\", $filename, $myID);\n\t$statement->execute();\n\t$error = $statement->error;\n\t$result = $statement->get_result();\n\t$statement->close();\n\n\tif($error)\n\t\treturn $error;\n\n\t//update existing file\n\tif($result->num_rows > 0)\n\t{\n\t\t$newConn = connect_to_db(1);\n\t\t$statement = $newConn->prepare(\"UPDATE files SET type = ?, size = ?, content = ? WHERE userid = ? AND name = ?\");\n\t\t$statement->bind_param(\"sisis\", $filetype, $filesize, $contents, $myID, $filename);\n\t}\n\telse //adding new file\n\t{\n\t\t$statement = $conn->prepare(\"INSERT INTO files (name, type, size, content, userid) VALUES (?, ?, ?, ?, ?)\");\n\t\t$statement->bind_param(\"ssisi\", $filename, $filetype, $filesize, $contents, $myID);\n\t}\n\n\t$statement->execute();\n\t$error = $statement->error;\n\t$statement->close();\n\n\tif(isset($newConn))\n\t\t$newConn->close();\n\n\treturn $error;\n}", "function writeContent ($filetype1, $pathbase, $outputFile, $msgToRegister) {\n global $GROUP, $WRITEMSG, $OVERWRITE;\n\n $pathbase = \"/var/www/html/saw/mod/iassign/ilm_debug/\"; // \"/mod/iassign/ilm_debug/\";\n $outputFile = $pathbase . $outputFile;\n\n if (!is_writable($pathbase)) { // TRUE se arquivo existe e pode ser escrito\n // $file_debug .= \"Error: '\" . $completfilepath . \"' could not be registered! Perhaps the directory or the file has permission problem?<br/>\\n\";\n //D echo \"$outputFile, $filetype1<br/>\";\n print \"Erro! Problema de acesso ao servidor! Por favor, avise ao administrador (<tt>$pathbase</tt> nao acessivel para escrita).<br/>\"; // . $file_debug . \"\n exit(0);\n }\n\n // $result = writeContent(\"file\", $pathbase, $filename, $msgToRegister);\n // print \"escreva.php: result=$result<br/>\";\n\n // write personal email file\n // To write: verify if the file does not exists or have permission to overwrite\n if (is_file($outputFile)) { // already exist this file\n // $outputFile .= $outputFile . '_' . date('Y_m_d_h_m');\n } // if (is_file($outputFile))\n\n if (1==1) { // write/overwrite the file\n $fpointer = fopen($outputFile, \"w\"); // write - if executed, it clear the previou content at this file\n if (!$fpointer) {\n $file_debug .= \"Erro: nao foi possivel abrir o roteiro ($outputFile)!<br/>\\n\";\n // it was not possible to open the file '$completfilepath\" . $file_name . \"'!<br/>\\n\";\n print \"<br/>\" . $file_debug . \"<br/>\\n\";\n //D echo \"writeContent: $filetype1, outputFile=$outputFile<br/>\\n\";\n return 0;\n }\n fwrite($fpointer, $msgToRegister . \"\\n\");\n // echo \" - outputFile=$outputFile : WRITEMSG=$WRITEMSG, OVERWRITE=$OVERWRITE, gerado com sucesso!<br/>\\n\";\n fclose($fpointer);\n }\n else {\n // print \"Nao gera os arquivos personalizados para email aos alunos ('$outputFile')<br/>\\n\"; // admin/<turma>/<N>_<name>.txt\n }\n\n return 1;\n }", "public function upload_file_file()\n\t{\n\t\tif (!$this->is_allowed('dokumentasi_bendungan_add', false)) {\n\t\t\techo json_encode([\n\t\t\t\t'success' => false,\n\t\t\t\t'message' => cclang('sorry_you_do_not_have_permission_to_access')\n\t\t\t\t]);\n\t\t\texit;\n\t\t}\n\n\t\t$uuid = $this->input->post('qquuid');\n\n\t\techo $this->upload_file([\n\t\t\t'uuid' \t\t \t=> $uuid,\n\t\t\t'table_name' \t=> 'dokumentasi_bendungan',\n\t\t]);\n\t}", "function salvarCompras($novaCompra){\n if(!file_exists('compras.json')){\n $compras[\"listaCompras\"] = [$novaCompra];\n $jsoncompras = json_encode($compras);\n file_put_contents('compras.json',json_encode($compras));\n echo \"<script>alert('Compra salva com sucesso!')</script>\";\n }else {\n // \n $jsoncompras = file_get_contents('compras.json');\n $listaCompras = json_decode($jsoncompras, TRUE);\n $listaCompras[\"listaCompras\"][] = $novaCompra;\n \n $jsonListaCompras = json_encode($listaCompras);\n file_put_contents('compras.json', $jsonListaCompras);\n }\n}", "public function uploadFile(){\n\n if (!$this->request->is('post'))\n {\n $this->setErrorMessage('Post method required');\n return;\n }\n\n if (!isset($this->request->data['currentPath']) ||\n !isset($this->request->params['form']) ||\n !isset($this->request->params['form']['idia'])\n ){\n $this->setErrorMessage('Invalid parameters');\n return;\n }\n\n $path = ltrim(trim($this->request->data['currentPath']), DS);\n $tokens = explode(DS, strtolower($path));\n\n ($tokens[0] == 'root') && ($tokens = array_slice($tokens, 1, null, true));\n\n $path = implode(DS, $tokens);\n $fullPath = WWW_FILE_ROOT . strtolower($path);\n\n if(!is_dir($fullPath)){\n $this->setErrorMessage('Invalid path');\n return;\n }\n\n if(is_file($fullPath . DS . strtolower($this->request->params['form']['idia']['name']))){\n $this->setErrorMessage('File with similar name already exist');\n return;\n }\n\n $newFile = new File($fullPath . DS . strtolower($this->request->params['form']['idia']['name']), true );\n $newFile->close();\n\n $tempFile = new File(($this->request->params['form']['idia']['tmp_name']));\n $tempFile->copy($fullPath . DS .$this->request->params['form']['idia']['name']);\n $tempFile->delete();\n\n $this->set(array(\n 'status' => 'ok',\n \"message\" => 'successful',\n \"_serialize\" => array(\"message\", \"status\")\n ));\n }", "function salva()\n\t{\n\t\trestauraConObj($this->mapa,$this->postgis_mapa);\n\t\t$this->mapa->save($this->arquivo);\n\t}", "public function addnew()\n\t{\n\t\tif (!$this->auth($_SESSION['leveluser'], 'component', 'create')) {\n\t\t\techo $this->pohtml->error();\n\t\t\texit;\n\t\t}\n\t\tif (!empty($_POST)) {\n\t\t\tif (!empty($_FILES['fupload']['tmp_name'])) {\n\t\t\t\t$exp = explode('.', $_FILES['fupload']['name']);\n\t\t\t\t$componentName = $this->postring->seo_title($exp[0]).'-'.rand(000000,999999).'-popoji.'.$exp[1];\n\t\t\t\t$componentType = $this->postring->valid($_POST['type'], 'xss');\n\t\t\t\tif ($componentType == 'component') {\n\t\t\t\t\t$folderinstall = 'component';\n\t\t\t\t} else {\n\t\t\t\t\t$folderinstall = 'widget';\n\t\t\t\t}\n\t\t\t\tif (in_array($exp[1], array('zip'))) {\n\t\t\t\t\tmove_uploaded_file($_FILES['fupload']['tmp_name'], '../'.DIR_CON.'/uploads/'.$componentName);\n\t\t\t\t\tif (file_exists('../'.DIR_CON.'/'.$folderinstall.'/'.strtolower($this->postring->valid($_POST['component'], 'xss')))) {\n\t\t\t\t\t\tunlink('../'.DIR_CON.'/uploads/'.$componentName);\n\t\t\t\t\t\t$this->poflash->error($GLOBALS['_']['component_message_3'], 'admin.php?mod=component');\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$archive = new PoPclZip('../'.DIR_CON.'/uploads/'.$componentName);\n\t\t\t\t\t\tif ($archive->extract(PCLZIP_OPT_PATH, '../'.DIR_CON.'/'.$folderinstall.'/'.strtolower($this->postring->valid($_POST['component'], 'xss'))) == 0) {\n\t\t\t\t\t\t\tunlink('../'.DIR_CON.'/uploads/'.$componentName);\n\t\t\t\t\t\t\t$this->poflash->error($GLOBALS['_']['component_message_3'], 'admin.php?mod=component');\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$data = array(\n\t\t\t\t\t\t\t'component' => strtolower($this->postring->valid($_POST['component'], 'xss')),\n\t\t\t\t\t\t\t'type' => $this->postring->valid($_POST['type'], 'xss'),\n\t\t\t\t\t\t\t'datetime' => date('Y-m-d H:i:s')\n\t\t\t\t\t\t);\n\t\t\t\t\t\t$query_component = $this->podb->insertInto('component')->values($data);\n\t\t\t\t\t\t$query_component->execute();\n\t\t\t\t\t\tunlink('../'.DIR_CON.'/uploads/'.$componentName);\n\t\t\t\t\t\tif (file_exists('../'.DIR_CON.'/'.$folderinstall.'/'.strtolower($this->postring->valid($_POST['component'], 'xss')).'/install.php')) {\n\t\t\t\t\t\t\t$this->poflash->success($GLOBALS['_']['component_message_1'], 'admin.php?mod=component&act=install&folder='.strtolower($this->postring->valid($_POST['component'], 'xss')));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this->poflash->success($GLOBALS['_']['component_message_1'], 'admin.php?mod=component');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$this->poflash->error($GLOBALS['_']['component_message_3'], 'admin.php?mod=component');\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->poflash->error($GLOBALS['_']['component_message_3'], 'admin.php?mod=component');\n\t\t\t}\n\t\t}\n\t\t?>\n\t\t<div class=\"block-content\">\n\t\t\t<div class=\"row\">\n\t\t\t\t<div class=\"col-md-12\">\n\t\t\t\t\t<?=$this->pohtml->headTitle($GLOBALS['_']['component_addnew']);?>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class=\"row\">\n\t\t\t\t<div class=\"col-md-12\">\n\t\t\t\t\t<?=$this->pohtml->formStart(array('method' => 'post', 'action' => 'route.php?mod=component&act=addnew', 'enctype' => true, 'autocomplete' => 'off'));?>\n\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t<div class=\"col-md-12\">\n\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\t<div class=\"col-md-6\">\n\t\t\t\t\t\t\t\t\t\t<?=$this->pohtml->inputText(array('type' => 'text', 'label' => $GLOBALS['_']['component_title'], 'name' => 'component', 'id' => 'component', 'mandatory' => true, 'options' => 'required'));?>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"col-md-6\">\n\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t\t$item = array();\n\t\t\t\t\t\t\t\t\t\t\t$item[] = array('value' => 'component', 'title' => 'Component');\n\t\t\t\t\t\t\t\t\t\t\t$item[] = array('value' => 'widget', 'title' => 'Widget');\n\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t<?=$this->pohtml->inputSelect(array('id' => 'type', 'label' => $GLOBALS['_']['component_type'], 'name' => 'type', 'mandatory' => true), $item);?>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"col-md-12\">\n\t\t\t\t\t\t\t\t\t\t<?=$this->pohtml->inputText(array('type' => 'file', 'label' => $GLOBALS['_']['component_browse_file'], 'name' => 'fupload', 'id' => 'fupload', 'mandatory' => true));?>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<?=$this->pohtml->formAction();?>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t<?=$this->pohtml->formEnd();?>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<?php\n\t}", "public function create($data) {\n\t\t// Create an ID\n\t\t$id = $this->idCreate();\n\t\t// Write the data file\n\t\tfile_put_contents( $this->init['path']['data'] . $id . $this->init['data']['ext'] );\n\t}", "function guardar()\n\t{\t\t\n\t\tif ($this->activo) {\n\t\t\t$this->guardar_en_archivo($this->get_nombre_archivo());\n\t\t}\n\t}", "function add_filekem($id_thongbao,$tenfile,$duongdan_file){\n// if(filesize($tenfile)>100)\n $random = time();\n $sql_dinhkem = 'insert into file_kem_thongbao(id,ten_file,id_thongbao,duongdan_file) values(?,?,?,?)';\n $id_kem = \"idkem\".$random;\n $conn = onpen_database();\n $stm_dinhkem = $conn -> prepare($sql_dinhkem);\n $stm_dinhkem -> bind_param('ssss', $id_kem,$tenfile,$id_thongbao,$duongdan_file);\n if(!$stm_dinhkem -> execute()) {\n return array('code' => 1, 'error' => 'Can not execute command');\n }\n return array('code' => 0, 'error' => 'Add successful');\n}", "public function AdicionarConvenio($file, $id, $nomeEmpresa,){\n $formatP = array(\"pdf\");\n\n \n $extensao = pathinfo($file['name'], PATHINFO_EXTENSION);\n\n // echo \"$extensao\";\n\n if(in_array($extensao,$formatP)){\n // $caminho = \"../docs/\".$tipo.\"/\";\n $temp = $file['tmp_name'];\n\n $this->PrepraDiretorioDoc($id);\n\n $inserirDOC = \"UPDATE empresa set DOC_Convenio = :nomeArquivo WHERE CD_Empresa = :idEmpresa\";\n $caminho = \"C:/xampp/htdocs/projeto_final/startechlds/docs/DOC_Convenio/\";\n $doc = \"DOC_Curriculo\";\n\n $nomeArquivo = $nomeEmpresa.\"_Convenio\";\n if(move_uploaded_file($temp, $caminho.$nomeArquivo.\".pdf\")){\n try{\n $conn = new ConexaoBD();\n $conect = $conn->ConDB();\n\n $result = $conect->prepare($inserirDOC);\n $result->bindParam(':nomeArquivo', $nomeArquivo, PDO::PARAM_STR);\n $result->bindParam(':idEmpresa', $id, PDO::PARAM_INT);\n $result->execute();\n\n \n\n $funcionou = $result->rowCount();\n \n \n if($funcionou > 0){\n return true;\n }\n else{\n // echo\"não retornou linha nenhuma\";\n return false;\n }\n }\n catch(PDOException $e){\n echo \"erro de PDO \".$e->getMessage();\n }\n\n }\n else{\n echo\"erro ao mover para pasta<br/>\";\n // var_dump(move_uploaded_file($temp, $this->caminhoCurriculo.$nomeAluno.\".pdf\"));\n }\n\n }\n else{\n echo \"Formato inválido\";\n }\n\n }", "function writefiles($post){\n\n\t$personal_name=$post[\"title\"];\n\t$contents=$post[\"contents\"];\n\n $contents = nl2br($contents);\n\n $data = \"<hr>\";\n $data = $data.\"<p>投稿者:\".$personal_name.\"</p>\";\n $data = $data.\"<p>内容:</p>\";\n $data = $data.\"<p>\".$contents.\"</p>\";\n\n $keijban_file = 'test.txt';\n\n $fp = fopen($keijban_file, 'ab');\n\n if ($fp){\n if (flock($fp, LOCK_EX)){\n if (fwrite($fp, $data) === FALSE){\n print('ファイル書き込みに失敗しました');\n }\n\n flock($fp, LOCK_UN);\n }else{\n print('ファイルロックに失敗しました');\n }\n }\n\n fclose($fp);\n}", "function insert_file_nominee()\n {\n $pefs_file = $_FILES['fil']['tmp_name'];\n $fil_name = iconv(\"UTF-8\", \"TIS-620\", $_FILES['fil']['name']);\n $Emp_ID = $this->input->post(\"Emp_ID\");\n\n $this->load->model('Da_pef_file_present', 'pef');\n $this->pef->fil_location = $Emp_ID . \"_\" . $fil_name;\n $this->pef->fil_emp_id = $Emp_ID;\n\n $this->pef->insert_file(); // add file to table pef_file\n copy($pefs_file, 'upload/' . $Emp_ID . \"_\" . $fil_name); // add file to floder upload\n $this->show_list_nominee();\n }", "function subidaFichero($bd,$usuario,$entrada){\n if(isset($_FILES['imagen']['name']) && strlen ($_FILES['imagen']['name'])>0) {\n $dir_subida = $usuario . \"/\";\n ///////////NO TENGO PERMISOS DE CREAR CARPETAS!!!!!!!\n if ( !is_dir($dir_subida) && is_writable(\"../redsocial\")) {\n mkdir($dir_subida,0755, true);\n }else\n $dir_subida=\"img/\";\n $path = $_FILES['imagen']['name'];\n $ext = pathinfo($path, PATHINFO_EXTENSION);\n $fichero_subido = $dir_subida . $usuario . date(\"Ymd_Hm\").\".\".$ext;\n /////NO TENGO PERMISOS PARA SUBIR ARCHIVOS!!!!\n if(is_writable($dir_subida)) {\n if (!move_uploaded_file($_FILES['imagen']['tmp_name'], $fichero_subido)) {\n echo \"Problema de ataque de subida de ficheros!.\\n\";\n }\n }\n $imagen = new Imagen(null, $fichero_subido, $entrada->getId());\n $daoImagenes = new Imagenes($bd);\n $daoImagenes->addImagen($imagen, $entrada);\n return $fichero_subido;\n }\n\n}", "function cargar($sender, $param)\n {\n if($sender->HasFile) \t \n $carpeta=$this->t1->text;\n $ruta=\"attach/archivo/\".$carpeta.\"/\";//ruta donde se guardan los adjuntos que se han subido \n $this->t2->text=$this->t2->text.\"$ruta$sender->FileName\".\"\\n\";\n $sender->saveAs($ruta.$sender->FileName);\n }", "public function anexar(){\n// var_dump($_FILES);\n// var_dump($_POST);\n if(isset($_FILES) && isset($_POST['id']) && !empty($_FILES)){\n extract($_POST);\n $extensao = $this->validaExtensao($_FILES['arquivo']['name']);\n if($_FILES['arquivo']['size'] <= 4000000 && $extensao){\n $newName = md5(time()).\".\".$extensao;\n $this->validaPasta($tipo, $id);\n $caminho = \"arquivos/$tipo/$id/$newName\";\n if (move_uploaded_file($_FILES['arquivo']['tmp_name'], $caminho)) {\n $arquivos = new Arquivos();\n $retorno = $arquivos->insereArquivoBD($_FILES['arquivo']['name'], $id, $caminho, $tipo);\n echo json_encode('ok');\n }else{\n echo json_encode(3);\n }\n \n } else {\n echo json_encode(2);\n }\n } else {\n echo json_encode(1);\n }\n }", "function domain_add_xmlfile($key,$file){\n if(is_object($this->tool)) $file = $this->tool->det_file($file,0,'abs');\n if(!file_exists($file) or !is_readable($file)) return 20;\n $xml = new opc_sxml($file);\n if(!is_null($xml->error_msg)) return 21;\n return $this->domain_add_xml($key,$xml);\n }", "function addMasive() {\n $dir = $this->config->item('doc_dir') . 'data/*';\n foreach (glob($dir) as $path) {\n if (!is_dir($path)) { //SOLO SI ES ARCHIVO \n unlink($path); //BORRA ARCHIVO\n }\n }\n\n //RESCATA EL ARCHIVO ZIP QUE SE DESEA SUBIR\n $file_uploaded = $this->input->file('documento');\n $file_extension = $this->app->getFileExtension($file_uploaded['name']);\n $file_name_actual = $this->app->getFileName($file_uploaded['name']);\n\n if ($file_extension != 'zip') {\n $success = 'false';\n $msg = $this->translateTag('Document', 'the_file_has_to_be_zip');\n } else {\n\n $doc_name = md5(time()) . '.' . $file_extension; //CREA UN NOMBRE Y CONCATENA LA EXTENSION\n //SE CONFIGURA EL ZIP A SUBIR\n $config = array();\n $config['upload_path'] = $this->config->item('temp_dir'); //RUTA DE DESTINO /docs\n $config['allowed_types'] = 'zip'; //EXTENSION SACADA DEL ARCHIVO SUBIDO\n $config['file_name'] = $doc_name; //NOMBRE CON EL QUE SE GUARDA EN LA RUTA INDICADA\n //SUBE EL ARCHIVO\n $this->load->library('upload', $config);\n\n if (!$this->upload->do_upload('documento')) {\n $success = 'false';\n $msg = $this->upload->display_errors('-', '\\n');\n throw new Exception($msg);\n } else {\n\n $success = 'true';\n $msg = $this->translateTag('General', 'operation_successful');\n }\n\n //----LIBRERIA QUE DESCOMPRIME EL ZIP-----\n $rutayarchivo = $this->config->item('temp_dir') . $doc_name;\n chmod($rutayarchivo, 0755);\n\n //BORRA EL CONTENIDO DE LA CARPETA 'DOCS'\n $zip = new ZipArchive;\n if ($zip->open($rutayarchivo) === TRUE) {\n $zip->extractTo($this->config->item('doc_dir') . 'data/');\n $zip->close();\n $success = true;\n } else {\n $success = false;\n $msg = $this->translateTag('Document', 'can_not_open_the_zip_file');\n echo $json_data = $this->json->encode(array('success' => $success, 'msg' => $msg));\n return;\n }\n\n\n\n //-------------------------------------------------------------------------------\n //----------AQUI RECORRE LA RUTA Y CREA LOS INSERTS POR CADA ARCHIVO EN EL PATH\n //-------------------------------------------------------------------------------\n\n try {\n\n $dir = $this->config->item('doc_dir') . 'data/*';\n foreach (glob($dir) as $path) {\n\n if (!is_dir($path)) {// ENTRA SOLO SI ES ARCHIVO\n $file_extension = substr(strrchr($path, \".\"), 1); //EXTENSION\n $nom_archivo = array_pop(explode(\"/\", $path)); //NOMBRE+PUNTO+EXTENSION\n list($file_name_actual) = (explode(\".\", $nom_archivo)); //SOLO NOMBRE\n\n\n $docExtension = new DocExtension();\n $compare = Doctrine_Core::getTable('DocDocument')->compFileName($nom_archivo, $this->input->post('node_id'));\n\n //Preguntar si el nombre del documento ya existe en la base de datos si existe retornar mensaje \"Debe ingresarlo como Version\"\n if ($compare === true) {\n $success = false;\n $msg = $this->translateTag('Document', 'version_should_be_entered_as');\n $json_data = $this->json->encode(array('success' => $success, 'msg' => $msg));\n echo $json_data;\n return;\n }\n\n //PREGUNTA POR UNA EXTENSION VALIDA OJO Q DEVUELVE EL ID NO EL NOMBRE DE LA EXTENSION\n if (($extension_id = $docExtension->isAllowed($file_extension)) !== false) {\n //RECIVE LOS POST \n $node_id = $this->input->post('node_id');\n $doc_category_id = $this->input->post('doc_category_id');\n $doc_document_description = $this->input->post('doc_document_description');\n $doc_version_comments = $this->input->post('doc_version_comments');\n $doc_version_internal = $this->input->post('doc_version_internal');\n $doc_version_expiration = $this->input->post('doc_version_expiration');\n $doc_version_code_client = $this->input->post('doc_version_code_client');\n $doc_version_keyword = $this->input->post('doc_version_keyword');\n $doc_version_alert = $this->input->post('doc_version_alert');\n $doc_version_alert_email = $this->input->post('doc_version_alert_email');\n $doc_version_notification_email = $this->input->post('doc_version_notification_email');\n\n //INSERT DOCUMENTO\n $doc = new DocDocument();\n $doc->node_id = $node_id;\n $doc->doc_category_id = $doc_category_id;\n $doc->doc_extension_id = $extension_id; //ojo este es el id de donde encuentra el id\n $doc->doc_document_description = $doc_document_description;\n $doc->doc_status_id = 0;\n $doc->doc_document_filename = $file_name_actual . '.' . $file_extension;\n $doc->doc_current_version_id = NULL;\n $doc->save();\n\n //SE CREA UN NOMBRE FALSO CON FORMATO MD5\n $doc_name = md5(time() . ' ' . $file_name_actual) . '.' . $file_extension;\n\n\n //INSERT VERSION DEL DOCUMENTO\n $version_number = 1;\n $version = new DocVersion();\n $version->doc_version_code = $version_number;\n $version->doc_version_code_client = $doc_version_code_client;\n $version->doc_version_filename = $doc_name;\n $version->doc_version_comments = $doc_version_comments;\n $version->doc_version_internal = $doc_version_internal;\n $version->doc_version_expiration = $doc_version_expiration;\n $version->doc_version_keyword = $doc_version_keyword;\n $version->doc_version_alert = $doc_version_alert;\n $version->doc_version_alert_email = $doc_version_alert_email;\n $version->doc_version_notification_email = $doc_version_notification_email;\n $user_id = $this->auth->get_user_data('user_id');\n $version->user_id = $user_id;\n $version->doc_document_id = $doc->doc_document_id;\n $version->save();\n\n $doc->doc_current_version_id = $version->doc_version_id;\n $doc->save();\n\n\n\n //SE CREA UN LOG DE REGISTRO\n $node = Doctrine::getTable('Node')->find($node_id);\n $docCategory = Doctrine::getTable('DocCategory')->find($doc->doc_category_id);\n\n $this->syslog->register('add_document', array(\n $doc->doc_document_filename,\n $version->doc_version_code,\n $docCategory->doc_category_name,\n $node->getPath()\n ));\n\n //SE MUEVE EL ARCHIVO DE DOCS->DATA A DOCS\n copy($this->config->item('doc_dir') . 'data/' . $nom_archivo, $this->config->item('doc_dir') . $doc_name);\n\n $this->addThumb($doc_name, $file_extension);\n } else {\n $success = 'false';\n $msg = $this->translateTag('Document', 'type_extension_not_allowed');\n }\n }//FIN DEL IF\n }//FIN DEL FOR \n } catch (Exception $e) {\n $success = 'false';\n $msg = $e->getMessage();\n }\n }\n\n\n\n echo '{\"success\": ' . $success . ', \"msg\":\"' . $msg . '\"}';\n }", "protected function add_ready_file( $file ) {\r\n\t\t\t$file['isvalid'] = true;\r\n\t\t\t$file['issaved'] = true;\r\n\t\t\t\r\n\t\t\t$this->Files_ready[] = $file;\r\n\t\t\t$this->Files_ready_count++;\r\n\t\t}", "function update_file($filename, $content) {\r\n\tif (file_put_contents(DIR_DATABASE.$filename, $content, LOCK_EX) === false\r\n\t\t|| strcmp(file_get_contents(DIR_DATABASE.$filename), $content) != 0)\r\n\t{\r\n\t\tdie('Enable to write file “'. DIR_DATABASE.$filename.'”');\r\n\t}\r\n}", "public function crearInstalacion() {\n\n if ($this->seguridad->esAdmin()) {\n $id = $this->instalacion->getLastId();\n $nombre = $_REQUEST[\"nombre\"];\n $descripcion = $_REQUEST[\"descripcion\"];\n $imagen = $_FILES[\"imagen\"];\n $precioHora = $_REQUEST[\"precioHora\"];\n $horarios = array();\n \n for ($i=1; $i<=14; $i++) {\n $horarios[] = $_REQUEST[\"d\" . $i];\n }\n \n \n if ($this->instalacion->add($nombre,$descripcion,$imagen,$precioHora,$horarios,$id) > 1) {\n $this->instalacion($id);\n } else {\n echo \"<script>\n i=5;\n setInterval(function() {\n if (i==0) {\n location.href='index.php';\n }\n document.body.innerHTML = 'Ha ocurrido un error. Redireccionando en ' + i;\n i--;\n },1000);\n </script>\";\n }\n } else {\n $this->gestionReservas();\n }\n\n }", "function _guardarFichero($fichero, $datos) {\n\t\tif ( $this->comprimir )\n\t\t @gzwrite($fichero, $datos);\n\t\telse\n\t\t @fwrite($fichero, $datos);\n\t\t$this->escrito = true;\n\t}", "function insertFile ($filename, $origname='', $extraData='')\n{\n if (!$filename)\n v4b_exit ('Invalid filename passed to IbUtil::insertFile ...');\n\n if ($origname)\n $ext = FileUtil::getExtension ($origname);\n else\n $ext = FileUtil::getExtension ($filename);\n\n $data = '';\n $err = '';\n $cmd = '';\n global $v4bConfig;\n $txtFile = $v4bConfig['V4B_FILE_TMP_PATH'] . '/' . FileUtil::getBasename($filename) . '.txt';\n if ($ext == 'txt')\n $txtFile = $filename;\n else if ($ext == 'doc')\n $cmd = \"/usr/local/bin/antiword \\\"$filename\\\" > \\\"$txtFile\\\"\";\n else if ($ext == 'pdf')\n $cmd = \"pdftotext \\\"$filename\\\" \\\"$txtFile\\\"\";\n else if ($ext == 'ps')\n $cmd = \"ps2ascii \\\"$filename\\\" \\\"$txtFile\\\"\";\n else \n return -1;\n\n $rc = system ($cmd, $err);\n if ($err)\n return -1;\n\n $fp = fopen ($txtFile, \"a\");\n $swrite = \"\\nextraData\\n\";\n @fwrite ($fp, $swrite);\n fclose ($fp);\n\n $data = FileUtil::readFile ($txtFile);\n @unlink ($txtFile);\n\n if ($data)\n return IbUtil::insert ($data);\n\n return -1;\n}", "public function insertFile(){\n $this->isLogged();\n\n $id = $this->input->post('id');\n $timestamp = date(\"Y-m-d H:i:s\", time());\n\n $config['upload_path'] = UPLOAD_PATH_INMAIL;\n $config['allowed_types'] = 'gif|jpg|png|jpeg';\n $config['file_name'] = $id.'-'.$_FILES['userfile']['name'];\n $config['max_size'] = 2048;\n $config['overwrite'] = TRUE;\n $config['encrypt_name'] = FALSE;\n $config['remove_spaces'] = TRUE;\n if ( ! is_dir($config['upload_path']) ){\n die(\"THE UPLOAD DIRECTORY DOES NOT EXIST\");\n }\n\n //PROSES UPLOAD\n $this->load->library('upload', $config);\n //KONDISI JIKA UPLOAD GAGAL\n if (!$this->upload->do_upload('userfile')){\n $_POST['error'] = $this->upload->display_errors();;\n $this->setFlash('error','Gagal Upload', $this->upload->display_errors());\n redirect(site_url('inmail/edit_inmail/'.$id));\n }\n else{\n //PEMBUATAN DATA PER ITEM UNTUK SEMUA ITEM DATA FILE UPLOAD\n $file_name = $this->upload->data('file_name');\n // echo $file_name;\n // die();\n $datas = $this->upload->data();\n // print_r($datas);\n // die();\n $update = $this->inmail_model->updateFileInmail($id, $file_name);\n if($update == true){\n // $this->setFlash('success','Berhasil', 'Berhasil Upload');\n redirect(site_url('inmail/detailsurat/'.$id));\n }else{\n // $this->setFlash('error','Gagal Upload', $this->upload->display_errors());\n redirect(site_url('inmail/edit_inmail/'.$id));\n }\n }\n }", "function append_message($message)\n{\n $fileContents = file_get_contents($_SERVER['DOCUMENT_ROOT'] . \"/backend/common/notices.log\");\n file_put_contents($_SERVER['DOCUMENT_ROOT'] . \"/backend/common/notices.log\", $fileContents.$message);\n}", "public function uploadFileManufacturer(){\r\n $file = Input::file('file');\r\n $manufacturerId = Input::get('MANUFACTURER');\r\n $adminId = Input::get('CONSULTANT');\r\n $manufacturer = Project::find($manufacturerId);\r\n if($manufacturer!=null){\r\n if($file){\r\n $fileName = $file->getClientOriginalName();\r\n if(!File::exists(\"files/manufacturerFiles/\".$manufacturerId.\"/\")) {\r\n File::makeDirectory(\"files/manufacturerFiles/\".$manufacturerId.\"/\", 0755, true);\r\n }\r\n $file->move(public_path().'/files/manufacturerFiles/'.$manufacturerId.'/', $fileName);\r\n //create the row in upload file\r\n $uploadFile = new UploadedFiles();\r\n $uploadFile->project_id = 0;\r\n $uploadFile->manufacturer_id = $manufacturerId;\r\n $uploadFile->url = \"files/manufacturerFiles/\".$manufacturerId.\"/$fileName\";\r\n $uploadFile->fileName = $fileName;\r\n $uploadFile->admin_id = $adminId;\r\n $uploadFile->ip = $_SERVER[\"REMOTE_ADDR\"];\r\n $uploadFile->save();\r\n Transaction::createTransaction($adminId,'','','UPLOAD_FILE_FROM_MANUFACTURER',$fileName,'','','','','','');\r\n }\r\n }\r\n }", "public function preUpload()\n {\n $this->name = str_replace(' ', '-', $this->alt) . uniqid() . \".\" . $this->fichier->guessExtension();\n }", "function hapusfile(){\n\t\t$previllage = 1;\n\t\tcheck_super_user($this->session->tipe_user,$previllage);\n\n\t \t$id = $this->uri->segment(3);\n\t\t//Action\t\t \n\t\t$itemfile = $this->tugas_m->get($id)->row();\n \t\tif ($itemfile->file != null) {\n \t\t\t$target_file = 'assets/dist/files/tugas/'.$itemfile->file;\n \t\t\tunlink($target_file);\n \t\t}\n \t\t$params['file'] = \"\";\n \t\t$this->db->where('id',$id);\n\t \t$this->db->update('tb_tugas',$params);\n\t \tredirect('tugas/edit/'.$id);\t \n\t}", "function add_fileassigment($id_tb,$username,$ten_file,$link){\n $time = date(\"Y-m-d h:i:sa\");\n $sql = 'select * from thongbao where id_tb=\"'.$id_tb.'\"';\n $result = executeResult($sql);\n $deadline = $result[0][\"deadline\"];\n if($time > $deadline){\n return array('code' => 2, 'error' => 'Bạn đã nộp trễ');\n }\n $random = time();\n $sql = 'insert into assigment(id,id_tb,username,ten_file,link) values(?,?,?,?,?)';\n $id = \"idassigment\".$random;\n $conn = onpen_database();\n $stm = $conn -> prepare($sql);\n $stm -> bind_param('sssss', $id,$id_tb,$username,$ten_file,$link);\n if(!$stm -> execute()) {\n return array('code' => 1, 'error' => 'Can not execute command');\n }\n return array('code' => 0, 'error' => 'Add successful');\n}", "function addFileLog($file, $text) {\n\t$today = date(\"Ymd\");\n\t$timeStamp = date(\"Y-m-d H:i:s\");\n\t$filePath = \"./__logs__/\".$today.\"_\".$file;\n\tfile_put_contents($filePath, \"\\n\".$timeStamp.\"\\n\".$text, FILE_APPEND | LOCK_EX);\n}", "private function insert_file( $param ) {\n global $wpdb;\n\n // unset other params first\n unset( $param['action'] );\n unset( $param['type'] );\n\n // add dt create to the parameter\n $param['dtcreate'] = $this->dtcreate();\n\n $sql = <<<__SQL\nINSERT INTO hc_file (title, content, date_data, tag, file, dtcreate)\nVALUES (%s, %s, %s, %s, %d, %s)\n__SQL;\n\n // prepare the sql\n $prepare = $wpdb->prepare( $sql, $param );\n\n try {\n // start the transaction\n $wpdb->query( 'START TRANSACTION' );\n // queue the query\n $res = $wpdb->query( $prepare );\n // commit the query\n $wpdb->query( 'COMMIT' );\n\n // check if unsuccessful insert\n if ( $res === false ) {\n $wpdb->query( 'ROLLBACK' );\n return false;\n }\n\n return $wpdb->insert_id;\n } catch ( \\Exception $e ) {\n return false;\n }\n\n return false;\n }", "public function addFile($file) {\n $this->files[$file->getName()] = $file;\n }", "public function uploadverhaal() {\n $defaults = array();\n\n $defaults[\"straat\"] = \"straatnaam of de naam van de buurt\";\n $defaults[\"huisnummer\"] = \"huisnummer\";\n $defaults[\"maker\"] = \"maker\";\n $defaults[\"personen\"] = \"namen\";\n $defaults[\"datum\"] = \"datum of indicatie\";\n $defaults[\"titel\"] = \"titel\";\n $defaults[\"naam\"] = \"Je naam\";\n $defaults[\"email\"] = \"Je e-mailadres\";\n $defaults[\"tags\"] = \"\";\n\n $this->set('defaults', $defaults);\n }", "public function actionCreate($id_proceso)\n {\n $model = new AvanceProceso();\n $archivo = new UploadForm();\n\n if ($model->load(Yii::$app->request->post()))\n {\n $model->hora = date('H:i:s');\n // $model->fecha = date('Y-m-d');\n $model->usuario = Yii::$app->user->identity->username;\n \n $archivo->file = UploadedFile::getInstance($archivo, 'file');\n \n if (isset($archivo->file))\n {\n \n if ($archivo->validate()) {\n $filename = $archivo->file->baseName. '.' . $archivo->file->extension;\n $model->archivo = $archivo->file->name;\n $archivo->file->saveAs('juridico/' .$id_proceso.'/avances/'.$filename);\n\n if($model->save()){\n return $this->redirect(['view', 'id' => $model->id_avance, 'id_p'=>$id_proceso]);\n }else{\n $m = 'Hubo un error al cargar el archivo';\n return $this->render('create', [\n 'model' => $model,\n 'id_p'=>$id_proceso,\n 'm'=>$m,\n ]);\n }\n \n }else{\n\n $m = 'Hubo un error al cargar el archivo';\n return $this->render('create', [\n 'model' => $model,\n 'id_p'=>$id_proceso,\n 'm'=>$m,\n ]);\n }\n\n }else{\n if($model->save()){\n return $this->redirect(['view', 'id' => $model->id_avance, 'id_p'=>$id_proceso]);\n }\n }\n\n \n } else {\n return $this->render('create', [\n 'model' => $model,\n 'id_p'=>$id_proceso,\n ]);\n }\n }", "function abrir_fichero($_fichero) {\n\t\t$fichero = false;\n\t\tif ( $this->comprimir )\n\t\t $fichero = @gzopen($_fichero, \"w9\");\n\t\telse\n\t\t $fichero = @fopen($_fichero, \"w\");\n\t\treturn $fichero;\n\t}", "public function add($title, $description, $cdate, $location, $postcode, $file, $user_id){\n $folder = $_SERVER['DOCUMENT_ROOT'] . '/uploads/';\n // remove all spaces from name\n $file[\"name\"] = str_replace(' ', '', $file[\"name\"]);\n $upload_image = $folder . basename($file[\"name\"]);\n if (move_uploaded_file($file[\"tmp_name\"], $upload_image)){\n // VALIDATION: check if conference name already exists\n $pdo = $this->db->prepare(\"SELECT conference_title FROM conferences WHERE conference_title = :title\");\n $pdo->bindParam(':title', $title);\n $pdo->execute();\n\n if($pdo->rowCount() > 0){\n return 'exists';\n } else {\n // INSERT into db\n try{\n $query = \"INSERT INTO conferences (\n conference_title,\n conference_description,\n conference_date,\n conference_location,\n conference_postcode,\n conference_img,\n user_id\n ) VALUES (:title, :description, :cdate, :location, :postcode, :img, :user_id)\";\n\n $pdo = $this->db->prepare($query);\n\n $pdo->bindParam(\":title\", $title);\n $pdo->bindParam(\":description\", $description);\n $pdo->bindParam(\":cdate\", $cdate, PDO::PARAM_STR);\n $pdo->bindParam(\":location\", $location);\n $pdo->bindParam(\":postcode\", $postcode);\n $pdo->bindParam(\":img\", $file[\"name\"]);\n $pdo->bindParam(\":user_id\", $user_id);\n\n $pdo->execute();\n\n } catch(Exception $e) {\n die($e);\n //return 'photo';\n }\n // return lastId\n return $this->db->lastInsertId();\n }\n } else {\n return 'photo';\n }\n }", "public function storeTo($path = './') {\n\t\tfile_put_contents($path . $this->filename, $this->content);\t\n\t}", "public function file_put_contents($file, $content);", "public function upload_file_file()\n\t{\n\t\tif (!$this->is_allowed('dokumentasi_tol_add', false)) {\n\t\t\techo json_encode([\n\t\t\t\t'success' => false,\n\t\t\t\t'message' => cclang('sorry_you_do_not_have_permission_to_access')\n\t\t\t\t]);\n\t\t\texit;\n\t\t}\n\n\t\t$uuid = $this->input->post('qquuid');\n\n\t\techo $this->upload_file([\n\t\t\t'uuid' \t\t \t=> $uuid,\n\t\t\t'table_name' \t=> 'dokumentasi_tol',\n\t\t]);\n\t}", "public function saveToDb()\n\t{\n\t\tparent::saveToDb();\n\t\t$this->insertAttachment();\n\t}", "public static function Guardar($unAuto)\n {\n//var_dump($unAuto);\n $archivo = fopen(\"Archivos/estacionados.txt\", \"a\");\n $renglon = $unAuto->patente.\"--\".$unAuto->fechIngreso.\"\\n\";\n \n fwrite($archivo, $renglon);\n fclose($archivo);\n }", "public function addMarkToFile( ){\n if( isset( $GLOBALS['config']['dir_database'] ) ){\n file_put_contents( $GLOBALS['config']['dir_database'].'database-last-modification', time( ) );\n }\n }", "private function createAuthFile()\r\n {\r\n $directory = $this->filesystem->getDirectoryWrite(DirectoryList::COMPOSER_HOME);\r\n\r\n if (!$directory->isExist(PackagesAuth::PATH_TO_AUTH_FILE)) {\r\n try {\r\n $directory->writeFile(PackagesAuth::PATH_TO_AUTH_FILE, '{}');\r\n } catch (Exception $e) {\r\n throw new LocalizedException(__(\r\n 'Error in writing Auth file %1. Please check permissions for writing.',\r\n $directory->getAbsolutePath(PackagesAuth::PATH_TO_AUTH_FILE)\r\n ));\r\n }\r\n }\r\n }", "function save()\r\n {\r\n // read the template\r\n\t $str = dirname(__FILE__); \r\n $content = file_get_contents(dirname(__FILE__).'/partinfo.php'); \r\n if (!$content){\r\n return \"fail read template\";\r\n } \t\r\n \r\n\t $tags = array(\"#TITLE#\", \r\n\t \t\"#BRAND#\", \r\n\t \t\"#MODULE#\", \r\n\t \t\"#ENGINE#\", \r\n \"#TYPE#\", \r\n \"#NAME#\", \r\n \"ADDRESS\", \r\n \"#DATE#\", \r\n \"#PRICE#\", \r\n \"DESCRIPTION\");\r\n\t \r\n $fields[0] = $this->title;\r\n $fields[1] = $this->brand;\r\n $fields[2] = $this->series;\r\n $fields[3] = $this->module;\r\n $fields[4] = \"配件\";\r\n $fields[5] = $this->module;\r\n $fields[6] = \"广州\";\r\n $fields[7] = $this->date;\r\n $fields[8] = $this->price;\r\n $fields[9] = $this->description;\r\n \r\n $content = str_replace($tags,$fields,$content); \r\n \r\n $date = date(\"Ymd-Hms\");\r\n $filename = sprintf(\"publish/%d-%d-%s.php\", $this->id, $this->uid, $date);\r\n $fp = fopen($filename, \"w\");\r\n if (!$fp) {\r\n return \"fail create file\";\r\n }\r\n \r\n if (fwrite($fp, $content) == FALSE) { \t \r\n fclose($fp);\r\n return \"fail wirte content\";\r\n }\r\n \r\n fclose($fp);\r\n return $filename;\r\n }", "function UploadFile($id, $FichierUName, $FichierU, $CheminU) {\r\n//Modifier le mardi 11 juin 2002\r\n//\terror_reporting(E_ALL);\r\n\t\r\n\t//Suppression de l'ancien fichier image\r\n\tDeleteFile($id, $CheminU);\r\n\r\n\t//Upload du fichier\r\n\t$Tfile = split(\"\\.\",$FichierUName);\r\n\t$fileExt = $Tfile[count($Tfile)-1];\r\n\r\n\t$NomLeft = split(\"\\.\",$id);\r\n\r\n\tif (count($NomLeft)>1) {\r\n\t\t@array_pop($NomLeft);\r\n\t}\r\n\t\r\n\t$NomDuFichier = @join($NomLeft,\".\").\".\".$fileExt;\r\n\t\r\n\t$tmp_name = $FichierU['tmp_name'];\r\n\t\r\n\t//copy($FichierU, $CheminU.\"/\".$NomDuFichier);\r\n\t// protection contre la copie\r\n\tif (is_uploaded_file($tmp_name))\r\n\t{\r\n\t\t// protection contre les erreurs d'upload\r\n\t\tif (!move_uploaded_file($tmp_name ,$CheminU.\"/\".$NomDuFichier)) $NomDuFichier=\"\";\t\t\t\t\r\n\t}\r\n\telse\r\n\t{\r\n\t\t// protection contre le hacking d'upload\r\n\t\t$NomDuFichier=\"\";\r\n\t}\t\r\n\r\n\treturn($NomDuFichier);//nom du fichier a inscrire dans la base\r\n}", "function add($str){\nglobal $gbfile;\n $tmp = trim($str);\n $fp=fopen($gbfile,'a+'); \n flock($fp, LOCK_EX); \n fwrite($fp, $tmp. \"\\n\"); \n flock($fp, LOCK_UN); \n fclose($fp); \n}", "public function addFile(\\Models\\File $file) {\n $this->files[] = $file;\n }", "function ccio_appendData($filename, $data) {\r\n\t//$fh = fopen($filename, \"ab\");\r\n\t$fh = fopen($filename, \"at\");\r\n\tfwrite($fh, $data);\t\t\r\n\tfclose($fh);\r\n\treturn TRUE;\r\n}" ]
[ "0.68387425", "0.6795763", "0.6463539", "0.625914", "0.62143546", "0.6205229", "0.60764796", "0.60242474", "0.60074025", "0.59918743", "0.5954499", "0.5920251", "0.5903346", "0.58879226", "0.5856547", "0.58462167", "0.5837309", "0.58342165", "0.58211535", "0.5799153", "0.5785253", "0.5771453", "0.57664967", "0.5740676", "0.57248104", "0.5724287", "0.5723298", "0.5713905", "0.5711753", "0.56803167", "0.56593513", "0.5654206", "0.564602", "0.5640704", "0.56307167", "0.5625518", "0.55969775", "0.55933815", "0.5576364", "0.5567634", "0.55673134", "0.5560444", "0.55386126", "0.55385023", "0.5536703", "0.55361235", "0.5534485", "0.55334795", "0.5533093", "0.5494088", "0.5482394", "0.5481654", "0.54805887", "0.54774076", "0.5476665", "0.54751277", "0.5462421", "0.5458536", "0.5448463", "0.54473984", "0.54443496", "0.544318", "0.5437362", "0.5435666", "0.54314625", "0.5431152", "0.5430619", "0.543029", "0.5425655", "0.54227006", "0.5421432", "0.54183877", "0.5410376", "0.540846", "0.5402171", "0.53953105", "0.5390068", "0.5386168", "0.53766453", "0.5366556", "0.5356689", "0.53508425", "0.53497124", "0.53478944", "0.5343358", "0.5343342", "0.53426003", "0.5339276", "0.5336152", "0.53321785", "0.5331011", "0.53279823", "0.53264886", "0.53255796", "0.5320439", "0.531429", "0.53134704", "0.5312961", "0.5310733", "0.53089", "0.5304943" ]
0.0
-1
Get an UUID generate by the database
function getUUID() { $sql = "select gen_random_uuid() as uuid"; $data = $this->lireParam($sql); return $data["uuid"]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUuid();", "static public function mdlGeneraUUID(){\n\n\t\t$stmt = Conexion::conectar()->prepare(\"select uuid() as generaUUID\");\n\n\t\t$stmt -> execute();\n\n\t\treturn $stmt -> fetch();\n\n\t\t$stmt -> close();\n\n\t\t$stmt = null;\n\t}", "public function getUuid(): string;", "public static function uuid() {}", "public function uuid();", "public function uuid();", "public function uuid() : Uuid;", "function uuid(): string\n {\n return \\Midnite81\\Core\\Functions\\uuid();\n }", "public function get_uuid() \n {\n return $this->uuid;\n }", "public function getUuid(): string\n {\n return $this->uuid;\n }", "public function get() {\n if (function_exists('com_create_guid')){\n return com_create_guid();\n }else{\n mt_srand((double)microtime()*10000);//optional for php 4.2.0 and up.\n $charid = strtoupper(md5(uniqid(rand(), true)));\n $hyphen = chr(45);// \"-\"\n $uuid = //chr(123)// \"{\"\n substr($charid, 0, 8).$hyphen\n .substr($charid, 8, 4).$hyphen\n .substr($charid,12, 4).$hyphen\n .substr($charid,16, 4).$hyphen\n .substr($charid,20,12);\n //.chr(125);// \"}\"\n return $uuid;\n } \n }", "protected function generateUUID(): string {\n return Str::uuid();\n }", "public function getUUID()\n {\n return $this->uUID;\n }", "public function getUUID()\n {\n return $this->uUID;\n }", "public function getUUID()\n {\n return $this->uUID;\n }", "public static function getUuid(): string {\n mt_srand((double)microtime() * 10000);\n $charid = strtolower(md5(uniqid(rand(), TRUE)));\n $hyphen = chr(45);\n $uuid = substr($charid, 0, 8) . $hyphen\n . substr($charid, 8, 4) . $hyphen\n . substr($charid, 12, 4) . $hyphen\n . substr($charid, 16, 4) . $hyphen\n . substr($charid, 20, 12);\n return $uuid;\n }", "public function generateUUID()\n {\n // See https://github.com/ramsey/uuid/wiki/Ramsey%5CUuid-Cookbook\n if ($keyGenerator = $this->mapping->getKeyGenerator()) {\n switch ($keyGenerator) {\n case \"uuid-v1\":\n return Uuid::uuid1();\n case \"uuid-v4\":\n return Uuid::uuid4();\n /*\n case \"uuid-v3\":\n return Uuid::uuid3(Uuid::NAMESPACE_DNS, 'php.net');\n case \"uuid-v5\":\n return Uuid::uuid5(Uuid::NAMESPACE_DNS, 'php.net');\n */\n }\n }\n return Uuid::uuid4();\n }", "public function generateUuid()\n {\n return (new Generator())->uuid();\n }", "public function getUuid()\n {\n return $this->uuid;\n }", "public function getUuid()\n {\n return $this->uuid;\n }", "public function getUuid()\n {\n return $this->uuid;\n }", "public static function getUuid(): string\n {\n return vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex(random_bytes(16)), 4));\n }", "public function generateUuid()\n {\n do {\n $uuid = str_uuid();\n } while ($this->countByUuid($uuid) > 0);\n\n return $uuid;\n }", "public function getUuid() {\n return $this->uuid;\n }", "public function getUuid()\n {\n return !empty($this->uuid) ? $this->uuid : '';\n }", "function uuid($dbc)\n{\n\tlist($uuid) = mysqli_fetch_array(mysqli_query($dbc, \"SELECT UUID()\"));\n\t\n\tif($uuid)\n\t{\n\t\treturn $uuid;\n\t}else{\n\t\treturn false;\n\t}\n\t\n}", "public static function getUUID()\n {\n return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x',\n // 32 bits for \"time_low\"\n mt_rand(0, 0xffff), mt_rand(0, 0xffff),\n\n // 16 bits for \"time_mid\"\n mt_rand(0, 0xffff),\n\n // 16 bits for \"time_hi_and_version\",\n // four most significant bits holds version number 4\n mt_rand(0, 0x0fff) | 0x4000,\n\n // 16 bits, 8 bits for \"clk_seq_hi_res\",\n // 8 bits for \"clk_seq_low\",\n // two most significant bits holds zero and one for variant DCE1.1\n mt_rand(0, 0x3fff) | 0x8000,\n\n // 48 bits for \"node\"\n mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)\n );\n }", "public function getUUID()\n {\n return $this->getPointer();\n }", "public static function uuid()\n {\n return Uuid::uuid5(Uuid::NAMESPACE_DNS, self::uniqueKey());\n }", "public static function timeuuid() {}", "public function getUuid()\n {\n return isset($this->source['uuid']) ? $this->source['uuid'] : null;\n }", "public static function getUuid() {\n return sprintf(\n \"%04x%04x-%04x-%04x-%04x-%04x%04x%04x\",\n mt_rand(0, 0xffff),\n mt_rand(0, 0xffff),\n mt_rand(0, 0xffff),\n mt_rand(0, 0x0fff) | 0x4000,\n mt_rand(0, 0x3fff) | 0x8000,\n mt_rand(0, 0xffff),\n mt_rand(0, 0xffff),\n mt_rand(0, 0xffff)\n );\n }", "public function uuid(){ }", "function Uuid()\n {\n $unid = uniqid() . str_replace('-', '', Guid());\n $uuid = substr($unid, 0, 8) . '-' . substr($unid, 8, 4) . '-' . substr($unid, 12, 4) . '-' . substr($unid, 16, 4) . '-' . substr($unid, 20, 12);\n return $uuid;\n }", "private function uuid()\n {\n $data = random_bytes(16);\n $data[6] = chr(ord($data[6]) & 0x0f | 0x40);\n $data[8] = chr(ord($data[8]) & 0x3f | 0x80);\n return vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex($data), 4));\n }", "public static function uuid() {\n if (!function_exists('uuid_create'))\n return false;\n\n uuid_create(&$context);\n\n uuid_make($context, UUID_MAKE_V4);\n uuid_export($context, UUID_FMT_STR, &$uuid);\n return trim($uuid);\n }", "private function getNewUuid() {\n return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x',\n mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ),\n mt_rand( 0, 0x0fff ) | 0x4000,\n mt_rand( 0, 0x3fff ) | 0x8000,\n mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ) );\n }", "private function uuid(){\n return uniqid('');\n }", "public static function getGuid()\n {\n $data = self::generateCryptoKey(16);\n\n $data[6] = chr(ord($data[6]) & 0x0f | 0x40); // set version to 0100b = 4\n $data[8] = chr(ord($data[8]) & 0x3f | 0x80); // set bits 6-7 to 10\n\n return vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex($data), 4));\n }", "public function generateUuid() {\n\t\tif (is_readable(self::UUID_SOURCE)) {\n\t\t\t$uuid = trim(file_get_contents(self::UUID_SOURCE));\n\t\t} elseif (function_exists('mt_rand')) {\n\t\t\t/**\n\t\t\t * Taken from stackoverflow answer, possibly not the fastest or\n\t\t\t * strictly standards compliant\n\t\t\t * @link http://stackoverflow.com/a/2040279\n\t\t\t */\n\t\t\t$uuid = sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x',\n\t\t\t\t// 32 bits for \"time_low\"\n\t\t\t\tmt_rand(0, 0xffff), mt_rand(0, 0xffff),\n\t\t\t\t// 16 bits for \"time_mid\"\n\t\t\t\tmt_rand(0, 0xffff),\n\t\t\t\t// 16 bits for \"time_hi_and_version\",\n\t\t\t\t// four most significant bits holds version number 4\n\t\t\t\tmt_rand(0, 0x0fff) | 0x4000,\n\t\t\t\t// 16 bits, 8 bits for \"clk_seq_hi_res\",\n\t\t\t\t// 8 bits for \"clk_seq_low\",\n\t\t\t\t// two most significant bits holds zero and one for variant DCE1.1\n\t\t\t\tmt_rand(0, 0x3fff) | 0x8000,\n\t\t\t\t// 48 bits for \"node\"\n\t\t\t\tmt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)\n\t\t\t);\n\t\t} else {\n\t\t\t// chosen by dice roll, guaranteed to be random\n\t\t\t$uuid = '4';\n\t\t}\n\t\treturn $uuid;\n\t}", "function v4(): string\n{\n return Uuid::uuid4()->toString();\n}", "function get_uuid() {\n\t\t$t = explode(\" \", microtime());\n\t\treturn sprintf('%04x%04x-%04x-%08s-%08s-%04s',\n\t\tmt_rand(0, 0xffff), mt_rand(0, 0xffff), \n\t\tmt_rand(1, 0xffff), mt_rand(1, 0xffff), \n\t\tgetmypid(),\n\t\tsubstr(\"00000000\" . dechex($t[1]), -8), // get 8HEX of unixtime\n\t\tsubstr(\"0000\" . dechex(round($t[0] * 65536)), -4) // get 4HEX of microtime\n\t\t);\n\t}", "public function generateUuid()\n {\n return Uuid::uuid5(Uuid::NAMESPACE_DNS, md5(uniqid(date('d-m-Y H:i:s'), true)))->toString();\n }", "public function generateUUID(): string\n {\n return $this->stringHelper->generateUUID($this->urlInterface->getBaseUrl());\n }", "public function getUuid()\n {\n if ($this->_uuid !== null) {\n return $this->_uuid;\n }\n\n if ($uuid = Yii::$app->request->cookies->getValue($this->cookieName)) {\n $this->_uuid = (string) $uuid;\n return $this->_uuid;\n }\n\n $uuid = NumberHelper::getGuid();\n $this->setUuid($uuid);\n return $this->_uuid;\n }", "public static function uuid() {\n\t\t$data = random_bytes(15);\n\n\t\t$data[6] = chr(ord($data[6]) & 0x0f | 0x40); // set version to 0100\n\t\t$data[8] = chr(ord($data[8]) & 0x3f | 0x80); // set bits 6-7 to 10\n\n\t\treturn vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex($data), 4));\n\t}", "protected function get_issue_uuid() {\n global $CFG;\n require_once($CFG->libdir . '/horde/framework/Horde/Support/Uuid.php');\n return (string)new Horde_Support_Uuid();\n }", "private function gen_uuid()\n {\n return sprintf(\n '%04x%04x-%04x-%04x-%04x-%04x%04x%04x',\n // 32 bits for \"time_low\"\n mt_rand(0, 0xFFFF),\n mt_rand(0, 0xFFFF),\n\n // 16 bits for \"time_mid\"\n mt_rand(0, 0xFFFF),\n\n // 16 bits for \"time_hi_and_version\",\n // four most significant bits holds version number 4\n mt_rand(0, 0x0FFF) | 0x4000,\n\n // 16 bits, 8 bits for \"clk_seq_hi_res\",\n // 8 bits for \"clk_seq_low\",\n // two most significant bits holds zero and one for variant DCE1.1\n mt_rand(0, 0x3FFF) | 0x8000,\n\n // 48 bits for \"node\"\n mt_rand(0, 0xFFFF),\n mt_rand(0, 0xFFFF),\n mt_rand(0, 0xFFFF)\n );\n }", "public static function uuid()\n {\n return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x', // 32 bits for \"time_low\"\n mt_rand(0, 0xffff), mt_rand(0, 0xffff), // 16 bits for \"time_mid\"\n mt_rand(0, 0xffff), // 16 bits for \"time_hi_and_version\",\n // four most significant bits holds version number 4\n mt_rand(0, 0x0fff) | 0x4000, // 16 bits, 8 bits for \"clk_seq_hi_res\",\n // 8 bits for \"clk_seq_low\",\n // two most significant bits holds zero and one for variant DCE1.1\n mt_rand(0, 0x3fff) | 0x8000, // 48 bits for \"node\"\n mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff));\n }", "private function uuid() {\n\t\treturn sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x',\n\t\t\tmt_rand(0, 0xffff), mt_rand(0, 0xffff),\n\t\t\tmt_rand(0, 0xffff),\n\t\t\tmt_rand(0, 0x0fff) | 0x4000,\n\t\t\tmt_rand(0, 0x3fff) | 0x8000,\n\t\t\tmt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)\n\t\t);\n\t}", "public function getGUID(){\n if (function_exists('com_create_guid')){\n return com_create_guid();\n }else{\n mt_srand((double)microtime()*10000);//optional for php 4.2.0 and up.\n $charid = strtoupper(md5(uniqid(rand(), true)));\n $hyphen = chr(45);// \"-\"\n $uuid = chr(123)// \"{\"\n .substr($charid, 0, 8).$hyphen\n .substr($charid, 8, 4).$hyphen\n .substr($charid,12, 4).$hyphen\n .substr($charid,16, 4).$hyphen\n .substr($charid,20,12)\n .chr(125);// \"}\"\n return $uuid;\n }\n}", "function gen_uuid() {\n return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x',\n // 32 bits for \"time_low\"\n mt_rand(0, 0xffff), mt_rand(0, 0xffff),\n // 16 bits for \"time_mid\"\n mt_rand(0, 0xffff),\n // 16 bits for \"time_hi_and_version\",\n // four most significant bits holds version number 4\n mt_rand(0, 0x0fff) | 0x4000,\n // 16 bits, 8 bits for \"clk_seq_hi_res\",\n // 8 bits for \"clk_seq_low\",\n // two most significant bits holds zero and one for variant DCE1.1\n mt_rand(0, 0x3fff) | 0x8000,\n // 48 bits for \"node\"\n mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)\n );\n }", "public function gen_uuid(): string\n\t{\n\t\treturn sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x',\n\t\t\t// 32 bits for \"time_low\"\n\t\t\tmt_rand(0, 0xffff), mt_rand(0, 0xffff),\n\t\t\t\n\t\t\t// 16 bits for \"time_mid\"\n\t\t\tmt_rand(0, 0xffff),\n\t\t\t\n\t\t\t// 16 bits for \"time_hi_and_version\",\n\t\t\t// four most significant bits holds version number 4\n\t\t\tmt_rand(0, 0x0fff) | 0x4000,\n\t\t\t\n\t\t\t// 16 bits, 8 bits for \"clk_seq_hi_res\",\n\t\t\t// 8 bits for \"clk_seq_low\",\n\t\t\t// two most significant bits holds zero and one for variant DCE1.1\n\t\t\tmt_rand(0, 0x3fff) | 0x8000,\n\t\t\t\n\t\t\t// 48 bits for \"node\"\n\t\t\tmt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)\n\t\t);\n\t}", "public static function generateUUID()\n {\n return sprintf(\n '%04x%04x-%04x-%04x-%04x-%04x%04x%04x',\n // 32 bits for \"time_low\"\n mt_rand(0, 0xffff), mt_rand(0, 0xffff),\n // 16 bits for \"time_mid\"\n mt_rand(0, 0xffff),\n // 16 bits for \"time_hi_and_version\",\n // four most significant bits holds version number 4\n mt_rand(0, 0x0fff) | 0x4000,\n // 16 bits, 8 bits for \"clk_seq_hi_res\",\n // 8 bits for \"clk_seq_low\",\n // two most significant bits holds zero and one for variant DCE1.1\n mt_rand(0, 0x3fff) | 0x8000,\n // 48 bits for \"node\"\n mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)\n );\n }", "public static function generateUUID()\n {\n return sprintf(\n '%04x%04x-%04x-%04x-%04x-%04x%04x%04x',\n // 32 bits for \"time_low\"\n mt_rand(0, 0xffff), mt_rand(0, 0xffff),\n // 16 bits for \"time_mid\"\n mt_rand(0, 0xffff),\n // 16 bits for \"time_hi_and_version\",\n // four most significant bits holds version number 4\n mt_rand(0, 0x0fff) | 0x4000,\n // 16 bits, 8 bits for \"clk_seq_hi_res\",\n // 8 bits for \"clk_seq_low\",\n // two most significant bits holds zero and one for variant DCE1.1\n mt_rand(0, 0x3fff) | 0x8000,\n // 48 bits for \"node\"\n mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)\n );\n }", "function gen_uuid() {\n return sprintf( '%04x%04x-%04x-%04x-%04x-%04x%04x%04x',\n // 32 bits for \"time_low\"\n mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ),\n\n // 16 bits for \"time_mid\"\n mt_rand( 0, 0xffff ),\n\n // 16 bits for \"time_hi_and_version\",\n // four most significant bits holds version number 4\n mt_rand( 0, 0x0fff ) | 0x4000,\n\n // 16 bits, 8 bits for \"clk_seq_hi_res\",\n // 8 bits for \"clk_seq_low\",\n // two most significant bits holds zero and one for variant DCE1.1\n mt_rand( 0, 0x3fff ) | 0x8000,\n\n // 48 bits for \"node\"\n mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff )\n );\n }", "private function uuid(): string\n {\n return implode('-', [\n bin2hex(random_bytes(4)),\n bin2hex(random_bytes(2)),\n bin2hex(chr((ord(random_bytes(1)) & 0x0F) | 0x40)) . bin2hex(random_bytes(1)),\n bin2hex(chr((ord(random_bytes(1)) & 0x3F) | 0x80)) . bin2hex(random_bytes(1)),\n bin2hex(random_bytes(6)),\n ]);\n }", "public function getUuid() {\n\t\treturn $this->Persistence_Object_Identifier;\n\t}", "public function getUuid() {\n\t\treturn $this->Persistence_Object_Identifier;\n\t}", "public function generateUUID() {\n\n\t\t$uuidtest = sprintf ( '%04x%04x%04x%04x%04x%04x%04x%04x', \n\t\t\t\t// 32 bits for \"time_low\"\n\t\t\t\tmt_rand ( 0, 0xffff ), mt_rand ( 0, 0xffff ), \n\t\t\t\t\n\t\t\t\t// 16 bits for \"time_mid\"\n\t\t\t\tmt_rand ( 0, 0xffff ), \n\t\t\t\t\n\t\t\t\t// 16 bits for \"time_hi_and_version\",\n\t\t\t\t// four most significant bits holds version number 4\n\t\t\t\tmt_rand ( 0, 0x0fff ) | 0x4000, \n\t\t\t\t\n\t\t\t\t// 16 bits, 8 bits for \"clk_seq_hi_res\",\n\t\t\t\t// 8 bits for \"clk_seq_low\",\n\t\t\t\t// two most significant bits holds zero and one for variant DCE1.1\n\t\t\t\tmt_rand ( 0, 0x3fff ) | 0x8000, \n\t\t\t\t\n\t\t\t\t// 48 bits for \"node\"\n\t\t\t\tmt_rand ( 0, 0xffff ), mt_rand ( 0, 0xffff ), mt_rand ( 0, 0xffff ) );\n\t\t\n\t\treturn $uuidtest;\n\t\n\t}", "public static function getNewGuid()\n {\n return sprintf('%04X%04X-%04X-%04X-%04X-%04X%04X%04X',\n mt_rand(0, 65535),\n mt_rand(0, 65535),\n mt_rand(0, 65535),\n mt_rand(16384, 20479),\n mt_rand(32768, 49151),\n mt_rand(0, 65535),\n mt_rand(0, 65535),\n mt_rand(0, 65535)\n );\n }", "public static function GenerateUuid() {\n return sprintf( '%04x%04x-%04x-%04x-%04x-%04x%04x%04x',\n // 32 bits for \"time_low\"\n mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ),\n\n // 16 bits for \"time_mid\"\n mt_rand( 0, 0xffff ),\n\n // 16 bits for \"time_hi_and_version\",\n // four most significant bits holds version number 4\n mt_rand( 0, 0x0fff ) | 0x4000,\n\n // 16 bits, 8 bits for \"clk_seq_hi_res\",\n // 8 bits for \"clk_seq_low\",\n // two most significant bits holds zero and one for variant DCE1.1\n mt_rand( 0, 0x3fff ) | 0x8000,\n\n // 48 bits for \"node\"\n mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff )\n );\n }", "public function getId() : Uuid;", "function gen_uuid() \n\t{\n\t\treturn sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x',\n\t\t// 32 bits for \"time_low\"\n\t\tmt_rand(0, 0xffff), mt_rand(0, 0xffff),\n\t\t// 16 bits for \"time_mid\"\n\t\tmt_rand(0, 0xffff),\n\t\t// 16 bits for \"time_hi_and_version\",\n\t\t// four most significant bits holds version number 4\n\t\tmt_rand(0, 0x0fff) | 0x4000,\n\t\t// 16 bits, 8 bits for \"clk_seq_hi_res\",\n\t\t// 8 bits for \"clk_seq_low\",\n\t\t// two most significant bits holds zero and one for variant DCE1.1\n\t\tmt_rand(0, 0x3fff) | 0x8000,\n\t\t// 48 bits for \"node\"\n\t\tmt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)\n\t\t);\n\t}", "function GenerateUuid() \n{ \n $s = strtoupper(md5(uniqid(rand(),true))); \n $uuid = \n substr($s, 0, 8) . '-' . \n substr($s, 8, 4) . '-' . \n substr($s, 12, 4). '-' . \n substr($s, 16, 4). '-' . \n substr($s, 20);\n \n return $uuid;\n}", "function getGUID(){\n if (function_exists('com_create_guid')){\n return com_create_guid();\n }else{\n mt_srand((double)microtime()*10000);//optional for php 4.2.0 and up.\n $charid = strtoupper(md5(uniqid(rand(), true)));\n $hyphen = chr(45);// \"-\"\n $uuid = chr(123)// \"{\"\n .substr($charid, 0, 8).$hyphen\n .substr($charid, 8, 4).$hyphen\n .substr($charid,12, 4).$hyphen\n .substr($charid,16, 4).$hyphen\n .substr($charid,20,12)\n .chr(125);// \"}\"\n return $uuid;\n }\n}", "private static function gen_uuid() {\n\t\t/*\n\t\t * Generates a v4 UUID\n\t\t * \n\t\t */\n\t\treturn sprintf( '%04x%04x-%04x-%04x-%04x-%04x%04x%04x',\n\t\t\t// 32 bits for \"time_low\"\n\t\t\tmt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ),\n\n\t\t\t// 16 bits for \"time_mid\"\n\t\t\tmt_rand( 0, 0xffff ),\n\n\t\t\t// 16 bits for \"time_hi_and_version\",\n\t\t\t// four most significant bits holds version number 4\n\t\t\tmt_rand( 0, 0x0fff ) | 0x4000,\n\n\t\t\t// 16 bits, 8 bits for \"clk_seq_hi_res\",\n\t\t\t// 8 bits for \"clk_seq_low\",\n\t\t\t// two most significant bits holds zero and one for variant DCE1.1\n\t\t\tmt_rand( 0, 0x3fff ) | 0x8000,\n\n\t\t\t// 48 bits for \"node\"\n\t\t\tmt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff )\n\t\t);\n\t}", "public function generateUuidV4()\n {\n $bytes = Yii::$app->security->generateRandomKey(16);\n $bytes[6] = chr((ord($bytes[6]) & 0x0f) | 0x40);\n $bytes[8] = chr((ord($bytes[8]) & 0x3f) | 0x80);\n $chunks = str_split(bin2hex($bytes), 4);\n\n return \"{$chunks[0]}{$chunks[1]}-{$chunks[2]}-{$chunks[3]}-{$chunks[4]}-{$chunks[5]}{$chunks[6]}{$chunks[7]}\";\n }", "static function GUID()\n {\n if (function_exists('com_create_guid')) {\n return com_create_guid();\n } else {\n mt_srand((double)microtime()*10000);//optional for php 4.2.0 and up.\n $charid = strtoupper(md5(uniqid(rand(), true)));\n $hyphen = chr(45);// \"-\"\n //$uuid = chr(123)// \"{\"\n $uuid = \"\"\n .substr($charid, 0, 8).$hyphen\n .substr($charid, 8, 4).$hyphen\n .substr($charid, 12, 4).$hyphen\n .substr($charid, 16, 4).$hyphen\n .substr($charid, 20, 12);\n //.chr(125);// \"}\"\n return $uuid;\n }\n }", "protected function getUid() {\n\t\treturn UUIDUtil::getUUID();\n\t}", "static function uuid() \n\t\t{\n\t\t\t// The field names refer to RFC 4122 section 4.1.2\n\t\t\t\n\t\t\treturn sprintf('%04x%04x-%04x-%03x4-%04x-%04x%04x%04x',\n\t\t\t mt_rand(0, 65535), mt_rand(0, 65535), // 32 bits for \"time_low\"\n\t\t\t mt_rand(0, 65535), // 16 bits for \"time_mid\"\n\t\t\t mt_rand(0, 4095), // 12 bits before the 0100 of (version) 4 for \"time_hi_and_version\"\n\t\t\t bindec(substr_replace(sprintf('%016b', mt_rand(0, 65535)), '01', 6, 2)),\n\t\t\t // 8 bits, the last two of which (positions 6 and 7) are 01, for \"clk_seq_hi_res\"\n\t\t\t // (hence, the 2nd hex digit after the 3rd hyphen can only be 1, 5, 9 or d)\n\t\t\t // 8 bits for \"clk_seq_low\"\n\t\t\t mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535) // 48 bits for \"node\" \n\t\t\t\t); \n\t\t}", "function getGUID(){\r\n mt_srand((double)microtime()*10000);//optional for php 4.2.0 and up.\r\n $charid = strtoupper(md5(uniqid(rand(), true)));\r\n $hyphen = chr(45);\r\n $uuid = substr($charid, 0, 8).$hyphen\r\n .substr($charid, 8, 4).$hyphen\r\n .substr($charid,12, 4).$hyphen\r\n .substr($charid,16, 4).$hyphen\r\n .substr($charid,20,12);\r\n return $uuid;\r\n}", "function wp_generate_uuid4()\n {\n }", "public static function createUuid() {\n $data = \\openssl_random_pseudo_bytes(16);\n\n // set the version to 0100\n $data[6] = \\chr(\\ord($data[6]) & 0x0f | 0x40);\n // set bits 6-7 to 10\n $data[8] = \\chr(\\ord($data[8]) & 0x3f | 0x80);\n\n return \\vsprintf('%s%s-%s-%s-%s-%s%s%s', \\str_split(\\bin2hex($data), 4));\n }", "public function generateUuidV4(): string\n {\n $uuid = new UuidFactory();\n\n return $uuid->uuid4()->toString();\n }", "function getGuid() {\r\n\r\n return sprintf('%04x%04x-%04x-%04x-%02x%02x-%04x%04x%04x',\r\n mt_rand(0, 65535),\r\n mt_rand(0, 65535), // 32 bits for \"time_low\"\r\n mt_rand(0, 65535), // 16 bits for \"time_mid\"\r\n mt_rand(0, 4096) + 16384, // 16 bits for \"time_hi_and_version\", with\r\n // the most significant 4 bits being 0100\r\n // to indicate randomly generated version\r\n mt_rand(0, 64) + 128, // 8 bits for \"clock_seq_hi\", with\r\n // the most significant 2 bits being 10,\r\n // required by version 4 GUIDs.\r\n mt_rand(0, 256), // 8 bits for \"clock_seq_low\"\r\n mt_rand(0, 65535), // 16 bits for \"node 0\" and \"node 1\"\r\n mt_rand(0, 65535), // 16 bits for \"node 2\" and \"node 3\"\r\n mt_rand(0, 65535) // 16 bits for \"node 4\" and \"node 5\"\r\n );\r\n\r\n }", "function uuid()\n{\n // The field names refer to RFC 4122 section 4.1.2\n return sprintf('%04x%04x-%04x-%03x4-%04x-%04x%04x%04x',\n mt_rand(0, 65535), mt_rand(0, 65535), // 32 bits for \"time_low\"\n mt_rand(0, 65535), // 16 bits for \"time_mid\"\n mt_rand(0, 4095), // 12 bits before the 0100 of (version) 4 for \"time_hi_and_version\"\n bindec(substr_replace(sprintf('%016b', mt_rand(0, 65535)), '01', 6, 2)),\n // 8 bits, the last two of which (positions 6 and 7) are 01, for \"clk_seq_hi_res\"\n // (hence, the 2nd hex digit after the 3rd hyphen can only be 1, 5, 9 or d)\n // 8 bits for \"clk_seq_low\"\n mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535) // 48 bits for \"node\"\n );\n}", "private function createGuid()\n {\n // section 127-0-1-1--751a8510:1443b2e74af:-8000:0000000000000C14 begin\n static $guid = '';\n $uid = uniqid(\"\", true);\n $data = mt_rand();\n $data .= isset($_SERVER['REQUEST_TIME']) ? $_SERVER['REQUEST_TIME'] : mt_rand();\n $data .= isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : mt_rand();\n $data .= isset($_SERVER['LOCAL_ADDR']) ? $_SERVER['LOCAL_ADDR'] : mt_rand();\n $data .= isset($_SERVER['LOCAL_PORT']) ? $_SERVER['LOCAL_PORT'] : mt_rand();\n $data .= isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : mt_rand();\n $data .= isset($_SERVER['REMOTE_PORT']) ? $_SERVER['REMOTE_PORT'] : mt_rand();\n $hash = strtoupper(hash('ripemd128', $uid . $guid . md5($data)));\n $guid = mt_rand(1,10) . \n substr($hash, 0, 8) . \n mt_rand(1,10) .\n substr($hash, 8, 4) .\n mt_rand(1,10) .\n substr($hash, 12, 4) .\n mt_rand(1,10) .\n substr($hash, 16, 4) .\n mt_rand(1,10) .\n substr($hash, 20, 12) .\n mt_rand(1,10);\n return $guid; \n // section 127-0-1-1--751a8510:1443b2e74af:-8000:0000000000000C14 end\n }", "public static function generateUuid()\n {\n\n return sprintf('%04x%04x-%04x-%03x4-%04x-%04x%04x%04x',\n mt_rand(0, 65535), mt_rand(0, 65535), // 32 bits for \"time_low\"\n mt_rand(0, 65535), // 16 bits for \"time_mid\"\n mt_rand(0, 4095), // 12 bits before the 0100 of (version) 4 for \"time_hi_and_version\"\n bindec(substr_replace(sprintf('%016b', mt_rand(0, 65535)), '01', 6, 2)),\n // 8 bits, the last two of which (positions 6 and 7) are 01, for \"clk_seq_hi_res\"\n // (hence, the 2nd hex digit after the 3rd hyphen can only be 1, 5, 9 or d)\n // 8 bits for \"clk_seq_low\"\n mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535) // 48 bits for \"node\" \n ); \n }", "function getDatabaseId();", "public function uuid($uuid = null);", "public function generateNewId()\n {\n return Uuid::uuid4();\n }", "public static function getGuid()\n {\n return self::$guid;\n }", "public function uuid($version = 5)\n\t{\n\t\trequire_once(dirname(__FILE__) . '/uuid.php');\n\t\treturn UUID::generate($version, UUID::URL, $this->__to_String());\n\t}", "function gaGenerateUUID() {\n\treturn sprintf( '%04x%04x-%04x-%04x-%04x-%04x%04x%04x',\n\t\tmt_rand(0, 0xffff), mt_rand(0, 0xffff), //32 bits for \"time_low\"\n\t\tmt_rand(0, 0xffff), //16 bits for \"time_mid\"\n\t\tmt_rand(0, 0x0fff) | 0x4000, //16 bits for \"time_hi_and_version\", Four most significant bits holds version number 4\n\t\tmt_rand(0, 0x3fff) | 0x8000, //16 bits, 8 bits for \"clk_seq_hi_res\", 8 bits for \"clk_seq_low\", Two most significant bits holds zero and one for variant DCE1.1\n\t\tmt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff) //48 bits for \"node\"\n\t);\n}", "private function generateId()\n {\n $startHex = dechex((int)$this->startTime);\n $uuid = bin2hex(random_bytes(12));\n\n return \"1-{$startHex}-{$uuid}\";\n }", "public function uuid4()\n {\n $bytes = self::generateBytes(16);\n\n // When converting the bytes to hex, it turns into a 32-character\n // hexadecimal string that looks a lot like an MD5 hash, so at this\n // point, we can just pass it to uuidFromHashedName.\n $hex = bin2hex($bytes);\n\n return self::uuidFromHashedName($hex, 4);\n }", "function GenerateUUID()\r\r\n{\r\r\n return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x',\r\r\n randword(), randword(),\r\r\n randword(),\r\r\n 0x4000 | randword(0x0FFF),\r\r\n 0x8000 | randword(0x3FFF),\r\r\n randword(), randword(), randword());\r\r\n}", "public function generatePasswordRecoveryId(): string\n {\n $passwordRecoveryId = (string) $this->_getPasswordBehavior()->generatePasswordRecoveryId();\n return $passwordRecoveryId;\n }", "public static function v4()\n {\n return self::_getUUID()->uuidV4();\n }", "public function generarCustomID(){\n return md5(\"$this->id $this->updated_at\");\n }", "private function generateUID(){\n if(function_exists(\"random_bytes\")){\n return md5(bin2hex(random_bytes(16)) . time());\n } else if(function_exists(\"openssl_random_pseudo_bytes\")){\n return md5(bin2hex(openssl_random_pseudo_bytes(16)) . time());\n }\n return md5(uniqid() . time());\n }", "public function uniqueId(): string\n {\n return strval($this->user->id);\n }", "public static function makeGuid()\n {\n if (function_exists('com_create_guid')) {\n return strtolower(trim(com_create_guid(), '{}'));\n } else {\n $charid = strtolower(md5(uniqid(rand(), true)));\n $hyphen = chr(45);\n $uuid = substr($charid, 0, 8) . $hyphen\n . substr($charid, 8, 4) . $hyphen\n . substr($charid, 12, 4) . $hyphen\n . substr($charid, 16, 4) . $hyphen\n . substr($charid, 20, 12);\n\n return $uuid;\n }\n }", "public function getId()\n {\n if (!$this->id) {\n $this->id = md5(uniqid(rand(), true));\n }\n return $this->id;\n }", "private static function makeRpcUid()\n {\n return bin2hex(openssl_random_pseudo_bytes(90));\n }", "public function canonical(): string\n {\n return $this->_uuid;\n }", "public static function createGUID() {\r\n if (function_exists('com_create_guid')) {\r\n return substr(com_create_guid(), 1, 36);\r\n }\r\n else {\r\n mt_srand((double) microtime() * 10000);\r\n $charid = strtoupper(md5(uniqid(rand(), true)));\r\n $hyphen = chr(45);\r\n $uuid = substr($charid, 0, 8) . $hyphen .\r\n substr($charid, 8, 4) . $hyphen .\r\n substr($charid, 12, 4) . $hyphen .\r\n substr($charid, 16, 4) . $hyphen .\r\n substr($charid, 20, 12);\r\n\r\n return $uuid;\r\n }\r\n }", "public function obtenerId() {}", "public function generateGuid() {\n return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x',\n mt_rand(0, 65535),\n mt_rand(0, 65535),\n mt_rand(0, 65535),\n mt_rand(16384, 20479),\n mt_rand(32768, 49151),\n mt_rand(0, 65535),\n mt_rand(0, 65535),\n mt_rand(0, 65535));\n }" ]
[ "0.78176945", "0.7794191", "0.7655313", "0.75513095", "0.75204176", "0.75204176", "0.75096214", "0.7442696", "0.7434179", "0.7360099", "0.73548156", "0.73295367", "0.7257766", "0.7257766", "0.7257766", "0.72401714", "0.72078454", "0.7187506", "0.71457696", "0.71457696", "0.71457696", "0.7129571", "0.70932484", "0.70877934", "0.70450836", "0.70300555", "0.69989043", "0.69897133", "0.69853365", "0.6981572", "0.6971688", "0.6959498", "0.69525534", "0.69519764", "0.6942336", "0.6938713", "0.69224435", "0.69075215", "0.6900367", "0.6897449", "0.6876675", "0.6836414", "0.6813885", "0.6811594", "0.6801553", "0.6788547", "0.67809", "0.67698807", "0.67684805", "0.6760202", "0.675385", "0.6748529", "0.6747899", "0.6737342", "0.6737342", "0.67224085", "0.67170835", "0.66872805", "0.66872805", "0.6683627", "0.6670594", "0.6643537", "0.66396827", "0.6622002", "0.6619792", "0.66189206", "0.66146797", "0.66138756", "0.6606725", "0.6564948", "0.6564495", "0.6554222", "0.6533494", "0.6528872", "0.6522323", "0.6502507", "0.6501518", "0.6492764", "0.64906245", "0.6484743", "0.64751077", "0.6466712", "0.6463145", "0.64457315", "0.6428964", "0.64202744", "0.64039564", "0.63996834", "0.63857085", "0.63829184", "0.6378622", "0.6362968", "0.63626397", "0.63607204", "0.6345898", "0.63403624", "0.6333399", "0.63214666", "0.63143617", "0.6305061" ]
0.82665545
0
Get security alerts count.
protected function getSecurityCount() { $count = App\Log::getLogs('access_for_admin', 'oneDay', true); $count += App\Log::getLogs('access_to_record', 'oneDay', true); $count += App\Log::getLogs('access_for_api', 'oneDay', true); return $count + App\Log::getLogs('access_for_user', 'oneDay', true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNumAlerts()\n\t{\n\t\t$num = $this->db->simple_select('alerts', 'COUNT(id) AS count', 'uid = '.(int) $this->mybb->user['uid']);\n\t\treturn (int) $this->db->fetch_field($num, 'count');\n\t}", "public function countEnabledAlerts() : int\n {\n /** @var QueryBuilder $qb */\n $qb = $this->createQueryBuilder(self::ALIAS);\n $qb->select($qb->expr()->countDistinct(static::ALIAS));\n\n $this->enabledOnly($qb);\n\n $query = $qb->getQuery();\n $query->useQueryCache(true);\n\n return $query->getSingleScalarResult();\n }", "public function getNumUnreadAlerts()\n\t{\n\t\t$num = $this->db->simple_select('alerts', 'COUNT(id) AS count', 'uid = '.(int) $this->mybb->user['uid'].' AND unread = 1');\n\t\treturn (int) $this->db->fetch_field($num, 'count');\n\t}", "public function getAlertCountValue(): int\n {\n $absoluteFile = $this->serviceContainer->get('kernel')->getProjectDir().$this->filePath.$this->fileName;\n\n if (!is_file($absoluteFile)) {\n return 0;\n }\n\n $currentValue = json_decode(file_get_contents($absoluteFile), TRUE);\n\n return (isset($currentValue['alert_count']) && is_integer($currentValue['alert_count']))\n ? $currentValue['alert_count'] : 0\n ;\n }", "public function getAlertCount( $cached = true, $dbSource = DB_SLAVE ) {\n\t\treturn $this->getNotificationCount( $cached, $dbSource, EchoAttributeManager::ALERT );\n\t}", "public static function getEventsCount()\n {\n $key_all = self::REPORT_LIST.\"-global-events-all-count\";\n\n if (!Context::instance()->redis_zookeeper)\n Context::instance()->zookeeperInit();\n\n $num = Context::instance()->redis_zookeeper->get($key_all);\n\n if (!$num)\n return 0;\n\n return $num;\n }", "public function count(): int\n {\n return count($this->violations);\n }", "public function getAlertCount() {\n if (!Auth::user()) {\n abort(403);\n }\n\n $userid = Auth::user()->id;\n $toclaim = Tournament::where('concluded', 1)->pluck('id');\n $unavailableVideos = Video::where('user_id', $userid)->where('flag_removed', true)->count();\n $nowdate = date('Y.m.d.', time());\n $weeklaterdate = date('Y.m.d.', time() + 86400 * 7);\n $toconclude = Tournament::where('creator', $userid)->where('tournament_type_id', '!=', 8)\n ->where('concluded', 0)->where('date', '<', $nowdate)->count();\n $tocomplete = Tournament::where('creator', $userid)->where('incomplete', 1)->count();\n $tocardpool = Tournament::where('creator', $userid)->whereNotNull('date')->where('cardpool_id', 'unknown')\n ->where('date', '<', $weeklaterdate)->count();\n $toclaimalert = Entry::where('user', $userid)->whereIn('tournament_id', $toclaim)->whereNull('rank')->count();\n $brokenclaim = Entry::where('user', $userid)->where('rank', '>', 0)->where(function($q){\n $q->where('broken_runner', '=', 1)->orWhere('broken_corp', '=', 1);\n })->count();\n $result = [\n 'personalAlerts' => [\n 'total' => $toclaimalert + $brokenclaim + $unavailableVideos,\n 'toClaimAlert' => $toclaimalert,\n 'brokenClaimAlert' => $brokenclaim,\n 'unavailableVideos' => $unavailableVideos\n ],\n 'organizeAlert' => [\n 'total' => $tocomplete + $toconclude + $tocardpool,\n 'concludeAlert' => $toconclude,\n 'incompleteAlert' => $tocomplete,\n 'unknownCardpoolAlert' => $tocardpool\n ],\n 'profileAlerts' => Auth::user()->badges()->wherePivot('seen', 0)->count()\n ];\n\n if (Auth::user()->admin) {\n $pending = Tournament::whereNull('approved')->where('incomplete', 0)->count();\n $conflict = Tournament::where('conflict', 1)->count();\n $photo = Photo::whereNull('approved')->count();\n $result['adminAlerts'] = [\n 'total' => $pending + $conflict + $photo,\n 'pendingTournament' => $pending,\n 'conflictTournament' => $conflict,\n 'pendingPhoto' => $photo\n ];\n }\n\n return response()->json($result);\n }", "public function count()\n {\n return count($_SESSION);\n }", "public function actionGetnotifycount()\n\t{\n\t\techo CJSON::encode(array(\n\t\t\t 'status'=>'success',\n\t\t\t 'values'=>Yii::app()->user->getState(\"notify_count\")\n\t\t));\n\t\tYii::app()->end();\n\t}", "private function getCount()\n {\n $bd = Core::getBdd()->getDb();\n $u_insc_c = \"SELECT DISTINCT COUNT(u.id) as c FROM c_user u\";\n $insc = 0 + $bd->query($u_insc_c)->fetchObject()->c;\n return ($insc);\n }", "public function count()\n\t{\n\t\t$content = $this->resource->get($this->name)->getContent();\n\t\t\n\t\treturn $content['doc_count'];\n\t}", "public function api_count()\n\t{\n\t\t$referrals = $this->UserReferral->find('count',\n\t\t\tarray(\n\t\t\t\t'conditions' => array(\n\t\t\t\t\t'UserReferral.referral_id' => $this->loggedUser['User']['id'],\n\t\t\t\t\t'UserReferral.is_enabled' => true\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t\t\n\t\t\n\t\t$this->set(compact('referrals'));\n\t\t$this->set('_serialize', array('referrals'));\n\t\t\n\t\treturn $referrals;\n\t}", "public function count()\n {\n return $this->client->count($this->compile())['count'];\n }", "public static function record_count() {\n\t\tglobal $wpdb;\n\n\t\t$sql = \"SELECT COUNT(*) FROM `sd_certificates`\";\n\n\t\treturn $wpdb->get_var( $sql );\n\t}", "public function count()\n\t{\n\t\treturn count($_SESSION);\n\t}", "public function getEventsCount($timestamp = '')\n\t{\n\t\tif (!$this->isDBEngineActive)\n\t\t\treturn 0;\n\n\t\t/**\n\t\t * @global CCacheManager $CACHE_MANAGER\n\t\t * @global CDataBase $DB\n\t\t */\n\t\tglobal $DB, $CACHE_MANAGER;\n\t\t$ttl = 3600;\n\t\t$cacheId = 'sec_events_count';\n\t\t$cacheDir = '/security/events';\n\t\t\n\t\tif ($CACHE_MANAGER->read($ttl, $cacheId, $cacheDir))\n\t\t{\n\t\t\t$result = $CACHE_MANAGER->get($cacheId);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (strlen($timestamp) <= 0)\n\t\t\t{\n\t\t\t\t$days = COption::getOptionInt(\"main\", \"event_log_cleanup_days\", 7);\n\t\t\t\tif ($days > 7)\n\t\t\t\t\t$days = 7;\n\t\t\t\t$timestamp = convertTimeStamp(time()-$days*24*3600+CTimeZone::getOffset());\n\t\t\t}\n\n\t\t\t$arAudits = array(\n\t\t\t\t\"SECURITY_FILTER_SQL\",\n\t\t\t\t\"SECURITY_FILTER_XSS\",\n\t\t\t\t\"SECURITY_FILTER_XSS2\",\n\t\t\t\t\"SECURITY_FILTER_PHP\"\n\t\t\t);\n\n\t\t\t$strAuditsSql = implode(\"', '\",$arAudits);\n\n\t\t\t$strSql = \"\n\t\t\t\tSELECT COUNT(ID) AS COUNT\n\t\t\t\tFROM\n\t\t\t\t\tb_event_log\n\t\t\t\tWHERE\n\t\t\t\t\tAUDIT_TYPE_ID in ('\".$strAuditsSql.\"')\n\t\t\t\tAND\n\t\t\t\t\t(MODULE_ID = 'security' and MODULE_ID is not null)\n\t\t\t\tAND\n\t\t\t\t\tTIMESTAMP_X >= \".$DB->charToDateFunction($DB->forSQL($timestamp)).\"\n\t\t\t\";\n\n\t\t\t$res = $DB->query($strSql, false, \"FILE: \".__FILE__.\"<br>LINE: \".__LINE__);\n\n\t\t\tif ($arRes = $res->fetch())\n\t\t\t\t$result = $arRes[\"COUNT\"];\n\t\t\telse\n\t\t\t\t$result = 0;\n\n\t\t\t$CACHE_MANAGER->set($cacheId, $result);\n\t\t}\n\n\t\treturn $result;\n\t}", "public function getUnapprovedCount();", "public function getEventsCount()\n {\n return $this->count(self::EVENTS);\n }", "public function getAlertFrequency(){\n\t\treturn($this->alertFrequency);\n\t}", "public function getSubscriberCount();", "public static function count()\n {\n return count(static::$events);\n }", "public function Countpopup(){\n $popup = $this->_objectManager->create('Magestore\\Popupplus\\Model\\Popupplus')->getCollection();\n $popup_count = $popup->count();\n return $popup_count;\n }", "public function count()\n {\n return count($this->sessionData);\n }", "public function getCountUsers(){\n $connect = ConnectionManager::get('default');\n $fila = $connect->execute(\"select count(*) from Usuarios;\")->fetchAll();\n return $fila[0];\n }", "public function getCount()\n {\n return $this->data['count'];\n }", "public function count() {\n\t\treturn count($this->session);\n\t}", "public function usersAllowedCount()\n {\n $sql = \"SELECT global_value FROM lgt_license_global_table where global_key = 'concurrent_users'\";\n $allowd_count = Yii::app()->db->createCommand($sql)->queryScalar();\n return $allowd_count;\n }", "public static function getCount(){\n \t$sql = \"SELECT COUNT(*) as count FROM yy_hospital\";\n \t$res = self::getDb()->query($sql)->fetchAll();\n \t$count = $res[0]['count'];\n \treturn $count;\n }", "public function getCount()\n {\n return $this->appUser->count();\n }", "public function getCount() {\n return $this->get(self::COUNT);\n }", "public function getExcavateCount()\n {\n return $this->count(self::_EXCAVATE);\n }", "public function countAllMails()\n {\n try{\n //init the catching\n $this->exceptionThrower->start();\n $count = imap_num_msg($this->mailbox);\n $this->exceptionThrower->stop();\n return $count;\n }catch (\\Exception $e)\n {\n throw new SimpleMailReceiverException(\"Error getting the number of mails\" . $e->getMessage(), $e->getCode());\n }\n }", "function getEnrollmentCount()\r\n {\r\n $count = $this->DB->database_count('enrollment_requests');\r\n return $count;\r\n }", "public function iN_TotalVerificationRequests() {\n\t\t$q = mysqli_query($this->db, \"SELECT COUNT(*) AS verificationCount FROM i_verification_requests WHERE request_status = '0'\") or die(mysqli_error($this->db));\n\t\t$row = mysqli_fetch_array($q, MYSQLI_ASSOC);\n\t\tif ($row) {\n\t\t\treturn isset($row['verificationCount']) ? $row['verificationCount'] : '0';\n\t\t} else {return 0;}\n\t}", "public function count()\n {\n return \\count($this->events);\n }", "public function devicesAllowedCount()\n {\n $sql = \"SELECT global_value FROM lgt_license_global_table where global_key = 'allowed_devices'\";\n $devices_allowed_count = Yii::app()->db->createCommand($sql)->queryScalar();\n return $devices_allowed_count;\n }", "public function getNumberOfAccreditedStores()\r\n {\r\n $queryBuilder = $this->_em->createQueryBuilder();\r\n $queryBuilder->select(\"count(s)\")\r\n ->from(\"YilinkerCoreBundle:Store\", \"s\")\r\n ->where(\"s.accreditationLevel IS NOT NULL\");\r\n\r\n return (int) $queryBuilder->getQuery()\r\n ->useResultCache(true, 3600)\r\n ->getSingleScalarResult();\r\n }", "public function getTotalSumNbReminderSent()\n {\n $nbSent = Mage::getModel('abandonment/stats')->getResource()\n ->getSumReminderSent();\n return $nbSent;\n }", "public function numUsers(){\n $query = \"SELECT count(*) FROM final_usuario\";\n return $this->con->action($query);\n }", "public function getCount() : int\n {\n return $this->count;\n }", "public function getNotificationCount()\n\t{\n\t\treturn $this->Database->prepare(\"SELECT COUNT(*) as count FROM tl_nc_notifications\")->execute()->next()->count;\n\t}", "public function getCountEnviado() \n\t{\n\t\t$query = \"SELECT COUNT(enviado) as Enviado FROM mensagem WHERE email_origem = :email_origem AND enviado = 1\";\n\t\t$stmt = $this->db->prepare($query);\n\t\t$stmt->bindValue(':email_origem', $this->__get('email_origem'));\n\t\t$stmt->execute();\n\t\treturn $stmt->fetch(\\PDO::FETCH_ASSOC);\n\t}", "public function count() {\n\t\t\treturn (int)$this->count;\n\t\t}", "function active_notifications_count($cond=array())\r\n\t{\r\n\t\t$c_filter = '';\r\n\t\tif (is_domain_user() == true) {\r\n\t\t\t$c_filter .= ' AND TL.domain_origin = '.get_domain_auth_id();\r\n\t\t}\r\n\t\tif (valid_array($cond)) {\r\n\t\t\t$c_filter .= $this->CI->custom_db->get_custom_condition($cond);\r\n\t\t}\r\n\t\t$query = 'select count(*) as active_notification_count \r\n\t\t\t\tfrom timeline TL \r\n\t\t\t\tJOIN timeline_master_event TLE\r\n\t\t\t\tJOIN timeline_event_user_map TEU ON TEU.timeline_fk=TL.origin\r\n\t\t\t\tJOIN user U on U.user_id=TEU.user_id and TEU.user_id='.intval($this->CI->entity_user_id).'\r\n\t\t\t\twhere TL.event_origin=TLE.origin and TEU.viewed_datetime IS NULL '. $c_filter.' group by TEU.user_id';\r\n\t\t$total_records = $this->CI->db->query($query)->row_array();\r\n\t\treturn intval(@$total_records['active_notification_count']);\r\n\t}", "public function count()\n {\n return count($this->permissions);\n }", "public function getSubscribersCount();", "function getAllApplicationCount()\r\n {\r\n $db = db_connect();\r\n\r\n $sql = \"SELECT * FROM account WHERE role = :role: ORDER BY accountID DESC\";\r\n\r\n //Send query then store the results\r\n $results = $db->query($sql, [\r\n 'role' => 0\r\n ]);\r\n\r\n return $results->getNumRows();\r\n }", "public function count(): int\n {\n return count($this->resources);\n }", "public function computeCount() {\n if ($str = elis_consumer_http_request($this->url_pattern . '&rows=0', array('Accept' => 'application/json'))) {\n if ($json = json_decode($str)) {\n $this->totalCount = $json->response->numFound;\n }\n }\n return $this->totalCount;\n }", "public function countEvents()\n {\n $count = 0;\n foreach ($this->listEvents() as $dayevents) {\n $count += count($dayevents);\n }\n return $count;\n }", "public function count()\n {\n return 0;\n }", "public function count()\n {\n return 0;\n }", "public function countViolations()\n {\n return count($this->violations);\n }", "public function getUsageCount()\n {\n $today = Carbon::now('Asia/Singapore')->toDateTimeString();\n $timezone = new Carbon('Asia/Singapore');\n $last_thirty_days = $timezone->subDays(30);\n\n return count($this->appUserBlurb->where('interaction_type', 'use')->whereBetween('created_at', array($last_thirty_days->toDateTimeString(), $today))->groupBy('app_user_id')->get());\n }", "public function getCountNewReviews(): int\n {\n return ShopFeedbackEntity::find()\n ->leftJoin('user', 'user.id = shop_feedback.created_by')\n ->where([\n 'shop_feedback.shop_id' => Yii::$app->user->identity->getId(),\n 'shop_feedback.status' => ShopFeedbackEntity::STATUS_UNREAD,\n 'user.status' => UserEntity::STATUS_VERIFIED,\n 'user.is_deleted' => 0\n ])\n ->count();\n }", "public function getCount()\n\t{\n\t\treturn $this->count;\n\t}", "public function getUsersCount()\n {\n return $this->count(self::_USERS);\n }", "public function getCount()\n {\n return $this->get('Count');\n }", "public function getSysMailListCount()\n {\n return $this->count(self::_SYS_MAIL_LIST);\n }", "public function getCount() {\r\n return $this->count;\r\n }", "public function Fetch_Adjustment_Count()\n\t{\n\t\t$ext_status = Search_Status_Map('pending::external_collections::*root', $this->getStatusMap());\n\n\t\t$query = \"\n\t\t\tSELECT COUNT(*) count\n\t\t\tFROM ext_corrections ec\n\t\t\t \tJOIN application a USING(application_id)\n\t\t\t \tJOIN ext_collections USING(application_id)\n\t\t\t \tJOIN ext_collections_batch AS ecb USING(ext_collections_batch_id)\n\t\t\";\n\t\t$count = $this->db->querySingleValue($query);\n\t\treturn (int)$count;\n\t}", "public function getAbleAppCount()\n {\n return $this->get(self::_ABLE_APP_COUNT);\n }", "public function count(array $params = [])\n {\n $count = $this->get('/custom_collections/count.json', $params);\n return isset($count['count'])\n ? $count['count'] : 0;\n }", "public function getSPITFPErrorCount()\n {\n $ret = array();\n\n $payload = '';\n\n $data = $this->sendRequest(self::FUNCTION_GET_SPITFP_ERROR_COUNT, $payload);\n\n $payload = unpack('V1error_count_ack_checksum/V1error_count_message_checksum/V1error_count_frame/V1error_count_overflow', $data);\n\n $ret['error_count_ack_checksum'] = IPConnection::fixUnpackedUInt32($payload, 'error_count_ack_checksum');\n $ret['error_count_message_checksum'] = IPConnection::fixUnpackedUInt32($payload, 'error_count_message_checksum');\n $ret['error_count_frame'] = IPConnection::fixUnpackedUInt32($payload, 'error_count_frame');\n $ret['error_count_overflow'] = IPConnection::fixUnpackedUInt32($payload, 'error_count_overflow');\n\n return $ret;\n }", "function ListRecordCount() {\n\t\t$filter = $this->getSessionWhere();\n\t\tew_AddFilter($filter, $this->CurrentFilter);\n\t\t$filter = $this->ApplyUserIDFilters($filter);\n\t\t$this->Recordset_Selecting($filter);\n\t\t$sql = ew_BuildSelectSql(\"SELECT * FROM \" . $this->getSqlFrom(), $this->getSqlWhere(), \"\", \"\", \"\", $filter, \"\");\n\t\t$cnt = $this->TryGetRecordCount($sql);\n\t\tif ($cnt == -1) {\n\t\t\t$conn = &$this->Connection();\n\t\t\tif ($rs = $conn->Execute($sql)) {\n\t\t\t\t$cnt = $rs->RecordCount();\n\t\t\t\t$rs->Close();\n\t\t\t}\n\t\t}\n\t\treturn intval($cnt);\n\t}", "public function getCount() {\n\t\tif ($this->_count === null) {\n\t\t\tif ($this->name === null) {\n\t\t\t\tthrow new Exception(get_class($this).\" requires a name!\");\n\t\t\t}\n\t\t\t$this->_count = $this->getConnection()->getClient()->hlen($this->name);\n\t\t}\n\t\treturn $this->_count;\n\t}", "public function getCount()\n {\n return $this->count;\n }", "public function getCount()\n {\n return $this->count;\n }", "public function getCount()\n {\n return $this->count;\n }", "public function getCount()\n {\n return $this->count;\n }", "public function getCount()\n {\n return $this->count;\n }", "public function getCount()\n {\n return $this->count;\n }", "public function getCount()\n {\n return $this->count;\n }", "public function getCount()\n {\n return $this->count;\n }", "public function getCount()\n {\n return $this->count;\n }", "public function count(){\n return count($this->accounts);\n }", "public function countRecords()\n {\n try {\n $SQL = \"SELECT COUNT(`id`) FROM `\".CMS_TABLE_PREFIX.\"mod_feedback` WHERE `page_id` > '0' AND `active`='1'\";\n return $this->app['db']->fetchColumn($SQL);\n } catch (\\Doctrine\\DBAL\\DBALException $e) {\n throw new \\Exception($e);\n }\n }", "function getRejectedApplicationCount()\r\n {\r\n $db = db_connect();\r\n $sql = \"SELECT account.* FROM account, application WHERE account.accountID = application.accountID AND \r\n account.role = :role: AND application.applicationStatus = :applicationStatus: ORDER BY \r\n account.accountID DESC\";\r\n\r\n //Send query then store the results\r\n $results = $db->query($sql, [\r\n 'role' => 0,\r\n 'applicationStatus' => 'R'\r\n ]);\r\n\r\n return $results->getNumRows();\r\n }", "public function listSubscriptionsCount($request);", "public function getAttemptsCount()\n {\n if (array_key_exists(\"attemptsCount\", $this->_propDict)) {\n return $this->_propDict[\"attemptsCount\"];\n } else {\n return null;\n }\n }", "public function getTemplateConfigurationDetailsCount() {\n $templateConfigurationDetailsCount=0;\n try {// method calling... \n $templateConfigurationDetailsCount = TemplateManagement::model()->getTemplateConfigurationDetailsCount();\n } catch (Exception $ex) {\n Yii::log(\"SkiptaUserService:getTemplateConfigurationDetailsCount::\".$ex->getMessage().\"--\".$ex->getTraceAsString(), 'error', 'application');\n }\n return $templateConfigurationDetailsCount;\n }", "public function getCount()\r\n {\r\n return $this->count;\r\n }", "private function getAdminCount() {\n $roles_name = array();\n $get_roles = Role::loadMultiple();\n unset($get_roles[AccountInterface::ANONYMOUS_ROLE]);\n $permission = array('administer permissions', 'administer users');\n foreach ($permission as $value) {\n $filtered_roles = array_filter($get_roles, function ($role) use ($value) {\n return $role->hasPermission($value);\n });\n foreach ($filtered_roles as $role_name => $data) {\n $roles_name[] = $role_name;\n }\n }\n\n if (!empty($roles_name)) {\n $roles_name_unique = array_unique($roles_name);\n $query = db_select('user__roles', 'ur');\n $query->fields('ur', array('entity_id'));\n $query->condition('ur.bundle', 'user', '=');\n $query->condition('ur.deleted', '0', '=');\n $query->condition('ur.roles_target_id', $roles_name_unique, 'IN');\n $count = $query->countQuery()->execute()->fetchField();\n }\n\n return (isset($count) && is_numeric($count)) ? $count : NULL;\n }", "public function getAlertCount (Iusuario $user) {\n $company = $user->getCompany();\n\n $employees = 0;\n if ($user->canAccess($company, \\Dokify\\AccessActions::EMPLOYEES)) {\n // The \"alerts\" option means we want only the wrong items but those which the $user can handle. Right now only affects to the documents with status = attached\n $employees = $this->getWrongChilds($user, 'empleado', ['alerts' => true], 'count');\n }\n\n $machines = 0;\n if ($user->canAccess($company, \\Dokify\\AccessActions::MACHINES)) { // permiso maquinas FALLA?\n // The \"alerts\" option means we want only the wrong items but those which the $user can handle. Right now only affects to the documents with status = attached\n $machines = $this->getWrongChilds($user, 'maquina', ['alerts' => true], 'count');\n }\n\n $invalids = 0;\n if ($user->canAccess($company, \\Dokify\\AccessActions::REQTYPES)) {\n $invalids = $this->getAlertReqTypes($user, ['mandatory' => true], 'count');\n }\n\n $assignments = $this->getPendingAssignments($user, ['count' => true]);\n\n return ($machines + $employees + $invalids + $assignments);\n }", "public function count()\n {\n return $this->getCartSessionCollection()->map(function($item, $key) {\n return $item['quantity'];\n })->reduce(function($carry, $item) {\n return $carry + $item;\n }, 0);\n }", "public function count()\n {\n return $this->getCount();\n }", "public function count()\n {\n return 0;\n }", "public function count()\n {\n return 0;\n }", "public function count()\n {\n return 0;\n }", "public function getCount()\n\t{\n\t\treturn $this->_count;\n\t}", "public function count()\n {\n $this->field('count(*) AS count', false);\n $list = $this->__select();\n $result = 0;\n if (count($list) == 1) {\n $result = intval($list[0]['count']);\n }\n elseif (count($list) > 1) {\n $result = array();\n foreach ($list as $row) {\n $result[] = $row['count'];\n }\n }\n return $result;\n }", "public function count() {\n\t\treturn $this->count;\n\t}", "public function count (): int {\n return count($this->clients);\n }", "public function count()\n\t{\n\t\treturn $this->getCount();\n\t}", "function count() {\n\t\treturn isset($_SESSION[$this->key])?count($_SESSION[$this->key]):0;\n\t}", "public function getCount()\n {\n return $this->_count;\n }", "public function getCount()\n {\n return $this->_count;\n }", "public function CounterMail(){\n\n $CantidadMails = ($this->ConfigModelo->select('rowCountWhere', 'Mensajes', 'estado', '0', 'Id', 'Id'));\n\n return $CantidadMails;\n\n }", "public function getResourceCount()\n {\n return $this->resourceCount;\n }" ]
[ "0.7731103", "0.6877869", "0.6672306", "0.65983695", "0.65017194", "0.62361854", "0.6165163", "0.6163161", "0.6108631", "0.6102026", "0.6097349", "0.60311204", "0.600961", "0.6008539", "0.5995917", "0.59867203", "0.59525746", "0.59470433", "0.59407914", "0.59318286", "0.59317523", "0.5926676", "0.5905257", "0.59002", "0.58982265", "0.58934635", "0.58863074", "0.58813506", "0.5877691", "0.5876331", "0.5858379", "0.5811329", "0.58105844", "0.58038056", "0.57935715", "0.5788316", "0.5785034", "0.5776604", "0.5771646", "0.5770047", "0.5769868", "0.57605135", "0.57595867", "0.5758898", "0.57510513", "0.5737538", "0.57370317", "0.57311475", "0.5719235", "0.57036537", "0.570295", "0.57014036", "0.57014036", "0.56989765", "0.56907684", "0.5687815", "0.56875485", "0.56786704", "0.56753683", "0.5665282", "0.56626457", "0.5659423", "0.56578445", "0.5654373", "0.56512564", "0.56501776", "0.56483936", "0.56473446", "0.56473446", "0.56473446", "0.56473446", "0.56473446", "0.56473446", "0.56473446", "0.56473446", "0.56473446", "0.5644614", "0.56399053", "0.56344366", "0.563349", "0.5625409", "0.56240207", "0.56234723", "0.5622297", "0.5621178", "0.5620437", "0.56190485", "0.5617616", "0.5617616", "0.5617616", "0.5614503", "0.5607897", "0.5605137", "0.5600603", "0.56000024", "0.55992144", "0.5592147", "0.5592147", "0.5591087", "0.55865574" ]
0.73239195
1
Prints HTML with meta information for the current postdate/time and author.
function circle_posted_time() { $time_string = '<time class="entry-date published updated text-uppercase date-published" datetime="%1$s" data-waypoint="waypointEffect">%2$s</time>'; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = '<time class="entry-date published text-uppercase date-published" datetime="%1$s">%2$s</time><time class="published updated text-uppercase date-published" datetime="%3$s" data-waypoint="waypointEffect">%4$s</time>'; } $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date() ) ); echo '<span class="posted-on"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a></span>'; // WPCS: XSS OK. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function jn_post_meta() {\n printf( __( 'Posted on <time class=\"entry-date\" datetime=\"%3$s\" pubdate>%4$s</time><span class=\"byline\"> by <span class=\"author vcard\"><a class=\"url fn n\" href=\"%5$s\" title=\"%6$s\" rel=\"author\">%7$s</a></span></span>', 'jn' ),\n esc_url( get_permalink() ),\n esc_attr( get_the_time() ),\n esc_attr( get_the_date( 'c' ) ),\n esc_html( get_the_date() ),\n esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n esc_attr( sprintf( __( 'View all posts by %s', 'jn' ), get_the_author() ) ),\n esc_html( get_the_author() )\n );\n}", "function _themename_post_meta() {\n printf(\n esc_html__('Published on %s', '_themename'),\n '<a href=\"' . esc_url(get_permalink()) . '\"><time datetime=\"' . esc_attr(get_the_date('c')) . '\">' . esc_html(get_the_date()) . '</time></a>'\n );\n /* translators: %s: Post Author */\n printf(\n esc_html__(' by %s', '_themename'),\n esc_html(get_the_author())\n );\n}", "function roots_entry_meta() {\n echo '<em class=\"meta-entry\"><i class=\"icon-calendar pull-left\"></i><time class=\"updated pull-left\" datetime=\"'. get_the_time('c') .'\" pubdate>'. sprintf(__('Posted on %s at %s.', 'roots'), get_the_date(), get_the_time()) .'</time><span class=\"pull-right\">' .comments_number( 'No comments', 'One comment', '% comment' ) .'</span></em>';\n\n //echo '<p class=\"byline author vcard\">'. __('Written by', 'roots') .' <a href=\"'. get_author_posts_url(get_the_author_meta('ID')) .'\" rel=\"author\" class=\"fn\">'. get_the_author() .'</a></p>';\n}", "function yeti_entry_meta() {\n echo '<p class=\"byline\"><time class=\"updated\" datetime=\"'. get_the_time('c') .'\" pubdate>'. sprintf(__('Posted on %s at %s.', 'yeti'), get_the_time('l, F jS, Y'), get_the_time()) .'</time></p>';\n //echo '<p class=\"byline author\">'. __('Written by', 'reverie') .' <a href=\"'. get_author_posts_url(get_the_author_meta('ID')) .'\" rel=\"author\" class=\"fn\">'. get_the_author() .'</a></p>';\n}", "function __themename_post_meta(){\n printf(\n esc_html__( 'posted on %s', 'Cypher Nex' ),\n '<a href=\"' . esc_url(get_permalink()) . '\" >\n <time datetime=\"' . esc_attr(get_the_date('c')) .'\"> '. get_the_date() .'</time></a>'\n );\n /* translators: %s Post Author */\n printf(\n esc_html__( ' By %s', 'Cypher Nex' ),\n '<a href=\"'. esc_url(get_author_posts_url(get_the_author_meta('ID'))) . '\"> '. esc_html(get_the_author()) .'</a>'\n );\n}", "function boom_post_meta() {\n\tif ( get_post_type() == 'post' ) {\n\t\techo sprintf(\n\t\t\t__( 'Posted %s in %s%s by %s. ', 'boom' ),\n\t\t\tget_the_time( get_option( 'date_format' ) ),\n\t\t\tget_the_category_list( ', ' ),\n\t\t\tget_the_tag_list( __( ', <b>Tags</b>: ', 'boom' ), ', ' ),\n\t\t\tget_the_author_link()\n\t\t);\n\t}\n\tedit_post_link( __( ' (edit)', 'boom' ), '<span class=\"edit-link\">', '</span>' );\n}", "public static function metaDate($post = null)\n {\n echo __METHOD__;\n $meta = get_post_meta($post->ID);\n echo '<pre>';\n print_r($meta);\n echo '</pre>';\n /*\n * repeat_start\n * repeat_end\n */\n print_r($post);\n }", "function tcsn_post_meta() {\n\n\tglobal $post;\n\tif ( ! is_page() && 'page' != $post->post_type ) {\n\t\t$post_footer_metadata = ( get_post_format() ? '<a class=\"post-format-meta\" href=\"' . get_post_format_link( get_post_format() ) . '\">' . get_post_format_string( get_post_format() ) . '</a>' : '' \t\t);\n\t} \n\t\techo '<span class=\"post-meta\">' . $post_footer_metadata. '</span>'; \n\t\t\n\t// Post author\n\tif ( 'post' == get_post_type() ) {\n\t\tprintf( 'By <span class=\"author vcard margin-less\"><a class=\"url fn n\" href=\"%1$s\" title=\"%2$s\" rel=\"author\">%3$s</a></span><span class=\"text-sep\">/</span>',\n\t\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n\t\t\tesc_attr( sprintf( __( 'View all posts by %s', 'tcsn_theme' ), get_the_author() ) ),\n\t\t\tget_the_author()\n\t\t);\n\t}\n\t\n\t// Post date\n\tif ( ! has_post_format( 'link' ) && 'post' == get_post_type() )\n\t\ttcsn_post_date();\n\t\t\n\t// Categories\n\t$categories_list = get_the_category_list( __( ', ', 'tcsn_theme' ) );\n\tif ( $categories_list ) {\n\t\techo 'in <span class=\"categories-links\">' . $categories_list . '</span>';\n\t}\n\t\n\t// Tags\n\tif ( ! is_single() ) {\n\t\t$tag_list = get_the_tag_list( '', __( ', ', 'tcsn_theme' ) );\n\t\tif ( $tag_list ) {\n\t\t\techo '<span class=\"text-sep\">/</span> tags <span class=\"tags-links\">' . $tag_list . '</span>';\n\t\t}\n\t}\n\t\n\telse {\n\t\t$tag_list = get_the_tag_list( '', __( ', ', 'tcsn_theme' ) );\n\t if ( $tag_list ) {\n\t\techo '<span class=\"text-sep\">/</span> tags <span class=\"tags-links\">' . $tag_list . '</span>';\n\t } \n\t}\n}", "function gos_post_meta() {\n if ( get_post_type() == 'post' ) {\n echo sprintf(\n __( 'Posted %s in %s%s by %s. ', 'gos' ),\n get_the_time( get_option( 'date_format' ) ),\n get_the_category_list( ', ' ),\n get_the_tag_list( __( ', <b>Tags</b>: ', 'gos' ), ', ' ),\n get_the_author_link()\n );\n }\n edit_post_link( __( ' (edit)', 'gos' ), '<span class=\"edit-link\">', '</span>' );\n}", "function fl_blog_post_meta() {\n\tif(is_page()) return; // don't do post-meta on pages\n?>\t\t\n<div class=\"content-bar iconfix\">\n\t<p class=\"meta\">\n\t\t<span><i class=\"icon-calendar\"></i><?php echo get_the_date(get_option('date_format')); ?></span>\n\t\t<span><i class=\"icon-folder-open\"></i><?php the_category(', '); ?></span>\n\t</p>\n\t<p class=\"comment-count\"><i class=\"icon-comments\"></i><?php comments_popup_link( __( '0 Comments', APP_TD ), __( '1 Comment', APP_TD ), __( '% Comments', APP_TD ) ); ?></p>\n</div>\n<?php\n}", "function print_author_tag() {\n\t\t\n\t\techo \"<meta name='author' content='{$this->options->site_author}' />\\r\\n\";\n\t}", "function genesisawesome_post_data_stamp() {\n\n\tif ( get_post_type() == 'post' )\n\t\tprintf( '<div class=\"ga-date published\" title=\"%s\"><span class=\"datenum\">%s</span><span class=\"monthname\">%s</span></div>', get_the_date('c'), get_the_date( 'd' ), get_the_date( 'M' ) );\n\n}", "function rusticmodern_posted_on() {\n\tprintf( __( '<span class=\"%1$s\">Posted on</span> %2$s <span class=\"meta-sep\">by</span> %3$s', 'rusticmodern' ),\n\t\t'meta-prep meta-prep-author',\n\t\tsprintf( '<a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><span class=\"entry-date\">%3$s</span></a>',\n\t\t\tget_permalink(),\n\t\t\tesc_attr( get_the_time() ),\n\t\t\tget_the_date()\n\t\t),\n\t\tsprintf( '<span class=\"author vcard\"><a class=\"url fn n\" href=\"%1$s\" title=\"%2$s\">%3$s</a></span>',\n\t\t\tget_author_posts_url( get_the_author_meta( 'ID' ) ),\n\t\t\tesc_attr( sprintf( __( 'View all posts by %s', 'rusticmodern' ), get_the_author() ) ),\n\t\t\tget_the_author()\n\t\t)\n\t);\n}", "function et_divi_post_meta() {\n\t\t$pages = array(\n\t\t\tintval( \\SermonManager::getOption( 'smp_archive_page', 0 ) ),\n\t\t\tintval( \\SermonManager::getOption( 'smp_tax_page', 0 ) ),\n\t\t);\n\t\tif ( in_array( get_the_ID(), $pages ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$postinfo = is_single() ? et_get_option( 'divi_postinfo2' ) : et_get_option( 'divi_postinfo1' );\n\n\t\tif ( $postinfo ) :\n\t\t\techo '<p class=\"post-meta\">';\n\t\t\techo et_pb_postinfo_meta( $postinfo, et_get_option( 'divi_date_format', 'M j, Y' ), esc_html__( '0 comments', 'Divi' ), esc_html__( '1 comment', 'Divi' ), '% ' . esc_html__( 'comments', 'Divi' ) );\n\t\t\techo '</p>';\n\t\tendif;\n\t}", "function cosmetics_post_meta() {\n?>\n\n <div class=\"site-post-meta\">\n <span class=\"site-post-author\">\n <?php echo esc_html__('Author:','cosmetics');?>\n <a href=\"<?php echo get_author_posts_url( get_the_author_meta('ID') );?>\">\n <?php the_author();?>\n </a>\n </span>\n\n <span class=\"site-post-date\">\n <?php esc_html_e( 'Post date: ','cosmetics' ); the_date(); ?>\n </span>\n\n <span class=\"site-post-comments\">\n <?php\n comments_popup_link( '0 '. esc_html__('Comment','cosmetics'),'1 '. esc_html__('Comment','cosmetics'), '% '. esc_html__('Comments','cosmetics') );\n ?>\n </span>\n </div>\n\n<?php\n }", "function fumseck_pagemeta() {\n\t\n\t// Initialize\n\t\n\t$output = '';\n\tglobal $post;\n\t$post_id = $post->ID;\n\t\n\t\n\t// Get metadata for the page from WordPress\n\t\n\t$post_title = get_the_title($post_id);\n\t$post_permalink = get_permalink($post_id);\n\t\n\t$post_has_featured_image = has_post_thumbnail( $post_id );\n\t\n\tif( $post_has_featured_image ) {\n\t\t$post_featured_image_large = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large'); // [URL, w, h, resized?]\n\t};\n\t\n\t$post_summary = wp_strip_all_tags( get_field( '_summary', $post_id, true ));\n\t\n\t\n\tif ( ! $post_summary ) {\t\t// if no summary, try a manual excerpt\n\t\t$post_summary = $post->post_excerpt;\n\t};\t// TODO: do something if there's no manual excerpt either\n\n\t\n\t// Static metadata\n\t\n\t$output .= '<meta name=\"twitter:site\" content=\"@gpaumier\"><meta name=\"twitter:creator\" content=\"@gpaumier\">';\t\n\t$output .= '<meta name=\"twitter:domain\" content=\"guillaumepaumier.com\">';\t\n\t$output .= '<meta property=\"fb:admins\" content=\"710543474\" />';\n\t//$output .= '<meta property=\"fb:admins\" content=\"579323492087704\" />';\n\t$output .= '<meta property=\"article:author\" content=\"https://www.facebook.com/gllmpmr\" />';\n\t$output .= '<meta property=\"article:publisher\" content=\"https://www.facebook.com/gllmpmr\" />';\n\t\n\t$output .= '<meta property=\"og:type\" content=\"article\" />'; // TODO: be more specific\n\t\n\t// Common metadata\n\t\n\t$output .= '<meta property=\"og:site_name\" content=\"' . get_bloginfo( 'name' ) . '\"/>';\n\t\n\t$output .= '<meta name=\"twitter:title\" content=\"' . $post_title . '\">';\n\t$output .= '<meta property=\"og:title\" content=\"' . $post_title . '\"/>';\n\t\n\t\n\t$output .= '<meta property=\"og:url\" content=\"' . $post_permalink . '\" />';\n\t\n\t\n\t$output .= '<meta property=\"og:description\" content=\"' . $post_summary . '\" />';\n\t\n\t// TODO: add locale\n\t\n\tif ( get_post_format( $post_id ) === 'image' ) {\n\t\t\n\t\t$output .= '<meta name=\"twitter:card\" content=\"photo\">';\n\t\t$output .= '<meta name=\"twitter:image\" content=\"' . $post_featured_image_large[0] . '\">';\n\t\t$output .= '<meta name=\"twitter:image:width\" content=\"' . $post_featured_image_large[1] . '\">';\n\t\t$output .= '<meta name=\"twitter:image:height\" content=\"' . $post_featured_image_large[2] . '\">';\n\t\t$output .= '<meta property=\"og:image:width\" content=\"' . $post_featured_image_large[1] . '\" />';\n\t\t$output .= '<meta property=\"og:image:height\" content=\"' . $post_featured_image_large[2] . '\" />';\n\t\t\n\t} else {\t// Not a photo\n\t\t\n\t\t$output .= '<meta name=\"twitter:description\" content=\"' . $post_summary . '\">';\n\t\t\n\t\tif( $post_has_featured_image ) {\n\t\t\t\n\t\t\t$output .= '<meta name=\"twitter:card\" content=\"summary_large_image\">';\n\t\t\t$output .= '<meta name=\"twitter:image:src\" content=\"' . $post_featured_image_large[0] . '\">';\n\t\t\t$output .= '<meta property=\"og:image\" content=\"' . $post_featured_image_large[0] . '\" />';\n\t\t\t$output .= '<meta property=\"og:image:width\" content=\"' . $post_featured_image_large[1] . '\" />';\n\t\t\t$output .= '<meta property=\"og:image:height\" content=\"' . $post_featured_image_large[2] . '\" />';\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\t$output .= '<meta name=\"twitter:card\" content=\"summary\">';\n\t\t}\n\t\t\n\t};\n\t\n\n\techo $output;\n}", "function header_meta() {\n\t/**\n\t * Filter the path used for the site's humans.txt attribution file\n\t *\n\t * @param string $humanstxt\n\t */\n\t$humanstxt = apply_filters( 'project_humans', Project_TEMPLATE_URL . '/humans.txt' );\n\n\techo '<link type=\"text/plain\" rel=\"author\" href=\"' . esc_url( $humanstxt ) . '\" />';\n}", "public static function meta() {\n //echo $this->keywords ? '<meta name=\"keywords\" content=\"'.$this->keywords.'\" />'.\"\\r\\n\" : '';\n\n echo '<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />', \"\\r\\n\";\n\n ksort(self::$css);\n foreach (self::$css as $css_arr) {\n foreach ($css_arr as $css) {\n echo '<link type=\"text/css\" rel=\"stylesheet\" href=\"', $css, '\" />', \"\\r\\n\";\n }\n }\n ksort(self::$js);\n foreach (self::$js as $js_arr) {\n foreach ($js_arr as $js) {\n echo '<script type=\"text/javascript\" src=\"', $js, '\"></script>', \"\\r\\n\";\n }\n }\n }", "function horizon_theme_posted_on() {\n\t\tif ( is_sticky() && is_home() && ! is_paged() ) {\n\t\t\techo '<span class=\"featured-post\">' . __( 'Sticky', 'horizon-theme' ) . ' </span>';\n\t\t}\n\n\t\t// Set up and print post meta information.\n\t\tprintf( '<span class=\"entry-date\">%s <time class=\"entry-date\" datetime=\"%s\">%s</time></span> <span class=\"byline\">%s <span class=\"author vcard\"><a class=\"url fn n\" href=\"%s\" rel=\"author\">%s</a></span>.</span>',\n\t\t\t__( 'Posted in', 'horizon-theme' ),\n\t\t\tesc_attr( get_the_date( 'c' ) ),\n\t\t\tesc_html( get_the_date() ),\n\t\t\t__( 'by', 'horizon-theme' ),\n\t\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n\t\t\tget_the_author()\n\t\t);\n\t}", "function agilespirit_entry_meta() {\n if ( is_sticky() && is_home() && ! is_paged() )\n echo '<span class=\"featured-post\">' . __( 'Sticky', 'agilespirit' ) . '</span>';\n\n if ( ! has_post_format( 'link' ) && 'post' == get_post_type() )\n agilespirit_entry_date();\n\n // Translators: used between list items, there is a space after the comma.\n $categories_list = get_the_category_list( __( ', ', 'agilespirit' ) );\n if ( $categories_list ) {\n echo ' ' . __('in', 'agilespirit') . ' <span class=\"categories-links\">' . $categories_list . '</span>';\n }\n\n // Translators: used between list items, there is a space after the comma.\n $tag_list = get_the_tag_list( '', __( ', ', 'agilespirit' ) );\n if ( $tag_list ) {\n echo '<span class=\"tags-links\">' . ' ' . __(' concerning ', 'agilespirit') . ' ' . $tag_list . '</span>';\n }\n\n // Post author\n if ( 'post' == get_post_type() ) {\n _e(' by ', 'agilespirit');\n printf( '<span class=\"author\"><a class=\"url fn n\" href=\"%1$s\" title=\"%2$s\" rel=\"author\">%3$s</a></span>',\n esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n esc_attr( sprintf( __( 'View all posts by %s', 'agilespirit' ), get_the_author() ) ),\n get_the_author()\n );\n }\n}", "function ppo_posted_on() {\n if ( is_sticky() && is_home() && ! is_paged() ) {\n echo '<span class=\"featured-post\">' . __( 'Sticky post', SHORT_NAME ) . '</span>';\n }\n\n // Set up and print post meta information.\n printf( '<span class=\"entry-date\"><a href=\"%1$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%2$s\"><i class=\"fa fa-calendar\"></i> %3$s</time></a></span> <span class=\"byline\"><span class=\"author vcard\"><a class=\"url fn n\" href=\"%4$s\" rel=\"author\"><i class=\"fa fa-user\"></i> %5$s</a></span></span>',\n esc_url( get_permalink() ),\n esc_attr( get_the_date( 'c' ) ),\n esc_html( get_the_date() ),\n esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n get_the_author()\n );\n}", "function absolvution_post_meta() {\n if ( get_post_type() == 'post' ) {\n echo sprintf(\n __( '<div class=\"meta-container date-posted\">Posted %s </div><div class=\"meta-container cat\"><span class=\"sep cat\"></span> %s </div><div class=\"meta-container tag \"><span class=\"sep tag\"></span> %s </div>', 'absolvution' ),\n get_the_time( get_option( 'date_format' ) ),\n get_the_category_list( ', ' ),\n get_the_tag_list( __( '', 'absolvution' ), ', ' )\n );\n }\n edit_post_link( __( ' (edit)', 'absolvution' ), '<span class=\"edit-link\">', '</span>' );\n}", "function header_meta() {\n\t/**\n\t * Filter the path used for the site's humans.txt attribution file\n\t *\n\t * @param string $humanstxt\n\t */\n\t$humanstxt = apply_filters( 'additive_humans', ADDITIVE_TEMPLATE_URL . '/humans.txt' );\n\n\techo '<link type=\"text/plain\" rel=\"author\" href=\"' . esc_url( $humanstxt ) . '\" />';\n}", "function woo_post_meta( ) { ?>\n<aside class=\"post-meta\">\n\t<ul>\n\t\t<li class=\"post-date\">\n\t\t\t<span><?php the_time( get_option( 'date_format' ) ); ?></span>\n\t\t</li>\n\t\t<li class=\"post-author\">\n\t\t\t<?php the_author_posts_link(); ?>\n\t\t</li>\n\t\t<li class=\"post-category\">\n\t\t\t<?php the_category( ', ') ?>\n\t\t</li>\n\t\t<?php edit_post_link( __( '{ Edit }', 'woothemes' ), '<li class=\"edit\">', '</li>' ); ?>\n\t</ul>\n</aside>\n<?php\n}", "function acitpo_entry_meta() {\n\tglobal $post;\n\tif (is_page()) { return; }\n\t$categories = get_the_category_list(__(', ', 'acitpo'));\n\n\tprintf('<span class=\"date-link\"><a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\">%4$s</time></a></span>', esc_attr(get_permalink()), esc_attr(get_the_time()), esc_attr(get_the_time('c')), esc_html(get_the_date()));\n\tif ($categories) {\n\t\tprintf('<span class=\"category-links\">%s</span>', $categories);\n\t}\n\tprintf('<span class=\"author-link vcard\"><a href=\"%1$s\" title=\"%2$s\" rel=\"author\">%3$s</a></span>', esc_attr(get_author_posts_url(get_the_author_meta('ID'))), esc_attr(sprintf(__('View all posts by %s', 'acitpo'), get_the_author())), esc_html(get_the_author()));\n}", "function quasar_entry_meta() {\n\t$return = '';\n\t\n\tif ( is_sticky() && is_home() && ! is_paged() )\n\t\t$return .= '<span class=\"featured-post\">' . __( 'Sticky', 'quasar' ) . '</span>';\n\n\t/*\n\tCurrently Disabled. We have used the Date in the right side\n\tif ( ! has_post_format( 'link' ) && 'post' == get_post_type() )\n\t\t$return .= quasar_entry_date(false);\n\t\n\t*/\n\n\t// Translators: used between list items, there is a space after the comma.\n\t$categories_list = get_the_category_list( __( ', ', 'quasar' ) );\n\tif ( $categories_list ) {\n\t\t$return .= '<span class=\"categories-links\">' . $categories_list . '</span>';\n\t}\n\n\t// Translators: used between list items, there is a space after the comma.\n\t$tag_list = get_the_tag_list( '', __( ', ', 'quasar' ) );\n\tif ( $tag_list ) {\n\t\t$return .= '<span class=\"tags-links\">' . $tag_list . '</span>';\n\t}\n\n\t// Post author\n\tif ( 'post' == get_post_type() ) {\n\t\t/*\n\t\tLinking to Author's archive currently disabled\n\t\t\n\t\t$return .= sprintf( '<span class=\"author vcard\"><a class=\"url fn n\" href=\"%1$s\" title=\"%2$s\" rel=\"author\">%3$s</a></span>',\n\t\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n\t\t\tesc_attr( sprintf( __( 'View all posts by %s', 'quasar' ), get_the_author() ) ),\n\t\t\tget_the_author()\n\t\t);\n\t\t*/\n\t\t$return .= sprintf( '<span class=\"author vcard\"><a class=\"url fn n\" title=\"%2$s\" rel=\"author\">%3$s</a></span>',\n\t\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n\t\t\tesc_attr( sprintf( __( 'View all posts by %s', 'quasar' ), get_the_author() ) ),\n\t\t\tget_the_author()\n\t\t);\n\t}\n\t\n\treturn $return;\n}", "function pixelgrade_posted_on() {\n\t\t$time_string = '<time class=\"entry-date published updated\" datetime=\"%1$s\">%2$s</time>';\n\t\tif ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {\n\t\t\t$time_string = '<time class=\"entry-date published\" datetime=\"%1$s\">%2$s</time><time class=\"updated\" datetime=\"%3$s\">%4$s</time>';\n\t\t}\n\n\t\t$time_string = sprintf(\n\t\t\t$time_string,\n\t\t\tesc_attr( get_the_date( 'c' ) ),\n\t\t\tesc_html( get_the_date() ),\n\t\t\tesc_attr( get_the_modified_date( 'c' ) ),\n\t\t\tesc_html( get_the_modified_date() )\n\t\t);\n\n\t\tprintf( '<span class=\"byline\"> <span class=\"by\">%1$s</span> <span class=\"author vcard\"><a class=\"url fn n\" href=\"%2$s\">%3$s</a></span></span><span class=\"posted-on\"><a href=\"%4$s\" rel=\"bookmark\">%5$s</a></span>',\n\t\t\tesc_html_x( 'by', 'post author', '__components_txtd' ),\n\t\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n\t\t\tesc_html( get_the_author() ),\n\t\t\tesc_url( get_permalink() ),\n\t\t\twp_kses( $time_string, array( 'time' => array( 'class' => true, 'datetime' => true, ) ) )\n\t\t);\n\n\t}", "function writeMetatags($description) {\r\n echo '<meta name=\"author\" content=\"Stephen Wallace\">' . \"\\n\";\r\n echo \"<meta name=\\\"description\\\" content=\\\"$description\\\">\\n\";\r\n}", "function thememount_entry_meta($echo = true) {\n\t$return = '';\n\t\n\tglobal $post;\n\t\n\tif( isset($post->post_type) && $post->post_type=='page' ){\n\t\treturn;\n\t}\n\t\n\t\n\t$postFormat = get_post_format();\n\t\n\t// Post author\n\t$categories_list = get_the_category_list( __( ', ', 'howes' ) ); // Translators: used between list items, there is a space after the comma.\n\t$tag_list = get_the_tag_list( '', __( ', ', 'howes' ) ); // Translators: used between list items, there is a space after the comma.\n\t$num_comments = get_comments_number();\n\t\n\t$return .= '<div class=\"thememount-meta-details\">';\n\t\t// Date\n\t\t$return .= '<span class=\"tm-date-wrapper\"><i class=\"tmicon-fa-clock-o\"></i> ' . get_the_date() . '</span>';\n\n\t\tif ( 'post' == get_post_type() ) {\n\t\t\tif( !is_single() ){\n\t\t\t\t$return .= sprintf( '<div class=\"thememount-post-user\"><span class=\"author vcard\"><i class=\"tmicon-fa-user\"></i> <a class=\"url fn n\" href=\"%1$s\" title=\"%2$s\" rel=\"author\">%3$s</a></span></div>',\n\t\t\t\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n\t\t\t\t\tesc_attr( sprintf( __( 'View all posts by %s', 'howes' ), get_the_author() ) ),\n\t\t\t\t\tget_the_author()\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\tif ( $tag_list ) { $return .= '<span class=\"tags-links\"><i class=\"tmicon-fa-tags\"></i> ' . $tag_list . '</span>'; };\n\t\tif ( $categories_list ) { $return .= '<span class=\"categories-links\"><i class=\"tmicon-fa-folder-open\"></i> ' . $categories_list . '</span>'; };\n\t\tif( !is_sticky() && comments_open() && ($num_comments>0) ){\n\t\t\t$return .= '<span class=\"comments\"><i class=\"tmicon-fa-comments\"></i> ';\n\t\t\t$return .= $num_comments;\n\t\t\t$return .= '</span>';\n\t\t}\n\n\t$return .= '</div>';\n\t\n\tif( $echo == true ){\n\t\techo $return;\n\t} else {\n\t\treturn $return;\n\t}\n\t\n\t\n}", "function twentyten_posted_on() {\n\t\tprintf(\n\t\t\t__( '<span class=\"%1$s\">Posted on</span> %2$s <span class=\"meta-sep\">by</span> %3$s', 'twentyten' ),\n\t\t\t'meta-prep meta-prep-author',\n\t\t\tsprintf(\n\t\t\t\t'<a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><span class=\"entry-date\">%3$s</span></a>',\n\t\t\t\tget_permalink(),\n\t\t\t\tesc_attr( get_the_time() ),\n\t\t\t\tget_the_date()\n\t\t\t),\n\t\t\tsprintf(\n\t\t\t\t'<span class=\"author vcard\"><a class=\"url fn n\" href=\"%1$s\" title=\"%2$s\">%3$s</a></span>',\n\t\t\t\tget_author_posts_url( get_the_author_meta( 'ID' ) ),\n\t\t\t\tesc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ),\n\t\t\t\tget_the_author()\n\t\t\t)\n\t\t);\n\t}", "function classiera_entry_meta() {\r\n\tif ( is_sticky() && is_home() && ! is_paged() )\r\n\t\techo '<span class=\"featured-post\">' . esc_html_e( 'Sticky', 'classiera' ) . '</span>';\r\n\r\n\tif ( ! has_post_format( 'link' ) && 'post' == get_post_type() )\r\n\t\tclassiera_entry_date();\r\n\r\n\t// Translators: used between list items, there is a space after the comma.\r\n\t$categories_list = get_the_category_list( esc_html_e( ',', 'classiera' ) );\r\n\tif ( $categories_list ) {\r\n\t\techo '<span class=\"categories-links\">' . $categories_list . '</span>';\r\n\t}\r\n\r\n\t// Translators: used between list items, there is a space after the comma.\r\n\t$tag_list = get_the_tag_list( '', esc_html_e( ',', 'classiera' ) );\r\n\tif ( $tag_list ) {\r\n\t\techo '<span class=\"tags-links\">' . $tag_list . '</span>';\r\n\t}\r\n\r\n\t// Post author\r\n\tif ( 'post' == get_post_type() ) {\r\n\t\tprintf( '<span class=\"author vcard\"><a class=\"url fn n\" href=\"%1$s\" title=\"%2$s\" rel=\"author\">%3$s</a></span>',\r\n\t\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\r\n\t\t\tesc_attr( sprintf( __( 'View all posts by %s', 'classiera' ), get_the_author() ) ),\r\n\t\t\tget_the_author()\r\n\t\t);\r\n\t}\r\n}", "function cosmo_get_site_meta() {\n\n ob_start();\n ob_clean();\n\n if( is_single() || is_page() ){ \n global $post; ?>\n <meta name=\"description\" content=\"<?php echo strip_tags( post::get_excerpt( $post, $ln=150 ) ); ?>\" /> \n <meta property=\"og:title\" content=\"<?php the_title() ?>\" />\n <meta property=\"og:site_name\" content=\"<?php echo get_bloginfo('name'); ?>\" />\n <meta property=\"og:url\" content=\"<?php the_permalink() ?>\" />\n <meta property=\"og:type\" content=\"article\" />\n <meta property=\"og:locale\" content=\"en_US\" /> \n <meta property=\"og:description\" content=\"<?php echo get_bloginfo('description'); ?>\"/>\n <?php\n\n } else { ?>\n <meta name=\"description\" content=\"<?php echo get_bloginfo('description'); ?>\" /> \n <meta property=\"og:title\" content=\"<?php echo get_bloginfo('name'); ?>\"/>\n <meta property=\"og:site_name\" content=\"<?php echo get_bloginfo('name'); ?>\"/>\n <meta property=\"og:url\" content=\"<?php echo home_url() ?>/\"/>\n <meta property=\"og:type\" content=\"blog\"/>\n <meta property=\"og:locale\" content=\"en_US\"/>\n <meta property=\"og:description\" content=\"<?php echo get_bloginfo('description'); ?>\"/>\n <?php\n }\n\n return ob_get_clean();\n\n }", "function accouk_display_post_meta() {\n\n global $main_category;\n echo '<div class=\"published-date\">Published on '; the_date();\n echo ' in <a href=\"' . $main_category['link'] . '\" class=\"breadcrumb\">' . $main_category['name'] . '</a></div>';\n\n}", "function fiorello_mikado_header_meta() { ?>\n\n\t\t<meta charset=\"<?php bloginfo( 'charset' ); ?>\"/>\n\t\t<link rel=\"profile\" href=\"http://gmpg.org/xfn/11\"/>\n\t\t<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>\n\t\t\t<link rel=\"pingback\" href=\"<?php bloginfo( 'pingback_url' ); ?>\">\n\t\t<?php endif; ?>\n\n\t<?php }", "function tc_post_metas() {\r\n global $post;\r\n //when do we display the metas ?\r\n //1) we don't show metas on home page, 404, search page by default\r\n //2) +filter conditions\r\n $post_metas_bool = ( tc__f('__is_home') || is_404() || 'page' == $post -> post_type ) ? false : true ;\r\n $post_metas_bool = apply_filters('tc_show_post_metas', $post_metas_bool ); \r\n \r\n if ( ! $post_metas_bool )\r\n return;\r\n\r\n ob_start();\r\n ?>\r\n\r\n <div class=\"entry-meta\">\r\n <?php\r\n if ( 'attachment' == $post -> post_type ) {\r\n $metadata = wp_get_attachment_metadata();\r\n printf( '%1$s <span class=\"entry-date\"><time class=\"entry-date updated\" datetime=\"%2$s\">%3$s</time></span> %4$s %5$s',\r\n '<span class=\"meta-prep meta-prep-entry-date\">'.__('Published' , 'customizr').'</span>',\r\n apply_filters('tc_use_the_post_modified_date' , false ) ? esc_attr( get_the_date( 'c' ) ) : esc_attr( get_the_modified_date('c') ),\r\n esc_html( get_the_date() ),\r\n ( isset($metadata['width']) && isset($metadata['height']) ) ? __('at dimensions' , 'customizr').'<a href=\"'.esc_url( wp_get_attachment_url() ).'\" title=\"'.__('Link to full-size image' , 'customizr').'\"> '.$metadata['width'].' &times; '.$metadata['height'].'</a>' : '',\r\n __('in' , 'customizr').'<a href=\"'.esc_url( get_permalink( $post->post_parent ) ).'\" title=\"'.__('Return to ' , 'customizr').esc_attr( strip_tags( get_the_title( $post->post_parent ) ) ).'\" rel=\"gallery\"> '.get_the_title( $post->post_parent ).'</a>.'\r\n );\r\n }\r\n\r\n else {\r\n\r\n $categories_list = $this -> tc_category_list();\r\n\r\n $tag_list = $this -> tc_tag_list();\r\n\r\n $date = apply_filters( 'tc_date_meta',\r\n sprintf( '<a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date updated\" datetime=\"%3$s\">%4$s</time></a>' ,\r\n esc_url( get_day_link( get_the_time( 'Y' ), get_the_time( 'm' ), get_the_time( 'd' ) ) ),\r\n esc_attr( get_the_time() ),\r\n apply_filters('tc_use_the_post_modified_date' , false ) ? esc_attr( get_the_date( 'c' ) ) : esc_attr( get_the_modified_date('c') ),\r\n esc_html( get_the_date() )\r\n )\r\n );//end filter\r\n\r\n $author = apply_filters( 'tc_author_meta',\r\n sprintf( '<span class=\"author vcard\"><a class=\"url fn n\" href=\"%1$s\" title=\"%2$s\" rel=\"author\">%3$s</a></span>' ,\r\n esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\r\n esc_attr( sprintf( __( 'View all posts by %s' , 'customizr' ), get_the_author() ) ),\r\n get_the_author()\r\n )\r\n );//end filter\r\n\r\n // Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name.\r\n $utility_text = '';\r\n if ( $tag_list ) {\r\n $utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class=\"by-author\"> by %4$s</span>.' , 'customizr' );\r\n } elseif ( $categories_list ) {\r\n $utility_text = __( 'This entry was posted in %1$s on %3$s<span class=\"by-author\"> by %4$s</span>.' , 'customizr' );\r\n } else {\r\n $utility_text = __( 'This entry was posted on %3$s<span class=\"by-author\"> by %4$s</span>.' , 'customizr' );\r\n }\r\n $utility_text = apply_filters( 'tc_meta_utility_text', $utility_text );\r\n\r\n //echoes every metas components\r\n printf(\r\n $utility_text,\r\n $categories_list,\r\n $tag_list,\r\n $date,\r\n $author\r\n );\r\n }//endif attachment\r\n ?>\r\n\r\n </div><!-- .entry-meta -->\r\n\r\n <?php\r\n $html = ob_get_contents();\r\n if ($html) ob_end_clean();\r\n echo apply_filters( 'tc_post_metas', $html );\r\n }", "function frmwrk_posted_on() {\n\tprintf( __( '<span class=\"sep\">Posted on </span><a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\" pubdate>%4$s</time></a><span class=\"by-author\"> <span class=\"sep\"> by </span> <span class=\"author vcard\"><a class=\"url fn n\" href=\"%5$s\" title=\"%6$s\" rel=\"author\">%7$s</a></span></span>', 'frmwrk' ),\n\t\tesc_url( get_permalink() ),\n\t\tesc_attr( get_the_time() ),\n\t\tesc_attr( get_the_date( 'c' ) ),\n\t\tesc_html( get_the_date() ),\n\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n\t\tesc_attr( sprintf( __( 'View all posts by %s', 'frmwrk' ), get_the_author() ) ),\n\t\tget_the_author()\n\t);\n}", "function twentytwelve_entry_meta() {\n\t// used between list items, there is a space after the comma.\n\t$categories_list = get_the_category_list( ', ' );\n\n\t// used between list items, there is a space after the comma.\n\t$tag_list = get_the_tag_list( '', ', ' );\n\n\t$date = sprintf( '<a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\">%4$s</time></a>',\n\t\tesc_url( get_permalink() ),\n\t\tesc_attr( get_the_time() ),\n\t\tesc_attr( get_the_date( 'c' ) ),\n\t\tesc_html( get_the_date() )\n\t);\n\n\t$author = sprintf( '<span class=\"author vcard\"><a class=\"url fn n\" href=\"%1$s\" title=\"%2$s\" rel=\"author\">%3$s</a></span>',\n\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n\t\tesc_attr( sprintf( __( 'View all posts by %s', 'twentytwelve' ), get_the_author() ) ),\n\t\tget_the_author()\n\t);\n\n\t// 1 is category, 2 is tag, 3 is the date and 4 is the author's name.\n\tif ( $tag_list ) {\n\t\t$utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class=\"by-author\"> by %4$s</span>.', 'twentytwelve' );\n\t} elseif ( $categories_list ) {\n\t\t$utility_text = __( 'This entry was posted in %1$s on %3$s<span class=\"by-author\"> by %4$s</span>.', 'twentytwelve' );\n\t} else {\n\t\t$utility_text = __( 'This entry was posted on %3$s<span class=\"by-author\"> by %4$s</span>.', 'twentytwelve' );\n\t}\n\n\tprintf(\n\t\t$utility_text,\n\t\t$categories_list,\n\t\t$tag_list,\n\t\t$date,\n\t\t$author\n\t);\n}", "function print_special_event_meta_info() {\n\t// Date.\n\tif ( get_field( 'begin_date' ) ) {\n\t\t$date = get_special_event_date_format();\n\n\t\tprintf(\n\t\t\t'<h3>%1$s</h3>\n\t\t<p class=\"event-dates\">%2$s</p>',\n\t\t\tget_field( 'end_date' ) ? 'Dates' : 'Date',\n\t\t\t$date['human']\n\t\t);\n\t}\n\n\t// Location.\n\tif ( get_field( 'location' ) ) {\n\t\t$location = get_field( 'location' );\n\n\t\tprintf(\n\t\t\t'<h3>Location</h3>\n\t\t<p class=\"location\"><a href=\"https://www.google.com/maps/search/%1$s\" target=\"_blank\">%1$s</a></p>',\n\t\t\t$location['address']\n\t\t);\n\t}\n\n\t// Keynote speakers.\n\tif ( get_field( 'keynote_speaker' ) ) {\n\n\t\t$speaker_args = array(\n\t\t\t'post_type' => 'special_speaker',\n\t\t\t'post_status' => 'publish',\n\t\t\t'posts_per_page' => -1,\n\t\t\t'post__in' => get_field( 'keynote_speaker' ),\n\t\t\t'order' => 'ASC',\n\t\t\t'orderby' => 'meta_value',\n\t\t\t'meta_key' => 'sort_order',\n\t\t\t'cache_results' => true,\n\t\t\t'update_post_meta_cache' => true,\n\t\t\t'update_post_term_cache' => true,\n\t\t);\n\n\t\t$special_speaker_query = new WP_Query( $speaker_args );\n\n\t\tif ( $special_speaker_query->have_posts() ) {\n\t\t\techo '<h3>Keynote Speaker' . ( $special_speaker_query->post_count === 1 ? '' : 's' ) . '</h3>';\n\n\t\t\twhile ( $special_speaker_query->have_posts() ) {\n\t\t\t\t$special_speaker_query->the_post();\n\t\t\t\techo wp_kses_post( get_featured_speaker_info( get_the_ID(), $special_speaker_query->found_posts ) );\n\t\t\t}\n\t\t}\n\n\t\twp_reset_postdata();\n\t}\n\n\t// Speakers.\n\tif ( get_field( 'special_speaker' ) ) {\n\n\t\t$speaker_args = array(\n\t\t\t'post_type' => 'special_speaker',\n\t\t\t'post_status' => 'publish',\n\t\t\t'posts_per_page' => -1,\n\t\t\t'post__in' => get_field( 'special_speaker' ),\n\t\t\t'order' => 'ASC',\n\t\t\t'orderby' => 'meta_value',\n\t\t\t'meta_key' => 'sort_order',\n\t\t\t'cache_results' => true,\n\t\t\t'update_post_meta_cache' => true,\n\t\t\t'update_post_term_cache' => true,\n\t\t);\n\n\t\t$special_speaker_query = new WP_Query( $speaker_args );\n\n\t\tif ( $special_speaker_query->have_posts() ) {\n\t\t\techo '<h3>Special Speaker' . ( 1 === $special_speaker_query->post_count ? '' : 's' ) . '</h3>';\n\n\t\t\twhile ( $special_speaker_query->have_posts() ) {\n\t\t\t\t$special_speaker_query->the_post();\n\t\t\t\techo wp_kses_post( get_featured_speaker_info( get_the_ID(), $special_speaker_query->found_posts ) );\n\t\t\t}\n\t\t}\n\n\t\twp_reset_postdata();\n\t}\n}", "function darksnow_posted_on() {\n\tprintf( __( '<span class=\"sep\">Posted on </span><a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\" pubdate>%4$s</time></a><span class=\"by-author\"> <span class=\"sep\"> by </span> <span class=\"author vcard\"><a class=\"url fn n\" href=\"%5$s\" title=\"%6$s\" rel=\"author\">%7$s</a></span></span>', 'darksnow' ),\n\t\tesc_url( get_permalink() ),\n\t\tesc_attr( get_the_time() ),\n\t\tesc_attr( get_the_date( 'c' ) ),\n\t\tesc_html( get_the_date() ),\n\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n\t\tesc_attr( sprintf( __( 'View all posts by %s', 'darksnow' ), get_the_author() ) ),\n\t\tget_the_author()\n\t);\n}", "function generate_post_meta()\n {\n $post_types = apply_filters('generate_entry_meta_post_types', array(\n 'post',\n ));\n\n if (in_array(get_post_type(), $post_types)): ?>\n<div class=\"entry-meta\">\n <?php generate_posted_on();?>\n</div><!-- .entry-meta -->\n<?php endif;\n }", "function bootstrap_posted_on() {\n\tprintf(get_the_date());\n}", "function generate_do_post_meta_item($item)\n{\n if ('date' === $item) {\n $date = apply_filters('generate_post_date', true);\n\n $time_string = '';\n\n if (get_the_time('U') !== get_the_modified_time('U')) {\n $time_string = '<time class=\"updated\" datetime=\"%3$s\" itemprop=\"dateModified\">%4$s</time>' . $time_string;\n } else {\n $time_string = '<time class=\"entry-date published\" datetime=\"%1$s\" itemprop=\"datePublished\">%2$s</time>' . $time_string;\n }\n\n $time_string = sprintf($time_string,\n esc_attr(get_the_date('c')),\n esc_html(get_the_date()),\n esc_attr(get_the_modified_date('c')),\n esc_html(get_the_modified_date())\n );\n\n // If our date is enabled, show it.\n if ($date) {\n echo apply_filters('generate_post_date_output',\n sprintf( // WPCS: XSS ok, sanitization ok.\n '<span class=\"posted-on\">%1$s<a href=\"%2$s\" title=\"%3$s\" rel=\"bookmark\">%4$s</a></span>&nbsp;',\n apply_filters('generate_inside_post_meta_item_output', '', 'date'),\n esc_url(get_permalink()),\n esc_attr(get_the_time()),\n $time_string\n ),\n $time_string);\n }\n }\n\n if ('author' === $item) {\n $author = apply_filters('generate_post_author', true);\n\n if ($author) {\n echo apply_filters('generate_post_author_output',\n sprintf('<span class=\"byline\">%1$s<span class=\"author vcard\" %5$s><a class=\"url fn n\" href=\"%2$s\" title=\"%3$s\" rel=\"author\" itemprop=\"url\"><span class=\"author-name\" itemprop=\"name\">%4$s</span></a></span></span> ',\n apply_filters('generate_inside_post_meta_item_output', '', 'author'),\n esc_url(get_author_posts_url(get_the_author_meta('ID'))),\n /* translators: 1: Author name */\n\n esc_attr(sprintf(__('View all posts by %s', 'generatepress'), get_the_author())),\n\n esc_html(get_the_author()),\n generate_get_microdata('post-author')\n )\n );\n }\n }\n\n if ('categories' === $item) {\n $categories = apply_filters('generate_show_categories', true);\n\n $term_separator = apply_filters('generate_term_separator', _x(', ', 'Used between list items, there is a space after the comma.', 'generatepress'), 'categories');\n $categories_list = get_the_category_list($term_separator);\n\n if ($categories_list && $categories) {\n echo apply_filters('generate_category_list_output',\n sprintf('<span class=\"cat-links\">%3$s<span class=\"screen-reader-text\">%1$s </span>%2$s</span> ', // WPCS: XSS ok, sanitization ok.\n esc_html_x('Categories', 'Used before category names.', 'generatepress'),\n $categories_list,\n apply_filters('generate_inside_post_meta_item_output', '', 'categories')\n )\n );\n }\n }\n\n if ('tags' === $item) {\n $tags = apply_filters('generate_show_tags', true);\n\n $term_separator = apply_filters('generate_term_separator', _x(', ', 'Used between list items, there is a space after the comma.', 'generatepress'), 'tags');\n $tags_list = get_the_tag_list('', $term_separator);\n\n if ($tags_list && $tags) {\n echo apply_filters('generate_tag_list_output',\n sprintf('<span class=\"tags-links\">%3$s<span class=\"screen-reader-text\">%1$s </span>%2$s</span> ', // WPCS: XSS ok, sanitization ok.\n esc_html_x('Tags', 'Used before tag names.', 'generatepress'),\n $tags_list,\n apply_filters('generate_inside_post_meta_item_output', '', 'tags')\n )\n );\n }\n }\n\n if ('comments-link' === $item) {\n $comments = apply_filters('generate_show_comments', true);\n\n if ($comments && !post_password_required() && (comments_open() || get_comments_number())) {\n echo '<span class=\"comments-link\">';\n echo apply_filters('generate_inside_post_meta_item_output', '', 'comments-link');\n comments_popup_link(__('Leave a comment', 'generatepress'), __('1 Comment', 'generatepress'), __('% Comments', 'generatepress'));\n echo '</span> ';\n }\n }\n\n /**\n * generate_post_meta_items hook.\n *\n * @since 2.4\n */\n do_action('generate_post_meta_items', $item);\n}", "function smart_foundation_posted_on() {\n\t$time_string = '<time class=\"entry-date published\" datetime=\"%1$s\">%2$s</time>';\n\tif ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {\n\t\t$time_string .= '<time class=\"updated\" datetime=\"%3$s\">%4$s</time>';\n\t}\n\n\t$time_string = sprintf( $time_string,\n\t\tesc_attr( get_the_date( 'c' ) ),\n\t\tesc_html( get_the_date() ),\n\t\tesc_attr( get_the_modified_date( 'c' ) ),\n\t\tesc_html( get_the_modified_date() )\n\t);\n\n\tprintf( __( '<span class=\"posted-on\">Posted on %1$s</span><span class=\"byline\"> by %2$s</span>', 'smart_foundation' ),\n\t\tsprintf( '<a href=\"%1$s\" rel=\"bookmark\">%2$s</a>',\n\t\t\tesc_url( get_permalink() ),\n\t\t\t$time_string\n\t\t),\n\t\tsprintf( '<span class=\"author\"><a class=\"url fn n\" href=\"%1$s\">%2$s</a></span>',\n\t\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n\t\t\tesc_html( get_the_author() )\n\t\t)\n\t);\n}", "protected function addMeta() {\n foreach ($this->meta_info as $key => $meta) {\n $this->header.=\"<meta name='\" . $key . \"' content='\" . $meta . \"' /> \\n\";\n }\n }", "public function render_screen_meta()\n {\n }", "function wprt_entry_meta() {\n\t// Get meta items from theme mod\n\t$meta_item = wprt_get_mod( 'blog_entry_meta_items', array( 'date', 'author', 'comments' ) );\n\n\t// If blocks are 100% empty return defaults\n\t$meta_item = $meta_item ? $meta_item : 'date,author,comments';\n\n\t// Turn into array if string\n\tif ( $meta_item && ! is_array( $meta_item ) ) {\n\t\t$meta_item = explode( ',', $meta_item );\n\t}\n\n\t// Set keys equal to values\n\t$meta_item = array_combine( $meta_item, $meta_item );\n\n\t// Loop through items\n\tforeach ( $meta_item as $item ) :\n\t\tif ( 'author' == $item ) { \n\t\t\tprintf( '<span class=\"post-by-author item\"><span class=\"inner\">By <a href=\"%s\" title=\"%s\" rel=\"author\">%s</a></span></span>',\n\t\t\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n\t\t\t\tesc_attr( sprintf( esc_html__( 'View all posts by %s', 'fundrize' ), get_the_author() ) ),\n\t\t\t\tget_the_author()\n\t\t\t\t);\n\t\t}\n\t\telseif ( 'date' == $item ) {\n\t\t\tprintf( '<span class=\"post-date item\"><span class=\"inner\"><span class=\"entry-date\">%1$s</span></span></span>',\n\t\t\t\tget_the_date()\n\t\t\t);\n\t\t}\n\t\telseif ( 'comments' == $item ) {\n\t\t\tif ( comments_open() || get_comments_number() ) {\n\t\t\t\techo '<span class=\"post-comment item\"><span class=\"inner\">';\n\t\t\t\tcomments_popup_link( esc_html__( '0 comment', 'fundrize' ), esc_html__( '1 Comment', 'fundrize' ), esc_html__( '% Comments', 'fundrize' ) );\n\t\t\t\techo '</span></span>';\n\t\t\t}\n\t\t}\n\t\telseif ( 'categories' == $item ) {\n\t\t\techo '<span class=\"post-meta-categories item\"><span class=\"inner\">';\n\t\t\tthe_category( ', ', get_the_ID() );\n\t\t\techo '</span></span>';\n\t\t}\n\tendforeach;\n}", "function labs_posted_on() {\n\tprintf( __( '<span class=\"sep\">Posted on </span><a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\">%4$s</time></a><span class=\"by-author\"> <span class=\"sep\"> by </span> <span class=\"author vcard\"><a class=\"url fn n\" href=\"%5$s\" title=\"%6$s\" rel=\"author\">%7$s</a></span></span>', 'labs' ),\n\t\tesc_url( get_permalink() ),\n\t\tesc_attr( get_the_time('G:i') ),\n\t\tesc_attr( get_the_date( 'Y-m-d' ) ),\n\t\tesc_html( get_the_date('Y-m-d') ),\n\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n\t\tesc_attr( sprintf( __( 'View all posts by %s', 'labs' ), get_the_author() ) ),\n\t\tget_the_author()\n\t);\n}", "function generate_posted_on()\n {\n $items = apply_filters('generate_header_entry_meta_items', array(\n 'date',\n 'author',\n ));\n\n foreach ($items as $item) {\n generate_do_post_meta_item($item);\n }\n }", "function delivery_get_posted_on() {\n\t$time_string = '<time class=\"entry-date published\" datetime=\"%1$s\" ' . hybrid_get_attr( 'entry-published' ) . '>%2$s</time>';\n\n\t$time_string = sprintf( $time_string,\n\t\tesc_attr( get_the_date( 'c' ) ),\n\t\tesc_html( get_the_date() )\n\t);\n\n\t$meta = sprintf( __( '<span class=\"posted-on\">%1$s</span><span class=\"byline\"> &#8211; by %2$s</span>', 'delivery-lite' ),\n\t\tsprintf( '<a href=\"%1$s\" rel=\"bookmark\">%2$s</a>',\n\t\t\tesc_url( get_permalink() ),\n\t\t\t$time_string\n\t\t),\n\t\tsprintf( '<span class=\"author vcard\" ' . hybrid_get_attr( 'entry-author' ) . '><a class=\"url fn n\" href=\"%1$s\" itemprop=\"url\"><span itemprop=\"name\">%2$s</span></a></span>',\n\t\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n\t\t\tesc_html( get_the_author() )\n\t\t)\n\t);\n\n\treturn $meta;\n}", "public function meta($name = \"\", $content =\"\") {\n echo \"<meta name='\" . $name . \"' content ='\" . $content . \"'>\";\n }", "function newsdot_posted_on() {\n\t\tif ( get_theme_mod( 'newsdot_show_post_date', true ) ) :\n\t\t\t$time_string = '<time class=\"entry-date published updated\" datetime=\"%1$s\">%2$s</time>';\n\t\t\tif ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {\n\t\t\t\t$time_string = '<time class=\"entry-date published\" datetime=\"%1$s\">%2$s</time><time class=\"updated\" datetime=\"%3$s\">%4$s</time>';\n\t\t\t}\n\n\t\t\t$time_string = sprintf(\n\t\t\t\t$time_string,\n\t\t\t\tesc_attr( get_the_date( DATE_W3C ) ),\n\t\t\t\tesc_html( get_the_date() ),\n\t\t\t\tesc_attr( get_the_modified_date( DATE_W3C ) ),\n\t\t\t\tesc_html( get_the_modified_date() )\n\t\t\t);\n\n\t\t\t?>\n\n\t\t\t<span class=\"posted-on\">\n\t\t\t\t<i class=\"far fa-calendar\"></i>\n\t\t\t\t<a href=\"<?php echo esc_url( get_permalink() ); ?>\" rel=\"bookmark\"><?php echo $time_string; ?></a>\n\t\t\t</span>\n\n\t\t\t<?php\n\t\tendif;\n\t}", "function medical_rehab_posted_on() {\r\n\t$time_string = '<time class=\"entry-date published updated\" datetime=\"%1$s\">%2$s</time>';\r\n\tif ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {\r\n\t\t$time_string = '<time class=\"entry-date published\" datetime=\"%1$s\">%2$s</time><time class=\"updated\" datetime=\"%3$s\">%4$s</time>';\r\n\t}\r\n\r\n\t$time_string = sprintf( $time_string,\r\n\t\tesc_attr( get_the_date( 'c' ) ),\r\n\t\tesc_html( get_the_date() ),\r\n\t\tesc_attr( get_the_modified_date( 'c' ) ),\r\n\t\tesc_html( get_the_modified_date() )\r\n\t);\r\n\r\n\t$posted_on = sprintf(\r\n\t\t_x( 'Posted on %s', 'post date', 'medical-rehab' ),\r\n\t\t'<a href=\"' . esc_url( get_permalink() ) . '\" rel=\"bookmark\">' . $time_string . '</a>'\r\n\t);\r\n\r\n\t$byline = sprintf(\r\n\t\t_x( 'by %s', 'post author', 'medical-rehab' ),\r\n\t\t'<span class=\"author vcard\"><a class=\"url fn n\" href=\"' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '\">' . esc_html( get_the_author() ) . '</a></span>'\r\n\t);\r\n\r\n\techo '<span class=\"posted-on\">' . $posted_on . '</span><span class=\"byline\"> ' . $byline . '</span>';\r\n\r\n}", "public function get_author_meta( $post ){\n $author = get_the_author_meta( 'display_name', $post->post_author );\n return '<div><span class=\"wm-title\">Author:</span> ' . $author . '</div>';\n }", "function site_name_meta() {\n echo '<meta name=\"site_name\" content=\"' . get_bloginfo('name') . '\">';\n}", "public function meta_box() {\r\n\t\tglobal $post;\r\n\t\t\r\n\t\t// \r\n\t\tif ( isset( $_GET['post'] ) )\r\n\t\t\t$post_ID = (int) $_GET['post'];\r\n\t\telse\r\n\t\t\t$post_ID = '';\r\n\r\n\t\tforeach( $this->post_meta as $key => $value ) {\r\n\t\t\tif (\r\n\t\t\t\t'previous_start' == $key ||\r\n\t\t\t\t'previous_end' == $key ||\r\n\t\t\t\t'total_start' == $key ||\r\n\t\t\t\t'total_end' == $key\r\n\t\t\t) {\r\n\t\t\t\t$time_value = get_post_meta( $post_ID, '_' . $key, true );\r\n\t\t\t\t$time = date( 'h:m d M Y', $time_value );\r\n\t\t\t} else {\r\n\t\t\t\t$time = '';\r\n\t\t\t}\r\n\r\n\t\t\techo '\r\n\t\t\t<p>\r\n\t\t\t\t<label for=\"_' . $key . '\">' . $value . '</label>\r\n\t\t\t\t<br />\r\n\t\t\t\t<input type=\"text\" name=\"_' . $key . '\" id=\"_' . $key . '\" value=\"' . get_post_meta( $post_ID, '_' . $key, true ) . '\" />\r\n\t\t\t\t<br />\r\n\t\t\t\t<small>' . $time . '</small>\r\n\t\t\t</p>';\r\n\t\t\tunset( $time );\r\n\t\t}\r\n\t}", "function twenty_twenty_one_posted_on() {\n\t\t$time_string = '<time class=\"entry-date published updated\" datetime=\"%1$s\">%2$s</time>';\n\n\t\t$time_string = sprintf(\n\t\t\t$time_string,\n\t\t\tesc_attr( get_the_date( DATE_W3C ) ),\n\t\t\tesc_html( get_the_date() )\n\t\t);\n\t\techo '<span class=\"posted-on\">';\n\t\tprintf(\n\t\t\t/* translators: %s: Publish date. */\n\t\t\tesc_html__( 'Published %s', 'twentytwentyone' ),\n\t\t\t$time_string // phpcs:ignore WordPress.Security.EscapeOutput\n\t\t);\n\t\techo '</span>';\n\t}", "function gravit_posted_on() {\r\r\n\t$time_string = '<time class=\"entry-date published\" datetime=\"%1$s\">%2$s</time>';\r\r\n\t\r\r\n\t$time_string = sprintf( $time_string,\r\r\n\t\tesc_attr( get_the_date( 'c' ) ),\r\r\n\t\tesc_html( get_the_date() )\r\r\n\t);\r\r\n\r\r\n\tif ( is_sticky() ) { \r\r\n\t\techo '<span class=\"sticky-meta\"><i class=\"fa fa-exclamation-circle\"></i> ' . __('Sticky','gravit') .'</span>';\r\r\n\t}\r\r\n\r\r\n\tif ( !is_single( ) ) {\r\r\n\t\tprintf( __( '<span class=\"posted-on\">%1$s</span>', 'gravit' ),\r\r\n\t\t\tsprintf( '<a href=\"%1$s\" rel=\"bookmark\">%2$s</a>',\r\r\n\t\t\t\tesc_url( get_permalink() ),\r\r\n\t\t\t\t$time_string\r\r\n\t\t\t),\r\r\n\t\t\tsprintf( '<span class=\"author vcard\"><a class=\"url fn n\" href=\"%1$s\">%2$s</a></span>',\r\r\n\t\t\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\r\r\n\t\t\t\tesc_html( get_the_author() )\r\r\n\t\t\t)\r\r\n\t\t);\r\r\n\r\r\n\t} else { /* don't display permalink on single post view */\r\r\n\t\tprintf( __( '<span class=\"posted-on\">%1$s</span>', 'gravit' ),\r\r\n\t\t\tsprintf( '%2$s',\r\r\n\t\t\t\tesc_url( get_permalink() ),\r\r\n\t\t\t\t$time_string\r\r\n\t\t\t),\r\r\n\t\t\tsprintf( '<span class=\"author vcard\">%%2$s</span>',\r\r\n\t\t\t\tesc_html( get_the_author() )\r\r\n\t\t\t)\r\r\n\t\t);\r\r\n\t}\r\r\n\r\r\n\tif ( comments_open() ) :\r\r\n\t\techo '<span class=\"sep-meta\"></span> <span class=\"comments-meta\">';\t\t\t\t\r\r\n\t\techo comments_popup_link( '<span class=\"leave-reply\">' . __( 'Leave a reply', 'gravit' ) . '</span>', __( '1 Reply', 'gravit' ), __( '% Replies', 'gravit' ) ) . '</span>';\r\r\n\tendif; // comments_open();\r\r\n\r\r\n}", "public function time() {\n\n\t\t\t$date = $this->date();\n\t\t\t$output = '<time class=\"post-date\" datetime=\"'.$date['datetime'].'\" title=\"'.$date['posted'].'\">'.$date['date'].'</time>'.\"\\n\";\n\n\t\t\treturn $output;\n\t\t}", "function header_meta() {\n\t$humans = '<link type=\"text/plain\" rel=\"author\" href=\"' . WPDOC_HLTR_URL . '/humans.txt\" />';\n\n\techo apply_filters( 'wpd_humans', $humans );\n}", "public function add_meta() {\n\t\techo \"\\n<meta data-plugin='a04_vertical_button' name='description' content='a sample meta description for this website'/>\\n\\n\";\n\t}", "function twentytwelve_entry_meta() {\n // Translators: used between list items, there is a space after the comma.\n $categories_list = get_the_category_list(__(', ', 'twentytwelve'));\n\n // Translators: used between list items, there is a space after the comma.\n $tag_list = get_the_tag_list('', __(', ', 'twentytwelve'));\n\n $date = sprintf('<a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\">%4$s</time></a>', esc_url(get_permalink()), esc_attr(get_the_time()), esc_attr(get_the_date('c')), esc_html(get_the_date())\n );\n\n $author = sprintf('<span class=\"author vcard\"><a class=\"url fn n\" href=\"%1$s\" title=\"%2$s\" rel=\"author\">%3$s</a></span>', esc_url(get_author_posts_url(get_the_author_meta('ID'))), esc_attr(sprintf(__('View all posts by %s', 'twentytwelve'), get_the_author())), get_the_author()\n );\n\n // Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name.\n if ($tag_list) {\n $utility_text = __('This entry was posted in %1$s and tagged %2$s on %3$s<span class=\"by-author\"> by %4$s</span>.', 'twentytwelve');\n } elseif ($categories_list) {\n $utility_text = __('This entry was posted in %1$s on %3$s<span class=\"by-author\"> by %4$s</span>.', 'twentytwelve');\n } else {\n $utility_text = __('This entry was posted on %3$s<span class=\"by-author\"> by %4$s</span>.', 'twentytwelve');\n }\n\n printf(\n $utility_text, $categories_list, $tag_list, $date, $author\n );\n }", "function twentytwelve_entry_meta() {\n\t// Translators: used between list items, there is a space after the comma.\n\t$categories_list = get_the_category_list( __( ', ', 'twentytwelve' ) );\n\t// Translators: used between list items, there is a space after the comma.\n\t$tag_list = get_the_tag_list( '', __( ', ', 'twentytwelve' ) );\n\t$date = sprintf( '<a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\">%4$s</time></a>',\n\t\tesc_url( get_permalink() ),\n\t\tesc_attr( get_the_time() ),\n\t\tesc_attr( get_the_date( 'c' ) ),\n\t\tesc_html( get_the_date() )\n\t);\n\t$author = sprintf( '<span class=\"author vcard\"><a class=\"url fn n\" href=\"%1$s\" title=\"%2$s\" rel=\"author\">%3$s</a></span>',\n\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n\t\tesc_attr( sprintf( __( 'View all posts by %s', 'twentytwelve' ), get_the_author() ) ),\n\t\tget_the_author()\n\t);\n\t// Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name.\n\tif ( $tag_list ) {\n\t\t$utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class=\"by-author\"> by %4$s</span>.', 'twentytwelve' );\n\t} elseif ( $categories_list ) {\n\t\t$utility_text = __( 'This entry was posted in %1$s on %3$s<span class=\"by-author\"> by %4$s</span>.', 'twentytwelve' );\n\t} else {\n\t\t$utility_text = __( 'This entry was posted on %3$s<span class=\"by-author\"> by %4$s</span>.', 'twentytwelve' );\n\t}\n\tprintf(\n\t\t$utility_text,\n\t\t$categories_list,\n\t\t$tag_list,\n\t\t$date,\n\t\t$author\n\t);\n}", "function hybrid_entry_meta() {\n\n\t$meta = '';\n\n\tif ( 'post' == get_post_type() )\n\t\t$meta = '<p class=\"entry-meta\">' . __( '[entry-terms taxonomy=\"category\" before=\"Posted in \"] [entry-terms taxonomy=\"post_tag\" before=\"| Tagged \"] [entry-comments-link before=\"| \"]', 'hybrid' ) . '</p>';\n\n\telseif ( is_page() && current_user_can( 'edit_page', get_the_ID() ) )\n\t\t$meta = '<p class=\"entry-meta\">[entry-edit-link]</p>';\n\n\techo apply_atomic_shortcode( 'entry_meta', $meta );\n}", "function twentytwelve_entry_meta() {\n\t// Translators: used between list items, there is a space after the comma.\n\t$categories_list = get_the_category_list( __( ', ', 'twentytwelve' ) );\n\n\t// Translators: used between list items, there is a space after the comma.\n\t$tag_list = get_the_tag_list( '', __( ', ', 'twentytwelve' ) );\n\n\t$date = sprintf( '<a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\">%4$s</time></a>',\n\t\tesc_url( get_permalink() ),\n\t\tesc_attr( get_the_time() ),\n\t\tesc_attr( get_the_date( 'c' ) ),\n\t\tesc_html( get_the_date() )\n\t);\n\n\t$author = sprintf( '<span class=\"author vcard\"><a class=\"url fn n\" href=\"%1$s\" title=\"%2$s\" rel=\"author\">%3$s</a></span>',\n\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n\t\tesc_attr( sprintf( __( 'View all posts by %s', 'twentytwelve' ), get_the_author() ) ),\n\t\tget_the_author()\n\t);\n\n\t// Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name.\n\tif ( $tag_list ) {\n\t\t$utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class=\"by-author\"> by %4$s</span>.', 'twentytwelve' );\n\t} elseif ( $categories_list ) {\n\t\t$utility_text = __( 'This entry was posted in %1$s on %3$s<span class=\"by-author\"> by %4$s</span>.', 'twentytwelve' );\n\t} else {\n\t\t$utility_text = __( 'This entry was posted on %3$s<span class=\"by-author\"> by %4$s</span>.', 'twentytwelve' );\n\t}\n\n\tprintf(\n\t\t$utility_text,\n\t\t$categories_list,\n\t\t$tag_list,\n\t\t$date,\n\t\t$author\n\t);\n}", "function program_meta_display($date = false,$time=false,$venue=false, $artist=false,$price=false,$eventbrite_link=false,$concession_link=false,$id=false){\n\t$return = '<div class=\"post-details\">';\n\t$return .= '<div class=\"date\"><h4>Date:&nbsp;</h4><span>'.$date.'</span></div>';\n\t$return .= '<div class=\"time\"><h4>Time:&nbsp;</h4><span>'.$time.'</span></div>';\n\t$return .= '<div class=\"venue\"><h4>Venue:&nbsp;</h4><a href=\"'. get_permalink($venue->ID).'\">'.$venue->post_title.'</a></div>';\n\tif ($artist && count($artist)>0):\t\t\n\t\t$return .= '<ul class=\"meta artist\"><h4>Artists:</h4>';\n\t\tforeach($artist as $artist):\n\t\t\t$return .= '<li><a href=\"'.get_permalink($artist->ID).'\">'.$artist->post_title.'</a></li>';\n\t\tendforeach;\n\t$return .= '</ul>';\n\tendif;\n\t//Start\n\t//Get Taxonomy\n\t\n\t$meta_list = array();\n\t$args = array(\n\t\t\t\t'type' => 'Elements',\n\t\t);\n\t$meta = get_the_term_list($id,'Elements','<li>','</li><li>','</li>');\n\t\n\tif ($meta){//check if there is any meta data returns (get_the_term_list returns false if empty)\n\t\t$return .= '<ul class=\"elements\">';\n\t\t$return .= '<h4>Elements</h4>';\n\t\t$meta_stripped = strip_tags($meta,'<li>'); \n\t\t$_SESSION['meta'] = $meta_stripped;\n\t\t$return .= $meta_stripped;\n\t\t$return .= '</ul>';\n\t}\n\t//Get Taxonomy\n\t//End\n\t$return .= '<ul class=\"price\">';\n\t$return .= '<h4>Price</h4>';\n\t\tif (strtolower($price) == \"free\"){ \n\t\t\t$return .='<li><span>'.$price.'</span></li>'; \n\t\t} elseif ($price != \"\") {\n\t\t\t$return .='<li><span>£'.$price.'</span></li>'; \n\t\t}\n\t\tif ($eventbrite_link != \"\")\n\t\t{ $return .='<li class=\"tickets\"><a href=\"'. $eventbrite_link.'\" target=\"_blank\"><img src=\"'.get_bloginfo('template_url').'/style/images/tickets.png\" /></a></li>';\n\t\t}\n\t\t\n\t\tif ($concession_link != \"\") \n\t\t\n\t\t{$return .='<li class=\"tickets\"><a href=\"'. $concession_link .'\" target=\"_blank\">Concessions</a></li>'; \n\t\t} \n\t$return .='</ul>';\n\t\n\t\n\t$return .= '</ul>';\n\t$return .= '</div>';\n\t\n\treturn $return;\n\t\n}", "public function head_meta() {\n\t\t\t\n\t\t\t$output = '';\n\t\t\t\n\t\t\tif( current_theme_supports( 'responsive' ) )\n\t\t\t\t$output .= '<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no\">';\n\t\t\t\n\t\t\techo $output;\n\t\t\t\n\t\t}", "function bt_posted_on() {\n\t$time_string = '<time class=\"entry-date published\" datetime=\"%1$s\">%2$s</time>';\n\tif ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) )\n\t\t$time_string .= '<time class=\"updated\" datetime=\"%3$s\">%4$s</time>';\n\n\t$time_string = sprintf( $time_string,\n\t\tesc_attr( get_the_date( 'c' ) ),\n\t\tesc_html( get_the_date() ),\n\t\tesc_attr( get_the_modified_date( 'c' ) ),\n\t\tesc_html( get_the_modified_date() )\n\t);\n\n\tprintf( __( '<span class=\"posted-on\">Posted on %1$s</span><span class=\"byline\"> by %2$s</span>', '_s' ),\n\t\tsprintf( '<a href=\"%1$s\" rel=\"bookmark\">%2$s</a>',\n\t\t\tesc_url( get_permalink() ),\n\t\t\t$time_string\n\t\t),\n\t\tsprintf( '<span class=\"author vcard\"><a class=\"url fn n\" href=\"%1$s\">%2$s</a></span>',\n\t\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n\t\t\tesc_html( get_the_author() )\n\t\t)\n\t);\n}", "function twentytwelve_entry_meta() {\n\t// Translators: used between list items, there is a space after the comma.\n\t$categories_list = get_the_category_list( __( ', ', 'twentytwelve' ) );\n\n\t// Translators: used between list items, there is a space after the comma.\n\t$tag_list = get_the_tag_list( '', __( ', ', 'twentytwelve' ) );\n\n\t$date = sprintf( '<a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\" pubdate>%4$s</time></a>',\n\t\tesc_url( get_permalink() ),\n\t\tesc_attr( get_the_time() ),\n\t\tesc_attr( get_the_date( 'c' ) ),\n\t\tesc_html( get_the_date() )\n\t);\n\n\t$author = sprintf( '<span class=\"author vcard\"><a class=\"url fn n\" href=\"%1$s\" title=\"%2$s\" rel=\"author\">%3$s</a></span>',\n\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n\t\tesc_attr( sprintf( __( 'View all posts by %s', 'twentytwelve' ), get_the_author() ) ),\n\t\tget_the_author()\n\t);\n\n\t// Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name.\n\tif ( $tag_list ) {\n\t\t$utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class=\"by-author\"> by %4$s</span>.', 'twentytwelve' );\n\t} elseif ( $categories_list ) {\n\t\t$utility_text = __( 'This entry was posted in %1$s on %3$s<span class=\"by-author\"> by %4$s</span>.', 'twentytwelve' );\n\t} else {\n\t\t$utility_text = __( 'This entry was posted on %3$s<span class=\"by-author\"> by %4$s</span>.', 'twentytwelve' );\n\t}\n\n\tprintf(\n\t\t$utility_text,\n\t\t$categories_list,\n\t\t$tag_list,\n\t\t$date,\n\t\t$author\n\t);\n}", "function luminate_posted_on() {\n\n\tif ( get_theme_mod( 'display-post-dates', 1 ) ) :\n\n\t\t$time_string = '<time class=\"entry-date published\" datetime=\"%1$s\">%2$s</time>';\n\n\t\t$time_string = sprintf( $time_string,\n\t\t\tesc_attr( get_the_date( 'c' ) ),\n\t\t\tesc_html( get_the_date() )\n\t\t);\n\n\t\t$posted_on = sprintf(\n\t\t\t_x( '%s', 'post date', 'luminate' ),\n\t\t\t'<a href=\"' . esc_url( get_permalink() ) . '\" rel=\"bookmark\">' . $time_string . '</a>'\n\t\t);\n\n\t\t$byline = sprintf(\n\t\t\t_x( 'By %s', 'post author', 'luminate' ),\n\t\t\t'<span class=\"author vcard\"><a class=\"url fn n\" href=\"' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '\">' . esc_html( get_the_author() ) . '</a></span>'\n\t\t);\n\n\t\techo '<span class=\"posted-on\">' . $posted_on . '</span>';\n\t\techo '<span class=\"byline\"> ' . $byline . '</span>';\n\n\tendif;\n\n}", "function get_fb_meta(){\r print('<meta property=\"og:title\" content=\"'. site_title .'\" />');\r print('<meta property=\"og:type\" content=\"'. site_type .'\" />');\r print('<meta property=\"og:url\" content=\"'. site_url .'\" />');\r print('<meta property=\"og:image\" content=\"'. site_photo_url .'\" />');\r print('<meta property=\"og:site_name\" content=\"'. site_name .'\" />');\r print('<meta property=\"fb:app_id\" content=\"'. site_fb_appid .'\" />');\r}", "function addMeta() {\n\t\n\tif( class_exists('acf') ) {\n\n\t$meta_description = get_field('meta_description', 'option');\n\t$meta_keywords = get_field('meta_keywords', 'option');\n\t$meta_author = get_field('meta_author', 'option');\n\t$meta_og_image = get_field('meta_og_img', 'option');\n\t$meta_img_full = $meta_og_image['url'];\n\n\t}\n\n\tif ( $meta_description ) {\n\t\techo '<meta name=\"description\" content=\"'.$meta_description.'\">'; \n\t}\n\n\tif ( $meta_keywords ) {\n\t\techo '<meta name=\"keywords\" content=\"'.$meta_keywords.'\">'; \n\t}\n\n\tif ( $meta_author ) {\n\t\techo '<meta name=\"author\" content=\"'.$meta_author.'\">'; \n\t}\n\n\tif ( $meta_og_image ) {\n\t\techo '<meta name=\"twitter:card\" content=\"summary\" />';\n\t\techo '<meta property=\"og:image\" content=\"'.$meta_img_full.'\" />';\n\t}\n\n}", "function flatsome_posted_on() {\n $time_string = '<time class=\"entry-date published updated\" datetime=\"%1$s\">%2$s</time>';\n if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {\n $time_string = '<time class=\"entry-date published\" datetime=\"%1$s\">%2$s</time><time class=\"updated\" datetime=\"%3$s\">%4$s</time>';\n }\n\n $time_string = sprintf( $time_string,\n esc_attr( get_the_date( 'c' ) ),\n esc_html( get_the_date() ),\n esc_attr( get_the_modified_date( 'c' ) ),\n esc_html( get_the_modified_date() )\n );\n\n $posted_on = sprintf(\n esc_html_x( 'Posted on %s', 'post date', 'flatsome' ),\n '<a href=\"' . esc_url( get_permalink() ) . '\" rel=\"bookmark\">' . $time_string . '</a>'\n );\n\n $byline = sprintf(\n esc_html_x( 'by %s', 'post author', 'flatsome' ),\n '<span class=\"meta-author vcard\"><a class=\"url fn n\" href=\"' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '\">' . esc_html( get_the_author() ) . '</a></span>'\n );\n\n echo '<span class=\"posted-on\">' . $posted_on . '</span><span class=\"byline\"> ' . $byline . '</span>';\n\n}", "function myplugin_add_meta_box() {\n\tadd_meta_box( 'mod_date', 'Last modified on: ', 'modified_callback', 'location', 'side','high');\n}", "function meta_html($post)\n {\n $view = new Xby2BaseView(get_post_meta($post->ID));\n $view->addInput('text', 'link-label', 'Label: ', 'label', 'regular-text');\n $view->addInput('text', 'link-link', 'Link: ', 'link', 'large-text');\n $view->addInput('text', 'link-priority', 'Priority: ', 'priority', 'regular-text');\n $view->displayForm();\n }", "public function post_metabox_display( $post ) {\n\n\t\t$sailthru_post_expiration = get_post_meta( $post->ID, 'sailthru_post_expiration', true );\n\t\t$sailthru_meta_tags = get_post_meta( $post->ID, 'sailthru_meta_tags', true );\n\n\t\twp_nonce_field( plugin_basename( __FILE__ ), $this->nonce );\n\n\t\t// post expiration\n\t\t$html = '<p><strong>Sailthru Post Expiration</strong></p>';\n\t\t$html .= '<input id=\"sailthru_post_expiration\" type=\"text\" placeholder=\"YYYY-MM-DD\" name=\"sailthru_post_expiration\" value=\"' . esc_attr( $sailthru_post_expiration ) . '\" size=\"25\" class=\"datepicker\" />';\n\t\t$html .= '<p class=\"description\">';\n\t\t$html .= 'Flash sales, events and some news stories should not be recommended after a certain date and time. Use this Sailthru-specific meta tag to prevent Horizon from suggesting the content at the given point in time. <a href=\"http://docs.sailthru.com/documentation/products/horizon-data-collection/horizon-meta-tags\" target=\"_blank\">More information can be found here</a>.';\n\t\t$html .= '</p><!-- /.description -->';\n\n\t\t// post meta tags\n\t\t$html .= '<p>&nbsp;</p>';\n\t\t$html .= '<p><strong>Sailthru Meta Tags</strong></p>';\n\t\t$html .= '<input id=\"sailthru_meta_tags\" type=\"text\" name=\"sailthru_meta_tags\" value=\"' . esc_attr( $sailthru_meta_tags ) . '\" size=\"25\" />';\n\t\t$html .= '<p class=\"description\">';\n\t\t$html .= 'Tags are used to measure user interests and later to send them content customized to their tastes.';\n\t\t$html .= '</p><!-- /.description -->';\n\t\t$html .= '<p class=\"howto\">Separate tags with commas</p>';\n\n\t\techo esc_html( $html );\n\n\t}", "public function print_metadata_box($post) {\n // presses save, the application will check that the nonce field is still declared and\n // that is the same that the one provided here. If they don't match, probably something\n // nasty happened (or maybe just there was a bug).\n wp_nonce_field('makigas_metabox_video', 'makigas_metabox_nonce');\n\n // Put the fields.\n $this->print_field( $post, '_video_id', __( 'Video ID', 'makigas-videoman' ) );\n $this->print_field( $post, '_episode', __( 'Episode Number', 'makigas-videoman' ) );\n $this->print_field( $post, '_length', __( 'Length', 'makigas-videoman' ) );\n }", "private function _print_html_head_metatags()\n\t{\n\t\treturn \"<meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset={$this->charset}\\\" />\\n\";\n\t}", "public static function meta();", "public function getMeta(){\n // $this->meta();\n }", "function single_post_header_output() {\n\n global $ti_option;\n \n?>\n\n <header class=\"wrapper entry-header page-header\">\n <div class=\"entry-meta\">\n <?php \n // Post meta data: Category & Date \n if ( $ti_option['single_post_cat_name'] == true ) {\n echo '<span class=\"entry-category\">'; the_category(', '); echo '</span>';\n }\n\n if ( $ti_option['single_post_date'] == 1 ) {\n echo '<time class=\"entry-date published\" datetime=\"' . get_the_time( 'c' ) . '\">' . get_the_time( get_option( 'date_format' ) ) . '</time>';\n echo '<time class=\"updated\" datetime=\"' . get_the_modified_date( 'c' ) . '\">' . get_the_modified_date( get_option( 'date_format' ) ) . '</time>';\n }\n ?>\n </div>\n <div class=\"page-title title-with-sep single-title\">\n <h1 class=\"entry-title\"><?php the_title(); ?></h1>\n </div>\n <?php \n // Post Author\n if( $ti_option['single_author_name'] == 1 ) :\n ?>\n <span class=\"entry-author\">\n <span class=\"written-by\"><?php _e( 'by','themetext' ); ?></span>\n <span class=\"author vcard\">\n <a class=\"url fn n\" href=\"<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>\" rel=\"author\"><?php the_author_meta( 'display_name' ); ?></a>\n </span>\n </span>\n <?php endif; ?>\n </header>\n\n\n<?php\n}", "function twentytwelve_entry_meta() {\n\t\t// Translators: used between list items, there is a space after the comma.\n\t\t$categories_list = get_the_category_list( __( ', ', 'twentytwelve' ) );\n\n\t\t// Translators: used between list items, there is a space after the comma.\n\t\t$tag_list = get_the_tag_list( '', __( ', ', 'twentytwelve' ) );\n\n\t\t$date = sprintf(\n\t\t\t'<a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\">%4$s</time></a>',\n\t\t\tesc_url( get_permalink() ),\n\t\t\tesc_attr( get_the_time() ),\n\t\t\tesc_attr( get_the_date( 'c' ) ),\n\t\t\tesc_html( get_the_date() )\n\t\t);\n\n\t\t$author = sprintf(\n\t\t\t'<span class=\"author vcard\"><a class=\"url fn n\" href=\"%1$s\" title=\"%2$s\" rel=\"author\">%3$s</a></span>',\n\t\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n\t\t\tesc_attr( sprintf( __( 'View all posts by %s', 'twentytwelve' ), get_the_author() ) ),\n\t\t\tget_the_author()\n\t\t);\n\n\t\t// Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name.\n\t\tif ( $tag_list ) {\n\t\t\t$utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class=\"by-author\"> by %4$s</span>.', 'twentytwelve' );\n\t\t} elseif ( $categories_list ) {\n\t\t\t$utility_text = __( 'This entry was posted in %1$s on %3$s<span class=\"by-author\"> by %4$s</span>.', 'twentytwelve' );\n\t\t} else {\n\t\t\t$utility_text = __( 'This entry was posted on %3$s<span class=\"by-author\"> by %4$s</span>.', 'twentytwelve' );\n\t\t}\n\n\t\tprintf(\n\t\t\t$utility_text,\n\t\t\t$categories_list,\n\t\t\t$tag_list,\n\t\t\t$date,\n\t\t\t$author\n\t\t);\n\t}", "public function render_meta_box_content( $post ) {\n\t\n\t\t// Add an nonce field so we can check for it later.\n\t\twp_nonce_field( 'question_author', 'question_author_nonce' );\n\n\t\t// Display the form, using the current value.\n\t\techo '<input type=\"text\" id=\"question_author\" name=\"question_author\" value=\"'.esc_attr(get_post_meta( $post->ID, 'question_author', true )).'\" />';\n\t\t//echo '&nbsp;<label for=\"question_author\">'.__( 'Autore domanda', 'piananotizie' ).'</label>';\n\t}", "function twentythirteen_entry_meta() {\n if ( is_sticky() && is_home() && ! is_paged() )\n echo '<span class=\"featured-post\">' . __( 'Sticky', 'twentythirteen' ) . '</span>';\n\n if ( ! has_post_format( 'link' ) && 'post' == get_post_type() )\n twentythirteen_entry_date();\n\n // Translators: used between list items, there is a space after the comma.\n $categories_list = get_the_category_list( __( ', ', 'twentythirteen' ) );\n if ( $categories_list ) {\n echo '<span class=\"categories-links\">' . $categories_list . '</span>';\n }\n\n // Translators: used between list items, there is a space after the comma.\n $tag_list = get_the_tag_list( '', __( ', ', 'twentythirteen' ) );\n if ( $tag_list ) {\n echo '<span class=\"tags-links\">' . $tag_list . '</span>';\n }\n}", "function print_meta_tag() : void {\n\n\t$payment_pointer_id = get_payment_pointer();\n\t$payment_pointer_url = $payment_pointer_id;\n\n\t// check if url starts with $\n\tif ( $payment_pointer_url[0] === '$' ) {\n\t\t// replace $ with https://\n\t\t$payment_pointer_url = str_replace( '$', 'https://', $payment_pointer_url );\n\t\t// remove trailing slash\n\t\t$payment_pointer_url = rtrim( $payment_pointer_url, '/' );\n\t\t// check if url path exists\n\t\t$parsed_url = wp_parse_url( $payment_pointer_url, PHP_URL_PATH );\n\n\t\t// if no url path, append /.well-known/pay\n\t\tif ( empty( $parsed_url ) ) {\n\t\t\t$payment_pointer_url = $payment_pointer_url . '/.well-known/pay';\n\t\t}\n\t}\n\n\tif ( ! empty( $payment_pointer_id ) ) {\n\t\techo '<meta name=\"monetization\" content=\"' . esc_attr( $payment_pointer_id ) . '\" />' . PHP_EOL;\n\t\techo '<link rel=\"monetization\" href=\"' . esc_url( $payment_pointer_url ) . '\" />' . PHP_EOL;\n\t}\n}", "function twenty_twenty_one_entry_meta_footer() {\n\n\t\t// Early exit if not a post.\n\t\tif ( 'post' !== get_post_type() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Hide meta information on pages.\n\t\tif ( ! is_single() ) {\n\n\t\t\tif ( is_sticky() ) {\n\t\t\t\techo '<p>' . esc_html_x( 'Featured post', 'Label for sticky posts', 'twentytwentyone' ) . '</p>';\n\t\t\t}\n\n\t\t\t$post_format = get_post_format();\n\t\t\tif ( 'aside' === $post_format || 'status' === $post_format ) {\n\t\t\t\techo '<p><a href=\"' . esc_url( get_permalink() ) . '\">' . twenty_twenty_one_continue_reading_text() . '</a></p>'; // phpcs:ignore WordPress.Security.EscapeOutput\n\t\t\t}\n\n\t\t\t// Posted on.\n\t\t\ttwenty_twenty_one_posted_on();\n\n\t\t\t// Edit post link.\n\t\t\tedit_post_link(\n\t\t\t\tsprintf(\n\t\t\t\t\t/* translators: %s: Name of current post. Only visible to screen readers. */\n\t\t\t\t\tesc_html__( 'Edit %s', 'twentytwentyone' ),\n\t\t\t\t\t'<span class=\"screen-reader-text\">' . get_the_title() . '</span>'\n\t\t\t\t),\n\t\t\t\t'<span class=\"edit-link\">',\n\t\t\t\t'</span><br>'\n\t\t\t);\n\n\t\t\tif ( has_category() || has_tag() ) {\n\n\t\t\t\techo '<div class=\"post-taxonomies\">';\n\n\t\t\t\t/* translators: Used between list items, there is a space after the comma. */\n\t\t\t\t$categories_list = get_the_category_list( __( ', ', 'twentytwentyone' ) );\n\t\t\t\tif ( $categories_list ) {\n\t\t\t\t\tprintf(\n\t\t\t\t\t\t/* translators: %s: List of categories. */\n\t\t\t\t\t\t'<span class=\"cat-links\">' . esc_html__( 'Categorized as %s', 'twentytwentyone' ) . ' </span>',\n\t\t\t\t\t\t$categories_list // phpcs:ignore WordPress.Security.EscapeOutput\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\t/* translators: Used between list items, there is a space after the comma. */\n\t\t\t\t$tags_list = get_the_tag_list( '', __( ', ', 'twentytwentyone' ) );\n\t\t\t\tif ( $tags_list ) {\n\t\t\t\t\tprintf(\n\t\t\t\t\t\t/* translators: %s: List of tags. */\n\t\t\t\t\t\t'<span class=\"tags-links\">' . esc_html__( 'Tagged %s', 'twentytwentyone' ) . '</span>',\n\t\t\t\t\t\t$tags_list // phpcs:ignore WordPress.Security.EscapeOutput\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\techo '</div>';\n\t\t\t}\n\t\t} else {\n\n\t\t\techo '<div class=\"posted-by\">';\n\t\t\t// Posted on.\n\t\t\ttwenty_twenty_one_posted_on();\n\t\t\t// Posted by.\n\t\t\ttwenty_twenty_one_posted_by();\n\t\t\t// Edit post link.\n\t\t\tedit_post_link(\n\t\t\t\tsprintf(\n\t\t\t\t\t/* translators: %s: Name of current post. Only visible to screen readers. */\n\t\t\t\t\tesc_html__( 'Edit %s', 'twentytwentyone' ),\n\t\t\t\t\t'<span class=\"screen-reader-text\">' . get_the_title() . '</span>'\n\t\t\t\t),\n\t\t\t\t'<span class=\"edit-link\">',\n\t\t\t\t'</span>'\n\t\t\t);\n\t\t\techo '</div>';\n\n\t\t\tif ( has_category() || has_tag() ) {\n\n\t\t\t\techo '<div class=\"post-taxonomies\">';\n\n\t\t\t\t/* translators: Used between list items, there is a space after the comma. */\n\t\t\t\t$categories_list = get_the_category_list( __( ', ', 'twentytwentyone' ) );\n\t\t\t\tif ( $categories_list ) {\n\t\t\t\t\tprintf(\n\t\t\t\t\t\t/* translators: %s: List of categories. */\n\t\t\t\t\t\t'<span class=\"cat-links\">' . esc_html__( 'Categorized as %s', 'twentytwentyone' ) . ' </span>',\n\t\t\t\t\t\t$categories_list // phpcs:ignore WordPress.Security.EscapeOutput\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\t/* translators: Used between list items, there is a space after the comma. */\n\t\t\t\t$tags_list = get_the_tag_list( '', __( ', ', 'twentytwentyone' ) );\n\t\t\t\tif ( $tags_list ) {\n\t\t\t\t\tprintf(\n\t\t\t\t\t\t/* translators: %s: List of tags. */\n\t\t\t\t\t\t'<span class=\"tags-links\">' . esc_html__( 'Tagged %s', 'twentytwentyone' ) . '</span>',\n\t\t\t\t\t\t$tags_list // phpcs:ignore WordPress.Security.EscapeOutput\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\techo '</div>';\n\t\t\t}\n\t\t}\n\t}", "function article_meta($postID) {\r\n\t$articlemeta = '<div class=\"article-meta contain\">'.\"\\n\";\r\n\r\n\t// add to favorites\r\n\tif ( is_user_logged_in() ) {\r\n\r\n\t\t$articlemeta .= '<p class=\"user-meta\">';\r\n\r\n\t\t// if ( indagare\\users\\User::hasFavorite($postID) ) {\r\n\t\t// \t$articlemeta .= '<a href=\"'.get_bloginfo('stylesheet_directory').'/favorite.php?action=remove&postid='.$postID.'\"><b class=\"icon\" data-icon=\"&#xf097;\"></b> Remove from Wish List</a>';\r\n\t\t// } else {\r\n\t\t// \t$articlemeta .= '<a href=\"'.get_bloginfo('stylesheet_directory').'/favorite.php?action=add&postid='.$postID.'\"><b class=\"icon\" data-icon=\"&#xf097;\"></b> Add to Wish List</a>';\r\n\t\t// }\r\n\r\n//\t\t$articlemeta .= ' <a href=\"#\"><b class=\"icon\" data-icon=\"&#xf08a;\"></b> Like</a> (19 likes)';\r\n\r\n\t\t$articlemeta .= '</p>'.\"\\n\";\r\n\t}\r\n\r\n\t$articlemeta .= '<p class=\"social-meta\">';\r\n\t$articlemeta .= '<span class=\"icon-label\">Share:</span>';\r\n\t$articlemeta .= ' <span id=\"social-facebook\"><b class=\"icon custom-icon\" data-icon=\"&#xe003;\"><span class=\"st_facebook\"displayText=\"\"></span></b></span>';\r\n\t$articlemeta .= ' <span id=\"social-twitter\"><b class=\"icon custom-icon\" data-icon=\"&#xe001;\"><span class=\"st_twitter\"></span></b></span>';\r\n\t$articlemeta .= ' <span id=\"social-pinterest\"><b class=\"icon custom-icon\" data-icon=\"&#xe007;\"><span class=\"st_pinterest\"></span></b></span>';\r\n\t$articlemeta .= ' <a id=\"social-email\" class=\"contact lightbox-inline\" href=\"#lightbox-contact-friend\"><b class=\"icon custom-icon\" data-icon=\"&#xe614;\"></b></a>';\r\n\t$articlemeta .= '</p>'.\"\\n\";\r\n\t$articlemeta .= '</div>'.\"\\n\";\r\n\r\n\treturn $articlemeta;\r\n\r\n}", "public function add_timing_meta_box( $post ) {\n\t\t\techo $this->display_timing( $post );\n\t\t}", "function dx_write_deploy_date() {\n\n\t// And some inline style. Its not needed to hook it in wp_head at all for just 4-5 properties.\n\t$style = \"position:fixed; bottom:0; right:0; display: block; padding: 0px 2px; font-family: 'Courier New'; font-size: 10px; margin: 0; background: black; color: white;line-height:1em\";\n\n // Print the end result\n if(isset($_COOKIE['dx_deploy_timer_cooke'])) {\n\t\techo '<p class=\"deploy-date\" style=\"'.$style.'\">Deployed: '.$_COOKIE['dx_deploy_timer_cooke'].' GMT +0</p>';\n\t} else {\n\t\t$cur_date = get_date_mod();\n\t\techo '<p class=\"deploy-date\" style=\"'.$style.'; background: blue\">Deployed: '.$cur_date.' GMT +0 (Cookies updated)</p>';\n\t}\n}", "public function meta_box_date( $post ) {\n\t\t\t\n\t\t\t// Add Nonce Field for security options\n\t\t\twp_nonce_field( plugin_basename( __FILE__ ), 'wpmeetup_nonce' );\n\t\t\t?>\n\t\t\t<p><em>Du kannst jetzt mehrere Termine f&uuml;r dein Meetup angeben. Gib einfach das Datum und die Zeit in dem angegeben Format an und klick auf \"hinzuf&uuml;gen\". Alte oder fehlerhafte Daten kannst du &uuml;ber den L&ouml;schenbutton entfernen.</em></p>\n\t\t\t\n\t\t\t<label for=\"new_date\" style=\"display: block; float: left; padding: 5px 7px 0;\">Datum ( yyyy-mm-dd )</label>\n\t\t\t<input type=\"text\" name=\"new_date\" id=\"new_date\" style=\"float: left;\" class=\"datepicker\" />\n\t\t\t\n\t\t\t<label for=\"new_time\" style=\"display: block; float: left; padding: 5px 7px 0;\">Zeit ( hh:mm:ss )</label>\n\t\t\t<input type=\"text\" name=\"new_time\" id=\"new_time\" style=\"float: left;\" />\n\t\t\t\n\t\t\t<a href=\"#\" id=\"add_date\" class=\"button-primary\" style=\"float: left; margin: 1px 0 0 10px;\">Datum hinzuf&uuml;gen</a>\n\t\t\t<br class=\"clear\" />\n\t\t\t\n\t\t\t<div id=\"meetup_dates\">\n\t\t\t\t\n\t\t\t\t<br class=\"clear\" />\n\t\t\t</div>\n\t\t\t<?php\n\t\t}", "function headOptimization()\r\n\t{\r\n\t\t\r\n\t\techo \"<meta name='description' content='\".$this->PageDescription().\"' />\";\r\n\t\techo \"<meta name='keywords' content='\".$this->PageKeywords().\"' />\";\r\n\t\techo \"<title>\".$this->PageTitle().\"</title>\";\r\n\t\r\n\t}", "function wp_foundation_entry_meta() {\n\t// Translators: used between list items, there is a space after the comma.\n\t$categories_list = get_the_category_list( __( ', ', 'wp_foundation' ) );\n\n\t// Translators: used between list items, there is a space after the comma.\n\t$tag_list = get_the_tag_list( '', __( ', ', 'wp_foundation' ) );\n\n\t$date = sprintf( '<a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\">%4$s</time></a>',\n\t\tesc_url( get_permalink() ),\n\t\tesc_attr( get_the_time() ),\n\t\tesc_attr( get_the_date( 'c' ) ),\n\t\tesc_html( get_the_date() )\n\t);\n\n\t$author = sprintf( '<span class=\"author vcard\"><a class=\"url fn n\" href=\"%1$s\" title=\"%2$s\" rel=\"author\">%3$s</a></span>',\n\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n\t\tesc_attr( sprintf( __( 'View all posts by %s', 'wp_foundation' ), get_the_author() ) ),\n\t\tget_the_author()\n\t);\n\n\t// Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name.\n\tif ( $tag_list ) {\n\t\t$utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class=\"by-author\"> by %4$s</span>.', 'wp_foundation' );\n\t} elseif ( $categories_list ) {\n\t\t$utility_text = __( 'This entry was posted in %1$s on %3$s<span class=\"by-author\"> by %4$s</span>.', 'wp_foundation' );\n\t} else {\n\t\t$utility_text = __( 'This entry was posted on %3$s<span class=\"by-author\"> by %4$s</span>.', 'wp_foundation' );\n\t}\n\n\tprintf(\n\t\t$utility_text,\n\t\t$categories_list,\n\t\t$tag_list,\n\t\t$date,\n\t\t$author\n\t);\n}", "function the_meta()\n {\n }", "function headmeta() {\n\tglobal $posts;\n\n\t// only act when viewing a single post or a page. Else, exit.\n\tif ( !(is_single() || is_page() ) ) return;\n\t\n\t// Get the post\n\t$post = $posts[0];\n\t\n\t// Get the keys and values of the custom fields:\n\t$id = $post->ID;\n\t$metavals = get_post_meta($id, 'head_meta', false);\n\tif (! is_array($metavals)) {\n\t\t$metavals = (array) $metavals;\n\t}\n\t$linkvals = get_post_meta($id, 'head_link', false);\n\tif (! is_array($linkvals)) {\n\t\t$linkvals = (array) $linkvals;\n\t}\n\n\t// A key of either 'keyword' or 'keywords' will generate a \n\t// standard 'keywords' meta tag. Both variants are used for\n\t// compatibility with other plugins, such as Related Posts.\n\t$keyword = get_post_meta($id, 'keyword', false);\n\t$keywords = get_post_meta($id, 'keywords', false);\n\t\n\t// This will turn each into a (possibly empty) string:\n\tif (is_array($keyword)) {\n\t\t$keyword = implode(',', $keyword);\n\t}\n\n\tif (is_array($keywords)) {\n\t\t$keywords = implode(',', $keywords);\n\t}\n\t\n\tif (! (empty($keyword) || empty($keywords))) {\n\t\t// both populated, combine with a comma:\n\t\t$keys = $keyword . ', ' . $keywords;\n\t} else if (! empty($keyword)) {\n\t\t// only 'keyword' populated\n\t\t$keys = $keyword;\n\t} else if (! empty($keywords)) {\n\t\t// only 'keywords' populated\n\t\t$keys = $keywords;\n\t}\n\t\n\t// Generate the tags\n\tif (count($metavals)) {\n\t\tforeach ($metavals as $meta) {\n\t\t\tif (! empty($meta)) {\n\t\t\t\t$tag = \"<meta $meta />\";\n\t\t\t\tprint \"$tag\\n\";\n\t\t\t}\n\t\t}\n\t}\n\t\n\tif (count($linkvals)) {\n\t\tforeach ($linkvals as $link) {\n\t\t\tif (! empty($link)) {\n\t\t\t\t$tag = \"<link $link />\";\n\t\t\t\tprint \"$tag\\n\";\n\t\t\t}\n\t\t}\n\t}\n\t\n\t// Output the keywords meta tag if we have keywords\n\tif (! empty($keys)) {\n\t\t$keys = wp_specialchars($keys);\n\t\t$tag = \"<meta name='keywords' content='$keys' />\";\n\t\tprint \"$tag\\n\";\n\t}\n\n\t// Shortcut for description meta tag:\n\t$description = get_post_meta($id, 'description', false);\n\t\n\t// If it's an array, implode it into a string\n\tif (is_array($description)) {\n\t\t$description = implode('; ', $description);\n\t}\n\t\n\tif (! empty($description)) {\n\t\t$description = wp_specialchars($description);\n\t\t$tag = \"<meta name='description' content='$description' />\";\n\t\tprint \"$tag\\n\";\n\t}\n\n}", "function atarr_posted_on() {\n\t\t$time_string = '<time class=\"entry-date published updated\" datetime=\"%1$s\">%2$s</time>';\n\t\tif ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {\n\t\t\t$time_string = '<time class=\"entry-date published\" datetime=\"%1$s\">%2$s</time><time class=\"updated\" datetime=\"%3$s\">%4$s</time>';\n\t\t}\n\n\t\t$time_string = sprintf( $time_string,\n\t\t\tesc_attr( get_the_date( 'c' ) ),\n\t\t\tesc_html( get_the_date() ),\n\t\t\tesc_attr( get_the_modified_date( 'c' ) ),\n\t\t\tesc_html( get_the_modified_date() )\n\t\t);\n\n\t\t$posted_on = sprintf(\n\t\t\tesc_html_x( 'Posted on %s', 'post date', 'starry' ),\n\t\t\t'<a href=\"' . esc_url( get_permalink() ) . '\" rel=\"bookmark\">' . $time_string . '</a>'\n\t\t);\n\n\t\t$byline = sprintf(\n\t\t\tesc_html_x( 'by %s', 'post author', 'starry' ),\n\t\t\t'<span class=\"author vcard\"><a class=\"url fn n\" href=\"' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '\">' . esc_html( get_the_author() ) . '</a></span>'\n\t\t);\n\n\t\techo '<span class=\"posted-on\">' . $posted_on . '</span><span class=\"byline\"> ' . $byline . '</span>'; // WPCS: XSS OK.\n\n\t}", "public function getMeta();", "public function getMeta();", "function simple_bootstrap_display_post_meta($short=true) {\n?>\n\n <ul class=\"meta text-muted list-inline\">\n <li class=\"list-inline-item\">\n <a href=\"<?php the_permalink() ?>\">\n <i class=\"fas fa-clock\"></i>\n <span class=\"sr-only\"><?php echo __( 'Posted on', 'simple-bootstrap' ) ?></span>\n <?php echo get_the_date(); ?>\n </a>\n </li>\n <li class=\"list-inline-item\">\n <a href=\"<?php echo get_author_posts_url(get_the_author_meta('ID'));?>\">\n <i class=\"fas fa-user\"></i>\n <span class=\"sr-only\"><?php echo __( 'Posted by', 'simple-bootstrap' ) ?></span>\n <?php the_author(); ?>\n </a>\n </li>\n <?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?>\n <li class=\"list-inline-item\">\n <?php\n $sp = '<i class=\"fas fa-comment\"></i> ';\n comments_popup_link($sp . __( 'Leave a comment', \"simple-bootstrap\"), $sp . __( '1 Comment', \"simple-bootstrap\"), $sp . __( '% Comments', \"simple-bootstrap\"));\n ?>\n </li>\n <?php endif; ?>\n <?php if (! $short) : ?>\n\n <?php $categories_list = get_the_category_list(', '); ?>\n <?php if ( $categories_list ) : ?>\n <li class=\"list-inline-item\">\n <i class=\"fas fa-folder\"></i>\n <span class=\"sr-only\"><?php echo __( 'Posted in', 'simple-bootstrap' ) ?></span>\n <?php echo $categories_list ?>\n </li>\n <?php endif ?>\n <?php $tags_list = get_the_tag_list('', ', '); ?>\n <?php if ( $tags_list ) : ?>\n <li class=\"list-inline-item\">\n <i class=\"fas fa-tag\"></i>\n <span class=\"sr-only\"><?php echo __( 'Tags:', 'simple-bootstrap' ) ?></span>\n <?php echo $tags_list ?>\n </li>\n <?php endif ?>\n\n <?php edit_post_link(__( 'Edit', \"simple-bootstrap\"), '<li class=\"list-inline-item\"><i class=\"fas fa-pencil-alt\"></i> ', '</li>'); ?>\n <?php endif ?>\n </ul>\n\n<?php\n}", "function pantomime_author_box(){\n\tif ( is_single() ) :\n\t// Get the author email -> for Gravatar\n\t$author_email = get_the_author_meta('user_email');\n\t\t\n\t// Get the author description\n\t$author_description = get_the_author_meta('description');\t\n\t?>\n\n\t<div id=\"author-box\" class=\"emboss\">\n\t\t<h4 class=\"section-title\"><?php _e('About The Author', 'pantomime'); ?></h4>\n\t\t<?php\n\t\t\techo get_avatar($author_email, 50, '');\n\t\t\techo '<p>' . get_the_author_link() . ' - ' . $author_description . '</p>';\n\t\t?>\n\t</div>\n\t\n\t<?php\n\tendif;\n}", "public function getMetaTags()\n {\n $datetimeString = date('n/d/y @ g:ia', strtotime($this->eventdatetime->starttime));\n if ($this->isAllDay()) {\n $datetimeString = date('n/d/y', strtotime($this->eventdatetime->starttime));\n }\n\n $title = $this->event->displayTitle($this) . ' - ' . $datetimeString;\n\n // Add a description if it is set\n $description = 'Event on ' . $datetimeString;\n if (isset($this->event->description) && !empty($this->event->description)) {\n $description = $this->event->description;\n }\n\n // Add a image if it is set\n $image = '';\n if (isset($this->event->imagedata) && !empty($this->event->imagedata)) {\n $image = MetaTagUtility::getSiteURL() . '?image&amp;id=' . $this->event->id;\n }\n\n // Build the options\n $options = array(\n 'image' => $image,\n 'label1' => 'Calendar',\n 'data1' => $this->calendar->name,\n );\n\n $location = $this->eventdatetime->getLocation();\n $webcast = $this->eventdatetime->getWebcast();\n\n if ($location !== false && $webcast !== false) {\n $options['label2'] = 'In-Person and Online';\n $options['data2'] = $location->name . ' & ' . $webcast->title;\n } elseif ($location !== false) {\n $options['label2'] = 'Location';\n $options['data2'] = $location->name;\n } elseif ($webcast !== false) {\n $options['label2'] = 'Virtual Location';\n $options['data2'] = $webcast->title;\n }\n\n $metaTagUtility = new MetaTagUtility($this->getURL(), $title, $description, $options);\n\n return $metaTagUtility->getMetaTags();\n }", "function rtheme_posted_on() {\n $time_string = '<time class=\"published update\" datetime=\"%1$s\">%2$s</time>';\n\n if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {\n $time_string = '<time class=\"published\" datetime=\"%1$s\">%2$s</time><time class=\"update\" datetime=\"%3$s\">%4$s</time>';\n }\n\n $time_string = sprintf( $time_string,\n esc_attr( get_the_date( DATE_W3C ) ),\n esc_attr( get_the_date() ),\n esc_attr( get_the_modified_date( DATE_W3C ) ),\n esc_attr( get_the_modified_date() )\n );\n\n $posted_on = sprintf(\n esc_html_x( 'Posted on %s', 'post date', 'rtheme' ),\n '<a href=\"' . esc_url( get_permalink() ) . '\" rel=\"bookmark\">' . $time_string . '</a>'\n );\n\n echo '<span class=\"posted-one text-secondary\"> ' . $posted_on . '</span>';\n\n}" ]
[ "0.76471555", "0.74893564", "0.7482376", "0.74627835", "0.7147153", "0.7146873", "0.7031127", "0.69130063", "0.6854209", "0.6749449", "0.6748731", "0.6735326", "0.67345023", "0.67115706", "0.66570437", "0.6568096", "0.6524181", "0.6521022", "0.64906317", "0.64677215", "0.64506716", "0.6423583", "0.64168715", "0.6416235", "0.6406065", "0.63988084", "0.63625693", "0.63385624", "0.6332179", "0.631492", "0.6288787", "0.62643594", "0.6242095", "0.6206083", "0.6199575", "0.619715", "0.6156683", "0.61518806", "0.61379087", "0.61308163", "0.6129032", "0.6120093", "0.6116468", "0.61156833", "0.611394", "0.6108061", "0.6100787", "0.6095707", "0.60661674", "0.60348165", "0.59901303", "0.5982433", "0.5967567", "0.59498984", "0.5942827", "0.59412205", "0.59411204", "0.59324735", "0.5917326", "0.59112877", "0.5883422", "0.5883139", "0.58780676", "0.5858812", "0.5849517", "0.5845126", "0.58383065", "0.5836185", "0.5813247", "0.58111674", "0.5798627", "0.5786364", "0.57794833", "0.57737064", "0.57679653", "0.5766712", "0.5751254", "0.5748553", "0.5722781", "0.5720623", "0.572029", "0.56941986", "0.5686229", "0.5672803", "0.5670356", "0.5668441", "0.565888", "0.5651746", "0.56366736", "0.56340504", "0.56243885", "0.56216705", "0.56068873", "0.55989176", "0.5590989", "0.5590989", "0.55634266", "0.5558595", "0.5534754", "0.55312663" ]
0.56669927
86
Prints HTML with meta information for the categories, tags and comments.
function circle_entry_footer() { // Hide category and tag text for pages. if ( 'post' === get_post_type() && is_single() ) : /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( esc_html__( ' ', 'circle' ) ); if ( $categories_list && circle_categorized_blog() ) : printf( '<p class="bx-blog__tags pull-left"><label>' . esc_html__( 'Categories: &nbsp;', 'circle' ) . '</label>%1$s</p>', $categories_list ); // WPCS: XSS OK. endif; echo sprintf( '<span class="sr-only">%&s</span>', get_the_tag_list() ); // WPCS: XSS OK. edit_post_link( sprintf( /* translators: %s: Name of current post */ esc_html__( ' - Edit %s', 'circle' ), the_title( '<p class="screen-reader-text">"', '"</p>', false ) ), '<span class="edit-link">', '</span>' ); if ( circle_option( 'display_single_sharing' ) ) : get_template_part( 'template-parts/post-social-sharing' ); endif; else : ?> <a href="<?php echo esc_url( get_permalink() );?>" class="btn btn-default pull-left" title="<?php echo esc_html( the_title() );?>"><?php echo esc_html( 'Learn more', 'circle' );?></a> <?php if ( circle_option( 'display_archive_sharing' ) ) : get_template_part( 'template-parts/post-social-sharing' ); endif; endif; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function meta() {\n //echo $this->keywords ? '<meta name=\"keywords\" content=\"'.$this->keywords.'\" />'.\"\\r\\n\" : '';\n\n echo '<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />', \"\\r\\n\";\n\n ksort(self::$css);\n foreach (self::$css as $css_arr) {\n foreach ($css_arr as $css) {\n echo '<link type=\"text/css\" rel=\"stylesheet\" href=\"', $css, '\" />', \"\\r\\n\";\n }\n }\n ksort(self::$js);\n foreach (self::$js as $js_arr) {\n foreach ($js_arr as $js) {\n echo '<script type=\"text/javascript\" src=\"', $js, '\"></script>', \"\\r\\n\";\n }\n }\n }", "function writeMetatags($description) {\r\n echo '<meta name=\"author\" content=\"Stephen Wallace\">' . \"\\n\";\r\n echo \"<meta name=\\\"description\\\" content=\\\"$description\\\">\\n\";\r\n}", "public static function displayHeader()\n {\n\n # Charset\n print \"<meta charset=\\\"\" . self::$Charset . \"\\\" />\";\n\n $base = base_url();\n print \"<base href='{$base}/' />\";\n\n # Viewport\n print \"\\n\\n\\t<meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\\\" />\\n\";\n\n # Meta Tags\n foreach (self::$SEO as $attr => $prop) {\n # Metatags\n if (is_array($prop)) {\n print \"\\n\\t\";\n foreach ($prop as $content => $value) {\n print \"<meta {$attr}=\\\"{$content}\\\" content=\\\"\" . htmlspecialchars($value) . \"\\\" />\\n\\t\";\n }\n } # Favicon - Icone da página\n else if ($attr == 'icon' || $attr == 'shortcut' || $attr == 'shortcut icon') {\n print \"\\n\\t\";\n $type = strtolower(preg_replace('/^.*\\.(.*?)(\\?.*)?$/', '$1', $prop));\n print \"<link rel=\\\"icon\\\" href=\\\"{$prop}\\\" />\\n\\t\";\n } # Tags\n else {\n print \"\\n\\t\";\n print \"<{$attr}>\" . htmlspecialchars($prop) . \"</{$attr}>\\n\\t\";\n }\n }\n\n # Imagens\n if (count(self::$Imagens) > 0) {\n print \"\\n\\t\";\n print \"<!-- OG Imagens -->\\n\\t\";\n foreach (self::$Imagens as $values) {\n foreach ($values as $key => $value) {\n if ($value != null) {\n print \"<meta property=\\\"{$key}\\\" content=\\\"\" . htmlspecialchars($value) . \"\\\" />\\n\\t\";\n }\n }\n }\n }\n\n # Vídeos\n if (count(self::$Videos) > 0) {\n print \"\\n\\t\";\n print \"<!-- OG Vídeos -->\\n\\t\";\n foreach (self::$Videos as $values) {\n foreach ($values as $key => $value) {\n if ($value != null) {\n print \"<meta property=\\\"{$key}\\\" content=\\\"\" . htmlspecialchars($value) . \"\\\" />\\n\\t\";\n }\n }\n if (end(self::$Videos) !== $values) {\n print \"\\n\\t\";\n }\n }\n }\n\n # Sounds\n if (count(self::$Sounds) > 0) {\n print \"\\n\\t\";\n print \"<!-- OG Sound -->\\n\\t\";\n foreach (self::$Sounds as $values) {\n foreach ($values as $key => $value) {\n if ($value != null) {\n print \"<meta property=\\\"{$key}\\\" content=\\\"\" . htmlspecialchars($value) . \"\\\" />\\n\\t\";\n }\n }\n }\n print \"\\n\\t\";\n }\n\n self::displayCss();\n\n print \"\\n\\n\\t<script src='cdn/js/jquery.min.js' type='text/javascript' ></script>\";\n\n # Html5\n print \"\\n\\n\\t<!--[if lt IE 9]>\";\n print \"\\n\\t\\t<script src=\\\"https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js\\\" charset=\\\"\" . self::$Charset . \"\\\" ></script>\";\n print \"\\n\\t\\t<script src=\\\"https://oss.maxcdn.com/respond/1.4.2/respond.min.js\\\" charset=\\\"\" . self::$Charset . \"\\\" ></script>\";\n print \"\\n\\t<![endif]-->\\n\";\n }", "private function _print_html_head_metatags()\n\t{\n\t\treturn \"<meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset={$this->charset}\\\" />\\n\";\n\t}", "function headOptimization()\r\n\t{\r\n\t\t\r\n\t\techo \"<meta name='description' content='\".$this->PageDescription().\"' />\";\r\n\t\techo \"<meta name='keywords' content='\".$this->PageKeywords().\"' />\";\r\n\t\techo \"<title>\".$this->PageTitle().\"</title>\";\r\n\t\r\n\t}", "protected function addMeta() {\n foreach ($this->meta_info as $key => $meta) {\n $this->header.=\"<meta name='\" . $key . \"' content='\" . $meta . \"' /> \\n\";\n }\n }", "public function add_meta() {\n\t\techo \"\\n<meta data-plugin='a04_vertical_button' name='description' content='a sample meta description for this website'/>\\n\\n\";\n\t}", "public function meta() {\t\t\t\t\t\t\n\t\t\t$this->output->layout = \"empty\";\n\t\t\t$this->output->set(\"actions\", results_array(\"SELECT * FROM actions ORDER BY title\"));\n\t\t\t$this->output->view(\"api/xml/meta.php\");\n\t\t\t$this->output->header(\"Content-Type: text/xml\");\n\t\t\t$this->output->cache($this->default_cache_timeout);\n\t\t}", "function cosmo_get_site_meta() {\n\n ob_start();\n ob_clean();\n\n if( is_single() || is_page() ){ \n global $post; ?>\n <meta name=\"description\" content=\"<?php echo strip_tags( post::get_excerpt( $post, $ln=150 ) ); ?>\" /> \n <meta property=\"og:title\" content=\"<?php the_title() ?>\" />\n <meta property=\"og:site_name\" content=\"<?php echo get_bloginfo('name'); ?>\" />\n <meta property=\"og:url\" content=\"<?php the_permalink() ?>\" />\n <meta property=\"og:type\" content=\"article\" />\n <meta property=\"og:locale\" content=\"en_US\" /> \n <meta property=\"og:description\" content=\"<?php echo get_bloginfo('description'); ?>\"/>\n <?php\n\n } else { ?>\n <meta name=\"description\" content=\"<?php echo get_bloginfo('description'); ?>\" /> \n <meta property=\"og:title\" content=\"<?php echo get_bloginfo('name'); ?>\"/>\n <meta property=\"og:site_name\" content=\"<?php echo get_bloginfo('name'); ?>\"/>\n <meta property=\"og:url\" content=\"<?php echo home_url() ?>/\"/>\n <meta property=\"og:type\" content=\"blog\"/>\n <meta property=\"og:locale\" content=\"en_US\"/>\n <meta property=\"og:description\" content=\"<?php echo get_bloginfo('description'); ?>\"/>\n <?php\n }\n\n return ob_get_clean();\n\n }", "public function meta($name = \"\", $content =\"\") {\n echo \"<meta name='\" . $name . \"' content ='\" . $content . \"'>\";\n }", "public function buildMetaTags()\n\t{\n\t\t/* Set basic ones */\n\t\t$this->metaTags['og:site_name'] = \\IPS\\Settings::i()->board_name;\n\t\t$this->metaTags['og:locale'] = preg_replace( \"/^([a-zA-Z0-9\\-_]+?)(?:\\..*?)$/\", \"$1\", \\IPS\\Member::loggedIn()->language()->short );\n\t\t\n\t\t/* Add the site name to the title */\n\t\tif( \\IPS\\Settings::i()->board_name )\n\t\t{\n\t\t\t$this->title .= ' - ' . \\IPS\\Settings::i()->board_name;\n\t\t}\n\t\t\n\t\t/* Add Admin-specified ones */\n\t\tif( !$this->metaTagsUrl )\n\t\t{\n\t\t\t$protocol = ( \\IPS\\Request::i()->isSecure() ) ? \"https://\" : \"http://\";\n\t\t\t$this->metaTagsUrl\t= \\IPS\\Http\\Url::external( $protocol . parse_url( \\IPS\\Settings::i()->base_url, PHP_URL_HOST ) . $_SERVER['REQUEST_URI'] );\n\t\t\t$this->metaTagsUrl\t= urldecode( mb_substr( (string) $this->metaTagsUrl, mb_strlen( \\IPS\\Settings::i()->base_url ) ) );\n\t\n\t\t\tif ( isset( \\IPS\\Data\\Store::i()->metaTags ) )\n\t\t\t{\n\t\t\t\t$rows = \\IPS\\Data\\Store::i()->metaTags;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$rows = iterator_to_array( \\IPS\\Db::i()->select( '*', 'core_seo_meta' ) );\n\t\t\t\t\\IPS\\Data\\Store::i()->metaTags = $rows;\n\t\t\t}\n\t\t\t\n\t\t\tif( is_array( $rows ) )\n\t\t\t{\n\t\t\t\tforeach ( $rows as $row )\n\t\t\t\t{\n\t\t\t\t\tif( \\strpos( $row['meta_url'], '*' ) !== FALSE )\n\t\t\t\t\t{\n\t\t\t\t\t\tif( preg_match( \"#^\" . str_replace( '*', '(.+?)', trim( $row['meta_url'], '/' ) ) . \"$#i\", trim( $this->metaTagsUrl, '/' ) ) )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$_tags\t= json_decode( $row['meta_tags'], TRUE );\n\t\t\n\t\t\t\t\t\t\tif( is_array( $_tags ) )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tforeach( $_tags as $_tagName => $_tagContent )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif( !isset( $this->metaTags[ $_tagName ] ) )\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$this->metaTags[ $_tagName ]\t= $_tagContent;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\t\t/* Are we setting page title? */\n\t\t\t\t\t\t\tif( $row['meta_title'] )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$this->title\t\t\t= $row['meta_title'];\n\t\t\t\t\t\t\t\t$this->metaTagsTitle\t= $row['meta_title'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif( trim( $row['meta_url'], '/' ) == trim( $this->metaTagsUrl, '/' ) )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$_tags\t= json_decode( $row['meta_tags'], TRUE );\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif ( is_array( $_tags ) )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tforeach( $_tags as $_tagName => $_tagContent )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$this->metaTags[ $_tagName ]\t= $_tagContent;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/* Are we setting page title? */\n\t\t\t\t\t\t\tif( $row['meta_title'] )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$this->title\t\t\t= $row['meta_title'];\n\t\t\t\t\t\t\t\t$this->metaTagsTitle\t= $row['meta_title'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "function et_divi_post_meta() {\n\t\t$pages = array(\n\t\t\tintval( \\SermonManager::getOption( 'smp_archive_page', 0 ) ),\n\t\t\tintval( \\SermonManager::getOption( 'smp_tax_page', 0 ) ),\n\t\t);\n\t\tif ( in_array( get_the_ID(), $pages ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$postinfo = is_single() ? et_get_option( 'divi_postinfo2' ) : et_get_option( 'divi_postinfo1' );\n\n\t\tif ( $postinfo ) :\n\t\t\techo '<p class=\"post-meta\">';\n\t\t\techo et_pb_postinfo_meta( $postinfo, et_get_option( 'divi_date_format', 'M j, Y' ), esc_html__( '0 comments', 'Divi' ), esc_html__( '1 comment', 'Divi' ), '% ' . esc_html__( 'comments', 'Divi' ) );\n\t\t\techo '</p>';\n\t\tendif;\n\t}", "public function head_meta() {\n\t\t\t\n\t\t\t$output = '';\n\t\t\t\n\t\t\tif( current_theme_supports( 'responsive' ) )\n\t\t\t\t$output .= '<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no\">';\n\t\t\t\n\t\t\techo $output;\n\t\t\t\n\t\t}", "function tc_post_metas() {\r\n global $post;\r\n //when do we display the metas ?\r\n //1) we don't show metas on home page, 404, search page by default\r\n //2) +filter conditions\r\n $post_metas_bool = ( tc__f('__is_home') || is_404() || 'page' == $post -> post_type ) ? false : true ;\r\n $post_metas_bool = apply_filters('tc_show_post_metas', $post_metas_bool ); \r\n \r\n if ( ! $post_metas_bool )\r\n return;\r\n\r\n ob_start();\r\n ?>\r\n\r\n <div class=\"entry-meta\">\r\n <?php\r\n if ( 'attachment' == $post -> post_type ) {\r\n $metadata = wp_get_attachment_metadata();\r\n printf( '%1$s <span class=\"entry-date\"><time class=\"entry-date updated\" datetime=\"%2$s\">%3$s</time></span> %4$s %5$s',\r\n '<span class=\"meta-prep meta-prep-entry-date\">'.__('Published' , 'customizr').'</span>',\r\n apply_filters('tc_use_the_post_modified_date' , false ) ? esc_attr( get_the_date( 'c' ) ) : esc_attr( get_the_modified_date('c') ),\r\n esc_html( get_the_date() ),\r\n ( isset($metadata['width']) && isset($metadata['height']) ) ? __('at dimensions' , 'customizr').'<a href=\"'.esc_url( wp_get_attachment_url() ).'\" title=\"'.__('Link to full-size image' , 'customizr').'\"> '.$metadata['width'].' &times; '.$metadata['height'].'</a>' : '',\r\n __('in' , 'customizr').'<a href=\"'.esc_url( get_permalink( $post->post_parent ) ).'\" title=\"'.__('Return to ' , 'customizr').esc_attr( strip_tags( get_the_title( $post->post_parent ) ) ).'\" rel=\"gallery\"> '.get_the_title( $post->post_parent ).'</a>.'\r\n );\r\n }\r\n\r\n else {\r\n\r\n $categories_list = $this -> tc_category_list();\r\n\r\n $tag_list = $this -> tc_tag_list();\r\n\r\n $date = apply_filters( 'tc_date_meta',\r\n sprintf( '<a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date updated\" datetime=\"%3$s\">%4$s</time></a>' ,\r\n esc_url( get_day_link( get_the_time( 'Y' ), get_the_time( 'm' ), get_the_time( 'd' ) ) ),\r\n esc_attr( get_the_time() ),\r\n apply_filters('tc_use_the_post_modified_date' , false ) ? esc_attr( get_the_date( 'c' ) ) : esc_attr( get_the_modified_date('c') ),\r\n esc_html( get_the_date() )\r\n )\r\n );//end filter\r\n\r\n $author = apply_filters( 'tc_author_meta',\r\n sprintf( '<span class=\"author vcard\"><a class=\"url fn n\" href=\"%1$s\" title=\"%2$s\" rel=\"author\">%3$s</a></span>' ,\r\n esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\r\n esc_attr( sprintf( __( 'View all posts by %s' , 'customizr' ), get_the_author() ) ),\r\n get_the_author()\r\n )\r\n );//end filter\r\n\r\n // Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name.\r\n $utility_text = '';\r\n if ( $tag_list ) {\r\n $utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class=\"by-author\"> by %4$s</span>.' , 'customizr' );\r\n } elseif ( $categories_list ) {\r\n $utility_text = __( 'This entry was posted in %1$s on %3$s<span class=\"by-author\"> by %4$s</span>.' , 'customizr' );\r\n } else {\r\n $utility_text = __( 'This entry was posted on %3$s<span class=\"by-author\"> by %4$s</span>.' , 'customizr' );\r\n }\r\n $utility_text = apply_filters( 'tc_meta_utility_text', $utility_text );\r\n\r\n //echoes every metas components\r\n printf(\r\n $utility_text,\r\n $categories_list,\r\n $tag_list,\r\n $date,\r\n $author\r\n );\r\n }//endif attachment\r\n ?>\r\n\r\n </div><!-- .entry-meta -->\r\n\r\n <?php\r\n $html = ob_get_contents();\r\n if ($html) ob_end_clean();\r\n echo apply_filters( 'tc_post_metas', $html );\r\n }", "public function getHTML() {\n // Define the variable to output the HTML in\n $out = '';\n\n // Add the HTML code for each meta tag\n foreach($this->meta as $entry)\n $out .= $entry->getHTML() . PHP_EOL;\n\n // Return the HTML code\n return $out;\n }", "function addMeta() {\n\t\n\tif( class_exists('acf') ) {\n\n\t$meta_description = get_field('meta_description', 'option');\n\t$meta_keywords = get_field('meta_keywords', 'option');\n\t$meta_author = get_field('meta_author', 'option');\n\t$meta_og_image = get_field('meta_og_img', 'option');\n\t$meta_img_full = $meta_og_image['url'];\n\n\t}\n\n\tif ( $meta_description ) {\n\t\techo '<meta name=\"description\" content=\"'.$meta_description.'\">'; \n\t}\n\n\tif ( $meta_keywords ) {\n\t\techo '<meta name=\"keywords\" content=\"'.$meta_keywords.'\">'; \n\t}\n\n\tif ( $meta_author ) {\n\t\techo '<meta name=\"author\" content=\"'.$meta_author.'\">'; \n\t}\n\n\tif ( $meta_og_image ) {\n\t\techo '<meta name=\"twitter:card\" content=\"summary\" />';\n\t\techo '<meta property=\"og:image\" content=\"'.$meta_img_full.'\" />';\n\t}\n\n}", "function print_meta_tag() : void {\n\n\t$payment_pointer_id = get_payment_pointer();\n\t$payment_pointer_url = $payment_pointer_id;\n\n\t// check if url starts with $\n\tif ( $payment_pointer_url[0] === '$' ) {\n\t\t// replace $ with https://\n\t\t$payment_pointer_url = str_replace( '$', 'https://', $payment_pointer_url );\n\t\t// remove trailing slash\n\t\t$payment_pointer_url = rtrim( $payment_pointer_url, '/' );\n\t\t// check if url path exists\n\t\t$parsed_url = wp_parse_url( $payment_pointer_url, PHP_URL_PATH );\n\n\t\t// if no url path, append /.well-known/pay\n\t\tif ( empty( $parsed_url ) ) {\n\t\t\t$payment_pointer_url = $payment_pointer_url . '/.well-known/pay';\n\t\t}\n\t}\n\n\tif ( ! empty( $payment_pointer_id ) ) {\n\t\techo '<meta name=\"monetization\" content=\"' . esc_attr( $payment_pointer_id ) . '\" />' . PHP_EOL;\n\t\techo '<link rel=\"monetization\" href=\"' . esc_url( $payment_pointer_url ) . '\" />' . PHP_EOL;\n\t}\n}", "function fl_blog_post_meta() {\n\tif(is_page()) return; // don't do post-meta on pages\n?>\t\t\n<div class=\"content-bar iconfix\">\n\t<p class=\"meta\">\n\t\t<span><i class=\"icon-calendar\"></i><?php echo get_the_date(get_option('date_format')); ?></span>\n\t\t<span><i class=\"icon-folder-open\"></i><?php the_category(', '); ?></span>\n\t</p>\n\t<p class=\"comment-count\"><i class=\"icon-comments\"></i><?php comments_popup_link( __( '0 Comments', APP_TD ), __( '1 Comment', APP_TD ), __( '% Comments', APP_TD ) ); ?></p>\n</div>\n<?php\n}", "function acitpo_entry_meta() {\n\tglobal $post;\n\tif (is_page()) { return; }\n\t$categories = get_the_category_list(__(', ', 'acitpo'));\n\n\tprintf('<span class=\"date-link\"><a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\">%4$s</time></a></span>', esc_attr(get_permalink()), esc_attr(get_the_time()), esc_attr(get_the_time('c')), esc_html(get_the_date()));\n\tif ($categories) {\n\t\tprintf('<span class=\"category-links\">%s</span>', $categories);\n\t}\n\tprintf('<span class=\"author-link vcard\"><a href=\"%1$s\" title=\"%2$s\" rel=\"author\">%3$s</a></span>', esc_attr(get_author_posts_url(get_the_author_meta('ID'))), esc_attr(sprintf(__('View all posts by %s', 'acitpo'), get_the_author())), esc_html(get_the_author()));\n}", "function accouk_display_post_meta() {\n\n global $main_category;\n echo '<div class=\"published-date\">Published on '; the_date();\n echo ' in <a href=\"' . $main_category['link'] . '\" class=\"breadcrumb\">' . $main_category['name'] . '</a></div>';\n\n}", "public function render_screen_meta()\n {\n }", "public function SEO()\r\n {\r\n echo '\r\n <meta name=\"description\" content=\"Linktree. Make your link do more.\" />\r\n <meta property=\"og:title\" content=\"@sakaltimes\" />\r\n <meta property=\"og:description\" content=\"Linktree. Make your link do more.\" />\r\n <meta property=\"og:url\" content=\"https://linktr.ee/sakaltimes\" />\r\n <meta property=\"og:image\"\r\n content=\"https://d1fdloi71mui9q.cloudfront.net/IwsFe6SGRIq8jRgAIWCp_c6d32bbdb3d3e8a1ada41d428fa89269\" />\r\n <meta property=\"og:image:secure_url\"\r\n content=\"https://d1fdloi71mui9q.cloudfront.net/IwsFe6SGRIq8jRgAIWCp_c6d32bbdb3d3e8a1ada41d428fa89269\" />\r\n <meta property=\"profile:username\" content=\"sakaltimes\" />\r\n <meta name=\"twitter:title\" content=\"@sakaltimes\" />\r\n <meta name=\"twitter:description\" content=\"Linktree. Make your link do more.\" />\r\n <meta name=\"twitter:image\"\r\n content=\"https://d1fdloi71mui9q.cloudfront.net/IwsFe6SGRIq8jRgAIWCp_c6d32bbdb3d3e8a1ada41d428fa89269\" />\r\n <link rel=\"canonical\" href=\"https://linktr.ee/sakaltimes\" />\r\n <link rel=\"preconnect\" href=\"https://www.googletagmanager.com\" crossorigin=\"\" />\r\n <link rel=\"dns-prefetch\" href=\"https://www.googletagmanager.com\" crossorigin=\"\" />\r\n \r\n ';\r\n }", "function fumseck_pagemeta() {\n\t\n\t// Initialize\n\t\n\t$output = '';\n\tglobal $post;\n\t$post_id = $post->ID;\n\t\n\t\n\t// Get metadata for the page from WordPress\n\t\n\t$post_title = get_the_title($post_id);\n\t$post_permalink = get_permalink($post_id);\n\t\n\t$post_has_featured_image = has_post_thumbnail( $post_id );\n\t\n\tif( $post_has_featured_image ) {\n\t\t$post_featured_image_large = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large'); // [URL, w, h, resized?]\n\t};\n\t\n\t$post_summary = wp_strip_all_tags( get_field( '_summary', $post_id, true ));\n\t\n\t\n\tif ( ! $post_summary ) {\t\t// if no summary, try a manual excerpt\n\t\t$post_summary = $post->post_excerpt;\n\t};\t// TODO: do something if there's no manual excerpt either\n\n\t\n\t// Static metadata\n\t\n\t$output .= '<meta name=\"twitter:site\" content=\"@gpaumier\"><meta name=\"twitter:creator\" content=\"@gpaumier\">';\t\n\t$output .= '<meta name=\"twitter:domain\" content=\"guillaumepaumier.com\">';\t\n\t$output .= '<meta property=\"fb:admins\" content=\"710543474\" />';\n\t//$output .= '<meta property=\"fb:admins\" content=\"579323492087704\" />';\n\t$output .= '<meta property=\"article:author\" content=\"https://www.facebook.com/gllmpmr\" />';\n\t$output .= '<meta property=\"article:publisher\" content=\"https://www.facebook.com/gllmpmr\" />';\n\t\n\t$output .= '<meta property=\"og:type\" content=\"article\" />'; // TODO: be more specific\n\t\n\t// Common metadata\n\t\n\t$output .= '<meta property=\"og:site_name\" content=\"' . get_bloginfo( 'name' ) . '\"/>';\n\t\n\t$output .= '<meta name=\"twitter:title\" content=\"' . $post_title . '\">';\n\t$output .= '<meta property=\"og:title\" content=\"' . $post_title . '\"/>';\n\t\n\t\n\t$output .= '<meta property=\"og:url\" content=\"' . $post_permalink . '\" />';\n\t\n\t\n\t$output .= '<meta property=\"og:description\" content=\"' . $post_summary . '\" />';\n\t\n\t// TODO: add locale\n\t\n\tif ( get_post_format( $post_id ) === 'image' ) {\n\t\t\n\t\t$output .= '<meta name=\"twitter:card\" content=\"photo\">';\n\t\t$output .= '<meta name=\"twitter:image\" content=\"' . $post_featured_image_large[0] . '\">';\n\t\t$output .= '<meta name=\"twitter:image:width\" content=\"' . $post_featured_image_large[1] . '\">';\n\t\t$output .= '<meta name=\"twitter:image:height\" content=\"' . $post_featured_image_large[2] . '\">';\n\t\t$output .= '<meta property=\"og:image:width\" content=\"' . $post_featured_image_large[1] . '\" />';\n\t\t$output .= '<meta property=\"og:image:height\" content=\"' . $post_featured_image_large[2] . '\" />';\n\t\t\n\t} else {\t// Not a photo\n\t\t\n\t\t$output .= '<meta name=\"twitter:description\" content=\"' . $post_summary . '\">';\n\t\t\n\t\tif( $post_has_featured_image ) {\n\t\t\t\n\t\t\t$output .= '<meta name=\"twitter:card\" content=\"summary_large_image\">';\n\t\t\t$output .= '<meta name=\"twitter:image:src\" content=\"' . $post_featured_image_large[0] . '\">';\n\t\t\t$output .= '<meta property=\"og:image\" content=\"' . $post_featured_image_large[0] . '\" />';\n\t\t\t$output .= '<meta property=\"og:image:width\" content=\"' . $post_featured_image_large[1] . '\" />';\n\t\t\t$output .= '<meta property=\"og:image:height\" content=\"' . $post_featured_image_large[2] . '\" />';\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\t$output .= '<meta name=\"twitter:card\" content=\"summary\">';\n\t\t}\n\t\t\n\t};\n\t\n\n\techo $output;\n}", "function meta_html($post)\n {\n $view = new Xby2BaseView(get_post_meta($post->ID));\n $view->addInput('text', 'link-label', 'Label: ', 'label', 'regular-text');\n $view->addInput('text', 'link-link', 'Link: ', 'link', 'large-text');\n $view->addInput('text', 'link-priority', 'Priority: ', 'priority', 'regular-text');\n $view->displayForm();\n }", "function tcsn_post_meta() {\n\n\tglobal $post;\n\tif ( ! is_page() && 'page' != $post->post_type ) {\n\t\t$post_footer_metadata = ( get_post_format() ? '<a class=\"post-format-meta\" href=\"' . get_post_format_link( get_post_format() ) . '\">' . get_post_format_string( get_post_format() ) . '</a>' : '' \t\t);\n\t} \n\t\techo '<span class=\"post-meta\">' . $post_footer_metadata. '</span>'; \n\t\t\n\t// Post author\n\tif ( 'post' == get_post_type() ) {\n\t\tprintf( 'By <span class=\"author vcard margin-less\"><a class=\"url fn n\" href=\"%1$s\" title=\"%2$s\" rel=\"author\">%3$s</a></span><span class=\"text-sep\">/</span>',\n\t\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n\t\t\tesc_attr( sprintf( __( 'View all posts by %s', 'tcsn_theme' ), get_the_author() ) ),\n\t\t\tget_the_author()\n\t\t);\n\t}\n\t\n\t// Post date\n\tif ( ! has_post_format( 'link' ) && 'post' == get_post_type() )\n\t\ttcsn_post_date();\n\t\t\n\t// Categories\n\t$categories_list = get_the_category_list( __( ', ', 'tcsn_theme' ) );\n\tif ( $categories_list ) {\n\t\techo 'in <span class=\"categories-links\">' . $categories_list . '</span>';\n\t}\n\t\n\t// Tags\n\tif ( ! is_single() ) {\n\t\t$tag_list = get_the_tag_list( '', __( ', ', 'tcsn_theme' ) );\n\t\tif ( $tag_list ) {\n\t\t\techo '<span class=\"text-sep\">/</span> tags <span class=\"tags-links\">' . $tag_list . '</span>';\n\t\t}\n\t}\n\t\n\telse {\n\t\t$tag_list = get_the_tag_list( '', __( ', ', 'tcsn_theme' ) );\n\t if ( $tag_list ) {\n\t\techo '<span class=\"text-sep\">/</span> tags <span class=\"tags-links\">' . $tag_list . '</span>';\n\t } \n\t}\n}", "function thememount_entry_meta($echo = true) {\n\t$return = '';\n\t\n\tglobal $post;\n\t\n\tif( isset($post->post_type) && $post->post_type=='page' ){\n\t\treturn;\n\t}\n\t\n\t\n\t$postFormat = get_post_format();\n\t\n\t// Post author\n\t$categories_list = get_the_category_list( __( ', ', 'howes' ) ); // Translators: used between list items, there is a space after the comma.\n\t$tag_list = get_the_tag_list( '', __( ', ', 'howes' ) ); // Translators: used between list items, there is a space after the comma.\n\t$num_comments = get_comments_number();\n\t\n\t$return .= '<div class=\"thememount-meta-details\">';\n\t\t// Date\n\t\t$return .= '<span class=\"tm-date-wrapper\"><i class=\"tmicon-fa-clock-o\"></i> ' . get_the_date() . '</span>';\n\n\t\tif ( 'post' == get_post_type() ) {\n\t\t\tif( !is_single() ){\n\t\t\t\t$return .= sprintf( '<div class=\"thememount-post-user\"><span class=\"author vcard\"><i class=\"tmicon-fa-user\"></i> <a class=\"url fn n\" href=\"%1$s\" title=\"%2$s\" rel=\"author\">%3$s</a></span></div>',\n\t\t\t\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n\t\t\t\t\tesc_attr( sprintf( __( 'View all posts by %s', 'howes' ), get_the_author() ) ),\n\t\t\t\t\tget_the_author()\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\tif ( $tag_list ) { $return .= '<span class=\"tags-links\"><i class=\"tmicon-fa-tags\"></i> ' . $tag_list . '</span>'; };\n\t\tif ( $categories_list ) { $return .= '<span class=\"categories-links\"><i class=\"tmicon-fa-folder-open\"></i> ' . $categories_list . '</span>'; };\n\t\tif( !is_sticky() && comments_open() && ($num_comments>0) ){\n\t\t\t$return .= '<span class=\"comments\"><i class=\"tmicon-fa-comments\"></i> ';\n\t\t\t$return .= $num_comments;\n\t\t\t$return .= '</span>';\n\t\t}\n\n\t$return .= '</div>';\n\t\n\tif( $echo == true ){\n\t\techo $return;\n\t} else {\n\t\treturn $return;\n\t}\n\t\n\t\n}", "public function showMeta()\n {\n $query = $this->pdo->prepare(\"SHOW META\");\n $query->execute();\n return $query->fetchAll();\n }", "function getHead() {\n\n $out = \"\";\n\n if ($this->meta_keywords) array_push($this->head, \"<meta name='keywords' content='{$this->meta_keywords}' />\");\n if ($this->meta_description) array_push($this->head, \"<meta name='description' content='{$this->meta_description}' />\");\n\n foreach ($this->head as $string) {\n $out .= \" $string\\n\";\n }\n return \"\\n$out\\n\";\n }", "public function getMetaDescription();", "function roots_entry_meta() {\n echo '<em class=\"meta-entry\"><i class=\"icon-calendar pull-left\"></i><time class=\"updated pull-left\" datetime=\"'. get_the_time('c') .'\" pubdate>'. sprintf(__('Posted on %s at %s.', 'roots'), get_the_date(), get_the_time()) .'</time><span class=\"pull-right\">' .comments_number( 'No comments', 'One comment', '% comment' ) .'</span></em>';\n\n //echo '<p class=\"byline author vcard\">'. __('Written by', 'roots') .' <a href=\"'. get_author_posts_url(get_the_author_meta('ID')) .'\" rel=\"author\" class=\"fn\">'. get_the_author() .'</a></p>';\n}", "public function print_tags() {\n\t\tforeach ($this->photo_tags as $tag) {\n\t\t\techo '\n\t\t\t\t<div class=\"caption-tag\">\n\t\t\t\t\t<span class=\"crosshair\">&#127919;</span>';\n\t\t\t// Handle the different levels of completeness for an\n\t\t\techo\n\t\t\t (isset($tag['article']) ? \n\t\t\t '<a href=\"#\" class=\"item\">' . $tag['article'] . '</a>' : '');\n\t\t\techo \n\t\t\t\t(isset($tag['gender']) ?\n\t\t\t\t '<span class=\"seperator\"> - </span>\n\t\t\t\t\t<a href=\"#\" class=\"item\">' . $tag['gender'] . '</a>' : '');\n\t\t\techo\n\t\t\t (isset($tag['brand']) ?\n\t\t\t\t '<span class=\"seperator\"> - </span>\n\t\t\t\t\t<a href=\"#\" class=\"item\">' . $tag['brand'] . '</a>' : '');\n\t\t\techo '</div>';\n\t\t}\n\t}", "public function Display()\n\t\t{\n\t\t\techo \"<html>\\n<head>\\n\";\n\t\t\t$this -> DisplayTitle();\n\t\t\t$this -> DisplayKeywords();\n\t\t\t$this -> DisplayStyles();\n\t\t\techo \"</head>\\n<body>\\n\";\n\t\t\t$this -> DisplayHeader();\n\t\t\t$this -> DisplayMenu($this->buttons);\n\t\t\techo $this->content;\n\t\t\t$this -> DisplayFooter();\n\t\t\techo \"</body>\\n</html>\\n\";\n\t\t}", "private function readMetaConfig(){\r\n\t\tif($this->CI->config->item('zt_head_meta')){\r\n\t\t\t$metaTags = $this->CI->config->item('zt_head_meta');\r\n\t\t\t$meta = null;\r\r\n\t\t\tforeach($metaTags as $metaTag){\r\n\t\t\t\tif(isset($metaTag[\"type\"])){\r\t\t\t\t\tif(isset($metaTag[\"lang\"]) && $metaTag[\"lang\"] && !empty($this->langService)){\r\t\t\t\t\t\t$meta = new Meta($metaTag[\"type\"], $metaTag[\"name\"], $this->langService->GetPrimaryWithSubLangCode());\t\r\t\t\t\t\t} else {\r\t\t\t\t\t\t$meta = new Meta($metaTag[\"type\"], $metaTag[\"name\"], $metaTag[\"content\"]);\t\r\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$meta = new Meta(Meta::TYPE_NAME, $metaTag[\"name\"], $metaTag[\"content\"]);\r\n\t\t\t\t}\r\r\n\t\t\t\t$this->head->AddMetaTag($meta);\r\n\t\t\t}\r\n\t\t}\r\r\n\t}", "public function getMeta();", "public function getMeta();", "function getMetaTags($pageName){\n\t\t\t$metaTags = $this->manage_content->getValue_where('meta_tags','*','page',$pageName);\n\t\t\techo '<meta name=\"keywords\" content=\"'.$metaTags[0]['keyword'].'\" />\n<meta name=\"description\" content=\"'.$metaTags[0]['description'].'\" />';\n\t\t}", "public function getMeta(){\n // $this->meta();\n }", "public static function meta_tags() {\n\n\t\t\t$meta_tags_html = '';\n\n\t\t\t$description = get_bloginfo( 'description' );\n\t\t\t$site_name = get_bloginfo( 'name' );\n\t\t\t$logo = \\App\\Madara::getOption( 'logo_image', get_template_directory_uri() . '/images/logo.png' );\n\n\t\t\tif ( is_single() ) {\n\n\t\t\t\tglobal $post;\n\n\t\t\t\t$post_format = get_post_format( $post->ID ) != '' && get_post_format( $post->ID ) == 'video' ? 'video.movie' : 'article';\n\t\t\t\t$url = get_permalink( $post->ID );\n\t\t\t\t$title = get_the_title( $post->ID );\n\t\t\t\t$post_title = $title;\n\n\t\t\t\t$description = $post->post_excerpt;\n\n\t\t\t\tif ( $description == '' ) {\n\t\t\t\t\t$description = substr( strip_tags( $post->post_content ), 0, 165 );\n\t\t\t\t}\n\n\t\t\t\t$thumbnail_url = wp_get_attachment_url( get_post_thumbnail_id( $post->ID ) );\n $image_attributes = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array(1200, 630) );\n\t\t\t\t$image = $image_attributes ? $image_attributes[0] : null;\n\n\t\t\t\tglobal $_wp_additional_image_sizes;\n\n\t\t\t\t$width = 696;\n\t\t\t\t$height = 391;\n\n\t\t\t\tif ( isset( $_wp_additional_image_sizes['thumbnail'] ) ) {\n\t\t\t\t\t$width = $_wp_additional_image_sizes['thumbnail']['width'];\n\t\t\t\t\t$height = $_wp_additional_image_sizes['thumbnail']['height'];\n\t\t\t\t}\n\n\t\t\t\tif( function_exists( 'madara_manga_meta_tags' ) ){\n\t\t\t\t\t// get manga meta tags\n\t\t\t\t\t$manga_meta_tags = madara_manga_meta_tags( $title, $description, $site_name );\n\n\t\t\t\t\tif( !empty( $manga_meta_tags['title'] ) ){\n\t\t\t\t\t\t$title = $manga_meta_tags['title'];\n\t\t\t\t\t}\n\n\t\t\t\t\tif( !empty( $manga_meta_tags['description'] ) ){\n\t\t\t\t\t\t$description = $manga_meta_tags['description'];\n\t\t\t\t\t}\n\n\t\t\t\t\tif( !empty( $manga_meta_tags['url'] ) ){\n\t\t\t\t\t\t$url = $manga_meta_tags['url'];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t?>\n\t\t\t\t\t<script type=\"application/ld+json\">\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"@context\": \"http://schema.org\",\n\t\t\t\t\t\t\t\"@type\": \"Article\",\n\t\t\t\t\t\t\t\"mainEntityOfPage\": {\n\t\t\t\t\t\t\t\t\"@type\": \"WebPage\",\n\t\t\t\t\t\t\t\t\"@id\": \"https://google.com/article\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"headline\": \"<?php echo esc_attr( get_the_title( $post->ID ) ); ?>\",\n\t\t\t\t\t\t\t\"image\": {\n\t\t\t\t\t\t\t\t\"@type\": \"ImageObject\",\n\t\t\t\t\t\t\t\t\"url\": \"<?php echo esc_attr( $thumbnail_url ); ?>\",\n\t\t\t\t\t\t\t\t\"height\": <?php echo esc_attr( $height ); ?>,\n\t\t\t\t\t\t\t\t\"width\": <?php echo esc_attr( $width ); ?>\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"datePublished\": \"<?php echo esc_js( $post->post_date_gmt ); ?>\",\n\t\t\t\t\t\t\t\"dateModified\": \"<?php echo esc_js( $post->post_modified_gmt ); ?>\",\n\t\t\t\t\t\t\t\"author\": {\n\t\t\t\t\t\t\t\t\"@type\": \"Person\",\n\t\t\t\t\t\t\t\t\"name\": \"<?php\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$meta_type = Madara::getOption('manga_single_meta_author', 'wp_author');\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif($meta_type == 'wp_author'){\n\t\t\t\t\t\t\t\t\t$author = get_user_by( 'id', $post->post_author );\n\t\t\t\t\t\t\t\t\tif ( $author ) {\n\t\t\t\t\t\t\t\t\t\techo esc_attr( $author->display_name );\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tglobal $wp_manga_functions;\n\t\t\t\t\t\t\t\t\t$mangaAuthors = $wp_manga_functions->get_manga_authors($post->ID);\n\t\t\t\t\t\t\t\t\techo esc_attr(strip_tags($mangaAuthors));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t?>\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"publisher\": {\n\t\t\t\t\t\t\t\t\"@type\": \"Organization\",\n\t\t\t\t\t\t\t\t\"name\": \"<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>\",\n\t\t\t\t\t\t\t\t\"logo\": {\n\t\t\t\t\t\t\t\t\t\"@type\": \"ImageObject\",\n\t\t\t\t\t\t\t\t\t\"url\": \"<?php if ( $logo != '' ) {\n\t\t\t\t\t\t\t\t\t\techo esc_attr( $logo );\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\techo esc_attr( $thumbnail_url );\n\t\t\t\t\t\t\t\t\t} ?>\"\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"description\": \"<?php echo esc_attr( strip_shortcodes( $description ) ); ?>\"\n\t\t\t\t\t\t}\n\t\t\t\t\t</script>\n\t\t\t\t<?php\n\n\t\t\t\t$meta_tags_html .= '<meta property=\"og:type\" content=\"' . esc_attr( $post_format ) . '\"/>' . PHP_EOL;\n\n\t\t\t} elseif( is_tax() ){\n\t\t\t\t$term = get_queried_object();\n\n\t\t\t\tif( isset( $term->term_id ) ){\n\t\t\t\t\t$description = term_description( $term->term_id, $term->taxonomy );\n\t\t\t\t\t$description = substr( strip_tags( $description ), 0, 165 );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif( empty( $image ) ){\n\t\t\t\t$image = $logo;\n\t\t\t}\n\n\t\t\tif( empty( $title ) ){\n\t\t\t\t$title = $site_name . wp_title( '|', false );\n\t\t\t}\n\n\t\t\t$meta_tags_html .= '<meta property=\"og:image\" content=\"' . esc_attr( apply_filters( 'madara_meta_image', $image ) ) . '\"/>' . PHP_EOL;\n\t\t\t$meta_tags_html .= '<meta property=\"og:site_name\" content=\"' . esc_attr( $site_name ) . '\"/>' . PHP_EOL;\n\t\t\t$meta_tags_html .= '<meta property=\"fb:app_id\" content=\"' . \\App\\Madara::getOption( 'facebook_app_id' ) . '\" />' . PHP_EOL;\n\t\t\t$meta_tags_html .= '<meta property=\"og:title\" content=\"' . esc_attr( apply_filters( 'madara_meta_title', $title ) ) . '\"/>' . PHP_EOL;\n\n\t\t\tif( !empty( $url ) ){\n\t\t\t\t$meta_tags_html .= '<meta property=\"og:url\" content=\"' . esc_url( $url ) . '\"/>' . PHP_EOL;\n\t\t\t}\n\n\t\t\tif( !empty( $description ) ){\n\t\t\t\t$meta_tags_html .= '<meta property=\"og:description\" content=\"' . esc_attr( strip_shortcodes( $description ) ) . '\"/>' . PHP_EOL;\n\t\t\t}\n\n\t\t\tif( !empty( $keywords ) ){\n\t\t\t\t$meta_tags_html .= '<meta name=\"keywords\" content=\"' . $keywords . '\"/>' . PHP_EOL;\n\t\t\t}\n\n\t\t\t// Meta for twitter\n\t\t\t$meta_tags_html .= '<meta name=\"twitter:card\" content=\"summary\" />' . PHP_EOL;\n\t\t\t$meta_tags_html .= '<meta name=\"twitter:site\" content=\"@' . esc_attr( $site_name ) . '\" />' . PHP_EOL;\n\t\t\t$meta_tags_html .= '<meta name=\"twitter:title\" content=\"' . esc_attr( $title ) . '\" />' . PHP_EOL;\n\n\t\t\tif( !empty( $description ) ){\n\t\t\t\t$meta_tags_html .= '<meta name=\"twitter:description\" content=\"' . esc_attr( strip_shortcodes( $description ) ) . '\" />' . PHP_EOL;\n\t\t\t}\n\n\t\t\tif( !empty( $url ) ){\n\t\t\t\t$meta_tags_html .= '<meta name=\"twitter:url\" content=\"' . esc_url( $url ) . '\" />' . PHP_EOL;\n\t\t\t}\n\n\t\t\t$meta_tags_html .= '<meta name=\"twitter:image\" content=\"' . esc_attr( $image ) . '\" />' . PHP_EOL;\n\t\t\t\n\t\t\t$meta_tags_html .= '<meta name=\"description\" content=\"' . esc_attr( strip_shortcodes( $description ) ) . '\" />';\n\n\t\t\t$meta_tags_html .= '<meta name=\"generator\" content=\"' . esc_attr( esc_html__( 'Powered by Madara - A powerful multi-purpose theme by Madara', 'madara' ) ) . '\" />' . PHP_EOL;\n\n\t\t\techo apply_filters( 'madara-meta-tags', $meta_tags_html );\n\n\t\t\tdo_action( 'madara-meta-tags' );\n\t\t}", "function get_fb_meta(){\r print('<meta property=\"og:title\" content=\"'. site_title .'\" />');\r print('<meta property=\"og:type\" content=\"'. site_type .'\" />');\r print('<meta property=\"og:url\" content=\"'. site_url .'\" />');\r print('<meta property=\"og:image\" content=\"'. site_photo_url .'\" />');\r print('<meta property=\"og:site_name\" content=\"'. site_name .'\" />');\r print('<meta property=\"fb:app_id\" content=\"'. site_fb_appid .'\" />');\r}", "function print_author_tag() {\n\t\t\n\t\techo \"<meta name='author' content='{$this->options->site_author}' />\\r\\n\";\n\t}", "function boom_post_meta() {\n\tif ( get_post_type() == 'post' ) {\n\t\techo sprintf(\n\t\t\t__( 'Posted %s in %s%s by %s. ', 'boom' ),\n\t\t\tget_the_time( get_option( 'date_format' ) ),\n\t\t\tget_the_category_list( ', ' ),\n\t\t\tget_the_tag_list( __( ', <b>Tags</b>: ', 'boom' ), ', ' ),\n\t\t\tget_the_author_link()\n\t\t);\n\t}\n\tedit_post_link( __( ' (edit)', 'boom' ), '<span class=\"edit-link\">', '</span>' );\n}", "function v2_mumm_add_meta_tags($open_graph_protocol) {\n $elements = array();\n $elements[] = array(\n '#type' => 'html_tag',\n '#tag' => 'meta',\n '#attributes' => array(\n 'property' => 'description',\n 'content' => htmlspecialchars_decode($open_graph_protocol['description'], ENT_QUOTES),\n ),\n );\n\n $i = 0;\n foreach ($elements as $element) {\n drupal_add_html_head($element, 'open_graph_protocol_' . $i++);\n }\n}", "function fiorello_mikado_header_meta() { ?>\n\n\t\t<meta charset=\"<?php bloginfo( 'charset' ); ?>\"/>\n\t\t<link rel=\"profile\" href=\"http://gmpg.org/xfn/11\"/>\n\t\t<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>\n\t\t\t<link rel=\"pingback\" href=\"<?php bloginfo( 'pingback_url' ); ?>\">\n\t\t<?php endif; ?>\n\n\t<?php }", "function headmeta() {\n\tglobal $posts;\n\n\t// only act when viewing a single post or a page. Else, exit.\n\tif ( !(is_single() || is_page() ) ) return;\n\t\n\t// Get the post\n\t$post = $posts[0];\n\t\n\t// Get the keys and values of the custom fields:\n\t$id = $post->ID;\n\t$metavals = get_post_meta($id, 'head_meta', false);\n\tif (! is_array($metavals)) {\n\t\t$metavals = (array) $metavals;\n\t}\n\t$linkvals = get_post_meta($id, 'head_link', false);\n\tif (! is_array($linkvals)) {\n\t\t$linkvals = (array) $linkvals;\n\t}\n\n\t// A key of either 'keyword' or 'keywords' will generate a \n\t// standard 'keywords' meta tag. Both variants are used for\n\t// compatibility with other plugins, such as Related Posts.\n\t$keyword = get_post_meta($id, 'keyword', false);\n\t$keywords = get_post_meta($id, 'keywords', false);\n\t\n\t// This will turn each into a (possibly empty) string:\n\tif (is_array($keyword)) {\n\t\t$keyword = implode(',', $keyword);\n\t}\n\n\tif (is_array($keywords)) {\n\t\t$keywords = implode(',', $keywords);\n\t}\n\t\n\tif (! (empty($keyword) || empty($keywords))) {\n\t\t// both populated, combine with a comma:\n\t\t$keys = $keyword . ', ' . $keywords;\n\t} else if (! empty($keyword)) {\n\t\t// only 'keyword' populated\n\t\t$keys = $keyword;\n\t} else if (! empty($keywords)) {\n\t\t// only 'keywords' populated\n\t\t$keys = $keywords;\n\t}\n\t\n\t// Generate the tags\n\tif (count($metavals)) {\n\t\tforeach ($metavals as $meta) {\n\t\t\tif (! empty($meta)) {\n\t\t\t\t$tag = \"<meta $meta />\";\n\t\t\t\tprint \"$tag\\n\";\n\t\t\t}\n\t\t}\n\t}\n\t\n\tif (count($linkvals)) {\n\t\tforeach ($linkvals as $link) {\n\t\t\tif (! empty($link)) {\n\t\t\t\t$tag = \"<link $link />\";\n\t\t\t\tprint \"$tag\\n\";\n\t\t\t}\n\t\t}\n\t}\n\t\n\t// Output the keywords meta tag if we have keywords\n\tif (! empty($keys)) {\n\t\t$keys = wp_specialchars($keys);\n\t\t$tag = \"<meta name='keywords' content='$keys' />\";\n\t\tprint \"$tag\\n\";\n\t}\n\n\t// Shortcut for description meta tag:\n\t$description = get_post_meta($id, 'description', false);\n\t\n\t// If it's an array, implode it into a string\n\tif (is_array($description)) {\n\t\t$description = implode('; ', $description);\n\t}\n\t\n\tif (! empty($description)) {\n\t\t$description = wp_specialchars($description);\n\t\t$tag = \"<meta name='description' content='$description' />\";\n\t\tprint \"$tag\\n\";\n\t}\n\n}", "public function testMetaTags(): void {\n\t\t// Initialize Application, because a valid Service Container is needed\n\t\t$classLoader = include PHPUNIT_COMPOSER_INSTALL;\n\t\tBootstrap::init($classLoader, true);\n\n\t\t$utility = GeneralUtility::makeInstance(BaseUtility::class);\n\t\t$cObj = GeneralUtility::makeInstance(ContentObjectRenderer::class);\n\t\t$cObj->start([], '_NO_TABLE');\n\t\t$utility->setContentObjectRenderer($cObj);\n\n\t\t$baseContent = (string)file_get_contents(getcwd() . '/Tests/Unit/Fixtures/Utility/MetaTagsBase.html');\n\t\t$params = [\n\t\t\t'meta.' => [\n\t\t\t\t'google' => 'notranslate',\n\t\t\t\t'meta.og:image:width' => 400,\n\t\t\t\t'meta.og:title' => '',\n\t\t\t\t'meta.og:title.' => [\n\t\t\t\t\t'required' => 1,\n\t\t\t\t],\n\t\t\t],\n\t\t\t'link.' => [\n\t\t\t\t10 => '<link rel=\"apple-touch-icon\" sizes=\"57x57\" href=\"/apple-icon-57x57.png\">',\n\t\t\t],\n\t\t];\n\t\t$utility->addMetaTags($baseContent, $params);\n\n\t\t// addMetaTags adds the tags to the singleton pageRenderer\n\t\t$pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);\n\t\t$pageRenderer->setTemplateFile(getcwd() . '/Tests/Unit/Fixtures/Utility/PageRendererTemplate.html');\n\n\t\tself::assertEquals('<meta name=\"generator\" content=\"TYPO3 CMS\" />\n<meta name=\"google\" content=\"notranslate\" />\n<meta name=\"meta.og:image:width\" content=\"400\" />\n<link rel=\"apple-touch-icon\" sizes=\"57x57\" href=\"/apple-icon-57x57.png\">', $pageRenderer->render());\n\n\t\t// Bootstrap::init starts output buffering\n\t\tob_end_clean();\n\t}", "function cxense_output_meta_tags($location=null, $site_name=false, $desc=false, $title=false) {\n\n $og_tags = array(\n 'og:site_name' => empty($site_name) ? str_replace( 'http://', '', get_site_url() ) : $site_name,\n 'og:description' => empty($desc) ? cxense_get_opt('CXENSE_DEFAULT_SITE_DESC') : $desc\n );\n\n if ( is_singular() || is_single() ) {\n global $post;\n\n $recs_tags = array();\n $og_tags = array(\n 'og:title' => get_the_title(),\n 'og:url' => apply_filters('cxense_og_url', get_permalink())\n );\n\n $recommendable_types = cxense_get_opt('cxense_recommendable_post_type');\n if( !$recommendable_types ) {\n $recommendable_types = 'post';\n }\n\n if( strpos($recommendable_types, $post->post_type) !== false ) {\n $og_tags['og:type'] = 'article';\n $og_tags['og:article:published_time'] = date('c', strtotime($post->post_date));\n $og_tags['og:article:author'] = get_user_by('id', $post->post_author)->display_name;\n $og_tags['og:description'] = get_the_excerpt();\n if( empty($og_tags['og:description']) ) {\n $og_tags['og:description'] = str_replace(\"\\n\", ' ', strip_tags($post->post_content));\n }\n\n if( mb_strlen($og_tags['og:description'], 'UTF-8') > 75 ) {\n $og_tags['og:description'] = mb_substr($og_tags['og:description'], 0, 75, 'UTF-8').'...';\n }\n if( has_post_thumbnail() ) {\n list($src, $width, $height) = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' );\n $recs_tags['cXenseParse:recs:image'] = $src;\n if( $width > 200 && $height > 200 ) {\n $og_tags['og:image'] = $src;\n }\n } else {\n $recs_tags['cXenseParse:recs:image'] = 'noimage';\n }\n\n $is_recommendable = 'true';\n\n } else {\n // Page of some kind\n $is_recommendable = 'false';\n }\n\n $recs_tags['cXenseParse:recs:recommendable'] = apply_filters('cxense_is_recommendable', $is_recommendable);\n\n\n // Paywall\n if( defined('PAYGATE_PLUGIN_URL') ) {\n $recs_tags['cXenseParse:paywall'] = is_paygate_protected($post) ? 'true':'false';\n $recs_tags['cXenseParse:recs:paywall'] = $recs_tags['cXenseParse:paywall'];\n if( $recs_tags['cXenseParse:paywall'] == 'true' ) {\n // For content index search\n $recs_tags['cXenseParse:recs:custom0'] = 'paywall';\n }\n }\n\n // Post id\n $recs_tags['cXenseParse:recs:articleid'] = $post->ID;\n\n }\n else {\n // Tags/category/search etc....\n $recs_tags['cXenseParse:recs:recommendable'] = 'false';\n $og_tags['og:url'] = get_site_url().$_SERVER['REQUEST_URI'];\n $og_tags['og:type'] = 'website';\n }\n\n\n if( empty($og_tags['og:image']) ) {\n $og_tags['og:image'] = cxense_get_opt('cxense_default_og_image');\n }\n\n if( !empty($location) ) {\n $og_tags['og:url'] = $location;\n }\n\n if( !empty($title) ) {\n $og_tags['og:title'] = $title;\n }\n\n // Sanitize stuff\n foreach(array('og:title', 'og:description') as $tag => $val) {\n if( !empty($og_tags[$tag]) ) {\n $og_tags[$tag] = trim(str_replace('\"','&quot;', $val));\n }\n }\n\n foreach($og_tags as $name => $val) {\n echo '<meta property=\"'.$name.'\" content=\"'.$val.'\" />'.PHP_EOL;\n }\n foreach($recs_tags as $name => $val) {\n echo '<meta name=\"'.$name.'\" content=\"'.$val.'\" />'.PHP_EOL;\n }\n}", "function program_meta_display($date = false,$time=false,$venue=false, $artist=false,$price=false,$eventbrite_link=false,$concession_link=false,$id=false){\n\t$return = '<div class=\"post-details\">';\n\t$return .= '<div class=\"date\"><h4>Date:&nbsp;</h4><span>'.$date.'</span></div>';\n\t$return .= '<div class=\"time\"><h4>Time:&nbsp;</h4><span>'.$time.'</span></div>';\n\t$return .= '<div class=\"venue\"><h4>Venue:&nbsp;</h4><a href=\"'. get_permalink($venue->ID).'\">'.$venue->post_title.'</a></div>';\n\tif ($artist && count($artist)>0):\t\t\n\t\t$return .= '<ul class=\"meta artist\"><h4>Artists:</h4>';\n\t\tforeach($artist as $artist):\n\t\t\t$return .= '<li><a href=\"'.get_permalink($artist->ID).'\">'.$artist->post_title.'</a></li>';\n\t\tendforeach;\n\t$return .= '</ul>';\n\tendif;\n\t//Start\n\t//Get Taxonomy\n\t\n\t$meta_list = array();\n\t$args = array(\n\t\t\t\t'type' => 'Elements',\n\t\t);\n\t$meta = get_the_term_list($id,'Elements','<li>','</li><li>','</li>');\n\t\n\tif ($meta){//check if there is any meta data returns (get_the_term_list returns false if empty)\n\t\t$return .= '<ul class=\"elements\">';\n\t\t$return .= '<h4>Elements</h4>';\n\t\t$meta_stripped = strip_tags($meta,'<li>'); \n\t\t$_SESSION['meta'] = $meta_stripped;\n\t\t$return .= $meta_stripped;\n\t\t$return .= '</ul>';\n\t}\n\t//Get Taxonomy\n\t//End\n\t$return .= '<ul class=\"price\">';\n\t$return .= '<h4>Price</h4>';\n\t\tif (strtolower($price) == \"free\"){ \n\t\t\t$return .='<li><span>'.$price.'</span></li>'; \n\t\t} elseif ($price != \"\") {\n\t\t\t$return .='<li><span>£'.$price.'</span></li>'; \n\t\t}\n\t\tif ($eventbrite_link != \"\")\n\t\t{ $return .='<li class=\"tickets\"><a href=\"'. $eventbrite_link.'\" target=\"_blank\"><img src=\"'.get_bloginfo('template_url').'/style/images/tickets.png\" /></a></li>';\n\t\t}\n\t\t\n\t\tif ($concession_link != \"\") \n\t\t\n\t\t{$return .='<li class=\"tickets\"><a href=\"'. $concession_link .'\" target=\"_blank\">Concessions</a></li>'; \n\t\t} \n\t$return .='</ul>';\n\t\n\t\n\t$return .= '</ul>';\n\t$return .= '</div>';\n\t\n\treturn $return;\n\t\n}", "function header_meta() {\n\t/**\n\t * Filter the path used for the site's humans.txt attribution file\n\t *\n\t * @param string $humanstxt\n\t */\n\t$humanstxt = apply_filters( 'project_humans', Project_TEMPLATE_URL . '/humans.txt' );\n\n\techo '<link type=\"text/plain\" rel=\"author\" href=\"' . esc_url( $humanstxt ) . '\" />';\n}", "private function setupPage ()\n {\n $output = '<!DOCTYPE html><html lang=\"en\"><head>';\n $output .= $this->setCharacterEncoding();\n $output .= $this->setPageTitle();\n $output .= $this->setBasePath();\n $output .= $this->fixHTML5();\n $output .= $this->registerCustomResources();\n $output .= '</head><body>';\n echo $output;\n }", "public function meta() {\n\t\treturn [\n\t\t\t'name' => 'Duck page',\n\t\t\t'description' => 'This is a duck page',\n\t\t\t'template' => 'pages/duck-page.php',\n\t\t\t'post_type' => 'duck'\n\t\t];\n\t}", "public static function meta();", "function honeycomb_post_meta() {\n\t\t?>\n\t\t<aside class=\"entry-meta\">\n\t\t\t<?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search.\n\n\t\t\t?>\n\t\t\t<div class=\"author\">\n\t\t\t\t<?php\n\t\t\t\t\techo get_avatar( get_the_author_meta( 'ID' ), 128 );\n\t\t\t\t\techo '<div class=\"label\">' . esc_attr( __( 'Written by', 'honeycomb' ) ) . '</div>';\n\t\t\t\t\tthe_author_posts_link();\n\t\t\t\t?>\n\t\t\t</div>\n\t\t\t<?php\n\t\t\t/* translators: used between list items, there is a space after the comma */\n\t\t\t$categories_list = get_the_category_list( __( ', ', 'honeycomb' ) );\n\n\t\t\tif ( $categories_list ) : ?>\n\t\t\t\t<div class=\"cat-links\">\n\t\t\t\t\t<?php\n\t\t\t\t\techo '<div class=\"label\">' . esc_attr( __( 'Posted in', 'honeycomb' ) ) . '</div>';\n\t\t\t\t\techo wp_kses_post( $categories_list );\n\t\t\t\t\t?>\n\t\t\t\t</div>\n\t\t\t<?php endif; // End if categories. ?>\n\n\t\t\t<?php\n\t\t\t/* translators: used between list items, there is a space after the comma */\n\t\t\t$tags_list = get_the_tag_list( '', __( ', ', 'honeycomb' ) );\n\n\t\t\tif ( $tags_list ) : ?>\n\t\t\t\t<div class=\"tags-links\">\n\t\t\t\t\t<?php\n\t\t\t\t\techo '<div class=\"label\">' . esc_attr( __( 'Tagged', 'honeycomb' ) ) . '</div>';\n\t\t\t\t\techo wp_kses_post( $tags_list );\n\t\t\t\t\t?>\n\t\t\t\t</div>\n\t\t\t<?php endif; // End if $tags_list. ?>\n\n\t\t<?php endif; // End if 'post' == get_post_type(). ?>\n\n\t\t\t<?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>\n\t\t\t\t<div class=\"comments-link\">\n\t\t\t\t\t<?php echo '<div class=\"label\">' . esc_attr( __( 'Comments', 'honeycomb' ) ) . '</div>'; ?>\n\t\t\t\t\t<span class=\"comments-link\"><?php comments_popup_link( __( 'Leave a comment', 'honeycomb' ), __( '1 Comment', 'honeycomb' ), __( '% Comments', 'honeycomb' ) ); ?></span>\n\t\t\t\t</div>\n\t\t\t<?php endif; ?>\n\t\t</aside>\n\t\t<?php\n\t}", "function header_meta() {\n\t/**\n\t * Filter the path used for the site's humans.txt attribution file\n\t *\n\t * @param string $humanstxt\n\t */\n\t$humanstxt = apply_filters( 'additive_humans', ADDITIVE_TEMPLATE_URL . '/humans.txt' );\n\n\techo '<link type=\"text/plain\" rel=\"author\" href=\"' . esc_url( $humanstxt ) . '\" />';\n}", "function vmt_head()\n\t\t{\n\t\t\tif (! empty($this->options['google'])) {\n\t\t\t\techo '<meta name=\"google-site-verification\" content=\"' . esc_attr($this->options['google']) . '\" />';\n\t\t\t}\n\t\t\tif (! empty($this->options['pinterest'])) {\n\t\t\t\techo '<meta name=\"p:domain_verify\" content=\"' . esc_attr($this->options['pinterest']) . '\" />';\n\t\t\t}\n\t\t\tif (! empty($this->options['analytics'])) {\n\t\t\t\techo $this->options['analytics'];\n\t\t\t}\n\t\t}", "public function show()\n\t{\n\t\techo $this->tags();\n\t}", "function cosmetics_post_meta() {\n?>\n\n <div class=\"site-post-meta\">\n <span class=\"site-post-author\">\n <?php echo esc_html__('Author:','cosmetics');?>\n <a href=\"<?php echo get_author_posts_url( get_the_author_meta('ID') );?>\">\n <?php the_author();?>\n </a>\n </span>\n\n <span class=\"site-post-date\">\n <?php esc_html_e( 'Post date: ','cosmetics' ); the_date(); ?>\n </span>\n\n <span class=\"site-post-comments\">\n <?php\n comments_popup_link( '0 '. esc_html__('Comment','cosmetics'),'1 '. esc_html__('Comment','cosmetics'), '% '. esc_html__('Comments','cosmetics') );\n ?>\n </span>\n </div>\n\n<?php\n }", "function business_meta_tags() { ?>\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\" /><?php \n\tglobal $themeslug, $options, $post; //Call global variables\n\tif(!$post) return; // in case of 404 page or something\n\t$title = get_post_meta($post->ID, 'seo_title' , true);\n\t$pagedescription = get_post_meta($post->ID, 'seo_description' , true);\n\t$keywords = get_post_meta($post->ID, 'seo_keywords' , true); ?>\n\n<meta http-equiv=\"Content-Type\" content=\"<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>\" />\n<meta name=\"distribution\" content=\"global\" />\n\n<meta name=\"language\" content=\"en\" /> \n<!-- Set the viewport width to device width for mobile -->\n<meta name=\"viewport\" content=\"initial-scale=1.0; maximum-scale=1.0; width=device-width\"/><?php\n\n\tif ($options->get($themeslug.'_home_title') != '' AND is_front_page()) { ?>\n<meta name='title' content='<?php echo ($options->get($themeslug.'_home_title')) ;?>'/> <?php\n\t}\n\tif ($options->get($themeslug.'_home_description') != '' AND is_front_page()) { ?>\n<meta name='description' content='<?php echo ($options->get($themeslug.'_home_description')) ;?>' /> <?php\n\t}\n\tif ($options->get($themeslug.'_home_keywords') != '' AND is_front_page()) { ?>\n<meta name='keywords' content=' <?php echo ($options->get($themeslug.'_home_keywords')) ; ?>' /> <?php\n\t}\n\t\n\tif ($title != '' AND !is_front_page()) {\n\t\techo \"<meta name='title' content='$title' />\";\n\t}\n\tif ($pagedescription != '' AND !is_front_page()) {\n\t\techo \"<meta name='description' content='echo $pagedescription'/>\";\n\t}\n\tif ($keywords != '' AND !is_front_page()) {\n\t\techo \"<meta name='keywords' content='$keywords'/>\";\n\t} \n}", "function wprt_entry_meta() {\n\t// Get meta items from theme mod\n\t$meta_item = wprt_get_mod( 'blog_entry_meta_items', array( 'date', 'author', 'comments' ) );\n\n\t// If blocks are 100% empty return defaults\n\t$meta_item = $meta_item ? $meta_item : 'date,author,comments';\n\n\t// Turn into array if string\n\tif ( $meta_item && ! is_array( $meta_item ) ) {\n\t\t$meta_item = explode( ',', $meta_item );\n\t}\n\n\t// Set keys equal to values\n\t$meta_item = array_combine( $meta_item, $meta_item );\n\n\t// Loop through items\n\tforeach ( $meta_item as $item ) :\n\t\tif ( 'author' == $item ) { \n\t\t\tprintf( '<span class=\"post-by-author item\"><span class=\"inner\">By <a href=\"%s\" title=\"%s\" rel=\"author\">%s</a></span></span>',\n\t\t\t\tesc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n\t\t\t\tesc_attr( sprintf( esc_html__( 'View all posts by %s', 'fundrize' ), get_the_author() ) ),\n\t\t\t\tget_the_author()\n\t\t\t\t);\n\t\t}\n\t\telseif ( 'date' == $item ) {\n\t\t\tprintf( '<span class=\"post-date item\"><span class=\"inner\"><span class=\"entry-date\">%1$s</span></span></span>',\n\t\t\t\tget_the_date()\n\t\t\t);\n\t\t}\n\t\telseif ( 'comments' == $item ) {\n\t\t\tif ( comments_open() || get_comments_number() ) {\n\t\t\t\techo '<span class=\"post-comment item\"><span class=\"inner\">';\n\t\t\t\tcomments_popup_link( esc_html__( '0 comment', 'fundrize' ), esc_html__( '1 Comment', 'fundrize' ), esc_html__( '% Comments', 'fundrize' ) );\n\t\t\t\techo '</span></span>';\n\t\t\t}\n\t\t}\n\t\telseif ( 'categories' == $item ) {\n\t\t\techo '<span class=\"post-meta-categories item\"><span class=\"inner\">';\n\t\t\tthe_category( ', ', get_the_ID() );\n\t\t\techo '</span></span>';\n\t\t}\n\tendforeach;\n}", "function print_header($title, $keywords, $description )\n{\n\tif (strlen($description < 40))\n\t\tthrow new Exception('A reasonable description length is required<br>');\n\n\tprint (\"<html><head>\");\n\tprint (\"<title>$title</title>\");\n\tprint (\"<meta name=\\\"Keywords\\\" content=\\\"$keywords\\\">\");\n\tprint (\"<meta name=\\\"Description\\\" content=\\\"$description\\\">\");\n\tprint (\"</head><body>\");\n}", "private function setupPage ()\n {\n $output = '<!DOCTYPE html><html lang=\"en\"><head>';\n $output .= $this->setCharacterEncoding();\n $output .= $this->setPageTitle();\n $output .= $this->setBasePath();\n $output .= $this->registerResource('css', $this->cssResource);\n $output .= $this->registerResource('js', $this->jsResource);\n $output .= $this->fixHTML5();\n $output .= '</head><body>';\n echo $output;\n }", "private function build_meta_doc_comment($meta)\n {\n $output = \"<?php /**\\n *\\n \";\n\n foreach($meta as $tag => $value)\n {\n $output .= sprintf('* @%s %s', ucfirst($tag), $value);\n }\n\n $output .= \"\\n *\\n */ ?>\\n\\n\";\n\n return $output;\n }", "private function getMeta() {\n $metadata = array(\n 'title' => 'User', \n 'desc' => 'Request URL: ' . Config::get('app.api_url'), \n 'meta' => array( \n 'title' => 'User | Seeties', \n 'description' => 'Sample meta description' \n ),\n 'sidebar' => View::make('user.sidebar')\n );\n\n return $metadata;\n }", "private function _compile_metas(){\n\t\t$compiled_metas = \"\";\n\t\tforeach($this->metas as $meta){\n\t\t\t$compiled_metas .= \"\\t\".'<meta name=\"'.$meta['name'].'\" content=\"'.$meta['content'].'\">'.\"\\n\";\n\t\t}\n\t\tif ($compiled_metas == \"\") return \"\";\n\t\t\n\t\treturn \"<!-- START Compiled META -->\\n\".$compiled_metas.\"\\t<!-- END Compiled META -->\\n\";\n\t}", "public function header()\n {\n echo \"<!doctype html>\\n<html lang='pt'>\\n<head>\\n\";\n echo \"\\t<meta charset='UTF-8'>\\n\";\n echo \"\\t<title>{$this->controller->getTitle()}</title>\\n\";\n $this->links();\n echo \"</head>\\n<body>\\n\";\n }", "function rnf_meta_add_header_tags() {\n // Figure out where we are so we can tell the map where to start\n $object = get_queried_object();\n\n // Set up some defaults and placeholders\n $info = array(\n 'title' => FALSE,\n 'image' => NULL,\n 'description' => NULL, // @TODO: Facebook requires this but it'll be empty for the time being\n 'site' => get_bloginfo('title'),\n 'url' => is_singular() ? get_permalink() :\n ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://')\n . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'],\n 'type' => is_singular() ? 'article' : 'website',\n );\n\n // Some stuff is different depending on what it is\n if ($object instanceof WP_Post) {\n $info['title'] = $object->post_title ?: \"Untitled\";\n\n // We have a post, is it on a trip?\n $trip_terms = wp_get_post_categories($object->ID, array('meta_key' => 'rnf_geo_trip_id', 'fields' => 'all'));\n if (!empty($trip_terms)) {\n $info['title'] .= \" ({$trip_terms[0]->name})\";\n }\n\n $imgreg = '/<img .*src=[\"\\']([^ \"^\\']*)[\"\\']/';\n preg_match_all( $imgreg, $object->post_content, $matches );\n\n // Use the first image src as the OG image\n if (!empty($matches[1])) {\n $info['image'] = reset($matches[1]);\n }\n\n } elseif ($object instanceof WP_Term) {\n // Use the term title as the page title\n $info['title'] = $object->name;\n } else {\n // There is no queried object. The main use-case for this is the default\n // blog view.\n }\n\n // Catch the home page / general archive\n if (!$info['title'] && is_front_page()) {\n $info['title'] = get_bloginfo('title');\n }\n\n // Sanitize all of these for attributes\n array_walk($info, function(&$value, $key) {\n $value = esc_attr($value);\n });\n\n // If we haven't identified a title to share, just bail.\n if (!$info['title']) { return; }\n\n $meta = array();\n $meta[] = \"<meta property='og:locale' content='en_US' />\";\n $meta[] = \"<meta property='og:title' content='{$info['title']}' />\";\n $meta[] = \"<meta property='og:site_name' content='{$info['site']}' />\";\n $meta[] = \"<meta property='og:descrpition' content='{$info['description']}' />\";\n $meta[] = \"<meta property='og:url' content='{$info['url']}' />\";\n $meta[] = \"<meta property='og:type' content='{$info['type']}' />\";\n $meta[] = \"<meta property='og:image' content='{$info['image']}' />\";\n $meta[] = \"<meta name='twitter:title' content='{$info['title']}' />\";\n $meta[] = \"<meta name='twitter:url' content='{$info['url']}' />\";\n $meta[] = ($info['image']) ? \"<meta name='twitter:image' content='{$info['image']}' />\" : \"\";\n $meta[] = \"<meta name='twitter:card' content='summary_large_image' />\";\n\n echo implode(\"\\n\", $meta);\n}", "public function show(SeoMetaTag $seoMetaTag)\n {\n //\n }", "public function KemiSitemap_description()\n {\n echo '<p>Kemi Sitemap Description</p>';\n }", "public function getInfo()\n {\n ob_start();\n echo '<h3>ForWeb framework Page package</h3>';\n echo '<p>Contain main page rendering functions and database tables:</p>';\n echo '<ul>';\n echo '<li>Pages table</li>';\n echo '<li>Templates table</li>';\n echo '<li>Blocks table</li>';\n echo '<li>Includes table</li>';\n echo '</ul>';\n $out = ob_get_contents();\n ob_end_clean();\n return $out;\n }", "public static function printHead() {\n header('Content-Type: text/html; charset='.CHARSET);\n // Checking Bootsprap is enabled\n if(BOOTSTRAP_ON === TRUE){\n //Bootstrap include\n echo BS_DOCTYPE5;\n echo '<html lang=\"'.LANG.'\">';\n echo '<head>';\n echo '<meta charset=\"'.CHARSET.'\">';\n echo '<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">';\n echo '<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">';\n \n // HTML Title\n echo '<title>'.HTML_TITLE.'</title>';\n // Bootstrapping via CDN\n echo '<link rel=\"stylesheet\" href=\"'.BOOTSTRAP_CSS_CDN.'\">';\n echo '<link rel=\"stylesheet\" href=\"'.BOOTSTRAP_CSSTHEME_CDN.'\">';\n echo '<link rel=\"stylesheet\" href=\"'.MY_CSS.'\">';\n\n }\n elseif(BOOTSTRAP_ON === 5){\n echo BS_DOCTYPE5;\n echo '<html>';\n echo '<html lang=\"'.LANG.'\">';\n echo '<title>'.HTML_TITLE.'</title>';\n echo '<meta charset=\"'.CHARSET.'\">';\n echo '<link rel=\"stylesheet\" type=\"text/css\" href=\"'\n .PROJECT_HTTP_ROOT.'/inc/css/default.css\">';\n echo '<script src=\"'.PROJECT_HTTP_ROOT.'/js/default.js\" '\n .'type=\"text/javascript\"></script>';\n } \n else {\n echo BS_DOCTYPE401;\n echo '<html>';\n echo '<head>';\n echo '<title>'.HTML_TITLE.'</title>';\n echo '<meta http-equiv=\"content-type\" content=\"text/html; '\n .'charset='.CHARSET.'\">'.\"\\n\";\n echo '<link rel=\"stylesheet\" type=\"text/css\" href=\"'\n .PROJECT_HTTP_ROOT.'/inc/css/default.css.php\">';\n echo '<script src=\"'.PROJECT_HTTP_ROOT.'/js/default.js\" '\n .'type=\"text/javascript\"></script>';\n }\n \n echo '<meta name=\"description\" content=\"'.META_DESCRIPTION.'\">';\n echo '<meta name=\"author\" content=\"'.META_AUTHOR.'\">';\n echo '<meta name=\"keywords\" content=\"'.META_KEYWORDS.'\">';\n echo '<meta name=\"date\" content=\"'.META_DATE.'\">';\n echo '</head>';\n }", "function generate_category_content()\n {\n global $conf, $page;\n\n if ( count($page['chronology_date'])==0 )\n {\n $this->build_nav_bar(CYEAR); // years\n }\n if ( count($page['chronology_date'])==1 )\n {\n $this->build_nav_bar(CWEEK, array()); // week nav bar 1-53\n }\n if ( count($page['chronology_date'])==2 )\n {\n $this->build_nav_bar(CDAY); // days nav bar Mon-Sun\n }\n $this->build_next_prev();\n return false;\n }", "function add_meta_tags() {\n echo '<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\" />' . \"\\n\";\n }", "function absolvution_post_meta() {\n if ( get_post_type() == 'post' ) {\n echo sprintf(\n __( '<div class=\"meta-container date-posted\">Posted %s </div><div class=\"meta-container cat\"><span class=\"sep cat\"></span> %s </div><div class=\"meta-container tag \"><span class=\"sep tag\"></span> %s </div>', 'absolvution' ),\n get_the_time( get_option( 'date_format' ) ),\n get_the_category_list( ', ' ),\n get_the_tag_list( __( '', 'absolvution' ), ', ' )\n );\n }\n edit_post_link( __( ' (edit)', 'absolvution' ), '<span class=\"edit-link\">', '</span>' );\n}", "public static function getHtmlMeta($type='post', $postdata='', $listurl='', $tag='')\n {\n \t$meta = \"\";\n \t\n \tif ($type == 'post' || $type == 'list') {\n \t\tif ($type == 'post') {\n \t\t\t// encode ' \" < > from title and description\n \t\t\t$pagetitle = htmlspecialchars($postdata[\"title\"]);\n \t\t\t$postdescription = htmlspecialchars($postdata[\"description\"]);\n \t\t\t$url = \"http://\".env(\"DOMAINNAME\").\"/post/\".$postdata[\"id\"];\n \t\t\t$canonicalurl = $url.\"/\".$pagetitle;\n \t\t\t$title = Config::get('weixin.defaulthtmltitle').\" \".$pagetitle;\n \t\t\t$desc = $postdescription;\n \t\t\t$image = $postdata[\"ogimage\"];\n \t\t\t$pagetype = \"article\";\n \t\t} else {\n \t\t\t$url = \"http://\".env(\"DOMAINNAME\").$listurl;\n \t\t\t$canonicalurl = $url;\n \t\t\t$title = Config::get('weixin.defaulthtmltitle').\" \".$tag;\n \t\t\t$pagetitle = $title;\n \t\t\t$desc = Config::get('weixin.defaulthtmldescription');\n \t\t\t$image = Config::get('weixin.defaulthtmlogimage');\n \t\t\t$pagetype = \"website\";\t\t\n \t\t}\n \t\n \t$meta = $meta.\"<meta name='keywords' content='\".Config::get('weixin.defaulthtmlkeywords').\"' />\\n\";\n \t$meta = $meta.\"<meta name='description' content='\".$title.\" \".$desc.\"' />\\n\";\n \t$meta = $meta.\"<meta name='robots' content='index,follow' />\\n\";\n \t\n \t$meta = $meta.\"<meta property='og:type' content='\".$pagetype.\"' />\\n\";\n \t$meta = $meta.\"<meta property='og:url' content='\".$url.\"' />\\n\";\n \t$meta = $meta.\"<meta property='og:title' content='\".$title.\"' />\\n\";\n \t$meta = $meta.\"<meta property='og:description' content='\".$desc.\"' />\\n\";\n \t$meta = $meta.\"<meta property='og:image' content='\".$image.\"' />\\n\";\n \t$meta = $meta.\"<meta property='og:site_name' content='\".env(\"DOMAINNAME\").\"'/>\\n\";\n \t$meta = $meta.\"<meta property='fb:app_id' content='\".env(\"FB_CLIENT_ID\").\"' />\\n\";\n \t\n \t$meta = $meta.\"<title>\".$pagetitle.\"</title>\\n\";\n \t\n \t$meta = $meta.\"<link rel='canonical' href='\".$canonicalurl.\"' />\\n\";\n \t}\n \t\n \treturn $meta;\n }", "public function meta() {\n\t\treturn [\n\t\t\t'name' => 'Tab page',\n\t\t\t'description' => 'This is a tab page',\n\t\t\t'template' => 'pages/tab-page.php'\n\t\t];\n\t}", "private function renderHead() {\n\t\t\n\t\t\t$this->outputLine('<head>');\n\t\t\t\n\t\t\tif ($this->_title != '') {\n\t\t\t\t$this->outputLine('\t<title>' . $this->_title . '</title>');\n\t\t\t}\n\t\t\t\n\t\t\t$this->outputLine('\t<base href=\"' . $this->_base . '\" />');\n\t\t\t\n\t\t\t$this->outputLine('\t<meta http-equiv=\"content-type\" content=\"' . $this->_contentType . '\" />');\n\t\t\t\n\t\t\t//Meta\n\t\t\tforeach ($this->_meta as $meta) {\n\t\t\t\t$this->outputLine('\t<meta name=\"' . $meta->name . '\" content=\"' . $meta->content . '\" />');\n\t\t\t}\n\t\t\t\n\t\t\t//CSS\n\t\t\tforeach ($this->_css as $css) {\n\t\t\t\t$this->outputLine(\"\t\" . $css);\n\t\t\t}\n\t\t\t\n\t\t\t//JS\n\t\t\tforeach ($this->_js as $js) {\n\t\t\t\t$this->outputLine(\"\t\" . $js);\n\t\t\t}\n\t\t\t\n\t\t\t$this->outputLine('</head>');\n\t\t\n\t\t}", "public function drawMeta($name) {\n\t\t\t// Is there scope for using Smarty or similar here?\n\t\t\tif ($name == 'description') {\n\t\t\t\treturn $this->meta_description;\n\t\t\t}\n\t\t\telse if ($name == 'keywords') {\n\t\t\t\treturn $this->meta_keywords;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn '<!-- Unknown \"meta\" data -->';\t\t\n\t\t\t}\n\t\t}", "function twenty_twenty_one_entry_meta_footer() {\n\n\t\t// Early exit if not a post.\n\t\tif ( 'post' !== get_post_type() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Hide meta information on pages.\n\t\tif ( ! is_single() ) {\n\n\t\t\tif ( is_sticky() ) {\n\t\t\t\techo '<p>' . esc_html_x( 'Featured post', 'Label for sticky posts', 'twentytwentyone' ) . '</p>';\n\t\t\t}\n\n\t\t\t$post_format = get_post_format();\n\t\t\tif ( 'aside' === $post_format || 'status' === $post_format ) {\n\t\t\t\techo '<p><a href=\"' . esc_url( get_permalink() ) . '\">' . twenty_twenty_one_continue_reading_text() . '</a></p>'; // phpcs:ignore WordPress.Security.EscapeOutput\n\t\t\t}\n\n\t\t\t// Posted on.\n\t\t\ttwenty_twenty_one_posted_on();\n\n\t\t\t// Edit post link.\n\t\t\tedit_post_link(\n\t\t\t\tsprintf(\n\t\t\t\t\t/* translators: %s: Name of current post. Only visible to screen readers. */\n\t\t\t\t\tesc_html__( 'Edit %s', 'twentytwentyone' ),\n\t\t\t\t\t'<span class=\"screen-reader-text\">' . get_the_title() . '</span>'\n\t\t\t\t),\n\t\t\t\t'<span class=\"edit-link\">',\n\t\t\t\t'</span><br>'\n\t\t\t);\n\n\t\t\tif ( has_category() || has_tag() ) {\n\n\t\t\t\techo '<div class=\"post-taxonomies\">';\n\n\t\t\t\t/* translators: Used between list items, there is a space after the comma. */\n\t\t\t\t$categories_list = get_the_category_list( __( ', ', 'twentytwentyone' ) );\n\t\t\t\tif ( $categories_list ) {\n\t\t\t\t\tprintf(\n\t\t\t\t\t\t/* translators: %s: List of categories. */\n\t\t\t\t\t\t'<span class=\"cat-links\">' . esc_html__( 'Categorized as %s', 'twentytwentyone' ) . ' </span>',\n\t\t\t\t\t\t$categories_list // phpcs:ignore WordPress.Security.EscapeOutput\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\t/* translators: Used between list items, there is a space after the comma. */\n\t\t\t\t$tags_list = get_the_tag_list( '', __( ', ', 'twentytwentyone' ) );\n\t\t\t\tif ( $tags_list ) {\n\t\t\t\t\tprintf(\n\t\t\t\t\t\t/* translators: %s: List of tags. */\n\t\t\t\t\t\t'<span class=\"tags-links\">' . esc_html__( 'Tagged %s', 'twentytwentyone' ) . '</span>',\n\t\t\t\t\t\t$tags_list // phpcs:ignore WordPress.Security.EscapeOutput\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\techo '</div>';\n\t\t\t}\n\t\t} else {\n\n\t\t\techo '<div class=\"posted-by\">';\n\t\t\t// Posted on.\n\t\t\ttwenty_twenty_one_posted_on();\n\t\t\t// Posted by.\n\t\t\ttwenty_twenty_one_posted_by();\n\t\t\t// Edit post link.\n\t\t\tedit_post_link(\n\t\t\t\tsprintf(\n\t\t\t\t\t/* translators: %s: Name of current post. Only visible to screen readers. */\n\t\t\t\t\tesc_html__( 'Edit %s', 'twentytwentyone' ),\n\t\t\t\t\t'<span class=\"screen-reader-text\">' . get_the_title() . '</span>'\n\t\t\t\t),\n\t\t\t\t'<span class=\"edit-link\">',\n\t\t\t\t'</span>'\n\t\t\t);\n\t\t\techo '</div>';\n\n\t\t\tif ( has_category() || has_tag() ) {\n\n\t\t\t\techo '<div class=\"post-taxonomies\">';\n\n\t\t\t\t/* translators: Used between list items, there is a space after the comma. */\n\t\t\t\t$categories_list = get_the_category_list( __( ', ', 'twentytwentyone' ) );\n\t\t\t\tif ( $categories_list ) {\n\t\t\t\t\tprintf(\n\t\t\t\t\t\t/* translators: %s: List of categories. */\n\t\t\t\t\t\t'<span class=\"cat-links\">' . esc_html__( 'Categorized as %s', 'twentytwentyone' ) . ' </span>',\n\t\t\t\t\t\t$categories_list // phpcs:ignore WordPress.Security.EscapeOutput\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\t/* translators: Used between list items, there is a space after the comma. */\n\t\t\t\t$tags_list = get_the_tag_list( '', __( ', ', 'twentytwentyone' ) );\n\t\t\t\tif ( $tags_list ) {\n\t\t\t\t\tprintf(\n\t\t\t\t\t\t/* translators: %s: List of tags. */\n\t\t\t\t\t\t'<span class=\"tags-links\">' . esc_html__( 'Tagged %s', 'twentytwentyone' ) . '</span>',\n\t\t\t\t\t\t$tags_list // phpcs:ignore WordPress.Security.EscapeOutput\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\techo '</div>';\n\t\t\t}\n\t\t}\n\t}", "function ubc_collab_comment_meta() {\n\techo apply_atomic_shortcode( 'comment_meta', '<div class=\"comment-meta comment-meta-data\"><cite>[comment-author]</cite> [comment-published] <span class=\"comment-action\">[comment-permalink before=\"\"] [comment-edit-link before=\"| \"] [comment-reply-link before=\"| \"]<span></div>' );\n}", "function gos_post_meta() {\n if ( get_post_type() == 'post' ) {\n echo sprintf(\n __( 'Posted %s in %s%s by %s. ', 'gos' ),\n get_the_time( get_option( 'date_format' ) ),\n get_the_category_list( ', ' ),\n get_the_tag_list( __( ', <b>Tags</b>: ', 'gos' ), ', ' ),\n get_the_author_link()\n );\n }\n edit_post_link( __( ' (edit)', 'gos' ), '<span class=\"edit-link\">', '</span>' );\n}", "function info_page_html() {\n\t\t\n\t\t// Vars.\n\t\t$view = array(\n\t\t\t'version'\t\t=> acf_get_setting('version'),\n\t\t\t'have_pro'\t\t=> acf_get_setting('pro'),\n\t\t\t'tabs'\t\t\t=> array(\n\t\t\t\t'new'\t\t\t=> __(\"What's New\", 'acf'),\n\t\t\t\t'changelog'\t\t=> __(\"Changelog\", 'acf')\n\t\t\t),\n\t\t\t'active'\t\t=> 'new'\n\t\t);\n\t\t\n\t\t// Find active tab.\n\t\tif( isset($_GET['tab']) && $_GET['tab'] === 'changelog' ) {\n\t\t\t$view['active'] = 'changelog';\n\t\t}\t\t\n\t\t\n\t\t// Load view.\n\t\tacf_get_view('settings-info', $view);\n\t}", "public function show_head() {\n \n $output = '<head>';\n \n if( empty( $this->title ) ) {\n $this->title = \"No Title Available\";\n } \n\n $output .= '<title>' . $this->title . '</title>';\n $output .= $this->get_header_elements();\n $output .= \"\\n</head>\";\n\n echo $output;\n }", "function pixelgrade_get_post_meta( $key = false ) {\n\t\t// Gather up all the meta we might need to display\n\t\t// But first initialize please\n\t\t$meta = array(\n\t\t\t'category' => false,\n\t\t\t'tags' => false,\n\t\t\t'author' => false,\n\t\t\t'date' => false,\n\t\t\t'comments' => false,\n\t\t);\n\n\t\t$single_meta_needed = false;\n\t\t// We do not test for $key sanity because others might introduce new keys and use the 'pixelgrade_get_post_meta' filter to fill them in.\n\t\tif ( ! empty( $key ) ) {\n\t\t\t// We have been given a valid key, we only want that\n\t\t\t$meta = array( $key => false );\n\t\t\t$single_meta_needed = true;\n\t\t}\n\n\t\tforeach ( $meta as $meta_key => $item ) {\n\t\t\tswitch ( $meta_key ) {\n\t\t\t\tcase 'category':\n\t\t\t\t\t$category = '';\n\t\t\t\t\tif ( is_page() ) {\n\t\t\t\t\t\t// If we are on a page then we only want the main category\n\t\t\t\t\t\t$main_category = pixelgrade_get_main_category_link();\n\t\t\t\t\t\tif ( ! empty( $main_category ) ) {\n\t\t\t\t\t\t\t$category .= '<span class=\"screen-reader-text\">' . esc_html__( 'Main Category', '__components_txtd' ) . \"</span><ul>\\n\";\n\t\t\t\t\t\t\t$category .= '<li>' . $main_category . \"</li>\\n\";\n\t\t\t\t\t\t\t$category .= \"</ul>\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// On archives we want to show all the categories, not just the main one\n\t\t\t\t\t\t$categories = get_the_terms( get_the_ID(), 'category' );\n\t\t\t\t\t\tif ( ! is_wp_error( $categories ) && ! empty( $categories ) ) {\n\t\t\t\t\t\t\t$category .= '<span class=\"screen-reader-text\">' . esc_html__( 'Categories', '__components_txtd' ) . \"</span><ul>\\n\";\n\t\t\t\t\t\t\tforeach ( $categories as $this_category ) {\n\t\t\t\t\t\t\t\t$category .= '<li><a href=\"' . esc_url( get_category_link( $this_category ) ) . '\" rel=\"category\">' . $this_category->name . \"</a></li>\\n\";\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t$category .= \"</ul>\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$meta['category'] = $category;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'tags':\n\t\t\t\t\t$post_tags = get_the_terms( get_the_ID(), 'post_tag' );\n\t\t\t\t\t$tags = '';\n\t\t\t\t\tif ( ! is_wp_error( $post_tags ) && ! empty( $post_tags ) ) {\n\t\t\t\t\t\t$tags .= '<span class=\"screen-reader-text\">' . esc_html__( 'Tags', '__components_txtd' ) . \"</span><ul>\\n\";\n\t\t\t\t\t\tforeach ( $post_tags as $post_tag ) {\n\t\t\t\t\t\t\t$tags .= '<li><a href=\"' . esc_url( get_term_link( $post_tag ) ) . '\" rel=\"tag\">' . $post_tag->name . \"</a></li>\\n\";\n\t\t\t\t\t\t};\n\t\t\t\t\t\t$tags .= \"</ul>\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t$meta['tags'] = $tags;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'author':\n\t\t\t\t\t$meta['author'] = '<span class=\"byline\">' . get_the_author() . '</span>';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'date':\n\t\t\t\t\t$meta['date'] = '<span class=\"posted-on\">' . get_the_date() . '</span>';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'comments':\n\t\t\t\t\tif ( comments_open() ) {\n\t\t\t\t\t\t$comments_number = get_comments_number(); // get_comments_number returns only a numeric value\n\t\t\t\t\t\tif ( $comments_number == 0 ) {\n\t\t\t\t\t\t\t$comments = esc_html__( 'No Comments', '__components_txtd' );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t/* translators: %d: the number of comments */\n\t\t\t\t\t\t\t$comments = sprintf( _n( '%d Comment', '%d Comments', $comments_number, '__components_txtd' ), $comments_number );\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$meta['comments'] = '<a href=\"' . esc_url( get_comments_link() ) . '\">' . esc_html( $comments ) . '</a>';\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$meta['comments'] = '';\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// Filter it before we decide what to return\n\t\t$meta = apply_filters( 'pixelgrade_get_post_meta', $meta, $key );\n\n\t\t// We have been asked for a single meta, we will return the string value; no array\n\t\tif ( true === $single_meta_needed ) {\n\t\t\treturn $meta[ $key ];\n\t\t}\n\n\t\treturn $meta;\n\t}", "protected function addMetaInformation( $description, $thumb ) {\n\t\t$out = $this->getOutput();\n\t\t$out->addHeadItem( 'description',\n\t\t\tHtml::element(\n\t\t\t\t'meta', [\n\t\t\t\t\t'name' => 'description',\n\t\t\t\t\t'content' => $description,\n\t\t\t\t]\n\t\t\t)\n\t\t);\n\t\tif ( $thumb ) {\n\t\t\t$out->addHeadItem(\n\t\t\t\t'ogimage',\n\t\t\t\tHtml::element(\n\t\t\t\t\t'meta',\n\t\t\t\t\t[\n\t\t\t\t\t\t'property' => 'og:image',\n\t\t\t\t\t\t'content' => wfExpandUrl( $thumb->getUrl(), PROTO_CURRENT ),\n\t\t\t\t\t]\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t}", "public function WPHead() {\n\t\t// Just tag the page for fun.\n\t\techo \"\\n\\t\" . '<!-- This site uses Good Old Gallery, get it from http://wp.unwi.se/good-old-gallery -->' . \"\\n\\n\";\n\t}", "function simple_bootstrap_display_post_meta($short=true) {\n?>\n\n <ul class=\"meta text-muted list-inline\">\n <li class=\"list-inline-item\">\n <a href=\"<?php the_permalink() ?>\">\n <i class=\"fas fa-clock\"></i>\n <span class=\"sr-only\"><?php echo __( 'Posted on', 'simple-bootstrap' ) ?></span>\n <?php echo get_the_date(); ?>\n </a>\n </li>\n <li class=\"list-inline-item\">\n <a href=\"<?php echo get_author_posts_url(get_the_author_meta('ID'));?>\">\n <i class=\"fas fa-user\"></i>\n <span class=\"sr-only\"><?php echo __( 'Posted by', 'simple-bootstrap' ) ?></span>\n <?php the_author(); ?>\n </a>\n </li>\n <?php if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) : ?>\n <li class=\"list-inline-item\">\n <?php\n $sp = '<i class=\"fas fa-comment\"></i> ';\n comments_popup_link($sp . __( 'Leave a comment', \"simple-bootstrap\"), $sp . __( '1 Comment', \"simple-bootstrap\"), $sp . __( '% Comments', \"simple-bootstrap\"));\n ?>\n </li>\n <?php endif; ?>\n <?php if (! $short) : ?>\n\n <?php $categories_list = get_the_category_list(', '); ?>\n <?php if ( $categories_list ) : ?>\n <li class=\"list-inline-item\">\n <i class=\"fas fa-folder\"></i>\n <span class=\"sr-only\"><?php echo __( 'Posted in', 'simple-bootstrap' ) ?></span>\n <?php echo $categories_list ?>\n </li>\n <?php endif ?>\n <?php $tags_list = get_the_tag_list('', ', '); ?>\n <?php if ( $tags_list ) : ?>\n <li class=\"list-inline-item\">\n <i class=\"fas fa-tag\"></i>\n <span class=\"sr-only\"><?php echo __( 'Tags:', 'simple-bootstrap' ) ?></span>\n <?php echo $tags_list ?>\n </li>\n <?php endif ?>\n\n <?php edit_post_link(__( 'Edit', \"simple-bootstrap\"), '<li class=\"list-inline-item\"><i class=\"fas fa-pencil-alt\"></i> ', '</li>'); ?>\n <?php endif ?>\n </ul>\n\n<?php\n}", "public function render(): void {\r\n $pages = MJKGTAPI::pages();\r\n $wp_cron = get_option('cron');\r\n\r\n $this->render_css();\r\n\r\n printf('<div class=\"wrap\">');\r\n $this->output_intro();\r\n printf('<div id=\"%s\">', self::id_main);\r\n $this->output_sections($pages, $wp_cron);\r\n printf('</div></div>');\r\n }", "public function showMovieCategories(){\n $querry=$this->con->prepare(\"SELECT * from categories\");\n $querry->execute();\n\n\n $html=\"<div class='previewCategories'>\n <h1>Movies</h1>\";\n\n //Keep on Appending the HTML OF EACH CATEGORY\n while($row=$querry->fetch(PDO::FETCH_ASSOC)){ //This loop working needs investigation\n $html.=$this->getCategoyHtml($row,null,false,true);\n }\n\n //Return the whole html to print\n return $html.\"</div>\";\n }", "function agilespirit_entry_meta() {\n if ( is_sticky() && is_home() && ! is_paged() )\n echo '<span class=\"featured-post\">' . __( 'Sticky', 'agilespirit' ) . '</span>';\n\n if ( ! has_post_format( 'link' ) && 'post' == get_post_type() )\n agilespirit_entry_date();\n\n // Translators: used between list items, there is a space after the comma.\n $categories_list = get_the_category_list( __( ', ', 'agilespirit' ) );\n if ( $categories_list ) {\n echo ' ' . __('in', 'agilespirit') . ' <span class=\"categories-links\">' . $categories_list . '</span>';\n }\n\n // Translators: used between list items, there is a space after the comma.\n $tag_list = get_the_tag_list( '', __( ', ', 'agilespirit' ) );\n if ( $tag_list ) {\n echo '<span class=\"tags-links\">' . ' ' . __(' concerning ', 'agilespirit') . ' ' . $tag_list . '</span>';\n }\n\n // Post author\n if ( 'post' == get_post_type() ) {\n _e(' by ', 'agilespirit');\n printf( '<span class=\"author\"><a class=\"url fn n\" href=\"%1$s\" title=\"%2$s\" rel=\"author\">%3$s</a></span>',\n esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),\n esc_attr( sprintf( __( 'View all posts by %s', 'agilespirit' ), get_the_author() ) ),\n get_the_author()\n );\n }\n}", "function masterportfolio_post_meta() {\n\n // Author.\n $author = array(\n '<li class=\"post-author meta-wrapper\">',\n '<span class=\"meta-icon\">',\n '<span class=\"screen-reader-text\">',\n __( 'Post Author', 'masterportfolio' ),\n '</span>',\n '<i class=\"fas fa-user\"></i>',\n '</span>',\n '<span class=\"meta-text\">',\n sprintf(\n __( 'By %s', 'masterportfolio' ),\n '<a href=\"' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '\">' . esc_html( get_the_author_meta( 'display_name' ) ) . '</a>'\n ),\n '</span>',\n '</li>'\n );\n\n // Post date.\n $date = array(\n '<li class=\"post-date meta-wrapper\">',\n '<span class=\"meta-icon\">',\n '<span class=\"screen-reader-text\">',\n __( 'Publication date', 'masterportfolio' ),\n '</span>',\n '<i class=\"fas fa-calendar-alt\"></i>',\n '</span>',\n '<span class=\"meta-text\">',\n get_the_date(),\n '</span>',\n '</li>'\n );\n\n // Categories.\n $categories = array();\n\n if ( has_category() || has_term( '', 'portfolio_category' ) ) {\n // If is Post or Custom Post Type\n $categoriesArray = ( get_post_type() === 'post' ) ? get_the_category() : get_the_terms( $post->ID, 'portfolio_category' );\n $categoriesLength = count( $categoriesArray );\n $categoriesLinks = \"\"; \n $x = 1;\n\n foreach ( $categoriesArray as $category ) {\n // Make a string with all categories links\n $categoriesLinks .= sprintf( \n '<a href=\"%s\">%s</a>%s', \n esc_url( get_term_link( $category->term_id ) ), \n esc_html( $category->name ),\n ( $x !== $categoriesLength ) ? \"&#44;&nbsp;\" : \"\" // Check if is the last item, to not add comma and space\n );\n\n $x++;\n } \n\n array_push( $categories,\n '<li class=\"post-categories meta-wrapper\">',\n '<span class=\"meta-icon\">',\n '<span class=\"screen-reader-text\">',\n __( 'Post categories', 'masterportfolio' ),\n '</span>',\n '<i class=\"fas fa-folder\"></i>',\n '</span>',\n '<span class=\"meta-text\">',\n sprintf(\n __( \"In %s\", 'masterportfolio' ),\n $categoriesLinks\n ),\n '</span>',\n '</li>'\n );\n }\n \n // Tags.\n $tags = array();\n\n if ( has_tag() ) {\n array_push( $tags,\n '<li class=\"post-tags meta-wrapper\">',\n '<span class=\"meta-icon\">',\n '<span class=\"screen-reader-text\">',\n __( 'Post tags', 'masterportfolio' ),\n '</span>',\n '<i class=\"fas fa-tag fa-sm\"></i>',\n '</span>',\n '<span class=\"meta-text\">',\n get_the_tag_list( '', ', ', '' ),\n '</span>',\n '</li>'\n );\n }\n \n // Comments link.\n $commentsNumber = intval( get_comments_number() );\n\n if ( $commentsNumber === 0 ) \n $commentsTotal = __( 'No comment', 'masterportfolio' );\n if ( $commentsNumber === 1 ) \n $commentsTotal = __( '1 comment', 'masterportfolio' );\n if ( $commentsNumber > 1 ) \n $commentsTotal = sprintf( __( '%s comments', 'masterportfolio' ), $commentsNumber );\n\n $comments = array(\n '<li class=\"post-comments-count meta-wrapper\">',\n '<span class=\"meta-icon\">',\n '<span class=\"screen-reader-text\">',\n __( 'Total comments', 'masterportfolio' ),\n '</span>',\n '<i class=\"fas fa-comments\"></i>',\n '</span>',\n '<span class=\"meta-text\">',\n $commentsTotal,\n '</span>',\n '</li>',\n );\n\n // Combine all arrays\n $metaItems = array_merge($author, $date, $categories, $tags, $comments);\n\n echo '<div class=\"post-meta-wrapper\"><ul class=\"post-meta\">';\n echo implode('', $metaItems); // Join array elements with a string\n echo '</ul></div>';\n}", "public function testGenerateMetaTags()\n {\n $this->markTestIncomplete(\n 'This test has not been implemented yet.'\n );\n }", "function add_meta_tags() {\n?>\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <meta property=\"og:image\" content=\"https://www.alessandramilburn.com/wp-content/uploads/2020/03/Logo.png\" />\n <meta name=\"p:domain_verify\" content=\"61eae8efaa5ec066ea42a394ab4b7e54\"/>\n <?php }", "function interpret_META_to_HTML($metadata) {\r\n $title = (!empty($id3_data[\"comments_html\"][\"title\"][0])) ? $id3_data[\"comments_html\"][\"title\"][0] : \"no title\";\r\n $artist = (!empty($id3_data[\"comments_html\"][\"artist\"][0])) ? $id3_data[\"comments_html\"][\"artist\"][0] : \"no artist\";\r\n $album = (!empty($id3_data[\"comments_html\"][\"album\"][0])) ? $id3_data[\"comments_html\"][\"album\"][0] : \"no album\";\r\n $year = (!empty($id3_data[\"id3v1\"][\"year\"])) ? $id3_data[\"id3v1\"][\"year\"] : \"no year\";\r\n $comment = (!empty($id3_data[\"comment\"])) ? $id3_data[\"comment\"] : \"no comment\";\r\n $genre = (!empty($metadata[\"comments_html\"][\"genre\"][0])) ? $metadata[\"comments_html\"][\"genre\"][0] : \"no genre\";\r\n $html = (\"\\t\\t<table border=\\\"0\\\" cellpadding=\\\"3\\\" cellspacing=\\\"0\\\" width=\\\"70%\\\">\\n\"\r\n . \"\\t\\t<tr>\\n\"\r\n . \"\\t\\t<td align=\\\"left\\\">\"._ZOOM_ID3_LENGTH.\"</td>\\n\"\r\n . \"\\t\\t<td align=\\\"left\\\">\".$metadata[\"playtime_string\"].\"</td>\\n\"\r\n . \"\\t\\t</tr>\"\r\n . \"\\t\\t<tr>\\n\"\r\n . \"\\t\\t<td align=\\\"left\\\">\"._ZOOM_VIDEO_QUALITY.\"</td>\\n\"\r\n . \"\\t\\t<td align=\\\"left\\\">\".$metadata[\"bitrate\"].\" bit/s @ \".$metadata['video']['frame_rate'].\" frame/s</td>\\n\"\r\n . \"\\t\\t</tr>\"\r\n . \"\\t\\t<tr>\\n\"\r\n . \"\\t\\t<td align=\\\"left\\\">\"._ZOOM_VIDEO_RESOLUTION.\"</td>\\n\"\r\n . \"\\t\\t<td align=\\\"left\\\">\".$metadata[\"video\"][\"resolution_x\"].\" x \".$metadata[\"video\"][\"resolution_y\"].\"</td>\\n\"\r\n . \"\\t\\t</tr>\"\r\n . \"\\t\\t</table>\");\r\n return $html;\r\n }", "public function printHtmlPage(){\n\n // Change the content headers to that of HTML\n header('Content-type: text/html; charset=utf8');\n\n // Include the HTML wrapper and collect output\n ob_start();\n require_once(LEGACY_MMRPG_ROOT_DIR.'markup/html-wrapper.php');\n $html_markup = ob_get_clean();\n\n // Print out the collected markup and exit\n echo($html_markup);\n exit();\n\n }", "public function getMetaTags()\n {\n $datetimeString = date('n/d/y @ g:ia', strtotime($this->eventdatetime->starttime));\n if ($this->isAllDay()) {\n $datetimeString = date('n/d/y', strtotime($this->eventdatetime->starttime));\n }\n\n $title = $this->event->displayTitle($this) . ' - ' . $datetimeString;\n\n // Add a description if it is set\n $description = 'Event on ' . $datetimeString;\n if (isset($this->event->description) && !empty($this->event->description)) {\n $description = $this->event->description;\n }\n\n // Add a image if it is set\n $image = '';\n if (isset($this->event->imagedata) && !empty($this->event->imagedata)) {\n $image = MetaTagUtility::getSiteURL() . '?image&amp;id=' . $this->event->id;\n }\n\n // Build the options\n $options = array(\n 'image' => $image,\n 'label1' => 'Calendar',\n 'data1' => $this->calendar->name,\n );\n\n $location = $this->eventdatetime->getLocation();\n $webcast = $this->eventdatetime->getWebcast();\n\n if ($location !== false && $webcast !== false) {\n $options['label2'] = 'In-Person and Online';\n $options['data2'] = $location->name . ' & ' . $webcast->title;\n } elseif ($location !== false) {\n $options['label2'] = 'Location';\n $options['data2'] = $location->name;\n } elseif ($webcast !== false) {\n $options['label2'] = 'Virtual Location';\n $options['data2'] = $webcast->title;\n }\n\n $metaTagUtility = new MetaTagUtility($this->getURL(), $title, $description, $options);\n\n return $metaTagUtility->getMetaTags();\n }", "function get_tags_og_protocol() {\n echo '<meta property=\"og:description\" content=\"'. get_bloginfo( \"description\" ) .'\">\n <meta property=\"og:image\" content=\"'. get_icon_url(\"og-image.jpg\", \"favicons\") .'\">\n <meta property=\"og:locale\" content=\"'. get_bloginfo( \"language\" ) .'\">\n <meta property=\"og:site_name\" content=\"'. get_bloginfo( \"short_name\" ) .'\">\n <meta property=\"og:title\" content=\"'. get_bloginfo( \"name\" ) .'\"> \n <meta property=\"og:type\" content=\"website\">\n <meta property=\"og:url\" content=\"'. get_bloginfo( \"url\" ) .'\">';\n}", "protected function set_meta_desc()\r\r\n {\r\r\n define('_KEYWORDS',_BUY_ONLINE);\r\r\n define('_DESCRIPTION',_BUY_ONLINE);\r\r\n define('_TITLE_PAGE',_BUY_ONLINE);\r\r\n }", "public function useMetaData()\n {\n $this->render();\n $metaData = $this->param('meta_data');\n if ($metaData) {\n if (!empty($metaData['layout.yml'])) {\n $layoutData = BYAML::i()->parse(trim($metaData['layout.yml']));\n BLayout::i()->addLayout('viewproxy-metadata', $layoutData)->applyLayout('viewproxy-metadata');\n }\n if (($head = $this->view('head'))) {\n foreach ($metaData as $k=>$v) {\n $k = strtolower($k);\n switch ($k) {\n case 'title':\n $head->addTitle($v); break;\n case 'meta_title': case 'meta_description': case 'meta_keywords':\n $head->meta(str_replace('meta_','',$k), $v); break;\n }\n }\n }\n }\n return $this;\n }", "function generate_do_archive_description() {\n\t$term_description = term_description();\n\n\tif ( ! empty( $term_description ) ) {\n\t\tprintf( '<div class=\"taxonomy-description\">%s</div>', $term_description ); // WPCS: XSS ok, sanitization ok.\n\t}\n\n\tif ( get_the_author_meta( 'description' ) && is_author() ) {\n\t\techo '<div class=\"author-info\">' . get_the_author_meta( 'description' ) . '</div>'; // WPCS: XSS ok, sanitization ok.\n\t}\n\n\t/**\n\t * generate_after_archive_description hook.\n\t *\n\t * @since 0.1\n\t */\n\tdo_action( 'generate_after_archive_description' );\n}", "public function head() {\r\n return <<<HTML\r\n <meta charset=\"utf-8\">\r\n <title>$this->title</title>\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\r\n <link href=\"steampunked.css\" type=\"text/css\" rel=\"stylesheet\" />\r\n\r\nHTML;\r\n }", "function charity_create_description() {\n\t\t$content = '';\n\t\tif (charity_seo()) {\n \t\tif (is_single() || is_page() ) {\n \t\t if ( have_posts() ) {\n \t\t while ( have_posts() ) {\n \t\t the_post();\n\t\t\t\t\t\t\t\t\t\tif (charity_the_excerpt() == \"\") {\n \t\tif (charity_use_autoexcerpt()) {\n \t\t$content =\"\\t\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$content .= \"<meta name=\\\"description\\\" content=\\\"\";\n \t\t$content .= charity_excerpt_rss();\n \t\t$content .= \"\\\" />\";\n \t\t$content .= \"\\n\\n\";\n \t\t}\n \t\t} else {\n \t\tif (charity_use_excerpt()) {\n \t\t$content =\"\\t\";\n \t\t$content .= \"<meta name=\\\"description\\\" content=\\\"\";\n \t\t$content .= charity_the_excerpt();\n \t\t$content .= \"\\\" />\";\n \t\t$content .= \"\\n\\n\";\n \t\t}\n \t\t}\n \t\t}\n \t\t}\n \t\t} elseif ( is_home() || is_front_page() ) {\n \t\t$content =\"\\t\";\n \t\t$content .= \"<meta name=\\\"description\\\" content=\\\"\";\n \t\t$content .= get_bloginfo('description');\n \t\t$content .= \"\\\" />\";\n \t\t$content .= \"\\n\\n\";\n \t\t}\n \t\techo apply_filters ('charity_create_description', $content);\n\t\t}\n}", "private function printToolHead() {\n\t\t\t$this->page->openBlock('div', 'iw-content');\n\t\t\t$this->page->addInline('p', 'This tool generates reports about wikilinks in one article:');\n\t\t\t$this->page->openBlock('ul');\n\t\t\t$this->page->addInline('li', 'Links from given article which have no backlinks from target article');\n\t\t\t$this->page->addInline('li', 'Backlinks from other articles which have no links from given article');\n\t\t\t$this->page->addInline('li', 'Links from given article with backlinks from other articles');\n\t\t\t$this->page->closeBlock();\n\t\t\t$this->page->addInline('h2', 'Options');\n\t\t\t\n\t\t\t// options\n\t\t\t$optionForm = new HtmlForm('index.php', 'GET');\n\t\t\t$optionForm->addHTML('<table class=\"iw-nostyle\">');\n\t\t\t\n\t\t\t// lang/project\n\t\t\t$optionForm->addHTML('<tr><td>');\n\t\t\t$optionForm->addLabel('lang', 'Project');\n\t\t\t$optionForm->addHTML('</td><td>');\n\t\t\t$optionForm->addInput('lang', $this->par['lang'], '', 7, true);\n\t\t\t$optionForm->addHTML('&nbsp;.&nbsp;');\n\t\t\t$optionForm->addInput('project', $this->par['project'], '', 20, true);\n\t\t\t$optionForm->addHTML('&nbsp;.org</td></tr>');\n\t\t\t\n\t\t\t// page\n\t\t\t$optionForm->addHTML('<tr><td>');\n\t\t\t$optionForm->addLabel('page', 'Page title');\n\t\t\t$optionForm->addHTML('</td><td>');\n\t\t\t$optionForm->addInput('page', $this->par['page'], 'A page title in the main namespace (0)', 0, true);\n\t\t\t$optionForm->addHTML('</td></tr>');\n\t\t\t\n\t\t\t// submit button\n\t\t\t$optionForm->addHTML('<tr><td colspan=\"2\">');\n\t\t\t$optionForm->addButton('submit', 'View page conjunction');\n\t\t\t$optionForm->addHTML('</td></tr>');\n\t\t\t\n\t\t\t$optionForm->addHTML('</table>');\n\t\t\t$optionForm->output();\n\t\t\t\n\t\t\t$this->page->closeBlock();\n\t\t}" ]
[ "0.71822876", "0.63436633", "0.6269145", "0.61859035", "0.6127091", "0.6076838", "0.6060589", "0.6016543", "0.58510745", "0.5798328", "0.57922065", "0.5771313", "0.5769468", "0.57434726", "0.57205415", "0.5719291", "0.57133913", "0.57095003", "0.57089883", "0.57061094", "0.5668729", "0.56415415", "0.5611889", "0.55951446", "0.55368334", "0.5534807", "0.5522796", "0.55101484", "0.5502618", "0.54999745", "0.54960835", "0.54944694", "0.5480069", "0.5476904", "0.5476904", "0.54677033", "0.54628617", "0.54403293", "0.5432047", "0.54235774", "0.54207355", "0.5417588", "0.541386", "0.5407676", "0.5404464", "0.5374784", "0.5372784", "0.5349993", "0.5338654", "0.5336816", "0.5331006", "0.53241575", "0.5294991", "0.52903444", "0.52896947", "0.5275664", "0.5269847", "0.52531767", "0.52526456", "0.52518284", "0.52373224", "0.52281207", "0.5223182", "0.52097386", "0.5207654", "0.5206694", "0.5191125", "0.5190748", "0.5173742", "0.51726264", "0.51643205", "0.5160737", "0.51542443", "0.514001", "0.51346517", "0.5117393", "0.51084167", "0.5107746", "0.51072985", "0.51057047", "0.51043123", "0.5100996", "0.509961", "0.50965244", "0.50948125", "0.50789624", "0.5075698", "0.50724554", "0.50710523", "0.5058104", "0.50501305", "0.5044251", "0.503802", "0.50164163", "0.50070095", "0.49941304", "0.49939734", "0.49928907", "0.4992796", "0.49912658", "0.4986267" ]
0.0
-1
Returns true if a blog has more than 1 category.
function circle_categorized_blog() { if ( false === ( $all_the_cool_cats = get_transient( 'circle_categories' ) ) ) { // Create an array of all the categories that are attached to posts. $all_the_cool_cats = get_categories( array( 'fields' => 'ids', 'hide_empty' => 1, // We only need to know if there is more than one category. 'number' => 2, ) ); // Count the number of categories that are attached to the posts. $all_the_cool_cats = count( $all_the_cool_cats ); set_transient( 'circle_categories', $all_the_cool_cats ); } if ( $all_the_cool_cats > 1 ) { // This blog has more than 1 category so circle_categorized_blog should return true. return true; } else { // This blog has only 1 category so circle_categorized_blog should return false. return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function client_portal_categorized_blog() {\n\n\t$category_count = get_transient( 'client_portal_categories' );\n\n\tif ( false === $category_count ) {\n\n\t\t$category_count_query = get_categories(\n\t\t\tarray(\n\t\t\t\t'fields' => 'count',\n\t\t\t)\n\t\t);\n\n\t\t$category_count = (int) $category_count_query[0];\n\n\t\tset_transient( 'client_portal_categories', $category_count );\n\t}\n\n\treturn $category_count > 1;\n}", "function ppo_categorized_blog() {\n if (false === ( $all_the_cool_cats = get_transient('ppo_category_count') )) {\n // Create an array of all the categories that are attached to posts\n $all_the_cool_cats = get_categories(array(\n 'hide_empty' => 1,\n ));\n\n // Count the number of categories that are attached to the posts\n $all_the_cool_cats = count($all_the_cool_cats);\n\n set_transient('ppo_category_count', $all_the_cool_cats);\n }\n\n if (1 !== (int) $all_the_cool_cats) {\n // This blog has more than 1 category so ppo_categorized_blog should return true\n return true;\n } else {\n // This blog has only 1 category so ppo_categorized_blog should return false\n return false;\n }\n}", "function smart_foundation_categorized_blog() {\n\tif ( false === ( $all_the_cool_cats = get_transient( 'smart_foundation_categories' ) ) ) {\n\t\t// Create an array of all the categories that are attached to posts.\n\t\t$all_the_cool_cats = get_categories( array(\n\t\t\t'fields' => 'ids',\n\t\t\t'hide_empty' => 1,\n\n\t\t\t// We only need to know if there is more than one category.\n\t\t\t'number' => 2,\n\t\t) );\n\n\t\t// Count the number of categories that are attached to the posts.\n\t\t$all_the_cool_cats = count( $all_the_cool_cats );\n\n\t\tset_transient( 'smart_foundation_categories', $all_the_cool_cats );\n\t}\n\n\tif ( $all_the_cool_cats > 1 ) {\n\t\t// This blog has more than 1 category so smart_foundation_categorized_blog should return true.\n\t\treturn true;\n\t} else {\n\t\t// This blog has only 1 category so smart_foundation_categorized_blog should return false.\n\t\treturn false;\n\t}\n}", "public function hasCategories()\n {\n return !$this->categories->isEmpty();\n }", "function gravit_categorized_blog() {\r\r\n\tif ( false === ( $all_the_cool_cats = get_transient( 'all_the_cool_cats' ) ) ) {\r\r\n\t\t// Create an array of all the categories that are attached to posts.\r\r\n\t\t$all_the_cool_cats = get_categories( array(\r\r\n\t\t\t'hide_empty' => 1,\r\r\n\t\t) );\r\r\n\r\r\n\t\t// Count the number of categories that are attached to the posts.\r\r\n\t\t$all_the_cool_cats = count( $all_the_cool_cats );\r\r\n\r\r\n\t\tset_transient( 'all_the_cool_cats', $all_the_cool_cats );\r\r\n\t}\r\r\n\r\r\n\tif ( '1' != $all_the_cool_cats ) {\r\r\n\t\t// This blog has more than 1 category so gravit_categorized_blog should return true.\r\r\n\t\treturn true;\r\r\n\t} else {\r\r\n\t\t// This blog has only 1 category so gravit_categorized_blog should return false.\r\r\n\t\treturn false;\r\r\n\t}\r\r\n}", "public function hasCategories()\n {\n return !empty($this->categories);\n }", "function bt_categorized_blog() {\n\tif ( false === ( $all_the_cool_cats = get_transient( 'all_the_cool_cats' ) ) ) {\n\t\t// Create an array of all the categories that are attached to posts\n\t\t$all_the_cool_cats = get_categories( array(\n\t\t\t'hide_empty' => 1,\n\t\t) );\n\n\t\t// Count the number of categories that are attached to the posts\n\t\t$all_the_cool_cats = count( $all_the_cool_cats );\n\n\t\tset_transient( 'all_the_cool_cats', $all_the_cool_cats );\n\t}\n\n\tif ( '1' != $all_the_cool_cats ) {\n\t\t// This blog has more than 1 category so _s_categorized_blog should return true\n\t\treturn true;\n\t} else {\n\t\t// This blog has only 1 category so _s_categorized_blog should return false\n\t\treturn false;\n\t}\n}", "public function hasCategories() {\n return $this->_has(16);\n }", "private function categoriesMoreThanOne()\n {\n\n // RETURN : method is called twice at least\n if ( $this->boolMoreThanOneCategory != null )\n {\n return $this->boolMoreThanOneCategory;\n }\n // RETURN : method is called twice at least\n\n $categories = $this->categoriesGet();\n\n if ( count( $categories[ 'labels' ] ) > 1 )\n {\n $this->boolMoreThanOneCategory = true;\n if ( $this->pObj->b_drs_map )\n {\n $prompt = 'There is more than one category.';\n t3lib_div :: devLog( '[INFO/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 0 );\n }\n }\n else\n {\n $this->boolMoreThanOneCategory = false;\n if ( $this->pObj->b_drs_map )\n {\n $prompt = 'There isn\\'t more than one category.';\n t3lib_div :: devLog( '[INFO/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 0 );\n }\n }\n return $this->boolMoreThanOneCategory;\n }", "function delivery_categorized_blog() {\n\tif ( false === ( $all_the_cool_cats = get_transient( 'delivery_categories' ) ) ) {\n\t\t// Create an array of all the categories that are attached to posts.\n\t\t$all_the_cool_cats = get_categories( array(\n\t\t\t'fields' => 'ids',\n\t\t\t'hide_empty' => 1,\n\n\t\t\t// We only need to know if there is more than one category.\n\t\t\t'number' => 2,\n\t\t) );\n\n\t\t// Count the number of categories that are attached to the posts.\n\t\t$all_the_cool_cats = count( $all_the_cool_cats );\n\n\t\tset_transient( 'delivery_categories', $all_the_cool_cats );\n\t}\n\n\tif ( $all_the_cool_cats > 1 ) {\n\t\t// This blog has more than 1 category so delivery_categorized_blog should return true.\n\t\treturn true;\n\t} else {\n\t\t// This blog has only 1 category so delivery_categorized_blog should return false.\n\t\treturn false;\n\t}\n}", "public function hasCategory()\n {\n return $this->category !== null;\n }", "function have_category() {\n global $categories_index, $discussion, $categories, $categories_count;\n\n $categories_count = count(get_categories());\n $categories = get_categories();\n\n if ($categories && $categories_index + 1 <= $categories_count) {\n $categories_index++;\n return true;\n } else {\n $categories_count = 0;\n return false;\n }\n}", "function root_categorized_blog() {\n\tif ( false === ( $all_the_cool_cats = get_transient( 'root_categories' ) ) ) {\n\t\t// Create an array of all the categories that are attached to posts.\n\t\t$all_the_cool_cats = get_categories( array(\n\t\t\t'fields' => 'ids',\n\t\t\t'hide_empty' => 1,\n\t\t\t// We only need to know if there is more than one category.\n\t\t\t'number' => 2,\n\t\t) );\n\n\t\t// Count the number of categories that are attached to the posts.\n\t\t$all_the_cool_cats = count( $all_the_cool_cats );\n\n\t\tset_transient( 'root_categories', $all_the_cool_cats );\n\t}\n\n\tif ( $all_the_cool_cats > 1 ) {\n\t\t// This blog has more than 1 category so root_categorized_blog should return true.\n\t\treturn true;\n\t} else {\n\t\t// This blog has only 1 category so root_categorized_blog should return false.\n\t\treturn false;\n\t}\n}", "function pixelgrade_categorized_blog() {\n\tif ( false === ( $all_the_cool_cats = get_transient( 'pixelgrade_categories' ) ) ) {\n\t\t// Create an array of all the categories that are attached to posts.\n\t\t$all_the_cool_cats = get_categories(\n\t\t\tarray(\n\t\t\t\t'fields' => 'ids',\n\t\t\t\t'hide_empty' => 1,\n\t\t\t\t// We only need to know if there is more than one category.\n\t\t\t\t'number' => 2,\n\t\t\t)\n\t\t);\n\n\t\t// Count the number of categories that are attached to the posts.\n\t\t$all_the_cool_cats = count( $all_the_cool_cats );\n\n\t\tset_transient( 'pixelgrade_categories', $all_the_cool_cats );\n\t}\n\n\t$is_categorized = false;\n\n\tif ( $all_the_cool_cats > 1 ) {\n\t\t// This blog has more than 1 category so we should return true.\n\t\t$is_categorized = true;\n\t}\n\n\treturn apply_filters( 'pixelgrade_categorized_blog', $is_categorized );\n}", "public function hasCategory(): bool;", "public function blog_category_count()\r\n\t{\r\n\t$result=$this->db->query(\"select * from \".$this->prefix.\"blog_category\");\r\n\treturn count($result);\r\n\t}", "public function hasChildren()\n {\n $query = 'SELECT category_id FROM '. \\rex::getTablePrefix() .'d2u_machinery_categories '\n .'WHERE parent_category_id = '. $this->category_id;\n $result = \\rex_sql::factory();\n $result->setQuery($query);\n\n if ($result->getRows() > 0) {\n return true;\n }\n\n return false;\n\n }", "function twe_news_has_category_subcategories($category_id) {\n global $db;\n $child_category_query = \"select count(*) as count from \" . TABLE_NEWS_CATEGORIES . \" where parent_id = '\" . $category_id . \"'\";\n $child_category = $db->Execute($child_category_query);\n\n if ($child_category->fields['count'] > 0) {\n return true;\n } else {\n return false;\n }\n }", "function has_categorys()\n\t{\n\t\t\t$categorias = $this->combofiller->categorias();\t\t\t\n\t\t\tforeach($categorias as $key => $value)\n\t\t\t{\n\t\t\t\tif ($this->input->post('' . $key . ''))\n\t\t\t\t{\n\t\t\t\t\treturn TRUE;\t\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn FALSE;\t\n\t}", "public function isNewCategory(): bool {\n return !$this->category->exists;\n }", "private function hasCategoryLinks() {\n\t\tif ( !$this->getSkinOption( self::OPTION_CATEGORIES ) ) {\n\t\t\treturn false;\n\t\t}\n\t\t$categoryLinks = $this->getOutput()->getCategoryLinks();\n\n\t\tif ( !count( $categoryLinks ) ) {\n\t\t\treturn false;\n\t\t}\n\t\treturn !empty( $categoryLinks['normal'] ) || !empty( $categoryLinks['hidden'] );\n\t}", "function categoryAssociationExists($monographId, $categoryId) {\n\t\t$result = $this->retrieve(\n\t\t\t'SELECT COUNT(*) FROM submission_categories WHERE submission_id = ? AND category_id = ?',\n\t\t\tarray((int) $monographId, (int) $categoryId)\n\t\t);\n\t\t$returner = isset($result->fields[0]) && $result->fields[0] == 1 ? true : false;\n\n\t\t$result->Close();\n\t\treturn $returner;\n\t}", "private function categories()\n\t{\n\t\t$categories = ORM::factory('forum_cat')->find_all();\n\t\tif(0 == $categories->count())\n\t\t\treturn FALSE;\n\t\t\t\n\t\treturn $categories;\n\t}", "function tep_has_category_subcategories($category_id) {\n $child_category_query = tep_db_query(\"select count(*) as count from \" . TABLE_CATEGORIES . \" where parent_id = '\" . (int)$category_id . \"'\");\n $child_category = tep_db_fetch_array($child_category_query);\n\n if ($child_category['count'] > 0) {\n return true;\n } else {\n return false;\n }\n }", "private function recipeHasCategory($recipe) {\n // Meanwhile, we assume any recipe has any category.\n return true;\n }", "function has_category($category = '', $post = \\null)\n {\n }", "private function checkProductCategories()\n {\n $products = Product::with('categories')->get();\n $errors = [];\n foreach ($products as $product) {\n if ($product->categories->count() < 1) {\n $errors[] = sprintf(\n 'The product \"%s (%s)\" has no category set.',\n $product->name,\n $product->id\n );\n }\n }\n\n return count($errors) > 0 ? implode(\"\\n\", $errors) : true;\n }", "public function hasPosts()\n\t{\n\t\tif ($this->hasData('post_count')) {\n\t\t\treturn $this->getPostCount() > 0;\n\t\t}\n\n\t\treturn $this->getPostCollection()->count() > 0;\n\t}", "function in_comic_category() {\n\tglobal $post, $category_tree;\n\t\n\t$comic_categories = array();\n\tforeach ($category_tree as $node) {\n\t\t$comic_categories[] = end(explode(\"/\", $node));\n\t}\n\treturn (count(array_intersect($comic_categories, wp_get_post_categories($post->ID))) > 0);\n}", "public function count_cat_post($cat_id) {\n $sql = 'SELECT COUNT(*) AS cat_posts FROM ' . PREFIX . 'posts WHERE post_parent= ? AND post_status= ? AND post_type= ?';\n $res = $this->shareCon()->get_single_result($sql, array($cat_id, 'publish', 'post'));\n if($res != null)\n return $res['cat_posts'];\n\n return false;\n }", "function has_posts() {\n\tif(($posts = IoC::resolve('posts')) === false) {\n\t\t$params['sortby'] = 'id';\n\t\t$params['sortmode'] = 'desc';\n\t\t\n\t\t$posts = Posts::list_all($params);\n\t\tIoC::instance('posts', $posts, true);\n\t}\n\t\n\treturn $posts->length() > 0;\n}", "public function isCategory($category): bool;", "public static function hasPosts($postType, $categoriesID)\n {\n if(DB::table(categoriesRelationTable($postType))->where('categoryID', $categoriesID)->count()\n ) {\n return true;\n }else{\n return false;\n }\n }", "function countCategories(){\n return $this->db->count_all('post_category');\n \t\t }", "public function isValidCat($cat){\r\n \treturn isset($this->categories[$cat]); \r\n\t}", "public function isReadyForPurge()\n\t{\n\t\tif($this->getStatus() != CategoryStatus::DELETED)\n\t\t\treturn false;\n\t\t\t\n\t\tif($this->getMembersCount())\n\t\t{\n\t\t\tKalturaLog::debug(\"Category still associated with [\" . $this->getMembersCount() . \"] users\");\n\t\t\treturn false;\n\t\t}\n\t\t\t\n\t\tif($this->getEntriesCount() > 0)\n\t\t{\n\t\t\tKalturaLog::debug(\"Category still associated with [\" . $this->getEntriesCount() . \"] entries\");\n\t\t\treturn false;\n\t\t}\n\t\t\t\n\t\tif($this->getDirectSubCategoriesCount() > 0)\n\t\t{\n\t\t\tKalturaLog::debug(\"Category still associated with [\" . $this->getDirectSubCategoriesCount() . \"] sub categories\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "private function _hasSubCategories($category){\n $cat = Mage::getModel('catalog/category')->load($category->getId());\n $subcats = $cat->getChildren();\n if (empty($subcats)){\n return false;\n } else {\n return true;\n }\n }", "public function is_category($category = '')\n {\n }", "function empty_category($a) {\n\t\treturn !empty($a['CategoriesProduct']);\n\t}", "public function isCategoryPage();", "private function check_category_taxonomy($category_name){\n\t\t$query = $this->db->prepare(\"SELECT count(`taxonomy_id`) FROM `nw_taxonomy` WHERE `taxonomy_value` = ?\");\n\t\t$query->bindValue(1, $category_name);\n\n\t\ttry{\n\t\t\t$query->execute();\n\t\t\t$rows = $query->fetchColumn();\n\n\t\t\tif($rows == 0){\n\t\t\t\treturn true;\n\t\t\t}else if($rows >= 1){\n\t\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t}catch(PDOException $e){\n\t\t\tdie($e ->getMessage());\n\t\t}\n\t}", "protected function isCategory()\n {\n return is_null($this->request->task);\n }", "public function existCategorie($categories){\n\t\t\n\t\tglobal $wpdb;\n\n\t\t$ok = 0;\n\t\t\n\t\tif(!empty($categories))\n\t\t{\n\t\t\tforeach($categories as $cat)\n\t\t\t{ \n\t\t\t\t$category = $this->utils->cleanString($cat);\n\t\t\t\t\n\t\t\t\t$result = $this->findCategory($category);\n\t\t\t\t\n\t\t\t\tif( !$result )\n\t\t\t\t{\n\t\t\t\t\t$this->insertCategory($category);\n\t\t\t\t}\t\t\n\t\t\t}\t\t\t\n\t\t}\n\t\t \n\t\treturn true;\n\t}", "function medigroup_mikado_has_blog_widget() {\n $widgets_array = array(\n 'mkd_latest_posts_widget'\n );\n\n foreach($widgets_array as $widget) {\n $active_widget = is_active_widget(false, false, $widget);\n\n if($active_widget) {\n return true;\n }\n }\n\n return false;\n }", "public function has_children()\n {\n return ($this->size > 2);\n }", "private function category() {\n if ($this->is_logged_in()){\n return true; //check if user had been logged in!!!\n }else{\n exit;\n }\n }", "public static function hasChildren($category_id)\n\t{\n\t\t//TODO: cache stuff if possible\n\t\t//check input\n\t\t$category_id = intval($category_id);\n\t\tif ($category_id==0){\n\t\t\treturn false;\n\t\t}\n\t\t$db = DataAccess::getInstance();\n\t\t$sql = \"SELECT COUNT(*) FROM \".geoTables::categories_table.\" WHERE `parent_id` = ?\";\n\t\t$count = (int)$db->GetOne($sql, array($category_id));\n\t\treturn ($count > 0);\n\t}", "function categoryExists($cat) { // Return true if the given category exists\n\t$cat = dbEscape($cat);\n\treturn(dbResultExists(\"SELECT * FROM categories WHERE name='$cat'\"));\n}", "function is_blog () {\n return ( is_archive() || is_author() || is_category() || is_home() || is_single() || is_tag()) && 'post' == get_post_type();\n}", "public function hasPriceCategory()\n {\n return $this->price_category !== null;\n }", "private function hasMoreThanOneWebspace(): bool\n {\n return \\count($this->webspaceManager->getWebspaceCollection()->getWebspaces()) > 1;\n }", "public function categoriesSetup()\n {\n \treturn (bool) $this->categoryDao->countAll();\n }", "public function count_by_categories()\n\t{\n\t\t$prefix = $this->db->dbprefix;\n\n\t\t$sql = \"SELECT category, COUNT(1) as count FROM {$prefix}news_articles, {$prefix}news_categories\n\t\t\t\t\t\tWHERE {$prefix}news_articles.category_id = {$prefix}news_categories.id GROUP BY {$prefix}news_articles.category_id\";\n\n\t\t$query = $this->db->query($sql);\n\n\t\tif ($query->num_rows())\n\t\t{\n\t\t\treturn $query->result();\n\t\t}\n\n\t\treturn false;\n\t}", "public function thisTopicWasAlreadyExisted():bool\n {\n \t$column = $this->topic->getColumn();\n\t\t$tableName = $this->topic->getTableName();\n\t\t$columIdSubCat = 'id_sub_category';\n\n\t\t$is_exist = (int)(new Requestor())->getContentWith2Where('id', 'f_topics', 'content', $this->topic->getContent(), 'id_sub_category', $this->topic->getIdSubCategory());\n\n\t\tif ($is_exist > 0) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\n }", "function voyage_mikado_has_blog_widget() {\n $widgets_array = array(\n 'mkd_latest_posts_widget'\n );\n\n foreach($widgets_array as $widget) {\n $active_widget = is_active_widget(false, false, $widget);\n\n if($active_widget) {\n return true;\n }\n }\n\n return false;\n }", "public function canCreate($member = null) {\n\t\treturn DataList::create(\"DOArticlesCategoryHolderPage\")->count() < 1;\n\t}", "private function categoryHasLessThanFiveQuestions($category): bool {\n\t\treturn !$category || ($category && $category->questions->count() < 5);\n\t}", "public function verifCategoriaId($id){\n\t\t\t$data = $this->model->verificarId($id);\n\t\t\treturn (isset($data[0]['count']) && $data[0]['count'] > 0);\n\t\t}", "function hasChildren( &$childrenCount, $id = \"this\" )\r\n {\r\n $ret = false;\r\n\r\n if ( $id == \"this\" )\r\n {\r\n $id = $this->ID;\r\n }\r\n\r\n if ( is_numeric( $id ) )\r\n {\r\n $db =& eZDB::globalDatabase();\r\n\r\n $company_type_array = array();\r\n $db->array_query( $company_type_array, \"SELECT ParentID FROM eZContact_CompanyType WHERE ParentID='$id'\" );\r\n $childrenCount = count( $company_type_array );\r\n\r\n if ( $childrenCount != 0 )\r\n {\r\n $ret = true;\r\n }\r\n }\r\n\r\n return $ret;\r\n }", "public function validCategory($data) {\n $categories = $this->categories();\n return array_key_exists(current($data), $categories);\n }", "public static function existsCategory($category) {\n $n = self::where('name', '=', $category)->where('parent_category_id', '=', 17)->count();\n return $n>0;\n }", "private function checkMotelCategory($ids){\n foreach ($ids as $id){\n $motelCategory = $this->motelCategoryRepository->findWithoutFail($id);\n if (empty($motelCategory)) {\n return false;\n }\n else{\n if(count($motelCategory->children())>0){\n return false;\n }\n }\n }\n return true;\n }", "public static function existsCategory($id)\n {\n return (bool) BackendModel::getContainer()->get('database')->getVar(\n 'SELECT COUNT(i.id)\n FROM slideshow_categories AS i\n WHERE i.id = ? AND i.language = ?',\n array((int) $id, BL::getWorkingLanguage())\n );\n }", "public static function is_blog() {\n\t\treturn is_home() && 'post' === get_post_type();\n\t}", "function is_blog() {\n\tif (is_home() || is_singular('post') || is_post_type_archive('post') || is_archive())\n\t\treturn true;\n\telse return false;\n}", "static function cws_has_children() {\n\t\tglobal $post;\n\n\t\t$children = get_pages( array( 'child_of' => $post->ID ) );\n\n\t\tif ( count( $children ) == 0 ) {\n\n\t\t\treturn false;\n\n\t\t} else {\n\n\t\t\treturn true;\n\n\t\t}\n\n\t}", "function category_has_children() {\n global $wpdb;\n $term = get_queried_object();\n $category_children_check = $wpdb->get_results(\" SELECT * FROM wp_term_taxonomy WHERE parent = '$term->term_id' \");\n if ($category_children_check) {\n return true;\n } else {\n return false;\n }\n}", "function _validCategory($check)\n\t\t{\n\t\t\t// check legacy too in case we're adding a legacy workshop\n\t\t\t$this->Category->useLegacy(true);\n\t\t\t\n\t\t\t$result = $this->Category->find('count', \n\t\t\t\tarray('recursive' => -1, 'conditions' => array('Category.id' => $check['category_id'])));\n\t\t\t\n\t\t\tif ($result)\n\t\t\t\treturn true;\n\t\t\treturn false;\n\t\t}", "function isCategoryExist($categoryName)\n {\n $allCategories = $this->data->getAllCategories();\n while ($category = $allCategories->fetch_assoc())\n {\n if ($category['CategoryName'] == $categoryName)\n {\n return true;\n }\n }\n return false;\n }", "public function hasNewPosts()\n {\n if ($this->last_post == null) return false;\n\n $last_access = session('last_access_time');\n if (!$last_access || !($last_access instanceof Carbon)) $last_access = Carbon::now()->addDays(1);\n\n $thread_read = session('thread_persistance_data');\n if ($thread_read && is_array($thread_read) && array_key_exists($this->id, $thread_read)) {\n $read = $thread_read[$this->id];\n if ($read instanceof Carbon && $read > $last_access) $last_access = $read;\n }\n\n return $this->last_post->updated_at > $last_access;\n }", "public function hasTopics() {\n\t\treturn $this->topics()->count() > 0;\n\t}", "public function cat_match($category){\n\n\t\t\t$sql = mysql_query(\"SELECT * FROM `categories` WHERE `cat` = '$category'\");\n\n\t\t\t$count_query = mysql_num_rows($sql);\n\n\t\t\t\tif ($count_query == 0) {\n\t\t\t\t\t# code...\n\t\t\t\t\treturn false;\n\t\t\t\t\n\t\t\t\t} else {\n\n\t\t\t\t\treturn true;\n\n\t\t\t\t}\n\t}", "function have_discussion() {\n\tglobal $discussions_index, $discussion, $discussions, $discussions_count, $discussion_title;\n\n\t// check if single discussion page\n\tif (!$discussion_title) {\n\t\t$discussions_count = count(discussion::get_discussions());\n\t\t$discussions = discussion::get_discussions();\n\t} else {\n\t\t$discussions_count = 1;\n\t\t$discussions = discussion::get_discussion($discussion_title);\n\t}\n\n\tif ($discussions && $discussions_index + 1 <= $discussions_count) {\n\t\t$discussions_index++;\n\t\treturn true;\n\t} else {\n\t\t$discussions_count = 0;\n\t\treturn false;\n\t}\n}", "public function exist_blogtitle($blogtitle)\n\t{\n\t\t$result = $this->db->count_records('blog', array('blog_title' => $blogtitle));\n\t\treturn (bool) $result; \n\t}", "public function createCategories()\n {\n $value = $this->_config->get('category_settings/create_categories');\n\n if ($value === null) {\n $value = true;\n }\n\n return (bool)$value;\n }", "function getCategoryCount() {\n\t\treturn count($this->domit_rss_categories);\n\t}", "function getCategoryCount() {\n\t\treturn count($this->domit_rss_categories);\n\t}", "public function hasPosts() {\n\t\t$sql = \"SELECT \tCOUNT(*) AS count\n\t\t\tFROM \twbb\".WBB_N.\"_post\n\t\t\tWHERE \tthreadID = \".$this->threadID;\n\t\t$result = WCF::getDB()->getFirstRow($sql);\n\t\treturn $result['count'];\n\t}", "public function canAddMorePictures()\n {\n $query = $this->pictures()->get();\n if ($query->count() && ($query->count() >= $this->maxPictures)) {\n //we can't add more pictures\n return false;\n }\n return true;\n }", "public function hasCount() {\n return $this->_has(1);\n }", "function validsubcat($subcatid, $cats)\n{\n $i = 0;\n if ((is_countable($cats) ? count($cats) : 0) > 0) {\n }\n foreach ($cats as $cat) {\n $subcats = $cat['subcategory'];\n if ((is_countable($subcats) ? count($subcats) : 0) > 0) {\n foreach ($subcats as $subcat) {\n if ($subcat['id'] == $subcatid) {\n return true;\n }\n }\n }\n }\n return false;\n}", "function is_child_category($thecategory ){\n\t$params = array('type' => 'post',\n 'child_of' => $thecategory,\n 'hierarchical' => 0, );\n\t$cats = get_categories($params);\n\n\tforeach ($cats as $cat) {\n\t\tif ( is_category($cat->cat_ID) ){\n\t\t\treturn true;\n\t\t}\n \t} // end for children\n\treturn false;\n}", "public function HasChild()\n\t{\n\t\treturn ($this->Child()->count()) ? true : false;\n\t}", "public static function existsCategory($id)\n\t{\n\t\treturn (bool) BackendModel::getDB()->getVar(\n\t\t\t'SELECT COUNT(i.id)\n\t\t\t FROM faq_categories AS i\n\t\t\t WHERE i.id = ? AND i.language = ?',\n\t\t\tarray((int) $id, BL::getWorkingLanguage())\n\t\t);\n\t}", "public function isHasMore();", "public function hasChildren() \n {\n return count($this->children) > 0;\n }", "public function hasCount() {\n return $this->_has(3);\n }", "function validate_group_category($array = NULL) {\n if ($array == NULL)\n $array = $_POST['category'];\n if (count($array) == 0)\n return false;\n else {\n\n foreach ($array as $arr) {\n if ($this->category_exists($arr))\n $new_array[] = $arr;\n }\n }\n if (count($new_array) == 0) {\n e(lang('vdo_cat_err3'));\n return false;\n } elseif (count($new_array) > ALLOWED_GROUP_CATEGORIES) {\n e(sprintf(lang('vdo_cat_err2'), ALLOWED_GROUP_CATEGORIES));\n return false;\n }\n\n return true;\n }", "public function hasChildren() {\n\t\treturn $this->children()->count() > 0;\n\t}", "function more_posts() {\n global $wp_query; // following the current one\n return $wp_query->current_post + 1 < $wp_query->post_count;\n}", "public static function checkCategory($aCont) {\n if(strpos($aCont['layout'], 'nutri') > -1) return TRUE;\n \n $lSql = 'SELECT c.`content_id` FROM `al_cms_ref_category` rc INNER JOIN `al_cms_content` c ON c.content_id=rc.content_id ';\n $lSql.= 'WHERE c.`content`='.esc($aCont['content']).' AND rc.`category`='.esc($aCont['category']).' AND `mand`='.intval(MID);\n $lRes = CCor_Qry::getInt($lSql);\n \n return ($lRes > 0) ? TRUE : FALSE;\n }", "static function canMatch($cat)\n {\n \tif(User::getCategoryCount($cat) > 9)\n \t\tif(!self::isWeekend(time()))\n \t\t\treturn true;\n \t\telse\n \t\t\treturn false;\n \telse\n \t\treturn false;\n \n }", "function is_linked_category($category) {\r\n switch($category) {\r\n case 99999:\r\n case 99998:\r\n return true;\r\n }\r\n return false;\r\n }", "function is_movie_category( $term = '' ) {\n return is_tax( 'movie_cat', $term );\n }", "public function multiple(): bool\n {\n return count($this->queries) > 1;\n }", "public function isCategory( $name ) {\n $query = $this->db->query( \"SELECT DISTINCT category_id FROM \" . DB_PREFIX . \"category_description WHERE name = '\" . $name . \"'\" );\n\n return $query->row;\n }", "public function hasCategory($catId)\n {\n if(empty($catId)) throw new \\Exception('Invalid category id');\n if(empty($this->id)) return false;\n\n $cmd = self::getDb()->createCommand(\"SELECT 1 FROM tbl_cms_post_category WHERE post_id = :pid AND category_id = :cid\");\n $cmd->bindParam(\":pid\", $this->id, \\PDO::PARAM_INT);\n $cmd->bindParam(\":cid\", $catId, \\PDO::PARAM_INT);\n return (bool) $cmd->queryScalar();\n }", "function postExists($id){\n return (getSingleValue(\"SELECT COUNT(`id`) FROM `public_forums_posts` WHERE `deleted` = '0' AND `id` = '\" . escape(intval($id)) . \"'\") >= 1);\n }", "public function isMulti()\n {\n return $this->filter('is_scalar')->length !== $this->length;\n }", "function more_posts() \n{\n global $wp_query;\n return $wp_query->current_post + 1 < $wp_query->post_count;\n}" ]
[ "0.786911", "0.74748784", "0.73556286", "0.7344017", "0.7312159", "0.7286576", "0.7271602", "0.72092724", "0.7165386", "0.70786273", "0.6969139", "0.6957682", "0.68274665", "0.6659142", "0.6622072", "0.6614695", "0.6464761", "0.6395385", "0.6367885", "0.63525933", "0.6327804", "0.63058865", "0.630085", "0.62491435", "0.6152101", "0.6105646", "0.6083872", "0.6058188", "0.60475767", "0.5991231", "0.5981098", "0.59188044", "0.5907484", "0.58698606", "0.5861664", "0.58580583", "0.5855913", "0.5842594", "0.5832558", "0.58183503", "0.58044404", "0.577746", "0.5773102", "0.57681715", "0.5763865", "0.5730077", "0.5723176", "0.572225", "0.57201254", "0.5712668", "0.5711812", "0.569788", "0.5686737", "0.5681059", "0.5680448", "0.5668134", "0.565362", "0.56520575", "0.5645497", "0.56358033", "0.56278104", "0.56066495", "0.55938405", "0.55873513", "0.5586726", "0.5574772", "0.5563312", "0.5558939", "0.55557984", "0.55438644", "0.5533253", "0.5531753", "0.5523274", "0.5518745", "0.5516514", "0.5516414", "0.5516414", "0.5506795", "0.54920644", "0.54878026", "0.5480377", "0.54712754", "0.5470395", "0.5466118", "0.54608876", "0.54579145", "0.5451384", "0.54481214", "0.54399437", "0.5437146", "0.5431753", "0.54278225", "0.5424341", "0.5423172", "0.54205436", "0.541038", "0.54088366", "0.5402086", "0.53930205", "0.53812695" ]
0.711766
9
Flush out the transients used in circle_categorized_blog.
function circle_category_transient_flusher() { if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { return; } // Like, beat it. Dig? delete_transient( 'circle_categories' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function gravit_category_transient_flusher() {\r\r\n\t// Like, beat it. Dig?\r\r\n\tdelete_transient( 'all_the_cool_cats' );\r\r\n}", "function smart_foundation_category_transient_flusher() {\n\t// Like, beat it. Dig?\n\tdelete_transient( 'smart_foundation_categories' );\n}", "function emc_category_transient_flusher() {\r\n\t// Like, beat it. Dig?\r\n\tdelete_transient( 'all_the_cool_cats' );\r\n}", "function ppo_category_transient_flusher() {\n\t// Like, beat it. Dig?\n\tdelete_transient( 'ppo_category_count' );\n}", "function root_category_transient_flusher() {\n\tif ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {\n\t\treturn;\n\t}\n\t// Like, beat it. Dig?\n\tdelete_transient( 'root_categories' );\n}", "function delivery_category_transient_flusher() {\n\t// Like, beat it. Dig?\n\tdelete_transient( 'delivery_categories' );\n}", "function atarr_category_transient_flusher() {\n\tif ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {\n\t\treturn false;\n\t}\n\t// Like, beat it. Dig?\n\tdelete_transient( 'atarr_categories' );\n}", "public function flush_transients()\n {\n delete_transient('sm::is_connected_to_gs');\n }", "private function flush_transients() {\n\n $wpp_transients = get_option( 'wpp_transients' );\n\n if ( $wpp_transients && is_array( $wpp_transients ) && !empty( $wpp_transients ) ) {\n\n for ( $t=0; $t < count( $wpp_transients ); $t++ )\n delete_transient( $wpp_transients[$t] );\n\n update_option( 'wpp_transients', array() );\n\n }\n\n }", "function pixelgrade_category_transient_flusher() {\n\tif ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {\n\t\treturn;\n\t}\n\t// Like, beat it. Dig?\n\tdelete_transient( 'pixelgrade_categories' );\n}", "function delivery_featured_content_transient_flusher() {\n\tdelete_transient( 'delivery_featured_posts' );\n}", "private function delete_all_transients() {\n\t\t$this->transients->delete( 'googlesitekit_verification_meta_tags' );\n\t}", "public function delete_transients() {\n delete_transient( CL_Common::get_transient_key( 'style' ) );\n delete_transient( CL_Common::get_transient_key( 'script' ) );\n }", "public function reset_transient() {\n\t\t$transient_type = $this->_get_all_cached_attachment_transient_ids();\n\n\t\tif ( isset( $transient_type ) and gettype( $transient_type ) ) {\n\t\t\tforeach ( $transient_type as $title ) {\n\t\t\t\tdelete_transient( $title );\n\t\t\t} // foreach()\n\t\t} // if()\n\n\t\t$this->posts = $this->get_posts();\n\t}", "static public function flush_cache( ) {\n\n foreach( array( 'wpp_categorical', 'wpp_location') as $taxonomy ) {\n wp_cache_delete( 'all_ids', $taxonomy );\n wp_cache_delete( 'get', $taxonomy );\n delete_option( \"{$taxonomy}_children\" );\n _get_term_hierarchy( $taxonomy );\n }\n\n }", "public function flush(): void\n {\n container()->get('dbal')->prepare('UPDATE `torrents` SET `category` = :new WHERE `category` = :old ')->bindParams([\n 'new' => $this->getInput('move_to'), 'old' => $this->getInput('id')\n ])->execute();\n\n // Delete it~\n container()->get('dbal')->prepare('DELETE FROM `categories` WHERE id = :id')->bindParams([\n 'id' => $this->getInput('id')\n ])->execute();\n\n // TODO flush Redis cache\n container()->get('redis')->del('site:enabled_torrent_category');\n }", "public function cleanup() {\n\t\t//TODO\n\t}", "public function __destruct() {\n if($this->categoryXmlReader)\n $this->categoryXmlReader->closeReading(true);\n }", "function cleanup()\n {\n if (is_object( $this->roottag )) {\n $this->roottag->clear_subtags();\n }\n }", "public function postFlush()\n {\n $fileSystem = new Filesystem();\n $fileSystem->remove($this->filesScheduledForDeletion);\n }", "public function flush(): void\n {\n $this->logger = null;\n\n $this->connections = [];\n\n $this->dispatcher->forgetAll();\n }", "public function cleanup() {\n foreach ($this->_cookies as $cookiefile) {\n unlink($cookiefile);\n }\n }", "public function flushCache() {\n\t\t// is deleted. If it cleared our static cache variables\n\t\t// here, they would in effect be useless.\n\t}", "public function cleanup()\n {\n }", "public function cleanup()\n\t{\n\t\t$this->getObject()->cleanup();\n\t}", "public function postFlush(): void\n {\n try {\n foreach ($this->createdObjects as $object) {\n $this->publishUpdate($object, $this->createdObjects[$object], 'create');\n }\n\n foreach ($this->updatedObjects as $object) {\n $this->publishUpdate($object, $this->updatedObjects[$object], 'update');\n }\n\n foreach ($this->deletedObjects as $object) {\n $this->publishUpdate($object, $this->deletedObjects[$object], 'delete');\n }\n } finally {\n $this->reset();\n }\n }", "public function flushAll() {\n\t\t$this->removeKeys();\n\t}", "protected function cleanup() {\n $this->clearLocalSessionValues();\n }", "public function cleanup()\n {\n if ($this->catalogRule != '-') {\n $this->deleteAllCatalogRule->run();\n }\n }", "function quadro_delete_portf_transients() {\n\n\tglobal $post;\n\n\t// Make sure the post obj is present and complete. If not, return.\n\tif ( !is_object($post) || !isset($post->post_type) ) {\n\t\treturn;\n\t}\n\n\t// Make sure post type is our portfolio item.\n\tif ( $post->post_type != 'quadro_portfolio') {\n\t\treturn;\n\t}\n\n\t// And, delete its transients\n\tdelete_transient( 'qi_portf_item_content_' . $post->ID );\n\tdelete_transient( 'qi_portf_item_media_' . $post->ID );\n\n}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function cleanUp() {}", "public function finished() {\n\t\t// Reset the CSS.\n\t\tupdate_option( 'fusion_dynamic_css_posts', [] );\n\t}", "public function __destruct()\n\t{\n\t\t$this->db = null;\n\t\t$this->cat_data = false;\n\t\t$this->settings = null;\n\t}", "public function clearMetas(): void\n {\n $this->metas()->delete();\n }", "public function __destruct()\n {\n $this->flush();\n }", "public function flushlogs()\n\t{\n\t\t$this->deleteAll(array('1 = 1'));\n\t}", "public function clearCategories() {\n\t\t$this->quizCategoriesTable->deleteWhere('quizId', $this->id);\n\t}", "public function delete_transient_hooks() {\n\n\t\t// @codingStandardsIgnoreStart\n\t\t$checksums = function () { Transient::delete( '/checksums' ); };\n\t\t$plugins = function () { Transient::delete( '/plugins' ); };\n\t\t$themes = function () { Transient::delete( '/themes' ); };\n\t\t$theme = function () { Transient::delete( '/themes/current' ); };\n\t\t// @codingStandardsIgnoreEnd\n\n\t\tadd_action( 'add_attachment', $checksums );\n\t\tadd_action( 'edit_attachment', $checksums );\n\t\tadd_action( 'delete_attachment', $checksums );\n\n\t\tadd_action( 'set_site_transient_update_plugins', $plugins );\n\n\t\tadd_action( 'set_site_transient_update_themes', $themes );\n\t\tadd_action( 'set_site_transient_update_themes', $theme );\n\n\t}", "function import_end() {\n\t\t//wp_import_cleanup( $this->id );\n\n\t\twp_cache_flush();\n\t\tforeach ( get_taxonomies() as $tax ) {\n\t\t\tdelete_option( \"{$tax}_children\" );\n\t\t\t_get_term_hierarchy( $tax );\n\t\t}\n\n\t\twp_defer_term_counting( false );\n\t\twp_defer_comment_counting( false );\n\n\t\techo '<p>导入成功.' . ' <a href=\"' . admin_url() . '\">Have fun!</a>' . '</p>';\n\n\t\tdo_action( 'import_end' );\n\t}", "private function clearCategories() {\n $sql = \"DELETE FROM project_category WHERE project_id = %d\";\n $sql = sprintf($sql, $this->id);\n self::$connection->execute($sql);\n }", "public function flush()\n {\n $this->arrSettings = null;\n $this->section = null;\n $this->group = null;\n $this->changed = null;\n }", "public static function flush(){\n \\Illuminate\\Foundation\\Application::flush();\n }", "public function cleanContrexxCaching()\n {\n $this->_deleteAllFiles();\n }", "public static function delete_themes_transient() {\n\t\tdelete_transient( self::THEMES_TRANSIENT );\n\t}", "public function cleanup()\n\t{\n\t\t\n\t}", "protected static function _cleanUp(): void {\n\t\tCoreLog::drop('custom');\n\n\t\tCoreLog::setConfig('debug', static::$_debugConfig);\n\t}", "public function clearCategories()\n {\n $scenario = Scenarios::getOrCreateUserScenario();\n $scenario->categories()->detach();\n }", "public function clearExpertCategorys()\n\t{\n\t\t$this->collExpertCategorys = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clean()\n\t{\n\t\t$this->deleteFromContainer($this->binary);\n\t}", "public function __destruct() {\n\t\t\tparent::__destruct();\n\t\t\tunset($this->metadata);\n\t\t\tunset($this->models);\n\t\t\tunset($this->translators);\n\t\t}", "public function cleanup()\n\t{\n\t}", "public function __destruct()\n {\n Bigace_Hooks::remove_filter('admin_menu', array($this, 'getAdminMenu'), 10, 2);\n Bigace_Hooks::remove_filter('credits', array($this, 'getAdminCredits'));\n\n Bigace_Hooks::remove_action('flush_cache', array($this, 'flushAll'));\n Bigace_Hooks::remove_action('expire_page_cache', array($this, 'flushAll'));\n }", "public function cleanUp();", "public function cleanUp();", "public function cleanUp();" ]
[ "0.7849582", "0.7786899", "0.77680886", "0.7356011", "0.7294694", "0.717193", "0.7016727", "0.688904", "0.6869842", "0.68479824", "0.6501551", "0.63813174", "0.631278", "0.6239524", "0.6154621", "0.5745958", "0.5698941", "0.56780726", "0.56721175", "0.5661572", "0.5632359", "0.5601943", "0.56009996", "0.55731136", "0.5559101", "0.5539383", "0.5509207", "0.55061764", "0.5455294", "0.54533374", "0.5443247", "0.5443247", "0.5443247", "0.5443247", "0.5443247", "0.5443247", "0.5443247", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.54408306", "0.5439999", "0.5439999", "0.5439999", "0.5439999", "0.5439999", "0.5439999", "0.54356176", "0.54317266", "0.5428793", "0.54241055", "0.54190487", "0.5412913", "0.5412674", "0.54117006", "0.5408687", "0.5407627", "0.5402523", "0.5395309", "0.53912556", "0.5390438", "0.53901803", "0.5383379", "0.5380758", "0.5380601", "0.5379519", "0.53624016", "0.5360557", "0.53527474", "0.53527474", "0.53527474" ]
0.7572724
3
Display breadcrumb by breadcrumb_trail.
function circle_breadcrumb() { if ( ! class_exists( 'Breadcrumb_Trail' ) ) { return; } return breadcrumb_trail( array( 'before' => '', 'after' => '', 'container' => 'div', 'show_title' => true, 'show_on_front' => false, 'show_browse' => false, 'echo' => true, ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function trail() {\n\n\t\t$breadcrumb = '';\n\t\t$item_count = count( $this->items );\n\t\t$item_position = 0;\n\n\t\tif ( 0 < $item_count ) {\n\n\t\t\tif ( true === $this->args['show_browse'] )\n\t\t\t\t$breadcrumb .= sprintf( '<h2 class=\"trail-browse\">%s</h2>', $this->labels['browse'] );\n\n\t\t\t$breadcrumb .= '<ol class=\"breadcrumb '.$this->args['classes'].'\" itemscope itemtype=\"http://schema.org/BreadcrumbList\">';\n\n\t\t\t$breadcrumb .= sprintf( '<meta name=\"numberOfItems\" content=\"%d\" />', absint( $item_count ) );\n\t\t\t$breadcrumb .= '<meta name=\"itemListOrder\" content=\"Ascending\" />';\n\n\t\t\tforeach ( $this->items as $item ) {\n\n\t\t\t\t++$item_position;\n\n\t\t\t\tpreg_match( '/(<a.*?>)(.*?)(<\\/a>)/i', $item, $matches );\n\n\t\t\t\t$item = !empty( $matches ) ? sprintf( '%s<span itemprop=\"name\">%s</span>%s', $matches[1], $matches[2], $matches[3] ) : sprintf( '<span itemprop=\"name\">%s</span>', $item );\n\n\t\t\t\t$item_class = 'breadcrumb-item';\n\n\t\t\t\tif ( $item_count === $item_position )\n\t\t\t\t\t$item_class .= ' active';\n\n\t\t\t\t$attributes = 'itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\" class=\"' . $item_class . '\"';\n\n\t\t\t\t$meta = sprintf( '<meta itemprop=\"position\" content=\"%s\" />', absint( $item_position ) );\n\n\t\t\t\t$breadcrumb .= sprintf( '<li %s>%s%s</li>', $attributes, $item, $meta );\n\t\t\t}\n\n\t\t\t$breadcrumb .= '</ol>';\n\n\t\t\t$breadcrumb = sprintf(\n\t\t\t\t'<%1$s role=\"navigation\" aria-label=\"%2$s\" class=\"breadcrumbs\" itemprop=\"breadcrumb\">%3$s%4$s%5$s</%1$s>',\n\t\t\t\ttag_escape( $this->args['container'] ),\n\t\t\t\tesc_attr( $this->labels['aria_label'] ),\n\t\t\t\t$this->args['before'],\n\t\t\t\t$breadcrumb,\n\t\t\t\t$this->args['after']\n\t\t\t);\n\t\t}\n\n\t\tif ( false === $this->args['echo'] )\n\t\t\treturn $breadcrumb;\n\n\t\techo $breadcrumb;\n\t}", "function rella_breadcrumb( $args = array() ) {\n\n\t$breadcrumb = new Rella_Breadcrumb( $args );\n\n\treturn $breadcrumb->trail();\n}", "function print_breadcrumb()\n{\n $breadcrumbs = get_breadcrumb();\n for ($i = 0; $i < sizeof($breadcrumbs); $i++) {\n echo '<li class=\"breadcrumb-path breadcrumb-level-' . $i . '\">';\n echo '<a href=\"' . $breadcrumbs[$i]['url'] . '\">' . $breadcrumbs[$i]['title'] . '</a>';\n echo '</li>';\n }\n}", "protected function breadcrumbForIndex()\n {\n $breadcrumbTree = new ullPhoneBreadcrumbTree();\n $this->setVar('breadcrumb_tree', $breadcrumbTree, true);\n }", "function _update_breadcrumb_line()\n {\n $tmp = Array();\n\n $tmp[] = Array\n (\n MIDCOM_NAV_URL => \"/\",\n MIDCOM_NAV_NAME => $this->_l10n->get('index'),\n );\n\n $_MIDCOM->set_custom_context_data('midcom.helper.nav.breadcrumb', $tmp);\n }", "function breadcrumb(){\n\t global $view;\n\t \n \t$view_header = ucfirst($view);\n\treturn \"<ul class='breadcrumb'>\n\t <li>System</li>\n\t <li class='active'>$view_header</li>\n\t\t </ul>\";\n }", "function breadcrumbs_view($delim = '<b>&raquo;</b>') {\n\tglobal $file_name, $file, $root_filename;\n\t$temp_breadcrumb_path = '';\n\t$temp_breadcrumb_url = '';\n\t$directory_names = explode('/', $file);\n\tunset($directory_names[sizeof($directory_names)-1]);\n\tforeach($directory_names as $directory_name) {\n\t\t$temp_breadcrumb_path .= $directory_name.'/';\n\t\t$temp_breadcrumb_url = substr($temp_breadcrumb_path, 0, -1);\n\t\t$temp_breadcrumb .= $delim.' <a href=\"'.url($temp_breadcrumb_url,'dir').'\">'.$directory_name.'</a> ';\n\t}\n\treturn \"<a href=\\\"\".url('home', 'dir').\"\\\">Home</a> $temp_breadcrumb $delim <b>$file_name</b>\";\n}", "protected function breadcrumbForList()\n {\n $breadcrumbTree = new ullPhoneBreadcrumbTree();\n $breadcrumbTree->addDefaultListEntry();\n $this->setVar('breadcrumb_tree', $breadcrumbTree, true);\n }", "public static function breadcrumbs() {\n\t\tif(!self::has_breadcrumbs()) return;\n\t\t?>\n\t\t\t<h6 id=\"header-breadcrumbs\">\n\t\t\t\t<?php dimox_breadcrumbs('&middot;') ?>\n\t\t\t</h6>\n\t\t<?php\n\t}", "function ento_cdn_breadcrumb($variables) {\n // Use the Path Breadcrumbs theme function if it should be used instead.\n //if (_bootstrap_use_path_breadcrumbs()) {\n // return path_breadcrumbs_breadcrumb($variables);\n //}\n\n $output = '';\n $breadcrumb = $variables['breadcrumb'];\n\n if (!empty($breadcrumb)) {\n // Provide a navigational heading to give context for breadcrumb links to\n // screen-reader users. Make the heading invisible with .element-invisible.\n $output = '<h2 class=\"element-invisible\">' . t('You are here') . '</h2>';\n $crumbs = '<ol class=\"breadcrumb\">';\n $array_size = count($breadcrumb);\n $i = 0;\n while ( $i < $array_size) {\n $crumbs .= '<li';\n if ($i+1 == $array_size) {\n $crumbs .= ' class=\"active\"';\n }\n $crumbs .= '>';\n if ($i+1 == $array_size) {\n $crumbs .= ' <strong>' . $breadcrumb[$i] . '</strong>' . '</li>';\n } else {\n \t$crumbs .= $breadcrumb[$i] . '</li>';\n }\n $i++;\n }\n $crumbs .= '</ol>';\n return $crumbs;\n }\n\n // Determine if we are to display the breadcrumb.\n/* $bootstrap_breadcrumb = bootstrap_setting('breadcrumb');\n if (($bootstrap_breadcrumb == 1 || ($bootstrap_breadcrumb == 2 && arg(0) == 'admin')) && !empty($breadcrumb)) {\n $output = theme('item_list', array(\n 'attributes' => array(\n 'class' => array('breadcrumb'),\n ),\n 'items' => $breadcrumb,\n 'type' => 'ol',\n ));\n }\n return $output;*/\n}", "public static function getCrumbsHtml()\n {\n $html = \"\\n\";\n $glue = ' <span class=\"glyphicon glyphicon-chevron-right\"></span> ';\n $trail = [];\n $menuArray = self::getMenuArray();\n\n // get pagePath (only from site-root), and adjust to the same format as how the $menu_array paths are defined\n $pagePath = self::pagePathFromSiteRoot(''); // '' = no extension as per $menu_array path definitions\n if(substr($pagePath,-5)=='index') $pagePath = substr($pagePath,0,strlen($pagePath)-5); // also remove /path/\"index\" as per $menu_array path definitions\n #dmsg('pagePath',$pagePath,'crumbs');\n\n // prepare home link for beginning of trail\n $homeLink = '<a href=\"' . self::_menuLink2href(self::homePath()) . '\">Home</a>';\n\n // search the menu array for matching path\n if ( self::findPageInMenu( $pagePath, $menuArray, $trail ) ) {\n $trail[] = $homeLink;\n dmsg('trail',$trail,'crumbs');\n $html .= implode( $glue, array_reverse( $trail ) );\n } else {\n // not in menuArray, use this pages dir components to build a virtual trail\n $trail = explode('/', trim(self::$pathComponentDirs,'/')); if(isset($trail[0]) && $trail[0]=='') $trail=[];\n #$trail[] = '<a href=\"' . self::_menuLink2href($pagePath) . '\">'.self::pageFilename('').'</a>';\n $trail[] = self::pageFilename(''); // dont href self\n array_unshift($trail, $homeLink);\n dmsg('trail',$trail,'crumbs');\n $html .= '<span class=\"capitalize\">' . implode( $glue, $trail ) . '</span>';\n }\n return $html;\n }", "function add_additional_breadcrumbs(BreadcrumbTrail $breadcrumbtrail)\n {\n // Translation :: get('PeerAssessmentToolBrowserComponent')));\n }", "function apoc_breadcrumbs( $args = array() ) {\n\t$crumbs = new Apoc_Breadcrumbs( $args );\n\techo $crumbs->crumbs;\n}", "function BreadCrumb(){}", "protected function getBreadcrumbsPart()\n {\n ?>\n <?php\n //breadCrums\n $bc = $this->getBreadcrumbs();\n ?>\n\n <ol class=\"breadcrumb\" style=\"\">\n <?php\n\n foreach ($bc as $item):\n ?>\n <li><a href=\"<?= $item['url'] ?>\"><?= $item['name'] ?></a></li>\n <?php\n endforeach;\n ?>\n </ol>\n\n <?php\n }", "function thim_learnpress_breadcrumb() {\n\t\tif ( is_front_page() || is_404() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Get the query & post information\n\t\tglobal $post;\n\n\t\t// Build the breadcrums\n\t\techo '<ul itemprop=\"breadcrumb\" itemscope itemtype=\"http://schema.org/BreadcrumbList\" id=\"breadcrumbs\" class=\"breadcrumbs\">';\n\n\t\t// Home page\n\t\techo '<li itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a itemprop=\"item\" href=\"' . esc_html( get_home_url() ) . '\" title=\"' . esc_attr__( 'Home', 'eduma' ) . '\"><span itemprop=\"name\">' . esc_html__( 'Home', 'eduma' ) . '</span></a></li>';\n\n\t\tif ( is_single() ) {\n\n\t\t\t$categories = get_the_terms( $post, 'course_category' );\n\n\t\t\tif ( get_post_type() == 'lp_course' ) {\n\t\t\t\t// All courses\n\t\t\t\techo '<li itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a itemprop=\"item\" href=\"' . esc_url( get_post_type_archive_link( 'lp_course' ) ) . '\" title=\"' . esc_attr__( 'All courses', 'eduma' ) . '\"><span itemprop=\"name\">' . esc_html__( 'All courses', 'eduma' ) . '</span></a></li>';\n\t\t\t} else {\n\t\t\t\techo '<li itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a itemprop=\"item\" href=\"' . esc_url( get_permalink( get_post_meta( $post->ID, '_lp_course', true ) ) ) . '\" title=\"' . esc_attr( get_the_title( get_post_meta( $post->ID, '_lp_course', true ) ) ) . '\"><span itemprop=\"name\">' . esc_html( get_the_title( get_post_meta( $post->ID, '_lp_course', true ) ) ) . '</span></a></li>';\n\t\t\t}\n\n\t\t\t// Single post (Only display the first category)\n\t\t\tif ( isset( $categories[0] ) ) {\n\t\t\t\techo '<li itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a itemprop=\"item\" href=\"' . esc_url( get_term_link( $categories[0] ) ) . '\" title=\"' . esc_attr( $categories[0]->name ) . '\"><span itemprop=\"name\">' . esc_html( $categories[0]->name ) . '</span></a></li>';\n\t\t\t}\n\t\t\techo '<li itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><span itemprop=\"name\" title=\"' . esc_attr( get_the_title() ) . '\">' . esc_html( get_the_title() ) . '</span></li>';\n\n\t\t} else if ( is_tax( 'course_category' ) || is_tax( 'course_tag' ) ) {\n\t\t\t// All courses\n\t\t\techo '<li itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a itemprop=\"item\" href=\"' . esc_url( get_post_type_archive_link( 'lp_course' ) ) . '\" title=\"' . esc_attr__( 'All courses', 'eduma' ) . '\"><span itemprop=\"name\">' . esc_html__( 'All courses', 'eduma' ) . '</span></a></li>';\n\n\t\t\t// Category page\n\t\t\techo '<li itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><span itemprop=\"name\" title=\"' . esc_attr( single_term_title( '', false ) ) . '\">' . esc_html( single_term_title( '', false ) ) . '</span></li>';\n\t\t} else if ( !empty( $_REQUEST['s'] ) && !empty( $_REQUEST['ref'] ) && ( $_REQUEST['ref'] == 'course' ) ) {\n\t\t\t// All courses\n\t\t\techo '<li itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><a itemprop=\"item\" href=\"' . esc_url( get_post_type_archive_link( 'lp_course' ) ) . '\" title=\"' . esc_attr__( 'All courses', 'eduma' ) . '\"><span itemprop=\"name\">' . esc_html__( 'All courses', 'eduma' ) . '</span></a></li>';\n\n\t\t\t// Search result\n\t\t\techo '<li itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><span itemprop=\"name\" title=\"' . esc_attr__( 'Search results for:', 'eduma' ) . ' ' . esc_attr( get_search_query() ) . '\">' . esc_html__( 'Search results for:', 'eduma' ) . ' ' . esc_html( get_search_query() ) . '</span></li>';\n\t\t} else {\n\t\t\techo '<li itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\"><span itemprop=\"name\" title=\"' . esc_attr__( 'All courses', 'eduma' ) . '\">' . esc_html__( 'All courses', 'eduma' ) . '</span></li>';\n\t\t}\n\n\t\techo '</ul>';\n\t}", "function create_crumbs() {\n\t\n\t\t$breadcrumb = '';\n\t\t$args = $this->args;\n\n\t\t// Get the items based on page context \n\t\t$trail = $this->get_trail();\n\n\t\t// If items are found, build the trail \n\t\tif ( !empty( $trail ) && is_array( $trail ) ) {\n\n\t\t\t// Wrap the trail and add the 'Before' element\n\t\t\t$breadcrumb = '<'.$args['container']. ' class=\"breadcrumb-trail breadcrumbs\">';\n\t\t\t$breadcrumb .= ( !empty( $args['before'] ) ? '<span class=\"trail-before\">' . $args['before'] . '</span> ' : '' );\n\t\t\t\n\t\t\t// Adds the 'trail-end' class around last item \n\t\t\tarray_push( $trail, '<span class=\"trail-end\">' . array_pop( $trail ) . '</span>' );\n\t\t\t\n\t\t\t// Format the separator \n\t\t\t$separator = ( !empty( $args['separator'] ) ? $args['separator'] : '' );\n\n\t\t\t// Join the individual trail items into a single string \n\t\t\t$breadcrumb .= join( \" {$separator} \", $trail );\n\n\t\t\t// Close the breadcrumb trail containers \n\t\t\t$breadcrumb .= '</' . $args['container'] . '>';\n\t\t}\n\n\t\t// Return the formatted breadcrumbs\n\t\treturn $breadcrumb;\n\t}", "public function actionTrail()\n {\n $searchModel = new AuditTrailSearch;\n $dataProvider = $searchModel->search(Yii::$app->request->get());\n\n return $this->render('trail', [\n 'dataProvider' => $dataProvider,\n 'searchModel' => $searchModel,\n ]);\n }", "function ou_df_easy_breadcrumb($variables) {\n\n $breadcrumb = $variables['breadcrumb'];\n $segments_quantity = $variables['segments_quantity'];\n $separator = $variables['separator'];\n\n $html = '';\n\n if ($segments_quantity > 0) {\n\n $html .= '<dl class=\"breadcrumb\"><dt>You are here:</dt><dd>';\n\n for ($i = 0, $s = $segments_quantity - 1; $i < $segments_quantity; ++$i) {\n $it = $breadcrumb[$i];\n $content = decode_entities($it['content']);\n if (isset($it['url'])) {\n $html .= l($content, $it['url'], array('attributes' => array('class' => $it['class'])));\n } else {\n $class = implode(' ', $it['class']);\n $html .= '<span class=\"' . $class . '\">'\t. $content . '</span>';\n }\n if ($i < $s) {\n $html .= '<span class=\"easy-breadcrumb_segment-separator\"> ' . $separator . ' </span>';\n }\n }\n\n $html .= '</dd></dl>';\n }\n\n return $html;\n}", "function megatron_ubc_clf_breadcrumbs($variables) {\n $title = drupal_set_title();\n $output = '';\n $output .= '<ul class=\"breadcrumb expand\">';\n\n if (theme_get_setting('clf_crumbumbrellaunit')) {\n $output .= '<li><a href=\"' . theme_get_setting('clf_crumbumbrellawebsite') . '\">' . theme_get_setting('clf_crumbumbrellaunit') . '</a><span class=\"divider\">/</span>';\n }\n if (theme_get_setting('clf_crumbunit')) {\n $output .= '<li><a href=\"' . theme_get_setting('clf_crumbwebsite') . '\">' . theme_get_setting('clf_crumbunit') . '</a><span class=\"divider\">/</span>';\n }\n $output .= '<li>' . $title . '</li></ul>';\n return $output;\n}", "function wordpress_crumbs() {\n\t\t\n\t\t// Setup empty trail\n\t\t$trail \t= array();\n\t\t\n\t\t// Get some info\n\t\t$apoc \t\t= apocrypha();\n\t\t$post\t\t= $apoc->queried_object;\n\t\t$post_id\t= $apoc->queried_id;\n\t\tif ( isset( $post ) ) {\n\t\t\t$post_type \t= isset( $post->post_type ) ? $post->post_type : NULL;\n\t\t\t$parent \t= isset( $post->post_parent ) ? absint( $post->post_parent ) : NULL;\n\t\t}\n\n\t\t// Singular Views\n\t\tif ( is_singular() ) :\n\t\t\tswitch( $post_type ) {\n\t\t\t\n\t\t\t\t// Single Posts \n\t\t\t\tcase 'post' :\n\t\t\t\t\n\t\t\t\t\t// Is the post in a category?\n\t\t\t\t\t$categories = get_the_category( $post_id );\n\t\t\t\t\tif ( $categories ) :\n\t\t\t\t\t\n\t\t\t\t\t\t// Just do the first category\n\t\t\t\t\t\t$term = $categories[0];\n\t\t\t\t\n\t\t\t\t\t\t// If the category has a parent, add it to the trail. \n\t\t\t\t\t\tif ( 0 != $term->parent ) \n\t\t\t\t\t\t\t$trail = array_merge( $trail, $this->trail_parents( $term->parent, 'category' ) );\n\n\t\t\t\t\t\t// Add the category archive link to the trail. \n\t\t\t\t\t\t$trail[] = '<a href=\"' . get_term_link( $term ) . '\" title=\"' . esc_attr( $term->name ) . '\">' . $term->name . '</a>';\n\t\t\t\t\tendif;\n\t\t\t\t\t\n\t\t\t\t\t// Does the post have an ancestor?\n\t\t\t\t\tif ( 0 != $parent ) \n\t\t\t\t\t\t$trail = array_merge( $trail, $this->trail_parents( $parent ) );\n\t\t\t\t\t\n\t\t\t\t\t// Editing a comment on this post\n\t\t\t\t\tif ( is_comment_edit() ) :\n\t\t\t\t\t\t$trail[] = '<a href=\"' . get_permalink() . '\" title=\"Return to article\">' . $post->post_title . '</a>';\n\t\t\t\t\t\t$trail[] = 'Edit Comment';\n\t\t\t\t\t\n\t\t\t\t\t// Reading the post\n\t\t\t\t\telse :\n\t\t\t\t\t\t$trail[] = $post->post_title;\n\t\t\t\t\tendif; \n\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\n\t\t\t\t// Single Pages \n\t\t\t\tcase 'page' :\n\t\t\t\t\t\n\t\t\t\t\t// If the page has ancestor pages\n\t\t\t\t\tif ( 0 != $parent ) \n\t\t\t\t\t\t$trail = array_merge( $trail, $this->trail_parents( $parent ) );\n\t\t\t\t\t\n\t\t\t\t\t// Otherwise, viewing the page\n\t\t\t\t\t$trail[] = $post->post_title;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t// Single Calendar Event \n\t\t\t\tcase 'event' :\n\t\t\t\t\t\n\t\t\t\t\t// I need to rewrite this\n\t\t\t\t\tglobal $allowed_calendar;\n\t\t\t\t\tif ( is_group_calendar( $allowed_calendar->term_id ) ) :\n\t\t\t\t\t\t$group_url = ( 'entropy-rising' == $allowed_calendar->slug ) ? SITEURL . '/entropy-rising/' : SITEURL . '/groups/' . trailingslashit( $slug );\n\t\t\t\t\t\t$trail[] = '<a href=\"'. $group_url .'\" title=\"'. $allowed_calendar->name . ' Guild Page\">'. $allowed_calendar->name .'</a>';\n\t\t\t\t\tendif;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$trail[] = '<a href=\"'. SITEURL . '/calendar/' . $allowed_calendar->slug . '/\" title=\"'. $allowed_calendar->name . ' Calendar\">Calendar</a>';\n\t\t\t\t\t$trail[] = $post->post_title;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t// Archive Pages\n\t\telseif ( is_archive() ) :\n\t\t\n\t\t\t// Category Archives\n\t\t\tif ( is_category() ) :\n\t\t\t\t$trail[] = 'Categories';\n\n\t\t\t\t// If the category has a parent, add it to the trail. \n\t\t\t\tif ( $post->parent != 0 ) \n\t\t\t\t\t$trail = array_merge( $trail, $this->trail_parents( $post->parent ) );\n\t\t\t\t\n\t\t\t\t// Finish up with the term name\n\t\t\t\t$trail[] = $post->name;\n\t\t\t\n\t\t\t// Author Archive \n\t\t\telseif ( is_author() ) :\n\t\t\t\t$trail[] = 'Authors';\n\t\t\t\t$trail[] = get_the_author_meta( 'display_name', get_query_var( 'author' ) );\n\t\t\t\n\t\t\t\n\t\t\t// Calendar Archive \n\t\t\telseif ( is_calendar() ) :\n\t\t\t\n\t\t\t\t// Is it a group calendar? \n\t\t\t\t$term_id \t= $post->term_id;\n\t\t\t\tif( is_group_calendar( $term_id ) ) :\n\n\t\t\t\t\t// Get the group\n\t\t\t\t\t$slug\t\t= $post->slug;\n\t\t\t\t\t$group_id\t= groups_get_id( $slug );\t\t\n\t\t\t\t\tif ( 'entropy-rising' == $slug ) :\n\t\t\t\t\t\t$trail[] = '<a href=\"'. home_url() . '/entropy-rising/\">Entropy Rising</a>';\n\t\t\t\t\telse :\n\t\t\t\t\t\t$group = groups_get_group( array( 'group_id' => $group_id ) );\n\t\t\t\t\t\t$trail[] = '<a href=\"'. bp_get_groups_directory_permalink() .'\">Guilds</a>';\n\t\t\t\t\t\t$trail[] = '<a href=\"'. bp_get_groups_directory_permalink() . $slug .'\" title=\"'. $group->name . '\">'. $group->name . '</a>';\n\t\t\t\t\tendif;\n\t\t\t\tendif;\n\t\t\t\t\n\t\t\t\t// Otherwise just a standalone calendar\n\t\t\t\t$trail[] = 'Calendar';\n\t\t\tendif;\n\t\t\n\t\t// Search Results\n\t\telseif ( is_search() ) :\n\t\t\t$trail[] = 'Search Results';\n\t\telseif ( is_adv_search() ) :\n\t\t\t$trail[] = 'Advanced Search';\n\t\t\t\n\t\t// Interactive Map\n\t\telseif ( is_interactive_map() ) :\n\t\t\t$trail[] = 'Interactive Map';\n\t\t\t\n\t\t// Page Not Found\n\t\telseif ( is_404() ) : \n\t\t\t$trail[] = '404 Page Not Found';\t\t\n\t\tendif;\n\t\t\t\t\t\n\t\t// Return the trail\n\t\treturn $trail;\t\t\n\t}", "public function breadCrumb()\n\t{\n\t\treturn parent::breadCrumb().\" \".$GLOBALS['super']->config->crumbSeperator.\" \".$this->getName();\n\t}", "public function breadCrumb()\n\t{\n\t\treturn parent::breadCrumb().\" \".$GLOBALS['super']->config->crumbSeperator.\" \".$this->getName();\n\t}", "function print_breadcrumb() {\n\t?>\n\t<div class=\"breadcrumb-wrapper\">\n\t\t<nav aria-label=\"breadcrumb\">\n\t\t\t<ol class=\"breadcrumb\">\n\t\t\t\t<li class=\"breadcrumb-item\"><a href=\"<?php echo esc_url( site_url() ); ?>\">Home</a></li>\n\t\t\t\t<?php if ( is_page() ) : ?>\n\t\t\t\t\t<?php the_title( '<li class=\"breadcrumb-item active\">', '</li>' ); ?>\n\t\t\t\t<?php elseif ( is_home() ) : ?>\n\t\t\t\t\t<li class=\"breadcrumb-item active\">Insights</li>\n\t\t\t\t<?php elseif ( is_singular( 'post' ) ) : ?>\n\t\t\t\t\t<li class=\"breadcrumb-item\"><a href=\"<?php echo esc_url( get_permalink( get_option( 'page_for_posts' ) ) ); ?>\">Insights</a></li>\n\t\t\t\t\t<?php the_title( '<li class=\"breadcrumb-item active\">', '</li>' ); ?>\n\t\t\t\t<?php elseif ( is_singular( 'service' ) ) : ?>\n\t\t\t\t\t<?php $term = get_the_terms( get_the_ID(), 'service-category' )[0]; ?>\n\t\t\t\t\t<li class=\"breadcrumb-item active\">\n\t\t\t\t\t\t<?php echo wp_kses_post( $term->name ); ?>\n\t\t\t\t\t</li>\n\t\t\t\t<?php elseif ( is_singular() ) : ?>\n\t\t\t\t\t<?php\n\t\t\t\t\tglobal $post;\n\t\t\t\t\t$post_type = get_post_type( $post );\n\t\t\t\t\t$post_type_object = get_post_type_object( $post_type );\n\t\t\t\t\t?>\n\t\t\t\t\t<li class=\"breadcrumb-item\">\n\t\t\t\t\t\t<a href=\"<?php echo esc_url( get_post_type_archive_link( $post_type ) ); ?>\">\n\t\t\t\t\t\t\t<?php echo wp_kses_post( $post_type_object->label ); ?>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<?php the_title( '<li class=\"breadcrumb-item active\">', '</li>' ); ?>\n\t\t\t\t<?php elseif ( is_tax() ) : ?>\n\t\t\t\t\t<li class=\"breadcrumb-item active\">\n\t\t\t\t\t\t<?php echo wp_kses_post( get_queried_object()->name ); ?>\n\t\t\t\t\t</li>\n\t\t\t\t<?php endif; ?>\n\t\t\t</ol>\n\t\t</nav>\n\t</div>\n\t<?php\n}", "function atwork_breadcrumb($variables) {\n $breadcrumb = $variables['breadcrumb']; // Determine if we are to display the breadcrumb.\n $show_breadcrumb = theme_get_setting('atwork_breadcrumb');\n if ($show_breadcrumb == 'yes' || ($show_breadcrumb == 'admin' && arg(0) == 'admin')) {\n\n // Optionally get rid of the homepage link.\n $show_breadcrumb_home = theme_get_setting('atwork_breadcrumb_home');\n if (!$show_breadcrumb_home) {\n array_shift($breadcrumb);\n }\n\n // Return the breadcrumb with separators.\n if (!empty($breadcrumb)) {\n $breadcrumb_separator = theme_get_setting('atwork_breadcrumb_separator');\n $trailing_separator = $title = '';\n if (theme_get_setting('atwork_breadcrumb_title')) {\n $item = menu_get_item();\n if (!empty($item['tab_parent'])) {\n // If we are on a non-default tab, use the tab's title.\n $title = check_plain($item['title']);\n }\n else {\n $title = drupal_get_title();\n }\n if ($title) {\n $trailing_separator = $breadcrumb_separator;\n }\n }\n elseif (theme_get_setting('atwork_breadcrumb_trailing')) {\n $trailing_separator = $breadcrumb_separator;\n }\n\n return '<h2 class=\"breadcrumb\">' . implode($breadcrumb_separator, $breadcrumb) . $trailing_separator . $title . '</h2>';\n }\n }\n // Otherwise, return an empty string.\n return '';\n}", "public function buildViewBreadCrumb(\\Symfony\\Component\\Routing\\Route $route)\n {\n $routeDefaults = $route->getDefaults();\n // By setting a \"cache context\" to the \"url\", each requested URL gets it's own cache.\n // This way a single breadcrumb isn't cached for all pages on the site.\n $this->breadcrumb->addCacheContexts([\n \"url\"\n ]);\n // By adding \"cache tags\" for this specific node, the cache is invalidated when the node is edited.\n $this->breadcrumb->addCacheTags([\n \"view:\" . $routeDefaults['view_id'] . $routeDefaults['display_id']\n ]);\n $currentRoute = \\Drupal::routeMatch()->getRouteName();\n $r = $route->getPath();\n // Add \"Home\" breadcrumb link.\n $this->breadcrumb->addLink(Link::createFromRoute($this->t('Home'), '<front>'));\n if ($currentRoute == 'view.temoignage.page_1' && $route->getPath() == '/maigrir/la-communaute/temoignages') {\n $this->breadcrumb->addLink(\n Link::fromTextAndUrl('Ils en parlent', Url::fromUri('base:/ils-en-parlent'))\n );\n $this->breadcrumb->addLink(Link::createFromRoute($routeDefaults['_title'], '<none>'));\n }\n elseif ($currentRoute == 'view.livres_des_experts.page_1' && $route->getPath() == '/maigrir/livres/livres-des-experts') {\n $this->breadcrumb->addLink(\n Link::fromTextAndUrl('Méthode', Url::fromUri('base:/methode-maigrir-sans-regime'))\n );\n $this->breadcrumb->addLink(\n Link::fromTextAndUrl('Experts et coachs', Url::fromUri('base:/maigrir/nos-experts/nos-experts-maigrir-sans-regime'))\n );\n $this->breadcrumb->addLink(Link::createFromRoute($routeDefaults['_title'], '<none>'));\n }\n elseif ($currentRoute == 'view.ils_en_parle.page_1' && $route->getPath() == '/maigrir/methode/maigrir-sans-regime-revue-presse') {\n $this->breadcrumb->addLink(\n Link::fromTextAndUrl('Ils en parlent', Url::fromUri('base:/ils-en-parlent'))\n );\n $this->breadcrumb->addLink(Link::createFromRoute($routeDefaults['_title'], '<none>'));\n }\n elseif ($currentRoute == 'view.ils_en_parle.page_2' && $route->getPath() == '/paroles-utilisateurs') {\n $this->breadcrumb->addLink(\n Link::fromTextAndUrl('Ils en parlent', Url::fromUri('base:/ils-en-parlent'))\n );\n $this->breadcrumb->addLink(Link::createFromRoute($routeDefaults['_title'], '<none>'));\n }\n elseif ($currentRoute == 'view.chat_historique.page_1' || $route->getPath() == '/maigrir/la-communaute/temoignages' || $route->getPath() == '/maigrir/la-communaute/chat-historique' ) {\n\n $this->breadcrumb->addLink(Link::fromTextAndUrl($this->t('Community'), Url::fromUri('base:/maigrir/la-communaute')));\n if ($route->getPath() == '/maigrir/la-communaute/chat-historique') {\n $this->breadcrumb->addLink(Link::fromTextAndUrl($this->t('Chat avec les experts'), Url::fromUri('base:/maigrir/la-communaute/chat-direct')));\n }\n $this->breadcrumb->addLink(Link::createFromRoute($routeDefaults['_title'], '<none>'));\n }\n elseif ($currentRoute == 'view.blog.blog_all' && $route->getPath() == '/blog') {\n $this->breadcrumb->addLink(Link::fromTextAndUrl($this->t('Community'), Url::fromUri('base:/maigrir/la-communaute')));\n }\n elseif ($currentRoute == 'view.blog.blog_user_all' && $route->getPath() == '/blog/{arg_0}') {\n $this->breadcrumb->addLink(Link::fromTextAndUrl($this->t('Community'), Url::fromUri('base:/maigrir/la-communaute')));\n $this->breadcrumb->addLink(Link::fromTextAndUrl($this->t(\"Member's blog\"), Url::fromUri('base:/blog')));\n }\n elseif ($route->getPath() != '/maigrir/la-communaute/temoignages'&& $route->getPath() !='/paroles-utilisateurs') {\n // /add current view title\n $this->breadcrumb->addLink(Link::createFromRoute($routeDefaults['_title'], '<none>'));\n }\n return $this->breadcrumb;\n }", "function hudson_breadcrumb($variables) {\n $breadcrumb = $variables['breadcrumb'];\n $output = '';\n\n // Determine if we are to display the breadcrumb.\n $show_breadcrumb = theme_get_setting('zen_breadcrumb');\n if ($show_breadcrumb == 'yes' || $show_breadcrumb == 'admin' && arg(0) == 'admin') {\n\n // Optionally get rid of the homepage link.\n $show_breadcrumb_home = theme_get_setting('zen_breadcrumb_home');\n if (!$show_breadcrumb_home) {\n array_shift($breadcrumb);\n }\n\n // Return the breadcrumb with separators.\n if (!empty($breadcrumb)) {\n $zen_breadcrumb_separator = theme_get_setting('zen_breadcrumb_separator');\n $breadcrumb_separator = '<span class=\"separator\">&nbsp;' . $zen_breadcrumb_separator . '&nbsp;</span>';\n $trailing_separator = $title = '';\n if (theme_get_setting('zen_breadcrumb_title')) {\n $item = menu_get_item();\n if (!empty($item['tab_parent'])) {\n // If we are on a non-default tab, use the tab's title.\n $breadcrumb[] = check_plain($item['title']);\n }\n else {\n $breadcrumb[] = drupal_get_title();\n }\n }\n elseif (theme_get_setting('zen_breadcrumb_trailing')) {\n $trailing_separator = $breadcrumb_separator;\n }\n\n // Provide a navigational heading to give context for breadcrumb links to\n // screen-reader users.\n if (empty($variables['title'])) {\n $variables['title'] = t('You are here');\n }\n // Unless overridden by a preprocess function, make the heading invisible.\n if (!isset($variables['title_attributes_array']['class'])) {\n $variables['title_attributes_array']['class'][] = 'element-invisible';\n }\n\n // Build the breadcrumb trail.\n $output = '<nav class=\"breadcrumb\" role=\"navigation\">';\n $output .= '<h2' . drupal_attributes($variables['title_attributes_array']) . '>' . $variables['title'] . '</h2>';\n $output .= '<ol><li>' . implode($breadcrumb_separator . '</li><li>', $breadcrumb) . $trailing_separator . '</li></ol>';\n $output .= '</nav>';\n }\n }\n\n return $output;\n}", "function open_omega_breadcrumb($vars) {\n $breadcrumb = $vars['breadcrumb'];\n\n if (!empty($breadcrumb)) {\n // Provide a navigational heading to give context for breadcrumb links to\n // screen-reader users. Make the heading invisible with .element-invisible.\n $output = '<h2 class=\"element-invisible\">' . t('You are here') . '</h2>';\n\n $output .= '<div class=\"breadcrumb\">' . implode(' » ', $breadcrumb) . '</div>';\n return $output;\n }\n}", "function wimbase_breadcrumb($variables) {\n if (module_exists('hansel')) {\n $hansel_breadcrumb = hansel_get_breadcrumbs();\n $breadcrumb = $hansel_breadcrumb['breadcrumb'];\n }\n else {\n $breadcrumb = $variables['breadcrumb'];\n }\n\n if (!empty($breadcrumb)) {\n // Provide a navigational heading to give context for breadcrumb links to\n // screen-reader users. Make the heading invisible with .element-invisible.\n $title = '<p id=\"breadcrums-nav-title\" class=\"element-invisible\">'\n . t('You are here') . '</p>';\n $output = '<nav class=\"breadcrumb\" aria-labelledby=\"breadcrums-nav-title\"\">'\n . $title . implode(' / ', $breadcrumb) . '</nav>';\n return $output;\n }\n}", "function mpcth_display_breadcrumb() {\r\n\tglobal $post;\r\n\t$id = $post->ID;\r\n\t$return = '<a href=\"/\">' . __('Home', 'mpcth') . '</a>';\r\n\r\n\tif(is_front_page()) {\r\n\t\t// do nothing\r\n\t} elseif(is_page()) {\r\n\t\t$page = get_post($id);\r\n\r\n\t\t$parent_pages = array();\r\n\t\t$parent_pages[] = ' <span class=\"mpcth-header-devider\">/</span> ' . $page->post_title . \"\\n\";\r\n\r\n\t\twhile ($page->post_parent) {\r\n\t\t\t$page = get_post($page->post_parent);\r\n\t\t\t$parent_pages[] = ' <span class=\"mpcth-header-devider\">/</span> <a href=\"' . get_permalink($page->ID) . '\">' . $page->post_title . '</a>';\r\n\t\t}\r\n\r\n\t\t$parent_pages = array_reverse($parent_pages);\r\n\r\n\t\tforeach ($parent_pages as $parent) {\r\n\t\t\t$return .= $parent;\r\n\t\t}\r\n\t} elseif(is_single()) {\r\n\t\tif($post->post_type == 'post') {\r\n\t\t\t$category = get_the_category($id);\r\n\r\n\t\t\tif(!empty($category)){\r\n\t\t\t\t$data = get_category_parents($category[0]->cat_ID, true, ' <span class=\"mpcth-header-devider\">/</span> ');\r\n\t\t\t\t$return .= ' <span class=\"mpcth-header-devider\">/</span> ' . substr($data, 0, -strlen(' <span class=\"mpcth-header-devider\">/</span> '));\r\n\t\t\t}\r\n\t\t} elseif($post->post_type == 'portfolio') {\r\n\t\t\t$terms = get_the_terms($id, 'mpcth_portfolio_category');\r\n\t\t\t\r\n\t\t\tif(!empty($terms)){\r\n\t\t\t\t$return .= ' <span class=\"mpcth-header-devider\">/</span> ';\r\n\r\n\t\t\t\tforeach ($terms as $term) {\r\n\t\t\t\t\t$return .= ' <a href=\"' . get_term_link($term) . '\">' . $term->name . '</a>';\r\n\t\t\t\t\t\r\n\t\t\t\t\tif($term !== end($terms))\r\n\t\t\t\t\t\t$return .= ', ';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$return .= ' <span class=\"mpcth-header-devider\">/</span> ' . $post->post_title . \"\\n\";\r\n\t} elseif(is_category()) {\r\n\t\t$category = get_the_category($id);\r\n\t\t$data = get_category_parents($category[0]->cat_ID, true, ' <span class=\"mpcth-header-devider\">/</span> ');\r\n\r\n\t\tif(!empty($category)){\r\n\t\t\t$return .= ' <span class=\"mpcth-header-devider\">/</span> ' . substr($data,0,-8);\r\n\t\t}\r\n\t} elseif(is_tax()) {\r\n\t\t$term = get_term_by('slug', get_query_var('term'), get_query_var('taxonomy'));\r\n\t\t$return .= ' <span class=\"mpcth-header-devider\">/</span> <a href=\"' . get_term_link($term) . '\">' . $term->name . '</a>';\r\n\t}\r\n\r\n\treturn $return;\r\n}", "public function renderBreadcrumbs($appendCurrent = true) {\n\t\t$out = '';\n\t\tforeach($this->wire('breadcrumbs') as $breadcrumb) {\n\t\t\t$title = $this->_($breadcrumb->title);\n\t\t\t$out .= \"<li><a href='{$breadcrumb->url}'>{$title}</a><i class='fa fa-angle-right'></i></li>\";\n\t\t}\n\t\tif($appendCurrent) $out .= \"<li><a href='{$breadcrumb->url}'>{$this->getHeadline()}</a></li>\";\n\t\treturn $out; \n\t}", "function breadcrumbs(): void\n{\n\tif (function_exists('yoast_breadcrumb')) {\n\t\tyoast_breadcrumb(\n\t\t\t'<nav aria-label=\"You are here:\" role=\"navigation\" xmlns:v=\"http://rdf.data-vocabulary.org/#\">\n\t\t\t\t<ul class=\"breadcrumbs\">',\n\t\t\t'</ul></nav>'\n\t\t);\n\t}\n}", "function bbpress_crumbs() {\n\t\t\n\t\t// Setup the trail\n\t\t$bbp_trail = array();\n\t\t\n\t\t// If it is the forum root, just display \"Forums\"\n\t\tif ( bbp_is_forum_archive() ) {\n\t\t\t$bbp_trail[] = 'Forums';\n\t\t\treturn $bbp_trail;\n\t\t}\n\t\t\t\t\t\n\t\t// Otherwise link to the root forums\n\t\t$bbp_trail[] = '<a href=\"' . get_post_type_archive_link( 'forum' ) . '\">Forums</a>';\n\t\t\n\t\t// Recent topics page \n\t\tif ( bbp_is_topic_archive() ) :\n\t\t\t$bbp_trail[] = 'Recent Topics';\n\t\t\n\t\t// Topic tag archives \n\t\telseif ( bbp_is_topic_tag() ) :\n\t\t\t$bbp_trail[] = bbp_get_topic_tag_name();\n\t\t\n\t\t// Editing a topic tag\n\t\telseif ( bbp_is_topic_tag_edit() ) :\n\t\t\t$bbp_trail[] = '<a href=\"' . bbp_get_topic_tag_link() . '\">' . bbp_get_topic_tag_name() . '</a>';\n\t\t\t$bbp_trail[] = 'Edit';\n\t\t\n\t\t// Single topic \n\t\telseif ( bbp_is_single_topic() ) :\t\n\t\t\t$topic_id = get_queried_object_id();\n\t\t\t$bbp_trail = array_merge( $bbp_trail, $this->trail_parents( bbp_get_topic_forum_id( $topic_id ) ) );\n\t\t\t$bbp_trail[] = bbp_get_topic_title( $topic_id );\n\t\t\t\t\n\t\t// If it's a split, merge, or edit, link back to the topic \n\t\telseif ( bbp_is_topic_split() || bbp_is_topic_merge() || bbp_is_topic_edit() ) :\n\t\t\t$topic_id = get_queried_object_id();\n\t\t\t$bbp_trail = array_merge( $bbp_trail, $this->trail_parents( $topic_id ) );\n\t\t\n\t\t\tif ( bbp_is_topic_split() ) \t\t: $bbp_trail[] = 'Split Topic';\n\t\t\telseif ( bbp_is_topic_merge() ) \t: $bbp_trail[] = 'Merge Topic';\n\t\t\telseif ( bbp_is_topic_edit() ) \t\t: $bbp_trail[] = 'Edit Topic';\n\t\t\tendif;\n\t\t\t\n\t\t// Single reply \n\t\telseif ( bbp_is_single_reply() ) :\n\t\t\t$reply_id = get_queried_object_id();\n\t\t\t$bbp_trail = array_merge( $bbp_trail, $this->trail_parents( bbp_get_reply_topic_id( $reply_id ) ) );\n\t\t\t$bbp_trail[] = bbp_get_reply_title( $reply_id );\n\t\t\n\t\t// Single reply edit \n\t\telseif ( bbp_is_reply_edit() ) :\n\t\t\t$reply_id = get_queried_object_id();\n\t\t\t$bbp_trail = array_merge( $bbp_trail, $this->trail_parents( bbp_get_reply_topic_id( $reply_id ) ) );\n\t\t\t$bbp_trail[] = 'Edit Reply';\n\t\t\t\n\t\t// Single forum \n\t\telseif ( bbp_is_single_forum() ) :\n\t\t\n\t\t\t// Get the queried forum ID and its parent forum ID. \n\t\t\t$forum_id \t\t\t= get_queried_object_id();\n\t\t\t$forum_parent_id \t= bbp_get_forum_parent_id( $forum_id );\n\t\t\t\n\t\t\t// Get the forum parents\n\t\t\tif ( 0 != $forum_parent_id) \n\t\t\t\t$bbp_trail = array_merge( $bbp_trail, $this->trail_parents( $forum_parent_id ) );\n\t\t\t\t\n\t\t\t// Give the forum title\n\t\t\t$bbp_trail[] = bbp_get_forum_title( $forum_id );\n\t\t\n\t\tendif;\n\t\t\n\t\t// Return the bbPress trail \n\t\treturn $bbp_trail;\n\t}", "public function render()\n {\n return view('breadcrumbs::breadcrumbs');\n }", "function shop_breadcrumb($variables) {\n $breadcrumb = $variables['breadcrumb'];\n\n if (!empty($breadcrumb)) {\n // Provide a navigational heading to give context for breadcrumb links to\n // screen-reader users. Make the heading invisible with .element-invisible.\n $output = '<h2 class=\"element-invisible\">' . t('You are here') . '</h2>';\n\n $output .= '<div class=\"breadcrumb\">' . implode(' › ', $breadcrumb) . '</div>';\n return $output;\n }\n}", "public static function yoast_breadcrumbs_markup() {\r\n if ( function_exists( 'yoast_breadcrumb' ) ) {\r\n yoast_breadcrumb( '<p class=\"wfc-yoast-breadcrumbs\">','</p>' );\r\n }\r\n }", "function hbreadcrumbs()\n\t{\n\t\t$uri = luri_get();\n\t\t$html = \"\";\n\n\t\t$cat = lconf_dbget(\"default_uri\");\n\t\t$cat = mcategories_read($cat);\n\t\t$html = $cat[\"name\"];\n\n\t\tif (strlen($uri[0]))\n\t\t{\n\t\t\t$html = '<a href=\"' . hanchor_shref() . '\">' . $html . '</a>';\n\n\t\t\tfor($i = 0; $i < count($uri); $i++)\n\t\t\t{\n\t\t\t\t$cat = mcategories_read($uri[$i]);\n\t\t\t\tif ($i < count($uri) - 1 && $cat) $html .= ' &gt; <a href=\"' . hanchor_href(\"main/index/content\", mcategories_read_path($uri[$i], false)) . '\">' . $cat[\"name\"] . '</a>';\n\t\t\t\telse if ($cat) $html .= ' &gt; <span>' . $cat[\"name\"] . '</span>';\n\t\t\t}\n\t\t}\n\t\telse $html = '<span>' . $html . '</span>';\n\n\t\treturn $html;\n\t}", "function gwt_drupal_breadcrumb($variables) {\n $breadcrumb = $variables['breadcrumb'];\n $output = '';\n\n // Determine if we are to display the breadcrumb.\n $show_breadcrumb = theme_get_setting('gwt_drupal_breadcrumb');\n if ($show_breadcrumb == 'yes' || $show_breadcrumb == 'admin' && arg(0) == 'admin') {\n\n // Optionally get rid of the homepage link.\n $show_breadcrumb_home = theme_get_setting('gwt_drupal_breadcrumb_home');\n if (!$show_breadcrumb_home) {\n array_shift($breadcrumb);\n }\n\n // Return the breadcrumb with separators.\n if (!empty($breadcrumb)) {\n $breadcrumb_separator = filter_xss_admin(theme_get_setting('gwt_drupal_breadcrumb_separator'));\n $trailing_separator = $title = '';\n if (theme_get_setting('gwt_drupal_breadcrumb_title')) {\n $item = menu_get_item();\n if (!empty($item['tab_parent'])) {\n // If we are on a non-default tab, use the tab's title.\n $breadcrumb[] = check_plain($item['title']);\n }\n else {\n $breadcrumb[] = drupal_get_title();\n }\n }\n elseif (theme_get_setting('gwt_drupal_breadcrumb_trailing')) {\n $trailing_separator = $breadcrumb_separator;\n }\n\n // Provide a navigational heading to give context for breadcrumb links to\n // screen-reader users.\n if (empty($variables['title'])) {\n $variables['title'] = t('You are here');\n }\n $variables['title_attributes_array']['class'][] = 'breadcrumbs-here-label';\n\n // Build the breadcrumb trail.\n $output = '<nav role=\"navigation\">';\n $output .= '<ol class=\"breadcrumbs\">'.\n '<li'.drupal_attributes($variables['title_attributes_array']) . '>' . $variables['title'] . ':</li>'.\n '<li>' . implode('</li>'.\n '<li>', $breadcrumb) . '</li>'.\n '</ol>';\n $output .= '</nav>';\n }\n }\n\n return $output;\n}", "public function getBreadcrumbs();", "function YOURTHEME_breadcrumb($variables) {\n $breadcrumb = $variables['breadcrumb'];\n\n if (!empty($breadcrumb)) {\n $crumbs = '<ul class=\"breadcrumbs\">';\n\n foreach($breadcrumb as $value) {\n $crumbs .= '<li class=\"changes\">'.$value.'</li>';\n }\n $crumbs .= '</ul>';\n }\n return $crumbs;\n }", "function the_breadcrumb() {\n\t global $post;\n\t $separator = '<span class=\"breadcrumb-divider\"><svg width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M16 8.49993L13.4394 5.93933V7.99599H0V9.00394H13.4394V11.0606L16 8.49993Z\" fill=\"#121212\" /></svg></span>';\n\t echo '<nav aria-label=\"breadcrumb\"><ol class=\"breadcrumb\">';\n\t if (!is_home()) {\n\t\t\t echo '<li class=\"breadcrumb-item\"><a href=\"';\n\t\t\t echo get_option('home');\n\t\t\t echo '\">';\n\t\t\t echo __( 'Home', 'thegrapes' );\n\t\t\t echo '</a></li>' . $separator;\n\t\t\t if ( is_category() ) {\n\t\t\t\t\t echo '<li class=\"breadcrumb-item active\">';\n\t\t\t\t\t the_category(' </li>' . $separator . '<li class=\"breadcrumb-item\"> ');\n\t\t\t } elseif ( is_single() ) {\n echo '<li class=\"breadcrumb-item\">';\n echo '<a href=\"' . get_post_type_archive_link( 'post' ) . '\">';\n echo get_the_title( get_option('page_for_posts', true) );\n echo '</a>';\n echo '</li>' . $separator . '<li class=\"breadcrumb-item active\">';\n the_title();\n echo '</li>';\n } elseif ( is_page() ) {\n\t\t\t\t\t if($post->post_parent){\n\t\t\t\t\t\t\t $anc = get_post_ancestors( $post->ID );\n\t\t\t\t\t\t\t $title = get_the_title();\n\t\t\t\t\t\t\t foreach ( $anc as $ancestor ) {\n\t\t\t\t\t\t\t\t\t $output = '<li class=\"breadcrumb-item\"><a href=\"'.get_permalink($ancestor).'\" title=\"'.get_the_title($ancestor).'\">'.get_the_title($ancestor).'</a></li>' . $separator;\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t echo $output;\n\t\t\t\t\t\t\t echo '<li class=\"breadcrumb-item active\">'.$title.'</li>';\n\t\t\t\t\t } else {\n\t\t\t\t\t\t\t echo '<li class=\"breadcrumb-item active\">'.get_the_title().'</li>';\n\t\t\t\t\t }\n\t\t\t }\n\t }\n\t elseif (is_tag()) {single_tag_title();}\n\t elseif (is_day()) {echo\"<li>Archive for \"; the_time('F jS, Y'); echo'</li>';}\n\t elseif (is_month()) {echo\"<li>Archive for \"; the_time('F, Y'); echo'</li>';}\n\t elseif (is_year()) {echo\"<li>Archive for \"; the_time('Y'); echo'</li>';}\n\t elseif (is_author()) {echo\"<li>Author Archive\"; echo'</li>';}\n\t elseif (isset($_GET['paged']) && !empty($_GET['paged'])) {echo \"<li>Blog Archives\"; echo'</li>';}\n\t elseif (is_search()) {echo\"<li>Search Results\"; echo'</li>';}\n\t echo '</ol></nav>';\n}", "public function breadcrumbs($h)\n {\n if ($h->pageName == 'edit_post') {\n $post_link = \"<a href='\" . $h->url(array('page'=>$h->post->id)) . \"'>\";\n $post_link .= $h->post->title . \"</a>\";\n $h->pageTitle = $h->pageTitle . \" / \" . $post_link;\n }\n }", "public function process(BreadcrumbableModelInterface $entity): Breadcrumb;", "protected function _generateBreadcrumb()\r\n {\r\n $links = null;\r\n $texthomelink = $this->view->translate('id_menu_home');\r\n // id_title_overseas = 'Overseas Representatives'\r\n $title = $this->view->translate('id_title_overseas');\r\n $links = array(\r\n $texthomelink => $this->view->baseUrl('/'),\r\n $title => '',\r\n );\r\n $this->view->pageTitle = $title;\r\n\r\n Zend_Registry::set('breadcrumb', $links);\r\n }", "private function _buildBreadcrumbsHtml()\n {\n // Get active elements\n $nodes = $this->_getActiveElements();\n\n // Do we have custom nodes?\n $customNodes = $this->_getParam('customNodes', false);\n if ($customNodes && is_array($customNodes) && count($customNodes)) {\n $nodes = array_merge($nodes, $customNodes);\n }\n\n // Create breadcrumbs\n $length = count($nodes);\n $breadcrumbs = \"\\n\" . sprintf('<%1$s%2$s%3$s xmlns:v=\"http://rdf.data-vocabulary.org/#\">',\n $this->_getParam('wrapper', 'ol'),\n $this->_getParam('id', false) ? ' id=\"' . $this->_getParam('id', '') . '\"' : '',\n $this->_getParam('class', false) ? ' class=\"' . $this->_getParam('class', '') . '\"' : ''\n );\n\n // Before text\n if ($this->_getParam('beforeText', false)) {\n $breadcrumbs .= sprintf(\"\\n\" . '<li%1$s><span>%2$s</span></li>',\n $this->_getParam('classDefault', false) ? ' class=\"' . $this->_getParam('classDefault', '') . '\"' : '',\n $this->_getParam('beforeText', '')\n );\n }\n\n foreach ($nodes as $index => $node) {\n $nodeTitle = is_array($node) ? (isset($node['title']) ? $node['title'] : Craft::t('Unknown')) : $node->__toString();\n $nodeUrl = is_array($node) ? (isset($node['url']) ? $node['url'] : '') : $node->url;\n\n // Gather node classes\n $childClasses = array();\n if ($this->_getParam('classDefault', false)) {\n $childClasses[] = $this->_getParam('classDefault', '');\n }\n\n // First\n if ($index == 0) {\n $childClasses[] = $this->_getParam('classFirst', 'first');\n $breadcrumbs .= sprintf(\"\\n\" . '<li%1$s typeof=\"v:Breadcrumb\"><a href=\"%2$s\" title=\"%3$s\" rel=\"v:url\" property=\"v:title\">%3$s</a></li>',\n $childClasses ? ' class=\"' . implode(' ', $childClasses) . '\"' : '',\n $nodeUrl,\n $this->_getParam('renameHome', $nodeTitle)\n );\n }\n // Last\n elseif ($index == $length - 1)\n {\n $childClasses[] = $this->_getParam('classLast', 'last');\n $breadcrumb = sprintf('<span property=\"v:title\">%1$s</span>',\n $nodeTitle\n );\n if ($this->_getParam('lastIsLink', false)) {\n $breadcrumb = sprintf('<a href=\"%1$s\" title=\"%2$s\" rel=\"v:url\" property=\"v:title\">%2$s</a>',\n $nodeUrl,\n $nodeTitle\n );\n }\n $breadcrumbs .= sprintf(\"\\n\" . '<li%1$s typeof=\"v:Breadcrumb\">%2$s</li>',\n $childClasses ? ' class=\"' . implode(' ', $childClasses) . '\"' : '',\n $breadcrumb\n );\n }\n else {\n $breadcrumbs .= sprintf(\"\\n\" . '<li%1$s typeof=\"v:Breadcrumb\"><a href=\"%2$s\" title=\"%3$s\" rel=\"v:url\" property=\"v:title\">%3$s</a></li>',\n $childClasses ? ' class=\"' . implode(' ', $childClasses) . '\"' : '',\n $nodeUrl,\n $nodeTitle\n );\n }\n }\n $breadcrumbs .= \"\\n\" . sprintf('</%1$s>',\n $this->_getParam('wrapper', 'ol')\n );\n return TemplateHelper::getRaw($breadcrumbs);\n }", "function eo_bbpm_get_breadcrumb() {\n}", "function YOUR_THEME_easy_breadcrumb($variables) {\n\n $breadcrumb = $variables['breadcrumb'];\n $segments_quantity = $variables['segments_quantity'];\n\n $breadcrumb_items = [];\n $link_options = [\n 'attributes' => [\n 'class' => [\n 'ecl-breadcrumbs__link',\n ],\n ],\n 'html' => TRUE\n ];\n $breadcrumb_items = [];\n $menu_breadcrumb = menu_tree_page_data('menu-breadcrumb-menu');\n $i = 0;\n foreach ($menu_breadcrumb as $item) {\n $breadcrumb_item = [\n 'data' => l($item['link']['link_title'], $item['link']['link_path'], $link_options),\n 'class' => [\n 'ecl-breadcrumbs__segment',\n ],\n ];\n if ($i == 0) {\n $breadcrumb_item['class'][] = 'ecl-breadcrumbs__segment--first';\n }\n $breadcrumb_items[] = $breadcrumb_item;\n $i++;\n }\n\n if ($segments_quantity > 0) {\n\n for ($i = 0, $s = $segments_quantity - 1; $i < $segments_quantity; ++$i) {\n $it = $breadcrumb[$i];\n $content = decode_entities($it['content']);\n if (isset($it['url'])) {\n $breadcrumb_item = [\n 'data' => l($content, $it['url'], $link_options),\n 'class' => [\n 'ecl-breadcrumbs__segment',\n ],\n ];\n } else {\n $breadcrumb_item = [\n 'data' => filter_xss($content),\n 'class' => [\n 'ecl-breadcrumbs__segment',\n ],\n ];\n }\n if ($i == $segments_quantity) {\n $breadcrumb_item['class'][] = 'ecl-breadcrumbs__segment--last';\n }\n\n $breadcrumb_items[] = $breadcrumb_item;\n }\n }\n\n $items = [\n 'items' => $breadcrumb_items,\n 'type' => 'ol',\n 'attributes' => [\n 'class' => [\n 'ecl-breadcrumbs__segments-wrapper',\n ],\n ],\n ];\n\n return theme('item_list', $items);\n}", "function isfnet_breadcrumb($variables) {\n $breadcrumb = $variables['breadcrumb'];\n\n if (!empty($breadcrumb)) {\n // Provide a navigational heading to give context for breadcrumb links to\n // screen-reader users. Make the heading invisible with .element-invisible.\n $heading = '<h2 class=\"element-invisible\">' . t('You are here') . '</h2>';\n // Uncomment to add current page to breadcrumb\n\t// $breadcrumb[] = drupal_get_title();\n return '<nav class=\"breadcrumb\">' . $heading . implode(' » ', $breadcrumb) . '</nav>';\n }\n}", "public function create_links()\n {\n \t$txt = '<ul>';\n \t$last = end($this->breadcrumb);\n \tforeach($this->breadcrumb AS $breadcrumb)\n \t{\n \t\t$url = '';\n \t\t$class = FALSE;\n \t\tif($breadcrumb['active'] == '1')\n \t\t{\n \t\t\t$class = 'active';\n \t\t}\n \t\t$txt .= '<li><a href=\"'.$breadcrumb['url'].'\" class=\"'.$class.'\" title=\"'.$breadcrumb['txt'].'\">'.$breadcrumb['txt'].'</a></li>';\n \t\t$class = '';\n \t}\n \t\n \t$txt .= '</ul>';\n \treturn $txt;\n }", "function breadcrumb()\r\n\t{\r\n\t\t$breadcrumbs = array();\r\n\t\tpr($this->Link);\r\n\t\t//$cLink = ClassRegistry::init('JavanLink');pr($cLink);\r\n\t\t//$conditions = array(\"controller\"=>$this->info['controller'], \"action\"=>$this->info['action']);\r\n\t\t//$link = $cLink->find(\"first\", array(\"conditions\"=>$conditions, \"recursive\"=>-1));\r\n\t\t//if(!$link){\r\n\t\t//\t//trigger_error(__('Alamat yang Anda akses tidak terdaftar.', true), E_USER_WARNING);\r\n\t\t//\treturn false ;\r\n\t\t//}else{\r\n\t\t//\t$breadcrumbs = $cLink->getpath($link['Link']['id']);\r\n\t\t//}\r\n\t\treturn $breadcrumbs;\r\n\t}", "function is_astra_breadcrumb_trail( $echo ) { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound\n\t_deprecated_function( __FUNCTION__, '3.6.2', 'astra_addon_is_breadcrumb_trail()' );\n\treturn astra_addon_is_breadcrumb_trail( $echo );\n}", "function dimox_breadcrumbs() {\n\t\t$text['home'] = 'Home'; // text for the 'Home' link\n\t\t$text['category'] = '%s'; // text for a category page\n\t\t$text['search'] = 'Wyniki wyszukiwania dla \"%s\"'; // text for a search results page\n\t\t$text['404'] = 'Błąd 404'; // text for the 404 page\n\t\t$text['page'] = '%s'; // text 'Page N'\n\t\t$text['cpage'] = 'Comment Page %s'; // text 'Comment Page N'\n\t\t$wrap_before = '<div class=\"breadcrumbs\" itemscope itemtype=\"htt://schema.org/BreadCrumbList\">'; // the opening wrapper tag\n\t\t$wrap_after = '</div><!-- .breadcrumbs -->'; // the closing wrapper tag\n\t\t$sep = '›'; // separator between crumbs\n\t\t$sep_before = '<span class=\"sep\">'; // tag before separator\n\t\t$sep_after = '</span>'; // tag after separator\n\t\t$show_home_link = 1; // 1 - show the 'Home' link, 0 - don't show\n\t\t$show_on_home = 0; // 1 - show breadcrumbs on the homepage, 0 - don't show\n\t\t$show_current = 1; // 1 - show current page title, 0 - don't show\n\t\t$before = '<span class=\"current\">'; // tag before the current crumb\n\t\t$after = '</span>'; // tag after the current crumb\n\t\t/* === END OF OPTIONS === */\n\t\tglobal $post;\n\t\t$home_link = home_url('/');\n\t\t$link_before = '<span itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\">';\n\t\t$link_after = '</span>';\n\t\t$link_attr = ' itemprop=\"url\"';\n\t\t$link_in_before = '<span itemprop=\"title\">';\n\t\t$link_in_after = '</span>';\n\t\t$link = $link_before . '<a href=\"%1$s\"' . $link_attr . '>' . $link_in_before . '%2$s' . $link_in_after . '</a>' . $link_after;\n\t\t$frontpage_id = get_option('page_on_front');\n\t\t$parent_id = $post->post_parent;\n\t\t$sep = ' ' . $sep_before . $sep . $sep_after . ' ';\n\t\tif (is_home() || is_front_page()) {\n\t\t\tif ($show_on_home) echo $wrap_before . '<a href=\"' . $home_link . '\">' . $text['home'] . '</a>' . $wrap_after;\n\t\t} else {\n\t\t\techo $wrap_before;\n\t\t\tif ($show_home_link) echo sprintf($link, $home_link, $text['home']);\n\t\t\tif ( is_category() ) {\n\t\t\t\t$cat = get_category(get_query_var('cat'), false);\n\t\t\t\tif ($cat->parent != 0) {\n\t\t\t\t\t$cats = get_category_parents($cat->parent, TRUE, $sep);\n\t\t\t\t\t$cats = preg_replace(\"#^(.+)$sep$#\", \"$1\", $cats);\n\t\t\t\t\t$cats = preg_replace('#<a([^>]+)>([^<]+)<\\/a>#', $link_before . '<a$1' . $link_attr .'>' . $link_in_before . '$2' . $link_in_after .'</a>' . $link_after, $cats);\n\t\t\t\t\tif ($show_home_link) echo $sep;\n\t\t\t\t\techo $cats;\n\t\t\t\t}\n\t\t\t\tif ( get_query_var('paged') ) {\n\t\t\t\t\t$cat = $cat->cat_ID;\n\t\t\t\t\techo $sep . sprintf($link, get_category_link($cat), get_cat_name($cat)) . $sep . $before . sprintf($text['page'], get_query_var('paged')) . $after;\n\t\t\t\t} else {\n\t\t\t\t\tif ($show_current) echo $sep . $before . sprintf($text['category'], single_cat_title('', false)) . $after;\n\t\t\t\t}\n\t\t\t} elseif ( is_search() ) {\n\t\t\t\tif (have_posts()) {\n\t\t\t\t\tif ($show_home_link && $show_current) echo $sep;\n\t\t\t\t\tif ($show_current) echo $before . sprintf($text['search'], get_search_query()) . $after;\n\t\t\t\t} else {\n\t\t\t\t\tif ($show_home_link) echo $sep;\n\t\t\t\t\techo $before . sprintf($text['search'], get_search_query()) . $after;\n\t\t\t\t}\n\t\t\t} elseif ( is_single() && !is_attachment() ) {\n\t\t\t\tif ($show_home_link) echo $sep;\n\t\t\t\tif ( get_post_type() != 'post' ) {\n\t\t\t\t\t$post_type = get_post_type_object(get_post_type());\n\t\t\t\t\t$slug = $post_type->rewrite;\n\t\t\t\t\tprintf($link, $home_link . $slug['slug'] . '/', $post_type->labels->singular_name);\n\t\t\t\t\tif ($show_current) echo $sep . $before . get_the_title() . $after;\n\t\t\t\t} else {\n\t\t\t\t\t$cat = get_the_category(); $cat = $cat[0];\n\t\t\t\t\t$cats = get_category_parents($cat, TRUE, $sep);\n\t\t\t\t\tif (!$show_current || get_query_var('cpage')) $cats = preg_replace(\"#^(.+)$sep$#\", \"$1\", $cats);\n\t\t\t\t\t$cats = preg_replace('#<a([^>]+)>([^<]+)<\\/a>#', $link_before . '<a$1' . $link_attr .'>' . $link_in_before . '$2' . $link_in_after .'</a>' . $link_after, $cats);\n\t\t\t\t\techo $cats;\n\t\t\t\t\tif ( get_query_var('cpage') ) {\n\t\t\t\t\t\techo $sep . sprintf($link, get_permalink(), get_the_title()) . $sep . $before . sprintf($text['cpage'], get_query_var('cpage')) . $after;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ($show_current) echo $before . get_the_title() . $after;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t// custom post type\n\t\t\t} elseif ( !is_single() && !is_page() && get_post_type() != 'post' && !is_404() ) {\n\t\t\t\t$post_type = get_post_type_object(get_post_type());\n\t\t\t\tif ( get_query_var('paged') ) {\n\t\t\t\t\techo $sep . sprintf($link, get_post_type_archive_link($post_type->name), $post_type->label) . $sep . $before . sprintf($text['page'], get_query_var('paged')) . $after;\n\t\t\t\t} else {\n\t\t\t\t\tif ($show_current) echo $sep . $before . $post_type->label . $after;\n\t\t\t\t}\n\t\t\t} elseif ( is_page() && !$parent_id ) {\n\t\t\t\tif ($show_current) echo $sep . $before . get_the_title() . $after;\n\t\t\t} elseif ( is_page() && $parent_id ) {\n\t\t\t\tif ($show_home_link) echo $sep;\n\t\t\t\tif ($parent_id != $frontpage_id) {\n\t\t\t\t\t$breadcrumbs = array();\n\t\t\t\t\twhile ($parent_id) {\n\t\t\t\t\t\t$page = get_page($parent_id);\n\t\t\t\t\t\tif ($parent_id != $frontpage_id) {\n\t\t\t\t\t\t\t$breadcrumbs[] = sprintf($link, get_permalink($page->ID), get_the_title($page->ID));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$parent_id = $page->post_parent;\n\t\t\t\t\t}\n\t\t\t\t\t$breadcrumbs = array_reverse($breadcrumbs);\n\t\t\t\t\tfor ($i = 0; $i < count($breadcrumbs); $i++) {\n\t\t\t\t\t\techo $breadcrumbs[$i];\n\t\t\t\t\t\tif ($i != count($breadcrumbs)-1) echo $sep;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ($show_current) echo $sep . $before . get_the_title() . $after;\n\t\t\t} elseif ( is_404() ) {\n\t\t\t\tif ($show_home_link && $show_current) echo $sep;\n\t\t\t\tif ($show_current) echo $before . $text['404'] . $after;\n\t\t\t} elseif ( has_post_format() && !is_singular() ) {\n\t\t\t\tif ($show_home_link) echo $sep;\n\t\t\t\techo get_post_format_string( get_post_format() );\n\t\t\t}\n\t\t\techo $wrap_after;\n\t\t}\n\t}", "function susy_breadcrumb($vars) {\n\n $breadcrumb = isset($vars['breadcrumb']) ? $vars['breadcrumb'] : array();\n\n if (theme_get_setting('susy_breadcrumb_hideonlyfront')) {\n $condition = count($breadcrumb) > 1;\n } else {\n $condition = !empty($breadcrumb);\n }\n\n if(theme_get_setting('susy_breadcrumb_showtitle')) {\n $title = drupal_get_title();\n if(!empty($title)) {\n $condition = true;\n $breadcrumb[] = $title;\n }\n }\n\n $separator = theme_get_setting('susy_breadcrumb_separator');\n\n if (!$separator) {\n $separator = '»';\n }\n\n if ($condition) {\n return implode(\" {$separator} \", $breadcrumb);\n }\n}", "function appointment_set_breadcrumb() {\n $breadcrumb = array(\n l(t('Home'), '<front>'),\n l(t('Administration'), 'admin'),\n l(t('Content'), 'admin/content'),\n l(t('Appointment'), 'admin/content/appointment'),\n );\n \n drupal_set_breadcrumb($breadcrumb);\n}", "function phpbits_render_breadcrumbs_block( $attributes ) {\n\t\n\treturn 'This is the content';\n}", "function minorite_breadcrumb($variables) {\n $breadcrumb = $variables['breadcrumb'];\n\n if (!empty($breadcrumb)) {\n return '<ul class=\"nav\"><li>' . implode('</li><li>', $breadcrumb) . '</li></ul>';\n }\n}", "function thumbwhere_host_set_breadcrumb() {\n $breadcrumb = array(\n l(t('Home'), '<front>'),\n l(t('Administration'), 'admin'),\n l(t('Host'), 'admin/content'),\n l(t('Host'), 'admin/thumbwhere/thumbwhere_hosts'),\n );\n\n drupal_set_breadcrumb($breadcrumb);\n}", "public function setBreadcrumb($value)\n {\n $this->breadcrumb = $value;\n }", "function faculty_settings_breadcrumb() { \n faculty_setting_line(faculty_add_color_setting('breadcrumb_font_color', __('Font Color', FACULTY_DOMAIN)));\n faculty_setting_line(faculty_add_size_setting('breadcrumb_font_size', __('Font Size', FACULTY_DOMAIN)));\n faculty_setting_line(faculty_add_select_setting('breadcrumb_text_transform', __('Text Transform', FACULTY_DOMAIN), 'transform'));\n faculty_setting_line(faculty_add_border_setting('breadcrumb_border', __('Bottom Border', FACULTY_DOMAIN)));\n do_action('faculty_settings_breadcrumb');\n}", "function buddypress_crumbs() {\n\t\n\t\t// Setup the trail\n\t\t$bp_trail = array();\n\t\t\t\t\n\t\t// User Profiles\n\t\tif ( bp_is_user() ) : \n\t\t\n\t\t\t// Your own profile\n\t\t\tif ( bp_is_my_profile() ) :\n\t\t\t\t $bp_trail[] = '<a href=\"'.bp_displayed_user_domain().'\" title=\"Your Profile\">Your Profile</a>';\n\t\t\t\t \n\t\t\t// Someone else's profile\n\t\t\telse :\n\t\t\t\t$bp_trail[] = '<a href=\"'. bp_get_members_directory_permalink() .'\" title=\"Members Directory\">Members</a>';\n\t\t\t\t$bp_trail[] = '<a href=\"'.bp_displayed_user_domain().'\" title=\"'.bp_get_displayed_user_fullname(). '\">' . bp_get_displayed_user_fullname() . '</a>';\n\t\t\tendif;\n\n\t\t\t// Display the current component\n\t\t\t$bp_trail[] = ucfirst( bp_current_component() );\n\t\t\t\n\t\t// Guild Profile\n\t\telseif ( bp_is_group() ) :\n\t\t\t$bp_trail[] = '<a href=\"'. bp_get_groups_directory_permalink() .'\" title=\"Groups and Guilds Directory\">Groups</a>';\n\t\t\t\n\t\t\t// Group Creation\n\t\t\tif ( bp_is_group_create() ) :\n\t\t\t\t$bp_trail[] = 'Create New Group';\n\t\t\t\t\n\t\t\t// Group Profile Home\n\t\t\telseif ( 'home' == bp_current_action() ) :\n\t\t\t\t$bp_trail[] = bp_get_group_name();\n\t\t\t\t\n\t\t\t// Group Profile Sub-Component\n\t\t\telseif ( bp_current_action() != 'forum' ) : \n\t\t\t\t$bp_trail[] = '<a href=\"'. bp_get_group_permalink() .'\" title=\"'.bp_get_current_group_name().'\">'.bp_get_current_group_name().'</a>';\n\t\t\t\t$bp_trail[] = ucfirst( bp_current_action() );\n\t\t\tendif;\n\t\t\t\t\n\t\t\tif ( bp_current_action() == 'forum' ) :\n\t\t\t\t$bp_trail[] = '<a href=\"'. bp_get_group_permalink() .'\" title=\"'.bp_get_current_group_name().'\">'.bp_get_current_group_name().'</a>';\n\t\t\t\t$bp_trail = array_merge( $bp_trail, $this->group_forum_crumbs() );\n\t\t\tendif;\n\n\t\t// Directories\n\t\telseif ( bp_is_directory() ) :\t\n\t\t\tif ( bp_is_activity_component() ) \t\t$bp_trail[] = 'Sitewide Activity';\n\t\t\telseif ( bp_is_members_component() )\t$bp_trail[] = 'Members Directory';\n\t\t\telseif ( bp_is_groups_component() )\t\t$bp_trail[] = 'Guilds Directory';\n\t\t\telse \t\t\t\t\t\t\t\t\t$bp_trail[] = ucfirst( bp_current_component() );\n\t\t\t\n\t\telseif ( bp_is_register_page() || bp_is_activation_page() ) :\n\t\t\t$bp_trail[] = 'New User Registration';\n\t\t\t\t\n\t\t// Backup Placeholder\n\t\telse :\n\t\t\t$bp_trail[] = '404 Page Not Found';\n\t\tendif;\n\t\t\t\n\t\t// Return the BuddyPress trail\n\t\treturn $bp_trail;\n\t}", "function tac_override_yoast_breadcrumb_trail( $links ) {\n global $post;\n\n if ( is_home() || is_singular( 'post' ) || is_archive() ) :\n\n \tif ( 'event' == get_post_type() ) :\n\n\t $breadcrumb[] = array(\n\t 'url' => get_permalink( get_post_type_archive_link( 'event' ) ),\n\t 'text' => 'Our Events',\n\t );\n\n\t array_splice( $links, 1, -2, $breadcrumb );\n\n\t elseif ( 'course' == get_post_type() ) :\n\n\t \t$breadcrumb[] = array(\n\t 'url' => get_permalink( get_post_type_archive_link( 'course' ) ),\n\t 'text' => 'Our Learning',\n\t );\n\n\t array_splice( $links, 1, -2, $breadcrumb );\n\n\t else :\n\n\t \t\t$breadcrumb[] = array(\n\t 'url' => get_permalink( get_option( 'page_for_posts' ) ),\n\t 'text' => 'Our Series',\n\t );\n\n\t array_splice( $links, 1, -2, $breadcrumb );\n\t endif;\n endif;\n\n return $links;\n}", "function tac_link_to_last_crumb( $output, $crumb){ \n\n\t$output = '<a property=\"v:title\" rel=\"v:url\" class=\"thisLink\" href=\"'. $crumb['url']. '\" >';\n\t$output.= $crumb['text'];\n\t$output.= '</a>';\n\n\treturn $output;\n}", "function okcdesign_breadcrumb($variables) {\n $html = theme_plugins_invoke(__FUNCTION__, $variables);\n if ($html) return $html;\n return theme_breadcrumb($variables);\n}", "public static function breadcrumb( $before = '', $after = '', $display = true ) {\n\t\t// Remember the last used before/after for use in case the object goes __toString().\n\t\tself::$before = $before;\n\t\tself::$after = $after;\n\t\t$output = $before . self::$instance->render() . $after;\n\n\t\tif ( $display === true ) {\n\t\t\techo $output;\n\n\t\t\treturn '';\n\t\t}\n\n\t\treturn $output;\n\t}", "function run()\r\n {\r\n $trail = BreadcrumbTrail :: get_instance();\r\n $trail->add(new Breadcrumb($this->get_url(), Translation :: get(ucfirst($this->get_folder()))));\r\n\r\n $this->display_header($trail);\r\n echo $this->get_action_bar_html() . '';\r\n echo $this->get_publications_html();\r\n $this->display_footer();\r\n }", "function x_breadcrumbs() {\n\n\tif ( x_get_option( 'x_breadcrumb_display', '1' ) ) {\n\n\t GLOBAL $post;\n\n\t $is_ltr = ! is_rtl();\n\t $stack = x_get_stack();\n\t $delimiter = x_get_breadcrumb_delimiter();\n\t $home_text = x_get_breadcrumb_home_text();\n\t $home_link = home_url();\n\t $current_before = x_get_breadcrumb_current_before();\n\t $current_after = x_get_breadcrumb_current_after();\n\t $page_title = get_the_title();\n\t $blog_title = get_the_title( get_option( 'page_for_posts', true ) );\n\n\t if ( ! is_404() ) {\n\t\t$post_parent = $post->post_parent;\n\t } else {\n\t\t$post_parent = '';\n\t }\n\n\t if ( X_WOOCOMMERCE_IS_ACTIVE ) {\n\t\t//$shop_url = x_get_shop_link();\n\t\t$shop_url = home_url() . 'products';\n\t\t$shop_title = x_get_option( 'x_' . $stack . '_shop_title', __( 'The Shop', '__x__' ) );\n\t\t$shop_link = '<a href=\"'. $shop_url .'\">' . $shop_title . '</a>';\n\t }\n\n\t echo '<div class=\"x-breadcrumbs\"><a href=\"' . $home_link . '\">' . $home_text . '</a>' . $delimiter;\n\n\t\tif ( is_home() ) {\n\n\t\t echo $current_before . $blog_title . $current_after;\n\n\t\t} elseif ( is_category() ) {\n\n\t\t $the_cat = get_category( get_query_var( 'cat' ), false );\n\t\t if ( $the_cat->parent != 0 ) echo get_category_parents( $the_cat->parent, TRUE, $delimiter );\n\t\t echo $current_before . single_cat_title( '', false ) . $current_after;\n\n\t\t} elseif ( x_is_product_category() ) {\n\t\t\n\t\t $the_cat = get_queried_object();\n\t\t if ( $the_cat->parent != 0 ) echo x_get_taxonomy_parents( $the_cat->parent, $the_cat->taxonomy, TRUE, $delimiter );\n\t\t echo $current_before . single_cat_title( '', false ) . $current_after;\n\t\t\n\t\t /*\n\t\t if ( $is_ltr ) {\n\t\t\techo $shop_link . $delimiter . $current_before . single_cat_title( '', false ) . $current_after;\n\t\t } else {\n\t\t\techo $current_before . single_cat_title( '', false ) . $current_after . $delimiter . $shop_link;\n\t\t }\n\t\t */\n\t\t\n\t\t} elseif ( x_is_product_tag() ) {\n\n\t\t if ( $is_ltr ) {\n\t\t\techo $shop_link . $delimiter . $current_before . single_tag_title( '', false ) . $current_after;\n\t\t } else {\n\t\t\techo $current_before . single_tag_title( '', false ) . $current_after . $delimiter . $shop_link;\n\t\t }\n\n\t\t} elseif ( is_search() ) {\n\n\t\t echo $current_before . __( 'Search Results for ', '__x__' ) . '&#8220;' . get_search_query() . '&#8221;' . $current_after;\n\n\t\t} elseif ( is_singular( 'post' ) ) {\n\n\t\t if ( get_option( 'page_for_posts' ) == is_front_page() ) {\n\t\t\techo $current_before . $page_title . $current_after;\n\t\t } else {\n\t\t\tif ( $is_ltr ) {\n\t\t\t echo '<a href=\"' . get_permalink( get_option( 'page_for_posts' ) ) . '\">' . $blog_title . '</a>' . $delimiter . $current_before . $page_title . $current_after;\n\t\t\t} else {\n\t\t\t echo $current_before . $page_title . $current_after . $delimiter . '<a href=\"' . get_permalink( get_option( 'page_for_posts' ) ) . '\">' . $blog_title . '</a>';\n\t\t\t}\n\t\t }\n\n\t\t} elseif ( x_is_portfolio() ) {\n\n\t\t echo $current_before . get_the_title() . $current_after;\n\n\t\t} elseif ( x_is_portfolio_item() ) {\n\n\t\t $link = x_get_parent_portfolio_link();\n\t\t $title = x_get_parent_portfolio_title();\n\n\t\t if ( $is_ltr ) {\n\t\t\techo '<a href=\"' . $link . '\">' . $title . '</a>' . $delimiter . $current_before . $page_title . $current_after;\n\t\t } else {\n\t\t\techo $current_before . $page_title . $current_after . $delimiter . '<a href=\"' . $link . '\">' . $title . '</a>';\n\t\t }\n\n\t\t} elseif ( x_is_product() ) {\n\n\t\t if ( $is_ltr ) {\n\t\t\techo $shop_link . $delimiter . $current_before . $page_title . $current_after;\n\t\t } else {\n\t\t\techo $current_before . $page_title . $current_after . $delimiter . $shop_link;\n\t\t }\n\t\t \n\t\t} elseif ( x_is_buddypress() ) {\n\n\t\t if ( bp_is_group() ) {\n\t\t\techo '<a href=\"' . bp_get_groups_directory_permalink() . '\">' . x_get_option( 'x_buddypress_groups_title', __( 'Groups', '__x__' ) ) . '</a>' . $delimiter . $current_before . x_buddypress_get_the_title() . $current_after;\n\t\t } elseif ( bp_is_user() ) {\n\t\t\techo '<a href=\"' . bp_get_members_directory_permalink() . '\">' . x_get_option( 'x_buddypress_members_title', __( 'Members', '__x__' ) ) . '</a>' . $delimiter . $current_before . x_buddypress_get_the_title() . $current_after;\n\t\t } else {\n\t\t\techo $current_before . x_buddypress_get_the_title() . $current_after;\n\t\t }\n\n\t\t} elseif ( x_is_bbpress() ) {\n\n\t\t remove_filter( 'bbp_no_breadcrumb', '__return_true' );\n\n\t\t if ( bbp_is_forum_archive() ) {\n\t\t\techo $current_before . bbp_get_forum_archive_title() . $current_after;\n\t\t } else {\n\t\t\techo bbp_get_breadcrumb();\n\t\t }\n\n\t\t add_filter( 'bbp_no_breadcrumb', '__return_true' );\n\n\t\t} elseif ( is_page() && ! $post_parent ) {\n\n\t\t echo $current_before . $page_title . $current_after;\n\n\t\t} elseif ( is_page() && $post_parent ) {\n\n\t\t $parent_id = $post_parent;\n\t\t $breadcrumbs = array();\n\n\t\t if ( is_rtl() ) {\n\t\t\techo $current_before . $page_title . $current_after . $delimiter;\n\t\t }\n\n\t\t while ( $parent_id ) {\n\t\t\t$page = get_page( $parent_id );\n\t\t\t$breadcrumbs[] = '<a href=\"' . get_permalink( $page->ID ) . '\">' . get_the_title( $page->ID ) . '</a>';\n\t\t\t$parent_id = $page->post_parent;\n\t\t }\n\n\t\t if ( $is_ltr ) {\n\t\t\t$breadcrumbs = array_reverse( $breadcrumbs );\n\t\t }\n\n\t\t for ( $i = 0; $i < count( $breadcrumbs ); $i++ ) {\n\t\t\techo $breadcrumbs[$i];\n\t\t\tif ( $i != count( $breadcrumbs ) -1 ) echo $delimiter;\n\t\t }\n\n\t\t if ( $is_ltr ) {\n\t\t\techo $delimiter . $current_before . $page_title . $current_after;\n\t\t }\n\n\t\t} elseif ( is_tag() ) {\n\n\t\t echo $current_before . single_tag_title( '', false ) . $current_after;\n\n\t\t} elseif ( is_author() ) {\n\n\t\t GLOBAL $author;\n\t\t $userdata = get_userdata( $author );\n\t\t echo $current_before . __( 'Posts by ', '__x__' ) . '&#8220;' . $userdata->display_name . $current_after . '&#8221;';\n\n\t\t} elseif ( is_404() ) {\n\n\t\t echo $current_before . __( '404 (Page Not Found)', '__x__' ) . $current_after;\n\n\t\t} elseif ( is_archive() ) {\n\n\t\t if ( x_is_shop() ) {\n\t\t\techo $current_before . $shop_title . $current_after;\n\t\t } else {\n\t\t\techo $current_before . __( 'Archives ', '__x__' ) . $current_after;\n\t\t }\n\n\t\t}\n\n\t echo '</div>';\n\n\t}\n}", "private function weblink_cat_breadcrumbs($weblink_cat_index) {\n\n /* Make an infinity traverse */\n function breadcrumb_arrays($index, $webid) {\n $crumb = [];\n if (isset($index[get_parent($index, $webid)])) {\n $_name = dbarray(dbquery(\"SELECT weblink_cat_id, weblink_cat_name, weblink_cat_parent FROM \".DB_WEBLINK_CATS.\" WHERE weblink_cat_id='\".$webid.\"' AND weblink_cat_status='1' AND \".groupaccess(\"weblink_cat_visibility\").(multilang_table(\"WL\") ? \" AND \".in_group('weblink_cat_language', LANGUAGE) : \"\").\"\"));\n $crumb = [\n \"link\" => INFUSIONS.\"weblinks/weblinks.php?cat_id=\".$_name['weblink_cat_id'],\n \"title\" => $_name['weblink_cat_name']\n ];\n if (isset($index[get_parent($index, $webid)])) {\n if (get_parent($index, $webid) == 0) {\n return $crumb;\n }\n $crumb_1 = breadcrumb_arrays($index, get_parent($index, $webid));\n $crumb = array_merge_recursive($crumb, $crumb_1); // convert so can comply to Fusion Tab API.\n }\n }\n\n return $crumb;\n }\n\n // then we make a infinity recursive function to loop/break it out.\n $crumb = breadcrumb_arrays($weblink_cat_index, $this->cat_id);\n $title_count = !empty($crumb['title']) && is_array($crumb['title']) ? count($crumb['title']) > 1 : 0;\n // then we sort in reverse.\n if ($title_count) {\n krsort($crumb['title']);\n krsort($crumb['link']);\n }\n if ($title_count) {\n foreach ($crumb['title'] as $wbi => $value) {\n BreadCrumbs::getInstance()->addBreadCrumb([\"link\" => $crumb['link'][$wbi], \"title\" => $value]);\n if ($wbi == count($crumb['title']) - 1) {\n add_to_title(self::$locale['global_201'].$value);\n }\n }\n } else if (isset($crumb['title'])) {\n add_to_title(self::$locale['global_201'].$crumb['title']);\n BreadCrumbs::getInstance()->addBreadCrumb([\"link\" => $crumb['link'], \"title\" => $crumb['title']]);\n }\n }", "private function buildBreadCrumb() {\n if (is_array($this->breadcrumb)) {\n foreach ($this->breadcrumb as $index => $value) {\n $breadcrumb .= ! is_null($breadcrumb) ? \"<li>&#8250;&nbsp;</li>\" : NULL;\n if (is_string($index))\n $breadcrumb .= sprintf(\"<li><a class='current_page' href='%s' title='%s' alt='%s'>%s</a></li>\", $value, $index, $index, $index);\n else\n $breadcrumb .= sprintf(\"<li>%s</li>\", $value);\n }\n }\n return $breadcrumb;\n }", "function thumbwhere_contentcollection_set_breadcrumb() {\n $breadcrumb = array(\n l(t('Home'), '<front>'),\n l(t('Administration'), 'admin'),\n l(t('ContentCollection'), 'admin/content'),\n l(t('ContentCollection'), 'admin/thumbwhere/thumbwhere_contentcollections'),\n );\n\n drupal_set_breadcrumb($breadcrumb);\n}", "function Breadcrumb ($pathinfo) {\n if (strlen($pathinfo)<1) { $pathinfo = $REQUEST_URI; } \n $divider = \">>\";\n print \"<p id=\\\"breadcrumbs\\\" style=\\\"clear: both; margin-left: 8ex; text-indent:-8ex\\\">\\n\";\n $pre_path = \"/docs\";\n $more_path= \"/\";\n $path = split (\"/\", $pathinfo);\n print \"Return to: <a href=\\\"/lib/\\\">Library Homepage</a>\";\n \n $count = count($path);\n $less = $count-1;\n \n if (preg_match(\"/^index\\./\",\"$path[$less]\",$matches)) {\n array_pop($path);\n // $count = $count-2;\n $count = count($path);\n } \n /*\n print \"<!-- COUNT ME: $count -->\";\n print \"<!--\";\n print_r($path);\n print \"-->\";\n */\n\n for ($i=1; $i<$count; $i++) {\n $dir = $path[$i];\n $fn = \"$pre_path$more_path$dir/breadcrumb.data\";\n if (file_exists($fn)) {\n if ($file = fopen(\"$fn\", \"r\")) {\n\t$line=fgetss($file,255);\n\tif (preg_match(\"/\\\"(.+)\\\"/\",$line,$matches)) { \n\t $line = preg_replace(\"/\\s+/\",\"&nbsp;\",$matches[1]); \n\t}\n\tprint \" $divider <a href=\\\"$more_path$dir/\\\">$line</a>\";\n\tfclose($file);\n } // end if file opens\n } //end if file exists\n $more_path .= \"$dir/\";\n } // end for\n}", "function arlo_fn_breadcrumbs() {\n \n // Settings\n $separator = '<span></span>';\n $breadcrums_id = 'breadcrumbs';\n $breadcrums_class = 'breadcrumbs';\n $home_title = esc_html__('Home', 'arlo');\n \n // If you have any custom post types with custom taxonomies, put the taxonomy name below (e.g. product_cat)\n $custom_taxonomy = '';\n \n // Get the query & post information\n global $post,$wp_query;\n \n // Do not display on the homepage\n if ( !is_front_page() ) {\n \t\n\t\techo '<div class=\"arlo_fn_breadcrumbs\">';\n // Build the breadcrums\n echo '<ul id=\"' . esc_attr($breadcrums_id) . '\" class=\"' . esc_attr($breadcrums_class) . '\">';\n \n // Home page\n echo '<li class=\"item-home\"><a class=\"bread-link bread-home\" href=\"' . get_home_url() . '\" title=\"' . esc_attr($home_title) . '\">' . esc_html($home_title) . '</a></li>';\n echo '<li class=\"separator separator-home\"> ' . wp_kses_post($separator) . ' </li>';\n \n if ( is_archive() && !is_tax() && !is_category() && !is_tag() ) {\n \n\t\t\t echo '<li class=\"item-current item-archive\"><span class=\"bread-current bread-archive\">' . esc_html__('Archive', 'arlo') . '</span></li>';\n\t\t\t\n } else if ( is_archive() && is_tax() && !is_category() && !is_tag() ) {\n \n // If post is a custom post type\n $post_type = get_post_type();\n \n // If it is a custom post type display name and link\n if($post_type != 'post') {\n \n $post_type_object = get_post_type_object($post_type);\n $post_type_archive = get_post_type_archive_link($post_type);\n \n echo '<li class=\"item-cat item-custom-post-type-' . esc_attr($post_type) . '\"><a class=\"bread-cat bread-custom-post-type-' . esc_attr($post_type) . '\" href=\"' . esc_url($post_type_archive) . '\" title=\"' . esc_attr($post_type_object->labels->name) . '\">' . esc_attr($post_type_object->labels->name) . '</a></li>';\n echo '<li class=\"separator\"> ' . wp_kses_post($separator) . ' </li>';\n \n }\n \n $custom_tax_name = get_queried_object()->name;\n echo '<li class=\"item-current item-archive\"><span class=\"bread-current bread-archive\">' . esc_html($custom_tax_name) . '</span></li>';\n \n } else if ( is_single() ) {\n \n // If post is a custom post type\n $post_type = get_post_type();\n \n // If it is a custom post type display name and link\n if($post_type != 'post') {\n \n $post_type_object = get_post_type_object($post_type);\n $post_type_archive = get_post_type_archive_link($post_type);\n \n echo '<li class=\"item-cat item-custom-post-type-' . esc_attr($post_type) . '\"><a class=\"bread-cat bread-custom-post-type-' . esc_attr($post_type) . '\" href=\"' . esc_url($post_type_archive) . '\" title=\"' . esc_attr($post_type_object->labels->name) . '\">' . esc_html($post_type_object->labels->name) . '</a></li>';\n echo '<li class=\"separator\"> ' . wp_kses_post($separator) . ' </li>';\n \n }\n \n // Get post category info\n $category = get_the_category();\n \n if(!empty($category)) {\n \n // Get last category post is in\n $last_category = end(array_values($category));\n \n // Get parent any categories and create array\n $get_cat_parents = rtrim(get_category_parents($last_category->term_id, true, ','),',');\n $cat_parents = explode(',',$get_cat_parents);\n \n // Loop through parent categories and store in variable $cat_display\n $cat_display = '';\n foreach($cat_parents as $parents) {\n $cat_display .= '<li class=\"item-cat\">'.esc_html($parents).'</li>';\n $cat_display .= '<li class=\"separator\"> ' . esc_html($separator) . ' </li>';\n }\n \n }\n \n // If it's a custom post type within a custom taxonomy\n $taxonomy_exists = taxonomy_exists($custom_taxonomy);\n if(empty($last_category) && !empty($custom_taxonomy) && $taxonomy_exists) {\n $taxonomy_terms = get_the_terms( $post->ID, $custom_taxonomy );\n $cat_id = $taxonomy_terms[0]->term_id;\n $cat_nicename = $taxonomy_terms[0]->slug;\n $cat_link = get_term_link($taxonomy_terms[0]->term_id, $custom_taxonomy);\n $cat_name = $taxonomy_terms[0]->name;\n \n }\n \n // Check if the post is in a category\n if(!empty($last_category)) {\n echo wp_kses_post($cat_display);\n echo '<li class=\"item-current item-' . esc_attr($post->ID) . '\"><span class=\"bread-current bread-' . esc_attr($post->ID) . '\" title=\"' . get_the_title() . '\">' . get_the_title() . '</span></li>';\n \n // Else if post is in a custom taxonomy\n } else if(!empty($cat_id)) {\n \n echo '<li class=\"item-cat item-cat-' . esc_attr($cat_id) . ' item-cat-' . esc_attr($cat_nicename) . '\"><a class=\"bread-cat bread-cat-' . esc_attr($cat_id) . ' bread-cat-' . esc_attr($cat_nicename) . '\" href=\"' . esc_url($cat_link) . '\" title=\"' . esc_attr($cat_name) . '\">' . esc_html($cat_name) . '</a></li>';\n echo '<li class=\"separator\"> ' . wp_kses_post($separator) . ' </li>';\n echo '<li class=\"item-current item-' . esc_attr($post->ID) . '\"><span class=\"bread-current bread-' . esc_attr($post->ID) . '\" title=\"' . get_the_title() . '\">' . get_the_title() . '</span></li>';\n \n } else {\n \n echo '<li class=\"item-current item-' . esc_attr($post->ID) . '\"><span class=\"bread-current bread-' . esc_attr($post->ID) . '\" title=\"' . get_the_title() . '\">' . get_the_title() . '</span></li>';\n \n }\n \n } else if ( is_category() ) {\n \n // Category page\n echo '<li class=\"item-current item-cat\"><span class=\"bread-current bread-cat\">' . single_cat_title('', false) . '</span></li>';\n \n } else if ( is_page() ) {\n \n // Standard page\n if( $post->post_parent ){\n \n // If child page, get parents \n $anc = get_post_ancestors( $post->ID );\n \n // Get parents in the right order\n $anc = array_reverse($anc);\n \n // Parent page loop\n if ( !isset( $parents ) ) $parents = null;\n foreach ( $anc as $ancestor ) {\n $parents .= '<li class=\"item-parent item-parent-' . esc_attr($ancestor) . '\"><a class=\"bread-parent bread-parent-' . esc_attr($ancestor) . '\" href=\"' . get_permalink($ancestor) . '\" title=\"' . get_the_title($ancestor) . '\">' . get_the_title($ancestor) . '</a></li>';\n $parents .= '<li class=\"separator separator-' . esc_attr($ancestor) . '\"> ' . wp_kses_post($separator) . ' </li>';\n }\n \n // Display parent pages\n echo wp_kses_post($parents);\n \n // Current page\n echo '<li class=\"item-current item-' . esc_attr($post->ID) . '\"><span title=\"' . get_the_title() . '\"> ' . get_the_title() . '</span></li>';\n \n } else {\n \n // Just display current page if not parents\n echo '<li class=\"item-current item-' . esc_attr($post->ID) . '\"><span class=\"bread-current bread-' . esc_attr($post->ID) . '\"> ' . get_the_title() . '</span></li>';\n \n }\n \n } else if ( is_tag() ) {\n \n // Tag page\n \n // Get tag information\n $term_id = get_query_var('tag_id');\n $taxonomy = 'post_tag';\n $args = 'include=' . $term_id;\n $terms = get_terms( $taxonomy, $args );\n $get_term_id = $terms[0]->term_id;\n $get_term_slug = $terms[0]->slug;\n $get_term_name = $terms[0]->name;\n \n // Display the tag name\n echo '<li class=\"item-current item-tag-' . esc_attr($get_term_id) . ' item-tag-' . esc_attr($get_term_slug) . '\"><span class=\"bread-current bread-tag-' . esc_attr($get_term_id) . ' bread-tag-' . esc_attr($get_term_slug) . '\">' . esc_html($get_term_name) . '</span></li>';\n \n } elseif ( is_day() ) {\n \n // Day archive\n \n // Year link\n echo '<li class=\"item-year item-year-' . get_the_time('Y') . '\"><a class=\"bread-year bread-year-' . get_the_time('Y') . '\" href=\"' . get_year_link( get_the_time('Y') ) . '\" title=\"' . get_the_time('Y') . '\">' . get_the_time('Y') . esc_html__(' Archives', 'arlo').'</a></li>';\n echo '<li class=\"separator separator-' . get_the_time('Y') . '\"> ' . wp_kses_post($separator) . ' </li>';\n \n // Month link\n echo '<li class=\"item-month item-month-' . get_the_time('m') . '\"><a class=\"bread-month bread-month-' . get_the_time('m') . '\" href=\"' . get_month_link( get_the_time('Y'), get_the_time('m') ) . '\" title=\"' . get_the_time('M') . '\">' . get_the_time('M') . esc_html__(' Archives', 'arlo').'</a></li>';\n echo '<li class=\"separator separator-' . get_the_time('m') . '\"> ' . wp_kses_post($separator) . ' </li>';\n \n // Day display\n echo '<li class=\"item-current item-' . get_the_time('j') . '\"><span class=\"bread-current bread-' . get_the_time('j') . '\"> ' . get_the_time('jS') . ' ' . get_the_time('M') . esc_html__(' Archives', 'arlo').'</span></li>';\n \n } else if ( is_month() ) {\n \n // Month Archive\n \n // Year link\n echo '<li class=\"item-year item-year-' . get_the_time('Y') . '\"><a class=\"bread-year bread-year-' . get_the_time('Y') . '\" href=\"' . get_year_link( get_the_time('Y') ) . '\" title=\"' . get_the_time('Y') . '\">' . get_the_time('Y') . esc_html__(' Archives', 'arlo').'</a></li>';\n echo '<li class=\"separator separator-' . get_the_time('Y') . '\"> ' . wp_kses_post($separator) . ' </li>';\n \n // Month display\n echo '<li class=\"item-month item-month-' . get_the_time('m') . '\"><span class=\"bread-month bread-month-' . get_the_time('m') . '\" title=\"' . get_the_time('M') . '\">' . get_the_time('M') . esc_html__(' Archives', 'arlo').'</span></li>';\n \n } else if ( is_year() ) {\n \n // Display year archive\n echo '<li class=\"item-current item-current-' . get_the_time('Y') . '\"><span class=\"bread-current bread-current-' . get_the_time('Y') . '\" title=\"' . get_the_time('Y') . '\">' . get_the_time('Y') . esc_html__(' Archives', 'arlo').'</span></li>';\n \n } else if ( is_author() ) {\n \n // Auhor archive\n \n // Get the author information\n global $author;\n $userdata = get_userdata( $author );\n \n // Display author name\n echo '<li class=\"item-current item-current-' . esc_attr($userdata->display_name) . '\"><span class=\"bread-current bread-current-' . esc_attr($userdata->display_name) . '\" title=\"' . esc_attr($userdata->display_name) . '\">' . esc_html__('Author: ', 'arlo') . esc_html($userdata->display_name) . '</span></li>';\n \n } else if ( get_query_var('paged') ) {\n \n // Paginated archives\n echo '<li class=\"item-current item-current-' . get_query_var('paged') . '\"><span class=\"bread-current bread-current-' . get_query_var('paged') . '\" title=\"'.esc_attr__('Page ', 'arlo') . get_query_var('paged') . '\">'.esc_html__('Page', 'arlo') . ' ' . get_query_var('paged') . '</span></li>';\n \n } else if ( is_search() ) {\n \n // Search results page\n echo '<li class=\"item-current item-current-' . get_search_query() . '\"><span class=\"bread-current bread-current-' . get_search_query() . '\" title=\"'.esc_attr__('Search results for: ', 'arlo'). get_search_query() . '\">' .esc_html__('Search results for: ', 'arlo') . get_search_query() . '</span></li>';\n \n } elseif ( is_404() ) {\n \n // 404 page\n echo '<li>' . esc_html__('Error 404', 'arlo') . '</li>';\n }\n \n echo '</ul>';\n\t\techo '</div>';\n \n }\n \n}", "function apoc_get_buddypress_breadcrumbs( $args = array() ) {\n\t$bp_trail = array();\n\t\n\t// Directories \n\tif ( bp_is_directory() ) :\n\t\tif ( bp_is_activity_component() ) : $bp_trail[] = 'Recent Activity';\n\t\telseif ( bp_is_members_component() ) : $bp_trail[] = 'Members Directory';\n\t\telseif ( bp_is_groups_component() ) : $bp_trail[] = 'Groups and Guilds Directory';\n\t\telse : $bp_trail[] = ucfirst( bp_current_component() );\n\t\tendif;\n\t\n\t// Single Member \n\telseif ( bp_is_user() ) : \n\t\t$bp_trail[] = '<a href=\"'. bp_get_members_directory_permalink() .'\" title=\"Members Directory\">Members</a>';\n\t\t\n\t\t// Get the displayed user \n\t\tif ( bp_is_my_profile() ) : $bp_trail[] = '<a href=\"'.bp_displayed_user_domain().'\" title=\"Your Profile\">Your Profile</a>';\n\t\telse : $bp_trail[] = '<a href=\"'.bp_displayed_user_domain().'\" title=\"'.bp_get_displayed_user_fullname(). '\">' . bp_get_displayed_user_fullname() . '</a>';\n\t\tendif;\n\n\t\t// Display the current component \n\t\t$bp_trail[] = ucfirst( bp_current_component() );\n\t\t\n\t// Single Group \n\telseif ( bp_is_group() ) :\n\t\t\n\t\t// Get the displayed group \n\t\tif ( bp_get_current_group_id() == 1 ) :\n\t\t\t$bp_trail[] = '<a href=\"'. home_url() . '/entropy-rising/\">Entropy Rising</a>';\n\t\telse :\n\t\t\t$bp_trail[] = '<a href=\"'. bp_get_groups_directory_permalink() .'\">Guilds</a>';\n\t\t\t$bp_trail[] = '<a href=\"'. bp_get_group_permalink() .'\" title=\"'.bp_get_current_group_name().'\">'.bp_get_current_group_name().'</a>';\n\t\tendif;\n\t\t\n\t\t// Display the current group action for everything except forums \n\t\tif ( 'home' == bp_current_action() ) : $bp_trail[] = 'Profile';\n\t\telseif ( bp_current_action() != 'forum' ) : $bp_trail[] = ucfirst( bp_current_action() );\n\t\telseif ( bp_current_action() == 'forum' ) : \n\t\t\t$bp_trail = array_merge( $bp_trail, apoc_get_group_forum_breadcrumbs() );\n\t\tendif;\n\t\n\t// User Registration \n\telseif ( bp_is_register_page() ) :\n\t\t$bp_trail[] = 'New User Registration';\n\t\n\t// User Activation \n\telseif ( bp_is_activation_page() ) :\n\t\t$bp_trail[] = 'User Account Activation';\n\t\n\t// New Group Creation \n\telseif ( bp_is_group_create() ) :\n\t\t$bp_trail[] = 'Create New Group';\n\n \tendif;\n\treturn $bp_trail;\n}", "function breadcrumb_navigation( $page, $ref = array() ){\n\t$breadcrumb = $ref;\n\tif( !count( $breadcrumb ) ){\n\t\tarray_unshift( $breadcrumb, array( $page->post_title ) );\n\t} else {\n\t\tarray_unshift( $breadcrumb, array( $page->post_title, get_permalink( $page->ID ) ) );\n\t}\n\tif( $page->post_parent ){\n\t\tbreadcrumb_navigation( get_page( $page->post_parent ), $breadcrumb );\n\t\treturn;\n\t} else {\n\t\t/// process the breadcrumb\n\t\t$output = '<li class=\"home\"><a href=\"' . get_home_url() . '\">' . __( 'Home', '_supply_ontario' ) . '</a></li>';\n\t\tfor( $q = 0; $q < count( $breadcrumb ); ++$q ){\n\t\t\tif( count( $breadcrumb[$q] ) > 1 ){\n\t\t\t\t$output .= '<li><a href=\"' . $breadcrumb[$q][1] . '\">' . $breadcrumb[$q][0] . '</a></li>';\n\t\t\t} else {\n\t\t\t\t$output .= '<li class=\"current\">' . $breadcrumb[$q][0] . '</li>';\n\t\t\t}\n\t\t}\n\t\techo '<ul class=\"breadcrumb\">' . $output . '</ul>';\n\t}\n}", "function knb_breadcrumb()\n{\n\n $breadcrumb = new \\DSC\\Reference\\Breadcrumbs();\n\n $breadcrumb_option = get_post_meta(get_the_ID(), '_knowledgebase_breadcrumbs_meta_key', true);\n\n\t$args = array(\n 'post_type' => 'knowledgebase',\n 'taxonomy' => 'knb-categories',\n 'separator_icon' => ' ' . get_option('reference_knb_breadcrumbs_separator') . ' ',\n 'breadcrumbs_id' => 'breadcrumbs-wrap',\n 'breadcrumbs_classes' => 'breadcrumb-trail breadcrumbs',\n 'home_title' => get_option('reference_knb_plural'),\n\t);\n\n if (empty($breadcrumb_option) && (bool)get_option('reference_knb_breadcrumbs') === true) {\n $breadcrumb_option = 'enable';\n }\n\n if ((bool)get_option('reference_knb_breadcrumbs') === true) {\n\n if (is_option_enabled($breadcrumb_option)) {\n\n echo $breadcrumb->render( $args );\n\n }\n }\n}", "private function addBreadcrumb(DataContainer $dc): void\n {\n /** @var AttributeBagInterface $session */\n $session = $this->requestStack->getSession()->getBag('contao_backend');\n\n // Set a new node\n if (isset($_GET['nn'])) {\n // Check the path\n if (Validator::isInsecurePath(Input::get('nn', true))) {\n throw new \\RuntimeException('Insecure path '.Input::get('nn', true));\n }\n\n $session->set(self::BREADCRUMB_SESSION_KEY, Input::get('nn', true));\n Controller::redirect(preg_replace('/&nn=[^&]*/', '', Environment::get('request')));\n }\n\n if (($nodeId = $session->get(self::BREADCRUMB_SESSION_KEY)) < 1) {\n return;\n }\n\n // Check the path\n if (Validator::isInsecurePath($nodeId)) {\n throw new \\RuntimeException('Insecure path '.$nodeId);\n }\n\n $ids = [];\n $links = [];\n $user = BackendUser::getInstance();\n\n // Generate breadcrumb trail\n if ($nodeId) {\n $id = $nodeId;\n\n do {\n $node = $this->db->fetchAssociative(\"SELECT * FROM {$dc->table} WHERE id=?\", [$id]);\n\n if (!$node) {\n // Currently selected node does not exist\n if ((int) $id === (int) $nodeId) {\n $session->set(self::BREADCRUMB_SESSION_KEY, 0);\n\n return;\n }\n\n break;\n }\n\n $ids[] = $id;\n\n // No link for the active node\n if ((int) $node['id'] === (int) $nodeId) {\n $links[] = $this->onLabelCallback($node, '', null, '', true).' '.$node['name'];\n } else {\n $links[] = $this->onLabelCallback($node, '', null, '', true).' <a href=\"'.Backend::addToUrl('nn='.$node['id']).'\" title=\"'.StringUtil::specialchars($GLOBALS['TL_LANG']['MSC']['selectNode']).'\">'.$node['name'].'</a>';\n }\n\n // Do not show the mounted nodes\n if (!$user->isAdmin && $user->hasAccess($node['id'], 'nodeMounts')) {\n break;\n }\n\n $id = $node['pid'];\n } while ($id > 0 && 'root' !== $node['type']);\n }\n\n // Check whether the node is mounted\n if (!$user->hasAccess($ids, 'nodeMounts')) {\n $session->set(self::BREADCRUMB_SESSION_KEY, 0);\n\n throw new AccessDeniedException('Node ID '.$nodeId.' is not mounted.');\n }\n\n // Limit tree\n $GLOBALS['TL_DCA'][$dc->table]['list']['sorting']['root'] = [$nodeId];\n\n // Add root link\n $links[] = Image::getHtml($GLOBALS['TL_DCA'][$dc->table]['list']['sorting']['icon']).' <a href=\"'.Backend::addToUrl('nn=0').'\" title=\"'.StringUtil::specialchars($GLOBALS['TL_LANG']['MSC']['selectAllNodes']).'\">'.$GLOBALS['TL_LANG']['MSC']['filterAll'].'</a>';\n $links = array_reverse($links);\n\n // Insert breadcrumb menu\n $GLOBALS['TL_DCA'][$dc->table]['list']['sorting']['breadcrumb'] = '\n\n<nav aria-label=\"'.$GLOBALS['TL_LANG']['MSC']['breadcrumbMenu'].'\">\n <ul id=\"tl_breadcrumb\">\n <li>'.implode(' › </li><li>', $links).'</li>\n </ul>\n</nav>';\n }", "function thumbwhere_contentcollectionitem_set_breadcrumb() {\n $breadcrumb = array(\n l(t('Home'), '<front>'),\n l(t('Administration'), 'admin'),\n l(t('ContentCollectionItem'), 'admin/content'),\n l(t('ContentCollectionItem'), 'admin/thumbwhere/thumbwhere_contentcollectionitems'),\n );\n\n drupal_set_breadcrumb($breadcrumb);\n}", "public function bread_menu()\n\t{\n\t\t// get current url address\n\t\t$VarServer = $_SERVER['REQUEST_URI'];\n\n\t\t// we trimed back slash left part of url to equal the string provided by the current address\n\t\t$trimed_server_name = ltrim($VarServer, '/');\n\t\t$xploded = explode('/', $trimed_server_name);\n\n\t\t\t// need to evaluate if there's extension to our url, if extended. we must trim the last part of url to find match in our query stated below\n\t\t\tif(count($xploded) > 2)\n\t\t\t{\n\t\t\t\t// url has extension\n\t\t\t\t// this should be match \n\t\t\t\t$on_the_go_url = $xploded[0].\"/\".$xploded[1];\n\t\t\t\t// this is the last part or the main display page name of breadcrumbs\n\t\t\t\t$bread_extend = $xploded[count($xploded)-1];\n\t\t\t} else\n\t\t\t{\n\t\t\t\t// no url extension, *condition\n\t\t\t\t$on_the_go_url = $xploded[0].\"/\".$xploded[1];\n\t\t\t\t$bread_extend = '';\n\t\t\t}\n\n\t\t// our main selecion query\n\t $module_name = $this->where('url', $on_the_go_url)->get();\n\n\t\t\tif(count($module_name) > 0)\n\t\t\t{\n\t\t\t\t// get database selection output\n\t\t\t\tforeach ($module_name as $tinapay) {\n\t\t\t\t\t$urls = '/'.$tinapay->url;\n\t\t\t\t\t$name_mod = $tinapay->name; \n\t\t\t\t}\n\n\t\t\t\t//main keyword functions or output generation if our breadcrumbs :D\n\t\t\t\tBreadcrumb::addbreadcrumb('Home', '/home/dashboard');\n\t\t\t\tBreadcrumb::addbreadcrumb($name_mod, $urls);\n\t\t\t\t// this is the extension name/display name\n\t\t\t\tif($bread_extend != null){\n\t\t\t\t\tBreadcrumb::addbreadcrumb($bread_extend);\n\t\t\t\t}\n\t\t\t\t// as you can see, it is a separator defined by itself :D\n\t\t\t\tBreadcrumb::setSeparator('>');\n\n\t\t\t\t// returns output of this method\n\t\t \treturn Breadcrumb::generate(); //Breadcrumbs UL is generated and stored in an array.\n\t\t\t}\n\t}", "function get_breadcrumb() {\n\n // Outputs home breadcrumb \n echo '<a href=\"'.home_url().'\" rel=\"nofollow\">Home</a>';\n\n // Retrievea post categories.\n $category = get_the_category();\n\n // Checks if page template is category or single \n if (is_category() || is_single() || is_tag() || is_date()) {\n\n // Outputs arrows\n echo \"&nbsp;&nbsp;&#187;&nbsp;&nbsp;\";\n\n // Checks if category array is not empty\n if ( $category[0] ) {\n // Outputs current category of post (NOTE: only outputs one category)\n echo '<a href=\"' . get_category_link( $category[0]->term_id ) . '\">' . $category[0]->cat_name . '</a>';\n }\n\n // Determines whether the query is for an existing single post\n if (is_single()) {\n // Outputs arrows \n echo \" &nbsp;&nbsp;&#187;&nbsp;&nbsp; \";\n // Outputs the title\n the_title();\n }\n\n } \n}", "public function getBreadcrumb()\n {\n return $this->breadcrumb;\n }", "function get_trail() {\n\t\t\n\t\t// Setup empty trail\n\t\t$trail = array();\n\t\t\n\t\t// Start with a link to the home page \n\t\t$trail[] = '<a href=\"' . SITEURL . '\" title=\"' . SITENAME . '\" rel=\"home\" class=\"trail-home\">' . $this->args['home'] . '</a>';\t\n\t\t\n\t\t// If BuddyPress is installed and we're on a BuddyPress page \n\t\tif ( class_exists( 'BuddyPress' ) && is_buddypress() ) :\n\t\t\t$trail = array_merge( $trail , $this->buddypress_crumbs() );\n\t\t\n\t\t// If bbPress is installed and we're on a bbPress page\n\t\telseif ( class_exists( 'bbPress' ) && is_bbpress() ) :\n\t\t\t$trail = array_merge( $trail , $this->bbpress_crumbs() );\n\t\t\n\t\t// Otherwise, it's a basic WordPress component\n\t\telse :\n\t\t\t$trail = array_merge( $trail , $this->wordpress_crumbs() );\n\t\tendif;\n\t\t\n\t\t// Return the trail for use\n\t\treturn $trail;\n\t}", "protected static function set_breadcrumb($args) {\n if (!empty($args['redirect_on_success']) && function_exists('hostsite_set_breadcrumb')) {\n $breadcrumb = [$args['redirect_on_success'] => 'Terms'];\n hostsite_set_breadcrumb($breadcrumb);\n }\n }", "function createBreadCrumb($id)\n\t{\n\t\t$instance_name = & get_instance();\n\t\t$menu_name = null;\n\t\twhile($id > 0)\n\t\t{\n\t\t\tif($arr_menu_info = $this->front_menu->getMenuInfo($id))\n\t\t\t{\n\t\t\t\t$menu_name = anchor(site_url('admin/pages/'.$arr_menu_info->id), $arr_menu_info->menu_name) . ' / ' . $menu_name;\n\t\t\t\t$id = $arr_menu_info->menu_id;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn substr_replace($menu_name, \"\", -3);\n\t}", "function the_breadcrumb() {\n\tif (!is_home()) {\n\t\techo '<span title=\"';\n\t\techo get_option('home');\n\t echo '\">';\n\t\tbloginfo('name');\n\t\techo \"</span> » \";\n\t\tif (is_page_template()) {\n\t\t\t\techo \" » \";\n echo the_title();\n\n \n \t\n\t\t} elseif (is_single()) {\n\t\t\techo the_title();\n\t\t}\n\t}\n}", "function dimox_breadcrumbs() {\n\n\t/* === OPTIONS === */\n\t$text['home'] = 'Home'; // text for the 'Home' link\n\t$text['category'] = 'Archive by Category \"%s\"'; // text for a category page\n\t$text['search'] = 'Search Results for \"%s\" Query'; // text for a search results page\n\t$text['tag'] = 'Posts Tagged \"%s\"'; // text for a tag page\n\t$text['author'] = 'Articles Posted by %s'; // text for an author page\n\t$text['404'] = 'Error 404'; // text for the 404 page\n\t$text['page'] = 'Page %s'; // text 'Page N'\n\t$text['cpage'] = 'Comment Page %s'; // text 'Comment Page N'\n\n\t$wrap_before = '<div class=\"breadcrumbs\">'; // the opening wrapper tag\n\t$wrap_after = '</div><!-- .breadcrumbs -->'; // the closing wrapper tag\n\t$sep = '>'; // separator between crumbs\n\t$sep_before = '<span class=\"sep\">'; // tag before separator\n\t$sep_after = '</span>'; // tag after separator\n\t$show_home_link = 1; // 1 - show the 'Home' link, 0 - don't show\n\t$show_on_home = 1; // 1 - show breadcrumbs on the homepage, 0 - don't show\n\t$show_current = 1; // 1 - show current page title, 0 - don't show\n\t$before = '<span class=\"current\">'; // tag before the current crumb\n\t$after = '</span>'; // tag after the current crumb\n\t/* === END OF OPTIONS === */\n\n\tglobal $post;\n\tglobal $pre_path;\n\t$home_link = 'https://www.nationalarchives.gov.uk/';\n\t$link_before = '<span itemprop=\"itemListElement\" itemscope itemtype=\"http://schema.org/ListItem\">';\n\t$link_after = '</span>';\n\t$link_attr = ' itemprop=\"url\"';\n\t$link_in_before = '<span itemprop=\"title\">';\n\t$link_in_after = '</span>';\n\t$link = $link_before . '<a href=\"%1$s\"' . $link_attr . '>' . $link_in_before . '%2$s' . $link_in_after . '</a>' . $link_after;\n\t$frontpage_id = get_option('page_on_front');\n\t$parent_id = $post->post_parent;\n\t$sep = ' ' . $sep_before . $sep . $sep_after . ' ';\n\n\tif (is_home() || is_front_page()) {\n\n\t\t// TNA additional breadcrumbs for front page\n\t\tglobal $pre_crumbs;\n\t\tif ( $pre_crumbs ) {\n\t\t\t$numItems = count($pre_crumbs);\n\t\t\t$i = 0;\n\t\t\tglobal $pre_crumbs_st;\n\t\t\tforeach ($pre_crumbs as $crumb_name => $crumb_path) {\n\t\t\t\tif (++$i === $numItems) {\n\t\t\t\t\t$pre_crumbs_st .= ' <span class=\"sep\">&gt;</span> <span>'. $crumb_name . '</span> ';\n\t\t\t\t} else {\n\t\t\t\t\t$pre_crumbs_st .= ' <span class=\"sep\">&gt;</span> <span><a href=\"' . $crumb_path . '\">'. $crumb_name . '</a></span> ';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tglobal $pre_crumbs_st;\n\t\tif ($show_on_home) echo $wrap_before . '<a href=\"' . $home_link . '\">' . $text['home'] . '</a>';\n\t\tif ($pre_crumbs_st) echo $pre_crumbs_st;\n\t\tif ($show_on_home) echo $wrap_after;\n\n\t} else {\n\n\t\t// TNA additional breadcrumbs\n\t\tglobal $pre_crumbs;\n\t\tif ( $pre_crumbs ) {\n\t\t\tglobal $pre_crumbs_st;\n\t\t\tforeach ($pre_crumbs as $crumb_name => $crumb_path) {\n\t\t\t\t$pre_crumbs_st .= ' <span class=\"sep\">&gt;</span> <span><a href=\"' . $crumb_path . '\">'. $crumb_name . '</a></span> ';\n\t\t\t}\n\t\t}\n\n\t\techo $wrap_before;\n\n\t\tif ($show_home_link) echo sprintf($link, $home_link, $text['home']);\n\n\t\tif ( is_page() && !$parent_id ) {\n\t\t\tglobal $pre_crumbs_st;\n\t\t\tif ($pre_crumbs_st) echo $pre_crumbs_st;\n\t\t\tif ($show_current) echo $sep . $before . get_the_title() . $after;\n\n\t\t} elseif ( is_page() && $parent_id ) {\n\t\t\tglobal $pre_crumbs_st;\n\t\t\tif ($pre_crumbs_st) echo $pre_crumbs_st;\n\t\t\tif ($show_home_link) echo $sep;\n\t\t\tif ($parent_id != $frontpage_id) {\n\t\t\t\t$breadcrumbs = array();\n\t\t\t\twhile ($parent_id) {\n\t\t\t\t\t$page = get_page($parent_id);\n\t\t\t\t\tif ($parent_id != $frontpage_id) {\n\t\t\t\t\t\t$breadcrumbs[] = sprintf($link, str_replace(home_url(), $pre_path, get_permalink($page->ID)), get_the_title($page->ID));\n\t\t\t\t\t}\n\t\t\t\t\t$parent_id = $page->post_parent;\n\t\t\t\t}\n\t\t\t\t$breadcrumbs = array_reverse($breadcrumbs);\n\t\t\t\tfor ($i = 0; $i < count($breadcrumbs); $i++) {\n\t\t\t\t\techo $breadcrumbs[$i];\n\t\t\t\t\tif ($i != count($breadcrumbs)-1) echo $sep;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($show_current) echo $sep . $before . get_the_title() . $after;\n\n\t\t} elseif ( is_404() ) {\n\t\t\tglobal $pre_crumbs_st;\n\t\t\tif ($pre_crumbs_st) echo $pre_crumbs_st;\n\t\t\tif ($show_home_link && $show_current) echo $sep;\n\t\t\tif ($show_current) echo $before . $text['404'] . $after;\n\n\t\t} elseif ( is_single() && !is_attachment() ) {\n\t\t\tglobal $pre_crumbs_st, $pre_crumbs_post;\n\t\t\tif ($pre_crumbs_st) echo $pre_crumbs_st;\n\t\t\tif ($pre_crumbs_post) echo $pre_crumbs_post;\n\t\t\tif ($show_home_link) echo $sep;\n\t\t\tif ( get_post_type() != 'post' ) {\n\t\t\t\t$post_type = get_post_type_object(get_post_type());\n\t\t\t\t$slug = $post_type->rewrite;\n\t\t\t\tprintf($link, $home_link . '/' . $slug['slug'] . '/', $post_type->labels->singular_name);\n\t\t\t\tif ($show_current) echo $sep . $before . get_the_title() . $after;\n\t\t\t} else {\n\t\t\t\t$cat = get_the_category(); $cat = $cat[0];\n\t\t\t\t$cats = get_category_parents($cat, TRUE, $sep);\n\t\t\t\tif (!$show_current || get_query_var('cpage')) $cats = preg_replace(\"#^(.+)$sep$#\", \"$1\", $cats);\n\t\t\t\t$cats = preg_replace('#<a([^>]+)>([^<]+)<\\/a>#', $link_before . '<a$1' . $link_attr .'>' . $link_in_before . '$2' . $link_in_after .'</a>' . $link_after, $cats);\n\t\t\t\t/*echo $cats;*/\n\t\t\t\tif ( get_query_var('cpage') ) {\n\t\t\t\t\techo $sep . sprintf($link, str_replace(home_url(), $pre_path, get_permalink()), get_the_title()) . $sep . $before . sprintf($text['cpage'], get_query_var('cpage')) . $after;\n\t\t\t\t} else {\n\t\t\t\t\tif ($show_current) echo $before . get_the_title() . $after;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\techo $wrap_after;\n\n\t}\n}", "function maincatBreadCrumb($arr)\n\t{\t\n\t\treturn '<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"resultDETAILS\">\n <tr>\n <td align=\"left\" scope=\"col\"><a href=\"?do=indexpage\">Home</a> <b>&gt;&gt;</b> '.$arr[0]['Category'].'</td></tr></table>';\n\t}", "function CreateBreadcrumb($categoryid, $tagtype='<a>') // or '<li>'\n{\n global $DB, $userinfo, $mainsettings, $pages_md_arr, $pages_parents_md_arr;\n\n if(!isset($pages_parents_md_arr)) return;\n $categories = array();\n $cat_id = $categoryid;\n while(!empty($cat_id))\n {\n if(isset($pages_md_arr[$cat_id]))\n {\n $cat = $pages_md_arr[$cat_id];\n array_unshift($categories, $cat);\n $cat_id = $cat['parentid'];\n }\n else\n {\n break;\n }\n }\n\n if(empty($categories))\n {\n return '';\n }\n\n $Breadcrumb = '';\n $count = count($categories);\n $idx = 1;\n // $categories is array with pages for a specific parent page\n foreach($categories as $category_arr)\n {\n // $category_arr contains actual page row (either cached or from DB)\n $category_name = strlen($category_arr['title'])?$category_arr['title']:$category_arr['name'];\n $category_link = strlen($category_arr['link']) ? $category_arr['link'] : RewriteLink('index.php?categoryid=' . $category_arr['categoryid']);\n $category_target = strlen($category_arr['target']) ? ' target=\"' . $category_arr['target'] . '\"' : '';\n switch($idx)\n {\n case 1 : $class ='class=\"first\" '; break;\n case $count: $class ='class=\"last\" '; break;\n default : $class = '';\n }\n //SD370: allow list items output\n //if($tagtype == '<li>') $Breadcrumb .= '<li>';\n if($category_arr['categoryid'] == $categoryid){\n $Breadcrumb .= '<li>'.$category_name.'</li>';\n }\n else{\n $Breadcrumb .= '<li><a '.$class.'href=\"'.$category_link.'\" '.$category_target.'>'.$category_name.'</a></li>';\n }\n //$Breadcrumb .= '<li><a '.$class.'href=\"'.$category_link.'\" '.$category_target.'>'.$category_name.'</a></li>';\n //if($tagtype == '<li>') $Breadcrumb .= '</li>';\n $idx++;\n }\n $Breadcrumb .= '<div style=\"clear:both;\"></div>'.\"\\n\";\n\n return $Breadcrumb;\n\n}", "protected function crumb_to_link( $breadcrumb, $index, $total ) {\n\t\t$link = '';\n\n\t\tif ( ! isset( $breadcrumb['text'] ) || ! \\is_string( $breadcrumb['text'] ) || empty( $breadcrumb['text'] ) ) {\n\t\t\treturn $link;\n\t\t}\n\n\t\t$text = \\trim( $breadcrumb['text'] );\n\n\t\tif (\n\t\t\t$index < ( $total - 1 )\n\t\t\t&& isset( $breadcrumb['url'] )\n\t\t\t&& \\is_string( $breadcrumb['url'] )\n\t\t\t&& ! empty( $breadcrumb['url'] )\n\t\t) {\n\t\t\t// If it's not the last element and we have a url.\n\t\t\t$link .= '<' . $this->get_element() . '>';\n\t\t\t$title_attr = isset( $breadcrumb['title'] ) ? ' title=\"' . \\esc_attr( $breadcrumb['title'] ) . '\"' : '';\n\t\t\t$link .= '<a href=\"' . \\esc_url( $breadcrumb['url'] ) . '\"' . $title_attr . '>' . $text . '</a>';\n\t\t}\n\t\telseif ( $index === ( $total - 1 ) ) {\n\t\t\t// If it's the last element.\n\t\t\t$inner_elm = 'span';\n\t\t\tif ( $this->helpers->options->get( 'breadcrumbs-boldlast' ) === true ) {\n\t\t\t\t$inner_elm = 'strong';\n\t\t\t}\n\n\t\t\t$link .= '<' . $inner_elm . ' class=\"breadcrumb_last\" aria-current=\"page\">' . $text . '</' . $inner_elm . '>';\n\t\t\t// This is the last element, now close all previous elements.\n\t\t\twhile ( $index > 0 ) {\n\t\t\t\t$link .= '</' . $this->get_element() . '>';\n\t\t\t\t--$index;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t// It's not the last element and has no url.\n\t\t\t$link .= '<span>' . $text . '</span>';\n\t\t}\n\n\t\t/**\n\t\t * Filter: 'wpseo_breadcrumb_single_link' - Allow changing of each link being put out by the Yoast SEO breadcrumbs class.\n\t\t *\n\t\t * @param array $link The link array.\n\t\t *\n\t\t * @api string $link_output The output string.\n\t\t */\n\n\t\treturn \\apply_filters( 'wpseo_breadcrumb_single_link', $link, $breadcrumb );\n\t}", "function themeblvd_breadcrumbs(){\n\t\n\tif(function_exists('bcn_display')){\n\t\n\t\techo '<div id=\"breadcrumbs\">';\n \tbcn_display();\n \techo '</div>';\n\t\n\t}\n\t\n##################################################################\n}", "function Breadcrumb2010 () {\n$pathinfo = $_SERVER[REQUEST_URI];\n$divider = \">\";\n$pre_path = \"/docs\";\n$more_path= \"/\";\n$pathinfo = chop ($pathinfo, \"/\");\n$path = split (\"/\", $pathinfo);\n print \"<span class=\\\"crumb\\\"><a href=\\\"/lib/\\\">Library Homepage</a></span>\";\n $count = count($path);\n $less = $count-1;\n\n \nif (preg_match(\"/^index\\./\",\"$path[$less]\",$matches)) \n {\n array_pop($path);\n // $count = $count-2;\n $count = count($path);\n } \n\n for ($i=1; $i<$count; $i++) {\n $dir = $path[$i];\n $fn = \"$pre_path$more_path$dir/breadcrumb.data\";\n if (file_exists($fn)) {\n if ($file = fopen(\"$fn\", \"r\")) {\n\t$line=fgetss($file,255);\n\tif (preg_match(\"/\\\"(.+)\\\"/\",$line,$matches)) { \n\t $line = preg_replace(\"/\\s+/\",\"&nbsp;\",$matches[1]); \n\t}\n\tprint \" $divider <span class=\\\"crumb\\\"><a href=\\\"$more_path$dir/\\\">$line</a></span>\";\n\tfclose($file);\n } // end if file opens\n } //end if file exists\n $more_path .= \"$dir/\";\n } // end for\n}", "function wpcoupon_get_wc_breadcrumb( $args = array() ) {\r\n $args = wp_parse_args( $args, apply_filters( 'woocommerce_breadcrumb_defaults', array(\r\n 'delimiter' => ' &gt; ',\r\n 'wrap_before' => '<div class=\"ui breadcrumb breadcrumbs\" xmlns:v=\"http://rdf.data-vocabulary.org/#\">',\r\n 'wrap_after' => '</div>',\r\n 'before' => '<span>',\r\n 'after' => '</span>',\r\n 'home' => _x( 'Home', 'breadcrumb', 'wp-coupon' )\r\n ) ) );\r\n\r\n $breadcrumbs = new WC_Breadcrumb();\r\n\r\n if ( $args['home'] ) {\r\n $breadcrumbs->add_crumb( $args['home'], apply_filters( 'woocommerce_breadcrumb_home_url', home_url() ) );\r\n $breadcrumbs->add_crumb( _x( 'Shop', 'breadcrumb', 'wp-coupon' ), get_permalink( wc_get_page_id( 'shop' ) ) );\r\n }\r\n\r\n $args['breadcrumb'] = $breadcrumbs->generate();\r\n\r\n extract( $args );\r\n $html = '';\r\n\r\n if ( ! empty( $breadcrumb ) ) {\r\n\r\n $html .= $wrap_before;\r\n\r\n foreach ( $breadcrumb as $key => $crumb ) {\r\n\r\n $html .= $before;\r\n\r\n if ( ! empty( $crumb[1] ) && sizeof( $breadcrumb ) !== $key + 1 ) {\r\n $html .= '<a href=\"' . esc_url( $crumb[1] ) . '\">' . esc_html( $crumb[0] ) . '</a>';\r\n } else {\r\n $html .= esc_html( $crumb[0] );\r\n }\r\n\r\n $html .= $after;\r\n\r\n if ( sizeof( $breadcrumb ) !== $key + 1 ) {\r\n $html .= $delimiter;\r\n }\r\n\r\n }\r\n\r\n $html .= $wrap_after;\r\n\r\n }\r\n\r\n return $html;\r\n\r\n}", "function simple_pages_display_breadcrumbs($pageId = null, $seperator=' > ', $includePage=true)\n{\n $html = '';\n\n if ($pageId === null) {\n $page = get_current_record('simple_pages_page', false);\n } else {\n $page = get_db()->getTable('SimplePagesPage')->find($pageId);\n }\n\n if ($page) {\n $ancestorPages = get_db()->getTable('SimplePagesPage')->findAncestorPages($page->id);\n $bPages = array_merge(array($page), $ancestorPages);\n\n // make sure all of the ancestors and the current page are published\n foreach($bPages as $bPage) {\n if (!$bPage->is_published) {\n $html = '';\n return $html;\n }\n }\n\n // find the page links\n $pageLinks = array();\n foreach($bPages as $bPage) {\n if ($bPage->id == $page->id) {\n if ($includePage) {\n $pageLinks[] = html_escape($bPage->title);\n }\n } else {\n $pageLinks[] = '<a href=\"' . public_url($bPage->slug) . '\">' . html_escape($bPage->title) . '</a>';\n }\n }\n $pageLinks[] = '<a href=\"'. public_url('') . '\">' . __('Home') . '</a>';\n\n // create the bread crumb\n $html .= implode(html_escape($seperator), array_reverse($pageLinks));\n }\n return $html;\n}", "function get_breadcrumb() {\n echo '<a href=\"'.home_url().'\" rel=\"nofollow\">Home</a>';\n if (is_category() || is_single()) {\n echo \"&nbsp;&nbsp;&#187;&nbsp;&nbsp;\";\n the_category(' &bull; ');\n if (is_single()) {\n echo \" &nbsp;&nbsp;&#187;&nbsp;&nbsp; \";\n the_title();\n }\n } elseif (is_page()) {\n echo \"&nbsp;&nbsp;&#187;&nbsp;&nbsp;\";\n echo the_title();\n }\n}", "public function breadCrumbs()\n {\n $menu = Menu::new()\n ->addClass('m-subheader__breadcrumbs m-nav m-nav--inline')\n ->add(\n Link::toRoute('home', '<i class=\"m-nav__link-icon la la-home\"></i>')\n ->addClass('m-nav__link m-nav__link--icon')\n ->addParentClass('m-nav__item m-nav__item--home')\n )\n ;\n\n foreach ($this->crumbs($this->sections()) as $item) {\n $menu\n ->add(\n Html::raw('>')\n ->addParentClass('m-nav__separator')\n )\n ->add(\n Link::to($item['link'], '<span class=\"m-nav__link-text\">'. $item['text'] . '</span>')\n ->addClass('m-nav__link')\n ->addParentClass('m-nav__item')\n )\n ;\n }\n\n return $menu;\n }", "function opensky_collection_breadcrumb($params) {\n $collection = $params['collection']; \n $dc_array = opensky_get_dc_array($collection);\n $filter_string = $dc_array['dc:title']['value'];\n \n // Remove filter array for collection breadcrumb link\n $query = array();\n \n $query_diff = $params;\n \n if (isset($query_diff['f'])) {\n unset($query_diff['f']);\n }\n \n // Set attributes variable.\n $attr = array();\n $attr['title'] = $filter_string;\n $attr['rel'] = 'nofollow';\n if (isset($exclude) && $exclude) {\n $attr['class'] = 'strikethrough';\n }\n // remove query from path if there is one\n // $attr['href'] = url(ISLANDORA_SOLR_SEARCH_PATH, array('query' => $query_diff));\n $attr['href'] = url('/islandora/search', array('query' => $query_diff));\n \n // Pull out filter (for x link).\n $query_x = array(); // query will be like current except it will not have collection param\n foreach ($params as $key => $value) {\n if ($key != 'collection' && $value == $collection) $query_x[$key] = $value;\n }\n\n $attr_x = array();\n $attr_x['title'] = t('Remove') . ' ' . $filter_string;\n $attr_x['rel'] = 'nofollow';\n $attr_x['href'] = url(current_path(), array('query' => $query_x));\n \n $breadcrumb = '<a' . drupal_attributes($attr) . '>' . check_plain($filter_string) . '</a>'\n . '<span class=\"islandora-solr-breadcrumb-super collection-crumb\"> <a' . drupal_attributes($attr_x) . '>('\n . t('x') . ')</a></span>';\n return $breadcrumb;\n}", "function simple_breadcrumb() {\n global $post;\n global $staticVars;\n // print_r(has_term($staticVars['industryNewTypeID'], 'new-type', $post));exit;\n $sep = ' / ';\n\techo '<a href=\"'.pll_home_url().'\">'.pll__('Lietuvos kino centras').'</a>'.$sep;\n\t//echo '<a href=\"'.pll_home_url().'\">'.get_bloginfo('name').'</a>'.$sep;\n\n/*\tif ( is_category() || is_single() ) {\n\t\tthe_category(', ');\n\t\tif ( is_single() ) {\n\t\t\techo $sep;\n\t\t\tthe_title();\n\t\t}*/\n\n\tif (is_single()) {\n\t\tif(get_post_type() == 'post'){\n\t\t\tif(has_term($staticVars['industryNewTypeID'], 'new-type', $post)){\n\t\t\t\t$news_link = $staticVars['industryNewsUrl'];\n\t\t\t\t$news_link_text = pll__('Industrijos naujienos');\n\t\t\t} else {\n\t\t\t\t$news_link = $staticVars['newsUrl'];\n\t\t\t\t$news_link_text = pll__('Naujienos');\n\t\t\t}\n\t\t\techo '<a href=\"'.$news_link.'\">';\n\t\t\techo $news_link_text;\n\t\t\techo \"</a>\";\n\t\t} elseif(get_post_type() == 'interesting-fact') {\n\n\t\t\t$pages = get_pages(array(\n\t\t\t 'meta_key' => '_wp_page_template',\n\t\t\t 'meta_value' => 'page-templates/interesting_facts.php',\n\t\t\t 'lang' => pll_current_language('slug')\n\t\t\t //'hierarchical' => 0\n\t\t\t));\n\t\t\t//print_r($pages);\n\n\t\t\techo '<a href=\"'.get_permalink($pages[0]->ID).'\">';\n\t\t\tpll_e('Įdomūs faktai');\n\t\t\techo \"</a>\";\n\t\t} elseif(get_post_type() == 'tribe_events'){\n\t\t\t$url = $staticVars['eventsUrl'];\n\t\t\techo '<a href=\"'.$url.'\">'.pll__('Renginiai').'</a>';\n\t\t} elseif(get_post_type() == 'education-resource'){\n\t\t\t$url = $staticVars['educationResourceUrl'];\n\t\t\t$title = get_the_title(kcsite_getPageByTempate('education_list.php'));\n\t\t\techo '<a href=\"'.$url.'\">'.$title.'</a>';\n\t\t} elseif(get_post_type() == 'film'){\n $url = get_permalink($staticVars['filmRegisterSearchPageId']);\n $title = get_the_title($staticVars['filmRegisterSearchPageId']);\n echo '<a href=\"'.$url.'\">'.$title.'</a>';\n } elseif(get_post_type() == 'lithfilm'){\n\t\t\t$url = get_permalink($staticVars['lithuanianFilmsSearchPageId']);\n\t\t\t$title = get_the_title($staticVars['lithuanianFilmsSearchPageId']);\n\t\t\techo '<a href=\"'.$url.'\">'.$title.'</a>';\n\t\t}\n\t\techo $sep;\n\t\tthe_title();\n\n\t} elseif(!is_single() && get_post_type() == 'tribe_events'){ //event calendar view\n\t\tpll_e('Renginiai');\n\t} elseif ( is_page() && $post->post_parent ) {\n\t\t\n\t\t//checkiing home page is not needed, but dos make no difference, so left\n\t\t$home = get_page_by_title('home');\n\t\t//show all ancestors (parent pages)\n\t\tfor ($i = count($post->ancestors)-1; $i >= 0; $i--) {\n\t\t\tif (($home->ID) != ($post->ancestors[$i])) {\n\t\t\t\techo '<a href=\"';\n\t\t\t\techo get_permalink($post->ancestors[$i]); \n\t\t\t\techo '\">';\n\t\t\t\techo get_the_title($post->ancestors[$i]);\n\t\t\t\techo \"</a>\".$sep;\n\t\t\t}\n\t\t}\n\t\techo the_title();\n\t} elseif (is_page()) {\n\t\techo the_title();\n\t} elseif (is_404()) {\n\t\techo of_get_option_by_lang('kcsite_404_page_title');\n\t}\n}", "function phptemplate_breadcrumb($breadcrumb) {\n if (!empty($breadcrumb)) {\n return '<div class=\"breadcrumb\">'. implode(' › ', $breadcrumb) .'</div>';\n }\n}", "function phptemplate_breadcrumb($breadcrumb) {\n if (!empty($breadcrumb)) {\n return '<div class=\"breadcrumb\">'. implode(' › ', $breadcrumb) .'</div>';\n }\n}", "function breadcrumbs($separator = ' &raquo; ', $home = 'Home') {\n $path = array_filter(explode('/', parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)));\n\n // This will build our \"base URL\" ... Also accounts for HTTPS :)\n $base = ($_SERVER['HTTPS'] ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . '/';\n\n // Initialize a temporary array with our breadcrumbs. (starting with our home page, which I'm assuming will be the base URL)\n $breadcrumbs = array(\"<a href=\\\"$base\\\">$home</a>\");\n\n // Initialize crumbs to track path for proper link\n $crumbs = '';\n\n // Find out the index for the last value in our path array\n $last = @end(array_keys($path));\n\n // Build the rest of the breadcrumbs\n foreach ($path as $x => $crumb) {\n // Our \"title\" is the text that will be displayed (strip out .php and turn '_' into a space)\n $title = ucwords(str_replace(array('.php', '_', '%20'), array('', ' ', ' '), $crumb));\n\n // If we are not on the last index, then display an <a> tag\n if ($x != $last) {\n $breadcrumbs[] = \"<a href=\\\"$base$crumbs$crumb\\\">$title</a>\";\n $crumbs .= $crumb . '/';\n }\n // Otherwise, just display the title (minus)\n else {\n $breadcrumbs[] = $title;\n }\n\n }\n\n // Build our temporary array (pieces of bread) into one big string :)\n return implode($separator, $breadcrumbs);\n}", "public function breadcrumbs($crumbs) {\n $result = \"\";\n $home = array('controller' => 'pages', 'action' => 'display', 'home');\n $target = \"<i class='icon-home'></i>\";\n\n $result .= \"<nav class='breadcrumbs'>\n <ul>\";\n $result .= \" <li>\" . $this->Html->link($target, $home, array('escape' => false, 'title' => 'Home')) . \"</li>\";\n $size = count($crumbs);\n foreach ($crumbs as $i => $crumb) {\n if ($i == $size - 1) {\n $result .= \" <li class='active'>\";\n } else {\n $result .= \" <li>\";\n }\n if (isset($crumb['link'])) {\n $result .= $this->Html->link($crumb['text'], $crumb['link'], array('escape' => false, 'title' => $crumb['text'])) . \"</li>\";\n } else {\n $result .= $crumb['text'] . \"</li>\";\n }\n }\n\n $result .= \" </ul>\n </nav>\";\n return $result;\n }", "function custom_breadcrumbs() {\n\n // Settings\n $breadcrums_id = 'breadcrumbs';\n $breadcrums_class = 'breadcrumbs';\n $home_title = 'TOP';\n\n // If you have any custom post types with custom taxonomies, put the taxonomy name below (e.g. care_cat)\n $custom_taxonomy = 'knowledge-cat';\n\n // Get the query & post information\n global $post;\n\n // Do not display on the Home\n if ( !is_front_page() ) {\n\n // Build the breadcrums\n echo '<ul id=\"' . $breadcrums_id . '\" class=\"' . $breadcrums_class . '\">';\n\n // Home page\n echo '<li class=\"item-home\"><a class=\"bread-link bread-home\" href=\"' . get_home_url() . '\" title=\"' . $home_title . '\"><i class=\"fa fa-home\" aria-hidden=\"true\"></i>' . $home_title . '</a></li>';\n\n if ( is_archive() && !is_tax() && !is_category() && !is_tag() ) {\n\n echo '<li class=\"item-current item-archive\"><strong class=\"bread-current bread-archive\">' . post_type_archive_title($prefix, false) . '</strong></li>';\n\n } else if ( is_archive() && is_tax() && !is_category() && !is_tag() ) {\n\n // If post is a custom post type\n $post_type = get_post_type();\n\n // If it is a custom post type display name and link\n \t\t\t\t\t\t if($post_type == 'post') {\n $post_type_object = get_post_type_object($post_type);\n\n\t\t\t\t\t\t\t $post_type_archive_label = \"整骨院・接骨院・整体・鍼灸院\";\n\t\t\t\t\t\t\t\t$post_type_archive_link = get_category_link(get_category_by_slug('clinic')->term_id);\n\n echo '<li class=\"item-cat item-custom-post-type-' . $post_type . '\"><a class=\"bread-cat bread-custom-post-type-' . $post_type . '\" href=\"' . $post_type_archive_link . '\" title=\"' . $post_type_archive_label . '\">' . $post_type_archive_label . '</a></li>';\n }\n\n $custom_tax_name = get_queried_object()->name;\n echo '<li class=\"item-current item-archive\"><strong class=\"bread-current bread-archive\">' . $custom_tax_name . '</strong></li>';\n\n } else if ( is_single() ) {\n\n // If post is a custom post type\n $post_type = get_post_type();\n\n if( $post_type == 'post' ) {\n $clinic_cat = get_the_category(get_the_ID())[0];\n $post_type_archive_label = $clinic_cat->name;\n $post_type_archive_link = get_category_link($clinic_cat->term_id);\n echo '<li class=\"item-cat item-custom-post-type-' . $post_type . '\"><a class=\"bread-cat bread-custom-post-type-' . $post_type . '\" href=\"' . $post_type_archive_link . '\" title=\"' . $post_type_archive_label . '\">' . $post_type_archive_label . '</a></li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if( $post_type == 'hikikomori' || $post_type == 'violence' || $post_type == 'voice' || $post_type == 'question' ) {\n $clinic_id = $clinic_page->ID;\n $clinic_cat = get_the_category($clinic_id)[0];\n $post_type_archive_label = $clinic_cat->name;\n $post_type_archive_link = get_category_link($clinic_cat->term_id);\n echo '<li class=\"item-cat item-custom-post-type-' . $post_type . '\"><a class=\"bread-cat bread-custom-post-type-' . $post_type . '\" href=\"' . $post_type_archive_link . '\" title=\"' . $post_type_archive_label . '\">' . $post_type_archive_label . '</a></li>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t$post_type_object = get_post_type_object($post_type);\n\t\t\t\t\t\t\t\t$post_type_archive_label = $post_type_object->label;\n\t\t\t\t\t\t\t\t$post_type_archive_link = get_post_type_archive_link( $post_type );\n\t\t\t\t\t\t\t\techo '<li class=\"item-cat item-custom-post-type-' . $post_type . '\"><a class=\"bread-cat bread-custom-post-type-' . $post_type . '\" href=\"' . $post_type_archive_link . '\" title=\"' . $post_type_archive_label . '\">' . $post_type_archive_label . '</a></li>';\n\t\t\t\t\t\t\t}\n\n // Get post category info\n $category = get_the_category();\n\n if(!empty($category)) {\n\n // Get last category post is in\n $last_category = end(array_values($category));\n\n // Get parent any categories and create array\n $get_cat_parents = rtrim(get_category_parents($last_category->term_id, true, ','),',');\n $cat_parents = explode(',',$get_cat_parents);\n\n // Loop through parent categories and store in variable $cat_display\n $cat_display = '';\n // foreach($cat_parents as $parents) {\n \t\t\t\t\t\t\t\t// \t $cat_display .= '<li class=\"item-cat\">'.$parents.'</li>';\n // }\n \t\t\t\t\t\t\t\t $cat_display .= '<li class=\"item-cat\">'.$cat_parents[0].'</li>';\n\n }\n\n // If it's a custom post type within a custom taxonomy\n $taxonomy_exists = taxonomy_exists($custom_taxonomy);\n if(empty($last_category) && !empty($custom_taxonomy) && $taxonomy_exists) {\n\n $taxonomy_terms = get_the_terms( $post->ID, $custom_taxonomy );\n $cat_id = $taxonomy_terms[0]->term_id;\n $cat_nicename = $taxonomy_terms[0]->slug;\n $cat_link = get_term_link($taxonomy_terms[0]->term_id, $custom_taxonomy);\n $cat_name = $taxonomy_terms[0]->name;\n\n }\n\n // Check if the post is in a category\n if(!empty($last_category)) {\n // echo $cat_display;\n echo '<li class=\"item-current item-' . $post->ID . '\"><strong class=\"bread-current bread-' . $post->ID . '\" title=\"' . get_the_title() . '\">' . get_the_title() . '</strong></li>';\n\n // Else if post is in a custom taxonomy\n } else if(!empty($cat_id)) {\n\n echo '<li class=\"item-cat item-cat-' . $cat_id . ' item-cat-' . $cat_nicename . '\"><a class=\"bread-cat bread-cat-' . $cat_id . ' bread-cat-' . $cat_nicename . '\" href=\"' . $cat_link . '\" title=\"' . $cat_name . '\">' . $cat_name . '</a></li>';\n echo '<li class=\"item-current item-' . $post->ID . '\"><strong class=\"bread-current bread-' . $post->ID . '\" title=\"' . get_the_title() . '\">' . get_the_title() . '</strong></li>';\n\n } else {\n\n echo '<li class=\"item-current item-' . $post->ID . '\"><strong class=\"bread-current bread-' . $post->ID . '\" title=\"' . get_the_title() . '\">' . get_the_title() . '</strong></li>';\n\n }\n\n } else if ( is_category() ) {\n\n // Category page\n echo '<li class=\"item-current item-cat\"><strong class=\"bread-current bread-cat\">' . single_cat_title('', false) . '</strong></li>';\n\n } else if ( is_page() ) {\n\n // Standard page\n if( $post->post_parent ){\n\n // If child page, get parents\n $anc = get_post_ancestors( $post->ID );\n\n // Get parents in the right order\n $anc = array_reverse($anc);\n\n // Parent page loop\n foreach ( $anc as $ancestor ) {\n $parents .= '<li class=\"item-parent item-parent-' . $ancestor . '\"><a class=\"bread-parent bread-parent-' . $ancestor . '\" href=\"' . get_permalink($ancestor) . '\" title=\"' . get_the_title($ancestor) . '\">' . get_the_title($ancestor) . '</a></li>';\n }\n\n // Display parent pages\n echo $parents;\n\n // Current page\n echo '<li class=\"item-current item-' . $post->ID . '\"><strong title=\"' . get_the_title() . '\"> ' . get_the_title() . '</strong></li>';\n\n } else {\n\n // Just display current page if not parents\n echo '<li class=\"item-current item-' . $post->ID . '\"><strong class=\"bread-current bread-' . $post->ID . '\"> ' . get_the_title() . '</strong></li>';\n\n }\n\n } else if ( is_tag() ) {\n // Tag page\n // Get tag information\n $term_id = get_query_var('tag_id');\n $taxonomy = 'post_tag';\n $args = 'include=' . $term_id;\n $terms = get_terms( $taxonomy, $args );\n $get_term_id = $terms[0]->term_id;\n $get_term_slug = $terms[0]->slug;\n $get_term_name = $terms[0]->name;\n\n // Display the tag name\n echo '<li class=\"item-current item-tag-' . $get_term_id . ' item-tag-' . $get_term_slug . '\"><strong class=\"bread-current bread-tag-' . $get_term_id . ' bread-tag-' . $get_term_slug . '\">' . $get_term_name . '</strong></li>';\n\n } elseif ( is_day() ) {\n // Day archive\n\n // Year link\n echo '<li class=\"item-year item-year-' . get_the_time('Y') . '\"><a class=\"bread-year bread-year-' . get_the_time('Y') . '\" href=\"' . get_year_link( get_the_time('Y') ) . '\" title=\"' . get_the_time('Y') . '\">' . get_the_time('Y') . ' Archives</a></li>';\n\n // Month link\n echo '<li class=\"item-month item-month-' . get_the_time('m') . '\"><a class=\"bread-month bread-month-' . get_the_time('m') . '\" href=\"' . get_month_link( get_the_time('Y'), get_the_time('m') ) . '\" title=\"' . get_the_time('M') . '\">' . get_the_time('M') . ' Archives</a></li>';\n\n // Day display\n echo '<li class=\"item-current item-' . get_the_time('j') . '\"><strong class=\"bread-current bread-' . get_the_time('j') . '\"> ' . get_the_time('jS') . ' ' . get_the_time('M') . ' Archives</strong></li>';\n\n } else if ( is_month() ) {\n\n // Month Archive\n\n // Year link\n echo '<li class=\"item-year item-year-' . get_the_time('Y') . '\"><a class=\"bread-year bread-year-' . get_the_time('Y') . '\" href=\"' . get_year_link( get_the_time('Y') ) . '\" title=\"' . get_the_time('Y') . '\">' . get_the_time('Y') . ' Archives</a></li>';\n\n // Month display\n echo '<li class=\"item-month item-month-' . get_the_time('m') . '\"><strong class=\"bread-month bread-month-' . get_the_time('m') . '\" title=\"' . get_the_time('M') . '\">' . get_the_time('M') . ' Archives</strong></li>';\n\n } else if ( is_year() ) {\n\n // Display year archive\n echo '<li class=\"item-current item-current-' . get_the_time('Y') . '\"><strong class=\"bread-current bread-current-' . get_the_time('Y') . '\" title=\"' . get_the_time('Y') . '\">' . get_the_time('Y') . ' Archives</strong></li>';\n\n } else if ( is_author() ) {\n\n // Auhor archive\n\n // Get the author information\n global $author;\n $userdata = get_userdata( $author );\n\n // Display author name\n echo '<li class=\"item-current item-current-' . $userdata->user_nicename . '\"><strong class=\"bread-current bread-current-' . $userdata->user_nicename . '\" title=\"' . $userdata->display_name . '\">' . 'Author: ' . $userdata->display_name . '</strong></li>';\n\n } else if ( get_query_var('paged') && !is_search() ) {\n\n // Paginated archives\n echo '<li class=\"item-current item-current-' . get_query_var('paged') . '\"><strong class=\"bread-current bread-current-' . get_query_var('paged') . '\" title=\"Page ' . get_query_var('paged') . '\">'.__('Page') . ' ' . get_query_var('paged') . '</strong></li>';\n\n } else if ( is_search() ) {\n\n // Search results page\n echo '<li class=\"item-current item-current-' . get_search_query() . '\"><strong class=\"bread-current bread-current-' . get_search_query() . '\" title=\"検索結果: ' . get_search_query() . '\">検索結果: ' . get_search_query() . '</strong></li>';\n\n } elseif ( is_404() ) {\n\n // 404 page\n echo '<li>' . 'Error 404' . '</li>';\n }\n echo '</ul>';\n }\n }" ]
[ "0.78742605", "0.6940647", "0.6828302", "0.6722977", "0.6680191", "0.6576729", "0.6526808", "0.6526569", "0.6524835", "0.6484299", "0.64665407", "0.6447703", "0.6420537", "0.6396462", "0.63962245", "0.6392872", "0.6359545", "0.6356532", "0.6334227", "0.6310826", "0.629613", "0.6259243", "0.6259243", "0.6230913", "0.6223129", "0.62068844", "0.6199378", "0.6188997", "0.6188408", "0.6176196", "0.6162474", "0.615353", "0.6134002", "0.6133362", "0.6117242", "0.6107474", "0.60973465", "0.6087961", "0.6085456", "0.6081044", "0.60742825", "0.6019607", "0.60141504", "0.6008165", "0.6006886", "0.60037524", "0.59933156", "0.59697235", "0.59678495", "0.5952741", "0.5935851", "0.59328896", "0.59117323", "0.58959633", "0.5885361", "0.5884585", "0.588096", "0.58745474", "0.5858472", "0.5854913", "0.5853087", "0.5847192", "0.58354485", "0.58347714", "0.58333415", "0.58279693", "0.5826775", "0.5826706", "0.5825663", "0.5824282", "0.58134496", "0.5812119", "0.5805088", "0.58001965", "0.57914484", "0.57759374", "0.57735306", "0.5768775", "0.57534635", "0.5743079", "0.57333225", "0.57214564", "0.57191813", "0.5718273", "0.5715357", "0.5712822", "0.570981", "0.56812525", "0.5663746", "0.56472605", "0.5645979", "0.5642294", "0.56351405", "0.5628555", "0.562466", "0.56181306", "0.56181306", "0.56148493", "0.5613545", "0.5603547" ]
0.6550572
6
Display post navigation (next/prev) in single.
function circle_post_navigation() { get_template_part( 'template-parts/post-navigation' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function voyage_mikado_get_single_post_navigation_template() {\n $params = array();\n\n $in_same_term = voyage_mikado_options()->getOptionValue('blog_navigation_through_same_category') === 'yes';\n\n $prev_post = get_previous_post($in_same_term);\n $next_post = get_next_post($in_same_term);\n $params['has_prev_post'] = false;\n $params['has_next_post'] = false;\n\n if($prev_post) {\n $params['prev_post_object'] = $prev_post;\n $params['has_prev_post'] = true;\n $params['prev_post'] = array(\n 'title' => get_the_title($prev_post->ID),\n 'link' => get_the_permalink($prev_post->ID),\n 'image' => get_the_post_thumbnail($prev_post->ID, 'thumbnail')\n );\n\n $params['prev_post_has_image'] = !empty($params['prev_post']['image']);\n }\n\n if($next_post) {\n $params['next_post_object'] = $next_post;\n $params['has_next_post'] = true;\n $params['next_post'] = array(\n 'title' => get_the_title($next_post->ID),\n 'link' => get_the_permalink($next_post->ID),\n 'image' => get_the_post_thumbnail($next_post->ID, 'thumbnail')\n );\n\n $params['next_post_has_image'] = !empty($params['next_post']['image']);\n }\n\n voyage_mikado_get_module_template_part('templates/single/parts/single-navigation', 'blog', '', $params);\n }", "function post_navigation() {\n\t\techo '<div class=\"navigation\">';\n\t\techo '\t<div class=\"next-posts\">'.get_next_posts_link('&laquo; Older Entries').'</div>';\n\t\techo '\t<div class=\"prev-posts\">'.get_previous_posts_link('Newer Entries &raquo;').'</div>';\n\t\techo '</div>';\n\t}", "function post_navigation() {\n\t\techo '<div class=\"navigation\">';\n\t\techo '\t<div class=\"next-posts\">'.get_next_posts_link('&laquo; Older Entries').'</div>';\n\t\techo '\t<div class=\"prev-posts\">'.get_previous_posts_link('Newer Entries &raquo;').'</div>';\n\t\techo '</div>';\n\t}", "function single_posts_nav() {\n \n $prev_post = get_previous_post();\n $next_post = get_next_post();\n ?>\n <nav class=\"single-box clearfix nav-single\">\n <?php if ( !empty( $prev_post ) ) { ?>\n <div class=\"nav-previous\">\n <?php previous_post_link ( '%link', '<i class=\"icomoon-chevron-left\"></i><span class=\"nav-title\">' . __( 'Artículo anterior', 'themetext' ) . '</span>%title', TRUE ); ?>\n </div>\n <?php } ?>\n\n <?php if ( !empty( $next_post ) ){ ?>\n <div class=\"nav-next\">\n <?php next_post_link( '%link', '<i class=\"icomoon-chevron-right\"></i><span class=\"nav-title\">' . __( 'Siguiente artículo', 'themetext' ) . '</span>%title', TRUE ); ?>\n </div>\n <?php } ?>\n </nav><!-- .nav-single -->\n\n <?php\n}", "function medigroup_mikado_get_single_post_navigation_template() {\n $params = array();\n\n $in_same_term = medigroup_mikado_options()->getOptionValue('blog_navigation_through_same_category') === 'yes';\n\n $prev_post = get_previous_post($in_same_term);\n $next_post = get_next_post($in_same_term);\n $params['has_prev_post'] = false;\n $params['has_next_post'] = false;\n\n if($prev_post) {\n $params['prev_post_object'] = $prev_post;\n $params['has_prev_post'] = true;\n $params['prev_post'] = array(\n 'title' => get_the_title($prev_post->ID),\n 'link' => get_the_permalink($prev_post->ID)\n );\n }\n\n if($next_post) {\n $params['next_post_object'] = $next_post;\n $params['has_next_post'] = true;\n $params['next_post'] = array(\n 'title' => get_the_title($next_post->ID),\n 'link' => get_the_permalink($next_post->ID)\n );\n }\n\n medigroup_mikado_get_module_template_part('templates/single/parts/single-navigation', 'blog', '', $params);\n }", "function thb_single_next_custom_pagination() {\n\t\t$post = get_next_post();\n\n\t\tif ( $post == '' ) {\n\t\t\treturn;\n\t\t}\n\n\t\techo \"<div class='thb-single-next-nav-wrapper'>\";\n\t\t\techo \"<a href='\" . get_permalink( $post->ID ) . \"'>\";\n\t\t\t\techo \"<span>\" . __( 'Next post', 'thb_text_domain' ) . \"</span>\";\n\t\t\t\techo \"<p class='thb-single-nav-title'>\" . thb_text_format( esc_html( $post->post_title ) ) . \"</p>\";\n\t\t\techo \"</a>\";\n\t\techo \"</div>\";\n\t}", "function pb_single_next_prev() {\n\t// Only show on single post pages (not plants)\n\tif( !is_singular('post') ) {\n\t\treturn;\n\t}\n\n\t$previouspost_text = __( 'Older Posts', 'lean-kickstart' );\n\t$nextpost_text = __( 'Newer Posts', 'lean-kickstart' );\n\n\techo '<div class=\"archive-pagination pagination\">';\n\t\tprevious_post_link( '<div class=\"pagination-previous alignleft\">%link</div>', $previouspost_text );\n\t\tnext_post_link( '<div class=\"pagination-next alignright\">%link</div>', $nextpost_text );\n\techo '</div>';\n}", "function storefront_post_nav() {\n $args = array(\n 'next_text' => '<span class=\"screen-reader-text\">' . esc_html__( 'Next post:', 'storefront' ) . ' </span>%title',\n 'prev_text' => '<span class=\"screen-reader-text\">' . esc_html__( 'Previous post:', 'storefront' ) . ' </span>%title',\n );\n // the_post_navigation( $args );\n}", "function orbital_post_nav() {\n \n $previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true );\n $next = get_adjacent_post( false, '', false );\n \n if ( ! $next && ! $previous ) { return; } ?>\n \n <nav class=\"nav--posts\">\n \n <?php\n previous_post_link( '<div class=\"nav__previous\">%link</div>', _x( '<span class=\"meta-nav\">&larr;</span>&nbsp;%title', 'Previous post link', 'rj' ) );\n next_post_link( '<div class=\"nav__next\">%link</div>', _x( '%title&nbsp;<span class=\"meta-nav\">&rarr;</span>', 'Next post link', 'rj' ) );\n ?>\n \n </nav>\n \n <?php\n}", "function honeycomb_post_nav() {\n\t\t$args = array(\n\t\t\t'next_text' => '%title',\n\t\t\t'prev_text' => '%title',\n\t\t\t);\n\t\tthe_post_navigation( $args );\n\t}", "function thb_single_prev_custom_pagination() {\n\t\t$post = get_previous_post();\n\n\t\tif ( $post == '' ) {\n\t\t\treturn;\n\t\t}\n\n\t\techo \"<div class='thb-single-previous-nav-wrapper'>\";\n\t\t\techo \"<a href='\" . get_permalink( $post->ID ) . \"'>\";\n\t\t\t\techo \"<span>\" . __( 'Previous post', 'thb_text_domain' ) . \"</span>\";\n\t\t\t\techo \"<p class='thb-single-nav-title'>\" . thb_text_format( esc_html( $post->post_title ) ) . \"</p>\";\n\t\t\techo \"</a>\";\n\t\techo \"</div>\";\n\t}", "public static function next_post_link () : void\n {\n add_filter(\"next_post_link\", function ($output) {\n $nextPost = get_adjacent_post(false, '', false);\n\n if ($nextPost !== '') {\n $nextPostTitle = strlen(get_the_title($nextPost)) > 30 ? substr(get_the_title($nextPost), 0, 30) . \"...\" : get_the_title($nextPost);\n\n $output = '<div class=\"detials\">';\n $output .= '<p>' . __(\"Next Post\", \"dingo\") . '</p>';\n $output .= '<a href=\"' . get_the_permalink($nextPost). '\"><h4>' . $nextPostTitle . '</h4></a>';\n $output .= '</div>';\n \n $output .= '<div class=\"arrow\">';\n $output .= '<a href=\"' . get_the_permalink($nextPost). '\"><span class=\"lnr text-white ti-arrow-right\"></span></a>';\n $output .= '</div>';\n \n $output .= '<div class=\"thumb\">';\n $output .= '<a href=\"' . get_the_permalink($nextPost). '\">' . get_the_post_thumbnail($nextPost, \"pagination_between_post\", [\"class\" => \"img-fluid\"]) . '</a>';\n $output .= '</div>';\n } else {\n $output = '';\n }\n\n return $output;\n });\n }", "function travomath_post_navigation(){\n\t\n\t$nav = '<div class=\"row\">';\n\t\n\t$prev = get_previous_post_link( '<div class=\"post-link-nav\"><span class=\"sunset-icon sunset-chevron-left\" aria-hidden=\"true\"></span> %link</div>', '%title' );\n\t$nav .= '<div class=\"col-xs-12 col-sm-6\">' . $prev . '</div>';\n\t\n\t$next = get_next_post_link( '<div class=\"post-link-nav\">%link <span class=\"sunset-icon sunset-chevron-right\" aria-hidden=\"true\"></span></div>', '%title' );\n\t$nav .= '<div class=\"col-xs-12 col-sm-6 text-right\">' . $next . '</div>';\n\t\n\t$nav .= '</div>';\n\t\n\treturn $nav;\n\t\n}", "public static function next_prev_item() {\n\t\t\t$cpt = self::get_post_type();\n\t\t\t$tax = ( $cpt === 'post' ) ? 'category' : $cpt . '_cat';\n\t\t\t$prevPost = get_previous_post( true, '', $tax ) ? get_previous_post( true, '', $tax ) : get_previous_post();\n\t\t\t$nextPost = get_next_post( true, '', $tax ) ? get_next_post( true, '', $tax ) : get_next_post();\n\n\t\t\tob_start();\n\t\t\tif ( $prevPost || $nextPost ) { ?>\n\t\t\t\t<ul class=\"next_prev clr\">\n\t\t\t\t\t<?php if( $prevPost ) { ?>\n\t\t\t\t\t\t<li class=\"previous\">\n\t\t\t\t\t\t\t<?php $prevthumbnail = get_the_post_thumbnail( $prevPost->ID, 'thumbnail' ); ?>\n\t\t\t\t\t\t\t<?php previous_post_link( '%link', '<i class=\"fa fa-angle-' . ( self::$is_rtl ? 'right' : 'left' ) . '\"></i><h4><small>' . esc_html( do_shortcode( self::option( 'prev_' . $cpt, self::option( 'prev_post' ) ) ) ) . '</small>%title</h4>' ); ?>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t<?php } if( $nextPost ) { ?>\n\t\t\t\t\t\t<li class=\"next\">\n\t\t\t\t\t\t\t<?php $nextthumbnail = get_the_post_thumbnail( $nextPost->ID, 'thumbnail' ); ?>\n\t\t\t\t\t\t\t<?php next_post_link( '%link', '<h4><small>' . esc_html( do_shortcode( self::option( 'next_' . $cpt, self::option( 'next_post' ) ) ) ) . '</small>%title</h4><i class=\"fa fa-angle-' . ( self::$is_rtl ? 'left' : 'right' ) . '\"></i>' ); ?>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t<?php } \n\n\t\t\t\t\t\t$archive_icon = false; //self::option( 'next_prev_archive_icon' );\n\t\t\t\t\t\tif ( $archive_icon ) {\n\t\t\t\t\t?>\n\t\t\t\t\t<li class=\"cz-next-prev-archive\">\n\t\t\t\t\t\t<a href=\"<?php echo esc_url( get_post_type_archive_link( $cpt ) ); ?>\" title=\"<?php echo ucwords( $cpt ); ?>\"><i class=\"<?php echo esc_attr( $archive_icon ); ?>\"></i></a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<?php \n\t\t\t\t\t\t}\n\t\t\t\t\t?>\n\t\t\t\t</ul>\n\t\t\t<?php \n\t\t\t}\n\n\t\t\treturn ob_get_clean();\n\t\t}", "function twenty_twenty_one_the_posts_navigation() {\n\t\tthe_posts_pagination(\n\t\t\tarray(\n\t\t\t\t'before_page_number' => esc_html__( 'Page', 'twentytwentyone' ) . ' ',\n\t\t\t\t'mid_size' => 0,\n\t\t\t\t'prev_text' => sprintf(\n\t\t\t\t\t'%s <span class=\"nav-prev-text\">%s</span>',\n\t\t\t\t\tis_rtl() ? twenty_twenty_one_get_icon_svg( 'ui', 'arrow_right' ) : twenty_twenty_one_get_icon_svg( 'ui', 'arrow_left' ),\n\t\t\t\t\twp_kses(\n\t\t\t\t\t\t__( 'Newer <span class=\"nav-short\">posts</span>', 'twentytwentyone' ),\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'span' => array(\n\t\t\t\t\t\t\t\t'class' => array(),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\t'next_text' => sprintf(\n\t\t\t\t\t'<span class=\"nav-next-text\">%s</span> %s',\n\t\t\t\t\twp_kses(\n\t\t\t\t\t\t__( 'Older <span class=\"nav-short\">posts</span>', 'twentytwentyone' ),\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'span' => array(\n\t\t\t\t\t\t\t\t'class' => array(),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t\t\tis_rtl() ? twenty_twenty_one_get_icon_svg( 'ui', 'arrow_left' ) : twenty_twenty_one_get_icon_svg( 'ui', 'arrow_right' )\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\t}", "function classiera_post_nav() {\r\n\tglobal $post;\r\n\r\n\t// Don't print empty markup if there's nowhere to navigate.\r\n\t$previous = ( is_attachment() ) ? get_post( $post->post_parent ) : get_adjacent_post( false, '', true );\r\n\t$next = get_adjacent_post( false, '', false );\r\n\r\n\tif ( ! $next && ! $previous )\r\n\t\treturn;\r\n\t?>\r\n\t<nav class=\"navigation post-navigation\" role=\"navigation\">\r\n\t\t<h1 class=\"screen-reader-text\"><?php esc_html_e( 'Post navigation', 'classiera' ); ?></h1>\r\n\t\t<div class=\"nav-links\">\r\n\r\n\t\t\t<?php previous_post_link( '%link', _x( '<span class=\"meta-nav\">&larr;</span> %title', 'Previous post link', 'classiera' ) ); ?>\r\n\t\t\t<?php next_post_link( '%link', _x( '%title <span class=\"meta-nav\">&rarr;</span>', 'Next post link', 'classiera' ) ); ?>\r\n\r\n\t\t</div><!-- .nav-links -->\r\n\t</nav><!-- .navigation -->\r\n\t<?php\r\n}", "function theme_post_nav() {\n global $post;\n\n// Don't print empty markup if there's nowhere to navigate.\n $previous = ( is_attachment() ) ? get_post($post->post_parent) : get_adjacent_post(false, '', true);\n $next = get_adjacent_post(false, '', false);\n\n if (!$next && !$previous)\n return;\n ?>\n <nav class=\"navigation post-navigation\" role=\"navigation\">\n <h1 class=\"screen-reader-text\"><?php _e('Post navigation', 'theme'); ?></h1>\n <div class=\"nav-links\">\n\n <?php previous_post_link('%link', _x('<span class=\"meta-nav\">&larr;</span> %title', 'Previous post link', 'theme')); ?>\n <?php next_post_link('%link', _x('%title <span class=\"meta-nav\">&rarr;</span>', 'Next post link', 'theme')); ?>\n\n </div><!-- .nav-links -->\n </nav><!-- .navigation -->\n <?php\n }", "function medicalrehab_post_nav() {\r\n\r\n\t// Don't print empty markup if there's nowhere to navigate.\r\n\r\n\t$previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true );\r\n\r\n\t$next = get_adjacent_post( false, '', false );\r\n\r\n\tif ( ! $next && ! $previous ) {\r\n\r\n\t\treturn;\r\n\r\n\t}\r\n\r\n\t?>\r\n\r\n\t<nav class=\"navigation post-navigation\" role=\"navigation\">\r\n\r\n\t\t<h2 class=\"screen-reader-text\"><?php _e( 'Post navigation', 'medical-rehab' ); ?></h2>\r\n\r\n\t\t<div class=\"nav-links\">\r\n\r\n\t\t\t<?php\r\n\r\n\t\t\t\tprevious_post_link( '<div class=\"nav-previous\">%link</div>', _x( '%title', 'Previous post link', 'medical-rehab' ) );\r\n\r\n\t\t\t\tnext_post_link( '<div class=\"nav-next\">%link</div>', _x( '%title', 'Next post link', 'medical-rehab' ) );\r\n\r\n\t\t\t?>\r\n\r\n\t\t</div><!-- .nav-links -->\r\n\r\n\t</nav><!-- .navigation -->\r\n\r\n\t<?php\r\n\r\n}", "public static function previous_post_link () : void\n {\n add_filter(\"previous_post_link\", function ($output) {\n $previousPost = get_adjacent_post();\n \n if ($previousPost !== '') {\n $previousPostTitle = strlen(get_the_title($previousPost)) > 30 ? substr(get_the_title($previousPost), 0, 30) . \"...\" : get_the_title($previousPost);\n\n $output = '<div class=\"thumb\">';\n $output .= '<a href=\"' . get_the_permalink($previousPost). '\">' . get_the_post_thumbnail($previousPost, \"pagination_between_post\", [\"class\" => \"img-fluid\"]) . '</a>';\n $output .= '</div>';\n \n $output .= '<div class=\"arrow\">';\n $output .= '<a href=\"' . get_the_permalink($previousPost). '\"><span class=\"lnr text-white ti-arrow-left\"></span></a>';\n $output .= '</div>';\n \n $output .= '<div class=\"detials\">';\n $output .= '<p>' . __(\"Prev Post\", \"dingo\") . '</p>';\n $output .= '<a href=\"' . get_the_permalink($previousPost). '\"><h4>' . $previousPostTitle . '</h4></a>';\n $output .= '</div>';\n } else {\n $output = '';\n }\n \n return $output;\n });\n }", "function x_get_the_posts_navigation( $args = array() ) {\n $navigation = '';\n\n // Don't print empty markup if there's only one page.\n if ( $GLOBALS['wp_query']->max_num_pages > 1 ) {\n $args = wp_parse_args( $args, array(\n 'prev_text' => __( 'Previous page' ),\n 'next_text' => __( 'Next page' ),\n 'screen_reader_text' => __( 'Posts navigation' ),\n ) );\n\n // builtin literally assigns previous_posts_link to next_link and v.v. -_-\n $next_link = get_next_posts_link( $args['next_text'] );\n $prev_link = get_previous_posts_link( $args['prev_text'] );\n\n if ( $prev_link ) {\n $navigation .= '<div class=\"nav-previous\">' . $prev_link . '</div>';\n }\n\n if ( $next_link ) {\n $navigation .= '<div class=\"nav-next\">' . $next_link . '</div>';\n }\n\n $navigation = _navigation_markup( $navigation, 'posts-navigation', $args['screen_reader_text'] );\n }\n\n return $navigation;\n}", "function howes_post_nav() {\n\tglobal $post;\n\n\t// Don't print empty markup if there's nowhere to navigate.\n\t$previous = ( is_attachment() ) ? get_post( $post->post_parent ) : get_adjacent_post( false, '', true );\n\t$next = get_adjacent_post( false, '', false );\n\n\tif ( ! $next && ! $previous )\n\t\treturn;\n\t?>\n\t<nav class=\"navigation post-navigation\" role=\"navigation\">\n\t\t<div class=\"nav-links\">\n\t\t\t<?php previous_post_link( '%link', __( '<span class=\"meta-nav\"></span> Previous', 'howes' ) ); ?>\n\t\t\t<?php next_post_link( '%link', __( 'Next <span class=\"meta-nav\"></span>', 'howes' ) ); ?>\n\t\t</div><!-- .nav-links -->\n\t</nav><!-- .navigation -->\n\t<?php\n}", "function cera_grimlock_the_post_navigation() {\n\t\tif ( apply_filters( 'grimlock_single_post_navigation_displayed', true ) ) {\n\t\t\tthe_post_navigation();\n\t\t}\n\t}", "function cookingwp_post_nav() {\n\t// Don't print empty markup if there's nowhere to navigate.\n\t$previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true );\n\t$next = get_adjacent_post( false, '', false );\n\n\tif ( ! $next && ! $previous ) {\n\t\treturn;\n\t}\n\t?>\n\t<nav class=\"navigation post-navigation\" role=\"navigation\">\n\t\t<div class=\"nav-links\">\n\t\t\t<?php\n\t\t\t\tprevious_post_link( '<div class=\"nav-previous\">%link</div>', _x( '<span class=\"meta-nav\"><i class=\"fa fa-chevron-left\"></i></span>', 'Previous post link', 'cookingwp' ) );\n\t\t\t\tnext_post_link( '<div class=\"nav-next\">%link</div>', _x( '<span class=\"meta-nav\"><i class=\"fa fa-chevron-right\"></i></span>', 'Next post link', 'cookingwp' ) );\n\t\t\t?>\n\t\t</div><!-- .nav-links -->\n\t</nav><!-- .navigation -->\n\t<?php\n}", "function get_shows_nav( $args = '' ) {\n global $wp_query;\n\n $current_post_type = get_query_var('post_type');\n\n $defaults = array(\n 'show_notes_page' => ( isset( $_GET['show_notes_page'] ) ) ? $_GET['show_notes_page'] : 1,\n 'clip_page' => ( isset( $_GET['clip_page'] ) ) ? $_GET['clip_page'] : 1,\n 'episodes_page' => ( isset( $_GET['episodes_page'] ) ) ? $_GET['episodes_page'] : 1\n );\n\n $args = wp_parse_args($args, $defaults);\n\n $post_type_paged = $args[$current_post_type . '_page'];\n\n $max_pages = $wp_query->max_num_pages;\n\n echo \"<div class='shows_nav archive-navigation navigation' id='$current_post_type\" . \"_nav'>\";\n\n if( $post_type_paged <= $max_pages && $post_type_paged != 1 ) {\n $next_args = $args;\n $next_args[$current_post_type . '_page'] = $post_type_paged - 1;\n $next_link = '?' . http_build_query($next_args, '', '&amp;') . '#' . $current_post_type;\n\n echo \"<div class='nav-next nav-item'><a href='$next_link'> &larr; Newer</a></div>\";\n }\n\n if( $post_type_paged < $max_pages ) {\n $previous_args = $args;\n $previous_args[$current_post_type . '_page'] = $post_type_paged + 1;\n $previous_link = '?' . http_build_query($previous_args, '', '&amp;') . '#' . $current_post_type;\n\n echo \"<div class='nav-previous nav-item'><a href='$previous_link'>Older &rarr;</a></div>\";\n }\n\n echo \"</div>\";\n}", "function agilespirit_post_nav() {\n global $post;\n\n // Don't print empty markup if there's nowhere to navigate.\n $previous = ( is_attachment() ) ? get_post( $post->post_parent ) : get_adjacent_post( false, '', true );\n $next = get_adjacent_post( false, '', false );\n\n if ( ! $next && ! $previous )\n return;\n ?>\n <nav class=\"navigation post-navigation\" role=\"navigation\">\n <h1 class=\"screen-reader-text\"><?php _e( 'Post navigation', 'agilespirit' ); ?></h1>\n <div class=\"nav-links\">\n\n <?php previous_post_link( '%link', _x( '<span class=\"meta-nav\">&larr;</span> %title', 'Previous post link', 'agilespirit' ) ); ?>\n <?php next_post_link( '%link', _x( '%title <span class=\"meta-nav\">&rarr;</span>', 'Next post link', 'agilespirit' ) ); ?>\n\n </div><!-- .nav-links -->\n </nav><!-- .navigation -->\n <?php\n}", "function ivan_post_nav() {\r\n\t// Don't print empty markup if there's nowhere to navigate.\r\n\t$previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true );\r\n\t$next\t = get_adjacent_post( false, '', false );\r\n\r\n\tif ( ! $next && ! $previous ) {\r\n\t\treturn;\r\n\t}\r\n\t?>\r\n\t<nav class=\"navigation post-navigation\" role=\"navigation\">\r\n\t\t<h1 class=\"screen-reader-text\"><?php _e( 'Post navigation', 'ivan_domain' ); ?></h1>\r\n\t\t<div class=\"nav-links\">\r\n\r\n\t\t\t<?php previous_post_link( '%link', _x( '<span class=\"meta-nav\">&larr;</span> %title', 'Previous post link', 'ivan_domain' ) ); ?>\r\n\t\t\t<?php next_post_link(\t '%link', _x( '%title <span class=\"meta-nav\">&rarr;</span>', 'Next post link',\t 'ivan_domain' ) ); ?>\r\n\r\n\t\t</div><!-- .nav-links -->\r\n\t</nav><!-- .navigation -->\r\n\t<?php\r\n}", "function f3f_horizontal_nav() { \r\n\tif( get_option( 'f3_horizontal_nav', 'true' ) != 'true' )\r\n\t\treturn;\r\n\r\n\trewind_posts(); ?>\r\n\r\n\t<nav id=\"page\">\r\n\t\t<ul>\r\n\t\t<?php while ( have_posts() ) : the_post(); ?>\r\n\t\t\t<li>\r\n\t\t\t\t<h6><a href=\"#article-<?php the_ID(); ?>\"><?php the_title(); ?></a></h6>\r\n\t\t\t\t<a href=\"#article-<?php the_ID(); ?>\">Post <?php the_ID(); ?></a>\r\n\t\t\t</li>\r\n\t\t<?php endwhile; ?>\r\n\t\t</ul>\r\n\t</nav>\r\n\t<?php\r\n}", "function barjeel_content_nav( $nav_id ) {\n\tglobal $wp_query;\n\n\t?>\n\n\t<?php if ( is_single() ) : // navigation links for single posts ?>\n<ul class=\"pager\">\n\t\t<?php previous_post_link( '<li class=\"previous\">%link</li>', '<span class=\"meta-nav\">' . _x( '', 'Previous post link', 'barjeel' ) . '</span> %title', 'Next post in category', TRUE ); ?>\n\t\t<?php next_post_link( '<li class=\"next\">%link</li>', '%title <span class=\"meta-nav\">' . _x( '', 'Next post link', 'barjeel' ) . '</span>', 'Next post in category', TRUE ); ?>\n</ul>\n\n\t<?php endif; ?>\n\n\t<?php\n}", "function foucs_patination_single_posts_title() {?>\n <div class=\"prev-post\">\n <?php\n if (get_previous_post_link()) {\n previous_post_link('%link', '<i class=\"fas fa-angle-double-left\"></i> %title');\n } else {\n echo '<span class=\"prev-masg\">This is Last Post</span>';\n }\n ?>\n </div>\n <div class=\"nxt-post\">\n <?php\n if(get_next_post_link()) {\n next_post_link('%link', '%title <i class=\"fas fa-angle-double-right\"></i>');\n } else {\n echo '<span class=\"nex-masg\">This is Last Post</span>';\n }\n ?>\n </div>\n <?php\n}", "function next_post_smart( $format = '%link', $title = '%title', $fallback = true, $in_same_cat = true, $excluded_categories = '' ) {\n\treturn Smarter_Navigation::adjacent_post( $format, $title, false, $fallback, $in_same_cat, $excluded_categories );\n}", "function single_main_content() {\n \n \n // Output the main editor content\n the_content();\n\n \n // Output pagination if post uses <!--nextpage--> short tag\n $args = array(\n 'before' => '<div class=\"link-pages\"><h3 class=\"single-box-title\">' . __( 'Continue Reading', 'themetext' ) . '</h3>',\n 'after' => '</div>',\n 'link_before' => '<span>',\n 'link_after' => '</span>',\n 'nextpagelink' => '&rarr;',\n 'previouspagelink' => '&larr;',\n 'next_or_number' => 'next_and_number',\n );\n wp_link_pages( $args );\n \n}", "function bfc_custom_post_navigation() {\n\n\tif( is_singular() )\n\t\treturn;\n\n\tglobal $wp_query;\n\n\t/** Stop execution if there's only 1 page */\n\tif( $wp_query->max_num_pages <= 1 )\n\t\treturn;\n\n\t$paged = get_query_var( 'paged' ) ? absint( get_query_var( 'paged' ) ) : 1;\n\t$max = intval( $wp_query->max_num_pages );\n\n\t/** Add current page to the array */\n\tif ( $paged >= 1 )\n\t\t$links[] = $paged;\n\n\t/** Add the pages around the current page to the array */\n\tif ( $paged >= 3 ) {\n\t\t$links[] = $paged - 1;\n\t\t$links[] = $paged - 2;\n\t}\n\n\tif ( ( $paged + 2 ) <= $max ) {\n\t\t$links[] = $paged + 2;\n\t\t$links[] = $paged + 1;\n\t}\n\n\techo '<ul class=\"pagination text-center\" role=\"navigation\" aria-label=\"Pagination\">' . \"\\n\";\n\n\t/** Previous Post Link */\n\tif ( get_previous_posts_link() )\n\t\tprintf( '<li>%s</li>' . \"\\n\", get_previous_posts_link('Anterior') );\n\n\t/** Link to first page, plus ellipses if necessary */\n\tif ( ! in_array( 1, $links ) ) {\n\t\t$class = 1 == $paged ? ' class=\"current\"' : '';\n\n\t\tprintf( '<li><a%s href=\"%s\">%s</a></li>' . \"\\n\", $class, esc_url( get_pagenum_link( 1 ) ), '1' );\n\n\t\tif ( ! in_array( 2, $links ) )\n\t\t\techo '<li class=\"ellipsis\"></li>';\n\t}\n\n\t/** Link to current page, plus 2 pages in either direction if necessary */\n\tsort( $links );\n\tforeach ( (array) $links as $link ) {\n\t\t$class = $paged == $link ? ' class=\"current\"' : '';\n\t\tprintf( '<li><a%s href=\"%s\">%s</a></li>' . \"\\n\", $class, esc_url( get_pagenum_link( $link ) ), $link );\n\t}\n\n\t/** Link to last page, plus ellipses if necessary */\n\tif ( ! in_array( $max, $links ) ) {\n\t\tif ( ! in_array( $max - 1, $links ) )\n\t\t\techo '<li class=\"ellipsis\"></li>' . \"\\n\";\n\n\t\t$class = $paged == $max ? ' class=\"current\"' : '';\n\t\tprintf( '<li><a%s href=\"%s\">%s</a></li>' . \"\\n\", $class, esc_url( get_pagenum_link( $max ) ), $max );\n\t}\n\n\t/** Next Post Link */\n\tif ( get_next_posts_link() )\n\t\tprintf( '<li>%s</li>' . \"\\n\", get_next_posts_link('Próxima') );\n\n\techo '</ul>' . \"\\n\";\n\n}", "function next_post($format = '%', $next = 'next post: ', $title = 'yes', $in_same_cat = 'no', $limitnext = 1, $excluded_categories = '')\n {\n }", "function smart_foundation_post_nav() {\n\t// Don't print empty markup if there's nowhere to navigate.\n\t$previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true );\n\t$next = get_adjacent_post( false, '', false );\n\n\tif ( ! $next && ! $previous ) {\n\t\treturn;\n\t}\n\t?>\n\t<nav class=\"navigation post-navigation\" role=\"navigation\">\n\t\t<h1 class=\"screen-reader-text\"><?php _e( 'Post navigation', 'smart_foundation' ); ?></h1>\n\t\t<div class=\"nav-links\">\n\t\t\t<?php\n\t\t\t\tprevious_post_link( '<div class=\"nav-previous\">%link</div>', _x( '<span class=\"meta-nav\">&larr;</span> %title', 'Previous post link', 'smart_foundation' ) );\n\t\t\t\tnext_post_link( '<div class=\"nav-next\">%link</div>', _x( '%title <span class=\"meta-nav\">&rarr;</span>', 'Next post link', 'smart_foundation' ) );\n\t\t\t?>\n\t\t</div><!-- .nav-links -->\n\t</nav><!-- .navigation -->\n\t<?php\n}", "function twentysixty_post_nav() {\n\tglobal $post;\n\n\t// Don't print empty markup if there's nowhere to navigate.\n\t$previous = ( is_attachment() ) ? get_post( $post->post_parent ) : get_adjacent_post( false, '', true );\n\t$next = get_adjacent_post( false, '', false );\n\n\tif ( ! $next && ! $previous )\n\t\treturn;\n\t?>\n\t<nav class=\"navigation post-navigation\" role=\"navigation\">\n\t\t<h1 class=\"screen-reader-text\"><?php _e( 'Post navigation', 'twentythirteen' ); ?></h1>\n\t\t<div class=\"nav-links\">\n\n\t\t\t<?php previous_post_link( '%link', _x( '<span class=\"meta-nav\">&larr;</span> %title', 'Previous post link', 'twentythirteen' ) ); ?>\n\t\t\t<?php next_post_link( '%link', _x( '%title <span class=\"meta-nav\">&rarr;</span>', 'Next post link', 'twentythirteen' ) ); ?>\n\n\t\t</div><!-- .nav-links -->\n\t</nav><!-- .navigation -->\n\t<?php\n}", "public function show(Post $post)\n {\n $prev = Post::where('id', '<', $post->id)->max('id');\n $next = Post::where('id', '>', $post->id)->first();\n\n return view('posts.show', compact('post', 'next', 'prev'));\n }", "function honeycomb_paging_nav() {\n\t\tglobal $wp_query;\n\n\t\t$args = array(\n\t\t\t'type' \t => 'list',\n\t\t\t'next_text' => _x( 'Next', 'Next post', 'honeycomb' ),\n\t\t\t'prev_text' => _x( 'Previous', 'Previous post', 'honeycomb' ),\n\t\t\t);\n\n\t\tthe_posts_pagination( $args );\n\t}", "function twentyfourteen_post_nav() {\n // Don't print empty markup if there's nowhere to navigate.\n $previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true );\n $next = get_adjacent_post( false, '', false );\n\n if ( ! $next && ! $previous ) {\n return;\n }\n\n ?>\n <nav class=\"navigation post-navigation\" role=\"navigation\">\n <h1 class=\"screen-reader-text\"><?php _e( 'Post navigation', 'twentyfourteen' ); ?></h1>\n <div class=\"nav-links\">\n <?php\n if ( is_attachment() ) :\n previous_post_link( '%link', __( '<span class=\"meta-nav\">Published In</span>%title', 'twentyfourteen' ) );\n else :\n previous_post_link( '%link', __( '<span class=\"meta-nav\">Previous Post</span>%title', 'twentyfourteen' ) );\n next_post_link( '%link', __( '<span class=\"meta-nav\">Next Post</span>%title', 'twentyfourteen' ) );\n endif;\n ?>\n <div style=\"clear:both;\"></div>\n </div><!-- .nav-links -->\n </nav><!-- .navigation -->\n <?php\n}", "function ppo_post_nav() {\n // Don't print empty markup if there's nowhere to navigate.\n $previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true );\n $next = get_adjacent_post( false, '', false );\n\n if ( ! $next && ! $previous ) {\n return;\n }\n ?>\n <div class=\"share-nav\">\n <nav class=\"navigation post-navigation\" role=\"navigation\">\n <h2 class=\"screen-reader-text\"><?php _e( 'Điều hướng bài viết', SHORT_NAME ); ?></h2>\n <div class=\"nav-links\">\n <?php\n if ( is_attachment() ) :\n previous_post_link( '%link', __( '<span class=\"meta-nav\">Đăng trong:</span> %title', SHORT_NAME ) );\n else :\n previous_post_link( '%link', __( '<span class=\"meta-nav\">← </span> Bài trước', SHORT_NAME ) );\n next_post_link( '%link', __( 'Bài tiếp <span class=\"meta-nav\"> →</span>', SHORT_NAME ) );\n endif;\n ?>\n </div><!-- .nav-links -->\n </nav><!-- .navigation -->\n \n <?php show_share_socials(); ?>\n </div>\n <?php\n}", "function posts_next() \n\t{\n\t return 'class=\"red darken-2 btn z-depth-1\"';\n\t}", "function custom_pagination($args = array(), $display = true, $before_links = '', $after_links = '', $text_link_previous = '', $text_link_next = '', $before_previous_link = '', $after_previous_link = '', $before_next_link = '', $after_next_link = ''){\n\t$meta_display_pagination = get_post_meta(get_the_ID(), META_PAGINATION_DISPLAY_PAGINATION, true);\n\tif (empty($meta_display_pagination) || $meta_display_pagination == 'on'){\n\t\t$res = '';\n\t\t$type = get_post_type();\n\t\tif (!empty($type)){\n\n\t\t\t$args['post_type'] = $type;\n\t\t\tif (empty($args['orderby']))\n\t\t\t\t$args['orderby'] = \"date\";\n\t\t\tif (empty($args['order']))\n\t\t\t\t$args['order'] = 'ASC';\n\t\t\tif (empty($args['numberposts']))\n\t\t\t\t$args['numberposts'] = -1;\n\t\t\tif (empty($args['suppress_filters']))\n\t\t\t\t$args['suppress_filters'] = FALSE; // keep current language posts (WPML compatibility)\n\t\t\t$args['post_parent'] = wp_get_post_parent_id(get_the_ID()); // keep hierarchical context... navigate only in brothers\n\n\t\t\t$post_types = get_posts($args);\n\t\t\t$prev = null;\n\t\t\t$next = null;\n\t\t\t$stop = false;\n\t\t\t$first = null;\n\t\t\t$last = null;\n\t\t\tforeach ($post_types as $p){\n\t\t\t\tif ($first == null)\n\t\t\t\t\t$first = $p;\n\t\t\t\tif (!$stop){\n\t\t\t\t\tif (get_the_ID() == $p->ID)\n\t\t\t\t\t\t$stop = true;\n\t\t\t\t\telse\n\t\t\t\t\t\t$prev = $p;\n\t\t\t\t}else{\n\t\t\t\t\tif ($next == null)\n\t\t\t\t\t\t$next = $p;\n\t\t\t\t}\n\t\t\t\t$last = $p;\n\t\t\t}\n\n\t\t\tif ($prev == null && $last != null && $last->ID != get_the_ID()){\n\t\t\t\t$prev = $last;\n\t\t\t}\n\t\t\tif ($prev != null){\n\t\t\t\t$res .= $before_previous_link.'<a class=\"pagination pagination-previous\" href=\"'.get_the_permalink($prev->ID).'\">';\n\t\t\t\tif (!empty($text_link_previous)){\n\t\t\t\t\t$res .= $text_link_previous;\n\t\t\t\t}else{\n\t\t\t\t\t$res .= $prev->post_title;\n\t\t\t\t}\n\t\t\t\t$res .= '</a>'.$after_previous_link;\n\t\t\t}\n\n\t\t\tif ($next == null && $first != null && $first->ID != get_the_ID()){\n\t\t\t\t$next = $first;\n\t\t\t}\n\t\t\tif ($next != null){\n\t\t\t\t$res .= $before_next_link.'<a class=\"pagination pagination-next\" href=\"'.get_the_permalink($next->ID).'\">';\n\t\t\t\tif (!empty($text_link_next)){\n\t\t\t\t\t$res .= $text_link_next;\n\t\t\t\t}else{\n\t\t\t\t\t$res .= $next->post_title;\n\t\t\t\t}\n\t\t\t\t$res .= '</a>'.$after_next_link;\n\t\t\t}\n\t\t}\n\n\t\t$res = $before_links.$res.$after_links;\n\n\t\tif ($display)\n\t\t\techo $res;\n\t\telse\n\t\t\treturn $res;\n\t}\n}", "function orbital_paging_nav() {\n \n if ( $GLOBALS['wp_query']->max_num_pages < 2 ) { return; } ?>\n \n <nav class=\"nav--paging\">\n \n <?php if ( get_next_posts_link() ) : ?>\n <div class=\"nav__previous\"><?php next_posts_link( __( '<span class=\"meta-nav\">&larr;</span> Older posts', 'rj' ) ); ?></div>\n <?php endif; ?>\n \n <?php if ( get_previous_posts_link() ) : ?>\n <div class=\"nav__next\"><?php previous_posts_link( __( 'Newer posts <span class=\"meta-nav\">&rarr;</span>', 'rj' ) ); ?></div>\n <?php endif; ?>\n \n </nav>\n \n <?php\n}", "function SRW_projects_nav_shortcode($atts) {\r\n\tglobal $post;\r\n\r\n\t$nav = '<div class=\"projects-nav\">';\r\n\t$next = get_previous_post_link( '<span class=\"next-proj-link\">%link</span>', '<span class=\"icom-arrow-right\"></span>');\r\n\t$prev = get_next_post_link( '<span class=\"prev-proj-link\">%link</span>', '<span class=\"icom-arrow-left\"></span>');\r\n\r\n\t// if no button get first or last post\r\n\tif(!$next || !$prev){\r\n\t\t$projects = get_posts(array(\r\n\t\t\t'post_type' => 'project',\r\n\t\t\t'posts_per_page' => -1\r\n\t\t));\r\n\r\n\t\tif(!$next){\r\n\t\t\t$postID = $projects[0]->ID;\r\n\t\t\t$next = '<span class=\"next-proj-link\"><a href=\"'. get_permalink($postID) .'\"><span class=\"icom-arrow-right\"></span></a></span>';\r\n\t\t}\r\n\t\tif(!$prev){\r\n\t\t\t$postID = $projects[count($projects)-1]->ID;\r\n\t\t\t$prev = '<span class=\"prev-proj-link\"><a href=\"'. get_permalink($postID) .'\"><span class=\"icom-arrow-left\"></span></a></span>';\r\n\t\t}\r\n\t}\r\n\r\n\t$nav .= $next . $prev .'</div>';\r\n\r\n\treturn $nav;\r\n}", "function dokan_content_nav( $nav_id, $query = null ) {\n global $wp_query, $post;\n\n if ( $query ) {\n $wp_query = $query;\n }\n\n // Don't print empty markup on single pages if there's nowhere to navigate.\n if ( is_single() ) {\n $previous = ( is_attachment() ) ? get_post( $post->post_parent ) : get_adjacent_post( false, '', true );\n $next = get_adjacent_post( false, '', false );\n\n if ( !$next && !$previous )\n return;\n }\n\n // Don't print empty markup in archives if there's only one page.\n if ( $wp_query->max_num_pages < 2 && ( is_home() || is_archive() || is_search() ) )\n return;\n\n $nav_class = 'site-navigation paging-navigation';\n if ( is_single() )\n $nav_class = 'site-navigation post-navigation';\n ?>\n <nav role=\"navigation\" id=\"<?php echo $nav_id; ?>\" class=\"<?php echo $nav_class; ?>\">\n\n <ul class=\"pager\">\n <?php if ( is_single() ) : // navigation links for single posts ?>\n\n <li class=\"previous\">\n <?php previous_post_link( '%link', _x( '&larr;', 'Previous post link', 'dokan-lite' ) . ' %title' ); ?>\n </li>\n <li class=\"next\">\n <?php next_post_link( '%link', '%title ' . _x( '&rarr;', 'Next post link', 'dokan-lite' ) ); ?>\n </li>\n\n <?php endif; ?>\n </ul>\n\n\n <?php if ( $wp_query->max_num_pages > 1 && ( dokan_is_store_page() || is_home() || is_archive() || is_search() ) ) : // navigation links for home, archive, and search pages ?>\n <?php dokan_page_navi( '', '', $wp_query ); ?>\n <?php endif; ?>\n\n </nav><!-- #<?php echo $nav_id; ?> -->\n <?php\n}", "function tyler_adjacent_post_link_plus( $args = '', $format = '%link &raquo;', $previous = true ) {\n\t\n\t$defaults = array(\n\t\t'order_by' => 'post_date', 'order_2nd' => 'post_date', 'meta_key' => '', 'post_type' => '',\n\t\t'loop' => false, 'end_post' => false, 'thumb' => false, 'max_length' => 0,\n\t\t'format' => '', 'link' => '%title', 'date_format' => '', 'tooltip' => '%title',\n\t\t'in_same_cat' => false, 'in_same_tax' => false, 'in_same_format' => false,\n\t\t'in_same_author' => false, 'in_same_meta' => false,\n\t\t'ex_cats' => '', 'ex_cats_method' => 'weak', 'in_cats' => '', 'ex_posts' => '', 'in_posts' => '',\n\t\t'before' => '', 'after' => '', 'num_results' => 1, 'return' => false, 'echo' => true\n\t);\n\t\n\t//If Post Types Order plugin is installed, default to sorting on menu_order\n\tif ( function_exists('CPTOrderPosts') ) {\n\t\t\n\t\t$defaults['order_by'] = 'menu_order';\n\t}\n\t\n\t$r = wp_parse_args( $args, $defaults );\n\tif ( empty($r['format']) ) {\n\t\t$r['format'] = $format;\n\t}\n\tif ( empty($r['date_format']) ) {\n\t\t$r['date_format'] = get_option('date_format');\n\t}\n\tif ( !function_exists('get_post_format') ) {\n\t\t$r['in_same_format'] = false;\n\t}\n\t\n\tif ( $previous && is_attachment() ) {\n\t\t\n\t\t$posts\t\t= array();\n\t\t$posts[]\t= & get_post($GLOBALS['post']->post_parent);\n\t} else {\n\t\t$posts = tyler_get_adjacent_post_plus($r, $previous);\n\t}\n\t\n\t//If there is no next/previous post, return false so themes may conditionally display inactive link text.\n\tif ( !$posts ) {\n\t\treturn false;\n\t}\n\t\n\t//If sorting by date, display posts in reverse chronological order. Otherwise display in alpha/numeric order.\n\tif ( ($previous && $r['order_by'] != 'post_date') || (!$previous && $r['order_by'] == 'post_date') ) {\n\t\t$posts = array_reverse( $posts, true );\n\t}\n\t\t\n\t//Option to return something other than the formatted link\t\t\n\tif ( $r['return'] ) {\n\t\t\n\t\tif ( $r['num_results'] == 1 ) {\n\t\t\t\n\t\t\treset($posts);\n\t\t\t$post = current($posts);\n\t\t\tif ( $r['return'] === 'id')\n\t\t\t\treturn $post->ID;\n\t\t\tif ( $r['return'] === 'href')\n\t\t\t\treturn get_permalink($post);\n\t\t\tif ( $r['return'] === 'object')\n\t\t\t\treturn $post;\n\t\t\tif ( $r['return'] === 'title')\n\t\t\t\treturn $post->post_title;\n\t\t\tif ( $r['return'] === 'date')\n\t\t\t\treturn mysql2date($r['date_format'], $post->post_date);\n\t\t} elseif ( $r['return'] === 'object') {\n\t\t\t\n\t\t\treturn $posts;\n\t\t}\n\t}\n\t\n\t$output = $r['before'];\n\t\n\t//When num_results > 1, multiple adjacent posts may be returned. Use foreach to display each adjacent post.\n\tforeach ( $posts as $post ) {\n\t\t\n\t\t$title = $post->post_title;\n\t\tif ( empty($post->post_title) ) {\n\t\t\t\n\t\t\t$title = $previous ? __('Previous Post') : __('Next Post');\n\t\t}\n\t\t\n\t\t$title = apply_filters('the_title', $title, $post->ID);\n\t\t$date = mysql2date($r['date_format'], $post->post_date);\n\t\t$author = get_the_author_meta('display_name', $post->post_author);\n\t\t\n\t\t//Set anchor title attribute to long post title or custom tooltip text. Supports variable replacement in custom tooltip.\n\t\tif ( $r['tooltip'] ) {\n\t\t\t$tooltip = str_replace('%title', $title, $r['tooltip']);\n\t\t\t$tooltip = str_replace('%date', $date, $tooltip);\n\t\t\t$tooltip = str_replace('%author', $author, $tooltip);\n\t\t\t$tooltip = ' title=\"' . esc_attr($tooltip) . '\"';\n\t\t} else\n\t\t\t$tooltip = '';\n\n\t\t//Truncate the link title to nearest whole word under the length specified.\n\t\t$max_length = intval($r['max_length']) < 1 ? 9999 : intval($r['max_length']);\n\t\tif ( strlen($title) > $max_length )\n\t\t\t$title = substr( $title, 0, strrpos(substr($title, 0, $max_length), ' ') ) . '...';\n\t\t\n\t\t$rel = $previous ? 'prev' : 'next';\n\t\t\n\t\t$anchor = '<a href=\"'.get_permalink($post).'\" rel=\"'.$rel.'\"'.$tooltip.'>';\n\t\t$link = str_replace('%title', $title, $r['link']);\n\t\t$link = str_replace('%date', $date, $link);\n\t\t$link = $anchor . $link . '</a>';\n\t\n\t\t$format = str_replace('%link', $link, $r['format']);\n\t\t$format = str_replace('%title', $title, $format);\n\t\t$format = str_replace('%date', $date, $format);\n\t\t$format = str_replace('%author', $author, $format);\n\t\tif ( ($r['order_by'] == 'custom' || $r['order_by'] == 'numeric') && !empty($r['meta_key']) ) {\n\t\t\t$meta = get_post_meta($post->ID, $r['meta_key'], true);\n\t\t\t$format = str_replace('%meta', $meta, $format);\n\t\t} elseif ( $r['in_same_meta'] ) {\n\t\t\t$meta = get_post_meta($post->ID, $r['in_same_meta'], true);\n\t\t\t$format = str_replace('%meta', $meta, $format);\n\t\t}\n\n\t\t//Get the category list, including custom taxonomies (only if the %category variable has been used).\n\t\tif ( (strpos($format, '%category') !== false) && version_compare(PHP_VERSION, '5.0.0', '>=') ) {\n\t\t\t$term_list = '';\n\t\t\t$taxonomies = array_filter( get_post_taxonomies($post->ID), \"is_taxonomy_hierarchical\" );\n\t\t\tif ( $r['in_same_format'] && get_post_format($post->ID) )\n\t\t\t\t$taxonomies[] = 'post_format';\n\t\t\tforeach ( $taxonomies as &$taxonomy ) {\n\t\t\t\t//No, this is not a mistake. Yes, we are testing the result of the assignment ( = ).\n\t\t\t\t//We are doing it this way to stop it from appending a comma when there is no next term.\n\t\t\t\tif ( $next_term = get_the_term_list($post->ID, $taxonomy, '', ', ', '') ) {\n\t\t\t\t\t$term_list .= $next_term;\n\t\t\t\t\tif ( current($taxonomies) ) $term_list .= ', ';\n\t\t\t\t}\n\t\t\t}\n\t\t\t$format = str_replace('%category', $term_list, $format);\n\t\t}\n\n\t\t//Optionally add the post thumbnail to the link. Wrap the link in a span to aid CSS styling.\n\t\tif ( $r['thumb'] && has_post_thumbnail($post->ID) ) {\n\t\t\tif ( $r['thumb'] === true ) // use 'post-thumbnail' as the default size\n\t\t\t\t$r['thumb'] = 'post-thumbnail';\n\t\t\t$thumbnail = '<a class=\"post-thumbnail\" href=\"'.get_permalink($post).'\" rel=\"'.$rel.'\"'.$tooltip.'>' . get_the_post_thumbnail( $post->ID, $r['thumb'] ) . '</a>';\n\t\t\t$format = $thumbnail . '<span class=\"post-link\">' . $format . '</span>';\n\t\t}\n\n\t\t//If more than one link is returned, wrap them in <li> tags\t\t\n\t\tif ( intval($r['num_results']) > 1 )\n\t\t\t$format = '<li>' . $format . '</li>';\n\t\t\n\t\t$output .= $format;\n\t}\n\n\t$output .= $r['after'];\n\n\t//If echo is false, don't display anything. Return the link as a PHP string.\n\tif ( !$r['echo'] || $r['return'] === 'output' )\n\t\treturn $output;\n\n\t$adjacent = $previous ? 'previous' : 'next';\n\techo apply_filters( \"{$adjacent}_post_link_plus\", $output, $r );\n\n\treturn true;\n}", "function kstHelpWordpressBlogPosts_multiplePagePostsPages() {\n ?>\n <p>\n For long posts that you would like to break up into smaller chunks for readability\n your theme uses the &lt;--nextpage--&gt; tag.\n </p>\n <p>\n When the post is being read it will look for &lt;--nextpage--&gt;\n and create a pager box (e.g. Pages: [1] [2] [3]) for as many &lt;--nextpage--&gt;\n tags as you included in your post.\n </p>\n <p>\n <strong>How to use the \"nextpage\" tag:</strong>\n </p>\n <p>\n In \"Visual\" mode:<br />\n <em>This cannot be done in \"visual\" mode. You will need to go into \"html\" mode for this which makes you a real pro.</em>\n <p>\n In \"html\" mode:<br />\n Place the cursor <em>after</em> the content that is the first \"page\" of your post.\n Type &lt;--nextpage--&gt; on it's own line. Repeat for each \"page\" of your post.\n <em>Note that you do not need to put &lt;--nextpage--&gt; at the end of the last \"page\" (end of post).</em>\n </p>\n <?php\n}", "function wp_pagenavi( $before = '', $after = '', $prelabel = '', $nxtlabel = '', $pages_to_show = 5, $always_show = false ) {\n\n\t\tglobal $request, $posts_per_page, $wpdb, $paged, $totalpost_count;\n\tif ( empty( $prelabel ) ) {\n\t\t$prelabel = '<strong>&laquo;</strong>';\n\t}\n\tif ( empty( $nxtlabel ) ) {\n\t\t$nxtlabel = '<strong>&raquo;</strong>';\n\t}\n\t$half_pages_to_show = round( $pages_to_show / 2 );\n\tif ( ! is_single() ) {\n\t\tif ( is_tag() ) {\n\t\t\tpreg_match( '#FROM\\s(.*)\\sGROUP BY#siU', $request, $matches );\n\t\t} elseif ( ! is_category() ) {\n\t\t\tpreg_match( '#FROM\\s(.*)\\sORDER BY#siU', $request, $matches );\n\t\t} else {\n\t\t\tpreg_match( '#FROM\\s(.*)\\sGROUP BY#siU', $request, $matches );\n\t\t}\n\t\t$fromwhere = $matches[1];\n\t\t$numposts = $wpdb->get_var( \"SELECT COUNT(DISTINCT ID) FROM $fromwhere\" );\n\n\t}\n\tif ( $totalpost_count > 0 ) {\n\t\t$numposts = $totalpost_count;\n\t}\n\t$max_page = ceil( $numposts / $posts_per_page );\n\tif ( empty( $paged ) ) {\n\t\t$paged = 1;\n\t}\n\tif ( $max_page > 1 || $always_show ) {\n\t\techo \"$before <div class='Navi'>\";\n\t\tif ( $paged >= ($pages_to_show -1) ) {\n\t\t\techo '<a href=\"' . get_pagenum_link() . '\">' . __( '&laquo; First' ) . '</a>';\n\t\t}\n\t\tprevious_posts_link( $prelabel );\n\t\tfor ( $i = 1; $i <= $pages_to_show; $i++ ) {\n\t\t\tif ( $i >= 1 && $i <= $max_page ) {\n\t\t\t\tif ( $i == $paged ) {\n\t\t\t\t\techo \"<strong class='on'>$i</strong>\";\n\t\t\t\t} else {\n\t\t\t\t\techo ' <a href=\"' . get_pagenum_link( $i ) . '\">' . $i . '</a> ';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tnext_posts_link( $nxtlabel, $max_page );\n\t\tif ( ($paged + $half_pages_to_show) < ($max_page) && $pages_to_show != $paged ) {\n\t\t\techo '<a href=\"' . get_pagenum_link( $max_page ) . '\">' . __( 'Last &raquo;' ) . '</a>';\n\t\t}\n\t\techo \"</div> $after\";\n\t}\n}", "function previous_post_smart( $format = '%link', $title = '%title', $fallback = true, $in_same_cat = true, $excluded_categories = '' ) {\n\treturn Smarter_Navigation::adjacent_post( $format, $title, true, $fallback, $in_same_cat, $excluded_categories );\n}", "function quasar_get_link_pages(){\n\tglobal $post;\n\tif(!$post) return;\n\t\n\twp_link_pages( \n\t\tarray( \n\t\t\t'before'\t\t\t=>\t'<div class=\"quasar-pagination quasar-link_pages\">', \n\t\t\t'after'\t\t\t\t=>\t'</div><div class=\"clear\"></div>', \n\t\t\t'link_before'\t\t=>\t'<span class=\"page-numbers\">', \n\t\t\t'link_after'\t\t=>\t'</span>',\n\t\t\t'previouspagelink'\t=>\t'« '.__('Previous','quasar'),\n\t\t\t'nextpagelink'\t\t=>\t__('Next','quasar').' »',\n\t\t) \n\t);\n}", "function head_pagination($paged,$posts_per_page)\n{\n\tif(!is_single())\t\n\t{\t\t\t\n\t\t\t$args = array('offset'=> 0, 'paged'=>$paged, 'posts_per_page'=>$posts_per_page);\n\t\t\t$all_posts = new WP_Query($args);\t\n\t\t\t\n\t\t\t$total = $all_posts->max_num_pages;\t\t\t\t\t\t\t\t\t\t\t// All Pages\n\t\t\t\n\t\t\tif($total > 1){\t\t\t\t \n\t\t\t\t\techo '<div class=\"navigation alignright\">';\n\t\t\t\t\t//Next/Prev Links\n\t\t\t\t\tswitch($paged){\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\techo '<a href=\"'.get_pagenum_link($total).'\" title=\"'.__(\"Previous Page\",\"tb_longwave\").'\"><i class=\"icon-left-open-1\"></i></a><a href=\"'.get_pagenum_link($paged+1).'\" title=\"'.__(\"Next Page\",\"tb_longwave\").'\"><i class=\"icon-right-open-1\"></i></a>';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase $total:\n\t\t\t\t\t\t\t\techo '<a href=\"'.get_pagenum_link($paged-1).'\" title=\"'.__(\"Previous Page\",\"tb_longwave\").'\"><i class=\"icon-left-open-1\"></i></a><a href=\"'.get_pagenum_link(1).'\" title=\"'.__(\"Next Page\",\"tb_longwave\").'\"><i class=\"icon-right-open-1\"></i></a>';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\techo '<a href=\"'.get_pagenum_link($paged-1).'\" title=\"'.__(\"Previous Page\",\"tb_longwave\").'\"><i class=\"icon-left-open-1\"></i></a><a href=\"'.get_pagenum_link($paged+1).'\" title=\"'.__(\"Next Page\",\"tb_longwave\").'\"><i class=\"icon-right-open-1\"></i></a>';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\techo '</div>';\n\t\t\t}\n\t}\n\t\n}", "function next_posts($max_page = 0, $display = \\true)\n {\n }", "function display_pages()\n {\n $this->Admin_model->procedure = 'GET_POST_PAGES';\n $rs = $this->Admin_model->get_post();\n $data['rows'] = $rs;\n $this->load->view('display_posts', $data);\n }", "public function showPosts() {\r\n\t\t$allposts = $this->renderPostTemplate();\r\n\t\tforeach($allposts as $post) {\r\n\t\t\techo $post;\r\n\t\t}\r\n\t}", "function get_previous_posts_page_link()\n {\n }", "function voyage_mikado_additional_post_items() {\n\n if(has_tag() && voyage_mikado_options()->getOptionValue('blog_enable_single_tags') == 'yes') {\n voyage_mikado_get_module_template_part('templates/single/parts/tags', 'blog');\n }\n\n $args_pages = array(\n 'before' => '<div class=\"mkdf-single-links-pages\"><div class=\"mkdf-single-links-pages-inner\">',\n 'after' => '</div></div>',\n 'link_before' => '<span>',\n 'link_after' => '</span>',\n 'pagelink' => '%'\n );\n\n wp_link_pages($args_pages);\n\n }", "function calvero_content_nav( $nav_id ) {\n global $wp_query, $post;\n \n // Don't print empty markup on single pages if there's nowhere to navigate.\n if ( is_single() ) {\n $previous = ( is_attachment() ) ? get_post( $post->post_parent ) : get_adjacent_post( false, '', true );\n $next = get_adjacent_post( false, '', false );\n \n if ( ! $next && ! $previous )\n return;\n }\n \n // Don't print empty markup in archives if there's only one page.\n if ( $wp_query->max_num_pages < 2 && ( is_home() || is_archive() || is_search() ) )\n return;\n \n $nav_class = 'site-navigation paging-navigation';\n if ( is_single() )\n $nav_class = 'site-navigation post-navigation';\n \n ?>\n <nav role=\"navigation\" id=\"<?php echo $nav_id; ?>\" class=\"<?php echo $nav_class; ?>\">\n <h1 class=\"assistive-text\"><?php _e( 'Post navigation', 'calvero' ); ?></h1>\n \n <?php if ( is_single() ) : // navigation links for single posts ?>\n \n <?php previous_post_link( '<div class=\"nav-previous\">%link</div>', '<span class=\"meta-nav\">' . _x( '&larr;', 'Previous post link', 'calvero' ) . '</span> %title' ); ?>\n <?php next_post_link( '<div class=\"nav-next\">%link</div>', '%title <span class=\"meta-nav\">' . _x( '&rarr;', 'Next post link', 'calvero' ) . '</span>' ); ?>\n \n <?php elseif ( $wp_query->max_num_pages > 1 && ( is_home() || is_archive() || is_search() ) ) : // navigation links for home, archive, and search pages ?>\n \n <?php if ( get_next_posts_link() ) : ?>\n <div class=\"nav-previous\"><?php next_posts_link( __( '<span class=\"meta-nav\">&larr;</span> Older posts', 'calvero' ) ); ?></div>\n <?php endif; ?>\n \n <?php if ( get_previous_posts_link() ) : ?>\n <div class=\"nav-next\"><?php previous_posts_link( __( 'Newer posts <span class=\"meta-nav\">&rarr;</span>', 'calvero' ) ); ?></div>\n <?php endif; ?>\n \n <?php endif; ?>\n \n </nav><!-- #<?php echo $nav_id; ?> -->\n <?php\n}", "function acitpo_content_nav($html_id) {\n\tglobal $wp_query;\n\n\tif ($wp_query->max_num_pages > 1) {\n\t\tprintf('<nav id=\"%s\" class=\"navigation nav-below\" role=\"navigation\">', esc_attr($html_id));\n\t\tprintf('<h3 class=\"assistive-text\">%s</h3>', __('Post navigation', 'acitpo'));\n\t\techo '<div class=\"nav-next alignleft\">';\n\t\tprevious_posts_link(__('Previous', 'acitpo'));\n\t\techo '</div>';\n\t\techo '<div class=\"nav-previous alignright\">';\n\t\tnext_posts_link(__('Next Page', 'acitpo'));\n\t\techo '</div>';\n\t\techo '<div class=\"clear-fix\"></div>';\n\t\techo '</nav>';\n\t}\n}", "function medigroup_mikado_additional_post_items() {\n\n if(has_tag() && medigroup_mikado_options()->getOptionValue('blog_enable_single_tags') == 'yes') {\n medigroup_mikado_get_module_template_part('templates/single/parts/tags', 'blog');\n }\n\n\n $args_pages = array(\n 'before' => '<div class=\"mkd-single-links-pages\"><div class=\"mkd-single-links-pages-inner\">',\n 'after' => '</div></div>',\n 'link_before' => '<span>',\n 'link_after' => '</span>',\n 'pagelink' => '%'\n );\n\n wp_link_pages($args_pages);\n\n }", "function previous_posts($display = \\true)\n {\n }", "function pagenavi( $p = 2 ) { // 取當前頁前後各 2 頁\r\n if ( is_singular() ) return; // 文章與插頁不用\r\n global $wp_query, $paged;\r\n $max_page = $wp_query->max_num_pages;\r\n if ( $max_page == 1 ) return; // 只有一頁不用\r\n if ( empty( $paged ) ) $paged = 1;\r\n echo '<span class=\"pages\">页面: ' . $paged . '/' . $max_page . ' </span> '; // 頁數\r\n if ( $paged > $p + 1 ) p_link( 1, '最前頁' );\r\n if ( $paged > $p + 2 ) echo '... ';\r\n for( $i = $paged - $p; $i <= $paged + $p; $i++ ) { // 中間頁\r\n if ( $i > 0 && $i <= $max_page ) $i == $paged ? print \"<span class='page-numbers current'>{$i}</span> \" : p_link( $i );\r\n }\r\n if ( $paged < $max_page - $p - 1 ) echo '... ';\r\n if ( $paged < $max_page - $p ) p_link( $max_page, '最後頁' );\r\n}", "function cosmetics_pagination() {\n\n the_posts_pagination( array(\n 'type' => 'list',\n 'mid_size' => 2,\n 'prev_text' => esc_html__( 'Previous', 'cosmetics' ),\n 'next_text' => esc_html__( 'Next', 'cosmetics' ),\n 'screen_reader_text' => esc_html__( '&nbsp;', 'cosmetics' ),\n ) );\n\n}", "public function showList()\n {\n // Get posts datas\n $postList = $this->currentModel->getListWithAuthor();\n // Loop to find any existing comments attached to each post\n for ($i = 0; $i < count($postList); $i ++) {\n // Retrieve (or not) single post comments\n $postComments = $this->currentModel->getCommentListForSingle($postList[$i]->id);\n // Comments are found for a post.\n if ($postComments != false) {\n // Add temporary param \"postComments\" to object\n $postList[$i]->postComments = $postComments;\n }\n // Retrieve single post images\n $postImages = $this->currentModel->getImageListForSingle($postList[$i]->id);\n // Images are found for a post.\n if ($postImages != false) {\n // Add temporary param \"postImages\" to object\n $postList[$i]->postImages = $postImages;\n }\n }\n $varsArray = [\n 'metaTitle' => 'Posts list',\n 'metaDescription' => 'Here, you can follow our news and technical topics.',\n 'imgBannerCSSClass' => 'post-list',\n 'postList' => $postList\n ];\n echo $this->page->renderTemplate('Blog/Post/post-list.tpl', $varsArray);\n }", "public function show($slug) {\n// $title = str_replace('-', ' ', $slug);\n $post = Post::where(strtolower('slug'), '=', strtolower($slug))->firstOrFail();\n// dd($post->id);\n $previous = Post::where('id', '<', $post->id)->orderBy('id', 'desc')->first();\n $next = Post::where('id', '>', $post->id)->orderBy('id')->first();\n\n $categories = Category::all();\n $tags = Tag::all();\n $SocialMedia = SocialMedia::all();\n\n// return view('pages.post', compact('post', 'previous', 'next', 'categories', 'tags', 'SocialMedia'));\n\n return view('pages.post')\n ->with('post', $post)\n ->with('previous', $previous)\n ->with('next', $next)\n ->with('posts', $this->posts)\n ->with('categories', $this->categories)\n ->with('tags', $this->tags)\n ->with('SocialMedia', $this->SocialMedia)\n ->with('popular', $this->popular)\n ->with('nav', $this->nav)\n ->with('siteInfo', $this->siteInfo);\n }", "function aw_pp_content_nav( $nav_id ) {\n\tglobal $wp_query;\n\n\tif ( $wp_query->max_num_pages > 1 ) : ?>\n\t\t<nav id=\"<?php echo $nav_id; ?>\">\n\t\t\t<h3 class=\"assistive-text\">Post navigation</h3>\n\t\t\t<div class=\"nav-previous\"><?php next_posts_link('<span class=\"meta-nav\">&larr;</span> Older posts')?></div>\n\t\t\t<div class=\"nav-next\"><?php previous_posts_link('Newer posts <span class=\"meta-nav\">&rarr;</span>')?></div>\n\t\t</nav><!-- #nav-above -->\n\t<?php endif;\n}", "function pixelgrade_the_post_navigation( $args = array() ) {\n if ( true === apply_filters( 'pixelgrade_prevent_post_navigation', false ) ) {\n return;\n }\n\n\techo pixelgrade_get_the_post_navigation( $args ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped\n}", "function horizon_theme_paging_nav() {\n\t\t$mid = 2; // Total of items that will show along with the current page.\n\t\t$end = 1; // Total of items displayed for the last few pages.\n\t\t$show = false; // Show all items.\n\n\t\techo horizon_theme_pagination( $mid, $end, false );\n\t}", "function head_pagination_arch($paged,$posts_per_page)\n{\n\tif(!is_single())\t\n\t{\t\t\t\n\t\t\tglobal $wp_query;\n\t\t\t$total = $wp_query->max_num_pages;\t\t\t\t\t\t\t\t\t\t\t// All Pages\n\t\t\t\n\t\t\tif($total > 1){\t\t\t\t \n\t\t\t\t\techo '<div class=\"navigation alignright\">';\n\t\t\t\t\t//Next/Prev Links\n\t\t\t\t\tswitch($paged){\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\techo '<a href=\"'.get_pagenum_link($total).'\" title=\"'.__(\"Previous Page\",\"tb_longwave\").'\"><i class=\"icon-left-open-1\"></i></a><a href=\"'.get_pagenum_link($paged+1).'\" title=\"'.__(\"Next Page\",\"tb_longwave\").'\"><i class=\"icon-right-open-1\"></i></a>';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase $total:\n\t\t\t\t\t\t\t\techo '<a href=\"'.get_pagenum_link($paged-1).'\" title=\"'.__(\"Previous Page\",\"tb_longwave\").'\"><i class=\"icon-left-open-1\"></i></a><a href=\"'.get_pagenum_link(1).'\" title=\"'.__(\"Next Page\",\"tb_longwave\").'\"><i class=\"icon-right-open-1\"></i></a>';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\techo '<a href=\"'.get_pagenum_link($paged-1).'\" title=\"'.__(\"Previous Page\",\"tb_longwave\").'\"><i class=\"icon-left-open-1\"></i></a><a href=\"'.get_pagenum_link($paged+1).'\" title=\"'.__(\"Next Page\",\"tb_longwave\").'\"><i class=\"icon-right-open-1\"></i></a>';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\techo '</div>';\n\t\t\t}\n\t}\n\t\n}", "private function prev() {\n if ($this->currentPage > 1) {\n print '<li><a href=\"' . $this->url . '&page=' . ($this->currentPage - 1) . '\">&lt;</a></li>';\n }\n }", "function antica_next_prev_post_link ($output, $format, $link, $post, $adjacent) {\n $previous = $adjacent;\n\n // Only applies changes if EDDis active\n if ( ! class_exists('EDD_Download') ) {\n return $output;\n }\n if ( ! is_single() || ! get_post_type() == \"download\" ) {\n return $output;\n }\n\n /**\n * Saving the initial Referrer\n * To allow scroll the posts and\n * return to the original caller\n * Option 2 - onclick=\"history.back()\" Easier\n * The page should verify $_GET['back_refr']\n */\n\n $url_back_refr = '';\n // If GET is set the same Template\n if ( isset( $_GET['back_refr'] ) ) {\n $url_back_refr = $_GET['back_refr'];\n // echo '<br>Original: ' . $url_back_refr;\n\n } else {\n if ( isset( $_SERVER['HTTP_REFERER'] ) ) {\n // $back_pth = parse_url( $_SERVER['HTTP_REFERER'], PHP_URL_PATH );\n // $back_qry = parse_url( $_SERVER['HTTP_REFERER'], PHP_URL_QUERY );\n // echo '<br>Initial: ' . $back_qry;\n // $url_back_refr = add_query_arg( 'back_refr' , base64_encode ( $back_pth . $back_qry ) );\n // $url_back_refr = base64_encode ( $back_pth . $back_qry );\n $url_back_refr = base64_encode ( $_SERVER['HTTP_REFERER'] );\n // echo '<br>Aditional: ' . $url_back_refr ;\n }\n }\n\n // echo '<br>encoded: ' . $url_back_refr . '<----';\n // echo '<br>decoded: ' . base64_decode($url_back_refr) . '<----';\n /**\n * https://developer.wordpress.org/reference/functions/get_adjacent_post_link/\n */\n if ( ! $post ) {\n $output = '';\n } else {\n $title = $post->post_title;\n\n if ( empty( $post->post_title ) ) {\n $title = $previous ? __( 'Previous Post' ) : __( 'Next Post' );\n }\n\n /** This filter is documented in wp-includes/post-template.php */\n $title = apply_filters( 'the_title', $title, $post->ID );\n\n $date = mysql2date( get_option( 'date_format' ), $post->post_date );\n $rel = $previous ? 'prev' : 'next';\n\n $string = '<a href=\"';\n $string .= get_permalink( $post ) ;\n $string .= '?back_refr=' . $url_back_refr;\n $string .= '\" rel=\"' . $rel . '\">';\n $inlink = str_replace( '%title', $title, $link );\n $inlink = str_replace( '%date', $date, $inlink );\n $inlink = $string . $inlink . '</a>';\n\n $output = str_replace( '%link', $inlink, $format );\n }\n\n return $output;\n}", "function echotheme_content_nav($nav_id = null, $query = null) {\n\t\n\tif ($query === null) {\n\t\tglobal $wp_query;\n\t\t$query = $wp_query;\n\t} \n\n\tif ($query->max_num_pages > 1) : \n?>\n<nav id=\"<?php echo $nav_id ?>\">\n\t<div class=\"nav-previous content-nav\">\n\t\t<?php previous_posts_link(__('<span class=\"meta-nav\">&larr;</span> Previous Page', 'echotheme')); ?>\n\t\t&nbsp;\n\t</div>\n\t<div class=\"nav-next content-nav\">\n\t\t<?php next_posts_link(__('Next Page<span class=\"meta-nav\">&rarr;</span>', 'echotheme')); ?>\n\t</div>\n\t\n\t<div class=\"clear\"></div>\n</nav><!-- #category-navigation -->\n<?php\n\tendif;\n}", "function pagination() {\n echo '<div class=\"pagination\">';\n posts_nav_link(' ', '<< ', ' >>'); \n echo '</div>';\n}", "function link_to_next_item_show($text = null, $props = array())\n{\n if (!$text) {\n $text = __(\"Next Item &rarr;\");\n }\n $item = get_current_record('item');\n if ($next = $item->next()) {\n return link_to($next, 'show', $text, $props);\n }\n}", "function posts_nav_link($sep = '', $prelabel = '', $nxtlabel = '')\n {\n }", "function frmwrk_content_nav( $nav_id ) {\n\tglobal $wp_query;\n\n\tif ( $wp_query->max_num_pages > 1 ) : ?>\n\t\t<nav id=\"<?php echo $nav_id; ?>\" role=\"navigation\">\n\t\t\t<div class=\"nav-previous alignleft\"><?php next_posts_link( __( '<span class=\"meta-nav\">&larr;</span> Older posts', 'frmwrk' ) ); ?></div>\n\t\t\t<div class=\"nav-next alignright\"><?php previous_posts_link( __( 'Newer posts <span class=\"meta-nav\">&rarr;</span>', 'frmwrk' ) ); ?></div>\n\t\t</nav><!-- #nav-above -->\n\t<?php endif;\n}", "public function list_pages() {\n\t\t$this->print_prev();\n\n\t\tif ($this->current_page+2 >= $this->total_pages-1) {\n\t\t\t$this->pages_right();\n\t\t} else {\n\t\t\t$this->pages_left();\n\t\t}\n\n\t\t$this->print_next();\n\t}", "public function posts()\n\t{\n\t\t$this -> template = 'default_1';\n\t\t$url = $this -> basepath();\n\n\t\t$posts = \\App\\App::getInstance() -> getTable('postsManager');\n\t\t$posts = $posts -> getPosts();\n\t\t$categories = \\App\\App::getInstance() -> getTable('categoriesManager');\n\t\t$categories = $categories -> getCategories();\n\t\t$this -> page('posts/posts', compact('posts', 'categories', 'url'));\n\t}", "function classiera_paging_nav() {\r\n\tglobal $wp_query;\r\n\r\n\t// Don't print empty markup if there's only one page.\r\n\tif ( $wp_query->max_num_pages < 2 )\r\n\t\treturn;\r\n\t?>\r\n\t<nav class=\"navigation paging-navigation\" role=\"navigation\">\r\n\t\t<h1 class=\"screen-reader-text\"><?php esc_html_e( 'Posts navigation', 'classiera' ); ?></h1>\r\n\t\t<div class=\"nav-links\">\r\n\r\n\t\t\t<?php if ( get_next_posts_link() ) : ?>\r\n\t\t\t<div class=\"nav-previous\"><?php next_posts_link(wp_kses( __( '<span class=\"meta-nav\">&larr;</span> Older posts', 'classiera' ), $allowed ) ); ?></div>\r\n\t\t\t<?php endif; ?>\r\n\r\n\t\t\t<?php if ( get_previous_posts_link() ) : ?>\r\n\t\t\t<div class=\"nav-next\"><?php previous_posts_link(wp_kses( __( 'Newer posts <span class=\"meta-nav\">&rarr;</span>', 'classiera' ), $allowed ) ); ?></div>\r\n\t\t\t<?php endif; ?>\r\n\r\n\t\t</div><!-- .nav-links -->\r\n\t</nav><!-- .navigation -->\r\n\t<?php\r\n}", "function gravit_paging_nav() {\r\r\n\r\r\n\tif( is_singular() )\r\r\n\t\treturn;\r\r\n\r\r\n\t/** Stop execution if there's only 1 page */\r\r\n\tif( $GLOBALS['wp_query']->max_num_pages <= 1 )\r\r\n\t\treturn;\r\r\n\r\r\n\t$paged = get_query_var( 'paged' ) ? absint( get_query_var( 'paged' ) ) : 1;\r\r\n\t$max = intval( $GLOBALS['wp_query']->max_num_pages );\r\r\n\r\r\n\t/**\tAdd current page to the array */\r\r\n\tif ( $paged >= 1 )\r\r\n\t\t$links[] = $paged;\r\r\n\r\r\n\t/**\tAdd the pages around the current page to the array */\r\r\n\tif ( $paged >= 3 ) {\r\r\n\t\t$links[] = $paged - 1;\r\r\n\t\t$links[] = $paged - 2;\r\r\n\t}\r\r\n\r\r\n\tif ( ( $paged + 2 ) <= $max ) {\r\r\n\t\t$links[] = $paged + 2;\r\r\n\t\t$links[] = $paged + 1;\r\r\n\t}\r\r\n\r\r\n\techo '<div class=\"navigation\"><ul>' . \"\\n\";\r\r\n\r\r\n\t/**\tPrevious Post Link */\r\r\n\tif ( get_previous_posts_link() )\r\r\n\t\tprintf( '<li>%s</li>' . \"\\n\", get_previous_posts_link('<i class=\"fa fa-angle-double-left\"></i>') );\r\r\n\r\r\n\t/**\tLink to first page, plus ellipses if necessary */\r\r\n\tif ( ! in_array( 1, $links ) ) {\r\r\n\t\t$class = 1 == $paged ? ' class=\"active\"' : '';\r\r\n\r\r\n\t\tprintf( '<li%s><a href=\"%s\">%s</a></li>' . \"\\n\", $class, esc_url( get_pagenum_link( 1 ) ), '1' );\r\r\n\r\r\n\t\tif ( ! in_array( 2, $links ) )\r\r\n\t\t\techo '<li>...</li>';\r\r\n\t}\r\r\n\r\r\n\t/**\tLink to current page, plus 2 pages in either direction if necessary */\r\r\n\tsort( $links );\r\r\n\tforeach ( (array) $links as $link ) {\r\r\n\t\t$class = $paged == $link ? ' class=\"active\"' : '';\r\r\n\t\tprintf( '<li%s><a href=\"%s\">%s</a></li>' . \"\\n\", $class, esc_url( get_pagenum_link( $link ) ), $link );\r\r\n\t}\r\r\n\r\r\n\t/**\tLink to last page, plus ellipses if necessary */\r\r\n\tif ( ! in_array( $max, $links ) ) {\r\r\n\t\tif ( ! in_array( $max - 1, $links ) )\r\r\n\t\t\techo '<li>...</li>' . \"\\n\";\r\r\n\r\r\n\t\t$class = $paged == $max ? ' class=\"active\"' : '';\r\r\n\t\tprintf( '<li%s><a href=\"%s\">%s</a></li>' . \"\\n\", $class, esc_url( get_pagenum_link( $max ) ), $max );\r\r\n\t}\r\r\n\r\r\n\t/**\tNext Post Link */\r\r\n\tif ( get_next_posts_link('<i class=\"fa fa-angle-double-right\"></i>') )\r\r\n\t\tprintf( '<li>%s</li>' . \"\\n\", get_next_posts_link('<i class=\"fa fa-angle-double-right\"></i>') );\r\r\n\r\r\n\techo '</ul></div>' . \"\\n\";\r\r\n}", "private function next() {\n if ($this->currentPage < $this->totalPage) {\n print '<li><a href=\"' . $this->url . '&page=' . ($this->currentPage + 1) . '\">&gt;</a></li>';\n }\n }", "function theme_paging_nav() {\n global $wp_query;\n\n// Don't print empty markup if there's only one page.\n if ($wp_query->max_num_pages < 2)\n return;\n ?>\n <nav class=\"navigation paging-navigation\" role=\"navigation\">\n <h1 class=\"screen-reader-text\"><?php _e('Posts navigation', 'law-firm'); ?></h1>\n <div class=\"nav-links\">\n\n <?php if (get_next_posts_link()) : ?>\n <div class=\"nav-previous\"><?php next_posts_link(__('<span class=\"meta-nav\">&larr;</span> Older posts', 'law-firm')); ?></div>\n <?php endif; ?>\n\n <?php if (get_previous_posts_link()) : ?>\n <div class=\"nav-next\"><?php previous_posts_link(__('Newer posts <span class=\"meta-nav\">&rarr;</span>', 'law-firm')); ?></div>\n <?php endif; ?>\n\n </div><!-- .nav-links -->\n </nav><!-- .navigation -->\n <?php\n }", "public function index()\n {\n $posts = Post::query()->orderByDesc('id')->paginate(15);\n return view('posts.index', ['posts'=> $posts]);\n $posts->nextPageUrl();\n }", "function agilespirit_paging_nav() {\n global $wp_query;\n\n // Don't print empty markup if there's only one page.\n if ( $wp_query->max_num_pages < 2 )\n return;\n ?>\n <nav class=\"navigation paging-navigation\" role=\"navigation\">\n <h1 class=\"screen-reader-text\"><?php _e( 'Posts navigation', 'agilespirit' ); ?></h1>\n <div class=\"nav-links\">\n\n <?php if ( get_next_posts_link() ) : ?>\n <div class=\"nav-previous\"><?php next_posts_link( __( '<span class=\"meta-nav\">&larr;</span> Older posts', 'agilespirit' ) ); ?></div>\n <?php endif; ?>\n\n <?php if ( get_previous_posts_link() ) : ?>\n <div class=\"nav-next\"><?php previous_posts_link( __( 'Newer posts <span class=\"meta-nav\">&rarr;</span>', 'agilespirit' ) ); ?></div>\n <?php endif; ?>\n\n </div><!-- .nav-links -->\n </nav><!-- .navigation -->\n <?php\n}", "function page_navi($before = '', $after = '') {\n\tglobal $wpdb, $wp_query;\n\t$request = $wp_query->request;\n\t$posts_per_page = intval(get_query_var('posts_per_page'));\n\t$paged = intval(get_query_var('paged'));\n\t$numposts = $wp_query->found_posts;\n\t$max_page = $wp_query->max_num_pages;\n\tif ( $numposts <= $posts_per_page ) { return; }\n\tif(empty($paged) || $paged == 0) {\n\t\t$paged = 1;\n\t}\n\t$pages_to_show = 7;\n\t$pages_to_show_minus_1 = $pages_to_show-1;\n\t$half_page_start = floor($pages_to_show_minus_1/2);\n\t$half_page_end = ceil($pages_to_show_minus_1/2);\n\t$start_page = $paged - $half_page_start;\n\tif($start_page <= 0) {\n\t\t$start_page = 1;\n\t}\n\t$end_page = $paged + $half_page_end;\n\tif(($end_page - $start_page) != $pages_to_show_minus_1) {\n\t\t$end_page = $start_page + $pages_to_show_minus_1;\n\t}\n\tif($end_page > $max_page) {\n\t\t$start_page = $max_page - $pages_to_show_minus_1;\n\t\t$end_page = $max_page;\n\t}\n\tif($start_page <= 0) {\n\t\t$start_page = 1;\n\t}\n\techo $before.'<nav class=\"page-navigation\"><ol class=\"grav_page_navi clearfix\">'.\"\";\n\tif ($start_page >= 2 && $pages_to_show < $max_page) {\n\t\t$first_page_text = \"First\";\n\t\techo '<li class=\"bpn-first-page-link\"><a href=\"'.get_pagenum_link().'\" title=\"'.$first_page_text.'\">'.$first_page_text.'</a></li>';\n\t}\n\techo '<li class=\"bpn-prev-link\">';\n\tprevious_posts_link('<<');\n\techo '</li>';\n\tfor($i = $start_page; $i <= $end_page; $i++) {\n\t\tif($i == $paged) {\n\t\t\techo '<li class=\"bpn-current\">'.$i.'</li>';\n\t\t} else {\n\t\t\techo '<li><a href=\"'.get_pagenum_link($i).'\">'.$i.'</a></li>';\n\t\t}\n\t}\n\techo '<li class=\"bpn-next-link\">';\n\tnext_posts_link('>>');\n\techo '</li>';\n\tif ($end_page < $max_page) {\n\t\t$last_page_text = \"Last\";\n\t\techo '<li class=\"bpn-last-page-link\"><a href=\"'.get_pagenum_link($max_page).'\" title=\"'.$last_page_text.'\">'.$last_page_text.'</a></li>';\n\t}\n\techo '</ol></nav>'.$after.\"\";\n}", "function pixelgrade_get_the_posts_pagination( $args = array() ) {\n\t\t// Put our own defaults in place\n\t\t$args = wp_parse_args(\n\t\t\t$args, array(\n\t\t\t\t'end_size' => 1,\n\t\t\t\t'mid_size' => 2,\n\t\t\t\t'type' => 'list',\n\t\t\t\t'prev_text' => esc_html_x( '&laquo; Previous', 'previous set of posts', '__components_txtd' ),\n\t\t\t\t'next_text' => esc_html_x( 'Next &raquo;', 'next set of posts', '__components_txtd' ),\n\t\t\t\t'screen_reader_text' => esc_html__( 'Posts navigation', '__components_txtd' ),\n\t\t\t)\n\t\t);\n\n\t\treturn get_the_posts_pagination( $args );\n\t}", "public function get_adjacent_page( $post_id = 0 ) {\r\n\r\n\t\tif( empty( $post_id ) )\r\n\t\t\treturn false;\r\n\r\n\t\t// not great but let's be consistent and have the same order than toc..\r\n\t\t$adjacent_pages = new stdClass();\r\n\r\n\t\t// Setup possible post__not_in array\r\n\t\t$post_status[] = 'publish';\r\n\r\n\t\t// Check if user can read private forums\r\n\t\tif ( current_user_can( 'read_private_manuals' ) )\r\n\t\t\t$post_status[] = 'private';\r\n\t\r\n\t\t$query_args = array(\r\n\t\t\t'post_status'\t => implode( ',', $post_status ),\r\n\t\t\t'post_type'\t => wpmanual_get_post_type(),\r\n\t\t\t'posts_per_page' => -1,\r\n\t\t\t'paged'\t\t => false,\r\n\t\t\t'orderby' => 'menu_order',\r\n\t\t\t'order' => 'ASC'\r\n\t\t);\r\n\r\n\t\t$all = new WP_Query( $query_args );\r\n\r\n\t\tif( false === wp_cache_add( 'manual_table_content', $all, 'wpmanual_all_page' ) )\r\n\t\t\twp_cache_set( 'manual_table_content', $all, 'wpmanual_all_page' );\r\n\r\n\t\t$adjacent_pages->prev = $adjacent_pages->next = false;\r\n\r\n\t\tforeach( $all->posts as $post ) {\r\n\t\t\t$order[] = $post->ID;\r\n\t\t}\r\n\r\n\t\t$key = array_search( $post_id, $order );\r\n\r\n\t\tif( false !== $key ) {\r\n\t\t\t$adjacent_pages->prev = !empty( $order[$key-1] ) ? $order[$key-1] : false;\r\n\t\t\t$adjacent_pages->next = !empty( $order[$key+1] ) ? $order[$key+1] : false;\r\n\t\t}\r\n\r\n\t\treturn $adjacent_pages;\r\n\t}", "function flexfour_content_nav( $html_id ) {\n\tglobal $wp_query;\n\n\t$html_id = esc_attr( $html_id );\n\n\tif ( $wp_query->max_num_pages > 1 ) : ?>\n\t\t<nav id=\"<?php echo $html_id; ?>\" class=\"navigation\" role=\"navigation\">\n\t\t\t<h3 class=\"assistive-text\"><?php _e( 'Post navigation', 'flexfour' ); ?></h3>\n\t\t\t<div class=\"nav-previous alignleft\"><?php next_posts_link( __( '<span class=\"meta-nav\">&larr;</span> Older posts', 'flexfour' ) ); ?></div>\n\t\t\t<div class=\"nav-next alignright\"><?php previous_posts_link( __( 'Newer posts <span class=\"meta-nav\">&rarr;</span>', 'flexfour' ) ); ?></div>\n\t\t</nav><!-- #<?php echo $html_id; ?> .navigation -->\n\t<?php endif;\n}", "function adjacent_posts_rel_link_wp_head()\n {\n }", "function ci_pagination($args=array())\n{ \n\t$defaults = array(\n\t\t'container_id' => 'paging',\n\t\t'container_class' => 'navigation group',\n\t\t'prev_link_class' => 'nav-prev alignleft shadow',\n\t\t'next_link_class' => 'nav-next alignright shadow',\n\t\t'prev_text' => __('Older posts', 'ci_theme'),\n\t\t'next_text' => __('Newer posts', 'ci_theme'),\n\t\t'wp_pagenavi_params' => array()\n\t);\n\t$args = wp_parse_args( $args, $defaults );\n\t\n\tglobal $wp_query;\n\tif ($wp_query->max_num_pages > 1): ?>\n\t\t<div \n\t\t\t<?php echo (empty($args['container_id']) ? '' : 'id=\"'.$args['container_id'].'\"'); ?> \n\t\t\t<?php echo (empty($args['container_class']) ? '' : 'class=\"'.$args['container_class'].'\"'); ?>\n\t\t>\n\t\t\t<?php if (function_exists('wp_pagenavi')): ?>\n\t\t\t\t<?php wp_pagenavi($args['wp_pagenavi_params']); ?>\n\t\t\t<?php else: ?>\n\t\t\t\t<div <?php echo (empty($args['prev_link_class']) ? '' : 'class=\"'.$args['prev_link_class'].'\"'); ?>><?php next_posts_link( '<span class=\"nav-prev-symbol nav-symbol\">&laquo;</span> ' . $args['prev_text'] ); ?></div>\n\t\t\t\t<div <?php echo (empty($args['next_link_class']) ? '' : 'class=\"'.$args['next_link_class'].'\"'); ?>><?php previous_posts_link( $args['next_text'] . ' <span class=\"nav-next-symbol nav-symbol\">&raquo;</span>' ); ?></div>\n\t\t\t<?php endif; ?>\n\t\t</div>\n\t<?php endif;\n}", "function darksnow_content_nav( $nav_id ) {\n\tglobal $wp_query;\n\n\tif ( $wp_query->max_num_pages > 1 ) : ?>\n\t\t<nav id=\"<?php echo $nav_id; ?>\">\n\t\t\t<h3 class=\"assistive-text\"><?php _e( 'Post navigation', 'darksnow' ); ?></h3>\n\t\t\t<div class=\"nav-previous\"><?php next_posts_link( __( '<span class=\"meta-nav\">&larr;</span> Older posts', 'darksnow' ) ); ?></div>\n\t\t\t<div class=\"nav-next\"><?php previous_posts_link( __( 'Newer posts <span class=\"meta-nav\">&rarr;</span>', 'darksnow' ) ); ?></div>\n\t\t</nav><!-- #nav-above -->\n\t<?php endif;\n}", "function next_posts_link($label = \\null, $max_page = 0)\n {\n }", "public function next_post()\n {\n }", "function get_next_post_link($format = '%link &raquo;', $link = '%title', $in_same_term = \\false, $excluded_terms = '', $taxonomy = 'category')\n {\n }", "function frg_list_pages_with_intro( $args ) {\n\n global $post;\n\n if ( $post->post_parent ) {\n $grandfather = array_reverse( get_post_ancestors( $post->ID ) )[0];\n $is_current_page_item = false;\n } else {\n $grandfather = $post->ID;\n $is_current_page_item = true;\n }\n\n ?><li class=\"page_item page-item-<?php echo $grandfather; ?><?php if ($is_current_page_item) echo \" current_page_item\"; ?>\">\n <a href=\"<?php echo the_permalink($grandfather); ?>\"><?php echo get_the_title($grandfather) ?> Intro</a>\n </li><?php\n\n wp_list_pages( $args );\n}", "public function show(post $post)\n {\n //\n }", "public function show(post $post)\n {\n //\n }", "function ph_display_page_children($post)\n{\n\n $html = '';\n if ($post) {\n $args = array(\n 'post_status' => 'publish',\n 'post_type' => 'page',\n 'post_parent' => $post->ID,\n 'orderby' => 'menu_order',\n 'order' => 'ASC',\n 'nopaging' => true,\n );\n\n query_posts($args);\n\n if (have_posts()) {\n $html = '<ul class=\"page-children ph-page-children\">';\n while (have_posts()) {\n the_post();\n $html .= '<li>'.get_the_title().' · '.get_the_excerpt().'</li>';\n }\n $html .= '</ul>';\n }\n\n wp_reset_query();\n }\n\n return $html;\n}", "function voyage_mikado_get_single_html() {\n\n $post_format = get_post_format();\n $supported_post_formats = array('audio', 'video', 'link', 'quote', 'gallery');\n if(in_array($post_format, $supported_post_formats)) {\n $post_format = $post_format;\n } else {\n $post_format = 'standard';\n }\n\t\t$params = array();\n\t\t$params['time_j'] = 'j';\n\t\t$params['time_m'] = 'M';\n\n //Related posts\n $related_posts_params = array();\n $show_related = (voyage_mikado_options()->getOptionValue('blog_single_related_posts') == 'yes') ? true : false;\n if($show_related) {\n $hasSidebar = voyage_mikado_sidebar_layout();\n $post_id = get_the_ID();\n $related_post_number = ($hasSidebar == '' || $hasSidebar == 'default' || $hasSidebar == 'no-sidebar') ? 4 : 3;\n $related_posts_options = array(\n 'posts_per_page' => $related_post_number\n );\n $related_posts_params = array(\n 'related_posts' => voyage_mikado_get_related_post_type($post_id, $related_posts_options)\n );\n }\n\n $single_options_template = voyage_mikado_options()->getOptionValue('blog_single_type');\n\n voyage_mikado_get_module_template_part('templates/single/post-formats/'.$post_format, 'blog', $single_options_template, $params);\n voyage_mikado_get_module_template_part('templates/single/parts/author-info', 'blog');\n voyage_mikado_get_single_post_navigation_template();\n if($show_related) {\n voyage_mikado_get_module_template_part('templates/single/parts/related-posts', 'blog', '', $related_posts_params);\n }\n comments_template('', true);\n\n }", "function kcsite_content_nav( $nav_id ) {\n\tglobal $wp_query;\n\n\tif ( $wp_query->max_num_pages > 1 ) : ?>\n\t\t<nav id=\"<?php echo $nav_id; ?>\" class=\"navigation\" role=\"navigation\">\n\t\t\t<h3 class=\"assistive-text\"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3>\n\t\t\t<div class=\"nav-previous alignleft\"><?php next_posts_link( __( '<span class=\"meta-nav\">&larr;</span> Older posts', 'twentytwelve' ) ); ?></div>\n\t\t\t<div class=\"nav-next alignright\"><?php previous_posts_link( __( 'Newer posts <span class=\"meta-nav\">&rarr;</span>', 'twentytwelve' ) ); ?></div>\n\t\t</nav><!-- #<?php echo $nav_id; ?> .navigation -->\n\t<?php endif;\n}", "function get_next_posts_link($label = \\null, $max_page = 0)\n {\n }", "function ivan_paging_nav() {\r\n\r\n\tglobal $wp_query;\r\n\r\n\t?>\r\n\t<nav class=\"navigation paging-navigation\" role=\"navigation\">\r\n\t\t<h1 class=\"hidden\"><?php _e( 'Posts navigation', 'ivan_domain' ); ?></h1>\r\n\t\t\t\r\n\t\t<div class=\"nav-links\">\r\n\r\n\t\t\t<?php\r\n\r\n\t\t\t$prev_icon = 'fa-angle-left';\r\n\t\t\t$next_icon = 'fa-angle-right';\r\n\r\n\t\t\tif( true == is_rtl() ) {\r\n\t\t\t\t$prev_icon = 'fa-angle-right';\r\n\t\t\t\t$next_icon = 'fa-angle-left';\r\n\t\t\t}\r\n\r\n\t\t\t$big = 999999999; // need an unlikely integer\r\n\r\n\t\t\techo paginate_links( array(\r\n\t\t\t\t'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),\r\n\t\t\t\t'format' => '?paged=%#%',\r\n\t\t\t\t'current' => max( 1, get_query_var('paged') ),\r\n\t\t\t\t'total' => $wp_query->max_num_pages,\r\n\t\t\t\t'prev_text' \t=> '<i class=\"fa '.$prev_icon.'\"></i>',\r\n\t\t\t\t'next_text' \t=> '<i class=\"fa '.$next_icon.'\"></i>',\r\n\t\t\t\t'end_size'\t\t=> 3,\r\n\t\t\t\t'mid_size'\t\t=> 3,\r\n\t\t\t\t'type' \t\t\t=> 'plain',\r\n\t\t\t) );\r\n\t\t\t?>\r\n\r\n\t\t</div><!-- .nav-links -->\r\n\t</nav><!-- .navigation -->\r\n\r\n\t<?php\r\n}" ]
[ "0.75898486", "0.7496031", "0.7496031", "0.7487899", "0.73777866", "0.73342717", "0.7298789", "0.71863395", "0.7179726", "0.7125118", "0.68551034", "0.675901", "0.6732457", "0.6606809", "0.65909296", "0.6575774", "0.65264493", "0.6522684", "0.6503385", "0.64939725", "0.64800996", "0.64795184", "0.6474506", "0.64736676", "0.6428439", "0.64199996", "0.64148825", "0.6389464", "0.6388113", "0.6360569", "0.63597226", "0.6342032", "0.631404", "0.6290577", "0.62280613", "0.622047", "0.6217187", "0.61932296", "0.61417437", "0.60799575", "0.60703504", "0.6053228", "0.60212404", "0.5985223", "0.59793884", "0.5935679", "0.5893211", "0.5875357", "0.5846737", "0.5830521", "0.5829374", "0.58277214", "0.5817575", "0.581381", "0.5812337", "0.5810668", "0.58002883", "0.57856524", "0.57852554", "0.5772803", "0.5770518", "0.57653064", "0.57613826", "0.5759846", "0.5751677", "0.5751385", "0.57482713", "0.57434034", "0.57237583", "0.57205987", "0.57033926", "0.56868804", "0.5664956", "0.56499684", "0.56471795", "0.5636494", "0.5618886", "0.56150573", "0.5600107", "0.55992913", "0.5595608", "0.55584943", "0.5552826", "0.55492985", "0.55426204", "0.55353737", "0.55351245", "0.5533568", "0.5530902", "0.55235505", "0.5514538", "0.5512743", "0.5507608", "0.55067515", "0.55067515", "0.5504001", "0.5502229", "0.5496029", "0.54959244", "0.54953426" ]
0.6128568
39
Display author biography in single.
function circle_author_biography() { if ( ! circle_option( 'display_author_bio' ) ) { return; } get_template_part( 'template-parts/biography' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cosmetro_post_author_bio() {\n\t$is_enabled = get_theme_mod( 'single_author_block', cosmetro_theme()->customizer->get_default( 'single_author_block' ) );\n\n\tif ( ! $is_enabled ) {\n\t\treturn;\n\t}\n\n\tget_template_part( 'template-parts/content', 'author-bio' );\n\n}", "protected function getBio()\n\t{\n\t\treturn apply_filters('the_author_description', $this->rawDescription, $this->id);\n\t}", "function showAuthor()\n {\n $this->out->elementStart('div', 'author');\n\n $this->out->elementStart('span', 'vcard author');\n\n $attrs = array('href' => $this->profile->profileurl,\n 'class' => 'url',\n 'title' => $this->profile->nickname);\n\n $this->out->elementStart('a', $attrs);\n $this->showAvatar();\n $this->out->text(' ');\n $user = common_current_user();\n if (!empty($user) && $user->streamNicknames()) {\n $this->out->element('span',array('class' => 'fn'),\n $this->profile->nickname);\n } else {\n $this->out->element('span',array('class' => 'fn'),\n $this->profile->getBestName());\n }\n $this->out->elementEnd('a');\n\n $this->out->elementEnd('span');\n\n $this->showAddressees();\n\n $this->out->elementEnd('div');\n }", "function render_block_core_post_author_biography($attributes, $content, $block)\n {\n }", "function cera_grimlock_the_author_biography( $args ) {\n\t\tif ( ! empty( $args['post_author_biography_displayed'] ) && '' !== get_the_author_meta( 'description' ) && 'post' === get_post_type() ) {\n\t\t\tcera_the_author_biography();\n\t\t}\n\t}", "public function biography();", "function register_block_core_post_author_biography()\n {\n }", "function devlySimpleAuthor() { \n\n\t$authID = get_the_author_meta('ID'); \n\t$size\t= '78';\n\t\n\t?>\n\n\t<div id=\"authorBioContainer\">\n\t\t\n\t\t<div class=\"gravatar\"><?php echo get_avatar($authID, $size); ?></div>\n\t\t\n\t\t<div class=\"aboutAuthor\">\n\t\t\t<h3 class=\"authorName\"><?php the_author(); ?></h3>\n\t\t\t<p><?php echo get_the_author_meta('description') ?></p>\n\t\t</div>\n\t\t\n\t</div>\n\t\n\t<?php\n\n}", "public function get_author_description() {\n\t\t\t$user = get_userdata( intval( $this->instance['user_id'] ) );\n\n\t\t\tif ( ! $user ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\treturn sprintf(\n\t\t\t\t'<div class=\"about-author_description\">%s</div>',\n\t\t\t\twp_filter_post_kses( $user->description )\n\t\t\t);\n\t\t}", "public function getAuthor() {}", "public function getAuthorname() {}", "public function getAuthor();", "public function getAuthor();", "public function getAuthor();", "public function authors_tab_content() {\n\t\techo '<h2>Authors</h2>';\n\t\t$content = get_post_meta( get_the_ID(), 'authordesc', true );\n\t\t$content = htmlspecialchars_decode( $content );\n\t\t$content = wpautop( $content );\n\t\techo $content;\n\t}", "function get_the_author_description()\n {\n }", "public function author()\n {\n $this->renderView('author.twig',['articleList' => $this->articleList]);\n }", "function print_author_tag() {\n\t\t\n\t\techo \"<meta name='author' content='{$this->options->site_author}' />\\r\\n\";\n\t}", "abstract public function getAuthor();", "private function maybe_render_author_box() {\n\t\t$author_description = get_the_author_meta( 'description' );\n\t\tif ( empty( $author_description ) ) {\n\t\t\treturn;\n\t\t}\n\t\t?>\n\t\t<div class=\"card card-profile card-plain\">\n\t\t\t<div class=\"row\">\n\t\t\t\t<div class=\"col-md-2\">\n\t\t\t\t\t<div class=\"card-avatar\">\n\t\t\t\t\t\t<a href=\"<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>\"\n\t\t\t\t\t\t\t\ttitle=\"<?php echo esc_attr( get_the_author() ); ?>\"><?php echo get_avatar( get_the_author_meta( 'ID' ), 100 ); ?></a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"col-md-10\">\n\t\t\t\t\t<h4 class=\"card-title\"><?php the_author(); ?></h4>\n\t\t\t\t\t<p class=\"description\"><?php the_author_meta( 'description' ); ?></p>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<?php\n\t}", "function the_author_description()\n {\n }", "public function get_author()\n {\n return 'Chris Graham';\n }", "public function get_author()\n {\n return 'Chris Graham';\n }", "public function get_author()\n {\n return 'Chris Graham';\n }", "public function get_author()\n {\n return 'Chris Graham';\n }", "public function get_author()\n {\n return 'Chris Graham';\n }", "public function get_author()\n {\n return 'Chris Graham';\n }", "public function get_author()\n {\n return 'Kamen Blaginov';\n }", "public function get_author()\n {\n return 'Kamen Blaginov';\n }", "public function author();", "public function get_author()\n\t{\n\t\treturn '';\n\t}", "function pixelgrade_get_the_author_info_box() {\n\t\t// Get the current post for easy use\n\t\t$post = get_post();\n\n\t\t// Bail if no post\n\t\tif ( empty( $post ) ) {\n\t\t\treturn '';\n\t\t}\n\n\t\t// If we aren't on a single post or it's a single post without author, don't continue.\n\t\tif ( ! is_single() || ! isset( $post->post_author ) ) {\n\t\t\treturn '';\n\t\t}\n\n\t\t$options = get_theme_support( 'jetpack-content-options' );\n\t\t$author_bio = ( ! empty( $options[0]['author-bio'] ) ) ? $options[0]['author-bio'] : null;\n\t\t$author_bio_default = ( isset( $options[0]['author-bio-default'] ) && false === $options[0]['author-bio-default'] ) ? '' : 1;\n\n\t\t// If the theme doesn't support 'jetpack-content-options[ 'author-bio' ]', don't continue.\n\t\tif ( true !== $author_bio ) {\n\t\t\treturn '';\n\t\t}\n\n\t\t// If 'jetpack_content_author_bio' is false, don't continue.\n\t\tif ( ! get_option( 'jetpack_content_author_bio', $author_bio_default ) ) {\n\t\t\treturn '';\n\t\t}\n\n\t\t// Get author's biographical information or description\n\t\t$user_description = get_the_author_meta( 'user_description', $post->post_author );\n\t\t// If an author doesn't have a description, don't display the author info box\n\t\tif ( empty( $user_description ) ) {\n\t\t\treturn '';\n\t\t}\n\n\t\t$author_details = '';\n\n\t\t// Get author's display name\n\t\t$display_name = get_the_author_meta( 'display_name', $post->post_author );\n\n\t\t// If display name is not available then use nickname as display name\n\t\tif ( empty( $display_name ) ) {\n\t\t\t$display_name = get_the_author_meta( 'nickname', $post->post_author );\n\t\t}\n\n\t\tif ( ! empty( $user_description ) ) {\n\t\t\t$author_details .= '<div class=\"c-author has-description\" itemscope itemtype=\"http://schema.org/Person\">';\n\t\t} else {\n\t\t\t$author_details .= '<div class=\"c-author\" itemscope itemtype=\"http://schema.org/Person\">';\n\t\t}\n\n\t\t// The author avatar\n\t\t$author_avatar = get_avatar( get_the_author_meta( 'user_email' ), 100 );\n\t\tif ( ! empty( $author_avatar ) ) {\n\t\t\t$author_details .= '<div class=\"c-author__avatar\">' . $author_avatar . '</div>';\n\t\t}\n\n\t\t$author_details .= '<div class=\"c-author__details\">';\n\n\t\tif ( ! empty( $display_name ) ) {\n\t\t\t$author_details .= '<span class=\"c-author__name h3\">' . esc_html( $display_name ) . '</span>';\n\t\t}\n\n\t\t// The author bio\n\t\tif ( ! empty( $user_description ) ) {\n\t\t\t$author_details .= '<p class=\"c-author__description\" itemprop=\"description\">' . nl2br( $user_description ) . '</p>';\n\t\t}\n\n\t\t$author_details .= '<footer class=\"c-author__footer\">';\n\n\t\t$author_details .= pixelgrade_get_author_bio_links( $post->ID );\n\n\t\t$author_details .= '</footer>';\n\t\t$author_details .= '</div><!-- .c-author__details -->';\n\t\t$author_details .= '</div><!-- .c-author -->';\n\n\t\treturn $author_details;\n\t}", "function wpb_author_info_box( $content ) {\n \n\tglobal $post;\n\t \n\t// Detect if it is a single post with a post author\n\tif ( is_single() && isset( $post->post_author ) ) {\n\t \n\t\t// Get author's display name \n\t\t$display_name = get_the_author_meta( 'display_name', $post->post_author );\n\t \n\t// If display name is not available then use nickname as display name\n\tif ( empty( $display_name ) )\n\t$display_name = get_the_author_meta( 'nickname', $post->post_author );\n\t \n\t\t// Get author's biographical information or description\n\t\t$user_description = get_the_author_meta( 'user_description', $post->post_author );\n\t\t \n\t\t// Get author's website URL \n\t\t$user_website = get_the_author_meta('url', $post->post_author);\n\t\t \n\t\t// Get link to the author archive page\n\t\t$user_posts = get_author_posts_url( get_the_author_meta( 'ID' , $post->post_author));\n\t \n\tif ( ! empty( $display_name ) )\n\n\t\t// If author has a biography, display the bio box...\n\t\tif (get_the_author_meta('description')) {\n\t\t\t\t$author_details = '<div class=\"panel-title\"><p class=\"author_name\">Posted by <a class=\"blue-color\" href=\"'. $user_posts .'\"> ' . $display_name . '</a></p></div>';\n\t \t\t}\n\n\tif ( ! empty( $user_description ) )\n\t\n\t\t// If author bio is not blank...\n\t\tif (get_the_author_meta('description')) {\n\t\t\t// Author avatar and bio\n\t\t\t$author_details .= '<p class=\"author_details\">' . get_avatar( get_the_author_meta('user_email') , 90 ) . nl2br( $user_description ). '</p>';\n\t\t}\n\n\t\t// If author bio is not blank... \n\t\t\tif (get_the_author_meta('description')) {\n\t\t\t\t// Pass all this info to post content \n\t\t\t\t$content = $content . '<footer class=\"author_bio_section\" >' . $author_details . '</footer>';\n\t\t\t}\n\t\t}\n\n\treturn $content;\n\n\t}", "public function getBiography()\n {\n return 'Etienne is passionate about clean code, Good music '\n . 'and great coffee. He loves coding for the web and create '\n . 'amazing api\\'s';\n }", "function GetAuthor()\n {\n return 'calguy1000';\n }", "function pantomime_author_box(){\n\tif ( is_single() ) :\n\t// Get the author email -> for Gravatar\n\t$author_email = get_the_author_meta('user_email');\n\t\t\n\t// Get the author description\n\t$author_description = get_the_author_meta('description');\t\n\t?>\n\n\t<div id=\"author-box\" class=\"emboss\">\n\t\t<h4 class=\"section-title\"><?php _e('About The Author', 'pantomime'); ?></h4>\n\t\t<?php\n\t\t\techo get_avatar($author_email, 50, '');\n\t\t\techo '<p>' . get_the_author_link() . ' - ' . $author_description . '</p>';\n\t\t?>\n\t</div>\n\t\n\t<?php\n\tendif;\n}", "function author($id)\n{\n global $app;\n\n $details = $app->calibre->authorDetails($id);\n if (is_null($details)) {\n $app->getLog()->debug(\"no author\");\n $app->notFound();\n }\n $app->render('author_detail.html', [\n 'page' => mkPage(getMessageString('author_details'), 3, 2),\n 'author' => $details['author'],\n 'books' => $details['books']]);\n}", "function GetAuthor()\n {\n return 'texus';\n }", "function render_block_core_post_author_name($attributes, $content, $block)\n {\n }", "function get_the_author_aim()\n {\n }", "public function show()\n {\n return view('authors.add_author');\n }", "function getBio() {\n return $this->bio;\n }", "public function getAuthorName()\n {\n return 'Fightmaster.publication.author.name';\n }", "public function getBio()\n {\n return $this->bio;\n }", "public function getBio()\n {\n return $this->bio;\n }", "function render_block_core_post_author($attributes, $content, $block)\n {\n }", "public function getBio()\n {\n return $this->bio;\n }", "public function get_author_permastruct()\n {\n }", "function pixelgrade_get_author_bio_links( $post_id = null ) {\n\t\t$post = get_post( $post_id );\n\t\t$markup = '';\n\t\tif ( empty( $post ) ) {\n\t\t\treturn $markup;\n\t\t}\n\n\t\t$markup .= \"<span class=\\\"c-author__links\\\">\\n\";\n\n\t\t// Get link to the author archive page\n\t\t$user_posts = get_author_posts_url( get_the_author_meta( 'ID', $post->post_author ) );\n\t\t/* translators: %s: the author name */\n\t\t$markup .= '<a class=\"c-author__social-link c-author__website-link h5\" href=\"' . esc_url( $user_posts ) . '\" rel=\"author\" title=\"' . esc_attr( sprintf( esc_html__( 'View all posts by %s', '__components_txtd' ), get_the_author() ) ) . '\">' . esc_html__( 'All posts', '__components_txtd' ) . '</a>';\n\n\t\tif ( apply_filters( 'pixelgrade_allow_gravatar_author_bio_links', true ) ) {\n\t\t\t$str = wp_remote_fopen( 'https://www.gravatar.com/' . md5( strtolower( trim( get_the_author_meta( 'user_email' ) ) ) ) . '.php' );\n\t\t\t$profile = unserialize( $str );\n\t\t\tif ( is_array( $profile ) && ! empty( $profile['entry'][0]['urls'] ) ) {\n\t\t\t\tforeach ( $profile['entry'][0]['urls'] as $link ) {\n\t\t\t\t\tif ( ! empty( $link['value'] ) && ! empty( esc_url( $link['value'] ) ) && ! empty( $link['title'] ) ) {\n\t\t\t\t\t\t$markup .= '<a class=\"c-author__social-link h5\" href=\"' . esc_url( $link['value'] ) . '\" target=\"_blank\">' . $link['title'] . \"</a>\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Get author's website URL\n\t\t$user_website = get_the_author_meta( 'url', $post->post_author );\n\t\tif ( ! empty( $user_website ) ) {\n\t\t\t$markup .= '<a class=\"c-author__social-link h5\" href=\"' . esc_url( $user_website ) . '\" target=\"_blank\">' . esc_html__( 'Website', '__components_txtd' ) . \"</a>\\n\";\n\t\t}\n\t\t$markup .= \"</span>\\n\";\n\n\t\treturn $markup;\n\t}", "public function getFullName() {\r\n $authors = $this->getAuthors();\r\n foreach ($authors as $author) {\r\n echo $author->first_name . ' ' . $author->last_name .'<br>';\r\n }\r\n }", "public function getAuthor(): string\n {\n return $this->_author;\n }", "public function diviroids_user_bio($atts)\n {\n return DiviRoids_Security::get_current_user('description');\n }", "public function show(Author $author)\n {\n //\n }", "public function bio(){\n // return Auth::user()->id;\n return view('mybio');\n }", "function get_author_link($display, $author_id, $author_nicename = '')\n {\n }", "public function author()\n {\n return optional($this->author);\n }", "public function author() : string\n {\n if (isset($this->entity->author)) {\n return $this->entity->author->name;\n }\n\n return 'Sin autor';\n }", "protected function author()\n {\n if ($this->presenter->wasByCurrentUser() || !$this->wrappedObject->user_id) {\n return 'You ';\n }\n\n if (!$this->wrappedObject->security) {\n return 'This user ';\n }\n\n return $this->presenter->author().' ';\n }", "public function getAuthorLabel()\n {\n return (string) $this->_theme->themeAuthor->authorLabel;\n }", "function author_description() {\n if(get_the_author_meta('description')) {\n echo the_author_meta('description'); // Print Description If Have\n } else {\n echo '<div class=\"alert alert-danger\" role=\"alert\">No Have Description</div>';\n }\n}", "function material_design_theme_posted_by() {\n\t\t$byline = '<span class=\"author vcard\">' . get_avatar( get_the_author_meta( 'ID' ), 36 ) . '<a class=\"url fn n mdc-typography--caption\" href=\"' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '\">' . esc_html( get_the_author() ) . '</a></span>';\n\n\t\techo '<div class=\"byline\"> ' . $byline . '</div>'; // phpcs:ignore\n\n\t}", "public function authors(){\n $this->data['authors'] = $this->books_model->getAllAuthors();\n $this->render('books/authors');\n }", "public function getAuthor() \r\n { \r\n return $this->_author; \r\n }", "function netfunktheme_author_desc_shortcode( $atts ){\n\t\n\textract( shortcode_atts( array(\n\t\t'user_id' => '0'\n\t), $atts ) );\n\t\n\t$author_description = '';\n\t\n\tif ($atts['user_id'] != 0) {\n\n\t\t$author_description = get_the_author_meta('lb_about',$atts['user_id']);\n\n\t}\n\t\n\t$author_description = str_replace('/n','<br />',$author_description);\n\t$author_description = str_replace('/r','<br />',$author_description);\n\t\n\treturn '<p class=\"lb-shortcode-meta lb_author_description\">' . $author_description . '</p>';\n\t\n}", "function render_block_core_comment_author_name($attributes, $content, $block)\n {\n }", "function the_author_aim()\n {\n }", "function pixelgrade_the_author_info_box() {\n\tif ( pixelgrade_user_has_access( 'pro-features' ) ) {\n\t\techo pixelgrade_get_the_author_info_box(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped\n\t}\n}", "function about_author( $atts, $content = null ) {\n return '<div class=\"about_author\">' . $content . '</p></div>';\n}", "public function getAuthor()\n {\n return $this->author;\n }", "public function getAuthor()\n {\n return $this->author;\n }", "public function getAuthor()\n {\n return $this->author;\n }", "public function getAuthor()\n {\n return $this->author;\n }", "public function getAuthor()\n {\n return $this->author;\n }", "public function getAuthor()\n {\n return $this->author;\n }", "public function getAuthor()\n {\n return $this->author;\n }", "public function getAuthor()\n {\n return $this->author;\n }", "function the_author_firstname()\n {\n }", "function cmsmasters_post_author($template_type = 'page', $show = true) {\n\tif ($template_type == 'page') {\n\t\t$out = '<span class=\"cmsmasters_post_author\">' . \n\t\t\tesc_html__('By', 'mall') . ' ' . \n\t\t\t'<a href=\"' . esc_url(get_author_posts_url(get_the_author_meta('ID'))) . '\" title=\"' . esc_attr__('Posts by', 'mall') . ' ' . esc_attr(get_the_author_meta('display_name')) . '\" class=\"vcard author\">' . \n\t\t\t\t'<span class=\"fn\" rel=\"author\">' . esc_html(get_the_author_meta('display_name')) . '</span>' . \n\t\t\t'</a>' . \n\t\t'</span>';\n\t} elseif ($template_type == 'post') {\n\t\t$cmsmasters_option = cmsmasters_get_global_options();\n\t\t$out = '';\n\t\t\n\t\tif ($cmsmasters_option[CMSMASTERS_SHORTNAME . '_blog_post_author']) {\n\t\t\t$out .= '<span class=\"cmsmasters_post_author\">' . \n\t\t\t\tesc_html__('By', 'mall') . ' ' . \n\t\t\t\t'<a href=\"' . esc_url(get_author_posts_url(get_the_author_meta('ID'))) . '\" title=\"' . esc_attr__('Posts by', 'mall') . ' ' . esc_attr(get_the_author_meta('display_name')) . '\" class=\"vcard author\">' . \n\t\t\t\t\t'<span class=\"fn\" rel=\"author\">' . esc_html(get_the_author_meta('display_name')) . '</span>' . \n\t\t\t\t'</a>' . \n\t\t\t'</span>';\n\t\t}\n\t}\n\t\n\t\n\tif ($show) {\n\t\techo $out;\n\t} else {\n\t\treturn $out;\n\t}\n}", "function hc_author_field($field , $gravatarSize = ''){\n\t\t$info = hc_get_author_field($field , $gravatarSize);\n\t\techo $info;\n\t}", "public function getAuthor() {\n return $this->randomQuote->author_name;\n }", "public function authorLink() { return $this->post->post_author; }", "public function getUserBio();", "public function getHeaderText() \n {\n\tif ($this->_coreRegistry->registry('simpleblog_author')->getId()) \n\t{\n\t\t return __(\"Edit Author '%1'\", $this->escapeHtml($this->_coreRegistry->registry('simpleblog_author')->getTitle()));\n\t} else { return __('New Author'); }\n\t\n }", "function twenty_twenty_one_posted_by() {\n\t\tif ( ! get_the_author_meta( 'description' ) && post_type_supports( get_post_type(), 'author' ) ) {\n\t\t\techo '<span class=\"byline\">';\n\t\t\tprintf(\n\t\t\t\t/* translators: %s: Author name. */\n\t\t\t\tesc_html__( 'By %s', 'twentytwentyone' ),\n\t\t\t\t'<a href=\"' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '\" rel=\"author\">' . esc_html( get_the_author() ) . '</a>'\n\t\t\t);\n\t\t\techo '</span>';\n\t\t}\n\t}", "public function author() {\n\t\t\t\n\t\t\t$output = array();\n\n\t\t\t$author = $this->post->post_author;\n\t\t\t\n\t\t\t$output['id'] = $author;\n\t\t\t$output['nicename'] = get_the_author_meta('nickname', $author);\n\t\t\t$output['name'] = get_the_author_meta('user_firstname', $author).' '.get_the_author_meta('user_lastname', $author);\n\t\t\t$output['url'] = get_author_posts_url($author);\n\t\t\t$output['description'] = get_the_author_meta('description', $author);\n\t\t\t\n\t\t\treturn $output;\n\t\t}", "public function getAuthor() {\n return $this->author;\n }", "public function getAuthor() {\n return $this->author;\n }", "public function getAuthor() {\n return $this->author;\n }", "function get_the_author_firstname()\n {\n }", "function bio () {\n if (empty($this->bio_bio)) {\n if ( $this->page[\"Bio\"] == \"\" ) $this->openpage (\"Bio\",\"person\");\n if ( $this->page[\"Bio\"] == \"cannot open page\" ) return array(); // no such page\n if (@preg_match_all('|<h5>Mini Biography</h5>\\s*(.+)\\s+.+\\s+(.+)|',$this->page[\"Bio\"],$matches)) {\n for ($i=0;$i<count($matches[0]);++$i) {\n $bio_bio[\"desc\"] = str_replace(\"href=\\\"/name/nm\",\"href=\\\"http://\".$this->imdbsite.\"/name/nm\",\n str_replace(\"href=\\\"/title/tt\",\"href=\\\"http://\".$this->imdbsite.\"/title/tt\",\n str_replace('/SearchBios','http://'.$this->imdbsite.'/SearchBios',$matches[1][$i])));\n $author = 'Written by '.(str_replace('/SearchBios','http://'.$this->imdbsite.'/SearchBios',$matches[2][$i]));\n if (@preg_match(\"/href\\=\\\"(.*?)\\\">(.*?)<\\/a>/\",$author,$match)) {\n $bio_bio[\"author\"][\"url\"] = $match[1][$i];\n $bio_bio[\"author\"][\"name\"] = $match[2][$i];\n }\n $this->bio_bio[] = $bio_bio;\n unset($bio_bio,$author);\n }\n }\n }\n return $this->bio_bio;\n }", "function newsdot_posted_by() {\n\t\tif ( get_theme_mod( 'newsdot_show_post_author', true ) ) :\n\t\t\t?>\n\t\t\t<span class=\"byline\">\n\t\t\t\t<i class=\"far fa-user-circle\"></i>\n\t\t\t\t<span class=\"author vcard\"><a class=\"url fn n\" href=\"<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>\"><?php echo esc_html( get_the_author() ); ?></a></span>\n\t\t\t</span>\n\t\t\t<?php\n\t\tendif;\n\t}", "function index()\n {\n $this->data['pagebody'] = 'justone'; // this is the view we want shown\n // build the list of authors, to pass on to our view\n $record = $this->quotes->get(5);\n $this->data['who'] = $record['who'];\n $this->data['mug'] = $record['mug'];\n $this->data['where'] = $record['where'];\n $this->data['what'] = $record['what'];\n\n $this->render();\n }", "function the_author_lastname()\n {\n }", "public function displayRecipe()\n {\n return $this->title . \"by\" . $this->source;\n }", "function childtheme_override_author_loop() {\r\n\tglobal $post;\r\n\r\n\t$author = get_queried_object();\r\n\r\n\t$user = get_user_by('id',$author->ID);\r\n\t$userid = 'user_'.$user->ID;\r\n\r\n\t$authortitle = get_field('author-title', $userid);\r\n\r\n\techo '<article class=\"detail\">'.\"\\n\";\r\n\r\n\techo '<h2>'.$user->first_name.' '.$user->last_name.', '.$authortitle.'</h2>'.\"\\n\";\r\n\r\n\techo wpautop($user->description);\r\n\r\n\techo '</article><!-- .detail -->'.\"\\n\";\r\n}", "public function get_authors();", "function getAuthor() \n\t{\n\t\t$author = array();\n\t\tinclude_once \"./Services/MetaData/classes/class.ilMD.php\";\n\t\t$md =& new ilMD($this->getId(), 0, $this->getType());\n\t\t$md_life =& $md->getLifecycle();\n\t\tif ($md_life)\n\t\t{\n\t\t\t$ids =& $md_life->getContributeIds();\n\t\t\tforeach ($ids as $id)\n\t\t\t{\n\t\t\t\t$md_cont =& $md_life->getContribute($id);\n\t\t\t\tif (strcmp($md_cont->getRole(), \"Author\") == 0)\n\t\t\t\t{\n\t\t\t\t\t$entids =& $md_cont->getEntityIds();\n\t\t\t\t\tforeach ($entids as $entid)\n\t\t\t\t\t{\n\t\t\t\t\t\t$md_ent =& $md_cont->getEntity($entid);\n\t\t\t\t\t\tarray_push($author, $md_ent->getEntity());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn join($author, \",\");\n }", "function hc_the_author($gravatarSize = ''){\n\t\t$info = hc_get_the_author($gravatarSize);\n\t\tforeach ($info as $index => $author) {\n\t\t\tif(file_exists(get_bloginfo('stylesheet_directory').'plugins/hypercontact/templates/author.php')){\n\t\t\t\tinclude(get_bloginfo('stylesheet_directory').'plugins/hypercontact/templates/author.php');\n\t\t\t}else{\n\t\t\t\tinclude('templates/author.php');\n\t\t\t}\n\t\t}\n\n\t}", "function rdf_author_contents( $my_post, $indent ) {\n $tag = \"role:AUT\";\n rdf_open_tag( $tag, $indent );\n $arr = preg_split( \"/,/\", $my_post->post_title );\n $fullname_arr = preg_split( \"/ /\", $arr[ 0 ] );\n $lastname = $fullname_arr[ count( $fullname_arr ) - 1 ];\n $restofname = join( \" \", array_slice( $fullname_arr, 0, -1, true ) );\n $author = $lastname . \", \" . $restofname;\n echo $author;\n rdf_close_tag( $tag, 0 );\n}", "public function _author_this_post($article_id){\n\t\t$sql = \"select user from article where id='$article_id'\";\n\t\t$data = $this->fetch($sql);\n\t\t$user_id = $data['user'];\n\t\t$sql2 = \"select name, link from admin where id='$user_id'\";\n\t\t$data2 = $this->fetch($sql2);\n\t\treturn \"<a target='_blank' href='$data2[link]'>$data2[name]</a>\";\n\t}" ]
[ "0.7657638", "0.7547517", "0.7547206", "0.75058204", "0.7460733", "0.72240514", "0.71715957", "0.7164739", "0.7138854", "0.70555454", "0.7040775", "0.7028323", "0.7028323", "0.7028323", "0.69882137", "0.6946487", "0.6905544", "0.6851732", "0.6847915", "0.68396866", "0.6793034", "0.67853576", "0.67853576", "0.67853576", "0.67853576", "0.67853576", "0.67853576", "0.67517316", "0.67517316", "0.6730737", "0.6728149", "0.6725942", "0.6724468", "0.66807663", "0.6647745", "0.6645348", "0.6636158", "0.6604451", "0.65851724", "0.657137", "0.65342885", "0.6527586", "0.65029186", "0.6495268", "0.6495268", "0.64923036", "0.6480916", "0.64806074", "0.64675325", "0.644765", "0.6445779", "0.64306813", "0.64205706", "0.64088064", "0.6403639", "0.64015645", "0.6399723", "0.63836277", "0.6381297", "0.6379803", "0.6375654", "0.6372133", "0.63555515", "0.6355472", "0.63113576", "0.62942135", "0.6290462", "0.62894845", "0.6279079", "0.6279079", "0.6279079", "0.6279079", "0.6279079", "0.6279079", "0.6279079", "0.6279079", "0.62779236", "0.6275829", "0.6253489", "0.6248916", "0.62487066", "0.62368286", "0.6230106", "0.61940515", "0.6184629", "0.61765766", "0.61765766", "0.61765766", "0.61704886", "0.61643946", "0.61582726", "0.6150012", "0.61356306", "0.6109837", "0.6104319", "0.6095216", "0.60702455", "0.6066656", "0.6059707", "0.60548425" ]
0.8066546
0
Display contentpart in header.php
function circle_header_content() { get_template_part( 'template-parts/header-content' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function displayContent(){\n\t\t\tinclude('/includes/homepage.inc.php');\t\n\t\t}", "protected function getHeaderPart()\n {\n //$logo_url = ot_get_option('header_logo', 'img/logo.jpg');\n ?>\n <?= $this->version151101() ?>\n <?= $this->getBannerPart() ?>\n <?php\n }", "function display_header() {}", "function displayHeader()\n\t{\n\t\t// output locator\n\t\t$this->displayLocator();\n\n\t\t// output message\n\t\tif($this->message)\n\t\t{\n\t\t\tilUtil::sendInfo($this->message);\n\t\t}\n\t\tilUtil::infoPanel();\n\n//\t\t$this->tpl->setTitleIcon(ilUtil::getImagePath(\"icon_pd_b.gif\"),\n//\t\t\t\"\");\n\t\t$this->tpl->setTitle($this->lng->txt(\"bookmarks\"));\n\t}", "private function displayHeader()\n {\n\n $html = '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">' . \"\\n\";\n $html .= '<html xmlns=\"http://www.w3.org/1999/xhtml\">';\n $html .= '<head>' . \"\\n\";\n\n //Meta tags\n $html .= '<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />' . \"\\n\";\n $html .= '<meta name=\"description\" content=\"' . $this->pageInfo['pageDescription'] . '\" />' . \"\\n\";\n $html .= '<meta name=\"keywords\" content=\"jobs, freelance, work, design, freedom, choice, new zealand, quality\" />' . \"\\n\";\n $html .= '<link rel=\"icon\" type=\"image/png\" href=\"images/volition-icon.png\" />' . \"\\n\";\n\n //Stylesheets\n $html .= '<!-- Stylesheets -->' . \"\\n\";\n $html .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"css/styles.css\" />' . \"\\n\";\n $html .= '<!--[if lt IE 9]>' . \"\\n\";\n $html .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"css/ie.css\" />' . \"\\n\";\n $html .= '<![endif]-->' . \"\\n\";\n\n //Scripts\n //$html .= '<script type=\"text/javascript\" src=\"js/window.js\"></script>'.\"\\n\";\n\n //Page title\n $html .= '<title>Volition | ' . $this->pageInfo['pageTitle'] . '</title>' . \"\\n\";\n $html .= '</head>' . \"\\n\";\n $html .= '<body>' . \"\\n\";\n\n //Header\n $html .= '<div id=\"header\">' . \"\\n\";\n\n //Control buttons\n\n $html .= '<div id=\"headerImg\"><a href=\"index.php?page=home\"></a></div>' . \"\\n\";\n\n if ($this->model->userLoggedIn) {\n $html .= '<p class=\"controlButton\"><a href=\"index.php?page=logout\">Logout</a></p>' . \"\\n\";\n $html .= '<p class=\"userControl\">You are logged in as ' . $_SESSION['userName'] . '</p>' . \"\\n\";\n } else {\n $html .= '<p class=\"controlButton\"><a href=\"index.php?page=login\">Login</a></p>' . \"\\n\";\n $html .= '<p class=\"controlButton\"><a href=\"index.php?page=register\">Register</a></p>' . \"\\n\";\n }\n\n $html .= '<form id=\"searchForm\" method=\"post\" action=\"index.php?page=search\">';\n if ($_POST['searchInput']) {\n $html .= '<input type=\"text\" name=\"searchInput\" id=\"searchInput\" value=\"' . $_POST['searchInput'] . '\" />';\n } else {\n $html .= '<input type=\"text\" name=\"searchInput\" id=\"searchInput\" value=\"Search...\" />';\n }\n $html .= '<input type=\"submit\" class=\"submit\" name=\"searchSubmit\" id=\"searchSubmit\" value=\"Go\" />';\n $html .= '</form>';\n\n //Navbar\n $html .= $this->displayNav();\n\n $html .= '</div>' . \"\\n\";\n //Content tags\n $html .= '<div id=\"container\">' . \"\\n\";\n $html .= '<div id=\"content\" >' . \"\\n\";\n\n return $html;\n\n }", "abstract protected function displayContent();", "public static function show_header() {\n require_once Config::get('prefix') . '/templates/header.inc.php';\n }", "protected function content() {\r\n\t\t$oClassAtual = get_class($this);\r\n\r\n\t\t$oClassAtual = str_replace('app\\\\controller\\\\', '', $oClassAtual);\r\n\r\n\t\t$oClassAtual = strtolower(str_replace('Controller', '', $oClassAtual));\r\n\r\n\t\trequire_once \"app/view/\".$oClassAtual.\"/\".$this->oView->cPage.\".phtml\";\r\n\t}", "public function showPageHeader() {\n\n\t\techo $this->getPageHeader();\n\t}", "private function displayHeader(){\n\t\t\t$html = '<!doctype html>'.\"\\n\";\n\t\t\t$html .= '<!--[if LT IE 9]>'.\"\\n\";\n\t\t\t$html .= '<html class=\"ie\">'.\"\\n\";\n\t\t\t$html .= '<![endIF]-->'.\"\\n\";\n\t\t\t$html .= '<!--[if !IE]><!-->'.\"\\n\";\n\t\t\t$html .= '<html>'.\"\\n\";\n\t\t\t$html .= '<!--<![endif]-->'.\"\\n\";\n\t\t\t$html .= '<head>'.\"\\n\";\n\t\t\t$html .= '<title> PCInsight | ' .$this->pageInfo['pageTitle'].'</title>'.\"\\n\";\n\t\t\t$html .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"scripts/loadCSS.php\" />'.\"\\n\";\n\t\t\t$html .= '<link rel=\"shortcut icon\" type=\"image/png\" href=\"resources/images/favicon.png\" />'.\"\\n\";\n\t\t\t$html .= '<link rel=\"icon\" type=\"image/x-icon\" href=\"resources/images/favicon.ico\" />'.\"\\n\";\n\t\t\t$html .= '<meta charset=\"UTF-8\" />'.\"\\n\";\n\t\t\t$html .= '<meta name=\"description\" content=\"'.$this->pageInfo['pageDescription'].'\" />'.\"\\n\";\n\t\t\t$html .= '<script src=\"resources/lib/jquery-1.10.2.min.js\" type=\"text/javascript\"></script>'.\"\\n\";\n\t\t\t$html .= '<script src=\"resources/js/main.js\" type=\"text/javascript\"></script>'.\"\\n\";\n\t\t\t$html .= '</head>'.\"\\n\";\n\t\t\t$html .= '<body class=\"nojs\">'.\"\\n\";\n\t\t\t$html .= '<div id=\"topbar\" class=\"clearfix\">'.\"\\n\";\n\t\t\t$html .= '<div class=\"wrapper\">'.\"\\n\";\n\t\t\t$html .= '<div class=\"left\">'.\"\\n\";\n\t\t\t$html .= '<h1 class=\"mainHeader\"><a href=\"index.php\"><span> PC</span>insight </a></h1>'.\"\\n\";\n\t\t\t$html .= '<nav>'.\"\\n\";\n\t\t\t$html .= '<ul>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"index.php\" accesskey=\"1\"> Home </a></li>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"index.php?p=9\" accesskey=\"2\"> Articles </a></li>'.\"\\n\";\t\t\n\t\t\t$html .= '<li><a href=\"index.php?p=10\" accesskey=\"3\"> About </a></li>'.\"\\n\";\n\t\t\t$html .= '</ul>'.\"\\n\";\n\t\t\t$html .= '</nav>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '<div class=\"mobilenav\">'.\"\\n\";\n\t\t\t$html .= '<span class=\"mobileNavBu\"></span>'.\"\\n\";\n\t\t\t$html .= '<div class=\"menu\">'.\"\\n\";\n\t\t\t$html .= '<ul>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"index.php\"> Home </a></li>'.\"\\n\"; \n\t\t\t$html .= '<li><a href=\"index.php?p=9\"> Articles </a></li>'.\"\\n\"; \t\t\t\n\t\t\t$html .= '<li><a href=\"index.php?p=10\"> About </a></li>'.\"\\n\";\n\t\t\tif (!(isset($_SESSION['username']))){\n\t\t\t\t$html .= '<li><a href=\"index.php?p=2\" accesskey=\"4\"> Login </a></li>'.\"\\n\";\n\t\t\t\t$html .= '<li><a href=\"index.php?p=3\" accesskey=\"5\"> Register </a></li>'.\"\\n\";\n\t\t\t} else {\n\t\t\t\tif ($this->model->isAdmin()){\n\t\t\t\t\t$html .= '<li><a href=\"admin/\"> Admin </a></li>'.\"\\n\";\n\t\t\t\t}\n\t\t\t\t$html .= '<li><a href=\"index.php?p=5\" accesskey=\"6\"> Logout </a></li>'.\"\\n\";\n\t\t\t}\n\t\t\t$html .= '</ul>'.\"\\n\";\n\t\t\t$html .= '<form action=\"index.php\" method=\"get\">'.\"\\n\";\n\t\t\t$html .= '<input type=\"hidden\" name=\"p\" value=\"7\"/>'.\"\\n\";\n\t\t\t$html .= '<input type=\"text\" class=\"search\" placeholder=\"Search\" name=\"q\" value=\"'.$_GET['q'].'\"/>'.\"\\n\";\n\t\t\t$html .= '<input type=\"submit\" class=\"btn blue small\" value=\"search\"/>'.\"\\n\";\n\t\t\t$html .= '</form>'.\"\\n\";\t\t\t\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '<div class=\"right\">'.\"\\n\";\n\t\t\tif (!(isset($_SESSION['username']))){\n\t\t\t\t$html .= '<div class=\"login\">'.\"\\n\";\n\t\t\t\t$html .= '<a href=\"index.php?p=2\"> Login </a>'.\"\\n\";\n\t\t\t\t$html .= '<a href=\"index.php?p=3\"> Register </a>'.\"\\n\";\n\t\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t} else {\n\t\t\t\t$html .= '<div class=\"login\">'.\"\\n\";\n\t\t\t\t$html .= '<a href=\"index.php?p=5\"> Logout </a>'.\"\\n\";\n\t\t\t\tif ($this->model->isAdmin()){\n\t\t\t\t\t$html .= '<a href=\"admin/\"> Admin </a>'.\"\\n\";\n\t\t\t\t}\n\t\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t}\n\t\t\t$html .= '<div class=\"search\">'.\"\\n\";\n\t\t\t$html .= '<form action=\"index.php\" method=\"get\">'.\"\\n\"; \n\t\t\t$html .= '<input type=\"hidden\" name=\"p\" value=\"7\"/>'.\"\\n\";\n\t\t\t$html .= '<input type=\"text\" class=\"search\" placeholder=\"Search\" name=\"q\" value=\"'.$_GET['q'].'\"/>'.\"\\n\";\n\t\t\t$html .= '<input type=\"submit\" class=\"btn blue small\" value=\"Search\" />'.\"\\n\";\n\t\t\t$html .= '</form>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\tif (!$this->db->isRegistered()){\n\t\t\t\t$html .= '<div class=\"register\"><p> Please register your account <a href=\"index.php?p=13\">here</a></p></div>';\n\t\t\t}\n\t\t\treturn $html;\n\t\t}", "function showContent()\n {\n // FIXME: URL, image, video, audio\n $this->out->elementStart('p', array('class' => 'entry-content'));\n \n \n $this->out->raw($this->notice->content);\n //$this->out->raw(common_render_content($this->notice->content, $this->notice));\n /*\n if ($this->notice->rendered) {\n $this->out->raw($this->notice->rendered);\n } else {\n // XXX: may be some uncooked notices in the DB,\n // we cook them right now. This should probably disappear in future\n // versions (>> 0.4.x)\n $this->out->raw(common_render_content($this->notice->content, $this->notice));\n }\n */\n $this->out->elementEnd('p');\n }", "public function show()\n {\n require_once BFT_PATH_BASE.DS.'templates'.DS.'html-header.php';\n if ($this->section != 'start' and $this->template != 'infos') require_once BFT_PATH_BASE.DS.'templates'.DS.'box-header.php';\n require_once BFT_PATH_BASE.DS.'templates'.DS.$this->template.'.php';\n if ($this->section != 'start' and $this->template != 'infos') require_once BFT_PATH_BASE.DS.'templates'.DS.'box-footer.php';\n require_once BFT_PATH_BASE.DS.'templates'.DS.'html-footer.php';\n }", "public function header()\n {\n echo \"<!doctype html>\\n<html lang='pt'>\\n<head>\\n\";\n echo \"\\t<meta charset='UTF-8'>\\n\";\n echo \"\\t<title>{$this->controller->getTitle()}</title>\\n\";\n $this->links();\n echo \"</head>\\n<body>\\n\";\n }", "function display_portal_header()\r\n {\r\n Display :: header(null);\r\n }", "protected function displayContent() {\r\n\t\t$this -> model -> processLogout();\r\n\t\theader('Location: index.php?page=home');\r\n\t}", "public function displayContentOverview() {}", "public static function showHeader() {\r\n\t\t$title = (array_key_exists('headertitle', $_SESSION))?\r\n\t\t\t$_SESSION['headertitle']:\"\";\r\n\t\t\r\n\t\techo \"<!DOCTYPE html>\\n\";\r\n\t\techo \"<html>\\n\";\r\n\t\techo \"<head>\\n\";\r\n\t\techo \"<title>$title</title>\\n\";\r\n\t\techo \"</head>\\n\\t<body>\\n\";\r\n }", "abstract public function header();", "function Header(){\n\t\t}", "public function render_content() {\n\t}", "abstract protected function header();", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "public function render_content()\n {\n }", "protected function content_template()\n\t{\n\t\t//\n\t}", "function Pmx_Header($head, $isContent = false)\n{\n\tglobal $context, $txt, $scripturl, $user_info, $settings;\n\n\t$allowMan = (AllowedToBlog('manager') && isOwner($head['userid']));\n\t$ContLink = isset($_GET['cont']) && !empty($_GET['cont']) ? ';cont='.$_GET['cont'] : '';\n\t$cameFrom = !empty($_GET['cfr']) ? $_GET['cfr'] : ';cfr='. $context['PmxBlog']['mode'];\n\t$isModerator = isModerator($head['userid']);\n\n\techo '\n\t<span class=\"upperframe\"><span></span></span>\n\t<div class=\"roundframe pmx_roundcore\">\n\t<table style=\"padding:0px; margin:0px;\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n\t\t<tr>\n\t\t\t<td rowspan=\"2\" align=\"center\" valign=\"middle\">\n\t\t\t\t<div style=\"width:84px; padding:2px 6px 2px 2px;\">'.\n\t\t\t\t\t($head['settings']{2} == '1'\n\t\t\t\t\t? ($context['PmxBlog']['blog_rd_acs']\n\t\t\t\t\t\t? '<a href=\"'. $scripturl .'?action=pmxblog;sa=view;uid='. $head['userid'].'\">'.$head['avatar'].'</a>'\n\t\t\t\t\t\t: $head['avatar']\n\t\t\t\t\t\t)\n\t\t\t\t\t: ($context['PmxBlog']['blog_rd_acs']\n\t\t\t\t\t\t? '<a href=\"'. $scripturl .'?action=pmxblog;sa=view;uid='. $head['userid'].'\"><img src=\"' . $settings['default_images_url'] .'/PmxBlog/noavatar.gif\" alt=\"*\" /></a>'\n\t\t\t\t\t\t: ''\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t.'</div>\n\t\t\t</td>\n\t\t\t<td class=\"plainbox\" style=\"background:transparent; padding:0 2px; border-width:0; border-bottom-width:1px;\" colspan=\"2\" valign=\"top\" width=\"'.($user_info['is_guest'] ? '99' : '75').'%\">\n\t\t\t\t<div style=\"height:20px; padding:5px 2px 5px 0px; font-size:20px; font-style:italic; font-family: Tahoma, Verdana, arial;\">'.\n\t\t\t\t\t($context['PmxBlog']['blog_rd_acs']\n\t\t\t\t\t\t? '<a href=\"'. $scripturl .'?action=pmxblog;sa=view;uid='. $head['userid'].'\">'.$head['blogname'].'</a>'\n\t\t\t\t\t\t: $head['blogname']\n\t\t\t\t\t)\n\t\t\t\t.'</div>\n\t\t\t\t<div class=\"smalltext\" style=\"padding:0 2px 4px 0px;\">\n\t\t\t\t'. $head['blogdesc'] .'\n\t\t\t\t</div>\n\t\t\t</td>'.\n\n\t\t(!$user_info['is_guest']\n\t\t?\t'<td valign=\"top\" align=\"right\" nowrap=\"nowrap\" style=\"padding-left:1px;\">\n\t\t\t<div style=\"width:170px;\">\n\t\t\t\t<div class=\"smalltext\" style=\"padding:0px 4px; text-align:right; height:12px;\">'.\n\t\t\t\t(!$user_info['is_guest'] && !isOwner($head['userid'])\n\t\t\t\t?\t'<a href=\"'. $scripturl .'?action=pmxblog;sa='. $context['PmxBlog']['mode'].getOwnerLink($head['userid']).$ContLink.';track\"><b>'. $txt['PmxBlog_track'] .'</b></a>&nbsp;&nbsp;'. $txt['PmxBlog_track_val'][$head['tracking']]\n\t\t\t\t:\t$txt['PmxBlog_tracked_user'].$head['tracks']\n\t\t\t\t).'\n\t\t\t\t</div>\n\t\t\t\t<div class=\"smalltext\" style=\"padding:2px 0px; text-align:right; height:12px;\">'.\n\t\t\t\t(isset($head['is_new_cont']) && $head['is_new_cont'] != '' || isset($head['is_new_cmnt']) && $head['is_new_cmnt'] > 0\n\t\t\t\t?\t'<a href=\"'. $scripturl .'?action=pmxblog;sa='. $context['PmxBlog']['mode'].getOwnerLink($head['userid']).$ContLink.';mkrd\"><b>'. $txt['PmxBlog_markread'] .'</b></a>&nbsp;'\n\t\t\t\t:\t''\n\t\t\t\t).'\n\t\t\t\t</div>\n\t\t\t\t<div style=\"padding:2px 2px 2px 2px; text-align:right; height:16px;\">'.\n\t\t\t\t($head['bloglocked'] != 0\n\t\t\t\t?\t$txt['PmxBlog_bloglockedtxt']\n\t\t\t\t:\t($head['blogenabled'] == 0\n\t\t\t\t\t?\t$txt['PmxBlog_blogdisabled']\n\t\t\t\t\t:\t($allowMan || $isModerator\n\t\t\t\t\t\t?\t($context['PmxBlog']['action'][0] != 'contnew' && $context['PmxBlog']['action'][0] != 'contedit'\n\t\t\t\t\t\t\t?\t(!$isModerator\n\t\t\t\t\t\t\t\t? '<div class=\"plainbox funclaunch\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa='. ($context['PmxBlog']['mode'] == 'list' ? 'view' : $context['PmxBlog']['mode']) .';cont=new'.getOwnerLink($head['userid']).'\">'.$txt['PmxBlog_newblog'].'</a></div>'\n\t\t\t\t\t\t\t\t: ''\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t:\t'<div class=\"plainbox funcexit\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa='.$context['PmxBlog']['mode'].$context['PmxBlog']['pageopt'].$context['PmxBlog']['UserLink'].'\" onclick=\"return confirm(\\''. $txt['PmxBlog_confirmAbort'] .'\\')\">'. ($context['PmxBlog']['action'][0] == 'contnew' ? $txt['PmxBlog_newblogabort'] : $txt['PmxBlog_editblogabort']) .'</a></div>'\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t:\t''\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t).'</div>'.\n\t\t\t'</div>\n\t\t\t</td>'\n\t\t: ''\n\t\t).'\n\n\t\t</tr><tr>\n\t\t\t<td valign=\"top\" width=\"28%\" style=\"padding:2px 2px 1px 2px;\">\n\t\t\t\t<div class=\"smalltext\">'. $txt['PmxBlog_blogowner'] .'</div>\n\t\t\t\t<div style=\"padding-top:2px;\"><a href=\"'.$scripturl.'?action=profile;u='.$head['userid'].'\"><b'.$head['onlineColor'].'>'. $head['username'] .'</b>\n\t\t\t\t</a> '. $head['gender'] .'</div>\n\t\t\t</td>\n\t\t\t<td valign=\"top\" width=\"'.($user_info['is_guest'] ? '65' : '47').'%\" style=\"padding:2px 4px 1px 0px;\">\n\t\t\t\t<div class=\"smalltext\" style=\"padding:2px;height:14px;float:left;\">'.\n\t\t\t\t$txt['PmxBlog_entries'].\n\t\t\t\t(isset($head['nbr_content'])\n\t\t\t\t?\t(empty($head['is_new_cont'])\n\t\t\t\t\t\t?\tContent_button('content', $head['nbr_content'])\n\t\t\t\t\t\t:\tContent_button('content_new', $head['nbr_content'])\n\t\t\t\t\t)\n\t\t\t\t:\tContent_button('content', '0')\n\t\t\t\t).\n\t\t\t\t(!empty($head['nbr_comment'])\n\t\t\t\t?\t' / '.$head['nbr_comment']\n\t\t\t\t:\t''\n\t\t\t\t).'</div>\n\t\t\t\t<div class=\"smalltext\" style=\"float:right;padding:2px;height:14px;\">'.$txt['PmxBlog_blog_views'].$head['blogviews'].'</div>\n\t\t\t\t<br style=\"clear:both;\" />\n\t\t\t\t<div class=\"smalltext\" style=\"padding:1px 2px;height:16px;float:left;\">'.\n\t\t\t\t($head['blogcreated'] != 0\n\t\t\t\t?\n\t\t\t\t\t($head['blogenabled'] != 0 || AllowedTo('admin_forum') || isOwner($head['userid'])\n\t\t\t\t\t?\t($context['PmxBlog']['action'][0] == 'list'\n\t\t\t\t\t\t?\t((!empty($head['nbr_content']) || (empty($head['nbr_content']) && isOwner($head['userid']) && !empty($head['hiddencont'])))\n\t\t\t\t\t\t\t?\t'<a href=\"'. $scripturl .'?action=pmxblog;sa=view'. getOwnerLink($head['userid']) .'\">'. $txt['PmxBlog_viewblog'] .'</a>'\n\t\t\t\t\t\t\t:\t(!empty($head['hiddencont']) ? '<em>'. $txt['PmxBlog_privatecontent'] .'</em>' : '')\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t:\t(!empty($context['PmxBlog']['ResetArchivdate']) || $context['PmxBlog']['pagemode'] != '' || $context['PmxBlog']['action'][0] == 'singlepage'\n\t\t\t\t\t\t\t?\t'<div class=\"plainbox funcexit2\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa='. $context['PmxBlog']['mode'].getOwnerLink($head['userid']) . $context['PmxBlog']['ResetArchivdate'] .'\"><span style=\"margin-right:15px;\">'. $txt['PmxBlog_listblogs'] .'</span></a></div>'\n\t\t\t\t\t\t\t:\t'<div class=\"plainbox funcexit2\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa=list'. $context['PmxBlog']['ResetArchivdate'] .'\"><span style=\"margin-right:15px;\">'.$txt['PmxBlog_showall'].'</span></a></div>'\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t)\n\t\t\t\t\t:\t''\n\t\t\t\t\t)\n\t\t\t\t: ''\n\t\t\t\t).'\n\t\t\t\t</div>\n\t\t\t\t<div class=\"smalltext\" style=\"float:right;padding:2px;height:14px;\">'.\n\t\t\t\t$txt['PmxBlog_blog_rating'].$head['blogvotes'].\n\t\t\t\t($head['blogvotes'] > 0\n\t\t\t\t?\t' ('.$head['blograting'].'%)'\n\t\t\t\t:\t''\n\t\t\t\t).'\n\t\t\t\t</div>\n\t\t\t\t<br style=\"clear:both;\" />\n\t\t\t</td>'.\n\t\t(!$user_info['is_guest']\n\t\t? '\n\t\t\t<td valign=\"top\" align=\"right\" nowrap=\"nowrap\">\n\t\t\t<div style=\"width:170px;\">'.\n\t\t\t($allowMan || AllowedTo('admin_forum')\n\t\t\t?\t($context['PmxBlog']['mode'] != 'manager'\n\t\t\t\t?\t'<div style=\"text-align:right; height:16px; padding:0 2px 2px 2px;\">\n\t\t\t\t\t\t<div class=\"plainbox funclaunch\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa=manager;setup'. $cameFrom . getOwnerLink($head['userid']).$ContLink.'\">'. $txt['PmxBlog_funclaunch'].$txt['PmxBlog_blogset_link'] .'</a></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style=\"text-align:right; height:16px; padding:2px 2px 2px 2px;\">'.\n\t\t\t\t\t\t(isOwner($head['userid'])\n\t\t\t\t\t\t?\t'<div class=\"plainbox funclaunch\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa=manager'.getOwnerLink($head['userid']).$ContLink.'\">'. $txt['PmxBlog_funclaunch'] .$txt['PmxBlog_manager_link'].'</a></div>'\n\t\t\t\t\t\t:\t($isModerator && !empty($isContent)\n\t\t\t\t\t\t\t? ($context['PmxBlog']['Moderate'] == $head['userid']\n\t\t\t\t\t\t\t\t? '<div class=\"plainbox funcexit\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa='. $context['PmxBlog']['mode'] .getOwnerLink($head['userid']).$ContLink.';mod=0\">'. $txt['PmxBlog_funcexit'] .$txt['PmxBlog_moderate_link'].'</a></div>'\n\t\t\t\t\t\t\t\t: '<div class=\"plainbox funclaunch\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa='. $context['PmxBlog']['mode'] .getOwnerLink($head['userid']).$ContLink.';mod=1\">'. $txt['PmxBlog_funclaunch'] .$txt['PmxBlog_moderate_link'].'</a></div>'\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t: ''\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t).'\n\t\t\t\t\t</div>'\n\t\t\t\t:\t'<div style=\"padding:0 2px 2px 2px; text-align:right; height:16px;\">'.\n\t\t\t\t\t($head['blogcreated'] != 0\n\t\t\t\t\t?\t($context['PmxBlog']['action'][0] != 'setup'\n\t\t\t\t\t\t?\t'<div class=\"plainbox funclaunch\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa=manager;setup'. $cameFrom .getOwnerLink($head['userid']).$ContLink.'\">'. $txt['PmxBlog_funclaunch'].$txt['PmxBlog_blogset_link'] .'</a></div>'\n\t\t\t\t\t\t:\t($context['PmxBlog']['action'][0] == 'setup'\n\t\t\t\t\t\t\t?\t'<div class=\"plainbox funcexit\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa='.(!empty($context['PmxBlog']['Manager']['have_blog']) ? (!empty($cameFrom) ? $cameFrom : 'view') : 'list'). getOwnerLink($head['userid']).$ContLink .'\">'. $txt['PmxBlog_funcexit'] . $txt['PmxBlog_blogset_link'].'</a></div>'\n\t\t\t\t\t\t\t:\t''\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t).'\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style=\"padding:2px 2px 2px 2px; text-align:right; height:16px;\">'.\n\t\t\t\t\t\t($context['PmxBlog']['action'][0] == 'setup'\n\t\t\t\t\t\t?\t(isOwner($head['userid'])\n\t\t\t\t\t\t\t?\t'<div class=\"plainbox funclaunch\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa=manager'.getOwnerLink($head['userid']).$ContLink.'\">'. $txt['PmxBlog_funclaunch'].$txt['PmxBlog_manager_link'] .'</a></div>'\n\t\t\t\t\t\t\t:\t''\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t:\t'<div class=\"plainbox funcexit\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa=view'.getOwnerLink($head['userid']).$ContLink.'\">'. $txt['PmxBlog_funcexit'].$txt['PmxBlog_manager_link'].'</a></div>'\n\t\t\t\t\t\t)\n\t\t\t\t\t: (isOwner($head['userid'])\n\t\t\t\t\t\t?\t'<div class=\"plainbox funcexit\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa=list\">' .$txt['PmxBlog_funcexit'].$txt['PmxBlog_manager_link'].'</a></div>'\n\t\t\t\t\t\t: ''\n\t\t\t\t\t\t)\n\t\t\t\t\t).'\n\t\t\t\t\t</div>'\n\t\t\t\t)\n\t\t\t:\t($isModerator && !empty($isContent)\n\t\t\t\t? '<div style=\"padding:2px 2px 2px 2px; padding-top:17px; text-align:right; height:14px;\">'.\n\t\t\t\t\t($context['PmxBlog']['Moderate'] == $head['userid']\n\t\t\t\t\t? '<div class=\"plainbox funcexit\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa='. $context['PmxBlog']['mode'] .getOwnerLink($head['userid']).$ContLink.';mod=0\">'. $txt['PmxBlog_funcexit'] .$txt['PmxBlog_moderate_link'].'</a></div>'\n\t\t\t\t\t: '<div class=\"plainbox funclaunch\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa='. $context['PmxBlog']['mode'] .getOwnerLink($head['userid']).$ContLink.';mod=1\">'. $txt['PmxBlog_funclaunch'] .$txt['PmxBlog_moderate_link'].'</a></div>'\n\t\t\t\t\t).\n\t\t\t\t\t'</div>'\n\t\t\t\t: ''\n\t\t\t\t)\n\t\t\t).'\n\t\t\t</div>\n\t\t\t</td>'\n\t\t:\t''\n\t\t).'\n\t\t</tr>\n\t</table>\n\t</div>\n\t<span class=\"lowerframe\"><span></span></span>';\n}", "function DisplayContent($content)\n\t{\n\t\t//This should be straight forward, since the content will pretty much determine how it is displayed\n\t\t$content->Show();\n\t}", "public function page_header(){\n\t\t$e = $this->Empresa->salida;\n\t\t$this->Empresa->where('id',$this->Empresa->user);\n\t\t$fondo = $this->Empresa->getOne('empresa_fondo','img_fondo');\n\t\t\n\t\t$link = 'index.php?inmv='.$e['nik_empresa'];\t\t\n\t\t$return = '<div class=\"page-header\" style=\"background-image: url(imagenes/fondos/'.$fondo['img_fondo'].');\">';\n\t\t$return .= '<div class=\"header-info\">';\n\t\t$return .= '<div class=\"row\">';\n\t\t$return .= '<div class=\"logo-header\"><a href=\"'.$link.'\"><img src=\"imagenes/logo/'.$e['img'].'\" /></a></div>';\n\t\t$return .= '<div class=\"header-desc col-md-6 visible-md visible-lg\">';\n\t\t$return .= '<h1>'.$e['descripcion'].'</h1>';\n\t\t$return .= '</div>';\n\t\t$return .= '</div>';\n\t\t$return .= '</div>';\n\t\t$return .= '</div>';\n\t\treturn $return;\n\t}", "public function template_header() {\n\t\tget_header( 'course' );\n\t}", "protected function content_template() {}", "protected function content_template() {}", "public static function header_output() {\n\t\tob_start();\n\n\t\tif ( self::options( 'header_type' ) == 'navbar-fixed-top' ) {\n\t\t\techo 'body{padding-top: 50px;}';\n\t\t}\n\n\t\tif ( ! display_header_text() ) {\n\t\t\techo '#site-title,.site-description{position: absolute;clip: rect(1px, 1px, 1px, 1px);}';\n\t\t} else {\n\t\t\tself::generate_css( '#site-title', 'color', 'header_textcolor', '#' );\n\t\t}\n\t\t$extra_css = apply_filters( 'maketador_header_output', ob_get_clean() );\n\t\tif ( ! empty( $extra_css ) ) {\n\t\t\techo '<style type=\"text/css\">' . $extra_css . '</style>';\n\t\t}\n\t\t?>\n\t\t<?php\n\t}", "protected function render_content()\n {\n }", "protected function render_content()\n {\n }", "protected function render_content()\n {\n }", "protected function render_content()\n {\n }", "public function startContent() {\n ob_start();\n }", "public function renderContent()\n {\n $this->setupPage();\n $this->pageRenderer->setTitle($this->title);\n $this->loadJavaScripts();\n $this->setJavaScriptCodeArray();\n $this->loadStylesheets();\n\n $this->view->assign('docHeader', $this->docHeaderComponent->docHeaderContent());\n if ($this->moduleId) {\n $this->view->assign('moduleId', $this->moduleId);\n }\n if ($this->moduleName) {\n $this->view->assign('moduleName', $this->moduleName);\n }\n $this->view->assign('uiBlock', $this->uiBlock);\n $this->view->assign('flashMessageQueueIdentifier', $this->getFlashMessageQueue()->getIdentifier());\n $renderedPage = $this->pageRenderer->render(PageRenderer::PART_HEADER);\n $renderedPage .= $this->bodyTag;\n $renderedPage .= $this->view->render();\n $this->pageRenderer->addJsFooterInlineCode('updateSignals', BackendUtility::getUpdateSignalCode());\n $renderedPage .= $this->pageRenderer->render(PageRenderer::PART_FOOTER);\n\n return $renderedPage;\n }", "function segments_page_header_after() {\n get_template_part( 'templates/content', 'user' );\n}", "function printHeader()\n\t{\n\t\t$_SESSION['last_page'] = $_SERVER['QUERY_STRING'];\n\t\tif( isset($_SESSION['admin']) && $_SESSION['admin'])\n\t\t{\n\t\t\t$this->admin_nav = \"<a class=\\\"button\\\" href=\\\"?section=project_management\\\" title=\\\"Go to project management\\\">Project Management</a>\\n\n\t\t\t\t\\t\\t<a class=\\\"button\\\" href=\\\"?section=reference_value_management\\\" title=\\\"Go to reference value management\\\">Reference Value Management</a>\\n\n\t\t\t\t\\t\\t<a class=\\\"button\\\" href=\\\"?section=user_management\\\" title=\\\"Go to user management\\\">User Management</a>\\n\";\n\t\t}\n\t\t$this->initSessionVariables();\n\t\tinclude 'View/Header.html';\n\t}", "public static function displayHeader()\n {\n\n # Charset\n print \"<meta charset=\\\"\" . self::$Charset . \"\\\" />\";\n\n $base = base_url();\n print \"<base href='{$base}/' />\";\n\n # Viewport\n print \"\\n\\n\\t<meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\\\" />\\n\";\n\n # Meta Tags\n foreach (self::$SEO as $attr => $prop) {\n # Metatags\n if (is_array($prop)) {\n print \"\\n\\t\";\n foreach ($prop as $content => $value) {\n print \"<meta {$attr}=\\\"{$content}\\\" content=\\\"\" . htmlspecialchars($value) . \"\\\" />\\n\\t\";\n }\n } # Favicon - Icone da página\n else if ($attr == 'icon' || $attr == 'shortcut' || $attr == 'shortcut icon') {\n print \"\\n\\t\";\n $type = strtolower(preg_replace('/^.*\\.(.*?)(\\?.*)?$/', '$1', $prop));\n print \"<link rel=\\\"icon\\\" href=\\\"{$prop}\\\" />\\n\\t\";\n } # Tags\n else {\n print \"\\n\\t\";\n print \"<{$attr}>\" . htmlspecialchars($prop) . \"</{$attr}>\\n\\t\";\n }\n }\n\n # Imagens\n if (count(self::$Imagens) > 0) {\n print \"\\n\\t\";\n print \"<!-- OG Imagens -->\\n\\t\";\n foreach (self::$Imagens as $values) {\n foreach ($values as $key => $value) {\n if ($value != null) {\n print \"<meta property=\\\"{$key}\\\" content=\\\"\" . htmlspecialchars($value) . \"\\\" />\\n\\t\";\n }\n }\n }\n }\n\n # Vídeos\n if (count(self::$Videos) > 0) {\n print \"\\n\\t\";\n print \"<!-- OG Vídeos -->\\n\\t\";\n foreach (self::$Videos as $values) {\n foreach ($values as $key => $value) {\n if ($value != null) {\n print \"<meta property=\\\"{$key}\\\" content=\\\"\" . htmlspecialchars($value) . \"\\\" />\\n\\t\";\n }\n }\n if (end(self::$Videos) !== $values) {\n print \"\\n\\t\";\n }\n }\n }\n\n # Sounds\n if (count(self::$Sounds) > 0) {\n print \"\\n\\t\";\n print \"<!-- OG Sound -->\\n\\t\";\n foreach (self::$Sounds as $values) {\n foreach ($values as $key => $value) {\n if ($value != null) {\n print \"<meta property=\\\"{$key}\\\" content=\\\"\" . htmlspecialchars($value) . \"\\\" />\\n\\t\";\n }\n }\n }\n print \"\\n\\t\";\n }\n\n self::displayCss();\n\n print \"\\n\\n\\t<script src='cdn/js/jquery.min.js' type='text/javascript' ></script>\";\n\n # Html5\n print \"\\n\\n\\t<!--[if lt IE 9]>\";\n print \"\\n\\t\\t<script src=\\\"https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js\\\" charset=\\\"\" . self::$Charset . \"\\\" ></script>\";\n print \"\\n\\t\\t<script src=\\\"https://oss.maxcdn.com/respond/1.4.2/respond.min.js\\\" charset=\\\"\" . self::$Charset . \"\\\" ></script>\";\n print \"\\n\\t<![endif]-->\\n\";\n }", "public function display(){\n\t\t$this->smarty->assign(\"main_content\",$this->template) ;\n\t\t$this->setTemplate(\"common/page.tpl\") ;\n\t\tparent::display() ;\n\t}", "protected function displayContent()\n\t{\n\t\t$html = \"\\t\\t\\t\\t\".'<div id=\"content\">'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\".'<h2 class=\"title\">'.$this->pageInfo['pageHeading'].'</h2>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\".'<div class=\"fineprint\">'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\".'<ul>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li><i class=\"icon-question-sign\"></i>What information do we collect?</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li class=\"answer\">We collect information from you when you register on our site. When ordering or registering on our site, as appropriate, you may be asked to enter your: name, e-mail address, mailing address or phone number. You may, however, visit our site anonymously.</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li><i class=\"icon-question-sign\"></i>What do we use your information for?</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li class=\"answer\">Any of the information we collect from you may be used in one of the following ways:<br />\n\t\t\t<strong>To personalize your experience:</strong><br />\n\t\t\tYour information helps us to better respond to your individual needs.<br /> \n\t\t\t<strong>To improve our website:</strong><br />\n\t\t\tWe continually strive to improve our website offerings based on the information and feedback we receive from you.<br /> \n\t\t\t<strong>To improve customer service:</strong><br />\n\t\t\tYour information helps us to more effectively respond to your customer service requests and support needs.<br />\n\t\t\t<strong>To process transactions</strong><br />\n\t\t\tYour information, whether public or private, will not be sold, exchanged, transferred, or given to any other company for any reason whatsoever, without your consent, other than for the express purpose of delivering the purchased product or service requested.<br />\n\t\t\t<strong>To administer a site feature</strong><br />\n\t\t\tThis may include a contest, promotion, survey or other<br />\n\t\t\t<strong>To send periodic emails</strong><br />\n\t\t\tThe email address you provide for order processing, may be used to send you information and updates pertaining to your order, in addition to receiving occasional company news, updates, related product or service information, etc.</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li><i class=\"icon-question-sign\"></i>How do we protect your information?</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li class=\"answer\">We implement a variety of security measures to maintain the safety of your personal information when you place an order or enter, submit, or access your personal information.</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\".'</ul>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\".'<ul>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li><i class=\"icon-question-sign\"></i>Do we use cookies?</li>'.\"\\n\";\t\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li class=\"answer\">We do not use cookies.</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li><i class=\"icon-question-sign\"></i>Do we disclose any information to outside parties?</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li class=\"answer\">We do not sell, trade, or otherwise transfer to outside parties your personally identifiable information. This does not include trusted third parties who assist us in operating our website, conducting our business, or servicing you, so long as those parties agree to keep this information confidential. We may also release your information when we believe release is appropriate to comply with the law, enforce our site policies, or protect ours or others rights, property, or safety. However, non-personally identifiable visitor information may be provided to other parties for marketing, advertising, or other uses.</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li><i class=\"icon-question-sign\"></i>Registered Users</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li class=\"answer\">All registered users of our site may make any changes to their information at anytime by logging in and going to the \\'Your Account\\' page.</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li><i class=\"icon-question-sign\"></i>Terms and Conditions</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li class=\"answer\">Please also visit our Terms and Conditions section establishing the use, disclaimers, and limitations of liability governing the use of our website at <a href=\"index.php?page=terms\">terms and conditions</a></li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li><i class=\"icon-question-sign\"></i>Your consent</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li class=\"answer\">By using our site, you consent to our online privacy policy.</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li><i class=\"icon-question-sign\"></i>Changes to our Privacy Policy</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li class=\"answer\">If we decide to change our privacy policy, we will post those changes on this page. This policy was last modified on 7 May 2013</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li><i class=\"icon-question-sign\"></i>Contacting us</li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\\t\".'<li class=\"answer\">If there are any questions regarding this privacy policy you may <a href=\"index.php?page=contact\">contact us</a></li>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\\t\".'</ul>'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\\t\\t\".'</div><!-- fineprint -->'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\\t\".'</div><!-- home_text -->'.\"\\n\";\n\t\t$html .= \"\\t\\t\\t\\t\".'</div><!-- content -->'.\"\\n\";\n\t\treturn $html;\n\t}", "function myheader($additionalHeaderContent = NULL) {\n\t\tprint '<html>';\n\t\t\tprint '<head>';\n\t\t\t\tprint '<title>';\n\t\t\t\t\tif (defined('TITLE')) {\n\t\t\t\t\t\tprint TITLE;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tprint 'MiddleClik';\n\t\t\t\t\t}\n\t\t\t\tprint '</title>';\n\t\t\t\tprint \"<meta http-equiv=\\\"content-type\\\" content=\\\"text/html; charset=utf-8\\\" />\";\n\t\t\t\tprint $additionalHeaderContent;\n\t\t\t\tprint \"<style type=\\\"text/css\\\">\";\n\t\t\t\t\tprint '//this is where my css, js goes';\n\t\t\t\tprint \"</style>\";\n\t\t\tprint '</head>';\n\t}", "function in_admin_header()\n {\n }", "private function renderContentHeading() {\n\t\t$this->setMarker('content_id', $this->getContentUid());\n\t\t$this->setMarker(\n\t\t\t'content_heading',\n\t\t\thtmlspecialchars($this->cObj->data['subheader'])\n\t\t);\n\t}", "public function set_content() {\n\t\tif ( SiteHealthFilter::is_debug_mode() ) {\n\t\t\t// Show default content, see url above\n\t\t\tswitch ( $this->slug ) {\n\t\t\t\tcase 'tools':\n\t\t\t\t\tWC_Admin_Status::status_tools();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'logs':\n\t\t\t\t\tWC_Admin_Status::status_logs();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tWC_Admin_Status::status_report();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\t$file = dirname( __FILE__ ) . '/html/' . $this->slug . '.php';\n\t\tif ( file_exists( $file ) ) {\n\t\t\tinclude_once $file;\n\t\t}\n\t}", "public function renderContent() {}", "protected function displayInsideMainDesign($content){\n $this->load->view(\n 'main',\n [\n 'content' => $content,\n 'scripts' => $this->scripts\n ]\n );\n }", "protected function content_template() {\n\t}", "function loadInHeader() {\n $this->metaData();\n//\t\t$this->loadAddOns();\n $this->onHead(\"onHead\"); // call back to onHead in extensions things js, etc in head\n $this->onEditor(\"onHead\"); // only when login to admin, for fck to work??\n //If not in admin, blank initEditor\n if (!isset($_SESSION['name'])) { // not sure what this does??\n print \"<script type=\\\"text/javascript\\\">function initeditor(){}</script>\\n\";\n }\n }", "function getting_start_content(){\n\n\t\t\t\t$options = apply_filters('gdlr_core_getting_start_option', array(), $this->settings['slug']);\n\n\t\t\t\techo '<div class=\"gdlr-core-getting-start-wrap clearfix\" >';\n\t\t\t\t$this->get_header($options['header']);\n\n\t\t\t\t$this->get_content($options['content']);\n\t\t\t\techo '</div>'; // gdlr-core-getting-start-wrap\n\n\t\t\t\tif( isset($_GET['phpinfo']) ) print_r( phpinfo() );\n\t\t\t}", "protected function content_template()\n {\n }", "protected function content_template()\n {\n }", "protected function content_template()\n {\n }", "protected function content_template()\n {\n }", "protected function content_template()\n {\n }", "protected function content_template()\n {\n }", "public function display($content='home'){\n if(!file_exists('application/views/'.$content.'.php')){\n // Whoops , we don 't have a page for that !\n show_404();\n }\n $data['content']=$content;\n $this->load->vars($data);// $ data is 'extracted ' and its compenents has a global access\n $this->load->view('template');// Load a generic page\n }", "function display_header_text()\n {\n }", "public static function renderContent() {}", "public function contentHTML() {\n\t\t// If not then offer them a login or registration link\n\t\tif( !isset($_SESSION['username']) ) {\n\t\t\techo 'You need to be logged in';\n\t\t\treturn;\n\t\t}\n\t\t//include account html\n\t\tinclude 'templates/search/searchform.php';\n\t\tinclude 'templates/account/user-account.php';\n\t\t// If user is an admin\n\t\tif( $_SESSION['privilege'] == 'admin' ) {\n\t\t\tinclude 'templates/account/admin-controls.php';\n\t\t}\n\t}", "function head() {\n\n\techo '<h1>ATOM.CMS</h1>';\n\t\n}", "public function start_display ()\n {\n $this->display_doc_type ();\n\n $opts = $this->page->template_options;\n if ($opts->css_class)\n {\n?>\n<html class=\"<?php echo $opts->css_class; ?>\" lang=\"<?php echo $opts->language; ?>\">\n<?php\n }\n else\n {\n?>\n<html lang=\"<?php echo $opts->language; ?>\">\n<?php\n }\n?>\n <head>\n <?php\n $this->display_head ();\n ?>\n </head>\n <body>\n<?php\n\n $this->_start_body ();\n }", "function print_content()\n{\n ob_start();\n $content = $GLOBALS['content'];\n if (!isset($content))\n {\n $content .= \"No Content to display\";\n }\n print($content);\n ob_end_flush();\n}", "public function get_header()\n {\n return <<<EOD\n<div id=\"sitehdr\">\n Sitewide Header\n</div>\n\nEOD;\n }", "function lightseek_homepage_header() {\n\techo '<header class=\"entry-header\">';\n\t\tlightseek_post_header();\n\techo '</header>';\n}", "function msdlab_pre_header(){\n print '<div class=\"pre-header\">\n <div class=\"wrap\">';\n do_action('msdlab_pre_header');\n print '\n </div>\n </div>';\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "public function content_template()\n {\n }", "protected function header()\n {\n\n }", "function displayHtmlHeader() {\n\t\tglobal $page;\n\t\t\n\t\techo \"<!DOCTYPE html5>\";\n\t\techo \"<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='fr'>\";\n\t\t\n\t\t\techo \"<head>\";\n\t\t\t\t\n\t\t\t\t//Encodage et zoom\n\t\t\t\techo \"<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\";\n\t\t\t\techo \"<meta name='viewport' content='width=device-width, initial-scale=1.0' />\";\n\t\t\t\techo \"<meta http-equiv='X-UA-Compatible' content='IE=edge' />\";\n\t\t\t\t\n\t\t\t\t//Titre de la page\n\t\t\t\techo \"<title>Gestion maintenances | Best Engines Inc.</title>\";\n\t\t\t\t\n\t\t\t\t//Description et auteur de la page\n\t\t\t\techo \"<meta name='description' content='Application de gestion des maintenances de la société Best Engines Inc.' />\";\n\t\t\t\techo \"<meta name='author' content='Best Engines Inc.' />\";\n\t\t\t\t\n\t\t\t\t//Fichiers CSS\n\t\t\t\techo \"<link href='config/css/bootstrap.min.css' rel='stylesheet' />\";\n\t\t\t\techo \"<link href='config/css/animate.css' rel='stylesheet' />\";\n\t\t\t\techo \"<link href='config/css/styles.css' rel='stylesheet' />\";\n\t\t\t\t\n\t\t\t\t//Formulaire d'authentification\n\t\t\t\tif($page == \"authentification\") {\n\t\t\t\t\techo \"<link rel='stylesheet' href='config/font-awesome/css/font-awesome.min.css' />\";\n\t\t\t\t\techo \"<link rel='stylesheet' href='config/css/authentification/form-elements.css' />\";\n\t\t\t\t\techo \"<link rel='stylesheet' href='config/css/authentification/style.css' />\";\n\t\t\t\t\t\n\t\t\t\t\techo \"<!--[if lt IE 9]>\";\n\t\t\t\t\t\techo \"<script src='https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js'></script>\";\n\t\t\t\t\t\techo \"<script src='https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js'></script>\";\n\t\t\t\t\techo \"<![endif]-->\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Font\n\t\t\t\techo \"<link rel='stylesheet' type='text/css' href='http://fonts.googleapis.com/css?family=Montserrat' />\";\n\t\t\t\t\n\t\t\t\t//Favicon\n\t\t\t\techo \"<link href='doc/img/favicon/favicon.png' rel='shortcut icon' />\";\n\n\t\t\techo \"</head>\";\t\t\t\n\t\t\techo \"<body>\";\n\t}", "protected function getContentPart()\n {\n ?>\n <div class=\"container-non-responsive\" style=\"margin-top: 15px\">\n <div class=\"row chitiet-breadcrumb\">\n <div class=\"col-xs-12\">\n <?= $this->getBreadcrumbsPart() ?>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col-xs-8 vn-lienhe-left\">\n <!-- title-->\n <div class=\"row\">\n <div class=\"col-xs-12\">\n <h2 class=\"title\" style=\"text-transform: uppercase\">\n <small>\n <?= $this->getContentTitle() ?>\n </small>\n </h2>\n </div>\n </div>\n\n <!-- title-->\n <div class=\"row\" style=\"margin-top: 20px;\">\n <div class=\"col-xs-12\">\n <?= $this->getContentMain() ?>\n </div>\n </div>\n\n <div class=\"row\" style=\"margin-top: 100px;\">\n <div class=\"col-xs-12\">\n Share +\n </div>\n </div>\n\n </div>\n <div class=\"col-xs-4 vn-lienhe-right\">\n <div class=\"row\">\n <div class=\"col-xs-12\">\n <?php\n //get_sidebar('right-menu-dichvu');\n $this->genRightMenu();\n ?>\n </div>\n <?= $this->getBannerServicePage() ?>\n </div>\n </div>\n </div>\n </div>\n\n <?php\n }", "public static function display_in_content($content){\n\n\t\t\t\tglobal $post;\n\t\t\n\t\t\t\tif ( is_home() ) { return; }\n\t\t\t\t\n\t\t\t\t$opt = self::get_current_options();\n\t\t\t\t\n\t\t\t\tif($opt[3] != \"redirect\"){\n\t\t\t\t\t\n\t\t\t\t\tif((is_single($opt[0]) && $opt[2] == \"post\") || (is_page($opt[0]) && $opt[2] == \"page\")){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\treturn $content . self::get_menu_display();\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\n\t\t}", "protected function renderModuleContent() {}", "private function renderContent()\n {\n $this->tabs[$this->currentlyActiveTab()]->view()->render();\n }", "function showPage() \n\t{\n\t\t$this->xt->display($this->templatefile);\n\t}", "function showHead($title='') {\n\tglobal $template, $config;\n?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html><head>\n<title><?=$title?></title>\n<link href=\"<?=joinPath($config['site_absolute_url'],'/')?>css/style.css\" rel=\"stylesheet\" type=\"text/css\" />\n<script src=\"<?=joinPath($config['site_absolute_url'],'/')?>js/JSL.js\" type=\"text/javascript\"></script>\n<script src=\"<?=joinPath($config['site_absolute_url'],'/')?>js/application.js\" type=\"text/javascript\"></script>\n<?=implode($template->includes,\"\\n\");?>\n<?php\n}", "function moduleContent()\t{\n\t\t\t\tglobal $LANG;\n\t\t\t\t\tswitch((string)$this->MOD_SETTINGS['function'])\t{\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tif(t3lib_div::_GP('action') == 'show_single'){\n\t\t\t\t\t\t\t\t$content=$this->drawSingleOrder(t3lib_div::_GP('p_uid'));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$content=$this->drawAllOrders();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$this->content.=$this->doc->section($LANG->getLL('function1'),$content,0,1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t/*\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t$content='<div align=center><strong>Menu item #2...</strong></div>';\n\t\t\t\t\t\t\t$this->content.=$this->doc->section('Message #2:',$content,0,1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t$content='<div align=center><strong>Menu item #3...</strong></div>';\n\t\t\t\t\t\t\t$this->content.=$this->doc->section('Message #3:',$content,0,1);\n\t\t\t\t\t\tbreak;*/\n\t\t\t\t\t}\n\t\t\t\t}", "public function render_content(){\n\t\t$theme = wp_get_theme();\n\t\t?>\n\t\t<p>\n\t\t\t<?php\n\t\t\tprintf(\n\t\t\t\t__( \"SiteOrigin Premium adds powerful features to %s. They'll save you time and make your site more professional.\", 'vantage' ),\n\t\t\t\t$theme->get( 'Name' )\n\t\t\t);\n\t\t\t?>\n\t\t</p>\n\t\t<a\n\t\t\thref=\"<?php echo esc_url( SiteOrigin_Settings::get_premium_url( ) ) ?>\"\n\t\t\tclass=\"button-primary so-premium-upgrade\"\n\t\t\ttarget=\"_blank\">\n\t\t\t<?php esc_html_e( 'Find Out More', 'vantage' ) ?>\n\t\t</a>\n\t\t<?php\n\t}", "abstract protected function showContent(): self;" ]
[ "0.7575262", "0.72156787", "0.7214218", "0.696519", "0.6921734", "0.6909692", "0.68595606", "0.68292195", "0.679759", "0.678173", "0.676656", "0.6755774", "0.6747084", "0.6718102", "0.6707859", "0.6691651", "0.6676014", "0.6674562", "0.6648416", "0.6648339", "0.6638269", "0.6633246", "0.6633246", "0.6633246", "0.6633246", "0.6633246", "0.6633246", "0.6633246", "0.6633246", "0.6633246", "0.6633246", "0.6633246", "0.6633246", "0.6633246", "0.6633246", "0.66115254", "0.6608142", "0.65907925", "0.6584966", "0.65792173", "0.65774035", "0.65774035", "0.65767014", "0.65495783", "0.65495783", "0.65495783", "0.65494853", "0.6539272", "0.65348476", "0.65330714", "0.65221", "0.6516144", "0.65082645", "0.6506755", "0.65030545", "0.6492784", "0.64904153", "0.64873475", "0.6484653", "0.6475628", "0.6467476", "0.6465044", "0.6450721", "0.6449442", "0.6449442", "0.6449442", "0.6449442", "0.6449442", "0.6449442", "0.64451003", "0.6443237", "0.6441219", "0.6438841", "0.64234596", "0.6409161", "0.6402015", "0.6397011", "0.63888717", "0.63887054", "0.638613", "0.638613", "0.638613", "0.638613", "0.638613", "0.638613", "0.638613", "0.638613", "0.638613", "0.638613", "0.6361527", "0.6359587", "0.6350945", "0.63396984", "0.6334361", "0.63341254", "0.6330807", "0.63291746", "0.63267666", "0.63155574", "0.63094145" ]
0.69656205
3
Display logopart in footer.php
function circle_footer_logo() { circle_site_logo( 'footer_logo', true, false, '<div class="footer__logo">', '</div>' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function my_addition_to_login_footer() {\n }", "function displayFooter()\n\t{\n\t\t// footer (not really)\n\t\tif ($this->cmd != \"logout\")\n\t\t{\n\t\t\tif ($this->setup->ini_ilias_exists and $this->display_mode == \"setup\" and $this->setup->getClient()->getId() != \"\")\n\t\t\t{\n\t\t\t\t$this->tpl->setVariable(\"TXT_ACCESS_MODE\",\"(\".$this->lng->txt(\"client_id\").\": \".$this->setup->getClient()->getId().\")\");\n\t\t\t}\n\t\t\telseif ($this->setup->isAdmin())\n\t\t\t{\n\t\t\t\t$this->tpl->setVariable(\"TXT_ACCESS_MODE\",\"(\".$this->lng->txt(\"root_access\").\")\");\n\t\t\t}\n\n\t\t\t$this->displayNavButtons();\n\t\t}\n\n\t\t$this->tpl->show();\n\t}", "function showFooter() \n {\n // AUSGABE\n echo \"<div class='newFahrt'><div class='footer'>\";\n echo \"<p>EventPlanner by Steven Schödel (c) Version 05.072019 | \";\n echo \"<a href='/flatnet2/informationen/impressum.php'>Impressum</a> | \";\n echo \"<a href='/index.php'>Login</a>\";\n echo \"</p>\";\n echo \"</div></div>\";\n }", "function aitpro_login_footer() {\necho '<div id=\"footer\" class=\"row\">';\necho '<div class=\"sixteen columns\">';\necho '<div class=\"copyright\">Copyright &copy;'.date('Y').' '.bloginfo('name').'</div>';\necho '</div></div>';\n}", "function extamus_change_admin_footer(){\n\t echo '<span id=\"footer-note\">Please dont hesitate to reach out to your friends at <a href=\"http://www.extamus.com/\" target=\"_blank\">Extamus Media</a> with any questions.</span>';\n\t}", "function display_portal_footer()\r\n {\r\n Display :: footer();\r\n }", "function display_footer()\r\n {\r\n if ($this->has_menu())\r\n {\r\n echo '<div class=\"clear\">&nbsp;</div>';\r\n echo '</div>';\r\n }\r\n\r\n echo '<div class=\"clear\">&nbsp;</div>';\r\n Display :: footer();\r\n }", "function generate_footer() {\n\t\t$print = '';\n\t\t$user_id = $_SESSION[ 'user_id' ];\n\t\t$print = '<span> UserID:</span> '.$user_id.'<br />\n\t\t\t\t';\n\t\t$pid = $_SESSION[ 'pp_pid' ];\n\t\t$sid = $_SESSION[ 'pp_sid' ];\n\t\t$tid = $_SESSION[ 'pp_tid' ];\n\t\t$ppid = $_SESSION[ 'pp_ppid' ];\n\t\t$menu = '';\n\t\t// What to show is decided here. Specifics\n\t\t$print .= '<span> pid:'.$pid.'| sid:'.$sid.'| tid:'.$tid.'| ppid:'.$ppid.' <span> <br />\n\t\t\t\t';\n\t\t$action = $_SESSION[ 'pp_action' ];\n\t\t$type = $_SESSION[ 'pp_type' ];\n\t\t$print .= '<span> action: '.$action.' | type: '.$type.' <span> <br />\n';\n\t\techo $print;\n\t}", "public function displayContentFooter() {\n ?>\n <footer class=\"container-fluid text-center\">\n <p>IT360 Applied Database Systems Project By Harrison Bleckley, Drake Bodine, and Lani Davis</p>\n </footer>\n <?php\n }", "function login_footer() { ?>\n</div>\n</body>\n</html>\n<?php }", "public function hookFooter(){\n $settings = unserialize( Configuration::get($this->name.'_settings') );\n \n $this->context->smarty->assign(array(\n 'user' => $settings['user'],\n 'widget_id' => $settings['widget_id'],\n 'tweets_limit' => $settings['tweets_limit'],\n 'follow_btn' => $settings['follow_btn']\n ));\n \n return $this->display(__FILE__, $this->name.'.tpl');\n }", "function footer() {\n\n\techo '<p>Copyright Dynamic Sites LLC 2012</p>';\n\t\n}", "function fp_modify_dashboard_footer() {\n\t\n\t$local_time = date('g:i A', time()+60*60*$diff=-8);\n\t\n\techo '<span id=\"dashboard-footer\">It is currently ' . $local_time . ' on ' . date('l F jS, Y') . '. Your last login was...</span>';\n}", "function cera_grimlock_footer() {\n\t\tdo_action( 'grimlock_prefooter', array(\n\t\t\t'callback' => 'cera_grimlock_prefooter_callback',\n\t\t) );\n\n\t\tdo_action( 'grimlock_footer', array(\n\t\t\t'callback' => 'cera_grimlock_footer_callback',\n\t\t) );\n\t}", "function printFooter()\n\t{\n\t\tinclude 'View/Footer.html';\n\t}", "function adminFooter()\n {\n return \"\";\n }", "function sloodle_print_footer()\r\n {\r\n global $CFG;\r\n echo \"<p style=\\\"text-align:center; margin-top:32px; font-size:90%;\\\"><a href=\\\"{$CFG->wwwroot}/course/view.php?id={$this->course->id}\\\">&lt;&lt;&lt; \".get_string('backtocoursepage','sloodle').\"</a></h2>\";\r\n sloodle_print_footer($this->course);\r\n }", "protected function footer()\n {\n\n }", "function admin_footer()\n {\n }", "function admin_footer()\n {\n }", "function admin_footer()\n {\n }", "function admin_footer()\n {\n }", "function admin_footer()\n {\n }", "function ppo_update_admin_footer(){\n $text = __('<img src=\"' . DEV_LOGO . '\" width=\"24\" />Hệ thống CMS phát triển bởi <a href=\"' . DEV_LINK . '\" title=\"Xây dựng và phát triển ứng dụng\">PPO.VN</a>.');\n echo $text;\n }", "public function setFooter() {\n\n // set the footer html.\n echo '<div class=\"footer\">\n \n </div>\n </div>\n </body>\n</html>' . PHP_EOL;\n }", "protected function displayContent() {\r\n\t\t$this -> model -> processLogout();\r\n\t\theader('Location: index.php?page=home');\r\n\t}", "function custom_admin_footer() {\n\techo 'Website design by <a href=\"http://rustygeorge.com/#contact\">Rusty George Creative</a> &copy; '.date(\"Y\").'. For site support please <a href=\"http://rustygeorge.com/#contact\">contact us</a>.';\n}", "function custom_admin_footer() {\n\techo 'Website design by <a href=\"http://rustygeorge.com/#contact\">Rusty George Creative</a> &copy; '.date(\"Y\").'. For site support please <a href=\"http://rustygeorge.com/#contact\">contact us</a>.';\n}", "function admin_footer () {\n\techo '<a href=\"http://www.drumcreative.com\" target=\"_blank\">&copy;' . date('Y') . ' Drum Creative</a>';\n}", "public static function show_footer() {\n require_once Config::get('prefix') . '/templates/footer.inc.php';\n if (isset($_REQUEST['profiling'])) {\n Dba::show_profile();\n }\n }", "function footer() {\n\t\t?>\n\t\t<div data-role=\"footer\" data-position=\"fixed\" style=\"bottom: 0px;\">\n\t\t\t<p align=\"center\">by Matti Maier Internet Solutions</p>\n\t\t</div>\n\t\t<?php\n\t}", "function tr_custom_admin_footer() {\n\t_e('<span id=\"footer-thankyou\">Developed by <a href=\"http://third-law.com\" target=\"_blank\">Kenny Scott (Third Law Web Design)</a></span>. Built using Tabula Rasa.', 'tabula_rasa');\n}", "public static function footer()\n {\n require_once(getcwd() . \"/views/Template/footer.php\");\n }", "abstract protected function footer();", "abstract protected function footer();", "protected function footer()\n {\n require SCRIPT_BASE . \"build/rox/templates/footer.php\";\n }", "function Footer()\n {\n date_default_timezone_set('UTC+1');\n //Date\n $tDate = date('F j, Y, g:i:s a');\n // Position at 1.5 cm from bottom\n $this->SetY(-15);\n // Arial italic 8\n $this->SetFont('Arial', 'I', 12);\n // Text color in gray\n $this->SetTextColor(128);\n // Page number\n $this->Cell(0, 10,utf8_decode('Page ' . $this->PageNo().' \n CHUYC \n '.$tDate.'\n +237 693 553 454\n '.$this->Image(SITELOGO, 189, 280, 10, 10,'', URLROOT)), 0, 0, 'L');\n }", "private function printFooter()\n {\n // Nothing to do at the moment\n }", "public function pfoot() {\n include(dirname(dirname(__FILE__)) . '/ui/footer.php');\n }", "function Footer()\n\t\t{\n\t\t}", "function showHTMLFooter() {\r\n echo '<form style=\"background-color:#E6E6FA\">';\r\n\techo '<hr/>';\t\r\n\techo '<p><center><strong>Aplikacija BANKOMATI v1.3</strong></center></p>';\r\n\techo '<hr/>';\r\n\techo '</form>';\r\n\t?>\r\n\t\r\n\t<input type=\"button\" onclick=\"window.location='/bankomati_RTM1/auth/logout.php'\" class=\"logout\" value=\"Logout\"/>\r\n\t\r\n\t<?php\r\n\techo '</body>'; // završava BODY dio HTML stranice otvoren u zaglavlju\r\n\techo '</html>'; // završava ispravan HTML blok koda otvoren u zaglavlju\r\n}", "function footer() {\n\t\trequire ('views/partial/footer.php');\n\t}", "public function appendFooter(){\n\n\t\t\t$version = new XMLElement('p', 'Symphony ' . Symphony::Configuration()->get('version', 'symphony'), array('id' => 'version'));\n\t\t\t$this->Footer->appendChild($version);\n\n\t\t\t$ul = new XMLElement('ul');\n\t\t\t$ul->setAttribute('id', 'usr');\n\n\t\t\t$li = new XMLElement('li');\n\t\t\t$li->appendChild(\n\t\t\t\tWidget::Anchor(\n\t\t\t\t\tAdministration::instance()->Author->getFullName(),\n\t\t\t\t\tSYMPHONY_URL . '/system/authors/edit/' . Administration::instance()->Author->get('id') . '/',\n\t\t\t\t\tnull,\n\t\t\t\t\tnull,\n\t\t\t\t\tnull,\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'data-id' => Administration::instance()->Author->get('id'),\n\t\t\t\t\t\t'data-name' => Administration::instance()->Author->get('first_name'),\n\t\t\t\t\t\t'data-type' => Administration::instance()->Author->get('user_type')\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t);\n\t\t\t$ul->appendChild($li);\n\n\t\t\t$li = new XMLElement('li');\n\t\t\t$li->appendChild(Widget::Anchor(__('Logout'), SYMPHONY_URL . '/logout/', NULL, NULL, NULL, array('accesskey' => 'l')));\n\n\t\t\t$ul->appendChild($li);\n\n\t\t\t/**\n\t\t\t * Add new list elements to the footer\n\t\t\t *\n\t\t\t * @delegate AddElementToFooter\n\t\t\t * @param string $context\n\t\t\t * '/backend/'\n\t\t\t * @param XMLElement $wrapper\n\t\t\t * A XMLElement representing the `<ul>` at in the Symphony footer, passed by reference\n\t\t\t */\n\t\t\tSymphony::ExtensionManager()->notifyMembers('AddElementToFooter', '/backend/', array('wrapper' => &$ul));\n\n\t\t\t$this->Footer->appendChild($ul);\n\t\t}", "public function hookFooter()\n\t{\n\t\t//Assign template variables\n\t\t$this->context->smarty->assign(\n\t\t\tarray(\n\t\t\t\t'clerk_public_key' => Configuration::get('CLERK_PUBLIC_KEY', ''),\n\t\t\t)\n\t\t);\n\n\t\treturn $this->display(__FILE__, 'visitor_tracking.tpl', $this->getCacheId(BlockCMSModel::FOOTER));\n\t}", "public function footer()\n {\n $footer = \"\\t</body>\\n</html>\";\n echo $footer;\n }", "public function footer() {\n\t}", "function display_login_notice()\n\t\t{\n\t\t\t?>\n\t\t\t\t<div class=\"cv-main-wrapper\">\n\t\t\t\t\t<div class=\"container\">\n\t\t\t <div class=\"cv-heading\">\n\t\t\t <h1 class=\"pt-5\">Please Login to your account before checkout.</h1>\n\t\t\t </div>\n\t\t\t\t </div>\n\t\t\t\t</div>\n\t\t\t<?php\n\t\t}", "function sl_admin_footer() {\n\techo __('The Dashboard Tweaks plugin has been developed by Piet Bos of <a href=\"http://wpti.ps\">WP TIPS</a>. For any issues, please open a thread in the Wordpress plugin forum.', 'sl_dashtweaks');\n}", "public function footer()\n {\n }", "function kickstart_footer_social() {\n\tgenesis_widget_area( 'footer-social', array(\n\t\t'before' => '<section class=\"footer-social\"><div class=\"wrap\">',\n\t\t'after' => '</div></section>',\n\t) );\n}", "protected function generatePageFooter() \r\n {\r\n echo <<<HTML\r\n </article>\r\n <script src=\"CityWok.js\"> </script>\r\n </body>\r\n</html>\r\nHTML;\r\n }", "public function input_admin_footer() {\n\t\t$this->display_svg();\n\t}", "function showHTMLFooter2() {\r\n echo '<form style=\"background-color:#E6E6FA\">';\r\n\techo '<hr/>';\t\r\n\techo '<p><center><strong>Aplikacija BANKOMATI v1.3</strong></center></p>';\r\n\techo '<hr/>';\r\n\techo '</form>';\r\n\t?>\r\n\t\r\n\t<input type=\"button\" onclick=\"window.location='../index.php'\" class=\"logout\" value=\"Login\"/>\r\n\t\r\n\t<?php\r\n\techo '</body>'; // završava BODY dio HTML stranice otvoren u zaglavlju\r\n\techo '</html>'; // završava ispravan HTML blok koda otvoren u zaglavlju\r\n}", "function d4tw_filter_admin_footer () {\r\n echo '<span id=\"dashFooter\">Website developed by <a style = \"color: #ff0000; text-decoration: none;\" href=\"http://www.knockmedia.com\" target=\"_blank\">KnockMedia</a></span>';\r\n}", "function display_footer_logo()\n {\n include 'assets/partials/footer-logo.php';\n }", "public static function getFooter()\n {\n ?>\n <p>Content in the front end's footer. This code comes from <?php echo __METHOD__; ?></p>\n <?php\n }", "function printFooter() {\n\tprint <<<ENDOLA\n</body>\n</html>\nENDOLA;\n}", "protected function makeFooter()\n {\n }", "public function includeFooterAdmin()\n {\n require_once __DIR__ . '/templates/footer.php';\n }", "public function print_footer() {\n // Do nothing.\n }", "function footer() {\n }", "function Footer()\n {\n $this->SetY(-15);\n //Select Arial Italic 8\n $this->SetFont('Arial','I',8);\n $this->SetX(86,5);\n $this->Write(5, '[ powered by '.$this->web_str.']',$this->web_str);\n //Print centered page number\n $this->Cell(0,10,$this->page_str.' '.$this->PageNo(),0,0);\n }", "public function Footer()\n {\n // Go to 10 cm from bottom\n $this->SetY(-10);\n // Set font to Open Sans\n $this->SetFont('opensans', 'I', 6);\n // Print centered page number with datetime and timezone\n $this->AliasNbPages('{totalPages}');\n // The timezone of the user is retrieved from their Auth0 user's profile if available, otherwise the server time zone is used\n // related to this trello card https://trello.com/c/OjWZzsGA\n $timezone = ($_SESSION['auth0_user']['https://www.boxtribute.com/timezone']) ? $_SESSION['auth0_user']['https://www.boxtribute.com/timezone'] : date_default_timezone_get();\n\n $dt = new DateTime('now', new DateTimeZone($timezone));\n // This is quick fix for an issue with the alignment of footer text as the library incorrectly calculates the text length when template variables {totalPages} are used\n $totalPages = ($_GET['count'] && 0 != $_GET['count']) ? round(intval($_GET['count']) / 2) : 1;\n $this->Cell(0, 10, 'Page '.$this->PageNo().' of '.$totalPages.' Printed on '.$dt->format('d-m-Y H:i:s').\" {$timezone}\", 0, 0, 'C');\n }", "function logout(){\n\t\techo '<div class = Logout\">';\n\t\techo '<form name = \"logout\" method=\"post\" action = \"/Logout.php\">';\n\t\techo '<button class = \"Logout\" type=\"submit\">Logout</button>';\n\t\techo '</form>';\n\t\techo '</div>';\n\n\t}", "private function getFooter() {\n\t\t$this->data['oxfooter']\t= \"\\n\"\n\t\t. '<!-- Module ' . ucfirst( $this->_name )\n\t\t.' v.'. $this->_version . ' by http://osworx.net (c) '\n\t\t. date('Y')\n\t\t. ' -->' . \"\\n\";\n\t}", "function opinionstage_settings_load_footer(){\n}", "function setFooter(){\n $this->footer.= <<<EOD\n</div>\n</div>\n</body>\n</html>\nEOD;\n }", "function core_update_footer($msg = '')\n {\n }", "function footer()\r\n{\r\n}", "public function executeFooterPanel()\n {\n }", "function footer() \n{\n\techo <<<END\n\t<div class=\"footer\">\n\tDeveloped by Jason Soo and Jordan Wilberding under the direction of Drs. Gideon Frieder and Ophir Frieder. <br>\n\tCourtesy of the IIT IR Laboratory. E-Mail problems to <a class=\"footer\" href=\"mailto:ushmm@ir.iit.edu\">ushmm@ir.iit.edu</a>\n\t</div>\nEND;\n}", "function change_footer_admin () { echo '<span id=\"footer-thankyou\">Developed by IT ADR</span>'; }", "function um_members_directory_login_form_footer( $args ) {\n\t\t$global_hide_pm_button = ! empty( $args['hide_pm_button'] ) ? $args['hide_pm_button'] : ! UM()->options()->get( 'show_pm_button' );\n\n\t\tif ( is_user_logged_in() || ! empty( $global_hide_pm_button ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tUM()->Messaging_API()->profile()->profile_footer_login_form( $args );\n\t}", "function print_sub_footer() {\r\n\techo '<div class=\"sub-footer\"><div class=\"wrap\"><p><a href=\"/about\">Learn more about Speak Agent <i class=\"fa fa-caret-right\"></i></a></p></div></div>';\r\n}", "function footer()\n{\n echo \"</hr><center>\";\n echo \"<a href='welcome.php'>Home Page</a>\";\n echo \" &nbsp; | &nbsp; \";\n echo \"<a href='item1.php'>Bitcoin</a>\";\n echo \" &nbsp; | &nbsp; \";\n echo \"<a href='item2.php'>Ethereum</a>\";\n echo \" &nbsp; | &nbsp; \";\n echo \"<a href='item3.php'>Binance Coin</a>\";\n echo \" &nbsp; | &nbsp; \";\n echo \"<a href='item4.php'>Cardano</a>\";\n echo \" &nbsp; | &nbsp; \";\n echo \"<a href='checkout.php'>Checkout</a>\"; \n echo \" &nbsp; | &nbsp; \";\n echo \"<a href='logout.php'>Logout</a>\";\n\n if ($_SESSION['group'] == \"admin\")\n {\n echo \" &nbsp; | &nbsp; \";\n echo \"<a href='userdata.php'>User Data</a>\";\n echo \" &nbsp; | &nbsp; \";\n echo \"<a href='purchasedata.php'>Purchase Data</a>\";\n\n }\n echo \"</center>\";\n \n echo \"<center>\"; \n echo \"<img src='images/btc.jpg'></img>\";\n echo \"</center>\";\n}", "public function footer()\n\t\t{\t\t\t\n\t\t\treturn $this->render('incs/footer');\n\t\t}", "public function footer()\n\t{\n\t\t$social = array();\n\t\tif(!empty($this->cfg->facebook)){$social['facebook'] = $this->cfg->facebook;}\n\t\tif(!empty($this->cfg->instagram)){$social['instagram'] = $this->cfg->instagram;}\n\t\tif(!empty($this->cfg->youtube)){$social['youtube'] = $this->cfg->youtube;}\n\t\tif(!empty($this->cfg->twitter)){$social['twitter'] = $this->cfg->twitter;}\n\t\tif(!empty($this->cfg->tumblr)){$social['tumblr'] = $this->cfg->tumblr;}\n\t\t$links = $this->footer;\n\t\treturn view('footer')->with(compact('social','links'))->render();\n\t}", "public function print_footer_scripts()\n {\n }", "function sloodle_print_footer()\n {\n sloodle_print_footer($this->course);\n }", "public static function footer()\n {\n $version ='<strong style=\"color: green;\">'.EcrHtml::getVersionFromCHANGELOG('com_easycreator').'</strong>';\n ?>\n<div class=\"ecrFooter\">\n<span class=\"img icon-16-easycreator\">EasyCreator</span> <?php echo $version; ?> runs best on\n<a href=\"http://www.mozilla-europe.org/firefox/\" title=\"FireFox\" class=\"external\">\n<span class=\"img icon-16-firefox\">Firefox</span></a>\nand <a href=\"http://opensuse.org\" title=\"openSUSE\" class=\"external\">\n<span class=\"img icon-16-opensuse\">openSUSE</span></a> <br />\nMade and partially Copyright &copy; 2008 - 2012 by <a\nhref=\"https://github.com/elkuku\"\n class=\"external\">El KuKu</a><br />\n<small> <em style=\"color: silver;\"><span class=\"img icon-16-joomla\"></span>\nEasyCreator is not affiliated with or endorsed by the <a\n href=\"http://joomla.org\" class=\"external\">Joomla! Project</a>. It is\nnot supported or warranted by the <a href=\"http://joomla.org\"\n class=\"external\">Joomla! Project</a> or <a\n href=\"http://opensourcematters.org/\" class=\"external\">Open Source\nMatters</a>.<br />\n <a\n href=\"http://www.joomla.org/about-joomla/the-project/conditional-use-logos.html\"\n class=\"external\">The Joomla! logo</a> is used under a limited license\ngranted by <a href=\"http://opensourcematters.org/\" class=\"external\">Open\nSource Matters</a> the trademark holder in the United States and other\ncountries.</em></small>\n</div>\n <?php\n\n if(defined('ECR_DEBUG') && ECR_DEBUG )\n {\n EcrDebugger::printSysVars('get');\n EcrDebugger::printSysVars('post');\n }\n\n echo NL.'<!-- EasyCreator END -->'.NL;\n }", "function display_analyzer_footer() {\n $mysql_version = mysql_get_server_info();\n $php_os = PHP_OS;\n $p_blog_version = P_BLOG_VERSION;\n $analyzer_footer =<<<EOD\n\n</div>\n<!-- Begin #footer -->\n<div id=\"footer\">\n<address>\nPowered by {$_SERVER['SERVER_SOFTWARE']} &amp; MySQL-{$mysql_version} running on {$php_os}<br />\nPowered by P_BLOG ver.{$p_blog_version}\n</address>\n</div><!-- End #footer -->\n</div><!-- End #wrapper -->\n</body>\n</html>\nEOD;\n return $analyzer_footer;\n}", "function showFooter()\n{\n ?>\n </body>\n </html>\n <?php\n}", "function Footer(){\n\t}", "public function Footer()\n {\n $this->SetFont('Arial', 'I', 8);\n $this->SetY(-15);\n $this->Write(4, 'Dokumen ini dicetak secara otomatis menggunakan sistem terkomputerisasi');\n\n $time = \"Dicetak pada tanggal \" . date('d-m-Y H:i:s') . \" WIB\";\n\n $this->SetX(-150);\n $this->Cell(0, 4, $time, 0, 0, 'R');\n }", "protected function renderFooter(){\n try {\n include_once($this->footer);\n } catch (Exception $e) {\n echo 'Footer missing';\n }\n }", "function footer() {\t\t\r\n\t\t?>\r\n\t\t</div>\r\n\t\t</div>\r\n\t</body>\r\n</html>\r\n\t\t<?php\r\n\t}", "function my_loginfooter() { ?>\n\t<p class=\"login-addition\">Not yet a registered learner?<br>\n\t\t<a href=\"<?php echo home_url(); ?>/register\">Find out how to register</a>\n\t</p>\n<?php }", "public function footerAction() {$this->_helper->viewRenderer->setResponseSegment('footer');}", "function print_footer(){\n\t\techo '</div></div><div class=\"clear\"></div><div id=\"hana-footer\"><input type=\"hidden\" name=\"action\" value=\"save\" />\n\t\t\t <input type=\"submit\" value=\"Save Changes\" class=\"save-button\" />\n\t\t\t </div>\t\n\t\t\t</form></div>';\n\t}", "function OutputFooter() {\n echo \n '<footer>\n <!-- footer container-->\n <div class=\"footerstyle\">\n \n <!--footer icons container-->\n <div class=\"footericons\">\n \n <!--content within the footer icons container -->\n <a href=\"#\" class=\"fa fa-facebook\"></a>\n <br>\n <a href=\"#\" class=\"fa fa-google\"></a>\n \n </div>\n \n\n <!-- container fot the logo and the copyright text within the footer -->\n <div class=\"containerfooterlogocopy\">\n \n <!-- logo container with the logo image within the container-->\n <div class=\"logofooter\">\n <a href=\"index.php\"><img src=\"\\Coursework1PaulLucianCosareanu\\Images\\Logo.png\" alt=\"Italian Trulli\"></a>\n </div>\n \n <!-text container with the actual text inside it -->\n <div class=\"copyright\">\n <h3>© 2011 John Doe All Rights Reserved</h3>\n </div>\n </div>\n\n <!-- list of contact whics is a bullet point with different details, the list of contat is the container containing the bullet points-->\n <div class=\"listofcontact\">\n <ul>\n <li><h5>Contact Number: 07448642396</h5></li>\n <li><h5>Email: cosareanu.paul@yahoo.com</h5></li>\n <li><h5>Address: 16 Scarborough Road Leytonstone</h5></li>\n </div>\n </div>\n \n </footer>\n </body>\n </html>';\n}", "function Footer()\r\n {\r\n }", "function viewFooter() {\n\t$view = new viewModel();\n\t$view->showFooter();\t\n}", "private function displayFooter(){\n\t\t\t$html = '</div>'.\"\\n\"; //closing main container div\n\t\t\t$html .= '<div id=\"footer\">'.\"\\n\";\n\t\t\t$html .= '<div class=\"wrapper\">'.\"\\n\";\n\t\t\t$html .= '<div class=\"left\">'.\"\\n\";\n\t\t\t$html .= '<h3> Links </h3>'.\"\\n\";\n\t\t\t$html .= '<ul>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"index.php\">Home</a></li>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"index.php?p=10\">About</a></li>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"index.php?p=9\">Articles</a></li>'.\"\\n\";\t\t\t\t\t\n\t\t\t$html .= '<li><a href=\"feed/\">Rss</a></li>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"index.php?p=14\" accesskey=\"4\">Accessibility</a></li>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"index.php?p=15\" accesskey=\"5\">Sitemap</a></li>'.\"\\n\";\n\t\t\t$html .= '</ul>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\t\t\t\n\t\t\t$html .= '<div class=\"right\">'.\"\\n\";\n\t\t\t$html .= '<h3> Follow </h3>'.\"\\n\";\n\t\t\t$html .= '<ul>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"http://facebook.com\" target=\"_blank\">Facebook</a></li>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"http://twitter.com\" target=\"_blank\">Twitter</a></li>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"feed/\">Rss</a></li>'.\"\\n\";\n\t\t\t$html .= '</ul>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '<p class=\"copyright\">Copyright &copy; '.COPY_RIGHT. ' '. Date('Y').'</p>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '</body>'.\"\\n\";\n\t\t\t$html .= '</html>'.\"\\n\";\n\t\t\treturn $html;\n\t\t}", "private function displayFooter()\n {\n\n $html = '</div>' . \"\\n\";\n $html .= '</div>' . \"\\n\";\n $html .= '<div id=\"footer\">' . \"\\n\";\n $html .= '<ul>' . \"\\n\";\n $html .= '<li>&copy; Volition 2012</li>' . \"\\n\";\n $html .= '<li><a href=\"index.php?page=home\">Home</a></li>' . \"\\n\";\n $html .= '<li><a href=\"index.php?page=home\">My Profile</a></li>' . \"\\n\";\n if (!$this->model->userLoggedIn) {\n $html .= '<li><a href=\"index.php?page=register\">Register</a></li>' . \"\\n\";\n $html .= '<li><a href=\"index.php?page=login\">Login</a></li>' . \"\\n\";\n }\n $html .= '<li><a href=\"index.php?page=browse\">Browse</a></li>' . \"\\n\";\n $html .= '<li><a href=\"index.php?page=about\">About</a></li>' . \"\\n\";\n $html .= '<li><a href=\"index.php?page=contact\">Contact</a></li>' . \"\\n\";\n $html .= '</ul>' . \"\\n\";\n $html .= '</div>' . \"\\n\";\n $html .= '<script type=\"text/javascript\" src=\"js/search.js\"></script>';\n $html .= '</body>' . \"\\n\";\n $html .= '</html>' . \"\\n\";\n\n return $html;\n }", "public function print_footer_scripts()\n {\n }", "function cp_admin_logs()\n{\n?>\n\n\t<div class=\"wrap\">\n\t\t<h2>CubePoints - <?php _e('Logs', 'cp'); ?></h2>\n\t\t<?php _e('View recent point transactions.', 'cp'); ?><br /><br />\n\t\t<?php cp_show_logs('all', apply_filters('cp_admin_logs_limit', 0 ) , true); ?>\n\t</div>\n\t\n\t<?php do_action('cp_admin_logs'); ?>\n\t\n\t<?php\n}", "function FooterBlog() {\n\n\n?>\n\n<!-- flujo footer -->\n<div class=\"holder-last\"> </div>\n\n<!-- página estándar -->\n<footer class=\"bg-footer\">\n <section class=\"holder50\">\n <h6 class=\"center\">&#169;Copyright 2016 <br/>Instituto Tecnológico Superior de la Montaña, <br>Todos los derechos reservados.</h6>\n </section>\n</footer>\n\n\n<?php\n }", "public function common_metabox_footer() {\r\n\t\t$this->view( 'meta-box-footer', array(), 'common' );\r\n\t}", "public static function renderFooter()\n {\n include DIR_INCLUDES . 'footer.php';\n }", "function Footer() {\r\n\t\t\t$this->SetY( -15 );\r\n\t\t\t\r\n\t\t\t//set font to Arial, Bold, size 10\r\n\t\t\t$this->SetFont( 'Arial', 'B', 10 );\r\n\t\t\t\r\n\t\t\t//set font color to blue\r\n\t\t\t$this->SetTextColor( 52, 98, 185 );\r\n\t\t\t\r\n\t\t\t$this->Cell( 0, 10, 'www.iFadey.com', 0, 0, 'L' );\r\n\t\t\t\r\n\t\t\t//set font color to gray\r\n\t\t\t$this->SetTextColor( 150, 150, 150 );\r\n\t\t\t\r\n\t\t\t//write Page No\r\n\t\t\t$this->Cell( 0, 10, 'Page No: ' . $this->PageNo(), 0, 0, 'R' );\r\n\t\t}" ]
[ "0.7493707", "0.7296187", "0.72735447", "0.7068483", "0.69543993", "0.68830395", "0.6878468", "0.6839813", "0.68199795", "0.67510706", "0.67502964", "0.67180794", "0.6700586", "0.66849077", "0.6629764", "0.66238123", "0.6592281", "0.6585966", "0.6537965", "0.6537965", "0.6537965", "0.6537965", "0.6537965", "0.65327525", "0.65296996", "0.65106165", "0.64846903", "0.64846903", "0.6474888", "0.64550817", "0.6433325", "0.64227545", "0.64172703", "0.6389198", "0.6389198", "0.6380337", "0.63761663", "0.63759065", "0.6374252", "0.6367764", "0.63617593", "0.6354787", "0.6350601", "0.6336642", "0.6335193", "0.6330153", "0.6326048", "0.63084376", "0.63076735", "0.6306477", "0.63035893", "0.6297334", "0.62946767", "0.62839603", "0.6280796", "0.62633723", "0.6258468", "0.62447953", "0.6243432", "0.62360835", "0.62300926", "0.6210254", "0.6198019", "0.6197814", "0.6194393", "0.6194319", "0.61889493", "0.61864924", "0.6182677", "0.6179016", "0.6177057", "0.61729276", "0.61640066", "0.61631083", "0.6134818", "0.61320436", "0.6129148", "0.6124251", "0.6123401", "0.6119027", "0.6118366", "0.61144507", "0.6113942", "0.6109023", "0.6107683", "0.61056215", "0.61040527", "0.61020464", "0.60882115", "0.60751647", "0.60693306", "0.6065857", "0.6064553", "0.606206", "0.60591066", "0.60579455", "0.60562617", "0.6054133", "0.6051206", "0.60470414" ]
0.61265814
77
Display socialpart in footer.php
function circle_footer_social() { get_template_part( 'template-parts/footer-social' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function display_footer_social()\n {\n include 'assets/partials/footer-social.php';\n }", "function kickstart_footer_social() {\n\tgenesis_widget_area( 'footer-social', array(\n\t\t'before' => '<section class=\"footer-social\"><div class=\"wrap\">',\n\t\t'after' => '</div></section>',\n\t) );\n}", "function storefront_footer_social_media()\n {\n include('footer_social_media.php');\n }", "function thb_social_nav() {\n\t\tthb_get_template_part( 'partials/partial-socials.php' );\n\t}", "public function footer()\n\t{\n\t\t$social = array();\n\t\tif(!empty($this->cfg->facebook)){$social['facebook'] = $this->cfg->facebook;}\n\t\tif(!empty($this->cfg->instagram)){$social['instagram'] = $this->cfg->instagram;}\n\t\tif(!empty($this->cfg->youtube)){$social['youtube'] = $this->cfg->youtube;}\n\t\tif(!empty($this->cfg->twitter)){$social['twitter'] = $this->cfg->twitter;}\n\t\tif(!empty($this->cfg->tumblr)){$social['tumblr'] = $this->cfg->tumblr;}\n\t\t$links = $this->footer;\n\t\treturn view('footer')->with(compact('social','links'))->render();\n\t}", "function display_portal_footer()\r\n {\r\n Display :: footer();\r\n }", "public function hookFooter(){\n $settings = unserialize( Configuration::get($this->name.'_settings') );\n \n $this->context->smarty->assign(array(\n 'user' => $settings['user'],\n 'widget_id' => $settings['widget_id'],\n 'tweets_limit' => $settings['tweets_limit'],\n 'follow_btn' => $settings['follow_btn']\n ));\n \n return $this->display(__FILE__, $this->name.'.tpl');\n }", "function circle_menu_social() {\n\tget_template_part( 'template-parts/menu-social' );\n}", "function endcore_socialbuttons_shortcode($atts, $content = null) {\n if(is_admin()) {\n return;\n }\n\n\tob_start();\t\n\tget_template_part('parts/stuff/code', 'social');\n\t$output = ob_get_contents();\n\tob_end_clean();\n\treturn $output;\n}", "function showFooter() \n {\n // AUSGABE\n echo \"<div class='newFahrt'><div class='footer'>\";\n echo \"<p>EventPlanner by Steven Schödel (c) Version 05.072019 | \";\n echo \"<a href='/flatnet2/informationen/impressum.php'>Impressum</a> | \";\n echo \"<a href='/index.php'>Login</a>\";\n echo \"</p>\";\n echo \"</div></div>\";\n }", "function display_footer_contact()\n {\n include 'assets/partials/footer-contact.php';\n }", "function opinionstage_settings_load_footer(){\n}", "function display_footer_quicklinks()\n {\n include 'assets/partials/footer-quicklinks.php';\n }", "function footer() {\n\n\techo '<p>Copyright Dynamic Sites LLC 2012</p>';\n\t\n}", "function extamus_change_admin_footer(){\n\t echo '<span id=\"footer-note\">Please dont hesitate to reach out to your friends at <a href=\"http://www.extamus.com/\" target=\"_blank\">Extamus Media</a> with any questions.</span>';\n\t}", "function circle_display_single_sharing() {\n\tif ( ! circle_option( 'display_single_sharing' ) ) {\n\t\treturn;\n\t}\n\tget_template_part( 'template-parts/post-social-sharing' );\n}", "function footer() {\n\t\trequire ('views/partial/footer.php');\n\t}", "function print_sub_footer() {\r\n\techo '<div class=\"sub-footer\"><div class=\"wrap\"><p><a href=\"/about\">Learn more about Speak Agent <i class=\"fa fa-caret-right\"></i></a></p></div></div>';\r\n}", "function sloodle_print_footer()\r\n {\r\n global $CFG;\r\n echo \"<p style=\\\"text-align:center; margin-top:32px; font-size:90%;\\\"><a href=\\\"{$CFG->wwwroot}/course/view.php?id={$this->course->id}\\\">&lt;&lt;&lt; \".get_string('backtocoursepage','sloodle').\"</a></h2>\";\r\n sloodle_print_footer($this->course);\r\n }", "function aitpro_login_footer() {\necho '<div id=\"footer\" class=\"row\">';\necho '<div class=\"sixteen columns\">';\necho '<div class=\"copyright\">Copyright &copy;'.date('Y').' '.bloginfo('name').'</div>';\necho '</div></div>';\n}", "function display_footer()\r\n {\r\n if ($this->has_menu())\r\n {\r\n echo '<div class=\"clear\">&nbsp;</div>';\r\n echo '</div>';\r\n }\r\n\r\n echo '<div class=\"clear\">&nbsp;</div>';\r\n Display :: footer();\r\n }", "function displayFooter()\n\t{\n\t\t// footer (not really)\n\t\tif ($this->cmd != \"logout\")\n\t\t{\n\t\t\tif ($this->setup->ini_ilias_exists and $this->display_mode == \"setup\" and $this->setup->getClient()->getId() != \"\")\n\t\t\t{\n\t\t\t\t$this->tpl->setVariable(\"TXT_ACCESS_MODE\",\"(\".$this->lng->txt(\"client_id\").\": \".$this->setup->getClient()->getId().\")\");\n\t\t\t}\n\t\t\telseif ($this->setup->isAdmin())\n\t\t\t{\n\t\t\t\t$this->tpl->setVariable(\"TXT_ACCESS_MODE\",\"(\".$this->lng->txt(\"root_access\").\")\");\n\t\t\t}\n\n\t\t\t$this->displayNavButtons();\n\t\t}\n\n\t\t$this->tpl->show();\n\t}", "function ejo_social_share() {\n ?>\n <aside class=\"social-share\">\n <h3>Deel dit bericht</h3>\n <a target=\"_blank\" title=\"Share on Twitter\" href=\"https://twitter.com/share?url=<?php echo get_permalink(); ?>\">Twitter</a>\n <a target=\"_blank\" title=\"Share on Facebook\" href=\"https://www.facebook.com/sharer/sharer.php?<?php echo get_permalink(); ?>\">Facebook</a>\n </aside>\n <?php\n}", "function get_footer() {\r\n\t\trequire_once('theme_parts/footer.php');\r\n\t}", "function FooterBlog() {\n\n\n?>\n\n<!-- flujo footer -->\n<div class=\"holder-last\"> </div>\n\n<!-- página estándar -->\n<footer class=\"bg-footer\">\n <section class=\"holder50\">\n <h6 class=\"center\">&#169;Copyright 2016 <br/>Instituto Tecnológico Superior de la Montaña, <br>Todos los derechos reservados.</h6>\n </section>\n</footer>\n\n\n<?php\n }", "function mantis_publisher_footer()\n{\n\t$site = get_option('mantis_site_id');\n\n\tif (!$site) {\n\t\treturn;\n\t}\n\n\trequire(dirname(__FILE__) . '/html/publisher/config.php');\n\n\trequire(dirname(__FILE__) . '/html/publisher/styling.php');\n\n\tif (get_option('mantis_async')) {\n\t\trequire(dirname(__FILE__) . '/html/publisher/async.html');\n\t} else {\n\t\trequire(dirname(__FILE__) . '/html/publisher/sync.html');\n\t}\n}", "function circle_entry_footer() {\n\t\t// Hide category and tag text for pages.\n\t\tif ( 'post' === get_post_type() && is_single() ) :\n\t\t\t/* translators: used between list items, there is a space after the comma */\n\t\t\t$categories_list = get_the_category_list( esc_html__( ' ', 'circle' ) );\n\t\t\tif ( $categories_list && circle_categorized_blog() ) :\n\t\t\t\tprintf( '<p class=\"bx-blog__tags pull-left\"><label>' . esc_html__( 'Categories: &nbsp;', 'circle' ) . '</label>%1$s</p>', $categories_list ); // WPCS: XSS OK.\n\t\t\tendif;\n\n\t\t\techo sprintf( '<span class=\"sr-only\">%&s</span>', get_the_tag_list() ); // WPCS: XSS OK.\n\n\t\t\tedit_post_link(\n\t\t\t\tsprintf(\n\t\t\t\t\t/* translators: %s: Name of current post */\n\t\t\t\t\tesc_html__( ' - Edit %s', 'circle' ),\n\t\t\t\t\tthe_title( '<p class=\"screen-reader-text\">\"', '\"</p>', false )\n\t\t\t\t),\n\t\t\t\t'<span class=\"edit-link\">',\n\t\t\t\t'</span>'\n\t\t\t);\n\t\t\tif ( circle_option( 'display_single_sharing' ) ) :\n\t\t\t\tget_template_part( 'template-parts/post-social-sharing' );\n\t\t\tendif;\n\t\telse : ?>\n\t\t\t<a href=\"<?php echo esc_url( get_permalink() );?>\" class=\"btn btn-default pull-left\" title=\"<?php echo esc_html( the_title() );?>\"><?php echo esc_html( 'Learn more', 'circle' );?></a>\n\t\t<?php\n\t\tif ( circle_option( 'display_archive_sharing' ) ) :\n\t\t\tget_template_part( 'template-parts/post-social-sharing' );\n\t\tendif;\n\t\tendif;\n\t}", "function footer() {\n\t?>\n\t\t\t\t<div class=\"headfoot\">\n\t\t\t\t\t<p>\n\t\t\t\t\t\t&quot;Remember The Cow is nice, but it's a total copy of another site.&quot; - PCWorld<br />\n\t\t\t\t\t\tAll pages and content &copy; Copyright CowPie Inc.\n\t\t\t\t\t</p>\n\n\t\t\t\t\t<div id=\"w3c\">\n\t\t\t\t\t\t<a href=\"https://webster.cs.washington.edu/validate-html.php\">\n\t\t\t\t\t\t\t<img src=\"https://webster.cs.washington.edu/images/w3c-html.png\" alt=\"Valid HTML\" /></a>\n\t\t\t\t\t\t<a href=\"https://webster.cs.washington.edu/validate-css.php\">\n\t\t\t\t\t\t\t<img src=\"https://webster.cs.washington.edu/images/w3c-css.png\" alt=\"Valid CSS\" /></a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</body>\n\t\t</html>\n\t<?php\n\t}", "protected function generatePageFooter() \r\n {\r\n echo <<<HTML\r\n </article>\r\n <script src=\"CityWok.js\"> </script>\r\n </body>\r\n</html>\r\nHTML;\r\n }", "function output_footer() {\n?>\n\t\t<!-- Main footer section -->\n\t\t<footer>\n\t\t\t<div class=\"container\">\n\t\t\t\t<div class=\"row\">\n\t\t\t\t\t<div class=\"col-sm-9\">\n\t\t\t\t\t\t<ul id=\"footer-copyright-terms-privacy\" class=\"list-inline\">\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<p>&copy; CrowdShot <?php echo date('Y'); ?></p>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<p><a href=\"terms-of-service.php\">Terms of service</a></p>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<p><a href=\"privacy-policy.php\">Privacy policy</a></p>\n\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class=\"col-sm-3\">\n\t\t\t\t\t\t<ul class=\"share-icon-list list-inline pull-right\">\n\t\t\t\t\t\t\t<li>Share</li>\n\t\t\t\t\t\t\t<li class=\"share-icon\"><a href=\"http://facebook.com/\" target=\"crowdshotfacebook\"><i class=\"fa fa-facebook-square\"></i></a></li>\n\t\t\t\t\t\t\t<li class=\"share-icon\"><a href=\"http://twitter.com/\" target=\"crowdshottwitter\"><i class=\"fa fa-twitter-square\"></i></a></li>\n\t\t\t\t\t\t\t<li class=\"share-icon\"><a href=\"mailto:\"><i class=\"fa fa-envelope\"></i></a></li>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t<div class=\"clearfix\"></div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div> <!-- .container -->\n\t\t</footer>\n\t</body>\n</html>\n<?php\n}", "public function social() {\n\t\t?>\n\t\t<p>\n\t\t<div class=\"g-plusone\" data-size=\"medium\" data-href=\"http://wp-buddy.com/products/plugins/google-drive-as-wordpress-cdn-plugin/\"></div>\n\t\t</p>\n\n\t\t<script type=\"text/javascript\">\n\t\t\t(function () {\n\t\t\t\tvar po = document.createElement( 'script' );\n\t\t\t\tpo.type = 'text/javascript';\n\t\t\t\tpo.async = true;\n\t\t\t\tpo.src = 'https://apis.google.com/js/plusone.js';\n\t\t\t\tvar s = document.getElementsByTagName( 'script' )[0];\n\t\t\t\ts.parentNode.insertBefore( po, s );\n\t\t\t})();\n\t\t</script>\n\n\t\t<p>\n\t\t\t<a href=\"https://twitter.com/share\" class=\"twitter-share-button\" data-url=\"http://wp-buddy.com/products/plugins/google-drive-as-wordpress-cdn-plugin/\" data-text=\"Check out the Google Drive as CDN WordPress Plugin\" data-related=\"wp_buddy\">Tweet</a>\n\t\t</p>\n\t\t<script>!function ( d, s, id ) {\n\t\t\t\tvar js, fjs = d.getElementsByTagName( s )[0];\n\t\t\t\tif ( !d.getElementById( id ) ) {\n\t\t\t\t\tjs = d.createElement( s );\n\t\t\t\t\tjs.id = id;\n\t\t\t\t\tjs.src = \"//platform.twitter.com/widgets.js\";\n\t\t\t\t\tfjs.parentNode.insertBefore( js, fjs );\n\t\t\t\t}\n\t\t\t}( document, \"script\", \"twitter-wjs\" );</script>\n\n\t\t<p>\n\t\t\t<iframe src=\"//www.facebook.com/plugins/like.php?href=<?php echo urlencode( 'http://wp-buddy.com/products/plugins/google-drive-as-wordpress-cdn-plugin/' ); ?>&amp;send=false&amp;layout=button_count&amp;width=150&amp;show_faces=false&amp;font&amp;colorscheme=light&amp;action=like&amp;height=21\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:150px; height:21px;\" allowTransparency=\"true\"></iframe>\n\t\t</p>\n\t<?php\n\t}", "function udesign_footer_inside() {\r\n do_action('udesign_footer_inside');\r\n}", "public function displayContentFooter() {\n ?>\n <footer class=\"container-fluid text-center\">\n <p>IT360 Applied Database Systems Project By Harrison Bleckley, Drake Bodine, and Lani Davis</p>\n </footer>\n <?php\n }", "function display_footer_logo()\n {\n include 'assets/partials/footer-logo.php';\n }", "function dizzy_social_shortcode( ) {\n\t ob_start();\n\techo '<div class=\"social\">';\n//Facebook\t\nif (get_theme_mod('fb_social_setting')) {\n\techo '<a href=\"';\n\techo get_theme_mod( 'fb_social_setting', '' ); \n\techo '\" title=\"Like Us On Facebook\" target=\"_blank\"><i class=\"fab fa-facebook-f\"></i></a>';\n}\n//Instagram\t\nif (get_theme_mod('ig_social_setting')) {\n\techo '<a href=\"';\n\techo get_theme_mod( 'ig_social_setting', '' ); \n\techo '\" title=\"Follow Us On Instagram\" target=\"_blank\"><i class=\"fab fa-instagram\"></i></a>';\n}\n//Twitter\nif (get_theme_mod('tw_social_setting')) {\n\techo '<a href=\"';\n\techo get_theme_mod( 'tw_social_setting', '' ); \n\techo '\" title=\"Follow Us On Twitter\" target=\"_blank\"><i class=\"fab fa-twitter\"></i></a>';\n}\n//Google Plus\nif (get_theme_mod('gp_social_setting')) {\n\techo '<a href=\"';\n\techo get_theme_mod( 'gp_social_setting', '' ); \n\techo '\" rel=\"publisher author\" title=\"Connect With Us On Google +\" target=\"_blank\"><i class=\"fab fa-google-plus-g\"></i></a>';\n}\n//YouTube\nif (get_theme_mod('yt_social_setting')) {\n\techo '<a href=\"';\n\techo get_theme_mod( 'yt_social_setting', '' ); \n\techo '\" rel=\"publisher author\" title=\"Watch Us On YouTube\" target=\"_blank\"><i class=\"fab fa-youtube\"></i></a>';\n}\n//Linked In\nif (get_theme_mod('li_social_setting')) {\n\techo '<a href=\"';\n\techo get_theme_mod( 'li_social_setting', '' ); \n\techo '\" title=\"Connect on LinkedIn\" target=\"_blank\"><i class=\"fab fa-linkedin\"></i></a>';\n}\n//Yelp\nif (get_theme_mod('yl_social_setting')) {\n\techo '<a href=\"';\n\techo get_theme_mod( 'yl_social_setting', '' ); \n\techo '\" title=\"Check Us Out On Yelp!\" target=\"_blank\"><i class=\"fab fa-yelp\"></i></a>';\n}\n//Avvo\nif (get_theme_mod('av_social_setting')) {\n\techo '<a href=\"';\n\techo get_theme_mod( 'av_social_setting', '' ); \n\techo '\" title=\"View My Profile On Avvo\" target=\"_blank\"><img src=\"https://d17vkztfo54i4d.cloudfront.net/wp-content/uploads/sites/22/2015/04/avvo-logo-bug-150x150.png\"/></a>';\n}\necho '</div><!--Social Icons-->';\n\t$myvariable = ob_get_clean();\n return $myvariable;\n}", "function circle_display_archive_sharing() {\n\tif ( ! circle_option( 'display_archive_sharing' ) ) {\n\t\treturn;\n\t}\n\tget_template_part( 'template-parts/post-social-sharing' );\n}", "function sp_author_box($avatar = true , $social = true ){\n\tif( $avatar ) : ?>\n\t<div class=\"author-avatar\">\n\t\t<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'MFW_author_bio_avatar_size', 75 ) ); ?>\n\t</div><!-- #author-avatar -->\n\t<?php endif; ?>\n\t\t<div class=\"author-description\">\n\t\t\t<?php the_author_meta( 'description' ); ?>\n\t\t</div><!-- #author-description -->\n\t<?php if( $social ) :\t?>\t\n\t\t<div class=\"author-social\">\n\t\t\t<?php if ( get_the_author_meta( 'url' ) ) : ?>\n\t\t\t<a class=\"ttip\" href=\"<?php the_author_meta( 'url' ); ?>\" title=\"<?php the_author_meta( 'display_name' ); ?><?php _e( \" 's site\", 'sptheme' ); ?>\"><img src=\"<?php echo get_template_directory_uri(); ?>/images/socialicons/site.png\" alt=\"\" /></a>\n\t\t\t<?php endif ?>\t\n\t\t\t<?php if ( get_the_author_meta( 'twitter' ) ) : ?>\n\t\t\t<a class=\"ttip\" href=\"http://twitter.com/<?php the_author_meta( 'twitter' ); ?>\" title=\"<?php the_author_meta( 'display_name' ); ?><?php _e( ' on Twitter', 'sptheme' ); ?>\"><img src=\"<?php echo get_template_directory_uri(); ?>/images/socialicons/twitter.png\" alt=\"\" /></a>\n\t\t\t<?php endif ?>\t\n\t\t\t<?php if ( get_the_author_meta( 'facebook' ) ) : ?>\n\t\t\t<a class=\"ttip\" href=\"<?php the_author_meta( 'facebook' ); ?>\" title=\"<?php the_author_meta( 'display_name' ); ?> <?php _e( ' on Facebook', 'sptheme' ); ?>\"><img src=\"<?php echo get_template_directory_uri(); ?>/images/socialicons/facebook.png\" alt=\"\" /></a>\n\t\t\t<?php endif ?>\n\t\t\t<?php if ( get_the_author_meta( 'google' ) ) : ?>\n\t\t\t<a class=\"ttip\" href=\"<?php the_author_meta( 'google' ); ?>\" title=\"<?php the_author_meta( 'display_name' ); ?> <?php _e( ' on Google+', 'sptheme' ); ?>\"><img src=\"<?php echo get_template_directory_uri(); ?>/images/socialicons/google_plus.png\" alt=\"\" /></a>\n\t\t\t<?php endif ?>\t\n\t\t\t<?php if ( get_the_author_meta( 'linkedin' ) ) : ?>\n\t\t\t<a class=\"ttip\" href=\"<?php the_author_meta( 'linkedin' ); ?>\" title=\"<?php the_author_meta( 'display_name' ); ?> <?php _e( ' on Linkedin', 'sptheme' ); ?>\"><img src=\"<?php echo get_template_directory_uri(); ?>/images/socialicons/linkedin.png\" alt=\"\" /></a>\n\t\t\t<?php endif ?>\t\t\t\t\n\t\t\t<?php if ( get_the_author_meta( 'flickr' ) ) : ?>\n\t\t\t<a class=\"ttip\" href=\"<?php the_author_meta( 'flickr' ); ?>\" title=\"<?php the_author_meta( 'display_name' ); ?><?php _e( ' on Flickr', 'sptheme' ); ?>\"><img src=\"<?php echo get_template_directory_uri(); ?>/images/socialicons/flickr.png\" alt=\"\" /></a>\n\t\t\t<?php endif ?>\t\n\t\t\t<?php if ( get_the_author_meta( 'youtube' ) ) : ?>\n\t\t\t<a class=\"ttip\" href=\"<?php the_author_meta( 'youtube' ); ?>\" title=\"<?php the_author_meta( 'display_name' ); ?><?php _e( ' on YouTube', 'sptheme' ); ?>\"><img src=\"<?php echo get_template_directory_uri(); ?>/images/socialicons/youtube.png\" alt=\"\" /></a>\n\t\t\t<?php endif ?>\n\t\t\t<?php if ( get_the_author_meta( 'pinterest' ) ) : ?>\n\t\t\t<a class=\"ttip\" href=\"<?php the_author_meta( 'pinterest' ); ?>\" title=\"<?php the_author_meta( 'display_name' ); ?><?php _e( ' on Pinterest', 'sptheme' ); ?>\"><img src=\"<?php echo get_template_directory_uri(); ?>/images/socialicons/pinterest.png\" alt=\"\" /></a>\n\t\t\t<?php endif ?>\n\n\t\t</div>\n\t<?php endif; ?>\n\t<div class=\"clear\"></div>\n\t<?php\n}", "protected function renderFooter(){\n try {\n include_once($this->footer);\n } catch (Exception $e) {\n echo 'Footer missing';\n }\n }", "function base_admin_footer_bloom() {\n\t?>\n\t<span id=\"footer-thankyou\">\n\t\t<?php esc_html_e( 'Theme Development by', 'base' ); ?>\n\t\t<a href=\"https://bloomcu.com\"><?php esc_html_e( 'BloomCU', 'base' ); ?></a>.\n\t</span>\n\t<?php\n}", "function circle_footer_copyright() {\n\tcircle_site_copyright( '<div class=\"footer__copyright\">', '</div>' );\n}", "function ufandshands_child_add_footer() {\n \n\tif (is_page( 'Apply' ) ) {\n \techo \"<link rel=\\\"stylesheet\\\" href=\\\"//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css\\\">\";\n \n }\n}", "public function control_panel__add_to_foot()\n\t{\n\t\tif (URL::getCurrent(false) !== '/publish') {\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\treturn $this->js->link('section_links');\n\t}", "public function pfoot() {\n include(dirname(dirname(__FILE__)) . '/ui/footer.php');\n }", "function sloodle_print_footer()\n {\n sloodle_print_footer($this->course);\n }", "public function my_addition_to_login_footer() {\n }", "public static function displayFooter() {\r\n ?>\r\n <br><br><br>\r\n <div id=\"push\"></div>\r\n </div>\r\n <div id=\"footer\"><br>&copy 2016 Power House. All Rights Reserved.</div>\r\n <script type=\"text/javascript\" src=\"<?= BASE_URL ?>/www/js/ajax_autosuggestion.js\"></script>\r\n </body>\r\n </html>\r\n <?php\r\n }", "function wolf_share_output_social_buttons( $content ) {\n\n\t$selected_post_types = wolf_share_get_option( 'post_types' );\n\t$post_type = get_post_type();\n\t$condition = ( is_single() && isset( $selected_post_types[ $post_type ] ) );\n\n\t$new_content = '';\n\n\tif ( $condition ) {\n\t\t$new_content .= wolf_share();\n\t}\n\n\t$new_content .= $content;\n\n\tif ( $condition ) {\n\t\t$new_content .= wolf_share();\n\t}\n\n\treturn $new_content;\n\n}", "function d4tw_filter_admin_footer () {\r\n echo '<span id=\"dashFooter\">Website developed by <a style = \"color: #ff0000; text-decoration: none;\" href=\"http://www.knockmedia.com\" target=\"_blank\">KnockMedia</a></span>';\r\n}", "public function trueFooter()\n {\n ?>\n <style>\n #wpfooter a {\n outline: none !important; text-decoration: none !important;\n } \n .wp-footer-true-link {\n position: relative;\n display: block; color: #aeaeae;\n -webkit-transition: color 0.22s ease;\n -o-transition: color 0.22s ease;\n transition: color 0.22s ease;\n }\n .wp-footer-true-link:before {\n content: '';\n position: absolute;\n bottom: 0; margin-left: 50%;\n width: 0%; height: 1px;\n background-color: #333;\n -webkit-transition: width 0.28s cubic-bezier(0.63, 0.62, 0.48, 1.3),\n margin-left 0.28s cubic-bezier(0.63, 0.62, 0.48, 1.3);\n -o-transition: width 0.28s cubic-bezier(0.63, 0.62, 0.48, 1.3),\n margin-left 0.28s cubic-bezier(0.63, 0.62, 0.48, 1.3);\n transition: width 0.28s cubic-bezier(0.63, 0.62, 0.48, 1.3),\n margin-left 0.28s cubic-bezier(0.63, 0.62, 0.48, 1.3);\n }\n .wp-footer-true-link > img {\n width: 45px; height: auto; position: relative; top: 2px;\n opacity: 0.7;\n -webkit-transition: opacity 0.22s ease;\n -o-transition: opacity 0.22s ease;\n transition: opacity 0.22s ease;\n }\n .wp-footer-true-link:hover {\n color: #333;\n }\n .wp-footer-true-link:hover:before {\n width: 100%; margin-left: 0%;\n }\n .wp-footer-true-link:hover > img {\n opacity: 1;\n }\n .acf-field.acf-field-image.acf-banner-image .acf-image-uploader .hide-if-value {\n margin-top: 50px;\n }\n .acf-field.acf-field-image.acf-banner-image .acf-image-uploader.has-value {\n min-height: 100px;\n }\n .acf-field.acf-field-image.acf-banner-image .view.show-if-value {\n position: absolute;\n z-index: 100;\n height: auto;\n max-height: 100px;\n overflow: hidden;\n -webkit-box-shadow: 1px 3px 12px transparent;\n box-shadow: 1px 3px 12px transparent;\n -webkit-transition: height .32s ease, max-height .32s ease, box-shadow .32s ease;\n -o-transition: height .32s ease, max-height .32s ease, box-shadow .32s ease;\n transition: height .32s ease, max-height .32s ease, box-shadow .32s ease\n }\n .acf-field.acf-field-image.acf-banner-image .view.show-if-value img {\n -webkit-transform: translate(0, -30px);\n -ms-transform: translate(0, -30px);\n -o-transform: translate(0, -30px);\n transform: translate(0, -30px);\n -webkit-transition: transform .32s ease;\n -o-transition: transform .32s ease;\n transition: transform .32s ease\n }\n .acf-field.acf-field-image.acf-banner-image .view.show-if-value:after {\n content: '';\n position: absolute;\n height: 20px;\n width: 100%;\n bottom: 0;\n left: 0;\n background-image: -webkit-linear-gradient(top, transparent 0, rgba(0, 0, 0, .25) 100%);\n background-image: -o-linear-gradient(top, transparent 0, rgba(0, 0, 0, .25) 100%);\n background-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .25) 100%);\n background-repeat: repeat-x;\n opacity: 1;\n filter: alpha(opacity=100);\n -webkit-transition: opacity .01s linear .32s;\n -o-transition: opacity .01s linear .32s;\n transition: opacity .01s linear .32s\n }\n .acf-field.acf-field-image.acf-banner-image .view.show-if-value:hover {\n max-height: 470px;\n -webkit-box-shadow: 1px 3px 12px rgba(0, 0, 0, .45);\n box-shadow: 1px 3px 12px rgba(0, 0, 0, .45)\n }\n .acf-field.acf-field-image.acf-banner-image .view.show-if-value:hover img {\n -webkit-transform: translate(0, 0);\n -ms-transform: translate(0, 0);\n -o-transform: translate(0, 0);\n transform: translate(0, 0)\n }\n .acf-field.acf-field-image.acf-banner-image .view.show-if-value:hover:after {\n opacity: 0;\n filter: alpha(opacity=0);\n -webkit-transition: opacity .01s;\n -o-transition: opacity .01s;\n transition: opacity .01s\n }\n </style>\n <a href=\"http://www.trueagency.com.au\" target=\"_blank\" class=\"wp-footer-true-link\">\n <img src=\"<?= \\TrueLib::getImageURL('common/true-footer-logo.png') ?>\" alt=\"Digital Agency Melbourne\">\n </a>\n <?php\n }", "function emc_sharing_display() {\r\n\r\n\tif ( class_exists( 'Jetpack', false ) ) {\r\n\t\t$jetpack_active_modules = get_option('jetpack_active_modules');\r\n\t\tif ( $jetpack_active_modules && in_array( 'sharedaddy', $jetpack_active_modules ) ) {\r\n\t\t\techo sharing_display();\r\n\t\t\t?>\r\n\t\t\t<!--<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:</h3><div class=\"sd-content\"><ul><li class=\"share-facebook\"><a rel=\"nofollow\" class=\"share-facebook sd-button share-icon\" href=\"http://local.earlymath.erikson.edu/new-study-differentiating-works/?share=facebook\" title=\"Share on Facebook\" id=\"sharing-facebook-6199\"><span>Facebook</span></a></li><li class=\"share-twitter\"><a rel=\"nofollow\" class=\"share-twitter sd-button share-icon\" href=\"http://local.earlymath.erikson.edu/new-study-differentiating-works/?share=twitter\" title=\"Click to share on Twitter\" id=\"sharing-twitter-6199\"><span>Twitter</span></a></li><li class=\"share-pinterest\"><a rel=\"nofollow\" class=\"share-pinterest sd-button share-icon\" href=\"http://local.earlymath.erikson.edu/new-study-differentiating-works/?share=pinterest\" title=\"Click to share on Pinterest\"><span>Pinterest</span></a></li><li class=\"share-google-plus-1\"><a rel=\"nofollow\" class=\"share-google-plus-1 sd-button share-icon\" href=\"http://local.earlymath.erikson.edu/new-study-differentiating-works/?share=google-plus-1\" title=\"Click to share on Google+\" id=\"sharing-google-6199\"><span>Google +1</span></a></li><li class=\"share-email\"><a rel=\"nofollow\" class=\"share-email sd-button share-icon\" href=\"http://local.earlymath.erikson.edu/new-study-differentiating-works/?share=email\" title=\"Click to email this to a friend\"><span>Email</span></a></li><li class=\"share-print\"><a rel=\"nofollow\" class=\"share-print sd-button share-icon\" href=\"http://local.earlymath.erikson.edu/new-study-differentiating-works/#print\" title=\"Click to print\"><span>Print</span></a></li><li class=\"share-end\"></li></ul></div></div></div>-->\r\n\t\t\t<?php\r\n\t\t}\r\n\t}\r\n\r\n}", "abstract protected function footer();", "abstract protected function footer();", "public static function getFooter()\n {\n ?>\n <p>Content in the front end's footer. This code comes from <?php echo __METHOD__; ?></p>\n <?php\n }", "public function get_footer()\n {\n return <<<EOD\n<div id=\"siteftr\">\n Sitewide Footer\n</div>\n\nEOD;\n }", "function cera_grimlock_footer() {\n\t\tdo_action( 'grimlock_prefooter', array(\n\t\t\t'callback' => 'cera_grimlock_prefooter_callback',\n\t\t) );\n\n\t\tdo_action( 'grimlock_footer', array(\n\t\t\t'callback' => 'cera_grimlock_footer_callback',\n\t\t) );\n\t}", "function spartan_custom_admin_footer() {\n\n\t// VARIABLES\n\n\t$get_host = gethostname();\n\t$iq ='server1.iquariusmedia.com' || 'server2.iquariusmedia.com';\n\t$spartan = 'xenon.websitewelcome.com';\n\n\n\tif ( $get_host == $spartan ) {\n\n\t\t$developer = 'Renzo Johnson';\n\t\t$developer_url = 'http://renzojohnson.com';\n\n\t} else {\n\n\t\t$developer = 'iQuarius Media';\n\t\t$developer_url = 'http://iquariusmedia.com';\n\n\t}\n\n\t$client = get_option('blogname');\n\t$client_url = home_url();\n\n\n\n\t$spartan_admin_footer = 'Developed for ';\n\t$spartan_admin_footer .= '<a href=\"'. $client_url .'\">';\n\t$spartan_admin_footer .= $client;\n\t$spartan_admin_footer .= '</a>. Made Awesome by ';\n\t$spartan_admin_footer .= '<a href=\"' . $developer_url. '\" target=\"_blank\">'. $developer .'</a>.';\n\n\techo $spartan_admin_footer;\n\n}", "public function template_footer() {\n\t\tget_footer( 'course' );\n\t}", "function omega_entry_footer() {\n\n\tif ( 'post' == get_post_type() ) {\n\t\tget_template_part( 'partials/entry', 'footer' ); \n\t} \n\n\tif(is_singular()) {\n\t\techo omega_apply_atomic_shortcode( 'entry_meta', '<div class=\"entry-meta\">[post_edit]</div>' );\n\t}\n\t\n}", "private function displayFooter(){\n\t\t\t$html = '</div>'.\"\\n\"; //closing main container div\n\t\t\t$html .= '<div id=\"footer\">'.\"\\n\";\n\t\t\t$html .= '<div class=\"wrapper\">'.\"\\n\";\n\t\t\t$html .= '<div class=\"left\">'.\"\\n\";\n\t\t\t$html .= '<h3> Links </h3>'.\"\\n\";\n\t\t\t$html .= '<ul>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"index.php\">Home</a></li>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"index.php?p=10\">About</a></li>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"index.php?p=9\">Articles</a></li>'.\"\\n\";\t\t\t\t\t\n\t\t\t$html .= '<li><a href=\"feed/\">Rss</a></li>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"index.php?p=14\" accesskey=\"4\">Accessibility</a></li>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"index.php?p=15\" accesskey=\"5\">Sitemap</a></li>'.\"\\n\";\n\t\t\t$html .= '</ul>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\t\t\t\n\t\t\t$html .= '<div class=\"right\">'.\"\\n\";\n\t\t\t$html .= '<h3> Follow </h3>'.\"\\n\";\n\t\t\t$html .= '<ul>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"http://facebook.com\" target=\"_blank\">Facebook</a></li>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"http://twitter.com\" target=\"_blank\">Twitter</a></li>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"feed/\">Rss</a></li>'.\"\\n\";\n\t\t\t$html .= '</ul>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '<p class=\"copyright\">Copyright &copy; '.COPY_RIGHT. ' '. Date('Y').'</p>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '</body>'.\"\\n\";\n\t\t\t$html .= '</html>'.\"\\n\";\n\t\t\treturn $html;\n\t\t}", "public static function renderFooter()\n {\n include DIR_INCLUDES . 'footer.php';\n }", "function hybrid_footer_insert() {\n\t$footer_insert = hybrid_get_setting( 'footer_insert' );\n\n\tif ( !empty( $footer_insert ) )\n\t\techo '<div class=\"footer-content footer-insert\">' . do_shortcode( $footer_insert ) . '</div>';\n}", "function add_admin_footer() {\n\t echo '<span id=\"footer-thankyou\">Wordpress Theme by <a href=\"http://url.com\">Name Here</a>.</span>';\n\t}", "function social(){\r\n\t\techo '\r\n\t<!-- AddThis Button BEGIN -->\r\n<div class=\"addthis_toolbox addthis_default_style addthis_32x32_style\">\r\n<a class=\"addthis_button_facebook\"></a>\r\n<a class=\"addthis_button_twitter\"></a>\r\n<a class=\"addthis_button_google_plusone_share\"></a>\r\n</div>\r\n<script type=\"text/javascript\" src=\"//s7.addthis.com/js/300/addthis_widget.js#pubid=undefined\"></script>\r\n<!-- AddThis Button END -->\r\n';\t\r\n}", "protected function footer()\n {\n\n }", "function getDisplay() {\n\t\t$content = \"<h3>\" . $this->widgetTitle . \"</h3>\";\n\n\t\tif (!empty($this->facebookUrl) && \n\t\t\ttrim($this->facebookUrl) !== '') {\n\t\t\t$content .= '<span class=\"social-pages-icon social-page-facebook\"><a href=\"' . $this->facebookUrl . '\" ><i class=\"fa fa-facebook\"></i></a></span>';\n\t\t}\n\t\tif (!empty($this->twitterUrl) && \n\t\t\t\ttrim($this->twitterUrl) !== '') {\n\t\t\t$content .= '<span class=\"social-pages-icon social-page-twitter\"><a href=\"' . $this->twitterUrl . '\" ><i class=\"fa fa-twitter\"></i></a></span>';\n\t\t}\n\t\tif (!empty($this->googleplusUrl) && \n\t\t\ttrim($this->googleplusUrl) !== '') {\n\t\t\t$content .= '<span class=\"social-pages-icon social-page-google\"><a href=\"' . $this->googleplusUrl . '\" ><i class=\"fa fa-google\"></i></a></span>';\n\t\t}\n\n\t\treturn $content;\n\t}", "function custom_admin_footer() {\n\techo 'Website design by <a href=\"http://rustygeorge.com/#contact\">Rusty George Creative</a> &copy; '.date(\"Y\").'. For site support please <a href=\"http://rustygeorge.com/#contact\">contact us</a>.';\n}", "function custom_admin_footer() {\n\techo 'Website design by <a href=\"http://rustygeorge.com/#contact\">Rusty George Creative</a> &copy; '.date(\"Y\").'. For site support please <a href=\"http://rustygeorge.com/#contact\">contact us</a>.';\n}", "function siteorigin_share_render( $settings = array() ) {\n\t$settings = wp_parse_args( $settings, array(\n\t\t'width' => 25,\n\t\t'like_text' => __( 'like', 'vantage' ),\n\t\t'twitter' => ''\n\t) );\n\n\n\n\tstatic $facebook_loaded = false;\n\tif(!$facebook_loaded) {\n\t\t?>\n\t\t<div id=\"fb-root\"></div>\n\t\t<script type=\"text/javascript\">\n\t\t\t(function(d, s, id) {\n\t\t var js, fjs = d.getElementsByTagName(s)[0];\n\t\t if (d.getElementById(id)) return;\n\t\t js = d.createElement(s); js.id = id;\n\t\t js.src = \"//connect.facebook.net/en_GB/all.js#xfbml=1\";\n\t\t fjs.parentNode.insertBefore(js, fjs);\n\t\t}(document, 'script', 'facebook-jssdk'));\n\t\t</script>\n\t\t<?php\n\t\t$facebook_loaded = true;\n\t}\n\n\tstatic $google_loaded = false;\n\tif(!$google_loaded) {\n\t\t?>\n\t\t<script type=\"text/javascript\">\n\t\t\t// Google Plus One\n\t\t\t(function () {\n\t\t\t\tvar po = document.createElement( 'script' );\n\t\t\t\tpo.type = 'text/javascript';\n\t\t\t\tpo.async = true;\n\t\t\t\tpo.src = 'https://apis.google.com/js/plusone.js';\n\t\t\t\tvar s = document.getElementsByTagName( 'script' )[0];\n\t\t\t\ts.parentNode.insertBefore( po, s );\n\t\t\t})();\n\t\t</script>\n\t\t<?php\n\t\t$google_loaded = true;\n\t}\n\n\tstatic $linkedin_loaded = false;\n\tif(!$linkedin_loaded) {\n\t\t?>\n\t\t<script src=\"//platform.linkedin.com/in.js\" type=\"text/javascript\"> lang: en_US</script>\n\t\t<?php\n\t\t$linkedin_loaded = true;\n\t}\n\n\t?>\n\t<ul class=\"share-buttons\">\n\t\t<li class=\"network facebook\" style=\"width:<?php echo intval( $settings['width'] ) ?>%\">\n\n\t\t\t<div\n\t\t\t\tclass=\"fb-like\"\n\t\t\t\tdata-href=\"<?php echo get_permalink() ?>\"\n\t\t\t\tdata-width=\"<?php echo intval( $settings['width'] ) ?>\"\n\t\t\t\tdata-layout=\"button_count\"\n\t\t\t\tdata-send=\"false\"\n\t\t\t\tdata-height=\"21\"\n\t\t\t\tdata-show-faces=\"false\"\n\t\t\t\tdata-action=\"<?php echo esc_attr($settings['like_text']) ?>\"></div>\n\t\t</li>\n\n\t\t<li class=\"network twitter\" style=\"width:<?php echo intval( $settings['width'] ) ?>%\">\n\t\t\t<?php\n\t\t\t$related = array();\n\t\t\t$related[ ] = $settings['twitter'];\n\t\t\t$twitter_url = add_query_arg( array(\n\t\t\t\t'url' => get_permalink(),\n\t\t\t\t'via' => siteorigin_setting( 'social_twitter' ),\n\t\t\t\t'text' => get_the_title(),\n\t\t\t\t'related' => implode( ',', $related )\n\t\t\t), 'http' . (is_ssl() ? 's' : '' ) . '://platform.twitter.com/widgets/tweet_button.html' );\n\n\t\t\t?>\n\t\t\t<iframe allowtransparency=\"true\" frameborder=\"0\" scrolling=\"no\" src=\"<?php echo esc_attr( $twitter_url ) ?>\" style=\"height:20px;\"></iframe>\n\t\t</li>\n\n\t\t<li class=\"network plusone\" style=\"width:<?php echo intval( $settings['width'] )-4 ?>%\">\n\t\t\t<div class=\"g-plusone\" data-size=\"medium\" data-width=\"160\"></div>\n\t\t</li>\n\n\t\t<li class=\"network linkedin\" style=\"width:<?php echo intval( $settings['width'] )+4 ?>%;\">\n\t\t\t<script type=\"IN/Share\" data-counter=\"right\"></script>\n\t\t</li>\n\t</ul>\n\t<?php\n}", "function mario_footer_featured() {\n\techo '<div class=\"footer-featured\">';\n\n\tif ( is_active_sidebar( 'footer-featured' ) ) {\n\t\tgenesis_widget_area( 'footer-featured', array(\n\t\t\t'before' => '<div class=\"wrap\"><div class=\"footer-featured widget-area\">',\n\t\t\t'after' => '</div></div>'\n\t\t) );\n\t}\n\n\techo '</div>';\n}", "function admin_footer () {\n\techo '<a href=\"http://www.drumcreative.com\" target=\"_blank\">&copy;' . date('Y') . ' Drum Creative</a>';\n}", "function grve_print_portfolio_social( $element_id = 'grve-social-share' ) {\n\n\tglobal $post;\n\t$post_id = $post->ID;\n\n\tif ( grve_portfolio_social_visibility() ) {\n\n\t\t$grve_permalink = esc_url( get_permalink( $post_id ) );\n\t\t$grve_title = esc_attr( get_the_title( $post_id ) );\n\t\t$portfolio_facebook = grve_option( 'portfolio_social', '', 'facebook' );\n\t\t$portfolio_twitter = grve_option( 'portfolio_social', '', 'twitter' );\n\t\t$portfolio_linkedin = grve_option( 'portfolio_social', '', 'linkedin' );\n\t\t$portfolio_pinterest= grve_option( 'portfolio_social', '', 'pinterest' );\n\t\t$portfolio_googleplus= grve_option( 'portfolio_social', '', 'google-plus' );\n\t\t$portfolio_likes = grve_option( 'portfolio_social', '', 'grve-likes' );\n\n?>\n\t\t<div id=\"<?php echo $element_id; ?>\">\n\n\t\t\t<ul>\n\n\t\t\t\t<?php if ( !empty( $portfolio_facebook ) ) { ?>\n\t\t\t\t<li><a href=\"<?php echo $grve_permalink; ?>\" title=\"<?php echo $grve_title; ?>\" class=\"grve-social-share-facebook grve-icon-facebook\"></a></li>\n\t\t\t\t<?php } ?>\n\t\t\t\t<?php if ( !empty( $portfolio_twitter ) ) { ?>\n\t\t\t\t<li><a href=\"<?php echo $grve_permalink; ?>\" title=\"<?php echo $grve_title; ?>\" class=\"grve-social-share-twitter grve-icon-twitter\"></a></li>\n\t\t\t\t<?php } ?>\n\t\t\t\t<?php if ( !empty( $portfolio_linkedin ) ) { ?>\n\t\t\t\t<li><a href=\"<?php echo $grve_permalink; ?>\" title=\"<?php echo $grve_title; ?>\" class=\"grve-social-share-linkedin grve-icon-linkedin\"></a></li>\n\t\t\t\t<?php } ?>\n\t\t\t\t<?php if ( !empty( $portfolio_googleplus ) ) { ?>\n\t\t\t\t<li><a href=\"<?php echo $grve_permalink; ?>\" title=\"<?php echo $grve_title; ?>\" class=\"grve-social-share-googleplus grve-icon-google-plus\"></a></li>\n\t\t\t\t<?php } ?>\n\t\t\t\t<?php if ( !empty( $portfolio_pinterest ) ) { ?>\n\t\t\t\t<li><a href=\"<?php echo $grve_permalink; ?>\" title=\"<?php echo $grve_title; ?>\" data-pin-img=\"<?php grve_print_portfolio_image( 'grve-image-small-square', 'link' ); ?>\" class=\"grve-social-share-pinterest grve-icon-pinterest\"></a></li>\n\t\t\t\t<?php } ?>\n\t\t\t\t<?php if ( !empty( $portfolio_likes ) ) { ?>\n\t\t\t\t<li><a href=\"#\" class=\"grve-like-counter-link grve-icon-heart\" data-post-id=\"<?php echo $post_id; ?>\"></a><span class=\"grve-like-counter\"><?php echo grve_likes( $post_id ); ?></span></li>\n\t\t\t\t<?php } ?>\n\n\t\t\t</ul>\n\n\t\t</div>\n<?php\n\t}\n}", "function fl_user_bar_box() {\n\tglobal $post;\n\t\n\tif( !is_singular('post') ) return; // only show on blog post single page\n\t\n\t// assemble the text and url we'll pass into each social media share link\n\t$social_text = urlencode(strip_tags(get_the_title() . ' ' . __( 'post from', APP_TD ) . ' ' . get_bloginfo('name')));\n\t$social_url = urlencode(get_permalink($post->ID));\n?>\n\n<div class=\"user-bar\">\n\t\n\t<?php if (comments_open()) comments_popup_link( ('<span>' . __( 'Leave a comment', APP_TD ) . '</span>'), ('<span>' . __( 'Leave a comment', APP_TD ) . '</span>'), ('<span>' . __( 'Leave a comment', APP_TD ) . '</span>'), 'btn', '' ); ?>\t\n\t\n\t<?php fl_social_share(); ?>\n\t\n</div>\n\n<?php\n}", "function ctsocial_icons_template() {\n\t\n\tob_start(); ?>\n\n\t<div class=\"ctsocial\">\n\n\t\t<?php\n\n\t\t// Let's define each social network option so we can easily store each network's\n\t\t// URL in a variable.\n\t $facebook = ctsocial_options_each( 'facebook' );\n\t $twitter = ctsocial_options_each( 'twitter' );\n\t $pinterest = ctsocial_options_each( 'pinterest' );\n\t $youtube = ctsocial_options_each( 'youtube' );\n\t $vimeo = ctsocial_options_each( 'vimeo' );\n\t $flickr = ctsocial_options_each( 'flickr' );\n\t $github = ctsocial_options_each( 'github' );\n\t $gplus = ctsocial_options_each( 'gplus' );\n\t $dribbble = ctsocial_options_each( 'dribbble' );\n\n\t // In the next release, we have multiple social media icon styles/icons to choose\n\t // from in the settings. We'll need the following:\n\t // $type = ctsocial_options_each( 'type' );\n\n\t\t?>\n\n\t\t<?php\n\t\t// Now we only want to show ul.social if at least one social network option has been filled, so let's check for that.\n\t\tif ( ( $facebook or $twitter or $tumblr or $pinterest or $youtube or $vimeo or $flickr or $github or $gplus or $dribbble ) != '' ) { ?>\n\n\t\t<?php // Assuming there is, let's go ahead and display the ones that have been filled ?>\n\t\t\t<?php // _TODO_ Make this into a switch/case structure or a foreach statement if possible ?>\n\t\t <ul class=\"social <?php /* Again, this is for the new Type option in an upcoming version.\n\t\t \t\t\t\t\t// If a user has chosen one of the other social media icon\n\t\t \t\t\t\t\t// designs, let's add a class that will change the icons\n\t\t \t\t\t\t\t// accordingly. 2 = Circle Black/White. 3 = Square Color. 4 = Square Black/White.\n\t\t \t\t\t\t\tif ( $type == 2 ) {\n\t\t \t\t\t\t\t\techo 'circle bw';\n\t\t \t\t\t\t\t} elseif ( $type == 3 ) {\n\t\t \t\t\t\t\t\techo 'square color';\n\t\t \t\t\t\t\t} elseif ( $type == 4 ) {\n\t\t \t\t\t\t\t\techo 'square bw'; } */ ?>\">\n\t\t \t<?php if ( $facebook !='' ) { ?>\n\t\t \t<li class=\"facebook\">\n\t\t \t <a href=\"<?php echo $facebook; ?>\"></a>\n\t\t \t</li>\n\t\t \t<?php } ?>\n\t\t \t<?php if ( $twitter !='' ) { ?>\n\t\t \t<li class=\"twitter\">\n\t\t \t <a href=\"<?php echo $twitter; ?>\"></a>\n\t\t \t</li>\n\t\t \t<?php } ?>\n\t\t \t<?php if ( $tumblr !='' ) { ?>\n\t\t \t<li class=\"tumblr\">\n\t\t \t <a href=\"<?php echo $tumblr; ?>\"></a>\n\t\t \t</li>\n\t\t \t<?php } ?>\n\t\t \t<?php if ( $pinterest !='' ) { ?>\n\t\t \t<li class=\"pinterest\">\n\t\t \t <a href=\"<?php echo $pinterest; ?>\"></a>\n\t\t \t</li>\n\t\t \t<?php } ?>\n\t\t \t<?php if ( $youtube !='' ) { ?>\n\t\t \t<li class=\"youtube\">\n\t\t \t <a href=\"<?php echo $youtube; ?>\"></a>\n\t\t \t</li>\n\t\t \t<?php } ?>\n\t\t \t<?php if ( $vimeo !='' ) { ?>\n\t\t \t <li class=\"vimeo\">\n\t\t \t <a href=\"<?php echo $vimeo; ?>\"></a>\n\t\t \t</li>\n\t\t \t<?php } ?>\n\t\t \t<?php if ( $flickr !='' ) { ?>\n\t\t \t <li class=\"flickr\">\n\t\t \t <a href=\"<?php echo $flickr; ?>\"></a>\n\t\t \t</li>\n\t\t \t<?php } ?>\n\t\t \t<?php if ( $github !='' ) { ?>\n\t\t \t <li class=\"github\">\n\t\t \t <a href=\"<?php echo $github; ?>\"></a>\n\t\t \t</li>\n\t\t \t<?php } ?>\n\t\t \t<?php if ( $gplus !='' ) { ?>\n\t\t \t <li class=\"gplus\">\n\t\t \t <a href=\"<?php echo $gplus; ?>\"></a>\n\t\t \t</li>\n\t\t \t<?php } ?>\n\t\t \t<?php if ( $dribbble !='' ) { ?>\n\t\t \t <li class=\"dribbble\">\n\t\t \t <a href=\"<?php echo $dribbble; ?>\"></a>\n\t\t \t</li>\n\t\t \t<?php } ?>\n\t </ul><!-- .social.*design choice for icons* -->\n\n\t\t<?php } ?>\t\n \n\t</div><!-- .ctsocial -->\n\n\t<?php\n\t\techo ob_get_clean();\n\n}", "function display_footer_locations()\n {\n include 'assets/partials/footer-locations.php';\n }", "public function section_footer(){\n\t\tinclude 'secciones/'.$this->seccion['footer'].'.php'; \n\t}", "function pantomime_author_box(){\n\tif ( is_single() ) :\n\t// Get the author email -> for Gravatar\n\t$author_email = get_the_author_meta('user_email');\n\t\t\n\t// Get the author description\n\t$author_description = get_the_author_meta('description');\t\n\t?>\n\n\t<div id=\"author-box\" class=\"emboss\">\n\t\t<h4 class=\"section-title\"><?php _e('About The Author', 'pantomime'); ?></h4>\n\t\t<?php\n\t\t\techo get_avatar($author_email, 50, '');\n\t\t\techo '<p>' . get_the_author_link() . ' - ' . $author_description . '</p>';\n\t\t?>\n\t</div>\n\t\n\t<?php\n\tendif;\n}", "function opinionstage_help_resource_load_footer(){\n}", "public function add_footer_output() {\n\n if ( !empty( $this->footer_content ) ) {\n\n echo '<!-- Output generated by [reveal] shortcode in this page: -->';\n\n foreach ( $this->footer_content as $reveal ) {\n echo $reveal;\n }\n\n echo '<!-- / [reveal] output -->';\n }\n\n }", "public function displayFastSocialSharing($content = null)\n {\n global $post;\n\n // Get current page URL\n $fssURL = urlencode(get_permalink());\n\n // Get current page title\n $fssTitle = str_replace(' ', '%20', get_the_title());\n\n // Get Post Thumbnail for pinterest\n //$fssThumbnail = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full');\n if (is_page() || is_single()) {\n $fssThumbnail = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full');\n } else {\n $fssThumbnail[0] = '';\n }\n\n // Construct sharing URL without using any script\n $twitterURL = 'https://twitter.com/intent/tweet?text='.$fssTitle.'&amp;url='.$fssURL;\n $facebookURL = 'https://www.facebook.com/sharer/sharer.php?u='.$fssURL;\n $googleURL = 'https://plus.google.com/share?url='.$fssURL;\n //$bufferURL = 'https://bufferapp.com/add?url='.$fssURL.'&amp;text='.$fssTitle;\n //$whatsappURL = 'whatsapp://send?text='.$fssTitle . ' ' . $fssURL;\n //$linkedInURL = 'https://www.linkedin.com/shareArticle?mini=true&url='.$fssURL.'&amp;title='.$fssTitle;\n $pinterestURL = 'https://pinterest.com/pin/create/button/?url='.$fssURL.'&amp;media='.$fssThumbnail[0].'&amp;description='.$fssTitle;\n $emailURL = 'mailto:?&subject='.$fssTitle.'&body='.$fssURL;\n\n // Add sharing button at the end of page/page content\n $content .= '<div class=\"fss-social\">';\n\n //$content .= '<h5>SHARE ON</h5> <a class=\"fss-link fss-twitter\" href=\"'. $twitterURL .'\" target=\"_blank\">Twitter</a>';\n //$content .= '<a class=\"fss-link fss-facebook\" href=\"'.$facebookURL.'\" target=\"_blank\">Facebook</a>';\n //$content .= '<a class=\"fss-link fss-whatsapp\" href=\"'.$whatsappURL.'\" target=\"_blank\">WhatsApp</a>';\n //$content .= '<a class=\"fss-link fss-googleplus\" href=\"'.$googleURL.'\" target=\"_blank\">Google+</a>';\n //$content .= '<a class=\"fss-link fss-buffer\" href=\"'.$bufferURL.'\" target=\"_blank\">Buffer</a>';\n //$content .= '<a class=\"fss-link fss-linkedin\" href=\"'.$linkedInURL.'\" target=\"_blank\">LinkedIn</a>';\n //$content .= '<a class=\"fss-link fss-pinterest\" href=\"'.$pinterestURL.'\" data-pin-custom=\"true\" target=\"_blank\">Pin It</a>';\n\n $content .= '<h5>SHARE ON</h5><a class=\"fss-link fss-facebook\" href=\"'.$facebookURL.'\" target=\"_blank\"></a>';\n $content .= '<a class=\"fss-link fss-twitter\" href=\"'. $twitterURL .'\" target=\"_blank\"></a>';\n $content .= '<a class=\"fss-link fss-googleplus\" href=\"'.$googleURL.'\" target=\"_blank\"></a>';\n $content .= '<a class=\"fss-link fss-pinterest\" href=\"'.$pinterestURL.'\" data-pin-custom=\"true\" target=\"_blank\"></a>';\n $content .= '<a class=\"fss-link fss-email\" href=\"'.$emailURL.'\" target=\"_blank\"></a>';\n $content .= '</div>';\n\n return $content;\n }", "function footer(){\n\techo '';\n\t?>\n\t<footer>\n\t\t<div>\n\t\t\t<section id=\"about\">\n\t\t\t\t<header>\n\t\t\t\t\t<h3>About</h3>\n\t\t\t\t</header>\n\t\t\t\t<p>Powered by <a href=\"https://urgero.org/squwiki\" target=\"_blank\">SquWiki</a><br />Copyright &copy; 2016 URGERO.ORG & SquWiki<br />The open source, flat-file Wiki.</p>\n\t\t\t</section>\n\t\t\t<section id=\"blogroll\">\n\t\t\t\t<header>\n\t\t\t\t\t<h3>Links to resources used</h3>\n\t\t\t\t</header>\n\t\t\t\t<ul>\n\t\t\t\t\t<li><a href=\"https://urgero.org/\" target=\"_blank\">URGERO.ORG</a></li>\n\t\t\t\t\t<li><a href=\"http://parsedown.org/\" target=\"_blank\">Parsedown</a></li>\n\t\t\t\t\t<li><a href=\"https://github.com/ajay-gandhi/simphp\" target=\"_blank\">simphp</a></li>\n\t\t\t\t\t<li><a href=\"https://github.com/mitchellurgero/SquWiki\" target=\"_blank\">GitHub</a></li>\n\t\t\t\t</ul>\n\t\t\t</section>\n\t\t\t<section id=\"popular\">\n\t\t\t\t<header>\n\t\t\t\t\t<h3>Author</h3>\n\t\t\t\t</header>\n\t\t\t\t<p>Coded with &#10084; by Mitchell Urgero</p>\n\t\t\t</section>\n\t\t</div>\n\t</footer>\n\t\n\t<?php\n\t\n\t\n}", "function omega_default_footer_insert( $settings ) {\n\n\t/* If there is a child theme active, use [child-link] shortcode to the $footer_insert. */\n\treturn '<p class=\"copyright\">' . __( 'Copyright &#169; [the-year] [site-link].', 'omega' ) . '</p>' . \"\\n\\n\" . '<p class=\"credit\">' . __( 'Theme by [author-uri].', 'omega' ) . '</p>';\t\n\n}", "function circle_author_biography() {\n\tif ( ! circle_option( 'display_author_bio' ) ) {\n\t\treturn;\n\t}\n\tget_template_part( 'template-parts/biography' );\n}", "function ntp_post_footer($content) {\n if ( is_home() ) {\n return '';\n }\n elseif ( (is_search() && (get_post_type() === 'post' || get_post_type() === 'ntp_project')) ||\n (is_singular() && (get_post_type() === 'post' || get_post_type() === 'ntp_project'))\n ) {\n if ( current_user_can('edit_posts') ) {\n $postfooter = '<div class=\"entry-utility\">' . thematic_postfooter_posteditlink();\n $postfooter .= \"</div><!-- .entry-utility -->\\n\";\n return $postfooter;\n }\n else {\n return '';\n }\n }\n else {\n return $content;\n }\n}", "function displayPageFooter()\n{?>\n\n </div> <!-- content -->\n </article>\n\n <footer>\n Copyright &copy; tme119.anagno.me - 2015\n </footer>\n\n </body>\n</html>\n\n<?php \n}", "public function footer()\n\t\t{\t\t\t\n\t\t\treturn $this->render('incs/footer');\n\t\t}", "function newsdot_entry_footer() {\n\t\tif ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {\n\t\t\techo '<span class=\"comments-link\">';\n\t\t\tcomments_popup_link(\n\t\t\t\tsprintf(\n\t\t\t\t\twp_kses(\n\t\t\t\t\t\t/* translators: %s: post title */\n\t\t\t\t\t\t__( 'Leave a Comment<span class=\"screen-reader-text\"> on %s</span>', 'newsdot' ),\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'span' => array(\n\t\t\t\t\t\t\t\t'class' => array(),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t\t\twp_kses_post( get_the_title() )\n\t\t\t\t)\n\t\t\t);\n\t\t\techo '</span>';\n\t\t}\n\n\t\tedit_post_link(\n\t\t\tsprintf(\n\t\t\t\twp_kses(\n\t\t\t\t\t/* translators: %s: Name of current post. Only visible to screen readers */\n\t\t\t\t\t__( 'Edit <span class=\"screen-reader-text\">%s</span>', 'newsdot' ),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'span' => array(\n\t\t\t\t\t\t\t'class' => array(),\n\t\t\t\t\t\t),\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\twp_kses_post( get_the_title() )\n\t\t\t),\n\t\t\t'<span class=\"edit-link\">',\n\t\t\t'</span>'\n\t\t);\n\t}", "function cosmetics_footer_scripts() {\n global $cosmetics_options;\n $cosmetics_footer_scripts = $cosmetics_options['cosmetics_footer_scripts_editor'];\n\n if ( !empty( $cosmetics_footer_scripts ) ) :\n echo $cosmetics_footer_scripts;\n endif;\n}", "function ubiq_add_socialgraph() {\n if (!get_option('ubiq_fb_opengraph')) { return; }\n\n if (is_single()) {\n global $post;\n \n $image_id = get_post_thumbnail_id();\n $image_url = wp_get_attachment_image_src($image_id,'large', true);\n \n \n $content = $post->post_content;\n $content = strip_shortcodes( $content );\n \t\t$content = strip_tags($content);\n\t\t$excerpt_length = 55;\n\t\t$words = explode(' ', $content, $excerpt_length + 1);\n\t\tif(count($words) > $excerpt_length) :\n\t\t\tarray_pop($words);\n\t\t\tarray_push($words, '...');\n\t\t\t$content = implode(' ', $words);\n\t\tendif;\n \n ?>\n <meta property=\"og:title\" content=\"<?php the_title() ?>\"/>\n <meta property=\"og:type\" content=\"article\"/>\n <meta property=\"og:url\" content=\"<?php echo get_permalink() ?>\"/>\n <?php\n if (get_the_post_thumbnail()) {\n ?>\n <meta property=\"og:image\" content=\"<?php echo $image_url[0] ?>\"/>\n <?php } else { ?>\n <meta property=\"og:image\" content=\"<?php header_image(); ?>\"/>\n <?php } ?>\n <meta property=\"og:site_name\" content=\"<?php echo get_bloginfo('name') ?>\"/> \n <meta property=\"og:description\" content=\"<?php echo $content ?>\"/>\n <?php if (get_option('ubiq_fb_appid')) { ?>\n <meta property=\"fb:app_id\" content=\"<?php echo get_option('ubiq_fb_appid') ?>\" />\n <?php } ?>\n <?php\n if (function_exists('sharing_display')) {\n add_filter( 'excerpt_length', 'calculate_excerpt_length' ); \n add_filter( 'the_excerpt', 'sharing_display', 19 );\n }\n } else if(is_home()) {\n ?>\n <meta property=\"og:title\" content=\"<?php echo get_bloginfo('name') ?>\"/>\n <meta property=\"og:type\" content=\"website\"/>\n <meta property=\"og:url\" content=\"<?php bloginfo('url') ?>\"/>\n <meta property=\"og:image\" content=\"<?php header_image(); ?>\"/>\n <meta property=\"og:site_name\" content=\"<?php echo get_bloginfo('name') ?>\"/> \n <meta property=\"og:description\" content=\"<?php echo bloginfo('description') ?>\"/>\n <?php if (get_option('ubiq_fb_appid')) { ?>\n <meta property=\"fb:app_id\" content=\"<?php echo get_option('ubiq_fb_appid') ?>\" />\n <?php } ?>\n <?php\n }\n}", "function nsh_social() {\n\n\t$social = nsh_get_social();\n\n\tif ( $social ) {\n\t\techo $social;\n\t}\n\n}", "function iframe_footer()\n {\n }", "function social_share(){\n\t?>\n\t<style type=\"text/css\">\n\t\tp.share-info{\n\t\t\tmargin-bottom: 0;\n\t\t}\n\t\t.share-buttons .has-tip{\n\t\t\tborder: none;\n\t\t}\n\t\t.share-buttons a{\n\t\t\tborder: none;\n\t\t\twidth: 33px;\n\t\t\theight: 33px;\n\t\t}\n\t\t.share-buttons a.button{\n\t\t\tpadding: 0;\n\t\t\tmargin-right: 3px;\n\t\t}\n\t\t.share-buttons a.button.facebook{\n\t\t\tbackground: rgb(59, 89, 152);\n\t\t}\n\t\t.share-buttons a.button.twitter{\n\t\t\tbackground: rgb(29, 161, 242);\n\t\t}\n\t\t.share-buttons a.button.linkedin{\n\t\t\tbackground: rgb(0, 119, 181);\n\t\t}\n\t\t.share-buttons a.button.google-plus{\n\t\t\tbackground: rgb(220, 78, 65);\n\t\t}\n\t\t.share-buttons a i{\n\t\t\tfont-size: 1.4rem;\n\t\t\tline-height: 2.4rem;\n\t\t}\n\t</style>\n\t<p class=\"share-info\"><small>Compartilhe:</small></p>\n\t<div class=\"button-group share-buttons\">\n\t\t<span data-tooltip aria-haspopup=\"true\" class=\"has-tip top\" data-disable-hover=\"false\" tabindex=\"1\" title=\"Facebook\">\n\t\t\t<a class=\"button facebook\" href=\"https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>\" onclick=\"window.open(this.href, 'Compartilhar notícia', 'width=490,height=530');return false;\"><i class=\"fa fa-facebook\"></i></a>\n\t\t</span>\n\t\t<span data-tooltip aria-haspopup=\"true\" class=\"has-tip top\" data-disable-hover=\"false\" tabindex=\"1\" title=\"Twitter\">\n\t\t\t<a class=\"button twitter\" href=\"https://twitter.com/home?status=<?php the_permalink(); ?>\" onclick=\"window.open(this.href, 'Compartilhar notícia', 'width=490,height=530');return false;\"><i class=\"fa fa-twitter\"></i></a>\n\t\t</span>\n\t\t<span data-tooltip aria-haspopup=\"true\" class=\"has-tip top\" data-disable-hover=\"false\" tabindex=\"1\" title=\"LinkedIn\">\n\t\t\t<a class=\"button linkedin\" href=\"https://www.linkedin.com/shareArticle?mini=true&url=<?php the_permalink(); ?>&title=<?php the_title( ); ?>&summary=&source=<?php bloginfo( 'url' ); ?>\" onclick=\"window.open(this.href, 'Compartilhar notícia', 'width=490,height=530');return false;\"><i class=\"fa fa-linkedin\"></i></a>\n\t\t</span>\n\t\t<span data-tooltip aria-haspopup=\"true\" class=\"has-tip top\" data-disable-hover=\"false\" tabindex=\"1\" title=\"Google plus\">\n\t\t\t<a class=\"button google-plus\" href=\"https://plus.google.com/share?url=<?php the_permalink(); ?>\" onclick=\"window.open(this.href, 'Compartilhar notícia', 'width=490,height=530');return false;\"><i class=\"fa fa-google-plus\"></i></a>\n\t\t</span>\t\t\t\t\t\t\t\n\t</div>\n\t<?php\n}", "function audiotheme_after_main_content() {\n\techo '</div>';\n}", "public function display_header() {\n\t\tif ( $this->smart ) {\n?>\n<script type=\"text/javascript\" src=\"//vk.com/js/api/share.js?9\" charset=\"windows-1251\"></script>\n<style type=\"text/css\">\n\t.share-vkcom tr td {\n\t\tpadding: 0 !important;\n\t}\n</style>\n<?php\n\t\t} else {\n?>\n<style type=\"text/css\">\n\t.sd-social-icon-text li.share-vkcom a.sd-button > span {\n\t\tbackground: url('<?php echo plugins_url( 'vk.png', __FILE__ ); ?>') no-repeat;\n\t\tpadding-left: 20px;\n\t}\n\n\t.sd-social-icon .sd-content ul li[class*='share-'].share-vkcom a.sd-button {\n\t\tbackground: #2B587A url('<?php echo plugins_url( 'vk-white.png', __FILE__ ); ?>') no-repeat;\n\t\tcolor: #fff !important;\n\t\tpadding: 16px;\n\t\ttop: 12px;\n\t}\n</style>\n<?php\n\t\t}\n\t}", "function printFooter()\n\t{\n\t\tinclude 'View/Footer.html';\n\t}", "function bethel_do_footer_bottom() {\n\tgenesis_widget_area ('footer-bottom', array ('before' => '<div id=\"bethel-header-right-bottom\">', 'after' => '</div>'));\n}", "function change_footer_admin () { echo '<span id=\"footer-thankyou\">Developed by IT ADR</span>'; }", "function genesisawesome_fullwidth_footer() {\n\n\t?>\n\t</div> <!-- end .wrap -->\n\t<div class=\"ga-footer-fullwidth\">\n\t<?php\n\n}", "public static function footer()\n {\n $version ='<strong style=\"color: green;\">'.EcrHtml::getVersionFromCHANGELOG('com_easycreator').'</strong>';\n ?>\n<div class=\"ecrFooter\">\n<span class=\"img icon-16-easycreator\">EasyCreator</span> <?php echo $version; ?> runs best on\n<a href=\"http://www.mozilla-europe.org/firefox/\" title=\"FireFox\" class=\"external\">\n<span class=\"img icon-16-firefox\">Firefox</span></a>\nand <a href=\"http://opensuse.org\" title=\"openSUSE\" class=\"external\">\n<span class=\"img icon-16-opensuse\">openSUSE</span></a> <br />\nMade and partially Copyright &copy; 2008 - 2012 by <a\nhref=\"https://github.com/elkuku\"\n class=\"external\">El KuKu</a><br />\n<small> <em style=\"color: silver;\"><span class=\"img icon-16-joomla\"></span>\nEasyCreator is not affiliated with or endorsed by the <a\n href=\"http://joomla.org\" class=\"external\">Joomla! Project</a>. It is\nnot supported or warranted by the <a href=\"http://joomla.org\"\n class=\"external\">Joomla! Project</a> or <a\n href=\"http://opensourcematters.org/\" class=\"external\">Open Source\nMatters</a>.<br />\n <a\n href=\"http://www.joomla.org/about-joomla/the-project/conditional-use-logos.html\"\n class=\"external\">The Joomla! logo</a> is used under a limited license\ngranted by <a href=\"http://opensourcematters.org/\" class=\"external\">Open\nSource Matters</a> the trademark holder in the United States and other\ncountries.</em></small>\n</div>\n <?php\n\n if(defined('ECR_DEBUG') && ECR_DEBUG )\n {\n EcrDebugger::printSysVars('get');\n EcrDebugger::printSysVars('post');\n }\n\n echo NL.'<!-- EasyCreator END -->'.NL;\n }", "public function FbSocialScript() {\n $cms = '';\n $cms .='<div id=\"fb-root\"></div>\n <script>\n (function (d, s, id) {\n var js, fjs = d.getElementsByTagName(s)[0];\n if (d.getElementById(id))\n return;\n js = d.createElement(s);\n js.id = id;\n js.src = \"//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.6\";\n fjs.parentNode.insertBefore(js, fjs);\n }(document,\"script\",\"facebook-jssdk\"));\n </script>';\n return $cms;\n }", "public function footer_branding()\n\t\t{\n\t\t}" ]
[ "0.8190369", "0.7950498", "0.7608892", "0.71858114", "0.6926398", "0.69137144", "0.68839014", "0.68699807", "0.6681982", "0.6657696", "0.66493046", "0.6635031", "0.66098404", "0.654997", "0.6549935", "0.65386283", "0.6529276", "0.6514508", "0.6496974", "0.6494165", "0.64652324", "0.6462151", "0.6459782", "0.64514625", "0.64217716", "0.64017165", "0.63961774", "0.63863945", "0.63743013", "0.63724697", "0.6372277", "0.63720286", "0.6361349", "0.6351407", "0.634476", "0.6344525", "0.63418305", "0.63392764", "0.63154215", "0.63113743", "0.63039106", "0.62992835", "0.6298864", "0.6285539", "0.62828344", "0.6278189", "0.62602174", "0.62577116", "0.623667", "0.6229098", "0.62178636", "0.62178636", "0.62148607", "0.6214167", "0.62083733", "0.6198318", "0.61891365", "0.61872363", "0.6186481", "0.61789006", "0.6160708", "0.6152782", "0.614932", "0.61476165", "0.6141579", "0.6141536", "0.6141536", "0.61377364", "0.61193573", "0.61168474", "0.6107928", "0.61076313", "0.61041105", "0.6096742", "0.6094328", "0.60805523", "0.6070798", "0.6067051", "0.6051759", "0.60471225", "0.60432684", "0.6040973", "0.60403496", "0.60399956", "0.60393023", "0.6034789", "0.6032155", "0.60292", "0.6026553", "0.6024871", "0.6023909", "0.6016092", "0.60159737", "0.60103005", "0.6009827", "0.6001765", "0.5995719", "0.599499", "0.59890425", "0.59879935" ]
0.81450844
1
Display copyrightpart in footer.php
function circle_footer_copyright() { circle_site_copyright( '<div class="footer__copyright">', '</div>' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cosmetro_footer_copyright() {\n\t$copyright = get_theme_mod( 'footer_copyright', cosmetro_theme()->customizer->get_default( 'footer_copyright' ) );\n\t$format = '<div class=\"footer-copyright\">%s</div>';\n\n\tif ( empty( $copyright ) ) {\n\t\treturn;\n\t}\n\n\tprintf( $format, wp_kses( cosmetro_render_macros( $copyright ), wp_kses_allowed_html( 'post' ) ) );\n}", "function footer() {\n\n\techo '<p>Copyright Dynamic Sites LLC 2012</p>';\n\t\n}", "function wpb_footer_copyright_text () {\n $copyright = '<div class=\"creditline\"><p>Copyright &copy;' . date('Y') . ' &middot; Michelle Bruno, Fork In The Road Blog - All Rights Reserved.</p></div>';\n return $copyright;\n}", "function addFooter($year, $copyright)\n {\n $this->page .= <<<EOD\n<div align=\"center\">&copy; $year $copyright</div>\n</body>\n</html>\nEOD;\n }", "function flawless_footer_copyright() {\r\n global $flawless;\r\n echo do_shortcode( nl2br( $flawless[ 'footer' ][ 'copyright' ] ) );\r\n }", "public function renderCopyright() {\r\n\r\n\t$res = $this->getStaticPage('copyright');\r\n\t$this->template->title = $res['title'];\r\n\t$this->template->content = $res['content'];\r\n }", "function atarr_do_copyright_text() {\n\n\t// Grab our customizer settings.\n\t$copyright_text = get_theme_mod( 'atarr_copyright_text' );\n\n\t// Stop if there's nothing to display.\n\tif ( ! $copyright_text ) {\n\t\treturn false;\n\t}\n\n\tob_start(); ?>\n\n\t<span class=\"copyright-text\">&#169; <?php echo intval( date( 'Y' ) ); ?> <?php echo wp_kses_post( $copyright_text ); ?></span>\n\t<?php\n\t\twp_nav_menu( array(\n\t\t\t'theme_location' => 'footer',\n\t\t\t'menu_id' => 'footer-menu',\n\t\t) );\n\t?>\n\n\t<?php\n\treturn ob_get_clean();\n}", "function getFooter()\n{\n global $rAdminSettings, $rPermissions, $rSettings, $rRelease, $rEarlyAccess, $_;\n if ($rPermissions[\"is_admin\"]) {\n $version = \"Version : \" . $rRelease . \" Based On Xtream UI 22F\";\n if ($rAdminSettings['show_version'] == 0) {\n $version = \" Based On Xtream UI 22F\";\n }\n return $_[\"copyright\"] . \" &copy; \" . date(\"Y\") . \" - \" . $rAdminSettings['site_title'] . \" - \" . $version;\n } else {\n return $rSettings[\"copyrights_text\"];\n }\n}", "function circle_menu_copyright() {\n\tcircle_primarymenu_copyright( '<div class=\"footer__copyright\">', '</div>' );\n}", "function modify_left_copyright() {\n \t ?><p>© <?php echo date('Y'); ?> AI Scripts <a href=\"<?php echo admin_url();?>\" title=\"Login to the backend of WordPress.\" />Login.</a></p>\n \t<?php\n }", "function creativa_credit() {\n ?>\n\n <div class=\"bottom-footer-wrap clearfix\">\n\n <div class=\"store-container\">\n\n <div class=\"site-info\">\n <?php $copyright = get_theme_mod( 'storevilla_footer_copyright' );\n if( !empty( $copyright ) ) { ?>\n <?php echo wp_kses_post($copyright) ; ?>\n <?php } else { ?>\n <?php echo apply_filters( 'storevilla_copyright_text', $content = '&copy; ' . date_i18n( 'Y' ) . ' - ' . get_bloginfo( 'name' ) ); ?>\n <?php } ?>\n </div><!-- .site-info -->\n <?php\n}", "public function get_copyright()\n {\n }", "public function get_copyright()\n {\n }", "public function get_copyright()\n {\n }", "function createFooter($rightsReserved){\n echo\"<footer>\",\n \"<p><i>Copyright &copy 2014 {$rightsReserved}</i></p>\",\n \"<p><i>All Rights Reserved</i></p>\",\n \"</footer>\",\n \"</body>\",\n \"</html>\";\n}", "function copyright()\n {\n return \"<table border=\\\"0\\\" width=\\\"100%\\\" cellspacing=\\\"0\\\" cellpadding=\\\"2\\\">\".\"\\n\".\n \"<tr><td><br class=\\\"h10\\\"/></td></tr>\".\"\\n\".\n \"<tr><td align=\\\"center\\\" class=\\\"ppfooter\\\">E-Commerce Engine Copyright &copy; 2000-2004 <a href=\\\"http://www.oscommerce.com\\\" class=\\\"copyright\\\" target=\\\"_blank\\\">osCommerce</a><br/>osCommerce provides no warranty and is redistributable under the <a href=\\\"http://www.fsf.org/licenses/gpl.txt\\\" class=\\\"copyright\\\" target=\\\"_blank\\\">GNU General Public License</a></td></tr>\".\"\\n\".\n \"<tr><td><br class=\\\"h10\\\"/></td></tr><tr><td align=\\\"center\\\" class=\\\"ppfooter\\\"><a href=\\\"http://www.oscommerce.com\\\" target=\\\"_blank\\\" class=\\\"poweredByButton\\\"><span class=\\\"poweredBy\\\">Powered By</span><span class=\\\"osCommerce\\\">\" . PROJECT_VERSION . \"</span></a></td></tr><tr><td><br class=\\\"h10\\\"/></td></tr></table>\";\n }", "function grd_footer_text() {\n\techo '© Desenvolvido por <a href=\"http://granada.ag\">Granada</a>';\n}", "function Wfc_Developer_Footer( $text ){\n global $wp_version, $wfc_version;\n $wfc_versions = \"WP ver: \".$wp_version.\" | WFC ver: \".$wfc_version;\n $text = '<span id=\"footer-thankyou\" class=\"wfc-admin-footer\">WFC Developer. '.$wfc_versions.'</span>';\n return $text;\n }", "function admin_footer () {\n\techo '<a href=\"http://www.drumcreative.com\" target=\"_blank\">&copy;' . date('Y') . ' Drum Creative</a>';\n}", "function anva_footer_text_default() {\n\tprintf(\n\t\t'<p class=\"copyrights__text\">&copy; %1$s <strong>%2$s</strong> %3$s %4$s %5$s.</p>',\n\t\tanva_get_current_year( apply_filters( 'anva_footer_year', date( 'Y' ) ) ),\n\t\tget_bloginfo( 'name' ),\n\t\tanva_get_local( 'footer_copyright' ),\n\t\tapply_filters( 'anva_footer_credits', anva_get_local( 'footer_text' ) ),\n\t\tapply_filters( 'anva_footer_author', '<a href=\"'. esc_url( 'http://anthuanvasquez.net/') .'\">Anthuan Vásquez</a>' )\n\t);\n}", "function footer() {\n\t?>\n\t\t\t\t<div class=\"headfoot\">\n\t\t\t\t\t<p>\n\t\t\t\t\t\t&quot;Remember The Cow is nice, but it's a total copy of another site.&quot; - PCWorld<br />\n\t\t\t\t\t\tAll pages and content &copy; Copyright CowPie Inc.\n\t\t\t\t\t</p>\n\n\t\t\t\t\t<div id=\"w3c\">\n\t\t\t\t\t\t<a href=\"https://webster.cs.washington.edu/validate-html.php\">\n\t\t\t\t\t\t\t<img src=\"https://webster.cs.washington.edu/images/w3c-html.png\" alt=\"Valid HTML\" /></a>\n\t\t\t\t\t\t<a href=\"https://webster.cs.washington.edu/validate-css.php\">\n\t\t\t\t\t\t\t<img src=\"https://webster.cs.washington.edu/images/w3c-css.png\" alt=\"Valid CSS\" /></a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</body>\n\t\t</html>\n\t<?php\n\t}", "function new_footer($name=\"Default\", $mysqli){\n\t\techo \"<br /><br /><br />\";\n\t echo \"<h4><div class='text-center'><small>Copyright \".date(\"M Y\").\", \".$name.\"</small></div></h4>\";\n\t\techo \"</body>\";\n\t\techo \"</html>\";\n\t\t$mysqli -> close;\n\t}", "public function getCopyright() {}", "function auxin_footer_copyright_markup( $echo = false ){\n global $post;\n\n $output = '';\n $copyright_text = ! empty( $post->ID ) ? auxin_get_post_meta( $post, 'page_footer_copyright', '') : '';\n $copyright_text = empty( $copyright_text ) ? auxin_get_option( 'copyright' ): $copyright_text ;\n\n if( $copyright_text ) {\n $date_format = 'Y'; // to pass theme check plugin\n $copyright_text = str_replace( array( '{{Y}}', '{{sitename}}' ), array( date_i18n( $date_format ), get_bloginfo( 'name' ) ), $copyright_text );\n $output .= '<small>' . do_shortcode( stripslashes( $copyright_text ) ) . '</small>';\n }\n\n $attribution = auxin_get_post_meta( $post, 'page_footer_attribution', 'default') ;\n $attribution = 'default' === $attribution ? auxin_get_option( 'attribution', false ) : $attribution;\n\n if ( auxin_is_true( $attribution ) ) {\n $output .= sprintf( '<small class=\"aux-attribution\"> %1$s <a href=\"https://wordpress.org/themes/phlox/\" title=\"%2$s\"> %3$s </a></small>',\n __( 'Powered by', 'phlox' ),\n __( 'Phlox Free WordPress Theme', 'phlox' ),\n __( 'Phlox Theme', 'phlox' )\n );\n }\n\n // Prints the policy markup in site footer\n if( auxin_get_option( 'footer_privacy_policy_link_display', 0 ) ){\n if ( function_exists( 'the_privacy_policy_link' ) ) {\n $output .= get_the_privacy_policy_link( '<small class=\"aux-privacy-policy\">', '</small>' );\n } else {\n $output .= sprintf( '<small class=\"aux-privacy-policy\">%s</small>', __( 'WordPress version 4.9.6 or higher is required for this feature.', 'phlox') );\n }\n }\n\n if( $echo ){\n echo $output;\n } else {\n return $output;\n }\n}", "public static function footer()\n {\n $version ='<strong style=\"color: green;\">'.EcrHtml::getVersionFromCHANGELOG('com_easycreator').'</strong>';\n ?>\n<div class=\"ecrFooter\">\n<span class=\"img icon-16-easycreator\">EasyCreator</span> <?php echo $version; ?> runs best on\n<a href=\"http://www.mozilla-europe.org/firefox/\" title=\"FireFox\" class=\"external\">\n<span class=\"img icon-16-firefox\">Firefox</span></a>\nand <a href=\"http://opensuse.org\" title=\"openSUSE\" class=\"external\">\n<span class=\"img icon-16-opensuse\">openSUSE</span></a> <br />\nMade and partially Copyright &copy; 2008 - 2012 by <a\nhref=\"https://github.com/elkuku\"\n class=\"external\">El KuKu</a><br />\n<small> <em style=\"color: silver;\"><span class=\"img icon-16-joomla\"></span>\nEasyCreator is not affiliated with or endorsed by the <a\n href=\"http://joomla.org\" class=\"external\">Joomla! Project</a>. It is\nnot supported or warranted by the <a href=\"http://joomla.org\"\n class=\"external\">Joomla! Project</a> or <a\n href=\"http://opensourcematters.org/\" class=\"external\">Open Source\nMatters</a>.<br />\n <a\n href=\"http://www.joomla.org/about-joomla/the-project/conditional-use-logos.html\"\n class=\"external\">The Joomla! logo</a> is used under a limited license\ngranted by <a href=\"http://opensourcematters.org/\" class=\"external\">Open\nSource Matters</a> the trademark holder in the United States and other\ncountries.</em></small>\n</div>\n <?php\n\n if(defined('ECR_DEBUG') && ECR_DEBUG )\n {\n EcrDebugger::printSysVars('get');\n EcrDebugger::printSysVars('post');\n }\n\n echo NL.'<!-- EasyCreator END -->'.NL;\n }", "function aitpro_login_footer() {\necho '<div id=\"footer\" class=\"row\">';\necho '<div class=\"sixteen columns\">';\necho '<div class=\"copyright\">Copyright &copy;'.date('Y').' '.bloginfo('name').'</div>';\necho '</div></div>';\n}", "function Page_Exported() {\r\n\r\n\t\t//$this->ExportDoc->Text .= \"my footer\"; // Export footer\r\n\t\t//echo $this->ExportDoc->Text;\r\n\r\n\t}", "function wp_dynamic_copyright() {\n\tglobal $wpdb;\n\t$copyright_dates = $wpdb->get_results(\"\n\tSELECT\n\tYEAR(min(post_date_gmt)) AS firstdate,\n\tYEAR(max(post_date_gmt)) AS lastdate\n\tFROM\n\t$wpdb->posts\n\tWHERE\n\tpost_status = 'publish'\n\t\");\n\t$output = '';\n\tif($copyright_dates) {\n\t\t$copyright = \"&copy; \" . $copyright_dates[0]->firstdate;\n\tif($copyright_dates[0]->firstdate != $copyright_dates[0]->lastdate) {\n\t\t$copyright .= ' &ndash; ' . $copyright_dates[0]->lastdate;\n\t}\n $copyright .= ' <a href=\"' . get_bloginfo('url') .'\" title=\"' . get_bloginfo('description') .' | ' . get_bloginfo('name') .'\">' . get_bloginfo('name') .'</a>';\n\t$output = $copyright;\n\t}\n\treturn $output;\n}", "function Page_Exported() {\n\n\t\t//$this->ExportDoc->Text .= \"my footer\"; // Export footer\n\t\t//echo $this->ExportDoc->Text;\n\n\t}", "function Page_Exported() {\n\n\t\t//$this->ExportDoc->Text .= \"my footer\"; // Export footer\n\t\t//echo $this->ExportDoc->Text;\n\n\t}", "function Page_Exported() {\n\n\t\t//$this->ExportDoc->Text .= \"my footer\"; // Export footer\n\t\t//echo $this->ExportDoc->Text;\n\n\t}", "function Page_Exported() {\n\n\t\t//$this->ExportDoc->Text .= \"my footer\"; // Export footer\n\t\t//echo $this->ExportDoc->Text;\n\n\t}", "function Page_Exported() {\n\n\t\t//$this->ExportDoc->Text .= \"my footer\"; // Export footer\n\t\t//echo $this->ExportDoc->Text;\n\n\t}", "function Page_Exported() {\n\n\t\t//$this->ExportDoc->Text .= \"my footer\"; // Export footer\n\t\t//echo $this->ExportDoc->Text;\n\n\t}", "function Page_Exported() {\n\n\t\t//$this->ExportDoc->Text .= \"my footer\"; // Export footer\n\t\t//echo $this->ExportDoc->Text;\n\n\t}", "function Page_Exported() {\n\n\t\t//$this->ExportDoc->Text .= \"my footer\"; // Export footer\n\t\t//echo $this->ExportDoc->Text;\n\n\t}", "function Page_Exported() {\n\n\t\t//$this->ExportDoc->Text .= \"my footer\"; // Export footer\n\t\t//echo $this->ExportDoc->Text;\n\n\t}", "function custom_admin_footer() {\n\techo 'Website design by <a href=\"http://rustygeorge.com/#contact\">Rusty George Creative</a> &copy; '.date(\"Y\").'. For site support please <a href=\"http://rustygeorge.com/#contact\">contact us</a>.';\n}", "function custom_admin_footer() {\n\techo 'Website design by <a href=\"http://rustygeorge.com/#contact\">Rusty George Creative</a> &copy; '.date(\"Y\").'. For site support please <a href=\"http://rustygeorge.com/#contact\">contact us</a>.';\n}", "function footer() \n{\n\techo <<<END\n\t<div class=\"footer\">\n\tDeveloped by Jason Soo and Jordan Wilberding under the direction of Drs. Gideon Frieder and Ophir Frieder. <br>\n\tCourtesy of the IIT IR Laboratory. E-Mail problems to <a class=\"footer\" href=\"mailto:ushmm@ir.iit.edu\">ushmm@ir.iit.edu</a>\n\t</div>\nEND;\n}", "public function getCopyright();", "function displayCopyRight() {\t\t\r\n\t\techo '<div class=\"copyright\" style=\"text-align:center;margin-top: 5px;\"><a href=\"http://joomdonation.com/components/membership-pro.html\" target=\"_blank\"><strong>Membership Pro</strong></a> version 1.5.0, Copyright (C) 2010-2012 <a href=\"http://joomdonation.com\" target=\"_blank\"><strong>Ossolution Team</strong></a></div>' ;\r\n\t}", "function barjeel_copyright() {\n\tglobal $wpdb;\n\t\t\t$copyright_dates = $wpdb->get_results(\"\n\t\t\t\t\tSELECT\n\t\t\t\t\tYEAR(min(post_date_gmt)) AS firstdate,\n\t\t\t\t\tYEAR(max(post_date_gmt)) AS lastdate\n\t\t\t\t\tFROM\n\t\t\t\t\t$wpdb->posts\n\t\t\t\t\tWHERE\n\t\t\t\t\tpost_status = 'publish'\n\t\t\t\");\n\n\t\t\t$output = '';\n\n\t\t\tif($copyright_dates) {\n\t\t\t\t$copyright = \"&copy; \" . $copyright_dates[0]->firstdate;\n\n\t\t\tif($copyright_dates[0]->firstdate != $copyright_dates[0]->lastdate) {\n\t\t\t\t$copyright .= '-' . $copyright_dates[0]->lastdate;\n\t\t\t}\n\t\t\t$output = $copyright;\n\t\t}\n\treturn $output;\n}", "function footer($name, $year){\n echo\"\n</section>\n<footer>\n<p>\n$name | $year\n</p>\n</footer>\n</section>\n</body>\n\";\n}", "function comicpress_copyright()\n{\n global $wpdb;\n $copyright_dates = $wpdb->get_results(\"\nSELECT\nYEAR(min(post_date_gmt)) AS firstdate,\nYEAR(max(post_date_gmt)) AS lastdate\nFROM\n$wpdb->posts\nWHERE\npost_status = 'publish'\n\");\n $output = '';\n if ($copyright_dates) {\n $copyright = '&copy; '.$copyright_dates[0]->firstdate;\n if ($copyright_dates[0]->firstdate != $copyright_dates[0]->lastdate) {\n $copyright .= '-'.$copyright_dates[0]->lastdate;\n }\n $output = $copyright;\n }\n\n return $output;\n}", "function storefront_footer_site_info()\n {\n ?>\n <div class=\"content-copyright text-center\" itemprop=\"streetAddress\">Central Jakarta, Indonesia</div>\n <div class=\"content-copyright text-center\">Developed by <a target=\"_blank\" href=\"https://taufiqelrahman.com\">taufiqelrahman.com</a>.</div>\n <?php\n }", "function get_html($site_license = false) {\n\n // must have a license to display html\n if (is_null($this->license_type) || $this->license_type == 'none')\n return;\n \n $txt = 'This work is licensed under a '.l(t('Creative Commons License'), $this->license_uri, array('rel' => 'license', 'title' => $this->license_name)).\".\\n\";\n $html = \"\\n<!--Creative Commons License-->\\n\";\n if($site_license)\n $html .= \"<div id=\\\"ccFooter\\\">\\n\";\n\n // site license header (with copyright year(s))\n if ($site_license) {\n if(!$start_year = variable_get('creativecommons_start_year', NULL)) {\n $start_year = date('Y');\n variable_set('creativecommons_start_year', $start_year);\n }\n $this_year = date('Y');\n if($start_year < date('Y'))\n $copy_years = $start_year.'-'.$this_year;\n else\n $copy_years = $start_year;\n $html .= 'Copyright &copy; '.$copy_years.', Some Rights Reserved<br />';\n }\n\n // construct images + links\n if ($img = $this->get_images($site_license)) {\n foreach ($img as $img_tag)\n $html .= l($img_tag, $this->license_uri, array('rel' => 'license'), NULL, NULL, FALSE, TRUE) . \"\\n\";\n $html .= '<br />';\n }\n\n // display site footer text\n $html .= $txt;\n if($site_license) {\n if($footer_text = variable_get('creativecommons_site_footer_text', NULL))\n $html .= '<br />'.$footer_text;\n $html .= \"</div>\\n\";\n }\n $html .= \"<!--/Creative Commons License-->\\n\";\n\n return $html;\n }", "function pro_copyright() {\n\t\n\t$pro = get_option ( 'up_themes_betty_commerce_wordpress_theme' );\n\t\n\tif( !empty( $pro['copyright_footer'] ) )\n\t{\n\t\treturn $pro['copyright_footer'];\n\t}\n\treturn false;\n}", "function remove_footer_admin () {\n echo '&copy; - Aleksandr Gryshko Theme';\n}", "function genesisawesome_footer_output( $output, $backtoptext, $creds_text ) {\n\n\t$left_text = ! genesis_get_option( 'footer_left_text', GA_CHILDTHEME_FIELD ) ? $backtoptext : genesis_get_option( 'footer_left_text', GA_CHILDTHEME_FIELD ) ;\n\t$left_text = sprintf( '<div class=\"one-half first\">%s</div>', $left_text );\n\t$right_text = sprintf( '<div class=\"one-half text-right\">[footer_copyright before=\"%s \"] &middot; [footer_childtheme_link before=\"\" after=\" %s\"] [footer_genesis_link url=\"http://www.genesisawesome.com/recommends/genesis\" before=\"\"] &middot; [footer_wordpress_link]</div>', __( 'Copyright', 'genesis' ), __( 'on', 'genesis' ) );\n\n\treturn $left_text . $right_text;\n\n}", "private function getFooter() {\n\t\t$this->data['oxfooter']\t= \"\\n\"\n\t\t. '<!-- Module ' . ucfirst( $this->_name )\n\t\t.' v.'. $this->_version . ' by http://osworx.net (c) '\n\t\t. date('Y')\n\t\t. ' -->' . \"\\n\";\n\t}", "abstract protected function footer();", "abstract protected function footer();", "function change_footer_admin () { echo '<span id=\"footer-thankyou\">Developed by IT ADR</span>'; }", "function Footer()\n\t{\n\t\t$this->SetY(-15);\n\t\t//buat garis horizontal\n\t\t$this->Line(10,$this->GetY(),210,$this->GetY());\n\t\t//Arial italic 9\n\t\t$this->SetFont('Arial','I',9);\n $this->Cell(0,10,'copyright gubugkoding.com Semarang ' . date('Y'),0,0,'L');\n\t\t//nomor halaman\n\t\t$this->Cell(0,10,'Halaman '.$this->PageNo().' dari {nb}',0,0,'R');\n\t}", "function cdn_do_footer() {\n\t$args = array(\n\t\t'theme_location' => 'footer',\n\t\t'menu_class' => 'menu menu-footer'\n\t);\n\t$nav_menu = genesis_get_nav_menu( $args );\n\t$copyright = genesis_footer_copyright_shortcode( array( 'first' => '2011' ) );\n\n\techo '<div class=\"wrap\">';\n\techo '<p class=\"footer-text\">';\n\techo $copyright . ' &middot; made with <i class=\"icon icon-heart\"></i> by <a href=\"http://codingismycardio.com\">coding is my cardio</a>';\n\techo '</p>';\n\techo $nav_menu;\n\techo '<a href=\"#\" class=\"to-top\">Back to top</a>';\n\techo '</div>';\n}", "public function Copyright(){\n\t\treturn 'For The Win forums version 2.5 <br /> copyright &copy; FTW Entertainment LLC, 2008-'.date(\"Y\").', all rights reserved.';\n\t}", "function Footer()\n {\n //$year = date('Y');\n //$footertext = sprintf($this->xfootertext, '');\n $this->SetY(-15);\n //$this->SetFont('', '', 5);\n //$this->SetTextColor(0, 0, 0);\n //$this->SetFont($this->xfooterfont,'',$this->xfooterfontsize);\n $this->writeHTML($this->xfootertext, true, false, true, false, '');\n //$this->Cell(0,8, $footertext,'T',3,'L');\n }", "function printFooter()\n\t{\n\t\tinclude 'View/Footer.html';\n\t}", "function FooterBlog() {\n\n\n?>\n\n<!-- flujo footer -->\n<div class=\"holder-last\"> </div>\n\n<!-- página estándar -->\n<footer class=\"bg-footer\">\n <section class=\"holder50\">\n <h6 class=\"center\">&#169;Copyright 2016 <br/>Instituto Tecnológico Superior de la Montaña, <br>Todos los derechos reservados.</h6>\n </section>\n</footer>\n\n\n<?php\n }", "public function getCopyrightMessage();", "function edit_footer_text_admin () {\n echo '<span id=\"footer-thankyou\">Contact Database by <a href=\"https://www.supint.com/\" target=\"_blank\">Superlative</a></span>\n\t\t <p id=\"footer-upgrade\"></p>';\n}", "public function my_footer_version()\n {\n return '';\n }", "function displayFooter()\r\n{\r\n echo '<div id=\"footer\"> Stephen Wallace 2020</div>' . \"\\n\";\r\n}", "function sloodle_print_footer()\r\n {\r\n global $CFG;\r\n echo \"<p style=\\\"text-align:center; margin-top:32px; font-size:90%;\\\"><a href=\\\"{$CFG->wwwroot}/course/view.php?id={$this->course->id}\\\">&lt;&lt;&lt; \".get_string('backtocoursepage','sloodle').\"</a></h2>\";\r\n sloodle_print_footer($this->course);\r\n }", "protected function footer()\n {\n require SCRIPT_BASE . \"build/rox/templates/footer.php\";\n }", "function display_portal_footer()\r\n {\r\n Display :: footer();\r\n }", "public function footer()\n\t\t{\t\t\t\n\t\t\treturn $this->render('incs/footer');\n\t\t}", "function addRedirectorCopyright()\n{\n global $context;\n\n if ($context['current_action'] == 'credits') {\n $context['copyrights']['mods'][] = '<a href=\"https://mysmf.net/mods/redirector\" target=\"_blank\">Redirector</a> &copy; 2015-2020, digger';\n }\n}", "function copyrightName() {\n\t\t\treturn stripslashes( wp_filter_post_kses(get_option($this->shortname.'_copyright_name')) );\n\t\t}", "function Footer()\n {\n $this->SetY(-15);\n //Select Arial Italic 8\n $this->SetFont('Arial','I',8);\n $this->SetX(86,5);\n $this->Write(5, '[ powered by '.$this->web_str.']',$this->web_str);\n //Print centered page number\n $this->Cell(0,10,$this->page_str.' '.$this->PageNo(),0,0);\n }", "public static function footer()\n {\n require_once(getcwd() . \"/views/Template/footer.php\");\n }", "function admin_footer_text($text)\n {\n }", "function d4tw_filter_admin_footer () {\r\n echo '<span id=\"dashFooter\">Website developed by <a style = \"color: #ff0000; text-decoration: none;\" href=\"http://www.knockmedia.com\" target=\"_blank\">KnockMedia</a></span>';\r\n}", "function footer() {\n\t\trequire ('views/partial/footer.php');\n\t}", "function base_admin_footer_bloom() {\n\t?>\n\t<span id=\"footer-thankyou\">\n\t\t<?php esc_html_e( 'Theme Development by', 'base' ); ?>\n\t\t<a href=\"https://bloomcu.com\"><?php esc_html_e( 'BloomCU', 'base' ); ?></a>.\n\t</span>\n\t<?php\n}", "function extamus_change_admin_footer(){\n\t echo '<span id=\"footer-note\">Please dont hesitate to reach out to your friends at <a href=\"http://www.extamus.com/\" target=\"_blank\">Extamus Media</a> with any questions.</span>';\n\t}", "function tr_custom_admin_footer() {\n\t_e('<span id=\"footer-thankyou\">Developed by <a href=\"http://third-law.com\" target=\"_blank\">Kenny Scott (Third Law Web Design)</a></span>. Built using Tabula Rasa.', 'tabula_rasa');\n}", "public static function getFooter()\n {\n ?>\n <p>Content in the front end's footer. This code comes from <?php echo __METHOD__; ?></p>\n <?php\n }", "function Footer() {\r\n // footer line\r\n $this->SetFooterFont();\r\n $this->SetFillColor(0, 0, 0);\r\n $this->Rect(10, $this->PageBreakTrigger + 2, 190, 0.2, \"F\");\r\n $this->Rect(10, $this->PageBreakTrigger + 2.5, 190, 0.2, \"F\");\r\n $this->SetY($this->PageBreakTrigger + 5);\r\n\r\n $this->Cell(0, 0, \"Used by permission, CCLI #2752477\", 0, 1, \"L\");\r\n $this->Cell(0, 0, \"The Ridge Community Church\", 0, 1, \"R\");\r\n }", "function display_footer_logo()\n {\n include 'assets/partials/footer-logo.php';\n }", "function copyright($company, $year) {\n\tif ($year == date('Y')) {\n\t\t$date = $year;\n\t} else {\n\t\t$date = $year.' - '.date('Y');\n\t}\n\techo '&copy; '.$date.' '.$company.'. All rights reserved.';\n}", "function displayPageFooter()\n{?>\n\n </div> <!-- content -->\n </article>\n\n <footer>\n Copyright &copy; tme119.anagno.me - 2015\n </footer>\n\n </body>\n</html>\n\n<?php \n}", "function softsdev_mailchimp_update_footer($text) {\n if (!empty($_GET['page']) && strpos($_GET['page'], 'softsdev-mailchimp') === 0) {\n $text = 'Version 1.0.5';\n }\n return $text;\n }", "function wpfolio_admin_footer() {\n\techo 'Thank you for creating with <a href=\"http://wordpress.org/\" target=\"_blank\">WordPress</a>. | <a href=\"http://codex.wordpress.org/\" target=\"_blank\">Documentation</a> | <a href=\"http://wordpress.org/support/forum/4\" target=\"_blank\">Feedback</a> | <a href=\"http://wpfolio.visitsteve.com/\">Theme by WPFolio</a>';\n}", "function get_footer() {\r\n\t\trequire_once('theme_parts/footer.php');\r\n\t}", "public function template_footer() {\n\t\tget_footer( 'course' );\n\t}", "protected function generatePageFooter() \r\n {\r\n echo <<<HTML\r\n </article>\r\n <script src=\"CityWok.js\"> </script>\r\n </body>\r\n</html>\r\nHTML;\r\n }", "function ci_footer($location = false){ \n\t$setting = 'ci_footer_credits';\n\tif(!empty($location))\n\t{\n\t\t$setting .= '_' . $location;\n\t}\n\t\n\t$allowed_tags = implode('', apply_filters('ci_footer_allowed_tags', array('<a>','<b>','<strong>','<i>','<em>','<span>')));\n\n\t$text = ci_setting($setting);\n\t$text = html_entity_decode($text);\n\t$text = strip_tags($text, $allowed_tags);\n\n\t// Parse \"variables\"\n\t$text = preg_replace('/:year:/', date('Y'), $text);\n\t\n\treturn $text;\n}", "function ppo_update_admin_footer(){\n $text = __('<img src=\"' . DEV_LOGO . '\" width=\"24\" />Hệ thống CMS phát triển bởi <a href=\"' . DEV_LINK . '\" title=\"Xây dựng và phát triển ứng dụng\">PPO.VN</a>.');\n echo $text;\n }", "function showFooter() \n {\n // AUSGABE\n echo \"<div class='newFahrt'><div class='footer'>\";\n echo \"<p>EventPlanner by Steven Schödel (c) Version 05.072019 | \";\n echo \"<a href='/flatnet2/informationen/impressum.php'>Impressum</a> | \";\n echo \"<a href='/index.php'>Login</a>\";\n echo \"</p>\";\n echo \"</div></div>\";\n }", "function cosmetics_footer_scripts() {\n global $cosmetics_options;\n $cosmetics_footer_scripts = $cosmetics_options['cosmetics_footer_scripts_editor'];\n\n if ( !empty( $cosmetics_footer_scripts ) ) :\n echo $cosmetics_footer_scripts;\n endif;\n}", "function Footer()\n\t{\n\t\t$this->SetY(-15);\n\t\t// Select Arial italic B\n\t\t$this->setfont('Arial','I',14);\n\t\t$this->cell(250,8,\"Proyecto Final, copyright &copy; 2019\",0,0,'c');\n\t\t// Print centered page numbre\n\t\t$this->Cell(0,10,'Pag.'.$this->PageNo(),0,0,'c');\n\t}", "function remove_footer_admin () {\n\techo '© <a href=\"http://blackflag.com.br/\">Black Flag Comunicação</a> - Todos os direitos reservados';\n}", "function modifyThemeFooter() {\n?>\n<!-- W3TC-include-js-head -->\n<?php\n}", "function add_admin_footer() {\n\t echo '<span id=\"footer-thankyou\">Wordpress Theme by <a href=\"http://url.com\">Name Here</a>.</span>';\n\t}", "public static function renderFooter()\n {\n include DIR_INCLUDES . 'footer.php';\n }", "public function displayContentFooter() {\n ?>\n <footer class=\"container-fluid text-center\">\n <p>IT360 Applied Database Systems Project By Harrison Bleckley, Drake Bodine, and Lani Davis</p>\n </footer>\n <?php\n }", "function printFooter($args_raw = array()) {\n\t\tglobal $Config;\n\t\t\n\t\t$args = array_map('print_html', $args_raw);\n?>\n\n</div>\n</div>\n\n<div id=\"footer\">\n\t<a href=\"<?php echo $Config['URLPath'] ?>/legal.php\">View legal disclaimer</a><br />\n\t&copy; 2006 Jain Foundation Inc. All Rights Reserved\n</div>\n\n</div>\n</body>\n</html>\n<?php\n\t}", "function display_footer_contact()\n {\n include 'assets/partials/footer-contact.php';\n }" ]
[ "0.8260183", "0.8185374", "0.8029838", "0.8008404", "0.7898109", "0.7847111", "0.77503437", "0.75152975", "0.7399091", "0.72932845", "0.7290268", "0.72821194", "0.7282069", "0.7280873", "0.7254129", "0.7210598", "0.7096906", "0.70411336", "0.704056", "0.700824", "0.6982783", "0.6971171", "0.69642335", "0.6954525", "0.6942746", "0.6937937", "0.6929846", "0.6921994", "0.69063944", "0.69063944", "0.69063944", "0.69063944", "0.69063944", "0.69063944", "0.69063944", "0.69063944", "0.69063944", "0.6903175", "0.6903175", "0.6895867", "0.68876976", "0.6869666", "0.6831119", "0.6825354", "0.6818957", "0.68172526", "0.6802786", "0.6800066", "0.6779891", "0.674166", "0.673156", "0.6723995", "0.6723995", "0.672265", "0.67171645", "0.67144185", "0.67113644", "0.6707254", "0.6697418", "0.6680069", "0.667652", "0.667636", "0.66732424", "0.6661539", "0.6656315", "0.66421306", "0.6635833", "0.66348565", "0.6631749", "0.66167945", "0.6615486", "0.6611347", "0.66046613", "0.66001904", "0.65988696", "0.6598469", "0.6592073", "0.6589911", "0.65865743", "0.6566879", "0.6548099", "0.65463454", "0.65283346", "0.6519278", "0.6516131", "0.65005624", "0.6496951", "0.6495493", "0.6495469", "0.64889616", "0.64851093", "0.6481964", "0.6471121", "0.6457446", "0.6456289", "0.64542437", "0.64516443", "0.6446997", "0.6445459", "0.64420336" ]
0.79761326
4
Display logopart in header.php
function circle_menu_logo() { circle_site_logo( 'menu_logo', true, false, '<div class="footer__logo">', '</div>' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function header_logged_in()\n {\n require_once(getcwd() . \"/views/Template/header-logged-in.php\");\n }", "function printLogin() {\r\n global $_CONF;\r\n\r\n if ($this->templateLogin == \"\") { /* No se ha configurado que plantilla de inicio de sesion utilizar */\r\n $this->templateLogin = \"templates/login.html\";\r\n if (isset($_CONF['skin']) && $_CONF['skin'] != \"\"){ $this->templateLogin = \"skins/\" . $_CONF['skin'] . \"/login.html\"; }\r\n }\r\n\r\n $template = file_get_contents($this->templateLogin);\r\n $html = str_replace(\"@@TITLE@@\", $this->title, $template);\r\n echo $html;\r\n exit();\r\n }", "protected function displayContent() {\r\n\t\t$this -> model -> processLogout();\r\n\t\theader('Location: index.php?page=home');\r\n\t}", "function display_login_notice()\n\t\t{\n\t\t\t?>\n\t\t\t\t<div class=\"cv-main-wrapper\">\n\t\t\t\t\t<div class=\"container\">\n\t\t\t <div class=\"cv-heading\">\n\t\t\t <h1 class=\"pt-5\">Please Login to your account before checkout.</h1>\n\t\t\t </div>\n\t\t\t\t </div>\n\t\t\t\t</div>\n\t\t\t<?php\n\t\t}", "function login_header() { ?>\n<!DOCTYPE html>\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <title>Stuff Log In</title>\n\t<link rel=\"stylesheet\" id=\"admin-css\" href=\"<?php echo HOME; ?>sf-control/css/admin.css\" type=\"text/css\" media=\"all\" />\n\t<meta name=\"robots\" content=\"noindex,nofollow\" />\n</head>\n<body class=\"login\">\n<div class=\"login-container\">\n<?php }", "function make_page_header($uname){\n\t//greeting user and logout link\n\techo \"<div>\";\n\techo \"<div align=\\\"left\\\"><b>Welcome User: \".$uname.\"!</b></div>\";\n\techo \"<div align=\\\"right\\\">\".form_open('loguser/log_out').\"<b>\".form_submit('','Log-out Medisys','').form_close().\"</b></div>\";\n\techo \"</div>\";\n\techo \"<a href=\\\"/medisys\\\">Main Menu</a>\";\n\n}", "public static function header_logged_out()\n {\n require_once(getcwd() . \"/views/Template/header-logged-out.php\");\n }", "public function showLogin(){\n $this->data['pagetitle'] = \"Login\";\n $this->data['page'] = 'login';\n // $this->data['pagecontent'] = 'login';\n $this->data['pagebody'] = 'login';\n \n $this->render();\n }", "function logcheck() {\r\nif (isset($_COOKIE[\"user\"])) {\r\n include_once 'Includes/loggedin_header.php';\r\n \r\n }\r\n//If user isnt still logged in display default headder.\r\n else {\r\n include_once 'Includes/header.php';\r\n \r\n }\r\n}", "function print_home() {\n\techo '\n\t<p class=\"alert alert-info\">\n\t\tWelcome <b>'.$_SESSION['username']. '</b> you can\n\t\t<a href=\"play_trivia.php\">play trivia</a> or <a href=\"insert_question.php\">insert questions</a>. \n\t\tUse the main menu above to select additional options or to logout.\n\t</p>\n\t';\t\n}", "function user_header($CI){\n\t\t$CI->cpanel = new Panel('cpanel',FALSE,FALSE,'global cpanel');\n\t\t$user = $CI->user->get();\n\t\tif($user){\n\t\t\t$avatar = reset($user->avatar);\n\t\t\t$CI->cpanel->add(array('text'=>$user->name,'data'=>$avatar,'link'=>l('/user/'.$user->url_name.'/'),'class'=>'panel-icon','data_class'=>'avatar','width'=>'10%'),0);\n\t\t\t$CI->cpanel->add(array('text'=>t('user logout'),'data'=>'/gears/user/img/loginout.png','link'=>l('/user/logout/'.$user->key.'/'),'width'=>'10%'),100);\n\t\t}\n\t\telse {\n\t\t\tif($CI->gears->user->registration) $CI->cpanel->add(array('text'=>t('user register'),'data'=>'/gears/user/img/register.png','link'=>l('/user/register/')),99);\n\t\t\t$CI->cpanel->add(array('text'=>t('user login_submit'),'data'=>'/gears/user/img/loginout.png','link'=>l('/user/login/'),'onclick'=>\"loader.elem('login-form',640,420);return false;\"),100);\n\t\t}\n\t}", "public function index(){\n \t$this->head = $this->fetch('head'); \n \t$this->foot = $this->fetch('foot');\n \t\n \t\n \tif(isset($_SESSION['user_id']))\n \t{\n \t\t\n \t}\n \telse\t\n \t{\n \t\t$this->whetherLogin = \"<div id=\\\"wb_login_btn\\\"></div>\";\n \t}\n \t\n \t$this->display(); \n \t\n }", "function showLogin($content, $conf) {\n\t\t$log = '';\n\t\tif($conf['login_pageid'] > ''){ // check if login-page is configured at all!\n\t\t\tif($GLOBALS['TSFE']->fe_user->user['uid'] > 0){\n\t\t\t\t$log = 'Logout';\n\t\t\t}else{\n\t\t\t\t$log = 'Login';\n\t\t\t}\n\t\t}\n\t\treturn $log;\n\t}", "function printHeader()\n\t{\n\t\t$_SESSION['last_page'] = $_SERVER['QUERY_STRING'];\n\t\tif( isset($_SESSION['admin']) && $_SESSION['admin'])\n\t\t{\n\t\t\t$this->admin_nav = \"<a class=\\\"button\\\" href=\\\"?section=project_management\\\" title=\\\"Go to project management\\\">Project Management</a>\\n\n\t\t\t\t\\t\\t<a class=\\\"button\\\" href=\\\"?section=reference_value_management\\\" title=\\\"Go to reference value management\\\">Reference Value Management</a>\\n\n\t\t\t\t\\t\\t<a class=\\\"button\\\" href=\\\"?section=user_management\\\" title=\\\"Go to user management\\\">User Management</a>\\n\";\n\t\t}\n\t\t$this->initSessionVariables();\n\t\tinclude 'View/Header.html';\n\t}", "public function my_addition_to_login_footer() {\n }", "function action_userLogged() {\n if (!isset($_SESSION['logged']) || !$_SESSION['logged']) {\n $_SESSION['logged'] = false;\n header('Location: /');\n } else {\n $_SESSION['logged'] = true;\n header('Location: /home/track');\n // Include view for this page.\n @include_once APP_PATH . 'view/track_page.tpl.php';\n }\n }", "public function index() {\n\t\t$adm_uid = $this->session->userdata('adm_uid') ?: 0;\n\t\tif ($adm_uid) {\n\t\t\t$this->load->view('header');\n\t\t\t$this->load->view('welcome_message');\n\t\t\t$this->load->view('footer');\n\n\t\t} else {\n\t\t\tredirect(HOSTDOMAIN . '/welcome/login');\n\n\t\t}\n\n\t}", "function logistik()\n\t{\n\t\t$data['logistik'] = $this->Kesehatan_M->readS('logistik')->result();\n\t\t$this->load->view('static/header');\n\t\t$this->load->view('static/navbar');\n\t\t$this->load->view('dokter/logistik',$data);\n\n\t\t$this->load->view('static/footer');\n\t}", "function login() {\n $this->checkAccess('user',true,true);\n\n\n $template = new Template;\n echo $template->render('header.html');\n echo $template->render('user/login.html');\n echo $template->render('footer.html');\n\n //clear error status\n $this->f3->set('SESSION.haserror', '');\n }", "public function login()\n\t{\n\n\t\t$this->load->view('portal/templates/header');\n\t\t$this->load->view('portal/login');\n\t\t$this->load->view('portal/templates/footer');\n\t}", "public function showLogin() {\n if (isAuth()) {\n Flash::set(\"You're already logged in!\", 'info');\n $this->redirect($this->url('LoginHome'));\n }\n $active = 'login';\n $this\n ->setTitle('Login')\n ->add('active', $active)\n ->show('login/login');\n }", "public function logStatus()\n {\n //piece to handle the login/logout\n $u = $this->isAuth();\n $lstr = ($u) ? '<a href=\"/user/main\">' . $u .\n '</a> <a href=\"/user/logout\">[logout]</a>' :\n '<a href=\"/user/login\">login</a>';\n $this->template->write('logged', $lstr);\n }", "function logged(){\n if(!empty($_SESSION['login'])){\n $host=$_SERVER['HTTP_HOST'];\n\t\t$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\\\');\n\t\t$extra=\"./index.php\";\n\t\theader(\"Location: http://$host$uri/$extra\");\n }\n}", "public static function show_header() {\n require_once Config::get('prefix') . '/templates/header.inc.php';\n }", "function Header(){\n\t\t}", "public function display_account_login( ){\n\t\tif( $this->is_page_visible( \"login\" ) ){\n\t\t\tif( file_exists( WP_PLUGIN_DIR . '/wp-easycart-data/design/layout/' . get_option( 'ec_option_base_layout' ) . '/ec_account_login.php' ) )\t\n\t\t\t\tinclude( WP_PLUGIN_DIR . '/wp-easycart-data/design/layout/' . get_option( 'ec_option_base_layout' ) . '/ec_account_login.php' );\n\t\t\telse\n\t\t\t\tinclude( WP_PLUGIN_DIR . \"/\" . EC_PLUGIN_DIRECTORY . '/design/layout/' . get_option( 'ec_option_latest_layout' ) . '/ec_account_login.php' );\n\t\t}\n\t}", "function logout() {\n\tif (!isset($_SESSION['user_nickname'])) {\n\t\theader('Location: index.php');\n\t}\n\telse {\n\t\techo \"<div class='loginform'>\".$_SESSION['user_nickname'].\" | <a href='logout.php'>Изход</a></div><br>\";\n\t}\n}", "public static function login_headertitle() {\n\t\t\treturn get_bloginfo( 'name' ) . ' &#124; ' . get_bloginfo( 'description' );\n\t\t}", "function display_portal_header()\r\n {\r\n Display :: header(null);\r\n }", "public function header()\n {\n echo \"<!doctype html>\\n<html lang='pt'>\\n<head>\\n\";\n echo \"\\t<meta charset='UTF-8'>\\n\";\n echo \"\\t<title>{$this->controller->getTitle()}</title>\\n\";\n $this->links();\n echo \"</head>\\n<body>\\n\";\n }", "function ShowLogIn($message = \"\"){\n\n $smarty = new Smarty();\n $smarty->assign('titulo_s', $this->title);\n $smarty->assign('message', $message);\n\n $smarty->display('templates/login.tpl'); // muestro el template \n }", "public function logInPage() {\n $view = new View('login');\n $view->generate();\n }", "public function index(){\r\n Session::createSession();\r\n if(isset($_SESSION['loggedin'])) {\r\n header('location:'.URL.'home');\r\n }else{\r\n $this->view->render('login/index');\r\n }\r\n \r\n }", "public function index() {\r\n\t\t$this->show_login_page();\r\n\t}", "function getTitle(){\n\t\techo \"Log in\";\n\t}", "function login() {\n $this->layout = \"no_header\";\n $this->Auth->loginRedirect = array('controller' => 'pages', 'action' => 'display', \"home\");\n }", "public static function showHeader() {\r\n\t\t$title = (array_key_exists('headertitle', $_SESSION))?\r\n\t\t\t$_SESSION['headertitle']:\"\";\r\n\t\t\r\n\t\techo \"<!DOCTYPE html>\\n\";\r\n\t\techo \"<html>\\n\";\r\n\t\techo \"<head>\\n\";\r\n\t\techo \"<title>$title</title>\\n\";\r\n\t\techo \"</head>\\n\\t<body>\\n\";\r\n }", "public function index()\n {\n //Mostro la pagina da mostrare al primo login\n ViewLoader::load(\"_templates/header_base\");\n ViewLoader::load(\"firstLogin/index\");\n ViewLoader::load(\"_templates/footer\");\n }", "public function index() {\n is_login();\n $this->load->view('include/header');\n $this->load->view('gp');\n $this->load->view('include/footer');\n }", "public function _showForm()\n\t{\n\t\t$this->registry->output->setTitle( \"Log In\" );\n\t\t$this->registry->output->setNextAction( 'index&do=login' );\n\t\t$this->registry->output->addContent( $this->registry->legacy->fetchLogInForm() );\n\t\t$this->registry->output->sendOutput();\n\t\texit();\n\t}", "protected function showLogin($vd) {\n $vd->setTitolo(\"Login \");\n $vd->setMenu(basename(__DIR__) . '/../view/home/menu.php');\n $vd->setLeftBar(basename(__DIR__) . '/../view/home/leftBar.php');\n $vd->setRightBar(basename(__DIR__) . '/../view/home/rightBar.php');\n $vd->setContent(basename(__DIR__) . '/../view/home/login.php');\n }", "public function index()\n\t{\n\t\tif(is_user_active('', FALSE))\n\t\t{\n\t\t\tredirect('dashboard');\n\t\t}\n\t\t\t\t\n\t\t$data['base_url'] = base_url();\n\t\t$data['view_file'] = \"login\";\n\t\t$this->template->load_admin_login_template($data);\n\t}", "function display_login(){\n header(\"Location: view/login.php\");\n}", "public function index()\n\t{\n\t\tif(is_login()){\n\t\t\theader('Location:'.base_url('index.php/dashboard'));\n\t\t\texit();\n\t\t}else{\n\t\t\theader('Location:'.base_url('index.php/login'));\n\t\t\texit();\n\t\t}\n\t}", "function admin_page_header()\n\t\t{\n\t\t\t$permissions = $this->permissions_check();\n\n\t\t\t$out = '';\n\t\t\t$out .= '<h1>WP Volunteer Manager</h1>';\n\n\t\t\t$out .= $this->render_messages();\n\t\t\t$out .= $this->admin_notices();\n\n\t\t\techo $out;\n\n\t\t\tif(!$permissions) { wp_die(); }\n\t\t}", "protected function header()\n {\n\n }", "function index() {\n\t\tif ($this->ion_auth->logged_in()) {\n\t\t\tredirect(site_url('manage'));\n\t\t} else {\n\t\t\t$this->data['title'] = \"Login Form\";\n\t\t\t$this->data['message'] = $this->session->flashdata('message');\n\t\t\t$this->data['mainContent'] = \"login_view\";\n\t\t\t$this->data['headerBar'] = \"default\";\n\t\t\t$this->load->view(\"includes/template\", $this->data);\n\t\t}\t\n }", "function sloodle_print_header()\r\n {\r\n global $CFG;\r\n $navigation = \"<a href=\\\"{$CFG->wwwroot}/mod/sloodle/view.php?_type=course&id={$this->course->id}\\\">\".get_string('courseconfig', 'sloodle').\"</a>\";\r\n\r\n\r\n sloodle_print_header_simple(get_string('courseconfig','sloodle'), \"&nbsp;\", $navigation, \"\", \"\", true, '', navmenu($this->course));\r\n }", "function index() {\n\t\t\tif (!isset($_SESSION['admin'])) {\n\t\t\t\tView::render(\"admin\" . DS . \"login\");\n\t\t\t}else {\n\t\t\t\theader(\"Location: ../contenido/principal/\");\n\t\t\t}\n\t\t}", "public function showAdminHeader() {\n\n\t\techo $this->getAdminHeader();\n\t}", "public static function authPage(){\n\t\tif(!self::isLogged()){\n\t\t\theader(\"Location: login.php?required\");\n\t\t\texit;\n\t\t}\n\t}", "function my_loginfooter() { ?>\n\t<p class=\"login-addition\">Not yet a registered learner?<br>\n\t\t<a href=\"<?php echo home_url(); ?>/register\">Find out how to register</a>\n\t</p>\n<?php }", "function custom_login_logo() {\n echo '<style type=\"text/css\">\n html { background: #ffffff none repeat scroll 0 0 !important; }\n\tbody.login { margin-top:20px; background-color:#ffffff; }\n\tbody.login #login { width:390px; padding-top:0; }\n body.login h1 a{\n background:url('.get_bloginfo('stylesheet_directory').'/images/logo.png) no-repeat top center ;\n height:104px;\n\t width:355px;\n }\n\t\n body.login #nav { color:#EFEBEA; }\n\tbody.login #nav a:first-of-type { display:none; }\n\t\tbody.login-action-lostpassword #nav a + a { display:none; }\n\t\tbody.login.login-action-lostpassword #nav a:first-of-type { display:inline; }\n\t\tbody.login #nav a:link { color:#011A58; }\n\t\tbody.login #nav a:visited { color:#011A58; }\n\t\tbody.login #nav a:hover { color:#1E8CBE; }\n\t\tbody.login #nav a:active { color:#1E8CBE; }\n body.login #backtoblog { font-size:10px; margin-bottom:15px; }\n\t#footer .wrap { border-top: 1px solid #777777; margin: 0 auto; overflow: hidden; padding: 10px 15px; width: 960px;}\n\t#footer .copyright { color: #777777; font-size: 10pt; height: 20px; padding-top: 5px; text-align:center; }\n </style>';\n}", "function logout(){\n\t\techo '<div class = Logout\">';\n\t\techo '<form name = \"logout\" method=\"post\" action = \"/Logout.php\">';\n\t\techo '<button class = \"Logout\" type=\"submit\">Logout</button>';\n\t\techo '</form>';\n\t\techo '</div>';\n\n\t}", "public function index()\n\t{\n // If they aren't logged in\n if (! Auth::logged_in() AND 1 == 2) :\n $this->load->view('shared/header');\n \t\t// $this->load->view('homepage/public');\n \t\t$this->load->view('shared/footer');\n \t\t\n \t\treturn;\n endif;\n \n show_error('Welcome!', 200);\n\t}", "function displayLogin(){\n global $logged_in;\n if($logged_in){\n include('common/calendar.php');\n } else {\n?>\n\n<div style=\"text-align: center; width: 600px; margin-left: -300px; position: relative; left: 65%;\">\n<span style=\"position: relative; top: 24px; background-color: #fff; font-size: 14px; font-weight: bold; left: -265px;\">&nbsp;Login&nbsp;</span>\n<div style=\"margin-top: 15px; border: 1px solid #aaaaaa; height: 110px; width: 350px; padding: 30px;\">\n<form action=\"\" method=\"post\">\n<table align=\"left\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\" style=\"margin-top: 0px; margin-left: 40px; width: 250px;\">\n<tr><td>Username:</td><td><input type=\"text\" name=\"user\" maxlength=\"30\"></td></tr>\n<tr><td>Password:</td><td><input type=\"password\" name=\"pass\" maxlength=\"30\"></td></tr>\n<!--<tr><td colspan=\"2\">Remember password<input type=\"checkbox\" name=\"remember\" value=\"remember\"></td></tr>-->\n</table>\n<p align=\"right\" style=\"margin-right: 25px; margin-top: 5px;\"><input type=\"submit\" name=\"sublogin\" value=\"Login\" style=\"margin-top: 10px;\"></p>\n</form>\n</div>\n</div>\n<?\n }\n}", "public function index() {\r\n self::acceso();\r\n $this->view->ver('login.php'); \r\n }", "function print_html_header($title) {\n\tif ($title != \"Login\")\n\t\t$menu = make_menu_bs($title);\n\n\techo '\n<!DOCTYPE html>\n<html lang=\"en\">\n\t<head>\n\t <meta charset=\"utf-8\">\n\t <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">\n\t <title>'.$title.'</title>\n\t\t<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css\">\n\t\t<link rel=\"stylesheet\" href=\"css/style.css\">\n\t</head>\n\t<body>\n\t\t<div class=\"container\">\n\t\t\t'.$menu.'\n\t\t\t<div class=\"content\">\n\t';\n\tif ($title != \"Login\")\n\t\techo '<h1>'.$title.'</h1>';\n}", "function user()\n\t{\n\t\tJRequest::checkToken() or jexit( 'Invalid Token' );\n\n\t\tJRequest::setVar( 'view', 'auteur' );\n\t\tJRequest::setVar( 'layout', 'default' );\n\t\tJRequest::setVar('hidemainmenu', 1);\n\n\t\tparent::display();\n\t}", "function index()\n {\n // Check if there errors from the forms, and display them.\n $this->registry->template->loginSend = Util::checkExcistInSession($this->loginError);\n $this->registry->template->registerSend = Util::checkExcistInSession($this->registerError);\n\n // If the user is loggedIn show the logout button\n if ($this->registry->userAccount->isLogedIn()) {\n $this->registry->template->show('account-loggedin');\n } else {\n $this->registry->template->show('account');\n }\n }", "function _loginRedirect(){\r\n \t// send user to the login page\r\n \theader(\"Location:/index.php\");\r\n }", "function showLogin($page_name, $data)\n\t{\n\t\t$instance_name = & get_instance();\n\t\t$instance_name->load->view(\"admin/header_login\", $data);\n\t\t$instance_name->load->view(\"admin/login\", $data);\n\t}", "public function paml_back_to_login() {\n\t\techo '<a href=\"#login\" class=\"modal-login-nav\">' . __( 'Login', 'pressapps' ) . '</a>';\n\t}", "function login() {\n // Check is already a user is logged in or not.\n if (!isset ($_SESSION['user_id'])) {\n include('blog/site/VIEW/Login.php');\n }\n else {\n header(\"location: /index.php/User/home\");\n }\n }", "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}", "function header() {\n }", "function index() {\n $data['title'] = 'Login Admin';\n //membuat nama header yang ditampilkan pd form login\n $data['loginheader'] = 'Login';\n //membuat string gagal dimana nantinya digunakan untuk validasi\n $data['gagal'] = '';\n //meload view login\n $this->load->view('cobalogin', $data);\n }", "function header() {\n\t\techo '<div class=\"wrap\">';\n\t\tscreen_icon();\n\t\techo '<h2>化工产品目录CSV导入</h2>';\n\t}", "function displayHeader()\n\t{\n\t\t// output locator\n\t\t$this->displayLocator();\n\n\t\t// output message\n\t\tif($this->message)\n\t\t{\n\t\t\tilUtil::sendInfo($this->message);\n\t\t}\n\t\tilUtil::infoPanel();\n\n//\t\t$this->tpl->setTitleIcon(ilUtil::getImagePath(\"icon_pd_b.gif\"),\n//\t\t\t\"\");\n\t\t$this->tpl->setTitle($this->lng->txt(\"bookmarks\"));\n\t}", "function welcome_message_login()\n{\n\tglobal $SITEURL;\n\t$Feul = new Feul;\n\tif(isset($_SESSION['LoggedIn']))\n\t{\n\t\t$name = $_SESSION['Username'];\n\t\t//Display Welcome Message\n\t\t$welcome_box = '<div class=\"user_login_welcome_box_container\"><span class=\\\"user-login-welcome-label\\\">Добро пожаловать: </span>'.$name.'</div>';\n\n\t\t//Display Logout Link\n\t\t$logout_link = '<a href=\"'.$SITEURL.'?logout=yes\" class=\"user-login-logout-link\">Выйти</a>';\n\t\techo $Feul->getData('welcomebox').$welcome_box.$logout_link ;\n\t}\n}", "public function index() {\n\n\t\t//--------------------------Cargar variables del Metodo------------------------------ \t\n\n\t\t\t$titulo = 'SIC';\n\n\t\t//-----------------------------------------------------------------------------------\n\n\t\t\tlayout_view_login($titulo, $this->url); //Carga layout\n\n\t}", "public function index()\n {\n if (session()->get('logged_in')) {\n \techo render(HOME_PAGE, ['title' => 'Accueil']);\n }\n // Otherwise, the login page is displayed\n else $this->login();\n }", "public function login() {\n $this->load->view('header');\n $this->load->view('user_login');\n $this->load->view('footer');\n }", "function sprdh_custom_login_logo() {\n\techo '<style type=\"text/css\">\n\t h1{\n\t \twidth:213px !important;\n\t\tmargin:0 auto 30px !important;\n\t }\n h1 a { background-image:url(http://dev.sprdh.com/files/wordpress_dashboard/sprdh-logo-wordpress.png) !important;width:213px !important;height:80px !important; background-size: 100% 100% !important;}\t\n\t.login form{padding: 26px 24px 46px 0;}\n\t#login form p {float: left !important;\n\t margin-left: 24px !important;\n\t width: 258px !important;\n\t}\n\t.login form{\n\t\tfloat:left !important;\t\t\n\t}\n\t#login {\n\t width: 600px !important;\n\t\tpadding:60px 0 0 !important;\n\t\theight:450px;\t\t\n\t}\n\t.login #nav{\n\t\tfloat:left !important;\n\t}\n\t.login #backtoblog{\n\t\tfloat:right !important;\n\t}\n </style>';\n}", "function login()\n {\t \t\n \t$data['fal'] = $this->fal_front->login();\n \t$this->load->view($this->_container, $data); \n }", "function Header()\n\t{\n\t\t$this->cabecera_esp();\n\t\t$this->Ln();\n\t}", "function login() {\n \t$this->set('indata',$this->data);\n\t\tif(empty($this->data)){\n\t\t\t$this->pageTitle = 'Log in';\n\t\t\t$cookie = $this->Cookie->read('Auth.User');\n\t\t}\n }", "public function displayAdminPage() {\n\t\t if(!isset($_SESSION['userID'])) {\n\t\t \t//redirect\n\t\t \theader('Location:index.php?page=home');\n\t\t }\t\n\t\t if(!isset($_POST['logout'])) {\n\t\t\t$html = '<h2 class=\"redhead\">' . $_SESSION['firstName'] .' Page <br/> Welcome to your Account!</h2>';\t\n\n\t\t\treturn $html;\t\t \t\t\t\t\t\n\t\t} else {\n\t\t\t\t$this -> model -> processLogout();\t\t\t\t\t\n\t\t\t\theader('Location:index.php?page=login');\n\t\t}\n\t}", "function index()\r\n\t{\r\n\t\tif (is_logged_in_user()) {\r\n\t\t\tredirect('menu/index');\r\n\t\t}\r\n\t}", "public function index()\n\t{\n\t\t// echo \"tes\";\n\t\t$data = array(\n\t\t\t\"TITLE_TAB\" => \"USER LOGIN\",\n\t\t\t\"TITLE\" => \"SIGN IN\",\n\t\t);\n\n\t\t$this->load->view(LAYOUT_HEADER_SIGN, $data, FALSE);\n\t\t$this->load->view(\"login/index\", $data, FALSE);\n\t\t$this->load->view(LAYOUT_FOOTER_SIGN, $data, FALSE);\n\t}", "function loadInHeader() {\n $this->metaData();\n//\t\t$this->loadAddOns();\n $this->onHead(\"onHead\"); // call back to onHead in extensions things js, etc in head\n $this->onEditor(\"onHead\"); // only when login to admin, for fck to work??\n //If not in admin, blank initEditor\n if (!isset($_SESSION['name'])) { // not sure what this does??\n print \"<script type=\\\"text/javascript\\\">function initeditor(){}</script>\\n\";\n }\n }", "public function action_index() {\r\n\r\n\t$main_content = View::forge(\"account/simpleauth\");\r\n $main_sidebar = View::forge(\"vlog/sidebar\");\r\n\r\n\t$this->template->page_content = $main_content;\r\n $this->template->page_sidebar = $main_sidebar;\r\n }", "function displayHtmlHeader() {\n\t\tglobal $page;\n\t\t\n\t\techo \"<!DOCTYPE html5>\";\n\t\techo \"<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='fr'>\";\n\t\t\n\t\t\techo \"<head>\";\n\t\t\t\t\n\t\t\t\t//Encodage et zoom\n\t\t\t\techo \"<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\";\n\t\t\t\techo \"<meta name='viewport' content='width=device-width, initial-scale=1.0' />\";\n\t\t\t\techo \"<meta http-equiv='X-UA-Compatible' content='IE=edge' />\";\n\t\t\t\t\n\t\t\t\t//Titre de la page\n\t\t\t\techo \"<title>Gestion maintenances | Best Engines Inc.</title>\";\n\t\t\t\t\n\t\t\t\t//Description et auteur de la page\n\t\t\t\techo \"<meta name='description' content='Application de gestion des maintenances de la société Best Engines Inc.' />\";\n\t\t\t\techo \"<meta name='author' content='Best Engines Inc.' />\";\n\t\t\t\t\n\t\t\t\t//Fichiers CSS\n\t\t\t\techo \"<link href='config/css/bootstrap.min.css' rel='stylesheet' />\";\n\t\t\t\techo \"<link href='config/css/animate.css' rel='stylesheet' />\";\n\t\t\t\techo \"<link href='config/css/styles.css' rel='stylesheet' />\";\n\t\t\t\t\n\t\t\t\t//Formulaire d'authentification\n\t\t\t\tif($page == \"authentification\") {\n\t\t\t\t\techo \"<link rel='stylesheet' href='config/font-awesome/css/font-awesome.min.css' />\";\n\t\t\t\t\techo \"<link rel='stylesheet' href='config/css/authentification/form-elements.css' />\";\n\t\t\t\t\techo \"<link rel='stylesheet' href='config/css/authentification/style.css' />\";\n\t\t\t\t\t\n\t\t\t\t\techo \"<!--[if lt IE 9]>\";\n\t\t\t\t\t\techo \"<script src='https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js'></script>\";\n\t\t\t\t\t\techo \"<script src='https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js'></script>\";\n\t\t\t\t\techo \"<![endif]-->\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Font\n\t\t\t\techo \"<link rel='stylesheet' type='text/css' href='http://fonts.googleapis.com/css?family=Montserrat' />\";\n\t\t\t\t\n\t\t\t\t//Favicon\n\t\t\t\techo \"<link href='doc/img/favicon/favicon.png' rel='shortcut icon' />\";\n\n\t\t\techo \"</head>\";\t\t\t\n\t\t\techo \"<body>\";\n\t}", "static function displayLogInUser()\n {\n echo \"<div class='col-xs-6'><h1>Log Into Account</h1>\";\n echo \"<form role='form' method='post' action='login.php'>\";\n echo \"<label for='loginUser'>Username: </label>\";\n echo \"<input type='text' class='form-control' id='loginUser' name='usr' required>\";\n echo \"<label for='loginPass'>Password: </label>\";\n echo \"<input type='password' class='form-control' id='loginPass' name='pwd' required>\";\n echo \"<input type='hidden' name='action' value='login'><input type='submit' class='btn btn-default'>\";\n echo \"</form></div>\";\n }", "function is_log() {\n\tif (isset($_SESSION['login']) && $_SESSION['login']===TRUE) {\n\t} else {\n\t\theader('location:index.php');\n\t}\t\n}", "public function custom_login_logo() {\n\t\techo '<style type=\"text/css\">\n\t\th1 a { background-image: url('.get_bloginfo('template_directory').'/assets/img/logo.svg) !important;\n\t\t background-size: 100% !important;\n\t\t width: 100% !important;\n\t\t height: 125px !important;\n\t\t pointer-events: none;\n\t\t}\n\t\t</style>';\n\t}", "public function index(){\n $data['title'] = 'Login page';\n\n // Condition checking if the user exists.\n if (!$userExists)\n {\n //The user doesn't exist so change your page accordigly.\n $data['show'] = true;\n\n }\n else\n {\n //The user does exist so change your page accordigly.\n $data['show'] = false;\n \n }\n \n //load data in to view\n $data['head'] = 'login';\n $this->load->view('component', $data);\n \n }", "function login() \n\t{\n // Specify the navigation column's path so we can include it based\n // on the action being rendered\n \n \n // check for cookies and if set validate and redirect to corresponding page\n\t\t$this->viewData['navigationPath'] = $this->getNavigationPath('users');\n\t\t$this->renderWithTemplate('users/login', 'MemberPageBaseTemplate');\n\t\t\n }", "public function getShowLoginPage()\n {\n include(__DIR__.\"/../../001_pages/000_Site_Pages/001_login/login.php\"); \n }", "function Headerh($name) {\n\t\t$loginStatus = webShopGui::loginStatus();\n\t\t$loginPanel = webShopGui::loginPanel();\n\t\t$content = '<!DOCTYPE html>\n\t\t\t\t\t<html>\n\t\t\t\t\t<head>\n\t\t\t\t\t\t<title>'.$name.'</title>\n\t\t\t\t\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"' . CSSDIR . 'style.css' .'\" />\n\t\t\t\t\t\t<meta charset=\"utf-8\" />\n\t\t\t\t\t</head>\n\t\t\t\t\t<body>\n\n\t\t\t\t\t<!-- Start Wrapper -->\n\t\t\t\t\t<div id=\"wrapper\">\n\n\t\t\t\t\t<header>\n\t\t\t\t\t\t<div id=\"webshopname\"><a href=\"index.php\"><h1>'.$name.'</h1></a></div>\n\t\t\t\t\t\t<div id=\"userinfo\">'.$loginStatus.' | '.$loginPanel.' | <a href=\"cart.php\">Handlekurv ('.count($_SESSION['cart']).')</div>\n\t\t\t\t\t</header>';\n\t\t\n\t\treturn $content;\n\t}", "public function index()\n\t{\n $data['header']['configured'] = get_configured_status();\n\n if(is_logged_in()) {\n \n } else {\n //Set the header as 401 to indicate that user not logged in\n }\n\n $this->load->view('base', $data);\n\t}", "public function login_view()\n {\n $this->load->view(\"templates/header\");\n $this->load->view(\"pages/login.php\");\n $this->load->view(\"templates/footer\");\n }", "public function add_login_trap( ) {\n\t\techo $this->get_decoy_fields();\n\t}", "function action_track() {\n if(model_user::userLoggedIn()) {\n // Include view for this page.\n @include_once APP_PATH . 'view/track_page.tpl.php';\n } else {\n header('Location: /home/login');\n }\n }", "public function formLogin(){\n $user = $this->model->connectFromCookie();\n if ($user) {\n header('location:index.php?controller=dashboard');\n } else {\n $this->view->addFormLogin();\n }\n }", "function show_register_message_on_login()\n {\n echo '<div>Si no tienes cuenta <a href=\"'.get_permalink(ConstantBD::BD_POST_SIGNUP).'\">registrate</a> en un solo paso. </div>';\n }", "function adminHeader()\n {\n return \"\";\n }", "function in_admin_header()\n {\n }", "protected function display_login() {\r\n // Get language vars\r\n global $MESSAGE;\r\n global $MENU;\r\n global $TEXT;\r\n\r\n $Trans = $GLOBALS['oTrans'];\r\n $ThemeName = (defined('DEFAULT_THEME')?DEFAULT_THEME:'DefaultTheme');\r\n $Trans->enableAddon('templates\\\\'.$ThemeName);\r\n $aLang = $Trans->getLangArray();\r\n // If attemps more than allowed, warn the user\r\n if($this->get_session('ATTEMPS') > $this->max_attemps) {\r\n $this->warn();\r\n }\r\n // Show the login form\r\n if($this->frontend != true) {\r\n// require_once(WB_PATH.'/include/phplib/template.inc');\r\n $aWebsiteTitle['value'] = WEBSITE_TITLE;\r\n $sql = 'SELECT `value` FROM `'.TABLE_PREFIX.'settings` '\r\n . 'WHERE `name`=\\'website_title\\'';\r\n if ($get_title = $this->oDb->query($sql)){\r\n $aWebsiteTitle= $get_title->fetchRow( MYSQLI_ASSOC );\r\n }\r\n // Setup template object, parse vars to it, then parse it\r\n $template = new Template(dirname($this->correct_theme_source($this->template_file)));\r\n $template->set_file('page', $this->template_file);\r\n $template->set_block('page', 'mainBlock', 'main');\r\n $template->set_var('DISPLAY_REMEMBER_ME', ($this->remember_me_option ? '' : 'display: none;'));\r\n\r\n $template->set_var(\r\n array(\r\n 'ACTION_URL' => $this->login_url,\r\n 'ATTEMPS' => $this->get_session('ATTEMPS'),\r\n 'USERNAME' => $this->username,\r\n 'USERNAME_FIELDNAME' => $this->username_fieldname,\r\n 'PASSWORD_FIELDNAME' => $this->password_fieldname,\r\n 'MESSAGE' => $this->message,\r\n 'INTERFACE_DIR_URL' => ADMIN_URL.'/interface',\r\n 'MAX_USERNAME_LEN' => $this->max_username_len,\r\n 'MAX_PASSWORD_LEN' => $this->max_password_len,\r\n 'ADMIN_URL' => ADMIN_URL,\r\n 'WB_URL' => WB_URL,\r\n 'URL' => $this->redirect_url,\r\n 'THEME_URL' => THEME_URL,\r\n 'VERSION' => VERSION,\r\n 'REVISION' => REVISION,\r\n 'LANGUAGE' => strtolower(LANGUAGE),\r\n 'FORGOTTEN_DETAILS_APP' => $this->forgotten_details_app,\r\n 'WEBSITE_TITLE' => ($aWebsiteTitle['value']),\r\n 'TEXT_ADMINISTRATION' => $TEXT['ADMINISTRATION'],\r\n// 'TEXT_FORGOTTEN_DETAILS' => $Trans->TEXT_FORGOTTEN_DETAILS,\r\n 'TEXT_USERNAME' => $TEXT['USERNAME'],\r\n 'TEXT_PASSWORD' => $TEXT['PASSWORD'],\r\n 'TEXT_REMEMBER_ME' => $TEXT['REMEMBER_ME'],\r\n 'TEXT_LOGIN' => $TEXT['LOGIN'],\r\n 'TEXT_SAVE' => $TEXT['SAVE'],\r\n 'TEXT_RESET' => $TEXT['RESET'],\r\n 'TEXT_HOME' => $TEXT['HOME'],\r\n 'PAGES_DIRECTORY' => PAGES_DIRECTORY,\r\n 'SECTION_LOGIN' => $MENU['LOGIN'],\r\n 'LOGIN_DISPLAY_HIDDEN' => !$this->is_authenticated() ? 'hidden' : '',\r\n 'LOGIN_DISPLAY_NONE' => !$this->is_authenticated() ? 'none' : '',\r\n 'LOGIN_LINK' => $_SERVER['SCRIPT_NAME'],\r\n 'LOGIN_ICON' => 'login',\r\n 'START_ICON' => 'blank',\r\n 'URL_HELP' => 'http://wiki.websitebaker.org/',\r\n )\r\n );\r\n $template->set_var($aLang);\r\n $template->set_var('CHARSET', (defined('DEFAULT_CHARSET') ? DEFAULT_CHARSET : 'utf-8'));\r\n $template->parse('main', 'mainBlock', false);\r\n $template->pparse('output', 'page');\r\n }\r\n }", "public function login(){\n \t\t//TODO redirect if user already logged in\n \t\t//TODO Seut up a form\n \t\t//TODO Try to log in\n \t\t//TODO Redirect\n \t\t//TODO Error message\n \t\t//TODO Set subview and load layout\n\n \t}", "static function header() {\n $url = $GLOBALS[\"path\"] ? $GLOBALS[\"path\"] : \"http://localhost:8000/\";\n echo '<script src=\"'.$url.'pontoon.js\"></script>'.\"\\n\";\n }" ]
[ "0.69826096", "0.69529724", "0.6934991", "0.6876012", "0.6820033", "0.67665845", "0.6732838", "0.6713444", "0.6688799", "0.6622218", "0.65974593", "0.65447253", "0.65436006", "0.6526352", "0.6514722", "0.6478225", "0.6462094", "0.64499897", "0.6421325", "0.6416582", "0.64125794", "0.6376656", "0.63544923", "0.6346068", "0.6340973", "0.63299197", "0.632931", "0.6319667", "0.6313062", "0.6289848", "0.628607", "0.62757623", "0.62632966", "0.62622255", "0.62620443", "0.6254041", "0.62538445", "0.6252739", "0.62465405", "0.62291545", "0.62250096", "0.62191653", "0.62112457", "0.6208965", "0.6207221", "0.6195762", "0.6195451", "0.6188016", "0.6182325", "0.6181589", "0.6171964", "0.6171818", "0.6170234", "0.6167455", "0.61635303", "0.61617655", "0.6149491", "0.6149114", "0.61467844", "0.6141923", "0.61404735", "0.61349845", "0.61305", "0.61261886", "0.6121257", "0.6109071", "0.6108858", "0.61026096", "0.61014676", "0.61000013", "0.60966843", "0.6096202", "0.6092439", "0.6090881", "0.6090387", "0.60856855", "0.6082051", "0.6078431", "0.6073236", "0.6072255", "0.6072245", "0.60658616", "0.60633594", "0.6061384", "0.6059853", "0.6059119", "0.6054749", "0.60526466", "0.6052343", "0.60485417", "0.6043272", "0.6035885", "0.60330373", "0.6025238", "0.60208493", "0.6019925", "0.60153085", "0.60101116", "0.6005488", "0.60010546", "0.5992456" ]
0.0
-1
Display socialpart in header.php
function circle_menu_social() { get_template_part( 'template-parts/menu-social' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function thb_social_nav() {\n\t\tthb_get_template_part( 'partials/partial-socials.php' );\n\t}", "public function display_header() {\n\t\tif ( $this->smart ) {\n?>\n<script type=\"text/javascript\" src=\"//vk.com/js/api/share.js?9\" charset=\"windows-1251\"></script>\n<style type=\"text/css\">\n\t.share-vkcom tr td {\n\t\tpadding: 0 !important;\n\t}\n</style>\n<?php\n\t\t} else {\n?>\n<style type=\"text/css\">\n\t.sd-social-icon-text li.share-vkcom a.sd-button > span {\n\t\tbackground: url('<?php echo plugins_url( 'vk.png', __FILE__ ); ?>') no-repeat;\n\t\tpadding-left: 20px;\n\t}\n\n\t.sd-social-icon .sd-content ul li[class*='share-'].share-vkcom a.sd-button {\n\t\tbackground: #2B587A url('<?php echo plugins_url( 'vk-white.png', __FILE__ ); ?>') no-repeat;\n\t\tcolor: #fff !important;\n\t\tpadding: 16px;\n\t\ttop: 12px;\n\t}\n</style>\n<?php\n\t\t}\n\t}", "function display_footer_social()\n {\n include 'assets/partials/footer-social.php';\n }", "function circle_display_single_sharing() {\n\tif ( ! circle_option( 'display_single_sharing' ) ) {\n\t\treturn;\n\t}\n\tget_template_part( 'template-parts/post-social-sharing' );\n}", "function quadro_social_icons_header() {\n\tquadro_social_icons('social_header_display', 'header-social-icons', 'header_icons_scheme', 'header_icons_color_type');\n}", "function display_header() {}", "function nsh_social() {\n\n\t$social = nsh_get_social();\n\n\tif ( $social ) {\n\t\techo $social;\n\t}\n\n}", "function circle_footer_social() {\n\tget_template_part( 'template-parts/footer-social' );\n}", "function display_portal_header()\r\n {\r\n Display :: header(null);\r\n }", "protected function getHeaderPart()\n {\n //$logo_url = ot_get_option('header_logo', 'img/logo.jpg');\n ?>\n <?= $this->version151101() ?>\n <?= $this->getBannerPart() ?>\n <?php\n }", "function segments_page_header_after() {\n get_template_part( 'templates/content', 'user' );\n}", "function circle_header_content() {\n\tget_template_part( 'template-parts/header-content' );\n}", "function storefront_footer_social_media()\n {\n include('footer_social_media.php');\n }", "function genesisawesome_do_before_header() {\n\n\techo '<div id=\"ga-topbar\">';\n\t\techo '<div class=\"wrap\">';\n\n\t\t\techo '<ul id=\"social-profiles\">';\n\t\t\t$soc_urls = array(\n\t\t\t\t'rssfeed_url' => __( 'Rss Feeds', 'genesisawesome' ),\n\t\t\t\t'twitter_url' => __( 'Twitter', 'genesisawesome' ),\n\t\t\t\t'facebook_url' => __( 'Facebook', 'genesisawesome' ),\n\t\t\t\t'dribbble_url' => __( 'Dribbble', 'genesisawesome' ),\n\t\t\t);\n\t\t\tforeach ( $soc_urls as $soc_opt => $soc_name ) {\n\n\t\t\t\tif ( ! $soc_url = genesis_get_option( $soc_opt, GA_CHILDTHEME_FIELD ) )\n\t\t\t\t\tcontinue;\n\t\t\t\t?>\n\t\t\t\t<li class='<?php echo sanitize_title( $soc_name );?>'>\n\t\t\t\t\t<a href='<?php echo esc_url( $soc_url ) ?>' target='_blank' title='<?php echo esc_attr( $soc_name );?>'><?php echo esc_attr( $soc_name );?></a>\n\t\t\t\t</li>\n\t\t\t\t<?php\n\n\t\t\t}\n\t\t\techo '</ul>';\n\t\t\t\n\t\t\tget_search_form();\n\n\t\techo '</div>';\n\techo '</div>';\n\n}", "function displayHeader()\n\t{\n\t\t// output locator\n\t\t$this->displayLocator();\n\n\t\t// output message\n\t\tif($this->message)\n\t\t{\n\t\t\tilUtil::sendInfo($this->message);\n\t\t}\n\t\tilUtil::infoPanel();\n\n//\t\t$this->tpl->setTitleIcon(ilUtil::getImagePath(\"icon_pd_b.gif\"),\n//\t\t\t\"\");\n\t\t$this->tpl->setTitle($this->lng->txt(\"bookmarks\"));\n\t}", "function ejo_social_share() {\n ?>\n <aside class=\"social-share\">\n <h3>Deel dit bericht</h3>\n <a target=\"_blank\" title=\"Share on Twitter\" href=\"https://twitter.com/share?url=<?php echo get_permalink(); ?>\">Twitter</a>\n <a target=\"_blank\" title=\"Share on Facebook\" href=\"https://www.facebook.com/sharer/sharer.php?<?php echo get_permalink(); ?>\">Facebook</a>\n </aside>\n <?php\n}", "function getDisplay() {\n\t\t$content = \"<h3>\" . $this->widgetTitle . \"</h3>\";\n\n\t\tif (!empty($this->facebookUrl) && \n\t\t\ttrim($this->facebookUrl) !== '') {\n\t\t\t$content .= '<span class=\"social-pages-icon social-page-facebook\"><a href=\"' . $this->facebookUrl . '\" ><i class=\"fa fa-facebook\"></i></a></span>';\n\t\t}\n\t\tif (!empty($this->twitterUrl) && \n\t\t\t\ttrim($this->twitterUrl) !== '') {\n\t\t\t$content .= '<span class=\"social-pages-icon social-page-twitter\"><a href=\"' . $this->twitterUrl . '\" ><i class=\"fa fa-twitter\"></i></a></span>';\n\t\t}\n\t\tif (!empty($this->googleplusUrl) && \n\t\t\ttrim($this->googleplusUrl) !== '') {\n\t\t\t$content .= '<span class=\"social-pages-icon social-page-google\"><a href=\"' . $this->googleplusUrl . '\" ><i class=\"fa fa-google\"></i></a></span>';\n\t\t}\n\n\t\treturn $content;\n\t}", "function sp_author_box($avatar = true , $social = true ){\n\tif( $avatar ) : ?>\n\t<div class=\"author-avatar\">\n\t\t<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'MFW_author_bio_avatar_size', 75 ) ); ?>\n\t</div><!-- #author-avatar -->\n\t<?php endif; ?>\n\t\t<div class=\"author-description\">\n\t\t\t<?php the_author_meta( 'description' ); ?>\n\t\t</div><!-- #author-description -->\n\t<?php if( $social ) :\t?>\t\n\t\t<div class=\"author-social\">\n\t\t\t<?php if ( get_the_author_meta( 'url' ) ) : ?>\n\t\t\t<a class=\"ttip\" href=\"<?php the_author_meta( 'url' ); ?>\" title=\"<?php the_author_meta( 'display_name' ); ?><?php _e( \" 's site\", 'sptheme' ); ?>\"><img src=\"<?php echo get_template_directory_uri(); ?>/images/socialicons/site.png\" alt=\"\" /></a>\n\t\t\t<?php endif ?>\t\n\t\t\t<?php if ( get_the_author_meta( 'twitter' ) ) : ?>\n\t\t\t<a class=\"ttip\" href=\"http://twitter.com/<?php the_author_meta( 'twitter' ); ?>\" title=\"<?php the_author_meta( 'display_name' ); ?><?php _e( ' on Twitter', 'sptheme' ); ?>\"><img src=\"<?php echo get_template_directory_uri(); ?>/images/socialicons/twitter.png\" alt=\"\" /></a>\n\t\t\t<?php endif ?>\t\n\t\t\t<?php if ( get_the_author_meta( 'facebook' ) ) : ?>\n\t\t\t<a class=\"ttip\" href=\"<?php the_author_meta( 'facebook' ); ?>\" title=\"<?php the_author_meta( 'display_name' ); ?> <?php _e( ' on Facebook', 'sptheme' ); ?>\"><img src=\"<?php echo get_template_directory_uri(); ?>/images/socialicons/facebook.png\" alt=\"\" /></a>\n\t\t\t<?php endif ?>\n\t\t\t<?php if ( get_the_author_meta( 'google' ) ) : ?>\n\t\t\t<a class=\"ttip\" href=\"<?php the_author_meta( 'google' ); ?>\" title=\"<?php the_author_meta( 'display_name' ); ?> <?php _e( ' on Google+', 'sptheme' ); ?>\"><img src=\"<?php echo get_template_directory_uri(); ?>/images/socialicons/google_plus.png\" alt=\"\" /></a>\n\t\t\t<?php endif ?>\t\n\t\t\t<?php if ( get_the_author_meta( 'linkedin' ) ) : ?>\n\t\t\t<a class=\"ttip\" href=\"<?php the_author_meta( 'linkedin' ); ?>\" title=\"<?php the_author_meta( 'display_name' ); ?> <?php _e( ' on Linkedin', 'sptheme' ); ?>\"><img src=\"<?php echo get_template_directory_uri(); ?>/images/socialicons/linkedin.png\" alt=\"\" /></a>\n\t\t\t<?php endif ?>\t\t\t\t\n\t\t\t<?php if ( get_the_author_meta( 'flickr' ) ) : ?>\n\t\t\t<a class=\"ttip\" href=\"<?php the_author_meta( 'flickr' ); ?>\" title=\"<?php the_author_meta( 'display_name' ); ?><?php _e( ' on Flickr', 'sptheme' ); ?>\"><img src=\"<?php echo get_template_directory_uri(); ?>/images/socialicons/flickr.png\" alt=\"\" /></a>\n\t\t\t<?php endif ?>\t\n\t\t\t<?php if ( get_the_author_meta( 'youtube' ) ) : ?>\n\t\t\t<a class=\"ttip\" href=\"<?php the_author_meta( 'youtube' ); ?>\" title=\"<?php the_author_meta( 'display_name' ); ?><?php _e( ' on YouTube', 'sptheme' ); ?>\"><img src=\"<?php echo get_template_directory_uri(); ?>/images/socialicons/youtube.png\" alt=\"\" /></a>\n\t\t\t<?php endif ?>\n\t\t\t<?php if ( get_the_author_meta( 'pinterest' ) ) : ?>\n\t\t\t<a class=\"ttip\" href=\"<?php the_author_meta( 'pinterest' ); ?>\" title=\"<?php the_author_meta( 'display_name' ); ?><?php _e( ' on Pinterest', 'sptheme' ); ?>\"><img src=\"<?php echo get_template_directory_uri(); ?>/images/socialicons/pinterest.png\" alt=\"\" /></a>\n\t\t\t<?php endif ?>\n\n\t\t</div>\n\t<?php endif; ?>\n\t<div class=\"clear\"></div>\n\t<?php\n}", "function sloodle_print_header()\r\n {\r\n global $CFG;\r\n $navigation = \"<a href=\\\"{$CFG->wwwroot}/mod/sloodle/view.php?_type=course&id={$this->course->id}\\\">\".get_string('courseconfig', 'sloodle').\"</a>\";\r\n\r\n\r\n sloodle_print_header_simple(get_string('courseconfig','sloodle'), \"&nbsp;\", $navigation, \"\", \"\", true, '', navmenu($this->course));\r\n }", "function siteorigin_share_render( $settings = array() ) {\n\t$settings = wp_parse_args( $settings, array(\n\t\t'width' => 25,\n\t\t'like_text' => __( 'like', 'vantage' ),\n\t\t'twitter' => ''\n\t) );\n\n\n\n\tstatic $facebook_loaded = false;\n\tif(!$facebook_loaded) {\n\t\t?>\n\t\t<div id=\"fb-root\"></div>\n\t\t<script type=\"text/javascript\">\n\t\t\t(function(d, s, id) {\n\t\t var js, fjs = d.getElementsByTagName(s)[0];\n\t\t if (d.getElementById(id)) return;\n\t\t js = d.createElement(s); js.id = id;\n\t\t js.src = \"//connect.facebook.net/en_GB/all.js#xfbml=1\";\n\t\t fjs.parentNode.insertBefore(js, fjs);\n\t\t}(document, 'script', 'facebook-jssdk'));\n\t\t</script>\n\t\t<?php\n\t\t$facebook_loaded = true;\n\t}\n\n\tstatic $google_loaded = false;\n\tif(!$google_loaded) {\n\t\t?>\n\t\t<script type=\"text/javascript\">\n\t\t\t// Google Plus One\n\t\t\t(function () {\n\t\t\t\tvar po = document.createElement( 'script' );\n\t\t\t\tpo.type = 'text/javascript';\n\t\t\t\tpo.async = true;\n\t\t\t\tpo.src = 'https://apis.google.com/js/plusone.js';\n\t\t\t\tvar s = document.getElementsByTagName( 'script' )[0];\n\t\t\t\ts.parentNode.insertBefore( po, s );\n\t\t\t})();\n\t\t</script>\n\t\t<?php\n\t\t$google_loaded = true;\n\t}\n\n\tstatic $linkedin_loaded = false;\n\tif(!$linkedin_loaded) {\n\t\t?>\n\t\t<script src=\"//platform.linkedin.com/in.js\" type=\"text/javascript\"> lang: en_US</script>\n\t\t<?php\n\t\t$linkedin_loaded = true;\n\t}\n\n\t?>\n\t<ul class=\"share-buttons\">\n\t\t<li class=\"network facebook\" style=\"width:<?php echo intval( $settings['width'] ) ?>%\">\n\n\t\t\t<div\n\t\t\t\tclass=\"fb-like\"\n\t\t\t\tdata-href=\"<?php echo get_permalink() ?>\"\n\t\t\t\tdata-width=\"<?php echo intval( $settings['width'] ) ?>\"\n\t\t\t\tdata-layout=\"button_count\"\n\t\t\t\tdata-send=\"false\"\n\t\t\t\tdata-height=\"21\"\n\t\t\t\tdata-show-faces=\"false\"\n\t\t\t\tdata-action=\"<?php echo esc_attr($settings['like_text']) ?>\"></div>\n\t\t</li>\n\n\t\t<li class=\"network twitter\" style=\"width:<?php echo intval( $settings['width'] ) ?>%\">\n\t\t\t<?php\n\t\t\t$related = array();\n\t\t\t$related[ ] = $settings['twitter'];\n\t\t\t$twitter_url = add_query_arg( array(\n\t\t\t\t'url' => get_permalink(),\n\t\t\t\t'via' => siteorigin_setting( 'social_twitter' ),\n\t\t\t\t'text' => get_the_title(),\n\t\t\t\t'related' => implode( ',', $related )\n\t\t\t), 'http' . (is_ssl() ? 's' : '' ) . '://platform.twitter.com/widgets/tweet_button.html' );\n\n\t\t\t?>\n\t\t\t<iframe allowtransparency=\"true\" frameborder=\"0\" scrolling=\"no\" src=\"<?php echo esc_attr( $twitter_url ) ?>\" style=\"height:20px;\"></iframe>\n\t\t</li>\n\n\t\t<li class=\"network plusone\" style=\"width:<?php echo intval( $settings['width'] )-4 ?>%\">\n\t\t\t<div class=\"g-plusone\" data-size=\"medium\" data-width=\"160\"></div>\n\t\t</li>\n\n\t\t<li class=\"network linkedin\" style=\"width:<?php echo intval( $settings['width'] )+4 ?>%;\">\n\t\t\t<script type=\"IN/Share\" data-counter=\"right\"></script>\n\t\t</li>\n\t</ul>\n\t<?php\n}", "function kickstart_footer_social() {\n\tgenesis_widget_area( 'footer-social', array(\n\t\t'before' => '<section class=\"footer-social\"><div class=\"wrap\">',\n\t\t'after' => '</div></section>',\n\t) );\n}", "function emc_sharing_display() {\r\n\r\n\tif ( class_exists( 'Jetpack', false ) ) {\r\n\t\t$jetpack_active_modules = get_option('jetpack_active_modules');\r\n\t\tif ( $jetpack_active_modules && in_array( 'sharedaddy', $jetpack_active_modules ) ) {\r\n\t\t\techo sharing_display();\r\n\t\t\t?>\r\n\t\t\t<!--<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:</h3><div class=\"sd-content\"><ul><li class=\"share-facebook\"><a rel=\"nofollow\" class=\"share-facebook sd-button share-icon\" href=\"http://local.earlymath.erikson.edu/new-study-differentiating-works/?share=facebook\" title=\"Share on Facebook\" id=\"sharing-facebook-6199\"><span>Facebook</span></a></li><li class=\"share-twitter\"><a rel=\"nofollow\" class=\"share-twitter sd-button share-icon\" href=\"http://local.earlymath.erikson.edu/new-study-differentiating-works/?share=twitter\" title=\"Click to share on Twitter\" id=\"sharing-twitter-6199\"><span>Twitter</span></a></li><li class=\"share-pinterest\"><a rel=\"nofollow\" class=\"share-pinterest sd-button share-icon\" href=\"http://local.earlymath.erikson.edu/new-study-differentiating-works/?share=pinterest\" title=\"Click to share on Pinterest\"><span>Pinterest</span></a></li><li class=\"share-google-plus-1\"><a rel=\"nofollow\" class=\"share-google-plus-1 sd-button share-icon\" href=\"http://local.earlymath.erikson.edu/new-study-differentiating-works/?share=google-plus-1\" title=\"Click to share on Google+\" id=\"sharing-google-6199\"><span>Google +1</span></a></li><li class=\"share-email\"><a rel=\"nofollow\" class=\"share-email sd-button share-icon\" href=\"http://local.earlymath.erikson.edu/new-study-differentiating-works/?share=email\" title=\"Click to email this to a friend\"><span>Email</span></a></li><li class=\"share-print\"><a rel=\"nofollow\" class=\"share-print sd-button share-icon\" href=\"http://local.earlymath.erikson.edu/new-study-differentiating-works/#print\" title=\"Click to print\"><span>Print</span></a></li><li class=\"share-end\"></li></ul></div></div></div>-->\r\n\t\t\t<?php\r\n\t\t}\r\n\t}\r\n\r\n}", "function loadInHeader() {\n $this->metaData();\n//\t\t$this->loadAddOns();\n $this->onHead(\"onHead\"); // call back to onHead in extensions things js, etc in head\n $this->onEditor(\"onHead\"); // only when login to admin, for fck to work??\n //If not in admin, blank initEditor\n if (!isset($_SESSION['name'])) { // not sure what this does??\n print \"<script type=\\\"text/javascript\\\">function initeditor(){}</script>\\n\";\n }\n }", "public function social() {\n\t\t?>\n\t\t<p>\n\t\t<div class=\"g-plusone\" data-size=\"medium\" data-href=\"http://wp-buddy.com/products/plugins/google-drive-as-wordpress-cdn-plugin/\"></div>\n\t\t</p>\n\n\t\t<script type=\"text/javascript\">\n\t\t\t(function () {\n\t\t\t\tvar po = document.createElement( 'script' );\n\t\t\t\tpo.type = 'text/javascript';\n\t\t\t\tpo.async = true;\n\t\t\t\tpo.src = 'https://apis.google.com/js/plusone.js';\n\t\t\t\tvar s = document.getElementsByTagName( 'script' )[0];\n\t\t\t\ts.parentNode.insertBefore( po, s );\n\t\t\t})();\n\t\t</script>\n\n\t\t<p>\n\t\t\t<a href=\"https://twitter.com/share\" class=\"twitter-share-button\" data-url=\"http://wp-buddy.com/products/plugins/google-drive-as-wordpress-cdn-plugin/\" data-text=\"Check out the Google Drive as CDN WordPress Plugin\" data-related=\"wp_buddy\">Tweet</a>\n\t\t</p>\n\t\t<script>!function ( d, s, id ) {\n\t\t\t\tvar js, fjs = d.getElementsByTagName( s )[0];\n\t\t\t\tif ( !d.getElementById( id ) ) {\n\t\t\t\t\tjs = d.createElement( s );\n\t\t\t\t\tjs.id = id;\n\t\t\t\t\tjs.src = \"//platform.twitter.com/widgets.js\";\n\t\t\t\t\tfjs.parentNode.insertBefore( js, fjs );\n\t\t\t\t}\n\t\t\t}( document, \"script\", \"twitter-wjs\" );</script>\n\n\t\t<p>\n\t\t\t<iframe src=\"//www.facebook.com/plugins/like.php?href=<?php echo urlencode( 'http://wp-buddy.com/products/plugins/google-drive-as-wordpress-cdn-plugin/' ); ?>&amp;send=false&amp;layout=button_count&amp;width=150&amp;show_faces=false&amp;font&amp;colorscheme=light&amp;action=like&amp;height=21\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:150px; height:21px;\" allowTransparency=\"true\"></iframe>\n\t\t</p>\n\t<?php\n\t}", "public function displayFastSocialSharing($content = null)\n {\n global $post;\n\n // Get current page URL\n $fssURL = urlencode(get_permalink());\n\n // Get current page title\n $fssTitle = str_replace(' ', '%20', get_the_title());\n\n // Get Post Thumbnail for pinterest\n //$fssThumbnail = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full');\n if (is_page() || is_single()) {\n $fssThumbnail = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full');\n } else {\n $fssThumbnail[0] = '';\n }\n\n // Construct sharing URL without using any script\n $twitterURL = 'https://twitter.com/intent/tweet?text='.$fssTitle.'&amp;url='.$fssURL;\n $facebookURL = 'https://www.facebook.com/sharer/sharer.php?u='.$fssURL;\n $googleURL = 'https://plus.google.com/share?url='.$fssURL;\n //$bufferURL = 'https://bufferapp.com/add?url='.$fssURL.'&amp;text='.$fssTitle;\n //$whatsappURL = 'whatsapp://send?text='.$fssTitle . ' ' . $fssURL;\n //$linkedInURL = 'https://www.linkedin.com/shareArticle?mini=true&url='.$fssURL.'&amp;title='.$fssTitle;\n $pinterestURL = 'https://pinterest.com/pin/create/button/?url='.$fssURL.'&amp;media='.$fssThumbnail[0].'&amp;description='.$fssTitle;\n $emailURL = 'mailto:?&subject='.$fssTitle.'&body='.$fssURL;\n\n // Add sharing button at the end of page/page content\n $content .= '<div class=\"fss-social\">';\n\n //$content .= '<h5>SHARE ON</h5> <a class=\"fss-link fss-twitter\" href=\"'. $twitterURL .'\" target=\"_blank\">Twitter</a>';\n //$content .= '<a class=\"fss-link fss-facebook\" href=\"'.$facebookURL.'\" target=\"_blank\">Facebook</a>';\n //$content .= '<a class=\"fss-link fss-whatsapp\" href=\"'.$whatsappURL.'\" target=\"_blank\">WhatsApp</a>';\n //$content .= '<a class=\"fss-link fss-googleplus\" href=\"'.$googleURL.'\" target=\"_blank\">Google+</a>';\n //$content .= '<a class=\"fss-link fss-buffer\" href=\"'.$bufferURL.'\" target=\"_blank\">Buffer</a>';\n //$content .= '<a class=\"fss-link fss-linkedin\" href=\"'.$linkedInURL.'\" target=\"_blank\">LinkedIn</a>';\n //$content .= '<a class=\"fss-link fss-pinterest\" href=\"'.$pinterestURL.'\" data-pin-custom=\"true\" target=\"_blank\">Pin It</a>';\n\n $content .= '<h5>SHARE ON</h5><a class=\"fss-link fss-facebook\" href=\"'.$facebookURL.'\" target=\"_blank\"></a>';\n $content .= '<a class=\"fss-link fss-twitter\" href=\"'. $twitterURL .'\" target=\"_blank\"></a>';\n $content .= '<a class=\"fss-link fss-googleplus\" href=\"'.$googleURL.'\" target=\"_blank\"></a>';\n $content .= '<a class=\"fss-link fss-pinterest\" href=\"'.$pinterestURL.'\" data-pin-custom=\"true\" target=\"_blank\"></a>';\n $content .= '<a class=\"fss-link fss-email\" href=\"'.$emailURL.'\" target=\"_blank\"></a>';\n $content .= '</div>';\n\n return $content;\n }", "function dizzy_social_shortcode( ) {\n\t ob_start();\n\techo '<div class=\"social\">';\n//Facebook\t\nif (get_theme_mod('fb_social_setting')) {\n\techo '<a href=\"';\n\techo get_theme_mod( 'fb_social_setting', '' ); \n\techo '\" title=\"Like Us On Facebook\" target=\"_blank\"><i class=\"fab fa-facebook-f\"></i></a>';\n}\n//Instagram\t\nif (get_theme_mod('ig_social_setting')) {\n\techo '<a href=\"';\n\techo get_theme_mod( 'ig_social_setting', '' ); \n\techo '\" title=\"Follow Us On Instagram\" target=\"_blank\"><i class=\"fab fa-instagram\"></i></a>';\n}\n//Twitter\nif (get_theme_mod('tw_social_setting')) {\n\techo '<a href=\"';\n\techo get_theme_mod( 'tw_social_setting', '' ); \n\techo '\" title=\"Follow Us On Twitter\" target=\"_blank\"><i class=\"fab fa-twitter\"></i></a>';\n}\n//Google Plus\nif (get_theme_mod('gp_social_setting')) {\n\techo '<a href=\"';\n\techo get_theme_mod( 'gp_social_setting', '' ); \n\techo '\" rel=\"publisher author\" title=\"Connect With Us On Google +\" target=\"_blank\"><i class=\"fab fa-google-plus-g\"></i></a>';\n}\n//YouTube\nif (get_theme_mod('yt_social_setting')) {\n\techo '<a href=\"';\n\techo get_theme_mod( 'yt_social_setting', '' ); \n\techo '\" rel=\"publisher author\" title=\"Watch Us On YouTube\" target=\"_blank\"><i class=\"fab fa-youtube\"></i></a>';\n}\n//Linked In\nif (get_theme_mod('li_social_setting')) {\n\techo '<a href=\"';\n\techo get_theme_mod( 'li_social_setting', '' ); \n\techo '\" title=\"Connect on LinkedIn\" target=\"_blank\"><i class=\"fab fa-linkedin\"></i></a>';\n}\n//Yelp\nif (get_theme_mod('yl_social_setting')) {\n\techo '<a href=\"';\n\techo get_theme_mod( 'yl_social_setting', '' ); \n\techo '\" title=\"Check Us Out On Yelp!\" target=\"_blank\"><i class=\"fab fa-yelp\"></i></a>';\n}\n//Avvo\nif (get_theme_mod('av_social_setting')) {\n\techo '<a href=\"';\n\techo get_theme_mod( 'av_social_setting', '' ); \n\techo '\" title=\"View My Profile On Avvo\" target=\"_blank\"><img src=\"https://d17vkztfo54i4d.cloudfront.net/wp-content/uploads/sites/22/2015/04/avvo-logo-bug-150x150.png\"/></a>';\n}\necho '</div><!--Social Icons-->';\n\t$myvariable = ob_get_clean();\n return $myvariable;\n}", "function insert_fb_in_head() {\n\tglobal $post;\n\tif ( !is_singular()) {//if it is not a post or a page\n\t\treturn;\n } else {\n $tf_url = get_permalink();\n $tf_title = get_the_title();\n \n if( custom_field_excerpt() ):\n $tf_desc = wp_strip_all_tags(custom_field_excerpt());\n elseif( custom_field_excerpt2() ):\n $tf_desc = wp_strip_all_tags(custom_field_excerpt2());\n elseif( custom_field_excerpt3() ):\n $tf_desc = wp_strip_all_tags(custom_field_excerpt3());\n else :\n $tf_desc = wp_strip_all_tags(get_the_excerpt());\n endif;\n \n if (has_post_thumbnail()) {\n $thumbid = get_post_thumbnail_id();\n $imgurl = wp_get_attachment_url( $thumbid );\n } else {\n $imgurl = home_url() . '/wp-content/themes/settlementPC/library/images/eo-livelearn.png';\n }\n $tf_name = str_replace('@', '', get_the_author_meta('twitter'));\n ?>\n <meta name=\"twitter:card\" value=\"summary\" />\n <meta name=\"twitter:url\" value=\"<?php echo $tf_url; ?>\" />\n <meta name=\"twitter:title\" value=\"<?php echo $tf_title; ?>\" />\n \n <meta name=\"twitter:image\" value=\"<?php echo $imgurl; ?>\" />\n <meta name=\"twitter:site\" value=\"@EnglishOnlineMB\" />\n <?php if($tf_name) { ?>\n \n <meta name=\"twitter:creator\" value=\"@<?php echo $tf_name; ?>\" />\n \n <?php }\n \n echo '<meta property=\"og:title\" content=\"' . $tf_title . '\"/>';\n echo '<meta property=\"og:type\" content=\"article\"/>';\n echo '<meta property=\"og:url\" content=\"' . $tf_url . '\"/>';\n echo '<meta property=\"og:site_name\" content=\"Live &amp; Learn: a project of English Online Inc.\"/>';\n echo '<meta property=\"og:description\" content=\"' . $tf_desc . '\"/>';\n echo '<meta property=\"og:image\" content=\"' . $imgurl . '\"/>';\n }\n \n}", "function insert_fb_in_head()\n{\n\t\tglobal $post;\n\t\tif (!is_singular()) //if it is not a post or a page\n\t\t\t\treturn;\n\n\t\tif ($excerpt = $post->post_excerpt)\n\t\t{\n\t\t\t\t$excerpt = strip_tags($post->post_excerpt);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\t$excerpt = get_bloginfo('description');\n\t\t}\n\n\t\t//echo '<meta property=\"fb:app_id\" content=\"YOUR APPID\"/>'; //<-- this is optional\n\t\techo '<meta property=\"og:title\" content=\"' . get_the_title() . '\"/>';\n\t\techo '<meta property=\"og:description\" content=\"' . $excerpt . '\"/>';\n\t\techo '<meta property=\"og:type\" content=\"article\"/>';\n\t\techo '<meta property=\"og:url\" content=\"' . get_permalink() . '\"/>';\n\t\techo '<meta property=\"og:site_name\" content=\"' . get_bloginfo() . '\"/>';\n\n\t\techo '<meta name=\"twitter:title\" content=\"' . get_the_title() . '\"/>';\n\t\techo '<meta name=\"twitter:card\" content=\"summary\" />';\n\t\techo '<meta name=\"twitter:description\" content=\"' . $excerpt . '\" />';\n\t\techo '<meta name=\"twitter:url\" content=\"' . get_permalink() . '\"/>';\n\n\t\tif (!has_post_thumbnail($post->ID))\n\t\t{\n\t\t\t\t//the post does not have featured image, use a default image\n\t\t\t\t//$default_image = \"http://example.com/image.jpg\"; //<--replace this with a default image on your server or an image in your media library\n\t\t\t\t//echo '<meta property=\"og:image\" content=\"' . $default_image . '\"/>';\n\t\t\t\t//echo '<meta name=\"twitter:image\" content=\"' . $default_image . '\"/>';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\t$thumbnail_src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'large');\n\t\t\t\techo '<meta property=\"og:image\" content=\"' . esc_attr($thumbnail_src[0]) . '\"/>';\n\t\t\t\techo '<meta name=\"twitter:image\" content=\"' . esc_attr($thumbnail_src[0]) . '\"/>';\n\t\t}\n}", "static private function show_pge_hdr( object $pp1\n //, string $category_from_url, string $search_from_submit, int $pgordno_from_url\n , array $pgn_links\n ) \n { ?>\n <!-- P a g e h e a d e r header -->\n <div>\n <?php\n //echo utl::M sgErr(); echo utl::M sgSuccess();\n echo utl::msg_err_succ(__METHOD__ .' '.', ln '. __LINE__);\n ?>\n\n <!-- 1. p a g e s u m m a r y -->\n\n <?php\n echo $pgn_links['navbar'];\n ?>\n </div>\n\n\n <?php\n return('1') ;\n }", "function header_meta() {\n\t/**\n\t * Filter the path used for the site's humans.txt attribution file\n\t *\n\t * @param string $humanstxt\n\t */\n\t$humanstxt = apply_filters( 'project_humans', Project_TEMPLATE_URL . '/humans.txt' );\n\n\techo '<link type=\"text/plain\" rel=\"author\" href=\"' . esc_url( $humanstxt ) . '\" />';\n}", "function circle_display_archive_sharing() {\n\tif ( ! circle_option( 'display_archive_sharing' ) ) {\n\t\treturn;\n\t}\n\tget_template_part( 'template-parts/post-social-sharing' );\n}", "function head() {\n\n\techo '<h1>ATOM.CMS</h1>';\n\t\n}", "function flatsome_single_page_header(){\n if(is_singular('post') && get_theme_mod('blog_post_style') == 'top'){\n\t\techo get_template_part( 'template-parts/posts/partials/single-featured', get_theme_mod('blog_post_style'));\n\t}\n}", "function sloodle_print_header()\n {\n global $CFG;\n\n // Offer the user an 'update' button if they are allowed to edit the module\n $editbuttons = '';\n if ($this->canedit) {\n $editbuttons = update_module_button($this->cm->id, $this->course->id, get_string('modulename', 'sloodle'));\n }\n // Display the header\n $navigation = \"<a href=\\\"index.php?id={$this->course->id}\\\">\".get_string('modulenameplural','sloodle').\"</a> ->\";\n sloodle_print_header_simple(format_string($this->sloodle->name), \"&nbsp;\", \"{$navigation} \".format_string($this->sloodle->name), \"\", \"\", true, $editbuttons, navmenu($this->course, $this->cm));\n\n // Display the module name\n $img = '<img src=\"'.$CFG->wwwroot.'/mod/sloodle/icon.gif\" width=\"16\" height=\"16\" alt=\"\"/> ';\n sloodle_print_heading($img.$this->sloodle->name, 'center');\n \n // Display the module type and description\n $fulltypename = get_string(\"moduletype:{$this->sloodle->type}\", 'sloodle');\n echo '<h4 style=\"text-align:center;\">'.get_string('moduletype', 'sloodle').': '.$fulltypename;\n echo sloodle_helpbutton(\"moduletype_{$this->sloodle->type}\", $fulltypename, 'sloodle', true, false, '', true).'</h4>';\n // We'll apply a general introduction to all Controllers, since they seem to confuse lots of people!\n $intro = $this->sloodle->intro;\n if ($this->sloodle->type == SLOODLE_TYPE_CTRL) $intro = '<p style=\"font-style:italic;\">'.get_string('controllerinfo','sloodle').'</p>' . $this->sloodle->intro;\n\t\t// Display the intro in a box, if we have an intro\n\t\tif (!empty($intro)) sloodle_print_box($intro, 'generalbox', 'intro');\n \n }", "function fl_user_bar_box() {\n\tglobal $post;\n\t\n\tif( !is_singular('post') ) return; // only show on blog post single page\n\t\n\t// assemble the text and url we'll pass into each social media share link\n\t$social_text = urlencode(strip_tags(get_the_title() . ' ' . __( 'post from', APP_TD ) . ' ' . get_bloginfo('name')));\n\t$social_url = urlencode(get_permalink($post->ID));\n?>\n\n<div class=\"user-bar\">\n\t\n\t<?php if (comments_open()) comments_popup_link( ('<span>' . __( 'Leave a comment', APP_TD ) . '</span>'), ('<span>' . __( 'Leave a comment', APP_TD ) . '</span>'), ('<span>' . __( 'Leave a comment', APP_TD ) . '</span>'), 'btn', '' ); ?>\t\n\t\n\t<?php fl_social_share(); ?>\n\t\n</div>\n\n<?php\n}", "private function BuildHeadText( $profile ){\n\t\tprint( \"<h5>Solarpower SprayLoader P.O.C</h5>\" );\n\t\tprint( '<div class=\"row\"><div class=\"col s9\">');\n\t\tprint( \"<p> Welcome back, \" . $profile['personaname'] . \". Nullam sit amet lacus vel neque placerat aliquet et ac purus. Donec ac semper mi. Vestibulum imperdiet risus eget justo mollis, consequat consequat nunc ullamcorper. Proin lectus urna, faucibus sit amet egestas ut, fringilla non nisi. Sed ut iaculis neque, ullamcorper tincidunt justo. Donec at tincidunt risus. Duis vel velit porta ante ornare condimentum. Suspendisse fermentum hendrerit rutrum. Phasellus dignissim suscipit magna nec mattis. Aliquam hendrerit nisi turpis, sed pulvinar justo aliquet nec. Aliquam velit odio, congue sit amet ornare eu, auctor vitae dolor. In nisi magna, interdum sed lacus nec, cursus viverra est. Fusce quis bibendum neque. Nam vehicula rhoncus nibh, in facilisis dolor maximus ut. Sed pellentesque, augue ut sodales pulvinar, arcu est sagittis risus, sit amet pharetra sem lorem ac felis.</p>\");\n\t\tprint( '</div><div class=\"col s3\">');\n\t\tprint( '<img src=\"'.$profile['avatarfull'].'\" title=\"\" alt=\"\" />');\n\t\tprint( '</div></div>');\n\t}", "public function social()\n {\n $record = Social::first();\n return view('admin.pages.social', compact('record'));\n }", "public function show(Social $social)\n {\n //\n }", "public function show(Social $social)\n {\n //\n }", "function endcore_socialbuttons_shortcode($atts, $content = null) {\n if(is_admin()) {\n return;\n }\n\n\tob_start();\t\n\tget_template_part('parts/stuff/code', 'social');\n\t$output = ob_get_contents();\n\tob_end_clean();\n\treturn $output;\n}", "function ubiq_add_socialgraph() {\n if (!get_option('ubiq_fb_opengraph')) { return; }\n\n if (is_single()) {\n global $post;\n \n $image_id = get_post_thumbnail_id();\n $image_url = wp_get_attachment_image_src($image_id,'large', true);\n \n \n $content = $post->post_content;\n $content = strip_shortcodes( $content );\n \t\t$content = strip_tags($content);\n\t\t$excerpt_length = 55;\n\t\t$words = explode(' ', $content, $excerpt_length + 1);\n\t\tif(count($words) > $excerpt_length) :\n\t\t\tarray_pop($words);\n\t\t\tarray_push($words, '...');\n\t\t\t$content = implode(' ', $words);\n\t\tendif;\n \n ?>\n <meta property=\"og:title\" content=\"<?php the_title() ?>\"/>\n <meta property=\"og:type\" content=\"article\"/>\n <meta property=\"og:url\" content=\"<?php echo get_permalink() ?>\"/>\n <?php\n if (get_the_post_thumbnail()) {\n ?>\n <meta property=\"og:image\" content=\"<?php echo $image_url[0] ?>\"/>\n <?php } else { ?>\n <meta property=\"og:image\" content=\"<?php header_image(); ?>\"/>\n <?php } ?>\n <meta property=\"og:site_name\" content=\"<?php echo get_bloginfo('name') ?>\"/> \n <meta property=\"og:description\" content=\"<?php echo $content ?>\"/>\n <?php if (get_option('ubiq_fb_appid')) { ?>\n <meta property=\"fb:app_id\" content=\"<?php echo get_option('ubiq_fb_appid') ?>\" />\n <?php } ?>\n <?php\n if (function_exists('sharing_display')) {\n add_filter( 'excerpt_length', 'calculate_excerpt_length' ); \n add_filter( 'the_excerpt', 'sharing_display', 19 );\n }\n } else if(is_home()) {\n ?>\n <meta property=\"og:title\" content=\"<?php echo get_bloginfo('name') ?>\"/>\n <meta property=\"og:type\" content=\"website\"/>\n <meta property=\"og:url\" content=\"<?php bloginfo('url') ?>\"/>\n <meta property=\"og:image\" content=\"<?php header_image(); ?>\"/>\n <meta property=\"og:site_name\" content=\"<?php echo get_bloginfo('name') ?>\"/> \n <meta property=\"og:description\" content=\"<?php echo bloginfo('description') ?>\"/>\n <?php if (get_option('ubiq_fb_appid')) { ?>\n <meta property=\"fb:app_id\" content=\"<?php echo get_option('ubiq_fb_appid') ?>\" />\n <?php } ?>\n <?php\n }\n}", "public function wordpress_default_header(){\n\t\tif(is_home() && $this->_template_builder->get_specific_option('carousel_global')){\r\n\t\t\tif(!$this->_template_builder->get_specific_option('jumbotron')){\r\n\t\t\t\t$this->_build_header();\r\n\t\t\t}else{\r\n\t\t\t\t$this->_template_builder->render_view('jumbotron');\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif($this->_template_builder->get_specific_option('socialbar')){\r\n\t\t\t\t$this->_template_builder->render_view('socialbar');\t\r\n\t\t\t}\r\n\t\t}\n\t}", "public static function show_header() {\n require_once Config::get('prefix') . '/templates/header.inc.php';\n }", "function display( array $atts, $content = '' ) {\n\n\t\tob_start();\n\n\t\tpublisher_set_prop( 'shortcode-bs-social-share-atts', $atts );\n\t\tpublisher_get_view( 'shortcodes', 'bs-social-share' );\n\t\tpublisher_clear_props();\n\n\t\treturn ob_get_clean();\n\n\t}", "function get_header($title, $login = 0) {\r\n\t\trequire_once('theme_parts/header.php');\r\n\t}", "function renderFollow() {\n $this->checkAccess('user',true,true);\n\n $template = new Template;\n echo $template->render('header.html');\n echo $template->render('user/follow.html');\n echo $template->render('footer.html');\n\n //clear error status\n $this->f3->set('SESSION.haserror', '');\n }", "function header_meta() {\n\t/**\n\t * Filter the path used for the site's humans.txt attribution file\n\t *\n\t * @param string $humanstxt\n\t */\n\t$humanstxt = apply_filters( 'additive_humans', ADDITIVE_TEMPLATE_URL . '/humans.txt' );\n\n\techo '<link type=\"text/plain\" rel=\"author\" href=\"' . esc_url( $humanstxt ) . '\" />';\n}", "function pantomime_author_box(){\n\tif ( is_single() ) :\n\t// Get the author email -> for Gravatar\n\t$author_email = get_the_author_meta('user_email');\n\t\t\n\t// Get the author description\n\t$author_description = get_the_author_meta('description');\t\n\t?>\n\n\t<div id=\"author-box\" class=\"emboss\">\n\t\t<h4 class=\"section-title\"><?php _e('About The Author', 'pantomime'); ?></h4>\n\t\t<?php\n\t\t\techo get_avatar($author_email, 50, '');\n\t\t\techo '<p>' . get_the_author_link() . ' - ' . $author_description . '</p>';\n\t\t?>\n\t</div>\n\t\n\t<?php\n\tendif;\n}", "function generate_construct_header_widget() {\n\t\tif ( is_active_sidebar( 'header' ) ) : ?>\n\t\t\t<div class=\"header-widget\">\n\t\t\t\t<?php dynamic_sidebar( 'header' ); ?>\n\t\t\t</div>\n\t\t<?php endif;\n\t}", "public static function displayHeader()\n {\n\n # Charset\n print \"<meta charset=\\\"\" . self::$Charset . \"\\\" />\";\n\n $base = base_url();\n print \"<base href='{$base}/' />\";\n\n # Viewport\n print \"\\n\\n\\t<meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\\\" />\\n\";\n\n # Meta Tags\n foreach (self::$SEO as $attr => $prop) {\n # Metatags\n if (is_array($prop)) {\n print \"\\n\\t\";\n foreach ($prop as $content => $value) {\n print \"<meta {$attr}=\\\"{$content}\\\" content=\\\"\" . htmlspecialchars($value) . \"\\\" />\\n\\t\";\n }\n } # Favicon - Icone da página\n else if ($attr == 'icon' || $attr == 'shortcut' || $attr == 'shortcut icon') {\n print \"\\n\\t\";\n $type = strtolower(preg_replace('/^.*\\.(.*?)(\\?.*)?$/', '$1', $prop));\n print \"<link rel=\\\"icon\\\" href=\\\"{$prop}\\\" />\\n\\t\";\n } # Tags\n else {\n print \"\\n\\t\";\n print \"<{$attr}>\" . htmlspecialchars($prop) . \"</{$attr}>\\n\\t\";\n }\n }\n\n # Imagens\n if (count(self::$Imagens) > 0) {\n print \"\\n\\t\";\n print \"<!-- OG Imagens -->\\n\\t\";\n foreach (self::$Imagens as $values) {\n foreach ($values as $key => $value) {\n if ($value != null) {\n print \"<meta property=\\\"{$key}\\\" content=\\\"\" . htmlspecialchars($value) . \"\\\" />\\n\\t\";\n }\n }\n }\n }\n\n # Vídeos\n if (count(self::$Videos) > 0) {\n print \"\\n\\t\";\n print \"<!-- OG Vídeos -->\\n\\t\";\n foreach (self::$Videos as $values) {\n foreach ($values as $key => $value) {\n if ($value != null) {\n print \"<meta property=\\\"{$key}\\\" content=\\\"\" . htmlspecialchars($value) . \"\\\" />\\n\\t\";\n }\n }\n if (end(self::$Videos) !== $values) {\n print \"\\n\\t\";\n }\n }\n }\n\n # Sounds\n if (count(self::$Sounds) > 0) {\n print \"\\n\\t\";\n print \"<!-- OG Sound -->\\n\\t\";\n foreach (self::$Sounds as $values) {\n foreach ($values as $key => $value) {\n if ($value != null) {\n print \"<meta property=\\\"{$key}\\\" content=\\\"\" . htmlspecialchars($value) . \"\\\" />\\n\\t\";\n }\n }\n }\n print \"\\n\\t\";\n }\n\n self::displayCss();\n\n print \"\\n\\n\\t<script src='cdn/js/jquery.min.js' type='text/javascript' ></script>\";\n\n # Html5\n print \"\\n\\n\\t<!--[if lt IE 9]>\";\n print \"\\n\\t\\t<script src=\\\"https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js\\\" charset=\\\"\" . self::$Charset . \"\\\" ></script>\";\n print \"\\n\\t\\t<script src=\\\"https://oss.maxcdn.com/respond/1.4.2/respond.min.js\\\" charset=\\\"\" . self::$Charset . \"\\\" ></script>\";\n print \"\\n\\t<![endif]-->\\n\";\n }", "function social_share(){\n\t?>\n\t<style type=\"text/css\">\n\t\tp.share-info{\n\t\t\tmargin-bottom: 0;\n\t\t}\n\t\t.share-buttons .has-tip{\n\t\t\tborder: none;\n\t\t}\n\t\t.share-buttons a{\n\t\t\tborder: none;\n\t\t\twidth: 33px;\n\t\t\theight: 33px;\n\t\t}\n\t\t.share-buttons a.button{\n\t\t\tpadding: 0;\n\t\t\tmargin-right: 3px;\n\t\t}\n\t\t.share-buttons a.button.facebook{\n\t\t\tbackground: rgb(59, 89, 152);\n\t\t}\n\t\t.share-buttons a.button.twitter{\n\t\t\tbackground: rgb(29, 161, 242);\n\t\t}\n\t\t.share-buttons a.button.linkedin{\n\t\t\tbackground: rgb(0, 119, 181);\n\t\t}\n\t\t.share-buttons a.button.google-plus{\n\t\t\tbackground: rgb(220, 78, 65);\n\t\t}\n\t\t.share-buttons a i{\n\t\t\tfont-size: 1.4rem;\n\t\t\tline-height: 2.4rem;\n\t\t}\n\t</style>\n\t<p class=\"share-info\"><small>Compartilhe:</small></p>\n\t<div class=\"button-group share-buttons\">\n\t\t<span data-tooltip aria-haspopup=\"true\" class=\"has-tip top\" data-disable-hover=\"false\" tabindex=\"1\" title=\"Facebook\">\n\t\t\t<a class=\"button facebook\" href=\"https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>\" onclick=\"window.open(this.href, 'Compartilhar notícia', 'width=490,height=530');return false;\"><i class=\"fa fa-facebook\"></i></a>\n\t\t</span>\n\t\t<span data-tooltip aria-haspopup=\"true\" class=\"has-tip top\" data-disable-hover=\"false\" tabindex=\"1\" title=\"Twitter\">\n\t\t\t<a class=\"button twitter\" href=\"https://twitter.com/home?status=<?php the_permalink(); ?>\" onclick=\"window.open(this.href, 'Compartilhar notícia', 'width=490,height=530');return false;\"><i class=\"fa fa-twitter\"></i></a>\n\t\t</span>\n\t\t<span data-tooltip aria-haspopup=\"true\" class=\"has-tip top\" data-disable-hover=\"false\" tabindex=\"1\" title=\"LinkedIn\">\n\t\t\t<a class=\"button linkedin\" href=\"https://www.linkedin.com/shareArticle?mini=true&url=<?php the_permalink(); ?>&title=<?php the_title( ); ?>&summary=&source=<?php bloginfo( 'url' ); ?>\" onclick=\"window.open(this.href, 'Compartilhar notícia', 'width=490,height=530');return false;\"><i class=\"fa fa-linkedin\"></i></a>\n\t\t</span>\n\t\t<span data-tooltip aria-haspopup=\"true\" class=\"has-tip top\" data-disable-hover=\"false\" tabindex=\"1\" title=\"Google plus\">\n\t\t\t<a class=\"button google-plus\" href=\"https://plus.google.com/share?url=<?php the_permalink(); ?>\" onclick=\"window.open(this.href, 'Compartilhar notícia', 'width=490,height=530');return false;\"><i class=\"fa fa-google-plus\"></i></a>\n\t\t</span>\t\t\t\t\t\t\t\n\t</div>\n\t<?php\n}", "function Page_DataRendering(&$header) {\r\n\r\n\t\t// Example:\r\n\t\t//$header = \"your header\"; \r\n\r\n\t\t$header = '<a class=\"operacion btn btn-success\" name=\"RefreshGroupFromFb\" id=\"'.preg_replace('/\\D/', '', $_GET['super_id'] ).'\" href=\"#\">Refresh From FB</a> '; \r\n\t }", "public function page_header(){\n\t\t$e = $this->Empresa->salida;\n\t\t$this->Empresa->where('id',$this->Empresa->user);\n\t\t$fondo = $this->Empresa->getOne('empresa_fondo','img_fondo');\n\t\t\n\t\t$link = 'index.php?inmv='.$e['nik_empresa'];\t\t\n\t\t$return = '<div class=\"page-header\" style=\"background-image: url(imagenes/fondos/'.$fondo['img_fondo'].');\">';\n\t\t$return .= '<div class=\"header-info\">';\n\t\t$return .= '<div class=\"row\">';\n\t\t$return .= '<div class=\"logo-header\"><a href=\"'.$link.'\"><img src=\"imagenes/logo/'.$e['img'].'\" /></a></div>';\n\t\t$return .= '<div class=\"header-desc col-md-6 visible-md visible-lg\">';\n\t\t$return .= '<h1>'.$e['descripcion'].'</h1>';\n\t\t$return .= '</div>';\n\t\t$return .= '</div>';\n\t\t$return .= '</div>';\n\t\t$return .= '</div>';\n\t\treturn $return;\n\t}", "public function displayContent(){\n\t\t\tinclude('/includes/homepage.inc.php');\t\n\t\t}", "public function index()\n\t{\n\t\t $data['social'] = [\n\t\t\t\t\t\t\t\t'0' => 'socialmedia',\n\t\t\t\t\t\t\t ];\n\n\t\t$data['smooth_page'] = 'sosmed';\n\n\t\t$data['header_title'] = 'Social Media';\n\n\t\t$data['sosmed_page'] = 'sosmed';\n\t\t$data['headersosmed'] = 'Social Media';\n\t\t$data['title']=\"Social Media\";\n\t\t$data['img_url'] = base_url();\n\t\t$data['font_header'] = base_url('assets/fonts/Vacaciones-font-ffp-defharo.ttf');\n\n\t\t$this->load->view('front-end/work/header.php', $data);\n\t\t$this->load->view('front-end/work/social/index.php', $data);\n\t\t$this->load->view('front-end/chat.php');\n\t\t$this->load->view('front-end/chat2.php');\n\t\t$this->load->view('front-end/whatsapp.php');\n\t\t$this->load->view('front-end/work/footer.php');\n\t}", "function user_header($CI){\n\t\t$CI->cpanel = new Panel('cpanel',FALSE,FALSE,'global cpanel');\n\t\t$user = $CI->user->get();\n\t\tif($user){\n\t\t\t$avatar = reset($user->avatar);\n\t\t\t$CI->cpanel->add(array('text'=>$user->name,'data'=>$avatar,'link'=>l('/user/'.$user->url_name.'/'),'class'=>'panel-icon','data_class'=>'avatar','width'=>'10%'),0);\n\t\t\t$CI->cpanel->add(array('text'=>t('user logout'),'data'=>'/gears/user/img/loginout.png','link'=>l('/user/logout/'.$user->key.'/'),'width'=>'10%'),100);\n\t\t}\n\t\telse {\n\t\t\tif($CI->gears->user->registration) $CI->cpanel->add(array('text'=>t('user register'),'data'=>'/gears/user/img/register.png','link'=>l('/user/register/')),99);\n\t\t\t$CI->cpanel->add(array('text'=>t('user login_submit'),'data'=>'/gears/user/img/loginout.png','link'=>l('/user/login/'),'onclick'=>\"loader.elem('login-form',640,420);return false;\"),100);\n\t\t}\n\t}", "public function hookdisplayHeader($params)\n {\n if ('order' === $this->context->controller->php_self) {\n $this->context->controller->registerStylesheet('modules-pagoseguro', 'modules/'.$this->name.'/css/pagoseguro.css', ['media' => 'all', 'priority' => 200]);\n $this->context->controller->registerJavascript('modules-pagoseguro', 'modules/'.$this->name.'/js/pagoseguro.js', ['position' => 'bottom', 'priority' => 200]);\n }\n }", "private function displayHeader(){\n\t\t\t$html = '<!doctype html>'.\"\\n\";\n\t\t\t$html .= '<!--[if LT IE 9]>'.\"\\n\";\n\t\t\t$html .= '<html class=\"ie\">'.\"\\n\";\n\t\t\t$html .= '<![endIF]-->'.\"\\n\";\n\t\t\t$html .= '<!--[if !IE]><!-->'.\"\\n\";\n\t\t\t$html .= '<html>'.\"\\n\";\n\t\t\t$html .= '<!--<![endif]-->'.\"\\n\";\n\t\t\t$html .= '<head>'.\"\\n\";\n\t\t\t$html .= '<title> PCInsight | ' .$this->pageInfo['pageTitle'].'</title>'.\"\\n\";\n\t\t\t$html .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"scripts/loadCSS.php\" />'.\"\\n\";\n\t\t\t$html .= '<link rel=\"shortcut icon\" type=\"image/png\" href=\"resources/images/favicon.png\" />'.\"\\n\";\n\t\t\t$html .= '<link rel=\"icon\" type=\"image/x-icon\" href=\"resources/images/favicon.ico\" />'.\"\\n\";\n\t\t\t$html .= '<meta charset=\"UTF-8\" />'.\"\\n\";\n\t\t\t$html .= '<meta name=\"description\" content=\"'.$this->pageInfo['pageDescription'].'\" />'.\"\\n\";\n\t\t\t$html .= '<script src=\"resources/lib/jquery-1.10.2.min.js\" type=\"text/javascript\"></script>'.\"\\n\";\n\t\t\t$html .= '<script src=\"resources/js/main.js\" type=\"text/javascript\"></script>'.\"\\n\";\n\t\t\t$html .= '</head>'.\"\\n\";\n\t\t\t$html .= '<body class=\"nojs\">'.\"\\n\";\n\t\t\t$html .= '<div id=\"topbar\" class=\"clearfix\">'.\"\\n\";\n\t\t\t$html .= '<div class=\"wrapper\">'.\"\\n\";\n\t\t\t$html .= '<div class=\"left\">'.\"\\n\";\n\t\t\t$html .= '<h1 class=\"mainHeader\"><a href=\"index.php\"><span> PC</span>insight </a></h1>'.\"\\n\";\n\t\t\t$html .= '<nav>'.\"\\n\";\n\t\t\t$html .= '<ul>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"index.php\" accesskey=\"1\"> Home </a></li>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"index.php?p=9\" accesskey=\"2\"> Articles </a></li>'.\"\\n\";\t\t\n\t\t\t$html .= '<li><a href=\"index.php?p=10\" accesskey=\"3\"> About </a></li>'.\"\\n\";\n\t\t\t$html .= '</ul>'.\"\\n\";\n\t\t\t$html .= '</nav>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '<div class=\"mobilenav\">'.\"\\n\";\n\t\t\t$html .= '<span class=\"mobileNavBu\"></span>'.\"\\n\";\n\t\t\t$html .= '<div class=\"menu\">'.\"\\n\";\n\t\t\t$html .= '<ul>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"index.php\"> Home </a></li>'.\"\\n\"; \n\t\t\t$html .= '<li><a href=\"index.php?p=9\"> Articles </a></li>'.\"\\n\"; \t\t\t\n\t\t\t$html .= '<li><a href=\"index.php?p=10\"> About </a></li>'.\"\\n\";\n\t\t\tif (!(isset($_SESSION['username']))){\n\t\t\t\t$html .= '<li><a href=\"index.php?p=2\" accesskey=\"4\"> Login </a></li>'.\"\\n\";\n\t\t\t\t$html .= '<li><a href=\"index.php?p=3\" accesskey=\"5\"> Register </a></li>'.\"\\n\";\n\t\t\t} else {\n\t\t\t\tif ($this->model->isAdmin()){\n\t\t\t\t\t$html .= '<li><a href=\"admin/\"> Admin </a></li>'.\"\\n\";\n\t\t\t\t}\n\t\t\t\t$html .= '<li><a href=\"index.php?p=5\" accesskey=\"6\"> Logout </a></li>'.\"\\n\";\n\t\t\t}\n\t\t\t$html .= '</ul>'.\"\\n\";\n\t\t\t$html .= '<form action=\"index.php\" method=\"get\">'.\"\\n\";\n\t\t\t$html .= '<input type=\"hidden\" name=\"p\" value=\"7\"/>'.\"\\n\";\n\t\t\t$html .= '<input type=\"text\" class=\"search\" placeholder=\"Search\" name=\"q\" value=\"'.$_GET['q'].'\"/>'.\"\\n\";\n\t\t\t$html .= '<input type=\"submit\" class=\"btn blue small\" value=\"search\"/>'.\"\\n\";\n\t\t\t$html .= '</form>'.\"\\n\";\t\t\t\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '<div class=\"right\">'.\"\\n\";\n\t\t\tif (!(isset($_SESSION['username']))){\n\t\t\t\t$html .= '<div class=\"login\">'.\"\\n\";\n\t\t\t\t$html .= '<a href=\"index.php?p=2\"> Login </a>'.\"\\n\";\n\t\t\t\t$html .= '<a href=\"index.php?p=3\"> Register </a>'.\"\\n\";\n\t\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t} else {\n\t\t\t\t$html .= '<div class=\"login\">'.\"\\n\";\n\t\t\t\t$html .= '<a href=\"index.php?p=5\"> Logout </a>'.\"\\n\";\n\t\t\t\tif ($this->model->isAdmin()){\n\t\t\t\t\t$html .= '<a href=\"admin/\"> Admin </a>'.\"\\n\";\n\t\t\t\t}\n\t\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t}\n\t\t\t$html .= '<div class=\"search\">'.\"\\n\";\n\t\t\t$html .= '<form action=\"index.php\" method=\"get\">'.\"\\n\"; \n\t\t\t$html .= '<input type=\"hidden\" name=\"p\" value=\"7\"/>'.\"\\n\";\n\t\t\t$html .= '<input type=\"text\" class=\"search\" placeholder=\"Search\" name=\"q\" value=\"'.$_GET['q'].'\"/>'.\"\\n\";\n\t\t\t$html .= '<input type=\"submit\" class=\"btn blue small\" value=\"Search\" />'.\"\\n\";\n\t\t\t$html .= '</form>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\tif (!$this->db->isRegistered()){\n\t\t\t\t$html .= '<div class=\"register\"><p> Please register your account <a href=\"index.php?p=13\">here</a></p></div>';\n\t\t\t}\n\t\t\treturn $html;\n\t\t}", "function msdlab_hero(){\n if(is_active_sidebar('homepage-top')){\n print '<div id=\"hp-top\">';\n dynamic_sidebar('homepage-top');\n print '</div>';\n } \n}", "private function displayHeader()\n {\n\n $html = '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">' . \"\\n\";\n $html .= '<html xmlns=\"http://www.w3.org/1999/xhtml\">';\n $html .= '<head>' . \"\\n\";\n\n //Meta tags\n $html .= '<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />' . \"\\n\";\n $html .= '<meta name=\"description\" content=\"' . $this->pageInfo['pageDescription'] . '\" />' . \"\\n\";\n $html .= '<meta name=\"keywords\" content=\"jobs, freelance, work, design, freedom, choice, new zealand, quality\" />' . \"\\n\";\n $html .= '<link rel=\"icon\" type=\"image/png\" href=\"images/volition-icon.png\" />' . \"\\n\";\n\n //Stylesheets\n $html .= '<!-- Stylesheets -->' . \"\\n\";\n $html .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"css/styles.css\" />' . \"\\n\";\n $html .= '<!--[if lt IE 9]>' . \"\\n\";\n $html .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"css/ie.css\" />' . \"\\n\";\n $html .= '<![endif]-->' . \"\\n\";\n\n //Scripts\n //$html .= '<script type=\"text/javascript\" src=\"js/window.js\"></script>'.\"\\n\";\n\n //Page title\n $html .= '<title>Volition | ' . $this->pageInfo['pageTitle'] . '</title>' . \"\\n\";\n $html .= '</head>' . \"\\n\";\n $html .= '<body>' . \"\\n\";\n\n //Header\n $html .= '<div id=\"header\">' . \"\\n\";\n\n //Control buttons\n\n $html .= '<div id=\"headerImg\"><a href=\"index.php?page=home\"></a></div>' . \"\\n\";\n\n if ($this->model->userLoggedIn) {\n $html .= '<p class=\"controlButton\"><a href=\"index.php?page=logout\">Logout</a></p>' . \"\\n\";\n $html .= '<p class=\"userControl\">You are logged in as ' . $_SESSION['userName'] . '</p>' . \"\\n\";\n } else {\n $html .= '<p class=\"controlButton\"><a href=\"index.php?page=login\">Login</a></p>' . \"\\n\";\n $html .= '<p class=\"controlButton\"><a href=\"index.php?page=register\">Register</a></p>' . \"\\n\";\n }\n\n $html .= '<form id=\"searchForm\" method=\"post\" action=\"index.php?page=search\">';\n if ($_POST['searchInput']) {\n $html .= '<input type=\"text\" name=\"searchInput\" id=\"searchInput\" value=\"' . $_POST['searchInput'] . '\" />';\n } else {\n $html .= '<input type=\"text\" name=\"searchInput\" id=\"searchInput\" value=\"Search...\" />';\n }\n $html .= '<input type=\"submit\" class=\"submit\" name=\"searchSubmit\" id=\"searchSubmit\" value=\"Go\" />';\n $html .= '</form>';\n\n //Navbar\n $html .= $this->displayNav();\n\n $html .= '</div>' . \"\\n\";\n //Content tags\n $html .= '<div id=\"container\">' . \"\\n\";\n $html .= '<div id=\"content\" >' . \"\\n\";\n\n return $html;\n\n }", "function lightseek_homepage_header() {\n\techo '<header class=\"entry-header\">';\n\t\tlightseek_post_header();\n\techo '</header>';\n}", "function Pmx_Header($head, $isContent = false)\n{\n\tglobal $context, $txt, $scripturl, $user_info, $settings;\n\n\t$allowMan = (AllowedToBlog('manager') && isOwner($head['userid']));\n\t$ContLink = isset($_GET['cont']) && !empty($_GET['cont']) ? ';cont='.$_GET['cont'] : '';\n\t$cameFrom = !empty($_GET['cfr']) ? $_GET['cfr'] : ';cfr='. $context['PmxBlog']['mode'];\n\t$isModerator = isModerator($head['userid']);\n\n\techo '\n\t<span class=\"upperframe\"><span></span></span>\n\t<div class=\"roundframe pmx_roundcore\">\n\t<table style=\"padding:0px; margin:0px;\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n\t\t<tr>\n\t\t\t<td rowspan=\"2\" align=\"center\" valign=\"middle\">\n\t\t\t\t<div style=\"width:84px; padding:2px 6px 2px 2px;\">'.\n\t\t\t\t\t($head['settings']{2} == '1'\n\t\t\t\t\t? ($context['PmxBlog']['blog_rd_acs']\n\t\t\t\t\t\t? '<a href=\"'. $scripturl .'?action=pmxblog;sa=view;uid='. $head['userid'].'\">'.$head['avatar'].'</a>'\n\t\t\t\t\t\t: $head['avatar']\n\t\t\t\t\t\t)\n\t\t\t\t\t: ($context['PmxBlog']['blog_rd_acs']\n\t\t\t\t\t\t? '<a href=\"'. $scripturl .'?action=pmxblog;sa=view;uid='. $head['userid'].'\"><img src=\"' . $settings['default_images_url'] .'/PmxBlog/noavatar.gif\" alt=\"*\" /></a>'\n\t\t\t\t\t\t: ''\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t.'</div>\n\t\t\t</td>\n\t\t\t<td class=\"plainbox\" style=\"background:transparent; padding:0 2px; border-width:0; border-bottom-width:1px;\" colspan=\"2\" valign=\"top\" width=\"'.($user_info['is_guest'] ? '99' : '75').'%\">\n\t\t\t\t<div style=\"height:20px; padding:5px 2px 5px 0px; font-size:20px; font-style:italic; font-family: Tahoma, Verdana, arial;\">'.\n\t\t\t\t\t($context['PmxBlog']['blog_rd_acs']\n\t\t\t\t\t\t? '<a href=\"'. $scripturl .'?action=pmxblog;sa=view;uid='. $head['userid'].'\">'.$head['blogname'].'</a>'\n\t\t\t\t\t\t: $head['blogname']\n\t\t\t\t\t)\n\t\t\t\t.'</div>\n\t\t\t\t<div class=\"smalltext\" style=\"padding:0 2px 4px 0px;\">\n\t\t\t\t'. $head['blogdesc'] .'\n\t\t\t\t</div>\n\t\t\t</td>'.\n\n\t\t(!$user_info['is_guest']\n\t\t?\t'<td valign=\"top\" align=\"right\" nowrap=\"nowrap\" style=\"padding-left:1px;\">\n\t\t\t<div style=\"width:170px;\">\n\t\t\t\t<div class=\"smalltext\" style=\"padding:0px 4px; text-align:right; height:12px;\">'.\n\t\t\t\t(!$user_info['is_guest'] && !isOwner($head['userid'])\n\t\t\t\t?\t'<a href=\"'. $scripturl .'?action=pmxblog;sa='. $context['PmxBlog']['mode'].getOwnerLink($head['userid']).$ContLink.';track\"><b>'. $txt['PmxBlog_track'] .'</b></a>&nbsp;&nbsp;'. $txt['PmxBlog_track_val'][$head['tracking']]\n\t\t\t\t:\t$txt['PmxBlog_tracked_user'].$head['tracks']\n\t\t\t\t).'\n\t\t\t\t</div>\n\t\t\t\t<div class=\"smalltext\" style=\"padding:2px 0px; text-align:right; height:12px;\">'.\n\t\t\t\t(isset($head['is_new_cont']) && $head['is_new_cont'] != '' || isset($head['is_new_cmnt']) && $head['is_new_cmnt'] > 0\n\t\t\t\t?\t'<a href=\"'. $scripturl .'?action=pmxblog;sa='. $context['PmxBlog']['mode'].getOwnerLink($head['userid']).$ContLink.';mkrd\"><b>'. $txt['PmxBlog_markread'] .'</b></a>&nbsp;'\n\t\t\t\t:\t''\n\t\t\t\t).'\n\t\t\t\t</div>\n\t\t\t\t<div style=\"padding:2px 2px 2px 2px; text-align:right; height:16px;\">'.\n\t\t\t\t($head['bloglocked'] != 0\n\t\t\t\t?\t$txt['PmxBlog_bloglockedtxt']\n\t\t\t\t:\t($head['blogenabled'] == 0\n\t\t\t\t\t?\t$txt['PmxBlog_blogdisabled']\n\t\t\t\t\t:\t($allowMan || $isModerator\n\t\t\t\t\t\t?\t($context['PmxBlog']['action'][0] != 'contnew' && $context['PmxBlog']['action'][0] != 'contedit'\n\t\t\t\t\t\t\t?\t(!$isModerator\n\t\t\t\t\t\t\t\t? '<div class=\"plainbox funclaunch\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa='. ($context['PmxBlog']['mode'] == 'list' ? 'view' : $context['PmxBlog']['mode']) .';cont=new'.getOwnerLink($head['userid']).'\">'.$txt['PmxBlog_newblog'].'</a></div>'\n\t\t\t\t\t\t\t\t: ''\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t:\t'<div class=\"plainbox funcexit\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa='.$context['PmxBlog']['mode'].$context['PmxBlog']['pageopt'].$context['PmxBlog']['UserLink'].'\" onclick=\"return confirm(\\''. $txt['PmxBlog_confirmAbort'] .'\\')\">'. ($context['PmxBlog']['action'][0] == 'contnew' ? $txt['PmxBlog_newblogabort'] : $txt['PmxBlog_editblogabort']) .'</a></div>'\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t:\t''\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t).'</div>'.\n\t\t\t'</div>\n\t\t\t</td>'\n\t\t: ''\n\t\t).'\n\n\t\t</tr><tr>\n\t\t\t<td valign=\"top\" width=\"28%\" style=\"padding:2px 2px 1px 2px;\">\n\t\t\t\t<div class=\"smalltext\">'. $txt['PmxBlog_blogowner'] .'</div>\n\t\t\t\t<div style=\"padding-top:2px;\"><a href=\"'.$scripturl.'?action=profile;u='.$head['userid'].'\"><b'.$head['onlineColor'].'>'. $head['username'] .'</b>\n\t\t\t\t</a> '. $head['gender'] .'</div>\n\t\t\t</td>\n\t\t\t<td valign=\"top\" width=\"'.($user_info['is_guest'] ? '65' : '47').'%\" style=\"padding:2px 4px 1px 0px;\">\n\t\t\t\t<div class=\"smalltext\" style=\"padding:2px;height:14px;float:left;\">'.\n\t\t\t\t$txt['PmxBlog_entries'].\n\t\t\t\t(isset($head['nbr_content'])\n\t\t\t\t?\t(empty($head['is_new_cont'])\n\t\t\t\t\t\t?\tContent_button('content', $head['nbr_content'])\n\t\t\t\t\t\t:\tContent_button('content_new', $head['nbr_content'])\n\t\t\t\t\t)\n\t\t\t\t:\tContent_button('content', '0')\n\t\t\t\t).\n\t\t\t\t(!empty($head['nbr_comment'])\n\t\t\t\t?\t' / '.$head['nbr_comment']\n\t\t\t\t:\t''\n\t\t\t\t).'</div>\n\t\t\t\t<div class=\"smalltext\" style=\"float:right;padding:2px;height:14px;\">'.$txt['PmxBlog_blog_views'].$head['blogviews'].'</div>\n\t\t\t\t<br style=\"clear:both;\" />\n\t\t\t\t<div class=\"smalltext\" style=\"padding:1px 2px;height:16px;float:left;\">'.\n\t\t\t\t($head['blogcreated'] != 0\n\t\t\t\t?\n\t\t\t\t\t($head['blogenabled'] != 0 || AllowedTo('admin_forum') || isOwner($head['userid'])\n\t\t\t\t\t?\t($context['PmxBlog']['action'][0] == 'list'\n\t\t\t\t\t\t?\t((!empty($head['nbr_content']) || (empty($head['nbr_content']) && isOwner($head['userid']) && !empty($head['hiddencont'])))\n\t\t\t\t\t\t\t?\t'<a href=\"'. $scripturl .'?action=pmxblog;sa=view'. getOwnerLink($head['userid']) .'\">'. $txt['PmxBlog_viewblog'] .'</a>'\n\t\t\t\t\t\t\t:\t(!empty($head['hiddencont']) ? '<em>'. $txt['PmxBlog_privatecontent'] .'</em>' : '')\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t:\t(!empty($context['PmxBlog']['ResetArchivdate']) || $context['PmxBlog']['pagemode'] != '' || $context['PmxBlog']['action'][0] == 'singlepage'\n\t\t\t\t\t\t\t?\t'<div class=\"plainbox funcexit2\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa='. $context['PmxBlog']['mode'].getOwnerLink($head['userid']) . $context['PmxBlog']['ResetArchivdate'] .'\"><span style=\"margin-right:15px;\">'. $txt['PmxBlog_listblogs'] .'</span></a></div>'\n\t\t\t\t\t\t\t:\t'<div class=\"plainbox funcexit2\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa=list'. $context['PmxBlog']['ResetArchivdate'] .'\"><span style=\"margin-right:15px;\">'.$txt['PmxBlog_showall'].'</span></a></div>'\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t)\n\t\t\t\t\t:\t''\n\t\t\t\t\t)\n\t\t\t\t: ''\n\t\t\t\t).'\n\t\t\t\t</div>\n\t\t\t\t<div class=\"smalltext\" style=\"float:right;padding:2px;height:14px;\">'.\n\t\t\t\t$txt['PmxBlog_blog_rating'].$head['blogvotes'].\n\t\t\t\t($head['blogvotes'] > 0\n\t\t\t\t?\t' ('.$head['blograting'].'%)'\n\t\t\t\t:\t''\n\t\t\t\t).'\n\t\t\t\t</div>\n\t\t\t\t<br style=\"clear:both;\" />\n\t\t\t</td>'.\n\t\t(!$user_info['is_guest']\n\t\t? '\n\t\t\t<td valign=\"top\" align=\"right\" nowrap=\"nowrap\">\n\t\t\t<div style=\"width:170px;\">'.\n\t\t\t($allowMan || AllowedTo('admin_forum')\n\t\t\t?\t($context['PmxBlog']['mode'] != 'manager'\n\t\t\t\t?\t'<div style=\"text-align:right; height:16px; padding:0 2px 2px 2px;\">\n\t\t\t\t\t\t<div class=\"plainbox funclaunch\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa=manager;setup'. $cameFrom . getOwnerLink($head['userid']).$ContLink.'\">'. $txt['PmxBlog_funclaunch'].$txt['PmxBlog_blogset_link'] .'</a></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style=\"text-align:right; height:16px; padding:2px 2px 2px 2px;\">'.\n\t\t\t\t\t\t(isOwner($head['userid'])\n\t\t\t\t\t\t?\t'<div class=\"plainbox funclaunch\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa=manager'.getOwnerLink($head['userid']).$ContLink.'\">'. $txt['PmxBlog_funclaunch'] .$txt['PmxBlog_manager_link'].'</a></div>'\n\t\t\t\t\t\t:\t($isModerator && !empty($isContent)\n\t\t\t\t\t\t\t? ($context['PmxBlog']['Moderate'] == $head['userid']\n\t\t\t\t\t\t\t\t? '<div class=\"plainbox funcexit\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa='. $context['PmxBlog']['mode'] .getOwnerLink($head['userid']).$ContLink.';mod=0\">'. $txt['PmxBlog_funcexit'] .$txt['PmxBlog_moderate_link'].'</a></div>'\n\t\t\t\t\t\t\t\t: '<div class=\"plainbox funclaunch\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa='. $context['PmxBlog']['mode'] .getOwnerLink($head['userid']).$ContLink.';mod=1\">'. $txt['PmxBlog_funclaunch'] .$txt['PmxBlog_moderate_link'].'</a></div>'\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t: ''\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t).'\n\t\t\t\t\t</div>'\n\t\t\t\t:\t'<div style=\"padding:0 2px 2px 2px; text-align:right; height:16px;\">'.\n\t\t\t\t\t($head['blogcreated'] != 0\n\t\t\t\t\t?\t($context['PmxBlog']['action'][0] != 'setup'\n\t\t\t\t\t\t?\t'<div class=\"plainbox funclaunch\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa=manager;setup'. $cameFrom .getOwnerLink($head['userid']).$ContLink.'\">'. $txt['PmxBlog_funclaunch'].$txt['PmxBlog_blogset_link'] .'</a></div>'\n\t\t\t\t\t\t:\t($context['PmxBlog']['action'][0] == 'setup'\n\t\t\t\t\t\t\t?\t'<div class=\"plainbox funcexit\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa='.(!empty($context['PmxBlog']['Manager']['have_blog']) ? (!empty($cameFrom) ? $cameFrom : 'view') : 'list'). getOwnerLink($head['userid']).$ContLink .'\">'. $txt['PmxBlog_funcexit'] . $txt['PmxBlog_blogset_link'].'</a></div>'\n\t\t\t\t\t\t\t:\t''\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t).'\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style=\"padding:2px 2px 2px 2px; text-align:right; height:16px;\">'.\n\t\t\t\t\t\t($context['PmxBlog']['action'][0] == 'setup'\n\t\t\t\t\t\t?\t(isOwner($head['userid'])\n\t\t\t\t\t\t\t?\t'<div class=\"plainbox funclaunch\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa=manager'.getOwnerLink($head['userid']).$ContLink.'\">'. $txt['PmxBlog_funclaunch'].$txt['PmxBlog_manager_link'] .'</a></div>'\n\t\t\t\t\t\t\t:\t''\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t:\t'<div class=\"plainbox funcexit\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa=view'.getOwnerLink($head['userid']).$ContLink.'\">'. $txt['PmxBlog_funcexit'].$txt['PmxBlog_manager_link'].'</a></div>'\n\t\t\t\t\t\t)\n\t\t\t\t\t: (isOwner($head['userid'])\n\t\t\t\t\t\t?\t'<div class=\"plainbox funcexit\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa=list\">' .$txt['PmxBlog_funcexit'].$txt['PmxBlog_manager_link'].'</a></div>'\n\t\t\t\t\t\t: ''\n\t\t\t\t\t\t)\n\t\t\t\t\t).'\n\t\t\t\t\t</div>'\n\t\t\t\t)\n\t\t\t:\t($isModerator && !empty($isContent)\n\t\t\t\t? '<div style=\"padding:2px 2px 2px 2px; padding-top:17px; text-align:right; height:14px;\">'.\n\t\t\t\t\t($context['PmxBlog']['Moderate'] == $head['userid']\n\t\t\t\t\t? '<div class=\"plainbox funcexit\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa='. $context['PmxBlog']['mode'] .getOwnerLink($head['userid']).$ContLink.';mod=0\">'. $txt['PmxBlog_funcexit'] .$txt['PmxBlog_moderate_link'].'</a></div>'\n\t\t\t\t\t: '<div class=\"plainbox funclaunch\"><a class=\"blogbutton\" href=\"'. $scripturl .'?action=pmxblog;sa='. $context['PmxBlog']['mode'] .getOwnerLink($head['userid']).$ContLink.';mod=1\">'. $txt['PmxBlog_funclaunch'] .$txt['PmxBlog_moderate_link'].'</a></div>'\n\t\t\t\t\t).\n\t\t\t\t\t'</div>'\n\t\t\t\t: ''\n\t\t\t\t)\n\t\t\t).'\n\t\t\t</div>\n\t\t\t</td>'\n\t\t:\t''\n\t\t).'\n\t\t</tr>\n\t</table>\n\t</div>\n\t<span class=\"lowerframe\"><span></span></span>';\n}", "public function social_media()\n {\n $result = $this->dtbs->list('social');\n $data['info'] = $result;\n $this->load->view('back/social/anasehife',$data);\n }", "function render_block_core_social_link($attributes, $content, $block)\n {\n }", "static function head($theme) {\n if(($theme->page_subtype == \"photo\") || ($theme->page_subtype == \"album\")) {\n return html::script('http://widget.fotomoto.com/stores/script/' . module::get_var(\"fotomotorw\", \"fotomoto_site_key\") . '.js?api=true');\n }\n }", "function mr_theme_header() {\n\t$facebook_url = '#';\n\t$instagram_url = '#';\n\tif ( get_option( 'mr-social-links' )['facebook'] ) {\n\t\t$facebook_url = get_option( 'mr-social-links' )['facebook'];\n\t}\n\tif ( get_option( 'mr-social-links' )['instagram'] ) {\n\t\t$instagram_url = get_option( 'mr-social-links' )['instagram'];\n\t}\n\n\t?>\n\t\t<nav class=\"mr-nav-top\">\n\t\t\t<div class=\"mr-social\">\n\t\t\t\t<a target=\"_blank\" href=\"<?php echo esc_attr( $facebook_url ); ?>\"><i class=\"fab fa-facebook\"></i></a>\n\t\t\t\t<a target=\"_balnk\" href=\"<?php echo esc_attr( $instagram_url ); ?>\"><i class=\"fab fa-instagram\"></i></a>\n\t\t\t</div>\n\t\t\t<div class=\"mr-logo\" >\n\t\t\t\t<?php the_custom_logo(); ?>\n\t\t\t\t<p><?php echo esc_attr__( get_bloginfo( 'name' ) ); ?></p>\n\t\t\t</div>\n\t\t\t\t<button class=\"navbar-toggler\" type=\"button\" id=\"menuMobileBtnShow\">\n\t\t\t\t\t<i class=\"fal fa-bars\"></i>\n\t\t\t\t</button>\t\n\n\t\t\t<div class=\"mr-search\">\n\t\t\t<?php mr_search_form(); ?>\n\t\t\t\t<i id=\"searchToggleForm\" class=\"fal fa-search\"></i>\n\t\t\t</div>\n\t\t</nav>\n\t<?php\n}", "function dc_display_social_nav( $services=[] ) {\n\t\t\tif ( !empty( $services ) ) {\n\t\t\t\t$return = '';\n\n\t\t\t\tforeach ( $services as $service ) {\n\t\t\t\t\t$url = dc_get_social_link( $service );\n\n\t\t\t\t\tif ( $url )\n\t\t\t\t\t\techo \"<a href=\\\"\" . $url . \"\\\" class=\\\"dc-social-icon\\\" ><i class=\\\"tcfa tcfa-\" . $service . \" tcfa-3x\\\"></i></a>\";\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t}", "function flatsome_custom_blog_header(){\n\tif(flatsome_option('blog_header') && is_home()){\n\t\techo '<div class=\"blog-header-wrapper\">'.do_shortcode(flatsome_option('blog_header')).'</div>';\n\t}\n}", "public function drawHeader()\n {\n?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n<link rel=\"stylesheet\" href=\"/res/rpmetaCSS.css\">\n<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js\"></script>\n<script src=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js\"></script>\n<div id=\"fb-root\"></div>\n<script>(function(d, s, id) {\n var js, fjs = d.getElementsByTagName(s)[0];\n if (d.getElementById(id)) return;\n js = d.createElement(s); js.id = id;\n js.src = \"//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.7\";\n fjs.parentNode.insertBefore(js, fjs);\n}(document, 'script', 'facebook-jssdk'));</script>\n\n<script>\n (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');\n ga('create', 'UA-84156006-1', 'auto');\n ga('send', 'pageview');\n</script>\n<script>\n$(document).ready(function() {\n $('img[src$=\".svg\"]').each(function() {\n var $img = jQuery(this);\n var imgURL = $img.attr('src');\n var attributes = $img.prop(\"attributes\");\n\n $.get(imgURL, function(data) {\n // Get the SVG tag, ignore the rest\n var $svg = jQuery(data).find('svg');\n\n // Remove any invalid XML tags\n $svg = $svg.removeAttr('xmlns:a');\n\n // Loop through IMG attributes and apply on SVG\n $.each(attributes, function() {\n $svg.attr(this.name, this.value);\n });\n\n // Replace IMG with SVG\n $img.replaceWith($svg);\n }, 'xml');\n });\n});\n</script>\n\n<title>RPMeta</title>\n</head>\n\n<body class=\"full-header\">\n<!-- #top FORMATTED RPM-->\n <div id=\"top\">\n </div>\n<!-- /#top FORMATTED RPM-->\n <div id=\"wrapper\">\n <!-- <div id=\"header-image-container\">\n <img src=\"http://rpmeta.com/res/RPMetaHeader.svg\" class=\"header-image\"/>\n </div> -->\n <div class=\"splashpage-container-wrapper\">\n <div class=\"splashpage-featured-image-conatiner\">\n <img src=\"http://rpmeta.com/res/RPMetaBackground.svg\" class=\"splashpage-featured\"/>\n </div>\n <!--End Splashpage container FORMATTED RPM-->\n </div>\n <!--#nav-container FORMATTED RPM-->\n <div id=\"nav-container\">\n \t<nav id=\"main-menu\" class=\"col-full\" role=\"navigation\">\n \t\t<section id=\"section-menu\" class=\"menus\">\n \t\t\t<h3>Main Nav</h3>\n \t\t\t<ul id=\"main-menu-list\" class=\"nav\">\n \t\t\t\t<li id=\"menu-item-home\" class=\"menu-item\"><a href=\"http://rpmeta.com\">Home</a>\n \t\t\t\t</li>\n \t\t\t\t<li id=\"menu-item-reviews\" class=\"menu-item\"><a href=\"http://rpmeta.com/reviews.rpmeta.com/index.php\">Reviews</a>\n \t\t\t\t</li>\n \t\t\t\t<li id=\"menu-item-products\" class=\"menu-item\"><a href=\"http://rpmeta.com/products.rpmeta.com/index.php\">Products</a>\n \t\t\t\t</li>\n \t\t\t\t<li id=\"menu-item-meta\" class=\"menu-item\"><a href=\"http://rpmeta.com/meta.rpmeta.com/index.php\">Meta</a>\n \t\t\t\t</li>\n \t\t\t\t<li id=\"menu-item-about\" class=\"menu-item\"><a href=\"http://rpmeta.com/about.rpmeta.com/index.php\">About</a>\n \t\t\t\t</li>\n \t\t\t\t<li id=\"menu-item-subscribe\" class=\"menu-item\"><a href=\"http://rpmeyer.org/News/index.php\">Subscribe</a>\n \t\t\t\t</li>\n \t\t\t</ul>\n \t\t</section>\n\n \t\t<div id=\"media-buttons\" class=\"media-images-svg\">\n \t\t\t<ul id=\"socials\">\n \t\t\t\t<li>\n \t\t\t\t\t<a href=\"https://www.facebook.com/rpmeta\" class=\"facebook\">\n \t\t\t\t\t\t<img id=\"facebookSVG\" class=\"svg social-media\" src=\"http://rpmeta.com/res/FacebookF.svg\" alt=\"\" /></img>\n \t\t\t\t\t</a>\n \t\t\t\t\t<a href=\"https://twitter.com/arrpmeyer\" class=\"twitter\">\n \t\t\t\t\t\t<img id='twitterSVG' class=\"svg social-media\" src=\"http://rpmeta.com/res/TwitterBird.svg\" alt=\"\" /></img>\n \t\t\t\t\t</a>\n \t\t\t\t</li>\n \t\t\t</ul>\n \t\t</div>\n \t</nav>\n </div>\n <!--/#nav-container FORMATTED RPM-->\n<?php\n //starting php tag to output more template\n }", "public function social()\n {\n return view('home.social');\n }", "function section_like() {\r\n\t\tprint \"<ul id='admin-section-like-wrap'>\";\r\n\t\tprint \"<li><a href='http://onemanonelaptop.com/docs/\" . $this->slug . \"/'>Link to it so others can find out about it.</a></li>\";\r\n\t\tprint \"<li><a href='http://wordpress.org/extend/plugins/\" . $this->slug . \"/'>Give it a 5 star rating on WordPress.org.</a></li>\";\r\n\t\tprint \"<li><a href='http://www.facebook.com/sharer.php?u=\" . urlencode(\"http://wordpress.org/extend/plugins/\" . $this->slug . \"/\") . \"&t=\" . urlencode($this->options_page_name) . \"'>Share it on Facebook</a></li>\";\r\n\t\tprint \"</ul>\"; \r\n\t}", "public static function header_output() {\n\t\tob_start();\n\n\t\tif ( self::options( 'header_type' ) == 'navbar-fixed-top' ) {\n\t\t\techo 'body{padding-top: 50px;}';\n\t\t}\n\n\t\tif ( ! display_header_text() ) {\n\t\t\techo '#site-title,.site-description{position: absolute;clip: rect(1px, 1px, 1px, 1px);}';\n\t\t} else {\n\t\t\tself::generate_css( '#site-title', 'color', 'header_textcolor', '#' );\n\t\t}\n\t\t$extra_css = apply_filters( 'maketador_header_output', ob_get_clean() );\n\t\tif ( ! empty( $extra_css ) ) {\n\t\t\techo '<style type=\"text/css\">' . $extra_css . '</style>';\n\t\t}\n\t\t?>\n\t\t<?php\n\t}", "static function header() {\n $url = $GLOBALS[\"path\"] ? $GLOBALS[\"path\"] : \"http://localhost:8000/\";\n echo '<script src=\"'.$url.'pontoon.js\"></script>'.\"\\n\";\n }", "public function atmf_html_backend(){\n\n $template_loader = new Uou_Atmf_Load_Template();\n ob_start();\n $template = $template_loader->locate_template( 'popup.php' );\n\n if(is_user_logged_in() ){\n include( $template );\n }\n echo ob_get_clean();\n\n }", "function printLogoHeader($mode) {\r\n\tglobal $topTitle;\r\n\t?>\r\n\t<div id=\"headline\">\r\n\t\t<span id=\"headline1\"><?php print $topTitle[$mode] ?></span>\r\n\t\t<span id=\"headline2\">&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp;<a target=\"_blank\" href=\"http://www.youtube.com/watch?v=L3JTpxaKSsM&fmt=6\">YouTube&nbsp;-&nbsp;Tutorials</a></span>\r\n\t\t<span id=\"logo_desc\">\r\n\t\t\t<?php if ($mode === \"main\") { ?>\r\n\t\t\tAussicht: <?php echo getLogoDesc() ?>\r\n\t\t\t<a href=\"javascript:toggleLogo()\"><strong>wechseln</strong></a>\r\n\t\t\t<?php } ?>\r\n\t\t</span>\r\n\t</div>\r\n\t<div id=\"logo\" style=\"background-image:url('img/<?php echo getLogo(); ?>')\" onClick=\"makeHomepage()\">&nbsp;</div>\r\n\t<div id=\"menu_top\">\r\n\t\t<a id=\"make_homepage\" href=\"javascript:makeHomepage()\">hyperfinder.ch zu meiner Startseite machen</a>\r\n\t\t<?php if ($mode === \"main\") { ?>\r\n\t\t<a class=\"feedback_share\" href=\"feedback.php\">Feedback</a>\r\n\t\t<a class=\"feedback_share\" href=\"share.php\">Freunde einladen</a>\r\n\t\t<?php } else if ($mode === \"share\") { ?>\r\n\t\t<a class=\"feedback_share\" href=\"feedback.php\">Feedback</a>\r\n\t\t<a class=\"feedback_share\" href=\"index.php\">Hauptseite</a>\r\n\t\t<?php } else if ($mode === \"feedback\") { ?>\r\n\t\t<a class=\"feedback_share\" href=\"index.php\">Hauptseite</a>\r\n\t\t<a class=\"feedback_share\" href=\"share.php\">Freunde einladen</a>\r\n\t\t<?php } ?>\r\n\t</div>\r\n\t<?php\r\n}", "public function WPHead() {\n\t\t// Just tag the page for fun.\n\t\techo \"\\n\\t\" . '<!-- This site uses Good Old Gallery, get it from http://wp.unwi.se/good-old-gallery -->' . \"\\n\\n\";\n\t}", "function Header(){\n\t\t}", "function circle_author_biography() {\n\tif ( ! circle_option( 'display_author_bio' ) ) {\n\t\treturn;\n\t}\n\tget_template_part( 'template-parts/biography' );\n}", "public static function show()\n {\n//You could get fancy with the homepage and check for the userID in the session and hide/show the login / registration links when no session\n//If there is a session then you should show the user profile link\n//the template is an HTML page with PHP inserted in it. just put an if/else statement to check for the session and show correct links\n\n\n $templateData['site_name'] = 'mysite';\n\n//template data contains what will show up in the $data variable in the homepage template\n//the name of the template 'homepage' becomes 'homepage.php' in the pages directory\n\n self::getTemplate('homepage', $templateData);\n }", "public function themeHeader($end) {\n $domain = $this->getSiteURL();\n \n // front-end only\n if ($end == 'front') {\n // url base\n echo \"\\n\".'<base href=\"'.$this->getSiteURL().'\">';\n }\n echo \"\\n\".'<!-- The Matrix '.self::VERSION.'-->'.\"\\n\";\n // css\n echo ' <!--css-->'.\"\\n\";\n foreach (glob(GSPLUGINPATH.self::FILE.'/css/*.css') as $css) {\n echo ' <link rel=\"stylesheet\" href=\"'.str_replace(GSROOTPATH, $domain, $css).'\"/>'.\"\\n\";\n }\n echo ' <!--/css-->'.\"\\n\";\n \n // js\n echo ' <!--js-->'.\"\\n\";\n $javascript = glob(GSPLUGINPATH.self::FILE.'/js/*.js');\n natsort($javascript);\n \n foreach ($javascript as $js) {\n echo ' <script src=\"'.str_replace(GSROOTPATH, $domain, $js).'\" type=\"text/javascript\"></script>'.\"\\n\";\n }\n echo ' <!--/js-->'.\"\\n\";\n echo '<!--/The Matrix '.self::VERSION.'-->'.\"\\n\";\n }", "function cs_header_settings() {\n global $cs_theme_option;\n ?>\n <link rel=\"shortcut icon\" href=\"<?php echo $cs_theme_option['fav_icon'] ?>\" />\n <!--[if lt IE 9]><script src=\"//html5shiv.googlecode.com/svn/trunk/html5.js\"></script><![endif]-->\n <?php \n}", "private static function _display_page_header($current_tab) {\r\n\t\t\t$has_credentials = self::has_credentials();\r\n\t\t\t$manage_options = current_user_can('manage_options');\r\n\r\n\t\t\t$logged_in_text = '';\r\n\t\t\tif($has_credentials) {\r\n\t\t\t\t$logged_in_text .= sprintf(__('Logged in as <a href=\"https://urtak.com/account/edit\" target=\"_blank\">%1$s</a>', 'urtak'), self::get_credentials('email'));\r\n\t\t\t\t$logged_in_text .= \"&nbsp;| &nbsp;\";\r\n\t\t\t}\r\n\r\n\t\t\t$active_moderation = self::SUB_LEVEL_MODERATION_SLUG === $current_tab;\r\n\t\t\t$active_results = self::SUB_LEVEL_RESULTS_SLUG === $current_tab;\r\n\t\t\t$active_settings = self::SUB_LEVEL_SETTINGS_SLUG === $current_tab;\r\n\r\n\t\t\t$url_moderation = self::_get_moderation_url();\r\n\t\t\t$url_results = self::_get_results_url();\r\n\t\t\t$url_settings = self::_get_settings_url();\r\n\r\n\t\t\tinclude('views/backend/pages/_inc/header.php');\r\n\t\t}", "function hc_the_author($gravatarSize = ''){\n\t\t$info = hc_get_the_author($gravatarSize);\n\t\tforeach ($info as $index => $author) {\n\t\t\tif(file_exists(get_bloginfo('stylesheet_directory').'plugins/hypercontact/templates/author.php')){\n\t\t\t\tinclude(get_bloginfo('stylesheet_directory').'plugins/hypercontact/templates/author.php');\n\t\t\t}else{\n\t\t\t\tinclude('templates/author.php');\n\t\t\t}\n\t\t}\n\n\t}", "function printHeader()\n\t{\n\t\t$_SESSION['last_page'] = $_SERVER['QUERY_STRING'];\n\t\tif( isset($_SESSION['admin']) && $_SESSION['admin'])\n\t\t{\n\t\t\t$this->admin_nav = \"<a class=\\\"button\\\" href=\\\"?section=project_management\\\" title=\\\"Go to project management\\\">Project Management</a>\\n\n\t\t\t\t\\t\\t<a class=\\\"button\\\" href=\\\"?section=reference_value_management\\\" title=\\\"Go to reference value management\\\">Reference Value Management</a>\\n\n\t\t\t\t\\t\\t<a class=\\\"button\\\" href=\\\"?section=user_management\\\" title=\\\"Go to user management\\\">User Management</a>\\n\";\n\t\t}\n\t\t$this->initSessionVariables();\n\t\tinclude 'View/Header.html';\n\t}", "public function template_header() {\n\t\tget_header( 'course' );\n\t}", "function x_add_social_sharing ( $content ) {\n\t\n if ( is_singular('post') ) {\n\t \n echo do_shortcode('[share title=\"Share this Post\" facebook=\"true\" twitter=\"true\" google_plus=\"true\" linkedin=\"true\" pinterest=\"false\" reddit=\"false\" email=\"true\"]');\n \n }\n}", "function displayHtmlHeader() {\n\t\tglobal $page;\n\t\t\n\t\techo \"<!DOCTYPE html5>\";\n\t\techo \"<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='fr'>\";\n\t\t\n\t\t\techo \"<head>\";\n\t\t\t\t\n\t\t\t\t//Encodage et zoom\n\t\t\t\techo \"<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\";\n\t\t\t\techo \"<meta name='viewport' content='width=device-width, initial-scale=1.0' />\";\n\t\t\t\techo \"<meta http-equiv='X-UA-Compatible' content='IE=edge' />\";\n\t\t\t\t\n\t\t\t\t//Titre de la page\n\t\t\t\techo \"<title>Gestion maintenances | Best Engines Inc.</title>\";\n\t\t\t\t\n\t\t\t\t//Description et auteur de la page\n\t\t\t\techo \"<meta name='description' content='Application de gestion des maintenances de la société Best Engines Inc.' />\";\n\t\t\t\techo \"<meta name='author' content='Best Engines Inc.' />\";\n\t\t\t\t\n\t\t\t\t//Fichiers CSS\n\t\t\t\techo \"<link href='config/css/bootstrap.min.css' rel='stylesheet' />\";\n\t\t\t\techo \"<link href='config/css/animate.css' rel='stylesheet' />\";\n\t\t\t\techo \"<link href='config/css/styles.css' rel='stylesheet' />\";\n\t\t\t\t\n\t\t\t\t//Formulaire d'authentification\n\t\t\t\tif($page == \"authentification\") {\n\t\t\t\t\techo \"<link rel='stylesheet' href='config/font-awesome/css/font-awesome.min.css' />\";\n\t\t\t\t\techo \"<link rel='stylesheet' href='config/css/authentification/form-elements.css' />\";\n\t\t\t\t\techo \"<link rel='stylesheet' href='config/css/authentification/style.css' />\";\n\t\t\t\t\t\n\t\t\t\t\techo \"<!--[if lt IE 9]>\";\n\t\t\t\t\t\techo \"<script src='https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js'></script>\";\n\t\t\t\t\t\techo \"<script src='https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js'></script>\";\n\t\t\t\t\techo \"<![endif]-->\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Font\n\t\t\t\techo \"<link rel='stylesheet' type='text/css' href='http://fonts.googleapis.com/css?family=Montserrat' />\";\n\t\t\t\t\n\t\t\t\t//Favicon\n\t\t\t\techo \"<link href='doc/img/favicon/favicon.png' rel='shortcut icon' />\";\n\n\t\t\techo \"</head>\";\t\t\t\n\t\t\techo \"<body>\";\n\t}", "public function header()\n {\n echo \"<!doctype html>\\n<html lang='pt'>\\n<head>\\n\";\n echo \"\\t<meta charset='UTF-8'>\\n\";\n echo \"\\t<title>{$this->controller->getTitle()}</title>\\n\";\n $this->links();\n echo \"</head>\\n<body>\\n\";\n }", "public static function showHeader() {\r\n\t\t$title = (array_key_exists('headertitle', $_SESSION))?\r\n\t\t\t$_SESSION['headertitle']:\"\";\r\n\t\t\r\n\t\techo \"<!DOCTYPE html>\\n\";\r\n\t\techo \"<html>\\n\";\r\n\t\techo \"<head>\\n\";\r\n\t\techo \"<title>$title</title>\\n\";\r\n\t\techo \"</head>\\n\\t<body>\\n\";\r\n }", "function register_block_core_social_link()\n {\n }", "function loadHeader() {\r\n\tglobal $vk, $vk_config, $authorize_url;\r\n\t\r\n\tif ( isset( $_REQUEST[ 'code' ] ) ) {\r\n\t\t$access_token = $vk->getAccessToken( $_REQUEST[ 'code' ], $vk_config[ 'callback_url' ] );\r\n\t\t$sys_id = getUserId( null, null, null, $access_token['user_id'] );\r\n\t\t$_SESSION['userid'] = $access_token['user_id'];\r\n\t\t$_SESSION['access_token'] = $access_token['access_token'];\r\n\t\theader( $vk_config[ 'callback_url' ] );\r\n\t}\r\n\t\r\n\t$authorized = false;\r\n\tif( isset( $_SESSION['userid'] ) ) {\r\n\t\t$authorized = true;\r\n\t}\r\n\t$lk = array();\r\n\tif( $authorized ) {\r\n\t\t$lk[0] = $_SESSION[ 'username' ];\r\n\t\t$lk[1] = \"/lk\";\r\n\t\t$lk[2] = \"\";\r\n\t\t$lk[3] = array(); //there will be subitems\r\n\t} else {\r\n\t\t$lk[0] = \"Войти\";\r\n\t\t$lk[1] = \"\";\r\n\t\t$lk[2] = \"auth( event, '\" . $authorize_url . \"' )\";\r\n\t}\r\n\t$array = array(\r\n\t\t\"menu\" => array(\r\n\t\t\tarray( \"Home\", \"#slider_part\" ),\r\n\t\t\tarray( \"Services\", \"#service\" ),\r\n\t\t\t$lk\r\n\t\t)\r\n\t);\r\n\treturn addBlock( \"headerBlock\", $array );\r\n}", "function in_admin_header()\n {\n }", "public function showPageHeader() {\n\n\t\techo $this->getPageHeader();\n\t}", "function showHead( $appctx )\n\t\t{\n\t\t}", "function customPageHeader() {\n echo osc_apply_filter('custom_plugin_title', __('Plugins'));\n }", "function include_share_box() {\n if ( is_single() )\n require(CHILD_DIR.'/sharebar.php');\n}", "function header() {\n\t\techo '<div class=\"wrap\">';\n\t\tscreen_icon();\n\t\techo '<h2>' . __( 'JigoShop To WooCommerce Converter', 'woo_jigo' ) . '</h2>';\n\t}", "private function show_page()\n\t{\n\t\t$parse['user_link']\t= $this->_base_url . 'recruit/' . $this->_friends[0]['user_name'];\n\t\n\t\t$this->template->page ( FRIENDS_FOLDER . 'friends_view' , $parse );\t\n\t}", "function display_header($pg_title)\n {\n echo <<<_END\n <!DOCTYPE HTML>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <meta name=\"description\" content=\"MockexamNG gives you the oppurtunity to prepare for various e-testing examinations.\">\n <meta name=\"author\" content=\"Bright Elewendu\">\n\n <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->\n <!--[if lt IE 9]>\n <script src=\"http://html5shim.googlecode.com/svn/trunk/html5.js\"></script>\n <script src=\"js/html5.js\"></script>\n <![endif]-->\n\n <script type=\"text/javascript\" src=\"js/jquery-1.8.2.js\"></script>\n <script type=\"text/javascript\" src=\"js/jquery.form.js\"></script>\n <script type=\"text/javascript\" src=\"js/jquery.validate.js\"></script>\n <script type=\"text/javascript\" src=\"js/jquery.prettyPhoto.js\"></script>\n <script type=\"text/javascript\" src=\"js/jquery.cycle.all.min.js\"></script>\n <script type=\"text/javascript\" src=\"js/jquery.easing.1.3.js\"></script>\n <script type=\"text/javascript\" src=\"js/custom.js\"></script>\n <script type=\"text/javascript\" src=\"js/animatedcollapse.js\"></script>\n <script type=\"text/javascript\" src=\"js/slide.js\"></script>\n <script type=\"text/javascript\" src=\"js/jquery.preloader.js\"></script>\n\n <script type=\"text/javascript\" src=\"testfunctions.js\"></script>\n <script type=\"text/javascript\" src=\"signup_functions.js\"></script>\n\n <link rel=\"stylesheet\" href=\"css/style.css\">\n <link rel=\"stylesheet\" href=\"css/news.css\">\n <link rel=\"stylesheet\" href=\"css/pricing.css\">\n <link rel=\"stylesheet\" href=\"css/prettyPhoto.css\"/>\n <link rel=\"shortcut icon\" href=\"images/bp.ico\" type=\"image/x-icon\" />\n <title>MockExamNG::$pg_title</title>\n\n </head>\n_END;\n }", "function wolf_share_output_social_buttons( $content ) {\n\n\t$selected_post_types = wolf_share_get_option( 'post_types' );\n\t$post_type = get_post_type();\n\t$condition = ( is_single() && isset( $selected_post_types[ $post_type ] ) );\n\n\t$new_content = '';\n\n\tif ( $condition ) {\n\t\t$new_content .= wolf_share();\n\t}\n\n\t$new_content .= $content;\n\n\tif ( $condition ) {\n\t\t$new_content .= wolf_share();\n\t}\n\n\treturn $new_content;\n\n}" ]
[ "0.7604129", "0.7098865", "0.6922782", "0.67153573", "0.6585575", "0.6473508", "0.64481646", "0.64271885", "0.6421229", "0.6416483", "0.6400673", "0.6397239", "0.6354853", "0.63344294", "0.62630916", "0.62551206", "0.62529284", "0.62328947", "0.62118393", "0.6174679", "0.6158079", "0.61579686", "0.6141195", "0.6118252", "0.6106616", "0.60962605", "0.6093694", "0.6080174", "0.60779214", "0.60732", "0.6070354", "0.605451", "0.60458416", "0.6034918", "0.60342807", "0.6030517", "0.6027996", "0.6010898", "0.6010898", "0.6010711", "0.5999006", "0.59943014", "0.5991426", "0.59904885", "0.59774846", "0.59731126", "0.59710103", "0.5970568", "0.59628654", "0.59600353", "0.5955182", "0.5955073", "0.5951412", "0.594909", "0.59463704", "0.5943069", "0.5932317", "0.59295905", "0.59245956", "0.5924513", "0.5923887", "0.5919171", "0.59159786", "0.5911724", "0.5910156", "0.5903326", "0.5890897", "0.58894867", "0.58789515", "0.58734715", "0.5867741", "0.5861351", "0.585586", "0.5855327", "0.5852142", "0.58402336", "0.5840131", "0.5828166", "0.5827968", "0.5822499", "0.5821256", "0.5818415", "0.5814411", "0.58122844", "0.5798751", "0.5788608", "0.5784906", "0.5781609", "0.5781146", "0.5780952", "0.5779381", "0.57789356", "0.577882", "0.57741815", "0.5773825", "0.57691747", "0.5766351", "0.5765269", "0.5765031", "0.576299" ]
0.6896307
3
Display copyrightpart in header.php
function circle_menu_copyright() { circle_primarymenu_copyright( '<div class="footer__copyright">', '</div>' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function renderCopyright() {\r\n\r\n\t$res = $this->getStaticPage('copyright');\r\n\t$this->template->title = $res['title'];\r\n\t$this->template->content = $res['content'];\r\n }", "public function get_copyright()\n {\n }", "public function get_copyright()\n {\n }", "public function get_copyright()\n {\n }", "public function getCopyright() {}", "public function getCopyright();", "function modify_left_copyright() {\n \t ?><p>© <?php echo date('Y'); ?> AI Scripts <a href=\"<?php echo admin_url();?>\" title=\"Login to the backend of WordPress.\" />Login.</a></p>\n \t<?php\n }", "function wpb_footer_copyright_text () {\n $copyright = '<div class=\"creditline\"><p>Copyright &copy;' . date('Y') . ' &middot; Michelle Bruno, Fork In The Road Blog - All Rights Reserved.</p></div>';\n return $copyright;\n}", "function cosmetro_footer_copyright() {\n\t$copyright = get_theme_mod( 'footer_copyright', cosmetro_theme()->customizer->get_default( 'footer_copyright' ) );\n\t$format = '<div class=\"footer-copyright\">%s</div>';\n\n\tif ( empty( $copyright ) ) {\n\t\treturn;\n\t}\n\n\tprintf( $format, wp_kses( cosmetro_render_macros( $copyright ), wp_kses_allowed_html( 'post' ) ) );\n}", "function copyright()\n {\n return \"<table border=\\\"0\\\" width=\\\"100%\\\" cellspacing=\\\"0\\\" cellpadding=\\\"2\\\">\".\"\\n\".\n \"<tr><td><br class=\\\"h10\\\"/></td></tr>\".\"\\n\".\n \"<tr><td align=\\\"center\\\" class=\\\"ppfooter\\\">E-Commerce Engine Copyright &copy; 2000-2004 <a href=\\\"http://www.oscommerce.com\\\" class=\\\"copyright\\\" target=\\\"_blank\\\">osCommerce</a><br/>osCommerce provides no warranty and is redistributable under the <a href=\\\"http://www.fsf.org/licenses/gpl.txt\\\" class=\\\"copyright\\\" target=\\\"_blank\\\">GNU General Public License</a></td></tr>\".\"\\n\".\n \"<tr><td><br class=\\\"h10\\\"/></td></tr><tr><td align=\\\"center\\\" class=\\\"ppfooter\\\"><a href=\\\"http://www.oscommerce.com\\\" target=\\\"_blank\\\" class=\\\"poweredByButton\\\"><span class=\\\"poweredBy\\\">Powered By</span><span class=\\\"osCommerce\\\">\" . PROJECT_VERSION . \"</span></a></td></tr><tr><td><br class=\\\"h10\\\"/></td></tr></table>\";\n }", "function atarr_do_copyright_text() {\n\n\t// Grab our customizer settings.\n\t$copyright_text = get_theme_mod( 'atarr_copyright_text' );\n\n\t// Stop if there's nothing to display.\n\tif ( ! $copyright_text ) {\n\t\treturn false;\n\t}\n\n\tob_start(); ?>\n\n\t<span class=\"copyright-text\">&#169; <?php echo intval( date( 'Y' ) ); ?> <?php echo wp_kses_post( $copyright_text ); ?></span>\n\t<?php\n\t\twp_nav_menu( array(\n\t\t\t'theme_location' => 'footer',\n\t\t\t'menu_id' => 'footer-menu',\n\t\t) );\n\t?>\n\n\t<?php\n\treturn ob_get_clean();\n}", "public function Copyright(){\n\t\treturn 'For The Win forums version 2.5 <br /> copyright &copy; FTW Entertainment LLC, 2008-'.date(\"Y\").', all rights reserved.';\n\t}", "function copyright($company, $year) {\n\tif ($year == date('Y')) {\n\t\t$date = $year;\n\t} else {\n\t\t$date = $year.' - '.date('Y');\n\t}\n\techo '&copy; '.$date.' '.$company.'. All rights reserved.';\n}", "public function getCopyrightMessage();", "function copyrightName() {\n\t\t\treturn stripslashes( wp_filter_post_kses(get_option($this->shortname.'_copyright_name')) );\n\t\t}", "function copyright($startYear){\n $currentYear = date('Y');\n if ($startYear < $currentYear) {\n $currentYear = date('y');\n return \"&copy; $startYear&ndash;$currentYear\";\n } else {\n return \"&copy; $startYear;\";\n }\n}", "function addFooter($year, $copyright)\n {\n $this->page .= <<<EOD\n<div align=\"center\">&copy; $year $copyright</div>\n</body>\n</html>\nEOD;\n }", "function footer() {\n\n\techo '<p>Copyright Dynamic Sites LLC 2012</p>';\n\t\n}", "public function getCopyrightSymbol();", "function header_meta() {\n\t/**\n\t * Filter the path used for the site's humans.txt attribution file\n\t *\n\t * @param string $humanstxt\n\t */\n\t$humanstxt = apply_filters( 'project_humans', Project_TEMPLATE_URL . '/humans.txt' );\n\n\techo '<link type=\"text/plain\" rel=\"author\" href=\"' . esc_url( $humanstxt ) . '\" />';\n}", "function displayCopyRight() {\t\t\r\n\t\techo '<div class=\"copyright\" style=\"text-align:center;margin-top: 5px;\"><a href=\"http://joomdonation.com/components/membership-pro.html\" target=\"_blank\"><strong>Membership Pro</strong></a> version 1.5.0, Copyright (C) 2010-2012 <a href=\"http://joomdonation.com\" target=\"_blank\"><strong>Ossolution Team</strong></a></div>' ;\r\n\t}", "function flawless_footer_copyright() {\r\n global $flawless;\r\n echo do_shortcode( nl2br( $flawless[ 'footer' ][ 'copyright' ] ) );\r\n }", "function circle_footer_copyright() {\n\tcircle_site_copyright( '<div class=\"footer__copyright\">', '</div>' );\n}", "function get_html($site_license = false) {\n\n // must have a license to display html\n if (is_null($this->license_type) || $this->license_type == 'none')\n return;\n \n $txt = 'This work is licensed under a '.l(t('Creative Commons License'), $this->license_uri, array('rel' => 'license', 'title' => $this->license_name)).\".\\n\";\n $html = \"\\n<!--Creative Commons License-->\\n\";\n if($site_license)\n $html .= \"<div id=\\\"ccFooter\\\">\\n\";\n\n // site license header (with copyright year(s))\n if ($site_license) {\n if(!$start_year = variable_get('creativecommons_start_year', NULL)) {\n $start_year = date('Y');\n variable_set('creativecommons_start_year', $start_year);\n }\n $this_year = date('Y');\n if($start_year < date('Y'))\n $copy_years = $start_year.'-'.$this_year;\n else\n $copy_years = $start_year;\n $html .= 'Copyright &copy; '.$copy_years.', Some Rights Reserved<br />';\n }\n\n // construct images + links\n if ($img = $this->get_images($site_license)) {\n foreach ($img as $img_tag)\n $html .= l($img_tag, $this->license_uri, array('rel' => 'license'), NULL, NULL, FALSE, TRUE) . \"\\n\";\n $html .= '<br />';\n }\n\n // display site footer text\n $html .= $txt;\n if($site_license) {\n if($footer_text = variable_get('creativecommons_site_footer_text', NULL))\n $html .= '<br />'.$footer_text;\n $html .= \"</div>\\n\";\n }\n $html .= \"<!--/Creative Commons License-->\\n\";\n\n return $html;\n }", "function addRedirectorCopyright()\n{\n global $context;\n\n if ($context['current_action'] == 'credits') {\n $context['copyrights']['mods'][] = '<a href=\"https://mysmf.net/mods/redirector\" target=\"_blank\">Redirector</a> &copy; 2015-2020, digger';\n }\n}", "public function header($text)\n {\n return '\n\n\t<!-- MAIN Header in page top -->\n\t<h1 class=\"t3js-title-inlineedit\">' . htmlspecialchars($text) . '</h1>\n';\n }", "function header_meta() {\n\t/**\n\t * Filter the path used for the site's humans.txt attribution file\n\t *\n\t * @param string $humanstxt\n\t */\n\t$humanstxt = apply_filters( 'additive_humans', ADDITIVE_TEMPLATE_URL . '/humans.txt' );\n\n\techo '<link type=\"text/plain\" rel=\"author\" href=\"' . esc_url( $humanstxt ) . '\" />';\n}", "public function getCopyright(): string\n {\n return (string) $this->copyright;\n }", "function comicpress_copyright()\n{\n global $wpdb;\n $copyright_dates = $wpdb->get_results(\"\nSELECT\nYEAR(min(post_date_gmt)) AS firstdate,\nYEAR(max(post_date_gmt)) AS lastdate\nFROM\n$wpdb->posts\nWHERE\npost_status = 'publish'\n\");\n $output = '';\n if ($copyright_dates) {\n $copyright = '&copy; '.$copyright_dates[0]->firstdate;\n if ($copyright_dates[0]->firstdate != $copyright_dates[0]->lastdate) {\n $copyright .= '-'.$copyright_dates[0]->lastdate;\n }\n $output = $copyright;\n }\n\n return $output;\n}", "function barjeel_copyright() {\n\tglobal $wpdb;\n\t\t\t$copyright_dates = $wpdb->get_results(\"\n\t\t\t\t\tSELECT\n\t\t\t\t\tYEAR(min(post_date_gmt)) AS firstdate,\n\t\t\t\t\tYEAR(max(post_date_gmt)) AS lastdate\n\t\t\t\t\tFROM\n\t\t\t\t\t$wpdb->posts\n\t\t\t\t\tWHERE\n\t\t\t\t\tpost_status = 'publish'\n\t\t\t\");\n\n\t\t\t$output = '';\n\n\t\t\tif($copyright_dates) {\n\t\t\t\t$copyright = \"&copy; \" . $copyright_dates[0]->firstdate;\n\n\t\t\tif($copyright_dates[0]->firstdate != $copyright_dates[0]->lastdate) {\n\t\t\t\t$copyright .= '-' . $copyright_dates[0]->lastdate;\n\t\t\t}\n\t\t\t$output = $copyright;\n\t\t}\n\treturn $output;\n}", "function wp_dynamic_copyright() {\n\tglobal $wpdb;\n\t$copyright_dates = $wpdb->get_results(\"\n\tSELECT\n\tYEAR(min(post_date_gmt)) AS firstdate,\n\tYEAR(max(post_date_gmt)) AS lastdate\n\tFROM\n\t$wpdb->posts\n\tWHERE\n\tpost_status = 'publish'\n\t\");\n\t$output = '';\n\tif($copyright_dates) {\n\t\t$copyright = \"&copy; \" . $copyright_dates[0]->firstdate;\n\tif($copyright_dates[0]->firstdate != $copyright_dates[0]->lastdate) {\n\t\t$copyright .= ' &ndash; ' . $copyright_dates[0]->lastdate;\n\t}\n $copyright .= ' <a href=\"' . get_bloginfo('url') .'\" title=\"' . get_bloginfo('description') .' | ' . get_bloginfo('name') .'\">' . get_bloginfo('name') .'</a>';\n\t$output = $copyright;\n\t}\n\treturn $output;\n}", "function getFooter()\n{\n global $rAdminSettings, $rPermissions, $rSettings, $rRelease, $rEarlyAccess, $_;\n if ($rPermissions[\"is_admin\"]) {\n $version = \"Version : \" . $rRelease . \" Based On Xtream UI 22F\";\n if ($rAdminSettings['show_version'] == 0) {\n $version = \" Based On Xtream UI 22F\";\n }\n return $_[\"copyright\"] . \" &copy; \" . date(\"Y\") . \" - \" . $rAdminSettings['site_title'] . \" - \" . $version;\n } else {\n return $rSettings[\"copyrights_text\"];\n }\n}", "function display_header_text()\n {\n }", "public function getCopyright()\n\t{\n\n\t\treturn $this->copyright;\n\t}", "protected function getHeaderPart()\n {\n //$logo_url = ot_get_option('header_logo', 'img/logo.jpg');\n ?>\n <?= $this->version151101() ?>\n <?= $this->getBannerPart() ?>\n <?php\n }", "public function template_header() {\n\t\tget_header( 'course' );\n\t}", "public static function Zf_ApplicationCopyright(){\n \n $zf_applicationcopyright = Zf_Configurations::Zf_ApplicationStatus();\n \n echo $zf_applicationcopyright['application_copyright'];\n \n }", "private function _header($text){\n echo '[*] ' . $text . PHP_EOL;\n }", "function gec_copyrightYears($startYr = '') {\n // if startYr is greater than current year, return current year\n if ($startYr >= date(\"Y\")) {\n return ('<p>&copy ' . date(\"Y\") . '</p>');\n }\n // get current year and format as 2 digits if start year provided\n if ($startYr) {\n $currentYr = date(\"y\");\n }\n // otherwise, format as four digits and return\n else {\n return ('<p>&copy ' . date(\"Y\") . '</p>');\n }\n // return start year as 4 digits - current year as 2 digits\n /* @var $currentYr type */\n return ('<p>&copy ' . $startYr . '-' . $currentYr . '</p>' );\n}", "function display_header() {}", "function creativa_credit() {\n ?>\n\n <div class=\"bottom-footer-wrap clearfix\">\n\n <div class=\"store-container\">\n\n <div class=\"site-info\">\n <?php $copyright = get_theme_mod( 'storevilla_footer_copyright' );\n if( !empty( $copyright ) ) { ?>\n <?php echo wp_kses_post($copyright) ; ?>\n <?php } else { ?>\n <?php echo apply_filters( 'storevilla_copyright_text', $content = '&copy; ' . date_i18n( 'Y' ) . ' - ' . get_bloginfo( 'name' ) ); ?>\n <?php } ?>\n </div><!-- .site-info -->\n <?php\n}", "function createFooter($rightsReserved){\n echo\"<footer>\",\n \"<p><i>Copyright &copy 2014 {$rightsReserved}</i></p>\",\n \"<p><i>All Rights Reserved</i></p>\",\n \"</footer>\",\n \"</body>\",\n \"</html>\";\n}", "abstract public function header();", "public function header()\n {\n echo \"<!doctype html>\\n<html lang='pt'>\\n<head>\\n\";\n echo \"\\t<meta charset='UTF-8'>\\n\";\n echo \"\\t<title>{$this->controller->getTitle()}</title>\\n\";\n $this->links();\n echo \"</head>\\n<body>\\n\";\n }", "public static function header_output() {\n\t\tob_start();\n\n\t\tif ( self::options( 'header_type' ) == 'navbar-fixed-top' ) {\n\t\t\techo 'body{padding-top: 50px;}';\n\t\t}\n\n\t\tif ( ! display_header_text() ) {\n\t\t\techo '#site-title,.site-description{position: absolute;clip: rect(1px, 1px, 1px, 1px);}';\n\t\t} else {\n\t\t\tself::generate_css( '#site-title', 'color', 'header_textcolor', '#' );\n\t\t}\n\t\t$extra_css = apply_filters( 'maketador_header_output', ob_get_clean() );\n\t\tif ( ! empty( $extra_css ) ) {\n\t\t\techo '<style type=\"text/css\">' . $extra_css . '</style>';\n\t\t}\n\t\t?>\n\t\t<?php\n\t}", "private function do_header() {\n $m_header = '';\n $m_header .= '<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />';\n $m_header .= '<meta http-equiv=\"Content-Language\" content=\"en-gb\" />';\n // $m_header .= '<link rel=stylesheet href=' . $this->c_path . '/../css/reset.css type=text/css />';\n // $m_header .= '<link rel=stylesheet href=' . $this->c_path . '/../css/style.css type=text/css />';\n $this->c_header = $m_header;\n }", "function header_meta() {\n\t$humans = '<link type=\"text/plain\" rel=\"author\" href=\"' . WPDOC_HLTR_URL . '/humans.txt\" />';\n\n\techo apply_filters( 'wpd_humans', $humans );\n}", "function fiftyone_degrees_get_copyright_notice($headers) {\n $notice = fiftyone_degrees_read_ascii($headers['info']['copyright_offset'], $headers);\n return $notice;\n}", "function grd_footer_text() {\n\techo '© Desenvolvido por <a href=\"http://granada.ag\">Granada</a>';\n}", "function anva_footer_text_default() {\n\tprintf(\n\t\t'<p class=\"copyrights__text\">&copy; %1$s <strong>%2$s</strong> %3$s %4$s %5$s.</p>',\n\t\tanva_get_current_year( apply_filters( 'anva_footer_year', date( 'Y' ) ) ),\n\t\tget_bloginfo( 'name' ),\n\t\tanva_get_local( 'footer_copyright' ),\n\t\tapply_filters( 'anva_footer_credits', anva_get_local( 'footer_text' ) ),\n\t\tapply_filters( 'anva_footer_author', '<a href=\"'. esc_url( 'http://anthuanvasquez.net/') .'\">Anthuan Vásquez</a>' )\n\t);\n}", "function printHeader($text) {\n \treturn \"<h2>\".$text.\"</h2>\";\n }", "public static function show_header() {\n require_once Config::get('prefix') . '/templates/header.inc.php';\n }", "private function pageheader_print() {\n\t\tif (defined('DEBUG_ENABLED') && DEBUG_ENABLED && (($fargs=func_get_args())||$fargs='NOARGS'))\n\t\t\tdebug_log('Entered (%%)',129,0,__FILE__,__LINE__,__METHOD__,$fargs);\n\n\t\t# HTML prepage requirements.\n\t\tforeach ($this->_pageheader as $line)\n\t\t\techo $line.\"\\n\";\n\n\t\t# Page Title\n\t\techo '<head>';\n\t\tprintf('<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />');\n\n\t\t$DNs = get_request('dn','REQUEST');\n\t\tif (is_array($DNs))\n\t\t\t$DNs = '';\n\n\t\tif (isset($_SESSION[APPCONFIG]))\n\t\t\tprintf('<title>%s (%s) - %s%s</title>',\n\t\t\t\t$this->_app['title'],\n\t\t\t\tapp_version(),\n\t\t\t\t$DNs ? htmlspecialchars($DNs).' ' : '',\n\t\t\t\t$_SESSION[APPCONFIG]->getValue('appearance','page_title'));\n\t\telse\n\t\t\tprintf('<title>%s - %s</title>',$this->_app['title'],app_version());\n\n\t\techo '<link rel=\"shortcut icon\" href=\"images/favicon.ico\" type=\"image/vnd.microsoft.icon\" />';\n\t\t# Style sheet.\n\t\tprintf('<link type=\"text/css\" rel=\"stylesheet\" href=\"%s\" />',$this->_app['urlcss']);\n\n\t\tif (defined('JSDIR')) {\n\t\t\tprintf('<link type=\"text/css\" rel=\"stylesheet\" media=\"all\" href=\"%sjscalendar/calendar-blue.css\" title=\"blue\" />',JSDIR);\n\t\t\techo \"\\n\";\n\t\t\tprintf('<script type=\"text/javascript\" src=\"%sajax_functions.js\"></script>',JSDIR);\n\t\t\tprintf('<script type=\"text/javascript\" src=\"%sjscalendar/calendar.js\"></script>',JSDIR);\n\t\t\techo \"\\n\";\n\t\t}\n\n\t\t# HTML head requirements.\n\t\tif (is_array($this->_head) && count($this->_head))\n\t\t\tforeach ($this->_head as $line)\n\t\t\t\techo $line.\"\\n\";\n\n\t\techo '</head>';\n\t\techo \"\\n\";\n\t}", "abstract protected function header();", "function storefront_footer_site_info()\n {\n ?>\n <div class=\"content-copyright text-center\" itemprop=\"streetAddress\">Central Jakarta, Indonesia</div>\n <div class=\"content-copyright text-center\">Developed by <a target=\"_blank\" href=\"https://taufiqelrahman.com\">taufiqelrahman.com</a>.</div>\n <?php\n }", "public function getHeaderText()\n {\n return Mage::helper('jaro_bibleteacher')->__('Bible');\n }", "function pro_copyright() {\n\t\n\t$pro = get_option ( 'up_themes_betty_commerce_wordpress_theme' );\n\t\n\tif( !empty( $pro['copyright_footer'] ) )\n\t{\n\t\treturn $pro['copyright_footer'];\n\t}\n\treturn false;\n}", "public function get_licence()\n {\n return 'MIT License';\n }", "public function header_output() {\n\n\t\t?>\n\t\t<style type='text/css'>\n\t\t\t#site-footer {\n\t\t\t\tbackground-color:#<?php echo get_theme_mod('footer_bg_color') ?> ;\n\t\t\t}\n\t\t</style>\n\t\t<?php\n\n\n\t}", "abstract protected function header( $code, $authors );", "public function getHeaderText() \n {\n\tif ($this->_coreRegistry->registry('simpleblog_author')->getId()) \n\t{\n\t\t return __(\"Edit Author '%1'\", $this->escapeHtml($this->_coreRegistry->registry('simpleblog_author')->getTitle()));\n\t} else { return __('New Author'); }\n\t\n }", "function myheader($additionalHeaderContent = NULL) {\n\t\tprint '<html>';\n\t\t\tprint '<head>';\n\t\t\t\tprint '<title>';\n\t\t\t\t\tif (defined('TITLE')) {\n\t\t\t\t\t\tprint TITLE;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tprint 'MiddleClik';\n\t\t\t\t\t}\n\t\t\t\tprint '</title>';\n\t\t\t\tprint \"<meta http-equiv=\\\"content-type\\\" content=\\\"text/html; charset=utf-8\\\" />\";\n\t\t\t\tprint $additionalHeaderContent;\n\t\t\t\tprint \"<style type=\\\"text/css\\\">\";\n\t\t\t\t\tprint '//this is where my css, js goes';\n\t\t\t\tprint \"</style>\";\n\t\t\tprint '</head>';\n\t}", "function autoUpdatingCopyright($startYear){\n $startYear = intval($startYear);\n \n // current year (e.g. 2007)\n $year = intval(date('Y'));\n \n // is the current year greater than the\n // given start year?\n if ($year > $startYear)\n return $startYear .'-'. $year;\n else\n return $startYear;\n}", "function autoUpdatingCopyright($startYear){\n $startYear = intval($startYear);\n \n // current year (e.g. 2007)\n $year = intval(date('Y'));\n \n // is the current year greater than the\n // given start year?\n if ($year > $startYear)\n return $startYear .'-'. $year;\n else\n return $startYear;\n}", "function title() {\n ?>\n <h2><?php _e(SCLNG_PUBLIC_PRODUCT_INFO, SC_DOMAIN); ?></h2>\n <?php\n }", "function Header() {\r\n // print the title\r\n $this->SetTitleFont();\r\n $this->Cell(100, 8, $this->title, 0, 0, \"L\");\r\n\r\n // print the author\r\n $this->SetAuthorFont();\r\n $this->Cell(0, 8, $this->author, 0, 0, \"R\");\r\n\r\n // header line\r\n $this->SetFillColor(0, 0, 0);\r\n $this->Rect(10, 17, 190, 0.2, \"F\");\r\n $this->Rect(10, 17.5, 190, 0.2, \"F\");\r\n $this->Ln(14);\r\n }", "function lightseek_homepage_header() {\n\techo '<header class=\"entry-header\">';\n\t\tlightseek_post_header();\n\techo '</header>';\n}", "private function displayHeader()\n {\n\n $html = '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">' . \"\\n\";\n $html .= '<html xmlns=\"http://www.w3.org/1999/xhtml\">';\n $html .= '<head>' . \"\\n\";\n\n //Meta tags\n $html .= '<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />' . \"\\n\";\n $html .= '<meta name=\"description\" content=\"' . $this->pageInfo['pageDescription'] . '\" />' . \"\\n\";\n $html .= '<meta name=\"keywords\" content=\"jobs, freelance, work, design, freedom, choice, new zealand, quality\" />' . \"\\n\";\n $html .= '<link rel=\"icon\" type=\"image/png\" href=\"images/volition-icon.png\" />' . \"\\n\";\n\n //Stylesheets\n $html .= '<!-- Stylesheets -->' . \"\\n\";\n $html .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"css/styles.css\" />' . \"\\n\";\n $html .= '<!--[if lt IE 9]>' . \"\\n\";\n $html .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"css/ie.css\" />' . \"\\n\";\n $html .= '<![endif]-->' . \"\\n\";\n\n //Scripts\n //$html .= '<script type=\"text/javascript\" src=\"js/window.js\"></script>'.\"\\n\";\n\n //Page title\n $html .= '<title>Volition | ' . $this->pageInfo['pageTitle'] . '</title>' . \"\\n\";\n $html .= '</head>' . \"\\n\";\n $html .= '<body>' . \"\\n\";\n\n //Header\n $html .= '<div id=\"header\">' . \"\\n\";\n\n //Control buttons\n\n $html .= '<div id=\"headerImg\"><a href=\"index.php?page=home\"></a></div>' . \"\\n\";\n\n if ($this->model->userLoggedIn) {\n $html .= '<p class=\"controlButton\"><a href=\"index.php?page=logout\">Logout</a></p>' . \"\\n\";\n $html .= '<p class=\"userControl\">You are logged in as ' . $_SESSION['userName'] . '</p>' . \"\\n\";\n } else {\n $html .= '<p class=\"controlButton\"><a href=\"index.php?page=login\">Login</a></p>' . \"\\n\";\n $html .= '<p class=\"controlButton\"><a href=\"index.php?page=register\">Register</a></p>' . \"\\n\";\n }\n\n $html .= '<form id=\"searchForm\" method=\"post\" action=\"index.php?page=search\">';\n if ($_POST['searchInput']) {\n $html .= '<input type=\"text\" name=\"searchInput\" id=\"searchInput\" value=\"' . $_POST['searchInput'] . '\" />';\n } else {\n $html .= '<input type=\"text\" name=\"searchInput\" id=\"searchInput\" value=\"Search...\" />';\n }\n $html .= '<input type=\"submit\" class=\"submit\" name=\"searchSubmit\" id=\"searchSubmit\" value=\"Go\" />';\n $html .= '</form>';\n\n //Navbar\n $html .= $this->displayNav();\n\n $html .= '</div>' . \"\\n\";\n //Content tags\n $html .= '<div id=\"container\">' . \"\\n\";\n $html .= '<div id=\"content\" >' . \"\\n\";\n\n return $html;\n\n }", "function remove_footer_admin () {\n echo '&copy; - Aleksandr Gryshko Theme';\n}", "function admin_footer () {\n\techo '<a href=\"http://www.drumcreative.com\" target=\"_blank\">&copy;' . date('Y') . ' Drum Creative</a>';\n}", "protected function generatePageHeader($headline = \"\") \r\n {\r\n $headline = htmlspecialchars($headline);\r\n header(\"Content-type: text/html; charset=UTF-8\");\r\n \r\n // including the individual headline\r\n \r\n echo <<<HTML\r\n<!DOCTYPE html>\r\n <html lang=\"de\">\r\n <head>\r\n <meta charset=\"utf-8\" />\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\r\nHTML;\r\n if ($headline == 'City Wok - Kunde') {\r\n echo <<<HTML\r\n <meta http-equiv=\"refresh\" content=\"5\" />\r\nHTML;\r\n }\r\n echo <<<HTML\r\n <link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"favicon.ico\" />\r\n <link href=\"CityWok.css\" type=\"text/css\" rel=\"stylesheet\" media=\"screen\" />\r\n <title>$headline</title>\r\n </head>\r\n <body id=\"main\"> \r\n <header>\r\n <nav class=\"navbar\">\r\n <span class=\"open-slide\">\r\n <a href=\"#\" onclick=\"openSlideMenu()\">\r\n <svg width=\"30\" height=\"30\">\r\n <path d=\"M0,5 30,5\" stroke=\"#ec7f37\" stroke-width=\"5\" />\r\n <path d=\"M0,14 30,14\" stroke=\"#ec7f37\" stroke-width=\"5\" />\r\n <path d=\"M0,23 30,23\" stroke=\"#ec7f37\" stroke-width=\"5\" />\r\n </svg>\r\n </a>\r\n </span>\r\n\r\n <ul class=\"navbar-nav\">\r\n <li><a href=\"Index.php\">Bestellung</a></li>\r\n <li><a href=\"Kunde.php\">Kunde</a></li>\r\n <li><a href=\"kueche.html\">Küche</a></li>\r\n <li><a href=\"Fahrer.php\">Fahrer</a></li>\r\n </ul>\r\n </nav>\r\n </header>\r\n\r\n <article class=\"content\">\r\n <div id=\"side-menu\" class=\"side-nav\">\r\n <a href=\"#\" class=\"btn-close\" onclick=\"closeSlideMenu()\">&times;</a>\r\n <a href=\"Index.php\">Bestellung</a>\r\n <a href=\"Kunde.php\">Kunde</a>\r\n <a href=\"kueche.html\">Küche</a>\r\n <a href=\"Fahrer.php\">Fahrer</a>\r\n </div>\r\n \r\n \r\n <div class=\"title\">\r\n <img src=\"city-wok-guy-head.png\" alt=\"\" title=\"CityWok\" class=\"logo\" />\r\n <h1>CITY WOK</h1>\r\n <img src=\"city-wok-guy-head.png\" alt=\"\" title=\"CityWok\" class=\"logo\" />\r\n </div>\r\nHTML;\r\n }", "function header($title=false) {\n\t\tif(!$title) {\n\t\t\t$title = 'Beerlogger';\n\t\t}\n\t\tob_start();\n\t\tinclude('templates/header.php');\n\t\t$output = ob_get_clean();\n\t\treturn $output;\n\t}", "public function get_licence()\n {\n return 'GPL';\n }", "function print_header()\n{\n print '<?xml version=\"1.0\" encoding=\"UTF-8\"?>' . \"\\n\";\n print '<!DOCTYPE XHTML PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" ';\n print '\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> ' . \"\\n\";\n print '<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">' . \"\\n\";\n print \"<head>\\n\";\n include_once( \"google_analytics.php\" );\n print \" <title>Tom H.'s Photos</title>\\n\";\n print ' <link rel=\"stylesheet\" href=\"../../basic_styles.css\">\\n';\n print ' <link rel=\"stylesheet\" href=\"local_styles.css\">\\n';\n print \"</head>\\n\";\n print \"<body>\\n\";\n}", "function new_footer($name=\"Default\", $mysqli){\n\t\techo \"<br /><br /><br />\";\n\t echo \"<h4><div class='text-center'><small>Copyright \".date(\"M Y\").\", \".$name.\"</small></div></h4>\";\n\t\techo \"</body>\";\n\t\techo \"</html>\";\n\t\t$mysqli -> close;\n\t}", "function Wfc_Developer_Footer( $text ){\n global $wp_version, $wfc_version;\n $wfc_versions = \"WP ver: \".$wp_version.\" | WFC ver: \".$wfc_version;\n $text = '<span id=\"footer-thankyou\" class=\"wfc-admin-footer\">WFC Developer. '.$wfc_versions.'</span>';\n return $text;\n }", "public function setCopyright($copyright) {\n\t\t$this->copyright = $copyright;\n\t}", "function copyright_load_widget() {\n register_widget( 'copyright_widget' );\n}", "function Header(){\n\t\t}", "public function getHeaderText()\n {\n return __('Import Testimonials');\n }", "function devindavid_add_site_info() {\n\t\t\n\t\t$site_info = sprintf(\n\t\t\t\n\t\t\t'<div id=\"copyrights\" class=\"noselect\">\n\t\t\t<span>©%1$s </span>\n\t\t\t<span class=\"footerLogo\" style=\"margin: 0 0 0 6px; display:inline-block; color:transparent;\">%2$s</span>\n\t\t\t</div>',\n\t\t\t\n\t\t\tsprintf( esc_html__( '%s', 'devindavid' ),\n\t\t\t\t'2021'\n\t\t\t),\n\t\t\tsprintf( esc_html__( '%s', 'devindavid' ),\n\t\t\t\t'Devin David'\n\t\t\t)\n\t\t);\n\n\t\techo apply_filters( 'devindavid_site_info_content', $site_info ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped\n\t}", "function msdlab_pre_header(){\n print '<div class=\"pre-header\">\n <div class=\"wrap\">';\n do_action('msdlab_pre_header');\n print '\n </div>\n </div>';\n }", "public function setCopyright($v)\n\t{\n\r\n\t\t// Since the native PHP type for this column is string,\r\n\t\t// we will cast the input to a string (if it is not).\r\n\t\tif ($v !== null && !is_string($v)) {\r\n\t\t\t$v = (string) $v; \r\n\t\t}\r\n\n\t\tif ($this->copyright !== $v) {\n\t\t\t$this->copyright = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::COPYRIGHT;\n\t\t}\n\n\t}", "function displayHeader()\n\t{\n\t\t// output locator\n\t\t$this->displayLocator();\n\n\t\t// output message\n\t\tif($this->message)\n\t\t{\n\t\t\tilUtil::sendInfo($this->message);\n\t\t}\n\t\tilUtil::infoPanel();\n\n//\t\t$this->tpl->setTitleIcon(ilUtil::getImagePath(\"icon_pd_b.gif\"),\n//\t\t\t\"\");\n\t\t$this->tpl->setTitle($this->lng->txt(\"bookmarks\"));\n\t}", "public function docHeaderContent() {}", "public function printHeader() {\n\t\t$template = self::$templates[$this->templateName];\n\t\trequire_once $template['path'] . $template['file-header'];\n\t}", "function publisher_cpHeader()\r\n{\r\n xoops_cp_header();\r\n\r\n //cannot use xoTheme, some conflit with admin gui\r\n echo '<link type=\"text/css\" href=\"' . PUBLISHER_URL . '/css/jquery-ui-1.7.1.custom.css\" rel=\"stylesheet\" />\r\n <link type=\"text/css\" href=\"' . PUBLISHER_URL . '/css/publisher.css\" rel=\"stylesheet\" />\r\n <script type=\"text/javascript\" src=\"' . PUBLISHER_URL . '/js/funcs.js\"></script>\r\n <script type=\"text/javascript\" src=\"' . PUBLISHER_URL . '/js/cookies.js\"></script>\r\n <script type=\"text/javascript\" src=\"' . XOOPS_URL . '/browse.php?Frameworks/jquery/jquery.js\"></script>\r\n <script type=\"text/javascript\" src=\"' . PUBLISHER_URL . '/js/ui.core.js\"></script>\r\n <script type=\"text/javascript\" src=\"' . PUBLISHER_URL . '/js/ui.tabs.js\"></script>\r\n <script type=\"text/javascript\" src=\"' . PUBLISHER_URL . '/js/ajaxupload.3.9.js\"></script>\r\n <script type=\"text/javascript\" src=\"' . PUBLISHER_URL . '/js/publisher.js\"></script>\r\n ';\r\n}", "function Header()\n{\n\tglobal $title;\n\t$this->Ln(5);\n}", "public function get_licence()\n {\n return 'Licensed on the same terms as Composr';\n }", "public function get_licence()\n {\n return 'Licensed on the same terms as Composr';\n }", "public function get_licence()\n {\n return 'Licensed on the same terms as Composr';\n }", "public function get_licence()\n {\n return 'Licensed on the same terms as Composr';\n }", "public function get_licence()\n {\n return 'Licensed on the same terms as Composr';\n }", "public function get_licence()\n {\n return 'Licensed on the same terms as Composr';\n }", "function head() {\n\n\techo '<h1>ATOM.CMS</h1>';\n\t\n}", "function auxin_footer_copyright_markup( $echo = false ){\n global $post;\n\n $output = '';\n $copyright_text = ! empty( $post->ID ) ? auxin_get_post_meta( $post, 'page_footer_copyright', '') : '';\n $copyright_text = empty( $copyright_text ) ? auxin_get_option( 'copyright' ): $copyright_text ;\n\n if( $copyright_text ) {\n $date_format = 'Y'; // to pass theme check plugin\n $copyright_text = str_replace( array( '{{Y}}', '{{sitename}}' ), array( date_i18n( $date_format ), get_bloginfo( 'name' ) ), $copyright_text );\n $output .= '<small>' . do_shortcode( stripslashes( $copyright_text ) ) . '</small>';\n }\n\n $attribution = auxin_get_post_meta( $post, 'page_footer_attribution', 'default') ;\n $attribution = 'default' === $attribution ? auxin_get_option( 'attribution', false ) : $attribution;\n\n if ( auxin_is_true( $attribution ) ) {\n $output .= sprintf( '<small class=\"aux-attribution\"> %1$s <a href=\"https://wordpress.org/themes/phlox/\" title=\"%2$s\"> %3$s </a></small>',\n __( 'Powered by', 'phlox' ),\n __( 'Phlox Free WordPress Theme', 'phlox' ),\n __( 'Phlox Theme', 'phlox' )\n );\n }\n\n // Prints the policy markup in site footer\n if( auxin_get_option( 'footer_privacy_policy_link_display', 0 ) ){\n if ( function_exists( 'the_privacy_policy_link' ) ) {\n $output .= get_the_privacy_policy_link( '<small class=\"aux-privacy-policy\">', '</small>' );\n } else {\n $output .= sprintf( '<small class=\"aux-privacy-policy\">%s</small>', __( 'WordPress version 4.9.6 or higher is required for this feature.', 'phlox') );\n }\n }\n\n if( $echo ){\n echo $output;\n } else {\n return $output;\n }\n}", "protected function output_header() {\n include dirname( __FILE__ ) . '/views/html-csv-import-header.php';\n }", "function get_header($title, $login = 0) {\r\n\t\trequire_once('theme_parts/header.php');\r\n\t}", "function aitpro_login_footer() {\necho '<div id=\"footer\" class=\"row\">';\necho '<div class=\"sixteen columns\">';\necho '<div class=\"copyright\">Copyright &copy;'.date('Y').' '.bloginfo('name').'</div>';\necho '</div></div>';\n}", "function giveheader($title=\"Collabor8r: Encouraging Interdisciplinary Collaboration\", $canonicalurl=\"http://collabor8r.com/\"){\n\theader('Content-Type: text/html; charset=utf-8');\n\t//Put in the DOCTYPE\n\t//include the needed javascripts\n\t//include the needed stylesheets\n\n\t$headdiv=getheaddiv();\n\techo <<<END\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html>\n\t<head>\n\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"/css/collabor8r.css\" />\n\t\t<script type=\"text/javascript\" src=\"/js/md5.js\"></script>\n\t\t<script type=\"text/javascript\" src=\"/js/r8r.js\"></script>\n\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n <link rel=\"canonical\" href=\"$canonicalurl\" />\n\t\t<title>$title</title>\n\t</head>\n\t<body>\n $headdiv\n <div class=\"bigwrap\">\n\t\t\t<div id=\"contentdiv\" class=\"content\">\n\t\t\t\t<noscript>\n\t\t\t\t\tPlease turn on Javascript to Collabor8.\n\t\t\t\t</noscript>\nEND;\n}" ]
[ "0.8146702", "0.76167554", "0.7616294", "0.7615639", "0.75872755", "0.7555238", "0.75181115", "0.74820715", "0.74807054", "0.74253595", "0.7395355", "0.7383543", "0.72980267", "0.7252001", "0.7175451", "0.7127445", "0.7117811", "0.69320405", "0.69008374", "0.6858481", "0.68250406", "0.67981565", "0.6737366", "0.6705316", "0.6630014", "0.6630003", "0.6628685", "0.6617641", "0.6586395", "0.65859246", "0.6573141", "0.65477574", "0.65415466", "0.6530576", "0.6523091", "0.64826477", "0.647585", "0.6443917", "0.64006484", "0.63943386", "0.6386931", "0.62839586", "0.626516", "0.6260944", "0.6258549", "0.62467617", "0.62307", "0.6228741", "0.6220014", "0.6205634", "0.6188666", "0.61868984", "0.61811846", "0.6171455", "0.61552066", "0.6152999", "0.61496025", "0.61356986", "0.61274445", "0.610958", "0.6106563", "0.60859865", "0.6082285", "0.6082285", "0.6075348", "0.60622776", "0.60592085", "0.6048256", "0.60405666", "0.6018181", "0.6014641", "0.6006483", "0.59982634", "0.5978195", "0.59736115", "0.5959735", "0.59584415", "0.5957903", "0.5944396", "0.5943076", "0.5939855", "0.5931729", "0.5929797", "0.592979", "0.5924998", "0.5924963", "0.5918673", "0.59156764", "0.59141886", "0.59141886", "0.59141886", "0.59141886", "0.59141886", "0.59141886", "0.59053105", "0.5902973", "0.59029454", "0.5898618", "0.58898824", "0.5886759" ]
0.6706457
23
Display social sharing in single.
function circle_display_single_sharing() { if ( ! circle_option( 'display_single_sharing' ) ) { return; } get_template_part( 'template-parts/post-social-sharing' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function displayFastSocialSharing($content = null)\n {\n global $post;\n\n // Get current page URL\n $fssURL = urlencode(get_permalink());\n\n // Get current page title\n $fssTitle = str_replace(' ', '%20', get_the_title());\n\n // Get Post Thumbnail for pinterest\n //$fssThumbnail = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full');\n if (is_page() || is_single()) {\n $fssThumbnail = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full');\n } else {\n $fssThumbnail[0] = '';\n }\n\n // Construct sharing URL without using any script\n $twitterURL = 'https://twitter.com/intent/tweet?text='.$fssTitle.'&amp;url='.$fssURL;\n $facebookURL = 'https://www.facebook.com/sharer/sharer.php?u='.$fssURL;\n $googleURL = 'https://plus.google.com/share?url='.$fssURL;\n //$bufferURL = 'https://bufferapp.com/add?url='.$fssURL.'&amp;text='.$fssTitle;\n //$whatsappURL = 'whatsapp://send?text='.$fssTitle . ' ' . $fssURL;\n //$linkedInURL = 'https://www.linkedin.com/shareArticle?mini=true&url='.$fssURL.'&amp;title='.$fssTitle;\n $pinterestURL = 'https://pinterest.com/pin/create/button/?url='.$fssURL.'&amp;media='.$fssThumbnail[0].'&amp;description='.$fssTitle;\n $emailURL = 'mailto:?&subject='.$fssTitle.'&body='.$fssURL;\n\n // Add sharing button at the end of page/page content\n $content .= '<div class=\"fss-social\">';\n\n //$content .= '<h5>SHARE ON</h5> <a class=\"fss-link fss-twitter\" href=\"'. $twitterURL .'\" target=\"_blank\">Twitter</a>';\n //$content .= '<a class=\"fss-link fss-facebook\" href=\"'.$facebookURL.'\" target=\"_blank\">Facebook</a>';\n //$content .= '<a class=\"fss-link fss-whatsapp\" href=\"'.$whatsappURL.'\" target=\"_blank\">WhatsApp</a>';\n //$content .= '<a class=\"fss-link fss-googleplus\" href=\"'.$googleURL.'\" target=\"_blank\">Google+</a>';\n //$content .= '<a class=\"fss-link fss-buffer\" href=\"'.$bufferURL.'\" target=\"_blank\">Buffer</a>';\n //$content .= '<a class=\"fss-link fss-linkedin\" href=\"'.$linkedInURL.'\" target=\"_blank\">LinkedIn</a>';\n //$content .= '<a class=\"fss-link fss-pinterest\" href=\"'.$pinterestURL.'\" data-pin-custom=\"true\" target=\"_blank\">Pin It</a>';\n\n $content .= '<h5>SHARE ON</h5><a class=\"fss-link fss-facebook\" href=\"'.$facebookURL.'\" target=\"_blank\"></a>';\n $content .= '<a class=\"fss-link fss-twitter\" href=\"'. $twitterURL .'\" target=\"_blank\"></a>';\n $content .= '<a class=\"fss-link fss-googleplus\" href=\"'.$googleURL.'\" target=\"_blank\"></a>';\n $content .= '<a class=\"fss-link fss-pinterest\" href=\"'.$pinterestURL.'\" data-pin-custom=\"true\" target=\"_blank\"></a>';\n $content .= '<a class=\"fss-link fss-email\" href=\"'.$emailURL.'\" target=\"_blank\"></a>';\n $content .= '</div>';\n\n return $content;\n }", "function ejo_social_share() {\n ?>\n <aside class=\"social-share\">\n <h3>Deel dit bericht</h3>\n <a target=\"_blank\" title=\"Share on Twitter\" href=\"https://twitter.com/share?url=<?php echo get_permalink(); ?>\">Twitter</a>\n <a target=\"_blank\" title=\"Share on Facebook\" href=\"https://www.facebook.com/sharer/sharer.php?<?php echo get_permalink(); ?>\">Facebook</a>\n </aside>\n <?php\n}", "function x_add_social_sharing ( $content ) {\n\t\n if ( is_singular('post') ) {\n\t \n echo do_shortcode('[share title=\"Share this Post\" facebook=\"true\" twitter=\"true\" google_plus=\"true\" linkedin=\"true\" pinterest=\"false\" reddit=\"false\" email=\"true\"]');\n \n }\n}", "public function social()\n {\n $record = Social::first();\n return view('admin.pages.social', compact('record'));\n }", "function monospace_share () {\n global $post;\n\t\t?>\n\t\t<div class=\"meta\">\n\t\t\t<span class=\"share\"><?php _e('Share on', 'monospace'); ?>&nbsp;\n <?php\n $url = urlencode(get_permalink($post->ID));\n $title = urlencode(get_the_title());\n ?>\n\t\t\t\t<a href=\"<?php echo esc_url('http://twitter.com/home?status=' . $title . '%20' . $url); ?>\" target=\"_blank\">Twitter</a>&nbsp;\n\t\t\t\t<a href=\"<?php echo esc_url('http://facebook.com/sharer.php?t=' . $title . '&amp;u=' . $url); ?>\" target=\"_blank\">Facebook</a>&nbsp;\n\t\t\t\t<a href=\"<?php echo esc_url('http://google.com/reader/link?title=' . $title . '&amp;url=' . $url);?>\" target=\"_blank\">Google Reader</a>&nbsp;\n <a href=\"<?php echo esc_url('http://ping.fm/ref/?conduit&method=status&title=' . $title . '&link=' . $url); ?>\" target=\"_blank\">Ping.fm</a>\n </span>\n\t\t</div>\n\t\t<?php\n\t}", "function circle_display_archive_sharing() {\n\tif ( ! circle_option( 'display_archive_sharing' ) ) {\n\t\treturn;\n\t}\n\tget_template_part( 'template-parts/post-social-sharing' );\n}", "public function show(Social $social)\n {\n //\n }", "public function show(Social $social)\n {\n //\n }", "public function social() {\n\t\t?>\n\t\t<p>\n\t\t<div class=\"g-plusone\" data-size=\"medium\" data-href=\"http://wp-buddy.com/products/plugins/google-drive-as-wordpress-cdn-plugin/\"></div>\n\t\t</p>\n\n\t\t<script type=\"text/javascript\">\n\t\t\t(function () {\n\t\t\t\tvar po = document.createElement( 'script' );\n\t\t\t\tpo.type = 'text/javascript';\n\t\t\t\tpo.async = true;\n\t\t\t\tpo.src = 'https://apis.google.com/js/plusone.js';\n\t\t\t\tvar s = document.getElementsByTagName( 'script' )[0];\n\t\t\t\ts.parentNode.insertBefore( po, s );\n\t\t\t})();\n\t\t</script>\n\n\t\t<p>\n\t\t\t<a href=\"https://twitter.com/share\" class=\"twitter-share-button\" data-url=\"http://wp-buddy.com/products/plugins/google-drive-as-wordpress-cdn-plugin/\" data-text=\"Check out the Google Drive as CDN WordPress Plugin\" data-related=\"wp_buddy\">Tweet</a>\n\t\t</p>\n\t\t<script>!function ( d, s, id ) {\n\t\t\t\tvar js, fjs = d.getElementsByTagName( s )[0];\n\t\t\t\tif ( !d.getElementById( id ) ) {\n\t\t\t\t\tjs = d.createElement( s );\n\t\t\t\t\tjs.id = id;\n\t\t\t\t\tjs.src = \"//platform.twitter.com/widgets.js\";\n\t\t\t\t\tfjs.parentNode.insertBefore( js, fjs );\n\t\t\t\t}\n\t\t\t}( document, \"script\", \"twitter-wjs\" );</script>\n\n\t\t<p>\n\t\t\t<iframe src=\"//www.facebook.com/plugins/like.php?href=<?php echo urlencode( 'http://wp-buddy.com/products/plugins/google-drive-as-wordpress-cdn-plugin/' ); ?>&amp;send=false&amp;layout=button_count&amp;width=150&amp;show_faces=false&amp;font&amp;colorscheme=light&amp;action=like&amp;height=21\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:150px; height:21px;\" allowTransparency=\"true\"></iframe>\n\t\t</p>\n\t<?php\n\t}", "function ejos_register_social_share_shortcode() {\n add_shortcode( 'social_share', 'ejos_social_share_shortcode' );\n}", "function kvell_edge_woocommerce_share() {\n if ( kvell_edge_options()->getOptionValue( 'enable_social_share' ) == 'yes' && kvell_edge_options()->getOptionValue( 'enable_social_share_on_product' ) == 'yes' ) :\n echo '<div class=\"edgtf-woo-social-share-holder\">';\n echo kvell_edge_get_social_share_html( array( 'type' => 'list', 'title' => esc_attr__('Share:', 'kvell') ) );\n echo '</div>';\n endif;\n }", "public function SocialShareShortcode()\n {\n $data = $this->_SocialShareButtonsData(true);\n\t\t\tif(!$data['hide_on_page']){\n\t\t\t\t//use different view file for shortcode\n\t\t\t\treturn $this->_loadView('shortcodes/buttons-sc', $data);\n\t\t\t}\n }", "public function getFacebookShareUrl() {\n return 'http://www.facebook.com/sharer.php?s=100&p[url]='.$this->socialData['url']\n .'&p[images][0]='.$this->socialData['image']\n .'&p[title]='.$this->socialData['title']\n .'&p[summary]='.$this->socialData['description'];\n }", "function wolf_share_output_social_buttons( $content ) {\n\n\t$selected_post_types = wolf_share_get_option( 'post_types' );\n\t$post_type = get_post_type();\n\t$condition = ( is_single() && isset( $selected_post_types[ $post_type ] ) );\n\n\t$new_content = '';\n\n\tif ( $condition ) {\n\t\t$new_content .= wolf_share();\n\t}\n\n\t$new_content .= $content;\n\n\tif ( $condition ) {\n\t\t$new_content .= wolf_share();\n\t}\n\n\treturn $new_content;\n\n}", "function social_share(){\n\t?>\n\t<style type=\"text/css\">\n\t\tp.share-info{\n\t\t\tmargin-bottom: 0;\n\t\t}\n\t\t.share-buttons .has-tip{\n\t\t\tborder: none;\n\t\t}\n\t\t.share-buttons a{\n\t\t\tborder: none;\n\t\t\twidth: 33px;\n\t\t\theight: 33px;\n\t\t}\n\t\t.share-buttons a.button{\n\t\t\tpadding: 0;\n\t\t\tmargin-right: 3px;\n\t\t}\n\t\t.share-buttons a.button.facebook{\n\t\t\tbackground: rgb(59, 89, 152);\n\t\t}\n\t\t.share-buttons a.button.twitter{\n\t\t\tbackground: rgb(29, 161, 242);\n\t\t}\n\t\t.share-buttons a.button.linkedin{\n\t\t\tbackground: rgb(0, 119, 181);\n\t\t}\n\t\t.share-buttons a.button.google-plus{\n\t\t\tbackground: rgb(220, 78, 65);\n\t\t}\n\t\t.share-buttons a i{\n\t\t\tfont-size: 1.4rem;\n\t\t\tline-height: 2.4rem;\n\t\t}\n\t</style>\n\t<p class=\"share-info\"><small>Compartilhe:</small></p>\n\t<div class=\"button-group share-buttons\">\n\t\t<span data-tooltip aria-haspopup=\"true\" class=\"has-tip top\" data-disable-hover=\"false\" tabindex=\"1\" title=\"Facebook\">\n\t\t\t<a class=\"button facebook\" href=\"https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>\" onclick=\"window.open(this.href, 'Compartilhar notícia', 'width=490,height=530');return false;\"><i class=\"fa fa-facebook\"></i></a>\n\t\t</span>\n\t\t<span data-tooltip aria-haspopup=\"true\" class=\"has-tip top\" data-disable-hover=\"false\" tabindex=\"1\" title=\"Twitter\">\n\t\t\t<a class=\"button twitter\" href=\"https://twitter.com/home?status=<?php the_permalink(); ?>\" onclick=\"window.open(this.href, 'Compartilhar notícia', 'width=490,height=530');return false;\"><i class=\"fa fa-twitter\"></i></a>\n\t\t</span>\n\t\t<span data-tooltip aria-haspopup=\"true\" class=\"has-tip top\" data-disable-hover=\"false\" tabindex=\"1\" title=\"LinkedIn\">\n\t\t\t<a class=\"button linkedin\" href=\"https://www.linkedin.com/shareArticle?mini=true&url=<?php the_permalink(); ?>&title=<?php the_title( ); ?>&summary=&source=<?php bloginfo( 'url' ); ?>\" onclick=\"window.open(this.href, 'Compartilhar notícia', 'width=490,height=530');return false;\"><i class=\"fa fa-linkedin\"></i></a>\n\t\t</span>\n\t\t<span data-tooltip aria-haspopup=\"true\" class=\"has-tip top\" data-disable-hover=\"false\" tabindex=\"1\" title=\"Google plus\">\n\t\t\t<a class=\"button google-plus\" href=\"https://plus.google.com/share?url=<?php the_permalink(); ?>\" onclick=\"window.open(this.href, 'Compartilhar notícia', 'width=490,height=530');return false;\"><i class=\"fa fa-google-plus\"></i></a>\n\t\t</span>\t\t\t\t\t\t\t\n\t</div>\n\t<?php\n}", "public function getShare($id,$social, $ismobile)\n {\n $url = '';\n $post = Post::find($id);\n if($post == NULL){\n App::abort(404);\n }\n\n // add social point if it is not robot\n if (isset($_SERVER['HTTP_USER_AGENT']) && !preg_match('/bot|crawl|slurp|spider/i', $_SERVER['HTTP_USER_AGENT'])) {\n $post->socialPoint ++;\n $post->save();\n }\n switch ($social){\n case 'twitter' :\n $url = 'https://twitter.com/home?status=';\n $url .= $post['title'] . ' ' . $post->getUrl();\n break;\n case 'facebook' :\n \n if($ismobile == 'true'){\n $url = 'fb-messenger://share/?link=';\n }else\n {\n $url = 'https://www.facebook.com/sharer/sharer.php?u=';\n }\n $url .= $post->getUrl();\n break;\n case 'googlePlus' :\n $url = 'https://plus.google.com/share?url=';\n $url .= $post->getUrl();\n break;\n case 'linkedIn' :\n $url = 'https://www.linkedin.com/shareArticle?mini=true&';\n $url .= 'url='.$post->getUrl().'&title='.$post['title'].'&summary=&source=';\n break; \n }\n return \\Redirect::to($url);\n }", "function display( array $atts, $content = '' ) {\n\n\t\tob_start();\n\n\t\tpublisher_set_prop( 'shortcode-bs-social-share-atts', $atts );\n\t\tpublisher_get_view( 'shortcodes', 'bs-social-share' );\n\t\tpublisher_clear_props();\n\n\t\treturn ob_get_clean();\n\n\t}", "public function social_media()\n {\n $result = $this->dtbs->list('social');\n $data['info'] = $result;\n $this->load->view('back/social/anasehife',$data);\n }", "function desertdelta_social_sharing_buttons($content) {\n\tglobal $post;\n\tif(is_singular() || is_home()){\n\n\t\t// Get current page URL\n\t\t$desertdeltaURL = urlencode(get_permalink());\n\n\t\t// Get current page title\n\t\t$desertdeltaTitle = htmlspecialchars(urlencode(html_entity_decode(get_the_title(), ENT_COMPAT, 'UTF-8')), ENT_COMPAT, 'UTF-8');\n\t\t// $desertdeltaTitle = str_replace( ' ', '%20', get_the_title());\n\n\t\t// Get Post Thumbnail for pinterest\n\t\t$desertdeltaThumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' );\n\n\t\t// Construct sharing URL without using any script\n\t\t$twitterURL = 'https://twitter.com/intent/tweet?text='.$desertdeltaTitle.'&amp;url='.$desertdeltaURL.'&amp;via=Crunchify';\n\t\t$facebookURL = 'https://www.facebook.com/sharer/sharer.php?u='.$desertdeltaURL;\n\n\t\t// Based on popular demand added Pinterest too\n\t\t$pinterestURL = 'https://pinterest.com/pin/create/button/?url='.$desertdeltaURL.'&amp;media='.$desertdeltaThumbnail[0].'&amp;description='.$desertdeltaTitle;\n\n\t\t// Add sharing button at the end of page/page content\n\t\t$content .= '<!-- Implement your own superfast social sharing buttons without any JavaScript loading. No plugin required. Detailed steps here: http://crunchify.me/1VIxAsz -->';\n\t\t$content .= '<div class=\"contactSocials\"><h5 class=\"heading heading__sm\">SHARE </h5>';\n\t\t$content .= ' <a href=\"'. $twitterURL .'\" target=\"_blank\"><i class=\"fab fa-twitter\"></i></a>';\n\t\t$content .= '<a href=\"'.$facebookURL.'\" target=\"_blank\"><i class=\"fab fa-facebook-square\"></i></a>';\n\t\t$content .= '</div>';\n\n\t\treturn $content;\n\t}else{\n\t\t// if not a post/page then don't include sharing button\n\t\treturn $content;\n\t}\n}", "public function social()\n {\n return view('home.social');\n }", "function emc_sharing_display() {\r\n\r\n\tif ( class_exists( 'Jetpack', false ) ) {\r\n\t\t$jetpack_active_modules = get_option('jetpack_active_modules');\r\n\t\tif ( $jetpack_active_modules && in_array( 'sharedaddy', $jetpack_active_modules ) ) {\r\n\t\t\techo sharing_display();\r\n\t\t\t?>\r\n\t\t\t<!--<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:</h3><div class=\"sd-content\"><ul><li class=\"share-facebook\"><a rel=\"nofollow\" class=\"share-facebook sd-button share-icon\" href=\"http://local.earlymath.erikson.edu/new-study-differentiating-works/?share=facebook\" title=\"Share on Facebook\" id=\"sharing-facebook-6199\"><span>Facebook</span></a></li><li class=\"share-twitter\"><a rel=\"nofollow\" class=\"share-twitter sd-button share-icon\" href=\"http://local.earlymath.erikson.edu/new-study-differentiating-works/?share=twitter\" title=\"Click to share on Twitter\" id=\"sharing-twitter-6199\"><span>Twitter</span></a></li><li class=\"share-pinterest\"><a rel=\"nofollow\" class=\"share-pinterest sd-button share-icon\" href=\"http://local.earlymath.erikson.edu/new-study-differentiating-works/?share=pinterest\" title=\"Click to share on Pinterest\"><span>Pinterest</span></a></li><li class=\"share-google-plus-1\"><a rel=\"nofollow\" class=\"share-google-plus-1 sd-button share-icon\" href=\"http://local.earlymath.erikson.edu/new-study-differentiating-works/?share=google-plus-1\" title=\"Click to share on Google+\" id=\"sharing-google-6199\"><span>Google +1</span></a></li><li class=\"share-email\"><a rel=\"nofollow\" class=\"share-email sd-button share-icon\" href=\"http://local.earlymath.erikson.edu/new-study-differentiating-works/?share=email\" title=\"Click to email this to a friend\"><span>Email</span></a></li><li class=\"share-print\"><a rel=\"nofollow\" class=\"share-print sd-button share-icon\" href=\"http://local.earlymath.erikson.edu/new-study-differentiating-works/#print\" title=\"Click to print\"><span>Print</span></a></li><li class=\"share-end\"></li></ul></div></div></div>-->\r\n\t\t\t<?php\r\n\t\t}\r\n\t}\r\n\r\n}", "function quasar_get_post_share($args=null){\n\tglobal $post;\n\t\t\n\t$social_html\t=\t'';\n\t$social_js\t\t=\t'';\n\t\n\tif($args && is_array($args)){\n\t\textract($args);\n\t}\n\t\t\n\t//Facebook\n\t$social_html\t.=\t'<div class=\"fb-like\" data-href=\"'.get_permalink().'\" data-width=\"90\" data-layout=\"button_count\" data-show-faces=\"false\" data-send=\"false\"></div>';\t\n\t$social_js\t\t.=\t'\n\t\t(function(d, s, id) {\n\t\t var js, fjs = d.getElementsByTagName(s)[0];\n\t\t if (d.getElementById(id)) return;\n\t\t js = d.createElement(s); js.id = id;\n\t\t js.src = \"//connect.facebook.net/en_US/all.js#xfbml=1\";\n\t\t fjs.parentNode.insertBefore(js, fjs);\n\t\t}(document, \"script\", \"facebook-jssdk\"));\n\t';\n\t\n\t//Twitter\n\t$social_html\t.=\t'<a href=\"https://twitter.com/share\" class=\"twitter-share-button\">Tweet</a>';\n\t$social_js\t\t.=\t'!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?\"http\":\"https\";if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+\"://platform.twitter.com/widgets.js\";fjs.parentNode.insertBefore(js,fjs);}}(document, \"script\", \"twitter-wjs\");';\n\n\t//Google+\n\t$social_html\t.=\t'<div class=\"g-plusone\" data-size=\"medium\"></div>';\n\t$social_js\t\t.=\t'\n\t (function() {\n\t\tvar po = document.createElement(\"script\"); po.type = \"text/javascript\"; po.async = true;\n\t\tpo.src = \"https://apis.google.com/js/plusone.js\";\n\t\tvar s = document.getElementsByTagName(\"script\")[0]; s.parentNode.insertBefore(po, s);\n\t })();\n\t';\n\t\n\t//Pinterest\n\t$social_html\t.=\t'<a href=\"//pinterest.com/pin/create/button/?url='.get_permalink().'&media='.get_permalink().'&description='.get_permalink().'\" data-pin-do=\"buttonPin\" data-pin-config=\"beside\"><img src=\"//assets.pinterest.com/images/pidgets/pin_it_button.png\" /></a>';\n\n\t\n\t$social_html\t=\tapply_filters('quasar_post_social_html',$social_html);\n\t$social_js\t\t=\tapply_filters('quasar_post_social_js',$social_js);\n\t\n\t$return\t\t=\t'';\n\t\n\t$return\t\t.=\t'<script type=\"text/javascript\">'.$social_js.'</script>';\n\t\n\t$return\t\t.=\t'<div class=\"quasar-post-social\">'.$social_html.'</div><div class=\"clear\"></div>';\n\t\n\treturn $return;\n}", "public function social_icons() {\n\t\t$enabled_socials = get_theme_mod( 'hestia_enable_sharing_icons', true );\n\t\tif ( (bool) $enabled_socials !== true ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$post_link = esc_url( get_the_permalink() );\n\t\t$post_title = get_the_title();\n\n\t\t$facebook_url =\n\t\t\tesc_url(\n\t\t\t\tadd_query_arg(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'u' => $post_link,\n\t\t\t\t\t),\n\t\t\t\t\t'https://www.facebook.com/sharer.php'\n\t\t\t\t)\n\t\t\t);\n\n\t\t$twitter_url =\n\t\t\tesc_url(\n\t\t\t\tadd_query_arg(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'url' => $post_link,\n\t\t\t\t\t\t'text' => rawurlencode( html_entity_decode( wp_strip_all_tags( $post_title ), ENT_COMPAT, 'UTF-8' ) ),\n\t\t\t\t\t),\n\t\t\t\t\t'http://twitter.com/share'\n\t\t\t\t)\n\t\t\t);\n\n\t\t$email_title = str_replace( '&', '%26', $post_title );\n\n\t\t$email_url =\n\t\t\tesc_url(\n\t\t\t\tadd_query_arg(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'subject' => wp_strip_all_tags( $email_title ),\n\t\t\t\t\t\t'body' => $post_link,\n\t\t\t\t\t),\n\t\t\t\t\t'mailto:'\n\t\t\t\t)\n\t\t\t);\n\n\t\t$social_links = '\n <div class=\"col-md-6\">\n <div class=\"entry-social\">\n <a target=\"_blank\" rel=\"tooltip\"\n data-original-title=\"' . esc_attr__( 'Share on Facebook', 'hestia' ) . '\"\n class=\"btn btn-just-icon btn-round btn-facebook\"\n href=\"' . $facebook_url . '\">\n <i class=\"fab fa-facebook-f\"></i>\n </a>\n \n <a target=\"_blank\" rel=\"tooltip\"\n data-original-title=\"' . esc_attr__( 'Share on Twitter', 'hestia' ) . '\"\n class=\"btn btn-just-icon btn-round btn-twitter\"\n href=\"' . $twitter_url . '\">\n <i class=\"fab fa-twitter\"></i>\n </a>\n \n <a rel=\"tooltip\"\n data-original-title=\" ' . esc_attr__( 'Share on Email', 'hestia' ) . '\"\n class=\"btn btn-just-icon btn-round\"\n href=\"' . $email_url . '\">\n <i class=\"fas fa-envelope\"></i>\n </a>\n </div>\n\t\t</div>';\n\t\techo apply_filters( 'hestia_filter_blog_social_icons', $social_links );\n\t}", "function renderSocialMediaShareLinksForUrl($url)\n {\n global $facebook_app_id;\n\n $url_encoded = urlencode($url);\n\n if('' !== trim($facebook_app_id))\n {\n ?>\n <!-- Facebook -->\n <a target=\"_blank\" href=\"https://www.facebook.com/dialog/feed?app_id=<?php echo $facebook_app_id; ?>&link=<?php echo $url_encoded; ?>\"><i class=\"fa fa-lg fa-facebook-official\" aria-hidden=\"true\"></i></a>\n <?php\n }\n ?>\n \n <!-- Twitter -->\n <a target=\"_blank\" href=\"https://twitter.com/?status=<?php echo $url_encoded; ?>\"><i class=\"fa fa-lg fa-twitter-square\" aria-hidden=\"true\"></i></a>\n \n <!-- LinkedIn -->\n <a target=\"_blank\" href=\"https://www.linkedin.com/shareArticle?mini=true&url=<?php echo $url_encoded; ?>\"><i class=\"fa fa-lg fa-linkedin-square\" aria-hidden=\"true\"></i></a>\n <?php\n\n return;\n }", "function nsh_social() {\n\n\t$social = nsh_get_social();\n\n\tif ( $social ) {\n\t\techo $social;\n\t}\n\n}", "function foucs_share_this_post($title,$permalink){\n\n\t$twitterHandler = ( get_option('twitter_handler') ? '&amp;via='.esc_attr( get_option('twitter_handler') ) : '' );\n\t\t\n\t$twitter = 'https://twitter.com/intent/tweet?text=Hey! Read this: ' . $title . '&amp;url=' . $permalink . $twitterHandler .'';\n\t$facebook = 'https://www.facebook.com/sharer/sharer.php?u=' . $permalink;\n\t$google = 'https://plus.google.com/share?url=' . $permalink;\n\t$pinterest = 'http://pinterest.com/pin/create/bookmarklet/?is_video=false&url=' . $permalink;\n\techo '<li><a href=\"'. $facebook .'\" target=\"_blank\" rel=\"nofollow\"><i class=\"fab fa-facebook-f\" aria-hidden=\"true\"></i></a></li>';\n\techo '<li><a href=\"'. $twitter .'\" target=\"_blank\" rel=\"nofollow\"><i class=\"fab fa-twitter\" aria-hidden=\"true\"></i></a></li>';\n\techo '<li><a href=\"'. $pinterest .'\" target=\"_blank\" rel=\"nofollow\"><i class=\"fab fa-pinterest\" aria-hidden=\"true\"></i></a></li>';\n\techo '<li><a href=\"'. $google .'\" target=\"_blank\" rel=\"nofollow\"><i class=\"fab fa-google-plus-g\" aria-hidden=\"true\"> </i></a></li>';\n\t\t\t\n}", "function add_social_sharing() { ?>\r\n\t<h3>Share this post</h3>\r\n\t<ul class=\"share-buttons\">\r\n <li><a href=\"https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Flocalhost%2Ftestsite&t=Test%20site\" title=\"Share on Facebook\" target=\"_blank\" onclick=\"window.open('https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(document.URL) + '&t=' + encodeURIComponent(document.URL)); return false;\"><img src=\"http://your-wp-site.com/wp-content/themes/twentyfifteen-child/images/flat_web_icon_set/black/Facebook.png\"></a></li>\r\n <li><a href=\"https://twitter.com/intent/tweet?source=http%3A%2F%2Flocalhost%2Ftestsite&text=Test%20site:%20http%3A%2F%2Flocalhost%2Ftestsite\" target=\"_blank\" title=\"Tweet\" onclick=\"window.open('https://twitter.com/intent/tweet?text=' + encodeURIComponent(document.title) + ':%20' + encodeURIComponent(document.URL)); return false;\"><img src=\"http://your-wp-site.com/wp-content/themes/twentyfifteen-child/images/flat_web_icon_set/black/Twitter.png\"></a></li>\r\n <li><a href=\"https://plus.google.com/share?url=http%3A%2F%2Flocalhost%2Ftestsite\" target=\"_blank\" title=\"Share on Google+\" onclick=\"window.open('https://plus.google.com/share?url=' + encodeURIComponent(document.URL)); return false;\"><img src=\"http://your-wp-site.com/wp-content/themes/twentyfifteen-child/images/flat_web_icon_set/black/Google+.png\"></a></li>\r\n <li><a href=\"http://www.tumblr.com/share?v=3&u=http%3A%2F%2Flocalhost%2Ftestsite&t=Test%20site&s=\" target=\"_blank\" title=\"Post to Tumblr\" onclick=\"window.open('http://www.tumblr.com/share?v=3&u=' + encodeURIComponent(document.URL) + '&t=' + encodeURIComponent(document.title)); return false;\"><img src=\"http://your-wp-site.com/wp-content/themes/twentyfifteen-child/images/flat_web_icon_set/black/Tumblr.png\"></a></li>\r\n <li><a href=\"http://pinterest.com/pin/create/button/?url=http%3A%2F%2Flocalhost%2Ftestsite&description=Test%20site\" target=\"_blank\" title=\"Pin it\" onclick=\"window.open('http://pinterest.com/pin/create/button/?url=' + encodeURIComponent(document.URL) + '&description=' + encodeURIComponent(document.title)); return false;\"><img src=\"http://your-wp-site.com/wp-content/themes/twentyfifteen-child/images/flat_web_icon_set/black/Pinterest.png\"></a></li>\r\n <li><a href=\"https://getpocket.com/save?url=http%3A%2F%2Flocalhost%2Ftestsite&title=Test%20site\" target=\"_blank\" title=\"Add to Pocket\" onclick=\"window.open('https://getpocket.com/save?url=' + encodeURIComponent(document.URL) + '&title=' + encodeURIComponent(document.title)); return false;\"><img src=\"http://your-wp-site.com/wp-content/themes/twentyfifteen-child/images/flat_web_icon_set/black/Pocket.png\"></a></li>\r\n <li><a href=\"http://www.reddit.com/submit?url=http%3A%2F%2Flocalhost%2Ftestsite&title=Test%20site\" target=\"_blank\" title=\"Submit to Reddit\" onclick=\"window.open('http://www.reddit.com/submit?url=' + encodeURIComponent(document.URL) + '&title=' + encodeURIComponent(document.title)); return false;\"><img src=\"http://your-wp-site.com/wp-content/themes/twentyfifteen-child/images/flat_web_icon_set/black/Reddit.png\"></a></li>\r\n <li><a href=\"http://www.linkedin.com/shareArticle?mini=true&url=http%3A%2F%2Flocalhost%2Ftestsite&title=Test%20site&summary=Test%20site&source=http%3A%2F%2Flocalhost%2Ftestsite\" target=\"_blank\" title=\"Share on LinkedIn\" onclick=\"window.open('http://www.linkedin.com/shareArticle?mini=true&url=' + encodeURIComponent(document.URL) + '&title=' + encodeURIComponent(document.title)); return false;\"><img src=\"http://your-wp-site.com/wp-content/themes/twentyfifteen-child/images/flat_web_icon_set/black/LinkedIn.png\"></a></li>\r\n <li><a href=\"http://wordpress.com/press-this.php?u=http%3A%2F%2Flocalhost%2Ftestsite&t=Test%20site&s=Test%20site\" target=\"_blank\" title=\"Publish on WordPress\" onclick=\"window.open('http://wordpress.com/press-this.php?u=' + encodeURIComponent(document.URL) + '&t=' + encodeURIComponent(document.title)); return false;\"><img src=\"http://your-wp-site.com/wp-content/themes/twentyfifteen-child/images/flat_web_icon_set/black/Wordpress.png\"></a></li>\r\n <li><a href=\"https://pinboard.in/popup_login/?url=http%3A%2F%2Flocalhost%2Ftestsite&title=Test%20site&description=Test%20site\" target=\"_blank\" title=\"Save to Pinboard\" onclick=\"window.open('https://pinboard.in/popup_login/?url=' + encodeURIComponent(document.URL) + '&title=' + encodeURIComponent(document.title)); return false;\"><img src=\"http://your-wp-site.com/wp-content/themes/twentyfifteen-child/images/flat_web_icon_set/black/Pinboard.png\"></a></li>\r\n <li><a href=\"mailto:?subject=Test%20site&body=Test%20site:%20http%3A%2F%2Flocalhost%2Ftestsite\" target=\"_blank\" title=\"Email\" onclick=\"window.open('mailto:?subject=' + encodeURIComponent(document.title) + '&body=' + encodeURIComponent(document.URL)); return false;\"><img src=\"http://your-wp-site.com/wp-content/themes/twentyfifteen-child/images/flat_web_icon_set/black/Email.png\"></a></li>\r\n</ul>\r\n\r\n<?php }", "public function getTwitterShareUrl() {\n return 'https://twitter.com/share?url='.$this->socialData['url']\n .'&text='.$this->socialData['title']\n .(($this->socialData['via'])?'&via='.$this->socialData['via']:'')\n .(($this->socialData['hashtags'])?'&hashtags='.$this->socialData['hashtags']:'');\n }", "function social_sharing_buttons() {\n $siteURL = site_url();\n $pageURL = wp_get_shortlink();\n\n // Get current page title\n $pageTitle = str_replace( ' ', '%20', get_the_title());\n\n // Construct sharing URL without using any script\n $twitterURL = 'https://twitter.com/intent/tweet?text='.$pageTitle.'&amp;url='.$pageURL.'&amp;via=YOUR_TWITTER_USERNAME';\n $facebookURL = 'https://facebook.com/sharer/sharer.php?u='.$pageURL;\n $googleURL = 'https://plus.google.com/share?url='.$pageURL;\n $linkedinURL = 'https://www.linkedin.com/shareArticle?mini=true&url='.$pageURL.'&title='.$pageTitle.'&source='.$siteURL;\n $telegramURL = 'https://telegram.me/share/url?url='.$pageURL.'&text='.$pageTitle;\n\n // Add sharing button at the end of page/page content\n $content = '<div class=\"share-modal share-modal--close\" >\n <div class=\"share-body\">\n <a class=\"share-modal__close\" href=\"#\" id=\"closeModalButton\">\n <i class=\"fa fa-close icon\" aria-hidden=\"true\"></i>\n </a>\n <p class=\"share-modal__title\">\n <span>انتشار مطلب</span>\n <i class=\"fa fa-share icon\" aria-hidden=\"true\"></i>\n </p>\n <p class=\"share-modal__post-title\">'.urldecode($pageTitle).'</p>\n\n <div class=\"share-buttons-container\">\n <a class=\"twitter\" href=\"'.$twitterURL .'\" target=\"_blank\"><i class=\"fa fa-twitter icon\" aria-hidden=\"true\"></i></a>\n <a class=\"facebook\" href=\"'.$facebookURL.'\" target=\"_blank\"><i class=\"fa fa-facebook icon\" aria-hidden=\"true\"></i></a>\n <a class=\"google-plus\" href=\"'.$googleURL.'\" target=\"_blank\"><i class=\"fa fa-google-plus icon\" aria-hidden=\"true\"></i></a>\n <a class=\"linkedin\" href=\"'.$linkedinURL.'\" target=\"_blank\"><i class=\"fa fa-linkedin icon\" aria-hidden=\"true\"></i></a>\n <a class=\"telegram\" href=\"'.$telegramURL.'\" target=\"_blank\"><i class=\"fa fa-paper-plane icon\" aria-hidden=\"true\"></i></a>\n </div>\n\n <p class=\"share-modal__post-title share-modal__post-title--small\">آدرس کوتاه شده این مطلب</p>\n <input type=\"text\" readonly=\"\" class=\"share-modal__link-box\" value=\"'.$pageURL.'\" onClick=\"this.select();\">\n </div>\n</div>';\n\n return $content;\n}", "public function get_name() {\n\t\treturn parent::get_widget_slug( 'SocialShare' );\n\t}", "function culturefeed_search_ui_add_facebook_share() {\n\n $fb_app_id = variable_get('culturefeed_search_ui_fb_app_id', '');\n if (!empty($fb_app_id)) {\n drupal_add_js(drupal_get_path('module', 'culturefeed') . '/js/facebook_share.js');\n drupal_add_js(array('culturefeed' => array('fbAppId' => $fb_app_id)), 'setting');\n }\n\n}", "function mixtape_qodef_woocommerce_share()\n {\n if (mixtape_qodef_is_woocommerce_installed()) {\n\n if (mixtape_qodef_options()->getOptionValue('enable_social_share') == 'yes'\n && mixtape_qodef_options()->getOptionValue('enable_social_share_on_product') == 'yes') :\n echo mixtape_qodef_get_social_share_html();\n endif;\n }\n }", "function ubiq_add_socialgraph() {\n if (!get_option('ubiq_fb_opengraph')) { return; }\n\n if (is_single()) {\n global $post;\n \n $image_id = get_post_thumbnail_id();\n $image_url = wp_get_attachment_image_src($image_id,'large', true);\n \n \n $content = $post->post_content;\n $content = strip_shortcodes( $content );\n \t\t$content = strip_tags($content);\n\t\t$excerpt_length = 55;\n\t\t$words = explode(' ', $content, $excerpt_length + 1);\n\t\tif(count($words) > $excerpt_length) :\n\t\t\tarray_pop($words);\n\t\t\tarray_push($words, '...');\n\t\t\t$content = implode(' ', $words);\n\t\tendif;\n \n ?>\n <meta property=\"og:title\" content=\"<?php the_title() ?>\"/>\n <meta property=\"og:type\" content=\"article\"/>\n <meta property=\"og:url\" content=\"<?php echo get_permalink() ?>\"/>\n <?php\n if (get_the_post_thumbnail()) {\n ?>\n <meta property=\"og:image\" content=\"<?php echo $image_url[0] ?>\"/>\n <?php } else { ?>\n <meta property=\"og:image\" content=\"<?php header_image(); ?>\"/>\n <?php } ?>\n <meta property=\"og:site_name\" content=\"<?php echo get_bloginfo('name') ?>\"/> \n <meta property=\"og:description\" content=\"<?php echo $content ?>\"/>\n <?php if (get_option('ubiq_fb_appid')) { ?>\n <meta property=\"fb:app_id\" content=\"<?php echo get_option('ubiq_fb_appid') ?>\" />\n <?php } ?>\n <?php\n if (function_exists('sharing_display')) {\n add_filter( 'excerpt_length', 'calculate_excerpt_length' ); \n add_filter( 'the_excerpt', 'sharing_display', 19 );\n }\n } else if(is_home()) {\n ?>\n <meta property=\"og:title\" content=\"<?php echo get_bloginfo('name') ?>\"/>\n <meta property=\"og:type\" content=\"website\"/>\n <meta property=\"og:url\" content=\"<?php bloginfo('url') ?>\"/>\n <meta property=\"og:image\" content=\"<?php header_image(); ?>\"/>\n <meta property=\"og:site_name\" content=\"<?php echo get_bloginfo('name') ?>\"/> \n <meta property=\"og:description\" content=\"<?php echo bloginfo('description') ?>\"/>\n <?php if (get_option('ubiq_fb_appid')) { ?>\n <meta property=\"fb:app_id\" content=\"<?php echo get_option('ubiq_fb_appid') ?>\" />\n <?php } ?>\n <?php\n }\n}", "public function shareAction() {\t\n\t\t$this->view->addLayoutVar(\"onglet\", 1);\n\t\t$id_user = $this->_getParam('userId');\n\t\t\n\t\t$user = new Annuaire_Contact($id_user);\n\t\t$societe = new Annuaire_Societe($user->getSocieteId());\n\t\t$uid = Annuaire_User::getCurrentUserId();\n\t\t$share = new Annuaire_Share();\n\t\tif (!$share->allowContact($user->getId())) {\n\t\t\tthrow new Exception (t_('Not your contact'));\n\t\t}\n\n\t\t$this->view->nom = (($user->getNom() == \"\") ? t_(\"(None)\") : $user->getNom());\n\t\t$this->view->prenom = (($user->getPrenom() == \"\") ? t_(\"(None)\") : $user->getPrenom());\n\t\t$this->view->companyname = (($societe->getNom() == \"\") ? t_(\"(None)\") : $societe->getNom());\n\t\t$this->view->id = ($user->getId());\n\t\t$this->view->societeid = (($societe->getUserId() == $uid) ? $societe->getId() : 0);\n\t\t$this->view->admin = (($user->getUserId() == $uid) ? 1 : 0);\n\t\t$this->view->sharedwith = (t_(\"Shared with :\"));\n\t\t$this->view->addshare = (t_(\"Add a share\"));\n\t\t$this->view->sharecontact = (t_(\"Share a contact\"));\n\t\t$this->view->sharesociete = (t_(\"Share a company\"));\n\t\t$this->view->sureDeleteShare = (t_(\"Are you sure you want to delete this share ?\"));\n\t\t$this->view->delete = (t_(\"Delete\"));\n\t\t$this->view->modify = (t_(\"Allow to modify\"));\n\t\t$this->view->yes = (t_(\"Yes\"));\n\t\t$this->view->send = (t_(\"Send\"));\n\t\t$this->view->no = (t_(\"No\"));\n\t\t$this->view->cancel = (t_(\"Cancel\"));\n\t}", "function get_facebook_share_url( $the_post = null ) {\n\tglobal $post;\n\tif ( empty( $the_post ) ) {\n\t\t$the_post = $post;\n\t}\n\n\t$permalink = get_the_permalink( $the_post->ID );\n\t$the_title = get_the_title( $the_post->ID );\n\t$handle = get_theme_mod( 'facebook_url' );\n\n\treturn 'http://www.facebook.com/sharer.php?&u=' . $permalink;\n}", "function facebook_share_button($content){\n if(get_post_detail('url',false)!==''){\n $content .= '<div id=\"fb-root\"></div>\n <script>(function(d, s, id) {\n var js, fjs = d.getElementsByTagName(s)[0];\n if (d.getElementById(id)) return;\n js = d.createElement(s); js.id = id;\n js.src = \"//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=840986119244731&version=v2.0\";\n fjs.parentNode.insertBefore(js, fjs);\n }(document,\\'script\\', \\'facebook-jssdk\\'));\n </script>\n <div class=\"fb-share-button\" data-href=\"'.WWW.get_post_detail('url',false).'.html\" data-layout=\"button\"></div>';\n }\n return $content;\n}", "public function share_buttons($socials = null)\n {\n if (!static::$initialized) {\n error_log(__('Jankx social sharing is not initialized yet', 'jankx'));\n return;\n }\n ?>\n <div class=\"jankx-socials-sharing drop-styles\">\n <?php $this->render_social_share_buttons($socials); ?>\n </div>\n\n <?php\n ob_start();\n ?>\n <script>\n function jankx_socials_sharing_find_button_from_target(ele) {\n if (!ele.dataset.type) {\n return jankx_socials_sharing_find_button_from_target(ele.parentElement);\n }\n return ele;\n }\n\n <?php foreach (static::$agruments as $variable_name => $agrument) : ?>\n var <?php echo $variable_name; ?> = <?php echo $agrument; ?>;\n <?php endforeach; ?>\n\n var socials_sharing_buttons = document.querySelectorAll('.jankx-socials-sharing .social-sharing-button');\n if (socials_sharing_buttons.length > 0) {\n for (i = 0; i < socials_sharing_buttons.length; i++) {\n if (!socials_sharing_buttons[i].dataset.type) {\n continue;\n }\n socials_sharing_buttons[i].addEventListener('click', function(e) {\n button = jankx_socials_sharing_find_button_from_target(e.target);\n VanillaSharing[button.dataset.type](\n window[button.dataset.agrument]\n );\n });\n }\n }\n </script>\n <?php\n execute_script(ob_get_clean());\n }", "function anyShare($outer){\r\n\tif(!is_single()){ return $outer; }\r\n\r\n\tglobal $post;\r\n\t$share = array();\r\n\t$pName = rawurlencode($post->post_title);\r\n\t$pHref = rawurlencode(get_permalink($post->ID));\r\n\r\n\t$share['sntwet'] = array('新浪微博', 'http://v.t.sina.com.cn/share/share.php?url='.$pHref);\r\n\t$share['qqtwet'] = array('腾讯微博', 'http://v.t.qq.com/share/share.php?appkey=2e295ab2ff8245229d96fa3768a9f779&url='.$pHref.'&title='.$pName);\r\n\t$share['qqzone'] = array('腾讯空间', 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='.$pHref);\r\n\t$share['renren'] = array('人人社区', 'http://share.renren.com/share/buttonshare.do?link='.$pHref.'&title='.$pName);\r\n\t$share['douban'] = array('豆瓣社区', 'http://www.douban.com/recommend/?url='.$pHref);\r\n\t$share['bdcang'] = array('百度搜藏', 'http://cang.baidu.com/do/add?iu='.$pHref.'&it='.$pName);\r\n\t$share['facebk'] = array('facebook', 'http://www.facebook.com/share.php?u='.$pHref);\r\n\t$share['twiter'] = array('twitter', 'http://twitter.com/home?status='.$pName.'-'.$pHref);\r\n\r\n\t$outer .= \"\\n<!-- Begin anyShare -->\\n\";\r\n\t$outer .= '<link rel=\"stylesheet\" href=\"'.WP_PLUGIN_URL.'/'.dirname(plugin_basename(__FILE__)).'/anyShare.css?v=5\">';\r\n\t$outer .= '<table id=\"anyShare\"><tr><td id=\"AS-TXT\"><i>anyShare</i><b>分享到:</b></td><td id=\"AS-GPO\" rowspan=\"2\">';\r\n\t$outer .= '<script type=\"text/javascript\" src=\"https://apis.google.com/js/plusone.js\"></script><g:plusone size=\"tall\" annotation=\"bubble\" expandTo=\"top\"></g:plusone></td><td id=\"AS-IMG\" rowspan=\"2\">';\r\n\t$outer .= '</td><td id=\"AS-GPO\" rowspan=\"2\"> <g:plusone size=\"tall\"></g:plusone></td></tr><tr><td id=\"AS-BTN\">';\r\n\tforeach($share as $key => $btn){\r\n\t\t$outer .= '<a id=\"'.$key.'\" title=\"'.$btn[0].'\" href=\"'.$btn[1].'\" target=\"_blank\">&nbsp;</a>';\r\n\t}\r\n\t$outer .= '<br clear=\"all\"></td></tr></table>';\r\n\t$outer .= \"\\n<!-- anyShare Endof -->\\n\";\r\n\treturn $outer;\r\n}", "public function get_title() {\n\t\treturn parent::get_widget_title( 'SocialShare' );\n\t}", "function siteorigin_share_render( $settings = array() ) {\n\t$settings = wp_parse_args( $settings, array(\n\t\t'width' => 25,\n\t\t'like_text' => __( 'like', 'vantage' ),\n\t\t'twitter' => ''\n\t) );\n\n\n\n\tstatic $facebook_loaded = false;\n\tif(!$facebook_loaded) {\n\t\t?>\n\t\t<div id=\"fb-root\"></div>\n\t\t<script type=\"text/javascript\">\n\t\t\t(function(d, s, id) {\n\t\t var js, fjs = d.getElementsByTagName(s)[0];\n\t\t if (d.getElementById(id)) return;\n\t\t js = d.createElement(s); js.id = id;\n\t\t js.src = \"//connect.facebook.net/en_GB/all.js#xfbml=1\";\n\t\t fjs.parentNode.insertBefore(js, fjs);\n\t\t}(document, 'script', 'facebook-jssdk'));\n\t\t</script>\n\t\t<?php\n\t\t$facebook_loaded = true;\n\t}\n\n\tstatic $google_loaded = false;\n\tif(!$google_loaded) {\n\t\t?>\n\t\t<script type=\"text/javascript\">\n\t\t\t// Google Plus One\n\t\t\t(function () {\n\t\t\t\tvar po = document.createElement( 'script' );\n\t\t\t\tpo.type = 'text/javascript';\n\t\t\t\tpo.async = true;\n\t\t\t\tpo.src = 'https://apis.google.com/js/plusone.js';\n\t\t\t\tvar s = document.getElementsByTagName( 'script' )[0];\n\t\t\t\ts.parentNode.insertBefore( po, s );\n\t\t\t})();\n\t\t</script>\n\t\t<?php\n\t\t$google_loaded = true;\n\t}\n\n\tstatic $linkedin_loaded = false;\n\tif(!$linkedin_loaded) {\n\t\t?>\n\t\t<script src=\"//platform.linkedin.com/in.js\" type=\"text/javascript\"> lang: en_US</script>\n\t\t<?php\n\t\t$linkedin_loaded = true;\n\t}\n\n\t?>\n\t<ul class=\"share-buttons\">\n\t\t<li class=\"network facebook\" style=\"width:<?php echo intval( $settings['width'] ) ?>%\">\n\n\t\t\t<div\n\t\t\t\tclass=\"fb-like\"\n\t\t\t\tdata-href=\"<?php echo get_permalink() ?>\"\n\t\t\t\tdata-width=\"<?php echo intval( $settings['width'] ) ?>\"\n\t\t\t\tdata-layout=\"button_count\"\n\t\t\t\tdata-send=\"false\"\n\t\t\t\tdata-height=\"21\"\n\t\t\t\tdata-show-faces=\"false\"\n\t\t\t\tdata-action=\"<?php echo esc_attr($settings['like_text']) ?>\"></div>\n\t\t</li>\n\n\t\t<li class=\"network twitter\" style=\"width:<?php echo intval( $settings['width'] ) ?>%\">\n\t\t\t<?php\n\t\t\t$related = array();\n\t\t\t$related[ ] = $settings['twitter'];\n\t\t\t$twitter_url = add_query_arg( array(\n\t\t\t\t'url' => get_permalink(),\n\t\t\t\t'via' => siteorigin_setting( 'social_twitter' ),\n\t\t\t\t'text' => get_the_title(),\n\t\t\t\t'related' => implode( ',', $related )\n\t\t\t), 'http' . (is_ssl() ? 's' : '' ) . '://platform.twitter.com/widgets/tweet_button.html' );\n\n\t\t\t?>\n\t\t\t<iframe allowtransparency=\"true\" frameborder=\"0\" scrolling=\"no\" src=\"<?php echo esc_attr( $twitter_url ) ?>\" style=\"height:20px;\"></iframe>\n\t\t</li>\n\n\t\t<li class=\"network plusone\" style=\"width:<?php echo intval( $settings['width'] )-4 ?>%\">\n\t\t\t<div class=\"g-plusone\" data-size=\"medium\" data-width=\"160\"></div>\n\t\t</li>\n\n\t\t<li class=\"network linkedin\" style=\"width:<?php echo intval( $settings['width'] )+4 ?>%;\">\n\t\t\t<script type=\"IN/Share\" data-counter=\"right\"></script>\n\t\t</li>\n\t</ul>\n\t<?php\n}", "function share($url,$title,$status)\n {\n $this->twitter->tweet($status, $url);\n $this->google->share($url);\n $this->reddit->reddit($url, $title);\n }", "public function facebook() : string\n {\n $parameters = [];\n\n if (empty($this->title) === false) {\n $parameters['title'] = $this->title;\n }\n\n if (empty($this->url) === false) {\n $parameters['u'] = $this->url;\n }\n\n return $this->createHtmlElement('a', [\n 'target' => '_blank',\n 'rel' => 'noopener',\n 'href' => 'https://www.facebook.com/share.php?'.http_build_query($parameters),\n ], 'Facebook');\n }", "function the_champ_social_sharing_page(){\r\n\t// social sharing options\r\n\tglobal $theChampSharingOptions, $theChampLoginOptions, $theChampIsBpActive;\r\n\tif(!isset($theChampSharingOptions['horizontal_sharing_size'])){\r\n\t\t$theChampSharingOptions['horizontal_sharing_size'] = 30;\r\n\t}\r\n\tif(!isset($theChampSharingOptions['horizontal_sharing_shape'])){\r\n\t\t$theChampSharingOptions['horizontal_sharing_shape'] = 'round';\r\n\t}\r\n\tif(!isset($theChampSharingOptions['vertical_sharing_size'])){\r\n\t\t$theChampSharingOptions['vertical_sharing_size'] = 35;\r\n\t}\r\n\tif(!isset($theChampSharingOptions['vertical_sharing_shape'])){\r\n\t\t$theChampSharingOptions['vertical_sharing_shape'] = 'square';\r\n\t}\r\n\t// message on saving options\r\n\techo the_champ_settings_saved_notification();\r\n\trequire 'admin/social_sharing.php';\r\n}", "function gallo_share() {\n\t$url = urlencode(get_the_permalink());\n\t$title = urlencode(html_entity_decode(get_the_title(), ENT_COMPAT, 'UTF-8'));\n\t$media = urlencode(get_the_post_thumbnail_url(get_the_ID(), 'full'));\n\ninclude( locate_template('include/share.php', false, false) );\n}", "function frame_share($provider, $post_id = null)\n{\n\n // $postid = url_to_postid( $url );\n\n $defaults = array(\n 'provider' => null,\n 'post_id' => $post_id,\n 'url' => ($post_id === null) ? $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] : get_permalink($post_id),\n 'title' => ($post_id === null) ? '' : get_the_title($post_id),\n 'description' => '',\n 'tags' => '',\n 'source' => ''\n );\n\n if (is_array($provider))\n {\n $args = wp_parse_args($provider, $defaults);\n }\n else if (is_string($provider))\n {\n\n }\n\n\n\n // Get the URL to share\n $url = ($post_id === null) ? $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] : get_permalink($post_id);\n $url = urlencode($url);\n\n switch($args['provider'])\n {\n case 'facebook':\n break;\n\n case 'google':\n break;\n\n case 'linkedin':\n break;\n\n case 'pinterest':\n break;\n\n case 'reddit':\n break;\n\n case 'twitter':\n break;\n\n default:\n break;\n }\n\n\n}", "function showView()\n\t{\n\t\techo '<a href=\"https://twitter.com/share?url='. urlencode(\"http://t3kno.dewpixel.net/view.php?s=\".$this->ytcode) .'&amp;text=This song rocks you gotta hear this!\" \n\t\t\tclass=\"twitter-share-button\" style=\"float:right;\">Tweet</a> <br />' .\n\t\t $this->title . ' by <a href=\"index.php?topof=new&artist=' . $this->artist . '\">' . $this->artist . '</a><br />\n\t\t\tGenre: <a href=\"index.php?topof=new&genre=' . strtolower($this->genre) .'\">' . $this->genre . '</a><br />\n\t\t\tUploaded By: '.$this->user .'<br />\n\t\t\tDownload: <u>Amazon</u> <u>Apple</u> <br />\n\t\t\t';\n\n\t}", "function easy_reader_share_button($type){\n\tswitch($type){\n\t\tcase 'rss':\n\t\t\t$link = get_bloginfo('rss2_url');\n\t\t\t$title = 'Subscribe';\n\t\t\tbreak;\n\t\t\n\t\tcase 'bebo':\n\t\t\t$link = 'http://www.bebo.com/c/share?Url='.urlencode(get_permalink()).'&Title='.urlencode(get_the_title());\n\t\t\t$title = 'Share on Bebo';\n\t\t\tbreak;\n\t\t\n\t\tcase 'delicious':\n\t\t\t$link = \"http://del.icio.us/post?url=\".urlencode(get_permalink()).\"&title=\".urlencode(get_the_title());\n\t\t\t$title = 'Bookmark on Delicious';\n\t\t\tbreak;\n\t\t\n\t\tcase 'digg':\n\t\t\t$link = \"http://digg.com/submit?phase=2&url=\".urlencode(get_permalink()).\"&title=\".urlencode(get_the_title());\n\t\t\t$title = 'Digg This';\n\t\t\tbreak;\n\t\t\n\t\tcase 'facebook':\n\t\t\t$link = \"http://www.facebook.com/sharer.php?u=\".urlencode(get_permalink()).\"&t=\".urlencode(get_the_title());\n\t\t\t$title = \"Share on Facebook\";\n\t\t\tbreak;\n\t\t\n\t\tcase 'google':\n\t\t\t$link = \"http://fusion.google.com/add?feedurl=\".urlencode(get_bloginfo('rss2_url'));\n\t\t\t$title = 'Import Into Google Reader';\n\t\t\tbreak;\n\t\t\n\t\tcase 'myspace':\n\t\t\t$link = \"http://www.myspace.com/Modules/PostTo/Pages/?u=\".urlencode(get_permalink());\n\t\t\t$title = 'Post On Myspace';\n\t\t\tbreak;\n\t\t\n\t\tcase 'orkut':\n\t\t\t$link = \"http://promote.orkut.com/preview?nt=orkut.com&du=\".urlencode(get_permalink()).\"&tt=\".urlencode(get_the_title());\n\t\t\t$title = 'Promote on Orkut';\n\t\t\tbreak;\n\t\t\n\t\tcase 'reddit':\n\t\t\t$link = \"http://reddit.com/submit?&url=\".urlencode(get_permalink()).\"&title=\".urlencode(get_the_title());\n\t\t\t$title = \"Share on Reddit\";\n\t\t\tbreak;\n\t\t\n\t\tcase 'stumbleupon':\n\t\t\t$link = \"http://www.stumbleupon.com/submit?url=\".urlencode(get_permalink()).\"&title=\".urlencode(get_the_title());\n\t\t\t$title = \"Stumble this\";\n\t\t\tbreak;\n\t\t\n\t\tcase 'technorati':\n\t\t\t$link = \"http://technorati.com/faves/?add=\".urlencode(get_permalink());\n\t\t\t$title = 'Favorite on Technorati';\n\t\t\tbreak;\n\t\t\t\n\t\tcase 'twitter':\n\t\t\t// TODO shorten this and let user add custom message\n\t\t\t$link = \"http://twitter.com/home?status=\".urlencode(get_permalink());\n\t\t\t$title = \"Tweet this\";\n\t\t\tbreak;\n\t}\n\t\n\t?><a href=\"<?php print $link ?>\" title=\"<?php print esc_attr($title) ?>\" rel=\"nofollow\"><img src=\"<?php print WP_PLUGIN_URL ?>/easy-reader/images/share/<?php print $type?>.png\" /></a><?php\n}", "public function social()\n {\n $id = 1; // make $id to always be one\n //Find social_setting by id in social_settings table and store it in \"$social_setting\" variable\n $social_setting = socialSetting::find($id);\n return view('admin/settings/social', [\n 'social_setting' => $social_setting,\n ]);\n }", "public function widget( $args, $instance ) {\n\t$title = apply_filters( 'widget_title', $instance['title'] );\n\t// before and after widget arguments are defined by themes\n\techo $args['before_widget'];\n\tif ( ! empty( $title ) )\n\t\techo $args['before_title'] . $title . $args['after_title'];\n\t// This is where you run the code and display the output\n\t\techo '<div class=\"social-share\"> <a data-fb-link=\"';\n\t\techo the_permalink();\n\t\techo '\" href=\"https://www.facebook.com/sharer/sharer.php?u=';\n\t\techo the_permalink();\n\t\techo '\" title=\"Share on Facebook\" name=\"fb_share\" onclick=\"window.open(this.href,\\'targetWindow\\',\\'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=660,height=380,left=100,top=100\\');return false;\" class=\"facebook\"><span><i class=\"fab fa-facebook-f\"></i></span> Facebook</a>';\n\t\techo '<a href=\"https://twitter.com/intent/tweet?text=';\n\t\techo the_title(); \n\t\techo '&url=';\n\t\techo the_permalink();\n\t\techo '\" class=\"share-icon share-button share-icon-twitter twitter\" title=\"Share on Twitter\" onclick=\"window.open(this.href,\\'targetWindow\\',\\'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=660,height=380,left=100,top=100\\');return false;\"><span><i class=\"fab fa-twitter\"></i></span> Twitter</a>'; \n\t\techo '<a href=\"https://plus.google.com/share?url=';\n\t\techo the_permalink();\n\t\techo '\" class=\"share-icon share-button share-icon-google-plus google\" title=\"Share on Google+\" onclick=\"window.open(this.href,\\'targetWindow\\',\\'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=480,height=400,left=100,top=100\\');return false;\"><span><i class=\"fab fa-google-plus-g\"></i></span> Google +</a>'; \n\t\techo '<a class=\"social-email\" href=\"mailto:?subject=I wanted to share this story with you: || ';\n\t\techo the_title();\n\t\techo '&body=I found this story on '; \n\t\techo bloginfo('url');\n\t\techo 'and I thought you would like it:';\n\t\techo the_permalink();\n\t\techo ' Here is an excerpt:';\n\t\techo strip_tags( get_the_excerpt() );\n\t\techo '\"><span><i class=\"fa fa-share-square\"></i></span>Email a Friend</a></div>';\n\t\techo $args['after_widget'];\n}", "public function server_social_wall(){\n echo $this->facebookTijdlijn();\n return 'Gelukt';\n }", "function fl_user_bar_box() {\n\tglobal $post;\n\t\n\tif( !is_singular('post') ) return; // only show on blog post single page\n\t\n\t// assemble the text and url we'll pass into each social media share link\n\t$social_text = urlencode(strip_tags(get_the_title() . ' ' . __( 'post from', APP_TD ) . ' ' . get_bloginfo('name')));\n\t$social_url = urlencode(get_permalink($post->ID));\n?>\n\n<div class=\"user-bar\">\n\t\n\t<?php if (comments_open()) comments_popup_link( ('<span>' . __( 'Leave a comment', APP_TD ) . '</span>'), ('<span>' . __( 'Leave a comment', APP_TD ) . '</span>'), ('<span>' . __( 'Leave a comment', APP_TD ) . '</span>'), 'btn', '' ); ?>\t\n\t\n\t<?php fl_social_share(); ?>\n\t\n</div>\n\n<?php\n}", "function displayArticle ($post, $author) {\n $content = file_get_contents($post);\n $shareUrl = \"http://wsle.me\" . slug($post);\n //Used for social sharing features while I'm forwarding domain.\n \n echo '<article><header><h1>' . articleName($post) . '</h1><p class=\"auth\">by: ' . $author . \" | \" . date (\"m.d.Y | h:ia\", filemtime($post)) . '</p>' . MarkdownExtra::defaultTransform($content . '***') . '<p class=\"share\">Share: <a href=\"http://www.facebook.com/sharer.php?u=' . $shareUrl . '\" target=\"_blank\">fb</a> | <a href=\"http://twitter.com/share?url=' . $shareUrl . '&text=' . ucwords(str_replace([\"-\", \"_\"], \" \", str_replace(\"/\", \"\", slug($post)))) . ' via @_wesleysinks\" target=\"_blank\">twt</a> | <a href=\"https://plusone.google.com/_/+1/confirm?hl=en&url=' . $shareUrl . '\" target=\"_blank\">g+</a></p></header></article>';\n}", "public function widget( $args, $instance ) { \n\t\t// return if sharing is disabled\n\t\tif(!the_champ_social_sharing_enabled() || !the_champ_horizontal_sharing_enabled()){\n\t\t\treturn;\n\t\t}\n\t\textract( $args );\n\t\tif($instance['hide_for_logged_in']==1 && is_user_logged_in()) return;\n\t\t\n\t\tglobal $theChampSharingOptions, $post;\n\t\tif(NULL === $post){\n\t\t\t$postId = 0;\n\t\t}else{\n\t\t\t$postId = $post->ID;\n\t\t}\n\t\t$customUrl = apply_filters('heateor_ss_custom_share_url', '', $post);\n\t\tif($customUrl){\n\t\t\t$sharingUrl = $customUrl;\n\t\t\t$postId = 0;\n\t\t}elseif(isset($instance['target_url'])){\n\t\t\tif($instance['target_url'] == 'default'){\n\t\t\t\t$sharingUrl = html_entity_decode(esc_url(the_champ_get_http().$_SERVER[\"HTTP_HOST\"] . $_SERVER[\"REQUEST_URI\"]));\n\t\t\t\tif(is_home()){\n\t\t\t\t\t$sharingUrl = esc_url(home_url());\n\t\t\t\t\t$postId = 0;\n\t\t\t\t}elseif(!is_singular()){\n\t\t\t\t\t$sharingUrl = html_entity_decode(esc_url(the_champ_get_http().$_SERVER[\"HTTP_HOST\"] . $_SERVER[\"REQUEST_URI\"]));\n\t\t\t\t\t$postId = 0;\n\t\t\t\t}elseif(isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING']){\n\t\t\t\t\t$sharingUrl = html_entity_decode(esc_url(the_champ_get_http().$_SERVER[\"HTTP_HOST\"] . $_SERVER[\"REQUEST_URI\"]));\n\t\t\t\t}elseif(get_permalink($post-> ID)){\n\t\t\t\t\t$sharingUrl = get_permalink($post->ID);\n\t\t\t\t}\n\t\t\t}elseif($instance['target_url'] == 'homepage'){\n\t\t\t\t$sharingUrl = esc_url(home_url());\n\t\t\t\t$postId = 0;\n\t\t\t}elseif($instance['target_url'] == 'custom'){\n\t\t\t\t$sharingUrl = isset($instance['target_url_custom']) ? trim($instance['target_url_custom']) : get_permalink($post->ID);\n\t\t\t\t$postId = 0;\n\t\t\t}\n\t\t}else{\n\t\t\t$sharingUrl = get_permalink($post->ID);\n\t\t}\n\t\t$shareCountUrl = $sharingUrl;\n\t\tif(isset($instance['target_url']) && $instance['target_url'] == 'default' && is_singular()){\n\t\t\t$shareCountUrl = get_permalink($post->ID);\n\t\t}\n\t\t$customPostUrl = heateor_ss_apply_target_share_url_filter($sharingUrl, 'horizontal', !is_singular() ? true : false);\n\n\t\tif($customPostUrl != $sharingUrl){\n\t\t\t$sharingUrl = $customPostUrl;\n\t\t\t$shareCountUrl = $sharingUrl;\n\t\t}\n\n\t\t$shareCountTransientId = heateor_ss_get_share_count_transient_id($sharingUrl);\n\t\t$cachedShareCount = heateor_ss_get_cached_share_count($shareCountTransientId);\n\n\t\techo \"<div class='the_champ_sharing_container the_champ_horizontal_sharing' \" . (the_champ_is_amp_page() ? '' : 'super-socializer-data-href=\"' . (isset($shareCountUrl) && $shareCountUrl ? $shareCountUrl : $sharingUrl) . '\"') . ($cachedShareCount === false || the_champ_is_amp_page() ? \"\" : \"super-socializer-no-counts='1' \") .\">\";\n\t\t\n\t\techo $before_widget;\n\t\t\n\t\tif( !empty( $instance['title'] ) ){ \n\t\t\t$title = apply_filters( 'widget_title', $instance[ 'title' ] ); \n\t\t\techo $before_title . $title . $after_title;\n\t\t}\n\n\t\tif( !empty( $instance['before_widget_content'] ) ){ \n\t\t\techo '<div>' . $instance['before_widget_content'] . '</div>'; \n\t\t}\n\t\tif(isset($theChampSharingOptions['use_shortlinks']) && function_exists('wp_get_shortlink')){\n\t\t\t$sharingUrl = wp_get_shortlink();\n\t\t\t// if bit.ly integration enabled, generate bit.ly short url\n\t\t}elseif(isset($theChampSharingOptions['bitly_enable']) && isset($theChampSharingOptions['bitly_access_token']) && $theChampSharingOptions['bitly_access_token'] != ''){\n\t\t\t$shortUrl = the_champ_generate_sharing_bitly_url($sharingUrl, $postId);\n\t\t\tif($shortUrl){\n\t\t\t\t$sharingUrl = $shortUrl;\n\t\t\t}\n\t\t}\n\t\techo the_champ_prepare_sharing_html($sharingUrl, $shareCountUrl, 'horizontal', isset($instance['show_counts']), isset($instance['total_shares']), $shareCountTransientId, !is_singular() ? true : false);\n\n\t\tif( !empty( $instance['after_widget_content'] ) ){ \n\t\t\techo '<div>' . $instance['after_widget_content'] . '</div>'; \n\t\t}\n\t\t\n\t\techo '</div>';\n\t\tif((isset($instance['show_counts']) || isset($instance['total_shares'])) && $cachedShareCount == false){\n\t\t\techo '<script>theChampLoadEvent(\n\t\tfunction(){\n\t\t\t// sharing counts\n\t\t\ttheChampCallAjax(function(){\n\t\t\t\ttheChampGetSharingCounts();\n\t\t\t});\n\t\t}\n\t);</script>';\n\t\t}\n\t\techo $after_widget;\n\t}", "public function index()\n {\n $data['socialMedia'] = SocialMedia::all();\n return view('backend.website.social.view',$data);\n }", "function getDisplay() {\n\t\t$content = \"<h3>\" . $this->widgetTitle . \"</h3>\";\n\n\t\tif (!empty($this->facebookUrl) && \n\t\t\ttrim($this->facebookUrl) !== '') {\n\t\t\t$content .= '<span class=\"social-pages-icon social-page-facebook\"><a href=\"' . $this->facebookUrl . '\" ><i class=\"fa fa-facebook\"></i></a></span>';\n\t\t}\n\t\tif (!empty($this->twitterUrl) && \n\t\t\t\ttrim($this->twitterUrl) !== '') {\n\t\t\t$content .= '<span class=\"social-pages-icon social-page-twitter\"><a href=\"' . $this->twitterUrl . '\" ><i class=\"fa fa-twitter\"></i></a></span>';\n\t\t}\n\t\tif (!empty($this->googleplusUrl) && \n\t\t\ttrim($this->googleplusUrl) !== '') {\n\t\t\t$content .= '<span class=\"social-pages-icon social-page-google\"><a href=\"' . $this->googleplusUrl . '\" ><i class=\"fa fa-google\"></i></a></span>';\n\t\t}\n\n\t\treturn $content;\n\t}", "private function isSocialPost()\n\t{\n\t\treturn ( get_post_type($this->post_id) == 'social-post' ) ? true : false;\n\t}", "public function index()\n {\n $social = SocialMediaLink::all();\n return view('welcome',compact('social'));\n }", "public function getViewLink() {\n return getConfig(\"public_url\").\"?\".$this->shareID;\n }", "function\nwidget_pr_share ($title, $url)\n{\n $title = trim ($title);\n $url = trim ($url);\n $p = '';\n\n $p .= '<img src=\"images/widget/widget_relate_tellafriend.png\" border=\"0\">'\n .'<a href=\"mailto:?body='\n .$url\n .'&subject='\n .$title\n .'\"'\n .'>Share</a>'\n;\n return $p;\n}", "function pacz_woocommerce_share() {\n\tglobal $post;\n\t$image_src_array = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full', true );\n\n\t$output = '<div class=\"woocommerce-share\"><ul class=\"single-social-share\">';\n\t\t$output .= '<li><a class=\"facebook-share\" data-title=\"'.get_the_title().'\" data-url=\"'.get_permalink().'\" href=\"#\"><i class=\"pacz-icon-facebook\"></i></a></li>';\n\t\t$output .= '<li><a class=\"twitter-share\" data-title=\"'.get_the_title().'\" data-url=\"'.get_permalink().'\" href=\"#\"><i class=\"pacz-icon-twitter\"></i></a></li>';\n\t\t$output .= '<li><a class=\"googleplus-share\" data-title=\"'.get_the_title().'\" data-url=\"'.get_permalink().'\" href=\"#\"><i class=\"pacz-icon-google-plus\"></i></a></li>';\n\t\t$output .= '<li><a class=\"linkedin-share\" data-title=\"'. get_the_title() .'\" data-url=\"'.get_permalink().'\" href=\"#\"><i class=\"pacz-icon-linkedin\"></i></a></li>';\n\t\t$output .= '<li><a class=\"pinterest-share\" data-image=\"'.$image_src_array[0].'\" data-title=\"'.get_the_title().'\" data-url=\"'.get_permalink().'\" href=\"#\"><i class=\"pacz-icon-pinterest\"></i></a></li>';\n\t$output .= '</ul><div class=\"clearboth\"></div></div>';\n\n\techo '<div>'.$output.'</div>';\n\n}", "function wpcom_vip_enable_sharing() {\n\tadd_filter( 'post_flair', 'sharing_display', 20 );\n}", "function print_embed_sharing_button()\n {\n }", "function register_block_core_social_link()\n {\n }", "protected function render() {\n\n\t\tglobal $wp;\n\t\t$settings = $this->get_settings_for_display();\n\t\t$id = $this->get_id();\n\t\t$is_editor = \\Elementor\\Plugin::instance()->editor->is_edit_mode();\n\n\t\t$fake_count_limit = ! empty( $settings['fake_count_limit'] ) ? $settings['fake_count_limit'] : 0;\n\t\t$fake_count_number = ! empty( $settings['fake_count'] ) ? $settings['fake_count'] : 0;\n\t\t$pin_image_url = '';\n\t\t$count = 0;\n\t\t$show_share_count = $settings['show_count'];\n\t\t$total_count = array();\n\t\t$total_result = 0;\n\n\t\t$networks = isset( $settings['show_count_for'] ) ? $settings['show_count_for'] : '';\n\t\t$args = array( 'timeout' => 30 );\n\t\t$integration_options = UAEL_Helper::get_integrations_options();\n\t\t$widget_list = UAEL_Helper::get_widget_list();\n\n\t\tif ( 'floating' === $settings['display_position'] && $is_editor ) { ?>\n\n\t\t\t<div class=\"uael-builder-msg\" style=\"text-align: center;\">\n\t\t\t\t<h5><?php esc_html_e( 'Floating Social Share - ID', 'uael' ); ?><?php echo esc_html( $id ); ?></h5>\n\t\t\t\t<p><?php esc_html_e( 'Click here to edit the \"Floating Social Share\" settings. This text will not be visible on frontend.', 'uael' ); ?></p>\n\t\t\t</div>\n\t\t\t<?php\n\t\t}\n\n\t\tif ( 'custom' === $settings['share_url_type'] ) {\n\n\t\t\tif ( '' === $settings['share_url']['url'] ) {\n\n\t\t\t\t$page_url = add_query_arg( $wp->query_vars, home_url( $wp->request ) );\n\t\t\t} else {\n\n\t\t\t\t$page_url = esc_url( $settings['share_url']['url'] );\n\t\t\t}\n\t\t} else {\n\n\t\t\t$page_url = add_query_arg( $wp->query_vars, home_url( $wp->request ) );\n\t\t}\n\n\t\tif ( 'yes' === $settings['show_count'] && ! empty( $settings['show_count_for'] ) ) {\n\n\t\t\tif ( in_array( 'facebook', $settings['show_count_for'], true ) ) {\n\n\t\t\t\tif ( ( ! isset( $integration_options['uael_share_button'] ) || '' === $integration_options['uael_share_button'] ) && $is_editor ) {\n\t\t\t\t\t?>\n\n\t\t\t\t\t<div class=\"uael-builder-msg\" style=\"text-align: center;\">\n\t\t\t\t\t\t<p><?php esc_html_e( 'Please set the Facebook token from Dashboard -> Settings -> UAE -> Social Share - Facebook Access Token.', 'uael' ); ?></p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<?php\n\t\t\t\t} else {\n\n\t\t\t\t\t$access_token = $integration_options['uael_share_button'];\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( in_array( 'pinterest', $settings['show_count_for'], true ) ) {\n\n\t\t\t\tif ( empty( get_the_post_thumbnail_url() ) && $is_editor ) {\n\t\t\t\t\t?>\n\n\t\t\t\t\t<div class=\"uael-builder-msg\" style=\"text-align: center;\">\n\t\t\t\t\t\t<p><?php esc_html_e( 'To share the post on Pinterest you must assign a featured image for the Post/Page.', 'uael' ); ?></p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<?php\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tforeach ( $settings['social_icon_list'] as $value ) {\n\n\t\t\tif ( 'pinterest' === $value['text'] ) {\n\n\t\t\t\t$pin_image_url = ( ! empty( get_the_post_thumbnail_url() ) ? get_the_post_thumbnail_url() : Utils::get_placeholder_image_src() );\n\t\t\t}\n\t\t}\n\n\t\t$share_url = isset( $settings['share_url']['url'] ) ? $settings['share_url']['url'] : '';\n\t\t?>\n\n\t\t<div class=\"uael-style-<?php echo esc_attr( $settings['display_position'] ); ?> uael-container uael-floating-align-<?php echo esc_attr( $settings['display_floating_align'] ); ?>\" data-pin_data_url=\"<?php echo esc_attr( $pin_image_url ); ?>\" data-share_url_type=\"<?php echo esc_attr( $settings['share_url_type'] ); ?>\" data-share_url=\"<?php echo esc_attr( $share_url ); ?>\">\n\t\t\t<div class=\"elementor-grid uael-floating-align-<?php echo esc_attr( $settings['display_floating_align'] ); ?>\">\n\t\t\t\t<?php\n\n\t\t\t\tif ( ! empty( $settings['show_count_for'] ) ) {\n\n\t\t\t\t\tif ( is_array( $settings['show_count_for'] ) ) {\n\n\t\t\t\t\t\tforeach ( $settings['show_count_for'] as $action ) {\n\n\t\t\t\t\t\t\tswitch ( $action ) {\n\n\t\t\t\t\t\t\t\tcase 'facebook':\n\t\t\t\t\t\t\t\t\tif ( empty( $access_token ) ) {\n\n\t\t\t\t\t\t\t\t\t\t$response = UAEL_FACEBOOK_GRAPH_API_ENDPOINT . '?id=' . $page_url;\n\t\t\t\t\t\t\t\t\t\t$result = 0;\n\t\t\t\t\t\t\t\t\t\t$total_result = 0;\n\t\t\t\t\t\t\t\t\t\t$total_result = $total_result + $result;\n\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t$result = $this->retrive_share_count_fb( $access_token, $page_url );\n\t\t\t\t\t\t\t\t\t\t$total_result = isset( $total_result ) ? $total_result : 0;\n\t\t\t\t\t\t\t\t\t\t$total_result = $total_result + $result;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase 'twitter':\n\t\t\t\t\t\t\t\t\t$response = 'http://opensharecount.com/count.json?url=' . $page_url;\n\t\t\t\t\t\t\t\t\t$response = UAEL_Helper::get_social_share_count( $response, $args );\n\t\t\t\t\t\t\t\t\t$response = isset( $response ) ? json_decode( $response ) : 0;\n\n\t\t\t\t\t\t\t\t\tif ( isset( $response->count ) ) {\n\n\t\t\t\t\t\t\t\t\t\t$result = $response->count;\n\t\t\t\t\t\t\t\t\t\t$total_result = isset( $total_result ) ? $total_result : 0;\n\t\t\t\t\t\t\t\t\t\t$total_result = $total_result + $result;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase 'pinterest':\n\t\t\t\t\t\t\t\t\t$result = $this->retrive_share_count_pin( $page_url );\n\t\t\t\t\t\t\t\t\t$total_result = $total_result + $result;\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase 'tumblr':\n\t\t\t\t\t\t\t\t\t$result = $this->retrive_share_count_thumblr( $page_url );\n\t\t\t\t\t\t\t\t\t$total_result = $total_result + $result;\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase 'reddit':\n\t\t\t\t\t\t\t\t\t$result = $this->retrive_share_count_reddit( $page_url );\n\t\t\t\t\t\t\t\t\t$total_result = $total_result + $result;\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase 'buffer':\n\t\t\t\t\t\t\t\t\t$result = $this->retrive_share_count_buffer( $page_url );\n\t\t\t\t\t\t\t\t\t$total_result = $total_result + $result;\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase 'vk':\n\t\t\t\t\t\t\t\t\t$result = $this->retrive_share_count_vk( $page_url );\n\t\t\t\t\t\t\t\t\t$total_result = $total_result + $result;\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tcase 'odnoklassniki':\n\t\t\t\t\t\t\t\t\t$result = $this->retrive_share_count_ok( $page_url );\n\t\t\t\t\t\t\t\t\t$total_result = $total_result + $result;\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t// code...\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tforeach ( $settings['social_icon_list'] as $button ) {\n\t\t\t\t\t?>\n\t\t\t\t\t<div class=\"elementor-grid-item\">\n\t\t\t\t\t\t<?php\n\t\t\t\t\t\t$result = isset( $result ) ? $result : 0;\n\n\t\t\t\t\t\tif ( ! empty( $button['Custom_text'] ) ) {\n\n\t\t\t\t\t\t\t$custom_text = $button['Custom_text'];\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t$custom_text = $button['text'];\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$icon_prop = $button['text'];\n\n\t\t\t\t\t\tif ( '' !== $icon_prop ) {\n\n\t\t\t\t\t\t\t$uael_js_callback_class = $button['text'];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t?>\n\t\t\t\t\t\t<a class=\"uael-share-btn-<?php echo esc_attr( $uael_js_callback_class ); ?>\">\n\t\t\t\t\t\t\t<div class=\"uael-share-btn elementor-animation-<?php echo esc_attr( $settings['hover_animation'] ); ?> uaelbtn-shape-<?php echo esc_attr( $settings['shape'] ); ?> uaelbtn--skin-<?php echo esc_attr( $settings['skin'] ); ?>\">\n\n\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\tswitch ( $settings['view'] ) {\n\t\t\t\t\t\t\t\t\tcase 'icon-text':\n\t\t\t\t\t\t\t\t\t\tif ( 'left' === $settings['icon_align'] ) {\n\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"uael-share-btn__icon\">\n\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"<?php echo esc_attr( self::uael_get_network_class( $button['text'] ) ); ?>\" aria-hidden=\"true\"></i>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-screen-only\"><?php /* translators: %s share text */ echo esc_html( sprintf( __( 'Share on %s', 'uael' ), $custom_text ) ); ?></span>\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<?php } ?>\n\t\t\t\t\t\t\t\t\t\t<div class=\"uael-share-btn__text\">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"uael-share-btn__title\"><?php echo esc_html( ucfirst( $custom_text ) ); ?></span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<?php if ( 'right' === $settings['icon_align'] ) { ?>\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"uael-share-btn__icon\">\n\t\t\t\t\t\t\t\t\t\t\t\t<i class=\"<?php echo esc_attr( self::uael_get_network_class( $button['text'] ) ); ?>\" aria-hidden=\"true\"></i>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-screen-only\"><?php /* translators: %s share text */ echo esc_html( sprintf( __( 'Share on %s', 'uael' ), $custom_text ) ); ?></span>\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<?php } ?>\n\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\tcase 'text':\n\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t<div class=\"uael-share-btn__text\">\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"uael-share-btn__title\">\n\t\t\t\t\t\t\t\t\t\t\t\t<?php echo esc_html( ucfirst( $custom_text ) ); ?>\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\tcase 'icon':\n\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t<span class=\"uael-share-btn__icon\">\n\t\t\t\t\t\t\t\t\t\t\t<i class=\"<?php echo esc_attr( self::uael_get_network_class( $button['text'] ) ); ?>\" aria-hidden=\"true\"></i>\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-screen-only\"><?php /* translators: %s share text */ echo esc_html( sprintf( __( 'Share on %s', 'uael' ), $custom_text ) ); ?></span>\n\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t// code...\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<?php\n\t\t\t\t}\n\n\t\t\t\tif ( 'inline' === $settings['display_position'] && 'yes' === $settings['show_count'] ) {\n\t\t\t\t\t?>\n\n\t\t\t\t\t<div class=\"uael-total-share-btn\">\n\t\t\t\t\t\t<?php\n\t\t\t\t\t\tif ( ! empty( $settings['custom_share_text'] ) && 'custom' === $settings['share_text'] ) {\n\t\t\t\t\t\t\t?>\n\n\t\t\t\t\t\t\t<span class=\"uael-total-share-btn__iconx\">\n\t\t\t\t\t\t\t\t<?php echo esc_html( $settings['custom_share_text'] ); ?>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t} elseif ( 'icon' === $settings['share_text'] ) {\n\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t<span class=\"uael-total-share-btn__iconx\">\n\t\t\t\t\t\t\t\t<i class=\"eicon-share\" aria-hidden=\"true\"></i>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t}\n\t\t\t\t\t\t?>\n\t\t\t\t\t\t<span class=\"uael-total-share-btn__titlex\">\n\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t// Show/Hide count.\n\t\t\t\t\t\t\t$uael_show_share_count = ! empty( $settings['show_count'] ) ? $settings['show_count'] : 'no';\n\n\t\t\t\t\t\t\t$total_share_count = isset( $total_result ) ? $total_result : 0;\n\n\t\t\t\t\t\t\t$fake_count_limit = ( ! empty( $settings['fake_count_limit'] ) && ! empty( $settings['fake_count'] ) ) ? $settings['fake_count_limit'] : 0;\n\n\t\t\t\t\t\t\t$fake_count_number = ( ! empty( $settings['fake_count'] ) ) ? $settings['fake_count'] : 0;\n\n\t\t\t\t\t\t\t$uael_show_fake_count = ( ! empty( $settings['enable_fake_count'] ) ) ? $settings['enable_fake_count'] : 'no';\n\n\t\t\t\t\t\t\tif ( 'yes' === $uael_show_share_count && 'yes' === $uael_show_fake_count ) {\n\n\t\t\t\t\t\t\t\tif ( ( $fake_count_limit >= $total_share_count ) || ( ! $fake_count_limit && $fake_count_number ) ) {\n\t\t\t\t\t\t\t\t\t$fake_count_number = apply_filters( 'uael_fake_share_count', $fake_count_number );\n\t\t\t\t\t\t\t\t\t$fake_count_number = $total_share_count + $fake_count_number;\n\t\t\t\t\t\t\t\t\techo esc_html( $fake_count_number );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\techo esc_html( $total_share_count );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} elseif ( 'yes' === $uael_show_share_count && 'no' === $uael_show_fake_count ) {\n\n\t\t\t\t\t\t\t\techo esc_html( $total_share_count );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<?php\n\t\t\t\t}\n\n\t\t\t\tif ( 'floating' === $settings['display_position'] ) {\n\t\t\t\t\t$html = $this->inline_floating( $settings, $total_result );\n\t\t\t\t\t\techo $html; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped\n\t\t\t\t}\n\t\t\t\t?>\n\t\t\t</div>\n\t\t</div>\n\t\t<?php\n\t}", "public function show(SocialWork $socialWork)\n {\n //\n }", "public function widget( $args, $instance ) { \n\t\t// return if sharing is disabled\n\t\tif(!the_champ_social_sharing_enabled() || the_champ_is_amp_page() || !the_champ_vertical_sharing_enabled()){\n\t\t\treturn;\n\t\t}\n\t\textract( $args );\n\t\tif($instance['hide_for_logged_in']==1 && is_user_logged_in()) return;\n\t\t\n\t\tglobal $theChampSharingOptions, $post;\n\t\tif(NULL === $post){\n\t\t\t$postId = 0;\n\t\t}else{\n\t\t\t$postId = $post->ID;\n\t\t}\n\t\t$customUrl = apply_filters('heateor_ss_custom_share_url', '', $post);\n\t\tif($customUrl){\n\t\t\t$sharingUrl = $customUrl;\n\t\t\t$postId = 0;\n\t\t}elseif(isset($instance['target_url'])){\n\t\t\tif($instance['target_url'] == 'default'){\n\t\t\t\t$sharingUrl = html_entity_decode(esc_url(the_champ_get_http().$_SERVER[\"HTTP_HOST\"] . $_SERVER[\"REQUEST_URI\"]));\n\t\t\t\tif(is_home()){\n\t\t\t\t\t$sharingUrl = esc_url(home_url());\n\t\t\t\t\t$postId = 0;\n\t\t\t\t}elseif(!is_singular()){\n\t\t\t\t\t$sharingUrl = html_entity_decode(esc_url(the_champ_get_http().$_SERVER[\"HTTP_HOST\"] . $_SERVER[\"REQUEST_URI\"]));\n\t\t\t\t\t$postId = 0;\n\t\t\t\t}elseif(isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING']){\n\t\t\t\t\t$sharingUrl = html_entity_decode(esc_url(the_champ_get_http().$_SERVER[\"HTTP_HOST\"] . $_SERVER[\"REQUEST_URI\"]));\n\t\t\t\t}elseif(get_permalink($post-> ID)){\n\t\t\t\t\t$sharingUrl = get_permalink($post->ID);\n\t\t\t\t}\n\t\t\t}elseif($instance['target_url'] == 'homepage'){\n\t\t\t\t$sharingUrl = esc_url(home_url());\n\t\t\t\t$postId = 0;\n\t\t\t}elseif($instance['target_url'] == 'custom'){\n\t\t\t\t$sharingUrl = isset($instance['target_url_custom']) ? trim($instance['target_url_custom']) : get_permalink($post->ID);\n\t\t\t\t$postId = 0;\n\t\t\t}\n\t\t}else{\n\t\t\t$sharingUrl = get_permalink($post->ID);\n\t\t}\n\n\t\t$shareCountUrl = $sharingUrl;\n\t\tif(isset($instance['target_url']) && $instance['target_url'] == 'default' && is_singular()){\n\t\t\t$shareCountUrl = get_permalink($post->ID);\n\t\t}\n\t\t$customPostUrl = heateor_ss_apply_target_share_url_filter($sharingUrl, 'vertical', false);\n\t\tif($customPostUrl != $sharingUrl){\n\t\t\t$sharingUrl = $customPostUrl;\n\t\t\t$shareCountUrl = $sharingUrl;\n\t\t}\n\n\t\t$ssOffset = 0;\n\t\tif(isset($instance['alignment']) && isset($instance[$instance['alignment'] . '_offset'])){\n\t\t\t$ssOffset = $instance[$instance['alignment'] . '_offset'];\n\t\t}\n\n\t\t$shareCountTransientId = heateor_ss_get_share_count_transient_id($sharingUrl);\n\t\t$cachedShareCount = heateor_ss_get_cached_share_count($shareCountTransientId);\n\n\t\techo \"<div class='the_champ_sharing_container the_champ_vertical_sharing\" . ( isset( $theChampSharingOptions['hide_mobile_sharing'] ) ? ' the_champ_hide_sharing' : '' ) . ( isset( $theChampSharingOptions['bottom_mobile_sharing'] ) ? ' the_champ_bottom_sharing' : '' ) . \"' \" . ( the_champ_is_amp_page() ? \"\" : \"ss-offset='\". $ssOffset .\"' \" ) . \"style='width:\" . ((isset($theChampSharingOptions['vertical_sharing_size']) ? $theChampSharingOptions['vertical_sharing_size'] : 35) + 4) . \"px;\".(isset($instance['alignment']) && $instance['alignment'] != '' && isset($instance[$instance['alignment'].'_offset']) ? $instance['alignment'].': '. ( $instance[$instance['alignment'].'_offset'] == '' ? 0 : $instance[$instance['alignment'].'_offset'] ) .'px;' : '').(isset($instance['top_offset']) ? 'top: '. ( $instance['top_offset'] == '' ? 0 : $instance['top_offset'] ) .'px;' : '') . (isset($instance['vertical_bg']) && $instance['vertical_bg'] != '' ? 'background-color: '.$instance['vertical_bg'] . ';' : '-webkit-box-shadow:none;box-shadow:none;') . \"' \" . ( the_champ_is_amp_page() ? '' : 'super-socializer-data-href=\"' . (isset($shareCountUrl) && $shareCountUrl ? $shareCountUrl : $sharingUrl) . '\"' ) . ($cachedShareCount === false || the_champ_is_amp_page() ? \"\" : \"super-socializer-no-counts='1' \") .\">\";\n\t\t\n\t\tif(isset($theChampSharingOptions['use_shortlinks']) && function_exists('wp_get_shortlink')){\n\t\t\t$sharingUrl = wp_get_shortlink();\n\t\t\t// if bit.ly integration enabled, generate bit.ly short url\n\t\t}elseif(isset($theChampSharingOptions['bitly_enable']) && isset($theChampSharingOptions['bitly_access_token']) && $theChampSharingOptions['bitly_access_token'] != ''){\n\t\t\t$shortUrl = the_champ_generate_sharing_bitly_url($sharingUrl, $postId);\n\t\t\tif($shortUrl){\n\t\t\t\t$sharingUrl = $shortUrl;\n\t\t\t}\n\t\t}\n\t\t//echo $before_widget;\n\t\techo the_champ_prepare_sharing_html($sharingUrl, $shareCountUrl, 'vertical', isset($instance['show_counts']), isset($instance['total_shares']), $shareCountTransientId);\n\t\techo '</div>';\n\t\tif((isset($instance['show_counts']) || isset($instance['total_shares'])) && $cachedShareCount == false){\n\t\t\techo '<script>theChampLoadEvent(\n\t\tfunction(){\n\t\t\t// sharing counts\n\t\t\ttheChampCallAjax(function(){\n\t\t\t\ttheChampGetSharingCounts();\n\t\t\t});\n\t\t}\n\t);</script>';\n\t\t}\n\t\t//echo $after_widget;\n\t}", "public function single_social(){\n\t\t$id =$_GET['edit'];\n\t\t$sql= $this->link->query(\"SELECT * FROM social WHERE id='$id'\");\n\t\treturn $sql;\n\t}", "function get_twitter_share_url( $the_post = null ) {\n\tglobal $post;\n\tif ( empty( $the_post ) ) {\n\t\t$the_post = $post;\n\t}\n\n\t$permalink = get_the_permalink( $the_post->ID );\n\t$the_title = get_the_title( $the_post->ID );\n\t$handle = get_theme_mod( 'twitter_handle' );\n\n\treturn 'https://twitter.com/intent/tweet?text=' . rawurlencode( $the_title ) . '&url=' . $permalink . '&via=' . $handle;\n}", "public function index()\n {\n $data = Social::all();\n\n return view('admin.pages.socials', compact('data'));\n }", "function social_get_share_url($service, $url, $title)\n{\n\n $links = array();\n $surl = shortener_shorten($url);\n if ($surl != $url) {\n $url = $surl;\n callmap_log($url);\n }\n\n switch ($service) {\n case 'facebook':\n $base = 'https://www.facebook.com/sharer/sharer.php';\n $query = array('u' => $url, 't' => $title);\n break;\n case 'linkedin':\n $base = 'https://www.linkedin.com/shareArticle';\n $query = array('url'=> $url, 'title'=>$title);\n break;\n case 'gplus':\n $base = 'https://plus.google.com/share';\n $query = array('url'=>$url);\n break;\n case 'whatsapp':\n $base = 'whatsapp://send';\n $query = array('text'=> $title . ' - ' . $url);\n break;\n case 'email':\n $base = 'mailto:';\n $query = array('subject'=> $title, 'body' => $title . \"\\n\" . $url);\n break;\n case 'twitter': \n $search_replace = config('twitter_search_replace', array());\n foreach ($search_replace as $search => $replace) {\n $title = str_replace($search, $replace, $title);\n }\n $base = 'https://twitter.com/intent/tweet';\n $query = array('url'=>$url, 'text'=>$title);\n break;\n default:\n return '';\n }\n return router_add_query($base, $query);\n}", "function recipe_share_shortcode( $atts = [], $content = null) {\n $permalink = urlencode(get_permalink($post->ID));\n $title = urlencode(get_the_title($post->ID));\n\n $o = '<span>Share</span>\n <p>\n <a href=\"http://www.facebook.com/sharer.php?u=' . $permalink . '&t=' . $title . '\" target=\"_blank\"><i class=\"fab fa-facebook-f\"></i><span class=\"show-for-sr\">Share on Facebook</span></a>\n <a href=\"http://twitter.com/share?url=' . $permalink . '\" target=\"_blank\"><i class=\"fab fa-twitter\"></i><span class=\"show-for-sr\">Share on Twitter</span></a>\n <a href=\"https://www.linkedin.com/shareArticle?mini=true&url=' . $permalink . '&title=' . $title . '&source=LinkedIn\"><i class=\"fab fa-linkedin-in\" target=\"_blank\"></i><span class=\"show-for-sr\">Share on Linkedin</span></a>\n <a href=\"mailto:?subject=' . $title . ' | Check out this recipe&body=' . $permalink . '\" title=\"Share by Email\"><i class=\"fas fa-link\"></i><span class=\"show-for-sr\">Share via Email</span></a>\n </p>\n';\n\n return $o;\n}", "function print_embed_sharing_dialog()\n {\n }", "public function share($pingid)\n\t{\n\t\t$original = db()->table('ping')\n\t\t\t->get(is_numeric($pingid)? '_id' : 'guid', $pingid)\n\t\t\t->where('deleted', null)\n\t\t\t->first(true);\n\t\t\n\t\tif (!$this->user) {\n\t\t\tthrow new PublicException('Log in required', 403);\n\t\t}\n\t\tif ($original->target) {\n\t\t\tthrow new PublicException('Ping cannot be shared', 403);\n\t\t}\n\t\t\n\t\t$src = AuthorModel::get(db()->table('user')->get('_id', $this->user->id)->fetch());\n\t\t\n\t\t$shared = db()->table('ping')->newRecord();\n\t\t$shared->_id = null;\n\t\t$shared->src = $src;\n\t\t$shared->target = null;\n\t\t$shared->content = $original->content;\n\t\t$shared->url = $original->url;\n\t\t$shared->media = $original->media;\n\t\t$shared->explicit= $original->explicit;\n\t\t$shared->deleted = $original->deleted;\n\t\t$shared->created = time();\n\t\t$shared->irt = $original->irt;\n\t\t$shared->share = $original;\n\t\t\n\t\t$this->core->feed->push->do(function ($notification) {\n\t\t\t$notification->store();\n\t\t}, $shared);\n\t\t\n\t\t$this->view->set('shared', $shared);\n\t}", "public function showComponent($atts)\r\n\t{\r\n\t\t\r\n\t\t$this->prepareData();\r\n\r\n\t\t// Default values\r\n\t\t$atts = shortcode_atts(array('show' => 'facebook, twitter, linkedin, email, whatsapp, viber'), $atts);\r\n\t\twp_enqueue_style('social-shares');\r\n\t\twp_enqueue_script('social-shares');\r\n\t\tob_start();\r\n\t?>\r\n\r\n<div class=\"ss\">\r\n\r\n\t<?php if (strpos($atts['show'], 'facebook') !== false) : ?>\r\n\t<a class=\"ss__facebook\" href=\"http://www.facebook.com/share.php?u=<?php echo $this->shared_url; ?>\" title=\"Facebook\" target=\"_BLANK\">\r\n\t\t<svg width=\"30\" height=\"30\" viewBox=\"0 0 24 24\">\r\n\t\t\t<path d=\"M12 2.04C6.5 2.04 2 6.53 2 12.06C2 17.06 5.66 21.21 10.44 21.96V14.96H7.9V12.06H10.44V9.85C10.44 7.34 11.93 5.96 14.22 5.96C15.31 5.96 16.45 6.15 16.45 6.15V8.62H15.19C13.95 8.62 13.56 9.39 13.56 10.18V12.06H16.34L15.89 14.96H13.56V21.96A10 10 0 0 0 22 12.06C22 6.53 17.5 2.04 12 2.04Z\" />\r\n\t\t</svg>\r\n\t</a>\r\n\t<?php endif; ?>\r\n\r\n\t<?php if (strpos($atts['show'], 'twitter') !== false) : ?>\r\n\t<a class=\"ss__twitter\" data-size=\"large\" href=\"https://twitter.com/intent/tweet?text=<?php echo $this->tweet; ?>\" title=\"Twitter\" target=\"_BLANK\">\r\n\t\t<svg width=\"30\" height=\"30\" viewBox=\"0 0 24 24\">\r\n\t\t\t<path d=\"M22.46,6C21.69,6.35 20.86,6.58 20,6.69C20.88,6.16 21.56,5.32 21.88,4.31C21.05,4.81 20.13,5.16 19.16,5.36C18.37,4.5 17.26,4 16,4C13.65,4 11.73,5.92 11.73,8.29C11.73,8.63 11.77,8.96 11.84,9.27C8.28,9.09 5.11,7.38 3,4.79C2.63,5.42 2.42,6.16 2.42,6.94C2.42,8.43 3.17,9.75 4.33,10.5C3.62,10.5 2.96,10.3 2.38,10C2.38,10 2.38,10 2.38,10.03C2.38,12.11 3.86,13.85 5.82,14.24C5.46,14.34 5.08,14.39 4.69,14.39C4.42,14.39 4.15,14.36 3.89,14.31C4.43,16 6,17.26 7.89,17.29C6.43,18.45 4.58,19.13 2.56,19.13C2.22,19.13 1.88,19.11 1.54,19.07C3.44,20.29 5.7,21 8.12,21C16,21 20.33,14.46 20.33,8.79C20.33,8.6 20.33,8.42 20.32,8.23C21.16,7.63 21.88,6.87 22.46,6Z\" />\r\n\t\t</svg>\r\n\t</a>\r\n\t<?php endif; ?>\r\n\r\n\t<?php if (strpos($atts['show'], 'linkedin') !== false) : ?>\r\n\t<a class=\"ss__linkedin\" href=\"https://www.linkedin.com/shareArticle?mini=true&url=&title=<?php echo $this->title; ?>&summary=&source=<?php echo $this->shared_url; ?>\" title=\"LinkedIn\" target=\"_BLANK\">\r\n\t\t<svg width=\"30\" height=\"30\" viewBox=\"0 0 24 24\">\r\n\t\t\t<path d=\"M21,21H17V14.25C17,13.19 15.81,12.31 14.75,12.31C13.69,12.31 13,13.19 13,14.25V21H9V9H13V11C13.66,9.93 15.36,9.24 16.5,9.24C19,9.24 21,11.28 21,13.75V21M7,21H3V9H7V21M5,3A2,2 0 0,1 7,5A2,2 0 0,1 5,7A2,2 0 0,1 3,5A2,2 0 0,1 5,3Z\" />\r\n\t\t</svg>\r\n\t</a>\r\n\t<?php endif; ?>\r\n\r\n\t<?php if (strpos($atts['show'], 'email') !== false) : ?>\r\n\t<a class=\"ss__email\" href=\"mailto:?subject=<?php echo $this->title; ?>&body=<?php echo $this->shared_url; ?>\" title=\"E-mail\" target=\"_BLANK\">\r\n\t\t<svg width=\"30\" height=\"30\" viewBox=\"0 0 24 24\">\r\n\t\t\t<path d=\"M20,8L12,13L4,8V6L12,11L20,6M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z\" />\r\n\t\t</svg>\r\n\t</a>\r\n\t<?php endif; ?>\r\n\r\n\t<?php if (strpos($atts['show'], 'whatsapp') !== false) : ?>\r\n\t<a class=\"ss__whatsapp ss__mobile\" href=\"whatsapp://send?text=<?php echo $this->title; ?>\" title=\"WhatsApp\" target=\"_BLANK\" data-action=\"share/whatsapp/share\">\r\n\t\t<svg width=\"30\" height=\"30\" viewBox=\"0 0 24 24\">\r\n\t\t\t<path d=\"M16.75,13.96C17,14.09 17.16,14.16 17.21,14.26C17.27,14.37 17.25,14.87 17,15.44C16.8,16 15.76,16.54 15.3,16.56C14.84,16.58 14.83,16.92 12.34,15.83C9.85,14.74 8.35,12.08 8.23,11.91C8.11,11.74 7.27,10.53 7.31,9.3C7.36,8.08 8,7.5 8.26,7.26C8.5,7 8.77,6.97 8.94,7H9.41C9.56,7 9.77,6.94 9.96,7.45L10.65,9.32C10.71,9.45 10.75,9.6 10.66,9.76L10.39,10.17L10,10.59C9.88,10.71 9.74,10.84 9.88,11.09C10,11.35 10.5,12.18 11.2,12.87C12.11,13.75 12.91,14.04 13.15,14.17C13.39,14.31 13.54,14.29 13.69,14.13L14.5,13.19C14.69,12.94 14.85,13 15.08,13.08L16.75,13.96M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C10.03,22 8.2,21.43 6.65,20.45L2,22L3.55,17.35C2.57,15.8 2,13.97 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12C4,13.72 4.54,15.31 5.46,16.61L4.5,19.5L7.39,18.54C8.69,19.46 10.28,20 12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4Z\" />\r\n\t\t</svg>\r\n\t</a>\r\n\t<?php endif; ?>\r\n\r\n\t<?php if (strpos($atts['show'], 'viber') !== false) : ?>\r\n\t<a class=\"ss__viber ss__mobile\" href=\"viber://forward?text=<?php echo $this->title; ?> <?php $this->shared_url; ?>\" title=\"Viber\" target=\"_BLANK\">\r\n\t\t<svg width=\"30\" height=\"30\" viewBox=\"0 0 455.731 455.731\">\r\n\t\t\t<path d=\"M371.996,146.901l-0.09-0.36c-7.28-29.43-40.1-61.01-70.24-67.58l-0.34-0.07\r\n\t\t\tc-48.75-9.3-98.18-9.3-146.92,0l-0.35,0.07c-30.13,6.57-62.95,38.15-70.24,67.58l-0.08,0.36c-9,41.1-9,82.78,0,123.88l0.08,0.36\r\n\t\t\tc6.979,28.174,37.355,58.303,66.37,66.589v32.852c0,11.89,14.49,17.73,22.73,9.15l33.285-34.599\r\n\t\t\tc7.219,0.404,14.442,0.629,21.665,0.629c24.54,0,49.09-2.32,73.46-6.97l0.34-0.07c30.14-6.57,62.96-38.15,70.24-67.58l0.09-0.36\r\n\t\t\tC380.996,229.681,380.996,188.001,371.996,146.901z M345.656,264.821c-4.86,19.2-29.78,43.07-49.58,47.48\r\n\t\t\tc-25.921,4.929-52.047,7.036-78.147,6.313c-0.519-0.014-1.018,0.187-1.38,0.559c-3.704,3.802-24.303,24.948-24.303,24.948\r\n\t\t\tl-25.85,26.53c-1.89,1.97-5.21,0.63-5.21-2.09v-54.422c0-0.899-0.642-1.663-1.525-1.836c-0.005-0.001-0.01-0.002-0.015-0.003\r\n\t\t\tc-19.8-4.41-44.71-28.28-49.58-47.48c-8.1-37.15-8.1-74.81,0-111.96c4.87-19.2,29.78-43.07,49.58-47.48\r\n\t\t\tc45.27-8.61,91.17-8.61,136.43,0c19.81,4.41,44.72,28.28,49.58,47.48C353.765,190.011,353.765,227.671,345.656,264.821z\" />\r\n\t\t\t<path d=\"M270.937,289.942c-3.044-0.924-5.945-1.545-8.639-2.663\r\n\t\t\tc-27.916-11.582-53.608-26.524-73.959-49.429c-11.573-13.025-20.631-27.73-28.288-43.292c-3.631-7.38-6.691-15.049-9.81-22.668\r\n\t\t\tc-2.844-6.948,1.345-14.126,5.756-19.361c4.139-4.913,9.465-8.673,15.233-11.444c4.502-2.163,8.943-0.916,12.231,2.9\r\n\t\t\tc7.108,8.25,13.637,16.922,18.924,26.485c3.251,5.882,2.359,13.072-3.533,17.075c-1.432,0.973-2.737,2.115-4.071,3.214\r\n\t\t\tc-1.17,0.963-2.271,1.936-3.073,3.24c-1.466,2.386-1.536,5.2-0.592,7.794c7.266,19.968,19.513,35.495,39.611,43.858\r\n\t\t\tc3.216,1.338,6.446,2.896,10.151,2.464c6.205-0.725,8.214-7.531,12.562-11.087c4.25-3.475,9.681-3.521,14.259-0.624\r\n\t\t\tc4.579,2.898,9.018,6.009,13.43,9.153c4.331,3.086,8.643,6.105,12.638,9.623c3.841,3.383,5.164,7.821,3.001,12.412\r\n\t\t\tc-3.96,8.408-9.722,15.403-18.034,19.868C276.387,288.719,273.584,289.127,270.937,289.942\r\n\t\t\tC267.893,289.017,273.584,289.127,270.937,289.942z\" />\r\n\t\t\t<path d=\"M227.942,131.471c36.515,1.023,66.506,25.256,72.933,61.356c1.095,6.151,1.485,12.44,1.972,18.683\r\n\t\t\tc0.205,2.626-1.282,5.121-4.116,5.155c-2.927,0.035-4.244-2.414-4.434-5.039c-0.376-5.196-0.637-10.415-1.353-15.568\r\n\t\t\tc-3.78-27.201-25.47-49.705-52.545-54.534c-4.074-0.727-8.244-0.918-12.371-1.351c-2.609-0.274-6.026-0.432-6.604-3.675\r\n\t\t\tc-0.485-2.719,1.81-4.884,4.399-5.023C226.527,131.436,227.235,131.468,227.942,131.471\r\n\t\t\tC264.457,132.494,227.235,131.468,227.942,131.471z\" />\r\n\t\t\t<path d=\"M283.434,203.407c-0.06,0.456-0.092,1.528-0.359,2.538c-0.969,3.666-6.527,4.125-7.807,0.425\r\n\t\t\tc-0.379-1.098-0.436-2.347-0.438-3.529c-0.013-7.734-1.694-15.46-5.594-22.189c-4.009-6.916-10.134-12.73-17.318-16.248\r\n\t\t\tc-4.344-2.127-9.042-3.449-13.803-4.237c-2.081-0.344-4.184-0.553-6.275-0.844c-2.534-0.352-3.887-1.967-3.767-4.464\r\n\t\t\tc0.112-2.34,1.822-4.023,4.372-3.879c8.38,0.476,16.474,2.287,23.924,6.232c15.15,8.023,23.804,20.687,26.33,37.597\r\n\t\t\tc0.114,0.766,0.298,1.525,0.356,2.294C283.198,199.002,283.288,200.903,283.434,203.407\r\n\t\t\tC283.374,203.863,283.288,200.903,283.434,203.407z\" />\r\n\t\t\t<path d=\"M260.722,202.523c-3.055,0.055-4.69-1.636-5.005-4.437c-0.219-1.953-0.392-3.932-0.858-5.832\r\n\t\t\tc-0.918-3.742-2.907-7.21-6.055-9.503c-1.486-1.083-3.17-1.872-4.934-2.381c-2.241-0.647-4.568-0.469-6.804-1.017\r\n\t\t\tc-2.428-0.595-3.771-2.561-3.389-4.839c0.347-2.073,2.364-3.691,4.629-3.527c14.157,1.022,24.275,8.341,25.719,25.007\r\n\t\t\tc0.102,1.176,0.222,2.419-0.039,3.544C263.539,201.464,262.113,202.429,260.722,202.523\r\n\t\t\tC257.667,202.578,262.113,202.429,260.722,202.523z\" />\r\n\t\t</svg>\r\n\r\n\t</a>\r\n\t<?php endif; ?>\r\n\r\n</div>\r\n\r\n<?php\r\n\t\treturn ob_get_clean();\r\n\t}", "function render_block_core_social_link($attributes, $content, $block)\n {\n }", "function tw_show_social_widget($args, $instance){\n if(function_exists('tw_social_widget_custom_action')){\n add_action( 'tw_social_widget_custom_hook', 'tw_social_widget_custom_action', 10, 2 );\n echo $args['before_widget'];\n do_action( 'tw_social_widget_custom_hook', $args, $instance);\n echo $args['after_widget'];\n }else{\n echo $args['before_widget'];\n $title \t\t= apply_filters('widget_title', $instance['title']);\n $message \t= $instance['message'];\n $square_social_icons = (isset($instance['square-icons']) && trim($instance['square-icons'])=='on') ? true : false;\n //$social_info = tw_get_theme_social_options($square_social_icons);\n $social_info = tw_get_social_networks($square_social_icons, true);\n if ( $title )\n echo $args['before_title'] . $title . $args['after_title']; ?>\n\t\t\t<div class=\"social-widget-container\">\n <?php if($message!==''): ?><p><?php echo $message; ?></p><?php endif; ?>\n\n <?php if($social_info): $count = count($social_info); ?>\n <div class=\"contact-social\">\n <ul>\n <?php foreach($social_info as $network=>$details):\n $title= '';\n switch($network){\n case 'facebook':\n $title = __('Like us on Facebook','tw');\n break;\n case 'twitter':\n $title = __('Follow us on Twitter','tw');\n break;\n case 'instagram':\n $title = __('Follow us on Instagram','tw');\n break;\n case 'pinterest':\n $title = __('Follow us on Pinterest','tw');\n break;\n case 'tumblr':\n $title = __('Follow us on Tumblr','tw');\n break;\n case 'linkedin':\n $title = __('Follow us on Linkedin','tw');\n break;\n case 'slideshare':\n $title = __('See our presentations on Slideshare','tw');\n break;\n case 'googleplus':\n $title = __('Follow us on Google+','tw');\n break;\n case 'youtube':\n $title = __('Subscribe to our Youtube channel','tw');\n break;\n case 'vimeo':\n $title = __('Watch our videos on Vimeo','tw');\n break;\n }\n ?>\n <li class=\"width-<?php echo $count; ?>\">\n <a class=\"contact-<?php echo $network; ?>\" href=\"<?php echo $details['url']; ?>\" target=\"_blank\" title=\"<?php echo $title; ?>\" data-toggle=\"tooltip\" data-placement=\"top\">\n <?php if($square_social_icons):?>\n <i class=\"fa <?php echo $details['icon']; ?>\"></i>\n <?php else: ?>\n <span class=\"fa-stack fa-lg\">\n <i class=\"fa fa-circle fa-stack-2x\"></i>\n <i class=\"fa <?php echo $details['icon']; ?> fa-stack-1x fa-inverse\"></i>\n </span>\n <?php endif; ?>\n </a>\n </li>\n <?php endforeach; ?>\n </ul>\n </div>\n <?php endif; ?>\n\n\t\t\t</div><!-- social-widget-container -->\n<?php echo $args['after_widget'];\n }\n}", "public function display_header() {\n\t\tif ( $this->smart ) {\n?>\n<script type=\"text/javascript\" src=\"//vk.com/js/api/share.js?9\" charset=\"windows-1251\"></script>\n<style type=\"text/css\">\n\t.share-vkcom tr td {\n\t\tpadding: 0 !important;\n\t}\n</style>\n<?php\n\t\t} else {\n?>\n<style type=\"text/css\">\n\t.sd-social-icon-text li.share-vkcom a.sd-button > span {\n\t\tbackground: url('<?php echo plugins_url( 'vk.png', __FILE__ ); ?>') no-repeat;\n\t\tpadding-left: 20px;\n\t}\n\n\t.sd-social-icon .sd-content ul li[class*='share-'].share-vkcom a.sd-button {\n\t\tbackground: #2B587A url('<?php echo plugins_url( 'vk-white.png', __FILE__ ); ?>') no-repeat;\n\t\tcolor: #fff !important;\n\t\tpadding: 16px;\n\t\ttop: 12px;\n\t}\n</style>\n<?php\n\t\t}\n\t}", "public function updateSocial ()\n {\n foreach ($this->user->social as $social_key => $social)\n {\n if($social->url !== $social->full_link)\n {\n if(strpos($social->full_link, $social->contain) === false) {\n $count = count(explode('://', $social->full_link));\n\n if($count > 1) {\n $social->full_link = $social->url;\n }else {\n $social->full_link = strtolower($social->url.$social->full_link);\n }\n }\n }\n }\n\n u()->update([\n 'social' => $this->user->social\n ]);\n\n return $this->message('Settings updated!', 'Social settings successfully updated.', true, $this->user);\n }", "function grve_print_portfolio_social( $element_id = 'grve-social-share' ) {\n\n\tglobal $post;\n\t$post_id = $post->ID;\n\n\tif ( grve_portfolio_social_visibility() ) {\n\n\t\t$grve_permalink = esc_url( get_permalink( $post_id ) );\n\t\t$grve_title = esc_attr( get_the_title( $post_id ) );\n\t\t$portfolio_facebook = grve_option( 'portfolio_social', '', 'facebook' );\n\t\t$portfolio_twitter = grve_option( 'portfolio_social', '', 'twitter' );\n\t\t$portfolio_linkedin = grve_option( 'portfolio_social', '', 'linkedin' );\n\t\t$portfolio_pinterest= grve_option( 'portfolio_social', '', 'pinterest' );\n\t\t$portfolio_googleplus= grve_option( 'portfolio_social', '', 'google-plus' );\n\t\t$portfolio_likes = grve_option( 'portfolio_social', '', 'grve-likes' );\n\n?>\n\t\t<div id=\"<?php echo $element_id; ?>\">\n\n\t\t\t<ul>\n\n\t\t\t\t<?php if ( !empty( $portfolio_facebook ) ) { ?>\n\t\t\t\t<li><a href=\"<?php echo $grve_permalink; ?>\" title=\"<?php echo $grve_title; ?>\" class=\"grve-social-share-facebook grve-icon-facebook\"></a></li>\n\t\t\t\t<?php } ?>\n\t\t\t\t<?php if ( !empty( $portfolio_twitter ) ) { ?>\n\t\t\t\t<li><a href=\"<?php echo $grve_permalink; ?>\" title=\"<?php echo $grve_title; ?>\" class=\"grve-social-share-twitter grve-icon-twitter\"></a></li>\n\t\t\t\t<?php } ?>\n\t\t\t\t<?php if ( !empty( $portfolio_linkedin ) ) { ?>\n\t\t\t\t<li><a href=\"<?php echo $grve_permalink; ?>\" title=\"<?php echo $grve_title; ?>\" class=\"grve-social-share-linkedin grve-icon-linkedin\"></a></li>\n\t\t\t\t<?php } ?>\n\t\t\t\t<?php if ( !empty( $portfolio_googleplus ) ) { ?>\n\t\t\t\t<li><a href=\"<?php echo $grve_permalink; ?>\" title=\"<?php echo $grve_title; ?>\" class=\"grve-social-share-googleplus grve-icon-google-plus\"></a></li>\n\t\t\t\t<?php } ?>\n\t\t\t\t<?php if ( !empty( $portfolio_pinterest ) ) { ?>\n\t\t\t\t<li><a href=\"<?php echo $grve_permalink; ?>\" title=\"<?php echo $grve_title; ?>\" data-pin-img=\"<?php grve_print_portfolio_image( 'grve-image-small-square', 'link' ); ?>\" class=\"grve-social-share-pinterest grve-icon-pinterest\"></a></li>\n\t\t\t\t<?php } ?>\n\t\t\t\t<?php if ( !empty( $portfolio_likes ) ) { ?>\n\t\t\t\t<li><a href=\"#\" class=\"grve-like-counter-link grve-icon-heart\" data-post-id=\"<?php echo $post_id; ?>\"></a><span class=\"grve-like-counter\"><?php echo grve_likes( $post_id ); ?></span></li>\n\t\t\t\t<?php } ?>\n\n\t\t\t</ul>\n\n\t\t</div>\n<?php\n\t}\n}", "public function __construct()\n {\n $socials = Social::all();\n\n // Sharing is caring\n View::share('socials', $socials);\n }", "public function getSocialUrl(): string {\n\t\treturn ($this->socialUrl);\n\t}", "public function getSocialPage()\n {\n $result = null;\n if (isset($this->userInfo['screen_name'])) {\n $result = 'http://vk.com/' . $this->userInfo['screen_name'];\n }\n return $result;\n }", "public function sharebuttons($atts)\n {\n\n $class = '';\n if (!empty($atts['class'])) {\n $class = $atts['class'];\n }\n\n $include = false;\n if (!empty($atts['include'])) {\n $include = explode(',', $atts['include']);\n }\n\n $exclude = false;\n if (!empty($atts['exclude'])) {\n $exclude = explode(',', $atts['exclude']);\n }\n\n $channels = array(\n 'email' => \"mailto:?Subject=\" . urlencode(get_bloginfo('name') . ': ' . get_the_title()) . \"&amp;Body=\" . urlencode(\"dit kwam ik tegen op \" . get_bloginfo('name') . \": http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]\"),\n 'facebook' => \"http://www.facebook.com/sharer.php?u=\" . site_url(),\n 'twitter' => \"https://twitter.com/share?url=\" . site_url() . \"&amp;name=\" . str_replace(' ', '_', get_bloginfo('name')) . \"&amp;hashtags=\" . str_replace(' ', '_', get_bloginfo('name')),\n 'linkedIn' => \"http://www.linkedin.com/shareArticle?mini=true&amp;url=\" . site_url(),\n 'pinterest' => \"javascript:void((function()%7Bvar%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','http://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)%7D)());\",\n 'googleplus' => \"https://plus.google.com/share?url=\" . site_url(),\n 'reddit' => \"http://reddit.com/submit?url=\" . site_url() . \"&amp;title=\" . str_replace(' ', '_', get_bloginfo('name')),\n 'tumblr' => \"http://www.tumblr.com/share/link?url=\" . site_url() . \"&amp;title=\" . str_replace(' ', '_', get_bloginfo('name')),\n );\n $rs = '<ul class=\"sharebuttons ' . $class . '\">';\n foreach ($channels as $name => $link) {\n\n $toPrint = true;\n\n // included\n if ($include) {\n $toPrint = false;\n foreach ($include as $item) {\n if ($item == $name) {\n $toPrint = true;\n }\n }\n }\n\n // exclude\n else if ($exclude) {\n foreach ($exclude as $item) {\n if ($item == $name) {\n $toPrint = false;\n }\n }\n }\n\n if ($toPrint) {\n $target = 'target=blank';\n if ($name === 'email') {\n $target = '';\n }\n $rs .= '<li><a class=\"sharebutton ' . $name . '\" href=\"' . $link . '\" ' . $target . '></a></li>';\n }\n }\n $rs .= '</ul>';\n return $rs;\n }", "function cosmetics_get_social_url() {\n\n global $cosmetics_options;\n $cosmetics_social_networks = cosmetics_get_social_network();\n\n foreach( $cosmetics_social_networks as $cosmetics_social ) :\n $cosmetics_social_url = $cosmetics_options['cosmetics_social_network_' . $cosmetics_social['id']];\n\n if( $cosmetics_social_url ) :\n?>\n\n <div class=\"social-network-item item-<?php echo esc_attr( $cosmetics_social['id'] ); ?>\">\n <a href=\"<?php echo esc_url( $cosmetics_social_url ); ?>\">\n <i class=\"fa fa-<?php echo esc_attr( $cosmetics_social['id'] ); ?>\" aria-hidden=\"true\"></i>\n </a>\n </div>\n\n\n<?php\n endif;\n\n endforeach;\n}", "public function index()\n {\n $data=Social::first();\n return view('admin.social.index',compact('data'));\n }", "function bimber_get_share_url( $post = 0 ) {\n\t$post = get_post( $post );\n\n\tif ( bimber_shares_use_shortlinks() ) {\n\t\t$url = wp_get_shortlink( $post );\n\t} else {\n\t\t$url = get_permalink( $post );\n\t}\n\n\treturn $url;\n}", "public function formatShare() {\n\t\t$template = file_get_contents(__DIR__.'/../templates/share.mustache');\n\t\t$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? \"https://\" : \"http://\";\n\t\treturn $this->lemmy->render($template, ['location' => $protocol.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']]);\n\t}", "function soc_med_links( $_slug, $_name, $_image ) {\n // IF POST NAME\n if ( $_name !== \"\" ) {\n $_text = $_name . \" at xbank.amsterdam\";\n } else {\n $_text = \"xbank.amsterdam\";\n } \n // IF POST SLUG\n if ( $_slug !== \"\" ) {\n $_link = \"http://xbank.amsterdam/#\" . $_slug; \n } else {\n $_link = \"http://xbank.amsterdam\";\n } \n ?>\n <!-- FACEBOOK -->\n <li>\n <a href=\"\" \n data-mobile_iframe \n class=\"fb-share-button\" \n data-quote=\"<?php echo $_text; ?>\" \n data-href=\"<?php echo $_link; ?>\">\n <img src=\"<?php bloginfo('template_url'); ?>/img/icon_facebook.png\" alt=\"Facebook icon\" />\n </a>\n <!--<a target=\"_blank\" \n href=\"\" \n class=\"facebook_share\" \n data-text=\"<?php echo $_text; ?>\" \n data-img=\"<?php echo $_image; ?>\" \n data-link=\"<?php echo $_link; ?>\">\n <img src=\"<?php bloginfo('template_url'); ?>/img/icon_facebook.png\" alt=\"Facebook icon\" />\n </a>-->\n </li>\n <!-- TWITTER -->\n <li>\n <a class=\"twitter-share-button\" \n target=\"_blank\" \n data-url=\"<?php echo createTwitterUrl ( $_name, $_link )[1]; ?>\" \n href=\"<?php echo createTwitterUrl ( $_name, $_link )[2]; ?>\">\n <img src=\"<?php bloginfo('template_url'); ?>/img/icon_twitter.png\" alt=\"Twitter icon\" />\n </a>\n </li>\n <!-- PINTEREST -->\n <li>\n <a data-pin-do=\"buttonPin\" \n data-pin-description=\"<?php echo $_text; ?>\" \n data-pin-url=\"<?php echo $_link; ?>\" \n data-pin-media=\"<?php echo $_image; ?>\" \n data-pin-custom=\"true\" \n class=\"pinterest\" \n target=\"_blank\" \n href=\"https://www.pinterest.com/pin/create/button/\" >\n <img src=\"<?php bloginfo('template_url'); ?>/img/icon_pinterest.png\" alt=\"Pinterest icon\" />\n </a> \n </li>\n <?php \n}", "public function getShareName()\n {\n return $this->share_name;\n }", "public static function get_social_share_js( $attr, $id ) {\n\t\t\t$base_selector = ( isset( $attr['classMigrate'] ) && $attr['classMigrate'] ) ? '.uagb-block-' : '#uagb-social-share-';\n\t\t\t$selector = $base_selector . $id;\n\t\t\tglobal $post;\n\t\t\t// Get the featured image.\n\t\t\tif ( has_post_thumbnail() ) {\n\t\t\t\t$thumbnail_id = get_post_thumbnail_id( $post->ID );\n\t\t\t\t$thumbnail = $thumbnail_id ? current( wp_get_attachment_image_src( $thumbnail_id, 'large', true ) ) : '';\n\t\t\t} else {\n\t\t\t\t$thumbnail = null;\n\t\t\t}\n\t\t\tob_start();\n\t\t\t?>\n\t\t\tvar ssLinks = document.querySelectorAll( '<?php echo esc_attr( $selector ); ?>' );\n\t\t\tfor ( var j = 0; j < ssLinks.length; j++ ) {\n\t\t\t\tvar ssLink = ssLinks[j].querySelectorAll( \".uagb-ss__link\" );\n\t\t\t\tfor ( var i = 0; i < ssLink.length; i++ ) {\n\t\t\t\t\tssLink[i].addEventListener( \"click\", function() {\n\t\t\t\t\t\tvar social_url = this.dataset.href;\n\t\t\t\t\t\tvar target = \"\";\n\t\t\t\t\t\tif( social_url == \"mailto:?body=\" ) {\n\t\t\t\t\t\t\ttarget = \"_self\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvar request_url =\"\";\n\t\t\t\t\t\tif( social_url.indexOf(\"/pin/create/link/?url=\") !== -1) {\n\t\t\t\t\t\t\trequest_url = social_url + window.location.href + \"&media=\" + '<?php echo esc_url( $thumbnail ); ?>';\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\trequest_url = social_url + window.location.href;\n\t\t\t\t\t\t}\n\t\t\t\t\t\twindow.open( request_url, target );\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t\t<?php\n\t\t\treturn ob_get_clean();\n\t\t}", "function publisher_social_share_option_list() {\n\n\t\t$sites = array(\n\t\t\t'facebook' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-facebook\"></i> ' . __( 'Facebook', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'facebook-messenger' => array(\n\t\t\t\t'label' => '<i class=\"fa bsfi-fb-messenger\"></i> ' . __( 'Facebook Messenger', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'twitter' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-twitter\"></i> ' . __( 'Twitter', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'google_plus' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-google-plus\"></i> ' . __( 'Google+', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'pinterest' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-pinterest\"></i> ' . __( 'Pinterest', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'reddit' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-reddit-alien\"></i> ' . __( 'ReddIt', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'linkedin' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-linkedin\"></i> ' . __( 'Linkedin', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'tumblr' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-tumblr\"></i> ' . __( 'Tumblr', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'telegram' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-send\"></i> ' . __( 'Telegram', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'whatsapp' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-whatsapp\"></i> ' . __( 'Whatsapp (Only Mobiles)', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'email' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-envelope\"></i> ' . publisher_translation_get( 'email' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'stumbleupon' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-stumbleupon\"></i> ' . __( 'StumbleUpon', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'vk' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-vk\"></i> ' . __( 'VK', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'digg' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-digg\"></i> ' . __( 'Digg', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'line' => array(\n\t\t\t\t'label' => '<i class=\"fa bsfi-line\"></i> ' . __( 'LINE (Only Mobiles)', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'bbm' => array(\n\t\t\t\t'label' => '<i class=\"fa bsfi-bbm\"></i> ' . __( 'BlackBerry (Only Mobiles)', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'viber' => array(\n\t\t\t\t'label' => '<i class=\"fa bsfi-viber\"></i> ' . __( 'Viber (Only Mobiles)', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'print' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-print\"></i> ' . publisher_translation_get( 'print' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'ok-ru' => array(\n\t\t\t\t'label' => '<i class=\"fa bsfi-ok-ru\"></i> ' . __( 'OK.ru', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\n\t\t);\n\n\t\tforeach ( publisher_get_option( 'social_share_custom_links' ) as $link ) {\n\n\t\t\tif ( empty( $link['title'] ) || empty( $link['link'] ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$sites[ $link['title'] ] = array(\n\t\t\t\t'label' => bf_get_icon_tag( $link['icon'] ) . ' ' . $link['title'],\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t);\n\t\t}\n\n\t\treturn $sites;\n\t}", "public function show(Share $share)\n {\n return view('share.show')\n ->with('share_data', $share);\n }", "public function shareAction($data) {\n try {\n $social = @$data['social'];\n if (!$social) {\n throw new \\Exception('Social param no exist in data json!');\n }\n if ($this->statistics) {\n $statisticsShare = new StatisticsShares();\n $statisticsShare\n ->setStatistics($this->statistics)\n ->setAction($this->type)\n ->setShareType($social)\n ->setMySessionId($this->sessionId)\n ->setIp(@$_SERVER['REMOTE_ADDR'])\n ->setShareCount(1);\n $this->em->persist($statisticsShare);\n $this->em->flush();\n return new JsonResponse(array('success' => true, 'msg' => 'Share actions successufly added'));\n } else {\n throw new \\Exception('Cant find statistics for this session id and app id!');\n }\n } catch (\\Exception $e) {\n return new JsonResponse(array('success' => false, 'msg' => 'An error occured', 'error' => $e->getMessage()));\n }\n }", "public function getShare($id) {\n\n\t\t$wishlist = \\App\\Wishlist::find($id);\n\t\treturn view('wishlist.share')->with('wishlist', $wishlist);\n\t}", "function frame_share_links($providers = null, $post_id = null)\n{\n // Get the providers\n if ($providers === null)\n $providers = array('facebook', 'google', 'linkedin', 'pinterest', 'reddit', 'twitter');\n else\n $providers = (array) $providers;\n\n $output = '<ul>';\n\n foreach($providers as $provider)\n {\n // $output .= '<li>'..'</li>';\n }\n\n $output .= '</ul>';\n}", "function tc_get_social_networks() {\r\n $__options = tc__f( '__options' );\r\n\r\n //gets the social network array\r\n $socials = apply_filters( 'tc_default_socials' , TC_init::$instance -> socials );\r\n\r\n //declares some vars\r\n $html = '';\r\n\r\n foreach ( $socials as $key => $data ) {\r\n if ( $__options[$key] != '' ) {\r\n //gets height and width from image, we check if getimagesize can be used first with the error control operator\r\n $width = $height = '';\r\n if ( isset($data['custom_icon_url']) && @getimagesize($data['custom_icon_url']) ) { list( $width, $height ) = getimagesize($data['custom_icon_url']); }\r\n\r\n //there is one exception : rss feed has no target _blank and special icon title\r\n $html .= sprintf('<a class=\"%1$s\" href=\"%2$s\" title=\"%3$s\" %4$s %5$s>%6$s</a>',\r\n apply_filters( 'tc_social_link_class',\r\n sprintf('social-icon icon-%1$s' ,\r\n ( $key == 'tc_rss' ) ? 'feed' : str_replace('tc_', '', $key)\r\n ),\r\n $key\r\n ),\r\n esc_url( $__options[$key]),\r\n isset($data['link_title']) ? call_user_func( '__' , $data['link_title'] , 'customizr' ) : '' ,\r\n ( $key == 'tc_rss' ) ? '' : apply_filters( 'tc_socials_target', 'target=_blank', $key ),\r\n apply_filters( 'tc_additional_social_attributes', '' , $key),\r\n ( isset($data['custom_icon_url']) && !empty($data['custom_icon_url']) ) ? sprintf('<img src=\"%1$s\" width=\"%2$s\" height=\"%3$s\" alt=\"%4$s\"/>',\r\n $data['custom_icon_url'],\r\n $width,\r\n $height,\r\n isset($data['link_title']) ? call_user_func( '__' , $data['link_title'] , 'customizr' ) : ''\r\n ) : ''\r\n );\r\n }\r\n }\r\n return $html;\r\n }", "public function widget( $args, $instance ) {\n\n\t\t\t$title = isset( $instance['title'] ) ? $instance['title'] : esc_html__( 'Social Media.', 'zthemename' );\n\t\t\n\t\t\t/** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */\n\t\t\t$title = apply_filters( 'widget_title', $title, $instance, $this->id_base );\n\n\t\t\techo $args['before_widget'];\n\n\t\t\tif ( $title ) {\n\t\t\t\techo $args['before_title'] . $title . $args['after_title'];\n\t\t\t}\n\n\t\t\t// bail if no links found.\n\t\t\tif ( $this->socials && ( $this->socials['facebook'] || $this->socials['instagram'] || $this->socials['twitter'] || $this->socials['youtube'] )) {\n\t\t\t\t\n\t\t\t\techo '<div>';\n\t\t\t\t\n\t\t\t\t$this->socials['facebook'] && \n\t\t\t\t\tprintf(\n\t\t\t\t\t\t'<div><a href=\"%1$s\" target=\"_blank\"><i class=\"fab fa-facebook-f fa-fw\" data-content=\"f39e\"></i>%2$s</a></div>',\n\t\t\t\t\t\tesc_url( $this->socials['facebook'] ),\n\t\t\t\t\t\tesc_html__( 'Like Us On Facebook', 'zthemename' )\n\t\t\t\t\t);\n\t\t\t\n\t\t\t\t$this->socials['instagram'] && \n\t\t\t\t\tprintf(\n\t\t\t\t\t\t'<div><a href=\"%1$s\" target=\"_blank\"><i class=\"fab fa-instagram fa-fw\" data-content=\"f16d\"></i>%2$s</a></div>',\n\t\t\t\t\t\tesc_url( $this->socials['instagram'] ),\n\t\t\t\t\t\tesc_html__( 'Follow Us On Instagram', 'zthemename' )\n\t\t\t\t\t);\n\t\t\t\t\n\t\t\t\t$this->socials['twitter'] && \n\t\t\t\t\tprintf(\n\t\t\t\t\t\t'<div><a href=\"%1$s\" target=\"_blank\"><i class=\"fab fa-twitter fa-fw\" data-content=\"f099\"></i>%2$s</a></div>',\n\t\t\t\t\t\tesc_url( $this->socials['twitter'] ),\n\t\t\t\t\t\tesc_html__( 'Follow Us On Twitter', 'zthemename' )\n\t\t\t\t\t);\n\n\t\t\t\t$this->socials['youtube'] &&\n\t\t\t\t\tprintf(\n\t\t\t\t\t\t'<div><a href=\"%1$s\" target=\"_blank\"><i class=\"fab fa-youtube fa-fw\" data-content=\"f167\"></i>%2$s</a></div>',\n\t\t\t\t\t\tesc_url( $this->socials['youtube'] ),\n\t\t\t\t\t\tesc_html__( 'Our Youtube Channel', 'zthemename' )\n\t\t\t\t);\t\t\t\n\n\t\t\t\techo '</div>';\n\t\t\t}\n\t\t\techo $args['after_widget'];\n\t\t}", "function jptweak_remove_share() {\n remove_filter( 'the_content', 'sharing_display',19 );\n remove_filter( 'the_excerpt', 'sharing_display',19 );\n if ( class_exists( 'Jetpack_Likes' ) ) {\n remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 );\n }\n}", "function display_facebook_og(){\n global $post;\n $img_array=get_field('design_image');\n //echo '<meta property=\"og:url\" content=\"'.get_permalink($post->ID).'\"/>';\n echo '<meta property=\"og:image\" content=\"'.$img_array[\"sizes\"][\"medium\"].'\"/>';\n}", "public static function share($context) {\n\t\tif($output = apply_filters('wpv_share', false, $context)) {\n\t\t\techo $output;\n\t\t\treturn;\n\t\t}\n\n\t\tinclude(locate_template('templates/share.php'));\n\t}" ]
[ "0.73568726", "0.7173388", "0.71306944", "0.7094986", "0.7075628", "0.70748633", "0.7057441", "0.7057441", "0.6939051", "0.6881366", "0.684932", "0.68476903", "0.68381685", "0.68213814", "0.6749211", "0.6735464", "0.6724784", "0.6687223", "0.6651405", "0.6640238", "0.66264576", "0.66263103", "0.66188866", "0.66083133", "0.65860677", "0.65403086", "0.64457816", "0.64440304", "0.6367883", "0.63581884", "0.6355757", "0.63411385", "0.6330346", "0.6300317", "0.6266187", "0.62372124", "0.62354416", "0.6235437", "0.62330097", "0.62276983", "0.62115616", "0.61992496", "0.61804235", "0.6178302", "0.61586016", "0.61359686", "0.6062133", "0.6057456", "0.60384643", "0.6033077", "0.6032527", "0.6027472", "0.60068166", "0.5995516", "0.59910566", "0.59849626", "0.5984581", "0.59839654", "0.5979757", "0.5976203", "0.5975525", "0.59651285", "0.5961503", "0.59351206", "0.59232795", "0.59082973", "0.59017867", "0.5896798", "0.589539", "0.5888695", "0.5887939", "0.58608854", "0.5853378", "0.5839307", "0.5833214", "0.581533", "0.58148706", "0.5813718", "0.5811979", "0.5800113", "0.57979405", "0.5793029", "0.5780598", "0.57421315", "0.5739694", "0.5710539", "0.5703251", "0.57009035", "0.5687564", "0.56741726", "0.5672067", "0.5662668", "0.5659759", "0.5651915", "0.5622669", "0.56186813", "0.5612027", "0.56100905", "0.55959517", "0.55861455" ]
0.83997697
0
Display social sharing in archive.
function circle_display_archive_sharing() { if ( ! circle_option( 'display_archive_sharing' ) ) { return; } get_template_part( 'template-parts/post-social-sharing' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function circle_display_single_sharing() {\n\tif ( ! circle_option( 'display_single_sharing' ) ) {\n\t\treturn;\n\t}\n\tget_template_part( 'template-parts/post-social-sharing' );\n}", "function ejo_social_share() {\n ?>\n <aside class=\"social-share\">\n <h3>Deel dit bericht</h3>\n <a target=\"_blank\" title=\"Share on Twitter\" href=\"https://twitter.com/share?url=<?php echo get_permalink(); ?>\">Twitter</a>\n <a target=\"_blank\" title=\"Share on Facebook\" href=\"https://www.facebook.com/sharer/sharer.php?<?php echo get_permalink(); ?>\">Facebook</a>\n </aside>\n <?php\n}", "public function displayFastSocialSharing($content = null)\n {\n global $post;\n\n // Get current page URL\n $fssURL = urlencode(get_permalink());\n\n // Get current page title\n $fssTitle = str_replace(' ', '%20', get_the_title());\n\n // Get Post Thumbnail for pinterest\n //$fssThumbnail = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full');\n if (is_page() || is_single()) {\n $fssThumbnail = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full');\n } else {\n $fssThumbnail[0] = '';\n }\n\n // Construct sharing URL without using any script\n $twitterURL = 'https://twitter.com/intent/tweet?text='.$fssTitle.'&amp;url='.$fssURL;\n $facebookURL = 'https://www.facebook.com/sharer/sharer.php?u='.$fssURL;\n $googleURL = 'https://plus.google.com/share?url='.$fssURL;\n //$bufferURL = 'https://bufferapp.com/add?url='.$fssURL.'&amp;text='.$fssTitle;\n //$whatsappURL = 'whatsapp://send?text='.$fssTitle . ' ' . $fssURL;\n //$linkedInURL = 'https://www.linkedin.com/shareArticle?mini=true&url='.$fssURL.'&amp;title='.$fssTitle;\n $pinterestURL = 'https://pinterest.com/pin/create/button/?url='.$fssURL.'&amp;media='.$fssThumbnail[0].'&amp;description='.$fssTitle;\n $emailURL = 'mailto:?&subject='.$fssTitle.'&body='.$fssURL;\n\n // Add sharing button at the end of page/page content\n $content .= '<div class=\"fss-social\">';\n\n //$content .= '<h5>SHARE ON</h5> <a class=\"fss-link fss-twitter\" href=\"'. $twitterURL .'\" target=\"_blank\">Twitter</a>';\n //$content .= '<a class=\"fss-link fss-facebook\" href=\"'.$facebookURL.'\" target=\"_blank\">Facebook</a>';\n //$content .= '<a class=\"fss-link fss-whatsapp\" href=\"'.$whatsappURL.'\" target=\"_blank\">WhatsApp</a>';\n //$content .= '<a class=\"fss-link fss-googleplus\" href=\"'.$googleURL.'\" target=\"_blank\">Google+</a>';\n //$content .= '<a class=\"fss-link fss-buffer\" href=\"'.$bufferURL.'\" target=\"_blank\">Buffer</a>';\n //$content .= '<a class=\"fss-link fss-linkedin\" href=\"'.$linkedInURL.'\" target=\"_blank\">LinkedIn</a>';\n //$content .= '<a class=\"fss-link fss-pinterest\" href=\"'.$pinterestURL.'\" data-pin-custom=\"true\" target=\"_blank\">Pin It</a>';\n\n $content .= '<h5>SHARE ON</h5><a class=\"fss-link fss-facebook\" href=\"'.$facebookURL.'\" target=\"_blank\"></a>';\n $content .= '<a class=\"fss-link fss-twitter\" href=\"'. $twitterURL .'\" target=\"_blank\"></a>';\n $content .= '<a class=\"fss-link fss-googleplus\" href=\"'.$googleURL.'\" target=\"_blank\"></a>';\n $content .= '<a class=\"fss-link fss-pinterest\" href=\"'.$pinterestURL.'\" data-pin-custom=\"true\" target=\"_blank\"></a>';\n $content .= '<a class=\"fss-link fss-email\" href=\"'.$emailURL.'\" target=\"_blank\"></a>';\n $content .= '</div>';\n\n return $content;\n }", "function display( array $atts, $content = '' ) {\n\n\t\tob_start();\n\n\t\tpublisher_set_prop( 'shortcode-bs-social-share-atts', $atts );\n\t\tpublisher_get_view( 'shortcodes', 'bs-social-share' );\n\t\tpublisher_clear_props();\n\n\t\treturn ob_get_clean();\n\n\t}", "function monospace_share () {\n global $post;\n\t\t?>\n\t\t<div class=\"meta\">\n\t\t\t<span class=\"share\"><?php _e('Share on', 'monospace'); ?>&nbsp;\n <?php\n $url = urlencode(get_permalink($post->ID));\n $title = urlencode(get_the_title());\n ?>\n\t\t\t\t<a href=\"<?php echo esc_url('http://twitter.com/home?status=' . $title . '%20' . $url); ?>\" target=\"_blank\">Twitter</a>&nbsp;\n\t\t\t\t<a href=\"<?php echo esc_url('http://facebook.com/sharer.php?t=' . $title . '&amp;u=' . $url); ?>\" target=\"_blank\">Facebook</a>&nbsp;\n\t\t\t\t<a href=\"<?php echo esc_url('http://google.com/reader/link?title=' . $title . '&amp;url=' . $url);?>\" target=\"_blank\">Google Reader</a>&nbsp;\n <a href=\"<?php echo esc_url('http://ping.fm/ref/?conduit&method=status&title=' . $title . '&link=' . $url); ?>\" target=\"_blank\">Ping.fm</a>\n </span>\n\t\t</div>\n\t\t<?php\n\t}", "function x_add_social_sharing ( $content ) {\n\t\n if ( is_singular('post') ) {\n\t \n echo do_shortcode('[share title=\"Share this Post\" facebook=\"true\" twitter=\"true\" google_plus=\"true\" linkedin=\"true\" pinterest=\"false\" reddit=\"false\" email=\"true\"]');\n \n }\n}", "function emc_sharing_display() {\r\n\r\n\tif ( class_exists( 'Jetpack', false ) ) {\r\n\t\t$jetpack_active_modules = get_option('jetpack_active_modules');\r\n\t\tif ( $jetpack_active_modules && in_array( 'sharedaddy', $jetpack_active_modules ) ) {\r\n\t\t\techo sharing_display();\r\n\t\t\t?>\r\n\t\t\t<!--<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:</h3><div class=\"sd-content\"><ul><li class=\"share-facebook\"><a rel=\"nofollow\" class=\"share-facebook sd-button share-icon\" href=\"http://local.earlymath.erikson.edu/new-study-differentiating-works/?share=facebook\" title=\"Share on Facebook\" id=\"sharing-facebook-6199\"><span>Facebook</span></a></li><li class=\"share-twitter\"><a rel=\"nofollow\" class=\"share-twitter sd-button share-icon\" href=\"http://local.earlymath.erikson.edu/new-study-differentiating-works/?share=twitter\" title=\"Click to share on Twitter\" id=\"sharing-twitter-6199\"><span>Twitter</span></a></li><li class=\"share-pinterest\"><a rel=\"nofollow\" class=\"share-pinterest sd-button share-icon\" href=\"http://local.earlymath.erikson.edu/new-study-differentiating-works/?share=pinterest\" title=\"Click to share on Pinterest\"><span>Pinterest</span></a></li><li class=\"share-google-plus-1\"><a rel=\"nofollow\" class=\"share-google-plus-1 sd-button share-icon\" href=\"http://local.earlymath.erikson.edu/new-study-differentiating-works/?share=google-plus-1\" title=\"Click to share on Google+\" id=\"sharing-google-6199\"><span>Google +1</span></a></li><li class=\"share-email\"><a rel=\"nofollow\" class=\"share-email sd-button share-icon\" href=\"http://local.earlymath.erikson.edu/new-study-differentiating-works/?share=email\" title=\"Click to email this to a friend\"><span>Email</span></a></li><li class=\"share-print\"><a rel=\"nofollow\" class=\"share-print sd-button share-icon\" href=\"http://local.earlymath.erikson.edu/new-study-differentiating-works/#print\" title=\"Click to print\"><span>Print</span></a></li><li class=\"share-end\"></li></ul></div></div></div>-->\r\n\t\t\t<?php\r\n\t\t}\r\n\t}\r\n\r\n}", "function ejos_register_social_share_shortcode() {\n add_shortcode( 'social_share', 'ejos_social_share_shortcode' );\n}", "function wolf_share_output_social_buttons( $content ) {\n\n\t$selected_post_types = wolf_share_get_option( 'post_types' );\n\t$post_type = get_post_type();\n\t$condition = ( is_single() && isset( $selected_post_types[ $post_type ] ) );\n\n\t$new_content = '';\n\n\tif ( $condition ) {\n\t\t$new_content .= wolf_share();\n\t}\n\n\t$new_content .= $content;\n\n\tif ( $condition ) {\n\t\t$new_content .= wolf_share();\n\t}\n\n\treturn $new_content;\n\n}", "function kvell_edge_woocommerce_share() {\n if ( kvell_edge_options()->getOptionValue( 'enable_social_share' ) == 'yes' && kvell_edge_options()->getOptionValue( 'enable_social_share_on_product' ) == 'yes' ) :\n echo '<div class=\"edgtf-woo-social-share-holder\">';\n echo kvell_edge_get_social_share_html( array( 'type' => 'list', 'title' => esc_attr__('Share:', 'kvell') ) );\n echo '</div>';\n endif;\n }", "function desertdelta_social_sharing_buttons($content) {\n\tglobal $post;\n\tif(is_singular() || is_home()){\n\n\t\t// Get current page URL\n\t\t$desertdeltaURL = urlencode(get_permalink());\n\n\t\t// Get current page title\n\t\t$desertdeltaTitle = htmlspecialchars(urlencode(html_entity_decode(get_the_title(), ENT_COMPAT, 'UTF-8')), ENT_COMPAT, 'UTF-8');\n\t\t// $desertdeltaTitle = str_replace( ' ', '%20', get_the_title());\n\n\t\t// Get Post Thumbnail for pinterest\n\t\t$desertdeltaThumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' );\n\n\t\t// Construct sharing URL without using any script\n\t\t$twitterURL = 'https://twitter.com/intent/tweet?text='.$desertdeltaTitle.'&amp;url='.$desertdeltaURL.'&amp;via=Crunchify';\n\t\t$facebookURL = 'https://www.facebook.com/sharer/sharer.php?u='.$desertdeltaURL;\n\n\t\t// Based on popular demand added Pinterest too\n\t\t$pinterestURL = 'https://pinterest.com/pin/create/button/?url='.$desertdeltaURL.'&amp;media='.$desertdeltaThumbnail[0].'&amp;description='.$desertdeltaTitle;\n\n\t\t// Add sharing button at the end of page/page content\n\t\t$content .= '<!-- Implement your own superfast social sharing buttons without any JavaScript loading. No plugin required. Detailed steps here: http://crunchify.me/1VIxAsz -->';\n\t\t$content .= '<div class=\"contactSocials\"><h5 class=\"heading heading__sm\">SHARE </h5>';\n\t\t$content .= ' <a href=\"'. $twitterURL .'\" target=\"_blank\"><i class=\"fab fa-twitter\"></i></a>';\n\t\t$content .= '<a href=\"'.$facebookURL.'\" target=\"_blank\"><i class=\"fab fa-facebook-square\"></i></a>';\n\t\t$content .= '</div>';\n\n\t\treturn $content;\n\t}else{\n\t\t// if not a post/page then don't include sharing button\n\t\treturn $content;\n\t}\n}", "function quasar_get_post_share($args=null){\n\tglobal $post;\n\t\t\n\t$social_html\t=\t'';\n\t$social_js\t\t=\t'';\n\t\n\tif($args && is_array($args)){\n\t\textract($args);\n\t}\n\t\t\n\t//Facebook\n\t$social_html\t.=\t'<div class=\"fb-like\" data-href=\"'.get_permalink().'\" data-width=\"90\" data-layout=\"button_count\" data-show-faces=\"false\" data-send=\"false\"></div>';\t\n\t$social_js\t\t.=\t'\n\t\t(function(d, s, id) {\n\t\t var js, fjs = d.getElementsByTagName(s)[0];\n\t\t if (d.getElementById(id)) return;\n\t\t js = d.createElement(s); js.id = id;\n\t\t js.src = \"//connect.facebook.net/en_US/all.js#xfbml=1\";\n\t\t fjs.parentNode.insertBefore(js, fjs);\n\t\t}(document, \"script\", \"facebook-jssdk\"));\n\t';\n\t\n\t//Twitter\n\t$social_html\t.=\t'<a href=\"https://twitter.com/share\" class=\"twitter-share-button\">Tweet</a>';\n\t$social_js\t\t.=\t'!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?\"http\":\"https\";if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+\"://platform.twitter.com/widgets.js\";fjs.parentNode.insertBefore(js,fjs);}}(document, \"script\", \"twitter-wjs\");';\n\n\t//Google+\n\t$social_html\t.=\t'<div class=\"g-plusone\" data-size=\"medium\"></div>';\n\t$social_js\t\t.=\t'\n\t (function() {\n\t\tvar po = document.createElement(\"script\"); po.type = \"text/javascript\"; po.async = true;\n\t\tpo.src = \"https://apis.google.com/js/plusone.js\";\n\t\tvar s = document.getElementsByTagName(\"script\")[0]; s.parentNode.insertBefore(po, s);\n\t })();\n\t';\n\t\n\t//Pinterest\n\t$social_html\t.=\t'<a href=\"//pinterest.com/pin/create/button/?url='.get_permalink().'&media='.get_permalink().'&description='.get_permalink().'\" data-pin-do=\"buttonPin\" data-pin-config=\"beside\"><img src=\"//assets.pinterest.com/images/pidgets/pin_it_button.png\" /></a>';\n\n\t\n\t$social_html\t=\tapply_filters('quasar_post_social_html',$social_html);\n\t$social_js\t\t=\tapply_filters('quasar_post_social_js',$social_js);\n\t\n\t$return\t\t=\t'';\n\t\n\t$return\t\t.=\t'<script type=\"text/javascript\">'.$social_js.'</script>';\n\t\n\t$return\t\t.=\t'<div class=\"quasar-post-social\">'.$social_html.'</div><div class=\"clear\"></div>';\n\t\n\treturn $return;\n}", "function social_share(){\n\t?>\n\t<style type=\"text/css\">\n\t\tp.share-info{\n\t\t\tmargin-bottom: 0;\n\t\t}\n\t\t.share-buttons .has-tip{\n\t\t\tborder: none;\n\t\t}\n\t\t.share-buttons a{\n\t\t\tborder: none;\n\t\t\twidth: 33px;\n\t\t\theight: 33px;\n\t\t}\n\t\t.share-buttons a.button{\n\t\t\tpadding: 0;\n\t\t\tmargin-right: 3px;\n\t\t}\n\t\t.share-buttons a.button.facebook{\n\t\t\tbackground: rgb(59, 89, 152);\n\t\t}\n\t\t.share-buttons a.button.twitter{\n\t\t\tbackground: rgb(29, 161, 242);\n\t\t}\n\t\t.share-buttons a.button.linkedin{\n\t\t\tbackground: rgb(0, 119, 181);\n\t\t}\n\t\t.share-buttons a.button.google-plus{\n\t\t\tbackground: rgb(220, 78, 65);\n\t\t}\n\t\t.share-buttons a i{\n\t\t\tfont-size: 1.4rem;\n\t\t\tline-height: 2.4rem;\n\t\t}\n\t</style>\n\t<p class=\"share-info\"><small>Compartilhe:</small></p>\n\t<div class=\"button-group share-buttons\">\n\t\t<span data-tooltip aria-haspopup=\"true\" class=\"has-tip top\" data-disable-hover=\"false\" tabindex=\"1\" title=\"Facebook\">\n\t\t\t<a class=\"button facebook\" href=\"https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>\" onclick=\"window.open(this.href, 'Compartilhar notícia', 'width=490,height=530');return false;\"><i class=\"fa fa-facebook\"></i></a>\n\t\t</span>\n\t\t<span data-tooltip aria-haspopup=\"true\" class=\"has-tip top\" data-disable-hover=\"false\" tabindex=\"1\" title=\"Twitter\">\n\t\t\t<a class=\"button twitter\" href=\"https://twitter.com/home?status=<?php the_permalink(); ?>\" onclick=\"window.open(this.href, 'Compartilhar notícia', 'width=490,height=530');return false;\"><i class=\"fa fa-twitter\"></i></a>\n\t\t</span>\n\t\t<span data-tooltip aria-haspopup=\"true\" class=\"has-tip top\" data-disable-hover=\"false\" tabindex=\"1\" title=\"LinkedIn\">\n\t\t\t<a class=\"button linkedin\" href=\"https://www.linkedin.com/shareArticle?mini=true&url=<?php the_permalink(); ?>&title=<?php the_title( ); ?>&summary=&source=<?php bloginfo( 'url' ); ?>\" onclick=\"window.open(this.href, 'Compartilhar notícia', 'width=490,height=530');return false;\"><i class=\"fa fa-linkedin\"></i></a>\n\t\t</span>\n\t\t<span data-tooltip aria-haspopup=\"true\" class=\"has-tip top\" data-disable-hover=\"false\" tabindex=\"1\" title=\"Google plus\">\n\t\t\t<a class=\"button google-plus\" href=\"https://plus.google.com/share?url=<?php the_permalink(); ?>\" onclick=\"window.open(this.href, 'Compartilhar notícia', 'width=490,height=530');return false;\"><i class=\"fa fa-google-plus\"></i></a>\n\t\t</span>\t\t\t\t\t\t\t\n\t</div>\n\t<?php\n}", "public function getFacebookShareUrl() {\n return 'http://www.facebook.com/sharer.php?s=100&p[url]='.$this->socialData['url']\n .'&p[images][0]='.$this->socialData['image']\n .'&p[title]='.$this->socialData['title']\n .'&p[summary]='.$this->socialData['description'];\n }", "function foucs_share_this_post($title,$permalink){\n\n\t$twitterHandler = ( get_option('twitter_handler') ? '&amp;via='.esc_attr( get_option('twitter_handler') ) : '' );\n\t\t\n\t$twitter = 'https://twitter.com/intent/tweet?text=Hey! Read this: ' . $title . '&amp;url=' . $permalink . $twitterHandler .'';\n\t$facebook = 'https://www.facebook.com/sharer/sharer.php?u=' . $permalink;\n\t$google = 'https://plus.google.com/share?url=' . $permalink;\n\t$pinterest = 'http://pinterest.com/pin/create/bookmarklet/?is_video=false&url=' . $permalink;\n\techo '<li><a href=\"'. $facebook .'\" target=\"_blank\" rel=\"nofollow\"><i class=\"fab fa-facebook-f\" aria-hidden=\"true\"></i></a></li>';\n\techo '<li><a href=\"'. $twitter .'\" target=\"_blank\" rel=\"nofollow\"><i class=\"fab fa-twitter\" aria-hidden=\"true\"></i></a></li>';\n\techo '<li><a href=\"'. $pinterest .'\" target=\"_blank\" rel=\"nofollow\"><i class=\"fab fa-pinterest\" aria-hidden=\"true\"></i></a></li>';\n\techo '<li><a href=\"'. $google .'\" target=\"_blank\" rel=\"nofollow\"><i class=\"fab fa-google-plus-g\" aria-hidden=\"true\"> </i></a></li>';\n\t\t\t\n}", "public function social_icons() {\n\t\t$enabled_socials = get_theme_mod( 'hestia_enable_sharing_icons', true );\n\t\tif ( (bool) $enabled_socials !== true ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$post_link = esc_url( get_the_permalink() );\n\t\t$post_title = get_the_title();\n\n\t\t$facebook_url =\n\t\t\tesc_url(\n\t\t\t\tadd_query_arg(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'u' => $post_link,\n\t\t\t\t\t),\n\t\t\t\t\t'https://www.facebook.com/sharer.php'\n\t\t\t\t)\n\t\t\t);\n\n\t\t$twitter_url =\n\t\t\tesc_url(\n\t\t\t\tadd_query_arg(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'url' => $post_link,\n\t\t\t\t\t\t'text' => rawurlencode( html_entity_decode( wp_strip_all_tags( $post_title ), ENT_COMPAT, 'UTF-8' ) ),\n\t\t\t\t\t),\n\t\t\t\t\t'http://twitter.com/share'\n\t\t\t\t)\n\t\t\t);\n\n\t\t$email_title = str_replace( '&', '%26', $post_title );\n\n\t\t$email_url =\n\t\t\tesc_url(\n\t\t\t\tadd_query_arg(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'subject' => wp_strip_all_tags( $email_title ),\n\t\t\t\t\t\t'body' => $post_link,\n\t\t\t\t\t),\n\t\t\t\t\t'mailto:'\n\t\t\t\t)\n\t\t\t);\n\n\t\t$social_links = '\n <div class=\"col-md-6\">\n <div class=\"entry-social\">\n <a target=\"_blank\" rel=\"tooltip\"\n data-original-title=\"' . esc_attr__( 'Share on Facebook', 'hestia' ) . '\"\n class=\"btn btn-just-icon btn-round btn-facebook\"\n href=\"' . $facebook_url . '\">\n <i class=\"fab fa-facebook-f\"></i>\n </a>\n \n <a target=\"_blank\" rel=\"tooltip\"\n data-original-title=\"' . esc_attr__( 'Share on Twitter', 'hestia' ) . '\"\n class=\"btn btn-just-icon btn-round btn-twitter\"\n href=\"' . $twitter_url . '\">\n <i class=\"fab fa-twitter\"></i>\n </a>\n \n <a rel=\"tooltip\"\n data-original-title=\" ' . esc_attr__( 'Share on Email', 'hestia' ) . '\"\n class=\"btn btn-just-icon btn-round\"\n href=\"' . $email_url . '\">\n <i class=\"fas fa-envelope\"></i>\n </a>\n </div>\n\t\t</div>';\n\t\techo apply_filters( 'hestia_filter_blog_social_icons', $social_links );\n\t}", "function add_social_sharing() { ?>\r\n\t<h3>Share this post</h3>\r\n\t<ul class=\"share-buttons\">\r\n <li><a href=\"https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Flocalhost%2Ftestsite&t=Test%20site\" title=\"Share on Facebook\" target=\"_blank\" onclick=\"window.open('https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(document.URL) + '&t=' + encodeURIComponent(document.URL)); return false;\"><img src=\"http://your-wp-site.com/wp-content/themes/twentyfifteen-child/images/flat_web_icon_set/black/Facebook.png\"></a></li>\r\n <li><a href=\"https://twitter.com/intent/tweet?source=http%3A%2F%2Flocalhost%2Ftestsite&text=Test%20site:%20http%3A%2F%2Flocalhost%2Ftestsite\" target=\"_blank\" title=\"Tweet\" onclick=\"window.open('https://twitter.com/intent/tweet?text=' + encodeURIComponent(document.title) + ':%20' + encodeURIComponent(document.URL)); return false;\"><img src=\"http://your-wp-site.com/wp-content/themes/twentyfifteen-child/images/flat_web_icon_set/black/Twitter.png\"></a></li>\r\n <li><a href=\"https://plus.google.com/share?url=http%3A%2F%2Flocalhost%2Ftestsite\" target=\"_blank\" title=\"Share on Google+\" onclick=\"window.open('https://plus.google.com/share?url=' + encodeURIComponent(document.URL)); return false;\"><img src=\"http://your-wp-site.com/wp-content/themes/twentyfifteen-child/images/flat_web_icon_set/black/Google+.png\"></a></li>\r\n <li><a href=\"http://www.tumblr.com/share?v=3&u=http%3A%2F%2Flocalhost%2Ftestsite&t=Test%20site&s=\" target=\"_blank\" title=\"Post to Tumblr\" onclick=\"window.open('http://www.tumblr.com/share?v=3&u=' + encodeURIComponent(document.URL) + '&t=' + encodeURIComponent(document.title)); return false;\"><img src=\"http://your-wp-site.com/wp-content/themes/twentyfifteen-child/images/flat_web_icon_set/black/Tumblr.png\"></a></li>\r\n <li><a href=\"http://pinterest.com/pin/create/button/?url=http%3A%2F%2Flocalhost%2Ftestsite&description=Test%20site\" target=\"_blank\" title=\"Pin it\" onclick=\"window.open('http://pinterest.com/pin/create/button/?url=' + encodeURIComponent(document.URL) + '&description=' + encodeURIComponent(document.title)); return false;\"><img src=\"http://your-wp-site.com/wp-content/themes/twentyfifteen-child/images/flat_web_icon_set/black/Pinterest.png\"></a></li>\r\n <li><a href=\"https://getpocket.com/save?url=http%3A%2F%2Flocalhost%2Ftestsite&title=Test%20site\" target=\"_blank\" title=\"Add to Pocket\" onclick=\"window.open('https://getpocket.com/save?url=' + encodeURIComponent(document.URL) + '&title=' + encodeURIComponent(document.title)); return false;\"><img src=\"http://your-wp-site.com/wp-content/themes/twentyfifteen-child/images/flat_web_icon_set/black/Pocket.png\"></a></li>\r\n <li><a href=\"http://www.reddit.com/submit?url=http%3A%2F%2Flocalhost%2Ftestsite&title=Test%20site\" target=\"_blank\" title=\"Submit to Reddit\" onclick=\"window.open('http://www.reddit.com/submit?url=' + encodeURIComponent(document.URL) + '&title=' + encodeURIComponent(document.title)); return false;\"><img src=\"http://your-wp-site.com/wp-content/themes/twentyfifteen-child/images/flat_web_icon_set/black/Reddit.png\"></a></li>\r\n <li><a href=\"http://www.linkedin.com/shareArticle?mini=true&url=http%3A%2F%2Flocalhost%2Ftestsite&title=Test%20site&summary=Test%20site&source=http%3A%2F%2Flocalhost%2Ftestsite\" target=\"_blank\" title=\"Share on LinkedIn\" onclick=\"window.open('http://www.linkedin.com/shareArticle?mini=true&url=' + encodeURIComponent(document.URL) + '&title=' + encodeURIComponent(document.title)); return false;\"><img src=\"http://your-wp-site.com/wp-content/themes/twentyfifteen-child/images/flat_web_icon_set/black/LinkedIn.png\"></a></li>\r\n <li><a href=\"http://wordpress.com/press-this.php?u=http%3A%2F%2Flocalhost%2Ftestsite&t=Test%20site&s=Test%20site\" target=\"_blank\" title=\"Publish on WordPress\" onclick=\"window.open('http://wordpress.com/press-this.php?u=' + encodeURIComponent(document.URL) + '&t=' + encodeURIComponent(document.title)); return false;\"><img src=\"http://your-wp-site.com/wp-content/themes/twentyfifteen-child/images/flat_web_icon_set/black/Wordpress.png\"></a></li>\r\n <li><a href=\"https://pinboard.in/popup_login/?url=http%3A%2F%2Flocalhost%2Ftestsite&title=Test%20site&description=Test%20site\" target=\"_blank\" title=\"Save to Pinboard\" onclick=\"window.open('https://pinboard.in/popup_login/?url=' + encodeURIComponent(document.URL) + '&title=' + encodeURIComponent(document.title)); return false;\"><img src=\"http://your-wp-site.com/wp-content/themes/twentyfifteen-child/images/flat_web_icon_set/black/Pinboard.png\"></a></li>\r\n <li><a href=\"mailto:?subject=Test%20site&body=Test%20site:%20http%3A%2F%2Flocalhost%2Ftestsite\" target=\"_blank\" title=\"Email\" onclick=\"window.open('mailto:?subject=' + encodeURIComponent(document.title) + '&body=' + encodeURIComponent(document.URL)); return false;\"><img src=\"http://your-wp-site.com/wp-content/themes/twentyfifteen-child/images/flat_web_icon_set/black/Email.png\"></a></li>\r\n</ul>\r\n\r\n<?php }", "function displayArticle ($post, $author) {\n $content = file_get_contents($post);\n $shareUrl = \"http://wsle.me\" . slug($post);\n //Used for social sharing features while I'm forwarding domain.\n \n echo '<article><header><h1>' . articleName($post) . '</h1><p class=\"auth\">by: ' . $author . \" | \" . date (\"m.d.Y | h:ia\", filemtime($post)) . '</p>' . MarkdownExtra::defaultTransform($content . '***') . '<p class=\"share\">Share: <a href=\"http://www.facebook.com/sharer.php?u=' . $shareUrl . '\" target=\"_blank\">fb</a> | <a href=\"http://twitter.com/share?url=' . $shareUrl . '&text=' . ucwords(str_replace([\"-\", \"_\"], \" \", str_replace(\"/\", \"\", slug($post)))) . ' via @_wesleysinks\" target=\"_blank\">twt</a> | <a href=\"https://plusone.google.com/_/+1/confirm?hl=en&url=' . $shareUrl . '\" target=\"_blank\">g+</a></p></header></article>';\n}", "function anyShare($outer){\r\n\tif(!is_single()){ return $outer; }\r\n\r\n\tglobal $post;\r\n\t$share = array();\r\n\t$pName = rawurlencode($post->post_title);\r\n\t$pHref = rawurlencode(get_permalink($post->ID));\r\n\r\n\t$share['sntwet'] = array('新浪微博', 'http://v.t.sina.com.cn/share/share.php?url='.$pHref);\r\n\t$share['qqtwet'] = array('腾讯微博', 'http://v.t.qq.com/share/share.php?appkey=2e295ab2ff8245229d96fa3768a9f779&url='.$pHref.'&title='.$pName);\r\n\t$share['qqzone'] = array('腾讯空间', 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='.$pHref);\r\n\t$share['renren'] = array('人人社区', 'http://share.renren.com/share/buttonshare.do?link='.$pHref.'&title='.$pName);\r\n\t$share['douban'] = array('豆瓣社区', 'http://www.douban.com/recommend/?url='.$pHref);\r\n\t$share['bdcang'] = array('百度搜藏', 'http://cang.baidu.com/do/add?iu='.$pHref.'&it='.$pName);\r\n\t$share['facebk'] = array('facebook', 'http://www.facebook.com/share.php?u='.$pHref);\r\n\t$share['twiter'] = array('twitter', 'http://twitter.com/home?status='.$pName.'-'.$pHref);\r\n\r\n\t$outer .= \"\\n<!-- Begin anyShare -->\\n\";\r\n\t$outer .= '<link rel=\"stylesheet\" href=\"'.WP_PLUGIN_URL.'/'.dirname(plugin_basename(__FILE__)).'/anyShare.css?v=5\">';\r\n\t$outer .= '<table id=\"anyShare\"><tr><td id=\"AS-TXT\"><i>anyShare</i><b>分享到:</b></td><td id=\"AS-GPO\" rowspan=\"2\">';\r\n\t$outer .= '<script type=\"text/javascript\" src=\"https://apis.google.com/js/plusone.js\"></script><g:plusone size=\"tall\" annotation=\"bubble\" expandTo=\"top\"></g:plusone></td><td id=\"AS-IMG\" rowspan=\"2\">';\r\n\t$outer .= '</td><td id=\"AS-GPO\" rowspan=\"2\"> <g:plusone size=\"tall\"></g:plusone></td></tr><tr><td id=\"AS-BTN\">';\r\n\tforeach($share as $key => $btn){\r\n\t\t$outer .= '<a id=\"'.$key.'\" title=\"'.$btn[0].'\" href=\"'.$btn[1].'\" target=\"_blank\">&nbsp;</a>';\r\n\t}\r\n\t$outer .= '<br clear=\"all\"></td></tr></table>';\r\n\t$outer .= \"\\n<!-- anyShare Endof -->\\n\";\r\n\treturn $outer;\r\n}", "function renderSocialMediaShareLinksForUrl($url)\n {\n global $facebook_app_id;\n\n $url_encoded = urlencode($url);\n\n if('' !== trim($facebook_app_id))\n {\n ?>\n <!-- Facebook -->\n <a target=\"_blank\" href=\"https://www.facebook.com/dialog/feed?app_id=<?php echo $facebook_app_id; ?>&link=<?php echo $url_encoded; ?>\"><i class=\"fa fa-lg fa-facebook-official\" aria-hidden=\"true\"></i></a>\n <?php\n }\n ?>\n \n <!-- Twitter -->\n <a target=\"_blank\" href=\"https://twitter.com/?status=<?php echo $url_encoded; ?>\"><i class=\"fa fa-lg fa-twitter-square\" aria-hidden=\"true\"></i></a>\n \n <!-- LinkedIn -->\n <a target=\"_blank\" href=\"https://www.linkedin.com/shareArticle?mini=true&url=<?php echo $url_encoded; ?>\"><i class=\"fa fa-lg fa-linkedin-square\" aria-hidden=\"true\"></i></a>\n <?php\n\n return;\n }", "function gallo_share() {\n\t$url = urlencode(get_the_permalink());\n\t$title = urlencode(html_entity_decode(get_the_title(), ENT_COMPAT, 'UTF-8'));\n\t$media = urlencode(get_the_post_thumbnail_url(get_the_ID(), 'full'));\n\ninclude( locate_template('include/share.php', false, false) );\n}", "function facebook_share_button($content){\n if(get_post_detail('url',false)!==''){\n $content .= '<div id=\"fb-root\"></div>\n <script>(function(d, s, id) {\n var js, fjs = d.getElementsByTagName(s)[0];\n if (d.getElementById(id)) return;\n js = d.createElement(s); js.id = id;\n js.src = \"//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=840986119244731&version=v2.0\";\n fjs.parentNode.insertBefore(js, fjs);\n }(document,\\'script\\', \\'facebook-jssdk\\'));\n </script>\n <div class=\"fb-share-button\" data-href=\"'.WWW.get_post_detail('url',false).'.html\" data-layout=\"button\"></div>';\n }\n return $content;\n}", "public function social() {\n\t\t?>\n\t\t<p>\n\t\t<div class=\"g-plusone\" data-size=\"medium\" data-href=\"http://wp-buddy.com/products/plugins/google-drive-as-wordpress-cdn-plugin/\"></div>\n\t\t</p>\n\n\t\t<script type=\"text/javascript\">\n\t\t\t(function () {\n\t\t\t\tvar po = document.createElement( 'script' );\n\t\t\t\tpo.type = 'text/javascript';\n\t\t\t\tpo.async = true;\n\t\t\t\tpo.src = 'https://apis.google.com/js/plusone.js';\n\t\t\t\tvar s = document.getElementsByTagName( 'script' )[0];\n\t\t\t\ts.parentNode.insertBefore( po, s );\n\t\t\t})();\n\t\t</script>\n\n\t\t<p>\n\t\t\t<a href=\"https://twitter.com/share\" class=\"twitter-share-button\" data-url=\"http://wp-buddy.com/products/plugins/google-drive-as-wordpress-cdn-plugin/\" data-text=\"Check out the Google Drive as CDN WordPress Plugin\" data-related=\"wp_buddy\">Tweet</a>\n\t\t</p>\n\t\t<script>!function ( d, s, id ) {\n\t\t\t\tvar js, fjs = d.getElementsByTagName( s )[0];\n\t\t\t\tif ( !d.getElementById( id ) ) {\n\t\t\t\t\tjs = d.createElement( s );\n\t\t\t\t\tjs.id = id;\n\t\t\t\t\tjs.src = \"//platform.twitter.com/widgets.js\";\n\t\t\t\t\tfjs.parentNode.insertBefore( js, fjs );\n\t\t\t\t}\n\t\t\t}( document, \"script\", \"twitter-wjs\" );</script>\n\n\t\t<p>\n\t\t\t<iframe src=\"//www.facebook.com/plugins/like.php?href=<?php echo urlencode( 'http://wp-buddy.com/products/plugins/google-drive-as-wordpress-cdn-plugin/' ); ?>&amp;send=false&amp;layout=button_count&amp;width=150&amp;show_faces=false&amp;font&amp;colorscheme=light&amp;action=like&amp;height=21\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:150px; height:21px;\" allowTransparency=\"true\"></iframe>\n\t\t</p>\n\t<?php\n\t}", "function pacz_woocommerce_share() {\n\tglobal $post;\n\t$image_src_array = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full', true );\n\n\t$output = '<div class=\"woocommerce-share\"><ul class=\"single-social-share\">';\n\t\t$output .= '<li><a class=\"facebook-share\" data-title=\"'.get_the_title().'\" data-url=\"'.get_permalink().'\" href=\"#\"><i class=\"pacz-icon-facebook\"></i></a></li>';\n\t\t$output .= '<li><a class=\"twitter-share\" data-title=\"'.get_the_title().'\" data-url=\"'.get_permalink().'\" href=\"#\"><i class=\"pacz-icon-twitter\"></i></a></li>';\n\t\t$output .= '<li><a class=\"googleplus-share\" data-title=\"'.get_the_title().'\" data-url=\"'.get_permalink().'\" href=\"#\"><i class=\"pacz-icon-google-plus\"></i></a></li>';\n\t\t$output .= '<li><a class=\"linkedin-share\" data-title=\"'. get_the_title() .'\" data-url=\"'.get_permalink().'\" href=\"#\"><i class=\"pacz-icon-linkedin\"></i></a></li>';\n\t\t$output .= '<li><a class=\"pinterest-share\" data-image=\"'.$image_src_array[0].'\" data-title=\"'.get_the_title().'\" data-url=\"'.get_permalink().'\" href=\"#\"><i class=\"pacz-icon-pinterest\"></i></a></li>';\n\t$output .= '</ul><div class=\"clearboth\"></div></div>';\n\n\techo '<div>'.$output.'</div>';\n\n}", "function social_sharing_buttons() {\n $siteURL = site_url();\n $pageURL = wp_get_shortlink();\n\n // Get current page title\n $pageTitle = str_replace( ' ', '%20', get_the_title());\n\n // Construct sharing URL without using any script\n $twitterURL = 'https://twitter.com/intent/tweet?text='.$pageTitle.'&amp;url='.$pageURL.'&amp;via=YOUR_TWITTER_USERNAME';\n $facebookURL = 'https://facebook.com/sharer/sharer.php?u='.$pageURL;\n $googleURL = 'https://plus.google.com/share?url='.$pageURL;\n $linkedinURL = 'https://www.linkedin.com/shareArticle?mini=true&url='.$pageURL.'&title='.$pageTitle.'&source='.$siteURL;\n $telegramURL = 'https://telegram.me/share/url?url='.$pageURL.'&text='.$pageTitle;\n\n // Add sharing button at the end of page/page content\n $content = '<div class=\"share-modal share-modal--close\" >\n <div class=\"share-body\">\n <a class=\"share-modal__close\" href=\"#\" id=\"closeModalButton\">\n <i class=\"fa fa-close icon\" aria-hidden=\"true\"></i>\n </a>\n <p class=\"share-modal__title\">\n <span>انتشار مطلب</span>\n <i class=\"fa fa-share icon\" aria-hidden=\"true\"></i>\n </p>\n <p class=\"share-modal__post-title\">'.urldecode($pageTitle).'</p>\n\n <div class=\"share-buttons-container\">\n <a class=\"twitter\" href=\"'.$twitterURL .'\" target=\"_blank\"><i class=\"fa fa-twitter icon\" aria-hidden=\"true\"></i></a>\n <a class=\"facebook\" href=\"'.$facebookURL.'\" target=\"_blank\"><i class=\"fa fa-facebook icon\" aria-hidden=\"true\"></i></a>\n <a class=\"google-plus\" href=\"'.$googleURL.'\" target=\"_blank\"><i class=\"fa fa-google-plus icon\" aria-hidden=\"true\"></i></a>\n <a class=\"linkedin\" href=\"'.$linkedinURL.'\" target=\"_blank\"><i class=\"fa fa-linkedin icon\" aria-hidden=\"true\"></i></a>\n <a class=\"telegram\" href=\"'.$telegramURL.'\" target=\"_blank\"><i class=\"fa fa-paper-plane icon\" aria-hidden=\"true\"></i></a>\n </div>\n\n <p class=\"share-modal__post-title share-modal__post-title--small\">آدرس کوتاه شده این مطلب</p>\n <input type=\"text\" readonly=\"\" class=\"share-modal__link-box\" value=\"'.$pageURL.'\" onClick=\"this.select();\">\n </div>\n</div>';\n\n return $content;\n}", "public function SocialShareShortcode()\n {\n $data = $this->_SocialShareButtonsData(true);\n\t\t\tif(!$data['hide_on_page']){\n\t\t\t\t//use different view file for shortcode\n\t\t\t\treturn $this->_loadView('shortcodes/buttons-sc', $data);\n\t\t\t}\n }", "function mixtape_qodef_woocommerce_share()\n {\n if (mixtape_qodef_is_woocommerce_installed()) {\n\n if (mixtape_qodef_options()->getOptionValue('enable_social_share') == 'yes'\n && mixtape_qodef_options()->getOptionValue('enable_social_share_on_product') == 'yes') :\n echo mixtape_qodef_get_social_share_html();\n endif;\n }\n }", "function ubiq_add_socialgraph() {\n if (!get_option('ubiq_fb_opengraph')) { return; }\n\n if (is_single()) {\n global $post;\n \n $image_id = get_post_thumbnail_id();\n $image_url = wp_get_attachment_image_src($image_id,'large', true);\n \n \n $content = $post->post_content;\n $content = strip_shortcodes( $content );\n \t\t$content = strip_tags($content);\n\t\t$excerpt_length = 55;\n\t\t$words = explode(' ', $content, $excerpt_length + 1);\n\t\tif(count($words) > $excerpt_length) :\n\t\t\tarray_pop($words);\n\t\t\tarray_push($words, '...');\n\t\t\t$content = implode(' ', $words);\n\t\tendif;\n \n ?>\n <meta property=\"og:title\" content=\"<?php the_title() ?>\"/>\n <meta property=\"og:type\" content=\"article\"/>\n <meta property=\"og:url\" content=\"<?php echo get_permalink() ?>\"/>\n <?php\n if (get_the_post_thumbnail()) {\n ?>\n <meta property=\"og:image\" content=\"<?php echo $image_url[0] ?>\"/>\n <?php } else { ?>\n <meta property=\"og:image\" content=\"<?php header_image(); ?>\"/>\n <?php } ?>\n <meta property=\"og:site_name\" content=\"<?php echo get_bloginfo('name') ?>\"/> \n <meta property=\"og:description\" content=\"<?php echo $content ?>\"/>\n <?php if (get_option('ubiq_fb_appid')) { ?>\n <meta property=\"fb:app_id\" content=\"<?php echo get_option('ubiq_fb_appid') ?>\" />\n <?php } ?>\n <?php\n if (function_exists('sharing_display')) {\n add_filter( 'excerpt_length', 'calculate_excerpt_length' ); \n add_filter( 'the_excerpt', 'sharing_display', 19 );\n }\n } else if(is_home()) {\n ?>\n <meta property=\"og:title\" content=\"<?php echo get_bloginfo('name') ?>\"/>\n <meta property=\"og:type\" content=\"website\"/>\n <meta property=\"og:url\" content=\"<?php bloginfo('url') ?>\"/>\n <meta property=\"og:image\" content=\"<?php header_image(); ?>\"/>\n <meta property=\"og:site_name\" content=\"<?php echo get_bloginfo('name') ?>\"/> \n <meta property=\"og:description\" content=\"<?php echo bloginfo('description') ?>\"/>\n <?php if (get_option('ubiq_fb_appid')) { ?>\n <meta property=\"fb:app_id\" content=\"<?php echo get_option('ubiq_fb_appid') ?>\" />\n <?php } ?>\n <?php\n }\n}", "public function show(Social $social)\n {\n //\n }", "public function show(Social $social)\n {\n //\n }", "function culturefeed_search_ui_add_facebook_share() {\n\n $fb_app_id = variable_get('culturefeed_search_ui_fb_app_id', '');\n if (!empty($fb_app_id)) {\n drupal_add_js(drupal_get_path('module', 'culturefeed') . '/js/facebook_share.js');\n drupal_add_js(array('culturefeed' => array('fbAppId' => $fb_app_id)), 'setting');\n }\n\n}", "function recipe_share_shortcode( $atts = [], $content = null) {\n $permalink = urlencode(get_permalink($post->ID));\n $title = urlencode(get_the_title($post->ID));\n\n $o = '<span>Share</span>\n <p>\n <a href=\"http://www.facebook.com/sharer.php?u=' . $permalink . '&t=' . $title . '\" target=\"_blank\"><i class=\"fab fa-facebook-f\"></i><span class=\"show-for-sr\">Share on Facebook</span></a>\n <a href=\"http://twitter.com/share?url=' . $permalink . '\" target=\"_blank\"><i class=\"fab fa-twitter\"></i><span class=\"show-for-sr\">Share on Twitter</span></a>\n <a href=\"https://www.linkedin.com/shareArticle?mini=true&url=' . $permalink . '&title=' . $title . '&source=LinkedIn\"><i class=\"fab fa-linkedin-in\" target=\"_blank\"></i><span class=\"show-for-sr\">Share on Linkedin</span></a>\n <a href=\"mailto:?subject=' . $title . ' | Check out this recipe&body=' . $permalink . '\" title=\"Share by Email\"><i class=\"fas fa-link\"></i><span class=\"show-for-sr\">Share via Email</span></a>\n </p>\n';\n\n return $o;\n}", "function publisher_social_share_option_list() {\n\n\t\t$sites = array(\n\t\t\t'facebook' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-facebook\"></i> ' . __( 'Facebook', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'facebook-messenger' => array(\n\t\t\t\t'label' => '<i class=\"fa bsfi-fb-messenger\"></i> ' . __( 'Facebook Messenger', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'twitter' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-twitter\"></i> ' . __( 'Twitter', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'google_plus' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-google-plus\"></i> ' . __( 'Google+', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'pinterest' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-pinterest\"></i> ' . __( 'Pinterest', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'reddit' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-reddit-alien\"></i> ' . __( 'ReddIt', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'linkedin' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-linkedin\"></i> ' . __( 'Linkedin', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'tumblr' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-tumblr\"></i> ' . __( 'Tumblr', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'telegram' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-send\"></i> ' . __( 'Telegram', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'whatsapp' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-whatsapp\"></i> ' . __( 'Whatsapp (Only Mobiles)', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'email' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-envelope\"></i> ' . publisher_translation_get( 'email' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'stumbleupon' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-stumbleupon\"></i> ' . __( 'StumbleUpon', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'vk' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-vk\"></i> ' . __( 'VK', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'digg' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-digg\"></i> ' . __( 'Digg', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'line' => array(\n\t\t\t\t'label' => '<i class=\"fa bsfi-line\"></i> ' . __( 'LINE (Only Mobiles)', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'bbm' => array(\n\t\t\t\t'label' => '<i class=\"fa bsfi-bbm\"></i> ' . __( 'BlackBerry (Only Mobiles)', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'viber' => array(\n\t\t\t\t'label' => '<i class=\"fa bsfi-viber\"></i> ' . __( 'Viber (Only Mobiles)', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'print' => array(\n\t\t\t\t'label' => '<i class=\"fa fa-print\"></i> ' . publisher_translation_get( 'print' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\t\t\t'ok-ru' => array(\n\t\t\t\t'label' => '<i class=\"fa bsfi-ok-ru\"></i> ' . __( 'OK.ru', 'publisher' ),\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t),\n\n\t\t);\n\n\t\tforeach ( publisher_get_option( 'social_share_custom_links' ) as $link ) {\n\n\t\t\tif ( empty( $link['title'] ) || empty( $link['link'] ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$sites[ $link['title'] ] = array(\n\t\t\t\t'label' => bf_get_icon_tag( $link['icon'] ) . ' ' . $link['title'],\n\t\t\t\t'css-class' => 'active-item'\n\t\t\t);\n\t\t}\n\n\t\treturn $sites;\n\t}", "function print_embed_sharing_dialog()\n {\n }", "function print_embed_sharing_button()\n {\n }", "function wpcom_vip_enable_sharing() {\n\tadd_filter( 'post_flair', 'sharing_display', 20 );\n}", "public function share_buttons($socials = null)\n {\n if (!static::$initialized) {\n error_log(__('Jankx social sharing is not initialized yet', 'jankx'));\n return;\n }\n ?>\n <div class=\"jankx-socials-sharing drop-styles\">\n <?php $this->render_social_share_buttons($socials); ?>\n </div>\n\n <?php\n ob_start();\n ?>\n <script>\n function jankx_socials_sharing_find_button_from_target(ele) {\n if (!ele.dataset.type) {\n return jankx_socials_sharing_find_button_from_target(ele.parentElement);\n }\n return ele;\n }\n\n <?php foreach (static::$agruments as $variable_name => $agrument) : ?>\n var <?php echo $variable_name; ?> = <?php echo $agrument; ?>;\n <?php endforeach; ?>\n\n var socials_sharing_buttons = document.querySelectorAll('.jankx-socials-sharing .social-sharing-button');\n if (socials_sharing_buttons.length > 0) {\n for (i = 0; i < socials_sharing_buttons.length; i++) {\n if (!socials_sharing_buttons[i].dataset.type) {\n continue;\n }\n socials_sharing_buttons[i].addEventListener('click', function(e) {\n button = jankx_socials_sharing_find_button_from_target(e.target);\n VanillaSharing[button.dataset.type](\n window[button.dataset.agrument]\n );\n });\n }\n }\n </script>\n <?php\n execute_script(ob_get_clean());\n }", "function fl_user_bar_box() {\n\tglobal $post;\n\t\n\tif( !is_singular('post') ) return; // only show on blog post single page\n\t\n\t// assemble the text and url we'll pass into each social media share link\n\t$social_text = urlencode(strip_tags(get_the_title() . ' ' . __( 'post from', APP_TD ) . ' ' . get_bloginfo('name')));\n\t$social_url = urlencode(get_permalink($post->ID));\n?>\n\n<div class=\"user-bar\">\n\t\n\t<?php if (comments_open()) comments_popup_link( ('<span>' . __( 'Leave a comment', APP_TD ) . '</span>'), ('<span>' . __( 'Leave a comment', APP_TD ) . '</span>'), ('<span>' . __( 'Leave a comment', APP_TD ) . '</span>'), 'btn', '' ); ?>\t\n\t\n\t<?php fl_social_share(); ?>\n\t\n</div>\n\n<?php\n}", "function frame_share($provider, $post_id = null)\n{\n\n // $postid = url_to_postid( $url );\n\n $defaults = array(\n 'provider' => null,\n 'post_id' => $post_id,\n 'url' => ($post_id === null) ? $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] : get_permalink($post_id),\n 'title' => ($post_id === null) ? '' : get_the_title($post_id),\n 'description' => '',\n 'tags' => '',\n 'source' => ''\n );\n\n if (is_array($provider))\n {\n $args = wp_parse_args($provider, $defaults);\n }\n else if (is_string($provider))\n {\n\n }\n\n\n\n // Get the URL to share\n $url = ($post_id === null) ? $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] : get_permalink($post_id);\n $url = urlencode($url);\n\n switch($args['provider'])\n {\n case 'facebook':\n break;\n\n case 'google':\n break;\n\n case 'linkedin':\n break;\n\n case 'pinterest':\n break;\n\n case 'reddit':\n break;\n\n case 'twitter':\n break;\n\n default:\n break;\n }\n\n\n}", "public function sharebuttons($atts)\n {\n\n $class = '';\n if (!empty($atts['class'])) {\n $class = $atts['class'];\n }\n\n $include = false;\n if (!empty($atts['include'])) {\n $include = explode(',', $atts['include']);\n }\n\n $exclude = false;\n if (!empty($atts['exclude'])) {\n $exclude = explode(',', $atts['exclude']);\n }\n\n $channels = array(\n 'email' => \"mailto:?Subject=\" . urlencode(get_bloginfo('name') . ': ' . get_the_title()) . \"&amp;Body=\" . urlencode(\"dit kwam ik tegen op \" . get_bloginfo('name') . \": http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]\"),\n 'facebook' => \"http://www.facebook.com/sharer.php?u=\" . site_url(),\n 'twitter' => \"https://twitter.com/share?url=\" . site_url() . \"&amp;name=\" . str_replace(' ', '_', get_bloginfo('name')) . \"&amp;hashtags=\" . str_replace(' ', '_', get_bloginfo('name')),\n 'linkedIn' => \"http://www.linkedin.com/shareArticle?mini=true&amp;url=\" . site_url(),\n 'pinterest' => \"javascript:void((function()%7Bvar%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','http://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)%7D)());\",\n 'googleplus' => \"https://plus.google.com/share?url=\" . site_url(),\n 'reddit' => \"http://reddit.com/submit?url=\" . site_url() . \"&amp;title=\" . str_replace(' ', '_', get_bloginfo('name')),\n 'tumblr' => \"http://www.tumblr.com/share/link?url=\" . site_url() . \"&amp;title=\" . str_replace(' ', '_', get_bloginfo('name')),\n );\n $rs = '<ul class=\"sharebuttons ' . $class . '\">';\n foreach ($channels as $name => $link) {\n\n $toPrint = true;\n\n // included\n if ($include) {\n $toPrint = false;\n foreach ($include as $item) {\n if ($item == $name) {\n $toPrint = true;\n }\n }\n }\n\n // exclude\n else if ($exclude) {\n foreach ($exclude as $item) {\n if ($item == $name) {\n $toPrint = false;\n }\n }\n }\n\n if ($toPrint) {\n $target = 'target=blank';\n if ($name === 'email') {\n $target = '';\n }\n $rs .= '<li><a class=\"sharebutton ' . $name . '\" href=\"' . $link . '\" ' . $target . '></a></li>';\n }\n }\n $rs .= '</ul>';\n return $rs;\n }", "function nsh_social() {\n\n\t$social = nsh_get_social();\n\n\tif ( $social ) {\n\t\techo $social;\n\t}\n\n}", "function showView()\n\t{\n\t\techo '<a href=\"https://twitter.com/share?url='. urlencode(\"http://t3kno.dewpixel.net/view.php?s=\".$this->ytcode) .'&amp;text=This song rocks you gotta hear this!\" \n\t\t\tclass=\"twitter-share-button\" style=\"float:right;\">Tweet</a> <br />' .\n\t\t $this->title . ' by <a href=\"index.php?topof=new&artist=' . $this->artist . '\">' . $this->artist . '</a><br />\n\t\t\tGenre: <a href=\"index.php?topof=new&genre=' . strtolower($this->genre) .'\">' . $this->genre . '</a><br />\n\t\t\tUploaded By: '.$this->user .'<br />\n\t\t\tDownload: <u>Amazon</u> <u>Apple</u> <br />\n\t\t\t';\n\n\t}", "function social_bookmarks()\n {\n // remove the next line if you want to show the buttons\n return; \n \n echo '<span class=\"socbook\">';\n echo '<a href=\"' . str_replace(array('%title%', '%permalink%', ), array(urlencode($GLOBALS['post']->post_title), urlencode(apply_filters('the_permalink', get_permalink())), ), 'http://reddit.com/submit?title=%title%&amp;url=%permalink%') . '\" target=\"_blank\"><img src=\"' . get_bloginfo('template_directory') . '/images/reddit_be.gif\" alt=\"Reddit\" title=\"Reddit\"/></a>';\n echo '<a href=\"' . str_replace(array('%title%', '%permalink%', ), array(urlencode($GLOBALS['post']->post_title), urlencode(apply_filters('the_permalink', get_permalink())), ), 'http://www.facebook.com/share.php?title=%title%&amp;u=%permalink%') . '\" target=\"_blank\"><img src=\"' . get_bloginfo('template_directory') . '/images/facebook_be.gif\" alt=\"Facebook\" title=\"Facebook\"/></a>';\n echo '<a href=\"' . str_replace(array('%title%', '%permalink%', ), array(urlencode($GLOBALS['post']->post_title), urlencode(apply_filters('the_permalink', get_permalink())), ), 'http://www.stumbleupon.com/submit?title=%title%&amp;url=%permalink%') . '\" target=\"_blank\"><img src=\"' . get_bloginfo('template_directory') . '/images/stumbleupon_be.gif\" alt=\"Stumbleupon\" title=\"Stumbleupon\"/></a>'; \n echo '<a href=\"' . str_replace(array('%title%', '%permalink%', ), array(urlencode($GLOBALS['post']->post_title), urlencode(apply_filters('the_permalink', get_permalink())), ), 'http://digg.com/submit?phase=2&amp;title=%title%&amp;url=%permalink%') . '\" target=\"_blank\"><img src=\"' . get_bloginfo('template_directory') . '/images/digg_be.gif\" alt=\"Digg\" title=\"Digg\"/></a>'; \n echo '<a href=\"' . str_replace(array('%title%', '%permalink%', ), array(urlencode($GLOBALS['post']->post_title), urlencode(apply_filters('the_permalink', get_permalink())), ), 'http://del.icio.us/post?title=%title%&amp;url=%permalink%') . '\" target=\"_blank\" ><img src=\"' . get_bloginfo('template_directory') . '/images/del_be.gif\" id=\"del_be\" alt=\"Del.icio.us\" title=\"Del.icio.us\" /></a>'; \n echo '</span>';\n }", "function jptweak_remove_share() {\n remove_filter( 'the_content', 'sharing_display',19 );\n remove_filter( 'the_excerpt', 'sharing_display',19 );\n if ( class_exists( 'Jetpack_Likes' ) ) {\n remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 );\n }\n}", "function get_facebook_share_url( $the_post = null ) {\n\tglobal $post;\n\tif ( empty( $the_post ) ) {\n\t\t$the_post = $post;\n\t}\n\n\t$permalink = get_the_permalink( $the_post->ID );\n\t$the_title = get_the_title( $the_post->ID );\n\t$handle = get_theme_mod( 'facebook_url' );\n\n\treturn 'http://www.facebook.com/sharer.php?&u=' . $permalink;\n}", "function siteorigin_share_render( $settings = array() ) {\n\t$settings = wp_parse_args( $settings, array(\n\t\t'width' => 25,\n\t\t'like_text' => __( 'like', 'vantage' ),\n\t\t'twitter' => ''\n\t) );\n\n\n\n\tstatic $facebook_loaded = false;\n\tif(!$facebook_loaded) {\n\t\t?>\n\t\t<div id=\"fb-root\"></div>\n\t\t<script type=\"text/javascript\">\n\t\t\t(function(d, s, id) {\n\t\t var js, fjs = d.getElementsByTagName(s)[0];\n\t\t if (d.getElementById(id)) return;\n\t\t js = d.createElement(s); js.id = id;\n\t\t js.src = \"//connect.facebook.net/en_GB/all.js#xfbml=1\";\n\t\t fjs.parentNode.insertBefore(js, fjs);\n\t\t}(document, 'script', 'facebook-jssdk'));\n\t\t</script>\n\t\t<?php\n\t\t$facebook_loaded = true;\n\t}\n\n\tstatic $google_loaded = false;\n\tif(!$google_loaded) {\n\t\t?>\n\t\t<script type=\"text/javascript\">\n\t\t\t// Google Plus One\n\t\t\t(function () {\n\t\t\t\tvar po = document.createElement( 'script' );\n\t\t\t\tpo.type = 'text/javascript';\n\t\t\t\tpo.async = true;\n\t\t\t\tpo.src = 'https://apis.google.com/js/plusone.js';\n\t\t\t\tvar s = document.getElementsByTagName( 'script' )[0];\n\t\t\t\ts.parentNode.insertBefore( po, s );\n\t\t\t})();\n\t\t</script>\n\t\t<?php\n\t\t$google_loaded = true;\n\t}\n\n\tstatic $linkedin_loaded = false;\n\tif(!$linkedin_loaded) {\n\t\t?>\n\t\t<script src=\"//platform.linkedin.com/in.js\" type=\"text/javascript\"> lang: en_US</script>\n\t\t<?php\n\t\t$linkedin_loaded = true;\n\t}\n\n\t?>\n\t<ul class=\"share-buttons\">\n\t\t<li class=\"network facebook\" style=\"width:<?php echo intval( $settings['width'] ) ?>%\">\n\n\t\t\t<div\n\t\t\t\tclass=\"fb-like\"\n\t\t\t\tdata-href=\"<?php echo get_permalink() ?>\"\n\t\t\t\tdata-width=\"<?php echo intval( $settings['width'] ) ?>\"\n\t\t\t\tdata-layout=\"button_count\"\n\t\t\t\tdata-send=\"false\"\n\t\t\t\tdata-height=\"21\"\n\t\t\t\tdata-show-faces=\"false\"\n\t\t\t\tdata-action=\"<?php echo esc_attr($settings['like_text']) ?>\"></div>\n\t\t</li>\n\n\t\t<li class=\"network twitter\" style=\"width:<?php echo intval( $settings['width'] ) ?>%\">\n\t\t\t<?php\n\t\t\t$related = array();\n\t\t\t$related[ ] = $settings['twitter'];\n\t\t\t$twitter_url = add_query_arg( array(\n\t\t\t\t'url' => get_permalink(),\n\t\t\t\t'via' => siteorigin_setting( 'social_twitter' ),\n\t\t\t\t'text' => get_the_title(),\n\t\t\t\t'related' => implode( ',', $related )\n\t\t\t), 'http' . (is_ssl() ? 's' : '' ) . '://platform.twitter.com/widgets/tweet_button.html' );\n\n\t\t\t?>\n\t\t\t<iframe allowtransparency=\"true\" frameborder=\"0\" scrolling=\"no\" src=\"<?php echo esc_attr( $twitter_url ) ?>\" style=\"height:20px;\"></iframe>\n\t\t</li>\n\n\t\t<li class=\"network plusone\" style=\"width:<?php echo intval( $settings['width'] )-4 ?>%\">\n\t\t\t<div class=\"g-plusone\" data-size=\"medium\" data-width=\"160\"></div>\n\t\t</li>\n\n\t\t<li class=\"network linkedin\" style=\"width:<?php echo intval( $settings['width'] )+4 ?>%;\">\n\t\t\t<script type=\"IN/Share\" data-counter=\"right\"></script>\n\t\t</li>\n\t</ul>\n\t<?php\n}", "function easy_reader_share_button($type){\n\tswitch($type){\n\t\tcase 'rss':\n\t\t\t$link = get_bloginfo('rss2_url');\n\t\t\t$title = 'Subscribe';\n\t\t\tbreak;\n\t\t\n\t\tcase 'bebo':\n\t\t\t$link = 'http://www.bebo.com/c/share?Url='.urlencode(get_permalink()).'&Title='.urlencode(get_the_title());\n\t\t\t$title = 'Share on Bebo';\n\t\t\tbreak;\n\t\t\n\t\tcase 'delicious':\n\t\t\t$link = \"http://del.icio.us/post?url=\".urlencode(get_permalink()).\"&title=\".urlencode(get_the_title());\n\t\t\t$title = 'Bookmark on Delicious';\n\t\t\tbreak;\n\t\t\n\t\tcase 'digg':\n\t\t\t$link = \"http://digg.com/submit?phase=2&url=\".urlencode(get_permalink()).\"&title=\".urlencode(get_the_title());\n\t\t\t$title = 'Digg This';\n\t\t\tbreak;\n\t\t\n\t\tcase 'facebook':\n\t\t\t$link = \"http://www.facebook.com/sharer.php?u=\".urlencode(get_permalink()).\"&t=\".urlencode(get_the_title());\n\t\t\t$title = \"Share on Facebook\";\n\t\t\tbreak;\n\t\t\n\t\tcase 'google':\n\t\t\t$link = \"http://fusion.google.com/add?feedurl=\".urlencode(get_bloginfo('rss2_url'));\n\t\t\t$title = 'Import Into Google Reader';\n\t\t\tbreak;\n\t\t\n\t\tcase 'myspace':\n\t\t\t$link = \"http://www.myspace.com/Modules/PostTo/Pages/?u=\".urlencode(get_permalink());\n\t\t\t$title = 'Post On Myspace';\n\t\t\tbreak;\n\t\t\n\t\tcase 'orkut':\n\t\t\t$link = \"http://promote.orkut.com/preview?nt=orkut.com&du=\".urlencode(get_permalink()).\"&tt=\".urlencode(get_the_title());\n\t\t\t$title = 'Promote on Orkut';\n\t\t\tbreak;\n\t\t\n\t\tcase 'reddit':\n\t\t\t$link = \"http://reddit.com/submit?&url=\".urlencode(get_permalink()).\"&title=\".urlencode(get_the_title());\n\t\t\t$title = \"Share on Reddit\";\n\t\t\tbreak;\n\t\t\n\t\tcase 'stumbleupon':\n\t\t\t$link = \"http://www.stumbleupon.com/submit?url=\".urlencode(get_permalink()).\"&title=\".urlencode(get_the_title());\n\t\t\t$title = \"Stumble this\";\n\t\t\tbreak;\n\t\t\n\t\tcase 'technorati':\n\t\t\t$link = \"http://technorati.com/faves/?add=\".urlencode(get_permalink());\n\t\t\t$title = 'Favorite on Technorati';\n\t\t\tbreak;\n\t\t\t\n\t\tcase 'twitter':\n\t\t\t// TODO shorten this and let user add custom message\n\t\t\t$link = \"http://twitter.com/home?status=\".urlencode(get_permalink());\n\t\t\t$title = \"Tweet this\";\n\t\t\tbreak;\n\t}\n\t\n\t?><a href=\"<?php print $link ?>\" title=\"<?php print esc_attr($title) ?>\" rel=\"nofollow\"><img src=\"<?php print WP_PLUGIN_URL ?>/easy-reader/images/share/<?php print $type?>.png\" /></a><?php\n}", "function wolf_share( $echo = true ) {\n\tob_start();\n\n\tdo_action( 'wolf_share_before_buttons' );\n\n\tinclude( WS_DIR . '/templates/share-buttons.php' );\n\n\tdo_action( 'wolf_share_after_buttons' );\n\n\t$output = ob_get_clean();\n\n\tif ( $echo ) {\n\t\techo $output;\n\t}\n\n\treturn $output;\n}", "function studio_remove_share() {\n if ( function_exists( 'sharing_display' ) ) {\n remove_filter( 'the_content', 'sharing_display',19 );\n remove_filter( 'the_excerpt', 'sharing_display',19 );\n }\n if ( class_exists( 'Jetpack_Likes' ) ) {\n remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 );\n }\n}", "function\nwidget_pr_share ($title, $url)\n{\n $title = trim ($title);\n $url = trim ($url);\n $p = '';\n\n $p .= '<img src=\"images/widget/widget_relate_tellafriend.png\" border=\"0\">'\n .'<a href=\"mailto:?body='\n .$url\n .'&subject='\n .$title\n .'\"'\n .'>Share</a>'\n;\n return $p;\n}", "public function widget( $args, $instance ) {\n\t$title = apply_filters( 'widget_title', $instance['title'] );\n\t// before and after widget arguments are defined by themes\n\techo $args['before_widget'];\n\tif ( ! empty( $title ) )\n\t\techo $args['before_title'] . $title . $args['after_title'];\n\t// This is where you run the code and display the output\n\t\techo '<div class=\"social-share\"> <a data-fb-link=\"';\n\t\techo the_permalink();\n\t\techo '\" href=\"https://www.facebook.com/sharer/sharer.php?u=';\n\t\techo the_permalink();\n\t\techo '\" title=\"Share on Facebook\" name=\"fb_share\" onclick=\"window.open(this.href,\\'targetWindow\\',\\'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=660,height=380,left=100,top=100\\');return false;\" class=\"facebook\"><span><i class=\"fab fa-facebook-f\"></i></span> Facebook</a>';\n\t\techo '<a href=\"https://twitter.com/intent/tweet?text=';\n\t\techo the_title(); \n\t\techo '&url=';\n\t\techo the_permalink();\n\t\techo '\" class=\"share-icon share-button share-icon-twitter twitter\" title=\"Share on Twitter\" onclick=\"window.open(this.href,\\'targetWindow\\',\\'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=660,height=380,left=100,top=100\\');return false;\"><span><i class=\"fab fa-twitter\"></i></span> Twitter</a>'; \n\t\techo '<a href=\"https://plus.google.com/share?url=';\n\t\techo the_permalink();\n\t\techo '\" class=\"share-icon share-button share-icon-google-plus google\" title=\"Share on Google+\" onclick=\"window.open(this.href,\\'targetWindow\\',\\'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=480,height=400,left=100,top=100\\');return false;\"><span><i class=\"fab fa-google-plus-g\"></i></span> Google +</a>'; \n\t\techo '<a class=\"social-email\" href=\"mailto:?subject=I wanted to share this story with you: || ';\n\t\techo the_title();\n\t\techo '&body=I found this story on '; \n\t\techo bloginfo('url');\n\t\techo 'and I thought you would like it:';\n\t\techo the_permalink();\n\t\techo ' Here is an excerpt:';\n\t\techo strip_tags( get_the_excerpt() );\n\t\techo '\"><span><i class=\"fa fa-share-square\"></i></span>Email a Friend</a></div>';\n\t\techo $args['after_widget'];\n}", "function _h_remove_jetpack_share_buttons() {\n remove_filter('the_content', 'sharing_display', 19);\n remove_filter('the_excerpt', 'sharing_display', 19);\n\n if (class_exists('Jetpack_Likes')) {\n remove_filter('the_content', [Jetpack_Likes::init(), 'post_likes'], 30, 1);\n }\n}", "public function social_media()\n {\n $result = $this->dtbs->list('social');\n $data['info'] = $result;\n $this->load->view('back/social/anasehife',$data);\n }", "public static function remove_jetpack_share() {\n\n\t\t\tremove_filter( 'the_excerpt', 'sharing_display', 19 );\n\t\t\tremove_filter( 'the_content', 'sharing_display', 19 );\n\t\t}", "public function showComponent($atts)\r\n\t{\r\n\t\t\r\n\t\t$this->prepareData();\r\n\r\n\t\t// Default values\r\n\t\t$atts = shortcode_atts(array('show' => 'facebook, twitter, linkedin, email, whatsapp, viber'), $atts);\r\n\t\twp_enqueue_style('social-shares');\r\n\t\twp_enqueue_script('social-shares');\r\n\t\tob_start();\r\n\t?>\r\n\r\n<div class=\"ss\">\r\n\r\n\t<?php if (strpos($atts['show'], 'facebook') !== false) : ?>\r\n\t<a class=\"ss__facebook\" href=\"http://www.facebook.com/share.php?u=<?php echo $this->shared_url; ?>\" title=\"Facebook\" target=\"_BLANK\">\r\n\t\t<svg width=\"30\" height=\"30\" viewBox=\"0 0 24 24\">\r\n\t\t\t<path d=\"M12 2.04C6.5 2.04 2 6.53 2 12.06C2 17.06 5.66 21.21 10.44 21.96V14.96H7.9V12.06H10.44V9.85C10.44 7.34 11.93 5.96 14.22 5.96C15.31 5.96 16.45 6.15 16.45 6.15V8.62H15.19C13.95 8.62 13.56 9.39 13.56 10.18V12.06H16.34L15.89 14.96H13.56V21.96A10 10 0 0 0 22 12.06C22 6.53 17.5 2.04 12 2.04Z\" />\r\n\t\t</svg>\r\n\t</a>\r\n\t<?php endif; ?>\r\n\r\n\t<?php if (strpos($atts['show'], 'twitter') !== false) : ?>\r\n\t<a class=\"ss__twitter\" data-size=\"large\" href=\"https://twitter.com/intent/tweet?text=<?php echo $this->tweet; ?>\" title=\"Twitter\" target=\"_BLANK\">\r\n\t\t<svg width=\"30\" height=\"30\" viewBox=\"0 0 24 24\">\r\n\t\t\t<path d=\"M22.46,6C21.69,6.35 20.86,6.58 20,6.69C20.88,6.16 21.56,5.32 21.88,4.31C21.05,4.81 20.13,5.16 19.16,5.36C18.37,4.5 17.26,4 16,4C13.65,4 11.73,5.92 11.73,8.29C11.73,8.63 11.77,8.96 11.84,9.27C8.28,9.09 5.11,7.38 3,4.79C2.63,5.42 2.42,6.16 2.42,6.94C2.42,8.43 3.17,9.75 4.33,10.5C3.62,10.5 2.96,10.3 2.38,10C2.38,10 2.38,10 2.38,10.03C2.38,12.11 3.86,13.85 5.82,14.24C5.46,14.34 5.08,14.39 4.69,14.39C4.42,14.39 4.15,14.36 3.89,14.31C4.43,16 6,17.26 7.89,17.29C6.43,18.45 4.58,19.13 2.56,19.13C2.22,19.13 1.88,19.11 1.54,19.07C3.44,20.29 5.7,21 8.12,21C16,21 20.33,14.46 20.33,8.79C20.33,8.6 20.33,8.42 20.32,8.23C21.16,7.63 21.88,6.87 22.46,6Z\" />\r\n\t\t</svg>\r\n\t</a>\r\n\t<?php endif; ?>\r\n\r\n\t<?php if (strpos($atts['show'], 'linkedin') !== false) : ?>\r\n\t<a class=\"ss__linkedin\" href=\"https://www.linkedin.com/shareArticle?mini=true&url=&title=<?php echo $this->title; ?>&summary=&source=<?php echo $this->shared_url; ?>\" title=\"LinkedIn\" target=\"_BLANK\">\r\n\t\t<svg width=\"30\" height=\"30\" viewBox=\"0 0 24 24\">\r\n\t\t\t<path d=\"M21,21H17V14.25C17,13.19 15.81,12.31 14.75,12.31C13.69,12.31 13,13.19 13,14.25V21H9V9H13V11C13.66,9.93 15.36,9.24 16.5,9.24C19,9.24 21,11.28 21,13.75V21M7,21H3V9H7V21M5,3A2,2 0 0,1 7,5A2,2 0 0,1 5,7A2,2 0 0,1 3,5A2,2 0 0,1 5,3Z\" />\r\n\t\t</svg>\r\n\t</a>\r\n\t<?php endif; ?>\r\n\r\n\t<?php if (strpos($atts['show'], 'email') !== false) : ?>\r\n\t<a class=\"ss__email\" href=\"mailto:?subject=<?php echo $this->title; ?>&body=<?php echo $this->shared_url; ?>\" title=\"E-mail\" target=\"_BLANK\">\r\n\t\t<svg width=\"30\" height=\"30\" viewBox=\"0 0 24 24\">\r\n\t\t\t<path d=\"M20,8L12,13L4,8V6L12,11L20,6M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z\" />\r\n\t\t</svg>\r\n\t</a>\r\n\t<?php endif; ?>\r\n\r\n\t<?php if (strpos($atts['show'], 'whatsapp') !== false) : ?>\r\n\t<a class=\"ss__whatsapp ss__mobile\" href=\"whatsapp://send?text=<?php echo $this->title; ?>\" title=\"WhatsApp\" target=\"_BLANK\" data-action=\"share/whatsapp/share\">\r\n\t\t<svg width=\"30\" height=\"30\" viewBox=\"0 0 24 24\">\r\n\t\t\t<path d=\"M16.75,13.96C17,14.09 17.16,14.16 17.21,14.26C17.27,14.37 17.25,14.87 17,15.44C16.8,16 15.76,16.54 15.3,16.56C14.84,16.58 14.83,16.92 12.34,15.83C9.85,14.74 8.35,12.08 8.23,11.91C8.11,11.74 7.27,10.53 7.31,9.3C7.36,8.08 8,7.5 8.26,7.26C8.5,7 8.77,6.97 8.94,7H9.41C9.56,7 9.77,6.94 9.96,7.45L10.65,9.32C10.71,9.45 10.75,9.6 10.66,9.76L10.39,10.17L10,10.59C9.88,10.71 9.74,10.84 9.88,11.09C10,11.35 10.5,12.18 11.2,12.87C12.11,13.75 12.91,14.04 13.15,14.17C13.39,14.31 13.54,14.29 13.69,14.13L14.5,13.19C14.69,12.94 14.85,13 15.08,13.08L16.75,13.96M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C10.03,22 8.2,21.43 6.65,20.45L2,22L3.55,17.35C2.57,15.8 2,13.97 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12C4,13.72 4.54,15.31 5.46,16.61L4.5,19.5L7.39,18.54C8.69,19.46 10.28,20 12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4Z\" />\r\n\t\t</svg>\r\n\t</a>\r\n\t<?php endif; ?>\r\n\r\n\t<?php if (strpos($atts['show'], 'viber') !== false) : ?>\r\n\t<a class=\"ss__viber ss__mobile\" href=\"viber://forward?text=<?php echo $this->title; ?> <?php $this->shared_url; ?>\" title=\"Viber\" target=\"_BLANK\">\r\n\t\t<svg width=\"30\" height=\"30\" viewBox=\"0 0 455.731 455.731\">\r\n\t\t\t<path d=\"M371.996,146.901l-0.09-0.36c-7.28-29.43-40.1-61.01-70.24-67.58l-0.34-0.07\r\n\t\t\tc-48.75-9.3-98.18-9.3-146.92,0l-0.35,0.07c-30.13,6.57-62.95,38.15-70.24,67.58l-0.08,0.36c-9,41.1-9,82.78,0,123.88l0.08,0.36\r\n\t\t\tc6.979,28.174,37.355,58.303,66.37,66.589v32.852c0,11.89,14.49,17.73,22.73,9.15l33.285-34.599\r\n\t\t\tc7.219,0.404,14.442,0.629,21.665,0.629c24.54,0,49.09-2.32,73.46-6.97l0.34-0.07c30.14-6.57,62.96-38.15,70.24-67.58l0.09-0.36\r\n\t\t\tC380.996,229.681,380.996,188.001,371.996,146.901z M345.656,264.821c-4.86,19.2-29.78,43.07-49.58,47.48\r\n\t\t\tc-25.921,4.929-52.047,7.036-78.147,6.313c-0.519-0.014-1.018,0.187-1.38,0.559c-3.704,3.802-24.303,24.948-24.303,24.948\r\n\t\t\tl-25.85,26.53c-1.89,1.97-5.21,0.63-5.21-2.09v-54.422c0-0.899-0.642-1.663-1.525-1.836c-0.005-0.001-0.01-0.002-0.015-0.003\r\n\t\t\tc-19.8-4.41-44.71-28.28-49.58-47.48c-8.1-37.15-8.1-74.81,0-111.96c4.87-19.2,29.78-43.07,49.58-47.48\r\n\t\t\tc45.27-8.61,91.17-8.61,136.43,0c19.81,4.41,44.72,28.28,49.58,47.48C353.765,190.011,353.765,227.671,345.656,264.821z\" />\r\n\t\t\t<path d=\"M270.937,289.942c-3.044-0.924-5.945-1.545-8.639-2.663\r\n\t\t\tc-27.916-11.582-53.608-26.524-73.959-49.429c-11.573-13.025-20.631-27.73-28.288-43.292c-3.631-7.38-6.691-15.049-9.81-22.668\r\n\t\t\tc-2.844-6.948,1.345-14.126,5.756-19.361c4.139-4.913,9.465-8.673,15.233-11.444c4.502-2.163,8.943-0.916,12.231,2.9\r\n\t\t\tc7.108,8.25,13.637,16.922,18.924,26.485c3.251,5.882,2.359,13.072-3.533,17.075c-1.432,0.973-2.737,2.115-4.071,3.214\r\n\t\t\tc-1.17,0.963-2.271,1.936-3.073,3.24c-1.466,2.386-1.536,5.2-0.592,7.794c7.266,19.968,19.513,35.495,39.611,43.858\r\n\t\t\tc3.216,1.338,6.446,2.896,10.151,2.464c6.205-0.725,8.214-7.531,12.562-11.087c4.25-3.475,9.681-3.521,14.259-0.624\r\n\t\t\tc4.579,2.898,9.018,6.009,13.43,9.153c4.331,3.086,8.643,6.105,12.638,9.623c3.841,3.383,5.164,7.821,3.001,12.412\r\n\t\t\tc-3.96,8.408-9.722,15.403-18.034,19.868C276.387,288.719,273.584,289.127,270.937,289.942\r\n\t\t\tC267.893,289.017,273.584,289.127,270.937,289.942z\" />\r\n\t\t\t<path d=\"M227.942,131.471c36.515,1.023,66.506,25.256,72.933,61.356c1.095,6.151,1.485,12.44,1.972,18.683\r\n\t\t\tc0.205,2.626-1.282,5.121-4.116,5.155c-2.927,0.035-4.244-2.414-4.434-5.039c-0.376-5.196-0.637-10.415-1.353-15.568\r\n\t\t\tc-3.78-27.201-25.47-49.705-52.545-54.534c-4.074-0.727-8.244-0.918-12.371-1.351c-2.609-0.274-6.026-0.432-6.604-3.675\r\n\t\t\tc-0.485-2.719,1.81-4.884,4.399-5.023C226.527,131.436,227.235,131.468,227.942,131.471\r\n\t\t\tC264.457,132.494,227.235,131.468,227.942,131.471z\" />\r\n\t\t\t<path d=\"M283.434,203.407c-0.06,0.456-0.092,1.528-0.359,2.538c-0.969,3.666-6.527,4.125-7.807,0.425\r\n\t\t\tc-0.379-1.098-0.436-2.347-0.438-3.529c-0.013-7.734-1.694-15.46-5.594-22.189c-4.009-6.916-10.134-12.73-17.318-16.248\r\n\t\t\tc-4.344-2.127-9.042-3.449-13.803-4.237c-2.081-0.344-4.184-0.553-6.275-0.844c-2.534-0.352-3.887-1.967-3.767-4.464\r\n\t\t\tc0.112-2.34,1.822-4.023,4.372-3.879c8.38,0.476,16.474,2.287,23.924,6.232c15.15,8.023,23.804,20.687,26.33,37.597\r\n\t\t\tc0.114,0.766,0.298,1.525,0.356,2.294C283.198,199.002,283.288,200.903,283.434,203.407\r\n\t\t\tC283.374,203.863,283.288,200.903,283.434,203.407z\" />\r\n\t\t\t<path d=\"M260.722,202.523c-3.055,0.055-4.69-1.636-5.005-4.437c-0.219-1.953-0.392-3.932-0.858-5.832\r\n\t\t\tc-0.918-3.742-2.907-7.21-6.055-9.503c-1.486-1.083-3.17-1.872-4.934-2.381c-2.241-0.647-4.568-0.469-6.804-1.017\r\n\t\t\tc-2.428-0.595-3.771-2.561-3.389-4.839c0.347-2.073,2.364-3.691,4.629-3.527c14.157,1.022,24.275,8.341,25.719,25.007\r\n\t\t\tc0.102,1.176,0.222,2.419-0.039,3.544C263.539,201.464,262.113,202.429,260.722,202.523\r\n\t\t\tC257.667,202.578,262.113,202.429,260.722,202.523z\" />\r\n\t\t</svg>\r\n\r\n\t</a>\r\n\t<?php endif; ?>\r\n\r\n</div>\r\n\r\n<?php\r\n\t\treturn ob_get_clean();\r\n\t}", "function share($url,$title,$status)\n {\n $this->twitter->tweet($status, $url);\n $this->google->share($url);\n $this->reddit->reddit($url, $title);\n }", "function remove_jetpack_share_button() {\r\n remove_filter( 'the_content', 'sharing_display',19 );\r\n remove_filter( 'the_excerpt', 'sharing_display',19 );\r\n}", "function soc_med_links( $_slug, $_name, $_image ) {\n // IF POST NAME\n if ( $_name !== \"\" ) {\n $_text = $_name . \" at xbank.amsterdam\";\n } else {\n $_text = \"xbank.amsterdam\";\n } \n // IF POST SLUG\n if ( $_slug !== \"\" ) {\n $_link = \"http://xbank.amsterdam/#\" . $_slug; \n } else {\n $_link = \"http://xbank.amsterdam\";\n } \n ?>\n <!-- FACEBOOK -->\n <li>\n <a href=\"\" \n data-mobile_iframe \n class=\"fb-share-button\" \n data-quote=\"<?php echo $_text; ?>\" \n data-href=\"<?php echo $_link; ?>\">\n <img src=\"<?php bloginfo('template_url'); ?>/img/icon_facebook.png\" alt=\"Facebook icon\" />\n </a>\n <!--<a target=\"_blank\" \n href=\"\" \n class=\"facebook_share\" \n data-text=\"<?php echo $_text; ?>\" \n data-img=\"<?php echo $_image; ?>\" \n data-link=\"<?php echo $_link; ?>\">\n <img src=\"<?php bloginfo('template_url'); ?>/img/icon_facebook.png\" alt=\"Facebook icon\" />\n </a>-->\n </li>\n <!-- TWITTER -->\n <li>\n <a class=\"twitter-share-button\" \n target=\"_blank\" \n data-url=\"<?php echo createTwitterUrl ( $_name, $_link )[1]; ?>\" \n href=\"<?php echo createTwitterUrl ( $_name, $_link )[2]; ?>\">\n <img src=\"<?php bloginfo('template_url'); ?>/img/icon_twitter.png\" alt=\"Twitter icon\" />\n </a>\n </li>\n <!-- PINTEREST -->\n <li>\n <a data-pin-do=\"buttonPin\" \n data-pin-description=\"<?php echo $_text; ?>\" \n data-pin-url=\"<?php echo $_link; ?>\" \n data-pin-media=\"<?php echo $_image; ?>\" \n data-pin-custom=\"true\" \n class=\"pinterest\" \n target=\"_blank\" \n href=\"https://www.pinterest.com/pin/create/button/\" >\n <img src=\"<?php bloginfo('template_url'); ?>/img/icon_pinterest.png\" alt=\"Pinterest icon\" />\n </a> \n </li>\n <?php \n}", "public function get_name() {\n\t\treturn parent::get_widget_slug( 'SocialShare' );\n\t}", "function grve_print_portfolio_social( $element_id = 'grve-social-share' ) {\n\n\tglobal $post;\n\t$post_id = $post->ID;\n\n\tif ( grve_portfolio_social_visibility() ) {\n\n\t\t$grve_permalink = esc_url( get_permalink( $post_id ) );\n\t\t$grve_title = esc_attr( get_the_title( $post_id ) );\n\t\t$portfolio_facebook = grve_option( 'portfolio_social', '', 'facebook' );\n\t\t$portfolio_twitter = grve_option( 'portfolio_social', '', 'twitter' );\n\t\t$portfolio_linkedin = grve_option( 'portfolio_social', '', 'linkedin' );\n\t\t$portfolio_pinterest= grve_option( 'portfolio_social', '', 'pinterest' );\n\t\t$portfolio_googleplus= grve_option( 'portfolio_social', '', 'google-plus' );\n\t\t$portfolio_likes = grve_option( 'portfolio_social', '', 'grve-likes' );\n\n?>\n\t\t<div id=\"<?php echo $element_id; ?>\">\n\n\t\t\t<ul>\n\n\t\t\t\t<?php if ( !empty( $portfolio_facebook ) ) { ?>\n\t\t\t\t<li><a href=\"<?php echo $grve_permalink; ?>\" title=\"<?php echo $grve_title; ?>\" class=\"grve-social-share-facebook grve-icon-facebook\"></a></li>\n\t\t\t\t<?php } ?>\n\t\t\t\t<?php if ( !empty( $portfolio_twitter ) ) { ?>\n\t\t\t\t<li><a href=\"<?php echo $grve_permalink; ?>\" title=\"<?php echo $grve_title; ?>\" class=\"grve-social-share-twitter grve-icon-twitter\"></a></li>\n\t\t\t\t<?php } ?>\n\t\t\t\t<?php if ( !empty( $portfolio_linkedin ) ) { ?>\n\t\t\t\t<li><a href=\"<?php echo $grve_permalink; ?>\" title=\"<?php echo $grve_title; ?>\" class=\"grve-social-share-linkedin grve-icon-linkedin\"></a></li>\n\t\t\t\t<?php } ?>\n\t\t\t\t<?php if ( !empty( $portfolio_googleplus ) ) { ?>\n\t\t\t\t<li><a href=\"<?php echo $grve_permalink; ?>\" title=\"<?php echo $grve_title; ?>\" class=\"grve-social-share-googleplus grve-icon-google-plus\"></a></li>\n\t\t\t\t<?php } ?>\n\t\t\t\t<?php if ( !empty( $portfolio_pinterest ) ) { ?>\n\t\t\t\t<li><a href=\"<?php echo $grve_permalink; ?>\" title=\"<?php echo $grve_title; ?>\" data-pin-img=\"<?php grve_print_portfolio_image( 'grve-image-small-square', 'link' ); ?>\" class=\"grve-social-share-pinterest grve-icon-pinterest\"></a></li>\n\t\t\t\t<?php } ?>\n\t\t\t\t<?php if ( !empty( $portfolio_likes ) ) { ?>\n\t\t\t\t<li><a href=\"#\" class=\"grve-like-counter-link grve-icon-heart\" data-post-id=\"<?php echo $post_id; ?>\"></a><span class=\"grve-like-counter\"><?php echo grve_likes( $post_id ); ?></span></li>\n\t\t\t\t<?php } ?>\n\n\t\t\t</ul>\n\n\t\t</div>\n<?php\n\t}\n}", "public function get_title() {\n\t\treturn parent::get_widget_title( 'SocialShare' );\n\t}", "public function shareAction() {\t\n\t\t$this->view->addLayoutVar(\"onglet\", 1);\n\t\t$id_user = $this->_getParam('userId');\n\t\t\n\t\t$user = new Annuaire_Contact($id_user);\n\t\t$societe = new Annuaire_Societe($user->getSocieteId());\n\t\t$uid = Annuaire_User::getCurrentUserId();\n\t\t$share = new Annuaire_Share();\n\t\tif (!$share->allowContact($user->getId())) {\n\t\t\tthrow new Exception (t_('Not your contact'));\n\t\t}\n\n\t\t$this->view->nom = (($user->getNom() == \"\") ? t_(\"(None)\") : $user->getNom());\n\t\t$this->view->prenom = (($user->getPrenom() == \"\") ? t_(\"(None)\") : $user->getPrenom());\n\t\t$this->view->companyname = (($societe->getNom() == \"\") ? t_(\"(None)\") : $societe->getNom());\n\t\t$this->view->id = ($user->getId());\n\t\t$this->view->societeid = (($societe->getUserId() == $uid) ? $societe->getId() : 0);\n\t\t$this->view->admin = (($user->getUserId() == $uid) ? 1 : 0);\n\t\t$this->view->sharedwith = (t_(\"Shared with :\"));\n\t\t$this->view->addshare = (t_(\"Add a share\"));\n\t\t$this->view->sharecontact = (t_(\"Share a contact\"));\n\t\t$this->view->sharesociete = (t_(\"Share a company\"));\n\t\t$this->view->sureDeleteShare = (t_(\"Are you sure you want to delete this share ?\"));\n\t\t$this->view->delete = (t_(\"Delete\"));\n\t\t$this->view->modify = (t_(\"Allow to modify\"));\n\t\t$this->view->yes = (t_(\"Yes\"));\n\t\t$this->view->send = (t_(\"Send\"));\n\t\t$this->view->no = (t_(\"No\"));\n\t\t$this->view->cancel = (t_(\"Cancel\"));\n\t}", "public function getShare($id,$social, $ismobile)\n {\n $url = '';\n $post = Post::find($id);\n if($post == NULL){\n App::abort(404);\n }\n\n // add social point if it is not robot\n if (isset($_SERVER['HTTP_USER_AGENT']) && !preg_match('/bot|crawl|slurp|spider/i', $_SERVER['HTTP_USER_AGENT'])) {\n $post->socialPoint ++;\n $post->save();\n }\n switch ($social){\n case 'twitter' :\n $url = 'https://twitter.com/home?status=';\n $url .= $post['title'] . ' ' . $post->getUrl();\n break;\n case 'facebook' :\n \n if($ismobile == 'true'){\n $url = 'fb-messenger://share/?link=';\n }else\n {\n $url = 'https://www.facebook.com/sharer/sharer.php?u=';\n }\n $url .= $post->getUrl();\n break;\n case 'googlePlus' :\n $url = 'https://plus.google.com/share?url=';\n $url .= $post->getUrl();\n break;\n case 'linkedIn' :\n $url = 'https://www.linkedin.com/shareArticle?mini=true&';\n $url .= 'url='.$post->getUrl().'&title='.$post['title'].'&summary=&source=';\n break; \n }\n return \\Redirect::to($url);\n }", "public function facebook() : string\n {\n $parameters = [];\n\n if (empty($this->title) === false) {\n $parameters['title'] = $this->title;\n }\n\n if (empty($this->url) === false) {\n $parameters['u'] = $this->url;\n }\n\n return $this->createHtmlElement('a', [\n 'target' => '_blank',\n 'rel' => 'noopener',\n 'href' => 'https://www.facebook.com/share.php?'.http_build_query($parameters),\n ], 'Facebook');\n }", "public function social()\n {\n $record = Social::first();\n return view('admin.pages.social', compact('record'));\n }", "function sm_social_sharer_urls() {\n\treturn array(\n\t\t\t'facebook' => 'http://www.facebook.com/sharer.php?u=%1$s&t=%2$s',\n\t\t\t'twitter' => 'https://twitter.com/share?text=%2$s&url=%1$s',\n\t\t\t'linkedin' => 'http://linkedin.com/shareArticle?mini=true&amp;url=%1$s&amp;title=%2$s',\n\t\t\t'reddit' => 'http://reddit.com/submit?url=%1$s&amp;title=%2$s',\n\t\t\t'tumblr' => 'http://www.tumblr.com/share/link?url=%1$s&amp;name=%2$s&amp;description=%3$s',\n\t\t\t'google-plus' => 'https://plus.google.com/share?url=%1$s',\n\t\t\t'pinterest' => 'http://pinterest.com/pin/create/button/?url=%1$s&amp;description=%3$s',\n\t);\n}", "function emc_remove_sharing_buttons() {\r\n\r\n\tremove_filter( 'the_content', 'sharing_display', 19 );\r\n\tremove_filter( 'the_excerpt', 'sharing_display', 19 );\r\n\r\n}", "function frame_share_links($providers = null, $post_id = null)\n{\n // Get the providers\n if ($providers === null)\n $providers = array('facebook', 'google', 'linkedin', 'pinterest', 'reddit', 'twitter');\n else\n $providers = (array) $providers;\n\n $output = '<ul>';\n\n foreach($providers as $provider)\n {\n // $output .= '<li>'..'</li>';\n }\n\n $output .= '</ul>';\n}", "function publisher_shortcode_social_share_get_li( $id = '', $show_title = true, $count_label = 0 ) {\n\n\t\tif ( empty( $id ) ) {\n\t\t\treturn '';\n\t\t}\n\n\t\t$extra_classes = '';\n\t\t$css = '';\n\t\tstatic $initialized;\n\t\tstatic $page_title;\n\t\tstatic $page_permalink;\n\n\t\t// Disable inner cache in Ajax loading\n\t\tif ( bf_is_doing_ajax() ) {\n\n\t\t\tstatic $post_cache;\n\n\t\t\tif ( is_null( $post_cache[ $id ] ) ) {\n\t\t\t\t$initialized = null;\n\t\t\t} else {\n\t\t\t\t$initialized = true;\n\t\t\t}\n\t\t}\n\n\t\twp_reset_postdata(); // fix for after other loops\n\n\t\tif ( is_null( $initialized ) ) {\n\t\t\t$cur_page = bf_social_share_guss_current_page( publisher_get_query() );\n\t\t\t$page_title = esc_attr( $cur_page['page_title'] );\n\t\t\t$page_permalink = urlencode( $cur_page['page_permalink'] );\n\t\t\t$initialized = true;\n\t\t}\n\n\t\t//\n\t\t// Prepare custom links\n\t\t//\n\t\t{\n\t\t\t$custom_links = array();\n\n\t\t\tforeach ( publisher_get_option( 'social_share_custom_links' ) as $link ) {\n\n\t\t\t\tif ( empty( $link['title'] ) || empty( $link['link'] ) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$custom_links[ $link['title'] ] = $link;\n\t\t\t}\n\t\t}\n\n\t\tswitch ( $id ) {\n\n\t\t\tcase 'facebook':\n\t\t\t\t$link = 'https://www.facebook.com/sharer.php?u=' . $page_permalink;\n\t\t\t\t$title = __( 'Facebook', 'publisher' );\n\t\t\t\t$icon = '<i class=\"bf-icon fa fa-facebook\"></i>';\n\t\t\t\tbreak;\n\n\t\t\tcase 'facebook-messenger':\n\t\t\t\t$link = 'https://www.facebook.com/dialog/send?link=' . $page_permalink . '&app_id=521270401588372&redirect_uri=' . $page_permalink;\n\t\t\t\t$title = __( 'Facebook Messenger', 'publisher' );\n\t\t\t\t$icon = '<i class=\"bf-icon bsfi-facebook-messenger\"></i>';\n\t\t\t\tbreak;\n\n\t\t\tcase 'twitter':\n\n\t\t\t\t$by = '';\n\t\t\t\tif ( class_exists( 'Better_Social_Counter' ) ) {\n\t\t\t\t\t$by = Better_Social_Counter::get_option( 'twitter_username' );\n\n\t\t\t\t\tif ( $by === 'BetterSTU' && ! class_exists( 'BS_Demo_Helper' ) ) {\n\t\t\t\t\t\t$by = '';\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( ! empty( $by ) ) {\n\t\t\t\t\t\t$by = ' @' . $by;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$by = '';\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$link = 'https://twitter.com/share?text=' . $page_title . $by . '&url=' . $page_permalink;\n\t\t\t\t$title = __( 'Twitter', 'publisher' );\n\t\t\t\t$icon = '<i class=\"bf-icon fa fa-twitter\"></i>';\n\t\t\t\tbreak;\n\n\t\t\tcase 'google_plus':\n\t\t\t\t$link = 'https://plus.google.com/share?url=' . $page_permalink;\n\t\t\t\t$title = __( 'Google+', 'publisher' );\n\t\t\t\t$icon = '<i class=\"bf-icon fa fa-google\"></i>';\n\t\t\t\tbreak;\n\n\t\t\tcase 'pinterest':\n\t\t\t\tif ( $_img_src = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ) ) {\n\n\t\t\t\t\t$_img_src = array_shift( $_img_src );\n\t\t\t\t}\n\n\t\t\t\t$link = 'https://pinterest.com/pin/create/button/?url=' . $page_permalink . '&media=' . $_img_src . '&description=' . $page_title;\n\t\t\t\t$title = __( 'Pinterest', 'publisher' );\n\t\t\t\t$icon = '<i class=\"bf-icon fa fa-pinterest\"></i>';\n\t\t\t\tbreak;\n\n\t\t\tcase 'linkedin':\n\t\t\t\t$link = 'https://www.linkedin.com/shareArticle?mini=true&url=' . $page_permalink . '&title=' . $page_title;\n\t\t\t\t$title = __( 'Linkedin', 'publisher' );\n\t\t\t\t$icon = '<i class=\"bf-icon fa fa-linkedin\"></i>';\n\t\t\t\tbreak;\n\n\t\t\tcase 'tumblr':\n\t\t\t\t$link = 'https://www.tumblr.com/share/link?url=' . $page_permalink . '&name=' . $page_title;\n\t\t\t\t$title = __( 'Tumblr', 'publisher' );\n\t\t\t\t$icon = '<i class=\"bf-icon fa fa-tumblr\"></i>';\n\t\t\t\tbreak;\n\n\t\t\tcase 'email':\n\t\t\t\t$link = \"mailto:?subject=\" . $page_title . \"&body=\" . $page_permalink;\n\t\t\t\t$title = publisher_translation_get( 'widget_email' );\n\t\t\t\t$icon = '<i class=\"bf-icon fa fa-envelope-open\"></i>';\n\t\t\t\tbreak;\n\n\t\t\tcase 'telegram':\n\t\t\t\t$link = 'https://telegram.me/share/url?url=' . $page_permalink . '&text=' . $page_title;\n\t\t\t\t$title = __( 'Telegram', 'publisher' );\n\t\t\t\t$icon = '<i class=\"bf-icon fa fa-send\"></i>';\n\t\t\t\tbreak;\n\n\t\t\tcase 'whatsapp':\n\t\t\t\t$link = 'whatsapp://send?text=' . $page_title . ' %0A%0A ' . $page_permalink;\n\t\t\t\t$title = __( 'WhatsApp', 'publisher' );\n\t\t\t\t$icon = '<i class=\"bf-icon fa fa-whatsapp\"></i>';\n\t\t\t\tbreak;\n\n\t\t\tcase 'digg':\n\t\t\t\t$link = 'https://www.digg.com/submit?url=' . $page_permalink;\n\t\t\t\t$title = __( 'Digg', 'publisher' );\n\t\t\t\t$icon = '<i class=\"bf-icon fa fa-digg\"></i>';\n\t\t\t\tbreak;\n\n\t\t\tcase 'reddit':\n\t\t\t\t$link = 'https://reddit.com/submit?url=' . $page_permalink . '&title=' . $page_title;\n\t\t\t\t$title = __( 'ReddIt', 'publisher' );\n\t\t\t\t$icon = '<i class=\"bf-icon fa fa-reddit-alien\"></i>';\n\t\t\t\tbreak;\n\n\t\t\tcase 'stumbleupon':\n\t\t\t\t$link = 'https://www.stumbleupon.com/submit?url=' . $page_permalink . '&title=' . $page_title;\n\t\t\t\t$title = __( 'StumbleUpon', 'publisher' );\n\t\t\t\t$icon = '<i class=\"bf-icon fa fa-stumbleupon\"></i>';\n\t\t\t\tbreak;\n\n\t\t\tcase 'vk':\n\t\t\t\t$link = 'https://vkontakte.ru/share.php?url=' . $page_permalink;\n\t\t\t\t$title = __( 'VK', 'publisher' );\n\t\t\t\t$icon = '<i class=\"bf-icon fa fa-vk\"></i>';\n\t\t\t\tbreak;\n\n\t\t\tcase 'line':\n\t\t\t\t$link = 'https://line.me/R/msg/text/?' . $page_title . '%0D%0A' . $page_permalink;\n\t\t\t\t$title = __( 'LINE', 'publisher' );\n\t\t\t\t$icon = '<i class=\"bf-icon bsfi-line\"></i>';\n\t\t\t\tbreak;\n\n\t\t\tcase 'bbm':\n\t\t\t\t$link = 'bbmi://api/share?message=Hello&userCustomMessage=' . $page_title . '%0D%0A' . $page_permalink;\n\t\t\t\t$title = __( 'BlackBerry', 'publisher' );\n\t\t\t\t$icon = '<i class=\"bf-icon bsfi-bbm\"></i>';\n\t\t\t\tbreak;\n\n\t\t\tcase 'viber':\n\t\t\t\t$link = 'viber://forward?text=' . $page_title . ' ' . $page_permalink;\n\t\t\t\t$title = __( 'Viber', 'publisher' );\n\t\t\t\t$icon = '<i class=\"bf-icon bsfi-viber\"></i>';\n\t\t\t\tbreak;\n\n\t\t\tcase 'print':\n\t\t\t\t$link = '#';\n\t\t\t\t$title = publisher_translation_get( 'print' );\n\t\t\t\t$icon = '<i class=\"bf-icon fa fa-print\"></i>';\n\t\t\t\tbreak;\n\n\t\t\tcase 'ok-ru':\n\t\t\t\t$_img_src = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' );\n\t\t\t\tif ( ! empty( $_img_src[0] ) ) {\n\t\t\t\t\t$_img_src = $_img_src[0];\n\t\t\t\t}\n\n\t\t\t\t$link = \"https://connect.ok.ru/offer?url=$page_permalink&title=$page_title\";\n\n\t\t\t\tif ( $_img_src ) {\n\t\t\t\t\t$link .= \"&imageUrl=$_img_src\";\n\t\t\t\t}\n\n\t\t\t\t$title = __( 'OK.ru', 'publisher' );\n\t\t\t\t$icon = '<i class=\"bf-icon bsfi-ok-ru\"></i>';\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\n\t\t\t\tif ( isset( $custom_links[ $id ] ) ) {\n\n\t\t\t\t\t$css = '';\n\t\t\t\t\t$class = 'bs-custom-link-' . mt_rand( 10, 1000 );\n\t\t\t\t\t$extra_classes .= ' bs-custom-link ' . $class;\n\t\t\t\t\t$link = $custom_links[ $id ]['link'];\n\t\t\t\t\t$title = $custom_links[ $id ]['title'];\n\t\t\t\t\t$icon = bf_get_icon_tag( $custom_links[ $id ]['icon'] );\n\t\t\t\t\t$link = str_replace(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'{{title}}',\n\t\t\t\t\t\t\t'{{link}}',\n\t\t\t\t\t\t\t'{{url}}',\n\t\t\t\t\t\t),\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t$page_title,\n\t\t\t\t\t\t\t$page_permalink,\n\t\t\t\t\t\t\t$page_permalink,\n\t\t\t\t\t\t),\n\t\t\t\t\t\t$link\n\t\t\t\t\t);\n\n\t\t\t\t\tif ( ! empty( $custom_links[ $id ]['color'] ) ) {\n\t\t\t\t\t\t$css .= \".single-post-share .social-item.{$class} a {color: {$custom_links[ $id ]['color']}}\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( ! empty( $custom_links[ $id ]['bg_color'] ) ) {\n\t\t\t\t\t\t$css .= \"\n\t\t\t\t\t\t.single-post-share .social-item.{$class} a {background-color: {$custom_links[ $id ]['bg_color']}}\n\t\t\t\t\t\t.post-share.style-9 .social-item.{$class} a,\n\t\t\t\t\t\t.post-share.style-10 .social-item.{$class} a,\n\t\t\t\t\t\t.post-share.style-11 .social-item.{$class} a {color: {$custom_links[ $id ]['bg_color']}}\n\t\t\t\t\t\t.post-share.style-10 .social-item.{$class} .icon,\n\t\t\t\t\t\t.post-share.style-11 .social-item.{$class} .icon {background-color: {$custom_links[ $id ]['bg_color']};border-color: {$custom_links[ $id ]['bg_color']}}\n\t\t\t\t\t\t\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( ! empty( $custom_links[ $id ]['hover_color'] ) ) {\n\t\t\t\t\t\t$css .= \".single-post-share .social-item.{$class} a:hover{color: {$custom_links[ $id ]['hover_color']}}\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( ! empty( $custom_links[ $id ]['bg_hover_color'] ) ) {\n\t\t\t\t\t\t$css .= \"\n\t\t\t\t\t\t.single-post-share .social-item.{$class} a:hover {background-color: {$custom_links[ $id ]['bg_hover_color']}}\n\t\t\t\t\t\t.post-share.style-9 .social-item.{$class} a:hover,\n\t\t\t\t\t\t.post-share.style-10 .social-item.{$class} a:hover,\n\t\t\t\t\t\t.post-share.style-11 .social-item.{$class} a:hover {color: {$custom_links[ $id ]['bg_hover_color']}}\n\t\t\t\t\t\t.post-share.style-10 .social-item.{$class} a:hover .icon,\n\t\t\t\t\t\t.post-share.style-11 .social-item.{$class} a:hover .icon {background-color: {$custom_links[ $id ]['bg_hover_color']};border-color: {$custom_links[ $id ]['bg_hover_color']}}\n\t\t\t\t\t\t\";\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( ! empty( $css ) ) {\n\t\t\t\t\t\tbf_add_css( $css );\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\treturn '';\n\t\t\t\t}\n\t\t}\n\n\t\t$extra_classes .= $count_label ? ' has-count' : '';\n\t\t$extra_classes .= $show_title ? ' has-title' : '';\n\t\t$output = '<span class=\"social-item ' . esc_attr( $id ) . $extra_classes . '\"><a href=\"' . $link . '\" target=\"_blank\" rel=\"nofollow noreferrer\" class=\"bs-button-el\" ' . ( $id !== 'print' ? 'onclick=\"window.open(this.href, \\'share-' . $id . '\\',\\'left=50,top=50,width=600,height=320,toolbar=0\\'); return false;\"' : '' ) . '>';\n\n\t\t$output .= '<span class=\"icon\">' . $icon . '</span>';\n\n\t\tif ( $show_title ) {\n\t\t\t$output .= '<span class=\"item-title\">' . wp_kses( $title, bf_trans_allowed_html() ) . '</span>';\n\t\t}\n\n\t\tif ( $count_label ) {\n\t\t\t$output .= sprintf( '<span class=\"number\">%s</span>', bf_human_number_format( $count_label ) );\n\t\t}\n\n\t\t$output .= '</a></span>';\n\n\t\treturn $output;\n\n\t}", "public function getTwitterShareUrl() {\n return 'https://twitter.com/share?url='.$this->socialData['url']\n .'&text='.$this->socialData['title']\n .(($this->socialData['via'])?'&via='.$this->socialData['via']:'')\n .(($this->socialData['hashtags'])?'&hashtags='.$this->socialData['hashtags']:'');\n }", "public function getViewLink() {\n return getConfig(\"public_url\").\"?\".$this->shareID;\n }", "public function formatShare() {\n\t\t$template = file_get_contents(__DIR__.'/../templates/share.mustache');\n\t\t$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? \"https://\" : \"http://\";\n\t\treturn $this->lemmy->render($template, ['location' => $protocol.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']]);\n\t}", "function sp_author_box($avatar = true , $social = true ){\n\tif( $avatar ) : ?>\n\t<div class=\"author-avatar\">\n\t\t<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'MFW_author_bio_avatar_size', 75 ) ); ?>\n\t</div><!-- #author-avatar -->\n\t<?php endif; ?>\n\t\t<div class=\"author-description\">\n\t\t\t<?php the_author_meta( 'description' ); ?>\n\t\t</div><!-- #author-description -->\n\t<?php if( $social ) :\t?>\t\n\t\t<div class=\"author-social\">\n\t\t\t<?php if ( get_the_author_meta( 'url' ) ) : ?>\n\t\t\t<a class=\"ttip\" href=\"<?php the_author_meta( 'url' ); ?>\" title=\"<?php the_author_meta( 'display_name' ); ?><?php _e( \" 's site\", 'sptheme' ); ?>\"><img src=\"<?php echo get_template_directory_uri(); ?>/images/socialicons/site.png\" alt=\"\" /></a>\n\t\t\t<?php endif ?>\t\n\t\t\t<?php if ( get_the_author_meta( 'twitter' ) ) : ?>\n\t\t\t<a class=\"ttip\" href=\"http://twitter.com/<?php the_author_meta( 'twitter' ); ?>\" title=\"<?php the_author_meta( 'display_name' ); ?><?php _e( ' on Twitter', 'sptheme' ); ?>\"><img src=\"<?php echo get_template_directory_uri(); ?>/images/socialicons/twitter.png\" alt=\"\" /></a>\n\t\t\t<?php endif ?>\t\n\t\t\t<?php if ( get_the_author_meta( 'facebook' ) ) : ?>\n\t\t\t<a class=\"ttip\" href=\"<?php the_author_meta( 'facebook' ); ?>\" title=\"<?php the_author_meta( 'display_name' ); ?> <?php _e( ' on Facebook', 'sptheme' ); ?>\"><img src=\"<?php echo get_template_directory_uri(); ?>/images/socialicons/facebook.png\" alt=\"\" /></a>\n\t\t\t<?php endif ?>\n\t\t\t<?php if ( get_the_author_meta( 'google' ) ) : ?>\n\t\t\t<a class=\"ttip\" href=\"<?php the_author_meta( 'google' ); ?>\" title=\"<?php the_author_meta( 'display_name' ); ?> <?php _e( ' on Google+', 'sptheme' ); ?>\"><img src=\"<?php echo get_template_directory_uri(); ?>/images/socialicons/google_plus.png\" alt=\"\" /></a>\n\t\t\t<?php endif ?>\t\n\t\t\t<?php if ( get_the_author_meta( 'linkedin' ) ) : ?>\n\t\t\t<a class=\"ttip\" href=\"<?php the_author_meta( 'linkedin' ); ?>\" title=\"<?php the_author_meta( 'display_name' ); ?> <?php _e( ' on Linkedin', 'sptheme' ); ?>\"><img src=\"<?php echo get_template_directory_uri(); ?>/images/socialicons/linkedin.png\" alt=\"\" /></a>\n\t\t\t<?php endif ?>\t\t\t\t\n\t\t\t<?php if ( get_the_author_meta( 'flickr' ) ) : ?>\n\t\t\t<a class=\"ttip\" href=\"<?php the_author_meta( 'flickr' ); ?>\" title=\"<?php the_author_meta( 'display_name' ); ?><?php _e( ' on Flickr', 'sptheme' ); ?>\"><img src=\"<?php echo get_template_directory_uri(); ?>/images/socialicons/flickr.png\" alt=\"\" /></a>\n\t\t\t<?php endif ?>\t\n\t\t\t<?php if ( get_the_author_meta( 'youtube' ) ) : ?>\n\t\t\t<a class=\"ttip\" href=\"<?php the_author_meta( 'youtube' ); ?>\" title=\"<?php the_author_meta( 'display_name' ); ?><?php _e( ' on YouTube', 'sptheme' ); ?>\"><img src=\"<?php echo get_template_directory_uri(); ?>/images/socialicons/youtube.png\" alt=\"\" /></a>\n\t\t\t<?php endif ?>\n\t\t\t<?php if ( get_the_author_meta( 'pinterest' ) ) : ?>\n\t\t\t<a class=\"ttip\" href=\"<?php the_author_meta( 'pinterest' ); ?>\" title=\"<?php the_author_meta( 'display_name' ); ?><?php _e( ' on Pinterest', 'sptheme' ); ?>\"><img src=\"<?php echo get_template_directory_uri(); ?>/images/socialicons/pinterest.png\" alt=\"\" /></a>\n\t\t\t<?php endif ?>\n\n\t\t</div>\n\t<?php endif; ?>\n\t<div class=\"clear\"></div>\n\t<?php\n}", "function section_like() {\r\n\t\tprint \"<ul id='admin-section-like-wrap'>\";\r\n\t\tprint \"<li><a href='http://onemanonelaptop.com/docs/\" . $this->slug . \"/'>Link to it so others can find out about it.</a></li>\";\r\n\t\tprint \"<li><a href='http://wordpress.org/extend/plugins/\" . $this->slug . \"/'>Give it a 5 star rating on WordPress.org.</a></li>\";\r\n\t\tprint \"<li><a href='http://www.facebook.com/sharer.php?u=\" . urlencode(\"http://wordpress.org/extend/plugins/\" . $this->slug . \"/\") . \"&t=\" . urlencode($this->options_page_name) . \"'>Share it on Facebook</a></li>\";\r\n\t\tprint \"</ul>\"; \r\n\t}", "function the_champ_social_sharing_page(){\r\n\t// social sharing options\r\n\tglobal $theChampSharingOptions, $theChampLoginOptions, $theChampIsBpActive;\r\n\tif(!isset($theChampSharingOptions['horizontal_sharing_size'])){\r\n\t\t$theChampSharingOptions['horizontal_sharing_size'] = 30;\r\n\t}\r\n\tif(!isset($theChampSharingOptions['horizontal_sharing_shape'])){\r\n\t\t$theChampSharingOptions['horizontal_sharing_shape'] = 'round';\r\n\t}\r\n\tif(!isset($theChampSharingOptions['vertical_sharing_size'])){\r\n\t\t$theChampSharingOptions['vertical_sharing_size'] = 35;\r\n\t}\r\n\tif(!isset($theChampSharingOptions['vertical_sharing_shape'])){\r\n\t\t$theChampSharingOptions['vertical_sharing_shape'] = 'square';\r\n\t}\r\n\t// message on saving options\r\n\techo the_champ_settings_saved_notification();\r\n\trequire 'admin/social_sharing.php';\r\n}", "function include_share_box() {\n if ( is_single() )\n require(CHILD_DIR.'/sharebar.php');\n}", "public function widget( $args, $instance ) { \n\t\t// return if sharing is disabled\n\t\tif(!the_champ_social_sharing_enabled() || !the_champ_horizontal_sharing_enabled()){\n\t\t\treturn;\n\t\t}\n\t\textract( $args );\n\t\tif($instance['hide_for_logged_in']==1 && is_user_logged_in()) return;\n\t\t\n\t\tglobal $theChampSharingOptions, $post;\n\t\tif(NULL === $post){\n\t\t\t$postId = 0;\n\t\t}else{\n\t\t\t$postId = $post->ID;\n\t\t}\n\t\t$customUrl = apply_filters('heateor_ss_custom_share_url', '', $post);\n\t\tif($customUrl){\n\t\t\t$sharingUrl = $customUrl;\n\t\t\t$postId = 0;\n\t\t}elseif(isset($instance['target_url'])){\n\t\t\tif($instance['target_url'] == 'default'){\n\t\t\t\t$sharingUrl = html_entity_decode(esc_url(the_champ_get_http().$_SERVER[\"HTTP_HOST\"] . $_SERVER[\"REQUEST_URI\"]));\n\t\t\t\tif(is_home()){\n\t\t\t\t\t$sharingUrl = esc_url(home_url());\n\t\t\t\t\t$postId = 0;\n\t\t\t\t}elseif(!is_singular()){\n\t\t\t\t\t$sharingUrl = html_entity_decode(esc_url(the_champ_get_http().$_SERVER[\"HTTP_HOST\"] . $_SERVER[\"REQUEST_URI\"]));\n\t\t\t\t\t$postId = 0;\n\t\t\t\t}elseif(isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING']){\n\t\t\t\t\t$sharingUrl = html_entity_decode(esc_url(the_champ_get_http().$_SERVER[\"HTTP_HOST\"] . $_SERVER[\"REQUEST_URI\"]));\n\t\t\t\t}elseif(get_permalink($post-> ID)){\n\t\t\t\t\t$sharingUrl = get_permalink($post->ID);\n\t\t\t\t}\n\t\t\t}elseif($instance['target_url'] == 'homepage'){\n\t\t\t\t$sharingUrl = esc_url(home_url());\n\t\t\t\t$postId = 0;\n\t\t\t}elseif($instance['target_url'] == 'custom'){\n\t\t\t\t$sharingUrl = isset($instance['target_url_custom']) ? trim($instance['target_url_custom']) : get_permalink($post->ID);\n\t\t\t\t$postId = 0;\n\t\t\t}\n\t\t}else{\n\t\t\t$sharingUrl = get_permalink($post->ID);\n\t\t}\n\t\t$shareCountUrl = $sharingUrl;\n\t\tif(isset($instance['target_url']) && $instance['target_url'] == 'default' && is_singular()){\n\t\t\t$shareCountUrl = get_permalink($post->ID);\n\t\t}\n\t\t$customPostUrl = heateor_ss_apply_target_share_url_filter($sharingUrl, 'horizontal', !is_singular() ? true : false);\n\n\t\tif($customPostUrl != $sharingUrl){\n\t\t\t$sharingUrl = $customPostUrl;\n\t\t\t$shareCountUrl = $sharingUrl;\n\t\t}\n\n\t\t$shareCountTransientId = heateor_ss_get_share_count_transient_id($sharingUrl);\n\t\t$cachedShareCount = heateor_ss_get_cached_share_count($shareCountTransientId);\n\n\t\techo \"<div class='the_champ_sharing_container the_champ_horizontal_sharing' \" . (the_champ_is_amp_page() ? '' : 'super-socializer-data-href=\"' . (isset($shareCountUrl) && $shareCountUrl ? $shareCountUrl : $sharingUrl) . '\"') . ($cachedShareCount === false || the_champ_is_amp_page() ? \"\" : \"super-socializer-no-counts='1' \") .\">\";\n\t\t\n\t\techo $before_widget;\n\t\t\n\t\tif( !empty( $instance['title'] ) ){ \n\t\t\t$title = apply_filters( 'widget_title', $instance[ 'title' ] ); \n\t\t\techo $before_title . $title . $after_title;\n\t\t}\n\n\t\tif( !empty( $instance['before_widget_content'] ) ){ \n\t\t\techo '<div>' . $instance['before_widget_content'] . '</div>'; \n\t\t}\n\t\tif(isset($theChampSharingOptions['use_shortlinks']) && function_exists('wp_get_shortlink')){\n\t\t\t$sharingUrl = wp_get_shortlink();\n\t\t\t// if bit.ly integration enabled, generate bit.ly short url\n\t\t}elseif(isset($theChampSharingOptions['bitly_enable']) && isset($theChampSharingOptions['bitly_access_token']) && $theChampSharingOptions['bitly_access_token'] != ''){\n\t\t\t$shortUrl = the_champ_generate_sharing_bitly_url($sharingUrl, $postId);\n\t\t\tif($shortUrl){\n\t\t\t\t$sharingUrl = $shortUrl;\n\t\t\t}\n\t\t}\n\t\techo the_champ_prepare_sharing_html($sharingUrl, $shareCountUrl, 'horizontal', isset($instance['show_counts']), isset($instance['total_shares']), $shareCountTransientId, !is_singular() ? true : false);\n\n\t\tif( !empty( $instance['after_widget_content'] ) ){ \n\t\t\techo '<div>' . $instance['after_widget_content'] . '</div>'; \n\t\t}\n\t\t\n\t\techo '</div>';\n\t\tif((isset($instance['show_counts']) || isset($instance['total_shares'])) && $cachedShareCount == false){\n\t\t\techo '<script>theChampLoadEvent(\n\t\tfunction(){\n\t\t\t// sharing counts\n\t\t\ttheChampCallAjax(function(){\n\t\t\t\ttheChampGetSharingCounts();\n\t\t\t});\n\t\t}\n\t);</script>';\n\t\t}\n\t\techo $after_widget;\n\t}", "function getDisplay() {\n\t\t$content = \"<h3>\" . $this->widgetTitle . \"</h3>\";\n\n\t\tif (!empty($this->facebookUrl) && \n\t\t\ttrim($this->facebookUrl) !== '') {\n\t\t\t$content .= '<span class=\"social-pages-icon social-page-facebook\"><a href=\"' . $this->facebookUrl . '\" ><i class=\"fa fa-facebook\"></i></a></span>';\n\t\t}\n\t\tif (!empty($this->twitterUrl) && \n\t\t\t\ttrim($this->twitterUrl) !== '') {\n\t\t\t$content .= '<span class=\"social-pages-icon social-page-twitter\"><a href=\"' . $this->twitterUrl . '\" ><i class=\"fa fa-twitter\"></i></a></span>';\n\t\t}\n\t\tif (!empty($this->googleplusUrl) && \n\t\t\ttrim($this->googleplusUrl) !== '') {\n\t\t\t$content .= '<span class=\"social-pages-icon social-page-google\"><a href=\"' . $this->googleplusUrl . '\" ><i class=\"fa fa-google\"></i></a></span>';\n\t\t}\n\n\t\treturn $content;\n\t}", "public function display_header() {\n\t\tif ( $this->smart ) {\n?>\n<script type=\"text/javascript\" src=\"//vk.com/js/api/share.js?9\" charset=\"windows-1251\"></script>\n<style type=\"text/css\">\n\t.share-vkcom tr td {\n\t\tpadding: 0 !important;\n\t}\n</style>\n<?php\n\t\t} else {\n?>\n<style type=\"text/css\">\n\t.sd-social-icon-text li.share-vkcom a.sd-button > span {\n\t\tbackground: url('<?php echo plugins_url( 'vk.png', __FILE__ ); ?>') no-repeat;\n\t\tpadding-left: 20px;\n\t}\n\n\t.sd-social-icon .sd-content ul li[class*='share-'].share-vkcom a.sd-button {\n\t\tbackground: #2B587A url('<?php echo plugins_url( 'vk-white.png', __FILE__ ); ?>') no-repeat;\n\t\tcolor: #fff !important;\n\t\tpadding: 16px;\n\t\ttop: 12px;\n\t}\n</style>\n<?php\n\t\t}\n\t}", "public function share($pingid)\n\t{\n\t\t$original = db()->table('ping')\n\t\t\t->get(is_numeric($pingid)? '_id' : 'guid', $pingid)\n\t\t\t->where('deleted', null)\n\t\t\t->first(true);\n\t\t\n\t\tif (!$this->user) {\n\t\t\tthrow new PublicException('Log in required', 403);\n\t\t}\n\t\tif ($original->target) {\n\t\t\tthrow new PublicException('Ping cannot be shared', 403);\n\t\t}\n\t\t\n\t\t$src = AuthorModel::get(db()->table('user')->get('_id', $this->user->id)->fetch());\n\t\t\n\t\t$shared = db()->table('ping')->newRecord();\n\t\t$shared->_id = null;\n\t\t$shared->src = $src;\n\t\t$shared->target = null;\n\t\t$shared->content = $original->content;\n\t\t$shared->url = $original->url;\n\t\t$shared->media = $original->media;\n\t\t$shared->explicit= $original->explicit;\n\t\t$shared->deleted = $original->deleted;\n\t\t$shared->created = time();\n\t\t$shared->irt = $original->irt;\n\t\t$shared->share = $original;\n\t\t\n\t\t$this->core->feed->push->do(function ($notification) {\n\t\t\t$notification->store();\n\t\t}, $shared);\n\t\t\n\t\t$this->view->set('shared', $shared);\n\t}", "function anva_social_icons() {\n\t$class = 'normal';\n\t$size = 24;\n\tprintf(\n\t\t'<ul class=\"social-media social-style-%2$s social-icon-%3$s\">%1$s</ul>',\n\t\tanva_social_media(),\n\t\tapply_filters( 'anva_social_media_style', $class ),\n\t\tapply_filters( 'anva_social_media_size', $size )\n\t);\n}", "public static function get_social_share_js( $attr, $id ) {\n\t\t\t$base_selector = ( isset( $attr['classMigrate'] ) && $attr['classMigrate'] ) ? '.uagb-block-' : '#uagb-social-share-';\n\t\t\t$selector = $base_selector . $id;\n\t\t\tglobal $post;\n\t\t\t// Get the featured image.\n\t\t\tif ( has_post_thumbnail() ) {\n\t\t\t\t$thumbnail_id = get_post_thumbnail_id( $post->ID );\n\t\t\t\t$thumbnail = $thumbnail_id ? current( wp_get_attachment_image_src( $thumbnail_id, 'large', true ) ) : '';\n\t\t\t} else {\n\t\t\t\t$thumbnail = null;\n\t\t\t}\n\t\t\tob_start();\n\t\t\t?>\n\t\t\tvar ssLinks = document.querySelectorAll( '<?php echo esc_attr( $selector ); ?>' );\n\t\t\tfor ( var j = 0; j < ssLinks.length; j++ ) {\n\t\t\t\tvar ssLink = ssLinks[j].querySelectorAll( \".uagb-ss__link\" );\n\t\t\t\tfor ( var i = 0; i < ssLink.length; i++ ) {\n\t\t\t\t\tssLink[i].addEventListener( \"click\", function() {\n\t\t\t\t\t\tvar social_url = this.dataset.href;\n\t\t\t\t\t\tvar target = \"\";\n\t\t\t\t\t\tif( social_url == \"mailto:?body=\" ) {\n\t\t\t\t\t\t\ttarget = \"_self\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvar request_url =\"\";\n\t\t\t\t\t\tif( social_url.indexOf(\"/pin/create/link/?url=\") !== -1) {\n\t\t\t\t\t\t\trequest_url = social_url + window.location.href + \"&media=\" + '<?php echo esc_url( $thumbnail ); ?>';\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\trequest_url = social_url + window.location.href;\n\t\t\t\t\t\t}\n\t\t\t\t\t\twindow.open( request_url, target );\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t\t<?php\n\t\t\treturn ob_get_clean();\n\t\t}", "function display_facebook_og(){\n global $post;\n $img_array=get_field('design_image');\n //echo '<meta property=\"og:url\" content=\"'.get_permalink($post->ID).'\"/>';\n echo '<meta property=\"og:image\" content=\"'.$img_array[\"sizes\"][\"medium\"].'\"/>';\n}", "function register_block_core_social_link()\n {\n }", "function theme_author_box_layout( $archived = false ) {\n\t$add_class = '';\n\t$image_size = 100;\n\t$author_title_open = '<h4>About <span class=\"entry-author-name\">';\n\t$author_title_close = '</span></h4>';\n\n\tif( $archived ) {\n\t\t$add_class = '-archive';\n\t\t$image_size = 150;\n\t\t$author_title_open = '<h1 id=\"archive-title\">';\n\t\t$author_title_close = '</h1>';\n\t}\n\n\t$authinfo = '<div class=\"author-box'.$add_class.'\"><div class=\"author-wrap\">';\n\t$authinfo .= get_avatar(get_the_author_id() , $image_size);\n\t$authinfo .= $author_title_open . get_the_author_meta('display_name') . $author_title_close;\n\n\tif( !$archived ) {\n\t\t$authinfo .= '<p>' . get_the_author_meta('description') . '</p></div>';\n\t}\n\n\t$facebook = get_the_author_meta('facebook');\n\t$twitter = get_the_author_meta('twitter');\n\t$googleplus = get_the_author_meta('googleplus');\n\t$website = get_the_author_meta('user_url');\n\n\t$flength = strlen($facebook);\n\t$tlength = strlen($twitter);\n\t$glength = strlen($googleplus);\n\t$wlength = strlen($website);\n\n\t$authsocial = '<div class=\"author-box-networks\"> <ul class=\"author-networks\">';\n\tif ($flength > 1) {\n\t\t$authsocial .= '<li><a class=\"author-facebook\" href=\"' . $facebook . '\" target=\"_blank\" rel=\"nofollow\" title=\"' . get_the_author_meta('display_name') . ' on Facebook\">Facebook</a></li>';\n\t}\n\n\tif ($tlength > 1) {\n\t\t$authsocial .= '<li><a class=\"author-twitter\" href=\"http://twitter.com/' . $twitter . '\" target=\"_blank\" rel=\"nofollow\" title=\"' . get_the_author_meta('display_name') . ' on Twitter\">Twitter</a></li>';\n\t}\n\n\tif ($glength > 1) {\n\t\t$authsocial .='<li><a class=\"author-gplus\" href=\"' . $googleplus . '\" rel=\"me\" target=\"_blank\" title=\"' . get_the_author_meta('display_name') . ' on Google+\">Google+</a></li>';\n\t}\n\n\tif ($wlength > 1) {\n\t\t$authsocial .= '<li><a class=\"author-website\" href=\"' . $website . '\" target=\"_blank\" rel=\"nofollow\" title=\"' . get_the_author_meta('display_name') . ' Official Website\">Website</a></li>';\n\t}\n\n\t$authsocial .= '</ul>';\n\t$authsocial .= '</div>';\n\n\t$authinfo .= $authsocial; // add social networks below description and avatar\n\t$authinfo .= '</div>';\n\n\techo $authinfo;\n}", "function insert_share_product() {\n\t?>\n\t<script type=\"text/javascript\" src=\"//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-57e482b2e67c850b\"></script>\n\t<div class=\"addthis_inline_share_toolbox_4524\"></div>\n\t<?php\n}", "public function widget( $args, $instance ) {\n\n\t\t\t$title = isset( $instance['title'] ) ? $instance['title'] : esc_html__( 'Social Media.', 'zthemename' );\n\t\t\n\t\t\t/** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */\n\t\t\t$title = apply_filters( 'widget_title', $title, $instance, $this->id_base );\n\n\t\t\techo $args['before_widget'];\n\n\t\t\tif ( $title ) {\n\t\t\t\techo $args['before_title'] . $title . $args['after_title'];\n\t\t\t}\n\n\t\t\t// bail if no links found.\n\t\t\tif ( $this->socials && ( $this->socials['facebook'] || $this->socials['instagram'] || $this->socials['twitter'] || $this->socials['youtube'] )) {\n\t\t\t\t\n\t\t\t\techo '<div>';\n\t\t\t\t\n\t\t\t\t$this->socials['facebook'] && \n\t\t\t\t\tprintf(\n\t\t\t\t\t\t'<div><a href=\"%1$s\" target=\"_blank\"><i class=\"fab fa-facebook-f fa-fw\" data-content=\"f39e\"></i>%2$s</a></div>',\n\t\t\t\t\t\tesc_url( $this->socials['facebook'] ),\n\t\t\t\t\t\tesc_html__( 'Like Us On Facebook', 'zthemename' )\n\t\t\t\t\t);\n\t\t\t\n\t\t\t\t$this->socials['instagram'] && \n\t\t\t\t\tprintf(\n\t\t\t\t\t\t'<div><a href=\"%1$s\" target=\"_blank\"><i class=\"fab fa-instagram fa-fw\" data-content=\"f16d\"></i>%2$s</a></div>',\n\t\t\t\t\t\tesc_url( $this->socials['instagram'] ),\n\t\t\t\t\t\tesc_html__( 'Follow Us On Instagram', 'zthemename' )\n\t\t\t\t\t);\n\t\t\t\t\n\t\t\t\t$this->socials['twitter'] && \n\t\t\t\t\tprintf(\n\t\t\t\t\t\t'<div><a href=\"%1$s\" target=\"_blank\"><i class=\"fab fa-twitter fa-fw\" data-content=\"f099\"></i>%2$s</a></div>',\n\t\t\t\t\t\tesc_url( $this->socials['twitter'] ),\n\t\t\t\t\t\tesc_html__( 'Follow Us On Twitter', 'zthemename' )\n\t\t\t\t\t);\n\n\t\t\t\t$this->socials['youtube'] &&\n\t\t\t\t\tprintf(\n\t\t\t\t\t\t'<div><a href=\"%1$s\" target=\"_blank\"><i class=\"fab fa-youtube fa-fw\" data-content=\"f167\"></i>%2$s</a></div>',\n\t\t\t\t\t\tesc_url( $this->socials['youtube'] ),\n\t\t\t\t\t\tesc_html__( 'Our Youtube Channel', 'zthemename' )\n\t\t\t\t);\t\t\t\n\n\t\t\t\techo '</div>';\n\t\t\t}\n\t\t\techo $args['after_widget'];\n\t\t}", "function storefront_footer_social_media()\n {\n include('footer_social_media.php');\n }", "public function index()\n {\n $data['socialMedia'] = SocialMedia::all();\n return view('backend.website.social.view',$data);\n }", "public function __construct()\n {\n $socials = Social::all();\n\n // Sharing is caring\n View::share('socials', $socials);\n }", "function dizzy_social_shortcode( ) {\n\t ob_start();\n\techo '<div class=\"social\">';\n//Facebook\t\nif (get_theme_mod('fb_social_setting')) {\n\techo '<a href=\"';\n\techo get_theme_mod( 'fb_social_setting', '' ); \n\techo '\" title=\"Like Us On Facebook\" target=\"_blank\"><i class=\"fab fa-facebook-f\"></i></a>';\n}\n//Instagram\t\nif (get_theme_mod('ig_social_setting')) {\n\techo '<a href=\"';\n\techo get_theme_mod( 'ig_social_setting', '' ); \n\techo '\" title=\"Follow Us On Instagram\" target=\"_blank\"><i class=\"fab fa-instagram\"></i></a>';\n}\n//Twitter\nif (get_theme_mod('tw_social_setting')) {\n\techo '<a href=\"';\n\techo get_theme_mod( 'tw_social_setting', '' ); \n\techo '\" title=\"Follow Us On Twitter\" target=\"_blank\"><i class=\"fab fa-twitter\"></i></a>';\n}\n//Google Plus\nif (get_theme_mod('gp_social_setting')) {\n\techo '<a href=\"';\n\techo get_theme_mod( 'gp_social_setting', '' ); \n\techo '\" rel=\"publisher author\" title=\"Connect With Us On Google +\" target=\"_blank\"><i class=\"fab fa-google-plus-g\"></i></a>';\n}\n//YouTube\nif (get_theme_mod('yt_social_setting')) {\n\techo '<a href=\"';\n\techo get_theme_mod( 'yt_social_setting', '' ); \n\techo '\" rel=\"publisher author\" title=\"Watch Us On YouTube\" target=\"_blank\"><i class=\"fab fa-youtube\"></i></a>';\n}\n//Linked In\nif (get_theme_mod('li_social_setting')) {\n\techo '<a href=\"';\n\techo get_theme_mod( 'li_social_setting', '' ); \n\techo '\" title=\"Connect on LinkedIn\" target=\"_blank\"><i class=\"fab fa-linkedin\"></i></a>';\n}\n//Yelp\nif (get_theme_mod('yl_social_setting')) {\n\techo '<a href=\"';\n\techo get_theme_mod( 'yl_social_setting', '' ); \n\techo '\" title=\"Check Us Out On Yelp!\" target=\"_blank\"><i class=\"fab fa-yelp\"></i></a>';\n}\n//Avvo\nif (get_theme_mod('av_social_setting')) {\n\techo '<a href=\"';\n\techo get_theme_mod( 'av_social_setting', '' ); \n\techo '\" title=\"View My Profile On Avvo\" target=\"_blank\"><img src=\"https://d17vkztfo54i4d.cloudfront.net/wp-content/uploads/sites/22/2015/04/avvo-logo-bug-150x150.png\"/></a>';\n}\necho '</div><!--Social Icons-->';\n\t$myvariable = ob_get_clean();\n return $myvariable;\n}", "function render_block_core_social_link($attributes, $content, $block)\n {\n }", "public function index()\n {\n return view('back/showshareitem')->with('shareitems', ShareItem::all());\n }", "public function widget( $args, $instance ) { \n\t\t// return if sharing is disabled\n\t\tif(!the_champ_social_sharing_enabled() || the_champ_is_amp_page() || !the_champ_vertical_sharing_enabled()){\n\t\t\treturn;\n\t\t}\n\t\textract( $args );\n\t\tif($instance['hide_for_logged_in']==1 && is_user_logged_in()) return;\n\t\t\n\t\tglobal $theChampSharingOptions, $post;\n\t\tif(NULL === $post){\n\t\t\t$postId = 0;\n\t\t}else{\n\t\t\t$postId = $post->ID;\n\t\t}\n\t\t$customUrl = apply_filters('heateor_ss_custom_share_url', '', $post);\n\t\tif($customUrl){\n\t\t\t$sharingUrl = $customUrl;\n\t\t\t$postId = 0;\n\t\t}elseif(isset($instance['target_url'])){\n\t\t\tif($instance['target_url'] == 'default'){\n\t\t\t\t$sharingUrl = html_entity_decode(esc_url(the_champ_get_http().$_SERVER[\"HTTP_HOST\"] . $_SERVER[\"REQUEST_URI\"]));\n\t\t\t\tif(is_home()){\n\t\t\t\t\t$sharingUrl = esc_url(home_url());\n\t\t\t\t\t$postId = 0;\n\t\t\t\t}elseif(!is_singular()){\n\t\t\t\t\t$sharingUrl = html_entity_decode(esc_url(the_champ_get_http().$_SERVER[\"HTTP_HOST\"] . $_SERVER[\"REQUEST_URI\"]));\n\t\t\t\t\t$postId = 0;\n\t\t\t\t}elseif(isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING']){\n\t\t\t\t\t$sharingUrl = html_entity_decode(esc_url(the_champ_get_http().$_SERVER[\"HTTP_HOST\"] . $_SERVER[\"REQUEST_URI\"]));\n\t\t\t\t}elseif(get_permalink($post-> ID)){\n\t\t\t\t\t$sharingUrl = get_permalink($post->ID);\n\t\t\t\t}\n\t\t\t}elseif($instance['target_url'] == 'homepage'){\n\t\t\t\t$sharingUrl = esc_url(home_url());\n\t\t\t\t$postId = 0;\n\t\t\t}elseif($instance['target_url'] == 'custom'){\n\t\t\t\t$sharingUrl = isset($instance['target_url_custom']) ? trim($instance['target_url_custom']) : get_permalink($post->ID);\n\t\t\t\t$postId = 0;\n\t\t\t}\n\t\t}else{\n\t\t\t$sharingUrl = get_permalink($post->ID);\n\t\t}\n\n\t\t$shareCountUrl = $sharingUrl;\n\t\tif(isset($instance['target_url']) && $instance['target_url'] == 'default' && is_singular()){\n\t\t\t$shareCountUrl = get_permalink($post->ID);\n\t\t}\n\t\t$customPostUrl = heateor_ss_apply_target_share_url_filter($sharingUrl, 'vertical', false);\n\t\tif($customPostUrl != $sharingUrl){\n\t\t\t$sharingUrl = $customPostUrl;\n\t\t\t$shareCountUrl = $sharingUrl;\n\t\t}\n\n\t\t$ssOffset = 0;\n\t\tif(isset($instance['alignment']) && isset($instance[$instance['alignment'] . '_offset'])){\n\t\t\t$ssOffset = $instance[$instance['alignment'] . '_offset'];\n\t\t}\n\n\t\t$shareCountTransientId = heateor_ss_get_share_count_transient_id($sharingUrl);\n\t\t$cachedShareCount = heateor_ss_get_cached_share_count($shareCountTransientId);\n\n\t\techo \"<div class='the_champ_sharing_container the_champ_vertical_sharing\" . ( isset( $theChampSharingOptions['hide_mobile_sharing'] ) ? ' the_champ_hide_sharing' : '' ) . ( isset( $theChampSharingOptions['bottom_mobile_sharing'] ) ? ' the_champ_bottom_sharing' : '' ) . \"' \" . ( the_champ_is_amp_page() ? \"\" : \"ss-offset='\". $ssOffset .\"' \" ) . \"style='width:\" . ((isset($theChampSharingOptions['vertical_sharing_size']) ? $theChampSharingOptions['vertical_sharing_size'] : 35) + 4) . \"px;\".(isset($instance['alignment']) && $instance['alignment'] != '' && isset($instance[$instance['alignment'].'_offset']) ? $instance['alignment'].': '. ( $instance[$instance['alignment'].'_offset'] == '' ? 0 : $instance[$instance['alignment'].'_offset'] ) .'px;' : '').(isset($instance['top_offset']) ? 'top: '. ( $instance['top_offset'] == '' ? 0 : $instance['top_offset'] ) .'px;' : '') . (isset($instance['vertical_bg']) && $instance['vertical_bg'] != '' ? 'background-color: '.$instance['vertical_bg'] . ';' : '-webkit-box-shadow:none;box-shadow:none;') . \"' \" . ( the_champ_is_amp_page() ? '' : 'super-socializer-data-href=\"' . (isset($shareCountUrl) && $shareCountUrl ? $shareCountUrl : $sharingUrl) . '\"' ) . ($cachedShareCount === false || the_champ_is_amp_page() ? \"\" : \"super-socializer-no-counts='1' \") .\">\";\n\t\t\n\t\tif(isset($theChampSharingOptions['use_shortlinks']) && function_exists('wp_get_shortlink')){\n\t\t\t$sharingUrl = wp_get_shortlink();\n\t\t\t// if bit.ly integration enabled, generate bit.ly short url\n\t\t}elseif(isset($theChampSharingOptions['bitly_enable']) && isset($theChampSharingOptions['bitly_access_token']) && $theChampSharingOptions['bitly_access_token'] != ''){\n\t\t\t$shortUrl = the_champ_generate_sharing_bitly_url($sharingUrl, $postId);\n\t\t\tif($shortUrl){\n\t\t\t\t$sharingUrl = $shortUrl;\n\t\t\t}\n\t\t}\n\t\t//echo $before_widget;\n\t\techo the_champ_prepare_sharing_html($sharingUrl, $shareCountUrl, 'vertical', isset($instance['show_counts']), isset($instance['total_shares']), $shareCountTransientId);\n\t\techo '</div>';\n\t\tif((isset($instance['show_counts']) || isset($instance['total_shares'])) && $cachedShareCount == false){\n\t\t\techo '<script>theChampLoadEvent(\n\t\tfunction(){\n\t\t\t// sharing counts\n\t\t\ttheChampCallAjax(function(){\n\t\t\t\ttheChampGetSharingCounts();\n\t\t\t});\n\t\t}\n\t);</script>';\n\t\t}\n\t\t//echo $after_widget;\n\t}", "function display_footer_social()\n {\n include 'assets/partials/footer-social.php';\n }", "function social_get_share_url($service, $url, $title)\n{\n\n $links = array();\n $surl = shortener_shorten($url);\n if ($surl != $url) {\n $url = $surl;\n callmap_log($url);\n }\n\n switch ($service) {\n case 'facebook':\n $base = 'https://www.facebook.com/sharer/sharer.php';\n $query = array('u' => $url, 't' => $title);\n break;\n case 'linkedin':\n $base = 'https://www.linkedin.com/shareArticle';\n $query = array('url'=> $url, 'title'=>$title);\n break;\n case 'gplus':\n $base = 'https://plus.google.com/share';\n $query = array('url'=>$url);\n break;\n case 'whatsapp':\n $base = 'whatsapp://send';\n $query = array('text'=> $title . ' - ' . $url);\n break;\n case 'email':\n $base = 'mailto:';\n $query = array('subject'=> $title, 'body' => $title . \"\\n\" . $url);\n break;\n case 'twitter': \n $search_replace = config('twitter_search_replace', array());\n foreach ($search_replace as $search => $replace) {\n $title = str_replace($search, $replace, $title);\n }\n $base = 'https://twitter.com/intent/tweet';\n $query = array('url'=>$url, 'text'=>$title);\n break;\n default:\n return '';\n }\n return router_add_query($base, $query);\n}", "public function social()\n {\n return view('home.social');\n }", "function getFacebookShareLink($url, $title)\n {\n return 'https://www.facebook.com/sharer/sharer.php?u=' . $url .'&t=' . rawurlencode($title);\n }", "function doLikeButton($p_dir){\n\t\techo '<div class=\"fb-like\" data-href=\"'. $p_dir .'\" data-width=\"300\" data-layout=\"standard\" data-action=\"like\" data-show-faces=\"true\" data-share=\"false\"></div>';\n\t}", "public function get_icon() {\n\t\treturn parent::get_widget_icon( 'SocialShare' );\n\t}" ]
[ "0.7470877", "0.7165475", "0.7096101", "0.695607", "0.6904025", "0.6865065", "0.6822376", "0.67826796", "0.6708453", "0.67017454", "0.66682065", "0.6649663", "0.66463035", "0.659021", "0.65785575", "0.6555908", "0.6471231", "0.6465106", "0.6414234", "0.6393266", "0.6384178", "0.63695437", "0.6314895", "0.6290967", "0.62739915", "0.6231517", "0.62163675", "0.6206145", "0.61750233", "0.61750233", "0.6164458", "0.6146595", "0.6135452", "0.61062866", "0.6080733", "0.6063421", "0.60562783", "0.6049525", "0.6043302", "0.60323703", "0.6019548", "0.6008344", "0.5999575", "0.5999344", "0.59859097", "0.5981828", "0.5972769", "0.5969547", "0.59665436", "0.59383065", "0.5932217", "0.5919161", "0.59188896", "0.5917914", "0.5915536", "0.5896009", "0.5878799", "0.58772665", "0.5875447", "0.58666205", "0.5827614", "0.58238405", "0.58154756", "0.58147717", "0.57697785", "0.5769193", "0.5760267", "0.5750937", "0.57477623", "0.57426715", "0.573721", "0.57153237", "0.56703246", "0.5654204", "0.56327176", "0.56312436", "0.56265604", "0.5613333", "0.56019926", "0.5592498", "0.5575316", "0.5567934", "0.55679256", "0.5567622", "0.5556842", "0.55543584", "0.55502856", "0.5550216", "0.55403835", "0.552819", "0.5506083", "0.55002207", "0.54998106", "0.5497436", "0.5495534", "0.54946315", "0.5492692", "0.54845744", "0.54697865", "0.54678774" ]
0.8436842
0
Create a new notification instance.
public function __construct() { //Database notification $this->title = ''; $this->subtitle = ''; $this->icon = ''; $this->type = ''; $this->actions = [ 'link' => '#' ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function create($notification){\n }", "public static function createNotification($type, $eventid){\n\t\t$notification = new Notification; \n\t\t$notification->type = $type;\n\t\t$notification->eventid = $eventid;\n\t\t$notification->time = date('Y-m-d H:i:s');\n\t\t$notification->save();\n\t\treturn $notification;\n\t}", "public function create($payload)\n {\n return $this->notification->create($payload);\n }", "public static function create( array $info ) {\n\t\t$obj = new Notification();\n\t\tstatic $validFields = [ 'event', 'user' ];\n\n\t\tforeach ( $validFields as $field ) {\n\t\t\tif ( isset( $info[$field] ) ) {\n\t\t\t\t$obj->$field = $info[$field];\n\t\t\t} else {\n\t\t\t\tthrow new InvalidArgumentException( \"Field $field is required\" );\n\t\t\t}\n\t\t}\n\n\t\tif ( !$obj->user instanceof User ) {\n\t\t\tthrow new InvalidArgumentException( 'Invalid user parameter, expected: User object' );\n\t\t}\n\n\t\tif ( !$obj->event instanceof Event ) {\n\t\t\tthrow new InvalidArgumentException( 'Invalid event parameter, expected: Event object' );\n\t\t}\n\n\t\t// Notification timestamp should be the same as event timestamp\n\t\t$obj->timestamp = $obj->event->getTimestamp();\n\t\t// Safe fallback\n\t\tif ( !$obj->timestamp ) {\n\t\t\t$obj->timestamp = wfTimestampNow();\n\t\t}\n\n\t\t// @Todo - Database insert logic should not be inside the model\n\t\t$obj->insert();\n\n\t\treturn $obj;\n\t}", "private function createNotification($id, $request)\n {\n $count = Notification::max('count');\n\n $notification = Notification::create([\n 'model_id' => $id,\n 'count' => intval($count) + 1,\n 'type' => $request->get('ntype'),\n 'subject' => $request->get('subject'),\n 'message' => $request->get('message'),\n 'sent_at' => Carbon::now(),\n ]);\n }", "public function maybe_create_notification() {\n\t\tif ( ! $this->should_show_notification() ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( ! $this->notification_center->get_notification_by_id( self::NOTIFICATION_ID ) ) {\n\t\t\t$notification = $this->notification();\n\t\t\t$this->notification_helper->restore_notification( $notification );\n\t\t\t$this->notification_center->add_notification( $notification );\n\t\t}\n\t}", "public function __construct(Notification $notification)\n {\n $this->notification = $notification;\n }", "public function __construct(Notification $notification)\n {\n $this->notification = $notification;\n }", "public function __construct(Notification $notification)\n {\n $this->notification = $notification;\n }", "protected function createNotificationInstance($data)\n {\n if ($data === false) {\n return null;\n }\n\n /** @var Notification $model */\n $model = Instance::ensure($this->dataClass, Notification::class);\n\n if (!empty($data['id'])) {\n $model->setId($data['id']);\n }\n\n $model->setType($data['type']);\n $model->setData(is_string($data['data']) ? Json::decode($data['data']) : $data['data']);\n $model->setUserId($data['user_id']);\n $model->setTimestamp($data['created_at']);\n $model->setRead((bool)$data['is_read']);\n $model->setOwner($this->owner);\n\n return $model;\n }", "public function create()\n\t{\n\t\tlog::info('inside create method of user-notifications controller');\n\t}", "public function created(Notification $notification)\n {\n $this->sendBroadcast($notification);\n }", "public function newNotification($event)\n {\n return new ExampleNotification($event);\n }", "public function create()\n {\n $this->authorize('create', Notification::class);\n\n return view('rb28dett_notifications::create');\n }", "public function actionCreate()\n {\n $model = new Notification();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->notification_id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "private function createMessageObject(string $type, string $message): Notification\n {\n $msg = new Notification();\n\n $msg->setType($type);\n $msg->setMessage($message);\n\n $this->handler->add($msg);\n\n return $msg;\n }", "public function create() {\n return View::make('notifications.create');\n }", "protected function create_notification_email_object()\n\t{\n\t\t$category = $this->category();\n\n\t\t$email = new Charcoal_Email;\n\t\t$email->to = $this->get_notified_email_address();\n\t\t$email->reply_to = $this->get_lead_email_address();\n\n\t\tif ( $category ) {\n\t\t\t$email->subject = $category->p('confirmation_email_subject')->text();\n\t\t\t$email->from = $category->p('confirmation_email_from')->text();\n\t\t\t$email->cc = $category->v('confirmation_email_cc');\n\t\t\t$email->bcc = $category->v('confirmation_email_bcc');\n\t\t}\n\n\t\treturn $email;\n\t}", "public function create()\n {\n return view ('notifications.create');\n }", "protected function emitNotificationCreated(Notification $notification) {}", "public function __construct($new_postNotification)\n {\n //\n $this->postNotification = $new_postNotification;\n\n }", "public static function createFromArray($fields) \n\t{\n\t\t$notification = new Notification();\n\t\tself::populate($notification,$fields);\n\t\treturn $notification;\n\t}", "public function create()\n {\n return view('admin.notifications.create');\n }", "public function create()\n {\n return view('admin.notifications.create');\n }", "function notify($user_id, $message)\n{\n return (new Notification([\n 'user_id' => $user_id,\n 'message' => $message\n ]))->save();\n}", "public function actionCreate() {\n\t\t$model = new Notification();\n\t\t$model->created_by = Yii::$app->user->identity->id;\n\n\t\tif ($model->load(Yii::$app->request->post())) {\n\n\t\t\tif ($model->send_to != '') {\n\t\t\t\t$model->send_to = implode(',', $model['send_to']);\n\t\t\t}\n\t\t\t$model->sent_time = date('Y-m-d H:i:s');\n\t\t\t$model->save();\n\t\t\t/*if ($model->save()) {\n\t\t\t\t$send_to = explode(',', $model['send_to']);\n\t\t\t\tforeach ($send_to as $key => $value) {\n\t\t\t\t\tif ($value == 'all') {\n\t\t\t\t\t\t$userId = 'allUser';\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$user = User::find()->where(['id' => $value])->one();\n\t\t\t\t\t\t$userId = $user['phone'];\n\t\t\t\t\t}\n\t\t\t\t\tYii::$app->Utility->pushNotification($userId, $model['notification_name'], $model['content']);\n\t\t\t\t}\n\t\t\t}*/\n\t\t\tYii::$app->getSession()->setFlash('successStatus', 'Data saved successfully!');\n\n\t\t\treturn $this->redirect(['view', 'id' => $model->id]);\n\t\t}\n\n\t\treturn $this->render('create', [\n\t\t\t'model' => $model,\n\t\t]);\n\t}", "public function notification(Notification $notification, array $parameters = []);", "public function create()\n {\n return view('notifications.create');\n }", "public function __construct($notification)\n {\n parent::__construct($notification);\n }", "public function notification();", "public function notification();", "public function notificationsAction()\n {\n $callback = function ($msg) {\n //check the db before running anything\n if (!$this->isDbConnected('db')) {\n return ;\n }\n\n if ($this->di->has('dblocal')) {\n if (!$this->isDbConnected('dblocal')) {\n return ;\n }\n }\n\n //we get the data from our event trigger and unserialize\n $notification = unserialize($msg->body);\n\n //overwrite the user who is running this process\n if ($notification['from'] instanceof Users) {\n $this->di->setShared('userData', $notification['from']);\n }\n\n if (!$notification['to'] instanceof Users) {\n echo 'Attribute TO has to be a User' . PHP_EOL;\n return;\n }\n\n if (!class_exists($notification['notification'])) {\n echo 'Attribute notification has to be a Notificatoin' . PHP_EOL;\n return;\n }\n $notificationClass = $notification['notification'];\n\n if (!$notification['entity'] instanceof Model) {\n echo 'Attribute entity has to be a Model' . PHP_EOL;\n return;\n }\n\n $user = $notification['to'];\n\n //instance notification and pass the entity\n $notification = new $notification['notification']($notification['entity']);\n //disable the queue so we process it now\n $notification->disableQueue();\n\n //run notify for the specifiy user\n $user->notify($notification);\n\n $this->log->info(\n \"Notification ({$notificationClass}) sent to {$user->email} - Process ID \" . $msg->delivery_info['consumer_tag']\n );\n };\n\n Queue::process(QUEUE::NOTIFICATIONS, $callback);\n }", "public function create()\n {\n return view('Admin.Notification_Management.notifications');\n }", "public static function fake()\n {\n static::swap($fake = new NotificationFake);\n\n return $fake;\n }", "public function new_notification_is_created ($notification) {\n $user = $this->get_session_user();\n $eventdata = new \\core\\message\\message();\n $eventdata->courseid = 1;\n $eventdata->name = 'fake_notification';\n $eventdata->component = 'block_culactivity_stream';\n $eventdata->userfrom = $user;\n $eventdata->subject = $notification;\n $eventdata->fullmessage = $notification;\n $eventdata->fullmessageformat = FORMAT_PLAIN;\n $eventdata->fullmessagehtml = $notification;\n $eventdata->smallmessage = $notification;\n $eventdata->notification = 1;\n $eventdata->userto = $user;\n $messageid = message_send($eventdata);\n\n if (!$messageid) {\n throw new Exception(get_string('messageerror', 'block_culactivity_stream'));\n }\n }", "public function push($notification, $notifiable);", "public function __construct() {\r\n $this->setEntity('mst_notification');\r\n }", "public function create($type, $data, $userId)\n {\n $data = [\n 'type' => $type,\n 'data' => Json::encode($data),\n 'user_id' => $userId,\n 'created_at' => time(),\n 'is_read' => 0\n ];\n\n $notification = $this->createNotificationInstance($data);\n $this->saveNotification($notification);\n return $notification;\n }", "public function Create()\n {\n parent::Create();\n\n //Properties\n $this->RegisterPropertyInteger('InputTriggerID', 0);\n $this->RegisterPropertyString('NotificationLevels', '[]');\n $this->RegisterPropertyBoolean('TriggerOnChangeOnly', false);\n $this->RegisterPropertyBoolean('AdvancedResponse', false);\n $this->RegisterPropertyString('AdvancedResponseActions', '[]');\n\n //Profiles\n if (!IPS_VariableProfileExists('BN.Actions')) {\n IPS_CreateVariableProfile('BN.Actions', 1);\n IPS_SetVariableProfileIcon('BN.Actions', 'Information');\n IPS_SetVariableProfileValues('BN.Actions', 0, 0, 0);\n }\n\n //Variables\n $this->RegisterVariableInteger('NotificationLevel', $this->Translate('Notification Level'), '');\n $this->RegisterVariableBoolean('Active', $this->Translate('Notifications active'), '~Switch');\n $this->RegisterVariableInteger('ResponseAction', $this->Translate('Response Action'), 'BN.Actions');\n\n //Actions\n $this->EnableAction('ResponseAction');\n\n //Timer\n $this->RegisterTimer('IncreaseTimer', 0, 'BN_IncreaseLevel($_IPS[\\'TARGET\\']);');\n\n $this->EnableAction('Active');\n }", "public function register_notifications();", "public function create()\n {\n $notification = DB::table('notifications')\n ->get(); \n return view ('admin/assignBadgeToUser')->with('notification', $notification);\n }", "public function __construct(protected NotificationRepository $notificationRepository)\n {\n }", "protected function createNotification($responseData)\n {\n $socketMock = $this->getMock(\n 'RequestStream\\\\Stream\\\\Socket\\\\SocketClient',\n array('create', 'write', 'read', 'selectRead', 'setBlocking', 'is', 'close')\n );\n\n $socketMock->expects($this->once())\n ->method('selectRead')\n ->will($this->returnValue(true));\n\n $socketMock->expects($this->once())\n ->method('read')\n ->with(6)\n ->will($this->returnValue($responseData));\n\n $notification = new Notification;\n $payload = new PayloadFactory;\n $connection = new Connection(__FILE__);\n\n $notification->setConnection($connection);\n $notification->setPayloadFactory($payload);\n\n $ref = new \\ReflectionProperty($connection, 'socketConnection');\n $ref->setAccessible(true);\n $ref->setValue($connection, $socketMock);\n\n return $notification;\n }", "protected function notification() {\n\t\t$reason = $this->indexing_helper->get_reason();\n\n\t\t$presenter = $this->get_presenter( $reason );\n\n\t\treturn new Yoast_Notification(\n\t\t\t$presenter,\n\t\t\t[\n\t\t\t\t'type' => Yoast_Notification::WARNING,\n\t\t\t\t'id' => self::NOTIFICATION_ID,\n\t\t\t\t'capabilities' => 'wpseo_manage_options',\n\t\t\t\t'priority' => 0.8,\n\t\t\t]\n\t\t);\n\t}", "function custom_node_create_notification($uid, $title, $message) {\n $creator_uid = 1; // Admin user.\n $node = custom_new_node_create($creator_uid, 'notification', $title, 1);\n \n $node->set('field_user', $uid);\n $node->set('body', $message);\n $node->save();\n \n if (!$node->id()) {\n \\Drupal::logger('custom')->error(t('Notification FAILED to store.'));\n }\n \n return $node;\n}", "public function store(Request $request)\n {\n return Notification::create($request->input());\n }", "public static function createFromDiscriminatorValue(ParseNode $parseNode): TrainingReminderNotification {\n return new TrainingReminderNotification();\n }", "public function __construct(NotificationTrigger $notification_trigger)\n {\n $this->notification_trigger = $notification_trigger;\n }", "public function setResource($notification)\n {\n return new NotificationResource($notification);\n }", "public function __construct($notification_id)\n {\n $this->notification_id = $notification_id;\n }", "public function create()\n {\n return view('Notifications/create');\n }", "public function getNotification(MessageInstanceInterface $message)\n {\n return new DefaultNotification($message, $this->formatterRegistry->get($message->getType()));\n }", "public function sendPostCreateNewNotifications(ApiTester $I)\n {\n $data = [\n 'entityClass' => 'user',\n 'entityId' => 1,\n 'category' => 'info',\n 'message' => fake::create()->text(20),\n 'userId' => 1\n ];\n $I->saveNotifications([\n $data['entityClass'], ' ',\n $data['entityId'], ' ',\n $data['category'], ' ',\n $data['message'], ' ',\n $data['userId'], ' '\n ], 'notifications.txt');\n $I->sendPOST($this->route, $data);\n $this->userID = $I->grabDataFromResponseByJsonPath('$.id');\n $I->seeResponseCodeIs(201);\n }", "public static function createFromArray($fields) \n\t{\n\t\t$notificationType = new NotificationType();\n\t\tself::populate($notificationType,$fields);\n\t\treturn $notificationType;\n\t}", "public function create()\n\t{\n\t\t$searchTerm = Input::get('searchTerm');\n\n $createNotification = new CreateNotificationCommand($searchTerm);\n\n $result = $createNotification->execute();\n\n $result = $result ? \"You're Signed Up!\" : \"You're Already Signed Up for This Term!\";\n\n return $result;\n\t}", "#[Route('/notification/create', name: 'create_notification')]\n public function create(NotifierInterface $notifier, EntityManagerInterface $entityManager, Request $request): Response\n {\n $notification = (new Notification('Notification from Duck Tales'))\n ->content('You got some contributions to review. Please look at the Quack #' . $request->get('warned_id'))\n ->importance(Notification::IMPORTANCE_HIGH);\n\n\n $admins = [];\n $admins = array_map(fn ($duck) => $duck->hasRoleAdmin() ? $duck->getEmail() : NULL, $entityManager->getRepository(Duck::class)->findAll());\n\n // foreach ($admins as $admin) {\n // $recipient = new Recipient(\n // $admin\n // );\n // $notifier->send($notification, $recipient);\n // }\n $recipient = new Recipient(\n 'badawiraphael@posteo.net'\n );\n $notifier->send($notification, $recipient);\n\n\n // Send the notification to the recipient\n\n\n return $this->redirectToRoute('quacks');\n }", "function wd_notification() {\n return WeDevs_Notification::init();\n}", "public function notificationsOnCreate(NotificationBuilder $builder)\n {\n $notification = new Notification();\n $notification\n ->setTitle('Nouvelle Reclamation')\n ->setDescription(' A été crée')\n ->setRoute('#')\n // ->setParameters(array('id' => $this->userToClaim))\n ;\n //$notification->setIcon($this->getUserr()->getUsername());\n $notification->setUser1($this->getUser()->getUsername());\n $notification->setUser2($this->getUserToClaim());\n $builder->addNotification($notification);\n\n return $builder;\n }", "public function create()\n {\n\n $email_id = date('Y-m-d_H-i-s') . '.' . $this->template;\n $email_data = [\n 'title' => $this->template, \n 'data' => serialize($this->data), \n 'email' => $this->to,\n 'id' => $email_id,\n 'date' => date('Y-m-d H:i:s')\n ];\n\n Storage::putYAML('statamify/emails/' . $email_id, $email_data);\n\n }", "public function create()\n {\n //\n $this->message->sendMessage();\n }", "public function create()\n {}", "public function create() {}", "public function create() {\n\t\t\t//\n\t\t}", "public static function invalidNotificationType()\n {\n return new static('Notification Type provided is invalid.');\n }", "public function createNotification($type, $text, $destination)\r\n {\r\n \t$data = $this->call(array(\"notification\"=>array(\"type\"=>$type, \"text\"=>$text, \"destination\"=>$destination)), \"POST\", \"notifications.json\");\r\n \treturn $data;\r\n }", "public function __construct($title, $sender, $notification)\n {\n $this->title = $title;\n $this->sender = $sender;\n $this->notification = $notification;\n }", "public function createInstance()\n {\n $mock = $this->mock(static::TEST_SUBJECT_CLASSNAME)\n ->getMessage();\n\n return $mock->new();\n }", "public function create(){}", "static function get_notificationById($id) {\r\n global $db;\r\n \r\n $id = $db->escape_string($id);\r\n \r\n $query = \"SELECT * FROM `notification` WHERE Notification_id = ?\";\r\n \r\n $statement = $db->prepare($query);\r\n\t\t\r\n\t\tif ($statement == FALSE) {\r\n\t\t\tdisplay_db_error($db->error);\r\n\t\t}\r\n \r\n $statement->bind_param(\"i\", $id);\r\n \r\n $statement->execute();\r\n \r\n $statement->bind_result($id, $message, $objectReference, $objectId, $seen, $timeStamp);\r\n \r\n $statement->fetch();\r\n \r\n $notification = new notification($id, $message, $objectReference, $objectId, $seen, $timeStamp);\r\n \r\n $statement->close();\r\n \r\n return $notification;\r\n }", "public function __construct(PushNotification $push)\n {\n $this->push = $push;\n }", "public function addNotification($id, $message, $type = 'status');", "public function create( $arrayNotifikasi )\n {\n // return $arrayNotifikasi;\n $notif = new Notifikasi;\n $notif->id_pembuat = $arrayNotifikasi[0];\n $notif->id_penerima = $arrayNotifikasi[1];\n $notif->jenis = $arrayNotifikasi[2];\n $notif->msg = $arrayNotifikasi[3];\n $notif->icon = $arrayNotifikasi[4];\n $notif->bg = $arrayNotifikasi[5];\n $notif->tgl_dibuat = $arrayNotifikasi[6];\n $notif->link = $arrayNotifikasi [7];\n $notif->save();\n }", "public static function createInstance()\n {\n return new MailMessage('serializable@serializable.com');\n }", "public function testPushNotification(){\n $noti=new Notification();\n $data=' {\n\t \"to\": \"/topics/important\",\n\t \"notification\": {\n\t \t\"title\": \"Hola Mundo\",\n\t\t \"body\": \"Mensaje de prueba\",\n\t\t \"icon\":\"http://www.alabamapublica.com/wp-content/uploads/sites/43/2017/06/cntx170619019-150x150.jpg\"\n\t\t \"click_action\": \"https://critica-xarkamx.c9users.io\"\n\t }\n }';\n $this->assertArrayHasKey(\"message_id\",$noti->sendPushNotification($data));\n }", "public static function notify($member) {\n $notification = Model_Notification::factory('notification');\n\n if(is_numeric($member)) {\n $notification->to = $member;\n } else if(is_object($member) && $member instanceof Model_Member) {\n $notification->to = $member->id;\n } else if(is_object($member) && $member instanceof Model_Blab) {\n\t\t\t$notification->to = $member->getCommentees();\n\t\t}\n\n\t\t$notification->from = Session::instance()->get('user_id');\n \n $notification->unread = 1;\n\n\t\t$notification->created = date('Y-m-d h:i:s');\n\n return $notification;\n }", "public function insert(int $toUserID, string $subject, string $message, int $typeId, array $data = [])\n {\n return Notification::create([\n 'user_id' => $toUserID,\n 'subject' => $subject,\n 'message' => $message,\n 'notification_type_id' => $typeId,\n 'data' => $data,\n ]);\n }", "public function create()\n {\n //TODO\n }", "public function __construct($notifiable)\n {\n $this->notifiable = $notifiable;\n }", "public function create()\n {\n //\n return view('admin/notifacation/create');\n }", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function create() {\n\t\t//\n\t}", "public function __construct(AppNotification $notification, User $user)\n {\n $this->notification = $notification;\n $this->user = $user;\n }", "public function create() {\r\n }", "public function __construct($data)\n {\n \n\n $usuario_reserva = User::find($data->id_user);\n $coordinador = User::find($usuario_reserva->departamento->coordinador->id);\n\n $mensaje = new \\stdClass();\n $mensaje->user = $usuario_reserva->name.' '.$usuario_reserva->last_name;\n $mensaje->userid = $usuario_reserva->id;\n $mensaje->recipient = $coordinador->name.' '.$coordinador->last_name;\n $mensaje->recipientid = $coordinador->id;\n $mensaje->reservaid = $data->id;\n $mensaje->datereserva = date('Y-m-d H:i:s');\n $mensaje->text = 'ah generado una reserva';\n $notificacion = new Notificaciontest($mensaje);\n \n $coordinador->notify($notificacion);\n $this->notif = $mensaje;\n }", "public function createDefaultNotificationRule();", "protected function getNotification_Type_PostService()\n {\n $instance = new \\phpbb\\notification\\type\\post(${($_ = isset($this->services['dbal.conn']) ? $this->services['dbal.conn'] : ($this->services['dbal.conn'] = new \\phpbb\\db\\driver\\factory($this))) && false ?: '_'}, ${($_ = isset($this->services['language']) ? $this->services['language'] : $this->getLanguageService()) && false ?: '_'}, ${($_ = isset($this->services['user']) ? $this->services['user'] : $this->getUserService()) && false ?: '_'}, ${($_ = isset($this->services['auth']) ? $this->services['auth'] : ($this->services['auth'] = new \\phpbb\\auth\\auth())) && false ?: '_'}, './../', 'php', 'phpbb_user_notifications');\n\n $instance->set_user_loader(${($_ = isset($this->services['user_loader']) ? $this->services['user_loader'] : $this->getUserLoaderService()) && false ?: '_'});\n $instance->set_config(${($_ = isset($this->services['config']) ? $this->services['config'] : $this->getConfigService()) && false ?: '_'});\n\n return $instance;\n }", "public function create()\n {\n }", "public function create()\n {\n }", "public static function create() {}", "public static function create() {}", "public static function create() {}" ]
[ "0.8276063", "0.72309536", "0.7192113", "0.71250874", "0.7123231", "0.70414555", "0.6982398", "0.6982398", "0.6982398", "0.69165224", "0.6844303", "0.68205667", "0.6801263", "0.6776018", "0.6589725", "0.6531073", "0.6507233", "0.65047646", "0.6503655", "0.64437956", "0.6413495", "0.63943607", "0.63801765", "0.63801765", "0.63660526", "0.6356052", "0.63232195", "0.6300968", "0.6284887", "0.6273382", "0.6273382", "0.6221624", "0.62077844", "0.619149", "0.61460197", "0.6113097", "0.6109519", "0.61056155", "0.6096373", "0.6080448", "0.6076801", "0.6062714", "0.6056816", "0.60528165", "0.6042198", "0.6041384", "0.6038984", "0.5998163", "0.5980277", "0.5966818", "0.5965131", "0.59510165", "0.5944954", "0.5924184", "0.59172565", "0.5905665", "0.5863749", "0.5857545", "0.5847215", "0.58452827", "0.5823396", "0.5817765", "0.5809837", "0.5806915", "0.58051187", "0.57956886", "0.5786479", "0.5761696", "0.5759299", "0.57588416", "0.57455844", "0.5729732", "0.57241285", "0.5722245", "0.571779", "0.57008874", "0.56909657", "0.5688866", "0.56850773", "0.5680636", "0.5680636", "0.5680636", "0.5680636", "0.5680636", "0.5680636", "0.5680636", "0.5680636", "0.5680636", "0.5680636", "0.5680636", "0.5680636", "0.56795263", "0.567875", "0.5671056", "0.56691873", "0.56688094", "0.5668", "0.5668", "0.5666241", "0.5666241", "0.5666241" ]
0.0
-1
Get the notification's delivery channels.
public function via($notifiable) { return ['mail', 'database']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNotificationChannels()\n {\n if (array_key_exists(\"notificationChannels\", $this->_propDict)) {\n return $this->_propDict[\"notificationChannels\"];\n } else {\n return null;\n }\n }", "public function getDistributionChannels();", "public function getDeliveryChannel() {\n return $this->params[\"original\"][\"delivery_channel\"];\n }", "public function getChannels()\n {\n return $this->channels;\n }", "public function getChannels();", "public function getDistributionChannels()\n {\n return $this->distributionChannels;\n }", "public function getChannels()\n {\n return $this->Channels;\n }", "public function getAllChannels()\n {\n return $this->_channel;\n }", "public function via($notifiable)\n {\n $channels = [];\n if ($notifiable->setting->is_bid_cancelled_notification_enabled) {\n $channels = ['database']; // note: no Messenger yet like the other one's. App is still not approved, and there's the business registration requirement so..\n \n if ($notifiable->fcm_token) {\n $channels[] = FcmChannel::class;\n }\n }\n return $channels;\n }", "public function viaNotificationChannels()\n {\n return UserNotificationChannel::with('notification_channel')->get()->filter(function ($item) {\n return $item->muted_at == null;\n })->pluck('notification_channel.name');\n }", "public function channels()\n {\n return $this->send('channels');\n }", "public function getOrderChannels()\n\t{\n\t\t$request = $this->request('order_channels');\n\n\t\tif (!$request) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$decoded = $request->asArray();\n\t\treturn $decoded['data'];\n\t}", "public function channels()\n {\n $payloads = [\n 'code' => $this->channelCode,\n ];\n\n return $this->request('get', 'merchant/payment-channel', $payloads);\n }", "public function all(): array\n {\n return $this->channels;\n }", "public function getActiveNotificationChannelsOptions()\n {\n \treturn $this->getChannelOptions();\n }", "public function getAllChannels()\n {\n return Channel::all();\n }", "public function getSupplyChannels();", "public function getChannels()\n\t{\n\t\t$channels = App::make('ChannelRepository')->getChannels();\n\t\t\n\t\treturn App::make('Apiv1\\Transformers\\ChannelTransformer')->transformCollection($channels, $this->user);\n\t}", "public function via($notifiable)\n {\n $channel = ($this->channel == 'sms') ? 'nexmo' : $this->channel;\n return [$channel];\n }", "public function get_channels()\n {\n }", "public function getDeliveryChannel($i = 0)\n {\n if (isset($this->destinationList[$i]['DeliveryChannel'])) {\n return $this->destinationList[$i]['DeliveryChannel'];\n } else {\n return false;\n }\n }", "public function getDeliveries()\n {\n return $this->deliveries;\n }", "public function channels(){\n return $this->channelCollection->map(function ($item, $key) {\n return ['channel' => $item['channel']];\n });\n }", "public function getChannel()\n {\n return $this->get(self::_CHANNEL);\n }", "public function getChannel()\n {\n return $this->get(self::_CHANNEL);\n }", "public function getChannel()\n {\n return $this->get(self::_CHANNEL);\n }", "public function getChannel()\n {\n return $this->get(self::_CHANNEL);\n }", "public function via($notifiable)\n\t{\n\t\tif (!isset($this->notifitable)) {\n\t\t\t$this->notifitable = $notifiable;\n\t\t}\n\t\t$channels = ['db'];\n\t\tif (in_array('esms', $this->data['types'])) {\n\t\t\t$channels[] = 'esms';\n\t\t}\n\t\tif (in_array('email', $this->data['types'])) {\n\t\t\t$channels[] = 'mail';\n\t\t}\n\n\t\treturn $channels;\n\t}", "public function getChannel()\n {\n return $this->getData(self::CHANNEL);\n }", "public function broadcastOn()\n {\n return [\n $this->channel\n ];\n }", "public function broadcastOn()\n {\n return [\n $this->channel\n ];\n }", "public function via($notifiable)\n {\n return [FcmChannel::class];\n }", "public function broadcastOn() {\n return [\n new Channel('messages.' . $this->userReceiver->id . '.' . $this->currentUser->email),\n new Channel('messages.' . $this->currentUser->id . '.' . $this->userReceiver->email),\n ];\n }", "public function broadcastOn()\n {\n return [config('messenger.redis_channel', 'notification')];\n }", "public function via($notifiable): array\n {\n return [DiscordChannel::class];\n }", "public function via($notifiable)\n {\n return [WhatsappChannel::class, SmsChannel::class];\n }", "public function getSupplyChannels()\n {\n return $this->supplyChannels;\n }", "public function getChannel();", "public function getAllChannels()\n {\n return Channel::with('subChannel.display')->active()->alive()->get()->toArray();\n }", "public function setNotificationChannels($val)\n {\n $this->_propDict[\"notificationChannels\"] = $val;\n return $this;\n }", "public function getIncludeChannels()\n {\n return $this->include_channels;\n }", "public function getDelivery()\n {\n return $this->delivery;\n }", "public static function getChannels($aspect)\n {\n return self::getMetaProperty($aspect, 'channel');\n }", "public function broadcastOn()\n {\n return new Channel('notifications');\n }", "public function getAll(){\n\t\t$Channels = \\Channel::all();\n\t\treturn $Channels;\n\t}", "public function via( $notifiable )\n\t{\n\t\treturn [ OneSignalChannel::class ];\n\t}", "public function via($notifiable)\n {\n return [PushNotificationChannel::class];\n }", "public function channels(): ChannelsService;", "public function getNotificationTypes()\n {\n return $this->notifications;\n }", "public function getChannelList()\n {\n return Channel::with('subChannel.display')->get();\n }", "public function list_channels($exclude_archived=true) {\n\n $method=\"channels.list\";\n $payload['exclude_archived'] = $exclude_archived;\n\n $result = $this->apicall($method, $payload);\n if (isset($result['channels'])) {\n return $result['channels'];\n } else {\n return false;\n }\n }", "public function getChannel()\n {\n \treturn $this->_channel;\n }", "public function getChannel()\n {\n return $this->channel;\n }", "public function getChannel()\n {\n return $this->channel;\n }", "function channelInfo()\n\t{\n\t\treturn $this->_channel;\n\t}", "public function broadcastOn()\n {\n return ['my-channel'];\n }", "public function via($notifiable)\n {\n return [SendGridChannel::class];\n }", "public function getChannel()\n {\n return $this->Channel;\n }", "public function getChannel()\n {\n return $this->Channel;\n }", "public function getChannel()\n {\n if (! $this->channel) {\n $this->set();\n }\n\n return $this->channel;\n }", "public function broadcastOn()\n {\n return ['channel-status'];\n }", "public function broadcastOn()\n {\n return [\n new Channel('sanityDeployment.' . $this->sanityDeployment->id),\n new Channel('sanityMainRepo.' . $this->sanityDeployment->sanityMainRepo->id),\n ];\n }", "public function via($notifiable)\n {\n return [DiscordChannel::class];\n }", "public static function getChannels() {\n\t\t$channels = [];\n\t\ttry {\n\t\t\t$mapper = new ObjectMapper();\n\t\t\t$response = self::getResponse();\n\t\t\t$data = json_decode( $response, true );\n\t\t\tif ( count( $data['Channels'] ) > 0 ) {\n\t\t\t\tforeach ( $data['Channels'] as $dataProject ) {\n $channels[] = $mapper->mapJson( json_encode( $dataProject ), Channel::class );\n\t\t\t\t}\n\t\t\t}\n\t\t} catch ( \\Exception $e ) {\n\t\t\tthrow $e;\n\t\t}\n\n\t\treturn $channels;\n\t}", "public function getListDeliveryStatus()\n {\n return $this->client->makeRequest('deliverystatus', 'GET');\n }", "public function onChannels(): ?array\n {\n return null;\n }", "public function getChannel()\n\t{\n\t\treturn $this->channel;\n\t}", "public function via($notifiable): array\n {\n return [TelegramChannel::class];\n }", "public function getChannel() {\n return $this->channel;\n }", "public function getChannels()\n {\n return Channel::with('subChannel.category', 'subChannel.display')->whereNull('parent_channel')->active()->get()->toArray();\n }", "public function getDestinationChannel();", "public function getJoinDefaultChannels()\n {\n return $this->joinDefaultChannels;\n }", "function hpm_channels( $mutations ) {\n $mutation = $mutations[0];\n $object = $mutation->action == 'create' ?\n $mutation->property_value :\n hpm_object( $mutation->object_type, $mutation->object_id );\n $channels = [];\n switch ($mutation->object_type) {\n case 'message':\n case 'resource':\n if ( $object->project_id === NULL ) {\n $channels = ['members'];\n } else {\n $channels[] = 'private-managers';\n $project = hpm_object( 'project', $object->project_id );\n if ( $project->contractor_id !== NULL ) {\n $channels[] = 'private-contractor-' . $project->contractor_id;\n }\n }\n break;\n case 'package':\n $channels = ['private-managers'];\n break;\n case 'person':\n case 'project':\n $channels = ['members'];\n break;\n case 'time':\n $channels = ['private-managers'];\n $worker = hpm_object( 'person', $object->worker_id );\n if ( $worker->role == 'contractor' ) {\n $channels[] = 'private-contractor-' . $object->worker_id;\n }\n break;\n default: break;\n }\n return $channels;\n}", "public function getDistributionChannel()\n {\n return $this->distributionChannel instanceof ChannelReferenceBuilder ? $this->distributionChannel->build() : $this->distributionChannel;\n }", "private function getChannels()\r\n {\r\n static $channels;\r\n\r\n if (empty($channels)) {\r\n // Store the cache forever.\r\n $cache_key = 'categoryFirst';\r\n $channels = \\SCache::sear($cache_key, function () {\r\n $categories = $this->all();\r\n $channels = [];\r\n foreach ($categories as $category) {\r\n if ($category['bclassid'] == 0) {\r\n $channels[] = $category;\r\n }\r\n }\r\n return $channels;\r\n });\r\n }\r\n\r\n return $channels;\r\n }", "public function via($notifiable)\n {\n return [NetgsmChannel::class];\n }", "public function getChannels()\n {\n $size = $this->getImageSize();\n\n return $size['channels'];\n }", "public function get($name, $optParams = [])\n {\n $params = ['name' => $name];\n $params = array_merge($params, $optParams);\n return $this->call('get', [$params], NotificationChannel::class);\n }", "public function notifications()\n {\n $notifications = $this->get(\"/api/v1/conversations?as_user_id=sis_user_id:mtm49\");\n return $notifications;\n }", "public function via($notifiable)\n {\n return [WebPushChannel::class];\n }", "public function via($notifiable)\n {\n return [WebPushChannel::class];\n }", "public function getActiveChannels(string $format = 'xml'): array\n {\n $response = $this->prepareHttpClient('/mailer/channel/list', ['format' => $format])\n ->send();\n\n if ($format === 'csv') {\n return $this->parseResponse($response);\n }\n\n $xml = new SimpleXMLElement($this->parseResponse($response));\n\n $channels = [];\n foreach ($xml->children() as $channel) {\n $channels[] = [\n 'date' => new DateTime((string) $channel->attributes()->date),\n 'name' => (string) $channel->attributes()->name,\n 'info' => (string) $channel->attributes()->info,\n ];\n }\n\n return $channels;\n }", "public function via($notifiable)\n {\n $array = ['database', 'fcm'];\n\n if (setting('twilio_disabled') != true &&\n !blank(setting('twilio_from')) &&\n !blank(setting('twilio_account_sid')) &&\n !blank(setting('twilio_account_sid'))\n ) {\n array_push($array, TwilioChannel::class);\n }\n\n if (setting('mail_disabled') != true &&\n !blank(setting('mail_host')) &&\n !blank(setting('mail_username')) &&\n !blank(setting('mail_password')) &&\n !blank(setting('mail_port')) &&\n !blank(setting('mail_from_name')) &&\n !blank(setting('mail_from_address'))\n ) {\n array_push($array, 'mail');\n }\n\n return $array;\n }", "public function getChannel(): Channel\n {\n return $this->channel;\n }", "public function via($notifiable) {\n return [OneSignalChannel::class];\n }", "public function getChannelNames()\n {\n $array = [];\n\n foreach ($this->channels as $channel) {\n $array[$channel->name] = $channel->name;\n }\n\n return $array;\n }", "public function getNotifications()\n {\n return $this->_notifications;\n }", "public function getChannels(){\n\t\t//TODO: Change query\n\t\t$query = sprintf(\"SELECT idChannel FROM Channels limit 1\");\n\n\t\t$this->dbObj->Query($query);\n\n\t\tif ($this->dbObj->numErr) {\n\t\t\t$this->parent->SetError(5);\n\t\t}\n\n\t\t$out = NULL;\n\t\twhile (!$this->dbObj->EOF) {\n\t \t\t$out[] = $this->dbObj->GetValue(\"idChannel\");\n\t\t\t$this->dbObj->Next();\n\t\t}\n\n\t \treturn $out;\n\t}", "public function via($notifiable)\n {\n $via = [];\n\n foreach ($this->sendibleTraits() as $trait) {\n $viaNameFromTrait = $this->getViaNameFromTrait($trait);\n\n if ($this->shouldBeSentVia($viaNameFromTrait, $notifiable)) {\n $via[] = $this->{$viaNameFromTrait . 'Channel'}();\n }\n }\n\n return $via;\n }", "public function via($notifiable)\n {\n return [CustomDbChannel::class, 'mail'];\n }", "public function via($notifiable)\n {\n return [FacebookChannel::class];\n }", "public function getChannels()\n {\n $channels = $this->channels->getAll();\n $channelList = [];\n\n // Cycle through all of the channels and setup data for them\n foreach ($channels as $channel) {\n $message = $this->chat->getLatestByChannel($channel->id);\n\n $channelList[] = [\n 'name' => $channel->name_trim,\n 'messages' => $channel->messages,\n 'last_message' => strtotime($message['created_at']),\n ];\n }\n\n return json_encode(array_reverse($channelList));\n }", "public function getChannel()\n {\n return $this->_access->getChannel();\n }", "public function getChannel(): string {\n\t\t\treturn $this->channel;\n\t\t}", "public function getChannel($storeId = null);", "public function channels()\n {\n return $this->belongsToMany('App\\Channel');\n }", "public function broadcastOn()\n {\n return ['whatcanido-channel'];\n }", "public function getNotificationgroups()\n {\n return isset($this->notificationgroups) ? $this->notificationgroups : null;\n }", "public function via($notifiable)\n {\n $now = Carbon::now();\n $createdAt = Carbon::parse($notifiable->created_at);\n $dayFive = $createdAt->copy()->addDays(5)->startOfDay();\n $daySix = $createdAt->copy()->addDays(6)->endOfDay();\n if ($now->between($dayFive, $daySix)) {\n $this->isDayFive = $now->between($dayFive, $dayFive->copy()->endOfDay()) ? true : false;\n return [LineBotNotificationChannel::class];\n }\n\n return [];\n }", "public function broadcastOn()\n {\n return new Channel('doctor-notification');\n }", "public function via($notifiable)\n {\n return [OneSignalChannel::class];\n }" ]
[ "0.78077316", "0.7333707", "0.7127785", "0.7089724", "0.7087921", "0.70300424", "0.69931364", "0.6973003", "0.6951073", "0.6927183", "0.68472975", "0.67785895", "0.6697527", "0.6530563", "0.65100604", "0.6496754", "0.6474866", "0.6446399", "0.643471", "0.6423392", "0.64229727", "0.63781494", "0.63726985", "0.6277284", "0.6276724", "0.6276724", "0.6276724", "0.6234952", "0.6203739", "0.6179071", "0.6179071", "0.61232203", "0.61158967", "0.61088634", "0.6020671", "0.5995534", "0.5985168", "0.59301424", "0.5916712", "0.5912588", "0.5911691", "0.5896299", "0.5893216", "0.5889689", "0.5887195", "0.5878091", "0.586549", "0.58512723", "0.5812232", "0.5805207", "0.5800807", "0.57906127", "0.5786768", "0.5786768", "0.57807684", "0.5779888", "0.57715005", "0.57678837", "0.57678837", "0.5766476", "0.5754385", "0.57491064", "0.5742647", "0.5735341", "0.5732727", "0.57325697", "0.5728877", "0.57221526", "0.57207775", "0.57169145", "0.5712525", "0.5694798", "0.5688528", "0.5683845", "0.5683054", "0.5682042", "0.567513", "0.5663718", "0.5659599", "0.5652422", "0.5652422", "0.5630605", "0.5630334", "0.56298393", "0.5625376", "0.5625225", "0.56192815", "0.56115615", "0.5607237", "0.5602894", "0.5584222", "0.55823225", "0.55728054", "0.5566249", "0.5554496", "0.555214", "0.5549145", "0.55454457", "0.5544404", "0.55443466", "0.5544159" ]
0.0
-1
Get the array representation of the notification.
public function toArray($notifiable) { return [ 'title' => $this->title, 'subtitle' => $this->subtitle, 'icon' => $this->icon, 'type' => $this->type, 'actions' => $this->actions, ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toArray()\n {\n return [\n 'on' => $this->on,\n 'message' => $this->message,\n 'remaining' => $this->remaining\n ];\n }", "public function toArray($notifiable)\n {\n return $this->message;\n }", "public function getAsArray() {\n return $this->message;\n }", "public function toArray()\n {\n $message = [\n 'from' => $this->from,\n 'message' => $this->message,\n ];\n\n return $message;\n }", "public function toArray(): array\n {\n return [\n 'message' => $this->message,\n 'types' => $this->types,\n 'dismissible' => $this->dismissible,\n ];\n }", "public function toArray($notifiable)\n {\n $notification = $this->notification;\n return [\n 'id' => $notification->id,\n 'title' => $notification->title,\n 'description' => $notification->description,\n 'button_text' => $notification->button_text,\n 'is_read' => $notification->is_read,\n 'created_at' => $notification->created_at,\n [\n 'notification_for' => $notification->notifiable\n ]\n ];\n }", "public function toArray(NotifiableInterface $notifiable): array\n {\n return [\n 'message' => 'This is a database notification sent at ' . \\date(DATE_COOKIE),\n ];\n }", "public function toArray()\n {\n return array_filter([\n 'sender' => $this->sender(),\n 'timestamp' => $this->timestamp()->timestamp,\n 'uuid' => $this->uuid(),\n ]);\n }", "public function toArray() {\n\n\t\tif (! $this->isMessagePrepared()) {\n\t\t\t$this->prepareMessage();\n\t\t}\n\n\t\t$values = array(\n\t\t\t'sender' => $this->formatAddresses($this->getSender()),\n\t\t\t'recipient' => $this->formatAddresses($this->getTo()), // @todo change me! recipient has been deprecated in favor of \"to\".\n\t\t\t'to' => $this->formatAddresses($this->getTo()),\n\t\t\t'cc' => $this->formatAddresses($this->getCc()),\n\t\t\t'bcc' => $this->formatAddresses($this->getBcc()),\n\t\t\t'reply_to' => $this->formatAddresses($this->getReplyTo()),\n\t\t\t'subject' => $this->getMailMessage()->getSubject(),\n\t\t\t'body' => $this->getMailMessage()->getBody(),\n\t\t\t'attachment' => count($this->getMailMessage()->getChildren()),\n\t\t\t'context' => (string)GeneralUtility::getApplicationContext(),\n\t\t\t'was_opened' => 0,\n\t\t\t'message_template' => $this->messageTemplate->getUid(),\n\t\t\t'message_layout' => is_object($this->messageLayout) ? $this->messageLayout->getUid() : 0,\n\t\t\t'sent_time' => time(),\n\t\t\t'mailing' => is_object($this->mailing) ? $this->mailing->getUid() : 0,\n\t\t);\n\n\t\treturn $values;\n\t}", "public function toArray($notifiable)\n {\n $this->sendFCMNotification($notifiable);\n \n return [\n 'notifyType' => $this->message['notifyType'],\n 'message' => $this->message['message'],\n 'url' => $this->message['url'],\n 'created_at' => Date('Y-m-d h:i:s')\n ];\n }", "public function toArray($notifiable)\n {\n return $this->chat->toArray();\n }", "public function get()\n {\n $data = array_reverse(array_map('unserialize', file('notification')));\n\n return [\"list\", $data];\n }", "public function toArray()\n {\n $message = [\n 'url' => $this->url,\n 'title' => $this->subject,\n 'message' => $this->body,\n ];\n\n if ($this->icon) {\n $message['image_url'] = $this->icon;\n }\n\n return $message;\n }", "public function toArray($request)\n {\n return self::notification($this);\n }", "public function getMessageData()\n {\n return (array) array();\n }", "public function toDbArray() {\n\t\treturn [\n\t\t\t'notification_event' => $this->event->getId(),\n\t\t\t'notification_user' => $this->user->getId(),\n\t\t\t'notification_timestamp' => $this->timestamp,\n\t\t\t'notification_read_timestamp' => $this->readTimestamp,\n\t\t\t'notification_bundle_hash' => $this->bundleHash,\n\t\t];\n\t}", "public function toArray()\n {\n $data = array(\n 'id' => $this->getId(),\n 'status' => $this->getStatus(),\n 'title' => $this->field ? ($this->field->getAlertDescription() ? $this->field->getAlertDescription() : $this->field->getAlertTitle()) : '',\n 'alert_description' => $this->field ? ($this->field->getAlertDescription() ? $this->field->getAlertDescription() : $this->field->getAlertTitle()) : '',\n 'field' => $this->field ? $this->field->toArray() : null,\n 'vehicle' => $this->getVehicle()->toInfoArray(),\n 'user' => $this->check_list ? $this->check_list->getUser()->toInfoArray() : array(),\n 'description' => $this->getDescription(),\n 'images' => $this->getImages(),\n 'thumbnail' => $this->getThumbnail(),\n 'comments' => $this->getComments(),\n 'creation_date' => $this->getCreationDate()->getTimestamp(),\n 'update_date' => $this->getUpdateDate()->getTimestamp(),\n 'history' => $this->getHistory(),\n 'refreshed_times' => $this->getRefreshedTimes()\n );\n return $data;\n }", "public function toArray($notifiable)\n {\n return [\n 'type_name' => 'message',\n 'message' => trans(\n 'notifications.new_message_notification',\n [\n 'user' => $this->message->user->display_name,\n ]\n ),\n 'message_id' => $this->message->id,\n 'user_id' => $this->message->user->id\n ];\n }", "public function toArray() {\n return array(\n 'id' => $this->_id,\n 'queue' => $this->_queue,\n 'payload' => $this->_payload,\n 'attempts' => $this->_attempts,\n 'reserved_at' => $this->_reserved_at,\n 'available_at' => $this->_available_at,\n 'created_at' => $this->_created_at\n );\n }", "public function toArray()\n {\n return [\n 'code' => ModelsNotification::SCHEDULE_CREATED,\n ];\n }", "public function toArray()\n {\n return [\n 'title' => $this->title,\n 'body' => $this->body,\n 'sound' => $this->sound,\n 'badge' => $this->badge,\n 'ttl' => $this->ttl,\n 'channelId' => $this->channelId,\n 'data' => empty($this->jsonData) ? '{}' : json_encode($this->jsonData),\n ];\n }", "public static function notifications(): array\n {\n return [];\n }", "public function toMessage(): array;", "public function toArray($notifiable)\n {\n $user = App\\User::find(1);\n\n foreach ($user->notifications as $notification) {\n echo $notification->type;\n }\n return [\n 'invoice_id' => $this->invoice->id,\n 'amount' => $this->invoice->amount,\n ];\n }", "public function toArray($request)\n {\n return [\n 'id' => $this->id,\n 'title' => $this->target()->getNotificationTitle($this->resource),\n 'body' => $this->target()->getNotificationBody($this->resource),\n 'image' => $this->target()->getNotificationImage($this->resource),\n 'dashboard_url' => $this->target()->getNotificationDashboardUrl($this->resource),\n 'type' => $this->data['type'] ?? null,\n 'data' => $this->target()->getNotificationData($this->resource),\n 'read' => (bool) $this->read_at,\n 'created_at' => $this->created_at->diffForHumans(),\n ];\n }", "public function toArray() {\n\t\treturn array(\n\t\t\tself::FIELD_ID_CHAT=>$this->getIdChat(),\n\t\t\tself::FIELD_ID_JOUEUR=>$this->getIdJoueur(),\n\t\t\tself::FIELD_PSEUDO=>$this->getPseudo(),\n\t\t\tself::FIELD_QUAND=>$this->getQuand(),\n\t\t\tself::FIELD_MESSAGE=>$this->getMessage());\n\t}", "public function toArray($notifiable)\n {\n return [\n 'message' => $this->getMessage(),\n 'href' => $this->getHref(),\n ];\n }", "public function toArray($notifiable)\n {\n return [\n 'notification_id' => $this->id,\n 'todo_id' => $this->todo->id,\n 'title' => $this->todo->title,\n 'text' => $this->todo->text,\n ];\n }", "public function toArray()\n\t{\n\t\treturn array(\n\t\t\t'name' => $this->name,\n\t\t\t'title' => $this->title,\n\t\t\t'hasPermission' => $this->hasPermission,\n\t\t\t'messages' => $this->messages,\n\t\t\t'confirmation' => $this->confirmation,\n\t\t);\n\t}", "public function jsonSerialize()\n {\n return [\n 'id' => $this->getId(),\n 'textNotification' => $this->getTextNotification(),\n 'createdAt' => $this->getCreatedAt()\n ];\n }", "public function toArray()\n {\n return [\n 'timestamp' => $this->timestamp,\n 'type' => $this->type,\n 'content' => $this->content\n ];\n }", "public function toArray() {\n\t\t$ret = array(\n\t\t\t\"contactDetails\" => array(\n\t\t\t\t\"contactName\" => Client::clean($this->name),\n\t\t\t\t\"telephone\" => Client::clean($this->phoneNumber),\n\t\t\t),\n\t\t\t\"address\" => $this->address->toArray(),\n\t\t);\n\t\tif ($this->emailAddress || $this->mobileNumber) {\n\t\t\t$ret['notificationDetails'] = array();\n\t\t}\n\t\tif ($this->emailAddress) {\n\t\t\t$ret['notificationDetails']['email'] = Client::clean($this->emailAddress);\n\t\t}\n\t\tif ($this->mobileNumber) {\n\t\t\t$ret['notificationDetails']['mobile'] = Client::clean($this->mobileNumber);\n\t\t}\n\t\treturn $ret;\n\t}", "public function toArray()\n {\n $result = array(\n Epicom_MHub_Helper_Data::API_SHIPMENT_EVENT_CREATED => Mage::helper ('mhub')->__('Created'),\n Epicom_MHub_Helper_Data::API_SHIPMENT_EVENT_NF => Mage::helper ('mhub')->__('NF'),\n Epicom_MHub_Helper_Data::API_SHIPMENT_EVENT_SENT => Mage::helper ('mhub')->__('Sent'),\n Epicom_MHub_Helper_Data::API_SHIPMENT_EVENT_DELIVERED => Mage::helper ('mhub')->__('Delivered'),\n Epicom_MHub_Helper_Data::API_SHIPMENT_EVENT_FAILED => Mage::helper ('mhub')->__('Failed'),\n Epicom_MHub_Helper_Data::API_SHIPMENT_EVENT_PARCIAL => Mage::helper ('mhub')->__('Parcial'),\n Epicom_MHub_Helper_Data::API_SHIPMENT_EVENT_CANCELED => Mage::helper ('mhub')->__('Canceled'),\n );\n\n return $result;\n }", "public function toArray(): array\n {\n return [\n 'currency' => $this->currency,\n 'amount' => $this->amount,\n 'message' => $this->message,\n ];\n }", "public function toArray($notifiable)\n {\n return $this->data;\n }", "public function toArray($notifiable)\n {\n return [\n 'model_id' => $this->conv->id,\n 'model_type' => get_class($this->conv),\n 'message' => 'Richiesta di approvazione per la convenzione '.$this->conv->descrizione_titolo.' (n. '.$this->conv->id.') è stata inviata! ',\n 'description' => $this->data['description'] ? $this->data['description'] : '',\n 'subject' => 'Richiesta approvazione'\n ];\n }", "public function toArray($notifiable)\n {\n $this->data['id']=$this->id;\n $options = array(\n 'cluster' => 'ap1',\n 'encrypted' => true\n );\n $pusher = new \\Pusher\\Pusher(\n env('PUSHER_APP_KEY'),\n env('PUSHER_APP_SECRET'),\n env('PUSHER_APP_ID'),\n $options\n );\n $pusher->trigger('NotificationEvent', 'send-message/'.$notifiable->id, $this->data);\n return $this->data;\n }", "public function toArray() {\n return $this->array;\n }", "public function toArray($notifiable)\n {\n return [\n \"server_id\" => $this->server->id,\n \"time\" => time()\n //\n ];\n }", "public function toArray()\n {\n return [\n 'subject' => $this->adder,\n 'action' => 'added you to',\n 'object_type' => $this->entityType,\n 'object_name' => $this->entityName,\n 'object_id' => $this->entityId,\n ];\n }", "public function toArray()\n {\n return [\n 'success' => $this->success,\n 'error' => !$this->success,\n 'message' => $this->message,\n ] + $this->data;\n }", "public function toArray() {\n\t\treturn $this->array;\n\t}", "public function toArray($notifiable)\n\t{\n\t\treturn [\n\t\t\t//\n\t\t];\n\t}", "public function toArray()\n {\n $packet = $this->getPacket();\n\n if(empty($packet['latest_line'])) {\n $packet['latest_line'] = '';\n }\n if(empty($packet['progress'])) {\n $packet['progress'] = 0;\n }\n\n return array(\n 'id' => (string)$this->id,\n 'queue' => (string)$this->queue,\n 'class' => (string)$this->class,\n 'data' => $this->data,\n 'worker' => (string)$packet['worker'],\n 'status' => (int)$packet['status'],\n 'created' => (float)$packet['created'],\n 'updated' => (float)$packet['updated'],\n 'delayed' => (float)$packet['delayed'],\n 'started' => (float)$packet['started'],\n 'finished' => (float)$packet['finished'],\n 'progress' => (float)$packet['progress'],\n 'progress_l' => (string)$packet['latest_line'],\n 'output' => $packet['output'],\n 'exception' => $packet['exception']\n );\n }", "public function toArray()\n {\n return $this->info;\n }", "public function toArray()\n {\n return [\n 'title' => MessengerUtils::checkStringLength($this->title, 80),\n 'item_url' => $this->item_url,\n 'image_url' => $this->image_url,\n 'subtitle' => MessengerUtils::checkStringLength($this->subtitle, 80),\n 'buttons' => MessengerUtils::checkArraySize($this->buttons, 3)\n ];\n }", "public function toSlackObjectArray(): array;", "public function toArray($notifiable) {\n\t\treturn [\n\t\t\t//\n\t\t];\n\t}", "public function toArray(){\n $this->buildArray();\n return $this->array;\n }", "public function toArray()\n {\n return array(\n 'id' => $this->id,\n 'description' => $this->description,\n 'involvementKindID' => $this->involvementKindID,\n 'reportKindID' => $this->reportKindID,\n 'locationID' => $this->locationID,\n 'personID' => $this->personID,\n 'departmentID' => $this->departmentID,\n 'dateTime' => $this->dateTime,\n 'statusID' => $this->statusID,\n 'actionTaken' => $this->actionTaken,\n 'photoPath' => $this->photoPath\n );\n }", "public function toArray(): array\n {\n /**\n * @todo - fix this - see HER-3124\n */\n return [\n \"id\" => $this->id,\n 'connection' => $this->getAttribute('connection'),\n \"queue\" => $this->queue,\n \"payload\" => $this->payload,\n \"failed_at\" => $this->perhaps_format_date($this->failed_at),\n\n \"created_at\" => $this->perhaps_format_date($this->created_at),\n \"updated_at\" => $this->perhaps_format_date($this->updated_at),\n\n \"model_name\" => self::class,\n ];\n }", "public function toArray()\n {\n return array_filter(array(\n 'VPSProtocol' => $this->vpsProtocol,\n 'TxType' => $this->txType,\n 'Vendor' => $this->vendor,\n 'VendorTxCode' => $this->vendorTxCode,\n 'Currency' => $this->currency,\n 'NotificationURL' => $this->notificationUrl,\n 'Profile' => $this->profile\n ));\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n 'type'=>'community.topic.replied',\n 'topicId'=>$this->reply->communityTopic->id,\n 'topicTitle'=>$this->reply->communityTopic->title,\n 'replyId'=>$this->reply->id,\n 'replyContent'=>$this->reply->content,\n 'replierId'=>$this->reply->user->id,\n 'replierName'=>$this->reply->user->name,\n ];\n }", "public function toArray($notifiable)\n {\n return [\n 'purchase_requisition_id' => $this->purchaseRequisition->id,\n 'number' => $this->purchaseRequisition->number,\n 'message' => 'A new purchase requisition was saved',\n ];\n }", "public function toArray($notifiable)\n {\n return [\n 'response_id' => $this->response->id,\n 'ticket_id' => $this->ticket->id,\n ];\n }", "public function toArray( $notifiable )\n\t{\n\t\treturn [\n\t\t\t//\n\t\t];\n\t}", "public function toArray( $notifiable )\n\t{\n\t\treturn [\n\t\t\t//\n\t\t];\n\t}", "public function toArray($notifiable)\n {\n return [\n 'type' => 'notification',\n 'title' => 'Pengajuan Baru',\n 'body' => 'Pengajuan baru dengan nomor registrasi '.$this->pengajuan.' Menunggu verifikasi dari anda'\n ];\n }", "public function toArray()\n {\n return [\n 'message' => '<span class=\"text-gray-800 font-medium\">'.$this->reply->owner->full_name.'</span> vous a mentionné dans le sujet <span class=\"text-gray-800 font-medium\">'. $this->reply->thread->title.'</span>',\n 'link' => $this->reply->path(),\n 'user_profile' => $this->reply->owner->username,\n 'user_photo' => $this->reply->owner->picture,\n 'action' => 'mention'\n ];\n }", "public function toArray($notifiable)\n {\n $timestamp = Carbon::now()->addSecond()->toDateTimeString();\n return [\n 'body' => $this->loan->staff->full_name . \" was request to loan salary amount: $\" . $this->loan->amount . \"<br/>Reason: {$this->loan->reason}\",\n 'notify_type' => 'loan_request',\n 'notify_id' => $this->loan->uuid,\n 'title' => 'Loan Request',\n 'created_at' => $timestamp,\n 'updated_at' => $timestamp\n ];\n }", "public function toArray() : array\n {\n return $this->data;\n }", "public function toArray(TreasurerNotifiable $notifiable): array\n {\n return [];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }", "public function toArray($notifiable)\n {\n return [\n //\n ];\n }" ]
[ "0.76758885", "0.76516277", "0.75636953", "0.74597746", "0.7458128", "0.734528", "0.73423344", "0.72810096", "0.72445726", "0.7225404", "0.7216026", "0.72065705", "0.71766704", "0.71498305", "0.70820516", "0.70820177", "0.70782363", "0.70270497", "0.70252293", "0.702143", "0.7005507", "0.69897133", "0.69835114", "0.69746983", "0.69453293", "0.69343853", "0.6905672", "0.6898733", "0.6853946", "0.6844214", "0.6842489", "0.68060786", "0.6791964", "0.67899585", "0.67766184", "0.67683345", "0.67649716", "0.6764599", "0.6748395", "0.6726294", "0.6711944", "0.6711614", "0.670731", "0.67052966", "0.66935706", "0.66897994", "0.668776", "0.66654325", "0.6653741", "0.663988", "0.6629974", "0.66294295", "0.66288227", "0.66218674", "0.6619021", "0.66135013", "0.6587241", "0.6587241", "0.6583618", "0.6583216", "0.6583014", "0.65681624", "0.65670633", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306", "0.6566306" ]
0.0
-1
Run the database seeds.
public function run() { // Insert ACL types DB::table('acl_types')->insert(array( array('id' => 1, 'name' => 'Self'), array('id' => 2, 'name' => 'All'), array('id' => 3, 'name' => 'User'), array('id' => 4, 'name' => 'Group'), )); // Insert ACL flags DB::table('acl_flags')->insert(array( array('id' => 1, 'name' => 'acl_manage'), array('id' => 2, 'name' => 'field_edit'), array('id' => 3, 'name' => 'field_manage'), array('id' => 4, 'name' => 'field_view'), array('id' => 5, 'name' => 'group_edit'), array('id' => 6, 'name' => 'group_manage'), array('id' => 7, 'name' => 'user_edit'), array('id' => 8, 'name' => 'user_manage'), )); // Insert the user status values DB::table('user_status')->insert(array( array('id' => 1, 'name' => 'Inactive'), array('id' => 2, 'name' => 'Active'), array('id' => 3, 'name' => 'Blocked'), )); // Insert token types DB::table('token_types')->insert(array( array('id' => 1, 'name' => 'Email'), array('id' => 2, 'name' => 'Password'), )); // Insert device types DB::table('device_types')->insert(array( array('id' => 1, 'name' => 'Computer'), array('id' => 2, 'name' => 'Mobile'), array('id' => 3, 'name' => 'Tablet'), )); // Insert group types DB::table('group_types')->insert(array( array('id' => 1, 'name' => 'Open'), array('id' => 2, 'name' => 'Request'), array('id' => 3, 'name' => 'Closed'), )); // Insert field categories DB::table('field_categories')->insert(array( array('id' => 1, 'name' => 'Basic'), array('id' => 2, 'name' => 'Contact'), array('id' => 3, 'name' => 'Other'), )); // Insert field types DB::table('field_types')->insert(array( array('id' => 1, 'name' => 'TextBox', 'option' => Flags::NO), array('id' => 2, 'name' => 'TextArea', 'option' => Flags::NO), array('id' => 3, 'name' => 'Radio', 'option' => Flags::YES), array('id' => 4, 'name' => 'CheckBox', 'option' => Flags::YES), array('id' => 5, 'name' => 'Dropdown', 'option' => Flags::YES), array('id' => 6, 'name' => 'DatePicker', 'option' => Flags::NO), )); // Insert admin user account DB::table('users')->insert(array( 'name' => 'John Doe', 'gender' => 'M', 'date_of_birth' => '1980-07-01', 'timezone' => 'America/Chicago', 'password' => Hash::make('password'), 'title' => 'Site administrator', 'hash' => str_random(8), 'status' => UserStatus::ACTIVE, )); // Insert admin email addresses DB::table('user_emails')->insert(array( 'user_id' => 1, 'address' => 'admin@keychain.sso', 'primary' => Flags::YES, 'verified' => Flags::YES, )); // Insert the group entries DB::table('groups')->insert(array( 'name' => 'Registered users', 'description' => 'All registered users on the website.', 'type' => GroupTypes::CLOSED, 'hash' => str_random(8), 'auto_join' => Flags::YES, )); DB::table('groups')->insert(array( 'name' => 'Sysadmins', 'description' => 'System administrators with full control over the website.', 'type' => GroupTypes::CLOSED, 'hash' => str_random(8), )); // Link the user to registered users group DB::table('user_groups')->insert(array( 'user_id' => 1, 'group_id' => 1, )); // Link user to the sysadmin group DB::table('user_groups')->insert(array( 'user_id' => 1, 'group_id' => 2, )); // Allow sysadmins to edit all users DB::table('acl')->insert(array( 'flag' => ACLFlags::USER_EDIT, 'subject_id' => 2, 'subject_type' => ACLTypes::GROUP, 'object_id' => 0, 'object_type' => ACLTypes::ALL, )); // Allow registered users to edit their own profiles DB::table('acl')->insert(array( 'flag' => ACLFlags::USER_EDIT, 'subject_id' => 1, 'subject_type' => ACLTypes::GROUP, 'object_id' => 0, 'object_type' => ACLTypes::SELF, )); // Allow sysadmins to manage all users DB::table('acl')->insert(array( 'flag' => ACLFlags::USER_MANAGE, 'subject_id' => 2, 'subject_type' => ACLTypes::GROUP, 'object_id' => 0, 'object_type' => ACLTypes::ALL, )); // Allow sysadmins to edit all groups DB::table('acl')->insert(array( 'flag' => ACLFlags::GROUP_EDIT, 'subject_id' => 2, 'subject_type' => ACLTypes::GROUP, 'object_id' => 0, 'object_type' => ACLTypes::ALL, )); // Allow sysadmins to manage all groups DB::table('acl')->insert(array( 'flag' => ACLFlags::GROUP_MANAGE, 'subject_id' => 2, 'subject_type' => ACLTypes::GROUP, 'object_id' => 0, 'object_type' => ACLTypes::ALL, )); // Allow sysadmins to manage fields DB::table('acl')->insert(array( 'flag' => ACLFlags::FIELD_MANAGE, 'subject_id' => 2, 'subject_type' => ACLTypes::GROUP, 'object_id' => 0, 'object_type' => ACLTypes::ALL, )); // Allow sysadmins to manage ACLs DB::table('acl')->insert(array( 'flag' => ACLFlags::ACL_MANAGE, 'subject_id' => 2, 'subject_type' => ACLTypes::GROUP, 'object_id' => 0, 'object_type' => ACLTypes::ALL, )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n factory(App\\Editeur::class, 40) ->create();\n factory(App\\Auteur::class, 40) ->create();\n factory(App\\Livre::class, 80) ->create();\n\n for ($i = 1; $i < 41; $i++) {\n $number = rand(2, 8);\n for ($j = 1; $j <= $number; $j++) {\n DB::table('auteur_livre')->insert([\n 'livre_id' => rand(1, 40),\n 'auteur_id' => $i\n ]);\n }\n }\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Let's truncate our existing records to start from scratch.\n Assignation::truncate();\n\n $faker = \\Faker\\Factory::create();\n \n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 40; $i++) {\n Assignation::create([\n 'ad_id' => $faker->numberBetween(1,20),\n 'buyer_id' => $faker->numberBetween(1,6),\n 'seller_id' => $faker->numberBetween(6,11),\n 'state' => NULL,\n ]);\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n \t$faker = Faker::create();\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$post = new Post;\n \t\t$post->title = $faker->sentence();\n \t\t$post->body = $faker->paragraph();\n \t\t$post->category_id = rand(1, 5);\n \t\t$post->save();\n \t}\n\n \t$list = ['General', 'Technology', 'News', 'Internet', 'Mobile'];\n \tforeach($list as $name) {\n \t\t$category = new Category;\n \t\t$category->name = $name;\n \t\t$category->save();\n \t}\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$comment = new Comment;\n \t\t$comment->comment = $faker->paragraph();\n \t\t$comment->post_id = rand(1,20);\n \t\t$comment->save();\n \t}\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call(RoleTableSeeder::class);\n $this->call(UserTableSeeder::class);\n \n factory('App\\Cat', 5)->create();\n $tags = factory('App\\Tag', 8)->create();\n\n factory(Post::class, 15)->create()->each(function($post) use ($tags){\n $post->comments()->save(factory(Comment::class)->make());\n $post->tags()->attach( $tags->random(mt_rand(1,4))->pluck('id')->toArray() );\n });\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('post')->insert(\n [\n 'title' => 'Test Post1',\n 'desc' => str_random(100).\" post1\",\n 'alias' => 'test1',\n 'keywords' => 'test1',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post2',\n 'desc' => str_random(100).\" post2\",\n 'alias' => 'test2',\n 'keywords' => 'test2',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post3',\n 'desc' => str_random(100).\" post3\",\n 'alias' => 'test3',\n 'keywords' => 'test3',\n ]\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n \t$faker = Factory::create();\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\tDepartment::create([\n \t\t\t'name' => $department\n \t\t]);\n \t}\n \tforeach ($this->collections as $key => $collection) {\n \t\tCollection::create([\n \t\t\t'name' => $collection\n \t\t]);\n \t}\n \t\n \t\n \tfor ($i=0; $i < 40; $i++) {\n \t\tUser::create([\n \t\t\t'name' \t=>\t$faker->name,\n \t\t\t'email' \t=>\t$faker->email,\n \t\t\t'password' \t=>\tbcrypt('123456'),\n \t\t]);\n \t} \n \t\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\t//echo ($key + 1) . PHP_EOL;\n \t\t\n \t\tfor ($i=0; $i < 10; $i++) { \n \t\t\techo $faker->name . PHP_EOL;\n\n \t\t\tArt::create([\n \t\t\t\t'name'\t\t\t=> $faker->sentence(2),\n \t\t\t\t'img'\t\t\t=> $this->filenames[$i],\n \t\t\t\t'medium'\t\t=> 'canvas',\n \t\t\t\t'department_id'\t=> $key + 1,\n \t\t\t\t'user_id'\t\t=> $this->userIndex,\n \t\t\t\t'dimension'\t\t=> '18.0 x 24.0',\n\t\t\t\t]);\n \t\t\t\t\n \t\t\t\t$this->userIndex ++;\n \t\t}\n \t}\n \t\n \tdd(\"END\");\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->dataCategory();\n factory(App\\Model\\Category::class, 70)->create();\n factory(App\\Model\\Producer::class, rand(5,10))->create();\n factory(App\\Model\\Provider::class, rand(5,10))->create();\n factory(App\\Model\\Product::class, 100)->create();\n factory(App\\Model\\Album::class, 300)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n\n factory('App\\User', 10 )->create();\n\n $users= \\App\\User::all();\n $users->each(function($user){ factory('App\\Category', 1)->create(['user_id'=>$user->id]); });\n $users->each(function($user){ factory('App\\Tag', 3)->create(['user_id'=>$user->id]); });\n\n\n $users->each(function($user){\n factory('App\\Post', 10)->create([\n 'user_id'=>$user->id,\n 'category_id'=>rand(1,20)\n ]\n );\n });\n\n $posts= \\App\\Post::all();\n $posts->each(function ($post){\n\n $post->tags()->attach(array_unique([rand(1,20),rand(1,20),rand(1,20)]));\n });\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $types = factory(\\App\\Models\\Type::class, 5)->create();\n\n $cities = factory(\\App\\Models\\City::class, 10)->create();\n\n $cities->each(function ($city) {\n $districts = factory(\\App\\Models\\District::class, rand(2, 5))->create([\n 'city_id' => $city->id,\n ]);\n\n $districts->each(function ($district) {\n $properties = factory(\\App\\Models\\Property::class, rand(2, 5))->create([\n 'type_id' => rand(1, 5),\n 'district_id' => $district->id\n ]);\n\n $properties->each(function ($property) {\n $galleries = factory(\\App\\Models\\Gallery::class, rand(3, 10))->create([\n 'property_id' => $property->id\n ]);\n });\n });\n });\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n\n $categories = factory(App\\Models\\Category::class, 10)->create();\n\n $categories->each(function ($category) {\n $category\n ->posts()\n ->saveMany(\n factory(App\\Models\\Post::class, 3)->make()\n );\n });\n }", "public function run()\n {\n $this->call(CategoriesTableSeeder::class);\n\n $users = factory(App\\User::class, 5)->create();\n $recipes = factory(App\\Recipe::class, 30)->create();\n $preparations = factory(App\\Preparation::class, 70)->create();\n $photos = factory(App\\Photo::class, 90)->create();\n $comments = factory(App\\Comment::class, 200)->create();\n $flavours = factory(App\\Flavour::class, 25)->create();\n $flavour_recipe = factory(App\\FlavourRecipe::class, 50)->create();\n $tags = factory(App\\Tag::class, 25)->create();\n $recipe_tag = factory(App\\RecipeTag::class, 50)->create();\n $ingredients = factory(App\\Ingredient::class, 25)->create();\n $ingredient_preparation = factory(App\\IngredientPreparation::class, 300)->create();\n \n \n \n DB::table('users')->insert(['name' => 'SimpleUtilisateur', 'email' => 'simpleadressemail@mail.com', 'password' => bcrypt('SimpleMotDePasse')]);\n \n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n // Sample::truncate();\n // TestItem::truncate();\n // UOM::truncate();\n Role::truncate();\n User::truncate();\n\n // factory(Role::class, 4)->create();\n Role::create([\n 'name'=> 'Director',\n 'description'=> 'Director type'\n ]);\n\n Role::create([\n 'name'=> 'Admin',\n 'description'=> 'Admin type'\n ]);\n Role::create([\n 'name'=> 'Employee',\n 'description'=> 'Employee type'\n ]);\n Role::create([\n 'name'=> 'Technician',\n 'description'=> 'Technician type'\n ]);\n \n factory(User::class, 20)->create()->each(\n function ($user){\n $roles = \\App\\Role::all()->random(mt_rand(1, 2))->pluck('id');\n $user->roles()->attach($roles);\n }\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n UsersLevel::create([\n 'name' => 'Administrator'\n ]);\n\n UsersLevel::create([\n 'name' => 'User'\n ]);\n\n User::create([\n 'username' => 'admin',\n 'password' => bcrypt('admin123'),\n 'level_id' => 1,\n 'fullname' => \"Super Admin\",\n 'email'=> \"admin@admin.com\"\n ]);\n\n\n \\App\\CategoryPosts::create([\n 'name' =>'Paket Trip'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' =>'Destinasi Kuliner'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Event'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Profil'\n ]);\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'email' => 'admin@petstore.com',\n 'avatar' => \"avatar\",\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',\n ]);\n $this->call(CategorySeeder::class);\n // \\App\\Models\\Admin::factory(1)->create();\n \\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Category::factory(50)->create();\n \\App\\Models\\PetComment::factory(50)->create();\n $pets = \\App\\Models\\Pet::factory(50)->create();\n foreach ($pets as $pet) {\n \\App\\Models\\PetTag::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\PetPhotoUrl::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\Order::factory(1)->create(['pet_id' => $pet->id]);\n };\n }", "public function run()\n { \n\n $this->call(RoleSeeder::class);\n \n $this->call(UserSeeder::class);\n\n Storage::deleteDirectory('socials-icon');\n Storage::makeDirectory('socials-icon');\n $socials = Social::factory(7)->create();\n\n Storage::deleteDirectory('countries-flag');\n Storage::deleteDirectory('countries-firm');\n Storage::makeDirectory('countries-flag');\n Storage::makeDirectory('countries-firm');\n $countries = Country::factory(18)->create();\n\n // Se llenan datos de la tabla muchos a muchos - social_country\n foreach ($countries as $country) {\n foreach ($socials as $social) {\n\n $country->socials()->attach($social->id, [\n 'link' => 'https://www.facebook.com/ministeriopalabrayespiritu/'\n ]);\n }\n }\n\n Person::factory(50)->create();\n\n Category::factory(7)->create();\n\n Video::factory(25)->create(); \n\n $this->call(PostSeeder::class);\n\n Storage::deleteDirectory('documents');\n Storage::makeDirectory('documents');\n Document::factory(25)->create();\n\n }", "public function run()\n {\n $faker = Faker::create('id_ID');\n /**\n * Generate fake author data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('author')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Generate fake publisher data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('publisher')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Seeding payment method\n */\n DB::table('payment')->insert([\n ['name' => 'Mandiri'],\n ['name' => 'BCA'],\n ['name' => 'BRI'],\n ['name' => 'BNI'],\n ['name' => 'Pos Indonesia'],\n ['name' => 'BTN'],\n ['name' => 'Indomaret'],\n ['name' => 'Alfamart'],\n ['name' => 'OVO'],\n ['name' => 'Cash On Delivery']\n ]);\n }", "public function run()\n {\n DatabaseSeeder::seedLearningStylesProbs();\n DatabaseSeeder::seedCampusProbs();\n DatabaseSeeder::seedGenderProbs();\n DatabaseSeeder::seedTypeStudentProbs();\n DatabaseSeeder::seedTypeProfessorProbs();\n DatabaseSeeder::seedNetworkProbs();\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n // MyList::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 3; $i++) {\n MyList::create([\n 'title' => 'List-'.($i+1),\n 'color' => $faker->sentence,\n 'icon' => $faker->randomDigitNotNull,\n 'index' => $faker->randomDigitNotNull,\n 'user_id' => 1,\n ]);\n }\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Products::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few products in our database:\n for ($i = 0; $i < 50; $i++) {\n Products::create([\n 'name' => $faker->word,\n 'sku' => $faker->randomNumber(7, false),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n User::create([\n 'name' => 'Pablo Rosales',\n 'email' => 'prosales@researchmobile.co',\n 'password' => bcrypt('admin'),\n 'status' => 1,\n 'role_id' => 1,\n 'movil' => 0\n ]);\n\n User::create([\n 'name' => 'Usuario Movil',\n 'email' => 'movil@researchmobile.co',\n 'password' => bcrypt('secret'),\n 'status' => 1,\n 'role_id' => 3,\n 'movil' => 1\n ]);\n\n Roles::create([\n 'name' => 'Administrador'\n ]);\n Roles::create([\n 'name' => 'Operaciones'\n ]);\n Roles::create([\n 'name' => 'Comercial'\n ]);\n Roles::create([\n 'name' => 'Aseguramiento'\n ]);\n Roles::create([\n 'name' => 'Facturación'\n ]);\n Roles::create([\n 'name' => 'Creditos y Cobros'\n ]);\n\n factory(App\\Customers::class, 100)->create();\n }", "public function run()\n {\n // php artisan db:seed --class=StoreTableSeeder\n\n foreach(range(1,20) as $i){\n $faker = Faker::create();\n Store::create([\n 'name' => $faker->name,\n 'desc' => $faker->text,\n 'tags' => $faker->word,\n 'address' => $faker->address,\n 'longitude' => $faker->longitude($min = -180, $max = 180),\n 'latitude' => $faker->latitude($min = -90, $max = 90),\n 'created_by' => '1'\n ]);\n }\n\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name'=>\"test\",\n 'password' => Hash::make('123'),\n 'email'=>'test@yandex.ru'\n ]);\n DB::table('tags')->insert(['name'=>'tags']);\n $this->call(UserSeed::class);\n $this->call(CategoriesSeed::class);\n $this->call(TopicsSeed::class);\n $this->call(CommentariesSeed::class);\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n echo 'seeding permission...', PHP_EOL;\n $permissions = [\n 'role-list',\n 'role-create',\n 'role-edit',\n 'role-delete',\n 'formation-list',\n 'formation-create',\n 'formation-edit',\n 'formation-delete',\n 'user-list',\n 'user-create',\n 'user-edit',\n 'user-delete'\n ];\n foreach ($permissions as $permission) {\n Permission::create(['name' => $permission]);\n }\n echo 'seeding users...', PHP_EOL;\n\n $user= User::create(\n [\n 'name' => 'Mr. admin',\n 'email' => 'admin@yahoo.com',\n 'password' => bcrypt('admin'),\n 'remember_token' => null,\n ]\n );\n echo 'Create Roles...', PHP_EOL;\n Role::create(['name' => 'former']);\n Role::create(['name' => 'learner']);\n Role::create(['name' => 'admin']);\n Role::create(['name' => 'manager']);\n Role::create(['name' => 'user']);\n\n echo 'seeding Role User...', PHP_EOL;\n $user->assignRole('admin');\n $role = $user->assignRole('admin');\n $role->givepermissionTo(Permission::all());\n\n \\DB::table('languages')->insert(['name' => 'English', 'code' => 'en']);\n \\DB::table('languages')->insert(['name' => 'Français', 'code' => 'fr']);\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(ThemeSeeder::class);\n\n //\n\n DB::table('paypal_info')->insert([\n 'client_id' => '',\n 'client_secret' => '',\n 'currency' => '',\n ]);\n DB::table('contact_us')->insert([\n 'content' => '',\n ]);\n DB::table('setting')->insert([\n 'site_name' => ' ',\n ]);\n DB::table('terms_and_conditions')->insert(['terms_and_condition' => 'text']);\n }", "public function run()\n {\n $this->call([\n UserSeeder::class,\n ]);\n\n User::factory(20)->create();\n Author::factory(20)->create();\n Book::factory(60)->create();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UserSeeder::class);\n $this->call(RolePermissionSeeder::class);\n $this->call(AppmodeSeeder::class);\n\n // \\App\\Models\\Appmode::factory(3)->create();\n \\App\\Models\\Doctor::factory(100)->create();\n \\App\\Models\\Unit::factory(50)->create();\n \\App\\Models\\Broker::factory(100)->create();\n \\App\\Models\\Patient::factory(100)->create();\n \\App\\Models\\Expence::factory(100)->create();\n \\App\\Models\\Testcategory::factory(100)->create();\n \\App\\Models\\Test::factory(50)->create();\n \\App\\Models\\Parameter::factory(50)->create();\n \\App\\Models\\Sale::factory(50)->create();\n \\App\\Models\\SaleItem::factory(100)->create();\n \\App\\Models\\Goption::factory(1)->create();\n \\App\\Models\\Pararesult::factory(50)->create();\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // DB::table('roles')->insert(\n // [\n // ['name' => 'admin', 'description' => 'Administrator'],\n // ['name' => 'student', 'description' => 'Student'],\n // ['name' => 'lab_tech', 'description' => 'Lab Tech'],\n // ['name' => 'it_staff', 'description' => 'IT Staff Member'],\n // ['name' => 'it_manager', 'description' => 'IT Manager'],\n // ['name' => 'lab_manager', 'description' => 'Lab Manager'],\n // ]\n // );\n\n // DB::table('users')->insert(\n // [\n // 'username' => 'admin', \n // 'password' => Hash::make('password'), \n // 'active' => 1,\n // 'name' => 'Administrator',\n // 'email' => 'programmerlemar@gmail.com',\n // 'role_id' => \\App\\Role::where('name', 'admin')->first()->id\n // ]\n // );\n\n DB::table('status')->insert([\n // ['name' => 'Active'],\n // ['name' => 'Cancel'],\n // ['name' => 'Disable'],\n // ['name' => 'Open'],\n // ['name' => 'Closed'],\n // ['name' => 'Resolved'],\n ['name' => 'Used'],\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create([\n 'name' => 'Qwerty',\n 'email' => 'qwerty@gmail.com',\n 'password' => bcrypt('secretpassw'),\n ]);\n\n factory(User::class, 59)->create([\n 'password' => bcrypt('secretpassw'),\n ]);\n\n for ($i = 1; $i < 11; $i++) {\n factory(Category::class)->create([\n 'name' => 'Category ' . $i,\n ]);\n }\n\n for ($i = 1; $i < 101; $i++) {\n factory(Product::class)->create([\n 'name' => 'Product ' . $i,\n ]);\n }\n }", "public function run()\n {\n\n \t// Making main admin role\n \tDB::table('roles')->insert([\n 'name' => 'Admin',\n ]);\n\n // Making main category\n \tDB::table('categories')->insert([\n 'name' => 'Other',\n ]);\n\n \t// Making main admin account for testing\n \tDB::table('users')->insert([\n 'name' \t\t=> 'Admin',\n 'email' \t=> 'admin@example.com',\n 'password' => bcrypt('12345'),\n 'role_id' => 1,\n 'created_at' => date('Y-m-d H:i:s' ,time()),\n 'updated_at' => date('Y-m-d H:i:s' ,time())\n ]);\n\n \t// Making random users and posts\n factory(App\\User::class, 10)->create();\n factory(App\\Post::class, 35)->create();\n }", "public function run()\n {\n $faker = Faker::create();\n\n \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Chef',\n 'salario' => '15000.00'\n ));\n\n\t\t \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Mesonero',\n 'salario' => '12000.00'\n ));\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = \\Faker\\Factory::create();\n\n foreach (range(1,5) as $index) {\n Lista::create([\n 'name' => $faker->sentence(2),\n 'description' => $faker->sentence(10), \n ]);\n } \n\n foreach (range(1,20) as $index) {\n $n = $faker->sentence(2);\n \tTarea::create([\n \t\t'name' => $n,\n \t\t'description' => $faker->sentence(10),\n 'lista_id' => $faker->numberBetween(1,5),\n 'slug' => Str::slug($n),\n \t\t]);\n } \n }", "public function run()\n {\n $faker = Faker::create('lt_LT');\n\n DB::table('users')->insert([\n 'name' => 'user',\n 'email' => 'briedis@aa.bb',\n 'password' => Hash::make('123')\n ]);\n DB::table('users')->insert([\n 'name' => 'user2',\n 'email' => 'briedis2@aa.bb',\n 'password' => Hash::make('123')\n ]);\n\n foreach (range(1,100) as $val)\n DB::table('authors')->insert([\n 'name' => $faker->firstName(),\n 'surname' => $faker->lastName(),\n \n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UsersTableSeeder::class);\n\n // DB::table('users')->insert([\n // 'name' => 'User1',\n // 'email' => 'admin@admin.com',\n // 'password' => bcrypt('password'),\n // ]);\n\n\n $faker = Faker::create();\n \n foreach (range(1,10) as $index){\n DB::table('companies')->insert([\n 'name' => $faker->company(),\n 'email' => $faker->email(10).'@gmail.com',\n 'logo' => $faker->image($dir = '/tmp', $width = 640, $height = 480),\n 'webiste' => $faker->domainName(),\n \n ]);\n }\n \n \n foreach (range(1,10) as $index){\n DB::table('employees')->insert([\n 'first_name' => $faker->firstName(),\n 'last_name' => $faker->lastName(),\n 'company' => $faker->company(),\n 'email' => $faker->str_random(10).'@gmail.com',\n 'phone' => $faker->e164PhoneNumber(),\n \n ]);\n }\n\n\n\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Flight::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 100; $i++) {\n\n\n Flight::create([\n 'flightNumber' => $faker->randomNumber(5),\n 'depAirport' => $faker->city,\n 'destAirport' => $faker->city,\n 'reservedWeight' => $faker->numberBetween(1000 - 10000),\n 'deptTime' => $faker->dateTime('now'),\n 'arrivalTime' => $faker->dateTime('now'),\n 'reservedVolume' => $faker->numberBetween(1000 - 10000),\n 'airlineName' => $faker->colorName,\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->truncteTables([\n 'users',\n 'products'\n ]);\n\n $this->call(UsersSeeder::class);\n $this->call(ProductsSeeder::class);\n\n }", "public function run()\n {\n /**\n * Dummy seeds\n */\n DB::table('metas')->truncate();\n $faker = Faker::create();\n\n for ($i=0; $i < 10; $i++) { \n DB::table('metas')->insert([\n 'id_rel' => $faker->randomNumber(),\n 'titulo' => $faker->sentence,\n 'descricao' => $faker->paragraph,\n 'justificativa' => $faker->paragraph,\n 'valor_inicial' => $faker->numberBetween(0,100),\n 'valor_atual' => $faker->numberBetween(0,100),\n 'valor_final' => $faker->numberBetween(0,10),\n 'regras' => json_encode([$i => [\"values\" => $faker->words(3)]]),\n 'types' => json_encode([$i => [\"values\" => $faker->words(2)]]),\n 'categorias' => json_encode([$i => [\"values\" => $faker->words(4)]]),\n 'tags' => json_encode([$i => [\"values\" => $faker->words(5)]]),\n 'active' => true,\n ]);\n }\n\n\n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n\n $faker = Faker::create();\n\n $lessonIds = Lesson::lists('id')->all(); // An array of ID's in that table [1, 2, 3, 4, 5, 7]\n $tagIds = Tag::lists('id')->all();\n\n foreach(range(1, 30) as $index)\n {\n // a real lesson id\n // a real tag id\n DB::table('lesson_tag')->insert([\n 'lesson_id' => $faker->randomElement($lessonIds),\n 'tag_id' => $faker->randomElement($tagIds),\n ]);\n }\n }", "public function run()\n {\n $this->call(CategoriasTableSeeder::class);\n $this->call(UfsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(UserTiposTableSeeder::class);\n factory(App\\User::class, 2)->create();\n/* factory(App\\Models\\Categoria::class, 20)->create();*/\n/* factory(App\\Models\\Anuncio::class, 50)->create();*/\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n Language::truncate();\n Reason::truncate();\n Report::truncate();\n Category::truncate();\n Position::truncate();\n\n $languageQuantity = 10;\n $reasonQuantity = 10;\n $reportQuantity = 10;\n $categoryQuantity = 10;\n $positionQuantity = 10;\n\n factory(Language::class,$languageQuantity)->create();\n factory(Reason::class,$reasonQuantity)->create();\n \n factory(Report::class,$reportQuantity)->create();\n \n factory(Category::class,$categoryQuantity)->create();\n \n factory(Position::class,$positionQuantity)->create();\n\n }", "public function run()\n {\n // \\DB::statement('SET_FOREIGN_KEY_CHECKS=0');\n \\DB::table('users')->truncate();\n \\DB::table('posts')->truncate();\n // \\DB::table('category')->truncate();\n \\DB::table('photos')->truncate();\n \\DB::table('comments')->truncate();\n \\DB::table('comment_replies')->truncate();\n\n \\App\\Models\\User::factory()->times(10)->hasPosts(1)->create();\n \\App\\Models\\Role::factory()->times(10)->create();\n \\App\\Models\\Category::factory()->times(10)->create();\n \\App\\Models\\Comment::factory()->times(10)->hasReplies(1)->create();\n \\App\\Models\\Photo::factory()->times(10)->create();\n\n \n // \\App\\Models\\User::factory(10)->create([\n // 'role_id'=>2,\n // 'is_active'=>1\n // ]);\n\n // factory(App\\Models\\Post::class, 10)->create();\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call([\n ArticleSeeder::class, \n TagSeeder::class,\n Arttagrel::class\n ]);\n // \\App\\Models\\User::factory(10)->create();\n \\App\\Models\\Article::factory()->count(7)->create();\n \\App\\Models\\Tag::factory()->count(15)->create(); \n \\App\\Models\\Arttagrel::factory()->count(15)->create(); \n }", "public function run()\n {\n $this->call(ArticulosTableSeeder::class);\n /*DB::table('articulos')->insert([\n 'titulo' => str_random(50),\n 'cuerpo' => str_random(200),\n ]);*/\n }", "public function run()\n {\n $this->call(CategoryTableSeeder::class);\n $this->call(ProductTableSeeder::class);\n\n \t\t\n\t\t\tDB::table('users')->insert([\n 'first_name' => 'Ignacio',\n 'last_name' => 'Garcia',\n 'email' => 'ignacio@dh.com',\n 'password' => bcrypt('123456'),\n 'role' => '1',\n 'avatar' => 'CGnABxNYYn8N23RWlvTTP6C2nRjOLTf8IJcbLqRP.jpeg',\n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(RoleSeeder::class);\n $this->call(UserSeeder::class);\n\n Medicamento::factory(50)->create();\n Reporte::factory(5)->create();\n Cliente::factory(200)->create();\n Asigna_valor::factory(200)->create();\n Carga::factory(200)->create();\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n TicketSeeder::class\n ]);\n\n DB::table('departments')->insert([\n 'abbr' => 'IT',\n 'name' => 'Information Technologies',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => 'admin@gmail.com',\n 'email_verified_at' => Carbon::now(),\n 'password' => Hash::make('admin'),\n 'department_id' => 1,\n 'avatar' => 'default.png',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('role_user')->insert([\n 'role_id' => 1,\n 'user_id' => 1\n ]);\n }", "public function run()\n {\n \\App\\Models\\Article::factory(20)->create();\n \\App\\Models\\Category::factory(5)->create();\n \\App\\Models\\Comment::factory(40)->create();\n\n \\App\\Models\\User::create([\n \"name\"=>\"Alice\",\n \"email\"=>'alice@gmail.com',\n 'password' => Hash::make('password'),\n ]);\n \\App\\Models\\User::create([\n \"name\"=>\"Bob\",\n \"email\"=>'bob@gmail.com',\n 'password' => Hash::make('password'),\n ]);\n }", "public function run()\n {\n /** \n * Note: You must add these lines to your .env file for this Seeder to work (replace the values, obviously):\n SEEDER_USER_FIRST_NAME = 'Firstname'\n SEEDER_USER_LAST_NAME = 'Lastname'\n\t\tSEEDER_USER_DISPLAY_NAME = 'Firstname Lastname'\n\t\tSEEDER_USER_EMAIL = your.email@domain.com\n SEEDER_USER_PASSWORD = yourpassword\n */\n\t\tDB::table('users')->insert([\n 'user_first_name' => env('SEEDER_USER_FIRST_NAME'),\n 'user_last_name' => env('SEEDER_USER_LAST_NAME'),\n 'user_name' => env('SEEDER_USER_DISPLAY_NAME'),\n\t\t\t'user_email' => env('SEEDER_USER_EMAIL'),\n 'user_status' => 1,\n \t'password' => Hash::make((env('SEEDER_USER_PASSWORD'))),\n 'permission_fk' => 1,\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class,3)->create()->each(\n \tfunction($user)\n \t{\n \t\t$user->questions()\n \t\t->saveMany(\n \t\t\tfactory(App\\Question::class, rand(2,6))->make()\n \t\t)\n ->each(function ($q) {\n $q->answers()->saveMany(factory(App\\Answer::class, rand(1,5))->make());\n })\n \t}\n );\n }\n}", "public function run()\n {\n $faker = Faker::create();\n\n // $this->call(UsersTableSeeder::class);\n\n DB::table('posts')->insert([\n 'id'=>str_random(1),\n 'user_id'=> str_random(1),\n 'title' => $faker->name,\n 'body' => $faker->safeEmail,\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s'),\n ]);\n }", "public function run()\n\t{\n\t\tDB::table(self::TABLE_NAME)->delete();\n\n\t\tforeach (seed(self::TABLE_NAME) as $row)\n\t\t\t$records[] = [\n\t\t\t\t'id'\t\t\t\t=> $row->id,\n\t\t\t\t'created_at'\t\t=> $row->created_at ?? Carbon::now(),\n\t\t\t\t'updated_at'\t\t=> $row->updated_at ?? Carbon::now(),\n\n\t\t\t\t'sport_id'\t\t\t=> $row->sport_id,\n\t\t\t\t'gender_id'\t\t\t=> $row->gender_id,\n\t\t\t\t'tournamenttype_id'\t=> $row->tournamenttype_id ?? null,\n\n\t\t\t\t'name'\t\t\t\t=> $row->name,\n\t\t\t\t'external_id'\t\t=> $row->external_id ?? null,\n\t\t\t\t'is_top'\t\t\t=> $row->is_top ?? null,\n\t\t\t\t'logo'\t\t\t\t=> $row->logo ?? null,\n\t\t\t\t'position'\t\t\t=> $row->position ?? null,\n\t\t\t];\n\n\t\tinsert(self::TABLE_NAME, $records ?? []);\n\t}", "public function run()\n\t{\n\t\tDB::table('libros')->truncate();\n\n\t\t$faker = Faker\\Factory::create();\n\n\t\tfor ($i=0; $i < 10; $i++) { \n\t\t\tLibro::create([\n\n\t\t\t\t'titulo'\t\t=> $faker->text(40),\n\t\t\t\t'isbn'\t\t\t=> $faker->numberBetween(100,999),\n\t\t\t\t'precio'\t\t=> $faker->randomFloat(2,3,150),\n\t\t\t\t'publicado'\t\t=> $faker->numberBetween(0,1),\n\t\t\t\t'descripcion'\t=> $faker->text(400),\n\t\t\t\t'autor_id'\t\t=> $faker->numberBetween(1,3),\n\t\t\t\t'categoria_id'\t=> $faker->numberBetween(1,3)\n\n\t\t\t]);\n\t\t}\n\n\t\t// Uncomment the below to run the seeder\n\t\t// DB::table('libros')->insert($libros);\n\t}", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 10)->create()->each(function ($user) {\n // Seed the relation with 5 purchases\n // $videos = factory(App\\Video::class, 5)->make();\n // $user->videos()->saveMany($videos);\n // $user->videos()->each(function ($video){\n // \t$video->videometa()->save(factory(App\\VideoMeta::class)->make());\n // \t// :( \n // });\n factory(App\\User::class, 10)->create()->each(function ($user) {\n\t\t\t factory(App\\Video::class, 5)->create(['user_id' => $user->id])->each(function ($video) {\n\t\t\t \tfactory(App\\VideoMeta::class, 1)->create(['video_id' => $video->id]);\n\t\t\t // $video->videometa()->save(factory(App\\VideoMeta::class)->create(['video_id' => $video->id]));\n\t\t\t });\n\t\t\t});\n\n });\n }", "public function run()\n {\n // for($i=1;$i<11;$i++){\n // DB::table('post')->insert(\n // ['title' => 'Title'.$i,\n // 'post' => 'Post'.$i,\n // 'slug' => 'Slug'.$i]\n // );\n // }\n $faker = Faker\\Factory::create();\n \n for($i=1;$i<20;$i++){\n $dname = $faker->name;\n DB::table('post')->insert(\n ['title' => $dname,\n 'post' => $faker->text($maxNbChars = 200),\n 'slug' => str_slug($dname)]\n );\n }\n }", "public function run()\n {\n $this->call([\n CountryTableSeeder::class,\n ProvinceTableSeeder::class,\n TagTableSeeder::class\n ]);\n\n User::factory()->count(10)->create();\n Category::factory()->count(5)->create();\n Product::factory()->count(20)->create();\n Section::factory()->count(5)->create();\n Bundle::factory()->count(20)->create();\n\n $bundles = Bundle::all();\n // populate bundle-product table (morph many-to-many)\n Product::all()->each(function ($product) use ($bundles) {\n $product->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray(),\n ['default_quantity' => rand(1, 10)]\n );\n });\n // populate bundle-tags table (morph many-to-many)\n Tag::all()->each(function ($tag) use ($bundles) {\n $tag->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray()\n );\n });\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Contract::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Contract::create([\n 'serialnumbers' => $faker->numberBetween($min = 1000000, $max = 2000000),\n 'address' => $faker->address,\n 'landholder' => $faker->lastName,\n 'renter' => $faker->lastName,\n 'price' => $faker->numberBetween($min = 10000, $max = 50000),\n 'rent_start' => $faker->date($format = 'Y-m-d', $max = 'now'),\n 'rent_end' => $faker->date($format = 'Y-m-d', $max = 'now'),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker=Faker\\Factory::create();\n\n for($i=0;$i<100;$i++){\n \tApp\\Blog::create([\n \t\t'title' => $faker->catchPhrase,\n 'description' => $faker->text,\n 'showns' =>true\n \t\t]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // TO PREVENT CHECKS FOR foreien key in seeding\n\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n\n DB::table('category_product')->truncate();\n\n User::flushEventListeners();\n Category::flushEventListeners();\n Product::flushEventListeners();\n Transaction::flushEventListeners();\n\n $usersQuantities = 1000;\n $categoriesQuantities = 30;\n $productsQuantities = 1000;\n $transactionsQuantities = 1000;\n\n factory(User::class, $usersQuantities)->create();\n factory(Category::class, $categoriesQuantities)->create();\n\n factory(Product::class, $productsQuantities)->create()->each(\n function ($product) {\n $categories = Category::all()->random(mt_rand(1, 5))->pluck('id');\n $product->categories()->attach($categories);\n });\n\n factory(Transaction::class, $transactionsQuantities)->create();\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n $this->call(BusinessTableSeeder::class);\n $this->call(PrinterTableSeeder::class);\n factory(App\\Tag::class,10)->create();\n factory(App\\Category::class,10)->create();\n factory(App\\Subcategory::class,50)->create();\n factory(App\\Provider::class,10)->create();\n factory(App\\Product::class,24)->create()->each(function($product){\n\n $product->images()->saveMany(factory(App\\Image::class, 4)->make());\n\n });\n\n\n factory(App\\Client::class,10)->create();\n }", "public function run()\n {\n Article::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Article::create([\n 'name' => $faker->sentence,\n 'sku' => $faker->paragraph,\n 'price' => $faker->number,\n ]);\n }\n }", "public function run()\n {\n Storage::deleteDirectory('public/products');\n Storage::makeDirectory('public/products');\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n $this->call(ProductSeeder::class);\n Order::factory(4)->create();\n Order_Detail::factory(4)->create();\n Size::factory(100)->create();\n }", "public function run()\n {\n $this->call(RolSeeder::class);\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n Doctor::factory(25)->create();\n Patient::factory(50)->create();\n Status::factory(3)->create();\n Appointment::factory(100)->create();\n }", "public function run()\n\t{\n\t\t\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n\t\t$faker = \\Faker\\Factory::create();\n\n\t\tTodolist::truncate();\n\n\t\tforeach(range(1, 50) as $index)\n\t\t{\n\n\t\t\t$user = User::create([\n\t\t\t\t'name' => $faker->name,\n\t\t\t\t'email' => $faker->email,\n\t\t\t\t'password' => 'password',\n\t\t\t\t'confirmation_code' => mt_rand(0, 9),\n\t\t\t\t'confirmation' => rand(0,1) == 1\n\t\t\t]);\n\n\t\t\t$list = Todolist::create([\n\t\t\t\t'name' => $faker->sentence(2),\n\t\t\t\t'description' => $faker->sentence(4),\n\t\t\t]);\n\n\t\t\t// BUILD SOME TASKS FOR EACH LIST ITEM\n\t\t\tforeach(range(1, 10) as $index) \n\t\t\t{\n\t\t\t\t$task = new Task;\n\t\t\t\t$task->name = $faker->sentence(2);\n\t\t\t\t$task->description = $faker->sentence(4);\n\t\t\t\t$list->tasks()->save($task);\n\t\t\t}\n\n\t\t}\n\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 1'); \n\n\t}", "public function run()\n {\n Campus::truncate();\n Canteen::truncate();\n Dorm::truncate();\n\n $faker = Faker\\Factory::create();\n $schools = School::all();\n foreach ($schools as $school) {\n \tforeach (range(1, 2) as $index) {\n\t \t$campus = Campus::create([\n\t \t\t'school_id' => $school->id,\n\t \t\t'name' => $faker->word . '校区',\n\t \t\t]);\n\n \t$campus->canteens()->saveMany(factory(Canteen::class, mt_rand(2,3))->make());\n $campus->dorms()->saveMany(factory(Dorm::class, mt_rand(2,3))->make());\n\n }\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => 'admin@gmail.com',\n 'password' => bcrypt('admin'),\n 'seq_q'=>'1',\n 'seq_a'=>'admin'\n ]);\n\n // DB::table('bloods')->insert([\n // ['name' => 'A+'],\n // ['name' => 'A-'],\n // ['name' => 'B+'],\n // ['name' => 'B-'],\n // ['name' => 'AB+'],\n // ['name' => 'AB-'],\n // ['name' => 'O+'],\n // ['name' => 'O-'],\n // ]);\n\n \n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n \\App\\User::create([\n 'name'=>'PAPE SAMBA NDOUR',\n 'email'=>'papesambandour@hotmail.com',\n 'password'=>bcrypt('Admin1122'),\n ]);\n\n $faker = Faker::create();\n\n for ($i = 0; $i < 100 ; $i++)\n {\n $firstName = $faker->firstName;\n $lastName = $faker->lastName;\n $niveau = \\App\\Niveau::inRandomOrder()->first();\n \\App\\Etudiant::create([\n 'prenom'=>$firstName,\n 'nom'=>$lastName,\n 'niveau_id'=>$niveau->id\n ]);\n }\n\n\n }", "public function run()\n {\n //\n DB::table('foods')->delete();\n\n Foods::create(array(\n 'name' => 'Chicken Wing',\n 'author' => 'Bambang',\n 'overview' => 'a deep-fried chicken wing, not in spicy sauce'\n ));\n\n Foods::create(array(\n 'name' => 'Beef ribs',\n 'author' => 'Frank',\n 'overview' => 'Slow baked beef ribs rubbed in spices'\n ));\n\n Foods::create(array(\n 'name' => 'Ice cream',\n 'author' => 'Lou',\n 'overview' => ' A sweetened frozen food typically eaten as a snack or dessert.'\n ));\n\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n News::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 10; $i++) {\n News::create([\n 'title' => $faker->sentence,\n 'summary' => $faker->sentence,\n 'content' => $faker->paragraph,\n 'imagePath' => '/img/exclamation_mark.png'\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 3)->create();\n factory(App\\Models\\Category::class, 3)\n ->create()\n ->each(function ($u) {\n $u->courses()->saveMany(factory(App\\Models\\Course::class,3)->make())->each(function ($c){\n $c->exams()->saveMany(factory(\\App\\Models\\Exam::class,3)->make())->each(function ($e){\n $e->questions()->saveMany(factory(\\App\\Models\\Question::class,4)->make())->each(function ($q){\n $q->answers()->saveMany(factory(\\App\\Models\\Answer::class,4)->make())->each(function ($a){\n $a->correctAnswer()->save(factory(\\App\\Models\\Correct_answer::class)->make());\n });\n });\n });\n });\n\n });\n\n }", "public function run()\n {\n \\DB::table('employees')->delete();\n\n $faker = \\Faker\\Factory::create('ja_JP');\n\n $role_id = ['1','2','3'];\n\n for ($i = 0; $i < 10; $i++) {\n \\App\\Models\\Employee::create([\n 'last_name' =>$faker->lastName() ,\n 'first_name' => $faker->firstName(),\n 'mail' => $faker->email(),\n 'password' => Hash::make( \"password.$i\"),\n 'birthday' => $faker->date($format='Y-m-d',$max='now'),\n 'role_id' => $faker->randomElement($role_id)\n ]);\n }\n }", "public function run()\n {\n\n DB::table('clients')->delete();\n DB::table('trips')->delete();\n error_log('empty tables done.');\n\n $random_cities = City::inRandomOrder()->select('ar_name')->limit(5)->get();\n $GLOBALS[\"random_cities\"] = $random_cities->pluck('ar_name')->toArray();\n\n $random_airlines = Airline::inRandomOrder()->select('code')->limit(5)->get();\n $GLOBALS[\"random_airlines\"] = $random_airlines->pluck('code')->toArray();\n\n factory(App\\Client::class, 5)->create();\n error_log('Client seed done.');\n\n\n factory(App\\Trip::class, 50)->create();\n error_log('Trip seed done.');\n\n\n factory(App\\Quicksearch::class, 10)->create();\n error_log('Quicksearch seed done.');\n }", "public function run()\n {\n // Admins\n User::factory()->create([\n 'name' => 'Zaiman Noris',\n 'username' => 'rognales',\n 'email' => 'rognales@gmail.com',\n 'active' => true,\n ]);\n\n User::factory()->create([\n 'name' => 'Affiq Rashid',\n 'username' => 'affiqr',\n 'email' => 'sonic21danger@gmail.com',\n 'active' => true,\n ]);\n\n // Only seed test data in non-prod\n if (! app()->isProduction()) {\n Member::factory()->count(1000)->create();\n Staff::factory()->count(1000)->create();\n\n Participant::factory()\n ->addSpouse()\n ->addChildren()\n ->addInfant()\n ->addOthers()\n ->count(500)\n ->hasUploads(2)\n ->create();\n }\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n UserSeeder::class,\n ]);\n\n \\App\\Models\\Category::factory(4)->create();\n \\App\\Models\\View::factory(6)->create();\n \\App\\Models\\Room::factory(8)->create();\n \n $rooms = \\App\\Models\\Room::all();\n // \\App\\Models\\User::all()->each(function ($user) use ($rooms) { \n // $user->rooms()->attach(\n // $rooms->random(rand(1, \\App\\Models\\Room::max('id')))->pluck('id')->toArray()\n // ); \n // });\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n Employee::factory()->create(['email' => 'sovon.kucse@gmail.com']);\n Brand::factory()->count(3)->create();\n $this->call([\n TagSeeder::class,\n AttributeSeeder::class,\n AttributeValueSeeder::class,\n ProductSeeder::class,\n ]);\n }", "public function run()\n {\n $this->call(RolesTableSeeder::class); // crée les rôles\n $this->call(PermissionsTableSeeder::class); // crée les permissions\n\n factory(Employee::class,3)->create();\n factory(Provider::class,1)->create();\n\n $user = User::create([\n 'name'=>'Alioune Bada Ndoye',\n 'email'=>'abada@gmail.com',\n 'phone'=>'773012470',\n 'password'=>bcrypt('123'),\n ]);\n Employee::create([\n 'job'=>'Informaticien',\n 'user_id'=>User::where('email','abada@gmail.com')->first()->id,\n 'point_id'=>Point::find(1)->id,\n ]);\n $user->assignRole('admin');\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(User::class, 1)\n \t->create(['email' => 'eddyjaair@gmail.com']);\n\n factory(Category::class, 5)->create();\n }", "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n $this->call(rootSeed::class);\n factory(App\\Models\\Egresado::class,'hombre',15)->create();\n factory(App\\Models\\Egresado::class,'mujer',15)->create();\n factory(App\\Models\\Administrador::class,5)->create();\n factory(App\\Models\\Notificacion::class,'post',10)->create();\n factory(App\\Models\\Notificacion::class,'mensaje',5)->create();\n factory(App\\Models\\Egresado::class,'bajaM',5)->create();\n factory(App\\Models\\Egresado::class,'bajaF',5)->create();\n factory(App\\Models\\Egresado::class,'suscritam',5)->create();\n factory(App\\Models\\Egresado::class,'suscritaf',5)->create();\n }", "public function run()\n {\n \n User::factory(1)->create([\n 'rol'=>'EPS'\n ]);\n Person::factory(10)->create();\n $this->call(EPSSeeder::class);\n $this->call(OfficialSeeder::class);\n $this->call(VVCSeeder::class);\n $this->call(VaccineSeeder::class);\n }", "public function run()\n {\n // $faker=Faker::create();\n // foreach(range(1,100) as $index)\n // {\n // DB::table('products')->insert([\n // 'name' => $faker->name,\n // 'price' => rand(10,100000)/100\n // ]);\n // }\n }", "public function run()\n {\n $this->call([\n LanguagesTableSeeder::class,\n ListingAvailabilitiesTableSeeder::class,\n ListingTypesTableSeeder::class,\n RoomTypesTableSeeder::class,\n AmenitiesTableSeeder::class,\n UsersTableSeeder::class,\n UserLanguagesTableSeeder::class,\n ListingsTableSeeder::class,\n WishlistsTableSeeder::class,\n StaysTableSeeder::class,\n GuestsTableSeeder::class,\n TripsTableSeeder::class,\n ReviewsTableSeeder::class,\n RatingsTableSeeder::class,\n PopularDestinationsTableSeeder::class,\n ImagesTableSeeder::class,\n ]);\n\n // factory(App\\User::class, 5)->states('host')->create();\n // factory(App\\User::class, 10)->states('hostee')->create();\n\n // factory(App\\User::class, 10)->create();\n // factory(App\\Models\\Listing::class, 30)->create();\n }", "public function run()\n {\n Schema::disableForeignKeyConstraints();\n Grade::truncate();\n Schema::enableForeignKeyConstraints();\n\n $faker = \\Faker\\Factory::create();\n\n for ($i = 0; $i < 10; $i++) {\n Grade::create([\n 'letter' => $faker->randomElement(['а', 'б', 'в']),\n 'school_id' => $faker->unique()->numberBetween(1, School::count()),\n 'level' => 1\n ]);\n }\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(App\\User::class,5)->create();//5 User created\n factory(App\\Model\\Genre::class,5)->create();//5 genres\n factory(App\\Model\\Film::class,6)->create();//6 films\n factory(App\\Model\\Comment::class, 20)->create();// 20 comments\n }", "public function run()\n {\n\n $this->call(UserSeeder::class);\n factory(Empresa::class,10)->create();\n factory(Empleado::class,50)->create();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n User::create([\n 'name' => 'jose luis',\n 'email' => 'barbozagonzalesjose@gmail.com',\n 'password' => bcrypt('xxxxxx'),\n 'role' => 'admin',\n ]);\n\n Category::create([\n 'name' => 'inpods',\n 'description' => 'auriculares inalambricos que funcionan con blouthue genial'\n ]);\n\n Category::create([\n 'name' => 'other',\n 'description' => 'otra cosa diferente a un inpods'\n ]);\n\n\n /* Create 10 products */\n Product::factory(10)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class)->create([\n 'email' => 'russell@gmail.com',\n 'name' => 'Russell'\n ]);\n\n factory(User::class)->create([\n 'email' => 'bitfumes@gmail.com',\n 'name' => 'Bitfumes'\n ]);\n\n factory(User::class)->create([\n 'email' => 'paul@gmail.com',\n 'name' => 'Paul'\n ]);\n }", "public function run()\n {\n $user_ids = [1,2,3];\n $faker = app(\\Faker\\Generator::class);\n $posts = factory(\\App\\Post::class)->times(50)->make()->each(function($post) use ($user_ids,$faker){\n $post->user_id = $faker->randomElement($user_ids);\n });\n \\App\\Post::insert($posts->toArray());\n }", "public function run()\n {\n // Vaciar la tabla.\n Favorite::truncate();\n $faker = \\Faker\\Factory::create();\n // Crear artículos ficticios en la tabla\n\n // factory(App\\Models\\User::class, 2)->create()->each(function ($user) {\n // $user->users()->saveMany(factory(App\\Models\\User::class, 25)->make());\n //});\n }", "public function run()\n\t{\n\t\t$this->call(ProductsTableSeeder::class);\n\t\t$this->call(CategoriesTableSeeder::class);\n\t\t$this->call(BrandsTableSeeder::class);\n\t\t$this->call(ColorsTableSeeder::class);\n\n\t\t$products = \\App\\Product::all();\n \t$categories = \\App\\Category::all();\n \t$brands = \\App\\Brand::all();\n \t$colors = \\App\\Color::all();\n\n\t\tforeach ($products as $product) {\n\t\t\t$product->colors()->sync($colors->random(3));\n\n\t\t\t$product->category()->associate($categories->random(1)->first());\n\t\t\t$product->brand()->associate($brands->random(1)->first());\n\n\t\t\t$product->save();\n\t\t}\n\n\t\t// for ($i = 0; $i < count($products); $i++) {\n\t\t// \t$cat = $categories[rand(0,5)];\n\t\t// \t$bra = $brands[rand(0,7)];\n\t\t// \t$cat->products()->save($products[$i]);\n\t\t// \t$bra->products()->save($products[$i]);\n\t\t// }\n\n\t\t// $products = factory(App\\Product::class)->times(20)->create();\n\t\t// $categories = factory(App\\Category::class)->times(6)->create();\n\t\t// $brands = factory(App\\Brand::class)->times(8)->create();\n\t\t// $colors = factory(App\\Color::class)->times(15)->create();\n\t}", "public function run()\n {\n /*$this->call(UsersTableSeeder::class);\n $this->call(GroupsTableSeeder::class);\n $this->call(TopicsTableSeeder::class);\n $this->call(CommentsTableSeeder::class);*/\n DB::table('users')->insert([\n 'name' => 'pkw',\n 'email' => 'pkw@pkw.com',\n 'password' => bcrypt('secret'),\n 'type' => '1'\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker::create();\n foreach (range(1,200) as $index) {\n DB::table('users')->insert([\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'phone' => $faker->randomDigitNotNull,\n 'address'=> $faker->streetAddress,\n 'password' => bcrypt('secret'),\n ]);\n }\n }", "public function run()\n {\n $this->call(UsersSeeder::class);\n User::factory(2)->create();\n Company::factory(2)->create();\n\n }", "public function run()\n {\n echo PHP_EOL , 'seeding roles...';\n\n Role::create(\n [\n 'name' => 'Admin',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Principal',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Teacher',\n 'deletable' => false,\n ]\n );\n\n Role::create(\n [\n 'name' => 'Student',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Parents',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Accountant',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Librarian',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Receptionist',\n 'deletable' => false,\n ]\n );\n\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->call(QuestionTableSeed::class);\n\n $this->call([\n QuestionTableSeed::class,\n AlternativeTableSeed::class,\n ScheduleActionTableSeeder::class,\n UserTableSeeder::class,\n CompanyClassificationTableSeed::class,\n ]);\n // DB::table('clients')->insert([\n // 'name' => 'Empresa-02',\n // 'email' => 'empresa02@gmail.com',\n // 'password' => bcrypt('07.052.477/0001-60'),\n // ]);\n }", "public function run()\n {\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 5; $i++) {\n Runner::create([\n 'external_id' => $faker->uuid,\n 'name' => $faker->name,\n 'race_id' =>rand(1,5),\n 'age' => rand(30, 45),\n 'sex' => $faker->randomElement(['male', 'female']),\n 'color' => $faker->randomElement(['#ecbcb4', '#d1a3a4']),\n ]);\n }\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n User::factory()->create([\n 'name' => 'Carlos',\n 'email' => 'carlos@email.com',\n 'email_verified_at' => now(),\n 'password' => bcrypt('123456'), // password\n 'remember_token' => Str::random(10),\n ]);\n \n $this->call([PostsTableSeeder::class]);\n $this->call([TagTableSeeder::class]);\n\n }", "public function run()\n {\n $this->call(AlumnoSeeder::class);\n //Alumnos::factory()->count(30)->create();\n //DB::table('alumnos')->insert([\n // 'dni_al' => '13189079',\n // 'nom_al' => 'Jose',\n // 'ape_al' => 'Araujo',\n // 'rep_al' => 'Principal',\n // 'esp_al' => 'Tecnologia',\n // 'lnac_al' => 'Valencia'\n //]);\n }", "public function run()\n {\n Eloquent::unguard();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n // $this->call([\n // CountriesTableSeeder::class,\n // ]);\n\n factory(App\\User::class, 100)->create();\n factory(App\\Type::class, 10)->create();\n factory(App\\Item::class, 100)->create();\n factory(App\\Order::class, 1000)->create();\n\n $items = App\\Item::all();\n\n App\\Order::all()->each(function($order) use ($items) {\n\n $n = rand(1, 10);\n\n $order->items()->attach(\n $items->random($n)->pluck('id')->toArray()\n , ['quantity' => $n]);\n\n $order->total = $order->items->sum(function($item) {\n return $item->price * $item->pivot->quantity;\n });\n\n $order->save();\n\n });\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create(\n [\n 'email'=>'izzanniroshlei@gmail.com',\n 'name'=>'izzanni',\n \n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'aina@gmail.com',\n 'name'=>'aina',\n\n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'sab@gmail.com',\n 'name'=>'sab',\n\n ]\n );\n }", "public function run()\n {\n\n factory('App\\Models\\Pessoa', 60)->create();\n factory('App\\Models\\Profissional', 10)->create();\n factory('App\\Models\\Paciente', 50)->create();\n $this->call(UsersTableSeeder::class);\n $this->call(ProcedimentoTableSeeder::class);\n // $this->call(PessoaTableSeeder::class);\n // $this->call(ProfissionalTableSeeder::class);\n // $this->call(PacienteTableSeeder::class);\n // $this->call(AgendaProfissionalTableSeeder::class);\n }", "public function run()\n {\n //Acá se define lo que el seeder va a hacer.\n //insert() para insertar datos.\n //Array asociativo. La llave es el nombre de la columna.\n// DB::table('users')->insert([\n// //Para un solo usuario.\n// 'name' => 'Pedrito Perez',\n// 'email' => 'pedrito@juase.com',\n// 'password' => bcrypt('123456')\n// ]);//Se indica el nombre de la tabla.\n\n //Crea 50 usuarios (sin probar)\n// factory(App\\User::class, 50)->create()->each(function($u) {\n// $u->posts()->save(factory(App\\Post::class)->make());\n// });\n\n factory(App\\User::class, 10)->create(); //Así se ejecuta el model factory creado en ModelFactory.php\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //nhập liệu mẫu cho bảng users\n DB::table('users')->insert([\n \t['id'=>'1001', 'name'=>'Phan Thị Hiền', 'email'=>'hienphan18112015@gmail.com', 'password'=>'123456', 'isadmin'=>1],\n \t['id'=>'1002', 'name'=>'Phan Thị Hà', 'email'=>'haphan@gmail.com', 'password'=>'111111', 'isadmin'=>0]\n ]);\n\n\n //nhập liệu mẫu cho bảng suppliers\n DB::table('suppliers')->insert([\n \t['name'=>'FPT', 'address'=>'151 Hùng Vương, TP. Đà Nẵng', 'phonenum'=>'0971455395'],\n \t['name'=>'Điện Máy Xanh', 'address'=>'169 Phan Châu Trinh, TP. Đà Nẵng', 'phonenum'=>'0379456011']\n ]);\n\n\n //Bảng phiếu bảo hành\n }", "public function run()\n {\n \t// DB::table('categories')->truncate();\n // factory(App\\Models\\Category::class, 10)->create();\n Schema::disableForeignKeyConstraints();\n Category::truncate();\n $faker = Faker\\Factory::create();\n\n $categories = ['SAMSUNG','NOKIA','APPLE','BLACK BERRY'];\n foreach ($categories as $key => $value) {\n Category::create([\n 'name'=>$value,\n 'description'=> 'This is '.$value,\n 'markup'=> rand(10,100),\n 'category_id'=> null,\n 'UUID' => $faker->uuid,\n ]);\n }\n }" ]
[ "0.8013876", "0.79804534", "0.7976992", "0.79542726", "0.79511505", "0.7949612", "0.794459", "0.7942486", "0.7938189", "0.79368967", "0.79337025", "0.78924936", "0.78811055", "0.78790957", "0.78787595", "0.787547", "0.7871811", "0.78701615", "0.7851422", "0.7850352", "0.7841468", "0.7834583", "0.7827792", "0.7819104", "0.78088796", "0.7802872", "0.7802348", "0.78006834", "0.77989215", "0.7795819", "0.77903426", "0.77884805", "0.77862066", "0.7778816", "0.7777486", "0.7765202", "0.7762492", "0.77623445", "0.77621746", "0.7761383", "0.77606887", "0.77596676", "0.7757001", "0.7753607", "0.7749522", "0.7749292", "0.77466977", "0.7729947", "0.77289546", "0.772796", "0.77167094", "0.7714503", "0.77140456", "0.77132195", "0.771243", "0.77122366", "0.7711113", "0.77109736", "0.7710777", "0.7710086", "0.7705484", "0.770464", "0.7704354", "0.7704061", "0.77027386", "0.77020216", "0.77008796", "0.7698617", "0.76985973", "0.76973504", "0.7696405", "0.7694293", "0.7692694", "0.7691264", "0.7690576", "0.76882726", "0.7687433", "0.7686844", "0.7686498", "0.7685065", "0.7683827", "0.7679184", "0.7678287", "0.76776296", "0.76767945", "0.76726556", "0.76708084", "0.76690495", "0.766872", "0.76686716", "0.7666299", "0.76625943", "0.7662227", "0.76613766", "0.7659881", "0.7656644", "0.76539344", "0.76535016", "0.7652375", "0.7652313", "0.7652022" ]
0.0
-1
Create a new controller instance.
public function __construct() { $this->middleware('auth'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createController()\n {\n $this->createClass('controller');\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this->call('make:controller', array_filter([\n 'name' => \"{$controller}Controller\",\n '--model' => $modelName,\n '--api' => true,\n ]));\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n $model_name = $this->qualifyClass($this->getNameInput());\n $name = Str::contains($model_name, ['\\\\']) ? Str::afterLast($model_name, '\\\\') : $model_name;\n\n $this->call('make:controller', [\n 'name' => \"{$controller}Controller\",\n '--model' => $model_name,\n ]);\n\n $path = base_path() . \"/app/Http/Controllers/{$controller}Controller.php\";\n $this->cleanupDummy($path, $name);\n }", "private function makeInitiatedController()\n\t{\n\t\t$controller = new TestEntityCRUDController();\n\n\t\t$controller->setLoggerWrapper(Logger::create());\n\n\t\treturn $controller;\n\t}", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n\n $modelName = $this->qualifyClass($this->getNameInput());\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n ]));\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"Api/{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n '--api' => true,\n ]));\n }", "protected function createController()\n {\n $name = str_replace(\"Service\",\"\",$this->argument('name'));\n\n $this->call('make:controller', [\n 'name' => \"{$name}Controller\"\n ]);\n }", "protected function createController()\n {\n $params = [\n 'name' => $this->argument('name'),\n ];\n\n if ($this->option('api')) {\n $params['--api'] = true;\n }\n\n $this->call('wizard:controller', $params);\n }", "public function generateController () {\r\n $controllerParam = \\app\\lib\\router::getPath();\r\n $controllerName = \"app\\controller\\\\\" . end($controllerParam);\r\n $this->controller = new $controllerName;\r\n }", "public static function newController($controller)\n\t{\n\t\t$objController = \"App\\\\Controllers\\\\\".$controller;\n\t\treturn new $objController;\n\t}", "public function createController()\n\t{\n\t\tif(class_exists($this->controller))\n\t\t{\n\t\t\t// get the parent class he extends\n\t\t\t$parents = class_parents($this->controller);\n\n\t\t\t// $parents = class_implements($this->controller); used if our Controller was just an interface not a class\n\n\t\t\t// check if the class implements our Controller Class\n\t\t\tif(in_array(\"Controller\", $parents))\n\t\t\t{\n\t\t\t\t// check if the action in the request exists in that class\n\t\t\t\tif(method_exists($this->controller, $this->action))\n\t\t\t\t{\n\t\t\t\t\treturn new $this->controller($this->action, $this->request);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// Action is not exist\n\t\t\t\t\techo 'Method '. $this->action .' doesn\\'t exist in '. $this->controller;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// The controller doesn't extends our Controller Class\n\t\t\t\techo $this->controller.' doesn\\'t extends our Controller Class';\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Controller Doesn't exist\n\t\t\techo $this->controller.' doesn\\'t exist';\n\t\t}\n\t}", "public function createController( ezcMvcRequest $request );", "public function createController() {\n //check our requested controller's class file exists and require it if so\n /*if (file_exists(__DIR__ . \"/../Controllers/\" . $this->controllerName . \".php\")) {\n require(__DIR__ . \"/../Controllers/\" . $this->controllerName . \".php\");\n } else {\n throw new Exception('Route does not exist');\n }*/\n\n try {\n require_once __DIR__ . '/../Controllers/' . $this->controllerName . '.php';\n } catch (Exception $e) {\n return $e;\n }\n \n //does the class exist?\n if (class_exists($this->controllerClass)) {\n $parents = class_parents($this->controllerClass);\n \n //does the class inherit from the BaseController class?\n if (in_array(\"BaseController\",$parents)) { \n //does the requested class contain the requested action as a method?\n if (method_exists($this->controllerClass, $this->endpoint)) {\n return new $this->controllerClass($this->args, $this->endpoint, $this->domain);\n } else {\n throw new Exception('Action does not exist');\n }\n } else {\n throw new Exception('Class does not inherit correctly.');\n }\n } else {\n throw new Exception('Controller does not exist.');\n }\n }", "public static function create()\n\t{\n\t\t//check, if a JobController instance already exists\n\t\tif(JobController::$jobController == null)\n\t\t{\n\t\t\tJobController::$jobController = new JobController();\n\t\t}\n\n\t\treturn JobController::$jobController;\n\t}", "private function controller()\n {\n $location = $this->args[\"location\"] . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR;\n $relative_location = $this->args['application_folder'] . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR;\n\n if (!empty($this->args['subdirectories']))\n {\n $location .= $this->args['subdirectories'] . DIRECTORY_SEPARATOR;\n $relative_location .= $this->args['subdirectories'] . DIRECTORY_SEPARATOR;\n }\n\n if (!is_dir($location))\n {\n mkdir($location, 0755, TRUE);\n }\n\n $relative_location .= $this->args['filename'];\n $filename = $location . $this->args['filename'];\n\n $args = array(\n \"class_name\" => ApplicationHelpers::camelize($this->args['name']),\n \"filename\" => $this->args['filename'],\n \"application_folder\" => $this->args['application_folder'],\n \"parent_class\" => (isset($this->args['parent'])) ? $this->args['parent'] : $this->args['parent_controller'],\n \"extra\" => $this->extra,\n 'relative_location' => $relative_location,\n 'helper_name' => strtolower($this->args['name']) . '_helper',\n );\n\n $template = new TemplateScanner(\"controller\", $args);\n $controller = $template->parse();\n\n $message = \"\\t\";\n if (file_exists($filename))\n {\n $message .= 'Controller already exists : ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'light_blue');\n }\n $message .= $relative_location;\n }\n elseif (file_put_contents($filename, $controller))\n {\n $message .= 'Created controller: ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'green');\n }\n $message .= $relative_location;\n }\n else\n {\n $message .= 'Unable to create controller: ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'red');\n }\n $message .= $relative_location;\n }\n\n // The controller has been generated, output the confirmation message\n fwrite(STDOUT, $message . PHP_EOL);\n\n // Create the helper files.\n $this->helpers();\n\n $this->assets();\n\n // Create the view files.\n $this->views();\n\n return;\n }", "public function createController( $controllerName ) {\r\n\t\t$refController \t\t= $this->instanceOfController( $controllerName );\r\n\t\t$refConstructor \t= $refController->getConstructor();\r\n\t\tif ( ! $refConstructor ) return $refController->newInstance();\r\n\t\t$initParameter \t\t= $this->setParameter( $refConstructor );\r\n\t\treturn $refController->newInstanceArgs( $initParameter ); \r\n\t}", "public function create($controllerName) {\r\n\t\tif (!$controllerName)\r\n\t\t\t$controllerName = $this->defaultController;\r\n\r\n\t\t$controllerName = ucfirst(strtolower($controllerName)).'Controller';\r\n\t\t$controllerFilename = $this->searchDir.'/'.$controllerName.'.php';\r\n\r\n\t\tif (preg_match('/[^a-zA-Z0-9]/', $controllerName))\r\n\t\t\tthrow new Exception('Invalid controller name', 404);\r\n\r\n\t\tif (!file_exists($controllerFilename)) {\r\n\t\t\tthrow new Exception('Controller not found \"'.$controllerName.'\"', 404);\r\n\t\t}\r\n\r\n\t\trequire_once $controllerFilename;\r\n\r\n\t\tif (!class_exists($controllerName) || !is_subclass_of($controllerName, 'Controller'))\r\n\t\t\tthrow new Exception('Unknown controller \"'.$controllerName.'\"', 404);\r\n\r\n\t\t$this->controller = new $controllerName();\r\n\t\treturn $this;\r\n\t}", "private function createController($controllerName)\n {\n $className = ucfirst($controllerName) . 'Controller';\n ${$this->lcf($controllerName) . 'Controller'} = new $className();\n return ${$this->lcf($controllerName) . 'Controller'};\n }", "public function createControllerObject(string $controller)\n {\n $this->checkControllerExists($controller);\n $controller = $this->ctlrStrSrc.$controller;\n $controller = new $controller();\n return $controller;\n }", "public function create_controller($controller, $action){\n\t $creado = false;\n\t\t$controllers_dir = Kumbia::$active_controllers_dir;\n\t\t$file = strtolower($controller).\"_controller.php\";\n\t\tif(file_exists(\"$controllers_dir/$file\")){\n\t\t\tFlash::error(\"Error: El controlador '$controller' ya existe\\n\");\n\t\t} else {\n\t\t\tif($this->post(\"kind\")==\"applicationcontroller\"){\n\t\t\t\t$filec = \"<?php\\n\t\t\t\\n\tclass \".ucfirst($controller).\"Controller extends ApplicationController {\\n\\n\\t\\tfunction $action(){\\n\\n\\t\\t}\\n\\n\t}\\n\t\\n?>\\n\";\n\t\t\t\tif(@file_put_contents(\"$controllers_dir/$file\", $filec)){\n\t\t\t\t $creado = true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$filec = \"<?php\\n\t\t\t\\n\tclass \".ucfirst($controller).\"Controller extends StandardForm {\\n\\n\\t\\tpublic \\$scaffold = true;\\n\\n\\t\\tpublic function __construct(){\\n\\n\\t\\t}\\n\\n\t}\\n\t\\n?>\\n\";\n\t\t\t\tfile_put_contents(\"$controllers_dir/$file\", $filec);\n\t\t\t\tif($this->create_model($controller, $controller, \"index\")){\n\t\t\t\t $creado = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($creado){\n\t\t\t Flash::success(\"Se cre&oacute; correctamente el controlador '$controller' en '$controllers_dir/$file'\");\n\t\t\t}else {\n\t\t\t Flash::error(\"Error: No se pudo escribir en el directorio, verifique los permisos sobre el directorio\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t$this->route_to(\"controller: $controller\", \"action: $action\");\n\t}", "private function instanceController( string $controller_class ): Controller {\n\t\treturn new $controller_class( $this->request, $this->site );\n\t}", "public function makeController($controller_name)\n\t{\n\t\t$model\t= $this->_makeModel($controller_name, $this->_storage_type);\n\t\t$view\t= $this->_makeView($controller_name);\n\t\t\n\t\treturn new $controller_name($model, $view);\n\t}", "public function create()\n {\n $output = new \\Symfony\\Component\\Console\\Output\\ConsoleOutput();\n $output->writeln(\"<info>Controller Create</info>\");\n }", "protected function createDefaultController() {\n Octopus::requireOnce($this->app->getOption('OCTOPUS_DIR') . 'controllers/Default.php');\n return new DefaultController();\n }", "private function createControllerDefinition()\n {\n $id = $this->getServiceId('controller');\n if (!$this->container->has($id)) {\n $definition = new Definition($this->getServiceClass('controller'));\n $definition\n ->addMethodCall('setConfiguration', [new Reference($this->getServiceId('configuration'))])\n ->addMethodCall('setContainer', [new Reference('service_container')])\n ;\n $this->container->setDefinition($id, $definition);\n }\n }", "public function createController( $ctrlName, $action ) {\n $args['action'] = $action;\n $args['path'] = $this->path . '/modules/' . $ctrlName;\n $ctrlFile = $args['path'] . '/Controller.php';\n // $args['moduleName'] = $ctrlName;\n if ( file_exists( $ctrlFile ) ) {\n $ctrlPath = str_replace( CITRUS_PATH, '', $args['path'] );\n $ctrlPath = str_replace( '/', '\\\\', $ctrlPath ) . '\\Controller';\n try { \n $r = new \\ReflectionClass( $ctrlPath ); \n $inst = $r->newInstanceArgs( $args ? $args : array() );\n\n $this->controller = Citrus::apply( $inst, Array( \n 'name' => $ctrlName, \n ) );\n if ( $this->controller->is_protected == null ) {\n $this->controller->is_protected = $this->is_protected;\n }\n return $this->controller;\n } catch ( \\Exception $e ) {\n prr($e, true);\n }\n } else {\n return false;\n }\n }", "protected function createTestController() {\n\t\t$controller = new CController('test');\n\n\t\t$action = $this->getMock('CAction', array('run'), array($controller, 'test'));\n\t\t$controller->action = $action;\n\n\t\tYii::app()->controller = $controller;\n\t\treturn $controller;\n\t}", "public static function newController($controllerName, $params = [], $request = null) {\n\n\t\t$controller = \"App\\\\Controllers\\\\\".$controllerName;\n\n\t\treturn new $controller($params, $request);\n\n\t}", "private function loadController() : void\n\t{\n\t\t$this->controller = new $this->controllerName($this->request);\n\t}", "public function createController($pi, array $params)\n {\n $class = $pi . '_Controller_' . ucfirst($params['page']);\n\n return new $class();\n }", "public function createController() {\n //check our requested controller's class file exists and require it if so\n \n if (file_exists(\"modules/\" . $this->controllerName . \"/controllers/\" . $this->controllerName .\".php\" ) && $this->controllerName != 'error') {\n require(\"modules/\" . $this->controllerName . \"/controllers/\" . $this->controllerName .\".php\");\n \n } else {\n \n $this->urlValues['controller'] = \"error\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badurl\", $this->urlValues);\n }\n\n //does the class exist?\n if (class_exists($this->controllerClass)) {\n $parents = class_parents($this->controllerClass);\n //does the class inherit from the BaseController class?\n if (in_array(\"BaseController\", $parents)) {\n //does the requested class contain the requested action as a method?\n if (method_exists($this->controllerClass, $this->action)) { \n return new $this->controllerClass($this->action, $this->urlValues);\n \n } else {\n //bad action/method error\n $this->urlValues['controller'] = \"error\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badview\", $this->urlValues);\n }\n } else {\n $this->urlValues['controller'] = \"error\";\n //bad controller error\n echo \"hjh\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"b\", $this->urlValues);\n }\n } else {\n \n //bad controller error\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badurl\", $this->urlValues);\n }\n }", "protected static function createController($name) {\n $result = null;\n\n $name = self::$_namespace . ($name ? $name : self::$defaultController) . 'Controller';\n if(class_exists($name)) {\n $controllerClass = new \\ReflectionClass($name);\n if($controllerClass->hasMethod('run')) {\n $result = new $name();\n }\n }\n\n return $result;\n }", "public function createController(): void\n {\n $minimum_buffer_min = 3;\n $token_ok = $this->routerService->ds_token_ok($minimum_buffer_min);\n if ($token_ok) {\n # 2. Call the worker method\n # More data validation would be a good idea here\n # Strip anything other than characters listed\n $results = $this->worker($this->args);\n\n if ($results) {\n # Redirect the user to the NDSE view\n # Don't use an iFrame!\n # State can be stored/recovered using the framework's session or a\n # query parameter on the returnUrl\n header('Location: ' . $results[\"redirect_url\"]);\n exit;\n }\n } else {\n $this->clientService->needToReAuth($this->eg);\n }\n }", "protected function createController($controllerClass)\n {\n $cls = new ReflectionClass($controllerClass);\n return $cls->newInstance($this->environment);\n }", "protected function createController($name)\n {\n $controllerClass = 'controller\\\\'.ucfirst($name).'Controller';\n\n if(!class_exists($controllerClass)) {\n throw new \\Exception('Controller class '.$controllerClass.' not exists!');\n }\n\n return new $controllerClass();\n }", "protected function initController() {\n\t\tif (!isset($_GET['controller'])) {\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$controllerClass = $_GET['controller'].\"Controller\";\n\t\tif (!class_exists($controllerClass)) {\n\t\t\t//Console::error(@$_GET['controller'].\" doesn't exist\");\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$this->controller = new $controllerClass();\n\t}", "public function makeTestController(TestController $controller)\r\n\t{\r\n\t}", "static function factory($GET=array(), $POST=array(), $FILES=array()) {\n $type = (isset($GET['type'])) ? $GET['type'] : '';\n $objectController = $type.'_Controller';\n $addLocation = $type.'/'.$objectController.'.php';\n foreach ($_ENV['locations'] as $location) {\n if (is_file($location.$addLocation)) {\n return new $objectController($GET, $POST, $FILES);\n } \n }\n throw new Exception('The controller \"'.$type.'\" does not exist.');\n }", "public function create()\n {\n $general = new ModeloController();\n\n return $general->create();\n }", "public function makeController($controllerNamespace, $controllerName, Log $log, $session, Request $request, Response $response)\r\n\t{\r\n\t\t$fullControllerName = '\\\\Application\\\\Controller\\\\' . (!empty($controllerNamespace) ? $controllerNamespace . '\\\\' : '') . $controllerName;\r\n\t\t$controller = new $fullControllerName();\r\n\t\t$controller->setConfig($this->config);\r\n\t\t$controller->setRequest($request);\r\n\t\t$controller->setResponse($response);\r\n\t\t$controller->setLog($log);\r\n\t\tif (isset($session))\r\n\t\t{\r\n\t\t\t$controller->setSession($session);\r\n\t\t}\r\n\r\n\t\t// Execute additional factory method, if available (exists in \\Application\\Controller\\Factory)\r\n\t\t$method = 'make' . $controllerName;\r\n\t\tif (is_callable(array($this, $method)))\r\n\t\t{\r\n\t\t\t$this->$method($controller);\r\n\t\t}\r\n\r\n\t\t// If the controller has an init() method, call it now\r\n\t\tif (is_callable(array($controller, 'init')))\r\n\t\t{\r\n\t\t\t$controller->init();\r\n\t\t}\r\n\r\n\t\treturn $controller;\r\n\t}", "public static function create()\n\t{\n\t\t//check, if an AccessGroupController instance already exists\n\t\tif(AccessGroupController::$accessGroupController == null)\n\t\t{\n\t\t\tAccessGroupController::$accessGroupController = new AccessGroupController();\n\t\t}\n\n\t\treturn AccessGroupController::$accessGroupController;\n\t}", "public static function buildController()\n\t{\n\t\t$file = CONTROLLER_PATH . 'indexController.class.php';\n\n\t\tif(!file_exists($file))\n\t\t{\n\t\t\tif(\\RCPHP\\Util\\Check::isClient())\n\t\t\t{\n\t\t\t\t$controller = '<?php\nclass indexController extends \\RCPHP\\Controller {\n public function index(){\n echo \"Welcome RcPHP!\\n\";\n }\n}';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$controller = '<?php\nclass indexController extends \\RCPHP\\Controller {\n public function index(){\n echo \\'<style type=\"text/css\">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} body{ background: #fff; font-family: \"微软雅黑\"; color: #333;} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.8em; font-size: 36px }</style><div style=\"padding: 24px 48px;\"> <h1>:)</h1><p>Welcome <b>RcPHP</b>!</p></div>\\';\n }\n}';\n\t\t\t}\n\t\t\tfile_put_contents($file, $controller);\n\t\t}\n\t}", "public function getController( );", "public static function getInstance() : Controller {\n if ( null === self::$instance ) {\n self::$instance = new self();\n self::$instance->options = new Options(\n self::OPTIONS_KEY\n );\n }\n\n return self::$instance;\n }", "static function appCreateController($entityName, $prefijo = '') {\n\n $controller = ControllerBuilder::getController($entityName, $prefijo);\n $entityFile = ucfirst(str_replace($prefijo, \"\", $entityName));\n $fileController = \"../../modules/{$entityFile}/{$entityFile}Controller.class.php\";\n\n $result = array();\n $ok = self::createArchive($fileController, $controller);\n ($ok) ? array_push($result, \"Ok, {$fileController} created\") : array_push($result, \"ERROR creating {$fileController}\");\n\n return $result;\n }", "public static function newInstance($path = \\simpleChat\\Utility\\ROOT_PATH)\n {\n $request = new Request();\n \n \n if ($request->isAjax())\n {\n return new AjaxController();\n }\n else if ($request->jsCode())\n {\n return new JsController();\n }\n else\n {\n return new StandardController($path);\n }\n }", "private function createInstance()\n {\n $objectManager = new \\Magento\\Framework\\TestFramework\\Unit\\Helper\\ObjectManager($this);\n $this->controller = $objectManager->getObject(\n \\Magento\\NegotiableQuote\\Controller\\Adminhtml\\Quote\\RemoveFailedSku::class,\n [\n 'context' => $this->context,\n 'logger' => $this->logger,\n 'messageManager' => $this->messageManager,\n 'cart' => $this->cart,\n 'resultRawFactory' => $this->resultRawFactory\n ]\n );\n }", "function loadController(){\n $name = ucfirst($this->request->controller).'Controller' ;\n $file = ROOT.DS.'Controller'.DS.$name.'.php' ;\n /*if(!file_exists($file)){\n $this->error(\"Le controleur \".$this->request->controller.\" n'existe pas\") ;\n }*/\n require_once $file;\n $controller = new $name($this->request);\n return $controller ;\n }", "public function __construct(){\r\n $app = Application::getInstance();\r\n $this->_controller = $app->getController();\r\n }", "public static function & instance()\n {\n if (self::$instance === null) {\n Benchmark::start(SYSTEM_BENCHMARK.'_controller_setup');\n\n // Include the Controller file\n require Router::$controller_path;\n\n try {\n // Start validation of the controller\n $class = new ReflectionClass(ucfirst(Router::$controller).'_Controller');\n } catch (ReflectionException $e) {\n // Controller does not exist\n Event::run('system.404');\n }\n\n if ($class->isAbstract() or (IN_PRODUCTION and $class->getConstant('ALLOW_PRODUCTION') == false)) {\n // Controller is not allowed to run in production\n Event::run('system.404');\n }\n\n // Run system.pre_controller\n Event::run('system.pre_controller');\n\n // Create a new controller instance\n $controller = $class->newInstance();\n\n // Controller constructor has been executed\n Event::run('system.post_controller_constructor');\n\n try {\n // Load the controller method\n $method = $class->getMethod(Router::$method);\n\n // Method exists\n if (Router::$method[0] === '_') {\n // Do not allow access to hidden methods\n Event::run('system.404');\n }\n\n if ($method->isProtected() or $method->isPrivate()) {\n // Do not attempt to invoke protected methods\n throw new ReflectionException('protected controller method');\n }\n\n // Default arguments\n $arguments = Router::$arguments;\n } catch (ReflectionException $e) {\n // Use __call instead\n $method = $class->getMethod('__call');\n\n // Use arguments in __call format\n $arguments = array(Router::$method, Router::$arguments);\n }\n\n // Stop the controller setup benchmark\n Benchmark::stop(SYSTEM_BENCHMARK.'_controller_setup');\n\n // Start the controller execution benchmark\n Benchmark::start(SYSTEM_BENCHMARK.'_controller_execution');\n\n // Execute the controller method\n $method->invokeArgs($controller, $arguments);\n\n // Controller method has been executed\n Event::run('system.post_controller');\n\n // Stop the controller execution benchmark\n Benchmark::stop(SYSTEM_BENCHMARK.'_controller_execution');\n }\n\n return self::$instance;\n }", "protected function instantiateController($class)\n {\n $controller = new $class();\n\n if ($controller instanceof Controller) {\n $controller->setContainer($this->container);\n }\n\n return $controller;\n }", "public function __construct (){\n $this->AdminController = new AdminController();\n $this->ArticleController = new ArticleController();\n $this->AuditoriaController = new AuditoriaController();\n $this->CommentController = new CommentController();\n $this->CourseController = new CourseController();\n $this->InscriptionsController = new InscriptionsController();\n $this->ModuleController = new ModuleController();\n $this->PlanController = new PlanController();\n $this->ProfileController = new ProfileController();\n $this->SpecialtyController = new SpecialtyController();\n $this->SubscriptionController = new SubscriptionController();\n $this->TeacherController = new TeacherController();\n $this->UserController = new UserController();\n $this->WebinarController = new WebinarController();\n }", "protected function makeController($prefix)\n {\n new MakeController($this, $this->files, $prefix);\n }", "public function createController($route)\n {\n $controller = parent::createController('gymv/' . $route);\n return $controller === false\n ? parent::createController($route)\n : $controller;\n }", "public static function createFrontController()\n {\n return self::createInjectorWithBindings(self::extractArgs(func_get_args()))\n ->getInstance('net::stubbles::websites::stubFrontController');\n }", "public static function controller($name)\n {\n $name = ucfirst(strtolower($name));\n \n $directory = 'controller';\n $filename = $name;\n $tracker = 'controller';\n $init = (boolean) $init;\n $namespace = 'controller';\n $class_name = $name;\n \n return self::_load($directory, $filename, $tracker, $init, $namespace, $class_name);\n }", "protected static function instantiateMockController()\n {\n /** @var Event $oEvent */\n $oEvent = Factory::service('Event');\n\n if (!$oEvent->hasBeenTriggered(Events::SYSTEM_STARTING)) {\n\n require_once BASEPATH . 'core/Controller.php';\n\n load_class('Output', 'core');\n load_class('Security', 'core');\n load_class('Input', 'core');\n load_class('Lang', 'core');\n\n new NailsMockController();\n }\n }", "private static function controller()\n {\n $files = ['Controller'];\n $folder = static::$root.'MVC'.'/';\n\n self::call($files, $folder);\n }", "public function createController()\n\t{\n\t\t$originalFile = app_path('Http/Controllers/Reports/SampleReport.php');\n\t\t$newFile = dirname($originalFile) . DIRECTORY_SEPARATOR . $this->class . $this->sufix . '.php';\n\n\t\t// Read original file\n\t\tif( ! $content = file_get_contents($originalFile))\n\t\t\treturn false;\n\n\t\t// Replace class name\n\t\t$content = str_replace('SampleReport', $this->class . $this->sufix, $content);\n\n\t\t// Write new file\n\t\treturn (bool) file_put_contents($newFile, $content);\n\t}", "public function runController() {\n // Check for a router\n if (is_null($this->getRouter())) {\n \t // Set the method to load\n \t $sController = ucwords(\"{$this->getController()}Controller\");\n } else {\n\n // Set the controller with the router\n $sController = ucwords(\"{$this->getController()}\".ucfirst($this->getRouter()).\"Controller\");\n }\n \t// Check for class\n \tif (class_exists($sController, true)) {\n \t\t// Set a new instance of Page\n \t\t$this->setPage(new Page());\n \t\t// The class exists, load it\n \t\t$oController = new $sController();\n\t\t\t\t// Now check for the proper method \n\t\t\t\t// inside of the controller class\n\t\t\t\tif (method_exists($oController, $this->loadConfigVar('systemSettings', 'controllerLoadMethod'))) {\n\t\t\t\t\t// We have a valid controller, \n\t\t\t\t\t// execute the initializer\n\t\t\t\t\t$oController->init($this);\n\t\t\t\t\t// Set the variable scope\n\t \t\t$this->setViewScope($oController);\n\t \t\t// Render the layout\n\t \t\t$this->renderLayout();\n\t\t\t\t} else {\n\t\t\t\t\t// The initializer does not exist, \n\t\t\t\t\t// which means an invalid controller, \n\t\t\t\t\t// so now we let the caller know\n\t\t\t\t\t$this->setError($this->loadConfigVar('errorMessages', 'invalidController'));\n\t\t\t\t\t// Run the error\n\t\t\t\t\t// $this->runError();\n\t\t\t\t}\n \t// The class does not exist\n \t} else {\n\t\t\t\t// Set the system error\n\t \t\t$this->setError(\n\t\t\t\t\tstr_replace(\n\t\t\t\t\t\t':controllerName', \n\t\t\t\t\t\t$sController, \n\t\t\t\t\t\t$this->loadConfigVar(\n\t\t\t\t\t\t\t'errorMessages', \n\t\t\t\t\t\t\t'controllerDoesNotExist'\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t);\n \t\t// Run the error\n\t\t\t\t// $this->runError();\n \t}\n \t// Return instance\n \treturn $this;\n }", "public function controller()\n\t{\n\t\n\t}", "protected function buildController()\n {\n $columns = collect($this->columns)->pluck('column')->implode('|');\n\n $permissions = [\n 'create:'.$this->module->createPermission->name,\n 'edit:'.$this->module->editPermission->name,\n 'delete:'.$this->module->deletePermission->name,\n ];\n\n $this->controller = [\n 'name' => $this->class,\n '--model' => $this->class,\n '--request' => $this->class.'Request',\n '--permissions' => implode('|', $permissions),\n '--view-folder' => snake_case($this->module->name),\n '--fields' => $columns,\n '--module' => $this->module->id,\n ];\n }", "function getController(){\n\treturn getFactory()->getBean( 'Controller' );\n}", "protected function getController()\n {\n $uri = WingedLib::clearPath(static::$parentUri);\n if (!$uri) {\n $uri = './';\n $explodedUri = ['index', 'index'];\n } else {\n $explodedUri = explode('/', $uri);\n if (count($explodedUri) == 1) {\n $uri = './' . $explodedUri[0] . '/';\n } else {\n $uri = './' . $explodedUri[0] . '/' . $explodedUri[1] . '/';\n }\n }\n\n $indexUri = WingedLib::clearPath(\\WingedConfig::$config->INDEX_ALIAS_URI);\n if ($indexUri) {\n $indexUri = explode('/', $indexUri);\n }\n\n if ($indexUri) {\n if ($explodedUri[0] === 'index' && isset($indexUri[0])) {\n static::$controllerName = Formater::camelCaseClass($indexUri[0]) . 'Controller';\n $uri = './' . $indexUri[0] . '/';\n }\n if (isset($explodedUri[1]) && isset($indexUri[1])) {\n if ($explodedUri[1] === 'index') {\n static::$controllerAction = 'action' . Formater::camelCaseMethod($indexUri[1]);\n $uri .= $indexUri[1] . '/';\n }\n } else {\n $uri .= 'index/';\n }\n }\n\n $controllerDirectory = new Directory(static::$parent . 'controllers/', false);\n if ($controllerDirectory->exists()) {\n $controllerFile = new File($controllerDirectory->folder . static::$controllerName . '.php', false);\n if ($controllerFile->exists()) {\n include_once $controllerFile->file_path;\n if (class_exists(static::$controllerName)) {\n $controller = new static::$controllerName();\n if (method_exists($controller, static::$controllerAction)) {\n try {\n $reflectionMethod = new \\ReflectionMethod(static::$controllerName, static::$controllerAction);\n $pararms = [];\n foreach ($reflectionMethod->getParameters() as $parameter) {\n $pararms[$parameter->getName()] = $parameter->isOptional();\n }\n } catch (\\Exception $exception) {\n $pararms = [];\n }\n return [\n 'uri' => $uri,\n 'params' => $pararms,\n ];\n }\n }\n }\n }\n return false;\n }", "public function __construct()\n {\n $this->controller = new DHTController();\n }", "public function createController($controllers) {\n\t\tforeach($controllers as $module=>$controllers) {\n\t\t\tforeach($controllers as $key=>$controller) {\n\t\t\t\tif(!file_exists(APPLICATION_PATH.\"/modules/$module/controllers/\".ucfirst($controller).\"Controller.php\")) {\n\t\t\t\t\tMy_Class_Maerdo_Console::display(\"3\",\"Create '\".ucfirst($controller).\"' controller in $module\");\t\t\t\t\n\t\t\t\t\texec(\"zf create controller $controller index-action-included=0 $module\");\t\t\t\t\t\n\t\t\t\t}\telse {\n\t\t\t\t\tMy_Class_Maerdo_Console::display(\"3\",ucfirst($controller).\"' controller in $module already exists\");\t\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}", "protected function instantiateController($class)\n {\n return new $class($this->routesMaker);\n }", "private function createController($table){\n\n // Filtering file name\n $fileName = $this::cleanToName($table[\"name\"]) . 'Controller.php';\n\n // Prepare the Class scheme inside the controller\n $contents = '<?php '.$fileName.' ?>';\n\n\n // Return a boolean to process completed\n return Storage::disk('controllers')->put($this->appNamePath.'/'.$fileName, $contents);\n\n }", "public function GetController()\n\t{\n\t\t$params = $this->QueryVarArrayToParameterArray($_GET);\n\t\tif (!empty($_POST)) {\n\t\t\t$params = array_merge($params, $this->QueryVarArrayToParameterArray($_POST));\n\t\t}\n\n\t\tif (!empty($_GET['q'])) {\n\t\t\t$restparams = GitPHP_Router::ReadCleanUrl($_SERVER['REQUEST_URI']);\n\t\t\tif (count($restparams) > 0)\n\t\t\t\t$params = array_merge($params, $restparams);\n\t\t}\n\n\t\t$controller = null;\n\n\t\t$action = null;\n\t\tif (!empty($params['action']))\n\t\t\t$action = $params['action'];\n\n\t\tswitch ($action) {\n\n\n\t\t\tcase 'search':\n\t\t\t\t$controller = new GitPHP_Controller_Search();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'commitdiff':\n\t\t\tcase 'commitdiff_plain':\n\t\t\t\t$controller = new GitPHP_Controller_Commitdiff();\n\t\t\t\tif ($action === 'commitdiff_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blobdiff':\n\t\t\tcase 'blobdiff_plain':\n\t\t\t\t$controller = new GitPHP_Controller_Blobdiff();\n\t\t\t\tif ($action === 'blobdiff_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'history':\n\t\t\t\t$controller = new GitPHP_Controller_History();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'shortlog':\n\t\t\tcase 'log':\n\t\t\t\t$controller = new GitPHP_Controller_Log();\n\t\t\t\tif ($action === 'shortlog')\n\t\t\t\t\t$controller->SetParam('short', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'snapshot':\n\t\t\t\t$controller = new GitPHP_Controller_Snapshot();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'tree':\n\t\t\tcase 'trees':\n\t\t\t\t$controller = new GitPHP_Controller_Tree();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'tags':\n\t\t\t\tif (empty($params['tag'])) {\n\t\t\t\t\t$controller = new GitPHP_Controller_Tags();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tcase 'tag':\n\t\t\t\t$controller = new GitPHP_Controller_Tag();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'heads':\n\t\t\t\t$controller = new GitPHP_Controller_Heads();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blame':\n\t\t\t\t$controller = new GitPHP_Controller_Blame();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blob':\n\t\t\tcase 'blobs':\n\t\t\tcase 'blob_plain':\t\n\t\t\t\t$controller = new GitPHP_Controller_Blob();\n\t\t\t\tif ($action === 'blob_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'atom':\n\t\t\tcase 'rss':\n\t\t\t\t$controller = new GitPHP_Controller_Feed();\n\t\t\t\tif ($action == 'rss')\n\t\t\t\t\t$controller->SetParam('format', GitPHP_Controller_Feed::RssFormat);\n\t\t\t\telse if ($action == 'atom')\n\t\t\t\t\t$controller->SetParam('format', GitPHP_Controller_Feed::AtomFormat);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'commit':\n\t\t\tcase 'commits':\n\t\t\t\t$controller = new GitPHP_Controller_Commit();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'summary':\n\t\t\t\t$controller = new GitPHP_Controller_Project();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'project_index':\n\t\t\tcase 'projectindex':\n\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t$controller->SetParam('txt', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'opml':\n\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t$controller->SetParam('opml', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'login':\n\t\t\t\t$controller = new GitPHP_Controller_Login();\n\t\t\t\tif (!empty($_POST['username']))\n\t\t\t\t\t$controller->SetParam('username', $_POST['username']);\n\t\t\t\tif (!empty($_POST['password']))\n\t\t\t\t\t$controller->SetParam('password', $_POST['password']);\n\t\t\t\tbreak;\n\n\t\t\tcase 'logout':\n\t\t\t\t$controller = new GitPHP_Controller_Logout();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'graph':\n\t\t\tcase 'graphs':\n\t\t\t\t//$controller = new GitPHP_Controller_Graph();\n\t\t\t\t//break;\n\t\t\tcase 'graphdata':\n\t\t\t\t//$controller = new GitPHP_Controller_GraphData();\n\t\t\t\t//break;\n\t\t\tdefault:\n\t\t\t\tif (!empty($params['project'])) {\n\t\t\t\t\t$controller = new GitPHP_Controller_Project();\n\t\t\t\t} else {\n\t\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t}\n\t\t}\n\n\t\tforeach ($params as $paramname => $paramval) {\n\t\t\tif ($paramname !== 'action')\n\t\t\t\t$controller->SetParam($paramname, $paramval);\n\t\t}\n\n\t\t$controller->SetRouter($this);\n\n\t\treturn $controller;\n\t}", "public function testCreateTheControllerClass()\n {\n $controller = new Game21Controller();\n $this->assertInstanceOf(\"\\App\\Http\\Controllers\\Game21Controller\", $controller);\n }", "public static function createController( MShop_Context_Item_Interface $context, $name = null );", "public function __construct()\n {\n\n $url = $this->splitURL();\n // echo $url[0];\n\n // check class file exists\n if (file_exists(\"../app/controllers/\" . strtolower($url[0]) . \".php\")) {\n $this->controller = strtolower($url[0]);\n unset($url[0]);\n }\n\n // echo $this->controller;\n\n require \"../app/controllers/\" . $this->controller . \".php\";\n\n // create Instance(object)\n $this->controller = new $this->controller(); // $this->controller is an object from now on\n if (isset($url[1])) {\n if (method_exists($this->controller, $url[1])) {\n $this->method = $url[1];\n unset($url[1]);\n }\n }\n\n // run the class and method\n $this->params = array_values($url); // array_values 값들인 인자 0 부터 다시 배치\n call_user_func_array([$this->controller, $this->method], $this->params);\n }", "public function getController();", "public function getController();", "public function getController();", "public function createController($pageType, $template)\n {\n $controller = null;\n\n // Use factories first\n if (isset($this->controllerFactories[$pageType])) {\n $callable = $this->controllerFactories[$pageType];\n $controller = $callable($this, 'templates/'.$template);\n\n if ($controller) {\n return $controller;\n }\n }\n\n // See if a default controller exists in the theme namespace\n $class = null;\n if ($pageType == 'posts') {\n $class = $this->namespace.'\\\\Controllers\\\\PostsController';\n } elseif ($pageType == 'post') {\n $class = $this->namespace.'\\\\Controllers\\\\PostController';\n } elseif ($pageType == 'page') {\n $class = $this->namespace.'\\\\Controllers\\\\PageController';\n } elseif ($pageType == 'term') {\n $class = $this->namespace.'\\\\Controllers\\\\TermController';\n }\n\n if (class_exists($class)) {\n $controller = new $class($this, 'templates/'.$template);\n\n return $controller;\n }\n\n // Create a default controller from the stem namespace\n if ($pageType == 'posts') {\n $controller = new PostsController($this, 'templates/'.$template);\n } elseif ($pageType == 'post') {\n $controller = new PostController($this, 'templates/'.$template);\n } elseif ($pageType == 'page') {\n $controller = new PageController($this, 'templates/'.$template);\n } elseif ($pageType == 'search') {\n $controller = new SearchController($this, 'templates/'.$template);\n } elseif ($pageType == 'term') {\n $controller = new TermController($this, 'templates/'.$template);\n }\n\n return $controller;\n }", "private function loadController($controller)\r\n {\r\n $className = $controller.'Controller';\r\n \r\n $class = new $className($this);\r\n \r\n $class->init();\r\n \r\n return $class;\r\n }", "public static function newInstance ($class)\n {\n try\n {\n // the class exists\n $object = new $class();\n\n if (!($object instanceof sfController))\n {\n // the class name is of the wrong type\n $error = 'Class \"%s\" is not of the type sfController';\n $error = sprintf($error, $class);\n\n throw new sfFactoryException($error);\n }\n\n return $object;\n }\n catch (sfException $e)\n {\n $e->printStackTrace();\n }\n }", "public function create()\n {\n //TODO frontEndDeveloper \n //load admin.classes.create view\n\n\n return view('admin.classes.create');\n }", "private function generateControllerClass()\n {\n $dir = $this->bundle->getPath();\n\n $parts = explode('\\\\', $this->entity);\n $entityClass = array_pop($parts);\n $entityNamespace = implode('\\\\', $parts);\n\n $target = sprintf(\n '%s/Controller/%s/%sController.php',\n $dir,\n str_replace('\\\\', '/', $entityNamespace),\n $entityClass\n );\n\n if (file_exists($target)) {\n throw new \\RuntimeException('Unable to generate the controller as it already exists.');\n }\n\n $this->renderFile($this->skeletonDir, 'controller.php', $target, array(\n 'actions' => $this->actions,\n 'route_prefix' => $this->routePrefix,\n 'route_name_prefix' => $this->routeNamePrefix,\n 'dir' => $this->skeletonDir,\n 'bundle' => $this->bundle->getName(),\n 'entity' => $this->entity,\n 'entity_class' => $entityClass,\n 'namespace' => $this->bundle->getNamespace(),\n 'entity_namespace' => $entityNamespace,\n 'format' => $this->format,\n ));\n }", "static public function Instance()\t\t// Static so we use classname itself to create object i.e. Controller::Instance()\r\n {\r\n // Only one object of this class is required\r\n // so we only create if it hasn't already\r\n // been created.\r\n if(!isset(self::$_instance))\r\n {\r\n self::$_instance = new self();\t// Make new instance of the Controler class\r\n self::$_instance->_commandResolver = new CommandResolver();\r\n\r\n ApplicationController::LoadViewMap();\r\n }\r\n return self::$_instance;\r\n }", "private function create_mock_controller() {\n eval('class TestController extends cyclone\\request\\SkeletonController {\n function before() {\n DispatcherTest::$beforeCalled = TRUE;\n DispatcherTest::$route = $this->_request->route;\n }\n\n function after() {\n DispatcherTest::$afterCalled = TRUE;\n }\n\n function action_act() {\n DispatcherTest::$actionCalled = TRUE;\n }\n}');\n }", "public function AController() {\r\n\t}", "protected function initializeController() {}", "public function dispatch()\n { \n $controller = $this->formatController();\n $controller = new $controller($this);\n if (!$controller instanceof ControllerAbstract) {\n throw new Exception(\n 'Class ' . get_class($controller) . ' is not a valid controller instance. Controller classes must '\n . 'derive from \\Europa\\ControllerAbstract.'\n );\n }\n $controller->action();\n return $controller;\n }", "public function controller()\n {\n $method = $_SERVER['REQUEST_METHOD'];\n if ($method == 'GET') {\n $this->getController();\n };\n if ($method == 'POST') {\n check_csrf();\n $this->createController();\n };\n }", "private function addController($controller)\n {\n $object = new $controller($this->app);\n $this->controllers[$controller] = $object;\n }", "function Controller($ControllerName = Web\\Application\\DefaultController) {\n return Application()->Controller($ControllerName);\n }", "public function getController($controllerName) {\r\n\t\tif(!isset(self::$instances[$controllerName])) {\r\n\t\t $package = $this->getPackage(Nomenclature::getVendorAndPackage($controllerName));\r\n\t\t if(!$package) {\r\n\t\t $controller = new $controllerName();\r\n\t\t $controller->setContext($this->getContext());\r\n\t\t return $controller;\r\n\t\t //return false;\r\n\t\t }\r\n\r\n\t\t if(!$package || !$package->controllerExists($controllerName)) {\r\n\t\t $controller = new $controllerName();\r\n\t\t $controller->setContext($this->getContext());\r\n\t\t $package->addController($controller);\r\n\t\t } else {\r\n\t\t $controller = $package->getController($controllerName);\r\n\t\t }\r\n\t\t} else {\r\n\t\t $controller = self::$instances[$controllerName];\r\n\t\t}\r\n\t\treturn $controller;\r\n\t}", "public function testInstantiateSessionController()\n {\n $controller = new SessionController();\n\n $this->assertInstanceOf(\"App\\Http\\Controllers\\SessionController\", $controller);\n }", "private static function loadController($str) {\n\t\t$str = self::formatAsController($str);\n\t\t$app_controller = file_exists(APP_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t$lib_controller = file_exists(LIB_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\n\t\tif ( $app_controller || $lib_controller ) {\n\t\t\tif ($app_controller) {\n\t\t\t\trequire_once(APP_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\t}\n\t\t\telse {\n\t\t\t\trequire_once(LIB_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\t}\n\t\n\t\t\t$controller = new $str();\n\t\t\t\n\t\t\tif (!$controller instanceof Controller) {\n\t\t\t\tthrow new IsNotControllerException();\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn $controller;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthrow new ControllerNotExistsException($str);\n\t\t}\n\t}", "public function __construct()\n {\n // and $url[1] is a controller method\n if ($_GET['url'] == NULL) {\n $url = explode('/', env('defaultRoute'));\n } else {\n $url = explode('/', rtrim($_GET['url'],'/'));\n }\n\n $file = 'controllers/' . $url[0] . '.php';\n if (file_exists($file)) {\n require $file;\n $controller = new $url[0];\n\n if (isset($url[1])) {\n $controller->{$url[1]}();\n }\n } else {\n echo \"404 not found\";\n }\n }", "protected function _controllers()\n {\n $this['watchController'] = $this->factory(static function ($c) {\n return new Controller\\WatchController($c['app'], $c['searcher']);\n });\n\n $this['runController'] = $this->factory(static function ($c) {\n return new Controller\\RunController($c['app'], $c['searcher']);\n });\n\n $this['customController'] = $this->factory(static function ($c) {\n return new Controller\\CustomController($c['app'], $c['searcher']);\n });\n\n $this['waterfallController'] = $this->factory(static function ($c) {\n return new Controller\\WaterfallController($c['app'], $c['searcher']);\n });\n\n $this['importController'] = $this->factory(static function ($c) {\n return new Controller\\ImportController($c['app'], $c['saver'], $c['config']['upload.token']);\n });\n\n $this['metricsController'] = $this->factory(static function ($c) {\n return new Controller\\MetricsController($c['app'], $c['searcher']);\n });\n }", "public function __construct() {\r\n $this->controllerLogin = new ControllerLogin();\r\n $this->controllerGame = new ControllerGame();\r\n $this->controllerRegister = new ControllerRegister();\r\n }", "public function controller ($post = array())\n\t{\n\n\t\t$name = $post['controller_name'];\n\n\t\tif (is_file(APPPATH.'controllers/'.$name.'.php')) {\n\n\t\t\t$message = sprintf(lang('Controller_s_is_existed'), APPPATH.'controllers/'.$name.'.php');\n\n\t\t\t$this->msg[] = $message;\n\n\t\t\treturn $this->result(false, $this->msg[0]);\n\n\t\t}\n\n\t\t$extends = null;\n\n\t\tif (isset($post['crud'])) {\n\n\t\t\t$crud = true;\n\t\t\t\n\t\t}\n\t\telse{\n\n\t\t\t$crud = false;\n\n\t\t}\n\n\t\t$file = $this->_create_folders_from_name($name, 'controllers');\n\n\t\t$data = '';\n\n\t\t$data .= $this->_class_open($file['file'], __METHOD__, $extends);\n\n\t\t$crud === FALSE || $data .= $this->_crud_methods_contraller($post);\n\n\t\t$data .= $this->_class_close();\n\n\t\t$path = APPPATH . 'controllers/' . $file['path'] . strtolower($file['file']) . '.php';\n\n\t\twrite_file($path, $data);\n\n\t\t$this->msg[] = sprintf(lang('Created_controller_s'), $path);\n\n\t\t//echo $this->_messages();\n\t\treturn $this->result(true, $this->msg[0]);\n\n\t}", "protected function getController(Request $request) {\n try {\n $controller = $this->objectFactory->create($request->getControllerName(), self::INTERFACE_CONTROLLER);\n } catch (ZiboException $exception) {\n throw new ZiboException('Could not create controller ' . $request->getControllerName(), 0, $exception);\n }\n\n return $controller;\n }", "public function create() {}", "public function __construct()\n {\n $this->dataController = new DataController;\n }", "function __contrruct(){ //construdor do controller, nele é possivel carregar as librari, helpers, models que serão utilizados nesse controller\n\t\tparent::__contrruct();//Chamando o construtor da classe pai\n\t}", "public function __construct() {\n\n // Get the URL elements.\n $url = $this->_parseUrl();\n\n // Checks if the first URL element is set / not empty, and replaces the\n // default controller class string if the given class exists.\n if (isset($url[0]) and ! empty($url[0])) {\n $controllerClass = CONTROLLER_PATH . ucfirst(strtolower($url[0]));\n unset($url[0]);\n if (class_exists($controllerClass)) {\n $this->_controllerClass = $controllerClass;\n }\n }\n\n // Replace the controller class string with a new instance of the it.\n $this->_controllerClass = new $this->_controllerClass;\n\n // Checks if the second URL element is set / not empty, and replaces the\n // default controller action string if the given action is a valid class\n // method.\n if (isset($url[1]) and ! empty($url[1])) {\n if (method_exists($this->_controllerClass, $url[1])) {\n $this->_controllerAction = $url[1];\n unset($url[1]);\n }\n }\n\n // Check if the URL has any remaining elements, setting the controller\n // parameters as a rebase of it if true or an empty array if false.\n $this->_controllerParams = $url ? array_values($url) : [];\n\n // Call the controller and action with parameters.\n call_user_func_array([$this->_controllerClass, $this->_controllerAction], $this->_controllerParams);\n }", "private function setUpController()\n {\n $this->controller = new TestObject(new SharedControllerTestController);\n\n $this->controller->dbal = DBAL::getDBAL('testDB', $this->getDBH());\n }", "public function create() {\n $class_name = $this->getOption('className');\n return new $class_name();\n }" ]
[ "0.82668066", "0.8173394", "0.78115296", "0.77052677", "0.7681875", "0.7659338", "0.74860525", "0.74064577", "0.7297601", "0.7252339", "0.7195181", "0.7174191", "0.70150065", "0.6989306", "0.69835985", "0.69732994", "0.6963521", "0.6935819", "0.68973273", "0.68920785", "0.6877748", "0.68702674", "0.68622285", "0.6839049", "0.6779292", "0.6703522", "0.66688496", "0.66600126", "0.6650373", "0.66436416", "0.6615505", "0.66144013", "0.6588728", "0.64483404", "0.64439476", "0.6429303", "0.6426485", "0.6303757", "0.6298291", "0.6293319", "0.62811387", "0.6258778", "0.62542456", "0.616827", "0.6162314", "0.61610043", "0.6139887", "0.613725", "0.61334985", "0.6132223", "0.6128982", "0.61092585", "0.6094611", "0.60889256", "0.6074893", "0.60660255", "0.6059098", "0.60565156", "0.6044235", "0.60288006", "0.6024102", "0.60225666", "0.6018304", "0.60134345", "0.60124683", "0.6010913", "0.6009284", "0.6001683", "0.5997471", "0.5997012", "0.59942573", "0.5985074", "0.5985074", "0.5985074", "0.5967613", "0.5952533", "0.5949068", "0.5942203", "0.5925731", "0.5914304", "0.5914013", "0.59119135", "0.5910308", "0.5910285", "0.59013796", "0.59003943", "0.5897524", "0.58964556", "0.58952993", "0.58918965", "0.5888943", "0.5875413", "0.5869938", "0.58627135", "0.58594996", "0.5853714", "0.5839484", "0.5832913", "0.582425", "0.58161044", "0.5815566" ]
0.0
-1
Show the application dashboard.
public function index() { return view('home'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dashboard()\n {\n\n $pageData = (new DashboardService())->handleDashboardLandingPage();\n\n return view('application', $pageData);\n }", "function dashboard() {\r\n\t\t\tTrackTheBookView::render('dashboard');\r\n\t\t}", "public function showDashboard() { \n\t\n return View('admin.dashboard');\n\t\t\t\n }", "public function showDashboard()\n {\n return View::make('users.dashboard', [\n 'user' => Sentry::getUser(),\n ]);\n }", "public function dashboard()\n {\n return view('backend.dashboard.index');\n }", "public function index() {\n return view(\"admin.dashboard\");\n }", "public function dashboard()\n {\n return $this->renderContent(\n view('dashboard'),\n trans('sleeping_owl::lang.dashboard')\n );\n }", "public function dashboard(){\n return view('backend.admin.index');\n }", "public function showDashBoard()\n {\n \treturn view('Admins.AdminDashBoard');\n }", "public function dashboard()\n {\n return view('dashboard.index');\n }", "public function index()\n {\n return view('admin.dashboard', ['title' => 'Dashboard']);\n }", "public function dashboard() \r\n {\r\n return view('admin.index');\r\n }", "public function dashboard()\n\t{\n\t\t$page_title = 'organizer dashboard';\n\t\treturn View::make('organizer.dashboard',compact('page_title'));\n\t}", "public function dashboard()\n {\n\t\t$traffic = TrafficService::getTraffic();\n\t\t$devices = TrafficService::getDevices();\n\t\t$browsers = TrafficService::getBrowsers();\n\t\t$status = OrderService::getStatus();\n\t\t$orders = OrderService::getOrder();\n\t\t$users = UserService::getTotal();\n\t\t$products = ProductService::getProducts();\n\t\t$views = ProductService::getViewed();\n\t\t$total_view = ProductService::getTotalView();\n\t\t$cashbook = CashbookService::getAccount();\n $stock = StockService::getStock();\n\n return view('backend.dashboard', compact('traffic', 'devices', 'browsers', 'status', 'orders', 'users', 'products', 'views', 'total_view', 'cashbook', 'stock'));\n }", "public function dashboard()\n {\n\n return view('admin.dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('adm.dashboard');\n }", "public function dashboard()\n {\n $users = \\App\\User::all()->count();\n $roles = \\Spatie\\Permission\\Models\\Role::all()->count();\n $permissions = \\Spatie\\Permission\\Models\\Permission::all()->count();\n $banner = \\App\\Banner::all();\n $categoria = \\App\\Categoria::all();\n $entidadOrganizativa = \\App\\Entidadorganizativa::all();\n $evento = \\App\\Evento::all();\n $fichero = \\App\\Fichero::all();\n $recurso = \\App\\Recurso::all();\n $redsocial = \\App\\Redsocial::all();\n $subcategoria = \\App\\Subcategoria::all();\n $tag = \\App\\Tag::all();\n\n $entities = \\Amranidev\\ScaffoldInterface\\Models\\Scaffoldinterface::all();\n\n return view('scaffold-interface.dashboard.dashboard',\n compact('users', 'roles', 'permissions', 'entities',\n 'banner', 'categoria', 'entidadOrganizativa',\n 'evento', 'fichero', 'recurso', 'redsocial', 'subcategoria', 'tag')\n );\n }", "public function show()\n {\n return view('dashboard');\n }", "public function index()\n\t{\n\t\treturn View::make('dashboard');\n\t}", "public function index() {\n return view('modules.home.dashboard');\n }", "public function show()\n {\n return view('dashboard.dashboard');\n \n }", "public function index()\n {\n return view('admin.dashboard.dashboard');\n\n }", "public function dashboard()\n { \n return view('jobposter.dashboard');\n }", "public function show()\n\t{\n\t\t//\n\t\t$apps = \\App\\application::all();\n\t\treturn view('applications.view', compact('apps'));\n\t}", "public function index()\n {\n return view('pages.admin.dashboard');\n }", "public function indexAction()\n {\n $dashboard = $this->getDashboard();\n\n return $this->render('ESNDashboardBundle::index.html.twig', array(\n 'title' => \"Dashboard\"\n ));\n }", "public function index()\n {\n //\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard.index');\n }", "public function dashboard()\n {\n return view('pages.backsite.dashboard');\n }", "public function index()\n {\n // return component view('dashboard.index');\n return view('layouts.admin_master');\n }", "public function index()\n {\n\n $no_of_apps = UploadApp::count();\n $no_of_analysis_done = UploadApp::where('isAnalyzed', '1')->count();\n $no_of_visible_apps = AnalysisResult::where('isVisible', '1')->count();\n\n return view('admin.dashboard', compact('no_of_apps', 'no_of_analysis_done', 'no_of_visible_apps'));\n }", "public function getDashboard() {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('smartcrud.auth.dashboard');\n }", "public function index()\n {\n if($this->isAdmin() == TRUE)\n {\n $this->loadThis();\n }\n $this->global['pageTitle'] = 'Touba : Dashboard';\n \n $this->loadViews(\"dashboard\", $this->global, NULL , NULL);\n }", "public function dashboard() {\n $data = ['title' => 'Dashboard'];\n return view('pages.admin.dashboard', $data)->with([\n 'users' => $this->users,\n 'num_services' => Service::count(),\n 'num_products' => Product::count(),\n ]);\n }", "public function index()\n {\n return view('board.pages.dashboard-board');\n }", "public function index()\n {\n return view('admin::settings.development.dashboard');\n }", "public function index()\n {\n return view('dashboard.dashboard');\n }", "public function show()\n {\n return view('dashboard::show');\n }", "public function adminDash()\n {\n return Inertia::render(\n 'Admin/AdminDashboard', \n [\n 'data' => ['judul' => 'Halaman Admin']\n ]\n );\n }", "public function dashboard()\n {\n return view('Admin.dashboard');\n }", "public function show()\n {\n return view('admins\\auth\\dashboard');\n }", "public function index()\n {\n // Report =============\n\n return view('Admin.dashboard');\n }", "public function index()\n {\n return view('bitaac::account.dashboard');\n }", "public function index()\n { \n return view('admin-views.dashboard');\n }", "public function getDashboard()\n {\n return view('dashboard');\n }", "function showDashboard()\n { \n $logeado = $this->checkCredentials();\n if ($logeado==true)\n $this->view->ShowDashboard();\n else\n $this->view->showLogin();\n }", "public function index()\n { \n $params['crumbs'] = 'Home';\n $params['active'] = 'home';\n \n return view('admin.dashboard.index', $params);\n }", "public function index()\n\t{\n\t\treturn view::make('customer_panel.dashboard');\n\t}", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index() {\n // return view('home');\n return view('admin-layouts.dashboard.dashboard');\n }", "public function index()\r\n {\r\n return view('user.dashboard');\r\n }", "public function index() {\n return view('dashboard', []);\n }", "public function index()\n {\n //\n return view('dashboard.dashadmin', ['page' => 'mapel']);\n }", "public function index()\n {\n return view('back-end.dashboard.index');\n //\n }", "public function index()\n\t{\n\t\t\n\t\t$data = array(\n\t\t\t'title' => 'Administrator Apps With Laravel',\n\t\t);\n\n\t\treturn View::make('panel/index',$data);\n\t}", "public function index() {\n return view('dashboard.index');\n }", "public function index()\n {\n return view('page.dashboard.index');\n }", "public function index()\n {\n\n return view('dashboard');\n }", "public function dashboardview() {\n \n $this->load->model('Getter');\n $data['dashboard_content'] = $this->Getter->get_dash_content();\n \n $this->load->view('dashboardView', $data);\n\n }", "public function index()\n {\n $this->authorize(DashboardPolicy::PERMISSION_STATS);\n\n $this->setTitle($title = trans('auth::dashboard.titles.statistics'));\n $this->addBreadcrumb($title);\n\n return $this->view('admin.dashboard');\n }", "public function action_index()\r\n\t{\t\t\t\t\r\n\t\t$this->template->title = \"Dashboard\";\r\n\t\t$this->template->content = View::forge('admin/dashboard');\r\n\t}", "public function index()\n {\n $info = SiteInfo::limit(1)->first();\n return view('backend.info.dashboard',compact('info'));\n }", "public function display()\n\t{\n\t\t// Set a default view if none exists.\n\t\tif (!JRequest::getCmd( 'view' ) ) {\n\t\t\tJRequest::setVar( 'view', 'dashboard' );\n\t\t}\n\n\t\tparent::display();\n\t}", "public function index()\n {\n $news = News::all();\n $posts = Post::all();\n $events = Event::all();\n $resources = Resources::all();\n $admin = Admin::orderBy('id', 'desc')->get();\n return view('Backend/dashboard', compact('admin', 'news', 'posts', 'events', 'resources'));\n }", "public function index()\n {\n\n return view('superAdmin.adminDashboard')->with('admin',Admininfo::all());\n\n }", "public function index()\n {\n return view('dashboard.index');\n }", "public function index()\n {\n return view('dashboard.index');\n }", "public function index()\n {\n $this->template->set('title', 'Dashboard');\n $this->template->load('admin', 'contents' , 'admin/dashboard/index', array());\n }", "public function index()\n {\n return view('/dashboard');\n }", "public function index()\n {\n \treturn view('dashboard');\n }", "public function index()\n {\n return view('ketua.ketua-dashboard');\n }", "public function index(){\n return View::make('admin.authenticated.dashboardview');\n }", "public function admAmwDashboard()\n {\n return View::make('admission::amw.admission_test.dashboard');\n }", "public function index()\n {\n return view('adminpanel.home');\n }", "public function dashboard()\n\t{\n\t\t$this->validation_access();\n\t\t\n\t\t$this->load->view('user_dashboard/templates/header');\n\t\t$this->load->view('user_dashboard/index.php');\n\t\t$this->load->view('user_dashboard/templates/footer');\n\t}", "public function index()\n {\n return view('dashboard.home');\n }", "public function index()\n {\n $admins = $this->adminServ->all();\n $adminRoles = $this->adminTypeServ->all();\n return view('admin.administrators.dashboard', compact('admins', 'adminRoles'));\n }", "public function index()\n {\n if (ajaxCall::ajax()) {return response()->json($this -> dashboard);}\n //return response()->json($this -> dashboard);\n JavaScript::put($this -> dashboard);\n return view('app')-> with('header' , $this -> dashboard['header']);\n //return view('home');\n }", "public function index()\n {\n $userinfo=User::all();\n $gateinfo=GateEntry::all();\n $yarninfo=YarnStore::all();\n $greyinfo=GreyFabric::all();\n $finishinfo=FinishFabric::all();\n $dyesinfo=DyeChemical::all();\n return view('dashboard',compact('userinfo','gateinfo','yarninfo','greyinfo','finishinfo','dyesinfo'));\n }", "public function actionDashboard(){\n \t$dados_dashboard = Yii::app()->user->getState('dados_dashbord_final');\n \t$this->render ( 'dashboard', $dados_dashboard);\n }", "public function index()\n {\n $user = new User();\n $book = new Book();\n return view('admin.dashboard', compact('user', 'book'));\n }", "public function dashboard() {\n if (!Auth::check()) { // Check is user logged in\n // redirect to dashboard\n return Redirect::to('login');\n }\n\n $user = Auth::user();\n return view('site.dashboard', compact('user'));\n }", "public function dashboard()\n {\n $users = User::all();\n return view('/dashboard', compact('users'));\n }", "public function index()\n {\n $lineChart = $this->getLineChart();\n $barChart = $this->getBarChart();\n $pieChart = $this->getPieChart();\n\n return view('admin.dashboard.index', compact(['lineChart', 'barChart', 'pieChart']));\n }" ]
[ "0.77850926", "0.7760142", "0.7561336", "0.75147176", "0.74653697", "0.7464913", "0.73652893", "0.7351646", "0.7346477", "0.73420244", "0.7326711", "0.7316215", "0.73072463", "0.7287626", "0.72826403", "0.727347", "0.727347", "0.727347", "0.727347", "0.7251768", "0.7251768", "0.7251768", "0.7251768", "0.7251768", "0.7241342", "0.7236133", "0.7235562", "0.7218318", "0.71989936", "0.7197427", "0.71913266", "0.71790016", "0.71684825", "0.71577966", "0.7146797", "0.7133428", "0.7132746", "0.71298903", "0.71249074", "0.71218014", "0.71170413", "0.7110151", "0.7109032", "0.7107029", "0.70974076", "0.708061", "0.7075653", "0.70751685", "0.7064041", "0.70550334", "0.7053102", "0.7051273", "0.70484304", "0.7043605", "0.70393986", "0.70197886", "0.70185125", "0.70139873", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.6992477", "0.6979631", "0.69741416", "0.69741327", "0.6968815", "0.6968294", "0.69677526", "0.69652885", "0.69586027", "0.6944985", "0.69432825", "0.69419175", "0.6941512", "0.6941439", "0.6938837", "0.6937524", "0.6937456", "0.6937456", "0.69276494", "0.6921651", "0.69074917", "0.69020325", "0.6882262", "0.6869339", "0.6867868", "0.68557185", "0.68479055", "0.684518", "0.68408877", "0.6838798", "0.6833479", "0.6832326", "0.68309164", "0.6826798", "0.6812457" ]
0.0
-1
Show the application dashboard.
public function trades() { // $trades = DB::table('trades')->limit(100000)->get(); // // $totalProfit = 0; // // foreach ($trades as $trade) { // $totalProfit += $trade->profit; // } $client = Client::factory('http://localhost:8081/rpc', ['headers' => ['X-Auth' => '1234567890qwertyuiop']]); // $body = $client->send($client->request(123, 'HelloService.SayHello', [['name' => 'Tom', 'age' => 27]]))->getBody(); $body = $client->send($client->request(123, 'TradesService.GetCountTrades', [[ 'uids' => [42, 13, 20, 11, 21, 30], 'symbol' => 'GBPJPY', 'dateFrom' => '2019-05-22 00:07:27', ]]))->getBody(); while (!$body->eof()) { $response = $body->read(1024); } $data = json_decode($response); return view('trades', ['totalProfit' => $data->result]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dashboard()\n {\n\n $pageData = (new DashboardService())->handleDashboardLandingPage();\n\n return view('application', $pageData);\n }", "function dashboard() {\r\n\t\t\tTrackTheBookView::render('dashboard');\r\n\t\t}", "public function showDashboard() { \n\t\n return View('admin.dashboard');\n\t\t\t\n }", "public function showDashboard()\n {\n return View::make('users.dashboard', [\n 'user' => Sentry::getUser(),\n ]);\n }", "public function dashboard()\n {\n return view('backend.dashboard.index');\n }", "public function index() {\n return view(\"admin.dashboard\");\n }", "public function dashboard()\n {\n return $this->renderContent(\n view('dashboard'),\n trans('sleeping_owl::lang.dashboard')\n );\n }", "public function dashboard(){\n return view('backend.admin.index');\n }", "public function showDashBoard()\n {\n \treturn view('Admins.AdminDashBoard');\n }", "public function dashboard()\n {\n return view('dashboard.index');\n }", "public function index()\n {\n return view('admin.dashboard', ['title' => 'Dashboard']);\n }", "public function dashboard() \r\n {\r\n return view('admin.index');\r\n }", "public function dashboard()\n\t{\n\t\t$page_title = 'organizer dashboard';\n\t\treturn View::make('organizer.dashboard',compact('page_title'));\n\t}", "public function dashboard()\n {\n\t\t$traffic = TrafficService::getTraffic();\n\t\t$devices = TrafficService::getDevices();\n\t\t$browsers = TrafficService::getBrowsers();\n\t\t$status = OrderService::getStatus();\n\t\t$orders = OrderService::getOrder();\n\t\t$users = UserService::getTotal();\n\t\t$products = ProductService::getProducts();\n\t\t$views = ProductService::getViewed();\n\t\t$total_view = ProductService::getTotalView();\n\t\t$cashbook = CashbookService::getAccount();\n $stock = StockService::getStock();\n\n return view('backend.dashboard', compact('traffic', 'devices', 'browsers', 'status', 'orders', 'users', 'products', 'views', 'total_view', 'cashbook', 'stock'));\n }", "public function dashboard()\n {\n\n return view('admin.dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('adm.dashboard');\n }", "public function dashboard()\n {\n $users = \\App\\User::all()->count();\n $roles = \\Spatie\\Permission\\Models\\Role::all()->count();\n $permissions = \\Spatie\\Permission\\Models\\Permission::all()->count();\n $banner = \\App\\Banner::all();\n $categoria = \\App\\Categoria::all();\n $entidadOrganizativa = \\App\\Entidadorganizativa::all();\n $evento = \\App\\Evento::all();\n $fichero = \\App\\Fichero::all();\n $recurso = \\App\\Recurso::all();\n $redsocial = \\App\\Redsocial::all();\n $subcategoria = \\App\\Subcategoria::all();\n $tag = \\App\\Tag::all();\n\n $entities = \\Amranidev\\ScaffoldInterface\\Models\\Scaffoldinterface::all();\n\n return view('scaffold-interface.dashboard.dashboard',\n compact('users', 'roles', 'permissions', 'entities',\n 'banner', 'categoria', 'entidadOrganizativa',\n 'evento', 'fichero', 'recurso', 'redsocial', 'subcategoria', 'tag')\n );\n }", "public function show()\n {\n return view('dashboard');\n }", "public function index()\n\t{\n\t\treturn View::make('dashboard');\n\t}", "public function index() {\n return view('modules.home.dashboard');\n }", "public function show()\n {\n return view('dashboard.dashboard');\n \n }", "public function index()\n {\n return view('admin.dashboard.dashboard');\n\n }", "public function dashboard()\n { \n return view('jobposter.dashboard');\n }", "public function show()\n\t{\n\t\t//\n\t\t$apps = \\App\\application::all();\n\t\treturn view('applications.view', compact('apps'));\n\t}", "public function index()\n {\n return view('pages.admin.dashboard');\n }", "public function indexAction()\n {\n $dashboard = $this->getDashboard();\n\n return $this->render('ESNDashboardBundle::index.html.twig', array(\n 'title' => \"Dashboard\"\n ));\n }", "public function index()\n {\n //\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard.index');\n }", "public function dashboard()\n {\n return view('pages.backsite.dashboard');\n }", "public function index()\n {\n // return component view('dashboard.index');\n return view('layouts.admin_master');\n }", "public function index()\n {\n\n $no_of_apps = UploadApp::count();\n $no_of_analysis_done = UploadApp::where('isAnalyzed', '1')->count();\n $no_of_visible_apps = AnalysisResult::where('isVisible', '1')->count();\n\n return view('admin.dashboard', compact('no_of_apps', 'no_of_analysis_done', 'no_of_visible_apps'));\n }", "public function getDashboard() {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('smartcrud.auth.dashboard');\n }", "public function index()\n {\n if($this->isAdmin() == TRUE)\n {\n $this->loadThis();\n }\n $this->global['pageTitle'] = 'Touba : Dashboard';\n \n $this->loadViews(\"dashboard\", $this->global, NULL , NULL);\n }", "public function dashboard() {\n $data = ['title' => 'Dashboard'];\n return view('pages.admin.dashboard', $data)->with([\n 'users' => $this->users,\n 'num_services' => Service::count(),\n 'num_products' => Product::count(),\n ]);\n }", "public function index()\n {\n return view('board.pages.dashboard-board');\n }", "public function index()\n {\n return view('admin::settings.development.dashboard');\n }", "public function index()\n {\n return view('dashboard.dashboard');\n }", "public function show()\n {\n return view('dashboard::show');\n }", "public function adminDash()\n {\n return Inertia::render(\n 'Admin/AdminDashboard', \n [\n 'data' => ['judul' => 'Halaman Admin']\n ]\n );\n }", "public function dashboard()\n {\n return view('Admin.dashboard');\n }", "public function show()\n {\n return view('admins\\auth\\dashboard');\n }", "public function index()\n {\n // Report =============\n\n return view('Admin.dashboard');\n }", "public function index()\n {\n return view('bitaac::account.dashboard');\n }", "public function index()\n { \n return view('admin-views.dashboard');\n }", "public function getDashboard()\n {\n return view('dashboard');\n }", "function showDashboard()\n { \n $logeado = $this->checkCredentials();\n if ($logeado==true)\n $this->view->ShowDashboard();\n else\n $this->view->showLogin();\n }", "public function index()\n { \n $params['crumbs'] = 'Home';\n $params['active'] = 'home';\n \n return view('admin.dashboard.index', $params);\n }", "public function index()\n\t{\n\t\treturn view::make('customer_panel.dashboard');\n\t}", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index() {\n // return view('home');\n return view('admin-layouts.dashboard.dashboard');\n }", "public function index()\r\n {\r\n return view('user.dashboard');\r\n }", "public function index() {\n return view('dashboard', []);\n }", "public function index()\n {\n //\n return view('dashboard.dashadmin', ['page' => 'mapel']);\n }", "public function index()\n {\n return view('back-end.dashboard.index');\n //\n }", "public function index()\n\t{\n\t\t\n\t\t$data = array(\n\t\t\t'title' => 'Administrator Apps With Laravel',\n\t\t);\n\n\t\treturn View::make('panel/index',$data);\n\t}", "public function index() {\n return view('dashboard.index');\n }", "public function index()\n {\n return view('page.dashboard.index');\n }", "public function index()\n {\n\n return view('dashboard');\n }", "public function dashboardview() {\n \n $this->load->model('Getter');\n $data['dashboard_content'] = $this->Getter->get_dash_content();\n \n $this->load->view('dashboardView', $data);\n\n }", "public function index()\n {\n $this->authorize(DashboardPolicy::PERMISSION_STATS);\n\n $this->setTitle($title = trans('auth::dashboard.titles.statistics'));\n $this->addBreadcrumb($title);\n\n return $this->view('admin.dashboard');\n }", "public function action_index()\r\n\t{\t\t\t\t\r\n\t\t$this->template->title = \"Dashboard\";\r\n\t\t$this->template->content = View::forge('admin/dashboard');\r\n\t}", "public function index()\n {\n $info = SiteInfo::limit(1)->first();\n return view('backend.info.dashboard',compact('info'));\n }", "public function display()\n\t{\n\t\t// Set a default view if none exists.\n\t\tif (!JRequest::getCmd( 'view' ) ) {\n\t\t\tJRequest::setVar( 'view', 'dashboard' );\n\t\t}\n\n\t\tparent::display();\n\t}", "public function index()\n {\n $news = News::all();\n $posts = Post::all();\n $events = Event::all();\n $resources = Resources::all();\n $admin = Admin::orderBy('id', 'desc')->get();\n return view('Backend/dashboard', compact('admin', 'news', 'posts', 'events', 'resources'));\n }", "public function index()\n {\n\n return view('superAdmin.adminDashboard')->with('admin',Admininfo::all());\n\n }", "public function index()\n {\n return view('dashboard.index');\n }", "public function index()\n {\n return view('dashboard.index');\n }", "public function index()\n {\n $this->template->set('title', 'Dashboard');\n $this->template->load('admin', 'contents' , 'admin/dashboard/index', array());\n }", "public function index()\n {\n return view('/dashboard');\n }", "public function index()\n {\n \treturn view('dashboard');\n }", "public function index()\n {\n return view('ketua.ketua-dashboard');\n }", "public function index(){\n return View::make('admin.authenticated.dashboardview');\n }", "public function admAmwDashboard()\n {\n return View::make('admission::amw.admission_test.dashboard');\n }", "public function index()\n {\n return view('adminpanel.home');\n }", "public function dashboard()\n\t{\n\t\t$this->validation_access();\n\t\t\n\t\t$this->load->view('user_dashboard/templates/header');\n\t\t$this->load->view('user_dashboard/index.php');\n\t\t$this->load->view('user_dashboard/templates/footer');\n\t}", "public function index()\n {\n return view('dashboard.home');\n }", "public function index()\n {\n $admins = $this->adminServ->all();\n $adminRoles = $this->adminTypeServ->all();\n return view('admin.administrators.dashboard', compact('admins', 'adminRoles'));\n }", "public function index()\n {\n if (ajaxCall::ajax()) {return response()->json($this -> dashboard);}\n //return response()->json($this -> dashboard);\n JavaScript::put($this -> dashboard);\n return view('app')-> with('header' , $this -> dashboard['header']);\n //return view('home');\n }", "public function index()\n {\n $userinfo=User::all();\n $gateinfo=GateEntry::all();\n $yarninfo=YarnStore::all();\n $greyinfo=GreyFabric::all();\n $finishinfo=FinishFabric::all();\n $dyesinfo=DyeChemical::all();\n return view('dashboard',compact('userinfo','gateinfo','yarninfo','greyinfo','finishinfo','dyesinfo'));\n }", "public function actionDashboard(){\n \t$dados_dashboard = Yii::app()->user->getState('dados_dashbord_final');\n \t$this->render ( 'dashboard', $dados_dashboard);\n }", "public function index()\n {\n $user = new User();\n $book = new Book();\n return view('admin.dashboard', compact('user', 'book'));\n }", "public function dashboard() {\n if (!Auth::check()) { // Check is user logged in\n // redirect to dashboard\n return Redirect::to('login');\n }\n\n $user = Auth::user();\n return view('site.dashboard', compact('user'));\n }", "public function dashboard()\n {\n $users = User::all();\n return view('/dashboard', compact('users'));\n }", "public function index()\n {\n $lineChart = $this->getLineChart();\n $barChart = $this->getBarChart();\n $pieChart = $this->getPieChart();\n\n return view('admin.dashboard.index', compact(['lineChart', 'barChart', 'pieChart']));\n }" ]
[ "0.77850926", "0.7760142", "0.7561336", "0.75147176", "0.74653697", "0.7464913", "0.73652893", "0.7351646", "0.7346477", "0.73420244", "0.7326711", "0.7316215", "0.73072463", "0.7287626", "0.72826403", "0.727347", "0.727347", "0.727347", "0.727347", "0.7251768", "0.7251768", "0.7251768", "0.7251768", "0.7251768", "0.7241342", "0.7236133", "0.7235562", "0.7218318", "0.71989936", "0.7197427", "0.71913266", "0.71790016", "0.71684825", "0.71577966", "0.7146797", "0.7133428", "0.7132746", "0.71298903", "0.71249074", "0.71218014", "0.71170413", "0.7110151", "0.7109032", "0.7107029", "0.70974076", "0.708061", "0.7075653", "0.70751685", "0.7064041", "0.70550334", "0.7053102", "0.7051273", "0.70484304", "0.7043605", "0.70393986", "0.70197886", "0.70185125", "0.70139873", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.6992477", "0.6979631", "0.69741416", "0.69741327", "0.6968815", "0.6968294", "0.69677526", "0.69652885", "0.69586027", "0.6944985", "0.69432825", "0.69419175", "0.6941512", "0.6941439", "0.6938837", "0.6937524", "0.6937456", "0.6937456", "0.69276494", "0.6921651", "0.69074917", "0.69020325", "0.6882262", "0.6869339", "0.6867868", "0.68557185", "0.68479055", "0.684518", "0.68408877", "0.6838798", "0.6833479", "0.6832326", "0.68309164", "0.6826798", "0.6812457" ]
0.0
-1
Show all the animes.
public function list() { $animes = DB::select("SELECT * FROM animes"); return view('welcome', ["animes" => $animes]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function renderAnimes() {\n\t\t$result = '';\n\t\tforeach ($this->getAnimes() as $anime) {\n\t\t\t$result .= $this->renderAnime($anime);\n\t\t}\t\t\n\t\treturn $result;\n\t}", "public function showAll()\n {\n }", "public function showall()\n {\n }", "public function index()\n {\n return view('showtimes.index', [Showtime::paginate(6)]);\n }", "public function index()\n {\n $alarms = Alarm::with('sensor', 'sensor.place')->get();\n return view('admin.alarms.index',compact('alarms'))\n ->with('i', 0);\n }", "public function listAll()\n\t{\n\t\t$data['auditorias'] = $this->relatorio_model->listaAuditorias(1);\n\n\t\t$data['ncs'] = $this->relatorio_model->listaNCs(1);\n\n\t\t$data['acs'] = $this->relatorio_model->listaACs(1);\n\n\t\t$data['main_content'] = 'relatorio/relatorio_view';\n\t\t\n\t\t// Envia todas as informações para tela //\n\t\t$this->parser->parse('template', $data);\n\t}", "public function viewAllEvents();", "public function showAll() {\n return response()->json(Appointment::all());\n }", "function Show_All() \n\t{\n\t\tglobal $eTraffic;\n\t\t\n\t\t$this->ShowIf('Debug Log', $this->Show_Log());\n\t\t$this->ShowIf('Traffic Counters', $eTraffic->Display());\n\t\t$this->ShowIf('Time Analysis', $this->Show_Performance());\n\t\t$this->ShowIf('SQL Analysis', $this->Show_SQL_Details());\n\t\t$this->ShowIf('Shortcodes / BBCode',$this->Show_SC_BB());\n\t\t$this->ShowIf('Paths', $this->Show_PATH());\n\t\t$this->ShowIf('Deprecated Function Usage', $this->Show_DEPRECATED());\n\t\t$this->ShowIf('Included Files', $this->Show_Includes());\n\t}", "public function showAllObat()\n {\n $obat = Obat::all();\n\n return view('obat::index')\n ->with('obats', $obat)\n ->with('obat', $obat->first());\n }", "public function index()\n {\n $tims = Tim::all();\n return view('list_tim',compact('tims'));\n }", "public function index()\n {\n $tiendas = Tienda::all();\n \n return $this->showAll($tiendas);\n }", "public function showAll(Request $request) {\n\n\t\t$auds = Audition::all();\n\t\t$total = count(Audition::all());\n\t\t$reg = count(Audition::where('registered', 'true')->get());\n\t\t$packet = count(Audition::where([\n\t\t\t['packet', '=', 'true'],\n\t\t\t['registered', '=', 'false']\n\t\t])->get());\n\n\t\t$data['snare'] = Audition::where('instr1', 'Snare')->get();\n\t\t$data['tenors'] = Audition::where('instr1', 'Tenors')->get();\n\t\t$data['bass'] = Audition::where('instr1', 'Bass')->get();\n\t\t$data['cymbals'] = Audition::where('instr1', 'Cymbals')->get();\n\t\t$data['marimba'] = Audition::where('instr1', 'Marimba')->get();\n\t\t$data['vibes'] = Audition::where('instr1', 'Vibes')->get();\n\t\t$data['xylo'] = Audition::where('instr1', 'Xylophone')->get();\n\t\t$data['drumset'] = Audition::where('instr1', 'Drumset')->get();\n\t\t$data['synth'] = Audition::where('instr1', 'Synthesizer')->get();\n\t\t$data['guitar'] = Audition::where('instr1', 'Bass Guitar')->get();\n\t\t$data['aux'] = Audition::where('instr1', 'Auxiliary')->get();\n\n\t\treturn view('admin.auditions-list', ['auditions' => $auds, 'total' => $total, 'reg' => $reg, 'packet' => $packet, 'data' => $data]);\n\t}", "public function index(Anime $anime)\n {\n //$animes = Anime::paginate(6);\n $summer = Anime::where('genre_id', 1)->get();\n $just_updated = Anime::where('genre_id', 2)->get();\n $continuing_simulcasts = Anime::where('genre_id', 3)->get();\n $popular = Anime::where('genre_id', 4)->get();\n $sports = Anime::where('genre_id', 5)->get();\n $friendship = Anime::where('genre_id', 6)->get();\n $shonen = Anime::where('genre_id', 7)->get();\n $vintage = Anime::where('genre_id', 8)->get();\n $self_improvement = Anime::where('genre_id', 9)->get();\n $quiet_life = Anime::where('genre_id', 10)->get();\n $music = Anime::where('genre_id', 11)->get();\n $spooky = Anime::where('genre_id', 12)->get();\n $nineties = Anime::where('genre_id', 13)->get();\n\n return view('index', [\n 'summer' => $summer,\n 'just_updated' => $just_updated,\n 'continuing_simulcasts' => $continuing_simulcasts,\n 'popular' => $popular,\n 'sports' => $sports,\n 'friendship' => $friendship,\n 'shonen' => $shonen,\n 'vintage' => $vintage,\n 'self_improvement' => $self_improvement,\n 'quiet_life' => $quiet_life,\n 'music' => $music,\n 'spooky' => $spooky,\n 'nineties' => $nineties\n ]);\n }", "public function displayAll() {\n \t\n \techo \"<table border=1>\";\n\t\techo \"<tr>\";\n\t\techo \"<th>Id</th>\";\n\t\techo \"<th>Ora aterizare</th>\";\n\t\techo \"<th>De la</th>\";\n\t\techo \"<th>Compania</th>\";\n\t\techo \"</tr>\";\n\n\t\tforeach($this->findAll() as $k => $zbor){ //parcugem arrayul pe linie\n\t\t\techo \"<tr>\";\n\n\t\t\techo \"<td> \" . $zbor[\"id\"] . \"</td>\";\n\t\t\techo \"<td> \" . $zbor[\"ora_aterizare\"] . \"</td>\";\n\t\t\techo \"<td> \" . $zbor[\"de_la\"] . \"</td>\";\n\t\t\techo \"<td> \" . $zbor[\"compania\"] . \"</td>\";\n\t\t\t\n\t\t\techo \"</tr>\";\n\t\t}\n\n\t\techo \"</table>\";\n }", "public function anime(){\t\n\t\t\t$LimitRowPegination = 4;\n\t\t\t$API_LastUpdateAnime = SiteMap::LastUpdateAnime(18,0,$LimitRowPegination);\n\t\t\t$PTR_API['API_LastUpdateAnime'] = $API_LastUpdateAnime;\n\t\t\t$this->load->view('seo/sitemap_anime',$PTR_API);\n\t\t}", "public function index()\n {\n $mascotas = Mascota::all();\n return $this->showAll($mascotas);\n\n }", "public function index(Request $request)\n {\n $animes = Anime::orderBy('anime_id')->paginate(50);\n\n return view('anime.index', compact('animes'));\n //\n }", "public function showAll(){\n\t\t\n\t\t//our tasks\n\t\t$this->set('tasks', $this->Task->find('all', array(\n\t\t\t'order' => array('Task.created_on'),\n\t\t)));\n\t\t\n\t\t//our statuses\n\t\t$this->set('statuses', $this->Task->Status->find('list'));\n\t\t\n\t\t//our locations\n\t\t$this->set('locations', $this->Task->Location->find('list'));\n\t\t\n\t\t//our keywords\n\t\t$this->set('keywords', $this->Task->Keyword->find('list'));\n\t\t\n\t\t//our link locations\n\t\t$linkLocation['/foundersFactory/tasks/'] = \"Show by Location\";\n\t\tforeach($this->Task->Location->find('list') as $key => $location){\n\t\t\t$linkLocation['/foundersFactory/tasks/showByLocation/'.$key] = $location;\n\t\t}\n\t\t$this->set('linkLocations', $linkLocation);\n\t}", "public function index() {\n\t\t$analises = $this->analises;\n\n\t\tif (!empty(Input::get('id'))) {\n\t\t\t$analises = $analises->where('id', Input::get('id'))->get();\n\t\t} else {\n\t\t\tif (!empty(Input::get('periodo'))) {\n\t\t\t\t$periodo = explode(' - ', Input::get('periodo'));\n\t\t\t} else {\n\t\t\t\t$periodo = [date('Y-m-d'), date('Y-m-d')];\n\t\t\t}\n\n\t\t\t$analises = $analises->whereRaw('date(data_hora) between ? and ?', $periodo)\n\t\t\t ->where('monitoramento', false)\n\t\t\t ->get();\n\n\t\t\t//\tprint_r(DB::getQueryLog());\n\n\t\t}\n\n\t\treturn View::make('sesmt::analises.index', compact('analises'));\n\t}", "public function all()\n\t{\n\t\techo \"All\";\n\t}", "public function index()\n {\n $data = Time::all();\n return view('admin.time.index', compact('data'));\n }", "public function all()\n {\n $appointments = Appointment::with('concern')->orderBy('appointment_at', 'asc')->get();\n $patients = Patient::all();\n $list = $patients->pluck('uniquePatient', 'id')->toArray();\n return view('Appointments.All', compact('appointments', 'list'));\n }", "public function getAimeos()\n\t{\n\t\treturn $this->client->getAimeos();\n\t}", "public function index()\n {\n return Anime::with('image')->paginate(20);\n }", "public function index()\n {\n return $this->articalRepository->all();\n }", "public function showAll(){\n\t\t\n\t\treturn view('skill/showall', [ \"skills\"=>Skill::all(), \"skilllevels\" => SkillLevel::all(), \"playerclasses\" => PlayerClass::all()]);\t\t\n\t}", "public function index()\n {\n //$openingtimes = $this->openingtime->all();\n\n return view('item::admin.openingtimes.index', compact(''));\n }", "public function displayAll() {\n \t\n \techo \"<table border=1>\";\n\t\techo \"<tr>\";\n\t\techo \"<th>Id</th>\";\n\t\techo \"<th>Ora decolare</th>\";\n\t\techo \"<th>Destinatia</th>\";\n\t\techo \"<th>Compania</th>\";\n\t\techo \"</tr>\";\n\n\t\tforeach($this->findAll() as $k => $zbor){ //parcugem arrayul pe linie\n\t\t\techo \"<tr>\";\n\n\t\t\techo \"<td> \" . $zbor[\"id\"] . \"</td>\";\n\t\t\techo \"<td> \" . $zbor[\"ora_decolare\"] . \"</td>\";\n\t\t\techo \"<td> \" . $zbor[\"destinatia\"] . \"</td>\";\n\t\t\techo \"<td> \" . $zbor[\"compania\"] . \"</td>\";\n\t\t\t\n\t\t\techo \"</tr>\";\n\t\t}\n\n\t\techo \"</table>\";\n }", "public function showall()\n { \n $tampils = \\App\\Ide::all();\n return view('welcome', compact('tampils'));\n \n }", "public function index()\n\t{\n\t\t// get all the fbf_time\n\t\t$fbf_time = FbfTime::all();\n\n\t\t$this->layout->content = View::make('fbf_time.index')->with('fbf_time', $fbf_time);\n\t}", "public function index()\n {\n return new ShowtimeCollection(ShowtimeRepository::getAll());\n }", "public function index()\n {\n return $this->attendanceRepository->all();\n }", "public function showAll() {\n $qry = $this->db->prepare('SELECT DISTINCT NAME,ADDRESS,SUBURB,LATITUDE,LONGITUDE FROM n8598177.items;');\n $qry->execute();\n foreach ($qry as $hotspot) {\n include('server/includes/recentReview.tpl.php');\n }\n }", "public function index(){\n foreach($this->animals as $animal){\n echo \"$animal<br>\";\n };\n }", "public function index()\n {\n return Asistencia::all();\n }", "public function getAgendaAlarmListAction(){\n /** @var Object_Agenda $agenda */\n $this->getDeviceSession()->getUserId();\n $agenda = new Object_Agenda();\n $this->_helper->json($agenda->getClass()->getFieldDefinition('Alarm'));\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $episodes = $em->getRepository('AnimeBundle:Episode')->findAllOrderByDate();\n\n $animeName = [];\n foreach ($episodes as $episode) {\n $animeName[$episode->getId()] = $episode->getAnime()->getName();\n }\n\n return $this->render('episode/index.html.twig', array(\n 'episodes' => $episodes,\n 'animeName' => $animeName,\n ));\n }", "public function timeList(){\n\t echo json_encode($this->sched_time->fetchData());\n\t}", "public function index()\n {\n $autors = Autor::get();\n //Mostrar tots els autors\n return view(\"Autors.autors\")->with(\"autors\",$autors);\n }", "public function showAll(){\n\n $peliculas = Pelicula::orderBy('valoracion_media', 'desc')->paginate(5);\n\n return view('peliculas/showall', compact('peliculas'));\n \n }", "public function all()\n {\n $user = \\Auth::user();\n\n $stats = $this->repository->stats($user['id'], 365*10);\n\n $page = array(\n \"title\" => \"Recent\",\n \"subtitle\" => \"History of weight measurements\"\n );\n\n return view(\"dashboard.all\", [\"page\" => $page, \"stats\" => $stats]);\n }", "public function index()\n {\n return MedicalObservation::with('vet')->orderBy('date','desc')->get();\n }", "public function index()\n {\n $articals = Artical::latest()->get();\n return view('articals.index', ['articals' => $articals]);\n }", "public function showAll()\n {\n\t\t$allCars = Car::all();\n\t\t$allImages = Image::all();\n\t\t\n\t\treturn view('car.showAll')->with(\"allCars\", $allCars)\n\t\t\t\t\t\t\t\t ->with(\"allImages\", $allImages);\n }", "public static function getAll() {\r\r $cafeterias = Cafeteria::getAll();\r\r\r\r $salida = [\r 'status' => 1,\r 'data' => $cafeterias\r ];\r\r\r\r View::render($cafeterias);\r }", "public function index()\n {\n return Accessories::all();\n }", "public function index()\n {\n $agromeets = Agromeet::all();\n return view('admin.agromeets.index', compact('agromeets'));\n }", "public function displayAnime ($name) {\n $anime = new Anime();\n $anime->getAnime($name);\n ?>\n <div class=\"background\">\n <div class=\"cover\">\n <?php echo $anime->getPicDir(); ?>\n </div>\n <div class=\"description\">\n <?php echo $anime->description; ?>\n </div>\n <div class=\"eps\">\n <?php\n $eps = DataBase::Current()->ReadRows(\"SELECT * from {'dbprefix'}episodes WHERE name='\".$name.\"'\");\n if ($eps) {\n foreach ($eps as $ep) {\n ?>\n <div class=\"episode<?PHP echo $ep->episode; ?>\">\n <?php\n echo $ep->name;\n echo $ep->title;\n ?>\n </div>\n <?php\n }\n }\n ?>\n </div>\n </div>\n <?PHP\n }", "public function index()\n {\n //\n return view('akt.index')\n ->with('akts', Akt::get());\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('FrontCodingEquasiaBundle:Timelog')->findAll();\n\n return array(\n 'entities' => $entities,\n );\n }", "public function index()\n {\n $instruments = Instrument::orderby('id','DESC')->paginate(4);\n $instrument_types = Instrument_type::where('status',1)->get();\n $instruments->load('instrument_type');\n return view('report.instruments', compact('instruments'), compact('instrument_types'));\n }", "public function showAllActionGet() : object\n {\n $title = \"Movie database | oophp\";\n\n $this->app->db->connect();\n $sql = \"SELECT * FROM movie;\";\n $res = $this->app->db->executeFetchAll($sql);\n\n $this->app->page->add(\"movie/show-all\", [\n \"res\" => $res,\n ]);\n\n return $this->app->page->render([\n \"title\" => $title,\n ]);\n }", "public function actionIndex()\n {\n if(\\Yii::$app->user->can('verMarcacaoConsulta')) {\n $tempVariable = Medicos::dataByUser(Yii::$app->user->id);\n $times = MarcacaoConsulta::dataByUserBack($tempVariable['id']);\n\n $events = [];\n foreach ($times as $time) {\n\n $temp = Especialidade::dataByEspecialidade($time['id_especialidade']);\n\n\n $Event = new Event();\n $Event->id = $time['id'];\n $Event->backgroundColor = $this->chooseColor($time['status']);\n $Event->title = $temp['tipo'];\n $Event->start = date(($time['date']));\n $Event->url = 'index.php?r=marcacao-consulta/view&id=' . $time['id'];\n $events[] = $Event;\n\n }\n\n return $this->render('index', [\n 'events' => $events,\n ]);\n }\n }", "public function index()\n {\n $atendimentos = Atendimentos::withCasts([\n 'data_fechamento' => 'datetime',\n 'data_abertura' => 'datetime',\n ])\n ->orderBy(\"data_abertura\", 'desc')\n ->get();\n\n return view('atendimentos.index', compact('atendimentos'));\n \n \n }", "public function index()\n { \n\n $timetables=Timetable::all();\n $classrooms=Classroom::all();\n $academics=Academic::all();\n return view('Backend.timetable.list',compact('timetables','academics','classrooms'));\n }", "public function index()\n {\n return Metric::all();\n }", "public function index()\n {\n $ano = Ano::all();\n return view('ano.index', ['ano' => $ano]);\n }", "public function index()\n {\n $medicos = VetMedico::all();\n return view('ma.calendario')->with('medicos', $medicos);\n }", "public function index()\n {\n return view('index')\n ->with('autos', Auto::all());\n }", "function index() {\n $per_page = 15;\n if (!$this->active_timerecord->isNew()) {\n $page = ceil(TimeRecords::findTimerecordNum($this->active_timerecord, STATE_VISIBLE, $this->logged_user->getVisibility()) / $per_page); \n } else {\n $page = (integer) $this->request->get('page');\n if($page < 1){\n $page = 1;\n } // if\n }\n \n list($timerecords, $pagination) = TimeRecords::paginateByProject($this->active_project, $page, $per_page);\n \n $this->smarty->assign(array(\n 'timerecords' => $timerecords,\n 'pagination' => $pagination,\n 'pagination_url' => assemble_url('mobile_access_view_timerecords', array('project_id' => $this->active_project->getId())),\n 'page_back_url' => assemble_url('mobile_access_view_project', array('project_id' => $this->active_project->getId())),\n ));\n\n }", "public function actionIndex()\n {\n $searchModel = new TblalarmSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function index()\n {\n return Airplaneseat::all();\n }", "public function index()\n {\n $specialties=Specialty::all();//latest()->paginate(5);\n return $this->showAll($specialties);\n }", "public function show()\n {\n $attandances = DB::table('attandances')\n ->join('employees','attandances.user_id','employees.id')\n ->select('employees.name','employees.photo','attandances.*') \n ->get();\n // echo \"<pre>\";\n // print_r($attandances);\n return view('attandance.all_attandance', compact(['attandances']));\n }", "public function index()\n {\n return view('result', ['adverts'=>Advert::with('modification.model.mark')\n ->orderBy('created_at', 'DESC')\n ->simplePaginate(5)]);\n }", "function index()\n {\n return $this->dp->getAllCinema();\n }", "public function index()\n {\n $patients = Patient::all();\n\n return $this->showAll($patients, 200);\n\n }", "public function index()\n {\n $today = Carbon::now()->format('Y-m-d').'%';\n $auth_man=1;\n $list=CalendarModel::with('patient')->where('start', 'like', $today)->where('user_id',auth()->id())\n ->where('status','active')->orderBy('id','desc')->get();\n $all = CalendarModel::all();\n return view('calendar.index',compact('list','auth_man','all'));\n }", "public function index()\n {\n return $this->showList(ObjectMuseum::where('deleted','=',ObjectMuseum::ACTIVE)->get());\n }", "public function index(){\n $_SESSION['time'] = time();//存储当前时间\n $this->display();\n }", "public function showAll()\n {\n $domains = Domain::selectUserAddDomain();\n\n $data = [\n 'sale_of_last_month' => number_format(Domain::sale_of_last_month()),\n 'sale_of_current_month' => number_format(Domain::sale_of_current_month()),\n 'percent_of_recipes' => number_format(abs(Domain::percent_of_sale()), 2),\n 'domain_verify' => count(Domain::domain_verify()),\n 'domain_account' => Domain::domainDistinct(),\n 'total_user' => Domain::userDistinct(),\n 'domain_paid' => count(Api::getInvoices()) ,\n 'user' => auth()->user()->name,\n 'role' => auth()->user()->isRole(),\n 'Action' => 'Show all Domain Name',\n 'ip' => $_SERVER['REMOTE_ADDR']\n ];\n\n Log::info($data);\n\n return view('dashboard.accountant.show',$data ,['domains' => $domains]);\n }", "public function indexAction(): void\n {\n \n $ana=new Ana();\n \n $getAllRecords=$ana->getAllRecords();\n \n \n \n $this->view->form = new AnaForm();\n $this->view->records=$getAllRecords->toArray();\n \n \n \n }", "public function index()\n {\n return alunos::all();\n }", "public function index()\n {\n $this->page->setTitle('Agenda All');\n return view('data-entry.agenda.index')->with([\n 'page' => $this->page,\n 'agendas' => Agenda::with('paket')->get()\n ]);\n }", "public function show()\n {\n\t\t//$result = $a->selectAll();\n include(\"view/bureau.html\");\n }", "public function showAll()\n {\n $objects = $this->repo->showAll();\n return view('admin.showAll', compact('objects') );\n }", "public function index()\n {\n $acheives = $this->acheiveRepo->findAll();\n\n return view('widgetsmodule::acheive.index', ['acheives' => $acheives]);\n }", "public function all()\n {\n $item = new Item;\n $items = $item->all();\n View::renderJson($items);\n }", "public function index()\n {\n // Mesmo se o agente, usuário e empresa estiverem \"deletada\" poderá ver o atendimento, pois é um histórico.\n $attendances = Attendance::with([\n 'agent' => function($query) {\n $query->withTrashed();\n }\n ])\n ->orderByDesc('id')\n ->get();\n\n return view('attendance.index', ['attendances' => $attendances]);\n }", "public function showAll()\n {\n $ubicacion = Ubicacion::all();\n return response()->json($ubicacion);\n }", "public function index()\n {\n $medics = User::where('activity', 'MEDIC')->orderBy('surname', 'ASC')->get();\n $appointments = Appointment::orderBy('id', 'DESC')->get();\n\n return view('appointment.index', compact('medics', 'appointments'));\n }", "public function index()\n {\n $rows = Meeting::groupBy('Meeting_Time','Meeting_Name')->paginate(30);\n return view('Attendance.list',compact('rows'));\n }", "public function index()\n {\n //\n return view('app', [\n 'module' => 'electricity_meter',\n 'data' => ElectricityMeter::select('*')\n ->join('mst_unit_apart','mst_unit_apart.id_unit_apart','=','listrik_meter.id_unit_apart')\n ->join('mst_tower','mst_tower.id_tower','=','mst_unit_apart.id_tower')\n ->join('mst_floor','mst_floor.id_floor','=','mst_unit_apart.id_floor')\n ->where('mst_unit_apart.status', '=', 1)\n ->get()\n ]);\n }", "public function showAction() {\n\t\treturn array(\n\t\t\t'startTime' => date(\"d.m.Y H:i\", time() - 600),\n\t\t\t'endTime' => date(\"d.m.Y H:i\"),\n\t\t\t'fileType' => filter_input(INPUT_GET, 'file'),\n\t\t\t'file' => filter_input(INPUT_GET, 'dir')\n\t\t);\n\t}", "public function actionIndex() {\n $searchModel = new AppointmentSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function index()\n {\n foreach ($this->animals as $animal) {\n echo \"Nama Hewan : $animal[name] <br>\";\n }\n }", "public function index()\n {\n // $adminevent = Event::all();\n // return view('admin.adminevent.list')->with('adminevent', $adminevent);\n return view('admin/adminevent/list', ['adminevent' => Event::orderBy('start')->get()]);\n }", "public function index()\n {\n $query = Sugar::where('user_id', Auth::user()->id);\n\n if (request()->has('measured_before')) {\n $query->whereDate('time', '<', Carbon::parse(request()->get('measured_before'))->toDateString());\n }\n\n $sugars = $query->get();\n\n $insulins = Insulin::orderBy('time', 'desc')->paginate(20);\n\n return view('home', [\n 'sugars' => $sugars,\n 'insulins' => $insulins,\n ]);\n }", "public function index()\n {\n return Calendar::all();\n }", "public function all() {\n \n }", "public function index()\n {\n $measurements = Measurement::paginate(5);\n\n return view('measurement-mgmt/index', ['measurements' => $measurements]);\n }", "function print_all_rooms(){\n $rooms = new RoomsView();\n $rooms->print_all_rooms();\n }", "public function index()\n {\n //\n return $articulo = Articulo::all(); \n \n }", "public function index()\n {\n $airlines = Airline::latest()->paginate(5);\n\n return view('admin.airline', compact('airlines'))\n ->with('i', (request()->input('page', 1) - 1) * 5);\n }", "public function index()\n {\n $calon = Calon::all();\n return view('admin.calon.index',compact('calon'));\n }", "public function index()\n {\n $result = Artical::where('is_delete','1')\n ->orderby('id','desc')\n ->with('user')\n ->paginate();\n return view('artical.index', compact('result'));\n //\n }", "public function index()\n\t{\n\t\t$afiliados = $this->afiliado->all();\n\n\t\treturn View::make('afiliados.index', compact('afiliados'));\n\t}", "public function all()\n {\n if (!$this->isLogged()) exit;\n $this->oUtil->getModel('Todo');\n $this->oModel = new \\TestProject\\Model\\Todo;\n\n $this->oUtil->oTodos = $this->oModel->getAll();\n\n $this->oUtil->getView('index');\n }", "public function index()\n\t{\n\t\t$artista = new Artista();\n\t\t$artistas = $artista::all();\n\n\t\treturn View::make('artista.index')->with('artistas',$artistas);\n\t}" ]
[ "0.68339473", "0.67932564", "0.6765417", "0.64809835", "0.6409363", "0.63895595", "0.63509995", "0.63432163", "0.6303316", "0.6300692", "0.6287475", "0.627891", "0.62502253", "0.62407094", "0.6208046", "0.6204845", "0.6194565", "0.6186722", "0.6173319", "0.61583495", "0.61467355", "0.6137921", "0.6127616", "0.60956705", "0.6085318", "0.6061373", "0.60396624", "0.60238934", "0.602362", "0.5986453", "0.59691787", "0.5955219", "0.5935092", "0.5933203", "0.5907697", "0.59064066", "0.59029984", "0.59006155", "0.5897242", "0.5884371", "0.58799344", "0.58608", "0.5859741", "0.5858186", "0.5857838", "0.58556265", "0.58546376", "0.5852964", "0.5847843", "0.5842302", "0.5831455", "0.58304447", "0.5828535", "0.5824013", "0.58196044", "0.58160603", "0.58155566", "0.58069927", "0.5801387", "0.5796487", "0.57808906", "0.57765496", "0.57711303", "0.57629997", "0.5757725", "0.575389", "0.5749054", "0.5747938", "0.574265", "0.5740909", "0.5739429", "0.57374966", "0.5736751", "0.57288593", "0.572017", "0.57149184", "0.57148457", "0.57143676", "0.57078767", "0.57078534", "0.5702428", "0.56955856", "0.56899846", "0.5687229", "0.56793696", "0.56733304", "0.56728905", "0.56629366", "0.56595373", "0.5657547", "0.5655902", "0.5653267", "0.56527025", "0.56524134", "0.56521815", "0.56491506", "0.56453663", "0.56421524", "0.56411576", "0.5634242" ]
0.6039659
27
List the anime by their rating we calculate the rating with SQL with the AVG() function
public function top() { // $rating = DB::select("SELECT AVG(rating) AS rating FROM review ORDER BY rating ASC"); $animes = DB::select("SELECT animes.*,AVG(rating) AS rating FROM animes JOIN review ON animes.id = review.anime_id GROUP BY animes.id, title, description, cover, updated_at, created_at ORDER BY rating DESC"); return view('top', ["animes" => $animes]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function averageRate()\n {\n $movie = $this->getKey();\n return DB::table('movies_reviews')\n ->where('movies_id', '=', $movie)\n ->average('rate');\n }", "public function getAvgRating(){\n if($this->ratings){\n return $this->ratings->avg('rating');\n }\n }", "function listRestaurants()\n{\nglobal $db;\n $stmt = $db->prepare(\n 'SELECT restaurant.*, AVG(review.rating) AS avg_rating FROM restaurant\n LEFT JOIN review ON review.restaurant_id = restaurant.restaurant_id\n GROUP BY review.restaurant_id\n ORDER BY avg_rating DESC;'\n );\n $stmt->execute();\n return $stmt->fetchAll();\n}", "public function computeAvgRating()\n {\n return Doctrine_Query::create()\n ->select('AVG(value) as avg_val')\n ->from('Rate')\n ->where('record_model = ? AND record_id = ?', array(\n $this->getModel(),\n $this->getItemId(),\n ))\n ->fetchOne()\n ->avg_val;\n }", "public function fetchAvgRating()\n {\n return number_format($this->ratings()->avg('rating'), 1);\n }", "function getAvgAuthor($a_id)\n{\n $sql = \"SELECT ROUND(AVG(CAST(CAST (review_author.rating AS char)AS INT)),2) FROM review_author WHERE a_id = $a_id\";\n $result = pg_query($sql);\n $avgscore = pg_fetch_row($result);\n if ($avgscore[0]!=0) echo \"&nbsp; <label class=\\\"label label-warning\\\"><span class=\\\"glyphicon glyphicon-star\\\"></span> \".$avgscore[0].\"</label>\"; \n}", "public function getAllRatings()\n {\n $ratings = [];\n\n switch (PMF_Db::getType()) {\n case 'mssql':\n case 'sqlsrv':\n // In order to remove this MS SQL 2000/2005 \"limit\" below:\n // The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or\n // LIKE operator.\n // we'll cast faqdata.thema datatype from text to char(2000)\n // Note: the char length is simply an heuristic value\n // Doing so we'll also need to trim $row->thema to remove blank chars when it is shorter than 2000 chars\n $query = sprintf('\n SELECT\n fd.id AS id,\n fd.lang AS lang,\n fcr.category_id AS category_id,\n CAST(fd.thema as char(2000)) AS question,\n (fv.vote / fv.usr) AS num,\n fv.usr AS usr\n FROM\n %sfaqvoting fv,\n %sfaqdata fd\n LEFT JOIN\n %sfaqcategoryrelations fcr\n ON\n fd.id = fcr.record_id\n AND\n fd.lang = fcr.record_lang\n WHERE\n fd.id = fv.artikel\n GROUP BY\n fd.id,\n fd.lang,\n fd.active,\n fcr.category_id,\n CAST(fd.thema as char(2000)),\n fv.vote,\n fv.usr\n ORDER BY\n fcr.category_id',\n PMF_Db::getTablePrefix(),\n PMF_Db::getTablePrefix(),\n PMF_Db::getTablePrefix()\n );\n break;\n\n default:\n $query = sprintf('\n SELECT\n fd.id AS id,\n fd.lang AS lang,\n fcr.category_id AS category_id,\n fd.thema AS question,\n (fv.vote / fv.usr) AS num,\n fv.usr AS usr\n FROM\n %sfaqvoting fv,\n %sfaqdata fd\n LEFT JOIN\n %sfaqcategoryrelations fcr\n ON\n fd.id = fcr.record_id\n AND\n fd.lang = fcr.record_lang\n WHERE\n fd.id = fv.artikel\n GROUP BY\n fd.id,\n fd.lang,\n fd.active,\n fcr.category_id,\n fd.thema,\n fv.vote,\n fv.usr\n ORDER BY\n fcr.category_id',\n PMF_Db::getTablePrefix(),\n PMF_Db::getTablePrefix(),\n PMF_Db::getTablePrefix()\n );\n break;\n }\n\n $result = $this->_config->getDb()->query($query);\n while ($row = $this->_config->getDb()->fetchObject($result)) {\n $ratings[] = array(\n 'id' => $row->id,\n 'lang' => $row->lang,\n 'category_id' => $row->category_id,\n 'question' => $row->question,\n 'num' => $row->num,\n 'usr' => $row->usr,\n );\n }\n\n return $ratings;\n }", "public function getCustomRatingAttribute(){\n return $this->reviews->avg('rating');\n }", "public function getRating();", "public function getRating();", "public function averageRating()\n {\n $total = 0;\n $average = null;\n\n foreach ($this->notes as $n) {\n $total += $n->note;\n }\n\n $nbNotes = $this->notes->count();\n if ($total > 0 && $nbNotes > 0) {\n $average = $total / $nbNotes;\n }\n\n return $average;\n }", "function findRating($data)\n {\n $result = array();\n for ($i = 0; $i< count($data);$i++){\n\n $obj = $data[$i];\n $roomID = $data[$i][\"roomId\"];\n\n $obj[\"rating\"] = \"0\";\n\n //query and get the average rating for the user reviews for meeting room given by usres\n $query = $this->db->query(\"SELECT AVG(rating) as rating FROM room_reviews where roomID = $roomID\");\n if($query->num_rows()>0)\n {\n $obj[\"rating\"] = !$query->result_array()[0][\"rating\"]? \"0.0\" :$query->result_array()[0][\"rating\"];\n }\n else\n {\n $obj[\"rating\"] = \"0\";\n\n }\n\n array_push($result, $obj);\n }\n //return the result\n return $result;\n\n }", "public function getAverageRating($connection,$userID){\n $userID = $this->e($connection,$userID);\n \n $ratings = [];\n //get sold and giverName\n $query_sold = \"SELECT feedback.rating FROM feedback \";\n $query_sold .=\" LEFT JOIN ( \";\n $query_sold .=\" SELECT b1.auctionID,b1.highestBid as currentBid,b2.buyerID as winnerID \";\n $query_sold .=\" FROM ( \";\n $query_sold .=\" SELECT bid.auctionID,MAX(bid.bidValue) AS highestBid \";\n $query_sold .=\" FROM bid \";\n $query_sold .=\" GROUP BY bid.auctionID \";\n $query_sold .=\" ) AS b1 \";\n $query_sold .=\" LEFT JOIN ( \";\n $query_sold .=\" SELECT bid.auctionID, bid.bidValue, bid.buyerID \";\n $query_sold .=\" FROM bid \";\n $query_sold .=\" ) AS b2 \";\n $query_sold .=\" ON b2.auctionID = b1.auctionID AND b2.bidValue = b1.highestBid \";\n $query_sold .=\" ) AS winner ON winner.auctionID = feedback.auctionID \";\n $query_sold .= \"INNER JOIN user ON user.id = winner.winnerID \";\n $query_sold .= \"INNER JOIN auction ON auction.id = feedback.auctionID \";\n $query_sold .= \"WHERE auction.sellerID = {$userID} \";\n $query_sold .= \"AND feedback.giverID = winner.winnerID\";\n\n $result = mysqli_query($connection,$query_sold);\n if ($result){\n while ($row = mysqli_fetch_assoc($result)){\n $ratings[] = $row[\"rating\"];\n }\n }else {\n die( \"Database query failed (get feedbacks 1). \" . mysqli_error( $connection ) );\n }\n\n\n\n //get bought \n $query_bought =\" SELECT feedback.rating FROM feedback \";\n $query_bought .= \"INNER JOIN user ON user.id = feedback.giverID \";\n $query_bought .=\" LEFT JOIN ( \";\n $query_bought .=\" SELECT b1.auctionID,b1.highestBid as currentBid,b2.buyerID as winnerID \";\n $query_bought .=\" FROM ( \";\n $query_bought .=\" SELECT bid.auctionID,MAX(bid.bidValue) AS highestBid \";\n $query_bought .=\" FROM bid \";\n $query_bought .=\" GROUP BY bid.auctionID \";\n $query_bought .=\" ) AS b1 \";\n $query_bought .=\" LEFT JOIN ( \";\n $query_bought .=\" SELECT bid.auctionID, bid.bidValue, bid.buyerID \";\n $query_bought .=\" FROM bid \";\n $query_bought .=\" ) AS b2 \";\n $query_bought .=\" ON b2.auctionID = b1.auctionID AND b2.bidValue = b1.highestBid \";\n $query_bought .=\" ) AS winner \";\n $query_bought .=\" ON winner.auctionID = feedback.auctionID WHERE winner.winnerID={$userID} \";\n $query_bought .=\" AND feedback.giverID <> {$userID}\";\n\n\n $result2 = mysqli_query($connection,$query_bought);\n if ($result2){\n while ($row2 = mysqli_fetch_assoc($result2)){\n $ratings[] = $row2[\"rating\"];\n }\n }else {\n die( \"Database query failed (get feedbacks 2). \" . mysqli_error( $connection ));\n }\n\n $avg = 0;\n if (count($ratings)>0){\n $avg = array_sum($ratings) / count($ratings); \n }\n\n return $avg;\n \n }", "public function rating()\n {\n return $this->hasOne('App\\Review')\n ->selectRaw('user_id, count(*) as count, avg(would_recommend) as avg, avg(communication) as communication, avg(as_described) as as_described')\n ->groupBy('user_id');\n }", "public function getRating(){\n return $this->film['rating'];\n }", "public function averageUserRatings($params = array()) {\n\n $averageUserRatings = $this->select()\n ->from($this->info('name'), array('AVG(rating) AS avg_rating'))\n ->where(\"event_id = ?\", $params['event_id'])\n ->where(\"user_id = ?\", $params['user_id'])\n ->query()\n ->fetchColumn();\n return $averageUserRatings;\n }", "public function rating()\n {\n $rating = Review::where('product_id', $this->id)->avg('rating');\n if ($rating) {\n $rating = (float)$rating;\n $rating = round($rating, 2);\n } else {\n $rating = 0;\n }\n return $rating;\n }", "public function calculateAverageRating($data)\n {\n return ($data['product_rating'] + $data['operator_rating']\n + $data['marker_rating'] + $data['reliability_rating']) / 4;\n }", "public function getAverageAndNumberRatings (): array\n {\n /**\n * Hier verwenden wir $this->_buffer, damit der nachfolgende MySQL Query nicht jedes mal aufgerufen werden muss,\n * sondern wir das Ergebnis zwischenspeichern.\n */\n if (empty($this->_buffer)) {\n\n /**\n * Datenbankverbindung herstellen.\n */\n $database = new Database();\n\n /**\n * Query abschicken.\n *\n * Hier verwenden wir die AVG()-Funktion von MySQL um einen Durchschnitt aller ratings zu berechnen. Diese\n * Berechnung könnten wir in PHP auch machen, dazu müssten wir aber alle Einträge aus der Datenbank laden\n * und manuell drüber iterieren. In MySQL brauchen wir nur einen einzigen Query und kriegen alles, was wir\n * brauchen.\n */\n $result = $database->query(\"SELECT AVG(rating) as average, COUNT(*) as count FROM comments WHERE post_id = ? AND rating IS NOT NULL\", [\n 'i:post_id' => $this->id\n ]);\n\n /**\n * Daten aus dem Result holen und Datentypen konvertieren.\n */\n $numberOfRatings = (int)$result[0]['count'];\n $average = (float)$result[0]['average'];\n\n /**\n * Cache anlegen.\n */\n $this->_buffer = [\n 'average' => $average,\n 'numberOfRatings' => $numberOfRatings\n ];\n\n }\n\n /**\n * Werte zurückgeben.\n */\n return $this->_buffer;\n }", "public function getAvgNotePresse()\n {\n $result = DB::table('movies')\n ->select(DB::raw('ROUND(AVG(note_presse)) as avgpress'))\n ->first();\n\n return $result;\n }", "public function getAllRatings(){\n return self::all();\n }", "public function myRatings($params = array()) {\n\n $myRatings = $this->select()\n ->from($this->info('name'), array('rating'))\n ->where(\"event_id = ?\", $params['event_id'])\n ->where(\"user_id = ?\", $params['user_id'])\n ->where(\"viewer_id = ?\", $params['viewer_id'])\n ->query()\n ->fetchColumn();\n return $myRatings;\n }", "public static function AvgRatingsPerAttraction($attractionName)\n\t{\n\t\t$avgRating= DB::table('Reviews')->select(DB::raw(\"avg(ratings) as AttractionAvg\"))->where('AttractionName','=',$attractionName)->get();\n\t\treturn $avgRating;\n\t}", "public function averageRating() : float\n {\n return $this->ratings()->exists() ? $this->ratings()->avg('rating') : 0;\n }", "public function getRatings() : array\n\t{\n\t\treturn $this->ratings;\n\t}", "public function addRatings()\n {\n }", "public function avgViews()\n {\n $query = \"SELECT AVG(views) FROM blog_post \n WHERE deleted = 0\";\n\n $stmt = static::$dbh->query($query);\n\n $views = $stmt->fetchAll(\\PDO::FETCH_ASSOC);\n\n return $views;\n }", "public function ratings(){\n\t$comment_id = ee()->TMPL->fetch_param('comment_id');\t\n\tee()->db->select('knowledge,communication,attention,patience,fees,amount,session,anonymous');\n\tee()->db->where('comment_id',$comment_id);\n\t//ee()->db->where('parent_id',0);\n\t\n\t$query = ee()->db->get('mtt_ratings');\n\t\n\tif ($query->num_rows() > 0){\n\t\n\t$row = $query->row();\n\t\n\t$variables[] = array(\n\t\t'knowledge' => $row->knowledge,\n\t\t'communication' => $row->communication,\n\t\t'attention' => $row->attention,\n\t\t'patience' => $row->patience,\n\t\t'fees' => $row->fees,\n\t\t'amount' => $row->amount,\n\t\t'session' => $row->session,\n\t\t'anonymous' => $row->anonymous,\n\t\t'response'\t=> 'n'\n\t);\n\t\n\treturn ee()->TMPL->parse_variables(ee()->TMPL->tagdata, $variables);\n\t}\n\t\n\t}", "public function getElderScore(){\n $this->db->select('ROUND(AVG(Answers.Score),2) avg_Score, Elder.FirstName FirstName, Elder.LastName LastName, Elder.RoomNumber RoomNumber, Elder.ID_Elder Elder_ID ');\n $this->db->where(\"Answers.Score !=\",6);\n $this->db->join('Elder','Elder.ID_Elder=Answers.ID_Elder');\n $this->db->group_by('Answers.ID_Elder');\n $this->db->order_by('AVG(Answers.Score)',\"asc\");\n $this->db->limit(10);\n $this->db->from('Answers');\n $query= $this->db->get();\n $data['avg_scores']=$query->result();\n return $data;\n }", "public function getRating()\n\t{\n\t\treturn $this->ratings['rating'];\n\t}", "public function getAverageRatingAttribute() : float\n {\n return $this->averageRating();\n }", "public function get_rating() \n\t{\n\t\treturn $this->db->select()\n\t\t->from('pamm_accounts')\n\t\t->where(\"active IN ('1','2','5')\")\n\t\t->order_by('login', 'ASC')\t\n\t\t->get()->result();\n\t}", "function GetRatings()\n\t{\n\t\t$result = $this->sendRequest(\"GetRatings\", array());\t\n\t\treturn $this->getResultFromResponse($result);\n\t}", "public function getAvgRating()\n {\n $sum =0;\n foreach($this->comments as $comment)\n {\n $sum = $sum + $comment->getRating() ;\n }\n\n if(count($this->comments)) return $sum/count($this->comments);\n\n return 0 ;\n }", "public static function getTopAttractionsByRatings()\n\t{\n\t\t$topAttractions= DB::table('Reviews')->select(DB::raw(\"avg(ratings) as AttractionAvg, AttractionName\"))->orderBy('AttractionAvg', 'desc')->groupBy('AttractionName')->take(10)->get();\n\t\treturn $topAttractions;\n\t}", "public function getavgstarratebyproductid($productID){\n\t\t$count5star=0;\n\t\t$count4star=0;\n\t\t$count3star=0;\n\t\t$count2star=0;\n\t\t$count1star=0;\n\t\t$this->db->where('ProductId', $productID);\n\t\t$this->db->select('Rate');\n\t\t$this->db->from('tbl_review');\n\t\t$query=$this->db->get();\n\n\t\tforeach ($query->result() as $key) {\n\t\t\tswitch ($key->Rate) {\n\t\t\t\tcase '5':\n\t\t\t\t$count5star++;\n\t\t\t\tbreak;\n\t\t\t\tcase '4':\n\t\t\t\t$count4star++;\n\t\t\t\tbreak;\n\t\t\t\tcase '3':\n\t\t\t\t$count3star++;\n\t\t\t\tbreak;\n\t\t\t\tcase '2':\n\t\t\t\t$count2star++;\n\t\t\t\tbreak;\n\t\t\t\tcase '1':\n\t\t\t\t$count1star++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t$totalstar=$count5star+$count4star+$count3star+$count2star+$count1star;\n\t\t$totalpoint=($count5star*5)+($count4star*4)+($count3star*3)+($count2star*2)+($count1star*1);\n\t\tif($totalstar!=0)\n\t\t\t$percent=$totalpoint/$totalstar;\n\t\telse\n\t\t\t$percent=0;\n\t\techo number_format($percent,1);\n\t}", "public function scopeAverageRate($query, $type, $id)\n {\n // return $query->where('rateble_type', $type)\n // ->where('rateble_id', $id)\n // ->avg('star');\n\n return $query->where('rateble_type', $type)\n ->where('rateble_id', $id)\n ->selectRaw('CAST(AVG(star) AS DECIMAL(2,1)) AS star_avg')->first()->star_avg;\n // ->selectRaw('AVG(CAST(star AS FLOAT)) AS star_avg')->first()->star_avg;\n\n }", "public function getAverageReviews()\n {\n /* code goes here */\n }", "protected static function getAverageRating($a_wiki_id, $a_page_id = null)\n\t{\t\t\t\t\n\t\tinclude_once \"Services/Rating/classes/class.ilRating.php\";\n\t\t\n\t\tif(!$a_page_id)\n\t\t{\n\t\t\treturn ilRating::getOverallRatingForObject(\n\t\t\t\t$a_wiki_id,\n\t\t\t\t\"wiki\");\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn ilRating::getOverallRatingForObject(\n\t\t\t\t$a_wiki_id,\n\t\t\t\t\"wiki\",\n\t\t\t\t$a_page_id,\n\t\t\t\t\"wpg\");\t\t\n\t\t}\t\t\n\t}", "protected function getCriterionsAverageScore(\\SimpleXMLElement $rating)\n {\n $criterions = array('criterion1', 'criterion2', 'criterion3', 'criterion4', 'criterion5', 'criterion6');\n $sum = 0;\n $divider = 0;\n foreach ($criterions as $criterion) {\n $criterionValue = (float) $rating->$criterion;\n if ($criterionValue > 0) {\n ++$divider;\n $sum += $criterionValue;\n }\n }\n $divider = (0 == $divider) ? count($criterions) : $divider;\n\n return $sum / $divider;\n }", "public function getRating(){\r\n\t\treturn $this->rating;\r\n\t}", "public function rating()\n\t{\n\t\tif ( !( $this instanceof \\IPS\\Node\\Ratings ) )\n\t\t{\n\t\t\tthrow new \\BadMethodCallException;\n\t\t}\n\t\t\n\t\tif ( $this->canRate() )\n\t\t{\n\t\t\t$idColumn = static::$databaseColumnId;\n\t\t\t\t\t\t\n\t\t\t$form = new \\IPS\\Helpers\\Form('rating');\n\t\t\t$form->add( new \\IPS\\Helpers\\Form\\Rating( 'rating', $this->averageRating() ) );\n\t\t\t\n\t\t\tif ( $values = $form->values() )\n\t\t\t{\n\t\t\t\t\\IPS\\Db::i()->insert( 'core_ratings', array(\n\t\t\t\t\t'class'\t\t=> get_called_class(),\n\t\t\t\t\t'item_id'\t=> $this->$idColumn,\n\t\t\t\t\t'member'\t=> \\IPS\\Member::loggedIn()->member_id,\n\t\t\t\t\t'rating'\t=> $values['rating'],\n\t\t\t\t\t'ip'\t\t=> \\IPS\\Request::i()->ipAddress()\n\t\t\t\t), TRUE );\n\t\t\t\t\n\t\t\t\tif ( isset( static::$ratingColumnMap['rating_average'] ) )\n\t\t\t\t{\n\t\t\t\t\t$column = static::$ratingColumnMap['rating_average'];\n\t\t\t\t\t$this->$column = \\IPS\\Db::i()->select( 'AVG(rating)', 'core_ratings', array( 'class=? AND item_id=?', get_called_class(), $this->$idColumn ) )->first();\n\t\t\t\t}\n\t\t\t\tif ( isset( static::$ratingColumnMap['rating_total'] ) )\n\t\t\t\t{\n\t\t\t\t\t$column = static::$ratingColumnMap['rating_total'];\n\t\t\t\t\t$this->$column = \\IPS\\Db::i()->select( 'SUM(rating)', 'core_ratings', array( 'class=? AND item_id=?', get_called_class(), $this->$idColumn ) )->first();\n\t\t\t\t}\n\t\t\t\tif ( isset( static::$ratingColumnMap['rating_hits'] ) )\n\t\t\t\t{\n\t\t\t\t\t$column = static::$ratingColumnMap['rating_hits'];\n\t\t\t\t\t$this->$column = \\IPS\\Db::i()->select( 'COUNT(*)', 'core_ratings', array( 'class=? AND item_id=?', get_called_class(), $this->$idColumn ) )->first();\n\t\t\t\t}\n\n\t\t\t\t$this->save();\n\t\t\t\t\n\t\t\t\tif ( \\IPS\\Request::i()->isAjax() )\n\t\t\t\t{\n\t\t\t\t\t\\IPS\\Output::i()->json( 'OK' );\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn $form->customTemplate( array( call_user_func_array( array( \\IPS\\Theme::i(), 'getTemplate' ), array( 'forms', 'core' ) ), 'ratingTemplate' ) );\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn \\IPS\\Theme::i()->getTemplate( 'global', 'core' )->rating( 'veryLarge', $this->averageRating() );\n\t\t}\n\t}", "public function getAverageRating($visual, $rating)\n {\n Redis::hset('visual.' . $visual, 'user.' . auth()->id(), $rating);\n $ratings = collect(Redis::hvals('visual.' . $visual))->avg();\n\n return Redis::zadd('visuals-rating', $ratings, $visual);\n }", "public function calculateStarRating($ratings)\n {\n // $array = [$ratings->quality, $ratings->price, $ratings->value];\n //Calculate the average.\n return round(array_sum($ratings) / count($ratings), 2);\n }", "public function mes_ratings()\n {\n $this->load->model('rating_model');\n $this->load->view(\"header\");\n $idUserRated = $this->session->userdata('user_id');\n $data['ratings'] = $this->rating_model->show_ratings($idUserRated);\n //$data['average'] = $this->rating_model->get_avg_rating($idUserRated);\n $this->load->view(\"list_my_ratings\", $data);\n $this->load->view(\"footer\");\n }", "public function getRestaurantRating($id){\n $query=$this->db->query(\"SELECT COUNT(review_id) AS num_review,ROUND(AVG(rating),0) AS rating FROM reviews WHERE restaurant_id=\".$id);\n if($query->num_rows){\n $restaurant['num_review']=$query->rows[0]['num_review'];\n if($restaurant['num_review']!=0)\n $restaurant['rating']=$query->rows[0]['rating'];\n else\n $restaurant['rating']=0;\n }\n else{\n $restaurant['num_review']=0;\n $restaurant['rating']=0;\n }\n\n return $restaurant;\n }", "function getRating($id)\n{\n global $conn;\n $rating = array();\n $likes_query = \"SELECT COUNT(*) FROM vote_info WHERE idea_id = $id AND vote_action='like'\";\n $dislikes_query = \"SELECT COUNT(*) FROM vote_info \n\t\t \t\t\tWHERE idea_id = $id AND vote_action='dislike'\";\n $likes_rs = mysqli_query($conn, $likes_query);\n $dislikes_rs = mysqli_query($conn, $dislikes_query);\n $likes = mysqli_fetch_array($likes_rs);\n $dislikes = mysqli_fetch_array($dislikes_rs);\n $rating = [\n \t'likes' => $likes[0],\n \t'dislikes' => $dislikes[0]\n ];\n return json_encode($rating);\n}", "public function totalAverageVisitors()\n {\n $query1 = \"SELECT COUNT(recordID) AS totalVisitors FROM ad_stats WHERE (MONTH(date) = MONTH(CURRENT_DATE()) AND YEAR(date) = YEAR(CURRENT_DATE()));\"; \n $result = mysqli_query($GLOBALS['db'], $query1);\n $tempData1 = mysqli_fetch_assoc($result);\n $data['totalVisitors'] = $tempData1['totalVisitors'];\n \n\n //to get the final output\n $query2=\"SELECT AVG(visitors) AS avgVisitors FROM (SELECT date, COUNT(recordID)AS visitors FROM ad_stats GROUP BY date) AS T1;\";\n $result = mysqli_query($GLOBALS['db'], $query2);\n $tempData2 = mysqli_fetch_assoc($result);\n $data['avgVisitors'] = $tempData2['avgVisitors'];\n\n return $data;\n }", "public function getRating():array\n {\n $db = new Db();\n $db = $db->getConnection();\n\n $result = $db->query(\"SELECT `product`, `currentAverageRating` FROM `rating`\");\n\n $rating = [];\n $i = 0;\n $products = ['Apple', 'Beer', 'Water', 'Cheese'];\n while ($row = $result->fetch_assoc()) {\n $rating[$products[$i]]['currentAverageRating'] = $row['currentAverageRating'];\n $i++;\n }\n return $rating;\n }", "public function average() {\n $avgEmployees = Employee::avg(\"age\");\n\n return response()->json([\"age\"=>round($avgEmployees, 0)]);\n }", "public function ListAverage()\n {\n $user = DB::table('games')\n ->select(DB::raw('idUser , avg(score) as avg_score'))\n ->groupby('idUser')\n ->get();\n\n return response()->json(\n $user\n ,\n 202\n );\n }", "public function avgRating(Request $request)\n{\n $service_id = $request->service_id;\n $id = $service_id;\n $num_of_ratings= Rating::orderBy('id','asc')->where('service_id',$service_id)->get();\n $service = services::find($id);\n // dd($service);\n // exit();\n //echo $service_id;\n //dd($num_of_ratings);\n $avg= 0;\n // for($i=0; $i<count($num_of_ratings);$i++){\n // $avg=$avg+\n // }\n if(count($num_of_ratings)>0){\n foreach ($num_of_ratings as $num_of_stars) {\n $avg= $avg+ $num_of_stars->stars_rated;\n\n }\n //echo \"average rating is \". $avg/count($num_of_ratings);\n $service->avg_rating = $avg/count($num_of_ratings);\n $service->save();\n return view('average_rating_page',compact('service'));\n }\n else{\n return view('average_rating_page',compact('service'));\n }\n}", "public static function avg($attribute = null);", "function getRatingForShowId($showid) {\n $pdo = Database::connect();\n $sql = \"SELECT * FROM fd_user_favorites WHERE fd_user_favorites.media_id = ?\";\n $q = $pdo->prepare($sql);\n $q->execute(array($showid));\n\n $ct = 0;\n $rating = 0;\n foreach($q->fetchAll() as $row) {\n $rating = ((int)$row['rating'] + ($ct * $rating)) / (++$ct);\n }\n\n return $ct > 0 ? getStars((int)$rating) : getStars(5);\n}", "public function avg($matcher = null);", "public function getRating()\n {\n return $this->rating;\n }", "public function getRating()\n {\n return $this->rating;\n }", "public function getRating()\n {\n return $this->rating;\n }", "public function showRating(Request $request){\n $this->validate($request, [\n 'product_id' => 'required'\n ]);\n // get rating\n \n $auth_id = Auth::id();\n $rating = Review::where([\"user_id\" => $auth_id, \"product_id\" => $request->product_id])->get();\n if(count($rating) > 0){\n $rating = json_decode(json_encode($rating));\n // avg ratings\n $review = Review::where('product_id', '=', $request->product_id)->avg('ratings');\n $avgRating = number_format($review, 0);\n return response()->json([$rating[0], $avgRating], 200);\n }\n \n \n \n }", "public function GetRating(){\n\t\treturn $this->rating;\n\t}", "public function ratings()\n {\n return $this->hasMany(\\App\\Rating::class);\n }", "public function getRatings(): Collection\n {\n\n return $this->ratings;\n\n }", "function getVideoRatingNums($id)\n\t{\n\t\t$sql= \"\tselect avg(rating) from yp_video_rating where video_id='$id' \";\n\t\t$result_feedback_param =getSingleResult($sql);\n\t\t//$final_rating= \tgetFinalRating($result_feedback_param);\n\t\treturn number_format($result_feedback_param,2,'.','');\t\n\t}", "function getRating()\n {\n return $this->rating;\n }", "public function averageRating($id)\n {\n try {\n $user = User::findOrFail($id);\n $averageRate = $user->averageRating();\n } catch (\\Exception $e) {\n return response()->json(['message' => 'User rating not available']);\n }\n return response(['averageRate' => $averageRate]);\n }", "function show_average($a,$b)\n{\n$sql = \"SELECT AVG(views) AS mittelwert FROM stats_site WHERE pageid='\".$a.\"' AND modus='\".$b.\"'\";\n$result = mysql_db_query(\"portal\",$sql);\n$zeile = mysql_fetch_array($result);\nextract($zeile);\necho $mittelwert;\n}", "public function obtenirRanking(){\n $resultat=$this->db->query(\"SELECT DISTINCT `p`.`nom`, `p`.`descripcio`, avg(`pa`.`valoracio`) as valoracio, `e`.`nom` as `empresa`, `e`.`id`, `c`.`data` FROM `producte` `p` JOIN `cata` `c` ON `c`.`producte`=`p`.`codi` JOIN `participacio` `pa` ON `pa`.`cata`=`c`.`id` JOIN `empresa` `e` ON `e`.`id`=`c`.`empresa` group by p.nom, p.descripcio, e.nom, e.id, c.data ORDER BY `pa`.`valoracio` DESC, `p`.`nom` ASC\");\n return $resultat;\n }", "public function ratings()\n {\n return $this->morphMany(\\App\\Models\\Rating::class, 'rateable');\n }", "function get_average_rating($product_id)\r\n\t{\r\n\t\t$product_id_as_int = (int)$product_id;\r\n\t\t\r\n\t\treturn ceil($this->_db->get_first_cell('SELECT AVG(rating) FROM product_review WHERE product_id = ' . $product_id_as_int));\r\n\t}", "public function getAggregateRating()\n {\n $collection = Mage::getModel('rating/rating_option_vote')\n ->getResourceCollection()\n ->setEntityPkFilter($this->getProduct()->getId())\n ->setStoreFilter(Mage::app()->getStore()->getId());\n return $this->getAverageRatingByCollection($collection);\n }", "private function checkRating($page_id){\n $keyword=$this->queryKeywordsByPageId($page_id);\n $keyword=$keyword[0][1];\n $result=$this->query(\"SELECT user FROM Pages WHERE id='$page_id'\");\n $author=$result->fetch_row();\n $author=$author[0];\n\n if($this->queryExpertsByKeyword($keyword)==null){\n $this->insertExpert($author, $keyword);\n }\n else{\n $result=$this->query(\"SELECT user FROM Expert WHERE word='$keyword'\");\n $currExpert=$result->fetch_row();\n $currExpert=$currExpert[0];\n \n if ($author!=$currExpert){\n $expertRating=$this->query(\"SELECT AVG(rating) \" \n . \"FROM Pages P, Keywords K, Views V \"\n . \"WHERE P.user='$currExpert' AND P.id=K.page_id AND K.word='$keyword' AND P.id=V.page_id\");\n $expertRating=$expertRating->fetch_row();\n \n $newRating=$this->query(\"SELECT AVG(rating) \" \n . \"FROM Views V, Pages P, Keywords K \"\n . \"WHERE P.user='$author' AND P.id=K.page_id AND K.word='$keyword' AND P.id=V.page_id\");\n $newRating=$newRating->fetch_row();\n \n\n if($newRating[0]>$expertRating[0]){\n $this->deleteExpert($currExpert, $keyword);\n $this->insertExpert($author,$keyword);\n }\n }\n }\n\n }", "public function getIcRating(){\n // return all islamic centers do not have this director id associated to them\n return IslamicCenter::where(\"director_id\" ,\"!=\",Auth::user()->user_id)->select(\"id\",\"name\")->get();\n }", "public function getPainStatsByDay($date, $userID) {\n $conn = $this->getConnection();\n return $conn->query(\"SELECT avg(PainLevel) as Avg, min(PainLevel) as Min, max(PainLevel) as Max \n FROM Entry WHERE UserID = $userID AND Date = '$date'\", PDO::FETCH_ASSOC);\n }", "public function getRating()\n {\n return $this->rating;\n }", "public function ratings()\n {\n return $this->morphMany(Rating::class, 'rateable');\n }", "public function ratings()\n {\n \treturn $this->hasMany(Rating::class);\n }", "public function getRatings($PaintingID) {\n \n $sql = \"SELECT Rating FROM Reviews WHERE PaintingID = :PaintingID\";\n $statement = DBHelper::runQuery($this->getConnection(), $sql, Array(\":PaintingID\" => $PaintingID));\n $row = $statement->fetchAll();\n return $row;\n \n }", "function getRatingAgencies() {\n global $RATING_AGENCIES_SQL;\n \n $SQL = $RATING_AGENCIES_SQL;\n $result = mysql_query($SQL);\n \n $agencies = array();\n if (mysql_num_rows($result) == 0) {\n return $agencies;\n }\n\n while($row = mysql_fetch_array($result)) {\n \n $info = array();\n \n $id = $row['raid'];\n $name = $row['name'];\n $fullName = $row['fullName'];\n \n $info['id'] = $id;\n $info['name'] = $name;\n $info['fullName'] = $fullName;\n \n array_push($agencies, $info);\n }\n \n return $agencies;\n}", "public function getShopRating ( $db, $thread_id ) {\n \n $stmt = $db->prepare(\" SELECT RT.title, TRRT.rating_type_id, FORMAT( AVG( TRRT.rate ) , 2 ) AS avg_rate\n FROM `comments_phpreview_ratings_rating_types` AS `TRRT`\n\t\t\t\t\t\t\t\tLEFT JOIN `comments_phpreview_rating_types` AS `RT` \n\t\t\t\t\t\t\t\tON RT.id = TRRT.rating_type_id\n\n WHERE TRRT.rating_id IN \n (\n SELECT TR.id \n FROM `comments_phpreview_ratings` AS `TR` \n WHERE TR.status='T' AND TR.thread_id = ?\n ) \n GROUP BY TRRT.rating_type_id\");\n \n $stmt->execute( array($thread_id) );\n $result = $stmt->fetchAll(\\PDO::FETCH_ASSOC);\n \n $stmt = null;\t\n unset($stmt); \n \n return $result;\n \n }", "function query_select_user_rating($user_id) {\n global $connection;\n\n //should be safe but escape:\n $user_id = mysqli_real_escape_string($connection, $user_id);\n\n //construct query\n $query = \"SELECT IF(FLOOR(AVG(stars)) IS NULL, 0, FLOOR(AVG(stars))) AS stars, \";\n $query .= \"COUNT(user_id) AS occurrences \";\n $query .= \"FROM feedback WHERE user_id='{$user_id}'\";\n\n $result = mysqli_query($connection, $query);\n\n if($result)\n $result = mysqli_fetch_assoc($result);\n\n return $result;\n}", "protected function column_attribute_ratings( $item ) {\n\n\t\t// Bail without attributes to display.\n\t\tif ( empty( $item['attribute_ratings'] ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Build my markup.\n\t\t$setup = '';\n\n\t\t// Wrap the span and do the stars.\n\t\t$setup .= '<span class=\"woo-better-reviews-admin-table-display woo-better-reviews-admin-table-review-attribute-rating\">';\n\n\t\t\t// Set this in a list.\n\t\t\t$setup .= '<ul class=\"woo-better-reviews-admin-attribute-list\">';\n\n\t\t\t// Loop my individual attribute scores.\n\t\t\tforeach ( $item['attribute_ratings'] as $single_attribute ) {\n\n\t\t\t\t// Set a list item.\n\t\t\t\t$setup .= '<li class=\"woo-better-reviews-form-inside-list-single woo-better-reviews-form-inside-list-total-score\">';\n\n\t\t\t\t\t// Do the label.\n\t\t\t\t\t$setup .= '<span class=\"woo-better-reviews-form-inside-list-label\">' . esc_html( $single_attribute['label'] ) . ': </span>';\n\n\t\t\t\t\t// Do the value.\n\t\t\t\t\t$setup .= '<span class=\"woo-better-reviews-form-inside-list-value\">';\n\t\t\t\t\t\t$setup .= sprintf( __( '%s / 7', 'woo-better-reviews' ), absint( $single_attribute['value'] ) );\n\t\t\t\t\t$setup .= '</span>';\n\n\t\t\t\t// Close the list item for total score.\n\t\t\t\t$setup .= '</li>';\n\t\t\t}\n\n\t\t\t$setup .= '</ul>';\n\n\t\t$setup .= '</span>';\n\n\t\t// Return my formatted product name.\n\t\treturn apply_filters( Core\\HOOK_PREFIX . 'review_table_column_attribute_ratings', $setup, $item );\n\t}", "function get_average_marks()\n {\n $names = $this->input->post('names');\n $theclass = $this->input->post('theclass');\n $theyear = $this->input->post('theyear');\n $stream = $this->input->post('stream');\n $semester = $this->input->post('term');\n\n $this->db->select_avg('average_mark');\n $this->db->where('full_marks.student', $names);\n $this->db->where('full_marks.hisclass', $theclass);\n $this->db->where('full_marks.stream', $stream);\n $this->db->where('full_marks.term', $semester);\n $this->db->where('full_marks.theyear', $theyear);\n $query = $this->db->get('full_marks')->row();\n return $query->mark1;\n // Produces: SELECT AVG(age) as age FROM members\n }", "public function evalAvg()\n {\n $users = User::students()->get();\n $marks = [];\n foreach ( $users as $user )\n {\n if ($this->evalGradeExists($user))\n {\n array_push($marks,$this->userPercentage($user));\n }\n }\n $count = count($marks); //total numbers in array\n $total = 0;\n foreach ($marks as $mark) {\n $total += $mark; // total value of array numbers\n }\n $average = ($total/$count); // get average value\n return round($average,2);\n\n }", "function getRating($id)\n {\n global $conn;\n $rating = array();\n $likes_query = \"SELECT COUNT(*) FROM rating_info WHERE comment_id = $id AND rating_action='like'\";\n $dislikes_query = \"SELECT COUNT(*) FROM rating_info \n WHERE comment_id = $id AND rating_action='dislike'\";\n $likes_rs = mysqli_query($conn, $likes_query);\n $dislikes_rs = mysqli_query($conn, $dislikes_query);\n $likes = mysqli_fetch_array($likes_rs);\n $dislikes = mysqli_fetch_array($dislikes_rs);\n $rating = [\n 'likes' => $likes[0],\n 'dislikes' => $dislikes[0]\n ];\n return json_encode($rating);\n }", "public function getAverageRating($rid){\n $comments = $this->getAllComments($rid);\n $sum = 0;\n if(sizeof($comments)!=0){\n foreach($comments as $comment){\n $sum += $comment->rating;\n }\n return $sum/sizeof($comments);\n } else {\n return $sum;\n }\n }", "public function getCompanyAverageRatings($ratings){\n\n\t\t$total=count($ratings);\n\t\t$culture=$management=$work_live_balance=$career_development=0;\n\n\t\tforeach($ratings as $rating){\n\t\t\t$culture += $rating['culture'];\n\t\t $management += $rating['management'];\n\t\t\t$work_live_balance += $rating['work_live_balance'];\n\t\t\t$career_development += $rating['career_development'];\t\n\t\t}\t\n\t\t\n\t\t$avgCulture = $culture/$total;\n\t\t$avgManagement = $management/$total;\n\t\t$avgWork_live = $work_live_balance/$total;\n\t\t$avgCareer_dev = $career_development/$total;\n\n\t\treturn array('culture'=>$avgCulture, 'management'=>$avgManagement, 'work_live_balance'=>$avgWork_live, 'career_development'=>$avgCareer_dev);\n\t}", "public function getRatingAttribute()\n {\n return (int) $this->ratings()->sum('rate');\n }", "public function ratings()\n {\n return $this->morphMany('willvincent\\Rateable\\Rating', 'rateablein');\n }", "public function executeRatingDetails()\n {\n if ($this->object)\n {\n $details = $this->object->getRatingDetails(true);\n $total_ratings = array_sum($details);\n $full_details = array();\n foreach ($details as $rating => $nb_ratings)\n {\n if ($total_ratings > 0)\n {\n $percent = $nb_ratings / $total_ratings * 100;\n } else $percent = 0;\n $full_details[$rating] = array('count' => $nb_ratings,\n 'percent' => $percent);\n }\n $this->rating_details = $full_details;\n $this->object_type = get_class($this->object);\n }\n }", "function _averages() {\n if (!$this->staff) $this->_error('Access Denied', 403);\n\n // The only case switch in the entire migration :(\n $median = $this->db->type() == 'mysql' ?\n // \"SUBSTRING_INDEX( SUBSTRING_INDEX( GROUP_CONCAT(TIMESTAMPDIFF('SECOND', CAST(r.starttimestamp AS DATE), CAST(r.endtimestamp AS DATE)) ORDER BY TIMESTAMPDIFF('SECOND', CAST(r.starttimestamp AS DATE), CAST(r.endtimestamp AS DATE))), ',', COUNT(*)/2 ), ',', -1) as avgt\"\n \"AVG(TIMESTAMPDIFF('SECOND', CAST(r.starttimestamp AS DATE), CAST(r.endtimestamp AS DATE))) as avgt\"\n : \"MEDIAN(TIMESTAMPDIFF('SECOND', CAST(r.starttimestamp AS DATE), CAST(r.endtimestamp AS DATE))) as avgt\";\n\n\n $rows = $this->db->pq(\"SELECT CONCAT(CONCAT(vr.run, '-'), s.beamlinename) as rbl, min(vr.run) as run, min(vr.runid) as runid, min(s.beamlinename) as bl, count(r.robotactionid) as num, \n $median\n FROM v_run vr \n INNER JOIN blsession s ON (s.startdate BETWEEN vr.startdate AND vr.enddate) \n INNER JOIN proposal p ON (p.proposalid = s.proposalid) \n INNER JOIN robotaction r ON (r.blsessionid = s.sessionid) \n WHERE /*r.robotactionid > 1 AND*/ p.proposalcode <> 'cm' AND r.status='SUCCESS' AND (r.actiontype = 'LOAD') \n GROUP BY CONCAT(CONCAT(vr.run, '-'), s.beamlinename)\n ORDER BY min(s.beamlinename), min(vr.runid)\");\n \n $tvs = $this->db->pq(\"SELECT distinct vr.run,vr.runid \n FROM v_run vr \n INNER JOIN blsession bl ON (bl.startdate BETWEEN vr.startdate AND vr.enddate) \n INNER JOIN robotaction r ON (r.blsessionid = bl.sessionid) \n /*WHERE robotactionid != 1*/ ORDER BY vr.runid\");\n \n $rids = array();$rvl = array();\n $ticks = array();\n foreach ($tvs as $i => $t) {\n array_push($ticks, array($i, $t['RUN']));\n $rids[$t['RUN']] = $t['RUNID'];\n $rvl[$t['RUN']] = $i;\n }\n \n $bls = array();\n foreach ($rows as $r) {\n if (!array_key_exists($r['BL'], $bls)) $bls[$r['BL']] = array();\n \n array_push($bls[$r['BL']], $r);\n }\n \n $bld = array();\n foreach ($bls as $bl => $d) {\n $rd = array();\n foreach ($d as $i => $dat) {\n array_push($rd, array($rvl[$dat['RUN']], floatval($dat['AVGT'])));\n }\n \n $bld[$bl] = $rd;\n }\n\n $this->has_arg('download') ? $this->_write_csv($bld, $ticks, 'robot_load') : $this->_output(array('details' => $bls, 'data' => $bld, 'ticks' => $ticks, 'rids' => $rids));\n }", "public function user_ratings()\n\t{\n\t\t$user_manager = new UserManager();\n\t\t$smarty = new Smarty_WinesAlike();\n\n\t\tif (isset($_POST['email']) && isset($_POST['passwd']))\n\t\t// they have just tried logging in\n\t\t{\n\t\t \t//create short variable names\n\t\t \t$email = $_POST['email'];\n\t\t \t$passwd = $_POST['passwd'];\n\t\t \ttry\n\t\t \t{\n\t\t\t\tif ($user_manager->login_exists($email, $passwd))\n\t\t\t\t{\n\t\t\t \t// if they are in the database register the user id\n\t\t\t \t$user_manager->register_valid_user($email);\t\t\t\t\n\t\t\t\t}\n\t\t \t}\n\t\t \tcatch(Exception $e) \n\t\t\t{\n\t\t\t\t//echo (json_encode(new array());\n\t\t\t\texit;\n\t\t \t} \n\t\t}\n\n\t\t// get the ratings this user has entered, or all of them if not user specified\n\t\t$ratings = new Ratings();\n\t\tif ($user_manager->check_valid_user()) {\n\t\t\t$rating_array = $ratings->get_user_ratings($user_manager->get_current_user());\n\t\t} else {\n\t\t\t$rating_array = array();\n\t\t}\n\t\techo (json_encode($rating_array));\n\t}", "function sf_get_product_stars() {\n\t\t\n\t\t$stars_output = \"\";\n\t\t\n\t global $wpdb;\n\t global $post;\n\t $count = $wpdb->get_var(\"\n\t\t SELECT COUNT(meta_value) FROM $wpdb->commentmeta\n\t\t LEFT JOIN $wpdb->comments ON $wpdb->commentmeta.comment_id = $wpdb->comments.comment_ID\n\t\t WHERE meta_key = 'rating'\n\t\t AND comment_post_ID = $post->ID\n\t\t AND comment_approved = '1'\n\t\t AND meta_value > 0\n\t\t\");\n\t\t\n\t\t$rating = $wpdb->get_var(\"\n\t\t SELECT SUM(meta_value) FROM $wpdb->commentmeta\n\t\t LEFT JOIN $wpdb->comments ON $wpdb->commentmeta.comment_id = $wpdb->comments.comment_ID\n\t\t WHERE meta_key = 'rating'\n\t\t AND comment_post_ID = $post->ID\n\t\t AND comment_approved = '1'\n\t\t\");\n\t\t\n\t\tif ( $count > 0 ) {\n\t\t\n\t\t $average = number_format($rating / $count, 2);\n\t\t\n\t\t $stars_output .= '<div class=\"starwrapper\" itemprop=\"aggregateRating\" itemscope itemtype=\"http://schema.org/AggregateRating\">';\n\t\t\n\t\t $stars_output .= '<span class=\"star-rating\" title=\"'.sprintf(__('Rated %s out of 5', 'woocommerce'), $average).'\"><span style=\"width:'.($average*16).'px\"><span itemprop=\"ratingValue\" class=\"rating\">'.$average.'</span> </span></span>';\n\t\t\n\t\t $stars_output .= '</div>';\n\t\t}\n\t\t\n\t\treturn $stars_output;\n\t}", "function getMovieRating() {\n\t\treturn $this->getOption(self::OPTION_MOVIE_RATING, 9);\n\t}", "public function ratings()\n {\n return $this->hasMany('App\\Models\\Rating');\n }", "function showratings($rating_type,$rating_item_id,$rating_link) {\n\n\tglobal $db_prefix, $locale, $userdata,\n\t\t$template_panels, $template_variables;\n\n\t$variables = array();\n\n\tif (iMEMBER) {\n\t\t$d_rating = dbarray(dbquery(\"SELECT rating_vote,rating_datestamp FROM \".$db_prefix.\"ratings WHERE rating_item_id='\".$rating_item_id.\"' AND rating_type='\".$rating_type.\"' AND rating_user='\".$userdata['user_id'].\"'\"));\n\t\t$rating_exists = isset($d_rating['rating_vote']);\n\t\tif (isset($_POST['post_rating'])) {\n\t\t\tif (isNum($_POST['rating']) && $_POST['rating'] > 0 && $_POST['rating'] < 6 && !$rating_exists) {\n\t\t\t\t$result = dbquery(\"INSERT INTO \".$db_prefix.\"ratings (rating_item_id, rating_type, rating_user, rating_vote, rating_datestamp, rating_ip) VALUES ('$rating_item_id', '$rating_type', '\".$userdata['user_id'].\"', '\".$_POST['rating'].\"', '\".time().\"', '\".USER_IP.\"')\");\n\t\t\t}\n\t\t\tredirect($rating_link);\n\t\t} elseif (isset($_POST['remove_rating'])) {\n\t\t\t$result = dbquery(\"DELETE FROM \".$db_prefix.\"ratings WHERE rating_item_id='$rating_item_id' AND rating_type='$rating_type' AND rating_user='\".$userdata['user_id'].\"'\");\n\t\t\tredirect($rating_link);\n\t\t}\n\t} else {\n\t\t$rating_exists = false;\n\t}\n\t$total_votes = dbcount(\"(rating_item_id)\", \"ratings\", \"rating_item_id='\".$rating_item_id.\"' AND rating_type='\".$rating_type.\"'\");\n\n\t$ratingtext = array(5 => $locale['r120'], 4 => $locale['r121'], 3 => $locale['r122'], 2 => $locale['r123'], 1 => $locale['r124']);\n\n\t$ratings = array();\n\tforeach($ratingtext as $rating => $rating_info) {\n\t\t$temp = array();\n\t\t$temp['rating'] = $rating;\n\t\t$num_votes = dbcount(\"(rating_item_id)\", \"ratings\", \"rating_item_id='\".$rating_item_id.\"' AND rating_type='\".$rating_type.\"' AND rating_vote='\".$rating.\"'\");\n\t\tif ($num_votes == 0) {\n\t\t\t$temp['votecount'] = \"[\".$locale['r108'].\"]\";\n\t\t} elseif ($num_votes == 1) {\n\t\t\t$temp['votecount'] = \"[1 \".$locale['r109'].\"]\";\n\t\t} else {\n\t\t\t$temp['votecount'] = \"[\".$num_votes.\" \".$locale['r110'].\"]\";\n\t\t}\n\t\t$temp['num_votes'] = $num_votes;\n\t\t$temp['info'] = $rating_info;\n\t\t$temp['pct_rating'] = $total_votes == 0 ? 0 : number_format(100 / $total_votes * $num_votes);\n\t\t$ratings[] = $temp;\n\t}\n\n\t$variables['rating_link'] = $rating_link;\n\t$variables['rating_exists'] = $rating_exists;\n\tif ($rating_exists) {\n\t\t$variables['rating_text'] = $ratingtext[$d_rating['rating_vote']];\n\t\t$variables['rating_datestamp'] = $d_rating['rating_datestamp'];\n\t}\n\t$variables['rating_timestamp'] = 0;\n\t$variables['total_votes'] = $total_votes;\n\t$variables['ratings'] = $ratings;\n\t// define the body panel variables\n\t$template_panels[] = array('type' => 'body', 'name' => 'ratings_include', 'template' => 'include.ratings.tpl', 'locale' => \"main.ratings\");\n\t$template_variables['ratings_include'] = $variables;\n}", "public function getReviewIfRating() {\n //Try to get distinct\n $qry = $this->db->prepare('SELECT DISTINCT NAME,ADDRESS,SUBURB,LATITUDE,LONGITUDE,reviews.rating FROM n8598177.items INNER JOIN reviews ON reviews.hotspotName=items.NAME ');\n $qry->execute();\n foreach ($qry as $hotspot) {\n include('server/includes/recentReview.tpl.php');\n }\n }", "public function actionRate()\n\t{\n\t\t$note_id = $_POST['note_id'];\n\t\t$student_id = $_POST['student_id'];\n\t\t$rating = $_POST['rating'];\n\n\t\t$model = $this->loadModel($note_id);\n\t\t$model->rate($student_id, $rating);\n\n\t\t$totalRating = $model->getTotalRating();\n\t\t$ratersCount = $model->getRatersCount();\n\n\t\tif ( ! $totalRating)\n\t\t\techo 'N/A';\n\t\telse\n\t\t\techo '' . ((double)$totalRating / $ratersCount) . ' (dari ' . $ratersCount . ' pengguna)';\n\t}", "public function getScores($language){\n if($language==='Dutch'){\n $this->db->select('ROUND(AVG(Answers.Score),2) avg_Score, Questions.Type_nl Topic');\n }\n else{\n $this->db->select('ROUND(AVG(Answers.Score),2) avg_Score, Questions.Type_en Topic');\n }\n $this->db->where(\"Answers.Score !=\",6);\n $this->db->join('Questions','Questions.ID_Question=Answers.ID_Question');\n $this->db->group_by('Questions.Type_en');\n $this->db->order_by('AVG(Answers.Score)',\"asc\");\n $this->db->from('Answers');\n $query= $this->db->get();\n $data['avg_scores']=$query->result();\n return $data;\n }", "private function joinSexAvgQueries()\n {\n $sexQueryMale = new ReviewsQuery(Reviews::className());\n $sexQueryMale->getSexAvgQuery(Reviews::SEX_MALE, 'male_avg_age');\n\n $this->leftJoin(['male_avg_age' => $sexQueryMale], 'male_avg_age.book_id = books.id');\n\n $sexQueryFemale = new ReviewsQuery(Reviews::className());\n $sexQueryFemale->getSexAvgQuery(Reviews::SEX_FEMALE, 'female_avg_age');\n\n $this->leftJoin(['female_avg_age' => $sexQueryFemale], 'female_avg_age.book_id = books.id');\n }", "public function showRating($id)\n {\n $user = User::find($id);\n return [$user->rating, $user->ratersNumber];\n }" ]
[ "0.69631433", "0.67575204", "0.66506374", "0.6649692", "0.6600794", "0.65208095", "0.6339661", "0.6328433", "0.6243155", "0.6243155", "0.62298524", "0.6200975", "0.6131025", "0.60925835", "0.60589653", "0.6040679", "0.60216606", "0.60141104", "0.5973192", "0.59400713", "0.5879875", "0.5854864", "0.5834347", "0.58258986", "0.582461", "0.57951057", "0.5765368", "0.5764337", "0.5723185", "0.5715312", "0.57019186", "0.56952333", "0.56691295", "0.5667987", "0.5666975", "0.56522185", "0.5620237", "0.56089765", "0.5586984", "0.5579468", "0.55776525", "0.55637544", "0.55534065", "0.5546093", "0.5528319", "0.5517856", "0.5497678", "0.54969174", "0.5494824", "0.5481685", "0.5455722", "0.54508317", "0.54504174", "0.54470056", "0.54456985", "0.54363155", "0.54363155", "0.54363155", "0.54247594", "0.5415504", "0.5408656", "0.54069126", "0.54018414", "0.54001784", "0.53912175", "0.5388943", "0.5377211", "0.53761595", "0.5368046", "0.5355117", "0.5352782", "0.532512", "0.53091615", "0.53065515", "0.5298638", "0.529001", "0.5287764", "0.5285153", "0.52849233", "0.5265541", "0.52564216", "0.5255812", "0.5253952", "0.52537537", "0.5245018", "0.52440727", "0.52413565", "0.5239624", "0.52393657", "0.52179635", "0.52165884", "0.52157474", "0.5215384", "0.52128613", "0.5211419", "0.5198607", "0.5192478", "0.51904416", "0.518957", "0.51856315" ]
0.5492317
49
we select an anime
public function select($id) { $anime = DB::select("SELECT * FROM animes WHERE id = ?",[$id])[0]; // variables used to check if the user has created a review or added // an anime to his watchlist $has_review = false; $in_watchlist = false; if (Auth::user()) { $review = DB::select("SELECT * FROM review WHERE user_id = ? AND anime_id = ?",[Auth::user()->id,$id]); // check if the user has reviewed the anime $has_review = (count($review) > 0); $watchlist = DB::select("SELECT * FROM watchlist WHERE user_id = ? AND anime_id = ?",[Auth::user()->id,$id]); // check if the user has added the anime to his watchlist $in_watchlist = (count($watchlist) > 0); } $rating = DB::select("SELECT AVG(rating) AS rating FROM review WHERE anime_id = ?",[$id])[0]->rating; // $anime = DB::select("SELECT * FROM animes WHERE id = ?", [$id])[0]; return view('anime', ["anime" => $anime,"rating" =>round($rating), "has_review" => $has_review,"in_watchlist" => $in_watchlist]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function click() {\r\n\t\tswitch($this->current) {\r\n\t\t\tdefault:\r\n\t\t\t\t$this->current = self::SEA;\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::ISLAND:\r\n\t\t\t\t$this->current = self::NONE;\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase self::SEA:\r\n\t\t\t\t$this->current = self::ISLAND;\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "public function select($tienda);", "protected function setMark() {\n echo $this->promptMessage('choose_mark');\n $mark = $this->limitInput(array(self::X_MARK, self::O_MARK, self::QUIT_BUTTON));\n switch ($mark) {\n case self::X_MARK:\n $this->_userMark = self::X_MARK;\n $this->_botMark = self::O_MARK;\n break;\n case self::O_MARK:\n $this->_userMark = self::O_MARK;\n $this->_botMark = self::X_MARK;\n break;\n case self::QUIT_BUTTON:\n $this->quit();\n }\n echo \"You will be Player \" . $this->_userMark . \".\" . PHP_EOL;\n echo $this->promptMessage('start_game') . PHP_EOL;\n }", "public abstract function onPlayerSelect();", "public function anime(){\t\n\t\t\t$LimitRowPegination = 4;\n\t\t\t$API_LastUpdateAnime = SiteMap::LastUpdateAnime(18,0,$LimitRowPegination);\n\t\t\t$PTR_API['API_LastUpdateAnime'] = $API_LastUpdateAnime;\n\t\t\t$this->load->view('seo/sitemap_anime',$PTR_API);\n\t\t}", "function setActive() ;", "function qselect(){\r\n\t\t\r\n\t\r\n\t}", "public function edit(Anime $anime)\n {\n //\n }", "public function setIme($ime){\n $this->ime=$ime;\n }", "protected function selectPlayer(){\r\n $this->currentPlayer = rand(1,2);\r\n selectRandPlayerMsg($this->currentPlayer);\r\n }", "public function processAnime()\n\t{\n\t\tif ($this->site->lookupanidb === '1') {\n\t\t\t$anidb = new AniDB($this->echooutput);\n\t\t\t$anidb->animetitlesUpdate();\n\t\t\t$anidb->processAnimeReleases();\n\t\t}\n\t}", "public function select($calendario);", "public function switchOn();", "public function select()\n {\n\n }", "public function atime($file)\n {\n }", "public function atime($file)\n {\n }", "public function atime($file)\n {\n }", "public function atime($file)\n {\n }", "public function atime($file)\n {\n }", "function isSelected($value){\n global $session_duration;\n if($session_duration == $value){\n return \"selected\";\n }else{\n return \"\";\n }\n }", "public function picked(){\n }", "public function setActive() {}", "public function displayAnime ($name) {\n $anime = new Anime();\n $anime->getAnime($name);\n ?>\n <div class=\"background\">\n <div class=\"cover\">\n <?php echo $anime->getPicDir(); ?>\n </div>\n <div class=\"description\">\n <?php echo $anime->description; ?>\n </div>\n <div class=\"eps\">\n <?php\n $eps = DataBase::Current()->ReadRows(\"SELECT * from {'dbprefix'}episodes WHERE name='\".$name.\"'\");\n if ($eps) {\n foreach ($eps as $ep) {\n ?>\n <div class=\"episode<?PHP echo $ep->episode; ?>\">\n <?php\n echo $ep->name;\n echo $ep->title;\n ?>\n </div>\n <?php\n }\n }\n ?>\n </div>\n </div>\n <?PHP\n }", "abstract function selectHook();", "public function play() {\n if ($this->getLigado() && !($this->getTocando())) {\n $this->setTocando(true);\n }\n }", "protected function AIMove() {\n $botMove = $this->botMove();\n echo \"Computer's move is '\" . $this->_botMark . \"' at box \" . $botMove . PHP_EOL;\n $this->_markers[$this->_botMark][] = $botMove;\n $this->drawBoard($this->_markers);\n if ($this->isWon($this->_botMark) || $this->isBoardFull())\n return true;\n return false;\n }", "public function actionStart($at=false,$in=false)\n {\n // Start the competition $in number of seconds from now\n }", "public function anime()\n\t{\n\t\tif (preg_match('/^\\((\\[.+?\\] .+?)\\) \\[\\d+\\/\\d+\\] - \".+?\" yEnc$/', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //[REPOST][ New Doraemon 2013.05.03 Episode 328 (TV Asahi) 1080i HDTV MPEG2 AAC-DoraClub.org ] [35/61] - \"doraclub.org-doraemon-20130503-b8de1f8e.r32\" yEnc\n\t\tif (preg_match('/^\\[.+?\\]\\[ (.+?) \\] \\[\\d+\\/\\d+\\] - \".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //[De.us] Suzumiya Haruhi no Shoushitsu (1920x1080 h.264 Dual-Audio FLAC 10-bit) [017CB24D] [000/357] - \"[De.us] Suzumiya Haruhi no Shoushitsu (1920x1080 h.264 Dual-Audio FLAC 10-bit) [017CB24D].nzb\" yEnc\n\t\tif (preg_match('/^\\[.+?\\] (.+?) \\[[A-F0-9]+\\] \\[\\d+\\/\\d+\\] - \".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //[eraser] Ghost in the Shell ARISE - border_1 Ghost Pain (BD 720p Hi444PP LC-AAC Stereo) - [01/65] - \"[eraser] Ghost in the Shell ARISE - border_1 Ghost Pain (BD 720p Hi444PP LC-AAC Stereo) .md5\" yEnc\n\t\tif (preg_match('/^\\[.+?\\] (.+?) - \\[\\d+\\/\\d+\\] - \".+?\" yEnc$/', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //(01/27) - Maid.Sama.Jap.dubbed.german.english.subbed - \"01 Misaki ist eine Maid!.divx\" - 6,44 GB - yEnc\n\t\tif (preg_match('/^\\(\\d+\\/\\d+\\) - (.+?) - \".+?\" - \\d+[,.]\\d+ [mMkKgG][bB] - yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //[ New Doraemon 2013.06.14 Episode 334 (TV Asahi) 1080i HDTV MPEG2 AAC-DoraClub.org ] [01/60] - \"doraclub.org-doraemon-20130614-fae28cec.nfo\" yEnc\n\t\tif (preg_match('/^\\[ (.+?) \\] \\[\\d+\\/\\d+\\] - \".+?\" yEnc$/', $this->subject, $match)) {\n\t\t\treturn $match[1];\n\t\t} //Overman King Gainer [Dual audio, EngSub] Exiled Destiny - [002/149] - \"Overman King Gainer.part001.rar\" yEnc\n\t\tif (preg_match('/^(.+? \\[Dual [aA]udio, EngSub\\] .+?) - \\[\\d+\\/\\d+\\] - \".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //[ TOWN ]-[ www.town.ag ]-[ partner of www.ssl-news.info ]-[ ANIME ] [3/5] - \"[HorribleSubs] Ai-Mai-Mi - Mousou Catastrophie - 04 [480p].part2.rar\" - 26,44 MB yEnc\n\t\tif (preg_match('/^.+?-\\[\\s*ANIME\\s*\\] \\[\\d+\\/\\d+\\] - \"(.*)\" - \\d+[,.]\\d+ [mMkKgG][bB][\\s]*yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[2];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}", "function imgOnline($sexe, $activite)\r\n{\r\n\tif ( time()>=$activite && time()<=($activite+5*60) ) { \r\n\t\tif ($sexe==\"f\")\t$img=\"ico_femme.gif\";\r\n\t\telse \t\t\t$img=\"ico_homme.gif\";\r\n\t} else { \r\n\t\tif ($sexe==\"f\")\t$img=\"ico_femme_off.gif\";\r\n\t\telse \t\t\t$img=\"ico_homme_off.gif\";\r\n\t}\r\n\treturn $img;\r\n}", "public function on()\n {\n echo 'The tv is on now.' . PHP_EOL;\n }", "function select_option()\r\n{}", "public function _anime() {\n\t\treturn $this->belongsTo('\\App\\Models\\Anime', 'anime', 'slug');\n\t}", "final public function set_idle_time($time)\n {\n $this->_idle_time = $time;\n }", "function mSELECT(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$SELECT;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:116:3: ( 'select' ) \n // Tokenizer11.g:117:3: 'select' \n {\n $this->matchString(\"select\"); \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 changeMotifTimeAgv($id, $value) {\n \n \t$id = (int) $id;\n \t$value = (int) $value;\n \t\n\t\t$sql = \"UPDATE `medecine_preventive` SET `time_avg` = '$value' WHERE `motif_ID` = '$id'\";\n\t\t\t\t \n $upd = mysql_query($sql);\n\n if ($upd) {\n return true;\n } else {\n return false;\n }\n \n }", "public function gain(){\r\n $actionPoint = $this->target->getActionPoint();\r\n $actionPoint = round($actionPoint / 2);\r\n\r\n $this->target->setActionPoint($actionPoint);\r\n $this->target->setTimestamp();\r\n\r\n self::getActionPoint();\r\n }", "public function addAt() {\n\t\t$at = json_decode(Flight::request()->query['at'],true);\n\t\t$date = date('H:i Y-m-d', $at['d']);\n\t\tswitch ($at['t']) {\n\t\t\tcase 'on': exec('at '.$date.' -q A -f /srv/www/home.fr/public/conf/aton.txt'); break;\n\t\t\tcase 'off': exec('at '.$date.' -q B -f /srv/www/home.fr/public/conf/atoff.txt'); break;\n\t\t\tcase 'tts': exec('at '.$date.' -q C -f /srv/www/home.fr/public/conf/attts.txt'); break;\n\t\t}\n\t\tFlight::json(array('Status' => 'OK','At' => $date, 'Type' => $at['t']));\n\t}", "function form_select_minute($name, $minute, $id='') {\n\n\tglobal $cache2;\n\t$id = ifr($id, $name);\n\n\treturn form_select($name, $cache2->getCalendarData('minutes'), '', $minute, '', '', '', '', '', $id);\n\n}", "function notifyAnimate()\n {\n self::notifyAllPlayers(\"animate\", \"\", array());\n }", "function connectTo($mode) { \n $this->Lexer->addEntryPattern('<animation>(?=.*?</animation>)',$mode,'plugin_layeranimation_animation');\n $this->Lexer->addEntryPattern('<animation .+?>(?=.*?</animation>)',$mode,'plugin_layeranimation_animation');\n }", "public function setup_selected() {\n\t}", "public function select($metricaevotranspiracion);", "public function click()\n {\n }", "function select( $element )\n\t\t{\t\t\t\n\t\t\tif($element['subtype'] == 'page')\n\t\t\t{\n\t\t\t\t$select = 'Select page';\n\t\t\t\t$entries = get_pages('title_li=&orderby=name');\n\t\t\t}\n\t\t\telse if($element['subtype'] == 'post')\n\t\t\t{\n\t\t\t\t$select = 'Select post';\n\t\t\t\t$entries = get_posts('title_li=&orderby=name&numberposts=9999');\n\t\t\t}\n\t\t\telse if($element['subtype'] == 'cat')\n\t\t\t{\n\t\t\t\t$add_taxonomy = \"\";\n\t\t\t\t\n\t\t\t\tif(!empty($element['taxonomy'])) $add_taxonomy = \"&taxonomy=\".$element['taxonomy'];\n\t\t\t\n\t\t\t\t$select = 'Select category';\n\t\t\t\t$entries = get_categories('title_li=&orderby=name&hide_empty=0'.$add_taxonomy);\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\t\n\t\t\t\t$select = 'Select...';\n\t\t\t\t$entries = $element['subtype'];\n\t\t\t\t\n\t\t\t\tif(isset($element['folder']))\n\t\t\t\t{\t\n\t\t\t\t\t$add_file_array = ace_backend_load_scripts_by_folder(ACE_BASE.$element['folder']);\n\t\n\t\t\t\t\tif(is_array($add_file_array))\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach($add_file_array as $file)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(strpos($file, '.') !== 0)\n\t\t\t\t\t\t\t$entries[$element['folderlabel'].$file] = ACE_BASE_URL.$element['folder'].$file; \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//check for onchange function\n\t\t\t$onchange = \"\";\n\t\t\tif(isset($element['onchange'])) \n\t\t\t{\n\t\t\t\t$onchange = \" data-ace-onchange='\".$element['onchange'].\"' \";\n\t\t\t\t$element['class'] .= \" ace_onchange\";\n\t\t\t}\n\t\t\t\n\t\t\t$multi = $multi_class = \"\";\n\t\t\tif(isset($element['multiple'])) \n\t\t\t{\n\t\t\t\t$multi_class = \" ace_multiple_select\";\n\t\t\t\t$multi = 'multiple=\"multiple\" size=\"'.$element['multiple'].'\"';\n\t\t\t\t$element['std'] = explode(',', $element['std']);\n\t\t\t}\n\t\t\t\n\t\t\t$output = '<span class=\"ace_style_wrap ace_select_style_wrap'.$multi_class.'\"><span class=\"ace_select_unify\">';\n\t\t\t$output .= '<select '.$onchange.' '.$multi.' class=\"'.$element['class'].'\" id=\"'. $element['id'] .'\" name=\"'. $element['id'] . '\"> ';\n\t\t\t\n\t\t\t\n\t\t\tif(!isset($element['no_first'])) { $output .= '<option value=\"\">'.$select .'</option> '; $fake_val = $select; }\n\n\t\t\tforeach ($entries as $key => $entry)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tif($element['subtype'] == 'page' || $element['subtype'] == 'post')\n\t\t\t\t{\n\t\t\t\t\t$id = $entry->ID;\n\t\t\t\t\t$title = $entry->post_title;\n\t\t\t\t}\n\t\t\t\telse if($element['subtype'] == 'cat')\n\t\t\t\t{\n\t\t\t\t\tif(isset($entry->term_id))\n\t\t\t\t\t{\n\t\t\t\t\t\t$id = $entry->term_id;\n\t\t\t\t\t\t$title = $entry->name;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$id = $entry;\n\t\t\t\t\t$title = $key;\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!empty($title))\n\t\t\t\t{\n\t\t\t\t\tif(!isset($fake_val)) $fake_val = $title;\n\t\t\t\t\t$selected = \"\";\n\t\t\t\t\tif ($element['std'] == $id || (is_array($element['std']) && in_array($id, $element['std']))) { $selected = \"selected='selected'\"; $fake_val = $title;}\n\t\n\t\t\t\t\t\n\t\t\t\t\t$output .= \"<option $selected value='\". $id.\"'>\". $title.\"</option>\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t$output .= '</select>';\n\t\t\t$output .= '<span class=\"ace_select_fake_val\">'.$fake_val.'</span>';\n\t\t\t$output .= '</span></span>';\n\t\t\t\n\t\t\treturn $output;\n\t\t}", "public function clickFinger()\n {\n }", "public function ability() {\n\n $this->startMove(3, 0.2);\n echo \"THE ENGINE IS OVERHEATED!\\n\";\n $this->switchEngine();\n\n\n\n\n }", "public function setTime($time);", "private function decideVictory()\n {\n echo 'Jugador ';\n if (!$this->human->isOver() &&\n (\n ($this->human->getPoints() == $this->machine->getPoints() && $this->human->getPoints() != PLAYER_WIN_POINTS)\n || $this->human->getPoints() > $this->machine->getPoints()\n || $this->machine->isOver()\n )\n ) echo 'Humano';\n else echo 'Máquina';\n echo ' gana la partida. ';\n }", "function evt__cuadro_fechas__seleccionar ($fecha_cuadro){\n }", "public function changetimeframe() {\n $sessionstaff = $this->Session->read('staff');\n if ($_POST['tier_timeframe'] == '') {\n $_POST['tier_timeframe'] = 0;\n }\n $this->AccessStaff->query('update access_staffs set tier_timeframe=' . $_POST['tier_timeframe'] . ' where clinic_id=' . $sessionstaff['clinic_id']);\n $this->Session->write('staff.staffaccess.AccessStaff.tier_timeframe', $_POST['tier_timeframe']);\n echo 1;\n\n die;\n }", "function seleccionInicio($idP){\r\n }", "public function setTime($time=0){\n\t\t\t$this->_time = $time;\n\t\t}", "public function getAnAnime($id) {\n\t\t$result = null;\n\n\t\tforeach ($this->getAnimes() as $anime) {\n\t\t\tif ($anime->getId() == $id) {\n\t\t\t\t$result = $anime;\n\t\t\t}\n\t\t}\n\n\t\treturn $result;\n\t}", "function ncurses_mouseinterval($milliseconds)\n{\n}", "public function toggleTimerType(): void\n {\n $this->timerTypeDateTime = !$this->timerTypeDateTime;\n }", "public function setShowTime($a_showtime)\n\t{\n\t\t$this->showtime = $a_showtime;\n\t}", "public function timerEvent()\n {\n echo 'timer is triggered',\"\\n\";\n }", "public function at($delay);", "public function select();", "public function select();", "public function select();", "private function chooseQuestionToAnswer() : void\n {\n $questionId = $this->console->choice(__('Please select question to answer:'), $this->options);\n $this->handleAnswer($questionId ? array_search($questionId, $this->options) : null);\n }", "function select_type($who){\t\n\t$textareas = array('note'); \n\t$select = array('centro_di_ricavo','proprietario','anno_di_interesse','interessato_a','campagna_id',\"source_potential\",'vettura_posseduta_alimentazione','pagamento_vettura','experience_level',\"mansione\",\"paese\",\"proprietario\",\"status_pagamento\",\"causale\",\"metodo_di_pagamento\");\n\t$select_text = array(\"provincia\",\"citta\");\n\t$disabled = array(\"messaggio\",\"data_creazione\",\"visite\");\n\t$hidden = array('industry',\"paese\",'marchio',\"data_assegnazione\",\"data_scadenza\",\"data_scadenza_venditore\",'venditore',\"company\",\"job_title\",\"data_creazione\",\"sent_mail\",\"in_use\",'is_customer',\"data_aggiornamento\",\"ip\",\"operatore\");\n\t$radio = array('rito_civile');\n\t$text = array();\n\t$selectbtn = array('location_evento',\"status_potential\",'attivo');\t\n\t$calendario = array('data_visita');\t\n\t$file = array();\n\t$invisible = array('priorita_contatto');\n\t$datePicker = array();\n\t$checkbox = array('tipo_interesse');\n\t$multi_selection = array(\"ambienti\",\"mesi_di_interesse\",\"giorni_di_interesse\");\n\t$ifYesText = array();\t\t\n\tif(defined('tab_prefix') && @tab_prefix == 'hrc') $hidden = array(\"indirizzo\",\"ragione_sociale\",\"partita_iva\",\"paese\",\"\",\"\",\"data_assegnazione\",\"data_scadenza\",\"data_scadenza_venditore\",'venditore',\"website\",\"fatturato_annuo\",\"mansione\",\"company\",\"job_title\",\"numero_dipendenti\",\"data_creazione\",\"sent_mail\",\"in_use\",\"status_potential\",'is_customer',\"data_aggiornamento\",\"marchio\",\"ip\",\"operatore\");\n\t\n\tif(isset($_GET['id'])) { \n\tif(check($_GET['id']) == 1) { \n\t\tarray_push($invisible,'anno_di_interesse','ambienti','mesi_di_interesse','tipo_interesse','periodo_interesse','preferenze_menu','prezzo_preventivato'); \n\t\tarray_push($hidden,'cap','proprietario','messaggio','rito_civile'); \n\t\tif(check($_GET['status_potential']) != 1) array_push($hidden,'source_potential'); \n\t}}\n\n\t$type = 1;\n\t\n\tif(in_array($who,$select)) { $type = 2; }\n\tif(in_array($who,$select_text)) { $type = 12; }\t\n\tif(in_array($who,$textareas)){ $type = 3; }\n\tif(in_array($who,$disabled)){ $type = 4; }\n\tif(in_array($who,$radio)){ $type = 8; }\n\tif(in_array($who,$calendario)){ $type = 20; }\n\tif(in_array($who,$file)){ $type = 18; }\n\tif(in_array($who,$text)){ $type = 24; }\n\tif(in_array($who,$checkbox)){ $type = 19; }\n\tif(in_array($who,$selectbtn)){ $type = 9; }\n\tif(in_array($who,$multi_selection)){ $type = 23; }\n\tif(in_array($who,$checkbox)){ $type = 19; }\n\tif(in_array($who,$datePicker)){ $type = 11; }\n\tif(in_array($who,$ifYesText)){ $type = 13; }\n\tif(in_array($who,$hidden)){ $type = 5; }\n\tif(in_array($who,$invisible)){ $type = 7; }\n\n\treturn $type;\n\t}", "public function away_mode_start_time() {\n\n\t\t$current = current_time( 'timestamp' ); //The current time\n\n\t\t//if saved date is in the past update it to something in the future\n\t\tif ( isset( $this->settings['start'] ) && isset( $this->settings['enabled'] ) && $current < $this->settings['end'] ) {\n\t\t\t$start = $this->settings['start'];\n\t\t} else {\n\t\t\t$start = strtotime( date( 'n/j/y 12:00 \\a\\m', ( current_time( 'timestamp' ) + ( 86400 ) ) ) );\n\t\t}\n\n\t\t//Hour Field\n\t\t$content = '<select name=\"itsec_away_mode[away_start][hour]\" id=\"itsec_away_mode_away_mod_start_time\">';\n\n\t\tfor ( $i = 1; $i <= 12; $i ++ ) {\n\t\t\t$content .= '<option value=\"' . sprintf( '%02d', $i ) . '\" ' . selected( date( 'g', $start ), $i, false ) . '>' . $i . '</option>';\n\t\t}\n\n\t\t$content .= '</select>';\n\n\t\t//Minute Field\n\t\t$content .= '<select name=\"itsec_away_mode[away_start][minute]\" id=\"itsec_away_mode_away_mod_start_time\">';\n\n\t\tfor ( $i = 0; $i <= 59; $i ++ ) {\n\n\t\t\t$content .= '<option value=\"' . sprintf( '%02d', $i ) . '\" ' . selected( date( 'i', $start ), sprintf( '%02d', $i ), false ) . '>' . sprintf( '%02d', $i ) . '</option>';\n\t\t}\n\n\t\t$content .= '</select>';\n\n\t\t//AM/PM Field\n\t\t$content .= '<select name=\"itsec_away_mode[away_start][sel]\" id=\"itsec_away_mode_away_mod_start_time\">';\n\t\t$content .= '<option value=\"am\" ' . selected( date( 'a', $start ), 'am', false ) . '>' . __( 'am', 'it-l10n-ithemes-security-pro' ) . '</option>';\n\t\t$content .= '<option value=\"pm\" ' . selected( date( 'a', $start ), 'pm', false ) . '>' . __( 'pm', 'it-l10n-ithemes-security-pro' ) . '</option>';\n\t\t$content .= '</select><br>';\n\t\t$content .= '<label for=\"itsec_away_mode_away_mod_start_time\"> ' . __( 'Set the time at which the admin dashboard should become unavailable.', 'it-l10n-ithemes-security-pro' ) . '</label>';\n\n\t\techo $content;\n\n\t}", "public function actionSelect(){\n $select = $this->select('Pilih donk akhh..', ['kopi'=>'kopi', 'susu'=>'susu']);\n echo \"Pilihan nya adalah : $select\";\n }", "public function show(Emploitime $emploitime)\n {\n //\n }", "public function selectArticle()\n\t{\n\t}", "public function set_timeout($uid, $time, $id6,$type){\n if($type==0){\n $q = $this->db->where('01_id', $uid)->where('07_status', 2)\n ->order_by('07_id','DESC')->limit(1)\n ->get('watch_history_07');\n $resq = $q->row_array();\n if(empty($resq)){\n return 'data not found';\n }\n }else{\n $q = $this->db->where('01_id', $uid)->where('07_status', 0)->get('watch_history_07');\n $resq = $q->row_array();\n if(empty($resq)){\n return 'data not found';\n }\n }\n $duration = $this->db->where('05_id', $resq['05_id'])\n ->get('campaign_05');\n $mobile_query = $this->db->where('01_id', $uid)\n ->get('register_01');\n $res_mobile = $mobile_query->row_array();\n $resdur = $duration->row_array();\n $percentage =floatval($time / $resdur['05_seconds']) * 100;\n if($resdur['05_type']==0 && $time>5 && $time<7){\n $query = $this->db->where('01_id', $uid)\n ->where('07_status', 0)\n ->where('05_id', $resq['05_id'])\n ->set('07_end_time', $time)\n ->set('07_video_seconds', $percentage)\n ->set('07_status', 2)\n ->set('07_company_charged', 1)\n ->update('watch_history_07');\n }else{\n if($percentage>=$resdur['05_up_limit']){\n $query = $this->db->where('01_id', $uid)\n ->where('07_id', $resq['07_id'])\n ->where('05_id', $resq['05_id'])\n ->set('07_end_time', $time)\n ->set('07_video_seconds', $percentage)\n ->set('07_status', 2)\n ->set('07_company_charged', 1)\n ->update('watch_history_07'); \n \n \n \n if($resdur['05_send_sms']==1){\n $query = $this->db->join('preferred_language_11 b','a.01_language = b. 11_id')\n ->where('01_id', $uid)\n ->get('register_01 a');\n $resLang = $query->row_array();\n if($resLang['11_language']==\"English\"){\n $link = $resdur['05_sms_template_english'];\n $hex=\"\";\n for ($i=0; $i<strlen($link); $i++){\n $ord = ord($link[$i]);\n $hexCode = dechex($ord);\n $hex .= substr('0'.$hexCode, -2);\n }\n $url = 'http://62.215.172.203/knews/easy_api_submit.aspx?un=ACC_716-059&pw=QdkXcE7J8xqsj52t&originator=544148534545454C&mobiles_list='.$res_mobile['01_mobile'].'&msg_lang=en&msg_text='.$hex;\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_POST, false);\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n $response = curl_exec($ch);\n curl_close($ch);\n }else{\n $link = $resdur['05_sms_template_arabic'];\n $hex=\"\";\n for ($i=0; $i<strlen($link); $i++){\n $ord = ord($link[$i]);\n $hexCode = dechex($ord);\n $hex .= substr('0'.$hexCode, -2);\n }\n $url = 'http://62.215.172.203/knews/easy_api_submit.aspx?un=ACC_716-059&pw=QdkXcE7J8xqsj52t&originator=544148534545454C&mobiles_list='.$res_mobile['01_mobile'].'&msg_lang=ar&msg_text='.$hex;\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_POST, false);\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n $response = curl_exec($ch);\n curl_close($ch);\n }\n }\n if($resdur['05_send_email']==1){\n $query = $this->db->join('preferred_language_11 b','a.01_language = b. 11_id')\n ->where('01_id', $uid)\n ->get('register_01 a');\n $resLang = $query->row_array();\n if($resLang['11_language']==\"English\"){\n $this->load->library('email');\n $fromemail=\"info@adzjar.com\";\n $toemail = $email;\n $subject = \"Adzjar.com\";\n $msg = $this->load->view('email_template/'.$resdur['05_email_template_english'],'',true);\n \n $config=array(\n 'charset'=>'utf-8',\n 'wordwrap'=> TRUE,\n 'mailtype' => 'html'\n );\n \n $this->email->initialize($config);\n $this->email->to($res_mobile['01_email']);\n $this->email->from($fromemail, \"Adzjar.com\");\n $this->email->subject($subject);\n $this->email->message($msg);\n $mail = $this->email->send();\n }else{\n $this->load->library('email');\n $fromemail=\"info@adzjar.com\";\n $toemail = $email;\n $subject = \"Adzjar.com\";\n $msg = $this->load->view('email_template/'.$resdur['05_email_template_arabic'],'',true);\n \n $config=array(\n 'charset'=>'utf-8',\n 'wordwrap'=> TRUE,\n 'mailtype' => 'html'\n );\n \n $this->email->initialize($config);\n $this->email->to($res_mobile['01_email']);\n $this->email->from($fromemail, \"Adzjar.com\");\n $this->email->subject($subject);\n $this->email->message($msg);\n $mail = $this->email->send();\n }\n }\n \n }else if($percentage==100){\n $query = $this->db->where('01_id', $uid)\n ->where('07_id', $resq['07_id'])\n ->where('05_id', $resq['05_id'])\n ->set('07_end_time', $time)\n ->set('07_video_seconds', $percentage)\n ->set('07_status', 1)\n ->set('07_company_charged', 1)\n ->update('watch_history_07');\n \n if($resdur['05_send_sms']==1){\n $query = $this->db->join('preferred_language_11 b','a.01_language = b. 11_id')\n ->where('01_id', $uid)\n ->get('register_01 a');\n $resLang = $query->row_array();\n if($resLang['11_language']==\"English\"){\n $link = $resdur['05_sms_template_english'];\n $hex=\"\";\n for ($i=0; $i<strlen($link); $i++){\n $ord = ord($link[$i]);\n $hexCode = dechex($ord);\n $hex .= substr('0'.$hexCode, -2);\n }\n $url = 'http://62.215.172.203/knews/easy_api_submit.aspx?un=ACC_716-059&pw=QdkXcE7J8xqsj52t&originator=544148534545454C&mobiles_list='.$res_mobile['01_mobile'].'&msg_lang=en&msg_text='.$hex;\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_POST, false);\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n $response = curl_exec($ch);\n curl_close($ch);\n }else{\n $link = $resdur['05_sms_template_arabic'];\n $hex=\"\";\n for ($i=0; $i<strlen($link); $i++){\n $ord = ord($link[$i]);\n $hexCode = dechex($ord);\n $hex .= substr('0'.$hexCode, -2);\n }\n $url = 'http://62.215.172.203/knews/easy_api_submit.aspx?un=ACC_716-059&pw=QdkXcE7J8xqsj52t&originator=544148534545454C&mobiles_list='.$res_mobile['01_mobile'].'&msg_lang=ar&msg_text='.$hex;\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_POST, false);\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n $response = curl_exec($ch);\n print_r($response);\n die();\n curl_close($ch);\n }\n }\n \n if($resdur['05_send_email']==1){\n $query = $this->db->join('preferred_language_11 b','a.01_language = b. 11_id')\n ->where('01_id', $uid)\n ->get('register_01 a');\n $resLang = $query->row_array();\n if($resLang['11_language']==\"English\"){\n $this->load->library('email');\n $fromemail=\"info@adzjar.com\";\n $toemail = $email;\n $subject = \"Adzjar.com\";\n $msg = $this->load->view('email_template/'.$resdur['05_email_template_english'],'',true);\n \n $config=array(\n 'charset'=>'utf-8',\n 'wordwrap'=> TRUE,\n 'mailtype' => 'html'\n );\n \n $this->email->initialize($config);\n $this->email->to($res_mobile['01_email']);\n $this->email->from($fromemail, \"Adzjar.com\");\n $this->email->subject($subject);\n $this->email->message($msg);\n $mail = $this->email->send();\n }else{\n $this->load->library('email');\n $fromemail=\"info@adzjar.com\";\n $toemail = $email;\n $subject = \"Adzjar.com\";\n $msg = $this->load->view('email_template/'.$resdur['05_email_template_arabic'],'',true);\n \n $config=array(\n 'charset'=>'utf-8',\n 'wordwrap'=> TRUE,\n 'mailtype' => 'html'\n );\n \n $this->email->initialize($config);\n $this->email->to($res_mobile['01_email']);\n $this->email->from($fromemail, \"Adzjar.com\");\n $this->email->subject($subject);\n $this->email->message($msg);\n $mail = $this->email->send();\n }\n }\n }else{\n $price = $this->db->where('06_id', $id6)\n ->get('campaign_rules_06');\n $get_price = $price->row_array();\n \n $get_balance = $this->db->select('04_balance_left')\n ->where('04_id', $resdur['04_id'])\n ->get('company_04');\n $balance = $get_balance->row_array();\n $balance = $balance['04_balance_left'] + $get_price['06_price'];\n \n $this->db->where('04_id', $resdur['04_id'])->set('04_balance_left', $balance)->update('company_04');\n \n $remaining_budget = $this->db->select('05_remaining_budget')\n ->where('05_id', $resq['05_id'])\n ->get('campaign_05');\n $rem_budget = $remaining_budget->row_array();\n $rem_budget = $rem_budget['05_remaining_budget'] + $get_price['06_price'];\n \n $this->db->where('05_id', $resq['05_id'])->set('05_remaining_budget', $rem_budget)->update('campaign_05');\n \n $query = $this->db->where('01_id', $uid)\n ->where('07_id', $resq['07_id'])\n ->where('05_id', $resq['05_id'])\n ->set('07_end_time', $time)\n ->set('07_video_seconds', $percentage)\n ->set('07_status', 2)\n ->update('watch_history_07');\n }\n }\n \n if($query){\n return true;\n }else{\n return false;\n }\n }", "private function set_ask( $ask ) {\n\t\t$this->ask = $ask;\n\t}", "function setLifeTime($time);", "public function getSelected() {}", "public function getSelected() {}", "protected static function select()\n {\n }", "public function actionPause($at=false,$in=false)\n {\n // Pause the competition $in number of seconds from now\n }", "public function contAlumExtemp($anio)\n {\n }", "public function setOnselect($onselect) {\n $onselect = $this->escapaAspasSimples($onselect);\n $this->onselect = $onselect;\n }", "public function set_play_offs_qtt($arg) {\n while ($arg * 2 > $this->participants_qtt) { //when there's more play offs than participants\n $arg /= 2;\n }\n if ($arg * 2 < $this->group_qtt) {\n $arg = $this->group_qtt / 2;\n }\n //$this->play_offs_qtt = $arg / 2;\n $this->play_offs_qtt = $arg;\n }", "function motivoDeAnulacionAsig(){\n\t\t$sql = \"SELECT * FROM motivo_movimiento WHERE tipo_motivo='ANULACIÓNAS' and status='1'\";\n\t\treturn $this->ejecuta($sql);\n\t}", "private function advance(): void\n {\n if ($this->rotors[1]->isNotchOpen()) {\n $this->rotors[2]->advance();\n $this->rotors[1]->advance();\n }\n if ($this->rotors[0]->isNotchOpen()) {\n $this->rotors[1]->advance();\n }\n $this->rotors[0]->advance();\n }", "public function click()\n {\n $currentControl = $this->getBounds();\n $this->eyesDriver->getEyes()->addMouseTriggerElement(MouseAction::Click, $this);\n $this->logger->verbose(\"click($currentControl)\");\n\n $this->webElement->click();\n }", "public function ancho($ancho){\r\n\t\tif ($ancho>0) {\r\n\t\t\t$this->ancho=$ancho;\r\n\t\t}\r\n\t}", "public function activarPizarra( ) {\n $this->setComando(self::$PIZARRA_DIGITAL, \"NO_MUTE\");\n $this->setPizarraMuteado(0);\n }", "function form_select_hour($name, $hour, $id='') {\n\n\tglobal $cache2;\n\n\t$id = ifr($id, $name);\n\n\treturn form_select($name, $cache2->getCalendarData('hours'), '', $hour, '', '', '', '', '', $id);\n\n}", "function setStartTime($event, $time) {\n Timer::timers($event, array(\n 'start' => $time,\n 'stopped' => false\n ));\n }", "public function setTime($a = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "public function setTime($a = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "static public function selectInfo($info);", "public function show(Anime $anime)\n {\n return $anime->load(['image']);\n }", "function activate() {\r\r\n }", "public abstract function Ataca();", "public static function agenda() {return new ScheduleViewMode(8);}", "public function toggleShowTimer(): void\n {\n $this->showTimer = !$this->showTimer;\n }", "function touch_time($edit = 1, $for_post = 1, $tab_index = 0, $multi = 0)\n {\n }", "public function pause() {\n if ($this->getLigado() && $this->getTocando()) {\n $this->setTocando(false);\n }\n }", "abstract public function hidupkan();", "public function setTimeOut($method){ }", "function waitCursorOn()\n\t{\n\t\t$this->bWaitCursor = true;\n\t}", "public function activate()\n\t{\n\t\techo \"shot...\\n\";\n\t}", "public function wake()\n {\n }", "public static function userStartOver()\n {\n $askOptions = array(\n 'choices' => '[5 DIGITS]',\n 'timeout' => self::MESSAGE_TIMEOUT,\n 'mode' => self::MODE,\n 'onChoice' => 'BreweryMapUI::userZipEntry',\n 'onBadChoice' => 'BreweryMapUI::userBadChoice',\n 'attempts' => self::ATTEMPTS,\n );\n\n if (INCOMING_NETWORK == 'SMS') {\n $prompt = 'Text us a zip code to find breweries:';\n } else {\n $prompt = 'IM us a zip code to find breweries:';\n }\n \n\n $event = ask($prompt, $askOptions);\n }" ]
[ "0.57078147", "0.5369684", "0.52870595", "0.5245604", "0.5213542", "0.5048881", "0.5033378", "0.4897704", "0.48409954", "0.4829031", "0.482319", "0.48189282", "0.48119298", "0.47978026", "0.4796625", "0.4796625", "0.47961006", "0.47961006", "0.47961006", "0.47890168", "0.47682214", "0.47471857", "0.4729352", "0.46892285", "0.46354073", "0.46115822", "0.46102354", "0.45980352", "0.45917803", "0.45729893", "0.45559496", "0.45431203", "0.4539262", "0.452122", "0.45034462", "0.44877604", "0.4461366", "0.44441965", "0.44361833", "0.44211903", "0.43850765", "0.43795583", "0.43754146", "0.4367794", "0.4360413", "0.43481666", "0.43398008", "0.4336844", "0.4334269", "0.43293846", "0.43137896", "0.43114477", "0.43043122", "0.43025944", "0.4301292", "0.42985183", "0.42965657", "0.42947838", "0.4292911", "0.4292911", "0.4292911", "0.4288334", "0.42874604", "0.42873162", "0.4280196", "0.42801258", "0.42773312", "0.42674944", "0.42574465", "0.42542368", "0.42518225", "0.42518225", "0.42504957", "0.42279816", "0.42255083", "0.4223277", "0.42125535", "0.4212153", "0.42068645", "0.42042413", "0.42036885", "0.4195957", "0.41935593", "0.41818777", "0.4180289", "0.4180289", "0.41802353", "0.41762862", "0.41722757", "0.41664338", "0.41625467", "0.4160607", "0.4160031", "0.41577962", "0.41575265", "0.41547725", "0.4153804", "0.4147488", "0.41449267", "0.4142277" ]
0.46938676
23
display the form for creating a new review if the user is connected else we redirect to the login page
public function new_review($id) { if (Auth::check() === false) { return redirect()->intended('/login'); } $anime = DB::select("SELECT * FROM animes WHERE id = ?", [$id])[0]; return view("new_review",["anime" => $anime]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function reviewformAction()\r\n {\r\n if (!$this->config->isPhaseOpen(Config::REVIEWING_PHASE)) {\r\n $this->view->content = $this->texts->reviewer->review_phase_is_closed;\r\n echo $this->view->render(\"layout\");\r\n return;\r\n }\r\n\r\n\r\n $reviewTbl = new Review();\r\n $this->view->setFile(\"content\", \"reviewform.xml\");\r\n $this->view->setBlock(\"content\", \"SECTION\", \"SECTIONS\");\r\n\r\n\r\n // Extract the blocks from the template\r\n $this->view->setFile(\"review\", \"form_review.xml\");\r\n $this->view->setBlock (\"review\", \"review_mark\", \"review_marks\");\r\n $this->view->setBlock (\"review\", \"review_answer\", \"review_answers\");\r\n\r\n $this->view->selected1 = $this->view->selected2 = $this->view->selected3 = \"\";\r\n\r\n // Actions if the id of a paper is submitted\r\n if (isSet($_REQUEST['id_paper'])) {\r\n $idPaper = $this->getRequest()->getParam(\"id_paper\");\r\n $review = $reviewTbl->find($idPaper, $this->user->id)->current();\r\n\r\n // Check that the paper is REALLY assigned to the reviewer\r\n if (is_object($review)) {\r\n $this->view->review_form = $review->showReview($this->view, false);\r\n }\r\n else {\r\n $this->view->content = \"You do not have access to this paper!<br/>\";\r\n }\r\n }\r\n else {\r\n $this->view->content = \"Invalid action<br/>\";\r\n }\r\n \r\n echo $this->view->render(\"layout\");\r\n }", "function addReviewAction()\n {\n $productId = (int) $this->getRequest()->getParam('product_id');\n $categoryId = (int) $this->getRequest()->getParam('category_id', false);\n \n if ($this->_getSession()->isLoggedIn()) {\n $this->_redirect('review/product/list', array('id' => $productId, 'category' => $categoryId));\n } else {\n $this->_getSession()->setBeforeAuthUrl(Mage::getUrl('review/product/list', \n array('id' => $productId, 'category' => $categoryId)));\n $this->_redirect('customer/account/login');\n }\n return;\n }", "public function confirm()\n {\n $addRecord = $this->reviews->create();\n\n $addRecord->ID = $this->input->post('ID');\n $addRecord->from = $this->input->post('from');\n $addRecord->to = $this->input->post('to');\n $addRecord->review = $this->input->post('review');\n $addRecord->rating = $this->input->post('rating');\n\n // Add validation here once log in is implemented\n // there shouldn't be an anonymous review\n\n // Create review if review doesn't exist\n // else update\n if($this->reviews->exists($addRecord->ID))\n {\n $this->reviews->update($addRecord);\n\n }\n else\n {\n $this->reviews->add($addRecord);\n }\n\n\n redirect('/user_detail/index/'. $addRecord->to);\n }", "public function formLogin() {\n $this->view->addForm();\n }", "public function actionCreate()\n\t{ \n\t\t$this->render('review_create');\n\t}", "public function create()\n {\n $role = auth()->user()->role;\n\n if ($role == 0){\n $courses = Courses::all();\n $registered_courses = RegisteredCourses::where('user_id', auth()->user()->id)->get();\n $data = array(\n 'courses' => $courses,\n 'registered_courses' => $registered_courses\n );\n return view('user.create-review')->with($data);\n }\n else{\n return back()->with('error', 'Access Denied');\n }\n }", "public function loginForm()\n {\n\n if (isset($_SESSION['login_ss'])) {\n header('location: http://localhost/nhi_mvc/index/students');\n exit();\n }\n $this->view->render(\"login/login\");\n }", "public function formLogin(){\n $user = $this->model->connectFromCookie();\n if ($user) {\n header('location:index.php?controller=dashboard');\n } else {\n $this->view->addFormLogin();\n }\n }", "public function index(){\t\n\t\tif ($this->checkLogin('A') == ''){\n\t\t\tredirect('admin');\n\t\t}else {\n\t\t\tredirect('admin/review/display_dispute_list');\n\t\t}\n\t}", "public function create()\n {\n // route to add review page\n return view('cafe.add_review');\n }", "public function categorySubmit(){\n $review = $_POST['review'];\n if($review['rating'] >= 1 && $review['rating'] <= 5 ){\n $review =$this->reviewTable->save($review);\n header('location: /');\n }else{\n header('location: /');\n }\n }", "private function formLogin(){\n\t\tView::show(\"user/login\");\n\t}", "public function login() {\n $login_err = \"<p class='flash_err'>\" . $this->_model->getFlash('login_err') . \"</p>\";\n $create_err = \"<p class='flash_err'>\" . $this->_model->getFlash('create_err') . \"</p>\";\n $create_success = \"<p class='flash_success'>\" . $this->_model->getFlash('create_success') . \"</p>\";\n $this->render('General.Login', compact('login_err', 'create_err', 'create_success'));\n }", "public function actionReview()\n\t{\n\t\t$review = new Review();\n\t\t$review->attributes = $_POST['Review'];\n\t\tif ($review->validate())\n\t\t{\n\t\t\t$noteId = $_POST['note_id'];\n\t\t\t$model = $this->loadModel($noteId);\n\n\t\t\t$model->addReview($review, Yii::app()->user->id);\n\n\t\t\techo $this->renderPartial('_review', array('data'=>$review), true);\n\t\t}\n\t}", "public function create()\n {\n return view(\"reviews/create_review\");\n }", "public function loginAction()\r\n\t{\r\n\t\t$this->setSubTitle($this->loginSubTitle);\r\n\t\t\r\n\t\t$this->view->form = new $this->loginFormClassName();\r\n\t\t\r\n\t\t$this->checkAuth();\r\n\t}", "protected function outputLoginFormIfNotAuthorized() {}", "public function showAddNewRecordPage() {\n\n $permissions = $this->permission();\n $access = FALSE;\n foreach ($permissions as $per) {\n if ($per->permission == 'user-add-show') {\n $access = TRUE;\n break;\n }\n }\n if ($access) {\n $this->data['message'] = $this->session->flashdata('message');\n $this->set_view('user/add_new_record_page',$this->data);\n } else {\n echo \"access denied\";\n }\n }", "function fre_freelancer_review_form() {\n wp_reset_query();\n global $user_ID;\n $status = get_post_status(get_the_ID());\n $bid_accepted = get_post_field('accepted', get_the_ID());\n $freelan_id = (int)get_post_field('post_author', $bid_accepted);\n $comment = get_comments(array(\n 'status' => 'approve',\n 'post_id' => get_the_ID() ,\n 'type' => 'fre_review'\n ));\n $review = isset($_GET['review']) ? (int)$_GET['review'] : 0;\n $status = get_post_status(get_the_ID());\n \n if (empty($comment) && $user_ID == $freelan_id && $review && $status == 'complete') { ?>\n <script type=\"text/javascript\">\n (function($, Views, Models, Collections) {\n $(document).ready(function(){\n this.modal_review = new AE.Views.Modal_Review();\n this.modal_review.openModal();\n });\n })(jQuery, AE.Views, AE.Models, AE.Collections);\n </script>\n\n <?php\n }\n }", "public function loginForm()\n {\n // If already logged in, redirect appropriately\n if ($this->custLoggedIn())\n {\n $this->redirect(\"mainPageCust.php\");\n } elseif ($this->ownerLoggedIn())\n {\n $this->redirect(\"mainPageOwner.php\");\n }\n \n // prepare errors to display if there are any\n $error = array();\n if (!empty($_GET['error']))\n {\n $error_string = urldecode($_GET['error']);\n $error = explode(',', $error_string);\n }\n \n // here the login form view class is loaded and method printHtml() is called \n require_once('views/FormError.class.php');\n require_once('views/LoginForm.class.php');\n $site = new SiteContainer($this->db);\n $form = new LoginForm();\n $error_page = new FormError();\n $site->printHeader();\n $site->printNav();\n $error_page->printHtml($error);\n $form->printHtml();\n $site->printFooter();\n \n }", "public function create()\n {\n return view('review.reviewform');\n }", "public function check_auth_reviews() {\n\t\tif ( isset( $_GET['wp_confirm_reviews_insurance'] ) ) {\n\n\t\t\t//check auth Code\n\t\t\t$comment_id = Helper::check_auth_comment( $_GET['wp_confirm_reviews_insurance'] );\n\t\t\tif ( $comment_id != false ) {\n\n\t\t\t\t//remove meta Key\n\t\t\t\tdelete_comment_meta( $comment_id, 'auth_key' );\n\n\t\t\t\t//Add Validate User Reviews\n\t\t\t\tupdate_comment_meta( $comment_id, 'comment_approve_user', 'yes' );\n\n\t\t\t\t//Show Alert\n\t\t\t\techo '<div class=\"confirm-review-alert\">' . WP_REVIEWS_INSURANCE::$option['email_thanks_text'] . '</div>';\n\t\t\t\techo '\n\t\t\t\t<script>\n\t\t\t\tjQuery(document).ready(function(){\n\t\t\t\t jQuery(\".confirm-review-alert\").delay(1500).fadeOut(\"normal\"); \n\t\t\t\t});\n\t\t\t\t</script>\n\t\t\t';\n\t\t\t}\n\t\t}\n\t}", "public function createAction() {\n\n\t\t//ONLY LOGGED IN USER CAN CREATE REVIEW\n if (!$this->_helper->requireUser()->isValid())\n return;\n\n\t\t//LISTING SUBJECT SHOULD BE SET\n if (!$this->_helper->requireSubject('list_listing')->isValid())\n return;\n\n //GET LISITING\n $this->view->list = $list = Engine_Api::_()->core()->getSubject();\n\n //MAKE FORM\n $this->view->form = $form = new List_Form_Review_Create();\n\n //PROCESS FORM\n if ($this->getRequest()->isPost() && $form->isValid($this->getRequest()->getPost())) {\n $db = Engine_Db_Table::getDefaultAdapter();\n $db->beginTransaction();\n\n try {\n\t\t\t\t//GET VIEWER\n $viewer = Engine_Api::_()->user()->getViewer();\n\n\t\t\t\t//GET FROM VALUES\n $values = $form->getValues();\n $values['owner_id'] = $viewer->getIdentity();\n $values['listing_id'] = $list->getIdentity();\n\n //CREATE REVIEW\n $reviewTable = Engine_Api::_()->getDbtable('reviews', 'list');\n $review = $reviewTable->createRow();\n $review->setFromArray($values);\n $review->save();\n\n\t\t\t\t//INCREASE REVIEW COUNT\n\t\t\t\t$list->review_count++;\n\t\t\t\t$list->save();\n\n\t\t\t\t//ADD ACTIVITY\n $activityApi = Engine_Api::_()->getDbtable('actions', 'activity');\n $subject = Engine_Api::_()->core()->getSubject();\n $subjectOwner = $subject->getOwner('user');\n $action = $activityApi->addActivity($viewer, $subject, 'review_list', '', array(\n 'title' => $subject->getTitle(),\n ));\n if ($action != null) {\n Engine_Api::_()->getDbtable('actions', 'activity')->attachActivity($action, $review);\n }\n\n $db->commit();\n\t\t\t\t$content_id = $this->_getParam('content_id');\n $url = $this->_helper->url->url(array('listing_id' => $list->getIdentity(), 'user_id' => $list->owner_id, 'slug' => $list->getSlug(), 'tab' => $content_id), 'list_entry_view', true);\n\n $this->_forward('success', 'utility', 'core', array(\n 'parentRefresh' => 3,\n 'parentRedirect' => $url,\n 'parentRedirectTime' => 1,\n 'messages' => array('Your Review has been posted successfully.')\n ));\n } catch (Exception $e) {\n $db->rollBack();\n throw $e;\n }\n }\n }", "public function review($id)\n {\n // Get all the things.\n $application = Application::getUserApplication($id);\n $profile = Profile::getUserProfile($id);\n $scholarship = Scholarship::getScholarshipLabels();\n\n $vars = (object) $this->settings->getSpecifiedSettingsVars(['application_submit_help_text']);\n\n $prof_complete = Profile::isComplete(Auth::user()->id);\n if (!$prof_complete) {\n return Redirect::route('status')->with('flash_message', ['text' => 'Please go back and answer all required questions in ' . link_to_route('profile.create', 'basic info.'), 'class' => '-warning']);\n }\n\n return View::make('status.review', compact('application', 'profile', 'scholarship', 'vars'));\n }", "public function newAction()\n {\n $type = $this->session->get('auth')['type'];\n $this->view->type =$type;\n if( $type == 1 || $type == 2 ){\n $user = User::Find(array(\"status = '1'\")); \n $this->view->user = $user; \n }else{\n $id = $this->session->get('auth')['id'];\n $this->view->iduser = $user->iduser;\n $this->tag->setDefault(\"iduser\", $id);\n } \n }", "public function create()\n {\n //\n if ((Session::get('grandidsession')===null)){\n return view('admin.login');\n }\n \n return view('admin.create_user');\n }", "public function create()\n {\n return view('reviews.create'); //\n }", "public function add() {\n $film = Input::get('film');\n $user = Input::get('user');\n $review = Input::get('review');\n $vote = Input::get('vote');\n $fbshare = Input::get('fbshare');\n\n $check = $this->reviewCheck($film);\n\n if ($check) {\n \n } else if (!$review == \"\") {\n // inserts the review\n $rev = new Review; // revie instance\n $rev->fr_fl_id = $film;\n $rev->fr_usr_id = Auth::user()->id;\n $rev->fr_review = $review;\n $rev->fr_vote = $vote;\n $rev->fr_date = \\time();\n $rev->save(); // saves review\n // insert a new user actions\n $act = new Activity; // notification instance\n $act->type_id = '2'; // activity type 2 for review\n $act->subject_id = Auth::user()->id; // id of the user\n $act->object_type = 'film'; // type of object\n $act->object_id = $film; // id of the object\n $act->action_date = \\time(); // time of the activity\n $act->save(); // saves activity\n //Deleting the rating action\n\n $delete = $this->deleteRatingAction($film);\n\n // Sending mails to all followers \n // Film id & review JSON\n $this->newReviewMail($film, $rev);\n\n //posts on fb if access token avaiable\n if($fbshare) {\n if (Auth::user()->fb_access_token) {\n $fb = new FacebookController();\n $execute = $fb->postFbReview($film, $review, $vote, Auth::user()->fb_uid, Auth::user()->fb_access_token, $fbshare);\n }\n }\n }\n\n\n // gets the review details from the given id\n $latest = DB::table('film_review')\n ->where('fr_usr_id', Auth::user()->id)\n ->orderBy('fr_id', 'desc')\n ->first();\n\n $user = User::find(Auth::user()->id);\n\n return view('reviews.add', compact('latest', 'user'));\n }", "public function create()\n\t{\n\t\tif ( Auth::check() ) \n\t\t{\n\n\t\t\t$this->showLayoutWithTitle(\n\t\t\t\t\tView::make('questions.create'),\n\t\t\t\t\t'Edit Question',\n\t\t\t\t\t$this->pageTitles['create']\n\t\t\t);\n\n\t\t} \n\n\t\telse return Redirect::route('index')->with('message', 'Please login to post a question')\n\t\t\t\t\t\t\t\t\t\t\t->with('messageType', 'error');\n\t}", "public function create() {\n \n if(session(\"token\")==\"Unauthorized\"){\n return view(\"connexion.login\");\n }\n return view(\"examen.form_ajouter\");\n }", "public function showLoginForm()\n {\n return $this->socialiteDriver()->redirect();\n }", "public function modAdd() {\n\n $film = Input::get('film');\n $user = Input::get('user');\n $review = Input::get('review');\n $vote = Input::get('vote');\n\t\t\n\t\t$check = DB::table('film_review')\n\t\t\t\t\t->where('fr_usr_id', $user)\n\t\t\t\t\t->where('fr_fl_id', $film)\n\t\t\t\t\t->first();\n\n\t\tif ($check) {\n\t\t\n\t\t} else {\n\t if (!$review == \"\") {\n\t\t\t\t// inserts the review\n\t\t\t\t$rev = new Review; // revie instance\n\t\t\t\t$rev->fr_fl_id = $film;\n\t\t\t\t$rev->fr_usr_id = $user;\n\t\t\t\t$rev->fr_review = $review;\n\t\t\t\t$rev->fr_vote = $vote;\n\t\t\t\t$rev->fr_date = \\time();\n\t\t\t\t$rev->save(); // saves review\n\t\t\t\t// insert a new user actions\n\t\t\t\t$act = new Activity; // notification instance\n\t\t\t\t$act->type_id = '2'; // activity type 2 for review\n\t\t\t\t$act->subject_id = $user; // id of the user\n\t\t\t\t$act->object_type = 'film'; // type of object \n\t\t\t\t$act->object_id = $film; // id of the object\n\t\t\t\t$act->action_date = \\time(); // time of the activity \n\t\t\t\t$act->save(); // saves activity \n\t\t\t}\t\t\n\t\t}\n\n // gets the review details from the given id\n $latest = DB::table('film_review')\n ->where('fr_usr_id', $user)\n ->orderBy('fr_id', 'desc')\n ->first();\n\n $user = user::find($user);\n\n return view('reviews.add', compact('latest', 'user'));\n }", "public function login()\n\t{\n\t\tif (isLogin()) {\n\t\t\tredirect('/backoffice');\n\t\t} else {\n\t\t\t$this->display(\n\t\t\t\t'backoffice/login.html.twig'\n\t\t\t);\n\t\t}\n\n\t}", "public function actionReview(){\r\n $user = $_REQUEST['pro'];\r\n $list = MvCouiManager::getReview($user);\r\n $aclist = MvCouiManager::getAcreview($user);\r\n $nolist = MvCouiManager::getNoreview($user);\r\n $dellist = MvCouiManager::getDelreview();\r\n $this->render('review',array('list'=>$list,'aclist'=>$aclist,'nolist'=>$nolist,'dellist'=>$dellist));\r\n }", "public function showForm()\n\t{\n echo view($this->config->views['login']);\n\t}", "function add()\n {\n $this->load->model('user/user_model', 'user');\n\n $this->logged_in = $this->flexi_auth->is_logged_in();\n\n if (!$this->logged_in) {\n # if not logged show error message\n $dataArr = array();\n $pageArr = array('controller' => 'review', 'view' => 'error');\n $this->ajax->render($pageArr, $dataArr);\n }\n $receiver_id = intval($this->input->post('receiver_id'));\n $score = intval($this->input->post('score'));\n $ride_id = intval($this->input->post('hdn_ride_id'));\n\n if (trim($this->input->post('stage')) == 'NEW') {\n $dataArr = array(\n 'receiver_id' => $receiver_id\n );\n $pageArr = array('controller' => 'review', 'view' => 'new_review');\n $this->ajax->render($pageArr, $dataArr);\n }\n\n # Get posted data\n $user_id = $this->flexi_auth->get_user_id();\n\n $review_text = trim($this->input->post('text'));\n\n if ($receiver_id == $user_id) {\n $dataArr = array();\n $pageArr = array('controller' => 'review', 'view' => 'error');\n $this->ajax->render($pageArr, $dataArr);\n }\n\n if (!$review_text) {\n $dataArr = array();\n $pageArr = array('controller' => 'review', 'view' => 'error');\n $this->ajax->render($pageArr, $dataArr);\n }\n\n $review_status = $this->user->getReviewStatus($ride_id, $user_id, $receiver_id);\n if (!$review_status) {\n $dataArr = array();\n $pageArr = array('controller' => 'review', 'view' => 'error');\n $this->ajax->render($pageArr, $dataArr);\n }\n\n $mesageDtlArr = array(\n 'receiver_id' => $receiver_id,\n 'sender_id' => $user_id,\n 'review_text' => $review_text,\n 'rating' => $score\n );\n $review_id = $this->review->addNewReview($mesageDtlArr);\n if (!empty($review_id) && is_numeric($review_id)) {\n $sumCountArr = $this->review->getSumAndCountOfRating($receiver_id);\n $average_rating = 0;\n if (!empty($sumCountArr)) {\n $unrouded_val = ($sumCountArr['Sum']) / (($sumCountArr['Count'] / 0.5) * 0.5);\n $average_rating = round($unrouded_val * 2) / 2;\n }\n\n $ratingArr = array('upro_rating' => $average_rating);\n $update_rating = $this->review->updateUserCommonRating($receiver_id, $ratingArr);\n\n $reviewStatusArr = array(\n 'ride_id' => $ride_id,\n 'sender_id' => $user_id,\n 'receiver_id' => $receiver_id,\n 'status' => 1\n );\n $update_review_status = $this->user->updateReviewStatus($reviewStatusArr);\n }\n $dataArr = array(\n 'review_id' => $review_id,\n 'receiver_id' => $receiver_id\n );\n $pageArr = array('controller' => 'review', 'view' => 'new_review');\n $this->ajax->render($pageArr, $dataArr);\n }", "public function login(){\n \t\t//TODO redirect if user already logged in\n \t\t//TODO Seut up a form\n \t\t//TODO Try to log in\n \t\t//TODO Redirect\n \t\t//TODO Error message\n \t\t//TODO Set subview and load layout\n\n \t}", "public function create()\n {\n if(!Auth::guard('webUser')->check()){\n return view('web.login');\n }\n return view('web.article.create');\n }", "public function create()\n {\n if(Auth::check())\n {\n return view('niveaux.create');\n\n }\n return view('auth.login');\n }", "function add() {\n RR_Session::start();\n $get = RR_Session::get('loggedin');\n if ($get == true) {\n // blijf op de pagina\n // en laad de admin view\n $this->validateUser(true, 'newuser');\n } else {\n // anders redirect trug naar de login pagina\n $this->validateUser(false);\n }\n }", "function displayForm() {\n\t\t$session = new SessionManager();\n\t\t$session->sessionLoad();\n\t\t$categorys = new CategoryModel();\n\t\t$rows = $categorys->readAll();\n\t\t$view = new View(\"view/uploadPic.php\");\n\t\t$upload_error = \"\";\n\t\tif( isset($_GET[\"error\"])){\n\t\t\t$upload_error = $_GET[\"error\"];\n\t\t}\n\t\t$view->upload_error = $upload_error;\n\t\t$view->rows = $rows;\n\t\t$view->isLogdin = $session->getIsLogdin();\n\t\t$view->userName = $session->username;\n\t\t$view->display();\n\t}", "function formConnexion() {\n\t\tif (isset($_SESSION['id'])) {\n\t\t\theader(\"Location: ?module=accueil\");\n\t\t\texit();\n\t\t}\n\t\telse\n\t\t\t$this -> vue -> afficheConnexion('');\n\t}", "public function actionCreate()\n {\n $model = new Reviews();\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if (($data = Yii::app()->getRequest()->getPost('Reviews')) !== null) {\n \n $model->setAttributes($data);\n\n if ($model->save()) {\n \n Yii::app()->user->setFlash(\n yupe\\widgets\\YFlashMessages::SUCCESS_MESSAGE,\n Yii::t($this->aliasModule, 'Reviews article was created!')\n );\n\n $this->redirect(\n (array) Yii::app()->getRequest()->getPost(\n 'submit-type', ['create']\n )\n );\n }\n }\n\n $this->render('create', ['model' => $model]);\n }", "public function createNew() {\n\t\t$data['session'] = $this->getSession();\n\t\t$this -> load -> view('private/createNew', $data);\n\t}", "public function post_professor(){\n $params = array(\n 'net_id' => Input::get('net_id'),\n 'email_addr' => Input::get('email_addr'),\n 'passwd' => Hash::make(Input::get('passwd'))\n ); \n\n // Make new user and add to users table\n $user = User::create(array('net_id' => $params['net_id'], 'passwd' => $params['passwd']));\n $user->save();\n\n $prof = new Professor;\n $prof->fill($params); \n $prof->save();\n\n Auth::login($user);\n\n // TO DO: CHANGE THIS TO SOMETHING ELSE\n return Redirect::to('special/prof_view_requests');\n }", "public function draw_form() {\n\t\tglobal $adv_rvws_tbl, $dbh, $api_load;\n\t\t\n\t\t$reviews_form = '<!-- New Reviews Area -->\n <table border=\"0\" align=\"center\" cellpadding=\"4\" cellspacing=\"0\">\n <tr>\n <td>\n\n<table align=\"center\" class=\"vote_form\">\n<tr>\n<td>\n\n<table align=\"center\" class=\"vote_form_area\">';\n\t\t\n\t\tif (isset($_SESSION['customer_logged_in'])) {\n\t\t\t\n\t\t\t// first check to see if the customer did not already review the advertiser\n\t\t\t\t\n\t\t\t$values = array();\n\t\t\t$values[] = (int)$_GET['loc_id'];\n\t\t\t$values[] = (int)$_SESSION['customer_id'];\n\t\t\t$sql_query = \"SELECT\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t FROM\n\t\t\t\t\t\t\tadvertiser_reviews\n\t\t\t\t\t\t WHERE\n\t\t\t\t\t\t\tadvertiser_id = ?\n\t\t\t\t\t\t AND\n\t\t\t\t\t\t \tcustomer_id = ?\";\n\t\t\tif(isset($_GET['alt_loc_id'])){\n\t\t\t $sql_query .= \"\n\t\t\t\t\t\t\tAND\n\t\t\t\t\t\t\t advertiser_alt_id = ?\";\n\t\t\t $values[] = (int)$_GET['alt_loc_id'];\n\t\t\t} else {\n\t\t\t $sql_query .= \"\n\t\t\t\t\t\t\tAND\n\t\t\t\t\t\t\t (advertiser_alt_id is null OR advertiser_alt_id = 0)\";\t\t\t\t\n\t\t\t}\n\t\t\t$sql_query .= \"\n\t\t\t\t\t\t LIMIT 1;\";\n\t\t\t$stmt = $dbh->prepare($sql_query);\t\t\t\t\t \n\t\t\t$result = $stmt->execute($values);\n\t\t\t$reviews = $result->fetchRow(MDB2_FETCHMODE_ASSOC);\n\n\t\t\tif (count($reviews) == 0) {\n\t\t\t\t$reviews_form .= '<tr><td>\n\t\t\t\t<table width=\"100%\" id=\"rating_tbl\">\n\t\t\t\t\t<tr>\n\t\t\t\t <th valign=\"top\">Rating</th>\n\t\t\t\t <td><input name=\"star\" type=\"radio\" class=\"star\" value=\"1\"/>\n\t\t\t\t\t<input name=\"star\" type=\"radio\" class=\"star\" value=\"2\"/>\n\t\t\t\t\t<input name=\"star\" type=\"radio\" class=\"star\" value=\"3\"/>\n\t\t\t\t\t<input name=\"star\" type=\"radio\" class=\"star\" value=\"4\"/>\n\t\t\t\t\t<input name=\"star\" type=\"radio\" class=\"star\" value=\"5\"/></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t <th valign=\"top\">Review</th>\n\t\t\t\t <td><textarea id=\"word_count\" name=\"review_txt\" class=\"review_txt\" cols=\"30\" rows=\"3\"></textarea><input id=\"advert_id\" name=\"advert_id\" type=\"hidden\" value=\"'.(int)$_GET['loc_id'].'\" /><input id=\"advert_alt_id\" name=\"advert_alt_id\" type=\"hidden\" value=\"'.(int)$_GET['alt_loc_id'].'\" /></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t <th>Max Characters: </th><td>300</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t <th>Remaining: </th><td id=\"counter\">300</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t <td colspan=\"2\" align=\"center\"><input id=\"rev_sub_btn\" class=\"submit_btn\" type=\"button\" name=\"Submit\" id=\"Submit\" value=\"Submit\" /></td>\n\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t\t</td></tr>';\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t$reviews_form .= '<tr>\n\t\t\t\t <td colspan=\"2\" align=\"center\">You appear to have already written a review for this advertiser.</td>\n\t\t\t\t</tr>';\n\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\t$reviews_form .= '<tr>\n\t\t\t <td colspan=\"2\" align=\"center\"><a '.($api_load->status == 1 ? 'href=\"'.OVERRIDE_SITE_URL.'account_login_page.deal\"' : 'href=\"javascript:void(0);\" onclick=\"open_login_frm();\"').'>You must be logged in to write a review of this advertiser.</a></td>\n\t\t\t</tr>';\n\t\t\t\n\t\t}\n\t\t$reviews_form .= '</table></td></tr>';\n\t\t$reviews_form .= $this->list_reviews();\n\t\t\n\t\t$reviews_form .= '</table></td>\n </tr>\n </table>\n <!-- /New Reviews Area -->';\n\t\n\treturn $reviews_form;\n\t}", "public function displayForm() {\n if (isset($_SESSION['user']) && ($_SESSION['level'] == \"admin\")){\n $this->page .= \"<h2>J'ajoute un utilisateur via un formulaire :</h2>\";\n $this->page .= \"<a class='btn btn-primary col-12 mt-3' href='index.php?controller=user&action=start'>Retour en arrière</a>\";\n $this->page .= file_get_contents('template/formUser.html');\n $this->page = str_replace('{action}','addDB', $this->page);\n $this->page = str_replace('{id}','', $this->page);\n $this->page = str_replace('{username}','', $this->page);\n $this->page = str_replace('{password}','', $this->page);\n $this->page = str_replace('{firstname}','', $this->page);\n $this->page = str_replace('{lastname}','', $this->page);\n $this->displayPage();\n } else {\n header ('location:index.php?controller=login&action=formLog');\n }\n }", "public function showLoginForm()\n {\n if(Agent::isTable() || Agent::isMobile()){\n return view('errors.desktop-only');\n }\n else{\n return view('auth.login');\n }\n }", "function Submit(){\n\t\t\tif($this->Productmodel->LoginCheck($_POST[\"username\"],$_POST[\"password\"])>0){\n\t\t\t\t$this->session->set_userdata(\"username\",$_POST[\"username\"]);\n\t\t\t\tredirect(base_url() . \"home\");\n\t\t\t}else{\n\t\t\t\t// $data[\"error\"]=\"Username & Password Wrong\";\n\t\t\t\tredirect(base_url() . 'home/?error2');\n\t\t\t}\n\t\t}", "public function authDoView(){\n if(!$this->authUser()){\n echo '{\"status\":-1,\"result\":\"/user/login?prePage='.$_SERVER['HTTP_REFERER'].'\"}';\n exit();\n }\n }", "public function addReview() {\n\t\t/*if(checkLogin() === true) {\n\t\t\theader('Location: ' . base_url());\n\t\t\texit;\n\t\t}*/\n\t\t\n\t\t// get the establishment id\n\t\t$establishmentID = $this->uri->segment(3);\n\t\t// get the type of review to create\n\t\t$type = $this->uri->segment(4);\n\t\t\n\t\tif(empty($establishmentID) || empty($type)) {\n\t\t\theader('Location: ' . base_url());\n\t\t\texit;\n\t\t}\n\t\t\n\t\t// load the rating model\n\t\t$this->load->model('RatingModel', '', true);\n\t\t// load the rating library\n\t\t$this->load->library('reviews');\n\t\t\n\t\t// holder for screen display\n\t\t$output = '';\n\t\tswitch($type) {\n\t\t\tcase 'beer':\n\t\t\t\t// get the beer id\n\t\t\t\t$beerID = $this->uri->segment(5);\n\t\t\t\t// check if this value is empty\n\t\t\t\tif(empty($beerID)) {\n\t\t\t\t\theader('Location: ' . base_url());\n\t\t\t\t\texit;\n\t\t\t\t} else {\n\t\t\t\t\t// load the beer model\n\t\t\t\t\t$this->load->model('BeerModel', '', true);\n\t\t\t\t\t// load the beer library\n\t\t\t\t\t$this->load->library('beers');\n\t\t\t\t\t\n\t\t\t\t\t// get the information for the particular beer\n\t\t\t\t\t$beer = $this->beers->showBeerRatings($beerID);\n\t\t\t\t\t// set the page seo information\n\t\t\t\t\t$this->_data['seo'] = array_slice($beer, 0, 3);\n\t\t\t\t\t\n\t\t\t\t\t// load the libraries\n\t\t\t\t\t$this->load->library('form_validation');\t\t\n\t\t\t\n\t\t\t\t\t// run the validation and return the result\n\t\t\t\t\tif($this->form_validation->run('addReviewBeer') == false) {\t\n\t\t\t\t\t\t// show the form\t\t\t\t\t\n\t\t\t\t\t\t// load the packaging model\n\t\t\t\t\t\t$this->load->model('PackageModel', '', true);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// get the user info from the session\n\t\t\t\t\t\t$userInfo = $this->session->userdata('userInfo');\n\t\t\t\t\t\t// create the configuration values for the form\n\t\t\t\t\t\t$config = array(\n\t\t\t\t\t\t\t'establishmentID' => $establishmentID\n\t\t\t\t\t\t\t, 'beerID' => $beerID\n\t\t\t\t\t\t\t, 'userID' => $userInfo['id']\n\t\t\t\t\t\t\t, 'packages' => $this->PackageModel->getAllForDropDown()\n\t\t\t\t\t\t\t, 'type' => $type\n\t\t\t\t\t\t);\n\t\t\t\t\t\t// create the form\n\t\t\t\t\t\t$output = $this->reviews->createForm($config);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// get the user info from the session\n\t\t\t\t\t\t$userInfo = $this->session->userdata('userInfo');\n\t\t\t\t\t\t// determine if this is an updated review\n\t\t\t\t\t\t$re = $this->RatingModel->getRatingsByUserIDEstablishmentID($userInfo['id'], $establishmentID, $beerID);\n\t\t\t\t\t\t// if above is empty, then this is an insert\n\t\t\t\t\t\t// otherwise it is an update of a current review\n\t\t\t\t\t\tif(empty($re)) {\n\t\t\t\t\t\t\t// get an array of information to pass\n\t\t\t\t\t\t\t$data = array(\n\t\t\t\t\t\t\t\t'establishmentID' => $establishmentID\n\t\t\t\t\t\t\t\t, 'beerID' => $beerID\n\t\t\t\t\t\t\t\t, 'userID' => $userInfo['id']\n\t\t\t\t\t\t\t\t, 'packageID' => $_POST['slt_package']\n\t\t\t\t\t\t\t\t, 'dateTasted' => $_POST['txt_dateTasted']\n\t\t\t\t\t\t\t\t, 'color' => $_POST['txt_color']\n\t\t\t\t\t\t\t\t, 'rating' => $_POST['slt_rating']\n\t\t\t\t\t\t\t\t, 'comments' => $_POST['ttr_comments']\n\t\t\t\t\t\t\t\t, 'haveAnother' => $_POST['slt_haveAnother']\n\t\t\t\t\t\t\t\t, 'price' => $_POST['txt_price']\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t// save the information\n\t\t\t\t\t\t\t$this->RatingModel->createRating($data);\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// get an array of information to pass\n\t\t\t\t\t\t\t$data = array(\n\t\t\t\t\t\t\t\t'id' => $re['id']\n\t\t\t\t\t\t\t\t, 'packageID' => $_POST['slt_package']\n\t\t\t\t\t\t\t\t, 'dateTasted' => $_POST['txt_dateTasted']\n\t\t\t\t\t\t\t\t, 'color' => $_POST['txt_color']\n\t\t\t\t\t\t\t\t, 'rating' => $_POST['slt_rating']\n\t\t\t\t\t\t\t\t, 'comments' => $_POST['ttr_comments']\n\t\t\t\t\t\t\t\t, 'haveAnother' => $_POST['slt_haveAnother']\n\t\t\t\t\t\t\t\t, 'price' => $_POST['txt_price']\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t// update the information\n\t\t\t\t\t\t\t$this->RatingModel->updateRatingByID($data);\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\theader('Location: ' . base_url() . 'beer/review/' . $beerID);\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\t\t\n\t\t\n\t\t// set the output for the screen\n\t\t$this->_data['output'] = $output;\t\t\n\t\t\n\t\t// get the information ready for display\n\t\t$arr_load = array(\n\t\t\t'pages' => array('header' => true, 'review' => true, 'footer' => true)\n\t\t\t, 'data' => $this->_data\n\t\t);\t\t\t\t\n\t\t// load all parts for the view\n\t\t$this->doLoad($arr_load);\n\t}", "private function insertUser(){\n\t\t$data['tipoUsuario'] = Seguridad::getTipo();\n\t\tView::show(\"user/insertForm\", $data);\n\t}", "public function create()\n {\n return view('reviews.create');\n }", "public function create()\n {\n return view('reviews.create');\n }", "public function store(User $pro)\n {\n $user_id = request()->user()->id;\n Review::create([\n 'customer_id'=> $user_id,\n 'professional_id'=> $pro->id,\n 'rating'=> request('rating'),\n 'comment'=> request('comment'), \n ]);\n\n // redirect to viewing professionals profiles\n }", "public function add_stories_form(){\r\r\n\t\tif ($this->checkLogin('A') == ''){\r\r\n\t\t\tredirect('admin');\r\r\n\t\t}else {\r\r\n\t\t\t$condition = array('user_id' => '0');\r\r\n\t\t\t$this->data['added_product'] = $this->stories_model->get_all_details(PRODUCT,$condition);\r\r\n\t\t\t$this->data['heading'] = 'Add New stories';\r\r\n\t\t\t$this->load->view('admin/stories/add_stories',$this->data);\r\r\n\t\t}\r\r\n\t}", "public function loginPost(){\n\t\t\tif($this->modelLogin())\n\t\t\t\techo \"<script>location.href='home';</script>\";\n\t\t\telse\n\t\t\t\techo \"<script>location.href='login/register-fail';</script>\";\n\t\t}", "public function create()\n {\n $products = Product::all();\n return view(\"reviews.reviewscreate\", [\n \"products\" => $products,\n ]);\n }", "public function actionAdmin()\n\t{ \n\t\t$this->render('review_admin');\n\t}", "public static function index() {\n if (Auth::hasUser()) {\n redirect('/');\n } else {\n $login_page = new View('forms/signin.php');\n $login_page->render();\n }\n }", "public function actionLogin()\n {\n $this->view->registerCssFile('/css/ShortPage.css');\n if (!Yii::$app->user->isGuest) {\n // return $this->goHome();\n return Yii::$app->getResponse()->redirect('../price');\n }\n\n $model = new LoginForm();\n if ($model->load(Yii::$app->request->post()) && $model->login()) {\n return $this->goBack();\n } else {\n return $this->render('login', [\n 'model' => $model,\n ]);\n }\n }", "public function login(){\n \n $this->data[\"title_tag\"]=\"Lobster | Accounts | Login\";\n \n $this->view(\"accounts/login\",$this->data);\n }", "public function showLoginForm() {\n if (Auth::guard('web')->check()) {\n return redirect()->route('user.dashboard');\n }\n\n if (Auth::guard('division')->check()) {\n return redirect()->route('division.dashboard');\n }\n return view('division.division_login');\n }", "function employer_review_action() {\n global $user_ID, $current_user;\n $args = $_POST;\n \n if (!isset($args['project_id'])) {\n wp_send_json(array(\n 'success' => false,\n 'msg' => __('Invalid project id.', ET_DOMAIN)\n ));\n }\n \n $project_id = $args['project_id'];\n \n $author_id = (int)get_post_field('post_author', $project_id);\n \n $result = array(\n 'succes' => false,\n 'msg' => __('You can\\'t not access this action.', ET_DOMAIN)\n );\n \n $bid_id_accepted = get_post_meta($project_id, 'accepted', true);\n \n $author_bid = get_post_field('post_author', $bid_id_accepted);\n \n $profile_id = get_user_meta($author_bid, 'user_profile_id', true);\n \n /*\n * validate data\n */\n if (!$bid_id_accepted) {\n $result = array(\n 'succes' => false,\n 'msg' => __('Please assign project before complete.', ET_DOMAIN)\n );\n wp_send_json($result);\n }\n \n if (!isset($args['score']) || empty($args['score'])) {\n $result = array(\n 'succes' => false,\n 'msg' => __('You have to rate for this profile.', ET_DOMAIN)\n );\n wp_send_json($result);\n }\n if (!isset($args['comment_content']) || empty($args['comment_content'])) {\n $result = array(\n 'succes' => false,\n 'msg' => __('Please post a review for this freelancer.', ET_DOMAIN)\n );\n wp_send_json($result);\n }\n \n /*\n * check permission for review action\n */\n \n if (!$user_ID || $user_ID !== $author_id) wp_send_json($result);\n \n $args['comment_post_ID'] = $bid_id_accepted;\n $args['comment_approved'] = 1;\n \n // insert review\n $review = Fre_Review::get_instance();\n $comment = $review->insert($args);\n \n if (!is_wp_error($comment)) {\n \n /**\n * fire an acction after project owner complete his project\n * @param int $project_id\n * @param Array $args\n * @since v1.2\n * @author Dakachi\n */\n do_action('fre_complete_project', $project_id, $args);\n \n /**\n * update project, bid, user rating scrore after review a project\n */\n $this->update_after_empoyer_review($project_id, $comment);\n \n $project_title = get_the_title($project_id);\n $freelancer_name = get_the_author_meta('display_name', $author_bid);\n wp_send_json(array(\n 'success' => true,\n 'msg' => sprintf(__(\"You have completed project %s and reviewed %s.\", ET_DOMAIN) , $project_title, $freelancer_name)\n ));\n } else {\n wp_send_json(array(\n 'success' => false,\n 'msg' => $comment->get_error_message()\n ));\n }\n }", "public function login()\n {\n $this->renderView('login');\n }", "public function create()\n {\n $user = $this->userRepository->pluck('name','id');\n $market = $this->marketRepository->pluck('name','id');\n\n $hasCustomField = in_array($this->marketReviewRepository->model(),setting('custom_field_models',[]));\n if($hasCustomField){\n $customFields = $this->customFieldRepository->findByField('custom_field_model', $this->marketReviewRepository->model());\n $html = generateCustomField($customFields);\n }\n return view('market_reviews.create')->with(\"customFields\", isset($html) ? $html : false)->with(\"user\",$user)->with(\"market\",$market);\n }", "function postReview() {\n global $dbLink;\n $courseid = mysqli_real_escape_string($dbLink, $_POST['courseid']);\n $username = $_SESSION['username'];\n\t$reviewText = mysqli_real_escape_string($dbLink, $_POST['textReview']);\n\t$userid = $_SESSION['userid'];\n\t$postrate = 0;\n\t$date = date(\"d/m/Y\");\n\tif(isset($_POST['semester'])){\n\t\t$semester = $_POST['semester'] . ' ' . $_POST['year'];\n\t}\n $sqlString = \"INSERT INTO reviews(course_id, user_name, review_text, user_id, review_date, course_rating, course_semester)\n VALUES ('\" . $courseid .\"',\n\t\t\t\t '\" . $username .\"',\n\t\t\t\t '\" . $reviewText .\"',\n\t\t\t\t '\" . $userid .\"',\n\t\t\t\t '\" . $date .\"',\n\t\t\t\t '\" . $postrate .\"',\n\t\t\t\t '\" . $semester .\"')\";\n\n mysqli_query($dbLink, $sqlString) or die(\"Could not register new post..\" . mysqli_error($dbLink));\n\techo '<h3>Success!</h3>';\n\n\tif(isset($courseid )){\n\theader('Location: course.php?cid=' . $courseid .'');\n\t}else {\n\t\theader('Location: reviews.php');\n\t}\n}", "public function create() {\n\n return view('reviews.create');\n }", "public function create()\n {\n $creators = User::pluck('name', 'id')->all();\n $services = Service::pluck('name', 'id')->all();\n\n return view('reviews.create', compact('creators', 'services'));\n }", "public function create($movie)\n {\n// if(!auth()->check()){\n//// return 'go away!';\n// return redirect(action('ReviewController@index', $movie));\n// }\n\n $movie = Movie::findOrFail($movie);\n\n return view('reviews.create', compact('movie'));\n }", "public function create()\n {\n $user = Resume::where('user_id', '=', auth()->id())->first();\n\n if($user===null){\n return view('Candidate.resume');\n }else{\n return view('Candidate.editResume')->with('resume',Resume::where('user_id', '=', auth()->id())->first());\n\n }\n }", "public function store(CreateReviewFormRequest $request)\n {\n $review = new Review;\n $review->title = $request->get('title');\n $review->review = $request->get('review');\n $review->review_score = (int)$request->get('review_score');\n $review->game_id = (int)$request->get('gameId');\n $review->user_id = (int)\\Auth::user()->id;\n $review->save();\n\n return view('reviews.store');\n }", "public function create()\n {\n return view('CreateReview');\n }", "public function login()\n {\n $this->form_validation->set_rules($this->validation_rules);\n \n // If the validation worked, or the user is already logged in\n if ($this->form_validation->run() || $this->isAdmin() == true)\n {\n\n //The Form is valid so the user is recorded into the CI session via _checkLogin()\n redirect('admin/pages');\n }else{\n\n // Invalid form so it is redisplayed containing your data\n $this->aData['sTitle'] = \"Administration du site web\";\n $this->aData['sBaseURL'] = $this->sBaseUrl;\n $aNav[] = anchor('agence_web', 'Retournez sur le site');\n\n $this->template->set_title(\"Administration du site web\")\n ->set_menu($aNav)\n ->build('admin/login_view', $this->aData);\n }\n }", "public function create()\n {\n $admin = 0 ;\n if (Auth::user()->adminLevel == $admin)\n {\n return 'You are on the create page from the @ admin section';\n }\n else\n {\n $finance = 1;\n $sales = 2;\n $development = 3;\n\n if (Auth::user()->adminLevel == $admin) {\n return redirect(action('adminpanelController@index'));\n } elseif (Auth::user()->adminLevel == $finance) {\n return redirect(action('financeController@index'));\n } elseif (Auth::user()->adminLevel == $sales) {\n return redirect(action('salesController@index'));\n } elseif (Auth::user()->adminLevel == $development) {\n return redirect(action('developmentController@index'));\n } else {\n return view('auth/login');\n }\n }\n }", "public function store()\n {\n\n $subjectid = Input::get('id');\n $user = Auth::user();\n $review = Input::get('review');\n\n //storing the data in the respected table\n\n $this->review->user_id = $user->id;\n $this->review->subject_id = $subjectid;\n $this->review->content = $review;\n $this->review->save();\n\n return \"Your Review is successfully posted\";\n }", "public function actionLogin()\n {\n $this->layout = '/login';\n $manager = new Manager(['userId' => UsniAdaptor::app()->user->getId()]);\n $userFormDTO = new UserFormDTO();\n $model = new LoginForm();\n $postData = UsniAdaptor::app()->request->post();\n $userFormDTO->setPostData($postData);\n $userFormDTO->setModel($model);\n if (UsniAdaptor::app()->user->isGuest)\n {\n $manager->processLogin($userFormDTO);\n if($userFormDTO->getIsTransactionSuccess())\n {\n return $this->goBack();\n }\n }\n else\n {\n return $this->redirect($this->resolveDefaultAfterLoginUrl());\n }\n return $this->render($this->loginView,['userFormDTO' => $userFormDTO]);\n }", "public function index()\n\t{\n $data = $this->control_model->read_current_user($this->hdata->iam_id); \n if($data === false) {\n header(\"Location: \" . config_item('app_start_url'),true);\n }\n\t \n\t\t$this->load->view('intro');\n\t\t$this->load->view('control_form',$data);\n }", "public function _showForm()\n\t{\n\t\t$this->registry->output->setTitle( \"Log In\" );\n\t\t$this->registry->output->setNextAction( 'index&do=login' );\n\t\t$this->registry->output->addContent( $this->registry->legacy->fetchLogInForm() );\n\t\t$this->registry->output->sendOutput();\n\t\texit();\n\t}", "public function create()\n {\n //\n\t\tif (Auth::check()) {\n\t\t\treturn view('clasificadors.create');\t\t\n\t\t}\n\t\telse {\n\t\t\treturn view('auth/login');\n\t\t}\n }", "public function store(Request $request)\n {\n $review = new Review;\n $review->name = $request->get('name');\n $review->grade = $request->get('grade');\n $review->comment = $request->get('comment');\n $review->product_id = $request->get('id');\n\n if ($review->name == NULL or $review->grade == NULL or $review->comment == NULL\n or $review->product_id == NULL){\n\n return redirect()->back();\n }\n\n else {\n $review->save();\n return redirect()->back();\n }\n }", "function index() {\n\n\t\t$this -> load -> library('form_validation');\n\n\t\t$this -> form_validation -> set_rules('username', 'Username', 'trim|required|xss_clean');\n\t\t$this -> form_validation -> set_rules('password', 'Password', 'trim|required|xss_clean|callback_check_database');\n\n\t\tif ($this -> form_validation -> run() == FALSE) {\n\t\t\t//Field validation failed. User redirected to login page\n\t\t\t$this -> load -> view('login_view');\n\t\t} else {\n\t\t\t//Go to private area\n\t\t\tredirect('home', 'refresh');\n\t\t}\n\n\t}", "function index()\n {\n $this->load->library('form_validation');\n\n $this->form_validation->set_rules('username', 'Username', 'trim|required|xss_clean');\n $this->form_validation->set_rules('password', 'Password', 'trim|required|xss_clean|callback_check_database');\n\t\n if($this->form_validation->run() == FALSE)\n {\n //Field validation failed. User redirected to login page \n $this->load->view('takequiz');\n }\n else\n {\n /*$username = $this->input->post('username');\n\t $password = $this->input->post('password'); \n redirect('http://www.e-yantra.org/erc13/moodle/login/index.php?U='.$username.'&P='.$password,'refresh');*/\n //redirect('home/mlogin'); //redirecting to moodle\n redirect('teamprofile/intfrd2');\n }\n \n }", "function showPreviewForm()\n {\n $ok = $this->preview();\n if (!$ok) {\n // @todo FIXME maybe provide a cancel button or link back?\n return;\n }\n\n $this->elementStart('div', 'entity_actions');\n $this->elementStart('ul');\n $this->elementStart('li', 'entity_subscribe');\n $this->elementStart('form', array('method' => 'post',\n 'id' => 'form_ostatus_sub',\n 'class' => 'form_remote_authorize',\n 'action' =>\n $this->selfLink()));\n $this->elementStart('fieldset');\n $this->hidden('token', common_session_token());\n $this->hidden('profile', $this->profile_uri);\n if ($this->oprofile->isGroup()) {\n // TRANS: Button text.\n $this->submit('submit', _m('Join'), 'submit', null,\n // TRANS: Tooltip for button \"Join\".\n _m('BUTTON','Join this group'));\n } else {\n // TRANS: Button text.\n $this->submit('submit', _m('BUTTON','Confirm'), 'submit', null,\n // TRANS: Tooltip for button \"Confirm\".\n _m('Subscribe to this user'));\n }\n $this->elementEnd('fieldset');\n $this->elementEnd('form');\n $this->elementEnd('li');\n $this->elementEnd('ul');\n $this->elementEnd('div');\n }", "public function adicionarprofessor() {\n\t\tself::header();\n\t\t$this->load->view('administracao/adicionarprofessor');\n\t\tself::footer();\n\t}", "public function create() {\n// user must be logged in\n if (User::is_logged_in()) {\n// preventing double submitting\n $token = md5(time());\n $_SESSION[$token] = true;\n\n// get all categories for the select box in form\n $categories = Category::all();\n// show post creation form\n require_once('views/posts/create.php');\n }\n }", "public function newpageAction()\n {\n\t\t$auth = Zend_Auth::getInstance();\n\t\tif($auth->hasIdentity())\n\t\t{\n\t\t\t$identity = $auth->getIdentity();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->_redirect('/default/pss/pages');\t\t\t\n\t\t}\n\n\t\t//INSTANTIATE\n\t\t$recaptcha = new Model_Recaptcha();\n\n\t\t//INITIALIZE FLAGS\n\t\t$flags = new stdClass();\n\t\t$flags->isError = false;\n\t\t$flags->formCaption = 'All fields are required';\n\t\t$flags->setBreeds = false;\n\t\t//MISC INITIALIZERS\n\t\t$this->view->initialPetTypeVal = 6;\n\t\t$types = Zend_Json::encode($this->v['t']['pss_type']->fetchAll()->toArray());\n\t\t$this->view->types = $types;\n\t\t$breeds = Zend_Json::encode($this->v['t']['pss_type_sub']->fetchAll()->toArray());\n\t\t$this->view->breeds = $breeds;\n\t\t\n\t\tif($this->_request->isPost())\n\t\t{\n\t\t\tif(array_key_exists('submit',$_POST))\n\t\t\t{\n\t\t\t\t$validatorChain = new Zend_Validate();\n\t\t\t\t$validatorChain->addValidator( new Zend_Validate_StringLength(array('min' => 1, 'max' => 10)))\n \t\t\t\t\t->addValidator(new Zend_Validate_Alpha());\n\t\t\t\tif ($recaptcha->_isError($_SERVER[\"REMOTE_ADDR\"],$_POST[\"recaptcha_challenge_field\"],$_POST[\"recaptcha_response_field\"]) == false)\n\t\t\t\t{\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$flags->formCaption = 'Please fill out ReCaptcha Field to prove you are human!!!';\n\t\t\t\t\t$flags->isError = true;\n\t\t\t\t}\n\t\t\t\tif ($validatorChain->isValid($_POST['name']))\n\t\t\t\t{\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$flags->formCaption = 'ERROR: PLEASE START OVER';\n\t\t\t\t\t$flags->isError = true;\n\t\t\t\t}\n\t\t\t\t$fileManage = new Class_Filemanage1($_FILES);\n\t\t\t\tif ($fileManage->_restrictionsCheckOut() == false)\n\t\t\t\t{\n\t\t\t \t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$flags->formCaption = 'ERROR: PLEASE START OVER';\n\t\t\t\t\t$flags->isError = true;\n\t\t\t\t}\n\t\t\t\tif($flags->isError == false)\n\t\t\t\t{\n\t\t\t\t\t$data = array();\n\t\t\t\t\t$data['user_id'] = $identity->id; $data['name'] = $_POST['name']; $data['type'] = $_POST['breed']; $data['created'] = date(\"Y-m-d H:i:s\", time());\n\t\t\t\t\t$pss_number = $this->v['t']['pss']->insert($data);\n\t\t\t\t\t$data = array(); $data['directory'] = 'pss'; $data['max_file_size'] = 5000000; $fileManage->_setPictureData($data);\n\t\t\t\t\t$data = array();\n\t\t\t\t\t$data['pss_id'] = $pss_number; $data['orientation'] = 0;$data['extension'] = $fileManage->_getFileExtension(); $data['created'] = date(\"Y-m-d H:i:s\", time());\n\t\t\t\t\t$picture_number = $this->v['t']['pss_picture']->insert($data);\n\t\t\t\t\tif($picture_number)\n\t\t\t\t\t{\n\t\t\t\t\t\t$fileManage->_setPictureNumber($picture_number);\n\t\t\t\t\t\t$fileManage->_saveImage();\n\t\t\t\t\t\t$this->view->flags = $flags;\n\t\t\t\t\t\t$this->_helper->FlashMessenger()\n\t\t\t\t\t\t\t\t->setNamespace('success')\n\t\t\t\t\t\t\t\t->addMessage('You Have successfully created a new Pet Page...look for it in the list of options to the left.');\n\t\t\t\t\t\t$this->_redirect('default/pss/pages');\n\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$flags->formCaption = 'Error please start over';\n\t\t\t\t\t\t$flags->isError = true;\n\t\t\t\t\t\t$this->view->flags = $flags;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->view->formVariables = Zend_Json::encode($_POST);\n\t\t\t\t\t$this->view->flags = $flags;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->view->formVariables = 0;\n\t\t\t$this->view->flags = $flags;\n\t\t}\n }", "public function showCandidateLoginForm()\n {\n return view('candidate.auth.login');\n }", "function submitReview()\n\t{\n\t\tglobal $conn;\n\t\tglobal $myObj;\n\n\t\t$comment = urldecode($_POST['comment']); \n\t\t$rating = intval(urldecode($_POST['rating'])); \n\t\t$book_id = intval(urldecode($_POST['book_id'])); \n\t\t$user_id = intval(urldecode($_POST['user_id'])); \n\t\t$anon = urldecode($_POST['anon']); \n\t\t\n\t\tif (empty($comment)){\n\t\t\t$comment = NULL;\n\t\t}\n\t\tif ($anon == 'true'){\n\t\t\t$anon = 1;\n\t\t}\n\t\telse if ($anon == 'false'){\n\t\t\t$anon = 0;\n\t\t}\n\t\telse {\n\t\t\techo \"anon not read\";\n\t\t}\n\n\t\t$sql = \"INSERT INTO `reviews` (`comment`, `rating`, `book_id`, `user_id`,`anon`)\n\t\t\t\t\tVALUES \n\t\t\t\t\t('$comment','$rating','$book_id','$user_id','$anon')\";\n\n\n\t\t//Executes query string\n\t\tif ($conn->query($sql) === TRUE) {\n\t\t\techo \"New record created successfully\";\n\t\t} else {\n\t\t\techo \"Error: \" . $sql . \"<br>\" . $conn->error;\n\t\t}\n\t\t\n\t\t$conn->close();\n\n\t}", "public static function review_center () \n { \n $html = null;\n\n load::view( 'admin/review/center' );\n $html .= review_center::form();\n\n return $html;\n }", "public function create()\n {\n if(Auth::user()->user_type==1)\n {\n return view('backend.sections.create');\n }\n else{\n return redirect('welcome');\n }\n }", "public function create()\n { \n $data = Reviewby::pluck('reviwedbyname','id');\n $reviewType = Reviewtype::pluck('reviewtypename','id');\n $programType = Programtype::pluck('programtypename','id');\n $actionType = Actiontype::pluck('actiontypename','id');\n return view('NewReview')->with([\n 'data'=>$data,\n 'reviewType'=>$reviewType,\n 'programType'=>$programType,\n 'actionType'=>$actionType\n ]);\n }", "function login() \n\t{\n // Specify the navigation column's path so we can include it based\n // on the action being rendered\n \n \n // check for cookies and if set validate and redirect to corresponding page\n\t\t$this->viewData['navigationPath'] = $this->getNavigationPath('users');\n\t\t$this->renderWithTemplate('users/login', 'MemberPageBaseTemplate');\n\t\t\n }", "public function index()\n {\n if (\\Auth::check()){\n \n $classreviews = ClassReview::paginate(25);\n\t \n return view('reviews.index',[\n 'reviews' => $classreviews,\n ]);}else{\n return view('welcome');\n }\n \n \n }", "public function create()\n {\n if(empty(Auth::user()->id)){\n return redirect(\"login\")->with(\"error_msg\", \"login to continue.\");\n }\n if(!empty(Auth::user()->email_verified_at)){\n\n if(Auth::user()->phone == null && Auth::user()->state == null){\n return redirect(\"profile\");\n }\n\n return view(\"pages.dashboard.manage_product.add\");\n }else{\n return redirect('/home');\n }\n }", "public function defaultView() {\n $response = $this->generateLoginFormHTML($this->message);\n $this->setResponse($response);\n }", "public function reviews()\n {\n $this->authCheck();\n\n /*$messagesData = DB::table('web_messages')\n ->get();*/\n\n $reviewsData = DB::table('reviews')->where('is_deleted', '=', 'No')->get();\n /*whereNull('is_deleted')->get();*/\n \n $reviews=view('admin.reviews')\n ->with('reviewsData',$reviewsData);\n\n return view('admin.master')\n ->with('main_content',$reviews);\n }", "public function newForm($params) {\n include_once \"app/views/user/user_new.phtml\";\n }", "function profileForm(){\r\n\t\t$this->view('profileForm');\r\n\t}", "public function create()\n {\n session_start();\n\n // Falls der Benutzer eingeloggt ist wird ihm die Create View angezeigt, ansonsten ein Fehler\n if (isset($_SESSION['isLoggedIn']) && !empty($_SESSION['isLoggedIn'])) {\n $view = new View('post/create');\n $view->title = 'Post erstellen';\n $view->display();\n } else {\n header('Location: /user/index/?error=Du bist nicht eingeloggt!');\n }\n }" ]
[ "0.6870465", "0.6813955", "0.67280024", "0.6608553", "0.6511018", "0.64514947", "0.62612224", "0.6232486", "0.62081456", "0.62001675", "0.6192632", "0.61908853", "0.6175337", "0.6173529", "0.6158681", "0.61412805", "0.60740227", "0.60304713", "0.60204494", "0.60192126", "0.60119945", "0.5978438", "0.5967984", "0.59628224", "0.5958612", "0.5955211", "0.59475327", "0.592965", "0.5910088", "0.5909294", "0.5907137", "0.5903337", "0.58909935", "0.5882284", "0.58770275", "0.587449", "0.58211553", "0.5809201", "0.5799893", "0.5793212", "0.577617", "0.5774934", "0.5764286", "0.57638836", "0.5761142", "0.5747815", "0.57465017", "0.57431906", "0.5732542", "0.57024944", "0.5687179", "0.5684616", "0.5678586", "0.5678586", "0.56775403", "0.56762505", "0.5663778", "0.5641021", "0.5623372", "0.56229126", "0.561928", "0.5617568", "0.5612176", "0.5609337", "0.56086826", "0.5603442", "0.5602167", "0.5601225", "0.5596422", "0.5590132", "0.5588297", "0.55876034", "0.55820525", "0.55751294", "0.55750906", "0.5574752", "0.5574164", "0.55732363", "0.55716884", "0.5565064", "0.5564337", "0.5557512", "0.5557184", "0.5547443", "0.55464137", "0.5543062", "0.55423135", "0.55403227", "0.55391204", "0.55323607", "0.5531726", "0.55305743", "0.55300444", "0.55238926", "0.5521322", "0.55190575", "0.55160445", "0.55117685", "0.55082005", "0.55072546" ]
0.5681025
52
add the new reveiw in the database
public function create_review($anime_id, Request $request) { $validated = $request->validate([ "rating" => "required", "comment" => "required" ]); $review = new Review(); $review->user_id = Auth::user()->id; $review->anime_id = $anime_id; $review->rating = $validated["rating"]; $review->comment = $validated["comment"]; $review->save(); return redirect('/'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add()\n\t{\n\t\t$this->_updatedata();\n\t}", "public function add()\r\n {\r\n $this->start();\r\n $this->write_to_db();\r\n }", "public function add() {\n if ($this->id == 0) {\n $reponse = $this->bdd->prepare('INSERT INTO chapitres SET title = :title, body = :body');\n $reponse->execute([\n 'body'=>$this->body, \n 'title'=>$this->title\n ]);\n }\n }", "public function add(){\r\n\t\t//$this->auth->set_access('add');\r\n\t\t//$this->auth->validate();\r\n\r\n\t\t//call save method\r\n\t\t$this->save();\r\n\t}", "public function add() {\n\n $sql = \"INSERT INTO persona(id,nombre,apellido_paterno,apellido_materno,estado_salud,telefono,ubicacion)\n VALUES(null,'{$this->nombre}','{$this->apellido_paterno}','{$this->apellido_materno}',\n '{$this->estado_salud}','{$this->telefono}','{$this->ubicacion}')\";\n $this->con->consultaSimple($sql);\n }", "public function add() {\n $mysqli = Database::getMYSQLI();\n \n $stmt = $mysqli->prepare(\"\n INSERT INTO reviews (persons_id, lessons_id, title, review, date_submitted, rating)\n VALUES (?,?,?,?,?,?)\");\n \n $stmt->bind_param('iisssi', $this->personsID, $this->lessonsID, $this->title, \n $this->review, $this->dateSubmitted, $this->rating);\n \n $stmt->execute();\n $stmt->close();\n $mysqli->close();\n }", "public function add(){\n $this->edit();\n }", "public function add() \n { // metodo add, complementar\n $str = \"insert into \".self::$tablename.\"(nitHotel, idCiudad, nomHotel, dirHotel, telHotel1, telHotel2, correoHotel, tipoHotel, Administrador, idRedes, aforo, tipoHabitaciones, status)\";\n $str.= \" values ('$this->nitHotel', $this->idCiudad, '$this->nomHotel', '$this->dirHotel', '$this->telHotel1', '$this->telHotel2', '$this->correoHotel', $this->tipoHotel, '$this->Administrador', $this->idRedes, $this->aforo, $this->tipoHabitaciones, $this->status);\";\n }", "function addItemToDB()\n {\n $this->database->addItemToDB($this);\n }", "public function add()\n\t{\n\t\t$fake_id = $this->_get_id_cur();\n\t\t$form = array();\n\t\t$form['view'] = 'form';\n\t\t$form['validation']['params'] = $this->_get_params();\n\t\t$form['submit'] = function()use ($fake_id)\n\t\t{\n\t\t\t$data = $this->_get_inputs();\n\t\t\t$data['sort_order'] = $this->_model()->get_total() + 1;\n\t\t\t$id = 0;\n\t\t\t$this->_model()->create($data,$id);\n\t\t\t// Cap nhat lai table_id table file\n\t\t\tmodel('file')->update_table_id_of_mod($this->_get_mod(), $fake_id, $id);\n\t\t\tfake_id_del($this->_get_mod());\n\n\t\t\tset_message(lang('notice_add_success'));\n\t\t\t\n\t\t\treturn admin_url($this->_get_mod());\n\t\t};\n\t\t$form['form'] = function() use ($fake_id)\n\t\t{\n\t\t\t$this->_create_view_data($fake_id);\n\n\t\t\t$this->_display('form');\n\t\t};\n\t\t$this->_form($form);\n\t}", "public function add() {\n $insertData = $this->data;\n $keepNullFields = [\n 'estimator_id', 'date_requested', 'date_service', 'class_id',\n 'date_service', 'lat', 'lng'\n ];\n foreach ($keepNullFields as $field) {\n if (!$insertData[$field]) {\n $insertData[$field] = null;\n }\n }\n $model = new ReferralModel;\n $ref = $model->create();\n $ref->set($insertData);\n $ref->save();\n $this->renderJson([\n 'success' => true,\n 'message' => 'Job request created successfully',\n 'data' => $ref->asArray()\n ]);\n }", "public function add() {\n $this->usePostRequest();\n //$this->dbFileModel->add_file();\n }", "public function add_postAction() {\n\t\t$info = $this->getPost(array('name', 'link', 'img', 'sort', 'status', 'model_id','type_id'));\n\t\t$info = $this->_cookData($info);\n\t\t$result = Browser_Service_Recsite::addRecsite($info);\n\t\tif (!$result) $this->output(-1, '操作失败');\n\t\t$this->output(0, '操作成功');\n\t}", "function add_tb_redacteur($params)\n {\n $this->db->insert('tb_redacteurs',$params);\n return $this->db->insert_id();\n }", "public function add(){\n $tab = DB::table('student');\n $res = $tab -> insert(['name' => '小黑', 'age' => '18']);\n }", "function Add($table,$values,$rediract){\n\t\t$insert = \"insert into $table values(Null,$values)\";\n\t\t$run = $this->connect->query($insert);\n\t\t\n\t\t\n\t\tif($run){\n\t\t\techo \"<script>location.href='$rediract=Added-Successfully';</script>\";\n\t\t}else {\n\t\t\techo \"<script>location.href='$rediract=Added-Error';</script>\";\n\t\t} // else close\n\t\t\n\t}", "public function add()\r\n {\r\n $genreModel = new GenreModel();\r\n $genreList = $genreModel->read();\r\n $publisherModel = new PublisherModel();\r\n $publisherList = $publisherModel->read();\r\n\r\n if (!$this->isConnected()) {\r\n header('Location: ' . BASE_URI);\r\n exit;\r\n }\r\n \r\n if (empty($this->params) || isset($_SESSION['errors'])) {\r\n $this->render('add', [\r\n 'genreList' => $genreList,\r\n 'publisherList' => $publisherList\r\n ]);\r\n exit;\r\n }\r\n \r\n $this->verifyForm(['overview', 'poster_path', 'id_tmdb']);\r\n\r\n if (!empty($this->inDb($this->params['title'], 'title', $this->model))) {\r\n $_SESSION['errors']['title'] = 'already exist';\r\n } \r\n\r\n // get genre id and replace genre with id\r\n $genreModel->params = ['WHERE' => \"name = '{$this->params['id_genre']}'\"];\r\n $this->model->params['id_genre'] = $genreModel->read()[0]->id_genre;\r\n\r\n // get publisher id\r\n $publisherModel->params = ['WHERE' => \"name = '{$this->params['id_publisher']}'\"];\r\n $this->model->params['id_publisher'] = $publisherModel->read()[0]->id_publisher;\r\n // ddgps($_SESSION);\r\n if (empty($_SESSION['errors']) && $this->model->save()) {\r\n $_SESSION['info'] = 'has been successfully added';\r\n } else {\r\n $_SESSION['errors']['unexpected'] = 'unexpected error occured';\r\n }\r\n\r\n header('Location: ' . BASE_URI . DIRECTORY_SEPARATOR . 'movie' . DIRECTORY_SEPARATOR . 'add');\r\n }", "function add()\n {\n $data = array(\n 'judul' => $this->input->post('judul'),\n 'deskripsi' => $this->input->post('deskripsi'),\n 'tanggal' => $this->input->post('tanggal'),\n 'kesimpulan' => $this->input->post('kesimpulan'),\n );\n $this->RapatModel->insert($data);\n redirect(\"Rapat/lists\");\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\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('activities', $_POST);\n\n # Send them back to home page\n Router::redirect('/activities/index');\n\n }", "private function addPaymentToDatabase()\n {\n $this->setReceiptKey();\n \n $this->createDonorEntry();\n $this->createDonationEntry();\n $this->createDonationContentEntry();\n $this->createDonorAddressEntry();\n $this->addDonationToFundraisersTotalRaise();\n \n $this->redirect('donations');\n }", "public function p_add() {\n\t\t$_POST = DB::instance(DB_NAME)->sanitize($_POST);\n\t\t\n\t\t# Unix timestamp of when this post was created / modified\n\t\t$_POST['created'] = Time::now();\n\t\t$_POST['modified'] = Time::now();\n\t\t$_POST['created_by'] = $this->user['email'];\n\t\t$_POST['modified_by'] = $this->user['email'];\n\t\tunset($_POST['MAX_FILE_SIZE']);\n\n\t\t# Insert\n\t\t# 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\t\tDB::instance(DB_NAME)->insert('teachers', $_POST);\n\n\t\t\n\t\t# Send them to the main page\n\t\tRouter::redirect(\"/\");\n\n\n\t}", "public function saveToDb()\n\t{\n\t\t$this->addDocument();\n\t\tparent::saveToDb();\n\t}", "public function add($data){\n DB::table('rating')\n ->where(\"MaDuLieu\",$data['MaDuLieu'])\n ->where('user_id',Session::get('user_id'))\n ->delete();\n\n $model = new RatingModels();\n\n $model->MaDuLieu = $data['MaDuLieu'];\n $model->rating_status = $data['status'];\n $model->created_day = date('Y-m-d H:i:s');\n $model->user_id = Session::get('user_id');\n if($model->save()){\n return true;\n }\n else{\n return false;\n }\n\n\n }", "public function add()\n\t{\n\t\t$this->template('crud/add');\t\n\t}", "public function addAction(){\n\t\t\t$emp = new Empresa();\n\t\t\t//cargamos el objeto mediantes los metodos setters\n\t\t\t$emp->id = '0';\n\t\t\t$emp->nombre_empresa = $this->getPostParam(\"nombre_empresa\");\n\t\t\t$emp->nit = $this->getPostParam(\"nit\");\n\t\t\t$emp->direccion = $this->getPostParam(\"direccion\");\n\t\t\t$emp->logo = $this->getPostParam(\"imagen\");\n\t\t\t$emp->regimen_id = $this->getPostParam(\"regimen_id\");\n\t\t\t\t\t\t\t\t\n\t\t\tif($emp->save()){\n\t\t\t\tFlash::success(\"Se insertó correctamente el registro\");\n\t\t\t\tprint(\"<script>document.location.replace(\".core::getInstancePath().\"'empresa/mostrar/$emp->id');</script>\");\n\t\t\t}else{\n\t\t\t\tFlash::error(\"Error: No se pudo insertar registro\");\t\n\t\t\t}\n\t\t\t\t\t\n\t }", "public function create() //添加\n {\n\t\t//\n }", "function addNew($rec)\r\n\t\t{\r\n\t\t\t// Create associative array of key fields and data values\r\n\t\t\t$data = array(\"idMedicalRecord\"=>$rec[0],\"medicalRec_weight\"=>$rec[1],\"medicalRec_height\"=>$rec[2],\"medicalRec_bloodPressure\"=>$rec[3],\"medicalRec_temperature\"=>$rec[4],\"medicalRec_bloodIronLevel\"=>$rec[5],\"medicalRec_time\"=>$rec[6],\"medicalRec_date\"=>$rec[7],\"medicalRec_medicalHistory\"=>$rec[8],\"medicalRec_rejectionReason\"=>$rec[9]);\r\n\t\t\t// Bind values to object's attributes\r\n\t\t\t$this->bind($data);\r\n\t\t\t// Add new values to table in database\r\n\t\t\t$this->insert();\r\n\t\t}", "public function addToDb()\n {\n\n // make sure this is a valid new entry\n if ($this->isValid()) {\n // check for duplicate\n $vals = sprintf(\"('%s',%d)\",$this->email,$this->level);\n $sql = \" insert into Admins values $vals\";\n Dbc::getReader()->Exec($sql);\n }\n else\n print \"<br> Invalid entry. STOP! ($sql)<br>\";\n }", "public function add()\n {\n \n // 1 charge la class client dans models\n // 2 instantantie la class client (Cree objet de type client)\n $this->loadModel(\"Chambres\") ;\n // 3 apell de la methode getAll() display all room from database\n $datas = $this->model->getAll() ;\n \n //save room added \n $this->model->insert() ; \n \n // 4 Affichage du tableua\n \n $this->render('chambre',compact('datas')) ;\n }", "public function Add(){\n $insert =[\n 'RankNo'=>32132,\n 'UserName'=>$UserName,\n 'NickName'=>123,\n 'MoneyNum'=>32131,\n 'Signature'=>32132131,\n 'WeChatID'=>3213123,\n 'Status'=>$Status,\n 'head_img'=>$head_img\n ];\n return $this->insert($insert);\n }", "public function add() {\n $mysqli = Database::getMYSQLI();\n \n $stmt = $mysqli->prepare(\"\n INSERT INTO lessons (title, subject, description, resources, persons_ID, \n date_created, search_field)\n VALUES (?,?,?,?,?,?,?)\");\n \n $stmt->bind_param('ssssiss', $this->title, $this->subject, $this->description, \n $this->resources, $this->personsID, $this->dateCreated, $this->searchField);\n \n $stmt->execute();\n $stmt->close();\n $insertID = $mysqli->insert_id;\n $mysqli->close();\n \n // Return ID of inserted record.\n return $insertID;\n }", "public function p_add() {\n\t\t\n\t\t$_POST['user_id'] = $this->user->user_id;\n\t\t$_POST['created'] = Time::now();\n\t\t$_POST['modified'] = Time::now();\n\t\t\n\t\tDB::instance(DB_NAME)->insert('posts',$_POST);\n\t\t\n\t\t//$view = new View('v_posts_p_add');\n\t\t\n\t\t//$view->created = Time::display(Time::now());\n\t\t\n\t\techo $view;\n\t\t\t\t\t\t\n\t\t\t\t\n\t}", "function add() {\n\n\t\t// assign values from $_POST to class variables\n\t\t$this -> personal_id = $this -> input -> post('personal_id', TRUE);\n\n\t\t$this -> movable_number = $this -> input -> post('movable_number', TRUE);\n\n\t\t$this -> series_number = $this -> input -> post('series_number', TRUE);\n\n\t\t$this -> unit = $this -> input -> post('unit', TRUE);\n\n\t\t$this -> comment = $this -> input -> post('comment', TRUE);\n\t\t//tr_date_add\n\n\t\t$this -> give_date = tr_date_add($this -> input -> post('give_date', TRUE));\n\n\t\t$this -> take_date = tr_date_add($this -> input -> post('take_date', TRUE));\n\n\t\t$ok = $this -> db -> insert('movable', $this);\n\n\t\tif ($ok) {\n\n\t\t\t$this -> res = $this -> db -> insert_id();\n\t\t\t//$data['lastid'] = $this->db->insert_id() ;\n\n\t\t}\n\n\t\treturn $this -> res;\n\n\t}", "public function p_add() {\n\t\t\t#print_r($_POST);\n\t\t\t\n\t\t\t\n\t\t\t$_POST['created'] = Time::now();\n \t\t\t$_POST['modified'] = Time::now();\n\t\t\t$_POST['poster'] = $this->user->user_id;\n\t\t\t\n\t\t\t#Write Post to the Database\n\t\t $post_id= DB::instance(DB_NAME)->insert('posts', $_POST);\n\t\t\t#Call the parser to look for hashtags: \n\t\t\t$_POST['post'] = $this->parse(\"#\",$_POST['post'],$post_id);\n\t\t\t#Call the parser to look for mentions, and the 'reply_to' for the post\n\t\t\t$_POST['post'] = $this->parse(\"@\",$_POST['post'],$post_id);\n\t\t\t#Update the Post record with new post, updated in the parser:\n\t\t\tDB::instance (DB_NAME)->update('posts',$_POST,\"where post_id = '\".$post_id.\"'\");\t\n\t\t\t\n\t\t Router::redirect('/users/');\n\t\t\t\n\t\t\t\t\t\t\n\t\t}", "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 \t\tRouter::redirect('/posts/myposts');\n }", "function add_rombel($params)\n {\n // $this->db->insert('rombel',$params);\n // return $this->db->insert_id();\n return $this->db->insert_batch('rombel', $params);\n\n }", "public function p_add() {\n if (empty($_POST['title'])) {\n Router::redirect(\"/trips/new/missing\");\n }\n\n # Associate this trip with this user\n $_POST['user_id'] = $this->user->user_id;\n\n # Unix timestamp of when this trip was created / modified\n $_POST['created'] = Time::now();\n $_POST['modified'] = Time::now();\n\n $_POST['coverimg'] = \"fpo.jpg\";\n\n # Insert\n DB::instance(DB_NAME)->insert(\"trips\", $_POST);\n\n Router::redirect(\"/trips/index\");\n\n }", "public function add()\n\t{\n\n\t}", "public function add()\n\t{\n\n\t}", "function addResource($resObject)\n{\n\t\n\t\n\t$sql = \"INSERT INTO `\".DB_NAME.\"`.`resources` (\n\t\t`rid` ,\n\t\t`title` ,\n\t\t`link` ,\n\t\t`author` ,\n\t\t`timecreated` ,\n\t\t`rating` ,\n\t\t`description` ,\n\t\t`tags` ,\n\t\t`voteips`\n\t\t)\n\t\tVALUES (\n\t\tNULL , '\".sanitize($resObject->name).\"', '\".sanitize($resObject->url).\"', '\".$resObject->owner.\"',\n\t\t\".time().\" , '\".$resObject->score.\"', '\".sanitize($resObject->description).\"', '\".sanitize(dcSemicolonArrayToString($resObject->tags)).\"',\n\t\t'\".dcSemicolonArrayToString($resObject->voteips).\"'\n\t\t)\";\n\n\t$result = mysql_query($sql);\n\n\tif($result)\n\t\t$result = mysql_insert_id();\n\t\t\n\treturn $result;\n}", "public function add($data){\n $this->db->insert('tbl_petugas', $data);\n\n }", "public function add() {\n $fields_definition = '';\n $fields_values = '';\n foreach ($this->fields as $name => $value) {\n $fields_definition .= '`' . $name . '`, ';\n $fields_values .= '\\''. $value . '\\', ';\n }\n\n $fields_definition = chop($fields_definition, ', ');\n $fields_values = chop($fields_values, ', ');\n\n $query = 'INSERT INTO `' . $this->table . '`'\n . ' (' . $fields_definition\n . ' ) VALUES ( ' . $fields_values . ' )';\n\n return $this->connection->query($query);\n }", "function addUpdate() {\n\t\tif ($this->id) $this->update();\n\t\telse $this->insert();\n\t}", "function ajouterRessource($id_bp_ressource,$id_owner,$id_bp,$personne,$revenu_pro,$retraite,$pole_emploi,$pensions,$rsa,$prestations_familiales,$aides_logement,$allocation_diverses,$autres)\r\n\t{\r\n\t\t$db = Zend_Registry::get('dbAdapter');\r\n\t\t$data = array('id_owner'=>$id_owner,'date_creation'=>time(),'id_bp'=>$id_bp,\"personne\"=>$personne,\"revenu_pro_net\"=>$revenu_pro,\"retraite\"=>$retraite,\"pole_emploi\"=>$pole_emploi,\"pensions\"=>$pensions,\"rsa\"=>$rsa,\"prestations_familiales\"=>$prestations_familiales\r\n\t\t,'aide_logement'=>$aides_logement,'allocations_diverses'=>$allocation_diverses,'autres'=>$autres);\r\n\t\t\r\n\t\tif($id_bp_ressource=='')\r\n\t\t{\r\n\t\t$db->insert('egw_bp_ressource',$data);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$data['id_modifier']=$id_owner;\r\n\t\t\t$data['date_last_modified']=time();\r\n\t\t$db->update('egw_bp_ressource',$data,'id_bp_ressource='.$id_bp_ressource);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public function add() {\n if ($this->request->is('post')) {\n \n $this->Atelier->create();\n if ($this->Atelier->save($this->request->data)) {\n //$this->Session->setFlash(\"Cet Atelier a été créé\", \"success\");\n $this->Session->setFlash(\"Cet Atelier a été créé\");\n //return $this->redirect(array('action' => 'index'));\n } else {\n //$this->Session->setFlash(\"ERREUR : L'atelier n'a pas été sauvegardé\", \"error\");\n $this->Session->setFlash(\"ERREUR : L'atelier n'a pas été sauvegardé\");\n }\n }\n }", "function add() {\r\n $sql = \"INSERT into student_researchers VALUES();\";\r\n global $db;\r\n if($db->Execute($sql) === false) {\r\n throw new Exception('SQL error. Unable to add a new researcher.');\r\n }\r\n $_REQUEST['id']=mysql_insert_id();\r\n\r\n edit();\r\n}", "public function addPostAction() {\n $inputVars = $this->getInput(array(\n \t\t'id', 'dataType', //主表字段:id,type\n \t\t \t'data'//子表字段\n ));\n \tlist($news, $itemsList) = $this->checkInput($inputVars);\n \t$news['create_time'] = time();\n \t$result = Admin_Service_Material::add($news, $itemsList);\n \tif (!$result) $this->failPostOutput('操作失败');\n \t$this->successPostOutput($this->actions['listUrl']);\n }", "public function store(AddReserva $request)\n { \n if($request['accion'])//Si es guardar\n {\n $Arreglo=$request['lista'];\n //Agregamos a la tabla reservacion\n $reservacion=Reservacion::create([\n 'Cedula_Cliente'=>$request['Cedula_Cliente'], \n 'Nombre_Contacto'=> $request['Nombre_Contacto'],\n 'Direccion_Local'=>$request['Direccion_Local'],\n 'iva'=>$Arreglo[count($Arreglo)-1][1],\n 'rowfac'=>$Arreglo[count($Arreglo)-1][3],\n 'Fecha_Inicio'=>$request['Fecha_Inicio'],\n 'Fecha_Fin'=>$request['Fecha_Fin'],\n ]);\n //Hacemos un recorrido en el arreglo que posee toda la descripcion de la factura para poder agregar cada unda de las descripciones\n for($i=0;$i<(count($Arreglo)-1);$i++)//restamos 1 porque la ultima fila es especial\n {\n $des=Descripcion::create([\n 'Cantidad'=> $Arreglo[$i][1],\n 'Nombre'=>$Arreglo[$i][0].\" - dias(\".$Arreglo[$i][3].\")\",\n 'P_Unitario'=>$Arreglo[$i][2],\n 'Total'=>$Arreglo[$i][4],\n ]);\n DesRe::create([\n 'idReservacion'=>$reservacion[\"ID_Reservacion\"],\n 'idDescripcion'=>$des['IdDescripcion'],\n ]);\n if(substr($Arreglo[$i][5], -4)==\"Arti\")\n {\n invenDes::create([\n 'ID_Objeto' => substr($Arreglo[$i][5],0,-4),\n 'ID_Descripcion' => $des['IdDescripcion']\n ]); \n }\n else\n {\n menudes::create([\n 'id_menu' => substr($Arreglo[$i][5],0,-4),\n 'id_descripcion' => $des['IdDescripcion']\n ]); \n }\n //Else y se almancena en la tabla puente entre descripcion y menu\n }\n return 1;\n }\n else\n {\n $x=explode(\",\", $request[\"lista\"]);//Guardamos como arreglo unidimencional\n $i=0;\n $Arreglo=[];\n $fila=[];\n $CC=$request['Cedula_Cliente'];\n $NC= $request['Nombre_Contacto'];\n $DL=$request['Direccion_Local'];\n $FI=$request['Fecha_Inicio'];\n $FF=$request['Fecha_Fin'];\n $facactual=$request['facactual'];\n foreach($x as $elemento)//Recorremos el arreglo\n {\n if($i==6)//hacemos la agregacion de fila cada 6 elementos\n {\n array_push($Arreglo,$fila);\n $fila=[];//inicializamos\n $i=0;\n }\n if($i!=5)//No almacenamos el id\n array_push($fila,$elemento);//Arreglo de cada fila\n $i++;\n }\n array_push($Arreglo,$fila);//agregamos la ultima fila que posee 3 elementos\n $pdf=PDF::loadView('reservacion.fac', compact('CC', 'NC', 'DL','FI', 'FF','Arreglo','facactual'));//cargamos la vista\n $now = new \\DateTime();\n return $pdf->stream('factura'.$now->format('Y-m-d_H_i_s').'.pdf');//definimos el nombre por defecto del archivo\n }\n\n }", "protected function add() {\n\t}", "public function add(Request $req){\n\n\n $count= DB::table('reponse')\n ->where('id_que','=',$req->quetion)\n ->where('reponse','=',$req->rep)\n ->count();\n\n\n if($count == 0){\n $rep= new Reponse();\n $rep->reponse =$req->rep;\n $rep->id_que =$req->quetion;\n $rep->save();\n return back()->with('success','Ajouter avec success');\n }\n else{\n return back()->with('error','reponse existe deja');\n }\n\n\n }", "public function addNewAction()\n {\n\n if ($_SERVER['REQUEST_METHOD'] === 'POST') {\n\n $title = $_POST['title'];\n $content = $_POST['content'];\n $error = '';\n\n /*\n * validate fields\n *\n */\n if ($title == 'aaa') {\n $error = 'Greska - polje Title ne moze da ima ovaj sadrzaj';\n $errors[] = $error;\n }\n\n if ($content== 'aaa') {\n $error = 'Greska - polje Content ne moze da ima ovaj sadrzaj';\n $errors[] = $error;\n }\n\n if (empty($errors)) {\n\n try {\n\n $post = PostService::create($title,$content);\n View::renderTemplate('Posts/addPost.html', [\n 'post' => $post\n ]);\n\n return;\n\n } catch (\\PDOException $e) {\n $errors[] = $e->getMessage();\n }\n\n }\n\n View::renderTemplate('Posts/addPost.html', [\n 'title' => $title,\n 'content' => $content,\n 'errors' => $errors\n ]);\n exit();\n }\n View::renderTemplate('Posts/addPost.html');\n }", "public function add($data){\n\t\t$this->db->insert('projects_pledges_log', $data); \n\t}", "public function add() {\n\n\t\t\t$projetoNome = $_POST['pjt_new_1'];\n\t\t\t$projetoData = $_POST['pjt_new_2'];\n\n\t\t\t$db = new Projetos_Model();\n\t\t\t$db->insert('sis_pjt', array(\n\t\t\t\t\"pjt_nme\" => \"$projetoNome\",\n\t\t\t\t\"pjt_data\" => \"$projetoData\",\n\t\t\t));\n\n\t\t\treturn header( \"Location: ../projetos\" );\n\t\t}", "public function MyUpdate() {\n //var_dump($rs);\n\n DB::beginTransaction();\n\n\n /*\n DB::transaction(function() {\n $article = Articles::create(array(\n ''\n ));\n });\n */\n }", "public function save_new_record() {\r\n\t\tglobal $wpdb;\r\n\r\n\t\t$db_data = $this->get_db_data();\r\n\r\n\t\t$table_name = $wpdb->prefix . CTF_POSTS_TABLE;\r\n\t\t$data = array(\r\n\t\t\t'twitter_id' => $db_data['twitter_id'],\r\n\t\t\t'created_on' => $db_data['created_on'],\r\n\t\t\t'last_requested' => $db_data['last_requested'],\r\n\t\t\t'time_stamp' => $db_data['time_stamp'],\r\n\t\t\t'json_data' => $db_data['json_data'],\r\n\t\t\t'media_id' => $db_data['media_id'],\r\n\t\t\t'sizes' => $db_data['sizes'],\r\n\t\t\t'aspect_ratio' => $db_data['aspect_ratio'],\r\n\t\t\t'images_done' => $db_data['images_done']\r\n\t\t);\r\n\t\t$format = array(\r\n\t\t\t'%s',\r\n\t\t\t'%s',\r\n\t\t\t'%s',\r\n\t\t\t'%s',\r\n\t\t\t'%s',\r\n\t\t\t'%s',\r\n\t\t\t'%s',\r\n\t\t\t'%d',\r\n\t\t\t'%d'\r\n\t\t);\r\n\t\t$error = $wpdb->insert( $table_name, $data, $format );\r\n\r\n\t\tif ( $error !== false ) {\r\n\t\t\t$insert_id = $wpdb->insert_id;\r\n\r\n\t\t\t$this->db_id = $insert_id;\r\n\t\t\t$this->insert_ctf_feeds_posts();\r\n\t\t} else {\r\n\t\t\t// log error\r\n\t\t}\r\n\t}", "public function add();", "public function add();", "protected function createNew() {\n $this->db->insert($this->tableName, $this->mapToDatabase());\n $this->id = $this->db->insert_id();\n }", "public function insertStatAndRoyalitiesAction(){\n \n }", "public function add() {\n\n //----------\n\n /* if (empty($title) || empty($content)) {\n echo $date['invalide'] = 'field required';\n }\n\n else {\n if ($this->db->query(\"INSERT INTO blog (blog_titre, blog_contenu) VALUES ('$title', '$content')\")) {\n $msg_confirmation = 'Article ajouté';\n redirect(Blog.'/?test='.$msg_confirmation.'');\n }\n }*/\n\n\n\n }", "function addrec($arec)\n\t{\n\t\t$this->db->insert(\"tblteman\", $arec);\n\n\t\treturn (($this->db->affected_rows() > 0)?TRUE:FALSE);\n\t}", "function insert()\n\t{\n\t\t$this->edit(true);\n\t}", "public function additionReson()\n {\n global $dbh;\n $sql = $dbh->prepare(\"INSERT INTO `reson`(`namena`, `namene`, `deletn`)\n VALUES ('$this->namena' ,'$this->namene' ,'$this->deletn')\");\n $result = $sql->execute();\n $idn = $dbh->lastInsertId();\n return array ($result,$idn);\n }", "public function additionReson()\n {\n global $dbh;\n $sql = $dbh->prepare(\"INSERT INTO `reson`(`namena`, `namene`, `deletn`)\n VALUES ('$this->namena' ,'$this->namene' ,'$this->deletn')\");\n $result = $sql->execute();\n $idn = $dbh->lastInsertId();\n return array ($result,$idn);\n }", "public function add($data){\n\t\t\t// echo 'LINE 11:: model';\n\t\t\t// print_r($data);die;\n\n\t\t\tif($this->db->insert('tbl_books', $data)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "public function add()\n {\n $job = $this->Jobs->newEntity();\n if ($this->request->is('post')) {\n $job = $this->Jobs->patchEntity($job, $this->request->data);\n if ($this->Jobs->save($job)) {\n $this->Flash->success(__('The job has been saved.'));\n return $this->redirect(['action' => 'index']);\n } else {\n $this->Flash->error(__('The job could not be saved. Please, try again.'));\n }\n }\n //$hirers = $this->Jobs->Hirers->find('list', ['limit' => 200]);\n //$appliers = $this->Jobs->Appliers->find('list', ['limit' => 200]);\n $this->set(compact('job'));\n $this->set('_serialize', ['job']);\n }", "public function onSaveNewRecord()\n {\n $this->created = $this->updated = new \\DateTime();\n $this->rev = 1;\n }", "public function addDB()\n {\n $this->model->addDB();\n header('location:index.php?controller=new');\n }", "public function add_book_resault()\n\t{\n\t\t$this->add_book_model->addBook();\n\t\t$this->load->view('add_book_resault');\n\t}", "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 didn't have to sanitize $_POST data because the insert method does it for us\n DB::instance(DB_NAME)->insert('posts', $_POST); //insert('table-name', array from forms post method)\n\n\t\techo \"<br/>***<br/>\";\n\t\t# current post\n print_r($_POST);\n\t\techo \"<br/>***<br/>\";\n\n # Quick and dirty feedback\n echo \"Your post has been added. <a href='/posts/add'>Add another</a>\";\n\n }", "public function add(){\n if ($_POST) {\n if ($_POST[\"operation\"] == 'egreso'){\n $_POST[\"amount\"] = $_POST[\"amount\"]*(-1);\n }\n if ($this->transactions->save(\"transactions\", $_POST)) {\n $this->redirect(array(\"controller\"=>\"transactions\"));\n }else{\n $this->redirect(array(\"controller\"=>\"transactions\", \"method\"=>\"add\"));\n }\n }\n \n $this->set(\"accounts\", $this->transactions->find(\"accounts\"));\n $this->set(\"categories\", $this->transactions->find(\"categories\"));\n $this->_view->setView(\"add\");\n /* }else{\n $this->redirect(array(\"controller\"=>\"transactions\"));\n }*/\n }", "public function add() {\n\t\t\n\t\t$data = array(\n\t\t\t'user_id' => $this->_user_id,\n\t\t\t'date' => $this->_date,\n\t\t\t'time_of_day' => $this->_time_of_day,\n\t\t\t'type_id' => $this->_type_id,\n\t\t\t'route_id' => $this->_route_id,\n\t\t\t'distance' => $this->_distance,\n\t\t\t'time' => $this->_time,\n\t\t\t'shoe_id' => $this->_shoe_id,\n\t\t\t'quality' => $this->_quality,\n\t\t\t'effort' => $this->_effort,\n\t\t\t'weather_ids' => $this->_weather_ids,\n\t\t\t'temperature' => $this->_temperature,\n\t\t\t'notes' => $this->_notes,\n\t\t\t'field' => $this->_field,\n\t\t\t'placement' => $this->_placement,\n\t\t\t'group_min_age' => $this->_group_min_age,\n\t\t\t'group_max_age' => $this->_group_max_age,\n\t\t\t'group_age_size' => $this->_group_age_size,\n\t\t\t'group_age_placement' => $this->_group_age_placement,\n\t\t\t'group_gender_size' => $this->_group_gender_size,\n\t\t\t'group_gender_placement' => $this->_group_gender_placement,\n\t\t\t'active' => $this->_active\n\t\t);\n\t\t$this->db->insert($this->_table,$data);\n\t\t\n\t\treturn true;\n\t}", "public function modelDoAdd(){\n\t\t\t$tenphongban = $_POST[\"tenphongban\"];\n\t\t\t//lay bien ket noi de thao tac csdl\n\t\t\t$conn = Connection::getInstance();\n\t\t\t//chuan bi truy van\n\t\t\t$query = $conn->prepare(\"insert into phongban set tenphongban=:ten\");\n\t\t\t$query->execute(array(\"ten\"=>$tenphongban));\n\t\t}", "public function add() {\r\n if(isset($this->data) && isset($this->data['Product'])) {\r\n $product = $this->Product->save($this->data);\r\n $this->set('response', array('Products' => $this->Product->findByProductid($product['Product']['ProductID'])));\r\n $this->Links['self'] = Router::url(array('controller' => $this->name, 'action' => 'view', $product['Product']['ProductID']), true);\r\n } else {\r\n $this->Links['self'] = Router::url(array('controller' => $this->name, 'action' => 'index'), true);\r\n }\r\n }", "public function add()\n {\n }", "public function add()\n {\n }", "public function add()\n {\n }", "public function add (){\n // receives $_GET['id'] to redirect to page showing same page\n\n $columns = array('curriculum_id', 'timetable_period_id', 'start_time_id', 'end_time_id', 'weekday_id', 'classroom_id');\n $table = new simple_table_ops();\n $table->set_table_name('timetables');\n $table->set_table_column_names($columns);\n\n $table->add();\n header(\"Location: http://\".WEBSITE_URL.\"/index.php?controller=timetable&action=show&submit=yes&timetable_period_id={$_POST['timetable_period_id']}\");\n }", "public static function add($entreprise){\n $con=new connexion();\n $resultat=$con->executeactualisation(\"insert into tblentreprise (id_entreprise,admin_id,nom,logo,ville_id,adresse_complete,etat,date_ajout,date_modifier)\n values('\" . $entreprise->ident . \"','\" . $entreprise->adminid . \"','\" . $entreprise->nom . \"','\" . $entreprise->logo . \"','\" . $entreprise->villeid . \"','\" . $entreprise->adressecomp . \"',1,NOW(),NOW())\");\n $con->closeconnexion();\n\n }", "function addnew() {\r\n $db= $this->dbf;\r\n $key_name = array(\r\n $db->tea_name => $this->input->post($db->tea_name),\r\n $db->tea_sex => $this->input->post($db->tea_sex),\r\n $db->tea_phone => $this->input->post($db->tea_phone),\r\n $db->tea_address => $this->input->post($db->tea_address),\r\n $db->tea_position => $this->input->post($db->tea_position),\r\n $db->tea_email => $this->input->post($db->tea_email),\r\n// $db->tea_status => $this->input->post($db->tea_status),\r\n $db->tea_description => $this->input->post($db->tea_description)\r\n );\r\n $key_name[$db->tea_password]=md5($this->input->post($db->tea_password));\r\n return $this->db->insert('tbl_teachers',$key_name);\r\n }", "function save() {\n //save the added fields\n }", "public function add() {\n\n $data = array(\n 'defect' => $this->input->post('defect', true),\n 'code' => $this->input->post('code', true),\n 'description' => $this->input->post('description', true),\n 'reason' => $this->input->post('reason', true),\n );\n\n $error = null;\n $id = $this->errors_model->add($data);\n echo $this->repairer->send_json(array('id'=>$id, 'error'=>$error));\n }", "public function addNew()\n {\n $this->load->model('user_model');\n $data['roles'] = $this->user_model->getUserRoles();\n $data['divisi'] = $this->user_model->getUserDivisi();\n $data['pangkat'] = $this->user_model->getUserPangkat();\n $this->global['pageTitle'] = 'Tambahkan Data Rescuer';\n $this->load->view('includes/header', $this->global);\n $this->load->view('rescuer/addNew', $data);\n $this->load->view('includes/footer');\n }", "public function store()\n\t{ \n $nextId = OrdenEsM::nextId();\n $input = Input::all();\n $ordenD = new OrdenEsD();\n $ordenD->upc = $input['upc'];\n $ordenD->epc = $input['epc'];\n $ordenD->quantity = $input['quantity'];\n $ordenD->created_at = $input['created_at'];\n $ordenD->updated_at = $input['updated_at'];\n $ordenD->orden_es_m_id = $nextId;\n $ordenD->save();\n\t}", "public function store(AddRequets $request)\n {\n $this->cateRepository->save($request);\n return redirect()->route('backend.category.list')->with('success','Thêm Thành Công');\n }", "public function add($receipt){\n\tDatabase::add('SOLD_ITEMS', array($receipt, $this->id,$this->quantity,$this->total));\n\tSales_Item::update($this->id,'SELL',$this->quantity);\n}", "function ADD()\n {\n\t if ( ($this->user_login <> '') || ($this->pista_ID <> '')\n || ($this->horario_ID <> '') || ($this->fecha <> '')){ // si los atributos vienen vacios\n\t // construimos el sql para buscar esa clave en la tabla\n\t $sql = \"SELECT * FROM RESERVA\n WHERE (FECHA = '$this->fecha')\n AND (HORARIO_ID = '$this->horario_ID')\n AND (PISTA_ID = '$this->pista_ID')\";\n\t if (!$resultado = $this->mysqli->query($sql)){ //si da error la ejecución de la query\n\t return 'ERROR: No se ha podido conectar con la base de datos'; //error en la consulta (no se ha podido conectar con la bd). Devolvemos un mensaje que el controlador manejara\n\t }else { //si la ejecución de la query no da error\n $num_rows = mysqli_num_rows($resultado);\n if($num_rows == 0){\n $sql = \"INSERT INTO RESERVA(\n\t ID,\n\t USUARIO_LOGIN,\n\t PISTA_ID,\n\t FECHA,\n HORARIO_ID) VALUES(\n\t \t\t\t\t\tNULL,\n\t '$this->user_login',\n\t '$this->pista_ID',\n\t '$this->fecha',\n '$this->horario_ID'\n\t )\";\n\t if (!($resultado = $this->mysqli->query($sql))){ //ERROR en la consulta ADD\n\t\t $this->mensaje['mensaje'] = 'ERROR: Introduzca todos los valores de todos los campos';\n\t return $this->mensaje; // introduzca un valor para el usuario\n\t }\n\t else{\n $resultado = $this->mysqli->query(\"SELECT @@identity AS ID\"); //recoge el id de la ultima inserccion\n if ($row = mysqli_fetch_array($resultado)) {\n $this->mensaje['reserva_ID'] = $row[0];\n }\n \t $this->mensaje['mensaje'] = 'Reserva realizada correctamente';\n return $this->mensaje; // introduzca un valor para el usuario\n\t }\n }else{\n $this->mensaje['mensaje'] = 'ERROR: Ya existe una reserva en esa fecha y pista';\n return $this->mensaje; // introduzca un valor para el usuario\n }\n\t }\n }else{ //Si no se introduce un login\n $this->mensaje['mensaje'] = 'ERROR: Introduzca todos los valores de todos los campos'; // Itroduzca un valor para el usuario\n return $this->mensaje;\n }\n\n }", "function add($record)\n {\n $data = get_object_vars($record);\n $this->rest->initialize(array('server' => REST_SERVER));\n $this->rest->option(CURLOPT_PORT, REST_PORT);\n $retrieved = $this->rest->post('recipe/maintenance/item/id/' . $record->menu_id.'-'.$record->inventory_id, $data);\n }", "function action_add() {\n\t\t\t$data = UTIL::get_post('data');\n\t\t\t$id = (int)$data['add_id'];\n\t\t\t$table = $data['add_table'];\n\t\t\t\n\t\t\t$choosen = $this->SESS->get('objbrowser', 'choosen');\n\t\t\t$choosen[$table][$id] = $id;\n\t\t\t$this->SESS->set('objbrowser', 'choosen', $choosen);\n\t\t}", "function add()\n { \n if(isset($_POST) && count($_POST) > 0) \n { \n $params = array(\n\t\t\t\t'romanos' => $this->input->post('romanos'),\n\t\t\t\t'nombre' => $this->input->post('nombre'),\n\t\t\t\t'prenombre' => $this->input->post('prenombre'),\n );\n \n $semestre_id = $this->Semestre_model->add_semestre($params);\n redirect('semestre/index');\n }\n else\n { \n $data['_view'] = 'semestre/add';\n $this->load->view('layouts/main',$data);\n }\n }", "public static function add($data){\n DB::table('order_items')->insert($data);\n }", "function save(){\n\t\tif (isset($this->id) && !$this->_new) {\n\t\t\t$sql = \"UPDATE `tours` set \";\n\t\t\t$i = 0;\n\t\t\tforeach($this->UPDATE as $u){\n\t\t\t\tif ($i>0) $sql = $sql.\" , \";\n\t\t\t\t$sql = $sql.$u;\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\t$sql = $sql.\" WHERE `id`='\".addslashes($this->id).\"'\";\n\t\t}else{\n\t\t\t$sql = \"INSERT into `tours` values('\".addslashes($this->id).\"' , '\".addslashes($this->name).\"' , '\".addslashes($this->duration).\"' , '\".addslashes($this->description).\"' , '\".addslashes($this->tcid).\"')\";\n\t\t}\n\t\t$this->connection->send_query($sql);\n\t}", "public function add() {\n $insert = $this->db->insert(\n $this->table_name, array(\n 'file_url' => $this->file_url,\n 'DOC' => $this->DOC,\n 'status' => $this->status\n ), array('%s', '%d', '%d')\n );\n\n return ($insert) ? $this->db->insert_id : $insert;\n }", "public function add()\n {\n if (!empty($this->data)) {\n $this->Trailer->create();\n if ($this->Trailer->save($this->data)) {\n $this->Session->setFlash('Your trailer has been saved.');\n $this->redirect(array('action' => 'index'));\n } else {\n $this->Session->setFlash('Your trailer could not be saved! Please try again.');\n }\n }\n }", "function postAdd($request){\r\n global $context;\r\n $data= new $this->model;\r\n foreach($data->fields as $key=>$field){\r\n if($field['type']!='One2many' && $field['type']!='Many2many' ){\r\n $data->data[$key]=$request->post[$key];\r\n }\r\n }\r\n\r\n if(!$data->insert()){\r\n if($request->isAjax()) return json_error($data->error);\r\n throw new \\Exception($data->error);\r\n }\r\n if($request->isAjax()) return json_success(\"Save Success !!\".$data->error,$data);\r\n\r\n\r\n redirectTo($context->controller_path.\"/all\");\r\n }", "function add_day() {\n\t\t\t$date = new DateTime($this->entry_date);\n\t\t\t\n\t\t\t$qry = sprintf(\"INSERT INTO %s (tkr_id, entry_date, open, high, low, close, volume, adj_close) \n\t\t\t\t\tVALUES (%d,'%s',%8.2f,%8.2f,%8.2f,%8.2f,%d,%8.2f)\",\n\t\t\t\t\tmysql_real_escape_string(HISTORICAL_TBL), $this->tkr_id, mysql_real_escape_string($date->format('Y-m-d')),\n\t\t\t\t\t$this->open, $this->high, $this->low, $this->close, $this->vol, $this->adj_close);\n\t\t\tmysql_query($qry) or die(mysql_error());\n\t\t\t}", "public function add($data) {\r\n\t \tglobal $wpdb;\r\n\t \t\r\n\t \tif ($wpdb->insert( $this->table, (array) $data ))\r\n\t \t\t$return = $wpdb->insert_id;\r\n\t \telse\r\n\t \t\t$return = FALSE;\r\n\t \t\r\n\t \treturn $return;\r\n\t }", "public function action_add(){\n\t\t$monumentId = $this->request->param('id');\n\t\t$user = Auth::instance()->get_user();\n\t\t\n\t\t// Add the monument to the favorite list of the current user\n\t\t$favoriteList = new Model_List_Favorite();\t\t\n\t\t$favoriteList->add($monumentId, $user->UserID);\n\t\t\n\t\t// Redirect the user back to the monument page\n\t\t$this->request->redirect('monument/view/' . $monumentId);\n\t}", "public function add() \n { \n $data['piutang'] = $this->piutangs->add();\n $data['action'] = 'piutang/save';\n \n $tmp_statuss = $this->statuss->get_all();\n foreach($tmp_statuss as $row){\n $statuss[$row['id']] = $row['status'];\n }\n $data['statuss'] = $statuss;\n \n $this->template->js_add('\n $(document).ready(function(){\n // binds form submission and fields to the validation engine\n $(\"#form_piutang\").parsley();\n });','embed');\n \n $this->template->render('piutang/form',$data);\n\n }", "public function index_post()\n {\n $input = $this->input->post();\n $this->db->insert('mst_raw_material',$input);\n \n $this->response(['Item created successfully.','201'], REST_Controller::HTTP_OK);\n }", "function addmatch()\n\t{\n\t\t$option = JFactory::getApplication()->input->getCmd('option');\n\t\t$app = JFactory::getApplication();\n\t\t$post = JFactory::getApplication()->input->post->getArray(array());\n\t\t$post['project_id'] = $app->getUserState( \"$option.pid\", '0' );\n\t\t$post['round_id'] = $app->getUserState( \"$option.rid\", '0' );\n $post['count_result'] = 1;\n $post['published'] = 1;\n\t\t$model = $this->getModel('match');\n $row = $model->getTable();\n \n //$app->enqueueMessage(JText::_(__METHOD__.' '.__LINE__.' row<br><pre>'.print_r($row,true).'</pre>'),'');\n \n // bind the form fields to the table\n if (!$row->bind($post)) \n {\n $this->setError($this->_db->getErrorMsg());\n return false;\n }\n // make sure the record is valid\n if (!$row->check()) \n {\n $this->setError($this->_db->getErrorMsg());\n return false;\n }\n \n //$app->enqueueMessage(JText::_(__METHOD__.' '.__LINE__.' row<br><pre>'.print_r($row,true).'</pre>'),'');\n //$app->enqueueMessage(JText::_(__METHOD__.' '.__LINE__.' post<br><pre>'.print_r($post,true).'</pre>'),'');\n \n // store to the database\n\t\t//if ($row->store($post))\n if ($row->save($post))\n\t\t{\n\t\t\t$msg = JText::_('COM_SPORTSMANAGEMENT_ADMIN_MATCH_CTRL_ADD_MATCH');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$msg = JText::_('COM_SPORTSMANAGEMENT_ADMIN_MATCH_CTRL_ERROR_ADD_MATCH').$model->getError();\n\t\t}\n\t\t$link = 'index.php?option=com_sportsmanagement&view=matches';\n\t\t$this->setRedirect($link,$msg);\n\t}" ]
[ "0.70663995", "0.6810106", "0.6683765", "0.6670833", "0.6662847", "0.6626009", "0.65925354", "0.65779424", "0.6540004", "0.6496079", "0.6451824", "0.6450613", "0.64200807", "0.64070296", "0.636734", "0.6319607", "0.62489396", "0.6239078", "0.6208508", "0.61973876", "0.61928403", "0.6158945", "0.61262274", "0.6124729", "0.6122545", "0.6122015", "0.6120721", "0.61203635", "0.61024106", "0.6099933", "0.6095693", "0.60879654", "0.60421914", "0.60402983", "0.60225797", "0.6003005", "0.60025364", "0.5989197", "0.5989197", "0.5988171", "0.5980681", "0.59768677", "0.59736496", "0.597214", "0.59689534", "0.5968275", "0.5957762", "0.5949597", "0.59476143", "0.59431314", "0.59422404", "0.5941152", "0.59357864", "0.5919652", "0.5914904", "0.5902396", "0.5902396", "0.5900481", "0.58995557", "0.5897954", "0.5895665", "0.589357", "0.5888917", "0.5888917", "0.58867204", "0.5880469", "0.5877851", "0.5876316", "0.58636886", "0.58635813", "0.5861561", "0.5857718", "0.58489275", "0.584247", "0.5842267", "0.5842267", "0.5842267", "0.5837644", "0.5836869", "0.5829865", "0.5825973", "0.5824846", "0.5817158", "0.581423", "0.5803112", "0.5800246", "0.57989264", "0.5797728", "0.5796786", "0.5795643", "0.579293", "0.5781109", "0.5776486", "0.5776001", "0.577386", "0.5755068", "0.57509404", "0.5732966", "0.57297826", "0.57296073", "0.57284456" ]
0.0
-1
add an anime to the watchlist
public function add_to_watch_list($id, Request $request) { $watchlist = new Watchlist(); $watchlist->user_id = Auth::user()->id; $watchlist->anime_id = $id; $watchlist->save(); return redirect("/anime/$id"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add($time)\n\t{\n\t\t$this->times[] = $time;\n\t}", "public function testWatchCanBeAdded()\n {\n $this->assertEquals(1, $this->stopWatch->getWatchCount(), \"Stopwatch doesn't initialized with default watch.\");\n\n $this->stopWatch->addWatch('testWatch');\n $this->assertEquals(2, $this->stopWatch->getWatchCount(), \"Stopwatch could not be added\");\n }", "public function addAt() {\n\t\t$at = json_decode(Flight::request()->query['at'],true);\n\t\t$date = date('H:i Y-m-d', $at['d']);\n\t\tswitch ($at['t']) {\n\t\t\tcase 'on': exec('at '.$date.' -q A -f /srv/www/home.fr/public/conf/aton.txt'); break;\n\t\t\tcase 'off': exec('at '.$date.' -q B -f /srv/www/home.fr/public/conf/atoff.txt'); break;\n\t\t\tcase 'tts': exec('at '.$date.' -q C -f /srv/www/home.fr/public/conf/attts.txt'); break;\n\t\t}\n\t\tFlight::json(array('Status' => 'OK','At' => $date, 'Type' => $at['t']));\n\t}", "function add($name, $time);", "public function add(Timer $timer);", "public function new_watch() {\r\n\t\t$this->event->add(ADD_WATCH_LOAD);\r\n\r\n\t\t$this->_headerData['headerClass'] = 'blue';\r\n\r\n\t\tarray_push($this->_headerData['javaScripts'],\r\n\t\t\t\"jquery.easy-autocomplete.min\", \"watch.autocomplete\");\r\n\r\n\t\tarray_push($this->_headerData['styleSheets'],\r\n\t\t\t\"easy-autocomplete.min\",\r\n\t\t\t\"easy-autocomplete.themes.min\"\r\n\t\t);\r\n\r\n\t\t$this->load->view('header', $this->_headerData);\r\n\r\n\t\t$this->load->view('measure/new-watch', $this->_bodyData);\r\n\r\n\t\t$this->load->view('footer');\r\n\t}", "public function onSpeakersAdd()\n\t{\n\t\t$this->onTaskAdd();\n\t}", "public function addtowatchlist($input) {\n //$jobprefrence = User::where('id', '=', access()->id())->OfwatchList($input['id'])->get();\n\n $jobprefrence = DB::select(\"select * from watch_list where item_id = \" . $input['id'] . \" and watchtype = '\" . $input['watchtype'] . \"' and user_id = \" . access()->id() . \"\");\n //print_r($data);\n /* $jobprefrence = DB::table('watch_list')\n ->where('user_id', '=', access()->id())\n ->where('item_id', '=', $input['id'])\n ->where('watchtype', '=', $input['watchtype'])\n ->get();\n print_r($jobprefrence); */\n\n if (!count($jobprefrence)) {\n $user = User::find(access()->id());\n //$user->userWatchlist()->attach($input['id']);\n DB::insert(\"insert into watch_list(item_id, user_id, watchtype,created_at) values({$input['id']}, \" . access()->id() . \", '{$input['watchtype']}','\" . date('Y-m-d h:i:s') . \"')\");\n return array('status' => 1, 'message' => 'Successfully saved to watch list.');\n } else {\n return array('status' => 0, 'message' => 'Already found in watch list.');\n }\n }", "function setLifeTime($time);", "public function atime($file)\n {\n }", "public function atime($file)\n {\n }", "public function atime($file)\n {\n }", "public function atime($file)\n {\n }", "public function atime($file)\n {\n }", "public function setWatchStatus()\n\t\t{\n\t\t\t$model = $this->getModel();\n\t\t\t$model->is_watched = 'yes';\n\t\t\t$model->modifying_agent_id = ECash::getAgent()->getAgentId();\n\t\t\t$model->save();\n\t\t}", "public function add_watch(){\r\n\r\n\t\tif($this->expectsPost(array('brand', 'name', 'yearOfBuy',\r\n\t\t\t'serial', 'caliber'))){\r\n\r\n\t\t\tif ($this->watch->addWatch($this->session->userdata('userId'),\r\n\t\t\t\t\t\t$this->brand, $this->name,\r\n\t\t\t\t\t\t$this->yearOfBuy, $this->serial,\r\n\t\t\t\t\t\t$this->caliber)) {\r\n\r\n\t\t\t\t$this->_bodyData['success'] = 'Watch successfully added!';\r\n\r\n\t\t\t}\r\n\r\n\t\t\t$this->constructMeasurePage();\r\n\t\t}\r\n\t}", "public function addTimeEntry( $data = array() ) { \t\n\n $url = $this->_base_url . 'time_entries';\n $options['data']['time_entry'] = $data;\n $options['post'] = true;\n $this->_callAPI($url, $options);\n }", "function inotify_add_watch($stream, string $name, int $mask): int\n{\n $ffi = init();\n $fd = StreamWrapper::fdFromStream($stream);\n\n $watchDescriptor = $ffi->inotify_add_watch($fd, $name, $mask);\n if ($watchDescriptor === -1) {\n throw new \\Exception('inotify_add_watch: call failed', $watchDescriptor);\n }\n\n return $watchDescriptor;\n}", "function addTaskTime($task, $time)\n\t\t{\n\t\t $updateData = array('totalSeconds' => $task['totalSeconds'] + $time);\n\n\t\t $this->db->where('id', $task['id'])->update('tasks', $updateData);\n\t\t}", "public function anime(){\t\n\t\t\t$LimitRowPegination = 4;\n\t\t\t$API_LastUpdateAnime = SiteMap::LastUpdateAnime(18,0,$LimitRowPegination);\n\t\t\t$PTR_API['API_LastUpdateAnime'] = $API_LastUpdateAnime;\n\t\t\t$this->load->view('seo/sitemap_anime',$PTR_API);\n\t\t}", "private function add_events()\r\n {\r\n $events = $this->events;\r\n foreach ($events as $time => $items)\r\n {\r\n $column = date('H', $time) / $this->hour_step + 1;\r\n foreach ($items as $item)\r\n {\r\n $content = $item['content'];\r\n $row = $item['index'] + 1;\r\n \r\n $cell_content = $this->getCellContents($row, $column);\r\n $cell_content .= $content;\r\n $this->setCellContents($row, $column, $cell_content);\r\n }\r\n }\r\n \r\n }", "function rec($log_item)\n\t{\n\t\t$this->items[] = $log_item;\n\t}", "public function createWatcher();", "protected function _markNew() \n {\n DomainWatcher::addNewObject($this);\n }", "function DbgCmd_Watch() {\n\t\tglobal $user;\n\n\t\t$this->watches = array();\n\n\t\tif (is_readable($this->watchfile())) {\n\t\t\t$s = implode(\"\",@file($this->watchfile()));\n\n\t\t\t$a = unserialize($s);\n\n\t\t\tif (count($a) > 0)\n\t\t\t\t$this->watches = (array)$a;\n\t\t}\n\t}", "public function setAssistArriveTime($value)\n {\n return $this->set(self::ASSIST_ARRIVE_TIME, $value);\n }", "function addFile($path, $whitespace = true) {\n\t\t$this->_items[] = array('file', $path, $whitespace);\n\n\t\t$mtime = @filemtime($path);\n\n\t\tif ($mtime > $this->_lastUpdate)\n\t\t\t$this->_lastUpdate = $mtime;\n\t}", "public function addWatchFolder($path)\n\t{\n\t\t$this->filesRepository->addPath($path);\n\n\t\treturn $this;\n\t}", "public static function addTimes()\n\t{\n\t\tforeach (TimeKeeper::getAll() as $key => $values) {\n\t\t\tself::$response[\"time\"][$key][\"seconds\"] = $values[\"seconds\"];\n\t\t\tself::$response[\"time\"][$key][\"times\"] = $values[\"times\"];\n\t\t}\n\t}", "public function setTimeAttribute($time)\n {\n $this->attributes['broadcasted_at'] = Carbon::make($time);\n }", "public function add_watch_item($watchdata, $surname) {\n $ret = 0;\n\n // convert rc to birthdate if this one is not explicitly set\n if (($watchdata['birthdate'] == '' || $watchdata['birthdate'] == '0000-00-00') \n && ($watchdata['rc'] != 0 && is_numeric($watchdata['rc']))) {\n\n $birthdate = $this->content_lib->verifyRC($watchdata['rc'], false);\n if ($birthdate != false) {\n $watchdata['birthdate'] = $birthdate;\n }\n }\n\n // is this already watched?\n\n // rc and ic check\n $ic_rc_array = array();\n if (($watchdata['ic'] != 0) && (is_numeric($watchdata['ic']))) {\n array_push($ic_rc_array, \"ic = \". $this->db->escape($watchdata['ic']));\n }\n\n if (($watchdata['rc'] != 0) && (is_numeric($watchdata['rc']))) {\n array_push($ic_rc_array, \"rc = \". $this->db->escape($watchdata['rc']));\n }\n\n // birthdate with name check\n if (($watchdata['birthdate'] != '') && ($watchdata['birthdate'] != '0000-00-00') && ($watchdata['name'] != '')) {\n $birthdatequery = \"birthdate = \". $this->db->escape($watchdata['birthdate']) .\" AND name = \". $this->db->escape($watchdata['name']);\n\n if ($watchdata['firstname'] != '') {\n $birthdatequery = $birthdatequery . \" AND firstname = \". $this->db->escape($watchdata['firstname']);\n }\n\n array_push($ic_rc_array, '('. $birthdatequery .')');\n }\n\n $record_exists = false;\n\n if (sizeof($ic_rc_array) > 0) {\n $ic_rc_query = implode(\" OR \", $ic_rc_array);\n\n $query_string = \"\n SELECT \n * \n FROM\n users_watches\n WHERE \n (\". $ic_rc_query .\") AND\n user_id = \". $this->db->escape($watchdata['user_id']) .\"\n \";\n $query = $this->isirdb->query($query_string);\n $record_exists = $query->num_rows() > 0;\n }\n\n if ($record_exists == FALSE) {\n // insert it\n $this->isirdb->insert('users_watches', $watchdata);\n $watch_id = $this->isirdb->insert_id();\n\n // map it\n $this->mapwatch2spis($watchdata['ic'], $watchdata['rc'], $watchdata['birthdate'], $surname, $watch_id);\n $ret = $watch_id;\n } else {\n $updated = $query->first_row();\n // update it\n $this->isirdb->where('id', $updated->id);\n\n $updated->rc = $watchdata['rc'];\n $updated->ic = $watchdata['ic'];\n $updated->name = $watchdata['name'];\n $updated->firstname = $watchdata['firstname'];\n $updated->birthdate = $watchdata['birthdate'];\n $updated->note = $watchdata['note'];\n $updated->clientname = $watchdata['clientname'];\n\n $this->isirdb->update('users_watches', $updated);\n }\n\n return $ret;\n }", "private function addTimer(array &$request) {\n $request['timer'] = microtime(true); //start time\n $request['time'] = false; //default if not overridden by time later\n }", "public function add(float $timeout = -1): bool {}", "function track_timings($user_id,$checklist_id){\r\n $query = $this->db->query(\"SELECT createdate FROM `event_log` WHERE user_id = '$user_id' AND value = '$checklist_id' AND action = 'checklist_started' ORDER BY createdate desc LIMIT 1\");\r\n $result = $query->row_array();\r\n\r\n $then = $result['createdate'];\r\n $now = date(\"Y-m-d H:i:s\");\r\n\r\n $time_between = strtotime($now) - strtotime($then);\r\n\r\n $query = $this->db->query(\"INSERT INTO checklist_timings (user_id, checklist_id, time, createdate) VALUES ('$user_id','$checklist_id','$time_between', NOW())\");\r\n\r\n\t}", "function addLoginStrikes()\n\t{\n\t\t$currentAttempts = $this->getLoginStrikes();\n\t\t\n\t\tif($currentAttempts == false) //This is the first strike, so insert in DB\n\t\t{\n\t\t\t$this->DB->database_insert('activity',\n\t\t\t\t\t\t array('activity_ip' => $_SERVER['REMOTE_ADDR'],\n\t\t\t\t\t\t\t'activity_type' => 'logins',\n\t\t\t\t\t\t\t'activity_strikes' => 1));\n\t\t}\n\t\telse //Update current strike count otherwise\n\t\t{\n\t\t\t$currentAttempts++;\n\t\t\t$time = get_timestamp(); //Time strike occurred. Offset against time required for user to wait\n\t\t\t$this->DB->database_update('activity', array('activity_strikes' => $currentAttempts, 'activity_time' => $time),\n\t\t\t\t\t\t array('activity_type' => 'logins',\n\t\t\t\t\t\t\t 'activity_ip' => $_SERVER['REMOTE_ADDR']));\n\t\t\t\n\t\t}\n\t}", "public function addUpdated()\n {\n try {\n $date = new DateTime();\n $this->updated_at = $date->format('Y-m-d H:i:s');\n $this->updated_by = 0;\n } catch (Exception $e) {\n print_r($e);\n }\n }", "function add_log_entry(log_op_move $entry) {\n array_unshift($this->log_op_list, $entry);\n }", "public function insertItem($item){\n\t\t$hour = date ( 'H', strtotime ( $item->list_time ) );\n\t\t$this->hours[$hour][DayShelfStrategy::HOUR_FIELD_ITEMLIST][] = $item;\n\t}", "public function addTimer(float $timeout = -1): bool {}", "public function onEventAdd()\n\t{\n\t\t$this->onTaskAdd();\n\t}", "function enable($watcherId);", "public function addToTiming(\\DedexBundle\\Entity\\Ern411\\TimingType $timing)\n {\n $this->timing[] = $timing;\n return $this;\n }", "public function add($message = ''){\r\n\t\tif ($this->options['active'])\r\n\t\t\t$this->profiler->record($message);\r\n\t}", "public function new_measure_for_watch(){\r\n\r\n\t\tif($this->expectsPost(array('watchId'))){\r\n\r\n\t\t\t$this->_bodyData['selected_watch'] = $this->watchId;\r\n\r\n\t\t\t$this->new_measure();\r\n\r\n\t\t}\r\n\t}", "public function add($entry)\n {\n $this->log[] = $entry;\n while (\\count($this->log) > $this->size) {\n array_shift($this->log);\n }\n }", "static public function addTimeZone (&$time) {\n if (!empty($GLOBALS['TYPO3_CONF_VARS']['SYS']['serverTimeZone'])) {\n $time += ($GLOBALS['TYPO3_CONF_VARS']['SYS']['serverTimeZone'] * 3600);\n }\n }", "function addActiveGuest($ip, $time){\r\n if(!TRACK_VISITORS) return;\r\n $q = \"REPLACE INTO \".TBL_ACTIVE_GUESTS.\" VALUES ('$ip', '$time')\";\r\n mysql_query($q, $this->connection);\r\n $this->calcNumActiveGuests();\r\n }", "public function addTimeEvents(\\google\\tracing\\v1\\Span\\TimeEvent $value){\n return $this->_add(8, $value);\n }", "public function addAlarm(\\aruba_telemetry\\Alarm $value)\n {\n if ($this->alarm === null) {\n $this->alarm = new \\Protobuf\\EnumCollection();\n }\n\n $this->alarm->add($value);\n }", "function addActiveGuest($ip, $time){\r\n if(!TRACK_VISITORS) return;\r\n //$q = \"UPDATE \".TBL_ACTIVE_GUESTS.\" VALUES ('$ip', '$time')\";\r\n //$q = \"REPLACE INTO \".TBL_ACTIVE_GUESTS.\" VALUES ('$ip', '$time')\";\r\n $q = \"INSERT INTO \".TBL_ACTIVE_GUESTS.\" VALUES ('$ip', '$time')\";\r\n mysql_query($q, $this->connection);\r\n $this->calcNumActiveGuests();\r\n }", "function addActiveGuest($ip, $time){\r\n if(!TRACK_VISITORS) return;\r\n $sql = $this->connection->prepare(\"REPLACE INTO \".TBL_ACTIVE_GUESTS.\" VALUES ('$ip', '$time')\");\r\n $sql->execute();\r\n $this->calcNumActiveGuests();\r\n }", "public function watchAction() {\n\t\t$dbseries = new Application_Model_DbTable_Series();\n\t\t$this->view->series = $dbseries->getNotMySeries($this->userid);\n\t}", "public function add($key, $value, $minutes);", "public function atime(string $path): Promise;", "function addActiveGuest($ip, $time){\n\t\tif(!TRACK_VISITORS) return;\n\t\t$q = \"REPLACE INTO \".TBL_ACTIVE_GUESTS.\" VALUES ('$ip', '$time')\";\n\t\tmysql_query($q, $this->connection);\n\t\t$this->calcNumActiveGuests();\n\t}", "public function addTime(Request $request)\n {\n //authorization\n $user = JWTAuth::User();\n //$this->authorization($user, $this->subject_class, 'update');\n //end authorization\n\n //find the resource\n $task = Task::find($request->task_id);\n if($user->id != $task->user_id){\n abort(403, 'You are not the owner of this task');\n }\n\n //fill\n $task->worked_hours+=$request->hours;\n\n //save\n $task->save();\n\n return response()->json([\n 'success' => true,\n 'response' => $task\n ]);\n }", "protected function updateHistory()\n {\n self::$history[] = time();\n if(30 === count(self::$history))\n {\n if(reset(self::$history) >= (time() - 30))\n {\n sleep(2);\n }\n array_shift(self::$history);\n }\n }", "function cron_add_minute( $schedules ) {\r\n $schedules['everyminute'] = array( 'interval' => 60, 'display' => __( 'Once Every Minute' ) ); \r\n return $schedules; \r\n }", "public function todayOn() {\n\t\t// Add all cron timestamp in $t\n\t\t$x = self::getCron();\n\t\t$t = [];\n\t\tforeach ($x['cron'] as $cron) {\n\t\t\tif ($cron['active']) $t[] = self::getNextCron($cron['raw']);\n\t\t}\n\t\t// Add all at events of type A in $t\n\t\t$x = shell_exec('atq');\n\t\tif (count($x) >= 1) {\n\t\t\t$x = explode(\"\\n\",trim($x));\n\t\t\tforeach ($x as $at) {\n\t\t\t\t$at = explode(\"\\t\", $at);\n\t\t\t\t$at[1] = str_replace(' www-data', '', $at[1]);\n\t\t\t\t$d = substr($at[1],0,-1);\n\t\t\t\tif (substr($at[1],-1) == 'A') { // type audio on\n\t\t\t\t\t$t[] = strtotime($d);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// get timestamp that fits in the next 24h\n\t\tif (count($t) >=1) {\n\t\t\t$t = min($t);\n\t\t\t\n\t\t\tif (($t > time()) && ($t <= time()+86400)) { // next cron is within the next 24hours\n\t\t\t\t$str = date(\"H:i\",$t);\n\t\t\t}\n\t\t\telse $str = \"--:--\";\n\t\t}\n\t\telse $str = \"--:--\";\n\t\tFlight::json(array('Time' => $str));\n\t}", "public function increase_counters($time, $distance) {\r\n $this->time += $time;\r\n $this->distance += $distance;\r\n $this->capacity += 1;\r\n }", "public function notify_add($message, $type = \"info\"){\n\n\t\t$_SESSION[\"notify\"][\"messages\"][] = array(\"message\" => $message, \"type\" => $type, \"already_displayed\" => \"false\");\n\t}", "public function register_start()\n {\n\n echo \"Started a New Action \";\n $project = readline(\"On what project are you working on? \");\n $this->project = $project;\n date_default_timezone_set('Europe/Berlin');\n //Array that keeps the localtime \n $arrayt = localtime();\n //calculates seconds rn for further use\n $timeRN = $arrayt[0] + ($arrayt[1] * 60) + ($arrayt[2] * 60 * 60); //in seconds\n\n $dateRN = date('Y-m-d');\n if (file_exists($this->save)) {\n $json_already = file_get_contents($this->save);\n }\n $json = json_decode($json_already);\n\n $array[] = array(\n\n 'Time' => $dateRN,\n 'Starttime' => $timeRN,\n 'Endtime' => \"\",\n 'Project' => $this->project,\n 'Worked' => \"\"\n\n );\n\n $json[] = $array;\n $json_decoded = json_encode($json);\n\n file_put_contents($this->save, $json_decoded);\n }", "function pushCurrentTimeLog()\n\t{\n\t\tarray_push($this->Time_Log, $this->Current_TimeLog);\n\t\t$this->setCurrentTimeLog(NULL);\n\t}", "function touch_time($edit = 1, $for_post = 1, $tab_index = 0, $multi = 0)\n {\n }", "function addActiveUser($memberName, $time){\r\n $q = \"UPDATE \".TBL_ACTIVE_USERS.\" SET timestamp = '$time' WHERE memberName = '$memberName'\";\r\n // $q = \"INSERT INTO \".TBL_ACTIVE_USERS.\" VALUES ('$memberName', '$time')\";\r\n // timestamp = '$time' WHERE memberName = '$memberName'\";\r\n mysql_query($q, $this->connection);\r\n \r\n if(!TRACK_VISITORS) return;\r\n $q = \"REPLACE INTO \".TBL_ACTIVE_USERS.\" VALUES ('$memberName', '$time')\";\r\n mysql_query($q, $this->connection);\r\n $this->calcNumActiveUsers();\r\n }", "public function setTime($time);", "protected function updateHistory() {\n self::$history[] = time();\n\n if ( 30 === count( self::$history ) ) {\n if ( reset( self::$history ) >= (time() - 30) ) {\n sleep( 2 );\n }\n\n array_shift( self::$history );\n }\n }", "function addto_recent_files($file) {\n\n\t $recentfiles = $this->gtk_path . \"recfiles.txt\"; //echo $recentfiles;\n\t\t\n\t\tif (file_exists($recentfiles)) \n $fp = fopen ($recentfiles , \"a+\");\t\n\t\telse\n $fp = fopen ($recentfiles , \"wb\");\t \n\t \n if ($fp) {\n fwrite ($fp, $file.\"\\r\\n\");\n fclose ($fp);\n\t\t\t\t \n\t\t $this->set_console_message(\"Added to recent files successfully.\");\t\t\t\t \n\t\t\t\t return (true);\n\t }\n\t else {\n\t\t $this->set_console_message(\"NOT added to recent files !!!\");\t\t\n\t\t\t\t return (false);\n\t\t}\t\t\n\t}", "public function updateTime( Inx_Api_Recipient_Attribute $attr, $sValue );", "function addActiveUser($username, $time){\r\n $q = \"UPDATE \".TBL_USERS.\" SET timestamp = '$time' WHERE username = '$username'\";\r\n mysql_query($q, $this->connection);\r\n \r\n if(!TRACK_VISITORS) return;\r\n $q = \"REPLACE INTO \".TBL_ACTIVE_USERS.\" VALUES ('$username', '$time')\";\r\n mysql_query($q, $this->connection);\r\n $this->calcNumActiveUsers();\r\n }", "public function addtimeAction()\r\n {\r\n\t\t$date = $this->_getParam('start', date('Y-m-d'));\r\n\t\t$time = $this->_getParam('start-time');\r\n\r\n\t\tif (!$time) {\r\n\t\t\t$hour = $this->_getParam('start-hour');\r\n\t\t\t$min = $this->_getParam('start-min');\r\n\t\t\t$time = $hour.':'.$min;\r\n\t\t}\r\n\r\n\t\t$start = strtotime($date . ' ' . $time . ':00');\r\n $end = $start + $this->_getParam('total') * 3600;\r\n $task = $this->projectService->getTask($this->_getParam('taskid'));\r\n $user = za()->getUser();\r\n\r\n $this->projectService->addTimesheetRecord($task, $user, $start, $end);\r\n\r\n\t\t$this->view->task = $task;\r\n\t\t\r\n\t\tif ($this->_getParam('_ajax')) {\r\n\t\t\t$this->renderRawView('timesheet/timesheet-submitted.php');\r\n\t\t}\r\n }", "public function touch($file, $time = 0, $atime = 0)\n {\n }", "public function touch($file, $time = 0, $atime = 0)\n {\n }", "public function touch($file, $time = 0, $atime = 0)\n {\n }", "public function touch($file, $time = 0, $atime = 0)\n {\n }", "public function touch($file, $time = 0, $atime = 0)\n {\n }", "public function addToConsoleAndIncrement(array $item)\n\t{\n\t\t$this->logs['console'][] = $item;\n\t\t$this->logs['counts'][$item['type']] += 1;\n\t}", "private function AddInterval($id, $oneTime= 0) {\r\n\r\n\t# enter the time for the named interval\r\n\t$this->intervals[$id] = $oneTime;\r\n\r\n# end function\r\n}", "public function addEtat(GmthApiEtat $etat)\n\t{\n\t\t$this->_etats[] = $etat->getId();\n\t}", "public function addInlineType($type, $tag, $index = null)\n {\n if (!isset($index) || !isset($this->InlineTypes[$type])) {\n $this->InlineTypes[$type][] = $tag;\n } else {\n array_splice($this->InlineTypes[$type], $index, 0, [$tag]);\n }\n\n if (strpos($this->inlineMarkerList, $type) === false) {\n $this->inlineMarkerList .= $type;\n }\n }", "public function display_watch_list()\n {\n $animes = DB::select(\"SELECT * FROM watchlist \n JOIN animes ON animes.id = anime_id\n WHERE user_id = ?\",[Auth::user()->id]);\n\n return view('/watchlist', [\"animes\" => $animes]);\n }", "public function setShowTimeAttribute($value)\n {\n $this->attributes['show_time'] = $value;\n }", "function touch($keyword, $time = 300, $option = array()) {\n $object = $this->get($keyword);\n if($object == null) {\n return false;\n } else {\n $value = $object['value'];\n $time = $object['expired_time'] - @date(\"U\") + $time;\n $this->set($keyword, $value,$time, $option);\n return true;\n }\n }", "public function AddType($type) {\n $this->Types[] = $type;\n }", "static function add_list_usage($user_id, $word_list_id) {\n global $con;\n $sql = \"INSERT INTO `list_usage` (`user`, `list`, `time`)\n VALUES (\".$user_id.\", \".$word_list_id.\", \".time().\");\";\n $query = mysqli_query($con, $sql);\n return 1;\n }", "public function notify_Time($id,$table){\n $this->date = date(\"h:i A\");\n $sql = \"UPDATE {$table} SET SENT_Time = '$this->date' WHERE ID = '$id'\";\n $query = mysqli_query($this->con,$sql);\n }", "public function addEntry(\\Yana\\Db\\Ddl\\Logs\\AbstractLog $log)\n {\n array_unshift($this->changes, $log);\n }", "function setStartTime($event, $time) {\n Timer::timers($event, array(\n 'start' => $time,\n 'stopped' => false\n ));\n }", "function addActiveUser($username, $time){\n\t\t$q = \"UPDATE \".TBL_USERS.\" SET timestamp = '$time' WHERE username = '$username'\";\n\t\tmysql_query($q, $this->connection);\n\t\t\n\t\tif(!TRACK_VISITORS) return;\n\t\t$q = \"REPLACE INTO \".TBL_ACTIVE_USERS.\" VALUES ('$username', '$time')\";\n\t\tmysql_query($q, $this->connection);\n\t\t$this->calcNumActiveUsers();\n\t}", "public function add()\n\t{\n\t\tregister_setting(\n\t\t\tSettingsSection::SETTINGS_OPTION,\n\t\t\t'jigoshop_chronous_hsc_enable'\n\t\t);\n\t\tregister_setting(\n\t\t\tSettingsSection::SETTINGS_OPTION,\n\t\t\t'jigoshop_chronous_hsc_icon_display'\n\t\t);\n\t\tregister_setting(\n\t\t\tSettingsSection::SETTINGS_OPTION,\n\t\t\t'jigoshop_chronous_hsc_display_empty'\n\t\t);\n\t\tregister_setting(\n\t\t\tSettingsSection::SETTINGS_OPTION,\n\t\t\t'jigoshop_chronous_hsc_select_menu'\n\t\t);\n\t\tregister_setting(\n\t\t\tSettingsSection::SETTINGS_OPTION,\n\t\t\t'jigoshop_chronous_hsc_text'\n\t\t);\n\t\t\n\t\tregister_setting(\n\t\t\tSettingsSection::SETTINGS_OPTION,\n\t\t\t'jigoshop_chronous_hsc_icon'\n\t\t);\n\t\tregister_setting(\n\t\t\tSettingsSection::SETTINGS_OPTION,\n\t\t\t'jigoshop_chronous_ccm_enable'\n\t\t);\n\t\tregister_setting(\n\t\t\tSettingsSection::SETTINGS_OPTION,\n\t\t\t'jigoshop_chronous_ccm_text'\n\t\t);\n\t\tregister_setting(\n\t\t\tSettingsSection::SETTINGS_OPTION,\n\t\t\t'jigoshop_chronous_dc_enable'\n\t\t);\n\t}", "private function addToLog($txt){\n\n $this->db->insert('master_log',\n array(\n 'log_txt' => trim($txt),\n 'added' => 'NOW()'\n ));\n \n }", "public function setTimeOn($created)\n {\n $this->timeOn = (string)$created;\n }", "public function appendTimeEffectList(\\PB_TimeEffectList $value)\n {\n return $this->append(self::TIME_EFFECT_LIST, $value);\n }", "function log_event($action) {\n\t$now = new DateTime();\t\n\tfile_put_contents(WP_PLUGIN_DIR.\"/StandardsReader/cron_log.txt\", \"|\" . $now->format('Y-m-d H:i:s') . \" \". $action . \"\\r\\n\", FILE_APPEND | LOCK_EX);\n}", "public function add(TimeSlot $slot): void\n {\n $this->collection[] = $slot;\n }", "public function edit(Watchlist $watchlist)\n {\n //\n }", "public function append($item)\n {\n array_push($this->activeValue, $item);\n }", "public function flagCacheWithNewTalkNotification() {\n\t\t$this->cache->set( $this->getTalkNotificationCacheKey(), '1', 86400 );\n\t}", "public function add_customize_screen_to_heartbeat_settings($settings)\n {\n }", "protected function insertWatchlistMenuItem( MenuBuilder $menu ) {\n\t\t$watchTitle = SpecialPage::getTitleFor( 'Watchlist' );\n\n\t\t// Watchlist link\n\t\t$watchlistQuery = [];\n\t\t$user = $this->getUser();\n\t\tif ( $user ) {\n\t\t\t$view = $user->getOption( SpecialMobileWatchlist::VIEW_OPTION_NAME, false );\n\t\t\t$filter = $user->getOption( SpecialMobileWatchlist::FILTER_OPTION_NAME, false );\n\t\t\tif ( $view ) {\n\t\t\t\t$watchlistQuery['watchlistview'] = $view;\n\t\t\t}\n\t\t\tif ( $filter && $view === 'feed' ) {\n\t\t\t\t$watchlistQuery['filter'] = $filter;\n\t\t\t}\n\t\t}\n\n\t\t$menu->insert( 'watchlist', $isJSOnly = true )\n\t\t\t->addComponent(\n\t\t\t\t$this->msg( 'mobile-frontend-main-menu-watchlist' )->escaped(),\n\t\t\t\t$this->getPersonalUrl(\n\t\t\t\t\t$watchTitle,\n\t\t\t\t\t'mobile-frontend-watchlist-purpose',\n\t\t\t\t\t$watchlistQuery\n\t\t\t\t),\n\t\t\t\tMobileUI::iconClass( 'mf-watchlist', 'before' ),\n\t\t\t\t[ 'data-event-name' => 'watchlist' ]\n\t\t\t);\n\t}" ]
[ "0.59907776", "0.583234", "0.56662875", "0.5463266", "0.5437109", "0.5362348", "0.5196051", "0.5155467", "0.5154381", "0.51366395", "0.51366395", "0.513588", "0.513588", "0.513588", "0.5089237", "0.5087589", "0.5079961", "0.5074711", "0.506052", "0.50243086", "0.49882543", "0.49516276", "0.4934074", "0.49064004", "0.4896652", "0.48876658", "0.48852074", "0.48792323", "0.48754495", "0.48670962", "0.48450795", "0.4825492", "0.4806682", "0.47878158", "0.47795466", "0.47795346", "0.4779465", "0.4777925", "0.47686046", "0.4726078", "0.46913135", "0.46837148", "0.46799222", "0.46757242", "0.46623877", "0.46586275", "0.46503958", "0.4645018", "0.46426943", "0.4640251", "0.46335056", "0.46280435", "0.46245676", "0.46223858", "0.46064132", "0.4603511", "0.45841268", "0.45576024", "0.4556632", "0.45459935", "0.45424214", "0.453952", "0.4526697", "0.45179078", "0.45169324", "0.45076293", "0.4505088", "0.45029873", "0.45025223", "0.45006806", "0.45006678", "0.4496947", "0.44965369", "0.44957265", "0.44957265", "0.44957265", "0.4491079", "0.44860873", "0.4471478", "0.4463498", "0.4459595", "0.44562066", "0.4448496", "0.4445301", "0.44443098", "0.44428393", "0.44278538", "0.4426419", "0.4418974", "0.4416224", "0.44121793", "0.44013068", "0.4400155", "0.43937406", "0.43927112", "0.43896228", "0.4388398", "0.43883315", "0.43844005", "0.43788603" ]
0.5902221
1
delete an anime from the watchlist
public function delete_from_watch_list($id, Request $request) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete_watch(){\r\n\r\n\t\tif($this->expectsPost(array('watchId'))){\r\n\r\n\t\t\tif ($this->watch->deleteWatch($this->watchId, $this->session->userdata('userId'))) {\r\n\r\n\t\t\t\t$this->_bodyData['success'] = 'Watch successfully deleted!';\r\n\t\t\t}\r\n\r\n\t\t\t$this->constructMeasurePage();\r\n\t\t}\r\n\t}", "public function destroy(Anime $anime)\n {\n //\n }", "public function clearWatchStatus()\n\t\t{\n\t\t\t$model = $this->getModel();\n\t\t\t$model->is_watched = 'no';\n\t\t\t$model->modifying_agent_id = ECash::getAgent()->getAgentId();\n\t\t\t$model->save();\n\t\t}", "function timetracking_type_delete(timetrackingType $type) {\n $type->delete();\n}", "public function delete(): void\n {\n $this->record(new AgendaWasDeleted($this->identity));\n }", "public function deleteTrash()\n {\n $currentTime = time();\n foreach (self::$cacheData as $key => $item) {\n if ($currentTime >= ($item['time'] + $item['ttl'])) {\n unset(self::$cacheData[$key]);\n }\n }\n }", "public static function delAll () {\n\t\tself::$timeArray = Array ();\n\t}", "public function delTimer(): bool {}", "public function deleteTimeEntry( $id ) { \t\n\n $url = $this->_base_url . 'time_entries/' . $id;\n $options['delete'] = true;\n $this->_callAPI($url, $options);\n }", "public function _delete()\n\t {\n\t \t$this->notifyObservers(__FUNCTION__);\n\t }", "public function postRemoveFromWatchlist()\n {\n \n $w_id = Input::get('id');\n $watchlist = new Watchlist();\n return Response::json( $watchlist->removeWatchlist( Auth::user()->id, $w_id, FALSE) ); \n \n }", "function cancel($watcherId);", "public function clearTimeslots()\n {\n $this->timeslots = [];\n self::$db->query('DELETE FROM website.banner_timeslot WHERE banner_campaign_id=$1', [$this->getID()]);\n $this->updateCacheObject();\n }", "public function cleanScheduleAction(){\n \t$actual = new Frogg_Time_Time();\n \t$cleaning_day = $actual->subtract(3*24*60*60);\n \t$cleaning_stamp = $cleaning_day->getUnixTstamp();\n \t$sql = new Frogg_Db_Sql('DELETE FROM `scheduled` WHERE `timestamp` < '.$cleaning_stamp);\n \tdie;\n }", "public function destroy(Emploitime $emploitime)\n {\n //\n }", "public function destroy(Time $time)\n {\n //\n }", "public function removeExpired();", "function destroy($event) {\n $timers =& Timer::timers();\n unset($timers[$event]);\n }", "function clear_recent_files() {\n\t\n\t $recentfiles = $this->gtk_path . \"recfiles.txt\"; //echo $recentfiles;\n\t\t\n\t\tunlink($recentfiles);\t\n\t\t$this->set_console_message(\"Recent files cleared !!!\");\n\t}", "public function delete($id)\n\t{\n\t\treturn $this->watchlist->where('id',$id)->delete();\n\t}", "public function destroy(Anime $anime)\n {\n $anime->delete();\n\n return response('', 204);\n }", "public function destroy($id){ // id del meeting\n\n $meeting = Meeting::findOrFail($id);\n\n //ACTUALIZAMOS EL HORARIO DEL DOCTOR\n $meeting->schedule->update([\"estado\"=>\"0\"]);\n\n //BORRAMOS LA CITA CREADA\n $meeting->delete();\n\n return redirect()->route('cita.ver.index')\n ->with('mensaje','ok',);\n }", "public function unsetTiming($index)\n {\n unset($this->timing[$index]);\n }", "public function destroy($id)\n {\n $delete = ShopEmployeeLoginTimeEntry::where('employeeLoginTimeId',$id)->delete();\n }", "public function destroy($id)\n {\n $anime = Anime::find($id);\n $anime->delete();\n return redirect('anime')->with('success','Anime has been deleted');\n //\n }", "public function destroy(Attendace $attendace)\n {\n //\n }", "public function delete() \n {\n DomainWatcher::addDeletedObject($this);\n }", "function stopWatchingIssue( $sessionID, $issueID ) {\r\n\t\t$user = $_SESSION['userid'];\r\n\t\t$query=\"delete from issuewatch where userid='$user' and issueid='$issueID'\";\r\n\t\tmysql_query($query);\r\n\t}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "public function deleteExpiredTokens(): void\n {\n $this->model->newQuery()\n ->where('expires_at', '<', Carbon::now()->addSecond())\n ->delete();\n }", "public function remove() {}", "public function remove() {}", "public function delete_timbudaya($nopeg) {\n\t\t$this->db->where('nopeg', $nopeg)\n\t\t\t\t ->delete('baru_tim_implementasi_budaya');\n\t}", "public function delete($episode);", "function delete() ;", "function delete() ;", "private function deleteAttempt()\n {\n Attempt::where('ip', $this->ip)\n ->whereDate('created_at', date('Y-m-d'))\n ->delete();\n }", "public function delete(){\n $this->delete_from('task');\n }", "public function deleteWorklog(){\n\n }", "public function delete(): void\n {\n $this->instances->demo()->runHook($this->root(), 'delete:before', $this);\n\n Dir::remove($this->root());\n $this->instances->delete($this->id);\n\n $this->instances->demo()->runHook($this->root(), 'delete:after', $this);\n }", "public function destroy($id)\n {\n $time = Schedule::findOrFail($id)->time;\n $find = Schedule::all()->where('time', '=', $time);\n foreach ($find as $item){\n Schedule::findOrFail($item->id)->delete();\n }\n return redirect()->route('section.index');\n }", "function delete()\r\n\t{\r\n\t\tglobal $debug;\r\n\t\t$dbh = getOpenedConnection();\r\n\r\n\t\t// Delete current item\r\n\t\t$sql = \"delete from tbl_Pistol_CompetitionDay\r\n\t\t\twhere Id = $pid;\r\n\t\t\";\r\n\r\n\t\t\r\n\t\tif ($debug)\r\n\t\t\tprint_r(\"SQL: \" . $sql);\r\n\t\t\t\r\n\t\tmysqli_query($dbh,$sql);\r\n\t\tif (mysqli_errno($dbh)!=0) {\r\n\t\t\tprint_r(mysqli_error($dbh));\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t$this->clear(); // Clear current object\r\n\r\n\t}", "public function runTimeCacheDelete($key)\n\t{\n\t\tunset($this->runTimeCache[$key]);\n\t}", "public function delAt($at) {\n\t\tpassthru('atrm '.$at,$x);\n\t\tif ($x == 0) Flight::json(array('Status' => 'OK','At' => $at.' Deleted'));\n\t\telse Flight::json(array('Status' => 'KO','At' => $at.' Not Found'));\n\t}", "public function actionDeleteNotificationOld() {\n $connection = Yii::app()->db;\n $sqlRaw = \"DELETE FROM s_notification WHERE alert_after_date < \" . strtotime(\"-360 day\");\n Yii::app()->db->createCommand($sqlRaw)->execute();\n }", "public function remove()\n\t{\n\t\t$this->todo = 3 ;\n\t}", "function deleteUnsaveNode()\n {\n //vymaze az po 2 hodinach ak sa nezmeni stav\n $list = $this->getFluent()->where(\"status = 'not_in_system' AND add_date < ( NOW() - 60*2 )\")->fetchAll();\n\n if (!empty($list)) {\n\n foreach ($list as $l) {\n\n $this->delete($l['id_node']);\n\n $module_name = $this->context->getService('ModuleContainer')->fetch($l['id_type_module'])->service_name;\n\n $this->context->getService($module_name)->delete($l['id_node']);\n }\n }\n }", "private function delete_refresh_token() {\n global $DB, $USER;\n $grt = $DB->get_record('repository_gdrive_tokens', array('userid' => $USER->id));\n $event = \\repository_googledrive\\event\\repository_gdrive_tokens_deleted::create_from_userid($USER->id);\n $event->add_record_snapshot('repository_gdrive_tokens', $grt);\n $event->trigger();\n $DB->delete_records('repository_gdrive_tokens', array ('userid' => $USER->id));\n }", "function after_delete() {}", "public function delAppointMent(appointmentClass $info)\n { \n $values=array($info->getAppointmentID());\n $sqlDel=\"DELETE FROM appointment WHERE appointment_id=?\";\n $this->execute($sqlDel,$values);\n }", "public function deleteTemp()\n {\n $list=collect(Storage::disk(config('lopsoft.temp_disk'))->listContents(config('lopsoft.temp_dir'), true))\n\t ->each(function($file) {\n\t\t if ($file['type'] == 'file' && $file['timestamp'] < now()->subDays(config('lopsoft.garbagecollection_days'))->getTimestamp()) {\n\t\t\t Storage::disk(config('lopsoft.temp_disk'))->delete($file['path']);\n\t\t }\n });\n }", "public function destroy($id)\n {\n $appointment=Appointment::find($id);\n $nextAppointments=Appointment::where(['date'=>$appointment->date,'doc_id'=>$appointment->doc_id,\n ['serial_no','>',$appointment->serial_no]])->get();\n if($appointment->delete())\n {\n foreach($nextAppointments as $appt)\n {\n $appt->serial_no--;\n $appt->save();\n }\n return redirect('dashboard')->with('success','Appointment Deleted!');\n }\n else\n return redirect('dashboard')->with('failure','Appointment Deletion Failed!');\n }", "public function destroy(Wilaya $wilaya)\n {\n //\n }", "public function clearExpiry();", "public function unsetMonitoredStopVisit($index)\n {\n unset($this->monitoredStopVisit[$index]);\n }", "function usp_ews_delete_monitored_activity($monitoreddatarecord, $monitorededitcmid){\n\t\n\t$count = count($monitoreddatarecord);\n\tfor($i=0; $i < $count; $i++){\n\t\tif($monitoreddatarecord[$i]->cmid == $monitorededitcmid){\n\t\t\n\t\t\tif($i == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\t$temp = array();\n\t\t\t\t$temp = $monitoreddatarecord[0];\n\t\t\t\t$monitoreddatarecord[0] = $monitoreddatarecord[$i];\n\t\t\t\t$monitoreddatarecord[$i] = $temp;\n\t\t\t\n\t\t\t}\n\t\t}\n\t}\n\n\t$monitorednewrecord = array_shift($monitoreddatarecord);\n\t\n\t// note we returning monitoreddatarecord since thats the updated array\n\treturn $monitoreddatarecord;\n\n}", "private function deleteFlag()\n {\n // remove the flag\n \\Storage::delete($this->getFlagPath());\n }", "function removeOldCaptchas($conn){\n $conn->query(\"DELETE FROM captchas WHERE created < (NOW() - INTERVAL 60 MINUTE)\");\n}", "function deletePlayback($cam, $path) {\n\t$query = sprintf(\"DELETE FROM Playbacks WHERE nodename='%s' AND recordfolder='%s'\",\n\t\tmysql_real_escape_string($cam),\n\t\tmysql_real_escape_string($path)\n\t);\n\tdb_query($query);\n\t\n\tsendPiCam($cam, 'DELPLAYBACK,' . $path);\t\n}", "public function delete($metricaevotranspiracion);", "public function destroy(Appointment $appointment)\n {\n //\n }", "public function destroy(PatientReminderTime $patientReminderTime)\n {\n //\n }", "public function unsetEndedAt(): void\n {\n $this->endedAt = [];\n }", "protected function clearTemp(int $time) : void\n {\n if (isset($_SESSION['$']['temp'])) {\n foreach ($_SESSION['$']['temp'] as $key => $value) {\n if ($value['ttl'] < $time) {\n unset($_SESSION['$']['temp'][$key]);\n }\n }\n }\n if (empty($_SESSION['$']['temp'])) {\n unset($_SESSION['$']['temp']);\n }\n }", "public function clean($time=null) {\n\t\t$result = '';\n\n\t\tif($time === null) {\n\t\t\t$time = time();\n\t\t}\n\n\t\t$sql = <<<SQL\ndelete from $this->tablename\nwhere time < ?\nSQL;\n\n\t\t$exec = [$this->timeStr($time - self::ACTIVE_DURATION)];\n\n\t\t$stmt = $this->pdo->prepare($sql);\n\t\tif($stmt->execute($exec) === false) {\n\t\t\treturn \"Error accessing interactive table\\n\";\n\t\t}\n\n\t\t$cnt = $stmt->rowCount();\n\t\tif($cnt > 0) {\n\t\t\t$result .= \"Removed $cnt expired Interact! active records\\n\";\n\t\t} else {\n\t\t\t$result .= \"No expired Interact! active records\\n\";\n\t\t}\n\n\t\treturn $result;\n\t}", "public function delete(){\n\t\t$db = new Database();\n\t\t$sql = \"DELETE FROM reportKinds WHERE id=?\";\n\t\t$sql = $db->prepareQuery($sql, $this->id);\n\t\t$db->query($sql);\n\t}", "public function del()\n {\n }", "public function destroy(appointment $appointment)\n {\n //\n }", "public function destroy($id)\n {\n $time = TimeActivity::find($id);\n $result = $time->delete();\n if($result!==true){\n return response()->json([\n 'error' =>$result,'message' =>'Error Eliminando tiempo'], 201);\n }\n return response()->json([\n 'message' =>'Tiempo eliminado'\n ], 201);\n }", "function delete()\n {\n }", "public function delete() {\n\t\t$this->deleted = true;\n\t}", "public function delExpApp($username)\n { \n $values=array();\n $dateNow=date('Y-m-d');\n $timeNow=date('H:i:s');\n $sqlDel=\"DELETE FROM appointment WHERE (username = '\".$username.\"') AND ((appointment_date < '\".$dateNow.\"') OR (appointment_date < '\".$dateNow.\"' AND appointment_time<'\".$timeNow.\"'))\";\n $this->execute($sqlDel,$values);\n }", "function clearNotifs(){\n $aNotification = $this->model('Notification');\n\t\t$aNotification->clearNotifications();\n }", "public function destroy(Evange $evange)\n {\n //\n }", "public function delete_overtime_request_record($id){ \r\n\t\t$this->db->where('time_request_id', $id);\r\n\t\t$this->db->delete('xin_attendance_time_request');\r\n\t\t\r\n\t}", "public function onRemove();", "function time_tracker_activity_delete($entity) {\n entity_get_controller('time_tracker_activity')->delete($entity);\n}", "function deleteactivity() {\n $this->auth(WL_ADM_LEVEL);\n $activity_id = $this->uri->segment(3);\n $this->m_activities->delete($activity_id);\n $this->activities();\n }", "function deleteExpiredLog() {\n\n\t\t$refObj = new REF();\n\t\t//get evt_del from refObj, use alm_del for now\n\t\t$event_del = $refObj->ref['evt_del'];\n\t\tif($event_del == 0){\n\t\t\t$event_del = $refObj->default['evt_del'];\n\t\t\tif($event_del == 0)\n\t\t\t\t$event_del = 180;\n\t\t}\n\n\t\t//convert value into seconds\n\t\t$event_del_in_sec = $event_del * 86400;\n\t\t\n\t\t$current_timestamp = time();\n\t\t\n\t\t$expired_timestamp = $current_timestamp - $event_del_in_sec;\n\t\t\n\t\t$expired_date = date('Y-m-d', $expired_timestamp);\n\n\t\t$eventObj = new EVENTLOG(\"\",\"\",\"\",\"\");\n\t\t$eventObj->deleteExpiredLog($expired_date);\n\n\t\treturn;\n\t}", "public function destroy()\n {\n $this->items = array();\n }", "public function destroy($id)\n {\n //\n $attendance= PhysiotherapyRegister::find($id);\n $attendance->delete();\n }", "public function after_delete() {}", "function edithistory_delete()\n{\n\tglobal $db, $mybb, $user;\n\t$db->update_query(\"edithistory\", array('uid' => 0), \"uid='{$user['uid']}'\");\n}", "public function removeStaleTokens(): void\n {\n $table = 'tx_pushnotification_tokens';\n $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)\n ->getQueryBuilderForTable($table);\n\n $queryBuilder\n ->delete($table)\n ->where(\n $queryBuilder->expr()->lt('tstamp', strtotime('-3 months'))\n )\n ->execute();\n }", "public function destroy(Attendance $attendance)\n {\n //\n }", "public function destroy(Attendance $attendance)\n {\n //\n }", "public function destroy(Attendance $attendance)\n {\n //\n }", "public function gc()\n {\n $this->delete(array(\n 'creation_date < ?' => date('Y-m-d H:i:s', time() - (3600 * 24)),\n ));\n }", "public static function shutDownEndWatch()\n {\n \\DebugHelper::watcher()->endWatch();\n }", "public static function delete() {\n\n\n\t\t}", "public function remove_old_log_events() {\n global $wpdb;\n\n $older_than = (time() - H5PEventBase::$log_time);\n\n $wpdb->query($wpdb->prepare(\"\n DELETE FROM {$wpdb->prefix}h5p_events\n\t\t WHERE created_at < %d\n \", $older_than));\n }", "public function destroy(Agenda $agenda)\n {\n //\n }", "public function deleteRevokedTokens(): void\n {\n $this->model->newQuery()\n ->where('revoked', '=', true)\n ->delete();\n }", "protected function remove($type)\n {\n unset($this->alerts[$type]);\n }", "public function eliminar() {\n //$this->delete();\n $campo_fecha_eliminacion = self::DELETED_AT;\n $this->$campo_fecha_eliminacion = date('Y-m-d H:i:s');\n $this->status = 0;\n $this->save();\n }", "public function erase_history()\n {\n $this->_event_history = [];\n }", "public function deleteAnnouncement(){\n $this->status = 0;\n $this->announcement = null;\n $this->save();\n }" ]
[ "0.6411169", "0.62093824", "0.59851694", "0.59617925", "0.5782376", "0.5739068", "0.56926936", "0.5659962", "0.55893403", "0.5541905", "0.5513219", "0.5481186", "0.5473152", "0.5453648", "0.5434743", "0.5433995", "0.54327685", "0.54001087", "0.5384641", "0.538129", "0.5327988", "0.5326833", "0.53223073", "0.53211766", "0.53181994", "0.5263683", "0.5258242", "0.5256691", "0.5255682", "0.5255682", "0.5255682", "0.5255682", "0.51995605", "0.51950973", "0.51940626", "0.5190456", "0.51901233", "0.5185238", "0.5185238", "0.51794505", "0.5173674", "0.51633173", "0.51438564", "0.5139376", "0.5128253", "0.51248837", "0.5124856", "0.51241505", "0.5124027", "0.5120255", "0.5107755", "0.5107299", "0.5100219", "0.5099418", "0.5097774", "0.5096296", "0.5084226", "0.50827795", "0.5080231", "0.5079403", "0.5078476", "0.50759006", "0.50732327", "0.50702506", "0.5069745", "0.5068762", "0.5065452", "0.5065266", "0.505864", "0.50537944", "0.5051279", "0.50506943", "0.50486004", "0.5047493", "0.5046966", "0.5045532", "0.5042068", "0.5040056", "0.50394046", "0.5032483", "0.5028849", "0.50271577", "0.50254387", "0.5020303", "0.50190645", "0.5016399", "0.5011979", "0.5010627", "0.5010627", "0.5010627", "0.5007781", "0.5003551", "0.49920002", "0.49878943", "0.49862513", "0.49806994", "0.49787927", "0.4976238", "0.49747065", "0.49662313" ]
0.57606936
5
display the watchlist in the "watchlist" template
public function display_watch_list() { $animes = DB::select("SELECT * FROM watchlist JOIN animes ON animes.id = anime_id WHERE user_id = ?",[Auth::user()->id]); return view('/watchlist', ["animes" => $animes]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function action_index()\n\t{\n\t\t$view = View::forge('tracker/watchable');\n\t\t$data = array(\n\t\t\t'page_title' => '動漫清單',\n\t\t\t'loggedin' => true,\n\t\t\t'user' => $this->getUserInfo(),\n\t\t);\n\t\t$view->set_global($data);\n\t\treturn $view;\n\t}", "public function edit(Watchlist $watchlist)\n {\n //\n }", "public function watchAction() {\n\t\t$dbseries = new Application_Model_DbTable_Series();\n\t\t$this->view->series = $dbseries->getNotMySeries($this->userid);\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function show_list()\n {\n $this->output('Workstatus/v_workstatus_ajax');\n }", "public function show($id)\n\t{\n\t\treturn $this->watchlist->where('id',$id)->first();\n\t}", "public function show($list_id, Request $request)\n {\n $user_id = $request->user()->id;\n $watchlist = Watchlist::where('user_id', $user_id)->find($list_id);\n if ($watchlist) {\n $list_items = (array) $watchlist->list_items; // typecasting\n return view(\n 'lists.list',\n [\n 'list' => $list_items,\n 'list_id' => $list_id,\n 'title' => $watchlist['title']\n ]\n );\n } else {\n return view(\n 'lists.list',\n [\n 'list' => [],\n 'list_id' => $list_id,\n 'title' => $watchlist['title']\n ]\n );\n }\n }", "public function run()\n {\n if (Yii::$app->user->isGuest)\n return;\n\n return $this->render('overview', array(\n 'update' => \\humhub\\modules\\notification\\controllers\\ListController::getUpdates()\n ));\n }", "public function story_list()\n\t{\n\t\t$data['page']='Story List';\n\t\t$data['stories_list']=$this->stories->get_all();\n\t\t$view = 'admin/stories/admin_stories_list_view';\n\t\techo Modules::run('template/admin_template', $view, $data);\t\n\t}", "public static function showList() {\n $template = file_get_contents(plugin_dir_path(__FILE__) . 'templates/login_history.html');\n\n $results = self::queryLoginHistories('desc', 25);\n $histories = '';\n foreach ($results as $history) {\n $histories .= '<tr><td>' . $history->logged_in_at. '</td><td>' . $history->user_login . '</td><td>' . $history->remote_ip . '</td><td>' . $history->user_agent . '</td></tr>';\n }\n\n $output = str_replace('%%page_title%%', get_admin_page_title(), $template);\n $output = str_replace('%%login_histories%%', $histories, $output);\n $output = str_replace('%%Recent%%', __('Recent', 'simple-login-history'), $output);\n $output = str_replace('%%record%%', __('record', 'simple-login-history'), $output);\n $output = str_replace('%%csv_download_link%%', plugin_dir_url(__FILE__) . 'download.php', $output);\n echo $output;\n }", "public function listAction()\n {\n return $this->render('ONGRSettingsBundle:Settings:list.html.twig');\n }", "public function lists()\n\t{\n\t\t$this->OnlyAdmin();\n\t\t$info = $this->TicketModel->getList('desc');\n\t\t$this->loadView('views/ticket', array('info'=> $info), true);\n\t}", "public function new_watch() {\r\n\t\t$this->event->add(ADD_WATCH_LOAD);\r\n\r\n\t\t$this->_headerData['headerClass'] = 'blue';\r\n\r\n\t\tarray_push($this->_headerData['javaScripts'],\r\n\t\t\t\"jquery.easy-autocomplete.min\", \"watch.autocomplete\");\r\n\r\n\t\tarray_push($this->_headerData['styleSheets'],\r\n\t\t\t\"easy-autocomplete.min\",\r\n\t\t\t\"easy-autocomplete.themes.min\"\r\n\t\t);\r\n\r\n\t\t$this->load->view('header', $this->_headerData);\r\n\r\n\t\t$this->load->view('measure/new-watch', $this->_bodyData);\r\n\r\n\t\t$this->load->view('footer');\r\n\t}", "public function display() {\n\t\t$singular = $this->_args['singular'];\n\n\t\t$data_attr = '';\n\n\t\tif ( $singular ) {\n\t\t\t$data_attr = \" data-wp-lists='list:$singular'\";\n\t\t}\n\n\t\t$this->display_tablenav( 'top' );\n\n?>\n<div class=\"wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>\">\n<?php\n\t$this->screen->render_screen_reader_content( 'heading_list' );\n?>\n\t<div id=\"the-list\"<?php echo $data_attr; ?>>\n\t\t<?php $this->display_rows_or_placeholder(); ?>\n\t</div>\n</div>\n<?php\n\t\t$this->display_tablenav( 'bottom' );\n\t}", "function index() {\n\t\t$this->show_list();\n\t}", "public function index()\n {\n $campuses = Campus::with('shiftTimings')->get();\n\n return view('admin.edit.shifttiminglist',\n ['campuses' => $campuses]);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function listing() {\n check_access($this->session->userdata('role_id'),3);\n \n $data = array();\n $data['title'] = \"Day Listings\";\n $data['content'] = \"admin/dayopenclose/listing\";\n $this->load->view(ADMIN_BODY, $data);\n }", "function display () {\n\t\t// So that if we're displaying a list of reports that are\n\t\t// available for editing, it's accurate.\n\t\t$this->_update_locked();\n\t\n\t\t$data = $this->_get_data_by_recent ();\n\t\t\n\t\t$this->render($data);\n\t\n\t}", "public function listWatchedAction()\n {\n\t\t$result = new ViewModel();\n\t $result->setTerminal(true);\n\t\t\n\t\t$matches\t= $this->getEvent()->getRouteMatch();\n\t\t$page\t\t= $matches->getParam('id', 1);\n\t\t$pageNav\t= $matches->getParam('perPage', '1');\n\t\t\n\t\t//\tSession for listing\n\t\t$listingSession = new Container('fo_listing');\n\t\tif($page == '0') {\n\t\t\t$listingSession->page\t= 1;\n\t\t\t$page\t= 1;\n\t\t} else if($listingSession->offsetExists('page')) {\n\t\t\t$page\t= ($pageNav == 1) ? $listingSession->page-1 : $listingSession->page+1;\n\t\t\t$listingSession->page\t= $page;\n\t\t} else {\n\t\t\t$listingSession->page\t= 1;\n\t\t\t$page\t= 1;\n\t\t}\n\t\t$message\t= '';\n\t\t$perpage\t= PERPAGE;\n\t\t//\tFetch Media Ids\n\t\t$recordsArray\t= $this->getWatchedVideos($page, 2);\n\t\t$totalRecords\t= (isset($recordsArray['total'])) ? $recordsArray['total'] : 0;\n\t\t\n\t\t//\tFetch Media Details\n\t\t$mediaIdArray\t= array();\n\t\t$tempIdArray\t= array();\n\t\t\n\t\tif(isset($recordsArray['records']) && is_array($recordsArray['records']) && count($recordsArray['records']) > 0) {\n\t\t\tforeach($recordsArray['records'] as $pkey => $pvalue) {\n\t\t\t\t$mediaIdArray[$pvalue['_id']]['id']\t\t= $pvalue['_id'];\n\t\t\t\t$mediaIdArray[$pvalue['_id']]['views']\t= $pvalue['views'];\n\t\t\t\t$mediaIdArray[$pvalue['_id']]['date']\t= $pvalue['date'];\n\t\t\t\t$tempIdArray[]\t\t\t\t\t\t\t= $pvalue['_id'];\n\t\t\t}\n\t\t\t$mediaDetails\t= $this->getMediaDetails($tempIdArray);\n\t\t}\n\t\t\n\t\t$resultArray\t= $mediaDetails;\n\t\t\n\t\t$userSession\t= new Container('fo_user');\t// Extended Friends Layer\n\t\t$tempUserSession= $userSession->mediaSession;\n\t\t$extFriendsArray= array();\n\t\t\n\t\tif(isset($tempUserSession['friends']) && is_array($tempUserSession['friends']) && count($tempUserSession['friends']) > 0 && count($tempIdArray) > 0) {\n\t\t\t$extFriendsArray\t= $this->getExtendedFriends($tempUserSession['friends'], $tempIdArray);\n\t\t}\n\t\t$result->setVariables(array('records'\t\t=> $resultArray,\n\t\t\t\t\t\t\t\t\t'message'\t\t=> $message,\n\t\t\t\t\t\t\t\t\t'page'\t\t\t=> $page,\n\t\t\t\t\t\t\t\t\t'perPage'\t\t=> $perPage,\n\t\t\t\t\t\t\t\t\t'extended'\t\t=> $extFriendsArray,\n\t\t\t\t\t\t\t\t\t'mediaArray'\t=> $mediaIdArray,\n\t\t\t\t\t\t\t\t\t'totalRecords'\t=> $totalRecords,\n\t\t\t\t\t\t\t\t\t'action'\t\t=> $this->params('action'),\n\t\t\t\t\t\t\t\t\t'controller'\t=> $this->params('controller')));\n\t\treturn $result;\n }", "public function show(Listt $listt)\n {\n //\n }", "public function index()\n {\n // browse of comment\n $recent_all = Project_updates::all();\n return view('Admin.recents.browse',compact('recent_all'));\n \n }", "public function all()\n\t{\n\t\treturn $this->watchlist->orderBy('created_at','desc')->get();\n\t}", "public function index()\n\t{\n\t\t$list = json_decode(Redis::get ( \"jkk\" ));\n\t\t$updated_at = Redis::get ( \"updated_at\" );\n\t\treturn view ( 'list', [ 'list' => array_reverse($list), 'updated_at' => $updated_at ] );\n\t}", "public function indexAction() {\n // Get list of all computers\n\n $this->context->render(\"Ajaxplorer/pages/SharedFoldersList.twig\", array());\n }", "public function watchedAction() {\n\t\t$request = $this->getRequest();\n\t\t$values = $request->getParams();\n\t\t$dbuserseries = new Application_Model_DbTable_Userseries();\n\t\t$row = $dbuserseries->getEpisode( $values['seriesid'] , $this->userid);\n\t\tif ($row) {\n\t\t\t$row->latest_ep = (int) $values['episode'];\n\t\t\t$row->save();\n\t\t}\n\t\t$dbseries = new Application_Model_DbTable_Series();\n\t\t$row = $dbseries->fetchRow('id = ' . (int) $values['seriesid']);\n\t\t$cseries = strtolower(trim(preg_replace('/[!;\\/\\?]/', '', $row->stitle)));\n\t\t$cseries = strtr($cseries, ' ', '-');\n\t\t\n\t\t$dbrlseries = new Application_Model_DbTable_Urlseries();\n\t\t$row = $dbrlseries->getSeries( $values['seriesid'], $values['episode']);\n\t\t\n\t\t$this->_redirect('http://crunchyroll.com/' . $cseries . $row->url);\n\t}", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n /** @var User $user */\n $user = \\Sentinel::check();\n $wishlists = $user->wishlists;\n\n return view('wishlist.index', compact(\"wishlists\"));\n }", "function view() {\r\n global $tmpl;\r\n $tmpl->setAttribute('list','visibility','visible');\r\n\r\n $sql=\"SELECT *\r\n FROM student_researchers\r\n ORDER BY last\";\r\n global $db;\r\n $researchers = $db->getAll($sql);\r\n\r\n // determine how many projects are associated with this resarcher\r\n foreach($researchers as $key=>$researcher) {\r\n $sql = \"SELECT COUNT(*) AS numprojects FROM student_research WHERE studentResearcherID = \" . $researcher['id'];\r\n $numProjects = $db->getRow($sql);\r\n $researchers[$key]['numprojects'] = $numProjects['numprojects'];\r\n }\r\n\r\n if(count($researchers)>0){\r\n $tmpl->addRows('mainlist',$researchers);\r\n }\r\n}", "function display_list(){\n\t\t\t$this->load->model('admin_career_event_model');\n\t\t\t$this->gen_contents['modal_path'] \t= '/career_event/class_details';\n\t\t\t$this->gen_contents['current_date']\t= $_POST['datecurrent'];\n \n $chp_list = $this->config->item('chapter_list');\n\t\t\t$this->gen_contents['arr_list'] \t= $this->admin_career_event_model->dbGetEventListWithSearchUser($_POST,$chp_list);\n\t\t\t$this->load->view('user/career_event/display_list_event',$this->gen_contents);\n\t\t}", "function index(){\n\t\trender('apps/comment_list/index',$data,'apps');\n\t}", "public function index() {\n\t if(!$page = $this->param(\"page\")) $page=1;\n\t Session::set(\"list_refer\", $_SERVER['REQUEST_URI']);\n\t \n\t\t/** \n\t\t*\tremove temporary files \n\t\t*\t- now using the date_created field to make sure that only files older than an hour created by the logged in user will be deleted. \n\t\t*\tThis is should avoid any accidental deletion of temp records that are still being worked on.\n\t\t**/\n\t if($status_col){\n \t\t$clear_tmp_model = clone $this->model;\n \t\t$time = date(\"Y-m-d H:i:s\", mktime( date(\"H\")-1, 0, 0, date(\"m\"), date(\"d\"), date(\"Y\") ) );\n \t\tif($this->auth_col) $clear_tmp_model->filter(array(\"$this->auth_col\"=>$this->current_user->id));\n \t\tif($this->status_col) $clear_tmp_model->filter(array(\"$this->status_col\"=>3));\n \t\t$clear_tmp_model->filter(\"`\".$this->created_on_col.\"` < '$time'\");\n\t\t\tforeach($clear_tmp_model->all() as $tmp_content) $tmp_content->delete();\n\t\t}\n\t\t/**\n\t\t* work out the items to display - hide those temp files\n\t\t**/\n\t\t$this->display_action_name = 'List Items';\n\t\t$this->all_rows = $this->model->filter(array(\"status\"=>array(0,1)))->order($this->default_order.\" \".$this->default_direction)->page($page, $this->list_limit);\n\t\t$this->filter_block_partial .= $this->render_partial(\"filter_block\");\n\t\t$this->list = $this->render_partial(\"list\");\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function listAction()\r\n {\r\n $pid = $this->_getParam('projectid');\r\n $where = array();\r\n if ($pid) {\r\n $where['projectid='] = $pid;\r\n }\r\n $cid = $this->_getParam('clientid');\r\n if ($cid) {\r\n $where['clientid='] = $cid;\r\n }\r\n \r\n $this->view->timesheets = $this->projectService->getTimesheets($where);\r\n \r\n $this->renderView('timesheet/list.php');\r\n }", "public function renderList()\n {\n return $this->renderAdminPage('Light_Kit_Admin_UserData/kit/zeroadmin/generated/luda_resource_has_tag_list', [], PageConfUpdator::create()->updateWidget(\"body.light_realist\", [\n 'vars' => [\n 'request_declaration_id' => 'Light_Kit_Admin_UserData:generated/luda_resource_has_tag',\n ],\n ]));\n }", "public function renderListContent() {}", "public function indexAction(){\n\n // check new unviewed notifications first (set sessions with their IDs)\n Notification::sinceLastVisit();\n\n // get unviewed notifications\n $notifications = Notification::showUnviewedNotifications();\n //print_r($notifications);\n\n if($notifications){ // get their types count if there are new notifications\n\n\n $events = Notification::getTypesCount($notifications);\n\n // delete old notifications from the database\n Notification::deleteOldNotifications();\n\n View::renderTemplate('admin/home/index.html', [\n 'events' => $events,\n 'notifications' => $notifications\n ]);\n } else {\n\n // render just empty template\n View::renderTemplate('admin/home/index.html');\n\n }\n\n }", "public function index()\n {\n $playlists = $this->getData();\n return view('admin/playlists/index')->with('playlists', $playlists);\n }", "function onwatch(){\n\t\t$who_u = $_SESSION['logged'];\n\t\t$query1 = mysqli_query($conn,\"SELECT * FROM watchlist WHERE memberid = '$who_u'\");\n\t\twhile($row1 = mysqli_fetch_array($query1)){\n\t\t\t$prod = $row1['productid'];\n\t\t\t$query = mysqli_query($conn,\"SELECT * FROM products WHERE productid = '$prod'\");\n\t\t\twhile($row = mysqli_fetch_array($query)){\n\t\t\t\techo \"<div class='prod_box'>\";\n\t\t\t\t\techo \"<div class='top_prod_box'></div>\";\n\t\t\t\t\techo \"<div class='center_prod_box'>\";\n\t\t\t\t\t\techo \"<div class='product_title'><a href='details.php?id=\".$row['productid'].\"'>\".$row['prodname'].\"</a></div>\";\n\t\t\t\t\techo \"<div class='product_img'><a href='details.php?id=\".$row['productid'].\"'><img src='administrator/images/products/\".$row['prodimage'].\"' width='94' height='92' alt='' border='0' /></a></div>\";\n\t\t\t\t\techo \"<div class='prod_price'><span class='reduce'>\".$row['regularprice'].\"$</span> <span class='price'>\".$row['startingbid'].\"$</span></div>\";\n\t\t\t\techo \"</div>\";\n\t\t\t\techo \"<div class='bottom_prod_box'></div>\";\n\t\t\t\techo \"<div class='prod_details_tab'><a href='details.html' class='prod_details' title='header=[Click for Details] body=[&nbsp;] fade=[on]'>Details</a> </div>\";\n\t\t\t\techo \"</div>\";\n\t\t\t}\n\t\t}\n\t }", "public function index()\n {\n $this->authorize(StatusesPolicy::PERMISSION_LIST);\n\n $statuses = BackupStatuses::all();\n\n $this->setTitle($title = trans('backups::statuses.titles.monitor-statuses-list'));\n $this->addBreadcrumb($title);\n\n return $this->view('admin.statuses.index', compact('statuses'));\n }", "function listing() {\r\n\r\n }", "public function index()\n {\n // $poling = new polling_unit();\n $pol = $this->get_polling_list();\n\n return view('pollingunit', [\n 'pollingList' => $pol\n ]);\n }", "function overview($tpl = null)\n\t{\n\t\tif (JVersion::isCompatible(\"1.6.0\"))\n\t\t\tJHTML::stylesheet('administrator/components/' . JEV_COM_COMPONENT . '/assets/css/eventsadmin.css');\n\t\telse\n\t\t\tJHTML::stylesheet('eventsadmin.css', 'administrator/components/' . JEV_COM_COMPONENT . '/assets/css/');\n\n\t\t$document = & JFactory::getDocument();\n\t\t$document->setTitle(JText::_( 'ICAL_EVENTS' ));\n\n\t\t// Set toolbar items for the page\n\t\tJToolBarHelper::title(JText::_( 'ICAL_EVENTS' ), 'jevents');\n\n\t\t//JToolBarHelper::custom('icalevent.csvimport','upload.png','upload.png','JEV_ADMIN_CSVIMPORT',false);\n\t\tJToolBarHelper::publishList('icalevent.publish');\n\t\tJToolBarHelper::unpublishList('icalevent.unpublish');\n\t\tJToolBarHelper::addNew('icalevent.edit');\n\t\tJToolBarHelper::editList('icalevent.edit');\n\t\tJToolBarHelper::custom('icalevent.editcopy', 'copy.png', 'copy.png', 'JEV_ADMIN_COPYEDIT');\n\t\tJToolBarHelper::deleteList('Delete Event and all repeats?', 'icalevent.delete');\n\t\tJToolBarHelper::spacer();\n\t\tJToolBarHelper::custom('cpanel.cpanel', 'default.png', 'default.png', 'JEV_ADMIN_CPANEL', false);\n\t\t//JToolBarHelper::help( 'screen.ical', true);\n\n\t\tJSubMenuHelper::addEntry(JText::_( 'CONTROL_PANEL' ), 'index.php?option=' . JEV_COM_COMPONENT, true);\n\n\t\t$params = JComponentHelper::getParams(JEV_COM_COMPONENT);\n\t\t//$section = $params->getValue(\"section\",0);\n\n\t\tJHTML::_('behavior.tooltip');\n\n\t}", "public function action_entrylist()\n\t{\n // mysqlからエントリデータを取得\n Entrylist::setParams(input::all());\n $data['user_id'] = $this->user_id;\n $data['params'] = input::all();\n $data['entry_list'] = Entrylist::run();\n $data['entry_status'] = mongo::searchEntryStatus();\n $data['recruit_company'] = mongo::searchRecruitCompany();\n\n // テンプレート設定\n $data['list_view_flg'] = count($data['entry_list']) > 0 ? true : false;\n\t\t$this->common_view->set('content', View::forge('career/list', $data));\n\t\treturn $this->common_view;\n\t}", "public function index()\n {\n // monk\n return view('monk.stipend',[\n \"stipends\" => Stipend::where('monk_id', auth()->user()->monk->id)->where('created_at', '>', \\Carbon\\Carbon::now())->latest()->get()\n ]);\n }", "public function index()\n\t{\n $widget = Widget::first();\n\n\t\treturn view('admin.widget', compact('widget'));\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n return view('Admin.AppNotification.list');\n }", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function index() {\r\n $data['topics'] = Topic::find('all', array('include' => 'activity'));\r\n $data['menu'] = 'activities';\r\n $data['check'] = '';\r\n $this->template->title('Available Activities')\r\n ->set_layout($this->front_tpl)\r\n ->set('page_title', 'Activities')\r\n ->build($this->user_folder . '/activities/list', $data);\r\n }", "public function indexAction()\n {\n View::renderTemplate('Tvshows/index.html');\n }", "public function indexAction() {\n\t if($this->settings['channel']) {\n\t $videos = $this->videoRepository->getUserUploads($this->settings['channel']); \n } else {\n $this->videoRepository->setQuery($this->settings);\n $queryUrl = $this->videoRepository->getQueryUrl(); \n\t\t $videos = $this->videoRepository->getVideos($query); \n\t\t $this->view->assign('query', $queryUrl);\n } \n\t\t$this->view->assign('videos', $videos);\n\t\tif($this->settings['singlePageOnListPage']) {\n\t\t $comments = $this->videoRepository->getComments($videos[0][vid]);\n\t\t $this->view->assign('comments', $comments);\n $this->response->addAdditionalHeaderData('\n <style>\n .tx-youtubeapi-video-list {\n \t\t\tfloat:left;\t\n \t\t\twidth:50%;\n \t\t\tpadding:0.5em;\n \t\t}\n \t\t\n \t\t.tx-youtubeapi-video-single {\n \t\t\tpadding:0.5em;\n \t\t}\n \t\t\n \t\t.tx-pagebrowse-pi1 {\n clear: both;\n }\n </style>');\n }\n \n\t\t$this->view->assign('settings', $this->settings);\n\t}", "public function ticketlistAction(){\n\n\t $this->view->session_data = $this->ModelObj->Useconfig;\n\n\t $this->view->ticketdetails = $this->ModelObj->ticketinformation();\n\n\t $this->view->countries = $this->ModelObj->getCountryList();\n\n\t $this->view->helpdeskstatus = $this->ModelObj->getstatuslist(); \n\n\t $this->view->allcustomers = $this->ModelObj->getCustomerList();\n\n\t $this->view->forwarders = $this->ModelObj->getForwarderList();\n\n }", "public function indexAction() {\n\n //ONLY LOGGED IN USER CAN VIEW THIS PAGE\n if (!$this->_helper->requireUser->isValid())\n return;\n\n $this->view->listingtype_id = $listingtype_id = $this->_listingType->listingtype_id;\n $this->view->listing_singular_uc = ucfirst($this->_listingType->title_singular);\n\n //VIDEO CREATION SHOULD BE ALLOWED\n if (!$this->_helper->requireAuth()->setAuthParams('video', null, \"create\")->isValid())\n return;\n\n //GET VIEWER\n $viewer = Engine_Api::_()->user()->getViewer();\n $viewer_id = $viewer->getIdentity();\n\n //GET LISTING\n $this->view->listing_id = $listing_id = $this->_getParam('listing_id');\n $this->view->sitereview = $sitereview = Engine_Api::_()->getItem('sitereview_listing', $listing_id);\n\n //GET CONTENT ID\n $this->view->content_id = $content_id = $this->_getParam('tab');\n\n //WHO CAN EDIT THE LISTING\n $this->view->canEdit = $canEdit = Engine_Api::_()->authorization()->isAllowed($sitereview, $viewer, \"edit_listtype_$listingtype_id\");\n\n //ACTIVE TAB\n $this->view->TabActive = \"video\";\n\n //VIDEO UPLOAD IS ALLOWED OR NOT\n $this->view->allowed_upload_video = Engine_Api::_()->sitereview()->allowVideo($sitereview, $viewer);\n if (empty($this->view->allowed_upload_video)) {\n return $this->_forwardCustom('requireauth', 'error', 'core');\n }\n\n if (Engine_Api::_()->sitereview()->hasPackageEnable()) {\n //AUTHORIZATION CHECK\n $allowed_upload_photo = Engine_Api::_()->authorization()->isAllowed($sitereview, $viewer, \"auth_photo_listtype_$listingtype_id\");\n if (Engine_Api::_()->sitereviewpaidlisting()->allowPackageContent($sitereview->package_id, \"photo\")) {\n $this->view->allowed_upload_photo = $allowed_upload_photo;\n }\n else\n $this->view->allowed_upload_photo = 0;\n }\n else\n $this->view->allowed_upload_photo = Engine_Api::_()->authorization()->isAllowed($sitereview, $viewer, \"photo_listtype_$listingtype_id\");\n\n $video = null;\n $values['user_id'] = $viewer_id;\n\n //COUNT TOTAL VIDEO\n $this->view->videoCount = Engine_Api::_()->sitereview()->getTotalVideo($viewer_id);\n\n $this->view->video = $video = Engine_Api::_()->getItemTable('sitereview_clasfvideo', 'sitereview')->getListingVideos($listing_id, 0);\n\n $this->view->message = $message = null;\n $session = new Zend_Session_Namespace();\n if (isset($session->video_message)) {\n $message = $session->video_message;\n unset($session->video_message);\n }\n\n //UPLOAD VIDEO\n if (isset($_GET['ul']) || isset($_FILES['Filedata'])) {\n return $this->_forwardCustom('upload-video', null, null, array('format' => 'json'));\n }\n\n //GET VIDEO PAGINATOR\n $values['user_id'] = $viewer_id;\n $paginator = Engine_Api::_()->getApi('core', 'video')->getVideosPaginator($values);\n $this->view->current_count = $paginator->getTotalItemCount();\n\n //GET TOTAL ALLOWED VIDEO\n $this->view->quota = Engine_Api::_()->authorization()->getPermission($viewer->level_id, 'video', 'max');\n\n //MAKE FORM\n $this->view->form = $form = new Sitereview_Form_Video_Video();\n\n if ($this->_getParam('type', false)) {\n $form->getElement('type')->setValue($this->_getParam('type'));\n }\n\n $this->view->display = 0;\n\n //CHECK POST\n if (!$this->getRequest()->isPost()) {\n return;\n }\n\n $this->view->display = 1;\n\n if (!$form->isValid($this->getRequest()->getPost())) {\n $values = $form->getValues('url');\n return;\n }\n\n if ($this->getRequest()->isPost() && $form->isValid($this->getRequest()->getPost())) {\n\n //PROCESS\n $values = $form->getValues();\n $values['owner_id'] = $viewer->getIdentity();\n $insert_action = false;\n $db = Engine_Api::_()->getDbtable('videos', 'video')->getAdapter();\n $db->beginTransaction();\n try {\n\n //CREATE VIDEO\n $table = Engine_Api::_()->getDbtable('videos', 'video');\n if ($values['type'] == 3) {\n $video = Engine_Api::_()->getItem('video', $this->_getParam('id'));\n } else {\n $video = $table->createRow();\n }\n\n $video->setFromArray($values);\n $video->save();\n\n $params = $sitereview->main_video;\n\n //CREATE THUMBNAIL\n $thumbnail = $this->handleThumbnail($video->type, $video->code);\n $ext = ltrim(strrchr($thumbnail, '.'), '.');\n $thumbnail_parsed = @parse_url($thumbnail);\n\n if (@GetImageSize($thumbnail)) {\n $valid_thumb = true;\n } else {\n $valid_thumb = false;\n }\n\n if ($valid_thumb && $thumbnail && $ext && $thumbnail_parsed && in_array($ext, array('jpg', 'jpeg', 'gif', 'png'))) {\n\n $tmp_file = APPLICATION_PATH . '/temporary/link_' . md5($thumbnail) . '.' . $ext;\n $thumb_file = APPLICATION_PATH . '/temporary/link_thumb_' . md5($thumbnail) . '.' . $ext;\n $src_fh = fopen($thumbnail, 'r');\n $tmp_fh = fopen($tmp_file, 'w');\n stream_copy_to_stream($src_fh, $tmp_fh, 1024 * 1024 * 2);\n $image = Engine_Image::factory();\n $image->open($tmp_file)\n ->resize(120, 240)\n ->write($thumb_file)\n ->destroy();\n try {\n $thumbFileRow = Engine_Api::_()->storage()->create($thumb_file, array(\n 'parent_type' => $video->getType(),\n 'parent_id' => $video->getIdentity()\n ));\n\n //REMOVE TEMP FILES\n @unlink($thumb_file);\n @unlink($tmp_file);\n } catch (Exception $e) {\n \n }\n $information = $this->handleInformation($video->type, $video->code);\n\n $video->duration = $information['duration'];\n if (!$video->description)\n $video->description = $information['description'];\n $video->photo_id = $thumbFileRow->file_id;\n $video->status = 1;\n $video->save();\n\n //INSERT NEW ACTION ITEM\n $insert_action = true;\n }\n\n if ($values['ignore'] == true) {\n\n $video->status = 1;\n $video->save();\n\n //INSERT NEW ACTION ITEM\n $insert_action = true;\n $owner = $video->getOwner();\n\n //INSERT NEW ACTION ITEM\n $action = Engine_Api::_()->getDbtable('actions', 'activity')->addActivity($owner, $video, 'video_new');\n if ($action != null) {\n Engine_Api::_()->getDbtable('actions', 'activity')->attachActivity($action, $video);\n }\n }\n\n //CREATE AUTH STUFF HERE\n $auth = Engine_Api::_()->authorization()->context;\n $roles = array('owner', 'owner_member', 'owner_member_member', 'owner_network', 'everyone');\n if (isset($values['auth_view']))\n $auth_view = $values['auth_view'];\n else\n $auth_view = \"everyone\";\n $viewMax = array_search($auth_view, $roles);\n\n foreach ($roles as $i => $role) {\n $auth->setAllowed($video, $role, 'view', ($i <= $viewMax));\n }\n\n if (isset($values['auth_comment']))\n $auth_comment = $values['auth_comment'];\n else\n $auth_comment = \"everyone\";\n $commentMax = array_search($auth_comment, $roles);\n foreach ($roles as $i => $role) {\n $auth->setAllowed($video, $role, 'comment', ($i <= $commentMax));\n }\n\n //ADD TAGS\n $tags = preg_split('/[,]+/', $values['tags']);\n $video->tags()->addTagMaps($viewer, $tags);\n $db->commit();\n $db->beginTransaction();\n try {\n if ($insert_action) {\n $owner = $video->getOwner();\n $action = Engine_Api::_()->getDbtable('actions', 'activity')->addActivity($owner, $video, 'video_new');\n if ($action != null) {\n Engine_Api::_()->getDbtable('actions', 'activity')->attachActivity($action, $video);\n }\n }\n\n //REBUILD PRIVACY\n $actionTable = Engine_Api::_()->getDbtable('actions', 'activity');\n foreach ($actionTable->getActionsByObject($video) as $action) {\n $actionTable->resetActivityBindings($action);\n }\n $db->commit();\n } catch (Exception $e) {\n $db->rollBack();\n throw $e;\n }\n\n $video_id = $video->getIdentity();\n $table = Engine_Api::_()->getItemTable('sitereview_clasfvideo', 'sitereview');\n $select = $table->select();\n $rName = $table->info('name');\n $select->where($rName . '.listing_id = ?', $listing_id);\n $row = $table->fetchAll($select);\n if ($video_id != NULL) {\n try {\n\n $db = Engine_Db_Table::getDefaultAdapter();\n $db->beginTransaction();\n\n $row = $table->createRow();\n $row->listing_id = $listing_id;\n $row->created = date('Y-m-d H:i:s');\n $row->video_id = $video_id;\n $row->save();\n\n $activityApi = Engine_Api::_()->getDbtable('actions', 'activity');\n $sitereview = Engine_Api::_()->getItem('sitereview_listing', $listing_id);\n $subject = $sitereview;\n $subjectOwner = $subject->getOwner('user');\n\n if (time() >= strtotime($sitereview->creation_date)) {\n $action = Engine_Api::_()->getDbtable('actions', 'activity')->addActivity($viewer, $subject, 'video_sitereview_listtype_' . $listingtype_id, '', array(\n 'owner' => $subjectOwner->getGuid(),\n 'title' => $subject->getTitle()\n ));\n\n if ($action != null) {\n Engine_Api::_()->getDbtable('actions', 'activity')->attachActivity($action, $video);\n }\n }\n $db->commit();\n unset($_POST);\n if ($canEdit) {\n return $this->_gotoRouteCustom(array('action' => 'edit', 'listing_id' => $listing_id), \"sitereview_videospecific_listtype_$listingtype_id\", true);\n } else {\n $content_id = $this->_getParam('content_id');\n return $this->_gotoRouteCustom(array('listing_id' => $listing_id, 'slug' => $sitereview->getSlug(), 'tab' => $content_id), \"sitereview_entry_view_listtype_$listingtype_id\", true);\n }\n } catch (Exception $e) {\n $db->rollBack();\n throw $e;\n }\n }\n } catch (Exception $e) {\n $db->rollBack();\n throw $e;\n }\n }\n }", "public function views() {\n\t\t\t$views = $this->get_views();\n\n\t\t\t/** This filter is documented in wp-admin/inclues/class-wp-list-table.php */\n\t\t\t$views = apply_filters( \"views_{$this->screen->id}\", $views );\n\n\t\t\t$this->screen->render_screen_reader_content( 'heading_views' );\n\t\t\t?>\n\t\t\t<div class=\"wp-filter\">\n\t\t\t\t<ul class=\"filter-links\">\n\t\t\t\t\t<?php\n\t\t\t\t\tif ( ! empty( $views ) ) {\n\t\t\t\t\t\tforeach ( $views as $class => $view ) {\n\t\t\t\t\t\t\t$views[ $class ] = \"\\t<li class='$class'>$view\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\techo implode( \" </li>\\n\", $views ) . \"</li>\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t?>\n\t\t\t\t</ul>\n\t\t\t\t<?php\n\t\t\t\tif ( 'learndash' === $this->current_tab ) {\n\t\t\t\t\t$this->show_update_button();\n\t\t\t\t}\n\t\t\t\t?>\n\t\t\t</div>\n\t\t\t<?php\n\t\t}", "public function indexAction() {\n if (!Engine_Api::_()->core()->hasSubject('sitereview_listing') && !Engine_Api::_()->core()->hasSubject('sitereview_review')) {\n return $this->setNoRender();\n }\n\n if (Engine_Api::_()->core()->hasSubject('sitereview_listing')) {\n $this->view->sitereview = $sitereview = Engine_Api::_()->core()->getSubject();\n } elseif (Engine_Api::_()->core()->hasSubject('sitereview_review')) {\n $this->view->sitereview = $sitereview = Engine_Api::_()->core()->getSubject()->getParent();\n }\n\n //GET SUBJECT\n $this->view->sitereview = $sitereview = Engine_Api::_()->core()->getSubject();\n\n $this->view->viewType = $this->_getParam('viewType', 0);\n $this->view->statistics = $this->_getParam('statistics', array(\"likeCount\", \"reviewCount\", \"commentCount\"));\n Engine_Api::_()->sitereview()->setListingTypeInRegistry($sitereview->listingtype_id);\n $listingtypeArray = Zend_Registry::get('listingtypeArray' . $sitereview->listingtype_id);\n\n //SEND REVIEW TITLE TO TPL\n $this->view->reviewTitleSingular = $listingtypeArray->review_title_singular ? $listingtypeArray->review_title_singular : 'Review';\n $this->view->reviewTitlePlular = $listingtypeArray->review_title_plural ? $listingtypeArray->review_title_plural : 'Reviews';\n \n if (!empty($this->view->statistics) && empty($listingtypeArray->reviews) || $listingtypeArray->reviews == 1) {\n $key = array_search('reviewCount', $this->view->statistics);\n if (!empty($key)) {\n unset($this->view->statistics[$key]);\n }\n }\n\n $values = array();\n $values['listing_id'] = $sitereview->listing_id;\n $this->view->count = $limit = $values['limit'] = $this->_getParam('itemCount', 3);\n $values['similar_items_order'] = 1;\n $this->view->title_truncation = $this->_getParam('truncation', 24);\n $values['ratingType'] = $this->view->ratingType = $this->_getParam('ratingType', 'rating_avg');\n $listingTable = Engine_Api::_()->getDbTable('listings', 'sitereview');\n\n $similar_items = Engine_Api::_()->getDbTable('otherinfo', 'sitereview')->getColumnValue($sitereview->listing_id, 'similar_items');\n $similarItems = array();\n if (!empty($similar_items)) {\n $similarItems = Zend_Json_Decoder::decode($similar_items);\n }\n\n $showSameCategoryListings = $this->_getParam('showSameCategoryListings', 1);\n \n if (!empty($similar_items) && !empty($similarItems) && Count($similarItems) >= 0) {\n $values['similarItems'] = $similarItems;\n $this->view->listings = $listingTable->getListing('', $values);\n } else {\n \n if(!$showSameCategoryListings) {\n return $this->setNoRender();\n } \n \n $values['listingtype_id'] = $sitereview->listingtype_id;\n\n if ($sitereview->subsubcategory_id) {\n $values['subsubcategory_id'] = $sitereview->subsubcategory_id;\n } elseif ($sitereview->subcategory_id) {\n $values['subcategory_id'] = $sitereview->subcategory_id;\n } elseif ($sitereview->category_id) {\n $values['category_id'] = $sitereview->category_id;\n } else {\n return $this->setNoRender();\n }\n\n $this->view->listings = $listingTable->getListing('', $values);\n }\n\n if (Engine_API::_()->seaocore()->checkSitemobileMode('fullsite-mode')) {\n $this->_childCount = count($this->view->listings);\n } else {\n $this->view->listings->setCurrentPageNumber($this->_getParam('page'));\n $this->view->listings->setItemCountPerPage($limit);\n $this->_childCount = $this->view->listings->getTotalItemCount();\n }\n\n if ($this->_childCount <= 0) {\n return $this->setNoRender();\n }\n\n $this->view->columnWidth = $this->_getParam('columnWidth', '180');\n $this->view->columnHeight = $this->_getParam('columnHeight', '328');\n }", "public function getSource()\n {\n return 'watchlists';\n }", "public function actionIndex()\n {\n Notification::read(999);\n\n return $this->render('index', [\n 'notifications' => Notification::userList(),\n ]);\n }", "public function actionWelcomeListing()\n {\n \tob_start();\n \tYii::app()->theme='back';\n \t$rec=HomeWelcome::model()->findAll();\n //echo \"<pre>\";print_r($rec);die; \n \t$this->render('welcomelisting',array('list'=>$rec));\n }", "function watchlistPage() {\n \n $query = ( isset( $_GET['query'] ) ) ? htmlentities( $_GET['query'] ) : false;\n\n try {\n /**\n * REQUIRE LOGIN\n */\n if( !isset( $_GET['action'] ) || !isset( $_SESSION[\"user_id\"] ) ):\n header( 'HTTP/1.0 403 Forbidden' );\n throw new Exception( \"Forbiden access\" );\n endif;\n\n\n $action = htmlentities( $_GET['query'] );\n \n /**\n * ROUTING\n */\n switch( $action ):\n\n case 'toggle':\n toggle();\n break;\n\n case 'check':\n check();\n break;\n\n default:\n header( 'HTTP/1.0 400 Bad request' );\n echo \"Bad request\";\n endswitch;\n }catch( Exception $e ) {\n echo $e->getMessage();\n }\n}", "public function index()\n {\n $tims = Tim::all();\n return view('list_tim',compact('tims'));\n }", "public function indexAction(){\n \n $this->_view->display('device_list.tpl');\n }", "public function index()\n\t{\n // $calls = DB::table('calls')->get();\n // return View::make('stock.calllist')\n // ->with('calls', $calls);\n $collection = collect(DB::table('kite_watch')->get());\n }", "public function printlist(){\r\n\t\t$parishID = Convert::raw2sql($this->request->getVar('ParishID'));\t\t\r\n\t\tif(!$this->canAccess($parishID)){\r\n\t\t\treturn $this->renderWith(array('Unathorised_access', 'App'));\r\n\t\t}\r\n\t\t\r\n\t\t$this->title = 'Media list';\t\t\r\n\t\treturn $this->renderWith(array('Media_printresults','Print'));\r\n\t}", "public function index()\n {\n $this->list->setText(trans('mconsole::personal.form.name'), 'name')\n ->setText(trans('mconsole::personal.form.position'), 'position')\n ->setSelect(trans('mconsole::settings.options.enabled'), 'enabled', [\n '1' => trans('mconsole::settings.options.on'),\n '0' => trans('mconsole::settings.options.off'),\n ], true);\n\n return $this->list->setQuery($this->person)->setAddAction('personal/create')->render(function ($item) {\n return [\n trans('mconsole::tables.state') => view('mconsole::indicators.state', $item),\n trans('mconsole::tables.id') => $item->id,\n trans('mconsole::personal.table.updated') => $item->updated_at->format('m.d.Y'),\n trans('mconsole::personal.table.name') => collect($item->name)->transform(function ($val, $key) {\n if (strlen($val) > 0) {\n return sprintf('<div class=\"label label-info\">%s</div> %s', $key, $val);\n }\n })->values()->implode('<br />'),\n trans('mconsole::personal.table.position') => collect($item->position)->transform(function ($val, $key) {\n if (strlen($val) > 0) {\n return sprintf('<div class=\"label label-info\">%s</div> %s', $key, $val);\n }\n })->values()->implode('<br />'),\n ];\n });\n }", "public function edit_watch_p(){\r\n\r\n\t\tif($this->expectsPost(array('watchId'))){\r\n\r\n\t\t\t$watch = $this->watch->getWatch($this->watchId);\r\n\r\n\t\t\tif($watch && $watch->userId == $this->session->userdata('userId')){\r\n\r\n\t\t\t\tarray_push($this->_headerData['javaScripts'],\r\n\t\t\t\t\t\"jquery.easy-autocomplete.min\", \"watch.autocomplete\");\r\n\r\n\t\t\t\tarray_push($this->_headerData['styleSheets'],\r\n\t\t\t\t\t\"easy-autocomplete.min\",\r\n\t\t\t\t\t\"easy-autocomplete.themes.min\"\r\n\t\t\t\t);\r\n\r\n\t\t\t\t$this->_headerData['headerClass'] = 'blue';\r\n\t\t\t\t$this->load->view('header', $this->_headerData);\r\n\t\t\t\t$this->load->view('measure/edit-watch', $watch);\r\n\t\t\t\t$this->load->view('footer');\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function index()\n {\n config(['app.name' => 'Recent ticket']);\n $tickets = Ticket::all()->whereIN(\"Status\", [\"inProgress\"])->sortByDesc(\"id\");\n $title = \"Recent tickets\";\n return view('home', compact('tickets','title'));\n\n }", "public function index()\n\t{\n $updates = Updates::latest('created_at')->published()->get();\n return view('admin.updates.index', compact('updates'));\n\t}", "public function index() {\r\n $this->logger->info(\"Action Index \");\r\n $this->template->display('listsettings');\r\n }", "public function _list()\n\t{\n\t\t_root::getRequest()->setAction('list');\n\t\t$tUsers = model_user::getInstance()->findAll();\n\n\t\t$oView = new _view('users::list');\n\t\t$oView->tUsers = $tUsers;\n\t\t$oView->showGroup = true;\n\t\t$oView->title = 'Tous les utilisateurs';\n\n\t\t$this->oLayout->add('work', $oView);\n\t}", "public function index()\n {\n return view('theme.default.update_jsons.json_list');\n }", "public function listSchedules()\n {\n $data = ['dates' => []];\n $scheduleRepository = $this->getRepository('schedule');\n $schedules = $scheduleRepository->loadSchedulesGrouped('date');\n foreach ($schedules as $key => $schedule) {\n $data['dates'][] = $schedule['date'];\n }\n\n return $this->render('showschedules', $data);\n }", "public function index()\n {\n $cmt = DB::table('tpl_comment')\n ->select('tpl_comment.*', 'users.firstName', 'users.lastName', 'users.username')\n ->join('users', 'users.id', '=', 'tpl_comment.user_id')->get();\n return view('pages.server.comment.list')\n ->with('cmt', $cmt);\n }", "public function index()\n {\n return view('showtimes.index', [Showtime::paginate(6)]);\n }", "public function index()\n {\n return view('polls.pollsList', [\n 'polls' => Poll::select('*')\n ->orderBy('created_at', 'desc')->get()\n ]); \n }", "private function showTicketList()\n {\n $settings = Utils::getPersonalizedSettings($this->db);\n\n /*$user_id = $settings->enable_issues_created_by_me ? \n $settings->enable_issues_created_by_me :\n null;*/\n\n $param = array(\n 'user_id' => null,\n 'source_id' => null,\n 'start' => 0,\n 'size' => 1\n );\n\n $TicketListRenderer = new TicketListRenderer($this->db, $this->template);\n $sql = $this->getTicketListSQL($param);\n//echo $sql;\n $total_ticket = $TicketListRenderer->countTicketList($sql);\n\n $data = array();\n $data['pagger_action_url'] = 'Ticket/ajax_list';\n $data['total_ticket'] = $total_ticket;\n \n $html = $TicketListRenderer->getTicketListView($data);\n \n return $html;\n }", "public function index()\n\t{\n\t\t// add the required page assets\n\t\t$this->css_assets[] = 'admin/admin.less';\n\t\t$this->css_assets[] = 'timeline/timeline_admin.less';\n\t\t\n\t\t$this->js_assets[] = 'timeline/timeline_admin.js';\n\t\t\n\t\t$this->js_assets[] = 'third_party/jquery.elastic.source.js';\n\t\t\n\t\t$this->css_assets[] = 'third_party/glDatePicker.smartlab.less';\n\t\t$this->js_assets[] = 'third_party/glDatePicker.min.js';\n\t\t$this->js_assets[] = 'default/date_picker.js';\n\t\t\n\t\t$this->content['timeline_settings'] = $this->application_settings;\n\t\t\n\t\t$this->content['calendar_division_options'] = array(\n\t\t\t'weeks'\t\t\t=> 'Weeks',\n\t\t\t'months'\t\t=> 'Months',\n\t\t\t'quarters'\t\t=> 'Quarters',\n\t\t\t'years'\t\t\t=> 'Years',\n\t\t);\n\t\t\n\t\t$this->content['workstreams'] = $this->workstream_model->get_workstreams();\n\t\t$this->content['max_workstreams'] = $this->workstream_model->get_max_workstreams();\n\t\t$this->content['workstream_colors'] = $this->workstream_model->get_default_colors();\n\t\t\n\t\t$this->wrap_views[]\n\t\t\t= $this->load->view('timeline/admin/workstreams/index', $this->content, TRUE);\n\t\t\n\t\t$this->render();\n\t}", "public function action_index()\n\t{\n\t\t\n\t\n\t\t\n\t\t//The title to show on the browser\n\t\t$this->template->html_head->title = __('updates');\n\t\t//update the content\n\t\t$this->template->content = view::factory(\"home/blocklist\");\n\t\t$this->template->content->title = __('updates');\n\t\t$this->template->content->description = '';\n\t\t\n\t\t//turn on bricking\r\n\t\t$this->template->html_head->script_files[] = 'media/js/jquery.masonry.min.js';\n\t\t\n\t\t$js_view = view::factory('home/blocklist_js');\r\n\t\t$this->template->html_head->script_views[] = $js_view;\n\t\t\n\t\t//get the updates that belong to this user\n\t\t$this->template->content->block_view = 'home/block/update_block';\n\t\t$this->template->content->list = ORM::factory('update')\n\t\t\t->where('user_id','=',$this->user->id)\n\t\t\t->order_by('date_created','DESC')\n\t\t\t->find_all();\n\t\t\n\t}", "public function index(){\n $musics = $this->Music->findMusic();\n\n $this->render('admin.musics.index', compact('musics'));\n }", "public function actionList()\n {\n $models = Newlist::find()->all();\n return $this->render('list',[\n 'models'=>$models,\n ]);\n }", "function watchfolders() {\r\n $this->name=\"watchfolders\";\r\n $this->title=\"<#LANG_MODULE_WATCHFOLDERS#>\";\r\n $this->module_category=\"<#LANG_SECTION_DEVICES#>\";\r\n $this->checkInstalled();\r\n}", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function index()\n {\n $countOfPlaylistsInHomePage = 12;\n $playlists = Playlist::orderBy('id','desc')->paginate($countOfPlaylistsInHomePage);\n $playlists->transform(function ($playlist) {\n if($playlist->availability_time != null) {\n $playlist->availability_time = Date('F j, Y, g:i a',strtotime($playlist->availability_time));\n } elseif (! $playlist->available) {\n $playlist->availability_time = __('masseges.not-available');\n }\n if($playlist->price == 0) $playlist->price = __('masseges.free');\n else $playlist->price .= ' $';\n return $playlist;\n });\n return view('home', ['playlists' => $playlists, 'isMylist' => false]);\n }", "public function index()\n {\n $films = Film::orderBy('created_at', 'desc')->paginate(9);\n\n return view('admin.list', [\n 'films' => $films\n ]);\n }", "public function index()\n {\n return Inertia::render('Playlist/Index', [\n 'playlists' => Playlist::where('user_id', Auth::id())->get(),\n ]);\n }", "public function listing();", "public function index()\n {\n $playlists = DB::table('playlists')\n ->where('userid', Auth::user()->id)\n ->get();\n $counter = 0;\n return view('playlist.index', compact('playlists', 'counter'));\n }", "public function renderList()\n {\n $this->template->articles = $this->articleManager->getArticles();\n }", "public function show()\n {\n $service = Config::get(\"ProjectLister::service\");\n $method = \"fetch_$service\";\n // Fetch\n $projects = self::$method();\n // Sort the list\n $projects = Project::sort( $projects );\n\n $output = '';\n foreach($projects as $project)\n {\n $template = ( Config::get(\"ProjectLister::template\") ) ? Config::get(\"ProjectLister::template\") : Project::getProjectTemplate();\n\n $template = str_replace('{{PROJECT_URL}}', $project->url, $template);\n $template = str_replace('{{PROJECT_NAME}}', htmlentities($project->name), $template);\n $template = str_replace('{{PROJECT_WATCHER_COUNT}}', $project->watchers, $template);\n $template = str_replace('{{PROJECT_DESCRIPTION}}', htmlentities($project->description), $template);\n $template = str_replace('{{PROJECT_SOURCE}}', $project->source, $template);\n $template = str_replace('{{PROJECT_WATCHER_NOUN}}', $project->watcher_noun, $template);\n\n $output .= $template . \"\\n\";\n }\n return $output;\n }", "function lists()\n {\n $data[\"data\"] = $this->RapatModel->get();\n $this->load->view('rapat/lists', $data);\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function index()\n\t{\n $config['list'] = FLYFlights::get()->toArray();\n $config['new'] = 'app.flights.create';\n $config['edit'] = 'app.flights.edit';\n $config ['title'] = 'Flights';\n $config['delete'] = 'app.flights.delete';\n $config['route'] = route('app.flights.create');\n\n\n return view('admin.list', $config);\n\t}", "public function index()\n {\n $playlists = Playlist::with(['murotal_reciter_surah_playlists' , 'murotal_reciter_surah'])->orderBy('name', 'asc')->get();\n return view('playlists.index',compact('playlists'))->with('i', (request()->input('page', 1) - 1) * 5);\n }", "public function listAction()\n {\t\n\t\t$this->createActivity(\"Admin\",\"List view\");\n $em = $this->getDoctrine()->getManager();\n\t\t$oEmTeacher=$em->getRepository('BoAdminBundle:Admin');\n $admin = $oEmTeacher->getTeacherList(\"Teacher\");\n\t\t$nb_tc = count($admin);\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null) $page=1;\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$admin = $oEmTeacher->getTeacherList(\"Teacher\",$offset,$nb_cpp);\n return $this->render('admin/index.html.twig', array(\n 'admin' => $admin,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"personnel\",\n\t\t\t'sm'=>\"admin\",\n ));\n }", "public function index(){\n \t\t$data = array( 'page_title' => 'List of Religion', );\n \t\t$data['ListOfReligion'] = $this->Religion_model->ShowList();\n \t\t$this->parser->parse('religion/religionlist', $data);\n \t}", "public function indexAction()\n {\n $this->view->widget = $this->_getWidget();\n }", "static function info($id){\n if(!CUtente::verificalogin())header('Location: /Progetto/Utente/homepagedef');\n else{\n if(FPersistentManager::exist('id',$id,'FWatchlist')){\n session_start();\n $_SESSION['location']='/Watchlist/info?id='.$id;\n $watchlist=FPersistentManager::load('id',$id,'FWatchlist');\n $watchlist=clone($watchlist[0]);\n if($watchlist->getProprietario()==$_SESSION['utente']->getUsername()||$watchlist->isPubblico()){\n if(isset($_SESSION['visti']))$visti=$_SESSION['visti'];\n else $visti=null;\n $view = new VWatchlist();\n $view->info($watchlist,$_SESSION['utente'],$watchlist->Base64(),$visti);}\n else header('Location: /Progetto/Utente/homelog');\n //modifica\n }\n else{\n CFrontController::errore();\n }\n }\n}", "public function index()\n {\n $cfplayers = new \\App\\Models\\crossfire\\Cfplayers();\n $records = $cfplayers->findAll();\n \n // get a template parser\n $parser = \\Config\\Services::parser();\n \n // tell it about the substitions\n return $parser->setData(['records' => $records])\n // and have it render the template with those\n ->render('crossfire/cfplayerList');\n }", "public function index()\n {\n $this->list_view();\n }" ]
[ "0.68075293", "0.63878006", "0.6366635", "0.6137015", "0.6128828", "0.61054224", "0.609995", "0.6005702", "0.59659207", "0.5964365", "0.59043854", "0.5882229", "0.5850973", "0.58192754", "0.5798001", "0.5794516", "0.5789236", "0.57879555", "0.5784467", "0.5780584", "0.5754217", "0.57295793", "0.5714742", "0.5704548", "0.56969774", "0.5688555", "0.56837547", "0.5666157", "0.5649073", "0.5648164", "0.5645317", "0.5644685", "0.56352216", "0.56350195", "0.56286377", "0.56269556", "0.56106496", "0.5606268", "0.55965686", "0.5593245", "0.55816", "0.55693924", "0.5568892", "0.55661225", "0.55657995", "0.5564893", "0.55598986", "0.5556672", "0.555643", "0.5553162", "0.55523556", "0.5550059", "0.5549887", "0.5536095", "0.5534411", "0.55309886", "0.55206347", "0.55200535", "0.5518241", "0.5513326", "0.5512017", "0.5511914", "0.55103004", "0.55085444", "0.55078423", "0.5506218", "0.55044013", "0.5502768", "0.5501021", "0.54967386", "0.54792064", "0.5471961", "0.54665005", "0.54613346", "0.5456694", "0.5455927", "0.5455852", "0.5437242", "0.54332435", "0.54308426", "0.54300076", "0.5425139", "0.54180944", "0.5408997", "0.5405866", "0.53998023", "0.5397368", "0.5393893", "0.5392977", "0.539216", "0.53902197", "0.53888124", "0.5386442", "0.5385293", "0.53824085", "0.5382358", "0.5381144", "0.5379341", "0.5371696", "0.537068" ]
0.7876142
0
Roles assigned to the Associate within a Business Unit.
public function getAssociateRoleAssignments() { return $this->associateRoleAssignments; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function getRoles();", "public function roles();", "public function roles();", "public function roles();", "public function roles();", "public function getRoles()\n {\n }", "public function getRoles()\n {\n }", "public function getRoles()\n {\n }", "public function findRoles() {\n\t\t\n\t}", "public function & GetRoles ();", "public function setRoles()\n {\n if (!array_key_exists(User::ROLE_ADMINISTRATOR, Yii::$app->authManager->getRolesByUser(Yii::$app->user->getId()))) {\n $array = Yii::$app->authManager->getRoles();\n unset($array[self::ADMINISTRATOR]);\n } else {\n $array = Yii::$app->authManager->getRoles();\n }\n\n $roles = ArrayHelper::map(Yii::$app->authManager->getRoles(), 'name', 'name');\n\n $now = Yii::$app->authManager->getRolesByUser(Yii::$app->user->getId());\n\n //unset($roles[array_search('super_administrator', $roles)]);\n unset($roles[array_search('user', $roles)]);\n\n foreach ($roles as $key => $role) {\n $roles[$key] = Yii::t('backend', $role);\n }\n\n if (array_key_exists(User::ROLE_CUSTOMER, Yii::$app->authManager->getRolesByUser(Yii::$app->user->getId()))) {\n $key = array_search(User::ROLE_CUSTOMER, $roles);\n $roles = array_intersect_key($roles, [$key => $roles[$key]]);\n }\n\n return $roles;\n }", "public function getAvailableRoles() ;", "public function testGettingRoles()\n {\n $this->assertEquals(['baz'], $this->principal->getRoles());\n }", "protected abstract function getAllowedRoles();", "public function getRoles()\r\n {\r\n return \\yii\\helpers\\ArrayHelper::map(\r\n $this->hasMany(AuthAssignment::className(), ['user_id' => 'user_id'])\r\n ->select(['id'=>'item_name', 'value'=>'description'])\r\n ->join('left join', 'auth_item', 'auth_item.name = auth_assignment.item_name')\r\n ->asArray()->all(),\r\n 'value', 'id');\r\n }", "public function getProductionRoles();", "public function getRoles()\n {\n return array('1');\n }", "public function getRoles() \n {\n return $this->roles;\n }", "function populate_roles()\n {\n }", "public function getRoles()\r\n {\r\n return $this->roles;\r\n }", "public function actionRoles()\n\t{\n\t\tYii::app()->user->rightsReturnUrl = array('authItem/roles');\n\t\t\n\t\t$dataProvider = new RAuthItemDataProvider('roles', array(\n\t\t\t'type'=>CAuthItem::TYPE_ROLE,\n\t\t\t'sortable'=>array(\n\t\t\t\t'id'=>'RightsRoleTableSort',\n\t\t\t\t'element'=>'.role-table',\n\t\t\t\t'url'=>$this->createUrl('authItem/sortable'),\n\t\t\t),\n\t\t));\n\n\t\t// Render the view\n\t\t$this->render('roles', array(\n\t\t\t'dataProvider'=>$dataProvider,\n\t\t\t'isBizRuleEnabled'=>$this->module->enableBizRule,\n\t\t\t'isBizRuleDataEnabled'=>$this->module->enableBizRuleData,\n\t\t));\n\t}", "public function init_roles()\n {\n }", "public function getRoles()\n {\n return [$this->role];\n }", "public function getRoles()\n {\n return [$this->role];\n }", "public function rolesForUser();", "public function getRoles()\n\t{\n\t\t$roles = array_map(function($value)\n\t\t{\n\t\t\treturn Html::a($value, $value->links['self']);\n\t\t}, $this->entity->roles);\n\n\t\treturn join('<br>', $roles);\n\t}", "public function getRoles()\n {\n #obsolete, I don't wnat user roles, I want the permission those roles are linked to\n # so I just need a getPermissions once, store those constants in a small session array\n #$roles = $this->roles;\n\n #d($roles);\n\n #foreach ($roles as $role) {\n # echo $role->name;\n #}\n }", "public function getRoles(){\n\n return $this->_arrRoles;\n \n }", "public function getRoles()\n {\n return $this->roles;\n }", "public function getRoles()\n {\n return $this->roles;\n }", "public function getRoles()\n {\n return $this->roles;\n }", "public function getRoles()\n {\n return $this->roles;\n }", "public function getRoles()\n {\n return $this->roles;\n }", "public function getRoles()\n {\n return $this->roles;\n }", "private function setRoles() {\r\n\t\t$all_roles = array(); $role = Model_Role::retrieve(); \r\n\t\tforeach ($role->fetchEntries(array(\r\n \t\t'NAME', 'PARENT' => new Data_Column('PARENT_ROLE_ID', null, $role, 'NAME'))) as $rel)\r\n\t\t{\t\r\n \t\t$all_roles[$rel['NAME']] = array($rel['PARENT']);\r\n\t\t}\r\n\t\t\r\n\t\t// get users with role reslationship \r\n\t\t$userRole = Model_User_Role::retrieve(); \r\n\t\tforeach ($userRole->fetchEntries(array(\r\n \t\t'NAME' => new Data_Column('USER_ID', null, $userRole, 'LOGIN'),\r\n \t\t'PARENT' => new Data_Column('ROLE_ID', null, $userRole, 'NAME')), null, true) as $rel)\r\n\t\t{\t\t\t\r\n\t\t // one user can belong to more than one role\r\n\t\t\tif (array_key_exists($rel['NAME'], $all_roles))\r\n\t\t array_push($all_roles[$rel['NAME']], $rel['PARENT']);\r\n\t\t else\r\n\t\t $all_roles[$rel['NAME']] = array($rel['PARENT']);\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\t// now register all roles and users from database as application roles\r\n\t\tforeach ($all_roles as $name => $roles) {\r\n\t\t $this->_registerRole($name, $all_roles);\r\n\t\t}\r\n\t\t\r\n\t\t//$this->_registerRole('Guest', array());\r\n\t}", "public function getRoles()\n {\n return array($this->role);\n }", "function getRoles () {\n return array(\"user.image.edit\",\"user.image.view\");\n }", "function getAllRoles(){\r\n $data = new \\Cars\\Data\\Common($this->app);\r\n return $data->getAllRoles();\r\n }", "function get_editable_roles()\n {\n }", "function populate_roles_210()\n {\n }", "public function getRoles()\n {\n return array(\"ROLE_\".$this->getUserGroup());\n }", "public function getRoles() {\n return $this->getRelation(\"roles\");\n }", "public function getRoles(): array;", "public function get_role()\n {\n }", "function getRoles () {\n return array(\"user.friendRequest.edit\",\"user.friendRequest.view\");\n }", "protected function get_roles_data()\n {\n }", "public function getRoles()\n {\n return $this->getRelation('roles');\n }", "function get_role_list() {\n\t\treturn $this->db->get('system_security.security_role');\n\t\t\n\t}", "function populate_roles_230()\n {\n }", "public function getRoles(): array\n {\n return [$this->role];\n }", "public function getRoles()\n {\n return $this->hasMany(AuthRole::className(), ['id' => 'role_id'])->viaTable('auth_user_role', ['user_id' => 'id']);\n }", "public static function getRoles()\n {\n return self::$roles;\n }", "function populate_roles_160()\n {\n }", "public function getRoles(): array\n\t{\n\t\treturn $this->roles;\n\t}", "public function getAllRoles()\n {\n return $this->roles;\n }", "public function getRoles(): array\n {\n return $this->roles;\n }", "public function getRoles(): array\n {\n return $this->roles;\n }", "public function getRoles(){\n\n $roles = $this->visiteur_roles->map(function($role){\n return $role->getTitle();\n })->ToArray();\n\n $roles[]= 'ROLE_USER';\n \n return $roles;\n }", "public function getRoles()\n\t{\n\t\treturn $this->roles->toArray();\n\t}", "public function roles()\n {\n return [\n 'traveller', 'sender'\n ];\n }", "public static function getRolesMap()\n {\n return ArrayHelper::map(static::getNotDefaultRoles(), 'name', 'description');\n }", "public function surrogateRoles()\n {\n return array();\n }", "public function getRoles(): iterable\n {\n return [];\n }", "public function getAuthUserRoles()\n {\n return $this->hasMany(AuthUserRole::className(), ['user_id' => 'id']);\n }", "protected function initRoles()\n {\n $this->roles = new ArrayCollection();\n }", "public function roles()\n {\n $this->roles = $this->Role->list($_SESSION['guild_id']);\n }", "public function getUsuarioRolesAttribute()\n {\n $roles=$this->roles;\n foreach ($roles as $role)\n {\n echo $role->nombre.\"<br>\";\n }\n }", "function populate_roles_280()\n {\n }", "function getRoles()\n {\n $roles = array();\n\n foreach ($this->grupos as $grupo) {\n $roles[] = $grupo->getRole();\n }\n return $roles;\n }", "public function getDirectRoles() {\n return $this->roles;\n }", "public function getRoles()\n {\n return $this->getMemberRoles()->toArray();\n }", "public static function getAccessibleRoles() {\n $roles = [\n 'super_admin',\n 'administrator',\n 'shop_manager',\n 'editor',\n 'author',\n 'contributor',\n ];\n return apply_filters('core_standards/admin/accessible_roles', $roles);\n }", "public function getRoles()\n {\n $roles = $this->roles;\n\n $roles[] = 'IS_AUTHENTICATED_FULLY';\n\n return array_unique($roles);\n }", "function egsr_custom_site_roles(){\n\n return Array ( \n // STAFF_ROLE => Array (\n // 'label' => STAFF_ROLE_LABEL,\n // 'caps' => egsr_staff_cap(),\n // ),\n GROUP_EDITOR_ROLE => Array (\n 'label' => GROUP_EDITOR_ROLE_LABEL,\n 'caps' => egsr_group_editor_cap(),\n ),\n GROUP_ADMIN_ROLE => Array (\n 'label' => GROUP_ADMIN_ROLE_LABEL,\n 'caps' => egsr_group_admin_cap(),\n ),\n );\n\n}", "public function getAllRoles(): array;", "protected function getRoles() {\n return $this->roleStorage->loadMultiple();\n }", "public function roles()\n {\n return $this->belongsToMany(config('gate.models.role'));\n }", "public function getAssignedRoles($id);", "public function getRoles()\n {\n return $this->roles->toArray();\n }", "public function getRoles()\n {\n return $this->roles->toArray();\n }", "function owa_translate_role($roles) {\r\n\t\r\n\tif (!empty($roles)) {\r\n\t\r\n\t\tif (in_array('administrator', $roles)) {\r\n\t\t\t$owa_role = 'admin';\r\n\t\t} elseif (in_array('editor', $roles)) {\r\n\t\t\t$owa_role = 'viewer';\r\n\t\t} elseif (in_array('author', $roles)) {\r\n\t\t\t$owa_role = 'viewer';\r\n\t\t} elseif (in_array('contributor', $roles)) {\r\n\t\t\t$owa_role = 'viewer';\r\n\t\t} elseif (in_array('subscriber', $roles)) {\r\n\t\t\t$owa_role = 'everyone';\r\n\t\t} else {\r\n\t\t\t$owa_role = 'everyone';\r\n\t\t}\r\n\t\t\r\n\t} else {\r\n\t\t$owa_role = 'everyone';\r\n\t}\r\n\t\r\n\treturn $owa_role;\r\n}", "function testGetRoles() {\n $u1 = User::getOneFromDb(['user_id' => 101], $this->DB);\n $u2 = User::getOneFromDb(['user_id' => 110], $this->DB);\n $u3 = new User(['user_id' => 50, 'username' => 'fjones', 'screen_name' => 'jones, fred', 'DB' => $this->DB]);\n $u4 = User::getOneFromDb(['user_id' => 109], $this->DB);\n\n $r1 = $u1->getRoles();\n $this->assertEqual(1,count($r1));\n $this->assertEqual('field user',$r1[0]->name);\n\n $r2 = $u2->getRoles();\n $this->assertEqual(1,count($r2));\n $this->assertEqual('manager',$r2[0]->name);\n\n $r3 = $u3->getRoles();\n $this->assertEqual(1,count($r3));\n $this->assertEqual('public',$r3[0]->name);\n\n $r4 = $u4->getRoles();\n $this->assertEqual(1,count($r4));\n $this->assertEqual('public',$r4[0]->name);\n }", "static function add_roles(): void {\r\n\t\tself::add_acf_inner_field(self::divisions, self::roles, [\r\n\t\t\t'label' => 'Roles',\r\n\t\t\t'type' => 'repeater',\r\n\t\t\t'instructions' => '',\r\n\t\t\t'required' => 0,\r\n\t\t\t'conditional_logic' => 0,\r\n\t\t\t'wrapper' => [\r\n\t\t\t\t'width' => '',\r\n\t\t\t\t'class' => '',\r\n\t\t\t\t'id' => '',\r\n\t\t\t],\r\n\t\t\t'collapsed' => '',\r\n\t\t\t'min' => '1',\r\n\t\t\t'max' => '',\r\n\t\t\t'layout' => 'block',\r\n\t\t\t'button_label' => 'Add role'\r\n\t\t]);\r\n\t}", "public function getRoles(){\n $sql = \"SELECT * FROM rol\";\n\n foreach ($this->bd->query($sql) as $res) {\n $this->rol[] = $res;\n }\n return $this->rol;\n }", "public function getRolesNames ();", "public function roles()\n {\n\n $roles = get_editable_roles();\n $output = array();\n foreach ($roles as $key => $val) {\n $output[$key] = $val['name'];\n }\n return $output;\n }", "public function actionUserRole ()\n\t\t{\n\t\t\t$userClass = $this->module->modelUser;\n\t\t\t$post = Yii::$app->request->post();\n\t\t\t$user = $userClass::findOne($post[ 'id' ]);\n\t\t\tif (!is_null($user))\n\t\t\t{\n\n\t\t\t\tLogManager::info(Yii::tr('Пользователю {user} забрали права {roles}', [ 'user' => Html::a($user->name, Url::toRoute([ 'user/view', 'id' => $user->id ])), 'roles' => implode(',', $user->getRolesNames()) ]));\n\t\t\t\t$user->revokeAllRoles();\n\t\t\t\tif (is_array($post[ 'roles' ]))\n\t\t\t\t{\n\t\t\t\t\tforeach ($post[ 'roles' ] as $item)\n\t\t\t\t\t{\n\t\t\t\t\t\t$user->assignRole($item);\n\t\t\t\t\t}\n\t\t\t\t\tLogManager::info(Yii::tr('Пользователю {user} добавили права {roles}', [ 'user' => Html::a($user->name, Url::toRoute([ 'user/view', 'id' => $user->id ])), 'roles' => implode(',', $post[ 'roles' ]) ]));\n\t\t\t\t}\n\t\t\t}\n\t\t\tYii::$app->end();\n\t\t}", "public function getRoles()\n {\n return ['ROLE_SUPPLIERS'];\n }", "public function saveRoles()\n {\n Yii::$app->authManager->revokeAll($this->getId()); \n\n if (is_array($this->roles)) {\n foreach ($this->roles as $roleName) {\n if ($role = Yii::$app->authManager->getRole($roleName)) {\n Yii::$app->authManager->assign($role, $this->getId());\n }\n }\n }\n }", "function get_user_roles()\n{\n $roles = get_acl()->getRoles();\n foreach ($roles as $key => $val) {\n $roles[$val] = __(Inflector::humanize($val));\n unset($roles[$key]);\n }\n return $roles;\n}", "function populate_roles_270()\n {\n }", "public function roles()\n {\n return $this->belongsToMany(config('rpac.models.role'))->withTimestamps();\n }", "function wp_roles()\n {\n }", "public function testAllRoles()\n {\n }", "public function testRolesAreAppledToAdminAndEditor() {\n\t\tberry_activation();\n\t\t$admin = get_role( 'administrator' );\n\t\t$this->assertTrue( $admin->has_cap( 'berry_admin' ) );\n\n\t\t$editor = get_role( 'editor' );\n\t\t$this->assertTrue( $editor->has_cap( 'berry_user' ) );\n\n\t}", "public function roles()\n {\n return $this->belongsToMany(\n Config::get('able.role'),\n Config::get('able.role_group_table'),\n Config::get('able.group_foreign_key'),\n Config::get('able.role_foreign_key')\n );\n }", "public function getRoles()\n {\n $roles = Role::all();\n\n return Datatables::of($roles)\n ->editColumn('routes', function ($role) {\n return htmlentities(strlen($role->getOriginal('routes')) > 50 ? substr($role->getOriginal('routes'), 0, 50) : $role->getOriginal('routes'));\n })\n ->addColumn('actions', function ($role) {\n $editBtn = '<a style=\"margin-right: 0.2em;\" href=\"' . url('admin/roles/' . $role->id . '/edit/') . '\" title=\"Edit\"><i class=\"fa fa-2 fa-pencil\"></i></a>';\n $deleteBtn = '';\n if ($role->name != 'Admin') {\n $deleteBtn = '&nbsp;<a href=\"' . url('admin/roles/' . $role->id) . '\" class=\"message_box text-danger\" data-box=\"#message-box-delete\" data-action=\"DELETE\" title=\"Permanent Delete\"><i class=\"fa fa-2 fa-remove\"></i></i></a>';\n }\n return $editBtn . $deleteBtn;\n })->make(true);\n }", "public function testAddRole()\n {\n $this->assertEquals([[PhpAro::DEFAULT_ROLE]], $this->Acl->Aro->roles('foobar'));\n $this->Acl->Aro->addRole(['User/foobar' => 'Role/accounting']);\n $this->assertEquals([['Role/accounting'], ['User/foobar']], $this->Acl->Aro->roles('foobar'));\n }", "public function getRole() {}", "public function getRoles(): array\n {\n return ['admin'];\n }" ]
[ "0.6694041", "0.65940017", "0.65940017", "0.65940017", "0.65940017", "0.64258134", "0.64258134", "0.64258134", "0.64257103", "0.64110005", "0.6319658", "0.63041854", "0.62873995", "0.62813336", "0.62531734", "0.6238071", "0.623798", "0.62242955", "0.6222007", "0.6203942", "0.6184376", "0.61510026", "0.614842", "0.614842", "0.6139082", "0.6130951", "0.6116216", "0.6093556", "0.60899204", "0.60899204", "0.60899204", "0.60899204", "0.60899204", "0.60899204", "0.6071989", "0.6062451", "0.5998728", "0.59957165", "0.5968928", "0.5968608", "0.5961976", "0.595817", "0.59174705", "0.5898086", "0.58974886", "0.5882657", "0.5872343", "0.5870773", "0.58681244", "0.5855481", "0.58533907", "0.5845258", "0.5842488", "0.5839988", "0.5837547", "0.5827169", "0.5827169", "0.5817041", "0.5807132", "0.5805575", "0.57926893", "0.5791856", "0.5786691", "0.5781656", "0.5772594", "0.5769602", "0.5768886", "0.576276", "0.5758767", "0.5750129", "0.57452637", "0.5742225", "0.57378685", "0.5737314", "0.5737033", "0.5723141", "0.5721055", "0.5717669", "0.5704418", "0.5704418", "0.57040274", "0.56947494", "0.56926334", "0.56765306", "0.5671688", "0.5668981", "0.566612", "0.5663012", "0.56625396", "0.566019", "0.5659943", "0.5647931", "0.56458956", "0.5643912", "0.56389433", "0.5631522", "0.56305414", "0.5620799", "0.5618785", "0.5615051" ]
0.5685961
83
Deprecated type. Use associateRoleAssignment instead.
public function getRoles() { return $this->roles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function assignRole ($name);", "public function attachRole($role);", "public function attachRole($role);", "public function assign($role, $permission);", "public function assignRole($role)\n {\n return $this->roles()->sync([$role]);\n }", "public function testUpdateRole()\n {\n }", "public function testUpdateRole()\n {\n }", "function add_role($role, $display_name, $capabilities = array())\n {\n }", "function roleUpdate(Role $new, ?Role $old);", "public function setRole($role);", "public function getRole() {}", "public function to($role);", "function egsr_change_roles_names() {\n global $wp_roles;\n \n if ( ! isset( $wp_roles ) )\n $wp_roles = new WP_Roles();\n \n $wp_site_roles = egsr_default_wp_site_roles();\n foreach ($wp_site_roles as $key => $value) {\n // Change role name\n $wp_roles->roles[$key]['name'] = $wp_roles->roles[$key]['name'] .' (Deprecated)';\n $wp_roles->role_names['contributor'] = $wp_roles->role_names[$key] .'$wp_roles->roles[$key]'; \n }\n}", "public function setAuthenticatedRole($role);", "public function add_role($role)\n {\n }", "public function testCreateRole()\n {\n }", "public function testCreateRole()\n {\n }", "public function get_role()\n {\n }", "public function getRole();", "public function getRole();", "public function getRole() : string;", "public function addRole($username, $role);", "public function role() {\n\t\treturn $this->has_one('Role_Assignment', 'user_id');\n\t}", "public static function role(): Role\n {\n return new Role;\n }", "public function assignRole($role)\n {\n return $this->roles()->save(\n Role::whereName($role)->firstOrFail()\n );\n }", "public function assignRole($role)\n {\n return $this->roles()->save(\n Role::whereName($role)->firstOrFail()\n );\n }", "function getAutoAssignRole() {\n \t$role_id = $this->getAutoAssignRoleId();\n \treturn $role_id ? Roles::findById($role_id) : null;\n }", "public function assignRole($role)\n {\n return $this->role()->save(\n Role::whereName($role)->firstOrFail()\n );\n }", "public function assignRole($role)\n {\n return $this->roles()->attach($role);\n }", "function create_role($name, $shortname, $description, $legacy='') {\n\n // check for duplicate role name\n\n if ($role = get_record('role','name', $name)) {\n error('there is already a role with this name!');\n }\n\n if ($role = get_record('role','shortname', $shortname)) {\n error('there is already a role with this shortname!');\n }\n\n $role = new object();\n $role->name = $name;\n $role->shortname = $shortname;\n $role->description = $description;\n\n //find free sortorder number\n $role->sortorder = count_records('role');\n while (get_record('role','sortorder', $role->sortorder)) {\n $role->sortorder += 1;\n }\n\n if (!$context = get_context_instance(CONTEXT_SYSTEM)) {\n return false;\n }\n\n if ($id = insert_record('role', $role)) {\n if ($legacy) {\n assign_capability($legacy, CAP_ALLOW, $id, $context->id);\n }\n\n /// By default, users with role:manage at site level\n /// should be able to assign users to this new role, and override this new role's capabilities\n\n // find all admin roles\n if ($adminroles = get_roles_with_capability('moodle/role:manage', CAP_ALLOW, $context)) {\n // foreach admin role\n foreach ($adminroles as $arole) {\n // write allow_assign and allow_overrid\n allow_assign($arole->id, $id);\n allow_override($arole->id, $id);\n }\n }\n\n return $id;\n } else {\n return false;\n }\n\n}", "function remove_role($role)\n {\n }", "public static function createRole()\n {\n add_action('init', __NAMESPACE__ . '\\DigitalWebmaster::renameAdministratorRole');\n }", "function wpcom_vip_stats_roles( array $roles ) {\n _deprecated_function( __FUNCTION__, '2.0.0' );\n}", "function roleCreate(Role $role);", "public function AddRole ($roleName = NULL, $idRole = NULL);", "public function get_role($role)\n {\n }", "function lb_subscription_grant_role($account, $subscription) {\n user_multiple_role_edit(array($account->uid), 'add_role', $subscription->field_assign_role[LANGUAGE_NONE][0]['rid']);\n}", "public function set_role($role)\n {\n }", "public function detachRole($role);", "function associatePermissionsToRole()\n {\n $retObj = array();\n try {\n\n if (isset($_POST['role_id']))\n {\n $permission_ids = json_decode($_POST['permission_ids']);\n $params = array(\n 'role_id' => $_POST['role_id'],\n 'permission_ids' => $permission_ids\n );\n\n $objAcl = new AclManager();\n $retObj['completed'] = false;\n $response = $objAcl->associatePermissionsToRole($params);\n $retObj['completed'] = true;\n\n } else {\n\n throw new \\Exception('Unsupported Request: missing critical parameter(s).');\n\n }\n\n\n } catch (\\Exception $e) {\n\n Api::invalidResponse(\n $e->getMessage(),\n 400,\n Constants::STATUS_INVALID,\n $e,\n true,\n true\n );\n\n }\n\n return Api::apiResponse($retObj, Constants::STATUS_SUCCESSFUL);\n }", "public function role()\n {\n return $this->belongsTo(Role::class, 'role_id', 'role_id');\n }", "public function add_role($role, $display_name, $capabilities = array())\n {\n }", "protected function registerUserRoleEloquent()\n {\n $this->app->bind('antares.user.role', function () {\n return new UserRole();\n });\n }", "function getRole()\n {\n return $this->role;\n }", "function getRole() {\n\t\treturn 1;\n\t}", "public function getRole(){\n return $this->role; \n }", "public function assignRole(Role $role)\n {\n return $this->role()->associate($role);\n }", "public function addRole(AScope $scope)\n {\n throw new \\RuntimeException('This method have to be overridden.');\n }", "public function role()\n {\n return $this->belongsTo('\\\\Neoflow\\\\CMS\\\\Model\\\\RoleModel', 'role_id');\n }", "public function role()\n {\n return $this->belongsTo('\\\\Neoflow\\\\CMS\\\\Model\\\\RoleModel', 'role_id');\n }", "public function role() {\n return $this->belongsTo('App\\Role');\n }", "function getName() {\n\t\treturn \"role\";\n\t}", "protected function userRole() : string\n {\n return 'user';\n }", "public function toggleRole($request);", "public function remove_role($role)\n {\n }", "function get_legacy_roles() {\n return array(\n 'admin' => 'moodle/legacy:admin',\n 'coursecreator' => 'moodle/legacy:coursecreator',\n 'editingteacher' => 'moodle/legacy:editingteacher',\n 'teacher' => 'moodle/legacy:teacher',\n 'student' => 'moodle/legacy:student',\n 'guest' => 'moodle/legacy:guest',\n 'user' => 'moodle/legacy:user'\n );\n}", "public function remove_role($role)\n {\n }", "public function role()\n {\n return $this->belongsTo(Role::class, 'role_id');\n }", "public function role()\n {\n return $this->belongsTo(Role::class, 'role_id');\n }", "public function role() {\n return $this->belongsTo('App\\Role');\n }", "public function unassign($role, $permission);", "public function assignRole($role)\n {\n $roles = is_array($role) ? $role : [$role];\n $roles = array_map(function($role) {\n return is_string($role) ? Role::find($role) : $role;\n }, $roles);\n $this->set('roles', $roles);\n $result = TableFactory::getUserModel()\n ->save($this) !== false;\n RolesTableTrait::refreshCache($this->id);\n\n return $result;\n }", "public function role()\n {\n return $this->belongsTo('App\\Role');\n }", "public function getRole() \n {\n return $this->role;\n }", "public function giveRole($role)\n {\n return Role::whereName($role)\n ->firstOrFail()\n ->assignRoleTo($this);\n }", "public function role()\n {\n return $this->belongsToMany(Role::class)->withTimestamps();\n }", "public function role() {\n return $this->belongsTo(Role::class);\n }", "public function role() {\n return $this->belongsTo(Role::class);\n }", "public function getRole(): ?string\n { \n return $this->role;\n }", "private function role_assigned($event) {\n global $DB;\n $contextlevel = $event->contextlevel;\n $userid = $event->relateduserid;\n $gmail = $this->get_google_authenticated_users_gmail($userid);\n $insertcalls = array();\n if ($contextlevel == 40) {\n // Category role assigned.\n $categoryid = $event->contextinstanceid;\n $courses = $DB->get_records('course', array('category' => $categoryid), '', 'id, visible');\n foreach ($courses as $course) {\n $courseid = $course->id;\n $course = $DB->get_record('course', array('id' => $courseid), 'visible');\n $coursecontext = context_course::instance($courseid);\n $coursemodinfo = get_fast_modinfo($courseid, -1);\n $cms = $coursemodinfo->get_cms();\n foreach ($cms as $cm) {\n $cmid = $cm->id;\n $cmcontext = context_module::instance($cmid);\n $fileids = $this->get_fileids($cmid);\n if ($fileids) {\n foreach ($fileids as $fileid) {\n if (has_capability('moodle/course:view', $coursecontext, $userid)) {\n // Manager; insert writer permission.\n $call = new stdClass();\n $call->fileid = $fileid;\n $call->gmail = $gmail;\n $call->role = 'writer';\n $insertcalls[] = $call;\n if (count($insertcalls) == 1000) {\n $this->batch_insert_permissions($insertcalls);\n $insertcalls = array();\n }\n } elseif (is_enrolled($coursecontext, $userid, null, true) && has_capability('moodle/course:manageactivities', $cmcontext, $userid)) {\n // Teacher (enrolled) (active); insert writer permission.\n $call = new stdClass();\n $call->fileid = $fileid;\n $call->gmail = $gmail;\n $call->role = 'writer';\n $insertcalls[] = $call;\n if (count($insertcalls) == 1000) {\n $this->batch_insert_permissions($insertcalls);\n $insertcalls = array();\n }\n } elseif (is_enrolled($coursecontext, $userid, null, true)) {\n // Student (enrolled) (active); do nothing (user_enrolment_created handles reader permission).\n } else {\n // Unenrolled user; do nothing (user enrolment would not have changed during this event).\n }\n }\n }\n }\n }\n } elseif ($contextlevel == 50) {\n // Course role assigned.\n $courseid = $event->courseid;\n $course = $DB->get_record('course', array('id' => $courseid), 'visible');\n $coursecontext = context_course::instance($courseid);\n $coursemodinfo = get_fast_modinfo($courseid, -1);\n $cms = $coursemodinfo->get_cms();\n foreach ($cms as $cm) {\n $cmid = $cm->id;\n $cmcontext = context_module::instance($cmid);\n $fileids = $this->get_fileids($cmid);\n if ($fileids) {\n foreach ($fileids as $fileid) {\n if (has_capability('moodle/course:view', $coursecontext, $userid)) {\n // Manager; insert writer permission.\n $call = new stdClass();\n $call->fileid = $fileid;\n $call->gmail = $gmail;\n $call->role = 'writer';\n $insertcalls[] = $call;\n if (count($insertcalls) == 1000) {\n $this->batch_insert_permissions($insertcalls);\n $insertcalls = array();\n }\n } elseif (is_enrolled($coursecontext, $userid, null, true) && has_capability('moodle/course:manageactivities', $cmcontext, $userid)) {\n // Teacher (enrolled) (active); insert writer permission.\n $call = new stdClass();\n $call->fileid = $fileid;\n $call->gmail = $gmail;\n $call->role = 'writer';\n $insertcalls[] = $call;\n if (count($insertcalls) == 1000) {\n $this->batch_insert_permissions($insertcalls);\n $insertcalls = array();\n }\n } elseif (is_enrolled($coursecontext, $userid, null, true)) {\n // Student (enrolled) (active); do nothing (user_enrolment_created handles reader permission).\n } else {\n // Unenrolled user; do nothing (user enrolment would not have changed during this event).\n }\n }\n }\n }\n } else if ($contextlevel == 70) {\n // Course module role assigned.\n $cmid = $event->contextinstanceid;\n $cmcontext = context_module::instance($cmid);\n $fileids = $this->get_fileids($cmid);\n if ($fileids) {\n foreach ($fileids as $fileid) {\n if (has_capability('moodle/course:view', $coursecontext, $userid)) {\n // Manager; insert writer permission.\n $call = new stdClass();\n $call->fileid = $fileid;\n $call->gmail = $gmail;\n $call->role = 'writer';\n $insertcalls[] = $call;\n if (count($insertcalls) == 1000) {\n $this->batch_insert_permissions($insertcalls);\n $insertcalls = array();\n }\n } elseif (is_enrolled($coursecontext, $userid, null, true) && has_capability('moodle/course:manageactivities', $cmcontext, $userid)) {\n // Teacher (enrolled) (active); insert writer permission.\n $call = new stdClass();\n $call->fileid = $fileid;\n $call->gmail = $gmail;\n $call->role = 'writer';\n $insertcalls[] = $call;\n if (count($insertcalls) == 1000) {\n $this->batch_insert_permissions($insertcalls);\n $insertcalls = array();\n }\n } elseif (is_enrolled($coursecontext, $userid, null, true)) {\n // Student (enrolled) (active); do nothing (user_enrolment_created handles reader permission).\n } else {\n // Unenrolled user; do nothing (user enrolment would not have changed during this event).\n }\n }\n }\n \n }\n\n // Call any remaining batch requests.\n if (count($insertcalls) > 0) {\n $this->batch_insert_permissions($insertcalls);\n }\n }", "public function roles();", "public function roles();", "public function roles();", "public function roles();", "public function role()\n {\n return $this->belongsTo(Role::class);\n }", "public function role()\n {\n return $this->belongsTo(Role::class);\n }", "public function role()\n {\n return $this->belongsTo(Role::class);\n }", "public function role()\n {\n return $this->belongsTo(Role::class);\n }", "public function role()\n {\n return $this->belongsTo(Role::class);\n }", "public function role()\n {\n return $this->belongsTo(Role::class);\n }", "public function role()\n {\n return $this->belongsTo(Role::class);\n }", "public function role()\n {\n return $this->belongsTo(Role::class);\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "public function getRole()\n {\n return $this->role;\n }", "function extend_assignable_roles($context, $defaultrole) {\n global $DB;\n\n $roles = get_assignable_roles($context, ROLENAME_BOTH);\n if (!isset($roles[$defaultrole])) {\n if ($role = $DB->get_record('role', array('id'=>$defaultrole))) {\n $roles[$defaultrole] = role_get_name($role, $context, ROLENAME_BOTH);\n }\n }\n return $roles;\n }", "public function role()\n {\n return $this->belongsTo(\"App\\Models\\Role\", \"role_id\", \"id\");\n }", "public function role() //<- role + _id == role_id\n {\n return $this->belongsTo(Role::class);\n }", "public function setRoleName($roleName)\n {\n }", "public function role(){\n return $this->belongsTo('App\\Role', 'role-id');\n }", "public function getRole() {\n return($this->role);\n }", "public function role()\n {\n return $this->belongsTo('Role');\n }", "public function role()\n {\n return $this->belongsTo('App\\Roles', 'role_id');\n }", "static function group(): string { return 'roles'; }" ]
[ "0.68705946", "0.6319568", "0.6319568", "0.6313853", "0.61949396", "0.619222", "0.619222", "0.616931", "0.6159571", "0.61255753", "0.60344416", "0.593284", "0.59229666", "0.5908032", "0.58774865", "0.58454186", "0.58454186", "0.5835774", "0.580487", "0.580487", "0.57859826", "0.57779706", "0.5774485", "0.5772102", "0.57599616", "0.57599616", "0.57441837", "0.57440984", "0.5741718", "0.57402295", "0.5731871", "0.5718601", "0.5707688", "0.56979144", "0.5697669", "0.5691679", "0.5680259", "0.5634482", "0.55868024", "0.55848026", "0.55670214", "0.55662835", "0.5557922", "0.5551242", "0.5550573", "0.55412734", "0.5531673", "0.5529825", "0.55177927", "0.55177927", "0.55111617", "0.550749", "0.54836965", "0.5478653", "0.5469522", "0.54668176", "0.5466062", "0.5465624", "0.5465624", "0.5463483", "0.5459067", "0.54574424", "0.5451284", "0.5446448", "0.54432434", "0.5438365", "0.5431701", "0.5431701", "0.5429638", "0.5427898", "0.54244286", "0.54244286", "0.54244286", "0.54244286", "0.542038", "0.542038", "0.542038", "0.542038", "0.542038", "0.542038", "0.542038", "0.542038", "0.54183584", "0.54183584", "0.54183584", "0.54183584", "0.54183584", "0.54183584", "0.54183584", "0.54183584", "0.54183584", "0.54183584", "0.5414917", "0.5406736", "0.54012835", "0.5398065", "0.53899395", "0.538409", "0.53791374", "0.53789246", "0.53678215" ]
0.0
-1
The Customer that acts as an Associate in the Business Unit.
public function getCustomer() { return $this->customer instanceof CustomerReferenceBuilder ? $this->customer->build() : $this->customer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAssociate()\n {\n return $this->associate instanceof CustomerResourceIdentifierBuilder ? $this->associate->build() : $this->associate;\n }", "public function customer()\n {\n return Customer::retrieve($this->customer);\n }", "public function getCustomer()\n {\n return $this->customer;\n }", "public function getCustomer()\n {\n return $this->customer;\n }", "public function getCustomer()\n {\n return $this->customer;\n }", "public function getCustomer()\n {\n return \\tabs\\api\\core\\Customer::create($this->getCusref());\n }", "public function getCustomer() {\n return $this->customer;\n }", "public function getCustomer()\n {\n if (null === $customer && isset($this['CUSTOMER_ID']))\n {\n $this->customer = \\Fastbill\\Customer\\Finder::findOneById($this['CUSTOMER_ID']);\n }\n return $this->customer;\n }", "public function getCustomer()\n {\n return $this->data->customer;\n }", "public function getCustomerIdentifier()\n {\n return $this->customer_identifier;\n }", "public function getCustomer()\n {\n return $this->hasOne(Customer::className(), ['customerId' => 'customerId']);\n }", "public function getCustomer()\n {\n $customer = $this->ticketData->getCustomer();\n return $customer;\n }", "public function getCustomerIdentity()\n {\n return $this->customerIdentity;\n }", "public function getCustomerId() {\n return $this->customerID;\n }", "public function customer(){\n\t\treturn Customers::find($this->customers_id);\n\t}", "public function getCustomerId()\n {\n return $this->customer_id;\n }", "public function getCustomerId()\n {\n return $this->customer_id;\n }", "public function getCustomer() {\r\n return $this->session->getCustomer();\r\n }", "protected function _getCustomer()\n {\n return Mage::registry('current_customer');\n }", "public function getCustomer_Id() {\n return $this->customer_Id; \n }", "public function getCustomer()\n {\n return $this->hasOne(User::className(), ['id' => 'customer_id']);\n }", "public function customer()\n {\n return $this->morphTo(__FUNCTION__, 'customer_type', 'customer_uuid')->withoutGlobalScopes();\n }", "public function getCustomerId()\n {\n return $this->getValue('nb_customer_id');\n }", "public function customer()\n {\n return $this->hasOne(Customer::class);\n }", "public function customer()\n {\n return $this->hasOne(Customer::class);\n }", "public function getCustomer()\n {\n return $this->hasOne(Customer::class, ['id' => 'customer_id'])->inverseOf('orders');\n }", "public function getCustomer();", "public function billingCustomer()\n {\n $customer = new Customer();\n $this->setBilling($customer);\n\n return $customer;\n }", "public function customer()\n\t{\n\t\treturn $this->belongsTo('App\\Http\\Models\\AppCustomer','customer_code','customer_code');\n\t}", "public function getOrCreateCustomer();", "public function getAssociateOnBehalf()\n {\n return $this->associateOnBehalf instanceof CustomerResourceIdentifierBuilder ? $this->associateOnBehalf->build() : $this->associateOnBehalf;\n }", "public function getCustomer()\n {\n $customer = new Customer($this->getEmail(),\n $this->getFirstname(),\n $this->getLastname());\n $customer->setId($this->getCustomerId())\n ->setStreet($this->getStreet())\n ->setPostCode($this->getPostcode())\n ->setCity($this->getCity())\n ->setCountry($this->getCountry())\n ->setPhone($this->getPhone())\n ->setLanguage($this->getLanguage());\n\n\n return $customer;\n }", "public function getCustomerId();", "public function getCustomerId();", "public function getCustomerId();", "public function getExternalCustomerId()\n {\n return $this->external_customer_id;\n }", "public function getCustomerId()\n {\n if (array_key_exists(\"customerId\", $this->_propDict)) {\n return $this->_propDict[\"customerId\"];\n } else {\n return null;\n }\n }", "public function getCustomerId()\n {\n return $this->getSavedCustomer()->id;\n }", "public function getCustid()\n {\n return $this->custid;\n }", "public function getCustomer()\n {\n return $this->hasOne(User::class, ['id' => 'customer_id']);\n }", "public function getCustomerId()\n {\n return $this->_customerSession->getCustomerId();\n }", "public function getCustomerName(){\n return $this->customer_name;\n }", "public function customer()\n {\n return $this->hasOne('App\\Customer', 'customer_id', 'user_id');\n }", "function getCustomerNo() {\n return $this->customerNo;\n }", "public function getAccountingCustomerParty()\n {\n return $this->accountingCustomerParty;\n }", "public function getCustomerName()\n {\n return $this->customerName;\n }", "public function customer()\n {\n return $this->belongsTo(\\App\\Models\\Customer::class, \"customer_id\", \"id\");\n }", "public function customer()\n {\n return $this->belongsTo(Customer::class, 'customer_id', 'id');\n }", "public function getCustomer() {\r\n\t\tif( isset( $this->_customer ) ) {\r\n\t\t\t$customer = $this->_customer;\r\n\t\t}\r\n\t\telseif( $this->_admin ) {\r\n\t\t\t$customer = Mage::getModel('customer/customer')->load( Mage::getSingleton('adminhtml/session_quote')->getCustomerId() );\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$customer = Mage::getSingleton('customer/session')->getCustomer();\r\n\t\t}\r\n\t\t\r\n\t\t$this->setCustomer( $customer );\r\n\t\t\r\n\t\treturn $customer;\r\n\t}", "public function customer()\n {\n return $this->belongsTo('App\\Models\\Customer\\Customer', 'customer_id', 'id');\n }", "public function customer()\r\n {\r\n return $this->belongsTo(Customer::class, 'customer_id', 'id');\r\n }", "public function getCustomerId()\n {\n return Mage::getSingleton('customer/session')->getCustomerId();\n }", "public function getCustomerId()\n {\n return Mage::getSingleton('customer/session')->getCustomerId();\n }", "public function getCustomerId()\n {\n return $this->getParameter('customerId');\n }", "public function customer() {\n return $this->belongsTo('Customer', 'customer_id');\n }", "public function getCustomer()\n {\n try {\n return $this->currentCustomer->getCustomer();\n } catch (NoSuchEntityException $e) {\n return null;\n }\n }", "protected function getCustomer()\n {\n if($this->isAdmin()) {\n return Mage::getModel('customer/customer')->load(Mage::getSingleton('adminhtml/session_quote')->getCustomerId()); // Get customer from admin panel quote\n } else {\n return Mage::getModel('customer/session')->getCustomer(); // Get customer from frontend quote\n }\n }", "protected function _lookupCustomerId()\n {\n return $this->_customerFactory->create()\n ->loadByEmail($this->_quote->getCustomerEmail())\n ->getId();\n }", "public function getCustpo()\n {\n return $this->custpo;\n }", "public function customer()\n {\n return $this->belongsTo('App\\Models\\Customer', 'customer_id');\n }", "public function customer()\n {\n return $this->belongsTo(Customer::class, 'book_customer');\n }", "public function customer()\n {\n return $this->belongsTo(Customer::class);\n }", "public function customer()\n {\n return $this->belongsTo(Customer::class);\n }", "public function customer()\n {\n return $this->belongsTo(Customer::class);\n }", "public function customer()\n {\n return $this->belongsTo(Customer::class);\n }", "public function getCustref()\n {\n return $this->custref;\n }", "public function getCoCustodio()\n\t{\n\t\treturn $this->co_custodio;\n\t}", "public function getCustomerName();", "function getSpecificCustomers() {\n\t\treturn $this->_specificCustomers;\n\t}", "public function getCustomerName(){\n return $this->_getData(self::CUSTOMER_NAME);\n }", "public function getAccident()\n {\n return $this->accident;\n }", "public function getCustname()\n {\n return $this->custname;\n }", "public function customerId(): int\n {\n return $this->customerId;\n }", "public function customer()\n {\n // Note: Laravel throws a LogicException if a customer method exists but\n // doesn't return a valid relationship.\n try {\n if ($customer = $this->customermodel) {\n return $customer;\n }\n } catch (LogicException $e) {}\n \n if (method_exists($this, 'customermodel')) {\n return $this->customermodel();\n }\n \n // Check for customer/subscription on the same model.\n if (method_exists($this, 'gatewayCustomer')) {\n return $this;\n }\n \n return null;\n }", "public function customer() {\n return $this->belongsTo(\"App\\Models\\Customer\");\n }", "public function customer()\n {\n return $this->belongsTo('App\\Models\\Customer');\n }", "protected function getCustomerId()\n {\n return $this->customerSession->getCustomer()->getId();\n }", "public function getCustomer()\n {\n if (Mage::app()->getStore()->isAdmin()) {\n $adminQuote = Mage::getSingleton('adminhtml/session_quote');\n if ($customer = $adminQuote->getCustomer()) {\n return $customer;\n }\n } else if (Mage::getSingleton('customer/session')->isLoggedIn()) {\n return Mage::getSingleton('customer/session')->getCustomer();\n }\n\n return false;\n }", "public function getStripeCustomerId() {\n return $this->stripe_customer_id;\n\n }", "public function customer()\n {\n return $this->belongsTo(Customer::class, 'customer_project_id');\n }", "protected function _getCustomer()\n {\n $customer = parent::_getCustomer();\n\n $data = $this->getRequest()->getPost();\n \n \t$addressData = array ('postcode'=>$data['zipcode']);\n\t\t\n\t\t$address = Mage::getModel('customer/address');\n \t\t\n \t\t$address->addData($addressData);\n\t\t\n\t\t$customer->addAddress($address);\n\n $zipcodezone = Mage::getModel('zipcodezone/zipcodezone')->getCollection()\n ->addFieldToFilter('start', array('lteq' => $data['zipcode']))\n ->addFieldToFilter('end', array('gteq' => $data['zipcode']))\n ->getFirstItem();\n\n $customer->setZipcodezone($zipcodezone->getId());\n\n return $customer;\n }", "public function getCustomerModel()\n {\n if (is_null($this->_customerModel)) {\n $object = Mage::getModel('customer/customer');\n $this->_customerModel = Mage::objects()->save($object);\n }\n return Mage::objects()->load($this->_customerModel);\n }", "public function getExtCustomerId();", "public function getCaddress()\n {\n return $this->caddress;\n }", "public function createCustomer(){\n if($this->paypalCustomer == null)\n $this->paypalCustomer = $this->retrieveCustomer();\n\n return $this;\n }", "public function customer()\n {\n return $this->belongsTo('App\\Customer');\n }", "public function getCustomerName()\n {\n if (array_key_exists(\"customerName\", $this->_propDict)) {\n return $this->_propDict[\"customerName\"];\n } else {\n return null;\n }\n }", "private function getCustomerId()\n {\n $customerSession = \\Magento\\Framework\\App\\ObjectManager::getInstance()->get(\\Magento\\Customer\\Model\\SessionFactory::class);\n return $customerSession->create()->getId();\n }", "public function getCustomerName(){\n return $this->customer ? $this->customer->name : '- no name provided -';\n }", "public function customer() {\n return $this->belongsTo('App\\Customer');\n }", "public function getCustomerCode(): string\n {\n return $this->getData(self::CUSTOMER_CODE);\n }", "public function getOriginatorCustomerParty()\n {\n return $this->originatorCustomerParty;\n }", "public function relatedCustomer()\n {\n return $this->belongsTo('App\\Customer','id','database');\n }", "function getCustomeruuid()\n {\n return $this->customer_uuid;\n }", "public function getCustomer($_ID)\n {\n return $this->getUnique(\"customers\", $_ID);\n }", "public function shippingCustomer()\n {\n $customer = new Customer();\n $this->setShipping($customer);\n\n return $customer;\n }", "public function getCustomerString()\n {\n if (is_object($this->customer))\n return $this->customer->getFullName();\n return '';\n }", "public function getCustomerId()\n {\n $value = $this->get(self::customer_id);\n return $value === null ? (integer)$value : $value;\n }", "protected function _addCustomer($object) {\n\t\t$format = Mage::getStoreConfig('tax/avatax/cust_code_format', $object->getStoreId());\n\t\t$customer = Mage::getModel('customer/customer');\n\t\t$customerCode = '';\n\t\t\n\t\tif($object->getCustomerId()) {\n\t\t\t$customer->load($object->getCustomerId());\n\t\t\t$taxClass = Mage::getModel('tax/class')->load($customer->getTaxClassId())->getOpAvataxCode();\n \t$this->_request->setCustomerUsageType($taxClass);\n\t\t}\n\t\t\n\t\tswitch($format) {\n\t\t\tcase OnePica_AvaTax_Model_Source_Customercodeformat::LEGACY:\n\t\t\t\tif($customer->getId()) {\n\t\t\t\t\t$customerCode = $customer->getName() . ' (' . $customer->getId() . ')';\n\t\t\t\t} else {\n $address = $object->getBillingAddress() ? $object->getBillingAddress() : $object;\n\t\t\t\t\t$customerCode = $address->getFirstname() . ' ' . $address->getLastname() . ' (Guest)';\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase OnePica_AvaTax_Model_Source_Customercodeformat::CUST_EMAIL:\n\t\t\t\t$customerCode = $object->getCustomerEmail() ? $object->getCustomerEmail() : $customer->getEmail();\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t// New code by David Dzimianski - CSH 2013\n\t\t\tcase OnePica_AvaTax_Model_Source_Customercodeformat::CUST_MAS_ID:\n\t\t\t\t$customerCode = $object->getData('mas_id') ? '00' . $object->getData('mas_id') : '00' . $customer->getData('mas_id');\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase OnePica_AvaTax_Model_Source_Customercodeformat::CUST_ID:\n\t\t\tdefault:\n\t\t\t\t$customerCode = $object->getCustomerId() ? $object->getCustomerId() : 'guest-'.$object->getId();\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t$this->_request->setCustomerCode($customerCode);\n\t}" ]
[ "0.7318752", "0.72476596", "0.720029", "0.720029", "0.720029", "0.7170935", "0.71566015", "0.7096624", "0.70288527", "0.69449973", "0.69438833", "0.6908139", "0.6865747", "0.68015754", "0.6770381", "0.6715084", "0.6715084", "0.67137545", "0.66503537", "0.6606346", "0.6601745", "0.6598137", "0.65663546", "0.6557092", "0.6557092", "0.6541722", "0.65323675", "0.65278375", "0.6505897", "0.6500588", "0.6466136", "0.6432141", "0.6395429", "0.6395429", "0.6395429", "0.63934267", "0.6389152", "0.6383622", "0.6382735", "0.6374157", "0.63678515", "0.6352906", "0.6341896", "0.6323397", "0.6275744", "0.62709916", "0.62687004", "0.6260386", "0.625112", "0.62486017", "0.62343854", "0.6232719", "0.6232719", "0.62187", "0.6195291", "0.6194244", "0.61884254", "0.6173041", "0.6159676", "0.6139947", "0.61348736", "0.6125553", "0.6125553", "0.6125553", "0.6125553", "0.612513", "0.6119709", "0.61002034", "0.6081771", "0.6066296", "0.6058858", "0.6049052", "0.6048001", "0.6027398", "0.6021941", "0.6003764", "0.60008764", "0.5975673", "0.59672225", "0.59596694", "0.59569633", "0.59552723", "0.59489024", "0.59422296", "0.5940008", "0.5936502", "0.59302443", "0.5922197", "0.5912385", "0.586535", "0.586433", "0.58610135", "0.58554995", "0.58350307", "0.5832447", "0.58293164", "0.5825189", "0.5823107", "0.5808409" ]
0.6960755
10
put your code here constructor
function __construct() { include_once './db_connect.php'; // connecting to database $this->db = new DB_Connect(); $GLOBALS['conn']=$this->db->connect(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct()\n\t\t{\n\t\t\t# code...\n\t\t}", "function __construct(){\n\t\t// nowt much...\n\t}", "public function __construct()\n\t\t{\n\t\t\t\n\t\t}", "public function __construct()\n\t\t{\n\t\t\t//\n\t\t}", "function __construct() {\n\t\t\n\t//TODO - Insert your code here\n\t}", "public function __construct()\n\t{\n\t\t// nothing to do\t\n\t}", "public function __construct()\n\t\t{\t\t\t\n\t\t}", "function __construct()\r\n\t\t{\r\n\t\t\t\r\n\t\t}", "function __construct()\n\t{\n\t\t# code...\n\t}", "protected function __construct()\r\n\t{\r\n\t}", "private function __construct()\r\r\n {\r\r\n // TODO - Insert your code here\r\r\n }", "protected function __construct()\n\t{\n\t\t// Nothing here\n\t}", "public function __construct()\r\n\t\t{\r\n\t\t}", "public function __construct() { \n\t\t\n\n\t\t}", "public function __construct()\n\t{\n\t\t//\n\t}", "public function __construct()\n\t{\n\t\t//\n\t}", "public function __construct()\n\t{\n\t\t//\n\t}", "public function __construct()\n\t{\n\t\t//\n\t}", "public function __construct()\n\t{\n\t\t//\n\t}", "public function __construct()\n\t{\n\t\t//\n\t}", "public function __construct()\n\t{\n\t\t//\n\t}", "public function __construct()\n\t{\n\t\t//\n\t}", "public function __construct()\n\t{\n\t\t//\n\t}", "public function __construct()\n\t{\n\t\t//\n\t}", "public function __construct()\n\t{\n\t\t//\n\t}", "public function __construct()\n\t{\n\t\t//\n\t}", "public function __construct()\n\t{\n\t\t//\n\t}", "public function __construct()\n\t{\n\t\t//\n\t}", "public function __construct()\n\t{\n\t\t//\n\t}", "private function __construct()\r\n\t{\r\n\t\r\n\t}", "private function __construct()\r\r\n\t{\r\r\n\t}", "public function __construct() {\n\t\t//\n\t}", "public function __construct() {\n\t\t//\n\t}", "public function __construct() {\n\t\t//\n\t}", "public function __construct() {\n\t\t//\n\t}", "function __construct()\n\t{\n\t\t\n\t\t\n\t}", "function __construct (){\n\t\t}", "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t// ben duoi nay se la cac logic cua __construct lop con ma chung ta can dinh nghia - xu ly\n\t}", "public function __construct(){\n\t\t//\n\t}", "public function __construct(){\n\t\t//\n\t}", "function _construct() {\n \t\n\t\t\n\t}", "public function __construct()\n\t{\n\t\t// Nothing here\n\t}", "private function __construct() { \n\t\t\n\n\t}", "private function __construct(){\n\t\t }", "private function __construct() {\r\n\t\t\r\n\t}", "private function __construct()\r\n\t{\r\n\t}", "public function __construct()\r\n\t{\r\n\t}", "public function __construct()\r\n\t{\r\n\t}", "public function __construct()\r\n\t{\r\n\t}", "public function __construct()\r\n\t{\r\n\t}", "public function __construct()\r\n\t{\r\n\t}", "function __construct() ;", "protected function __construct()\r\n\t\t{\r\n\t\t}", "public function __construct() {\r\n\t\t//\r\n\t}", "function __construct() {\n\t\t\t\n\t\t}", "final private function __construct(){\r\r\n\t}", "public function __construct() {\n\t\t# ...\n\t}", "public function __construct()\n\t{\n\t\n\t}", "public function __construct()\n\t{\n\t\n\t}", "public function __construct()\n\t{\n\t}", "public function __construct() {\r\n\t\t\r\n\t}", "private function __construct () \n\t{\n\t}", "public function __construct() {\n\t\tparent::__construct();\n\t\t// Other code to run when object is instantiated\n\t}", "private function __construct() {\r\n\t\r\n\t}", "private function __construct()\n\t{\n\n\t}", "public function __construct() {\n \t\t \t\n\t\t}", "public function __construct()\n\t{\n \n\t}", "private function __construct(){\n \t\n }", "private function __construct()\n\t{\n\t\t\n\t}", "public function _construct()\n\t{\n\n\t}", "public function __construct() {\r\n\r\n\t\t}", "function __construct() {\n\t\t\t\n\t\t\t/* Do nothing here */\n\t\t\t\n\t\t}", "function __construct()\n\t{\n \n\t}", "function __construct()\r\n\t{\r\n\t\t\r\n\t}", "function __construct()\r\n\t{\t\t//Yeah bro! Freaking PhP yo..\r\n\t}", "public function __construct() {\n\t\t// Nothing to do.\n\t}", "public function __construct()\n\t{\n\t\t\n\t}", "public function __construct()\n\t{\n\t\t\n\t}", "public function __construct()\n\t{\n\t\t\n\t}", "public function __construct()\n\t{\n\t\t\n\t}", "public function __construct()\n\t{\n\t\t\n\t}", "public function __construct()\n\t{\n\t\t\n\t}", "public function __construct()\n\t{\n\t\t\n\t}", "public function __construct()\n\t{\n\t\t\n\t}", "public function __construct()\n\t{\n\t\t\n\t}", "public function __construct()\n\t{\n\t\t\n\t}", "public function __construct() {\n\n\t\t}", "function __construct() {\n\n\t\t}", "protected function __construct() {\r\r\n // contain shared code in its constructor\r\r\n parent::__construct();\t\r\r\n\t}", "function __construct()\r\n\t{\r\n\t}", "public function __construct()\n\t{}", "public function __construct()\n\t{\n\n\t}", "public function __construct()\n\t{\n\n\t}", "public function __construct()\n\t{\n\n\t}", "public function __construct(){\n\t\t\tparent::__construct(); \n\t\t}", "protected function __construct() {\n\t\t\n\t}", "protected function __construct() {\n\t\t\n\t}", "private function __construct() \n {\n\t\t\n }", "private function __construct()\n\t{\n\t}", "private function __construct()\n\t{\n\t}", "private function __construct()\n\t{\n\t}" ]
[ "0.813941", "0.79847896", "0.79780304", "0.7974748", "0.79710597", "0.79539406", "0.7876008", "0.7867498", "0.78619045", "0.7854988", "0.7850288", "0.7839539", "0.78349173", "0.7828115", "0.7826647", "0.7826647", "0.7826647", "0.7826647", "0.7826647", "0.7826647", "0.7826647", "0.7826647", "0.7826647", "0.7826647", "0.7826647", "0.7826647", "0.7826647", "0.7826647", "0.7826647", "0.78177446", "0.7809644", "0.7803629", "0.7803629", "0.7803629", "0.7803629", "0.77920204", "0.7785012", "0.7779305", "0.7771106", "0.7771106", "0.7759018", "0.775758", "0.7755143", "0.7752524", "0.7743087", "0.7742407", "0.7740855", "0.7740855", "0.7740855", "0.7740855", "0.7740855", "0.7739876", "0.7734625", "0.7731788", "0.77315176", "0.7730569", "0.77155197", "0.77098966", "0.77098966", "0.77053547", "0.7704212", "0.76963407", "0.76840544", "0.7680477", "0.7680194", "0.7678223", "0.76726264", "0.76702964", "0.76692694", "0.7669181", "0.76683766", "0.7667124", "0.76650655", "0.7664474", "0.76640457", "0.7660772", "0.76588625", "0.76588625", "0.76588625", "0.76588625", "0.76588625", "0.76588625", "0.76588625", "0.76588625", "0.76588625", "0.76588625", "0.7648498", "0.764675", "0.76462406", "0.76378185", "0.76377213", "0.7635124", "0.7635124", "0.7635124", "0.7629609", "0.7619349", "0.7619349", "0.7617473", "0.7616845", "0.7616845", "0.7616845" ]
0.0
-1
Get key from returned config
public function getKey($field, $assoc = false) { return $assoc ? $this->get($assoc)[$field] : $this->get($assoc)->{$field}; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getConfigKey(): string;", "public function getKey()\n {\n return Config::getKey(get_class($this->config));\n }", "public function get($configKey, $key);", "abstract protected function getBusConfigKey();", "public function getConfigKey()\n {\n // TODO: Implement getConfigKey() method.\n return \"miamiohsbehatensu\";\n }", "function configItem($key) {\n global $db;\n global $lang;\n\n if(configEnabled() == true) {\n $resp = $db->query(\"SELECT `val` FROM `\".$lang[\"config_db_name\"].\"`.`\".$lang[\"config_table_name\"].\"` WHERE `key` = '\".$key.\"' LIMIT 1\");\n if($resp) {\n if($resp->num_rows == 0) {\n return \"Unknown key\";\n } else {\n while($data = $resp->fetch_assoc()) {\n return $data[\"val\"];\n }\n }\n } else {\n return \"Unknown key\";\n }\n } else {\n return \"Not enabled\";\n }\n }", "private static function _get_config_key()\n\t{\n\t\t$_action_name = '';\n\t\t$_class_name = '';\n\t\t// controller\n\t\tif (\\Input::server(\"SCRIPT_NAME\") == \"/index.php\") {\n\t\t\t$_obj_uri = new \\Uri();\n\t\t\t$_segments = $_obj_uri->get_segments();\n\t\t\t$_action_name = strtolower(array_pop($_segments));\n\t\t\t$_class_name = strtolower(array_pop($_segments));\n\t\t\tif ( ! empty($_segments))\n\t\t\t{\n\t\t\t\tif ($_segments[0] === 'api')\n\t\t\t\t{\n\t\t\t\t\treturn 'api';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// tasks\n\t\telse\n\t\t{\n\t\t\t$_oil_param = \\Cli::option(2);\n\n\t\t\tif ( strpos($_oil_param,\":\") === false )\n\t\t\t{\n\t\t\t\t$_class_name = $_oil_param;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlist($_class_name,$_action_name) = explode(\":\",\\Cli::option(\"2\"));\n\t\t\t}\n\t\t\tif ( empty($_action_name) ) $_action_name = \"run\";\n\t\t}\n\t\treturn $_class_name.\".\".$_action_name;\n\t}", "public function get($key)\r\n {\r\n return $this->config[$key];\r\n }", "function chevereto_config($config_key) {\n\tglobal $config;\n\treturn $config[$config_key];\n}", "public function getConfig($key);", "public function getConfig($key);", "public static function getConfigKey($key, $ret = null)\n {\n if (!self::$config) {\n self::$system = dirname(dirname(__FILE__));\n self::loadConfig();\n }\n \n if (isset(self::$config[$key])) {\n return self::$config[$key];\n }\n return $ret;\n }", "public function getConfigCacheKey() \n {\n return (string) $this->configCacheKey;\n }", "public function getKey(): string\n {\n if ($this->key) {\n return $this->key;\n }\n\n // If the user has set a custom key.\n if ($this->config->has('key')) {\n $key = Key::validate($this->config->get('key'), 'field');\n\n $this->key = $key;\n\n return $key;\n }\n\n // For fields which doesn't require name attribute use label instead.\n if (\n !$this->config->has('name') &&\n in_array($this->getType(), ['accordion', 'message', 'tab'])\n ) {\n $key = $this->config->get('label');\n } else {\n $key = $this->config->get('name');\n }\n\n $key = sprintf('%s_%s', $this->parentKey, Key::sanitize($key));\n\n $this->key = $key;\n\n return $key;\n }", "function getConfig($key)\n{\n return $GLOBALS['config'][$key];\n}", "public static function getKey();", "public static function getKey();", "public function getConfigName();", "public function get($key){\r\n\t\tif(key_exists($key, $this->config)){\r\n\t\t\treturn $this->config[$key];\r\n\t\t}\r\n\t\tdie('Index is out of range');\r\n\t}", "public function getConfigDependencyKey();", "public function getKey() {}", "public function getKey() {}", "public function getPartnerKey(){\n\t\ttry {\n\t\t\t$fileContents = parse_ini_file(\"editableFiles/configFile.ini\");\n\t\t\treturn $fileContents[\"key\"];\n\t\t} catch (Exception $e) {\n\t\t\terror_log($e->getMessage(),3,\"/var/tmp/error.log\");\n\t\t\terror_log(\"\\n\");\n\t\t}\n\t}", "public function __get($key) {\n\t\treturn $this->config->{$key};\n\t}", "function getConfigurationValue($key) {\r\n $value = '';\r\n $sqlConfiguration = xtc_db_query(\"SELECT * FROM configuration WHERE configuration_key='\".strtoupper($key).\"' LIMIT 1\");\r\n if(xtc_db_num_rows($sqlConfiguration)>0){\r\n $dataConfiguration = xtc_db_fetch_array($sqlConfiguration);\r\n $value = $dataConfiguration['configuration_value'];\r\n }\r\n return $value; \r\n }", "public function get_key ()\n {\n $_key = $this->key;\n\n if ( ! empty( $_key ) && is_array( $_key ) )\n {\n $_key = join( ':', $_key );\n }\n\n return sanitise_key( $_key );\n }", "function getConfigValue($key) {\r\n\t\t$db = & JFactory::getDBO() ;\r\n\t\t$sql = 'SELECT config_value FROM #__osmembership_configs WHERE config_key=\"'.$key.'\"';\r\n\t\t$db->setQuery($sql) ;\t\t\r\n\t\treturn $db->loadResult();\r\n\t}", "public function getConfigKey($key)\n {\n return isset($this->config[$key]) ? $this->config[$key] : null;\n }", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "public function getKey();", "private function getConfig($key)\n {\n return $this->config->get($key);\n }", "function config($key){\n\t$app = \\Jolt\\Jolt::getInstance();\n\treturn $app->option($key);\n}", "abstract public function getConfigName();", "public function getConfigKey()\n {\n return Extension::SERVICE_NAME;\n }", "public function getConfigKey()\n {\n return 'bayne';\n }", "public function get(String $name=\"\"){\n\t\tif(isset($this->config[$name])){\n\t\t\treturn $this->config[$name];\n\t\t}\n\t\t\n\t\t// We need to split anyway if successful and sizeof is cheaper than a string search\n\t\t$split = explode(\"\\\\\",$name);\n\t\tif(sizeof($split) > 1){\n\t\t\tif(isset($this->config[$split[0]]) && isset($this->config[$split[0]][$split[1]])){\n\t\t\t\treturn $this->config[$split[0]][$split[1]];\n\t\t\t}\n\t\t}\n\t\t\n\t\tthrow new \\Exception($name.\" could not be found in config.json\");\n\t}", "public function getKey(): string;", "public function getKey(): string;", "function settings ($key)\n {\n return $key;\n }", "public function getKey(){\n return $this->_section->key;\n }", "public static function getParameterKeyPage()\n {\n return config('consts.ParameterPage');\n }", "protected function config($key)\n {\n return config('repoist.'.$key);\n }", "protected function config($key)\n {\n return config('servicest.'.$key);\n }", "public static function getKey(){\r\n global $option, $mainframe;\r\n $db = Jfactory::getDBO(); //to enable db connection\r\n $query = \"SELECT json_data_general FROM #__em_eventsettings\";\r\n $db->setQuery($query);\r\n $result = $db->loadResult();\r\n //decode the returned json data.\r\n $json_result = json_decode($result);\r\n return $json_result[0];\r\n \r\n }", "public function getConfigByKey($key)\n {\n if (! $this->config->has('auth_extra')) {\n throw new ConfigNotFoundExceptions(\"The config file 'auth_extra.php' coudln't be found. Did you published the configuration?\");\n }\n\n $fullKey = \"auth_extra.{$key}\";\n\n if (! $this->config->has($fullKey)) {\n throw new ConfigNotFoundExceptions(\"The config '{$key}' is not found.\");\n }\n\n return $this->config->get($fullKey);\n }", "public function getKeyValue() {}", "public static function get($key)\n {\n return Arr::get(static::$config, $key);\n }", "public function getKey()\n {\n return $this->get(self::KEY);\n }", "public function getKey()\n {\n return $this->get(self::KEY);\n }", "protected function config($key)\n {\n return $this->app['config']->get($key);\n }", "public function getConfig($config_key)\n {\n if(array_key_exists(strtolower($config_key), self::$config_array)) \n {\n return self::$config_array[strtolower($config_key)];\n }\n\n try \n {\n return self::getDefaultValue($config_key);\n }\n catch(\\Exception $e) \n {\n printf(\"Unable to prepare configs: %s\", $e->getMessage());\n }\n }", "protected function config($key)\n {\n return config('cf-repository-generator.' . $key, $this->defaultPaths[substr($key, strrpos($key, '.') + 1)]);\n }", "function api_key() {\n\tif(check_value(chevereto_config('api_key'))) return chevereto_config('api_key');\n}", "function get($key)\n {\n return stripslashes($this->config[$key]);\n }", "private function config($key)\n {\n return Config::get('mediabrowser::mediabrowser.' . $key);\n }", "public static function getParameterKeyAccountId()\n {\n return config('consts.ParameterAccountId');\n }", "abstract public function getKey();", "abstract public function getKey();", "public function getKey()\n {\n return $this->__get(\"key\");\n }", "public static function getParameterKeyToken()\n {\n return config('consts.ParameterToken');\n }", "public function getConfig($key) {\n return $this->app[\"config\"]->get(\"laravel-admin::\" . $key);\n }", "protected function config($key)\n {\n return $this->utility->getConfig($key);\n }", "static public function get($key) {\n if (!property_exists(self::getConfig(), $key))\n return null;\n else\n return self::getConfig()->$key;\n }", "public function getKey()\n\t{\n\t\treturn $this->data['key'];\n\t}", "protected function config(string $key)\n {\n return config(\"elasticEmail.$key\");\n }", "public function getKey()\n {\n return $this->params['Key'];\n }", "public function getKey(): string\n {\n return $this->key;\n }", "public function getKey() {\n\t\treturn $this -> key;\n\t}", "static public function getConfig($key = null)\n {\n return Ini::getConfig($key);\n }", "function get_key_value($ini, $instance, $keyname)\n{\n if (isset($ini['instance:'.$instance][$keyname])) {\n return $ini['instance:'.$instance][$keyname];\n }\n else if (isset($ini['globals'][$keyname])) {\n return $ini['globals'][$keyname];\n }\n else {\n return false;\n }\n}", "protected function get(string $key)\n {\n if (!array_key_exists($key, $this->config)) throw new InvalidConfigException(\"Your configuration doesn't have a value for the key `$key`\");\n return $this->config[$key];\n }", "public function getConfigValue($key)\n {\n return $this->config[$key];\n }", "public function getConfig($key)\n {\n return Config::get($key);\n }", "function getConfig($key = '')\n {\n return isset($this->config[$key]) ? $this->config[$key] : null;\n }", "public function getKey() : string\n {\n return $this->key;\n }", "function get($key) {\n\n $get = \\M\\Config::get('GET');\n if (isset($get[$key])) {\n return $get[$key];\n } else {\n\n return false;\n }\n}", "function config(string $name)\n {\n return app()->services()->config()->{$name};\n }", "protected function getLicenseKey()\n {\n foreach ($this->_licenseKey as $key) {\n if ($licenseKey = $this->scopeConfig->getValue($key)) {\n return $licenseKey;\n }\n }\n }", "function getConfig($config)\n{ \n return config(\"system.$config\");\n}", "function my_config($index = '') \n\t{\t\n\t\tglobal $CI;\n\n\t\treturn $CI->my_config->item($index); \n\t}", "public function getKey()\r\n {\r\n return $this->key;\r\n }", "public function getKey() {\n return $this->key;\n }", "public function getKey()\n {\n return $this->data['key'];\n }" ]
[ "0.812286", "0.78127813", "0.7335805", "0.7180845", "0.71305025", "0.7063615", "0.70540273", "0.7024138", "0.7019196", "0.6947183", "0.6947183", "0.6938406", "0.68774617", "0.6808829", "0.6748339", "0.66563934", "0.66563934", "0.66400856", "0.66005325", "0.6553717", "0.6541359", "0.6541359", "0.6492448", "0.64885676", "0.6481224", "0.6476845", "0.6473419", "0.64732444", "0.6455719", "0.6455719", "0.6455719", "0.6455719", "0.6455719", "0.6455719", "0.6455719", "0.6455719", "0.6455719", "0.6455719", "0.6455719", "0.6455719", "0.6455719", "0.6455719", "0.6455719", "0.6455719", "0.6455719", "0.6455719", "0.6455719", "0.6455719", "0.6442513", "0.64106613", "0.6398521", "0.6394499", "0.63746405", "0.6373008", "0.6358873", "0.6358873", "0.6349412", "0.63446915", "0.63284457", "0.6317125", "0.6314265", "0.63134086", "0.62930363", "0.6275514", "0.6266045", "0.62473315", "0.62473315", "0.62468344", "0.6246538", "0.6241558", "0.6238209", "0.623305", "0.6226385", "0.62247664", "0.6207587", "0.6207587", "0.6201354", "0.61895114", "0.6165764", "0.6141458", "0.6135036", "0.6122649", "0.6122279", "0.6113812", "0.6107113", "0.6105516", "0.6101807", "0.6101793", "0.6086802", "0.60754", "0.60721844", "0.6071889", "0.6066269", "0.606601", "0.6061938", "0.6058227", "0.6056482", "0.60523164", "0.6050777", "0.60490555", "0.60487205" ]
0.0
-1
Return array with names of fields
public function fields() { return array_keys($this->getKey('schema', true)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFieldsNames(): array\n {\n return array_keys($this->fields);\n }", "public function get_field_names(): array {\n\t\treturn array_keys( $this->data );\n\t}", "public function getFieldNames() {}", "public function getFieldNames(){\n $names=[];\n if (!empty($this->dbFields)){\n foreach($this->dbFields as $dbField){\n $names[$dbField->id]=$dbField->name;\n }\n }\n return $names;\n }", "function _get_field_names()\n {\n return array();\n }", "public function getFieldNames() {\n return array_keys($this->_fields);\n }", "public function getFieldNames() {\n $fields = array();\n foreach ($this->getFields() as $field) {\n $fields[] = $this->getFieldName($field);\n }\n return $fields;\n }", "function GetFieldNames($fields) {\r\n \t$names = array();\r\n for ($i = 0; $i < count($fields); $i++) {\r\n \t$names[] = $fields[$i]['name'];\r\n }\r\n\r\n return $names;\r\n }", "abstract public function getAllFieldsRealNames(): array;", "function getFieldNames();", "function list_fields()\n\t{\n\t\t$field_names = array();\n\t\tforeach(sqlsrv_field_metadata($this->result_id) as $offset => $field)\n\t\t{\n\t\t\t$field_names[] = $field['Name'];\n\t\t}\n\t\t\n\t\treturn $field_names;\n\t}", "public function getFields()\r\n {\r\n return array_keys($this->fields);\r\n }", "public function getFields() {\n return array_keys($this->_fields);\n }", "abstract public function getFieldNames(): array;", "public function getFields()\n {\n return array_keys($this->fields);\n }", "final public function getFields(): array\n {\n return array_keys($this->fields);\n }", "public function getFields() {\n return array_keys($this->fields);\n }", "public function getFieldNames(): array\n {\n return array_keys($this->fieldDefinitions);\n }", "public function getFieldNames()\n {\n return array_keys($this->fieldMappings);\n }", "public function getFieldNames(): array\n {\n return array_map(fn ($fieldIndex) => oci_field_name($this->resultID, $fieldIndex), range(1, $this->getFieldCount()));\n }", "public function fields_names(){\n $table_meta = array();\n // get fields in the database table\n\n foreach ($this->_meta() as $meta) {\n array_push($table_meta, $meta->name);\n }\n\n return $table_meta;\n }", "function list_fields()\n\t{\n\t\t$field_names = array();\n\t\twhile ($field = mysqli_fetch_field($this->result_id))\n\t\t{\n\t\t\t$field_names[] = $field->name;\n\t\t}\n\n\t\treturn $field_names;\n\t}", "public function getFields() {\n\t\treturn array(\n\t\t\tself::FIELD_ID,\n\t\t\tself::FIELD_NAME,\n\t\t\tself::FIELD_CREATED_AT,\n\t\t);\n\t}", "public function getFieldNames() {\n\t\treturn array_keys($this->tca['columns']);\n\t}", "function GetFieldsList()\n\t{\n\t\tglobal $dal_info;\n\t\treturn array_keys( $dal_info[ $this->infoKey ] );\n\t}", "public function list_fields()\r\n {\r\n $field_names = array();\r\n $this->resultID->field_seek(0);\r\n while ($field = $this->resultID->fetch_field())\r\n {\r\n $field_names[] = $field->name;\r\n }\r\n\r\n return $field_names;\r\n }", "public function listFields()\n {\n return array_keys($this->fields);\n }", "public function getFields()\n\t{\n\t\treturn [];\n\t}", "public static function getFieldNames() {\n\t\treturn self::$FIELD_NAMES;\n\t}", "public static function getFieldNames() {\n\t\treturn self::$FIELD_NAMES;\n\t}", "public static function getFieldNames() {\n\t\treturn self::$FIELD_NAMES;\n\t}", "public function getFields(): array;", "public function getFields(): array;", "public function getFields(): array;", "public function fieldNames()\n {\n $query = $this->_manager->createQuery('SELECT e FROM ' . $this->_entityName . ' e');\n //It will probably also fail with an empty table\n $query->setMaxResults(1);\n $results = $query->getArrayResult();\n $row = reset($results);\n return array_keys($row);\n }", "public function getFields()\n\t{\n\t\t$fields = [];\n\n\t\tforeach (array_keys($this->map) as $field)\n\t\t{\n\t\t\t$get = $this->convertToCamelCase('get_' . $field);\n\t\t\t$fields[$field] = $this->$get();\n\t\t}\n\n\t\treturn $fields;\n\t}", "public function list_fields()\n\t{\n\t\t$field_names = array();\n\t\tfor ($c = 1, $fieldCount = $this->num_fields(); $c <= $fieldCount; $c++)\n\t\t{\n\t\t\t$field_names[] = oci_field_name($this->stmt_id, $c);\n\t\t}\n\t\treturn $field_names;\n\t}", "public function fields()\n {\n $fields = array();\n\n foreach ($this->_data as $field => $row)\n {\n $fields[$field] = $row['value'];\n }\n\n return $fields;\n }", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields() {\n $field = $this->get('field');\n return null !== $field ? $field : array();\n }", "final public function getAllFields()\r\n {\r\n return array($this->_field);\r\n }", "public function getFields() {\n\t\treturn array(\n\t\t\tself::FIELD_ID,\n\t\t\tself::FIELD_PHRASE_ID,\n\t\t\tself::FIELD_LANGUAGE_ID,\n\t\t\tself::FIELD_TRANSLATION,\n\t\t\tself::FIELD_CREATED_AT,\n\t\t\tself::FIELD_USER_ID,\n\t\t);\n\t}", "public function fields(){\n\t\treturn array();\n\t}", "public function field_names()\n\t{\n\t\t// All the fields that are being validated\n\t\t$fields = array_keys(array_merge\n\t\t(\n\t\t\t$this->pre_filters,\n\t\t\t$this->rules,\n\t\t\t$this->callbacks,\n\t\t\t$this->post_filters\n\t\t));\n\n\t\t// Remove wildcard fields\n\t\t$fields = array_diff($fields, array('*'));\n\n\t\treturn $fields;\n\t}", "public function &getFields();", "public function get_fields()\n {\n $l_table = $this->m_cat_dao->get_table();\n $l_properties = $this->m_cat_dao->get_properties();\n\n return [\n $l_table . '__id' => 'ID',\n $l_table . '__key' => $l_properties['key'][C__PROPERTY__INFO][C__PROPERTY__INFO__TITLE],\n $l_table . '__value' => $l_properties['value'][C__PROPERTY__INFO][C__PROPERTY__INFO__TITLE],\n $l_table . '__group' => $l_properties['group'][C__PROPERTY__INFO][C__PROPERTY__INFO__TITLE],\n 'isys_catg_identifier_type__title' => $l_properties['type'][C__PROPERTY__INFO][C__PROPERTY__INFO__TITLE]\n ];\n }", "function mysql_field_array( $query ) {\r\n\t\t\t$field = mysql_num_fields( $query );\r\n\t\t\tfor ( $i = 0; $i < $field; $i++ ) {\r\n\t\t\t\t$names[] = mysql_field_name( $query, $i );\r\n\t\t\t}\r\n\t\t\treturn $names;\t\r\n\t\t}", "public static function field_names($model){\n\t $fields = self::fields($model);\n\t return array_keys($fields);\n\t}", "public function get_fields()\n {\n return [\n \"isys_catg_invoice_list__denotation\" => \"LC__CMDB__CATG__TITLE\",\n \"isys_catg_invoice_list__amount\" => \"LC__CMDB__CATG__INVOICE__AMOUNT\",\n \"isys_catg_invoice_list__date\" => \"LC__CMDB__CATG__INVOICE__DATE\",\n \"isys_catg_invoice_list__edited\" => \"LC__CMDB__CATG__INVOICE__EDITED\",\n \"isys_catg_invoice_list__financial_accounting_delivery\" => \"LC__CMDB__CATG__INVOICE__FINANCIAL_ACCOUNTING_DELIVERY\",\n \"isys_catg_invoice_list__charged\" => \"LC__CMDB__CATG__INVOICE__CHARGED\",\n ];\n }", "public function getFields() {\n $columns = $this->schema();\n if (empty($columns)) {\n trigger_error(__d('cake_dev', '(Model::getColumnTypes) Unable to build model field data. If you are using a model without a database table, try implementing schema()'), E_USER_WARNING);\n }\n\n $results = array();\n foreach ($columns as $key => $col) {\n $results[] = $key;\n }\n unset($columns);\n return $results;\n }", "public function fetchFields()\n {\n $field_names = array();\n for ($c = 1, $fieldCount = $this->getFieldsCount(); $c <= $fieldCount; $c++) {\n $field_names[] = oci_field_name($this->stmt_id, $c);\n }\n return $field_names;\n }", "function get_field_names()\n{\n\t#currently 27 fields\n\treturn $t_arr = array (\t\tlang_get( 'id' ),\n\t\t\t\t\t\t\t lang_get( 'category' ),\n\t\t\t\t\t\t\t lang_get( 'severity' ),\n\t\t\t\t\t\t\t lang_get( 'reproducibility' ),\n\t\t\t\t\t\t\t\tlang_get( 'date_submitted' ),\n\t\t\t\t\t\t\t\tlang_get( 'last_update' ),\n\t\t\t\t\t\t\t\tlang_get( 'reporter' ),\n\t\t\t\t\t\t\t\tlang_get( 'assigned_to' ),\n\t\t\t\t\t\t\t\tlang_get( 'priority' ),\n\t\t\t\t\t\t\t\tlang_get( 'status' ),\n\t\t\t\t\t\t\t\tlang_get( 'build' ),\n\t\t\t\t\t\t\t\tlang_get( 'projection' ),\n\t\t\t\t\t\t\t\tlang_get( 'eta' ),\n\t\t\t\t\t\t\t\tlang_get( 'platform' ),\n\t\t\t\t\t\t\t\tlang_get( 'os' ),\n\t\t\t\t\t\t\t\tlang_get( 'os_version' ),\n\t\t\t\t\t\t\t\tlang_get( 'product_version' ),\n\t\t\t\t\t\t\t\tlang_get( 'resolution' ),\n\t\t\t\t\t\t\t\tlang_get( 'duplicate_id' ),\n\t\t\t\t\t\t\t\tlang_get( 'summary' ),\n\t\t\t\t\t\t\t\tlang_get( 'description' ),\n\t\t\t\t\t\t\t\tlang_get( 'steps_to_reproduce' ),\n\t\t\t\t\t\t\t\tlang_get( 'additional' ).'_'.lang_get( 'information' ),\n\t\t\t\t\t\t\t\tlang_get( 'attached_files' ),\n\t\t\t\t\t\t\t\tlang_get( 'bugnote_title' ),\n\t\t\t\t\t\t\t\tlang_get( 'bugnote_date' ),\n\t\t\t\t\t\t\t\tlang_get( 'bugnote_description' )) ;\n}", "public function fields()\n {\n return [ \n ];\n }", "public function getFields()\n {\n $out = array();\n foreach($this->_map as $bind => $field)\n {\n if(isset($field[self::MAP_FIELD]))\n {\n $out[$bind] = $field[self::MAP_FIELD];\n }\n }\n return $out;\n }", "public function getFields() : array {\n\t\treturn $this->fields;\n\t}", "public function getFields() : array\n {\n return get_object_vars($this);\n }", "public static function getAllFieldNames()\n {\n return [\n self::ACTIVE,\n self::DISPLAY_NAME,\n self::EMAIL,\n self::EMPLOYEE_ID,\n self::FIRST_NAME,\n self::GROUPS,\n self::HR_CONTACT_NAME,\n self::HR_CONTACT_EMAIL,\n self::LAST_NAME,\n self::LOCKED,\n self::MANAGER_EMAIL,\n self::PERSONAL_EMAIL,\n self::REQUIRE_MFA,\n self::USERNAME,\n ];\n }", "public function getFields() {\r\n\t\tif($this->_fields === null) {\r\n\t\t\t$this->_fields = $this->activeDataProvider->model->attributeNames();\r\n\t\t}\r\n\t\treturn $this->_fields;\r\n\t}", "public static function fields()\n\t{\n\t\t$array = self::$fields;\n\n\t\tfor($g = 0; $g < sizeof(self::$genders); $g++)\n\t\t\t$array[] = 'interested_'.$g;\n\n\t\tfor($i = 0; $i < sizeof(self::$questions); $i++)\n\t\t\t$array[] = 'question_'.$i;\n\n\t\treturn $array;\n\t}", "public function getFields(): array\n {\n return $this->fields;\n }", "public function getFields(): array\n {\n return $this->fields;\n }", "public function getFieldsList()\n {\n return $this->table_fields_names;\n }", "function get_fields_name()\n\t{\n\t\treturn $this->db->list_fields( $this->table );\n\t}", "public function field_data()\n\t{\n\t\t$retval = array();\n\t\tfor ($c = 1, $fieldCount = $this->num_fields(); $c <= $fieldCount; $c++)\n\t\t{\n\t\t\t$F\t\t\t= new stdClass();\n\t\t\t$F->name\t\t= oci_field_name($this->stmt_id, $c);\n\t\t\t$F->type\t\t= oci_field_type($this->stmt_id, $c);\n\t\t\t$F->max_length\t\t= oci_field_size($this->stmt_id, $c);\n\n\t\t\t$retval[] = $F;\n\t\t}\n\n\t\treturn $retval;\n\t}", "protected function _fields()\n\t{\n\t\treturn array(\n\t\t\t\t'name',\n\t\t\t 'intro', 'sort_order',\n\t\t\t 'status', 'feature',\n\t\t);\n\t}", "public function fields()\n {\n return [];\n }", "public function fields()\n {\n return [];\n }", "public function fields()\n {\n return [];\n }", "public function fields()\n {\n return [];\n }", "public function fields()\n {\n return [];\n }", "public function getFields() {}", "public function getFields() {}", "public function getFields() {}", "public function fields()\n {\n return array_map(\n function (array $field) {\n return Field::fromArray($field);\n },\n $this->client->get('field')\n );\n }", "public function getFields():array\n {\n return [\n 'x_login' => 'text',\n 'x_trans_key' => 'text',\n 'secret_key' => 'password',\n ];\n }", "function fields($fldname) {\n\t\treturn $this->fields[$fldname];\n\t}", "public function getFields() {\n $fields = $this->_fields;\n\n if ($this->getJoins() && !$fields && $this->getType() === self::SELECT) {\n return array_keys($this->getRepository()->getSchema()->getColumns());\n }\n\n return $fields;\n }", "protected function _getFields()\n {\n return array(\n 'xf_tab_name' => array(\n 'tab_name_id' => array(\n 'type' => self::TYPE_UINT,\n 'autoIncrement' => true\n ), /* END 'tab_name_id' */\n 'display_order' => array(\n 'type' => self::TYPE_UINT,\n 'default' => 0\n ), /* END 'display_order' */\n )\n );\n }", "public function getListFields();", "public function fields(): array\n {\n return [\n 'firstName' => [\n 'type' => Type::string(),\n 'description' => 'The first name of user'\n ],\n 'middleName' => [\n 'type' => Type::string(),\n 'description' => 'The middle name of the user'\n ],\n 'lastName' => [\n 'type' => Type::string(),\n 'description' => 'The last name of the user'\n ],\n 'id' => [\n 'type' => Type::int(),\n 'description' => 'Users identification.'\n ]\n ];\n }", "public function fields() : array\n {\n $fields = [];\n foreach ($this->queries as $class) {\n $fields[$class::$name] = (new $class)->toArray();\n }\n return $fields;\n }", "function wrapper_field_names($table) {\n\n\t\t$rowdata = $this->query_return(\"SELECT TOP 1 * FROM $table\");\n\t\t$fields = array();\n\n\t\tforeach ($rowdata as $f => $x) {\n\t\t\t$fields[] = $f;\n\t\t}\n\n\t\treturn $fields;\n\t}", "public static function getDbFields()\n {\n global $zdb;\n $columns = $zdb->getColumns(self::TABLE);\n $fields = array();\n foreach ( $columns as $col ) {\n $fields[] = $col->getName();\n }\n return $fields;\n }", "public function get_fields()\n {\n return [\n 'isys_catg_emergency_plan_list__title' => 'LC__CMDB__CATG__EMERGENCY_PLAN_TITLE',\n 'isys_obj_type__title' => 'LC__CMDB__OBJTYPE',\n 'isys_obj__title' => 'LC__CMDB__CATG__GLOBAL_TITLE',\n 'isys_cats_emergency_plan_list__calc_time_need' => 'LC__CMDB__CATS__EMERGENCY_PLAN_CALC_TIME_NEEDED',\n 'practice_date' => 'LC__CMDB__CATS__EMERGENCY_PLAN_PRACTICE_ACTUAL_DATE'\n ];\n }", "public function getFields(): array\n {\n return [\n 'user_id' => 'text',\n 'api_key' => 'text',\n 'shop_id' => 'text',\n 'secret_key' => 'password',\n ];\n }", "function field_data()\n\t{\n\t\t$retval = array();\n\t\tforeach(sqlsrv_field_metadata($this->result_id) as $offset => $field)\n\t\t{\n\t\t\t$F \t\t\t\t= new stdClass();\n\t\t\t$F->name \t\t= $field['Name'];\n\t\t\t$F->type \t\t= $field['Type'];\n\t\t\t$F->max_length\t= $field['Size'];\n\t\t\t$F->primary_key = 0;\n\t\t\t$F->default\t\t= '';\n\t\t\t\n\t\t\t$retval[] = $F;\n\t\t}\n\t\t\n\t\treturn $retval;\n\t}", "public function getFieldData()\n {\n $retval = array();\n for ($c = 1, $fieldCount = $this->getFieldsCount(); $c <= $fieldCount; $c++) {\n $item = array();\n $item['name'] = oci_field_name($this->stmt_id, $c);\n $item['type'] = oci_field_type($this->stmt_id, $c);\n $item['max_length'] = oci_field_size($this->stmt_id, $c);\n $retval[] = $item;\n }\n\n return $retval;\n }", "public function getFieldsList(){\n return $this->_get(1);\n }", "public function fields();", "public function fields();", "public function fields();", "public function fields();", "public function fields();", "public function get_fields()\n {\n return [\n \"isys_cats_chassis_slot_list__title\" => \"LC__CMDB__LOGBOOK__TITLE\",\n \"isys_chassis_connector_type__title\" => \"LC__CMDB__CATS__CHASSIS__CONNECTOR_TYPE\",\n \"isys_cats_chassis_slot_list__insertion\" => \"LC__CMDB__CATS__CHASSIS__INSERTION\",\n \"assigned_items\" => \"LC__CMDB__CATS__CHASSIS__ASSIGNED_DEVICES\"\n ];\n }", "protected function _getFields()\r\n {\r\n return array(\r\n 'xf_bible' => array(\r\n 'bible_id' => array(\r\n 'type' => self::TYPE_STRING,\r\n 'required' => true\r\n ),\r\n 'name' => array(\r\n 'type' => self::TYPE_STRING,\r\n 'required' => true\r\n ),\r\n 'copyright' => array(\r\n 'type' => self::TYPE_STRING,\r\n 'default' => ''\r\n ),\r\n 'abbreviation' => array(\r\n 'type' => self::TYPE_STRING,\r\n 'default' => ''\r\n ),\r\n 'language' => array(\r\n 'type' => self::TYPE_STRING,\r\n 'default' => 'eng'\r\n ),\r\n 'note' => array(\r\n 'type' => self::TYPE_STRING,\r\n 'default' => ''\r\n ),\r\n 'last_modified' => array(\r\n 'type' => self::TYPE_UINT,\r\n 'default' => XenForo_Application::$time\r\n )\r\n )\r\n );\r\n }" ]
[ "0.86128205", "0.85876656", "0.85108995", "0.8494709", "0.84465975", "0.8395051", "0.83487207", "0.8303219", "0.81898624", "0.81717", "0.8130863", "0.8101386", "0.80858463", "0.8085378", "0.8045148", "0.8033581", "0.8033194", "0.80260015", "0.80204964", "0.8014597", "0.79985577", "0.7981282", "0.7974818", "0.7935725", "0.7894469", "0.78901696", "0.78899187", "0.7884615", "0.7879966", "0.7879966", "0.7879966", "0.7841796", "0.7841796", "0.7841796", "0.77876705", "0.77738965", "0.7730605", "0.77296484", "0.7721998", "0.7721998", "0.7721998", "0.7721998", "0.7721998", "0.7721998", "0.7698806", "0.7677095", "0.7654875", "0.762797", "0.7614086", "0.75787807", "0.7542102", "0.7541408", "0.75298536", "0.75215", "0.7510172", "0.748587", "0.7474286", "0.74712825", "0.7469719", "0.7463887", "0.74520165", "0.74315035", "0.74237615", "0.7395559", "0.7387837", "0.7387837", "0.73830396", "0.7361874", "0.73599017", "0.73591304", "0.73579985", "0.73579985", "0.73579985", "0.73579985", "0.73579985", "0.7353103", "0.7353103", "0.7353103", "0.73388064", "0.73354226", "0.7324042", "0.73199946", "0.7316752", "0.731349", "0.7313147", "0.73044544", "0.72866464", "0.7280234", "0.7266816", "0.7261814", "0.72591716", "0.7255963", "0.7238324", "0.7236663", "0.7236663", "0.7236663", "0.7236663", "0.7236663", "0.7220318", "0.7220266" ]
0.76602095
46
Returning assoc array with types of fields
public function schema() { return $this->getKey('schema', true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_field_types()\n {\n }", "function FieldTypesArray() {}", "public static function getAllFieldsWithTypes(): array\n {\n $className = get_called_class();\n $table = with(new $className)->getTable();\n\n\n $cache_key = self::$cache_prefix.'.ALLFIELDS.WITH.TYPES.' . strtoupper($table);\n\n return self::$use_cache ? Cache::remember($cache_key, 5 * 60, function () use ($table) {\n return self::getArrayTableInfo($table);\n }) : self::getArrayTableInfo($table);\n }", "function mysql_field_type_array( $query ) {\r\n\t\t\t$field = mysql_num_fields( $query );\r\n\t\t\tfor ( $i = 0; $i < $field; $i++ ) {\r\n\t\t\t\t$types[] = mysql_field_type( $query, $i );\r\n\t\t\t}\r\n\t\t\treturn $types;\t\r\n\t\t}", "function _getTypes()\n {\n $types = array(\n 0 => \"null\",\n 1 => \"bool\",\n 2 => \"int\",\n 3 => \"float\",\n 4 => \"varchar\",\n 5 => \"text\",\n 6 => \"blob\"\n );\n $tLeast = $this->table->count() < 2 ? 4 : 0;\n if ($this->GET('override')) {\n $types[1] = \"int\";\n $types[4] = \"text\";\n $types[6] = \"text\";\n }\n foreach ($this->table->fields as $field) {\n $t[$field] = strcasecmp($field, \"id\") ? $tLeast : 2;\n }\n while ($row = $this->table->each()) {\n foreach ($row as $field => $value) {\n if (preg_match('/[\\x00-\\x06\\x08\\x0B-\\x0C\\x0E-\\x13\\x16-\\x1F]/', $value))\n $t[$field] = 6;\n elseif (strlen($value) > 255 || strpos($value, \"\\n\"))\n $t[$field] = max($t[$field], 5);\n elseif (! empty($value) && ! is_numeric($value))\n $t[$field] = max($t[$field], 4);\n elseif (! preg_match('/^[+-]?\\d{0,10}$/s', $value))\n $t[$field] = max($t[$field], 3);\n elseif (! preg_match('/^[01]?$/s', $value))\n $t[$field] = max($t[$field], 2);\n elseif (strlen($value))\n $t[$field] = max($t[$field], 1);\n }\n }\n foreach ($this->table->fields as $field) {\n $this->types[$field] = $types[$t[$field]];\n }\n $this->table->reset();\n }", "public function getFieldtypesFromTable()\n {\n $used_fieldtypes = ee()->db->select('name')->order_by('name')->get('fieldtypes');\n\n return array_column($used_fieldtypes->result_array(), 'name');\n }", "public static function fieldTypes()\n {\n $types = [\n 'label' => _MA_XMARTICLE_FIELDTYPE_LABEL,\n 'vs_text' => _MA_XMARTICLE_FIELDTYPE_VSTEXT,\n 's_text' => _MA_XMARTICLE_FIELDTYPE_STEXT,\n 'm_text' => _MA_XMARTICLE_FIELDTYPE_MTEXT,\n 'l_text' => _MA_XMARTICLE_FIELDTYPE_LTEXT,\n 'text' => _MA_XMARTICLE_FIELDTYPE_TEXT,\n 'select' => _MA_XMARTICLE_FIELDTYPE_SELECT,\n 'select_multi' => _MA_XMARTICLE_FIELDTYPE_SELECTMULTI,\n 'radio_yn' => _MA_XMARTICLE_FIELDTYPE_RADIOYN,\n 'radio' => _MA_XMARTICLE_FIELDTYPE_RADIO,\n 'checkbox' => _MA_XMARTICLE_FIELDTYPE_CHECKBOX,\n 'number' => _MA_XMARTICLE_FIELDTYPE_NUMBER\n ];\n\n return $types;\n }", "protected function get_array_field_types() {\n\t\treturn array( 'multicheck' );\n\t}", "public static function getFieldTypes() {\n\t\treturn self::$FIELD_TYPES;\n\t}", "public static function getFieldTypes() {\n\t\treturn self::$FIELD_TYPES;\n\t}", "public static function getFieldTypes() {\n\t\treturn self::$FIELD_TYPES;\n\t}", "public function getTypeFields(): array\n {\n return array_merge(\n $this->getAttributesFields(),\n $this->getTypeRelations(),\n $this->getAggregatedFields(),\n $this->getOptionalFields()\n );\n }", "public function get_fields()\n {\n $l_table = $this->m_cat_dao->get_table();\n $l_properties = $this->m_cat_dao->get_properties();\n\n return [\n $l_table . '__id' => 'ID',\n $l_table . '__key' => $l_properties['key'][C__PROPERTY__INFO][C__PROPERTY__INFO__TITLE],\n $l_table . '__value' => $l_properties['value'][C__PROPERTY__INFO][C__PROPERTY__INFO__TITLE],\n $l_table . '__group' => $l_properties['group'][C__PROPERTY__INFO][C__PROPERTY__INFO__TITLE],\n 'isys_catg_identifier_type__title' => $l_properties['type'][C__PROPERTY__INFO][C__PROPERTY__INFO__TITLE]\n ];\n }", "function getFieldsTypes()\n {\n return array(\n'id' =>'integer',\n'paypalid'=>'string',\n'notifyid'=>'string',\n\n\t\t\t\n\t );\n }", "public static function getTypeMap() {\n return [\n 'charge_id' => self::FIELD_INT,\n 'user_id' => self::FIELD_INT,\n 'amount' => self::FIELD_INT,\n 'description' => self::FIELD_STRING,\n 'charge_date' => self::FIELD_EPOCH,\n 'create_date' => self::FIELD_EPOCH,\n 'update_date' => self::FIELD_EPOCH,\n ];\n }", "public function getFieldTypes() {\n\t\treturn array(crud::TYPE_STRING);\n\t}", "public function getFields() {\n $columns = $this->schema();\n if (empty($columns)) {\n trigger_error(__d('cake_dev', '(Model::getColumnTypes) Unable to build model field data. If you are using a model without a database table, try implementing schema()'), E_USER_WARNING);\n }\n\n $results = array();\n foreach ($columns as $key => $col) {\n $results[] = $key;\n }\n unset($columns);\n return $results;\n }", "function acf_get_field_types_info($args = array())\n{\n}", "private function getUsedChannelFieldtypes()\n {\n $channel_fields = ee()->db->select('field_type')->order_by('field_type')->get('channel_fields');\n $data = [];\n foreach ($channel_fields->result_array() as $ft) {\n $data[$ft['field_type']] = ['exp_channel_fields'];\n }\n\n return $data;\n }", "protected function _getFields()\n {\n return array(\n 'xf_handler' => array(\n 'handler_id' => array('type' => self::TYPE_UINT, 'autoIncrement' => true), \n 'content_type' => array('type' => self::TYPE_STRING, 'maxLength' => 255, 'required' => true), \n 'handler_type_id' => array('type' => self::TYPE_STRING, 'required' => true), \n 'object_class_id' => array('type' => self::TYPE_UINT, 'required' => true), \n 'extra_data_cache' => array('type' => self::TYPE_SERIALIZED, 'default' => ''), \n ), \n );\n }", "function get_field_mapping_types() {\n return drupal_map_assoc([\n 'string',\n 'keyword',\n 'date',\n 'long',\n 'double',\n 'boolean',\n 'ip',\n 'object',\n 'nested',\n 'geo_point',\n 'geo_shape',\n 'completion',\n ]);\n}", "function get_known_types()\n {\n return array_keys($this->object->_forms);\n }", "function get_fields_in_table( ){\n\t\t\t\t $result = mysql_query(\"SHOW COLUMNS FROM \".$this->db.\".\".$this->table.\"\");\n\t\t\t\tif (!$result) {\n\t\t\t\t echo 'Could not run query: ' . mysql_error();\n\t\t\t\t exit;\n\t\t\t\t}\n\t\t\t\tif (mysql_num_rows($result) > 0) {\n\t\t\t\t while ($row = mysql_fetch_assoc($result)) {\n\t\t\t\t \n\t\t\t\t //$a_fields[]=$row;\n\t\t\t\t $a_fields[]=$row['Field'].\" | \".$row['Type'];\n\t\t\t\t \n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\treturn $a_fields;\n\t\t\t }", "public function get_types()\n\t{\n\t\treturn array();\n\t}", "function acf_get_grouped_field_types()\n{\n}", "static public function fieldTypes()\n {\n if (!empty(self::$_fieldTypes)) {\n return self::$_fieldTypes;\n }\n\n /* Fetch all declared classes. */\n $classes = get_declared_classes();\n\n /* Filter for the Horde_Form_Type classes. */\n $blacklist = array('invalid', 'addresslink', 'spacer', 'description',\n 'captcha', 'figlet', 'header');\n foreach ($classes as $class) {\n if (stripos($class, 'horde_form_type_') !== false) {\n $field_type = substr($class, 16);\n /* Don't bother including the types that cannot be handled\n * usefully. */\n if (in_array($field_type, $blacklist)) {\n continue;\n }\n self::$_fieldTypes[$field_type] = @call_user_func(\n array('Horde_Form_Type_' . $field_type, 'about'));\n }\n }\n\n return self::$_fieldTypes;\n }", "function fields ($tableName)\n {\n $sql = \"SELECT c.relname, a.attname, t.typname FROM pg_class c, pg_attribute a, pg_type t WHERE c.relname = '{$tableName}' AND a.attnum > 0 AND a.attrelid = c.oid AND a.atttypid = t.oid\";\n\n $fields = false;\n foreach ($this->all($sql) as $field) {\n $fields[] = array(\n 'name' => $field['attname'],\n 'type' => $field['typname']);\n }\n\n return $fields;\n }", "public static function getTypeMap() {\n return [\n 'session_id' => self::FIELD_INT,\n 'user_id' => self::FIELD_INT,\n 'session_string' => self::FIELD_STRING,\n 'create_date' => self::FIELD_EPOCH,\n 'update_date' => self::FIELD_EPOCH,\n ];\n }", "public function getTypes(): array;", "public function getTypes(): array;", "public function getFields()\n {\n return array(\n 'id' => array('int', 6, array('primary' => true)),\n 'created' => array('datetime', 255, array('null' => false)),\n 'customer_id' => array('int', 8, array('null' => false)),\n 'device_id' => array('int', 8, array('null' => false)),\n );\n }", "function acf_get_field_types($args = array())\n{\n}", "public function get_fields()\n {\n return [\n \"isys_catg_invoice_list__denotation\" => \"LC__CMDB__CATG__TITLE\",\n \"isys_catg_invoice_list__amount\" => \"LC__CMDB__CATG__INVOICE__AMOUNT\",\n \"isys_catg_invoice_list__date\" => \"LC__CMDB__CATG__INVOICE__DATE\",\n \"isys_catg_invoice_list__edited\" => \"LC__CMDB__CATG__INVOICE__EDITED\",\n \"isys_catg_invoice_list__financial_accounting_delivery\" => \"LC__CMDB__CATG__INVOICE__FINANCIAL_ACCOUNTING_DELIVERY\",\n \"isys_catg_invoice_list__charged\" => \"LC__CMDB__CATG__INVOICE__CHARGED\",\n ];\n }", "protected function getTypes() {}", "protected function _getDataTypes(){\n\t\treturn ActiveRecordMetaData::getDataTypes($this->_source, $this->_schema);\n\t}", "function &getAssociatedTypes() {\n\t\tif ($this->getIsGeneric()) { return array(); }\n\t\t\n\t\t$sTable = KTUtil::getTableName('document_type_fieldsets');\n $aQuery = array(\n \"SELECT document_type_id FROM $sTable WHERE fieldset_id = ?\",\n array($this->getId()),\n );\n $aIds = DBUtil::getResultArrayKey($aQuery, 'document_type_id');\n\t\t\n\t\t$aRet = array();\n\t\tforeach ($aIds as $iID) {\n\t\t $oType = DocumentType::get($iID);\n\t\t\tif (!PEAR::isError($oType)) { \n\t\t\t $aRet[] = $oType;\n\t\t\t}\n\t\t}\n\t\treturn $aRet;\n\t}", "public function asArray()\n\t{\n\t\t$fields = [\n\t\t\t'@type' => $this->type(),\n\t\t\t'@key' => $this->key()\n\t\t];\n\n\t\tforeach ($this->fields as $name => $field)\n\t\t{\n\t\t\t$fields[$name] = $field->value;\n\t\t}\n\n\t\treturn $fields;\n\t}", "public function getDataWithTypeField() {}", "function SupportedFields($dataType) { return []; }", "protected function _getFields()\r\n {\r\n return array(\r\n 'xf_bible' => array(\r\n 'bible_id' => array(\r\n 'type' => self::TYPE_STRING,\r\n 'required' => true\r\n ),\r\n 'name' => array(\r\n 'type' => self::TYPE_STRING,\r\n 'required' => true\r\n ),\r\n 'copyright' => array(\r\n 'type' => self::TYPE_STRING,\r\n 'default' => ''\r\n ),\r\n 'abbreviation' => array(\r\n 'type' => self::TYPE_STRING,\r\n 'default' => ''\r\n ),\r\n 'language' => array(\r\n 'type' => self::TYPE_STRING,\r\n 'default' => 'eng'\r\n ),\r\n 'note' => array(\r\n 'type' => self::TYPE_STRING,\r\n 'default' => ''\r\n ),\r\n 'last_modified' => array(\r\n 'type' => self::TYPE_UINT,\r\n 'default' => XenForo_Application::$time\r\n )\r\n )\r\n );\r\n }", "public static function fields()\n\t{\n\t\t$array = self::$fields;\n\n\t\tfor($g = 0; $g < sizeof(self::$genders); $g++)\n\t\t\t$array[] = 'interested_'.$g;\n\n\t\tfor($i = 0; $i < sizeof(self::$questions); $i++)\n\t\t\t$array[] = 'question_'.$i;\n\n\t\treturn $array;\n\t}", "private function getFields()\n {\n return [\n [\n \"field_type\" => \"text\",\n \"field_name\" => \"first_name\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n [\n \"field_type\" => \"text\",\n \"field_name\" => \"last_name\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n [\n \"field_type\" => \"checkbox\",\n \"field_name\" => \"happy\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n [\n \"field_type\" => \"select\",\n \"field_name\" => \"character\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => [\n [\"value\" => \"biff\", \"label\" => \"Biff\"],\n [\"value\" => \"marty\", \"label\" => \"Marty\"],\n [\"value\" => \"doc\", \"label\" => \"Doc Brown\"],\n [\"value\" => \"jennifer\", \"label\" => \"Jennifer\"],\n [\"value\" => \"needles\", \"label\" => \"Needles\"],\n ]\n ],\n [\n \"field_type\" => \"checkbox\",\n \"field_name\" => \"kids\",\n \"field_editable\" => rand(0,1000) % 2 === 0 ? true : false,\n \"field_values\" => null,\n ],\n ];\n }", "protected function fetchFields(){\n $fields = X3::db()->fetchFields($this->modelName);\n $_res = array();\n foreach($fields as $name=>$field){\n $dataType = X3_MySQL_Command::parseMySQLField($field);\n $_res[$name] = $dataType;\n }\n return $_res;\n }", "function field_data()\r\n\t{\r\n\t\t$retval = array();\r\n /*\r\n echo \"<pre>\";\r\n var_dump($this->result_id);\r\n var_dump($this->pdo_results);\r\n echo \"</pre>\";\r\n */\r\n $table_info = $this->pdo_results;\r\n assert(is_array($table_info));\r\n foreach ($table_info as $row_info) {\r\n $F = new stdClass();\r\n $F->name = $row_info['name'];\r\n $F->type = $row_info['type'];\r\n $F->default = $row_info['dflt_value'];\r\n $F->max_length = 0;\r\n $F->primary_key = $row_info['pk'];\r\n \r\n $retval[] = $F;\r\n }\r\n\r\n return $retval;\r\n }", "public function getFields(): array;", "public function getFields(): array;", "public function getFields(): array;", "public function getElasticaFields() {\n $db = $this->owner->db();\n\t\t$fields = $this->getAllSearchableFields();\n\t\t$result = array();\n\n\t\tforeach ($fields as $name => $params) {\n\t\t\t$type = null;\n\t\t\t$spec = array();\n\n\t\t\tif (array_key_exists($name, $db)) {\n\t\t\t\t$class = $db[$name];\n\n\t\t\t\tif (($pos = strpos($class, '('))) {\n\t\t\t\t\t$class = substr($class, 0, $pos);\n\t\t\t\t}\n\n\t\t\t\tif (array_key_exists($class, self::$mappings)) {\n\t\t\t\t\t$spec['type'] = self::$mappings[$class];\n\t\t\t\t}\n\t\t\t} else {\n // TODO: Generalize to the mapping types by allowing the type to be specified in $searchable_fields\n $spec[\"type\"] = \"string\";\n }\n\n\t\t\t$result[$name] = $spec;\n\t\t}\n\n\t\treturn $result;\n\t}", "function field_data()\n\t{\n\t\t$retval = array();\n\t\tforeach(sqlsrv_field_metadata($this->result_id) as $offset => $field)\n\t\t{\n\t\t\t$F \t\t\t\t= new stdClass();\n\t\t\t$F->name \t\t= $field['Name'];\n\t\t\t$F->type \t\t= $field['Type'];\n\t\t\t$F->max_length\t= $field['Size'];\n\t\t\t$F->primary_key = 0;\n\t\t\t$F->default\t\t= '';\n\t\t\t\n\t\t\t$retval[] = $F;\n\t\t}\n\t\t\n\t\treturn $retval;\n\t}", "function acf_parse_types($array)\n{\n}", "public function fields(): array\n {\n return [\n 'firstName' => [\n 'type' => Type::string(),\n 'description' => 'The first name of user'\n ],\n 'middleName' => [\n 'type' => Type::string(),\n 'description' => 'The middle name of the user'\n ],\n 'lastName' => [\n 'type' => Type::string(),\n 'description' => 'The last name of the user'\n ],\n 'id' => [\n 'type' => Type::int(),\n 'description' => 'Users identification.'\n ]\n ];\n }", "function field_data()\n\t{\n\t\t$retval = array();\n\t\twhile ($field = mysqli_fetch_field($this->result_id))\n\t\t{\n\t\t\t$F\t\t\t\t= new stdClass();\n\t\t\t$F->name\t\t= $field->name;\n\t\t\t$F->type\t\t= $field->type;\n\t\t\t$F->default\t\t= $field->def;\n\t\t\t$F->max_length\t= $field->max_length;\n\t\t\t$F->primary_key = ($field->flags & MYSQLI_PRI_KEY_FLAG) ? 1 : 0;\n\n\t\t\t$retval[] = $F;\n\t\t}\n\n\t\treturn $retval;\n\t}", "public function field_data()\n\t{\n\t\t$retval = array();\n\t\tfor ($c = 1, $fieldCount = $this->num_fields(); $c <= $fieldCount; $c++)\n\t\t{\n\t\t\t$F\t\t\t= new stdClass();\n\t\t\t$F->name\t\t= oci_field_name($this->stmt_id, $c);\n\t\t\t$F->type\t\t= oci_field_type($this->stmt_id, $c);\n\t\t\t$F->max_length\t\t= oci_field_size($this->stmt_id, $c);\n\n\t\t\t$retval[] = $F;\n\t\t}\n\n\t\treturn $retval;\n\t}", "public function get_desired_types();", "public function getTypes();", "public function getTypes();", "public function getTypes();", "public function getTypes();", "public function getTypes()\n {\n return get_object_vars($this);\n }", "public function getTypes()\n\t{\n\t\t$keys = array_keys( ColumnHelper::getAvailableTypes() );\n\t\t$labels = Sort::pluck( ColumnHelper::getAvailableTypes(), 'name' );\n\n\t\t$response = [];\n\t\t$types = array_combine( $keys, $labels );\n\t\t$allowed = $this->section->allowedColumns;\n\t\t$allowed = apply_filters( 'chef_sections_default_allowed_columns', $allowed, $this, $this->section );\n\n\t\tforeach( $types as $key => $type ){\n\t\t\tif( in_array( $key, $allowed ) )\n\t\t\t\t$response[ $key ] = $type;\n\t\t}\n\n\t\treturn $response;\n\n\t}", "public static function getTypes();", "protected function _getFields()\n {\n return array(\n 'xf_keywordalert_keyword' => array(\n 'keyword_id' => array('type' => XenForo_DataWriter::TYPE_UINT, 'autoIncrement' => true),\n 'name' => array('type' => XenForo_DataWriter::TYPE_STRING, 'required' => true, 'maxLength' => 255,\n 'requiredError' => 'keywordalert_you_must_give_the_keyword_set_a_name'),\n 'keywords' => array('type' => XenForo_DataWriter::TYPE_SERIALIZED),\n 'notify_frequency' => array('type' => XenForo_DataWriter::TYPE_UINT, 'required' => true),\n 'send_alert' => array('type' => XenForo_DataWriter::TYPE_BOOLEAN, 'default' => 0),\n 'user_id' => array('type' => XenForo_DataWriter::TYPE_UINT, 'required' => true),\n 'forum_mode' => array(\n 'type' => XenForo_DataWriter::TYPE_STRING,\n 'required' => true,\n 'allowedValues' => array('whitelist', 'blacklist', 'all')\n ),\n 'forum_data' => array('type' => XenForo_DataWriter::TYPE_SERIALIZED),\n 'excluded_rules' => array('type' => XenForo_DataWriter::TYPE_SERIALIZED)\n )\n );\n }", "public function guessTypes($arr, $pkFields = array()) {\r\n\t\t$fields = array();\r\n\t\tforeach ($arr as $name => $type) {\r\n\t\t\tif (is_int($name)) {\r\n\t\t\t\t$name = $type;\r\n\t\t\t\t$type = '';\r\n\t\t\t}\r\n\t\t\tif (empty($type)) {\r\n\t\t\t\t$type = $this->guessType($name, $pkFields);\r\n\t\t\t}\r\n\t\t\t$fields[$name] = $type;\r\n\t\t}\r\n\t\treturn $fields;\r\n\t}", "public function getAllFieldTypes(): array\n {\n Craft::$app->getDeprecator()->log('craft.fields.getAllFieldTypes()', 'craft.fields.getAllFieldTypes() has been deprecated. Use craft.app.fields.allFieldTypes instead.');\n\n return Craft::$app->getFields()->getAllFieldTypes();\n }", "public function get_fields()\n {\n return [\n 'isys_catg_emergency_plan_list__title' => 'LC__CMDB__CATG__EMERGENCY_PLAN_TITLE',\n 'isys_obj_type__title' => 'LC__CMDB__OBJTYPE',\n 'isys_obj__title' => 'LC__CMDB__CATG__GLOBAL_TITLE',\n 'isys_cats_emergency_plan_list__calc_time_need' => 'LC__CMDB__CATS__EMERGENCY_PLAN_CALC_TIME_NEEDED',\n 'practice_date' => 'LC__CMDB__CATS__EMERGENCY_PLAN_PRACTICE_ACTUAL_DATE'\n ];\n }", "private function get_field_value_types() : array {\n $fields_with_value_types = array_filter( $this->instances, function( $instance ) {\n return $instance instanceof Field && $this->does_field_have_value_type( $instance );\n } );\n\n return array_reduce( $fields_with_value_types, function( $value_types, $field ) {\n $value_types[ $field::TYPE ] = $field::TYPE . 'Value';\n\n return $value_types;\n }, [] );\n }", "public function fields()\n {\n return [\n 'id' => [\n 'type' => Type::nonNull(Type::string()),\n 'description' => 'The id of the place'\n ],\n 'cep' => [\n 'type' => Type::string(),\n 'description' => 'The cep of the place'\n ],\n 'name' => [\n 'type' => Type::string(),\n 'description' => 'The name of the place'\n ],\n 'number' => [\n 'type' => Type::string(),\n 'description' => 'The building number of the place'\n ],\n ];\n }", "function FieldTypeList ( ) { return $this->_FieldTypeList; }", "public function getTypeArr(){\n\t\treturn [\n\t\t\t'normal' =>'Normal',\n\t\t\t'ip'\t =>'IP',\n\t\t\t'iprange'=>'IP Bereich'\n\t\t];\n\t}", "function acadp_get_custom_field_types() {\n\n\t$types = array(\n\t\t'text' => __( 'Text', 'advanced-classifieds-and-directory-pro' ),\n\t\t'textarea' => __( 'Text Area', 'advanced-classifieds-and-directory-pro' ),\n\t\t'select' => __( 'Select', 'advanced-classifieds-and-directory-pro' ),\n\t\t'checkbox' => __( 'Checkbox', 'advanced-classifieds-and-directory-pro' ),\n\t\t'radio' => __( 'Radio Button', 'advanced-classifieds-and-directory-pro' ),\n\t\t'url' => __( 'URL', 'advanced-classifieds-and-directory-pro' )\n\t);\n\n\t// Return\n\treturn apply_filters( 'acadp_custom_field_types', $types );\n\n}", "abstract public function getFields(): array;", "public function getTypes()\n {\n $oDb = Factory::service('Database');\n $oResult = $oDb->query('SHOW COLUMNS FROM `' . $this->table . '` LIKE \"type\"')->row();\n $sTypes = $oResult->Type;\n $sTypes = preg_replace('/enum\\((.*)\\)/', '$1', $sTypes);\n $sTypes = str_replace(\"'\", '', $sTypes);\n $aTypes = explode(',', $sTypes);\n\n $aOut = [];\n\n foreach ($aTypes as $sType) {\n $aOut[$sType] = ucwords(strtolower($sType));\n }\n\n return $aOut;\n }", "public static function getTypeArray() {\n\t\treturn array( \n\t\t\t'hash' => 'EthD32',\n\t\t\t'nonce' => 'EthQ',\n\t\t\t'blockHash' => 'EthD32',\n\t\t\t'blockNumber' => 'EthQ',\n\t\t\t'transactionIndex' => 'EthQ',\n\t\t\t'from' => 'EthD20',\n\t\t\t'to' => 'EthD20',\n\t\t\t'value' => 'EthQ',\n\t\t\t'gasPrice' => 'EthQ',\n\t\t\t'gas' => 'EthQ',\n\t\t\t'input' => 'EthD',\n\t\t);\n\t}", "static public function fieldTypeNames()\n {\n /* Fetch the field type information from the Horde_Form classes. */\n $fields = self::fieldTypes();\n\n /* Strip out the name element from the array. */\n $available_fields = array();\n foreach ($fields as $field_type => $info) {\n $available_fields[$field_type] = $info['name'];\n }\n\n /* Sort for display purposes. */\n asort($available_fields);\n\n return $available_fields;\n }", "public static function getColumnTypes()\n {\n return array(\n 'bindingId' => 'int',\n 'libraryId' => 'int',\n 'signature' => 'istring',\n 'summary' => 'istring',\n 'status' => 'int',\n );\n }", "public static function getColumnTypes()\n {\n return array(\n 'bookId' => 'int',\n 'languageId' => 'int'\n );\n }", "function _get_avail_fields() {\n\t\t$avail_fields = array();\n\t\tif ($this->MODE == \"SIMPLE\") {\n\t\t\t$avail_fields = $this->_get_fields_map_simple();\n\t\t} else {\n\t\t\t$avail_fields = $this->_get_fields_map_dynamic(true);\n\t\t}\n\t\treturn $avail_fields;\n\t}", "public function toArray()\n {\n $fields = array(); \n foreach ($GLOBALS['InfusionsoftApp']->fields[$this->_table] as $field)\n {\n $fields[$field] = $this->$field;\n } \n return $fields;\n }", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function getFields();", "public function fields()\n\t{\n\t\treturn [\n\t\t\t'organization_id'=>\t[\n\t\t\t\t\t\t\t\t\t'type' \t\t\t=> Type::string(),\n\t\t\t\t\t\t\t\t\t'description' \t=> 'The id of the user'\n\t\t\t\t\t\t\t\t],\n\t\t\t'scopes'\t\t=> \t[\n\t\t\t\t\t\t\t\t\t'type' \t\t\t=> Type::listOf(Type::string()),\n\t\t\t\t\t\t\t\t\t'description' \t=> 'The name of the user'\n\t\t\t\t\t\t\t\t],\n\t\t\t'id'\t\t\t=> \t[\n\t\t\t\t\t\t\t\t\t'type' \t\t\t=> Type::string(),\n\t\t\t\t\t\t\t\t\t'description' \t=> 'The active authorization start time'\n\t\t\t\t\t\t\t\t],\n\t\t];\n\t}", "function elements_type($arr){\n $keys = array_keys($arr);\n $int = $str = 0;\n foreach($keys as $key){\n if(is_int($key)){\n $int = 1; \n } \n else{\n $str = 1; \n }\n }\n $ret = array();\n if($int)\n $ret[]='int';\n if($str)\n $ret[]='str';\n \n return $ret; \n}", "function _drush_behat_get_entity_field_types($entity_type) {\n $return = array();\n $fields = \\Drupal::entityManager()->getFieldStorageDefinitions($entity_type);\n foreach ($fields as $field_name => $field) {\n if (_drush_behat_is_field($entity_type, $field_name)) {\n $return[$field_name] = $field->getType();\n }\n }\n return $return;\n}", "public static function getColumnTypes()\n {\n return array(\n 'bookId' => 'int',\n 'title' => 'istring',\n 'bindingId' => 'int',\n 'minYear' => 'int',\n 'maxYear' => 'int',\n 'preciseDate' => 'date',\n 'placePublished' => 'istring',\n 'publisher' => 'istring',\n 'printVersion' => 'istring',\n 'firstPage' => 'int',\n 'lastPage' => 'int'\n );\n }", "function get_types($array) {\n $retvalue = array();\n $fields = $array[0];\n for ($f=0; $f<count($fields); ++$f) {\n $matches_percentage = 1;\n $matches_number = 1;\n for ($k=1; $k<count($array); ++$k) {\n $row = $array[$k];\n if (count($row)<count($fields)) continue;\n $mpercentage = preg_match('/(^[0-9]+%$)/',$row[$f]);\n $mnumber = preg_match('/^[0-9]*([,\\.][0-9]+)?$/',$row[$f]);\n if (!$mpercentage) $matches_percentage = 0;\n if (!$mnumber) $matches_number = 0;\n }\n if ($mpercentage==1)\n $retvalue[$f]='p';\n else if ($mnumber==1)\n $retvalue[$f]='n';\n else\n $retvalue[$f]='s';\n }\n return $retvalue;\n}", "public function get_types()\n {\n }", "public static function getTypes($type) {\n switch($type) {\n case \"users\":\n $users_info = array(\"users_login\" => \"login\",\n \"password\" => \"password\",\n \"users_email\" => \"email\",\n \"language\" => \"languages_NAME\",\n \"users_name\" => \"name\",\n \"users_surname\" => \"surname\",\n \"active\" => \"active\",\n \"user_type\" => \"user_type\",\n \"registration_date\" => \"timestamp\");\n return $users_info;\n case \"users_to_courses\":\n return array(\"users_login\" => \"users_login\",\n \"courses_name\" => \"course_name\",\n \"course_start_date\" => \"from_timestamp\",\n \"course_user_type\" => \"user_type\",\n \"course_completed\" => \"completed\",\n \"course_comments\" => \"comments\",\n \"course_score\" => \"score\",\n \"course_active\" => \"active\",\n \"course_end_date\" => \"to_timestamp\");\n case \"users_to_groups\":\n return array(\"users_login\" => \"users_login\",\n \"group_name\" => \"groups.name\");\n }\n }", "public function fields() : array\n {\n $fields = [];\n foreach ($this->queries as $class) {\n $fields[$class::$name] = (new $class)->toArray();\n }\n return $fields;\n }", "public static function getTypes($type) {\n switch($type) {\n case \"users\":\n $users_info = array(\"users_login\" => \"login\",\n \"password\" => \"password\",\n \"users_email\" => \"email\",\n \"language\" => \"languages_NAME\",\n \"users_name\" => \"name\",\n \"users_surname\" => \"surname\",\n \"active\" => \"active\",\n \"user_type\" => \"user_type\",\n \"registration_date\" => \"timestamp\");\n return $users_info;\n case \"users_to_courses\":\n return array(\"users_login\" => \"users_login\",\n \"courses_name\" => \"courses.name\",\n \"course_start_date\" => \"users_to_courses.from_timestamp\",\n \"course_user_type\" => \"users_to_courses.user_type\",\n \"course_completed\" => \"users_to_courses.completed\",\n \"course_comments\" => \"users_to_courses.comments\",\n \"course_score\" => \"users_to_courses.score\",\n \"course_active\" => \"users_to_courses.active\",\n \"course_end_date\" => \"users_to_courses.to_timestamp\");\n case \"users_to_groups\":\n return array(\"users_login\" => \"users_login\",\n \"group_name\" => \"groups.name\");\n }\n }", "public function getFields()\n\t{\n\t\treturn [];\n\t}", "public function get_fields()\n {\n return [\n \"isys_cats_chassis_slot_list__title\" => \"LC__CMDB__LOGBOOK__TITLE\",\n \"isys_chassis_connector_type__title\" => \"LC__CMDB__CATS__CHASSIS__CONNECTOR_TYPE\",\n \"isys_cats_chassis_slot_list__insertion\" => \"LC__CMDB__CATS__CHASSIS__INSERTION\",\n \"assigned_items\" => \"LC__CMDB__CATS__CHASSIS__ASSIGNED_DEVICES\"\n ];\n }", "public function all_fields()\n {\n $allfields = array();\n foreach (array_values($this->CLASS_CONTAINER) as $val){\n $allfields = array_merge($allfields, $this->{$val});\n }\n foreach (array_values($this->singular_fields) as $val){\n if($this->{$val}) {\n $allfields[] = $this->{$val};\n }\n }\n\n return $allfields;\n }", "public function getFields(): array\n {\n return [\n 'user_id' => 'text',\n 'api_key' => 'text',\n 'shop_id' => 'text',\n 'secret_key' => 'password',\n ];\n }", "abstract protected function fields(): array;", "abstract protected function fields(): array;", "function cast_query_results($rs)\n{\n $fields = mysqli_fetch_fields($rs);\n $data = array();\n $types = array();\n foreach ($fields as $field) {\n switch ($field->type) {\n case 3:\n $types[$field->name] = 'int';\n break;\n case 4:\n $types[$field->name] = 'float';\n break;\n default:\n $types[$field->name] = 'string';\n break;\n }\n }\n while ($row = mysqli_fetch_assoc($rs)) {\n array_push($data, $row);\n }\n\n for ($i = 0; $i < count($data); $i++) {\n foreach ($types as $orgname => $type) {\n settype($data[$i][$orgname], $type);\n }\n }\n return $data;\n}", "private function addTypesToFields($fields, $model) {\n $results = [];\n\n foreach($fields as $field) {\n $results[$field] = self::inputType($field, $model);\n }\n\n return $results;\n }" ]
[ "0.7619406", "0.7613962", "0.7612683", "0.7366618", "0.71444064", "0.71346825", "0.7116177", "0.71043926", "0.7087141", "0.7087141", "0.7087141", "0.70218056", "0.7019675", "0.697234", "0.6960243", "0.694213", "0.69226223", "0.6904007", "0.6876845", "0.68715066", "0.6830494", "0.6762358", "0.6751077", "0.6725475", "0.67239213", "0.67095727", "0.66953087", "0.66837084", "0.66760415", "0.66760415", "0.66523755", "0.66349024", "0.6617965", "0.661731", "0.66159683", "0.66107154", "0.6584756", "0.657449", "0.6573917", "0.65722895", "0.65722007", "0.6571282", "0.6564115", "0.656286", "0.6536344", "0.6536344", "0.6536344", "0.65356284", "0.6521252", "0.6517155", "0.65127754", "0.6510257", "0.64742243", "0.6468551", "0.64645916", "0.64645916", "0.64645916", "0.64645916", "0.6445428", "0.6441569", "0.6424388", "0.6414114", "0.6411431", "0.63983977", "0.6397156", "0.6361493", "0.6359972", "0.6358713", "0.63577306", "0.6354459", "0.63420826", "0.6338328", "0.6335875", "0.6331308", "0.63252133", "0.6324168", "0.63215625", "0.6317511", "0.6307303", "0.6307303", "0.6307303", "0.6307303", "0.6307303", "0.6307303", "0.6269874", "0.62611026", "0.62599915", "0.62501276", "0.6243545", "0.6242746", "0.6239442", "0.6238438", "0.6234171", "0.62290174", "0.62284905", "0.62262315", "0.62215054", "0.62212586", "0.62212586", "0.6217198", "0.6215777" ]
0.0
-1
Returning last ID from table
public function lastId() { return $this->getKey('last_id'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function lastId();", "public function getLastId();", "public function getLastId();", "function get_last_id()\n {\n // TODO: Implement get_last_id() method.\n }", "public function lastID(): int;", "function lastID(){\n return pg_last_oid($this->consulta);\n }", "function lastId()\n {\n return isset($this->_query) ? $this->_query->lastId() : $this->_lastid;\n }", "static function getLastID()\r\n {\r\n $tableUser = DatabaseManager::getNameTable('TABLE_USER');\r\n\r\n $query = \"SELECT MAX(id) AS Max FROM $tableUser\";\r\n\r\n return DatabaseManager::singleFetchAssoc($query)[\"Max\"];\r\n }", "public function LastID()\r\r\n {\r\r\n $query=\"SELECT MAX(id) as Max FROM DevisVente WHERE 1\";\r\r\n $req = $this->connexion->getConnexion()->query($query);\r\r\n\r\r\n $dv = $req->fetchAll(PDO::FETCH_OBJ);\r\r\n\r\r\n return $dv;\r\r\n }", "protected function getLastId(){\n $student_current_id = \"SELECT students.id FROM `students` ORDER BY id DESC LIMIT 1\";\n $sql = $this->conn->prepare($student_current_id);\n $sql->execute();\n\n $result = $sql->setFetchMode(PDO::FETCH_ASSOC);\n $student_id = $sql->fetchAll();\n echo \"<br><br><br><br>\";\n foreach ($student_id as $id){\n $my_id = $id['id'];\n }\n return $my_id;\n }", "public function getLastId() \n {\n if(!Patient::all() -> isEmpty()){\n $recentId = Patient::orderBy('patient_id', 'desc')->first()->patient_id;\n return $recentId;\n }\n }", "public function get_last_id() {\n\t\treturn $this->last_id;\n\t}", "public function lastId(){\n return $this->lastId;\n }", "public static function getLastRowId()\n {\n return self::$id;\n }", "public static function get_last_id(){\r\n\t\treturn self::$last_id;\r\n\t}", "function last_id(){\n\t\treturn(-1);\n\t}", "function getLastInsertID(){\r\n $query = 'SELECT DISTINCT LAST_INSERT_ID() FROM ' . $this->table_name; \r\n $stmt = $this->dbConn->prepare($query);\r\n \r\n $stmt->execute();\r\n \r\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\r\n \r\n $lastID = $row['LAST_INSERT_ID()'];\r\n \r\n return $lastID;\r\n }", "public function last_id($table, $columnname) {\n $query = $this->db->select($columnname)->order_by($columnname, 'desc')->limit(1)->get($table)->row($columnname);\n return $query + 1;\n }", "public function getLastInsertID();", "protected function getLastID()\n {\n return $this->driver->getInsertId();\n }", "public function getLastId(){\n\n\t\t\treturn $this->lastInsertedIds;\n\t\t}", "function lastid(){\n\t\t$query = 'SELECT idVideo FROM video Order By idVideo Desc Limit 1';\n\t\t$link = createConection();\n\t\tif($row = pg_fetch_array(pg_exec($link,$query))){\n\t\t\tcloseConection($link);\n\t\t\treturn $row['idvideo'];\n\t\t}else{\n\t\t\tcloseConection($link);\n\t\t\treturn 0;\n\t\t}\n\t}", "public function scopeGetLastId()\n {\n return $this->latest()->first()->id;\n }", "public function getLastInsertId();", "public function getLastInsertId();", "public function getLastInsertId();", "abstract public function getLastInsertId();", "public function lastId() : int\n\t{\n\t\treturn $this->handle->lastId();\n\t}", "public function getLastId() {\n return $this->LastInsertId;\n }", "public function lastId(): int\n {\n return $this->lastId;\n }", "function getLastTableId($table=''){\t\n\t\t$CI =& get_instance();\t\t\n\t\t$qry=\"SELECT * FROM $table ORDER BY id DESC LIMIT 1\";\t\t\n\t\t$CI =& get_instance(); \n\t\t$qryy = $CI->db->query($qry);\t\t\t\t\n\t\t$result = $qryy->row();\t\t\t\n\t\tif(!empty($result))\t\t\t\t\n\t\treturn $result->id;\t\t\n\t\telse return false; \n\t}", "function lastID()\r\n\t{\r\n\t\tassert($this->link != null);\r\n\t\treturn intval($this->link->lastInsertId());\r\n\t}", "protected function getLastPrimaryKey()\n {\n return $this->getLastEntityId();\n }", "public function lastID(){\n return $this->_lastInsertID;\n }", "public function requestLastInsertedId() {\n $sql = \"SELECT MAX(idTraffic) FROM traffic\";\n $result = $this->db->fetchOne($sql);\n return $result;\n }", "public function get_new_id()\n {\n $query = \"select MAX(id) as id from team\";\n $res = $this->db->query($query);\n $res->result_array();\n $last_id = ($res->result()[0]->id)+1;\n return $last_id;\n }", "public function getLastId()\n {\n return $this->galleryMapper->getMaxId();\n }", "function lastIdProduit() {\n $sql = \"SELECT MAX(idProduit)\n FROM PRODUIT\";\n $req_prep = Model::$pdo->prepare($sql); \n $req_prep->execute();\n $req_prep->setFetchMode(PDO::FETCH_CLASS, 'ModelProduit');\n return $req_prep->fetchColumn();\n }", "public function getLastID() {\n return $this->db->insert_id();\n }", "function LastId($seq='')\n\t{\n\t\tif (!$seq) {\n\t\t\treturn false;\n\t\t}\n\t\t$query = \"SELECT \".$seq.\".currval FROM dual\";\n\t\t$nextid = $this->FetchOne($query);\n\t\treturn $nextid;\n\t}", "public function getlast_record_insert()\r {\r $query = \"select MAX(`id`) from `ct_services`\";\r $result=mysqli_query($this->conn,$query);\r $value=mysqli_fetch_row($result);\r return $value[0];\r }", "function getLastID(){\r\n $sql = $this->db->prepare(\"SELECT LAST_INSERT_ID()\");\r\n if($sql->execute()){\r\n $id = $sql->fetchColumn(0);\r\n return $id;\r\n }\r\n else\r\n return false;\r\n }", "function getNextId() {\n\t\t$query = \"select min( $this->pKey ) from $this->table where $this->pKey > $this->id\";\n\t\treturn $this->getDb()->query( $query )->getFirst();\n\t}", "public static function lastId()\n {\n return self::connect()->lastInsertId();\n }", "public function getLastId()\n {\n return $this->adodb->insert_Id();\n }", "public function lastId()\n\t{\n\t\treturn $this->lastInsertID();\n\t}", "public function lastInsertId();", "public function lastInsertId();", "public function lastInsertId();", "public function lastId()\n\t{\n\t\treturn $this->_instance->lastInsertId();\n\t}", "public function lastId() {\n\t\tif (is_null($this->lastId)) {\n\t\t\tthrow new Exception('Unable to get last ID - wrong query type');\n\t\t}\n\n\t\treturn $this->lastId;\n\t}", "public static function getLastNotificationID(){\n $row = getDatabase()->queryFirstRow(\"SELECT `id` FROM `notifications` ORDER BY `id` DESC\");\n return $row['id'];\n }", "function getLastPofId()\n\t {\n\t\t \n\t\t $query = $this->db->query('SELECT max(pof_id) as maxid FROM pof');\n $row = $query->row();\n $max_id = $row->maxid; \n\t\t\t return $max_id; \n\t\t }", "function lastInsertId ($table, $field='id')\n {\n $sql = \"SELECT CURRVAL('{$table}_{$field}_seq') AS max\";\n $res = $this->rawQuery($sql);\n $data = $this->fetchRow($res);\n return $data['max'];\n }", "public function getLastId()\n {\n return $this->wallpaperMapper->getMaxId();\n }", "public function last_id() {\n return $this->_connection->lastInsertId();\n }", "public function getLastId2()\r\n\t{\r\n\t\tif (Conexion::getEstatusConexion()) {\r\n\t\t\t$strSql = 'SELECT id_investigacion FROM investigaciones ORDER BY id_investigacion DESC LIMIT 1;';\r\n\t\t\t$respuestaArreglo = [];\r\n\t\t\t$id = 0;\r\n\t\t\ttry {\r\n\t\t\t\t$strExec = Conexion::prepare($strSql);\r\n\t\t\t\t$strExec->execute();\r\n\t\t\t\t$respuestaArreglo = $strExec->fetchAll();\r\n\t\t\t\tforeach ($respuestaArreglo as $valor) {\r\n\t\t\t\t\t$id = $valor['id_investigacion'];\r\n\t\t\t\t}\r\n\t\t\t} catch (PDOException $e) {\r\n\t\t\t\t\r\n\t\t\t\treturn $id;\r\n\t\t\t}\r\n\r\n\t\t\treturn $id;\r\n\t\t} else {\r\n\t\t\treturn $id;\r\n\t\t}\r\n\t}", "function get_last_id() {\n if ($this->is_valid())\n return @mysql_insert_id($this->connection);\n }", "public function lastID() {\n return $this->getPDO()->lastInsertId();\n }", "function fetchLastBetID() {\n $query = \"SELECT BETID FROM \" . $this->table_name_1 . \n \" WHERE BETID = (select MAX(BETID) FROM \" . $this->table_name_1 . \n \" WHERE ACCOUNTID=\" . $this->accountID . \")\";\n\n $stmt = $this->database->executePlainSQL($query);\n return $stmt;\n }", "public function getLastId()\r\n {\r\n return $this->photoMapper->getLastId();\r\n }", "function idData($table){\n $array=get($table,'id');\n $id=max($array)+1;\n return $id;\n }", "public function getMaxId()\n {\n $query = \"SELECT MAX(id) FROM \".$this->table.\" WHERE ticket<>''\";\n \n $this->db->query($query);\n\n return $this->db->single();\n }", "public function getLastId(){\n return $this->con->insertId();\n }", "public function getLastInsertId(): int;", "function insert_id($table)\n\t{\n\t\t$results = $this->fetch(\"select currval('{$table}_seq') last_id\");\n\t\treturn $results['last_id'];\n\t}", "function getLastId()\n {\n return mysqli_insert_id($this->Db);\n }", "function getLastid(){\n $this->lastid = mysqli_insert_id($this->dcon);\n return $this->lastid;\n }", "public function retrieveLastItemId() {\n return $this->itemsDB->retrieveLastItemId();\n }", "function nvp_GetLastid($tablename) {\r\n $tablename=loginDB_real_escape_string($tablename);\r\n $query=\"SELECT `id` from `\".$tablename.\"` ORDER BY `id` DESC LIMIT 1\";\r\n $result=simple_query($query);\r\n return ($result['id']);\r\n}", "static public function mdlObtenerUltimoId() {\r\n\r\n $sql = \"SELECT * FROM compras ORDER BY id DESC Limit 1\";\r\n\r\n $stmt = Conexion::conectar()->prepare($sql);\r\n\r\n $stmt -> execute();\r\n\r\n return $stmt -> fetch();\r\n\r\n }", "private function get_last_id($id){\n return DB::select('select max(hours_id) as last_id from hours where user_id = :id', ['id' => $id]);\n }", "protected function lastInsertedId() {\n\t\t// envoi de la request\n\t\t{\n\t\t\t$sql = \"SELECT IDENTITY_VAL_LOCAL() as ID FROM \".$this->getTableName().\" FETCH FIRST 1 ROWS ONLY\";\n\t\t\t$q1 = query_db2($sql, true);\n\t\t\t$results = result_db2($q1);\n\t\t}\n\t\t\n\t\t// analyse des resultats\n\t\t{\n\t\t\tif (empty($results)) {\n\t\t\t\tunset($sql, $q1, $results);\n\t\t\t\treturn (null);\n\t\t\t}\n\t\t\t$res = $results['ID'];\n\t\t}\n\t\t\n\t\t// retour\n\t\tunset($sql, $q1, $results);\n\t\treturn ($res);\n\t}", "public static function getLastUserId()\n {\n $lastId = DB::table('users')\n ->select('id')\n ->orderBy('id','desc')\n ->limit(1)\n ->get();\n return $lastId;\n }", "public function log_fetch_highest_id () {\n\t\t# fetch\n\t try { $id = $this->Database->getObjectQuery(\"select id from logs order by id desc limit 1;\"); }\n\t\tcatch (Exception $e) { $this->Result->show(\"danger\", $e->getMessage(), false);\treturn false; }\n\t\t# return result\n\t\treturn $id->id;\n\t}", "public function getLastId()\n\t{\n\t\t$lastId = $this->getRoleModel()->getLastId();\n\t\treturn $lastId;\n\t}", "private function getNextTransactionID(){\n $db = $this->connectDB();\n $query = \"SELECT MAX(id) as curr_max_id FROM transaction;\";\n $stmt = $db->prepare($query);\n $stmt->execute();\n $stmt->store_result();\n $stmt->bind_result($curr_max_id);\n $stmt->fetch();\n // Return the current largest id plus 1 as the new ID.\n return $curr_max_id + 1;\n }", "public function last()\n {\n $record = R::findOne( $this->table_name(), \" order by id desc \");\n\n return $this->map_reford_to_object( $record );\n }", "public function getLast()\n {\n // inicia transao\n if ($conn = TTransaction::get()) {\n // instancia instruo de SELECT\n $sql = new TSqlSelect;\n $sql->addColumn('max(ID) as ID');\n $sql->setEntity($this->getEntity());\n\n\n // cria log e executa instruo SQL\n TTransaction::log($sql->getInstruction());\n $result = $conn->Query($sql->getInstruction());\n // retorna os dados do banco\n $row = $result->fetch();\n\n return $row[0];\n } else {\n // se no tiver transao, retorna uma exceo\n throw new Exception('No h transao ativa !!');\n }\n }", "function get_max_id($table_name) {\n\tglobal $db, $dbname;\n $stmt = $db->prepare(\"SELECT MAX(id) AS max_id FROM `$dbname`.`$table_name`\");\n $stmt->execute();\n $invNum = $stmt->fetch(PDO::FETCH_ASSOC);\n return $invNum['max_id'];\n}", "function last_id(){\n\t$conexion = new ConexionOther();\t\n\t$link = $conexion;\n\treturn $link->lastInsertId();\n}", "public function lastInsertedId()\n {\n $query = 'MATCH (n) RETURN MAX(id(n)) AS lastIdCreated';\n\n $statement = $this->getCypherQuery($query, []);\n $result = $statement->getResultSet();\n\n return $result[0][0];\n }", "public function lastInsertId()\n{\n\t$stmt = 'SELECT IDENTITY_VAL_LOCAL() AS LASTID FROM SYSIBM.SYSDUMMY1';\n\t$sth = db2_prepare($this->dbh, $stmt);\n\tdb2_execute($sth);\n\treturn (db2_fetch_row($sth)) ? db2_result($sth, 0) : FALSE;\n}", "protected function getNextId()\n {\n return Field::max('id') + 1;\n }", "public function VerUltimoID()\r\n {\r\n\t\r\n\t$reg=mysql_query(\"select max($this->ID) as maxID from $this->tabla\", $this->con) or die('no se pudo encontrar el ultimo ID en VerUltimoID: ' . mysql_error());\r\n\t$reg=mysql_fetch_array($reg);\t\r\n\t\r\n\treturn($reg[\"maxID\"]);\r\n\t\r\n\t}", "public function get_last_personnel_id(){\n\t$query = $this->db->query(\"SELECT SUBSTR(MAX(personnel_id),-8) AS id FROM human_pa_md_emp_personal\");\n\n\treturn $query;\n\t}", "public function get_last_personnel_id(){\n\t$query = $this->db->query(\"SELECT SUBSTR(MAX(personnel_id),-8) AS id FROM human_pa_md_emp_personal\");\n\n\treturn $query;\n\t}", "public static function lastID($db){\n\t\t\treturn $db->lastInsertId(); \n\t\t}", "public function get_last_referral_id(){\n\t\tglobal $con;\n\t\t$query=\"SELECT referral_id FROM referrals ORDER BY referral_id DESC LIMIT 1\";\n\t\t$result=array();\n\t\t$last_id=\"\";\n\t\t$result=$this->select($con,$query);\n\t\tforeach ($result as $key => $value) {\n\t\t\t$last_id=$value['referral_id'];\n\t\t}\n\n\t\treturn $last_id;\n\t}", "protected function getLastPostId() {\n $this->lastPostId = Post::select('habr_id')->orderBy('unix_time','desc')->first()->habr_id;\n }", "public function getLastEntryId($db) {\n return $db->lastInsertId();\n }", "public function lastId()\n\t{\n\t\treturn mysqli_insert_id($this->connection);\n\t}", "public function lastId () {\n\treturn mysql_insert_id();\n }", "function lastId() {\r\n return mysql_insert_id();\r\n }", "function lastId()\n {\n return mysql_insert_id();\n }", "private static function getMaxId () {\n return Dao::queryValue(\"select max(id) from medicines where id < 10000000\");\n }", "private function queryMaxId(){\r\n $this->conexion->conectar();\r\n $consultaMaxId =\"SELECT (max(id_perfil)+1) AS id FROM perfil\";\r\n $queryId = $this->conexion->ejecutar($consultaMaxId);\r\n while(OCIFetch($queryId)){\r\n $id = ociresult($queryId, \"ID\");\r\n }\r\n $this->conexion->desconectar();\r\n return $id;\r\n }", "public function max_id()\n\t{\n\t\t$this->db->select_max('id');\n\t\t$query = $this->db->get($this->_tables['fuel_navigation']);\n\t\t$data = $query->row_array();\n\t\treturn $data['id'];\n\t}", "function getLastID (){\n\n $connetion = $this->conexionMongoDB();\n\n // Si se dio la conexion\n if ($connetion!=null){\n\n $filter = array();\n // Estableciendo las opciones apra que solo se traiga el id mas alto en la base de datos\n $options = ['sort' => ['id' => -1],'limit'=> 1];\n $cursor = array();\n try{\n\n $query = new MongoDB\\Driver\\Query($filter,$options);\n $cursor = $connetion->executeQuery($this->credentials->getNameMongoDB().\".\".$this->credentials->getCollection(),$query);\n\n }catch (MongoDB\\Driver\\Exception $e){\n\n $_SESSION['title'] = TITLE_FAIL_CONNECTION;\n $_SESSION['message'] = MESSAGE_MONGO_EXCEPTION;\n header(\"Location: ../php/mensaje.php\");\n\n }\n catch (Exception $e){\n echo $e->getMessage();\n die();\n }\n\n $id_max = 0;\n\n foreach ($cursor as $element){\n $id_max = $element->id;\n }\n\n return $id_max;\n\n }\n\n }", "public function lastInsertId($table = '', $idColumn = '');" ]
[ "0.83185124", "0.81984043", "0.81984043", "0.80395794", "0.80334634", "0.80129296", "0.8004448", "0.7959971", "0.7945533", "0.7932925", "0.79262656", "0.78890544", "0.78539747", "0.7835342", "0.7751539", "0.7684152", "0.76511264", "0.76456565", "0.7632472", "0.76151323", "0.76039714", "0.7562281", "0.7534737", "0.752089", "0.752089", "0.752089", "0.75154626", "0.75029457", "0.7498419", "0.7496202", "0.749264", "0.7463283", "0.7448582", "0.74396586", "0.7418728", "0.74114543", "0.741136", "0.7376692", "0.73648876", "0.7364656", "0.73645055", "0.73611456", "0.73568267", "0.73534065", "0.7340523", "0.73368925", "0.73316765", "0.73316765", "0.73316765", "0.7323713", "0.7320841", "0.7317233", "0.7315174", "0.7305541", "0.7285035", "0.7281172", "0.72772306", "0.726725", "0.72612464", "0.7256384", "0.72527707", "0.7232158", "0.7231867", "0.7224261", "0.72231585", "0.7222082", "0.72171056", "0.72143745", "0.72128266", "0.7212451", "0.72120816", "0.7209504", "0.72085613", "0.71891564", "0.71888065", "0.71882224", "0.71810466", "0.71786094", "0.7167317", "0.71652716", "0.716439", "0.7155756", "0.7121755", "0.71159905", "0.71101093", "0.7093943", "0.7093943", "0.70680296", "0.70421875", "0.7041705", "0.70329165", "0.7030712", "0.70239776", "0.702294", "0.7018749", "0.70144695", "0.70052624", "0.700522", "0.70009685", "0.69916797" ]
0.79890835
7
Function to say if a value is empty or not
function dolValidElement($element) { return (trim($element) != ''); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isEmpty($value) {\n return !isset($value) || strlen($value) < 1;\n}", "function filled($value)\n {\n return !blank($value);\n }", "function is_blank($value) {\n return !isset($value) || trim($value) === '';\n}", "function is_empty()\n {\n }", "function is_blank( $value ) {\n return !isset( $value ) || trim( $value ) === '';\n}", "function is_blank($value) {\n return !isset($value) || trim($value) === '';\n}", "function acf_is_empty($var)\n{\n}", "public function isEmpty() {\r\n\t\treturn $this->getValue() == null || $this->getValue() == '' || $this->getValue() == 0;\r\n\t}", "public function isEmpty()\n {\n return $this->_value === '' || $this->_value === null;\n }", "public function isEmpty()\n {\n return '' === $this->getValue();\n }", "function has_presence($value) {\n return ((isset($value)) && ($value !== \"\"));\n }", "public static function _empty($value)\n\t{\n\t\treturn (is_null($value) || empty($value) || $value == \"\");\n\t}", "function is_blank($value) {\n\t\t\n\t\treturn empty($value) && !is_numeric($value);\n\t\t\n\t}", "function is_blank($value): bool\n {\n if (is_null($value)) {\n return true;\n }\n\n if (is_string($value)) {\n return trim($value) === '';\n }\n\n if (is_numeric($value) || is_bool($value)) {\n return false;\n }\n\n if (is_array($value)) {\n return count($value) === 0;\n }\n\n return empty($value);\n }", "private function isEmpty($val){\n return strlen($val) <= 0 ? true : false;\n }", "function blank($value)\n {\n if (is_null($value)) {\n return true;\n }\n if (is_string($value)) {\n return trim($value) === '';\n }\n if (is_numeric($value) || is_bool($value)) {\n return false;\n }\n if ($value instanceof Countable) {\n return count($value) === 0;\n }\n return empty($value);\n }", "public function isEmpty()\n {\n return empty(trim($this->_value));\n }", "function has_presence( $value ) {\n return !is_blank( $value );\n}", "function has_presence($value) {\n return !is_blank($value);\n}", "private static function betterEmpty($value)\n {\n return empty($value) && !is_numeric($value);\n }", "function is_blank($value) {\n if (is_object($value) && method_exists($value, 'is_blank')) return $value->is_blank();\n if (is_string($value)) $value = trim($value);\n return is_empty($value);\n}", "public function isEmpty() {\n return empty($this->__value);\n }", "function has_value($value){\r\n\t\treturn isset($value) && $value !==\"\";\r\n\t}", "public function isEmpty() {\n\t\treturn empty($this->_value);\n\t}", "function has_presence($value) {\n return !is_blank($value);\n}", "public function is_empty_attribute_value( $value ) {\n\t\treturn ! isset( $value ) || '' === $value;\n\t}", "public function req($value)\n {\n return '' != $value || empty($value);\n }", "function is_empty($value) {\n if (is_array($value)) {\n return empty($value);\n } elseif (is_string($value)) {\n return strlen($value) == 0;\n } else {\n return $value === null;\n }\n}", "function has_presence($value){\r\n $trimmed_value = trim($value);\r\n return isset($trimmed_value) && $trimmed_value !== \"\";\r\n\r\n}", "function has_presence($value) {\r\n\treturn isset($value) && $value !== \"\";\r\n}", "function validate_empty($val) {\n\tif ($val === NULL || $val === '') {\n\t\treturn true;\n\t}\n\treturn false;\n}", "function not_empty(mixed $value): bool\n\t{\n\t\treturn !empty($value);\n\t}", "public function nonEmpty();", "function acf_not_empty($var)\n{\n}", "function tep_not_null ($value) {\n\treturn !empty ($value) && trim ($value);\n}", "private static function is_empty($value)\n {\n foreach ((array)$value as $v) {\n if (((string)$v) !== '') {\n return false;\n }\n }\n\n return true;\n }", "function is_empty($data) {\n\treturn empty($data);\n}", "public function isNotEmpty() {\n\t\treturn !empty($this->_value);\n\t}", "public function ignoreEmpty($value): bool;", "protected static function validate_not_empty( $value ){\n\t\treturn ( $value !== null && $value !== '' );\n\t}", "private function isNullOrEmpty($value) {\n\t\treturn (!isset($value) || trim($value) === '');\n\t}", "function has_presence($value) {\n\treturn isset($value) && $value !== \"\";\n}", "function has_presence($value) {\n\treturn isset($value) && $value !== \"\";\n}", "function has_presence($value) {\n\treturn isset($value) && $value !== \"\";\n}", "public static function isEmpty($value)\r\n\t{\r\n\t\treturn $value === false || $value === null || $value === '' || (is_array($value) && !count($value));\r\n\t}", "function empty_field($field)\n{\n return empty($field);\n}", "function has_presence($value) {\n\t\treturn isset($value) && $value != \"\";\n\t\t}", "public function isEmpty() {\n \n return $this->_value ? FALSE : TRUE;\n }", "public function is_empty()\r\n {\r\n if( $this->is_submit() && ($this->taintedInputs->length()=== 0))\r\n return true; \r\n else\r\n return false;\r\n }", "function isEmpty($str = null){\n if ($str) {\n $cleanstr = trim($str);\n if (strlen($cleanstr)<=0) {\n echo \"input is Empty<br>\";\n return true;\n }else\n return false;\n}}", "function is_empty ($subject) {\n\t\n\t\treturn !(isset($subject) && !is_null($subject) && ($subject!==''));\n\t\n\t}", "public function isEmpty(): bool\n {\n return 0 === \\mb_strlen($this->getValue());\n }", "function issetandfilled($data) {\n if (!isset($data))\n return false;\n\n if (empty(trim($data)))\n return false;\n \n return true;\n}", "function isEmpty();", "function isEmpty();", "public function isEmpty(): bool\n {\n return is_null($this->value);\n }", "public function stdWrap_ifEmptyDeterminesEmptyValuesDataProvider() {}", "function check_value($value) {\n\tif((@count($value)>0 and !@empty($value) and @isset($value)) || $value=='0') {\n\t\treturn true;\n\t}\n}", "public function isEmpty();", "public function isEmpty();", "public function isEmpty();", "public function isEmpty();", "public function isEmpty();", "public function isEmpty();", "public function isEmpty();", "public function isEmpty();", "public function isEmpty();", "public function isEmpty();", "public function isEmpty();", "public function isEmpty();", "public function isEmpty();", "public function isEmpty();", "public function isEmpty();", "public function isEmpty();", "public function isEmpty();", "function checkEmptyField($field) {\n\t return isset($field) && $field !== \"\" && $field !== '';\n }", "private function _isNull() {\n if (is_null($this->value)) {\r\n return true;\r\n }\n if (empty($this->value) && (in_array($this->type, array('multiple', 'ordered', 'string')))) {\n return true;\n }\n return false;\n }", "public function isEmpty()\n {\n return count($this->values) === 0;\n }", "private function nullable($value)\n {\n return is_null($value) || $value === '';\n }", "function est_vide($val){\r\n return empty($val);\r\n }", "public static function notEmpty($value)\n {\n if(is_array($value)){return (sizeof($value) != 0)?:false;}\n if(is_string($value)){return (strlen($value) != 0)?:false;}\n return false;\n }", "function filled_out($form_vars) {\n foreach ($form_vars as $key => $value) {\n if ((!isset($key)) || ($value == '')) {\n return false;\n }\n }\n return true;\n}", "public function isEmpty() {}", "function checkIsEmpty($value)\r\n{\r\n // Null\r\n $checkNull = is_null($value);\r\n if ($checkNull) {\r\n return $checkNull;\r\n }\r\n // Array\r\n if (is_array($value)) {\r\n return (!isset($value) || empty($value) || count($value) <= 0) || $value === null;\r\n }\r\n // String\r\n if (is_string($value)) {\r\n return (!isset($value) || trim($value) === '');\r\n }\r\n\r\n return (!isset($value)) || empty($value);\r\n}", "public static function isEmpty(&$value)\n {\n return $value === null || $value === '' || (array) $value === array() ;\n }", "private function process_required($value)\n {\n return (bool) ($value != \"\" || $value === 0);\n }", "function filled_out($form_vars)\r\n{\r\n foreach ($form_vars as $key => $value)\r\n {\r\n if (!isset($key) || ($value == \"\"))\r\n return true;\r\n }\r\n return true;\r\n}", "public function isEmpty()\r\n {\r\n return isset($this->data['total']) AND $this->data['total'] == '0';\r\n }", "public function isEmpty() {\n return $this->is(new NotPossible('is empty'));\n }", "function is_field_empty(array $fields) {\n foreach ($fields as $key => $value) {\n $fields[$key] = isset($value) ? trim($value) : '';\n }\n /* If there is nothing a field then valid empty index is false */\n if (in_array(\"\", $fields, true)) {\n return false;\n }\n /* return array */\n return $fields;\n}", "function not_empty($fields = [])\r\n{\r\n if (count($fields) !=0) {\r\n foreach ($fields as $field) {\r\n if (empty($_POST [$field]) || trim($_POST[$field]) == \"\") { //trim escape all spaces. If empty : false\r\n return false;\r\n }\r\n }\r\n return true ; //fields filled\r\n }\r\n}", "function is_empty($str, $incl_zero = true)\n{\n if (strlen(trim($str)) === 0 || !isset($str)) { // if the string length is 0 or it isn't set\n return true;\n } elseif ($incl_zero === true && empty($str) && $str != '0') { // if the string is empty and not 0, it's empty\n return true;\n } elseif (empty($str)) {\n return true;\n } else {\n return false;\n }\n}", "public function isFilled()\n {\n return ! empty($this->data);\n }", "public function isBlank()\n {\n return $this->matchesPattern('^[[:space:]]*$');\n }", "public function isEmpty($value)\n {\n return ($value === null || $value === false || $value === '') ||\n (is_array($value) && empty($value));\n }", "function not_null($value) {\n if (is_array($value)) {\n if (sizeof($value) > 0)\n return true;\n else\n return false;\n } else {\n if ((is_string($value) || is_int($value)) && ($value != '') && (strlen(trim($value)) > 0))\n return true;\n else\n return false;\n }\n}", "protected function isEmpty($value): bool\n {\n return $value === null || $value === '' || $value === false;\n }", "function is_empty($str, $incl_zero = true)\n{\n if (strlen(trim($str)) === 0 || !isset($str)) { // if the string length is 0 or it isn't set\n return true;\n } elseif ($incl_zero && empty($str) && $str != '0') { // if the string is empty and not 0, it's empty\n return true;\n } elseif (!$incl_zero && empty($str)) {\n return true;\n } else {\n return false;\n }\n}", "public static function isEmpty($value)\n {\n return $value === '' || $value === [] || $value === null || is_string($value) && trim($value) === '';\n }", "function is_empty() {\n\t\treturn !$this->count();\n\t}", "public function isEmpty()\n {\n return $this->length === 0;\n }" ]
[ "0.791484", "0.78594965", "0.7848264", "0.7832382", "0.7824349", "0.7811986", "0.77819544", "0.776298", "0.7719816", "0.76913273", "0.76798266", "0.76746935", "0.7648293", "0.7616603", "0.75910485", "0.7578131", "0.75707763", "0.7562647", "0.755491", "0.7541665", "0.7534359", "0.75159895", "0.7492798", "0.7486836", "0.7467701", "0.74512804", "0.7444223", "0.74201035", "0.74131423", "0.7402523", "0.7390158", "0.7344143", "0.7343369", "0.7341109", "0.73325", "0.72971237", "0.72622025", "0.72379935", "0.723437", "0.7227795", "0.7222661", "0.72179997", "0.72179997", "0.72179997", "0.7194979", "0.71883154", "0.7176619", "0.71589595", "0.71214765", "0.7107178", "0.70970136", "0.70868725", "0.70786506", "0.707673", "0.707673", "0.706613", "0.70637184", "0.70586705", "0.70533895", "0.70533895", "0.70533895", "0.70533895", "0.70533895", "0.70533895", "0.70533895", "0.70533895", "0.70533895", "0.70533895", "0.70533895", "0.70533895", "0.70533895", "0.70533895", "0.70533895", "0.70533895", "0.70533895", "0.7034733", "0.7029163", "0.7018631", "0.70180345", "0.6995904", "0.69833994", "0.6973284", "0.69691384", "0.6966895", "0.69661045", "0.6955041", "0.69524574", "0.6951359", "0.690212", "0.6896904", "0.68943506", "0.6885087", "0.68739915", "0.6872948", "0.6865335", "0.6861311", "0.6853121", "0.6850495", "0.68423474", "0.6840511", "0.6837257" ]
0.0
-1
Attach a listener with a specific event or all its events Attach to all its events where $eventName is ''
public function attachListener( $listener, /*# string */ $eventName = '', /*# int */ $priority = 50 )/*# : EventManagerInterface */;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listeners($eventName);", "public function setEventName(String $eventName) : EventListenerInterface;", "function eventRegister($eventName, EventListener $listener);", "protected static function checkEventName($eventName)\n {\n if (static::isCodeceptionEvent($eventName)\n && !( static::$allowCodeceptionHooks || static::$fallbackAvailable )\n ) {\n $message = <<< OUT\nCannot attach listeners to '{$eventName}'; this version of Codeception does not allow it.\n\nIf you need to attach listeners to Codeception events you can:\n\n 1. Create a custom module: https://codeception.com/docs/06-ModulesAndHelpers#Hooks\n 2. Create a custom extension: https://codeception.com/extensions\n 3. Add the '\\tad\\WPBrowser\\Extension\\Events' extension to Codeception configuration file:\n ```\n extensions:\n enabled:\n - tad\\WPBrowser\\Extension\\Events\n ```\nOUT;\n\n throw new \\InvalidArgumentException($message);\n }\n }", "function listenTo(string $eventName, callable $callback)\n {\n EventManager::register($eventName, $callback);\n }", "public function attach(EventManagerInterface $events)\n {\n foreach ($this->hooks as $name => $spec) {\n $listeners[] = $events->attach($spec['event'], array($this, \"do$name\"));\n }\n }", "public function addListener($eventName, $listener, $priority = 0);", "public function on($eventName, $callable);", "public function on($eventName, $callable);", "public function listenForEvents()\n {\n Event::listen(DummyEvent::class, DummyListener::class);\n\n event(new DummyEvent);\n }", "public function attachEvents();", "public function attachEvents();", "public function listen($events, $listener = null): void;", "static public function addEventListener($eventName, $listener) {\n if (!isset(self::$listeners[$eventName])) self::$listeners[$eventName] = array();\n array_unshift(self::$listeners[$eventName], $listener);\n }", "private function listeners()\n {\n foreach ($this['config']['listeners'] as $eventName => $classService) {\n $this['dispatcher']->addListener($classService::NAME, [new $classService($this), 'dispatch']);\n }\n }", "public function listenToEvents()\n\t{\n\t\tif ($scope = $this->getModelResolvingScope()) {\n\t\t\t$this->eventDispatcher->listen('eloquent.booted: *', function ($model, $data = null) use ($scope) {\n\t\t\t\tif (is_string($model) && is_array($data)) { // Laravel 5.4 wildcard event\n\t\t\t\t\t$model = reset($data);\n\t\t\t\t}\n\n\t\t\t\t$model->addGlobalScope($scope);\n\t\t\t});\n\t\t}\n\n\t\tif (class_exists(\\Illuminate\\Database\\Events\\QueryExecuted::class)) {\n\t\t\t// Laravel 5.2 and up\n\t\t\t$this->eventDispatcher->listen(\\Illuminate\\Database\\Events\\QueryExecuted::class, function ($event) {\n\t\t\t\t$this->registerQuery($event);\n\t\t\t});\n\t\t} else {\n\t\t\t// Laravel 5.0 to 5.1\n\t\t\t$this->eventDispatcher->listen('illuminate.query', function ($event) {\n\t\t\t\t$this->registerLegacyQuery($event);\n\t\t\t});\n\t\t}\n\n\t\t// register all event listeners individually so we don't have to regex the event type and support Laravel <5.4\n\t\t$this->listenToModelEvent('retrieved');\n\t\t$this->listenToModelEvent('created');\n\t\t$this->listenToModelEvent('updated');\n\t\t$this->listenToModelEvent('deleted');\n\t}", "public function attach(EventManagerInterface $events)\n {\n $this->listeners[] = $events->attach('received.node.void', [$this, 'onReceivedNodeVoid']);\n $this->listeners[] = $events->attach('received.node.receipt', [$this, 'onReceivedNodeReceipt']);\n }", "public function attach(EventManagerInterface $events) {\n $this->listeners[] = $events->attach(MvcEvent::EVENT_DISPATCH, __CLASS__ . '::onDispatch', 1000);\n }", "public function hasListeners($eventName);", "public function on($events, $callback, $options = array()) {\n\t\tforeach ((array)$events as $event) {\n\t\t\tif (!strpos($event, '.')) {\n\t\t\t\t$event = $this->settings['eventPrefix'] . '.' . $event;\n\t\t\t}\n\n\t\t\t$this->_eventManager->attach($callback, $event, $options);\n\t\t}\n\t}", "public function attach(EventManagerInterface $events)\n {\n $this->listeners[] = $events->attach(MessageDispatch::ROUTE, [$this, 'onRoute'], 100);\n }", "public function attach(EventManagerInterface $events)\n {\n $this->listeners[] = $events->attach('get.pre', array($this, 'load'), 100);\n $this->listeners[] = $events->attach('get.post', array($this, 'save'), -100);\n }", "public function addEventListener($events, $eventListener)\n {\n $this->eventListeners[] = array('events' => $events, 'listener' => $eventListener);\n }", "protected function registerEvents()\n {\n $events = $this->app->make(Dispatcher::class);\n\n foreach ($this->events as $event => $listeners) {\n foreach ($listeners as $listener) {\n $events->listen($event, $listener);\n }\n }\n }", "public function appendListenerForEvent(string $eventType, callable $listener): callable;", "public function getListeners($eventName): array;", "public function attach(EventManagerInterface $events)\n {\n $this->listeners[] = $events->attach(MvcEvent::EVENT_DISPATCH, [$this, 'onDispatch'], 2);\n }", "protected function registerEvents(): void\n {\n $events = $this->app->make(Dispatcher::class);\n\n foreach ($this->events as $event => $listeners) {\n foreach ($listeners as $listener) {\n $events->listen($event, $listener);\n }\n }\n }", "public function subscribe(): void\n {\n foreach (static::$eventHandlerMap as $eventName => $handler) {\n $this->events->listen($eventName, [$this, $handler]);\n }\n }", "public function attach(string $event, callable $listener, int $priority = 0): void;", "public function register(): void\n {\n $eventManager = EventManager::getInstance();\n\n $this->discoverEvents();\n\n foreach ($this->getListeners() as $moduleName => $moduleEvents) {\n foreach ($moduleEvents as $eventName => $eventListeners) {\n foreach (array_unique($eventListeners) as $listener) {\n $eventManager->addEventHandler(\n $moduleName,\n $eventName,\n [$listener, 'handle']\n );\n }\n }\n }\n }", "public function bindEventListeners(ContainerInterface $container)\n {\n foreach ($container->findTaggedServiceIds('behat.events_listener') as $id => $tag) {\n $container->get($id)->registerListeners($this);\n }\n }", "public final function on( $eventName, $eventCallback ) {\n\t\t\t\n\t\t\tif ( !is_string( $eventName ) ) {\n\t\t\t\n\t\t\t\tthrow new \\browserfs\\Exception('Invalid argument $eventName: string expected');\n\t\t\t\n\t\t\t} else {\n\t\t\t\n\t\t\t\tif ( !strlen( $eventName ) ) {\n\t\t\t\n\t\t\t\t\tthrow new \\browserfs\\Exception('Invalid argument $eventName: expected non-empty string');\n\t\t\t\n\t\t\t\t} else {\n\t\t\t\n\t\t\t\t\tif ( !is_callable( $eventCallback ) ) {\n\t\t\t\n\t\t\t\t\t\tthrow new \\browserfs\\Exception('Invalid argument $eventCallback: callable expected' );\n\t\t\t\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t$this->events[ $eventName ] = isset( $this->events[ $eventName ] ) \n\t\t\t\t\t\t\t? $this->events[ $eventName ] \n\t\t\t\t\t\t\t: [];\n\n\t\t\t\t\t\t$this->events[ $eventName ][] = [\n\t\t\t\t\t\t\t'once' => false,\n\t\t\t\t\t\t\t'callback' => $eventCallback,\n\t\t\t\t\t\t\t'fireId' => 0\n\t\t\t\t\t\t];\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "public function attach(EventManagerInterface $events) {\n $this->listeners[] = $events->attach(MvcEvent::EVENT_DISPATCH_ERROR, array($this, 'handleRouteNotFoundError'), -1);\n }", "protected function listenForEvents()\n {\n $callback = function ($event) {\n foreach ($this->logWriters as $writer) {\n $writer->log($event);\n }\n };\n\n $this->events->listen(JobProcessing::class, $callback);\n $this->events->listen(JobProcessed::class, $callback);\n $this->events->listen(JobFailed::class, $callback);\n $this->events->listen(JobExceptionOccurred::class, $callback);\n }", "public function listeners($event);", "public function listen($event, $listener);", "public function attach(EventManagerInterface $events, $priority = 400)\n {\n $this->listeners[] = $events->attach(ViewEvent::EVENT_RENDERER, [$this, 'selectRenderer'], $priority);\n $this->listeners[] = $events->attach(ViewEvent::EVENT_RESPONSE, [$this, 'injectResponse'], $priority);\n }", "public function handleEvent($eventName, array $params);", "protected function registerEventListener()\n {\n $subscriber = $this->getConfig()->get('audit-trail.subscriber', AuditTrailEventSubscriber::class);\n $this->getDispatcher()->subscribe($subscriber);\n }", "public function addEventListener($event, $callable){\r\n $this->events[$event] = $callable;\r\n }", "public function on($events, $callback, $options = array()) {\n\t\tforeach ((array)$events as $event) {\n\t\t\tif (!strpos($event, '.')) {\n\t\t\t\t$event = 'Visualisation' . '.' . $event;\n\t\t\t}\n\n\t\t\t$this->_eventManager->attach($callback, $event, $options);\n\t\t}\n\t}", "protected function setupWildcardListen($event, $listener)\n {\n $this->wildcards[$event][] = $this->makeListener($listener);\n }", "function add_listener($hook, $function_name){\n\t\tglobal $listeners;\n\n\t\t$listeners[$hook][] = $function_name;\n\t}", "public function listen($events, $listener, $priority = 0)\n {\n foreach ((array) $events as $event) {\n if (str_contains($event, '*')) {\n $this->setupWildcardListen($event, $listener);\n } else {\n $this->listeners[$event][$priority][] = $this->makeListener($listener);\n\n unset($this->sorted[$event]);\n }\n }\n }", "public function attach(EventCollection $events)\n {\n $this->listeners[] = $events->attach(MvcEvent::EVENT_RENDER, array($this, 'render'), -100);\n }", "public function hasWildcardListeners($eventName): bool;", "protected function sortListeners($eventName)\n\t{\n\t $this->sorted[$eventName] = array();\n\t\n\t // If listeners exist for the given event, we will sort them by the priority\n\t // so that we can call them in the correct order. We will cache off these\n\t // sorted event listeners so we do not have to re-sort on every events.\n\t if (isset($this->listen[$eventName]))\n\t {\n\t krsort($this->listen[$eventName]);\n\t\n\t $this->sorted[$eventName] = call_user_func_array(\n\t 'array_merge', $this->listen[$eventName]\n\t );\n\t }\n\t}", "public function addEvent($event){\n $this->events[]=$event;\n }", "public function addListenerForEvent($eventClassName, $listener)\n {\n if (FALSE === array_key_exists($eventClassName, $this->eventMap))\n {\n $this->eventMap[$eventClassName] = [];\n }\n $this->eventMap[$eventClassName][] = $listener;\n }", "public static function triggerEvent($eventName, $data = null)\n {\n if (empty(self::$registry[$eventName])) {\n return;\n }\n foreach (self::$registry[$eventName] as $observer) {\n call_user_func_array($observer, [$eventName, $data]);\n }\n }", "public function hasListeners($eventName): bool;", "public function fireEvent($eventName) {}", "protected static function bootAuditable()\n {\n foreach (static::getAuditableEvents() as $eventName) {\n static::$eventName(function (AuditableInterface $model) use ($eventName) {\n Auditor::record($eventName, $model);\n });\n }\n }", "function ibase_set_event_handler($event_handler, $event_name1, $event_name2 = NULL, $_ = NULL)\n{\n}", "public function attach(EventManagerInterface $events)\n {\n $this->listeners[] = $events->attach('blog.model.post.save', array($this, 'onPostSave'));\n $this->listeners[] = $events->attach('blog.model.post.create', array($this, 'onPostSave'));\n }", "public function attach(EventManagerInterface $events, $priority = 1)\n {\n $this->listeners[] = $events->attach(MvcEvent::EVENT_ROUTE, [$this, 'onRoute'], -40);\n }", "public function dispatchEvent($eventName, EventArgs $eventArgs = null)\n {\n if (! $this->hasListeners($eventName)) {\n return;\n }\n\n $eventArgs = $eventArgs === null ? EventArgs::getEmptyInstance() : $eventArgs;\n foreach ($this->getListeners($eventName) as $listener) {\n $listener->$eventName($eventArgs);\n if ($eventArgs instanceof RejectInterface && $eventArgs->getReject()) {\n break;\n }\n }\n }", "public function setupEventListeners()\r\n\t{\r\n\t\t$blueprints = craft()->courier_blueprints->getAllBlueprints();\r\n\t\t$availableEvents = $this->getAvailableEvents();\r\n\r\n\t\t// Setup event listeners for each blueprint\r\n\t\tforeach ($blueprints as $blueprint) {\r\n\t\t\tif (!$blueprint->eventTriggers) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tforeach ($blueprint->eventTriggers as $event) {\r\n\t\t\t\t// Is event currently enabled?\r\n\t\t\t\tif (!isset($availableEvents[$event])) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tcraft()->on($event, function(Event $event) use ($blueprint) {\r\n\t\t\t\t\tcraft()->courier_blueprints->checkEventConditions($event, $blueprint);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// On the event that an email is sent, create a successful delivery record\r\n\t\tcraft()->on('courier_emails.onAfterBlueprintEmailSent', [\r\n\t\t\tcraft()->courier_deliveries,\r\n\t\t\t'createDelivery'\r\n\t\t]);\r\n\r\n\t\t// On the event that an email fails to send, create a failed delivery record\r\n\t\tcraft()->on('courier_emails.onAfterBlueprintEmailFailed', [\r\n\t\t\tcraft()->courier_deliveries,\r\n\t\t\t'createDelivery',\r\n\t\t]);\r\n\t}", "public static function loadListeners()\n {\n $manager = self::instance();\n $plugins = Plugin::loaded();\n\n foreach ($plugins as $plugin) {\n $events = Plugin::getData($plugin, 'events')->getArrayCopy();\n foreach ($events as $name => $config) {\n if (is_numeric($name)) {\n $name = $config;\n $config = [];\n }\n\n $class = App::className($name, 'Event');\n $config = (array) $config;\n\n if ($class !== false) {\n $listener = new $class($config);\n $manager->on($listener, $config);\n }\n }\n }\n }", "public function attach(EventManagerInterface $events)\n {\n // TODO: Implement attach() method.\n }", "protected function setSwooleServerListeners()\n {\n foreach ($this->events as $event) {\n $listener = 'on' . ucfirst($event);\n\n if (method_exists($this, $listener)) {\n $this->server->on($event, [$this, $listener]);\n } else {\n $this->server->on($event, function () use ($event) {\n $event = sprintf('swoole.%s', $event);\n\n $this->container['events']->fire($event, func_get_args());\n });\n }\n }\n }", "public function register($event, $listener, $params = array(), $first = false);", "public function prependListenerForEvent(string $eventType, callable $listener): callable;", "public function event($name, $payload = null) {\n foreach($this->eventhandlers as $handler) {\n if($name == $handler[0]) {\n if($handler[2] === null) {\n $handler[2] = $this;\n }\n $tmp_string_php7lol = (string)$handler[1];\n $handler[2]->$tmp_string_php7lol($payload);\n }\n }\n foreach($this->until as $key => $until) {\n if(is_array($until)) {\n if(in_array($name, $until)) {\n $this->until_payload[$key][] = array($name, $payload);\n if(!isset($this->until_count[$key])) {\n $this->until_count[$key] = 0;\n }\n $this->until_count[$key] += 1;\n }\n }\n }\n }", "public function attach(EventManagerInterface $events)\n {\n $events->attach(Event::EVENT_LOAD_PERMISSIONS, array($this, 'loadPermissions'));\n }", "protected function registerListeners()\n {\n }", "public function attach(EventManagerInterface $events)\n {\n $sm = $this->getServiceManager();\n $em = $this->getEventManager();\n $shared = $em->getSharedManager();\n \n $this->listeners = array(\n $shared->attach(\n 'Zend\\Mvc\\Application', \n MvcEvent::EVENT_BOOTSTRAP, \n array($this, 'logout'), \n 1000002\n ),\n $shared->attach(\n 'Zend\\Mvc\\Application', \n MvcEvent::EVENT_BOOTSTRAP, \n array($this, 'authenticateRequest'), \n 1000001\n ),\n $shared->attach(\n 'Zend\\Mvc\\Application', \n MvcEvent::EVENT_BOOTSTRAP, \n array($this, 'prepareAuthorise'), \n 1000000\n ),\n $shared->attach(\n 'Zend\\Mvc\\Application', \n MvcEvent::EVENT_ROUTE, \n array($this, 'authoriseRoute')\n ),\n $shared->attach(\n 'Zend\\Mvc\\Application', \n MvcEvent::EVENT_DISPATCH,\n array($this, 'authoriseModule'),\n 10\n ),\n $shared->attach(\n 'Zend\\View\\View', \n ViewEvent::EVENT_RENDERER, \n array($this, 'updateView')\n ),\n $shared->attach(\n 'ZucchiSecurity',\n SecurityEvent::EVENT_AUTHENTICATE, \n array($this, 'doLocalAuthentication')\n ),\n $shared->attach(\n 'ZucchiSecurity',\n SecurityEvent::EVENT_LOGIN_FORM_BUILD, \n array('ZucchiSecurity\\Authentication\\Plugin\\Local', 'extendLoginForm')\n ),\n $shared->attach(\n 'ZucchiSecurity',\n SecurityEvent::EVENT_LOGOUT_FORM_BUILD, \n array('ZucchiSecurity\\Authentication\\Plugin\\Local', 'extendLogoutForm')\n ),\n $shared->attach(\n 'ZucchiSecurity',\n SecurityEvent::EVENT_LOGIN_FORM_BUILD, \n array('ZucchiSecurity\\Authentication\\Plugin\\Captcha', 'extendLoginForm')\n ),\n );\n }", "protected function initEventLogger(): void\n {\n $logger = $this->newEventLogger();\n\n foreach ($this->listen as $event) {\n $this->dispatcher->listen($event, function ($eventName, $events) use ($logger) {\n foreach ($events as $event) {\n $logger->log($event);\n }\n });\n }\n }", "public function triggerEvent($event) {\r\n\t\tif (!isset($this->eventListener[$event])) return void;\r\n\t\t\r\n\t\tforeach($this->eventListener[$event] as $listener) {\r\n\t\t\t$listener->listen($event);\r\n\t\t}\r\n\t}", "public function attach($identifier, $event, callable $listener, $priority = 1)\n {\n }", "private function processAny($listener,$e) {\n if($e->name == $listener[0] && $this->isWithin()) {\n $this->emit($listener[1],$e);\n }\n }", "protected function setEvents()\n {\n foreach ($this->preloadList as $preload) {\n include_once XOOPS_ROOT_PATH . '/modules/' . $preload['module'] . '/preloads/' . $preload['file']. '.php';\n $class_name = ucfirst($preload['module'])\n . ($preload['file'] == 'preload' ? '' : ucfirst($preload['file']) )\n . 'Preload';\n if (!class_exists($class_name)) {\n continue;\n }\n $class_methods = get_class_methods($class_name);\n foreach ($class_methods as $method) {\n if (strpos($method, 'event') === 0) {\n $event_name = strtolower(str_replace('event', '', $method));\n $event= array($class_name, $method);\n $this->eventListeners[$event_name][] = $event;\n }\n }\n }\n }", "protected function setSwooleServerListeners()\n {\n foreach ($this->events as $event) {\n $listener = Str::camel(\"on_$event\");\n $callback = method_exists($this, $listener) ? [$this, $listener] : function () use ($event) {\n $this->triggerEvent($event, func_get_args());\n };\n\n $this->getServer()->on($event, $callback);\n }\n }", "protected static function events()\n {\n foreach (self::fetch('app/events', false) as $file) {\n Bus::need($file);\n }\n //\n Event::register();\n }", "public function attach(EventManagerInterface $eventManager, $priority = 1)\n {\n $this->listeners[] = $eventManager->attach(Event::EVENT_DETECT, [$this, 'detect'], $priority);\n $this->listeners[] = $eventManager->attach(Event::EVENT_FOUND, [$this, 'found'], $priority);\n $this->listeners[] = $eventManager->attach(Event::EVENT_ASSEMBLE, [$this, 'assemble'], $priority);\n }", "public function addListener($listener)\n {\n $refl = new \\ReflectionClass($listener);\n foreach ($refl->getMethods(\\ReflectionMethod::IS_PUBLIC) as $meth) {\n $methName = $meth->getName();\n if (!$meth->isStatic() &&\n !preg_match('#^__.+#', $methName) &&\n $meth->getNumberOfParameters() == 1) {\n // get type-hint\n $classParam = $meth->getParameters()[0]->getClass();\n // check type-hint\n if (!is_null($classParam) &&\n $classParam->implementsInterface(__NAMESPACE__ . '\\Event')) {\n // subscribes\n $this->listener[$methName][] = $listener;\n }\n }\n }\n }", "protected function addListener($id, array $event)\n {\n if (!isset($event['method'])) {\n $closure = function ($matches) {\n return strtoupper($matches[0]);\n };\n $event['method'] = preg_replace_callback('/(?<=\\b)[a-z]/i', $closure, $event['event']);\n $event['method'] = 'on'.preg_replace('/[^a-z0-9]/i', '', $event['method']);\n }\n\n $this->listeners[isset($event['priority']) ? $event['priority'] : 0][] = [$id, $event['event'], $event['method']];\n }", "public function subscribe($events)\n {\n //这里需申明完整类路径,否则会出现'Class UserEventListener does not exist'错误\n $events->listen('App\\Events\\OrderFailDeal', 'App\\Listeners\\OrderEventListener@onOrderFailDeal');\n\n $events->listen('App\\Events\\OrderSuccCloudSystem', 'App\\Listeners\\OrderEventListener@onOrderSuccCloudSystem');\n\n $events->listen('App\\Events\\OrderSuccCloudPlatform', 'App\\Listeners\\OrderEventListener@onOrderSuccCloudPlatform');\n\n $events->listen('App\\Events\\OrderSuccServiceLlhb', 'App\\Listeners\\OrderEventListener@onOrderSuccServiceLlhb');\n }", "public function subscribe($events)\n {\n foreach ($this->events as $event => $action) {\n $events->listen($event, BadgeSubscriber::class . '@' . $action);\n }\n }", "protected function attachDefaultListeners()\r\n {\r\n $events = $this->events();\r\n $events->attach('restrictAccess', array($this, '_restrictAccess'));\r\n }", "public function onEvent( $eventName, $bean )\n\t{\n\t\t$bean->$eventName();\n\t}", "protected function sortListeners($eventName)\n {\n $this->sorted[$eventName] = [];\n\n // If listeners exist for the given event, we will sort them by the priority\n // so that we can call them in the correct order. We will cache off these\n // sorted event listeners so we do not have to re-sort on every events.\n\n if (isset($this->listeners[$eventName])) {\n krsort($this->listeners[$eventName]);\n $this->sorted[$eventName] = call_user_func_array(\n 'array_merge',\n $this->listeners[$eventName]\n );\n }\n }", "function attach(&$observer, $eventIDArray)\n {\n foreach ($eventIDArray as $eventID) {\n $nameHash = md5(get_class($observer) . $eventID);\n base::setStaticObserver($nameHash, array('obs' => &$observer, 'eventID' => $eventID));\n }\n }", "public static function registerEvent($eventName, $object)\n {\n if ($object instanceof EventObserverInterface) {\n $object = [$object, 'on'];\n }\n if (!is_callable($object)) {\n throw new \\InvalidArgumentException(\n \"Can't register event. Observer is not callable.\",\n 1427814905\n );\n }\n self::$registry[$eventName][] = $object;\n }", "protected function sortListeners($eventName)\n {\n $this->sorted[$eventName] = array();\n\n // If listeners exist for the given event, we will sort them by the priority\n // so that we can call them in the correct order. We will cache off these\n // sorted event listeners so we do not have to re-sort on every events.\n if (isset($this->listeners[$eventName])) {\n krsort($this->listeners[$eventName]);\n\n $this->sorted[$eventName] = call_user_func_array(\n 'array_merge', $this->listeners[$eventName]\n );\n }\n }", "function ibase_set_event_handler($connection, $event_handler, $event_name1, $event_name2 = NULL, $_ = NULL)\n{\n}", "private static function event()\n {\n $files = ['Event', 'EventListener'];\n $folder = static::$root.'Event'.'/';\n\n self::call($files, $folder);\n\n $files = ['ManyListenersArgumentsException'];\n $folder = static::$root.'Event/Exceptions'.'/';\n\n self::call($files, $folder);\n }", "public function addListener($eventName, callable $listener, $priority = 0)\n {\n static::checkEventName($eventName);\n $this->eventDispatcher->addListener($eventName, $listener, $priority);\n }", "private function sortListeners($eventName)\n {\n $this->_sorted[$eventName] = array();\n\n if (isset($this->_listeners[$eventName])) {\n krsort($this->_listeners[$eventName]);\n $this->_sorted[$eventName] = call_user_func_array('array_merge', $this->_listeners[$eventName]);\n }\n }", "public function addListener($event, $listener, $priority = 0);", "public function attach(EventManagerInterface $events)\r\n {\r\n $this->listeners[] = $events->attach(MvcEvent::EVENT_RENDER, array($this, 'renderSeo'), -100);\r\n }", "protected function registerListeners()\n {\n $this->container['listener.server'] = $this->container->share(function ($c) {\n return new \\Symfttpd\\EventDispatcher\\Listener\\ServerListener($c['filesystem'], $c['generator.server']);\n });\n\n $this->container['listener.gateway'] = $this->container->share(function ($c) {\n return new \\Symfttpd\\EventDispatcher\\Listener\\GatewayListener($c['filesystem'], $c['generator.gateway']);\n });\n }", "public function subscribe($events)\n {\n $events->listen(\n \\App\\Listeners\\Backend\\GemSighting\\GemSightingCreated::class,\n 'App\\Listeners\\Backend\\GemSightingEventListener@onCreated'\n );\n\n $events->listen(\n \\App\\Listeners\\Backend\\GemSighting\\GemSightingUpdated::class,\n 'App\\Listeners\\Backend\\GemSightingEventListener@onUpdated'\n );\n\n $events->listen(\n \\App\\Listeners\\Backend\\GemSighting\\GemSightingDeleted::class,\n 'App\\Listeners\\Backend\\GemSightingEventListener@onDeleted'\n );\n }", "public function enableSocketEvents()\n\t{\n foreach ($this->socketEvents as $ev)\n\t\t{\n event_base_set($ev, Daemon::$process->eventBase);\n event_add($ev, $this->config->ev_timeout->value); // With specified timeout\n }\n }", "public function subscribe($events)\n {\n $events->listen('mailActivateAccount', 'App\\Listeners\\MailEventHandler@mailActivateAccount');\n $events->listen('mailActivatedAccount', 'App\\Listeners\\MailEventHandler@mailActivatedAccount');\n $events->listen('mailPasswordReminder', 'App\\Listeners\\MailEventHandler@mailPasswordReminder');\n }", "protected function registerListeners()\n {\n // Login event listener\n #Event::listen('auth.login', function($user) {\n //\n #});\n\n // Logout event subscriber\n #Event::subscribe('Mrcore\\Parser\\Listeners\\MyEventSubscription');\n }", "public function logEvent($eventName, $data = array()) {\n\t\t$this->_eventLog[] = array(\n\t\t\t$eventName,\n\t\t\t$data\n\t\t);\n\t}", "public function removeAllListeners($eventName);", "public function addListener($eventName, $listener, $priority = 0)\n {\n $this->dispatcher->addListener($eventName, $listener, $priority);\n }" ]
[ "0.70873487", "0.6694969", "0.6559867", "0.6234241", "0.6205195", "0.6181841", "0.61513823", "0.60877115", "0.60877115", "0.60265535", "0.59499365", "0.59499365", "0.5942412", "0.5939974", "0.5867623", "0.5864761", "0.5847271", "0.58342946", "0.58037674", "0.579909", "0.57822883", "0.5780894", "0.5779347", "0.5714636", "0.5696993", "0.566009", "0.56572497", "0.56455153", "0.5627557", "0.56026226", "0.5588585", "0.55514115", "0.55482715", "0.5548184", "0.55357903", "0.55164385", "0.55021304", "0.5455357", "0.54527056", "0.5452382", "0.54517895", "0.5433875", "0.5431768", "0.5428977", "0.5419077", "0.54121894", "0.5411152", "0.5404013", "0.53996366", "0.53962064", "0.5395345", "0.53910327", "0.5390358", "0.537164", "0.5340266", "0.5337735", "0.53343534", "0.53336287", "0.5324547", "0.53146976", "0.53066677", "0.5299077", "0.5289208", "0.5281168", "0.5280411", "0.52741563", "0.5273844", "0.52716", "0.5269053", "0.52571386", "0.5256085", "0.5255562", "0.52546316", "0.52545667", "0.52251095", "0.52233046", "0.52202547", "0.52104455", "0.52065337", "0.52064973", "0.51918423", "0.5187588", "0.51870996", "0.51849335", "0.51808816", "0.517943", "0.5173467", "0.516937", "0.5168074", "0.51676667", "0.51604694", "0.51535153", "0.51498884", "0.51472265", "0.51460785", "0.51457304", "0.51438135", "0.5141391", "0.5133444", "0.5131849" ]
0.58321
18
Detach a listener from specific event or all of it attached
public function detachListener( $listener, /*# string */ $eventName = '' )/*# : EventManagerInterface */;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function detach(): void\n\t{\n\t\t$this->events->detach($this->type, $this->hook);\n\t}", "public function detach(EventManagerInterface $events)\r\n {\r\n foreach ($this->listeners as $index => $listener) {\r\n if ($events->detach($listener)) {\r\n unset($this->listeners[$index]);\r\n }\r\n }\r\n }", "public function detach(EventManagerInterface $events)\n {\n foreach ($this->listeners as $index => $listener) {\n if ($events->detach($listener)) {\n unset($listener[$index]);\n }\n }\n }", "public function detach(EventManagerInterface $eventManager)\n {\n foreach ($this->listeners as $index => $listener) {\n if ($eventManager->detach($listener)) {\n unset($this->listeners[$index]);\n }\n }\n }", "public function removeListener($eventName, $listener);", "public function removeListener($eventName, $listener);", "public function detach(EventManagerInterface $events)\n {\n foreach ($this->listeners as $index => $listener) {\n if ($events->detach($listener)) {\n unset($this->listeners[$index]);\n }\n }\n }", "public function detach(EventManagerInterface $events)\n {\n foreach ($this->listeners as $index => $listener) {\n if ($events->detach($listener)) {\n unset($this->listeners[$index]);\n }\n }\n }", "public function detach(EventManagerInterface $events)\n {\n foreach ($this->listeners as $index => $listener) {\n if ($events->detach($listener)) {\n unset($this->listeners[$index]);\n }\n }\n }", "public function detach(EventManagerInterface $events)\n {\n foreach ($this->listeners as $index => $listener) {\n if ($events->detach($listener)) {\n unset($this->listeners[$index]);\n }\n }\n }", "public function detachShared(SharedEventManagerInterface $events)\n\t\t{\n\t\t\tforeach ($this->listeners as $index => $listener) {\n\t\t\t if ($events->detach($index, $listener)) {\n\t\t\t\t unset($this->listeners[$index]);\n\t\t\t }\n\t\t }\n\t\t}", "public function detach(EventManagerInterface $events)\n {\n array_walk($this->listeners, array($events,'detach'));\n $this->listeners = array();\n }", "public function remove($event, $listener);", "public function detach(EventManagerInterface $events)\n {\n foreach ($this->listeners as $i => $listener) {\n if ($events->getSharedManager()->detach(MainProcessor::EVENT_MANAGER_ID, $listener)) {\n unset($this->listeners[$i]);\n }\n }\n }", "public function removeAllListeners($eventName);", "public function remove($listener);", "public function detach(EventCollection $events)\n {\n foreach ($this->listeners as $index => $listener) {\n if ($events->detach($listener)) {\n unset($this->listeners[$index]);\n }\n }\n }", "public function detach(EventManagerInterface $em)\n {\n foreach ($this->listeners as $index => $listener) {\n if ($em->detach($listener)) {\n unset($this->listeners[$index]);\n }\n }\n }", "public function detach(string $event, callable $callback): bool;", "public function clearListeners(string $event): void;", "public function detach(EventManagerInterface $events)\n {\n $sharedManager = $events->getSharedManager();\n\n foreach ($this->listeners as $index => $listeners) {\n if ($listeners === $this) {\n continue;\n }\n\n if ($listeners instanceof ListenerAggregateInterface) {\n $listeners->detach($events);\n }\n\n $events->detach($listeners);\n }\n\n /** @var array $sharedListeners */\n foreach ($this->sharedListeners as $id => $sharedListeners) {\n foreach ($sharedListeners as $index => $listener) {\n if ($listener === $this) {\n continue;\n }\n\n if ($listener instanceof ListenerAggregateInterface) {\n $listener->detach($events);\n }\n\n $sharedManager->detach($listener, $id);\n }\n }\n }", "public function detach($event, Event_ObserverInterface $observer) {\r\n\t\tif (isset($this->_eventObservers[$event])) {\r\n\t\t\t$key = array_search($observer, $this->_eventObservers[$event], true);\r\n\t\t\tif ($key !== false) {\r\n\t\t\t\tarray_splice($this->_eventObservers[$event], $key, 1);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function detachShared(SharedEventManagerInterface $events)\n {\n foreach ($this->listeners as $index => $callback) {\n if ($events->detach('', $callback)) {\n unset($this->listeners[$index]);\n }\n }\n }", "function detach($observer, $eventIDArray)\n {\n foreach ($eventIDArray as $eventID) {\n $nameHash = md5(get_class($observer) . $eventID);\n base::unsetStaticObserver($nameHash);\n }\n }", "protected function _unsubscribeFromEngineEvents()\n {\n $controller = $this->getController();\n $controller->removeEventListener(\n Streamwide_Engine_Events_Event::ENDOFFAX,\n array( 'callback' => array( $this, 'onEndOfFax' ) )\n );\n $controller->removeEventListener(\n Streamwide_Engine_Events_Event::FAXPAGE,\n array( 'callback' => array( $this, 'onFaxPage' ) )\n );\n }", "public function removeListener($name, $listener);", "public function removeListeners($event = NULL)\n\t{\n\t\tif (!empty($event) && array_key_exists($event, static::$events)) {\n\t\t\tstatic::$events[$event] = [];\n\t\t} else {\n\t\t\tforeach (static::$events as $evt => $events)\n\t\t\t\tstatic::$events[$evt] = [];\n\t\t}\n\t}", "public function detach(\\SplObserver $observer) {}", "function detach(AbstractObserver $observer)\n {\n foreach($this->observers as $okey => $oval) {\n if ($oval == $observer) {\n unset($this->observers[$okey]);\n }\n }\n }", "public static function removeAllListeners(string $event) : void\n {\n if (Event::hasListeners($event)) {\n unset(Event::$listeners[$event]);\n }\n }", "protected function _unsubscribeFromEngineEvents()\n {\n $events = array(\n Streamwide_Engine_Events_Event::SDP,\n Streamwide_Engine_Events_Event::CHILD,\n Streamwide_Engine_Events_Event::OKMOVED,\n Streamwide_Engine_Events_Event::MOVED,\n Streamwide_Engine_Events_Event::FAILMOVED\n );\n \n $controller = $this->getController();\n foreach ( $events as $event ) {\n $controller->removeEventListener( $event, array( 'callback' => array( $this, 'onSignalReceived' ) ) );\n }\n }", "public function removeListener($event, \\Closure $listener)\n {\n return $this->off($event, $listener);\n }", "function removeListener(EventListener $listener): bool;", "public function testRemoveListener()\n {\n // Arrange\n $listenerCalled = false;\n $communicator = new Communicator();\n\n $callback = function () use (&$listenerCalled) {\n $listenerCalled = true;\n };\n\n // Act\n $communicator->addListener($callback);\n $communicator->removeListener($callback);\n $communicator->broadcast([], 'channel', [], []);\n\n // Assert\n static::assertFalse($listenerCalled);\n }", "public function off($event);", "public function removeListener($event, tx_auxo_observer $listener) {\r\n\t\tif (! isset($this->eventListener[$event][spl_object_hash($listener)])) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tunset($this->eventListener[$event][spl_object_hash($listener)]);\r\n\t\treturn true;\r\n\t}", "public function detach($observer)\n\t{\n // Not implemented here\n }", "function unregister_elgg_event_handler($event, $object_type, $function) {\n\tglobal $CONFIG;\n\tforeach($CONFIG->events[$event][$object_type] as $key => $event_function) {\n\t\tif ($event_function == $function) {\n\t\t\tunset($CONFIG->events[$event][$object_type][$key]);\n\t\t}\n\t}\n}", "public function detach(SplObserver $observer){\n $id = spl_object_hash($observer);\n unset($this->observers[$id]);\n }", "public function detachObserver(Delegate_1 $d)\n\t{\n\t\t// detach this observer\n\t\t$hash = spl_object_hash($d);\n\t\tunset($this->observers[$hash]);\n\t}", "public function removeEventSubscriber(IEventSubscriber $subscriber);", "public function removeEvent($event);", "function eventUnRegister($eventName, $id);", "public function detach();", "public function clearListeners()\n {\n $this->listeners = array();\n }", "public function detach() {}", "public function detach() {}", "public function detach($observer)\n {\n $observerKey = spl_object_hash($observer);\n unset($this->observers[$observerKey]);\n }", "public function detach()\n {\n // dummy implementation\n }", "public function detach(EventObserver $observer):bool{\r\n $name=$observer->eventName();\r\n if (is_string($name))$name=[$name];\r\n $deatch=0;\r\n foreach ($name as $v){\r\n foreach ($this->storage[$v]??[] as $k=>$ob){\r\n if($ob[0]===$observer){\r\n unset($this->storage[$v][$k]);\r\n $deatch++;\r\n }\r\n }\r\n }\r\n return $deatch;\r\n }", "public function forget($event)\n {\n unset($this->listeners[$event]);\n }", "static public function removeEventListener($eventName, $listener) {\n if (TRUE !== $eventName) {\n foreach(self::$listeners[$eventName] as $key=>$item) {\n if ($item == $listener) {\n unset(self::$listeners[$eventName][$key]);\n return true;\n }\n }\n return false;\n }\n foreach(self::$listeners as $il=>$list) {\n foreach($list as $ii=>$item) {\n if ($item == $listener) {\n unset(self::$listeners[$il][$ii]);\n return true;\n }\n }\n }\n return false;\n }", "function detach(Observer $observer_in) {\n //or\n //$this->observers = array_diff($this->observers, array($observer_in));\n //or\n foreach($this->observers as $okey => $oval) {\n if ($oval == $observer_in) {\n unset($this->observers[$okey]);\n }\n }\n }", "public function unsubscribe(): void;", "public function detach(EventManagerInterface $events)\n {\n foreach ($this->listeners as $i => $listener) {\n if ($events->detach($listener)) {\n unset($this->listeners[$i]);\n }\n }\n\n return empty($this->listeners);\n }", "public function removeParseListener(ParseTreeListener $listener): void\n {\n $index = \\array_search($listener, $this->parseListeners, true);\n\n if ($index !== false) {\n unset($this->parseListeners[$index]);\n }\n }", "public function detach(Observer $observer) {\n foreach ($this->observers as $key => $obs) {\n if ($observer == $obs) {\n unset($this->observers[$key]);\n break;\n }\n }\n }", "public function truncateEventClosures(): void\n {\n $this->listeners = [];\n }", "public function detach(Observer $observer)\n\t{\n\t\tunset($this->_observers[array_search($observer, $this->_observers)]);\n\t}", "public function detach(ObserverInterface $observer)\n {\n $observers = $this->getObservers();\n\n foreach ($observer->getEvents() as $event) {\n $count = count($observers[$event]);\n\n for ($i = 0; $i < $count; $i++) {\n if ($observers[$event][$i] == $observer) {\n unset($observers[$event][$i]);\n }\n }\n }\n\n $this->setObservers($observers);\n }", "public function removeObserver() {\n //$this->__observers = array();\n foreach($this->__observers as $obj) {\n unset($obj);\n }\n }", "public function detach(Observer $observer)\n {\n if (($key = array_search($observer, $this->observers, true)) !== false) {\n unset($this->observers[$key]);\n }\n }", "public function unsetEventDispatcher()\n {\n $this->events = null;\n }", "protected function removeListenerPattern(string $eventPattern, $listener)\n {\n if (! isset($this->patterns[$eventPattern])) {\n return;\n }\n\n foreach ($this->patterns[$eventPattern] as $key => $pattern) {\n if ($listener == $pattern->getListener()) {\n $pattern->unbind($this);\n unset($this->patterns[$eventPattern][$key]);\n }\n }\n }", "public function detachFromBattle($battle) {\n $battle->detachEventHandler(\"onAfterRound\", array($this, 'reactToOnAfterRound'));\n if($this->blocks) {\n $battle->detachEventHandler(\"onBeforeAction\", array($this, 'reactToOnBeforeAction'));\n }\n }", "function detach();", "public function removeListener($event, $callback)\n {\n if (false === isset($this->listeners[$event])) {\n\n return;\n }\n\n $key = array_search($callback, $this->listeners[$event]);\n if ($key !== false) {\n unset($this->listeners[$event][$key]);\n\n if (0 === count($this->listeners[$event])) {\n unset($this->listeners[$event]);\n }\n }\n }", "public function detach()\n {\n // TODO\n }", "public function detach( $observer )\r\n {\r\n $this->observers []= $observer; // an an observer to the observer subject.\r\n }", "public function forget($event)\n {\n unset($this->listeners[$event], $this->sorted[$event]);\n }", "public function detach($key): Event\n\t{\n\t\tif (is_object($key) || is_string($key)) {\n\t\t\tif (is_string($key)) {\n\t\t\t\t$class = $key;\n\t\t\t} else {\n\t\t\t\t$class = get_class($key);\n\t\t\t}\n\n\t\t\tforeach ($this as $pos => $item) {\n\t\t\t\t$this->cliOut($item['className']);\n\t\t\t\tif ($item['className'] === $class) {\n\t\t\t\t\t$this->cliOut(sprintf('Detach %s at position %s', $item['className'], $pos));\n\t\t\t\t\tunset($this[$pos]);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tunset($this[$key]);\n\t\t}\n\n\t\treturn $this;\n\t}", "public function detach($component);", "public function postEventDel();", "public function __destruct() {\n\t\tif($this->_listeningenabled)\n\t\t\t$this->unlisten();\n\t}", "public function removeListener($event, $hash)\n\t{\n\t\tif (isset(static::$events[$event][$hash])) {\n\t\t\tunset(static::$events[$event][$hash]);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function removeListener($name) {\n\t\t$listeners = $this->config('listeners');\n\t\tif (!array_key_exists($name, $listeners)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (isset($this->_listenerInstances[$name])) {\n\t\t\t$this->_eventManager->detach($this->_listenerInstances[$name]);\n\t\t\tunset($this->_listenerInstances[$name]);\n\t\t}\n\n\t\tunset($listeners[$name]);\n\t\t$this->settings['listeners'] = $listeners;\n\t}", "public function detach(\\SplObserver $observer)\n {\n $this->storage->detach($observer);\n }", "public function silence(Listener $listener);", "public static function offAll()\n {\n self::$_events = [];\n self::$_eventWildcards = [];\n }", "public function off($name)\n {\n foreach ($this->events as $key => $events) {\n if (preg_match(\"/^$name$|$name\\.)/\", $key)) {\n unset($this->events[$key]);\n }\n }\n }", "public function detach(SplObserver $obj)\n\t{\n\t\t// Remove the listener\n\t\tunset($this->listeners[spl_object_hash($obj)]);\n\n\t\treturn $this;\n\t}", "public function detach(SplObserver $observer)\n {\n $this->_observers->detach($observer);\n }", "public function onRemove();", "public function detach(ObservesProxyLoading $observer) : void;", "public function detach( \\SplObserver $observer )\n {\n $this->_storage->detach( $observer );\n }", "function detach(ftpClientObserver $observer) {\r\n\t\tif ( !isset($this->_listeners[$observer->getId()]) ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tunset($this->_listeners[$observer->getId()]);\r\n\t\treturn true;\r\n\t}", "public function releaseEvents();", "public function releaseEvents();", "public function detachAll() {}", "function unregister($event, $callback) {\n Event::unregister($event, $callback);\n }", "static public function removeListeners($eventName) {\n if (!self::hasListeners($eventName)) return false;\n }", "public function stopListeningForEvents()\n\t\t{\n\n\t\t\t// Initialize the crontab manager if this has not been done before\n\t\t\tif(is_null($this->CronManager)) $this->CronManager = new ssh2_crontab_manager();\n\n\t\t\t// Stop cronjob to call $this-->captureSongHistory()\n\t\t\t$this->CronManager->remove_cronjob(\"checkTimeEventExecutionNeeds\");\n\n\t\t\t// Write status to the config\n\t\t\t$this->data['config']['mod_time__checkTimeEventExecutionNeedsCron'] = \"disabled\";\n\t\t\t$this->writeConfFile($this->data['config'], true);\n\n\t\t}", "private function processAny($listener,$e) {\n if($e->name == $listener[0] && $this->isWithin()) {\n $this->emit($listener[1],$e);\n }\n }", "public static function detaching ($callback, $priority = 0) {\n static::registerModelEvent('detaching', $callback, $priority);\n }", "public function delete(){\n $this->probe_requests()->detach();\n\n // Delete the event itself\n $result = parent::delete();\n\n return $result;\n }", "private function processAfter($listener,$e) {\n if($e->name == $listener[1] && $this->amounts[$e->name] == $listener[0] && $this->isWithin()) {\n $this->amounts[$e->name] = 0;\n $this->emit($listener[2],$e);\n }\n }", "public function clearListeners($id, $event = null)\n {\n return true;\n }", "public final function off( $eventName, $eventCallback = null ) {\n\n\t\t\tif ( is_string( $eventName ) ) {\n\n\t\t\t\tif ( strlen( $eventName ) > 0 ) {\n\n\t\t\t\t\tif ( isset( $this->events[ $eventName ] ) ) {\n\n\t\t\t\t\t\tif ( $eventCallback === null ) {\n\n\t\t\t\t\t\t\tunset( $this->events[ $eventName ] );\n\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tfor ( $i = count( $this->events[ $eventName ] ) - 1; $i>=0; $i-- ) {\n\n\t\t\t\t\t\t\t\tif ( self::callbackEquals( $eventCallback, $this->events[ $eventName ][ $i ]['callback'] ) ) {\n\n\t\t\t\t\t\t\t\t\t// remove event\n\t\t\t\t\t\t\t\t\tarray_splice( $this->events[ $eventName ], $i, 1 );\n\n\t\t\t\t\t\t\t\t\tif ( count( $this->events[ $eventName ] ) == 0 ) {\n\t\t\t\t\t\t\t\t\t\tunset( $this->events[ $eventName ] );\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\n\t\t\t\t\tthrow new \\browserfs\\Exception('Invalid argument $eventName: non-empty string expected!');\n\n\t\t\t\t}\n\n\t\t\t} else {\n\n\t\t\t\tthrow new \\browserfs\\Exception('Invalid argument $eventName: string expected!' );\n\n\t\t\t}\n\n\t\t}", "public function remSubscriber(IEventSubscriber $Subscriber)\n {\n // Loop through each subscriver event\n foreach ($Subscriber->getSubscribedEvents() as $EventName => $Params) {\n\n // Params is array[]|Traversable[]\n if (is_array($Params) && is_array($Params[0]) ?: $Params[0] instanceof Traversable) {\n\n // Deregister each method\n foreach ($Params as $NewParams) {\n $this->deregister(\n $EventName,\n array(\n $Subscriber,\n $NewParams[0]\n )\n );\n }\n\n // Otherwise, Deregester method\n } else {\n $this->deregister(\n $EventName,\n array(\n $Subscriber,\n is_string($Params) ? $Params : $Params[0]\n )\n );\n }\n }\n }", "public function unregister()\n {\n $previousHandlers = $this->previousHandlers;\n\n foreach ($previousHandlers as $signal => $handler) {\n if (is_null($handler)) {\n pcntl_signal($signal, SIG_DFL);\n\n unset($previousHandlers[$signal]);\n }\n }\n\n $this->setHandlers($previousHandlers);\n }" ]
[ "0.6989076", "0.69395816", "0.667027", "0.6637905", "0.662113", "0.662113", "0.65969586", "0.65969586", "0.65969586", "0.65969586", "0.6592169", "0.6540973", "0.6539662", "0.6439657", "0.6433647", "0.64002234", "0.638562", "0.6344129", "0.63265014", "0.63211316", "0.62979573", "0.6253164", "0.6252394", "0.62024504", "0.6140059", "0.6087884", "0.6059271", "0.60130143", "0.59369063", "0.5880316", "0.58265024", "0.58229494", "0.58053756", "0.5742713", "0.5717333", "0.569359", "0.5660931", "0.56547415", "0.5638511", "0.56318665", "0.5608746", "0.56062454", "0.5601742", "0.55910033", "0.556918", "0.5568306", "0.5568306", "0.556531", "0.5560434", "0.55497307", "0.5539547", "0.5530756", "0.5520211", "0.5518842", "0.5511837", "0.5509821", "0.5491931", "0.5480334", "0.5479837", "0.5454786", "0.5431271", "0.542568", "0.5422367", "0.535674", "0.53227496", "0.53198683", "0.526498", "0.52568114", "0.52456385", "0.5227634", "0.52042997", "0.51865864", "0.5168241", "0.5150125", "0.51270396", "0.5117493", "0.5112318", "0.51119524", "0.50999826", "0.50964254", "0.50881463", "0.5078552", "0.5075442", "0.5074242", "0.50700736", "0.5062759", "0.5059949", "0.5059949", "0.5037386", "0.5019978", "0.50180686", "0.50083315", "0.5001551", "0.4990903", "0.49817917", "0.49805516", "0.49803656", "0.49624607", "0.49554005", "0.49272907" ]
0.7150227
0
Check event queue for $eventName returns true if exists AND not empty. Always return false if $eventName is not a string
public function hasEventQueue(/*# string */ $eventName)/*# : bool */;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function eventIsFiredByTheFramework($eventName): bool\n {\n return Str::is(\n ['Illuminate\\*', 'eloquent*', 'bootstrapped*', 'bootstrapping*', 'creating*', 'composing*'],\n $eventName\n );\n }", "public function hasListeners($eventName): bool;", "public function hasWildcardListeners($eventName): bool;", "protected function eventIsFiredByTheFramework($eventName)\n {\n return Str::is(\n [\n 'Illuminate\\*',\n 'Laravel\\Octane\\*',\n 'Laravel\\Scout\\Events\\ModelsImported',\n 'eloquent*',\n 'bootstrapped*',\n 'bootstrapping*',\n 'creating*',\n 'composing*',\n ],\n $eventName\n );\n }", "protected function mustTakeAction(string $eventName): bool\n {\n }", "public static function hasEvent( $element, $eventName )\r\n\t{\r\n\t\t$success = false;\r\n\t if (!$element || !is_object($element)) {\r\n\t\t\treturn $success;\r\n\t\t}\r\n\t\t\r\n\t\tif (!$eventName || !is_string($eventName)) {\r\n\t\t\treturn $success;\r\n\t\t}\r\n\t\t\r\n\t\t// Check if they have a particular event\r\n\t\t$import \t= JPluginHelper::importPlugin( strtolower('Tienda'), $element->element );\r\n\t\t$dispatcher\t= JDispatcher::getInstance();\r\n\t\t$result \t= $dispatcher->trigger( $eventName, array( $element ) );\r\n\t\tif (in_array(true, $result, true)) \r\n\t\t{\r\n\t\t\t$success = true;\r\n\t\t}\t\t\r\n\t\treturn $success;\t\r\n\t}", "protected function listenerIsRegistered($eventName)\n {\n $method = \"when{$eventName}\";\n\n if (substr($method, -5) == 'Event') {\n\n $method = substr($method, 0, -5);\n }\n\n return method_exists($this, $method);\n }", "public function fireEvent(string $eventName): bool;", "public function hasListeners($eventName);", "protected function eventIsIgnored($eventName): bool\n {\n return Str::is($this->options['ignore'] ?? [], $eventName);\n }", "static public function hasListeners($eventName) {\n return !empty(self::$listeners[$eventName]);\n }", "private function handleDispatch($eventName)\n {\n $event = $this->dispatch($eventName);\n\n return !$event->isPropagationStopped();\n }", "protected function eventIsIgnored($eventName)\n {\n return Str::is($this->options['ignore'] ?? [], $eventName);\n }", "public static function isCodeceptionEvent($eventName)\n {\n return in_array($eventName, static::codeceptionEvents(), true);\n }", "private function _callEvent($eventName){\n\t\tif(self::$_disableEvents==false){\n\t\t\tif(method_exists($this, $eventName)){\n\t\t\t\tif($this->{$eventName}()===false){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(isset($this->{$eventName})){\n\t\t\t\t\t$method = $this->{$eventName};\n\t\t\t\t\tif($this->$method()===false){\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static function Has($sName){\n $oThis = self::CreateInstanceIfNotExists();\n $sName = strtolower(str_replace(array(\"/\", \"\\\\\", \"--\"), \"-\", $sName));//Bugfix \n return array_key_exists($sName, $oThis->aEvents);\n }", "public function hasListeners(string $eventName): bool\n {\n return count($this->getListeners($eventName));\n }", "static protected function eventExists($uid) {\n return array_key_exists($uid, self::$events);\n }", "private function checkEventExists(){\n $event = Event::find($this->id);\n\n return(!is_null($event));\n }", "private function event_exists($slug) {\n return (isset($this->events[$slug]));\n }", "public function isRegistered($EventName)\n {\n return (bool) count($this->getCallbacks($EventName));\n }", "public function fireEventCancel(string $eventName): bool;", "public function hasListeners($eventName) {\n\t\t$this->_checkAndReturnEventName($eventName);\n\t\treturn isset($this->_listeners[$eventName]);\n\t}", "public function hasEventHandler($name)\r\n\t{\r\n\t\t$name=strtolower($name);\r\n\t\treturn isset($this->_e[$name]) && $this->_e[$name]->getCount()>0;\r\n\t}", "public function hasListeners($eventName)\n {\n return isset($this->listeners[$eventName]) || isset($this->wildcards[$eventName]);\n }", "protected static function isEventExists($event)\n {\n static $events;\n\n if (!$events) {\n $ref = new \\ReflectionClass('Symfony\\Component\\Form\\FormEvents');\n $events = $ref->getConstants();\n }\n\n return in_array($event, $events);\n }", "public function getEventQueue(\n /*# string */ $eventName\n )/*# : EventQueueInterface */;", "protected function shouldIgnore($eventName): bool\n {\n return $this->eventIsIgnored($eventName) || $this->eventIsFiredByTheFramework($eventName);\n }", "public function eventExists()\n {\n return $this->getTalk()->getSpeaker()->exists();\n }", "public function hasEventHandler($name)\n\t{\n\t\t$name=strtolower($name);\n\t\tif(strncasecmp($name,'fx',2)===0)\n\t\t\treturn isset(self::$_ue[$name])&&self::$_ue[$name]->getCount()>0;\n\t\telse\n\t\t{\n\t\t\tif(isset($this->_e[$name])&&$this->_e[$name]->getCount()>0)\n\t\t\t\treturn true;\n\t\t\telse if($this->_m!==null&&$this->_behaviorsenabled) {\n\t\t\t\tforeach($this->_m->toArray() as $behavior)\n\t\t\t\t{\n\t\t\t\t\tif((!($behavior instanceof IBehavior)||$behavior->getEnabled())&&$behavior->hasEventHandler($name))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public function has($name)\r\n {\r\n return isset($this->_events[$name]);\r\n }", "private function hasQueue($name)\n {\n return array_key_exists($name, $this->queues);\n }", "public function isExists($name)\n {\n if (empty($this->_queues)) {\n $this->getQueues();\n }\n return in_array($name, $this->_queues);\n }", "function Application_Has_Events_By_Event_Names($application_id, $event_names)\n{\n settype($application_id, 'integer');\n $db = ECash::getMasterDb();\n\n $event_names_list = \"('\" . implode(\"','\",$event_names) . \"')\";\n\n $query = \"-- eCash 3.0, File: \" . __FILE__ . \", Method: \" . __METHOD__ . \", Line: \" . __LINE__ . \"\n\t\tSELECT\tCOUNT(*) as event_count\n\t\tFROM\tevent_schedule AS es\n\t\tJOIN \tevent_type et USING (event_type_id)\n\t\tWHERE\n\t\t\t\tes.application_id = $application_id\n\t\tAND\n\t\t\t\tet.name_short IN $event_names_list \";\n\n $result = $db->query($query);\n\n $row = $result->fetch(PDO::FETCH_OBJ);\n\n if ($row->event_count > 0)\n\t\treturn true;\n\telse\n\t\treturn false;\n}", "protected static function checkEventName($eventName)\n {\n if (static::isCodeceptionEvent($eventName)\n && !( static::$allowCodeceptionHooks || static::$fallbackAvailable )\n ) {\n $message = <<< OUT\nCannot attach listeners to '{$eventName}'; this version of Codeception does not allow it.\n\nIf you need to attach listeners to Codeception events you can:\n\n 1. Create a custom module: https://codeception.com/docs/06-ModulesAndHelpers#Hooks\n 2. Create a custom extension: https://codeception.com/extensions\n 3. Add the '\\tad\\WPBrowser\\Extension\\Events' extension to Codeception configuration file:\n ```\n extensions:\n enabled:\n - tad\\WPBrowser\\Extension\\Events\n ```\nOUT;\n\n throw new \\InvalidArgumentException($message);\n }\n }", "static public function removeListeners($eventName) {\n if (!self::hasListeners($eventName)) return false;\n }", "protected function shouldIgnore($eventName)\n {\n return $this->eventIsIgnored($eventName) ||\n (Telescope::$ignoreFrameworkEvents && $this->eventIsFiredByTheFramework($eventName));\n }", "static function eventStack($event_name = null)\n\t{\n\t\tif (!isset($event_name)) {\n\t\t\treturn self::$event_stack;\n\t\t}\n\t\tforeach (self::$event_stack as $key => $ei) {\n\t\t\tif ($ei['event_name'] === $event_name) {\n\t\t\t\treturn $ei;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public function hasQueued(string $key, string $path = null): bool;", "function isRegistered($event) {\n return Event::isRegistered($event);\n }", "public function existsQueue($name) {\n return !empty($this->queues[$name]) && ($this->queues[$name] instanceof Queue);\n }", "public function hasEvents()\n {\n return count($this->events) > 0 ? true : false;\n }", "public function isValidFor(Event $event)\n {\n return $this->getEventName() === $event->getName();\n }", "public function eventExists(Event $event){\r\n //echo $event->getType();\r\n $stmt = $this->db->prepare(\"SELECT COUNT(*) as count FROM event WHERE type = ? AND name = ? AND date = ? AND observations = ? AND guests = ?\");\r\n $stmt->execute(array($event->getType(), $event->getName(), $event->getDate(), $event->getObservations(), $event->getGuests()));\r\n $data = $stmt->fetch(PDO::FETCH_ASSOC);\r\n\r\n if($data['count'] == 0){\r\n $exists = false;\r\n }else{\r\n $exists = true;\r\n }\r\n return $exists;\r\n }", "public function hasEvent($name)\n\t{\n\t\tif((strncasecmp($name,'on',2)===0&&method_exists($this,$name))||strncasecmp($name,'fx',2)===0||strncasecmp($name,'dy',2)===0)\n\t\t\treturn true;\n\n\t\telse if($this->_m!==null&&$this->_behaviorsenabled)\n\t\t{\n\t\t\tforeach($this->_m->toArray() as $behavior)\n\t\t\t{\n\t\t\t\tif((!($behavior instanceof IBehavior)||$behavior->getEnabled())&&$behavior->hasEvent($name))\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public static function event_name_is_valid( $name ) {\n\t\treturn preg_match( self::EVENT_NAME_REGEX, $name );\n\t}", "function isCustomEvent($event_id){\n\t$data = M('customevent');\n\tif((int)$event_id>=1){\n\t\t$condition = Array('event_id' => $event_id);\n\t\tif($event = $data->where($condition)->find()){\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}\n}", "public function check_last_event( $event_name ) {\n\t\t\treturn $event_name === $this->last_event;\n\t\t}", "protected function isNotQueued()\n {\n if (! isset($this->memory)) {\n return true;\n }\n\n return (! $this->memory->get('email.queue', false));\n }", "public function hasListeners($event): bool;", "public function matchesEvent($event);", "public function event_has_run($name)\r\n\t{\r\n\t\treturn isset($this->observer_has_run[$name]);\r\n\t}", "public function hasEventListeners($event);", "public function isEventIDValid(string $name): bool\n {\n return array_key_exists($name, $this->validEventIDs);\n }", "public function isInstallQueueEmpty() {}", "private function _has_routine_exhausted($queue)\n {\n if (!$queue instanceof Queue) {\n $queue = $this->signal_queue($queue, false);\n if (false === $queue || $queue[0] === self::QUEUE_NEW) return false;\n $queue = $queue[1];\n }\n if (true === $this->queue_exhausted($queue)) {\n $this->signal(esig::EXHAUSTED_QUEUE_SIGNALED, array(\n $queue\n ));\n return true;\n }\n return false;\n }", "protected function _hasTrigger($event) {\n\t\t$eventClass = new ReflectionClass(get_class($this->EventClass));\n\t\t$parentMethods = $eventClass->getParentClass()->getMethods(ReflectionMethod::IS_PUBLIC);\n\n\t\tforeach ($parentMethods as $parentMethod) {\n\t\t\t$declaringClass = $eventClass->getMethod($parentMethod->getName())->getDeclaringClass()->getName();\n\t\t\tif ($declaringClass === $eventClass->getName() && $parentMethod->getName() == 'on' . ucfirst($event)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "public function testGetInvalidEventName (): void {\n // grab an name that does not exist\n $event = Event::getEventByEventName($this->getPDO(), \"omgmynameisLuther\");\n $this->assertEmpty($event);\n }", "private function _isRejected($event)\n {\n return in_array(\n $event,\n array('catalogsearch_advanced_result', 'catalogsearch_advanced_index')\n );\n }", "private function actionIsAvailable($actionName)\n {\n return isset($this->availableActions[$actionName]);\n }", "public function attach($eventName, $observerName)\n {\n if (empty($eventName) || empty($observerName)) {\n return false;\n }\n if (Model::factory('Observer')->attach($eventName, $observerName)) {\n return true;\n }\n\n return false;\n }", "private function hasEventLinks()\n {\n return !empty($this->eventlinks);\n }", "public function matchEvent(Mage_Index_Model_Event $event)\n {\n return false;\n }", "function hasCallbacks($event) {\n return Event::hasCallbacks($event);\n }", "public static function dropAndSetEvent ($eventName, $options = [])\n {\n $queue = EventQueue::whereNull('start_time')->where('event_name', $eventName);\n\n foreach ( $options as $key => $value ) {\n if ( $key == 'scheduled_start_time' ) continue;\n\n $queue->where($key, $value);\n }\n\n //find all records that are existing in the event queue\n $records = $queue->get();\n foreach ( $records as $record ) {\n self::setEvent($eventName, $record->object_value, $options);\n $record->save();\n }\n\n //if no such events are found, create a fresh event against the item\n if ( sizeof($records) )\n self::setEvent($eventName, null, $options);\n\n }", "public static function has_event_json()\n {\n global $wpdb;\n\n $event_id = isset($_POST['event_id']) ? (int) $_POST['event_id'] : 0;\n if (isset($_GET['event_id'])) {\n $event_id = (int) $_GET['event_id'];\n }\n $response = new stdClass();\n $response->success = false;\n if ($post_id = $wpdb->get_var(\"select post_id from \" . EM_EVENTS_TABLE . \" where event_id='\" . $event_id . \"' limit 1\")) {\n if ($event_key = $wpdb->get_var(\"SELECT event_key FROM \" . EM_SEATSIO_EVENT . \" WHERE post_id='\" . $post_id . \"' LIMIT 1\")) {\n $response->success = true;\n $response->event_key = $event_key;\n $response->post_id = $post_id;\n $response->event_id = $event_id;\n }\n }\n wp_send_json($response);\n }", "public final function once( $eventName, $eventCallback ) {\n\n\t\t\tif ( !is_string( $eventName ) ) {\n\t\t\t\n\t\t\t\tthrow new \\browserfs\\Exception('Invalid argument $eventName: string expected');\n\t\t\t\n\t\t\t} else {\n\t\t\t\n\t\t\t\tif ( !strlen( $eventName ) ) {\n\t\t\t\n\t\t\t\t\tthrow new \\browserfs\\Exception('Invalid argument $eventName: expected non-empty string');\n\t\t\t\n\t\t\t\t} else {\n\t\t\t\n\t\t\t\t\tif ( !is_callable( $eventCallback ) ) {\n\t\t\t\n\t\t\t\t\t\tthrow new \\browserfs\\Exception('Invalid argument $eventCallback: callable expected' );\n\t\t\t\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t$this->events[ $eventName ] = isset( $this->events[ $eventName ] ) ? $this->events[ $eventName ] : [];\n\n\t\t\t\t\t\t$this->events[ $eventName ][] = [\n\t\t\t\t\t\t\t'once' => true,\n\t\t\t\t\t\t\t'callback' => $eventCallback,\n\t\t\t\t\t\t\t'fireId' => 0\n\t\t\t\t\t\t];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public function __isset($name) {\n\t\tif ($name === 'event_name')\n\t\t\t$ret = isset ( $this->event );\n\t\telse\n\t\t\t$ret = isset ( $this->$name );\n\t\treturn $ret;\n\t}", "public function has($name){\n\t\treturn $this->hasNamedBuffer($name);\n\t}", "public function isAnyEventInNeedOfExecution()\n\t\t{\n\n\t\t\t$eventsToBeExecuted = array();\n\n\t\t\t$current_his = date('H:i:s', time());\n\t\t\t$current_his_parts = explode(\":\", $current_his);\n\t\t\t$current_his = $current_his_parts[0].\":\".$current_his_parts[1].\":00\";\n\n\t\t\t// Loop through all saved events\n\t\t\tforeach($this->store as $k => $event) {\n\t\t\t\t// Date and time calculations\n\t\t\t\t$datetime_execution = $event['event_plannedExecution_time'];\n\t\t\t\t$event['time_his'] = date(\"H:i:s\", strtotime($datetime_execution));\n\t\t\t\t$event['time_dbdate'] = DBDatetoDate($event['event_plannedExecution_date']);\n\t\t\t\t$event['time_cdate'] = date(\"d.m.Y\");\n\n\t\t\t\t// If the event has not been executed yet and date AND time are equal to the current one\n\t\t\t\tif(\n\t\t\t\t\t!isSizedString($event['event_executedAt']) &&\n\t\t\t\t\t$event['time_dbdate'] === $event['time_cdate'] &&\n\t\t\t\t\t$event['time_his'] === $current_his\n\t\t\t\t)\n\t\t\t\t\tarray_push($eventsToBeExecuted, $event);\n\n\t\t\t\t// If the event has already been executed, the date is wrong, but the time is right and loop is enabled\n\t\t\t\tif(\n\t\t\t\t\tisSizedString($event['event_executedAt']) &&\n\t\t\t\t\t$event['time_dbdate'] !== $event['time_cdate'] &&\n\t\t\t\t\t$event['time_his'] === $current_his &&\n\t\t\t\t\t(bool)$event['event_loop'] === true\n\t\t\t\t)\n\t\t\t\t\tarray_push($eventsToBeExecuted, $event);\n\t\t\t}\n\n\t\t\treturn $eventsToBeExecuted;\n\n\t\t}", "static function isRepeatingInstrumentInEvent($event_id, $instrument) {\n $q = ExternalModules::query(\"SELECT COUNT(form_name) AS cnt FROM redcap_events_repeat WHERE event_id=? AND form_name=?\", [$event_id,$instrument]);\n if($row = $q->fetch_assoc()) {\n return ($row['cnt'] > 0);\n }\n return FALSE;\n }", "public function actionExist ($actionName) {\n\t\treturn method_exists($this, 'process'.$actionName);\n\t}", "public static function exists($exp)\n {\n return isset($exp) && $exp !== '' && $exp !== [];\n }", "public function exists(Event $event)\n {\n if ($this->shouldUseLocks($this->cache->store($this->store)->getStore())) {\n return ! $this->cache->store($this->store)->getStore()\n ->lock($event->mutexName(), $event->expiresAt * 60)\n ->get(fn () => true);\n }\n\n return $this->cache->store($this->store)->has($event->mutexName());\n }", "public function hasNetworkEvent(){\n return $this->_has(3);\n }", "public function isEvent()\n {\n return isset($this->status_changed) && ! is_null($this->status_changed);\n }", "public function canCreate(ContainerInterface $container, $requestedName)\n {\n /* We check, if $requestedName ends with the string '/Events'.\n * Instead of parsing the string with regular expressions (eg. ~/Events$~),\n * it's more efficient to just check with strpos, if the reversed string starts\n * with the reverted '/Events' string.\n */\n return 0 === strpos(strrev($requestedName), 'stnevE/');\n }", "public function testDispatchEvents($eventName, $methodName, $objectName)\n {\n $isCalledWithRightPrefix = 0;\n $isObjectNameRight = 0;\n $this->eventDispatcher->expects($this->any())->method('dispatch')->with(\n $this->callback(function ($arg) use (&$isCalledWithRightPrefix, $eventName) {\n $isCalledWithRightPrefix |= ($arg === $eventName);\n return true;\n }),\n $this->callback(function ($data) use (&$isObjectNameRight, $objectName) {\n $isObjectNameRight |= isset($data[$objectName]);\n return true;\n })\n );\n \n $this->stockModel->$methodName();\n $this->assertTrue(\n ($isCalledWithRightPrefix && $isObjectNameRight),\n sprintf('Event \"%s\" with object name \"%s\" doesn\\'t dispatched properly', $eventName, $objectName)\n );\n }", "private function _valid_event_type($event_type=NULL){\n\t\tif(!empty($event_type)){\n\t\t\tif ($event_type == Minematic_Connector_Model_Config::EVENT_TYPE_ALL ||\n\t\t\t\t$event_type == Minematic_Connector_Model_Config::EVENT_TYPE_PAID || \n\t\t\t\t$event_type == Minematic_Connector_Model_Config::EVENT_TYPE_OTHERS){\n\t\t\t\treturn TRUE;\n\t\t\t} else {\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn TRUE;\n\t}", "public static function hasQName(SchemaQName|string $qname): bool\n {\n try {\n self::resolveQName($qname);\n } catch (NoMessageForCurie | NoMessageForQName $e) {\n return false;\n }\n\n return true;\n }", "public function testFacilityUseEventExistsAndIsArray($model, $classname)\n {\n $this->assertTrue($model->getEvent() !== null);\n $this->assertTrue(is_array($model->getEvent()));\n }", "public function detachAll(string $event_name):bool{\r\n $this->storage[$event_name]=[];\r\n return true;\r\n }", "public function isScheduledAction( $actionName ) {\n\t\t$actions = as_get_scheduled_actions( [\n\t\t\t'hook' => $actionName,\n\t\t\t'status' => \\ActionScheduler_Store::STATUS_PENDING,\n\t\t\t'per_page' => 1\n\t\t]);\n\t\treturn ! empty( $actions );\n\t}", "protected function handlerShouldBeQueued($className)\n {\n try {\n return with(new ReflectionClass($className))->implementsInterface('Nova\\Queue\\ShouldQueueInterface');\n }\n catch (Exception $e) {\n return false;\n }\n }", "private function hasEventsOnADate($date)\n {\n # Get the events\n $events = $this->getEventsOnADate($date);\n\n # check\n return !empty($events);\n }", "function removeEventListener($evtName, $pluginName = '')\n {\n global $modx;\n\n if (!$evtName) {\n return false;\n }\n\n if ($pluginName == '') {\n unset ($modx->pluginEvent[$evtName]);\n return true;\n }\n\n foreach ($modx->pluginEvent[$evtName] as $key => $val) {\n if ($modx->pluginEvent[$evtName][$key] == $pluginName) {\n unset ($modx->pluginEvent[$evtName][$key]);\n return true;\n }\n }\n\n return false;\n }", "protected function commandShouldBeQueued($command)\n\t{\n\t\tif ($command instanceof ShouldBeQueued) return true;\n\n\t\treturn (new ReflectionClass($this->getHandlerClass($command)))->implementsInterface(\n\t\t\t'Illuminate\\Contracts\\Queue\\ShouldBeQueued'\n\t\t);\n\t}", "public static function hasAttachedEvents($handler)\n {\n return (\n isset(static::$events[$handler]) &&\n is_array(static::$events[$handler])\n );\n }", "public function hasTimeEvents(){\n return $this->_has(8);\n }", "public function hasAction($actionName) {\n if (method_exists($this, Lvc_Config::getActionFunctionName($actionName))) {\n return true;\n } else {\n return false;\n }\n }", "public static function should_have_time( $events, $event ) {\n\t\tif ( ! is_array( $events ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$ids = array_map( static function( $event ) {\n\t\t\treturn absint( is_numeric( $event ) ? $event : $event->ID );\n\t\t}, $events );\n\n\t\t$event_id = is_numeric( $event ) ? $event : $event->ID;\n\n\t\t$start_hours = array_map( static function( $id ) {\n\t\t\treturn tribe_get_start_date( $id, true, 'Y-m-d H' );\n\t\t}, $ids );\n\n\t\t$start_hours_ids = array_unique( array_combine( $ids, $start_hours ) );\n\n\t\treturn isset( $start_hours_ids[ $event_id ] );\n\t}", "public function isQueued(): bool\n {\n $criteria = Criteria::create()\n ->where(\n new Comparison(\n 'status',\n Comparison::IN,\n array(\n File::FILE_IN_QUEUE\n )\n )\n );\n\n return count($this->files->matching($criteria)) > 0;\n }", "public function valid()\n {\n return (false !== \\next($this->events)) ? current($this->events) : false;\n }", "public function isSubscribed()\n {\n return null !== $this->queue;\n }", "private function isPushNeeded()\n {\n $this->logging->addDebug(__METHOD__ . '|1|');\n if ($this->hasPostData('add_initiated_by_magento', 1)\n && $this->hasPostData('add_service_action_from_magento', ['refund'])\n ) {\n $statusCodeSuccess = $this->helper->getStatusCode('BUCKAROO_MAGENTO2_STATUSCODE_SUCCESS');\n if ($this->hasPostData('brq_statuscode', $statusCodeSuccess)\n && !empty($this->postData['brq_relatedtransaction_refund'])) {\n if ($this->receivePushCheckDuplicates(\n $this->helper->getStatusCode('BUCKAROO_MAGENTO2_STATUSCODE_PENDING_APPROVAL'),\n $this->postData['brq_relatedtransaction_refund']\n )) {\n $this->logging->addDebug(__METHOD__ . '|4|');\n return true;\n }\n }\n $this->logging->addDebug(__METHOD__ . '|5|');\n return false;\n\n }\n\n $types = ['capture', 'cancelauthorize', 'cancelreservation'];\n if ($this->hasPostData('add_initiated_by_magento', 1)\n && $this->hasPostData('add_service_action_from_magento', $types)\n && empty($this->postData['brq_relatedtransaction_refund'])\n ) {\n return false;\n }\n\n if ($this->hasPostData('add_initiated_by_magento', 1)\n && $this->hasPostData('brq_transaction_method', ['klarnakp', 'KlarnaKp'])\n && $this->hasPostData('add_service_action_from_magento', 'pay')\n && isset($this->postData['brq_service_klarnakp_captureid'])\n ) {\n return false;\n }\n\n return true;\n }", "public function matchesRequest(): bool\n {\n return $this->validateSignature() && $this->payload->get('webhook_event_type') === static::EVENT_TYPE;\n }", "function is_schedule_inuse($schedule) {\n\tif ($schedule == \"\") {\n\t\treturn false;\n\t}\n\t/* loop through firewall rules looking for schedule in use */\n\tforeach (config_get_path('filter/rule', []) as $rule) {\n\t\tif ($rule['sched'] == $schedule) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}", "public function isObserverExists( $observer )\n {\n return $this->_storage->contains( $observer );\n }", "public function hasNamedBuffer($name){\n\t\treturn array_key_exists($name, $this->buffers);\n\t}", "private static function isRegistered($userId, $eventId) {\n\n return !empty(Model\\Registered::where([\n ['event_id', '=', $eventId],\n ['user_id', '=', $userId]\n ])->get()->first());\n\n }" ]
[ "0.6973013", "0.6742969", "0.6694883", "0.66877484", "0.6683495", "0.666168", "0.65042776", "0.643746", "0.63866526", "0.6364972", "0.6332101", "0.63262343", "0.6317015", "0.6269573", "0.62201905", "0.61984706", "0.60770273", "0.6050518", "0.6030203", "0.5971008", "0.59083265", "0.590196", "0.58844906", "0.581491", "0.58000785", "0.5732193", "0.57275856", "0.57272595", "0.56927127", "0.5691102", "0.5684115", "0.56768537", "0.5621517", "0.5576976", "0.5519696", "0.5498601", "0.547961", "0.5462659", "0.54470634", "0.54380447", "0.543328", "0.54158384", "0.54019845", "0.53995997", "0.53913736", "0.53721595", "0.5357004", "0.535413", "0.53287697", "0.5293573", "0.5259918", "0.5247604", "0.52389145", "0.521538", "0.5214401", "0.5184643", "0.5183604", "0.51592237", "0.508914", "0.50633484", "0.50604874", "0.50552016", "0.5052409", "0.5029948", "0.50176793", "0.501237", "0.5006532", "0.5005046", "0.49971083", "0.4982159", "0.49787658", "0.49728602", "0.49550012", "0.49541932", "0.49501488", "0.49356848", "0.49344814", "0.4923196", "0.49177673", "0.49151173", "0.4908418", "0.49024177", "0.48950103", "0.4874942", "0.48723343", "0.4871658", "0.48347476", "0.48336145", "0.48329794", "0.48244703", "0.48211238", "0.4814277", "0.4813387", "0.48094738", "0.48024017", "0.4796211", "0.47921586", "0.47909972", "0.47847906", "0.4784488" ]
0.783898
0
Get the event queue for $eventName
public function getEventQueue( /*# string */ $eventName )/*# : EventQueueInterface */;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getQueue($name)\n {\n\n if (!$this->hasQueue($name)) {\n $this->queues[$name] = new EventQueue();\n }\n\n return $this->queues[$name];\n }", "public function queueEvent($eventId);", "public function getQueueName();", "public function getQueue();", "public function getQueue();", "abstract public function getQueueName();", "public function hasEventQueue(/*# string */ $eventName)/*# : bool */;", "public function getAppQueue()\n {\n return $this->get(self::_APP_QUEUE);\n }", "public function getAppQueue()\n {\n return $this->get(self::_APP_QUEUE);\n }", "public function get_queue()\n\t\t{\n\t\t\treturn $this->queue;\n\t\t}", "public function getQueue()\n {\n return $this->doRequest('GET', \"queue\", []);\n }", "public function getQueue()\n {\n return $this->queue;\n }", "public function getQueue()\n {\n /** @var WebApplication|ConsoleApplication $this */\n return $this->get('queue');\n }", "public function eventQueue($name, array $arguments = [])\n {\n return $this->eventPush($name, $arguments);\n }", "public function getQueue()\n\t{\n\t\treturn $this->queue;\n\t}", "public function getName()\n {\n return $this->eventName;\n }", "public function getEventName()\n {\n return $this->eventName;\n }", "public function getEventName()\n {\n return $this->eventName;\n }", "public function getQueue() {\n return $this->_queue;\n }", "public function getQueue()\n {\n return isset($this->Queue) ? $this->Queue : null;\n }", "public function getListeners($eventName): array;", "public function getQueue() {\n\t\treturn null;\n\t}", "abstract public function getEventName();", "public function getEventName() {\n\t\treturn ($this->eventName);\n\t}", "public function getEmailQueue()\n {\n return $this->query(null, ['isEmail' => 1, 'isEmailed' => 0]);\n }", "public function getCallbacks($eventName)\n {\n $eventMap = $this->getEventMap();\n\n if (isset($eventMap[$eventName])) {\n return $eventMap[$eventName];\n }\n\n return array();\n }", "public function getQueue()\n {\n \treturn \"campaign-{$this->campaign->id}-worker-{$this->id}\";\n }", "public function getQueue(): Queue;", "function queue() {\n\n\t\t$date = false;\n\t\t$queue = new Queued_Event();\n\t\t$queue->set_workflow_id( $this->get_id() );\n\n\t\tswitch( $this->get_timing_type() ) {\n\n\t\t\tcase 'delayed':\n\t\t\t\t$date = new DateTime();\n\t\t\t\t$date->setTimestamp( time() + $this->get_timing_delay() );\n\t\t\t\tbreak;\n\n\t\t\tcase 'scheduled':\n\t\t\t\t$date = $this->calculate_scheduled_datetime();\n\t\t\t\tbreak;\n\n\t\t\tcase 'fixed':\n\t\t\t\t$date = $this->get_fixed_time();\n\t\t\t\tbreak;\n\n\t\t\tcase 'datetime':\n\t\t\t\t$date = $this->get_variable_time();\n\t\t\t\tbreak;\n\t\t}\n\n\t\t$date = apply_filters( 'automatewoo/workflow/queue_date', $date, $this );\n\n\t\tif ( ! $date ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$queue->set_date_due( $date );\n\t\t$queue->save();\n\n\t\t$queue->store_data_layer( $this->data_layer() ); // add meta data after saved\n\n\t\treturn $queue;\n\t}", "public function getEventDispatch();", "protected function getQueueName()\n {\n // TODO: Implement getQueueName() method.\n }", "public static function queue($event)\n {\n }", "public function get_event($name)\r\n\t{\r\n\t\treturn empty($this->observer_events[$name]) ? array() : $this->observer_events[$name];\r\n\t}", "public function listeners($eventName);", "protected function getEventName($eventId)\n {\n return $this->db->fetchColumn(\"SELECT `name` FROM `event` WHERE `id` = ?\", array($eventId));\n }", "public function getEvent()\n {\n return $this->event;\n }", "public function getEvent()\n {\n return $this->event;\n }", "public function getEvent()\n {\n return $this->event;\n }", "protected function getQueueName()\n {\n return __CLASS__;\n // TODO: Implement getQueueName() method.\n }", "function getQueue($id);", "public function fetchQueue() {\n\t\tif (TRUE === self::$instance instanceof QueueInterface) {\n\t\t\treturn self::$instance;\n\t\t}\n\t\treturn $this->initializeQueue();\n\t}", "public function getEvent()\n {\n return isset($this->event) ? $this->event : null;\n }", "public function getEvent() {\n return $this->event;\n }", "public function dispatchEvent($eventName, Event $event = null)\n\t{\n\t\treturn $this->container->eventDispatcher->dispatch($eventName, $event);\n\t}", "public function getQueueId();", "public function dispatch($eventName, Event $event = null): ?Event\n {\n return $this->container->get('event_dispatcher')->dispatch($eventName, $event);\n }", "public function getQueue()\n {\n return new Queue($this);\n }", "public function getEventName() : String;", "public function getQueueName()\n {\n return $this->queueName;\n }", "static function eventStack($event_name = null)\n\t{\n\t\tif (!isset($event_name)) {\n\t\t\treturn self::$event_stack;\n\t\t}\n\t\tforeach (self::$event_stack as $key => $ei) {\n\t\t\tif ($ei['event_name'] === $event_name) {\n\t\t\t\treturn $ei;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public function getEventNames(){\n return array($this->getEventName() => array($this,'handle'));\n }", "abstract protected function get_event_name();", "public function getEvent()\r\n {\r\n return $this->Event;\r\n }", "private function dispatchEventJob (EventQueue $queue)\n {\n $job = $queue->event_detail->job_name;\n if ( !$job ) return;\n\n //check if job class exists before calling\n if ( !class_exists($job) ) {\n echo DateUtil::getDateTime() . \" : Error event : \" . $queue->id . ' : ' . $job . PHP_EOL;\n\n return;\n }\n\n //broadcast the event\n dispatch(new $job($queue->object_value, $queue->id));\n\n }", "public function getEventDispatcher()\n {\n return $this->events;\n }", "public function getEventDispatcher()\n {\n return $this->events;\n }", "public function event()\n {\n return $this->event;\n }", "public function getGuildAppQueue()\n {\n return $this->get(self::_GUILD_APP_QUEUE);\n }", "public function getQueueToken() {\n return filter_input(INPUT_GET, 'queueittoken');\n }", "public function queued()\n {\n return $this->memory->get('orchestra.publisher.queue', []);\n }", "public function getEventName()\n {\n return $this->event->name;\n }", "public function getEvent();", "public function getQueue()\n {\n return array();\n }", "public function clearEventQueue(\n /*# string */ $eventName\n )/*# : EventManagerInterface */;", "public function getCustomEventName();", "public function getEvent() {\n $request = $this->getRequest();\n\n if (request('type') == 'event_callback') {\n $event = $request['event'];\n } else {\n $event = $request;\n }\n\n return $event;\n }", "static function getEventDispatcher() {\n\t\treturn self::getRegistry()->get(self::REGISTRY_EVENT_DISPATCHER);\n\t}", "public function getEventQueue(ConnectionInterface $connection);", "protected function _readObserversQueue() {\n if (Zend_Registry::isRegistered('observers_queue')) {\n $observerQueue = Zend_Registry::get('observers_queue');\n } else {\n $observerQueue = array();\n }\n\n\t\t$modelClassName = get_called_class();\n if (array_key_exists($modelClassName, $observerQueue) && !empty($observerQueue[$modelClassName])){\n foreach ($observerQueue[$modelClassName] as $observer) {\n if(Zend_Loader_Autoloader::getInstance()->suppressNotFoundWarnings(true)->autoload($observer)) {\n $this->registerObserver(new $observer());\n } else {\n if(Tools_System_Tools::debugMode()) {\n error_log('Unable to load an observer from the queue: ' . $observer);\n }\n }\n }\n }\n\n }", "public function queue(): string\n {\n return $this->queue;\n }", "public function getName()\n {\n return \"event\";\n }", "public function queue($name = null);", "public function getAttachObserver(string $event_name):array{\r\n return $this->storage[$event_name]??[];\r\n }", "public function getEventDispatcher()\n\t{\n\t\treturn $this->events;\n\t}", "protected function getEventName()\n\t{\n\t\treturn is_null($this->event_name) ? get_class($this) : $this->event_name;\n\t}", "public function getQueue(): ActiveQuery\n {\n return $this->hasOne(RabbitMQQueue::class, ['id' => 'queue_id']);\n }", "public function getQueue($queue)\n {\n return $queue ?: $this->default;\n }", "public function getQueue($queue)\n {\n return $queue ?: $this->default;\n }", "private function getPendingEvents ()\n {\n return EventQueue::pending()->with('event_detail')\n ->orderBy('scheduled_start_time', 'asc')\n ->limit(100)\n ->get();\n }", "public function getEvent()\n {\n $event = array(\n \"eid\" => $this->eid,\n \"name\" => $this->name,\n \"venue\" => $this->venue,\n \"date\" => $this->date,\n \"time\" => $this->time,\n \"type\" => $this->type,\n \"status\" => $this->status\n );\n return $event;\n }", "public static function event() {\n return self::service()->get('events');\n }", "abstract protected function getPaymentQueue();", "public function getEvent()\n {\n return $this->getData('event');\n }", "public static function getEventDispatcher()\n {\n }", "public function dispatch($eventName, Event $event = null);", "public function dispatch($eventName, Event $event = null);", "protected function resolveQueue()\n {\n return call_user_func($this->queueResolver);\n }", "public static function dropAndSetEvent ($eventName, $options = [])\n {\n $queue = EventQueue::whereNull('start_time')->where('event_name', $eventName);\n\n foreach ( $options as $key => $value ) {\n if ( $key == 'scheduled_start_time' ) continue;\n\n $queue->where($key, $value);\n }\n\n //find all records that are existing in the event queue\n $records = $queue->get();\n foreach ( $records as $record ) {\n self::setEvent($eventName, $record->object_value, $options);\n $record->save();\n }\n\n //if no such events are found, create a fresh event against the item\n if ( sizeof($records) )\n self::setEvent($eventName, null, $options);\n\n }", "public function getDefinitionByName($libraryName, $eventName);", "public function getMessageQueue()\n\t{\n\t\treturn $this->messages;\n\t}", "public function getQueue(): array\n {\n return [$this->out, $this->in];\n }", "protected function getEvent($connection = 'rabbitmq')\n {\n return $this->argument('event')\n ?: $this->laravel['config']\n ->get(\"rabbitevents.connections.$connection.queue\", 'default');\n }", "protected function formatListeners($eventName)\n {\n return collect(app('events')->getListeners($eventName))\n ->map(function ($listener) {\n $listener = (new ReflectionFunction($listener))\n ->getStaticVariables()['listener'];\n\n if (is_string($listener)) {\n return Str::contains($listener, '@') ? $listener : $listener.'@handle';\n } elseif (is_array($listener) && is_string($listener[0])) {\n return $listener[0].'@'.$listener[1];\n } elseif (is_array($listener) && is_object($listener[0])) {\n return get_class($listener[0]).'@'.$listener[1];\n } elseif (is_object($listener) && is_callable($listener) && ! $listener instanceof Closure) {\n return get_class($listener).'@__invoke';\n }\n\n return $this->formatClosureListener($listener);\n })->reject(function ($listener) {\n return Str::contains($listener, 'Laravel\\\\Telescope');\n })->map(function ($listener) {\n if (Str::contains($listener, '@')) {\n $queued = in_array(ShouldQueue::class, class_implements(Str::beforeLast($listener, '@')));\n }\n\n return [\n 'name' => $listener,\n 'queued' => $queued ?? false,\n ];\n })->values()->toArray();\n }", "public function getEvent()\n {\n return $this->getServiceLocator()->get('Application')->getEventManager();\n }", "public function getEventKey()\n {\n foreach ($this->events as $event) {\n \n return $event->getKey();\n }\n\n return null;\n }", "public function select($queueName);", "public function getEvent()\n {\n return $this->getProperty(\"Event\",\n new Event($this->getContext(), new ResourcePath(\"Event\", $this->getResourcePath())));\n }", "protected function getName()\n\t{\n\t\treturn 'event';\n\t}", "public function getQueueCollection()\n {\n if ($this->_queueCollection === null) {\n /** @var $this->_queueCollection \\Magento\\Newsletter\\Model\\ResourceModel\\Queue\\Collection */\n $this->_queueCollection = $this\n ->_collectionFactory\n ->create()\n ->addTemplateInfo()\n ->addOnlyUnsentFilter()\n ->load();\n }\n\n return $this->_queueCollection;\n }", "public function event(): EventDispatcherInterface;" ]
[ "0.67321676", "0.6103077", "0.6055925", "0.6019478", "0.6019478", "0.5974598", "0.58575016", "0.5801111", "0.5801111", "0.57589114", "0.56903774", "0.5673132", "0.5659175", "0.5657586", "0.56286395", "0.56048846", "0.55728966", "0.55728966", "0.552696", "0.551817", "0.54567647", "0.54554343", "0.54466015", "0.543378", "0.53903824", "0.53708", "0.5361239", "0.5342794", "0.5342768", "0.53325975", "0.53266746", "0.5315194", "0.5314725", "0.5304403", "0.53004533", "0.52984905", "0.52984905", "0.52984905", "0.5291884", "0.52819395", "0.52817625", "0.52771604", "0.524048", "0.52233994", "0.5216265", "0.518885", "0.51820433", "0.5171758", "0.51311535", "0.5119177", "0.51149553", "0.50874287", "0.5086121", "0.5082985", "0.50767165", "0.50767165", "0.5074874", "0.5072741", "0.50693125", "0.50660557", "0.50632054", "0.5056997", "0.50525635", "0.50460565", "0.5044793", "0.50441515", "0.50277054", "0.5025615", "0.50217247", "0.50052494", "0.49982184", "0.49914593", "0.49790883", "0.49720165", "0.49705797", "0.49699432", "0.4953597", "0.4953597", "0.4932017", "0.49316204", "0.49312392", "0.49227732", "0.49157962", "0.4912644", "0.48970938", "0.48970938", "0.48919752", "0.48888782", "0.48877302", "0.48734397", "0.48711625", "0.48671344", "0.48630762", "0.48625222", "0.4860281", "0.48588258", "0.48527896", "0.48523554", "0.48458132", "0.48433462" ]
0.7730009
0
Clear the event queue for $eventName
public function clearEventQueue( /*# string */ $eventName )/*# : EventManagerInterface */;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clear(): void\n {\n $this->eventRegistry->dequeueEvents();\n }", "public function clearEvents()\n {\n $this->recorded = [];\n }", "public function reset() {\n $this->_events->reset();\n }", "public function clearRecordedEvents()\n {\n $this->events = [];\n }", "public function clear($event);", "public static function clear($event) {\n unset(static::$events[$event]);\n }", "public function unsetEventDispatcher()\n {\n $this->events = null;\n }", "public static function clearCache()\n {\n static::$eventMap = [];\n \\Cache::forget(static::EVENT_CACHE_KEY);\n }", "public static function clearCache()\n {\n static::$eventMap = [];\n \\Cache::forget(static::EVENT_CACHE_KEY);\n }", "public function clearEvents()\n\t{\n\t\t$this->collEvents = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function removeAllListeners($eventName);", "public function clearRecordedEvents()\n {\n $this->latestRecordedEvents = [];\n }", "public function clearListeners(string $event): void;", "public function flush(): void\n {\n foreach ($this->eventRegistry->dequeueEvents() as $event) {\n $this->eventBus->dispatch($event);\n }\n }", "public static function dropAndSetEvent ($eventName, $options = [])\n {\n $queue = EventQueue::whereNull('start_time')->where('event_name', $eventName);\n\n foreach ( $options as $key => $value ) {\n if ( $key == 'scheduled_start_time' ) continue;\n\n $queue->where($key, $value);\n }\n\n //find all records that are existing in the event queue\n $records = $queue->get();\n foreach ( $records as $record ) {\n self::setEvent($eventName, $record->object_value, $options);\n $record->save();\n }\n\n //if no such events are found, create a fresh event against the item\n if ( sizeof($records) )\n self::setEvent($eventName, null, $options);\n\n }", "public function clearPending();", "public function clear():void{\n $this->size = 0;\n $this->arrayQueue = -1;\n }", "public function clear()\n {\n $this->events = [];\n return $this;\n }", "public static function unsetEventDispatcher()\n {\n static::$dispatcher = null;\n }", "function eventUnRegister($eventName, $id);", "function destroy($event) {\n $timers =& Timer::timers();\n unset($timers[$event]);\n }", "public function clearSubscribers();", "public function unqueue($name);", "protected function processClearCacheQueue() {}", "public static function dropEvent ($eventName, $options = [])\n {\n $queue = EventQueue::whereNull('start_time')->where('event_name', $eventName);\n\n foreach ( $options as $key => $value )\n $queue->where($key, $value);\n\n $queue->delete();\n }", "public function fireEventCancel($eventName) {}", "public function clear_cache(): void\n\t{\n\t\tassert($this instanceof Application);\n\n\t\tnew Application\\ClearCacheEvent($this);\n\t}", "public function resetCurrentEvent()\n {\n $this->currentEvent = 0;\n }", "public function actionQueueReset()\n {\n if (Yii::$app->has('elasticsearch')) {\n\n }\n Yii::$app->db->createCommand()->update('{{%queue}}', ['done_at' => NULL, 'attempt' => NULL, 'reserved_at' => NULL], '')->execute();\n }", "public function unsetEventTypes(): void\n {\n $this->eventTypes = [];\n }", "public static function clear()\n {\n self::$actionList = new \\SplPriorityQueue();\n self::$errors = [];\n self::$warnings = [];\n }", "public function onClear(ClearEvent $event) {\n $GLOBALS['feeds_test_events'][] = (__METHOD__ . ' called');\n }", "public function clearAllCommand()\n {\n $this->eventRepository->removeAll();\n $this->eventSourceRepository->removeAll();\n }", "public function forget($event)\n {\n unset($this->listeners[$event], $this->sorted[$event]);\n }", "public function clear(): void\n {\n $this->messages = [];\n }", "public function clear()\n {\n $this->messages = [];\n }", "public function forgetPushed()\n {\n foreach ($this->listeners as $key => $value) {\n if (Str::endsWith($key, '_pushed')) {\n $this->forget($key);\n }\n }\n }", "public function clear()\n {\n $this->connection->del($this->key);\n\n if ($this->on_change) {\n call_user_func($this->on_change, []);\n }\n\n if ($this->on_clear) {\n call_user_func($this->on_clear, []);\n }\n }", "public function purge(): void\n {\n $this->boot();\n $this->configuration->eventDispatcher()->dispatch(new Clear($this));\n }", "public function __destruct()\n {\n unset($this->queue);\n }", "public function dequeueItems() {\n $this->datasource()->stopTracking(array($this));\n _search_api_empty_cron_queue($this);\n }", "public function clearMediator();", "public function clearQueuedAddresses($kind)\n {\n $RecipientsQueue = $this->RecipientsQueue;\n foreach ($RecipientsQueue as $address => $params) {\n if ($params[0] == $kind) {\n unset($this->RecipientsQueue[$address]);\n }\n }\n }", "public function off($name)\n {\n foreach ($this->events as $key => $events) {\n if (preg_match(\"/^$name$|$name\\.)/\", $key)) {\n unset($this->events[$key]);\n }\n }\n }", "public function removeObserver() {\n //$this->__observers = array();\n foreach($this->__observers as $obj) {\n unset($obj);\n }\n }", "public function erase_history()\n {\n $this->_event_history = [];\n }", "public static function offAll()\n {\n self::$_events = [];\n self::$_eventWildcards = [];\n }", "public function clearQueuedAddresses($kind)\n {\n }", "public function clearListeners()\n {\n $this->listeners = array();\n }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_APP_QUEUE] = null;\n }", "public function reset()\n {\n $this->values[self::_RESULT] = null;\n $this->values[self::_APP_QUEUE] = null;\n }", "public function releaseEvents();", "public function releaseEvents();", "public function eventsClear()\n {\n //check or get oauth token\n OAuthManager::getInstance()->checkAuthorization();\n\n //the base uri for api requests\n $_queryBuilder = Configuration::getBaseUri();\n \n //prepare query string for API call\n $_queryBuilder = $_queryBuilder.'/notification/events/clear';\n\n //validate and preprocess url\n $_queryUrl = APIHelper::cleanUrl($_queryBuilder);\n\n //prepare headers\n $_headers = array (\n 'user-agent' => 'ApiMatic-RestClient-2018-5-18 Sdk-Langauge:PHP',\n 'Authorization' => sprintf('Bearer %1$s', Configuration::$oAuthToken->accessToken)\n );\n\n //call on-before Http callback\n $_httpRequest = new HttpRequest(HttpMethod::POST, $_headers, $_queryUrl);\n if ($this->getHttpCallBack() != null) {\n $this->getHttpCallBack()->callOnBeforeRequest($_httpRequest);\n }\n\n //and invoke the API call request to fetch the response\n $response = Request::post($_queryUrl, $_headers);\n\n $_httpResponse = new HttpResponse($response->code, $response->headers, $response->raw_body);\n $_httpContext = new HttpContext($_httpRequest, $_httpResponse);\n\n //call on-after Http callback\n if ($this->getHttpCallBack() != null) {\n $this->getHttpCallBack()->callOnAfterRequest($_httpContext);\n }\n\n //handle errors defined at the API level\n $this->validateResponse($_httpResponse, $_httpContext);\n }", "public function clear($events = null) {\n\t\tif (!$this->_config['trackEvents']) {\n\t\t\t$this->err('You need to enable the slow \"trackEvents\" option for this');\n\t\t\treturn false;\n\t\t}\n\n\t\tif ($events === null) {\n\t\t\t$events = $this->getEvents();\n\t\t\tif (!empty($events)) {\n\t\t\t $this->clear($events);\n\t\t\t}\n\t\t} else {\n\t\t\t$events = (array)$events;\n\t\t\tforeach($events as $eKey=>$event) {\n\t\t\t\t$cKeys = $this->getCKeys($event);\n\t\t\t\t$this->_del($cKeys);\n\n\t\t\t\t$this->_del($eKey);\n\t\t\t}\n\t\t}\n\t}", "public function postEventDel();", "function queue_destroy(&$queue) { \n // Since PHP is nice to us, we can just use unset \n unset($queue); \n}", "public function deleteQueue();", "public function forget($event)\n {\n unset($this->listeners[$event]);\n }", "public static function flushEventListeners()\n {\n if (!isset(static::$dispatcher)) {\n return;\n }\n\n $instance = new static;\n\n foreach ($instance->getObservableEvents() as $event) {\n static::$dispatcher->forget(\"halcyon.{$event}: \".get_called_class());\n }\n\n static::$eventsBooted = [];\n }", "public function flush(): void\n {\n foreach ($this->events as $event) {\n $this->destination->captureEvent($event);\n }\n\n $this->events = [];\n }", "public function __destruct(){\n\t\t$this->purgeQueue();\n\t}", "public function clearScheduled()\n {\n $this->getFilter()->clear($this->getProject() . 'scheduled');\n }", "public function reset()\n {\n $this->values[self::SUBSCRIPTION_ID] = null;\n $this->values[self::PROCESSED_EVENT_IDS] = [];\n }", "function edd_pup_clear_queue() {\n\n\tif ( ! wp_verify_nonce( $_REQUEST['nonce'], 'clear-queue-'.$_REQUEST['email'] ) ) {\n\t\techo 'noncefail';\n\t\texit;\n\t}\n\n\tglobal $wpdb;\n\n\t// Clear queue\n\tif ( $_POST['email'] == 'all' ) {\n\n\t\t// Build array of queued emails before clearing table\n\t\t$queueemails = edd_pup_queue_emails();\n\n\t\t// Build array of sent email data before clearing table\n\t\tforeach ( $queueemails as $email => $id ) {\n\t\t\t$recipients[$id] = edd_pup_check_queue( $id );\n\t\t}\n\n\t\t// Clear the database table\n\t\t$qr = $wpdb->query( \"TRUNCATE TABLE $wpdb->edd_pup_queue\" );\n\n\t} else {\n\n\t\t$recipients = edd_pup_check_queue( $_POST['email'] );\n\n\t\t// Delete the rows WHERE the specified email_id matches\n\t\t$qr = $wpdb->delete( \"$wpdb->edd_pup_queue\", array( 'email_id' => $_POST['email'] ), array( '%d' ) );\n\n\t}\n\n\t// If clear queue fails, bail out of function with error message, otherwise change post statuses\n\tif ( false === $qr ) {\n\t\twp_die( __( 'Error: could not complete database query.', 'edd-pup' ), __( 'Clear Queue Error', 'edd-pup' ) );\n\n\t} else {\n\n\t\tif ( !empty( $queueemails ) ) {\n\n\t\t\tforeach ( $queueemails as $email => $id ) {\n\t\t\t\t$post[] = wp_update_post( array( 'ID' => $id, 'post_status' => 'abandoned' ) );\n\t\t\t\tupdate_post_meta ( $id, '_edd_pup_recipients', $recipients[$id] );\n\t\t\t}\n\n\t\t} else if ( absint( $_POST['email'] ) != 0 ) {\n\n\t\t\t$post = wp_update_post( array( 'ID' => $_POST['email'], 'post_status' => 'abandoned' ) );\n\t\t\tupdate_post_meta ( $post, '_edd_pup_recipients', $recipients );\n\n\t\t} else {\n\n\t\t\twp_die( __( 'Error: Valid email ID not supplied.', 'edd-pup' ), __( 'Clear Queue Error', 'edd-pup' ) );\n\t\t}\n\t}\n\n\tdie();\n}", "public function off($event);", "public function clear() {}", "public function clear() {}", "public function clear() {}", "public function clear() {}", "public static function clear_queued_actions() {\n\t\t$store = \\ActionScheduler::store();\n\n\t\tif ( is_a( $store, 'Automattic\\WooCommerce\\Admin\\Overrides\\WPPostStore' ) ) {\n\t\t\t// If we're using our data store, call our bespoke deletion method.\n\t\t\t$action_types = array( self::UNSNOOZE_HOOK );\n\t\t\t$store->clear_pending_wcadmin_actions( $action_types );\n\t\t} else {\n\t\t\tself::queue()->cancel_all( null, array(), self::QUEUE_GROUP );\n\t\t}\n\t}", "public static function reset(): void\n {\n self::$subjectNames = null;\n }", "public function queueEvent($eventId);", "function __unset($name)\n {\n $this->clear($name);\n }", "public function unsubscribe(): void;", "public function FlushQueue()\n {\n do\n {\n $result = $this->FlushMsg();\n } while ($result);\n }", "public function clear()\n {\n $this->log = [];\n }", "public function emptyQueue() {\n $this->client->zremrangebyscore(self::JOB_QUEUE_NAME, \"-inf\", \"inf\");\n $this->client->del(\"total_processing_time\");\n $this->client->del(\"num_jobs_processed\");\n }", "public function truncateEventClosures(): void\n {\n $this->listeners = [];\n }", "private function finishTimer()\n {\n if (!$this->activeCalls && !count($this->queue) && $this->timer) {\n $this->loop->cancelTimer($this->timer);\n // Don't use unset(), it completely removes property from the object!\n $this->timer = null;\n }\n }", "public function clear() {\n\t\t$this->array = array();\n\t}", "public function unsetDispatcher(): void\n {\n $this->dispatcher = null;\n }", "public function clearAction() {\n\t\t$this->actionlist = null;\n\t}", "protected function clear() {}", "function forget()\n\t{\n\t}", "public function flush(/* ... */)\n {\n $this->_storage = [[], [], []];\n $this->_event_history = [];\n $this->set_state(STATE_DECLARED);\n }", "public function clear() {\n $this->redis = null;\n }", "public function clear()\r\n {\r\n $this->messages->clear();\r\n }", "public function flush($event)\n {\n $this->dispatch($event .'_pushed');\n }", "function postClear()\n {\n }", "public function\n\tclearMessages()\n\t{\n\t\t$this -> m_aStorage = [];\n\t}", "protected function tearDown(): void\r\n {\r\n unset($this->queue);\r\n }", "public function clearQuestionOffensives()\n\t{\n\t\t$this->collQuestionOffensives = null; // important to set this to NULL since that means it is uninitialized\n\t}", "public function clear()\n {\n $this->tags = [];\n }", "function clear() {}", "protected function _unsubscribeFromEngineEvents()\n {\n $events = array(\n Streamwide_Engine_Events_Event::SDP,\n Streamwide_Engine_Events_Event::CHILD,\n Streamwide_Engine_Events_Event::OKMOVED,\n Streamwide_Engine_Events_Event::MOVED,\n Streamwide_Engine_Events_Event::FAILMOVED\n );\n \n $controller = $this->getController();\n foreach ( $events as $event ) {\n $controller->removeEventListener( $event, array( 'callback' => array( $this, 'onSignalReceived' ) ) );\n }\n }", "public static function emptyQueues()\n {\n //Get the tracks in all the queues\n $tracks = [];\n foreach (self::$queues as $queue) {\n $tracks = array_merge($tracks, self::getTracksInQueue($queue));\n }\n\n foreach ($tracks as $track) {\n self::removeRequestFromQueue($track['queue'], $track['requestid']);\n }\n }", "public function clear(): void\n {\n $this->bufferSize = 0;\n $this->buffer = array();\n }", "public final function off( $eventName, $eventCallback = null ) {\n\n\t\t\tif ( is_string( $eventName ) ) {\n\n\t\t\t\tif ( strlen( $eventName ) > 0 ) {\n\n\t\t\t\t\tif ( isset( $this->events[ $eventName ] ) ) {\n\n\t\t\t\t\t\tif ( $eventCallback === null ) {\n\n\t\t\t\t\t\t\tunset( $this->events[ $eventName ] );\n\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tfor ( $i = count( $this->events[ $eventName ] ) - 1; $i>=0; $i-- ) {\n\n\t\t\t\t\t\t\t\tif ( self::callbackEquals( $eventCallback, $this->events[ $eventName ][ $i ]['callback'] ) ) {\n\n\t\t\t\t\t\t\t\t\t// remove event\n\t\t\t\t\t\t\t\t\tarray_splice( $this->events[ $eventName ], $i, 1 );\n\n\t\t\t\t\t\t\t\t\tif ( count( $this->events[ $eventName ] ) == 0 ) {\n\t\t\t\t\t\t\t\t\t\tunset( $this->events[ $eventName ] );\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\n\t\t\t\t\tthrow new \\browserfs\\Exception('Invalid argument $eventName: non-empty string expected!');\n\n\t\t\t\t}\n\n\t\t\t} else {\n\n\t\t\t\tthrow new \\browserfs\\Exception('Invalid argument $eventName: string expected!' );\n\n\t\t\t}\n\n\t\t}", "public function clearState($name) {\n\t\tunset($this->_state[$name]);\n\t}" ]
[ "0.755167", "0.6877057", "0.65866584", "0.65760595", "0.6553837", "0.64754117", "0.64103955", "0.6323743", "0.6323743", "0.6294051", "0.62397486", "0.623584", "0.6062153", "0.5960877", "0.5957661", "0.5888287", "0.5840175", "0.5767146", "0.5753885", "0.57294786", "0.572199", "0.57150304", "0.5666878", "0.5656504", "0.5651048", "0.5651029", "0.5625948", "0.56228185", "0.56041396", "0.559687", "0.5532809", "0.55133396", "0.54866374", "0.5479003", "0.5473735", "0.54729027", "0.5463903", "0.5453626", "0.5451332", "0.5441669", "0.5441405", "0.5425286", "0.5423656", "0.5406245", "0.5389065", "0.53865993", "0.53780115", "0.5371376", "0.53654253", "0.5350311", "0.53498906", "0.53488725", "0.53488725", "0.53439194", "0.534072", "0.5331389", "0.53089964", "0.53087187", "0.53010875", "0.52983797", "0.52893203", "0.5288984", "0.528686", "0.52758366", "0.52703893", "0.52600646", "0.52583474", "0.52583474", "0.52583474", "0.52583474", "0.5254712", "0.5249623", "0.5249199", "0.5245272", "0.5244097", "0.5236575", "0.5235281", "0.5234114", "0.5229688", "0.5225042", "0.52156764", "0.5208236", "0.5202121", "0.51958853", "0.5187166", "0.51816887", "0.5179146", "0.5178671", "0.5176613", "0.5174963", "0.51565075", "0.5156396", "0.51551026", "0.51427084", "0.5131722", "0.5114984", "0.51145935", "0.51141274", "0.5112524", "0.510638" ]
0.76910543
0
Get all event names in an array
public function getEventNames()/*# : array */;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEventNames()\n {\n return array_keys($this->events);\n }", "public function getEventNames(){\n return array($this->getEventName() => array($this,'handle'));\n }", "public static function getEventNames()\n {\n return array(\n self::CREATE_CONNECTION,\n self::DEPLOY_COMMAND_COMPLETE,\n self::DEPLOY_RELEASE,\n self::DEPLOY_RELEASE_COMPLETE,\n self::DEPLOY_RELEASE_FAILED,\n self::GATHER_FACTS,\n self::GET_WORKSPACE,\n self::INITIALIZE,\n self::INSTALL_COMMAND_COMPLETE,\n self::INSTALL_RELEASE,\n self::INSTALL_RELEASE_COMPLETE,\n self::INSTALL_RELEASE_FAILED,\n self::LOG,\n self::PREPARE_DEPLOY_RELEASE,\n self::PREPARE_RELEASE,\n self::PREPARE_WORKSPACE,\n self::ROLLBACK_RELEASE,\n self::ROLLBACK_RELEASE_COMPLETE,\n self::ROLLBACK_RELEASE_FAILED,\n );\n }", "public static function getEvents(): array\n {\n return is_array(static::$events) ? static::$events : [static::$events];\n }", "function getEvents() {\n return [];\n }", "public function getDayNames($array) {\n\t\treturn $this->dayNames;\n\t}", "public function getAuditEvents(): array\n {\n return DB::table('audits')\n ->select('event')\n ->distinct('event')\n ->pluck('event')\n ->transform(function($item) {\n return [\n 'key' => $item,\n 'value' => array_key_exists($item, trans('tags')) ? trans('tags.'.$item) : $item,\n ];\n\n })\n ->toArray();\n }", "protected function getRegisteredEvents() {\n $events = [];\n foreach ($this->loadMultiple() as $rules_config) {\n foreach ($rules_config->getEventNames() as $event_name) {\n $event_name = $this->eventManager->getEventBaseName($event_name);\n if (!isset($events[$event_name])) {\n $events[$event_name] = $event_name;\n }\n }\n }\n return $events;\n }", "public function names(): array;", "public function names(): array;", "public function getEvents();", "public function getEvents();", "public function getNames();", "public function getEvents() : array\n {\n $events = [];\n\n for ($i = 1; $i <= 2; $i++) {\n for ($j = 1; $j <= 4; $j++) {\n for ($k = 1; $k <= 10; $k++) {\n $events []= new Event('install', $i, $j);\n\n if ($k < 3 || $j == 2)\n $events []= new Event('purchase', $i, $j);\n }\n }\n }\n\n return $events;\n }", "public function getNames() {}", "public function getNames() {}", "public function getNames() {}", "public function getNames(): array\n {\n $enumeration = $this->enumeration;\n $names = [];\n foreach ($this->getOrdinals() as $ord) {\n $names[] = $enumeration::byOrdinal($ord)->getName();\n }\n return $names;\n }", "public function getAllNames() {}", "public function getNames() : array\n {\n return \\array_map(function ($t) {\n return $t instanceof self ? $t->getNames() : $t;\n }, $this->types);\n }", "public function names()\n {\n $names = [];\n foreach ($this->items as $item) {\n $names[] = $item->getName();\n }\n\n return $names;\n }", "public function getAllActiveEvents(): array\n {\n $activeEvents = [];\n foreach (self::$eventsMap as $eventName => $eventClass) {\n if (!class_exists($eventClass)) {\n continue;\n }\n\n $activeEvents[] = $eventName;\n }\n\n $listeners = $this->eventDispatcher->getListeners();\n\n // Check if these listeners are part of the new events.\n foreach (array_keys($listeners) as $listenerKey) {\n if (isset(self::$newEventsMap[$listenerKey])) {\n unset($listeners[$listenerKey]);\n }\n\n if (!isset(self::$eventsMap[$listenerKey])) {\n self::$eventsMap[$listenerKey] = $this->getEventClassName($listenerKey);\n }\n }\n\n $activeEvents = array_unique(array_merge($activeEvents, array_keys($listeners)));\n\n asort($activeEvents);\n\n return $activeEvents;\n }", "public function getEvents()\n {\n $events = $this->getEventsArray();\n\n $transformedEvents = array();\n foreach($events as $event) {\n $transformedEvents[] = $this->processSingleEvent($event);\n }\n\n return $transformedEvents;\n }", "public static function getNames()\n\t{\n\t\t$list = [];\n\t\tforeach (self::getCodes() as $code)\n\t\t{\n\t\t\t$list[$code] = Base::getNameByCode($code);\n\t\t}\n\n\t\treturn $list;\n\t}", "abstract protected function get_event_name();", "public function allNamed(): array;", "public static function getAllEventTypes()\n {\n return [\n 'complete' => 'complete',\n 'fail' => 'fail'\n ];\n }", "private static function get_events() {\n\t\treturn array(\n\t\t\t'formidable_send_usage' => 'weekly',\n\t\t);\n\t}", "public static function list_events()\n\t{\n\t\treturn cms_orm('CmsDatabaseEvent')->find_all(array('order' => 'module_name, event_name'));\n\t}", "public function event_names($users)\r\n\t{\r\n\t\t$this->names = array_merge($this->names, explode(' ', $users));\r\n\t}", "public function getEvents()\n {\n $events = $this->getPlatformEvents();\n\n $transformedEvents = array();\n foreach($events as $event) {\n $transformedEvents[] = $this->processSingleEvent($event);\n }\n\n return $transformedEvents;\n }", "protected function getRegisteredEvents() {\n// $events = [];\n// foreach ($this->loadMultiple() as $rules_config) {\n// $event = $rules_config->getEvent();\n// if ($event && !isset($events[$event])) {\n// $events[$event] = $event;\n// }\n// }\n// return $events;\n }", "public function getTemplatesForEvent($name) {\n\t\t$result = array();\n\t\tforeach($this->templates as $tmpl) {\n\t\t\tforeach($tmpl->getEvents() as $event) {\n\t\t\t\tif($event == $name) {\n\t\t\t\t\t$result[] = $tmpl;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $result;\n\t}", "function getUsernames(){\n $arr = array();\n for($x=0;$x<count($this->names);$x++){\n array_push($arr,$this->names[$x]);\n }\n return $arr;\n }", "public function get_event($name)\r\n\t{\r\n\t\treturn empty($this->observer_events[$name]) ? array() : $this->observer_events[$name];\r\n\t}", "private function registered_events () {\n\n\t\t$triggers = array();\n\n\t\tforeach( get_option( 'nce_triggers' ) as $trigger => $enabled ) {\n\n\t\t\tif( $enabled == \"1\" ) {\n\n\t\t\t\t$triggers[] = $trigger;\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn $triggers;\n\n\t}", "function mc_flatten_array( $events ) {\n\t$new_array = array();\n\tif ( is_array( $events ) ) {\n\t\tforeach ( $events as $event ) {\n\t\t\tforeach ( $event as $e ) {\n\t\t\t\t$new_array[] = $e;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn $new_array;\n}", "public function getOtherEvents();", "public function getNames()\n {\n return $this->names;\n }", "static public function allNames()\n\t{\t\n\t\t$categories = PhotoCategory::all();\n\t\t\n\t\t$names = array();\n\t\t\n\t\t$categories->map(function($value) use (&$names)\n\t\t{\n\t\t\t$id = $value['id'];\n\t\t\t$names[$id] = $value['name'];\n\t\t});\n\t\t\n\t\treturn $names;\n\t}", "public function getNames() {\n\t\treturn $this->names;\n\t}", "function get_foodnames_arr(){\n\n}", "public function getEventNameAllowableValues()\n {\n return [\n self::EVENT_NAME_EMAIL_RECEIVED,\n self::EVENT_NAME_NEW_EMAIL,\n self::EVENT_NAME_NEW_CONTACT,\n self::EVENT_NAME_NEW_ATTACHMENT,\n self::EVENT_NAME_EMAIL_OPENED,\n self::EVENT_NAME_EMAIL_READ,\n self::EVENT_NAME_DELIVERY_STATUS,\n self::EVENT_NAME_BOUNCE,\n self::EVENT_NAME_BOUNCE_RECIPIENT,\n self::EVENT_NAME_NEW_SMS,\n ];\n }", "public function lista(): array\n {\n return $this->eventos;\n }", "public function getExistingNames()\n {\n return array_keys($this->createQueryBuilder()\n ->select('name')\n ->hydrate(false)\n ->getQuery()\n ->execute()\n ->toArray());\n }", "protected function getAttributeEvents()\n {\n $events = [];\n foreach($this->dispatchesEvents as $event => $class) {\n if(strpos($event, ':') !== false) {\n $events[$event] = $class;\n }\n }\n return $events;\n }", "public function getListeners($eventName): array;", "public function getNames() {\n return $this->names;\n }", "public function get_event_list()\n\t{\n\treturn $this->cal['VEVENT'];\n\t}", "public function getNameList() {\n return $this->_get(1);\n }", "public static function names(): array\n {\n return array_map(fn ($case) => $case->name, static::cases());\n }", "public function getNames() {\n return $this->_names;\n }", "public function get_names()\n {\n }", "public function getNameTags() \n { \n $allTags = []; \n foreach($this->tags as $tag) {\n $allTags[] = $tag->name;\n }\n return $allTags;\n }", "public function findByName($name){\r\n $stmt = $this->db->prepare(\"SELECT * FROM event WHERE name LIKE %?%\");\r\n $stmt->execute(array($name));\r\n\r\n $events_db = $stmt->fetchAll(PDO::FETCH_ASSOC);\r\n\r\n $events = array();\r\n\r\n foreach($events_db as $event){\r\n array_push($events, new Event($event[\"id_event\"], $event[\"type\"], $event[\"name\"],$event[\"moment\"], $event[\"date\"],\r\n $event[\"guests\"], $event[\"children\"], $event[\"sweet_table\"], $event[\"observations\"],\r\n $event[\"restaurant\"], $event[\"phone\"],$event[\"price\"] ));\r\n }\r\n\r\n return $events;\r\n }", "public function getEventHandlers($name)\r\n\t{\r\n\t\tif($this->hasEvent($name))\r\n\t\t{\r\n\t\t\t$name=strtolower($name);\r\n\t\t\tif(!isset($this->_e[$name]))\r\n\t\t\t\t$this->_e[$name]=new CList();\r\n\t\t\treturn $this->_e[$name];\r\n\t\t}\r\n\t}", "public function getNames()\n {\n if($this->isKeycacheInvalid())\n {\n $this->regenerateKeyCache();\n }\n if(is_array($this->__keycacheindex))\n {\n return $this->__keycacheindex;\n }\n return array();\n }", "public function getCustomEventName();", "function getEventIDs() {\n\t\t$return = array();\n\n\t\tif ( $this->getCount() > 0 ) {\n\t\t\tforeach ( $this as $oObject ) {\n\t\t\t\t$return[] = $oObject->getID();\n\t\t\t}\n\t\t}\n\n\t\treturn $return;\n\t}", "public function getTriggeringEvents();", "public function get_names(): array {\n\t\treturn array_values( $this->missing_dependencies );\n\t}", "public static function getAllNames(): array\n {\n $reflection = new \\ReflectionClass(__CLASS__);\n\n return \\array_values($reflection->getConstants());\n }", "public static function getAllNames(): array\n {\n $reflection = new \\ReflectionClass(__CLASS__);\n\n return \\array_values($reflection->getConstants());\n }", "public static function _getPropertyNames(): array\n {\n return [\n ];\n }", "public function getRegistryNames() : array\n {\n $names = [];\n foreach ($this->getRegistry() as $registryName=>$registryValue)\n {\n $names[] = $registryName;\n }\n\n return $names;\n }", "private function getEventData( array $event ): array {\n return [\n 'token' => env( 'VERIFICATION_TOKEN' ),\n 'team_id' => 'T061EG9R6',\n 'api_app_id' => 'A0MDYCDME',\n 'event' => $event,\n 'type' => 'event_callback',\n 'event_id' => 'Ev0MDYHUEL',\n 'event_time' => 1515449483000108,\n 'authed_users' => [\n 0 => 'U0LAN0Z89',\n ],\n ];\n }", "public function getEventName() : String;", "function getEvents() {\n\n $events = ['new' => __('New change'),\n 'update' => __('Update of a change'),\n 'solved' => __('Change solved'),\n 'validation' => __('Validation request'),\n 'validation_answer' => __('Validation request answer'),\n 'closed' => __('Closure of a change'),\n 'delete' => __('Deleting a change')];\n\n $events = array_merge($events, parent::getEvents());\n asort($events);\n return $events;\n }", "public static function get_subscribed_events() {\r\n\t\treturn [\r\n\t\t\t'rocket_buffer' => [\r\n\t\t\t\t[ 'extract_ie_conditionals', 1 ],\r\n\t\t\t\t[ 'inject_ie_conditionals', 34 ],\r\n\t\t\t],\r\n\t\t];\r\n\t}", "public function getNameList() {\n return $this->_get(2);\n }", "public function getNameList() {\n return $this->_get(2);\n }", "public function getNameList() {\n return $this->_get(2);\n }", "public function getNameList() {\n return $this->_get(2);\n }", "public function getNameList() {\n return $this->_get(2);\n }", "public function getNameList() {\n return $this->_get(2);\n }", "public function getNameList() {\n return $this->_get(2);\n }", "private static function EventList ()\n {\n return array (\n \"a\" => array (),\n \"button\" => array (\n \"onblur\", \"onclick\", \"ondblclick\",\n \"onfocus\", \"onmousedown\", \"onmousemove\",\n \"onmouseout\", \"onmouseover\", \"onmouseup\",\n \"onkeydown\", \"onkeypress\", \"onkeyup\",\n ),\n );\n }", "public static function _getPropertyNames(): array\n {\n return [\n 'traveler',\n 'watcher',\n 'distance',\n ];\n }", "public function getNameList() {\n return $this->_get(3);\n }", "public function getNameList() {\n return $this->_get(3);\n }", "public function getNameList() {\n return $this->_get(3);\n }", "public static function getSubscribedEvents() {\n return [];\n }", "public function getValidEvents()\n\t{\n\t\treturn array();\n\t}", "public function getPendingEvents(): array;", "public function getAllEvents()\n\t{\n\t\t$events = App_Model_Event_Mapper::getInstance()->getAll(true, \"actionId = $this->_actionId\", 'eventNo');\n\n\t\treturn $events;\n\t}", "public function getNames()\n\t{\n\t\t$this->__reset();\n\t\treturn $this->_elementNames;\n\t}", "function get_EventNamesAttending($EventID){\r\n $sql = $this->db->prepare(\"SELECT u.firstname, u.lastname, e.EventID FROM MYEVENTGOING e\r\n LEFT JOIN USER u on e.UserID = u.UserID WHERE e.EventID = :event;\");\r\n $result = $sql->execute(array(\r\n \"event\" => $EventID\r\n ));\r\n\r\n if ($result){\r\n return $sql->fetchAll(PDO::FETCH_ASSOC);\r\n }\r\n else{\r\n return false;\r\n }\r\n }", "public function getNamesFromCollection(string $name): array;", "public function titleArray($names);", "protected function prepareEvent($event)\n {\n $event = $this->ensureEvent($event);\n $name = $event->getName();\n $event->setEmitter($this);\n\n return [$name, $event];\n }", "public function &getTransactionEvents()\n {\n $this->_generateEventLabels();\n return self::$_eventList;\n }", "public function &getTransactionEvents()\n {\n $this->_generateEventLabels();\n return self::$_eventList;\n }", "public function listNames(callable $filter = null): array\n {\n return iterator_to_array($this->scanNames($filter));\n }", "public function getAllEventCallback()\n {\n $response = $this->get(Resources::$Eventcallbackurl);\n if (!$response->success()) {\n $this->throwError('MailjetService:getAllEventCallback() failed', $response);\n }\n return $response->getData();\n }", "private function getEvents()\n {\n foreach ($this->events as &$event) {\n $event['duration'] = round($event['time'][1] - $event['time'][0], 5);\n }\n\n return $this->events;\n }", "public function getEvents()\n {\n $events = [];\n foreach ($this->servers as $server) {\n $serverEvents = $server->getEvents();\n if (empty($serverEvents))\n continue;\n $events = array_merge($events, $serverEvents);\n }\n\n return $events;\n }", "public function toArray()\n {\n $events = [];\n $hydrator = new ReflectionHydrator();\n foreach ($this->events as $key => $event) {\n $events[$key] = $hydrator->extract($event);\n }\n\n return $events;\n }", "public function getEventName()\n {\n return $this->event->name;\n }", "protected function names()\n {\n $names = [];\n\n foreach ($this->data as $key => $value) {\n if (is_int($key)) {\n $names[$value] = str_replace(['-', '_'], ' ', ucfirst(trim($value)));\n } else {\n $names[$key] = $value;\n }\n }\n\n return $names;\n }", "public function getEventList() {\n $response = $this->client->get(\n $this->apiUrl . \"events\");\n return $response->json();\n }" ]
[ "0.785735", "0.7409363", "0.70349187", "0.67470145", "0.66402173", "0.65680104", "0.6564721", "0.6521895", "0.65111434", "0.65111434", "0.6435241", "0.6435241", "0.641931", "0.6362087", "0.6336735", "0.6336451", "0.6336451", "0.63168734", "0.6287343", "0.6225529", "0.6193785", "0.6156043", "0.61557937", "0.61351174", "0.6050438", "0.6037559", "0.6027633", "0.60112274", "0.59973526", "0.5996624", "0.59687567", "0.5953664", "0.59520954", "0.5928074", "0.59233403", "0.58993727", "0.5887111", "0.5882071", "0.58781993", "0.58756274", "0.5866103", "0.58616716", "0.5840644", "0.58399725", "0.58388066", "0.58366287", "0.58343345", "0.5826375", "0.58251023", "0.58218086", "0.5812547", "0.58074546", "0.5806255", "0.5804955", "0.5804105", "0.57987696", "0.5767933", "0.57637113", "0.57427245", "0.5741186", "0.57356817", "0.5712535", "0.5712535", "0.5709754", "0.5705271", "0.5704949", "0.56979173", "0.56945705", "0.56781435", "0.5668977", "0.5668977", "0.5668977", "0.5668977", "0.5668977", "0.5668977", "0.5668977", "0.5668422", "0.56667835", "0.5661135", "0.5661135", "0.5661135", "0.56587183", "0.5651187", "0.5647576", "0.56394136", "0.5636466", "0.5632031", "0.56298983", "0.5627863", "0.5615914", "0.5609615", "0.5609615", "0.5607631", "0.56075", "0.56049156", "0.56034434", "0.5599316", "0.55933243", "0.55919576", "0.55919355" ]
0.82631195
0
Create a new controller instance.
public function __construct() { $this->middleware('auth'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createController()\n {\n $this->createClass('controller');\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this->call('make:controller', array_filter([\n 'name' => \"{$controller}Controller\",\n '--model' => $modelName,\n '--api' => true,\n ]));\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n $model_name = $this->qualifyClass($this->getNameInput());\n $name = Str::contains($model_name, ['\\\\']) ? Str::afterLast($model_name, '\\\\') : $model_name;\n\n $this->call('make:controller', [\n 'name' => \"{$controller}Controller\",\n '--model' => $model_name,\n ]);\n\n $path = base_path() . \"/app/Http/Controllers/{$controller}Controller.php\";\n $this->cleanupDummy($path, $name);\n }", "private function makeInitiatedController()\n\t{\n\t\t$controller = new TestEntityCRUDController();\n\n\t\t$controller->setLoggerWrapper(Logger::create());\n\n\t\treturn $controller;\n\t}", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n\n $modelName = $this->qualifyClass($this->getNameInput());\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n ]));\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"Api/{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n '--api' => true,\n ]));\n }", "protected function createController()\n {\n $name = str_replace(\"Service\",\"\",$this->argument('name'));\n\n $this->call('make:controller', [\n 'name' => \"{$name}Controller\"\n ]);\n }", "protected function createController()\n {\n $params = [\n 'name' => $this->argument('name'),\n ];\n\n if ($this->option('api')) {\n $params['--api'] = true;\n }\n\n $this->call('wizard:controller', $params);\n }", "public function generateController () {\r\n $controllerParam = \\app\\lib\\router::getPath();\r\n $controllerName = \"app\\controller\\\\\" . end($controllerParam);\r\n $this->controller = new $controllerName;\r\n }", "public static function newController($controller)\n\t{\n\t\t$objController = \"App\\\\Controllers\\\\\".$controller;\n\t\treturn new $objController;\n\t}", "public function createController()\n\t{\n\t\tif(class_exists($this->controller))\n\t\t{\n\t\t\t// get the parent class he extends\n\t\t\t$parents = class_parents($this->controller);\n\n\t\t\t// $parents = class_implements($this->controller); used if our Controller was just an interface not a class\n\n\t\t\t// check if the class implements our Controller Class\n\t\t\tif(in_array(\"Controller\", $parents))\n\t\t\t{\n\t\t\t\t// check if the action in the request exists in that class\n\t\t\t\tif(method_exists($this->controller, $this->action))\n\t\t\t\t{\n\t\t\t\t\treturn new $this->controller($this->action, $this->request);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// Action is not exist\n\t\t\t\t\techo 'Method '. $this->action .' doesn\\'t exist in '. $this->controller;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// The controller doesn't extends our Controller Class\n\t\t\t\techo $this->controller.' doesn\\'t extends our Controller Class';\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Controller Doesn't exist\n\t\t\techo $this->controller.' doesn\\'t exist';\n\t\t}\n\t}", "public function createController( ezcMvcRequest $request );", "public function createController() {\n //check our requested controller's class file exists and require it if so\n /*if (file_exists(__DIR__ . \"/../Controllers/\" . $this->controllerName . \".php\")) {\n require(__DIR__ . \"/../Controllers/\" . $this->controllerName . \".php\");\n } else {\n throw new Exception('Route does not exist');\n }*/\n\n try {\n require_once __DIR__ . '/../Controllers/' . $this->controllerName . '.php';\n } catch (Exception $e) {\n return $e;\n }\n \n //does the class exist?\n if (class_exists($this->controllerClass)) {\n $parents = class_parents($this->controllerClass);\n \n //does the class inherit from the BaseController class?\n if (in_array(\"BaseController\",$parents)) { \n //does the requested class contain the requested action as a method?\n if (method_exists($this->controllerClass, $this->endpoint)) {\n return new $this->controllerClass($this->args, $this->endpoint, $this->domain);\n } else {\n throw new Exception('Action does not exist');\n }\n } else {\n throw new Exception('Class does not inherit correctly.');\n }\n } else {\n throw new Exception('Controller does not exist.');\n }\n }", "public static function create()\n\t{\n\t\t//check, if a JobController instance already exists\n\t\tif(JobController::$jobController == null)\n\t\t{\n\t\t\tJobController::$jobController = new JobController();\n\t\t}\n\n\t\treturn JobController::$jobController;\n\t}", "private function controller()\n {\n $location = $this->args[\"location\"] . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR;\n $relative_location = $this->args['application_folder'] . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR;\n\n if (!empty($this->args['subdirectories']))\n {\n $location .= $this->args['subdirectories'] . DIRECTORY_SEPARATOR;\n $relative_location .= $this->args['subdirectories'] . DIRECTORY_SEPARATOR;\n }\n\n if (!is_dir($location))\n {\n mkdir($location, 0755, TRUE);\n }\n\n $relative_location .= $this->args['filename'];\n $filename = $location . $this->args['filename'];\n\n $args = array(\n \"class_name\" => ApplicationHelpers::camelize($this->args['name']),\n \"filename\" => $this->args['filename'],\n \"application_folder\" => $this->args['application_folder'],\n \"parent_class\" => (isset($this->args['parent'])) ? $this->args['parent'] : $this->args['parent_controller'],\n \"extra\" => $this->extra,\n 'relative_location' => $relative_location,\n 'helper_name' => strtolower($this->args['name']) . '_helper',\n );\n\n $template = new TemplateScanner(\"controller\", $args);\n $controller = $template->parse();\n\n $message = \"\\t\";\n if (file_exists($filename))\n {\n $message .= 'Controller already exists : ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'light_blue');\n }\n $message .= $relative_location;\n }\n elseif (file_put_contents($filename, $controller))\n {\n $message .= 'Created controller: ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'green');\n }\n $message .= $relative_location;\n }\n else\n {\n $message .= 'Unable to create controller: ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'red');\n }\n $message .= $relative_location;\n }\n\n // The controller has been generated, output the confirmation message\n fwrite(STDOUT, $message . PHP_EOL);\n\n // Create the helper files.\n $this->helpers();\n\n $this->assets();\n\n // Create the view files.\n $this->views();\n\n return;\n }", "public function createController( $controllerName ) {\r\n\t\t$refController \t\t= $this->instanceOfController( $controllerName );\r\n\t\t$refConstructor \t= $refController->getConstructor();\r\n\t\tif ( ! $refConstructor ) return $refController->newInstance();\r\n\t\t$initParameter \t\t= $this->setParameter( $refConstructor );\r\n\t\treturn $refController->newInstanceArgs( $initParameter ); \r\n\t}", "public function create($controllerName) {\r\n\t\tif (!$controllerName)\r\n\t\t\t$controllerName = $this->defaultController;\r\n\r\n\t\t$controllerName = ucfirst(strtolower($controllerName)).'Controller';\r\n\t\t$controllerFilename = $this->searchDir.'/'.$controllerName.'.php';\r\n\r\n\t\tif (preg_match('/[^a-zA-Z0-9]/', $controllerName))\r\n\t\t\tthrow new Exception('Invalid controller name', 404);\r\n\r\n\t\tif (!file_exists($controllerFilename)) {\r\n\t\t\tthrow new Exception('Controller not found \"'.$controllerName.'\"', 404);\r\n\t\t}\r\n\r\n\t\trequire_once $controllerFilename;\r\n\r\n\t\tif (!class_exists($controllerName) || !is_subclass_of($controllerName, 'Controller'))\r\n\t\t\tthrow new Exception('Unknown controller \"'.$controllerName.'\"', 404);\r\n\r\n\t\t$this->controller = new $controllerName();\r\n\t\treturn $this;\r\n\t}", "private function createController($controllerName)\n {\n $className = ucfirst($controllerName) . 'Controller';\n ${$this->lcf($controllerName) . 'Controller'} = new $className();\n return ${$this->lcf($controllerName) . 'Controller'};\n }", "public function createControllerObject(string $controller)\n {\n $this->checkControllerExists($controller);\n $controller = $this->ctlrStrSrc.$controller;\n $controller = new $controller();\n return $controller;\n }", "public function create_controller($controller, $action){\n\t $creado = false;\n\t\t$controllers_dir = Kumbia::$active_controllers_dir;\n\t\t$file = strtolower($controller).\"_controller.php\";\n\t\tif(file_exists(\"$controllers_dir/$file\")){\n\t\t\tFlash::error(\"Error: El controlador '$controller' ya existe\\n\");\n\t\t} else {\n\t\t\tif($this->post(\"kind\")==\"applicationcontroller\"){\n\t\t\t\t$filec = \"<?php\\n\t\t\t\\n\tclass \".ucfirst($controller).\"Controller extends ApplicationController {\\n\\n\\t\\tfunction $action(){\\n\\n\\t\\t}\\n\\n\t}\\n\t\\n?>\\n\";\n\t\t\t\tif(@file_put_contents(\"$controllers_dir/$file\", $filec)){\n\t\t\t\t $creado = true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$filec = \"<?php\\n\t\t\t\\n\tclass \".ucfirst($controller).\"Controller extends StandardForm {\\n\\n\\t\\tpublic \\$scaffold = true;\\n\\n\\t\\tpublic function __construct(){\\n\\n\\t\\t}\\n\\n\t}\\n\t\\n?>\\n\";\n\t\t\t\tfile_put_contents(\"$controllers_dir/$file\", $filec);\n\t\t\t\tif($this->create_model($controller, $controller, \"index\")){\n\t\t\t\t $creado = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($creado){\n\t\t\t Flash::success(\"Se cre&oacute; correctamente el controlador '$controller' en '$controllers_dir/$file'\");\n\t\t\t}else {\n\t\t\t Flash::error(\"Error: No se pudo escribir en el directorio, verifique los permisos sobre el directorio\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t$this->route_to(\"controller: $controller\", \"action: $action\");\n\t}", "private function instanceController( string $controller_class ): Controller {\n\t\treturn new $controller_class( $this->request, $this->site );\n\t}", "public function makeController($controller_name)\n\t{\n\t\t$model\t= $this->_makeModel($controller_name, $this->_storage_type);\n\t\t$view\t= $this->_makeView($controller_name);\n\t\t\n\t\treturn new $controller_name($model, $view);\n\t}", "public function create()\n {\n $output = new \\Symfony\\Component\\Console\\Output\\ConsoleOutput();\n $output->writeln(\"<info>Controller Create</info>\");\n }", "protected function createDefaultController() {\n Octopus::requireOnce($this->app->getOption('OCTOPUS_DIR') . 'controllers/Default.php');\n return new DefaultController();\n }", "private function createControllerDefinition()\n {\n $id = $this->getServiceId('controller');\n if (!$this->container->has($id)) {\n $definition = new Definition($this->getServiceClass('controller'));\n $definition\n ->addMethodCall('setConfiguration', [new Reference($this->getServiceId('configuration'))])\n ->addMethodCall('setContainer', [new Reference('service_container')])\n ;\n $this->container->setDefinition($id, $definition);\n }\n }", "public function createController( $ctrlName, $action ) {\n $args['action'] = $action;\n $args['path'] = $this->path . '/modules/' . $ctrlName;\n $ctrlFile = $args['path'] . '/Controller.php';\n // $args['moduleName'] = $ctrlName;\n if ( file_exists( $ctrlFile ) ) {\n $ctrlPath = str_replace( CITRUS_PATH, '', $args['path'] );\n $ctrlPath = str_replace( '/', '\\\\', $ctrlPath ) . '\\Controller';\n try { \n $r = new \\ReflectionClass( $ctrlPath ); \n $inst = $r->newInstanceArgs( $args ? $args : array() );\n\n $this->controller = Citrus::apply( $inst, Array( \n 'name' => $ctrlName, \n ) );\n if ( $this->controller->is_protected == null ) {\n $this->controller->is_protected = $this->is_protected;\n }\n return $this->controller;\n } catch ( \\Exception $e ) {\n prr($e, true);\n }\n } else {\n return false;\n }\n }", "protected function createTestController() {\n\t\t$controller = new CController('test');\n\n\t\t$action = $this->getMock('CAction', array('run'), array($controller, 'test'));\n\t\t$controller->action = $action;\n\n\t\tYii::app()->controller = $controller;\n\t\treturn $controller;\n\t}", "public static function newController($controllerName, $params = [], $request = null) {\n\n\t\t$controller = \"App\\\\Controllers\\\\\".$controllerName;\n\n\t\treturn new $controller($params, $request);\n\n\t}", "private function loadController() : void\n\t{\n\t\t$this->controller = new $this->controllerName($this->request);\n\t}", "public function createController($pi, array $params)\n {\n $class = $pi . '_Controller_' . ucfirst($params['page']);\n\n return new $class();\n }", "public function createController() {\n //check our requested controller's class file exists and require it if so\n \n if (file_exists(\"modules/\" . $this->controllerName . \"/controllers/\" . $this->controllerName .\".php\" ) && $this->controllerName != 'error') {\n require(\"modules/\" . $this->controllerName . \"/controllers/\" . $this->controllerName .\".php\");\n \n } else {\n \n $this->urlValues['controller'] = \"error\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badurl\", $this->urlValues);\n }\n\n //does the class exist?\n if (class_exists($this->controllerClass)) {\n $parents = class_parents($this->controllerClass);\n //does the class inherit from the BaseController class?\n if (in_array(\"BaseController\", $parents)) {\n //does the requested class contain the requested action as a method?\n if (method_exists($this->controllerClass, $this->action)) { \n return new $this->controllerClass($this->action, $this->urlValues);\n \n } else {\n //bad action/method error\n $this->urlValues['controller'] = \"error\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badview\", $this->urlValues);\n }\n } else {\n $this->urlValues['controller'] = \"error\";\n //bad controller error\n echo \"hjh\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"b\", $this->urlValues);\n }\n } else {\n \n //bad controller error\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badurl\", $this->urlValues);\n }\n }", "protected static function createController($name) {\n $result = null;\n\n $name = self::$_namespace . ($name ? $name : self::$defaultController) . 'Controller';\n if(class_exists($name)) {\n $controllerClass = new \\ReflectionClass($name);\n if($controllerClass->hasMethod('run')) {\n $result = new $name();\n }\n }\n\n return $result;\n }", "public function createController(): void\n {\n $minimum_buffer_min = 3;\n $token_ok = $this->routerService->ds_token_ok($minimum_buffer_min);\n if ($token_ok) {\n # 2. Call the worker method\n # More data validation would be a good idea here\n # Strip anything other than characters listed\n $results = $this->worker($this->args);\n\n if ($results) {\n # Redirect the user to the NDSE view\n # Don't use an iFrame!\n # State can be stored/recovered using the framework's session or a\n # query parameter on the returnUrl\n header('Location: ' . $results[\"redirect_url\"]);\n exit;\n }\n } else {\n $this->clientService->needToReAuth($this->eg);\n }\n }", "protected function createController($controllerClass)\n {\n $cls = new ReflectionClass($controllerClass);\n return $cls->newInstance($this->environment);\n }", "protected function createController($name)\n {\n $controllerClass = 'controller\\\\'.ucfirst($name).'Controller';\n\n if(!class_exists($controllerClass)) {\n throw new \\Exception('Controller class '.$controllerClass.' not exists!');\n }\n\n return new $controllerClass();\n }", "protected function initController() {\n\t\tif (!isset($_GET['controller'])) {\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$controllerClass = $_GET['controller'].\"Controller\";\n\t\tif (!class_exists($controllerClass)) {\n\t\t\t//Console::error(@$_GET['controller'].\" doesn't exist\");\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$this->controller = new $controllerClass();\n\t}", "public function makeTestController(TestController $controller)\r\n\t{\r\n\t}", "static function factory($GET=array(), $POST=array(), $FILES=array()) {\n $type = (isset($GET['type'])) ? $GET['type'] : '';\n $objectController = $type.'_Controller';\n $addLocation = $type.'/'.$objectController.'.php';\n foreach ($_ENV['locations'] as $location) {\n if (is_file($location.$addLocation)) {\n return new $objectController($GET, $POST, $FILES);\n } \n }\n throw new Exception('The controller \"'.$type.'\" does not exist.');\n }", "public function create()\n {\n $general = new ModeloController();\n\n return $general->create();\n }", "public function makeController($controllerNamespace, $controllerName, Log $log, $session, Request $request, Response $response)\r\n\t{\r\n\t\t$fullControllerName = '\\\\Application\\\\Controller\\\\' . (!empty($controllerNamespace) ? $controllerNamespace . '\\\\' : '') . $controllerName;\r\n\t\t$controller = new $fullControllerName();\r\n\t\t$controller->setConfig($this->config);\r\n\t\t$controller->setRequest($request);\r\n\t\t$controller->setResponse($response);\r\n\t\t$controller->setLog($log);\r\n\t\tif (isset($session))\r\n\t\t{\r\n\t\t\t$controller->setSession($session);\r\n\t\t}\r\n\r\n\t\t// Execute additional factory method, if available (exists in \\Application\\Controller\\Factory)\r\n\t\t$method = 'make' . $controllerName;\r\n\t\tif (is_callable(array($this, $method)))\r\n\t\t{\r\n\t\t\t$this->$method($controller);\r\n\t\t}\r\n\r\n\t\t// If the controller has an init() method, call it now\r\n\t\tif (is_callable(array($controller, 'init')))\r\n\t\t{\r\n\t\t\t$controller->init();\r\n\t\t}\r\n\r\n\t\treturn $controller;\r\n\t}", "public static function create()\n\t{\n\t\t//check, if an AccessGroupController instance already exists\n\t\tif(AccessGroupController::$accessGroupController == null)\n\t\t{\n\t\t\tAccessGroupController::$accessGroupController = new AccessGroupController();\n\t\t}\n\n\t\treturn AccessGroupController::$accessGroupController;\n\t}", "public static function buildController()\n\t{\n\t\t$file = CONTROLLER_PATH . 'indexController.class.php';\n\n\t\tif(!file_exists($file))\n\t\t{\n\t\t\tif(\\RCPHP\\Util\\Check::isClient())\n\t\t\t{\n\t\t\t\t$controller = '<?php\nclass indexController extends \\RCPHP\\Controller {\n public function index(){\n echo \"Welcome RcPHP!\\n\";\n }\n}';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$controller = '<?php\nclass indexController extends \\RCPHP\\Controller {\n public function index(){\n echo \\'<style type=\"text/css\">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} body{ background: #fff; font-family: \"微软雅黑\"; color: #333;} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.8em; font-size: 36px }</style><div style=\"padding: 24px 48px;\"> <h1>:)</h1><p>Welcome <b>RcPHP</b>!</p></div>\\';\n }\n}';\n\t\t\t}\n\t\t\tfile_put_contents($file, $controller);\n\t\t}\n\t}", "public function getController( );", "public static function getInstance() : Controller {\n if ( null === self::$instance ) {\n self::$instance = new self();\n self::$instance->options = new Options(\n self::OPTIONS_KEY\n );\n }\n\n return self::$instance;\n }", "static function appCreateController($entityName, $prefijo = '') {\n\n $controller = ControllerBuilder::getController($entityName, $prefijo);\n $entityFile = ucfirst(str_replace($prefijo, \"\", $entityName));\n $fileController = \"../../modules/{$entityFile}/{$entityFile}Controller.class.php\";\n\n $result = array();\n $ok = self::createArchive($fileController, $controller);\n ($ok) ? array_push($result, \"Ok, {$fileController} created\") : array_push($result, \"ERROR creating {$fileController}\");\n\n return $result;\n }", "public static function newInstance($path = \\simpleChat\\Utility\\ROOT_PATH)\n {\n $request = new Request();\n \n \n if ($request->isAjax())\n {\n return new AjaxController();\n }\n else if ($request->jsCode())\n {\n return new JsController();\n }\n else\n {\n return new StandardController($path);\n }\n }", "private function createInstance()\n {\n $objectManager = new \\Magento\\Framework\\TestFramework\\Unit\\Helper\\ObjectManager($this);\n $this->controller = $objectManager->getObject(\n \\Magento\\NegotiableQuote\\Controller\\Adminhtml\\Quote\\RemoveFailedSku::class,\n [\n 'context' => $this->context,\n 'logger' => $this->logger,\n 'messageManager' => $this->messageManager,\n 'cart' => $this->cart,\n 'resultRawFactory' => $this->resultRawFactory\n ]\n );\n }", "function loadController(){\n $name = ucfirst($this->request->controller).'Controller' ;\n $file = ROOT.DS.'Controller'.DS.$name.'.php' ;\n /*if(!file_exists($file)){\n $this->error(\"Le controleur \".$this->request->controller.\" n'existe pas\") ;\n }*/\n require_once $file;\n $controller = new $name($this->request);\n return $controller ;\n }", "public function __construct(){\r\n $app = Application::getInstance();\r\n $this->_controller = $app->getController();\r\n }", "public static function & instance()\n {\n if (self::$instance === null) {\n Benchmark::start(SYSTEM_BENCHMARK.'_controller_setup');\n\n // Include the Controller file\n require Router::$controller_path;\n\n try {\n // Start validation of the controller\n $class = new ReflectionClass(ucfirst(Router::$controller).'_Controller');\n } catch (ReflectionException $e) {\n // Controller does not exist\n Event::run('system.404');\n }\n\n if ($class->isAbstract() or (IN_PRODUCTION and $class->getConstant('ALLOW_PRODUCTION') == false)) {\n // Controller is not allowed to run in production\n Event::run('system.404');\n }\n\n // Run system.pre_controller\n Event::run('system.pre_controller');\n\n // Create a new controller instance\n $controller = $class->newInstance();\n\n // Controller constructor has been executed\n Event::run('system.post_controller_constructor');\n\n try {\n // Load the controller method\n $method = $class->getMethod(Router::$method);\n\n // Method exists\n if (Router::$method[0] === '_') {\n // Do not allow access to hidden methods\n Event::run('system.404');\n }\n\n if ($method->isProtected() or $method->isPrivate()) {\n // Do not attempt to invoke protected methods\n throw new ReflectionException('protected controller method');\n }\n\n // Default arguments\n $arguments = Router::$arguments;\n } catch (ReflectionException $e) {\n // Use __call instead\n $method = $class->getMethod('__call');\n\n // Use arguments in __call format\n $arguments = array(Router::$method, Router::$arguments);\n }\n\n // Stop the controller setup benchmark\n Benchmark::stop(SYSTEM_BENCHMARK.'_controller_setup');\n\n // Start the controller execution benchmark\n Benchmark::start(SYSTEM_BENCHMARK.'_controller_execution');\n\n // Execute the controller method\n $method->invokeArgs($controller, $arguments);\n\n // Controller method has been executed\n Event::run('system.post_controller');\n\n // Stop the controller execution benchmark\n Benchmark::stop(SYSTEM_BENCHMARK.'_controller_execution');\n }\n\n return self::$instance;\n }", "protected function instantiateController($class)\n {\n $controller = new $class();\n\n if ($controller instanceof Controller) {\n $controller->setContainer($this->container);\n }\n\n return $controller;\n }", "public function __construct (){\n $this->AdminController = new AdminController();\n $this->ArticleController = new ArticleController();\n $this->AuditoriaController = new AuditoriaController();\n $this->CommentController = new CommentController();\n $this->CourseController = new CourseController();\n $this->InscriptionsController = new InscriptionsController();\n $this->ModuleController = new ModuleController();\n $this->PlanController = new PlanController();\n $this->ProfileController = new ProfileController();\n $this->SpecialtyController = new SpecialtyController();\n $this->SubscriptionController = new SubscriptionController();\n $this->TeacherController = new TeacherController();\n $this->UserController = new UserController();\n $this->WebinarController = new WebinarController();\n }", "protected function makeController($prefix)\n {\n new MakeController($this, $this->files, $prefix);\n }", "public function createController($route)\n {\n $controller = parent::createController('gymv/' . $route);\n return $controller === false\n ? parent::createController($route)\n : $controller;\n }", "public static function createFrontController()\n {\n return self::createInjectorWithBindings(self::extractArgs(func_get_args()))\n ->getInstance('net::stubbles::websites::stubFrontController');\n }", "public static function controller($name)\n {\n $name = ucfirst(strtolower($name));\n \n $directory = 'controller';\n $filename = $name;\n $tracker = 'controller';\n $init = (boolean) $init;\n $namespace = 'controller';\n $class_name = $name;\n \n return self::_load($directory, $filename, $tracker, $init, $namespace, $class_name);\n }", "protected static function instantiateMockController()\n {\n /** @var Event $oEvent */\n $oEvent = Factory::service('Event');\n\n if (!$oEvent->hasBeenTriggered(Events::SYSTEM_STARTING)) {\n\n require_once BASEPATH . 'core/Controller.php';\n\n load_class('Output', 'core');\n load_class('Security', 'core');\n load_class('Input', 'core');\n load_class('Lang', 'core');\n\n new NailsMockController();\n }\n }", "private static function controller()\n {\n $files = ['Controller'];\n $folder = static::$root.'MVC'.'/';\n\n self::call($files, $folder);\n }", "public function createController()\n\t{\n\t\t$originalFile = app_path('Http/Controllers/Reports/SampleReport.php');\n\t\t$newFile = dirname($originalFile) . DIRECTORY_SEPARATOR . $this->class . $this->sufix . '.php';\n\n\t\t// Read original file\n\t\tif( ! $content = file_get_contents($originalFile))\n\t\t\treturn false;\n\n\t\t// Replace class name\n\t\t$content = str_replace('SampleReport', $this->class . $this->sufix, $content);\n\n\t\t// Write new file\n\t\treturn (bool) file_put_contents($newFile, $content);\n\t}", "public function runController() {\n // Check for a router\n if (is_null($this->getRouter())) {\n \t // Set the method to load\n \t $sController = ucwords(\"{$this->getController()}Controller\");\n } else {\n\n // Set the controller with the router\n $sController = ucwords(\"{$this->getController()}\".ucfirst($this->getRouter()).\"Controller\");\n }\n \t// Check for class\n \tif (class_exists($sController, true)) {\n \t\t// Set a new instance of Page\n \t\t$this->setPage(new Page());\n \t\t// The class exists, load it\n \t\t$oController = new $sController();\n\t\t\t\t// Now check for the proper method \n\t\t\t\t// inside of the controller class\n\t\t\t\tif (method_exists($oController, $this->loadConfigVar('systemSettings', 'controllerLoadMethod'))) {\n\t\t\t\t\t// We have a valid controller, \n\t\t\t\t\t// execute the initializer\n\t\t\t\t\t$oController->init($this);\n\t\t\t\t\t// Set the variable scope\n\t \t\t$this->setViewScope($oController);\n\t \t\t// Render the layout\n\t \t\t$this->renderLayout();\n\t\t\t\t} else {\n\t\t\t\t\t// The initializer does not exist, \n\t\t\t\t\t// which means an invalid controller, \n\t\t\t\t\t// so now we let the caller know\n\t\t\t\t\t$this->setError($this->loadConfigVar('errorMessages', 'invalidController'));\n\t\t\t\t\t// Run the error\n\t\t\t\t\t// $this->runError();\n\t\t\t\t}\n \t// The class does not exist\n \t} else {\n\t\t\t\t// Set the system error\n\t \t\t$this->setError(\n\t\t\t\t\tstr_replace(\n\t\t\t\t\t\t':controllerName', \n\t\t\t\t\t\t$sController, \n\t\t\t\t\t\t$this->loadConfigVar(\n\t\t\t\t\t\t\t'errorMessages', \n\t\t\t\t\t\t\t'controllerDoesNotExist'\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t);\n \t\t// Run the error\n\t\t\t\t// $this->runError();\n \t}\n \t// Return instance\n \treturn $this;\n }", "public function controller()\n\t{\n\t\n\t}", "protected function buildController()\n {\n $columns = collect($this->columns)->pluck('column')->implode('|');\n\n $permissions = [\n 'create:'.$this->module->createPermission->name,\n 'edit:'.$this->module->editPermission->name,\n 'delete:'.$this->module->deletePermission->name,\n ];\n\n $this->controller = [\n 'name' => $this->class,\n '--model' => $this->class,\n '--request' => $this->class.'Request',\n '--permissions' => implode('|', $permissions),\n '--view-folder' => snake_case($this->module->name),\n '--fields' => $columns,\n '--module' => $this->module->id,\n ];\n }", "function getController(){\n\treturn getFactory()->getBean( 'Controller' );\n}", "protected function getController()\n {\n $uri = WingedLib::clearPath(static::$parentUri);\n if (!$uri) {\n $uri = './';\n $explodedUri = ['index', 'index'];\n } else {\n $explodedUri = explode('/', $uri);\n if (count($explodedUri) == 1) {\n $uri = './' . $explodedUri[0] . '/';\n } else {\n $uri = './' . $explodedUri[0] . '/' . $explodedUri[1] . '/';\n }\n }\n\n $indexUri = WingedLib::clearPath(\\WingedConfig::$config->INDEX_ALIAS_URI);\n if ($indexUri) {\n $indexUri = explode('/', $indexUri);\n }\n\n if ($indexUri) {\n if ($explodedUri[0] === 'index' && isset($indexUri[0])) {\n static::$controllerName = Formater::camelCaseClass($indexUri[0]) . 'Controller';\n $uri = './' . $indexUri[0] . '/';\n }\n if (isset($explodedUri[1]) && isset($indexUri[1])) {\n if ($explodedUri[1] === 'index') {\n static::$controllerAction = 'action' . Formater::camelCaseMethod($indexUri[1]);\n $uri .= $indexUri[1] . '/';\n }\n } else {\n $uri .= 'index/';\n }\n }\n\n $controllerDirectory = new Directory(static::$parent . 'controllers/', false);\n if ($controllerDirectory->exists()) {\n $controllerFile = new File($controllerDirectory->folder . static::$controllerName . '.php', false);\n if ($controllerFile->exists()) {\n include_once $controllerFile->file_path;\n if (class_exists(static::$controllerName)) {\n $controller = new static::$controllerName();\n if (method_exists($controller, static::$controllerAction)) {\n try {\n $reflectionMethod = new \\ReflectionMethod(static::$controllerName, static::$controllerAction);\n $pararms = [];\n foreach ($reflectionMethod->getParameters() as $parameter) {\n $pararms[$parameter->getName()] = $parameter->isOptional();\n }\n } catch (\\Exception $exception) {\n $pararms = [];\n }\n return [\n 'uri' => $uri,\n 'params' => $pararms,\n ];\n }\n }\n }\n }\n return false;\n }", "public function __construct()\n {\n $this->controller = new DHTController();\n }", "public function createController($controllers) {\n\t\tforeach($controllers as $module=>$controllers) {\n\t\t\tforeach($controllers as $key=>$controller) {\n\t\t\t\tif(!file_exists(APPLICATION_PATH.\"/modules/$module/controllers/\".ucfirst($controller).\"Controller.php\")) {\n\t\t\t\t\tMy_Class_Maerdo_Console::display(\"3\",\"Create '\".ucfirst($controller).\"' controller in $module\");\t\t\t\t\n\t\t\t\t\texec(\"zf create controller $controller index-action-included=0 $module\");\t\t\t\t\t\n\t\t\t\t}\telse {\n\t\t\t\t\tMy_Class_Maerdo_Console::display(\"3\",ucfirst($controller).\"' controller in $module already exists\");\t\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}", "protected function instantiateController($class)\n {\n return new $class($this->routesMaker);\n }", "private function createController($table){\n\n // Filtering file name\n $fileName = $this::cleanToName($table[\"name\"]) . 'Controller.php';\n\n // Prepare the Class scheme inside the controller\n $contents = '<?php '.$fileName.' ?>';\n\n\n // Return a boolean to process completed\n return Storage::disk('controllers')->put($this->appNamePath.'/'.$fileName, $contents);\n\n }", "public function GetController()\n\t{\n\t\t$params = $this->QueryVarArrayToParameterArray($_GET);\n\t\tif (!empty($_POST)) {\n\t\t\t$params = array_merge($params, $this->QueryVarArrayToParameterArray($_POST));\n\t\t}\n\n\t\tif (!empty($_GET['q'])) {\n\t\t\t$restparams = GitPHP_Router::ReadCleanUrl($_SERVER['REQUEST_URI']);\n\t\t\tif (count($restparams) > 0)\n\t\t\t\t$params = array_merge($params, $restparams);\n\t\t}\n\n\t\t$controller = null;\n\n\t\t$action = null;\n\t\tif (!empty($params['action']))\n\t\t\t$action = $params['action'];\n\n\t\tswitch ($action) {\n\n\n\t\t\tcase 'search':\n\t\t\t\t$controller = new GitPHP_Controller_Search();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'commitdiff':\n\t\t\tcase 'commitdiff_plain':\n\t\t\t\t$controller = new GitPHP_Controller_Commitdiff();\n\t\t\t\tif ($action === 'commitdiff_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blobdiff':\n\t\t\tcase 'blobdiff_plain':\n\t\t\t\t$controller = new GitPHP_Controller_Blobdiff();\n\t\t\t\tif ($action === 'blobdiff_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'history':\n\t\t\t\t$controller = new GitPHP_Controller_History();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'shortlog':\n\t\t\tcase 'log':\n\t\t\t\t$controller = new GitPHP_Controller_Log();\n\t\t\t\tif ($action === 'shortlog')\n\t\t\t\t\t$controller->SetParam('short', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'snapshot':\n\t\t\t\t$controller = new GitPHP_Controller_Snapshot();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'tree':\n\t\t\tcase 'trees':\n\t\t\t\t$controller = new GitPHP_Controller_Tree();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'tags':\n\t\t\t\tif (empty($params['tag'])) {\n\t\t\t\t\t$controller = new GitPHP_Controller_Tags();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tcase 'tag':\n\t\t\t\t$controller = new GitPHP_Controller_Tag();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'heads':\n\t\t\t\t$controller = new GitPHP_Controller_Heads();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blame':\n\t\t\t\t$controller = new GitPHP_Controller_Blame();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blob':\n\t\t\tcase 'blobs':\n\t\t\tcase 'blob_plain':\t\n\t\t\t\t$controller = new GitPHP_Controller_Blob();\n\t\t\t\tif ($action === 'blob_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'atom':\n\t\t\tcase 'rss':\n\t\t\t\t$controller = new GitPHP_Controller_Feed();\n\t\t\t\tif ($action == 'rss')\n\t\t\t\t\t$controller->SetParam('format', GitPHP_Controller_Feed::RssFormat);\n\t\t\t\telse if ($action == 'atom')\n\t\t\t\t\t$controller->SetParam('format', GitPHP_Controller_Feed::AtomFormat);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'commit':\n\t\t\tcase 'commits':\n\t\t\t\t$controller = new GitPHP_Controller_Commit();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'summary':\n\t\t\t\t$controller = new GitPHP_Controller_Project();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'project_index':\n\t\t\tcase 'projectindex':\n\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t$controller->SetParam('txt', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'opml':\n\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t$controller->SetParam('opml', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'login':\n\t\t\t\t$controller = new GitPHP_Controller_Login();\n\t\t\t\tif (!empty($_POST['username']))\n\t\t\t\t\t$controller->SetParam('username', $_POST['username']);\n\t\t\t\tif (!empty($_POST['password']))\n\t\t\t\t\t$controller->SetParam('password', $_POST['password']);\n\t\t\t\tbreak;\n\n\t\t\tcase 'logout':\n\t\t\t\t$controller = new GitPHP_Controller_Logout();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'graph':\n\t\t\tcase 'graphs':\n\t\t\t\t//$controller = new GitPHP_Controller_Graph();\n\t\t\t\t//break;\n\t\t\tcase 'graphdata':\n\t\t\t\t//$controller = new GitPHP_Controller_GraphData();\n\t\t\t\t//break;\n\t\t\tdefault:\n\t\t\t\tif (!empty($params['project'])) {\n\t\t\t\t\t$controller = new GitPHP_Controller_Project();\n\t\t\t\t} else {\n\t\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t}\n\t\t}\n\n\t\tforeach ($params as $paramname => $paramval) {\n\t\t\tif ($paramname !== 'action')\n\t\t\t\t$controller->SetParam($paramname, $paramval);\n\t\t}\n\n\t\t$controller->SetRouter($this);\n\n\t\treturn $controller;\n\t}", "public function testCreateTheControllerClass()\n {\n $controller = new Game21Controller();\n $this->assertInstanceOf(\"\\App\\Http\\Controllers\\Game21Controller\", $controller);\n }", "public static function createController( MShop_Context_Item_Interface $context, $name = null );", "public function __construct()\n {\n\n $url = $this->splitURL();\n // echo $url[0];\n\n // check class file exists\n if (file_exists(\"../app/controllers/\" . strtolower($url[0]) . \".php\")) {\n $this->controller = strtolower($url[0]);\n unset($url[0]);\n }\n\n // echo $this->controller;\n\n require \"../app/controllers/\" . $this->controller . \".php\";\n\n // create Instance(object)\n $this->controller = new $this->controller(); // $this->controller is an object from now on\n if (isset($url[1])) {\n if (method_exists($this->controller, $url[1])) {\n $this->method = $url[1];\n unset($url[1]);\n }\n }\n\n // run the class and method\n $this->params = array_values($url); // array_values 값들인 인자 0 부터 다시 배치\n call_user_func_array([$this->controller, $this->method], $this->params);\n }", "public function getController();", "public function getController();", "public function getController();", "public function createController($pageType, $template)\n {\n $controller = null;\n\n // Use factories first\n if (isset($this->controllerFactories[$pageType])) {\n $callable = $this->controllerFactories[$pageType];\n $controller = $callable($this, 'templates/'.$template);\n\n if ($controller) {\n return $controller;\n }\n }\n\n // See if a default controller exists in the theme namespace\n $class = null;\n if ($pageType == 'posts') {\n $class = $this->namespace.'\\\\Controllers\\\\PostsController';\n } elseif ($pageType == 'post') {\n $class = $this->namespace.'\\\\Controllers\\\\PostController';\n } elseif ($pageType == 'page') {\n $class = $this->namespace.'\\\\Controllers\\\\PageController';\n } elseif ($pageType == 'term') {\n $class = $this->namespace.'\\\\Controllers\\\\TermController';\n }\n\n if (class_exists($class)) {\n $controller = new $class($this, 'templates/'.$template);\n\n return $controller;\n }\n\n // Create a default controller from the stem namespace\n if ($pageType == 'posts') {\n $controller = new PostsController($this, 'templates/'.$template);\n } elseif ($pageType == 'post') {\n $controller = new PostController($this, 'templates/'.$template);\n } elseif ($pageType == 'page') {\n $controller = new PageController($this, 'templates/'.$template);\n } elseif ($pageType == 'search') {\n $controller = new SearchController($this, 'templates/'.$template);\n } elseif ($pageType == 'term') {\n $controller = new TermController($this, 'templates/'.$template);\n }\n\n return $controller;\n }", "private function loadController($controller)\r\n {\r\n $className = $controller.'Controller';\r\n \r\n $class = new $className($this);\r\n \r\n $class->init();\r\n \r\n return $class;\r\n }", "public static function newInstance ($class)\n {\n try\n {\n // the class exists\n $object = new $class();\n\n if (!($object instanceof sfController))\n {\n // the class name is of the wrong type\n $error = 'Class \"%s\" is not of the type sfController';\n $error = sprintf($error, $class);\n\n throw new sfFactoryException($error);\n }\n\n return $object;\n }\n catch (sfException $e)\n {\n $e->printStackTrace();\n }\n }", "public function create()\n {\n //TODO frontEndDeveloper \n //load admin.classes.create view\n\n\n return view('admin.classes.create');\n }", "private function generateControllerClass()\n {\n $dir = $this->bundle->getPath();\n\n $parts = explode('\\\\', $this->entity);\n $entityClass = array_pop($parts);\n $entityNamespace = implode('\\\\', $parts);\n\n $target = sprintf(\n '%s/Controller/%s/%sController.php',\n $dir,\n str_replace('\\\\', '/', $entityNamespace),\n $entityClass\n );\n\n if (file_exists($target)) {\n throw new \\RuntimeException('Unable to generate the controller as it already exists.');\n }\n\n $this->renderFile($this->skeletonDir, 'controller.php', $target, array(\n 'actions' => $this->actions,\n 'route_prefix' => $this->routePrefix,\n 'route_name_prefix' => $this->routeNamePrefix,\n 'dir' => $this->skeletonDir,\n 'bundle' => $this->bundle->getName(),\n 'entity' => $this->entity,\n 'entity_class' => $entityClass,\n 'namespace' => $this->bundle->getNamespace(),\n 'entity_namespace' => $entityNamespace,\n 'format' => $this->format,\n ));\n }", "static public function Instance()\t\t// Static so we use classname itself to create object i.e. Controller::Instance()\r\n {\r\n // Only one object of this class is required\r\n // so we only create if it hasn't already\r\n // been created.\r\n if(!isset(self::$_instance))\r\n {\r\n self::$_instance = new self();\t// Make new instance of the Controler class\r\n self::$_instance->_commandResolver = new CommandResolver();\r\n\r\n ApplicationController::LoadViewMap();\r\n }\r\n return self::$_instance;\r\n }", "private function create_mock_controller() {\n eval('class TestController extends cyclone\\request\\SkeletonController {\n function before() {\n DispatcherTest::$beforeCalled = TRUE;\n DispatcherTest::$route = $this->_request->route;\n }\n\n function after() {\n DispatcherTest::$afterCalled = TRUE;\n }\n\n function action_act() {\n DispatcherTest::$actionCalled = TRUE;\n }\n}');\n }", "public function AController() {\r\n\t}", "protected function initializeController() {}", "public function dispatch()\n { \n $controller = $this->formatController();\n $controller = new $controller($this);\n if (!$controller instanceof ControllerAbstract) {\n throw new Exception(\n 'Class ' . get_class($controller) . ' is not a valid controller instance. Controller classes must '\n . 'derive from \\Europa\\ControllerAbstract.'\n );\n }\n $controller->action();\n return $controller;\n }", "public function controller()\n {\n $method = $_SERVER['REQUEST_METHOD'];\n if ($method == 'GET') {\n $this->getController();\n };\n if ($method == 'POST') {\n check_csrf();\n $this->createController();\n };\n }", "private function addController($controller)\n {\n $object = new $controller($this->app);\n $this->controllers[$controller] = $object;\n }", "function Controller($ControllerName = Web\\Application\\DefaultController) {\n return Application()->Controller($ControllerName);\n }", "public function getController($controllerName) {\r\n\t\tif(!isset(self::$instances[$controllerName])) {\r\n\t\t $package = $this->getPackage(Nomenclature::getVendorAndPackage($controllerName));\r\n\t\t if(!$package) {\r\n\t\t $controller = new $controllerName();\r\n\t\t $controller->setContext($this->getContext());\r\n\t\t return $controller;\r\n\t\t //return false;\r\n\t\t }\r\n\r\n\t\t if(!$package || !$package->controllerExists($controllerName)) {\r\n\t\t $controller = new $controllerName();\r\n\t\t $controller->setContext($this->getContext());\r\n\t\t $package->addController($controller);\r\n\t\t } else {\r\n\t\t $controller = $package->getController($controllerName);\r\n\t\t }\r\n\t\t} else {\r\n\t\t $controller = self::$instances[$controllerName];\r\n\t\t}\r\n\t\treturn $controller;\r\n\t}", "public function testInstantiateSessionController()\n {\n $controller = new SessionController();\n\n $this->assertInstanceOf(\"App\\Http\\Controllers\\SessionController\", $controller);\n }", "private static function loadController($str) {\n\t\t$str = self::formatAsController($str);\n\t\t$app_controller = file_exists(APP_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t$lib_controller = file_exists(LIB_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\n\t\tif ( $app_controller || $lib_controller ) {\n\t\t\tif ($app_controller) {\n\t\t\t\trequire_once(APP_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\t}\n\t\t\telse {\n\t\t\t\trequire_once(LIB_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\t}\n\t\n\t\t\t$controller = new $str();\n\t\t\t\n\t\t\tif (!$controller instanceof Controller) {\n\t\t\t\tthrow new IsNotControllerException();\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn $controller;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthrow new ControllerNotExistsException($str);\n\t\t}\n\t}", "public function __construct()\n {\n // and $url[1] is a controller method\n if ($_GET['url'] == NULL) {\n $url = explode('/', env('defaultRoute'));\n } else {\n $url = explode('/', rtrim($_GET['url'],'/'));\n }\n\n $file = 'controllers/' . $url[0] . '.php';\n if (file_exists($file)) {\n require $file;\n $controller = new $url[0];\n\n if (isset($url[1])) {\n $controller->{$url[1]}();\n }\n } else {\n echo \"404 not found\";\n }\n }", "protected function _controllers()\n {\n $this['watchController'] = $this->factory(static function ($c) {\n return new Controller\\WatchController($c['app'], $c['searcher']);\n });\n\n $this['runController'] = $this->factory(static function ($c) {\n return new Controller\\RunController($c['app'], $c['searcher']);\n });\n\n $this['customController'] = $this->factory(static function ($c) {\n return new Controller\\CustomController($c['app'], $c['searcher']);\n });\n\n $this['waterfallController'] = $this->factory(static function ($c) {\n return new Controller\\WaterfallController($c['app'], $c['searcher']);\n });\n\n $this['importController'] = $this->factory(static function ($c) {\n return new Controller\\ImportController($c['app'], $c['saver'], $c['config']['upload.token']);\n });\n\n $this['metricsController'] = $this->factory(static function ($c) {\n return new Controller\\MetricsController($c['app'], $c['searcher']);\n });\n }", "public function __construct() {\r\n $this->controllerLogin = new ControllerLogin();\r\n $this->controllerGame = new ControllerGame();\r\n $this->controllerRegister = new ControllerRegister();\r\n }", "public function controller ($post = array())\n\t{\n\n\t\t$name = $post['controller_name'];\n\n\t\tif (is_file(APPPATH.'controllers/'.$name.'.php')) {\n\n\t\t\t$message = sprintf(lang('Controller_s_is_existed'), APPPATH.'controllers/'.$name.'.php');\n\n\t\t\t$this->msg[] = $message;\n\n\t\t\treturn $this->result(false, $this->msg[0]);\n\n\t\t}\n\n\t\t$extends = null;\n\n\t\tif (isset($post['crud'])) {\n\n\t\t\t$crud = true;\n\t\t\t\n\t\t}\n\t\telse{\n\n\t\t\t$crud = false;\n\n\t\t}\n\n\t\t$file = $this->_create_folders_from_name($name, 'controllers');\n\n\t\t$data = '';\n\n\t\t$data .= $this->_class_open($file['file'], __METHOD__, $extends);\n\n\t\t$crud === FALSE || $data .= $this->_crud_methods_contraller($post);\n\n\t\t$data .= $this->_class_close();\n\n\t\t$path = APPPATH . 'controllers/' . $file['path'] . strtolower($file['file']) . '.php';\n\n\t\twrite_file($path, $data);\n\n\t\t$this->msg[] = sprintf(lang('Created_controller_s'), $path);\n\n\t\t//echo $this->_messages();\n\t\treturn $this->result(true, $this->msg[0]);\n\n\t}", "protected function getController(Request $request) {\n try {\n $controller = $this->objectFactory->create($request->getControllerName(), self::INTERFACE_CONTROLLER);\n } catch (ZiboException $exception) {\n throw new ZiboException('Could not create controller ' . $request->getControllerName(), 0, $exception);\n }\n\n return $controller;\n }", "public function create() {}", "public function __construct()\n {\n $this->dataController = new DataController;\n }", "function __contrruct(){ //construdor do controller, nele é possivel carregar as librari, helpers, models que serão utilizados nesse controller\n\t\tparent::__contrruct();//Chamando o construtor da classe pai\n\t}", "public function __construct() {\n\n // Get the URL elements.\n $url = $this->_parseUrl();\n\n // Checks if the first URL element is set / not empty, and replaces the\n // default controller class string if the given class exists.\n if (isset($url[0]) and ! empty($url[0])) {\n $controllerClass = CONTROLLER_PATH . ucfirst(strtolower($url[0]));\n unset($url[0]);\n if (class_exists($controllerClass)) {\n $this->_controllerClass = $controllerClass;\n }\n }\n\n // Replace the controller class string with a new instance of the it.\n $this->_controllerClass = new $this->_controllerClass;\n\n // Checks if the second URL element is set / not empty, and replaces the\n // default controller action string if the given action is a valid class\n // method.\n if (isset($url[1]) and ! empty($url[1])) {\n if (method_exists($this->_controllerClass, $url[1])) {\n $this->_controllerAction = $url[1];\n unset($url[1]);\n }\n }\n\n // Check if the URL has any remaining elements, setting the controller\n // parameters as a rebase of it if true or an empty array if false.\n $this->_controllerParams = $url ? array_values($url) : [];\n\n // Call the controller and action with parameters.\n call_user_func_array([$this->_controllerClass, $this->_controllerAction], $this->_controllerParams);\n }", "private function setUpController()\n {\n $this->controller = new TestObject(new SharedControllerTestController);\n\n $this->controller->dbal = DBAL::getDBAL('testDB', $this->getDBH());\n }", "public function create() {\n $class_name = $this->getOption('className');\n return new $class_name();\n }" ]
[ "0.82668066", "0.8173394", "0.78115296", "0.77052677", "0.7681875", "0.7659338", "0.74860525", "0.74064577", "0.7297601", "0.7252339", "0.7195181", "0.7174191", "0.70150065", "0.6989306", "0.69835985", "0.69732994", "0.6963521", "0.6935819", "0.68973273", "0.68920785", "0.6877748", "0.68702674", "0.68622285", "0.6839049", "0.6779292", "0.6703522", "0.66688496", "0.66600126", "0.6650373", "0.66436416", "0.6615505", "0.66144013", "0.6588728", "0.64483404", "0.64439476", "0.6429303", "0.6426485", "0.6303757", "0.6298291", "0.6293319", "0.62811387", "0.6258778", "0.62542456", "0.616827", "0.6162314", "0.61610043", "0.6139887", "0.613725", "0.61334985", "0.6132223", "0.6128982", "0.61092585", "0.6094611", "0.60889256", "0.6074893", "0.60660255", "0.6059098", "0.60565156", "0.6044235", "0.60288006", "0.6024102", "0.60225666", "0.6018304", "0.60134345", "0.60124683", "0.6010913", "0.6009284", "0.6001683", "0.5997471", "0.5997012", "0.59942573", "0.5985074", "0.5985074", "0.5985074", "0.5967613", "0.5952533", "0.5949068", "0.5942203", "0.5925731", "0.5914304", "0.5914013", "0.59119135", "0.5910308", "0.5910285", "0.59013796", "0.59003943", "0.5897524", "0.58964556", "0.58952993", "0.58918965", "0.5888943", "0.5875413", "0.5869938", "0.58627135", "0.58594996", "0.5853714", "0.5839484", "0.5832913", "0.582425", "0.58161044", "0.5815566" ]
0.0
-1
Show the application dashboard.
public function index() { $scoring_data_array[] = 0; $n = 10; $rounds = Rounds::roundsAll(Auth::user()->id, $n); $roundsReversed = $rounds->reverse(); // $scoring_cum = Scoring::scoring_cum(Auth::user()->id, $n); return View::make('igif.home') // ->with(compact('cumulativeData')) ->with([ 'dates' => $roundsReversed->pluck('round_date'), 'scores' => $roundsReversed->pluck('total_score'), 'number_of_rounds' => $n // 'scoring_cum' => $scoring_cum ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dashboard()\n {\n\n $pageData = (new DashboardService())->handleDashboardLandingPage();\n\n return view('application', $pageData);\n }", "function dashboard() {\r\n\t\t\tTrackTheBookView::render('dashboard');\r\n\t\t}", "public function showDashboard() { \n\t\n return View('admin.dashboard');\n\t\t\t\n }", "public function showDashboard()\n {\n return View::make('users.dashboard', [\n 'user' => Sentry::getUser(),\n ]);\n }", "public function dashboard()\n {\n return view('backend.dashboard.index');\n }", "public function index() {\n return view(\"admin.dashboard\");\n }", "public function dashboard()\n {\n return $this->renderContent(\n view('dashboard'),\n trans('sleeping_owl::lang.dashboard')\n );\n }", "public function dashboard(){\n return view('backend.admin.index');\n }", "public function showDashBoard()\n {\n \treturn view('Admins.AdminDashBoard');\n }", "public function dashboard()\n {\n return view('dashboard.index');\n }", "public function index()\n {\n return view('admin.dashboard', ['title' => 'Dashboard']);\n }", "public function dashboard() \r\n {\r\n return view('admin.index');\r\n }", "public function dashboard()\n\t{\n\t\t$page_title = 'organizer dashboard';\n\t\treturn View::make('organizer.dashboard',compact('page_title'));\n\t}", "public function dashboard()\n {\n\t\t$traffic = TrafficService::getTraffic();\n\t\t$devices = TrafficService::getDevices();\n\t\t$browsers = TrafficService::getBrowsers();\n\t\t$status = OrderService::getStatus();\n\t\t$orders = OrderService::getOrder();\n\t\t$users = UserService::getTotal();\n\t\t$products = ProductService::getProducts();\n\t\t$views = ProductService::getViewed();\n\t\t$total_view = ProductService::getTotalView();\n\t\t$cashbook = CashbookService::getAccount();\n $stock = StockService::getStock();\n\n return view('backend.dashboard', compact('traffic', 'devices', 'browsers', 'status', 'orders', 'users', 'products', 'views', 'total_view', 'cashbook', 'stock'));\n }", "public function dashboard()\n {\n\n return view('admin.dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('adm.dashboard');\n }", "public function dashboard()\n {\n $users = \\App\\User::all()->count();\n $roles = \\Spatie\\Permission\\Models\\Role::all()->count();\n $permissions = \\Spatie\\Permission\\Models\\Permission::all()->count();\n $banner = \\App\\Banner::all();\n $categoria = \\App\\Categoria::all();\n $entidadOrganizativa = \\App\\Entidadorganizativa::all();\n $evento = \\App\\Evento::all();\n $fichero = \\App\\Fichero::all();\n $recurso = \\App\\Recurso::all();\n $redsocial = \\App\\Redsocial::all();\n $subcategoria = \\App\\Subcategoria::all();\n $tag = \\App\\Tag::all();\n\n $entities = \\Amranidev\\ScaffoldInterface\\Models\\Scaffoldinterface::all();\n\n return view('scaffold-interface.dashboard.dashboard',\n compact('users', 'roles', 'permissions', 'entities',\n 'banner', 'categoria', 'entidadOrganizativa',\n 'evento', 'fichero', 'recurso', 'redsocial', 'subcategoria', 'tag')\n );\n }", "public function show()\n {\n return view('dashboard');\n }", "public function index()\n\t{\n\t\treturn View::make('dashboard');\n\t}", "public function index() {\n return view('modules.home.dashboard');\n }", "public function show()\n {\n return view('dashboard.dashboard');\n \n }", "public function index()\n {\n return view('admin.dashboard.dashboard');\n\n }", "public function dashboard()\n { \n return view('jobposter.dashboard');\n }", "public function show()\n\t{\n\t\t//\n\t\t$apps = \\App\\application::all();\n\t\treturn view('applications.view', compact('apps'));\n\t}", "public function index()\n {\n return view('pages.admin.dashboard');\n }", "public function indexAction()\n {\n $dashboard = $this->getDashboard();\n\n return $this->render('ESNDashboardBundle::index.html.twig', array(\n 'title' => \"Dashboard\"\n ));\n }", "public function index()\n {\n //\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard.index');\n }", "public function dashboard()\n {\n return view('pages.backsite.dashboard');\n }", "public function index()\n {\n // return component view('dashboard.index');\n return view('layouts.admin_master');\n }", "public function index()\n {\n\n $no_of_apps = UploadApp::count();\n $no_of_analysis_done = UploadApp::where('isAnalyzed', '1')->count();\n $no_of_visible_apps = AnalysisResult::where('isVisible', '1')->count();\n\n return view('admin.dashboard', compact('no_of_apps', 'no_of_analysis_done', 'no_of_visible_apps'));\n }", "public function getDashboard() {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('smartcrud.auth.dashboard');\n }", "public function index()\n {\n if($this->isAdmin() == TRUE)\n {\n $this->loadThis();\n }\n $this->global['pageTitle'] = 'Touba : Dashboard';\n \n $this->loadViews(\"dashboard\", $this->global, NULL , NULL);\n }", "public function dashboard() {\n $data = ['title' => 'Dashboard'];\n return view('pages.admin.dashboard', $data)->with([\n 'users' => $this->users,\n 'num_services' => Service::count(),\n 'num_products' => Product::count(),\n ]);\n }", "public function index()\n {\n return view('board.pages.dashboard-board');\n }", "public function index()\n {\n return view('admin::settings.development.dashboard');\n }", "public function index()\n {\n return view('dashboard.dashboard');\n }", "public function show()\n {\n return view('dashboard::show');\n }", "public function adminDash()\n {\n return Inertia::render(\n 'Admin/AdminDashboard', \n [\n 'data' => ['judul' => 'Halaman Admin']\n ]\n );\n }", "public function dashboard()\n {\n return view('Admin.dashboard');\n }", "public function show()\n {\n return view('admins\\auth\\dashboard');\n }", "public function index()\n {\n // Report =============\n\n return view('Admin.dashboard');\n }", "public function index()\n {\n return view('bitaac::account.dashboard');\n }", "public function index()\n { \n return view('admin-views.dashboard');\n }", "public function getDashboard()\n {\n return view('dashboard');\n }", "function showDashboard()\n { \n $logeado = $this->checkCredentials();\n if ($logeado==true)\n $this->view->ShowDashboard();\n else\n $this->view->showLogin();\n }", "public function index()\n { \n $params['crumbs'] = 'Home';\n $params['active'] = 'home';\n \n return view('admin.dashboard.index', $params);\n }", "public function index()\n\t{\n\t\treturn view::make('customer_panel.dashboard');\n\t}", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index() {\n // return view('home');\n return view('admin-layouts.dashboard.dashboard');\n }", "public function index()\r\n {\r\n return view('user.dashboard');\r\n }", "public function index() {\n return view('dashboard', []);\n }", "public function index()\n {\n //\n return view('dashboard.dashadmin', ['page' => 'mapel']);\n }", "public function index()\n {\n return view('back-end.dashboard.index');\n //\n }", "public function index()\n\t{\n\t\t\n\t\t$data = array(\n\t\t\t'title' => 'Administrator Apps With Laravel',\n\t\t);\n\n\t\treturn View::make('panel/index',$data);\n\t}", "public function index() {\n return view('dashboard.index');\n }", "public function index()\n {\n return view('page.dashboard.index');\n }", "public function index()\n {\n\n return view('dashboard');\n }", "public function dashboardview() {\n \n $this->load->model('Getter');\n $data['dashboard_content'] = $this->Getter->get_dash_content();\n \n $this->load->view('dashboardView', $data);\n\n }", "public function index()\n {\n $this->authorize(DashboardPolicy::PERMISSION_STATS);\n\n $this->setTitle($title = trans('auth::dashboard.titles.statistics'));\n $this->addBreadcrumb($title);\n\n return $this->view('admin.dashboard');\n }", "public function action_index()\r\n\t{\t\t\t\t\r\n\t\t$this->template->title = \"Dashboard\";\r\n\t\t$this->template->content = View::forge('admin/dashboard');\r\n\t}", "public function index()\n {\n $info = SiteInfo::limit(1)->first();\n return view('backend.info.dashboard',compact('info'));\n }", "public function display()\n\t{\n\t\t// Set a default view if none exists.\n\t\tif (!JRequest::getCmd( 'view' ) ) {\n\t\t\tJRequest::setVar( 'view', 'dashboard' );\n\t\t}\n\n\t\tparent::display();\n\t}", "public function index()\n {\n $news = News::all();\n $posts = Post::all();\n $events = Event::all();\n $resources = Resources::all();\n $admin = Admin::orderBy('id', 'desc')->get();\n return view('Backend/dashboard', compact('admin', 'news', 'posts', 'events', 'resources'));\n }", "public function index()\n {\n\n return view('superAdmin.adminDashboard')->with('admin',Admininfo::all());\n\n }", "public function index()\n {\n return view('dashboard.index');\n }", "public function index()\n {\n return view('dashboard.index');\n }", "public function index()\n {\n $this->template->set('title', 'Dashboard');\n $this->template->load('admin', 'contents' , 'admin/dashboard/index', array());\n }", "public function index()\n {\n return view('/dashboard');\n }", "public function index()\n {\n \treturn view('dashboard');\n }", "public function index()\n {\n return view('ketua.ketua-dashboard');\n }", "public function index(){\n return View::make('admin.authenticated.dashboardview');\n }", "public function admAmwDashboard()\n {\n return View::make('admission::amw.admission_test.dashboard');\n }", "public function index()\n {\n return view('adminpanel.home');\n }", "public function dashboard()\n\t{\n\t\t$this->validation_access();\n\t\t\n\t\t$this->load->view('user_dashboard/templates/header');\n\t\t$this->load->view('user_dashboard/index.php');\n\t\t$this->load->view('user_dashboard/templates/footer');\n\t}", "public function index()\n {\n return view('dashboard.home');\n }", "public function index()\n {\n $admins = $this->adminServ->all();\n $adminRoles = $this->adminTypeServ->all();\n return view('admin.administrators.dashboard', compact('admins', 'adminRoles'));\n }", "public function index()\n {\n if (ajaxCall::ajax()) {return response()->json($this -> dashboard);}\n //return response()->json($this -> dashboard);\n JavaScript::put($this -> dashboard);\n return view('app')-> with('header' , $this -> dashboard['header']);\n //return view('home');\n }", "public function index()\n {\n $userinfo=User::all();\n $gateinfo=GateEntry::all();\n $yarninfo=YarnStore::all();\n $greyinfo=GreyFabric::all();\n $finishinfo=FinishFabric::all();\n $dyesinfo=DyeChemical::all();\n return view('dashboard',compact('userinfo','gateinfo','yarninfo','greyinfo','finishinfo','dyesinfo'));\n }", "public function actionDashboard(){\n \t$dados_dashboard = Yii::app()->user->getState('dados_dashbord_final');\n \t$this->render ( 'dashboard', $dados_dashboard);\n }", "public function index()\n {\n $user = new User();\n $book = new Book();\n return view('admin.dashboard', compact('user', 'book'));\n }", "public function dashboard() {\n if (!Auth::check()) { // Check is user logged in\n // redirect to dashboard\n return Redirect::to('login');\n }\n\n $user = Auth::user();\n return view('site.dashboard', compact('user'));\n }", "public function dashboard()\n {\n $users = User::all();\n return view('/dashboard', compact('users'));\n }", "public function index()\n {\n $lineChart = $this->getLineChart();\n $barChart = $this->getBarChart();\n $pieChart = $this->getPieChart();\n\n return view('admin.dashboard.index', compact(['lineChart', 'barChart', 'pieChart']));\n }" ]
[ "0.77850926", "0.7760142", "0.7561336", "0.75147176", "0.74653697", "0.7464913", "0.73652893", "0.7351646", "0.7346477", "0.73420244", "0.7326711", "0.7316215", "0.73072463", "0.7287626", "0.72826403", "0.727347", "0.727347", "0.727347", "0.727347", "0.7251768", "0.7251768", "0.7251768", "0.7251768", "0.7251768", "0.7241342", "0.7236133", "0.7235562", "0.7218318", "0.71989936", "0.7197427", "0.71913266", "0.71790016", "0.71684825", "0.71577966", "0.7146797", "0.7133428", "0.7132746", "0.71298903", "0.71249074", "0.71218014", "0.71170413", "0.7110151", "0.7109032", "0.7107029", "0.70974076", "0.708061", "0.7075653", "0.70751685", "0.7064041", "0.70550334", "0.7053102", "0.7051273", "0.70484304", "0.7043605", "0.70393986", "0.70197886", "0.70185125", "0.70139873", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.6992477", "0.6979631", "0.69741416", "0.69741327", "0.6968815", "0.6968294", "0.69677526", "0.69652885", "0.69586027", "0.6944985", "0.69432825", "0.69419175", "0.6941512", "0.6941439", "0.6938837", "0.6937524", "0.6937456", "0.6937456", "0.69276494", "0.6921651", "0.69074917", "0.69020325", "0.6882262", "0.6869339", "0.6867868", "0.68557185", "0.68479055", "0.684518", "0.68408877", "0.6838798", "0.6833479", "0.6832326", "0.68309164", "0.6826798", "0.6812457" ]
0.0
-1
for the initial line chart will simply grab their scores and dates
public function getPlayerScores($currentUser) { //$scoreHistory //$scoreDateHistory // $viewer = View::select(DB::raw("SUM(numberofview) as count")) // ->orderBy("created_at") // ->groupBy(DB::raw("year(created_at)")) // ->get()->toArray(); // $viewer = array_column($viewer, 'count'); $playerScores = View::select(DB::raw("total_score")) ->orderBy("round_date") // ->groupBy(DB::raw("year(created_at)")) ->get()->toArray(); $playerScores = array_column($playerScores); // return view('chartjs') // ->with('viewer',json_encode($viewer,JSON_NUMERIC_CHECK)) // ->with('click',json_encode($click,JSON_NUMERIC_CHECK)); return $playerScores; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_trend_data_rows()\n\t{\n\t\t$dates = array();\n\t\t$i_rows = array();\n\t\t$sr_rows = array();\n\t\t$trend_data = array();\n\n\t $current_month = date_create()->format('Y-m-d H:i:s');\n\n\t // echo $current_month_first_day=date_create($current_month)\n // ->modify('first day of this month')\n // ->format(\"Y-m-d 00:00:00\");\n\t $current_month_first_day=date_create($current_month)\n ->modify('first day of this month')\n ->format(\"Y-m-d 00:00:00\");\n\n\n $dates[] = $current_month_first_day;\n\n //echo\"</br>\";\n \n // echo $current_month_current_day=date_create($current_month)\n // ->format(\"Y-m-d 23:59:59\");\n\n $current_month_current_day=date_create($current_month)\n ->format(\"Y-m-d 23:59:59\");\t\n\n $dates[] = $current_month_current_day;\n\n //echo\"</br></br>\";\n\n // echo $second_month_first_day=date_create($current_month)\n // ->modify('-1 months')\n // ->modify('first day of this month')\n // ->format(\"Y-m-d 00:00:00\");\n\n $second_month_first_day=date_create($current_month)\n ->modify('-1 months')\n ->modify('first day of this month')\n ->format(\"Y-m-d 00:00:00\");\n\n $dates[] = $second_month_first_day;\n\n //echo\"</br>\";\n\n // echo $second_month_last_day=date_create($current_month)\n // ->modify('-1 months')\n // ->modify('last day of this month')\n // ->format(\"Y-m-d 23:59:59\");\n\n $second_month_last_day=date_create($current_month)\n ->modify('-1 months')\n ->modify('last day of this month')\n ->format(\"Y-m-d 23:59:59\");\n\n $dates[] = $second_month_last_day;\n\n// echo\"</br></br>\";\n\n // echo $third_month_first_day=date_create($current_month)\n // ->modify('-2 months')\n // ->modify('first day of this month')\n // ->format(\"Y-m-d 00:00:00\");\n\n $third_month_first_day=date_create($current_month)\n ->modify('-2 months')\n ->modify('first day of this month')\n ->format(\"Y-m-d 00:00:00\");\n\n $dates[] = $third_month_first_day;\n\n //echo\"</br>\";\n \t\t\t\n // echo $third_month_last_day=date_create($current_month)\n // ->modify('-2 months')\n // ->modify('last day of this month')\n // ->format(\"Y-m-d 23:59:59\");\n\n\t $third_month_last_day=date_create($current_month)\n ->modify('-2 months')\n ->modify('last day of this month')\n ->format(\"Y-m-d 23:59:59\");\n\n $dates[] = $third_month_last_day;\n\n // echo\"</br>\";\t\n // echo \"<pre>\";\n // print_r($dates);\n\t // echo \"</pre>\";\t\n\t // echo\"</br>\";\t\t\t \n\n for ($i=0; $i <=5 ; $i=$i+2)\n { \t\n \t//echo\"</br>\";\n\n \t$start = new DateTime($dates[$i]);\n \t\n \t//echo\"</br>\";\n\n\t\t$start = date_format($start,\"Y-m-d 00:00:00\");\n\n\t\t//echo\"</br>\";\n\n\t\t$end = new DateTime($dates[$i+1]);\n\n\t\t//echo\"</br>\";\n\n\t\t$end = date_format($end,\"Y-m-d 00:00:00\");\n\n\t\t//echo\"</br>\";\n\t\t$i_rows[] = date_create($start)->format(\"F Y\");\n\t\t$i_rows[] = date_create($end)->format(\"F Y\");\n\t\t$i_rows[] = $this->trend_insident_data($start,$end);\n \t$sr_rows[] = date_create($start)->format(\"F Y\");\n\t\t$sr_rows[] = date_create($end)->format(\"F Y\");\n \t$sr_rows[] = $this->trend_sr_data($start,$end);\t\n }\n\n // echo \"<pre>\";\n // \tprint_r($i_rows);\n \t\t// echo \"<h4>SR Array</h4>\";\n \t\t// print_r($sr_rows);\n \t\t// echo \"</pre>\";\n\n \t\t$trend_data[] = $i_rows;\n \t\t$trend_data[] = $sr_rows;\n\n\n \t\treturn $trend_data;\n\n\n // // First day of a specific month\n // $d = new DateTime('2010-01-19');\n // $d->modify('first day of this month');\n // echo $d->format('jS, F Y').\"</br>\";\n\n // // alternatively...\n // echo date_create('2010-01-19')\n // ->modify('first day of this month')\n // ->format('jS, F Y');\n\t\t//exit();\n\t}", "function charts($data1) {\n\t $startDate = Carbon::now()->subDay(365);\n\t $endDate = Carbon::now();\n\t\n\t\t//THIS RETURNS THE 4 BOXES\n\t\t$month = $data->filter(function($data1){ return $data1->created_at->format('m-y') == date('m-y'); });\n\t\t$lastmonth = $data->filter(function($data1){ return $data1->created_at->format('m-y') == Carbon::now()->firstOfMonth()->subMonth()->format('m-y'); });\n\t\t$year = $data->filter(function($data1){ return $data1->created_at->format('y') == date('y'); });\n\t\t$lastyear = $data->filter(function($data1){ return $data1->created_at->format('y') == Carbon::now()->subYear()->format('y'); });\n\t\n\t}", "public function initChart() \n {\n $days = 6;\n $this->lastDaysStartDate = date('Y-m-d', strtotime(\"-$days days\"));\n for ($i = $days; $i > 0; $i--) {\n $this->lastDays[] = array(\n 'display' => date('D, M d', strtotime(\"-$i days\")) ,\n 'conditions' => array(\n '#MODEL#.created >=' => date('Y-m-d 00:00:00', strtotime(\"-$i days\")) ,\n '#MODEL#.created <=' => date('Y-m-d 23:59:59', strtotime(\"-$i days\"))\n )\n );\n }\n $this->lastDays[] = array(\n 'display' => date('D, M d') ,\n 'conditions' => array(\n '#MODEL#.created >=' => date('Y-m-d 00:00:00', strtotime(\"now\")) ,\n '#MODEL#.created <=' => date('Y-m-d 23:59:59', strtotime(\"now\"))\n )\n );\n $days = 13;\n for ($i = $days; $i >= 7; $i--) {\n $this->lastDaysPrev[] = array(\n 'display' => date('M d, Y', strtotime(\"-$i days\")) ,\n 'conditions' => array(\n '#MODEL#.created >=' => date('Y-m-d 00:00:00', strtotime(\"-$i days\")) ,\n '#MODEL#.created <=' => date('Y-m-d 23:59:59', strtotime(\"-$i days\"))\n )\n );\n }\n //# last weeks date settings\n $timestamp_end = strtotime('last Saturday');\n $weeks = 3;\n $this->lastWeeksStartDate = date('Y-m-d', $timestamp_end-((($weeks*7) -1) *24*3600));\n for ($i = $weeks; $i > 0; $i--) {\n $start = $timestamp_end-((($i*7) -1) *24*3600);\n $end = $start+(6*24*3600);\n $this->lastWeeks[] = array(\n 'display' => date('M d', $start) . ' - ' . date('M d', $end) ,\n 'conditions' => array(\n '#MODEL#.created >=' => date('Y-m-d', $start) ,\n '#MODEL#.created <=' => date('Y-m-d', $end) ,\n )\n );\n }\n $this->lastWeeks[] = array(\n 'display' => date('M d', $timestamp_end+24*3600) . ' - ' . date('M d') ,\n 'conditions' => array(\n '#MODEL#.created >=' => date('Y-m-d', $timestamp_end+24*3600) ,\n '#MODEL#.created <=' => date('Y-m-d', strtotime('now'))\n )\n );\n $weeks = 7;\n for ($i = $weeks; $i > 3; $i--) {\n $start = $timestamp_end-((($i*7) -1) *24*3600);\n $end = $start+(6*24*3600);\n $this->lastWeeksPrev[] = array(\n 'display' => date('M d', $start) . ' - ' . date('M d', $end) ,\n 'conditions' => array(\n '#MODEL#.created >=' => date('Y-m-d', $start) ,\n '#MODEL#.created <=' => date('Y-m-d', $end)\n )\n );\n }\n //# last months date settings\n $months = 2;\n $this->lastMonthsStartDate = date('Y-m-01', strtotime(\"-$months months\"));\n for ($i = $months; $i > 0; $i--) {\n $this->lastMonths[] = array(\n 'display' => date('M, Y', strtotime(\"-$i months\")) ,\n 'conditions' => array(\n '#MODEL#.created >=' => date('Y-m-01', strtotime(\"-$i months\")) ,\n '#MODEL#.created <=' => date('Y-m-t', strtotime(\"-$i months\")) ,\n )\n );\n }\n $this->lastMonths[] = array(\n 'display' => date('M, Y') ,\n 'conditions' => array(\n '#MODEL#.created >=' => date('Y-m-01', strtotime('now')) ,\n '#MODEL#.created <=' => date('Y-m-t', strtotime('now')) ,\n )\n );\n $months = 5;\n for ($i = $months; $i > 2; $i--) {\n $this->lastMonthsPrev[] = array(\n 'display' => date('M, Y', strtotime(\"-$i months\")) ,\n 'conditions' => array(\n '#MODEL#.created >=' => date('Y-m-01', strtotime(\"-$i months\")) ,\n '#MODEL#.created <=' => date('Y-m-' . date('t', strtotime(\"-$i months\")) , strtotime(\"-$i months\"))\n )\n );\n }\n //# last years date settings\n $years = 2;\n $this->lastYearsStartDate = date('Y-01-01', strtotime(\"-$years years\"));\n for ($i = $years; $i > 0; $i--) {\n $this->lastYears[] = array(\n 'display' => date('Y', strtotime(\"-$i years\")) ,\n 'conditions' => array(\n '#MODEL#.created >=' => date('Y-01-01', strtotime(\"-$i years\")) ,\n '#MODEL#.created <=' => date('Y-12-31', strtotime(\"-$i years\")) ,\n )\n );\n }\n $this->lastYears[] = array(\n 'display' => date('Y') ,\n 'conditions' => array(\n '#MODEL#.created >=' => date('Y-01-01', strtotime('now')) ,\n '#MODEL#.created <=' => date('Y-12-31', strtotime('now')) ,\n )\n );\n $years = 5;\n for ($i = $years; $i > 2; $i--) {\n $this->lastYearsPrev[] = array(\n 'display' => date('Y', strtotime(\"-$i years\")) ,\n 'conditions' => array(\n '#MODEL#.created >=' => date('Y-01-01', strtotime(\"-$i years\")) ,\n '#MODEL#.created <=' => date('Y-12-' . date('t', strtotime(\"-$i years\")) , strtotime(\"-$i years\")) ,\n )\n );\n }\n $this->selectRanges = array(\n 'lastDays' => __l('Last 7 days') ,\n 'lastWeeks' => __l('Last 4 weeks') ,\n 'lastMonths' => __l('Last 3 months') ,\n 'lastYears' => __l('Last 3 years')\n );\n }", "public function calculate_lines(){\n\n\t\t$this->delete_existing_lines();\n\t\t$this->parse_participants_sex_count();\n\t\tif($this->event->type_of_play === 'gender'){\n\t\t\tif($this->event->singles_only == 0){\n\t\t\t\t$this->calculate_lines_gender();\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$this->calculate_lines_gender_singles_only();\n\t\t\t}\n\t\t}\n\t\telse if($this->event->type_of_play === 'mixed'){\n\t\t\tif($this->event->singles_only == 0){\n\t\t\t\t$this->calculate_lines_mixed();\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$this->calculate_lines_mixed_singles_only();\n\t\t\t}\n\t\t}\n\t\t$this->build_lines_aggregate_array();\n\t\t$this->lines->create_lines($this->event->id, $this->event->sets, $this->lines_aggregate_array);\n\n\t}", "public function chart() {\n\n\t\t$data = array();\n\n\t\t$charts = FaceDetect::select( [ 'data', 'created_at' ] )->get( [\n\t\t\t'data',\n\t\t\t'created_at'\n\t\t] )->groupBy( function ( $date ) {\n\t\t\treturn Carbon::parse( $date->created_at )->format( 'm' );\n\t\t} )->toArray();\n\n\t\tforeach ( $charts as $key => $face ) {\n\n\t\t\tforeach ( $face as $index => $f ) {\n\t\t\t\t$date = explode( '-', Carbon::parse( $f['created_at'] )->format( 'Y-m-d' ) );\n\t\t\t\tforeach ( $f['data'] as $i => $item ) {\n\t\t\t\t\t$age [ $key ][] = $item['age'];\n\t\t\t\t}\n\t\t\t}\n\t\t\t$data[] = [\n\t\t\t\t'age_max' => max( $age[ $key ] ),\n\t\t\t\t'age_min' => min( $age[ $key ] ),\n\t\t\t\t'age_avg' => intval( array_sum( [ max( $age[ $key ] ), min( $age[ $key ] ) ] ) / 2 ),\n\t\t\t\t'key' => $this->jdate_words( [ 'mm' => $this->gregorian_to_jalali( $date[0], $date[1], $date[2] )[1] ] )['mm']\n\t\t\t];\n\n\t\t}\n\n\t\treturn $data;\n\n\t}", "public function lineGraphInterface()\n {\n date_default_timezone_set('Asia/Jakarta');\n // echo 'Indonesian Timezone: ' . date('d-m-Y H:i:s');\n $interface = $this->input->post('iface');\n $first_date = $this->input->post('start');\n $last_date = $this->input->post('end');\n $graphs = $this->statistic->getDataInterface(array('interface' => $interface, 'first_date' => $first_date, 'last_date' => $last_date));\n $stat = $this->statistic->getStatisticInterface(array('interface'=> $interface ,'first_date' => $first_date, 'last_date' => $last_date));\n // echo '<pre>';\n // print_r($graph);\n $row = array (\n 'tx' => array(), \n 'rx' => array(),\n 'stat' => $stat\n );\n foreach($graphs as $graph){\n $row['tx'][] = [strtotime($graph->time)*1000,round($graph->tx)];\n\t\t\t$row['rx'][] = [strtotime($graph->time)*1000,round($graph->rx)];\n // $row['point'][] = date('H:i:s', strtotime($graph->time));\n // if(date('H:i:s', strtotime($graph->time))=='00:00:00'){\n // $time = date('Y-m-d H:i:s', strtotime($graph->time));\n // }else{\n // $time = date('H:i:s', strtotime($graph->time));\n // }\n\t\t\t// $row['point'][] = $time;\n }\n // $result = $row;\n // echo \"<pre>\";\n // echo $last_date;\n // print_r($time = date('H:i:s', strtotime($first_date)));\n echo json_encode($row);\n }", "public function initChart()\r\n {\r\n $days = 6;\r\n $this->lastDaysStartDate = date('Y-m-d', strtotime(\"-$days days\"));\r\n for ($i = $days; $i > 0; $i--) {\r\n $this->lastDays[] = array(\r\n 'display' => date('D, M d', strtotime(\"-$i days\")) ,\r\n 'conditions' => array(\r\n '#MODEL#.created >=' => date('Y-m-d 00:00:00', strtotime(\"-$i days\")) ,\r\n '#MODEL#.created <=' => date('Y-m-d 23:59:59', strtotime(\"-$i days\"))\r\n )\r\n );\r\n }\r\n $this->lastDays[] = array(\r\n 'display' => date('D, M d') ,\r\n 'conditions' => array(\r\n '#MODEL#.created >=' => date('Y-m-d 00:00:00', strtotime(\"now\")) ,\r\n '#MODEL#.created <=' => date('Y-m-d 23:59:59', strtotime(\"now\"))\r\n )\r\n );\r\n $days = 13;\r\n for ($i = $days; $i >= 7; $i--) {\r\n $this->lastDaysPrev[] = array(\r\n 'display' => date('M d, Y', strtotime(\"-$i days\")) ,\r\n 'conditions' => array(\r\n '#MODEL#.created >=' => date('Y-m-d 00:00:00', strtotime(\"-$i days\")) ,\r\n '#MODEL#.created <=' => date('Y-m-d 23:59:59', strtotime(\"-$i days\"))\r\n )\r\n );\r\n }\r\n //# last weeks date settings\r\n $timestamp_end = strtotime('last Saturday');\r\n $weeks = 3;\r\n $this->lastWeeksStartDate = date('Y-m-d', $timestamp_end-((($weeks*7) -1) *24*3600));\r\n for ($i = $weeks; $i > 0; $i--) {\r\n $start = $timestamp_end-((($i*7) -1) *24*3600);\r\n $end = $start+(6*24*3600);\r\n $this->lastWeeks[] = array(\r\n 'display' => date('M d', $start) . ' - ' . date('M d', $end) ,\r\n 'conditions' => array(\r\n '#MODEL#.created >=' => date('Y-m-d 00:00:00', $start) ,\r\n '#MODEL#.created <=' => date('Y-m-d 23:59:59', $end) ,\r\n )\r\n );\r\n }\r\n $this->lastWeeks[] = array(\r\n 'display' => date('M d', $timestamp_end+24*3600) . ' - ' . date('M d') ,\r\n 'conditions' => array(\r\n '#MODEL#.created >=' => date('Y-m-d 00:00:00', $timestamp_end+24*3600) ,\r\n '#MODEL#.created <=' => date('Y-m-d 23:59:59', strtotime('now'))\r\n )\r\n );\r\n $weeks = 7;\r\n for ($i = $weeks; $i > 3; $i--) {\r\n $start = $timestamp_end-((($i*7) -1) *24*3600);\r\n $end = $start+(6*24*3600);\r\n $this->lastWeeksPrev[] = array(\r\n 'display' => date('M d', $start) . ' - ' . date('M d', $end) ,\r\n 'conditions' => array(\r\n '#MODEL#.created >=' => date('Y-m-d 00:00:00', $start) ,\r\n '#MODEL#.created <=' => date('Y-m-d 23:59:59', $end)\r\n )\r\n );\r\n }\r\n //# last months date settings\r\n $months = 2;\r\n $this->lastMonthsStartDate = date('Y-m-01', strtotime(\"-$months months\"));\r\n for ($i = $months; $i > 0; $i--) {\r\n $this->lastMonths[] = array(\r\n 'display' => date('M, Y', strtotime(\"-$i months\")) ,\r\n 'conditions' => array(\r\n '#MODEL#.created >=' => date('Y-m-01', strtotime(\"-$i months\")) ,\r\n '#MODEL#.created <=' => date('Y-m-t', strtotime(\"-$i months\")) ,\r\n )\r\n );\r\n }\r\n $this->lastMonths[] = array(\r\n 'display' => date('M, Y') ,\r\n 'conditions' => array(\r\n '#MODEL#.created >=' => date('Y-m-01', strtotime('now')) ,\r\n '#MODEL#.created <=' => date('Y-m-t', strtotime('now')) ,\r\n )\r\n );\r\n $months = 5;\r\n for ($i = $months; $i > 2; $i--) {\r\n $this->lastMonthsPrev[] = array(\r\n 'display' => date('M, Y', strtotime(\"-$i months\")) ,\r\n 'conditions' => array(\r\n '#MODEL#.created >=' => date('Y-m-01', strtotime(\"-$i months\")) ,\r\n '#MODEL#.created <=' => date('Y-m-' . date('t', strtotime(\"-$i months\")) , strtotime(\"-$i months\"))\r\n )\r\n );\r\n }\r\n //# last years date settings\r\n $years = 2;\r\n $this->lastYearsStartDate = date('Y-01-01', strtotime(\"-$years years\"));\r\n for ($i = $years; $i > 0; $i--) {\r\n $this->lastYears[] = array(\r\n 'display' => date('Y', strtotime(\"-$i years\")) ,\r\n 'conditions' => array(\r\n '#MODEL#.created >=' => date('Y-01-01', strtotime(\"-$i years\")) ,\r\n '#MODEL#.created <=' => date('Y-12-31', strtotime(\"-$i years\")) ,\r\n )\r\n );\r\n }\r\n $this->lastYears[] = array(\r\n 'display' => date('Y') ,\r\n 'conditions' => array(\r\n '#MODEL#.created >=' => date('Y-01-01', strtotime('now')) ,\r\n '#MODEL#.created <=' => date('Y-12-31', strtotime('now')) ,\r\n )\r\n );\r\n $years = 5;\r\n for ($i = $years; $i > 2; $i--) {\r\n $this->lastYearsPrev[] = array(\r\n 'display' => date('Y', strtotime(\"-$i years\")) ,\r\n 'conditions' => array(\r\n '#MODEL#.created >=' => date('Y-01-01', strtotime(\"-$i years\")) ,\r\n '#MODEL#.created <=' => date('Y-12-' . date('t', strtotime(\"-$i years\")) , strtotime(\"-$i years\")) ,\r\n )\r\n );\r\n }\r\n $this->selectRanges = array(\r\n 'lastDays' => __l('Last 7 days') ,\r\n 'lastWeeks' => __l('Last 4 weeks') ,\r\n 'lastMonths' => __l('Last 3 months') ,\r\n 'lastYears' => __l('Last 3 years')\r\n );\r\n }", "public function getStatisticByDate (){\n\t\t\n\t\t$dates = array();\n\t\t$logins = array();\n\t\t$email = array();\n\t\t$shares = array();\n $open_email = array();\n\t\t$link_visit = array();\n\t\t$tmp = Util::groupMultiArray($this->data, 'date');\n\t\t\n\t\t// transform it to to be abel to plot on the graph\n\t\tforeach ($tmp as $dt => $data){\n $open_email_count = '0';\n $link_visit_open = '0';\n\t\t\tforeach ($data as $choiceid => $choices){\n if(($choices['email_open'] == '1')) {\n $open_email_count++;\n }\n if(($choices['link_visit_open'] == '1')) {\n $link_visit_open++;\n }\n }\n $open_email[] = $open_email_count;\n\t\t\t$link_visit[] = $link_visit_open;\n \n\t\t\t$dates[] = $dt;\n\t\t\t\n\t\t\t$types = Util::groupMultiArray($data, 'type');\n\t\t\t\n\t\t\t$logins[] = (isset($types[1])) ? count($types[1]) : 0;\n\t\t\t$email[] = (isset($types[2])) ? count($types[2]) : 0;\n\t\t\t$shares[] = (isset($types[3])) ? count($types[3]) : 0;\n\t \n\t\t}\n\t\t\n\t\treturn array('label' => $dates, 'login' => $logins, 'email' => $email, 'share' => $shares, 'open_email_count' => $open_email, 'link_visit_open' => $link_visit);\n\t\t\n\t\t//print_r($out);\n\t\t//\n\t}", "function getResults(DateTime $date){\n\t\t\t\n\t\t\t\n\t\t\t$dateString = $date->format('Y-m-d');\n\t\t\t$url = 'http://betting.racingpost.com/horses/results/?r_date='.$dateString;\n\t\t\t\n\t\t\t$html = $this->getHtml($url);\n\t\t\t\n\t\t\t//Line needs to be accross two lines to recognise new line character\n \t\t\t$events = explode(\"<div class=\\\"headlineBlock\\\">\n <h2>\",$html);\n \n \t\t\t//logness($events);\n \t\t\t//customExit();\n \t\t\t$resultsArray = array();\n \t\t\t\n \t\t\t$maxI = count($events);\n\t\t\t\n\t\t\tfor( $i=1; $i< $maxI;$i++){\n\t\t\t\t\n\t\t\t\t$eventName = explode('</h2>',$events[$i])[0];\n\t\t\t\t\n\t\t\t\t//Remove bracketed text if any\n\t\t\t\t$eventName = rtrim(explode('(',$eventName)[0],\" \");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//Get each race...\n\t\t\t\t$races = explode('<strong id=', $events[$i]);\n\t\t\t\t\t\t\t\t\n\t\t\t\t$resultsArray[$eventName]=array();\n\t\t\t\t\n\t\t\t\t$maxQ = count($races);\n\t\t\t\t\n\t\t\t\tfor( $q=1; $q<$maxQ;$q++){\n\t\t\t\t\t\n\t\t\t\t\t$raceTime = explode('<',explode('>', $races[$q])[1])[0];\n\t\t\t\t\t\n\t\t\t\t\t//Convert the hour part of the time to 24 hour\n\t\t\t\t\t$raceTime = explode(':',$raceTime);\n\t\t\t\t\t$raceHour = $raceTime[0]; \n\t\t\t\t\t$raceMinute = $raceTime[1]; \n\t\t\t\t\t\n\t\t\t\t\tif( $raceHour < 11){\n\t\t\t\t\t\t$raceHour+=12;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$raceTime = $raceHour.':'.$raceMinute;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t$resultsArray[$eventName][$raceTime]=array();\n\t\t\t\t\t\n\t\t\t\t\t//Find out number of runners..\n\t\t\t\t\t$totalRunners = explode('>',explode('ran Distances', $races[$q])[0]);\n\t\t\t\t\t$totalRunners = (int)$totalRunners[count($totalRunners)-1];\n\t\t\t\t\t\n\t\t\t\t\t$resultsArray[$eventName][$raceTime]['totalRunners']=$totalRunners;\n\t\t\t\t\t\n\t\t\t\t\t//Only proceed if number of runners found..\n\t\t\t\t\tif( $totalRunners> 0 ){\n\t\t\t\t\t\n\t\t\t\t\t\t//Get horses in order\n\t\t\t\t\t\t$horses = explode('HORSE\">', $races[$q]);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t$maxH = count($horses);\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor( $h=1; $h<$maxH; $h++ ){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//get the position os this horse, (should match $h)\n\t\t\t\t\t\t\t$position = explode(' <a href', $horses[$h-1]);\n\t\t\t\t\t\t\t$position = $position[count($position)-2];\n\t\t\t\t\t\t\t$position = explode('>',$position);\n\t\t\t\t\t\t\t$position = $position[count($position)-1];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//make sure we havent gone down as far as non runner horses, or script\n\t\t\t\t\t\t\tif (strpos($position, 'NR') !== false || !is_numeric($position)) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tbreak;\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//If it doesn't match, probably a deadheat\n\t\t\t\t\t\t\tif( $position != $h ){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//unset the array and break from for loop\n\t\t\t\t\t\t\t\t//logness(\"position: $position not match: $h\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tunset($resultsArray[$eventName][$raceTime]['results']);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$horseName = explode('</a>',$horses[$h] )[0];\n\t\t\t\t\t\t\t\t$horsePrice = trim(explode('<',explode('</a>', $horses[$h])[1])[0],' F');\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif($horsePrice==\"evens\"){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$horserice = \"1/1\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//Convert price to decimal\n\t\t\t\t\t\t\t\t$horsePrice = explode('/', $horsePrice);\n\t\t\t\t\t\t\t\t$horsePrice = $horsePrice[0]/$horsePrice[1]+1;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$resultsArray[$eventName][$raceTime]['results'][$h] = array('name'=>$horseName,'price'=>$horsePrice );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Get non runners\n\t\t\t\t\t\t$nonRunners = explode('NR:', $races[$q]);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Check if there is any\n\t\t\t\t\t\tif( count($nonRunners)>1){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$resultsArray[$eventName][$raceTime]['nonRunners']=array();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$nonRunners = explode('</p>', $nonRunners[1])[0];\n\t\t\t\t\t\t\t$nonRunners = explode('</a>', $nonRunners);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$maxN = (sizeof($nonRunners)-1);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor( $n=0; $n<$maxN;$n++){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$nonRunnerName = explode('>', $nonRunners[$n])[1];\n\t\t\t\t\t\t\t\t$nonRunnerName = explode(' (', $nonRunnerName)[0];\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$resultsArray[$eventName][$raceTime]['nonRunners'][]=explode('>', $nonRunners[$n])[1];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\treturn $resultsArray;\n\t\t\t//logness($resultsArray);\n\t\t\t//customExit();\n\t\t}", "function get_risk_trend($project) {\n\t$chart = new Highchart ();\n\t$chart->includeExtraScripts ();\n\t\n\t$chart->chart->type = \"arearange\";\n\t$chart->chart->zoomType = \"x\";\n\t$chart->title->text = \"Risks Opened and Closed Over Time\";\n\t$chart->xAxis->type = \"datetime\";\n\t$chart->yAxis->title->text = null;\n\t$chart->yAxis->min = 0;\n\t$chart->tooltip = array (\n\t\t\t'crosshairs' => true,\n\t\t\t'shared' => true,\n\t\t\t'valueSuffix' => ' risk(s)' \n\t);\n\t$chart->legend->enabled = false;\n\t$chart->chart->renderTo = \"risk_trend_chart\";\n\t$chart->credits->enabled = false;\n\t$chart->plotOptions->series->marker->enabled = false;\n\t$chart->plotOptions->series->marker->lineWidth = \"2\";\n\t// These set the marker symbol when selected\n\t$chart->plotOptions->series->marker->symbol = \"circle\";\n\t$chart->plotOptions->series->marker->states->hover->enabled = true;\n\t$chart->plotOptions->series->marker->states->hover->fillColor = \"white\";\n\t$chart->plotOptions->series->marker->states->hover->lineColor = \"black\";\n\t$chart->plotOptions->series->marker->states->hover->lineWidth = \"2\";\n\t\n\t// Open the database connection\n\t$db = db_open ();\n\t\n\t// Query the database\n\t$stmt = $db->prepare ( \"SELECT DATE(submission_date) date, COUNT(DISTINCT id) count FROM `risks` WHERE project_version_id = $project GROUP BY DATE(submission_date) ORDER BY DATE(submission_date)\" );\n\t$stmt->execute ();\n\t\n\t// Store the list in the array\n\t$opened_risks = $stmt->fetchAll ();\n\t\n\t// Query the database\n\t$stmt = $db->prepare ( \"SELECT DATE(a.closure_date) date, COUNT(DISTINCT b.id) count FROM `closures` a JOIN `risks` b ON a.risk_id = b.id WHERE b.status = \\\"Closed\\\" AND b.project_version_id = $project GROUP BY DATE(a.closure_date)\" );\n\t$stmt->execute ();\n\t\n\t// Store the list in the array\n\t$closed_risks = $stmt->fetchAll ();\n\t\n\t// Close the database connection\n\tdb_close ( $db );\n\t\n\t// If the opened risks array is empty\n\tif (empty ( $opened_risks )) {\n\t\t$opened_risk_data [] = array (\n\t\t\t\t\"No Data Available\",\n\t\t\t\t0 \n\t\t);\n\t} \t// Otherwise\n\telse {\n\t\t// Set the sum to 0\n\t\t$opened_sum = 0;\n\t\t$closed_sum = 0;\n\t\t\n\t\t// Set the start date\n\t\t$date = $opened_risks [0] ['date'];\n\t\t\n\t\t// For each date from the start date until today\n\t\twhile ( strtotime ( $date ) <= time () ) {\n\t\t\t// If the PHP version is >= 5.5.0\n\t\t\t// array_column is new as of PHP 5.5\n\t\t\tif (strnatcmp ( phpversion (), '5.5.0' ) >= 0) {\n\t\t\t\t// Search the opened array for the value\n\t\t\t\t$opened_search = array_search ( $date, array_column ( $opened_risks, 'date' ) );\n\t\t\t} else\n\t\t\t\t$opened_search = false;\n\t\t\t\t\n\t\t\t\t// If the current date is in the opened array\n\t\t\tif ($opened_search !== false) {\n\t\t\t\t$count = $opened_risks [$opened_search] ['count'];\n\t\t\t\t$opened_sum += $count;\n\t\t\t}\n\t\t\t\n\t\t\t// If the PHP version is >= 5.5.0\n\t\t\t// array_column is new as of PHP 5.5\n\t\t\tif (strnatcmp ( phpversion (), '5.5.0' ) >= 0) {\n\t\t\t\t// Search the closed array for the value\n\t\t\t\t$closed_search = array_search ( $date, array_column ( $closed_risks, 'date' ) );\n\t\t\t} else\n\t\t\t\t$closed_search = false;\n\t\t\t\t\n\t\t\t\t// If the current date is in the closed array\n\t\t\tif ($closed_search !== false) {\n\t\t\t\t$count = $closed_risks [$closed_search] ['count'];\n\t\t\t\t$closed_sum += $count;\n\t\t\t}\n\t\t\t\n\t\t\t// Create the data arrays\n\t\t\t$opened_risk_data [] = array (\n\t\t\t\t\t(strtotime ( $date ) + 2 * 86400) * 1000,\n\t\t\t\t\t$opened_sum \n\t\t\t);\n\t\t\t$closed_risk_data [] = array (\n\t\t\t\t\t(strtotime ( $date ) + 2 * 86400) * 1000,\n\t\t\t\t\t$closed_sum \n\t\t\t);\n\t\t\t$trend_data [] = array (\n\t\t\t\t\t(strtotime ( $date ) + 2 * 86400) * 1000,\n\t\t\t\t\t$opened_sum - $closed_sum \n\t\t\t);\n\t\t\t\n\t\t\t// Increment the date one day\n\t\t\t$date = date ( \"Y-m-d\", strtotime ( \"+1 day\", strtotime ( $date ) ) );\n\t\t}\n\t\t\n\t\t// Draw the open risks line\n\t\t$chart->series [] = array (\n\t\t\t\t'type' => \"line\",\n\t\t\t\t'name' => \"Opened Risks\",\n\t\t\t\t'color' => \"red\",\n\t\t\t\t'lineWidth' => \"2\",\n\t\t\t\t'data' => $opened_risk_data \n\t\t);\n\t\t\n\t\t// Draw the closed risks line\n\t\t$chart->series [] = array (\n\t\t\t\t'type' => \"line\",\n\t\t\t\t'name' => \"Closed Risks\",\n\t\t\t\t'color' => \"blue\",\n\t\t\t\t'lineWidth' => \"2\",\n\t\t\t\t'data' => $closed_risk_data \n\t\t);\n\t\t\n\t\t// Draw the trend line\n\t\t$chart->series [] = array (\n\t\t\t\t'type' => \"line\",\n\t\t\t\t'name' => \"Trend\",\n\t\t\t\t'color' => \"#000000\",\n\t\t\t\t'lineWidth' => \"2\",\n\t\t\t\t'data' => $trend_data \n\t\t);\n\t}\n\t$htmloutput = '';\n\t\n\t$htmloutput.= $chart->printScripts2 ();\n\t$htmloutput.= \"<div id=\\\"risk_trend_chart\\\"></div>\\n\";\n\t$htmloutput.= \"<script type=\\\"text/javascript\\\">\";\n\t$htmloutput.= $chart->render ( \"risk_trend_chart\" );\n\t$htmloutput.= \"</script>\\n\";\n\treturn $htmloutput; \n}", "function drawLineChart($companies,$data,$chartName,$div=\"\",$width=500,$height=500,$background=\"#f0f0f0\",$xaxisType='date') {\n // format = array(\"string \"=>array(client,competitorA,CompetitorB));\n // Eg : array(\"month 2\"=>array(600,300,800),\"month 3\"=>array(800,700,100),\"Month 4\"=>array(500,900,600),\"Month 5\"=>array(400,400,900),\"Month 6\"=>array(500,600,90));\n\n // The $companies should be in the following format\n // format : array(client,competitorA,competitorB);\n // Eg: (www.scoot.co.uk,www.touchlocal.com,www.yell.com);\n\n $arrDataColsHTML = array();\t// the columns\n\t\t $arrDataRowsHTML = array();\n \n $arrDataCol = array();\n $arrDataCol['label'] = \"\";\n\t $arrDataCol['type'] = $xaxisType;\n\t $arrDataColsHTML[] = $arrDataCol;\n\n foreach ($companies as $c) {\n\n $arrDataCol = array();\n \t\t $arrDataCol['label'] = $c;\n\t \t\t\t $arrDataCol['type'] = \"number\";\n\t \t\t\t$arrDataColsHTML[] = $arrDataCol;\n }\n\n foreach ($data as $key=>$A) {\n \n \t\t\t$arrDataRowsCell = array();\t\n\t\t \t\t\t\t$arrDataRowsCell[]=$key;\n \t\t\t foreach($A as $B) {\n \t\t\t\t$arrDataRowsCell[]=$B;\n \t\t\t\t}\n\n \t\t$arrDataRowsHTML[] = $arrDataRowsCell;\n\n }\n\n $arrColumns = exportGoogleVisColumns($arrDataColsHTML);\t\t\t\n\t\t\t// Build Google Vis Rows\n\t $arrRows = exportGoogleVisRows($arrDataRowsHTML);\n\n\t $strTable = GoogleVisDataTable($arrColumns,$arrRows,\"data\");\n\n\t?>\n <script type=\"text/javascript\">\n function drawVisualization<?=$chartName?>() {\n // Create and populate the data table.\n \t\t\t\t\t\t<? echo $strTable; ?>\n \n // Create and draw the visualization.\n new google.visualization.LineChart(document.getElementById('<?=$div?>')).\n draw(data, {curveType: \"none\",\n width: <?=$width?>, height: <?=$height?>,\n vAxis: {maxValue: 10},legend: \"top\",pointSize:\"5\",backgroundColor: \"<?=$background?>\"}\n );\n }\n \n\n google.setOnLoadCallback(drawVisualization<?=$chartName?>);\n </script>\n\t<?\n }", "function getLineChartDetailsToCompare($details,$first_location,$second_location,$third_location){\r\n\tglobal $pdo;\r\n\t$from_date = date('Y-m-d', get_strtotime($details['from_date']));\r\n\t#$to_date = date('Y-m-d', strtotime('+0 day',get_strtotime($details['from_date'])));\r\n\t$to_date = date('Y-m-d', get_strtotime($details['to_date']));\r\n\ttry{\r\n\t\t$select = $pdo->prepare(\"SELECT * FROM voltage_readings WHERE location_id IN (?, ?, ?)\r\n\t\t\t\tAND day BETWEEN ? AND ? AND voltage_readings.published =1 ORDER BY day, hour_of_day\");\r\n\t\t$select->execute(array($first_location, $second_location,$third_location, $from_date, $to_date));\r\n\t\t$report_data = array();\r\n\t\twhile($row = $select->fetch(PDO::FETCH_ASSOC)){\r\n\t\t$minutes_readings = explode(',',$row['readings']);\r\n\t\t\tfor($i=0;$i<60;$i++){\r\n\t\t\t$key = date('D M d Y H:i:s',get_strtotime($row['day'].\" \".$row['hour_of_day'].\":$i:00\"));\r\n\t\t\t$report_data[$key]['date'] = $key;\r\n\t\t\t$report_data[$key]['voltage'][$row['location_id']] = $minutes_readings[$i];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn array_values($report_data);\r\n\t}catch(PDOException $e){\r\n\t\t$this->setError($e->getMessage());\r\n\t\treturn false;\r\n\t}\r\n}", "function getTimeplotData($id) {\n \t\t\n\t\t$sql = \"SELECT first_insertion, to_call_back, init_contact, still_exist, deleted, contacted, date FROM mp_statistique WHERE motif_ID = '$id' ORDER BY date ASC\";\n\t\t$sel = mysql_query($sql);\n\n while ($stat = mysql_fetch_array($sel)) {\n \t\n\t\t\t$current = $stat['to_call_back'] + $stat['init_contact'] + $stat['still_exist'] + $stat['first_insertion'];\n $inserted = $stat['first_insertion'];\n $deleted = $stat['deleted'];\n $date = $stat['date'];\n $contacted = $stat['contacted'];\n \n echo \"$date,$current,$inserted,$deleted,$contacted\\n\";\n \n \n }\n\n }", "function analyzeTimeline() {\n\t\tglobal $timestart; \n\t\t$now = new DateTime; \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t$now->modify('+1 week'); \t\t\t\t\t\t\t\t\t\t\t\t\t\t// add a week, so the current week is not cut off\n\t\t\n\n\t\t// weekly data\n\t\t$this->weeklyAnalysis = array(); \n\t\t$start = clone $timestart;\n\t\t\n\t\twhile ( $start < $now ) {\n\t\t\t$Y = $start->format(\"Y\");\n\t\t\t$w = $start->format(\"W\"); \n\t\t\t\n\t\t\t// total\n\t\t\t$this->weeklyAnalysis[$Y.'-'.$w]['week'] = $Y.'-'.$w;\n\t\t\t$this->weeklyAnalysis[$Y.'-'.$w]['total'] = 0;\t\t\t\t\t\t\t\t// amount of hours worked\n\t\t\t$this->weeklyAnalysis[$Y.'-'.$w]['jobcount'] = 0;\t\t\t\t\t\t\t// amount of jobs recorded\t\n\t\t\t$this->weeklyAnalysis[$Y.'-'.$w]['jobs'] = array();\t\t\t\t\t\t\t// list of jobs recorded\n\t\t\t\n\t\t\tforeach ( $this->maplings as $id => $data ) {\t\t\t\t\t\t\t\t// loop through mapped hours\n\t\t\t\tif ( $data['year'] == $Y && $data['cal_week'] == $w ) {\n\t\t\t\t\t$this->weeklyAnalysis[$Y.'-'.$w]['total'] += $data['amount'];\n\t\t\t\t\t$this->weeklyAnalysis[$Y.'-'.$w]['jobcount'] += 1;\n\t\t\t\t\t$this->weeklyAnalysis[$Y.'-'.$w]['jobs'][] = $id;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// split by filters\n\t\t\tforeach ($this->filters as $filtersection => $items ) {\n\t\t\t\tforeach ( $items as $item ) {\n\t\t\t\t\t$this->weeklyAnalysis[$Y.'-'.$w][$filtersection][$item] = 0;\n\t\t\t\t\tforeach ( $this->maplings as $mapling ) {\t\t\t\t\t\t\n\t\t\t\t\t\tif ( $mapling['year'] == $Y && $mapling['cal_week'] == $w && $mapling[$filtersection]['id'] == $item ) {\n\t\t\t\t\t\t\t$this->weeklyAnalysis[$Y.'-'.$w][$filtersection][$item] += $mapling['amount'];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$start->modify(\"+1 week\");\n\t\t}\t\n\t\t\n\t\t// monthly data\n\t\t$this->monthlyAnalysis = array(); \n\t\t$start = clone $timestart;\n\t\t\n\t\twhile ( $start < $now ) {\n\t\t\t$Y = $start->format(\"Y\"); \n\t\t\t$m = $start->format(\"m\");\n\t\t\t\n\t\t\t// total\n\t\t\tforeach ( $this->maplings as $mapling ) {\n\t\t\t\tif ( $mapling['year'] == $Y && $mapling['month'] == $m ) {\n\t\t\t\t\t$this->monthlyAnalysis[$Y.'-'.$m]['total'] += $mapling['amount'];\n\t\t\t\t}\n\t\t\t}\n\t\t\t// split by filters\n\t\t\tforeach ($this->filters as $filtersection => $items ) {\n\t\t\t\tforeach ( $items as $item ) {\n\t\t\t\t\tforeach ( $this->maplings as $mapling ) {\n\t\t\t\t\t\tif ( $mapling['year'] == $Y && $mapling['month'] == $m && $mapling[$filtersection]['id'] == $item ) {\n\t\t\t\t\t\t\t$this->monthlyAnalysis[$Y . '-' .$m][$filtersection][$item] += $mapling['amount'];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$start->modify(\"+1 month\");\n\t\t}\t\n\t}", "public function get_chart_js_game_history()\n {\n $points = $this->points();\n\n $scores = $this->get_scores();\n $color_team_1 =\n $scores['team1'] < $scores['team2'] ? '#e3342f' : '#38c172';\n $color_team_2 =\n $scores['team1'] > $scores['team2'] ? '#e3342f' : '#38c172';\n $team_a_scores = [\n [\n 'x' => 0,\n 'y' => 0\n ]\n ];\n $team_b_scores = [\n [\n 'x' => 0,\n 'y' => 0\n ]\n ];\n foreach ($points->get() as $key => $point) {\n /** @var Game_Point $point */\n $team_a_scores[] = [\n 'x' => $key + 1,\n 'y' => (int) $point->score_team_1\n ];\n\n $team_b_scores[] = [\n 'x' => $key + 1,\n 'y' => (int) $point->score_team_2\n ];\n }\n\n $labels = [];\n for ($i = 0; $i <= $points->count(); $i++) {\n $labels[] = $i;\n }\n\n return json_encode([\n 'labels' => $labels,\n 'datasets' => [\n [\n 'label' => 'Team A',\n 'borderColor' => $color_team_1,\n 'backgroundColor' => '#FFF',\n 'fill' => false,\n 'data' => $team_a_scores\n ],\n [\n 'label' => 'Team B',\n 'borderColor' => $color_team_2,\n 'backgroundColor' => '#FFF',\n 'fill' => false,\n 'data' => $team_b_scores\n ]\n ]\n ]);\n }", "public function actionStorerecords()\n\t{\n\t\t$charts = $this->parsehtml();\n\t\t$today = date(\"Y-m-d\"); \n\t\t\n\t\t// if we haven't store todays charts. We store charts for each day\n\t\tif(Dates::find()->where(['date' => $today])->one() == NULL)\n\t\t{\n\t\t\t$date = new Dates();\n\t\t\t$date->date = $today;\n\t\t\t$date->save();\n\t\t\n\t\t\tforeach ($charts as $m) \n\t\t\t{\n\t\t\t\t\n\t\t\t\t$movie = Movies::find()->where(['title' => $m['title']])->one();\n\t\t\t\t// if the movie does not exist in the \"movies\" table then save it\n\t\t\t\tif($movie == NULL)\n\t\t\t\t{\t\n\t\t\t\t\t$movie = new Movies();\n\t\t\t\t\t$movie->title = $m['title'];\n\t\t\t\t\t$movie->save();\n\t\t\t\t}\n\n\t\t\t\t$date_movie = new DatesMovies();\n\t\t\t\t$date_movie->date_id = $date->id;\n\t\t\t\t$date_movie->movie_id = $movie->id;\n\t\t\t\t$date_movie->rank = $m['rank'];\n\t\t\t\t$date_movie->was = $m['was'];\n\t\t\t\t$date_movie->save();\n\t\t\t}\n\t\t}\n\t}", "public function graphData()\n {\n $dayOfWeek = ['Lunes', 'Martes', 'Miercoles', 'Jueves', 'Viernes', 'Sabado', 'Domingo'];\n $colors = [\n 'rgba(201, 203, 207, 0.8)', //gray\n 'rgba(255, 99, 132, 0.8)', //Red\n 'rgba(255, 159, 64, 0.8)', //Orange\n 'rgba(75, 192, 192, 0.8)', //green\n 'rgba(54, 162, 235, 0.8)', //blue\n 'rgba(153, 102, 255, 0.8)', //purple\n 'rgba(255, 205, 86, 0.8)', //yellow\n ];\n $borderColors = [\n 'rgba(201, 203, 207, 1)', //gray\n 'rgba(255, 99, 132, 1)', //Red\n 'rgba(255, 159, 64, 1)', //Orange\n 'rgba(75, 192, 192, 1)', //green\n 'rgba(54, 162, 235, 1)', //blue\n 'rgba(153, 102, 255, 1)', //purple\n 'rgba(255, 205, 86, 1)', //yellow\n ];\n $months = ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'];\n $now = Carbon::now()->timezone($this->timezome);\n $data = [];\n\n switch ($this->graphPeriod) {\n case 'weekly':\n $data = $this->getDataFromWeeklySales($colors, $borderColors);\n break;\n case 'weeklyAccumulated':\n $data = $this->getDataFromWeeklySales($colors, $borderColors, true);\n break;\n case 'monthly':\n $labels = [];\n $date = $now->copy()->subMonths(5)->startOfMonth()->startOfDay();\n $end = $now->copy()->endOfDay();\n $count = 0;\n\n for ($i = 1; $i < 32; $i++) {\n $labels[] = $i;\n }\n\n while ($date->lessThanOrEqualTo($end)) {\n $label = $months[$date->month - 1];\n $data = [];\n $endOfMonth = $date->copy()->endOfMonth()->endOfDay();\n $sale = 0;\n\n while ($date->lessThanOrEqualTo($endOfMonth) && $date->lessThanOrEqualTo($end)) {\n $sale += $this->getSumFromGraphPeriod($date, $this->graphCategory);\n $data[] = $sale;\n $date->addDay();\n }\n\n $datasets[] = [\n 'label' => $label,\n 'backgroundColor' => $colors[$count],\n 'borderColor' => $borderColors[$count],\n 'borderWidth' => 1,\n 'data' => $data,\n 'fill' => false\n ];\n\n $count++;\n }\n\n $data = [\n 'labels' => $labels,\n 'datasets' => $datasets,\n 'type' => 'line'\n ];\n break;\n default:\n # code...\n break;\n }\n return $data;\n }", "public function load()\n {\n $result = Claroline::getDatabase()->query( \"\n SELECT\n S.id,\n S.title,\n S.publication_date,\n S.max_score,\n R.score,\n R.comment\n FROM\n `{$this->tbl['examination_session']}` AS S,\n `{$this->tbl['examination_score']}` AS R\n WHERE\n R.session_id = S.id\n AND\n R.user_id = \" . Claroline::getDatabase()->escape( $this->userId ) . \"\n ORDER BY\n S.publication_date\" );\n \n $this->resultList = array();\n \n foreach( $result as $line )\n {\n $id = $line[ 'id' ];\n $this->resultList[ $id ][ 'title' ] = $line[ 'title' ];\n $this->resultList[ $id ][ 'score' ] = $line[ 'score' ] . '/' . $line[ 'max_score' ];\n $this->resultList[ $id ][ 'comment' ] = $line[ 'comment' ];\n $this->resultList[ $id ][ 'date' ] = $line[ 'publication_date' ];\n \n }\n }", "public function processData()\n {\n \n $dateTimeStart = new DateTime($this->start);\n \n $dateEnd = $this->end;\n \n if (!$dateEnd) {\n $dateEnd = date('Y-m-d');\n }\n \n $dateTimeEnd = new DateTime($dateEnd);\n $this->yearEnd = $dateTimeEnd->format('Y');\n \n $beginYear = $dateTimeStart->format('Y');\n $this->yearStart = $beginYear;\n \n\n \n $numYears = $this->yearEnd - $this->yearStart;\n \n\n Log::debug( \"Start: {$this->yearStart} End: {$this->yearEnd} Num: {$numYears}\" );\n \n \n if (!$numYears) {\n $numYears = 1;\n }\n \n $this->allYears = [];\n \n for ($num = 0; $num <= $numYears; ++$num) {\n $this->allYears[] = $beginYear;\n ++$beginYear;\n }\n \n if (!$this->active) {\n $this->active = $this->yearEnd;\n }\n \n $active = $this->active;\n \n $this->yearBefore = $active-1;\n $this->yearAfter = $active+1;\n \n // ok ganz simple\n if (count($this->allYears) > 5) {\n\n \n if ($active + 2 >= $this->yearEnd) {\n $active = $this->yearEnd - 2;\n }\n \n if ( ($active - 2) <= $this->yearStart) {\n $active = $this->yearStart + 2;\n }\n \n $this->showYears[] = $active-2;\n $this->showYears[] = $active-1;\n $this->showYears[] = $active;\n $this->showYears[] = $active+1;\n $this->showYears[] = $active+2;\n \n } else {\n \n $this->showYears = $this->allYears;\n }\n \n $this->allYears = array_reverse($this->allYears);\n\n }", "public function get_chart_js_players_scores()\n {\n $players = $this->get_players_position();\n\n $player_1 = \\App\\User::find($players[1]);\n $player_2 = \\App\\User::find($players[2]);\n $player_3 = \\App\\User::find($players[3]);\n $player_4 = \\App\\User::find($players[4]);\n\n $individual_scores = [];\n foreach ($players as $player_id) {\n $individual_scores[$player_id] = 0;\n }\n\n foreach ($this->points()->get() as $point) {\n /** @var Game_Point $point */\n $type = $point->get_point_action_type();\n\n if ('positive' === $type->action_type) {\n $individual_scores[(int) $point->player_id]++;\n } elseif ('negative' === $type->action_type) {\n $individual_scores[(int) $point->player_id]--;\n }\n }\n\n return json_encode([\n 'labels' => [\n $player_1->name,\n $player_2->name,\n $player_3->name,\n $player_4->name\n ],\n 'datasets' => [\n [\n 'label' => 'Individual scores',\n 'borderColor' => '#000',\n 'backgroundColor' => [\n $this->get_winning_team() === self::TEAM_1\n ? '#38c172'\n : '#e3342f',\n $this->get_winning_team() === self::TEAM_1\n ? '#38c172'\n : '#e3342f',\n $this->get_winning_team() === self::TEAM_2\n ? '#38c172'\n : '#e3342f',\n $this->get_winning_team() === self::TEAM_2\n ? '#38c172'\n : '#e3342f'\n ],\n 'fill' => false,\n 'data' => [\n [\n 'x' => $player_1->name,\n 'y' => $individual_scores[$player_1->id]\n ],\n [\n 'x' => $player_2->name,\n 'y' => $individual_scores[$player_2->id]\n ],\n [\n 'x' => $player_3->name,\n 'y' => $individual_scores[$player_3->id]\n ],\n [\n 'x' => $player_4->name,\n 'y' => $individual_scores[$player_4->id]\n ]\n ]\n ]\n ]\n ]);\n }", "private function grab_data(){\n\t\t$y=0;\n\t\tfor($i=$this->startingmonth;$i>=0;$i--){\n\t\t\t$this->searchmonth = date(\"n\")-$i;\n\t\t\t$this->searchyear = date(\"Y\");\n\t\t\tif(0 >= $this->searchmonth){\n\t\t\t\twhile(0 >= $this->searchmonth){\n\t\t\t\t\t$this->searchmonth += 12;\n\t\t\t\t\t$this->searchyear--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$this->count_chrono_records();\n\t\t\t$this->monthlyrecordvolume[$i] = intval($this->volume_of_records_in_timerange);\n\t\t\tif(0==$this->max_month_value or $this->monthlyrecordvolume[$i] > $this->max_month_value){\n\t\t\t\t$this->max_month_value = $this->monthlyrecordvolume[$i];\n\t\t\t}\n\t\t\t$this->monthaggregator += $this->monthlyrecordvolume[$i];\n\t\t\t\n\t\t\t$this->count_months_recorded_this_year++;\n\t\t\tif(12 == $this->searchmonth or 0 == $i ){\n\t\t\t\t$this->ave_this_year[$y]['volume'] = intval($this->monthaggregator / $this->count_months_recorded_this_year);\n\t\t\t\t$this->ave_this_year[$y]['month'] = $i;\n\t\t\t\t$this->ave_this_year[$y]['year'] = $this->searchyear;\n\t\t\t\t$this->monthaggregator = 0;\n\t\t\t\t$this->count_months_recorded_this_year = 0;\n\t\t\t\t$y++;\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "function block_ranking_create_group_points_evolution_chart($groupid) {\n $records = block_ranking_get_points_evolution_by_group($groupid);\n\n $pointsbydate = [];\n\n // Pega o primeiro registro, tira do array e soma os pontos na data.\n if (count($records)) {\n $firstrecord = array_shift($records);\n $lastdate = date('d-m-Y', $firstrecord->timecreated);\n\n $pointsbydate[$lastdate] = $firstrecord->points;\n }\n\n // Percorre os demais registros.\n if (count($records)) {\n foreach ($records as $points) {\n $currentdate = date('d-m-Y', $points->timecreated);\n\n if ($lastdate != $currentdate && !array_key_exists($currentdate, $pointsbydate)) {\n $lastdate = $currentdate;\n\n // Cria novo indice de novo data com valor zero.\n $pointsbydate[$lastdate] = 0;\n }\n\n $pointsbydate[$lastdate] += $points->points;\n }\n }\n\n if (empty($pointsbydate)) {\n return '';\n }\n\n $chart = new \\core\\chart_line(); // Create a bar chart instance.\n $chart->set_smooth(true);\n $series = new \\core\\chart_series(get_string('graph_group_evolution_title', 'block_ranking'), array_values($pointsbydate));\n $series->set_type(\\core\\chart_series::TYPE_LINE);\n $chart->add_series($series);\n $chart->set_labels(array_keys($pointsbydate));\n\n return $chart;\n}", "function getting_chart_values($searcheddate = null, $fivemins = false, $table = false) {\n global $DB;\n $date;\n if ($searcheddate == null) {\n $temp = new DateTime('now', core_date::get_server_timezone_object());\n $date = new DateTime($temp->format('y-m-d'));\n } else {\n $date = new DateTime(\"@$searcheddate\");\n $date->setTimezone(core_date::get_server_timezone_object());\n }\n\n $result = array();\n $all = get_connected_users_from_date($date->getTimestamp());\n foreach ($all as $row) {\n $checkdate = new DateTime (\"@$row->date\");\n $checkdate->setTimezone(core_date::get_server_timezone_object());\n if ($date->format('y') == $checkdate->format('y')) {\n if ($date->format('m') == $checkdate->format('m')) {\n if ($date->format('d') == $checkdate->format('d')) {\n if ($table) {\n $result[$checkdate->format('H:i')][1] = $row->connectedusers;\n $result[$checkdate->format('H:i')][5] = $row->connecteduserfive;\n } else {\n if ($fivemins) {\n $result[$checkdate->format('H:i')] = $row->connecteduserfive;\n } else {\n $result[$checkdate->format('H:i')] = $row->connectedusers;\n }\n }\n }\n }\n }\n }\n return $result;\n}", "function srTracker($access) {\n\t\t$sql= \"SELECT `date`, `sr` FROM `match` WHERE `sr`!=0 GROUP BY `date`;\";\n\t\t$data=$access->query($sql);\n\t\twhile ($row=$data->fetch_assoc()) {\n\t\t\techo \"['\" . $row[\"date\"] . \"', \" . $row[\"sr\"] . \"],\";\n\t\t}\n\t}", "public function get_calibration_scores();", "public function getScoreBoardData() {\n $participations = $this->participations;\n foreach ($participations as $p) {\n $p->final_points = $p->user->score($this);\n $p->final_latest_submit = $p->user->getLatestSubmitTime($this);\n }\n // $participations = $participations\n // ->sortBy('final_latest_submit')\n // ->sortByDesc('final_points');\n\n\n $participations = $participations->sort(function($a, $b) {\n if($a->final_points === $b->final_points) {\n if($a->final_latest_submit === $b->final_latest_submit) {\n return 0;\n }\n return $a->final_latest_submit < $b->final_latest_submit ? -1 : 1;\n } \n return $a->final_points < $b->final_points ? 1 : -1;\n });\n\n $i = 1;\n foreach ($participations as $p) {\n $p->final_position = $i++;\n }\n\n return $participations;\n }", "function get_historical_views_chart() {\r\n\tif (current_user_authored($post)){\r\n\t\tglobal $wp_query;\r\n\t\tget_and_store_page_views(false, true);\r\n\t\t$historical_views = get_user_meta($wp_query->get_queried_object_id(), 'ga_author_historical_views');\r\n\r\n\t\tif(empty($historical_views)){\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t$page_views_string = \"'\" . implode ( \"', '\", array_keys($historical_views[0]) ) . \"'\";\r\n\t\t$dates_string = implode( ',', $historical_views[0] );\r\n\r\n\t\t$result = '<section class=\"stats_charts\">\r\n\t\t\t\t\t\t<h2 class=\"kicker\">All articles by month</h2>\r\n\t\t\t\t\t\t<div class=\"graphic\">\r\n\t\t\t\t\t\t\t<canvas id=\"monthly-views\" width=\"800\" height=\"450\"></canvas>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</section>';\r\n\t\t$result.= '<script>\r\n\t\t\t\t\t\tnew Chart(document.getElementById(\"monthly-views\"), {\r\n\t\t\t\t\t\t\ttype: \"line\",\r\n\t\t\t\t\t\t\tdata: {\r\n\t\t\t\t\t\t\t\tlabels: [' . $page_views_string . '],\r\n\t\t\t\t\t\t\t\tdatasets: [{ \r\n\t\t\t\t\t\t\t\t\tdata: [' . $dates_string . '],\r\n\t\t\t\t\t\t\t\t\tlabel: \"Users\",\r\n\t\t\t\t\t\t\t\t\tborderColor: \"#BF2528\",\r\n\t\t\t\t\t\t\t\t\tfill: true\r\n\t\t\t\t\t\t\t\t},\r\n\r\n\t\t\t\t\t\t\t\t]\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\toptions: {\r\n\t\t\t\t\t\t\t\ttitle: {\r\n\t\t\t\t\t\t\t\tdisplay: false,\r\n\t\t\t\t\t\t\t\ttext: \"Monthly views\"\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\tlegend: {\r\n\t\t\t\t\t\t\t\t\t\tdisplay: false\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\tlayout: {\r\n\t\t\t\t\t\t\t\t\tpadding: {\r\n\t\t\t\t\t\t\t\t\t\tleft: 5,\r\n\t\t\t\t\t\t\t\t\t\tright: 5,\r\n\t\t\t\t\t\t\t\t\t\ttop: 25,\r\n\t\t\t\t\t\t\t\t\t\tbottom: 5\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t</script>';\r\n\t\treturn $result;\r\n\t}\r\n}", "public function get_main_chart() {\n\t\tglobal $wp_locale;\n\n\t\t// Get orders and dates in range - we want the SUM of order totals, COUNT of order items, COUNT of orders, and the date\n\t\t$orders = $this->get_order_report_data( array(\n\t\t\t'data' => array(\n\t\t\t\t'ID' => array(\n\t\t\t\t\t'type' => 'post_data',\n\t\t\t\t\t'function' => 'COUNT',\n\t\t\t\t\t'name' => 'total_orders',\n\t\t\t\t\t'distinct' => true,\n\t\t\t\t),\n\t\t\t\t'post_date' => array(\n\t\t\t\t\t'type' => 'post_data',\n\t\t\t\t\t'function' => '',\n\t\t\t\t\t'name' => 'post_date'\n\t\t\t\t),\n\t\t\t),\n\t\t\t'group_by' => $this->group_by_query,\n\t\t\t'order_by' => 'post_date ASC',\n\t\t\t'query_type' => 'get_results',\n\t\t\t'filter_range' => true\n\t\t) );\n\n\t\t// Get Abadoned Carts in range 1 years\n\t\t$abandoned_carts_items = CartModel::get_carts_one_year();\n\t\t$ee_abandoned_posts = array();\n\n\t\tif ( $abandoned_carts_items ) {\n\n\t\t\tforeach ( $abandoned_carts_items as $order_item ) {\n\t\t\t\t$date = date( 'Y-m-d h:i:s', $order_item->post_date );\n\n\t\t\t\t$obj = new stdClass();\n\t\t\t\t$obj->post_date = $date;\n\t\t\t\t$obj->abandoned_cart_itms = 1;\n\n\t\t\t\t$ee_abandoned_posts[] = $obj;\n\t\t\t}\n\t\t}\t\n\n\t\t// Prepare data for report\n\t\t$order_counts = $this->prepare_chart_data( $orders, 'post_date', 'total_orders', $this->chart_interval, $this->start_date, $this->chart_groupby );\n\t\t$abandoned_carts_encoded = $this->prepare_chart_data( $ee_abandoned_posts, 'post_date', 'abandoned_cart_itms', $this->chart_interval, $this->start_date, $this->chart_groupby );\n\t\t\n\t\t// Encode in json format\n\t\t$chart_data = json_encode( array(\n\t\t\t'order_counts' => array_values( $order_counts ),\n\t\t\t'abandoned_cart_itms' => array_values( $abandoned_carts_encoded )\n\t\t) );\n\t\t?>\n\n\t\t<?php //echo $chart_data; ?>\n\t\t<div class=\"chart-container\">\n\t\t\t<div class=\"chart-placeholder main\"></div>\n\t\t</div>\n\t\t<script type=\"text/javascript\">\n\n\t\t\tvar main_chart;\n\n\t\t\tjQuery(function(){\n\t\t\t\tvar order_data = jQuery.parseJSON( '<?php echo $chart_data; ?>' );\n\t\t\t\tvar drawGraph = function( highlight ) {\n\t\t\t\t\tvar series = [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlabel: \"<?php echo esc_js( __( 'Number of conversions', 'cart_converter' ) ) ?>\",\n\t\t\t\t\t\t\tdata: order_data.order_counts,\n\t\t\t\t\t\t\tcolor: '<?php echo $this->chart_colours['order_counts']; ?>',\n\t\t\t\t\t\t\tbars: { fillColor: '<?php echo $this->chart_colours['order_counts']; ?>', fill: true, show: true, lineWidth: 0, barWidth: <?php echo $this->barwidth; ?> * 0.5, align: 'center' },\n\t\t\t\t\t\t\tshadowSize: 0,\n\t\t\t\t\t\t\thoverable: true\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlabel: \"<?php echo esc_js( __( 'Abandoned Carts', 'cart_converter' ) ) ?>\",\n\t\t\t\t\t\t\tdata: order_data.abandoned_cart_itms,\n\t\t\t\t\t\t\tcolor: '<?php echo $this->chart_colours['abandoned_carts']; ?>',\n\t\t\t\t\t\t\tpoints: { show: true, radius: 5, lineWidth: 3, fillColor: '#fff', fill: true },\n\t\t\t\t\t\t\tlines: { show: true, lineWidth: 4, fill: false },\n\t\t\t\t\t\t\tshadowSize: 0,\n\t\t\t\t\t\t\thoverable: true\n\t\t\t\t\t\t}\n\t\t\t\t\t];\n\n\t\t\t\t\tif ( highlight !== 'undefined' && series[ highlight ] ) {\n\t\t\t\t\t\thighlight_series = series[ highlight ];\n\n\t\t\t\t\t\thighlight_series.color = '#9c5d90';\n\n\t\t\t\t\t\tif ( highlight_series.bars )\n\t\t\t\t\t\t\thighlight_series.bars.fillColor = '#9c5d90';\n\n\t\t\t\t\t\tif ( highlight_series.lines ) {\n\t\t\t\t\t\t\thighlight_series.lines.lineWidth = 5;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tmain_chart = jQuery.plot(\n\t\t\t\t\t\tjQuery('.chart-placeholder.main'),\n\t\t\t\t\t\tseries,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlegend: {\n\t\t\t\t\t\t\t\tshow: false\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t grid: {\n\t\t\t\t\t\t color: '#aaa',\n\t\t\t\t\t\t borderColor: 'transparent',\n\t\t\t\t\t\t borderWidth: 0,\n\t\t\t\t\t\t hoverable: true\n\t\t\t\t\t\t },\n\t\t\t\t\t\t xaxes: [ {\n\t\t\t\t\t\t \tcolor: '#aaa',\n\t\t\t\t\t\t \tposition: \"bottom\",\n\t\t\t\t\t\t \ttickColor: 'transparent',\n\t\t\t\t\t\t\t\tmode: \"time\",\n\t\t\t\t\t\t\t\ttimeformat: \"<?php if ( $this->chart_groupby == 'day' ) echo '%d %b'; else echo '%b'; ?>\",\n\t\t\t\t\t\t\t\tmonthNames: <?php echo json_encode( array_values( $wp_locale->month_abbrev ) ) ?>,\n\t\t\t\t\t\t\t\ttickLength: 1,\n\t\t\t\t\t\t\t\tminTickSize: [1, \"<?php echo $this->chart_groupby; ?>\"],\n\t\t\t\t\t\t\t\tfont: {\n\t\t\t\t\t\t \t\tcolor: \"#aaa\"\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t\t} ],\n\t\t\t\t\t\t yaxes: [\n\t\t\t\t\t\t \t{\n\t\t\t\t\t\t \t\tmin: 0,\n\t\t\t\t\t\t \t\tminTickSize: 1,\n\t\t\t\t\t\t \t\ttickDecimals: 0,\n\t\t\t\t\t\t \t\tcolor: '#d4d9dc',\n\t\t\t\t\t\t \t\tfont: { color: \"#aaa\" }\n\t\t\t\t\t\t \t},\n\t\t\t\t\t\t \t{\n\t\t\t\t\t\t \t\tposition: \"right\",\n\t\t\t\t\t\t \t\tmin: 0,\n\t\t\t\t\t\t \t\ttickDecimals: 2,\n\t\t\t\t\t\t \t\talignTicksWithAxis: 1,\n\t\t\t\t\t\t \t\tcolor: 'transparent',\n\t\t\t\t\t\t \t\tfont: { color: \"#aaa\" }\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t ],\n\t\t\t\t \t\t}\n\t\t\t\t \t);\n\n\t\t\t\t\tjQuery('.chart-placeholder').resize();\n\t\t\t\t}\n\n\t\t\t\tdrawGraph();\n\n\t\t\t\tjQuery('.highlight_series').hover(\n\t\t\t\t\tfunction() {\n\t\t\t\t\t\tdrawGraph( jQuery(this).data('series') );\n\t\t\t\t\t},\n\t\t\t\t\tfunction() {\n\t\t\t\t\t\tdrawGraph();\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t});\n\t\t</script>\n\t\t<?php\n\t}", "public function chart($start, $end) {\n // The result array\n $result = array();\n\n // Gets all the universities\n $universities = $this->University->find('all');\n\n // Gets the values involved with the chart\n $d62_d65 = array();\n for ($i = 62; $i <= 65; $i++) {\n array_push($d62_d65, $this->Data->findByNombre('D' . $i));\n }\n\n // Does the year by year calcuation\n for ($year = $start; $year <= $end; $year++) {\n // The grades list\n $grades = array();\n for ($i = 62; $i <= 65; $i++) {\n array_push($grades, 0);\n }\n\n // Does the calculation for each university in the current year\n foreach ($universities as $university) {\n $uy_d62_d65 = array();\n\n // Get the data involved\n foreach ($d62_d65 as $data_d_) {\n $uy_d_ = $this->UniversityYearData->findByDato_iddatoAndUniversidad_iduniversidadAndAnho($data_d_['Data']['iddato'], $university['University']['iduniversidad'], $year);\n\n // Check the obtained data and saves it\n if (!empty($uy_d_)) {\n array_push($uy_d62_d65, $uy_d_['UniversityYearData']['valor']);\n } else {\n array_push($uy_d62_d65, 0);\n }\n }\n\n // Checks all the data and does the calculation\n if (!empty($uy_d62_d65)) {\n foreach ($grades as $index => $grade) {\n $grades[$index] = $grade + $uy_d62_d65[$index];\n }\n }\n }\n\n // Saves the current year calculation\n $prc001_16 = array();\n $prc001_16['year'] = $year;\n $prc001_16['value'] = $grades;\n array_push($result, $prc001_16);\n }\n\n // Gets the series and ticks\n $series = array();\n $ticks = array();\n foreach ($result as $year_result) {\n array_push($ticks, $year_result['year']);\n array_push($series, $year_result['value']);\n }\n\n // Gets the grades\n $grades = array();\n foreach ($d62_d65 as $data_d_) {\n array_push($grades, $data_d_['Data']['descripcion']);\n }\n\n // Saves the final result\n $result = array();\n $result['ticks'] = $ticks;\n $result['series'] = $series;\n $result['grades'] = $grades;\n $result['view'] = 'prc001_16';\n FirePHP::getInstance(true)->log($result);\n\n // Returns\n return $result;\n }", "private function draw_svg_ave_lines($y){\n\t\t$yvalue = $this->axisheight - ($this->yscale * $this->ave_this_year[$y]['volume']);\n\t\t\n\t\tif(11 < $this->startingmonth - $this->ave_this_year[$y]['month']){\n\t\t\tif(0 != $this->ave_this_year[$y]['month']){\n\t\t\t\t$this->x_year_start = ($this->startingmonth - $this->ave_this_year[$y]['month'] - 12 + 1.5 )*$this->monthwidth;\n\t\t\t}else{\n\t\t\t\t$this->x_year_start = ($this->startingmonth - date(\"n\") + 1.5 ) * $this->monthwidth;\n\t\t\t}\n\t\t}else{\n\t\t\t$this->x_year_start = $this->monthwidth / 2;\n\t\t}\n\t\t$this->x_year_end = ($this->startingmonth-$this->ave_this_year[$y]['month'] + 1.5)*$this->monthwidth;\n\t\t\n\t\t$ytext = $yvalue -20;\n\t\t$this->x_year_text = $this->x_year_start + 10;\n\t\t\n\t\t$this->main_graph_ave_lines .= \"\\t<text x=\\\"$this->x_year_text\\\" y=\\\"$ytext\\\" font-family=\\\"sans-serif\\\" font-size=\\\"16px\\\" fill=\\\"$this->average_graphline_color\\\">{$this->ave_this_year[$y]['volume']}</text>\\n\";\n\t\t$this->main_graph_ave_lines .= \"\\t<path stroke=\\\"$this->average_graphline_color\\\" stroke-dasharray=\\\"5, 5\\\" d=\\\"M$this->x_year_start $yvalue H$this->x_year_end\\\"/>\\n\";\n\t\treturn;\n\t}", "protected function get_lines()\n {\n }", "function yearly_chart() {\n $this->load->view(\"expenses/yearly_chart\");\n }", "private function trackerGrid() {\n\t\t\t\t\n\t\t$latestDays = filters\\timeFilter::getPeriodWithinRange(0, filters\\timeFilter::$daysTimeframe, $this->settingVars);\n\t\t\t\t\n\t\t$arr \t\t= array();\n\t\t$arrChart \t= array();\n\t\t$cols \t\t= array();\n\t\t\n\t\tif(isset($_REQUEST['PROMOTION']))\n\t\t{\n\t\t\tif($_REQUEST['PROMOTION'] == 'YES')\n\t\t\t{\n\t\t\t\t// filters\\timeFilter::prepareTyLyMydateRange($this->settingVars); //Total Weeks\n\t\t\t\t\n\t\t\t\t$qPart = '';\n\t\t\t\tif (isset($_REQUEST[\"FS\"]) && $_REQUEST[\"FS\"] != ''){\n\t\t\t\t\t$storeStock \t= $this->settingVars->dataArray['F18']['NAME'];\n\t\t\t\t\t$availInst \t\t= $this->settingVars->dataArray['F15']['NAME'];\n\t\t\t\t\t$depotService\t= $this->settingVars->dataArray['F14']['NAME'];\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$latestDay = filters\\timeFilter::getPeriodWithinRange(0, 1, $this->settingVars);\n\t\t\t\t\t\n\t\t\t\t\t//MAIN TABLE QUERY\t\t\t\n\t\t\t\t\t$query = \"SELECT \".$this->settingVars->maintable.\".skuID AS SKUID \" .\n\t\t\t\t\t\t\t\t\",sku AS SKU \" .\n\t\t\t\t\t\t\t\t\",\".$this->settingVars->dateField.\" AS MYDATES \" .\n\t\t\t\t\t\t\t\t\",SUM(\".$this->settingVars->ProjectValue.\") AS SALES\" .\n\t\t\t\t\t\t\t\t\",SUM(\".$this->settingVars->ProjectVolume.\") AS QTY\" .\n\t\t\t\t\t\t\t\t\",SUM($storeStock) AS STORESTOCK\".\n\t\t\t\t\t\t\t\t\",AVG($availInst) AS STOREINSTOCK\".\n\t\t\t\t\t\t\t\t\",AVG($depotService) AS DEPOTSERVICE\".\n\t\t\t\t\t\t\t\t\" FROM \" . $this->settingVars->tablename . $this->queryPart .\n\t\t\t\t\t\t\t\t\" AND (\" . filters\\timeFilter::$tyWeekRange . \" OR \" . filters\\timeFilter::$lyWeekRange . \") GROUP BY SKUID, SKU, MYDATES ORDER BY MYDATES ASC, SALES DESC\";\n\t\t\t\t\t//echo $query;exit;\n\t\t\t\t\t$result = $this->queryVars->queryHandler->runQuery($query, $this->queryVars->linkid, db\\ResultTypes::$TYPE_OBJECT);\n\t\t\t\t\t\n\t\t\t\t\t$temp1\t= array();\n\t\t\t\t\t$temp2\t= array();\n\t\t\t\t\t$temp3\t= array();\n\t\t\t\t\t$temp4\t= array();\n\t\t\t\t\t$temp5\t= array();\n\t\t\t\t\t$latestDays = array_reverse($latestDays);\n\t\t\t\t\tforeach($latestDays as $lw)\n\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tif($key == 0)\n\t\t\t\t\t\t\t$cols[] \t= array('data'=>'L_'.str_replace(\"-\",\"\",$lw),'label'=>date(\"jS M Y\",strtotime($lw)));\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tif (is_array($result) && !empty($result)) {\n\t\t\t\t\t\t\t$searchKey = array_search($lw,array_column($result,\"MYDATES\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($searchKey)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$value = $result[$searchKey];\n\t\t\t\t\t\t\t$temp1[\"L_\".str_replace(\"-\",\"\",$lw)]\t= (int)$value['SALES'];\n\t\t\t\t\t\t\t$temp2[\"L_\".str_replace(\"-\",\"\",$lw)]\t= (int)$value['QTY'];\n\t\t\t\t\t\t\t$temp3[\"L_\".str_replace(\"-\",\"\",$lw)]\t= (int)$value['STORESTOCK'];\n\t\t\t\t\t\t\t$account = $lw;\n\t\t\t\t\t\t\tif (in_array($account, filters\\timeFilter::$tyDaysRange)) { //$numberFrom AND $numberTo COMES HANDY HERE\n\t\t\t\t\t\t\t\t$temp4[\"L_\".str_replace(\"-\",\"\",$lw)] \t= number_format($value['STOREINSTOCK'],1, '.', '');\n\t\t\t\t\t\t\t\t$temp5[\"L_\".str_replace(\"-\",\"\",$lw)]\t= number_format($value['DEPOTSERVICE'],1, '.', '');\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$temp = array();\n\t\t\t\t\t\t\t$temp['MYDATE'] = $lw;\n\t\t\t\t\t\t\t$temp['QTY'] = (int)$value['QTY'];\n\t\t\t\t\t\t\t$temp['STORESTOCK'] = (int)$value['STORESTOCK'];\n\t\t\t\t\t\t\t$temp['STOREINSTOCK'] = number_format($value['STOREINSTOCK'],1, '.', '');\n\t\t\t\t\t\t\t$temp['DEPOTSERVICE'] = number_format($value['DEPOTSERVICE'],1, '.', '');\n\t\t\t\t\t\t\t$arrChart[] = $temp;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$temp1[\"L_\".str_replace(\"-\",\"\",$lw)] = $temp2[\"L_\".str_replace(\"-\",\"\",$lw)] = $temp3[\"L_\".str_replace(\"-\",\"\",$lw)] = $temp4[\"L_\".str_replace(\"-\",\"\",$lw)] = $temp5[\"L_\".str_replace(\"-\",\"\",$lw)] = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$temp = array();\n\t\t\t\t\t\t\t$temp['MYDATE'] = $lw;\n\t\t\t\t\t\t\t$temp['QTY'] = $temp['STORESTOCK'] = $temp['STOREINSTOCK'] = $temp['DEPOTSERVICE'] = 0;\n\t\t\t\t\t\t\t$arrChart[] = $temp;\n\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t$temp1['label'] = \"SALES \".$this->settingVars->currencySign;\n\t\t\t\t\t$temp2['label'] = \"QTY\";\n\t\t\t\t\t$temp3['label'] = \"STORE STOCK\";\n\t\t\t\t\t$temp4['label'] = \"STORE INSTOCK %\";\n\t\t\t\t\t$temp5['label'] = \"DEPOT SERVICE %\";\n\t\t\t\t\t\n\t\t\t\t\t$arr[0]\t= $temp1;\t\t\t\t\n\t\t\t\t\t$arr[1]\t= $temp2;\t\t\t\t\n\t\t\t\t\t$arr[2]\t= $temp3;\t\t\t\t\n\t\t\t\t\t$arr[3]\t= $temp4;\t\t\t\t\n\t\t\t\t\t$arr[4]\t= $temp5;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfilters\\timeFilter::fetchPeriodWithinRange(0, filters\\timeFilter::$daysTimeframe, $this->settingVars); //To get $mydateRange\n\t\t\t\t\n\t\t\t\t$act = $_REQUEST['ACCOUNT'];\n\t\t\t\t$account = $this->settingVars->dataArray[$act]['NAME'];\n\t\t\t\t\n\t\t\t\t//asort($latestDays);\n\t\t\t\t\n\t\t\t\t$getLdates = array();\n\t\t\t\tforeach($latestDays as $date)\n\t\t\t\t{\t\t\t\n\t\t\t\t\t$getLdates[] = \"MAX((CASE WHEN \" . $this->settingVars->period . \"='\".$date.\"' THEN 1 ELSE 0 END)*$account) AS DATE\".str_replace(\"-\",\"\",$date);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$qPart = implode(\",\",$getLdates);\n\t\t\t\t\n\t\t\t\t//MAIN TABLE QUERY\n\t\t\t\t$query = \"SELECT \".$this->settingVars->maintable.\".skuID AS SKUID \" .\n\t\t\t\t\t\",sku AS SKU \" .\n\t\t\t\t\t\",SUM(\".$this->settingVars->ProjectValue.\") AS SALES\" .\n\t\t\t\t\t\",SUM(\".$this->settingVars->ProjectVolume.\") AS QTY,\" .\n\t\t\t\t\t$qPart.\n\t\t\t\t\t\" FROM \" . $this->settingVars->tablename . $this->queryPart .\n\t\t\t\t\t\" AND \" . filters\\timeFilter::$mydateRange . \" GROUP BY SKUID, SKU ORDER BY SALES DESC\";\n\t\t\t\t$result = $this->queryVars->queryHandler->runQuery($query, $this->queryVars->linkid, db\\ResultTypes::$TYPE_OBJECT);\n\t\t\t\t\n\t\t\t\tif (is_array($result) && !empty($result)) {\n\t\t\t\t\tforeach ($result as $key => $value) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t$temp \t\t\t\t= array();\n\t\t\t\t\t\t$temp['SKUID'] \t\t= $value['SKUID'];\n\t\t\t\t\t\t$temp['SKU'] \t\t= $value['SKU'];\n\t\t\t\t\t\t$temp['SALES'] \t\t= number_format($value['SALES'], 1, '.', '');\n\t\t\t\t\t\t$temp['QTY'] \t\t= number_format($value['QTY'], 1, '.', '');\n\t\t\t\t\t\tforeach($latestDays as $lw)\n\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif($key == 0)\n\t\t\t\t\t\t\t\t$cols[] \t= array('data'=>'Tracker_L'.str_replace(\"-\",\"\",$lw),'label'=>date(\"jS M Y\",strtotime($lw)));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$temp['Tracker_L'.str_replace(\"-\",\"\",$lw)] \t= number_format($value['DATE'.str_replace(\"-\",\"\",$lw)], 1, '.', '');\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$arr[] \t\t\t\t= $temp;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t}\n $this->jsonOutput['TrackerGrid'] \t= $arr;\n $this->jsonOutput['TrackerChart'] \t= $arrChart;\n $this->jsonOutput['Tracker_L'] \t\t= $cols;\n }", "function form_chart(&$schedule, &$roster) {\n $heats = array();\n foreach ($schedule as $sched_heat) {\n $heat = array();\n foreach ($sched_heat as $index) {\n $heat[] = $roster[$index];\n }\n $heats[] = $heat;\n }\n return $heats;\n}", "public function getScores()\n {\n \t$url = 'http://www.nfl.com/liveupdate/scorestrip/ss.json';\n \t$content = file_get_contents($url);\n \t$ss_json = json_decode($content, true);\n \t\n $url = 'http://www.nfl.com/liveupdate/scores/scores.json';\n $content = file_get_contents($url);\n $scores_json = json_decode($content, true);\n\n foreach ($ss_json['gms'] as $game) {\n // Map game data to game\n $eid = $game[\"eid\"];\n $game['data'] = $scores_json[$eid];\n \n // Get team IDs\n $home_team = DB::table('team')->where('abbr', $game['data']['home']['abbr'])->value('id');\n $away_team = DB::table('team')->where('abbr', $game['data']['away']['abbr'])->value('id');\n \n // Save teams\n if (! $home_team > 0) {\n \tprint \"Inserting home team into DB<br/>\";\n $home_team = DB::table('team')->insertGetId([\n 'name' => $game['hnn'],\n 'abbr' => $game['data']['home']['abbr']\n ]);\n } else {\n print \"Updating home team in DB<br/>\";\n DB::table('team')->where('id',$home_team)->update(['name' => $game['hnn']]);\n }\n if (! $away_team > 0) {\n print \"Inserting away team into DB<br/>\";\n $away_team = DB::table('team')->insertGetId([\n 'name' => $game['vnn'],\n 'abbr' => $game['data']['away']['abbr']\n ]);\n } else {\n print \"Updating away team in DB<br/>\";\n DB::table('team')->where('id',$away_team)->update(['name' => $game['vnn']]);\n }\n \n // Determine start time\n $year = substr($eid,0,4);\n $month = substr($eid,4,2);\n $day = substr($eid,6,2);\n $time = explode(':',$game['t']);\n $hours = $time[0] + 12;\n $minutes = $time[1];\n $seconds = 0;\n $start = date(\"Y-m-d H:i:s\", mktime($hours, $minutes, $seconds, $month, $day, $year));\n \n // Pull game ID\n $gid = DB::table('game')\n ->where('home_team_id', $home_team)\n ->where('away_team_id', $away_team)\n ->value('id');\n \n // Save game\n if (! $gid > 0) {\n print \"Inserting game for \". $home_team .\" \". $away_team .\" \". $start .\"<br/>\";\n $gid = DB::table('game')->insertGetId([\n \t'eid' => $eid,\n 'home_team_id' => $home_team,\n \t 'away_team_id' => $away_team,\n 'start' => $start\n ]);\n }\n \n // Save scores\n print \"Inserting scores \". $game['data']['home']['score']['T'] .\" \". $game['data']['away']['score']['T'] .\"<br/>\";\n if ($game['data']['home']['score']['T'] != Null && $game['data']['home']['score']['T'] != Null) {\n DB::table('score')->insert([\n 'game_id' => $gid,\n 'home_q1' => $game['data']['home']['score']['1'],\n 'home_q2' => $game['data']['home']['score']['2'],\n 'home_q3' => $game['data']['home']['score']['3'],\n 'home_q4' => $game['data']['home']['score']['4'],\n 'home_q5' => $game['data']['home']['score']['5'],\n 'away_q1' => $game['data']['away']['score']['1'],\n 'away_q2' => $game['data']['away']['score']['2'],\n 'away_q3' => $game['data']['away']['score']['3'],\n 'away_q4' => $game['data']['away']['score']['4'],\n 'away_q5' => $game['data']['away']['score']['5']\n ]);\n }\n print \"<p>----------------------------------------</p>\";\n }\n\n $response = array('exit_code' => 'success');\n //return $response;\n }", "private function _getHighScores(){\n $highScores = array();\n $sql = \"SELECT * FROM ranking ORDER BY `time` ASC LIMIT 10\";\n $pdo = $this->_helperConnection->getPdo();// récupération d'une instance de connection PDO\n $req = $pdo->query($sql);\n $results = $req->fetchAll(PDO::FETCH_ASSOC);// récupération des résultats de la requête\n\n foreach ($results as $oneScore){\n // Instanciation et hydratation de l'objet Score\n $scoreObs = new Score();\n $scoreObs->playerName = $oneScore[\"player_name\"];\n $scoreObs->difficulty = $oneScore[\"difficulty\"];\n $scoreObs->completionTime = $oneScore[\"time\"];\n\n $highScores[] = $scoreObs; // ajout de l'objet score à la collection\n }\n\n return $highScores;\n }", "function getchartarray($image) {\ndate_default_timezone_set(\"Asia/Calcutta\"); //setting the default timezone to IST\n$details=new stdclass();\n\n//// Show the image values\n$im = imagecreatefrompng($image);//$image can be replace by the the PNG image location of precipitation chart from fallingrain.com if this file/script is intended to be used as standalone under testing/development\n\n////search for pixel location of all x-coordinates\n\n$days=array();\n$k=0;\nfor ($x=15;$x<=478;$x++){\n\tfor ($y=183;$y<=186;$y++){\n\t\t$rgb = imagecolorat($im, $x, $y);\n\t\t//echo $rgb;\n\t\tif ($rgb=='3' && !isset($days[$k])){\n\t\t\t$days[$k]=$x;\n\t\t\t$k++;\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}\n\t//echo \"<br>\";\n}\n//var_dump($days);\n\n\n////$days has the pixel locations of x coordinates now\n\n////calibrating y-coordinates against the each pixel on y axis (for any scale of y axis)\n$precip=array();\n$y_scale=array();\n$timehrs=array(\n\t\t'1'=>array(0,0,0,0,0,0,0,3,0,0,0,3,3,3,3,3,3,3,0,0,0,0,0,3),\n\t\t'2'=>array(0,3,0,0,0,3,3,0,0,0,3,3,3,0,0,3,0,3,0,3,3,0,0,3),\n\t\t'3'=>array(0,3,0,0,3,0,3,0,0,0,0,3,3,0,3,0,0,3,0,3,0,3,3,0),\n\t\t'4'=>array(0,0,3,3,0,0,0,3,0,3,0,0,3,3,3,3,3,3,0,0,0,3,0,0),\n\t\t'5'=>array(3,3,3,0,3,0,3,0,3,0,0,3,3,0,3,0,0,3,3,0,0,3,3,0),\n\t\t'6'=>array(0,3,3,3,3,0,3,0,0,3,0,3,3,0,3,0,0,3,0,0,0,3,3,0),\n\t\t'7'=>array(),\n\t\t'8'=>array(0,3,0,3,3,0,3,0,3,0,0,3,3,0,3,0,0,3,0,3,0,3,3,0),\n\t\t'9'=>array(0,3,3,0,0,0,3,0,0,3,0,3,3,0,3,0,0,3,0,3,3,3,3,0),\n\t\t'0'=>array(0,0,0,0,0,0,0,3,3,3,3,0,3,0,0,0,0,3,0,3,3,3,3,0)\n\t\t//'z'=>array(3,0,0,0,3,3,3,0,0,3,0,3,3,0,3,0,0,3,3,3,0,0,0,3)\n);\nfor ($x=0,$i=0;$x<=3;$x++){\n\tfor ($y=14;$y<=19;$y++,$i++){\n\t\t$rgb = imagecolorat($im, $x, $y);\n\t\t$y_scale[$i]=$rgb;\n\t}\n}\nforeach ($timehrs as $key=>$num){\n\tif ($num==$y_scale)\n\t\t$y_upper_index=$key*10;\n}\nfor ($m=1,$key=186;$m<=170;$m++,$key--) { // 170 is the height of the graph in pixels\n\t$value=$y_upper_index*$m/170;\n\t$precip[$key]=$value; // here the key is the y coordinate of pixel grid\n}\n\nforeach($precip as $precipvalue) {\n\t//echo \"$precipvalue<br>\";\n}\n//// $preci[186-17] has the precipitation values for y axis from picel no 186 to 17\n\n\n//// getting the precipitation values for all x axis-pixels between 21-478 on the graph\n$precip_graph=array();\nfor ($x=21;$x<=472;$x++){\n\tfor ($y=17;$y<=186;$y++){\n\t\t$rgb = imagecolorat($im, $x, $y);\n\t\tif ($rgb==1) {\n\t\t\t$precip_graph[$x]=$precip[$y];\n\t\t\tbreak;\n\t\t}\n\t}\n} \n//var_dump($precip_graph);\n//// to calibrate x axis- time stamp is needed\n//// Search for getting the date (month and year can be taken from inbuilt function date() )\n$datenum=array(\n\t\t'1'=>array(0,0,3,0,0,0,0,3,0,3,0,0,0,0,0,3,3,3,3,3,3,3,3,3,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,3),\n\t\t'2'=>array(0,3,0,0,0,0,3,3,3,0,0,0,0,3,0,3,3,0,0,0,3,0,0,3,3,0,0,3,0,0,0,3,0,3,3,0,0,0,0,3),\n\t\t'3'=>array(0,3,0,0,0,0,3,0,3,0,0,0,0,0,0,3,3,0,0,3,0,0,0,3,3,0,0,3,0,0,0,3,0,3,3,0,3,3,3,0),\n\t\t'4'=>array(0,0,0,3,3,3,0,0,0,0,3,0,0,3,0,0,0,3,0,0,0,3,0,0,3,3,3,3,3,3,3,3,0,0,0,0,0,3,0,0),\n\t\t'5'=>array(3,3,3,3,0,0,3,0,3,0,3,0,0,0,0,3,3,0,3,0,0,0,0,3,3,0,3,0,0,0,0,3,3,0,0,3,3,3,3,0),\n\t\t'6'=>array(0,0,3,3,3,3,3,0,0,3,0,3,0,0,0,3,3,0,0,3,0,0,0,3,3,0,0,3,0,0,0,3,3,0,0,0,3,3,3,0),\n\t\t'7'=>array(3,0,0,0,0,0,0,0,3,0,0,0,0,0,3,3,3,0,0,0,3,3,0,0,3,0,3,3,0,0,0,0,3,3,0,0,0,0,0,0),\n\t\t'8'=>array(0,3,3,0,3,3,3,0,3,0,0,3,0,0,0,3,3,0,0,3,0,0,0,3,3,0,0,3,0,0,0,3,0,3,3,0,3,3,3,0),\n\t\t'9'=>array(0,3,3,3,0,0,0,3,3,0,0,0,3,0,0,3,3,0,0,0,3,0,0,3,3,0,0,0,3,0,3,0,0,3,3,3,3,3,0,0),\n\t\t'0'=>array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)\n\t\t);\n\n$date=array();\nfor ($x=303,$i=0;$x<=307;$x++){\n\tfor ($y=3;$y<=10;$y++,$i++){\n\t\t$rgb = imagecolorat($im, $x, $y);\n\t\t$date[$i]=$rgb;\n\t\t}\n}\nforeach ($datenum as $haha=>$hihi) {\n\tif ($hihi==$date)\n\t$datemsb=$haha;\n}\n\nfor($x=309,$i=0;$x<=313;$x++) {\n\tfor($y=3;$y<=10;$y++,$i++) {\n\t\t$rgb = imagecolorat($im, $x, $y);\n\t\t$date[$i]=$rgb;\n\t}\n}\nforeach ($datenum as $haha=>$hihi) {\n\tif ($hihi==$date)\n\t\t$datelsb=$haha;\n}\n$details->date=$datemsb.$datelsb;\n\n//// Search of the time like 3z or 15z etc\n$timehrs=array(\n\t\t'1'=>array(0,0,0,0,0,0,0,3,0,0,0,3,3,3,3,3,3,3,0,0,0,0,0,3),\n\t\t'2'=>array(0,3,0,0,0,3,3,0,0,0,3,3,3,0,0,3,0,3,0,3,3,0,0,3),\n\t\t'3'=>array(0,3,0,0,3,0,3,0,0,0,0,3,3,0,3,0,0,3,0,3,0,3,3,0),\n\t\t'4'=>array(0,0,3,3,0,0,0,3,0,3,0,0,3,3,3,3,3,3,0,0,0,3,0,0),\n\t\t'5'=>array(3,3,3,0,3,0,3,0,3,0,0,3,3,0,3,0,0,3,3,0,0,3,3,0),\n\t\t'6'=>array(0,3,3,3,3,0,3,0,0,3,0,3,3,0,3,0,0,3,0,0,0,3,3,0),\n\t\t'7'=>array(),\n\t\t'8'=>array(0,3,0,3,3,0,3,0,3,0,0,3,3,0,3,0,0,3,0,3,0,3,3,0),\n\t\t'9'=>array(0,3,3,0,0,0,3,0,0,3,0,3,3,0,3,0,0,3,0,3,3,3,3,0),\n\t\t'0'=>array(0,0,0,0,0,0,0,3,3,3,3,0,3,0,0,0,0,3,0,3,3,3,3,0)\n\t\t//'z'=>array(3,0,0,0,3,3,3,0,0,3,0,3,3,0,3,0,0,3,3,3,0,0,0,3)\n);\n$timehr=array();\n$temp=array();\n$foundz=0;\nfor ($i=0;$i<39;$i++) {\n\tfor($x=$i,$k=0;$x<=$i+3;$x++) {\n\t\tfor($y=192;$y<=197;$y++,$k++) {\n\t\t\t$rgb = imagecolorat($im, $x, $y);\n\t\t\t$temp[$k]=$rgb;\n\t\t}\n\t}\n\t\n\tforeach ($timehrs as $hahaha=>$hihihi) {\n\t\t\tif ($hihihi==$temp){\n\t\t\t\tif (!isset($timelsb))\n\t\t\t\t\t$timel=$hahaha;\n\t\t\t\telse \n\t\t\t\t\t$timeh=$hahaha;\n\t\t\t\t\n\t\t\t}\n\t\t}\n}\n$details->time=$timel.@$timeh;\n$mydate=date('y').\"-\".date('m').\"-\".$details->date;\n$details->timestamp=strtotime($mydate.\"+ $details->time hours +5 hours +30 minute \");\n$details->dateopening=date('h-i-A d-m-Y',$details->timestamp);\n\n//// converting individual pixels of x coordinates to timestamps\n$hour_perpixel_perday=array();\nfor ($i=0;$i<sizeof($days)-1;$i++)\n\t$hour_perpixel_perday[$i]=24/($days[$i+1]-$days[$i]);\n$pixel_time=array();\n\n$temp=$details->timestamp;\nfor ($k=0;$k<sizeof($hour_perpixel_perday);$k++) {\n\t$myy=$temp;\n\t$pixel_time[$days[$k]]=$myy;\n\tfor ($i=1;$i<=($days[$k+1]-$days[$k]);$i++) {\n\t\t$ji=$hour_perpixel_perday[$k]*($i)*60*60;\n\t\t$myy=$temp + $ji; \n\t\t//echo \"$myy<br>\";\n\t\t$pixel_time[$days[$k]+$i]=$myy;\n\t}\n\t//echo \"<br>\";\n\t$temp=$temp+$ji;\n}\n\n$xlabel=array();\n$graph=array();\nforeach ($pixel_time as $key=>$timestamp) {\n\t$element_no=$key-20;\n\t$keyy['x_coordinate']=date('h-i-A d-m-Y',$details->timestamp);\n\t$keyy['y_coordinate']=$precip_graph[$key];\n\tif (date('H',$timestamp)==00 && !isset($dayofweek)) {\n\t\t$keyy['label']=date('D',$timestamp);\n\t\t$dayofweek='set';\n\t}\n\telseif(date('H',$timestamp)==02)\n\t\tunset($dayofweek);\n\t$graph[$element_no]=$keyy;\n\tunset ($keyy);\n\t//echo \"For element $element_no: x coordinate: $key=>$timestamp And y coordinate: $precip_graph[$key]<br>\";\n}\nreturn($graph);\n}", "public function get_calibration_scores() {\n if (!isset($this->scores)) {\n global $DB;\n $this->scores = $DB->get_records_menu('workshep_calibration', array(\"workshepid\" => $this->workshep->id), '', 'userid, score');\n }\n return $this->scores;\n }", "public function getTimeSeries()\n {\n return $this->time_series;\n }", "public function getTimeSeries()\n {\n return $this->time_series;\n }", "function get_datevalues(&$results, $params, $downzoom) {\r\n\n\n$datevalues = array();\r\n\r\n\tforeach ($results->facet_counts->facet_ranges->file_modified_dt->counts as $facet=>$count) {\r\n\t\t$newstart = $facet;\r\n\r\n\t\tif ($downzoom=='decade') {\r\n\t\t\t$newend = $facet . '+10YEARS';\r\n\r\n\t\t\t$value = substr($facet, 0, 4);\r\n\r\n\t\t} elseif ($downzoom=='year') {\r\n\t\t\t$newend = $facet . '+1YEAR';\r\n\t\t\t$value = substr($facet, 0, 4);\r\n\r\n\t\t} elseif ($downzoom=='month') {\r\n\t\t\t$newend = $facet . '+1MONTH';\r\n\t\t\t$value = substr($facet, 5, 2);\r\n\r\n\t\t} elseif ($downzoom=='day') {\r\n\t\t\t$newend = $facet . '+1DAY';\r\n\t\t\t$value = substr($facet, 8, 2);\r\n\r\n\t\t} elseif ($downzoom=='hour') {\r\n\t\t\t$newend = $facet . '+1HOUR';\r\n\t\t\t$value = substr($facet, 11, 2);\r\n\r\n\t\t} elseif ($downzoom=='minute') {\r\n\t\t\t$newend = $facet . '+1MINUTE';\r\n\t\t\t$value = substr($facet, 14, 2);\r\n\r\n\t\t} else {\r\n\t\t\t$newend = $facet . '+1YEAR';\r\n\t\t\t$value = $facet;\r\n\t\t};\r\n\r\n\r\n\t\t$link = buildurl($params,'start_dt', $newstart, 'end_dt', $newend, 'zoom', $downzoom, 's', false);\r\n\r\n\t\t$datevalues[] = array('label'=> $value, 'count' => $count, 'link' => $link);\r\n\t}\r\n\n\treturn $datevalues;\r\n}", "public function index()\n {\n\n \n$today_users = User::whereDate('created_at', today())->count();\n$yesterday_users = User::whereDate('created_at', today()->subDays(1))->count();\n$users_2_days_ago = User::whereDate('created_at', today()->subDays(2))->count();\n\n\n$chart = new UserChart;\n$chart->labels(['2 days ago', 'Yesterday', 'Today']);\n$chart->dataset('User', 'line', [$users_2_days_ago,$yesterday_users,$today_users])->options([\n 'color' => 'red',\n]);\n\n return view('backend.dashbord',compact('chart'));\n }", "private function __dailyHealthIndicator() {\n\t\t\t\t\n\t\t$userTimezone = $this->Auth->user('timezone');\n\t\t\n\t\tif ($this->_requestedUser['id'] != $this->Auth->user('id')) {\n $userId = $this->_requestedUser['id']; \n\t\t} else {\n\t\t\t$userId = $this->Auth->user('id');\t\t\t\n\t\t}\n\t\t //set date as today\n\n $todayInUserTimeZone = CakeTime::convert(time(), new DateTimeZone($userTimezone));\n $date_today = CakeTime::format($todayInUserTimeZone, '%m/%d/%Y');\n\t\t\n $dailyHealthIndicator = array();\n // it contains symptoms with latest_record_value null\n $userSymptoms = $this->UserSymptom->getSymptomIdsWithLatestValue($userId);\n\n /*\n * Fetch symptom details \n */\n foreach ($userSymptoms as $userSymptom) {\n $symptomId = $userSymptom ['UserSymptom'] ['symptom_id']; // symptom id\n $symptomName = $this->Symptom->getSymptomNameFromId($symptomId); // symptom name\n $symptomRecordValueJSON = $userSymptom ['UserSymptom'] ['latest_record_value']; // recorded value\n $symptomSeverityValue = 0;\n $lastUpdatedDate = NULL;\n if (!empty($symptomRecordValueJSON)) {\n $symptomLatestRecordValue = json_decode($symptomRecordValueJSON, TRUE); // Decode the json value\n $userTodayDate = date('Y-m-d', $todayInUserTimeZone);\n $lastUpdatedDateInTime = key($symptomLatestRecordValue);\n\n if (!is_null($lastUpdatedDateInTime)) {\n $symptomSeverityValue = $symptomLatestRecordValue [$lastUpdatedDateInTime];\n $lastUpdatedDate = date('m/d/Y', $lastUpdatedDateInTime);\n }\n// debug($lastUpdatedDate);\n // check todays severity added\n// if ( array_key_exists ( strtotime ( $userTodayDate ) , $symptomLatestRecordValue )) {\n// $symptomSeverityValue = $symptomLatestRecordValue[ strtotime ( $userTodayDate ) ];\n// }\n// foreach ($symptomRecordValue as $key => $value) {\n// //$record_date = date('Y-m-d', $key);\n// //debug($symptomName.\" \".date('Y-m-d H:i:s', $key) . \" \". strtotime($userTodayDate));\n// //check if there is record for user's today\n// if ($record_date == $userTodayDate) { //debug($key. \" \".strtotime($userTodayDate)); // debug($record_date. \" \".$userTodayDate); \n// //fetch todays reading\n// $symptomSeverityValue = $symptomRecordValue [$key];\n// }\n//// else {\n////\t\t\t\t\t$symptomSeverityValue = 0;\n////\t\t\t\t}\n// }\n }\n\n switch ($symptomSeverityValue) {\n case 1: $symptomSeverity = 'None';\n break;\n case 2: $symptomSeverity = 'Mild';\n break;\n case 3: $symptomSeverity = 'Moderate';\n break;\n case 4: $symptomSeverity = 'Severe';\n break;\n default:$symptomSeverity = 'No Data';\n }\n /*\n * save details to an array\n */\n $dailyHealthIndicator[] = array('id' => $symptomId, 'name' => $symptomName,\n 'severity' => $symptomSeverity, 'lastUpdated' => $lastUpdatedDate);\n }\n\t\t\n\t\treturn $dailyHealthIndicator; \n\n\t}", "function sparkline_bhl_name($hits, $width=400, $height=100)\n{\n\t$start_year = 3000;\n\t$end_year = 0;\n\t$max_value = 0;\n\t\n\t$count = array();\n\t\n\t//print_r($hits);\n\t\n\tforeach ($hits as $hit)\n\t{\n\t\tif (isset($hit->info->start))\n\t\t{\t\n\t\t\t$year = $hit->info->start;\n\t\t\t$start_year = min($start_year, $year);\n\t\t\t$end_year = max($end_year, $year);\n\t\t\tif (!isset($count[$year]))\n\t\t\t{\n\t\t\t\t$count[$year] = 0;\n\t\t\t}\n\t\t\t$count[$year]++;\n\t\t\t$max_value = max($max_value, $count[$year]);\n\t\t}\n\t}\n\n\t$start_year = floor($start_year/50) * 50;\n\t$end_year = floor(($end_year+49)/50) * 50;\n\t\n\tfor($i = $start_year; $i <= $end_year; $i++)\n\t{\n\t\tif (!isset($count[$i]))\n\t\t{\n\t\t\t$count[$i] = 0;\n\t\t}\n\t}\n\t\n\tksort($count);\n\t\n\t// Axes\n\t$decades = array();\n\tfor($i = $start_year; $i <= $end_year; $i+=50)\n\t{\n\t\t$decades[] = $i;\n\t}\n\t\n\t$values = array();\n\tforeach ($count as $k => $v)\n\t{\n\t\t$values[] = round(($v * 100.0)/$max_value);\n\t}\n\n\t$url = 'http://chart.apis.google.com/chart?chs=' . $width . 'x' . $height . '&amp;cht=ls&amp;chco=0077CC&amp;chm=B,e6f2fa,0,0.0,0.0&amp;chd=t:';\n\t$url .= join(\",\", $values);\n\t$url .= '&amp;chxt=x,y&amp;chxl=0:|' . join(\"|\", $decades) . '|1:||' . $max_value;\n\n\treturn $url;\n}", "public function trendAction()\n\t{\t$result = $this->db->getTrend();\n\t\t$trend = array();\n\t\tforeach( $result as $row )\n\t\t{\t$trend = array_merge( $trend, array_values($row) );\n\t\t}\n\t\t\n\t\t$this->view->trend = $trend;\n\t}", "private function build_lines_aggregate_array(){\n\n\t\t$this->lines_aggregate_array = array();\n\t\tforeach($this->per_team_lines[0] as $key => $value){\n\t\t\t$line_play_type = null;\n\t\t\tif($key === 'women_doubles'){\n\t\t\t\t$line_play_type = 'wd';\n\t\t\t}\n\t\t\telse if($key === 'men_doubles'){\n\t\t\t\t$line_play_type = 'md';\n\t\t\t}\n\t\t\telse if($key === 'women_singles'){\n\t\t\t\t$line_play_type = 'ws';\n\t\t\t}\n\t\t\telse if($key === 'men_singles'){\n\t\t\t\t$line_play_type = 'ms';\n\t\t\t}\n\t\t\telse if($key === 'mixed_doubles'){\n\t\t\t\t$line_play_type = 'xd';\n\t\t\t}\n\t\t\telse if($key === 'mixed_singles'){\n\t\t\t\t$line_play_type = 'xs';\n\t\t\t}\n\t\t\tif($line_play_type !== null){\n\t\t\t\tarray_push($this->lines_aggregate_array, array(\n\t\t\t\t\t'line_play_type' => $line_play_type,\n\t\t\t\t\t'count' => $value\n\t\t\t\t));\n\t\t\t}\n\t\t}\n\n\t}", "function calculate_data() {\n $this->data = array();\n $this->data['series'] = array();\n\n $series_size = 0;\n\n $series_list = $this->calculate_series_list();\n foreach($series_list as $key => $value) {\n $this->data['series'][$value] = $this->calculate_series($key);\n\n if($series_size < count($this->data['series'][$value])) {\n $series_size = count($this->data['series'][$value]);\n }\n }\n\n $this->data['labels'] = $this->calculate_labels($series_size);\n }", "function jr_dashboard_charts() {\n\tglobal $wpdb;\n\n\t$sql = \"SELECT COUNT(post_title) as total, post_date \n\t\t\tFROM $wpdb->posts\n\t\t\tWHERE post_type = '%s' AND post_date > '%s' \n\t\t\tGROUP BY DATE(post_date) \n\t\t\tDESC\";\n\t$results = $wpdb->get_results( $wpdb->prepare( $sql, APP_POST_TYPE, date( 'Y-m-d', strtotime('-30 days') ) ) );\n\n\t$listings = array();\n\n\t// put the days and total posts into an array\n\tforeach ( $results as $result ) {\n\t\t$the_day = date('Y-m-d', strtotime($result->post_date));\n\t\t$listings[$the_day] = $result->total;\n\t}\n\n\t// setup the last 30 days\n\tfor( $i = 0; $i < 30; $i++ ) {\n\t\t$each_day = date('Y-m-d', strtotime('-'. $i .' days'));\n\n\t\t// if there's no day with posts, insert a goose egg\n\t\tif ( !in_array($each_day, array_keys($listings)) ) $listings[$each_day] = 0;\n\t}\n\n\t// sort the values by date\n\tksort($listings);\n\n\t$args = array(\n\t\t'meta_query' => array(\n\t\t\tarray(\n\t\t\t\t'key' => '_valid_resume_subscription_start',\n\t\t\t\t'value' => date( 'Y-m-d', strtotime('-30 days') ),\n\t\t\t\t'compare' => '>'\n\t\t\t),\n\t\t),\n\t);\n\t$subscribers = new WP_User_Query( $args );\n\n\t$sql = \"SELECT COUNT(user_id) as total, meta_value as subscr_date \n\t\t\tFROM $wpdb->usermeta \n\t\t\tWHERE meta_key = '_valid_resume_subscription_start' AND meta_value > %d\n\t\t\tGROUP BY DATE(subscr_date) \n\t\t\tDESC\";\n\t$results = $wpdb->get_results( $wpdb->prepare( $sql, strtotime('-30 days') ) );\n\n\t$subscriptions = array();\n\n\t// put the days and total posts into an array\n\tforeach ( $results as $result ) {\n\t\t$the_day = date( 'Y-m-d', $result->subscr_date );\n\t\t$subscriptions[$the_day] = $result->total;\n\t}\n\n\t// setup the last 30 days\n\tfor( $i = 0; $i < 30; $i++ ) {\n\t\t$each_day = date('Y-m-d', strtotime('-'. $i .' days'));\n\n\t\t// if there's no day with posts, insert a goose egg\n\t\tif ( !in_array($each_day, array_keys($subscriptions)) ) $subscriptions[$each_day] = 0;\n\t}\n\n\t// sort the values by date\n\tksort($subscriptions);\n\n\t// Get sales - completed orders with a cost\n\t$sales = array();\n\n\t$sales = jr_daily_orders_sales( array( 'jr_sales_time_span' => date('Y-m-d', strtotime('-30 days')) ) );\n\n\t// legacy order table sales\n\n\tif ( $wpdb->get_results(\"SHOW TABLES LIKE '$wpdb->jr_orders' \") ) {\n\t\t$sql = \"SELECT SUM(cost) as total, order_date \n\t\t\t\tFROM $wpdb->jr_orders WHERE status = 'completed' AND order_date > '%s' \n\t\t\t\tGROUP BY DATE(order_date) \n\t\t\t\tDESC\";\n\t\t$results = $wpdb->get_results( $wpdb->prepare( $sql, date( 'Y-m-d', strtotime('-30 days') ) ) );\n\n\t\t// put the days and total posts into an array\n\t\tforeach ($results as $result) {\n\t\t\t$the_day = date( 'Y-m-d', strtotime($result->order_date) );\n\t\t\tif ( empty($sales[$the_day]) ) $sales[$the_day] = 0;\n\t\t\t$sales[$the_day] += $result->total;\n\t\t}\n\t}\n\n\t// setup the last 30 days\n\tfor( $i = 0; $i < 30; $i++ ) {\n\t\t$each_day = date( 'Y-m-d', strtotime('-'. $i .' days') );\n\n\t\t// if there's no day with posts, insert a goose egg\n\t\tif ( !in_array($each_day, array_keys($sales)) ) $sales[$each_day] = 0;\n\t}\n\n\t// sort the values by date\n\tksort($sales);\n?>\n\n<div id=\"placeholder\"></div>\n\n<script language=\"javascript\" type=\"text/javascript\">\n// <![CDATA[\njQuery(function () {\n\n\tvar posts = [\n\t\t<?php\n\t\tforeach ($listings as $day => $value) {\n\t\t\t$sdate = strtotime($day);\n\t\t\t$sdate = $sdate * 1000; // js timestamps measure milliseconds vs seconds\n\t\t\t$newoutput = \"[$sdate, $value],\\n\";\n\t\t\t//$theoutput[] = $newoutput;\n\t\t\techo $newoutput;\n\t\t}\n\t\t?>\n\t]\n\n\tvar subscriptions = [\n\t\t<?php\n\t\tforeach ($subscriptions as $day => $value) {\n\t\t\t$sdate = strtotime($day);\n\t\t\t$sdate = $sdate * 1000; // js timestamps measure milliseconds vs seconds\n\t\t\t$newoutput = \"[$sdate, $value],\\n\";\n\t\t\t//$theoutput[] = $newoutput;\n\t\t\techo $newoutput;\n\t\t}\n\t\t?>\n\t]\n\n\tvar sales = [\n\t\t<?php\n\t\tforeach ($sales as $day => $value) {\n\t\t\t$sdate = strtotime($day);\n\t\t\t$sdate = $sdate * 1000; // js timestamps measure milliseconds vs seconds\n\t\t\t$newoutput = \"[$sdate, $value],\\n\";\n\t\t\t//$theoutput[] = $newoutput;\n\t\t\techo $newoutput;\n\t\t}\n\t\t?>\n\t];\n\n\n\tvar placeholder = jQuery(\"#placeholder\");\n\n\tvar output = [\n\t\t{\n\t\t\tdata: posts,\n\t\t\tlabel: \"<?php _e('Job Listings', APP_TD) ?>\",\n\t\t\tsymbol: ''\n\t\t},\n\t\t{\n\t\t\tdata: subscriptions,\n\t\t\tlabel: \"<?php _e('Resumes Subscriptions', APP_TD) ?>\",\n\t\t\tsymbol: ''\n\t\t},\n\t\t{\n\t\t\tdata: sales,\n\t\t\tlabel: \"<?php _e('Total Sales', APP_TD) ?>\",\n\t\t\tsymbol: '<?php echo APP_Currencies::get_current_symbol(); ?>',\n\t\t\tyaxis: 2\n\t\t}\n\t];\n\n\tvar options = {\n series: {\n\t\t lines: { show: true },\n\t\t points: { show: true }\n\t },\n\t grid: {\n\t\t tickColor:'#f4f4f4',\n\t\t hoverable: true,\n\t\t clickable: true,\n\t\t borderColor: '#f4f4f4',\n\t\t backgroundColor:'#FFFFFF'\n\t },\n xaxis: { mode: 'time',\n\t\t\t\ttimeformat: \"%m/%d\"\n\t },\n\t yaxis: { min: 0 },\n\t y2axis: { min: 0, tickFormatter: function (v, axis) { return v.toFixed(axis.tickDecimals) + \" <?php echo APP_Currencies::get_current_symbol(); ?>\" }},\n\t legend: { position: 'nw' }\n };\n\n\tjQuery.plot(placeholder, output, options);\n\n\t// reload the plot when browser window gets resized\n\tjQuery(window).resize(function() {\n\t\tjQuery.plot(placeholder, output, options);\n\t});\n\n\tfunction showChartTooltip(x, y, contents) {\n\t\tjQuery('<div id=\"charttooltip\">' + contents + '</div>').css( {\n\t\tposition: 'absolute',\n\t\tdisplay: 'none',\n\t\ttop: y + 5,\n\t\tleft: x + 5,\n\t\topacity: 1\n\t\t}).appendTo(\"body\").fadeIn(200);\n\t}\n\n\tvar previousPoint = null;\n\tjQuery(\"#placeholder\").bind(\"plothover\", function (event, pos, item) {\n\t\tjQuery(\"#x\").text(pos.x.toFixed(2));\n\t\tjQuery(\"#y\").text(pos.y.toFixed(2));\n\t\tif (item) {\n\t\t\tif (previousPoint != item.datapoint) {\n previousPoint = item.datapoint;\n\n\t\t\t\tjQuery(\"#charttooltip\").remove();\n\t\t\t\tvar x = new Date(item.datapoint[0]), y = item.datapoint[1];\n\t\t\t\tvar xday = x.getDate(), xmonth = x.getMonth()+1; // jan = 0 so we need to offset month\n\t\t\t\tshowChartTooltip(item.pageX, item.pageY, xmonth + \"/\" + xday + \" - <b>\" + item.series.symbol + y + \"</b> \" + item.series.label);\n\t\t\t}\n\t\t} else {\n\t\t\tjQuery(\"#charttooltip\").remove();\n\t\t\tpreviousPoint = null;\n\t\t}\n\t});\n});\n// ]]>\n</script>\n\n<?php\n}", "function fetchScores($json,$arrayAlpha){\r\n\t// initiate\r\n\t$counterTotalPoints = 0;\r\n\t$counter = 0;\r\n\t// loop through array!!!\r\n\tforeach ($json as $key => $value){\r\n\t\t// check if user set service provider status active, if so we may process item further\r\n\t\tif ($value['active'] == true){\r\n\t\t\t\t// loop through array in array\r\n\t\t\tforeach ($value['fields'] as $key2 => $value2){\t\r\n\t\t\t\t// Detect if number is integer, otherwise we need to convert letter to number\r\n\t\t\t\tif (!is_numeric($value['value'][$key2])){\r\n\t\t\t\t\t$value['value'][$key2] = $arrayAlpha[$value['value'][$key2]];\t \r\n\t\t\t\t}\r\n\t\t\t\t// build html\r\n\t\t\t\techo '<li class=\"list-group-item\">';\r\n\t\t\t\techo '<strong>' . $value['title'] . '</strong> ';\r\n\t\t\t\techo '<br><span class=\"text-muted\">' . $value2 . '</span>';\r\n\t\t\t\t// check value, start from high to low\r\n\t\t\t\tif ($value['value'][$key2] >= 100){\r\n\t\t\t\t\techo '<span class=\"label label-success pull-right\">' . $value['value'][$key2] . '</span>';\r\n\t\t\t\t}elseif($value['value'][$key2] >= 80){\r\n\t\t\t\t\techo '<span class=\"label label-primary pull-right\">' . $value['value'][$key2] . '</span>';\r\n\t\t\t\t}elseif($value['value'][$key2] >= 60){\r\n\t\t\t\t\techo '<span class=\"label label-info pull-right\">' . $value['value'][$key2] . '</span>';\r\n\t\t\t\t}elseif($value['value'][$key2] >= 40){\r\n\t\t\t\t\techo '<span class=\"label label-default pull-right\">' . $value['value'][$key2] . '</span>';\r\n\t\t\t\t}elseif($value['value'][$key2] >= 20){\r\n\t\t\t\t\techo '<span class=\"label label-warning pull-right\">' . $value['value'][$key2] . '</span>';\r\n\t\t\t\t}else{\r\n\t\t\t\t\techo '<span class=\"label label-danger pull-right\">' . $value['value'][$key2] . '</span>';\t\r\n\t\t\t\t}\r\n\t\t\t\techo '</li>';\t\t\r\n\t\t\t\t// update counter for actual points\r\n\t\t\t\t$counter += $value['value'][$key2];\t\t\r\n\t\t\t\t// we add 100 points per item to sum up total count\r\n\t\t\t\t$counterTotalPoints += 100;\t\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t}\r\n\t// calculate results points\r\n\t$result['resultText'] = $counter . '/' . $counterTotalPoints;\r\n\t// calculate results in percentage\r\n\t$result['progressBar'] = 100 / $counterTotalPoints * $counter;\t\r\n\t// check if float, and round up to two decimal places\r\n\tif (is_float($result['progressBar'])){\r\n\t\t$result['progressBar'] = number_format((float)$result['progressBar'], 2, '.', '');\r\n\t}\r\n\t// return array\r\n\treturn $result;\t\r\n}", "public function run()\n {\n // year => [ 0: [min,max] ]\n $elaRanges = [\n 8 => [\n [2288, 2486],\n [2487, 2566],\n [2567, 2667],\n [2668, 2769]\n ],\n 11 => [\n [2299, 2492],\n [2493, 2582],\n [2583, 2681],\n [2682, 2795]\n ]\n ];\n $mathRanges = [\n 8 => [\n [2265, 2503],\n [2504, 2585],\n [2586, 2652],\n [2653, 2802]\n ],\n 9 => [\n [2280, 2542],\n [2543, 2627],\n [2628, 2717],\n [2718, 2862]\n ]\n ];\n foreach ($elaRanges as $year => $data) {\n foreach ($data as $level => $minmax) {\n \\App\\ScoreRange::create([\n 'year' => $year,\n 'type' => 'ela',\n 'level' => $level,\n 'min' => $minmax[0],\n 'max' => $minmax[1]\n ]);\n }\n }\n\n foreach ($mathRanges as $year => $data) {\n foreach ($data as $level => $minmax) {\n \\App\\ScoreRange::create([\n 'year' => $year,\n 'type' => 'math',\n 'level' => $level,\n 'min' => $minmax[0],\n 'max' => $minmax[1]\n ]);\n }\n }\n }", "private function draw_graphs(){\n\t\tfor($i=$this->startingmonth;$i>=0;$i--){\n\t\t\t$this->draw_svg_main_line($i);\n\t\t\t$this->draw_svg_main_dots($i);\n\t\t}\n\t\t$y=0;\n\t\twhile($this->ave_this_year[$y]['year']){\n\t\t\t$this->draw_svg_ave_lines($y);\n\t\t\t$this->draw_year_lines($y);\n\t\t\t$y++;\n\t\t}\n\t\treturn;\n\t}", "protected function getChartData()\n {\n $data = $this->loadChartData(); //load data from CSV\n\n $groupedByWeek = $data->groupBy(function ($item) { // Group data base on week start date\n return $item->created_at->startOfWeek()->format('d/m/Y');\n });\n\n $chartData = array();\n foreach ($groupedByWeek as $key => $item) {\n $cohort = new \\stdClass();\n $cohort->name = $key;\n $cohort->data[] = ($item->where('onboarding_percentage', '>=', 0)->count() / $item->count()) * 100;\n $cohort->data[] = ($item->where('onboarding_percentage', '>=', 20)->count() / $item->count()) * 100;\n $cohort->data[] = ($item->where('onboarding_percentage', '>=', 40)->count() / $item->count()) * 100;\n $cohort->data[] = ($item->where('onboarding_percentage', '>=', 50)->count() / $item->count()) * 100;\n $cohort->data[] = ($item->where('onboarding_percentage', '>=', 70)->count() / $item->count()) * 100;\n $cohort->data[] = ($item->where('onboarding_percentage', '>=', 90)->count() / $item->count()) * 100;\n $cohort->data[] = ($item->where('onboarding_percentage', '>=', 99)->count() / $item->count()) * 100;\n $cohort->data[] = ($item->where('onboarding_percentage', '>=', 100)->count() / $item->count()) * 100;\n array_push($chartData, $cohort);\n };\n\n return Response()->json( // return data for chart as Json\n $chartData\n );\n }", "public function run()\n {\n //\n $this->add_harvesting(\"2016-04-04\", \"56\", \"24.00\");\n $this->add_harvesting(\"2016-04-04\", \"56\", \"17.00\");\n $this->add_harvesting(\"2016-04-06\", \"51\", \"18.50\");\n $this->add_harvesting(\"2016-04-01\", \"63\", \"567.90\");\n $this->add_harvesting(\"2016-04-01\", \"63\", \"192.00\");\n $this->add_harvesting(\"2016-04-01\", \"63\", \"410.40\");\n $this->add_harvesting(\"2016-03-23\", \"15\", \"130.00\");\n $this->add_harvesting(\"2016-03-23\", \"15\", \"34.50\");\n $this->add_harvesting(\"2016-03-19\", \"78\", \"4.50\");\n $this->add_harvesting(\"2016-03-19\", \"78\", \"21.50\");\n $this->add_harvesting(\"2016-03-19\", \"78\", \"40.00\");\n $this->add_harvesting(\"2016-03-18\", \"63\", \"444.00\");\n $this->add_harvesting(\"2016-03-11\", \"63\", \"807.00\");\n $this->add_harvesting(\"2016-03-11\", \"15\", \"40.00\");\n $this->add_harvesting(\"2016-03-11\", \"15\", \"22.00\");\n $this->add_harvesting(\"2016-03-11\", \"15\", \"12.00\");\n $this->add_harvesting(\"2016-03-11\", \"15\", \"45.00\");\n $this->add_harvesting(\"2016-03-11\", \"15\", \"22.50\");\n $this->add_harvesting(\"2016-03-11\", \"15\", \"12.00\");\n $this->add_harvesting(\"2016-03-04\", \"78\", \"6.50\");\n $this->add_harvesting(\"2016-03-04\", \"55\", \"32.50\");\n $this->add_harvesting(\"2016-02-22\", \"63\", \"460.50\");\n $this->add_harvesting(\"2016-02-22\", \"63\", \"418.00\");\n $this->add_harvesting(\"2016-02-22\", \"63\", \"162.00\");\n $this->add_harvesting(\"2016-02-22\", \"15\", \"56.50\");\n $this->add_harvesting(\"2016-02-22\", \"15\", \"20.00\");\n $this->add_harvesting(\"2016-02-22\", \"15\", \"21.00\");\n $this->add_harvesting(\"2016-02-22\", \"15\", \"70.50\");\n $this->add_harvesting(\"2016-02-22\", \"15\", \"22.50\");\n $this->add_harvesting(\"2016-02-22\", \"15\", \"24.50\");\n $this->add_harvesting(\"2016-02-05\", \"63\", \"565.50\");\n $this->add_harvesting(\"2016-01-29\", \"63\", \"2.50\");\n $this->add_harvesting(\"2016-01-29\", \"63\", \"2.50\");\n }", "function assignDataValues($timeHour, $timeMin, $row, $maxValue, $maxValuePoint, $maxValueText, $time, $watts, $watthours, $nowLogging, $startTime) {\n $timeText = $timeHour.\":\".$timeMin;\n $time[] = $timeText;\n $watts[] = $row[6];\n if($row[6] > $maxValue) {\n $maxValue = $row[6];\n $maxValuePoint = $timeText; // used for label on graph\n $maxValueText = number_format($row[6]). \" at $timeText\"; // used for label on graph\n }\n $watthours[] = $row[9];\n if(!$nowLogging) {\n $startTime = ($timeHour * 60) + $timeMin;\n $nowLogging = true;\n }\n return array($maxValue, $maxValuePoint, $maxValueText, $time, $watts, $watthours, $nowLogging, $startTime);\n}", "private function draw_year_lines($y){\n\t\tif(0 != $this->ave_this_year[$y]['month']){\n\t\t\t$this->main_graph_ave_lines .= \"\\t<path stroke=\\\"$this->axes_color\\\" stroke-dasharray=\\\"5, 5\\\" d=\\\"M$this->x_year_end 0 v $this->axisheight\\\"/>\\n\";\n\t\t}\n\t\t$this->main_graph_ave_lines .= \"\\t<text x=\\\"$this->x_year_text\\\" y=\\\"20\\\" font-family=\\\"sans-serif\\\" font-size=\\\"16px\\\" fill=\\\"$this->axes_color\\\">{$this->ave_this_year[$y]['year']}</text>\\n\";\n\t\treturn;\n\t}", "public function newLineChart()\n {\n return $this->newChart('line');\n }", "function display_scores(){\n // Create a query for all scores:\n $result3 = db_query(\"SELECT * FROM `highscore` ORDER BY `score`\");\n\n // Store The query of all scores in an array:\n if($result3 === false){\n }else{\n $rows2 = array();\n while($row2 = mysqli_fetch_assoc($result3)){\n $rows2[] = $row2;\n }\n }\n\n // Get the total size of the array:\n $size = count($rows2);\n \n echo \"<br><h2>Leaderboard</h2>\";\n // Loop through and display array:\n for($i=0; $i < $size; $i++){\n echo \"Initials: \";\n print_r($rows2[$i]['user_initials']);\n echo \"<br>\";\n echo \"Score: \";\n print_r($rows2[$i]['score']);\n echo \"<br>\";\n echo \"Date/Time: \";\n print_r($rows2[$i]['date']);\n echo \"<br><br>\";\n }\n\n}", "public function FireStatisticalinYear($date){\n $month_array = array();\n $month = date('Y/m', strtotime($date));\n $month_array[0]['month'] = $month;\n $month_array[0]['count'] = $this->FireStatistical($month);\n for($i = 1; $i < 6; $i++){\n $month = date('Y/m', strtotime($date.' -'.$i.' month'));\n $month_array[$i]['month'] = $month;\n $month_array[$i]['count'] = $this->FireStatistical($month);\n }\n return $month_array;\n }", "public function lineChart(Request $request)\n {\n $data = json_decode($request->getContent(), true);\n $dashService = new DashBoardService();\n return response()->json($dashService->lineChart($data));\n }", "private function calculate_lines_mixed(){\n\n\t\t$single_lines = min($this->female_count, $this->male_count, $this->event->single_women_lines, $this->event->single_men_lines);\n\t\t$women_left_after_singles = $this->female_count - $single_lines;\n\t\t$men_left_after_singles = $this->male_count - $single_lines;\n\t\t$most_of_gender_available_for_doubles = min($women_left_after_singles, $men_left_after_singles);\n\t\t$extra_women = $women_left_after_singles - $most_of_gender_available_for_doubles;\n\t\t$extra_men = $men_left_after_singles - $most_of_gender_available_for_doubles;\n\t\t$double_lines = floor($most_of_gender_available_for_doubles / 2);\n\t\t$this->total_lines = $single_lines + $double_lines;\n\t\t$women_and_men_left_after_doubles = $most_of_gender_available_for_doubles % 2;\n\t\t$additional_women = $extra_women + $women_and_men_left_after_doubles;\n\t\t$additional_men = $extra_men + $women_and_men_left_after_doubles;\n\t\t$this->per_team_lines = array(array(\n\t\t\t'total_teams' => 1,\n\t\t\t'women_lines' => '-',\n\t\t\t'men_lines' => '-',\n\t\t\t'additional_women' => $additional_women,\n\t\t\t'additional_men' => $additional_men,\n\t\t\t'comb_lines' => '-',\n\t\t\t'total_lines' => $this->total_lines,\n\t\t\t'additional_players' => $additional_women + $additional_men,\n\t\t\t'mixed_singles' => $single_lines,\n\t\t\t'mixed_doubles' => $double_lines\n\t ), array(\n\t \t'total_teams' => 2\n\t\t), array(\n\t \t'total_teams' => 4\n\t\t), array(\n\t \t'total_teams' => 6\n\t\t), array(\n\t \t'total_teams' => 8\n\t\t), array(\n\t \t'total_teams' => 9\n\t\t), array(\n\t \t'total_teams' => 16\n\t\t), array(\n\t \t'total_teams' => 25\n\t\t));\n\n\t}", "public function prepare_character_data_by_days_for_chart($start, $end, $character_id) {\n\t\tglobal $wpdb;\n\t\t// get data for character\n\t\t$sql = \"SELECT * FROM `\" . $wpdb->prefix . \"tr_ratting_data` WHERE `date_acquired` BETWEEN '\" . $start . \"' AND '\" . $end . \"' AND `owner_id`='\" . $character_id . \"'\";\n\t\t$character = $wpdb->get_results ( \"$sql\", ARRAY_A );\n\t\t\n\t\t// if there is no data\n\t\tif ($character == false) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// loop trough every day in the interval and createy empty array\n\t\t$start2 = new DateTime ( $start );\n\t\t\n\t\t// add 1 day to the end date.\n\t\t$end2 = date ( \"Y-m-d H:i:s\", strtotime ( $end . \" +1 day\" ) );\n\t\t$end3 = new DateTime ( $end2 );\n\t\t// define 1 day interval\n\t\t$interval = DateInterval::createFromDateString ( '1 day' );\n\t\t$period = new DatePeriod ( $start2, $interval, $end3 );\n\t\t// define empty char array\n\t\t$character_data = null;\n\t\t// loop trough the time period\n\t\tforeach ( $period as $dt ) {\n\t\t\t\n\t\t\t$character_data [$dt->format ( \"Y-m-d\" )] = 0;\n\t\t}\n\t\t$temp2 = $character_data;\n\t\t$total_if_was_ratting_at_all = 0;\n\t\t// now put the data from db in to those fields\n\t\tforeach ( $character as $tick ) {\n\t\t\t\n\t\t\t// run trough the dates for ech tick\n\t\t\tforeach ( $character_data as $key => $value ) {\n\t\t\t\t\n\t\t\t\t// get only date , we dont need hours nd such\n\t\t\t\t$pieces = explode ( \" \", $tick ['date_acquired'] );\n\t\t\t\t\n\t\t\t\t// if the date is the same as the date from the date loop array add the isk\n\t\t\t\tif ($pieces [0] == $key) {\n\t\t\t\t\t$temp2 [$key] += $tick ['amount'];\n\t\t\t\t\t$total_if_was_ratting_at_all += $tick ['amount'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// dont return if he was not ratting at all.\n\t\tif ($total_if_was_ratting_at_all > 0) {\n\t\t\treturn $temp2;\n\t\t}\n\t\treturn null;\n\t}", "public function getChartData() {\n $fromDate = Carbon::now()->subMinutes(60);\n $toDate = Carbon::now();\n\n $chart = new TaskActivity;\n $chartData = Auth::user()->tasks()->where('is_complete', 0)->whereBetween('created_at', [$fromDate, $toDate])->get()->pluck('created_at')->toArray();\n $arr = [];\n foreach ($chartData as $k => $c) {\n $add = $k + 1;\n array_push($arr, $add);\n }\n $chart->labels($chartData);\n $chart->dataset('Pending task', 'line', $arr);\n return $chart;\n }", "public function run()\n {\n $data = array(\n ['unit' => 'day', 'num' => 1, 'value' => 0.041],\n ['unit' => 'day', 'num' => 2, 'value' => 0.083],\n ['unit' => 'day', 'num' => 3, 'value' => 0.125],\n ['unit' => 'day', 'num' => 4, 'value' => 0.167],\n ['unit' => 'day', 'num' => 5, 'value' => 0.208],\n ['unit' => 'day', 'num' => 6, 'value' => 0.25],\n ['unit' => 'day', 'num' => 7, 'value' => 0.292],\n ['unit' => 'day', 'num' => 8, 'value' => 0.333],\n ['unit' => 'day', 'num' => 9, 'value' => 0.375],\n ['unit' => 'day', 'num' => 10, 'value' => 0.417],\n ['unit' => 'day', 'num' => 11, 'value' => 0.458],\n ['unit' => 'day', 'num' => 12, 'value' => 0.5],\n ['unit' => 'day', 'num' => 13, 'value' => 0.542],\n ['unit' => 'day', 'num' => 14, 'value' => 0.583],\n ['unit' => 'day', 'num' => 15, 'value' => 0.625],\n ['unit' => 'day', 'num' => 16, 'value' => 0.667],\n ['unit' => 'day', 'num' => 17, 'value' => 0.708],\n ['unit' => 'day', 'num' => 18, 'value' => 0.750],\n ['unit' => 'day', 'num' => 19, 'value' => 0.792],\n ['unit' => 'day', 'num' => 20, 'value' => 0.833],\n ['unit' => 'day', 'num' => 21, 'value' => 0.875],\n ['unit' => 'day', 'num' => 22, 'value' => 0.917],\n ['unit' => 'day', 'num' => 23, 'value' => 0.958],\n ['unit' => 'day', 'num' => 24, 'value' => 1],\n ['unit' => 'day', 'num' => 25, 'value' => 1.042],\n ['unit' => 'day', 'num' => 26, 'value' => 1.083],\n ['unit' => 'day', 'num' => 27, 'value' => 1.125],\n ['unit' => 'day', 'num' => 28, 'value' => 1.167],\n ['unit' => 'day', 'num' => 29, 'value' => 1.208],\n ['unit' => 'day', 'num' => 30, 'value' => 1.25],\n ['unit' => 'hr', 'num' => 1, 'value' => 0.125],\n ['unit' => 'hr', 'num' => 2, 'value' => 0.250],\n ['unit' => 'hr', 'num' => 3, 'value' => 0.375],\n ['unit' => 'hr', 'num' => 4, 'value' => 0.5],\n ['unit' => 'hr', 'num' => 5, 'value' => 0.625],\n ['unit' => 'hr', 'num' => 6, 'value' => 0.750],\n ['unit' => 'hr', 'num' => 7, 'value' => 0.875],\n ['unit' => 'hr', 'num' => 8, 'value' => 1],\n ['unit' => 'min', 'num' => 1, 'value' => 0.002],\n ['unit' => 'min', 'num' => 2, 'value' => 0.004],\n ['unit' => 'min', 'num' => 3, 'value' => 0.006],\n ['unit' => 'min', 'num' => 4, 'value' => 0.008],\n ['unit' => 'min', 'num' => 5, 'value' => 0.010],\n ['unit' => 'min', 'num' => 6, 'value' => 0.012],\n ['unit' => 'min', 'num' => 7, 'value' => 0.015],\n ['unit' => 'min', 'num' => 8, 'value' => 0.017],\n ['unit' => 'min', 'num' => 9, 'value' => 0.019],\n ['unit' => 'min', 'num' => 10, 'value' => 0.021],\n ['unit' => 'min', 'num' => 11, 'value' => 0.023],\n ['unit' => 'min', 'num' => 12, 'value' => 0.025],\n ['unit' => 'min', 'num' => 13, 'value' => 0.027],\n ['unit' => 'min', 'num' => 14, 'value' => 0.029],\n ['unit' => 'min', 'num' => 15, 'value' => 0.031],\n ['unit' => 'min', 'num' => 16, 'value' => 0.033],\n ['unit' => 'min', 'num' => 17, 'value' => 0.035],\n ['unit' => 'min', 'num' => 18, 'value' => 0.037],\n ['unit' => 'min', 'num' => 19, 'value' => 0.040],\n ['unit' => 'min', 'num' => 20, 'value' => 0.042],\n ['unit' => 'min', 'num' => 21, 'value' => 0.044],\n ['unit' => 'min', 'num' => 22, 'value' => 0.046],\n ['unit' => 'min', 'num' => 23, 'value' => 0.048],\n ['unit' => 'min', 'num' => 24, 'value' => 0.050],\n ['unit' => 'min', 'num' => 25, 'value' => 0.052],\n ['unit' => 'min', 'num' => 26, 'value' => 0.054],\n ['unit' => 'min', 'num' => 27, 'value' => 0.056],\n ['unit' => 'min', 'num' => 28, 'value' => 0.058],\n ['unit' => 'min', 'num' => 29, 'value' => 0.060],\n ['unit' => 'min', 'num' => 30, 'value' => 0.062],\n ['unit' => 'min', 'num' => 31, 'value' => 0.065],\n ['unit' => 'min', 'num' => 32, 'value' => 0.067],\n ['unit' => 'min', 'num' => 33, 'value' => 0.069],\n ['unit' => 'min', 'num' => 34, 'value' => 0.071],\n ['unit' => 'min', 'num' => 35, 'value' => 0.073],\n ['unit' => 'min', 'num' => 36, 'value' => 0.075],\n ['unit' => 'min', 'num' => 37, 'value' => 0.077],\n ['unit' => 'min', 'num' => 38, 'value' => 0.079],\n ['unit' => 'min', 'num' => 39, 'value' => 0.081],\n ['unit' => 'min', 'num' => 40, 'value' => 0.083],\n ['unit' => 'min', 'num' => 41, 'value' => 0.085],\n ['unit' => 'min', 'num' => 42, 'value' => 0.087],\n ['unit' => 'min', 'num' => 43, 'value' => 0.090],\n ['unit' => 'min', 'num' => 44, 'value' => 0.092],\n ['unit' => 'min', 'num' => 45, 'value' => 0.094],\n ['unit' => 'min', 'num' => 46, 'value' => 0.096],\n ['unit' => 'min', 'num' => 47, 'value' => 0.098],\n ['unit' => 'min', 'num' => 48, 'value' => 0.100],\n ['unit' => 'min', 'num' => 49, 'value' => 0.102],\n ['unit' => 'min', 'num' => 50, 'value' => 0.104],\n ['unit' => 'min', 'num' => 51, 'value' => 0.106],\n ['unit' => 'min', 'num' => 52, 'value' => 0.108],\n ['unit' => 'min', 'num' => 53, 'value' => 0.110],\n ['unit' => 'min', 'num' => 54, 'value' => 0.112],\n ['unit' => 'min', 'num' => 55, 'value' => 0.115],\n ['unit' => 'min', 'num' => 56, 'value' => 0.117],\n ['unit' => 'min', 'num' => 57, 'value' => 0.119],\n ['unit' => 'min', 'num' => 58, 'value' => 0.121],\n ['unit' => 'min', 'num' => 59, 'value' => 0.123],\n ['unit' => 'min', 'num' => 60, 'value' => 0.125]\n );\n\n foreach($data as $d) {\n DB::table('leave_table')->insert(\n [\n 'unit' => $d['unit'],\n 'num' => $d['num'],\n 'value' => $d['value'],\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]\n );\n }\n }", "public function seriesInitials();", "private function populate_student_attendance($viewModel) {\n try {\n $userID = $_SESSION[\"currentUser\"]->userID;\n\n $queryString = \"SELECT concat(m.Title, '-', c.ClassType) as Title, count(*) as count FROM `attendance` a inner join `modules.classes` c on a.ClassID=c.ClassID inner join `modules` m on m.ModuleID=c.ModuleID inner join `Students` s on s.StudentID=a.StudentID where s.UserID=$userID GROUP by a.ClassID, m.ModuleID;\";\n $queryResult = $this->db->query($queryString);\n\n if ($queryResult->num_rows() != 0) {\n $dataPoints = array();\n\n foreach ($queryResult->result() as $row) {\n $data = array();\n $data['label'] = $row->Title;\n $data['y'] = $row->count;\n array_push($dataPoints, $data);\n }\n\n $viewModel->dataPoints = $dataPoints;\n } else {\n $_SESSION[\"loginError\"] = \"Unable to retrieve user data: not found.\";\n }\n } catch (PDOException $exception) {\n $_SESSION[\"loginError\"] = \"Internal Server Error\";\n }\n }", "public function getBlock()\n\t{\n\t\t$chart = new \\IPS\\Helpers\\Chart;\n\t\t\n\t\t$chart->addHeader( \"Day\", 'date' );\n\t\tforeach ( \\IPS\\nexus\\Money::currencies() as $currency )\n\t\t{\n\t\t\t$chart->addHeader( $currency, 'number' );\n\t\t}\n\t\t\n\t\t$thirtyDaysAgo = \\IPS\\DateTime::create()->sub( new \\DateInterval('P30D') );\n\t\t\t\t\n\t\t$results = array();\n\t\tforeach( \\IPS\\Db::i()->select( \"t_currency, DATE_FORMAT( FROM_UNIXTIME( t_date ), '%e %c %Y' ) AS date, SUM(t_amount)-SUM(t_partial_refund) AS amount\", 'nexus_transactions', array( 't_date>? AND (t_status=? OR t_status=?)', $thirtyDaysAgo->getTimestamp(), \\IPS\\nexus\\Transaction::STATUS_PAID, \\IPS\\nexus\\Transaction::STATUS_PART_REFUNDED ), NULL, NULL, array( 't_currency', 'date' ) ) as $result )\n\t\t{\n\t\t\t$results[ $result['date'] ][ $result['t_currency'] ] = $result['amount'];\n\t\t}\n\t\t\t\t\n\t\t$monthAndYear = date( 'n' ) . ' ' . date( 'Y' );\n\t\tforeach ( range( 30, 0 ) as $daysAgo )\n\t\t{\n\t\t\t$datetime = new \\IPS\\DateTime;\n\t\t\t$datetime->setTime( 0, 0, 0 );\n\t\t\t$datetime->sub( new \\DateInterval( 'P' . $daysAgo . 'D' ) );\n\t\t\t$resultString = $datetime->format('j n Y');\n\t\t\t\n\t\t\tif ( isset( $results[ $resultString ] ) )\n\t\t\t{\n\t\t\t\t$row = array( $datetime );\n\t\t\t\t\n\t\t\t\tforeach ( \\IPS\\nexus\\Money::currencies() as $currency )\n\t\t\t\t{\n\t\t\t\t\tif ( !isset( $results[ $resultString ][ $currency ] ) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$row[] = 0;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$row[] = $results[ $resultString ][ $currency ];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$chart->addRow( $row );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$row = array( $datetime );\n\t\t\t\tforeach ( \\IPS\\nexus\\Money::currencies() as $currency )\n\t\t\t\t{\n\t\t\t\t\t$row[] = 0;\n\t\t\t\t}\n\t\t\t\t$chart->addRow( $row );\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $chart->render( 'LineChart' );\n\t}", "function bi_line($con, $query, &$arr_category, &$arr_dataset){\r\n\r\n\t// Limpa as variaveis\r\n\t$arr_category = array();\r\n\t$arr_dataset = array();\r\n\r\n\t// Executa o SQL no banco de dados\r\n\t$res = $con->query($query);\r\n\t$arr = $res->fetchAll(2);\r\n\r\n\t// Captura todas as \"variaveis\" (chaves)\r\n\t$arr_a = array();\r\n\tforeach($arr as $row){\r\n\t\t$arr_a[] = $row[\"a\"];\r\n\t}\r\n\t$arr_a = array_unique($arr_a);\r\n\r\n\t// Cria um novo array no formato:\r\n\t// array[x][a] = y;\r\n\t$arr_aux = array();\r\n\tforeach($arr as $row){\r\n\t\t$arr_aux[$row[\"x\"]][$row[\"a\"]] = $row[\"y\"];\r\n\t}\r\n\t$arr = $arr_aux;\r\n\r\n\t// Verifica se \"x\" eh do tipo data\r\n\t$x_is_date = FALSE;\r\n\tif(!is_null(value_date($row[\"x\"]))){\r\n\t\t$x_is_date = TRUE;\r\n\r\n\t\t// Captura a primeira e ultima data\r\n\t\treset($arr);\r\n\t\t$dataini = explode(\"-\", key($arr));\r\n\t\t$dataini = mktime(0, 0, 0, $dataini[1], $dataini[2], $dataini[0]);\r\n\t\tend($arr);\r\n\t\t$datafin = explode(\"-\", key($arr));\r\n\t\t$datafin = mktime(0, 0, 0, $datafin[1], $datafin[2], $datafin[0]);\r\n\r\n\t\t// Cria as datas nos intervalos sem datas\r\n\t\twhile($dataini < $datafin){\r\n\t\t\t$dataatu = date(\"Y-m-d\", $dataini);\r\n\t\t\tif(!isset($arr[$dataatu])){\r\n\t\t\t\t$arr[$dataatu] = array();\r\n\t\t\t}\r\n\t\t\t// Verifica se todas as \"variaveis\"(chaves) estao criadas para a data\r\n\t\t\tforeach($arr_a as $a){\r\n\t\t\t\tif(!isset($arr[$dataatu][$a])){\r\n\t\t\t\t\t$arr[$dataatu][$a] = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Acrescenta um dia na data inicial\r\n\t\t\t$dataini = strtotime(\"+1 day\", $dataini);\r\n\t\t}\r\n\t\tksort($arr);\r\n\t}\r\n\r\n\t// Preenche as variaveis \"arr_category\" e \"arr_dataset\"\r\n\t$arr_dataset_aux = array();\r\n\tforeach($arr as $x => $arr2){\r\n\t\tif($x_is_date){\r\n\t\t\t$x = convert_date($x, \"Y-m-d\", \"d/m/Y\");\r\n\t\t}\r\n\t\t$arr_category[] = array(\"label\" => $x);\r\n\t\tforeach($arr2 as $a => $y){\r\n\t\t\t$arr_dataset_aux[$a][\"seriesname\"] = $a;\r\n\t\t\t$arr_dataset_aux[$a][\"data\"][] = array(\"value\" => (float) $y);\r\n\t\t}\r\n\t}\r\n\tforeach($arr_dataset_aux as $dataset){\r\n\t\t$arr_dataset[] = $dataset;\r\n\t}\r\n\t$arr_category = array(array(\"category\" => $arr_category));\r\n}", "function getTrendData($indate) {\n $trendarray = [];\n $countryarray = array(\n \"AU\" => \"australia\",\n \"BR\" => \"brazil\",\n \"CA\" => \"canada\",\n \"GB\" => \"inggris\",\n \"ID\" => \"indonesia\",\n \"JP\" => \"jepang\",\n \"MX\" => \"mexico\",\n \"SE\" => \"swedia\",\n \"TR\" => \"turkey\",\n \"US\" => \"amerika\");\n\n foreach ($countryarray as $key => $value) {\n// echo \"\" . $key . \" \" . $value;\n $country = $value;\n $result = $GLOBALS['conn']->query(\"SELECT title, artist FROM `$country` WHERE `position`=1 AND `date`='$indate' LIMIT 1\"); \n if ($result->num_rows > 0) { \n // output data of each row \n $iter = 0; \n while($row = $result->fetch_assoc()) {\n $trendarray += array($key => \"\".$row[\"artist\"].\" - \".$row[\"title\"]);\n } \n } else { \n// echo \"\". $value . \" 0 results\". \"\\n\";\n }\n }\n\n foreach ($trendarray as $key => $value) {\n// echo \"\" . $key . \" \" . $value;\n }\n\n return $trendarray;\n }", "function expense_tracker_pie_chart_ajax()\n{\n\t$this->layout = 'blank';\n\t$s_role_id=$this->Session->read('role_id');\n\t$s_society_id = (int)$this->Session->read('society_id');\n\t$s_user_id=$this->Session->read('user_id');\t\n\n\t\t$date1 = $this->request->query('date1');\n\t\t$date2 = $this->request->query('date2');\n\t\t$this->set('date1',$date1);\n\t\t$this->set('date2',$date2);\n\n\t\t\t$this->loadmodel('expense_tracker');\n\t\t\t$conditions=array(\"society_id\" => $s_society_id);\n\t\t\t$cursor1=$this->expense_tracker->find('all',array('conditions'=>$conditions));\n\t\t\t$this->set('cursor1',$cursor1);\n}", "function createJSONUserSelectionSorted($location, $time, $date) {\n list($day, $month, $year) = sscanf($date, \"%d/%d/%d\");\n $USDate = \"$month/$day/$year\";\n\n //now use the 'magical' functions, with string format of UK/NORMAL date format\n $nextDate = date(\"d/m/Y\", strtotime(\"+1 day\", strtotime($USDate)));\n\n $xml = simplexml_load_file($location);\n\n //translate function = replace parts of a string\n //when a string only contains numbers, xpath will treat it as a number\n $resultArr = $xml->xpath(\"//reading[\"\n . \"(@date='$date' and translate(@time, ':', '') >= translate('$time', ':', '')) or\"\n . \"(@date='$nextDate' and translate(@time, ':', '') <= translate('$time', ':', ''))]\");\n\n //need to sort array\n usort($resultArr, 'sortSimpleXMLElementByDateTime');\n\n #json creation\n $rows = array();\n $table = array();\n $table[\"cols\"] = array(\n array(\"label\" => \"date/time\", \"type\" => \"date\"),\n array(\"label\" => \"NO2\", \"type\" => \"number\"),\n array(\"type\" => \"string\", \"role\" => \"tooltip\", \"p\" => array('html' => 'true'))\n );\n \n foreach ($resultArr as $single) {\n $reading = simplexml_load_string($single->asXML());\n $date = createDateTime($reading->attributes()->date, $reading->attributes()->time);\n $val = ($reading->attributes()->val);\n $temp = array(); //new array per loop to avoid array overflow.\n $googleChartsJSONDate = \"Date(\";\n $googleChartsJSONDate .= date(\"Y, \", $date->format(\"U\"));\n $googleChartsJSONDate .= date(\"m\", $date->format(\"U\")) - 1 . \", \";\n $googleChartsJSONDate .= date(\"d, H, i, s\", $date->format(\"U\")) . \")\";\n\n $tooltip = \"<span style=\\\"font-size: 18pt; color: #000000; font-family: arial\\\">\"\n . \"Time = \" . $date->format(\"H:i A\") . \"<br>\"\n . \"<b style=\\\"color: \".NO2Color($val).\"\\\">NO2 = \" . $val . \"</b>\"\n . \"</span>\";\n\n \n $temp[] = array(\"v\" => $googleChartsJSONDate); //add date\n $temp[] = array(\"v\" => (int) $val); //add val\n $temp[] = array(\"v\" => $tooltip); //add tooltip\n $rows[] = array(\"c\" => $temp); //add row to new column\n }\n\n $table[\"rows\"] = $rows;\n $tableJSON = json_encode($table);\n return $tableJSON; //return the string\n}", "public function index()\n\t{\n\t\t\n\t$today_users = Trains_reservation::whereDate('created_at', today())->count()+Planes_reservation::whereDate('created_at', today())->count();\n\t$yesterday_users = Trains_reservation::whereDate('created_at', today()->subDays(1))->count()+Planes_reservation::whereDate('created_at', today()->subDays(1))->count();\n\t$users_2_days_ago = Trains_reservation::whereDate('created_at', today()->subDays(2))->count()+Planes_reservation::whereDate('created_at', today()->subDays(2))->count();\n\t$users_3_days_ago = Trains_reservation::whereDate('created_at', today()->subDays(3))->count()+Planes_reservation::whereDate('created_at', today()->subDays(3))->count();\n\t$users_4_days_ago = Trains_reservation::whereDate('created_at', today()->subDays(4))->count()+Planes_reservation::whereDate('created_at', today()->subDays(4))->count();\n\t$users_5_days_ago = Trains_reservation::whereDate('created_at', today()->subDays(5))->count()+Planes_reservation::whereDate('created_at', today()->subDays(5))->count();\n\t$users_6_days_ago = Trains_reservation::whereDate('created_at', today()->subDays(6))->count()+Planes_reservation::whereDate('created_at', today()->subDays(6))->count();\n\t$users_7_days_ago = Trains_reservation::whereDate('created_at', today()->subDays(7))->count()+Planes_reservation::whereDate('created_at', today()->subDays(7))->count();\n\t$chart = new SampleChart;\n\t$chart->labels(['Tujuh hari lalu','Enam hari lalu','Lima hari lalu','Empat hari lalu','Tiga hari lalu','Dua hari lalu', 'Kemarin', 'Hari Ini']);\n\t$chart->dataset('Laporan Transaksi', 'line', [$users_7_days_ago,$users_6_days_ago,$users_5_days_ago,$users_4_days_ago,$users_3_days_ago,$users_2_days_ago, $yesterday_users, $today_users]);\n\t\treturn view('laporan.hari',compact('chart'));\n\t}", "public function chart($enf)\n {\n $enfant = Enfant::where('id_enfant',$enf)->first();\n //chart month\n\n $data = DB::table('seancetraitements')\n ->select(\n DB::raw('MAX(note) as sums'),\n\n DB::raw('Month(created_at)as month' ))\n ->where('enfant_id','=',$enf)\n ->groupby(DB::raw('Month(created_at)' ))\n ->get();\n //$k= date(\"F\", mktime(0, 0, 0, date, 1));\n $array[] = ['', 'تقييم'];\n foreach($data as $key => $value)\n {\n\n $array[++$key] = [(string)$value->month,(int) $value->sums];\n }\n\n//DATE_FORMAT(created_at,'%M')as date\n\n //chart janfier\n $datadatejanvier = DB::table('seancetraitements')\n ->select(\n DB::raw('note as sums'),\n\n DB::raw(\"DATE_FORMAT(created_at,'%D')as datejanvier\"))\n ->where('enfant_id','=',$enf)\n ->where( DB::raw('Month(created_at)' ),'=','1' )\n\n ->get();\n //$k= date(\"F\", mktime(0, 0, 0, date, 1));\n $arraydatejanvier[] = ['شهر جانفي', 'تقييم'];\n foreach($datadatejanvier as $key => $value)\n {\n\n $arraydatejanvier[++$key] = [(string)$value->datejanvier,(int) $value->sums];\n }\n //chart fivrier\n $datadatefivrier = DB::table('seancetraitements')\n ->select(\n DB::raw('note as sums'),\n\n DB::raw(\"DATE_FORMAT(created_at,'%D')as datefivrier\"))\n ->where('enfant_id','=',$enf)\n ->where( DB::raw('Month(created_at)' ),'=','2' )\n\n ->get();\n //$k= date(\"F\", mktime(0, 0, 0, date, 1));\n $arraydatefivrier[] = ['شهر فيفري', 'تقييم'];\n foreach($datadatefivrier as $key => $value)\n {\n\n $arraydatefivrier[++$key] = [(string)$value->datefivrier,(int) $value->sums];\n }\n //chart mars\n $datadatemars = DB::table('seancetraitements')\n ->select(\n DB::raw('note as sums'),\n\n DB::raw(\"DATE_FORMAT(created_at,'%D')as datemars\"))\n ->where('enfant_id','=',$enf)\n ->where( DB::raw('Month(created_at)' ),'=','3' )\n\n ->get();\n //$k= date(\"F\", mktime(0, 0, 0, date, 1));\n $arraydatemars[] = ['شهر مارس', 'تقييم'];\n foreach($datadatemars as $key => $value)\n {\n\n $arraydatemars[++$key] = [(string)$value->datemars,(int) $value->sums];\n }\n //chart avril\n $datadateavril = DB::table('seancetraitements')\n ->select(\n DB::raw('note as sums'),\n\n DB::raw(\"DATE_FORMAT(created_at,'%D')as dateavril\"))\n ->where('enfant_id','=',$enf)\n ->where( DB::raw('Month(created_at)' ),'=','4' )\n\n ->get();\n //$k= date(\"F\", mktime(0, 0, 0, date, 1));\n $arraydateavril[] = ['شهر افريل', 'تقييم'];\n foreach($datadateavril as $key => $value)\n {\n\n $arraydateavril[++$key] = [(string)$value->dateavril,(int) $value->sums];\n }\n //chart MAI\n $datadatemai = DB::table('seancetraitements')\n ->select(\n DB::raw('note as sums'),\n\n DB::raw(\"DATE_FORMAT(created_at,'%D')as datemai\"))\n ->where('enfant_id','=',$enf)\n ->where( DB::raw('Month(created_at)' ),'=','5' )\n\n ->get();\n //$k= date(\"F\", mktime(0, 0, 0, date, 1));\n $arraydatemai[] = ['شهر ماي', 'تقييم'];\n foreach($datadatemai as $key => $value)\n {\n\n $arraydatemai[++$key] = [(string)$value->datemai,(int) $value->sums];\n }\n //chart septembre\n $datadateseptember = DB::table('seancetraitements')\n ->select(\n DB::raw('note as sums'),\n\n DB::raw(\"DATE_FORMAT(created_at,'%D')as dateseptember\"))\n ->where('enfant_id','=',$enf)\n ->where( DB::raw('Month(created_at)' ),'=','9' )\n\n ->get();\n //$k= date(\"F\", mktime(0, 0, 0, date, 1));\n $arraydateseptember[] = ['شهر سبتمبر', 'تقييم'];\n foreach($datadateseptember as $key => $value)\n {\n\n $arraydateseptember[++$key] = [(string)$value->dateseptember,(int) $value->sums];\n }\n //chart october\n $datadateoctober = DB::table('seancetraitements')\n ->select(\n DB::raw('note as sums'),\n\n DB::raw(\"DATE_FORMAT(created_at,'%D')as dateoctober\"))\n ->where('enfant_id','=',$enf)\n ->where( DB::raw('Month(created_at)' ),'=','10' )\n\n ->get();\n //$k= date(\"F\", mktime(0, 0, 0, date, 1));\n $arraydateoctober[] = ['شهر أكتوبر', 'تقييم'];\n foreach($datadateoctober as $key => $value)\n {\n\n $arraydateoctober[++$key] = [(string)$value->dateoctober,(int) $value->sums];\n }\n //chartnovember\n $datadatenovember = DB::table('seancetraitements')\n ->select(\n DB::raw('note as sums'),\n\n DB::raw(\"DATE_FORMAT(created_at,'%D')as datenovember\"))\n ->where('enfant_id','=',$enf)\n ->where( DB::raw('Month(created_at)' ),'=','11' )\n\n ->get();\n //$k= date(\"F\", mktime(0, 0, 0, date, 1));\n $arraydatenovember[] = ['شهر نوفمبر', 'تقييم'];\n foreach($datadatenovember as $key => $value)\n {\n\n $arraydatenovember[++$key] = [(string)$value->datenovember,(int) $value->sums];\n }\n //chartdecember\n $datadatedecember = DB::table('seancetraitements')\n ->select(\n DB::raw('note as sums'),\n\n DB::raw(\"DATE_FORMAT(created_at,'%D')as datedecember\"))\n ->where('enfant_id','=',$enf)\n ->where( DB::raw('Month(created_at)' ),'=','12' )\n\n ->get();\n //$k= date(\"F\", mktime(0, 0, 0, date, 1));\n $arraydatedecember[] = ['شهر ديسمبر', 'تقييم'];\n foreach($datadatedecember as $key => $value)\n {\n\n $arraydatedecember[++$key] = [(string)$value->datedecember,(int) $value->sums];\n }\n\n\n\n $datadateyear = DB::table('seancetraitements')\n ->select(\n DB::raw('MAX(note) as sums'),\n\n DB::raw(\"DATE_FORMAT(created_at,'%Y')as dateyear\"))\n ->where('enfant_id','=',$enf)\n ->groupby('dateyear' )\n ->get();\n $arraydateyear[] = ['عام', 'تقييم'];\n foreach($datadateyear as $key => $value)\n {\n $arraydateyear[++$key] = [(string)$value-> dateyear,(int) $value->sums];\n }\n\n return view('pagetraitant.seancetraitements.chart',compact('enfant'))->with('month', json_encode($array))->with('datejanvier', json_encode($arraydatejanvier))->with('datefivrier', json_encode($arraydatefivrier))->with('datemars', json_encode($arraydatemars))->with('dateavril', json_encode($arraydateavril))->with('datemai', json_encode($arraydatemai))->with('datedecember', json_encode($arraydatedecember))->with('datenovember', json_encode($arraydatenovember))->with('dateoctober', json_encode($arraydateoctober))->with('dateseptember', json_encode($arraydateseptember))->with('dateyear', json_encode($arraydateyear));\n }", "public static function getPrevalenceRatesChart($testTypeID = 0){\n\t\t$from = Input::get('start');\n\t\t$to = Input::get('end');\n\t\t$months = json_decode(self::getMonths($from, $to));\n\t\t$testTypes = new Illuminate\\Database\\Eloquent\\Collection();\n\n\t\tif($testTypeID == 0){\n\t\t\t\n\t\t\t$testTypes = TestType::supportPrevalenceCounts();\n\t\t}else{\n\t\t\t$testTypes->add(TestType::find($testTypeID));\n\t\t}\n\n\t\t$options = '{\n\t\t \"chart\": {\n\t\t \"type\": \"spline\"\n\t\t },\n\t\t \"title\": {\n\t\t \"text\":\"'.trans('messages.prevalence-rates').'\"\n\t\t },\n\t\t \"subtitle\": {\n\t\t \"text\":'; \n\t\t if($from==$to)\n\t\t \t$options.='\"'.trans('messages.for-the-year').' '.date('Y').'\"';\n\t\t else\n\t\t \t$options.='\"'.trans('messages.from').' '.$from.' '.trans('messages.to').' '.$to.'\"';\n\t\t $options.='},\n\t\t \"credits\": {\n\t\t \"enabled\": false\n\t\t },\n\t\t \"navigation\": {\n\t\t \"buttonOptions\": {\n\t\t \"align\": \"right\"\n\t\t }\n\t\t },\n\t\t \"series\": [';\n\t\t \t$counts = count($testTypes);\n\n\t\t\t \tforeach ($testTypes as $testType) {\n\t\t \t\t$options.= '{\n\t\t \t\t\t\"name\": \"'.$testType->name.'\",\"data\": [';\n\t\t \t\t\t\t$counter = count($months);\n\t\t \t\t\tforeach ($months as $month) {\n\t\t \t\t\t$data = $testType->getPrevalenceCount($month->annum, $month->months);\n\t\t \t\t\t\tif($data->isEmpty()){\n\t\t \t\t\t\t\t$options.= '0.00';\n\t\t \t\t\t\t\tif($counter==1)\n\t\t\t \t\t\t\t\t$options.='';\n\t\t\t \t\t\t\telse\n\t\t\t \t\t\t\t\t$options.=',';\n\t\t \t\t\t\t}\n\t\t \t\t\t\telse{\n\t\t \t\t\t\t\tforeach ($data as $datum) {\n\t\t\t\t \t\t\t\t$options.= $datum->rate;\n\n\t\t\t\t \t\t\t\tif($counter==1)\n\t\t\t\t \t\t\t\t\t$options.='';\n\t\t\t\t \t\t\t\telse\n\t\t\t\t \t\t\t\t\t$options.=',';\n\t\t\t\t\t \t\t}\n\t\t \t\t\t\t}\n\t\t \t\t\t$counter--;\n\t\t\t\t \t\t}\n\t\t\t\t \t\t$options.=']';\n\t\t\t\t \tif($counts==1)\n\t\t\t\t\t\t\t$options.='}';\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$options.='},';\n\t\t\t\t\t\t$counts--;\n\t\t\t\t\t}\n\t\t\t$options.='],\n\t\t \"xAxis\": {\n\t\t \"categories\": [';\n\t\t $count = count($months);\n\t \tforeach ($months as $month) {\n\t \t\t\t\t$options.= '\"'.$month->label.\" \".$month->annum;\n\t \t\t\t\tif($count==1)\n\t \t\t\t\t\t$options.='\" ';\n\t \t\t\t\telse\n\t \t\t\t\t\t$options.='\" ,';\n\t \t\t\t\t$count--;\n\t \t\t\t}\n\t $options.=']\n\t\t },\n\t\t \"yAxis\": {\n\t\t \"title\": {\n\t\t \"text\": \"'.trans('messages.prevalence-rates-label').'\"\n\t\t },\n\t \"min\": \"0\",\n\t \"max\": \"100\"\n\t\t }\n\t\t}';\n\treturn $options;\n\t}", "function getData($strKriteria)\n{\n global $tblEmployee;\n global $strDataTotal;\n global $strChartPath;\n global $strPageTitle;\n global $strWordsTitle;\n global $strDirPath;\n global $strFilePath;\n global $strDate;\n global $strPageTitle;\n global $strDataInterval;\n global $strResultInTable;\n global $db;\n global $ARRAY_EMPLOYEE_STATUS;\n $chart = new VerticalBarChart();\n $dataSet = new XYDataSet();\n //get all edu level\n $arrCode = $ARRAY_EMPLOYEE_STATUS;\n $arrCode[] = null;\n foreach ($arrCode as $key => $codeData) {\n $strSQL = \"SELECT COUNT(*) FROM hrd_employee AS t1\n\t\tLEFT JOIN hrd_salary_detail AS t2 ON t1.id = t2.id_employee \";//AND t1.position_code = t2.position_code \";\n $strExecuteKriteria = \" AND t1.employee_status = '$key' \";\n $strExecuteSQL = $strSQL . $strKriteria . $strExecuteKriteria;\n $numOfEmployee = $db->execute($strExecuteSQL);\n $numOfEmployee = $db->fetchrow($numOfEmployee);\n $numOfEmployee = $numOfEmployee[\"count\"];\n if ($codeData == null) {\n $codeData = getWords(\"No $strWordsTitle Data\");\n }\n $dataSet->addPoint(new Point(\"$codeData\", $numOfEmployee));\n $strResultInTable .= \"\n\t\t<tr>\n\t\t\t<td>$codeData</td>\n\t\t\t<td align=right>$numOfEmployee</td>\n\t\t</tr>\n\t\t\";\n $strDataTotal += $numOfEmployee;\n }\n $chart->setDataSet($dataSet);\n $chart->setTitle($strPageTitle);\n $strChartPath = $strDirPath . \"/\" . $strFilePath;\n if (!file_exists($strChartPath)) {\n if (!file_exists($strDirPath)) {\n mkdir($strDirPath);\n }\n $temp = fopen($strChartPath, \"w\");\n fwrite($temp, \"\");\n fclose($temp);\n }\n $chart->render($strChartPath);\n}", "public function drawProgressChart() {\n $pid = $this->session->userdata('project_id');\n\n if (empty($this->chart_model->getNotFinishedCount($pid)) && empty($this->chart_model->getFinishedCount($pid)))\n $this->data['display'] = 1;\n\n $category = array();\n $category['name'] = 'Category';\n\n $series1 = array();\n $series1['name'] = 'Open Test Cases';\n\n $series2 = array();\n $series2['name'] = 'Closed Test Cases ';\n\n $category['data'][] = $this->chart_model->getProjectName($pid);\n $series1['data'][] = $this->chart_model->getNotFinishedCount($pid);\n $series2['data'][] = $this->chart_model->getFinishedCount($pid);\n\n $result = array();\n array_push($result, $category);\n array_push($result, $series1);\n array_push($result, $series2);\n\n print json_encode($result, JSON_NUMERIC_CHECK);\n\n return $result;\n }", "public function run()\n {\n $year = chartYear();\n $metrics = new \\App\\Helpers\\Report;\n\n $worked = [\n 'jan' => toHours($metrics->workedByMonth(1, $year)),\n 'feb' => toHours($metrics->workedByMonth(2, $year)),\n 'mar' => toHours($metrics->workedByMonth(3, $year)),\n 'apr' => toHours($metrics->workedByMonth(4, $year)),\n 'may' => toHours($metrics->workedByMonth(5, $year)),\n 'jun' => toHours($metrics->workedByMonth(6, $year)),\n 'jul' => toHours($metrics->workedByMonth(7, $year)),\n 'aug' => toHours($metrics->workedByMonth(8, $year)),\n 'sep' => toHours($metrics->workedByMonth(9, $year)),\n 'oct' => toHours($metrics->workedByMonth(10, $year)),\n 'nov' => toHours($metrics->workedByMonth(11, $year)),\n 'dec' => toHours($metrics->workedByMonth(12, $year)),\n ];\n\n $billed = [\n 'jan' => toHours($metrics->workedByMonth(1, $year, 'billed')),\n 'feb' => toHours($metrics->workedByMonth(2, $year, 'billed')),\n 'mar' => toHours($metrics->workedByMonth(3, $year, 'billed')),\n 'apr' => toHours($metrics->workedByMonth(4, $year, 'billed')),\n 'may' => toHours($metrics->workedByMonth(5, $year, 'billed')),\n 'jun' => toHours($metrics->workedByMonth(6, $year, 'billed')),\n 'jul' => toHours($metrics->workedByMonth(7, $year, 'billed')),\n 'aug' => toHours($metrics->workedByMonth(8, $year, 'billed')),\n 'sep' => toHours($metrics->workedByMonth(9, $year, 'billed')),\n 'oct' => toHours($metrics->workedByMonth(10, $year, 'billed')),\n 'nov' => toHours($metrics->workedByMonth(11, $year, 'billed')),\n 'dec' => toHours($metrics->workedByMonth(12, $year, 'billed')),\n ];\n\n return view(\n 'widgets.timetracking.yearly_overview', [\n 'config' => $this->config,\n 'year' => $year,\n 'billed' => $billed,\n 'worked' => $worked\n ]\n );\n }", "public function getgraphAction(){\n $params = array(\n 'cht' => 'lc', \t\t\t\t\t// chart type\n 'chf' => 'bg,s,f4f4f4|c,lg,90,ffffff,0.1,ededed,0', //background fills for the chart\n // 'chm' => 'B,f4d4b2,0,0,0|B,FF0000,1,1,0|B,00FF00,2,2,0', \t\t// line fills\n 'chco' => 'db4814,1919D1',\t\t\t\t\t//Series Colors\n 'chs' => '587x300',\t\t\t\t// chart size <width>x<height>\n\t\t\t'chxt' => 'x,y',\t\t\t\t\t// visible axes\n\t\t\t//'chof' => 'validate'\t\t\t\t// output format (png,gif,json,html{when chof='validate'})\n );\n \n\t$post=$this->getRequest()->getPost();\n\t\n\t\n\t$timezoneLocal = Mage::app()->getStore()->getConfig(Mage_Core_Model_Locale::XML_PATH_DEFAULT_TIMEZONE);\n\n\t\tlist ($dateStart, $dateEnd) = Mage::getResourceModel('reports/order_collection')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->getDateRange($post['range'], '', '', true);\n\n $dateStart->setTimezone($timezoneLocal);\n $dateEnd->setTimezone($timezoneLocal);\n\t\n\t\t$dates = array();\n $datas = array();\n\n while($dateStart->compare($dateEnd) < 0){\n switch ($post['range']) {\n case '24h':\n $d = $dateStart->toString('yyyy-MM-dd HH:00');\n $dateStart->addHour(1);\n break;\n case '7d':\n case '1m':\n $d = $dateStart->toString('yyyy-MM-dd');\n $dateStart->addDay(1);\n break;\n case '1y':\n case '2y':\n $d = $dateStart->toString('yyyy-MM');\n $dateStart->addMonth(1);\n break;\n }\n\n $dates[] = $d;\n }\n\n\t\t$graphData=array();\n\t\t\n\t\t$product_list=array('product1'=>$post['product'],\n\t\t\t\t\t\t\t'product2'=>$post['compare2']\n\t\t\t\t\t\t\t);\t\n\t\t$graphData=Mage::Helper('graphs')->getGraphData($dates,$product_list);\n\n /**\n * setting skip step\n */\n if (count($dates) > 8 && count($dates) < 15) {\n $c = 1;\n } else if (count($dates) >= 15){\n $c = 2;\n } else {\n $c = 0;\n }\n /**\n * skipping some x labels for good reading\n */\n $i=0;\n foreach ($dates as $k => $d) {\n if ($i == $c) {\n $dates[$k] = $d;\n $i = 0;\n } else {\n $dates[$k] = '';\n $i++;\n }\n }\n \n $this->_axisLabels['x'] = $dates;\n\t\t$this->_axisLabels['y'] = $graphData['quantity'][$post['product']];\n\t\t\n\t\tforeach ($graphData['quantity'] as $index => $serie) {\n $localmaxlength[$index] = sizeof($serie);\n $localmaxvalue[$index] = max($serie);\n $localminvalue[$index] = min($serie);\n }\n \n\t\t$maxvalue = max($localmaxvalue);\n\t\t$minvalue = min($localminvalue);\n\n $yrange = 0;\n $yLabels = array();\n $miny = 0;\n $maxy = 0;\n $yorigin = 0;\n\n $maxlength = max($localmaxlength);\n if ($minvalue >= 0 && $maxvalue >= 0) {\n $miny = 0;\n if ($maxvalue > 10) {\n $p = pow(10, $this->_getPow($maxvalue));\n $maxy = (ceil($maxvalue/$p))*$p;\n $yLabels = range($miny, $maxy, $p);\n } else {\n $maxy = ceil($maxvalue+1);\n $yLabels = range($miny, $maxy, 1);\n }\n $yrange = $maxy;\n $yorigin = 0;\n }\n\n \n\t\t\t\n\t\t\t$params['chd'] = \"e:\";\n $dataDelimiter = \"\";\n $dataSetdelimiter = \",\";\n $dataMissing = \"__\";\n \n\t\t\t// EXTENDED ENCODING\n\t\t\tforeach($product_list as $productid){\n\t\t\t\t$chartdata = array();\t\n for ($j = 0; $j < sizeof($graphData['quantity'][$productid]); $j++) {\n $currentvalue = $graphData['quantity'][$productid][$j];\n \n if (is_numeric($currentvalue)) {\n if ($yrange) {\n $ylocation = (4095 * ($yorigin + $currentvalue) / $yrange);\n\n } else {\n $ylocation = 0;\n }\n $firstchar = floor($ylocation / 64);\n $secondchar = $ylocation % 64;\n $mappedchar = substr($this->_extendedEncoding, $firstchar, 1)\n . substr($this->_extendedEncoding, $secondchar, 1);\n array_push($chartdata, $mappedchar . $dataDelimiter);\n } else {\n array_push($chartdata, $dataMissing . $dataDelimiter);\n }\n\n\t\t\t }\n\t\t\t $buffer = implode('', $chartdata);\t\t\t \n\t\t\t\t\t$buffer = rtrim($buffer, $dataSetdelimiter);\n\t\t\t\t\t$buffer = rtrim($buffer, $dataDelimiter);\n\t\t\t\t\t$buffer = str_replace(($dataDelimiter . $dataSetdelimiter), $dataSetdelimiter, $buffer);\n\t\t\t\t\t\n\t\t\t\t\t$params['chd'] .= $buffer.',';\n\t\t\t\t\t$buffer=null;\n\t\t\t\t\t$chartdata=null;\n\t\t\t\t}\n\t\t\t\t\t$labelBuffer = \"\";\n\t\t\t\t\t$valueBuffer = array();\n\t\t\t\t\t$rangeBuffer = \"\";\n \n if (sizeof($this->_axisLabels) > 0) {\n $params['chxt'] = implode(',', array_keys($this->_axisLabels));\n $indexid = 0;\n foreach ($this->_axisLabels as $idx=>$labels){\n\t\t\t\t\n if ($idx == 'x') {\n /**\n * Format date\n */\n foreach ($this->_axisLabels[$idx] as $_index=>$_label) {\n if ($_label != '') {\n switch ($post['range']) {\n case '24h':\n $this->_axisLabels[$idx][$_index] = $this->formatTime(\n new Zend_Date($_label, 'yyyy-MM-dd HH:00'), 'short', false\n );\n break;\n case '7d':\n case '1m':\n $this->_axisLabels[$idx][$_index] = $this->formatDate(\n new Zend_Date($_label, 'yyyy-MM-dd')\n );\n break;\n case '1y':\n case '2y':\n\t\t\t\t\t\t\t\t\t\n $formats = Mage::app()->getLocale()->getTranslationList('datetime');\n $format = isset($formats['yyMM']) ? $formats['yyMM'] : 'MM/yyyy';\n $format = str_replace(array(\"yyyy\", \"yy\", \"MM\"), array(\"Y\", \"y\", \"m\"), $format);\n $this->_axisLabels[$idx][$_index] = date($format, strtotime($_label));\n break;\n }\n } else {\n $this->_axisLabels[$idx][$_index] = '';\n }\n\n }\n\t\t\t\t\t\t\t\t\t\t\n $tmpstring = implode('|', $this->_axisLabels[$idx]);\n\n $valueBuffer[] = $indexid . \":|\" . $tmpstring;\n if (sizeof($this->_axisLabels[$idx]) > 1) {\n $deltaX = 100/(sizeof($this->_axisLabels[$idx])-1);\n } else {\n $deltaX = 100;\n }\n } else if ($idx == 'y') {\n $valueBuffer[] = $indexid . \":|\" . implode('|', $yLabels);\n if (sizeof($yLabels)-1) {\n $deltaY = 100/(sizeof($yLabels)-1);\n } else {\n $deltaY = 100;\n }\n // setting range values for y axis\n $rangeBuffer = $indexid . \",\" . $miny . \",\" . $maxy . \"|\";\n }\n $indexid++;\n }\n $params['chxl'] = implode('|', $valueBuffer);\n }\t\t\t\n\t\t\t\t\t\n\t\tif (isset($deltaX) && isset($deltaY)) {\n $params['chg'] = $deltaX . ',' . $deltaY . ',1,0';\n }\n \n\n\t\t\t$p = array();\n foreach ($params as $name => $value) {\n $p[] = $name . '=' .urlencode($value);\n }\n\n $url= Mage_Adminhtml_Block_Dashboard_Graph::API_URL . '?' . implode('&', $p);\n\n\t\t\t\techo $url;\n\t}", "public function prepare_character_data_by_days_for_chart_acumulating($start, $end, $character_id) {\n\t\tglobal $wpdb;\n\t\t// get data for character\n\t\t$sql = \"SELECT * FROM `\" . $wpdb->prefix . \"tr_ratting_data` WHERE `date_acquired` BETWEEN '\" . $start . \"' AND '\" . $end . \"' AND `owner_id`='\" . $character_id . \"'\";\n\t\t$character = $wpdb->get_results ( \"$sql\", ARRAY_A );\n\t\t\n\t\t// loop trough every day in the interval and createy empty array\n\t\t$start2 = new DateTime ( $start );\n\t\t\n\t\t// add 1 day to the end date.\n\t\t$end2 = date ( \"Y-m-d H:i:s\", strtotime ( $end . \" +1 day\" ) );\n\t\t$end3 = new DateTime ( $end2 );\n\t\t// define 1 day interva÷\n\t\t$interval = DateInterval::createFromDateString ( '1 day' );\n\t\t$period = new DatePeriod ( $start2, $interval, $end3 );\n\t\t// define empty char array\n\t\t$character_data = null;\n\t\t// loop trough the time period\n\t\tforeach ( $period as $dt ) {\n\t\t\t\n\t\t\t$character_data [$dt->format ( \"Y-m-d\" )] = 0;\n\t\t}\n\t\t$temp2 = $character_data;\n\t\n\t\t// now put the data from db in to those fields\n\t\tforeach ( $character as $tick ) {\n\t\t\t\n\t\t\t\n\t\t\t// run trough the dates for ech tick\n\t\t\tforeach ( $character_data as $key => $value ) {\n\t\t\t\t\n\t\t\t\t// get only date , we dont need hours nd such\n\t\t\t\t$pieces = explode ( \" \", $tick ['date_acquired'] );\n\t\t\t\t\n\t\t\t\t// if the date is the same as the date from the date loop array add the isk\n\t\t\t\tif ($pieces [0] == $key) {\n\t\t\t\t\t$temp2 [$key] += $tick ['amount'];\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$ready_array = null;\n\t\t$total_if_was_ratting_at_all = 0;\n\t\t$previous_amount = 0;\n\t\t// populate the array count previous + next\n\t\t// temp 2 is date- value\n\t\tforeach ( $temp2 as $key => $value ) {\n\t\t\t// add to the previous value existing value and save.\n\t\t\t$ready_array [$key] = $value + $previous_amount;\n\t\t\t\n\t\t\t$total_if_was_ratting_at_all += $value;\n\t\t\t$previous_amount = $value + $previous_amount;\n\t\t}\n\t\t\n\t\t// dont return if he was not ratting at all.\n\t\tif ($total_if_was_ratting_at_all > 0) {\n\t\t\treturn $ready_array;\n\t\t}\n\t\treturn null;\n\n\t}", "public function pharmacySalesGraphData()\n {\n $prescriptions = Prescription::whereIn('status',[Prescriptions::PAID_PRESCRIPTION,Prescriptions::ISSUED_PRESCRIPTION])->get();\n $internalPrescriptions = $prescriptions->where('prescription_type', Prescriptions::INTERNAL_MEDICAL_PRESCRIPTION)\n ->sortBy('date')->groupBy('date')->map(function ($row) {\n return [\n 'x' => $row->first()['date'],\n 'y' => $row->sum('total')\n ];\n })->values()->all();\n $externalPrescriptions = $prescriptions->where('prescription_type', Prescriptions::EXTERNAL_MEDICAL_PRESCRIPTION)\n ->sortBy('date')->groupBy('date')->map(function ($row) {\n return [\n 'x' => $row->first()['date'],\n 'y' => $row->sum('total')\n ];\n })->values()->all();\n return ResponseHelper::findSuccess('Explorations Data', [\n 'internalPrescriptionsSales' => $internalPrescriptions,\n 'externalPrescriptionsSales' => $externalPrescriptions,\n ]);\n }", "public function FireStatisticalinWeek($date){\n $result = array();\n $result[0]['date'] = $date;\n $result[0]['count'] = $this->FireStatistical($date);\n for($i = 1; $i < 7; $i++)\n {\n //$strdate = $i;\n $date1 = date('Y/m/d', strtotime('-'.$i.' days', strtotime($date)));\n $result[$i]['date'] = $date1;\n $result[$i]['count'] = $this->FireStatistical($date1);\n }\n return $result;\n }", "abstract function calculate_series_list();", "function DailyPredictionDataOnSelectedDate ($dPersonal) {\n $returnData = '';\n foreach ($dPersonal['DailyPredictionData'] as $key => $prediction) {\n $dd = (array) $prediction;\n $cont = explode(':', $dd['Description']);\n if (!$key) {\n $h3class = 'ui-accordion-header ui-corner-top ui-state-default ui-accordion-icons geth3content ui-accordion-header-active ui-state-active geth3content';\n $arialSelected = 'true';\n $tabindex = 0;\n $display = 'block';\n $sign = '<span class=\"ui-accordion-header-icon ui-icon ui-icon-triangle-1-s\"></span>';\n $ariaHidden = 'false';\n $div1 = 'getDivContent accordion-inner ui-accordion-content ui-corner-bottom ui-helper-reset ui-widget-content ui-accordion-content-active firstChild';\n } else {\n $h3class = 'ui-accordion-header ui-corner-top ui-accordion-header-collapsed ui-corner-all ui-state-default ui-accordion-icons geth3content';\n $arialSelected = 'false';\n $tabindex = -1;\n $display = 'none';\n $ariaHidden = 'true';\n $sign = '<span class=\"ui-accordion-header-icon ui-icon ui-icon-triangle-1-e\"></span>';\n $div1 = 'getDivContent accordion-inner ui-accordion-content ui-corner-bottom ui-helper-reset ui-widget-content';\n }\n $returnData .= \"<h3 class='\".$h3class.\"' role='tab' aria-selected='\".$arialSelected.\"' aria-expanded='\".$arialSelected.\"' tabindex='\".$tabindex.\"' ref='title_\".$key.\"'>\".$sign.$dd['Title'].\"</h3>\"; // Title of prediction\n //if (!$key) {\n $returnData .= \"<div class='\".$div1.\"' style='display: block;' role='tabpanel' aria-hidden='\".$ariaHidden.\"'>\";\n if (isset($cont[0]) && !empty($cont[0])) {\n $returnData .= \"<h4>\".$cont[0].\" : </h4>\";\n }\n if (isset($cont[1]) && !empty($cont[1])) {\n $returnData .= \"<b>\".trim($cont[1]).\"</b>\";\n }\n //}\n for ($i=1; $i < 11; $i++) {\n if (array_key_exists('Quetion'.$i, $dd) && array_key_exists('Answer'.$i, $dd)) {\n $returnData .= \"<div class='accordion-sec'><span>\".$dd['Quetion'.$i].\"</span><p>\".$dd['Answer'.$i].\"</p></div>\";\n }\n }\n $returnData .= \"</div>\";\n }\n return $returnData;\n}", "public static function BUILD_CAGES()\n {\n $data = self::GET_COLAGE_STATS();\n\t\t\n $dataset = [];\n $fsdata = [];\n\t\t\n $A = [];\n $B = [];\n $C = [];\n\t\t\n foreach ($data as $key => $value) {\n $obj = (object)$value;\n\t\t\t$labels[] = ['label'=>self::ABBR_CNAME($obj->COL_NAME)];\n\t\t\t$A[] = ['value'=>$obj->A];\n\t\t\t$B[] = ['value'=>$obj->B];\n\t\t\t$C[] = ['value'=>$obj->C];\n }\n\t\t\n\t\t$dataset[]=[\"seriesname\"=>\"Below 35\",\"data\"=>$A];\n\t\t$dataset[]=[\"seriesname\"=>\"35 to 64\",\"data\"=>$B];\n\t\t$dataset[]=[\"seriesname\"=>\"65 & Above\",\"data\"=>$C];\n\n $graphData = [\n\t\t\t'type'=>'msline',\n\t\t\t'renderAt'=>'colstaffage-chart',\n\t\t\t'width'=>'100%',\n\t\t\t'height'=>'100%',\n\t\t\t'dataFormat'=>'json',\n\t\t\t'dataSource'=>[\n\t\t\t\t\"chart\"=>[\n\t\t\t\t\t\"caption\"=>\"STAFF AGE DISTRIBUTION IN COLLEGES\",\n\t\t\t\t\t// \"subcaption\"=>\"By Top 3 Vendors\",\n\t\t\t\t\t\"linethickness\"=>\"5\",\n\t\t\t\t\t// \"numberPrefix\"=>\"$\",\n\t\t\t\t\t\"showvalues\"=>\"0\",\n\t\t\t\t\t\"formatnumberscale\"=>\"1\",\n\t\t\t\t\t\"labeldisplay\"=>\"ROTATE\",\n\t\t\t\t\t\"slantlabels\"=>\"1\",\n\t\t\t\t\t\"divLineAlpha\"=>\"40\",\n\t\t\t\t\t\"anchoralpha\"=>\"0\",\n\t\t\t\t\t\"animation\"=>\"1\",\n\t\t\t\t\t\"legendborderalpha\"=>\"20\",\n\t\t\t\t\t\"drawCrossLine\"=>\"1\",\n\t\t\t\t\t\"crossLineColor\"=>\"#0d0d0d\",\n\t\t\t\t\t\"crossLineAlpha\"=>\"100\",\n\t\t\t\t\t\"tooltipGrayOutColor\"=>\"#80bfff\",\n\t\t\t\t\t\"theme\"=>\"zune\",\n\t\t\t\t\t\"exportEnabled\"=>\"1\",\n\t\t\t\t\t\"autoScale\"=>\"1\",\n\t\t\t\t],\n\t\t\t\t\"categories\"=>[\n\t\t\t\t\t[\"category\"=>$labels],\n\t\t\t\t],\n\t\t\t\t\"dataset\"=>$dataset,\n\t\t\t]\n\t\t];\n\t\t\n\t\t$fsdata = $graphData;\n\n return $fsdata;\n }", "public function mapDateTimeHandlesDifferentFieldEvaluationsDataProvider() {}", "public function handleOnEventStartLine() {\n\t\t$this->closeWidget(self::SETTING_TEAMSCORE_TITLE);\n\t\t$this->ifSpectatorShowAllScoreWidget();\n\t}", "function getEvent($data_fighter){\n \n $date_lim = date (\"Y-m-d H:i:s\", mktime(date(\"H\"),date(\"i\"),date(\"s\"),date(\"m\"),date(\"d\")-1,date(\"Y\")));\n \n $data = $this->find('all', array('conditions' => array (\"date >\" => $date_lim))); \n \n $x = $data_fighter['Fighter']['coordinate_x'];\n $y = $data_fighter['Fighter']['coordinate_y'];\n \n \n $nb = 0;\n $tab = array();\n foreach($data as $key){\n \n $sight_x = $key['Event']['coordinate_x']-$x;\n if ($sight_x<0)\n $sight_x = $sight_x*(-1);\n $sight_y = $key['Event']['coordinate_y']-$y;\n if ($sight_y<0)\n $sight_y = $sight_y*(-1);\n $total = $sight_x+$sight_y;\n \n if ($total<=$data_fighter['Fighter']['skill_sight']){\n $tab[$nb]=$key;\n $nb++;\n }\n \n }\n \n return $tab;\n \n }", "function sparkline_cummulative_articles_added()\n{\n\tglobal $db;\n\t\n\t// Get daily counts of articles created since start of project\n\t$sql = 'SELECT count(reference_id) AS c, year(created), month(created), day(created), \n\tdatediff(created, ' . $db->qstr(START_DATE) . ') AS days, created FROM rdmp_reference \n\tGROUP BY days\n\tORDER BY created';\n\t\n\t$time_span = days_since_start();\n\t\n\t// Initialise array\n\t$count = array();\n\tfor ($i = 0; $i < $time_span; $i++)\n\t{\n\t\t$count[$i] = 0;\n\t}\n\t\n\t$result = $db->Execute($sql);\n\tif ($result == false) die(\"failed [\" . __FILE__ . \":\" . __LINE__ . \"]: \" . $sql);\n\t\n\t$running_total = 0;\n\t\n\twhile (!$result->EOF) \n\t{\n\t\t$running_total += $result->fields['c'];\n\t\t$count[$result->fields['days']] = $running_total;\n\t\t$result->MoveNext();\n\t}\n\t\n\tfor ($i = 1; $i < $time_span; $i++)\n\t{\n\t\tif ($count[$i] == 0)\n\t\t{\n\t\t\t$count[$i] = $count[$i-1];\n\t\t}\n\t}\n\t\n\t\n\treturn make_sparkline($count, $running_total, 200, 100);\n}", "public function formatRows($collection)\n {\n\n // To chart, we need the data grouped by question\n // also we need separate arrays of ratings and date-times\n $chart_data = [];\n foreach ($collection as $row) {\n $chart_data[$row->text][0][] = $row->rating;\n $chart_data[$row->text][1][] = $row->created_at;\n }\n /* Let's verify this is what we need\n print_r($chart_data);\n Array (\n [Are you feeling productive?] => Array (\n [0] => Array (\n [0] => 1\n [1] => 1\n [2] => 1\n ...\n )\n [1] => Array (\n [0] => 2017-05-09 16:02:01\n [1] => 2017-05-09 17:03:29\n [2] => 2017-05-10 16:20:29\n ...\n )\n )\n [Are you feeling social?] => Array (\n ...\n )\n ...\n )\n */\n return $chart_data;\n }", "public function actionChartTest1(){\n\t\t\n\t $chartGrantData='{\n\t\t\"chart\": {\n \"subcaption\": \"Pilot Project Planned vs Actual\", \n \"dateformat\": \"dd/mm/yyyy\",\n \"outputdateformat\": \"ddds mns yy\",\n \"ganttwidthpercent\": \"70\",\n \"ganttPaneDuration\": \"50\",\n \"ganttPaneDurationUnit\": \"d\",\t\n\t\t\t\t\"height\":\"500%\",\n\t\t\t\t\"fontsize\": \"14\",\t\t\t\t\n \"plottooltext\": \"$processName{br} $label starting date $start{br}$label ending date $end\",\n \"theme\": \"fint\"\n },\n\t\t\"categories\": [\n\t\t\t{\n\t\t\t\t\"bgcolor\": \"#33bdda\",\n\t\t\t\t\"category\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"1/4/2014\",\n\t\t\t\t\t\t\"end\": \"30/6/2014\",\n\t\t\t\t\t\t\"label\": \"Months\",\n\t\t\t\t\t\t\"align\": \"middle\",\n\t\t\t\t\t\t\"fontcolor\": \"#ffffff\",\n\t\t\t\t\t\t\"fontsize\": \"14\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"bgcolor\": \"#33bdda\",\n\t\t\t\t\"align\": \"middle\",\n\t\t\t\t\"fontcolor\": \"#ffffff\",\n\t\t\t\t\"fontsize\": \"12\",\n\t\t\t\t\"category\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"1/4/2014\",\n\t\t\t\t\t\t\"end\": \"30/4/2014\",\n\t\t\t\t\t\t\"label\": \"April\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"1/5/2014\",\n\t\t\t\t\t\t\"end\": \"31/5/2014\",\n\t\t\t\t\t\t\"label\": \"May\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"1/6/2014\",\n\t\t\t\t\t\t\"end\": \"30/6/2014\",\n\t\t\t\t\t\t\"label\": \"June\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"bgcolor\": \"#ffffff\",\n\t\t\t\t\"fontcolor\": \"#1288dd\",\n\t\t\t\t\"fontsize\": \"10\",\n\t\t\t\t\"isbold\": \"1\",\n\t\t\t\t\"align\": \"center\",\n\t\t\t\t\"category\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"1/4/2014\",\n\t\t\t\t\t\t\"end\": \"5/4/2014\",\n\t\t\t\t\t\t\"label\": \"Week 1\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"6/4/2014\",\n\t\t\t\t\t\t\"end\": \"12/4/2014\",\n\t\t\t\t\t\t\"label\": \"Week 2\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"13/4/2014\",\n\t\t\t\t\t\t\"end\": \"19/4/2014\",\n\t\t\t\t\t\t\"label\": \"Week 3\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"20/4/2014\",\n\t\t\t\t\t\t\"end\": \"26/4/2014\",\n\t\t\t\t\t\t\"label\": \"Week 4\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"27/4/2014\",\n\t\t\t\t\t\t\"end\": \"3/5/2014\",\n\t\t\t\t\t\t\"label\": \"Week 5\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"4/5/2014\",\n\t\t\t\t\t\t\"end\": \"10/5/2014\",\n\t\t\t\t\t\t\"label\": \"Week 6\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"11/5/2014\",\n\t\t\t\t\t\t\"end\": \"17/5/2014\",\n\t\t\t\t\t\t\"label\": \"Week 7\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"18/5/2014\",\n\t\t\t\t\t\t\"end\": \"24/5/2014\",\n\t\t\t\t\t\t\"label\": \"Week 8\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"25/5/2014\",\n\t\t\t\t\t\t\"end\": \"31/5/2014\",\n\t\t\t\t\t\t\"label\": \"Week 9\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"1/6/2014\",\n\t\t\t\t\t\t\"end\": \"7/6/2014\",\n\t\t\t\t\t\t\"label\": \"Week 10\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"8/6/2014\",\n\t\t\t\t\t\t\"end\": \"14/6/2014\",\n\t\t\t\t\t\t\"label\": \"Week 11\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"15/6/2014\",\n\t\t\t\t\t\t\"end\": \"21/6/2014\",\n\t\t\t\t\t\t\"label\": \"Week 12\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"start\": \"22/6/2014\",\n\t\t\t\t\t\t\"end\": \"28/6/2014\",\n\t\t\t\t\t\t\"label\": \"Week 13\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t}\n\t\t],\n\t\t\"datatable\": {\n \"headervalign\": \"bottom\",\n \"datacolumn\": [\n {\n \"headertext\": \"PIC\",\n \"fontcolor\": \"#000000\",\n\t\t\t\t\t\t\"fontsize\": \"10\",\n\t\t\t\t\t\t\"isanimated\": \"1\",\n\t\t\t\t\t\t\"bgcolor\": \"#6baa01\",\n\t\t\t\t\t\t\"headervalign\": \"middle\",\n\t\t\t\t\t\t\"headeralign\": \"center\",\n\t\t\t\t\t\t\"headerbgcolor\": \"#6baa01\",\n\t\t\t\t\t\t\"headerfontcolor\": \"#ffffff\",\n\t\t\t\t\t\t\"headerfontsize\": \"16\",\n\t\t\t\t\t\t\"width\":\"150\",\n\t\t\t\t\t\t\"align\": \"left\",\n\t\t\t\t\t\t\"isbold\": \"1\",\n\t\t\t\t\t\t\"bgalpha\": \"25\",\t\t\t\t\n \"text\": [\n {\n \"label\": \" \"\n },\n {\n \"label\": \"John\"\n },\n {\n \"label\": \"David\"\n },\n {\n \"label\": \"Mary\"\n },\n {\n \"label\": \"John\"\n },\n {\n \"label\": \"Andrew & Harry\"\n }, \n {\n \"label\": \"John & Harry\"\n },\n {\n \"label\": \" \"\n },\n {\n \"label\": \"Neil & Harry\"\n },\n {\n \"label\": \"Neil & Harry\"\n },\n {\n \"label\": \"Chris\"\n },\n {\n \"label\": \"John & Richard\"\n }\n ]\n }\n ]\n },\n\t\t\"processes\": {\n\t\t\t\"headertext\": \"Pilot Task\",\n\t\t\t\"fontsize\": \"12\",\n\t\t\t\"fontcolor\": \"#000000\",\n\t\t\t\"fontsize\": \"10\",\n\t\t\t\"isanimated\": \"1\",\n\t\t\t\"bgcolor\": \"#6baa01\",\n\t\t\t\"headervalign\": \"middle\",\n\t\t\t\"headeralign\": \"center\",\n\t\t\t\"headerbgcolor\": \"#6baa01\",\n\t\t\t\"headerfontcolor\": \"#ffffff\",\n\t\t\t\"headerfontsize\": \"16\",\n\t\t\t\"width\":\"200\",\n\t\t\t\"align\": \"left\",\n\t\t\t\"isbold\": \"1\",\n\t\t\t\"bgalpha\": \"25\",\n\t\t\t\"process\": [\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Clear site\",\n\t\t\t\t\t\"id\": \"1\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Excavate Foundation\",\n\t\t\t\t\t\"id\": \"2\",\n\t\t\t\t\t\"hoverbandcolor\": \"#e44a00\",\n\t\t\t\t\t\"hoverbandalpha\": \"40\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Concrete Foundation\",\n\t\t\t\t\t\"id\": \"3\",\n\t\t\t\t\t\"hoverbandcolor\": \"#e44a00\",\n\t\t\t\t\t\"hoverbandalpha\": \"40\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Footing to DPC\",\n\t\t\t\t\t\"id\": \"4\",\n\t\t\t\t\t\"hoverbandcolor\": \"#e44a00\",\n\t\t\t\t\t\"hoverbandalpha\": \"40\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Drainage Services\",\n\t\t\t\t\t\"id\": \"5\",\n\t\t\t\t\t\"hoverbandcolor\": \"#e44a00\",\n\t\t\t\t\t\"hoverbandalpha\": \"40\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Backfill\",\n\t\t\t\t\t\"id\": \"6\",\n\t\t\t\t\t\"hoverbandcolor\": \"#e44a00\",\n\t\t\t\t\t\"hoverbandalpha\": \"40\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Ground Floor\",\n\t\t\t\t\t\"id\": \"7\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Walls on First Floor\",\n\t\t\t\t\t\"id\": \"8\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"First Floor Carcass\",\n\t\t\t\t\t\"id\": \"9\",\n\t\t\t\t\t\"hoverbandcolor\": \"#e44a00\",\n\t\t\t\t\t\"hoverbandalpha\": \"40\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"First Floor Deck\",\n\t\t\t\t\t\"id\": \"10\",\n\t\t\t\t\t\"hoverbandcolor\": \"#e44a00\",\n\t\t\t\t\t\"hoverbandalpha\": \"40\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Roof Structure\",\n\t\t\t\t\t\"id\": \"11\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Roof Covering\",\n\t\t\t\t\t\"id\": \"12\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Rainwater Gear\",\n\t\t\t\t\t\"id\": \"13\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Windows\",\n\t\t\t\t\t\"id\": \"14\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"External Doors\",\n\t\t\t\t\t\"id\": \"15\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Connect Electricity\",\n\t\t\t\t\t\"id\": \"16\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Connect Water Supply\",\n\t\t\t\t\t\"id\": \"17\",\n\t\t\t\t\t\"hoverbandcolor\": \"#e44a00\",\n\t\t\t\t\t\"hoverbandalpha\": \"40\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Install Air Conditioning\",\n\t\t\t\t\t\"id\": \"18\",\n\t\t\t\t\t\"hoverbandcolor\": \"#e44a00\",\n\t\t\t\t\t\"hoverbandalpha\": \"40\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Interior Decoration\",\n\t\t\t\t\t\"id\": \"19\",\n\t\t\t\t\t\"hoverbandcolor\": \"#e44a00\",\n\t\t\t\t\t\"hoverbandalpha\": \"40\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Fencing And signs\",\n\t\t\t\t\t\"id\": \"20\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Exterior Decoration\",\n\t\t\t\t\t\"id\": \"21\",\n\t\t\t\t\t\"hoverbandcolor\": \"#e44a00\",\n\t\t\t\t\t\"hoverbandalpha\": \"40\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Setup racks\",\n\t\t\t\t\t\"id\": \"22\"\n\t\t\t\t}\n\t\t\t]\n\t\t},\t\t\n\t\t\"tasks\": {\n\t\t\t\"task\": [\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"1\",\n\t\t\t\t\t\"start\": \"9/4/2014\",\n\t\t\t\t\t\"end\": \"12/4/2014\",\n\t\t\t\t\t\"id\": \"1-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"1\",\n\t\t\t\t\t\"start\": \"9/4/2014\",\n\t\t\t\t\t\"end\": \"12/4/2014\",\n\t\t\t\t\t\"id\": \"1\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"2\",\n\t\t\t\t\t\"start\": \"13/4/2014\",\n\t\t\t\t\t\"end\": \"23/4/2014\",\n\t\t\t\t\t\"id\": \"2-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"2\",\n\t\t\t\t\t\"start\": \"13/4/2014\",\n\t\t\t\t\t\"end\": \"25/4/2014\",\n\t\t\t\t\t\"id\": \"2\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Delay\",\n\t\t\t\t\t\"processid\": \"2\",\n\t\t\t\t\t\"start\": \"23/4/2014\",\n\t\t\t\t\t\"end\": \"25/4/2014\",\n\t\t\t\t\t\"id\": \"2-2\",\n\t\t\t\t\t\"color\": \"#e44a00\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"tooltext\": \"Delayed by 2 days.\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"3\",\n\t\t\t\t\t\"start\": \"23/4/2014\",\n\t\t\t\t\t\"end\": \"30/4/2014\",\n\t\t\t\t\t\"id\": \"3-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"3\",\n\t\t\t\t\t\"start\": \"26/4/2014\",\n\t\t\t\t\t\"end\": \"4/5/2014\",\n\t\t\t\t\t\"id\": \"3\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Delay\",\n\t\t\t\t\t\"processid\": \"3\",\n\t\t\t\t\t\"start\": \"3/5/2014\",\n\t\t\t\t\t\"end\": \"4/5/2014\",\n\t\t\t\t\t\"id\": \"3-2\",\n\t\t\t\t\t\"color\": \"#e44a00\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"tooltext\": \"Delayed by 1 days.\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"4\",\n\t\t\t\t\t\"start\": \"3/5/2014\",\n\t\t\t\t\t\"end\": \"10/5/2014\",\n\t\t\t\t\t\"id\": \"4-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"4\",\n\t\t\t\t\t\"start\": \"4/5/2014\",\n\t\t\t\t\t\"end\": \"10/5/2014\",\n\t\t\t\t\t\"id\": \"4\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"5\",\n\t\t\t\t\t\"start\": \"6/5/2014\",\n\t\t\t\t\t\"end\": \"11/5/2014\",\n\t\t\t\t\t\"id\": \"5-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"5\",\n\t\t\t\t\t\"start\": \"6/5/2014\",\n\t\t\t\t\t\"end\": \"10/5/2014\",\n\t\t\t\t\t\"id\": \"5\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"6\",\n\t\t\t\t\t\"start\": \"4/5/2014\",\n\t\t\t\t\t\"end\": \"7/5/2014\",\n\t\t\t\t\t\"id\": \"6-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"6\",\n\t\t\t\t\t\"start\": \"5/5/2014\",\n\t\t\t\t\t\"end\": \"11/5/2014\",\n\t\t\t\t\t\"id\": \"6\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Delay\",\n\t\t\t\t\t\"processid\": \"6\",\n\t\t\t\t\t\"start\": \"7/5/2014\",\n\t\t\t\t\t\"end\": \"11/5/2014\",\n\t\t\t\t\t\"id\": \"6-2\",\n\t\t\t\t\t\"color\": \"#e44a00\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"tooltext\": \"Delayed by 4 days.\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"7\",\n\t\t\t\t\t\"start\": \"11/5/2014\",\n\t\t\t\t\t\"end\": \"14/5/2014\",\n\t\t\t\t\t\"id\": \"7-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"7\",\n\t\t\t\t\t\"start\": \"11/5/2014\",\n\t\t\t\t\t\"end\": \"14/5/2014\",\n\t\t\t\t\t\"id\": \"7\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"8\",\n\t\t\t\t\t\"start\": \"16/5/2014\",\n\t\t\t\t\t\"end\": \"19/5/2014\",\n\t\t\t\t\t\"id\": \"8-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"8\",\n\t\t\t\t\t\"start\": \"16/5/2014\",\n\t\t\t\t\t\"end\": \"19/5/2014\",\n\t\t\t\t\t\"id\": \"8\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"9\",\n\t\t\t\t\t\"start\": \"16/5/2014\",\n\t\t\t\t\t\"end\": \"18/5/2014\",\n\t\t\t\t\t\"id\": \"9-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"9\",\n\t\t\t\t\t\"start\": \"16/5/2014\",\n\t\t\t\t\t\"end\": \"21/5/2014\",\n\t\t\t\t\t\"id\": \"9\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Delay\",\n\t\t\t\t\t\"processid\": \"9\",\n\t\t\t\t\t\"start\": \"18/5/2014\",\n\t\t\t\t\t\"end\": \"21/5/2014\",\n\t\t\t\t\t\"id\": \"9-2\",\n\t\t\t\t\t\"color\": \"#e44a00\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"tooltext\": \"Delayed by 3 days.\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"10\",\n\t\t\t\t\t\"start\": \"20/5/2014\",\n\t\t\t\t\t\"end\": \"23/5/2014\",\n\t\t\t\t\t\"id\": \"10-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"10\",\n\t\t\t\t\t\"start\": \"21/5/2014\",\n\t\t\t\t\t\"end\": \"24/5/2014\",\n\t\t\t\t\t\"id\": \"10\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Delay\",\n\t\t\t\t\t\"processid\": \"10\",\n\t\t\t\t\t\"start\": \"23/5/2014\",\n\t\t\t\t\t\"end\": \"24/5/2014\",\n\t\t\t\t\t\"id\": \"10-2\",\n\t\t\t\t\t\"color\": \"#e44a00\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"tooltext\": \"Delayed by 1 days.\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"11\",\n\t\t\t\t\t\"start\": \"25/5/2014\",\n\t\t\t\t\t\"end\": \"27/5/2014\",\n\t\t\t\t\t\"id\": \"11-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"11\",\n\t\t\t\t\t\"start\": \"25/5/2014\",\n\t\t\t\t\t\"end\": \"27/5/2014\",\n\t\t\t\t\t\"id\": \"11\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"12\",\n\t\t\t\t\t\"start\": \"28/5/2014\",\n\t\t\t\t\t\"end\": \"1/6/2014\",\n\t\t\t\t\t\"id\": \"12-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"12\",\n\t\t\t\t\t\"start\": \"28/5/2014\",\n\t\t\t\t\t\"end\": \"1/6/2014\",\n\t\t\t\t\t\"id\": \"12\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"13\",\n\t\t\t\t\t\"start\": \"4/6/2014\",\n\t\t\t\t\t\"end\": \"6/6/2014\",\n\t\t\t\t\t\"id\": \"13-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"13\",\n\t\t\t\t\t\"start\": \"4/6/2014\",\n\t\t\t\t\t\"end\": \"6/6/2014\",\n\t\t\t\t\t\"id\": \"13\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"14\",\n\t\t\t\t\t\"start\": \"4/6/2014\",\n\t\t\t\t\t\"end\": \"4/6/2014\",\n\t\t\t\t\t\"id\": \"14-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"14\",\n\t\t\t\t\t\"start\": \"4/6/2014\",\n\t\t\t\t\t\"end\": \"4/6/2014\",\n\t\t\t\t\t\"id\": \"14\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"15\",\n\t\t\t\t\t\"start\": \"4/6/2014\",\n\t\t\t\t\t\"end\": \"4/6/2014\",\n\t\t\t\t\t\"id\": \"15-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"15\",\n\t\t\t\t\t\"start\": \"4/6/2014\",\n\t\t\t\t\t\"end\": \"4/6/2014\",\n\t\t\t\t\t\"id\": \"15\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"16\",\n\t\t\t\t\t\"start\": \"2/6/2014\",\n\t\t\t\t\t\"end\": \"7/6/2014\",\n\t\t\t\t\t\"id\": \"16-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"16\",\n\t\t\t\t\t\"start\": \"2/6/2014\",\n\t\t\t\t\t\"end\": \"7/6/2014\",\n\t\t\t\t\t\"id\": \"16\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"17\",\n\t\t\t\t\t\"start\": \"5/6/2014\",\n\t\t\t\t\t\"end\": \"10/6/2014\",\n\t\t\t\t\t\"id\": \"17-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"17\",\n\t\t\t\t\t\"start\": \"5/6/2014\",\n\t\t\t\t\t\"end\": \"17/6/2014\",\n\t\t\t\t\t\"id\": \"17\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Delay\",\n\t\t\t\t\t\"processid\": \"17\",\n\t\t\t\t\t\"start\": \"10/6/2014\",\n\t\t\t\t\t\"end\": \"17/6/2014\",\n\t\t\t\t\t\"id\": \"17-2\",\n\t\t\t\t\t\"color\": \"#e44a00\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"tooltext\": \"Delayed by 7 days.\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"18\",\n\t\t\t\t\t\"start\": \"10/6/2014\",\n\t\t\t\t\t\"end\": \"12/6/2014\",\n\t\t\t\t\t\"id\": \"18-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Delay\",\n\t\t\t\t\t\"processid\": \"18\",\n\t\t\t\t\t\"start\": \"18/6/2014\",\n\t\t\t\t\t\"end\": \"20/6/2014\",\n\t\t\t\t\t\"id\": \"18\",\n\t\t\t\t\t\"color\": \"#e44a00\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"tooltext\": \"Delayed by 8 days.\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"19\",\n\t\t\t\t\t\"start\": \"15/6/2014\",\n\t\t\t\t\t\"end\": \"23/6/2014\",\n\t\t\t\t\t\"id\": \"19-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"19\",\n\t\t\t\t\t\"start\": \"16/6/2014\",\n\t\t\t\t\t\"end\": \"23/6/2014\",\n\t\t\t\t\t\"id\": \"19\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"20\",\n\t\t\t\t\t\"start\": \"23/6/2014\",\n\t\t\t\t\t\"end\": \"23/6/2014\",\n\t\t\t\t\t\"id\": \"20-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"20\",\n\t\t\t\t\t\"start\": \"23/6/2014\",\n\t\t\t\t\t\"end\": \"23/6/2014\",\n\t\t\t\t\t\"id\": \"20\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"21\",\n\t\t\t\t\t\"start\": \"18/6/2014\",\n\t\t\t\t\t\"end\": \"21/6/2014\",\n\t\t\t\t\t\"id\": \"21-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"21\",\n\t\t\t\t\t\"start\": \"18/6/2014\",\n\t\t\t\t\t\"end\": \"23/6/2014\",\n\t\t\t\t\t\"id\": \"21\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Delay\",\n\t\t\t\t\t\"processid\": \"21\",\n\t\t\t\t\t\"start\": \"21/6/2014\",\n\t\t\t\t\t\"end\": \"23/6/2014\",\n\t\t\t\t\t\"id\": \"21-2\",\n\t\t\t\t\t\"color\": \"#e44a00\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"tooltext\": \"Delayed by 2 days.\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"processid\": \"22\",\n\t\t\t\t\t\"start\": \"24/6/2014\",\n\t\t\t\t\t\"end\": \"28/6/2014\",\n\t\t\t\t\t\"id\": \"22-1\",\n\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\"height\": \"32%\",\n\t\t\t\t\t\"toppadding\": \"12%\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"processid\": \"22\",\n\t\t\t\t\t\"start\": \"25/6/2014\",\n\t\t\t\t\t\"end\": \"28/6/2014\",\n\t\t\t\t\t\"id\": \"22\",\n\t\t\t\t\t\"color\": \"#6baa01\",\n\t\t\t\t\t\"toppadding\": \"56%\",\n\t\t\t\t\t\"height\": \"32%\"\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"connectors\": [\n\t\t\t{\n\t\t\t\t\"connector\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"fromtaskid\": \"1\",\n\t\t\t\t\t\t\"totaskid\": \"2\",\n\t\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\t\"thickness\": \"2\",\n\t\t\t\t\t\t\"fromtaskconnectstart_\": \"1\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"fromtaskid\": \"2-2\",\n\t\t\t\t\t\t\"totaskid\": \"3\",\n\t\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\t\"thickness\": \"2\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"fromtaskid\": \"3-2\",\n\t\t\t\t\t\t\"totaskid\": \"4\",\n\t\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\t\"thickness\": \"2\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"fromtaskid\": \"3-2\",\n\t\t\t\t\t\t\"totaskid\": \"6\",\n\t\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\t\"thickness\": \"2\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"fromtaskid\": \"7\",\n\t\t\t\t\t\t\"totaskid\": \"8\",\n\t\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\t\"thickness\": \"2\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"fromtaskid\": \"7\",\n\t\t\t\t\t\t\"totaskid\": \"9\",\n\t\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\t\"thickness\": \"2\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"fromtaskid\": \"12\",\n\t\t\t\t\t\t\"totaskid\": \"16\",\n\t\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\t\"thickness\": \"2\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"fromtaskid\": \"12\",\n\t\t\t\t\t\t\"totaskid\": \"17\",\n\t\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\t\"thickness\": \"2\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"fromtaskid\": \"17-2\",\n\t\t\t\t\t\t\"totaskid\": \"18\",\n\t\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\t\"thickness\": \"2\"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"fromtaskid\": \"19\",\n\t\t\t\t\t\t\"totaskid\": \"22\",\n\t\t\t\t\t\t\"color\": \"#008ee4\",\n\t\t\t\t\t\t\"thickness\": \"2\"\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t}\n\t\t],\n\t\t\"milestones\": {\n\t\t\t\"milestone\": [\n\t\t\t\t{\n\t\t\t\t\t\"date\": \"2/6/2014\",\n\t\t\t\t\t\"taskid\": \"12\",\n\t\t\t\t\t\"color\": \"#f8bd19\",\n\t\t\t\t\t\"shape\": \"star\",\n\t\t\t\t\t\"tooltext\": \"Completion of Phase 1\"\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"legend\": {\n\t\t\t\"item\": [\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Planned\",\n\t\t\t\t\t\"color\": \"#008ee4\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Actual\",\n\t\t\t\t\t\"color\": \"#6baa01\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"label\": \"Slack (Delay)\",\n\t\t\t\t\t\"color\": \"#e44a00\"\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t }';\n\t\treturn $chartGrantData;\n\t\t\n\t}", "function getHourlyLevelData($prefix_arr, $start_date)\n {\n $this->load->model(\"building_model\");\n $arr_levels = $prefix_arr;\n $totalData = array();\n $labels = array();\n $l_arr = array();\n $dataset = array();\n\n for ($i = 0; $i < count($arr_levels); $i++) {\n $labels = array();\n $daily_data = array();\n $line_name = \"\";\n $filter = \"('\" . $arr_levels[$i] . \"')\";\n $length = strlen($arr_levels[$i]);\n $queryStr = \"select day,hour,left(mapped_location,$length) as level,count(distinct(id)) \n from $this->ana_schemas.$this->hourly_table \n where left(mapped_location,$length) in \" . $filter . \" and day='\" . $start_date . \"' \n group by day,hour,left(mapped_location,$length) \n order by hour;\";\n\n $query = $this->db->query($queryStr);\n foreach ($query->result_array() as $row) {\n array_push($labels, $row['hour']);\n array_push($daily_data, $row['count']);\n }\n\n //get line name\n $result = $this->building_model->get_level_by_prefix($arr_levels[$i]);\n if ($result != NULL)\n $line_name = $result[0]->name;\n else {\n $line_name = \"\";\n }\n \n //if today is not start date do... 24 hours\n // else today is start_date do only current hour time\n $d1 = new DateTime($start_date);\n $now = new DateTime(\"now\");\n\n //\n $l_arr = array();\n $data_arr = array();\n\n //\n if($d1->format(\"Y-m-d\") == $now->format(\"Y-m-d\")){\n //todo get time now\n $var = intval(date('H'));\n for($k = 0; $k < $var; $k++){\n array_push($l_arr, $k.\":00\");\n $index = $this->isContain($k,$labels);\n if($index != -1){\n array_push($data_arr,$daily_data[$index]);\n } else {\n array_push($data_arr,0); //add 0 if there is no data at $k hour\n }\n }\n } else if($d1->format(\"Y-m-d\") < $now->format(\"Y-m-d\")){\n $h_max = 24;\n for($k = 0; $k < $h_max; $k++){\n array_push($l_arr, $k.\":00\");\n $index = $this->isContain($k,$labels);\n if($index != -1){\n array_push($data_arr,$daily_data[$index]);\n } else {\n array_push($data_arr,0); //add 0 if there is no data at $k hour\n }\n }\n }\n\n if(count($arr_levels) > 1){ //try to build total line\n $k = 0;\n foreach ($data_arr as $value) { \n if (isset($totalData[$k])){\n $totalData[$k] += $value;\n } else {\n $totalData[$k] = $value;\n }\n $k++;\n }\n }\n\n // assembly data\n $data = array('label' => $line_name,\n 'data' => $data_arr,\n 'fill'=> false,\n 'pointRadius'=> 5,\n 'pointHitRadius'=> 10,\n 'borderColor' => $this->fillColor[$i],\n 'backgroundColor' => $this->fillColor[$i], // transparent background\n 'pointBorderColor' => $this->fillColor[$i],\n 'pointBackgroundColor' => $this->fillColor[$i], // strokeColor(line color),strokeColor and pointColor should be the same\n \"pointStrokeColor\" => $this->fillColor[$i]);\n array_push($dataset, $data);\n }\n\n \n if(count($arr_levels) > 1){\n $temp_arr = array();\n foreach ($totalData as $key => $value) {\n array_push($temp_arr,strval($value));\n }\n //\n $total_arr = array('label'=>\"Total\",\n 'data'=>$totalData,\n 'fill'=> false,\n 'pointRadius'=> 5,\n 'pointHitRadius'=> 10,\n 'borderColor' => $this->transFillColor,\n 'backgroundColor' => $this->transFillColor, // transparent background\n 'pointBorderColor' => $this->transFillColor,\n 'pointBackgroundColor' => $this->transFillColor, // strokeColor(line color),strokeColor and pointColor should be the same\n \"pointStrokeColor\" => $this->transFillColor);\n \n array_push($dataset, $total_arr); \n }\n //\n $result = array('labels' => $l_arr, \"datasets\" => $dataset);\n return $result;\n }", "function visualizzaGraficoAndamentoLike($date, $medieLikes, $giorni)\n {\n echo \"<script>function graficoPrevisioneLike(){ var data = google.visualization.arrayToDataTable([['', 'Likes']\";\n\n $media = (trovaMin($medieLikes) + trovaMax($medieLikes)) / 2;\n $numMedie = count($medieLikes);\n $ultimo = $medieLikes[$numMedie - 1];\n $andamento = ($ultimo - $media) / 10;\n\n for($x = 0; $x < $numMedie; $x++)\n {\n echo \",['$date[$x]', $medieLikes[$x]]\";\n }\n\n for($y = 1; $y <= $giorni; $y++)\n {\n $dataFutura = date('Y-m-d h:i:s', strtotime('+'. $y .' days'));\n \n if($andamento < -0.09 || $andamento > 0.09)\n {\n $ultimo += $andamento;\n echo \",['$dataFutura', \". $ultimo .\"]\";\n }\n else\n {\n echo \",['$dataFutura', $ultimo]\";\n }\n }\n\n echo \"]);var chart = new google.visualization.LineChart(document.getElementById('previsioneLike'));\n chart.draw(data, {title: 'Previsione dei Like', colors: ['blue'], curveType: 'function'});}</script>\";\n }", "public function lineWithPoints() {\n\t\t$this->Options['series']['lines']['show'] = true;\n\t\t$this->Options['series']['points']['show'] = true;\n\t}", "public function overallSubjectAnalysis($slug)\n {\n \n $user = User::getRecordWithSlug($slug);\n if($isValid = $this->isValidRecord($user))\n return redirect($isValid); \n \n if(!isEligible($slug))\n return back();\n\n $records = array();\n $records = ( new App\\QuizResult())->getOverallSubjectsReport($user);\n if(!$records)\n {\n flash('Ooops..!','No Records available', 'overlay'); \n return back();\n }\n $color_correct = getColor('background',rand(00,9999));\n $color_wrong = getColor('background', rand(00,9999));\n $color_not_attempted = getColor('background', rand(00,9999)); \n $i=0;\n $labels = [];\n $dataset = [];\n $dataset_label = [];\n $bgcolor = [];\n $border_color = [];\n \n $marks_labels = [getPhrase('correct'), getPhrase('wrong'), getPhrase('not_answered')];\n $time_labels = [getPhrase('time_spent_on_correct_answers'), getPhrase('time_spent_on_wrong_answers')];\n\n foreach($records as $record) {\n $record = (object)$record;\n \n //Marks\n $subjects_display[$i]['subject_name'] = $record->subject_name;\n $subjects_display[$i]['correct_answers'] = $record->correct_answers;\n $subjects_display[$i]['wrong_answers'] = $record->wrong_answers;\n $subjects_display[$i]['not_answered'] = $record->not_answered;\n\n // Time\n $subjects_display[$i]['time_spent_on_correct_answers'] = $record->time_spent_on_correct_answers;\n $subjects_display[$i]['time_spent_on_wrong_answers'] = $record->time_spent_on_wrong_answers;\n $subjects_display[$i]['time_to_spend'] = $record->time_to_spend;\n $subjects_display[$i]['time_spent'] = $record->time_spent;\n\n \n $marks_dataset = [$record->correct_answers, $record->wrong_answers, $record->not_answered];\n $time_dataset = [$record->time_spent_on_correct_answers, $record->time_spent_on_wrong_answers];\n $dataset_label = $record->subject_name;\n \n $bgcolor = [$color_correct,$color_wrong,$color_not_attempted];\n \n $border_color = [$color_correct,$color_wrong,$color_not_attempted];\n\n \n $marks_data['type'] = 'pie'; \n //horizontalBar, bar, polarArea, line, doughnut, pie\n $marks_data['title'] = $record->subject_name; \n\n $marks_data['data'] = (object) array(\n 'labels' => $marks_labels,\n 'dataset' => $marks_dataset,\n 'dataset_label' => $dataset_label,\n 'bgcolor' => $bgcolor,\n 'border_color' => $border_color\n );\n \n $data['chart_data'][] = (object)$marks_data;\n\n\n $time_data['type'] = 'bar'; \n //horizontalBar, bar, polarArea, line, doughnut, pie\n $time_data['title'] = $record->subject_name; \n\n $time_data['data'] = (object) array(\n 'labels' => $time_labels,\n 'dataset' => $time_dataset,\n 'dataset_label' => $dataset_label,\n 'bgcolor' => $bgcolor,\n 'border_color' => $border_color\n );\n \n $data['time_data'][] = (object)$time_data;\n\n $i++;\n } \n \n $data['chart_data'][] = (object)$marks_data;\n\n $overall_correct_answers = 0;\n $overall_wrong_answers = 0;\n $overall_not_answered = 0;\n\n $overall_time_spent_correct_answers = 0;\n $overall_time_spent_wrong_answers = 0;\n \n foreach($records as $r)\n {\n $r = (object)$r;\n $overall_correct_answers += $r->correct_answers;\n $overall_wrong_answers += $r->wrong_answers;\n $overall_not_answered += $r->not_answered;\n \n $overall_time_spent_correct_answers += $r->time_spent_on_correct_answers;\n $overall_time_spent_wrong_answers += $r->time_spent_on_wrong_answers;\n }\n\n $overall_marks_dataset = [$overall_correct_answers, $overall_wrong_answers, $overall_not_answered];\n $overall_time_dataset = [$overall_time_spent_correct_answers, $overall_time_spent_wrong_answers];\n\n $overall_marks_data['type'] = 'doughnut'; \n //horizontalBar, bar, polarArea, line, doughnut, pie\n $overall_marks_data['title'] = getPhrase('overall_marks_analysis');\n $overall_marks_data['data'] = (object) array(\n 'labels' => $marks_labels,\n 'dataset' => $overall_marks_dataset,\n 'dataset_label' => getPhrase('overall_marks_analysis'),\n 'bgcolor' => $bgcolor,\n 'border_color' => $border_color\n );\n\n $data['right_bar_path'] = 'student.exams.subject-analysis.right-bar-performance-chart';\n $data['right_bar_data'] = array('right_bar_data' => (object)$overall_marks_data);\n \n $data['overall_data'][] = (object)$overall_marks_data;\n \n $data['subjects_display'] = $records;\n $data['active_class'] = 'analysis';\n $data['title'] = getPhrase('overall_subject_wise_analysis');\n $data['user'] = $user;\n $userid = $user->id;\n $data['layout'] = getLayout();\n\n return view('student.exams.subject-analysis.subject-analysis', $data); \n }", "function rank_all($domain, $start_date) {\n $parameters = array(\n 'method' => __FUNCTION__,\n 'domain' => $domain,\n 'start_date' => $start_date\n );\n return $this->get_data($parameters);\n }", "public function index()\n {\n// $chart = Charts::create('line', 'highcharts')\n// ->title('Comparação Mensal (Últimos 4 anos)')\n// ->labels(['jan','fev','mar','abr','mai','jun','jul','ago','set','out','nov','dez'])\n// ->values([5,10,20,13,16,25,12,17,7,9,6,10])\n// ->dimensions(1000,500)\n// ->responsive(true);\n\n// $chart = Charts::create('line', 'material')\n// ->title('Comparação Mensal (Últimos 4 anos)')\n// ->labels(['jan','fev','mar','abr','mai','jun','jul','ago','set','out','nov','dez'])\n// ->values([5,10,20,13,16,25,12,17,7,9,6,10])\n// ->elementLabel(\"Total\")\n// ->dimensions(1000,500)\n// ->responsive(true);\n\n// $chart = Charts::create('line', 'google')\n// ->title('Comparação Mensal (Últimos 4 anos)')\n// ->labels(['jan','fev','mar','abr','mai','jun','jul','ago','set','out','nov','dez'])\n// ->values([5,10,20,13,16,25,12,17,7,9,6,10])\n// ->elementLabel(\"Total\")\n// ->dimensions(1000,500)\n// ->responsive(true);\n\n// $chart = Charts::create('line', 'minimalist')\n// ->title('Comparação Mensal (Últimos 4 anos)')\n// ->labels(['jan','fev','mar','abr','mai','jun','jul','ago','set','out','nov','dez'])\n// ->values([5,10,20,13,16,25,12,17,7,9,6,10])\n// ->elementLabel(\"Total\")\n// ->dimensions(1000,500)\n// ->responsive(true);\n\n// $chart = Charts::create('line', 'fusioncharts')\n// ->title('Comparação Mensal (Últimos 4 anos)')\n// ->labels(['jan','fev','mar','abr','mai','jun','jul','ago','set','out','nov','dez'])\n// ->values([5,10,20,13,16,25,12,17,7,9,6,10])\n// ->elementLabel(\"Total\")\n// ->dimensions(1000,500)\n// ->responsive(true);\n\n// $chart = Charts::create('line', 'google')\n// ->title('Comparação Mensal (Últimos 4 anos)')\n// ->labels(['jan','fev','mar','abr','mai','jun','jul','ago','set','out','nov','dez'])\n// ->values([5,10,20,13,16,25,12,17,7,9,6,10])\n// ->elementLabel(\"Total\")\n// ->dimensions(1000,500)\n// ->colors([\"#ff0000\"])\n// ->responsive(true);\n\n// $chart = Charts::create('line', 'morris')\n// ->title('Comparação Mensal (Últimos 4 anos)')\n// ->labels(['jan','fev','mar','abr','mai','jun','jul','ago','set','out','nov','dez'])\n// ->values([5,10,20,13,16,25,12,17,7,9,6,10])\n// ->elementLabel(\"Total\")\n// ->dimensions(1000,500)\n// ->colors([\"#ff0000\"])\n// ->responsive(true);\n\n// $chart = Charts::create('bar', 'morris')\n// ->title('Comparação Mensal (Últimos 4 anos)')\n// ->labels(['jan','fev','mar','abr','mai','jun','jul','ago','set','out','nov','dez'])\n// ->values([5,10,20,13,16,25,12,17,7,9,6,10])\n// ->elementLabel(\"Total\")\n// ->dimensions(1000,500)\n// ->colors(['#ff0000','#F44336','FFC107'])\n// ->responsive(true);\n\n $chart = Charts::multi('bar', 'google')\n ->colors(['#ff0000', '#00ff00', '#0000ff'])\n ->labels(['One', 'Two', 'Three'])\n ->dataset('Test 1', [1,2,3])\n ->dataset('Test 2', [0,6,0])\n ->dataset('Test 3', [3,4,1]);\n\n return view('home',compact('chart'));\n }", "function CountDates($arrayDate)\n\t\t{\n\t\t\t\n\t\t\t\t\tforeach ($arrayDate as $data)\n\t\t\t\t\t{\n\t\t\t\t\t\tarray_push($this->graphArray,array('comment'=>0,'favorite'=>0,'upload'=>0));\n\t\t\t\t\t}\n\t\t\n\t\t\n\n\t\t\t\t\tforeach ($this->commentDates as $data)\n\t\t\t\t\t{\n\t\t\t\t\t\t$i=0;\n\t\t\t\t\t\tforeach ($arrayDate as $date)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($this->IsDateBetween($date['startdate'], $data,$date['enddate']))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$this->graphArray[$i]['comment']++;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$i++;\n\t\t\t\t\t\t}\n\t\t\t\n\t\t\t\t\t}\n\n\n\n\t\t\t\t\tforeach ($this->favoriteDates as $data)\n\t\t\t\t\t{\n\t\t\t\n\t\t\t\t\t\t$i=0;\n\t\t\t\t\t\tforeach ($arrayDate as $date)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($this->IsDateBetween($date['startdate'], $data,$date['enddate']))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$this->graphArray[$i]['favorite']++;\n\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$i++;\n\t\t\t\t\t\t}\n\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\tif($this->userName==$this->channelName)\n\t\t\t\t\tif(isset($uploadDates))\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach ($uploadDates as $data)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$i=0;\n\t\t\t\t\t\t\tforeach ($arrayDate as $date)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif($this->IsDateBetween($date['startdate'], $data,$date['enddate']))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$this->graphArray[$i]['upload']++;\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$i++;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\t\t\n\t\t\t\t\t}\n\t\t\t\n\t\t\t}", "public function charts()\n {\n\n $male_chart_1 = Employee::where('gender', '=', 'M')->count();\n $female_chart_1 = Employee::where('gender', '=', 'F')->count();\n\n $emp_hire_date_1 = Employee::where('hire_date', 'like', '1987%')->count();\n $emp_hire_date_2 = Employee::where('hire_date', 'like', '1988%')->count();\n $emp_hire_date_3 = Employee::where('hire_date', 'like', '1989%')->count();\n $emp_hire_date_4 = Employee::where('hire_date', 'like', '1990%')->count();\n $emp_hire_date_5 = Employee::where('hire_date', 'like', '1991%')->count();\n $emp_hire_date_6 = Employee::where('hire_date', 'like', '1992%')->count();\n $emp_hire_date_7 = Employee::where('hire_date', 'like', '1993%')->count();\n $emp_hire_date_8 = Employee::where('hire_date', 'like', '1994%')->count();\n $emp_hire_date_9 = Employee::where('hire_date', 'like', '1995%')->count();\n $emp_hire_date_10 = Employee::where('hire_date', 'like', '1996%')->count();\n $emp_hire_date_11 = Employee::where('hire_date', 'like', '1997%')->count();\n $emp_hire_date_12 = Employee::where('hire_date', 'like', '1998%')->count();\n $emp_hire_date_13 = Employee::where('hire_date', 'like', '1999%')->count();\n $emp_hire_date_14 = Employee::where('hire_date', 'like', '1986%')->count();\n $emp_hire_date_15 = Employee::where('hire_date', 'like', '1985%')->count();\n\n $emp_dep_number_1 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('departments.dept_name', '=', 'Customer Service')->count();\n $emp_dep_number_2 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('departments.dept_name', '=', 'Development')->count();\n $emp_dep_number_3 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('departments.dept_name', '=', 'Finance')->count();\n $emp_dep_number_4 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('departments.dept_name', '=', 'Human Resources')->count();\n $emp_dep_number_5 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('departments.dept_name', '=', 'Marketing')->count();\n $emp_dep_number_6 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('departments.dept_name', '=', 'Production')->count();\n $emp_dep_number_7 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('departments.dept_name', '=', 'Quality Management')->count();\n $emp_dep_number_8 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('departments.dept_name', '=', 'Research')->count();\n $emp_dep_number_9 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('departments.dept_name', '=', 'Sales')->count();\n\n $emp_hire_date_female_1 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'F')\n ->where('employees.hire_date', 'like', '1985%')->count();\n $emp_hire_date_female_2 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'F')\n ->where('employees.hire_date', 'like', '1986%')->count();\n $emp_hire_date_female_3 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'F')\n ->where('employees.hire_date', 'like', '1987%')->count();\n $emp_hire_date_female_4 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'F')\n ->where('employees.hire_date', 'like', '1988%')->count();\n $emp_hire_date_female_5 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'F')\n ->where('employees.hire_date', 'like', '1989%')->count();\n $emp_hire_date_female_6 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'F')\n ->where('employees.hire_date', 'like', '1990%')->count();\n $emp_hire_date_female_7 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'F')\n ->where('employees.hire_date', 'like', '1991%')->count();\n $emp_hire_date_female_8 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'F')\n ->where('employees.hire_date', 'like', '1992%')->count();\n $emp_hire_date_female_9 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'F')\n ->where('employees.hire_date', 'like', '1993%')->count();\n $emp_hire_date_female_10 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'F')\n ->where('employees.hire_date', 'like', '1994%')->count();\n $emp_hire_date_female_11 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'F')\n ->where('employees.hire_date', 'like', '1995%')->count();\n $emp_hire_date_female_12 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'F')\n ->where('employees.hire_date', 'like', '1996%')->count();\n $emp_hire_date_female_13 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'F')\n ->where('employees.hire_date', 'like', '1997%')->count();\n $emp_hire_date_female_14 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'F')\n ->where('employees.hire_date', 'like', '1998%')->count();\n $emp_hire_date_female_15 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'F')\n ->where('employees.hire_date', 'like', '1999%')->count();\n\n $emp_hire_date_male_1 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'M')\n ->where('employees.hire_date', 'like', '1985%')->count();\n $emp_hire_date_male_2 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'M')\n ->where('employees.hire_date', 'like', '1986%')->count();\n $emp_hire_date_male_3 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'M')\n ->where('employees.hire_date', 'like', '1987%')->count();\n $emp_hire_date_male_4 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'M')\n ->where('employees.hire_date', 'like', '1988%')->count();\n $emp_hire_date_male_5 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'M')\n ->where('employees.hire_date', 'like', '1989%')->count();\n $emp_hire_date_male_6 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'M')\n ->where('employees.hire_date', 'like', '1990%')->count();\n $emp_hire_date_male_7 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'M')\n ->where('employees.hire_date', 'like', '1991%')->count();\n $emp_hire_date_male_8 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'M')\n ->where('employees.hire_date', 'like', '1992%')->count();\n $emp_hire_date_male_9 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'M')\n ->where('employees.hire_date', 'like', '1993%')->count();\n $emp_hire_date_male_10 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'M')\n ->where('employees.hire_date', 'like', '1994%')->count();\n $emp_hire_date_male_11 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'M')\n ->where('employees.hire_date', 'like', '1995%')->count();\n $emp_hire_date_male_12 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'M')\n ->where('employees.hire_date', 'like', '1996%')->count();\n $emp_hire_date_male_13 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'M')\n ->where('employees.hire_date', 'like', '1997%')->count();\n $emp_hire_date_male_14 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'M')\n ->where('employees.hire_date', 'like', '1998%')->count();\n $emp_hire_date_male_15 = Employee::\n join('titles', 'titles.emp_no', '=', 'employees.emp_no')\n ->join('salaries', 'salaries.emp_no', '=', 'employees.emp_no')\n ->join('dept_emp', 'dept_emp.emp_no', '=', 'employees.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('employees.gender', '=', 'M')\n ->where('employees.hire_date', 'like', '1999%')->count();\n\n $dept_avg_salary_1 = Salary::\n join('dept_emp', 'dept_emp.emp_no', '=', 'salaries.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('departments.dept_name', '=', 'Customer Service')->avg('salary');\n $dept_avg_salary_2 = Salary::\n join('dept_emp', 'dept_emp.emp_no', '=', 'salaries.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('departments.dept_name', '=', 'Development')->avg('salary');\n $dept_avg_salary_3 = Salary::\n join('dept_emp', 'dept_emp.emp_no', '=', 'salaries.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('departments.dept_name', '=', 'Finance')->avg('salary');\n $dept_avg_salary_4 = Salary::\n join('dept_emp', 'dept_emp.emp_no', '=', 'salaries.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('departments.dept_name', '=', 'Human Resources')->avg('salary');\n $dept_avg_salary_5 = Salary::\n join('dept_emp', 'dept_emp.emp_no', '=', 'salaries.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('departments.dept_name', '=', 'Marketing')->avg('salary');\n $dept_avg_salary_6 = Salary::\n join('dept_emp', 'dept_emp.emp_no', '=', 'salaries.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('departments.dept_name', '=', 'Production')->avg('salary');\n $dept_avg_salary_7 = Salary::\n join('dept_emp', 'dept_emp.emp_no', '=', 'salaries.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('departments.dept_name', '=', 'Quality Management')->avg('salary');\n $dept_avg_salary_8 = Salary::\n join('dept_emp', 'dept_emp.emp_no', '=', 'salaries.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('departments.dept_name', '=', 'Research')->avg('salary');\n $dept_avg_salary_9 = Salary::\n join('dept_emp', 'dept_emp.emp_no', '=', 'salaries.emp_no')\n ->join('departments', 'departments.dept_no', '=', 'dept_emp.dept_no')\n ->where('departments.dept_name', '=', 'Sales')->avg('salary');\n\n\n\n\n $array = array (\n 'male' => $male_chart_1,\n 'female' => $female_chart_1,\n 'emp_hire_date_1' => $emp_hire_date_1,\n 'emp_hire_date_2' => $emp_hire_date_2,\n 'emp_hire_date_3' => $emp_hire_date_3,\n 'emp_hire_date_4' => $emp_hire_date_4,\n 'emp_hire_date_5' => $emp_hire_date_5,\n 'emp_hire_date_6' => $emp_hire_date_6,\n 'emp_hire_date_7' => $emp_hire_date_7,\n 'emp_hire_date_8' => $emp_hire_date_8,\n 'emp_hire_date_9' => $emp_hire_date_9,\n 'emp_hire_date_10' => $emp_hire_date_10,\n 'emp_hire_date_11' => $emp_hire_date_11,\n 'emp_hire_date_12' => $emp_hire_date_12,\n 'emp_hire_date_13' => $emp_hire_date_13,\n 'emp_hire_date_15' => $emp_hire_date_14,\n 'emp_hire_date_14' => $emp_hire_date_15,\n 'emp_dep_number_1' => $emp_dep_number_1,\n 'emp_dep_number_2' => $emp_dep_number_2,\n 'emp_dep_number_3' => $emp_dep_number_3,\n 'emp_dep_number_4' => $emp_dep_number_4,\n 'emp_dep_number_5' => $emp_dep_number_5,\n 'emp_dep_number_6' => $emp_dep_number_6,\n 'emp_dep_number_7' => $emp_dep_number_7,\n 'emp_dep_number_8' => $emp_dep_number_8,\n 'emp_dep_number_9' => $emp_dep_number_9,\n 'emp_hire_date_female_1' =>$emp_hire_date_female_1,\n 'emp_hire_date_female_2' =>$emp_hire_date_female_2,\n 'emp_hire_date_female_3' =>$emp_hire_date_female_3,\n 'emp_hire_date_female_4' =>$emp_hire_date_female_4,\n 'emp_hire_date_female_5' =>$emp_hire_date_female_5,\n 'emp_hire_date_female_6' =>$emp_hire_date_female_6,\n 'emp_hire_date_female_7' =>$emp_hire_date_female_7,\n 'emp_hire_date_female_8' =>$emp_hire_date_female_8,\n 'emp_hire_date_female_9' =>$emp_hire_date_female_9,\n 'emp_hire_date_female_10' =>$emp_hire_date_female_10,\n 'emp_hire_date_female_11' =>$emp_hire_date_female_11,\n 'emp_hire_date_female_12' =>$emp_hire_date_female_12,\n 'emp_hire_date_female_13' =>$emp_hire_date_female_13,\n 'emp_hire_date_female_14' =>$emp_hire_date_female_14,\n 'emp_hire_date_female_15' =>$emp_hire_date_female_15,\n 'emp_hire_date_male_1' =>$emp_hire_date_male_1,\n 'emp_hire_date_male_2' =>$emp_hire_date_male_2,\n 'emp_hire_date_male_3' =>$emp_hire_date_male_3,\n 'emp_hire_date_male_4' =>$emp_hire_date_male_4,\n 'emp_hire_date_male_5' =>$emp_hire_date_male_5,\n 'emp_hire_date_male_6' =>$emp_hire_date_male_6,\n 'emp_hire_date_male_7' =>$emp_hire_date_male_7,\n 'emp_hire_date_male_8' =>$emp_hire_date_male_8,\n 'emp_hire_date_male_9' =>$emp_hire_date_male_9,\n 'emp_hire_date_male_10' =>$emp_hire_date_male_10,\n 'emp_hire_date_male_11' =>$emp_hire_date_male_11,\n 'emp_hire_date_male_12' =>$emp_hire_date_male_12,\n 'emp_hire_date_male_13' =>$emp_hire_date_male_13,\n 'emp_hire_date_male_14' =>$emp_hire_date_male_14,\n 'emp_hire_date_male_15' =>$emp_hire_date_male_15,\n 'dept_avg_salary_1' => $dept_avg_salary_1,\n 'dept_avg_salary_2' => $dept_avg_salary_2,\n 'dept_avg_salary_3' => $dept_avg_salary_3,\n 'dept_avg_salary_4' => $dept_avg_salary_4,\n 'dept_avg_salary_5' => $dept_avg_salary_5,\n 'dept_avg_salary_6' => $dept_avg_salary_6,\n 'dept_avg_salary_7' => $dept_avg_salary_7,\n 'dept_avg_salary_8' => $dept_avg_salary_8,\n 'dept_avg_salary_9' => $dept_avg_salary_9,\n );\n //dd($male);\n //dd($employeesChart);\n return view('chart_list', ['data' => $array]);\n }", "public function getFeedbackStats($query)\n {\n $prevPeriod = $this->getPrevDatePeriod($query['startDate'], $query['endDate']);\n\n $granularity = $this->getGranularity($query['startDate'], $query['endDate']);\n if($granularity == 'month') {\n $dateQuery = 'to_char(orderlines.created_at, \\'YYYY-MM\\') as date';\n $dateGroupBy = array('date');\n $dateOrder = 'date asc';\n } else if($granularity == 'day') {\n $dateQuery = 'to_char(orderlines.created_at, \\'YYYY-MM-DD\\') as date';\n $dateGroupBy = array('date');\n $dateOrder = 'date asc';\n }\n\n DB::enableQueryLog();\n // execute\n $currentRating = DB::connection('marketplace')\n ->table('ratings')\n ->join('feedbacks', 'ratings.feedback_id', '=', 'feedbacks.id')\n ->join('orderlines', 'feedbacks.orderline_id', '=', 'orderlines.id')\n ->select(DB::raw('round(avg(value), 2) as rating'))\n ->where('orderlines.created_at', '>=', $query['startDate'])\n ->where('orderlines.created_at', '<=', $query['endDate'])\n ->get();\n\n $prevRating = DB::connection('marketplace')\n ->table('ratings')\n ->join('feedbacks', 'ratings.feedback_id', '=', 'feedbacks.id')\n ->join('orderlines', 'feedbacks.orderline_id', '=', 'orderlines.id')\n ->select(DB::raw('round(avg(value), 2) as rating'))\n ->where('orderlines.created_at', '>=', $prevPeriod['startDate'])\n ->where('orderlines.created_at', '<=', $prevPeriod['endDate'])\n ->get();\n\n $ratingTrend = DB::connection('marketplace')\n ->table('ratings')\n ->join('feedbacks', 'ratings.feedback_id', '=', 'feedbacks.id')\n ->join('orderlines', 'feedbacks.orderline_id', '=', 'orderlines.id')\n ->select(DB::raw('round(avg(value), 2) as rating,'.$dateQuery))\n ->where('orderlines.created_at', '>=', $query['startDate'])\n ->where('orderlines.created_at', '<=', $query['endDate'])\n ->groupBy($dateGroupBy)\n ->orderByRaw($dateOrder)\n ->get();\n\n $data = array();\n $data['rating']['current'] = $currentRating[0]->rating;\n $data['rating']['prev'] = $prevRating[0]->rating;\n $data['rating_trend'] = array();\n $data['rating_trend']['granularity'] = $granularity;\n $data['rating_trend']['trend'] = $ratingTrend;\n\n $status = $this->setStatus();\n\n return response()->json([\n 'status' => $status,\n 'data' => $data\n ]); \n }", "public function getReportsbyYear()\n {\n $charts = app(ReportChart::class);\n $response = $this->byYear();\n \n $charts->labels($response['ano']);\n \n $charts->dataset('Relatório Anual de Vendas','bar',$response['total'])\n ->backgroundColor($response['colors'])\n ->color('red');\n\n $charts->options([\n 'scales' => [\n 'yAxes' => [\n [\n 'ticks' => [\n 'callback' => $charts->rawObject('myCallback')\n ]\n ]\n ]\n ]\n ]); \n \n return $charts;\n }", "public function FireStatistical($date){\n $response = $this->dynamodb->scan(array(\n 'TableName' => $this->tableName\n ));\n\n $count = $response->get('Count');\n $statistical_date = array();\n for ($i = 0; $i < $count; $i++) {\n $timestart = $response->get('Items')[$i]['timestart']['S'];\n if(strpos($timestart, $date) !== false){\n array_push($statistical_date, $timestart);\n }\n }\n return count($statistical_date);\n }" ]
[ "0.607803", "0.589586", "0.5613518", "0.55952144", "0.5592795", "0.5576222", "0.55162203", "0.5502884", "0.55028355", "0.5446877", "0.54362667", "0.5349688", "0.53447115", "0.53148746", "0.5312922", "0.530143", "0.52938414", "0.5293036", "0.52773565", "0.52706486", "0.5269983", "0.52098554", "0.51840836", "0.51827145", "0.5168307", "0.512404", "0.50905406", "0.5087452", "0.5086612", "0.5077143", "0.5075973", "0.50709563", "0.50707656", "0.50618637", "0.503658", "0.50099087", "0.5006658", "0.49913472", "0.49899837", "0.49899837", "0.4986982", "0.49838042", "0.497812", "0.4966232", "0.49589527", "0.49521846", "0.49485078", "0.4947144", "0.49445543", "0.49395707", "0.4938665", "0.49272496", "0.4911049", "0.49098343", "0.49021173", "0.48997426", "0.48855054", "0.48765004", "0.48761886", "0.48712415", "0.4866015", "0.48582324", "0.4852921", "0.4852403", "0.48478064", "0.48263758", "0.4824771", "0.4821889", "0.48162037", "0.4808669", "0.48043436", "0.48029694", "0.47984302", "0.47976333", "0.47748744", "0.47697952", "0.47675547", "0.47639278", "0.4760784", "0.47582418", "0.4754021", "0.47469652", "0.4745793", "0.47412348", "0.47378442", "0.47317627", "0.4719851", "0.47115138", "0.47105744", "0.4708975", "0.47076035", "0.47064057", "0.47036126", "0.4692935", "0.4681195", "0.46805847", "0.466833", "0.46678376", "0.46646458", "0.46617097" ]
0.5269466
21
Position at 1.5 cm from bottom
function Footer() { $this->SetY(-20); // Arial italic 8 $this->SetFont('Arial','I',8); // Text color in gray $this->SetTextColor(128); // Page number $this->Cell(0,10,'Post address: PO Box K595, Haymarket,NSW 1240, Australia',0,0,'C'); $this->Ln(5); $this->Cell(0,10,'Office address: Suite 309-311 Sussex Centre. 401 Sussex St. Sydney, 2000',0,0,'C'); $this->Ln(5); $this->Cell(0,10,'Tel: 00612 9281 6299 www.geic.com.au',0,0,'C'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function atBottom() {\n }", "public function bottom();", "function client_portal_move_yoast_to_bottom() {\n\t\treturn 'low';\n\t}", "function boxBottom() {\n\t\treturn html_ac(html_ap() -1).'<!-- class=\"box-surround\" -->'.\"\\n\";\n\t}", "function _fillBottom()\n {\n return $this->_bottom - $this->_padding['bottom'];\n }", "function yoast_to_bottom() {\n return 'low';\n}", "function Footer(){\n\t\t$this->Cell(190,0,'','T',1,'',true);\n\t\t\n\t\t//Go to 1.5 cm from bottom\n\t\t$this->SetY(-15);\n\t\t\t\t\n\t\t$this->SetFont('Arial','',8);\n\t\t\n\t\t//width = 0 means the cell is extended up to the right margin\n\t\t$this->Cell(0,10,'Page '.$this->PageNo().\" / {pages}\",0,0,'C');\n\t}", "function Footer()\n {\n //Position at 1.5 cm from bottom\n $this->SetY(-15);\n //Arial italic 8\n $this->SetFont('Arial','I',8);\n //Page number and page amount\n $this->Cell(0,10, text(\"bill_page\").\" \".$this->PageNo().'/{nb}',0,0,'C');\n }", "public function getBottomPixels()\n {\n return $this->bottom_pixels;\n }", "public static function show_box_bottom() {\n require Config::get('prefix') . '/templates/show_box_bottom.inc.php';\n }", "function yoasttobottom() {\n\treturn 'low';\n}", "function yoasttobottom() {\n\treturn 'low';\n}", "function Footer(){\r\n $this->SetY(-15); // Position at 1.5 cm from bottom\r\n $this->SetFont('Arial','I',8); // Arial italic 8\r\n $this->Cell(0,10,'Pagina '.$this->PageNo().'/{nb}',0,0,'C'); // Page number\r\n }", "function yoasttobottom()\n{\n return 'low';\n}", "function Footer()\n{\n // Position at 1.5 cm from bottom\n $this->SetY(-15);\n // Arial italic 8\n $this->SetFont('Arial','I',8);\n // Page number\n $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');\n}", "function yoasttobottom() {\n return 'low';\n}", "public function getPaddingBottom() {}", "function magazinevibe_edge_get_footer_bottom() {\n\n\t\t$parameters = array();\n\n\t\t$parameters['footer_in_grid'] = (magazinevibe_edge_options()->getOptionValue('footer_in_grid') == 'yes') ? true : false;\n $parameters['footer_bottom_classes'] = (magazinevibe_edge_options()->getOptionValue('footer_in_grid') == 'yes') ? '' : 'edgtf-footer-top-full';\n\t\t$parameters['footer_bottom_columns'] = magazinevibe_edge_options()->getOptionValue('footer_bottom_columns');\n\n\t\tmagazinevibe_edge_get_module_template_part('templates/parts/footer-bottom', 'footer', '', $parameters);\n\t}", "function Footer(){\n\t\t// Positionnement à 1,5 cm du bas\n\t\t$this->SetY(-15);\n\t\t// Police Arial italique 8\n\t\t$this->SetFont('Arial','I',8);\n\t\t// Numéro de page\n\t\t$this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');\n\t}", "public function marginBottom() {\n\t}", "public function Footer_ZZZ() {\n $this->SetY(-15);\n // Set the footer font \n $this->SetFont('helvetica', 'I', 8);\n // Page number\n $this->Cell(0, 10, 'Page '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M');\n }", "function getPagefoot () {\n\t\treturn $this->_floor;\n\t}", "private function createCreatureBottom()\n {\n\n }", "public function getBottomUserSpace() {}", "public function getTileBottomRight(): XY\n {\n return $this->tileBottomRight;\n }", "function udesign_single_post_entry_bottom() {\r\n do_action('udesign_single_post_entry_bottom');\r\n}", "function rovoko_page_sidebar_position(){\n return apply_filters('rovoko_page_sidebar_position','bottom');\n}", "function udesign_page_content_bottom() {\r\n do_action('udesign_page_content_bottom');\r\n}", "function getHeight() {\n\t\t}", "function Footer() {\r\n $this->SetY(-15);\r\n // Set font\r\n $this->SetFont('Helvetica', 'I', 12);\r\n // Page number\r\n $this->Cell(0, 10, 'PvMax Summary | Schletter Inc. | (888) 608 - 0234', 0, false, 'C', 0, '', 0, false, 'T', 'M');\r\n}", "public function getHeight() { return 0; }", "function Footer()\n {\n date_default_timezone_set('UTC+1');\n //Date\n $tDate = date('F j, Y, g:i:s a');\n // Position at 1.5 cm from bottom\n $this->SetY(-15);\n // Arial italic 8\n $this->SetFont('Arial', 'I', 12);\n // Text color in gray\n $this->SetTextColor(128);\n // Page number\n $this->Cell(0, 10,utf8_decode('Page ' . $this->PageNo().' \n CHUYC \n '.$tDate.'\n +237 693 553 454\n '.$this->Image(SITELOGO, 189, 280, 10, 10,'', URLROOT)), 0, 0, 'L');\n }", "function udesign_main_content_bottom() {\r\n do_action('udesign_main_content_bottom');\r\n}", "function Footer()\n\t{\n\t\t$this->SetY(-15);\n\t\t//buat garis horizontal\n\t\t$this->Line(30,$this->GetY(),185,$this->GetY());\n\t\t//Arial italic 9\n\t\t$this->SetFont('Arial','I',9);\n\t\t//nomor halaman\n\t\t$this->Cell(0,10,'Halaman '.$this->PageNo().' dari {nb}',0,0,'R');\n\t}", "function rovoko_post_sidebar_position(){\n return apply_filters('rovoko_post_sidebar_position','bottom');\n}", "function AbsolutePosition() {}", "function udesign_body_bottom() {\r\n do_action('udesign_body_bottom');\r\n}", "function Footer()\n\t\t{\n\t\t\t$this->SetY(-15);\n\t\t\t// Select Arial italic 8\n\t\t}", "protected function getPageHeight()\n {\n return $this->inchToPoint(3.75);\n }", "function adaline_bottom_bar() {\n\n\techo '<div class=\"bottom-bar\"><div class=\"wrap\">';\n\n\tgenesis_widget_area( 'bottom-bar-left', array(\n\t\t'before' => '<div class=\"bottom-bar-left\">',\n\t\t'after' => '</div>',\n\t) );\n\n\techo '</div></div>';\n \n}", "function bethel_do_footer_bottom() {\n\tgenesis_widget_area ('footer-bottom', array ('before' => '<div id=\"bethel-header-right-bottom\">', 'after' => '</div>'));\n}", "function launchpad_force_bottom_sidebar() {\n\treturn 'below';\n}", "private function writeMarginBottom(): void\n {\n $record = 0x0029; // Record identifier\n $length = 0x0008; // Bytes to follow\n\n $margin = $this->phpSheet->getPageMargins()->getBottom(); // Margin in inches\n\n $header = pack('vv', $record, $length);\n $data = pack('d', $margin);\n if (self::getByteOrder()) { // if it's Big Endian\n $data = strrev($data);\n }\n\n $this->append($header . $data);\n }", "function Footer()\t{\n\t $this->SetY(-15);\n\t // Arial italic 8\n\t $this->SetFont('Arial','I',8);\n\t // Page number\n\t $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');\n\t}", "function udesign_entry_bottom() {\r\n do_action('udesign_entry_bottom');\r\n}", "function Footer(){\n $this->SetY(-15);\n // Arial italic 8\n $this->SetFont('Arial','I',8);\n // Page number\n $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');\n }", "private function renderBottom() {\n\t\t$bottom = '';\n\t\tif ($this->type == 'RSS2') {\n\t\t\t$bottom .= $this->closeTag('channel');\n\t\t\t$bottom .= $this->closeTag('rss');\n\t\t} elseif ($this->type == 'RSS1') {\n\t\t\t$bottom .= $this->closeTag('rdf:RDF');\n\t\t} else if ($this->type == 'Atom') {\n\t\t\t$bottom .= $this->closeTag('feed');\n\t\t}\n\t\treturn $bottom;\n\t}", "function setPosition($height) {\t \r\n\t \t$this->headery = $height;\r\n\t}", "function udesign_blog_entry_bottom() {\r\n do_action('udesign_blog_entry_bottom');\r\n}", "function Footer()\n {\n $this->SetY(-15);\n // Arial italic 8\n $this->SetFont('Arial','I',8);\n // Page number\n $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');\n }", "function Footer() {\n $this->SetY(-15);\n // Select Arial italic 8\n $this->SetFont('Arial', 'B', 8);\n // Print centered page number\n $this->Cell(0, 5, utf8_decode(\"[Página \") . $this->PageNo() . \"]\", 0, 0, 'L');\n }", "function Footer() {\n $this->SetY(-15);\n // Select Arial italic 8\n $this->SetFont('Arial', 'B', 8);\n // Print centered page number\n $this->Cell(0, 5, utf8_decode(\"[Página \") . $this->PageNo() . \"]\", 0, 0, 'L');\n }", "function Footer() {\n $this->SetY(-15);\n //Pilih font Arial italic 8\n $this->SetFont('Helvetica', 'I', 8);\n //Tampilkan nomor halaman rata tengah\n $this->Cell(0, 10, 'Page ' . $this->getAliasNumPage() . '/' . $this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M');\n }", "function Footer() {\n $this->SetY(-15);\n // Select Arial italic 8\n $this->SetFont('Arial','I',8);\n // Print centered page number\n // $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C');\n $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');\n }", "function Footer()\n\t{\n\t\t$this->SetY(-15);\n\t\t//buat garis horizontal\n\t\t$this->Line(10,$this->GetY(),210,$this->GetY());\n\t\t//Arial italic 9\n\t\t$this->SetFont('Arial','I',9);\n $this->Cell(0,10,'copyright gubugkoding.com Semarang ' . date('Y'),0,0,'L');\n\t\t//nomor halaman\n\t\t$this->Cell(0,10,'Halaman '.$this->PageNo().' dari {nb}',0,0,'R');\n\t}", "public function Footer() {\n\t\t$this->SetY(-15);\n\t\t// Set font\n\t\t$this->SetFont('helvetica', 'I', 8);\n\t\t// Page number\n\t\t$this->Cell(0, 10, 'Pagina '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M');\n\t}", "function Footer()\n\t{\n\t\t$this->SetY(-13);\n\t\t// Arial italic 8\n\t\t$this->SetFont('Arial','I',8);\n\t\t// Page number\n\t\t$this->Cell(0,10,'Designed by winnie(+254701008108)',0,0,'C');\n\t\t$this->SetY(-18);\n\t\t$this->Cell(0,10,'www.veranevents.com',0,0,'C');\n\t}", "function Footer() {\r\n\t\t\t$this->SetY( -15 );\r\n\t\t\t\r\n\t\t\t//set font to Arial, Bold, size 10\r\n\t\t\t$this->SetFont( 'Arial', 'B', 10 );\r\n\t\t\t\r\n\t\t\t//set font color to blue\r\n\t\t\t$this->SetTextColor( 52, 98, 185 );\r\n\t\t\t\r\n\t\t\t$this->Cell( 0, 10, 'www.iFadey.com', 0, 0, 'L' );\r\n\t\t\t\r\n\t\t\t//set font color to gray\r\n\t\t\t$this->SetTextColor( 150, 150, 150 );\r\n\t\t\t\r\n\t\t\t//write Page No\r\n\t\t\t$this->Cell( 0, 10, 'Page No: ' . $this->PageNo(), 0, 0, 'R' );\r\n\t\t}", "public function getHeight() {}", "public function getHeight() {}", "public function getHeight() {}", "public function getHeight() {}", "public function getHeight() {}", "public function getHeight() {}", "public function getHeight() {}", "public function moveBottom($id)\n {\n return $this->sendrequest('movebottom', $id);\n }", "public function Footer() {\n $this->SetY(-15);\n // Set font\n $this->SetFont('helvetica', 'I', 8);\n // Page number\n $this->Cell(0, 10, 'Page '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M');\n }", "function Footer()\n\t{\n\t\t//$this->Image('../imagenes/pie.jpg',15,250,170);\n\t\t$this->AliasNbPages();\n\t\t$this->SetY(-23);\n\t\t\n\t\t$this->SetFont('Arial','B',9);\n\t\t$this->MultiCell(180,5,utf8_decode(''),'0','C');\n\t\t\n\t $this->SetFont('Arial','I',8);\n\t $this->Cell(0,7,'Pag. '.$this->PageNo().' / {nb}',0,1,'C');\n\t}", "function _fillTop()\n {\n return $this->_top + $this->_padding['top'];\n }", "function Footer()\n\t\t\t\t{\n\t\t\t\t $this->SetY(-15);\n\t\t\t\t // Select Arial italic 8\n\t\t\t\t $this->SetFont('Arial','I',8);\n\t\t\t\t // Print centered page number\n\t\t\t\t $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C');\n\t\t\t\t}", "public function Footer()\n {\n // Go to 10 cm from bottom\n $this->SetY(-10);\n // Set font to Open Sans\n $this->SetFont('opensans', 'I', 6);\n // Print centered page number with datetime and timezone\n $this->AliasNbPages('{totalPages}');\n // The timezone of the user is retrieved from their Auth0 user's profile if available, otherwise the server time zone is used\n // related to this trello card https://trello.com/c/OjWZzsGA\n $timezone = ($_SESSION['auth0_user']['https://www.boxtribute.com/timezone']) ? $_SESSION['auth0_user']['https://www.boxtribute.com/timezone'] : date_default_timezone_get();\n\n $dt = new DateTime('now', new DateTimeZone($timezone));\n // This is quick fix for an issue with the alignment of footer text as the library incorrectly calculates the text length when template variables {totalPages} are used\n $totalPages = ($_GET['count'] && 0 != $_GET['count']) ? round(intval($_GET['count']) / 2) : 1;\n $this->Cell(0, 10, 'Page '.$this->PageNo().' of '.$totalPages.' Printed on '.$dt->format('d-m-Y H:i:s').\" {$timezone}\", 0, 0, 'C');\n }", "function Footer()\n\t{\n\t $this->SetY(-15);\n\t //Arial italic 8\n\t $this->SetFont('Arial','I',7);\n\t //Page number\n\t $this->Cell(0,10,utf8_decode('Página ').$this->PageNo().' de {nb}',0,0,'R');\n\t}", "function Footer()\n {\n $this->SetY(-15);\n //Select Arial Italic 8\n $this->SetFont('Arial','I',8);\n $this->SetX(86,5);\n $this->Write(5, '[ powered by '.$this->web_str.']',$this->web_str);\n //Print centered page number\n $this->Cell(0,10,$this->page_str.' '.$this->PageNo(),0,0);\n }", "function Footer()\n{\n $this->SetY(-15);\n //Select Arial italic 8\n\t$this->Cell(0,10,' '.$this->PageNo(),0,0,'R');\n}", "function rovoko_portfolio_sidebar_position(){\n return apply_filters('rovoko_portfolio_sidebar_position','bottom');\n}", "protected function _getBBox() {}", "function magazinevibe_edge_get_footer_top() {\n\n\t\t$parameters = array();\n\n\t\t$parameters['footer_in_grid'] = (magazinevibe_edge_options()->getOptionValue('footer_in_grid') == 'yes') ? true : false;\n\t\t$parameters['footer_top_classes'] = (magazinevibe_edge_options()->getOptionValue('footer_in_grid') == 'yes') ? '' : 'edgtf-footer-top-full';\n\t\t$parameters['footer_top_columns'] = magazinevibe_edge_options()->getOptionValue('footer_top_columns');\n\n\t\tmagazinevibe_edge_get_module_template_part('templates/parts/footer-top', 'footer', '', $parameters);\n\t}", "function getWorldHeight();", "public function addMarginBottom()\n\t{\n\t\t$this->class = ' mb';\n\t\treturn $this;\n\t}", "function Footer() {\n $this->SetY(-15);\n // Arial italic 8\n $this->SetFont('Arial', 'I', 10);\n // Text color in gray\n $this->SetTextColor(128);\n // Page number\n $this->Cell(0, 10, 'Page ' . $this->PageNo(), 0, 0, 'C');\n }", "public function Footer(){\n // Posición: a 1,5 cm del final\n $this->SetY(-20);\n // Arial italic 8\n $this->AddFont('Futura-Medium');\n $this->SetFont('Futura-Medium','',10);\n $this->SetTextColor(50,50,50);\n // Número de págin\n $this->Cell(3);\n $this->Cell(0,3,utf8_decode('Generado por GetYourGames'),0,0,\"R\");\n $this->Ln(4);\n $this->Cell(3);\n $this->Cell(0,3,utf8_decode(date(\"d-m-Y g:i a\").' - Página ').$this->PageNo(),0,0,\"R\");\n\n }", "function Footer()\n {\n $this->SetY(-6);\n //Arial italic 8\n $this->SetFont('Arial','I',8);\n //Page number\n $this->Cell(0,10,'Página '.$this->PageNo(),0,0,'C');\n }", "function Footer() {\n\t$this->SetY(-15);\n\t// Arial italic 8\n\t$this->SetFont('Arial','I',8);\n\t// Text color in gray\n\t$this->SetTextColor(128);\n\t// Page number\n\t$this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C');\n}", "protected function _getLastAbsoluteY()\n {\n for ($k=count($this->table)-1; $k>=0; $k--) {\n if ($this->table[$k]['y'] && $this->table[$k]['position']) return $this->table[$k]['y'];\n }\n return $this->_pdf->gettMargin();\n }", "function Footer()\n\t{\n\t $this->SetY(-15);\n\t //Arial italic 8\n\t $this->SetFont('Arial','I',7);\n\t //Page number\n\t $this->Cell(0,10,utf8_decode('PlatSource © '.date('Y')),0,0,'L');\n\t $this->Cell(0,10,utf8_decode('Página ').$this->PageNo().' de {nb}',0,0,'R');\n\t}", "function getHeight();", "private function positionAfterWhitespace()\n {\n }", "function Ln($h='')\n\t\t{\n\t\t\t$this->x=$this->lMargin;\n\t\t\tif(is_string($h)) $this->y+=$this->lasth;\n\t\t\telse $this->y+=$h;\n\t\t}", "function tac_yoasttobottom() {\n\treturn 'low';\n}", "function udesign_bottom_section_bottom() {\r\n do_action('udesign_bottom_section_bottom');\r\n}", "public function getBottomToolbarBlock()\n {\n $blockName = self::TOOLBAR_BOTTOM;\n if ($block = $this->getLayout()->getBlock($blockName)) {\n return $block;\n }\n\n $block = $this->getLayout()->createBlock($this->_defaultToolbarBlock, microtime());\n return $block;\n }", "function udesign_sidebar_bottom() {\r\n do_action('udesign_sidebar_bottom');\r\n}", "public function Footer() {\n $this->SetY(-15);\n // Arial italic 8\n $this->SetFont('helvetica','I',8);\n \n }", "function FooterRR()\n {\n //Posición: a 2 cm del final\n $this->Ln();\n $this->SetY(-12);\n $this->SetFont('Arial','B',6);\n //Número de página\n $this->Cell(190,4,'Sistema de Control de Ventas y Facturacion \"BOUTIQUE DE ZAPATERIA\"','T',0,'L');\n $this->AliasNbPages();\n $this->Cell(0,4,'Pagina '.$this->PageNo(),'T',1,'R');\n }", "function footer() {\n $this->SetY(-15);\n // Select Arial italic 8\n $this->SetFont('Arial', 'I', 8);\n // Print current and total page numbers\n $this->Cell(0, 10, 'Page ' . $this->PageNo() . '/{nb}', 0, 0, 'C');\n }", "public function footer(): PlacementInterface;", "function Footer(){\n $this->SetY(-12);\n\n $this->Cell(0,5,'Page '.$this->PageNo(),0,0,'L');\n $this->Cell(0,5,iconv( 'UTF-8','cp874','วันที่พิมพ์ :'.date('d').'/'.date('m').'/'.(date('Y')+543)),0,0,\"R\");\n}", "function Footer()\n{\n $this->SetY(-15);\n // Select Arial italic 8\n $this->SetFont('Arial','I',8);\n // Print centered page number\n $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');\n}", "private function scaleY() : void \n\t{\n\t\t$this->range = abs($this->rangeYLow) + abs($this->rangeYHigh);\n\n\t\t$this->scaleY = ((float)$this->sizeY / $this->range);\n\t\t$this->originY = $this->sizeY >> 1;\n\t}", "function Footer()\n{\n $this->SetY(-15);\n // Arial italic 8\n $this->SetFont('Arial','I',8);\n // Page number\n $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');\n}", "function Footer()\n{\n $this->SetY(-15);\n // Arial italic 8\n $this->SetFont('Arial','I',8);\n // Page number\n $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');\n}" ]
[ "0.72425437", "0.66778153", "0.649358", "0.6218001", "0.6185886", "0.60462385", "0.59324443", "0.5915993", "0.5804066", "0.57781696", "0.57499075", "0.57499075", "0.5736667", "0.5694931", "0.56587446", "0.56470233", "0.56438744", "0.5595731", "0.5571126", "0.5563715", "0.55176884", "0.5481444", "0.54685557", "0.5453651", "0.5427913", "0.5423465", "0.5416602", "0.53985757", "0.53965014", "0.53784996", "0.5368989", "0.5363528", "0.5355289", "0.53496486", "0.5338706", "0.5333796", "0.5331611", "0.5314016", "0.52985114", "0.5297452", "0.52962685", "0.5233581", "0.52201015", "0.5218427", "0.52172387", "0.5206183", "0.51723975", "0.5156209", "0.51390684", "0.5137572", "0.5129892", "0.5129892", "0.51263475", "0.51176316", "0.5113491", "0.510724", "0.5105596", "0.5104411", "0.5083579", "0.5083579", "0.5083579", "0.5083579", "0.5083579", "0.50832194", "0.5082022", "0.50673664", "0.506654", "0.50660527", "0.5055005", "0.50501347", "0.5029276", "0.5023422", "0.5020636", "0.5012183", "0.5011363", "0.49996072", "0.4995207", "0.49941695", "0.49829212", "0.49757898", "0.49751568", "0.4974993", "0.4964558", "0.4963873", "0.4960897", "0.49590603", "0.49584165", "0.49539918", "0.49522611", "0.4951396", "0.49489504", "0.49481013", "0.49423468", "0.4941947", "0.4937454", "0.49358577", "0.49324164", "0.49221832", "0.49178907", "0.48991436", "0.48991436" ]
0.0
-1
Attach new view context dependency.
public function addDependency(DependencyInterface $dependency): void { $this->context = $this->context->withDependency($dependency); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addToContext( string $key, $value, string $behavior ): View;", "public function setControllerContext()\n {\n $typo3Version = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\\TYPO3\\CMS\\Core\\Information\\Typo3Version::class);\n if (version_compare($typo3Version->getVersion(), '11.0', '<')) {\n $requestBuilder = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\\TYPO3\\CMS\\Extbase\\Mvc\\Web\\RequestBuilder::class);\n\n $requestBuilder->injectConfigurationManager($this->configurationManager);\n $requestBuilder->injectObjectManager($this->objectManager);\n $requestBuilder->injectExtensionService($this->objectManager->get(\\TYPO3\\CMS\\Extbase\\Service\\ExtensionService::class));\n $requestBuilder->injectEnvironmentService($this->objectManager->get(\\TYPO3\\CMS\\Extbase\\Service\\EnvironmentService::class));\n $this->response = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\\TYPO3\\CMS\\Extbase\\Mvc\\Web\\Response::class);\n $this->request = $requestBuilder->build();\n\n $this->uriBuilder = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\\TYPO3\\CMS\\Extbase\\Mvc\\Web\\Routing\\UriBuilder::class);\n $this->controllerContext = $this->buildControllerContext();\n $flashMessageService = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\\TYPO3\\CMS\\Core\\Messaging\\FlashMessageService::class);\n $this->controllerContext->injectFlashMessageService($flashMessageService);\n }\n }", "public function anaContext()\n {\n $this->setContext($this->parent->context);\n }", "protected function initView()\n {\n $this->di->set('view', function () {\n /** @var DiInterface $this */\n $config = $this->getShared('config');\n $em = $this->getShared('eventsManager');\n\n $view = new View;\n $view->registerEngines([\n // Setting up Volt Engine\n // See https://docs.phalconphp.com/en/latest/reference/volt.html#setting-up-the-volt-engine\n '.volt' => function ($view, $di) {\n /** @var DiInterface $this */\n $config = $this->getShared('config');\n $volt = new VoltEngine($view, $di);\n\n $options = [\n 'compiledPath' => function ($templatePath) {\n /** @var DiInterface $this */\n $config = $this->getShared('config')->get('volt')->toArray();\n\n $filename = str_replace(\n ['\\\\', '/'],\n $config['separator'],\n trim(substr($templatePath, strlen(BASE_DIR)), '\\\\/')\n );\n $filename = basename($filename, '.volt') . $config['compiledExt'];\n\n return rtrim($config['cacheDir'], '\\\\/') . DIRECTORY_SEPARATOR . $filename;\n },\n 'compileAlways' => boolval($config->get('volt')->forceCompile),\n ];\n\n $volt->setOptions($options);\n\n $volt->getCompiler()->addFunction('number_format', function ($resolvedArgs) {\n return 'number_format(' . $resolvedArgs . ')';\n })->addFunction('chr', function ($resolvedArgs) {\n return 'chr(' . $resolvedArgs . ')';\n });\n\n return $volt;\n },\n // Setting up Php Engine\n '.phtml' => 'Phalcon\\Mvc\\View\\Engine\\Php'\n ]);\n\n $view->setViewsDir($config->get('application')->viewsDir);\n\n $that = $this;\n $em->attach('view', function ($event, $view) use ($that, $config) {\n /**\n * @var LoggerInterface $logger\n * @var View $view\n * @var Event $event\n * @var DiInterface $that\n */\n $logger = $that->get('logger');\n $logger->debug(sprintf('Event %s. Path: %s', $event->getType(), $view->getActiveRenderPath()));\n\n if ('notFoundView' == $event->getType()) {\n $message = sprintf('View not found: %s', $view->getActiveRenderPath());\n $logger->error($message);\n throw new ViewException($message);\n }\n });\n\n $view->setEventsManager($em);\n\n return $view;\n });\n }", "function add_context_using(ContextInterface $context)\n {\n foil('context')->add($context);\n }", "protected function initContextAware()\n {\n return;\n }", "public function pushContext() {\n\t\t// Count the number of contexts created\n\t\t$index = count($this->context);\n\n\t\t// If no context\n\t\tif ($index == 0 && !empty($this->tpl_vars)) {\n\t\t\t// Copy the variables in context #0\n\t\t\t$this->context[0] = $this->tpl_vars;\n\t\t\t$index = 1;\n\t\t}\n\n\t\t// Create a new context\n\t\t$this->context[$index] = array();\n\n\t\t// Copy global vars\n\t\tforeach ($this->tpl_vars_global_keys as $key) {\n\t\t\t$this->context[$index][$key] = $this->tpl_vars[$key];\n\t\t}\n\n\t\t$this->tpl_vars = &$this->context[$index];\n\t}", "protected function resolveView() {}", "protected function resolveView() {}", "function preDispatch() {\n\t\t$this->_viewHelper = new \\App\\Helper\\View();\n\t}", "public function setContext($context);", "public function setContext($context);", "public function addContext(GenericContext $context);", "protected function getContext() {}", "protected function addContext(array &$element) {\n $element['#context'] = [\n '#plugin_type' => 'bef',\n '#plugin_id' => $this->pluginId,\n '#view_id' => $this->view->id(),\n '#display_id' => $this->view->current_display,\n ];\n }", "protected function setTypo3Context() {}", "public function pushContext()\n {\n \\array_push($this->contextStack, $this->context);\n \\array_push($this->showStack, $this->showState);\n }", "protected function initializeContext(): void\n {\n $this->context->setAspect('date', new DateTimeAspect(new \\DateTimeImmutable('@' . $GLOBALS['EXEC_TIME'])));\n $this->context->setAspect('visibility', new VisibilityAspect(true, true));\n $this->context->setAspect('workspace', new WorkspaceAspect(0));\n $this->context->setAspect('backend.user', new UserAspect(null));\n }", "protected function _injectTplVariable()\r\n {\r\n $oConfig = oxRegistry::getConfig();\r\n $sTplVariableName = $oConfig->getConfigParam('sTplVariable');\r\n if ($sTplVariableName) {\r\n $oConfig->getActiveView()->addTplParam($sTplVariableName, $this->getToxid());\r\n }\r\n }", "private function setAppOnContext()\n {\n if ($this->context instanceof KernelAwareContext) {\n $this->context->setApp($this->kernel);\n }\n }", "public function attach()\n {\n // dummy implementation\n }", "protected function injectTypoScriptObject() {\n\t\t$this->viewHelperVariableContainer->expects($this->any())->method('getView')->will($this->returnValue($this->mockView));\n\t}", "public function compose(View $view): void\n {\n $view->with('modules', $this->modules->loaded());\n }", "public function setControllerContext(\\TYPO3\\Flow\\Aop\\JoinPointInterface $joinPoint) {\n\t\t$this->controllerContext = $joinPoint->getMethodArgument('controllerContext');\n\t}", "private function initializeWidgetContext() {}", "protected function registerViewBindings(): void\n {\n if (!empty($this->loadedProviders['A1comms\\GaeSupportLaravel\\View\\ViewServiceProvider'])) {\n $this->configure('view');\n } else {\n parent::registerViewBindings();\n }\n }", "public function setContext(&$context)\n {\n $this->context = $context;\n }", "public function registerViewLoader()\n {\n $this->app->singleton('view', function ($app) {\n return new Tintin($app['view.finder']);\n });\n }", "protected function storeWidgetContexts() {}", "public function setDI(\\Phalcon\\DiInterface $dependencyInjector) {}", "protected function buildControllerContext() {}", "function init(&$context){}", "public function attach(HttpRequest $request) {}", "function propagate($key, $value) {\n\t\tif ($this->hasView()) {\n\t\t\t$this->view->set($key, $value);\n\t\t}\n\t\treturn $this;\n\t}", "public function add(array $context): void;", "public function enable(ContextInterface $ctx): void;", "public function enable(ContextInterface $ctx): void;", "public function enable(ContextInterface $ctx): void;", "public function __construct()\n\t{\n\n\t\t$this->context = Context::getContext();\n\t\tparent::__construct();\n\t}", "public function setup(\\Twig_Environment $environment, $view)\n {\n $this->viewConfig->setViewPath($view);\n }", "public function setViewHelperDefaulArgumentsToAdditionalArguments() {}", "public function attach(WidgetProvider $provider): void\n {\n $this->attached = $provider;\n }", "protected function composeView()\n {\n view()->composer('shop::customers.account.partials.sidemenu', function ($view) {\n $menu = current(Event::fire('customer.menu.create'));\n\n $view->with('menu', $menu);\n });\n }", "public function renderContext() {\n\t}", "public function preInit()\n {\n $this->_viewEngine = Bigace_Services::get()->getService('view');\n }", "abstract protected function setUpRoutableContextModel();", "public function compose(View $view)\n {\n $view->with('login_user', Auth::user());\n }", "abstract public function get_context();", "public function initializeView() {}", "public function initializeView() {}", "public function getContext(): mixed;", "public function register(Container $container)\n {\n $container[\"view\"] = $this;\n }", "protected function install(View $view) {\r\n\t\t$this->view = $view;\r\n\t}", "public function getContext();", "public function getContext();", "public function getContext();", "public function getContext();", "public function getContext();", "public function add(ContextInterface $context);", "public function attach()\n\t{\n\t\t// Do nothing.\n\t}", "public function attach(ObservesProxyLoading $observer) : void;", "protected function initializeStandaloneViewInstance() {}", "public function __construct(Context $context);", "public function compose(View $view)\n {\n $view->with('route', $this->route);\n }", "protected function attachHandlers()\n { \n foreach ($this->dataCollectors as $dataCollector) {\n $this->eventsManager->attach($dataCollector->getListenerType(), $dataCollector);\n }\n \n $this->eventsManager->attach('view:beforeRender', function($event, $view){\n $this->di->get('assets')\n ->addCss('assets/css/profiler.css')\n ->addJs('assets/js/profiler.js')\n ;\n $view->setVar('profilerRequestId', $this->storage->getRequestId());\n });\n \n // Profiled request details writer\n $this->eventsManager->attach('view:afterRender', function() {\n if (static::$profilerModuleName === $this->di->getShared('dispatcher')->getModuleName()) {\n return;\n }\n $this->storage->store($this);\n });\n }", "protected function addMockViewToSubject() {}", "public function __construct()\n {\n $loader = new \\Twig\\Loader\\FilesystemLoader('app/view');\n $this->twig = new \\Twig\\Environment($loader, ['debug' => true, 'cache' => false]);\n $this->twig->addGlobal('baseUrl', BASEURL);\n\n if(isset($_SESSION['user'])) {\n $this->twig->addGlobal('session', $_SESSION['user']);\n }\n }", "protected function addFormObjectToViewHelperVariableContainer() {}", "public function __construct() {\n parent::__construct();\n\t\tView::set_shared_data('require_js_main', '/' . CONTEXT_PATH . '/public/main');\n }", "public function __construct()\n {\n view()->share('type', 'department');\n }", "public function initAbstractContext()\r\n {\r\n if (!$this->getAutoSerialization()) {\r\n return;\r\n }\r\n \r\n $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');\r\n $view = $viewRenderer->view;\r\n if ($view instanceof Zend_View_Interface) {\r\n $viewRenderer->setNoRender(true);\r\n }\r\n }", "public function setContext($context) {\n $this->context = $context;\n }", "public function compose(View $view)\n {\n $view->with('users', $this->users);\n }", "protected function loadWidgetContexts() {}", "abstract protected function initializeContext();", "public function bindToController()\n {\n if ($this->controller->widget === null) {\n $this->controller->widget = new stdClass;\n }\n\n $this->controller->widget->{$this->alias} = $this;\n }", "public function compose(View $view)\n {\n $view->with('menusTree', $this->menus);\n }", "protected function prepareViewMock()\n {\n /** @var Mockery\\Mock $viewMock */\n $viewMock = Mockery::mock(Factory::class);\n $viewMock->shouldReceive('make')->andReturn('testing');\n $viewMock->shouldReceive('share')->andReturnSelf();\n\n $this->app->instance(Factory::class, $viewMock);\n }", "protected function initializeView() {\n\t}", "public function setContext($context)\r\n {\r\n $this->context = $context;\r\n }", "public function injectLibraryViewConfiguration(&$libraryViewConfiguration)\r\n {\r\n $this->libraryViewConfiguration = $libraryViewConfiguration;\r\n }", "function __construct()\n {\n // Set up the correct context\n parent::__construct(new Context());\n }", "public function withContext(ContextInterface $context): static;", "public function compose(View $view)\n {\n $view->with('plonk', $this->plonk);\n }", "protected function _addFormContextProvider()\n {\n $this->addContextProvider('form', function ($request, $data) {\n if ($data['entity'] instanceof Form) {\n return new FormContext($request, $data);\n }\n });\n }", "public function add(ContextInterface $context, SupportStrategyInterface $supportStrategy);", "function prostarter_node_view_alter(&$build) {\n // allow contextual links on node pages\n $build['#contextual_links']['node'] = array('node', array($build['#node']->nid));\n}", "protected function _initViewRendererHelper() {\n\t\tZend_Controller_Action_HelperBroker::addHelper(new Zend_Controller_Action_Helper_ViewRenderer());\n\t}", "abstract protected function setContext(array $context);", "public function update() {\n $this->view = $this->template->getView();\n $this->layout = $this->template->getLayout();\n }", "public function __construct()\n {\n $this->view = new View($this);\n }", "public function __construct()\n {\n parent::__construct();\n\n\n $this->twig = new Environment(new FilesystemLoader('../src/View'), array(\n 'cache' => false,\n 'debug' => true,\n ));\n //permet de Dumper depuis le front\n $this->twig->addExtension(new DebugExtension());\n //création super global session à partir de l'objet user récupérer\n $this->twig->addGlobal('session', $this->session->getUserSession());\n $this->getCommentsDisable();\n }", "public function contextStrategy();", "protected function initializeViewAdditions()\n {\n if ($this->view instanceof ExpandableViewInterface) {\n $this->view->addFilterAndFunction(\n 'action',\n function (\n string $action,\n $controller = null,\n $database = null,\n $document = null,\n array $query = [],\n $fragment = ''\n ) {\n if ($controller === null) {\n $controller = $this;\n }\n\n return $this->getUriBuilder()->buildUriFor(\n $action,\n $controller,\n $database,\n $document,\n $query,\n (string)$fragment\n );\n }\n );\n $this->view->addFilterAndFunction(\n 'assetUri',\n function (string $assetUri, $noCache = false) {\n $uri = '/_asset/' . ltrim($assetUri);\n if ($noCache) {\n return $uri . '?v=' . time();\n }\n\n return $uri;\n }\n );\n }\n }", "protected function _view()\r\n\t\t{\r\n\t\t\t((!is_object($this->_view)) ? $this->_view = init_class(VIEW_NAME) : '');\r\n\t\t}", "public function compose(View $view)\n {\n $verificationStatus = auth()->user()->status;\n $view->with('verificationStatus', $verificationStatus);\n }", "public function __construct()\n {\n $this->getEventManager()->getSharedManager()->attach('Zend\\Mvc\\Controller\\AbstractActionController', 'dispatch', function($e) {\n $controller = $e->getTarget();\n $controller->layout('user/layout');\n });\n }", "function add_to_context( $context ) {\n\t\t$context['options'] = get_fields('options');\n\t\treturn $context;\n\t}", "public function compose(View $view)\n {\n $view->with('menus', $this->menus);\n }", "abstract public function setContext($context_object);" ]
[ "0.61059254", "0.580478", "0.57618487", "0.56002265", "0.55269486", "0.5390048", "0.5327568", "0.53203124", "0.53203124", "0.5291073", "0.52863693", "0.52863693", "0.5257066", "0.52413094", "0.5234287", "0.5231933", "0.51898915", "0.5187998", "0.5128602", "0.51217204", "0.50977933", "0.5097779", "0.506724", "0.50575864", "0.5046415", "0.5000488", "0.49881357", "0.4982764", "0.49704775", "0.49683022", "0.49630296", "0.49568713", "0.4931781", "0.49131513", "0.49047863", "0.48892868", "0.48892868", "0.48892868", "0.4866908", "0.48632538", "0.48009342", "0.4793721", "0.47846842", "0.478342", "0.47830343", "0.47743842", "0.47735533", "0.47721425", "0.4763676", "0.4763676", "0.4758771", "0.47489217", "0.47471675", "0.47441974", "0.47441974", "0.47441974", "0.47441974", "0.47441974", "0.47401947", "0.47395518", "0.47395003", "0.47345626", "0.47220513", "0.4719061", "0.471315", "0.47127348", "0.4708526", "0.46878672", "0.468505", "0.46818796", "0.46807027", "0.46780038", "0.4674583", "0.46703735", "0.46683374", "0.4665723", "0.46637613", "0.4662915", "0.4658177", "0.46569127", "0.465477", "0.46480685", "0.464195", "0.46405712", "0.4640415", "0.46379992", "0.46344626", "0.46319383", "0.46319172", "0.46308532", "0.46265945", "0.46265835", "0.4625921", "0.4620903", "0.4620216", "0.46066833", "0.45971975", "0.4594846", "0.459189", "0.458847" ]
0.56908524
3
Attach new view engine.
public function addEngine(EngineInterface $engine): void { $this->engines[] = $engine->withLoader($this->loader); uasort($this->engines, function (EngineInterface $a, EngineInterface $b) { return strcmp($a->getLoader()->getExtension(), $b->getLoader()->getExtension()); }); $this->engines = array_values($this->engines); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function initView()\n {\n $this->di->set('view', function () {\n /** @var DiInterface $this */\n $config = $this->getShared('config');\n $em = $this->getShared('eventsManager');\n\n $view = new View;\n $view->registerEngines([\n // Setting up Volt Engine\n // See https://docs.phalconphp.com/en/latest/reference/volt.html#setting-up-the-volt-engine\n '.volt' => function ($view, $di) {\n /** @var DiInterface $this */\n $config = $this->getShared('config');\n $volt = new VoltEngine($view, $di);\n\n $options = [\n 'compiledPath' => function ($templatePath) {\n /** @var DiInterface $this */\n $config = $this->getShared('config')->get('volt')->toArray();\n\n $filename = str_replace(\n ['\\\\', '/'],\n $config['separator'],\n trim(substr($templatePath, strlen(BASE_DIR)), '\\\\/')\n );\n $filename = basename($filename, '.volt') . $config['compiledExt'];\n\n return rtrim($config['cacheDir'], '\\\\/') . DIRECTORY_SEPARATOR . $filename;\n },\n 'compileAlways' => boolval($config->get('volt')->forceCompile),\n ];\n\n $volt->setOptions($options);\n\n $volt->getCompiler()->addFunction('number_format', function ($resolvedArgs) {\n return 'number_format(' . $resolvedArgs . ')';\n })->addFunction('chr', function ($resolvedArgs) {\n return 'chr(' . $resolvedArgs . ')';\n });\n\n return $volt;\n },\n // Setting up Php Engine\n '.phtml' => 'Phalcon\\Mvc\\View\\Engine\\Php'\n ]);\n\n $view->setViewsDir($config->get('application')->viewsDir);\n\n $that = $this;\n $em->attach('view', function ($event, $view) use ($that, $config) {\n /**\n * @var LoggerInterface $logger\n * @var View $view\n * @var Event $event\n * @var DiInterface $that\n */\n $logger = $that->get('logger');\n $logger->debug(sprintf('Event %s. Path: %s', $event->getType(), $view->getActiveRenderPath()));\n\n if ('notFoundView' == $event->getType()) {\n $message = sprintf('View not found: %s', $view->getActiveRenderPath());\n $logger->error($message);\n throw new ViewException($message);\n }\n });\n\n $view->setEventsManager($em);\n\n return $view;\n });\n }", "public function createView($viewEngineDef = null, ?Closure $engineCallback = null, bool $withShareExtensions = true): ViewInterface;", "function setEngine($engine);", "private function enableBladeEngine(): void\n {\n $app = $this->app;\n\n $app->view->getEngineResolver()->register('blademd', function () use ($app): BladeCommonMarkEngine {\n $compiler = $app['blade.compiler'];\n $files = $app['files'];\n $converter = $app['markdown.converter'];\n\n return new BladeCommonMarkEngine($compiler, $files, $converter);\n });\n\n $app->view->addExtension('md.blade.php', 'blademd');\n }", "public function registerEngineResolver()\n {\n $this->app->bind('view.engine.resolver', function () {\n $resolver = new EngineResolver;\n\n // Next, we will register the various view engines with the resolver so that the\n // environment will resolve the engines needed for various views based on the\n // extension of view file. We call a method for each of the view's engines.\n foreach (['file', 'php', 'blade'] as $engine) {\n $this->{'register'. ucfirst($engine) .'Engine'}($resolver);\n }\n\n return $resolver;\n });\n }", "public static function registerEngines($view, $di)\n {\n $config = \\Phalcon\\DI::getDefault()->getShared('config');\n\n $volt = new \\Phalcon\\Mvc\\View\\Engine\\Volt($view, $di);\n $volt->setOptions(array(\n // Don't check on 'production' for differences between the template file and its compiled path\n // Compile always on 'development', on 'testing'/'staging' only checks for changes in the children templates\n 'stat' => $config->app->env == 'production' ? false : true,\n 'compileAlways' => $config->app->env == 'development' ? true : false,\n 'compiledPath' => function($templatePath) {\n list($junk, $path) = explode(ROOT_PATH, $templatePath);\n $dir = dirname($path);\n $file = basename($path, '.volt');\n\n if (!is_dir(ROOT_PATH . '/app/common/cache/volt' . $dir)) {\n $old = umask(0);\n mkdir(ROOT_PATH . '/app/common/cache/volt' . $dir, 0777, true);\n umask($old);\n }\n return ROOT_PATH . '/app/common/cache/volt' . $dir . '/' . $file . '.phtml';\n }\n ));\n\n $compiler = $volt->getCompiler();\n $compiler->addExtension(new \\Baseapp\\Extension\\VoltStaticFunctions());\n $compiler->addExtension(new \\Baseapp\\Extension\\VoltPHPFunctions());\n\n return array(\n // Try to load .phtml file from ViewsDir first,\n \".phtml\" => \"Phalcon\\Mvc\\View\\Engine\\Php\",\n \".volt\" => $volt,\n \".md\" => 'Baseapp\\Extension\\Markdown',\n );\n }", "public function addEngine(TemplateEngine $engine): void\n {\n $this->engines[] = $engine;\n }", "public function setEngine(Engine $engine);", "public function registerGaeEngineResolver(): void\n {\n $this->app->singleton('view.engine.resolver', function () {\n $resolver = new EngineResolver();\n\n // Next, we will register the various view engines with the resolver so that the\n // environment will resolve the engines needed for various views based on the\n // extension of view file. We call a method for each of the view's engines.\n foreach (['file', 'php'] as $engine) {\n $this->{'register'.ucfirst($engine).'Engine'}($resolver);\n }\n\n foreach (['blade'] as $engine) {\n $this->{'registerGae'.ucfirst($engine).'Engine'}($resolver);\n }\n\n return $resolver;\n });\n }", "protected function registerEngine()\n {\n $this->app->bindIf('twig', function () {\n $extensions = $this->app->make('twig.extensions');\n $lexer = $this->app->make('twig.lexer');\n $twig = new Bridge(\n $this->app->make('twig.loader'), $this->app->make('twig.options'), $this->app\n );\n // Instantiate and add extensions\n foreach ($extensions as $extension) {\n // Get an instance of the extension\n // Support for string, closure and an object\n if (is_string($extension)) {\n try {\n $extension = $this->app->make($extension);\n } catch (\\Exception $e) {\n\n// throw new InvalidArgumentException(\n// \"Cannot instantiate Twig extension '$extension': \" . $e->getMessage()\n// );\n }\n } elseif (is_callable($extension)) {\n $extension = $extension($this->app, $twig);\n } elseif (!is_a($extension, 'Twig_Extension')) {\n throw new InvalidArgumentException('Incorrect extension type');\n }\n if ($extension instanceof \\Twig_ExtensionInterface) {\n $twig->addExtension($extension);\n }\n }\n\n // Set lexer\n if (is_a($lexer, 'Twig_LexerInterface')) {\n $twig->setLexer($lexer);\n }\n\n return $twig;\n }, true\n );\n\n $this->app->alias('twig', 'Twig_Environment');\n $this->app->alias('twig', 'TwigBridge\\Bridge');\n\n $this->app->bindIf('twig.compiler', function () {\n return new Compiler($this->app->make('twig'));\n });\n\n $this->app->bindIf('twig.engine', function () {\n return new Twig(\n $this->app->make('twig.compiler'), $this->app->make('twig.loader.viewfinder'), $this->app->make('config')->get('twigbridge.twig.globals', [])\n );\n });\n }", "public function setDefaultEngine(string $name): ViewManagerInterface;", "protected function initializeStandaloneViewInstance() {}", "public function changeEngine(View\\Engine $toEngine, $unsetOld=true)\n\t{\n\t\t$result = $this->engine;\n\t\tif ($unsetOld)\n\t\t{\n\t\t\tunset($this->engine);\n\t\t\t$result = $toEngine;\n\t\t}\n\t\t$this->engine = $toEngine;\n\t\t$this->engine->applyView($this);\n\t\t\n\t\treturn $result;\n\t}", "protected function setView()\n {\n $view = 'Src\\Modules\\\\' . $this->module_name . '\\Views\\\\' . $this->class . 'View';\n $this->view = new $view;\n \n $this->view->setData( $this->model->getData() );\n \n $this->view->run();\n }", "public function insertView()\n\t{\n\t\t$viewPath = $this->getViewDirectory() . '/view.' . strtolower($this->current_action) . '.php';\n\t\tif (FileSystem::checkFile($viewPath))\n\t\t{\n\t\t\tEventHandler::trigger(EventTypes::ORION_BEFORE_VIEW, $this);\n\t\t\tinclude($viewPath);\n\t\t\tEventHandler::trigger(EventTypes::ORION_AFTER_VIEW, $this);\n\t\t}\n\t}", "public function __construct()\n {\n if (!isset(self::$viewengines)) {\n self::$viewengines = array();\n }\n }", "protected function registerViewBindings(): void\n {\n if (!empty($this->loadedProviders['A1comms\\GaeSupportLaravel\\View\\ViewServiceProvider'])) {\n $this->configure('view');\n } else {\n parent::registerViewBindings();\n }\n }", "public function engine($engine)\n {\n $this->engine = $engine;\n return $this;\n }", "protected function _view()\r\n\t\t{\r\n\t\t\t((!is_object($this->_view)) ? $this->_view = init_class(VIEW_NAME) : '');\r\n\t\t}", "public function __construct($view_loader, $engine){\n $this->view_loader = $view_loader;\n $this->engine = $engine;\n }", "public function withEngine(Engine $engine)\n {\n return $this->with('engine', $engine);\n }", "private function enablePhpEngine(): void\n {\n $app = $this->app;\n\n $app->view->getEngineResolver()->register('phpmd', function () use ($app): PhpCommonMarkEngine {\n $files = $app['files'];\n $converter = $app['markdown.converter'];\n\n return new PhpCommonMarkEngine($files, $converter);\n });\n\n $app->view->addExtension('md.php', 'phpmd');\n }", "protected function getNewViewInstance() {\n return $this->objectManager->get('TYPO3\\\\CMS\\\\Fluid\\\\View\\\\StandaloneView');\n }", "public function registerGaeViewFinder(): void\n {\n $this->app->bind('view.finder', function ($app) {\n // TODO: Replace with a static manifest array search.\n return new FileViewFinder($app['files'], $app['config']['view.paths'], null, $this->app['config']['view.compiled']);\n });\n }", "function engine() {\n\n if ( $this->_engine ) {\n return $this->_engine;\n } elseif ( ($template = Liber::conf('TEMPLATE_ENGINE')) ) {\n // instancing of Template Engine\n Liber::loadClass($template, 'APP');\n $this->_engine = new $template;\n } else {\n $this->_engine = &$this;\n }\n\n return $this->_engine;\n }", "protected function registerEngineResolver() {\n $serviceProvider = $this;\n\n $this->app->singleton( 'view.engine.resolver',\n function () use ( $serviceProvider ) {\n $resolver = new EngineResolver();\n\n // Register the engines.\n foreach ( [ 'twig' ] as $engine ) {\n $serviceProvider->{'register' . ucfirst( $engine ) . 'Engine'}( $engine, $resolver );\n }\n\n return $resolver;\n } );\n }", "public function attach()\n {\n // dummy implementation\n }", "public function setEngine($engine)\n {\n $this->engine = $engine;\n }", "private function _initView()\n {\n App::front()->registerPlugin(new App_Controller_Plugin_View());\n }", "public function setEngine(EngineInterface $engine);", "public function registerViewFinder()\n {\n $this->app->bind('view.finder', function ($app) {\n $browser = $app->make(Browser::class);\n $paths = $app['config']['view.paths'];\n\n return new AdaptiveFileViewFinder($browser, $app['files'], $paths);\n });\n }", "public function init()\n {\n Zend_Registry::set('view', new Omeka_View);\n }", "function view($view){\r\r\n $this->view = $view;\r\r\n }", "public function createView($viewName, $definition, $schemaName){ }", "public function registerViewLoader()\n {\n $this->app->singleton('view', function ($app) {\n return new Tintin($app['view.finder']);\n });\n }", "public function createView();", "private function enableCompiler(): void\n {\n $app = $this->app;\n\n $app->view->getEngineResolver()->register('md', function () use ($app): CompilerEngine {\n $compiler = $app['markdown.compiler'];\n\n return new CompilerEngine($compiler);\n });\n\n $app->view->addExtension('md', 'md');\n }", "function load_view($template){$this->hold_template = APPPATH . '/views/' . $template . EXT;}", "public function initializeView() {}", "public function initializeView() {}", "protected function latteView()\n {\n $latte = new Engine();\n \n try {\n $latte->render(__DIR__ . '/../View/' . $this->view . '.latte', $this->latteParameters);\n } catch (\\RuntimeException $exception) {\n //File not found\n echo '[Error] Work in progress.';\n }\n }", "public function injectJavascriptInView(): void;", "private function initTemplateEngine()\n {\n include_once basedir.'classes/lib/raintpl.php';\n //raintpl::$tpl_dir = \"view/\"; // template directory\n //raintpl::$cache_dir = \"tmp/\"; // cache directory\n $this->tpl = new RainTPL();\n $this->tpl->configure('tpl_dir', basedir.'view/');\n $this->tpl->configure('cache_dir', basedir.'tmp/');\n }", "protected function _initViewRendererHelper() {\n\t\tZend_Controller_Action_HelperBroker::addHelper(new Zend_Controller_Action_Helper_ViewRenderer());\n\t}", "public function makeNewDceView(): StandaloneView\n {\n /** @var StandaloneView $fluidTemplate */\n $fluidTemplate = GeneralUtility::makeInstance(StandaloneView::class);\n\n $renderingContext = $fluidTemplate->getRenderingContext();\n if ($renderingContext instanceof RenderingContext && null === $renderingContext->getRequest()) {\n $renderingContext->setRequest($GLOBALS['TYPO3_REQUEST']);\n }\n\n $viewPaths = $this->getTyposcriptViewPaths();\n $fluidTemplate->setLayoutRootPaths($this->resolvePaths($viewPaths['layoutRootPaths']));\n $fluidTemplate->setTemplateRootPaths($this->resolvePaths($viewPaths['templateRootPaths']));\n $fluidTemplate->setPartialRootPaths($this->resolvePaths($viewPaths['partialRootPaths']));\n\n return $fluidTemplate;\n }", "public function use_viewer_engine ($identifier)\n\t{\n\t\tif (!isset ($this->factories[$identifier]))\n\t\t\tthrow new MissingTemplatingEngineException ($identifier);\n\t\t$this->current_factory = $this->factories[$identifier];\n\t}", "function addView ($view_key, &$view) {\n\t\t$this->_views[$view_key] =& $view;\n\t}", "public function addEnvironment()\n {\n\n $data['phpVersions'] = $this->getPhpVersions();\n $data['mysqlVersions'] = $this->getMysqlVersions();\n\n $this->load->view('elements/header');\n $this->load->view('environments/create', $data);\n\n }", "public function engine(string $engine): self\n {\n $this->engine = $engine;\n return $this;\n }", "public function attach(EventManagerInterface $events)\r\n {\r\n $this->listeners[] = $events->attach(MvcEvent::EVENT_RENDER, array($this, 'renderSeo'), -100);\r\n }", "public function preInit()\n {\n $this->_viewEngine = Bigace_Services::get()->getService('view');\n }", "public function append(\\View $view) {\n $this->appendViews[] = $view;\n return $this;\n }", "protected function injectTypoScriptObject() {\n\t\t$this->viewHelperVariableContainer->expects($this->any())->method('getView')->will($this->returnValue($this->mockView));\n\t}", "protected function initializeView() {\n\t}", "public function extend($extender_name);", "protected function _initView()\n\t{\n\t\t$view = new App_View();\n\t\t$view->doctype('XHTML1_STRICT');\n\n\t\t$view->addHelperPath(APPLICATION_PATH . '/views/helpers');\n\t\t$viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');\n\t\t$viewRenderer->setView($view);\n\n\t\t\n\t\treturn $view;\n\t}", "private function startEngine(){\n $this->start();\n }", "protected function registerViews() {\n\t\t\n\t\telgg_extend_view('river/filter', 'thewire_tools/activity_post', 400);\n\t\telgg_extend_view('css/elgg', 'css/thewire_tools.css');\n\t\telgg_extend_view('js/elgg', 'js/thewire_tools.js');\n\t\telgg_extend_view('notifications/settings/other', 'thewire_tools/notifications/settings');\n\t\telgg_extend_view('page/layouts/elements/filter', 'thewire_tools/group_activity', 400);\n\t\telgg_extend_view('thewire/sidebar', 'thewire_tools/extends/thewire/sidebar', 400);\n\t\t\n\t\telgg_register_ajax_view('thewire_tools/reshare');\n\t\telgg_register_ajax_view('thewire_tools/reshare_list');\n\t\telgg_register_ajax_view('thewire_tools/thread');\n\t}", "public function renderAddPostView() {\n $userController = new UserController();\n $userController->redirectIfNotConnected();\n\n require 'public/views/back/addPostView.phtml';\n }", "public function enableLayout()\n\t{\n\t\t$this->_layout = new Opt_View($this->_layoutName);\n\n\t\treturn $this;\n\t}", "public function addView()\n {\n $nbViews = $this->getData('nb_views') + 1;\n $this->save(array(\n 'nb_views' => $nbViews,\n ));\n\n return $this;\n }", "public function insertView($model)\n {\n\t$modelName= is_object($model) ? $model->getTableName() : $model;\n\t$sql=array();\n\n\t$sql[] = $this->sql('insert into [views] values (null, %s, %s);', $model->getTableName(), $model->getHash() );\n\n\t$this->queue(\n\t PerfORMStorage::VIEW_ADD,\n\t $modelName,\n\t $sql,\n\t array(\n\t\t'model' => $model)\n\t );\n\n\t$key= $model->getHash();\n\tif ( key_exists($key, $this->renamedViews))\n\t{\n\t $array= $this->renamedViews[$key];\n\t $array->counter++;\n\t $array->to= $modelName;\n\t}\n\telse\n\t{\n\t $this->renamedViews[$key]= (object) array(\n\t 'counter' => 1,\n\t 'to' => $modelName,\n\t );\n\t}\n }", "public function addView($viewName, $params = [], $reset = false)\n {\n if (is_array($viewName)) {\n foreach ($viewName as $i => $view) {\n if (!is_numeric($i)) {\n throw new BException($this->_((('Invalid argument: %s')), print_r($viewName, 1)));\n }\n $this->addView($view[0], $view[1], $reset); // if self::view is possible to disappear better not use it.\n }\n\n return $this;\n }\n if (is_string($params)) {\n $params = ['view_class' => $params];\n }\n if (empty($params['module_name']) && ($moduleName = $this->BModuleRegistry->currentModuleName())) {\n $params['module_name'] = $moduleName;\n }\n $viewAlias = !empty($params['view_alias']) ? $params['view_alias'] : $viewName;\n $viewFile = !empty($params['view_file']) ? $params['view_file'] : $viewName;\n if (empty($params['file_ext']) && !empty($params['template'])) {\n $params['file_ext'] = '.' . pathinfo($params['template'], PATHINFO_EXTENSION);\n }\n if (!isset($this->_views[$viewAlias]) || !empty($params['view_class'])) {\n if (empty($params['view_class'])) {\n /*\n if (!empty($params['module_name'])) {\n $viewClass = $this->BModuleRegistry->module($params['module_name'])->default_view_class;\n if ($viewClass) {\n $params['view_class'] = $viewClass;\n }\n } else\n */\n if (!empty($this->_defaultViewClass)) {\n $params['view_class'] = $this->_defaultViewClass;\n }\n }\n\n $this->_views[$viewAlias] = $this->BView->factory($viewFile, $params);\n /*\n $this->BEvents->fire('BLayout::view:add:' . $viewAlias, array(\n 'view' => $this->_views[$viewAlias],\n ));\n */\n } else {\n $this->_views[$viewAlias]->setParam($params);\n /*\n $this->BEvents->fire('BLayout::view:update:' . $viewAlias, array(\n 'view' => $this->_views[$viewAlias],\n ));\n */\n }\n\n return $this;\n }", "protected function attached($presenter)\n\t{\n\t\tparent::attached($presenter);\n\n\t\tif (!$this->isBuilt) {\n\t\t\t$this->build();\n\t\t}\n\n\t\tif (method_exists($this, \"afterBuild\")) {\n\t\t\t$this->afterBuild();\n\t\t}\n\n\t\tif ($this->translator) {\n\t\t\t$this->setTranslator($this->translator);\n\t\t}\n\n\t\tif ($presenter instanceof Nette\\Application\\IPresenter) {\n\t\t\t$this->attachHandlers($presenter);\n\t\t}\n\n\t\tif ($presenter->module != \"front\" && $this->useBootstrap) {\n\t\t\t$this->setRenderer(new BootstrapRenderer($presenter->template));\n\t\t}\n\t}", "private function renderView(){\n\t\trequire($this->ViewFile);\n\t}", "public function addToContext( string $key, $value, string $behavior ): View;", "public function editorAttach(&$element, &$settings);", "public function registerViewFinder()\n {\n $this->app->bind('view.finder', function () {\n return new FileViewFinder([\n $this->path,\n ]);\n });\n }", "private function insererVue() {\r\n $filevue = \"application/views/\" . $this->vue . \".view.php\";\r\n require_once $filevue;\r\n }", "public function getEngine();", "public function getEngine();", "public function getEngine();", "protected function install(View $view) {\r\n\t\t$this->view = $view;\r\n\t}", "public function setView($view);", "public function createView(){\n\t\t$vue = new View(\"Create\");\n\t\t$vue->generer();\n\t}", "public function appendPath(string $path) : EngineInterface;", "public function addView($name, $options) {\n\t\t$this->views[$name] = $options;\n\t}", "function startEngine() {\n }", "protected function _initView()\r\n {\r\n $view = new Zend_View();\r\n $view->doctype('XHTML1_STRICT');\r\n\r\n // Add it to the ViewRenderer\r\n $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');\r\n $viewRenderer->setView($view);\r\n\r\n $front = Zend_Controller_Front::getInstance();\r\n $router = $front->getRouter();\r\n $router->addRoute('products', new Zend_Controller_Router_Route('products/:slug', array('controller' => 'products', 'action' => 'details')));\r\n $router->addRoute('page', new Zend_Controller_Router_Route('page/:slug', array('controller' => 'page', 'action' => 'open')));\r\n\r\n return $view;\r\n }", "private function registerViewStrategies()\n {\n if (! isset($this->config['strategies'])) {\n return;\n }\n\n $strategies = $this->config['strategies'];\n\n if (is_string($strategies)) {\n $strategies = [$strategies];\n }\n\n if (! is_array($strategies) && ! $strategies instanceof Traversable) {\n return;\n }\n\n $view = $this->getView();\n $events = $view->getEventManager();\n\n foreach ($strategies as $strategy) {\n if (! is_string($strategy)) {\n continue;\n }\n\n $listener = $this->services->get($strategy);\n if ($listener instanceof ListenerAggregateInterface) {\n $listener->attach($events, 100);\n }\n }\n }", "public function addHelpers(&$view) {\n $view = preg_replace_callback('/({)({)((?:[a-zA-Z0-9_,->()s]*))(})(})/',\n function($match) {\n $func_exp = explode('->', $match[3]);\n $function = trim($func_exp[0]);\n $params = explode(',', trim($func_exp[1]));\n\n return call_user_func_array($this->functions[$function], $params);\n }, $view);\n }", "public function addView()\n {\n $translate = $this->getTranslate('MoldAddView');\n $this->setParam('translate', $translate);\n\n $moldModel = new moldModel();\n $patternSizeList = $moldModel->getPatternSizeList();\n $this->setParam('patternSizeList', $patternSizeList);\n\n $statusList = $moldModel->getStatusList();\n $this->setParam('statusList', $statusList);\n\n $codeModel = new codeModel();\n $moldRefSpecs = $codeModel->getRefSpecsPossible('V1');\n $this->setParam('refSpecs', $moldRefSpecs);\n\n // traduction des statuts\n $translateStatusList = $this->getTranslate('Status_List');\n $this->setParam('translateStatusList', $translateStatusList);\n\n $locationTypeList = $moldModel->getLocationTypeList();\n $this->setParam('locationTypeList', $locationTypeList);\n\n // traduction des localisations\n $translateLocationTypeList = $this->getTranslate('Location_List');\n $this->setParam('translateLocationTypeList', $translateLocationTypeList);\n\n\n // Récupération de la liste des données avec leurs descriptions\n $dataModel = new dataModel();\n\n $dataList = $dataModel->getDataList('Mold_App');\n $this->setParam('dataList', $dataList);\n\n $dataCategoryList = $dataModel->getDataCategoryListUser('Mold_App');\n $this->setParam('dataCategoryList', $dataCategoryList);\n\n // traduction des données et des catégories\n $translateData = $this->getTranslate('Data_List');\n $this->setParam('translateData', $translateData);\n $translateDataCategory = $this->getTranslate('Data_Category_List');\n $this->setParam('translateDataCategory', $translateDataCategory);\n\n\n $this->setParam('titlePage', $this->getVerifyTranslate($translate, 'pageTitle'));\n $this->setView('moldAdd');\n $this->setApp('Mold_App');\n\n\n // Vérification des droits utilisateurs\n if (frontController::haveRight('add', 'Mold_App'))\n $this->showView();\n else\n header('Location: /mold');\n }", "public function getEngine()\n {\n return $this;\n }", "protected function makeViews()\n {\n new MakeView($this, $this->files);\n }", "public function setView($template);", "protected function loadView()\n {\n }", "protected function loadView()\n {\n }", "private function registerViews()\n {\n $diskName = config(self::CONFIG_FILE . '.disk_name');\n $this->loadViewsFrom(config(\"filesystems.disks.{$diskName}.root\"), self::VIEWS_NAMESPACE_ACCESSOR);\n }", "public function attach()\n\t{\n\t\t// Do nothing.\n\t}", "function __construct()\r\n {\r\n $this->view = new View();\r\n }", "public function __construct(Application $app) {\n $this->templateEngine = new Plates(__DIR__.'/../Views');\n\n // On transmet des données à toutes les views\n $this->templateEngine->addData([\n 'router' => $app->getRouter() // => $router dans toutes les views\n ]);\n }", "function getEngine();", "public function addView(View $view)\n {\n $name = $view->getName();\n $path = $view->getPath();\n $type = '';\n\n if ($path && is_string($path)) {\n $path = ltrim(str_replace(base_path(), '', realpath($path)), '/');\n\n if (substr($path, -10) == '.blade.php') {\n $type = 'blade';\n } else {\n $type = pathinfo($path, PATHINFO_EXTENSION);\n }\n } elseif (is_object($path)) {\n $type = get_class($view);\n $path = '';\n }\n\n foreach ($this->exclude_paths as $excludePath) {\n if (strpos($path, $excludePath) !== false) {\n return;\n }\n }\n\n if (!$this->collect_data) {\n $params = array_keys($view->getData());\n } else {\n $data = [];\n foreach ($view->getData() as $key => $value) {\n $data[$key] = $this->getDataFormatter()->formatVar($value);\n }\n $params = $data;\n }\n\n $template = [\n 'name' => $path ? sprintf('%s (%s)', $name, $path) : $name,\n 'param_count' => count($params),\n 'params' => $params,\n 'type' => $type,\n 'editorLink' => $this->getEditorHref($view->getPath(), 0),\n ];\n\n if ($this->getXdebugLink($path)) {\n $template['xdebug_link'] = $this->getXdebugLink(realpath($view->getPath()));\n }\n\n $this->templates[] = $template;\n }", "protected function resolveView() {}", "protected function resolveView() {}", "public function setup(\\Twig_Environment $environment, $view)\n {\n $this->viewConfig->setViewPath($view);\n }", "function __construct(){\n $this->view=new View(); \n }", "public function add() {\r\n\t\t$model = $this->getModel('languages');\r\n\t\t$model->add();\r\n\t\t\r\n\t\t$this->view = $this->getView(\"languages\");\r\n\t\t$this->view->setModel($model, true);\r\n\t\t$this->view->display();\r\n\t}", "function __construct()\n {\n $this->view = new View();\n }", "function __construct()\n {\n $this->reg = Core_Registery::singleton();\n $this->reg->view = $this;\n $this->initTemplateEngine();\n \n }", "private function registerViewFinder() {\n $paths = \\Config::get('view.paths');\n\t\tarray_unshift($paths, DIR_TEMPLATE);\n\t\t\\Config::set('view.paths', $paths);\n }" ]
[ "0.6174771", "0.58624846", "0.57467365", "0.5725187", "0.56428057", "0.5611692", "0.56007063", "0.55614954", "0.53987944", "0.5377678", "0.5352753", "0.5347289", "0.53348374", "0.52548456", "0.52171546", "0.5122254", "0.5120949", "0.50886524", "0.5086329", "0.5082385", "0.5072178", "0.5071078", "0.506498", "0.50303674", "0.50262445", "0.50256455", "0.4984254", "0.4982579", "0.49631083", "0.49203536", "0.48907012", "0.48600394", "0.48517278", "0.48497865", "0.4843142", "0.4836022", "0.4825542", "0.48186257", "0.48141748", "0.48141748", "0.4811443", "0.48101583", "0.4803164", "0.48011127", "0.47996008", "0.47964376", "0.4789122", "0.4785181", "0.47587964", "0.47498575", "0.4748352", "0.47451133", "0.47425944", "0.47401664", "0.47359633", "0.4725148", "0.47234187", "0.4720512", "0.47152612", "0.470816", "0.47048777", "0.47008765", "0.46936595", "0.46914586", "0.46840954", "0.4679361", "0.46668696", "0.46609563", "0.46606386", "0.46583956", "0.46583956", "0.46583956", "0.46474645", "0.46435884", "0.46396318", "0.4636459", "0.46313062", "0.46305674", "0.46060818", "0.46047872", "0.4585768", "0.45783952", "0.45703277", "0.4564683", "0.45578155", "0.45573023", "0.45573023", "0.4555967", "0.45557806", "0.45482165", "0.4547325", "0.45433882", "0.45400485", "0.45347664", "0.45347664", "0.45304477", "0.4523393", "0.45202675", "0.4518649", "0.4518006", "0.45141327" ]
0.0
-1
Get all associated view engines.
public function getEngines(): array { return $this->engines; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEngines() {\n return $this->dependencyInjector->getAll('ride\\\\library\\\\template\\\\engine\\\\Engine');\n }", "public static function get_template_engines(): EngineCollection\n {\n return Render\\get_engines();\n }", "public function get_engines() {\n return $this->get_items_by_type(static::$ENGINES);\n }", "function engines() {\n $parameters = array(\n 'method' => __FUNCTION__\n );\n return $this->get_data($parameters);\n }", "protected function episodeViews()\n {\n return app(EpisodeViews::class);\n }", "public function getAllViews()\n {\n return $this->connection->select(\n $this->grammar->compileGetAllViews(\n $this->parseSearchPath(\n $this->connection->getConfig('search_path') ?: $this->connection->getConfig('schema')\n )\n )\n );\n }", "protected function getAllViews()\n {\n return $this->getConnection()->select(\n $this->grammar->compileGetAllViews()\n );\n }", "public function registerGaeEngineResolver(): void\n {\n $this->app->singleton('view.engine.resolver', function () {\n $resolver = new EngineResolver();\n\n // Next, we will register the various view engines with the resolver so that the\n // environment will resolve the engines needed for various views based on the\n // extension of view file. We call a method for each of the view's engines.\n foreach (['file', 'php'] as $engine) {\n $this->{'register'.ucfirst($engine).'Engine'}($resolver);\n }\n\n foreach (['blade'] as $engine) {\n $this->{'registerGae'.ucfirst($engine).'Engine'}($resolver);\n }\n\n return $resolver;\n });\n }", "protected function get_log_engines() {\n\t\t$available_engines = $this->log_manager()->get_logging_engines();\n\n\t\tif ( empty( $available_engines ) ) {\n\t\t\treturn array( '' => _x( 'None currently available', 'log engines', 'tribe-common' ) );\n\t\t}\n\n\t\t$engine_list = array();\n\n\t\tforeach ( $available_engines as $class_name => $engine ) {\n\t\t\t/**\n\t\t\t * @var Tribe__Log__Logger $engine\n\t\t\t */\n\t\t\t$engine_list[ $class_name ] = $engine->get_name();\n\t\t}\n\n\t\treturn $engine_list;\n\t}", "protected function getAllViews() {\n $views = array();\n $this->getAllViews0($views);\n return $views;\n }", "public function getViews();", "public function registerEngineResolver()\n {\n $this->app->bind('view.engine.resolver', function () {\n $resolver = new EngineResolver;\n\n // Next, we will register the various view engines with the resolver so that the\n // environment will resolve the engines needed for various views based on the\n // extension of view file. We call a method for each of the view's engines.\n foreach (['file', 'php', 'blade'] as $engine) {\n $this->{'register'. ucfirst($engine) .'Engine'}($resolver);\n }\n\n return $resolver;\n });\n }", "public function index()\n {\n $dBEngine=DBEngine::all();\n return view('engines.index',['dBEngines' => $dBEngine]);\n }", "public function engines() {\n\t\tif (!isset($this->_Cleaner)) {\n\t\t\tApp::uses('ClearCacheLib', 'Setup.Lib');\n\t\t\t$this->_Cleaner = new ClearCacheLib();\n\t\t}\n\t\t$output = call_user_func_array(array(&$this->_Cleaner, 'engines'), $this->args);\n\n\t\tforeach ($output as $key => $result) {\n\t\t\t$this->out($key . ': ' . ($result ? 'cleared' : 'error'));\n\t\t}\n\t}", "public function getAllViews()\n {\n if (!$this->_area || empty($this->_areViewsCollectedInArea[$this->_area])) {\n $this->collectAllViewsFiles($this->_area);\n }\n return $this->_views;\n }", "public function getAllViews()\n {\n return $this->connection->select(\n $this->grammar->compileGetAllViews((array) $this->connection->getConfig('schema'))\n );\n }", "public function getViews()\n {\n\treturn $this->query('select [name] from [views]');\n }", "public static function getAll() {\n return self::$instances;\n }", "public static function get_engines($conn) \n {\n Ossim_db::check_connection($conn);\n \n $engines = array();\n \n $query = \"SELECT HEX(id) AS id FROM acl_entities WHERE entity_type = 'engine'\"; \n \n $rs = $conn->Execute($query); \n \n if (!$rs) \n {\n Av_exception::write_log(Av_exception::DB_ERROR, $conn->ErrorMsg());\n }\n else\n {\n while (!$rs->EOF) \n {\n $engines[$rs->fields['id']] = TRUE;\n $rs->MoveNext();\n }\n } \n \n return $engines;\n }", "protected function registerEngineResolver() {\n $serviceProvider = $this;\n\n $this->app->singleton( 'view.engine.resolver',\n function () use ( $serviceProvider ) {\n $resolver = new EngineResolver();\n\n // Register the engines.\n foreach ( [ 'twig' ] as $engine ) {\n $serviceProvider->{'register' . ucfirst( $engine ) . 'Engine'}( $engine, $resolver );\n }\n\n return $resolver;\n } );\n }", "public function getViews()\n {\n global $adminer;\n\n $main_actions = [\n 'add-view' => \\adminer\\lang('Create view'),\n ];\n\n $headers = [\n \\adminer\\lang('View'),\n \\adminer\\lang('Engine'),\n // \\adminer\\lang('Data Length'),\n // \\adminer\\lang('Index Length'),\n // \\adminer\\lang('Data Free'),\n // \\adminer\\lang('Auto Increment'),\n // \\adminer\\lang('Rows'),\n \\adminer\\lang('Comment'),\n ];\n\n // From db.inc.php\n // $table_status = \\adminer\\table_status('', true); // Tables details\n $table_status = \\adminer\\table_status(); // Tables details\n\n $details = [];\n foreach($table_status as $table => $status)\n {\n if(\\adminer\\is_view($status))\n {\n $details[] = [\n 'name' => $adminer->tableName($status),\n 'engine' => \\array_key_exists('Engine', $status) ? $status['Engine'] : '',\n 'comment' => \\array_key_exists('Comment', $status) ? $status['Comment'] : '',\n ];\n }\n }\n\n return \\compact('main_actions', 'headers', 'details');\n }", "public function getSupportedEngines()\n {\n return array_keys($this->engine_supported);\n }", "public function index()\n {\n $engineers = Engineer::all();\n return view('Admin.engineersIndex', ['engineers' => $engineers]);\n\n }", "public function getEngine();", "public function getEngine();", "public function getEngine();", "public function all() {\n return $this->provider->getRoutesByNames(NULL);\n }", "public function getChildViewModels() {\n\t\treturn $this->getLayoutSchemeService()->getChildViewModels();\n\t}", "public function getPageViews()\n {\n return $this->get('PageViews');\n }", "public function getViews()\n {\n return $this->views;\n }", "public function getModels()\n\t{\n\t\t$scope = $this->scopeName;\n\t\treturn CActiveRecord::model($this->baseModel)->$scope()->findAll();\n\t}", "public function getViewTransformers(): array;", "public function getAvailableSearchEngineList(): array\n {\n return [\n 'elasticsearch5' => 'Elasticsearch 5.x (deprecated)',\n 'elasticsearch7' => 'Elasticsearch 7.x',\n 'elasticsearch8' => 'Elasticsearch 8.x',\n 'opensearch' => 'OpenSearch'\n ];\n }", "public function getEnvironments(): array\n {\n return $this->environments;\n }", "public function episodes()\n {\n return app(\n Contracts\\Episodes::class\n );\n }", "public function get_views()\n\t{\n\t\treturn $this->driver_query('view_list');\n\t}", "public function all()\n {\n return $this->machine->all();\n }", "public function getEngine ()\n {\n return $this->engine;\n }", "public function all() : array\n {\n return $this->container();\n }", "public function listEnvironments()\n {\n\t\t$data = $this->call(array(), \"GET\", \"environments.json\");\n\t\treturn $data;\n\t\t\n\t\t$data = $this->call(array(), \"GET\", \"environments.json\");\n\t\t$data = $data->{'environments'};\n\t\t$environmentArray = new ArrayObject();\n\t\tfor($i = 0; $i<count($data);$i++){\n\t\t\t$environmentArray->append(new Environment($data[$i], $this));\n\t\t}\n\t\treturn $environmentArray;\n }", "public function getModels()\n {\n return $this->_models;\n }", "public function getRendererInstances() {}", "public function getEngine()\n {\n return $this->engine;\n }", "public function getEngine()\n {\n return $this->engine;\n }", "public function getEngine()\n {\n return $this->engine;\n }", "public function getEngine()\n {\n return $this->engine;\n }", "function getViews() {\n return mysql_query(sprintf('SELECT TABLE_NAME, VIEW_DEFINITION FROM information_schema.views WHERE TABLE_SCHEMA=\\'%s\\'', $this->config[\"database\"]));\n }", "public function getEngine()\n {\n return $this;\n }", "protected function movieViews()\n {\n return app(MovieViews::class);\n }", "public function getEngine() {\n return $this->engine;\n }", "public function getEngine() {\n return $this->engine;\n }", "public function getEngine() {\n\t\treturn $this->engine;\n\t}", "public function getEngine()\n\t{\n\t\treturn $this->engine;\n\t}", "public static function registerEngines($view, $di)\n {\n $config = \\Phalcon\\DI::getDefault()->getShared('config');\n\n $volt = new \\Phalcon\\Mvc\\View\\Engine\\Volt($view, $di);\n $volt->setOptions(array(\n // Don't check on 'production' for differences between the template file and its compiled path\n // Compile always on 'development', on 'testing'/'staging' only checks for changes in the children templates\n 'stat' => $config->app->env == 'production' ? false : true,\n 'compileAlways' => $config->app->env == 'development' ? true : false,\n 'compiledPath' => function($templatePath) {\n list($junk, $path) = explode(ROOT_PATH, $templatePath);\n $dir = dirname($path);\n $file = basename($path, '.volt');\n\n if (!is_dir(ROOT_PATH . '/app/common/cache/volt' . $dir)) {\n $old = umask(0);\n mkdir(ROOT_PATH . '/app/common/cache/volt' . $dir, 0777, true);\n umask($old);\n }\n return ROOT_PATH . '/app/common/cache/volt' . $dir . '/' . $file . '.phtml';\n }\n ));\n\n $compiler = $volt->getCompiler();\n $compiler->addExtension(new \\Baseapp\\Extension\\VoltStaticFunctions());\n $compiler->addExtension(new \\Baseapp\\Extension\\VoltPHPFunctions());\n\n return array(\n // Try to load .phtml file from ViewsDir first,\n \".phtml\" => \"Phalcon\\Mvc\\View\\Engine\\Php\",\n \".volt\" => $volt,\n \".md\" => 'Baseapp\\Extension\\Markdown',\n );\n }", "protected function getEngineOptions()\n {\n return ProjectX::getContainer()\n ->get('projectXEngineResolver')\n ->getOptions();\n }", "public function getViews()\n {\n if (! isset($this->views)) {\n $this->views = (($nodeList = $this->getDomXPath($this->getDomDocument())->query($this->getViewsQuery())) && $nodeList->length)\n ? $nodeList->item(0)->value\n : null;\n }\n return $this->views;\n }", "public function get_all()\n {\n $plugins = $this->get_plugins();\n\n $pluginControllers = array();\n\n foreach($plugins as $plugin){\n foreach($plugin as $controller => $actions){\n $pluginControllers[$controller] = $plugin[$controller];\n }\n }\n\n return array_merge($this->get(), $pluginControllers);\n }", "public static function getAll(){\n\t\treturn self::$components;\n\t}", "public function providers()\n {\n return view('tariffs.providers');\n }", "public function all()\n {\n $rules = $this->ruleServiceInterface->all();\n return view('ruleView::index', ['rules' => $rules]);\n }", "public function getProviders();", "public function getProviders();", "public function getEnvironments();", "public function getPageViews()\n {\n return $this->pageViewNodes;\n }", "public function views()\n {\n return $this->hasMany(View::class);\n }", "public function getManagers()\n {\n // TODO: Implement getManagers() method.\n }", "public function getAdmins()\n {\n $admins = Admin::all();\n return view('view_admins', compact('admins'));\n }", "public function findAll()\n {\n $forms = R::getAll('SELECT `volunteerteachers`.*, `branch`.`name` AS `eidikothta_name` '\n . 'FROM `volunteerteachers` JOIN `branch` ON (`volunteerteachers`.`eidikothta` = `branch`.`id`) '\n . 'ORDER BY `id` DESC');\n $beanForms = R::convertToBeans('volunteerteachers', $forms);\n\n return array_map(function ($form) {\n return $this->exportApplicationForm($form);\n }, $beanForms);\n }", "public function getAll()\n {\n $this->authorizeUserAction('viewAll');\n\n $model = new static::$model;\n\n // If we are caching the endpont, do a simple get all resources\n if (static::$cacheAll) {\n return $this->response->collection(Cache::remember(static::getCacheKey(), static::$cacheExpiresIn, function () use ($model) {\n return $model::with($model::getCollectionWith())->get();\n }), $this->getTransformer());\n }\n\n $query = $model::with($model::getCollectionWith());\n $this->qualifyCollectionQuery($query);\n\n // Handle pagination, if applicable\n $perPage = $model->getPerPage();\n if ($perPage) {\n // If specified, use per_page of the request\n if (request()->has('per_page')) {\n $perPage = intval(request()->input('per_page'));\n }\n\n $paginator = $query->paginate($perPage);\n\n return $this->response->paginator($paginator, $this->getTransformer());\n } else {\n $resources = $query->get();\n\n return $this->response->collection($resources, $this->getTransformer());\n }\n }", "protected function getTyposcriptViewPaths(): array\n {\n // default views settings because TSFE is null when creating a new dce\n $viewsPaths = [\n 'layoutRootPaths' => [0 => 'EXT:dce/Resources/Private/Layouts/'],\n 'templateRootPaths' => [0 => 'EXT:dce/Resources/Private/Templates/'],\n 'partialRootPaths' => [0 => 'EXT:dce/Resources/Private/Partials/'],\n ];\n\n $pageUid = (isset($GLOBALS['TSFE'])) ? $GLOBALS['TSFE']->id : 1;\n $typoScriptSettings = $this->typoScriptUtility->getTyposcriptSettingsByPageUid($pageUid);\n if (isset($typoScriptSettings['view'])) {\n $viewsPaths = $typoScriptSettings['view'];\n }\n\n return $viewsPaths;\n }", "public function getHostels()\n {\n return $this->hasMany('App\\Hostel', 'owner_id', 'id');\n }", "public function all()\n {\n $admins = User::all();\n return view('admin.index')->with('admins', $admins);\n }", "public function getAll()\r\n {\r\n $query = \"EXEC\t [dbo].[srv_GetAllEnvironments_returnhtml]\";\r\n $table = $this->db->getParams($query);\r\n if (!empty($table)) {\r\n return $table;\r\n }\r\n return;\r\n }", "private function getAllModels()\n {\n return (object)ModelRegistry::getAllObjects();\n }", "public function views()\n {\n $lastYear = Carbon::now()\n ->addMonth()\n ->startOfMonth()\n ->subYear();\n\n return $this->hasMany(EpisodeView::class)\n ->where('created_at', '>=', $lastYear);\n }", "public function findAll()\n {\n return $this->newService(ServiceKeys::APPLICATION)->findAll();\n }", "public function index() {\n $templates = Template::all();\n return $templates;\n }", "public function index()\n {\n return view('equipmentType.index', ['equipmentTypes' => EquipmentType::orderBy('name')->where('parent_id', null)->where('folder', 1)->get()]);\n }", "public function getProviders()\n {\n return $this->providers;\n }", "public function getProviders()\n {\n return $this->providers;\n }", "public function index()\n {\n $enities = PageEntity::with('collections')->get();\n\n return $enities;\n }", "public function getLoaders()\n {\n return $this->loaders;\n }", "public function getLoaders()\n {\n return $this->loaders;\n }", "public function index()\n {\n return Transport::all();\n }", "public static function getLoadedProviders(){\n return \\Illuminate\\Foundation\\Application::getLoadedProviders();\n }", "public function getLeagueNodes()\n {\n return $this->getOrCreateLeagueBag();\n }", "protected function get_views()\n {\n }", "protected function get_views()\n {\n }", "protected function get_views()\n {\n }", "protected function get_views()\n {\n }", "public function all()\n {\n return Guests::all();\n }", "public function getInstances()\n {\n return $this->instances;\n }", "public function all()\n {\n $collection = Term::paginate();\n\n if ($collection) {\n return $collection;\n }\n\n throw new Exception('Something went wrong!', 500);\n }", "function getContextSets()\n {\n return $this->_contextSets;\n }", "public function all()\n {\n return Page::all();\n }", "public function getEngine()\n {\n if (Mage::helper('conversionpro')->isActiveEngine()) {\n\t\t\treturn Mage::helper('conversionpro')->getSearchEngine();\n\t\t}\n\t\t\n\t\treturn parent::getEngine();\n }", "public function getViewManager()\n {\n return $this->viewManager;\n }", "public function getEngine(): Engine\r\n {\r\n return $this->template;\r\n }", "public function getEngine(): Engine;", "public function all(): array\n {\n return $this->routes;\n }" ]
[ "0.7508563", "0.73454934", "0.6907823", "0.6284754", "0.6086435", "0.58868074", "0.5872946", "0.5769668", "0.5752994", "0.5731767", "0.56509334", "0.56405795", "0.56241715", "0.5608693", "0.55819875", "0.55762213", "0.5572853", "0.5514655", "0.5451644", "0.54282033", "0.54045385", "0.53854316", "0.53790396", "0.53645915", "0.53645915", "0.53645915", "0.5340637", "0.5203402", "0.5186207", "0.5184084", "0.51696426", "0.51570714", "0.51502144", "0.5145161", "0.513585", "0.5125055", "0.512409", "0.5120214", "0.5098109", "0.5087951", "0.5086906", "0.508281", "0.5080969", "0.5080969", "0.5080969", "0.5080969", "0.5074029", "0.5070196", "0.50539476", "0.50517315", "0.50517315", "0.5045257", "0.50442165", "0.5034717", "0.5032109", "0.5031385", "0.50207806", "0.5006958", "0.49805826", "0.49654418", "0.49628475", "0.49628475", "0.49575612", "0.49564996", "0.49493113", "0.49352673", "0.4932467", "0.49270356", "0.49214217", "0.49169397", "0.48989514", "0.48982832", "0.4887741", "0.48718074", "0.48667973", "0.48605436", "0.48499128", "0.4846996", "0.48369575", "0.48369575", "0.48225844", "0.48223054", "0.48223054", "0.48181263", "0.48164248", "0.48139152", "0.48088247", "0.48088247", "0.48088247", "0.48088247", "0.4807143", "0.48069072", "0.47999394", "0.47987577", "0.4795762", "0.47926748", "0.4792529", "0.4791447", "0.4786724", "0.47855726" ]
0.68904626
3
Compile one of multiple cache versions for a given view path.
public function compile(string $path): void { if ($this->cache !== null) { $this->cache->resetPath($path); } $engine = $this->findEngine($path); // Rotate all possible context variants and warm up cache $generator = new ContextGenerator($this->context); foreach ($generator->generate() as $context) { $engine->reset($path, $context); $engine->compile($path, $context); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function staticVersion($path)\n {\n if ((!array_key_exists($path, self::$_cacheFiles))) {\n return self::$_prePath . $path;\n } else {\n return self::$_prePath . self::$_cacheFiles[$path];\n }\n }", "public static function buildCompilerCache()\n {\n return \\Kohana::$environment === \\Kohana::DEVELOPMENT ? new ArrayCache : new ApcuCache;\n }", "public function setVersion($path, $version, View $view) {\n\t\t$fileInfo= $view->getFileInfo($path);\n\n\t\tif($fileInfo !== false) {\n\t\t\t$cache = $fileInfo->getStorage()->getCache();\n\t\t\t$cache->update($fileInfo->getId(), ['encrypted' => $version, 'encryptedVersion' => $version]);\n\t\t}\n\t}", "private static function runCompile(string $path, $namespace)\n {\n // path was returned ?\n if (!is_null($path))\n {\n $filename = basename($path);\n\n $cachename = md5($path) . '.php';\n\n if (file_exists($path))\n {\n // yes we read its content.\n $content = file_get_contents($path);\n\n $default = $content;\n\n $continue = true;\n $json = read_json(__DIR__ . '/hyphe.paths.json', true);\n \n if (file_exists(self::$cacheDir . $cachename))\n {\n $_content = file_get_contents(self::$cacheDir . $cachename);\n\n $start = strstr($_content, 'public static function ___cacheData()');\n\n preg_match('/(return)\\s{1,}[\"](.*?)[\"]/', $start, $return);\n\n if (count($return) > 0)\n {\n $cached = $return[2];\n\n if ($cached == md5($default))\n {\n $continue = false;\n }\n }\n\n // clean up\n $_content = null;\n $return = null;\n }\n \n if ($continue)\n {\n $content = '<!doctype html><html><body>'.$content.'</body></html>';\n \n // read dom\n $html = new HTML5();\n $dom = $html->loadHTML($content);\n\n $replaces = [];\n $engine = new Engine();\n\n $cachesize = md5($default);\n\n foreach ($dom->getElementsByTagName('hy') as $hy)\n {\n if ($hy->hasAttribute('directive'))\n {\n $class = $hy->getAttribute('directive');\n // inner content\n $body = self::innerHTML($hy);\n\n $classMap = [];\n $classMap[] = '<?php';\n if ($namespace != '')\n {\n $classMap[] = 'namespace '.$namespace.';';\n }\n else\n {\n $namespace = rtrim($path, $filename);\n $namespace = preg_replace('/^(\\.\\/)/','',$namespace);\n $namespace = rtrim($namespace, '/');\n $namespace = str_ireplace('/static/', '/', $namespace);\n $namespace = str_replace(HOME, '', $namespace);\n $namespace = preg_replace('/[\\/]{2,}/', '/', $namespace);\n $namespace = str_replace('/', '\\\\', $namespace);\n $classMap[] = 'namespace '.$namespace.';';\n }\n \n $classMap[] = 'class '.ucfirst($class). ' extends \\Hyphe\\Engine {';\n $classMap[] = html_entity_decode($body);\n $classMap[] = 'public static function ___cacheData()';\n $classMap[] = '{';\n $classMap[] = ' return \"'.$cachesize.'\";';\n $classMap[] = '}';\n $classMap[] = '}';\n\n $replaces[] = [\n 'replace' => $dom->saveHTML($hy),\n 'with' => implode(\"\\n\\t\", $classMap)\n ];\n }\n else\n {\n $out = $dom->saveHTML($hy);\n $inner = self::innerHTML($hy);\n\n if ($hy->hasAttribute('func'))\n {\n $funcName = $hy->getAttribute('func');\n $access = $hy->hasAttribute('access') ? $hy->getAttribute('access') : 'public';\n $args = $hy->hasAttribute('args') ? $hy->getAttribute('args') : '';\n\n $func = [];\n $func[] = $access .' function '. $funcName . '('.$args.')';\n $func[] = '{';\n $func[] = html_entity_decode($inner);\n $func[] = '}'; \n\n $replaces[] = [\n 'replace' => html_entity_decode($out),\n 'with' => implode(\"\\n\\t\", $func)\n ];\n }\n else\n {\n if ($hy->hasAttribute('lang'))\n {\n $lang = $hy->getAttribute('lang');\n\n switch (strtolower($lang))\n {\n case 'html':\n\n // interpolate props and this\n $inner = preg_replace('/(props)[.]([a-zA-Z_]+)/', '$this->props->$2', $inner);\n $inner = preg_replace('/(this)[.]([a-zA-Z_]+)/', '$this->$2', $inner);\n\n $inner = html_entity_decode($inner);\n\n $engine->interpolateExternal($inner, $data);\n $return = [];\n $return[] = '$assets = $this->loadAssets();';\n $return[] = '?>';\n $return[] = $data;\n $return[] = '<?php';\n\n // add replace\n $replaces[] = [\n 'replace' => html_entity_decode($out),\n 'with' => implode(\"\\n\\t\", $return)\n ];\n break;\n }\n } \n }\n }\n }\n\n if (isset($replaces[0]))\n {\n $default = $replaces[0]['replace'];\n\n $count = count($replaces);\n\n $default = preg_replace('/(\\S+)(=\\s*)[\\'](.*?)[\\']/', '$1$2\"$3\"', $default);\n\n $default = self::removeClosingTags($default);\n\n for ($x = 0; $x != $count; $x++)\n {\n $replace = self::removeClosingTags($replaces[$x]['replace']);\n $with = self::removeClosingTags($replaces[$x]['with']);\n\n if ($x == 0)\n {\n $default = $with;\n }\n\n $default = str_replace($replace, $with, $default);\n }\n\n // interpolate props and this\n $default = preg_replace('/(props)[.]([a-zA-Z_]+)/', '$this->props->$2', $default);\n $default = preg_replace('/(this)[.]([a-zA-Z_]+)/', '$this->$2', $default);\n\n\n if (!is_dir(self::$cacheDir))\n {\n mkdir(self::$cacheDir);\n }\n\n // save cache file and return path\n file_put_contents(self::$cacheDir . $cachename, $default);\n\n // push to json\n $json[$cachename] = $namespace;\n save_json(__DIR__ . '/hyphe.paths.json', $json);\n }\n }\n }\n \n return self::$cacheDir . $cachename;\n }\n\n return null;\n }", "private function parseToCache($viewFile,$cacheFile) {\n\t\t$content = $this->parse(file_get_contents($viewFile));\t\t\n\t\tfile_put_contents($cacheFile,$content);\n\t}", "public function getVersion($path, View $view) {\n\t\t$fileInfo = $view->getFileInfo($path);\n\t\tif($fileInfo === false) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn $fileInfo->getEncryptedVersion();\n\t}", "public function renderCache($viewName, $parameters=NULL) {\n assert('strlen($viewName) > 0; // view name cannot be empty');\n\n $this->viewName = $viewName;\n // build file id from (folder(s) and) file name\n $this->fileId = $this->getFileId($viewName, $parameters);\n\n // check if dir writable\n $this->isDirWritable(self::CACHE_DIR);\n\n // everything went OK, 'build' cache filename path\n $cacheFile = BASEPATH . self::CACHE_DIR . $this->fileId . self::CACHE_EXT;\n\n // serve the cached file if it exists and is not too old\n\t\tif (file_exists($cacheFile) && !$this->isCacheOld($cacheFile)) {\n readfile($cacheFile);\n die();\n }\n }", "function generate_set_dynamic_css_cache() {\n\tif ( apply_filters( 'generate_dynamic_css_skip_cache', false ) ) {\n\t\treturn;\n\t}\n\n\t$cached_css = get_option( 'generate_dynamic_css_output', false );\n\t$cached_version = get_option( 'generate_dynamic_css_cached_version', '' );\n\n\tif ( ! $cached_css || $cached_version !== GENERATE_VERSION ) {\n\t\t$css = generate_base_css() . generate_font_css() . generate_advanced_css() . generate_spacing_css();\n\n\t\tupdate_option( 'generate_dynamic_css_output', $css );\n\t\tupdate_option( 'generate_dynamic_css_cached_version', GENERATE_VERSION );\n\t}\n}", "function cache();", "public function cache() {\n\t\tif (count($this->args) === 1) {\n\t\t\tif ($this->args[0] === 'webroot') {\n\t\t\t\t$this->args = array('css', 'js');\n\t\t\t} elseif ($this->args[0] === 'app') {\n\t\t\t\t$this->args = array_values($this->caches);\n\t\t\t}\n\t\t}\n\t\tforeach ($this->args as $key => $val) {\n\t\t\tif (array_key_exists($val, $this->caches)) {\n\t\t\t\t$this->args[$key] = $this->caches[$val];\n\t\t\t}\n\t\t}\n\n\t\t$this->out('Deleting cache files:');\n\n\t\tif (empty($this->args)) {\n\t\t\t$this->_empty(CACHE);\n\t\t\t$this->out('Complete cache dir emptied');\n\t\t\treturn;\n\t\t}\n\t\tforeach ($this->args as $arg) {\n\t\t\tif (in_array($arg, array('css', 'js'))) {\n\t\t\t\t$this->{$arg}();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (!is_dir(CACHE . $arg)) {\n\t\t\t\t$this->err('No cache dir \\'' . $arg . '\\'');\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$this->_empty(CACHE . $arg);\n\t\t\t$this->out('Cache \\'' . $arg . '\\' deleted');\n\t\t}\n\n\t\tif (empty($this->args)) {\n\t\t\t$this->engines();\n\t\t}\n\t}", "public function compile($path)\n {\n $contents = $this->compileString($this->files->get($path));\n\n if (!is_null($this->cachePath)) {\n $this->files->put(\n $this->getCompiledPath($path),\n $this->compress ? $this->html_compress($contents) : $contents\n );\n }\n }", "public function compile($path)\n {\n $file = $this->files->get($path);\n $contents = Template::compile($file);\n\n if (!is_null($this->cachePath))\n {\n $compiledPath = $this->getCompiledPath($path);\n\n $this->files->put($compiledPath, $contents);\n }\n }", "private function getCache($path='.'){\n $cache = array();\n $dir = new RecursiveDirectoryIterator($path);\n /* @var $file FilesystemIterator */\n $iterator = new RecursiveIteratorIterator($dir);\n foreach($iterator as $file) {\n $pathname = $file->getPathname();\n if($this->isExcluded($pathname)) continue;\n if ($file->isFile()){\n $this->hashes.=md5_file($file);\n $cache[] = $pathname;\n }\n }\n return implode(\"\\n\", $cache);\n }", "private function getCache() {\n // cache for single run\n // so that getLastModified and getContent in single request do not add additional cache roundtrips (i.e memcache)\n if (isset($this->parsed)) {\n return $this->parsed;\n }\n\n // check from cache first\n $cache = null;\n $cacheId = $this->getCacheId();\n if ($this->cache->isValid($cacheId, 0)) {\n if ($cache = $this->cache->fetch($cacheId)) {\n $cache = unserialize($cache);\n }\n }\n\n $less = $this->getCompiler();\n $input = $cache ? $cache : $this->filepath;\n $cache = $less->cachedCompile($input);\n\n if (!is_array($input) || $cache['updated'] > $input['updated']) {\n $this->cache->store($cacheId, serialize($cache));\n }\n\n return $this->parsed = $cache;\n }", "public function compile() {\n\t\t\n\t\t$path = $this -> _front ->getApp() ->getConfig() ->controller ->module ->path;\n\t\t$path .= $this -> _front ->getApp() ->getConfig() ->subdomain ? $this -> _front ->getApp() ->getConfig() ->subdomain . DIRECTORY_SEPARATOR : '';\n\t\t$path .= \\FMW\\Utilities\\File\\Util::rslash( $this -> _front ->getRouter() ->getModule() ) . 'cache';\n\t\t\n\t\t$fcache = new FileCache(array(\n\t\t\t\t'path' \t=> $path,\n\t\t\t\t'ext' \t=> 'js'\n\t\t\t)\n\t\t);\n\t\t\n\t\tif ( $fcache->contains( $this -> _front ->getRouter() ->getController() ) === false ) {\n\t\t\t\n\t\t\t$js = '';\n\t\t\t\n\t\t\tforeach ($this->_javascriptCache as $value) {\n\t\t\t\t$js .= file_get_contents( $value );\n\t\t\t}\n\t\t\t\n\t\t\t$js = \\FMW\\Utilities\\Minify\\JSMin::minify($js);\n\t\t\t$fcache->save( $this -> _front ->getRouter() ->getController(), $js, $this->_cachetime );\n\t\t\t\n\t\t}\n\n\t\t$fcache = new FileCache(array(\n\t\t\t\t'path' \t=> $path,\n\t\t\t\t'ext' \t=> 'css'\n\t\t\t)\n\t\t);\n\t\t\n\t\tunset($js);\n\t\t\n\t\tif ( $fcache->contains( $this -> _front ->getRouter() ->getController() ) === false ) {\n\t\t\t\n\t\t\t$css = \\FMW\\Utilities\\Minify\\CSSMin::minify( $this->_cssCache, $this->_front->getApp()->getConfig() );\n\t\t\t\n\t\t\t$fcache->save( $this -> _front ->getRouter() ->getController(), $css, $this->_cachetime );\n\t\t\t\t\n\t\t}\n\t\t\n\t\tunset($css);\n\t}", "public function getCompiledPath($path)\n {\n $viewPath = app('config')->get('view.paths')[0];\n\n $sub = str_replace($viewPath, '', $path);\n\n $sub = str_replace(base_path(), '', $sub);\n\n $dotted = str_replace(['/', '\\\\'], '.', $sub);\n\n return $this->cachePath . '/' . trim($dotted, '.');\n }", "public function compile($path = null)\n {\n if ($path) {\n $this->setPath($path);\n }\n\n $contents = $this->compileString($this->files->get($this->getPath()));\n\n if (!is_null($this->cachePath)) {\n $this->files->put($this->getCompiledPath($this->getPath()), $contents);\n }\n }", "function set_cache($cache_file = '')\n {\n $data = array();\n switch ($cache_file) {\n case 'configurations':\n $data = modules::run('configurations/get_configuration', array('array' => TRUE)); \n break;\n case 'configurations_vi':\n $data = modules::run('configurations/get_configuration', array('array' => TRUE, 'lang' => 'vi')); \n break;\n case 'configurations_en':\n $data = modules::run('configurations/get_configuration', array('array' => TRUE, 'lang' => 'en')); \n break;\n case 'pages':\n $data = modules::run('pages/get_page_data', array('array' => TRUE)); \n break;\n case 'menus':\n $data = modules::run('menus/get_menu_data', array('array' => TRUE)); \n break;\n default:\n break;\n }\n return $data;\n }", "function cache_actions_action_clear_views_cache($view) {\n views_include_handlers();\n require_once('./' . drupal_get_path('module', 'views') . \"/plugins/views_plugin_cache.inc\");\n $view = views_get_view($view);\n\n // We use the cache plugin to clear the cache, since that's probably the best idea.\n $cache_plugin = new views_plugin_cache();\n \n // The cache plugin does not care which display we are using when it clears the cache,\n // it will clear all caches related to this view anyway, so we can safely use any display.\n $cache_plugin->init($view, $view->display[0]);\n $cache_plugin->cache_flush();\n}", "function loadFromCache (CachingFileCompiler $cache, $sourceFile);", "public function registerAssetFiles($view)\n {\n $this->css = [$this->url . $this->version . '/styles/' . $this->style];\n $this->js = [$this->url . $this->version . '/highlight.min.js'];\n \n parent::registerAssetFiles($view);\n }", "function fetch($path) {\n\t\textract($this->_viewVars);\n\t\tif (!file_exists($path)) {\n\t\t\t$this->_fetchError($path);\n\t\t}\n\t\t$viewFile=file_get_contents($path);\n\t\t$this->processTags($viewFile);\n\t\tob_start();\n\t\teval(\"?>$viewFile<?\");\n\t\t$view=ob_get_contents();\n\t\tob_end_clean();\n\t\treturn $view;\n\t}", "public function actionRebuildCache()\n {\n foreach (Yii::app()->Modules as $id => $params)\n $this->actionDb2php(array('module' => $id));\n\n }", "protected function update_cache(){\r\n\t\t$html = file_get_contents($this->_cfg->get('sfbaseurl'));\r\n\t\tif($html === false || !trim($html))\r\n\t\t\tthrow new Exception('Could not read SourceForge website');\r\n\t\t$mtch = null;\r\n\t\tif(!preg_match('/lazarus-(\\\\d+.\\\\d+.\\\\d+)-fpc-(\\\\d+.\\\\d+.\\\\d+)-/', $html, $mtch))\r\n\t\t\tthrow new Exception('Could not parse version from SourceForge');\r\n\t\t$data = array(\r\n\t\t\t'laz' => $mtch[1],\r\n\t\t\t'fpc' => $mtch[2],\r\n\t\t);\r\n\t\t$data = '<'.'?php return '.var_export($data, true).'; ?>';\r\n\t\tfile_put_contents($this->get_cache(), $data);\r\n\t}", "public function templateCacheStart(Opt_View $view)\n\t{\n\t\treturn $this->_cache->start(preg_replace('/[^a-zA-Z0-9]/', '_', $view->getTemplate()));\n\t}", "function fetchView($view_path) {\r\n return Angie::getTemplateEngine()->fetchView($view_path);\r\n }", "public function plxMinifyCacheList(){\n\t\tfunction real($i,$a){$a=explode(' ',$a);return $a[$i];}# found url & more in last comment in cached source\n\t\t$cache_size = 0;\n\t\t$filesCache = array();\n\t\tif (extension_loaded('glob')){\n\t\t\t$cached = glob(PLX_CACHE.\"*.php\");\n\t\t\tforeach ($cached as $file){\n\t\t\t\t$cache_size += filesize(PLX_CACHE.$file);\n\t\t\t\t$filesCache [$this->get_time($file)] = array((basename($file)), $this->get_info($file), $this->get_info($file,'url'));\n\t\t\t}\n\t\t\tunset($cached);\n\t\t}\n\t\telse{\n\t\t\tif($cached = opendir(PLX_CACHE)){\n\t\t\t\twhile(($file = readdir($cached))!== false){\n\t\t\t\t\tif( $file == '.' || $file == '..' )\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tif(strtolower(strrchr($file,'.')==\".php\")){\n\t\t\t\t\t\t$cache_size += filesize(PLX_CACHE.$file);\n\t\t\t\t\t\t$filesCache [$this->get_time($file)] = array((basename($file)), $this->get_info($file), $this->get_info($file,'url'));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tclosedir($cached);\n\t\t\t}\n\t\t}\n\t\tkrsort($filesCache);\n\t\t$expire = ($this->getParam(\"freeze\")?0:time() - $this->getParam(\"delay\"));\n\t\techo '<img id=\"mc_mode\" class=\"icon_pmc\" src=\"'.PLX_PLUGINS.'plxMinifyCache/img/'.($this->getParam(\"freeze\")?'':'un').'lock.png\" title=\"Mode : '.($this->getParam(\"freeze\")?'Frozen':'Normal').'\" alt=\"Freeze Mode\" />&nbsp;';\n\t\techo $this->getLang('L_CACHE_LIST').' ('.count($filesCache).') : '.date('Y-m-d H:i:s').' - '.$this->getLang('L_TOT').' : '.$this->size_readable($cache_size, $decimals = 2).'<hr /><pre id=\"CacheList\" class=\"brush_bash\">';\n\t\tforeach($filesCache as $ts => $name)#findicons.com free\n\t\t\techo '<a class=\"hide\" title=\"'.L_DELETE.' '.$name[0].'\" href=\"javascript:clean(\\''.$name[0].'\\');\"><img class=\"icon_pmc del_file\" src=\"'.PLX_PLUGINS.'plxMinifyCache/img/del.png\" title=\"'.L_DELETE.'\" alt=\"del\" /></a><b style=\"color:'.($ts < $expire?'red\" title=\"expired\">':'green\">').' <a title=\"'.$name[0].PHP_EOL.$name[2].'\" target=\"_blank\" style=\"color:unset;\" href=\"'.PLX_ROOT.'cache/'.$name[0].'\">'.date('Y-m-d H:i:s',$ts).'<i class=\"mc-sml-hide\"> : '.$name[0].'</i></a></b> : <a title=\"'.real(2,$name[2]).PHP_EOL.real(1,$name[2]).'\" target=\"_blank\" href=\"'.PLX_ROOT.real(1,$name[2]).'\">'.$name[1].'</a><br />';\n\t\techo '<br /></pre>';\n\t}", "protected function initCache()\n {\n $this->di->set('viewCache', function () {\n /** @var DiInterface $this */\n $config = $this->getShared('config');\n\n $frontend = new FrontOutput(['lifetime' => $config->get('viewCache')->lifetime]);\n\n $config = $config->get('viewCache')->toArray();\n $backend = '\\Phalcon\\Cache\\Backend\\\\' . $config['backend'];\n unset($config['backend'], $config['lifetime']);\n\n return new $backend($frontend, $config);\n });\n\n $this->di->setShared('modelsCache', function () {\n /** @var DiInterface $this */\n $config = $this->getShared('config');\n\n $frontend = '\\Phalcon\\Cache\\Frontend\\\\' . $config->get('modelsCache')->frontend;\n $frontend = new $frontend(['lifetime' => $config->get('modelsCache')->lifetime]);\n\n $config = $config->get('modelsCache')->toArray();\n $backend = '\\Phalcon\\Cache\\Backend\\\\' . $config['backend'];\n unset($config['backend'], $config['lifetime'], $config['frontend']);\n\n return new $backend($frontend, $config);\n });\n\n $this->di->setShared('dataCache', function () {\n /** @var DiInterface $this */\n $config = $this->getShared('config');\n\n $frontend = '\\Phalcon\\Cache\\Frontend\\\\' . $config->get('dataCache')->frontend;\n $frontend = new $frontend(['lifetime' => $config->get('dataCache')->lifetime]);\n\n $config = $config->get('dataCache')->toArray();\n $backend = '\\Phalcon\\Cache\\Backend\\\\' . $config['backend'];\n unset($config['backend'], $config['lifetime'], $config['frontend']);\n\n return new $backend($frontend, $config);\n });\n }", "protected function _getConfigCacheId($path)\n {\n return 'vendors/' . $path;\n }", "public function rebuildCache()\r\n {\r\n $themes = $this->scanJsonFiles();\r\n // file_put_contents($this->cachePath, json_encode($themes, JSON_PRETTY_PRINT));\r\n\r\n $stub = file_get_contents(__DIR__ . '/stubs/cache.stub');\r\n $contents = str_replace('[CACHE]', var_export($themes, true), $stub);\r\n file_put_contents($this->cachePath, $contents);\r\n }", "public function flexCache($values)\n\t{\n\t\treturn $this->getRequest('FlexCache', $values);\n\t}", "public function setCachePath($path)\n {\n $this->options['cache_path'] = $path ?? $this->options['cache_path'];\n return $this;\n }", "public static function getCompiledPath($path)\n {\n }", "function &createCache() {}", "function AssetCachebuster($path, $length = 0)\n {\n # Prepend a slash while the given path is not begin with it to ensure\n # that the path is located from the root of the project\n if (!preg_match('/^\\//', $path))\n {\n $path = '/' . $path;\n }\n\n if ($length > 0)\n {\n return $path . '?' . StrBase62($length);\n }\n else\n {\n return $path;\n }\n }", "public function get($cache_name);", "protected static function setViewListsVersionKey()\n {\n $steps = array(\n static::STEP_FIRST,\n static::STEP_SECOND,\n );\n\n if (!in_array(static::$step, $steps)\n && \\Includes\\Decorator\\Utils\\CacheManager::isCapsular()\n ) {\n \\XLite\\Model\\ViewList::setVersionKey(\\Includes\\Decorator\\Utils\\CacheManager::getKey());\n }\n }", "private function _cacheName() {\n $file = APPLICATION_PATH . '/application/settings/restapi_caching_url.php';\n if (file_exists($file)) {\n $enableCacheUrl = include $file;\n } else {\n return '';\n }\n $viewer = Engine_Api::_()->user()->getViewer();\n $front = Zend_Controller_Front::getInstance();\n $request = $front->getRequest();\n $params = array();\n $params['module'] = $request->getModuleName();\n $params['controller'] = $request->getControllerName();\n $params['action'] = $request->getActionName();\n $parameters = $request->getParams();\n $language = $parameters['language'];\n $cacheName = implode(\"_\", $params);\n $key_val = '';\n $cacheName = str_replace('-', '_', $cacheName);\n if (!isset($enableCacheUrl[$cacheName]) || empty($enableCacheUrl[$cacheName]))\n return;\n $getRequestUri = htmlspecialchars($_SERVER['REQUEST_URI']);\n $urlarray = explode(\"?\", $getRequestUri);\n $trimData = trim($urlarray[0], \"/\");\n $cachName = str_replace(\"/\", \"_\", $trimData);\n $viewerId = 0;\n $keys = array_keys($parameters);\n $matched = preg_grep('/_id|_type$/', $keys);\n $matched = array_flip($matched);\n $matched = array_intersect_key($parameters, $matched);\n $key_val = implode('_', $matched);\n\n if ($enableCacheUrl[$cacheName] == 'member_level') {\n $viewerId = $viewer && $viewer->getIdentity() ? $viewer->level_id : 0;\n } elseif ($enableCacheUrl[$cacheName] == 'user_level') {\n $viewerId = $viewer && $viewer->getIdentity() ? $viewer->getIdentity() : 0;\n }\n\n $cachName = $cachName . '_' . $language . '_' . $key_val . '_' . $viewerId;\n $cachName = str_replace('-', '_', $cachName);\n $cachName = str_replace('.', '_', $cachName);\n return $cachName;\n }", "public function mustacheRender($view, $searchPath, $rgs=null)\n\t{\n\t\t$config = array(\n\t\t\t'cache'=> Yii::app()->basePath.'/runtime/Mustache/cash',\n\n\t\t);\n\t\t\n\t\t$app = Yii::app();\n $baseUrl = $app->getBaseUrl(true);\n\t\t$rgs = array_merge($rgs, array( \n\t\t\t'baseUrl'=> $baseUrl,\n\t\t\t'staticUrl'=> $baseUrl,\n\t\t\t'vendorUrl'=> $baseUrl.'/assets/bower_components',\n\t\t\t'appName' => $app->name,\n\t\t\t'username'=>$app->user->name, \n\t\t\t'authenticated'=>User::is_logged_in(),\n\t\t\t'pageTitle'=>$this->pageTitle,\n\t\t\t'rights'=>Yii::t('app','rights',array(':d'=>'2013'/*date('Y')*/)),\n\t\t));\t\n\t\t\n\t\tif(isset($this->layoutTemplate))\n\t\t{\n\t\t\t$config['loader'] = new Mustache_Loader_CascadingLoader($this->templateLoaders('layouts'));\n\n\t\t\t$rgs['content']=$this->mustacheRenderPartial($view,$searchPath,$rgs);\n\t\t\t\n\t\t\t$view = $this->layoutTemplate;\n\t\t\t$rgs['topNavbar']=$this->mustacheRenderPartial('topNavbar', 'layouts',\n\t\t\t\tarray_merge($rgs, array(\n\t\t\t\t\t'labels'=>(new TopNavbarHelper)->attributeLabels(),\n\t\t\t\t\t'langs'=>array(\n\t\t\t\t\t\t'current'=>Yii::t('lang',$app->language),\n\t\t\t\t\t\t//put hier your own langs\n\t\t\t\t\t\t'en_us'=>Yii::t('lang','en_us'),\n\t\t\t\t\t\t'ru_ru'=>Yii::t('lang','ru_ru'),\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t));\n\t\t\t$rgs['userMenu']=$this->mustacheRenderPartial('userMenu', 'layouts',\n\t\t\t\tarray_merge($rgs, array('labels'=>(new UserMenuHelper)->attributeLabels())\n\t\t\t));\n\t\t\t$rgs['cartMenu']=$this->mustacheRenderPartial('cartMenu', 'layouts',\n\t\t\t\tarray_merge($rgs, array('model'=>$app->session['cart'],'labels'=>(new CartMenuHelper)->attributeLabels())\n\t\t\t));\n\t\t\t\n\t\t\tif($this->topSideMenu)\n\t\t\t\t$rgs['topsideMenu']=$this->mustacheRenderPartial('topsideMenu', $this->topSideMenu['templatePath'],\n\t\t\t\t\tarray_merge($rgs, $this->topSideMenu['args']));\n\t\t\t\t\n\t\t}else{\n\t\t\t$config['loader'] = new Mustache_Loader_FilesystemLoader($this->layoutTemplatePath().$searchPath);\t\n\t\t}\n\t\t$m = new Mustache_Engine($config);\n\t\techo $m->render($view,$rgs);\n\t}", "public static function compile($path = null){\n \\Illuminate\\View\\Compilers\\BladeCompiler::compile($path);\n }", "private function buildCache(): array\n {\n $dispatchData = $this->routeCollector->getData();\n\n file_put_contents($this->cacheFile, '<?php return ' . var_export($dispatchData, true) . ';');\n\n return $dispatchData;\n }", "public static function getCache() {}", "public static function compile($view, $arguments = array()) {\n\t\t// store the view path\n\t\t$view_path = \"view/$view.view.php\";\n\n\t\t// initialize blank buffer\n\t\t$buffer = \"\";\n\n\t\t// does the view path exist\n\t\tif (file_exists($view_path)) {\n\t\t\t// start the output buffer\n\t\t\tob_start();\n\n\t\t\t// extract arguments from array into scope\n\t\t\textract($arguments);\n\n\t\t\t// get uri for the page\n\t\t\t$uri = $_SERVER['REQUEST_URI'];\n\n\t\t\t// include the view\n\t\t\tinclude $view_path;\n\n\t\t\t// clean the buffer return what's in it\n\t\t\t$buffer = ob_get_clean();\n\t\t}\n\n\t\t// return the buffer\n\t\treturn $buffer;\n\t}", "function opcache_compile_file($file)\n{\n}", "public function setCacheDir(string $path);", "public function getCache();", "function child_generate_set_dynamic_css_cache() {\n\tif ( apply_filters( 'generate_dynamic_css_skip_cache', false ) ) {\n\t\treturn;\n\t}\n\n\t$cached_css = get_option( 'generate_dynamic_css_output', false );\n\t$cached_version = get_option( 'generate_dynamic_css_cached_version', '' );\n\n\tif ( ! $cached_css || GENERATE_VERSION !== $cached_version ) {\n\t\t$css = generate_base_css() . generate_font_css() . generate_advanced_css() . generate_spacing_css();\n\n\t\tupdate_option( 'generate_dynamic_css_output', wp_strip_all_tags( $css ) );\n\t\tupdate_option( 'generate_dynamic_css_cached_version', esc_html( GENERATE_VERSION ) );\n\t}\n}", "public function getViewCache(){\n\t\tif(isset(self::$_cacheView[get_class($this)])){\n\t\t\treturn self::$_cacheView[get_class($this)];\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "function wrmp_set_cache_version()\n{\n\tglobal $cache;\n\n\t// get version from this plugin file\n\t$wrmp_info = wrmp_info();\n\n\t// update version cache to latest\n\t$wrmp = $cache->read('wrmp');\n\t$wrmp['version'] = $wrmp_info['version'];\n\t$cache->update('wrmp', $wrmp);\n return true;\n}", "public function compileCacheFile($path, $options)\n {\n if (! property_exists($this, 'filesystem')) {\n $this->filesystem = new Filesystem;\n }\n $this->filesystem->put($path, '<?php return '.var_export($options, true).';'.PHP_EOL);\n }", "function generateCacheId() {\r\n $viewId = \"\";\r\n foreach ($this->_data as $key => $value) $viewId.= \"$key=$value\";\r\n $viewId = md5($viewId);\r\n return $viewId;\r\n }", "public function render($params,$viewFile=null,$cacheFile=null) {\n\t\textract($params);\n\t\tif ($viewFile && $cacheFile==null) {\n\t\t\t$cacheFile = str_replace(J::getAppDir(),J::path('App/Cache/Jade/App'),$viewFile);\n\t\t\t$cacheFile = str_replace('.jade','.php',$cacheFile);\n\t\t\t$cacheDir = pathinfo($cacheFile,PATHINFO_DIRNAME);\n\t\t\tif (!is_dir($cacheDir)) mkdir($cacheDir,0777,true);\n\t\t}\n\t\tif ($viewFile==null) $viewFile = $this->viewFile;\n\t\tif ($cacheFile==null) $cacheFile = $this->cacheFile;\n\t\tif ($this->isUpdated($viewFile,$cacheFile)) {\n\t\t\t$this->parseToCache($viewFile,$cacheFile);\n\t\t}\n\t\tob_start();\n\t\trequire($cacheFile);\n\t\treturn ob_get_clean();\n\t}", "private function generateCache()\n {\n $schmaTabls = [];\n foreach (self::$allSchema as $Schema) {\n $schmaTabls[] = Tools::parse_object_TO_array($Schema);\n }\n self::setgenerateCACHE_SELECT($schmaTabls);\n }", "function wap8_version_cache() {\n\t// Theme version number for caching purposes\n\treturn '1.1.0';\n}", "private static function urlCache(array $_proc) {\n\t\t// Get HTTP request headers\n\t\t$_req=array();\n\t\tif (PHP_SAPI!='cli' && !self::$global['QUIET']) {\n\t\t\t$_req=function_exists('getallheaders')?\n\t\t\t\tgetallheaders():self::getHeaders();\n\t\t}\n\t\t// Content divider\n\t\t$_div=chr(0);\n\t\t// Get hash code for this Web page\n\t\t$_hash='url.'.self::hashCode(\n\t\t\t$_SERVER['REQUEST_METHOD'].' '.$_SERVER['REQUEST_URI']\n\t\t);\n\t\t$_cached=Cache::cached($_hash);\n\t\t// Regex pattern for Content-Type\n\t\t$_regex='/'.self::HTTP_Content.'.+/';\n\t\t$_time=time();\n\t\tif ($_cached && ($_time-$_cached['time'])<$_proc[1]) {\n\t\t\t// Activate cache timer\n\t\t\tself::httpCache($_cached['time']+$_proc[1]-$_time);\n\t\t\tif (!isset($_req[self::HTTP_IfMod]) ||\n\t\t\t\t$_cached['time']>strtotime($_req[self::HTTP_IfMod])) {\n\t\t\t\t// Retrieve from cache and decompress\n\t\t\t\t$_buffer=gzinflate(Cache::fetch($_hash));\n\t\t\t\t$_type=strstr($_buffer,$_div,TRUE);\n\t\t\t\tif (preg_match($_regex,$_type,$_match) &&\n\t\t\t\t\tPHP_SAPI!='cli' && !self::$global['QUIET'] &&\n\t\t\t\t\t!headers_sent())\n\t\t\t\t\t\theader($_match[0]);\n\t\t\t\t// Save response\n\t\t\t\tself::$global['RESPONSE']=substr(strstr($_buffer,$_div),1);\n\t\t\t}\n\t\t\telse\n\t\t\t\t// No need to serve page; client-side cache is fresh\n\t\t\t\tself::httpStatus(304);\n\t\t}\n\t\telse {\n\t\t\t// Cache this page\n\t\t\tob_start();\n\t\t\tself::call($_proc[0]);\n\t\t\tself::$global['RESPONSE']=ob_get_contents();\n\t\t\tob_end_clean();\n\t\t\tif (!self::$global['ERROR'] && self::$global['RESPONSE']) {\n\t\t\t\t$_type='';\n\t\t\t\tforeach (headers_list() as $_hdr)\n\t\t\t\t\tif (preg_match($_regex,$_hdr,$_match)) {\n\t\t\t\t\t\t// Add Content-Type header to buffer\n\t\t\t\t\t\t$_type=$_match[0];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t// Compress and save to cache\n\t\t\t\tCache::store($_hash,\n\t\t\t\t\tgzdeflate($_type.$_div.self::$global['RESPONSE'])\n\t\t\t\t);\n\t\t\t\t// Activate cache timer\n\t\t\t\tself::httpCache($_proc[1]);\n\t\t\t\tif (PHP_SAPI!='cli' && !self::$global['QUIET'] &&\n\t\t\t\t\t!headers_sent())\n\t\t\t\t\t\theader(self::HTTP_LastMod.': '.date('r',$_time));\n\t\t\t}\n\t\t}\n\t}", "private static function prep() {\n\t\tif (!isset(F3::$global['CACHE'])) {\n\t\t\t// Extensions usable as cache back-ends\n\t\t\t$_exts=array_intersect(\n\t\t\t\texplode('|','apc|xcache'),get_loaded_extensions()\n\t\t\t);\n\t\t\tforeach (array_keys($_exts,'') as $_null)\n\t\t\t\tunset($_exts[$_null]);\n\t\t\t$_exts=array_merge($_exts,array());\n\t\t\tF3::$global['CACHE']=$_exts[0]?:\n\t\t\t\t('folder='.F3::$global['BASE'].'cache/');\n\t\t}\n\t\tif (preg_match(\n\t\t\t'/^(?:(folder)\\=(.+\\/)|(apc)|(memcache)=(.+))|(xcache)/i',\n\t\t\tF3::$global['CACHE'],$_match)) {\n\t\t\tif ($_match[1]) {\n\t\t\t\tif (!file_exists($_match[2])) {\n\t\t\t\t\tif (!is_writable(dirname($_match[2])) &&\n\t\t\t\t\t\tfunction_exists('posix_getpwuid')) {\n\t\t\t\t\t\t\t$_uid=posix_getpwuid(posix_geteuid());\n\t\t\t\t\t\t\tF3::$global['CONTEXT']=array(\n\t\t\t\t\t\t\t\t$_uid['name'],realpath(dirname($_match[2]))\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\ttrigger_error(F3::TEXT_Write);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t// Create the framework's cache folder\n\t\t\t\t\tmkdir($_match[2],0755);\n\t\t\t\t}\n\t\t\t\t// File system\n\t\t\t\tself::$l1cache=array('type'=>'folder','id'=>$_match[2]);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$_ext=strtolower($_match[3]?:($_match[4]?:$_match[6]));\n\t\t\t\tif (!extension_loaded($_ext)) {\n\t\t\t\t\tF3::$global['CONTEXT']=$_ext;\n\t\t\t\t\ttrigger_error(F3::TEXT_PHPExt);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif ($_match[4]) {\n\t\t\t\t\t// Open persistent MemCache connection(s)\n\t\t\t\t\t// Multiple servers separated by semi-colon\n\t\t\t\t\t$_pool=explode(';',$_match[5]);\n\t\t\t\t\t$_mcache=NULL;\n\t\t\t\t\tforeach ($_pool as $_server) {\n\t\t\t\t\t\t// Hostname:port\n\t\t\t\t\t\tlist($_host,$_port)=explode(':',$_server);\n\t\t\t\t\t\tif (is_null($_port))\n\t\t\t\t\t\t\t// Use default port\n\t\t\t\t\t\t\t$_port=11211;\n\t\t\t\t\t\t// Connect to each server\n\t\t\t\t\t\tif (is_null($_mcache))\n\t\t\t\t\t\t\t$_mcache=memcache_pconnect($_host,$_port);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tmemcache_add_server($_mcache,$_host,$_port);\n\t\t\t\t\t}\n\t\t\t\t\t// MemCache\n\t\t\t\t\tself::$l1cache=array('type'=>$_ext,'id'=>$_mcache);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t// APC and XCache\n\t\t\t\t\tself::$l1cache=array('type'=>$_ext);\n\t\t\t}\n\t\t\tself::$l1cache['current']=FALSE;\n\t\t\treturn TRUE;\n\t\t}\n\t\t// Unknown back-end\n\t\ttrigger_error(self::TEXT_Backend);\n\t\treturn FALSE;\n\t}", "public function compose(View $view)\n {\n\n $viewName = str_replace('frontend.', '', $view->getName());\n $appMarket = app('Lib\\Repositories\\AppMarketRepositoryEloquent');\n\n if($viewName == 'index.index')\n $view->with('is_index',true);\n\n if(in_array($viewName, ['index.index','index.category','index.parent-category','index.search']))\n {\n \n $featuredItems = $appMarket->featuredItemLists(5);\n $view->with('featuredItems',$featuredItems);\n }\n\n // featured categories\n $category = app('Lib\\Repositories\\CategoryRepositoryEloquent');\n $popularCategories = $category->popularCategories();\n $view->with('popularCategories',$popularCategories);\n\n\n $popularApps = $appMarket->popularApps();\n $view->with('popularApps',$popularApps);\n\n $featuredCategories = $category->isFeaturedCategories();\n $view->with('featuredCategories',$featuredCategories);\n\n $parentCat = app('Lib\\Repositories\\ParentCategoryRepositoryEloquent');\n $parentCatCollections = $parentCat->parentCategories();\n $view->with('parentCatCollections',$parentCatCollections);\n \n // pages\n $page = app('Lib\\Repositories\\PageRepositoryEloquent');\n $pages = $page->pageMenu();\n $view->with('pages',$pages);\n\n \n $dbLocale = Cache::remember('locale_db', 1500, function() {\n return Translation::groupBy('locale')->lists('locale')->toArray();\n });\n $view->with('dbLocale',$dbLocale);\n\n }", "public static function getCachedComponentDefinitions(string $path)\n {\n return Cache::new($path)->load(CacheableTables::class);\n }", "final public function rebuild_cache($cache_name = null) {\n\n\t\t\t// if we want to rebuild specific kind of cache or all of it\n\t\t\t$rebild_cache = (!is_null($cache_name) && array_key_exists($cache_name, $this->cache)) ? array($cache_name => $this->cache[$cache_name]) : $this->cache;\n\n\t\t\tforeach ($rebild_cache as $name => $options) {\n\t\t\t\tif (!array_key_exists('fields', $options)) continue;\n\n\t\t\t\t$options = array_merge(array('conditions' => null, 'order' => null, 'limit' => null), $options);\n\n\t\t\t\t// find if the array of fields is multidimensional array - so we got to consider the the associations\n\t\t\t\tif (count($options['fields']) == count($options['fields'], 1)) {\n\t\t\t\t\t// no multidimensional array so no associations\n\t\t\t\t\t$associations = array();\n\t\t\t\t\t// keys to fetch are all 'fields' elements\n\t\t\t\t\t$keys = array_combine($options['fields'], $options['fields']);\n\t\t\t\t} else {\n\t\t\t\t\t// filter the associations out\n\t\t\t\t\t$associations = array_filter($options['fields'], 'is_array');\n\t\t\t\t\t// get only the fields which are no associations\n\t\t\t\t\t$keys = array_diff_key($options['fields'], $associations);\n\t\t\t\t\t// keys to fetch from main object\n\t\t\t\t\t$keys = array_combine($keys, $keys);\n\t\t\t\t}\n\n\t\t\t\t$store = array();\n\t\t\t\t// we loop through all locales\n\t\t\t\tforeach (Config()->LOCALE_SHORTCUTS as $lang) {\n\t\t\t\t\t$this->set_locale($lang);\n\t\t\t\t\t// preserve index for better cache structure\n\t\t\t\t\t$preserve_index = $this->preserve_index;\n\t\t\t\t\t$this->preserve_index = true;\n\t\t\t\t\t// find all elements according to conditions, order and limit\n\t\t\t\t\t$items = $this->find_all($options['conditions'], $options['order'], $options['limit']);\n\t\t\t\t\t// return preserve index to its original state\n\t\t\t\t\t$this->preserve_index = $preserve_index;\n\n\t\t\t\t\tforeach ($items as $id => $item) {\n\t\t\t\t\t\t// fetch the coresponding fields from each item\n\t\t\t\t\t\t$values = array();\n\t\t\t\t\t\tforeach($keys as $k) {\n\t\t\t\t\t\t $values[$k] = $item->$k;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// store them according to i18n settings\n\t\t\t\t\t\tif ($this->is_i18n == true) {\n\t\t\t\t\t\t\t$store[$lang][$id] = $values;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$store[$id] = $values;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// loop through associations and fetch their data\n\t\t\t\t\t\tforeach ($associations as $association => $fields) {\n\t\t\t\t\t\t\t// fetch the coresponding fields from each association\n\t\t\t\t\t\t\t$values = array_intersect_key((array)($item->$association()), array_combine($fields, $fields));\n\t\t\t\t\t\t\tif (empty($values)) continue;\n\t\t\t\t\t\t\t// store them according to i18n settings\n\t\t\t\t\t\t\tif ($this->is_i18n == true) {\n\t\t\t\t\t\t\t\t$store[$lang][$id][$association] = $values;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$store[$id][$association] = $values;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// write cache\n\t\t\t\t$cache_with_model = Inflector::tableize($this->get_class_name()) . '_' . $name;\n\t\t\t\t$cache_file = Config()->ROOT_PATH . 'cache/site/' . $cache_with_model . '.cache';\n\t\t\t\t$file = fopen($cache_file, \"w\");\n\t\t\t\t@flock($file, LOCK_EX);\n\t\t\t\tfwrite($file, \"<?php\\n\\$this->cached_results['\" . $cache_with_model . \"'] = \" . var_export($store, true) . \";\\n?>\");\n\t\t\t\t@flock($file, LOCK_UN);\n\t\t\t\tfclose($file);\n\t\t\t\t@chmod($cache_file, 0666);\n\t\t\t}\n\n\t\t\t// return back to original locale\n\t\t\t$this->set_locale(Registry()->locale);\n\t\t}", "public function updateCache();", "function templatesrecache()\n\t{\n\t\t$uninstall = ( $this->ipsclass->input['un'] == 1 ) ? \"&amp;un=1\" : \"\";\n\t\t\n\t\t$justdone = intval( $this->ipsclass->input['justdone'] );\n\t\t$justdone = $justdone ? $justdone : 1;\n\t\t\n\t\t$s = $this->ipsclass->DB->build_and_exec_query( array( 'select' => '*',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'from' => 'skin_sets',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'where' => 'set_skin_set_id > '.$justdone,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'order' => 'set_skin_set_id',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'limit' => array( 0, 1 ),\n\t\t\t\t\t\t\t\t\t\t\t\t\t )\t\t );\n\t\t\n\t\tif ( $s['set_skin_set_id'] )\n\t\t{\n\t\t\t$this->ipsclass->cache_func->_rebuild_all_caches( array( $s['set_skin_set_id'] ) );\n\t\t\t\n\t\t\t$this->ipsclass->admin->redirect( \"{$this->ipsclass->form_code}&amp;code=work&amp;mod={$this->ipsclass->input['mod']}&amp;step={$this->ipsclass->input['step']}&amp;justdone={$s['set_skin_set_id']}{$uninstall}&amp;st={$this->ipsclass->input['st']}\", \"{$this->xml_array['mod_info']['title']['VALUE']}<br />Rebuilt the '{$s['set_name']}' skin cache...\" );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->ipsclass->input['step']++;\n\t\t\t\t\t\t\n\t\t\t$this->ipsclass->admin->redirect( \"{$this->ipsclass->form_code}&amp;code=work&amp;mod={$this->ipsclass->input['mod']}&amp;step={$this->ipsclass->input['step']}{$uninstall}&amp;st={$this->ipsclass->input['st']}\", \"{$this->xml_array['mod_info']['title']['VALUE']}<br />No more skins to rebuild...\" );\n\t\t}\n\t}", "function add_to_cache($className, $path)\n{\n global $cache_map, $cache_file;\n\n if(!empty($className))\n {\n if(!$cache_map)\n $cache_map = array();\n\n $cache_map[$className] = $path;\n\n file_put_contents($cache_file, '<?php ' . \"\\n\" . '$cache_map = ' .\"\\n\" . var_export($cache_map, true) . ';' );\n\n }\n}", "private static function compile(string $path, array $data): string\n {\n extract($data);\n\n ob_start();\n\n $path = str_replace('.', '/', $path);\n\n include sprintf('%s/../../resources/views/%s.php', __DIR__, $path);\n\n $contents = ob_get_contents();\n\n ob_clean();\n\n return (string) $contents;\n }", "public function cacheFile()\n\t{\n\t\t$data[] = \"<?php\";\n\t\t$data[] = \"defined('LUNA_SYSTEM') or die('Hacking attempt!');\\n\";\n\n\t\t$routes = Route::orderBy('type')->orderBy('controller')->get()->toArray();\n\n\t\tif (!empty($routes)) {\n\t\t\tforeach ($routes as $route) {\n\t\t\t\t$call_back = isset($route['action']) ? $route['controller'] . \":\" . $route['action'] : $route['controller'];\n\t\t\t\tif (!isset($route['method'])) {\n\t\t\t\t\t$data[] = '$app->get(\"' . $route['route'] . '\", \"' . $call_back . '\");';\n\t\t\t\t} else {\n\t\t\t\t\t$methods = explode(',', preg_replace('/\\s+/', '', $route['method']));\n\t\t\t\t\tforeach ($methods as $method) {\n\t\t\t\t\t\t$data[] = '$app->' . strtolower($method) . '(\"' . $route['route'] . '\", \"' . $call_back . '\");';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$output = implode(\"\\n\", $data);\n\n\t\twrite_file(LUNA_CACHEPATH . \"/data/routes.php\", $output);\n\t}", "abstract function cache_output();", "public static function getCompiledPath($path){\n //Method inherited from \\Illuminate\\View\\Compilers\\Compiler \n return \\Illuminate\\View\\Compilers\\BladeCompiler::getCompiledPath($path);\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => IptvUrlResolution::find(),\n ]);\n\n $redis = (MyRedis::init());\n $redis->select(MyRedis::REDIS_PROTOCOL);\n $cache = $redis->get(self::CACHE);\n\n if (!empty($cache) && $cache = json_decode($cache, true)) {\n $cache = $cache['version'];\n }\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n 'version' => $cache\n ]);\n }", "public function setCacheFilePath($path = null) {\n if ($path !== null) {\n if (substr($path, -1) != DS) {\n $path .= DS;\n }\n $this->cacheFilePath = $path;\n return $this;\n }\n $this->cacheFilePath = CACHE_PATH;\n return $this;\n }", "public function compile( ViewRenderer $renderer, ViewLoader $loader, View $view );", "public static function css(Array $files, $cache = true)\r\n\t{\r\n\t\t$cssname = md5(implode('',$files)) . '.css';\r\n\t\t$cssname = '';\r\n\t\tforeach($files as $file)\r\n\t\t{\r\n\t\t\tif((strpos($file, 'http://') === false ) && strpos($file, '.css') && file_exists($file))\r\n\t\t\t{\r\n\t\t\t\t$cssname .= $file . filemtime($file);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$cssname .= $file;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$cssname = md5($cssname) . '.css';\r\n\t\tif(!file_exists('media/cache/' . $cssname))\r\n\t\t{\r\n\t\t\t$content = '';\r\n\t\t\tforeach($files as $file)\r\n\t\t\t{\r\n\t\t\t\tif( ( strpos($file, 'http') !== false ) || file_exists($file) )\r\n\t\t\t\t{\r\n\t\t\t\t\tif(strpos($file, 'http') !== false)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$content .= file_get_contents($file);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$content .= file_get_contents($file);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfile_put_contents('media/cache/' . $cssname, $content);\r\n\t\t\tunset($content);\r\n\t\t\t$oldfiles = glob('media/cache/*.css'); // Cleaning up the cache folder\r\n\t\t\tif($oldfiles > 1)\r\n\t\t\t{\r\n\t\t\t\tforeach($oldfiles as $oldfile)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(time() - filemtime($oldfile) > Date::MINUTE)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tunlink($oldfile);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn HTML::style('media/cache/' . $cssname);\r\n\t}", "public static function cached($_name) {\n\t\t$_name=self::resolve($_name);\n\t\t$_hash='var.'.self::hashCode(self::remix($_name));\n\t\treturn Cache::cached($_hash);\n\t}", "function compile2($code, $handle, $cache_file)\n\t{\n\t\t$code = $this->compile_code('', $code, XS_USE_ISSET);\n\t\tif($cache_file && !empty($this->use_cache) && !empty($this->auto_compile))\n\t\t{\n\t\t\t$res = $this->write_cache($cache_file, $code);\n\t\t\tif($handle && $res)\n\t\t\t{\n\t\t\t\t$this->files_cache[$handle] = $cache_file;\n\t\t\t}\n\t\t}\n\t\t$code = '?' . '>' . $code . '<' . '?php' . \"\\n\";\n\t\treturn $code;\n\t}", "private function cacheAssets(array $aAssetsPath, $sAssetType, $sCacheName)\n {\n if (!is_array($aAssetsPath)) {\n throw new \\InvalidArgumentException('AssetsPath expects an array, \"' . gettype($aAssetsPath) . '\" given');\n }\n if (!self::assetTypeExists($sAssetType)) {\n throw new \\InvalidArgumentException('Asset\\'s type \"' . $sAssetType . '\" is undefined');\n }\n if (!is_string($sCacheName)) {\n throw new \\InvalidArgumentException('CacheName expects string, \"' . gettype($aAssetsPath) . '\" given');\n }\n if (empty($sCacheName)) {\n throw new \\InvalidArgumentException('CacheName is empty');\n }\n\n $aReturn = array();\n\n //No assets to cache\n if (empty($aAssetsPath)) {\n return $aReturn;\n }\n\n //Production cache file\n $sCachePath = $this->getOptions()->getCachePath();\n $sCacheFile = $sCacheName . '.' . $sAssetType;\n $aCacheAssets = array();\n\n $bHasContent = false;\n $oAssetsFilterManager = $this->getAssetsFilterManager();\n foreach ($aAssetsPath as $sAssetPath) {\n //Reset time limit\n set_time_limit(0);\n\n //Developpement : don't optimize assets\n if (!$this->getOptions()->isProduction()) {\n\n if ($sAssetRealPath = $this->getOptions()->getRealPath($sAssetPath)) {\n $sAssetRelativePath = $this->getAssetRelativePath($sAssetRealPath);\n\n //Rewrite urls for CSS files\n if ($sAssetType === self::ASSET_CSS && !preg_match('/\\.less$/', $sAssetRealPath)) {\n $sAssetContent = $this->assetGetContents($sAssetRealPath);\n $aRewriteUrlCallback = array($this, 'rewriteUrl');\n if (!file_put_contents($sCachePath . $sAssetRelativePath, preg_replace_callback(\n '/url\\(([^\\)]+)\\)/', function($aMatches) use($aRewriteUrlCallback, $sAssetRealPath) {\n return call_user_func($aRewriteUrlCallback, $aMatches, $sAssetRealPath);\n }, $sAssetContent\n ))) {\n throw new \\RuntimeException('Unable to write in file : ' . $sCachePath . $sAssetRelativePath);\n }\n } else {\n $this->copyIntoCache($sAssetRealPath, $sCachePath . $sAssetRelativePath);\n }\n $aCacheAssets[] = $sAssetRelativePath;\n } else {\n if (($oFileHandle = @fopen($sAssetPath, 'r')) === false) {\n throw new \\LogicException('Asset\\'s file \"' . $sAssetPath . '\" does not exist');\n }\n fclose($oFileHandle);\n $aCacheAssets[] = $sAssetPath;\n }\n continue;\n }\n\n //Absolute path\n if (!($sAssetRealPath = $this->getOptions()->getRealPath($sAssetPath))) {\n if (($oFileHandle = @fopen($sAssetPath, 'r')) === false) {\n throw new \\LogicException('Asset\\'s file \"' . $sAssetPath . '\" does not exist');\n }\n $sAssetRealPath = $sAssetPath;\n }\n\n //Production : optimize assets\n $sAssetContent = $this->assetGetContents($sAssetRealPath);\n\n switch ($sAssetType) {\n case self::ASSET_CSS:\n //Rewrite urls for CSS files\n if (!preg_match('/\\.less$/', $sAssetRealPath)) {\n $aRewriteUrlCallback = array($this, 'rewriteUrl');\n $sAssetContent = preg_replace_callback(\n '/url\\(([^\\)]+)\\)/', function($aMatches) use($aRewriteUrlCallback, $sAssetRealPath) {\n return call_user_func($aRewriteUrlCallback, $aMatches, $sAssetRealPath);\n }, $sAssetContent\n );\n }\n\n $sCacheContent = trim($oAssetsFilterManager->has(self::ASSET_CSS) ? $oAssetsFilterManager->get(self::ASSET_CSS)->run($sAssetContent) : $sAssetContent);\n break;\n case self::ASSET_JS:\n $sCacheContent = trim($oAssetsFilterManager->has(self::ASSET_JS) ? $oAssetsFilterManager->get(self::ASSET_JS)->run($sAssetContent) : $sAssetContent) . PHP_EOL . '//' . PHP_EOL;\n break;\n }\n $sCacheContent = trim($sCacheContent);\n if (empty($sCacheContent)) {\n continue;\n } else {\n $bHasContent = true;\n }\n $sCacheFilePath = $sCachePath . $sCacheFile;\n if (!file_put_contents($sCacheFilePath, $sCacheContent . PHP_EOL, FILE_APPEND)) {\n throw new \\RuntimeException('Unable to write in file : ' . $sCacheFilePath);\n }\n }\n return $this->getOptions()->isProduction() ? ($bHasContent ? array($sCacheFile) : array()) : $aCacheAssets;\n }", "static function cached_all(){\n return static::get_cache();\n }", "private function getAssetVersion($path)\n {\n // @see https://knpuniversity.com/screencast/gulp/version-cache-busting#comment-2884388919\n if (count($this->paths) === 0) {\n $this->loadManifestFile();\n }\n\n if (isset($this->paths[$path])) {\n return $this->paths[$path];\n }\n\n // If a file exists, it doesn't have a version so we ignore it\n if (!file_exists($this->kernelRootDir.'/../web/'.$path)) {\n throw new Exception(sprintf('The file \"%s\" does not exist and there is no version file for it', $path));\n }\n\n return $path;\n }", "function getTariffPlans()\n{\n return cache()->remember('i.tariffPlans', getCacheILifetime('tariffPlans'), function () {\n return \\App\\Models\\Rate::with([\n 'currency'\n ])\n ->get()\n ->map(function($item) {\n return $item->toArray();\n });\n });\n}", "protected function buildViewReplacements()\n {\n $viewModule = $this->parseViewModule($this->option('view'));\n\n if (empty($viewModule)) {\n $viewModule = $this->parseViewModule($this->ask('witch module\\'s view do you want to injected to the controller?'));\n }\n\n $views = $this->getViewModuleFiles($viewModule);\n\n foreach ($views as $view) {\n if (! file_exists($view.'.blade.php')) {\n if ($this->confirm(\"The {$viewModule} module has some views does not exist. Do you want to generate it?\", true)) {\n $this->call('make:view', ['name' => $viewModule]);\n }\n\n break;\n }\n }\n\n return [\n 'DummyRootView' => $viewModule,\n ];\n }", "function components_rebuildcache()\n\t{\n\t\t$this->ipsclass->cache['components'] = array();\n\n\t\t$this->ipsclass->DB->simple_construct( array( 'select' => 'com_id,com_enabled,com_section,com_filename,com_url_uri,com_url_title,com_position',\n\t\t\t\t\t\t\t\t\t\t\t\t\t 'from' => 'components',\n\t\t\t\t\t\t\t\t\t\t\t\t\t 'where' => 'com_enabled=1',\n\t\t\t\t\t\t\t\t\t\t\t\t\t 'order' => 'com_position ASC' ) );\n\t\t$this->ipsclass->DB->simple_exec();\n\n\t\twhile ( $r = $this->ipsclass->DB->fetch_row() )\n\t\t{\n\t\t\t$this->ipsclass->cache['components'][] = $r;\n\t\t}\n\n\t\t$this->ipsclass->update_cache( array( 'name' => 'components', 'array' => 1, 'deletefirst' => 1 ) );\n\t}", "function init_load_cache( $cachearray=array('settings', 'group_cache', 'systemvars', 'skin_id_cache', 'forum_cache', 'rss_export') )\n\t{\n\t\t//--------------------------------\n\t\t// Eaccelerator...\n\t\t//--------------------------------\n\t\t\n\t\tif( is_object($this->cachelib) )\n\t\t{\n\t\t\t$temp_cache \t = array();\n\t\t\t$new_cache_array = array();\n\t\t\t\n\t\t\tforeach( $cachearray as $key )\n\t\t\t{\n\t\t\t\t$temp_cache[$key] = $this->cachelib->do_get( $key );\n\t\t\t\t\n\t\t\t\tif( !$temp_cache[$key] )\n\t\t\t\t{\n\t\t\t\t\t$new_cache_array[] = $key;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif ( $key == 'settings' )\n\t\t\t\t\t{\n\t\t\t\t\t\t$tmp = unserialize( $temp_cache[$key] );\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ( is_array( $tmp ) and count( $tmp ) )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tforeach( $tmp as $k => $v )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$this->vars[ $k ] = $v;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif( !isset($this->vars['blog_default_view']) )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->vars['blog_default_view'] = '';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tunset( $tmp );\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif ( strstr( $temp_cache[$key], \"a:\" ) )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->cache[ $key ] = unserialize( $temp_cache[$key] );\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if( $temp_cache[$key] == \"EMPTY\" )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->cache[ $key ] = NULL;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->cache[ $key ] = $temp_cache[$key];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$cachearray = $new_cache_array;\n\t\t\t\n\t\t\tunset($new_cache_array, $temp_cache);\n\t\t}\n\t\t\n\t\t//echo \"<pre>\";print_r($this->cache);exit;\n\t\t\n\t\t//--------------------------------\n\t\t// Generate cache list\n\t\t//--------------------------------\n\t\t\n\t\t$cachelist = \"\";\n\t\t\n\t\tif( count($cachearray) )\n\t\t{\n\t\t\t$cachelist = \"'\".implode( \"','\", $cachearray ).\"'\";\n\t\t}\n\t\t\n\t\t//--------------------------------\n\t\t// Get from DB...\n\t\t//--------------------------------\n\t\t\n\t\tif ( $cachelist )\n\t\t{\n\t\t\t$this->DB->simple_construct( array( 'select' => '*', 'from' => 'cache_store', 'where' => \"cs_key IN ( $cachelist )\" ) );\n\t\t\t$this->DB->simple_exec();\n\t\t\t\n\t\t\twhile ( $r = $this->DB->fetch_row() )\n\t\t\t{\n\t\t\t\tif ( $r['cs_key'] == 'settings' )\n\t\t\t\t{\n\t\t\t\t\t$tmp = unserialize( $r['cs_value'] );\n\t\t\t\t\t\n\t\t\t\t\tif ( is_array( $tmp ) and count( $tmp ) )\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach( $tmp as $k => $v )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->vars[ $k ] = $v;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif ( ! isset($this->vars['blog_default_view']) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->vars['blog_default_view'] = '';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tunset( $tmp );\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif ( $r['cs_array'] )\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->cache[ $r['cs_key'] ] = unserialize( $r['cs_value'] );\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->cache[ $r['cs_key'] ] = $r['cs_value'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif( is_object($this->cachelib) )\n\t\t\t\t{\n\t\t\t\t\tif( !$r['cs_value'] )\n\t\t\t\t\t{\n\t\t\t\t\t\t$r['cs_value'] = \"EMPTY\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$this->cachelib->do_put( $r['cs_key'], $r['cs_value'] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ( ! isset( $this->cache['systemvars'] ) OR ! isset( $this->cache['systemvars']['task_next_run']) )\n\t\t{\n\t\t\t$update \t\t\t\t\t\t= array( 'task_next_run' => time() );\n\t\t\t$update['loadlimit'] \t\t\t= $this->cache['systemvars']['loadlimit'];\n\t\t\t$update['mail_queue'] \t\t\t= $this->cache['systemvars']['mail_queue'];\n\t\t\t$update['last_virus_check'] \t= $this->cache['systemvars']['last_virus_check'];\n\t\t\t$update['last_deepscan_check'] \t= $this->cache['systemvars']['last_deepscan_check'];\n\t\t\t\n\t\t\t$this->update_cache( array( 'deletefirst' => 1, 'donow' => 1, 'name' => 'systemvars', 'array' => 1, 'value' => $update ) );\n\t\t}\n\t\t\n\t\tif( ! isset( $this->cache['forum_cache'] ) OR empty( $this->cache['forum_cache']) )\n\t\t{\n\t\t\t$this->update_forum_cache();\n\t\t}\n\t\t\n\t\tif( ! isset( $this->cache['group_cache'] ) OR empty( $this->cache['group_cache']) )\n\t\t{\n\t\t\t$this->cache['group_cache'] = array();\n\t\t\n\t\t\t$this->DB->simple_construct( array( 'select' => \"*\",\n\t\t\t\t\t\t\t\t\t\t\t\t 'from' => 'groups'\n\t\t\t\t\t\t\t\t\t\t) );\n\t\t\t\n\t\t\t$this->DB->simple_exec();\n\t\t\t\n\t\t\twhile ( $i = $this->DB->fetch_row() )\n\t\t\t{\n\t\t\t\t$this->cache['group_cache'][ $i['g_id'] ] = $i;\n\t\t\t}\n\t\t\t\n\t\t\t$this->update_cache( array( 'name' => 'group_cache', 'array' => 1, 'deletefirst' => 1 ) );\n\t\t}\t\n\t\t\n\t\t//--------------------------------\n\t\t// Set up cache path\n\t\t//--------------------------------\n\t\t\n\t\tif( ! defined( 'CACHE_PATH' ) )\n\t\t{\n\t\t\tif ( $this->vars['ipb_cache_path'] )\n\t\t\t{\n\t\t\t\tdefine( 'CACHE_PATH', $this->vars['ipb_cache_path'] );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tdefine( 'CACHE_PATH', ROOT_PATH );\n\t\t\t}\n\t\t}\n\t\t\n\t\t//-----------------------------------------\n\t\t// IPS CACHE LOADED\n\t\t//-----------------------------------------\n\t\t\n\t\tif ( ! defined( 'IPSCLASS_CACHE_LOADED' ) )\n\t\t{\n\t\t\tdefine( 'IPSCLASS_CACHE_LOADED', 1 );\n\t\t}\n\t\t\n\t\t//--------------------------------\n\t\t// Set up defaults\n\t\t//--------------------------------\n\t\t\n\t\t$this->vars['topic_title_max_len'] = $this->vars['topic_title_max_len'] ? $this->vars['topic_title_max_len'] : 50;\n\t\t#$this->vars['gb_char_set'] = 'UTF-8';\n\t}", "protected function load_cache(){\r\n\t\tstatic $cached = null;\r\n\t\t\r\n\t\tif(!$cached){\r\n\t\t\t\r\n\t\t\tif($this->_cfg->get('sfversion') == 'auto'){\r\n\t\t\t\t// get version from sourceforge/cache\r\n\t\t\t\tif (!$this->is_cached()) $this->update_cache();\r\n\t\t\t\t$cached = (object)include($this->get_cache());\r\n\t\t\t}else{\r\n\t\t\t\t// use predefined version from config\r\n\t\t\t\t$cached = (object)$this->_cfg->get('sfversion');\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn $cached;\r\n\t}", "function bustCache($public_file_path) {\n $public_file_path = '/' . ltrim($public_file_path, '/');\n $php_public_path = public_path();\n $file_md5 = md5_file($php_public_path . $public_file_path);\n\n $new_path = $public_file_path . '?v=' . $file_md5;\n\n return $new_path;\n }", "function _prime_site_caches($ids, $update_meta_cache = \\true)\n {\n }", "public function generateLanguageCache()\n\t{\n\t\t$arrLanguages = array('en');\n\t\t$objLanguages = \\Database::getInstance()->query(\"SELECT language FROM tl_member UNION SELECT language FROM tl_user UNION SELECT REPLACE(language, '-', '_') FROM tl_page WHERE type='root'\");\n\n\t\t// Only cache the languages which are in use (see #6013)\n\t\twhile ($objLanguages->next())\n\t\t{\n\t\t\tif ($objLanguages->language == '')\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$arrLanguages[] = $objLanguages->language;\n\n\t\t\t// Also cache \"de\" if \"de-CH\" is requested\n\t\t\tif (strlen($objLanguages->language) > 2)\n\t\t\t{\n\t\t\t\t$arrLanguages[] = substr($objLanguages->language, 0, 2);\n\t\t\t}\n\t\t}\n\n\t\t$arrLanguages = array_unique($arrLanguages);\n\n\t\tforeach ($arrLanguages as $strLanguage)\n\t\t{\n\t\t\t$arrFiles = array();\n\n\t\t\t// Parse all active modules\n\t\t\tforeach (\\ModuleLoader::getActive() as $strModule)\n\t\t\t{\n\t\t\t\t$strDir = 'system/modules/' . $strModule . '/languages/' . $strLanguage;\n\n\t\t\t\tif (!is_dir(TL_ROOT . '/' . $strDir))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tforeach (scan(TL_ROOT . '/' . $strDir) as $strFile)\n\t\t\t\t{\n\t\t\t\t\tif (strncmp($strFile, '.', 1) !== 0 && (substr($strFile, -4) == '.php' || substr($strFile, -4) == '.xlf'))\n\t\t\t\t\t{\n\t\t\t\t\t\t$arrFiles[] = substr($strFile, 0, -4);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$arrFiles = array_values(array_unique($arrFiles));\n\n\t\t\t// Create one file per table\n\t\t\tforeach ($arrFiles as $strName)\n\t\t\t{\n\t\t\t\t$strCacheFile = 'system/cache/language/' . $strLanguage . '/' . $strName . '.php';\n\n\t\t\t\t// Add a short header with links to transifex.com\n\t\t\t\t$strHeader = \"<?php\\n\\n\"\n\t\t\t\t\t\t . \"/**\\n\"\n\t\t\t\t\t\t . \" * Contao Open Source CMS\\n\"\n\t\t\t\t\t\t . \" * \\n\"\n\t\t\t\t\t\t . \" * Copyright (c) 2005-2016 Leo Feyer\\n\"\n\t\t\t\t\t\t . \" * \\n\"\n\t\t\t\t\t\t . \" * Core translations are managed using Transifex. To create a new translation\\n\"\n\t\t\t\t\t\t . \" * or to help to maintain an existing one, please register at transifex.com.\\n\"\n\t\t\t\t\t\t . \" * \\n\"\n\t\t\t\t\t\t . \" * @link http://help.transifex.com/intro/translating.html\\n\"\n\t\t\t\t\t\t . \" * @link https://www.transifex.com/projects/p/contao/language/%s/\\n\"\n\t\t\t\t\t\t . \" * \\n\"\n\t\t\t\t\t\t . \" * @license LGPL-3.0+\\n\"\n\t\t\t\t\t\t . \" */\\n\";\n\n\t\t\t\t// Generate the cache file\n\t\t\t\t$objCacheFile = new \\File($strCacheFile, true);\n\t\t\t\t$objCacheFile->write(sprintf($strHeader, $strLanguage));\n\n\t\t\t\t// Parse all active modules and append to the cache file\n\t\t\t\tforeach (\\ModuleLoader::getActive() as $strModule)\n\t\t\t\t{\n\t\t\t\t\t$strFile = 'system/modules/' . $strModule . '/languages/' . $strLanguage . '/' . $strName;\n\n\t\t\t\t\tif (file_exists(TL_ROOT . '/' . $strFile . '.xlf'))\n\t\t\t\t\t{\n\t\t\t\t\t\t$objCacheFile->append(static::convertXlfToPhp($strFile . '.xlf', $strLanguage));\n\t\t\t\t\t}\n\t\t\t\t\telseif (file_exists(TL_ROOT . '/' . $strFile . '.php'))\n\t\t\t\t\t{\n\t\t\t\t\t\t$objCacheFile->append(static::readPhpFileWithoutTags($strFile . '.php'));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Close the file (moves it to its final destination)\n\t\t\t\t$objCacheFile->close();\n\t\t\t}\n\t\t}\n\n\t\t// Add a log entry\n\t\t$this->log('Generated the language cache', __METHOD__, TL_CRON);\n\t}", "function get_cache($key) {\n return $this->get_cache_dir() . $key . '.cache';\n }", "public function cache_assets_refresh()\n {\n foreach ($this->assets AS $asset)\n {\n if ($asset->is_cachable())\n {\n $asset->cache();\n }\n }\n\n return $this;\n }", "public static function getCachedCompilePath(){\n return \\Illuminate\\Foundation\\Application::getCachedCompilePath();\n }", "protected static function getRuntimeCache() {}", "public static function compile($path = null)\n {\n }", "function enqueue_cached_css() {\n\ttry {\n\t\t$cachebuster = get_latest_revision_id();\n\t} catch ( Exception $exception ) {\n\t\t$cachebuster = date( 'Y-m-d-H' );\n\t}\n\n\twp_enqueue_style(\n\t\tCSS_HANDLE,\n\t\tadd_query_arg( 'action', CSS_HANDLE, admin_url( 'admin-ajax.php' ) ),\n\t\tarray(),\n\t\t$cachebuster,\n\t\t'all'\n\t);\n}", "public static function getCacheControl() {}", "public function compose(View $view)\n {\n $_currentUrl = str_replace(URL::to('/').'/', '', url()->current());\n $currentUrl = ucfirst($_currentUrl);\n\n $_path = explode('/',$_currentUrl);\n\n\n\n $_2ndPath = '.index';\n\n // if(count($_path) > 1) {\n // $_2ndPath = '.'.$_path[1];\n // }\n\n $cssPath = 'common.css.' . $_path[0]. $_2ndPath;\n $jsPath = 'common.js.' . $_path[0]. $_2ndPath;\n\n $view->with('mainPath', $_path[0]);\n $view->with('cssPath', $cssPath);\n $view->with('jsPath', $jsPath);\n\n $userLogin = UserUtil::login();\n UserUtil::checkApiKey();\n $userInfo = UserUtil::getUserInfo();\n $userRole = Auth::user()->getUserRole();\n\n $view->with('_currentUrl', $_currentUrl);\n $view->with('currentUrl', $currentUrl);\n $view->with('userLogin', $userLogin);\n $view->with('userInfo', $userInfo);\n $view->with('userRole', $userRole);\n }", "public function makeCacheHash() {}", "function generate_update_dynamic_css_cache() {\n\tif ( apply_filters( 'generate_dynamic_css_skip_cache', false ) ) {\n\t\treturn;\n\t}\n\n\t$css = generate_base_css() . generate_font_css() . generate_advanced_css() . generate_spacing_css();\n\tupdate_option( 'generate_dynamic_css_output', $css );\n}", "protected function compileAndCache(CompilerInterface $compiler, $path, $inputFile)\n {\n return $this->cacheFileContents($path, $compiler->compileFile($inputFile), $compiler->getCurrentImportPaths());\n }", "public function testCaching2()\n {\n $this->smarty->caching = true;\n /*\n foreach (Smarty_Resource_Source::$_resource_cache as $tpl) {\n $tpl->cleanPointer();\n unset($tpl);\n }\n */\n Smarty::$_resource_cache = array();\n $tpl = $this->smarty->createTemplate('string:{$vars = [1,2,3,4,5]}{foreach $vars as $var}{$v = $var cachevalue}{nocache}{$v}{/nocache}{/foreach}');\n $this->assertEquals('12345', $tpl->fetch());\n }", "public static function setCache($cache) {}", "function cache($name, $set = null)\n{\n $file = '/tmp/cache/'.$name.'.tmp';\n\n if (!is_dir('/tmp/cache'))\n {\n mkdir('/tmp/cache');\n }\n\n if ($set)\n {\n $GLOBALS['cache'][$file] = $set;\n $set = var_export($set, true);\n $tmp = '/tmp/cache/'.$name.uniqid('', true).'.tmp';\n file_put_contents($tmp, '<?php $val = '.$set.';', LOCK_EX);\n rename($tmp, $file);\n return file_exists($tmp);\n }\n elseif (isset($GLOBALS['cache'][$file]))\n {\n return $GLOBALS['cache'][$file];\n }\n else\n {\n if (file_exists($file))\n {\n include $file;\n $GLOBALS['cache'][$file] = $val;\n return $val;\n }\n }\n}", "public function cacheFolder() {\n\t\t$full_path = trim(str_replace(MODX_BASE_PATH, '', trim($this->config['cacheFolder'])), DIRECTORY_SEPARATOR);\n\n\t\tif (!file_exists(MODX_BASE_PATH . $full_path)) {\n\t\t\t$tmp = explode(DIRECTORY_SEPARATOR, $full_path);\n\t\t\t$path = MODX_BASE_PATH;\n\t\t\tforeach ($tmp as $v) {\n\t\t\t\tif (!empty($v)) {\n\t\t\t\t\t$path .= $v . DIRECTORY_SEPARATOR;\n\t\t\t\t\tif (!file_exists($path)) {\n\t\t\t\t\t\tmkdir($path);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (substr($full_path, -1) !== DIRECTORY_SEPARATOR) {\n\t\t\t$full_path .= DIRECTORY_SEPARATOR;\n\t\t}\n\n\t\t// Could not create cache directory\n\t\tif (!file_exists(MODX_BASE_PATH . $full_path)) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Get the latest cache files\n\t\t$this->config['cacheFolder'] = $cacheFolder = MODX_BASE_PATH . $full_path;\n\t\t$regexp = '('.$this->config['jsFilename'].'|'.$this->config['cssFilename'].')';\n\t\t$regexp .= '_(\\d{10})';\n\t\t$regexp .= '('.$this->config['jsExt'].'|'.$this->config['cssExt'].')';\n\n\t\t$files = scandir($cacheFolder);\n\t\tforeach ($files as $file) {\n\t\t\tif ($file == '.' || $file == '..') {continue;}\n\n\t\t\tif (preg_match(\"/^$regexp$/iu\", $file, $matches)) {\n\t\t\t\tif ($matches[3] == $this->config['jsExt']) {\n\t\t\t\t\t$this->current['js'][] = array(\n\t\t\t\t\t\t'file' => $matches[0],\n\t\t\t\t\t\t'time' => filemtime($cacheFolder . $file),\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$this->current['css'][] = array(\n\t\t\t\t\t\t'file' => $matches[0],\n\t\t\t\t\t\t'time' => filemtime($cacheFolder . $file),\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "public function setCompilePath($path)\n {\n\n if (is_writable($path)) {\n $this->_setSmartyParams('compile_dir', $path);\n return;\n }\n\t\t\n\t\t$this->_setSmartyParams('compile_dir', Package::buildPath(SITE_DIR, 'views', 'compile'));\n\t\t\n\t\treturn;\n //throw new Exception('Invalid compile path provided: ' . $path);\n }", "public static function css($cache = false, $path = '/css/', $variants = ['.min', '-min'], $ext = '.css')\n {\n // Iterate over asset links\n foreach (array_filter(explode(\"\\n\", self::asset($path, $variants, $ext))) as $src) {\n\n // Cache busting string\n $cacheBuster = ($cache) ? null :'?v='.filemtime(__cwd.$src);\n\n // Create HTML tags for JavaScript\n $html[] = helpers\\html::tag('link', '', ['rel' => 'stylesheet', 'src' => $src]);\n }\n\n // Return assets as string\n return implode(\"\\n\", $html ?? []);\n }" ]
[ "0.58032984", "0.5456417", "0.52799904", "0.5169174", "0.50918245", "0.5076791", "0.506223", "0.50546074", "0.50391847", "0.50348157", "0.50189745", "0.5007936", "0.4954959", "0.4953679", "0.4947723", "0.49175644", "0.4911728", "0.48898008", "0.48532635", "0.4851063", "0.48374683", "0.48363778", "0.4832411", "0.48212028", "0.48108298", "0.48091584", "0.48057976", "0.47875142", "0.47693244", "0.4768666", "0.4742971", "0.47359547", "0.472843", "0.47263634", "0.47178346", "0.4703371", "0.46723643", "0.46652147", "0.46627423", "0.46624357", "0.46568063", "0.46516806", "0.46400476", "0.46384522", "0.46352816", "0.46328393", "0.4626384", "0.46239188", "0.46215355", "0.46153033", "0.46026555", "0.45895067", "0.45873758", "0.4580968", "0.4577862", "0.4569421", "0.45660886", "0.45635262", "0.4558484", "0.4557393", "0.4556145", "0.45558298", "0.4548939", "0.45195577", "0.45176688", "0.45114014", "0.45112598", "0.45082036", "0.45002288", "0.44999495", "0.44985446", "0.44663987", "0.4436012", "0.44318715", "0.44250384", "0.44204", "0.44177094", "0.4410203", "0.4408267", "0.44075856", "0.44020712", "0.4401497", "0.43917662", "0.43822992", "0.4380541", "0.43727082", "0.4372157", "0.4365962", "0.43648133", "0.4362959", "0.43598995", "0.43593806", "0.43578747", "0.43571", "0.43569943", "0.4355984", "0.43484268", "0.43415648", "0.43408108", "0.43394345" ]
0.5198411
3
Reset view cache for a given path. Identical to compile method by effect but faster.
public function reset(string $path): void { if ($this->cache !== null) { $this->cache->resetPath($path); } $engine = $this->findEngine($path); // Rotate all possible context variants and warm up cache $generator = new ContextGenerator($this->context); foreach ($generator->generate() as $context) { $engine->reset($path, $context); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public function clearViewsCache() {\n\t\t$this->allViews = null;\n\t}", "public static function resetCache();", "function cache_actions_action_clear_views_cache($view) {\n views_include_handlers();\n require_once('./' . drupal_get_path('module', 'views') . \"/plugins/views_plugin_cache.inc\");\n $view = views_get_view($view);\n\n // We use the cache plugin to clear the cache, since that's probably the best idea.\n $cache_plugin = new views_plugin_cache();\n \n // The cache plugin does not care which display we are using when it clears the cache,\n // it will clear all caches related to this view anyway, so we can safely use any display.\n $cache_plugin->init($view, $view->display[0]);\n $cache_plugin->cache_flush();\n}", "public static function resetCache()\n\t{\n\t\tTagDependency::invalidate(Yii::$app->cache, static::getCacheTag());\n\t}", "public static function resetCache()\n\t{\n\t\tTagDependency::invalidate(Yii::$app->cache, static::getCacheTag());\n\t}", "public function clear_cache(): void;", "function elgg_filepath_cache_reset() {\n\t$cache = elgg_get_filepath_cache();\n\t$view_types_result = $cache->delete('view_types');\n\t$views_result = $cache->delete('views');\n\treturn $view_types_result && $views_result;\n}", "public function cacheInvalidate() {\n }", "public function clearCache(): void;", "public function clearCache() {}", "public function clearCache() {}", "public function clearCache(): RenderTwig\n\t{\n\t\tif($this->options['cache'] && is_dir($this->options['cache'])) {\n\t\t\t@system('rm -rf ' . escapeshellarg($this->options['cache']));\n\t\t}\n\t\treturn $this;\n\t}", "public function reset() {\n $this->_path = array();\n }", "public function rebuildCache()\r\n {\r\n $themes = $this->scanJsonFiles();\r\n // file_put_contents($this->cachePath, json_encode($themes, JSON_PRETTY_PRINT));\r\n\r\n $stub = file_get_contents(__DIR__ . '/stubs/cache.stub');\r\n $contents = str_replace('[CACHE]', var_export($themes, true), $stub);\r\n file_put_contents($this->cachePath, $contents);\r\n }", "public function compile(string $path): void\n {\n if ($this->cache !== null) {\n $this->cache->resetPath($path);\n }\n\n $engine = $this->findEngine($path);\n\n // Rotate all possible context variants and warm up cache\n $generator = new ContextGenerator($this->context);\n foreach ($generator->generate() as $context) {\n $engine->reset($path, $context);\n $engine->compile($path, $context);\n }\n }", "public function clearTemplateCache()\n {\n $this->loadedTemplates = array();\n }", "public function clearstatcache($path = NULL) {\n clearstatcache(TRUE, $path);\n }", "abstract protected function clearCache();", "public function resetInTreeCache()\n\t{\n\t\t$this->in_tree_cache = array();\n\t}", "public function clearCache()\n {\n $this->pathsCache = array();\n $this->filterCache = array();\n return $this;\n }", "function taxonomy_post_update_clear_views_data_cache() {\n // An empty update will flush caches.\n}", "public function resetView()\n {\n $this->view = null;\n }", "public function clearCache() {\n\t\tYii::app()->user->setState('nlsLoadedResources', array());\n\t}", "public function reset() {\n $this->cache = array();\n $this->parent()->reset();\n }", "protected function _clear_cache() {\n\t\t$this->_attrs = array();\n\t\t$this->_options = array();\n\t}", "function tilemmetry_clear_cache()\n{\n theme_reset_all_caches();\n}", "public function clearCache()\n {\n }", "public function reset_cache() {\n remove_theme_mod( 'athen_customizer_css_cache' );\n }", "public function invalidateCache(): void\n {\n $this->cacheExec = [];\n }", "public function set_cache_path(string $path) {\n\t\t$this->cache_path = $path;\n\t}", "private function clear_opcache($path)\n\t{\n\t\tif ( ! file_exists($path))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tif (function_exists('apc_delete_file'))\n\t\t{\n\t\t\t@apc_delete_file($path) || apc_clear_cache();\n\t\t}\n\n\t\tif (function_exists('opcache_invalidate'))\n\t\t{\n\t\t\tif (($opcache_api_path = (string) ini_get('opcache.restrict_api')) && stripos(SYSPATH, $opcache_api_path) !== 0)\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\topcache_invalidate($path);\n\t\t}\n\t}", "public static function clearRouteCache() { \n self::$_cache = [];\n }", "function reset_caches() {\n \n $this->ext->reset_caches();\n \n }", "function templatesrecache()\n\t{\n\t\t$uninstall = ( $this->ipsclass->input['un'] == 1 ) ? \"&amp;un=1\" : \"\";\n\t\t\n\t\t$justdone = intval( $this->ipsclass->input['justdone'] );\n\t\t$justdone = $justdone ? $justdone : 1;\n\t\t\n\t\t$s = $this->ipsclass->DB->build_and_exec_query( array( 'select' => '*',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'from' => 'skin_sets',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'where' => 'set_skin_set_id > '.$justdone,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'order' => 'set_skin_set_id',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'limit' => array( 0, 1 ),\n\t\t\t\t\t\t\t\t\t\t\t\t\t )\t\t );\n\t\t\n\t\tif ( $s['set_skin_set_id'] )\n\t\t{\n\t\t\t$this->ipsclass->cache_func->_rebuild_all_caches( array( $s['set_skin_set_id'] ) );\n\t\t\t\n\t\t\t$this->ipsclass->admin->redirect( \"{$this->ipsclass->form_code}&amp;code=work&amp;mod={$this->ipsclass->input['mod']}&amp;step={$this->ipsclass->input['step']}&amp;justdone={$s['set_skin_set_id']}{$uninstall}&amp;st={$this->ipsclass->input['st']}\", \"{$this->xml_array['mod_info']['title']['VALUE']}<br />Rebuilt the '{$s['set_name']}' skin cache...\" );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->ipsclass->input['step']++;\n\t\t\t\t\t\t\n\t\t\t$this->ipsclass->admin->redirect( \"{$this->ipsclass->form_code}&amp;code=work&amp;mod={$this->ipsclass->input['mod']}&amp;step={$this->ipsclass->input['step']}{$uninstall}&amp;st={$this->ipsclass->input['st']}\", \"{$this->xml_array['mod_info']['title']['VALUE']}<br />No more skins to rebuild...\" );\n\t\t}\n\t}", "public function setCacheDir(string $path);", "public function clearCachefiles () {\r\n\t\r\n\t}", "function mgd_cache_invalidate()\n{\n}", "protected function clearStatCache ($mPath) {\n if (is_array($mPath)) {\n foreach ($mPath as $sPath) {\n $this->clearStatCache($sPath);\n }\n } else {\n if (version_compare(PHP_VERSION, '5.3', '<')) {\n @clearstatcache(true);\n } else {\n @clearstatcache(true, $mPath);\n }\n }\n return $this;\n }", "public function cache() {\n\t\tif (count($this->args) === 1) {\n\t\t\tif ($this->args[0] === 'webroot') {\n\t\t\t\t$this->args = array('css', 'js');\n\t\t\t} elseif ($this->args[0] === 'app') {\n\t\t\t\t$this->args = array_values($this->caches);\n\t\t\t}\n\t\t}\n\t\tforeach ($this->args as $key => $val) {\n\t\t\tif (array_key_exists($val, $this->caches)) {\n\t\t\t\t$this->args[$key] = $this->caches[$val];\n\t\t\t}\n\t\t}\n\n\t\t$this->out('Deleting cache files:');\n\n\t\tif (empty($this->args)) {\n\t\t\t$this->_empty(CACHE);\n\t\t\t$this->out('Complete cache dir emptied');\n\t\t\treturn;\n\t\t}\n\t\tforeach ($this->args as $arg) {\n\t\t\tif (in_array($arg, array('css', 'js'))) {\n\t\t\t\t$this->{$arg}();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (!is_dir(CACHE . $arg)) {\n\t\t\t\t$this->err('No cache dir \\'' . $arg . '\\'');\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$this->_empty(CACHE . $arg);\n\t\t\t$this->out('Cache \\'' . $arg . '\\' deleted');\n\t\t}\n\n\t\tif (empty($this->args)) {\n\t\t\t$this->engines();\n\t\t}\n\t}", "public function setCachePath($path)\n {\n $this->options['cache_path'] = $path ?? $this->options['cache_path'];\n return $this;\n }", "private function clearCache() {\n\t\t\n\t\tCore\\Cache::clear();\n\t\t\n\t}", "public function clear_cache() {\n\t\tif (file_exists($this->cache_path)) {\n\t\t\tunlink($this->cache_path);\n\t\t}\n\t}", "function clearPreviewCache () {\n files::deleteFile($this->previewDir . $this->file);\n }", "protected function setCache()\n {\n if ($this->cache) {\n $cacheFile = $this->getCacheFile();\n $this->setupCachePath($cacheFile);\n file_put_contents($cacheFile, $this->templateOutput);\n }\n }", "public function clearCache() {\n\t\tif (isset($this->twig) && $this->twig instanceof \\Twig_Environment) {\n\t\t\t$cacheDir = $this->twig->getCache(true);\n\n\t\t\tif (isset($cacheDir) && \\is_string($cacheDir)) {\n\t\t\t\t$cacheFiles = new \\RecursiveIteratorIterator(\n\t\t\t\t\tnew \\RecursiveDirectoryIterator($cacheDir),\n\t\t\t\t\t\\RecursiveIteratorIterator::LEAVES_ONLY\n\t\t\t\t);\n\n\t\t\t\tforeach ($cacheFiles as $cacheFile) {\n\t\t\t\t\tif ($cacheFile->isFile()) {\n\t\t\t\t\t\t$filename = $cacheFile->getFilename();\n\n\t\t\t\t\t\tif (!empty($filename) && $filename[0] !== '.') {\n\t\t\t\t\t\t\t@\\unlink($cacheFile->getRealPath());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new TemplateManagerSetupError();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthrow new TemplateManagerSetupError();\n\t\t}\n\t}", "public function clear()\n {\n $this->_cache->clearByNamespace('/');\n }", "function clearCache () {\n $this->clearThumbCache ();\n $this->clearPreviewCache ();\n }", "public function reset() {\n $cacheFile = $this->getCacheFile();\n if ($cacheFile->isLocked()) {\n $this->initialize();\n return;\n }\n\n $cacheFile->lock();\n\n parent::reset();\n\n $this->includePaths = $this->getIncludePaths();\n $this->index = array();\n\n foreach ($this->includePaths as $includePath) {\n $this->indexDirectory($includePath);\n }\n\n foreach ($this->index as $key => $value) {\n sort($this->index[$key]);\n }\n\n $cacheParent = $cacheFile->getParent();\n $cacheParent->create();\n\n $cacheFile->write(serialize($this->index));\n $cacheFile->unlock();\n }", "public function setCacheFilePath($path = null) {\n if ($path !== null) {\n if (substr($path, -1) != DS) {\n $path .= DS;\n }\n $this->cacheFilePath = $path;\n return $this;\n }\n $this->cacheFilePath = CACHE_PATH;\n return $this;\n }", "public function setCompilePath($path)\n {\n\n if (is_writable($path)) {\n $this->_setSmartyParams('compile_dir', $path);\n return;\n }\n\t\t\n\t\t$this->_setSmartyParams('compile_dir', Package::buildPath(SITE_DIR, 'views', 'compile'));\n\t\t\n\t\treturn;\n //throw new Exception('Invalid compile path provided: ' . $path);\n }", "public function ResetCache ( )\r\n\t {\r\n\t\t$this -> CacheData\t= [] ;\r\n\t }", "function ClearCache()\n\t{\n\t\tglobal $gCms;\n\t\t$smarty =& $gCms->GetSmarty();\n\n\t\t$smarty->clear_all_cache();\n\t\t$smarty->clear_compiled_tpl();\n\n\t\tif (is_file(TMP_CACHE_LOCATION . '/contentcache.php'))\n\t\t{\n\t\t\tunlink(TMP_CACHE_LOCATION . '/contentcache.php');\n\t\t}\n\n\t\t@touch(cms_join_path(TMP_CACHE_LOCATION,'index.html'));\n\t\t@touch(cms_join_path(TMP_TEMPLATES_C_LOCATION,'index.html'));\n\t}", "public function recacheAction()\n {\n $kernel = $this->get('kernel');\n $application = new Application($kernel);\n $application->setAutoExit(false);\n\n $input = new ArrayInput([\n 'command' => 'cache:clear',\n '--env' => $kernel->getEnvironment(),\n '--no-warmup' => true,\n ]);\n $output = new NullOutput();\n $application->run($input, $output);\n\n // Remove flash message.\n $session = $this->get('session');\n $flashBag = $session->getFlashBag();\n $flashBag->get('warning_cache');\n\n return new RedirectResponse($this->admin->generateUrl('list'));\n }", "public function clearCache()\n\t{\n\t\tYii::app()->cache->delete('customurlrules');\n\t}", "public function clearCache()\n\t{\n\t\tYii::app()->cache->delete('customurlrules');\n\t}", "public function resetCaches() {\n $this->datasource = NULL;\n $this->server_object = NULL;\n $this->callbacks = NULL;\n $this->processors = NULL;\n $this->added_properties = NULL;\n $this->fields = array();\n $this->fulltext_fields = array();\n }", "protected function invalidateCache()\n {\n // \\Log::error('invalidate '.$this->getTag());\n \\Cache::tags($this->getTag())->flush();\n //\\Cache::prefixs($this->getTag())->flush();\n }", "public static function unsetCacheRebuildMark()\n {\n \\Includes\\Utils\\FileManager::deleteFile(\n static::getRebuildMarkFileName()\n );\n }", "function clear_cache() {\n $this->output->set_header(\"cache-control: no-store, no-cache, must-revalidate, no-transform, max-age=0, post-check=0, pre-check=0\");\n $this->output->set_header(\"Pragma:no-cache\");\n }", "public function compile($path)\n {\n $file = $this->files->get($path);\n $contents = Template::compile($file);\n\n if (!is_null($this->cachePath))\n {\n $compiledPath = $this->getCompiledPath($path);\n\n $this->files->put($compiledPath, $contents);\n }\n }", "protected function _clearDataCache() {}", "public function clearCache(){\n if(file_exists($this->file)){\n @unlink($this->file);\n }\n }", "protected function _clearCache() {\n\t\t\tCache::clear(false, '_cake_model_');\n\t\t\tClassRegistry::flush();\n\t\t}", "public function clearCache()\n {\n $files = $this->ls('/', 'cache');\n foreach ($files as $file)\n {\n if (is_dir($this->cachePath . '/' . $file))\n {\n $this->$this->recurciveDelete($this->cachePath . '/' . $file);\n } else\n {\n unlink($this->cachePath . '/' . $file);\n }\n }\n }", "public function setCachePath($cachepath)\n {\n $this->cachepath = $cachepath;\n $this->load();\n }", "protected function setCachePath(): void\n {\n $filename = basename($this->pathFile);\n\n $this->pathCache = $this->cacheDir.'/'.$filename;\n }", "public static function clearCache()\n {\n self::$cache = array();\n }", "public function clear_cache($template=FALSE) {\n\t\tif (!$template) {\n\t\t\t$this->smarty->clear_all_cache();\n\t\t} else {\n\t\t\t$this->smarty->clear_cache($template);\n\t\t}\n\t}", "public function clearCached()\n {\n $this->cached = null;\n }", "public function templateCacheStop(Opt_View $view)\n\t{\n\t\t$this->_cache->end();\n\t}", "public function clear () {\n array_map('unlink', glob(CACHE.\"*.cache\"));\n /*\n $files = scandir(CACHE);\n foreach ($files as $file){\n if (pathinfo($file, PATHINFO_EXTENSION) == 'cache') @unlink(CACHE.$file);\n }\n */\n }", "public function clearTreeNodeAttemptCache()\n {\n }", "public function clearCache()\n {\n flush_model_cache($this);\n }", "private function _clearCache()\n {\n Cache::forget(\"roaddamage-resource:{$this->id}\");\n foreach ($this->getReports() as $report) {\n Cache::forget(\"report-resource:{$report->id}\");\n }\n }", "function clearCache()\n {\n $cacheDir = $this->container->getParameter('kernel.cache_dir');\n\n $kernel = $this->container->get('kernel');\n\n $cacheDir = realpath($cacheDir.'/../');\n\n\n foreach (array (/*'frontdev','frontprod',*/'dev','prod') as $env)\n {\n foreach (array ('UrlGenerator','UrlMatcher') as $file)\n {\n $cachedFile = $cacheDir.'/'.$env.'/app'.ucfirst($env).$file.'.php';\n //print '<br>'.$cachedFile;\n if (file_exists($cachedFile)) @unlink ($cachedFile);\n\n\n $cachedFile = $cacheDir.'/'.$env.'/app'.$env.$file.'.php';\n //print '<br>'.$cachedFile;\n if (file_exists($cachedFile)) @unlink ($cachedFile);\n }\n }\n\n\n if (function_exists('apc_clear_cache')) apc_clear_cache('user');\n //exit();\n\n }", "private static function CLEAR_CACHE() {\n\t\tclearstatcache();\n\t}", "public function flush() {\n\n\t\tif ( !yourfitness_post( 'yourfitness_flush_compiler_cache' ) )\n\t\t\treturn;\n\n\t\tyourfitness_remove_dir( yourfitness_get_compiler_dir() );\n\n\t}", "function clear_cache($template, $cache_id=null, $compile_id=null, $expire=null)\n {\n\t\tif ($cache_id) {\n\t\t\t$cache_id = $this->module . '|' . $cache_id;\n\t\t} else {\n\t\t\t$cache_id = $this->module . '|' . $this->cache_id;\n\t\t}\n // the cache ID must not end on a |\n $cache_id = preg_replace('/\\|$/', '', $cache_id);\n\n return parent::clear_cache($template, $cache_id, $compile_id, $expire);\n }", "public function removeFromCache()\n {\n Cache::tags('file')->forget(strtolower($this->alias));\n }", "public static function removeCache() {\n\t}", "function clean_dirsize_cache($path)\n {\n }", "public function menu_reset_static_cache()\n {\n return menu_reset_static_cache();\n }", "public function compile($path = null)\n {\n if ($path) {\n $this->setPath($path);\n }\n\n $contents = $this->compileString($this->files->get($this->getPath()));\n\n if (!is_null($this->cachePath)) {\n $this->files->put($this->getCompiledPath($this->getPath()), $contents);\n }\n }", "function elgg_enable_filepath_cache() {\n\tglobal $CONFIG;\n\n\tdatalist_set('viewpath_cache_enabled',1);\n\t$CONFIG->viewpath_cache_enabled = 1;\n\telgg_filepath_cache_reset();\n}", "public function _assign_cache(&$tpl)\n {\n // dummy\n }", "function wp_cache_reset()\n {\n }", "public function clearCachedDefinitions();", "abstract protected function resetCompleteView();", "public function setCachePath($cachePath='')\n {\n if ($this->cache || !empty($cachePath)) {\n if (empty($cachePath)) {\n $this->cachePath = $this->templatesPath.'cache/';\n } else {\n $this->cachePath = $cachePath;\n }\n\n if (!file_exists($this->cachePath)) {\n if (!@mkdir($this->cachePath, 0775)) {\n $this->error(\"Attempt to create template cache path ({$this->cachePath}) failed.\");\n }\n }\n\n if (!is_readable($this->cachePath) || !is_writable($this->cachePath) || !is_dir($this->cachePath)) {\n $this->error(\"Template cache path ({$this->cachePath}) does not exist or is not accessible & writeable.\");\n }\n } else {\n $this->cachePath = null;\n }\n }", "private function changePathForLoadViews()\n {\n $file = 'Modules/' . ucfirst($this->module) . '/Providers/ModuleServiceProvider.php';\n $contents = $this->files->get($file);\n $contents = preg_replace('#loadViewsFrom(.*)/\\', \\'(.*)\\'\\)#', 'loadViewsFrom(resource_path(\\'views\\'), \\'$2\\')', $contents);\n $this->files->put($file, $contents);\n }", "protected function cleanCache()\n {\n parent::cleanCache('com_projectfork');\n }", "protected function flushCache()\n {\n $this->getCacheFactory()->forget('blocks');\n }", "public function clearCompiled(int $expTime);", "public function flushAll($which = null)\n {\n $this->view->getSmarty()->clearAllCache();\n }", "public function reloadCaches() {}", "public static function setPath($path){\n \\Illuminate\\View\\Compilers\\BladeCompiler::setPath($path);\n }", "function clear_cache() \r\n\t{ \r\n\t\tif($this->Auth->user('admin') == 1)\r\n\t\t{\r\n\t\t\t$cachePaths = array('views','persistent','models');\r\n\t \r\n\t\t\tforeach($cachePaths AS $config)\r\n\t\t\t{\r\n\t\t\t\tCache::config($config, array('path' => CACHE.$config.DS, 'prefix'=>'', 'engine'=>'File'));\r\n\t\t\t\tCache::clear(false, $config);\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\t$this->Session->setFlash('Limpieza de cache finalizada.', 'flash_success');\r\n\t\t\t$this->redirect(array('controller' => 'dashboard', 'action' => 'index'));\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$this->Session->setFlash('Ups!, ¿Que tratas de hacer?', 'flash_alert');\r\n\t\t\t$this->redirect(array('controller' => 'dashboard', 'action' => 'index'));\r\n\t\t}\r\n\t}", "public function reset() : void\n {\n $this->getFilesystemLoader()->reset();\n }", "public function reset()\n\t{\n\t\t$this->hasScripts = false;\n\t\t$this->cssFiles = array();\n\t\t$this->css = array();\n\t\t$this->scriptFiles = array();\n\t\t$this->scripts = array();\n\t\t$this->metaTags = array();\n\n\t\t$this->recordCachingAction('clientScript', 'reset', array());\n\t}", "protected function cleanCache()\n\t{\n\t\tparent::cleanCache('com_projectfork');\n\t}" ]
[ "0.6755502", "0.6510007", "0.6318863", "0.62819886", "0.62819886", "0.6277616", "0.62411577", "0.618651", "0.6050815", "0.5921917", "0.5921917", "0.591798", "0.5891743", "0.5886154", "0.58855027", "0.58695775", "0.58522725", "0.5842618", "0.58406943", "0.580009", "0.57936954", "0.57799745", "0.57678044", "0.5760281", "0.5751535", "0.5748858", "0.57433623", "0.5721394", "0.5720854", "0.56687754", "0.56611395", "0.56606585", "0.564311", "0.56317306", "0.558674", "0.55802244", "0.55617124", "0.5555941", "0.5547241", "0.55456376", "0.55435896", "0.55271065", "0.5514113", "0.5495921", "0.54848105", "0.5479556", "0.54527265", "0.54426855", "0.54388374", "0.5436791", "0.5430028", "0.5426256", "0.5358016", "0.53501785", "0.53501785", "0.53487957", "0.53465873", "0.5340629", "0.5340495", "0.5337083", "0.53347576", "0.5333057", "0.5331985", "0.5324074", "0.5320737", "0.53181916", "0.5298318", "0.5290438", "0.5282911", "0.52785563", "0.5276119", "0.52658504", "0.5259462", "0.523648", "0.52351564", "0.52344143", "0.5233575", "0.52270985", "0.52267534", "0.52209926", "0.5213187", "0.52099943", "0.52073884", "0.52051556", "0.5200462", "0.5199732", "0.5199373", "0.51885146", "0.51864886", "0.5186398", "0.5177616", "0.51727873", "0.5172291", "0.51488423", "0.5145884", "0.5141695", "0.5138176", "0.5136543", "0.5136106", "0.51159894" ]
0.7216506
0
Get view from one of the associated engines.
public function get(string $path): ViewInterface { if ($this->cache !== null && $this->cache->has($this->context, $path)) { return $this->cache->get($this->context, $path); } $view = $this->findEngine($path)->get($path, $this->context); if ($this->cache !== null) { $this->cache->set($this->context, $path, $view); } return $view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getView()\n {\n if ($this->view) {\n return $this->view;\n }\n\n $this->view = $this->services->get(View::class);\n return $this->view;\n }", "protected function findView()\n {\n // Get the overall route name (SomeController@someMethod)\n // Break it up into it's component parts\n $route = $this->route->currentRouteAction();\n $routeParts = explode('@', $route);\n\n if (count(array_filter($routeParts)) > 0) {\n $this->viewModel = new View($routeParts, null, true);\n\n // Check for a configured view route.\n if (! is_null($configView = $this->viewModel->checkConfig())) {\n $this->viewModel->type = 'config';\n\n return $configView;\n }\n\n $this->viewModel->type = 'auto';\n\n return $this->viewModel->getComponent();\n }\n\n return null;\n }", "public function getView()\n\t{\n\t\tif(NULL === $this->_view) {\n\t\t\t$this->_view = agoractu_view::getInstance();\n\t\t}\n\t\treturn $this->_view;\n\t}", "protected function getView()\n {\n return $this->view;\n }", "protected function _getCurrentView()\n {\n return db_get_row(\"SELECT * FROM ?:views WHERE user_id = ?i AND object = ?s\", $this->_auth['user_id'], 'lv_' . $this->_controller);\n }", "public function getView() {\n\t\treturn $this->view;\n\t}", "public function getView() {\n\t\treturn $this->view;\n\t}", "public function getView() {\r\n return $this->_view;\r\n }", "static public function getView() {\n\t\treturn self::$defaultInstance;\n\t}", "public function getView()\r\n {\r\n return $this->view;\r\n }", "public function getView()\n\t{\n\t\tif( !isset( $this->view ) ) {\n\t\t\tthrow new \\Aimeos\\Client\\Html\\Exception( sprintf( 'No view available' ) );\n\t\t}\n\n\t\treturn $this->view;\n\t}", "public function getView()\n {\n return $this->_view;\n }", "public function getView()\n {\n return $this->_view;\n }", "public function getView()\n {\n return $this->_view;\n }", "protected function getView($view)\n\t{\n\t\treturn $this->app['view']->exists($view) ? $view : 'conferencer::'.$view;\n\t}", "public function getView()\n {\n return $this->view;\n }", "public function getView()\n {\n return $this->view;\n }", "public function getView()\n {\n return $this->view;\n }", "public function getView()\n {\n return $this->view;\n }", "public function getView()\n {\n return $this->view;\n }", "public function getView()\n {\n return $this->view;\n }", "public function getView()\n {\n return $this->view;\n }", "public function getView()\n {\n return $this->view;\n }", "public function getView()\n\t{\n\t\treturn $this->_view;\n\t}", "public function getView()\n\t{\n\t\treturn $this->view;\n\t}", "public function getEngine();", "public function getEngine();", "public function getEngine();", "public function getView() {\n return $this->setView();\n }", "public function getView() {\n \t\n \t// Return the current view\n \treturn $this->sView;\n }", "function getView() {\r\n return $this->view;\r\n }", "function getView() {\n\t\treturn $this->View;\n\t}", "protected function getView()\n {\n $this->getBootstrap()->bootstrap('view');\n return $this->getBootstrap()->getResource('view');\n }", "public function getView()\n {\n $view = App::$locator->view;\n if ($this->layout) {\n $view->setLayout($this->layout);\n }\n \n return $view;\n }", "public function getView(){\n\t\treturn $this->view;\n\t}", "public function getEngine(): Engine\r\n {\r\n return $this->template;\r\n }", "public function getView()\n {\n return $this->getService('view');\n }", "public function getEngine(string $name = null): Engine;", "public function getView()\n {\n if ($this->_view === null) {\n $this->_view = Yii::$app->getView();\n }\n\n return $this->_view;\n }", "private function get_viewer_factory()\n\t{\n\t\tif ($this->current_factory === null)\n\t\t{\n\t\t\tif (count ($this->factories) == 1)\n\t\t\t{\n\t\t\t\t$z = array_values ($this->factories);\n\t\t\t\treturn $this->current_factory = $z[0];\n\t\t\t}\n\t\t\telse\n\t\t\t\tthrow new ViewConfigurationException ('no templating engine has been loaded');\n\t\t}\n\t\treturn $this->current_factory;\n\t}", "public function getEngine()\n {\n return $this;\n }", "public function getViewOrNull(string $name) {\n if (array_key_exists($name, $this->views)) {\n return $this->views[$name];\n }\n\n return null;\n }", "public function view(): ViewStrategyInterface\n {\n return $this->get(ViewStrategyInterface::class);\n }", "public function getView()\n {\n if (!$this->view) {\n $this->view = Kerisy::$app->get('view');\n $this->view->setDirectory($this->getViewPath());\n }\n return $this->view;\n }", "public function getViewFactory()\n {\n return $this->view;\n }", "public function getEngine ()\n {\n return $this->engine;\n }", "public function find($view);", "protected function _getDefaultView()\n {\n \trequire_once 'Zend/Environment/View.php';\n $view = new Zend_Environment_View();\n return $view;\n }", "public function getEngine()\n {\n return $this->engine;\n }", "public function getEngine()\n {\n return $this->engine;\n }", "public function getEngine()\n {\n return $this->engine;\n }", "public function getEngine()\n {\n return $this->engine;\n }", "public function getView();", "public function getView()\r\n {\r\n return $this->_controller->getView();\r\n }", "public function getView(): ViewInterface\n {\n return $this->view;\n }", "public function getEngine(): Engine;", "public function getEngine($name) {\n try {\n return $this->dependencyInjector->get('ride\\\\library\\\\template\\\\engine\\\\Engine', $name);\n } catch (DependencyNotFoundException $exception) {\n throw new EngineNotFoundException($name, $exception);\n }\n }", "public function getViewEnvironment()\n {\n return $this->view;\n }", "public function getEngine() {\n\t\treturn $this->engine;\n\t}", "function get_view()\n{\n return Zend_Registry::get('view');\n}", "public function getView() {}", "public function getView() {}", "public function getEngine()\n {\n $adapter = $this->getAdapter();\n\n if ($adapter) {\n return $adapter;\n }\n\n return ucfirst($this->dsn->scheme);\n }", "public function getEngine()\n\t{\n\t\treturn $this->engine;\n\t}", "public function getEngine() {\n return $this->engine;\n }", "public function getEngine() {\n return $this->engine;\n }", "function getEngine();", "public function getView()\n\t{\n\t\treturn $this->client->getView();\n\t}", "public function getView()\r\n {\r\n return parent::getView();\r\n }", "public function getEngine()\n {\n if (Mage::helper('conversionpro')->isActiveEngine()) {\n\t\t\treturn Mage::helper('conversionpro')->getSearchEngine();\n\t\t}\n\t\t\n\t\treturn parent::getEngine();\n }", "public function getView() {\n\t\treturn $this -> st_view;\n\t}", "public function setDefaultEngine(string $name): ViewManagerInterface;", "public function getEngine()\r\n\t{\r\n\t\treturn null;\r\n\t}", "protected static function getView()\n {\n return null;\n }", "public function getDefaultView(): ?string;", "protected function episodeViews()\n {\n return app(EpisodeViews::class);\n }", "public function defaultEngine()\n {\n $config = App::instance()->config();\n if (isset($config['view.default_engine'])) {\n return $config['view.default_engine'];\n } else {\n return 'mustache';\n }\n }", "public function loadPage()\n {\n $uri = Route::getFacadeRoot()->current()->uri();\n $view = $this->resolvePath($uri);\n\n return $view;\n }", "public function getView(){ }", "protected function getAnyStoreView()\n {\n $store = $this->_storeManager->getDefaultStoreView();\n if ($store) {\n return $store;\n }\n foreach ($this->_storeManager->getStores() as $store) {\n return $store;\n }\n return null;\n }", "abstract protected function getDefaultView();", "public function getEngine()\n {\n return $this->environment;\n }", "public function &getCurrentView()\n {\n return $this->_view;\n }", "public function get_view($view)\n {\n return Twig_Functions::get_module_view($this->_module_name, ($this->is_backend() ? 'backend/' : '').$view);\n }", "public function selectRenderer(ViewEvent $e)\n {\n $model = $e->getModel();\n\n if (!$model instanceof XmlModel) {\n // no XmlModel; do nothing\n return;\n }\n\n // XmlModel found\n return $this->renderer;\n }", "public function getView()\n {\n if (!$this->view) {\n $viewClass = $this->viewClass;\n $this->view = new $viewClass();\n\n $this->initializeViewAdditions();\n }\n\n return $this->view;\n }", "public function getView()\n {\n if (method_exists($this->module, 'getView')) {\n return $this->module->getView();\n }\n\n return parent::getView();\n }", "public function getView($viewName)\n {\n return isset($this->_views[$viewName]) ? $this->_views[$viewName] : BViewEmpty::i();\n }", "protected function resolveView() {}", "protected function resolveView() {}", "public function engine()\n {\n if ($this->engine === null) {\n return $this->defaultEngine();\n }\n\n return $this->engine;\n }", "protected function view()\n {\n return $this->app['view'];\n }", "abstract protected function getView();", "function &getTableOrView($name){\n\t\tif ( isset($this->_cache[__FUNCTION__][$name]) ){\n\t\t\treturn $this->_cache[__FUNCTION__][$name];\n\t\t}\n\t\t\n\t\t// This value is not cached yet .. we must calculate it.\n\t\t$data = $this->_parseSQL();\n\t\tforeach ( $data['tables'] as $index=>$table ){\n\t\t\tif ( $table['alias'] == $name ){\n\t\t\t\tif ( $table['type'] == 'subselect' ){\n\t\t\t\t\t$view =& new Dataface_View('unnamed_view',$table['value']);\n\t\t\t\t\t$this->_cache[__FUNCTION__][$name] =& $view;\n\t\t\t\t\treturn $view;\n\t\t\t\t} else {\n\t\t\t\t\t$tableref =& Dataface_Table::loadTable($table['value']);\n\t\t\t\t\t$this->_cache[__FUNCTION__][$name] =& $tableref;\n\t\t\t\t\treturn $tableref;\n\t\t\t\t}\n\t\t\t} else if ( $table['type'] == 'ident' and $table['value'] == $name ){\n\t\t\t\t$tableref =& Dataface_Table::loadTable($table['value']);\n\t\t\t\t$this->_cache[__FUNCTION__][$name] =& $tableref;\n\t\t\t\treturn $tableref;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public function view()\n {\n return $this->view;\n }", "public function view()\n {\n return $this->view;\n }", "public function getViewId();", "public function getView()\n {\n }", "public function GetViewClass ();", "public function getView(?HasPagePartsInterface $page = null): ?string;" ]
[ "0.63025", "0.6286577", "0.62120235", "0.60905695", "0.60787785", "0.6076536", "0.6076536", "0.6067355", "0.60541826", "0.605197", "0.60394907", "0.6023074", "0.6023074", "0.6023074", "0.59834933", "0.5983061", "0.5983061", "0.5983061", "0.5983061", "0.5983061", "0.5983061", "0.5983061", "0.5983061", "0.595853", "0.5948073", "0.59379774", "0.59379774", "0.59379774", "0.59322375", "0.59319896", "0.5914423", "0.5881695", "0.5881674", "0.5848792", "0.58269083", "0.5812412", "0.5754666", "0.57366925", "0.57293296", "0.56979257", "0.56731176", "0.56660956", "0.5661055", "0.5656528", "0.5645681", "0.5604037", "0.55864066", "0.55798966", "0.55744886", "0.55744886", "0.55744886", "0.55744886", "0.55720156", "0.55713916", "0.55345714", "0.55205065", "0.5519525", "0.5514422", "0.5511444", "0.550691", "0.55045974", "0.55045974", "0.55039895", "0.54965216", "0.5493916", "0.5493916", "0.54874414", "0.5480704", "0.5475988", "0.5475967", "0.5459435", "0.5432331", "0.5418649", "0.54112715", "0.54052997", "0.54024965", "0.53903234", "0.5376937", "0.5354953", "0.5354912", "0.5348155", "0.53216386", "0.53136677", "0.5296221", "0.52917415", "0.5281266", "0.52720904", "0.52405864", "0.5222964", "0.5222964", "0.52176046", "0.52087617", "0.52043355", "0.5202687", "0.5195182", "0.5195182", "0.51895946", "0.5188545", "0.5183893", "0.51822686" ]
0.53692573
78
Perform any initialization/setup actions, and check any prerequisites.
protected function _init() { return $this->_entity->getTypeStr() == 'order'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function init() {\n\n\t\tif ( ! $this->should_load() ) {\n\t\t\treturn;\n\t\t}\n\t\t$this->setup_admin();\n\t\t$this->setup_api();\n\t}", "public function init() {\n\t\trequire(__DIR__ . '/../setup-scripts/createExplicitUsers.php');\n\t\trequire(__DIR__ . '/../setup-scripts/createExplicitGroups.php');\n\t\trequire(__DIR__ . '/../setup-scripts/createExplicitGroupsDifferentOU.php');\n\t\tparent::init();\n\t}", "protected function _initialize()\n {\n $this->_setupRoles();\n $this->_setupResources();\n $this->_setupPrivileges();\n $this->_saveAcl();\n }", "public function setup(){\n\t\tparent::setup();\n\t\t//Do stuff...\n\t}", "public function setup() {\n\t\t$this->setupDetectors();\n\t\t$this->registerExceptionHandler();\n\t}", "public function setup()\n {\n $this->createCategories();\n $this->createProducts();\n }", "public function setup()\n\t{\n\t\t// we don't do anything here in the base class\n\t}", "private function setup()\r\n\t{ }", "abstract protected function checkInitialization();", "protected function init()\n {\n if (in_array('users', Mongez::getStored('modules'))) {\n $this->isUserModuleExits = true;\n }\n\n $this->info('Preparing data...');\n $this->initController();\n $this->initModel();\n $this->initResource();\n $this->initRepository();\n $this->initData();\n }", "private static function setup()\n {\n $files = ['Routes', 'Setup', 'Response'];\n $folder = static::$root.'Setup'.'/';\n\n self::call($files, $folder);\n\n $files = ['Database', 'Panel', 'Security', 'Maintenance', 'Loggin', 'Translator', 'App', 'Robots'];\n $folder = static::$root.'Setup/Documentations'.'/';\n\n self::call($files, $folder);\n\n $files = ['AppSetupException'];\n $folder = static::$root.'Setup/Exceptions'.'/';\n\n self::call($files, $folder);\n }", "public function setup() {\n\t\tadd_action( 'transition_post_status', array( $this, 'action_sync_on_transition' ), 10, 3 );\n\t\tadd_action( 'delete_post', array( $this, 'action_delete_post' ) );\n\t}", "public function setup() {\n\t\tadd_action( 'plugins_loaded', array( $this, 'manually_load_api' ), 100 );\n\t\tadd_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );\n\t\tadd_filter( 'plugin_row_meta', array( $this, 'filter_plugin_row_meta' ), 10, 4 );\n\t\tadd_action( 'admin_notices', array( $this, 'permalink_warning' ) );\n\t\tadd_action( 'admin_init', array( $this, 'flush_rewrites' ), 10000 );\n\t}", "public function setup() {}", "protected function doSetup(): void\n {\n }", "public function actionInit()\n {\n $this->initRoles($this->roles);\n $this->initPermissions($this->permissions);\n $this->initDependencies($this->dependencies);\n }", "abstract function setup();", "public function setUp() {\n try {\n $this->classname= $this->testClassName();\n $this->interfacename= $this->testClassName('I');\n } catch (IllegalStateException $e) {\n throw new PrerequisitesNotMetError($e->getMessage());\n }\n\n // Create an archive\n $this->tempfile= new TempFile($this->name);\n $archive= new Archive($this->tempfile);\n $archive->open(ARCHIVE_CREATE);\n\n $this->add($archive, $this->classname, '\n uses(\"util.Comparator\", \"'.$this->interfacename.'\");\n class '.$this->classname.' extends Object implements '.$this->interfacename.', Comparator { \n public function compare($a, $b) {\n return strcmp($a, $b);\n }\n }\n ');\n $this->add($archive, $this->interfacename, 'interface '.$this->interfacename.' { } ');\n $archive->create();\n \n // Setup classloader\n $this->classloader= new ArchiveClassLoader($archive);\n ClassLoader::getDefault()->registerLoader($this->classloader, TRUE);\n }", "abstract public function setup();", "abstract public function setup();", "abstract public function setup();", "abstract public function setup();", "public function setup()\n {\n //\n // we need to make sure that it is empty at the start of every\n // test\n InvokeMethod::onString(AllMatchingTypesList::class, 'resetCache');\n }", "public function setUp()\n {\n // 'This test has not been implemented yet.'\n return;\n\n $this->setupDomains();\n $this->setupCountries();\n $this->setupLanguages();\n $this->setupCategories();\n }", "public function init() {\n\n\t\t// Run an action so we can hook in beforehand\n\t\t$this->before( 'ubc_press_before_create_all_cpts' );\n\n\t\t// Determine which CPTs to create\n\t\t$this->determine();\n\n\t\t// Create the CPTs\n\t\t$this->create();\n\n\t\t// Run an action so we can hook in afterwards\n\t\t$this->after( 'ubc_press_after_create_all_cpts' );\n\n\t}", "private function init() {\n // Set environment variables MUST BE DONE IN THIS ORDER!\n self::initDefaultFormValues(); // Assign default values to forms\n self::initTablePriorityHash();\n self::initTableTypePriorityHash();\n self::initTableHash(); // assign tables.\n self::initTableColumnsHash(); // assign hash with column details.\n #self::initSurveyHash(); // Assign Surveys TODO Place this back in when surveys are merged.\n self::initAstroFilterHash(); // Assign Filters\n self::initQualityFlags(); // assign hash with column details for all quality flag tables.\n }", "public function init(){\n\n // Setup Application Environment\n if($this->environment != null && $this->client != null)\n $this->setupApplicationEnvironment();\n\n }", "public function setup() {\n\t\t$this->setup_menu();\n\t\t$this->enqueue_scripts();\n\t}", "public function setup() {\n // get files content\n $this->getFileContent();\n\n $this->filterMatches();\n \n // insert the document in db\n $this->insert();\n\n // init terms list\n $this->termsList = new TermsList();\n\n // save terms and relations\n $this->manageMatches();\n }", "public function startup(): void\n {\n $this->handleOnBootListeners();\n $this->initialize();\n $this->handleOnRunListeners();\n }", "public function startup(): void\n {\n $this->handleOnBootListeners();\n $this->initialize();\n $this->handleOnRunListeners();\n }", "private function init(): void\n {\n $this->initSuite();\n $cases = $this->getCaseNodes();\n foreach ($cases as $file => $nodeArray) {\n $this->initSuiteFromCases($nodeArray);\n }\n }", "public static function initialize()\n {\n //Can be used to setup things before the execution of the action\n return true;\n }", "public function setup(){\n parent::setup();\n //Do stuff...\n }", "public function setup()\n {\n }", "public function setup()\n {\n }", "public function setup()\n {\n }", "public function setup()\n {\n }", "protected function setUp()\n {\n $this->configure(new Loaded(), 'Loaded', true, false);\n }", "public static function setup()\n\t{\n\t\tif (false === self::$data_cache_provider)\n\t\t{\n\t\t\tself::$data_cache_provider = new aw_cache();\n\t\t}\n\t}", "public function setup() {\n\t}", "public function _postSetup()\n {\n }", "public function setup();", "public function setup();", "public static function init() {\n\t\tself::setup_actions();\n\t}", "private function ensureConfiguration(): void {\n if (!$this->_isInitialized) {\n $this->configure();\n $this->_isInitialized = true;\n }\n }", "abstract protected function setup();", "final public function initialize()\r\n\t{\r\n\t\t$initStrategy = $this->initializationStrategy;\r\n\r\n\t\tif (!$this->isKernelInitialized)\r\n\t\t{\r\n\t\t\tif ($initStrategy != null)\r\n\t\t\t\t$initStrategy->preInitialize();\r\n\r\n\t\t\tinclude($_SERVER[\"DOCUMENT_ROOT\"].BX_ROOT.\"/modules/main/lib/bxf.php\");\r\n\t\t\t$this->initializeKernel($initStrategy);\r\n\r\n\t\t\t$this->isKernelInitialized = true;\r\n\t\t}\r\n\r\n\t\tif (!empty($this->transferUri))\r\n\t\t{\r\n\t\t\t$transferUri = $this->transferUri;\r\n\t\t\t$this->transferUri = null;\r\n\r\n\t\t\t$this->transferUri($transferUri);\r\n\t\t\tdie();\r\n\t\t}\r\n\r\n\t\tif (!$this->isShellInitialized)\r\n\t\t{\r\n\t\t\t$this->initializeShell($initStrategy);\r\n\r\n\t\t\tif ($initStrategy != null)\r\n\t\t\t\t$initStrategy->postInitialize();\r\n\r\n\t\t\t$this->isShellInitialized = true;\r\n\t\t}\r\n\t}", "public function set_up_dependencies () {\n\t\tif (!Upfront_Permissions::current(Upfront_Permissions::BOOT)) wp_die(\"Nope.\");\n\t\tadd_action('admin_enqueue_scripts', array($this, 'enqueue_dependencies'));\n\t}", "public function isInitializeNeeded()\n {\n return true;\n }", "protected function setUp(): void\n\t{\n\t\t// Load in the common items so the system thinks we have an active login\n\t\tparent::setUp();\n\n\t\tnew ElkArte\\Themes\\ThemeLoader();\n\t}", "public function initializeAndCheck()\n {\n $this->initialize();\n $this->initializationState = $this->checkInitialization();\n if (!$this->initializationState) {\n throw new \\RuntimeException(\"database initialization failed\");\n }\n }", "public function setup() {\n\n\t\tif ( is_user_logged_in() ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( empty( $this->settings['site_key'] ) || empty( $this->settings['secret_key'] ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( $this->settings['login'] ) {\n\t\t\tadd_action( 'woocommerce_login_form', array( $this, 'add_to_login_form' ) );\n\t\t}\n\n\t\tif ( $this->settings['register'] ) {\n\t\t\tadd_action( 'woocommerce_register_form', array( $this, 'add_to_register_form' ) );\n\t\t\tadd_action( 'woocommerce_after_checkout_registration_form', array( $this, 'add_to_register_form' ) );\n\t\t\tadd_filter( 'woocommerce_process_registration_errors', array( $this, 'validate_register_form' ) );\n\t\t\tadd_filter( 'woocommerce_registration_errors', array( $this, 'validate_register_form' ) );\n\t\t}\n\n\t\tif ( $this->settings['reset_pass'] ) {\n\t\t\tadd_action( 'woocommerce_lostpassword_form', [ $this, 'add_to_reset_pass_form' ] );\n\t\t}\n\t}", "function quickSetUp()\n {\n $this->setUp(null, null, null, null, null);\n }", "private static function initializeResources()\n {\n if (self::$initialized) {\n return;\n }\n\n Resource::init();\n\n Resources\\User::init();\n Resources\\Application::init();\n Resources\\Identity::init();\n Resources\\Processor::init();\n Resources\\Merchant::init();\n Resources\\PaymentInstrument::init();\n Resources\\PaymentCard::init();\n Resources\\BankAccount::init();\n Resources\\Authorization::init();\n Resources\\Transfer::init();\n Resources\\Reversal::init();\n Resources\\Dispute::init();\n Resources\\Webhook::init();\n Resources\\Settlement::init();\n Resources\\Verification::init();\n Resources\\Evidence::init();\n Resources\\Token::init();\n Resources\\InstrumentUpdate::init();\n\n self::$initialized = true;\n }", "protected function _beforeInit() {\n\t}", "public function initialize()\n {\n if (file_exists($this->path.'init.php')) {\n require_once($this->path.'init.php');\n }\n }", "protected function setup(){\n }", "public static function run()\n\t{\n\t\tself::initialize(__class__);\n\t\t# Add post-init hooks here\n\t}", "protected function setUp(): void\n {\n DummyHookPlugin::$beforeHookCalled = 0;\n DummyHookPlugin::$beforeActionCalled = 0;\n DummyHookPlugin::$afterActionCalled = 0;\n DummyHookPlugin::$afterHookCalled = 0;\n DummyHookPluginSkipsActions::$skipStartIn = 'beforeHook';\n DummyHookPluginSkipsActions::$skipStartAt = 1;\n DummyConstrainedHookPlugin::$restriction = null;\n DummyConstrainedHookPluginAlt::$restriction = null;\n DummyConstrainedPlugin::$restriction = null;\n }", "protected function _init(){\n\t\t//Hook called at the beginning of self::run();\n\t}", "public function _before_init(){}", "public function initialiseComponentsAndServices()\n {\n $this->imager;\n $this->imageOptimize;\n $this->staticCache;\n $this->csrfInjection;\n $this->assetsPlatform;\n $this->cpAlerts;\n $this->redisDebug;\n $this->localDev;\n $this->feedMe;\n $this->blitz;\n }", "public function checkImportPrerequisites() {}", "protected function preInstCheck()\n {\n // PHP Version\n if(!version_compare(PHP_VERSION,$this->prereqs['phpversion'],'>=')) {\n $this->errors[] = array(\n 'check' => 'PHP-Version',\n 'required' => $this->prereqs['phpversion'],\n 'actual' => PHP_VERSION\n );\n }\n if(!version_compare(PHP_VERSION,$this->suggested['phpversion'],\">=\")) {\n $this->warnings[] = array(\n 'check' => 'PHP-Version',\n 'suggestion' => ( isset($suggestion_text['phpversion'][$lang]) ? $suggestion_text['phpversion'][$lang] : 'en'),\n 'actual' => PHP_VERSION\n );\n }\n // PHP Settings\n foreach($this->prereqs['phpsettings'] as $key => $value) {\n $actual_setting = ($temp=ini_get($key)) ? $temp : 0;\n if($actual_setting !== $value) {\n $this->errors[] = array(\n 'check' => 'PHP-Settings -&gt; '.$key,\n 'required' => $value,\n 'actual' => $actual_setting,\n );\n }\n }\n // Check if AddDefaultCharset is set\n $sapi = php_sapi_name();\n if(strpos($sapi,'apache') !== false || strpos($sapi,'nsapi') !== false ) {\n \tflush();\n \t$apache_rheaders = apache_response_headers();\n \tforeach($apache_rheaders as $h) {\n \t\tif(strpos($h,'html; charset') !== false && (!strpos(strtolower($h),'utf-8')) ) {\n \t\t\tpreg_match( '/charset\\s*=\\s*([a-zA-Z0-9- _]+)/', $h, $match );\n \t\t\t$apache_charset = $match[1];\n \t\t\t$this->errors[] = array(\n 'check' => 'Apache-Settings',\n 'required' => 'unset',\n 'actual' => $apache_charset,\n );\n \t\t}\n \t}\n }\n // check installer\n $seen = array();\n foreach($this->installdata as $file) {\n if(file_exists(__dir__.'/../data/'.$file)) {\n $seen[] = $file;\n }\n }\n if(count($seen)!=count($this->installdata)) {\n $this->errors[] = array(\n 'check' => $this->t('Installation data'),\n 'required' => implode(\"<br />\",$this->installdata),\n 'actual' => implode(\"<br />\",$seen)\n );\n }\n\n }", "protected function setup()\n\t{\n\t\tparent::setup();\n\n\t\t$this->model = new StoryModel($this->db);\n\t\t$this->authRequired['create'] = '/user/login';\n\t}", "public function setUp()\n\t{\n\t\t$this->state_data = new Blackbox_StateData();\n\t\t$this->target = new Blackbox_Target();\n\t}", "function setup() {}", "protected function setup()\n {\n //prepare your stuff\n }", "public function setup()\n {\n parent::setup();\n }", "public static function init()\n\t{\n\t\tself::initSettings();\n\t\tself::setupSettings();\n\t\tself::validateSettings();\n\t}", "function setup()\r\n {\r\n $this->logger = Logger::getLogger( CART_CONVERTER );\r\n //$this->logger->debug(\"main controller setup \" + current_time( \"timestamp\" ) );\r\n $this->cartController = CartController::getInstance();\r\n \r\n // create options panel\r\n $cartOptions = new CartOptionsController();\r\n $cartOptions->init();\r\n\r\n // init cron\r\n $cron = new CronController();\r\n\r\n // init report\r\n $report = new ReportController();\r\n\r\n do_action( 'cart_converter_setup_action' );\r\n }", "private function setup() {\n\n\t\tregister_activation_hook( __FILE__, array( $this, 'on_activation' ) );\n\t\tregister_deactivation_hook( __FILE__, array( $this, 'on_deactivation' ) );\n\n\t\tadd_action( 'bp_featured_members_user_added', array( $this, 'save_date' ) );\n\t\tadd_action( 'bp_fma_remove_featured', array( $this, 'remove_featured' ) );\n\t}", "function _initialize()\n {\n $CFG =& \\O2System\\load_class('Config', 'core');\n\n // If hooks are not enabled in the config file\n // there is nothing else to do\n\n if ($CFG->item('enable_hooks') == FALSE)\n {\n return;\n }\n\n // Grab the \"hooks\" definition file.\n // If there are no hooks, we're done.\n\n if (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/hooks.php'))\n {\n include(APPPATH.'config/'.ENVIRONMENT.'/hooks.php');\n }\n elseif (is_file(APPPATH.'config/hooks.php'))\n {\n include(APPPATH.'config/hooks.php');\n }\n\n\n if ( ! isset($hook) OR ! is_array($hook))\n {\n return;\n }\n\n $this->hooks =& $hook;\n $this->enabled = TRUE;\n }", "public function setUp() {\n\t\tparent::setUp();\n\t\tMonkey\\setUp();\n\n\t\t$this->setup_common_wp_stubs();\n\t}", "public function setUp()\n {\n $this->_standardLib = new \\App\\OOProgramming\\StandardLibrary;\n $this->_daughter = new \\App\\OOProgramming\\Daughter;\n }", "public function postSetup() \n {\n \\WScore\\Core::get( 'friends\\model\\Friends' );\n \\WScore\\Core::get( 'friends\\model\\Contacts' );\n $this->initDb( $this->front->request->getPost( 'initDb' ) );\n }", "public function setUp() {\n\t\t$this->student = StudentData::getStudent();\n\t\t$this->school = SchoolData::getSchool();\n\t}", "public function setUp() {\n\t\t$this->student = StudentData::getStudent();\n\t\t$this->school = SchoolData::getSchool();\n\t}", "public function setUp() {\n\t\t$this->student = StudentData::getStudent();\n\t\t$this->school = SchoolData::getSchool();\n\t}", "public function setUp() {\n\t\t$this->student = StudentData::getStudent();\n\t\t$this->school = SchoolData::getSchool();\n\t}", "public function setUp() {\n\t\t$this->student = StudentData::getStudent();\n\t\t$this->school = SchoolData::getSchool();\n\t}", "public function setup() {\n if ($this->pending) {\n return;\n }\n\n $this->fn->__invoke();\n }", "public function init()\n {\n $this->addAction('doStuff', 'performThingA');\n $this->addAction('doMoreStuff', 'performThingB');\n }", "public function setup()\n {\n if (! PluginRegistry::isLoaderSet()) {\n $loader = $this->getMockClass(\n 'CubicMushroom\\WordpressCore\\Component\\Plugin\\PluginLoader',\n array('hook')\n );\n PluginRegistry::setLoader(new $loader);\n }\n }", "protected function setUp()\n {\n if ($this->obj instanceof PHP_CompatInfo_Reference) {\n $this->ref = $this->obj->getAll();\n }\n if (isset($this->ref['extensions'])) {\n foreach ($this->ref['extensions'] as $extname => $opt) {\n if (!extension_loaded($extname)) {\n $this->markTestSkipped(\n \"The '$extname' extension is not available.\"\n );\n }\n }\n }\n }", "public function init() {\n//\t\tif (checkTable()) {\n//\t\t\t$this->model->upgrade();\n//\t\t}\n//\t\telse {\n\t\t\t$this->model->install();\n\t\t\t$this->loadDefaults();\n//\t\t}\n\t\t\n\t}", "public function setUp(): void\n {\n parent::setUp();\n $this->setupTestDatabase();\n\n if ($this->usingInMemoryDatabase()) {\n\n // Setup database, then setup User & default role\n $this->refreshDatabase();\n $this->setupUser();\n } elseif (!static::$initialized) {\n\n // Only refresh db once\n $this->refreshDatabase();\n static::$initialized = true;\n }\n }", "public function ensureTestSiteIsReady()\n {\n if (!$this->isSiteSetUp()) {\n $this->setUpSite();\n }\n\n if (!$this->isVersionPressInitialized()) {\n $this->copyVersionPressFiles();\n $this->initializeVersionPress();\n }\n }", "private function load_dependencies() {\n\n\t\t$this->loader = new Loader();\n\t\t$TSB_hooks_loader = new Init_Functions();\n\t\t$this->loader->add_action( 'init', $TSB_hooks_loader, 'app_output_buffer' );\n\n//\t\t$this->loader->add_action( 'init', \t$TSB_hooks_loader, 'remove_admin_bar' );\n\n\t}", "public function setup() {\n echo \"\\n\\nDeclaring Exchanges\\n\";\n foreach ($this->config['exchanges'] as $name => $config) {\n $exchange = $this->getExchange($name);\n $response = null;\n if (!$exchange->getManaged()) {\n echo \"Skipped : \";\n } else {\n $exchange->declareExchange();\n echo \"Declared: \";\n }\n echo $exchange->getName() . \"\\n\" ;\n }\n\n echo \"\\n\\nDeclaring Queues\\n\";\n foreach ($this->config['queues'] as $name => $config) {\n $queue = $this->getQueue($name);\n $response = null;\n if (!$queue->getManaged()) {\n echo \"Skipped : \";\n } else {\n $queue->declareQueue();\n echo \"Declared: \";\n }\n echo $queue->getName() . \"\\n\" ;\n }\n }", "protected function fixture_setup() {\r\n $this->service = SQLConnectionService::get_instance($this->configuration);\r\n test_data_setup($this->service);\r\n }", "function preInit() {\n\t\tPommo::requireOnce($this->_baseDir . 'inc/classes/log.php');\n\t\tPommo::requireOnce($this->_baseDir . 'inc/lib/safesql/SafeSQL.class.php');\n\t\tPommo::requireOnce($this->_baseDir . 'inc/classes/db.php');\n\t\tPommo::requireOnce($this->_baseDir . 'inc/classes/auth.php');\n\t\t\n\t\t// initialize logger\n\t\t$this->_logger = new PommoLog(); // NOTE -> this clears messages that may have been retained (not outputted) from logger.\n\t\t\n\t\t// read in config.php (configured by user)\n\t\t// TODO -> write a web-based frontend to config.php creation\n\t\t$config = PommoHelper::parseConfig($this->_baseDir . 'config.php');\n\t\t\n\t\t// check to see if config.php was \"properly\" loaded\n\t\tif (count($config) < 5)\n\t\t\tPommo::kill('Could not read config.php');\n\n\t\t$this->_workDir = (empty($config['workDir'])) ? $this->_baseDir . 'cache' : $config['workDir'];\n\t\t$this->_debug = (strtolower($config['debug']) != 'on') ? false : true; \n\t\t$this->_default_subscriber_sort = (empty($config['default_subscriber_sort'])) ? 'email' : $config['default_subscriber_sort'];\n\t\t$this->_verbosity = (empty($config['verbosity'])) ? 3 : $config['verbosity'];\n\t\t$this->_logger->_verbosity = $this->_verbosity;\n\t\t$this->_dateformat = ($config['date_format'] >= 1 && $cofig['date_format'] <= 3) ?\n\t\t\tintval($config['date_format']) : 1;\n\t\t\n\t\t// the regex strips port info from hostname\n\t\t$this->_hostname = (empty($config['hostname'])) ? preg_replace('/:\\d+$/i', '', $_SERVER['HTTP_HOST']) : $config['hostname'];\n\t\t$this->_hostport = (empty($config['hostport'])) ? $_SERVER['SERVER_PORT'] : $config['hostport'];\n\t\t$this->_ssl = (!isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) != 'on') ? false : true;\n\t\t$this->_http = (($this->_ssl) ? 'https://' : 'http://') . $this->_hostname;\n\t\tif ($this->_hostport != 80 && $this->_hostport != 443)\n\t\t\t$this->_http .= ':'.$this->_hostport;\n\t\t\t\n\t\t$this->_language = (empty($config['lang'])) ? 'en' : strtolower($config['lang']);\n\t\t$this->_slanguage = (defined('_poMMo_lang')) ? _poMMo_lang : false;\n\t\t\n\t\t// include translation (l10n) methods if language is not English\n\t\t$this->_l10n = FALSE;\n\t\tif ($this->_language != 'en') {\n\t\t\t$this->_l10n = TRUE;\n\t\t\tPommo::requireOnce($this->_baseDir . 'inc/helpers/l10n.php');\n\t\t\tPommoHelperL10n::init($this->_language, $this->_baseDir);\n\t\t}\n\t\t\n\t\t// set base URL (e.g. http://mysite.com/news/pommo => 'news/pommo/')\n\t\t// TODO -> provide validation of baseURL ?\n\t\tif (isset ($config['baseURL'])) {\n\t\t\t$this->_baseUrl = $config['baseURL'];\n\t\t} else {\n\t\t\t// If we're called from an outside (embedded) script, read baseURL from \"last known good\".\n\t\t\t// Else, set it based off of REQUEST\n\t\t\tif (defined('_poMMo_embed')) {\n\t\t\t\tPommo::requireOnce($this->_baseDir . 'inc/helpers/maintenance.php');\n\t\t\t\t$this->_baseUrl = PommoHelperMaintenance :: rememberBaseURL();\n\t\t\t} else {\n\t\t\t\t$baseUrl = preg_replace('@/(inc|setup|user|install|support(/tests)?|admin(/subscribers|/user|/mailings|/setup)?(/ajax|/mailing|/config)?)$@i', '', dirname($_SERVER['PHP_SELF']));\n\t\t\t\t$this->_baseUrl = ($baseUrl == '/') ? $baseUrl : $baseUrl . '/';\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t// make sure workDir is writable\n\t\tif (!is_dir($this->_workDir . '/pommo/smarty')) {\n\t\t\t\t\n\t\t\t$wd = $this->_workDir; $this->_workDir = null;\n\t\t\tif (!is_dir($wd))\n\t\t\t\tPommo::kill(sprintf(Pommo::_T('Work Directory (%s) not found! Make sure it exists and the webserver can write to it. You can change its location from the config.php file.'), $wd));\n\t\t\tif (!is_writable($wd))\n\t\t\t\tPommo::kill(sprintf(Pommo::_T('Cannot write to Work Directory (%s). Make sure it has the proper permissions.'), $wd));\n\t\t\tif (ini_get('safe_mode') == \"1\")\n\t\t\t\tPommo::kill(sprintf(Pommo::_T('Working Directory (%s) cannot be created under PHP SAFE MODE. See Documentation, or disable SAFE MODE.'), $wd));\n\t\t\tif (!is_dir($wd . '/pommo'))\n\t\t\t\tif (!mkdir($wd . '/pommo'))\n\t\t\t\t\tPommo::kill(Pommo::_T('Could not create directory') . ' ' . $wd . '/pommo');\n\t\t\tif (!mkdir($wd . '/pommo/smarty'))\n\t\t\t\tPommo::kill(Pommo::_T('Could not create directory') . ' ' . $wd . '/pommo/smarty');\n\t\t\t$this->_workdir = $wd;\n\t\t}\n\n\t\t// set the current \"section\" -- should be \"user\" for /user/* files, \"mailings\" for /admin/mailings/* files, etc. etc.\n\t\t$this->_section = preg_replace('@^admin/?@i', '', str_replace($this->_baseUrl, '', dirname($_SERVER['PHP_SELF'])));\n\t\t\n\t\t// initialize database link\n\t\t$this->_dbo = @new PommoDB($config['db_username'], $config['db_password'], $config['db_database'], $config['db_hostname'], $config['db_prefix']);\n\n\t\t// turn off debugging if in user area\n\t\tif($this->_section == 'user') {\n\t\t\t$this->_debug = false;\n\t\t\t$this->_dbo->debug(FALSE);\n\t\t}\n\t\t\n\t\t// if debugging is set in config.php, enable debugging on the database.\n\t\tif ($this->_debug) {\n\t\t\t\n\t\t\t// don't enable debugging in ajax requests unless verbosity is < 3 \n\t\t\tif (PommoHelper::isAjax() && $this->_verbosity > 2)\n\t\t\t\t$this->_debug = false;\n\t\t\telse\n\t\t\t\t$this->_dbo->debug(TRUE);\n\t\t}\n\n\t}", "private function load_dependencies() {\n\n\t\t/**\n\t\t * The class responsible for orchestrating the actions and filters of the\n\t\t * core theme.\n\t\t */\n\t\trequire_once 'class-custom-theme-loader.php';\n\n\t\t/**\n\t\t * The class responsible for defining all actions that occur in the public area.\n\t\t */\n\t\trequire_once 'public/class-theme-public.php';\n\n\t\t/**\n\t\t * The class responsible for defining all actions that occur in the admin area.\n\t\t */\n\t\trequire_once 'admin/class-theme-admin.php';\n\n\n\t\t$this->loader = new Wpt_Custom_Theme_Loader();\n\n\t}", "public function setUp() {\n\t\t$this->skipIf(!CakePlugin::loaded('Queue'), \"Plugin 'Queue' is not loaded\");\n\n\t\tparent::setUp();\n\t}", "public function setup()\r\n {\r\n /* Add meta boxes on the 'add_meta_boxes' hook. */\r\n add_action('add_meta_boxes', array(\r\n $this,\r\n 'addMetaBox'\r\n ));\r\n \r\n /* Save post meta on the 'save_post' hook. */\r\n add_action('save_post', array(\r\n $this,\r\n 'save'\r\n ), 10, 2);\r\n }", "private function init() {\n $this->initCronIntervalDescriptions();\n $this->initLastSaves();\n $this->initTotals();\n $this->initLastCronRunInfo();\n $this->initNextCronRunInfo();\n $this->initCurrentlyBeingDone();\n $this->initActiveSites();\n }", "protected function prepare(): void\n {\n config(['dluwang-auth.entities.permission' => \\Dluwang\\Auth\\Tests\\Permission::class]);\n $gate = $this->app->make(Gate::class);\n\n $gate->define('permission-test', function($user){\n return true;\n });\n\n $gate->policy(\\Dluwang\\Auth\\Tests\\User::class, UserPolicy::class);\n $this->artisan('dluwang-auth:install');\n $this->artisan('migrate');\n }", "protected function setUp() {\n\t\t$this->objectRegistry = new \\F3\\FLOW3\\Object\\TransientRegistry();\n\t}", "public function setup()\n\t{\n\t\tparent::setup();\n\t\t$this->testUser = self::createTestUser();\n\t}", "private function init(){\r\n\t\t$this->readDescriptionConfig();\r\n\t\t$this->readKeywordsConfig();\r\n\t\t$this->readMetaConfig();\r\n\t\t$this->readLinksConfig();\r\n\t\t$this->readScriptsConfig();\r\n\t}" ]
[ "0.7371136", "0.6971104", "0.69500965", "0.6942658", "0.6919854", "0.6869488", "0.67308307", "0.67111135", "0.668404", "0.665829", "0.66579115", "0.658791", "0.657339", "0.65374416", "0.65226513", "0.65145695", "0.6490477", "0.6478947", "0.64763874", "0.64763874", "0.64763874", "0.64763874", "0.64646155", "0.64545316", "0.6452558", "0.6416181", "0.6415027", "0.64144766", "0.6409226", "0.6394064", "0.6394064", "0.63895166", "0.6387688", "0.6384622", "0.63741827", "0.63741827", "0.63741827", "0.63741827", "0.6369414", "0.63656944", "0.6348828", "0.63408446", "0.63355035", "0.63355035", "0.63351065", "0.633481", "0.63210607", "0.63196564", "0.63196313", "0.63016534", "0.629828", "0.6284107", "0.62691534", "0.6268672", "0.6267973", "0.625808", "0.62488025", "0.6238177", "0.6225438", "0.6217863", "0.6215646", "0.62153095", "0.6214427", "0.6209963", "0.6205001", "0.62018156", "0.61997014", "0.6197273", "0.6189503", "0.61821735", "0.6178921", "0.61781764", "0.6171692", "0.6168665", "0.6167169", "0.6166275", "0.61600846", "0.6155872", "0.6155872", "0.6155872", "0.6155872", "0.6155872", "0.615457", "0.615249", "0.613871", "0.6138224", "0.6117322", "0.6109163", "0.6103042", "0.6093504", "0.60917693", "0.6090372", "0.60839397", "0.60767", "0.6063007", "0.6058525", "0.60581744", "0.60498154", "0.60468614", "0.6042795", "0.60376793" ]
0.0
-1
Apply the transform on any necessary data
public function _apply() { $order = $this->_entity; $data = $order->getArrayCopy(); $orderTotal = $data['grand_total'] - $data['shipping_total']; foreach (Order::getNonCashPaymentCodes() as $code) { $orderTotal += $data[$code]; } return array('order_total'=> $orderTotal); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function transform();", "protected function applyTransformation() {\n // no transformation for index\n }", "public static function transform(array $data)\n {\n self::transform_internal($data, -1);\n }", "public function __invoke($data) {\n return $this->transform($data);\n }", "public function transform(){\r\n\t\tswitch($this->processor){\r\n\t\t\tcase 'saxon':\r\n\t\t\t\t$this->runSaxon();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 'salbotron':\r\n\t\t\tdefault:\r\n\t\t\t\t$this->runSalbatron();\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "abstract public function transform(array $item);", "public function transform($data)\n {\n $this->resolveFieldMapping($data, $this->field_map);\n return $data;\n }", "abstract public function transform(Row $row);", "public function transform() {\n $input = DATABASE_XML;\t// default initial input\n for ($i = 0; $i < count($this->xslt); $i++) {\n $this->xslTransform($this->xslt[$i][\"xsl\"], $this->xslt[$i][\"param\"], $input);\n $input = TRANSFORMED_XML;\t// use result of last xsl transform for all subsequent inputs\n // if debugging is turned on, display transform information & output result\n // (particularly important for debugging more than one transform in a row)\n if ($this->debug) {\n\tprint \"XSLT transform with stylesheet \" . $this->xslt[$i][\"xsl\"];\n\tif (count($this->xslt[$i][\"param\"])) {\n\t print \"<br>\\nParameters: \\n\";\n\t foreach ($this->xslt[$i][\"param\"] as $key => $val) print \"$key => $val \\n\";\n\t}\n\tprint \"<br>\\n\";\n\tprint \"Result of transformation:<br>\\n\";\n\tprint $this->displayXML(TRANSFORMED_XML);\n }\n }\n // unbind used xslts\n unset($this->xslt);\n $this->xslt = array();\n }", "public static function transformer();", "function transform($data, $key, $transformedData = NULL)\n {\n return $this->getTransformerContainer()->transform($data, $key, $transformedData);\n }", "public function rewind()\n {\n $this->datasource->rewind();\n\n //Process the transformers\n if($this->valid())\n {\n $this->transformedData = $this->transform($this->datasource->current(), $this->datasource->key());\n }\n \n }", "private function doTransform($data, callable $func = null)\n {\n if (null === $func || null === $data) {\n return $data;\n }\n\n if (!is_array($data)) {\n $data = [$data];\n }\n\n return call_user_func_array($func, $data);\n }", "private function applyTransformation() {\n if($this->transform !== NULL) {\n $xsl = new DOMDocument();\n $xsl->load($this->transform);\n $xslt = new XSLTProcessor();\n $xslt->importStyleSheet($xsl);\n $document = $xslt->transformToDoc($this->document);\n if ($document) {\n $xpath = new DOMXPath($document);\n // Set the Label\n $results = $xpath->query(\"*[local-name()='title']\");\n $results->item(0)->nodeValue = $this->label;\n // Set the Pid\n $results = $xpath->query(\"*[local-name()='identifier']\");\n $results->item(0)->nodeValue = $this->pid;\n if (isset($document->documentElement)) {\n return $this->importNode($document->documentElement, TRUE);\n }\n }\n }\n return NULL;\n }", "public function transform($data)\n {\n $ret = array();\n\n foreach ($this->convertionRules as $source => $target) {\n $ret = $this->set($target, $ret, $this->get($source, $data));\n }\n\n return $ret;\n }", "public function transform()\r\n {\r\n // Retrieve and set the column headings.\r\n $headings = $this->getDiscreteColumnValues(0);\r\n \r\n // One of the retrieved headings does not appear in the first set of data and so is added to the end of the\r\n // headings. When parsing the data though it appears as the penultimate heading, and so the order of headings\r\n // needs to be adjusted so that it can be known when a set of data has been parsed and a new set is begining.\r\n // FURTHER DEVELOPMENT: Parse headings and generate the headings list in the order that they appear in each set\r\n // of data. Generate a warning if the heading order varies between sets of data or one heading does not appear\r\n // at the start of each set of data as this is required to know when one row ends and a new row is to be\r\n // generated.\r\n $headings[6] = $headings[4];\r\n $headings[4] = $headings[5];\r\n $headings[5] = $headings[6];\r\n \r\n // Add additional headings we want.\r\n $headings[6] = 'Title';\r\n $headings[7] = 'First Name';\r\n $headings[8] = 'Surname';\r\n \r\n // Create the new output CSV.\r\n $outputFile = new CsvFile();\r\n $outputFile->addRow($headings);\r\n \r\n // Set up a new empty row to fill with data.\r\n $emptyRow = [];\r\n for ($i = 0; $i < count($headings); ++$i) {\r\n $emptyRow[$i] = '';\r\n }\r\n \r\n // Loop over the data and build the rows.\r\n $row = $emptyRow;\r\n $lastIndex = 0;\r\n foreach ($this->data as $iRow => $data) {\r\n $heading = $data[0];\r\n $value = $data[1];\r\n \r\n $index = array_search($heading, $headings);\r\n \r\n // If the row is complete, add it to the output and start a new row.\r\n if ($index < $lastIndex) {\r\n $outputFile->addRow($row);\r\n $row = $emptyRow;\r\n }\r\n \r\n // Add the data to the row.\r\n $row[$index] = $value;\r\n $lastIndex = $index;\r\n \r\n // Split any name into the 3 parts.\r\n // FURTHER DEVELOPMENT: Use a library util function for this.\r\n if ($index === 0) {\r\n \r\n $titles = [\r\n 'Mr',\r\n 'Mrs',\r\n 'Miss',\r\n 'Ms',\r\n 'Dr',\r\n 'Major',\r\n 'Lt Col'\r\n ];\r\n \r\n // Find any title of the name.\r\n if (in_array(substr($value, 0, 4), $titles)) {\r\n $row[6] = substr($value, 0, 4);\r\n $value = substr($value, 5);\r\n } elseif (in_array(substr($value, 0, 3), $titles)) {\r\n $row[6] = substr($value, 0, 3);\r\n $value = substr($value, 4);\r\n } elseif (in_array(substr($value, 0, 2), $titles)) {\r\n $row[6] = substr($value, 0, 2);\r\n $value = substr($value, 3);\r\n }\r\n \r\n // Extract first name.\r\n $row[7] = substr($value, 0, strpos($value, ' '));\r\n \r\n // Extract surname;\r\n $row[8] = substr($value, strpos($value, ' ') + 1);\r\n }\r\n }\r\n \r\n // Add the last completed row.\r\n $outputFile->addRow($row);\r\n \r\n $outputFile->toFile('/home/tom/Desktop/new-physio-data.csv');\r\n }", "protected function preprocessData() {}", "public function transform(TransformableContract $model);", "public function testTransformData()\n {\n $request = new Request;\n $request->attributes->set('transformer', 'MJanssen\\Fixtures\\Transformer\\TestTransformer');\n\n $app = new Application();\n\n $service = new TransformerService($request, $app);\n\n $data = array('foo' => 'baz');\n\n $this->assertEquals($data, $service->transformHydrateData($data));\n $this->assertEquals($data, $service->transformExtractData($data));\n }", "protected function getTransformedData()\n {\n return $this->transformedData;\n }", "public function getTransformer();", "public function transform($data, int $limit = 10, int $time = 60): Data;", "public function transform($value);", "abstract protected function transformItem($item);", "final protected function transformFiles(&$files)\n {\n // ... transform?\n }", "public function transform()\n {\n $object = $this->resource;\n\n $data = $object instanceof Collection || $object instanceof AbstractPaginator\n ? $object->map([$this, 'transformResource'])->toArray()\n : $this->transformResource($object);\n\n if ($object instanceof AbstractPaginator) {\n $this->withMeta(array_merge(\n $this->getExtra('meta', []), Arr::except($object->toArray(), ['data'])\n ));\n }\n\n $data = array_filter(compact('data') + $this->extras);\n ksort($data);\n\n return $data;\n }", "abstract public function map($data);", "public function transform(array &$samples) : void\n {\n if ($this->idfs === null) {\n throw new RuntimeException('Transformer has not been fitted.');\n }\n\n foreach ($samples as &$sample) {\n foreach ($sample as $column => &$value) {\n if ($value > 0) {\n if ($this->dampening) {\n $value = 1.0 + log($value);\n }\n\n $value *= $this->idfs[$column];\n }\n }\n }\n }", "protected function transform($data)\n {\n $fractalManager = new Manager();\n $manager = $this->applyIncludes($fractalManager);\n $this->resetIncldues();\n $manager->setSerializer(new ArraySerializer());\n\n return $manager->createData($data)->toArray();\n }", "public function apply() {}", "public function apply();", "public function apply();", "public function transform($data) {\n\t\t\t$output = array();\n\t\t\t\n\t\t\t// Points array.\n\t\t\t$points = array();\n\t\t\t\n\t\t\t// Full name and A#\n\t\t\t$output['full_name'] = $this->nullCheck($data['answers'][1]['prettyFormat']);\n\t\t\t$output['a_number'] = $this->nullCheck($data['answers'][4]['answer']);\n\t\t\t\n\t\t\t// GPA Calculation.\n\t\t\t$output['gpa'] = round($data['answers'][5]['answer'], 2);\n\t\t\t$points['gpa'] = round(($data['answers'][5]['answer'] * 20), 2);\n\t\t\t\n\t\t\t// HESI Calculation.\n\t\t\tforeach(array(\n\t\t\t\t'hesi_reading' => 6,\n\t\t\t\t'hesi_math' => 7,\n\t\t\t\t'hesi_ap' => 8\n\t\t\t) as $name => $id) {\n\t\t\t\t$output[$name] = $data['answers'][$id]['answer'];\n\t\t\t\t$points[$name] = round(($data['answers'][$id]['answer'] * 0.05), 2);\n\t\t\t}\n\t\t\t\n\t\t\t// No Value Checks\n\t\t\t$output['vocab_gen'] = $this->boolCheck($data['answers'][25]['answer']);\n\t\t\t$output['personality_profile'] = $this->boolCheck($data['answers'][26]['answer']);\n\t\t\t$output['learning_style'] = $this->boolCheck($data['answers'][27]['answer']);\n\t\t\t\n\t\t\t// BIOLOGY Grades\n\t\t\tforeach(array(\n\t\t\t\t'biol2401' => array('id' => 12, 'completed' => 13),\n\t\t\t\t'biol2402' => array('id' => 14, 'completed' => 15),\n\t\t\t\t'biol2420' => array('id' => 16, 'completed' => 17)\n\t\t\t) as $name => $val) {\n\t\t\t\t$points[$name] = $this->gradeToBiolPoints($data['answers'][$val['id']]['answer'], $data['answers'][$val['completed']]['answer']);\n\t\t\t}\n\t\t\t\n\t\t\t// Bonus\n\t\t\tforeach(array(\n\t\t\t\t'hitt1305' => 18,\n\t\t\t\t'hitt1303' => 19,\n\t\t\t\t'hrps12011105' => 20\n\t\t\t) as $name => $id) {\n\t\t\t\t$points[$name] = $this->gradeToBonusPoints($data['answers'][$id]['answer']);\n\t\t\t}\n\t\t\t\n\t\t\tforeach(array(\n\t\t\t\t'cna' => array('id' => 21, 'points' => 3),\n\t\t\t\t'sixmonth' => array('id' => 22, 'points' => 2),\n\t\t\t\t'tjc_enrollment' => array('id' => 23, 'points' => 2),\n\t\t\t\t'indistrict' => array('id' => 24, 'points' => 3)\n\t\t\t) as $name => $val) {\n\t\t\t\t$points[$name] = $this->boolToPoints($data['answers'][$val['id']]['answer'], $val['points']);\n\t\t\t}\n\t\t\t\n\t\t\t$output['total_points'] = 0;\n\t\t\tforeach($points as $name => $val) {\n\t\t\t\t$output[($name . '_points')] = $val;\n\t\t\t\t$output['total_points'] += $val;\n\t\t\t}\n\n\t\t\treturn $output;\n\t\t}", "protected function _preFlatten() {}", "public function testTransform() {\n\t\t$this->object->addTransformer(new CropTransformer(array('width' => 100)));\n\t\t$this->object->addTransformer(new CropTransformer(array('height' => 100)));\n\n\t\ttry {\n\t\t\tif ($this->object->upload()) {\n\t\t\t\t$this->object->transform();\n\n\t\t\t\t$files = $this->object->getTransformedFiles();\n\n\t\t\t\t$this->assertEquals(2, count($files));\n\n\t\t\t\t$this->object->rollback();\n\t\t\t}\n\n\t\t\t$this->assertTrue(true);\n\n\t\t} catch (Exception $e) {\n\t\t\t$this->assertTrue(false, $e->getMessage());\n\t\t}\n\t}", "public function transform($transformer);", "public function transform($transformationType, $value);", "abstract protected function doActualConvert();", "public function transform()\n\t{\n\t\t$this->createCollection();\n\n\t\tif($this->hasPaginator) {\n\t\t\t$output = $this->tagCollection\n\t\t\t\t->setPaginator(\n\t\t\t\t\tnew IlluminatePaginatorAdapter($this->tag)\n\t\t\t\t);\n\t\t}\n\n\t\t$output = $this->manager\n\t\t\t->createData($output)\n\t\t\t->toJson();\n\n\t\treturn $output;\n\t}", "protected function runActualConvert()\n {\n $this->doActualConvert();\n }", "public function doProcessData() {}", "public function transform($array) {\n//\t\t\tld(\"transform\");\n//\t\t\tld(json_encode($array));\n\t\t\treturn json_encode($array);\n\t\t}", "public function transformCollection(array $items){\n return array_map([$this,'transform'], $items->toArray());\n }", "public function testTransform_null()\n {\n $this->assertNull($this->transformer->transform(null));\n }", "public function setData($data)\n {\n $this->data = $data;\n $this->normalizedData = $this->normalize($data);\n $this->transformedData = $this->transform($this->normalizedData);\n }", "public function transformDataProvider() {\n return [\n 'no arguments' => [\n 'definition' => [\n 'source' => [\n 'plugin' => 'embedded_data',\n 'data_rows' => [\n [\n 'id' => 1,\n 'title' => 'content item 1',\n 'term' => 'Apples',\n ],\n [\n 'id' => 2,\n 'title' => 'content item 2',\n 'term' => 'Bananas',\n ],\n [\n 'id' => 3,\n 'title' => 'content item 3',\n 'term' => 'Grapes',\n ],\n ],\n 'ids' => [\n 'id' => ['type' => 'integer'],\n ],\n ],\n 'process' => [\n 'id' => 'id',\n 'type' => [\n 'plugin' => 'default_value',\n 'default_value' => $this->bundle,\n ],\n 'title' => 'title',\n $this->fieldName => [\n 'plugin' => 'entity_generate',\n 'source' => 'term',\n ],\n ],\n 'destination' => [\n 'plugin' => 'entity:node',\n ],\n ],\n 'expected' => [\n 'row 1' => [\n 'id' => 1,\n 'title' => 'content item 1',\n $this->fieldName => [\n 'tid' => 2,\n 'name' => 'Apples',\n ],\n ],\n 'row 2' => [\n 'id' => 2,\n 'title' => 'content item 2',\n $this->fieldName => [\n 'tid' => 3,\n 'name' => 'Bananas',\n ],\n ],\n 'row 3' => [\n 'id' => 3,\n 'title' => 'content item 3',\n $this->fieldName => [\n 'tid' => 1,\n 'name' => 'Grapes',\n ],\n ],\n ],\n 'pre seed' => [\n 'taxonomy_term' => [\n 'name' => 'Grapes',\n 'vid' => $this->vocabulary,\n 'langcode' => LanguageInterface::LANGCODE_NOT_SPECIFIED,\n ],\n ],\n ],\n 'no arguments_lookup_only' => [\n 'definition' => [\n 'source' => [\n 'plugin' => 'embedded_data',\n 'data_rows' => [\n [\n 'id' => 1,\n 'title' => 'content item 1',\n 'term' => 'Apples',\n ],\n [\n 'id' => 2,\n 'title' => 'content item 2',\n 'term' => 'Bananas',\n ],\n [\n 'id' => 3,\n 'title' => 'content item 3',\n 'term' => 'Grapes',\n ],\n ],\n 'ids' => [\n 'id' => ['type' => 'integer'],\n ],\n ],\n 'process' => [\n 'id' => 'id',\n 'type' => [\n 'plugin' => 'default_value',\n 'default_value' => $this->bundle,\n ],\n 'title' => 'title',\n $this->fieldName => [\n 'plugin' => 'entity_lookup',\n 'source' => 'term',\n ],\n ],\n 'destination' => [\n 'plugin' => 'entity:node',\n ],\n ],\n 'expected' => [\n 'row 1' => [\n 'id' => 1,\n 'title' => 'content item 1',\n $this->fieldName => [\n 'tid' => NULL,\n 'name' => NULL,\n ],\n ],\n 'row 2' => [\n 'id' => 2,\n 'title' => 'content item 2',\n $this->fieldName => [\n 'tid' => NULL,\n 'name' => NULL,\n ],\n ],\n 'row 3' => [\n 'id' => 3,\n 'title' => 'content item 3',\n $this->fieldName => [\n 'tid' => 1,\n 'name' => 'Grapes',\n ],\n ],\n ],\n 'pre seed' => [\n 'taxonomy_term' => [\n 'name' => 'Grapes',\n 'vid' => $this->vocabulary,\n 'langcode' => LanguageInterface::LANGCODE_NOT_SPECIFIED,\n ],\n ],\n ],\n ];\n }", "public function map()\n {\n foreach ($this->rawData as $key => $value) {\n if (!empty($value) && array_key_exists($key, $this->mappedFields)) {\n $methodName = $this->mappedFields[$key];\n\n if (method_exists($this, $methodName)) {\n $this->resetIndex($this->mappedFields[$key]);\n $this->{$this->mappedFields[$key]}($key, $value, $this->getTemplateOf($key));\n }\n }\n }\n\n return $this->mappedData;\n }", "public function testTransform_invalid()\n {\n $this->transformer->transform('invalid');\n }", "public function getValueModelTransformer();", "private function processTransform($item, $crawler) {\n foreach ($this->transforms as $id => $transforms) {\n if ($item['id'] == $id) {\n foreach ($transforms as $transform) {\n switch ($transform['type']) {\n case 'tag':\n $tag = $crawler->filter($transform['tag']);\n if ($tag->count()) {\n $item[$transform['field']] = $tag->text();\n }\n break;\n\n case 'override':\n $item[$transform['field']] = $transform['text'];\n break;\n\n }\n }\n }\n }\n return $item;\n }", "public function withoutTransformer();", "abstract public function Convert($data);", "public function transform(array &$data)\n {\n // Adjust the response format data label\n\n $named = request()->route()->getName();\n switch ($named) {\n case 'member.user.index':\n $data['data'] = collect($data['data'])->map(function ($info) {\n /* Replace account */\n if (isset($info['account'])) {\n $info['account'] = str_pad(substr($info['account'], 0, 4), 8, '*');\n }\n if (isset($info['setting'])) {\n unset($info['setting']['pin']);\n }\n return collect($info)->forget([\n 'id',\n 'password',\n ])->all();\n })->all();\n break;\n case 'member.user.read':\n /* Replace account */\n if (isset($data['account'])) {\n $data['account'] = str_pad(substr($data['account'], 0, 4), 8, '*');\n }\n if (isset($data['setting'])) {\n unset($data['setting']['pin']);\n }\n $data = collect($data)->forget([\n 'id',\n 'password',\n ])->all();\n break;\n }\n }", "function apply() {\n\t\t$this->store();\n\t}", "protected function executeRenderPostTransformHook() {}", "public function processTransformationRules()\n {\n $rulesText = '';\n\n #-----------------------------------------------------------------------------\n # If auto-generated rules were specified, generate the rules,\n # otherwise, get the from the configuration\n #-----------------------------------------------------------------------------\n if ($this->configuration->getTransformRulesSource() === Configuration::TRANSFORM_RULES_DEFAULT) {\n $rulesText = $this->autoGenerateRules();\n } else {\n $rulesText = $this->configuration->getTransformationRules();\n }\n \n $tablePrefix = $this->configuration->getTablePrefix();\n $schemaGenerator = new SchemaGenerator($this->dataProject, $this->configuration, $this->logger);\n\n list($schema, $parseResult) = $schemaGenerator->generateSchema($rulesText);\n\n ###print \"\\n\".($schema->toString()).\"\\n\";\n\n $this->schema = $schema;\n\n return $parseResult;\n }", "public function getTransformResults()\n {\n return $this->transform_results;\n }", "public function transform($data = null)\n {\n\n if ($data === null) {\n return '';\n }\n\n if(!is_object($data)){\n return $data;\n }\n\n if($data->isExpired()){\n return 'XXX';\n }\n\n return $data->getData();\n }", "public function transform($item)\n {\n return parent::transform($item);\n }", "public function transform()\n {\n $post = $this->post; //short alias\n\n $post->load('author', 'comments.user');\n\n $comments = (new CommentCollectionTransformer($post->comments()->limit(self::COMMENT_LIMIT)->get()))->transform();\n\n $post = (new PostTransformer($post))->transform();\n\n return [\n 'data' => array_merge($post, ['comments' => $comments]),\n ];\n }", "public function normalizeData() : array;", "public function testTransform()\n {\n $img = new P4Cms_Image();\n $data = file_get_contents(TEST_ASSETS_PATH . '/images/luigi.png');\n $img->setData($data);\n\n // test the behavior of scale with width and height\n $img->transform('scale', array(258, 355));\n $this->assertSame(\n $img->getImageSize(),\n array('width' => 258, 'height' => 355),\n 'Expected image to be scaled to 258x355 pixels.'\n );\n\n // test the behavior of scale with width only\n // 516/710 = 400/h => h = 550\n $img->transform('scale', array(400));\n $this->assertSame(\n $img->getImageSize(),\n array('width' => 400, 'height' => 550),\n 'Expected image to be scaled to 300x300 pixels.'\n );\n\n // test the behavior of crop\n $img->transform('crop', array(100, 100, 50, 50));\n $this->assertSame(\n $img->getImageSize(),\n array('width' => 100, 'height' => 100),\n 'Expected image to be cropped to 100x100 pixels.'\n );\n\n // test the behavior of unsupported transform\n try {\n $img->transform('foo');\n $this->fail('Expected failure with an unsupported transform.');\n } catch (P4Cms_Image_Exception $e) {\n $this->assertSame($e->getMessage(), \"Transform \\\"foo\\\" is not supported.\");\n } catch (Exception $e) {\n $this->fail('Unexpected exception: '. $e->getMessage());\n }\n }", "protected function transform(\\ImageTransform\\Image $image)\r\n {\r\n $resource = $image->getAdapter()->getHolder();\r\n\r\n // Use GD's built in filter\r\n if (function_exists('imagefilter'))\r\n {\r\n // we have to check for the php version as alpha support was added to imagefilter/IMG_FILTER_COLORIZE in 5.2.5\r\n if (strnatcmp(phpversion(), '5.2.5') >= 0)\r\n {\r\n imagefilter($resource, IMG_FILTER_COLORIZE, $this->red_tint, $this->green_tint, $this->blue_tint, $this->alpha);\r\n }\r\n else\r\n {\r\n imagefilter($resource, IMG_FILTER_COLORIZE, $this->red_tint, $this->green_tint, $this->blue_tint);\r\n }\r\n }\r\n\r\n // Throw Exception....\r\n // Alpha not supported\r\n else\r\n {\r\n throw new \\ImageTransform\\Exception(\"Transformation not supported\");\r\n }\r\n\r\n return $image;\r\n }", "abstract public function transformResource($resource);", "public function transform(Closure $func): static;", "public function transform(array $record) : UserModelInterface;", "function array_transform($array, $function)\n{\n\tforeach ($array as &$element)\n\t\t$element = $function($element);\n\treturn $array;\n}", "public function getTransformedArray( ) {\n return \\IndustryTransformer::transform($this->prepareIndustryGreedyData());\n }", "public function applyFilters() {\n\t\tforeach ($this->filters as $filter) {\n\t\t\t$filter->apply($this);\n\t\t}\n\t\t$this->removeFilters();\n\t}", "public function setTransformer() {\n\t\tif ($this->isPassword()) {\n\t\t\t$this->addTransformer('password');\n\t\t} else {\n\t\t\t$dbType = $this->getDbType();\n\t\t\tif ($dbType == 'datetime') {\n\t\t\t\t$this->addTransformer('datetime');\n\t\t\t}\n\t\t}\n\t}", "abstract protected function to_features($calculatedvalues);", "public function traverse(callable $transformation);", "public function transform(array &$samples) : void\n {\n if ($this->intervals === null) {\n throw new RuntimeException('Transformer has not been fitted.');\n }\n\n foreach ($samples as &$sample) {\n foreach ($this->intervals as $column => $interval) {\n $value = &$sample[$column];\n\n foreach ($interval as $ordinal => $edge) {\n if ($value <= $edge) {\n $value = \"$ordinal\";\n\n break;\n }\n }\n }\n }\n }", "private function reformatData(): void\n {\n if($this->cover === \"null\") {\n $this->merge([ \"cover\"=> null ]);\n }\n }", "public function convert($data);", "public function transform(array &$samples) : void\n {\n if ($this->intervals === null) {\n throw new RuntimeException('Transformer has not been fitted.');\n }\n \n $last = end($this->categories);\n\n foreach ($samples as &$sample) {\n foreach ($this->intervals as $column => $interval) {\n $value = &$sample[$column];\n\n foreach ($interval as $k => $edge) {\n if ($value < $edge) {\n $value = $this->categories[$k];\n\n continue 2;\n }\n }\n\n $value = $last;\n }\n }\n }", "public function initializeObject() {\n\t\t$transformClassNames = static::getTransformImplementationClassNames($this->objectManager);\n\t\tforeach ($transformClassNames as $transformClassName) {\n\t\t\t/** @var TransformInterface $transform */\n\t\t\t$transform = $this->objectManager->get($transformClassName);\n\t\t\tif (isset($this->transforms[$transform->getAttributeType()][$transform->getPriority()])) {\n\t\t\t\tthrow new DuplicateTransformException('There is more than one transform that can transform the attribute type ' . $transform->getAttributeType() . ' with priority ' . $transform->getPriority() . ' and ' . get_class($transform) . '.', 1391459078);\n\t\t\t}\n\t\t\t$this->transforms[$transform->getAttributeType()][$transform->getPriority()] = $transform;\n\t\t}\n\t}", "function clearTransformers()\n {\n $this->getTransformerContainer()->clearTransformers();\n }", "public function default_transform( $args ) {\n\t\t\t// Override the default transform.\n\t\t\t$default_method = apply_filters( 'photonfill_default_transform', 'center_crop' );\n\t\t\t// If an external method is defined use it as default.\n\t\t\tif ( function_exists( $default_method ) ) {\n\t\t\t\treturn $default_method( $args );\n\t\t\t} elseif ( method_exists( $this, $default_method ) ) {\n\t\t\t\treturn $this->$default_method( $args );\n\t\t\t}\n\t\t\treturn $this->center_crop( $args );\n\t\t}", "public function transform($value, $field, $source, $destination);", "private function transform(array $trace)\n {\n return $this->getPass()->transform($trace);\n }", "public function applyData($data): ?array;", "function map(callable $transform): callable\n{\n return function ($step) use ($transform) {\n return function ($acc, $val, $idx) use (\n $step,\n $transform\n ) {\n return $step($acc, $transform($val), $idx);\n };\n };\n}", "private function transformCollection($vendas)\n {\n return array_map([$this, 'transform'], $vendas->toArray());\n }", "protected function processData($data)\n {\n $this->data = array_replace_recursive($this->data, $data);\n }", "private function convertData() {\n\t\tforeach ($this->Data as $i => $Data) {\n\t\t\t$Points = array();\n\t\t\tforeach ($Data['data'] as $x => $y) {\n\t\t\t\t$Points[] = array($x, $y);\n\t\t\t}\n\t\t\t$this->Data[$i]['data'] = $Points;\n\t\t}\n\n\t\tif (Configuration::ActivityView()->smoothCurves() && !isset($this->Options['series']['curvedLines']['apply']))\n\t\t\t$this->Options['series']['curvedLines']['apply'] = true;\n\n\t\tif (empty($this->Data) && strlen($this->ErrorString) == 0)\n\t\t\t$this->raiseError('Es sind keine Daten vorhanden.');\n\t}", "static function registerTransform($class, $name=false) {\n static::$transforms[$name ?: $class::$name] = [get_called_class(), $class];\n }", "public function processData() {\n\t\t$GLOBALS['TCA'] = \\BusyNoggin\\BnBackend\\BackendLibrary::removeExcludeFields($GLOBALS['TCA']);\n\t}", "function __processDocumentFieldArray($document, $data) {\n\t\tforeach ($data as $fieldname => $value) {\n\t\t\tif (!isset($this->__transSchema[$fieldname])) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tif (preg_match('/.*_dt/u', $this->__transSchema[$fieldname])) {\n\t\t\t\t\t$document->setField($this->__transSchema[$fieldname], $this->__makeSolrTime($value));\n\t\t\t\t} else {\n\t\t\t\t\t$document->setField($this->__transSchema[$fieldname], $value);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (array_key_exists($fieldname, $this->__boostTable)) {\n\t\t\t\t$document->setFieldBoost($this->__transSchema[$fieldname], $this->__boostTable[$fieldname]);\n\t\t\t}\n\t\t}\n\t\treturn $document;\n\t}", "public function ApplyChanges()\n {\n parent::ApplyChanges();\n\n // Update data\n $this->Update();\n }", "public function processData() {\r\r\n if ( is_array($this->data) && isset($this->data['args']) )\r\r\n $this->args = array_merge($this->args, $this->data['args']);\r\r\n\r\r\n if ( is_array($this->data) && isset($this->data['value']) ) {\r\r\n // If called from back-end non-post context\r\r\n $this->e_data = $this->decode_param($this->data['value']);\r\r\n $this->data = $this->encode_param($this->data['value']);\r\r\n } else {\r\r\n // POST method or something else\r\r\n $this->e_data = $this->decode_param($this->data);\r\r\n $this->data = $this->encode_param($this->data);\r\r\n }\r\r\n /**\r\r\n * At this point the this->data variable surely contains the encoded data, no matter what.\r\r\n */\r\r\n }", "public function process($data);", "public function transform()\n\t{\n\t\t$this->createCollection();\n\n\t\tif($this->hasPaginator) {\n\t\t\t$output = $this->ticketCollection\n\t\t\t\t->setPaginator(\n\t\t\t\t\tnew IlluminatePaginatorAdapter($this->ticket)\n\t\t\t\t);\n\t\t}\n\n\t\t$output = $this->manager\n\t\t\t->createData($output)\n\t\t\t->toJson();\n\n\t\treturn $output;\n\t}", "private function initializeTransformers()\n {\n $this->transformers = [];\n\n foreach ($this->configuration->get(Configuration::KEY_TRANSFORMERS) as $transformerClass) {\n $this->transformers[$transformerClass] = new $transformerClass(\n ...$this->getTransformerDependencies($transformerClass)\n );\n }\n }", "public function runFilter( array $context )\n {\n foreach ( $context as $element )\n {\n if ( $element->status !== ezcTranslationData::TRANSLATED )\n {\n $element->translation = self::borkify( $element->original );\n }\n }\n }", "public function processData() {\r\r\n if ( is_array($this->data) && isset($this->data['args']) )\r\r\n $this->args = array_merge($this->args, $this->data['args']);\r\r\n\r\r\n if ( is_array($this->data) && isset($this->data['value']) ) {\r\r\n // If called from back-end non-post context\r\r\n $this->data = $this->data['value'];\r\r\n }\r\r\n }", "public function toArray()\n {\n $data = $this->getData();\n\n foreach ($this->transformers as $transformer) {\n $data = $transformer->transform($data);\n }\n\n return $data;\n }", "public function transformCollection(array $items)\n {\n return array_map([$this, 'transform'], $items);\n }", "function data_preprocessing(&$default_values){\n }", "public function next()\n\t{\n\n //Move to the next element\n $this->datasource->next();\n\n //Process the transformers\n if($this->valid())\n {\n $this->transformedData = $this->transform($this->datasource->current(), $this->datasource->key());\n }\n\n\t}", "protected function transform()\n {\n // Check if the XSL file exists\n if (!file_exists($this->config['xsl'])) {\n $this->logger->debugTranslate(\n 'htmlconversion.converter.xslFileNotFoundLog'\n );\n return false;\n }\n\n $xsl = new DOMDocument;\n if (!$xsl->load($this->config['xsl'])) {\n $this->logger->debugTranslate(\n 'htmlconversion.converter.xslLoadErrorLog',\n $this->libxmlErrors()\n );\n return false;\n }\n\n $xslt = new XSLTProcessor;\n $xslt->importStylesheet($xsl);\n\n // Transform the document\n if (!($this->htmlDom = $xslt->transformToDoc($this->nlmxmlDom))) {\n $this->logger->debugTranslate(\n 'htmlconversion.converter.transformErrorLog',\n $this->libxmlErrors()\n );\n\n return false;\n };\n\n $this->logger->debugTranslate(\n 'htmlconversion.converter.transformsSuccessLog',\n $this->htmlDom->saveHTML()\n );\n\n return true;\n }" ]
[ "0.7787396", "0.7572231", "0.64654326", "0.63993585", "0.6234251", "0.62185454", "0.61841017", "0.61674094", "0.61380464", "0.6086781", "0.59896064", "0.5961247", "0.59025306", "0.58969814", "0.5863199", "0.580089", "0.57142544", "0.5710815", "0.5665417", "0.56329906", "0.558309", "0.5533012", "0.55247045", "0.55026776", "0.5499223", "0.54894155", "0.548167", "0.54248077", "0.5422632", "0.5395293", "0.5367801", "0.5367801", "0.53161716", "0.52931666", "0.52695227", "0.5259846", "0.52255327", "0.5213441", "0.5212129", "0.5211443", "0.51637226", "0.51300883", "0.51263124", "0.5106017", "0.5100485", "0.50991315", "0.5077823", "0.5076382", "0.5075552", "0.50692433", "0.5063418", "0.50589836", "0.50333536", "0.50009644", "0.4993849", "0.49829173", "0.4979982", "0.49614376", "0.49398875", "0.49395376", "0.4937805", "0.49306795", "0.49261585", "0.4899164", "0.48990428", "0.48948175", "0.4894788", "0.48731452", "0.48713446", "0.48672244", "0.4866045", "0.48641893", "0.4860679", "0.4834213", "0.48329186", "0.48327988", "0.4830914", "0.48271683", "0.48114586", "0.48105234", "0.48074293", "0.48070666", "0.48043552", "0.4795232", "0.47916296", "0.47793686", "0.47784668", "0.47696224", "0.47611305", "0.47465214", "0.47366935", "0.47271407", "0.47256982", "0.4724898", "0.4719563", "0.47177455", "0.47157115", "0.47042927", "0.46917543", "0.46874443", "0.4672395" ]
0.0
-1
Verify different email addresses
public function email($id) { $user = $this->user->find($id); return view('partials.users.email')->with('user', $user)->with('email_nav', true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function verifyContainsEmail(): bool\n {\n $words = explode(' ', $this->input);\n foreach ($words as $word) {\n if (static::isValidEmail($word)) {\n return true;\n }\n }\n \n return false;\n }", "function isEmail($verify_email) {\n\t\n\t\treturn(preg_match(\"/^[-_.[:alnum:]]+@((([[:alnum:]]|[[:alnum:]][[:alnum:]-]*[[:alnum:]])\\.)+(ad|ae|aero|af|ag|ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|museum|mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw)$|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\\.){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i\",$verify_email));\n\t\n\t}", "public function testMyGmailAddressIsEvaluatedAsTrue()\n {\n $this->assertTrue(EmailValidator::validate(\"ivanicspeter92@gmail.com\"));\n }", "function check_email_address($email) {\n # Check @ symbol and lengths\n if (!ereg(\"^[^@]{1,64}@[^@]{1,255}$\", $email)) {\n return false;\n }\n\n # Split Email Address into Sections\n $email_array = explode(\"@\", $email);\n $local_array = explode(\".\", $email_array[0]);\n\n # Validate Local Section of the Email Address\n for ($i = 0; $i < sizeof($local_array); $i++) {\n if (!ereg(\"^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\\.-]{0,63})|(\\\"[^(\\\\|\\\")]{0,62}\\\"))$\", $local_array[$i])) {\n return false;\n }\n }\n\n # Validate Domain Section of the Email Address\n if (!ereg(\"^\\[?[0-9\\.]+\\]?$\", $email_array[1])) {\n $domain_array = explode(\".\", $email_array[1]);\n\n # Check the number of domain elements\n if (sizeof($domain_array) < 2) {\n return false;\n }\n\n # Sanity Check All Email Components\n for ($i = 0; $i < sizeof($domain_array); $i++) {\n if (!ereg(\"^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$\", $domain_array[$i])) {\n return false;\n }\n }\n }\n\n # If All Validation Checks have Passed then Return True\n return true;\n }", "public function isEmail();", "function is_valid_email($address) {\n $fields = preg_split(\"/@/\", $address, 2);\n if ((!preg_match(\"/^[0-9a-z]([-_.]?[0-9a-z])*$/i\", $fields[0])) || (!isset($fields[1]) || $fields[1] == '' || !is_valid_hostname_fqdn($fields[1], 0))) {\n return false;\n }\n return true;\n}", "public function testMultipleValidatorsEmailValidation(): void\n {\n $builder = new ValidationBuilder();\n $builder->validate(\"email\", function (Field $field): void {\n $field->email(\"rfc\", \"dns\");\n });\n\n $rules = $builder->getRules();\n\n $this->assertCount(1, $rules);\n $this->assertEquals([\"email:rfc,dns\"], $rules[\"email\"]);\n }", "function isEmail($email) {\nreturn(preg_match(\"/^[-_.[:alnum:]]+@((([[:alnum:]]|[[:alnum:]][[:alnum:]-]*[[:alnum:]])\\.)+(ad|ae|aero|af|ag|ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|museum|mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw)$|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\\.){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i\",$email));\n}", "function verify_email($email) // Colorize: green\n { // Colorize: green\n return isset($email) // Colorize: green\n && // Colorize: green\n is_string($email) // Colorize: green\n && // Colorize: green\n filter_var($email, FILTER_VALIDATE_EMAIL); // Colorize: green\n }", "function CheckEmailAddress($addr,&$valid)\n{\n global $TARGET_EMAIL;\n\n $valid = \"\";\n $list = explode(\",\",$addr);\n for ($ii = 0 ; $ii < count($list) ; $ii++)\n {\n\t\t$email = UnMangle($list[$ii]);\n for ($jj = 0 ; $jj < count($TARGET_EMAIL) ; $jj++)\n if (eregi($TARGET_EMAIL[$jj],$email))\n {\n if (empty($valid))\n \t$valid = $email;\n else\n $valid .= \",\".$email;\n }\n }\n return (!empty($valid));\n}", "function email_ok($email,$new=FALSE){\n if(empty($email)) return FALSE;\n if(!preg_match($this->pat_email,$email)) return FALSE;\n if(!$new) return TRUE;\n foreach($this->domains as $umd)\n if($umd->newemail_ok($email)>0) return FALSE;\n return TRUE;\n }", "function oos_validate_is_email($sEmail) {\n $bValidAddress = true;\n\n $mail_pat = '^(.+)@(.+)$';\n $valid_chars = \"[^] \\(\\)<>@,;:\\.\\\\\\\"\\[]\";\n $atom = \"$valid_chars+\";\n $quoted_user='(\\\"[^\\\"]*\\\")';\n $word = \"($atom|$quoted_user)\";\n $user_pat = \"^$word(\\.$word)*$\";\n $ip_domain_pat='^\\[([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})\\]$';\n $domain_pat = \"^$atom(\\.$atom)*$\";\n\n if (eregi($mail_pat, $sEmail, $components)) {\n $user = $components[1];\n $domain = $components[2];\n // validate user\n if (eregi($user_pat, $user)) {\n // validate domain\n if (eregi($ip_domain_pat, $domain, $ip_components)) {\n // this is an IP address\n \t for ($i=1;$i<=4;$i++) {\n \t if ($ip_components[$i] > 255) {\n \t $bValidAddress = false;\n \t break;\n \t }\n }\n } else {\n // Domain is a name, not an IP\n if (eregi($domain_pat, $domain)) {\n /* domain name seems valid, but now make sure that it ends in a valid TLD or ccTLD\n and that there's a hostname preceding the domain or country. */\n $domain_components = explode(\".\", $domain);\n // Make sure there's a host name preceding the domain.\n if (count($domain_components) < 2) {\n $bValidAddress = false;\n } else {\n $top_level_domain = strtolower($domain_components[count($domain_components)-1]);\n // Allow all 2-letter TLDs (ccTLDs)\n if (eregi('^[a-z][a-z]$', $top_level_domain) != 1) {\n $sTld = get_all_top_level_domains();\n if (eregi(\"$sTld\", $top_level_domain) == 0) {\n $bValidAddress = false;\n }\n }\n }\n } else {\n \t $bValidAddress = false;\n \t }\n \t}\n } else {\n $bValidAddress = false;\n }\n } else {\n $bValidAddress = false;\n }\n if ($bValidAddress && ENTRY_EMAIL_ADDRESS_CHECK == '1') {\n if (!checkdnsrr($domain, \"MX\") && !checkdnsrr($domain, \"A\")) {\n $bValidAddress = false;\n }\n }\n return $bValidAddress;\n }", "private function _legacy_email_is_valid($email) {\n\t\t$valid_address = true;\n\n\t\t$mail_pat = '^(.+)@(.+)$';\n\t\t$valid_chars = \"[^] \\(\\)<>@,;:\\.\\\\\\\"\\[]\";\n\t\t$atom = \"$valid_chars+\";\n\t\t$quoted_user='(\\\"[^\\\"]*\\\")';\n\t\t$word = \"($atom|$quoted_user)\";\n\t\t$user_pat = \"^$word(\\.$word)*$\";\n\t\t$ip_domain_pat='^\\[([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})\\]$';\n\t\t$domain_pat = \"^$atom(\\.$atom)*$\";\n\n\t\tif (preg_match(\"/$mail_pat/\", $email, $components)) {\n\t\t\t$user = $components[1];\n\t\t\t$domain = $components[2];\n\t\t\t// validate user\n\t\t\tif (preg_match(\"/$user_pat/\", $user)) {\n\t\t\t\t// validate domain\n\t\t\t\tif (preg_match(\"/$ip_domain_pat/\", $domain, $ip_components)) {\n\t\t\t\t\t// this is an IP address\n\t\t\t\t\tfor ($i=1;$i<=4;$i++) {\n\t\t\t\t\t\tif ($ip_components[$i] > 255) {\n\t\t\t\t\t\t\t$valid_address = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// Domain is a name, not an IP\n\t\t\t\t\tif (preg_match(\"/$domain_pat/\", $domain)) {\n\t\t\t\t\t\t/* domain name seems valid, but now make sure that it ends in a valid TLD or ccTLD\n\t\t\t\t\t\tand that there's a hostname preceding the domain or country. */\n\t\t\t\t\t\t$domain_components = explode(\".\", $domain);\n\t\t\t\t\t\t// Make sure there's a host name preceding the domain.\n\t\t\t\t\t\tif (sizeof($domain_components) < 2) {\n\t\t\t\t\t\t\t$valid_address = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t$top_level_domain = strtolower($domain_components[sizeof($domain_components)-1]);\n\t\t\t\t\t\t\t// Allow all 2-letter TLDs (ccTLDs)\n\t\t\t\t\t\t\tif (preg_match('/^[a-z][a-z]$/', $top_level_domain) != 1) {\n\t\t\t\t\t\t\t\t$tld_pattern = '';\n\t\t\t\t\t\t\t\t// Get authorized TLDs from text file\n\t\t\t\t\t\t\t\t$tlds = file(DIR_WS_INCLUDES.'tld.txt');\n\t\t\t\t\t\t\t\tforeach($tlds as $line) {\n\t\t\t\t\t\t\t\t\t// Get rid of comments\n\t\t\t\t\t\t\t\t\t$words = explode('#', $line);\n\t\t\t\t\t\t\t\t\t$tld = trim($words[0]);\n\t\t\t\t\t\t\t\t\t// TLDs should be 3 letters or more\n\t\t\t\t\t\t\t\t\tif (preg_match('/^[a-z]{3,}$/', $tld) == 1) {\n\t\t\t\t\t\t\t\t\t\t$tld_pattern .= '^'.$tld.'$|';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// Remove last '|'\n\t\t\t\t\t\t\t\t$tld_pattern = substr($tld_pattern, 0, -1);\n\t\t\t\t\t\t\t\tif (preg_match(\"/$tld_pattern/\", $top_level_domain) == 0) {\n\t\t\t\t\t\t\t\t\t$valid_address = false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$valid_address = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$valid_address = false;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t$valid_address = false;\n\t\t}\n\t\tif ($valid_address && ENTRY_EMAIL_ADDRESS_CHECK == 'true') {\n\t\t\tif (!checkdnsrr($domain, \"MX\") && !checkdnsrr($domain, \"A\")) {\n\t\t\t\t$valid_address = false;\n\t\t\t}\n\t\t}\n\t\treturn $valid_address;\n\t}", "public function _check_emails($field) {\n\t\t$emails = $this->{$field};\n\t\t$err = '';\n\t\tif ($emails) {\n\t\t\t$arr = explode(\",\", $emails);\n\t\t\tforeach($arr as $email) {\n\t\t\t\t$email = trim($email);\n\t\t\t\tif (!$this->form_validation->valid_email($email)) {\n\t\t\t\t\t$err .= \"Recipient email \" . $email . \" is not valid.<br />\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $err;\n\t}", "function check_email_address($email) \n{\n // First, we check that there's one @ symbol, and that the lengths are right\n if (!ereg(\"^[^@]{1,64}@[^@]{1,255}$\", $email)) \n {\n // Email invalid because wrong number of characters in one section, or wrong number of @ symbols.\n return false;\n }\n // Split it into sections to make life easier\n $email_array = explode(\"@\", $email);\n $local_array = explode(\".\", $email_array[0]);\n for ($i = 0; $i < sizeof($local_array); $i++) \n {\n if (!ereg(\"^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&'*+/=?^_`{|}~\\.-]{0,63})|(\\\"[^(\\\\|\\\")]{0,62}\\\"))$\", $local_array[$i])) \n {\n return false;\n }\n }\n if (!ereg(\"^\\[?[0-9\\.]+\\]?$\", $email_array[1])) \n { // Check if domain is IP. If not, it should be valid domain name\n $domain_array = explode(\".\", $email_array[1]);\n if (sizeof($domain_array) < 2) \n {\n return false; // Not enough parts to domain\n }\n for ($i = 0; $i < sizeof($domain_array); $i++) \n {\n if (!ereg(\"^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$\", $domain_array[$i])) \n {\n return false;\n }\n }\n }\n return true;\n}", "function is_email($value)\r\n{\r\n\treturn preg_match('/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}$/i', $value);\r\n}", "function check_email ($email) {\n\t\n if (preg_match ('/^[-!#$%&\\'*+\\\\.\\/0-9=?A-Z^_{|}~]+' . '@' . '([-0-9A-Z]+\\.)+' . '([0-9A-Z]){2,4}$/i', trim ($email))) {\n \n return true;\n \n } else {\n \n return false;\n \n }\n}", "function checkEmail($checkemail) {\r\n if(preg_match(\"/^([a-zA-Z0-9])+([a-zA-Z0-9\\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\\._-]+)+$/\" , $checkemail))\r\n {\r\n list($username,$domain)=split('@',$checkemail);\r\n \r\n if(!getmxrr ($domain,$mxhosts)) {\r\n return false;\r\n }\r\n return true;\r\n }\r\n return false;\r\n}", "public function filterValidEmailsProvider() {}", "function emailOk ($email) {\r\n return filter_var($email, FILTER_VALIDATE_EMAIL);\r\n }", "function check_email ($email)\n{\n return (preg_match ('/^[-!#$%&\\'*+\\\\.\\/0-9=?A-Z^_{|}~]+' . '@' . '([-0-9A-Z]+\\.)+' . '([0-9A-Z]){2,4}$/i', trim($email)));\n}", "function is_email($addr)\n{\n $addr = strtolower(trim($addr));\n $addr = str_replace(\"&#064;\",\"@\",$addr);\n if ( (strstr($addr, \"..\")) || (strstr($addr, \".@\")) || (strstr($addr, \"@.\")) || (!preg_match(\"/^[[:alnum:]][a-z0-9_.-]*@[a-z0-9][a-z0-9.-]{0,61}[a-z0-9]\\.[a-z]{2,6}\\$/\", stripslashes(trim($addr)))) ) {\n $emailvalidity = 0;\n } else {\n $emailvalidity = 1;\n }\n return $emailvalidity;\n}", "function validate_email($email){\n\t\n\tif(empty($email)){\n\t\t\n\t\treturn false;\n\t\t\n\t}\n\tif(count(explode('@',$email)) != 2){\n\t\t\n\t\treturn false;\n\t\t\n\t}\n\telse {\n\t\t\n\t\t$words = explode('@',$email);\n\t\t\t$second = $words[1];\n\t\t\tif(count(explode('.',$email)) != 2){\n\t\t\t\n\t\t\treturn false;\n\t\t\n\t\t}\n\t\t\n\t}\n\t\treturn true;\n\t\n\t\n}", "public function testEmail() {\n $this->assertEquals('email@domain.com', Sanitize::email('em<a>il@domain.com'));\n $this->assertEquals('email+tag@domain.com', Sanitize::email('email+t(a)g@domain.com'));\n $this->assertEquals('email+tag@domain.com', Sanitize::email('em\"ail+t(a)g@domain.com'));\n }", "function verify_email()\n\t{\n\t\tlog_message('debug', 'Account/verify_email');\n\t\t$data = filter_forwarded_data($this);\n\t\t$data['msg'] = get_session_msg($this);\n\t\tlog_message('debug', 'Account/verify_email:: [1] post='.json_encode($_POST));\n\t\t# skip this step if the user has already verified their email address\n\t\tif($this->native_session->get('__email_verified') && $this->native_session->get('__email_verified') == 'Y'){\n\t\t\tredirect(base_url().'account/login');\n\t\t}\n\n\t\t# otherwise continue here\n\t\tif(!empty($_POST['emailaddress'])){\n\t\t\t$response = $this->_api->post('account/resend_link', array(\n\t\t\t\t'emailAddress'=>$this->native_session->get('__email_address'),\n\t\t\t\t'baseLink'=>base_url()\n\t\t\t));\n\n\t\t\t$data['msg'] = (!empty($response['result']) && $response['result']=='SUCCESS')?'The verification link has been resent':'ERROR: The verification link could not be resent';\n\t\t}\n\n\t\t$data = load_page_labels('sign_up',$data);\n\t\t$this->load->view('account/verify_email', $data);\n\t}", "private function validateEmail($addr) {\n // Set result to false (guilty until proven innocent)\n $this->log->write('[Form] Email - validation begun');\n $result = FALSE;\n\n $boolDebug = FALSE;\n\n // Part 1: Consult isemail.info via curl\n // 0 = invalid format\n // 1 = valid format\n\n /*\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, \"http://isemail.info/valid/\".$addr);\n // curl_setopt($ch, CURLOPT_URL, \"http://www.asdasdljaskdhf.org/\".$addr);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n $out = curl_exec($ch);\n $log->write(\"FORM: Email - check result: \".$out);\n curl_close($ch);\n */\n\n // This uses a local copy of is_email() to verify emails, rather than the remote service\n $out = is_email($addr);\n\n // Part 2: DNS lookup (provided first part passed)\n if($out==1) {\n $this->log->write('[Form] Email validation 1 of 2');\n // isolate the domain (\"remote part\")\n // adapted from http://www.linuxjournal.com/article/9585?page=0,3\n $domain = substr($addr,strrpos($addr, \"@\")+1);\n\n // If domain checks out, set result to true\n if (checkdnsrr($domain,\"MX\") || checkdnsrr($domain,\"A\")) {\n\n $this->log->write('[Form] Email validation 2 of 2');\n\n $result = TRUE;\n\n // A planned third component is to contact the MX server in the email address and \n // confirm that the address is valid. Not all servers will respond, but some will\n\n } else {\n\n $this->log->write('[FORM] Email validation failed step 2');\n\n }\n\n } else {\n $this->log->write('[FORM] Email validation failed step 1');\n }\n\n // Part 3: coming (either here or inside previous block)\n\n return $result;\n}", "public function isAtLeastOneKnownEmailAddress($_);", "protected function validateEmail($args) {\n\n if ($args['ent_email'] == '')\n return $this->_getStatusMessage(1, 1);\n\n $vmail = new verifyEmail();\n\n if ($vmail->check($args['ent_email'])) {\n return $this->_getStatusMessage(34, $args['ent_email']);\n } else if ($vmail->isValid($args['ent_email'])) {\n return $this->_getStatusMessage(24, $args['ent_email']); //_getStatusMessage($errNo, $test_num);\n//echo 'email valid, but not exist!';\n } else {\n return $this->_getStatusMessage(25, $args['ent_email']); //_getStatusMessage($errNo, $test_num);\n//echo 'email not valid and not exist!';\n }\n }", "function ValidEmailAddress (\t$in_test_address\t///< Either a single email address, or a list of them, comma-separated.\n )\n {\n $valid = false;\n \n if ( $in_test_address )\n {\n global $g_validation_error; ///< This contains an array of strings, that \"log\" bad email addresses.\n $g_validation_error = array();\n $addr_array = split ( \",\", $in_test_address );\n // Start off optimistic.\n $valid = true;\n \n // If we have more than one address, we iterate through each one.\n foreach ( $addr_array as $addr_elem )\n {\n // This splits any name/address pair (ex: \"Jack Schidt\" <jsh@spaz.com>)\n $addr_temp = preg_split ( \"/ </\", $addr_elem );\n if ( count ( $addr_temp ) > 1 )\t// We also want to trim off address brackets.\n {\n $addr_elem = trim ( $addr_temp[1], \"<>\" );\n }\n else\n {\n $addr_elem = trim ( $addr_temp[0], \"<>\" );\n }\n $regexp = \"/^([_a-zA-Z0-9-]+)(\\.[_a-zA-Z0-9-]+)*@([a-zA-Z0-9-]+)(\\.[a-zA-Z0-9-]+)*(\\.[a-zA-Z]{2,4})$/\";\n if (!preg_match($regexp, $addr_elem))\n {\n array_push ( $g_validation_error, 'The address'.\" '$addr_elem' \".'is not correct.' );\n $valid = false;\n }\n }\n }\n \n return $valid;\n }", "function is_email($emailadres)\r\n{\r\n // Eerst een snelle controle uitvoeren: \r\n // een e-mailadres moet uit minimaal 7 tekens bestaan:\r\n if (strlen($emailadres) < 7) \r\n {\r\n return false;\r\n }\r\n // Daarna een controle met een reguliere expressie uitvoeren:\r\n if( ! ereg(\"^[_a-zA-Z0-9-]+(\\.[_a-zA-Z0-9-]+)*@([a-zA-Z0-9-]+\\.)+([a-zA-Z]{2,4})$\", $emailadres) ) \r\n {\r\n return false;\r\n } \r\n\r\n return true; \r\n}", "function valid_email_address($mail) {\n $user = '[a-zA-Z0-9_\\-\\.\\+\\^!#\\$%&*+\\/\\=\\?\\`\\|\\{\\}~\\']+';\n $domain = '(?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\\-]*[a-zA-Z0-9])\\.?)+';\n $ipv4 = '[0-9]{1,3}(\\.[0-9]{1,3}){3}';\n $ipv6 = '[0-9a-fA-F]{1,4}(\\:[0-9a-fA-F]{1,4}){7}';\n\n return preg_match(\"/^$user@($domain|(\\[($ipv4|$ipv6)\\]))$/\", $mail);\n}", "public function _check_email_exists($email = ''){\n\t\t\n\t}", "private function validate_email($addresses)\n\t{\n\t\t// if array\n\t\tif (is_array($addresses))\n\t\t{\n\t\t\tforeach($addresses as $address)\n\t\t\t{\n\t\t\t\tif(!preg_match('/^([a-zA-Z0-9])+([a-zA-Z0-9\\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\\._-]+)+$/',$address) ) \n\t\t\t\t{\n\t\t\t\t\tthrow new Exception(\"PEARALIZED: invalid email address - \".$address);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\t// single email address\n\t\telse\n\t\t{\n\t\t\tif(!preg_match('/^([a-zA-Z0-9])+([a-zA-Z0-9\\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\\._-]+)+$/',$addresses) ) \n\t\t\t{\n\t\t\t\tthrow new Exception(\"PEARALIZED: invalid email address - \".$addresses);\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t}", "public function validEmailValidDataProvider() {}", "private function emailValidation($field) {\t\r\n\t \t\t$sent = $this->getSentData($field);\r\n\t \t\t\r\n\t \t\t$email_pattern = '/^[^@\\s<&>]+@([-a-z0-9]+\\.)+[a-z]{2,}$/i';\r\n\t\t\tif (preg_match($email_pattern, $sent)) \r\n \t\t\treturn true;\r\n\t\t\telse\r\n\t\t\t\treturn false;\r\n\t \t}", "function validate_email($email, $check_domain = \\true)\n {\n }", "function email_validation($toemail) \n\t{ \n\t\t$param_array = func_get_args();\n\t\t\n\t\t$GLOBALS['logger_obj']->debug('<br>METHOD email::email_validation() - PARAMETER LIST : ', $param_array);\n\t\t\t\n\t\tif($_SERVER['REMOTE_ADDR'] != \"127.0.0.1\")\n\t\t{\n\t\t\n\t\tglobal $HTTP_HOST; \n\t\t\n\t\t$result = array(); \n\t\t\n\t\t$result[0]=true; \n\t\t\n\t\t$result[1]=\"$toemail appears to be valid.\"; \n\t\t/* this regular expression is not allowing some of the domain names like .name etc., so we check for one @ symbol and \n\t\tatleast 1 \".\" symbol in email id.\n\t\tif (!eregi(\"^[_a-z0-9-]+(\\.[_a-z0-9-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*(\\.[a-z]{2,3})$\", $toemail)) \n\t\t{ \t\t\n\t\t\t$result[0]=false; \n\t\t\t\n\t\t\t$result[1]=\"$toemail is not properly formatted\"; \n\t\t\t\n\t\t}\n\t\t*/\n\t\t\n\t\t//remove the name from the email\n\t\t\n\t\t$earr = explode(\"<\", $toemail);\n\t\t\n\t\tif(count($earr) == 2 && strlen(trim($earr[1])) > 0)\n\t\t\t$email = substr(trim($earr[1]),0,-1);\n\t\telse\n\t\t\t$email = trim($earr[0]);\n\t\t\n\t\t$eml_arr = explode(\"@\",$email);\n\t\t$result[0]=false; \n\t\t\n\t\t$result[1]=\"$toemail is not properly formatted\"; \n\t\tif(count($eml_arr) == 2 && strlen(trim($eml_arr[0])) > 0 && strlen(trim($eml_arr[1])) > 0)\n\t\t{\n\t\t\t$domain_arr = explode(\".\",$eml_arr[1]);\n\t\t\tif(count($domain_arr) > 1 && strlen(trim($domain_arr[0])) > 0 && strlen(trim($domain_arr[1])) > 0)\n\t\t\t{\n\t\t\t\t$result[0]=true; \n\t\t\t\t$result[1]=\"$toemail appears to be valid.\"; \n\t\t\t}\n\t\t}\n\t\t\n\t\tif(1==2)\n\t\t{//need not check by communicating to email server...\n\t\t\n\t\tlist ( $username, $domain ) = split (\"@\",$toemail); \n\t\t\n\t\tif (getmxrr($domain, $MXHost)) \n\t\t{\t\t\n\t\t\t$connectaddress = $MXHost[0];\n\t\t}\n\t\telse \n\t\t{\t\t\n\t\t\t$connectaddress = $domain;\n\t\t} \n\t\t//echo \"Connect address : \" . $connectaddress . \"<br>\";\n\t\t//echo \"Domain Name : \" . $domain . \"<br>\";\n\t\t$connect = fsockopen ( $connectaddress, 25 ); \n\t\t\n\t\tif ($connect) \n\t\t{\t\t\n\t\t\tif (ereg(\"^220\", $Out = fgets($connect, 1024))) \n\t\t\t{ \n\t\t\t\n\t\t\t fputs ($connect, \"HELO $HTTP_HOST\\r\\n\"); \n\t\t\t \n\t\t\t $out = fgets ( $connect, 1024 ); \n\t\t\t \n\t\t\t $this->from_email = $GLOBALS['site_config']['admin_email'];\n\t\t\t \n\t\t\t $from = $this->from_email;\n\t\t\t \n\t\t\t fputs ($connect, \"MAIL FROM: <{$from}>\\r\\n\"); \n\t\t\t \n\t\t\t $from = fgets ( $connect, 1024 ); \n\t\t\t \n\t\t\t fputs ($connect, \"RCPT TO: <{$toemail}>\\r\\n\"); \n\t\t\t \n\t\t\t $to = fgets ($connect, 1024); \n\t\t\t \n\t\t\t fputs ($connect, \"QUIT\\r\\n\"); \n\t\t\t \n\t\t\t fclose($connect); \n\t\t\t \n\t\t\t if (!ereg (\"^250\", $from) || !ereg ( \"^250\", $to )) \n\t\t\t { \n\t\t\t \n\t\t\t\t $result[0]=false; \n\t\t\t\t \n\t\t\t\t $result[1]=\"Server rejected address\"; \n\t\t\t\t \n\t\t\t\t} \n\t\t\t} \n\t\t\t\n\t\t\telse\n\t\t\t{\t\t\t\t\n\t\t\t\t$result[0] = false; \n\t\t\t\t\n\t\t\t\t$result[1] = \"No response from server\"; \n\t\t\t\t\n\t\t\t } \n\t\t\t \n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$result[0]=false; \n\t\t\t\n\t\t\t$result[1]=\"Can not connect E-Mail server.\"; \n\t\t\t\n\t\t\t//return $result; \n\t\t} \n\t\t\n\t\t}\n\t\t\n\t\tif(!$result[0])\n\t\t{\n\n\t\t\t$ttext = \"\";\n\t\t\t$ttext .= \"<table border=0 cellpadding=3 cellspacing=1 align=center width=90%>\";\n\t\t\t$ttext .= \"<tr align=left><td><strong>Error Message</strong></td><td>\" . $result[1] . \" (\" . $toemail . \")\" . \"</td></tr>\";\n\t\t\t$ttext .= \"</table>\";\n\n\t\t\t$GLOBALS['logger_obj']->error('<br>METHOD email::email_validation() - Return Value : ', $ttext,'email');\n\n\t\t}\n\t}\n\t\t$GLOBALS['logger_obj']->debug('<br>METHOD email::email_validation() - Return Value : ', $result);\n\t\treturn $result; \n\t\t\n\t}", "function validate_email ($address) {\n return preg_match('/^[a-z0-9!#$%&\\'*+\\/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&\\'*+\\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i', $address);\n }", "function verifyEmail($submittedEmail) {\n if (!findAdminEmailMatch($submittedEmail) && !findMemberEmailMatch($submittedEmail)) {\n return TRUE;\n }\n else {\n return FALSE;\n }\n }", "public function email_check($str) {\n //if(!empty($str) && $this->get_by(\"email\", $str))\n // return FALSE;\n return TRUE;\n }", "function is_valid_email($mail) {\r\t// simple: \t\"/^[-_a-z0-9]+(\\.[-_a-z0-9]+)*@[-a-z0-9]+(\\.[-a-z0-9]+)*\\.[a-z]{2,6}$/i\"\r\t$r = 0;\r\tif($mail) {\r\t\t$p =\t\"/^[-_a-z0-9]+(\\.[-_a-z0-9]+)*@[-a-z0-9]+(\\.[-a-z0-9]+)*\\.(\";\r\t\t// TLD (01-30-2004)\r\t\t$p .=\t\"com|edu|gov|int|mil|net|org|aero|biz|coop|info|museum|name|pro|arpa\";\r\t\t// ccTLD (01-30-2004)\r\t\t$p .=\t\"ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|az|ba|bb|bd|\";\r\t\t$p .=\t\"be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|\";\r\t\t$p .=\t\"cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|\";\r\t\t$p .=\t\"ec|ee|eg|eh|er|es|et|fi|fj|fk|fm|fo|fr|ga|gd|ge|gf|gg|gh|gi|\";\r\t\t$p .=\t\"gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|\";\r\t\t$p .=\t\"im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|\";\r\t\t$p .=\t\"ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mk|ml|\";\r\t\t$p .=\t\"mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|\";\r\t\t$p .=\t\"nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|\";\r\t\t$p .=\t\"py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|\";\r\t\t$p .=\t\"sr|st|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|\";\r\t\t$p .=\t\"tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|\";\r\t\t$p .=\t\"za|zm|zw\";\r\t\t$p .=\t\")$/i\";\r\r\t\t$r = preg_match($p, $mail) ? 1 : 0;\r\t}\r\treturn $r;\r}", "private function checkEmail($data) {\n\t\tif(filter_var($data, FILTER_VALIDATE_EMAIL)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "function email_check($email) {\n\tif (!filter_var($email, FILTER_VALIDATE_EMAIL)) {\n\t\treturn false; \n\t}\n\t$domain = explode(\"@\",$email);\n\tif (!checkdnsrr($domain[1], 'MX')) {\n\t\treturn false; \n\t}\n\treturn true;\n}", "function isEmail($input){\n return preg_match('/[a-z0-9]@[a-z]{3,}\\.[a-z]{3}$/',$input);\n }", "public function check_email() {\n\n\t\t$email = Input::post('email');\n \n\t\tif(is_string($email)) {\n\t\t\t\n\t\t\t$this->_password_reset->_unlocked_me($email);\n\t\t\t$row = $this->_password_reset->_validate_email($email);\n\t\t\t$res = $this->_password_reset->getData($email);\n\t\t\t$_res = $this->_password_reset->_check_if_reg($email);\n\t\t\t$ques = $this->_question->getquestion($res['question_id']);\n\n\t\t\tif($row > 0) {\n\t\t\t\tif($_res > 0) {\n\t\t\t\t\tif($res['status'] != 0) {\n\t\t\t\t\t\t$_arr = array('msg' =>Constant::EMAIL_CONFIRM, 'question' => $ques['security_question']);\n\t\t\t\t\t\techo json_encode($_arr);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$_arr = array('msg' =>Constant::LOCKED);\n\t\t\t\t\t\techo json_encode($_arr);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$_arr = array('msg' =>Constant::NOT_REGISTERED);\n\t\t\t\t\techo json_encode($_arr);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\theader(\"HTTP/1.0 404 Not Found\");\n\t\t\t\texit;\n\t\t\t}\n\n\t\t} else {\n\t\t\theader(\"HTTP/1.0 404 Not Found\");\n\t\t\texit;\n\t\t}\n\t}", "function checkNUVEmail($email) {\n\t\t$regEX = \"/([a-zA-Z0-9_]+)([\\.{1}_])?([a-zA-Z0-9_]+)\\@nuv([\\.])ac([\\.])in/\";\n\t\tif (preg_match($regEX, $email)) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t\texit();\t\n\t\t}\n\t}", "function useremail_check($str) {\r\n $res = $this->auth_model->is_email_exists($str);\r\n if ($res <= 0) {\r\n $this->form_validation->set_message('useremail_check', lang_key('email_not_matched'));\r\n return FALSE;\r\n } else {\r\n return TRUE;\r\n }\r\n }", "function check_email($emaildddress)\n{\n\t$goodchars = '^[A-Za-z0-9\\._-]+@([A-Za-z][A-Za-z0-9-]{1,62})(\\.[A-Za-z][A-Za-z0-9-]{1,62})+$';\n\n\t$isvalid = true;\n\tif(!ereg($goodchars,$emaildddress))\n\t{\n\t\t$isvalid = false;\n\t}\n\treturn $isvalid;\n}", "function email_is_valid($email) {\r\n return preg_match('/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}$/i',$email);\r\n }", "public function validate_email($email){\n $pattern = '/^(?!(?:(?:\\x22?\\x5C[\\x00-\\x7E]\\x22?)|(?:\\x22?[^\\x5C\\x22]\\x22?)){255,})(?!(?:(?:\\x22?\\x5C[\\x00-\\x7E]\\x22?)|(?:\\x22?[^\\x5C\\x22]\\x22?)){65,}@)(?:(?:[\\x21\\x23-\\x27\\x2A\\x2B\\x2D\\x2F-\\x39\\x3D\\x3F\\x5E-\\x7E]+)|(?:\\x22(?:[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x21\\x23-\\x5B\\x5D-\\x7F]|(?:\\x5C[\\x00-\\x7F]))*\\x22))(?:\\.(?:(?:[\\x21\\x23-\\x27\\x2A\\x2B\\x2D\\x2F-\\x39\\x3D\\x3F\\x5E-\\x7E]+)|(?:\\x22(?:[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x21\\x23-\\x5B\\x5D-\\x7F]|(?:\\x5C[\\x00-\\x7F]))*\\x22)))*@(?:(?:(?!.*[^.]{64,})(?:(?:(?:xn--)?[a-z0-9]+(?:-[a-z0-9]+)*\\.){1,126}){1,}(?:(?:[a-z][a-z0-9]*)|(?:(?:xn--)[a-z0-9]+))(?:-[a-z0-9]+)*)|(?:\\[(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){7})|(?:(?!(?:.*[a-f0-9][:\\]]){7,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?)))|(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){5}:)|(?:(?!(?:.*[a-f0-9]:){5,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3}:)?)))?(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))(?:\\.(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))){3}))\\]))$/iD';\n if(preg_match($pattern, $email)){\n return true;\n }\n else{\n return false;\n }\n }", "public static function is_email($value) {\r\n\t\t$parts = explode('@', $value, 2);\r\n\t\t$local_part = array_shift($parts);\r\n\t\t$domain = array_shift($parts);\r\n\t\t\r\n\t\t$ret = self::is_domain($domain);\r\n\t\t// local part may be up to 64 characters \r\n\t\t$ret = $ret && (strlen($local_part) <= 64);\r\n\t\t// dot is not allowed at the end or beginning\r\n\t\t// There is also a rule that 2 or more dots are illegal like in 'forname..lastname@web.de'\r\n\t\t// Unfortunately: my neighbor's address IS forname..lastname@web.de! And I can't lock my neighbor \r\n\t\t// out of the services I program, can I? \r\n\t\t$ret = $ret && (substr($local_part, 0, 1) !== '.');\r\n\t\t$ret = $ret && (substr($local_part, -1) !== '.');\r\n\t\t// Only a-z, A-Z, 0-9 and !#$%&'*+-/=?^_`{|}~ and . are allowed\r\n\t\t// (There is quoting and escaping, but we do not hear, we do not hear, we do not hear...)\r\n\t\t$pattern = \"@^[a-zA-Z0-9!#$%&'*+\\-/=?^_`{|}~.]+$@s\";\r\n\t\t$ret = $ret && preg_match($pattern, strtr($local_part, \"\\r\\n\", ' '));\r\n\t\t\r\n\t\treturn $ret;\r\n\t}", "public function testZendEmailValidator()\n{\n $validator = new Zend_Validate_EmailAddress();\n \n\n \n // test some possible addresses\n $this->assertEquals(true,$validator->isValid(\"test@gmx.de\"));\n $this->assertEquals(true,$validator->isValid(\"test@gmx.com\"));\n $this->assertEquals(true,$validator->isValid(\"test@gmx.co.uk\"));\n $this->assertEquals(true,$validator->isValid(\"test@gmx.it\"));\n \n // test some incorrect addresses\n $this->assertEquals(false,$validator->isValid(\"testgmx.de\"));\n $this->assertEquals(false,$validator->isValid(\".test@gm.de\"));\n $this->assertEquals(false,$validator->isValid(\"test.@gmx.de\"));\n $this->assertEquals(false,$validator->isValid(\"te st@gmx.it\"));\n \n \n \n \n \n}", "function checkMAIL($account, $email)\n {\n while ($users = $account->fetch()) {\n if ($users['email'] == $email) {\n return true;\n }\n }\n return false;\n }", "public function hasVerifiedEmail();", "function isEmailAddress($field, $msg, $inner=FALSE){\n\t\t$value = $this->_getValue($field);\n\t\t$pattern =\"/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z.]{2,4}$/\";\n\t\tif(preg_match($pattern, $value)){\n\t\treturn true;\n\t\t}else{\n\t\tif($inner==FALSE){\n $this->_errorList[] = array(\"field\" => $field,\n\t\t\"value\" => $value, \"msg\" => $msg);\n\t\treturn false;\n }else{\n return false;\n }\n\t\t}\n\t}", "function isEmail($field_data) \n{ \n\t$fields_ok=preg_match(\"/^([a-zA-Z0-9])+([a-zA-Z0-9\\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\\._-]+)+$/\" , $field_data); \n\treturn $fields_ok; \n}", "private function clean_poea_email($email) {\n\n \t$emails = array();\n\n \t$email = str_replace('@y.c', \"@yahoo.com\", $email);\n\n\t\t$slash_email = explode(\"/\", $email);\n\t\t$or_email = explode(\" or \", $email);\n\t\t$and_email = explode(\"&\", $email);\n\n\t\tif(count($slash_email) > 1) {\n\t\t\t\n\t\t\tforeach ($slash_email as $v) {\n\n\t\t\t\t$v = trim($v);\n\n\t\t\t\tif(filter_var($v, FILTER_VALIDATE_EMAIL)) {\n\n\t\t\t\t\t$emails[] = $v;\t\t\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t} elseif(count($and_email) > 1) {\n\n\t\t\tforeach ($and_email as $v) {\n\n\t\t\t\t$v = trim($v);\n\n\t\t\t\tif(filter_var($v, FILTER_VALIDATE_EMAIL)) {\n\n\t\t\t\t\t$emails[] = $v;\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t} elseif(count($or_email) > 1) {\n\n\t\t\tforeach ($or_email as $v) {\n\n\t\t\t\t$v = trim($v);\n\n\t\t\t\tif(filter_var($v, FILTER_VALIDATE_EMAIL)) {\n\t\n\t\t\t\t\t$emails[] = $v;\t\t\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t} elseif(filter_var($email, FILTER_VALIDATE_EMAIL)) {\n\n\t\t\t$emails[] = $email;\t\n\n\t\t}\n\n\t\tif(empty($emails)) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn json_encode($emails);\n }", "function check_email($email) \r\n{ \r\n\t$emailArray = preg_split('//', $email); \r\n $atSign = false; \r\n $dotSign = false; \r\n $badCharacter = false; \r\n $validEmail = true; \r\n\tif (in_array (\"@\", $emailArray)) \r\n\t{ \r\n \t$atSign = true; \r\n } \r\n if (in_array (\".\", $emailArray)) \r\n\t{ \r\n \t$dotSign = true; \r\n } \r\n\t$badCharactersArray = array('#', '$', '%', '(', ')', '&', '!'); // Add your own bad \r\n\tfor ($i = 0; $i < sizeof($badCharactersArray); $i++) \r\n\t{ \r\n\t\tif (in_array ($badCharactersArray[$i], $emailArray)) \r\n \t{ \r\n \t\t$badCharacter = true; \r\n \t} \r\n\t} \r\n\tif ((!$atSign) or (!$dotSign) or ($badCharacter)) \r\n \t$validEmail = false; \r\n}", "function mme_checkemail( $email ) {\n\t$match = preg_match( '/^[A-z0-9_\\-.]+[@][A-z0-9_\\-]+([.][A-z0-9_\\-]+)+[A-z.]{2,4}$/', $email );\n\tif(!$match){\n\t\t$error_msg = 'Invalid E-mail address';\n\t\tmme_error_notice( $error_msg );\n\t\treturn false;\n\t\t}\n\treturn true;\n}", "function my_email_check_function($id, $email)\n{\n # ...do some meaningful check here...\n return true;\n}", "function verifyEmail ($testString)\n\t{\n return (preg_match(\"/^([[:alnum:]]|_|\\.|-)+@([[:alnum:]]|\\.|-)+(\\.)([a-z]{2,4})$/\", $testString));\n }", "function validate_email_format($email, $expected) {\n\t// Make sure the address is valid\n\tif (filter_var($email, FILTER_VALIDATE_EMAIL)) {\n\t\t// Takes domain part of email after '@'\n\t\t$domain = array_pop(explode('@', $email));\n\t\t// if domain matches expected\n\t\tif ($domain == $expected) {\n\t\t\treturn TRUE;\n\t } else return FALSE;\n\t} else return FALSE;\n}", "public function checkEmail() {\n $result = $this->model->checkEmail($_POST);\n if($result) {\n echo \"true\"; \n } else {\n echo \"false\";\n }\n }", "public function testValidateEmail()\n\t{\n\t\t$return = $this->auth->register('a@b.com', $this->password, $this->password);\n\n\t\t$this->assertTrue($return['error']);\n\t\t$this->assertSame($return['message'], lang('Auth.email_short', [$this->auth->config->verifyEmailMinLength]));\n\n\t\t// maximal email length is 50\n\t\t$return = $this->auth->register('a123456789b123456789c123456789d123456789@e123456789.com', $this->password, $this->password);\n\n\t\t$this->assertTrue($return['error']);\n\t\t$this->assertSame($return['message'], lang('Auth.email_long', [$this->auth->config->verifyEmailMaxLength]));\n\n\t\t// register with invalid email\n\t\t$return = $this->auth->register($this->invalidEmail, $this->password, $this->password);\n\n\t\t$this->assertTrue($return['error']);\n\t\t$this->assertSame($return['message'], lang('Auth.email_invalid'));\n\t}", "function emailIsValid($email,&$reason) {\r\n $isValid= true;\r\n $reasons= array();\r\n $atIndex= strrpos($email, \"@\");\r\n if (is_bool($atIndex) && !$atIndex) {\r\n $isValid= false;\r\n $reasons[]= \"chybí @\";\r\n }\r\n else {\r\n $domain= substr($email, $atIndex+1);\r\n $local= substr($email, 0, $atIndex);\r\n $localLen= strlen($local);\r\n $domainLen= strlen($domain);\r\n if ($localLen < 1 || $localLen > 64) {\r\n $isValid= false;\r\n $reasons[]= \"dlouhé jméno\";\r\n }\r\n else if ($domainLen < 1 || $domainLen > 255) {\r\n $isValid= false;\r\n $reasons[]= \"dlouhá doména\";\r\n }\r\n else if ($local[0] == '.' || $local[$localLen-1] == '.') {\r\n $reasons[]= \"tečka na kraji\";\r\n $isValid= false;\r\n }\r\n else if (preg_match('/\\\\.\\\\./', $local)) {\r\n $reasons[]= \"dvě tečky ve jménu\";\r\n $isValid= false;\r\n }\r\n else if (!preg_match('/^[A-Za-z0-9\\\\-\\\\.]+$/', $domain)) {\r\n $reasons[]= \"chybný znak v doméně\";\r\n $isValid= false;\r\n }\r\n else if (preg_match('/\\\\.\\\\./', $domain)) {\r\n $reasons[]= \"dvě tečky v doméně\";\r\n $isValid= false;\r\n }\r\n else if (!preg_match('/^(\\\\\\\\.|[A-Za-z0-9!#%&`_=\\\\/$\\'*+?^{}|~.-])+$/', str_replace(\"\\\\\\\\\",\"\",$local))) {\r\n $reasons[]= \"chybný znak ve jménu\";\r\n if (!preg_match('/^\"(\\\\\\\\\"|[^\"])+\"$/',\r\n str_replace(\"\\\\\\\\\",\"\",$local))) {\r\n $isValid= false;\r\n }\r\n }\r\n if ( $domain!='proglas.cz' && $domain!='setkani.org' ) {\r\n if ($isValid && !(checkdnsrr($domain,\"MX\") || checkdnsrr($domain,\"A\"))) {\r\n $reasons[]= \"$domain je neznámá doména\";\r\n $isValid= false;\r\n }\r\n }\r\n }\r\n $reason= count($reasons) ? implode(', ',$reasons) : '';\r\n return $isValid;\r\n}", "public function emailEntryIsValid() {\r\n \r\n $email = $this->getEmail();\r\n \r\n if ( empty($email) ) {\r\n $this->errors[\"email\"] = \"Email is missing.\";\r\n } else if ( !Validator::emailIsValid($this->getEmail()) ) {\r\n $this->errors[\"email\"] = \"Email is not valid.\"; \r\n }\r\n \r\n return ( empty($this->errors[\"email\"]) ? true : false ) ;\r\n }", "function verifyEmail ($testString) {\n\treturn filter_var($testString, FILTER_VALIDATE_EMAIL);\n}", "private function isEmailValid($email)\n {\n //We could handle email format validation here\n }", "public function testRegistrationEmailWrongFormat(): void { }", "public function CheckEmail($email, $userId);", "function valid_email($name){\r\n if(strpos($name, '@') !== false)\r\n return true;\r\n else\r\n return false;\r\n }", "function isValidEmail($email, &$acountInfo)\n {\n $retval = true;\n $acountInfo = modApiFunc(\"Users\", \"getAcountInfoByEmail\", $email);\n if (sizeof($acountInfo)==0)\n {\n $retval=false;\n }\n return $retval;\n }", "public function email_check($str){\n $con['returnType'] = 'count';\n $con['conditions'] = array('email'=>$str);\n $checkEmail = $this->user->getRows($con);\n if($checkEmail > 0){\n $this->form_validation->set_message('email_check', 'The given email already exists.');\n return FALSE;\n } else {\n return TRUE;\n }\n }", "function isEmail($email_quote ) {\n\treturn(preg_match(\"/^[-_.[:alnum:]]+@((([[:alnum:]]|[[:alnum:]][[:alnum:]-]*[[:alnum:]])\\.)+(ad|ae|aero|af|ag|ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|museum|mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw)$|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\\.){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i\",$email_quote ));\n}", "function checkmail($youremail)\n{\n if (ereg('^[-!#$%&\\'*+\\\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\\'*+\\\\/0-9=?A-Z^_`a-z{|}~]+\\.'.\n '[-!#$%&\\'*+\\\\./0-9=?A-Z^_`a-z{|}~]+$', $youremail))\n {\n\t return true;\n }\n else\n {\n\t return false;\n }\n}", "function ValidEmail( $address, $leMail )\r\n\t\t{\r\n\t\tif( ereg( \".*<(.+)>\", $address, $regs ) )\r\n\t\t\t$address = $regs[1];\r\n\r\n\t\tif( !ereg( \"^[^@ ]+@([a-zA-Z0-9\\-]+\\.)+([a-zA-Z0-9\\-]{2}|net|com|gov|mil|org|edu|int)\\$\",$address) )\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t\t}", "public function verify_email($email){\n $query = $this->db->where('01_email', $email)\n ->get('register_01');\n if(sizeof($query->result_array())>0){\n return true;\n }\n else{\n return false;\n }\n }", "public function checkIfEmailExists($email);", "function EmailValidation($email)\n{ \n $email = htmlspecialchars(stripslashes(strip_tags($email)));\n if(preg_match(\"/^([a-zA-Z0-9])+([a-zA-Z0-9\\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\\._-]+)+$/\",$email))\n {\n /*$domain = explode('@', $email);\n $domain = $domain[1];\n if(!checkdnsrr($domain,'MX'))\n {\n //return false;\n return true;\n }*/\n return true;\n }\n else\n {\n return false;\n }\n}", "function checkmail($youremail)\n{\n if (ereg('^[-!#$%&\\'*+\\\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\\'*+\\\\/0-9=?A-Z^_`a-z{|}~]+\\.'.\n '[-!#$%&\\'*+\\\\./0-9=?A-Z^_`a-z{|}~]+$', $youremail)) \n {\n\t return true;\n } \n else \n {\n\t return false;\n }\n}", "public function email_check($str){\n\t\tif ($this->user_model->count(array('email' => $str)) > 0){\n $this->form_validation->set_message('email_check', 'Email sudah digunakan, mohon ganti dengan yang lain');\n return FALSE;\n }\n else{\n return TRUE;\n }\n\t}", "private function check_Email($email){\r\n\r\n //Remove all illegal characters from an e-mail adress\r\n $email_B = filter_var($email, FILTER_SANITIZE_EMAIL);\r\n\r\n $Validate = self::email_Check_Validation($email_B);\r\n\r\n return (($Validate == false) || ($email != $email_B)) ? true : false;\r\n }", "public static function email($data){\n if(!filter_var($data,FILTER_VALIDATE_EMAIL)){\n return false;\n }\n return true;\n }", "public function hasEmail(): bool;", "function VerifierAdresseMail($adresse)\n{\n $Syntaxe='#^[\\w.-]+@[\\w.-]+\\.[a-zA-Z]{2,6}$#';\n if(preg_match($Syntaxe,$adresse))\n return true;\n else\n return false;\n}", "function isEmailCorrect($email){\r\n\tif (filter_var($email, FILTER_VALIDATE_EMAIL) && strlen($email)<=255) {\r\n\t\t//check if it's only string\r\n\t\tif (htmlentities($email)==$email) {\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t}\r\n\r\n\treturn 0;\r\n}", "function pdfbulletin_sendtest_form_validate($form, &$form_state) {\n $emails = explode(\"\\n\", $form_state['values']['subscribers']);\n foreach ($emails as $email) {\n $email = trim($email);\n if (! empty($email) && ! valid_email_address($email)) {\n form_set_error('subscribers', t('Invalid e-mail address: @email', array('@email' => $email)));\n }\n }\n}", "public function is_valid_email()\r\n {\r\n // email address.\r\n\r\n return (!empty($this->address) && preg_match($this->re_email, $this->address));\r\n }", "function check_email_address($email) {\n\t$isValid = true;\n\t$atIndex = strrpos($email, \"@\");\n\tif (is_bool($atIndex) && !$atIndex) {\n\t\t$isValid = false;\n\t}\n\telse {\n\t\t$domain = substr($email, $atIndex+1);\n\t\t$local = substr($email, 0, $atIndex);\n\t\t$localLen = strlen($local);\n\t\t$domainLen = strlen($domain);\n\t\tif ($localLen < 1 || $localLen > 64) {\n\t\t\t// local part length exceeded\n\t\t\t$isValid = false;\n\t\t}\n\t\telse if ($domainLen < 1 || $domainLen > 255) {\n\t\t\t// domain part length exceeded\n\t\t\t$isValid = false;\n\t\t}\n\t\telse if ($local[0] == '.' || $local[$localLen-1] == '.') {\n\t\t\t// local part starts or ends with '.'\n\t\t\t$isValid = false;\n\t\t}\n\t\telse if (preg_match('/\\\\.\\\\./', $local)) {\n\t\t\t// local part has two consecutive dots\n\t\t\t$isValid = false;\n\t\t}\n\t\telse if (!preg_match('/^[A-Za-z0-9\\\\-\\\\.]+$/', $domain)) {\n\t\t\t// character not valid in domain part\n\t\t\t$isValid = false;\n\t\t}\n\t\telse if (preg_match('/\\\\.\\\\./', $domain)) {\n\t\t\t// domain part has two consecutive dots\n\t\t\t$isValid = false;\n\t\t}\n\t\telse if (!preg_match('/^(\\\\\\\\.|[A-Za-z0-9!#%&`_=\\\\/$\\'*+?^{}|~.-])+$/',\n\t\tstr_replace(\"\\\\\\\\\",\"\",$local)))\n\t\t{\n\t\t // character not valid in local part unless \n\t\t // local part is quoted\n\t\t if (!preg_match('/^\"(\\\\\\\\\"|[^\"])+\"$/', str_replace(\"\\\\\\\\\",\"\",$local))) {\n\t\t\t$isValid = false;\n\t\t }\n\t\t}\n\t\tif ($isValid && !(checkdnsrr($domain,\"MX\") || checkdnsrr($domain,\"A\"))) {\n\t\t\t// domain not found in DNS\n\t\t\t$isValid = false;\n\t\t}\n\t}\n\treturn $isValid;\n}", "function ValidateEmail( $email ) {\n // Check if address is valid\n if( ! filter_var( $email, FILTER_VALIDATE_EMAIL ) )\n return false;\n\n // Break up into parts\n $parts = explode( '@', $email );\n $user = $parts[0];\n $domain = $parts[1];\n\n // Check if domain resolves\n if( ! checkdnsrr( $domain, 'MX' ) && ( ! checkdnsrr( $domain, 'A' ) || ! checkdnsrr( $domain, 'AAAA' ) ) )\n return false;\n\n return true;\n}", "function mycheck_email($str)\n{\n $str = strtolower($str);\n return preg_match('/^[^\\@]+@.*\\.[a-z]{2,6}$/i', $str);\n}", "static public function validateEMail($email) {\n if (preg_match(\"/^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$/i\", $email)) {\n return true;\n }\n else {\n return false;\n }\n }", "public function validateEmailConfirmedUnique()\n\t{ \n\t\tif ( $this->email )\n\t\t{\n\t\t\t$exists = User::findOne([\n\t\t\t\t'email' => $this->email,\n\t\t\t]);\n\n\t\t\tif ( $exists )\n\t\t\t{\n\t\t\t\t$this->addError('email', 'This E-mail has already been taken.');\n\t\t\t}\n\t\t}\n\t}", "function smcf_validate_email($email) {\r\n\t$at = strrpos($email, \"@\");\r\n\r\n\t// Make sure the at (@) sybmol exists and \r\n\t// it is not the first or last character\r\n\tif ($at && ($at < 1 || ($at + 1) == strlen($email)))\r\n\t\treturn false;\r\n\r\n\t// Make sure there aren't multiple periods together\r\n\tif (preg_match(\"/(\\.{2,})/\", $email))\r\n\t\treturn false;\r\n\r\n\t// Break up the local and domain portions\r\n\t$local = substr($email, 0, $at);\r\n\t$domain = substr($email, $at + 1);\r\n\r\n\r\n\t// Check lengths\r\n\t$locLen = strlen($local);\r\n\t$domLen = strlen($domain);\r\n\tif ($locLen < 1 || $locLen > 64 || $domLen < 4 || $domLen > 255)\r\n\t\treturn false;\r\n\r\n\t// Make sure local and domain don't start with or end with a period\r\n\tif (preg_match(\"/(^\\.|\\.$)/\", $local) || preg_match(\"/(^\\.|\\.$)/\", $domain))\r\n\t\treturn false;\r\n\r\n\t// Check for quoted-string addresses\r\n\t// Since almost anything is allowed in a quoted-string address,\r\n\t// we're just going to let them go through\r\n\tif (!preg_match('/^\"(.+)\"$/', $local)) {\r\n\t\t// It's a dot-string address...check for valid characters\r\n\t\tif (!preg_match('/^[-a-zA-Z0-9!#$%*\\/?|^{}`~&\\'+=_\\.]*$/', $local))\r\n\t\t\treturn false;\r\n\t}\r\n\r\n\t// Make sure domain contains only valid characters and at least one period\r\n\tif (!preg_match(\"/^[-a-zA-Z0-9\\.]*$/\", $domain) || !strpos($domain, \".\"))\r\n\t\treturn false;\t\r\n\r\n\treturn true;\r\n}", "static function checkEmailAddress($input)\r\n {\r\n if (filter_var($input, FILTER_VALIDATE_EMAIL)) {\r\n return true;\r\n } else {\r\n echo PageBuilder::printError(\"Username or Password is Incorrect!\");\r\n return false;\r\n }\r\n }", "public static function validate_email($email) {\n\t\t// First, we check that there's one @ symbol, \n\t\t// and that the lengths are right.\n\t\tif (!ereg(\"^[^@]{1,64}@[^@]{1,255}$\", $email)) {\n\t\t\t// Email invalid because wrong number of characters \n\t\t\t// in one section or wrong number of @ symbols.\n\t\t\treturn false;\n\t\t}\n\t\t// Split it into sections to make life easier\n\t\t$email_array = explode(\"@\", $email);\n\t\t$local_array = explode(\".\", $email_array[0]);\n\t\tfor ($i = 0; $i < sizeof($local_array); $i++) {\n\t\t\tif(!ereg(\"^(([A-Za-z0-9!#$%&'*+/=?^_`{|}~-][A-Za-z0-9!#$%&\n\t\t\t?'*+/=?^_`{|}~\\.-]{0,63})|(\\\"[^(\\\\|\\\")]{0,62}\\\"))$\",\n\t\t\t$local_array[$i])) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t// Check if domain is IP. If not, \n\t\t// it should be valid domain name\n\t\tif (!ereg(\"^\\[?[0-9\\.]+\\]?$\", $email_array[1])) {\n\t\t\t$domain_array = explode(\".\", $email_array[1]);\n\t\t\tif (sizeof($domain_array) < 2) {\n\t\t\t\treturn false; // Not enough parts to domain\n\t\t\t}\n\t\t\tfor ($i = 0; $i < sizeof($domain_array); $i++) {\n\t\t\t\tif(!ereg(\"^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|\n\t\t\t\t\t?([A-Za-z0-9]+))$\",\n\t\t\t\t$domain_array[$i])) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "function verifica_email ($email)\r\n{\r\n\t$retorno = true;\r\n\r\n\t/* Aqui estaria el codigo para verificar \r\n\tla direccion de correo */\r\n\r\n\treturn $retorno;\r\n}", "function invalidEmail($emailadres) {\n\tif (!filter_var($emailadres, FILTER_VALIDATE_EMAIL)) {\n\t\t$result = true;\n\t} else {\n\t\t$result = false;\n\t}\n\treturn $result;\n}", "function checkEmail($email) {\n\t\tif(strpos($email, '@') && strpos($email, '.')) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "function isValidEmail($name){ \n\t$regexp = \"/^[^0-9][A-z0-9_]+([.][A-z0-9_]+)*[@][A-z0-9_]+([.][A-z0-9_]+)*[.][A-z]{2,4}$/\";\n\n\tif(preg_match($regexp, $name)) {\n\t return TRUE;\n\t}else{\n\t\treturn FALSE;\n\t}\n}", "function is_email_address_unsafe($user_email)\n {\n }" ]
[ "0.7370593", "0.7347841", "0.70844424", "0.70402026", "0.697318", "0.69091046", "0.6901997", "0.6900706", "0.68989795", "0.68862104", "0.6875611", "0.6848806", "0.68375206", "0.68231", "0.68103594", "0.68059963", "0.67866665", "0.6770628", "0.67681885", "0.6765706", "0.67480767", "0.6745339", "0.6744023", "0.67431587", "0.673054", "0.6729429", "0.67274725", "0.6719152", "0.6695695", "0.66893435", "0.66841114", "0.6677238", "0.6676758", "0.6672566", "0.6659452", "0.665373", "0.66498965", "0.6643337", "0.66274333", "0.66262823", "0.6624542", "0.66060317", "0.65953076", "0.6594864", "0.65777093", "0.6577168", "0.65758014", "0.6569878", "0.65658593", "0.6563471", "0.65629137", "0.65598243", "0.6559453", "0.65511876", "0.6542269", "0.6520142", "0.6512658", "0.65093964", "0.6509238", "0.6506756", "0.6505244", "0.64949846", "0.64933765", "0.64926976", "0.64915204", "0.649002", "0.6481105", "0.64692", "0.64609224", "0.6460757", "0.6451198", "0.645118", "0.6448378", "0.6437845", "0.6436173", "0.6431199", "0.64280736", "0.642594", "0.6422264", "0.6419065", "0.64136857", "0.6412928", "0.6412149", "0.6411313", "0.6405256", "0.63987523", "0.63931954", "0.6386591", "0.63851243", "0.63848954", "0.63840705", "0.63797814", "0.63782585", "0.63739747", "0.63737494", "0.63714725", "0.63702506", "0.6366324", "0.63654464", "0.6361467", "0.6360541" ]
0.0
-1
Resend the verification email
public function resendEmail() { $exists = DB::table('users') ->where('_id', Auth::user()->_id) ->where('email', Input::get('email')) ->pluck('username'); if (!$exists) { return Redirect::back()->with('error', 'There was a problem resending.'); } //provide a hook for notification Event::fire('user.email_resend', array(Auth::user())); return Redirect::back()->with('flash', 'Please check your email inbox to verify.'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function resend_verification() {\n if ($this->request->is('post') || $this->Session->read('Auth.User.email')) {\n \t$email = ($this->Session->read('Auth.User.email')) ? $this->Session->read('Auth.User.email') : $this->request->data['User']['email'];\n \t$arrResponse = $this->User->ResendVerification($email);\n if (!empty($arrResponse)) {\n if ($arrResponse['status'] == 'fail') {\n $this->Session->setFlash($arrResponse['message'], 'alert', array(\n 'plugin' => 'BoostCake',\n 'class' => 'alert-danger'\n ));\n } else {\n $this->Session->setFlash($arrResponse['message'], 'alert', array(\n 'plugin' => 'BoostCake',\n 'class' => 'alert-success'\n ));\n return $this->redirect($this->Auth->redirectUrl());\n }\n }\n }\n }", "public function resend()\n {\n if (auth('api')->user()->hasVerifiedEmail()) {\n return $this->respondBadRequest(ApiCode::EMAIL_ALREADY_VERIFIED);\n }\n auth('api')->user()->sendEmailVerificationNotification();\n\n return $this->respondWithMessage(\"Email verification link sent on your email id\");\n }", "public function resendVerifyEmail(Request $request)\n {\n if($this->user->hasVerifiedEmail())\n {\n return redirect($this->redirectTo)->withFlash('success', 'Your email has already been verified');\n }\n\n if($this->sendVerificationEmail($this->auth->user()->get('username'), $this->auth->user()->get('email')) === false)\n {\n return redirect('/email/verify')->withFlash(\n 'error',\n 'A verification email could not be sent, it failed to send, please try again'\n );\n }\n\n return redirect('/email/verify')->withFlash(\n 'success',\n 'A new verification email has been sent, please use the link to verify your email'\n );\n }", "public function resendEmailVerification() {\n try {\n return $this->getEmailVerificationUtils()->resendVerificationEmail();\n } catch (\\Illuminate\\Database\\QueryException $ex) {\n return $this->getExceptionUtils()->storeException($ex);\n } catch (\\Exception $ex) {\n return $this->getExceptionUtils()->storeException($ex);\n }\n }", "public function actionResend()\n\t{\n\t\t$model = new ProfileForm;\n\t\t$model->load(Yii::app()->user->id);\n\n\t\t// If we don't have one on file, then someone the user got to a page they shouldn't have gotten to\n\t\t// Seamlessly redirect them back\n\t\tif ($model->getNewEmail() == NULL)\n\t\t\t$this->redirect(Yii::app()->user->returnUrl);\n\n\t\tif ($model->sendVerificationEmail())\n\t\t\tYii::app()->user->setFlash('success', Yii::t('ciims.controllers.Profile', 'A new verification email has been resent to {{user}}. Please check your email address.', array(\n\t\t\t\t'{{user}}' => $model->getNewEmail()\n\t\t\t)));\n\t\telse\n\t\t\tYii::app()->user->setFlash('error', Yii::t('ciims.controllers.Profile', 'There was an error resending the verification email. Please try again later.'));\n\n\t\t$this->redirect($this->createUrl('profile/edit'));\n\t}", "public function resendEmail()\n {\n $query = users::where('email', session('notice'))->first();\n // Sending Welcome Email\n Mail::to(session('notice')['email'])->send(new welcome($query->token));\n return view('auth.emailVerification');\n }", "public function resendEmailVerification($email)\n {\n return $this->start()->uri(\"/api/user/verify-email\")\n ->urlParameter(\"email\", $email)\n ->put()\n ->go();\n }", "public function sendVerificationEmail()\n {\n $user = Auth::user();\n\n event(new UserResendVerification($user));\n\n return redirect('/');\n }", "public function resendConfirmationMailAction()\n {\n // @todo find a better way to fetch the data\n $result = GeneralUtility::_GP('tx_femanager_pi1');\n if (is_array($result)) {\n if (GeneralUtility::validEmail($result['user']['email'])) {\n $user = $this->userRepository->findFirstByEmail($result['user']['email']);\n if (is_a($user, User::class)) {\n $this->sendCreateUserConfirmationMail($user);\n $this->addFlashMessage(\n LocalizationUtility::translate('resendConfirmationMailSend'),\n '',\n AbstractMessage::INFO\n );\n $this->redirect('resendConfirmationDialogue');\n }\n }\n }\n $this->addFlashMessage(\n LocalizationUtility::translate('resendConfirmationMailFail'),\n LocalizationUtility::translate('validationError'),\n AbstractMessage::ERROR\n );\n $this->redirect('resendConfirmationDialogue');\n }", "public function resend(Request $request)\n {\n if ($request->user('user')->hasVerifiedEmail()) {\n return redirect()->route('user.home');\n }\n\n $request->user('user')->sendEmailVerificationNotification();\n\n return redirect()\n ->back()\n ->with('status','We have sent you a verification email!');\n }", "public function verifyEmail()\n {\n $this->verified = true;\n\n $this->save();\n\n $this->activationToken->delete();\n }", "public function requestVerificationEmail()\n {\n if (!$this->request->is('post')) {\n $this->_respondWithMethodNotAllowed();\n return;\n }\n\n $user = $this->Guardian->user();\n if (!$user->verified) {\n $this->Users->Tokens->expireTokens($user->id, TokensTable::TYPE_VERIFY_EMAIL);\n $token = $this->Users->Tokens->create($user, TokensTable::TYPE_VERIFY_EMAIL, 'P2D');\n try {\n $this->getMailer('User')->send('verify', [$user, $token->token]);\n $this->set('message', __('Please check your inbox.'));\n } catch (\\Exception $e) {\n $this->_respondWithBadRequest();\n $this->set('message', 'Mailer not configured.');\n }\n } else {\n $this->set('message', __('Your email address is already verified.'));\n }\n\n $this->set('_serialize', ['message']);\n }", "public function testGetAccountEmailVerificationResendOut()\n {\n // Resend email verification\n $result = $this->visit('account/email/verification/resend')\n ->seePageIs('/account/email/verification/resend');\n }", "function verify_email()\n\t{\n\t\tlog_message('debug', 'Account/verify_email');\n\t\t$data = filter_forwarded_data($this);\n\t\t$data['msg'] = get_session_msg($this);\n\t\tlog_message('debug', 'Account/verify_email:: [1] post='.json_encode($_POST));\n\t\t# skip this step if the user has already verified their email address\n\t\tif($this->native_session->get('__email_verified') && $this->native_session->get('__email_verified') == 'Y'){\n\t\t\tredirect(base_url().'account/login');\n\t\t}\n\n\t\t# otherwise continue here\n\t\tif(!empty($_POST['emailaddress'])){\n\t\t\t$response = $this->_api->post('account/resend_link', array(\n\t\t\t\t'emailAddress'=>$this->native_session->get('__email_address'),\n\t\t\t\t'baseLink'=>base_url()\n\t\t\t));\n\n\t\t\t$data['msg'] = (!empty($response['result']) && $response['result']=='SUCCESS')?'The verification link has been resent':'ERROR: The verification link could not be resent';\n\t\t}\n\n\t\t$data = load_page_labels('sign_up',$data);\n\t\t$this->load->view('account/verify_email', $data);\n\t}", "public function sendEmailVerificationNotification();", "public function sendEmail()\n {\n $user = User::findOne([\n 'store_id' => Yii::$app->storeSystem->getId(),\n 'email' => $this->email,\n 'status' => User::STATUS_INACTIVE\n ]);\n\n if ($user === null) {\n return false;\n }\n\n $content = CommonHelper::render(Yii::getAlias('@common/mail/emailVerify-html.php'), [\n 'user' => $user,\n ], $this, Yii::getAlias('@common/mail/layouts/html.php'));\n\n Yii::$app->mailSystem->send($this->email, Yii::t('app', 'Resend verification email'), $content);\n return true;\n }", "public function sendEmailVerificationNotification()\n { \n \n $this->notify(new ConfirmEmail); \n \n }", "public function resendRegistrationVerification($email, $applicationId)\n {\n return $this->start()->uri(\"/api/user/verify-registration\")\n ->urlParameter(\"email\", $email)\n ->urlParameter(\"applicationId\", $applicationId)\n ->put()\n ->go();\n }", "public function resend(Request $request)\n {\n if ($request->user()->hasVerifiedEmail()) {\n return response()->json(['Email aldready verified'],422);\n }\n\n $request->user()->sendEmailVerificationNotification();\n\n return response()->json(['Email verification link has been sent to your e-mail.']);\n }", "public function resend()\n {\n // Form Processing\n $result = $this->resendActivationForm->resend( Input::all() );\n\n if( $result['success'] )\n {\n Event::fire('user.resend', array(\n 'email' => $result['mailData']['email'], \n 'userId' => $result['mailData']['userId'], \n 'activationCode' => $result['mailData']['activationCode']\n ));\n\n // Success!\n Session::flash('success', $result['message']);\n return Redirect::route('home');\n } \n else \n {\n Session::flash('error', $result['message']);\n return Redirect::route('profile')\n ->withInput()\n \n ->withErrors( $this->resendActivationForm->errors() );\n }\n }", "public function resend(Request $request){\n $this->CSRFProtection($request);\n $email = $request->get(\"email\", \"\");\n $reCAPTCHA = $request->get(\"g-recaptcha-response\", \"\");\n\n if(!$this->activationTokenModel->resend($reCAPTCHA, $email, $this->twig)){\n $this->setResponse($this->activationTokenModel->errorToString());\n }\n else{\n $this->setResponse(\"We sent you an activation code. Check your email and click on the link to verify.\", 200);\n }\n return $this->jsonResponse($this->response);\n }", "public function sendEmailVerificationNotification()\n {\n if (!allowSendEmail()) {\n $this->markEmailAsVerified();\n return;\n }\n\n $this->notify(new VerifyEmailNotification);\n }", "public function resend()\n {\n if (!$this->validate()) {\n return false;\n }\n\n $user = $this->finder->findUserByEmail($this->email);\n\n if ($user instanceof User && !$user->isConfirmed) {\n /** @var Token $token */\n $token = \\Yii::createObject([\n 'class' => Token::className(),\n 'user_id' => $user->id,\n 'type' => Token::TYPE_CONFIRMATION,\n ]);\n $token->save(false);\n $this->mailer->sendConfirmationMessage($user, $token);\n }\n\n \\Yii::$app->session->setFlash(\n 'info',\n \\Yii::t(\n 'user',\n 'A message has been sent to your email address. It contains a confirmation link that you must click to complete registration.'\n )\n );\n\n return true;\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new AffiliateVerifyEmail);\n }", "function resend_activation_token() {\n $this->load->library('form_validation');\n\n $this->form_validation->set_rules('activation_token_identity', 'Identity (Email / Login)', 'required');\n\n // Run the validation.\n if ($this->form_validation->run()) {\n // Verify identity and resend activation token.\n $response = $this->ez_auth->resend_activation_token($this->input->post('activation_token_identity'));\n\n // Save any public status or error messages (Whilst suppressing any admin messages) to CI's flash session data.\n $this->session->set_flashdata('message', $this->ez_auth->get_messages());\n\n // Redirect user.\n redirect();\n }\n else {\n // Set validation errors.\n $this->data['message'] = validation_errors('<p class=\"error_msg\">', '</p>');\n\n return FALSE;\n }\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify( new VerifyEmail() ); # 새로 만든 VerifyEmail Notification 발송\n }", "public function resendActivationEmail()\n {\n $breadCrumb = $this->userEngine\n ->breadcrumbGenerate('resend-activation-email');\n\n return $this->loadPublicView('user.resend-activation-email', $breadCrumb['data']);\n }", "public static function reissue_verification() {\n $email = $_POST[\"email\"];\n // Fetch whether the email is verified information\n try {\n $request = DB::query(\"SELECT `Verified` FROM `Users` WHERE `Email`=:email;\", array(\":email\" => $email));\n } catch (PDOException $e) {\n return 1;\n }\n\n // Check if the email is actually registered\n if ($request) {\n $verified_status = $request[0][\"Verified\"];\n // Determine whether the email is verified\n if ($verified_status == 1) {\n // Check if users has a password\n try {\n $pass_request = DB::query(\"SELECT `Password` FROM `Users` WHERE `Email`=:email;\", array(\":email\" => $email));\n } catch (PDOException $e) {\n return 1;\n }\n if ($pass_request) {\n return 3;\n } else {\n return 4;\n }\n } else {\n // Gather required data \n try {\n $username = DB::query(\"SELECT `Username` FROM `Users` WHERE `Email`=:email;\", array(\":email\" => $email))[0][\"Username\"];\n } catch (PDOException $e) {\n return 1;\n }\n $vercode = sha1(time());\n try {\n DB::query(\"UPDATE `Users` SET Vercode=:ver WHERE Email=:email;\", array(\":ver\" => $vercode, \":email\" => $email));\n } catch (PDOException $e) {\n return 1;\n }\n $to = $email;\n $headers = <<<MESSAGE\nFROM: George || george@flatdragons.com\nContent-Type: text/plain;\nMESSAGE;\n $subject = \"Verification code re-issue\";\n $msg = <<<EMAIL\nHi $username,\n\nYou've requested for a new verification code to be issued!\nPlease follow this <a href='https://flatdragons.com/signup.php?user=$username&ver=$vercode'>link</a> to confirm your account with us :)\n\nKind regards,\nGeorge (FlatDragons)\nEMAIL;\n mail($to, $subject, $msg, $headers);\n return 0;\n }\n } else {\n return 2;\n }\n }", "public function testGetAccountEmailVerificationResendIn($auth)\n {\n // Resend email verification\n $result = $this->actingAs($auth)\n ->visit('account/email/verification/resend')\n ->seePageIs('/account/email/verification/resend');\n }", "public function sendVerificationMail()\n {\n\n $this->notify(new VerifyEmail($this));\n\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new CustomVerifyEmail);\n }", "public function confirmEmail()\n {\n $this->email_confirmation_token = null;\n $this->is_email_verified = 1;\n return $this->save();\n }", "function send_again()\n\t{\n\t\tif (!$this->tank_auth->is_logged_in(FALSE)) {\t\t\t\t\t\t\t// not logged in or activated\n\t\t\tredirect('/auth/login/');\n\n\t\t} else {\n\t\t\t$this->form_validation->set_rules('email', 'Email', 'trim|required|xss_clean|valid_email');\n\n\t\t\t$data['errors'] = array();\n\n\t\t\tif ($this->form_validation->run()) {\t\t\t\t\t\t\t\t// validation ok\n\t\t\t\tif (!is_null($data = $this->tank_auth->change_email(\n\t\t\t\t\t\t$this->form_validation->set_value('email')))) {\t\t\t// success\n\n\t\t\t\t\t$data['site_name']\t= $this->config->item('website_name', 'tank_auth');\n\t\t\t\t\t$data['activation_period'] = $this->config->item('email_activation_expire', 'tank_auth') / 3600;\n\n\t\t\t\t\t$this->_send_email('activate', $data['email'], $data);\n\n\t\t\t\t\t$this->_show_message(sprintf($this->lang->line('auth_message_activation_email_sent'), $data['email']));\n\n\t\t\t\t} else {\n\t\t\t\t\t$errors = $this->tank_auth->get_error_message();\n\t\t\t\t\tforeach ($errors as $k => $v)\t$data['errors'][$k] = $this->lang->line($v);\n\t\t\t\t}\n\t\t\t}\n\t\t\tdisplay('send_again', $data);\t\t\t\n\t\t}\n\t}", "public function sendEmailVerificationNotification(){\n $this->notify(new VerifyEmail);\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify( new VerifyEmailNotification );\n }", "public function markEmailAsVerified();", "public function resend(Request $request)\n {\n $this->validate($request, ['email' => 'required|email']);\n\n $user = User::where('email', $request->email)->first();\n\n if (is_null($user)) {\n throw ValidationException::withMessages([\n 'email' => 'We can\\'t find a user with that e-mail address.',\n ]);\n }\n\n if ($user->hasVerifiedEmail()) {\n throw ValidationException::withMessages([\n 'email' => 'Email has been been verified already.',\n ]);\n }\n\n $user->sendEmailVerificationNotification();\n\n return response()->json([\n 'message' => 'Verification email has been sent again.'\n ]);\n }", "function send_again()\n {\n if (!$this->tank_auth->is_logged_in(FALSE)) {\t\t\t\t\t\t\t// not logged in or activated\n redirect('/auth/login/');\n\n } else {\n $this->form_validation->set_rules('email', 'Email', 'trim|required|xss_clean|valid_email');\n\n $data['errors'] = array();\n\n if ($this->form_validation->run()) {\t\t\t\t\t\t\t\t// validation ok\n if (!is_null($data = $this->tank_auth->change_email(\n $this->form_validation->set_value('email')))) {\t\t\t// success\n\n $data['site_name']\t= $this->config->item('website_name', 'tank_auth');\n $data['activation_period'] = $this->config->item('email_activation_expire', 'tank_auth') / 3600;\n\n $this->_send_email('activate', $data['email'], $data);\n\n $this->_show_message(sprintf($this->lang->line('auth_message_activation_email_sent'), $data['email']));\n\n } else {\n $errors = $this->tank_auth->get_error_message();\n foreach ($errors as $k => $v)\t$data['errors'][$k] = $this->lang->line($v);\n }\n }\n $this->load->view('auth/send_again_form', $data);\n }\n }", "public function sendEmailVerificationNotification(): void\n {\n $this->notify(new VerifyEmail);\n }", "public function testVerification()\n {\n Notification::fake();\n\n $this->user->email_verified_at = null;\n\n $this->user->save();\n\n $this->user->notify(new VerifyEmail);\n\n // $request = $this->post('/email/resend');\n //\n // $request->assertSuccessful();\n\n Notification::assertTimesSent(1, VerifyEmail::class);\n\n Notification::assertSentTo($this->user,VerifyEmail::class);\n }", "public function resend() {\n\t\tif($e = $this->getEmail()) {\n\t\t\t$e->send();\n\t\t\treturn 'Sent';\n\t\t}\n\n\t\treturn 'Could not send email';\n\t}", "function register_resend_email($email) {\n\t\tglobal $pdo;\n\n\t\t//delete old registration attempts\n\t\t$pdo->query(\"DELETE FROM user WHERE verified = 0 AND TIME_TO_SEC(TIMEDIFF(CURRENT_TIMESTAMP, code_generation_time)) > 600\");\n\n\t\t//empty or array check\n\t\tif(empty($email) || is_array($email)) {\n\t\t\treturn 1;\n\t\t}\n\n\t\t//check if email exists and is not verified\n\t\t$sql = \"SELECT name, verification_code FROM user WHERE REPLACE(email, \\\".\\\", \\\"\\\") = REPLACE(:email, \\\".\\\", \\\"\\\") AND verified = 0\";\n\t\t$sth = $pdo->prepare($sql);\n\t\t$sth->bindValue(\":email\", mail_simplify($email), PDO::PARAM_STR);\n\t\t$sth->execute();\n\n\t\tif($sth->rowCount() == 0) {\n\t\t\t//check if email exists but is already verified\n\t\t\t$sql = \"SELECT id FROM user WHERE REPLACE(email, \\\".\\\", \\\"\\\") = REPLACE(:email, \\\".\\\", \\\"\\\") AND verified = 1\";\n\t\t\t$sth2 = $pdo->prepare($sql);\n\t\t\t$sth2->bindValue(\":email\", mail_simplify($email), PDO::PARAM_STR);\n\t\t\t$sth2->execute();\n\n\t\t\tif($sth2->rowCount() == 0) {\n\t\t\t\treturn 2;\n\t\t\t} else {\n\t\t\t\treturn 3;\n\t\t\t}\n\t\t}\n\n\t\t//get data required for email\n\t\t$name_verification_code = $sth->fetch();\n\t\t$name = $name_verification_code[\"name\"];\n\t\t$verification_code = $name_verification_code[\"verification_code\"];\n\n\t\t$reg_link = \"https://swapitg.com/firstlogin/$verification_code\";\n\t\t$subject = \"Registration\";\n\t\t$mailfile = fopen(__DIR__ . \"/register_mail_template.html\", \"r\") or die(\"Unable to open file!\");\n\t\t$message = strtr(fread($mailfile, filesize(__DIR__ . \"/register_mail_template.html\")), array('$reg_link' => $reg_link, '$name' => htmlspecialchars($name)));\n\t\tfclose($mailfile);\n\t\t$sender_email = \"no-reply@swapitg.com\";\n\t\t$sender_name = \"SwapitG no-reply\";\n\n\t\t//send email\n\t\tif(mail($email, $subject, wordwrap($message, 70, \"\\r\\n\"), \"From: $sender_name<$sender_email>\\r\\nContent-type: text/html; charset=utf-8\", \" -f \" . $sender_email)) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\treturn 4;\n\t\t}\n\t}", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmailNotification);\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmailNotification);\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail());\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail());\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail());\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail);\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail);\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail);\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail);\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail);\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail);\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail);\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new EmailVerification('networking_agent'));\n }", "public function resendVerification($postData = array()) {\n\t\tif (!isset($postData[$this->alias]['email']) || empty($postData[$this->alias]['email'])) {\n\t\t\t$this->invalidate('email', __d('users', 'Please enter your email address.'));\n\t\t\treturn false;\n\t\t}\n\n\t\t$user = $this->findByEmail($postData[$this->alias]['email']);\n\n\t\tif (empty($user)) {\n\t\t\t$this->invalidate('email', __d('users', 'The email address does not exist in the system'));\n\t\t\treturn false;\n\t\t}\n\n\t\tif ($user[$this->alias]['email_verified'] == 1) {\n\t\t\t$this->invalidate('email', __d('users', 'Your account is already authenticaed.'));\n\t\t\treturn false;\n\t\t}\n\n\t\tif ($user[$this->alias]['active'] == 0) {\n\t\t\t$this->invalidate('email', __d('users', 'Your account is disabled.'));\n\t\t\treturn false;\n\t\t}\n\n\t\t$user[$this->alias]['email_token'] = $this->generateToken();\n\t\t$user[$this->alias]['email_token_expires'] = $this->emailTokenExpirationTime();\n\n\t\treturn $this->save($user, false);\n\t}", "public function confirmEmail()\n {\n $this->mail_confirmed = Carbon::now();\n $this->mail_token = null;\n $this->save();\n }", "public function resend_email()\n\t{\t\n\t\t// figure out how to compose the body\n\t\tif ($this->that->HTML!='')\n\t\t{\n\t\t\t$body = (isset($this->that->HTML_rewritten)) ? $this->that->HTML_rewritten : $this->that->HTML;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$body = (isset($this->that->PLAIN_rewritten)) ? $this->that->PLAIN_rewritten : $this->that->PLAIN;\n\t\t}\n\n\t\t$is_not_html = $this->that->has_PLAIN_not_HTML();\n\n\t\t// get the attachment filenames\n\t\t$file_array = $this->that->get_file_name_array();\n\t\t\n\t\t// this function is in the email_send_helper\n\t\t// and requires a modified email library\n\t\t// settings for using google as the smtp machine are\n\t\t// embedded in the helper\n\t\t// you can replace this with a simpler email sender\n\t\tsend_email_by_google($this->get_list_address(),\n\t\t\t$this->get_resend_to(),\n\t\t\t$this->get_resend_cc(), \n\t\t\t$this->that->get_address_from(),\n\t\t\t$this->that->get_personal_from(),\n\t\t\t$this->that->get_subject(),\n\t\t\t$body, $is_not_html, $file_array);\n\t}", "public function sendEmailVerificationNotification()\n {\n $this->notify(new VerifyEmail); // my notification\n }", "public function resendActivationEmail(Request $request,$user_id='')\n {\n if ($user_id) {\n $inputs = $request->all();\n $user_id = base64_decode($user_id);\n \n $user = User::find($user_id);\n if (!empty($user)) {\n $_REQUEST['first_name'] = $user->first_name;\n $_REQUEST['last_name'] = $user->last_name;\n $user_ary = ['email_token' => $user->email_token, 'name' => $user->name];\n \n $url='code_verification/'.base64_encode($user_id);\n if ($request->has('CompanyNumber')) {\n //$user_ary['company_number'] = $request->company_number;\n $url='code_verification/'.base64_encode($user_id).'?CompanyNumber='.$request->get('CompanyNumber');\n $inputs['company_number'] = $inputs['CompanyNumber'];\n }\n \n $email = new EmailVerification($inputs,new User($user_ary));\n Mail::to($user->email)->send($email);\n return redirect($url)\n ->with('success','Please check your mailbox for activation link');\n }\n } \n\n }", "public function sendEmailVerificationNotification()\n {\n $this->notify(new EmailVerification('admin'));\n }", "public static function resendConfirmation($id)\n {\n $user = self::find($id);\n\n Mail::send('emails.accounts-verify', ['confirmation_code' => $user->confirmation_code], function ($m) use ($user) {\n $m->from(config('mail.from.address'), config('app.name'));\n $m->to($user->email, $user->name)->subject(__('Verify your email address'));\n });\n }", "function reset_email()\n\t{\n\t\t$user_id\t\t= $this->uri->segment(3);\n\t\t$new_email_key\t= $this->uri->segment(4);\n\n\t\t// Reset email\n\t\tif ($this->tank_auth->activate_new_email($user_id, $new_email_key)) {\t// success\n\t\t\t$this->tank_auth->logout();\n\t\t\t$this->session->set_flashdata('message',$this->lang->line('auth_message_new_email_activated'));\n\t\t\t\t\tredirect('login');\n\n\t\t} else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// fail\n\t\t\t$this->session->set_flashdata('message',$this->lang->line('auth_message_new_email_failed'));\n\t\t\t\t\tredirect('login');\n\t\t}\n\t}", "function reset_email()\n\t{\n\t\t$user_id\t\t= $this->uri->segment(3);\n\t\t$new_email_key\t= $this->uri->segment(4);\n\n\t\t// Reset email\n\t\tif ($this->tank_auth->activate_new_email($user_id, $new_email_key)) {\t// success\n\t\t\t$this->tank_auth->logout();\n\t\t\t$this->_show_message($this->lang->line('auth_message_new_email_activated').' '.anchor('/auth/login/', 'Login'));\n\n\t\t} else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// fail\n\t\t\t$this->_show_message($this->lang->line('auth_message_new_email_failed'));\n\t\t}\n\t}", "public function resendTask()\n\t{\n\t\t// Check if the user is logged in\n\t\tif (User::isGuest())\n\t\t{\n\t\t\t$return = base64_encode(Route::url('index.php?option=' . $this->_option . '&controller=' . $this->_controller . '&task=' . $this->_task, false, true));\n\t\t\tApp::redirect(\n\t\t\t\tRoute::url('index.php?option=com_users&view=login&return=' . $return, false),\n\t\t\t\tLang::txt('COM_MEMBERS_REGISTER_ERROR_LOGIN_TO_RESEND'),\n\t\t\t\t'warning'\n\t\t\t);\n\t\t}\n\n\t\t$xprofile = User::getInstance();\n\t\t$login = $xprofile->get('username');\n\t\t$email = $xprofile->get('email');\n\t\t$email_confirmed = $xprofile->get('activation');\n\n\t\t// Incoming\n\t\t$return = urldecode(Request::getString('return', '/'));\n\n\t\t// If already confirmed?\n\t\tif ($email_confirmed == 1 || $email_confirmed == 3)\n\t\t{\n\t\t\tApp::redirect($return);\n\t\t}\n\n\t\t$confirm = \\Components\\Members\\Helpers\\Utility::genemailconfirm();\n\n\t\t$xprofile->set('activation', $confirm);\n\t\t$xprofile->save();\n\n\t\t$subject = Config::get('sitename').' '.Lang::txt('COM_MEMBERS_REGISTER_EMAIL_CONFIRMATION');\n\n\t\t$eview = new \\Hubzero\\Mail\\View(array(\n\t\t\t'name' => 'emails',\n\t\t\t'layout' => 'confirm'\n\t\t));\n\t\t$eview->option = $this->_option;\n\t\t$eview->controller = $this->_controller;\n\t\t$eview->sitename = Config::get('sitename');\n\t\t$eview->login = $login;\n\t\t$eview->name = $xprofile->get('name');\n\t\t$eview->registerDate = $xprofile->get('registerDate');\n\t\t$eview->baseURL = $this->baseURL;\n\t\t$eview->confirm = $confirm;\n\t\t$eview->email = $email;\n\n\t\t$msg = new \\Hubzero\\Mail\\Message();\n\t\t$msg->setSubject($subject)\n\t\t ->addTo($email)\n\t\t ->addFrom(Config::get('mailfrom'), Config::get('sitename') . ' Administrator')\n\t\t ->addHeader('X-Component', $this->_option);\n\n\t\t$message = $eview->loadTemplate(false);\n\t\t$message = str_replace(\"\\n\", \"\\r\\n\", $message);\n\n\t\t$msg->addPart($message, 'text/plain');\n\n\t\t$eview->setLayout('confirm_html');\n\t\t$message = $eview->loadTemplate();\n\t\t$message = str_replace(\"\\n\", \"\\r\\n\", $message);\n\n\t\t$msg->addPart($message, 'text/html');\n\n\t\tif (!$msg->send())\n\t\t{\n\t\t\t$this->setError(Lang::txt('COM_MEMBERS_REGISTER_ERROR_EMAILING_CONFIRMATION', $email));\n\t\t}\n\n\t\tEvent::trigger('onUserAfterConfirmResend', array($xprofile->toArray()));\n\n\t\t// Set the pathway\n\t\t$this->_buildPathway();\n\n\t\t// Set the page title\n\t\t$this->_buildTitle();\n\n\t\t$this->view\n\t\t\t->set('title', Lang::txt('COM_MEMBERS_REGISTER_RESEND'))\n\t\t\t->set('login', $login)\n\t\t\t->set('email', $email)\n\t\t\t->set('return', $return)\n\t\t\t->set('show_correction_faq', true)\n\t\t\t->set('hubName', Config::get('sitename'))\n\t\t\t->setLayout('send')\n\t\t\t->setErrors($this->getErrors())\n\t\t\t->display();\n\t}", "public function sendEmailVerificationNotification()\n {\n $this->notify(new AdminEmailVerificationNotification);\n }", "public function resendmailAction() {\n \n $modelPlugin = $this->modelplugin();\n $mailplugin = $this->mailplugin();\n $phpprenevt = $this->phpinjectionpreventplugin(); \n $jsonArray = $modelPlugin->jsondynamic();\n $userid = $this->sessionid;\n $dynamicPath = $protocol . $jsonArray['domain']['domain_name'];\n $from = $jsonArray['sendgridaccount']['addfrom'];\n\n $encryptedPassword = base64_encode(\"#$#\" . base64_encode(base64_encode($userid . rand(10, 100)) . \"###\" . base64_encode($userid) . \"###\" . base64_encode($userid . rand(10, 100)) . \"###\" . base64_encode(base64_encode($userid . rand(10, 100)))) . \"#$#\");\n $buttonclick = $dynamicPath . \"/Gallery/galleryview/\" . $encryptedPassword;\n $mail_link = \"<a href='\" . $buttonclick . \"' style='background-color: #04ad6a; border: medium none; border-radius: 19px; padding: 12px; color: #fff; text-align: center; text-decoration: none; text-transform: uppercase;'>Click here</a>\";\n\n if (empty($userid)) {\n $userid = $phpprenevt->stringReplace($_POST['loginId']);\n }\n $publisheridarray = array('publisherId' => $userid);\n $selectid = $modelPlugin->getpublisherTable()->selectEmail($publisheridarray);\n $mail = $selectid[0]['email'];\n $keyArray = array('mailCatagory' => 'R_MAIL');\n $getMailStructure = $modelPlugin->getconfirmMailTable()->fetchall($keyArray);\n $getmailbodyFromTable = $getMailStructure[0]['mailTemplate'];\n\n $activationLinkreplace = str_replace(\"|ACTIVATIONLINK|\", $mail_link, $getmailbodyFromTable);\n $mailBody = str_replace(\"|DYNAMICPATH|\", $dynamicPath, $activationLinkreplace);\n $subject = \"Confirm your email address\";\n $mailfunction = $mailplugin->confirmationmail($mail, $from, $subject, $mailBody);\n $res['response'] = 1;\n echo json_encode($res);\n exit;\n }", "function send_again()\n\t{\n\t\tif (!$this->tank_auth->is_logged_in(FALSE)) {\t\t\t\t\t\t\t// not logged in or activated\n\t\t\tredirect('/auth/login/');\n\n\t\t} else {\n\t\t\t$this->form_validation->set_rules('email', 'Email', 'trim|required|xss_clean|valid_email');\n\n\t\t\t$data['errors'] = array();\n\n\t\t\tif ($this->form_validation->run()) {\t\t\t\t\t\t\t\t// validation ok\n\t\t\t\tif (!is_null($data = $this->tank_auth->change_email(\n\t\t\t\t\t\t$this->form_validation->set_value('email')))) {\t\t\t// success\n\n\t\t\t\t\t$data['site_name']\t= config_item('company_name');\n\t\t\t\t\t$data['activation_period'] = config_item('email_activation_expire') / 3600;\n\n\t\t\t\t\t$this->_send_email('activate', $data['email'], $data);\n\t\t\t\t\t$this->session->set_flashdata('message', sprintf($this->lang->line('auth_message_activation_email_sent'), $data['email']));\n\t\t\t\t\t\tredirect('/auth/login');\n\t\t\t\t\t//$this->_show_message(sprintf($this->lang->line('auth_message_activation_email_sent'), $data['email']));\n\n\t\t\t\t} else {\n\t\t\t\t\t$errors = $this->tank_auth->get_error_message();\n\t\t\t\t\tforeach ($errors as $k => $v)\t$data['errors'][$k] = $this->lang->line($v);\n\t\t\t\t}\n\t\t\t}\n\t$this->load->module('layouts');\n\t$this->load->library('template');\n\t$this->template->title('Send Password - '.config_item('company_name'));\n\t$this->template\n\t->set_layout('login')\n\t->build('auth/send_again_form',isset($data) ? $data : NULL);\n\t\t}\n\t}", "function reset_email()\n {\n $user_id\t\t= $this->uri->segment(3);\n $new_email_key\t= $this->uri->segment(4);\n\n // Reset email\n if ($this->tank_auth->activate_new_email($user_id, $new_email_key)) {\t// success\n $this->tank_auth->logout();\n $this->_show_message($this->lang->line('auth_message_new_email_activated').' '.anchor('/auth/login/', 'Login'));\n\n } else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// fail\n $this->_show_message($this->lang->line('auth_message_new_email_failed'));\n }\n }", "public function postResend(Request $request)\n {\n $validator = \\Validator::make($request->only('email'), [\n 'email' => 'required|email|max:255|exists:users,email'\n ]);\n\n \n if ($validator->passes()) {\n // Fetch the user in question\n $user = Sentinel::findUserByCredentials(['email' => $request->get('email')]);\n\n // Only send them an email if they have a valid, inactive account\n if (!Activation::completed($user)) {\n // Generate a new code\n $activation = Activation::create($user);\n\n // Send the email\n $code = $activation->getCode();\n $email = $user->email;\n Mailgun::send(\n 'centaur.email.welcome',\n ['code' => $code, 'email' => $email],\n function ($message) use ($email) {\n $message->to($email)\n ->subject('Resend your activation account');\n }\n );\n $meta['message'] = 'success';\n $meta['code'] = 200; \n $code = 200; \n \n }\n else{\n $meta['message'] = 'error, your activation was completed';\n $meta['code'] = '400'; \n $code = 400; \n }\n }\n else\n {\n $meta['status'] = false;\n $meta['message'] = \"Failed\";\n $meta['code'] = 500;\n $code = $meta['code'];\n $meta['error'] = $validator->errors();\n }\n $result['meta']=$meta;\n return response()->json(compact('result'),$code);\n // return $this->response->array($result)->setStatusCode($code);\n // return $this->response->array(compact('meta'))->setStatusCode($code);\n }", "function notify() {\n if ($this->active_invoice->isLoaded()) {\n if ($this->active_invoice->canResendEmail($this->logged_user)) {\n $company = $this->active_invoice->getCompany();\n if(!($company instanceof Company)) {\n $this->response->operationFailed();\n } // if\n \n $issue_data = $this->request->post('issue', array(\n 'issued_on' => $this->active_invoice->getIssuedOn(),\n 'due_on' => $this->active_invoice->getDueOn(),\n 'issued_to_id' => $this->active_invoice->getIssuedToId()\n ));\n \n $this->response->assign('issue_data', $issue_data);\n \n if ($this->request->isSubmitted()) {\n try {\n if($this->active_invoice->isIssued()) {\n $this->active_invoice->setDueOn($issue_data['due_on']);\n } // if\n \n $resend_to = isset($issue_data['user_id']) && $issue_data['user_id'] ? Users::findById($issue_data['user_id']) : null;\n \n if($issue_data['send_emails'] && $resend_to instanceof IUser) {\n $this->active_invoice->setIssuedTo($resend_to);\n \n $recipients = array($resend_to);\n\n AngieApplication::notifications()\n ->notifyAbout('invoicing/invoice_reminder', $this->active_invoice)\n ->sendToUsers($recipients, true);\n } // if\n \n $this->active_invoice->save();\n \n $this->response->respondWithData($this->active_invoice, array(\n 'detailed' => true, \n \t'as' => 'invoice'\n ));\n \t} catch (Exception $e) {\n \t DB::rollback('Failed to resend email @ ' . __CLASS__);\n \t $this->response->exception($e);\n \t} // try\n } // if\n } else {\n $this->response->forbidden();\n } // if\n } else {\n $this->response->notFound();\n } // if\n }", "public function verifyAction()\n {\n $email = Request::post('email', Filter::FILTER_EMAIL, false);\n\n if (!$email || !Validator_Email::validate($email)) {\n Response::jsonError($this->moduleLang->get('email_invalid'));\n }\n\n $model = Model::factory('User');\n\n $userIds = $model->getList(\n ['limit' => 1],\n [\n 'email' => $email,\n 'enabled'=> true\n ],\n ['id']\n );\n\n if (count($userIds) == 0) {\n Response::jsonError($this->moduleLang->get('email_user_unknown'));\n }\n\n $userId = $userIds[0]['id'];\n\n $user = Db_Object::factory('User', $userId);\n $authCode = Utils::hash(uniqid(time(),true));\n\n $confDate = new DateTime('now');\n $confDate = $confDate->add(new DateInterval('P1D'))->format('Y-m-d H:i:s');\n\n try{\n $user->setValues(array(\n 'confirmation_code' => $authCode,\n 'confirmation_expiried' => $confDate\n ));\n if(!$user->save())\n throw new Exception('Cannot update user info');\n }catch (Exception $e){\n Response::jsonError($this->_lang->get('CANT_EXEC'));\n }\n\n $this->sendEmail($user);\n\n Response::jsonSuccess(array(\n 'msg' => $this->moduleLang->get('pwd_success')\n ));\n }", "public function resendActivationEmailSuccess()\n {\n return $this->loadPublicView('user.resend-activation-email-success');\n }", "function testResendVerification() {\n $this->assertFalse($this->oObject->resendVerification());\n }", "public function sendRestoreEmail();", "function resend_account_activation($sToken) {\n\n\t\t//see if the token is an expired one\n\t\t$aResult = $this->common_model->isValidToken($sToken, 'account_activation');\n\t\t$aTokenStatus = c('token_status');\n\n\t\tif($aResult['status'] == $aTokenStatus['expired']){\n\n\t\t\t$oToken = $aResult['oToken'];\n\t\t\t$oUser = $this->user_model->getUserBy('id', $oToken->user_id);\n\t\t\t//confirmation email to user\n\t\t\t$account_activation_code = $this->common_model->generateToken('account_activation', $oUser->id);\n\t\t\t$arr_email['name']\t\t\t\t= $oUser->first_name . ' ' . $oUser->last_name;\n\t\t\t$arr_email['activation_url']\t= site_url('user/account_activation/'.$account_activation_code);\n\t\t\t$arr_email['help_url']\t\t\t= site_url('help');\n\n\n\t\t\t$this->load->helper('custom_mail');\n\t\t\tif(sendMail($oUser->email_id, $arr_email, 'registration_activation_link')){\n\t\t\t\t$this->session->set_flashdata ('success_message', 'Please Check your email now.');\n\t\t\t}else{\n\t\t\t\t$this->session->set_flashdata ('info_message', 'Confirmation mail is not sent');\n\t\t\t}\n\t\t}\n\n\t\tredirect('home');\n\t}", "public function resetPassword(){\n\t\t$sql = \"UPDATE user SET verified=0 WHERE email = :email LIMIT 1\";\n\t\t\n\t\ttry{\n\t\t\t$stmt = $this->$this->_db->prepare($sql);\n\t\t\t$stmt->bindParam(\":email\", $_POST['email'], PDO::PARAM_STR);\n\t\t\t$stmt->execute();\n\t\t\t$stmt->closeCursor();\n\t\t}catch(PDOException $e){\n\t\t\treturn $e->getMessage();\n\t\t}\n\t\t\n\t\tif(!$this->sendResetEmail($_POST['email'], $_POST['v'])){\n\t\t\treturn \"Sending the email failed\";\n\t\t}\n\t\treturn TRUE;\n\t}", "public function verified()\n {\n $this->verified = 1;\n $this->email_token = null;\n $this->save();\n }", "public function verify()\n {\n $this->update(['email_verified_at' => Carbon::now()]);\n }", "function resend_link($sToken){\n\t\t$aResult = $this->common_model->isValidToken($sToken, 'account_activation');\n\t\t$aTokenStatus = c('token_status');\n\n\t\tif($aResult['status'] == $aTokenStatus['expired']){\n\n\t\t}\n\n\t\tredirect('home');\n\t\t\t//get the user and the purpose of the token\n\t\t\t\t//send the email\n\n\t}", "public function verified()\n {\n $this->verified = 1;\n $this->email_token = null;\n $this->save();\n }", "private function verificarEmail(){\n\t \n\t \t\t//Verifica se a requisição é via AJAX\n\t \t\tif(HelperFactory::getInstance()->isAjax()){\n\t \t\t\n\t \t\t\t //Solicita a verificação do E-mail\n\t\t\t\t $this->Delegator('ConcreteCadastro', 'verificarEmail',$this->getPost());\t \t\t\t \n\t \t\t}\t \n\t }", "public function postRemind()\n\t{\n // Make sure the user has verified their email address\n $user = User::wherePendingEmail(Input::get('email'))->first();\n if($user && $user->email_verified == 0) {\n return Redirect::back()->with('error', Lang::get('reminders.unverified'));\n }\n\n\t\tswitch ($response = Password::remind(Input::only('email')))\n\t\t{\n\t\t\tcase Password::INVALID_USER:\n\t\t\t\treturn Redirect::back()->with('error', Lang::get($response));\n\n\t\t\tcase Password::REMINDER_SENT:\n\t\t\t\treturn Redirect::back()->with('status', Lang::get($response));\n\t\t}\n\t}", "public function sendRecovery()\n {\n $this->recoveryHash = bin2hex(openssl_random_pseudo_bytes(16));\n $this->update();\n $mailer = Registry::getMailer();\n $mailer->addAddress($this->email);\n $mailer->Subject = utf8_decode(Language::translate(\"EMAILS_ACCOUNT_RECOVERY_SUBJECT\"));\n $mailer->msgHTML(\n Template::renderEmail(\n \"accountRecovery\",\n array(\n \"hash\" => $this->recoveryHash\n ), \"bootstrap\"\n )\n );\n if ($mailer->send()) {\n return true;\n } else {\n Registry::addMessage(Language::translate(\"MODL_USER_RECOVERY_EMAIL_ERROR\"), \"error\");\n }\n }", "public function confirmationEmail()\n {\n $email = new Email;\n $email->sendEmail('submitted', 'applicant', Auth::user()->email);\n }", "public function reSendVerificationEmail($entityId)\n\t{\n\t\t// Non-admin data resources\n\t\t$entityRefId = getSegment(2);\n\t\t\n\t\t// Admin data resources\n\t\tif (isFromAdminPanel()) {\n\t\t\t$entityRefId = Request::segment(3);\n\t\t}\n\t\t\n\t\t// Keep Success Message If exists\n\t\tif (session()->has('message')) {\n\t\t\tsession()->keep(['message']);\n\t\t}\n\t\t\n\t\t// Get Entity\n\t\t$entityRef = $this->getEntityRef($entityRefId);\n\t\tif (empty($entityRef)) {\n\t\t\t$message = t(\"Entity ID not found.\");\n\t\t\t\n\t\t\tif (isFromAdminPanel()) {\n\t\t\t\tAlert::error($message)->flash();\n\t\t\t} else {\n\t\t\t\tflash($message)->error();\n\t\t\t}\n\t\t\t\n\t\t\treturn back();\n\t\t}\n\t\t\n\t\t// Get Entity by Id\n\t\t$model = $entityRef['namespace'];\n\t\t$entity = $model::withoutGlobalScopes($entityRef['scopes'])->where('id', $entityId)->first();\n\t\tif (empty($entity)) {\n\t\t\t$message = t(\"Entity ID not found.\");\n\t\t\t\n\t\t\tif (isFromAdminPanel()) {\n\t\t\t\tAlert::error($message)->flash();\n\t\t\t} else {\n\t\t\t\tflash($message)->error();\n\t\t\t}\n\t\t\t\n\t\t\treturn back();\n\t\t}\n\t\t\n\t\t// Check if the Email is already verified\n\t\tif ($entity->verified_email == 1 || isDemo()) {\n\t\t\tif (isDemo()) {\n\t\t\t\t$message = t(\"This feature has been turned off in demo mode.\");\n\t\t\t\tif (isFromAdminPanel()) {\n\t\t\t\t\tAlert::info($message)->flash();\n\t\t\t\t} else {\n\t\t\t\t\tflash($message)->info();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$message = t(\"Your :field is already verified.\", ['field' => t('Email Address')]);\n\t\t\t\tif (isFromAdminPanel()) {\n\t\t\t\t\tAlert::error($message)->flash();\n\t\t\t\t} else {\n\t\t\t\t\tflash($message)->error();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Remove Notification Trigger\n\t\t\t$this->clearEmailSession();\n\n\t\t\treturn back();\n\t\t}\n\t\t\n\t\t// Re-Send the confirmation\n\t\tif ($this->sendVerificationEmail($entity, false)) {\n\t\t\tif (isFromAdminPanel()) {\n\t\t\t\t$message = 'The activation link has been sent to the user to verify his email address.';\n\t\t\t\tAlert::success($message)->flash();\n\t\t\t} else {\n\t\t\t\t$message = t(\"The activation link has been sent to you to verify your email address.\");\n\t\t\t\tflash($message)->success();\n\t\t\t}\n\t\t\t\n\t\t\t// Remove Notification Trigger\n\t\t\t$this->clearEmailSession();\n\t\t}\n\t\t\n\t\treturn back();\n\t}", "public static function email_password_renew() {\n if ($u = static::check_record_existence()) {\n\n $m = auth_model();\n $u = $m::first(array('where' => 'id = \\'' . $u->id . '\\''));\n\n if ($u->emailPasswordRenew())\n flash('Email com as instruções para Renovação de senha enviado para ' . $u->email . '.');\n else\n flash('Algo ocorreu errado. Tente novamente mais tarde.', 'error');\n }\n\n go_paginate();\n }", "public function resendActivationEmailProccess(UserResendActivationEmailRequest $request)\n {\n $processReaction = $this->userEngine\n ->resendActivationEmail($request->all());\n\n return __processResponse($processReaction, [\n 1 => __('Activation mail has been sent successfully, Please check your email..!!'),\n 2 => __('Request failed.'),\n 3 => __('Your account already activated.')\n ]);\n }", "public function resend(Request $request)\n {\n if ($request->user()->hasVerifiedPhone()) {\n return redirect($this->redirectPath());\n }\n\n $request->user()->sendPhoneVerificationNotification();\n\n return response()->json(['status'=>'ok','message' => __('Your code has been resent successfully.')],200);\n }", "public function resendEmailVerificationWithApplicationTemplate($applicationId, $email)\n {\n return $this->start()->uri(\"/api/user/verify-email\")\n ->urlParameter(\"applicationId\", $applicationId)\n ->urlParameter(\"email\", $email)\n ->put()\n ->go();\n }", "public function resend(Request $request)\n {\n $subscribe = $this->subscription->findByEmail($request->input('email'));\n\n \\Mail::send('newsletter::Email.confirmation', ['token' => $subscribe->activation_token, 'newsletter_id' => $request->input('newsletter_id')], function($message) use ($subscribe)\n {\n $message->to($subscribe->email, $subscribe->email)->subject('Inscription!');\n });\n\n alert()->success('<strong>Lien d\\'activation envoyé</strong>');\n\n return redirect('/');\n }", "public function resendEmailToken(Request $request): JsonResponse\n {\n $request->validate([\n 'email' => 'required|email|exists:users',\n ]);\n\n $user = User::firstWhere(['email' => $request->email]);\n\n if (!$user->email_token) {\n return $this->badRequest('Email has already been verified.');\n }\n\n Mail::to($user->email)->send(new UserEmailVerification($user));\n\n return $this->success('Email token sent successfully.');\n }", "public function sendEmail()\n {\n $user = User::findOne([\n 'email' => $this->email,\n 'status' => User::STATUS_INACTIVE\n ]);\n\n if ($user === null) {\n return false;\n }\n\n $verifyLink = Yii::$app->urlManager->createAbsoluteUrl(['site/verify-email', 'token' => $user->verification_token]);\n\n // Получатель\n $sendTo = $this->email;\n\n // Формирование заголовка письма\n $subject = 'Подтверждение регистрации на ' . Yii::$app->name;\n\n // Формирование тела письма\n $msg = \"<html><body style='font-family:Arial,sans-serif;'>\";\n $msg .= \"<h2 style='font-weight:bold;border-bottom:1px dotted #ccc;'>\" . $subject . \"</h2>\\r\\n\";\n $msg .= \"<p>Приветствуем, \" . Html::encode($user->username) . \",</p>\\r\\n\";\n $msg .= \"<p>Перейдите по ссылке ниже, чтобы подтвердить свою электронную почту:</p>\\r\\n\";\n $msg .= \"<p>\" . Html::a(Html::encode($verifyLink), $verifyLink) . \"</p>\\r\\n\";\n $msg .= \"</body></html>\";\n\n // Отправитель\n $headers = \"From: \". Yii::$app->params['supportEmail'] . \"\\r\\n\";\n $headers .= \"MIME-Version: 1.0\\r\\n\";\n $headers .= \"Content-Type: text/html;charset=utf-8 \\r\\n\";\n\n // отправка сообщения\n if(@mail($sendTo, $subject, $msg, $headers)) {\n return true;\n } else {\n return false;\n }\n /*\n return Yii::$app\n ->mailer\n ->compose(\n ['html' => 'emailVerify-html', 'text' => 'emailVerify-text'],\n ['user' => $user]\n )\n ->setFrom([Yii::$app->params['supportEmail'] => Yii::$app->name . ' robot'])\n ->setTo($this->email)\n ->setSubject('Подтверждение регистрации на ' . Yii::$app->name)\n ->send();\n */\n }", "public function sendEmailAction()\n {\n $username = $this->container->get('request')->request->get('username');\n $t = $this->container->get('translator');\n\n /** @var $user UserInterface */\n $user = $this->container->get('fos_user.user_manager')->findUserByUsernameOrEmail($username);\n\n if (null === $user) {\n return $this->returnAjaxResponse(self::NO_USER, array('invalid_username' => $username));\n }\n if ($user->isPasswordRequestNonExpired($this->container->getParameter('fos_user.resetting.token_ttl'))) {\n return $this->returnAjaxResponse(self::TTL_EXPIRED);\n }\n\n if (null === $user->getConfirmationToken()) {\n /** @var $tokenGenerator \\FOS\\UserBundle\\Util\\TokenGeneratorInterface */\n $tokenGenerator = $this->container->get('fos_user.util.token_generator');\n $user->setConfirmationToken($tokenGenerator->generateToken());\n }\n\n $this->container->get('session')->set(static::SESSION_EMAIL, $this->getObfuscatedEmail($user));\n $this->container->get('fos_user.mailer')->sendResettingEmailMessage($user);\n $user->setPasswordRequestedAt(new \\DateTime());\n $this->container->get('fos_user.user_manager')->updateUser($user);\n\n $url = $this->container->get('router')->generate('fos_user_resetting_check_email',array(),TRUE);\n return new CheckAjaxResponse(\n $url,\n array('success'=>TRUE, 'url' => $url, 'title'=>$t->trans('Email confirmation sent'))\n );\n }", "public function sendEmailVerificationNotification()\n {\n if (request()->is('api/*')) {\n $this->notify(new VerifyEmailNotification);\n } else {\n parent::sendEmailVerificationNotification();\n }\n }", "public function sendEmailVerification(EmailVerifications $ev) {\n\n Mail::send('email.verification', ['ev' => $ev], function ($message) use ($ev) {\n $message->from(\"nils.martinussen@gmail.com\");\n $message->to($ev->email)->subject(\"Brukerregistrering - Austegardstoppen\");\n });\n\n }", "public function confirmEmail($token){\n $user = User::find(Auth::user() -> id);\n if($user->payment_status == 0){\n return redirect()->route('register.payment');\n }else if($user->payment_status == 1){\n return redirect()->route('payment.verify');\n }else{\n $data = User::where('remember_token', $token) -> get() -> first();\n if($data->mail_activation_status === 'pending'){\n $data->mail_activation_status = 'active';\n $data->email_verified_at = Carbon::now();\n $data->update();\n return view('active', [\n 'status' => 'success'\n ]);\n }else{\n return view('active', [\n 'status' => 'error'\n ]);\n }\n }\n\n }", "public function decline()\n {\n\n if($this->user['menteer_type']==37 && $this->user['is_matched'] > 0 && $this->user['match_status']=='pending') {\n\n // mentor update\n $update_user = array(\n 'id' => $this->session->userdata('user_id'),\n 'data' => array('is_matched' => '0'),\n 'table' => 'users'\n );\n $this->Application_model->update($update_user);\n\n // mentee update\n $update_user = array(\n 'id' => $this->user['is_matched'],\n 'data' => array('is_matched' => '0'),\n 'table' => 'users'\n );\n $this->Application_model->update($update_user);\n\n $mentee = $this->Application_model->get(array('table'=>'users','id'=>$this->user['is_matched']));\n\n // notify mentee\n\n $data = array();\n $data['first_name'] = $this->user['first_name'];\n $data['last_name'] = $this->user['last_name'];\n\n $message = $this->load->view('/chooser/email/decline', $data, true);\n $this->email->clear();\n $this->email->from($this->config->item('admin_email', 'ion_auth'), $this->config->item('site_title', 'ion_auth'));\n $this->email->to($mentee['email']);\n $this->email->subject('Mentor has declined');\n $this->email->message($message);\n\n $result = $this->email->send(); // @todo handle false send result\n\n $this->session->set_flashdata('message', '<div class=\"alert alert-success\">The Mentee has been notified.</div>');\n redirect('/dashboard');\n\n }else{\n\n redirect('/dashboard');\n\n }\n\n }", "static function confirm_account_email() {\n $model = \\Auth::$model;\n $user = $model::requested();\n\n if (!$user->nil()) {\n if ($user->validate()) {\n $code = confirm_account_email($user->email);\n\n if ($code === -1) {\n flash('Sua conta já está confirmada, basta acessá-la.', 'warning');\n } else if ($code == true)\n flash(\"Enviamos um e-mail para <small><b>$user->email</b></small> com as instruções para você confirmar sua conta.\");\n else\n flash('Não foi possível lhe enviar o e-mail. Por favor, tente novamente mais tarde.', 'error');\n\n go('/');\n } else {\n flash('Verifique os dados do formulário.', 'error');\n }\n }\n\n globals('user', $user);\n }", "function resendApplicationEmail(){\n\t\t//echo \"resend... AppReID: \" . $_POST['appReId'];\n\t\t$db\t\t= JFactory::getDbo();\n\t\t$query\t= $db->getQuery(true);\n\n\t\t$query->select($db->nameQuote('s_name'));\n\t\t$query->select($db->nameQuote('s_prename'));\n\t\t$query->select($db->nameQuote('s_address'));\n\t\t$query->select($db->nameQuote('s_plz'));\n\t\t$query->select($db->nameQuote('s_city'));\n\t\t$query->select($db->nameQuote('s_phone'));\n\t\t$query->select($db->nameQuote('s_email'));\n\t\t$query->select($db->nameQuote('idt_drivin_event_apply')); \n\t\t$query->select($db->nameQuote('s_title'));\t\t\n\t\t$query->from($db->nameQuote('#__jevent_events_apply'));\n\t\t$query->where($db->nameQuote('idt_drivin_event_apply') . '=' . $_POST['appReId']);\n\t\tif(!$bCanceled)\n\t\t\t$query->where($db->nameQuote('dt_Cancel') . ' is null');\n\t\telse\n\t\t\t$query->where($db->nameQuote('dt_Cancel') . ' is not null');\n\n\t\t$db->setQuery($query);\n\t\tif ($link = $db->loadRowList()) {\n\t\t\t//echo \" Count: \" . count($link);\n\t\t\t//echo \" Item: \" . $link[0][0];\n\t\t\t$mailer = new jEventMailer();\n\t\t\t//$mailer->test();\n\t\t\tif(!$mailer->sendApplicationEmail2(1, $link, $this->getEventById(), false)){\n\t\t\t\t$this->setError($mailer->error);\n\t\t\t\techo \"Eroooor \" . $mailer->error;\n\t\t\t}\n\t\t}else{\n\t\t\techo \"No Records found\";\n\t\t}\n\t\treturn true;\n\t}" ]
[ "0.8224594", "0.79387426", "0.7750107", "0.7736373", "0.7625699", "0.75530636", "0.75444496", "0.7494615", "0.7444728", "0.7426033", "0.7362723", "0.7355685", "0.7269306", "0.72624433", "0.71975917", "0.7175438", "0.7173348", "0.71636164", "0.7159758", "0.7116749", "0.70746326", "0.70683277", "0.70416903", "0.7041563", "0.70220006", "0.7012511", "0.699114", "0.697813", "0.69741404", "0.6970518", "0.69694245", "0.6969389", "0.6969152", "0.69520557", "0.6936365", "0.6932255", "0.6928468", "0.69267315", "0.690185", "0.6898088", "0.6868188", "0.6863421", "0.6857092", "0.6857092", "0.6851288", "0.6851288", "0.6851288", "0.6824266", "0.6824266", "0.6824266", "0.6824266", "0.6824266", "0.6824266", "0.6824266", "0.6816432", "0.6804673", "0.67966586", "0.67917305", "0.6773373", "0.675578", "0.6753373", "0.67377204", "0.6722453", "0.67153656", "0.6707181", "0.6679123", "0.6653163", "0.66525006", "0.6642475", "0.66349334", "0.6614539", "0.6582378", "0.65721136", "0.65624505", "0.65366703", "0.6522786", "0.65206796", "0.65200907", "0.64974767", "0.64914536", "0.64844495", "0.6466141", "0.64532256", "0.6446207", "0.64389503", "0.64333254", "0.6418588", "0.6400847", "0.63977677", "0.6384557", "0.6377698", "0.63710105", "0.6353098", "0.6352018", "0.6350288", "0.63350844", "0.6330824", "0.6316951", "0.63134146", "0.6310614" ]
0.74999243
7
Returns the salt that was originally used to encode the password. This can return null if the password was not encoded using a salt.
public function getSalt() { return md5(random_bytes(50)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSalt()\n {\n // You *may* need a real salt if you choose a different encoder.\n return null;\n }", "public function getSalt()\n {\n // You *may* need a real salt if you choose a different encoder.\n return null;\n }", "public function getSalt()\n {\n // You *may* need a real salt if you choose a different encoder.\n return null;\n }", "public function getSalt()\n {\n // You *may* need a real salt if you choose a different encoder.\n return null;\n }", "public function getSalt()\n {\n // You *may* need a real salt if you choose a different encoder.\n return null;\n }", "public function getSalt()\n {\n // You *may* need a real salt if you choose a different encoder.\n return null;\n }", "public function getSalt()\n {\n // attention si vous utilisez une méthode d'encodage différente !\n // il faudra décommenter les lignes concernant le salt, créer la propriété correspondante, et renvoyer sa valeur dans cette méthode\n return null;\n }", "public function getSalt(): ?string\n {\n // we're using bcrypt in security.yml to encode the password, so\n // the salt value is built-in and you don't have to generate one\n return null;\n }", "public function getSalt()\n {\n // see section on salt below\n return null;\n }", "public function getSalt()\n {\n // see section on salt below\n return null;\n }", "public function getSalt()\n {\n // see section on salt below\n return null;\n }", "public function getSalt()\n {\n // see section on salt below\n return null;\n }", "public function getSalt()\n {\n // see section on salt below\n return null;\n }", "public function getSalt()\n {\n // see section on salt below\n return null;\n }", "public function getSalt()\n {\n // see section on salt below\n return null;\n }", "public function getSalt()\n {\n // see section on salt below\n return null;\n }", "public function getSalt()\n {\n // see section on salt below\n return null;\n }", "public function getSalt()\n {\n // see section on salt below\n return null;\n }", "public function getSalt()\n {\n // see section on salt below\n return null;\n }", "public function getSalt()\n {\n // see section on salt below\n return null;\n }", "public function getSalt()\n {\n // see section on salt below\n return null;\n }", "public function getSalt()\n {\n // see section on salt below\n return null;\n }", "public function getSalt()\n {\n // see section on salt below\n return null;\n }", "public function getSalt()\n {\n // see section on salt below\n return null;\n }", "public function getSalt()\n {\n // see section on salt below\n return null;\n }", "public function getSalt()\n {\n // see section on salt below\n return null;\n }", "public function getSalt()\n {\n // see section on salt below\n return null;\n }", "public function getSalt()\n {\n // see section on salt below\n return null;\n }", "public function getSalt()\n {\n // see section on salt below\n return null;\n }", "public function getSalt()\r\n {\r\n // see section on salt below\r\n return null;\r\n }", "public function getSalt() {\n return $this->salt;\n }", "public function getSalt() {\n return $this->salt;\n }", "public function getSalt()\n {\n return $this->salt;\n }", "public function getSalt()\n {\n return $this->salt;\n }", "public function getSalt()\n {\n return $this->salt;\n }", "public function getSalt()\n {\n return $this->salt;\n }", "public function getSalt()\n {\n return $this->salt;\n }", "public function getSalt()\n {\n return $this->salt;\n }", "public function getSalt()\n {\n return $this->salt;\n }", "public function getSalt()\n {\n return $this->salt;\n }", "public function getSalt()\n {\n return $this->salt;\n }", "public function getSalt()\n {\n return $this->salt;\n }", "public function getSalt()\n {\n return $this->salt;\n }", "public function getSalt()\n {\n return $this->salt;\n }", "public function getSalt()\r\n {\r\n return $this->salt;\r\n }", "public function getSalt()\n\t{\n\t\t// see section on salt below\n\t\treturn null;\n\t}", "public function getSalt()\n {\n // see section on salt below\n //return null;\n }", "public function getSalt()\n {\n return $this->userData[$this->saltField];\n }", "public function getSalt(): ?string\n\t{\n\t\treturn null;\n\t}", "public function getEncryptionSalt() {\n return $this->sessionData[\"salt\"];\n }", "public function getSalt()\n {\n // TODO: Implement getSalt() method.\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt(): ?string\n {\n return null;\n }", "public function getSalt()\n {\n return null;\n }", "public function getSalt()\n {\n return null;\n }", "public function getSalt()\n {\n return null;\n }", "public function getSalt()\n {\n return null;\n }", "public function getSalt()\n {\n return null;\n }", "public function getSalt()\n {\n return null;\n }", "public function getSalt()\n {\n return null;\n }" ]
[ "0.83060306", "0.83060306", "0.83060306", "0.83060306", "0.83060306", "0.83060306", "0.8104754", "0.8044824", "0.79278165", "0.79278165", "0.79278165", "0.79278165", "0.79278165", "0.79278165", "0.79278165", "0.79278165", "0.79278165", "0.79278165", "0.79278165", "0.79278165", "0.79278165", "0.79278165", "0.79278165", "0.79278165", "0.79278165", "0.79278165", "0.79278165", "0.79278165", "0.79278165", "0.7923572", "0.7908423", "0.7908423", "0.7887938", "0.7887938", "0.7887938", "0.7887938", "0.7887938", "0.7887938", "0.7887938", "0.7887938", "0.7887938", "0.7887938", "0.7887938", "0.7887938", "0.7875172", "0.78750336", "0.78566724", "0.7798739", "0.7689421", "0.7678282", "0.75332475", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.74524766", "0.73847365", "0.73847365", "0.73847365", "0.73847365", "0.73847365", "0.73847365", "0.73847365" ]
0.0
-1
Removes sensitive data from the user. This is important if, at any given point, sensitive information like the plaintext password is stored on this object.
public function eraseCredentials() { $this->plainPasword = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function eraseCredentials()\n {\n // if you had a plainPassword property, you'd nullify it here\n // $this->plainPassword = null;\n }", "public function eraseCredentials()\n {\n // if you had a plainPassword property, you'd nullify it here\n // $this->plainPassword = null;\n }", "public function eraseCredentials()\n {\n // if you had a plainPassword property, you'd nullify it here\n\n $this->plainPassword = null;\n }", "public function eraseCredentials()\n {\n // does nothing; nothing sensitive is stored, even temporary\n }", "public function eraseCredentials()\n {\n $this->plainPassword = null;\n }", "public function eraseCredentials()\n {\n $this->plainPassword = null;\n }", "public function eraseCredentials()\n {\n $this->plainPassword = null;\n }", "public function eraseCredentials()\n {\n $this->plainPassword = null;\n }", "public function eraseCredentials()\n {\n $this->plainPassword = null;\n }", "public function eraseCredentials()\n {\n $this->plainPassword = null;\n }", "public function eraseCredentials()\n {\n $this->plainPassword = null;\n }", "public function eraseCredentials()\n {\n $this->plainPassword = null;\n }", "public function eraseCredentials()\n {\n $this->plainPassword = null;\n }", "public function eraseCredentials()\n {\n $this->setPlainPassword(null);\n }", "public function eraseCredentials()\n {\n $this->setPlainPassword(null);\n }", "public function eraseCredentials()\n {\n $this->setPlainPassword(null);\n }", "public function eraseCredentials()\n {\n $this->password = null;\n }", "public function eraseCredentials(): void\n {\n $this->password = '';\n }", "public function eraseCredentials(): void\n {\n // $this->plainPassword = null;\n }", "public function withoutPassword()\n {\n return $this->disableEncryption();\n }", "function FilterData()\n\t{\n\t\t// Username and password should be trimmed, because we trim it on authentication\n\t\t$this->username = trim($this->username);\n\t\t$this->password = trim($this->password);\n\t}", "public function eraseCredentials()\n {\n // credentials not stored locally\n }", "public function unsetPassword(){\n\t\t$this->password = null;\n\t}", "function sanitizePassword() {\n // If there is a password confirmation we put it to the checker, too\n $passCheckerInput = (strlen($this->passwordConf) > 0) ?\n array($this->password, $this->passwordConf) : $this->password;\n $passwordChecker = new PasswordChecker($passCheckerInput);\n if ($passwordChecker->getRelevance()) {\n $this->password = htmlspecialchars($this->password);\n } else {\n die(\"Error. Check your form data\");\n }\n }", "public function eraseCredentials() {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\r\n {\r\n // TODO: Implement eraseCredentials() method.\r\n }", "private function clearInput()\n {\n $this->newPassword = '';\n $this->newPasswordConfirmation = '';\n $this->currentPassword = '';\n }", "protected function clearCachedUserData()\n {\n $user = Auth::user();\n\n if ($user) {\n $user->deleteUserData();\n }\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "private function clearLoggedUser() {\n\t\t$session = $this->getUserSession();\n\t\tif ($this->isAdmin()) {\n\t\t\t$session->setUser($this->getUserModel());\n\t\t} else {\n\t\t\t$session->setCustomer($this->getUserModel());\n\t\t}\n\t}", "public function eraseCredentials()\n {\n // TODO: Implement eraseCredentials() method.\n }", "public function eraseCredentials()\n {\n }", "public function eraseCredentials()\n {\n // do nothing\n }", "public function eraseCredentials()\n {\n \n }", "public function eraseCredentials()\n\t{\n\t\t// TODO: Implement eraseCredentials() method.\n\t}", "public function eraseCredentials()\r\n {}", "protected function unsetSensitiveData()\n {\n foreach ($_ENV as $key => $value) {\n unset($_SERVER[$key]);\n }\n\n $_ENV = [];\n }", "public function eraseCredentials()\r\n {\r\n }", "public function eraseCredentials()\n {\n return;\n }", "public function eraseCredentials()\n {\n return;\n }", "public function unlogin() {\n\t\t\tif ($user = $this->authorisator->getUser()) {\n\t\t\t\t/* @var $user ILoginUserDigest */\n\t\t\t\t$user->dao()->merge($user->setLoginKey(null));\n\t\t\t\t$this->authorisator->dropUser();\n\t\t\t}\n\t\t\t\n\t\t\tif ($this->session->isStarted()) {\n\t\t\t\t$this->session->assign($this->getLoginKeyParamName(), null);\n\t\t\t}\n\t\t}", "public function eraseCredentials() {}", "public function eraseCredentials() {\n }", "public function eraseCredentials() {\n }", "public function eraseCredentials() {\n }", "public function eraseCredentials()\n {}", "public function cleanSavedProperties(){\n\t\t\n\t\tunset( $_SESSION[ get_class($this) ] );\n\t}", "public function eraseCredentials()\n {\n }", "public function eraseCredentials()\n {\n }", "public function eraseCredentials()\n {\n }", "public function eraseCredentials()\n {\n }", "public function eraseCredentials()\n {\n }", "public function eraseCredentials()\n {\n }", "public function eraseCredentials()\n {\n }", "public function eraseCredentials()\n {\n }", "public function eraseCredentials()\n {\n }", "public function eraseCredentials()\n {\n }", "public function eraseCredentials()\n {\n }", "public function eraseCredentials()\n {\n }", "public function eraseCredentials()\n {\n }", "public function eraseCredentials()\n {\n }", "public function eraseCredentials()\n {\n }", "public function eraseCredentials()\n {\n }", "public function eraseCredentials()\n {\n }", "public function eraseCredentials()\n {\n }", "public function eraseCredentials()\n {\n }", "public function eraseCredentials()\n {\n }", "public function eraseCredentials()\n {\n }", "public function eraseCredentials()\n {\n }", "public function eraseCredentials()\n {\n }" ]
[ "0.6943971", "0.6943971", "0.6909725", "0.6816517", "0.66853416", "0.66853416", "0.66853416", "0.66853416", "0.66853416", "0.66853416", "0.66853416", "0.66853416", "0.66853416", "0.66721827", "0.66721827", "0.66721827", "0.66404885", "0.6544639", "0.64094627", "0.6269432", "0.61833113", "0.6130941", "0.61112356", "0.60647035", "0.60048", "0.59803563", "0.59551376", "0.5917844", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.5911302", "0.58905303", "0.58609843", "0.585894", "0.584629", "0.5835077", "0.5832398", "0.5830734", "0.57903194", "0.5787007", "0.577787", "0.577787", "0.57720053", "0.57710326", "0.5763225", "0.5763225", "0.5763225", "0.57393366", "0.5720095", "0.5711358", "0.5711358", "0.5711358", "0.5711358", "0.5711358", "0.5711358", "0.5711358", "0.5711358", "0.5711358", "0.5711358", "0.5711358", "0.5711358", "0.5711358", "0.5711358", "0.5711358", "0.5711358", "0.5711358", "0.5711358", "0.5711358", "0.5711358", "0.5711358", "0.5711358", "0.5711358" ]
0.6326523
19
laad en print de inhoud van basic_head.html
function Head() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function htmlHead() {\n echo \"<!DOCTYPE html>\\n\";\n echo \"<html>\\n\";\n echo str_repeat(\"\\t\",1) . \"<head>\\n\";\n echo str_repeat(\"\\t\",2) . \"<title>Евиденција волонтера</title>\\n\";\n echo str_repeat(\"\\t\",2) . \"<meta charset=\\\"UTF-8\\\">\\n\";\n echo str_repeat(\"\\t\",2) . \"<link rel=\\\"stylesheet\\\" href=\\\"css/style.css\\\">\\n\";\n if( !is_null($this->cssfile) ) {\n echo str_repeat(\"\\t\",2) . \"<link rel=\\\"stylesheet\\\" href=\\\"css/{$this->cssfile}\\\">\\n\";\n }\n echo str_repeat(\"\\t\",1) . \"</head>\\n\";\n }", "public static function start_head()\n\t{\n\t\t?>\n\t\t<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n\t\t<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"fr\" lang=\"fr\">\n\t\t<head>\n\t\t<title></title>\n\t\t<link rel=\"shortcut icon\" href=\"favicon.ico\" />\n\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n\t\t<meta http-equiv=\"content-language\" content=\"fr\" />\n\t\t<link href=\"style.css\"\ttitle=\"Défaut\" rel=\"stylesheet\" type=\"text/css\" media=\"screen\" />\n\t\t\n <?php\n\t}", "public static function printHead() {\n header('Content-Type: text/html; charset='.CHARSET);\n // Checking Bootsprap is enabled\n if(BOOTSTRAP_ON === TRUE){\n //Bootstrap include\n echo BS_DOCTYPE5;\n echo '<html lang=\"'.LANG.'\">';\n echo '<head>';\n echo '<meta charset=\"'.CHARSET.'\">';\n echo '<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">';\n echo '<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">';\n \n // HTML Title\n echo '<title>'.HTML_TITLE.'</title>';\n // Bootstrapping via CDN\n echo '<link rel=\"stylesheet\" href=\"'.BOOTSTRAP_CSS_CDN.'\">';\n echo '<link rel=\"stylesheet\" href=\"'.BOOTSTRAP_CSSTHEME_CDN.'\">';\n echo '<link rel=\"stylesheet\" href=\"'.MY_CSS.'\">';\n\n }\n elseif(BOOTSTRAP_ON === 5){\n echo BS_DOCTYPE5;\n echo '<html>';\n echo '<html lang=\"'.LANG.'\">';\n echo '<title>'.HTML_TITLE.'</title>';\n echo '<meta charset=\"'.CHARSET.'\">';\n echo '<link rel=\"stylesheet\" type=\"text/css\" href=\"'\n .PROJECT_HTTP_ROOT.'/inc/css/default.css\">';\n echo '<script src=\"'.PROJECT_HTTP_ROOT.'/js/default.js\" '\n .'type=\"text/javascript\"></script>';\n } \n else {\n echo BS_DOCTYPE401;\n echo '<html>';\n echo '<head>';\n echo '<title>'.HTML_TITLE.'</title>';\n echo '<meta http-equiv=\"content-type\" content=\"text/html; '\n .'charset='.CHARSET.'\">'.\"\\n\";\n echo '<link rel=\"stylesheet\" type=\"text/css\" href=\"'\n .PROJECT_HTTP_ROOT.'/inc/css/default.css.php\">';\n echo '<script src=\"'.PROJECT_HTTP_ROOT.'/js/default.js\" '\n .'type=\"text/javascript\"></script>';\n }\n \n echo '<meta name=\"description\" content=\"'.META_DESCRIPTION.'\">';\n echo '<meta name=\"author\" content=\"'.META_AUTHOR.'\">';\n echo '<meta name=\"keywords\" content=\"'.META_KEYWORDS.'\">';\n echo '<meta name=\"date\" content=\"'.META_DATE.'\">';\n echo '</head>';\n }", "private function _print_html_head()\n\t{\n\t\t$output = \"<head>\\n\";\n\t\t$output .= \"<title>{$this->title}</title>\\n\";\n\t\t$output .= $this->_print_html_head_metatags();\n\t\t$output .= $this->_print_html_head_javascript();\n\t\t$output .= $this->_print_html_head_css();\n\t\t$output .= \"</head>\\n<body>\\n\";\n\t\t\n\t\treturn $output;\n\t}", "public function header()\n {\n echo \"<!doctype html>\\n<html lang='pt'>\\n<head>\\n\";\n echo \"\\t<meta charset='UTF-8'>\\n\";\n echo \"\\t<title>{$this->controller->getTitle()}</title>\\n\";\n $this->links();\n echo \"</head>\\n<body>\\n\";\n }", "function head($title) {\r\n print(\r\n '<!DOCTYPE html>\r\n <html lang=\"en-GB\">\r\n <head>\r\n <meta charset=\"UTF-8\">\r\n <title>'.$title.'</title>\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"../css/theme.css\">\r\n <link rel=\"icon\" href=\"../img/icon.png\">\r\n </head>\r\n <body>');\r\n }", "private function pageheader_print() {\n\t\tif (defined('DEBUG_ENABLED') && DEBUG_ENABLED && (($fargs=func_get_args())||$fargs='NOARGS'))\n\t\t\tdebug_log('Entered (%%)',129,0,__FILE__,__LINE__,__METHOD__,$fargs);\n\n\t\t# HTML prepage requirements.\n\t\tforeach ($this->_pageheader as $line)\n\t\t\techo $line.\"\\n\";\n\n\t\t# Page Title\n\t\techo '<head>';\n\t\tprintf('<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />');\n\n\t\t$DNs = get_request('dn','REQUEST');\n\t\tif (is_array($DNs))\n\t\t\t$DNs = '';\n\n\t\tif (isset($_SESSION[APPCONFIG]))\n\t\t\tprintf('<title>%s (%s) - %s%s</title>',\n\t\t\t\t$this->_app['title'],\n\t\t\t\tapp_version(),\n\t\t\t\t$DNs ? htmlspecialchars($DNs).' ' : '',\n\t\t\t\t$_SESSION[APPCONFIG]->getValue('appearance','page_title'));\n\t\telse\n\t\t\tprintf('<title>%s - %s</title>',$this->_app['title'],app_version());\n\n\t\techo '<link rel=\"shortcut icon\" href=\"images/favicon.ico\" type=\"image/vnd.microsoft.icon\" />';\n\t\t# Style sheet.\n\t\tprintf('<link type=\"text/css\" rel=\"stylesheet\" href=\"%s\" />',$this->_app['urlcss']);\n\n\t\tif (defined('JSDIR')) {\n\t\t\tprintf('<link type=\"text/css\" rel=\"stylesheet\" media=\"all\" href=\"%sjscalendar/calendar-blue.css\" title=\"blue\" />',JSDIR);\n\t\t\techo \"\\n\";\n\t\t\tprintf('<script type=\"text/javascript\" src=\"%sajax_functions.js\"></script>',JSDIR);\n\t\t\tprintf('<script type=\"text/javascript\" src=\"%sjscalendar/calendar.js\"></script>',JSDIR);\n\t\t\techo \"\\n\";\n\t\t}\n\n\t\t# HTML head requirements.\n\t\tif (is_array($this->_head) && count($this->_head))\n\t\t\tforeach ($this->_head as $line)\n\t\t\t\techo $line.\"\\n\";\n\n\t\techo '</head>';\n\t\techo \"\\n\";\n\t}", "public function show_head() {\n \n $output = '<head>';\n \n if( empty( $this->title ) ) {\n $this->title = \"No Title Available\";\n } \n\n $output .= '<title>' . $this->title . '</title>';\n $output .= $this->get_header_elements();\n $output .= \"\\n</head>\";\n\n echo $output;\n }", "private function renderHead() {\n\t\t\n\t\t\t$this->outputLine('<head>');\n\t\t\t\n\t\t\tif ($this->_title != '') {\n\t\t\t\t$this->outputLine('\t<title>' . $this->_title . '</title>');\n\t\t\t}\n\t\t\t\n\t\t\t$this->outputLine('\t<base href=\"' . $this->_base . '\" />');\n\t\t\t\n\t\t\t$this->outputLine('\t<meta http-equiv=\"content-type\" content=\"' . $this->_contentType . '\" />');\n\t\t\t\n\t\t\t//Meta\n\t\t\tforeach ($this->_meta as $meta) {\n\t\t\t\t$this->outputLine('\t<meta name=\"' . $meta->name . '\" content=\"' . $meta->content . '\" />');\n\t\t\t}\n\t\t\t\n\t\t\t//CSS\n\t\t\tforeach ($this->_css as $css) {\n\t\t\t\t$this->outputLine(\"\t\" . $css);\n\t\t\t}\n\t\t\t\n\t\t\t//JS\n\t\t\tforeach ($this->_js as $js) {\n\t\t\t\t$this->outputLine(\"\t\" . $js);\n\t\t\t}\n\t\t\t\n\t\t\t$this->outputLine('</head>');\n\t\t\n\t\t}", "public function afficheHead() {\n\t\t?>\n\t\t<!DOCTYPE html>\n\t\t<html lang=\"fr\">\n\t\t\n\t\t<head>\n\t\t <title>L'art public à Montréal - admin</title>\n\t\t <meta charset=\"utf-8\">\n\t\t <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\">\n\t\t <meta name=\"description\" content=\"\">\n\t\t <meta name=\"viewport\" content=\"width=device-width\">\n\t\t \n\t\t <link rel=\"stylesheet\" href=\"<?php echo BASE_URL.\"css/flex.css\"?>\" type=\"text/css\" media=\"screen\">\n\t\t <link rel=\"stylesheet\" href=\"<?php echo BASE_URL.\"css/adminmain.css\"?>\" type=\"text/css\" media=\"screen\">\n\t\t \n\t\t <script src=\"<?php echo BASE_URL.\"js/define.js\"?>\"></script>\n\t\t <script src=\"<?php echo BASE_URL.\"js/admin.js\"?>\"></script>\n\t\t</head>\n\t\t<?php\n\t\t\n\t}", "function print_header()\n{\n print '<?xml version=\"1.0\" encoding=\"UTF-8\"?>' . \"\\n\";\n print '<!DOCTYPE XHTML PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" ';\n print '\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> ' . \"\\n\";\n print '<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">' . \"\\n\";\n print \"<head>\\n\";\n include_once( \"google_analytics.php\" );\n print \" <title>Tom H.'s Photos</title>\\n\";\n print ' <link rel=\"stylesheet\" href=\"../../basic_styles.css\">\\n';\n print ' <link rel=\"stylesheet\" href=\"local_styles.css\">\\n';\n print \"</head>\\n\";\n print \"<body>\\n\";\n}", "function HTML_StartHead(){\n\t\techo \"<!DOCTYPE html>\\n\";\n\t\techo \"<html>\\n\";\n\t\techo \"<head>\\n\";\n}", "public static function head()\n {\n require_once(getcwd() . \"/views/Template/head.php\");\n }", "function html_header()\n{\n\techo \"<html>\\n<head>\\n\";\n\techo \"\\t<title>CalDAVTester GUI</title>\\n\";\n\tif (file_exists(__DIR__.'/jquery.js'))\n\t{\n\t\techo \"\\t<script src='jquery.js'></script>\\n\";\n\t}\n\telse\n\t{\n\t\techo \"\\t<script src='https://code.jquery.com/jquery-2.2.4.min.js' integrity='sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=' crossorigin='anonymous'></script>\\n\";\n\t}\n\techo \"\\t<script src='gui.js'></script>\\n\";\n\techo \"\\t<link type='text/css' href='gui.css' rel='StyleSheet'/>\\n\";\n\techo \"</head>\\n<body>\\n\";\n}", "private function displayHeader(){\n\t\t\t$html = '<!doctype html>'.\"\\n\";\n\t\t\t$html .= '<!--[if LT IE 9]>'.\"\\n\";\n\t\t\t$html .= '<html class=\"ie\">'.\"\\n\";\n\t\t\t$html .= '<![endIF]-->'.\"\\n\";\n\t\t\t$html .= '<!--[if !IE]><!-->'.\"\\n\";\n\t\t\t$html .= '<html>'.\"\\n\";\n\t\t\t$html .= '<!--<![endif]-->'.\"\\n\";\n\t\t\t$html .= '<head>'.\"\\n\";\n\t\t\t$html .= '<title> PCInsight | ' .$this->pageInfo['pageTitle'].'</title>'.\"\\n\";\n\t\t\t$html .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"scripts/loadCSS.php\" />'.\"\\n\";\n\t\t\t$html .= '<link rel=\"shortcut icon\" type=\"image/png\" href=\"resources/images/favicon.png\" />'.\"\\n\";\n\t\t\t$html .= '<link rel=\"icon\" type=\"image/x-icon\" href=\"resources/images/favicon.ico\" />'.\"\\n\";\n\t\t\t$html .= '<meta charset=\"UTF-8\" />'.\"\\n\";\n\t\t\t$html .= '<meta name=\"description\" content=\"'.$this->pageInfo['pageDescription'].'\" />'.\"\\n\";\n\t\t\t$html .= '<script src=\"resources/lib/jquery-1.10.2.min.js\" type=\"text/javascript\"></script>'.\"\\n\";\n\t\t\t$html .= '<script src=\"resources/js/main.js\" type=\"text/javascript\"></script>'.\"\\n\";\n\t\t\t$html .= '</head>'.\"\\n\";\n\t\t\t$html .= '<body class=\"nojs\">'.\"\\n\";\n\t\t\t$html .= '<div id=\"topbar\" class=\"clearfix\">'.\"\\n\";\n\t\t\t$html .= '<div class=\"wrapper\">'.\"\\n\";\n\t\t\t$html .= '<div class=\"left\">'.\"\\n\";\n\t\t\t$html .= '<h1 class=\"mainHeader\"><a href=\"index.php\"><span> PC</span>insight </a></h1>'.\"\\n\";\n\t\t\t$html .= '<nav>'.\"\\n\";\n\t\t\t$html .= '<ul>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"index.php\" accesskey=\"1\"> Home </a></li>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"index.php?p=9\" accesskey=\"2\"> Articles </a></li>'.\"\\n\";\t\t\n\t\t\t$html .= '<li><a href=\"index.php?p=10\" accesskey=\"3\"> About </a></li>'.\"\\n\";\n\t\t\t$html .= '</ul>'.\"\\n\";\n\t\t\t$html .= '</nav>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '<div class=\"mobilenav\">'.\"\\n\";\n\t\t\t$html .= '<span class=\"mobileNavBu\"></span>'.\"\\n\";\n\t\t\t$html .= '<div class=\"menu\">'.\"\\n\";\n\t\t\t$html .= '<ul>'.\"\\n\";\n\t\t\t$html .= '<li><a href=\"index.php\"> Home </a></li>'.\"\\n\"; \n\t\t\t$html .= '<li><a href=\"index.php?p=9\"> Articles </a></li>'.\"\\n\"; \t\t\t\n\t\t\t$html .= '<li><a href=\"index.php?p=10\"> About </a></li>'.\"\\n\";\n\t\t\tif (!(isset($_SESSION['username']))){\n\t\t\t\t$html .= '<li><a href=\"index.php?p=2\" accesskey=\"4\"> Login </a></li>'.\"\\n\";\n\t\t\t\t$html .= '<li><a href=\"index.php?p=3\" accesskey=\"5\"> Register </a></li>'.\"\\n\";\n\t\t\t} else {\n\t\t\t\tif ($this->model->isAdmin()){\n\t\t\t\t\t$html .= '<li><a href=\"admin/\"> Admin </a></li>'.\"\\n\";\n\t\t\t\t}\n\t\t\t\t$html .= '<li><a href=\"index.php?p=5\" accesskey=\"6\"> Logout </a></li>'.\"\\n\";\n\t\t\t}\n\t\t\t$html .= '</ul>'.\"\\n\";\n\t\t\t$html .= '<form action=\"index.php\" method=\"get\">'.\"\\n\";\n\t\t\t$html .= '<input type=\"hidden\" name=\"p\" value=\"7\"/>'.\"\\n\";\n\t\t\t$html .= '<input type=\"text\" class=\"search\" placeholder=\"Search\" name=\"q\" value=\"'.$_GET['q'].'\"/>'.\"\\n\";\n\t\t\t$html .= '<input type=\"submit\" class=\"btn blue small\" value=\"search\"/>'.\"\\n\";\n\t\t\t$html .= '</form>'.\"\\n\";\t\t\t\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '<div class=\"right\">'.\"\\n\";\n\t\t\tif (!(isset($_SESSION['username']))){\n\t\t\t\t$html .= '<div class=\"login\">'.\"\\n\";\n\t\t\t\t$html .= '<a href=\"index.php?p=2\"> Login </a>'.\"\\n\";\n\t\t\t\t$html .= '<a href=\"index.php?p=3\"> Register </a>'.\"\\n\";\n\t\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t} else {\n\t\t\t\t$html .= '<div class=\"login\">'.\"\\n\";\n\t\t\t\t$html .= '<a href=\"index.php?p=5\"> Logout </a>'.\"\\n\";\n\t\t\t\tif ($this->model->isAdmin()){\n\t\t\t\t\t$html .= '<a href=\"admin/\"> Admin </a>'.\"\\n\";\n\t\t\t\t}\n\t\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t}\n\t\t\t$html .= '<div class=\"search\">'.\"\\n\";\n\t\t\t$html .= '<form action=\"index.php\" method=\"get\">'.\"\\n\"; \n\t\t\t$html .= '<input type=\"hidden\" name=\"p\" value=\"7\"/>'.\"\\n\";\n\t\t\t$html .= '<input type=\"text\" class=\"search\" placeholder=\"Search\" name=\"q\" value=\"'.$_GET['q'].'\"/>'.\"\\n\";\n\t\t\t$html .= '<input type=\"submit\" class=\"btn blue small\" value=\"Search\" />'.\"\\n\";\n\t\t\t$html .= '</form>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\t$html .= '</div>'.\"\\n\";\n\t\t\tif (!$this->db->isRegistered()){\n\t\t\t\t$html .= '<div class=\"register\"><p> Please register your account <a href=\"index.php?p=13\">here</a></p></div>';\n\t\t\t}\n\t\t\treturn $html;\n\t\t}", "function print_head_scripts()\n {\n }", "private function printHead()\n\t{\n\t\t$out = '<?xml version=\"1.0\" encoding=\"utf-8\"?>' . \"\\n\";\n\t\t$out .= $this->head . PHP_EOL;;\t\t\t\n\t\techo $out;\n\t}", "function showHead($title='') {\n\tglobal $template, $config;\n?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html><head>\n<title><?=$title?></title>\n<link href=\"<?=joinPath($config['site_absolute_url'],'/')?>css/style.css\" rel=\"stylesheet\" type=\"text/css\" />\n<script src=\"<?=joinPath($config['site_absolute_url'],'/')?>js/JSL.js\" type=\"text/javascript\"></script>\n<script src=\"<?=joinPath($config['site_absolute_url'],'/')?>js/application.js\" type=\"text/javascript\"></script>\n<?=implode($template->includes,\"\\n\");?>\n<?php\n}", "function print_html_head($now)\n{\n echo '<!DOCTYPE html>\n <html lang=\"de\">\n <head>\n <meta charset=\"UTF-8\"/>\n <title> Freifunk</title>\n <link rel=stylesheet type=\"text/css\" href=\"css/style.css\">\n </head>\n <body>';\n $datum = date(\"d.m.y\", $now);\n $uhrzeit = date(\"G:i\", $now);\n echo \"<h1>Status Nodes $datum um $uhrzeit Uhr</h1> <br />\";\n}", "function print_html_header() {\n?><!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 TRANSITIONAL//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n<head>\n\t<title>lint_php</title>\n\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n\t<meta name=\"generator\" content=\"kate\">\n\t<meta name=\"description\" content=\"An online tool to compute PHP code McCabe's cyclomatic complexity\">\n\t<meta name=\"keywords\" content=\"PHP, McCabe, Cyclomatic complexity, GPL, Pasquale Ceres, Caposele\">\n</head>\n<body>\n<?php\n}", "function head() {\n\n\techo '<h1>ATOM.CMS</h1>';\n\t\n}", "function myheader($additionalHeaderContent = NULL) {\n\t\tprint '<html>';\n\t\t\tprint '<head>';\n\t\t\t\tprint '<title>';\n\t\t\t\t\tif (defined('TITLE')) {\n\t\t\t\t\t\tprint TITLE;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tprint 'MiddleClik';\n\t\t\t\t\t}\n\t\t\t\tprint '</title>';\n\t\t\t\tprint \"<meta http-equiv=\\\"content-type\\\" content=\\\"text/html; charset=utf-8\\\" />\";\n\t\t\t\tprint $additionalHeaderContent;\n\t\t\t\tprint \"<style type=\\\"text/css\\\">\";\n\t\t\t\t\tprint '//this is where my css, js goes';\n\t\t\t\tprint \"</style>\";\n\t\t\tprint '</head>';\n\t}", "function sloodle_print_header()\r\n {\r\n global $CFG;\r\n $navigation = \"<a href=\\\"{$CFG->wwwroot}/mod/sloodle/view.php?_type=course&id={$this->course->id}\\\">\".get_string('courseconfig', 'sloodle').\"</a>\";\r\n\r\n\r\n sloodle_print_header_simple(get_string('courseconfig','sloodle'), \"&nbsp;\", $navigation, \"\", \"\", true, '', navmenu($this->course));\r\n }", "public function head() {\n\t\treturn '';\n\t}", "protected function bodyHeader() {\n echo str_repeat(\"\\t\",1) . \"<body>\\n\";\n echo str_repeat(\"\\t\",2) . \"<div id=\\\"page\\\">\\n\";\n echo str_repeat(\"\\t\",3) . \"<header>\\n\";\n echo str_repeat(\"\\t\",4) . \"<h1>Евиденција волонтера</h1>\\n\";\n echo str_repeat(\"\\t\",3) . \"</header>\\n\";\n }", "private function _renderXhtmlHead() {\r\n\t\t\r\n?>\r\n\t<head>\r\n\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n\t\t<title><?php echo \"$this->_title\"; ?></title>\r\n\t\t<link rel=\"shortcut icon\" href=\"favicon.png\" type=\"image/png\" />\r\n<?php\r\n\r\n\t\t$this->_stylesheets->render();\r\n\t\t$this->_scripts->render();\r\n\t\t$this->_keywords->render();\r\n\r\n\t\tif (isset($this->_description)) {\r\n?>\r\n\t\t<meta name=\"description\" content=\"<?php echo \"$this->_description\"; ?>\" />\r\n<?php\r\n\r\n\t\t}\r\n\r\n?>\r\n\t</head>\r\n<?php\r\n\t\t\r\n\t}", "function BasicHead()\n{\n print LoadTemplate(\"basic_head\");\n\n $_SESSION[\"head_printed\"] = true;\n}", "public function head() {\n\t\t$html = parent::head();\n\n\t\t$root = $this->course->root;\n $stepTag = $this->assignment->tag;\n\n $html .= <<<HTML\n<base href=\"$root/$stepTag/\" />\n\nHTML;\n\n\t\tif($this->file !== false) {\n\t\t\t/*\n\t\t\t * Transfer everything between <head> and </head>\n\t\t\t * except for the line automatically included by\n\t\t\t * the template\n\t\t\t */\n\n\t\t\t// Read until we get to <head>\n\t\t\twhile(($line = fgets($this->file)) != false) {\n\t\t\t\tif(stristr($line, '<head>')) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$code = $this->codeStart();\n\n\t\t\t// Read until </head>\n\t\t\twhile(($line = fgets($this->file)) != false) {\n\t\t\t\tif(stristr($line, '</head>')) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif(stristr($line, 'course.css') ||\n stristr($line, 'site.css') ||\n\t\t\t\t\tstristr($line, 'class.css') ||\n\t\t\t\t\tstristr($line, 'course.min.js') ||\n\t\t\t\t\tstristr($line, 'step/step.js') ||\n\t\t\t\t\tstristr($line, 'step/step.css') ||\n\t\t\t\t\tstristr($line, 'js/jquery') ||\n\t\t\t\t\tstristr($line, 'lib/js/video-js') ||\n\t\t\t\t\tstristr($line, 'video.css') ||\n\t\t\t\t\tstristr($line, '<title>')) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$code .= $line;\n\t\t\t}\n\n\t\t\t// This block of code does an eval on the header lines of\n\t\t\t// the page and saves the results into a string\n\t\t\tob_start();\n\t\t\teval($code);\n\t\t\t$html .= ob_get_contents();\n\t\t\tob_end_clean();\n\t\t}\n\n\t\treturn $html;\n }", "protected function printHead($prefix='')\n {\n echo $prefix.'<HEAD>';\n if($this->getBrowserName() === 'IE')\n {\n $this->printIeCompatability($prefix.$prefix);\n }\n echo $prefix.$prefix.'<TITLE>'.$this->title.'</TITLE>';\n echo $prefix.$prefix.'<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">';\n foreach($this->head_tags as $tag)\n {\n echo $prefix.$prefix.$tag.\"\\n\";\n }\n echo $prefix.'</HEAD>';\n }", "function PrintHtmlHead () {\n\tGlobal $ISM, $str_font;\n\tGlobal $arr_win_dir, $arr_pozip, $arr_alm;\n\tGlobal $cDb;\n\t\n\tif (isset($cDb)) {\n\t\t$sWindowTitle = GetSetting ($cDb, 'windowtitle', '');\n\t} else {\n\t\t$sWindowTitle = '';\n\t}\n\t\n\theader(\"Content-Type: text/html; charset=UTF-8\");\n\theader(\"Pragma: no-cache\");\n\theader(\"Expires: 0\");\n\theader(\"Cache-Control: must-revalidate, post-check=0,pre-check=0\");\n\t\nprint <<<EOF\n<!DOCTYPE html>\n<html>\n<head>\n<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=UTF-8'>\n<meta name='viewport' content='user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, width=device-width, height=device-height'>\n<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>\n<title>$sWindowTitle</title>\n\n<style type='text/css'>\n\nhtml, body { height: 100%; margin: 0; padding: 0; }\n\nBODY,TD,P,DIV,INPUT,SELECT,TEXTAREA {\n\tfont-family:$str_font;\n\tfont-size:12px;\n\twhite-space:nowrap;\n}\nA {\n\tcolor:#4444FF;\n\tcursor:pointer;\n\ttext-decoration:none;\n}\nA:hover {\n\ttext-decoration:underline;\n}\nINPUT,SELECT,TEXTAREA {\n\tcolor:#000000;\n\tbackground:#FFFFFF;\n\tpadding:2px;\n\tborder:1px solid #BBBBBB;\n}\nINPUT:-moz-read-only {\n\tbackground:#DDDDDD;\n\tborder:1px solid #DDDDDD;\n}\nINPUT:read-only {\n\tbackground:#DDDDDD;\n\tborder:1px solid #DDDDDD;\n}\n.TopCurtain {\n\nEOF;\n\techo (\"\tposition:fixed; top:\".($ISM?50:0).\"px; left:0; right:0; height:16px;\\n\");\nprint <<<EOF\n\tbackground:linear-gradient(rgba(0,0,0,0.1),rgba(0,0,0,0));\n\tpointer-events: none;\n}\n.ReadBorder {\n\tborder-width:3px;\n\tborder-style:solid;\n\tpadding:5px;\n\tborder-color:#FF8888;\n\tbackground:#FFEEEE;\n}\n.OrangeBorder {\n\tborder-width:3px;\n\tborder-style:solid;\n\tpadding:5px;\n\tborder-color:#FFBB88;\n\tbackground:#FFFFFF;\n}\n.OrangeFont {\n\tcolor:#EE6633;\n\tfont-weight:bold;\n}\n.TitleFont {\n\tcolor:#666666;\n\tfont-weight:bold;\n}\n.SubMenu {\n\tcolor:#444444;\n\tfont-weight:bold;\n\tcursor:pointer;\n\tborder-radius:7px;\n}\n.SubMenu:hover {\n\tbackground:#DDDDDD;\n}\n.SubMenuSel {\n\tcolor:#444444;\n\tbackground:#FFFFFF;\n\tfont-weight:bold;\n\tcursor:pointer;\n\tborder-radius:7px;\n}\n\n.msgPopupBox {\n\tz-index:3;\n\tdisplay: none;\n\tposition:fixed;\n\tmargin:0;\n\ttop:0;\n\tleft:0;\n\tright:0;\n\tbottom:0;\n\theight:100%;\n\twidth:100%;\n\tbackground-color:rgba(0,0,0,0.7);\n}\n.msgPopupInn {\n\tdisplay: table-cell;\n\tvertical-align: middle;\n\ttext-align:center;\n}\n.msgPopupTxt {\n\tdisplay:inline-block;\n\tcolor:#FFFFFF;\n\tborder:1px solid rgba(0,0,0,0.5);\n\tbox-shadow: 0 2px 10px 5px rgba(0,0,0,0.2);\n\tpadding:15px;\n\tborder-radius:10px;\n\ttext-align:center;\n\t\n\tbackground-color: #008800;\n\tbackground-image: linear-gradient(-45deg,\n\t\trgba(255, 255, 255, 0) 22.9%,\n\t\trgba(255, 255, 255, 0.1) 23%,\n\t\trgba(255, 255, 255, 0.1) 50%,\n\t\trgba(255, 255, 255, 0) 50.1%,\n\t\trgba(255, 255, 255, 0) 72.9%,\n\t\trgba(255, 255, 255, 0.1) 73%);\n\tbackground-size: 20px 20px;\n\t-webkit-background-size:20px 20px;\n\tbackground-repeat: repeat;\n}\n\n.mMenuLogin {\n\tpadding-left:6px;\n\tpadding-right:6px;\n\tpadding-top:4px;\n\tpadding-bottom:4px;\n\tmargin-right:10px;\n\tmargin-left:10px;\n\tfont-weight:bold;\n\tcolor:#FFFFFF;\n\tborder-radius:20px;\n\tborder:2px solid #FFFFFF;\n}\n.mMenuItem {\n\tcursor:pointer;\n\tpadding-top:12px;\n\tpadding-bottom:12px;\n\tpadding-left:16px;\n\tpadding-right:32px;\n\tfont-weight:bold;\n\tbackground:#FFFFFF;\n}\n.mMoveLast {\n\tbackground:rgba(255,255,255,0.7);\n\tborder-radius:10px;\n\tborder:1px solid rgba(0,0,0,0.5);\n\tcolor:rgba(0,0,0,0.5);\n}\n\n.windImg {\n\twidth:16px;\n\theight:16px;\n\tvertical-align:middle;\n}\n\n</style>\n\n<script type='text/javascript'>\n\nEOF;\necho (\"\tvar ism = \".($ISM?1:0).\";\\n\");\nprint <<<EOF\n\nvar gEcBusy=false;\n/*\nwindow.addEventListener('error', function(e) {\n\tif (gEcBusy) return;\n\tgEcBusy = true;\n\tif ((document.getElementById('map') != null) && (map.innerHTML == '')) {\n\t\t// MAP loading error\n\t\tmap.innerHTML = \"<table width='100%' height='100%'><tr><td align='center'><h3>Wait...</h3></td></tr></table>\";\n\t\tsetTimeout ('location.reload()',3000);\n\t} else\n\tif (document.getElementById('msgPopupTxt') != null) {\n\t\tvar msg = 'EC#'+e.lineno+':'+e.colno+'<p>'+e.message+'</p>';\n\t\tmsg += \"<input type='button' value='Close' onclick='MsgPopupHideGo()' class='pure-button'> <input type='button' value='Reload' onclick='location.reload()' class='pure-button'>\";\n\t\tMsgPopupError (msg, 0);\n\t} else {\n\t\talert ('EC#'+e.lineno+':'+e.colno+'\\\\n'+e.message);\n\t}\n\tPrintAll(e.target);\n}, true);\n*/\nwindow.onerror = function(emsg, url, eline, ecol, eerror) {\n\tif (gEcBusy) return true;\n\tgEcBusy = true;\n\tif ((document.getElementById('map') != null) && (map.innerHTML == '')) {\n\t\t// MAP loading error\n\t\tmap.innerHTML = \"<table width='100%' height='100%'><tr><td align='center'><h3>Wait...</h3></td></tr></table>\";\n\t\tsetTimeout ('location.reload()',3000);\n\t} else\n\tif (document.getElementById('msgPopupTxt') != null) {\n\t\tvar msg = '<p>EC#';\n\t\tmsg += eline ? eline : 'unknown';\n\t\tif (ecol) msg += ':' + ecol;\n\t\tmsg += '</p>';\n\t\tif (emsg) msg += '<p>'+emsg+'</p>';\n\t\tif ((emsg) && (eerror) && (emsg.indexOf(eerror) < 0)) msg += '<p>'+eerror+'</p>';\n\t\tif (url) msg += '<p>'+url+'</p>';\n\t\tmsg += \"<input type='button' value='Close' onclick='MsgPopupHideGo()' class='pure-button'> <input type='button' value='Reload' onclick='location.reload()' class='pure-button'>\";\n\t\tMsgPopupError (msg, 0);\n\t} else {\n\t\tvar msg = 'EC#';\n\t\tmsg += eline ? eline : 'unknown';\n\t\tif (ecol) msg += ':' + ecol;\n\t\tif (emsg) msg += '\\\\n'+emsg;\n\t\tif ((emsg) && (eerror) && (emsg.indexOf(eerror) < 0)) msg += '\\\\n'+eerror;\n\t\tif (url) msg += '\\\\n'+url;\n\t\talert (msg);\n\t}\n\treturn true;\n};\n\n// Prohibited area selection.\nfunction ReturnFalse () {\n\treturn false;\n}\nwindow.document.onselectstart = ReturnFalse;\nwindow.document.ondragstart = ReturnFalse;\nif (navigator.userAgent.indexOf('Firefox') >= 0) {\n\tvar eventNames = [\"mousedown\",\"mouseover\",\"mouseout\",\"mousemove\",\"mousedrag\",\"click\",\"dblclick\",\"keydown\",\"keypress\",\"keyup\"];\n\tfor(var i=0; i<eventNames.length; i++) {\n\t\twindow.addEventListener( eventNames[i], function(e) { window.event = e; }, true );\n\t}\n}\n\nfunction pwKeyCursor (npobj) {\n\tvar nplen = npobj.value.length;\n\tnpobj.setSelectionRange(nplen, nplen);\n}\nfunction pwKeyDown () {\n\tvar e = event || window.event;\n\tvar keycode = e.keyCode || e.charCode;\n\tif ((33 <= keycode) && (keycode <= 40)) {\n\t\tif (e.preventDefault) e.preventDefault(); else e.stop();\n\t}\n}\nfunction pwKeyPress (obj) {\n\tvar e = event || window.event;\n\tvar keycode = e.keyCode || e.charCode;\n\tif (keycode == 13) return;\n\tif (keycode == 8) return;\n\t\n\tvar npobj = obj;\n\tvar opobj = eval(obj.form.name+'.'+obj.name.slice(0, -1));\n\tnpobj.value += '*';\n\topobj.value += String.fromCharCode(keycode);\n\tif (e.preventDefault) e.preventDefault(); else e.stop();\n\tobj.blur();\n\tobj.focus();\n}\nfunction pwKeyUp (obj) {\n\tvar npobj = obj;\n\tvar opobj = eval(obj.form.name+'.'+obj.name.slice(0, -1));\n\tvar nplen = npobj.value.length;\n\tvar oplen = opobj.value.length;\n\tif (nplen < oplen) opobj.value = opobj.value.substr(0, nplen);\n\telse if (oplen < nplen) opobj.value += npobj.value.substr(oplen);\n\telse return;\n\tnpobj.value = '';\n\tfor (var i=0; i<nplen; i++) npobj.value += '*';\n\tobj.blur();\n\tobj.focus();\n}\n\nfunction PrintAll (obj) {\n\tvar msg = ''\n\tfor (propName in obj) try { msg += propName+'='+obj[propName]+'\\\\n'; } catch (err) { }\n\talert(msg);\n}\n\nfunction SetCookie(cKey, cValue) {\n\tdocument.cookie = cKey + '=' + escape(cValue);\n}\nfunction SetCookie(cKey, cValue, iValid) {\n\tvar date = new Date();\n\tdate.setDate(date.getDate() + iValid);\n\tdocument.cookie = cKey + '=' + escape(cValue) + ';expires=' + date.toGMTString();\n}\nfunction DelCookie(cKey) {\n\tvar date = new Date();\n\tdate.setDate(date.getDate() - 1);\n\tdocument.cookie = cKey + '=;expires=' + date.toGMTString();\n}\nfunction GetCookie(cKey, cDef) {\n\tvar cookies = document.cookie.split(\"; \");\n\tfor (var i = 0; i < cookies.length; i++) {\n\t\tvar keyValues = cookies[i].split(\"=\");\n\t\tif ((0 < keyValues.length) && (keyValues[0] == cKey)) return unescape(keyValues[1]);\n\t}\n\treturn cDef;\n}\n\nvar hMsgTimeout = null;\nfunction MsgPopupColor (msg, c, ms, ani) {\n\tif (hMsgTimeout != null) {\n\t\tclearTimeout(hMsgTimeout);\n\t\thMsgTimeout = null;\n\t}\n\t$('#msgPopupTxt').html(msg);\n\t$('#msgPopupTxt').css('background-color',c);\n\t$('#msgPopupBox').css('display','table');\n\tif (0 < ms) hMsgTimeout = setTimeout (MsgPopupHideGo,ms);\n\tif (ani) $('#msgPopupTxt').animate({zoom:'110%'},100).animate({zoom:'95%'},100).animate({zoom:'100%'},100);\n}\nfunction MsgPopupOnly (msg, ms) {\t// no animation\n\tMsgPopupColor (msg, '#008800', ms, false);\n}\nfunction MsgPopupShow (msg, ms) {\t// normal dialog box + popup animation\n\tMsgPopupColor (msg, '#008800', ms, true);\n}\nfunction MsgPopupError (msg, ms) {\t// error dialog box + popup animation\n\tMsgPopupColor ('<img src=\"img/attention.png\" style=\"vertical-align:top\"> '+msg, '#B81900', ms, true);\n}\nfunction MsgPopupHideGo () {\n\thMsgTimeout = null;\n\t$('#msgPopupBox').fadeOut();\n}\nfunction MsgPopupHide () {\n\tif (hMsgTimeout != null) {\n\t\tclearTimeout(hMsgTimeout);\n\t\tMsgPopupHideGo ();\n\t}\n}\n\nfunction js_number_format (num, decimals, zero) {\n\tif (typeof num != 'number') return '';\n\tnum = num.toFixed(decimals);\n\tvar reg = /(^[+-]?\\d+)(\\d{3})/;\n\tvar tmp = num.split('.');\n\tvar n = tmp[0];\n\tvar d = tmp[1];\n\tif (d) {\n\t\tvar l = d.length;\n\t\tif (zero === 0) {\n\t\t\twhile (0 < l) {\n\t\t\t\tif (d.charAt(l-1) != '0') break;\n\t\t\t\td = d.substring (0, --l);\n\t\t\t}\n\t\t}\n\t\td = (0<l) ? ('.' + d) : '';\n\t} else {\n\t\td = '';\n\t}\n\t\n\twhile(reg.test(n)) n = n.replace(reg, \"$1,$2\");\n\treturn n + d;\n}\n\nEOF;\n\techo (\"var arr_win_dir = [\");\n\tfor ($i=0; $i<sizeof($arr_win_dir); $i++) {\n\t\tif (0 < $i) echo (\",\");\n\t\techo (\"'$arr_win_dir[$i]'\");\n\t}\n\techo (\"];\\n\");\n\techo (\"var arr_pozip = [\");\n\tfor ($i=0; $i<sizeof($arr_pozip); $i++) {\n\t\tif (0 < $i) echo (\",\");\n\t\techo (\"'$arr_pozip[$i]'\");\n\t}\n\techo (\"];\\n\");\n\techo (\"var arr_alm = [\");\n\tfor ($i=0; $i<sizeof($arr_alm); $i++) {\n\t\tif(0 < $i) echo (\",\");\n\t\techo (\"'$arr_alm[$i]'\");\n\t}\n\techo (\"];\\n\");\nprint <<<EOF\n\nfunction js_item_format\t(val, dec, zero) {\n\tif ((0 <= dec) && (dec <= 9)) {\n\t\treturn js_number_format (val, dec, zero);\n\t}\n\tif (10 == dec) {\t// Special code: wind_direction\n\t\tif (typeof val != 'number') val = parseInt(val);\n\t\telse val = Math.round(val);\n\t\tif ((isNaN(val)) || (val < 1) || (16 < val)) val = 1;\n\t\treturn arr_win_dir[val-1] + \" <img src='img/windd\"+val+\".png' class='windImg'>\";\n\t}\n\tif (11 == dec) {\t// Special code: pozip\n\t\tif (typeof val != 'number') val = parseInt(val);\n\t\telse val = Math.round(val);\n\t\tif ((isNaN(val)) || (val < 0) || (1 < val)) val = 0;\n\t\treturn arr_pozip[val];\n\t}\n\tif (12 == dec) {\t// Special code: alm\n\t\tif (typeof val != 'number') val = parseInt(val);\n\t\telse val = Math.round(val);\n\t\tif ((isNaN(val)) || (val < 0) || (3 < val)) val = 0;\n\t\treturn arr_alm[val];\n\t}\n\treturn val;\n}\n\nEOF;\n\tif ($ISM) {\nprint <<<EOF\n\nvar menuStatus = false;\nfunction mfc(action) {\n\tMenuClose(1);\n\tdocument.location = action;\n}\nfunction MenuClose (opt) {\n\tif (opt != 1) {\n\t\tmenuStatus = false;\n\t\t$('body,html').css({'overflow':'visible'});\n\t\t$('body').unbind('touchmove');\n\t\t$('#menuBack').fadeOut();\n\t}\n\tvar obj = $('#menuMenu');\n\tvar w = obj.width()+10;\n\tobj.animate({left:-w});\n}\nfunction MenuClick () {\n\tmenuStatus = true;\n\t$('body,html').css({'overflow':'hidden'});\n\t$('body').bind('touchmove', function(e){if(e.preventDefault)e.preventDefault();else e.stop()});\n\t$('#menuBack').fadeIn();\n\t\n\tvar obj = $('#menuMenu');\n\tvar w = obj.width()+10;\n\tobj.css({left:-w});\n\tobj.animate({left:0});\n}\nfunction MoveLastUp() {\n\t$('body').scrollTop(0);\n}\nfunction MoveLastDn() {\n\t$('body').scrollTop($(document).height());\n}\n\n// Call from Android APP.\nvar mMyLat = 0, mMyLng = 0;\nfunction SetLocation (lat, lng) {\n\tmMyLat = lat;\n\tmMyLng = lng;\n\tif (typeof OnMyLocation == 'function') OnMyLocation (false);\n}\n\nEOF;\n\t} else {\n\t\tif ($sWindowTitle != '') echo (\"try{parent.document.title='$sWindowTitle';}catch(err){}\\n\");\n\t}\n\techo (\"</script>\\n\");\n}", "function head(){\n\t?><head>\n\t<meta charset=\"UTF-8\">\n\t<title>EEMS</title>\n\t<link rel=\"stylesheet\" href=\"css/style_web.css\" type=\"text/css\">\n\t</head><?php\n}", "public function WPHead() {\n\t\t// Just tag the page for fun.\n\t\techo \"\\n\\t\" . '<!-- This site uses Good Old Gallery, get it from http://wp.unwi.se/good-old-gallery -->' . \"\\n\\n\";\n\t}", "public function head() {\r\n return '';\r\n }", "public static function displayHeader()\n {\n\n # Charset\n print \"<meta charset=\\\"\" . self::$Charset . \"\\\" />\";\n\n $base = base_url();\n print \"<base href='{$base}/' />\";\n\n # Viewport\n print \"\\n\\n\\t<meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\\\" />\\n\";\n\n # Meta Tags\n foreach (self::$SEO as $attr => $prop) {\n # Metatags\n if (is_array($prop)) {\n print \"\\n\\t\";\n foreach ($prop as $content => $value) {\n print \"<meta {$attr}=\\\"{$content}\\\" content=\\\"\" . htmlspecialchars($value) . \"\\\" />\\n\\t\";\n }\n } # Favicon - Icone da página\n else if ($attr == 'icon' || $attr == 'shortcut' || $attr == 'shortcut icon') {\n print \"\\n\\t\";\n $type = strtolower(preg_replace('/^.*\\.(.*?)(\\?.*)?$/', '$1', $prop));\n print \"<link rel=\\\"icon\\\" href=\\\"{$prop}\\\" />\\n\\t\";\n } # Tags\n else {\n print \"\\n\\t\";\n print \"<{$attr}>\" . htmlspecialchars($prop) . \"</{$attr}>\\n\\t\";\n }\n }\n\n # Imagens\n if (count(self::$Imagens) > 0) {\n print \"\\n\\t\";\n print \"<!-- OG Imagens -->\\n\\t\";\n foreach (self::$Imagens as $values) {\n foreach ($values as $key => $value) {\n if ($value != null) {\n print \"<meta property=\\\"{$key}\\\" content=\\\"\" . htmlspecialchars($value) . \"\\\" />\\n\\t\";\n }\n }\n }\n }\n\n # Vídeos\n if (count(self::$Videos) > 0) {\n print \"\\n\\t\";\n print \"<!-- OG Vídeos -->\\n\\t\";\n foreach (self::$Videos as $values) {\n foreach ($values as $key => $value) {\n if ($value != null) {\n print \"<meta property=\\\"{$key}\\\" content=\\\"\" . htmlspecialchars($value) . \"\\\" />\\n\\t\";\n }\n }\n if (end(self::$Videos) !== $values) {\n print \"\\n\\t\";\n }\n }\n }\n\n # Sounds\n if (count(self::$Sounds) > 0) {\n print \"\\n\\t\";\n print \"<!-- OG Sound -->\\n\\t\";\n foreach (self::$Sounds as $values) {\n foreach ($values as $key => $value) {\n if ($value != null) {\n print \"<meta property=\\\"{$key}\\\" content=\\\"\" . htmlspecialchars($value) . \"\\\" />\\n\\t\";\n }\n }\n }\n print \"\\n\\t\";\n }\n\n self::displayCss();\n\n print \"\\n\\n\\t<script src='cdn/js/jquery.min.js' type='text/javascript' ></script>\";\n\n # Html5\n print \"\\n\\n\\t<!--[if lt IE 9]>\";\n print \"\\n\\t\\t<script src=\\\"https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js\\\" charset=\\\"\" . self::$Charset . \"\\\" ></script>\";\n print \"\\n\\t\\t<script src=\\\"https://oss.maxcdn.com/respond/1.4.2/respond.min.js\\\" charset=\\\"\" . self::$Charset . \"\\\" ></script>\";\n print \"\\n\\t<![endif]-->\\n\";\n }", "private function _print_html_head_metatags()\n\t{\n\t\treturn \"<meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset={$this->charset}\\\" />\\n\";\n\t}", "public function admin_head()\n {\n // phpcs:enable PSR1.Methods.CamelCapsMethodName.NotCamelCaps\n $head_content = $this->standard_head(true).\"\\n\"; // We start with the standard stuff.\n \n $head_content .= \"<!-- Also Added by the BMLT plugin 3.X. -->\\n<meta http-equiv=\\\"X-UA-Compatible\\\" content=\\\"IE=EmulateIE7\\\" />\\n<meta http-equiv=\\\"Content-Style-Type\\\" content=\\\"text/css\\\" />\\n<meta http-equiv=\\\"Content-Script-Type\\\" content=\\\"text/javascript\\\" />\\n\";\n $options = $this->getBMLTOptions(1); // All options contain the admin key.\n $key = $options['google_api_key'];\n \n // Include the Google Maps API V3 files.\n $head_content .= '<script type=\"text/javascript\" src=\"https://maps.google.com/maps/api/js?key='.$key.'\"></script>'; // Load the Google Maps stuff for our map.\n \n if (function_exists('plugins_url')) {\n $head_content .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"';\n \n $url = $this->get_plugin_path();\n \n $head_content .= htmlspecialchars($url);\n \n $head_content .= 'admin_styles.css\" />';\n \n $head_content .= '<script type=\"text/javascript\" src=\"';\n \n $head_content .= htmlspecialchars($url);\n \n $head_content .= 'admin_javascript.js\"></script>';\n } else {\n echo \"<!-- BMLTPlugin ERROR (head)! No plugins_url()! -->\";\n }\n \n $head_content .= \"\\n<!-- End Also Added by the BMLT plugin 3.X. -->\\n\";\n echo $head_content;\n }", "public function head() {\r\n return <<<HTML\r\n <meta charset=\"utf-8\">\r\n <title>$this->title</title>\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\r\n <link href=\"steampunked.css\" type=\"text/css\" rel=\"stylesheet\" />\r\n\r\nHTML;\r\n }", "function msdlab_pre_header(){\n print '<div class=\"pre-header\">\n <div class=\"wrap\">';\n do_action('msdlab_pre_header');\n print '\n </div>\n </div>';\n }", "function get_header(){\n\t\tglobal $FANNIE_ROOT;\n\t\tob_start();\n\t\t$page_title = $this->title;\n\t\t$header = $this->header;\n\t\tinclude($FANNIE_ROOT.'src/header_install.html');\n\t\treturn ob_get_clean();\n\n\t}", "function print_html_header($title) {\n\tif ($title != \"Login\")\n\t\t$menu = make_menu_bs($title);\n\n\techo '\n<!DOCTYPE html>\n<html lang=\"en\">\n\t<head>\n\t <meta charset=\"utf-8\">\n\t <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">\n\t <title>'.$title.'</title>\n\t\t<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css\">\n\t\t<link rel=\"stylesheet\" href=\"css/style.css\">\n\t</head>\n\t<body>\n\t\t<div class=\"container\">\n\t\t\t'.$menu.'\n\t\t\t<div class=\"content\">\n\t';\n\tif ($title != \"Login\")\n\t\techo '<h1>'.$title.'</h1>';\n}", "function rd_do_header()\n{\n\techo <<<END\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n\t<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"EN\">\n\t<head>\n\t\t<title>ocPortal rootkit detector</title>\n\t\t<link rel=\"icon\" href=\"http://ocportal.com/favicon.ico\" type=\"image/x-icon\" />\n\t\t<style type=\"text/css\">\nEND;\n@print(preg_replace('#/\\*\\s*\\*/\\s*#','',str_replace('url(\\'\\')','none',str_replace('url(\"\")','none',preg_replace('#\\{\\$[^\\}]*\\}#','',file_get_contents($GLOBALS['FILE_BASE'].'/themes/default/css/global.css'))))));\necho <<<END\n\t\t\t.main_page_title { text-decoration: underline; display: block; background: url('themes/default/images/bigicons/ocp-logo.png') top left no-repeat; min-height: 42px; padding: 3px 0 0 60px; }\n\t\t\ta[target=\"_blank\"], a[onclick$=\"window.open\"] { padding-right: 0; }\n\t\t</style>\n\t</head>\n\t<body class=\"re_body\"><div class=\"global_middle\">\n\t\t<h1 class=\"main_page_title\">ocPortal rootkit detector</h1>\n\t\t<form title=\"Proceed\" action=\"rootkit_detection.php?type=go\" method=\"post\">\nEND;\n}", "function displayHtmlHeader() {\n\t\tglobal $page;\n\t\t\n\t\techo \"<!DOCTYPE html5>\";\n\t\techo \"<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='fr'>\";\n\t\t\n\t\t\techo \"<head>\";\n\t\t\t\t\n\t\t\t\t//Encodage et zoom\n\t\t\t\techo \"<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\";\n\t\t\t\techo \"<meta name='viewport' content='width=device-width, initial-scale=1.0' />\";\n\t\t\t\techo \"<meta http-equiv='X-UA-Compatible' content='IE=edge' />\";\n\t\t\t\t\n\t\t\t\t//Titre de la page\n\t\t\t\techo \"<title>Gestion maintenances | Best Engines Inc.</title>\";\n\t\t\t\t\n\t\t\t\t//Description et auteur de la page\n\t\t\t\techo \"<meta name='description' content='Application de gestion des maintenances de la société Best Engines Inc.' />\";\n\t\t\t\techo \"<meta name='author' content='Best Engines Inc.' />\";\n\t\t\t\t\n\t\t\t\t//Fichiers CSS\n\t\t\t\techo \"<link href='config/css/bootstrap.min.css' rel='stylesheet' />\";\n\t\t\t\techo \"<link href='config/css/animate.css' rel='stylesheet' />\";\n\t\t\t\techo \"<link href='config/css/styles.css' rel='stylesheet' />\";\n\t\t\t\t\n\t\t\t\t//Formulaire d'authentification\n\t\t\t\tif($page == \"authentification\") {\n\t\t\t\t\techo \"<link rel='stylesheet' href='config/font-awesome/css/font-awesome.min.css' />\";\n\t\t\t\t\techo \"<link rel='stylesheet' href='config/css/authentification/form-elements.css' />\";\n\t\t\t\t\techo \"<link rel='stylesheet' href='config/css/authentification/style.css' />\";\n\t\t\t\t\t\n\t\t\t\t\techo \"<!--[if lt IE 9]>\";\n\t\t\t\t\t\techo \"<script src='https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js'></script>\";\n\t\t\t\t\t\techo \"<script src='https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js'></script>\";\n\t\t\t\t\techo \"<![endif]-->\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Font\n\t\t\t\techo \"<link rel='stylesheet' type='text/css' href='http://fonts.googleapis.com/css?family=Montserrat' />\";\n\t\t\t\t\n\t\t\t\t//Favicon\n\t\t\t\techo \"<link href='doc/img/favicon/favicon.png' rel='shortcut icon' />\";\n\n\t\t\techo \"</head>\";\t\t\t\n\t\t\techo \"<body>\";\n\t}", "private function do_header() {\n $m_header = '';\n $m_header .= '<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />';\n $m_header .= '<meta http-equiv=\"Content-Language\" content=\"en-gb\" />';\n // $m_header .= '<link rel=stylesheet href=' . $this->c_path . '/../css/reset.css type=text/css />';\n // $m_header .= '<link rel=stylesheet href=' . $this->c_path . '/../css/style.css type=text/css />';\n $this->c_header = $m_header;\n }", "function printHeader()\n\t{\n\t\t$_SESSION['last_page'] = $_SERVER['QUERY_STRING'];\n\t\tif( isset($_SESSION['admin']) && $_SESSION['admin'])\n\t\t{\n\t\t\t$this->admin_nav = \"<a class=\\\"button\\\" href=\\\"?section=project_management\\\" title=\\\"Go to project management\\\">Project Management</a>\\n\n\t\t\t\t\\t\\t<a class=\\\"button\\\" href=\\\"?section=reference_value_management\\\" title=\\\"Go to reference value management\\\">Reference Value Management</a>\\n\n\t\t\t\t\\t\\t<a class=\\\"button\\\" href=\\\"?section=user_management\\\" title=\\\"Go to user management\\\">User Management</a>\\n\";\n\t\t}\n\t\t$this->initSessionVariables();\n\t\tinclude 'View/Header.html';\n\t}", "function printHeader($args_raw = array()) {\n\t\tglobal $Config;\n\t\t\n\t\t$args = array_map('print_html', $args_raw);\n?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n<html>\n<head>\n\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=<?php echo empty($args['charset']) ? 'utf-8' : 'windows-1252' ?>\" />\n\t\n\t<script type=\"text/javascript\" src=\"<?php echo $Config['URLPath'] ?>/js/jquery.js\"></script>\n\t<script type=\"text/javascript\">\n\t\t$(document).ready(function() {\n\t\t\t$(\"#sidebar a\").attr(\"target\", \"_blank\");\n\t\t});\n\t</script>\n\t\n\t<link rel=\"stylesheet\" href=\"<?php echo $Config['URLPath'] ?>/style.css\" type=\"text/css\" />\n\t<!--[if IE]>\n\t\t<link rel=\"stylesheet\" href=\"<?php echo $Config['URLPath'] ?>/style-ie.css\" type=\"text/css\" />\n\t<![endif]-->\n\t<!--[if IE 6]>\n\t\t<link rel=\"stylesheet\" href=\"<?php echo $Config['URLPath'] ?>/style-ie6.css\" type=\"text/css\" />\n\t<![endif]-->\n\t\n\t<?php\n\t\tif (is_array($args['scripts'])) {\n\t\t\tforeach ($args['scripts'] as $script) {\n\t?>\n\t\t\t\t<script type=\"text/javascript\" src=\"<?php echo $script ?>\"></script>\n\t<?php\n\t\t\t}\n\t\t}\n\t?>\n\n\t<style type=\"text/css\">\n\t<?php if (isset($args['page_nav_id'])) { ?>\n\t\tli#<?php echo $args['page_nav_id'] ?> a {\n\t\t\tbackground-color: white;\n\t\t}\n\t<?php } ?>\n\t<?php\n\t\tif (isset($args['css'])) {\n\t\t\techo $args['css'];\n\t\t}\n\t?>\n\t</style>\n\t\n\t<title>Jain Foundation Inc | <?php echo $args['title'] ?></title>\n\t<script type=\"text/javascript\">\n\t\tvar _gaq = _gaq || [];\n\t\t_gaq.push(['_setAccount', 'UA-17019099-3']);\n\t\t_gaq.push(['_setDomainName', 'none']);\n\t\t_gaq.push(['_setAllowLinker', true]);\n\t\t_gaq.push(['_trackPageview']);\n\t\t\n\t\t(function() {\n\t\t\tvar ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;\n\t\t\tga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';\n\t\t\tvar s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);\n\t\t})();\n\t</script>\n</head>\n\n<body>\n<div id=\"page_wrapper\">\n\n<div id=\"header\">\n\t<div id=\"top_nav_wrapper\">\n\t\t<ul id=\"top_nav\">\n\t\t\t<li id=\"button_home\" style=\"background: url(<?php echo $Config['URLPath'] ?>/images/button_home2_roll.gif) no-repeat\">\n\t\t\t\t<a href=\"<?php echo $Config['URLPath'] ?>/index.php\">\n\t\t\t\t\t<img src=\"<?php echo $Config['URLPath'] ?>/images/button_home2.gif\" alt=\"Home\" />\n\t\t\t\t</a>\n\t\t\t</li>\n\t\t\t<li id=\"button_about\" style=\"background: url(<?php echo $Config['URLPath'] ?>/images/button_about_roll.gif) no-repeat\">\n\t\t\t\t<a href=\"<?php echo $Config['URLPath'] ?>/about.php\">\n\t\t\t\t\t<img src=\"<?php echo $Config['URLPath'] ?>/images/button_about.gif\" alt=\"About Us\" />\n\t\t\t\t</a>\n\t\t\t</li>\n\t\t\t<li id=\"button_contact\" style=\"background: url(<?php echo $Config['URLPath'] ?>/images/button_contact2_roll.gif) no-repeat\">\n\t\t\t\t<a href=\"<?php echo $Config['URLPath'] ?>/contact.php\">\n\t\t\t\t\t<img src=\"<?php echo $Config['URLPath'] ?>/images/button_contact2.gif\" alt=\"Contact Us\" />\n\t\t\t\t</a>\n\t\t\t</li>\n\t\t</ul>\n\t</div>\n\t<div id=\"logo\" style=\"clear:both\">\n\t\t<a href=\"<?php echo $Config['URLPath'] ?>\"><img src=\"<?php echo $Config['URLPath'] ?>/images/logo_jain.gif\" alt=\"Jain Foundation\" /><img src=\"<?php echo $Config['URLPath'] ?>/images/logo_jain2.gif\" alt=\"Orchestrating a cure for LGMD2B/Miyoshi - Speed. Focus. Discover.\" /></a>\n\t</div>\n</div>\n\n<div id=\"body\">\n\n<div id=\"sidebar\">\n\t<ul id=\"side_nav\">\n\t\t<li id=\"button_projects\" style=\"background: url(<?php echo $Config['URLPath'] ?>/images/button_ourFunded_roll.gif) no-repeat\">\n\t\t\t<a href=\"<?php echo $Config['URLPath'] ?>/projects.php\">\n\t\t\t\t<img src=\"<?php echo $Config['URLPath'] ?>/images/button_ourFunded.gif\" alt=\"Our Funded Projects\" />\n\t\t\t</a>\n\t\t</li>\n\t\t<li id=\"button_conferences\" style=\"background: url(<?php echo $Config['URLPath'] ?>/images/button_conferences_roll.gif) no-repeat\">\n\t\t\t<a href=\"<?php echo $Config['URLPath'] ?>/conferences.php\">\n\t\t\t\t<img src=\"<?php echo $Config['URLPath'] ?>/images/button_conferences.gif\" alt=\"Sponsored Conferences\" />\n\t\t\t</a>\n\t\t</li>\n\t\t<li id=\"button_apply\" style=\"background: url(<?php echo $Config['URLPath'] ?>/images/button_apply_roll.gif) no-repeat\">\n\t\t\t<a href=\"<?php echo $Config['URLPath'] ?>/apply.php\">\n\t\t\t\t<img src=\"<?php echo $Config['URLPath'] ?>/images/button_apply.gif\" alt=\"Apply for Funding\" />\n\t\t\t</a>\n\t\t</li>\n\t\t<li id=\"button_papers\" style=\"background: url(<?php echo $Config['URLPath'] ?>/images/button_papers_roll.gif) no-repeat\">\n\t\t\t<a href=\"<?php echo $Config['URLPath'] ?>/papers.php\">\n\t\t\t\t<img src=\"<?php echo $Config['URLPath'] ?>/images/button_papers.gif\" alt=\"Relevant Scientific Papers\" />\n\t\t\t</a>\n\t\t</li>\n\t\t<li id=\"button_patients\" style=\"background: url(<?php echo $Config['URLPath'] ?>/images/button_patient_roll.gif) no-repeat\">\n\t\t\t<a href=\"<?php echo $Config['URLPath'] ?>/patients.php\">\n\t\t\t\t<img src=\"<?php echo $Config['URLPath'] ?>/images/button_patient.gif\" alt=\"Patient Registration\" />\n\t\t\t</a>\n\t\t</li>\n\t\t<li id=\"button_faq\" style=\"background: url(<?php echo $Config['URLPath'] ?>/images/button_faq_roll.gif) no-repeat\">\n\t\t\t<a href=\"<?php echo $Config['URLPath'] ?>/faq.php\">\n\t\t\t\t<img src=\"<?php echo $Config['URLPath'] ?>/images/button_faq.gif\" alt=\"FAQ on LGMD2B/Miyoshi\" />\n\t\t\t</a>\n\t\t</li>\n\t\t<li id=\"button_links\" style=\"background: url(<?php echo $Config['URLPath'] ?>/images/button_links2_roll.gif) no-repeat\">\n\t\t\t<a href=\"<?php echo $Config['URLPath'] ?>/links.php\">\n\t\t\t\t<img src=\"<?php echo $Config['URLPath'] ?>/images/button_links2.gif\" alt=\"Helpful Links\" />\n\t\t\t</a>\n\t\t</li>\n\t</ul>\n\t\n\t<div id=\"search\">\n\t<? include 'search.inc.php'; ?>\n\t</div>\n\t\n\t<div id=\"resources_for_researchers\">\n\t\t<img src=\"<?php echo $Config['URLPath'] ?>/images/header_researchers.gif\" alt=\"Resources for Researchers\" />\n\t\t<div id=\"resources_list\">\n\t\t\t<ul>\n\t\t\t\t<li class=\"emph\"><a href=\"http://sharing.jain-foundation.org\">Resource Sharing Network</a></li>\n\t\t\t\t<li class=\"emph\"><a href=\"<?php echo $Config['URLPath'] ?>/forum/\">Scientific Forum</a></li>\n\t\t\t\t<li class=\"emph\"><a href=\"<?php echo $Config['URLPath'] ?>/database/database_search.php\">The A to Z of Dysferlin Answers to Questions</a></li>\n\t\t\t\t<li class=\"emph\"><a href=\"<?php echo $Config['URLPath'] ?>/cdna.php\">Dysferlin cDNA Clones Mouse and Human -Free!-</a></li>\n\t\t\t\t<li><a href=\"<?php echo $Config['URLPath'] ?>/downloads/human_protein.pdf\">Human DYSF protein sequence and domains</a></li>\n\t\t\t\t<li><a href=\"<?php echo $Config['URLPath'] ?>/downloads/protein_alignment.pdf\">Mouse-human DYSF protein sequence alignment</a></li>\n\t\t\t\t<li><a href=\"<?php echo $Config['URLPath'] ?>/downloads/mouse_models.pdf\">Mouse models of dysferlin deficiency</a></li>\n\t\t\t\t<li><a href=\"<?php echo $Config['URLPath'] ?>/downloads/antibodies.pdf\">Anti-DYSF antibodies</a></li>\n\t\t\t\t<li><a href=\"<?php echo $Config['URLPath'] ?>/downloads/ferlin_domains.pdf\">Ferlin family members: conserved domains</a></li>\n\t\t\t\t<li><a href=\"<?php echo $Config['URLPath'] ?>/downloads/ferlin_homology.pdf\">Ferlin family members: homology scores</a></li>\n\t\t\t\t<li><a href=\"<?php echo $Config['URLPath'] ?>/downloads/splice_variants.pdf\">Dysferlin splice variants</a></li>\n\t\t\t\t<li><a href=\"<?php echo $Config['URLPath'] ?>/downloads/sequences.pdf\">Comparison of dysferlin sequences from GenBank</a></li>\n\t\t\t\t<li><a href=\"<?php echo $Config['URLPath'] ?>/downloads/population_mutations.pdf\">Population-specific and founder mutations</a></li>\n\t\t\t</ul>\n\t\t</div>\n\t</div>\n</div>\n\n<div id=\"content\">\n\n<?php\n\t}", "function admin_head()\n {\n }", "function head() { /*{{{*/\n\techo \"\n<HTML><HEAD>\n<META http-equiv=Content-Type content='text/html; charset=utf-8' />\n<title>admin</title>\n</HEAD>\n<link rel='stylesheet' type='text/css' href='css/css.css'>\n<link rel='stylesheet' type='text/css' href='css/datepicker.css' />\n<script type='text/javascript' src='js/jquery.js'></script>\n<script type='text/javascript' src='js/taffy-min.js'></script>\n<script type='text/javascript' src='js/moment.min.js'></script>\n<script type='text/javascript' src='js/datepicker.js'></script>\n<script type='text/javascript' src='js/script.js'></script>\n\";\n}", "private function printToolHead() {\n\t\t\t$this->page->openBlock('div', 'iw-content');\n\t\t\t$this->page->addInline('p', 'This tool generates reports about wikilinks in one article:');\n\t\t\t$this->page->openBlock('ul');\n\t\t\t$this->page->addInline('li', 'Links from given article which have no backlinks from target article');\n\t\t\t$this->page->addInline('li', 'Backlinks from other articles which have no links from given article');\n\t\t\t$this->page->addInline('li', 'Links from given article with backlinks from other articles');\n\t\t\t$this->page->closeBlock();\n\t\t\t$this->page->addInline('h2', 'Options');\n\t\t\t\n\t\t\t// options\n\t\t\t$optionForm = new HtmlForm('index.php', 'GET');\n\t\t\t$optionForm->addHTML('<table class=\"iw-nostyle\">');\n\t\t\t\n\t\t\t// lang/project\n\t\t\t$optionForm->addHTML('<tr><td>');\n\t\t\t$optionForm->addLabel('lang', 'Project');\n\t\t\t$optionForm->addHTML('</td><td>');\n\t\t\t$optionForm->addInput('lang', $this->par['lang'], '', 7, true);\n\t\t\t$optionForm->addHTML('&nbsp;.&nbsp;');\n\t\t\t$optionForm->addInput('project', $this->par['project'], '', 20, true);\n\t\t\t$optionForm->addHTML('&nbsp;.org</td></tr>');\n\t\t\t\n\t\t\t// page\n\t\t\t$optionForm->addHTML('<tr><td>');\n\t\t\t$optionForm->addLabel('page', 'Page title');\n\t\t\t$optionForm->addHTML('</td><td>');\n\t\t\t$optionForm->addInput('page', $this->par['page'], 'A page title in the main namespace (0)', 0, true);\n\t\t\t$optionForm->addHTML('</td></tr>');\n\t\t\t\n\t\t\t// submit button\n\t\t\t$optionForm->addHTML('<tr><td colspan=\"2\">');\n\t\t\t$optionForm->addButton('submit', 'View page conjunction');\n\t\t\t$optionForm->addHTML('</td></tr>');\n\t\t\t\n\t\t\t$optionForm->addHTML('</table>');\n\t\t\t$optionForm->output();\n\t\t\t\n\t\t\t$this->page->closeBlock();\n\t\t}", "function start_head($extra = '')\n{\n /**\n * Starting the HTML head section\n *\n * Args:\n * $extra (str): extra data in the tag - used for adding class / ID etc.\n */\n start_tag('head', Tab(1), true, $extra) ;\n}", "function print_header()\n{\n echo '<html><body>';\n}", "public function addHead()\n {\n if (file_exists(DIRREQ . \"app/view/{$this->getDir()}/head.php\")) {\n include(DIRREQ . \"app/view/{$this->getDir()}/head.php\");\n }\n }", "function showHead( $appctx )\n\t\t{\n\t\t}", "function head()\n {\n print($this->_head);\n }", "public function addHeader(){\n$this->page.= <<<EOD\n<html>\n<head>\n</head>\n<title>\n$this->title\n</title>\n<body>\n<h1 align=\"center\">\n$this->title\n</h1>\nEOD;\n}", "function write_header($date, $title, $this_page)\r\n\t{\r\n\t\tprint(\"<head>\\n\");\r\n\t\tprint(\" <link rel=\\\"icon\\\" href=\\\"./common_files/favicon.ico\\\" type=\\\"image/x-icon\\\">\\n\");\r\n\t\tprint(\"\t<link rel=\\\"shortcut icon\\\" href=\\\"./common_files/favicon.ico\\\" type=\\\"image/x-icon\\\">\\n\");\r\n\t\tprint(\"\t<meta http-equiv=\\\"Pragma\\\" content=\\\"no-cache\\\">\\n\");\r\n\t\tprint(\"\t<meta http-equiv=\\\"refresh\\\" content=\\\"1800\\\">\\n\");\r\n\t\tprint(\"\t<title>$title</title>\\n\");\r\n\t\tprint(\"\t<link rel=stylesheet href=\\\"./common_files/arm-style.css\\\" type=\\\"text/css\\\">\\n\");\r\n\t\tprint(\"\t<meta name=\\\"orgcode\\\" content=\\\"682\\\">\\n\");\r\n\t\tprint(\"\t<meta name=\\\"rno\\\" content=\\\"Joseph.B.Gurman.1\\\">\\n\");\r\n\t\tprint(\"\t<meta name=\\\"content-owner\\\" content=\\\"Peter.T.Gallagher.1\\\">\\n\");\r\n\t\tprint(\"\t<meta name=\\\"webmaster\\\" content=\\\"Amy.E.Skowronek.1\\\">\\n\");\r\n\t\tprint(\" <script type=\\\"text/javascript\\\" src=\\\"./common_files/slider.js\\\"></script>\");\r\n\t\tprint(\" <script type=\\\"text/javascript\\\" src=\\\"./common_files/warning.js\\\"></script>\");\r\n\t\tprint(\" <script type=\\\"text/javascript\\\" src=\\\"./function_table.js\\\"></script>\");\r\n\t\tprint(\"\t<script language=JavaScript1.2>\\n\");\r\n\t\t\twrite_jscript($date, $this_page);\r\n\t\tprint(\"\t</script>\\n\");\r\n\t print(\"<script language=\\\"JavaScript\\\" src=\\\"./common_files/global.js\\\"></script>\\n\");\r\n\t\t\r\n\t\t//TODO: Clean calendar files and tests (DPS, 27/Aug/'10)\r\n\t\tprint(\"\t<!-- link calendar files -->\\n\");\r\n\t print(\"<script language=\\\"JavaScript\\\" src=\\\"./common_files/tigra_calendar/calendar_eu.js\\\"></script>\\n\");\r\n\t print(\"<link rel=\\\"stylesheet\\\" href=\\\"./common_files/tigra_calendar/calendar.css\\\">\\n\");\r\n\r\n\t \r\n\t\t//TODO: Clean transition table files (DPS, 31/Aug/'10)\r\n\t\t//From: http://www.gayadesign.com/diy/animated-tabbed-content-with-jquery/\r\n\t\tprint(\"<script type=\\\"text/javascript\\\" src=\\\"./common_files/tabbedContent/js/jquery-1.4.4.min.js\\\"></script>\\n\");\r\n\t print(\"<script type=\\\"text/javascript\\\" src=\\\"./common_files/tabbedContent/js/tabbedContent.js\\\"></script>\\n\");\r\n\t\tprint(\"<link href=\\\"./common_files/tabbedContent/css/tabbedContent.css\\\" rel=\\\"stylesheet\\\" type=\\\"text/css\\\" />\\n\");\r\n\r\n\t\t//Inclusion of lightbox2\r\n//\t\tprint(\"<script type=\\\"text/javascript\\\" src=\\\"./common_files/js/prototype.js\\\"></script>\\n\");\r\n//\t\tprint(\"<script type=\\\"text/javascript\\\" src=\\\"./common_files/js/scriptaculous.js?load=effects,builder\\\"></script>\\n\");\r\n//\t\tprint(\"<script type=\\\"text/javascript\\\" src=\\\"./common_files/js/lightbox.js\\\"></script>\\n\");\r\n//\t\tprint(\"<link rel=\\\"stylesheet\\\" href=\\\"./common_files/css/lightbox.css\\\" type=\\\"text/css\\\" media=\\\"screen\\\" />\\n\");\r\n\r\n\t\t//Inclusion of jq-lightbox\r\n\t\t//print(\"<script type=\\\"text/javascript\\\" src=\\\"./common_files/js/jqlightbox/jquery.js\\\"></script>\\n\");\r\n//\t\tprint(\"<script type=\\\"text/javascript\\\" src=\\\"./common_files/js/jqlightbox/jquery.lightbox-0.5.js\\\"></script>\\n\");\r\n//\t\tprint(\"<link rel=\\\"stylesheet\\\" type=\\\"text/css\\\" href=\\\"./common_files/css/jqlightbox/jquery.lightbox-0.5.css\\\" media=\\\"screen\\\" />\\n\");\r\n\t\t\r\n//\t\tprint(\"<script type=\\\"text/javascript\\\">\\n\");\r\n//\t\tprint(\"\t$(function test() {\\n\");\r\n//\t\tprint(\"\t$('a[@rel*=lightbox]').lightBox();\\n\");\r\n//\t\tprint(\"\t});\\n\");\r\n//\t\tprint(\"</script>\\n\");\r\n\r\n\t\t//Incluiding ticker js\r\n\t\tprint(\"<link href=\\\"./ticker/jquery_news_ticker/styles/ticker-style.css\\\" rel=\\\"stylesheet\\\" type=\\\"text/css\\\" />\\n\");\r\n\t\tprint(\"<script src=\\\"./ticker/jquery_news_ticker/includes/jquery.ticker.js\\\" type=\\\"text/javascript\\\"></script>\\n\");\r\n\r\n\t\t//Inclusion of colorbox (using same version of jquery.\r\n\t\tprint(\"<link rel=\\\"stylesheet\\\" type=\\\"text/css\\\" href=\\\"./common_files/js/colorbox/colorbox/colorbox.css\\\" media=\\\"screen\\\" />\\n\");\r\n\t\tprint(\"<script src=\\\"./common_files/js/colorbox/colorbox/jquery.colorbox.js\\\"></script>\\n\");\r\n\t\tprint(\"<script>\\n\");\r\n\t\tprint(\"\t$(document).ready(function(){\\n\");\r\n\t\tprint(\" \t\t$(\\\"a[rel='lightbox']\\\").colorbox({transition:\\\"fade\\\"});\\n\");\r\n\t\tprint(\"\t});\\n\");\r\n\t\tprint(\"</script>\\n\");\r\n\t\tinclude(\"globals.php\");\r\n\t\t\r\n\t\t//Inclusion of form \r\n \t\tprint(\" <script type=\\\"text/javascript\\\">\\n\");\r\n \t\tprint(\" //<![CDATA[ \\n\");\r\n \t\tprint(\" $(window).load(function(){\\n\");\r\n\t\tprint(\" $(function() {\\n\");\r\n\t\tprint(\" $('input.cal_box').each(function() {\\n\");\r\n \t\tprint(\" $.data(this, 'default', this.value);\\n\");\r\n\t\tprint(\" }).css(\\\"color\\\",\\\"white\\\")\\n\");\r\n\t\tprint(\" .focus(function() {\\n\");\r\n\t\tprint(\" if (!$.data(this, 'edited')) {\\n\");\r\n\t\tprint(\" this.value = \\\"YYYYMMDD \");\r\n\t\tprint($date);\r\n\t\tprint(\"\\\";\\n\");\r\n\t\tprint(\" $(this).css(\\\"color\\\",\\\"white\\\");\\n\");\r\n\t\tprint(\" }\\n\");\r\n//\t\tprint(\" }).change(function() {\\n\");\r\n//\t\tprint(\" $.data(this, 'edited', this.value != \"\");\\n\");\r\n//\t\tprint(\" }).blur(function() {\\n\");\r\n//\t\tprint(\" if (!$.data(this, 'edited')) {\\n\");\r\n//\t\tprint(\" this.value = $.data(this, 'default');\\n\");\r\n//\t\tprint(\" $(this).css(\\\"color\\\",\\\"gray\\\");\\n\");\r\n//\t\tprint(\" }\\n\");\r\n\t\tprint(\" });\\n\");\r\n\t\tprint(\" });\\n\");\r\n\t\tprint(\" });\\n\");\r\n\t\tprint(\" //]]> \\n\");\r\n\t\tprint(\" </script> \\n\");\r\n\r\n\r\n\t\t//Inclusion of NOAA search form\r\n\t\t//Inclusion of form \r\n \t\tprint(\" <script type=\\\"text/javascript\\\">\\n\");\r\n \t\tprint(\" //<![CDATA[ \\n\");\r\n \t\tprint(\" $(window).load(function(){\\n\");\r\n\t\tprint(\" $(function() {\\n\");\r\n\t\tprint(\" $('input.ar_box').each(function() {\\n\");\r\n \t\tprint(\" $.data(this, 'default', this.value);\\n\");\r\n\t\tprint(\" }).css(\\\"color\\\",\\\"white\\\")\\n\");\r\n\t\tprint(\" .focus(function() {\\n\");\r\n\t\tprint(\" if (!$.data(this, 'edited')) {\\n\");\r\n\t\tprint(\" this.value = \\\"00000\\\";\\n\");\r\n\t\tprint(\" $(this).css(\\\"color\\\",\\\"white\\\");\\n\");\r\n\t\tprint(\" }\\n\");\r\n\r\n//\t\tprint(\" }).change(function() {\\n\");\r\n//\t\tprint(\" $.data(this, 'edited', this.value != \"\");\\n\");\r\n//\t\tprint(\" }).blur(function() {\\n\");\r\n//\t\tprint(\" if (!$.data(this, 'edited')) {\\n\");\r\n//\t\tprint(\" this.value = $.data(this, 'default');\\n\");\r\n//\t\tprint(\" $(this).css(\\\"color\\\",\\\"gray\\\");\\n\");\r\n//\t\tprint(\" }\\n\");\r\n\t\tprint(\" });\\n\");\r\n\t\tprint(\" });\\n\");\r\n\t\tprint(\" });\\n\");\r\n\t\tprint(\" //]]> \\n\");\r\n\t\tprint(\" </script> \\n\");\r\n\r\n\r\n\t\r\n\t\t\r\n\t\t//Insert the cool Zoom Function. (Edit: P.A.Higgins 14-May-2009)\r\n\t\tif ($this_page == \"full_disk.php\")\r\n\t\t{\r\n\t\t\tprint(\"\t<script type='text/javascript' src='common_files/tjpzoom.js'></script>\\n\");\r\n\t\t\tprint(\"\t<script type='text/javascript' src='common_files/tjpzoom_config_default.js'></script>\\n\");\r\n\t\t\tprint(\"\t<script type='text/javascript'>\\n\");\r\n\t\t\tprint(\"\tfunction writeText(txt){document.getElementById('zoomtoggle').innerHTML=txt;}\\n\");\r\n\t\t\tprint(\"\t</script>\\n\");\r\n\t\t\tprint(\"\t<script type='text/javascript'>\\n\");\r\n\t\t\tprint(\"\t\tvar TJPzoomoffset='smart';\\n\");\r\n\t\t\tprint(\"\t\tvar zoomable=-1;\\n\");\r\n\t\t\tprint(\"\t</script>\\n\");\r\n\t\t}\r\n\t\tif (preg_match(\"/pop.php/\",$this_page,$rubbish))\r\n\t\t{\r\n\t\t\tprint(\"\t\t<meta http-equiv=\\\"Pragma\\\" content=\\\"no-cache\\\">\\n\");\r\n//\t\t\tprint(\"\t\t<meta http-equiv=\\\"refresh\\\" content=\\\"300\\\">\\n\");\r\n//\t\t\tprint(\"\t\t<title>$title ( Updates dynamically every 5-mins) </title>\\n\");\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif ($this_page == \"aurora_pop.php\")\r\n\t\t{\r\n\t\t\tprint(\"\t\t<link rel=\\\"stylesheet\\\" href=\\\"./common_files/js_gifplayer/aeplayer.css\\\" type=\\\"text/css\\\">\\n\");\r\n\t\t\tprint(\"\t\t<script type=\\\"text/javascript\\\" src=\\\"./common_files/js_gifplayer/menu.js\\\"></script>\\n\");\r\n\t\t\tprint(\"\t\t<script type=\\\"text/javascript\\\" src=\\\"./common_files/js_gifplayer/aeplayer.js\\\"></script>\\n\");\r\n\t\t\tprint(\"\t\t<script type=\\\"text/javascript\\\">\\n\");\r\n\t\t\tprint(\"\t\t\twindow.onload = function() {\\n\");\r\n\t\t\tprint(\"\t\t\t\taemenu.init(\\\"icmenu\\\", \\\"icact\\\");\\n\");\r\n\t\t\tprint(\"\t\t\t\taemenu.init(\\\"stmenu\\\", \\\"stact\\\");\\n\");\r\n\t\t\tprint(\"\t\t\t\taemenu.init(\\\"simenu\\\", \\\"siact\\\");\\n\");\r\n\t\t\tprint(\"\t\t\t\taemenu.init(\\\"abmenu\\\", \\\"abact\\\");\\n\");\r\n\t\t\tprint(\"\t\t\t\taep.makeAllPlayers();\\n\");\r\n\t\t\tprint(\"\t\t}\\n\");\r\n\t\t\tprint(\"\t\t</script>\\n\");\r\n\t\t\t\r\n\t\t}\r\n\r\n /* check the theme in a cookie */\r\n $theme = @$_COOKIE[\"theme\"];\r\n if (!$theme) { //we didn't set the cookie yet\r\n // select first key of the themes array in config.inc.php as default\r\n $theme_keys = array_keys($themes);\r\n $theme = $theme_keys[0]; \r\n }\r\n foreach ($themes as $skin => $url) {\r\n\t//var_dump($skin);\r\n echo \"<link type=\\\"text/css\\\" rel=\\\"\";\r\n if ($skin==$theme) {\r\n echo \"stylesheet\";\r\n } else {\r\n echo \"prefertch alternate stylesheet\";\r\n }\r\n echo \"\\\" href=\\\"$url\\\" title=\\\"$skin\\\"\";\r\n echo \" media=\\\"screen\\\" />\\n\";\r\n }\r\n\t\t\r\n\t\t$current_date = gmdate(\"Ymd\");\r\n\t\tif (strtotime($date) > strtotime($current_date))\r\n\t\t {\r\n\t\t print(\"<STYLE type=\\\"text/css\\\">\\n\");\r\n\t\t print(\".cal_box{ color: red}\\n\");\r\n\t\t print(\"</STYLE>\\n\");\r\n\t\t }\r\n\t\tprint(\"</head>\\n\");\r\n\t}", "public function includeHead()\n {\n require_once __DIR__ . '/templates/head.php';\n }", "function giveheader($title=\"Collabor8r: Encouraging Interdisciplinary Collaboration\", $canonicalurl=\"http://collabor8r.com/\"){\n\theader('Content-Type: text/html; charset=utf-8');\n\t//Put in the DOCTYPE\n\t//include the needed javascripts\n\t//include the needed stylesheets\n\n\t$headdiv=getheaddiv();\n\techo <<<END\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html>\n\t<head>\n\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"/css/collabor8r.css\" />\n\t\t<script type=\"text/javascript\" src=\"/js/md5.js\"></script>\n\t\t<script type=\"text/javascript\" src=\"/js/r8r.js\"></script>\n\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n <link rel=\"canonical\" href=\"$canonicalurl\" />\n\t\t<title>$title</title>\n\t</head>\n\t<body>\n $headdiv\n <div class=\"bigwrap\">\n\t\t\t<div id=\"contentdiv\" class=\"content\">\n\t\t\t\t<noscript>\n\t\t\t\t\tPlease turn on Javascript to Collabor8.\n\t\t\t\t</noscript>\nEND;\n}", "function header() {\n?>\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n\n<?php \n // load the javascripts -- this is a little confusing and could be done more better.\n $this->jscript_list();\n $this->css_list();\n?> \n <Title><?php echo $this->title; ?></Title>\n</head>\n\n<?php \n }", "function headOptimization()\r\n\t{\r\n\t\t\r\n\t\techo \"<meta name='description' content='\".$this->PageDescription().\"' />\";\r\n\t\techo \"<meta name='keywords' content='\".$this->PageKeywords().\"' />\";\r\n\t\techo \"<title>\".$this->PageTitle().\"</title>\";\r\n\t\r\n\t}", "function generateHead(){\n $title = $this->getTitle();\n echo \"<!DOCTYPE html>\n <html lang='en'>\n <head>\n <meta charset='UTF-8'>\n <meta name='viewport' content='width=device-width, initial-scale=1.0'>\n <link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css'>\n <link href='https://cdn.quilljs.com/1.3.6/quill.snow.css' rel='stylesheet'>\n <script src='https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js'></script>\n <script src='https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js'></script>\n <script src='https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js'></script>\n <link rel='stylesheet' href='static/styles/styles.css'>\n <title>$title</title>\n </head>\n <body>\";\n }", "function html_header()\r\n\t{\r\n?>\r\n\t\t<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\r\n\t\t\t\"http://www.w3.org/TR/html4/loose.dtd\">\r\n\t\t<html>\r\n\r\n\t\t<head>\r\n\t\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8;\">\r\n\t\t\t<title>Exam Reservation System</title>\r\n\t\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"testres.css\"> \r\n\t\t</head>\r\n\t\t<body>\r\n<?php\r\n\t}", "public static function show_header() {\n require_once Config::get('prefix') . '/templates/header.inc.php';\n }", "function rest_output_link_wp_head()\n {\n }", "function printHeader($title) {\n\tprint <<<ENDOLA\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \n \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n\t<meta http-equiv=\"Content-type\" content=\"text/html;charset=UTF-8\" />\n\t<title>${title}</title>\nENDOLA;\n\n\tprintJQuery();\n\n\techo '</head><body>';\n}", "function basecss_insert_head($flux){\n\tif (!test_plugin_actif('Zcore')){\n\t\t$flux .= \"<\".\"?php header(\\\"X-Spip-Filtre: basecss_pied_de_biche\\\"); ?\".\">\";\n\t}\n\treturn $flux;\n}", "public function standard_head_html() {\n $output = parent::standard_head_html();\n $output .= '<link href=\\\"https://fonts.googleapis.com/css?family=Roboto|Nova+Mono|Roboto+Mono|Tinos\\\" rel=\\\"stylesheet\\\">';\n\n return $output;\n }", "private function displayHeader()\n {\n\n $html = '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">' . \"\\n\";\n $html .= '<html xmlns=\"http://www.w3.org/1999/xhtml\">';\n $html .= '<head>' . \"\\n\";\n\n //Meta tags\n $html .= '<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />' . \"\\n\";\n $html .= '<meta name=\"description\" content=\"' . $this->pageInfo['pageDescription'] . '\" />' . \"\\n\";\n $html .= '<meta name=\"keywords\" content=\"jobs, freelance, work, design, freedom, choice, new zealand, quality\" />' . \"\\n\";\n $html .= '<link rel=\"icon\" type=\"image/png\" href=\"images/volition-icon.png\" />' . \"\\n\";\n\n //Stylesheets\n $html .= '<!-- Stylesheets -->' . \"\\n\";\n $html .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"css/styles.css\" />' . \"\\n\";\n $html .= '<!--[if lt IE 9]>' . \"\\n\";\n $html .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"css/ie.css\" />' . \"\\n\";\n $html .= '<![endif]-->' . \"\\n\";\n\n //Scripts\n //$html .= '<script type=\"text/javascript\" src=\"js/window.js\"></script>'.\"\\n\";\n\n //Page title\n $html .= '<title>Volition | ' . $this->pageInfo['pageTitle'] . '</title>' . \"\\n\";\n $html .= '</head>' . \"\\n\";\n $html .= '<body>' . \"\\n\";\n\n //Header\n $html .= '<div id=\"header\">' . \"\\n\";\n\n //Control buttons\n\n $html .= '<div id=\"headerImg\"><a href=\"index.php?page=home\"></a></div>' . \"\\n\";\n\n if ($this->model->userLoggedIn) {\n $html .= '<p class=\"controlButton\"><a href=\"index.php?page=logout\">Logout</a></p>' . \"\\n\";\n $html .= '<p class=\"userControl\">You are logged in as ' . $_SESSION['userName'] . '</p>' . \"\\n\";\n } else {\n $html .= '<p class=\"controlButton\"><a href=\"index.php?page=login\">Login</a></p>' . \"\\n\";\n $html .= '<p class=\"controlButton\"><a href=\"index.php?page=register\">Register</a></p>' . \"\\n\";\n }\n\n $html .= '<form id=\"searchForm\" method=\"post\" action=\"index.php?page=search\">';\n if ($_POST['searchInput']) {\n $html .= '<input type=\"text\" name=\"searchInput\" id=\"searchInput\" value=\"' . $_POST['searchInput'] . '\" />';\n } else {\n $html .= '<input type=\"text\" name=\"searchInput\" id=\"searchInput\" value=\"Search...\" />';\n }\n $html .= '<input type=\"submit\" class=\"submit\" name=\"searchSubmit\" id=\"searchSubmit\" value=\"Go\" />';\n $html .= '</form>';\n\n //Navbar\n $html .= $this->displayNav();\n\n $html .= '</div>' . \"\\n\";\n //Content tags\n $html .= '<div id=\"container\">' . \"\\n\";\n $html .= '<div id=\"content\" >' . \"\\n\";\n\n return $html;\n\n }", "function print_html_top() {\r\n\t\techo '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">' .\r\n\t\t\t\"\\n<html>\";\r\n\t}", "public function getHeader() {\n\t\t\tglobal $arConfig; \n\t\t\t$strHTML = \"\\n\\t\\t<title>\" . $this->strTitle . \"</title>\";\n\t\t\t$strHTML .= \"\\n\\t\\t<meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=utf-8\\\" />\"; \n\t\t\t$strHTML .= \"\\n\\t\\t<link rel=\\\"shortcut icon\\\" href=\\\"\" . fixPath(\"favicon.png\") . \"\\\" type=\\\"image/png\\\" />\"; \n\t\t\tforeach($this->arMeta as $strKey=>$strVal) {\n\t\t\t\t$strHTML .= \"\\n\\t\\t<meta name=\\\"\" . $strKey . \"\\\" content=\\\"\" . $strVal . \"\\\" />\"; \n\t\t\t} \n\t\t\tforeach($this->arCSS as $strFile=>$arData) {\n\t\t\t\t$strHTML .= \"\\n\\t\\t<link rel=\\\"stylesheet\\\" href=\\\"\" . $strFile . \"\\\" type=\\\"text/css\\\" media=\\\"\" . $arData[\"media\"] . \"\\\" />\"; \n\t\t\t} \n\t\t\tforeach($this->arJS as $strFile) {\n\t\t\t\t$strHTML .= \"\\n\\t\\t<script src=\\\"\" . $strFile . \"\\\"></script>\"; \n\t\t\t} \n\t\t\t$strHTML .= \"\\n\\t\\t<script>\n\t\t\t\tvar strRoot = \\\"\" . settings(\"domain\", \"root\") . \"\\\"; \n\t\t\t</script>\"; \n\t\t\t\n\t\t\t\n\t\t\treturn $strHTML; \n\t\t}", "function html_head_from_all_pagest()\r\n{\r\n $ht_head = '\r\n <!DOCTYPE html>\r\n <html lang=\"en\">\r\n <head>\r\n <meta charset=\"UTF-8\">\r\n <title>Кредитный калькулятор</title>\r\n <link rel=\"stylesheet\" href=\"css/style.css\">\r\n <script src=\"http://code.jquery.com/jquery-1.7.1.min.js\"></script>\r\n <script src=\"js/script.js\"></script> \r\n <style>\r\n body{\r\n font-family: \"Segoe UI Light\";\r\n }\r\n #tr{\r\n \r\n font-size: x-large;\r\n }\r\n \r\n span {\r\n font-weight: 700;\r\n font-size: large;\r\n }\r\n </style> \r\n </head>';\r\n echo $ht_head;\r\n}", "function add_head() {\r\n\t\tglobal $locale;\r\n\t\t$wpca_settings = get_option('wpcareers');\r\n\t\techo \"<link rel=\\\"stylesheet\\\" href=\\\"\" . $this->plugin_url . \"/themes/default/css/default.css\\\" type=\\\"text/css\\\" media=\\\"screen\\\">\";\r\n\t\tif($wpca_settings['edit_style']==null || $wpca_settings['edit_style']=='plain') {\r\n\t\t\t// nothing\r\n\t\t} elseif($wpca_settings['edit_style']=='tinymce') {\r\n\t\t\t// activate these includes if the user chooses tinyMCE on the settings page\r\n\t\t\t$mce_path = get_option('siteurl');\r\n\t\t\t$mce_path .= '/wp-includes/js/tinymce/tiny_mce.js';\r\n\t\t\techo '<script type=\"text/javascript\" src=\"' . $mce_path . '\"></script>';\r\n\t\t}\r\n\t}", "function vmt_head()\n\t\t{\n\t\t\tif (! empty($this->options['google'])) {\n\t\t\t\techo '<meta name=\"google-site-verification\" content=\"' . esc_attr($this->options['google']) . '\" />';\n\t\t\t}\n\t\t\tif (! empty($this->options['pinterest'])) {\n\t\t\t\techo '<meta name=\"p:domain_verify\" content=\"' . esc_attr($this->options['pinterest']) . '\" />';\n\t\t\t}\n\t\t\tif (! empty($this->options['analytics'])) {\n\t\t\t\techo $this->options['analytics'];\n\t\t\t}\n\t\t}", "function dw2_insert_head($flux) {\r\n\t\t$flux.= \"\\n\".'<script type=\"text/javascript\" src=\"'._DIR_PLUGIN_DW2.'dw2_fermepop.js\"></script>'.\"\\n\";\r\n\t\t$flux.= \"\\n\".'<link rel=\"stylesheet\" type=\"text/css\" href=\"'._DIR_PLUGIN_DW2.'dw2_public_styles.css\" />'.\"\\n\";\r\n\t\treturn $flux;\r\n\t}", "function do_html_header($title)\r\n{\r\n?>\r\n <html>\r\n <head>\r\n <title><?=$title?></title>\r\n <? /* <style>\r\n body { font-family: Arial, Helvetica, sans-serif; font-size: 13px }\r\n li, td { font-family: Arial, Helvetica, sans-serif; font-size: 13px }\r\n hr { color: #3333cc; width:300; text-align:left; }\r\n a { color: #000000 }\r\n </style> \r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /> */?>\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"css/style.css\" />\r\n </head>\r\n <body>\r\n<!-- <img src=\"top_1.gif\" alt=\"Selena logo\" border=0\r\n align=left valign=bottom height = 82 width = 350><br>\r\n <h1>&nbsp;</h1><br> <hr>-->\r\n\r\n<?\r\n if($title)\r\n do_html_heading($title);\r\n}", "public function buildHeadMarkup(){\n\n echo file_get_contents(\"head/home.html\");\n\n $this->head_script_tags = \"\";\n\n foreach( $this->head_scripts as $value ){\n\n $this->head_script_tags .= \"<script src=\\\"\" . $value . \"\\\"></script>\";\n\n }\n\n $this->head = file_get_contents(\"head/home.html\").$this->head_script_tags.\"</head>\";\n\n }", "function entete(){\n print \"<html xmlns=\\\"http://www.w3.org/1999/html\\\">\\n\";\n print \"<head>\\n\";\n print \"<link rel=\\\"stylesheet\\\" href=\\\"style1.css\\\"/>\";\n print \"<title>OUISCAN</title>\";\n print \"</head>\\n\";\n print \"<body>\\n\";\n}", "public function admin_head()\n {\n // phpcs:enable PSR1.Methods.CamelCapsMethodName.NotCamelCaps\n $this->admin_ajax_handler();\n \n $head_content = $this->standard_head(); // We start with the standard stuff.\n \n $head_content .= '<script type=\"text/javascript\" src=\"https://maps.google.com/maps/api/js?sensor=false\"></script>'; // Load the Google Maps stuff for our map.\n \n $head_content .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"';\n \n $url = $this->get_plugin_path();\n \n $head_content .= htmlspecialchars($url);\n \n $head_content .= 'admin_styles.css\" />';\n \n $head_content .= '<script type=\"text/javascript\" src=\"';\n \n $head_content .= htmlspecialchars($url);\n \n if (!defined('_DEBUG_MODE_')) {\n $head_content .= 'js_stripper.php?filename=';\n }\n \n $head_content .= 'admin_javascript.js\"></script>';\n \n return $head_content;\n }", "function displayHeader()\n\t{\n\t\t// output locator\n\t\t$this->displayLocator();\n\n\t\t// output message\n\t\tif($this->message)\n\t\t{\n\t\t\tilUtil::sendInfo($this->message);\n\t\t}\n\t\tilUtil::infoPanel();\n\n//\t\t$this->tpl->setTitleIcon(ilUtil::getImagePath(\"icon_pd_b.gif\"),\n//\t\t\t\"\");\n\t\t$this->tpl->setTitle($this->lng->txt(\"bookmarks\"));\n\t}", "public function showPageHeader() {\n\n\t\techo $this->getPageHeader();\n\t}", "public function pageHead($title, $otherLinks=\"\")\n {\n $head = \"<head>\\n\";\n\t\t $head .= \"<meta name='viewport' content='width=device-width, \"\n . \"initial-scale=1.0'>\\n\"\n . \"<title>$title</title>\\n\"\n . \"<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'>\\n\"\n . \"<script src='https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script>\\n\"\n . \"<script src='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js'></script>\\n\"\n . \"$otherLinks\";\n\n $head .= \"</head>\\n\";\n $this->sBody .= $head.\"<body>\\n\";\n\n }", "public static function printHead (){\n\t?>\n\t<style type=\"text/css\">\n\t\tdiv#gdocs_left {\n\t\t\tfloat:left;\n\t\t\twidth:50%;\n\t\t}\n\t\tdiv#gdocs_right {\n\t\t\tfloat:right;\n\t\t\twidth:50%;\n\t\t}\n\t\tdiv#gdocs_right td.gdocs_loader {\n\t\t\tbackground:#cfebf7 url(\"<?php echo GDOCS_ADDRESS ?>/inc/img/ajax-loader.gif\") center right no-repeat;\n\t\t}\n\t\tdiv#gdocs_right tr.gdocs_loader td{\n\t\t\tbackground-color:#cfebf7;\n\t\t}\n\t\tdiv#gdocs_right table.hor-zebra {\n\t\t\tfont-family: \"Lucida Sans Unicode\", \"Lucida Grande\", Sans-Serif;\n\t\t\tfont-size: 10px;\n\t\t\tmargin: 15px 0;\n\t\t\ttext-align: left;\n\t\t\tborder-collapse: collapse;\n\t\t}\n\t\tdiv#gdocs_right table.hor-zebra th {\n\t\t\tfont-size: 12px;\n\t\t\tfont-weight: normal;\n\t\t\tpadding: 10px 8px;\n\t\t\tcolor: #039;\n\t\t}\n\t\tdiv#gdocs_right table.hor-zebra td {\n\t\t\tpadding: 8px;\n\t\t\tcolor: #669;\n\t\t}\n\t\tdiv#gdocs_right table.hor-zebra .odd {\n\t\t\tbackground: #e8edff;\n\t\t}\n\t\t\n\t\tspan.description {\n\t\t\tfont-style:normal;\n\t\t}\n\t</style>\n\t\n\t<div class='wrap'>\n\t\t<h2>Inline Google Docs</h2>\n\t\t<div id='gdocs_left'>\n\t\t\t<form method='post' action='options.php'>\n\t\t\t\t<?php\n\t\t\t\tif (function_exists ('settings_fields')){\n\t\t\t\t\tsettings_fields ('gdocs-options');\n\t\t\t\t}else {\n\t\t\t\t?>\n\t\t\t\t<input type=\"hidden\" name=\"action\" value=\"update\" />\n\t\t\t\t<input type=\"hidden\" name=\"page_options\" value=\"gdocs_user,gdocs_pwd,gdocs_proxy_host,gdocs_proxy_port,gdocs_proxy_user,gdocs_proxy_pwd,gdocs_cache_expiry,gdocs_style_dir\" />\n\t\t\t\t<?php \n\t\t\t\t\twp_nonce_field ('update-options');\t\n\t\t\t\t}\n\t\t\t\t?>\n\t\t\t\n\t<?php\n\t\n\t}", "public function printHeader() {\n\t\t$template = self::$templates[$this->templateName];\n\t\trequire_once $template['path'] . $template['file-header'];\n\t}", "public function startHTML() {\n $css = CSS; \n // if we have a .css in the config.class \n if(isset($css)) {\n $link = \" <link rel='stylesheet' href='\" . CSS . \"'>\\n\"; \n }\n \n echo \"<!DOCTYPE html>\\n\" \n . \"<html>\\n\" \n . \"<head>\\n\";\n echo $link; \n echo \"<meta charset='UTF-8'>\\n\"\n . \"<title>tablemaster</title>\\n\"\n . \"</head>\\n\"\n . \"<body>\\n\"; \n \n }", "private function printHead($m = \"\")\n {\n if ($this->version != self::AMP && $this->version != self::Telegram) {\n $out = '<?xml version=\"1.0\" encoding=\"utf-8\"?>' . \"\\n\";\n }\n\n if ($this->version == self::Turbo) {\n $out .= '<rss xmlns:turbo=\"http://turbo.yandex.ru\" version=\"2.0\">' . PHP_EOL;\n } else if ($this->version == self::AMP) {\n $out .= '<!doctype html>' . PHP_EOL . '<html amp>' . PHP_EOL . '<head>' . PHP_EOL . '<meta charset=\"utf-8\">' . PHP_EOL .\n '<script async src=\"https://cdn.ampproject.org/v0.js\"></script>' . PHP_EOL .\n '<link rel=\"canonical\" href=\"'.$m[\"fullPath\"].'\">' . PHP_EOL .\n '<meta name=\"viewport\" content=\"width=device-width,minimum-scale=1,initial-scale=1\">' . PHP_EOL .\n '<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>'\n . PHP_EOL . '<style amp-custom>body{padding-left: 10px; padding-right: 10px;} img{display:none;}</style>' . PHP_EOL . '<title>' . $m[\"name\"] . '</title>' .\n '</head>' . PHP_EOL . '<body>' . PHP_EOL;\n\n } else if ($this->version == self::Telegram) {\n $out .= '<!doctype html>' . PHP_EOL . '<html>' . PHP_EOL . '<head>' . PHP_EOL . '<meta charset=\"utf-8\">' . PHP_EOL .\n '<link rel=\"canonical\" href=\"'.$_SERVER[HTTP_X_FORWARDED_PROTO] . \"://\" . $_SERVER[HTTP_HOST].$_SERVER['REQUEST_URI'].'\">' . PHP_EOL .\n '<meta name=\"viewport\" content=\"width=device-width,minimum-scale=1,initial-scale=1\">' . PHP_EOL .\n '<title>' . $m[\"name\"] . '</title>' . '</head>' . PHP_EOL . '<body>' . PHP_EOL;\n\n }\n echo $out;\n }", "function generate_page_head ( $titre, $description, $tags, $res_segments ){\n\t\t$html = \"<html lang='fr'>\n\t<head>\n\t\t<title>\".$titre.\"</title>\n\t\t<link rel='shortcut icon' type='image/png' href='img/favicon.png'>\n\t\t<link rel='stylesheet' type='text/css' href='lib/site.css'>\n\t\t<link href='http://fonts.googleapis.com/css?family=Oleo+Script' rel='stylesheet' type='text/css'>\n\t\t<meta charset='utf-8'>\n\t\t<meta name='description' content='\".$description.\"'>\n\t\t<meta name='keywords' content='\".$tags.\"'>\";\n\t\t\n\t\t// If page has segments\n\t\t//$html .= sizeof($res_segments);\n\t\tif ( $res_segments != \"\" ){\n\t\t\t\n\t\t\t// List all elements involved in page\n\t\t\twhile ( $row = getLine ( $res_segments ) )\t$tab_elm[$row['element']] = 1;\n\t\t\t\n\t\t\t// Include each element css file in html head\n\t\t\tforeach ( $tab_elm as $elm=>$v )\t$html .= \"\n\t\t\t<link rel='stylesheet' type='text/css' href='lib/$elm/$elm.css'>\";\n\t\t}\n\t\t\t\n\t\t// Generate site's structure : header & nav sections\n\t\t$html .= \"\n\t</head><body>\n\t\t<div id='back'>\n\t\t\t<center><div id='wrapper'>\";\n\t\t$html .= \"\n\t\t\t\t\".generate_site_header();\n\t\treturn $html;\n\t}", "function dw2_header_prive($flux) {\r\n\t\t$flux .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"'._DIR_PLUGIN_DW2.'dw2_styles.css\" />'.\"\\n\";\r\n\t\t$flux .= '<script type=\"text/javascript\" src=\"'._DIR_PLUGIN_DW2.'dw2_back.js\"></script>'.\"\\n\";\r\n\t\treturn $flux;\r\n\t}", "function showHTMLHeaderWithTitle($title = '') {\r\n\techo '<!DOCTYPE html>'; // započinje ispravan HTML blok koda\r\n\r\n\techo '<html lang=\"hr\">'; // postavlja jezik stranice na hrvatski\r\n\r\n\techo '<head>'; // započinje HEAD dio HTML stranice\r\n\r\n\techo '<meta charset=\"utf-8\">'; // postavlja kodiranje stranice na UTF-8\r\n\r\n\techo '<title>'; // započinje postavljanje naslova stranice koji se prikazuje u pregledniku kod bookmarka i u nazivu prozora ili taba\r\n\techo (isset($title) && !empty($title) ? $title.' :: ' : ''); // prikazuje naslov putem inline if-a, ako je postavljen\r\n\techo 'Bankomati'; // na kraju naslova uvijek doda naziv aplikacije Bankomati\r\n\techo '</title>';// završava postavljanje naslova stranice\r\n\r\n\techo '</head>'; // završava HEAD dio HTML stranice\r\n\r\n\techo '<body>'; // započinje BODY dio HTML stranice\r\n\t// prikazuje naslov kao heading (poglavlje stranice) putem običnog if-a, ako je postavljen\r\n\tif (\r\n\t\tisset($title) \r\n\t\t&& \r\n\t\t!empty($title)\r\n\t) {\r\n\t\techo '<h1>'; // započinje postavljanje headinga (poglavlja) stranice nivoa 1\r\n\t\techo $title;\r\n\t\techo '</h1>'; // završava postavljanje headinga (poglavlja) stranice nivoa 1\r\n\t}\r\n\techo '<hr/>'; // ispisuje horizontalku\r\n}", "function printHtmlHeader($title)\n{\n $htmlTitle = filter_var($title, FILTER_SANITIZE_SPECIAL_CHARS);\n print '<!DOCTYPE html>';\n print '<html>';\n print \"<head><title>$htmlTitle</title></head>\";\n print '<link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\" />';\n print '<body>';\n}", "function head()\r\n{\r\n\t\t?>\r\n\t\t<meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\" />\r\n\t\t<meta name=\"generator\" content=\"Adobe GoLive\" />\r\n\t\t<!--<meta name=\"keywords\" content=\"engagement rings, loose diamonds, hatton garden, diamond rings, earrings, wedding rings, diamonds, diamond rings hatton garden\"/>-->\r\n\t\t<meta name=\"author\" content=\"Marcpierre Diamonds\"/>\r\n\t\t<meta name=\"language\" content=\"EN\"/>\r\n\t\t<meta name=\"Classification\" content=\"Marcpierre Diamonds\"/>\r\n\t\t<meta name=\"copyright\" content=\"www.marcpierrediamonds.co.uk\"/>\r\n\t\t<meta name=\"robots\" content=\"index, follow\"/>\r\n\t\t<meta name=\"revisit-after\" content=\"7 days\"/>\r\n\t\t<meta name=\"document-classification\" content=\"Marcpierre Diamonds\"/>\r\n\t\t<meta name=\"document-type\" content=\"Public\"/>\r\n\t\t<meta name=\"document-rating\" content=\"Safe for Kids\"/>\r\n\t\t<meta name=\"document-distribution\" content=\"Global\"/>\r\n\t\t<meta name=\"robots\" content=\"noodp\" />\r\n\t\t<meta name=\"GOOGLEBOT\" content=\"NOODP\" />\r\n\t\t<!--[if IE 6]>\r\n\t\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"<?php echo DIR_WS_SITE?>css/iecss.css\" />\r\n\t\t<![endif]-->\r\n\t\t<!--[if lt IE 7.]>\r\n\t\t\t<script defer type=\"text/javascript\" src=\"<?php echo DIR_WS_SITE?>javascript/pngfix.js\"></script>\r\n\t\t<![endif]-->\r\n\t\t<script type=\"text/javascript\" src=\"<?php echo DIR_WS_SITE?>js/boxOver.js\"></script>\r\n\t\t<script type=\"text/javascript\" src=\"<?php echo DIR_WS_SITE?>control/js/jquery-1.2.6.min.js\"></script>\r\n\t\t<link href=\"<?=DIR_WS_SITE_CSS?>style.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\">\r\n\t\t<?\r\n\t\t\r\n\t\t\r\n\t\t\r\n}", "function do_html_header($title)\r\n{\r\n?>\r\n <html>\r\n <head>\r\n <title><?=$title?></title>\r\n <style>\r\n body { font-family: Arial, Helvetica, sans-serif; font-size: 13px }\r\n li, td { font-family: Arial, Helvetica, sans-serif; font-size: 13px }\r\n hr { color: #3333cc; width=300; text-align=left}\r\n a { color: #000000 }\r\n </style>\r\n </head>\r\n <body>\r\n <img src=\"marcador.gif\" alt=\"PHPbookmark logo\" border=0\r\n align=left valign=bottom height = 50 width = 150>\r\n <h1>&nbsp;CompartElinks</h1>\r\n <hr>\r\n<?\r\n if($title)\r\n do_html_heading($title);\r\n}", "private function setupPage ()\n {\n $output = '<!DOCTYPE html><html lang=\"en\"><head>';\n $output .= $this->setCharacterEncoding();\n $output .= $this->setPageTitle();\n $output .= $this->setBasePath();\n $output .= $this->fixHTML5();\n $output .= $this->registerCustomResources();\n $output .= '</head><body>';\n echo $output;\n }", "private function setupPage ()\n {\n $output = '<!DOCTYPE html><html lang=\"en\"><head>';\n $output .= $this->setCharacterEncoding();\n $output .= $this->setPageTitle();\n $output .= $this->setBasePath();\n $output .= $this->registerResource('css', $this->cssResource);\n $output .= $this->registerResource('js', $this->jsResource);\n $output .= $this->fixHTML5();\n $output .= '</head><body>';\n echo $output;\n }", "public function get_header_html()\n\t{\n\t return '';\n\t}", "public function head()\n {\n return <<<HTML\n<title>$this->title</title>\n<!-- Meta Tags -->\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<meta name=\"keywords\" content=\"josh benner, developer, javascript, api, web app, designer, linkedin scraper\">\n<meta name=\"author\" content=\"Josh Benner\">\n<meta name=\"description\" content=\"Web Apps, personal projects, and lots of data; The professional website of Josh Benner\">\n\n<!-- DOWNLOAD AND HOST BOOTSTRAP LOCALLY-->\n<!-- Stylesheets -->\n<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js\"></script>\n<script src=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js\"></script>\n<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css\">\n<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css\">\n<link href='https://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"../lib/css/normalize.css\">\n<link rel=\"stylesheet\" href=\"../lib/css/main.css\">\nHTML;\n }", "static function head($content='') {\n\t\t$content = self::meta('charset') . $content; //auto-prepend charset because it's always needed\n\t\treturn self::tag('head', false, $content);\n\t}", "function getHead() {\n return '';\n // return $this->document->getHead();\n }", "function get_html_header();", "private function renderHead() {\n\t\t$head = '<?xml version=\"1.0\" encoding=\"utf-8\"?>' . PHP_EOL;\n\t\tif (!empty($this->stylesheets))\n\t\t\t$head .= implode(PHP_EOL, $this->stylesheets);\n\n\t\tif ($this->type == 'RSS2') {\n\t\t\t$head .= $this->openTag('rss', array(\n\t\t\t\t\t\t\"version\" => \"2.0\",\n\t\t\t\t\t\t\"xmlns:content\" => \"http://purl.org/rss/1.0/modules/content/\",\n\t\t\t\t\t\t\"xmlns:atom\" => \"http://www.w3.org/2005/Atom\",\n\t\t\t\t\t\t\"xmlns:wfw\" => \"http://wellformedweb.org/CommentAPI/\")) . PHP_EOL;\n\t\t} elseif ($this->type == 'RSS1') {\n\t\t\t$head .= $this->openTag('rdf:RDF', array(\n\t\t\t\t\t\t\"xmlns:rdf\" => \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\",\n\t\t\t\t\t\t\"xmlns\" => \"http://purl.org/rss/1.0/\",\n\t\t\t\t\t\t\"xmlns:dc\" => \"http://purl.org/dc/elements/1.1/\"\n\t\t\t\t\t)) . PHP_EOL;\n\t\t} else if ($this->type == 'Atom') {\n\t\t\t$head .= $this->openTag('feed', array(\"xmlns\" => \"http://www.w3.org/2005/Atom\")) . PHP_EOL;\n\t\t}\n\t\treturn $head;\n\t}", "function display_header() {}", "public static function header_output() {\n\t\tob_start();\n\n\t\tif ( self::options( 'header_type' ) == 'navbar-fixed-top' ) {\n\t\t\techo 'body{padding-top: 50px;}';\n\t\t}\n\n\t\tif ( ! display_header_text() ) {\n\t\t\techo '#site-title,.site-description{position: absolute;clip: rect(1px, 1px, 1px, 1px);}';\n\t\t} else {\n\t\t\tself::generate_css( '#site-title', 'color', 'header_textcolor', '#' );\n\t\t}\n\t\t$extra_css = apply_filters( 'maketador_header_output', ob_get_clean() );\n\t\tif ( ! empty( $extra_css ) ) {\n\t\t\techo '<style type=\"text/css\">' . $extra_css . '</style>';\n\t\t}\n\t\t?>\n\t\t<?php\n\t}", "function print_header($title){\r\necho('<?xml version=\"1.0\" encoding=\"utf-8\"?>');\r\n?>\r\n\r\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n\t<head>\r\n\t\t<title> Insert: <?php echo($title); ?> </title>\r\n\t</head>\r\n\t\r\n\t<body>\r\n\t\t<h4>\r\n\t\t\t<a href=\"index.php\"> Main Page </a>&#8195;\r\n\t\t\t<a href=\"create.php\"> Create </a>&#8195;\r\n\t\t\t<a href=\"edit.php\"> Edit / Delete </a>&#8195;\r\n\t\t\t<a href=\"search.php\"> Search </a>&#8195;\r\n\t\t\t<a href=\"dump.php\"> Dump </a>\r\n\t\t</h4>\r\n<?php\r\n}" ]
[ "0.81651413", "0.7931529", "0.7921321", "0.7919458", "0.788659", "0.77996576", "0.7736149", "0.77219355", "0.76442516", "0.7622923", "0.7613178", "0.7590509", "0.7560258", "0.7552962", "0.7545803", "0.7497427", "0.74933314", "0.74751586", "0.7468814", "0.7448255", "0.7443447", "0.74274355", "0.74198097", "0.7409265", "0.74088615", "0.74036914", "0.7391449", "0.73386496", "0.7331189", "0.73212343", "0.7316502", "0.7305401", "0.729404", "0.72524446", "0.72372323", "0.72280216", "0.72256106", "0.72243994", "0.72211576", "0.72098315", "0.7193054", "0.7187235", "0.718077", "0.71626747", "0.7158632", "0.7146697", "0.7139018", "0.7135706", "0.71268374", "0.7120089", "0.7109186", "0.7105304", "0.70946014", "0.7087015", "0.70561737", "0.7053711", "0.70523953", "0.7045977", "0.7045537", "0.704449", "0.70430094", "0.70422524", "0.7037617", "0.70290565", "0.7023478", "0.70231575", "0.7017523", "0.7010358", "0.700687", "0.69886893", "0.6985437", "0.6983221", "0.6972288", "0.6960765", "0.69590867", "0.6956044", "0.6955736", "0.6943423", "0.6939599", "0.69311094", "0.6930844", "0.6911184", "0.6910553", "0.69088405", "0.69077444", "0.68959355", "0.689087", "0.6887061", "0.6882432", "0.687421", "0.68510133", "0.68443835", "0.68343973", "0.6823249", "0.6821672", "0.6819804", "0.6817472", "0.68123984", "0.6804365", "0.67846686", "0.6752809" ]
0.0
-1
check of de gebruiker het cookieformulier gepost heeft, of hij op Accept of Decline geklikt heeft,
function Cookies() { //en bewaar zijn antwoord in een sessievariabele //check of eerder al een antwoord ivm de cookies opgeslagen werd in de sessievariabele, //zoniet toon dan de cookies-tekst en stop de PHP code uitvoering //toon in een hidden div waarop de gebruiker geklikt heeft (cookies geaccepteerd of niet) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cookieAction() {\n if($_COOKIE['tx_cookies_accepted'] && !$this->settings['showPermanent']) {\n return FALSE;\n }\n $this->view->assign('accepted', array_key_exists('tx_cookies_accepted', $_COOKIE) ? 1 : 0);\n $this->view->assign('disabled', array_key_exists('tx_cookies_disabled', $_COOKIE) ? 1 : 0);\n $this->view->assign('acceptedOrDisabled', ($_COOKIE['tx_cookies_accepted'] || $_COOKIE['tx_cookies_disabled']) ? 1 : 0);\n }", "public static function kapee_cookikapee_accepted() {\n\t\treturn ( isset( $_COOKIE[self::$cookie['name']] ) && strtoupper( $_COOKIE[self::$cookie['name']] ) === self::$cookie['value'] );\n\t}", "public function allowedToAndSetCookie(){\n\t\t$rechte_zum_sperren=$this->dbObj->sqlGet(\"select etchat_userprivilegien FROM {$this->_prefix}etchat_user where etchat_user_id = \".$_SESSION['etchat_'.$this->_prefix.'user_id']);\n\t\tif ($rechte_zum_sperren[0][0]!=\"admin\" && $rechte_zum_sperren[0][0]!=\"mod\"){\n\t\t\t$this->dbObj->sqlSet(\"DELETE FROM {$this->_prefix}etchat_useronline WHERE etchat_onlineuser_fid = \".$_SESSION['etchat_'.$this->_prefix.'user_id']);\n\t\t\tsetcookie(\"cookie_etchat_blacklist_until\", $this->user_bann_time, $this->user_bann_time, \"/\"); \n\t\t\tsetcookie(\"cookie_etchat_blacklist_ip\", $this->user_param_all, $this->user_bann_time, \"/\");\n\t\t\treturn true;\n\t\t}\n\t\telse return false;\n\t}", "public function cookies_validate(){\n\t\t\t\n\t\t\tini_set('session.cookie_httponly', true); \n\t\t\theader( 'Expires: Thu, 26 Dec 2012 11:00:00 GMT' ); \n\t\t\theader( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );\n\t\t\theader( 'Cache-Control: private' ); \n\t\t\theader( 'Cache-Control: no-store, no-cache, must-revalidate' ); \n\t\t\theader( 'Cache-Control: post-check=0, pre-check=0', false ); \n\t\t\theader( 'Pragma: no-cache' ); \n\n\t\t}", "public function is_cookie_set()\n {\n }", "public function isCookieSet() {}", "function check_cookie($value){\n \n}", "function wp_validate_auth_cookie($cookie = '', $scheme = '')\n {\n }", "protected function handle_cookie()\n {\n }", "private function _loginPermitted ()\r\n {\r\n if(empty($_COOKIE[self::$_cookieCount])) {\r\n return true;\r\n }\r\n\r\n return $_COOKIE[self::$_cookieCount] < self::$_incercari;\r\n }", "private function verificar_cookie_sesion()\n\t{\n\t\t$session = \\Config\\Services::session();\n\t\t//verificar cookies\n\t\tif (isset($_COOKIE['ivafacil_admin_nick']) && isset($_COOKIE['ivafacil_admin_pa']) ) {\n\n\t\t\t$nick= $_COOKIE['ivafacil_admin_nick'];\n\t\t\t$pass=$_COOKIE['ivafacil_admin_pa'];\n\t\t\t//comparar passw hasheadas\n\t\t\t$usuarioCookie = new Admin_model();\n\t\t\t$result_pass_comparison =\n\t\t\t$usuarioCookie->where(\"nick\", $nick) \n\t\t\t->where(\"session_id\", $pass)->first();\n\n\t\t\tif (is_null($result_pass_comparison)) {\n\t\t\t\t//MOSTRAR FORM\n\n\t\t\t\treturn view(\"admin/login\");\n\t\t\t} else {\n\n\t\t\t\t//Se pidio recordar password?\n\t\t\t\tif ($result_pass_comparison->remember == \"S\") {\n\t\t\t\t\t//recuperar sesion si es valida\n\t\t\t\t\t$hoy = strtotime(date(\"Y-m-d H:i:s\"));\n\t\t\t\t\t$expir = strtotime($result_pass_comparison->session_expire);\n\t\t\t\t\tif ($hoy > $expir) return view(\"admin/login\");\n\n\t\t\t\t\t//crear sesion \n\t\t\t\t\t$newdata = [\n\t\t\t\t\t\t'nick' => $nick, \n\t\t\t\t\t\t'pass_alt' => $pass,\n\t\t\t\t\t\t'remember'=> \"S\"\n\t\t\t\t\t];\n\t\t\t\t\treturn view(\"admin/login\", $newdata);\n\t\t\t\t} else {\n\t\t\t\t\treturn view(\"admin/login\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//MOSTRAR FORM\n\t\treturn view(\"admin/login\");\n\t}", "function _tsuiseki_tracking_validate_cookie_value($cookie_data) {\n $cookie_data = (string)trim($cookie_data);\n $time = time();\n $valid = FALSE;\n if (!empty($cookie_data)) {\n $parts = _tsuiseki_tracking_extract_cookie_data($cookie_data);\n if ($parts['expiration_time'] > $time) {\n $name = (string)trim($parts['name']);\n $expiration_time = (int)$parts['expiration_time'];\n $data = (string)trim($parts['data']);\n $hmac = (string)trim($parts['hmac']);\n $key = _tsuiseki_tracking_calculate_k($name, $expiration_time, TSUISEKI_TRACKER_HMAC_KEY);\n $t_hmac = hash_hmac(TSUISEKI_TRACKER_HMAC_ALGORITHM, $name . $expiration_time . $data . session_id(), $key);\n if ($hmac === $t_hmac) {\n $valid = TRUE;\n }\n }\n }\n return $valid;\n}", "public static function viderListeCoeur(){\r\n // Si le $_POST est déclaré et qu'il est égal a true(voir le formulaire dans le menu)\r\n if(isset($_POST['viderListeCoeur']) && $_POST['viderListeCoeur'] === \"true\"){\r\n\r\n unset($_SESSION['coupDeCoeur']);\r\n setcookie(\"coupDeCoeur\", \" \" , time() -3600*24*30);\r\n header('location:mon-coup-de-coeur');\r\n } \r\n}", "public function setOnCheckCookieRequest()\n {\n $origin = $this->getOrigin();\n if ($this->originIsValid($origin)) {\n header('Access-Control-Allow-Origin: ' . $this->request->server->get('HTTP_ORIGIN'));\n header('Access-Control-Allow-Credentials: true');\n header('Content-Type: application/json');\n if($user = $this->getUserFromCookie()) {\n $token = (new JWT($this->getDomain()))->generate(array('uid' => $user['id']));\n echo '{\"status\":\"ok\",\"' . \\ModuleSSO::TOKEN_KEY . '\":\"' . $token . '\",\"email\":\"' . $user['email'] . '\"}';\n } else {\n JsonResponse::create(array(\"status\" => \"fail\", \"code\" => \"bad_cookie\"))->send();\n }\n } else {\n //probably won't reach this because of Same origin policy\n JsonResponse::create(array(\"status\" => \"fail\", \"code\" => \"http_origin_not_set\"))->send();\n }\n }", "function ts_check_if_use_control_panel_cookies()\r\n{\r\n\treturn false;\r\n}", "function checkLogined()\r\n{\r\n if ($_COOKIE['userName'] != \"\") {\r\n $mes=\"logined\";\r\n return $mes;\r\n }\r\n}", "function jsCookieSupport()\n\t{\n\t\tif ($_COOKIE['_jok_'])\n\t\t{\n\t\t\t#_jok_ = js ok\n\t\t\tsetcookie('_cen_','****');\n\t\t\tif($_COOKIE['_cen_'])\n\t\t\t{\n\t\t\t\t#_cen_ = cookies enabled\n\t\t\t\treturn \"noerror\";\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn \"cerror\";\n\t\t}\n\t\telse\n\t\t\treturn \"jerror\";\n\t}", "private function getCookie() {\n $Cookie = filter_input(INPUT_COOKIE, 'useronline', FILTER_DEFAULT);\n if (!$Cookie):\n return FALSE;\n else:\n return TRUE;\n endif;\n setcookie(\"useronline\", base64_encode(\"ccs\"), time() + 86400);\n }", "function isValidPostRequest($referrer)\n{\n switch($referrer)\n {\n case \"bitcointalk\": \n return hasValidBitcointalkData();\n }\n \n return false;\n}", "public function acceptCookies($allow = true) {\n\t\t$this->accept_cookies = ($allow == true);\n\t}", "public function checkingManipulatedCookies($cookie){\n if($this->cookieStorage->load(self::$cookiePassword) != $cookie[0] || //coockie password\n $this->loginModel->setCookieTime() != $cookie[1] || //coockie time\n $this->cookieStorage->load(self::$cookieName) != $cookie[2] || //coockie username\n $this->getUsersBrowser() != $cookie[3] ) //users browser\n {\n return $this->returnMessages('Wrong information in cookies');\n }\n return false;\n }", "function brute_force_authorized_login()\n{\n \t// Si le cookie n'existe pas \n\tif(!isset($_COOKIE['marqueur-try-connect']))\n\t{\n\t return true ;\n\t}\n\t// Si le cookie existe\n else\n {\n // Si le temps de blocage a été dépassé\n if($_COOKIE['marqueur-try-connect'] < time())\n {\n setcookie(\"marqueur-try-connect\", \"\", 0);\n }\n \n return false ;\n }\n}", "function check_cookie($p)\n{\n\tif(isset($_COOKIE['star_'.$p])) \n\t{ \n\t\treturn true;\n\t}\n\telse\n\t{\n\t\treturn false;\n\t} \n}", "function login_verify() {\nglobal $client_ip,$referer;\n$current_date = date (\"Y-m-d\");\n$current_his = date (\"H:i:s\");\n$current_time = time();\n$recheck_ip_timestamp = time()+28800;\n$recheck_ip_timestamp_hash = encrypt_decrypt(\"encrypt\",$recheck_ip_timestamp);\n$valid_timestamp = time()+cookie_valid_period;\n$valid_timestamp_hash = encrypt_decrypt (\"encrypt\",$valid_timestamp);\n$client_ip_crc32 = crc32 ($client_ip);\nif (!isset ($_GET['qq']) || !isset ($_GET['hash']) || empty ($_GET['qq']) || empty ($_GET['hash'])) {\nheader(\"Location: /login.php?action=loginform&referer=\".$referer);\nexit();\n}\n$qq = $_GET['qq'];\n$hash = $_GET['hash'];\nif (!isset ($_GET['referer']) || empty ($_GET['referer'])) {\n$referer = \"/\";\n}\n$referer = $_GET['referer'];\n// Confirm request\nif (!isset ($_POST['confirm'])) {\nprint <<<HTML\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n<title>确认您的请求</title>\n</head>\n<body>\n<h1>就要大功告成了!</h1>\n<div align=\"center\" style=\"width:100%;\">\n<p>请点击下面的按钮确认您的请求。</p>\n<form method=\"post\" charset=\"utf-8\">\n<input name=\"action\" type=\"hidden\" value=\"loginverify\" />\n<input name=\"qq\" type=\"hidden\" value=\"$qq\" />\n<input name=\"hash\" type=\"hidden\" value=\"$hash\" />\n<input name=\"referer\" type=\"hidden\" value=\"$referer\" />\n<input name=\"confirm\" type=\"hidden\" value=\"yes\" />\n<div style=\"width:500px; height:50px;\">\n<b><p><input type=\"submit\" value=\"确认,我完成身份验证啦!\" /></p></b>\n</div>\n</form>\n</div>\n</body>\n</html>\nHTML;\nexit();\n}\n\n// Checking input data\n$verify_file = \"log/verify_\".$qq.filename_postfix.\".auth\";\nif (is_file ($verify_file)) {\n$verify_content = json_decode (file_get_contents ($verify_file),true);\n} else {\nheader(\"Location: /login.php?action=loginform&referer=\".$referer);\nexit();\n}\nif ($verify_content['valid_period'] < $current_time) {\nheader(\"Location: /login.php?action=loginform&referer=\".$referer);\nexit();\n}\nif ($verify_content['client_ip'] != $client_ip) {\nheader(\"Location: /login.php?action=loginform&referer=\".$referer);\nexit();\n}\nif ($verify_content['hash'] != $hash) {\nheader(\"Location: /login.php?action=loginform&referer=\".$referer);\nexit();\n}\n\n// Issue access cookie\n// Cookie content array\n$auth_cookie_content = [\n\"recheck_ip_timestamp\" => $recheck_ip_timestamp,\n\"recheck_ip_timestamp_hash\" => $recheck_ip_timestamp_hash,\n\"valid_timestamp\" => $current_time+cookie_valid_period,\n\"valid_timestamp_hash\" => $valid_timestamp_hash,\n\"client_ip_hash\" => encrypt_decrypt (\"encrypt\", $client_ip_crc32)\n];\n$auth_cookie_content = json_encode ($auth_cookie_content);\n\n// Issue the cookie\nfile_put_contents ($_SERVER['DOCUMENT_ROOT'].\"/log/login-\".$current_date.filename_postfix.\".log\",$current_his.\", \".$qq.\", \".$client_ip.\"\\r\\n\",FILE_APPEND);\nsetcookie (\"viyf365_auth\", $auth_cookie_content, time()+cookie_valid_period);\nunlink ($verify_file);\nheader(\"Location: \".$referer);\nexit();\n}", "function _checkCookies() {\n if(isset($_COOKIE)) {\n if(isset($_COOKIE['user'])) {\n $_SESSION['is_login'] = true;\n $_SESSION['userid'] = $_COOKIE['user'];\n }\n }\n }", "function checkCookie($remember){\t\n\tif(isset($_COOKIE['n']) && isset($_COOKIE['e'])){\n\t\t$cookNonce = $_COOKIE['n'];\n\t\t$userEmail = $_COOKIE['e'];\n\t\t \n\t\t//connect to database to check if nonce exists\n\t\tglobal $mysqli;\n\t\t$q = \"SELECT `Nonce` FROM `Nonce_MHT` WHERE `Email` = '$userEmail'\";\n\t\t$result = $mysqli->query($q);\n\t\t \n\t\t//if nonce matches, return 1\n\t\tif ($result->num_rows == 1){ \t\t \n\t\t\t$row = $result->fetch_assoc();\n\t\t\t \n\t\t\tif ($cookNonce == $row['Nonce']){\n\t\t\t\t//Regenerate new cookie\n\t\t\t\t//createCookie($userEmail);\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Invalid nonce, delete cookies\n\t\tdate_default_timezone_set('America/Toronto');\n\t\tsetcookie(\"e\", \"\", time()-60*60*24*100, \"/\");\n\t\tsetcookie(\"n\", \"\", time()-60*60*24*100, \"/\");\n\t\treturn 0;\n\t}\n\telse\n\treturn 0;\n}", "function validaSession(){\n\tif(!isset($_COOKIE['id'])){\n\t\t//@header(\"location:login\");\n\t\treturn false;\n\t}else{\n\t\t\n\t\treturn true;\n\t}\n}", "function isCookieSet (){\n if (empty ($_COOKIE['id'])){\n header (\"location: error.php\");\n }\n}", "public function acceptCookies(){\n\t\tsetcookie('isUsingCookies', true, time()+60*60*24*365);\n\t\treturn redirect()->route('home');\n\t}", "function checkCookie( $cookie )\n {\n $query = $this->db->get_where( $this->_tablename, 'cookie = \\'' . $cookie . '\\'');\n $result = $query->result();\n \n if( count( $result ) <= 0 ) return false;\n \n foreach( $result as $row )\n {\n $this->setSessoin( $row );\n }\n \n return true;\n }", "private function tasteTheCookie()\n {\n helper(\"auth\");\n\n if (isset($_COOKIE[\"token\"]))\n {\n $tokenCookie = $_COOKIE[\"token\"];\n $token = isValid($tokenCookie);\n \n if ($token != null)\n {\n if (isAuthenticated(\"Cinema\"))\n $this->userName = $token->name;\n else if (isAuthenticated(\"RUser\"))\n $this->userName = $token->firstName;\n else\n {\n header(\"Location: /HomeController\");\n exit();\n }\n $this->userMail = $token->email;\n $this->userImage = ((new UserModel())->find($token->email))->image;\n }\n else\n {\n header(\"Location: /HomeController\");\n exit();\n }\n }\n }", "public function valid() \n {\n return isset($_COOKIE[$this->key()]);\n }", "function require_cookie(){\r\n if(isset($_GET['preview'])){\r\n setcookie('preview', 'yes', time()+36000, '/');\r\n header('Location: /');\r\n exit;\r\n }\r\n \r\n if(ENVIRONMENT == 'preview' && (!isset($_COOKIE['preview']) || $_COOKIE['preview'] != \"yes\")){\r\n wp_redirect( 'http://www.google.com', 302 );\r\n exit;\r\n }\r\n}", "public function kapee_cookie_setted() {\n\t\treturn isset( $_COOKIE[self::$cookie['name']] );\n\t}", "function cookiesEnabled(){\r\n\t\t//localhost won't work -> setcookie(\"test\", \"1\", 0, \"/\", FALSE);\r\n\t\tsetcookie(\"test\", \"1\");\r\n\t\tif (!isset($_REQUEST[\"cookies\"])) {\r\n\t\t\t\theader(\"Location: \". $_SERVER['PHP_SELF'].\"?cookies=1\".$_SESSION['params']);\r\n \t\t } \t\t \r\n \t\t if (!isset($_COOKIE[\"test\"]) || (isset($_COOKIE[\"test\"]) && $_COOKIE[\"test\"] != \"1\"))\r\n \t\t\tdie(\"<h1>It seems that your browser doesn't accept cookies!</h1> <h3>Unfortunately we need cookies to provide you a good service.\r\n \t\t\tIn order to proceed on our website: enable them and reload the page</h3>\");\r\n \r\n\t}", "private function validateCookie($requestor, $nid = NULL) {\n if ($nid && !$this->checkQueryRange($nid, $this->date->get(\"timestamp\"))) {\n // Date range is irrelevant to the node.\n $this->logger->addRow(\"Date is out of display range for node $nid, skipping.\", WATCHDOG_INFO, $nid, \"media_seller\", $requestor->businessEntityId);\n unset($this->nodes[$nid]);\n unset($this->requestors[$nid]);\n return;\n }\n // Get a cookie if already exists.\n $cookie_id = serialize($requestor->getCookieCredentials());\n $cookie = empty($this->cookies[$cookie_id]) ? NULL : $this->cookies[$cookie_id];\n\n // Set the saved cookie to the requestor (or NULL if one doesn't exist).\n $requestor->setCookie($cookie);\n // Login / acquire relevant cookie.\n $this->cookies[$cookie_id] = $requestor->login();\n }", "function validate_code()\n{\n if(isset($_COOKIE['temp_access_code'])){\n\n if(!isset($_GET['email']) && !isset($_GET['code'])){\n redirect(\"index.php\");\n\n }elseif (empty($_GET['email']) || empty($_GET['code'])){\n redirect(\"index.php\");\n\n }else{\n if(isset($_POST['code'])){\n $email=clean($_GET['email']);\n $validation_code=clean($_POST['code']);\n $sql=\"SELECT id FROM users WHERE validation_code='\".escape($validation_code).\"' AND email='\".escape($email).\"'\";\n $result=query($sql);\n if(row_count($result)==1){\n setcookie('temp_access_code',$validation_code,time()+900);\n redirect(\"reset.php?email=$email&code=$validation_code\");\n }else{\n echo validation_errors(\"Sorry wrong validation code\");\n }\n\n }\n\n }\n\n\n }else{\n\n set_message(\"<p class='bg-danger text-center'>Sorry your validation cookie was expired</p>\");\n redirect(\"recover.php\");\n }\n}", "function block_atu()\n{\n\tglobal $mybb,$pid;\n\tif(isset($mybb->input['ajax']))\n\t{\n\t\tmy_setcookie(\"ignore_\".$pid,TIME_NOW+6);\n\t}\n}", "function checkUserLogined(){\n if(@$_SESSION['userId']==''&&$_COOKIE['userId']==''){\n messageTips(\"请先登录\",\"login.php\");\n exit;\n }\n}", "function rest_cookie_collect_status() {\n\tglobal $wp_rest_auth_cookie;\n\n\t$status_type = current_action();\n\n\tif ( 'auth_cookie_valid' !== $status_type ) {\n\t\t$wp_rest_auth_cookie = substr( $status_type, 12 );\n\t\treturn;\n\t}\n\n\t$wp_rest_auth_cookie = true;\n}", "function check_auth_cookie($appword,$cookexp=0,$cookiename=\"login\",$username=\"\"){\n//debug_string(\"check_auth_cookie()\");\n//debug_string(\"appword\",$appword);\n//debug_string(\"cookexp\",$cookexp);\n//debug_string(\"cookiename\",$cookiename);\n//debug_string(\"username\",$username);\n\n\t$c_data = get_cook_data($cookiename);// get the cookie data\n//debug_array(\"c_data\",$c_data);\n if (!isset($c_data)){// if no data return false\n return false;\n }\n//parse out the data in the cookie\n\t$c_username = $c_data['name'];// get the username\n//debug_string(\"c_username\",$c_username);\n//debug_string(\"mark1\");\n if (\"\"==$username){$username=$c_username;}//use cookie username if none given\n//debug_string(\"mark2\");\n\t$c_time = $c_data['time'];\n\t$c_hash = $c_data['hash'];\n\t$c_expire = $c_data ['expire'];\n//check expiration time; delete cookie and return false if expired\n//debug_string(\"c_time\",$c_time);\n//debug_string(\"c_hash\",$c_hash);\n//debug_string(\"c_expire\",$c_expire);\n//debug_string(\"mark3\");\n\tif (0!=$c_expire && $c_expire<time()){\n//debug_string(\"mark4\");\n\t\tdelete_cookie($cookiename);\n\t\treturn false;\n\t}\n//calc hash\n//debug_string(\"mark5\");\n $hash = md5($appword.$username.$c_time.$cookexp);// calculate hash \n//debug_string(\"hash\",$hash);\n//debug_string(\"c_hash\",$c_hash);\n//debug_string(\"c_username\",$c_username);\n//debug_string(\"username\",$username);\n// check hash\n//debug_string(\"mark6\");\n if(strcmp($c_username,$username)==0 && strcmp($hash,$c_hash)==0 ){\n//debug_string(\"mark7 true\");\n\n return true;\n }else{\n//debug_string(\"mark8 false\");\n return false;\n }\n//debug_string(\"mark9\");\n}", "public function is_premium()\n {\n $cookie_manager = new CookieManager();\n if ($cookie_manager->validate_cookie($this->post_id)) {\n return true;\n } else {\n return false;\n }\n }", "public static function authenticateByCookie(): void\n {\n $request = RequestFactory::create();\n $token = $request->getCookieParam('jwToken');\n if ($token === null\n || !self::validate($token)\n ) {\n header('Not authorized', true, 403);\n exit;\n }\n }", "public function isRefreshTimeBasedCookie() {}", "public function isRefreshTimeBasedCookie() {}", "function checkLoginPageAuth()\n{\n\tif(isset($_COOKIE['csp1_jag13047_cookie3']))\n\t{\n\t\theader('Location: ../html/user.html.php');\n\t}\n\telse\n\t{\n\t\treturn true;\n\t}\n}", "private static function Detect() {\n\t\n\t\t#print_r($_COOKIE); core_halt();\n\t\t\n\t\t// check to see if a cookie is set\n\t\t$cookie = isset($_COOKIE[self::$variable]) ? strtolower($_COOKIE[self::$variable]) : false;\n\t\tif($cookie !== false && strlen($cookie) == self::$KeyLen && ctype_alnum($cookie)) {\n\t\t\tself::$sid = $cookie;\n\t\t} else {\n\t\t\tself::$sid = FALSE;\n\t\t}\n\t}", "private function _doValidateRequest(){\n\t\t/*Variable initialization */\n\t\t$strCookiesCode\t= '';\n\n\t\t/* Checking is valid cookie exists */\n\t\tif(isset($_COOKIE['_xAyBzCwD'])){\n\t\t\t/* Getting the valid logger code */\n\t\t\t$strCookiesCode\t= $_COOKIE['_xAyBzCwD'];\n\t\t}\n\t\t\n\t\t/* If logger code is not found the do needful */\n\t\tif($strCookiesCode == ''){\n\t\t\t/* Destroy the all cookies */\n\t\t\t$this->doDistryLoginCookie();\n\n\t\t\t/* redirecting to login */\n\t\t\tredirect(SITE_URL.'login');\n\t\t}else{\n\t\t\t/* getting logger details */\n\t\t\t$strLoggerArr \t= $this->_getLoggerDetails($strCookiesCode);\n\t\t\t\n\t\t\t/* Logger details not found then do needful */\n\t\t\tif(empty($strLoggerArr)){\n\t\t\t\t\t/* Destroy the all cookies */\n\t\t\t\t\t$this->doDistryLoginCookie();\n\t\t\t}\n\t\t\t/* Processing the logger Object */\n\t\t\t$this->_doProcessLogger($strLoggerArr);\n\t\t\t\n\t\t\t/* Loading company custom configuration */\n\t\t\t$this->_setCompanyConfig();\n\t\t}\n\t}", "public function set_cookie()\n {\n }", "public function check()\n {\n // TODO : Verif csrf\n // TODO : Oublie de mot de passe & mail divers\n }", "private function handleCookie() {\n\t\t$this->message = $this->loginView->getCookieMessage();\n\t\t$this->loginObserver->generateCookie();\n\t}", "function cinotif_verifier_cle($cle) {\n\t$form = 'cinotif';\n\t$time = time();\n\t$time_old = date('Y-m-d-H',$time-3600);\n\t$time = date('Y-m-d-H',$time);\n\n\tif (isset($GLOBALS['visiteur_session']['id_auteur']) AND intval($GLOBALS['visiteur_session']['id_auteur']))\n\t\t$qui = \":\".$GLOBALS['visiteur_session']['id_auteur'].\":\".$GLOBALS['visiteur_session']['nom'];\n\telse {\n\t\tinclude_spip('inc/session');\n\t\t$qui = cinotif_hash_env();\n\t}\n\t\n\t$ok = (verifier_cle_action(\"cle$form$time$qui\",$cle)\n\t\t\tor verifier_cle_action(\"cle$form$time_old$qui\",$cle));\n\n\treturn $ok;\n}", "function verifyCookies()\n\t{\n\t\tif (isset($_COOKIE['cookieUserName']))\n\t\t{\n\t\t\techo json_encode(array('cookieUserName' => $_COOKIE['cookieUserName']));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t# Cookie not set yet\n\t\t die(json_encode(errors(417)));\n\t\t}\n\t}", "public function hasQueueingCookie(): bool;", "public function cookieIsset() {\n\t\tif(isset($_COOKIE[$this->cookieName])) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public static function isAllowedCookie( string $cookieName, WebRequest $request, User $user ): bool {\n\t\t$config = self::getConfig();\n\t\t$prefix = MediaWikiServices::getInstance()->getMainConfig()->get( 'CookiePrefix' );\n\t\t$name = str_replace( $prefix, '', $cookieName );\n\n\t\t$preferences = [\n\t\t\t'required' => true,\n\t\t\t'preference' => false,\n\t\t\t'statistic' => false,\n\t\t\t'marketing' => false,\n\t\t];\n\n\t\tif ( $user->isLoggedIn() ) {\n\t\t\t$options = MediaWikiServices::getInstance()->getUserOptionsManager()->getOptions( $user );\n\n\t\t\t$preferences['preference'] = $options['cookiewarning_cookies_preference'] ?? false;\n\t\t\t$preferences['statistic'] = $options['cookiewarning_cookies_statistic'] ?? false;\n\t\t\t$preferences['marketing'] = $options['cookiewarning_cookies_marketing'] ?? false;\n\t\t} elseif ( $request->getCookie( 'cookiewarning_preferences', $prefix ) !== null ) {\n\t\t\t$decoded = json_decode( $request->getCookie( 'cookiewarning_preferences', $prefix ), true );\n\t\t\tif ( $decoded !== null ) {\n\t\t\t\t$preferences['preference'] = $decoded['preference'] ?? false;\n\t\t\t\t$preferences['statistic'] = $decoded['statistic'] ?? false;\n\t\t\t\t$preferences['marketing'] = $decoded['marketing'] ?? false;\n\t\t\t}\n\t\t}\n\n\t\tif ( in_array( $name, $config->get( 'CookieWarningRequiredCookies' ), true ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif ( $preferences['preference'] === true && in_array( $name, $config->get( 'CookieWarningPreferenceCookies' ), true ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif ( $preferences['statistic'] === true && in_array( $name, $config->get( 'CookieWarningStatisticCookies' ), true ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif ( $preferences['marketing'] === true && in_array( $name, $config->get( 'CookieWarningMarketingCookies' ), true ) ) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function renderCookieConsentBanner() : bool\n {\n\t$settings = CookieConsentBanner::$plugin->getSettings();\n\t\n\tCraft::$app->getView()->registerAssetBundle(CookieConsentBannerAsset::class);\n $script = '\n if ((navigator.doNotTrack != \"1\" && '. ($settings->honour_do_not_track_header ? $settings->honour_do_not_track_header : 0) .') || !'. ($settings->honour_do_not_track_header ? $settings->honour_do_not_track_header : 0) .') {\n window.addEventListener(\"load\", function(){\n window.cookieconsent.initialise({\n \"palette\": {\n \"popup\": {\n \"background\": \"'. (substr($settings->palette_banner, 0, 1) != \"#\" ? \"#\" : \"\") . $settings->palette_banner .'\",\n \"text\": \"'. (substr($settings->palette_banner_text, 0, 1) != \"#\" ? \"#\" : \"\") . $settings->palette_banner_text .'\",\n \"link\": \"'. (substr($settings->palette_link, 0, 1) != \"#\" ? \"#\" : \"\") . $settings->palette_link .'\"\n },\n \"button\": {\n \"background\": \"'. $settings->layout .'\" === \"wire\" ? \"transparent\" : \"'. (substr($settings->palette_button, 0, 1) != \"#\" ? \"#\" : \"\") . $settings->palette_button .'\",\n \"text\": \"'. $settings->layout .'\" === \"wire\" ? \"'. (substr($settings->palette_button, 0, 1) != \"#\" ? \"#\" : \"\") . $settings->palette_button .'\" : \"'. (substr($settings->palette_button_text, 0, 1) != \"#\" ? \"#\" : \"\") . $settings->palette_button_text .'\",\n \"border\": \"'. $settings->layout .'\" === \"wire\" ? \"'. (substr($settings->palette_button, 0, 1) != \"#\" ? \"#\" : \"\") . $settings->palette_button .'\" : undefined\n },\n \t\t \"highlight\": {\n \t\t\t \"background\": \"'. $settings->layout .'\" === \"wire\" ? \"transparent\" : \"'. (substr($settings->palette_left_button_bg, 0, 1) != \"#\" ? \"#\" : \"\") . $settings->palette_left_button_bg .'\",\n \"text\": \"'. $settings->layout .'\" === \"wire\" ? \"'. (substr($settings->palette_left_button_bg, 0, 1) != \"#\" ? \"#\" : \"\") . $settings->palette_left_button_bg .'\" : \"'. (substr($settings->palette_left_button_text, 0, 1) != \"#\" ? \"#\" : \"\") . $settings->palette_left_button_text .'\",\n \"border\": \"'. $settings->layout .'\" === \"wire\" ? \"'. (substr($settings->palette_left_button_bg, 0, 1) != \"#\" ? \"#\" : \"\") . $settings->palette_left_button_bg .'\" : undefined\n \t\t\t }\n },\n \"position\": \"'. $settings->position .'\" === \"toppush\" ? \"top\" : \"'. $settings->position .'\",\n \"static\": \"'. $settings->position .'\" === \"toppush\",\n \"theme\": \"'. $settings->layout .'\",\n \"type\": \"'. $settings->type .'\",\n \"content\": {\n \"message\": \"'. Craft::t('cookie-consent-banner', str_replace(array(\"\\n\", \"\\r\"), \"\", nl2br($settings->message))) .'&nbsp;\",\n \"dismiss\": \"'. Craft::t('cookie-consent-banner', $settings->dismiss) .'\",\n \"link\": \"'. Craft::t('cookie-consent-banner', $settings->learn) .'\",\n \"href\": \"'. Craft::t('cookie-consent-banner', $settings->learn_more_link) .'\",\n \t \"allow\":\"'. Craft::t('cookie-consent-banner', $settings->allow) .'\",\n \t \"deny\":\"'. Craft::t('cookie-consent-banner', $settings->decline) .'\",\n \t \"target\":\"'. $settings->target .'\"\n },\n \"revokable\":'. ($settings->revokable ? $settings->revokable : 0) .' === 1 ? true : false,\n \"dismissOnScroll\":'. $settings->dismiss_on_scroll .' > 0 ? '. $settings->dismiss_on_scroll .' : false,\n \"dismissOnTimeout\":'. $settings->dismiss_on_timeout .' > 0 ? ('. $settings->dismiss_on_timeout .' * 1000) : false,\n \"cookie\": {\n \t \"expiryDays\":'. $settings->expiry_days .' !== 0 ? '. $settings->expiry_days .' : 365,\n \t \"secure\":'. ($settings->secure_only ? $settings->secure_only : 0) . ' === 1 ? true : false\n \t },\n onInitialise: function (status) {\n var type = this.options.type;\n var didConsent = this.hasConsented();\n if (type == \"opt-in\" && didConsent) {\n // enable cookies\n if (typeof optInCookiesConsented === \"function\") {\n optInCookiesConsented();\n console.log(\"Opt in cookies consented\");\n } else {\n \t console.log(\"Opt in function not defined!\");\n \t }\n }\n if (type == \"opt-out\" && !didConsent) {\n // disable cookies\n if (typeof optOutCookiesNotConsented === \"function\") {\n optOutCookiesNotConsented();\n console.log(\"Opt out cookies not consented\");\n } else {\n \t console.log(\"Opt out function not defined!\");\n \t }\n }\n },\n onStatusChange: function(status, chosenBefore) {\n var type = this.options.type;\n var didConsent = this.hasConsented();\n if (type == \"opt-in\" && didConsent) {\n // enable cookies\n if (typeof optInCookiesConsented === \"function\") {\n optInCookiesConsented();\n console.log(\"Opt in cookies consented\");\n } else {\n \t console.log(\"Opt in function not defined!\");\n \t }\n }\n if (type == \"opt-out\" && !didConsent) {\n // disable cookies\n if (typeof optOutCookiesNotConsented === \"function\") {\n optOutCookiesNotConsented();\n console.log(\"Opt out cookies not consented\");\n } else {\n \t console.log(\"Opt out function not defined!\");\n \t }\n }\n },\n onRevokeChoice: function() {\n var type = this.options.type;\n if (type == \"opt-in\") {\n // disable cookies\n if (typeof optInCookiesRevoked === \"function\") {\n optInCookiesRevoked();\n console.log(\"Opt in cookies revoked\");\n } else {\n \t console.log(\"Opt in revoked function not defined!\");\n \t }\n }\n if (type == \"opt-out\") {\n // enable cookies\n if (typeof optOutCookiesRevoked === \"function\") {\n optOutCookiesRevoked();\n console.log(\"Opt out cookies revoked\");\n } else {\n \t console.log(\"Opt out revoked function not defined!\");\n \t }\n }\n }\n });\n });\n } else if ('. ($settings->honour_do_not_track_header ? $settings->honour_do_not_track_header : 0) .') {\n\t // disable cookies\n if (typeof optOutCookiesNotConsented === \"function\") {\n optOutCookiesNotConsented();\n console.log(\"Opt out cookies not consented\");\n } else {\n \t console.log(\"Opt out function not defined!\");\n \t }\n\t }\n ';\n Craft::$app->getView()->registerScript($script, 1, array(), \"cookie-consent-banner\");\n \n return true;\n }", "function validToken($name, $referer, $time)\n{\n\tif(isset($_SESSION[$name.'Token']) && isset($_SESSION[$name.'Token_time']) && isset($_POST['token']))\n\t\tif($_SESSION[$name.'Token']===$_POST['token'])\n\t\t\tif($_SESSION[$name.'Token_time']>=(time()-$time))\n\t\t\t\tif($_SERVER['HTTP_REFERER']==$referer)\n\t\t\t\t\treturn true;\n\treturn false;\n}", "public static function checkAuthCookie()\n {\n foreach (self::get() as $value) {\n if ($value === null) {\n return false;\n }\n }\n\n return true;\n }", "function validate_auth_cookie( $user_id, $cookie ) {\n\t\tif ( wp_validate_auth_cookie( $cookie, 'logged_in' ) == $user_id ) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "private function checkCookie()\n\t\t{\n\t\t\tif(!empty($_COOKIE['auth_username']) && !empty($_COOKIE['auth_password']))\n\t\t\t\treturn $this->check($_COOKIE['auth_username'], $_COOKIE['auth_password']);\n\t\t}", "function _verify_cookie()\n\t{\n\t\tif((array_key_exists('login_attempts', $_COOKIE)) && ($_COOKIE['login_attempts'] >= 5))\n\t\t{\n\t\t\t$username = $this->CI->session->userdata('username');\n\t\t\t$userdata = $this->CI->db->query(\"SELECT * FROM `users` WHERE `username` = '$username'\");\n\t\t\t\n\t\t\t$result = $userdata->row();\n\n\t\t\t$identifier = $result->username . $result->token;\n\t\t\t$identifier = $this->_salt($identifier);\n\t\t\t\n\t\t\tif($identifier !== $_COOKIE['logged_in'])\n\t\t\t{\n\t\t\t\t$this->CI->session->sess_destroy();\n\t\t\t\t\n\t\t\t\tshow_error($this->CI->lang->line('logout_perms_error'));\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->_generate();\n\t\t}\n\t}", "function csrfVerify(){\n\tstatic $valid=NULL;\n\tif(is_null($valid)){\n\t\tif($_SESSION['ver'] && hashEquals($_POST['ver'],$_SESSION['ver']))$valid=true;\n\t\tunset($_POST['ver'],$_SESSION['ver']);\n\t}\n\treturn $valid;\n}", "public function enableCookies() {}", "public static function checkVisitor() {\n $request = app('request');\n $showMessage = TRUE;\n if (isset($_COOKIE['alchemy_visited']) && $_COOKIE['alchemy_visited'] != null)\n {\n $showMessage = FALSE;\n } else {\n self::updateVisitorCookie();\n }\n return $showMessage;\n \n }", "public function authorize()\n { \n //放入購物車時驗證權限 無則發送403\n $v = Auth::user()->verify;\n if(!$v){\n return false;\n }\n return true;\n \n }", "function checkFlood($module, $time)\n{\n // ha letezik a cookie\n if (!empty($_COOKIE['iShark_Flood'][$module])) {\n // ha a cookie letrehozasa es a beallitott ido kozott meg nem telt el a megfelelo ido, akkor nem lehet irni\n if ($_COOKIE['iShark_Flood'][$module] + $time > time()) {\n return false;\n } else {\n return true;\n }\n\t} else {\n\t return true;\n\t}\n}", "private function cookieIsValid($hash) {\n //if hash in db\n $sql = \"SELECT username, expiredate, ip FROM \".PREFIX.\"sessions WHERE hash=:hash\";\n $cookie = $this->db->select($sql, array(\":hash\" => $hash));\n $count = count($cookie);\n if ($count == 0) {\n //hash did not exists deleting cookie\n Cookie::destroy(\"auth_cookie\", $hash);\n //Cookie::destroy(\"auth_cookie\", $hash, '');\n //setcookie(\"auth_cookie\", $hash, time() - 3600, \"/\");\n $this->logActivity('UNKNOWN', \"AUTH_CHECKCOOKIE\", \"User cookie cookie deleted - Hash ({$hash}) didn't exist\");\n return false;\n } else {\n $username = $cookie[0]->username;\n $db_expiredate = $cookie[0]->expiredate;\n $db_ip = $cookie[0]->ip;\n if ($_SERVER['REMOTE_ADDR'] != $db_ip) {\n //hash exists but ip is changed, delete cookie and hash\n $this->db->delete(PREFIX.'sessions', array('username' => $username));\n Cookie::destroy(\"auth_cookie\", $hash);\n //setcookie(\"auth_cookie\", $hash, time() - 3600, \"/\");\n $this->logActivity($username, \"AUTH_CHECKCOOKIE\", \"User cookie cookie deleted - IP Different ( DB : {$db_ip} / Current : \" . $_SERVER['REMOTE_ADDR'] . \" )\");\n return false;\n } else {\n $expiredate = strtotime($db_expiredate);\n $currentdate = strtotime(date(\"Y-m-d H:i:s\"));\n if ($currentdate > $expiredate) {\n //cookie has expired delete cookie and cookies\n $this->db->delete(PREFIX.'sessions', array('username' => $username));\n Cookie::destroy(\"auth_cookie\", $hash);\n //setcookie(\"auth_cookie\", $hash, time() - 3600, \"/\");\n $this->logActivity($username, \"AUTH_CHECKCOOKIE\", \"User cookie cookie deleted - Cookie expired ( Expire date : {$db_expiredate} )\");\n } else {\n //all ok\n return true;\n }\n }\n }\n }", "function login_check() {\n\t$exp_time = $_SESSION[\"expires_by\"];\n\t\n\t//jika waktu sistem lebih kecil dari nilai waktu session\n\tif (time() < $exp_time) {\n\t\t//panggil fungsi dan tambah waktu session\n\t\tlogin_validate();\n\t\treturn true; \n\t}else{\n\t\t//jika waktu session lebih kecil dari waktu session atau lewat batas\n\t\t//maka akan dilakukan unset session\n\t\tunset($_SESSION[\"expires_by\"]);\n\t\treturn false; \n\t}\n}", "public function isSetSessionCookie() {}", "public function isSetSessionCookie() {}", "function sanitize_comment_cookies()\n {\n }", "public function AcceptChallenge($request)\n {\n $this->C_YesOrNo = 1;\n\n $this->save();\n\n return 'true' ;\n }", "function record_consent( $request ) {\n global $wpdb;\n\n // Get request data.\n $data = json_decode( $request->get_body() );\n\n // Get database table name.\n $table_name = get_databse_table_name();\n\n // Get cookie consent settings.\n $settings = get_settings();\n\n // Serialize the cookie levels for storage.\n $cookie_value = maybe_serialize( $data->level );\n\n // Try if the user consent for this revision and levels has been already recorder.\n $exists = $wpdb->get_row( \"SELECT id FROM {$table_name} WHERE visitor_id = '{$data->visitorid}' AND cookie_revision = '{$data->revision}' AND cookie_value = '{$cookie_value}'\" );\n\n // Bail if the consent has been already recorder.\n if ( null !== $exists ) {\n return;\n }\n\n // Record the consent.\n $inserted = $wpdb->insert(\n $table_name,\n [\n 'visitor_id' => $data->visitorid,\n 'cookie_revision' => $data->revision,\n 'cookie_value' => $cookie_value,\n 'timestamp' => wp_date( 'Y-m-d H:i:s' ),\n 'expiry' => wp_date( 'Y-m-d H:i:s', strtotime( \"+{$settings['cookie_expiration']} days\" ) ),\n ],\n [\n '%s',\n '%s',\n '%s',\n '%s',\n '%s',\n ]\n );\n\n if ( ! $inserted ) {\n return false;\n }\n\n return true;\n}", "function login_validate() {\n\t//ukuran waktu dalam detik\n\t$timer= 3600;\n\t//untuk menambah masa validasi\n\t$_SESSION[\"expires_by\"] = time() + $timer;\n}", "public function validateExpirationTime()\n\t\t{\n\t\t\t// Variabel som ska innehålla tiden från filen.\n\t\t\t$correctTime = \"\";\n\t\t\t\n\t\t\t// Öppnar filen, läser igenom den och sparar värdet i $correctTime, för att sedan stänga filen.\n\t\t\t$file = fopen('cookieExpirationTime.txt','r');\n\t\t\twhile ($line = fgets($file))\n\t\t\t{\n\t\t\t $correctTime = $line;\n\t\t\t}\n\t\t\tfclose($file);\n\t\t\t\n\t\t\t// Om tiden från filen är större än just precis nu...\n\t\t\tif(intval($correctTime) > time())\n\t\t\t{\n\t\t\t\t// Returnera true, kakan är fortfarande giltig.\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Annars kalla på felmeddelandet, kakans levnadstid är över.\n\t\t\t\t$this->cookieException();\n\t\t\t}\n\t\t}", "public function format_for_set_cookie()\n {\n }", "function rest_cookie_collect_status()\n {\n }", "function checkCookie(){\n global $cookie;\n\n // Check database to see if a user exists with this cookie\n if (getSingleValue(\"SELECT COUNT(`id`) FROM `private_users` WHERE `cookie` ='\" . $cookie . \"' LIMIT 0 , 1\") != 1){\n // Some user has this cookie, it is valid\n return false;\n }else{\n // Nobody has this cookie, therefore it's invalid\n return true;\n }\n}", "public function testGetCookie()\n {\n $this->assertEquals('cookie value', $this->_req->getCookie('my_test_cookie'));\n }", "function\tctrl_cookie($db, $id)\n{\n\t$req = $bdd->prepare(\"SELECT COUNT(*) AS nb FROM user WHERE ID = :ID\");\n\t$req->execute(array(\"ID\" => $id));\n\n\t$donne = $req->fetch();\n\n\tif ($donne['nb'] == 1)\n\t\treturn true;\n\telse\n\t\treturn false;\n}", "function checkToken() {\n\t\t\t// Split the token up again to make sure the first 40 chars are the same (TOKEN)\n\t\t\t$splitToken = substr($this->tokenFromCookie, 0, 40);\n\t\t\t\n\t\t\t// Split the token up again to make sure the second 40 chars are the same (ZIPPED)\n\t\t\t$splitZipped = substr($this->tokenFromCookie, 40, 40);\n\t\t\t\n\t\t\t// Unzip the second 40 chars\n\t\t\t$result = $this->unzip($splitZipped);\n\n\t\t\t// Check if the sha of the zipped portion matches the token.\n\t\t\t// If so, no one has messed with the token\n\t\t\tif(strcmp($splitToken, sha1($splitZipped) == 0)) {\n\t\t\t\t// Grab all data from unzip\n\t\t\t\t$ip = base_convert($result[0], IP_ADDRESS, 10);\n\t\t\t\t$time = base_convert($result[1], REQUEST_TIME, 10);\n\t\t\t\t$user = $result[2];\n\t\t\t\t$random = $result[3];\n\t\t\t\t$expires = substr($this->tokenFromCookie, 80, strlen($this->tokenFromCookie));\n\n\t\t\t\t// Check if token is expired after one hour\n\t\t\t\tif(time() - $expires <= 3600) {\n\t\t\t\t\tif(strpos($_SERVER['REMOTE_ADDR'], \":\") !== false) {\n\t\t\t\t\t\t$userIpAddImp = implode(explode(\":\", $_SERVER['REMOTE_ADDR']));\n\t\t\t\t\t}\n\t\t\t\t\telseif(strpos($_SERVER['REMOTE_ADDR'], \".\") !== false) {\n\t\t\t\t\t\t$userIpAddImp = implode(explode(\".\", $_SERVER['REMOTE_ADDR']));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Check if userIp is the same as when s/he originally logged in\n\t\t\t\t\t$validity = (strcmp($ip, $userIpAddImp) == 0) ? true : false;\t\t\t\t\t\n\t\t\t\t} \n\t\t\t\telse {\n\t\t\t\t\t$validity = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$validity = false;\n\t\t\t}\n\t\t\t\n\t\t\treturn $validity;\n\t\t}", "function wpgplus_set_Cookie($my_cookie) {\n\t// cookies which have an expiration date and it is past should not be set\n\tif((!empty($my_cookie->expires)) && ($my_cookie->expires < time())) {\n\t\t//wpgplus_debug(\"\\nNot setting expired cookie for \" . $my_cookie->name . \"\\n\");\n\t\treturn false;\n\t}\n\tif(get_transient('wpgplus_cookie_' . $my_cookie->name)) {\n\t\t//wpgplus_debug(\"\\nUpdating cookie for \" . $my_cookie->name . \"\\n\");\n\t} else {\n\t\t//wpgplus_debug(\"\\nSetting cookie for \" . $my_cookie->name . \"\\n\");\n\t}\n\tset_transient('wpgplus_cookie_'. $my_cookie->name,$my_cookie,60*60);\n}", "public function authorize()//AQUI QUE VALIDA USUÀRIO\r\n {\r\n return true;\r\n }", "public static function checkCommentCookies()\n {\n if( isset( $_COOKIE['comment_submission_parent'] ) ) {\n if ($values = explode(',', $_COOKIE['comment_submission_parent'])) {\n $commentParentId = (int) $values[0];\n $flashMessageKey = $values[1] == 1 ? 'success' : 'pending';\n $flashMessage = isset(self::$flashMessages[$flashMessageKey]) ? self::$flashMessages[$flashMessageKey] : null;\n\n setcookie('comment_submission_parent', null, -1, '/');\n unset($_COOKIE['comment_submission_parent']);\n add_action('comment_form_before_id', function($commentId) use ($commentParentId, $flashMessage, $flashMessageKey) {\n if ($commentId == $commentParentId && $flashMessage) {\n echo \"<div id='flash-message' class='\" . $flashMessageKey . \"'><p>\" . __($flashMessage, \"theme\") . \"</p></div>\";\n }\n });\n }\n }\n }", "public function authorize()\n {\n return true; //CUANDO GENERAMOS UN request TENEMOS QUE ESPECIFICAR QUE ESTA AUTORIZADFO PONIENDO TRUE\n }", "function confirm_order($order_id, $money, $bank, $time)\n{\n\n // Edit here if order_id is not order_id in ATOMS server\n\n if (!isset($_COOKIE['attempt']))\n {\n setcookie(\"attempt\", 0, time()+1000 );\n $_COOKIE['attempt'] = 0;\n }\n if(isset($_COOKIE['attempt']) and $_COOKIE['attempt'] > 5)\n {\n echo \"maximun attempt reach.\";\n return false;\n }\n\n global $web_token;\n $response = file_get_contents(\"http://www.diyby.me/android-connect/confirm_order.php?token=\".$web_token.\"&order_id=\".$order_id.\"&money=\".$money.\"&bank=\".$bank.\"&time=\".$time);\n $response = json_decode($response, true);\n if($response['success'] == 0) // failed confirm\n {\n $_COOKIE['attempt'] = $_COOKIE['attempt'] + 1;\n return false;\n }\n else //confirm success\n {\n /*\n Edit here\n Update order status in your server to paid\n */\n return true;\n }\n}", "private function storeCookie() {\n try {\n $this->cookie->store(URLDATATRACKER_ISDATAINURL, $this->checkDataInURL() ? 'TRUE' : 'FALSE');\n echo \"Successfully stored cookie.\\n\";\n } catch (Exception $e) {\n echo \"Failed to store cookie.\\n\";\n throw $e;\n }\n }", "public function submitAction($accept = NULL, $disable = NULL) {\n if($disable !== NULL) {\n if($disable) {\n \\SBTheke\\Cookies\\Utility\\Cookies::deleteAll();\n setcookie('tx_cookies_disabled', 1, time() + (60*60*24*$this->settings['expire']), '/');\n $this->addFlashMessage(\n $this->translate('flashmessage.disabled'),\n $this->translate('flashmessage.disabled.title'),\n \\TYPO3\\CMS\\Core\\Messaging\\AbstractMessage::OK\n );\n } else {\n setcookie('tx_cookies_disabled', FALSE, time() - (60*60*24*$this->settings['expire']), '/');\n $this->addFlashMessage(\n $this->translate('flashmessage.enabled'),\n $this->translate('flashmessage.enabled.title'),\n \\TYPO3\\CMS\\Core\\Messaging\\AbstractMessage::OK\n );\n }\n }\n if($accept !== NULL) {\n if($accept) {\n setcookie('tx_cookies_accepted', 1, time() + (60*60*24*$this->settings['expire']), '/');\n } else {\n setcookie('tx_cookies_accepted', FALSE, time() - (60*60*24*$this->settings['expire']), '/');\n }\n }\n $this->redirect('cookie');\n }", "function testCookies() {\n\t$config = getConfig();\n\t$root = getRootPath();\n\t\n\t// Get the test page.\n\t$http = new \\AutoHttp\\Http($config);\n\t$page = $http->getPage($root . '/test/pages/http/cookie.php');\n\t\n\t// Verify we didn't send a cookie.\n\tif (strpos($page['body'], \"Cookie named 'user' is not set!\") === false)\n\t\treturn 'The cookie shouldn\\'t be set on our first page access.';\n\t\t\n\t// Get the page again.\n\t$page = $http->getPage($root . '/test/pages/http/cookie.php');\n\t\n\t// Verify we sent a cookie this time.\t\t\n\tif (strpos($page['body'], \"Cookie 'user' is set!\") === false ||\n\t\tstrpos($page['body'], \"Value is: John Doe\") === false)\n\t\treturn 'The cookie should be set on our second page access.';\n\t\t\n\treturn true;\n}", "public function index(){\n //weclome message and design\n //login form\n $username_cookie = get_cookie('vidu_cookie_username');\n $code_cookie = get_cookie('vidu_cookie_code');\n $result = $this->login_db->verify_cookie(strtolower($username_cookie), $code_cookie);\n if (!$result) { \n $this->login();\n }else{\n redirect('Home_page');\n }\n }", "function pmprosl_sociallocker_tracking() {\n\tif ( ! ( int ) $_POST['targetId'] )\n\t\texit;\n\n\t// Next make sure the \"sender\" is valid\n\tif ( empty( $_POST['sender'] ) || ! in_array( $_POST['sender'], array( 'button', 'timer', 'cross' ) ) )\n\t\texit;\n\n\t// Next make sure the \"senderName\" is valid\n\tif ( empty( $_POST['senderName'] ) )\n\t\texit;\n\n\t// Finally, make sure we haven't already set the cookie\n\tif( isset( $_COOKIE['pmprosl_has_access_flag'] ) && ! $_COOKIE['pmprosl_has_access_flag'] )\n\t\texit;\n\n\t// Passed all validation checks, lets set the cookies\n\tsetcookie( 'pmprosl_has_access', PMPROSL_FREE_LEVEL_ID, ( time() + ( 60 * 60 * 24 * PMPROSL_MEMBERSHIP_PERIOD_DAYS ) ), COOKIEPATH, COOKIE_DOMAIN, false ); // has_access cookie (expires in PMPROSL_MEMBERSHIP_PERIOD_DAYS days)\n\tsetcookie( 'pmprosl_has_access_flag', true, ( time() + ( 60 * 60 * 24 * 10 * 365 ) ), COOKIEPATH, COOKIE_DOMAIN, false ); // has_access flag cookie used to verify if a user already had access once (expires in 10 years; i.e. never)\n\n\treturn; // We're returning here because we know Social Locker's hook is coming up next\n}", "public function isPreviewMode(){\n\n $cookie = Mage::getModel('core/cookie');\n\n if (isset($_GET['favizone_preview']) && $_GET['favizone_preview'] == \"true\") {\n\n $cookie->set('favizone_preview', true, Favizone_Recommender_Helper_Data::getLifeTime(), '/', null, false, false);\n return true;\n }\n if (isset($_GET['favizone_preview']) && $_GET['favizone_preview'] == \"false\") {\n\n $cookie->delete('favizone_preview');\n return false;\n }\n $preview_data = $cookie->get('favizone_preview');\n if(!empty($preview_data))\n return true;\n\n return false;\n\n }", "function extractCookie()\n {\n $data = false;\n if (isset($_COOKIE['persistName']))\n {\n $data = array();\n \n //blow apart the cookie\n list($poster, $last_format, $last_expiry) = explode('#', $_COOKIE['persistName']);\n \n //clean and validate the cookie inputs\n $data['poster'] = $this->_validateUsername($poster);\n $data['last_format'] = $this->_validateFormat($last_format);\n $data['last_expiry'] = $this->_validateExpiry($last_expiry);\n }\n \n return $data;\n }", "function admit()\n {\n global $standard_headers;\n global $cookie;\n\n $post_fields = array('state' => 'client', 'mac' => '00000000-0000-0000-0000-000000000000', 'os_name' => 'iphone', 'app_version' => '8.10.24', 'ostype' => '64bit', 'tz' => 'America/Chicago', 'battery_level' => '-1', 'locale' => 'en', 'logged_in' => '0', 'device_id' => '00000000-0000-0000-0000-000000000000', 'v' => '2');\n $response = curl('https://www.tadpoles.com/remote/v1/athome/admit', $post_fields, true);\n\n preg_match('/^Set-Cookie:\\s*(.+)=\"(.+)\"/mi', $response, $cookies);\n $cookie_key = $cookies[1];\n $cookie_value = $cookies[2];\n $cookie = \"$cookie_key=\\\"$cookie_value\\\"\";\n }", "private function checkCookiePermission() \r\n\t{\r\n $f = fopen($this->cookieFile,'w');\r\n \r\n if(!$f) \r\n die('The cookie file could not be opened. Make sure this directory has the correct permissions');\r\n else \r\n fclose($f);\r\n\t}", "public function bl_insert_cookie_warning() {\r\n\r\n\t\t\t// Only load if you want the cookie popup\r\n\t\t\tif ( $this->value( 'eu_cookie_popup' ) == 'checked' ) { \r\n\t\t\t\t$ga_code = $this->value('googleanalytics_code');\r\n\r\n\t\t\t\tif ( strlen($ga_code) > 0 ) {\r\n\r\n\t\t\t\t\t// First, get the URL to the privacy policy page\r\n\t\t\t\t\t$priv_page_id = get_option('wp_page_for_privacy_policy');\r\n\t\t\t\t\tif ($priv_page_id > 0) {\r\n\t\t\t\t\t\t$priv_page_url = get_permalink($priv_page_id);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$priv_page_url = \"#\";\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t$auto_accept = false;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif ( $this->value( 'eu_cookie_popup' ) != 'checked' ) { \r\n\t\t\t\t\t\t$auto_accept = true;\r\n\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t<script>initialiseGoogleAnalytics();</script>\r\n\t\t\t\t\t\t<?php\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t?>\r\n\t\t\t\t\t<script type=\"text/javascript\">\r\n\t\t\t\t\t\tvar $jq = jQuery.noConflict();\r\n\t\t\t\t\t\t$jq(document).euCookieLawPopup().init({\r\n\t\t\t\t\t\t\tcookiePolicyUrl : '<?php echo($priv_page_url); ?>',\r\n\t\t\t\t\t\t\tpopupPosition : 'bottom',\r\n\t\t\t\t\t\t\tpopupTitle : '',\r\n\t\t\t\t\t\t\tpopupText : 'By continuing to use the site, you agree to the use of cookies. Click the Learn more button for our Privacy Policy',\r\n\t\t\t\t\t\t\tbuttonContinueTitle : 'Continue',\r\n\t\t\t\t\t\t\tbuttonLearnmoreTitle : 'Learn more',\r\n\t\t\t\t\t\t\tbuttonLearnmoreOpenInNewWindow : true,\r\n\t\t\t\t\t\t\tagreementExpiresInDays : 365,\r\n\t\t\t\t\t\t\tautoAcceptCookiePolicy : <?php echo( bool2str($auto_accept) ); ?>,\r\n\t\t\t\t\t\t\thtmlMarkup : false,\r\n\t\t\t\t\t\t\tcolorStyle : 'blue'\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t</script>\r\n\t\t\t\t\t<?php\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "public function loginAction() {\n \n $modelPlugin = $this->modelplugin();\n $dynamicPath = $modelPlugin->dynamicPath();\n $phpprenevt = $this->phpinjectionpreventplugin(); \n $uname = $phpprenevt->stringReplace($_POST['login_email']);\n $pass = $phpprenevt->stringReplace($_POST['login_password']);\n $remember = $phpprenevt->stringReplace($_POST['autologin']);\n if ($remember == \"\") {\n $remember = 0;\n }\n $dataarrayforvalidation = array('email' => $uname);\n $contentone = $modelPlugin->getpublisherTable()->selectEmail($dataarrayforvalidation);\n //print_r($_COOKIE);exit;\n $passcheck = password_verify($pass, $contentone[0]['password']);\n $usid = $contentone[0]['publisherId'];\n if (empty($contentone[0]['cookievalue'])) {\n $coockievadd = password_hash($usid, PASSWORD_BCRYPT);\n $cookieArray = array('cookievalue' => $coockievadd, \"chkcookie\" => strrev($coockievadd));\n $publisherIdArray = array('publisherId' => $usid);\n $updatecookie = $modelPlugin->getpublisherTable()->updateuser($cookieArray, $publisherIdArray);\n $coockievalue = $coockievadd;\n $cookiecheck = $coockievadd;\n } else {\n $coockievalue = $contentone[0]['cookievalue'];\n $cookiecheck = strrev($contentone[0]['chkcookie']);\n }\n\n $chkcookie = password_verify($usid, $coockievalue);\n $chkcookiewithcookie = password_verify($usid, $cookiecheck);\n $publisherId = array('PID' => $usid);\n $currentTime = time();\n $from = strtotime($contentone[0]['regTime']);\n $difference = $currentTime - $from;\n $no_of_days = floor($difference / (60 * 60 * 24));\n $remainingdays = (14 - $no_of_days);\n $res['noOfDays'] = $remainingdays;\n $res['mailFlagSend'] = $contentone[0]['mailSendFlag'];\n\n $checkStatus = $modelPlugin->getsubscriptionDetailsTable()->fetchall($publisherId);\n\n if (!empty($checkStatus)) {\n $res['userStatus'] = $checkStatus[0]['status'];\n }\n //check cookie and password then let them go\n if ($chkcookiewithcookie == true && $chkcookie == true && $passcheck == true) {\n $res['noOfContetnone'] = $passcheck;\n } else {\n $res['noOfContetnone'] = false;\n }\n $res['userId'] = $usid;\n\n $ip = $_SERVER['REMOTE_ADDR']? : ($_SERVER['HTTP_X_FORWARDED_FOR']? : $_SERVER['HTTP_CLIENT_IP']);\n $tempNam = $phpprenevt->stringReplace($_POST['tempNamlogin']);\n $res['tempNam'] = $tempNam;\n\n\n if ((!empty($contentone)) && ($contentone[0]['mailSendFlag']) != 10 && $passcheck == true && $chkcookiewithcookie == true && $chkcookie == true) {\n\n if (($contentone[0]['mailSendFlag'] == '1' && $remainingdays >= 0) || $contentone[0]['mailSendFlag'] == '11') {\n $user_session = new Container('loginId');\n $user_session->loginId = $usid;\n $config_username = password_hash($uname, PASSWORD_BCRYPT);\n if ($remember == 1) {\n $cookie_name = 'siteAuth'; \n $cookie_time = (3600 * 24 * 30); // 30 days\n $password_hash = password_hash($pass, PASSWORD_BCRYPT);\n $key = '1234447890123450';\n $encrypted = $this->encrypt($usid, $key);\n $newversion =base64_encode($encrypted);\n \n setcookie($cookie_name, 'usid=' . $newversion . '&usr=' . $config_username . '&hash=' . $password_hash, time() + $cookie_time, \"/\");\n \n }\n }\n $mailflag = $contentone[0]['mailSendFlag'];\n }\n if (($mailflag == 1 && $remainingdays >= 0) || $mailflag == 11) {\n\n if ($tempNam) {\n $res['redirection'] = \"editor\";\n } else {\n $res['redirection'] = \"dashboard\";\n }\n }\n\n echo json_encode($res);\n exit;\n }", "function set_user_cookie($args){\n\t\t\t\t//$ip =$this->get_client_ip();\n\t\t\t\t$cookie_name = 'evors_'.$args['email'].'_'.$args['e_id'].'_'.$args['repeat_interval'];\n\t\t\t\t$cookie_value = 'rsvped';\n\t\t\t\tsetcookie($cookie_name, $cookie_value, time() + (86400 * 30), \"/\");\n\t\t\t}", "private function _countSubmit ()\r\n {\r\n if (! isset($_COOKIE[self::$_cookieCount])) {\r\n setcookie(self::$_cookieCount, 1, time() + 3600, \"/\");\r\n } else {\r\n setcookie(self::$_cookieCount, $_COOKIE[self::$_cookieCount] + 1, time() + 3600, \"/\");\r\n }\r\n }" ]
[ "0.7074653", "0.66835344", "0.66199327", "0.6506012", "0.6368736", "0.6361588", "0.6356778", "0.622434", "0.62147015", "0.6207739", "0.61962944", "0.6189044", "0.61492497", "0.6148176", "0.609587", "0.60648036", "0.6055489", "0.6005679", "0.59901863", "0.59732056", "0.59721965", "0.5972152", "0.5968308", "0.594914", "0.5935907", "0.5912152", "0.5905333", "0.5900374", "0.5898235", "0.5897666", "0.5891045", "0.5886553", "0.5875106", "0.5860366", "0.5838135", "0.5803584", "0.58027405", "0.5787984", "0.5783923", "0.57524556", "0.5740551", "0.5724702", "0.5713971", "0.5701189", "0.5701189", "0.5697581", "0.5693564", "0.56912714", "0.56911784", "0.56760615", "0.56747466", "0.56733507", "0.5667658", "0.5664327", "0.56622064", "0.5651617", "0.5649466", "0.56467676", "0.5646157", "0.56400764", "0.5631003", "0.5630224", "0.559889", "0.5580381", "0.55686384", "0.5541832", "0.5538858", "0.5534207", "0.5529847", "0.5518909", "0.5518909", "0.5518175", "0.5517404", "0.5512863", "0.5487822", "0.5481409", "0.54808354", "0.5471797", "0.5462713", "0.5457894", "0.54562145", "0.5447871", "0.54403865", "0.54392284", "0.54314893", "0.5429243", "0.5423935", "0.54075426", "0.54041725", "0.53974926", "0.5393254", "0.5391514", "0.53912294", "0.5390355", "0.53816134", "0.53813237", "0.5379664", "0.5379223", "0.5363596", "0.5359586" ]
0.63823783
4
toon het formulier om een afspraak te maken
function ToonFormulierAfspraak() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function valiteForm();", "abstract public function forms();", "function sevenconcepts_formulaire_charger($flux){\n $form=$flux['args']['form'];\n if($form=='inscription'){\n include_spip('cextras_pipelines');\n $champs_extras=champs_extras_objet(table_objet_sql('auteur'));\n foreach($champs_extras as $value){\n $flux['data'][$value['options']['nom']]=''; \n if(isset($value['options']['obligatoire']))$flux['data']['obligatoire'][$value['options']['nom']]='on';\n }\n $flux['data']['nom_inscription']='';\n $flux['data']['mail_inscription']='';\n }\n \n return $flux;\n}", "public function formulario()\n {\n //\n }", "abstract function form();", "public function AddFraisHorsForfait()\r\n {\r\n $frais = new Frais();\r\n //Get le mois\r\n $mois = $this->GetMois(date('m'));\r\n //Ajoute a LigneFraisHorsForfait les données suivantes\r\n $frais->AddLigneFraisHorsForfait($_SESSION['uid'],$mois,$_POST['nom'],$_POST['prix'],$_POST['date']);\r\n \r\n $this->MainPage();\r\n }", "function checkOblig(&$falta, &$f, $oblig) {\r\n# versio obligatoris en formulari\r\n foreach (explode(\"#\", $oblig) as $cm) {\r\n if (!$f[$cm])\r\n $falta[$cm][] = 'oblig';\r\n }\r\n return count($falta);\r\n}", "public function AggiornaPrezzi(){\n\t}", "public function valorpasaje();", "function view_tt_1_alkes_form() {\n\t\tglobal ${$GLOBALS['session_vars']}, ${$GLOBALS['get_vars']}, $adodb;\n\t\t$field_arr = tt_1_alkes::get_field_set();\n\n\t\t$optional_arr = $this->optional_arr;\n\t\t$optional_arr['no_tt'] = 'protect';\n\n\t\t$record = array (\n\t\t\t'no_tt' => ${$GLOBALS['get_vars']}['no_tt']\n\t\t);\n\t\t$result = tt_1_alkes::get($record);\n\t\t$value_arr = $result[0];\n\t\t$label_arr = $this->tt_1_alkes_label;\n\t\tglobal $adodb;\n\n\t\tdefine('FPDF_FONTPATH','fpdf/font/');\n\t\trequire('fpdf/fpdf.php');\n\t\t$pdf=new FPDF('L','mm','A5');\n\t\t$pdf->Open();\n\t\t$pdf->AddPage();\n\t\t$pdf->SetFont('Arial','B',14);\n\t\t$pdf->Cell(180,7,'SURAT TANDA TERIMA UBAH IZIN PRODUKSI','',0,'L');\n\t\t$pdf->Ln(5);\n\t\t$pdf->SetFont('Arial','B',12);\n\t\t$pdf->Cell(180,7,'Departemen Kesehatan RI','',0,'L');\n\t\t$pdf->Ln(5);\n\t\t$pdf->Cell(180,7,'Tanda Terima Permohonan Ijin Produksi Alkes/PKRT','',0,'L');\n\t\t$pdf->Ln(5);\n\t\t$pdf->Cell(180,7,'( Berdasarkan subdit yang dipilih pada tanda terima )','',0,'L');\n\t\t$pdf->Ln(5);\n\t\t$pdf->Cell(180,7,'','B',0,'L');\n\t\t$pdf->Ln(10);\n\t\t$pdf->SetFont('Arial','',12);\n\n\t\t$sql = \"SELECT\n\t\ttt_1_alkes.no_tt,\n\t\ttt_1_alkes.urut_no_tt,\n\t\tsubdit.subdit,\n\t\ttt_1_alkes.date_insert,\n\t\tpendaftar.nama_pabrik,\n\t\tpendaftar.nama_pendaftar,\n\t\tpendaftar.alamat_pendaftar,\n\t\tpendaftar.alamat_pabrik,\n\t\tpendaftar.nama_propinsi_2,\n\t\tpendaftar.userid,\n\t\tpendaftar.tpwd,\n\t\ttt_1_alkes.insert_by\n\t\tFROM tt_1_alkes\n\t\tLEFT OUTER JOIN subdit ON(subdit.id_subdit = tt_1_alkes.kode_subdit)\n\t\tLEFT OUTER JOIN pendaftar ON(pendaftar.kode_pendaftar = tt_1_alkes.kode_pendaftar)\n\t\tWHERE\n\t\ttt_1_alkes.no_tt ='\".$_GET['no_tt'].\"'\n\t\tGROUP BY\n\t\ttt_1_alkes.no_tt,\n\t\ttt_1_alkes.urut_no_tt,\n\t\tsubdit.subdit,\n\t\ttt_1_alkes.date_insert,\n\t\tpendaftar.nama_pabrik,\n\t\tpendaftar.nama_pendaftar,\n\t\tpendaftar.alamat_pendaftar,\n\t\tpendaftar.alamat_pabrik,\n\t\tpendaftar.nama_propinsi_2,\n\t\tpendaftar.userid,\n\t\tpendaftar.tpwd,\n\t\ttt_1_alkes.insert_by\n\t\t\";\n\t\t//print $sql;\n\t\t$rs = $adodb->Execute($sql);\n\t\t$urut_no_tt = $rs->fields['urut_no_tt'];\n\t\t$nama_pendaftar = $rs->fields['nama_pendaftar'];\n\t\t$alamat_pendaftar = $rs->fields['alamat_pendaftar'];\n\t\t$nama_pabrik = $rs->fields['nama_pabrik'];\n\t\t$userid = $rs->fields['userid'];\n\t\t$pwd = $rs->fields['tpwd'];\n\t\t$pdf->Ln(10);\n\t\t$pdf->Cell(30,7,'No Tanda Terima','',0,'L');$pdf->Cell(10,7,' : ','',0,'L');$pdf->Cell(140,7,''.$urut_no_tt.'','',0,'L');\n\t\t$pdf->Ln(10);\n\t\t$pdf->Cell(30,7,'Nama Pemohon','',0,'L');$pdf->Cell(10,7,' : ','',0,'L');$pdf->Cell(140,7,''.$nama_pendaftar.'','',0,'L');\n\t\t$pdf->Ln(10);\n\t\t$pdf->Cell(30,7,'Alamat Pemohon','',0,'L');$pdf->Cell(10,7,' : ','',0,'L');$pdf->Cell(140,7,''.$alamat_pendaftar.'','',0,'L');\n\t\t$pdf->Ln(10);\n\t\t$pdf->Cell(30,7,'Nama Pabrik','',0,'L');$pdf->Cell(10,7,' : ','',0,'L');$pdf->Cell(140,7,''.$nama_pabrik.'','',0,'L');\n\t\t$pdf->Ln(10);\n\t\t$pdf->Cell(30,7,'User ID','',0,'L');$pdf->Cell(10,7,' : ','',0,'L');$pdf->Cell(140,7,''.$userid.'','',0,'L');\n\t\t$pdf->Ln(10);\n\t\t$pdf->Cell(30,7,'Password','',0,'L');$pdf->Cell(10,7,' : ','',0,'L');$pdf->Cell(140,7,''.$pwd.'','',0,'L');\n\t\t$pdf->Ln(10);\n\t\t$pdf->Output();\n\n\t}", "private function factuurAction()\n {\n if (isset($_POST) && !empty($_POST))\n {\n //productenOud zijn de producten die gekozen zijn in de webpagina\n // productenNieuw zijn de producten die gekozen zijn en daarna zijn verkregen van de database.\n $productenOud = $this->model->maakPDF();\n if ($productenOud === 'DUPS')\n {\n $this->model->foutGoedMelding('danger', '<strong> Foutmelding </strong> U heeft 2 dezelfde producten gekozen, gebruik hiervoor het aantal!');\n } else\n {\n $productNieuw = $this->model->geefBesteldeProducten($productenOud);\n $t = 1;\n for ($i = 0; $i < count($productenOud); $i++)\n {\n // van alle producten die zijn gekozen wordt de aantal voorraad gepakt\n $voorraadNieuw[$i] = $productNieuw[$i][0]->geefVoorraad();\n $gekozenAantal[$i] = $productenOud[$i][1];\n //de einde van de producten wordt d.m.v. count verkregen\n $eindeArray = count($productenOud);\n\n if ($voorraadNieuw[$i] > $gekozenAantal[$i])\n {\n $goeieVoorraad = true;\n } else\n {\n $goeieVoorraad = false;\n }\n\n if ($goeieVoorraad !== true)\n {\n $this->model->foutGoedMelding('danger', 'Gekozen product(en) is(zijn) niet op voorraad! Controleer het <a href=\".?action=magazijn&control=admin\">Magazijn <span class=\"glyphicon glyphicon-link\"></span></a>');\n } else\n {\n if ($t === $eindeArray)\n {\n $_SESSION['geselecteerdeProducten'] = $productenOud;\n $this->model->pdfToevoegen();\n $this->forward('factuurVerzend', 'admin');\n }\n }\n\n $goeieVoorraad = false;\n $t++;\n }\n }\n }\n\n $producten = $this->model->geefProducten();\n $this->view->set('producten', $producten);\n $klanten = $this->model->geefKlanten();\n $this->view->set('klanten', $klanten);\n }", "function formidablepaiement_formulaire_fond($flux){\n\n\tif ($flux['args']['form']=='formidable'\n\t AND $id = $flux['args']['args'][0]\n\t AND $flux['args']['je_suis_poste']){\n\n\t\tinclude_spip('inc/securiser_action');\n\t\t$id = md5(@getmypid() . secret_du_site());\n\t\tif (isset($GLOBALS['formidable_post_'.$id])\n\t\t AND $form = $GLOBALS['formidable_post_'.$id]){\n\t\t\t$flux['data'] .=\n\t\t\t\t\"<div class='formulaire_spip formulaire_paiement'>\"\n\t\t\t\t. $form\n\t\t\t\t. \"</div>\";\n\n\t\t\t$css = find_in_path(\"css/formidablepaiement.css\");\n\t\t\t$flux['data'] .= \"<style type='text/css'>@import url('\".$css.\"');</style>\";\n\t\t}\n\t}\n\treturn $flux;\n}", "function readForm() {\n\t\t$this->FiscaalGroepID = $this->formHelper(\"FiscaalGroepID\", 0);\n\t\t$this->FiscaalGroupType = $this->formHelper(\"FiscaalGroupType\", 0);\n\t\t$this->GewijzigdDoor = $this->formHelper(\"GewijzigdDoor\", 0);\n\t\t$this->GewijzigdOp = $this->formHelper(\"GewijzigdOp\", \"\");\n\t}", "public function boleta()\n\t{\n\t\t//\n\t}", "function evt__form_pase__modificacion($datos)\r\n\t{\r\n $car=$this->controlador()->dep('datos')->tabla('cargo')->get();\r\n $datos['id_cargo']=$car['id_cargo'];\r\n \r\n \r\n //print_r($pase_nuevo);exit;\r\n if($this->dep('datos')->tabla('pase')->esta_cargada()){//es modificacion\r\n $pas=$this->dep('datos')->tabla('pase')->get();\r\n if($pas['tipo']<>$datos['tipo']){\r\n toba::notificacion()->agregar('no puede cambiar el tipo del pase', 'info'); \r\n }else{\r\n $this->dep('datos')->tabla('pase')->set($datos);\r\n $this->dep('datos')->tabla('pase')->sincronizar();\r\n }\r\n }else{//es alta de un pase nuevo\r\n $this->dep('datos')->tabla('pase')->set($datos);\r\n $this->dep('datos')->tabla('pase')->sincronizar();\r\n $pase_nuevo=$this->dep('datos')->tabla('pase')->get();\r\n $p['id_pase']=$pase_nuevo['id_pase'];\r\n $this->dep('datos')->tabla('pase')->cargar($p);//lo cargo para que se sigan viendo los datos en el formulario\r\n if($datos['tipo']=='T'){//si el pase es temporal\r\n //ingreso un cargo en la unidad destino\r\n //la ingresa con fecha de alta = desde\r\n $nuevo_cargo['id_persona']=$car['id_persona'];\r\n $nuevo_cargo['codc_carac']=$car['codc_carac'];\r\n $nuevo_cargo['codc_categ']=$car['codc_categ'];\r\n $nuevo_cargo['codc_agrup']=$car['codc_agrup'];\r\n $nuevo_cargo['chkstopliq']=$car['chkstopliq'];\r\n $nuevo_cargo['fec_alta']=$datos['desde'];\r\n $nuevo_cargo['pertenece_a']=$datos['destino'];\r\n $nuevo_cargo['generado_x_pase']=$pase_nuevo['id_pase']; \r\n $res=$this->controlador()->dep('datos')->tabla('cargo')->agregar_cargo($nuevo_cargo);\r\n if($res==1){\r\n toba::notificacion()->agregar('Se ha creado un nuevo cargo en el destino del pase', 'info');\r\n }\r\n \r\n }else{//pase definitivo entonces tengo que modificar la fecha del cargo en la unidad destino con la fecha de alta del definitivo\r\n $nuevafecha = strtotime ( '-1 day' , strtotime ( $datos['desde'] ) ) ;\r\n $nuevafecha = date ( 'Y-m-d' , $nuevafecha );\r\n //print_r($nuevafecha);exit;\r\n $salida=$this->controlador()->dep('datos')->tabla('cargo')->modificar_alta($datos['id_cargo'],$datos['destino'],$datos['desde']);\r\n //le coloca fecha de baja al cargo de la unidad origen\r\n $this->controlador()->dep('datos')->tabla('cargo')->finaliza_cargo($datos['id_cargo'],$nuevafecha);\r\n if($salida==1){\r\n toba::notificacion()->agregar('Se ha modificado la fecha del cargo generado a partir del pase temporal', 'info');\r\n }\r\n \r\n } \r\n }\r\n \r\n\t}", "function conf__efs($form)\n\t{\n\t\tif ($this->controlador->get_clase_actual() == 'toba_ei_formulario') {\n\t\t\t$form->desactivar_efs(array('total'));\n\t\t}\n\t\t$this->s__seleccion_efs_anterior = $this->s__seleccion_efs;\n\t\t$fila = $this->get_tabla()->get_fila($this->s__seleccion_efs_anterior);\n\t\t$form->set_titulo('Propiedades del ef <em>'.$fila[$this->campo_clave].'</em>');\t\t\n\t\treturn $fila;\n\t\t\n\t}", "private function _displayForm(){\n\t $moneda = Tools::getValue('moneda', $this->moneda);\n\t $iseuro = ($moneda == '978') ? ' selected=\"selected\" ' : '';\n\t $isdollar = ($moneda == '840') ? ' selected=\"selected\" ' : '';\n \t // Opciones para activar/desactivar SSL\n\t $ssl = Tools::getValue('ssl', $this->ssl);\n\t $ssl_si = ($ssl == 'si') ? ' checked=\"checked\" ' : '';\n\t $ssl_no = ($ssl == 'no') ? ' checked=\"checked\" ' : '';\n\t // Opciones para el comportamiento en error en el pago\n\t $error_pago = Tools::getValue('error_pago', $this->error_pago);\n\t $error_pago_si = ($error_pago == 'si') ? ' checked=\"checked\" ' : '';\n\t $error_pago_no = ($error_pago == 'no') ? ' checked=\"checked\" ' : '';\n\t // Opciones para activar los idiomas\n\t $idiomas_estado = Tools::getValue('idiomas_estado', $this->idiomas_estado);\n\t $idiomas_estado_si = ($idiomas_estado == 'si') ? ' checked=\"checked\" ' : '';\n\t $idiomas_estado_no = ($idiomas_estado == 'no') ? ' checked=\"checked\" ' : '';\n\t \n\t \n\t // Mostar formulario\n\t\t$this->_html .=\n\t\t'<form action=\"'.$_SERVER['REQUEST_URI'].'\" method=\"post\">\n\t\t\t<fieldset>\n\t\t\t<legend><img src=\"../img/admin/contact.gif\" />'.$this->l('Configuraci&oacute;n del TPV').'</legend>\n\t\t\t\t<table border=\"0\" width=\"680\" cellpadding=\"0\" cellspacing=\"0\" id=\"form\">\n\t\t\t\t\t<tr><td colspan=\"2\">'.$this->l('Por favor completa la informaci&oacute;n requerida que te proporcionar&aacute; tu banco Servired.').'.<br /><br /></td></tr>\n\t\t\t\t\t<tr><td width=\"215\" style=\"height: 35px;\">'.$this->l('URL de llamada del entorno').'</td><td><input type=\"text\" name=\"urltpv\" value=\"'.Tools::getValue('urltpv', $this->urltpv).'\" style=\"width: 330px;\" /></td></tr>\n\t\t\t\t\t<tr><td width=\"215\" style=\"height: 35px;\">'.$this->l('Clave secreta de encriptaci&oacute;n').'</td><td><input type=\"password\" name=\"clave\" value=\"'.Tools::getValue('clave', $this->clave).'\" style=\"width: 200px;\" /></td></tr>\n\t\t\t\t\t<tr><td width=\"215\" style=\"height: 35px;\">'.$this->l('Nombre del comercio').'</td><td><input type=\"text\" name=\"nombre\" value=\"'.htmlentities(Tools::getValue('nombre', $this->nombre), ENT_COMPAT, 'UTF-8').'\" style=\"width: 200px;\" /></td></tr>\n\t\t\t\t\t<tr><td width=\"215\" style=\"height: 35px;\">'.$this->l('N&uacute;mero de comercio (FUC)').'</td><td><input type=\"text\" name=\"codigo\" value=\"'.Tools::getValue('codigo', $this->codigo).'\" style=\"width: 200px;\" /></td></tr>\n\t\t\t\t\t<tr><td width=\"215\" style=\"height: 35px;\">'.$this->l('N&uacute;mero de terminal').'</td><td><input type=\"text\" name=\"terminal\" value=\"'.Tools::getValue('terminal', $this->terminal).'\" style=\"width: 80px;\" /></td></tr>\t\t\t\t\t\n\t\t\t\t\t<tr><td width=\"215\" style=\"height: 35px;\">'.$this->l('Tipo de moneda').'</td><td>\n\t\t\t\t\t<select name=\"moneda\" style=\"width: 80px;\"><option value=\"\"></option><option value=\"978\"'.$iseuro.'>EURO</option><option value=\"840\"'.$isdollar.'>DOLLAR</option></select></td></tr>\n\t\t\t\t\t\n\t\t\t\t\t<tr><td width=\"215\" style=\"height: 35px;\">'.$this->l('Tipo de transacci&oacute;n').'</td><td><input type=\"text\" name=\"trans\" value=\"'.Tools::getValue('trans', $this->trans).'\" style=\"width: 80px;\" /></td></tr>\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\t</td></tr>\n\t\t\t\t\t\n\t\t\t\t</table>\n\t\t\t</fieldset>\n\t\t\t<br>\n\t\t\t<fieldset>\n\t\t\t<legend><img src=\"../img/t/9.gif\" />'.$this->l('Personalizaci&oacute;n').'</legend>\n\t\t\t<table border=\"0\" width=\"680\" cellpadding=\"0\" cellspacing=\"0\" id=\"form\">\n\t\t<tr>\n\t\t\t<td colspan=\"2\">'.$this->l('Por favor completa los datos adicionales.').'.<br /><br /></td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td width=\"215\" style=\"height: 35px;\">'.$this->l('SSL en URL de validaci&oacute;n').'</td>\n\t\t\t<td>\n\t\t\t<input type=\"radio\" name=\"ssl\" id=\"ssl_1\" value=\"si\" '.$ssl_si.'/>\n\t\t\t<img src=\"../img/admin/enabled.gif\" alt=\"'.$this->l('Activado').'\" title=\"'.$this->l('Activado').'\" />\n\t\t\t<input type=\"radio\" name=\"ssl\" id=\"ssl_0\" value=\"no\" '.$ssl_no.'/>\n\t\t\t<img src=\"../img/admin/disabled.gif\" alt=\"'.$this->l('Desactivado').'\" title=\"'.$this->l('Desactivado').'\" />\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td width=\"215\" style=\"height: 35px;\">'.$this->l('En caso de error, permitir elegir otro medio de pago').'</td>\n\t\t\t<td>\n\t\t\t<input type=\"radio\" name=\"error_pago\" id=\"error_pago_1\" value=\"si\" '.$error_pago_si.'/>\n\t\t\t<img src=\"../img/admin/enabled.gif\" alt=\"'.$this->l('Activado').'\" title=\"'.$this->l('Activado').'\" />\n\t\t\t<input type=\"radio\" name=\"error_pago\" id=\"error_pago_0\" value=\"no\" '.$error_pago_no.'/>\n\t\t\t<img src=\"../img/admin/disabled.gif\" alt=\"'.$this->l('Desactivado').'\" title=\"'.$this->l('Desactivado').'\" />\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td width=\"215\" style=\"height: 35px;\">'.$this->l('Activar los idiomas en el TPV').'</td>\n\t\t\t<td>\n\t\t\t<input type=\"radio\" name=\"idiomas_estado\" id=\"idiomas_estado_si\" value=\"si\" '.$idiomas_estado_si.'/>\n\t\t\t<img src=\"../img/admin/enabled.gif\" alt=\"'.$this->l('Activado').'\" title=\"'.$this->l('Activado').'\" />\n\t\t\t<input type=\"radio\" name=\"idiomas_estado\" id=\"idiomas_estado_no\" value=\"no\" '.$idiomas_estado_no.'/>\n\t\t\t<img src=\"../img/admin/disabled.gif\" alt=\"'.$this->l('Desactivado').'\" title=\"'.$this->l('Desactivado').'\" />\n\t\t\t</td>\n\t\t</tr>\n\t\t</table>\n\t\t\t</fieldset>\t\n\t\t\t<br>\n\t\t<input class=\"button\" name=\"btnSubmit\" value=\"'.$this->l('Guardar configuraci&oacute;n').'\" type=\"submit\" />\n\t\t\t\t\t\n\t\t\t\n\t\t</form>';\n\t}", "public function form()\n {\n $this->switch('auto_df_switch', __('message.tikuanconfig.auto_df_switch'));\n $this->timeRange('auto_df_stime', 'auto_df_etime', '开启时间');\n $this->text('auto_df_maxmoney', __('message.tikuanconfig.auto_df_maxmoney'))->setWidth(2);\n $this->text('auto_df_max_count', __('message.tikuanconfig.auto_df_max_count'))->setWidth(2);\n $this->text('auto_df_max_sum', __('message.tikuanconfig.auto_df_max_sum'))->setWidth(2);\n\n }", "function act_pr_forma_pago(){\n\t\t$u= new Forma_pago();\n\t\t$related = $u->from_array($_POST);\n\t\t// save with the related objects\n\t\tif($u->save($related))\n\t\t{\n\t\t\techo \"<html> <script>alert(\\\"Se han actualizado los datos de la Forma de Pago.\\\"); window.location='\".base_url().\"index.php/inicio/acceso/\".$GLOBALS['ruta'].\"/menu';</script></html>\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tshow_error(\"\".$u->error->string);\n\t\t}\n\t}", "public function formuAction(){\t\n \t$cn = new Model_DbDatos_Datos();\n\t\t$fn = new Libreria_Pintar();\n\t\t$ar = new Libreria_ArraysFunctions();\n\n \t$codCarta = $this->_request->getParam('codCarta',''); \n\t\t\n\t\t\n\t\t//Cargando combos fiscalizadores\n\n\t\tunset($parametros);\n \t$parametros[] = array('@mquery',22);\n \t$parametros[] = array('@idCarta',$codCarta);\n\t\t$rowFicalizadores = $cn->ejec_store_procedura_sql('[SP_FISCA_CARTA_REQ]',$parametros);\n\n\t\t$fiscalizadoresCombo = $ar->RegistrosComboc($rowFicalizadores,0,1,'');\n\t\t$val[] = array('#cbNotificadores',$fn->ContenidoCombo($fiscalizadoresCombo,'[Seleccione]',''),'html');\n\t\t \t\n\n\t\t//Cargando cabecera del cargo de notificacion\t\t\n\t\tunset($parametros);\n\t\t$parametros[] = array('@mquery',20);\n \t$parametros[] = array('@idCarta',$codCarta);\n \t$rowCabecera = $cn->ejec_store_procedura_sql_noparamatro2('[SP_FISCA_CARGO_NOTIFICA]',$parametros);\n\n \tif ($rowCabecera[0]) {\n \t\t$row = $rowCabecera[1][0]; \n\n \t\t$codCargoNotificacion = $row[0];\n \t\t$nroCargoNotificacion = $row[1].\" - \".$row[9];\n \t\t$codContrib = $row[2];\n \t\t$contribuyente = trim(utf8_encode( strtoupper($row[3].\" \".$row[4].\" \".$row[5])));\n \t\t$idTipoDocIdent = $row[6];\n \t\t$nroDocIdent = $row[7];\n \t\t$domicilioFiscal = strtoupper(utf8_encode( $row[8]));\n \t\t$anio = $row[9];\n \t\t$nroCartareq = $row[10].\" - \".$row[9];\n \t\n \t\t$val[] = array('#hcodCartaReq',$codCarta,'val');\n \t\t$val[] = array('#txtNroNotificacion',$nroCargoNotificacion,'val');\n \t\t$val[] = array('#hcodNotificacion',$codCargoNotificacion,'val');\n \t\t$val[] = array('#txtCodigoContribuyenteN',$codContrib,'val');\n \t\t$val[] = array('#txtContribuyenteN',$contribuyente,'val');\n \t\t$val[] = array('#hTipoDocIdent',$idTipoDocIdent,'val');\n \t\t$val[] = array('#hNroDocIdent',$nroDocIdent,'val');\n \t\t$val[] = array('#txtDomicilioFiscal',$domicilioFiscal,'val');\n \t\t$val[] = array('#txtAnioN',$anio,'val');\n \t\t$val[] = array('#txtNroCartaReqN',$nroCartareq,'val');\n\n \t\t//CARGANDO DATOS DE LA PERSONA QUIEN RECEPCIONA\n \t\tunset($parametros);\n\t\t\t$parametros[] = array('@mquery',21);\n\t \t$parametros[] = array('@idCargoNotFisca',$codCargoNotificacion);\n\t \t$rowDatosPersona = $cn->ejec_store_procedura_sql_noparamatro2('[SP_FISCA_CARGO_NOTIFICA]',$parametros);\n\t\t\t\n\n\t \tif ($rowDatosPersona[0]) {\n\t \t\t\n\t \t\t$row = $rowDatosPersona[1][0];\n\n\t\t\t unset($parametros);\n\t\t\t\t$parametros[] = array('@mquery',7);\n\t\t \t$rowTDoc = $cn->ejec_store_procedura_sql_noparamatro2('[SP_FISCA_T_DOC_IDEN]',$parametros);\n\t\t \t$row2 = $rowTDoc[1];\n\t\t \t\n\t\t \tforeach ($row2 as $f) {\n\t\t \t\tif ($f[0]==1) {\t$val[]= array('#hmaxDni',$f[2],'val');}\n\t\t \t\tif ($f[0]==5) {\t$val[]= array('#hmaxIdentidad',$f[2],'val');}\n\t\t \t\tif ($f[0]==9) {\t$val[]= array('#hmaxExtranjeria',$f[2],'val');}\n\t\t \t}\n\n\t \t\t$nomRecepciona = trim(utf8_encode($row[0]));\n\t \t\t$idTipoDocIdent = trim($row[1]);\n\t \t\t$nomTDocIden = trim(utf8_encode($row[2]));\n\t \t\t$nroDocIdent = trim($row[3]);\n\t \t\t$fechaNotifica = (!empty($row[4]) && !empty($row[5]) && !empty($row[6]))? $row[4].\"/\".$row[5].\"/\".$row[6] : '';\n\t \t\t$horaNotifica = trim($row[7]);\n\t \t\t$NegoIdentificar = trim($row[8]);\n\t \t\t$NegoFirmar = $row[9];\n\t \t\t$NegoRecibir = $row[10];\n\t \t\t$firma = $row[11];\n\t \t\t$idVinculo = $row[12];\n\t \t\t$vinculo = $row[13];\n\t \t\t$vinculo_otros = trim($row[14]);\n\n\t \t\t$val[] = array('#txtNomApeRecepciona',$nomRecepciona,'val');\n\t \t\tif($idTipoDocIdent==1){$evt[] = array('#chkDni','checked','true');}\n\t \t\tif($idTipoDocIdent==5){$evt[] = array('#chkIdentidad','checked','true');}\n\t \t\tif($idTipoDocIdent==9){$evt[] = array('#chkExtranjeria','checked','true');}\n\t \t\t$val[] = array('#txtNroDocIdent',$nroDocIdent,'val');\n\t \t\t$val[] = array('#dpFechaNotifica',$fechaNotifica,'val');\n\t \t\t$val[] = array('#txtHoraNotifica',$horaNotifica,'val');\n\t \t\tif($NegoIdentificar==1){$evt[] = array('#chkNegoIdentificar','checked','true');}\n\t \t\tif($NegoFirmar==1){$evt[] = array('#chkNegoFirmar','checked','true');}\n\t \t\tif($NegoRecibir==1){$evt[] = array('#chkNegoRecibir','checked','true');}\n\t \t\t$evt[] = array(( ($firma==1) ? \"#rdFirmaRecepcionaSi\" : \"#rdFirmaRecepcionaNo\"),\"checked\",\"true\");\n\t \t\tif($idVinculo==1){$evt[] = array('#chkTitular','checked','true');}\n\t \t\tif($idVinculo==2){$evt[] = array('#chkFamiliar','checked','true');}\n\t \t\tif($idVinculo==3){$evt[] = array('#chkVigilante','checked','true');}\n\t \t\tif($idVinculo==4){$evt[] = array('#chkEmpleado','checked','true');}\n\t \t\tif($idVinculo==5){$evt[] = array('#chkRepresentante','checked','true');}\n\t \t\tif($idVinculo==6){$evt[] = array('#chkVinculoOtros','checked','true');$val[] = array('#txtVinculoOtros',$vinculo_otros,'val');}\n\n\n\t \t\t//CARGANDO DATOS DEL CEDULON Y MOTIVOS DE NO ENTREGA\n\n\t \t\tunset($parametros);\n\t\t\t\t$parametros[] = array('@mquery',22);\n\t\t \t$parametros[] = array('@idCargoNotFisca',$codCargoNotificacion);\n\t\t \t$rowCedulonMovNoEntrega = $cn->ejec_store_procedura_sql_noparamatro2('[SP_FISCA_CARGO_NOTIFICA]',$parametros);\n\t\t \t\n\t\t \tif ($rowCedulonMovNoEntrega[0]) {\n\t\t \t\t$row = $rowCedulonMovNoEntrega[1][0]; \n\n\t\t \t\t$codCedulon = trim($row[0]);\n\t\t \t\t$PersonaIncapaz = trim($row[1]);\n\t\t \t\t$DomicilioCerrado = trim($row[2]);\n\t\t \t\t$fechaCedulon = (!empty($row[3]) && !empty($row[4]) && !empty($row[5])) ? $row[3].\"/\".$row[4].\"/\".$row[5] : '' ;\n\t\t \t\t$horaCedulon = trim($row[6]);\n\t\t \t\t$direcccionIncorrecta = trim($row[7]);\n\t\t \t\t$direccionInexistente = trim($row[8]);\n\t\t \t\t$otrosMotNoEntrega = $row[9];\n\t\t \t\t$otrosValor = trim($row[10]);\n\t\t \t\t$codInmueble = trim($row[11]);\n\t\t \t\t$nroPisos = trim($row[12]);\n\t\t \t\t$color = trim($row[13]);\n\t\t \t\t$casa = trim($row[14]);\n\t\t \t\t$edificio = trim($row[15]);\n\t\t \t\t$PuertaMadera = trim($row[16]);\n\t\t \t\t$PuertaFierro = trim($row[17]);\n\t\t \t\t$SuminElect = trim($row[18]);\n\t\t \t\t$in_Otros = trim($row[19]);\n\t\t \t\t$in_OtrosValor = trim($row[20]);\n\n\t\t \t\t$val[] = array('#hcodCedulon',$codCedulon,'val');\n\t\t \t\tif($PersonaIncapaz==1){ $evt[] = array('#chkPersonaIncapaz','checked','true');}\n\t\t \t\tif($DomicilioCerrado==1){ $evt[] = array('#chkDomicilioCerrado','checked','true');}\n\t\t \t\t$val[] = array('#dpFechaCedulon',$fechaCedulon,'val');\n\t\t \t\t$val[] = array('#txtHoraCedulon',$horaCedulon,'val');\n\t\t \t\tif($direcccionIncorrecta==1){ $evt[] = array('#chkDireccionIncorrecta','checked','true');}\n\t\t \t\tif($direccionInexistente==1){ $evt[] = array('#chkDireccionInexistente','checked','true');}\n\t\t \t\tif($otrosMotNoEntrega==1){$evt[]=array('#chkMotNoEntregaOtros','checked','true');$val[] = array('#txtNoEntregaOtros',$otrosValor,'val');}\n\t\t \t\t\n\t\t \t\t$val[] = array('#hcodInmueble',$codInmueble,'val');\n\t\t \t\t$val[] = array('#txtNroPisos',$nroPisos,'val');\n\t\t \t\t$val[] = array('#txtColor',$color,'val');\n\t\t \t\tif($casa==1){ $evt[] = array('#chkCasa','checked','true');}\n\t\t \t\tif($edificio==1){ $evt[] = array('#chkEdificio','checked','true');}\n\t\t \t\tif($PuertaMadera==1){ $evt[] = array('#chkMadera','checked','true');}\n\t\t \t\tif($PuertaFierro==1){ $evt[] = array('#chkFierro','checked','true');}\n\t\t \t\t$val[] = array('#txtSuministroElectrico',$SuminElect,'val');\n\t\t \t\tif($in_Otros==1){$evt[]=array('#chkInmuebleOtros','checked','true');$val[] = array('#txtInmuebleOtros',$in_OtrosValor,'val');}\n\t\t \t\t\n\n\n\t\t \t\t//CARGA DE DATOS DE VISITA EFECTUADA\n\t\t \t\tunset($parametros);\n\t\t\t\t\t$parametros[] = array('@mquery',23);\n\t\t\t \t$parametros[] = array('@idCargoNotFisca',$codCargoNotificacion);\n\t\t\t \t$rowVisitaEfectuada = $cn->ejec_store_procedura_sql_noparamatro2('[SP_FISCA_CARGO_NOTIFICA]',$parametros);\n\t\t\t \t\n\t\t\t \tif ($rowVisitaEfectuada[0]) {\n\t\t\t \t\t$row = $rowVisitaEfectuada[1][0]; \n\n\t\t\t \t\t$fechaVisita = (!empty($row[0]) && !empty($row[1]) && !empty($row[2])) ? $row[0].\"/\".$row[1].\"/\".$row[2] : '' ;\n\t\t\t \t\t$codNotificador = trim($row[3]);\n\t\t\t \t\t$dniNotificador = trim($row[4]);\n\t\t\t \t\t$firmaNotificador = trim($row[5]);\n\n\t\t\t \t\t$val[] = array('#dpFechaVisita',$fechaVisita,'val');\n\t\t\t \t\t$val[] = array('#cbNotificadores',$codNotificador.'-'.$dniNotificador,'val');\n\t\t\t \t\t$val[] = array('#txtdniNotificador',$dniNotificador,'val');\n\t\t\t \t\t$evt[] = array((($firmaNotificador==1) ? \"#rdFirmaNotSi\" : \"#rdFirmaNotNo\"),\"checked\",\"true\");\n\n\n\t\t\t \t}else{\n\t\t\t \t\techo utf8_encode($rowVisitaEfectuada[1]); \n\t\t\t \t}\n\n\t\t \t}else{\n\t\t\t\t\techo utf8_encode($rowCedulonMovNoEntrega[1]); \n\t\t \t} \n\n\t \t}else{\n\t \t\techo utf8_encode($rowDatosPersona[1]); \n\t \t}\n\n \t}else{\n \t\techo utf8_encode($rowCabecera[1]);\n \t}\n\n\t\t$evt[] = array('#contentBox6',\"tabs\",\"\");\t\n\t\t$evt[] = array('#contentBox7',\"tabs\",\"\");\t\n\t\t$evt[] = array('#contentBox8',\"tabs\",\"\");\t\t\t\t\n\t\t$evt[] = array('#tabsNotificacion',\"tabs\",\"\");\n\t\t$evt[] = array('#radioFirmaRecep',\"buttonset\",\"\");\n\t\t$evt[] = array('#radioFirmaNot',\"buttonset\",\"\");\n\t\t\n\t\t\n\n\t\t$fn->PintarEvento($evt);\n\t\t$fn->PintarValor($val);\n }", "public function ispisiOsobu(){\n // echo \"$this->ime $this->prezime $this->godRdoj\";\n echo \"<br>Ime: \" . $this->getIme() . \"<br>Prezime: \" . $this->getPrezime() . \"<br>Godina rodjenja: \" . $this->getGodRodj() . \"<br>\";\n }", "public function listforms()\n {\n\t\t\n }", "function formumfeld($t)\n{\n global $sqli;\n $suchmuster = \"/<.link:(.\\d+)>/\";\n $tref = preg_match_all($suchmuster, $t, $treffer);\n //print_r($treffer);\n //$suchmuster = \"llink:\";\n\n for ($i = 0; $i < count($treffer[0]); $i++) {\n $id = $treffer[1][$i];\n //$nid=$treffer[0][$i];\n\n if (substr($id, 0, 1) == 'n') {\n $id = substr($id, 1);\n $n = 1;\n\n $result = mysqli_query($sqli, \"SELECT * FROM (fotografen INNER JOIN namen ON fotografen.id=namen.fotografen_id) WHERE namen.id=$id ORDER BY namen.id Asc\");\n //echo(\"SELECT * FROM (fotografen INNER JOIN namen ON fotografen.id=namen.fotografen_id) WHERE namen.id=$id ORDER BY namen.id Asc\");\n\n } else {\n $result = mysqli_query($sqli, \"SELECT * FROM (fotografen INNER JOIN namen ON fotografen.id=namen.fotografen_id) WHERE fotografen_id=$id ORDER BY namen.id Asc\");\n }\n $fetch = mysqli_fetch_array($result);\n $name = $fetch['vorname'] . ' ' . $fetch['namenszusatz'] . ' ' . $fetch['nachname'];\n // echo $name;\n if ($n == 1) $id = $fetch['fotografen_id'];\n if ($fetch['unpubliziert'] == 1) {\n if (auth_level(USER_GUEST_READER)) {\n $t = str_replace($treffer[0][$i], '<span class=\"text2g\"><a href=\"?a=fotograph&amp;id=' . $id . '&amp;lang=' . $_GET['lang'] . '\">' . $name . '</a></span>', $t);\n } else {\n $t = str_replace($treffer[0][$i], $name, $t);\n }\n } else {\n /* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! fotograph */\n $t = str_replace($treffer[0][$i], '<a href=\"?a=fotograph&amp;id=' . $id . '&amp;lang=' . $_GET['lang'] . '\">' . $name . '</a>', $t);\n }\n }\n return (str_replace('<br>', '<br />', $t));\n}", "public function Zapis_vsechny_kolize_v_zaveru_formulare ($pole, $idcka_skolizi, $iducast, $formular){\r\n //zapise kolize formulare \r\n self::Zapis_kolize_formulare($pole,$idcka_skolizi, $iducast, $formular);\r\n //-----------------------------------------------------------------------------\r\n \r\n \r\n //a zjisti a zapise kolize ucastnika pro vsechny formulare \r\n $vsechny_kolize_ucastnika_pole = self::Najdi_kolize_vsechny($iducast);\r\n //echo \"<br>**Vsechny kolize_pole v Zapis_vsechny_kolize..... **\";\r\n //var_dump($vsechny_kolize_ucastnika_pole);\r\n \r\n //znevalidneni vsech kolizi pro ucastnika \r\n self::Znevalidni_kolize_ucastnika_vsechny($iducast);\r\n foreach($vsechny_kolize_ucastnika_pole as $jedna_kolize){\r\n if ($jedna_kolize->kolize_nastala) {\r\n $jedna_kolize->Zapis_jednu_kolizi();\r\n } \r\n }\r\n \r\n}", "function update_tt_1_alkes_form() {\n\t\treturn $this->add_tt_1_alkes_form();\n\t}", "function get_fakultas(){\n\t}", "public function AddFraisForfait()\r\n {\r\n $frais = new Frais();\r\n //Get le mois\r\n $mois = $this->GetMois(date('m'));\r\n //Ajoute a LigneFraisForfait les données suivantes\r\n $frais->AddLigneFraisForfait($_SESSION['uid'],$mois,$_POST['typefrais'],$_POST['quantite']);\r\n\r\n $this->MainPage();\r\n }", "public function show_fatora()\n {\n $this->load->view('admin/finance_accounting/khdamat_mosanda/add_fatora_views/load_page',$_POST);\n }", "public function bernafas()\n \t{\n \t\techo 'Bernafas menggunakan hidung, '.PHP_EOL;\n \t}", "function absender_bestimmen($absender,$db){\n$query1=\"select * from user\";\n\t$antwort1=$db->query($query1);\n\t$antwort1=array_bildung($antwort1);\n\t\n\t$i=0;\n\tforeach($absender[Absender] as $name => $inhalt){\n\tif($inhalt==0){\n\t\t$absender[Absender][$i]=\"Information an Alle !\";\n\t}\n\t\n\t\t$k=0;\n\t\tforeach($antwort1[id] as $name1 => $inhalt1){\n\t\t\tif($inhalt==$inhalt1){\n\t\t\t\t$absender[Absender][$i]=$antwort1[Name][$k].\"&nbsp;&nbsp;\".$antwort1[Vorname][$k].\"&nbsp;&nbsp;- \".$antwort1[Bemerkung][$k].\" -\";\n\t\t\t}\n\t\t$k++;\n\t\t}\n\t$i++;\n\t}\n\treturn $absender;\n}", "function add_tt_1_alkes_form() {\n\t\tinclude_once 'class.xform.inc.php';\n\t\t//if (! $this->get_permission('fill_this')) return $this->intruder();\n\t\tglobal $_SESSION, $_GET, $adodb, $ses;\n\t\t$record = $_GET;\n\t\t$label_arr = $this->tt_1_alkes_label;\n\t\t$optional_arr = $this->optional_arr;\n\n\t\tif($_GET['no_tt']){$field_arr[] = xform::xf('urut_no_tt','C','255');}\n\t\t$field_arr[] = xform::xf('kode_subdit','C','255');\n\t\t$field_arr[] = xform::xf('kode_pendaftar','C','255');\n\t\t$field_arr[] = xform::xf('insert_by','C','255');\n\t\t$field_arr[] = xform::xf('date_insert','N','8');\n\t\t$field_arr[] = xform::xf('jenis_izin_produksi','N','8');\n\n\t\t$rs = $adodb->Execute(\"SELECT * FROM tt_1_alkes WHERE no_tt='{$record['no_tt']}'\");\n\t\tif ($rs && ! $rs->EOF) {\n\t\t\t$value_arr = $rs->fields;\n\t\t\t$optional_arr['no_tt'] = 'protect';\n\t\t\t$mode = 'edit';\n\n\t\t} else {\n\t\t\t$value_arr = array ();\n\t\t\t$mode = 'add';\n\t\t}\n\n\t\t$optional_arr['nama_tt_1_alkes_rule'] = '';\n\t\t$optional_arr['insert_by_rule'] = '';\n\t\t$optional_arr['date_insert_rule'] = '';\n\t\t\n\t\tglobal $adodb;\n\t\t$rsx = $adodb->Execute(\"SELECT no_tt FROM tt_1_alkes ORDER BY no_tt DESC LIMIT 1\");\n\t\t$no_ttx = $rsx->fields['no_tt'];\n\t\t$no_ttx = $no_ttx +1;\n\t\teval($this->save_config);\n\t\t$optional_arr['urut_no_tt'] = 'user_defined';\n\t\t$value_arr['urut_no_tt'] = '<input type=\"text\" name=\"urut_no_tt\" value=\"'.$value_arr['urut_no_tt'].'\" readonly class=\"text\">';\n\t\tif($value_arr['jenis_izin_produksi']==\"0\"){$select1 = \"selected\";$select2 = \"\";}else{if($value_arr['jenis_izin_produksi']==\"1\"){$select1 = \"\";$select2 = \"selected\";}else{$select1 = \"\";$select2 = \"\";}}\n\t\t$optional_arr['jenis_izin_produksi'] = 'user_defined';\n\t\t$value_arr['jenis_izin_produksi'] = '<select name=\"jenis_izin_produksi\" class=\"text\"><option>- Jenis Izin Produksi -</option><option value=\"0\" '.$select1.'>Izin Produksi Alkes</option><option value=\"1\" '.$select2.'>Izin Produksi PKRT</option></select>';\n\t\t$this->subdit_form($config);\n\t\t$this->pendaftar_form($config);\n\n\n\n\t\t$label_arr['submit_val'] = \"Submit\";\n\t\t$label_arr['form_extra'] = \"<input type=hidden name=action value='post$mode'>\"; // default null\n\t\t$label_arr['form_extra'] .= \"<input type=hidden name=oldpkvalue value='{$record['no_tt']}'>\";\n\t\t$label_arr['form_title'] = \"Form \".ucwords($mode).\" Tanda Terima Registrasi Izin Produksi\";\n\t\t$label_arr['form_width'] = '100%';\n\t\t$label_arr['form_name'] = 'theform';\n\n\t\t$_form = new form();\n\t\t$_form->set_config(\n\t\t\tarray (\n\t\t\t\t'field_arr'\t=> $field_arr,\n\t\t\t\t'label_arr'\t=> $label_arr,\n\t\t\t\t'value_arr'\t=> $value_arr,\n\t\t\t\t'optional_arr'\t=> $optional_arr\n\t\t\t)\n\t\t);\n\t\treturn $_form->parse_field();\n\t}", "function form() \r\n {\r\n \t //El formateo va a ser realizado sobre una tabla en la que cada fila es un campo del formulario\r\n $table = &html_table($this->_width,0,2,2);\r\n $table->add_row($this->_showElement(\"Asunto\", '6', \"asunto_de_usuario\", 'Asunto', \"Asunto\", \"left\" )); \r\n $table->add_row($this->_showElement(\"Comentario\", '7', \"comentario\", 'Texto', \"Comentario\", \"left\" )); \r\n \r\n $this->set_form_tabindex(\"Aceptar\", '10'); \r\n $label = html_label( \"submit\" );\r\n $label->add($this->element_form(\"Aceptar\"));\r\n $table->add_row(html_td(\"\", \"left\", $label));\r\n \r\n return $table; \r\n }", "function defform()\n\t{\n\t\t// Definisi elemen form untuk data teman\n\t\t$noteman = array(\n\t\t\t\t\"name\"\t\t=> \"noteman\",\n\t\t\t\t\"id\"\t\t=> \"noteman\",\n\t\t\t\t\"maxlenght\"\t=> \"4\",\n\t\t\t\t\"size\"\t\t=> \"3\",\n\t\t\t\t\"value\"\t\t=> \"\",\n\t\t\t\t\"style\"\t\t=> \"background:red;\"\n\t\t\t);\n\n\t\t$namateman = array(\n\t\t\t\t\"name\"\t\t=> \"namateman\",\n\t\t\t\t\"id\"\t\t=> \"namateman\",\n\t\t\t\t\"maxlenght\"\t=> \"50\",\n\t\t\t\t\"size\"\t\t=> \"35\",\n\t\t\t\t\"value\"\t\t=> \"\",\n\t\t\t\t\"style\"\t\t=> \"background:cyan;\"\n\t\t\t);\n\n\t\t$notelp = array(\n\t\t\t\t\"name\"\t\t=> \"notelp\",\n\t\t\t\t\"id\"\t\t=> \"notelp\",\n\t\t\t\t\"maxlenght\"\t=> \"15\",\n\t\t\t\t\"size\"\t\t=> \"13\",\n\t\t\t\t\"value\"\t\t=> \"\",\n\t\t\t\t\"style\"\t\t=> \"background:cyan;\"\n\t\t\t);\n\n\t\t$email = array(\n\t\t\t\t\"name\"\t\t=> \"email\",\n\t\t\t\t\"id\"\t\t=> \"email\",\n\t\t\t\t\"maxlenght\"\t=> \"35\",\n\t\t\t\t\"size\"\t\t=> \"25\",\n\t\t\t\t\"value\"\t\t=> \"\",\n\t\t\t\t\"style\"\t\t=> \"background:cayn;\"\n\t\t\t);\n\t\t// end definisi\n\n\t\t$atableteman = [\n\t\t\t\"noteman\"\t=> $noteman,\n\t\t\t\"namateman\"\t=> $namateman,\n\t\t\t\"notelp\"\t=> $notelp,\n\t\t\t\"email\"\t\t=> $email\n\t\t];\n\n\t\treturn $atableteman;\n\t}", "public function masodik()\n {\n }", "function formidablepaiement_bank_dsp2_renseigner_facturation($flux){\n\n\t// si c'est une transaction associee a un form\n\tif ($id_transaction = $flux['args']['id_transaction']\n\t AND preg_match(\",form\\d+:,\",$flux['args']['parrain'])\n\t AND $id_formulaires_reponse = $flux['args']['tracking_id']){\n\n\t\t$reponse = sql_fetsel('*','spip_formulaires_reponses','id_formulaires_reponse='.intval($id_formulaires_reponse));\n\t\t$formulaire = sql_fetsel('*','spip_formulaires','id_formulaire='.intval($reponse['id_formulaire']));\n\n\t\tif ($traitements = unserialize($formulaire['traitements'])\n\t\t and isset($traitements['paiement'])) {\n\t\t\t$champs_payeur = [\n\t\t\t\t'auteur' => 'email',\n\t\t\t\t'nom' => 'nom',\n\t\t\t\t'prenom' => 'prenom',\n\t\t\t\t'adresse' => 'adresse',\n\t\t\t\t'code_postal' => 'code_postal',\n\t\t\t\t'ville' => 'ville',\n\t\t\t\t'pays' => 'pays',\n\t\t\t];\n\t\t\tinclude_spip('formidable_fonctions');\n\t\t\tforeach ($champs_payeur as $champ_payeur => $info) {\n\t\t\t\tif (isset($traitements['paiement']['champ_'.$champ_payeur])\n\t\t\t\t\tand $nom_champ = $traitements['paiement']['champ_'.$champ_payeur]) {\n\t\t\t\t\tif ($valeur = calculer_voir_reponse($id_formulaires_reponse, $reponse['id_formulaire'], $nom_champ, '', 'brut')) {\n\t\t\t\t\t\t$flux['data'][$info] = $valeur;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn $flux;\n}", "function view_surat_keputusan_pemutih_penyalur_form() {\n\t\tglobal ${$GLOBALS['session_vars']}, ${$GLOBALS['get_vars']}, $adodb;\n\t\t$field_arr = surat_keputusan_pemutih_penyalur::get_field_set();\n\n\t\t$optional_arr = $this->optional_arr;\n\t\t$optional_arr['id_surat_keputusan_pemutih_penyalur'] = 'protect';\n\n\t\t$record = array (\n\t\t\t'id_surat_keputusan_pemutih_penyalur' => ${$GLOBALS['get_vars']}['id_surat_keputusan_pemutih_penyalur']\n\t\t);\n\t\t$result = surat_keputusan_pemutih_penyalur::get($record);\n\t\t$value_arr = $result[0];\n\t\t$label_arr = $this->surat_keputusan_pemutih_penyalur_label;\n\n\t\t$sqlA = \"SELECT\n\t\tno_surat_keputusan_pemutih_penyalur,\n\t\tid_cek_pemutih\n\t\tFROM\n\t\tsurat_keputusan_pemutih_penyalur\n\t\tWHERE\n\t\tid_surat_keputusan_pemutih_penyalur ='\".$value_arr['id_surat_keputusan_pemutih_penyalur'].\"'\n\t\t\";\n\n\t\t$hasil=$adodb->Execute($sqlA);\n\t\tWHILE(! $hasil->EOF){\n\t\t\t$no_surat_keputusan_pemutih_penyalur = $hasil->fields['no_surat_keputusan_pemutih_penyalur'];\n\t\t\t$id_cek_pemutih = $hasil->fields['id_cek_pemutih'];\n\t\t$hasil->MoveNext();\n\t\t}\n\t\t\n\t\t$sqlB=\"\n\t\tselect\n\t\tsurat_keputusan_pemutih_penyalur.id_surat_keputusan_pemutih_penyalur,\n\t\tsurat_keputusan_pemutih_penyalur.no_surat_keputusan_pemutih_penyalur,\n\t\tsurat_keputusan_pemutih_penyalur.nama,\n\n\t\tsurat_keputusan_pemutih_penyalur.nip,\n\t\tpendaftar_pemutih_penyalur.alamat_pendaftar_pemutih_penyalur,\n\t\tpendaftar_pemutih_penyalur.nama_pabrik,\n\t\tpendaftar_pemutih_penyalur.npwp,\n\t\tpendaftar_pemutih_penyalur.namapenanggungjwb,\n\t\tpendaftar_pemutih_penyalur.alamatgudang,\n\t\tpendaftar_pemutih_penyalur.alamat_bengkel,\n\t\tpendaftar_pemutih_penyalur.alamat_pabrik,\n\t\tpendaftar_pemutih_penyalur.nama_propinsi_1,\n\t\tpendaftar_pemutih_penyalur.nama_propinsi_2,\n\t\tpendaftar_pemutih_penyalur.nama_direktur,\n\n\t\t\n\t\ttt_pemutih_penyalur.urut_no_tt,\n\t\ttt_pemutih_penyalur.kode_subdit,\n\t\ttt_pemutih_penyalur.date_insert,\n\t\tcek_pemutih_penyalur.no_rekomendasi,\n\t\tcek_pemutih_penyalur.date_rekomendasi,\n\t\tcek_pemutih_penyalur.nama_produk,\n\t\tcek_pemutih_penyalur.no_pemohon,\n\t\tcek_pemutih_penyalur.date_pemohon,\n\t\tcek_pemutih_penyalur.no_bap,\n\t\tcek_pemutih_penyalur.date_bap\n\t\tfrom\n\t\tsurat_keputusan_pemutih_penyalur\n\t\tLEFT OUTER JOIN cek_pemutih_penyalur ON(cek_pemutih_penyalur.id_cek_pemutih = surat_keputusan_pemutih_penyalur.id_cek_pemutih)\n\t\tLEFT OUTER JOIN tt_pemutih_penyalur ON(tt_pemutih_penyalur.no_tt = cek_pemutih_penyalur.no_tt)\n\t\tLEFT OUTER JOIN pendaftar_pemutih_penyalur ON(pendaftar_pemutih_penyalur.kode_pendaftar_pemutih_penyalur = tt_pemutih_penyalur.kode_pendaftar_pemutih_penyalur)\n\t\tWHERE\n\t\tsurat_keputusan_pemutih_penyalur.id_cek_pemutih = '\".$id_cek_pemutih.\"'\n\t\t\";\n\t\t//print $sqlB;\n\t\t$rsb = $adodb->Execute($sqlB);\n\t\t$golongan = $rsb->fields['golongan'];\n\t\t$nama_produk = $rsb->fields['nama_produk'];\n\t\t\n\t\t$no_surat_keputusan = $rsb->fields['no_surat_keputusan_pemutih_penyalur'];\n\t\t\n\t\t$nama_perusahaan = $rsb->fields['nama_pabrik'];\n\t\t\n\t\t$nama_propinsi_1 = $rsb->fields['nama_propinsi_1'];\n\t\t$alamat_pendaftar = $rsb->fields['alamat_pendaftar'];\n\t\t$urut_no_tt = $rsb->fields['urut_no_tt'];\n\t\t$nama_penanggung = $rsb->fields['namapenanggungjwb'];\n\t\t$alamat_gudang = $rsb->fields['alamatgudang'];\n\t\t$alamat_pendaftar_pemutih_penyalur = $rsb->fields['alamat_pendaftar_pemutih_penyalur'];\n\t\t$alamat_bengkel = $rsb->fields['alamat_bengkel'];\n\t\t$nama_direktur = $rsb->fields['nama_direktur'];\n\t\t$date_insert = date('d M Y',$rsb->fields['date_insert']);\n\t\t$no_rekomendasi = $rsb->fields['no_rekomendasi'];\n\t\t$no_pemohon = $rsb->fields['no_pemohon'];\n\t\t$date_pemohon = date('d M Y',$rsb->fields['date_pemohon']);\n\t\t$alamat_pabrik = $rsb->fields['alamat_pabrik'];\n\t\t$nama_propinsi_2 = $rsb->fields['nama_propinsi_2'];\n\t\t$date_rekomendasi = date('d M Y',$rsb->fields['date_rekomendasi']);\n\t\t$no_bap = $rsb->fields['no_bap'];\n\t\t$npwp = $rsb->fields['npwp'];\n\t\t$date_bap = date('d M Y',$rsb->fields['date_bap']);\n\t\t$kode_subdit = $rsb->fields['kode_subdit'];\n\t\t$nama = $rsb->fields['nama'];\n\t\t$nip = $rsb->fields['nip'];\n\n\t\t$rsS = $adodb->Execute(\"SELECT keterangan FROM subdit where id_subdit = '\".$kode_subdit.\"'\");\n\t\t$ketS = $rsS->fields[keterangan];\n\n\t\t\n\t\t\n\n\t\tdefine('FPDF_FONTPATH','fpdf/font/');\n\t\trequire('fpdf/fpdf.php');\n\t\t$pdf=new FPDF('P','mm','legal');\n\t\t$pdf->Open();\n\t\t$pdf->AddPage();\n\t\t$pdf->Ln(30);\n\t\t$pdf->SetFont('Arial','B',12);\n\t\t$pdf->Cell(180,7,'KEPUTUSAN MENTERI KESEHATAN REPUBLIK INDONESIA','',0,'C');\n\t\t$pdf->Ln(5);\n\t\t$pdf->Cell(180,7,'NOMOR : '.$no_surat_keputusan.'','',0,'C');\n\t\t$pdf->SetFont('Arial','B',12);\n\t\t$pdf->Ln(10);\n\t\t$pdf->Cell(180,7,'TENTANG','',0,'C');\n\t\t$pdf->Ln(5);\n\t\t$pdf->Cell(180,7,'IZIN PENYALURAN ALAT KESEHATAN','',0,'C');\n\t\t$pdf->Ln(5);\n\t\t$pdf->Cell(180,7,'MENTERI KESEHATAN REPUBLIK INDONESIA','',0,'C');\n\t\t$pdf->Ln(20);\n\t\t$pdf->SetFont('Arial','',12);\n\t\t$pdf->Cell(25,7,'MEMBACA','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(150,7,'1. Surat pemohonan Izin Produksi '.$nama_perusahaan.', '.$alamat_pendaftar_pemutih_penyalur.' '.$no_pemohon.'',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,' tanggal '.$date_pemohon.' perihal permohonan pembaharuan Izin ',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,' Penyalur Alat Kesehatan',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,'2. Keputusan Direktorat Jendral POM Departemen Kesehatan RI '.$no_rekomendasi.'',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,' tanggal '.$date_rekomendasi.' tentang Izin Penyalur Alat Kesehatan',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,' yang diberikan kepada '.$nama_perusahaan.', '.$alamat_pendaftar_pemutih_penyalur.' .',0,'L');\n\t\t$pdf->Ln(10);\n\t\t$pdf->Cell(25,7,'MENIMBANG','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(160,7,'1. Bahwa permohonan '.$nama_perusahaan.' tersebut telah memenuhi',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,' persyaratan dan dapat disetujui.',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,'2. Bahwa oleh karena itu dianggap perlu menerbitkan izin Penyalur',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,' Alat Kesehatan untuk yang bersangkutan',0,'L');\n\t\t$pdf->Ln(10);\n\t\t\n\n\t\t$pdf->Cell(25,7,'MENGINGAT','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(150,7,'1. Undang-undang No.23 Tahun 1992 tentang Kesehatan (Lembaran Negara',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,' Tahun 1992 No. : 100; Tambahan Lembaga Negara No.3495).',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,'2. Keputusan Presiden RI No. 102.Tahun 2001 Tentang Kedudukan, Tugas,',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,' Fungsi, Kewenangan, Susunan Organisasi dan Tata Kerja Departemen.',0,'L');\n\t\t$pdf->Ln();\n\n\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,'3. Keputusan Menteri Kesehatan No. 1277/Menkes/SK/XI/2001 tahun',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,' 2001 tentang Organisasi dan Tata Kerja Departemen Kesehatan ',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,'4. Peraturan Menteri Kesehatan Republik Indonesia Nomor :,',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,' 142/Menkes/Per/III/1991 Tanggal 4 Maret 1991 tentang Penyalur',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,' Alat Kesehatan.',0,'L');\n\n\t\t$pdf->Ln(10);\n\t\t$pdf->Cell(180,7,'MEMUTUSKAN','',0,'C');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'MENETAPKAN','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(15,7,'Pertama','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(160,7,'Memberikan Izin '.$keterangan1.' Kepada :','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(45,7,'Nama perusahaan','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(110,7,''.$nama_perusahaan.'','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(45,7,'NPWP','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(110,7,''.$npwp.'','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(45,7,'Alamat Perusahaan','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(110,7,''.$alamat_pabrik.'','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(45,7,'Nama Direktur/Pimpinan','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(110,7,''.$nama_direktur.'','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(45,7,'Nama Penanggung','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(45,7,'Jawab Teknis','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(110,7,''.$nama_penanggung.'','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(45,7,'Alamat Gudang','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(110,7,''.$alamat_gudang.'','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(45,7,'Alamat ','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(110,7,''.$alamat_bengkel.'','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(45,7,'Bengkel/Workshop ','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(150,7,'Dengan ketentuan sebagai berikut : ','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(150,7,'1. Harus selalu diawasi oleh Penanggung Jawab Teknis yang namanya','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(150,7,' tercantum pada surat keputusan ini.','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(150,7,'2. Harus mematuhi peraturan perundang-undangan yang berlaku.','',0,'L');\n\n\t\t$pdf->AddPage();\n\t\t$pdf->Ln(30);\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(150,7,'3. Melaksanakan dokumentasi pengadaan, penyimpanan dan penyaluran','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(150,7,' alat kesehatan dengan sebaik-baiknya sesuai ketentuan yang berlaku.','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(150,7,'4. Izin Penyalur Alat Kesehatan berlaku untuk seterusnya selama','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(150,7,' perusahaan Penyalur Alat Kesehatan yang bersangkutan masih aktif','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(150,7,' melakukan kegiatan usahanya dan berlaku untuk seluruh Wilayah','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(150,7,' Republik Indonesia.','',0,'L');\n\t\t$pdf->Ln(10);\n\t\t$pdf->Cell(15,7,'Kedua','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(160,7,'Dengan dikeluarkannya keputusan ini, maka keputusan Direktur Jenderal','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(160,7,' Pengawasan Obat dan Makanan Depkes RI '.$no_rekomendasi.' tanggal ','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(160,7,' '.$date_rekomendasi.' tentang Izin Penyalur alat Kesehatan yang diberikan kepada ','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(160,7,\t\t\t' '.$nama_perusahaan.' dinyatakan tidak berlaku lagi. ','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(15,7,'Ketiga','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(160,7,'Surat Keputusan ini berlaku sejak tanggal ditetapkan dengan catatan,','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(160,7,'bahwa akan diadakan peninjauan atau perubahan sebagaimana','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(160,7,'mestinya apabila terdapat kekurangan atau kekeliruan dalam penetapan ini.','',0,'L');\n\t\t$pdf->Ln(10);\n\n\t\t$pdf->Ln(20);\n\t\t$pdf->Cell(100,7,'','',0,'L');$pdf->Cell(30,7,'Ditetapkan di','',0,'L');$pdf->Cell(60,7,' : J a k a r t a ','',0,'L');\n\t\t$pdf->Ln();\n\t\t$tg = date('d M Y');\n\t\t$pdf->Cell(100,7,'','',0,'L');$pdf->Cell(30,7,'Pada tanggal','B',0,'L');$pdf->Cell(40,7,' : '.$tg.'','B',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->SetFont('Arial','B',12);\n\t\t$date_bap = date('d M Y');\n\t\t$kode_subdit = $rsb->fields['kode_subdit'];\n\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(100,7,'a.n MENTERI KESEHATAN REPUBLIK INDONESIA','',0,'C');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(100,7,'DIREKTUR JENDERAL PELAYANAN','',0,'C');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(100,7,'KEFARMASIAN DAN ALAT KESEHATAN','',0,'C');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(100,7,'u.b. DIREKTUR BINA PRODUKSI DAN DISTRIBUSI','',0,'C');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(100,7,'ALAT KESEHATAN','',0,'C');\n\t\t$pdf->Ln(30);\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(10,7,'','',0,'L');$pdf->Cell(80,7,''.$nama.'','B',0,'C');$pdf->Cell(10,7,'','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(10,7,'','',0,'L');$pdf->Cell(80,7,'NIP .'.$nip.'','',0,'C');$pdf->Cell(10,7,'','',0,'L');\n\t\t$pdf->Ln(10);\n\t\t$pdf->SetFont('Arial','',12);\n\t\t$pdf->Cell(80,7,'Salinan Keputusan ini disampaikan kepada Yth :','B',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(180,7,'1. Dirjen Yan Far dan Alkes (sebagai laporan)','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(180,7,'2. Ka Dinas Kesehatan prop. '.$alamat_pendaftar_pemutih_penyalur.'','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(180,7,'3. Dit.Jen Bea dan Cukai Dep Keuangan RI di jakarta','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(180,7,'4. Dep. Perindag RI di Jakarta','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(180,7,'5. Arsip','',0,'L'); \n\t\t\n\n\t\t$pdf->AddPage();\n\t\t$pdf->Ln(30);\n\t\t$pdf->SetFont('Arial','B',12);\n\t\t$pdf->Cell(180,7,'KEPUTUSAN MENTERI KESEHATAN REPUBLIK INDONESIA','',0,'C');\n\t\t$pdf->Ln();\n\t\t$pdf->SetFont('Arial','',12);\n\t\t$pdf->Cell(180,7,''.$no_surat_keputusan.' Tanggal '.$tg.'','',0,'C');\n\t\t$pdf->Ln(10);\n\t\t$pdf->SetFont('Arial','',12);\n\t\t$pdf->Cell(180,7,'DIIZINKAN UNTUK MENYALURKAN ALAT KESEHATAN PRODUKSI DARI : ','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(180,7,''.$nama_produk.'','',0,'L');\n\t\t$pdf->Ln(10);\n\t\t$pdf->Cell(180,7,'Dengan ketentuan bahwa alat kesehatan tersebut harus mendapatkan persetujuan izinr','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(180,7,'edar sebelum di edarkan',0,'L');\n\t\t$pdf->Ln(10);\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(100,7,'a.n MENTERI KESEHATAN REPUBLIK INDONESIA','',0,'C');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(100,7,'DIREKTUR JENDERAL PELAYANAN','',0,'C');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(100,7,'KEFARMASIAN DAN ALAT KESEHATAN','',0,'C');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(100,7,'u.b. DIREKTUR BINA PRODUKSI DAN DISTRIBUSI','',0,'C');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(100,7,'ALAT KESEHATAN','',0,'C');\n\t\t$pdf->Ln(30);\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(10,7,'','',0,'L');$pdf->Cell(80,7,''.$nama.'','B',0,'C');$pdf->Cell(10,7,'','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(10,7,'','',0,'L');$pdf->Cell(80,7,'NIP .'.$nip.'','',0,'C');$pdf->Cell(10,7,'','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Output();\n\n\n\t\t$_form = $lamp;\n\n\t\treturn $_form;\n\t}", "public static function form(){\n\t\treturn \"\";\n\t}", "function definition_after_data($newmsform) {\n $mform = $newmsform->_form;\n\t\t\n if ($mform->isSubmitted()) {\n $someelem = $mform->getElement('salt');\n $value = $someelem->getValue();\n\t\t\techo $value & 'Hello world';\n // Do whatever checking you need\n //$someelem->setValue($someothervalue);\n // etc.\n // add some new elements...\n }\n\t\n\t}", "public function EncabezadoFBM1() {\t\r\n\t\t$fs = 10;\r\n\t\t$ancho = 256;\r\n\t\t$this->SetFont('Arial','',$fs);\r\n\t\t$this->SetFillColor(255, 255, 255);\r\n\t\t$this->SetDrawColor(0, 0, 0);\r\n\t\t\r\n\t\t$text = 'Página '.$this->PageNo().' de {nb}';\r\n\t\t$this->SetFont('Arial','',8);\r\n\t\t$this->Celda(100, 6, 'C.M.S.= U.B.M. - 07(09-08-2010)', 0, 0, '');\r\n\t\t\t\r\n\t\t$this->SetFont('Arial','',$fs);\r\n\t\t$this->Celda(156, 6, $text, 0, 1, 'R', true);\r\n\t\t$y1 = $this->getY();\r\n\t\t$x1 = $this->getX();\r\n\t\t$this->Celda(80, 23, '', 1, 0, '', true);\r\n\t\t$y2 = $this->getY();\r\n\t\t$x2 = $this->getX();\r\n\t\t$this->Celda($ancho-80, 23, '', 1, 1, '', true);\r\n\t\t$this->setY($y1);\r\n\t\t$this->setX($x1);\r\n\t\t$this->Image( 'images/logo_medium.png', 21, 17, 68 );\r\n\t\t$this->setY($y2+5);\r\n\t\t$this->setX($x2+1);\r\n\t\t$this->Formato( 'Helvetica', 'B', 11 );\r\n\t\t$this->Celda($ancho-84, 6, 'FORMULARIO B.M.1', 0, 1, 'C', true);\r\n\t\t$this->Formato( 'Helvetica', '', 9 );\r\n\t\t$this->setX($x2+1);\r\n\t\t$this->Celda($ancho-84, 8, 'INVENTARIO DE BIENES MUEBLES', 0, 1, 'C', true);\r\n\t\t\r\n\t\t$fs = 8;\r\n\t\t$this->SetFont('Arial','',$fs);\r\n\t\t$this->SetFillColor(255, 255, 255);\r\n\t\t$this->SetDrawColor(0, 0, 0);\r\n\t\t$this->Ln(6);\r\n\t\t\r\n\t\t$y = $this->getY();\r\n\t\t$x = $this->getX();\r\n\t\t$this->Celda(256, 28, '', 1, 1, '', true);\r\n\t\t$y2 = $this->getY();\r\n\t\t$this->setY($y+1);\r\n\t\t$this->setX($x+1);\r\n\t\t$this->Celda(30, 5, '1. Entidad Propietaria: ', 0, 0, '', true);\r\n\t\t$this->Celda(215, 5, 'MUNICIPIO SUCRE', 'B', 1, '', true);\r\n\t\t$yt = $this->getY();\r\n\t\t$this->setX($yt+1);\r\n\t\t$this->setX($x+1);\r\n\t\t$this->Celda(20, 5, '2. Servicio: ', 0, 0, '', true);\r\n\t\t$this->Celda(225, 5, $this->capitalizar($this->header['servicio']), 'B', 1, '', true);\r\n\t\t$yt = $this->getY();\r\n\t\t$this->setX($yt+1);\r\n\t\t$this->setX($x+1);\r\n\t\t$this->Celda(50, 5, '3. Unidad de Trabajo o Dependencia: ', 0, 0, '', true);\r\n\t\t$this->Celda(195, 5, $this->capitalizar($this->header['dependencia']), 'B', 1, '', true);\r\n\t\t$yt = $this->getY();\r\n\t\t$this->setX($yt+1);\r\n\t\t$this->setX($x+1);\r\n\t\t$this->Celda(20, 5, '4. Estado: ', 0, 0, '', true);\r\n\t\t$this->Celda(120, 5, $this->capitalizar($this->header['estado']), 'B', 0, '', true);\r\n\t\t$this->Celda(20, 5, '5. Municipio: ', 0, 0, '', true);\r\n\t\t$this->Celda(85, 5, $this->capitalizar($this->header['municipio']), 'B', 1, '', true);\r\n\t\t$yt = $this->getY();\r\n\t\t$this->setX($yt+1);\r\n\t\t$this->setX($x+1);\r\n\t\t$this->Celda(30, 5, '6. Direccion o Lugar: ', 0, 0, '', true);\r\n\t\t$this->Celda(110, 5, $this->capitalizar($this->header['direccion']), 'B', 0, '', true);\r\n\t\t$this->Celda(20, 5, '7. Fecha: ', 0, 0, '', true);\r\n\t\t$this->Celda(85, 5, $this->capitalizar($this->header['fecha']), 'B', 0, '', true);\r\n\t\t$this->setY($y2);\r\n\t}", "function inscription_jesa_direct($form, &$form_state) {\n $form['#tree'] = TRUE;\n\n $form['description'] = array(\n '#type' => 'item',\n '#title' => t('Allow to register a new participant. if the participant does\\'t exist he(she) will be created. For a new member you must provide the name, firstname, the gender and a contact method (mail or phone).'),\n );\n $form['stagiaire'] = array(\n '#type' => 'fieldset',\n '#title' => t('Member'),\n '#collapsible' => TRUE,\n '#collapsed' => FALSE,\n );\n $form['stagiaire']['existant'] = array(\n '#type' => 'fieldset',\n '#title' => t('Existing member'),\n '#collapsible' => TRUE,\n '#collapsed' => FALSE,\n );\n $form['stagiaire']['existant']['user_name'] = array(\n '#title' => t('Existing member'),\n '#type' => 'textfield',\n '#autocomplete_path' => 'inscriptions/jeunes/admin/direct/stagiaire_autoc',\n );\n $form['stagiaire']['nouveau'] = array(\n '#type' => 'fieldset',\n '#title' => t('New member'),\n '#collapsible' => TRUE,\n '#collapsed' => FALSE,\n );\n $selection = array(\n 'nom' => array('required' => FALSE,),\n 'prenom' => array('required' => FALSE,),\n 'date_naissance' => array('required' => FALSE,),\n 'mail' => array('required' => FALSE,),\n 'telephone' => array('required' => FALSE,),\n 'adresse_1' => array('required' => FALSE,),\n 'adresse_2' => array('required' => FALSE,),\n 'sexe' => array('required' => FALSE,),\n );\n $form['stagiaire']['nouveau'] += _inscription_jesa_get_form_user_fields($selection);\n $form['stage'] = array(\n '#type' => 'fieldset',\n '#title' => t('Events'),\n '#collapsible' => TRUE,\n '#collapsed' => FALSE,\n );\n $form['stage']['list'] = array(\n '#type' => 'radios',\n '#options' => _inscription_jesa_get_next_stages(4),\n '#title' => t('Events'),\n );\n $selection = array(\n 'train' => array('required' => FALSE,),\n );\n $form['stage'] += _inscription_jesa_get_form_incscription_fields($selection);\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Submit'),\n ); \n\n return $form;\n}", "function alta_inventario(){\n\t\t\n\t\t$u= new Pr_factura();\n\t\t$u->usuario_id=$GLOBALS['usuarioid'];\n\t\t$u->empresas_id=$GLOBALS['empresaid'];\n\t\t$u->espacios_fisicos_id=$GLOBALS['espacios_fisicos_id'];\n\t\t$u->fecha_captura=date(\"Y-m-d H:i:s\");\n\t\t$u->fecha=date(\"Y-m-d H:i:s\");\n\t\t$u->cproveedores_id=1;\n $u->fecha_pago=date(\"Y-m-d H:i:s\");\n $u->ctipo_factura_id=2;\n\t\t$fecha=explode(\" \", $_POST['fecha']);\n\t\t$u->fecha=$fecha[2].\"/\".$fecha[1].\"/\".$fecha[0];\n\t\tunset($_POST['fecha']);\n\t\tunset($_POST['tipo_entrada']);\n\t\t$related = $u->from_array($_POST);\n\t\t// save with the related objects\n\t\t\n\t\tif($u->save($related)){\n //Dar de alta el lote si el proveedor no es el inicial\n if($u->cproveedores_id>0){\n $l=new Lote();\n $l->fecha_recepcion=$u->fecha;\n $l->espacio_fisico_inicial_id=$u->espacios_fisicos_id;\n $l->pr_factura_id=$u->id;\n $l->save(); \n $u->lote_id=$l->id;\n $u->save();\n }\n }\n\t\t\techo \"<input type='hidden' name='id' id='id' value='$u->id'>\";\n \n\t}", "function action_instituer_forms_donnee_dist() {\n\t//$securiser_action();\n\t$arg = _request('arg');\n\t$hash = _request('hash');\n\t$id_auteur = $auteur_session['id_auteur'];\n\t$redirect = _request('redirect');\n\tif ($redirect==NULL) $redirect=\"\";\n\tif (!include_spip(\"inc/securiser_action\"))\n\t\tinclude_spip(\"inc/actions\");\n\tif (verifier_action_auteur(\"instituer_forms_donnee-$arg\",$hash,$id_auteur)==TRUE) {\n\t\n\t\tlist($id_donnee, $statut) = preg_split('/\\W/', $arg);\n\t\tif (!$statut) $statut = _request('statut_nouv'); // cas POST\n\t\tif (!$statut) return; // impossible mais sait-on jamais\n\n\t\t// if ($GLOBALS['spip_version_code']<1.92)\n\t\t\t// include_spip('inc/forms_compat_191');\n\t\t$id_donnee = intval($id_donnee);\n\n\t\tsql_update('spip_forms_donnees', array('statut'=>_q($statut)), \"id_donnee=\"._q($id_donnee));\n\t\t// spip_query(\"UPDATE spip_forms_donnees SET statut=\"._q($statut).\" WHERE id_donnee=\"._q($id_donnee));\n\t\t\n\t\tif ($rang_nouv = intval(_request('rang_nouv'))){\n\t\t\tinclude_spip(\"inc/forms\");\n\t\t\tForms_rang_update($id_donnee,$rang_nouv);\n\t\t}\n\t}\n}", "static function newform()\n\t{\n\t\treturn '\n\t\t<h2>Neue Wette eintragen</h2>\n\t\t<small>Eine Wette wird erst gestartet wenn der Wetter (das bist DU wenn du eine Wette einträgst) die offene Wette startet.</small>\n\t\t<form action=\"'.getURL(false,false).'\" method=\"post\">\n\t\t<table class=\"border\">\n\t\t<tr><td>\n\t\t<b>Wett Titel:<b> <br />\n\t\t<input type=\"text\" name=\"titel\" class=\"text\" size=\"40\">\n\t\t</td></tr><tr><td>\n\t\t<b>Wette: </b><br />\n\t\t<textarea name=\"wette\" cols=\"40\" rows=\"5\" class=\"text\"></textarea>\n\t\t</td></tr><tr><td>\n\t\t<b>Wetteinsatz: </b><br />\n\t\t<textarea name=\"einsatz\" cols=\"40\" rows=\"3\" class=\"text\"></textarea>\n\t\t</td></tr><tr><td>\n\t\t<b><small>Gültigkeit (in Tagen ab Wettstart, 0 steht für unbegrenzt):</small></b>\n\t\t<br />\n\t\t<input type=\"text\" name=\"dauer\" class=\"text\" size=\"4\">\n\t\t</td></tr><tr><td>\n\t\t<br />\n\t\t<small>\n\t\tEine Wette ist beendet wenn, <b>beide Parteien</b> <br />\n\t\tsich auf einen <b>Sieg oder eine Niederlage einigen</b> können.<br />\n\t\t</small>\n\t\t<br />\n\t\t<input type=\"submit\" value=\"Wette eintragen\" class=\"button\">\n\t\t</td></tr>\n\t\t</table>\n\t\t</form>';\n\t}", "function rekamMedis($nomor_pasien)\n\t{\n\n\t}", "private function klantWijzigenAction()\n {\n //controlleert of er een formulier is ingevuld\n if (isset($_POST) && !empty($_POST))\n {\n //controleer of de juiste gegevens zijn ingevuld die je minimaal moet hebben voor de database\n if (isset($_POST['voornaam']) && !empty($_POST['voornaam']) &&\n isset($_POST['achternaam']) && !empty($_POST['achternaam']))\n {\n $this->model->wijzigKlant();\n //stuurt je terug naar de klantpagina\n $this->model->foutGoedMelding('success', '<strong>Gelukt!</strong> klant is gewijzigd. <span class=\"glyphicon glyphicon-saved\"></span>');\n $this->model->setLog('Klant wijzigen', 'Gelukt');\n $this->forward('klant', 'admin');\n }\n } else\n {\n $klant = $this->model->geefKlant();\n $this->view->set('klant', $klant);\n }\n }", "public function id_fiche(){ return $this->id_fiche; }", "function displayFormNssPatient(){\n\t$contents='<form id=\"rechercher\" name=\"rechercher\" method=\"post\" action=\"index.php\" onSubmit=\"return checkFormRechercher(this);\">\n\t\t <fieldset name=\"rechercher_fds\">\n\t\t <legend>Rechercher un patient</legend>\n\t\t <p><label>Nom : </label>\n\t\t <input type=\"text\" id=\"nom_patient\" name=\"nom_patient\" onBlur=\"checkNomRechercher(this)\"/></p>\n\t\t <p><label>Date de naissance : </label>\n\t\t <input type=\"date\" id=\"date_patient\" name=\"date_patient\" onBlur=\"checkDateRechercher(this)\"/></p>\n\t\t <p><input type=\"submit\" id=\"rechercher\" name=\"rechercher\" value=\"Rechercher patient\"/>\n\t\t <input type=\"reset\" value=\"Effacer\"/></p>\n\t\t </fieldset>\n\t\t </form>';\n\t$contentsError='';\n\trequire_once('gabarit_agent.php');\n}", "function alta_pr_factura(){\n $tipo_descuento = $_POST['tipo_descuento'];\n unset($_POST['tipo_descuento']);\n if ($tipo_descuento == \"porcentaje\") {\n $_POST['porcentaje_descuento'] = $_POST['descuento'];\n $_POST['descuento'] = 0;\n } else {\n //$monto = $_POST['monto_total'] != 0 ? $_POST['monto_total'] : 1;\n $_POST['porcentaje_descuento'] = 0;//100 * $_POST['descuento'] / $monto;\n }\n $u = new Pr_factura();\n $u->usuario_id = $GLOBALS['usuarioid'];\n $u->empresas_id = $GLOBALS['empresaid'];\n $u->espacios_fisicos_id = $GLOBALS['espacios_fisicos_id'];\n $u->fecha_captura = date(\"Y-m-d H:i:s\");\n $fecha = explode(\" \", $_POST['fecha']);\n $u->fecha = $fecha[2] . \"/\" . $fecha[1] . \"/\" . $fecha[0];\n unset($_POST['fecha']);\n unset($_POST['tipo_entrada']);\n $related = $u->from_array($_POST);\n // save with the related objects\n $u->lote_id = 0;\n $u->save($related);\n \n\t/*if ($u->save($related)) {\n //Dar de alta el lote si el proveedor no es el inicial\n if ($u->cproveedores_id > 0) {\n $l = new Lote();\n $l->fecha_recepcion = $u->fecha;\n $l->espacio_fisico_inicial_id = $u->espacios_fisicos_id;\n $l->pr_factura_id = $u->id;\n $l->save();\n $u->lote_id = $l->id;\n $u->save();\n }\n }*/\n echo \"<input type='hidden' name='id' id='id' value='$u->id'>\";\n }", "function form();", "function form_init_elements() \r\n {\r\n //we want an confirmation page for this form.\r\n //$this->set_confirm();\r\n\r\n //Crea una caja de texto llamada nombre y longitud 50\r\n $elemT = new FEText(\"Asunto\", FALSE, 50);\r\n //$elemT->set_style_attribute('align', 'right');\r\n //Le asignamos el id nombre y la tecla de acceso n (ctrl+n)\r\n $elemT->set_attribute(\"id\",\"asunto\");\r\n $elemT->set_attribute(\"accesskey\",\"n\"); \r\n //Añade en el contenedor formulario el elemento creado e inicializado\r\n $this->add_element($elemT);\r\n\t\r\n //Creamos un Area de Texto llamada comentario\r\n $elemTA = new FETextArea(\"Comentario\", FALSE, 10, 60,\"500px\", \"100px\");\r\n $elemTA->set_attribute('wrap', 'physical');\r\n //Le asignamos el id email y la tecla de acceso c (ctrl+c) \r\n $elemTA->set_attribute(\"id\",\"comentario\");\r\n $elemTA->set_attribute(\"accesskey\",\"d\");\r\n //Añade en el contenedor formulario el elemento creado e inicializado\r\n $this->add_element($elemTA);\r\n\r\n //Añade un campo oculto llamado id. En ocasiones este campo se utiliza para indicar ciertas operaciones.\r\n //OJO!! es un punto sensible porque el usuario podría cambiar su valor de forma inexperada para el código.\r\n// $this->add_hidden_element(\"id\");\r\n\r\n //Añade un boton con la acción submit\r\n $submit = $this->_formatElem(\"base_SubmitButton\", \"Aceptar\", \"submit\", agt(\"miguel_Enter\"));\r\n //$submit->set_attribute('id',''); \r\n $submit->set_attribute('accesskey','e'); \r\n $this->add_element($submit); \r\n\t\t\t\t\r\n\t\t\t\t$this->add_hidden_element('status');\r\n \t\t$this->set_hidden_element_value('status', 'new');\r\n }", "function add_surat_keputusan_pemutih_penyalur_form() {\n//\t\tif (! $this->get_permission('fill_this')) return $this->intruder();\n\t\tglobal ${$GLOBALS['session_vars']}, ${$GLOBALS['get_vars']};\n\t\t$field_arr = surat_keputusan_pemutih_penyalur::get_field_set();\n\n//\t\t$value_arr = array ();\n\t\t$label_arr = $this->surat_keputusan_pemutih_penyalur_label;\n\t\t$optional_arr = $this->optional_arr;\n\t\t$optional_arr['keputusan_pemutih_penyalur'] = 'user_defined';\n\t\t$value_arr['keputusan_pemutih_penyalur']= '<textarea rows=\"100\" cols=\"75\" name=\"keputusan_pemutih_penyalur\" class=\"text\"></textarea>';\n\n\t\teval($this->save_config);\n\t\t$this->id_cek_pemutih_form($config);\n\t\t\n\n\n//\t\t$label_arr['submit_val'] = 'Submit';\n\t\t$label_arr['form_extra'] = '<input type=hidden name=action value=\"postadd\">'; // default null\n\t\t$label_arr['form_extra'] .= '<input type=hidden name=opener value=\"'.$GLOBALS[$GLOBALS['get_vars']]['opener'].'\">'; // default null\n\t\t$label_arr['form_extra'] .= '<input type=hidden name=opener_sql value=\"'.$GLOBALS[$GLOBALS['get_vars']]['opener_sql'].'\">'; // default null\n\t\t$label_id_cek_pemutiharr['form_extra'] .= '<input type=hidden name=opener_var value=\"'.$GLOBALS[$GLOBALS['get_vars']]['opener_var'].'\">'; // default null\n\t\t$label_arr['form_title'] = __('Form').' '.__('Add').' Surat Keputusan Pemutihan Izin Penyalur'; // default null\n\t\t$label_arr['form_width'] = '100%'; // default 100%\n\t\t$label_arr['form_name'] = 'theform'; // default form\n\n\t\t$_form = new form();\n\t\t$_form->set_config(\n\t\t\tarray (\n\t\t\t\t'field_arr'\t=> $field_arr,\n\t\t\t\t'label_arr'\t=> $label_arr,\n\t\t\t\t'value_arr'\t=> $value_arr,\n\t\t\t\t'optional_arr'\t=> $optional_arr\n\t\t\t)\n\t\t);\n\t\treturn $_form->parse_field();\n\t}", "function fieldCek()\n {\n $f = array(\n 'noinduk'=>'Nomor Induk' \n );\n return $f;\n }", "public function techo_update($proy_id){\n $proyecto = $this->model_proyecto->get_id_proyecto($proy_id);\n $fase = $this->model_faseetapa->get_id_fase($proy_id);\n $fgestion=$this->model_faseetapa->fase_gestion($fase[0]['id'],$this->gestion);\n $ffofet=$this->model_faseetapa->fase_presupuesto_id($fgestion[0]['ptofecg_id']);\n $ffi = $this->model_faseetapa->fuentefinanciamiento(); ///// fuente financiamiento\n $fof = $this->model_faseetapa->organismofinanciador(); ///// organismo financiador\n\n $tabla ='';\n if(count($ffofet)!=0){\n $tabla.='\n <form action=\"'.site_url('').'/proy/add_ptto_techo\" id=\"form_techo\" name=\"form_techo\" class=\"smart-form\" method=\"post\">\n <input type=\"hidden\" id=\"nffofet\" value=\"'.count($ffofet).'\"/>\n <input type=\"hidden\" name=\"proy_id\" id=\"proy_id\" value=\"'.$proy_id.'\"/>\n <input type=\"hidden\" name=\"ptofecg_id\" id=\"ptofecg_id\" value=\"'.$fgestion[0]['ptofecg_id'].'\"/>\n <input type=\"hidden\" name=\"ptto_gestion\" id=\"ptto_gestion\" value=\"'.$fgestion[0]['pfecg_ppto_total'].'\"/>\n <input type=\"hidden\" id=\"contador-filas\" value=\"'.count($ffofet).'\" />\n <table class=\"table table-bordered\" id=\"tabla\" style=\"width:60%;\">\n <thead>\n <tr>\n <th style=\"width:1%;\">#</th>\n <th style=\"width:38%;\">FUENTE DE FINANCIAMIENTO</th>\n <th style=\"width:38%;\">ORGANISMO FINANCIADOR</th>\n <th style=\"width:20%;\">IMPORTE</th>\n <th style=\"width:3%;\"></th>\n </tr>\n </thead>\n <tbody>';\n $nro=0;\n $suma=0;\n foreach($ffofet as $rowf){\n $ff_ins = $this->model_faseetapa->fuente_insumo($rowf['ffofet_id']); \n $suma=$suma+$rowf['ffofet_monto'];\n $nro++;\n $tabla .='<tr>';\n $tabla .='<td><input type=\"hidden\" name=\"ffofet_id[]\" value=\"'.$rowf['ffofet_id'].'\"/>'.$nro.'</td>';\n $tabla .='<td>\n <select class=\"form-control\" name=\"ffin[]\" id=\"fi'.$nro.'\" title=\"Seleccione fuente de Financiamiento\" required >\n <option value=\"\">Seleccione Fuente financiamiento </option>';\n foreach($ffi as $row){ \n if($rowf['ff_id']==$row['ff_id']){\n $tabla .='<option value=\"'.$row['ff_id'].'\" selected>'.$row['ff_codigo'].' - '.$row['ff_descripcion'].'</option>'; \n }\n else{\n $tabla .='<option value=\"'.$row['ff_id'].'\">'.$row['ff_codigo'].' - '.$row['ff_descripcion'].'</option>'; \n }\n }\n $tabla .=' \n </select>\n </td>';\n $tabla .='<td>\n <select class=\"form-control\" name=\"ofin[]\" id=\"ofi'.$nro.'\" title=\"Seleccione organismo Financiador\" required >\n <option value=\"\">Seleccione Organismo Financiador </option>';\n foreach($fof as $row){\n if($rowf['of_id']==$row['of_id']){\n $tabla .='<option value=\"'.$row['of_id'].'\" selected>'.$row['of_codigo'].' - '.$row['of_descripcion'].'</option>';\n }\n else{\n $tabla .='<option value=\"'.$row['of_id'].'\">'.$row['of_codigo'].' - '.$row['of_descripcion'].'</option>';\n }\n }\n $tabla .=' \n </select>\n </td>';\n $tabla .='<td><input type=\"text\" name=\"importe[]\" id=\"impo'.$nro.'\" value=\"'.$rowf['ffofet_monto'].'\"class=\"form-control\" onkeyup=\"suma_monto_techo();\" onkeypress=\"if (this.value.length < 10) { return numerosDecimales(event);}else{return false; }\" onpaste=\"return false\"/></td>';\n $tabla .='<td align=center>';\n if($this->session->userdata('rol_id')==1){\n if($ff_ins==0){\n $tabla .= '<a href=\"#\" data-toggle=\"modal\" data-target=\"#modal_del_ff\" class=\"btn btn-xs del_ff\" title=\"ELIMINAR REQUERIMIENTO\" name=\"'.$rowf['ffofet_id'].'\" id=\"'.$proy_id.'\">\n <img src=\"'.base_url().'assets/img/delete.png\" width=\"30\" height=\"30\"/>\n </a>';\n }\n }\n $tabla .='</td>';\n $tabla .='</tr>';\n }\n $tabla .='</tbody>\n </table><br>\n <table class=\"table table-bordered\" style=\"width:60%;\">\n <tr>\n <td style=\"width:77%;\"><font color=\"blue\">PRESUPUESTO ASIGNADO '.$this->gestion.'</font></td>\n <td style=\"width:20%;\"><input type=\"text\" name=\"ptto\" id=\"ptto\" value=\"'.$fgestion[0]['pfecg_ppto_total'].'\" class=\"form-control\" disabled/></td>\n <td style=\"width:3%;\"></td>\n </tr>\n <tr>\n <td style=\"width:77%;\"><font color=\"blue\">TOTAL</font></td>\n <td style=\"width:20%;\"><input type=\"text\" name=\"total\" id=\"total\" value=\"'.$suma.'\" class=\"form-control\" disabled/></td>\n <td style=\"width:3%;\"></td>\n </tr>\n <tr>\n <td style=\"width:77%;\"><font color=\"blue\">SALDO</font></td>\n <td style=\"width:20%;\"><input type=\"text\" name=\"saldo\" id=\"saldo\" value=\"'.($fgestion[0]['pfecg_ppto_total']-$suma).'\" class=\"form-control\" disabled/></td>\n <td style=\"width:3%;\"></td>\n </tr>\n </table>\n <footer>\n <div id=\"but\">\n <button type=\"button\" name=\"mod_tech\" id=\"mod_tech\" class=\"btn btn-primary\">Modificar Techo Presupuestario</button>\n </div>\n </footer>\n </form>';\n\n ?>\n <script type=\"text/javascript\">\n function suma_monto_techo(){\n ptotal = parseFloat($('[name=\"ptto_gestion\"]').val());\n nro = parseFloat($('[id=\"nffofet\"]').val());\n new_nro = parseFloat($('[id=\"contador-filas\"]').val());\n var suma=0;\n // alert(nro+new_nro)\n for (var i = 1; i <= new_nro; i++) {\n suma=parseFloat(suma)+parseFloat($('[id=\"impo'+i+'\"]').val());\n }\n\n $('[name=\"total\"]').val((suma).toFixed(2));\n tot = parseFloat($('[name=\"total\"]').val());\n \n $('[name=\"saldo\"]').val((parseFloat(ptotal)-parseFloat(tot)).toFixed(2));\n saldo = parseFloat($('[name=\"saldo\"]').val());\n\n /*if(isNaN(tot) || tot=='' || tot<0){\n $('#but').slideUp();\n }\n else{\n if(isNaN(saldo) || saldo<0){\n $('#but').slideUp();\n }\n else{\n $('#but').slideDown();\n } \n }*/\n }\n </script>\n <?php \n }\n\n return $tabla;\n }", "public function saisirFraisHorsForfait($mois) {\n $titreVue = \"Ajout d'un Frais Hors Forfait de la fiche \" . $mois;\n $idVisiteur = Session::get('id');\n\t\t$unFraisHorsForfait = (object) Array(\n 'id' => 0,\n 'idVisiteur' => $idVisiteur,\n 'mois' => $mois,\n 'libelle' => '',\n 'date' => '',\n 'montant' => 0\n );\n // Affiche le formulaire en lui fournissant les données à afficher\n return view('formFraisHorsForfait', compact('unFraisHorsForfait', 'mois', 'titreVue'));\n }", "function factures_autoriser(){}", "function ver_techo_ptto($id_p,$id_fg){\n $data['menu']=$this->menu(2);\n $data['proyecto'] = $this->model_proyecto->get_id_proyecto($id_p); ///// datos del proyecto\n if(count($data['proyecto'])!=0){\n $data['titulo_proy']=strtoupper($data['proyecto'][0]['tipo']);\n $data['fase'] = $this->model_faseetapa->get_id_fase($id_p); ///// datos fase encendida\n $data['techo']=$this->techo_update($id_p);\n $data['ffi'] = $this->model_faseetapa->fuentefinanciamiento(); ///// fuente financiamiento\n $data['fof'] = $this->model_faseetapa->organismofinanciador(); ///// organismo financiador\n\n $this->load->view('admin/programacion/proy_anual/fase/fase_edit_ptto', $data); \n }\n else{\n redirect('admin/dashboard');\n }\n }", "function nueva_fase($id_p){\n $data['menu']=$this->menu(2);\n $data['proyecto'] = $this->model_proyecto->get_id_proyecto($id_p);\n\n if(count($data['proyecto'])!=0){\n $data['fase']=$this->model_faseetapa->fases();\n $diferencia=($data['proyecto'][0]['fin']-$data['proyecto'][0]['inicio']);\n if($diferencia==0){\n $data['dif']='<div class=\"alert alert-info alert-block\">FASE ACTUAL - ANUAL</div>';\n }\n elseif ($diferencia!=0) {\n $data['dif']='<div class=\"alert alert-info alert-block\">FASE ACTUAL - PLURIANUAL</div>'; \n }\n\n $data['unidad_org'] = $this->model_proyecto->list_unidad_org(); //// unidad organizacional\n $data['f_top'] = $this->model_proyecto->responsable_proy($id_p,'1'); //// unidad ejecutora\n $this->load->view('admin/programacion/proy_anual/fase/form_fase_add', $data); \n }\n else{\n redirect('admin/dashboard');\n }\n }", "function form_karta($form_data,$dct) {\n\t\n\t$formPole1 = '\n\t\t\t<input type=\"checkbox\" CHECK name=\"N___hidden[###hid]\" value=\"1\" class=\"f10\" style=\"margin-right: 40px;\">\n\t\t\t<input type=\"text\" name=\"N___poradi[###por]\" value=\"###porV\" style=\"width: 25px;\" class=\"f10\">\n\t\t\t<input type=\"text\" name=\"N___parametr[###par]\" value=\"###parV\" style=\"width: 190px;\" class=\"f10\">\n\t\t\t<input type=\"text\" name=\"N___jednotka[###jed]\" value=\"###jedV\" style=\"width: 30px;\" class=\"f10\">\n\t\t\t';\n\t\n\t$dParametr = '<input type=\"checkbox\" name=\"delete[###del]\" value=\"###del\" class=\"f10\">odstranit<br />\n\t';\n\t\n\t$formPole='';\n\t$poradi = 0;\n\t\n\t\n\tif(!empty($form_data['id'])) { // editace existujiciho\n\t\n\t\t$form_data['deletebutton'] = button('button','Zrušit vzor produktového listu','class=\"butt_red\" onclick=\"return del()\"');\n\t\t\n\t\t\n\t\t// id nazev lang pozn\n\t\t$query = \"SELECT nazev, pozn \n\t\tFROM \".T_PARAMETRY1.\" WHERE id = \".$form_data['id'].\" LIMIT 0,1\";\n\t\t$v = my_DB_QUERY($query,__LINE__,__FILE__);\n\t\twhile ($z = mysql_fetch_array($v)) {\n\t\t\n\t\t\t$form_data['nazev'] = $z['nazev'];\n\t\t\t$form_data['pozn'] = $z['pozn'];\n\t\t\n\t\t}\n\t\t\n\t\t// id id_karta nazev jednotka poradi\n\t\t$query = \"SELECT id, nazev, hidden, jednotka, poradi \n\t\tFROM \".T_PARAMETRY2.\" WHERE id_karta = \".$form_data['id'].\" ORDER BY poradi\";\n\t\t$v = my_DB_QUERY($query,__LINE__,__FILE__);\n\t\t\n\n\t\t\n\t\twhile ($z = mysql_fetch_array($v)) {\n\t\t\n\t\t\t$id = $z['id'];\n\t\t\t$parametr = $z['nazev'];\n\t\t\t$jednotka = $z['jednotka'];\n\t\t\t$poradi = $z['poradi'];\n\t\t\t$check = $z['hidden'];\n\t\t\t\n\t\t\tif($check==1)$check='checked=\"checked\"';\n\t\t\telse $check=''; \n\t\t\t\n\t\t\t$trans = array('###hid'=>$id,'CHECK'=>$check,'###del'=>$id,'N___'=>'','###por'=>$id,'###porV'=>$poradi,'###par'=>$id,'###parV'=>$parametr,'###jed'=>$id,'###jedV'=>$jednotka);\n\t\t\t$formPole .= strtr($formPole1, $trans);\n\t\t\t$formPole .= strtr($dParametr, $trans);\n\t\t\n\t\t}\n\t\n\t}\n\t\n\t\n\t\n\tfor ($i = $poradi + 1; $i <= $poradi + 10; $i++) {\n\t\n\t\t$trans = array('###por'=>$i,'CHECK'=>'','###porV'=>$i,'###par'=>$i,'###parV'=>'','###jed'=>$i,'###jedV'=>'');\n\t\t$formPole .= strtr($formPole1, $trans).'<br />';\n\t\n\t}\n\t\n\t\n\t$formPole .= '<br />Další parametry můžete přidat později.';\n\t\n\t\n\t\n\t\n\tif(empty($_GET['P']))$_GET['P']='';\n\t\n\t$form = \"\n\t\n\t<SCRIPT LANGUAGE=\\\"JavaScript\\\">\n\t<!--\n\t\n\t\n\tfunction validate(form1) {\n\t\n\t\tif (form1.nazev.value == \\\"\\\") { alert(\\\"Vyplňte název produktového listu\\\"); form1.nazev.focus(); return false; }\n\t\t// else if (form1.id_parent.value == \\\"0\\\") { alert(\\\"Musíte vybrat některou z vnořených úrovní\\\"); form1.id_parent.focus(); return false; }\n\t\t// else if (form1.dph.value == \\\"\\\") { alert(\\\"Zatrhněte výši DPH\\\"); form1.dph.focus(); return false; }\n\t\telse return true;\n\t\n\t}\n\t\n\t// odstraneni zaznamu\n\tfunction del() {\n\t\n\t\tif (!confirm(\\\"Opravdu zrušit vzor produktového listu?\\\"))\n\t\t\treturn false;\n\t\telse\n\t\t\tlocation = \\\"\".MAIN_LINK.\"&f=products_parameters&deleteT=\".$form_data['id'].\"&P=\".$_GET['P'].\"\\\";\n\t\n\t}\n\t\n\t\n\t\n\t// -->\n\t</SCRIPT>\n\t\n\t\n\t<br /><br />\n\t\n\t\n\t<form action=\\\"\\\" method=\\\"post\\\" enctype=\\\"multipart/form-data\\\" \n\t\tonSubmit=\\\"return validate(this)\\\">\n\t\n\t<input type=\\\"hidden\\\" name=\\\"id\\\" value=\\\"\".$form_data['id'].\"\\\">\n\t\n\t\n\t<table class='admintable nobg' border=\\\"0\\\" cellspacing=\\\"5\\\" cellpadding=\\\"0\\\">\n\t\n\t\n\t<tr>\n\t\t<td>\n\t\t\tNázev<br />\n\t\t\t<span class=\\\"f10i\\\">(max. 255 znaků)</span></td>\n\t\t<td>\n\t\t\t<input type=\\\"text\\\" name=\\\"nazev\\\" value=\\\"\".$form_data['nazev'].\"\\\" \n\t\t\tstyle=\\\"width: 100%;\\\" class=\\\"f10\\\"></td>\n\t</tr>\n\t\n\t\n\t<tr>\n\t\t<td>Poznámka</td>\n\t\t<td>\n\t\t\t<textarea name=\\\"pozn\\\" style=\\\"width: 100%; height: 60px;\\\" title=\\\"\\\">\".$form_data['pozn'].\"</textarea></td>\n\t</tr>\n\t\n\t<tr>\n\t\t<td><br /><br /></td>\n\t\t<td><br /><br />nezobrazovat veřejně na detailu produktu</td>\t\t\n\t</tr> \t\n\t\n\t<tr>\n\t\t<td valign=\\\"top\\\">Pořadí - parametr - měrná jednotka<br /><br />\n\t\t\t<span class=\\\"f10\\\">např.<br />1 - délka - mm<br />2 - šířka - mm<br />3 - hmotnost - kg</span></td>\n\t\t<td>$formPole</td>\n\t</tr>\n\t\n\t\n\t<tr>\n\t\t<td colspan=\\\"2\\\"><br /><br /><br />\n\t\t\t\n\t\t\t\".SAVE_BUTTON.\"\n\t\t\t\n\t\t\t\".$form_data['deletebutton'].\"\n\n\t\t</td>\n\t</tr>\n\t\n\t</table>\n\t\n\t</form>\";\n\t\n\treturn $form;//\n\n}", "private function wachtwoordWijzigenAction()\n {\n //controlleert of er een formulier is ingevuld\n if (isset($_POST) && !empty($_POST))\n {\n //krijgt opmerkingen terug\n $opmerking = $this->model->wijzigWachtwoord();\n $this->model->foutGoedMelding('success', '<strong>Gelukt!</strong> wachtwoord is gewijzigd. <span class=\"glyphicon glyphicon-saved\"></span>');\n $this->model->setLog('Wachtwoord wijzigen', 1);\n $this->view->set('opmerking', $opmerking);\n }\n }", "public function afmelden()\n {\n return true;\n }", "function formMembreJuryEpreuve(){\n $this->vue->titre = 'Affecter des membres du jury à une épreuve';\n $tableMembresJuryEpreuve=new Zoraux_Modeles_MembreJuryEpreuve();\n $membreJuryEpreuve=$tableMembresJuryEpreuve->newMembreJuryEpreuve();\n $this->vue->membreJuryEpreuve=$membreJuryEpreuve;\n \n $tableMembresJury=new Zoraux_Modeles_MembreJury();\n $this->vue->professeurs=$tableMembresJury->where('professeur=?',array('1'));\n $this->vue->professionnels=$tableMembresJury->where('professionnel=?',array('1'));\n \n $tableEpreuves=new Zoraux_Modeles_Epreuve();\n $this->vue->epreuves=$tableEpreuves->liste();\n \n $this->informations();\n }", "function modificar_fase($pfec_id){\n $data['menu']=$this->menu(2);\n $fase=$this->model_faseetapa->get_fase($pfec_id);\n if(count($fase)==1){\n $data['proyecto'] = $this->model_proyecto->get_id_proyecto($fase[0]['proy_id']); //// Datos del proyecto\n $data['fase_proyecto'] = $this->model_faseetapa->fase_etapa($pfec_id,$fase[0]['proy_id']); //// Datos de la fase activa\n \n $data['fase']=$this->model_faseetapa->fases();\n $diferencia=($data['proyecto'][0]['fin']-$data['proyecto'][0]['inicio']);\n if($diferencia==0){\n $data['dif']='<div class=\"alert alert-info alert-block\">FASE ACTUAL - ANUAL</div>';\n }\n elseif ($diferencia!=0) {\n $data['dif']='<div class=\"alert alert-info alert-block\">FASE ACTUAL - PLURIANUAL</div>'; \n }\n\n $data['nro_fg'] = $this->model_faseetapa->nro_fasegestion($pfec_id);\n $data['nro_fg_act'] = $this->model_faseetapa->nro_fasegestion_actual($pfec_id,$this->gestion); \n\n $data['f_gest'] = $this->model_faseetapa->fase_gestion($pfec_id,$this->gestion);\n \n\n $this->load->view('admin/programacion/proy_anual/fase/form_fase_update', $data);\n }\n else{\n redirect('admin/dashboard');\n }\n\n }", "public function valordelospasajesplus();", "function muestraFormularioMetas(){\n $name = $titulo = $urlfolio = \"\";\n $folio = $random = 0;\n if($this->data['folio'] != \"\"){\n $tmp=explode('-',$this->data['folio']);\n if($this->opc == 9){\n $name=\"guardaAvance\";\n $arrayProyecto = $this->regresaDatosProyecto($tmp[0]);\n $folio = $tmp[0];\n $urlfolio=$this->data['folio'];\n $titulo=CAPTURAREPORTEDEMETAS;\n $random=rand(1,10000000);\n }\n else{\n $name=\"actualizaAvance\";\n $arrayProyecto = $this->regresaDatosProyecto($tmp[1]);\n $folio = $tmp[1];\n $urlfolio=$tmp[1].\"-\".$tmp[2];\n $random=$tmp[0];\n }\n $this->arrayNotificaciones = $this->notificaciones ();\n $titulo = $arrayProyecto['proyecto'];\n $resultados = $this->consultaActividades($this->pages->limit);\n $arrayDisabled = $this->recuperaPermisos($arrayProyecto['unidadResponsable_id'],$arrayProyecto['programa_id']); \n $trimestreId = $this->obtenTrimestre($arrayDisabled);\n $arrayUnidadOperativas=$this->catalogoUnidadesOperativas($this->db);\n\t\t\t$campoTrimestre=\"estatus_avance_entrega\";\n\t\t\tif($campoTrimestre > 1){\n\t\t\t\t$campoTrimestre=\"estatus_avance_entrega\".$campoTrimestre;\n\t\t\t}\n\t\t\t\n $this->buffer=\"\n <input type='hidden' name='noAtributos' id='noAtributos' value='\".( count($resultados) + 0).\"'>\n <input type='hidden' name='valueId' id='valueId' value='\".($this->arrayAvanceMetas['id'] + 0).\"'>\n <input type='hidden' name='folio' id='folio' value='\".$folio.\"'>\n <input type='hidden' name='random' id='random' value='\".$random.\"'>\n <input type='hidden' name='trimestreId' id='trimestreId' value='\".$trimestreId.\"'>\n <div class='panel panel-danger spancing'>\n <div class='panel-heading titulosBlanco'>\".$titulo.\"</div>\n <div class='panel-body'>\n <table align='center' border='0' class='table table-condensed'>\n <tr class='active alturaComponentesA'>\n <td class='tdleft' colspan='2' width='25%'>\".PROYECTO.\"</td>\n <td class='tdleft' colspan='2'>\".$arrayProyecto['proyecto'].\"</td>\n </tr>\n <tr class='alturaComponentesA'>\n <td class='tdleft' colspan='2' >\".UNIDADOPERATIVA.\"</td>\n <td class='tdleft' colspan='2'>\".$arrayUnidadOperativas[$arrayProyecto['unidadOperativaId']].\"</td>\n </tr>\n <tr class='alturaComponentesA'>\n <td class='tdleft' colspan='2' >\".TRIMESTRE.\"</td>\n <td class='tdleft' colspan='2'>\".$trimestreId.\"</td>\n </tr>\n \n </table>\n <table width='100%' class='table'>\n <tr>\n <td class='tdcenter fondotable' rowspan='2' width='30%'>\".ACTIVIDAD.\"</td>\n <td colspan='2' class='tdcenter fondotable' width='10%'>\".TRIMESTRE1C.\"</td>\n <td colspan='2' class='tdcenter fondotable' width='10%'>\".TRIMESTRE2C.\"</td>\n <td colspan='2' class='tdcenter fondotable' width='10%'>\".TRIMESTRE3C.\"</td>\n <td colspan='2' class='tdcenter fondotable' width='10%'>\".TRIMESTRE4C.\"</td>\n <td colspan='2' class='tdcenter fondotable' width='10%'>\".TOTAL.\"</td>\n <td class='tdcenter fondotable' rowspan='2' width='14%'>\".MEDIDA.\"</td>\n <td class='tdcenter fondotable' rowspan='2' width=' 8%'>\".ucfirst(substr(PONDERACION,0,4)).\"</td>\n <td class='tdcenter fondotable' rowspan='2' width=' 8%'>\".ucfirst(substr(TIPOACT,8,3)).\"</td>\n </tr>\n <tr>\n <td class='tdcenter fondotable' width='5%'>\".P.\"</td>\n <td class='tdcenter fondotable' width='5%'>\".R.\"</td>\n <td class='tdcenter fondotable' width='5%'>\".P.\"</td>\n <td class='tdcenter fondotable' width='5%'>\".R.\"</td>\n <td class='tdcenter fondotable' width='5%'>\".P.\"</td>\n <td class='tdcenter fondotable' width='5%'>\".R.\"</td>\n <td class='tdcenter fondotable' width='5%'>\".P.\"</td>\n <td class='tdcenter fondotable' width='5%'>\".R.\"</td>\n <td class='tdcenter fondotable' width='5%'>\".P.\"</td>\n <td class='tdcenter fondotable' width='5%'>\".R.\"</td>\n </tr>\";\n $contadorTab1=1;\n $contadorTab2=2;\n $contadorTab3=3;\n $contadorTab4=4; \n $contadorRen = $total = $totales = $rtotal = $rtotales = 0;\n $disabled_t1 = $disabled_t2 = $disabled_t3 = $disabled_t4 = \"\";\n $fondo_t1 = 'background-color:#ffff99;';\n $fondo_t2 = 'background-color:#ffff99;';\n $fondo_t3 = 'background-color:#ffff99;';\n $fondo_t4 = 'background-color:#ffff99;';\n if($arrayDisabled[1]['dis'] + 0 == 0){\n $disabled_t1=\" readonly ='true' \";\n $fondo_t1 = '';\n }\n if($arrayDisabled[2]['dis'] + 0 == 0){\n $disabled_t2=\" readonly ='true' \";\n $fondo_t2 = '';\n }\n if($arrayDisabled[3]['dis'] + 0 == 0){\n $disabled_t3=\" readonly ='true' \";\n $fondo_t3 = '';\n }\n if($arrayDisabled[4]['dis'] + 0 == 0){\n $disabled_t4=\" readonly ='true' \";\n $fondo_t4 = '';\n }\n $arrayEditable=array(1,3,4,6,7,8,9);\n \n foreach($resultados as $id => $resul){\n $rand = rand(1,99999999999999);\n $class=\"\";\n if($contador % 2 == 0)\n $class=\"active\";\n $campo=\"estatus_avance_entrega_t\".$trimestreId; \n $idEstatusActividad =$resul[$campo] ;\n $varTemporalId = $resul['id'].\"-\".$arrayProyecto['id'].\"-\".$trimestreId;\n $varTemporalIdE = $resul ['id'] . \"-\" . $arrayProyecto['id'].\"-\".$trimestreId.\"-\".$idEstatusActividad; \n $idact= $resul['id'];\n $totales = $totales + $this->arrayDatos[$idact][5] + 0;\n $tmp=\"\";\n \n if($resul['tipo_actividad_id'] != 0){\n $this->buffer.=\"\n <tr class=' $class alturaComponentesA'>\n <td class='tdleft' rowspan='2'>\".$resul['actividad'].\"</td>\n <td class='tdcenter numMetas form-control'>\".($this->arrayDatos[$idact][1] + 0).\"</td>\n <td class='tdcenter'>\n <input type='text' class='form-control validanumsMA' tabindex='\".$contadorTab1.\"'\n id='r-\".$contadorRen.\"-\".$resul['id'].\"-\".$contadorTab1.\"-1-\".$resul['tipo_actividad_id'].\"' maxlength='10' value='\".($this->arrayAvanceMetas[$idact][1] + 0).\"' style='width:35px;$fondo_t1' \".$disabled_t1.\">\n </td>\n <td class='tdcenter numMetas form-control'>\".($this->arrayDatos[$idact][2] + 0).\"</td>\n <td class='tdcenter'>\n <input type='text' class='form-control validanumsMA' \".$this->disabled.\" tabindex='\".$contadorTab2.\"'\n id='r-\".$contadorRen.\"-\".$resul['id'].\"-\".$contadorTab2.\"-2-\".$resul['tipo_actividad_id'].\"' maxlength='10' value='\".($this->arrayAvanceMetas[$idact][2] + 0).\"' style='width:35px;$fondo_t2' \".$disabled_t2.\"> \n </td>\n <td class='tdcenter numMetas form-control'>\".($this->arrayDatos[$idact][3] + 0).\"</td>\n <td class='tdcenter'>\n <input type='text' class='form-control validanumsMA' \".$this->disabled.\" tabindex='\".$contadorTab3.\"'\n id='r-\".$contadorRen.\"-\".$resul['id'].\"-\".$contadorTab3.\"-3-\".$resul['tipo_actividad_id'].\"' maxlength='10' value='\".($this->arrayAvanceMetas[$idact][3] + 0).\"' style='width:35px;$fondo_t3' \".$disabled_t3.\">\n </td>\n <td class='tdcenter numMetas form-control'>\".($this->arrayDatos[$idact][4] + 0).\"</td>\n <td class='tdcenter'>\n <input type='text' class='form-control validanumsMA' \".$this->disabled.\" tabindex='\".$contadorTab4.\"'\n id='r-\".$contadorRen.\"-\".$resul['id'].\"-\".$contadorTab4.\"-4-\".$resul['tipo_actividad_id'].\"' maxlength='10' value='\".($this->arrayAvanceMetas[$idact][4] + 0).\"' style='width:35px;$fondo_t4' \".$disabled_t4.\">\n </td>\n <td class='tdcenter' rowspan='2'>\n <span id='total\".$contadorRen.\"' class='totales'>\".number_format(($this->arrayDatos[$idact][1] + $this->arrayDatos[$idact][2] + $this->arrayDatos[$idact][3] + $this->arrayDatos[$idact][4] + 0),0,',','.').\"</span>\n </td>\n <td class='tdcenter' rowspan='2'>\n <span id='rtotal\".$contadorRen.\"' class='totales'>\".number_format($this->arrayAvanceMetas[$idact][1] + $this->arrayAvanceMetas[$idact][2] + $this->arrayAvanceMetas[$idact][3] +$this->arrayAvanceMetas[$idact][4],0,',','.').\"</span>\n </td>\n <td class='tdcenter'>\".$resul['medida'].\"</td>\n <td class='tdcenter'>\".$resul['ponderacion'].\"</td>\n <td class='tdcenter'>\".$resul['tipo_actividad_id'].\"</td>\n </tr>\n <tr>\n <td colspan='8' class='tdleft $class'>\".$this->regresaUltimoComentario($arrayProyecto['id'],$resul['id']).\"<br>\".$this->regresaNoAdjuntos($arrayProyecto['id'],$resul['id']).\"<span id='avance'></span></td>\";\n $rtotales = $rtotales + $this->arrayAvanceMetas[$idact][5]; \n if($this->session['rol'] == 1 || $this->session['rol'] >=3){\n $this->buffer.=\"<td class='tdcenter $class' colspan='3'>\"; \n if($this->session['rol'] == 1 || $this->session['rol'] >=4){\n $classb=\"mComentariosConsulta\";\n if(in_array($arrayProyecto[$campoTrimestre],$arrayEditable)){\n $classb=\"mComentarios\";\n }\n $this->buffer.=\"<button type='button' class='btn btn-success btn-sm $classb' id='\".$resul['proyecto_id'].\"-\".$resul['id'].\"-\".$trimestreId.\"'><span class='glyphicon glyphicon-pencil'></span>&nbsp;&nbsp;Comentarios</button>\";\n }\n if($this->session['rol'] >=3){\n $this->buffer.=\"<button type='button' class='btn btn-warning btn-sm masFile' id='m-\".$resul['proyecto_id'].\"-\".$resul['id'].\"-\".$trimestreId.\"'>&nbsp;&nbsp;M&aacute;s</button>\";\n }\n $this->buffer.=\"</td>\";\n }\n if($this->session['rol'] == 2){\n $this->buffer.=\"\n <td class='tdcenter $class'><button type='button' class='btn btn-success btn-sm mComentariosConsulta' id='\".$resul['proyecto_id'].\"-\".$resul['id'].\"-\".$trimestreId.\"'><span class='glyphicon glyphicon-pencil'></span>&nbsp;&nbsp;Comentarios</button></td>\n <td class='tdcenter $class'>\n <button type='button' class='btn btn-default aprobadosavances' data-toggle='tooltip' data-placement='bottom'\n title='\".PROYECTOAPROBADO.\"' id='aaa-\".$varTemporalIdE.\"'><span class='glyphicon glyphicon-ok'></span>\n </button>\n </td>\n <td class='tdcenter $class'>\n <button type='button' class='btn btn-default noaprobadosavances' data-toggle='tooltip' data-placement='bottom'\n title='\".PROYECTONOAPROBADO.\"' id='ann-\".$varTemporalIdE.\"'><span class='glyphicon glyphicon-remove'></span>\n </button></td>\";\n }\n \n \n $this->buffer.=\"</tr><tr><td colspan='11'>&nbsp;</td>\";\n if( ($idEstatusActividad!= 3) && ($idEstatusActividad!= 6) && ($idEstatusActividad!= 9)){\n $this->buffer .= \"<td class='tdleft' colspan='3' id='v-\".$varTemporalIdE.\"' style='background-color:\" . $this->arrayNotificaciones [$idEstatusActividad] ['color'] . \";color:#000000;'>\" . $this->arrayNotificaciones [$idEstatusActividad] ['nom'] . \"</td>\";\n }\n else{\n $this->buffer .= \"<td class='tdleft verComentariosNoAprobados' colspan='3' id='v-\".$varTemporalIdE.\"' style='cursor:pointer;background-color:\" . $this->arrayNotificaciones [$idEstatusActividad] ['color'] . \";color:#000000;' data-toggle='tooltip' data-placement='bottom' title='\" . TOOLTIPMUESTRACOMENTARIOS . \"'>\" . $this->arrayNotificaciones [$idEstatusActividad] ['nom'] . \"</td>\";\n }\n $this->buffer .= \"</tr>\";\n $contadorTab1 = $contadorTab1 + 4;\n $contadorTab2 = $contadorTab2 + 4;\n $contadorTab3 = $contadorTab3 + 4;\n $contadorTab4 = $contadorTab4 + 4;\n $contadorRen++;\n $contador++;\n }\n }\n $contadorTab4++;\n \n /*$this->buffer.=\"<tr><td colspan='8'></td>\n <td class='tdleft'>Total:</td><td class='tdcenter'><span id='totales' class='totales'>\".($totales + 0).\"</span></td>\n <td class='tdcenter'><span id='rtotales' class='totales'>\".($rtotales + 0).\"</span></td>\n <td colspan='3'>&nbsp;</td></tr></table>*/\n $this->buffer.=\"</table>\n </div>\n <div class=\\\"central\\\"><br>\"; \n if( (in_array($arrayProyecto[$campoTrimestre],$arrayEditable)) or ($this->session['rol']<=2 or $this->session['rol']<=5) ){\n \n $this->buffer.=\"<button type='button' tabindex='\".$contadorTab4.\"' class='btn btn-success btn-sm' id='\".$name.\"' name='\".$name.\"'><span class='glyphicon glyphicon-floppy-saved'></span>&nbsp;\".AGREGAREPORTEMETA.\"</button>&nbsp;&nbsp;\";\n }\n $this->buffer.=\"<button type='button' class='btn btn-primary btn-sm'\n onclick=\\\"location='\".$this->path.\"aplicacion.php?aplicacion=\".$this->session ['aplicacion'].\"&apli_com=\".$this->session ['apli_com'].\"&opc=0'\\\">\".REGRESA.\"</button>\n </div>\".$this->procesando(4).\"<br></div>\";\n }else{\n header(\"Location: \".$this->path.\"aplicacion.php?aplicacion=\".$this->session ['aplicacion'].\"&apli_com=\".$this->session ['apli_com'].\"&opc=1\");\n } \n }", "function show_forms()\n {\n }", "public function wijzigBeheerder() {\n $beheerder = new stdClass();\n $beheerder->id = strip_tags($this->input->post('hidden_id'));\n $beheerder->voornaam = strip_tags($this->input->post('voornaam'));\n $beheerder->naam = strip_tags($this->input->post('naam'));\n $beheerder->email = strip_tags($this->input->post('email'));\n $beheerder->paswoord = sha1(strip_tags($this->input->post('paswoord')));\n\n $this->load->model('persoon_model');\n $this->persoon_model->update($beheerder);\n\n redirect('persoon/index');\n }", "function caricaCliente(&$form) {\r\n global $gTables;\r\n $_POST['num_rigo'] = 0;\r\n $form['traspo'] =($form['clfoco']>100000000)?0:$form['traspo']; // azzero il trasporto e per ricalcolarlo solo se non è un cliente anonimo\r\n $anagrafica = new Anagrafica();\r\n $cliente = $anagrafica->getPartner($form['clfoco']);\r\n $form['indspe'] =($cliente)?$cliente['indspe'] . \" - \" . $cliente['capspe'] . \" \" . $cliente['citspe'] . \" \" . $cliente['prospe']:'';\r\n $rs_testate = gaz_dbi_dyn_query(\"*\", $gTables['tesbro'], \"clfoco = '\" . $form['clfoco'] . \"' AND tipdoc LIKE 'VO_' AND status NOT LIKE 'EV%' \", \"datemi ASC\");\r\n while ($testate = gaz_dbi_fetch_array($rs_testate)) {\r\n $id_des = $anagrafica->getPartner($testate['id_des']);\r\n $form['traspo'] += $testate['traspo'];\r\n $form['speban'] = $testate['speban'];\r\n $form['expense_vat'] = $testate['expense_vat'];\r\n $form['stamp'] = $testate['stamp'];\r\n $form['round_stamp'] = $testate['round_stamp'];\r\n $form['virtual_taxstamp'] = $testate['virtual_taxstamp'];\r\n $form['vettor'] = $testate['vettor'];\r\n $form['imball'] = $testate['imball'];\r\n $form['portos'] = $testate['portos'];\r\n $form['spediz'] = $testate['spediz'];\r\n $form['pagame'] = $testate['pagame'];\r\n $form['caumag'] = $testate['caumag'];\r\n $form['destin'] = $testate['destin'];\r\n $form['id_des'] = $testate['id_des'];\r\n $form['search']['id_des'] =($id_des)?substr($id_des['ragso1'], 0, 10):'';\r\n $form['id_des_same_company'] = $testate['id_des_same_company'];\r\n $form['id_agente'] = $testate['id_agente'];\r\n $form['banapp'] = $testate['banapp'];\r\n $form['sconto'] = $testate['sconto'];\r\n $form['tipdoc'] = $testate['tipdoc'];\r\n $ctrl_testate = $testate['id_tes'];\r\n $rs_righi = gaz_dbi_dyn_query(\"*\", $gTables['rigbro'], \"id_tes = \" . $testate['id_tes'], \"id_rig asc\");\r\n while ($rigo = gaz_dbi_fetch_array($rs_righi)) {\r\n $articolo = gaz_dbi_get_row($gTables['artico'], \"codice\", $rigo['codart']);\r\n $form['righi'][$_POST['num_rigo']]['id_rig'] = $rigo['id_rig'];\r\n $form['righi'][$_POST['num_rigo']]['tiprig'] = $rigo['tiprig'];\r\n $form['righi'][$_POST['num_rigo']]['id_tes'] = $rigo['id_tes'];\r\n $form['righi'][$_POST['num_rigo']]['tipdoc'] = $testate['tipdoc'];\r\n $form['righi'][$_POST['num_rigo']]['datemi'] = $testate['datemi'];\r\n $form['righi'][$_POST['num_rigo']]['numdoc'] = $testate['numdoc'];\r\n $form['righi'][$_POST['num_rigo']]['descri'] = $rigo['descri'];\r\n $form['righi'][$_POST['num_rigo']]['id_body_text'] = $rigo['id_body_text'];\r\n $form['righi'][$_POST['num_rigo']]['codart'] = $rigo['codart'];\r\n $form['righi'][$_POST['num_rigo']]['unimis'] = $rigo['unimis'];\r\n $form['righi'][$_POST['num_rigo']]['prelis'] = $rigo['prelis'];\r\n $form['righi'][$_POST['num_rigo']]['provvigione'] = $rigo['provvigione'];\r\n $form['righi'][$_POST['num_rigo']]['ritenuta'] = $rigo['ritenuta'];\r\n $form['righi'][$_POST['num_rigo']]['sconto'] = $rigo['sconto'];\r\n $form['righi'][$_POST['num_rigo']]['quanti'] = $rigo['quanti'];\r\n\t\t\t$form['righi'][$_POST['num_rigo']]['lot_or_serial'] = $articolo['lot_or_serial'];\r\n\t\t\t$form['righi'][$_POST['num_rigo']]['cod_operazione'] = 11;\r\n\t\t\t$form['righi'][$_POST['num_rigo']]['SIAN'] = $articolo['SIAN'];\r\n\t\t\t$form['righi'][$_POST['num_rigo']]['recip_stocc'] = \"\";\r\n\t\t\tif ($articolo['SIAN']>0){\r\n\t\t\t\t$camp_artico = gaz_dbi_get_row($gTables['camp_artico'], \"codice\", $rigo['codart']);\r\n\t\t\t\t$form['righi'][$_POST['num_rigo']]['confezione'] = $camp_artico['confezione'];\r\n\t\t\t} else {\r\n\t\t\t\t$form['righi'][$_POST['num_rigo']]['confezione'] = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\r\n if (!isset($form['righi'][$_POST['num_rigo']]['evadibile'])) {\r\n $totale_evadibile = $rigo['quanti'];\r\n $rs_evasi = gaz_dbi_dyn_query(\"*\", $gTables['rigdoc'], \"id_order=\" . $rigo['id_tes'] . \" AND codart='\" . $rigo['codart'] . \"'\", \"id_rig asc\");\r\n while ($rg_evasi = gaz_dbi_fetch_array($rs_evasi)) {\r\n $totale_evadibile -= $rg_evasi['quanti'];\r\n }\r\n if ($totale_evadibile == 0) {\r\n $form['righi'][$_POST['num_rigo']]['checkval'] = false;\r\n }\r\n\t\t\t\t$upd_mm = new magazzForm;\r\n\t\t\t\t// Antonio Germani - controllo la giacenza in magazzino e gli ordini già ricevuti\r\n\t\t\t\t$mv = $upd_mm->getStockValue(false, $rigo['codart']);\r\n\t\t\t\t$magval = array_pop($mv);\r\n $magval=(is_numeric($magval))?['q_g'=>0,'v_g'=>0]:$magval;\r\n\t\t\t\t$form['righi'][$_POST['num_rigo']]['giac'] = $magval['q_g'];\r\n\t\t\t\t$form['righi'][$_POST['num_rigo']]['ordin'] = $upd_mm->get_magazz_ordinati($rigo['codart'], \"VOR\");\r\n\t\t\t\t\r\n $form['righi'][$_POST['num_rigo']]['evaso_in_precedenza'] = $rigo['quanti'] - $totale_evadibile;\r\n $form['righi'][$_POST['num_rigo']]['evadibile'] = $totale_evadibile;\r\n }\r\n $form['righi'][$_POST['num_rigo']]['id_doc'] = $rigo['id_doc'];\r\n $form['righi'][$_POST['num_rigo']]['codvat'] = $rigo['codvat'];\r\n $form['righi'][$_POST['num_rigo']]['pervat'] = $rigo['pervat'];\r\n $form['righi'][$_POST['num_rigo']]['codric'] = $rigo['codric'];\r\n $_POST['num_rigo'] ++;\r\n }\r\n }\r\n}", "public function absen(){\n\t\t\t$id_kelas = $this->input->post('id_kelas');\n\t\t\t$keterangan = $this->input->post('keterangan');\n\t\t\t$tanggal = $this->input->post('tanggal');\n\t\t\t$sesi = $this->input->post('sesi');\n\n\t\t\t$presensiInfo = array(\n\t\t\t\t'id_kelas'=>$id_kelas,\n\t\t\t\t'tgl_pertemuan'=>$tanggal,\n\t\t\t\t'keterangan'=>$keterangan,\n\t\t\t\t'sesi'=>$sesi,\n\t\t\t\t'status_pertemuan'=>'Tidak Hadir',\n\t\t\t\t\"createDtm\"=>date('Y-m-d H:s:i')\n\t\t\t);\n\n\t\t\t//get id_pertemuan yang barusaja dibuat\n\t\t\t$result = $this->JadwalAkademikM->presensi($presensiInfo);\n\n\t\t\tif($result > 0){\n\t\t\t\t$this->session->set_flashdata('success','Presensi berhasil dibuat');\n\t\t\t}else{\n\t\t\t\t$this->session->set_flashdata('error','Presensi gagal dibuat');\n\t\t\t}\n\n\t\t\tredirect('jadwalAkademikR');\n\t\t}", "function zoeken_show()\n{\n global $db;\n global $tpl;\n global $sForm;\n $sFormTitle = \"Zoek een klant\";\n $sActionFileName = \"Productgroepen.php\";\n\n//-------------------------------\n// zoeken Open Event begin\n// zoeken Open Event end\n//-------------------------------\n $tpl->set_var(\"FormTitle\", $sFormTitle);\n $tpl->set_var(\"ActionPage\", $sActionFileName);\n//-------------------------------\n// Set variables with search parameters\n//-------------------------------\n $flds_naam = strip(get_param(\"s_naam\"));\n\n//-------------------------------\n// zoeken Show begin\n//-------------------------------\n\n\n//-------------------------------\n// zoeken Show Event begin\n// zoeken Show Event end\n//-------------------------------\n $tpl->set_var(\"s_naam\", tohtml($flds_naam));\n\n//-------------------------------\n// zoeken Show end\n//-------------------------------\n\n//-------------------------------\n// zoeken Close Event begin\n// zoeken Close Event end\n//-------------------------------\n $tpl->parse(\"Formzoeken\", false);\n//===============================\n}", "private function klantenAction()\n {\n\n //controlleert of de post naam is gevuld voor de zoek functie\n if (isset($_POST['waarde']) && !empty($_POST['waarde']))\n {\n //haalt alle klanten op die voldoen aan de zoek woord\n $klanten = $this->model->zoekKlanten();\n } else\n {\n //haalt alle klanten op\n $klanten = $this->model->geefKlanten();\n }\n //plaats de klanten in de view\n if ($klanten !== 'LEEG')\n {\n $this->view->set('klanten', $klanten);\n } else\n {\n $this->model->foutGoedMelding('danger', 'Klant bestaat niet');\n }\n }", "function geraClasseDadosFormulario(){\n # Abre o template da classe basica e armazena conteudo do modelo\n $modelo1 = Util::getConteudoTemplate('class.Modelo.DadosFormulario.tpl');\n $modelo2 = Util::getConteudoTemplate('metodoDadosFormularioCadastro.tpl');\n\n # Abre arquivo xml para navegacao\n $aBanco = simplexml_load_string($this->xml);\n\n # Varre a estrutura das tabelas\n foreach($aBanco as $aTabela){\n $nomeClasse = ucfirst($this->getCamelMode($aTabela['NOME']));\n\n $copiaModelo1 = $modelo1;\n $copiaModelo2 = $modelo2;\n\n # varre a estrutura dos campos da tabela em questao\n $camposForm = $aModeloFinal = array();\n foreach($aTabela as $oCampo){\n # recupera campo e tabela e campos (chave estrangeira)\n $nomeCampoOriginal = (string)$oCampo->NOME;\n $nomeCampo \t = $nomeCampoOriginal;\n //$nomeCampo \t = $nomeCampoOriginal;\n\n # monta parametros a serem substituidos posteriormente\n switch ((string)$oCampo->TIPO) {\n case 'date':\n $camposForm[] = \"\\$post[\\\"$nomeCampoOriginal\\\"] = Util::formataDataFormBanco(strip_tags(addslashes(trim(\\$_REQUEST[\\\"$nomeCampoOriginal\\\"]))));\";\n break;\n\n case 'datetime':\n case 'timestamp':\n $camposForm[] = \"\\$post[\\\"$nomeCampoOriginal\\\"] = Util::formataDataHoraFormBanco(strip_tags(addslashes(trim(\\$_REQUEST[\\\"$nomeCampoOriginal\\\"]))));\";\n break;\n\n default:\n if((int)$oCampo->CHAVE == 1)\n if((string)$aTabela['TIPO_TABELA'] != 'NORMAL')\n $camposForm[] = \"\\$post[\\\"$nomeCampoOriginal\\\"] = strip_tags(addslashes(trim(\\$_REQUEST[\\\"$nomeCampoOriginal\\\"])));\";\n else\n $camposForm[] = \"if(\\$acao == 2){\\n\\t\\t\\t\\$post[\\\"$nomeCampoOriginal\\\"] = strip_tags(addslashes(trim(\\$_REQUEST[\\\"$nomeCampoOriginal\\\"])));\\n\\t\\t}\";\n else\n $camposForm[] = \"\\$post[\\\"$nomeCampoOriginal\\\"] = strip_tags(addslashes(trim(\\$_REQUEST[\\\"$nomeCampoOriginal\\\"])));\";\n break;\n }\n }\n # monta demais valores a serem substituidos\n $camposForm = join($camposForm,\"\\n\\t\\t\");\n\n # substitui todas os parametros pelas variaveis ja processadas\n $copiaModelo2 = str_replace('%%NOME_CLASSE%%', $nomeClasse, $copiaModelo2);\n $copiaModelo2 = str_replace('%%ATRIBUICAO%%', $camposForm, $copiaModelo2);\n\n $aModeloFinal[] = $copiaModelo2;\n }\n\n $modeloFinal = str_replace('%%FUNCOES%%', join(\"\\n\\n\", $aModeloFinal), $copiaModelo1);\n $dir = dirname(dirname(__FILE__)).\"/geradas/\".$this->projeto.\"/classes\";\n if(!file_exists($dir)) \n mkdir($dir);\n\n $fp = fopen(\"$dir/class.DadosFormulario.php\",\"w\");\n fputs($fp, $modeloFinal);\n fclose($fp);\n return true;\t\n }", "private function Zapis_kolize_formulare($pole, $idcka_skolizi, $iducast, $formular) { \r\n//znevalidneni vsech kolizi pro ucastnika a tento formular\r\n self::Znevalidni_kolize_ucastnika_formulare($iducast, $formular); \r\n\r\n//zapis do uc_kolize_table pro kazdou nastalou s_kolizi\r\n foreach ($idcka_skolizi as $id_skolize) { //zapisovana policka jsou v $pole\r\n //echo \"policko: \" . $pole['uc_kolize_table§' . $id_skolize . '_revidovano'];\r\n $kolize = new Projektor2_Table_UcKolizeData ($iducast, (int)$id_skolize,\r\n $pole['uc_kolize_table§' . $id_skolize . '_revidovano'],\r\n $pole['uc_kolize_table§' . $id_skolize . '_revidovano_pozn'],\r\n null, 1,\r\n null,null,null,null,null) ;\r\n // echo \"v Zapis_kolize_temp\" . var_dump ($kolize);\r\n $kolize->Zapis_jednu_kolizi(); //kdyz je v tabulce uc_kolize_table, tak prepsat, kdyz neni, tak insert\r\n }\r\n\r\n}", "function formidablepaiement_bank_traiter_reglement($flux){\n\n\t// si c'est une transaction associee a un form\n\tif ($id_transaction = $flux['args']['id_transaction']\n\t AND preg_match(\",form\\d+:,\",$flux['args']['avant']['parrain'])\n\t AND $id_formulaires_reponse = $flux['args']['avant']['tracking_id']){\n\n\t\t$reponse = sql_fetsel('*','spip_formulaires_reponses','id_formulaires_reponse='.intval($id_formulaires_reponse));\n\t\t$formulaire = sql_fetsel('*','spip_formulaires','id_formulaire='.intval($reponse['id_formulaire']));\n\n\t\t$traitements = unserialize($formulaire['traitements']);\n\t\tif ($message = trim($traitements['paiement']['message'])){\n\t\t\tinclude_spip(\"inc/texte\");\n\t\t\t$flux['data'] .= propre($message);\n\t\t}\n\t}\n\n\treturn $flux;\n}", "abstract function builder_form(): string;", "public static function onBeforeFormInfo(){\n\t\t\t\t\n\t\tif(BlogPress::IsError()){\n\t\t\t\t\t\n\t\t\tif(strpos(BlogPress::GetError(), 'code002') !== false){\n\t\t\t\techo '<div class=\"box-form-error\">\n\t\t\t\t\t<h2>' . MUI('Une erreur est survenue lors de la modification des informations de votre compte') .' (code: 002)</h2>\n\t\t\t\t\t<p>' . MUI('Une erreur technique est survenue. L\\'équipe technique travail à la résolution du problème, merci de retenter cette opération un peu plutard !').'</p>\n\t\t\t\t\t<p>' . MUI('Cordialement').',</p>\n\t\t\t\t\t<p>' . MUI('L\\'équipe de') .' '. Blog::GetInfo('title').'</p>\n\t\t\t\t</div>';\n\t\t\t\t\n\t\t\t}elseif(strpos(BlogPress::GetError(), 'code002') !== false){\n\t\t\t\techo '<div class=\"box-form-error\">\n\t\t\t\t\t\t<h2>' . MUI('Une erreur est survenue lors de la modification des informations de votre compte').' (code: 001)</h2>\n\t\t\t\t\t\t<p>' . MUI('Une erreur technique est survenue. L\\'équipe technique travail à la résolution du problème, merci de retenter cette opération un peu plutard !').'</p>\n\t\t\t\t\t\t<p>' . MUI('Cordialement').',</p>\n\t\t\t\t\t\t<p>' . MUI('L\\'équipe de') . ' '. Blog::GetInfo('title').'</p>\n\t\t\t\t\t</div>';\n\t\t\t}else{\n\t\t\t\techo '\n\t\t\t\t\t<div class=\"box-form-error\">\n\t\t\t\t\t\t<h2>' . MUI('Erreur dans le formulaire').'</h2>\n\t\t\t\t\t\t<p>' . MUI('Le formulaire a rencontré une ou plusieurs erreurs indiquées ci-après').' :</p>\n\t\t\t\t\t\t'.BlogPress::GetError().'\n\t\t\t\t\t</div>';\n\t\t\t}\n\t\t}else{\n\t\t\t\t\t\t\t\t\t\n\t\t\techo '\n\t\t\t\t<div class=\"box-form-valid\">\n\t\t\t\t\t<h2>' . MUI('Vos informations ont correctement enregistrés !') . '</h2>\n\t\t\t\t</div>\t\t\t\t\n\t\t\t\t';\n\t\t\t\t\t\t\n\t\t}\n\t}", "public function EncabezadoFBM2() {\t\r\n\t\t$ancho = 256;\r\n\t\t$fs = 10;\r\n\t\t$this->SetFont('Arial','',$fs);\r\n\t\t$this->SetFillColor(255, 255, 255);\r\n\t\t$this->SetDrawColor(0, 0, 0);\r\n\t\t\r\n\t\t$text = 'Página '.$this->PageNo().' de {nb}';\r\n\t\t$this->SetFont('Arial','',8);\r\n\t\t$this->Celda(100, 6, \"C.M.S.= U.B.M. - 14(17-12-2007)\", 0, 0, '');\r\n\t\t$this->Celda($ancho-100, 6, $text, 0, 1, 'R', true);\r\n\t\t$y1 = $this->getY();\r\n\t\t$x1 = $this->getX();\r\n\t\t$this->Celda(80, 25, '', 1, 0, '', true);\r\n\t\t$y2 = $this->getY();\r\n\t\t$x2 = $this->getX();\r\n\t\t$this->Celda($ancho-80, 25, '', 1, 1, '', true);\r\n\t\t$this->setY($y1);\r\n\t\t$this->setX($x1);\r\n\t\t$this->Image( 'images/logo_medium.png', 21, 17, 78 );\r\n\t\t$this->setY($y2+5);\r\n\t\t$this->setX($x2+1);\r\n\t\t$this->Formato( 'Helvetica', 'B', 11 );\r\n\t\t$this->Celda($ancho-85, 6, 'Formulario B.M.2', 0, 1, 'C', true);\r\n\t\t$this->Formato( 'Helvetica', '', 9 );\r\n\t\t$this->setX($x2+1);\r\n\t\t$this->Celda($ancho-85, 8, 'Relación de Movimiento de Bienes', 0, 1, 'C', true);\r\n\t\t\r\n\t\t$this->Ln(8);\r\n\t\t$y = $this->getY();\r\n\t\t$x = $this->getX();\r\n\t\t$this->Celda($ancho, 26, '', 1, 1, '', true);\r\n\t\t$y2 = $this->getY();\r\n\t\t$this->setY($y+1);\r\n\t\t$this->setX($x+1);\r\n\t\t$this->Celda(20, 5, '1. Estado: ', 0, 0, '', true);\r\n\t\t$this->Celda($ancho-25, 5, $this->capitalizar($this->header['estado']), 'B', 1, '', true);\r\n\t\t$yt = $this->getY();\r\n\t\t$this->setY($yt+1);\r\n\t\t$this->setX($x+1);\r\n\t\t$this->Celda(20, 5, '2. Municipio: ', 0, 0, '', true);\r\n\t\t$this->Celda(50, 5, strtoupper($this->header['municipio']), 'B', 0, '', true);\r\n\t\t$this->Celda(56, 5, '3. Unidad de Trabajo o Dependencia: ', 0, 0, '', true);\r\n\t\t$this->Celda(126, 5, $this->capitalizar($this->header['dependencia']), 'B', 1, '', true);\r\n\t\t$yt = $this->getY();\r\n\t\t$this->setY($yt+1);\r\n\t\t$this->setX($x+1);\r\n\t\t$this->Celda(20, 5, '4. Servicio: ', 0, 0, '', true);\r\n\t\t$this->Celda(100, 5, 'CONTRALORIA MUNICIPAL DE SUCRE', 'B', 0, '', true);\r\n\t\t$this->Celda(35, 5, '5. Periodo de la cuenta: ', 0, 0, '', true);\r\n\t\t$this->Celda(96, 5, $this->capitalizar($this->header['fecha']), 'B', 1, '', true);\r\n\t\t$yt = $this->getY();\r\n\t\t$this->setY($yt+1);\r\n\t\t$this->setX($x+1);\r\n\t\t$this->Celda(30, 5, '6. Direccion o Lugar: ', 0, 0, '', true);\r\n\t\t$this->Celda(221, 5, $this->capitalizar($this->header['direccion']), 'B', 0, '', true);\r\n\t\t$this->setY($y2);\r\n\t}", "function geraClasseValidadorFormulario(){\n # Abre o template da classe basica e armazena conteudo do modelo\n $modelo1 = Util::getConteudoTemplate('class.Modelo.ValidadorFormulario.tpl');\n $modelo2 = Util::getConteudoTemplate('metodoValidaFormularioCadastro.tpl');\n\n # abre arquivo xml para navegacao\n $aBanco = simplexml_load_string($this->xml);\n $aModeloFinal = array();\n \n # varre a estrutura das tabelas\n foreach($aBanco as $aTabela){\n $nomeClasse = ucfirst($this->getCamelMode((string)$aTabela['NOME']));\n $copiaModelo1 = $modelo1;\n $copiaModelo2 = $modelo2;\n\n $objetoClasse = \"\\$o$nomeClasse\";\n\n # ==== varre a estrutura dos campos da tabela em questao ====\n $camposForm = array();\n foreach($aTabela as $oCampo){\n # recupera campo e tabela e campos (chave estrangeira)\n $nomeCampoOriginal = (string)$oCampo->NOME;\n # processa nome original da tabela estrangeira\n $nomeFKClasse = (string)$oCampo->FKTABELA;\n $objetoFKClasse = \"\\$o$nomeFKClasse\";\n\n $nomeCampo = $nomeCampoOriginal;\n //$nomeCampo = $nomeCampoOriginal;\n\n # monta parametros a serem substituidos posteriormente\n $label = ($nomeFKClasse != '') ? ucfirst(strtolower($nomeFKClasse)) : ucfirst(str_replace($nomeClasse,\"\",$nomeCampoOriginal));;\t\t\t\t\t\n $camposForm[] = ((int)$oCampo->CHAVE == 1) ? \"if(\\$acao == 2){\\n\\t\\t\\tif(\\$$nomeCampoOriginal == ''){\\n\\t\\t\\t\\t\\$this->msg = \\\"$label invalido!\\\";\\n\\t\\t\\t\\treturn false;\\n\\t\\t\\t}\\n\\t\\t}\" : \"if(\\$$nomeCampoOriginal == ''){\\n\\t\\t\\t\\$this->msg = \\\"$label invalido!\\\";\\n\\t\\t\\treturn false;\\n\\t\\t}\\t\";\n }\n # monta demais valores a serem substituidos\n $camposForm = join($camposForm,\"\\n\\t\\t\");\n\n # substitui todas os parametros pelas variaveis já processadas\n $copiaModelo2 = str_replace('%%NOME_CLASSE%%', $nomeClasse, $copiaModelo2);\n $copiaModelo2 = str_replace('%%ATRIBUICAO%%', $camposForm, $copiaModelo2);\n\n $aModeloFinal[] = $copiaModelo2;\n }\n\n $modeloFinal = str_replace('%%FUNCOES%%', join(\"\\n\\n\", $aModeloFinal), $copiaModelo1);\n\n $dir = dirname(dirname(__FILE__)).\"/geradas/\".$this->projeto.\"/classes\";\n if(!file_exists($dir)) mkdir($dir);\n\n $fp = fopen(\"$dir/class.ValidadorFormulario.php\",\"w\"); fputs($fp, $modeloFinal); fclose($fp);\n\n return true;\t\n }", "public function fermerligneAction()\r\n {\n \t$decorateurCase = array(\n \t\t\tarray('ViewHelper'),\n \t\t\tarray('Errors'),\n \t\t\tarray('HtmlTag', array('tag'=>'td')),\n \t\t\tarray(\n \t\t\t\t\tarray('tr' => 'HtmlTag'),\n \t\t\t\t\tarray('tag'=> 'tr')\n \t\t\t)\n \t\t\t\n \t);\n \t//decorateur du bouton submit\n \t$decorateurBoutonEnvoyer = array(\n \t\t\tarray('ViewHelper'),\n \t\t\tarray('Errors'),\n \t\t\tarray('HtmlTag', array('tag'=>'td', 'class'=>'boutonEnvoyer')),\n \t\t\tarray(\n \t\t\t\t\tarray('tr' => 'HtmlTag'),\n \t\t\t\t\tarray('tag'=> 'tr'),\n \t\t\t)\n \t);\n \t//decorateur du bouton formulaire complet\n \t$decorateurTableau = array(\n \t\t\tarray('FormElements'),\n \t\t\tarray('HtmlTag', array('tag'=>'table', 'class'=>'tableauCaseACocherVol'))\n \t);\n \t\n \t$filtreStategique = $this->_getParam('filtreStategique');\n \tif($filtreStategique == 'defaut')\n \t{\n \t\tunset($_SESSION['aeroportDepart']);\r\n \t\tunset($_SESSION['aeroportArrivee']);\n \t}\n \t\n \t$vol = new Vol;\n \tif(isset($_POST['aeroportDepart']))\n \t\t$_SESSION['aeroportDepart'] = $_POST['aeroportDepart'];\n \tif(isset($_POST['aeroportArrivee']))\n \t\t$_SESSION['aeroportArrivee'] = $_POST['aeroportArrivee'];\n \tif(isset($_SESSION['aeroportDepart']) && isset($_SESSION['aeroportArrivee'])){\n \t\t$lesVols = $vol->getRecuperDepartArrivee($_SESSION['aeroportDepart'], $_SESSION['aeroportArrivee']);\n \t}\n \telse{\n \t\tif(isset($_SESSION['aeroportDepart'])){\n \t\t\t$lesVols = $vol->getRecuperDepart($_SESSION['aeroportDepart']);\n \t\t}\n \t\telse{\n \t\t\tif(isset($_SESSION['aeroportArrivee'])){\r\n \t\t\t\t$lesVols = $vol->getRecuperArrivee($_SESSION['aeroportArrivee']);\r\n \t\t\t}\n \t\t\telse{\n \t\t\t\t$lesVols = $vol->getRecuper();\n \t\t\t}\n \t\t}\n \t} \t\n \t\n \t//on crée le paginator\n \t$pagination = Zend_Paginator::factory($lesVols);\n \t$pagination->setCurrentPageNumber($this->_getParam('page'));\n \t$pagination->setItemCountPerPage(5);\n \t//on crée le formulaire\r\n \t$formulaireSuppression = new Zend_Form;\r\n \t$formulaireSuppression -> setMethod('post');\r\n \t$formulaireSuppression -> setAction('/strategique/index/');\r\n \t$formulaireSuppression -> setAttrib('id','formulaireSuppression');\r\n \t$formulaireSuppression -> addDecorators($decorateurTableau);\r\n\t\t\n \tforeach($pagination as $unVol)\r\n \t{\n \t\t$ligne1 = $vol->getRecuperAeroportDepart($unVol['aeroportDepart']);\n \t\t$ligne2 = $vol->getRecuperAeroportDArrivee($unVol['aeroportArrivee']);\n \t\t$ligne3 = $vol->getRecuperDateDeVol($unVol['idVol']);\n \t\t$ligne4 = fonctionConvertirHeure($unVol['dureeVol']);\n \t\t\t\n \t\t//on crée les cases a cocher\r\n \t\t$caseACocher = new Zend_Form_Element_Checkbox($unVol['idVol']);\r\n \t\t$caseACocher -> setValue($unVol['idVol']);\r\n \t\t$caseACocher -> setDecorators($decorateurCase);\r\n \t\t$formulaireSuppression -> addElement($caseACocher);\r\n \t\t\t\r\n \t\t//on récupère dans des tableaux pour chaque vol:\r\n \t\t//l'aéroport de départ\r\n \t\t$nomAeroportDepart[$unVol['idVol']] = $ligne1['nomAeroport'];\r\n \t\t//l'aéroport de d'arrivé\r\n \t\t$nomAeroportArrivee[$unVol['idVol']] = $ligne2['nomAeroport'];\r\n \t\t//la date du vol ou les jours de la semaine\r\n \t\t$jourOuDateDuVol[$unVol['idVol']] = $ligne3;\r\n \t\t//la durée du vol en heures\r\n \t\t$duree[$unVol['idVol']] = $ligne4;\n \t\t\t\n \t\t$numVol[$unVol['idVol']] = $unVol['numVol'];\n \t\t$idVol[$unVol['idVol']] = $unVol['idVol']; \t\t\n \t}\r\n \t//on crée le bouton submit\r\n \t$envoyer = new Zend_Form_Element_Submit('boutonSubmitSupprimerVol');\n \t$envoyer -> setLabel('Supprimer');\r\n \t$envoyer -> setDecorators($decorateurBoutonEnvoyer);\r\n \t$formulaireSuppression -> addElement($envoyer);\n \t\n \t//on crée le formulaire filtre\r\n \t$formFiltAeroDepart = new Zend_Form;\r\n \t$formFiltAeroDepart -> setAttrib('id','formFiltAeroDepart');\r\n \t$formFiltAeroDepart -> setMethod('post');\r\n \t$formFiltAeroDepart -> setAction('/strategique/index?valeur=fermer');\r\n \t \r\n \t//choix de l'aéroport de départ\n \t$formFiltAeroDepart -> addElement(fonctionAeroport('aeroportDepart'));\n \t\n \t$envoyer = new Zend_Form_Element_Submit('boutonSubmitFiltAeroDepart');\r\n \t$envoyer -> setLabel('Filtrer');\r\n \t$formFiltAeroDepart -> addElement($envoyer);\n \t\n \t//on crée le formulaire filtre\n \t$formFiltAeroArrivee = new Zend_Form;\r\n \t$formFiltAeroArrivee -> setAttrib('id','formFiltAeroArrivee');\r\n \t$formFiltAeroArrivee -> setMethod('post');\r\n \t$formFiltAeroArrivee -> setAction('/strategique/index?valeur=fermer');\r\n \t\r\n \t//choix de l'aéroport d'arrivee\r\n \t$formFiltAeroArrivee -> addElement(fonctionAeroport('aeroportArrivee'));\r\n \t \r\n \t$envoyer = new Zend_Form_Element_Submit('boutonSubmitFiltAeroArrivee');\r\n \t$envoyer -> setLabel('Filtrer');\r\n \t$formFiltAeroArrivee -> addElement($envoyer);\r\n \t \n \t\n \t$this->view->formFiltAeroArrivee = $formFiltAeroArrivee;\r\n \t//on envoie le formulaire a la vue\r\n \t$this->view->formFiltAeroDepart = $formFiltAeroDepart;\n \t//on envoie les vols a la vue\r\n \t$this->view->lesVols = $pagination;\n \t//on envoie les noms d'aeroport de depart\r\n \t\n \tif(isset($nomAeroportDepart))\n \t\t$this->view->lesAeroportsDeDepart = $nomAeroportDepart;\n \t//on envoie les noms d'aeroport d'arrivee\n \tif(isset($nomAeroportArrivee))\r\n \t\t$this->view->lesAeroportsDArrivee = $nomAeroportArrivee;\n \t//on envoie les dates de départs ou les jours prévu\n \tif(isset($jourOuDateDuVol))\r\n \t\t$this->view->lesJourEtDateDeVol = $jourOuDateDuVol;\r\n \t//on envoie la durée des vols\n \tif(isset($duree))\n \t\t$this->view->duree = $duree;\n \t\n \tif(isset($idVol))\n \t\t$this->view->idVol = $idVol;\n \t\n \tif(isset($numVol))\n \t\t$this->view->numVol = $numVol;\r\n \t//on envoie le formulaire a la vue\r\n \t$this->view->formulaire = $formulaireSuppression;\r\n \r\n }", "function fantacalcio_controlla_formazioni($vote_round) {\n\n drupal_set_title(filter_xss('Risultati ' . $vote_round . '&ordf; giornata'));\n \n $teams = get_teams();\n $competitions = get_competitions();\n\n $formazioni = array();\n foreach ($competitions as $c_id => $competition) {\n $result = db_query(\"SELECT c.competition_round, r.date \n FROM {fanta_rounds} r, {fanta_rounds_competitions} c\n WHERE c.round = r.round\n AND c.c_id = '%d' \n AND c.round = '%d'\", $c_id, $vote_round);\n while ($row = db_fetch_object($result)) {\n $last_round = $row->competition_round;\n $ts_round = $row->date;\n }\n \n if (db_affected_rows($result) > 0) {\n \n $formazioni = array();\n\n $sql = \"SELECT * FROM {fanta_matches} \" .\n \"WHERE g_id IN (SELECT g_id FROM {fanta_groups WHERE c_id = '%d') \" .\n \"AND round = '%d'\";\n $result = db_query($sql, $c_id, $last_round);\n while ($row = db_fetch_object($result)) {\n $competition_teams[$c_id][] = $row->t1_id;\n $competition_teams[$c_id][] = $row->t2_id;\n }\n\n $sql = \"SELECT * FROM {fanta_lineups} f\n INNER JOIN {fanta_lineups_inserts} i\n ON f.c_id = i.c_id\n AND f.round = i.round\n AND f.t_id = i.t_id\n WHERE f.c_id = '%d' \n AND f.round = '%d'\n AND i.i_id = (SELECT MAX(i_id) FROM {fanta_lineups_inserts} WHERE c_id = '%d' AND round = '%d' AND t_id = f.t_id)\";\n $result = db_query($sql, $c_id, $last_round, $c_id, $last_round);\n while ($row = db_fetch_object($result)) {\n $formazioni[$row->t_id][] = $row;\n }\n \n $rows = array();\n \n if ($competition_teams[$c_id]) {\n \n $out .= \"<h3>\" . $competitions[$c_id]->name . \"</h3>\";\n\n foreach ($competition_teams[$c_id] as $t_id) {\n\n $formazione = $formazioni[$t_id];\n\n $modulo = array();\n\n if ($formazione) {\n\n foreach ($formazione as $player) {\n if ($player->position > 0) $modulo[$player->position]++;\n }\n\n if ($modulo == array(1 => 11, 2 => 4, 3 => 3)) $status = \"<span style='color: green; font-weight:bold;'>OK</span>\";\n else $status = \"<span style='color: red; font-weight:bold;'>NO</span>\";\n ksort($modulo);\n \n $ts = ($player->timestamp < $ts_round ) ? date('d-m-Y H:i:s', $player->timestamp) : \"<span style='color: red; font-weight:bold;'>\" . date('d-m-Y H:i:s', $player->timestamp) . \"</span>\";\n\n $rows[$t_id] = array(l($teams[$t_id]->name, \"formazioni/admin/\" . $t_id), implode(\" - \", $modulo), $status, $ts);\n }\n else $rows[$t_id] = array(l($teams[$t_id]->name, \"formazioni/admin/\" . $t_id), array(\"data\" => \"<span style='color: red; font-weight:bold;'>NON INSERITA</span>\", \"colspan\" => 2));\n\n }\n\n $out .= theme_table(array(), $rows);\n }\n }\n }\n\n return $out;\n}", "public function EncabezadoFBM3() {\t\r\n\t\t$ancho = 256;\r\n\t\t$fs = 10;\r\n\t\t$this->SetFont('Arial','',$fs);\r\n\t\t$this->SetFillColor(255, 255, 255);\r\n\t\t$this->SetDrawColor(0, 0, 0);\r\n\t\t\r\n\t\t//$text = 'Página '.$this->PageNo().' de {nb}';\r\n\t\t$this->SetFont('Arial','',8);\r\n\t\t$this->Celda(100, 6, \"C.M.S.= U.B.M. - 14(17-12-2007)\", 0, 1, '');\r\n\t\t//$this->Celda($ancho-100, 6, $text, 0, 1, 'R', true);\r\n\t\t$y1 = $this->getY();\r\n\t\t$x1 = $this->getX();\r\n\t\t$this->Celda(80, 25, '', 1, 0, '', true);\r\n\t\t$y2 = $this->getY();\r\n\t\t$x2 = $this->getX();\r\n\t\t$this->Celda($ancho-108, 25, '', 1, 0, '', true);\r\n\t\t$y3 = $this->getY();\r\n\t\t$x3 = $this->getX();\r\n\t\t$this->Celda(28, 25, '', 1, 1, '', true);\r\n\t\t$y4 = $this->getY();\r\n\t\t$x4 = $this->getX();\r\n\t\t\t\r\n\t\t$this->setY($y1);\r\n\t\t$this->setX($x1);\r\n\t\t$this->Image( 'images/logo_medium.png', 21, 17, 78 );\r\n\t\t$this->setY($y2+5);\r\n\t\t$this->setX($x2+1);\r\n\t\t$this->Formato( 'Helvetica', 'B', 11 );\r\n\t\t$this->Celda($ancho-115, 6, 'Formulario B.M.3', 0, 1, 'C', true);\r\n\t\t$this->Formato( 'Helvetica', '', 9 );\r\n\t\t$this->setX($x2+1);\r\n\t\t$this->Celda($ancho-115, 8, 'RELACION DE BIENES MUEBLES FALTANTES', 0, 1, 'C', true);\r\n\t\t$this->setY($y3);\r\n\t\t$this->setX($x3);\r\n\t\t$this->Celda(28, 8, 'HOJA Nro.', 1, 1, 'C', true);\r\n\t\t$this->setX($x3);\r\n\t\t$this->Celda(28, 17, $this->PageNo(), 1, 1, 'C', true);\r\n\t\t$this->setY($y4);\r\n\t\t$this->setX($x4);\r\n\t\t\r\n\t\t$this->Ln(2);\r\n\t\t$y = $this->getY();\r\n\t\t$x = $this->getX();\r\n\t\t$this->Celda($ancho, 26, '', 1, 1, '', true);\r\n\t\t$y2 = $this->getY();\r\n\t\t$this->setY($y+1);\r\n\t\t$this->setX($x+1);\r\n\t\t$this->Celda(20, 10, '1. Entidad:', 0, 0, '', true);\r\n\t\t$xt = $this->getX();\r\n\t\t$this->Celda(20, 5, 'Estado ', 0, 0, '', true);\r\n\t\t$this->Celda($ancho-111, 5, $this->capitalizar($this->header['estado']), 'B', 1, '', true);\r\n\t\t$this->setX($xt);\r\n\t\t$this->Celda(20, 5, 'Municipio ', 0, 0, '', true);\r\n\t\t$this->Celda($ancho-110, 5, strtoupper($this->header['municipio']), 'B', 0, '', true);\r\n\t\t$xt = $this->getX();\r\n\t\t$this->Ln();\r\n\t\t$yt = $this->getY();\r\n\t\t\r\n\t\t$this->setY($y);\r\n\t\t$this->setX($xt);\r\n\t\t$this->Celda(69, 6, '4. Identificación del Comprobante', 1, 1, 'C', true);\r\n\t\t$this->setX($xt);\r\n\t\t$this->Celda(44, 6.5, 'Codigo Concepto Movimiento', 1, 0, '', true);\r\n\t\t$this->Celda(25, 6.5, '60', 1, 1, 'C', true);\r\n\t\t$this->setX($xt);\r\n\t\t$this->Celda(44, 6.75, 'Numero de Comprobante', 1, 0, '', true);\r\n\t\t$this->Celda(25, 6.75, $this->header['comprobante'], 1, 1, 'C', true);\r\n\t\t$this->setX($xt);\r\n\t\t$this->Celda(44, 6.75, 'Fecha de la Operacion', 1, 0, '', true);\r\n\t\t$this->Celda(25, 6.75, $this->header['fecha'], 1, 1, 'C', true);\r\n\t\t\r\n\t\t$this->setY($yt+1);\r\n\t\t$this->setX($x+1);\r\n\t\t$this->Celda(40, 5, '2. Unidad de Trabajo: ', 0, 0, '', true);\r\n\t\t$this->Celda($ancho-111, 5, $this->capitalizar($this->header['dependencia']), 'B', 1, '', true);\r\n\t\t$yt = $this->getY();\r\n\t\t$this->setY($yt+1);\r\n\t\t$this->setX($x+1);\r\n\t\t$this->Celda(40, 5, '3. Unidad Administrativa: ', 0, 0, '', true);\r\n\t\t$this->Celda($ancho-111, 5, $this->capitalizar($this->header['adm']), 'B', 1, '', true);\r\n\t\t$this->Ln();\r\n\t}", "public function form( &$form )\n\t{\n\t}", "public function SaveFichas() {\n\t\t\ttry {\n\t\t\t\t// Update any fields for controls that have been created\n\t\t\t\tif ($this->lstIdMarcaObject) $this->objFichas->IdMarca = $this->lstIdMarcaObject->SelectedValue;\n\t\t\t\tif ($this->lstIdTiposObject) $this->objFichas->IdTipos = $this->lstIdTiposObject->SelectedValue;\n\t\t\t\tif ($this->lstIdModeloObject) $this->objFichas->IdModelo = $this->lstIdModeloObject->SelectedValue;\n\t\t\t\tif ($this->lstIdVersionObject) $this->objFichas->IdVersion = $this->lstIdVersionObject->SelectedValue;\n\t\t\t\tif ($this->lstIdPaisObject) $this->objFichas->IdPais = $this->lstIdPaisObject->SelectedValue;\n\t\t\t\tif ($this->txtIdSeguro) $this->objFichas->IdSeguro = $this->txtIdSeguro->Text;\n\t\t\t\tif ($this->txtDescripcion) $this->objFichas->Descripcion = $this->txtDescripcion->Text;\n\t\t\t\tif ($this->txtPrecio) $this->objFichas->Precio = $this->txtPrecio->Text;\n\t\t\t\tif ($this->txtAnio) $this->objFichas->Anio = $this->txtAnio->Text;\n\t\t\t\tif ($this->txtCombustible) $this->objFichas->Combustible = $this->txtCombustible->Text;\n\t\t\t\tif ($this->txtCilindrada) $this->objFichas->Cilindrada = $this->txtCilindrada->Text;\n\t\t\t\tif ($this->txtCilindros) $this->objFichas->Cilindros = $this->txtCilindros->Text;\n\t\t\t\tif ($this->txtPotenciaMaxima) $this->objFichas->PotenciaMaxima = $this->txtPotenciaMaxima->Text;\n\t\t\t\tif ($this->txtParMotorTorque) $this->objFichas->ParMotorTorque = $this->txtParMotorTorque->Text;\n\t\t\t\tif ($this->txtPosicion) $this->objFichas->Posicion = $this->txtPosicion->Text;\n\t\t\t\tif ($this->txtAlimentacion) $this->objFichas->Alimentacion = $this->txtAlimentacion->Text;\n\t\t\t\tif ($this->txtMotorShort) $this->objFichas->MotorShort = $this->txtMotorShort->Text;\n\t\t\t\tif ($this->txtValvulas) $this->objFichas->Valvulas = $this->txtValvulas->Text;\n\t\t\t\tif ($this->txtTipo) $this->objFichas->Tipo = $this->txtTipo->Text;\n\t\t\t\tif ($this->txtMarchas) $this->objFichas->Marchas = $this->txtMarchas->Text;\n\t\t\t\tif ($this->txtTraccion) $this->objFichas->Traccion = $this->txtTraccion->Text;\n\t\t\t\tif ($this->txtVelocidadMaxima) $this->objFichas->VelocidadMaxima = $this->txtVelocidadMaxima->Text;\n\t\t\t\tif ($this->txtAceleracion0100) $this->objFichas->Aceleracion0100 = $this->txtAceleracion0100->Text;\n\t\t\t\tif ($this->txtConsumoUrbano) $this->objFichas->ConsumoUrbano = $this->txtConsumoUrbano->Text;\n\t\t\t\tif ($this->txtConsumoInterurbano) $this->objFichas->ConsumoInterurbano = $this->txtConsumoInterurbano->Text;\n\t\t\t\tif ($this->txtConsumoMixto) $this->objFichas->ConsumoMixto = $this->txtConsumoMixto->Text;\n\t\t\t\tif ($this->txtPuertas) $this->objFichas->Puertas = $this->txtPuertas->Text;\n\t\t\t\tif ($this->txtPlazas) $this->objFichas->Plazas = $this->txtPlazas->Text;\n\t\t\t\tif ($this->txtFilasDeAsientos) $this->objFichas->FilasDeAsientos = $this->txtFilasDeAsientos->Text;\n\t\t\t\tif ($this->txtInfoEjes) $this->objFichas->InfoEjes = $this->txtInfoEjes->Text;\n\t\t\t\tif ($this->txtPeso) $this->objFichas->Peso = $this->txtPeso->Text;\n\t\t\t\tif ($this->txtCapacidadBaul) $this->objFichas->CapacidadBaul = $this->txtCapacidadBaul->Text;\n\t\t\t\tif ($this->txtCapacidadTanque) $this->objFichas->CapacidadTanque = $this->txtCapacidadTanque->Text;\n\t\t\t\tif ($this->txtCapacidadCarga) $this->objFichas->CapacidadCarga = $this->txtCapacidadCarga->Text;\n\t\t\t\tif ($this->txtFrenosDelanteros) $this->objFichas->FrenosDelanteros = $this->txtFrenosDelanteros->Text;\n\t\t\t\tif ($this->txtFrenosTraseros) $this->objFichas->FrenosTraseros = $this->txtFrenosTraseros->Text;\n\t\t\t\tif ($this->txtNeumaticos) $this->objFichas->Neumaticos = $this->txtNeumaticos->Text;\n\t\t\t\tif ($this->txtSuspensionDelantera) $this->objFichas->SuspensionDelantera = $this->txtSuspensionDelantera->Text;\n\t\t\t\tif ($this->txtSuspensionTrasera) $this->objFichas->SuspensionTrasera = $this->txtSuspensionTrasera->Text;\n\t\t\t\tif ($this->lstIdEstadoObject) $this->objFichas->IdEstado = $this->lstIdEstadoObject->SelectedValue;\n\t\t\t\tif ($this->chkProcesada) $this->objFichas->Procesada = $this->chkProcesada->Checked;\n\n\t\t\t\t// Id Servicio\n\t\t\t\t\n\t\t\t\tif ($this->txtIdServicio) $this->objFichas->IdServicio = $this->txtIdServicio->Text;\n\t\t\t\t\n\t\t\t\t// Moneda\n\t\t\t\t\n\t\t\t\tif ($this->txtMoneda) $this->objFichas->Moneda = $this->txtMoneda->Text;\n\n\n\t\t\t\t// Update any UniqueReverseReferences (if any) for controls that have been created for it\n\n\t\t\t\t// Save the Fichas object\n\t\t\t\t$this->objFichas->Save();\n\t\t\t\t\n\t\t\t\t$this->txtIdServicio->Text = $this->objFichas->IdServicio;\n\n\t\t\t\t// Finally, update any ManyToManyReferences (if any)\n\t\t\t} catch (QCallerException $objExc) {\n\t\t\t\t$objExc->IncrementOffset();\n\t\t\t\tthrow $objExc;\n\t\t\t}\n\t\t}", "protected function editar()\n {\n }", "function cl_tfd_situacaopedidotfd() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"tfd_situacaopedidotfd\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "public function alterar(){\r\n // recebe dados do formulario\r\n $post = DadosFormulario::formularioCadastroSicasEspecialidadeMedica(2);\r\n // valida dados do formulario\r\n $oValidador = new ValidadorFormulario();\r\n if(!$oValidador->validaFormularioCadastroSicasEspecialidadeMedica($post, 2)){\r\n $this->msg = $oValidador->msg;\r\n return false;\r\n }\r\n // cria variaveis para validacao com as chaves do array\r\n foreach($post as $i => $v) $$i = utf8_encode($v);\r\n \r\n // cria objeto para grava-lo no BD\r\n $oSicasEspecialidadeMedica = new SicasEspecialidadeMedica($cd_especialidade_medica, $nm_especialidade, $status);\r\n $oSicasEspecialidadeMedicaBD = new SicasEspecialidadeMedicaBD();\r\n if(!$oSicasEspecialidadeMedicaBD->alterar($oSicasEspecialidadeMedica)){\r\n $this->msg = $oSicasEspecialidadeMedicaBD->msg;\r\n return false;\r\n }\r\n return true;\r\n }", "private function escalatieAntwoordToevoegenAction()\n {\n if (isset($_POST) && !empty($_POST))\n {\n $this->model->maakEscalatieAntwoord();\n $this->model->setLog('Escalatie antwoord toevoegen', 'Gelukt');\n $this->forward('ticket', 'admin');\n } else\n {\n $ticket = $this->model->geefTicket();\n $this->view->set('ticket', $ticket);\n }\n }", "public static function form(){\n $fecha = mktime(date(\"Y\"), date(\"m\"), date(\"d\"));\n $tipoAct = 'Actividad'->'id_tipo_act';\n return ['nombre' => '', 'tipo_actividad' => '','fecha_desde' =>$fecha, 'fecha_hasta' =>$fecha,\n 'instancia' => '', 'puesto_mencion' =>'','inst_referente' => '',\n 'inst_oferente' => '', 'lugar' =>'','descripcion' =>''];\n\n }", "public function EncabezadoFBM5() {\t\r\n\t\t$ancho = 256;\r\n\t\t$fs = 10;\r\n\t\t$this->SetFont('Arial','',$fs);\r\n\t\t$this->SetFillColor(255, 255, 255);\r\n\t\t$this->SetDrawColor(0, 0, 0);\r\n\t\t\r\n\t\t$text = 'Página '.$this->PageNo().' de {nb}';\r\n\t\t$this->SetFont('Arial','',8);\r\n\t\t//$this->Celda(100, 6, \"C.M.S.= U.B.M. - 14(17-12-2007)\", 0, 0, '');\r\n\t\t$this->Celda($ancho, 6, $text, 0, 1, 'R', true);\r\n\t\t$y1 = $this->getY();\r\n\t\t$x1 = $this->getX();\r\n\t\t$this->Celda(80, 25, '', 1, 0, '', true);\r\n\t\t$y2 = $this->getY();\r\n\t\t$x2 = $this->getX();\r\n\t\t$this->Celda($ancho-80, 25, '', 1, 1, '', true);\r\n\t\t$this->setY($y1);\r\n\t\t$this->setX($x1);\r\n\t\t//$this->Image( 'images/logo_medium.png', 21, 17, 78 );\r\n\t\t$this->setY($y2+5);\r\n\t\t$this->setX($x2+1);\r\n\t\t$this->Formato( 'Helvetica', 'B', 11 );\r\n\t\t$this->Celda($ancho-85, 6, $this->header['title'], 0, 1, 'C', true);\r\n\t\t$this->Formato( 'Helvetica', '', 9 );\r\n\t\t$this->setX($x2+1);\r\n\t\t$this->Celda($ancho-85, 8, $this->header['title2'], 0, 1, 'C', true);\r\n\t}", "function _ajax_jenis($form, $form_state) {\r\n\treturn $form['wrapperobyek'];\r\n}", "function form_mostrar($conp,$nreg,$pg,$bo,$filtro,$arc){\n\t\t$mtipo_documento = new mtipo_documento();\n\t\t //Instanciamos en [$pa] la clase mpagina\n\t\t$pa = new mpaginacion();\n\t\t$txt = '';\n\t\t//Creamos el cuadro de buscar (filtros-Busquedas)\n\t\t$txt .= \"<table>\";\n\t\t\t//Una Fila\n\t\t\t$txt .= \"<tr>\";\n\t\t\t\t//1ra Columna - Formulario buscar\n\t\t\t\t$txt .= \"<td>\";\n\t\t\t\t\t$txt .= \"<form name='forfil' method='GET' action='\".$arc.\"'>\";\n\t\t\t\t\t\t$txt .= \"<input type='hidden' name='pg' value='\".$pg.\"' />\";\n\t\t\t\t\t\t//Campo de texto para escribir el dato a buscar\n\t\t\t\t\t\t$txt .= \"Buscar:<input type='text' name='filtro' value='\".$filtro.\"' placeholder='Ingrese El Nombre Del Empleado' onChange= 'this.form.submit();' />\";\n\t\t\t\t\t$txt .= \"</form>\";\n\t\t\t\t$txt .= \"</td>\";\n\t\t\t\t//2da Columna control de paginacion\n\t\t\t\t$txt .= \"<td align='right' style='padding-left: 10px;'>\";\n\t\t\t\t\t$bo = \"<input type='hidden' name='filtro' value='\".$filtro.\"' />\";\n\t\t\t\t\t//Llamamos el metodo de contar la cantida de paginas\n\t\t\t\t\t$txt .= $pa->spag($conp,$nreg,$pg,$bo,$arc);\n\t\t\t\t\t//Llamar los datos para completar la paginacion\n\t\t\t\t\t$result = $mtipo_documento->sel_tipo_documento($filtro,$pa->rvalini(),$pa->rvalfin());\n\t\t\t\t$txt .= \"</td>\";\n\t\t\t//Cierre Fila\n\t\t\t$txt .= \"</tr>\";\n\t\t$txt .= \"</table>\";\n\t\tif ($result) {\n\n\t\t$txt .= '<div class=\"cuad1\" style=\"width: 90%;\">';\n\t\t\t$txt .= '<table width=\"100%\" cellspacing=\"0px\" align=\"center\">';\n\t\t\t\t//Inicio de la (Cabecera_Tb)\t\t\t\n\t\t\t\t$txt .= '<tr>';\n\t\t\t\t\t$txt .= '<th>';\n\t\t\t\t\t\t$txt .= 'id_tpdoc(s)';\n\t\t\t\t\t$txt .= '</th>';\n\t\t\t\t\t$txt .= '<th>';\n\t\t\t\t\t\t$txt .= 'Tipo de Documento';\n\t\t\t\t\t$txt .= '</th>';\n\t\t\t\t\t$txt .= '<th>';\n\t\t\t\t\t\t$txt .= 'extencion';\n\t\t\t\t\t$txt .= '</th>';\n\t\t\t\t\t$txt .= '<th></th>';\n\t\t\t\t\t$txt .= '<th></th>';\n\t\t\t\t$txt .= '</tr>';\n\t\t\t\t//Cierre de la (Cabecera_Tb)\n\t\t\t\tforeach ($result as $f) {\n\t\t\t\t//Inicio ROW - Datos de la tabla\n\t\t\t\t$txt .= '<tr>';\n\t\t\t\t\t$txt .= '<td align=\"center\">';\t\n\t\t\t\t\t\t$txt .= $f[\"id_tpdoc\"];\n\t\t\t\t\t$txt .= '</td>';\n\t\t\t\t\t$txt .= '<td align=\"center\">';\t\n\t\t\t\t\t\t$txt .= $f[\"nom_tpdoc\"];\n\t\t\t\t\t$txt .= '</td>';\n\t\t\t\t\t$txt .= '<td align=\"center\">';\t\n\t\t\t\t\t\t$txt .= $f[\"extencion\"];\n\t\t\t\t\t$txt .= '</td>';\n\t\t\t\t\t//ICONOS-MOdificar (Boton)\n\t\t\t\t\t$txt .= '<td align=\"center\"><a href=\"home.php?pg=010&id_tpdoc='.$f[\"id_tpdoc\"].'\">\n\t\t\t\t\t\t<img src=\"img/actua.png\" title=\"Actualizar\"</a></td>';\n\t\t\t\t\t//ICONOS-Eliminar (Boton)\n\t\t\t\t\t$txt .= '<td align=\"center\"><a href=\"home.php?pg=010&del='.$f[\"id_tpdoc\"].'\">\n\t\t\t\t\t\t<img src=\"img/elemi.png\" title=\"Eliminar\"</a></td>';\n\t\t\t\t//Cierre ROW - Datos de la tabla\n\t\t\t\t$txt .= '</tr>';\n\t\t\t\t}\n\t\t\t$txt .= '</table>';\n\t\t$txt .= '</div>';\n\t\t}else{\n\t\t$txt.= '<div class=\"cuad\" style=\" width\": 90%;\">';\n\t\t $txt.= '<h3> No existen datos registrado en la base de datos...</h3>';\n\t\t $txt.='</div>';\n }\n\t\techo $txt;\n\t}", "function evt__form_integrante_i__modificacion($datos)\r\n {\r\n $perfil = toba::usuario()->get_perfil_datos();\r\n if ($perfil == null) {//es usuario de SCyT\r\n if($this->chequeo_formato_norma($datos['rescd_bm'])){ \r\n $datos2['rescd_bm']=$datos['rescd_bm'];\r\n $datos2['resaval']=$datos['resaval'];\r\n $datos2['cat_investigador']=$datos['cat_investigador'];\r\n $this->dep('datos')->tabla('integrante_interno_pi')->set($datos2);\r\n $this->dep('datos')->tabla('integrante_interno_pi')->sincronizar();\r\n toba::notificacion()->agregar('Guardado. Solo modifica ResCD baja/modif, Res Aval, Cat Investigador', 'info');\r\n }\r\n }else{//es usuario de la UA\r\n $pi=$this->controlador()->controlador()->dep('datos')->tabla('pinvestigacion')->get();\r\n $int=$this->dep('datos')->tabla('integrante_interno_pi')->get(); \r\n if($datos['desde']<$pi['fec_desde'] or $datos['hasta']>$pi['fec_hasta']){//no puede ir fuera del periodo del proyecto\r\n //toba::notificacion()->agregar('Revise las fechas. Fuera del periodo del proyecto!', 'error'); \r\n throw new toba_error(\"Revise las fechas. Fuera del periodo del proyecto!\");\r\n }else{ \r\n //Pendiente verificar que la modificacion no haga que se superpongan las fechas\r\n $haysuperposicion=false;//no es igual al del alta porque no tengo que considerar el registro vigente$this->controlador()->controlador()->dep('datos')->tabla('pinvestigacion')->superposicion_modif($pi['id_pinv'],$datos['id_docente'],$datos['desde'],$datos['hasta'],$registro['id_designacion'],$registro['desde']);\r\n if(!$haysuperposicion){\r\n $band=false;\r\n if($pi['estado']=='A'){\r\n $band=$this->dep('datos')->tabla('logs_integrante_interno_pi')->fue_chequeado($int['id_designacion'],$int['pinvest'],$int['desde']);\r\n } \r\n $regenorma = '/^[0-9]{4}\\/[0-9]{4}$/';\r\n if ( !preg_match($regenorma, $datos['rescd'], $matchFecha) ) {\r\n throw new toba_error('Nro Resolucion CD invalida. Debe ingresar en formato XXXX/YYYY');\r\n }else{\r\n if (isset($datos['rescd_bm']) && !preg_match($regenorma, $datos['rescd_bm'], $matchFecha) ) {\r\n throw new toba_error('Nro Resolucion CD Baja/Modif invalida. Debe ingresar en formato XXXX/YYYY');\r\n }else{\r\n if($band){//si alguna vez fue chequeado por SCyT entonces solo puede modificar fecha_hasta y nada mas (se supone que lo demas ya es correcto) \r\n //fecha_hasta porque puede ocurrir que haya una baja del participante o la modificacion de funcion o carga horaria\r\n unset($datos['funcion_p']);\r\n unset($datos['cat_investigador']);\r\n unset($datos['identificador_personal']);\r\n unset($datos['carga_horaria']);\r\n unset($datos['desde']);\r\n unset($datos['rescd']);\r\n unset($datos['cat_invest_conicet']);\r\n unset($datos['resaval']);\r\n unset($datos['hs_finan_otrafuente']);\r\n //Solo si cambia hasta y resol bm pierde el check\r\n if( $int['hasta']<>$datos['hasta'] or $int['rescd_bm']<>$datos['rescd_bm'] ){\r\n $datos['check_inv']=0;//pierde el check si es que lo tuviera. Solo cuando cambia algo\r\n }\r\n $mensaje='Ha sido chequeado por SCyT, solo puede modificar fecha hasta y resCD baja/modif';\r\n }else{//band false significa que puede modificar cualquier cosa\r\n //esto lo hago porque el set de toba no modifica la fecha desde por ser parte de la clave \r\n $this->dep('datos')->tabla('integrante_interno_pi')->modificar_fecha_desde($int['id_designacion'],$int['pinvest'],$int['desde'],$datos['desde']);\r\n $mensaje=\"Los datos se han guardado correctamente\";\r\n }\r\n $this->dep('datos')->tabla('integrante_interno_pi')->set($datos);\r\n $this->dep('datos')->tabla('integrante_interno_pi')->sincronizar();\r\n toba::notificacion()->agregar($mensaje, 'info'); \r\n }\r\n }\r\n }else{\r\n //toba::notificacion()->agregar('Hay superposicion de fechas', 'error'); \r\n throw new toba_error(\"Hay superposicion de fechas\");\r\n }\r\n }\r\n }\r\n //nuevo Lo coloco para que el formulario se oculte al finalizar\r\n $this->dep('datos')->tabla('integrante_interno_pi')->resetear();\r\n $this->s__mostrar_i=0;\r\n }", "function act_familia(){\n\t\t$u= new Familia_producto();\n\t\t$u->usuario_id=$GLOBALS['usuarioid'];\n\t\t$related = $u->from_array($_POST);\n\n\t\t// save with the related objects\n\t\tif($u->save($related))\n\t\t{\n\t\t\techo \"<html> <script>alert(\\\"Se han actualizado los datos de la Familia de Productos.\\\"); window.location='\".base_url().\"index.php/inicio/acceso/\".$GLOBALS['ruta'].\"/menu';</script></html>\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tshow_error(\"\".$u->error->string);\n\t\t}\n\t}", "public function luu_tt_sanpham()\n\t\t{\n\t\t\t//lay du lieu tu view \n\t\t\tif (isset($_POST['tensanpham'])&& isset($_POST['tenloaisanpham'])&& isset($_POST['img'])&& isset($_POST['mota'])&& isset($_POST['baohanh'])&& isset($_POST['gia'])){\n\t\t\t\t//goi ham luu data cua model san pham\n\t\t\t\t$this->tensanpham = $_POST['tensanpham'];\n\t\t\t\t$this->id_loaisp = $_POST['tenloaisanpham'];\n\t\t\t\t$this->img = $_POST['img'];\n\t\t\t\t$this->mota = $_POST['mota'];\n\t\t\t\t$this->baohanh = $_POST['baohanh'];\n\t\t\t\t$this->gia = $_POST['gia'];\n\t\t\t\t//goi ham luu data cua model sanpham\n\t\t\t\t$kq = $this->sanpham_model->insert_sanpham($this->tensanpham,$this->id_loaisp,$this->img,$this->mota,$this->baohanh,$this->gia);\n\t\t\t\tif ($kq) {\n\t\t\t\t\techo 'luu du lieu thanh cong -- sanphamcontroller';\n\t\t\t\t} else {\n\t\t\t\t\techo'luu du lieu that bai -- sanphamcontroller';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\techo 'ban chua nhap du lieu -- sanphamcontroller';\n\t\t\t}\t\t\t\n\t\t}", "function form_mostrar($conp,$nreg,$pg,$bo,$filtro,$arc,$pefedi,$pefeli){\n\t\t$mempresa = new mempresa();\n\t\t$pa = new mpaginacion();\n\t\t$txt = '';\n\t\t//Creamos el cuadro de buscar (filtros-Busquedas)\n\t\t$txt .= \"<table>\";\n\t\t\t//Una Fila\n\t\t\t$txt .= \"<tr>\";\n\t\t\t\t//1ra Columna - Formulario buscar\n\t\t\t\t$txt .= '<td>';\n\t\t\t\t$txt .= '<form id=\"formfil\" name=\"frmfil\" method=\"GET\" action=\"'.$arc.'\" class=\"txtbold\">';\n\t\t\t\t$txt .= '<input name=\"pg\" type=\"hidden\" value=\"'.$pg.'\" />';\n\t\t\t$txt .= '<input class=\"search-box\" type=\"text\" name=\"filtro\" value=\"'.$filtro.'\" placeholder=\"Nombre De Empresa\"\n\t\t\t\t\tonChange=\"this.form.submit();\">';\n\t\t\t\t\t$txt .= '<label for=\"search-box\"><span class=\"glyphicon fas fa-search search-icon\"></span></label>';\n\t\t\t\t$txt .= '</form>';\n\t\t\t$txt .= '</td>';\n\t\t\t\t//2da Columna control de paginacion\n\t\t\t\t$txt .= \"<td align='right' style='padding-left: 10px;'>\";\n\t\t\t\t\t$bo = \"<input type='hidden' name='filtro' value='\".$filtro.\"' />\";\n\t\t\t\t\t//Llamamos el metodo de contar la cantida de paginas\n\t\t\t\t\t$txt .= $pa->spag($conp,$nreg,$pg,$bo,$arc);\n\t\t\t\t\t//Llamar los datos para completar la paginacion\n\t\t\t\t\t$result = $mempresa->sel_empresa($filtro,$pa->rvalini(),$pa->rvalfin());\n\t\t\t\t$txt .= \"</td>\";\n\t\t\t//Cierre Fila\n\t\t\t$txt .= \"</tr>\";\n\t\t$txt .= \"</table>\";\n\t\t\n\t\tif($result){\n\t\t$txt .= '<div class=\"cuad1\" style=\"width: 90%; \">';\n\t\t\t$txt .= '<table1 width=\"100%\" cellspacing=\"0px\" align=\"center\">';\n\t\t\t\t\t\t\t$txt .= \"<table class='table table-hover'>\";\n\t\t\t\t//Inicio de la (Cabecera_Tb)\t\t\n\t\t\t\t$txt .= '<tr>';\n\t\t\t\t\t$txt .= '<th>';\n\t\t\t\t\t\t$txt .= 'Foto';\n\t\t\t\t\t$txt .= '</th>';\n\t\t\t\t\t$txt .= '<th>';\n\t\t\t\t\t\t$txt .= 'Empresa';\n\t\t\t\t\t$txt .= '</th>';\n\t\t\t\t\t$txt .= '<th></th>';\n\t\t\t\t$txt .= '</tr>';\n\t\t\t\t//Cierre de la (Cabecera_Tb)\n\t\t\t\tforeach ($result as $f) {\n\t\t\t\t//Inicio ROW - Datos de la tabla\n\t\t\t\t$txt .= '<tr>';\n\t\t\t\t\t$txt .= '<td align=\"center\">';\n\t\t\t\t\t$txt .= '<img src=\"'.$f['logemp'].'\" width=\"25px\" />';\n\t\t\t\t\t$txt .= '</td>';\n\t\t\t\t\t$txt .= \"<td class='active lefi'>\";\n\t\t\t\t\t$txt .= \"<span style='font-size: 20px;'><strong>\".$f['nitemp'].\" - \".$f['razsocialemp'].\"</strong></span>\";\n\t\t\t\t\t$txt .= \"<br><strong>Sede: </strong>\".$f['sedecentemp'];\n\t\t\t\t\t$txt .= \"<br><strong>Email: </strong>\".$f['emailemp'];\n\t\t\t\t\t$txt .= \"<br><strong>Telefono: </strong>\".$f['telemp'];\n\t\t\t\t\t$txt .= \"</td>\";\n\t\t\t\t\t\t//ICONOS-MOdificar (Boton)\n\t\t\t\t\t\t$txt .= \"<td class='warning' align='center'>\";\n\t\t\t\t\t\t$txt .= \"<a href='home.php?pg=002&idemp=\".$f['idemp'].\"'><ul class='social-icons icon-circle icon-zoom list-unstyled list-inline'><li><i class='fas fa-pen' title='Actualizar'></i></li></ul></a>\";\n\t\t\t\t\t\t//ICONOS-Eliminar (Boton)\n\t\t\t\t\t\t$txt .= \"<a href='home.php?pg=002&del=\".$f['idemp'].\"'><ul class='social-icons icon-circle icon-zoom list-unstyled list-inline'><li><i class='fas fa-times' title='Eliminar'></i></li></ul></td></a>\";\t\n\t\t\t\t\t\t$txt .= \"</td>\";\n\n\t\t\t\t//Cierre ROW - Datos de la tabla\n\t\t\t\t$txt .= '</tr>';\n\t\t\t\t}\n\t\t\t$txt .= '</table>';\n\t\t\t$txt .= '<BR>';\n\t\t\t\t\t$txt .= '<BR>';\n\t\t\t\t\t$txt .= '<BR>';\n\t\t$txt .= '</div>';\n\t\t}else{\n\t\t$txt .= '<div class=\"cuad\" style=\"width: 90%;\">';\n\t\t$txt .= '<h3>No existen datos registrado en la base de datos...</h3>';\n\t\t$txt .= '</div>';\t\t\n\t}\n\t\techo $txt;\n\t}", "private function _displayForm()\n\t{\n\t\t$transactions = array('0'=>$this->l('Authorization'),'1'=>$this->l('Preauthorization'),'2'=>$this->l('Preauthorization confirmation'),'3'=>$this->l('Callback'), '5' => $this->l('Recurring transaction'), '6' => $this->l('Successive transaction'), '7' => $this->l('Preauthentication'), '8' => $this->l('Preauthentication confirmation'), '9' => $this->l('Cancellation of Preauthentication'), 'O' => $this->l('Delayed authorization'), 'P' => $this->l('Delayed authorization confirmation'), 'Q' => $this->l('Delayed authorization cancellation'), 'R' => $this->l('Released initial recurring deferred'), 'S' => $this->l('Successive recurrent released'));\n\t\t\n\t\t$transact = 0;\n\t\t$transact2 = 0;\n\t\t$transact3 = 0;\n\t\tif ( (Tools::getValue('trans') == \"\") and (isset($this->trans)) )\n\t\t\t$transact = $this->trans;\n\t\telse\n\t\t\t$transact = Tools::getValue('trans');\n\t\tif ( (Tools::getValue('trans2') == \"\") and (isset($this->trans2)) )\n\t\t\t$transact2 = $this->trans2;\n\t\telse\n\t\t\t$transact2 = Tools::getValue('trans2');\n\t\tif ( (Tools::getValue('trans3') == \"\") and (isset($this->trans3)) )\n\t\t\t$transact3 = $this->trans3;\n\t\telse\n\t\t\t$transact3 = Tools::getValue('trans3');\n\t\t// obtenemos las monedas dadas de alta en la tienda\n\t\t$currencies = Currency::getCurrencies();\n\t\tif ( (Tools::getValue('nombre') == \"\") and (isset($this->nombre)) )\n\t\t\t$nombre = $this->nombre;\n\t\telse\n\t\t\t$nombre = Tools::getValue('nombre');\n\t\tif ( (Tools::getValue('nombre2') == \"\") and (isset($this->nombre2)) )\n\t\t\t$nombre2 = $this->nombre2;\n\t\telse\n\t\t\t$nombre2 = Tools::getValue('nombre2');\n\t\tif ( (Tools::getValue('nombre3') == \"\") and (isset($this->nombre3)) )\n\t\t\t$nombre3 = $this->nombre3;\n\t\telse\n\t\t\t$nombre3 = Tools::getValue('nombre3');\n\t\tif ( (Tools::getValue('clave') == \"\") and (isset($this->clave)) )\n\t\t\t$clave = $this->clave;\n\t\telse\n\t\t\t$clave = Tools::getValue('clave');\n\t\tif ( (Tools::getValue('clave2') == \"\") and (isset($this->clave2)) )\n\t\t\t$clave2 = $this->clave2;\n\t\telse\n\t\t\t$clave2 = Tools::getValue('clave2');\n\t\tif ( (Tools::getValue('clave3') == \"\") and (isset($this->clave3)) )\n\t\t\t$clave3 = $this->clave3;\n\t\telse\n\t\t\t$clave3 = Tools::getValue('clave3');\n\t\t// Opciones para el select de monedas.\n\t\tif ( (Tools::getValue('moneda') == \"\") and (isset($this->moneda)) )\n\t\t\t$moneda = $this->moneda;\n\t\telse\n\t\t\t$moneda = Tools::getValue('moneda');\n\t\tif ( (Tools::getValue('moneda2') == \"\") and (isset($this->moneda2)) )\n\t\t\t$moneda2 = $this->moneda2;\n\t\telse\n\t\t\t$moneda2 = Tools::getValue('moneda2');\n\t\tif ( (Tools::getValue('moneda3') == \"\") and (isset($this->moneda3)) )\n\t\t\t$moneda3 = $this->moneda3;\n\t\telse\n\t\t\t$moneda3 = Tools::getValue('moneda3');\n\t\t\n\t\tif ( (Tools::getValue('codigo') == \"\") and (isset($this->codigo)) )\n\t\t\t$codigo = $this->codigo;\n\t\telse\n\t\t\t$codigo = Tools::getValue('codigo');\n\t\tif ( (Tools::getValue('codigo2') == \"\") and (isset($this->codigo2)) )\n\t\t\t$codigo2 = $this->codigo2;\n\t\telse\n\t\t\t$codigo2 = Tools::getValue('codigo2');\n\t\tif ( (Tools::getValue('codigo3') == \"\") and (isset($this->codigo3)) )\n\t\t\t$codigo3 = $this->codigo3;\n\t\telse\n\t\t\t$codigo3 = Tools::getValue('codigo3');\n\t\tif ( (Tools::getValue('terminal') == \"\") and (isset($this->terminal)) )\n\t\t\t$terminal = $this->terminal;\n\t\telse\n\t\t\t$terminal = Tools::getValue('terminal');\n\t\tif ( (Tools::getValue('terminal2') == \"\") and (isset($this->terminal2)) )\n\t\t\t$terminal2 = $this->terminal2;\n\t\telse\n\t\t\t$terminal2 = Tools::getValue('terminal2');\n\t\tif ( (Tools::getValue('terminal3') == \"\") and (isset($this->terminal3)) )\n\t\t\t$terminal3 = $this->terminal3;\n\t\telse\n\t\t\t$terminal3 = Tools::getValue('terminal3');\n\t\t// Opciones para activar/desactivar SSL\n\t\t$ssl = Tools::getValue('ssl', $this->ssl);\n\t\t$ssl_si = ($ssl == 'si') ? ' checked=\"checked\" ' : '';\n\t\t$ssl_no = ($ssl == 'no') ? ' checked=\"checked\" ' : '';\n\t\t// Opciones para el comportamiento en error en el pago\n\t\t$error_pago = Tools::getValue('error_pago', $this->error_pago);\n\t\t$error_pago_si = ($error_pago == 'si') ? ' checked=\"checked\" ' : '';\n\t\t$error_pago_no = ($error_pago == 'no') ? ' checked=\"checked\" ' : '';\n\t\t// Opciones para activar los idiomas\n\t\t$idiomas_estado = Tools::getValue('idiomas_estado', $this->idiomas_estado);\n\t\t$idiomas_estado_si = ($idiomas_estado == 'si') ? ' checked=\"checked\" ' : '';\n\t\t$idiomas_estado_no = ($idiomas_estado == 'no') ? ' checked=\"checked\" ' : '';\n\t\t\n\t\t// Opciones entorno\n\t\tif (!isset($_POST['urltpv']))\n\t\t\t$entorno = Tools::getValue('env', $this->env);\n\t\telse\n\t\t\t$entorno = $_POST['urltpv'];\n\t\t$entorno_real_redsys = ($entorno==0) ? ' selected=\"selected\" ' : '';\n\t\t$entorno_t_redsys = ($entorno==1) ? ' selected=\"selected\" ' : '';\t\t\n\t\t$entorno_real_sermepa = ($entorno==2) ? ' selected=\"selected\" ' : '';\n\t\t$entorno_t_sermepa = ($entorno==3) ? ' selected=\"selected\" ' : '';\n\t\t// Opciones entorno 2\n\t\tif (!isset($_POST['urltpv2']))\n\t\t\t$entorno2 = Tools::getValue('env2', $this->env2);\n\t\telse\n\t\t\t$entorno2 = $_POST['urltpv2'];\n\t\t$entorno_real_redsys2 = ($entorno2==0) ? ' selected=\"selected\" ' : '';\n\t\t$entorno_t_redsys2 = ($entorno2==1) ? ' selected=\"selected\" ' : '';\t\t\n\t\t$entorno_real_sermepa2 = ($entorno2==2) ? ' selected=\"selected\" ' : '';\n\t\t$entorno_t_sermepa2 = ($entorno2==3) ? ' selected=\"selected\" ' : '';\n\t\t// Opciones entorno 3\n\t\tif (!isset($_POST['urltpv3']))\n\t\t\t$entorno3 = Tools::getValue('env3', $this->env3);\n\t\telse\n\t\t\t$entorno3 = $_POST['urltpv3'];\n\t\t$entorno_real_redsys3 = ($entorno3==0) ? ' selected=\"selected\" ' : '';\n\t\t$entorno_t_redsys3 = ($entorno3==1) ? ' selected=\"selected\" ' : '';\t\t\n\t\t$entorno_real_sermepa3 = ($entorno3==2) ? ' selected=\"selected\" ' : '';\n\t\t$entorno_t_sermepa3 = ($entorno3==3) ? ' selected=\"selected\" ' : '';\n\t\t// Opciones del tipo de firma\n\t\t$tipofirma = Tools::getValue('tipofirma', $this->tipofirma);\n\t \t$tipofirma_a = ($tipofirma==0) ? ' checked=\"checked\" ' : '';\n\t \t$tipofirma_c = ($tipofirma==1) ? ' checked=\"checked\" ' : '';\n \t\t$tipofirma2 = Tools::getValue('tipofirma2', $this->tipofirma2);\n\t \t$tipofirma_a2 = ($tipofirma2==0) ? ' checked=\"checked\" ' : '';\n\t \t$tipofirma_c2 = ($tipofirma2==1) ? ' checked=\"checked\" ' : '';\n\t \t$tipofirma3 = Tools::getValue('tipofirma3', $this->tipofirma3);\n\t \t$tipofirma_a3 = ($tipofirma3==0) ? ' checked=\"checked\" ' : '';\n\t \t$tipofirma_c3 = ($tipofirma3==1) ? ' checked=\"checked\" ' : '';\n\t \n\t // Opciones notificacion\n\t $notificacion = Tools::getValue('notificacion', $this->notificacion);\n\t\t$notificacion_s = ($notificacion==1) ? ' checked=\"checked\" ' : '';\n\t\t$notificacion_n = ($notificacion==0) ? ' checked=\"checked\" ' : '';\n\t\t// Opciones multimoneda\n\t $multimoneda = Tools::getValue('multimoneda', $this->multimoneda);\n\t\t$multimoneda_s = ($multimoneda==1) ? ' checked=\"checked\" ' : '';\n\t\t$multimoneda_n = ($multimoneda==0) ? ' checked=\"checked\" ' : '';\n\t\t\n\t\t// Mostar formulario\n\t\t$this->_html .=\n\t\t'<form action=\"'.$_SERVER['REQUEST_URI'].'\" method=\"post\">\n\t\t\t<fieldset>\n\t\t\t<legend><img src=\"../img/admin/contact.gif\" />'.$this->l('Virtual POS configuration').'</legend>\n\t\t\t\t<table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"4\" id=\"form\" style=\"font-size:12px;margin-bottom:3px\">\n\t\t\t\t\t<tr><td colspan=\"2\">\n\t\t\t\t\t\t<fieldset>\n\t\t\t\t\t\t<legend>'.$this->l('Commerce configuration').' 1</legend>\n\t\t\t\t\t\t<table border=\"0\" width=\"100%\" cellpadding=\"2\" cellspacing=\"3\" style=\"font-size:12px\">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Redsys environment').'</td>\n\t\t\t\t\t\t\t\t\t<td><select style=\"width:150px\" name=\"urltpv\">\n\t\t\t\t\t\t\t\t\t\t<option value=\"0\"'.$entorno_real_redsys.'>'.$this->l('Real Redsys').'</option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"1\"'.$entorno_t_redsys.'>'.$this->l('Testing Redsys').'</option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"2\"'.$entorno_real_sermepa.'>'.$this->l('Real Sermepa').'</option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"3\"'.$entorno_t_sermepa.'>'.$this->l('Testing Sermepa').'</option>\n\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Commerce name').'</td><td><input type=\"text\" name=\"nombre\" value=\"'.htmlentities($nombre, ENT_COMPAT, 'UTF-8').'\" style=\"width: 200px;\" /></div></td>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Secret Key encryption').'</td><td><input type=\"text\" size=\"25\" maxlength=\"20\" name=\"clave\" value=\"'.$clave.'\" style=\"width: 200px;\" /></td>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Terminal number').'</td><td><input type=\"text\" style=\"width:20px\" maxlength=\"3\" name=\"terminal\" value=\"'.$terminal.'\" style=\"width: 80px;\" /> &nbsp;\n\t\t\t\t\t\t\t\t\t'.$this->l('Currency').' &nbsp; <select style=\"width:130px\" name=\"moneda\" style=\"width: 80px;\"><option value=\"\"></option>';\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$monedaselected = '';\n\t\t\t\t\t\t\t\t\t\tforeach ($currencies AS $currency) {\n\t\t\t\t\t\t\t\t\t\t\tif ($moneda == $currency[\"iso_code_num\"]) \n\t\t\t\t\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\t\t\t\t\t$monedaselected = ' selected=\"selected\" ';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t$monedaselected = '';\n\t\t\t\t\t\t\t\t\t\t\t$this->_html .= '<option value=\"'.$currency['iso_code_num'].'\"'.$monedaselected.'>'.$currency['name'].'</option>';\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t$this->_html .= '</select>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Commerce number (FUC)').'</td><td><input type=\"text\" maxlength=\"9\" name=\"codigo\" value=\"'.$codigo.'\" style=\"width: 200px;\" /></td>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Signature type').'</td><td><input type=\"radio\" name=\"tipofirma\" id=\"tipofirma_c\" value=\"1\"'.$tipofirma_c.'/>&nbsp;'.$this->l('Full').'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=\"radio\" name=\"tipofirma\" id=\"tipofirma_a\" value=\"0\"'.$tipofirma_a.'/>&nbsp;'.$this->l('Full extended').'</td>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Transaction type').'</td>\n\t\t\t\t\t\t\t\t<td><select name=\"trans\" style=\"width: 200px;\"><option value=\"\"></option>';\n\t\t\t\t\t\t\t\t\t$transactionselected = '';\n\t\t\t\t\t\t\t\t\tforeach($transactions as $codigoTrans => $descripcionTrans) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tif ($transact == $codigoTrans) \n\t\t\t\t\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\t\t\t\t\t$transactionselected = ' selected=\"selected\" ';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t$transactionselected = '';\n\t\t\t\t\t\t\t\t\t\t\t$this->_html .= '<option value=\"'.$codigoTrans.'\"'.$transactionselected.'>'.$descripcionTrans.'</option>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t$this->_html .= '</select>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t</fieldset>\n\t\t\t\t\t</td></tr>\n\t\t\t\t\t<tr><td colspan=\"2\">\n\t\t\t\t\t\t<fieldset>\n\t\t\t\t\t\t<legend>'.$this->l('Commerce configuration').' 2</legend>\n\t\t\t\t\t\t<table border=\"0\" width=\"100%\" cellpadding=\"2\" cellspacing=\"3\" style=\"font-size:12px\">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Redsys environment').'</td>\n\t\t\t\t\t\t\t\t\t<td><select style=\"width:150px\" name=\"urltpv2\">\n\t\t\t\t\t\t\t\t\t\t<option value=\"0\"'.$entorno_real_redsys2.'>'.$this->l('Real Redsys').'</option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"1\"'.$entorno_t_redsys2.'>'.$this->l('Testing Redsys').'</option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"2\"'.$entorno_real_sermepa2.'>'.$this->l('Real Sermepa').'</option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"3\"'.$entorno_t_sermepa2.'>'.$this->l('Testing Sermepa').'</option>\n\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Commerce name').'</td><td><input type=\"text\" name=\"nombre2\" value=\"'.htmlentities($nombre2, ENT_COMPAT, 'UTF-8').'\" style=\"width: 200px;\" /></td>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Secret Key encryption').'</td><td><input type=\"text\" size=\"25\" maxlength=\"20\" name=\"clave2\" value=\"'.$clave2.'\" style=\"width: 200px;\" /></td>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Terminal number').'</td><td><input type=\"text\" style=\"width:20px\" maxlength=\"3\" name=\"terminal2\" value=\"'.$terminal2.'\" style=\"width: 80px;\" /> &nbsp;\n\t\t\t\t\t\t\t\t\t'.$this->l('Currency').' &nbsp; <select style=\"width:130px\" name=\"moneda2\" style=\"width: 80px;\"><option value=\"\"></option>';\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$monedaselected2 = '';\n\t\t\t\t\t\t\t\t\t\tforeach ($currencies AS $currency) {\n\t\t\t\t\t\t\t\t\t\t\tif ($moneda2 == $currency[\"iso_code_num\"]) \n\t\t\t\t\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\t\t\t\t\t$monedaselected2 = ' selected=\"selected\" ';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t$monedaselected2 = '';\n\t\t\t\t\t\t\t\t\t\t\t$this->_html .= '<option value=\"'.$currency['iso_code_num'].'\"'.$monedaselected2.'>'.$currency['name'].'</option>';\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t$this->_html .= '</select>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Commerce number (FUC)').'</td><td><input type=\"text\" maxlength=\"9\" name=\"codigo2\" value=\"'.$codigo2.'\" style=\"width: 200px;\" /></td>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Signature type').'</td><td><input type=\"radio\" name=\"tipofirma2\" id=\"tipofirma_c2\" value=\"1\"'.$tipofirma_c2.'/>&nbsp;'.$this->l('Full').'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=\"radio\" name=\"tipofirma2\" id=\"tipofirma_a2\" value=\"0\"'.$tipofirma_a2.'/>&nbsp;'.$this->l('Full extended').'</td>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Transaction type').'</td>\n\t\t\t\t\t\t\t\t<td><select name=\"trans2\" style=\"width: 200px;\"><option value=\"\"></option>';\n\t\t\t\t\t\t\t\t\t$transactionselected2 = '';\n\t\t\t\t\t\t\t\t\tforeach($transactions as $codigoTrans => $descripcionTrans) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tif ($transact2 == $codigoTrans) \n\t\t\t\t\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\t\t\t\t\t$transactionselected2 = ' selected=\"selected\" ';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t$transactionselected2 = '';\n\t\t\t\t\t\t\t\t\t\t\t$this->_html .= '<option value=\"'.$codigoTrans.'\"'.$transactionselected2.'>'.$descripcionTrans.'</option>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t$this->_html .= '</select>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t</fieldset>\n\t\t\t\t\t</td></tr>\n\t\t\t\t\t<tr><td colspan=\"2\">\n\t\t\t\t\t\t<fieldset>\n\t\t\t\t\t\t<legend>'.$this->l('Commerce configuration').' 3</legend>\n\t\t\t\t\t\t<table border=\"0\" width=\"100%\" cellpadding=\"2\" cellspacing=\"3\" style=\"font-size:12px\">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Redsys environment').'</td>\n\t\t\t\t\t\t\t\t\t<td><select style=\"width:150px\" name=\"urltpv3\">\n\t\t\t\t\t\t\t\t\t\t<option value=\"0\"'.$entorno_real_redsys3.'>'.$this->l('Real Redsys').'</option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"1\"'.$entorno_t_redsys3.'>'.$this->l('Testing Redsys').'</option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"2\"'.$entorno_real_sermepa3.'>'.$this->l('Real Sermepa').'</option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"3\"'.$entorno_t_sermepa3.'>'.$this->l('Testing Sermepa').'</option>\n\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Commerce name').'</td><td><input type=\"text\" name=\"nombre3\" value=\"'.htmlentities($nombre3, ENT_COMPAT, 'UTF-8').'\" style=\"width: 200px;\" /></td>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Secret Key encryption').'</td><td><input type=\"text\" size=\"25\" maxlength=\"20\" name=\"clave3\" value=\"'.$clave3.'\" style=\"width: 200px;\" /></td>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Terminal number').'</td><td><input type=\"text\" style=\"width:20px\" maxlength=\"3\" name=\"terminal3\" value=\"'.$terminal3.'\" style=\"width: 80px;\" /> &nbsp;\n\t\t\t\t\t\t\t\t\t'.$this->l('Currency').' &nbsp; <select style=\"width:130px\" name=\"moneda3\" style=\"width: 80px;\"><option value=\"\"></option>';\t\t\t\t\n\t\t\t\t\t\t\t\t\t$monedaselected3 = '';\n\t\t\t\t\t\t\t\t\tforeach ($currencies AS $currency) {\n\t\t\t\t\t\t\t\t\t\tif ($moneda3 == $currency[\"iso_code_num\"]) \n\t\t\t\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\t\t\t\t$monedaselected3 = ' selected=\"selected\" ';\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t$monedaselected3 = '';\n\t\t\t\t\t\t\t\t\t\t$this->_html .= '<option value=\"'.$currency['iso_code_num'].'\"'.$monedaselected3.'>'.$currency['name'].'</option>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$this->_html .= '</select>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Commerce number (FUC)').'</td><td><input type=\"text\" maxlength=\"9\" name=\"codigo3\" value=\"'.$codigo3.'\" style=\"width: 200px;\" /></td>\n\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Signature type').'</td><td><input type=\"radio\" name=\"tipofirma3\" id=\"tipofirma_c3\" value=\"1\"'.$tipofirma_c3.'/>&nbsp;'.$this->l('Full').'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=\"radio\" name=\"tipofirma3\" id=\"tipofirma_a3\" value=\"0\"'.$tipofirma_a3.'/>&nbsp;'.$this->l('Full extended').'</td>\n\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Transaction type').'</td>\n\t\t\t\t\t\t\t<td><select name=\"trans3\" style=\"width: 200px;\"><option value=\"\"></option>';\n\t\t\t\t\t\t\t\t\t$transactionselected3 = '';\n\t\t\t\t\t\t\t\t\tforeach($transactions as $codigoTrans => $descripcionTrans) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tif ($transact3 == $codigoTrans) \n\t\t\t\t\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\t\t\t\t\t$transactionselected3 = ' selected=\"selected\" ';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t$transactionselected3 = '';\n\t\t\t\t\t\t\t\t\t\t\t$this->_html .= '<option value=\"'.$codigoTrans.'\"'.$transactionselected3.'>'.$descripcionTrans.'</option>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t$this->_html .= '</select>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t</fieldset>\n\t\t\t\t\t</td></tr>\t\t\t\t\t\n\t\t\t\t</table>\n\t\t\t</fieldset>\n\t\t\t<br>\n\t\t\t<fieldset>\n\t\t\t<legend><img src=\"../img/admin/cog.gif\" />'.$this->l('Customization').'</legend>\n\t\t\t\t<table border=\"0\" width=\"680\" cellpadding=\"0\" cellspacing=\"0\" id=\"form\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td width=\"450\" style=\"height: 25px;\">'.$this->l('Multicurrency activation (only in stores with more than one terminal)').'</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<input type=\"radio\" name=\"multimoneda\" id=\"multimoneda_1\" value=\"1\"'.$multimoneda_s.'/>\n\t\t\t\t\t\t\t<img src=\"../img/admin/enabled.gif\" alt=\"'.$this->l('Enabled').'\" title=\"'.$this->l('Enabled').'\" />\n\t\t\t\t\t\t\t<input type=\"radio\" name=\"multimoneda\" id=\"multimoneda_0\" value=\"0\"'.$multimoneda_n.'/>\n\t\t\t\t\t\t\t<img src=\"../img/admin/disabled.gif\" alt=\"'.$this->l('Disabled').'\" title=\"'.$this->l('Disabled').'\" />\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td width=\"450\" style=\"height: 25px;\">'.$this->l('HTTP notification (if disabled not process order and empty your cart)').'</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<input type=\"radio\" name=\"notificacion\" id=\"notificacion_1\" value=\"1\"'.$notificacion_s.'/>\n\t\t\t\t\t\t\t<img src=\"../img/admin/enabled.gif\" alt=\"'.$this->l('Enabled').'\" title=\"'.$this->l('Enabled').'\" />\n\t\t\t\t\t\t\t<input type=\"radio\" name=\"notificacion\" id=\"notificacion_0\" value=\"0\"'.$notificacion_n.'/>\n\t\t\t\t\t\t\t<img src=\"../img/admin/disabled.gif\" alt=\"'.$this->l('Disabled').'\" title=\"'.$this->l('Disabled').'\" />\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td width=\"340\" style=\"height: 25px;\">'.$this->l('URL validation with SSL').'</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<input type=\"radio\" name=\"ssl\" id=\"ssl_1\" value=\"si\" '.$ssl_si.'/>\n\t\t\t\t\t\t\t<img src=\"../img/admin/enabled.gif\" alt=\"'.$this->l('Enabled').'\" title=\"'.$this->l('Enabled').'\" />\n\t\t\t\t\t\t\t<input type=\"radio\" name=\"ssl\" id=\"ssl_0\" value=\"no\" '.$ssl_no.'/>\n\t\t\t\t\t\t\t<img src=\"../img/admin/disabled.gif\" alt=\"'.$this->l('Disabled').'\" title=\"'.$this->l('Disabled').'\" />\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td width=\"340\" style=\"height: 25px;\">'.$this->l('On error, allowing choose another payment method').'</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<input type=\"radio\" name=\"error_pago\" id=\"error_pago_1\" value=\"si\" '.$error_pago_si.'/>\n\t\t\t\t\t\t\t<img src=\"../img/admin/enabled.gif\" alt=\"'.$this->l('Enabled').'\" title=\"'.$this->l('Enabled').'\" />\n\t\t\t\t\t\t\t<input type=\"radio\" name=\"error_pago\" id=\"error_pago_0\" value=\"no\" '.$error_pago_no.'/>\n\t\t\t\t\t\t\t<img src=\"../img/admin/disabled.gif\" alt=\"'.$this->l('Disabled').'\" title=\"'.$this->l('Disabled').'\" />\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td width=\"340\" style=\"height: 25px;\">'.$this->l('Enable languages in POS').'</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<input type=\"radio\" name=\"idiomas_estado\" id=\"idiomas_estado_si\" value=\"si\" '.$idiomas_estado_si.'/>\n\t\t\t\t\t\t\t<img src=\"../img/admin/enabled.gif\" alt=\"'.$this->l('Enabled').'\" title=\"'.$this->l('Enabled').'\" />\n\t\t\t\t\t\t\t<input type=\"radio\" name=\"idiomas_estado\" id=\"idiomas_estado_no\" value=\"no\" '.$idiomas_estado_no.'/>\n\t\t\t\t\t\t\t<img src=\"../img/admin/disabled.gif\" alt=\"'.$this->l('Disabled').'\" title=\"'.$this->l('Disabled').'\" />\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t</fieldset>\n\t\t\t<br>\n\t\t<input class=\"button\" name=\"btnSubmit\" value=\"'.$this->l('Save configuration').'\" type=\"submit\" />\n\t\t</form>';\n\t}", "function show_form()\n\t{\n\t\t//-----------------------------------------\n\t\t// INIT\n\t\t//-----------------------------------------\n\n\t\t$raw_post = \"\";\n\t\t\n\t\t//-----------------------------------------\n\t\t// Unconvert the saved post if required\n\t\t//-----------------------------------------\n\t\t\n\t\tif ( ! isset($_POST['Post']) )\n\t\t{\n\t\t\t//-----------------------------------------\n\t\t\t// If we're using RTE, then just clean up html\n\t\t\t//-----------------------------------------\n\t\t\t\n\t\t\tif ( $this->han_editor->method == 'rte' )\n\t\t\t{\n\t\t\t\t$raw_post = $this->parser->convert_ipb_html_to_html( $this->orig_post['post'] );\n\n\t\t\t\tif( intval($this->orig_post['post_htmlstate']) AND $this->forum['use_html'] AND $this->ipsclass->member['g_dohtml'] )\n\t\t\t\t{\n\t\t\t\t\t# Make EMO_DIR safe so the ^> regex works\n\t\t\t\t\t$raw_post = str_replace( \"<#EMO_DIR#>\", \"&lt;#EMO_DIR&gt;\", $raw_post );\n\t\t\t\t\t\n\t\t\t\t\t# New emo\n\t\t\t\t\t$raw_post = preg_replace( \"#(\\s)?<([^>]+?)emoid=\\\"(.+?)\\\"([^>]*?)\".\">(\\s)?#is\", \"\\\\1\\\\3\\\\5\", $raw_post );\n\t\t\t\t\t\n\t\t\t\t\t# And convert it back again...\n\t\t\t\t\t$raw_post = str_replace( \"&lt;#EMO_DIR&gt;\", \"<#EMO_DIR#>\", $raw_post );\n\n\t\t\t\t\t$raw_post = $this->parser->convert_std_to_rte( $raw_post );\n\t\t\t\t}\n\n\t\t\t\tif( isset($this->orig_post['post_htmlstate']) AND $this->orig_post['post_htmlstate'] == 2 )\n\t\t\t\t{\n\t\t\t\t\t$raw_post = str_replace( '&lt;br&gt;', \"<br />\", $raw_post );\n\t\t\t\t\t$raw_post = str_replace( '&lt;br /&gt;', \"<br />\", $raw_post );\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->orig_post['post_htmlstate'] = isset($this->orig_post['post_htmlstate']) ? $this->orig_post['post_htmlstate'] : 0;\n\t\t\t\t$this->parser->parse_html = intval($this->orig_post['post_htmlstate']) AND $this->forum['use_html'] AND $this->ipsclass->member['g_dohtml'] ? 1 : 0;\n\t\t\t\t$this->parser->parse_nl2br = (isset($this->orig_post['post_htmlstate']) AND $this->orig_post['post_htmlstate'] == 2) ? 1 : 0;\n\t\t\t\t$this->parser->parse_smilies = intval($this->orig_post['use_emo']);\n\t\t\t\t$this->parser->parse_bbcode = $this->forum['use_ibc'];\n\n\t\t\t\tif( $this->parser->parse_html )\n\t\t\t\t{\n\t\t\t\t\t# Make EMO_DIR safe so the ^> regex works\n\t\t\t\t\t$this->orig_post['post'] = str_replace( \"<#EMO_DIR#>\", \"&lt;#EMO_DIR&gt;\", $this->orig_post['post'] );\n\t\t\t\t\t\n\t\t\t\t\t# New emo\n\t\t\t\t\t$this->orig_post['post'] = preg_replace( \"#(\\s)?<([^>]+?)emoid=\\\"(.+?)\\\"([^>]*?)\".\">(\\s)?#is\", \"\\\\1\\\\3\\\\5\", $this->orig_post['post'] );\n\t\t\t\t\t\n\t\t\t\t\t# And convert it back again...\n\t\t\t\t\t$this->orig_post['post'] = str_replace( \"&lt;#EMO_DIR&gt;\", \"<#EMO_DIR#>\", $this->orig_post['post'] );\n\t\t\t\t\n\t\t\t\t\t$this->orig_post['post'] = $this->parser->convert_ipb_html_to_html( $this->orig_post['post'] );\n\t\t\t\t\t\n\t\t\t\t\t$this->orig_post['post'] = htmlspecialchars( $this->orig_post['post'] );\n\t\t\t\t\t\n\t\t\t\t\tif( $this->parser->parse_nl2br )\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->orig_post['post'] = str_replace( '&lt;br&gt;', \"\\n\", $this->orig_post['post'] );\n\t\t\t\t\t\t$this->orig_post['post'] = str_replace( '&lt;br /&gt;', \"\\n\", $this->orig_post['post'] );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$raw_post = $this->parser->pre_edit_parse( $this->orig_post['post'] );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif ( $this->han_editor->method != 'rte' )\n\t\t\t{\n\t\t\t\t$_POST['Post'] = str_replace( '&', '&amp;', $_POST['Post'] );\n\t\t\t}\n\n\t\t\tif ( $this->ipsclass->input['_from'] == 'quickedit' )\n\t\t\t{\n\t\t\t\t$this->orig_post['post_htmlstatus'] = isset($this->orig_post['post_htmlstatus']) ? $this->orig_post['post_htmlstatus'] : 0;\n\t\t\t\t$this->parser->parse_html = intval($this->orig_post['post_htmlstatus']) AND $this->forum['use_html'] AND $this->ipsclass->member['g_dohtml'] ? 1 : 0;\n\t\t\t\t$this->parser->parse_nl2br = (isset($this->ipsclass->input['post_htmlstatus']) AND $this->ipsclass->input['post_htmlstatus'] == 2) ? 1 : 0;\n\t\t\t\t$this->parser->parse_smilies = intval($this->orig_post['use_emo']);\n\t\t\t\t$this->parser->parse_bbcode = $this->forum['use_ibc'];\n\n\t\t\t\tif ( $this->han_editor->method == 'rte' )\n\t\t\t\t{\n\t\t\t\t\t$raw_post = $this->parser->convert_std_to_rte( $this->ipsclass->txt_stripslashes( $_POST['Post'] ) );\n\t\t\t\t\t\n\t\t\t\t\tforeach( $this->ipsclass->skin['_macros'] as $row )\n\t\t\t \t{\n\t\t\t\t\t\tif ( $row['macro_value'] != \"\" )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$raw_post = str_replace( \"<{\".$row['macro_value'].\"}>\", $row['macro_replace'], $raw_post );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$raw_post = str_replace( \"<#IMG_DIR#>\", $this->ipsclass->skin['_imagedir'], $raw_post );\n\t\t\t\t\t$raw_post = str_replace( \"<#EMO_DIR#>\", $this->ipsclass->skin['_emodir'] , $raw_post );\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$raw_post = $this->ipsclass->txt_stripslashes( $_POST['Post'] );\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$raw_post = $this->ipsclass->txt_stripslashes( $_POST['Post'] );\n\t\t\t}\n\t\t}\n\t\t\n\t\t//-----------------------------------------\n\t\t// Is this the first post in the topic?\n\t\t//-----------------------------------------\n\t\t\n\t\t$topic_title = \"\";\n\t\t$topic_desc = \"\";\n\t\t\n\t\tif ( $this->edit_title == 1 )\n\t\t{\n\t\t\t$topic_title = isset($_POST['TopicTitle']) ? $this->ipsclass->input['TopicTitle'] : $this->topic['title'];\n\t\t\t$topic_desc = isset($_POST['TopicDesc']) ? $this->ipsclass->input['TopicDesc'] : $this->topic['description'];\n\t\t\t\n\t\t\t$topic_title = $this->ipsclass->compiled_templates['skin_post']->topictitle_fields( array( 'TITLE' => $topic_title, 'DESC' => $topic_desc ) );\n\t\t}\n\t\t\n\t\t//-----------------------------------------\n\t\t// Do we have any posting errors?\n\t\t//-----------------------------------------\n\t\t\n\t\tif ( isset($this->obj['post_errors']) AND $this->obj['post_errors'] )\n\t\t{\n\t\t\t$this->output .= $this->ipsclass->compiled_templates['skin_post']->errors( $this->ipsclass->lang[ $this->obj['post_errors'] ]);\n\t\t}\n\t\t\n\t\tif ( isset($this->obj['preview_post']) AND $this->obj['preview_post'] )\n\t\t{\n\t\t\t$this->output .= $this->ipsclass->compiled_templates['skin_post']->preview( $this->show_post_preview( $this->post['post'], $this->post_key ) );\n\t\t}\n\t\t\n\t\t$this->output .= $this->html_start_form( array( 1 => array( 'CODE' , '09' ),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t2 => array( 't' , $this->topic['tid']),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t3 => array( 'p' , $this->ipsclass->input['p'] ),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t4 => array( 'st' , $this->ipsclass->input['st'] ),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t5 => array( 'attach_post_key', $this->post_key )\n\t\t\t\t\t\t\t\t\t\t\t ) );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t//-----------------------------------------\n\t\t// START TABLE\n\t\t//-----------------------------------------\n\t\t\n\t\t$this->output .= $this->ipsclass->compiled_templates['skin_post']->table_structure();\n\t\t\n\t\t$start_table = $this->ipsclass->compiled_templates['skin_post']->table_top( \"{$this->ipsclass->lang['top_txt_edit']} {$this->topic['title']}\");\n\t\t\n\t\t$name_fields = $this->html_name_field();\n\t\t\n\t\t$post_box = $this->html_post_body( $raw_post );\n\t\t\t\n\t\t$mod_options = $this->edit_title == 1 ? $this->mod_options('edit') : '';\n\t\t\n\t\t$end_form = $this->ipsclass->compiled_templates['skin_post']->EndForm( $this->ipsclass->lang['submit_edit'] );\n\t\t\n\t\t$post_icons = $this->html_post_icons($this->orig_post['icon_id']);\n\t\t\n\t\t$upload_field = $this->can_upload ? $this->html_build_uploads($this->post_key,'edit',$this->orig_post['pid']) : '';\n\t\t\n\t\t//-----------------------------------------\n\t\t// Still here?\n\t\t//-----------------------------------------\n\t\t\n\t\t$poll_box = \"\";\n\t\t\n\t\tif ( $this->can_add_poll )\n\t\t{\n\t\t\t//-----------------------------------------\n\t\t\t// Did someone hit preview / do we have\n\t\t\t// post info?\n\t\t\t//-----------------------------------------\n\t\t\t\n\t\t\t$poll_questions = \"\";\n\t\t\t$poll_choices = \"\";\n\t\t\t$poll_votes = \"\";\n\t\t\t$show_open = 0;\n\t\t\t$is_mod = 0;\n\t\t\t$poll_only\t\t= \"\";\n\t\t\t$poll_multi\t\t= \"\";\t\t\t\n\t\t\t\n\t\t\tif ( isset($_POST['question']) AND is_array( $_POST['question'] ) and count( $_POST['question'] ) )\n\t\t\t{\n\t\t\t\tforeach( $_POST['question'] as $id => $question )\n\t\t\t\t{\n\t\t\t\t\t$poll_questions .= \"\\t{$id} : '\".str_replace( \"'\", '&#39;', $question ).\"',\\n\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$poll_question = $this->ipsclass->input['poll_question'];\n\t\t\t\t$show_open = 1;\n\t\t\t\t\n\t\t\t\tif ( is_array( $_POST['choice'] ) and count( $_POST['choice'] ) )\n\t\t\t\t{\n\t\t\t\t\tforeach( $_POST['choice'] as $id => $choice )\n\t\t\t\t\t{\n\t\t\t\t\t\t$poll_choices .= \"\\t'{$id}' : '\".str_replace( \"'\", '&#39;', $choice ).\"',\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ( isset($_POST['multi']) AND is_array( $_POST['multi'] ) and count( $_POST['multi'] ) )\n\t\t\t\t{\n\t\t\t\t\tforeach( $_POST['multi'] as $id => $checked )\n\t\t\t\t\t{\n\t\t\t\t\t\t$poll_multi .= \"\\t{$id} : '{$checked}',\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ( is_array( $_POST['votes'] ) and count( $_POST['votes'] ) )\n\t\t\t\t{\n\t\t\t\t\tforeach( $_POST['votes'] as $id => $vote )\n\t\t\t\t\t{\n\t\t\t\t\t\t$poll_votes .= \"\\t'{$id}' : '\".$vote.\"',\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$poll_only = 0;\n\t\t\t\t\n\t\t\t\tif( $this->ipsclass->vars['ipb_poll_only'] AND $this->ipsclass->input['poll_only'] == 1 )\n\t\t\t\t{\n\t\t\t\t\t$poll_only = \"checked='checked'\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$poll_questions = preg_replace( \"#,(\\n)?$#\", \"\\\\1\", $poll_questions );\n\t\t\t\t$poll_choices = preg_replace( \"#,(\\n)?$#\", \"\\\\1\", $poll_choices );\n\t\t\t\t$poll_multi \t= preg_replace( \"#,(\\n)?$#\", \"\\\\1\", $poll_multi );\n\t\t\t\t$poll_votes = preg_replace( \"#,(\\n)?$#\", \"\\\\1\", $poll_votes );\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\n\t\t\t\t//-----------------------------------------\n\t\t\t\t// Load the poll from the DB\n\t\t\t\t//-----------------------------------------\n\t\t\t\t\n\t\t\t\t$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'polls', 'where' => \"tid=\".$this->topic['tid'] ) );\n\t\t\t\t$this->ipsclass->DB->simple_exec();\n\t\t\n\t \t\t$this->poll_data = $this->ipsclass->DB->fetch_row();\n\t \t\t\n\t \t\t$this->poll_answers = $this->poll_data['choices'] ? unserialize(stripslashes($this->poll_data['choices'])) : array();\n\n \t\t//-----------------------------------------\n \t\t// Lezz go\n \t\t//-----------------------------------------\n \t\t\n \t\tforeach( $this->poll_answers as $question_id => $data )\n \t\t{\n \t\t\t$poll_questions .= \"\\t{$question_id} : '\".str_replace( \"'\", '&#39;', $data['question'] ).\"',\\n\";\n \t\t\t\n \t\t\t$data['multi']\t = isset($data['multi']) ? intval($data['multi']) : 0;\n \t\t\t$poll_multi \t.= \"\\t{$question_id} : '\".$data['multi'].\"',\\n\";\n \t\t\t\n \t\t\tforeach( $data['choice'] as $choice_id => $text )\n\t\t\t\t\t{\n\t\t\t\t\t\t$choice = $text;\n\t\t\t\t\t\t$votes = intval($data['votes'][ $choice_id ]);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$poll_choices .= \"\\t'{$question_id}_{$choice_id}' : '\".str_replace( \"'\", '&#39;', $choice ).\"',\\n\";\n\t\t\t\t\t\t$poll_votes .= \"\\t'{$question_id}_{$choice_id}' : '\".$votes.\"',\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$poll_only = 0;\n\t\t\t\t\n\t\t\t\tif ( $this->ipsclass->vars['ipb_poll_only'] AND $this->poll_data['poll_only'] == 1 )\n\t\t\t\t{\n\t\t\t\t\t$poll_only = \"checked='checked'\";\n\t\t\t\t}\t\t\t\t\n\t\t\t\t\n\t\t\t\t//-----------------------------------------\n\t\t\t\t// Trim off trailing commas (Safari hates it)\n\t\t\t\t//-----------------------------------------\n\t\t\t\t\n\t\t\t\t$poll_questions = preg_replace( \"#,(\\n)?$#\", \"\\\\1\", $poll_questions );\n\t\t\t\t$poll_choices = preg_replace( \"#,(\\n)?$#\", \"\\\\1\", $poll_choices );\n\t\t\t\t$poll_multi \t= preg_replace( \"#,(\\n)?$#\", \"\\\\1\", $poll_multi );\n\t\t\t\t$poll_votes = preg_replace( \"#,(\\n)?$#\", \"\\\\1\", $poll_votes );\n\t\t\t\t\n\t\t\t\t$poll_question = $this->poll_data['poll_question'];\n\t\t\t\t$show_open = $this->poll_data['choices'] ? 1 : 0;\n\t\t\t\t$is_mod = $this->can_add_poll_mod;\n\t\t\t}\n\t\t\t\n\t\t\t//-----------------------------------------\n\t\t\t// Print poll box\n\t\t\t//-----------------------------------------\n\t\t\t\n\t\t\t$poll_box = $this->ipsclass->compiled_templates['skin_post']->poll_box( $this->max_poll_questions, $this->max_poll_choices_per_question, $poll_questions, $poll_choices, $poll_votes, $show_open, $poll_question, $is_mod, $poll_multi, $poll_only );\n\t\t}\n\t\t\n\t\t$edit_option = \"\";\n\t\t\n\t\tif ($this->ipsclass->member['g_append_edit'])\n\t\t{\n\t\t\t$checked = \"\";\n\t\t\t$show_reason = 0;\n\t\t\t\n\t\t\tif ($this->orig_post['append_edit'])\n\t\t\t{\n\t\t\t\t$checked = \"checked\";\n\t\t\t}\n\t\t\t\n\t\t\tif ( $this->moderator['edit_post'] OR $this->ipsclass->member['g_is_supmod'] )\n\t\t\t{\n\t\t\t\t$show_reason = 1;\n\t\t\t}\n\t\t\t\n\t\t\t$edit_option = $this->ipsclass->compiled_templates['skin_post']->add_edit_box( $checked, $show_reason, $this->ipsclass->input['post_edit_reason'] ? $this->ipsclass->input['post_edit_reason'] : $this->orig_post['post_edit_reason'] );\n\t\t}\n\t\t\n\t\t$this->output = str_replace( \"<!--START TABLE-->\" , $start_table , $this->output );\n\t\t$this->output = str_replace( \"<!--NAME FIELDS-->\" , $name_fields , $this->output );\n\t\t$this->output = str_replace( \"<!--POST BOX-->\" , $post_box , $this->output );\n\t\t$this->output = str_replace( \"<!--POLL BOX-->\" , $poll_box , $this->output );\n\t\t$this->output = str_replace( \"<!--POST ICONS-->\" , $post_icons , $this->output );\n\t\t$this->output = str_replace( \"<!--END TABLE-->\" , $end_form , $this->output );\n\t\t$this->output = str_replace( \"<!--UPLOAD FIELD-->\", $upload_field , $this->output );\n\t\t$this->output = str_replace( \"<!--MOD OPTIONS-->\" , $edit_option . $mod_options , $this->output );\n\t\t$this->output = str_replace( \"<!--FORUM RULES-->\" , $this->ipsclass->print_forum_rules($this->forum), $this->output );\n\t\t$this->output = str_replace( \"<!--TOPIC TITLE-->\" , $topic_title , $this->output );\n\t\t\n\t\t//-----------------------------------------\n\t\t// Add in siggy buttons and such\n\t\t//-----------------------------------------\n\t\t\n\t\t$this->ipsclass->input['post_htmlstatus'] = $this->orig_post['post_htmlstate'];\n\t\t$this->ipsclass->input['enablesig']\t\t = $this->orig_post['use_sig'];\n\t\t$this->ipsclass->input['enableemo']\t\t = $this->orig_post['use_emo'];\n\t\t\n\t\t$this->html_checkboxes('edit', $this->topic['tid'], $this->forum['id']);\n\t\t\n\t\t$this->html_topic_summary( $this->topic['tid'] );\n\t\t\n\t\t$this->show_post_navigation();\n\t\t\t\t\t\t \n\t\t$this->title = $this->ipsclass->lang['editing_post'].' '.$this->topic['title'];\n\t\t\n\t\t$this->ipsclass->print->add_output( $this->output );\n\t\t\n $this->ipsclass->print->do_output( array( 'TITLE' => $this->ipsclass->vars['board_name'].\" -> \".$this->title,\n \t\t\t\t\t \t 'JS' => 1,\n \t\t\t\t\t \t 'NAV' => $this->nav,\n \t\t\t\t\t ) );\n\t}", "function buildForm(){\n\t\t# menampilkan form\n\t}", "function displayAppointmentList($list){\n if ($list==null){\n $contents='<p>Aucun rendez-vous n\\'a été programmé</p>';\n }\n else {\n $contents='<p>Liste des rendez-vous :</p>\n <form id=\"resultat_rdv\" name=\"resultat_rdv\">';\n $i=1;\n foreach($list as $line){\n $contents.='<fieldset>\n <legend>Rendez-vous '.$i.'</legend>\n <p><label>Nom du médecin: </label>\n <input type=\"text\" value=\"'.$line->nom_employe.'\" disabled /></p>\n <p><label>Date : </label>\n <input type=\"text\" value=\"'.$line->date_creneau.'\" disabled /></p>\n <p><label>Heure : </label>\n <input type=\"text\" value=\"'.$line->heure_creneau.'\" disabled /></p>\n <p><label>Prix : </label>\n <input type=\"text\" value=\"'.$line->prix_motif.'\" disabled /></p>\n <p><label>Statut : </label>\n <input type=\"text\" value=\"'.$line->statut_paiement.'\" disabled /></p>\n </fieldset>';\n $i++;\n }\n $contents.='</form>';\n }\n // $contentsError='';\n // require_once('gabarit_agent.php');\n return $contents;\n}", "function _ajax_kelompok($form, $form_state) {\r\n\treturn $form['wrapperjenis'];\r\n}", "function DftrBipotMaster() {\r\n $ka = (empty($_REQUEST['sub1']))? DftrBipotIsi() : $_REQUEST['sub1']();\r\n $ki = AmbilDaftarBipotMaster();\r\n \r\n echo \"<p><table class=bsc cellspacing=1 cellpadding=0 width=100%>\r\n <td valign=top width=400 class=kolkir>$ki</td>\r\n <td valign=top class=kolkan>$ka</td>\r\n </table></p>\";\r\n}" ]
[ "0.6279645", "0.6163497", "0.6052305", "0.6021558", "0.60148185", "0.5950976", "0.5920617", "0.5860056", "0.58533406", "0.5808188", "0.5756651", "0.5746951", "0.5708656", "0.5689071", "0.5686829", "0.5669797", "0.56565964", "0.56461126", "0.563926", "0.5636834", "0.563655", "0.5630777", "0.56280726", "0.5627632", "0.56211126", "0.5615652", "0.56147707", "0.5612754", "0.5608884", "0.56087595", "0.56038296", "0.5600226", "0.5599538", "0.5596887", "0.55891025", "0.5588725", "0.5586667", "0.5577733", "0.55769306", "0.55753434", "0.5558926", "0.55444604", "0.55407286", "0.5533848", "0.5533137", "0.55323607", "0.55209243", "0.55173796", "0.55110586", "0.5507763", "0.55060834", "0.55059475", "0.550186", "0.54953974", "0.5489692", "0.54896694", "0.54883075", "0.5486514", "0.5481758", "0.54791373", "0.546965", "0.5469366", "0.5467375", "0.5464839", "0.54630995", "0.5462958", "0.54548025", "0.54410183", "0.5424517", "0.5417751", "0.54054016", "0.53975266", "0.53940135", "0.5379799", "0.53734565", "0.5370746", "0.5368224", "0.536687", "0.5365607", "0.53598046", "0.5356981", "0.535439", "0.5351441", "0.5348961", "0.5346834", "0.5343272", "0.53431106", "0.5342749", "0.5340679", "0.53406787", "0.5340314", "0.53384936", "0.53361964", "0.5334886", "0.5331708", "0.5328838", "0.53223515", "0.5321964", "0.53165835", "0.5315198" ]
0.7690961
0
controleer of het formulier om een afspraak te maken, gepost werd,
function FormPosted() { //en return true of false }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ToonFormulierAfspraak()\n{\n\n}", "public function valiteForm();", "function act_pr_forma_pago(){\n\t\t$u= new Forma_pago();\n\t\t$related = $u->from_array($_POST);\n\t\t// save with the related objects\n\t\tif($u->save($related))\n\t\t{\n\t\t\techo \"<html> <script>alert(\\\"Se han actualizado los datos de la Forma de Pago.\\\"); window.location='\".base_url().\"index.php/inicio/acceso/\".$GLOBALS['ruta'].\"/menu';</script></html>\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tshow_error(\"\".$u->error->string);\n\t\t}\n\t}", "abstract public function forms();", "protected function Form_Run() {}", "private function _displayForm(){\n\t $moneda = Tools::getValue('moneda', $this->moneda);\n\t $iseuro = ($moneda == '978') ? ' selected=\"selected\" ' : '';\n\t $isdollar = ($moneda == '840') ? ' selected=\"selected\" ' : '';\n \t // Opciones para activar/desactivar SSL\n\t $ssl = Tools::getValue('ssl', $this->ssl);\n\t $ssl_si = ($ssl == 'si') ? ' checked=\"checked\" ' : '';\n\t $ssl_no = ($ssl == 'no') ? ' checked=\"checked\" ' : '';\n\t // Opciones para el comportamiento en error en el pago\n\t $error_pago = Tools::getValue('error_pago', $this->error_pago);\n\t $error_pago_si = ($error_pago == 'si') ? ' checked=\"checked\" ' : '';\n\t $error_pago_no = ($error_pago == 'no') ? ' checked=\"checked\" ' : '';\n\t // Opciones para activar los idiomas\n\t $idiomas_estado = Tools::getValue('idiomas_estado', $this->idiomas_estado);\n\t $idiomas_estado_si = ($idiomas_estado == 'si') ? ' checked=\"checked\" ' : '';\n\t $idiomas_estado_no = ($idiomas_estado == 'no') ? ' checked=\"checked\" ' : '';\n\t \n\t \n\t // Mostar formulario\n\t\t$this->_html .=\n\t\t'<form action=\"'.$_SERVER['REQUEST_URI'].'\" method=\"post\">\n\t\t\t<fieldset>\n\t\t\t<legend><img src=\"../img/admin/contact.gif\" />'.$this->l('Configuraci&oacute;n del TPV').'</legend>\n\t\t\t\t<table border=\"0\" width=\"680\" cellpadding=\"0\" cellspacing=\"0\" id=\"form\">\n\t\t\t\t\t<tr><td colspan=\"2\">'.$this->l('Por favor completa la informaci&oacute;n requerida que te proporcionar&aacute; tu banco Servired.').'.<br /><br /></td></tr>\n\t\t\t\t\t<tr><td width=\"215\" style=\"height: 35px;\">'.$this->l('URL de llamada del entorno').'</td><td><input type=\"text\" name=\"urltpv\" value=\"'.Tools::getValue('urltpv', $this->urltpv).'\" style=\"width: 330px;\" /></td></tr>\n\t\t\t\t\t<tr><td width=\"215\" style=\"height: 35px;\">'.$this->l('Clave secreta de encriptaci&oacute;n').'</td><td><input type=\"password\" name=\"clave\" value=\"'.Tools::getValue('clave', $this->clave).'\" style=\"width: 200px;\" /></td></tr>\n\t\t\t\t\t<tr><td width=\"215\" style=\"height: 35px;\">'.$this->l('Nombre del comercio').'</td><td><input type=\"text\" name=\"nombre\" value=\"'.htmlentities(Tools::getValue('nombre', $this->nombre), ENT_COMPAT, 'UTF-8').'\" style=\"width: 200px;\" /></td></tr>\n\t\t\t\t\t<tr><td width=\"215\" style=\"height: 35px;\">'.$this->l('N&uacute;mero de comercio (FUC)').'</td><td><input type=\"text\" name=\"codigo\" value=\"'.Tools::getValue('codigo', $this->codigo).'\" style=\"width: 200px;\" /></td></tr>\n\t\t\t\t\t<tr><td width=\"215\" style=\"height: 35px;\">'.$this->l('N&uacute;mero de terminal').'</td><td><input type=\"text\" name=\"terminal\" value=\"'.Tools::getValue('terminal', $this->terminal).'\" style=\"width: 80px;\" /></td></tr>\t\t\t\t\t\n\t\t\t\t\t<tr><td width=\"215\" style=\"height: 35px;\">'.$this->l('Tipo de moneda').'</td><td>\n\t\t\t\t\t<select name=\"moneda\" style=\"width: 80px;\"><option value=\"\"></option><option value=\"978\"'.$iseuro.'>EURO</option><option value=\"840\"'.$isdollar.'>DOLLAR</option></select></td></tr>\n\t\t\t\t\t\n\t\t\t\t\t<tr><td width=\"215\" style=\"height: 35px;\">'.$this->l('Tipo de transacci&oacute;n').'</td><td><input type=\"text\" name=\"trans\" value=\"'.Tools::getValue('trans', $this->trans).'\" style=\"width: 80px;\" /></td></tr>\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\t</td></tr>\n\t\t\t\t\t\n\t\t\t\t</table>\n\t\t\t</fieldset>\n\t\t\t<br>\n\t\t\t<fieldset>\n\t\t\t<legend><img src=\"../img/t/9.gif\" />'.$this->l('Personalizaci&oacute;n').'</legend>\n\t\t\t<table border=\"0\" width=\"680\" cellpadding=\"0\" cellspacing=\"0\" id=\"form\">\n\t\t<tr>\n\t\t\t<td colspan=\"2\">'.$this->l('Por favor completa los datos adicionales.').'.<br /><br /></td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td width=\"215\" style=\"height: 35px;\">'.$this->l('SSL en URL de validaci&oacute;n').'</td>\n\t\t\t<td>\n\t\t\t<input type=\"radio\" name=\"ssl\" id=\"ssl_1\" value=\"si\" '.$ssl_si.'/>\n\t\t\t<img src=\"../img/admin/enabled.gif\" alt=\"'.$this->l('Activado').'\" title=\"'.$this->l('Activado').'\" />\n\t\t\t<input type=\"radio\" name=\"ssl\" id=\"ssl_0\" value=\"no\" '.$ssl_no.'/>\n\t\t\t<img src=\"../img/admin/disabled.gif\" alt=\"'.$this->l('Desactivado').'\" title=\"'.$this->l('Desactivado').'\" />\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td width=\"215\" style=\"height: 35px;\">'.$this->l('En caso de error, permitir elegir otro medio de pago').'</td>\n\t\t\t<td>\n\t\t\t<input type=\"radio\" name=\"error_pago\" id=\"error_pago_1\" value=\"si\" '.$error_pago_si.'/>\n\t\t\t<img src=\"../img/admin/enabled.gif\" alt=\"'.$this->l('Activado').'\" title=\"'.$this->l('Activado').'\" />\n\t\t\t<input type=\"radio\" name=\"error_pago\" id=\"error_pago_0\" value=\"no\" '.$error_pago_no.'/>\n\t\t\t<img src=\"../img/admin/disabled.gif\" alt=\"'.$this->l('Desactivado').'\" title=\"'.$this->l('Desactivado').'\" />\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td width=\"215\" style=\"height: 35px;\">'.$this->l('Activar los idiomas en el TPV').'</td>\n\t\t\t<td>\n\t\t\t<input type=\"radio\" name=\"idiomas_estado\" id=\"idiomas_estado_si\" value=\"si\" '.$idiomas_estado_si.'/>\n\t\t\t<img src=\"../img/admin/enabled.gif\" alt=\"'.$this->l('Activado').'\" title=\"'.$this->l('Activado').'\" />\n\t\t\t<input type=\"radio\" name=\"idiomas_estado\" id=\"idiomas_estado_no\" value=\"no\" '.$idiomas_estado_no.'/>\n\t\t\t<img src=\"../img/admin/disabled.gif\" alt=\"'.$this->l('Desactivado').'\" title=\"'.$this->l('Desactivado').'\" />\n\t\t\t</td>\n\t\t</tr>\n\t\t</table>\n\t\t\t</fieldset>\t\n\t\t\t<br>\n\t\t<input class=\"button\" name=\"btnSubmit\" value=\"'.$this->l('Guardar configuraci&oacute;n').'\" type=\"submit\" />\n\t\t\t\t\t\n\t\t\t\n\t\t</form>';\n\t}", "function add_surat_keputusan_pemutih_penyalur_form() {\n//\t\tif (! $this->get_permission('fill_this')) return $this->intruder();\n\t\tglobal ${$GLOBALS['session_vars']}, ${$GLOBALS['get_vars']};\n\t\t$field_arr = surat_keputusan_pemutih_penyalur::get_field_set();\n\n//\t\t$value_arr = array ();\n\t\t$label_arr = $this->surat_keputusan_pemutih_penyalur_label;\n\t\t$optional_arr = $this->optional_arr;\n\t\t$optional_arr['keputusan_pemutih_penyalur'] = 'user_defined';\n\t\t$value_arr['keputusan_pemutih_penyalur']= '<textarea rows=\"100\" cols=\"75\" name=\"keputusan_pemutih_penyalur\" class=\"text\"></textarea>';\n\n\t\teval($this->save_config);\n\t\t$this->id_cek_pemutih_form($config);\n\t\t\n\n\n//\t\t$label_arr['submit_val'] = 'Submit';\n\t\t$label_arr['form_extra'] = '<input type=hidden name=action value=\"postadd\">'; // default null\n\t\t$label_arr['form_extra'] .= '<input type=hidden name=opener value=\"'.$GLOBALS[$GLOBALS['get_vars']]['opener'].'\">'; // default null\n\t\t$label_arr['form_extra'] .= '<input type=hidden name=opener_sql value=\"'.$GLOBALS[$GLOBALS['get_vars']]['opener_sql'].'\">'; // default null\n\t\t$label_id_cek_pemutiharr['form_extra'] .= '<input type=hidden name=opener_var value=\"'.$GLOBALS[$GLOBALS['get_vars']]['opener_var'].'\">'; // default null\n\t\t$label_arr['form_title'] = __('Form').' '.__('Add').' Surat Keputusan Pemutihan Izin Penyalur'; // default null\n\t\t$label_arr['form_width'] = '100%'; // default 100%\n\t\t$label_arr['form_name'] = 'theform'; // default form\n\n\t\t$_form = new form();\n\t\t$_form->set_config(\n\t\t\tarray (\n\t\t\t\t'field_arr'\t=> $field_arr,\n\t\t\t\t'label_arr'\t=> $label_arr,\n\t\t\t\t'value_arr'\t=> $value_arr,\n\t\t\t\t'optional_arr'\t=> $optional_arr\n\t\t\t)\n\t\t);\n\t\treturn $_form->parse_field();\n\t}", "function form_init_elements() \r\n {\r\n //we want an confirmation page for this form.\r\n //$this->set_confirm();\r\n\r\n //Crea una caja de texto llamada nombre y longitud 50\r\n $elemT = new FEText(\"Asunto\", FALSE, 50);\r\n //$elemT->set_style_attribute('align', 'right');\r\n //Le asignamos el id nombre y la tecla de acceso n (ctrl+n)\r\n $elemT->set_attribute(\"id\",\"asunto\");\r\n $elemT->set_attribute(\"accesskey\",\"n\"); \r\n //Añade en el contenedor formulario el elemento creado e inicializado\r\n $this->add_element($elemT);\r\n\t\r\n //Creamos un Area de Texto llamada comentario\r\n $elemTA = new FETextArea(\"Comentario\", FALSE, 10, 60,\"500px\", \"100px\");\r\n $elemTA->set_attribute('wrap', 'physical');\r\n //Le asignamos el id email y la tecla de acceso c (ctrl+c) \r\n $elemTA->set_attribute(\"id\",\"comentario\");\r\n $elemTA->set_attribute(\"accesskey\",\"d\");\r\n //Añade en el contenedor formulario el elemento creado e inicializado\r\n $this->add_element($elemTA);\r\n\r\n //Añade un campo oculto llamado id. En ocasiones este campo se utiliza para indicar ciertas operaciones.\r\n //OJO!! es un punto sensible porque el usuario podría cambiar su valor de forma inexperada para el código.\r\n// $this->add_hidden_element(\"id\");\r\n\r\n //Añade un boton con la acción submit\r\n $submit = $this->_formatElem(\"base_SubmitButton\", \"Aceptar\", \"submit\", agt(\"miguel_Enter\"));\r\n //$submit->set_attribute('id',''); \r\n $submit->set_attribute('accesskey','e'); \r\n $this->add_element($submit); \r\n\t\t\t\t\r\n\t\t\t\t$this->add_hidden_element('status');\r\n \t\t$this->set_hidden_element_value('status', 'new');\r\n }", "abstract function form();", "function action_instituer_forms_donnee_dist() {\n\t//$securiser_action();\n\t$arg = _request('arg');\n\t$hash = _request('hash');\n\t$id_auteur = $auteur_session['id_auteur'];\n\t$redirect = _request('redirect');\n\tif ($redirect==NULL) $redirect=\"\";\n\tif (!include_spip(\"inc/securiser_action\"))\n\t\tinclude_spip(\"inc/actions\");\n\tif (verifier_action_auteur(\"instituer_forms_donnee-$arg\",$hash,$id_auteur)==TRUE) {\n\t\n\t\tlist($id_donnee, $statut) = preg_split('/\\W/', $arg);\n\t\tif (!$statut) $statut = _request('statut_nouv'); // cas POST\n\t\tif (!$statut) return; // impossible mais sait-on jamais\n\n\t\t// if ($GLOBALS['spip_version_code']<1.92)\n\t\t\t// include_spip('inc/forms_compat_191');\n\t\t$id_donnee = intval($id_donnee);\n\n\t\tsql_update('spip_forms_donnees', array('statut'=>_q($statut)), \"id_donnee=\"._q($id_donnee));\n\t\t// spip_query(\"UPDATE spip_forms_donnees SET statut=\"._q($statut).\" WHERE id_donnee=\"._q($id_donnee));\n\t\t\n\t\tif ($rang_nouv = intval(_request('rang_nouv'))){\n\t\t\tinclude_spip(\"inc/forms\");\n\t\t\tForms_rang_update($id_donnee,$rang_nouv);\n\t\t}\n\t}\n}", "public function formuAction(){\t\n \t$cn = new Model_DbDatos_Datos();\n\t\t$fn = new Libreria_Pintar();\n\t\t$ar = new Libreria_ArraysFunctions();\n\n \t$codCarta = $this->_request->getParam('codCarta',''); \n\t\t\n\t\t\n\t\t//Cargando combos fiscalizadores\n\n\t\tunset($parametros);\n \t$parametros[] = array('@mquery',22);\n \t$parametros[] = array('@idCarta',$codCarta);\n\t\t$rowFicalizadores = $cn->ejec_store_procedura_sql('[SP_FISCA_CARTA_REQ]',$parametros);\n\n\t\t$fiscalizadoresCombo = $ar->RegistrosComboc($rowFicalizadores,0,1,'');\n\t\t$val[] = array('#cbNotificadores',$fn->ContenidoCombo($fiscalizadoresCombo,'[Seleccione]',''),'html');\n\t\t \t\n\n\t\t//Cargando cabecera del cargo de notificacion\t\t\n\t\tunset($parametros);\n\t\t$parametros[] = array('@mquery',20);\n \t$parametros[] = array('@idCarta',$codCarta);\n \t$rowCabecera = $cn->ejec_store_procedura_sql_noparamatro2('[SP_FISCA_CARGO_NOTIFICA]',$parametros);\n\n \tif ($rowCabecera[0]) {\n \t\t$row = $rowCabecera[1][0]; \n\n \t\t$codCargoNotificacion = $row[0];\n \t\t$nroCargoNotificacion = $row[1].\" - \".$row[9];\n \t\t$codContrib = $row[2];\n \t\t$contribuyente = trim(utf8_encode( strtoupper($row[3].\" \".$row[4].\" \".$row[5])));\n \t\t$idTipoDocIdent = $row[6];\n \t\t$nroDocIdent = $row[7];\n \t\t$domicilioFiscal = strtoupper(utf8_encode( $row[8]));\n \t\t$anio = $row[9];\n \t\t$nroCartareq = $row[10].\" - \".$row[9];\n \t\n \t\t$val[] = array('#hcodCartaReq',$codCarta,'val');\n \t\t$val[] = array('#txtNroNotificacion',$nroCargoNotificacion,'val');\n \t\t$val[] = array('#hcodNotificacion',$codCargoNotificacion,'val');\n \t\t$val[] = array('#txtCodigoContribuyenteN',$codContrib,'val');\n \t\t$val[] = array('#txtContribuyenteN',$contribuyente,'val');\n \t\t$val[] = array('#hTipoDocIdent',$idTipoDocIdent,'val');\n \t\t$val[] = array('#hNroDocIdent',$nroDocIdent,'val');\n \t\t$val[] = array('#txtDomicilioFiscal',$domicilioFiscal,'val');\n \t\t$val[] = array('#txtAnioN',$anio,'val');\n \t\t$val[] = array('#txtNroCartaReqN',$nroCartareq,'val');\n\n \t\t//CARGANDO DATOS DE LA PERSONA QUIEN RECEPCIONA\n \t\tunset($parametros);\n\t\t\t$parametros[] = array('@mquery',21);\n\t \t$parametros[] = array('@idCargoNotFisca',$codCargoNotificacion);\n\t \t$rowDatosPersona = $cn->ejec_store_procedura_sql_noparamatro2('[SP_FISCA_CARGO_NOTIFICA]',$parametros);\n\t\t\t\n\n\t \tif ($rowDatosPersona[0]) {\n\t \t\t\n\t \t\t$row = $rowDatosPersona[1][0];\n\n\t\t\t unset($parametros);\n\t\t\t\t$parametros[] = array('@mquery',7);\n\t\t \t$rowTDoc = $cn->ejec_store_procedura_sql_noparamatro2('[SP_FISCA_T_DOC_IDEN]',$parametros);\n\t\t \t$row2 = $rowTDoc[1];\n\t\t \t\n\t\t \tforeach ($row2 as $f) {\n\t\t \t\tif ($f[0]==1) {\t$val[]= array('#hmaxDni',$f[2],'val');}\n\t\t \t\tif ($f[0]==5) {\t$val[]= array('#hmaxIdentidad',$f[2],'val');}\n\t\t \t\tif ($f[0]==9) {\t$val[]= array('#hmaxExtranjeria',$f[2],'val');}\n\t\t \t}\n\n\t \t\t$nomRecepciona = trim(utf8_encode($row[0]));\n\t \t\t$idTipoDocIdent = trim($row[1]);\n\t \t\t$nomTDocIden = trim(utf8_encode($row[2]));\n\t \t\t$nroDocIdent = trim($row[3]);\n\t \t\t$fechaNotifica = (!empty($row[4]) && !empty($row[5]) && !empty($row[6]))? $row[4].\"/\".$row[5].\"/\".$row[6] : '';\n\t \t\t$horaNotifica = trim($row[7]);\n\t \t\t$NegoIdentificar = trim($row[8]);\n\t \t\t$NegoFirmar = $row[9];\n\t \t\t$NegoRecibir = $row[10];\n\t \t\t$firma = $row[11];\n\t \t\t$idVinculo = $row[12];\n\t \t\t$vinculo = $row[13];\n\t \t\t$vinculo_otros = trim($row[14]);\n\n\t \t\t$val[] = array('#txtNomApeRecepciona',$nomRecepciona,'val');\n\t \t\tif($idTipoDocIdent==1){$evt[] = array('#chkDni','checked','true');}\n\t \t\tif($idTipoDocIdent==5){$evt[] = array('#chkIdentidad','checked','true');}\n\t \t\tif($idTipoDocIdent==9){$evt[] = array('#chkExtranjeria','checked','true');}\n\t \t\t$val[] = array('#txtNroDocIdent',$nroDocIdent,'val');\n\t \t\t$val[] = array('#dpFechaNotifica',$fechaNotifica,'val');\n\t \t\t$val[] = array('#txtHoraNotifica',$horaNotifica,'val');\n\t \t\tif($NegoIdentificar==1){$evt[] = array('#chkNegoIdentificar','checked','true');}\n\t \t\tif($NegoFirmar==1){$evt[] = array('#chkNegoFirmar','checked','true');}\n\t \t\tif($NegoRecibir==1){$evt[] = array('#chkNegoRecibir','checked','true');}\n\t \t\t$evt[] = array(( ($firma==1) ? \"#rdFirmaRecepcionaSi\" : \"#rdFirmaRecepcionaNo\"),\"checked\",\"true\");\n\t \t\tif($idVinculo==1){$evt[] = array('#chkTitular','checked','true');}\n\t \t\tif($idVinculo==2){$evt[] = array('#chkFamiliar','checked','true');}\n\t \t\tif($idVinculo==3){$evt[] = array('#chkVigilante','checked','true');}\n\t \t\tif($idVinculo==4){$evt[] = array('#chkEmpleado','checked','true');}\n\t \t\tif($idVinculo==5){$evt[] = array('#chkRepresentante','checked','true');}\n\t \t\tif($idVinculo==6){$evt[] = array('#chkVinculoOtros','checked','true');$val[] = array('#txtVinculoOtros',$vinculo_otros,'val');}\n\n\n\t \t\t//CARGANDO DATOS DEL CEDULON Y MOTIVOS DE NO ENTREGA\n\n\t \t\tunset($parametros);\n\t\t\t\t$parametros[] = array('@mquery',22);\n\t\t \t$parametros[] = array('@idCargoNotFisca',$codCargoNotificacion);\n\t\t \t$rowCedulonMovNoEntrega = $cn->ejec_store_procedura_sql_noparamatro2('[SP_FISCA_CARGO_NOTIFICA]',$parametros);\n\t\t \t\n\t\t \tif ($rowCedulonMovNoEntrega[0]) {\n\t\t \t\t$row = $rowCedulonMovNoEntrega[1][0]; \n\n\t\t \t\t$codCedulon = trim($row[0]);\n\t\t \t\t$PersonaIncapaz = trim($row[1]);\n\t\t \t\t$DomicilioCerrado = trim($row[2]);\n\t\t \t\t$fechaCedulon = (!empty($row[3]) && !empty($row[4]) && !empty($row[5])) ? $row[3].\"/\".$row[4].\"/\".$row[5] : '' ;\n\t\t \t\t$horaCedulon = trim($row[6]);\n\t\t \t\t$direcccionIncorrecta = trim($row[7]);\n\t\t \t\t$direccionInexistente = trim($row[8]);\n\t\t \t\t$otrosMotNoEntrega = $row[9];\n\t\t \t\t$otrosValor = trim($row[10]);\n\t\t \t\t$codInmueble = trim($row[11]);\n\t\t \t\t$nroPisos = trim($row[12]);\n\t\t \t\t$color = trim($row[13]);\n\t\t \t\t$casa = trim($row[14]);\n\t\t \t\t$edificio = trim($row[15]);\n\t\t \t\t$PuertaMadera = trim($row[16]);\n\t\t \t\t$PuertaFierro = trim($row[17]);\n\t\t \t\t$SuminElect = trim($row[18]);\n\t\t \t\t$in_Otros = trim($row[19]);\n\t\t \t\t$in_OtrosValor = trim($row[20]);\n\n\t\t \t\t$val[] = array('#hcodCedulon',$codCedulon,'val');\n\t\t \t\tif($PersonaIncapaz==1){ $evt[] = array('#chkPersonaIncapaz','checked','true');}\n\t\t \t\tif($DomicilioCerrado==1){ $evt[] = array('#chkDomicilioCerrado','checked','true');}\n\t\t \t\t$val[] = array('#dpFechaCedulon',$fechaCedulon,'val');\n\t\t \t\t$val[] = array('#txtHoraCedulon',$horaCedulon,'val');\n\t\t \t\tif($direcccionIncorrecta==1){ $evt[] = array('#chkDireccionIncorrecta','checked','true');}\n\t\t \t\tif($direccionInexistente==1){ $evt[] = array('#chkDireccionInexistente','checked','true');}\n\t\t \t\tif($otrosMotNoEntrega==1){$evt[]=array('#chkMotNoEntregaOtros','checked','true');$val[] = array('#txtNoEntregaOtros',$otrosValor,'val');}\n\t\t \t\t\n\t\t \t\t$val[] = array('#hcodInmueble',$codInmueble,'val');\n\t\t \t\t$val[] = array('#txtNroPisos',$nroPisos,'val');\n\t\t \t\t$val[] = array('#txtColor',$color,'val');\n\t\t \t\tif($casa==1){ $evt[] = array('#chkCasa','checked','true');}\n\t\t \t\tif($edificio==1){ $evt[] = array('#chkEdificio','checked','true');}\n\t\t \t\tif($PuertaMadera==1){ $evt[] = array('#chkMadera','checked','true');}\n\t\t \t\tif($PuertaFierro==1){ $evt[] = array('#chkFierro','checked','true');}\n\t\t \t\t$val[] = array('#txtSuministroElectrico',$SuminElect,'val');\n\t\t \t\tif($in_Otros==1){$evt[]=array('#chkInmuebleOtros','checked','true');$val[] = array('#txtInmuebleOtros',$in_OtrosValor,'val');}\n\t\t \t\t\n\n\n\t\t \t\t//CARGA DE DATOS DE VISITA EFECTUADA\n\t\t \t\tunset($parametros);\n\t\t\t\t\t$parametros[] = array('@mquery',23);\n\t\t\t \t$parametros[] = array('@idCargoNotFisca',$codCargoNotificacion);\n\t\t\t \t$rowVisitaEfectuada = $cn->ejec_store_procedura_sql_noparamatro2('[SP_FISCA_CARGO_NOTIFICA]',$parametros);\n\t\t\t \t\n\t\t\t \tif ($rowVisitaEfectuada[0]) {\n\t\t\t \t\t$row = $rowVisitaEfectuada[1][0]; \n\n\t\t\t \t\t$fechaVisita = (!empty($row[0]) && !empty($row[1]) && !empty($row[2])) ? $row[0].\"/\".$row[1].\"/\".$row[2] : '' ;\n\t\t\t \t\t$codNotificador = trim($row[3]);\n\t\t\t \t\t$dniNotificador = trim($row[4]);\n\t\t\t \t\t$firmaNotificador = trim($row[5]);\n\n\t\t\t \t\t$val[] = array('#dpFechaVisita',$fechaVisita,'val');\n\t\t\t \t\t$val[] = array('#cbNotificadores',$codNotificador.'-'.$dniNotificador,'val');\n\t\t\t \t\t$val[] = array('#txtdniNotificador',$dniNotificador,'val');\n\t\t\t \t\t$evt[] = array((($firmaNotificador==1) ? \"#rdFirmaNotSi\" : \"#rdFirmaNotNo\"),\"checked\",\"true\");\n\n\n\t\t\t \t}else{\n\t\t\t \t\techo utf8_encode($rowVisitaEfectuada[1]); \n\t\t\t \t}\n\n\t\t \t}else{\n\t\t\t\t\techo utf8_encode($rowCedulonMovNoEntrega[1]); \n\t\t \t} \n\n\t \t}else{\n\t \t\techo utf8_encode($rowDatosPersona[1]); \n\t \t}\n\n \t}else{\n \t\techo utf8_encode($rowCabecera[1]);\n \t}\n\n\t\t$evt[] = array('#contentBox6',\"tabs\",\"\");\t\n\t\t$evt[] = array('#contentBox7',\"tabs\",\"\");\t\n\t\t$evt[] = array('#contentBox8',\"tabs\",\"\");\t\t\t\t\n\t\t$evt[] = array('#tabsNotificacion',\"tabs\",\"\");\n\t\t$evt[] = array('#radioFirmaRecep',\"buttonset\",\"\");\n\t\t$evt[] = array('#radioFirmaNot',\"buttonset\",\"\");\n\t\t\n\t\t\n\n\t\t$fn->PintarEvento($evt);\n\t\t$fn->PintarValor($val);\n }", "function readForm() {\n\t\t$this->FiscaalGroepID = $this->formHelper(\"FiscaalGroepID\", 0);\n\t\t$this->FiscaalGroupType = $this->formHelper(\"FiscaalGroupType\", 0);\n\t\t$this->GewijzigdDoor = $this->formHelper(\"GewijzigdDoor\", 0);\n\t\t$this->GewijzigdOp = $this->formHelper(\"GewijzigdOp\", \"\");\n\t}", "function displayFormNssPatient(){\n\t$contents='<form id=\"rechercher\" name=\"rechercher\" method=\"post\" action=\"index.php\" onSubmit=\"return checkFormRechercher(this);\">\n\t\t <fieldset name=\"rechercher_fds\">\n\t\t <legend>Rechercher un patient</legend>\n\t\t <p><label>Nom : </label>\n\t\t <input type=\"text\" id=\"nom_patient\" name=\"nom_patient\" onBlur=\"checkNomRechercher(this)\"/></p>\n\t\t <p><label>Date de naissance : </label>\n\t\t <input type=\"date\" id=\"date_patient\" name=\"date_patient\" onBlur=\"checkDateRechercher(this)\"/></p>\n\t\t <p><input type=\"submit\" id=\"rechercher\" name=\"rechercher\" value=\"Rechercher patient\"/>\n\t\t <input type=\"reset\" value=\"Effacer\"/></p>\n\t\t </fieldset>\n\t\t </form>';\n\t$contentsError='';\n\trequire_once('gabarit_agent.php');\n}", "public function hookForm() {\n }", "public function AddFraisHorsForfait()\r\n {\r\n $frais = new Frais();\r\n //Get le mois\r\n $mois = $this->GetMois(date('m'));\r\n //Ajoute a LigneFraisHorsForfait les données suivantes\r\n $frais->AddLigneFraisHorsForfait($_SESSION['uid'],$mois,$_POST['nom'],$_POST['prix'],$_POST['date']);\r\n \r\n $this->MainPage();\r\n }", "public function populateForm() {}", "function form() \r\n {\r\n \t //El formateo va a ser realizado sobre una tabla en la que cada fila es un campo del formulario\r\n $table = &html_table($this->_width,0,2,2);\r\n $table->add_row($this->_showElement(\"Asunto\", '6', \"asunto_de_usuario\", 'Asunto', \"Asunto\", \"left\" )); \r\n $table->add_row($this->_showElement(\"Comentario\", '7', \"comentario\", 'Texto', \"Comentario\", \"left\" )); \r\n \r\n $this->set_form_tabindex(\"Aceptar\", '10'); \r\n $label = html_label( \"submit\" );\r\n $label->add($this->element_form(\"Aceptar\"));\r\n $table->add_row(html_td(\"\", \"left\", $label));\r\n \r\n return $table; \r\n }", "function showFaveForm()\n {\n if (Event::handle('StartShowFaveForm', array($this))) {\n $user = common_current_user();\n if ($user) {\n if ($user->hasFave($this->notice)) {\n $disfavor = new DisfavorForm($this->out, $this->notice);\n $disfavor->show();\n } else {\n $favor = new FavorForm($this->out, $this->notice);\n $favor->show();\n }\n }\n Event::handle('EndShowFaveForm', array($this));\n }\n }", "function add_tt_1_alkes_form() {\n\t\tinclude_once 'class.xform.inc.php';\n\t\t//if (! $this->get_permission('fill_this')) return $this->intruder();\n\t\tglobal $_SESSION, $_GET, $adodb, $ses;\n\t\t$record = $_GET;\n\t\t$label_arr = $this->tt_1_alkes_label;\n\t\t$optional_arr = $this->optional_arr;\n\n\t\tif($_GET['no_tt']){$field_arr[] = xform::xf('urut_no_tt','C','255');}\n\t\t$field_arr[] = xform::xf('kode_subdit','C','255');\n\t\t$field_arr[] = xform::xf('kode_pendaftar','C','255');\n\t\t$field_arr[] = xform::xf('insert_by','C','255');\n\t\t$field_arr[] = xform::xf('date_insert','N','8');\n\t\t$field_arr[] = xform::xf('jenis_izin_produksi','N','8');\n\n\t\t$rs = $adodb->Execute(\"SELECT * FROM tt_1_alkes WHERE no_tt='{$record['no_tt']}'\");\n\t\tif ($rs && ! $rs->EOF) {\n\t\t\t$value_arr = $rs->fields;\n\t\t\t$optional_arr['no_tt'] = 'protect';\n\t\t\t$mode = 'edit';\n\n\t\t} else {\n\t\t\t$value_arr = array ();\n\t\t\t$mode = 'add';\n\t\t}\n\n\t\t$optional_arr['nama_tt_1_alkes_rule'] = '';\n\t\t$optional_arr['insert_by_rule'] = '';\n\t\t$optional_arr['date_insert_rule'] = '';\n\t\t\n\t\tglobal $adodb;\n\t\t$rsx = $adodb->Execute(\"SELECT no_tt FROM tt_1_alkes ORDER BY no_tt DESC LIMIT 1\");\n\t\t$no_ttx = $rsx->fields['no_tt'];\n\t\t$no_ttx = $no_ttx +1;\n\t\teval($this->save_config);\n\t\t$optional_arr['urut_no_tt'] = 'user_defined';\n\t\t$value_arr['urut_no_tt'] = '<input type=\"text\" name=\"urut_no_tt\" value=\"'.$value_arr['urut_no_tt'].'\" readonly class=\"text\">';\n\t\tif($value_arr['jenis_izin_produksi']==\"0\"){$select1 = \"selected\";$select2 = \"\";}else{if($value_arr['jenis_izin_produksi']==\"1\"){$select1 = \"\";$select2 = \"selected\";}else{$select1 = \"\";$select2 = \"\";}}\n\t\t$optional_arr['jenis_izin_produksi'] = 'user_defined';\n\t\t$value_arr['jenis_izin_produksi'] = '<select name=\"jenis_izin_produksi\" class=\"text\"><option>- Jenis Izin Produksi -</option><option value=\"0\" '.$select1.'>Izin Produksi Alkes</option><option value=\"1\" '.$select2.'>Izin Produksi PKRT</option></select>';\n\t\t$this->subdit_form($config);\n\t\t$this->pendaftar_form($config);\n\n\n\n\t\t$label_arr['submit_val'] = \"Submit\";\n\t\t$label_arr['form_extra'] = \"<input type=hidden name=action value='post$mode'>\"; // default null\n\t\t$label_arr['form_extra'] .= \"<input type=hidden name=oldpkvalue value='{$record['no_tt']}'>\";\n\t\t$label_arr['form_title'] = \"Form \".ucwords($mode).\" Tanda Terima Registrasi Izin Produksi\";\n\t\t$label_arr['form_width'] = '100%';\n\t\t$label_arr['form_name'] = 'theform';\n\n\t\t$_form = new form();\n\t\t$_form->set_config(\n\t\t\tarray (\n\t\t\t\t'field_arr'\t=> $field_arr,\n\t\t\t\t'label_arr'\t=> $label_arr,\n\t\t\t\t'value_arr'\t=> $value_arr,\n\t\t\t\t'optional_arr'\t=> $optional_arr\n\t\t\t)\n\t\t);\n\t\treturn $_form->parse_field();\n\t}", "function inscription_jesa_direct($form, &$form_state) {\n $form['#tree'] = TRUE;\n\n $form['description'] = array(\n '#type' => 'item',\n '#title' => t('Allow to register a new participant. if the participant does\\'t exist he(she) will be created. For a new member you must provide the name, firstname, the gender and a contact method (mail or phone).'),\n );\n $form['stagiaire'] = array(\n '#type' => 'fieldset',\n '#title' => t('Member'),\n '#collapsible' => TRUE,\n '#collapsed' => FALSE,\n );\n $form['stagiaire']['existant'] = array(\n '#type' => 'fieldset',\n '#title' => t('Existing member'),\n '#collapsible' => TRUE,\n '#collapsed' => FALSE,\n );\n $form['stagiaire']['existant']['user_name'] = array(\n '#title' => t('Existing member'),\n '#type' => 'textfield',\n '#autocomplete_path' => 'inscriptions/jeunes/admin/direct/stagiaire_autoc',\n );\n $form['stagiaire']['nouveau'] = array(\n '#type' => 'fieldset',\n '#title' => t('New member'),\n '#collapsible' => TRUE,\n '#collapsed' => FALSE,\n );\n $selection = array(\n 'nom' => array('required' => FALSE,),\n 'prenom' => array('required' => FALSE,),\n 'date_naissance' => array('required' => FALSE,),\n 'mail' => array('required' => FALSE,),\n 'telephone' => array('required' => FALSE,),\n 'adresse_1' => array('required' => FALSE,),\n 'adresse_2' => array('required' => FALSE,),\n 'sexe' => array('required' => FALSE,),\n );\n $form['stagiaire']['nouveau'] += _inscription_jesa_get_form_user_fields($selection);\n $form['stage'] = array(\n '#type' => 'fieldset',\n '#title' => t('Events'),\n '#collapsible' => TRUE,\n '#collapsed' => FALSE,\n );\n $form['stage']['list'] = array(\n '#type' => 'radios',\n '#options' => _inscription_jesa_get_next_stages(4),\n '#title' => t('Events'),\n );\n $selection = array(\n 'train' => array('required' => FALSE,),\n );\n $form['stage'] += _inscription_jesa_get_form_incscription_fields($selection);\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Submit'),\n ); \n\n return $form;\n}", "private function factuurAction()\n {\n if (isset($_POST) && !empty($_POST))\n {\n //productenOud zijn de producten die gekozen zijn in de webpagina\n // productenNieuw zijn de producten die gekozen zijn en daarna zijn verkregen van de database.\n $productenOud = $this->model->maakPDF();\n if ($productenOud === 'DUPS')\n {\n $this->model->foutGoedMelding('danger', '<strong> Foutmelding </strong> U heeft 2 dezelfde producten gekozen, gebruik hiervoor het aantal!');\n } else\n {\n $productNieuw = $this->model->geefBesteldeProducten($productenOud);\n $t = 1;\n for ($i = 0; $i < count($productenOud); $i++)\n {\n // van alle producten die zijn gekozen wordt de aantal voorraad gepakt\n $voorraadNieuw[$i] = $productNieuw[$i][0]->geefVoorraad();\n $gekozenAantal[$i] = $productenOud[$i][1];\n //de einde van de producten wordt d.m.v. count verkregen\n $eindeArray = count($productenOud);\n\n if ($voorraadNieuw[$i] > $gekozenAantal[$i])\n {\n $goeieVoorraad = true;\n } else\n {\n $goeieVoorraad = false;\n }\n\n if ($goeieVoorraad !== true)\n {\n $this->model->foutGoedMelding('danger', 'Gekozen product(en) is(zijn) niet op voorraad! Controleer het <a href=\".?action=magazijn&control=admin\">Magazijn <span class=\"glyphicon glyphicon-link\"></span></a>');\n } else\n {\n if ($t === $eindeArray)\n {\n $_SESSION['geselecteerdeProducten'] = $productenOud;\n $this->model->pdfToevoegen();\n $this->forward('factuurVerzend', 'admin');\n }\n }\n\n $goeieVoorraad = false;\n $t++;\n }\n }\n }\n\n $producten = $this->model->geefProducten();\n $this->view->set('producten', $producten);\n $klanten = $this->model->geefKlanten();\n $this->view->set('klanten', $klanten);\n }", "abstract protected function _setNewForm();", "function view_tt_1_alkes_form() {\n\t\tglobal ${$GLOBALS['session_vars']}, ${$GLOBALS['get_vars']}, $adodb;\n\t\t$field_arr = tt_1_alkes::get_field_set();\n\n\t\t$optional_arr = $this->optional_arr;\n\t\t$optional_arr['no_tt'] = 'protect';\n\n\t\t$record = array (\n\t\t\t'no_tt' => ${$GLOBALS['get_vars']}['no_tt']\n\t\t);\n\t\t$result = tt_1_alkes::get($record);\n\t\t$value_arr = $result[0];\n\t\t$label_arr = $this->tt_1_alkes_label;\n\t\tglobal $adodb;\n\n\t\tdefine('FPDF_FONTPATH','fpdf/font/');\n\t\trequire('fpdf/fpdf.php');\n\t\t$pdf=new FPDF('L','mm','A5');\n\t\t$pdf->Open();\n\t\t$pdf->AddPage();\n\t\t$pdf->SetFont('Arial','B',14);\n\t\t$pdf->Cell(180,7,'SURAT TANDA TERIMA UBAH IZIN PRODUKSI','',0,'L');\n\t\t$pdf->Ln(5);\n\t\t$pdf->SetFont('Arial','B',12);\n\t\t$pdf->Cell(180,7,'Departemen Kesehatan RI','',0,'L');\n\t\t$pdf->Ln(5);\n\t\t$pdf->Cell(180,7,'Tanda Terima Permohonan Ijin Produksi Alkes/PKRT','',0,'L');\n\t\t$pdf->Ln(5);\n\t\t$pdf->Cell(180,7,'( Berdasarkan subdit yang dipilih pada tanda terima )','',0,'L');\n\t\t$pdf->Ln(5);\n\t\t$pdf->Cell(180,7,'','B',0,'L');\n\t\t$pdf->Ln(10);\n\t\t$pdf->SetFont('Arial','',12);\n\n\t\t$sql = \"SELECT\n\t\ttt_1_alkes.no_tt,\n\t\ttt_1_alkes.urut_no_tt,\n\t\tsubdit.subdit,\n\t\ttt_1_alkes.date_insert,\n\t\tpendaftar.nama_pabrik,\n\t\tpendaftar.nama_pendaftar,\n\t\tpendaftar.alamat_pendaftar,\n\t\tpendaftar.alamat_pabrik,\n\t\tpendaftar.nama_propinsi_2,\n\t\tpendaftar.userid,\n\t\tpendaftar.tpwd,\n\t\ttt_1_alkes.insert_by\n\t\tFROM tt_1_alkes\n\t\tLEFT OUTER JOIN subdit ON(subdit.id_subdit = tt_1_alkes.kode_subdit)\n\t\tLEFT OUTER JOIN pendaftar ON(pendaftar.kode_pendaftar = tt_1_alkes.kode_pendaftar)\n\t\tWHERE\n\t\ttt_1_alkes.no_tt ='\".$_GET['no_tt'].\"'\n\t\tGROUP BY\n\t\ttt_1_alkes.no_tt,\n\t\ttt_1_alkes.urut_no_tt,\n\t\tsubdit.subdit,\n\t\ttt_1_alkes.date_insert,\n\t\tpendaftar.nama_pabrik,\n\t\tpendaftar.nama_pendaftar,\n\t\tpendaftar.alamat_pendaftar,\n\t\tpendaftar.alamat_pabrik,\n\t\tpendaftar.nama_propinsi_2,\n\t\tpendaftar.userid,\n\t\tpendaftar.tpwd,\n\t\ttt_1_alkes.insert_by\n\t\t\";\n\t\t//print $sql;\n\t\t$rs = $adodb->Execute($sql);\n\t\t$urut_no_tt = $rs->fields['urut_no_tt'];\n\t\t$nama_pendaftar = $rs->fields['nama_pendaftar'];\n\t\t$alamat_pendaftar = $rs->fields['alamat_pendaftar'];\n\t\t$nama_pabrik = $rs->fields['nama_pabrik'];\n\t\t$userid = $rs->fields['userid'];\n\t\t$pwd = $rs->fields['tpwd'];\n\t\t$pdf->Ln(10);\n\t\t$pdf->Cell(30,7,'No Tanda Terima','',0,'L');$pdf->Cell(10,7,' : ','',0,'L');$pdf->Cell(140,7,''.$urut_no_tt.'','',0,'L');\n\t\t$pdf->Ln(10);\n\t\t$pdf->Cell(30,7,'Nama Pemohon','',0,'L');$pdf->Cell(10,7,' : ','',0,'L');$pdf->Cell(140,7,''.$nama_pendaftar.'','',0,'L');\n\t\t$pdf->Ln(10);\n\t\t$pdf->Cell(30,7,'Alamat Pemohon','',0,'L');$pdf->Cell(10,7,' : ','',0,'L');$pdf->Cell(140,7,''.$alamat_pendaftar.'','',0,'L');\n\t\t$pdf->Ln(10);\n\t\t$pdf->Cell(30,7,'Nama Pabrik','',0,'L');$pdf->Cell(10,7,' : ','',0,'L');$pdf->Cell(140,7,''.$nama_pabrik.'','',0,'L');\n\t\t$pdf->Ln(10);\n\t\t$pdf->Cell(30,7,'User ID','',0,'L');$pdf->Cell(10,7,' : ','',0,'L');$pdf->Cell(140,7,''.$userid.'','',0,'L');\n\t\t$pdf->Ln(10);\n\t\t$pdf->Cell(30,7,'Password','',0,'L');$pdf->Cell(10,7,' : ','',0,'L');$pdf->Cell(140,7,''.$pwd.'','',0,'L');\n\t\t$pdf->Ln(10);\n\t\t$pdf->Output();\n\n\t}", "function createForm(){\n\t\t$this->createFormBase();\n\t\t$this->addElement('reset','reset','Reset');\t\t\t\n\t\t$tab['seeker_0'] = '0';\n\t\t$this->setDefaults($tab);\n\t\t$this->addElement('submit','bouton_add_pi','Add a contact',array('onclick' => \"document.getElementById('frmvadataset').action += '#a_contact'\"));\n\t\t$this->createVaFormResolution();\n\t\t$this->createFormGeoCoverage();\n\t\t$this->createFormGrid();\t\n\t\t//Required format\n\t\t$dformat = new data_format;\n\t\t$dformat_select = $dformat->chargeFormDestFormat($this,'required_data_format','Required data format','NetCDF');\n\t\t$this->addElement($dformat_select);\n\t\t$this->getElement('organism_0')->setLabel(\"Organism short name\");\n\t\t$this->getElement('project_0')->setLabel(\"Useful in the framework of\");\n\t\t$this->getElement('dats_abstract')->setLabel(\"Abstract \");\n\t\t$this->getElement('dats_purpose')->setLabel(\"Purpose\");\n\t\t$this->getElement('database')->setLabel(\"Data center\");\n\t\t$this->getElement('new_db_url')->setLabel(\"Data center url\");\n\t\t$this->getElement('dats_use_constraints')->setLabel(\"Access and use constraints\");\t\t\t\n\t\t$this->getElement('sensor_resol_tmp')->setLabel('Temporal (hh:mm:ss)');\t\t\t\n\t\t$this->getElement('place_alt_min_0')->setLabel(\"Altitude min\");\n\t\t$this->getElement('place_alt_max_0')->setLabel(\"Altitude max\");\n\t\t$this->getElement('data_format_0')->setLabel(\"Original data format\");\n\t\t$this->addElement('file','upload_doc','Attached document');\n\t\t$this->addElement('submit','upload','Upload');\n\t\t$this->addElement('submit','delete','Delete');\n\t\t\n\t\tfor ($i = 0; $i < $this->dataset->nbVars; $i++){\n\t\t\t$this->getElement('methode_acq_'.$i)->setLabel(\"Parameter processing related information\");\n\t\t}\n\t\t$this->addElement('submit','bouton_add_variable','Add a parameter',array('onclick' => \"document.getElementById('frmvadataset').action += '#a_param'\"));\n\t\t\n\t\t$this->addElement('submit','bouton_add_projet','Add a project',array('onclick' => \"document.getElementById('frmvadataset').action += '#a_general'\"));\n\t\t$option = array();\n\t\t$option['default'] = \"\";\n\t\t$option['model'] = \"Model\";\n\t\t$option['instrument'] = \"Instrument\";\n\t\t$option['satellite'] = \"Satellite\";\n\t\t$this->addElement('select','source_type','source type :',$option,array('onchange' => \"DeactivateButtonAddSource()\",'onclick' => \"DeactivateButtonAddSource();\",'onmouseover' => 'DeactivateButtonAddSource();' ));\n\t\t$this->addElement('submit','bouton_add_source','Add a source',array('disabled' => 'true','onclick' => \"document.getElementById('frmvadataset').action += '#a_source'\",'onmouseout' => 'DeactivateButtonAddSource();'));\n\t\t\n\t\tif (isset ( $this->dataset->dats_sensors ) && ! empty ( $this->dataset->dats_sensors )) {\n\t\t\t$this->dats_sensors = array();\n\t\t\t$this->dats_sensors = $this->dataset->dats_sensors ;\n\t\t}\n\t\tif (isset ( $this->dataset->sites ) && ! empty ( $this->dataset->sites )) {\n\t\t\t$this->sites = array();\n\t\t\t$this->sites = $this->dataset->sites;\n\t\t}\n\t\t\n\t\tif ( isset ( $this->dataset->dats_id ) && $this->dataset->dats_id > 0) {\n\t\t\tif (isset ( $this->dataset->nbModFormSensor )){\n\t\t\t\tif($this->dataset->nbModForm <= $this->dataset->nbModFormSensor ){\n\t\t\t\t\t$this->dataset->nbModForm = $this->dataset->nbModFormSensor;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (isset ( $this->dataset->nbSatFormSensor )){\n\t\t\t\t//$this->dataset->nbSatFormSensor = $this->dataset->nbSatFormSensor - 1;\n\t\t\t\tif($this->dataset->nbSatForm <= $this->dataset->nbSatFormSensor){\n\t\t\t\t\t$this->dataset->nbSatForm = $this->dataset->nbSatFormSensor;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (isset ( $this->dataset->nbInstruFormSensor )){\n\t\t\t\tif($this->dataset->nbInstruForm <= $this->dataset->nbInstruFormSensor){\n\t\t\t\t\t$this->dataset->nbInstruForm = $this->dataset->nbInstruFormSensor;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif($this->dataset->nbModForm > 0)\n\t\t\t$this->addMod();\n\t\tif($this->dataset->nbInstruForm > 0)\n\t\t\t$this->addInstru();\t\n\t\tif($this->dataset->nbSatForm > 0)\n\t\t\t$this->addSat();\n\t\t\n\t\t$this->dataset->dats_sensors = null ;\n\t\t$this->dataset->sites = null;\n\t}", "public function form( &$form )\n\t{\n\t}", "public function formulario()\n {\n //\n }", "function form_editar(){\n\t\t// $this->fmt->class_pagina->crear_head_form(\"Editar Sistema\", $botones,\"\");// nombre, botones-left, botones-right\n\t\t$id = $this->id_item;\n\t\t$sql=\"select sis_id, sis_nombre, sis_descripcion, sis_tipo, sis_icono, sis_color, sis_activar, sis_orden from sistema\twhere sis_id='\".$id.\"'\";\n\t\t$rs=$this->fmt->query->consulta($sql,__METHOD__);\n\t\t$num=$this->fmt->query->num_registros($rs);\n\t\t\tif($num>0){\n\t\t\t\t$row=$this->fmt->query->obt_fila($rs);\n\t\t\t\t$fila_id=$row[\"sis_id\"];\n\t\t\t\t$fila_nombre=$row[\"sis_nombre\"];\n\t\t\t\t$fila_descripcion=$row[\"sis_descripcion\"];\n\t\t\t\t$fila_tipo=$row[\"sis_tipo\"];\n\t\t\t\t$fila_icono=$row[\"sis_icono\"];\n\t\t\t\t$fila_color=$row[\"sis_color\"];\n\t\t\t\t$fila_activar=$row[\"sis_activar\"];\n\t\t\t\t// $orden\n\t\t\t}\n $this->fmt->class_pagina->crear_head_form(\"Editar Sistema\", \"\",\"\");// nombre, botones-left, botones-right\n \t\t//echo \"<a href='javascript:location.reload()'><i class='icn-sync'></i></a>\";\n $id_form=\"form-editar\";\n\t\t?>\n\t\t<div class=\"body-modulo\">\n\t\t\t<form class=\"form form-modulo\" method=\"POST\" id=\"<?php echo $id_form?>\">\n\t\t\t\t<div class=\"form-group\" id=\"mensaje-login\"></div> <!--Mensaje form -->\n <div class=\"form-group\">\n\t\t\t\t\t<label>Nombre Sistema:</label>\n\t\t\t\t\t<div class=\"input-group controls input-icon-addon\">\n\t\t\t\t\t\t<span class=\"input-group-addon form-input-icon\"><i class=\"<?php echo $fila_icono; ?>\" style=\"color:<?php echo $fila_color; ?>\"></i></span>\n\t\t\t\t\t\t<input class=\"form-control input-lg color-border-gris-a color-text-gris form-nombre\" id=\"inputNombre\" name=\"inputNombre\" placeholder=\" \" value=\"<?php echo $fila_nombre; ?>\" type=\"text\" autofocus />\n <!-- <input type=\"hidden\" id=\"inputId\" name=\"inputId\" value=\"<?php echo $fila_id; ?>\" /> -->\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n <?php $this->fmt->form->input_form('Id:','inputId','',$fila_id,'','',''); ?>\n\t\t\t\t<div class=\"form-group form-descripcion\">\n\t\t\t\t\t<label>Descripción:</label>\n\t\t\t\t\t<textarea class=\"form-control\" rows=\"5\" id=\"inputDescripcion\" name=\"inputDescripcion\" placeholder=\"\"><?php echo $fila_descripcion; ?></textarea>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"form-group\">\n\t\t\t\t\t<label>Icono sistema:</label>\n\t\t\t\t\t<input class=\"form-control box-md-4\" id=\"inputIcono\" name=\"inputIcono\" placeholder=\"\" value=\"<?php echo $fila_icono; ?>\"/>\n <span class=\"input-link\"><a href=\"<?php echo _RUTA_WEB_NUCLEO; ?>includes/icons.php\" target=\"_blank\">ver iconos</a></span>\n </div>\n\t\t\t\t\t<div class=\"form-group form-group-color\">\n\t\t\t\t\t\t<label>Color</label>\n <?php\n \t\t\t\t\t if (empty($fila_color)){\n \t\t\t\t\t\t $color=\"#333333\";\n \t\t\t\t\t }else{\n \t\t\t\t\t\t $color= $fila_color;\n \t\t\t\t\t }\n //echo _RUTA_HOST;\n \t\t\t\t\t?>\n\t\t\t\t\t\t<input type=\"color\" class=\"form-control box-md-2\" id=\"inputColor\" name=\"inputColor\" value=\"<?php echo $color; ?>\" />\n\t\t\t\t\t \t<?php\n\t\t\t\t\t\t\trequire_once( _RUTA_NUCLEO.\"includes/color.php\");\n\t\t\t\t\t\t?>\n\t\t\t\t\t</div>\n\n\t\t\t\t<div class=\"form-group form-fluid\">\n\t\t\t\t\t<label>Modulos: </label>\n <div class=\"group\">\n <?php echo $this->fmt->class_modulo->opciones_modulos($fila_id); ?>\n </div>\n\t\t\t\t</div>\n\n <?php\n //$this->fmt->form->input_check_form_bd(\"Permisos para Roles\",\"inputSistemasRoles\",\"rol_\",\"rol\",\"sis_rol_\",\"sistema_roles\",\"sis_rol_sis_id\",$fila_id,\"sis_rol_sis_id\",\"\",\"1\",\"1\")\n ?>\n\n\n\t\t\t\t<div class=\"form-group\">\n\t\t\t\t\t<label>Tipo Sistema: </label>\n\t\t\t\t\t<select class=\"form-control form-select\" name=\"inputTipo\" id=\"inputTipo\">\n\t\t\t\t\t\t<?php echo $this->opciones_tipo($fila_tipo); ?>\n\t\t\t\t\t</select>\n\t\t\t\t</div>\n <?php\n // $this->fmt->form->input_form(\"Orden:\",\"inputOrden\",\"\",$orden,\"box-md-2\");\n $this->fmt->form->radio_activar_form($fila_activar);\n\t\t\t\t\t$this->fmt->form->btn_actualizar($id_form,$this->id_mod,\"modificar\"); //$id_form,$id_mod,$tarea\n\t\t\t\t?>\n\t\t\t</form>\n\t\t</div>\n\t\t<?php\n $this->fmt->class_modulo->modal_script($this->id_mod);\n\t\t// $this->fmt->class_modulo->script_form(\"modulos/sistemas/sistemas.adm.php\",$this->id_mod);\n\t}", "function form_karta($form_data,$dct) {\n\t\n\t$formPole1 = '\n\t\t\t<input type=\"checkbox\" CHECK name=\"N___hidden[###hid]\" value=\"1\" class=\"f10\" style=\"margin-right: 40px;\">\n\t\t\t<input type=\"text\" name=\"N___poradi[###por]\" value=\"###porV\" style=\"width: 25px;\" class=\"f10\">\n\t\t\t<input type=\"text\" name=\"N___parametr[###par]\" value=\"###parV\" style=\"width: 190px;\" class=\"f10\">\n\t\t\t<input type=\"text\" name=\"N___jednotka[###jed]\" value=\"###jedV\" style=\"width: 30px;\" class=\"f10\">\n\t\t\t';\n\t\n\t$dParametr = '<input type=\"checkbox\" name=\"delete[###del]\" value=\"###del\" class=\"f10\">odstranit<br />\n\t';\n\t\n\t$formPole='';\n\t$poradi = 0;\n\t\n\t\n\tif(!empty($form_data['id'])) { // editace existujiciho\n\t\n\t\t$form_data['deletebutton'] = button('button','Zrušit vzor produktového listu','class=\"butt_red\" onclick=\"return del()\"');\n\t\t\n\t\t\n\t\t// id nazev lang pozn\n\t\t$query = \"SELECT nazev, pozn \n\t\tFROM \".T_PARAMETRY1.\" WHERE id = \".$form_data['id'].\" LIMIT 0,1\";\n\t\t$v = my_DB_QUERY($query,__LINE__,__FILE__);\n\t\twhile ($z = mysql_fetch_array($v)) {\n\t\t\n\t\t\t$form_data['nazev'] = $z['nazev'];\n\t\t\t$form_data['pozn'] = $z['pozn'];\n\t\t\n\t\t}\n\t\t\n\t\t// id id_karta nazev jednotka poradi\n\t\t$query = \"SELECT id, nazev, hidden, jednotka, poradi \n\t\tFROM \".T_PARAMETRY2.\" WHERE id_karta = \".$form_data['id'].\" ORDER BY poradi\";\n\t\t$v = my_DB_QUERY($query,__LINE__,__FILE__);\n\t\t\n\n\t\t\n\t\twhile ($z = mysql_fetch_array($v)) {\n\t\t\n\t\t\t$id = $z['id'];\n\t\t\t$parametr = $z['nazev'];\n\t\t\t$jednotka = $z['jednotka'];\n\t\t\t$poradi = $z['poradi'];\n\t\t\t$check = $z['hidden'];\n\t\t\t\n\t\t\tif($check==1)$check='checked=\"checked\"';\n\t\t\telse $check=''; \n\t\t\t\n\t\t\t$trans = array('###hid'=>$id,'CHECK'=>$check,'###del'=>$id,'N___'=>'','###por'=>$id,'###porV'=>$poradi,'###par'=>$id,'###parV'=>$parametr,'###jed'=>$id,'###jedV'=>$jednotka);\n\t\t\t$formPole .= strtr($formPole1, $trans);\n\t\t\t$formPole .= strtr($dParametr, $trans);\n\t\t\n\t\t}\n\t\n\t}\n\t\n\t\n\t\n\tfor ($i = $poradi + 1; $i <= $poradi + 10; $i++) {\n\t\n\t\t$trans = array('###por'=>$i,'CHECK'=>'','###porV'=>$i,'###par'=>$i,'###parV'=>'','###jed'=>$i,'###jedV'=>'');\n\t\t$formPole .= strtr($formPole1, $trans).'<br />';\n\t\n\t}\n\t\n\t\n\t$formPole .= '<br />Další parametry můžete přidat později.';\n\t\n\t\n\t\n\t\n\tif(empty($_GET['P']))$_GET['P']='';\n\t\n\t$form = \"\n\t\n\t<SCRIPT LANGUAGE=\\\"JavaScript\\\">\n\t<!--\n\t\n\t\n\tfunction validate(form1) {\n\t\n\t\tif (form1.nazev.value == \\\"\\\") { alert(\\\"Vyplňte název produktového listu\\\"); form1.nazev.focus(); return false; }\n\t\t// else if (form1.id_parent.value == \\\"0\\\") { alert(\\\"Musíte vybrat některou z vnořených úrovní\\\"); form1.id_parent.focus(); return false; }\n\t\t// else if (form1.dph.value == \\\"\\\") { alert(\\\"Zatrhněte výši DPH\\\"); form1.dph.focus(); return false; }\n\t\telse return true;\n\t\n\t}\n\t\n\t// odstraneni zaznamu\n\tfunction del() {\n\t\n\t\tif (!confirm(\\\"Opravdu zrušit vzor produktového listu?\\\"))\n\t\t\treturn false;\n\t\telse\n\t\t\tlocation = \\\"\".MAIN_LINK.\"&f=products_parameters&deleteT=\".$form_data['id'].\"&P=\".$_GET['P'].\"\\\";\n\t\n\t}\n\t\n\t\n\t\n\t// -->\n\t</SCRIPT>\n\t\n\t\n\t<br /><br />\n\t\n\t\n\t<form action=\\\"\\\" method=\\\"post\\\" enctype=\\\"multipart/form-data\\\" \n\t\tonSubmit=\\\"return validate(this)\\\">\n\t\n\t<input type=\\\"hidden\\\" name=\\\"id\\\" value=\\\"\".$form_data['id'].\"\\\">\n\t\n\t\n\t<table class='admintable nobg' border=\\\"0\\\" cellspacing=\\\"5\\\" cellpadding=\\\"0\\\">\n\t\n\t\n\t<tr>\n\t\t<td>\n\t\t\tNázev<br />\n\t\t\t<span class=\\\"f10i\\\">(max. 255 znaků)</span></td>\n\t\t<td>\n\t\t\t<input type=\\\"text\\\" name=\\\"nazev\\\" value=\\\"\".$form_data['nazev'].\"\\\" \n\t\t\tstyle=\\\"width: 100%;\\\" class=\\\"f10\\\"></td>\n\t</tr>\n\t\n\t\n\t<tr>\n\t\t<td>Poznámka</td>\n\t\t<td>\n\t\t\t<textarea name=\\\"pozn\\\" style=\\\"width: 100%; height: 60px;\\\" title=\\\"\\\">\".$form_data['pozn'].\"</textarea></td>\n\t</tr>\n\t\n\t<tr>\n\t\t<td><br /><br /></td>\n\t\t<td><br /><br />nezobrazovat veřejně na detailu produktu</td>\t\t\n\t</tr> \t\n\t\n\t<tr>\n\t\t<td valign=\\\"top\\\">Pořadí - parametr - měrná jednotka<br /><br />\n\t\t\t<span class=\\\"f10\\\">např.<br />1 - délka - mm<br />2 - šířka - mm<br />3 - hmotnost - kg</span></td>\n\t\t<td>$formPole</td>\n\t</tr>\n\t\n\t\n\t<tr>\n\t\t<td colspan=\\\"2\\\"><br /><br /><br />\n\t\t\t\n\t\t\t\".SAVE_BUTTON.\"\n\t\t\t\n\t\t\t\".$form_data['deletebutton'].\"\n\n\t\t</td>\n\t</tr>\n\t\n\t</table>\n\t\n\t</form>\";\n\t\n\treturn $form;//\n\n}", "private function gebruikerToevoegenAction()\n {\n //controlleert of er een formulier is ingevuld\n if (isset($_POST) && !empty($_POST))\n {\n //kijkt of de gebruikersnaam al bestaat en geeft dan een boolean terug\n $bestaatGN = $this->model->bestaatGN();\n //false als de gebruikersnaam niet bestaat\n if ($bestaatGN === FALSE)\n {\n //controleert of de wachtwoorden overeenkomen\n if ($_POST['wachtwoord'] === $_POST['wachtwoord2'])\n {\n $id = $this->model->maakGebruiker();\n if (isset($_FILES['foto']))\n {\n $this->model->updateFoto($id);\n }\n //stuurt je naar de gebruikersbeheer pagina\n $this->model->foutGoedMelding('success', '<strong>Gelukt!</strong> gebruiker is aangemaakt. <span class=\"glyphicon glyphicon-saved\"></span>');\n $this->model->setLog('Gebruiker toevoegen', 'Gelukt');\n $this->forward('gebruikersBeheer', 'admin');\n } else\n {\n $this->view->set('opmerking', 'Wachtwoorden komen niet overeen');\n }\n } else\n {\n $this->view->set('opmerking', 'Gebruikersnaam is al in gebruik');\n }\n }\n }", "private function klantToevoegenAction()\n {\n //controleert of er een formulier is ingevuld\n if (isset($_POST) && !empty($_POST))\n {\n //post gevuld\n //controleer of alle genodigde gegevens zijn ingevuld\n if (isset($_POST['voornaam']) && isset($_POST['achternaam']) && !empty($_POST['voornaam']) && !empty($_POST['achternaam']))\n {\n //maak een klant aan\n $this->model->maakKlant();\n //stuurt je door naar de default pagina\n $this->model->foutGoedMelding('success', '<strong>Gelukt!</strong> klant is aangemaakt. <span class=\"glyphicon glyphicon-saved\"></span>');\n $this->model->setLog('Klant toevoegen', 'Gelukt');\n $this->forward('klanten', 'admin');\n }\n }\n }", "public function manipulateForm(&$aForm) {\n }", "function show_form () {\n include_once(\"../session.php\");\n $giros=$_SESSION['GIROS'];\n if (!($giros->retenues & 16384 )) { header(\"Location: http://mail.ltma.lu\");}\n include_once(\"../menu.php\");\n?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"fr\">\n<head>\n <title>Retenues - Ajouter travail</title>\n <link rel=\"stylesheet\" href=\"../layout.css\" type=\"text/css\">\n <script type=\"text/javascript\" src=\"../jquery.min.js\"></script>\n <script type=\"text/javascript\" src=\"../ui.core.min.js\"></script>\n <script type=\"text/javascript\" src=\"../ui.accordion.min.js\"></script>\n <script type=\"text/javascript\"> $(document).ready(function(){$(\"ul.drawers\").accordion({header: 'h2.drawer-handle', selectedClass: 'open', event: 'click', active:'.retenues', autoHeight: false})}); </script> \n</head>\n<body>\n<?php include (\"../logo.php\"); ?>\n <div id=\"ww\">\n <div id=\"sidemenu\">\n<?php menum($giros); ?>\n </div>\n <div id=\"cont\">\n <h1>Ajouter travail</h1>\n <form action=\"addt.php\" method=\"post\" enctype=\"multipart/form-data\">\nEntrez un nouveau travail<br>\n <input type=\"text\" name=\"edtTravail\"><br>\n <input type=\"submit\" name=\"submit\" value=\"Enregistrer\">\n <input type=\"reset\">\n </form>\n </div>\n</div>\n</body>\n</html>\n<?php\n }", "function show_forms()\n {\n }", "public function createComponentEditForm(){\n $frm = $this->formFactory->create();\n $listingID = $this->hlp->sess(\"listing\")->listingID;\n \n //query database for listing type\n $FE = $this->listings->isFE($listingID);\n $MS = $this->listings->isMultisig($listingID);\n \n //checkbox value rendering logic\n $checkVal = array();\n \n if ($MS){\n $checkVal[\"ms\"] = \"ms\";\n }\n \n if ($FE){\n $checkVal[\"fe\"] = \"fe\";\n }\n \n $this->lHelp->constructCheckboxList($frm)->setValue($checkVal);\n \n //discard option array\n unset($checkVal);\n\n $cnt = count ($this->postageOptions); \n $session = $this->hlp->sess(\"postage\");\n\n \n for ($i = 0; $i<$cnt; $i++){\n\n $frm->addText(\"postage\" . $i, \"Doprava\");\n $frm->addText(\"pprice\" . $i, \"Cena dopravy\");\n\n }\n \n //additional postage textboxes logic\n $counter = $session->counterEdit;\n $values = $session->values;\n \n if (!is_null($counter)){\n \n $frm->addGroup(\"Postage\");\n \n for ($i =0; $i<$counter; $i++){\n $frm->addText(\"postage\" .$i. \"X\", \"Doprava\"); \n $frm->addText(\"pprice\" .$i. \"X\", \"Cena\");\n }\n }\n \n $frm->addSubmit(\"submit\", \"Upravit\");\n $frm->addSubmit(\"add_postage\", \"Přidat dopravu\")->onClick[] = \n \n function() use($listingID) {\n \n //inline onlclick handler, that counts postage options\n $session = $this->hlp->sess(\"postage\");\n $counter = &$session->counterEdit;\n \n if ($counter <= self::MAX_POSTAGE_OPTIONS){\n $counter++;\n } else {\n $this->flashMessage(\"Dosáhli jste maxima poštovních možností.\");\n }\n \n $form = $this->getComponent(\"editForm\");\n $session->values = $form->getValues(TRUE);\n \n $this->redirect(\"Listings:editListing\", $listingID);\n };\n \n $this->lHelp->fillForm($frm, $values); \n $frm->onSuccess[] = array($this, 'editSuccess');\n $frm->onValidate[] = array($this, 'editValidate');\n \n return $frm; \n }", "function form_mostrar($conp,$nreg,$pg,$bo,$filtro,$arc,$pefedi,$pefeli){\n\t\t$mempresa = new mempresa();\n\t\t$pa = new mpaginacion();\n\t\t$txt = '';\n\t\t//Creamos el cuadro de buscar (filtros-Busquedas)\n\t\t$txt .= \"<table>\";\n\t\t\t//Una Fila\n\t\t\t$txt .= \"<tr>\";\n\t\t\t\t//1ra Columna - Formulario buscar\n\t\t\t\t$txt .= '<td>';\n\t\t\t\t$txt .= '<form id=\"formfil\" name=\"frmfil\" method=\"GET\" action=\"'.$arc.'\" class=\"txtbold\">';\n\t\t\t\t$txt .= '<input name=\"pg\" type=\"hidden\" value=\"'.$pg.'\" />';\n\t\t\t$txt .= '<input class=\"search-box\" type=\"text\" name=\"filtro\" value=\"'.$filtro.'\" placeholder=\"Nombre De Empresa\"\n\t\t\t\t\tonChange=\"this.form.submit();\">';\n\t\t\t\t\t$txt .= '<label for=\"search-box\"><span class=\"glyphicon fas fa-search search-icon\"></span></label>';\n\t\t\t\t$txt .= '</form>';\n\t\t\t$txt .= '</td>';\n\t\t\t\t//2da Columna control de paginacion\n\t\t\t\t$txt .= \"<td align='right' style='padding-left: 10px;'>\";\n\t\t\t\t\t$bo = \"<input type='hidden' name='filtro' value='\".$filtro.\"' />\";\n\t\t\t\t\t//Llamamos el metodo de contar la cantida de paginas\n\t\t\t\t\t$txt .= $pa->spag($conp,$nreg,$pg,$bo,$arc);\n\t\t\t\t\t//Llamar los datos para completar la paginacion\n\t\t\t\t\t$result = $mempresa->sel_empresa($filtro,$pa->rvalini(),$pa->rvalfin());\n\t\t\t\t$txt .= \"</td>\";\n\t\t\t//Cierre Fila\n\t\t\t$txt .= \"</tr>\";\n\t\t$txt .= \"</table>\";\n\t\t\n\t\tif($result){\n\t\t$txt .= '<div class=\"cuad1\" style=\"width: 90%; \">';\n\t\t\t$txt .= '<table1 width=\"100%\" cellspacing=\"0px\" align=\"center\">';\n\t\t\t\t\t\t\t$txt .= \"<table class='table table-hover'>\";\n\t\t\t\t//Inicio de la (Cabecera_Tb)\t\t\n\t\t\t\t$txt .= '<tr>';\n\t\t\t\t\t$txt .= '<th>';\n\t\t\t\t\t\t$txt .= 'Foto';\n\t\t\t\t\t$txt .= '</th>';\n\t\t\t\t\t$txt .= '<th>';\n\t\t\t\t\t\t$txt .= 'Empresa';\n\t\t\t\t\t$txt .= '</th>';\n\t\t\t\t\t$txt .= '<th></th>';\n\t\t\t\t$txt .= '</tr>';\n\t\t\t\t//Cierre de la (Cabecera_Tb)\n\t\t\t\tforeach ($result as $f) {\n\t\t\t\t//Inicio ROW - Datos de la tabla\n\t\t\t\t$txt .= '<tr>';\n\t\t\t\t\t$txt .= '<td align=\"center\">';\n\t\t\t\t\t$txt .= '<img src=\"'.$f['logemp'].'\" width=\"25px\" />';\n\t\t\t\t\t$txt .= '</td>';\n\t\t\t\t\t$txt .= \"<td class='active lefi'>\";\n\t\t\t\t\t$txt .= \"<span style='font-size: 20px;'><strong>\".$f['nitemp'].\" - \".$f['razsocialemp'].\"</strong></span>\";\n\t\t\t\t\t$txt .= \"<br><strong>Sede: </strong>\".$f['sedecentemp'];\n\t\t\t\t\t$txt .= \"<br><strong>Email: </strong>\".$f['emailemp'];\n\t\t\t\t\t$txt .= \"<br><strong>Telefono: </strong>\".$f['telemp'];\n\t\t\t\t\t$txt .= \"</td>\";\n\t\t\t\t\t\t//ICONOS-MOdificar (Boton)\n\t\t\t\t\t\t$txt .= \"<td class='warning' align='center'>\";\n\t\t\t\t\t\t$txt .= \"<a href='home.php?pg=002&idemp=\".$f['idemp'].\"'><ul class='social-icons icon-circle icon-zoom list-unstyled list-inline'><li><i class='fas fa-pen' title='Actualizar'></i></li></ul></a>\";\n\t\t\t\t\t\t//ICONOS-Eliminar (Boton)\n\t\t\t\t\t\t$txt .= \"<a href='home.php?pg=002&del=\".$f['idemp'].\"'><ul class='social-icons icon-circle icon-zoom list-unstyled list-inline'><li><i class='fas fa-times' title='Eliminar'></i></li></ul></td></a>\";\t\n\t\t\t\t\t\t$txt .= \"</td>\";\n\n\t\t\t\t//Cierre ROW - Datos de la tabla\n\t\t\t\t$txt .= '</tr>';\n\t\t\t\t}\n\t\t\t$txt .= '</table>';\n\t\t\t$txt .= '<BR>';\n\t\t\t\t\t$txt .= '<BR>';\n\t\t\t\t\t$txt .= '<BR>';\n\t\t$txt .= '</div>';\n\t\t}else{\n\t\t$txt .= '<div class=\"cuad\" style=\"width: 90%;\">';\n\t\t$txt .= '<h3>No existen datos registrado en la base de datos...</h3>';\n\t\t$txt .= '</div>';\t\t\n\t}\n\t\techo $txt;\n\t}", "public function buildForm()\n {\n }", "function process_form()\n {\n }", "function buildForm(){\n\t\t# menampilkan form\n\t}", "function view_surat_keputusan_pemutih_penyalur_form() {\n\t\tglobal ${$GLOBALS['session_vars']}, ${$GLOBALS['get_vars']}, $adodb;\n\t\t$field_arr = surat_keputusan_pemutih_penyalur::get_field_set();\n\n\t\t$optional_arr = $this->optional_arr;\n\t\t$optional_arr['id_surat_keputusan_pemutih_penyalur'] = 'protect';\n\n\t\t$record = array (\n\t\t\t'id_surat_keputusan_pemutih_penyalur' => ${$GLOBALS['get_vars']}['id_surat_keputusan_pemutih_penyalur']\n\t\t);\n\t\t$result = surat_keputusan_pemutih_penyalur::get($record);\n\t\t$value_arr = $result[0];\n\t\t$label_arr = $this->surat_keputusan_pemutih_penyalur_label;\n\n\t\t$sqlA = \"SELECT\n\t\tno_surat_keputusan_pemutih_penyalur,\n\t\tid_cek_pemutih\n\t\tFROM\n\t\tsurat_keputusan_pemutih_penyalur\n\t\tWHERE\n\t\tid_surat_keputusan_pemutih_penyalur ='\".$value_arr['id_surat_keputusan_pemutih_penyalur'].\"'\n\t\t\";\n\n\t\t$hasil=$adodb->Execute($sqlA);\n\t\tWHILE(! $hasil->EOF){\n\t\t\t$no_surat_keputusan_pemutih_penyalur = $hasil->fields['no_surat_keputusan_pemutih_penyalur'];\n\t\t\t$id_cek_pemutih = $hasil->fields['id_cek_pemutih'];\n\t\t$hasil->MoveNext();\n\t\t}\n\t\t\n\t\t$sqlB=\"\n\t\tselect\n\t\tsurat_keputusan_pemutih_penyalur.id_surat_keputusan_pemutih_penyalur,\n\t\tsurat_keputusan_pemutih_penyalur.no_surat_keputusan_pemutih_penyalur,\n\t\tsurat_keputusan_pemutih_penyalur.nama,\n\n\t\tsurat_keputusan_pemutih_penyalur.nip,\n\t\tpendaftar_pemutih_penyalur.alamat_pendaftar_pemutih_penyalur,\n\t\tpendaftar_pemutih_penyalur.nama_pabrik,\n\t\tpendaftar_pemutih_penyalur.npwp,\n\t\tpendaftar_pemutih_penyalur.namapenanggungjwb,\n\t\tpendaftar_pemutih_penyalur.alamatgudang,\n\t\tpendaftar_pemutih_penyalur.alamat_bengkel,\n\t\tpendaftar_pemutih_penyalur.alamat_pabrik,\n\t\tpendaftar_pemutih_penyalur.nama_propinsi_1,\n\t\tpendaftar_pemutih_penyalur.nama_propinsi_2,\n\t\tpendaftar_pemutih_penyalur.nama_direktur,\n\n\t\t\n\t\ttt_pemutih_penyalur.urut_no_tt,\n\t\ttt_pemutih_penyalur.kode_subdit,\n\t\ttt_pemutih_penyalur.date_insert,\n\t\tcek_pemutih_penyalur.no_rekomendasi,\n\t\tcek_pemutih_penyalur.date_rekomendasi,\n\t\tcek_pemutih_penyalur.nama_produk,\n\t\tcek_pemutih_penyalur.no_pemohon,\n\t\tcek_pemutih_penyalur.date_pemohon,\n\t\tcek_pemutih_penyalur.no_bap,\n\t\tcek_pemutih_penyalur.date_bap\n\t\tfrom\n\t\tsurat_keputusan_pemutih_penyalur\n\t\tLEFT OUTER JOIN cek_pemutih_penyalur ON(cek_pemutih_penyalur.id_cek_pemutih = surat_keputusan_pemutih_penyalur.id_cek_pemutih)\n\t\tLEFT OUTER JOIN tt_pemutih_penyalur ON(tt_pemutih_penyalur.no_tt = cek_pemutih_penyalur.no_tt)\n\t\tLEFT OUTER JOIN pendaftar_pemutih_penyalur ON(pendaftar_pemutih_penyalur.kode_pendaftar_pemutih_penyalur = tt_pemutih_penyalur.kode_pendaftar_pemutih_penyalur)\n\t\tWHERE\n\t\tsurat_keputusan_pemutih_penyalur.id_cek_pemutih = '\".$id_cek_pemutih.\"'\n\t\t\";\n\t\t//print $sqlB;\n\t\t$rsb = $adodb->Execute($sqlB);\n\t\t$golongan = $rsb->fields['golongan'];\n\t\t$nama_produk = $rsb->fields['nama_produk'];\n\t\t\n\t\t$no_surat_keputusan = $rsb->fields['no_surat_keputusan_pemutih_penyalur'];\n\t\t\n\t\t$nama_perusahaan = $rsb->fields['nama_pabrik'];\n\t\t\n\t\t$nama_propinsi_1 = $rsb->fields['nama_propinsi_1'];\n\t\t$alamat_pendaftar = $rsb->fields['alamat_pendaftar'];\n\t\t$urut_no_tt = $rsb->fields['urut_no_tt'];\n\t\t$nama_penanggung = $rsb->fields['namapenanggungjwb'];\n\t\t$alamat_gudang = $rsb->fields['alamatgudang'];\n\t\t$alamat_pendaftar_pemutih_penyalur = $rsb->fields['alamat_pendaftar_pemutih_penyalur'];\n\t\t$alamat_bengkel = $rsb->fields['alamat_bengkel'];\n\t\t$nama_direktur = $rsb->fields['nama_direktur'];\n\t\t$date_insert = date('d M Y',$rsb->fields['date_insert']);\n\t\t$no_rekomendasi = $rsb->fields['no_rekomendasi'];\n\t\t$no_pemohon = $rsb->fields['no_pemohon'];\n\t\t$date_pemohon = date('d M Y',$rsb->fields['date_pemohon']);\n\t\t$alamat_pabrik = $rsb->fields['alamat_pabrik'];\n\t\t$nama_propinsi_2 = $rsb->fields['nama_propinsi_2'];\n\t\t$date_rekomendasi = date('d M Y',$rsb->fields['date_rekomendasi']);\n\t\t$no_bap = $rsb->fields['no_bap'];\n\t\t$npwp = $rsb->fields['npwp'];\n\t\t$date_bap = date('d M Y',$rsb->fields['date_bap']);\n\t\t$kode_subdit = $rsb->fields['kode_subdit'];\n\t\t$nama = $rsb->fields['nama'];\n\t\t$nip = $rsb->fields['nip'];\n\n\t\t$rsS = $adodb->Execute(\"SELECT keterangan FROM subdit where id_subdit = '\".$kode_subdit.\"'\");\n\t\t$ketS = $rsS->fields[keterangan];\n\n\t\t\n\t\t\n\n\t\tdefine('FPDF_FONTPATH','fpdf/font/');\n\t\trequire('fpdf/fpdf.php');\n\t\t$pdf=new FPDF('P','mm','legal');\n\t\t$pdf->Open();\n\t\t$pdf->AddPage();\n\t\t$pdf->Ln(30);\n\t\t$pdf->SetFont('Arial','B',12);\n\t\t$pdf->Cell(180,7,'KEPUTUSAN MENTERI KESEHATAN REPUBLIK INDONESIA','',0,'C');\n\t\t$pdf->Ln(5);\n\t\t$pdf->Cell(180,7,'NOMOR : '.$no_surat_keputusan.'','',0,'C');\n\t\t$pdf->SetFont('Arial','B',12);\n\t\t$pdf->Ln(10);\n\t\t$pdf->Cell(180,7,'TENTANG','',0,'C');\n\t\t$pdf->Ln(5);\n\t\t$pdf->Cell(180,7,'IZIN PENYALURAN ALAT KESEHATAN','',0,'C');\n\t\t$pdf->Ln(5);\n\t\t$pdf->Cell(180,7,'MENTERI KESEHATAN REPUBLIK INDONESIA','',0,'C');\n\t\t$pdf->Ln(20);\n\t\t$pdf->SetFont('Arial','',12);\n\t\t$pdf->Cell(25,7,'MEMBACA','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(150,7,'1. Surat pemohonan Izin Produksi '.$nama_perusahaan.', '.$alamat_pendaftar_pemutih_penyalur.' '.$no_pemohon.'',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,' tanggal '.$date_pemohon.' perihal permohonan pembaharuan Izin ',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,' Penyalur Alat Kesehatan',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,'2. Keputusan Direktorat Jendral POM Departemen Kesehatan RI '.$no_rekomendasi.'',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,' tanggal '.$date_rekomendasi.' tentang Izin Penyalur Alat Kesehatan',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,' yang diberikan kepada '.$nama_perusahaan.', '.$alamat_pendaftar_pemutih_penyalur.' .',0,'L');\n\t\t$pdf->Ln(10);\n\t\t$pdf->Cell(25,7,'MENIMBANG','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(160,7,'1. Bahwa permohonan '.$nama_perusahaan.' tersebut telah memenuhi',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,' persyaratan dan dapat disetujui.',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,'2. Bahwa oleh karena itu dianggap perlu menerbitkan izin Penyalur',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,' Alat Kesehatan untuk yang bersangkutan',0,'L');\n\t\t$pdf->Ln(10);\n\t\t\n\n\t\t$pdf->Cell(25,7,'MENGINGAT','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(150,7,'1. Undang-undang No.23 Tahun 1992 tentang Kesehatan (Lembaran Negara',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,' Tahun 1992 No. : 100; Tambahan Lembaga Negara No.3495).',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,'2. Keputusan Presiden RI No. 102.Tahun 2001 Tentang Kedudukan, Tugas,',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,' Fungsi, Kewenangan, Susunan Organisasi dan Tata Kerja Departemen.',0,'L');\n\t\t$pdf->Ln();\n\n\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,'3. Keputusan Menteri Kesehatan No. 1277/Menkes/SK/XI/2001 tahun',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,' 2001 tentang Organisasi dan Tata Kerja Departemen Kesehatan ',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,'4. Peraturan Menteri Kesehatan Republik Indonesia Nomor :,',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,' 142/Menkes/Per/III/1991 Tanggal 4 Maret 1991 tentang Penyalur',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(30,7,'','',0,'L');$pdf->Cell(150,7,' Alat Kesehatan.',0,'L');\n\n\t\t$pdf->Ln(10);\n\t\t$pdf->Cell(180,7,'MEMUTUSKAN','',0,'C');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'MENETAPKAN','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(15,7,'Pertama','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(160,7,'Memberikan Izin '.$keterangan1.' Kepada :','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(45,7,'Nama perusahaan','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(110,7,''.$nama_perusahaan.'','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(45,7,'NPWP','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(110,7,''.$npwp.'','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(45,7,'Alamat Perusahaan','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(110,7,''.$alamat_pabrik.'','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(45,7,'Nama Direktur/Pimpinan','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(110,7,''.$nama_direktur.'','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(45,7,'Nama Penanggung','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(45,7,'Jawab Teknis','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(110,7,''.$nama_penanggung.'','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(45,7,'Alamat Gudang','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(110,7,''.$alamat_gudang.'','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(45,7,'Alamat ','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(110,7,''.$alamat_bengkel.'','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(45,7,'Bengkel/Workshop ','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(150,7,'Dengan ketentuan sebagai berikut : ','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(150,7,'1. Harus selalu diawasi oleh Penanggung Jawab Teknis yang namanya','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(150,7,' tercantum pada surat keputusan ini.','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(150,7,'2. Harus mematuhi peraturan perundang-undangan yang berlaku.','',0,'L');\n\n\t\t$pdf->AddPage();\n\t\t$pdf->Ln(30);\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(150,7,'3. Melaksanakan dokumentasi pengadaan, penyimpanan dan penyaluran','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(150,7,' alat kesehatan dengan sebaik-baiknya sesuai ketentuan yang berlaku.','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(150,7,'4. Izin Penyalur Alat Kesehatan berlaku untuk seterusnya selama','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(150,7,' perusahaan Penyalur Alat Kesehatan yang bersangkutan masih aktif','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(150,7,' melakukan kegiatan usahanya dan berlaku untuk seluruh Wilayah','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(150,7,' Republik Indonesia.','',0,'L');\n\t\t$pdf->Ln(10);\n\t\t$pdf->Cell(15,7,'Kedua','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(160,7,'Dengan dikeluarkannya keputusan ini, maka keputusan Direktur Jenderal','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(160,7,' Pengawasan Obat dan Makanan Depkes RI '.$no_rekomendasi.' tanggal ','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(160,7,' '.$date_rekomendasi.' tentang Izin Penyalur alat Kesehatan yang diberikan kepada ','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(160,7,\t\t\t' '.$nama_perusahaan.' dinyatakan tidak berlaku lagi. ','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(15,7,'Ketiga','',0,'L');$pdf->Cell(5,7,' : ','',0,'L');$pdf->Cell(160,7,'Surat Keputusan ini berlaku sejak tanggal ditetapkan dengan catatan,','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(160,7,'bahwa akan diadakan peninjauan atau perubahan sebagaimana','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(20,7,'','',0,'L');$pdf->Cell(160,7,'mestinya apabila terdapat kekurangan atau kekeliruan dalam penetapan ini.','',0,'L');\n\t\t$pdf->Ln(10);\n\n\t\t$pdf->Ln(20);\n\t\t$pdf->Cell(100,7,'','',0,'L');$pdf->Cell(30,7,'Ditetapkan di','',0,'L');$pdf->Cell(60,7,' : J a k a r t a ','',0,'L');\n\t\t$pdf->Ln();\n\t\t$tg = date('d M Y');\n\t\t$pdf->Cell(100,7,'','',0,'L');$pdf->Cell(30,7,'Pada tanggal','B',0,'L');$pdf->Cell(40,7,' : '.$tg.'','B',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->SetFont('Arial','B',12);\n\t\t$date_bap = date('d M Y');\n\t\t$kode_subdit = $rsb->fields['kode_subdit'];\n\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(100,7,'a.n MENTERI KESEHATAN REPUBLIK INDONESIA','',0,'C');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(100,7,'DIREKTUR JENDERAL PELAYANAN','',0,'C');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(100,7,'KEFARMASIAN DAN ALAT KESEHATAN','',0,'C');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(100,7,'u.b. DIREKTUR BINA PRODUKSI DAN DISTRIBUSI','',0,'C');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(100,7,'ALAT KESEHATAN','',0,'C');\n\t\t$pdf->Ln(30);\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(10,7,'','',0,'L');$pdf->Cell(80,7,''.$nama.'','B',0,'C');$pdf->Cell(10,7,'','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(10,7,'','',0,'L');$pdf->Cell(80,7,'NIP .'.$nip.'','',0,'C');$pdf->Cell(10,7,'','',0,'L');\n\t\t$pdf->Ln(10);\n\t\t$pdf->SetFont('Arial','',12);\n\t\t$pdf->Cell(80,7,'Salinan Keputusan ini disampaikan kepada Yth :','B',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(180,7,'1. Dirjen Yan Far dan Alkes (sebagai laporan)','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(180,7,'2. Ka Dinas Kesehatan prop. '.$alamat_pendaftar_pemutih_penyalur.'','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(180,7,'3. Dit.Jen Bea dan Cukai Dep Keuangan RI di jakarta','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(180,7,'4. Dep. Perindag RI di Jakarta','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(180,7,'5. Arsip','',0,'L'); \n\t\t\n\n\t\t$pdf->AddPage();\n\t\t$pdf->Ln(30);\n\t\t$pdf->SetFont('Arial','B',12);\n\t\t$pdf->Cell(180,7,'KEPUTUSAN MENTERI KESEHATAN REPUBLIK INDONESIA','',0,'C');\n\t\t$pdf->Ln();\n\t\t$pdf->SetFont('Arial','',12);\n\t\t$pdf->Cell(180,7,''.$no_surat_keputusan.' Tanggal '.$tg.'','',0,'C');\n\t\t$pdf->Ln(10);\n\t\t$pdf->SetFont('Arial','',12);\n\t\t$pdf->Cell(180,7,'DIIZINKAN UNTUK MENYALURKAN ALAT KESEHATAN PRODUKSI DARI : ','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(180,7,''.$nama_produk.'','',0,'L');\n\t\t$pdf->Ln(10);\n\t\t$pdf->Cell(180,7,'Dengan ketentuan bahwa alat kesehatan tersebut harus mendapatkan persetujuan izinr','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(180,7,'edar sebelum di edarkan',0,'L');\n\t\t$pdf->Ln(10);\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(100,7,'a.n MENTERI KESEHATAN REPUBLIK INDONESIA','',0,'C');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(100,7,'DIREKTUR JENDERAL PELAYANAN','',0,'C');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(100,7,'KEFARMASIAN DAN ALAT KESEHATAN','',0,'C');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(100,7,'u.b. DIREKTUR BINA PRODUKSI DAN DISTRIBUSI','',0,'C');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(100,7,'ALAT KESEHATAN','',0,'C');\n\t\t$pdf->Ln(30);\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(10,7,'','',0,'L');$pdf->Cell(80,7,''.$nama.'','B',0,'C');$pdf->Cell(10,7,'','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Cell(80,7,'','',0,'L');$pdf->Cell(10,7,'','',0,'L');$pdf->Cell(80,7,'NIP .'.$nip.'','',0,'C');$pdf->Cell(10,7,'','',0,'L');\n\t\t$pdf->Ln();\n\t\t$pdf->Output();\n\n\n\t\t$_form = $lamp;\n\n\t\treturn $_form;\n\t}", "public function forms($donnees){\n \n ?>\n\n<section id=\"bak-section-id-article\">\n \n <section class=\"bak-section-class-article\">\n <h2>Liste de mes articles</h2>\n <form method=\"post\" action=\"index.php?module=article&action=select\">\n <select name=\"id_article\">\n <option>Tout mes articles</option>\n <?php \n for($i=0;$i<COUNT($donnees[\"articles\"]);$i++) {\n ?>\n \n <option value=\"<?php echo $donnees[\"articles\"][$i]->getId_article();?>\"><?php echo $donnees[\"articles\"][$i]->getTitre_a();?></option>\n <?php\n }\n ?>\n </select><br/><br/>\n <input type=\"submit\" name=\"selection\" value=\"selectionner\"/>\n </form>\n </section>\n <section class=\"bak-section-class-article\">\n <h2>Insertion de mes articles</h2>\n <input type=\"button\" name=\"insertion\" value=\"Inserer mes articles\"/>\n <article>\n <form method=\"post\" action=\"index.php?module=article&action=insert\" enctype=\"multipart/form-data\">\n <p><labe>Titre : </labe><input type=\"text\" name=\"titre_a\"/></p>\n <p><labe>Article : </labe><textarea name=\"article\" cols=\"50\" rows=\"10\"></textarea></p> \n <p><labe>Photo : </labe><input type=\"file\" name=\"photo_a\" /></p> \n <p><labe>Tilte : </labe><input type=\"text\" name=\"title\" /></p> \n <p><labe>Alt : </labe><input type=\"text\" name=\"alt\" /></p>\n <input type=\"submit\" name=\"insert\" value=\"Enregistrer\"/>\n </form>\n </article>\n </section>\n \n <section class=\"bak-section-class-article\">\n <h2>Modification de mes articles</h2>\n <input type=\"button\" name=\"modification\" value=\"Modifier mes articles\"/>\n <article>\n <form method=\"post\" action=\"index.php?module=article&action=modif\" enctype=\"multipart/form-data\">\n <p><labe>Id : <?php if(isset($donnees[\"article\"]) && $donnees[\"article\"] !=\"\") echo $donnees[\"article\"]->getId_article();?></labe><input type=\"hidden\" name=\"id_article\" value=\"<?php if(isset($donnees[\"article\"]) && $donnees[\"article\"] !=\"\") echo $donnees[\"article\"]->getId_article();?>\"/></p>\n <p><labe>Titre : </labe><input type=\"text\" name=\"titre_a\" value=\"<?php if(isset($donnees[\"article\"]) && $donnees[\"article\"] !=\"\") echo $donnees[\"article\"]->getTitre_a();?>\"/></p>\n <p><labe>Article : </labe><textarea name=\"article\" cols=\"50\" rows=\"10\"><?php if(isset($donnees[\"article\"]) && $donnees[\"article\"] !=\"\") echo $donnees[\"article\"]->getArticle();?></textarea></p> \n <p><labe>Photo : </labe><input type=\"file\" name=\"photo_a\" value=\"<?php if(isset($donnees[\"article\"]) && $donnees[\"article\"] !=\"\") echo $donnees[\"article\"]->getPhoto_a();?>\"/></p> \n <p><labe>Tilte : </labe><input type=\"text\" name=\"title\" value=\"<?php if(isset($donnees[\"article\"]) && $donnees[\"article\"] !=\"\") echo $donnees[\"article\"]->getTitle();?>\"/></p> \n <p><labe>Alt : </labe><input type=\"text\" name=\"alt\" value=\"<?php if(isset($donnees[\"article\"]) && $donnees[\"article\"] !=\"\") echo $donnees[\"article\"]->getAlt();?>\"/></p>\n <input type=\"submit\" name=\"modif\" value=\"Modifier\"/>\n </form>\n </article>\n </section>\n\n <section class=\"bak-section-class-article\">\n <h2>Supression de mes articles</h2> \n <input type=\"button\" name=\"supression\" value=\"Suprimer mes articles\"/>\n <article>\n <form method=\"post\" action=\"index.php?module=article&action=supression\">\n <br/><br/>\n <select name=\"id_article\">\n <option>Tout mes articles</option>\n <?php \n for($i=0;$i<COUNT($donnees[\"articles\"]);$i++) {\n ?>\n\n <option value=\"<?php echo $donnees[\"articles\"][$i]->getId_article();?>\"><?php echo $donnees[\"articles\"][$i]->getTitre_a();?></option>\n <?php\n }\n ?>\n </select><br/><br/>\n <input type=\"submit\" name=\"Suprimer\" value=\"Suprimer\"/>\n </form>\n </article>\n </section>\n <section class=\"bak-section-class-article\">\n \n </section>\n</section>\n\n <?php\n }", "private function escalatieAntwoordToevoegenAction()\n {\n if (isset($_POST) && !empty($_POST))\n {\n $this->model->maakEscalatieAntwoord();\n $this->model->setLog('Escalatie antwoord toevoegen', 'Gelukt');\n $this->forward('ticket', 'admin');\n } else\n {\n $ticket = $this->model->geefTicket();\n $this->view->set('ticket', $ticket);\n }\n }", "function form_mostrar($conp,$nreg,$pg,$bo,$filtro,$arc){\n\t\t$mtipo_documento = new mtipo_documento();\n\t\t //Instanciamos en [$pa] la clase mpagina\n\t\t$pa = new mpaginacion();\n\t\t$txt = '';\n\t\t//Creamos el cuadro de buscar (filtros-Busquedas)\n\t\t$txt .= \"<table>\";\n\t\t\t//Una Fila\n\t\t\t$txt .= \"<tr>\";\n\t\t\t\t//1ra Columna - Formulario buscar\n\t\t\t\t$txt .= \"<td>\";\n\t\t\t\t\t$txt .= \"<form name='forfil' method='GET' action='\".$arc.\"'>\";\n\t\t\t\t\t\t$txt .= \"<input type='hidden' name='pg' value='\".$pg.\"' />\";\n\t\t\t\t\t\t//Campo de texto para escribir el dato a buscar\n\t\t\t\t\t\t$txt .= \"Buscar:<input type='text' name='filtro' value='\".$filtro.\"' placeholder='Ingrese El Nombre Del Empleado' onChange= 'this.form.submit();' />\";\n\t\t\t\t\t$txt .= \"</form>\";\n\t\t\t\t$txt .= \"</td>\";\n\t\t\t\t//2da Columna control de paginacion\n\t\t\t\t$txt .= \"<td align='right' style='padding-left: 10px;'>\";\n\t\t\t\t\t$bo = \"<input type='hidden' name='filtro' value='\".$filtro.\"' />\";\n\t\t\t\t\t//Llamamos el metodo de contar la cantida de paginas\n\t\t\t\t\t$txt .= $pa->spag($conp,$nreg,$pg,$bo,$arc);\n\t\t\t\t\t//Llamar los datos para completar la paginacion\n\t\t\t\t\t$result = $mtipo_documento->sel_tipo_documento($filtro,$pa->rvalini(),$pa->rvalfin());\n\t\t\t\t$txt .= \"</td>\";\n\t\t\t//Cierre Fila\n\t\t\t$txt .= \"</tr>\";\n\t\t$txt .= \"</table>\";\n\t\tif ($result) {\n\n\t\t$txt .= '<div class=\"cuad1\" style=\"width: 90%;\">';\n\t\t\t$txt .= '<table width=\"100%\" cellspacing=\"0px\" align=\"center\">';\n\t\t\t\t//Inicio de la (Cabecera_Tb)\t\t\t\n\t\t\t\t$txt .= '<tr>';\n\t\t\t\t\t$txt .= '<th>';\n\t\t\t\t\t\t$txt .= 'id_tpdoc(s)';\n\t\t\t\t\t$txt .= '</th>';\n\t\t\t\t\t$txt .= '<th>';\n\t\t\t\t\t\t$txt .= 'Tipo de Documento';\n\t\t\t\t\t$txt .= '</th>';\n\t\t\t\t\t$txt .= '<th>';\n\t\t\t\t\t\t$txt .= 'extencion';\n\t\t\t\t\t$txt .= '</th>';\n\t\t\t\t\t$txt .= '<th></th>';\n\t\t\t\t\t$txt .= '<th></th>';\n\t\t\t\t$txt .= '</tr>';\n\t\t\t\t//Cierre de la (Cabecera_Tb)\n\t\t\t\tforeach ($result as $f) {\n\t\t\t\t//Inicio ROW - Datos de la tabla\n\t\t\t\t$txt .= '<tr>';\n\t\t\t\t\t$txt .= '<td align=\"center\">';\t\n\t\t\t\t\t\t$txt .= $f[\"id_tpdoc\"];\n\t\t\t\t\t$txt .= '</td>';\n\t\t\t\t\t$txt .= '<td align=\"center\">';\t\n\t\t\t\t\t\t$txt .= $f[\"nom_tpdoc\"];\n\t\t\t\t\t$txt .= '</td>';\n\t\t\t\t\t$txt .= '<td align=\"center\">';\t\n\t\t\t\t\t\t$txt .= $f[\"extencion\"];\n\t\t\t\t\t$txt .= '</td>';\n\t\t\t\t\t//ICONOS-MOdificar (Boton)\n\t\t\t\t\t$txt .= '<td align=\"center\"><a href=\"home.php?pg=010&id_tpdoc='.$f[\"id_tpdoc\"].'\">\n\t\t\t\t\t\t<img src=\"img/actua.png\" title=\"Actualizar\"</a></td>';\n\t\t\t\t\t//ICONOS-Eliminar (Boton)\n\t\t\t\t\t$txt .= '<td align=\"center\"><a href=\"home.php?pg=010&del='.$f[\"id_tpdoc\"].'\">\n\t\t\t\t\t\t<img src=\"img/elemi.png\" title=\"Eliminar\"</a></td>';\n\t\t\t\t//Cierre ROW - Datos de la tabla\n\t\t\t\t$txt .= '</tr>';\n\t\t\t\t}\n\t\t\t$txt .= '</table>';\n\t\t$txt .= '</div>';\n\t\t}else{\n\t\t$txt.= '<div class=\"cuad\" style=\" width\": 90%;\">';\n\t\t $txt.= '<h3> No existen datos registrado en la base de datos...</h3>';\n\t\t $txt.='</div>';\n }\n\t\techo $txt;\n\t}", "function evt__form_pase__modificacion($datos)\r\n\t{\r\n $car=$this->controlador()->dep('datos')->tabla('cargo')->get();\r\n $datos['id_cargo']=$car['id_cargo'];\r\n \r\n \r\n //print_r($pase_nuevo);exit;\r\n if($this->dep('datos')->tabla('pase')->esta_cargada()){//es modificacion\r\n $pas=$this->dep('datos')->tabla('pase')->get();\r\n if($pas['tipo']<>$datos['tipo']){\r\n toba::notificacion()->agregar('no puede cambiar el tipo del pase', 'info'); \r\n }else{\r\n $this->dep('datos')->tabla('pase')->set($datos);\r\n $this->dep('datos')->tabla('pase')->sincronizar();\r\n }\r\n }else{//es alta de un pase nuevo\r\n $this->dep('datos')->tabla('pase')->set($datos);\r\n $this->dep('datos')->tabla('pase')->sincronizar();\r\n $pase_nuevo=$this->dep('datos')->tabla('pase')->get();\r\n $p['id_pase']=$pase_nuevo['id_pase'];\r\n $this->dep('datos')->tabla('pase')->cargar($p);//lo cargo para que se sigan viendo los datos en el formulario\r\n if($datos['tipo']=='T'){//si el pase es temporal\r\n //ingreso un cargo en la unidad destino\r\n //la ingresa con fecha de alta = desde\r\n $nuevo_cargo['id_persona']=$car['id_persona'];\r\n $nuevo_cargo['codc_carac']=$car['codc_carac'];\r\n $nuevo_cargo['codc_categ']=$car['codc_categ'];\r\n $nuevo_cargo['codc_agrup']=$car['codc_agrup'];\r\n $nuevo_cargo['chkstopliq']=$car['chkstopliq'];\r\n $nuevo_cargo['fec_alta']=$datos['desde'];\r\n $nuevo_cargo['pertenece_a']=$datos['destino'];\r\n $nuevo_cargo['generado_x_pase']=$pase_nuevo['id_pase']; \r\n $res=$this->controlador()->dep('datos')->tabla('cargo')->agregar_cargo($nuevo_cargo);\r\n if($res==1){\r\n toba::notificacion()->agregar('Se ha creado un nuevo cargo en el destino del pase', 'info');\r\n }\r\n \r\n }else{//pase definitivo entonces tengo que modificar la fecha del cargo en la unidad destino con la fecha de alta del definitivo\r\n $nuevafecha = strtotime ( '-1 day' , strtotime ( $datos['desde'] ) ) ;\r\n $nuevafecha = date ( 'Y-m-d' , $nuevafecha );\r\n //print_r($nuevafecha);exit;\r\n $salida=$this->controlador()->dep('datos')->tabla('cargo')->modificar_alta($datos['id_cargo'],$datos['destino'],$datos['desde']);\r\n //le coloca fecha de baja al cargo de la unidad origen\r\n $this->controlador()->dep('datos')->tabla('cargo')->finaliza_cargo($datos['id_cargo'],$nuevafecha);\r\n if($salida==1){\r\n toba::notificacion()->agregar('Se ha modificado la fecha del cargo generado a partir del pase temporal', 'info');\r\n }\r\n \r\n } \r\n }\r\n \r\n\t}", "public function hookForm() {\n if ($this->isCompanyForm()) {\n $this->setDefaultExpDate();\n $this->makeBillingAreaRequired();\n }\n elseif ($this->isCompanyViewsMultiSearchForm()) {\n $this->form['company_name']['#type'] = 'textarea';\n $this->duplicateField('sort_by');\n }\n }", "public function form()\n {\n $this->switch('auto_df_switch', __('message.tikuanconfig.auto_df_switch'));\n $this->timeRange('auto_df_stime', 'auto_df_etime', '开启时间');\n $this->text('auto_df_maxmoney', __('message.tikuanconfig.auto_df_maxmoney'))->setWidth(2);\n $this->text('auto_df_max_count', __('message.tikuanconfig.auto_df_max_count'))->setWidth(2);\n $this->text('auto_df_max_sum', __('message.tikuanconfig.auto_df_max_sum'))->setWidth(2);\n\n }", "abstract protected function getForm();", "public function techo_update($proy_id){\n $proyecto = $this->model_proyecto->get_id_proyecto($proy_id);\n $fase = $this->model_faseetapa->get_id_fase($proy_id);\n $fgestion=$this->model_faseetapa->fase_gestion($fase[0]['id'],$this->gestion);\n $ffofet=$this->model_faseetapa->fase_presupuesto_id($fgestion[0]['ptofecg_id']);\n $ffi = $this->model_faseetapa->fuentefinanciamiento(); ///// fuente financiamiento\n $fof = $this->model_faseetapa->organismofinanciador(); ///// organismo financiador\n\n $tabla ='';\n if(count($ffofet)!=0){\n $tabla.='\n <form action=\"'.site_url('').'/proy/add_ptto_techo\" id=\"form_techo\" name=\"form_techo\" class=\"smart-form\" method=\"post\">\n <input type=\"hidden\" id=\"nffofet\" value=\"'.count($ffofet).'\"/>\n <input type=\"hidden\" name=\"proy_id\" id=\"proy_id\" value=\"'.$proy_id.'\"/>\n <input type=\"hidden\" name=\"ptofecg_id\" id=\"ptofecg_id\" value=\"'.$fgestion[0]['ptofecg_id'].'\"/>\n <input type=\"hidden\" name=\"ptto_gestion\" id=\"ptto_gestion\" value=\"'.$fgestion[0]['pfecg_ppto_total'].'\"/>\n <input type=\"hidden\" id=\"contador-filas\" value=\"'.count($ffofet).'\" />\n <table class=\"table table-bordered\" id=\"tabla\" style=\"width:60%;\">\n <thead>\n <tr>\n <th style=\"width:1%;\">#</th>\n <th style=\"width:38%;\">FUENTE DE FINANCIAMIENTO</th>\n <th style=\"width:38%;\">ORGANISMO FINANCIADOR</th>\n <th style=\"width:20%;\">IMPORTE</th>\n <th style=\"width:3%;\"></th>\n </tr>\n </thead>\n <tbody>';\n $nro=0;\n $suma=0;\n foreach($ffofet as $rowf){\n $ff_ins = $this->model_faseetapa->fuente_insumo($rowf['ffofet_id']); \n $suma=$suma+$rowf['ffofet_monto'];\n $nro++;\n $tabla .='<tr>';\n $tabla .='<td><input type=\"hidden\" name=\"ffofet_id[]\" value=\"'.$rowf['ffofet_id'].'\"/>'.$nro.'</td>';\n $tabla .='<td>\n <select class=\"form-control\" name=\"ffin[]\" id=\"fi'.$nro.'\" title=\"Seleccione fuente de Financiamiento\" required >\n <option value=\"\">Seleccione Fuente financiamiento </option>';\n foreach($ffi as $row){ \n if($rowf['ff_id']==$row['ff_id']){\n $tabla .='<option value=\"'.$row['ff_id'].'\" selected>'.$row['ff_codigo'].' - '.$row['ff_descripcion'].'</option>'; \n }\n else{\n $tabla .='<option value=\"'.$row['ff_id'].'\">'.$row['ff_codigo'].' - '.$row['ff_descripcion'].'</option>'; \n }\n }\n $tabla .=' \n </select>\n </td>';\n $tabla .='<td>\n <select class=\"form-control\" name=\"ofin[]\" id=\"ofi'.$nro.'\" title=\"Seleccione organismo Financiador\" required >\n <option value=\"\">Seleccione Organismo Financiador </option>';\n foreach($fof as $row){\n if($rowf['of_id']==$row['of_id']){\n $tabla .='<option value=\"'.$row['of_id'].'\" selected>'.$row['of_codigo'].' - '.$row['of_descripcion'].'</option>';\n }\n else{\n $tabla .='<option value=\"'.$row['of_id'].'\">'.$row['of_codigo'].' - '.$row['of_descripcion'].'</option>';\n }\n }\n $tabla .=' \n </select>\n </td>';\n $tabla .='<td><input type=\"text\" name=\"importe[]\" id=\"impo'.$nro.'\" value=\"'.$rowf['ffofet_monto'].'\"class=\"form-control\" onkeyup=\"suma_monto_techo();\" onkeypress=\"if (this.value.length < 10) { return numerosDecimales(event);}else{return false; }\" onpaste=\"return false\"/></td>';\n $tabla .='<td align=center>';\n if($this->session->userdata('rol_id')==1){\n if($ff_ins==0){\n $tabla .= '<a href=\"#\" data-toggle=\"modal\" data-target=\"#modal_del_ff\" class=\"btn btn-xs del_ff\" title=\"ELIMINAR REQUERIMIENTO\" name=\"'.$rowf['ffofet_id'].'\" id=\"'.$proy_id.'\">\n <img src=\"'.base_url().'assets/img/delete.png\" width=\"30\" height=\"30\"/>\n </a>';\n }\n }\n $tabla .='</td>';\n $tabla .='</tr>';\n }\n $tabla .='</tbody>\n </table><br>\n <table class=\"table table-bordered\" style=\"width:60%;\">\n <tr>\n <td style=\"width:77%;\"><font color=\"blue\">PRESUPUESTO ASIGNADO '.$this->gestion.'</font></td>\n <td style=\"width:20%;\"><input type=\"text\" name=\"ptto\" id=\"ptto\" value=\"'.$fgestion[0]['pfecg_ppto_total'].'\" class=\"form-control\" disabled/></td>\n <td style=\"width:3%;\"></td>\n </tr>\n <tr>\n <td style=\"width:77%;\"><font color=\"blue\">TOTAL</font></td>\n <td style=\"width:20%;\"><input type=\"text\" name=\"total\" id=\"total\" value=\"'.$suma.'\" class=\"form-control\" disabled/></td>\n <td style=\"width:3%;\"></td>\n </tr>\n <tr>\n <td style=\"width:77%;\"><font color=\"blue\">SALDO</font></td>\n <td style=\"width:20%;\"><input type=\"text\" name=\"saldo\" id=\"saldo\" value=\"'.($fgestion[0]['pfecg_ppto_total']-$suma).'\" class=\"form-control\" disabled/></td>\n <td style=\"width:3%;\"></td>\n </tr>\n </table>\n <footer>\n <div id=\"but\">\n <button type=\"button\" name=\"mod_tech\" id=\"mod_tech\" class=\"btn btn-primary\">Modificar Techo Presupuestario</button>\n </div>\n </footer>\n </form>';\n\n ?>\n <script type=\"text/javascript\">\n function suma_monto_techo(){\n ptotal = parseFloat($('[name=\"ptto_gestion\"]').val());\n nro = parseFloat($('[id=\"nffofet\"]').val());\n new_nro = parseFloat($('[id=\"contador-filas\"]').val());\n var suma=0;\n // alert(nro+new_nro)\n for (var i = 1; i <= new_nro; i++) {\n suma=parseFloat(suma)+parseFloat($('[id=\"impo'+i+'\"]').val());\n }\n\n $('[name=\"total\"]').val((suma).toFixed(2));\n tot = parseFloat($('[name=\"total\"]').val());\n \n $('[name=\"saldo\"]').val((parseFloat(ptotal)-parseFloat(tot)).toFixed(2));\n saldo = parseFloat($('[name=\"saldo\"]').val());\n\n /*if(isNaN(tot) || tot=='' || tot<0){\n $('#but').slideUp();\n }\n else{\n if(isNaN(saldo) || saldo<0){\n $('#but').slideUp();\n }\n else{\n $('#but').slideDown();\n } \n }*/\n }\n </script>\n <?php \n }\n\n return $tabla;\n }", "public function setForm() {\n\t\t$translator = Zend_Registry::get('Zend_Translate');\n\t\t$this->setMethod('post');\n\t\t \n\t\t$this->addEnabled();\n\t\t$this->addRentDueDay();\n\t\t$this->addProrationType();\n\t\t$this->addProrationApplyMonth();\n\t\t$this->addSecondMonthDue();\n\t\t$this->addSubmitButton();\n\n\t\t$this->addDisplayGroup( $this->displayGroupArray, 'updateRentProrationSetting',array('legend' => 'rentProrationSettings'));\n\t\t$this->getDisplayGroup('updateRentProrationSetting')->setDecorators(array(\n 'FormElements',\n 'Fieldset', \n\t\t));\n\t}", "function update_tt_1_alkes_form() {\n\t\treturn $this->add_tt_1_alkes_form();\n\t}", "function form_registro($id_tpdoc){\n\t $mtipo_documento = new mtipo_documento();\n\t //Listamos nuetros perfiles(modulo)\n\t\t$result1 = $mtipo_documento->sel_tipo_documento_act($id_tpdoc);\n\n\t\t$txt = '';\n\t\t$txt .= '<div class=\"cuad\">';\n\t\t\t$txt .= '<form name=\"frm1\" action=\"#\" method=\"POST\">';\n\t\t\t\t$txt .= '<table>';\n\t\t\t\t\t//1raFilas (<tr>)\n\t\t\t\t\t$txt .= '<tr>';\n\t\t\t\t\t\t//1ra Cabeceras Negrita (<th>)\n\t\t\t\t\t\t$txt .= '<th align=\"left\">';\n\t\t\t\t\t\t\t$txt .= 'Id:';\n\t\t\t\t\t\t$txt .= '</th>';\n\t\t\t\t\t\t//2da Cabecera normal (<td>)\n\t\t\t\t\t\t$txt .= '<td>';\n\t\t\t\t\t\t\t$txt .= '<input type=\"number\" name=\"id_tpdoc\" max=\"999999999999\" value=\"'.$id_tpdoc.'\"/>';\n\t\t\t\t\t\t$txt .= '</td>';\n\t\t\t\t\t//1ra Fila Cierre\n\t\t\t\t\t$txt .= '</tr>';\n\n\n\t\t\t\t\t//2da Filas (<tr>)\n\t\t\t\t\t$txt .= '<tr>';\n\t\t\t\t\t\t//1ra Cabeceras Negrita (<th>)\n\t\t\t\t\t\t$txt .= '<th align=\"left\">';\n\t\t\t\t\t\t\t$txt .= 'Tipo Documento:';\n\t\t\t\t\t\t$txt .= '</th>';\n\t\t\t\t\t\t//2da Cabecera normal (<td>)\n\t\t\t\t\t\t$txt .= '<td>';\n\t\t\t\t\t\t\t$txt .= '<input type=\"text\" name=\"nom_tpdoc\" maxlength=\"50\" value=\"';\n\t\t\t\t\t\tif ($id_tpdoc)\n\t\t\t\t\t\t$txt .= $result1[0][\"nom_tpdoc\"];\n\t\t\t\t\t\t$txt .= '\"/>';\n\t\t\t\t\t\t$txt .= '</td>';\n\t\t\t\t\t//2da Fila Cierre\n\t\t\t\t\t$txt .= '</tr>';\n\n\t\t\t\t\t//3ra Filas (<tr>)\n\t\t\t\t\t$txt .= '<tr>';\n\t\t\t\t\t\t//1ra Cabeceras Negrita (<th>)\n\t\t\t\t\t\t$txt .= '<th align=\"left\">';\n\t\t\t\t\t\t\t$txt .= 'extencion:';\n\t\t\t\t\t\t$txt .= '</th>';\n\t\t\t\t\t\t//2da Cabecera normal (<td>)\n\t\t\t\t\t\t$txt .= '<td>';\n\t\t\t\t\t\t\t$txt .= '<input type=\"text\" name=\"extencion\" maxlength=\"50\" value=\"';\n\t\t\t\t\t\tif ($id_tpdoc)\n\t\t\t\t\t\t$txt .= $result1[0][\"extencion\"];\n\t\t\t\t\t\t$txt .= '\"/>';\n\t\t\t\t\t\t$txt .= '</td>';\n\t\t\t\t\t//3ra Fila Cierre\n\t\t\t\t\t$txt .= '</tr>';\t\t\t\n\t\t\t\t\t//Insertamos el Boton Centrado\n\t\t\t\t\t$txt .= '<tr>';\n\t\t\t\t\t$txt .= '<th colspan=\"2\" style=\"text-align: center;\">';\n\t\t\t\t\t\t$txt .= '<input type=\"submit\" name=\"operacion\" value=\"';\n\t\t\t\t\t\tif ($id_tpdoc)\n\t\t\t\t\t\t\t$txt .= 'Actualizar';\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$txt .= 'Insertar';\n\t\t\t\t\t$txt .= '\" />';\n\t\t\t\t\t//Cierre Boton\n\t\t\t\t\t$txt .= '</tr>';\n\t\t\t\t//Cierre Tabla\t\n\t\t\t\t$txt .= '</table>';\n\t\t\t//Cierre Formulario\t\n\t\t\t$txt .= '</form>';\n\t\t//Cierre Etiqueta DIV\t\n\t\t$txt .= '</div>';\n\t\t//Imprimimos el Formulario(Vista)\n\t\techo $txt;\n\t}", "public function cs_generate_form() {\n global $post;\n }", "abstract function setupform();", "function crea_form_input3($arcampi,$arcampi2,$arcampi3,$script,$bottone_submit =\"salva\",$intestazione=\"Inserimento nuovo record\",$arcampi4=\"\")\n{\n?>\n <head>\n<?\n include(\"config.php\");\n echo \"<link rel=stylesheet type=text/css href=\\\"$fogliostile\\\">\";\n?>\n <script language=javascript>\n function cambia_sfondo(el,focus_o_blur)\n {\n if (focus_o_blur == 1)\n {\n el.style.fontfamily = \"Arial\";\n el.style.background=\"#99ccff\";\n \n }\n else\n {\n el.style.fontfamily = \"Arial\";\n el.style.background=\"#f0f0f0\";\n \n }\n }\n </script>\n </head>\n <?\n echo \"<h3 align=center>$intestazione</h3>\";\n form_crea_multipart(\"datainput\",1,$script);\n\n echo \"<table id=dataentry bgcolor=#daab59 align=center>\";\n $primavoceselect = true;\n while(list($key,$value) = each($arcampi))\n {\n if ($arcampi2[$key] == \"select\")\n {\n \t echo \"<tr><td><b>\" . (($arcampi4 == \"\") ? \"$key:\" : $arcampi4[$key]) . \"</b></td><td><select name=$key onfocus=\\\"cambia_sfondo(this,1)\\\" onblur=\\\"cambia_sfondo(this,2)\\\">\";\n\t for($i = 0;$i < count($arcampi[$key]);$i++)\n\t if ($primavoceselect == true)\n\t {\n\t echo \"<option selected>\" . $arcampi[$key][$i] . \"</option>\";\n\t\t $primavoceselect = false;\n\t\t}\n\t else echo \"<option>\" . $arcampi[$key][$i] . \"</option>\";\n\t echo \"</select></td></tr>\";\n }\n if ($arcampi2[$key] == \"textarea\")\n {\n\t\techo \"<tr><td><b>\" . (($arcampi4 == \"\") ? \"$key:\" : $arcampi4[$key]) . \"</b></td><td><textarea name=$key rows=4 cols=65 onfocus=\\\"cambia_sfondo(this,1)\\\" onblur=\\\"cambia_sfondo(this,2)\\\">$arcampi[$key]\";\n\t\techo \"</textarea></td></tr>\";\n\t}\n\tif (($arcampi2[$key] == \"hidden\"))\n\t echo \"<tr><td><b>&nbsp;</b></td><td><input type=$arcampi2[$key] name=$key size=$arcampi3[$key] maxlength=$arcampi3[$key] onfocus=\\\"cambia_sfondo(this,1)\\\" onblur=\\\"cambia_sfondo(this,2)\\\" value=\\\"$arcampi[$key]\\\"></td></tr>\";\n\tif (($arcampi2[$key] != \"textarea\") & ($arcampi2[$key] != \"select\") & ($arcampi2[$key] !=\"hidden\"))\n\t echo \"<tr><td><b>\" . (($arcampi4 == \"\") ? \"$key:\" : $arcampi4[$key]) . \"</b></td><td><input type=$arcampi2[$key] name=$key size=$arcampi3[$key] maxlength=$arcampi3[$key] onfocus=\\\"cambia_sfondo(this,1)\\\" onblur=\\\"cambia_sfondo(this,2)\\\" value=\\\"$arcampi[$key]\\\"></td></tr>\";\n\n }\n echo \"<tr><td colspan=2 align=center>\";\n form_invia($bottone_submit,$bottone_submit);\n echo \"</td></tr>\";\n echo \"</table>\";\n form_chiudi();\t\n}", "public function getForm();", "function formidablepaiement_formulaire_fond($flux){\n\n\tif ($flux['args']['form']=='formidable'\n\t AND $id = $flux['args']['args'][0]\n\t AND $flux['args']['je_suis_poste']){\n\n\t\tinclude_spip('inc/securiser_action');\n\t\t$id = md5(@getmypid() . secret_du_site());\n\t\tif (isset($GLOBALS['formidable_post_'.$id])\n\t\t AND $form = $GLOBALS['formidable_post_'.$id]){\n\t\t\t$flux['data'] .=\n\t\t\t\t\"<div class='formulaire_spip formulaire_paiement'>\"\n\t\t\t\t. $form\n\t\t\t\t. \"</div>\";\n\n\t\t\t$css = find_in_path(\"css/formidablepaiement.css\");\n\t\t\t$flux['data'] .= \"<style type='text/css'>@import url('\".$css.\"');</style>\";\n\t\t}\n\t}\n\treturn $flux;\n}", "function recherche_form($form, &$form_state, $args) {\n $form['f'] = array(\n '#type' => 'fieldset',\n '#title' => t('Recherche tous azimuts'),\n '#attributes' => array('class' => array('sessions','recherchestage', 'collapsible', 'collapsed')),\n );\n\n $form['f']['comodu'] = array(\n '#type' => 'textfield',\n '#title' => t('Rechercher un STAGE'),\n '#description' => t('Saisissez quelques lettres du titre (ou chiffres du numéro) pour rechercher un stage'),\n '#autocomplete_path' => 'autocomp/stage',\n '#element_validate' => array('element_validate_integer_positive'),\n '#prefix' => '<div class=\"ajaxform inline\">',\n '#suffix' => '</div>',\n '#size' => 80, \n );\n $form['f']['submit'] = array(\n '#type' => 'submit',\n '#value' => 'Envoyer,',\n '#submit' => array('recherche_stage_form_submit'),\n );\n\n $form['f']['coresp'] = array(\n '#type' => 'textfield',\n '#title' => t('Rechercher un FORMATEUR'),\n '#description' => t('Saisissez quelques lettres du nom pour rechercher un formateur'),\n '#autocomplete_path' => 'autocomp/formateur2',\n '#element_validate' => array('element_validate_integer_positive'),\n '#prefix' => '<div class=\"ajaxform inline\">',\n '#suffix' => '</div>',\n '#size' => 80, \n );\n $form['f']['submit2'] = array(\n '#type' => 'submit',\n '#value' => 'Envoyer.',\n '#submit' => array('recherche_formateur_form_submit'),\n );\n\n if (user_access('gest_etablissements gaiabb')) {\n $etab_add_icon = array(\n 'path' => drupal_get_path('module', 'gaiabb') . '/images/building_add.png',\n 'alt' => 'etab_add',\n 'title' => t('Ajouter un établissement manquant.'),\n 'attributes' => array('class' => 'some-img', 'id' => 'my-img'));\n $form['f']['lieu'] = array(\n '#markup' => t('<p>Ajouter un lieu&nbsp;').l(theme('image',$etab_add_icon),'etablissement/',\n array('attributes' => array('class' => 'anchor-class'), 'html' => TRUE)) . '</p>',\n );\n };\n return $form;\n}", "function definition_after_data($newmsform) {\n $mform = $newmsform->_form;\n\t\t\n if ($mform->isSubmitted()) {\n $someelem = $mform->getElement('salt');\n $value = $someelem->getValue();\n\t\t\techo $value & 'Hello world';\n // Do whatever checking you need\n //$someelem->setValue($someothervalue);\n // etc.\n // add some new elements...\n }\n\t\n\t}", "private function klantWijzigenAction()\n {\n //controlleert of er een formulier is ingevuld\n if (isset($_POST) && !empty($_POST))\n {\n //controleer of de juiste gegevens zijn ingevuld die je minimaal moet hebben voor de database\n if (isset($_POST['voornaam']) && !empty($_POST['voornaam']) &&\n isset($_POST['achternaam']) && !empty($_POST['achternaam']))\n {\n $this->model->wijzigKlant();\n //stuurt je terug naar de klantpagina\n $this->model->foutGoedMelding('success', '<strong>Gelukt!</strong> klant is gewijzigd. <span class=\"glyphicon glyphicon-saved\"></span>');\n $this->model->setLog('Klant wijzigen', 'Gelukt');\n $this->forward('klant', 'admin');\n }\n } else\n {\n $klant = $this->model->geefKlant();\n $this->view->set('klant', $klant);\n }\n }", "public function onPreSubmit(FormEvent $event)\n {\n \n \n // ini form y data\n $form = $event->getForm();\n $data = $event->getData();\n \n //\n // data\n // \n \n // efector \n $id_efector = $data['efectores'];\n\n // id_servicio_sala\n $id_servicio_sala = $data['servicios_salas'];\n \n // id_cama\n $id_cama = $data['camas'];\n \n \n // servicios salas\n $servicios_salas = null === $id_efector ? array() : \n RI::$doctrine->getRepository\n (RIUtiles::DB_BUNDLE.':ServiciosSalas')\n ->findByIdEfector($id_efector);\n \n\n $form->add(\n 'servicios_salas', \n EntityType::class, \n array(\n 'class' => RIUtiles::DB_BUNDLE.':ServiciosSalas',\n 'placeholder' => '',\n 'choices' => $servicios_salas,\n 'label' => 'Servicio:',\n 'required' => false,\n 'group_by' => function($servicio_sala, $key, $index) {\n\n return ($servicio_sala->getIdSala()->getNombre());\n }\n )\n );\n \n \n \n // POST id_servicio_sala\n if ($id_servicio_sala == ''){\n \n \n $camas = array();\n \n \n \n }else{\n \n $sala = RI::$doctrine->getRepository\n (RIUtiles::DB_BUNDLE.':Salas')\n ->findByIdServicioSala($id_servicio_sala);\n \n // sala\n $form->add(\n 'sala', \n TextType::class, \n array(\n 'label' => 'Sala:',\n 'disabled' => true,\n 'data' => $sala->getNombre(),\n 'required' => false\n )\n );\n \n // carga camas\n $camas = \n RI::$doctrine->getRepository\n (RIUtiles::DB_BUNDLE.':Camas')\n ->findByIdSala($sala->getIdSala());\n \n \n }\n \n // POST id_cama\n if ($id_cama!=''){\n \n $habitacion = \n RI::$doctrine->getRepository\n (RIUtiles::DB_BUNDLE.':Habitaciones')\n ->findByIdCama($id_cama);\n $form->add(\n 'habitacion', \n TextType::class, \n array(\n 'label' => 'Habitación:',\n 'disabled' => true,\n 'data' => $habitacion->getNombre(),\n 'required' => false\n )\n );\n }\n \n // refresh camas\n $form->add(\n 'camas', \n EntityType::class, \n array(\n 'class' => RIUtiles::DB_BUNDLE.':Camas',\n 'placeholder' => '',\n 'choices' => $camas,\n 'label' => 'Cama:',\n 'required' => false,\n 'group_by' => function($cama, $key, $index) {\n\n return ($cama->getIdHabitacion()->getNombre());\n }\n )\n );\n \n \n \n }", "abstract public function getForm() : void;", "function form_content()\r\n {\r\n $table = html_table($this->_width,0,4) ;\r\n $table->set_style(\"border: 0px solid\") ;\r\n\r\n $msg = html_div(\"ft_form_msg\") ;\r\n $msg->add(html_p(html_b(\"Processing the SDIF Queue requires\r\n processing swimmers, swim meets, and/or swim teams which are\r\n not currently stored in the database. Specify how unknown\r\n data should be processed.\"), html_br())) ;\r\n\r\n $td = html_td(null, null, $msg) ;\r\n $td->set_tag_attribute(\"colspan\", \"2\") ;\r\n $table->add_row($td) ;\r\n $table->add_row($this->element_label(\"Swimmers\"), $this->element_form(\"Swimmers\")) ;\r\n $table->add_row($this->element_label(\"Swim Meets\"), $this->element_form(\"Swim Meets\")) ;\r\n $table->add_row($this->element_label(\"Swim Teams\"), $this->element_form(\"Swim Teams\")) ;\r\n\r\n $this->add_form_block(null, $table) ;\r\n }", "function crea_form_input2($arcampi,$arcampi2,$arcampi3,$script,$bottone_submit =\"salva\",$intestazione=\"Inserimento nuovo record\",$arcampi4=\"\")\n{\n?>\n <head>\n<?\n include(\"config.php\");\n echo \"<link rel=stylesheet type=text/css href=\\\"$fogliostile\\\">\";\n?>\n <script language=javascript>\n function cambia_sfondo(el,focus_o_blur)\n {\n if (focus_o_blur == 1)\n {\n el.style.fontfamily = \"Arial\";\n el.style.background=\"#99ccff\";\n \n }\n else\n {\n el.style.fontfamily = \"Arial\";\n el.style.background=\"#f0f0f0\";\n \n }\n }\n </script>\n </head>\n <?\n echo \"<h3 align=center>$intestazione</h3>\";\n form_crea(\"datainput\",1,$script);\n echo \"<table id=dataentry bgcolor=#daab59 align=center>\";\n $primavoceselect = true;\n while(list($key,$value) = each($arcampi))\n {\n if ($arcampi2[$key] == \"select\")\n {\n \t echo \"<tr><td><b>\" . (($arcampi4 == \"\") ? \"$key:\" : $arcampi4[$key]) . \"</b></td><td><select name=$key onfocus=\\\"cambia_sfondo(this,1)\\\" onblur=\\\"cambia_sfondo(this,2)\\\">\";\n\t for($i = 0;$i < count($arcampi[$key]);$i++)\n\t if ($primavoceselect == true)\n\t {\n\t echo \"<option selected>\" . $arcampi[$key][$i] . \"</option>\";\n\t\t $primavoceselect = false;\n\t\t}\n\t else echo \"<option>\" . $arcampi[$key][$i] . \"</option>\";\n\t echo \"</select></td></tr>\";\n }\n if ($arcampi2[$key] == \"textarea\")\n {\n\t\techo \"<tr><td><b>\" . (($arcampi4 == \"\") ? \"$key:\" : $arcampi4[$key]) . \"</b></td><td><textarea name=$key rows=4 cols=65 onfocus=\\\"cambia_sfondo(this,1)\\\" onblur=\\\"cambia_sfondo(this,2)\\\">$arcampi[$key]\";\n\t\techo \"</textarea></td></tr>\";\n\t}\n\tif (($arcampi2[$key] == \"hidden\"))\n\t echo \"<tr><td><b>&nbsp;</b></td><td><input type=$arcampi2[$key] name=$key size=$arcampi3[$key] maxlength=$arcampi3[$key] onfocus=\\\"cambia_sfondo(this,1)\\\" onblur=\\\"cambia_sfondo(this,2)\\\" value=\\\"$arcampi[$key]\\\"></td></tr>\";\n\tif (($arcampi2[$key] != \"textarea\") & ($arcampi2[$key] != \"select\") & ($arcampi2[$key] !=\"hidden\"))\n\t echo \"<tr><td><b>\" . (($arcampi4 == \"\") ? \"$key:\" : $arcampi4[$key]) . \"</b></td><td><input type=$arcampi2[$key] name=$key size=$arcampi3[$key] maxlength=$arcampi3[$key] onfocus=\\\"cambia_sfondo(this,1)\\\" onblur=\\\"cambia_sfondo(this,2)\\\" value=\\\"$arcampi[$key]\\\"></td></tr>\";\n\n }\n echo \"<tr><td colspan=2 align=center>\";\n form_invia($bottone_submit,$bottone_submit);\n echo \"</td></tr>\";\n echo \"</table>\";\n form_chiudi();\t\n}", "function mostrarFormulario($tipo){\n $cod_proyecto = $this->proyecto[0][0]; \n $nom_proyecto = $this->proyecto[0][1]; \n $indice=$this->configuracion[\"host\"].$this->configuracion[\"site\"].\"/index.php?\";\n $ruta=\"pagina=admin_homologacionTransferenciaInterna\";\n $ruta.=\"&opcion=realizarHomologacionTransferenciaInterna\";\n $ruta.=\"&cod_proyecto=\".$cod_proyecto;\n \n\n ?>\n <script src=\"<? echo $this->configuracion[\"host\"]. $this->configuracion[\"site\"]. $this->configuracion[\"javascript\"] ?>/funciones.js\" type=\"text/javascript\" language=\"javascript\"></script>\n <form enctype='tipo:multipart/form-data,application/x-www-form-urlencoded,text/plain' method='POST' action='index.php' name='<? echo $this->formulario ?>'>\n \n <div align=\"center\" ><b><?echo \"HOMOLOGACIONES POR TRANSFERENCIA INTERNA - \".$cod_proyecto.\" \".$nom_proyecto; ?></b></div><hr>\n <table>\n <tr id=\"fila\" >\n <td class=\"sigma centrar\" colspan=\"6\" width=\"100%\">Seleccione el n&uacute;mero de estudiantes:\n <select id=\"filas\" name=\"filas\" onchange=\"removeLastRow(),nuevaFila(document.getElementById('filas').value-1,<?echo $_REQUEST['cod_proyecto']?>)\">\n <?$opciones=1?>\n <option selected class=\"boton\" value=\"1\" onClick=\"removeLastRow(),nuevaFila(0,<?echo $_REQUEST['cod_proyecto']?>)\">1</option>\n <?for($opciones=5;$opciones<=50;$opciones+=5){?>\n <option id=\"<?echo $opciones-1?>\" class=\"boton\" value=\"<?echo $opciones?>\"><?echo $opciones?></option>\n <?}?>\n </select>&nbsp;&nbsp;\n <?//opciones para agregar 1 estudiante y opcion para borrar todas las filas?>\n <input type=\"button\" value=\"Adicionar filas\" onClick=\"nuevaFila(1,<?echo $_REQUEST['cod_proyecto']?>)\" alt=\"Adicionar\">\n <input type=\"button\" value=\"Reiniciar filas\" onClick=\"removeLastRow()\" alt=\"Remover\">\n <input type=\"button\" value=\"Borrar fila\" onClick=\"removeLastestRow()\" alt=\"Remover\">\n </td>\n </tr></table>\n <table id=\"tabla\" class=\"contenidotabla\" width=\"100%\">\n \n <?//opciones para agregar 5,10,15...50 estudiantes?>\n\n <thead class='sigma'>\n <th class='niveles centrar' > Código Actual</th>\n <th class='niveles centrar' > Estudiante</th>\n <th class='niveles centrar' > Código Proyecto Curricular Anterior</th>\n <th class='niveles centrar' > Proyecto Curricular Anterior</th>\n </thead>\n <tr >\n <td width=\"13%\" class='cuadro_plano centrar'>\n 1 <input type=\"text\" id=\"codEstudiante0\" name=\"codEstudiante[0]\" size=\"11\" onKeyPress=\"return solo_numero(event)\" onBlur=\"xajax_nombreEstudiante(document.getElementById('codEstudiante0').value,0,<? echo $cod_proyecto;?>)\">\n <input type=\"hidden\" name=\"opcion\" value=\"registrar\">\n <input type=\"hidden\" name=\"action\" value=\"<? echo $this->formulario ?>\">\n <input type=\"hidden\" name=\"tipo_homologacion\" value=\"estudiantes\">\n <input type=\"hidden\" name=\"cod_proyecto\" value=\"<? echo $cod_proyecto; ?>\">\n </td>\n <td width=\"20%\" class='cuadro_plano centrar'>\n <div id=\"div_nombreEstudiante0\" ></div>\n </td>\n <td width=\"17%\" class='cuadro_plano centrar'>\n <input type=\"text\" id=\"codProyectoAnt0\" name=\"codProyectoAnt[0]\" size=\"11\" maxlength='3' onKeyPress=\"return solo_numero(event)\" onBlur=\"xajax_nombreProyecto(document.getElementById('codProyectoAnt0').value,0)\">\n </td>\n \n </td>\n <td width=\"30%\" class='cuadro_plano centrar'>\n <div id=\"div_proyectoAnt0\" ></div>\n </td>\n\n </tr>\n </table>\n <table width=\"100%\">\n <tr>\n <td align=\"center\">\n <input type=\"button\" value=\"Registrar\" onclick=\"if(verificarFormulario(<?echo $this->formulario?>)){document.forms['<? echo $this->formulario?>'].submit()}else{false}\">\n </td>\n </tr>\n </table>\n </form>\n<?\n \n }", "private function wachtwoordWijzigenAction()\n {\n //controlleert of er een formulier is ingevuld\n if (isset($_POST) && !empty($_POST))\n {\n //krijgt opmerkingen terug\n $opmerking = $this->model->wijzigWachtwoord();\n $this->model->foutGoedMelding('success', '<strong>Gelukt!</strong> wachtwoord is gewijzigd. <span class=\"glyphicon glyphicon-saved\"></span>');\n $this->model->setLog('Wachtwoord wijzigen', 1);\n $this->view->set('opmerking', $opmerking);\n }\n }", "function update_surat_keputusan_pemutih_penyalur_form() {\n//\t\tif (! $this->get_permission('fill_this')) return $this->intruder();\n\t\tglobal ${$GLOBALS['session_vars']}, ${$GLOBALS['get_vars']};\n\t\t$field_arr = surat_keputusan_pemutih_penyalur::get_field_set();\n\n\t\t$optional_arr = $this->optional_arr;\n\t\t$optional_arr['id_surat_keputusan_pemutih_penyalur'] = 'protect';\n\t\t$record = array (\n\t\t\t'id_surat_keputusan_pemutih_penyalur' => ${$GLOBALS['get_vars']}['id_surat_keputusan_pemutih_penyalur']\n\t\t);\n\t\t$result = surat_keputusan_pemutih_penyalur::get($record);\n\t\t$value_arr = $result[0];\n\t\t$label_arr = $this->surat_keputusan_pemutih_penyalur_label;\n\n\t\teval($this->save_config);\n\t\t$this->id_cek_pemutih_form($config);\n\t\t\n\t\t$optional_arr['keputusan_pemutih_penyalur'] = 'user_defined';\n\t\t$value_arr['keputusan_pemutih_penyalur']= '<textarea rows=\"100\" cols=\"75\" name=\"keputusan_pemutih_penyalur\" class=\"text\">'.$value_arr['keputusan_pemutih_penyalur'].'</textarea>';\n//\t\t$label_arr['submit_val'] = 'Submit';\n\t\t$label_arr['form_extra'] = '<input type=hidden name=action value=postedit>'; // default null\n\t\t$label_arr['form_title'] = ('Update Surat Keputusan Pemutihan Izin Penyalur Form'); // default null\n\t\t$label_arr['form_width'] = '100%'; // default 100%\n\t\t$label_arr['form_name'] = 'theform'; // default form\n\n\t\t$_form = new form();\n\n\t\t$_form->set_config(\n\t\t\tarray (\n\t\t\t\t'field_arr'\t\t=> $field_arr,\n\t\t\t\t'optional_arr'\t=> $optional_arr,\n\t\t\t\t'value_arr'\t\t=> $value_arr,\n\t\t\t\t'label_arr'\t\t=> $label_arr\n\t\t\t)\n\t\t);\n\t\treturn $_form->parse_field();\n\t}", "function mostrarFormulario(){\n\n echo \"<br><br>\";\n echo \"<h2>FORMULARIO PARA ALUMNOS</h2>\"; \n?>\n\n <form method=\"post\" action=\"<?php echo htmlspecialchars($_SERVER[\"PHP_SELF\"]);?>\">\n Matricula: <input type=\"text\" name=\"matricula\" value=\"<?php echo $this->matricula;?>\">\n <br><br>\n Nombre: <input type=\"text\" name=\"nombree\" value=\"<?php echo $this->nombre;?>\">\n <br><br>\n Carrera: <input type=\"text\" name=\"carreraa\" value=\"<?php echo $this->carrera;?>\">\n <br><br>\n <span class=\"error\">* <?php echo $this->nameErr;?></span>\n <br><br>\n E-mail: <input type=\"text\" name=\"email\" value=\"<?php echo $this->email;?>\">\n <span class=\"error\">* <?php echo $this->emailErr;?></span>\n <br><br>\n Telefono: <input type=\"tel\" name=\"telefonoo\"value=\"<?php echo $this->telefono;?>\">\n <br><br>\n <input type=\"submit\" name=\"submitt\" value=\"Submit\">\n </form>\n\n<?php\n }", "abstract function getForm();", "public function listforms()\n {\n\t\t\n }", "public function displayPageAddForm(){\n\n // Vérifie les données de champs dupliqués\n $this->handleDuplicateFields();\n\n // Vérifie les données post envoyées\n $this->handleAdd();\n\n // If there ia a modify var\n if(isset($_GET['modify']) && !empty($_GET['modify'])){\n\n $form = get_post($_GET['modify']);\n if($this->isForm($_GET['modify'])){\n\n $formMetas = get_post_meta($_GET['modify']);\n $formArgs = get_post_meta($_GET['modify'],'form-args');\n $formFields = get_post_meta($_GET['modify'],'form-fields');\n $submitArgs = get_post_meta($_GET['modify'],'form-submit-args');\n $formSendArgs = get_post_meta($_GET['modify'],'form-send-args');\n }else\n unset($form);\n\n }\n require_once __DIR__ . '/templates/add.php';\n\n }", "function presentInputForm($id, $matr, $cargo, $agrup, $eaf, $ecom, $epp, $n_ref, $ref, $tipo, $obs,$ano, $fcnLetter)\n {\n global $BD3;\n global $BD1;\n global $ANO_REF;\n switch ($fcnLetter)\n {\n case \"E\":\n case \"A\":\n break;\n default: \n print \"<p><h1>Letra de funcao ilegal ($fcnLetter) in presentInputForm()<p>\\n\";\n print \"<p><a href=\\\"cadastra.php\\\">Volte para selecionar </a>\";\nreturn;\n break;\n }\n\n echo \"<font class=corpo><b>Cadastramento</b></font> <br><br>\";\n print \"<form action=\\\"cadastra.php\\\" method=\\\"POST\\\">\\n\";\n\n $res_sql_nome= sql($BD1,\"select $BD1.empregados.nome from $BD1.empregados where $BD1.empregados.matr='$matr'\");\n $res_nome= mysql_result($res_sql_nome,0,\"nome\");\n\n switch ($fcnLetter)\n {\n case \"E\": //don't allow editing of key value\n echo \" $id\\n\";\n echo \" - \";\n echo \" $res_nome\\n\";\n\n $rec_nome=sql($BD1,\"SELECT matr,nome \n FROM empregados\n WHERE empregados.tipo='e'\n AND empregados.situacao='a'\n ORDER BY nome;\");\n\n print \"<input type=\\\"hidden\\\" name=\\\"HILid\\\" value=\\\"$id\\\">\\n<br>\";\n print \"<input type=\\\"hidden\\\" name=\\\"TImatr\\\" value=\\\"$matr:::$res_nome\\\">\\n<br>\";\n break;\n case \"A\":\n $rec_nome=sql($BD1,\"SELECT $BD1.empregados.matr, $BD1.empregados.nome\n FROM $BD1.empregados\n WHERE $BD1.empregados.tipo = 'e'\n AND $BD1.empregados.situacao = 'a'\n AND $BD1.empregados.matr NOT IN ( SELECT matr FROM $BD3.final WHERE ano=$ANO_REF)\n ORDER BY $BD1.empregados.nome;\");\n\n echo \"<br>Matricula: \";\n break;\n }\n \n if ($fcnLetter ==\"A\")\n {\n echo \"<SELECT NAME=\\\"TImatr\\\">\\n\";\n while ($lista4=mysql_fetch_row($rec_nome))\n {\n if ($lista4[0]== $matr)\n {\n echo \"<OPTION SELECTED>\";\n echo \"$lista4[0]\".\":::\".\"$lista4[1]\";\n }\n else\n {\n echo \"<OPTION>\";\n echo \"$lista4[0]\".\":::\".\"$lista4[1]\";\n }\n }\n echo \"</SELECT>\\n\";\n }\n echo \"<br>\";\n echo \"<br><i>Atencao:Utilize pontos nas casas decimais</i>\";\n echo \"<br>\";\n print \"<br>EAF: \";\n print \"<input type=\\\"text\\\" name=\\\"TIeaf\\\" value=\\\"$eaf\\\" size=10 maxlength=10>\\n<br>\";\n\n print \"<br>ECOM: \";\n print \"<input type=\\\"text\\\" name=\\\"TIecom\\\" value=\\\"$ecom\\\" size=10 maxlength=10>\\n<br>\";\n\n print \"<br>EPP: \";\n print \"<input type=\\\"text\\\" name=\\\"TIepp\\\" value=\\\"$epp\\\" size=10 maxlength=10>\\n<br>\";\n/*\n print \"<br>Classificacao no agrupamento: \";\n print \"<input type=\\\"text\\\" name=\\\"TIclass\\\" value=\\\"$class\\\" size=2 maxlength=2>\\n<br>\";\n*/\n\n print \"<br>Numero de Referencias : \";\n print \"<input type=\\\"text\\\" name=\\\"TIn_ref\\\" value=\\\"$n_ref\\\" size=2 maxlength=2>\\n<br>\";\n\n print \"<br>Nova referencia: \";\n print \"<input type=\\\"text\\\" name=\\\"TIref\\\" value=\\\"$ref\\\" size=5 maxlength=5>\\n<br>\";\n\n# print \"<br>Tipo (e-elegivel n-Nao elegivel): \";\n# print \"<input type=\\\"text\\\" name=\\\"TItipo\\\" value=\\\"$tipo\\\" size=2 maxlength=2>\\n<br>\";\n\n echo \"<br>\";\n echo \"<br>\";\n echo \"<INPUT TYPE=RADIO NAME=\\\"TItipo\\\" VALUE=\\\"e\\\"\";\n if ($tipo==\"e\")\n {\n echo \" checked>Elegivel\";\n }\n else\n {\n echo \" >Elegivel\";\n }\n echo \"<INPUT TYPE=RADIO NAME=\\\"TItipo\\\" VALUE=\\\"n\\\"\";\n if ($tipo==\"t\")\n {\n echo \" checked>Nao elegivel\";\n }\n else\n {\n echo \" >Nao elegivel\";\n }\n\n echo \"<br>\";\n echo \"<br>\";\n\n print \"<br>Observacaoes: \";\n print \"<input type=\\\"text\\\" name=\\\"TIobs\\\" value=\\\"$obs\\\" size=50 maxlength=200>\\n<br>\";\n print \"<input type=\\\"HIDDEN\\\" name=\\\"TIano\\\" value=\\\"$ANO_REF\\\">\\n<br>\";\n\n\n //**** PLACE FUNCTION LETTER IN BUTTON NAMES TO CONVEY STATE ****\n print \" <p><input type=\\\"submit\\\" name=\\\"B\" . $fcnLetter;\n print \"Submit\\\" value=\\\"Submit\\\">\\n\";\n print \"&nbsp;&nbsp;\\n\";\n\n print \"<input type=\\\"submit\\\" name=\\\"B\" . $fcnLetter;\n print \"Cancel\\\" value=\\\"Cancel\\\">\\n\";\n print \"</form>\\n\";\n\n }", "public function form()\n {\n $this->setData();\n }", "function render(){\n\t\tinclude 'Header.php';\n?>\n<h2 style=\"color:white;\">Añadir partido:</h2>\n\t\t\t\t<div style=\"overflow-x:auto;color:white;\">\n\t\t\t\t\t<form name=\"anadirPARTIDO\" id=\"anadirCategoria\" action=\"./PARTIDOS_Controller.php?action=ADD\" method=\"POST\" enctype=\"multipart/form-data\" onsubmit=\"return encriptar()\">\n\t\t\t\t\t\t <table>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>Fecha:</td>\n\t\t\t\t\t\t\t\t<td><input class=\"form-est\" type=\"date\" id=\"fecha\" name=\"fecha\" placeholder=\"01/01/2018\" required></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td>Pista:</td>\n\t\t\t\t\t\t\t\t<td><select class=\"form-est\" id=\"pista\" name=\"pista\">\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\tfor($j=0;$j<count($this->pistas);$j++){\n\t\t\t\t\t\t\t\t\t\techo \"<option value=\".$this->pistas[$j][\"nombre\"].\" >\".$this->pistas[$j][\"nombre\"].\"</option>\";\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t</select></td>\n\t\t\t\t\t\t\t</tr>\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td colspan=\"2\" align=\"center\"><input class=\"form-est\" type=\"submit\" id=\"insertar\" name=\"insertar\" value=\"Insertar\" ></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t </table>\n\t\t\t\t\t\t <p><a href=\"<?php echo $this->volver; ?>\"><img src=\"../Views/images/atras.png\" title=\"Atrás\" alt=\"Atrás\"></a></p>\n\t\t\t\t\t</form>\n\t\t\t\t</div>\n\n\n<?php\t\t\n\tinclude 'Footer.php';\n\t}", "function show_form()\n\t{\n\t\t//-----------------------------------------\n\t\t// INIT\n\t\t//-----------------------------------------\n\n\t\t$raw_post = \"\";\n\t\t\n\t\t//-----------------------------------------\n\t\t// Unconvert the saved post if required\n\t\t//-----------------------------------------\n\t\t\n\t\tif ( ! isset($_POST['Post']) )\n\t\t{\n\t\t\t//-----------------------------------------\n\t\t\t// If we're using RTE, then just clean up html\n\t\t\t//-----------------------------------------\n\t\t\t\n\t\t\tif ( $this->han_editor->method == 'rte' )\n\t\t\t{\n\t\t\t\t$raw_post = $this->parser->convert_ipb_html_to_html( $this->orig_post['post'] );\n\n\t\t\t\tif( intval($this->orig_post['post_htmlstate']) AND $this->forum['use_html'] AND $this->ipsclass->member['g_dohtml'] )\n\t\t\t\t{\n\t\t\t\t\t# Make EMO_DIR safe so the ^> regex works\n\t\t\t\t\t$raw_post = str_replace( \"<#EMO_DIR#>\", \"&lt;#EMO_DIR&gt;\", $raw_post );\n\t\t\t\t\t\n\t\t\t\t\t# New emo\n\t\t\t\t\t$raw_post = preg_replace( \"#(\\s)?<([^>]+?)emoid=\\\"(.+?)\\\"([^>]*?)\".\">(\\s)?#is\", \"\\\\1\\\\3\\\\5\", $raw_post );\n\t\t\t\t\t\n\t\t\t\t\t# And convert it back again...\n\t\t\t\t\t$raw_post = str_replace( \"&lt;#EMO_DIR&gt;\", \"<#EMO_DIR#>\", $raw_post );\n\n\t\t\t\t\t$raw_post = $this->parser->convert_std_to_rte( $raw_post );\n\t\t\t\t}\n\n\t\t\t\tif( isset($this->orig_post['post_htmlstate']) AND $this->orig_post['post_htmlstate'] == 2 )\n\t\t\t\t{\n\t\t\t\t\t$raw_post = str_replace( '&lt;br&gt;', \"<br />\", $raw_post );\n\t\t\t\t\t$raw_post = str_replace( '&lt;br /&gt;', \"<br />\", $raw_post );\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->orig_post['post_htmlstate'] = isset($this->orig_post['post_htmlstate']) ? $this->orig_post['post_htmlstate'] : 0;\n\t\t\t\t$this->parser->parse_html = intval($this->orig_post['post_htmlstate']) AND $this->forum['use_html'] AND $this->ipsclass->member['g_dohtml'] ? 1 : 0;\n\t\t\t\t$this->parser->parse_nl2br = (isset($this->orig_post['post_htmlstate']) AND $this->orig_post['post_htmlstate'] == 2) ? 1 : 0;\n\t\t\t\t$this->parser->parse_smilies = intval($this->orig_post['use_emo']);\n\t\t\t\t$this->parser->parse_bbcode = $this->forum['use_ibc'];\n\n\t\t\t\tif( $this->parser->parse_html )\n\t\t\t\t{\n\t\t\t\t\t# Make EMO_DIR safe so the ^> regex works\n\t\t\t\t\t$this->orig_post['post'] = str_replace( \"<#EMO_DIR#>\", \"&lt;#EMO_DIR&gt;\", $this->orig_post['post'] );\n\t\t\t\t\t\n\t\t\t\t\t# New emo\n\t\t\t\t\t$this->orig_post['post'] = preg_replace( \"#(\\s)?<([^>]+?)emoid=\\\"(.+?)\\\"([^>]*?)\".\">(\\s)?#is\", \"\\\\1\\\\3\\\\5\", $this->orig_post['post'] );\n\t\t\t\t\t\n\t\t\t\t\t# And convert it back again...\n\t\t\t\t\t$this->orig_post['post'] = str_replace( \"&lt;#EMO_DIR&gt;\", \"<#EMO_DIR#>\", $this->orig_post['post'] );\n\t\t\t\t\n\t\t\t\t\t$this->orig_post['post'] = $this->parser->convert_ipb_html_to_html( $this->orig_post['post'] );\n\t\t\t\t\t\n\t\t\t\t\t$this->orig_post['post'] = htmlspecialchars( $this->orig_post['post'] );\n\t\t\t\t\t\n\t\t\t\t\tif( $this->parser->parse_nl2br )\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->orig_post['post'] = str_replace( '&lt;br&gt;', \"\\n\", $this->orig_post['post'] );\n\t\t\t\t\t\t$this->orig_post['post'] = str_replace( '&lt;br /&gt;', \"\\n\", $this->orig_post['post'] );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$raw_post = $this->parser->pre_edit_parse( $this->orig_post['post'] );\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif ( $this->han_editor->method != 'rte' )\n\t\t\t{\n\t\t\t\t$_POST['Post'] = str_replace( '&', '&amp;', $_POST['Post'] );\n\t\t\t}\n\n\t\t\tif ( $this->ipsclass->input['_from'] == 'quickedit' )\n\t\t\t{\n\t\t\t\t$this->orig_post['post_htmlstatus'] = isset($this->orig_post['post_htmlstatus']) ? $this->orig_post['post_htmlstatus'] : 0;\n\t\t\t\t$this->parser->parse_html = intval($this->orig_post['post_htmlstatus']) AND $this->forum['use_html'] AND $this->ipsclass->member['g_dohtml'] ? 1 : 0;\n\t\t\t\t$this->parser->parse_nl2br = (isset($this->ipsclass->input['post_htmlstatus']) AND $this->ipsclass->input['post_htmlstatus'] == 2) ? 1 : 0;\n\t\t\t\t$this->parser->parse_smilies = intval($this->orig_post['use_emo']);\n\t\t\t\t$this->parser->parse_bbcode = $this->forum['use_ibc'];\n\n\t\t\t\tif ( $this->han_editor->method == 'rte' )\n\t\t\t\t{\n\t\t\t\t\t$raw_post = $this->parser->convert_std_to_rte( $this->ipsclass->txt_stripslashes( $_POST['Post'] ) );\n\t\t\t\t\t\n\t\t\t\t\tforeach( $this->ipsclass->skin['_macros'] as $row )\n\t\t\t \t{\n\t\t\t\t\t\tif ( $row['macro_value'] != \"\" )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$raw_post = str_replace( \"<{\".$row['macro_value'].\"}>\", $row['macro_replace'], $raw_post );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$raw_post = str_replace( \"<#IMG_DIR#>\", $this->ipsclass->skin['_imagedir'], $raw_post );\n\t\t\t\t\t$raw_post = str_replace( \"<#EMO_DIR#>\", $this->ipsclass->skin['_emodir'] , $raw_post );\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$raw_post = $this->ipsclass->txt_stripslashes( $_POST['Post'] );\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$raw_post = $this->ipsclass->txt_stripslashes( $_POST['Post'] );\n\t\t\t}\n\t\t}\n\t\t\n\t\t//-----------------------------------------\n\t\t// Is this the first post in the topic?\n\t\t//-----------------------------------------\n\t\t\n\t\t$topic_title = \"\";\n\t\t$topic_desc = \"\";\n\t\t\n\t\tif ( $this->edit_title == 1 )\n\t\t{\n\t\t\t$topic_title = isset($_POST['TopicTitle']) ? $this->ipsclass->input['TopicTitle'] : $this->topic['title'];\n\t\t\t$topic_desc = isset($_POST['TopicDesc']) ? $this->ipsclass->input['TopicDesc'] : $this->topic['description'];\n\t\t\t\n\t\t\t$topic_title = $this->ipsclass->compiled_templates['skin_post']->topictitle_fields( array( 'TITLE' => $topic_title, 'DESC' => $topic_desc ) );\n\t\t}\n\t\t\n\t\t//-----------------------------------------\n\t\t// Do we have any posting errors?\n\t\t//-----------------------------------------\n\t\t\n\t\tif ( isset($this->obj['post_errors']) AND $this->obj['post_errors'] )\n\t\t{\n\t\t\t$this->output .= $this->ipsclass->compiled_templates['skin_post']->errors( $this->ipsclass->lang[ $this->obj['post_errors'] ]);\n\t\t}\n\t\t\n\t\tif ( isset($this->obj['preview_post']) AND $this->obj['preview_post'] )\n\t\t{\n\t\t\t$this->output .= $this->ipsclass->compiled_templates['skin_post']->preview( $this->show_post_preview( $this->post['post'], $this->post_key ) );\n\t\t}\n\t\t\n\t\t$this->output .= $this->html_start_form( array( 1 => array( 'CODE' , '09' ),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t2 => array( 't' , $this->topic['tid']),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t3 => array( 'p' , $this->ipsclass->input['p'] ),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t4 => array( 'st' , $this->ipsclass->input['st'] ),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t5 => array( 'attach_post_key', $this->post_key )\n\t\t\t\t\t\t\t\t\t\t\t ) );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t//-----------------------------------------\n\t\t// START TABLE\n\t\t//-----------------------------------------\n\t\t\n\t\t$this->output .= $this->ipsclass->compiled_templates['skin_post']->table_structure();\n\t\t\n\t\t$start_table = $this->ipsclass->compiled_templates['skin_post']->table_top( \"{$this->ipsclass->lang['top_txt_edit']} {$this->topic['title']}\");\n\t\t\n\t\t$name_fields = $this->html_name_field();\n\t\t\n\t\t$post_box = $this->html_post_body( $raw_post );\n\t\t\t\n\t\t$mod_options = $this->edit_title == 1 ? $this->mod_options('edit') : '';\n\t\t\n\t\t$end_form = $this->ipsclass->compiled_templates['skin_post']->EndForm( $this->ipsclass->lang['submit_edit'] );\n\t\t\n\t\t$post_icons = $this->html_post_icons($this->orig_post['icon_id']);\n\t\t\n\t\t$upload_field = $this->can_upload ? $this->html_build_uploads($this->post_key,'edit',$this->orig_post['pid']) : '';\n\t\t\n\t\t//-----------------------------------------\n\t\t// Still here?\n\t\t//-----------------------------------------\n\t\t\n\t\t$poll_box = \"\";\n\t\t\n\t\tif ( $this->can_add_poll )\n\t\t{\n\t\t\t//-----------------------------------------\n\t\t\t// Did someone hit preview / do we have\n\t\t\t// post info?\n\t\t\t//-----------------------------------------\n\t\t\t\n\t\t\t$poll_questions = \"\";\n\t\t\t$poll_choices = \"\";\n\t\t\t$poll_votes = \"\";\n\t\t\t$show_open = 0;\n\t\t\t$is_mod = 0;\n\t\t\t$poll_only\t\t= \"\";\n\t\t\t$poll_multi\t\t= \"\";\t\t\t\n\t\t\t\n\t\t\tif ( isset($_POST['question']) AND is_array( $_POST['question'] ) and count( $_POST['question'] ) )\n\t\t\t{\n\t\t\t\tforeach( $_POST['question'] as $id => $question )\n\t\t\t\t{\n\t\t\t\t\t$poll_questions .= \"\\t{$id} : '\".str_replace( \"'\", '&#39;', $question ).\"',\\n\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$poll_question = $this->ipsclass->input['poll_question'];\n\t\t\t\t$show_open = 1;\n\t\t\t\t\n\t\t\t\tif ( is_array( $_POST['choice'] ) and count( $_POST['choice'] ) )\n\t\t\t\t{\n\t\t\t\t\tforeach( $_POST['choice'] as $id => $choice )\n\t\t\t\t\t{\n\t\t\t\t\t\t$poll_choices .= \"\\t'{$id}' : '\".str_replace( \"'\", '&#39;', $choice ).\"',\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ( isset($_POST['multi']) AND is_array( $_POST['multi'] ) and count( $_POST['multi'] ) )\n\t\t\t\t{\n\t\t\t\t\tforeach( $_POST['multi'] as $id => $checked )\n\t\t\t\t\t{\n\t\t\t\t\t\t$poll_multi .= \"\\t{$id} : '{$checked}',\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ( is_array( $_POST['votes'] ) and count( $_POST['votes'] ) )\n\t\t\t\t{\n\t\t\t\t\tforeach( $_POST['votes'] as $id => $vote )\n\t\t\t\t\t{\n\t\t\t\t\t\t$poll_votes .= \"\\t'{$id}' : '\".$vote.\"',\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$poll_only = 0;\n\t\t\t\t\n\t\t\t\tif( $this->ipsclass->vars['ipb_poll_only'] AND $this->ipsclass->input['poll_only'] == 1 )\n\t\t\t\t{\n\t\t\t\t\t$poll_only = \"checked='checked'\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$poll_questions = preg_replace( \"#,(\\n)?$#\", \"\\\\1\", $poll_questions );\n\t\t\t\t$poll_choices = preg_replace( \"#,(\\n)?$#\", \"\\\\1\", $poll_choices );\n\t\t\t\t$poll_multi \t= preg_replace( \"#,(\\n)?$#\", \"\\\\1\", $poll_multi );\n\t\t\t\t$poll_votes = preg_replace( \"#,(\\n)?$#\", \"\\\\1\", $poll_votes );\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\n\t\t\t\t//-----------------------------------------\n\t\t\t\t// Load the poll from the DB\n\t\t\t\t//-----------------------------------------\n\t\t\t\t\n\t\t\t\t$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'polls', 'where' => \"tid=\".$this->topic['tid'] ) );\n\t\t\t\t$this->ipsclass->DB->simple_exec();\n\t\t\n\t \t\t$this->poll_data = $this->ipsclass->DB->fetch_row();\n\t \t\t\n\t \t\t$this->poll_answers = $this->poll_data['choices'] ? unserialize(stripslashes($this->poll_data['choices'])) : array();\n\n \t\t//-----------------------------------------\n \t\t// Lezz go\n \t\t//-----------------------------------------\n \t\t\n \t\tforeach( $this->poll_answers as $question_id => $data )\n \t\t{\n \t\t\t$poll_questions .= \"\\t{$question_id} : '\".str_replace( \"'\", '&#39;', $data['question'] ).\"',\\n\";\n \t\t\t\n \t\t\t$data['multi']\t = isset($data['multi']) ? intval($data['multi']) : 0;\n \t\t\t$poll_multi \t.= \"\\t{$question_id} : '\".$data['multi'].\"',\\n\";\n \t\t\t\n \t\t\tforeach( $data['choice'] as $choice_id => $text )\n\t\t\t\t\t{\n\t\t\t\t\t\t$choice = $text;\n\t\t\t\t\t\t$votes = intval($data['votes'][ $choice_id ]);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$poll_choices .= \"\\t'{$question_id}_{$choice_id}' : '\".str_replace( \"'\", '&#39;', $choice ).\"',\\n\";\n\t\t\t\t\t\t$poll_votes .= \"\\t'{$question_id}_{$choice_id}' : '\".$votes.\"',\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$poll_only = 0;\n\t\t\t\t\n\t\t\t\tif ( $this->ipsclass->vars['ipb_poll_only'] AND $this->poll_data['poll_only'] == 1 )\n\t\t\t\t{\n\t\t\t\t\t$poll_only = \"checked='checked'\";\n\t\t\t\t}\t\t\t\t\n\t\t\t\t\n\t\t\t\t//-----------------------------------------\n\t\t\t\t// Trim off trailing commas (Safari hates it)\n\t\t\t\t//-----------------------------------------\n\t\t\t\t\n\t\t\t\t$poll_questions = preg_replace( \"#,(\\n)?$#\", \"\\\\1\", $poll_questions );\n\t\t\t\t$poll_choices = preg_replace( \"#,(\\n)?$#\", \"\\\\1\", $poll_choices );\n\t\t\t\t$poll_multi \t= preg_replace( \"#,(\\n)?$#\", \"\\\\1\", $poll_multi );\n\t\t\t\t$poll_votes = preg_replace( \"#,(\\n)?$#\", \"\\\\1\", $poll_votes );\n\t\t\t\t\n\t\t\t\t$poll_question = $this->poll_data['poll_question'];\n\t\t\t\t$show_open = $this->poll_data['choices'] ? 1 : 0;\n\t\t\t\t$is_mod = $this->can_add_poll_mod;\n\t\t\t}\n\t\t\t\n\t\t\t//-----------------------------------------\n\t\t\t// Print poll box\n\t\t\t//-----------------------------------------\n\t\t\t\n\t\t\t$poll_box = $this->ipsclass->compiled_templates['skin_post']->poll_box( $this->max_poll_questions, $this->max_poll_choices_per_question, $poll_questions, $poll_choices, $poll_votes, $show_open, $poll_question, $is_mod, $poll_multi, $poll_only );\n\t\t}\n\t\t\n\t\t$edit_option = \"\";\n\t\t\n\t\tif ($this->ipsclass->member['g_append_edit'])\n\t\t{\n\t\t\t$checked = \"\";\n\t\t\t$show_reason = 0;\n\t\t\t\n\t\t\tif ($this->orig_post['append_edit'])\n\t\t\t{\n\t\t\t\t$checked = \"checked\";\n\t\t\t}\n\t\t\t\n\t\t\tif ( $this->moderator['edit_post'] OR $this->ipsclass->member['g_is_supmod'] )\n\t\t\t{\n\t\t\t\t$show_reason = 1;\n\t\t\t}\n\t\t\t\n\t\t\t$edit_option = $this->ipsclass->compiled_templates['skin_post']->add_edit_box( $checked, $show_reason, $this->ipsclass->input['post_edit_reason'] ? $this->ipsclass->input['post_edit_reason'] : $this->orig_post['post_edit_reason'] );\n\t\t}\n\t\t\n\t\t$this->output = str_replace( \"<!--START TABLE-->\" , $start_table , $this->output );\n\t\t$this->output = str_replace( \"<!--NAME FIELDS-->\" , $name_fields , $this->output );\n\t\t$this->output = str_replace( \"<!--POST BOX-->\" , $post_box , $this->output );\n\t\t$this->output = str_replace( \"<!--POLL BOX-->\" , $poll_box , $this->output );\n\t\t$this->output = str_replace( \"<!--POST ICONS-->\" , $post_icons , $this->output );\n\t\t$this->output = str_replace( \"<!--END TABLE-->\" , $end_form , $this->output );\n\t\t$this->output = str_replace( \"<!--UPLOAD FIELD-->\", $upload_field , $this->output );\n\t\t$this->output = str_replace( \"<!--MOD OPTIONS-->\" , $edit_option . $mod_options , $this->output );\n\t\t$this->output = str_replace( \"<!--FORUM RULES-->\" , $this->ipsclass->print_forum_rules($this->forum), $this->output );\n\t\t$this->output = str_replace( \"<!--TOPIC TITLE-->\" , $topic_title , $this->output );\n\t\t\n\t\t//-----------------------------------------\n\t\t// Add in siggy buttons and such\n\t\t//-----------------------------------------\n\t\t\n\t\t$this->ipsclass->input['post_htmlstatus'] = $this->orig_post['post_htmlstate'];\n\t\t$this->ipsclass->input['enablesig']\t\t = $this->orig_post['use_sig'];\n\t\t$this->ipsclass->input['enableemo']\t\t = $this->orig_post['use_emo'];\n\t\t\n\t\t$this->html_checkboxes('edit', $this->topic['tid'], $this->forum['id']);\n\t\t\n\t\t$this->html_topic_summary( $this->topic['tid'] );\n\t\t\n\t\t$this->show_post_navigation();\n\t\t\t\t\t\t \n\t\t$this->title = $this->ipsclass->lang['editing_post'].' '.$this->topic['title'];\n\t\t\n\t\t$this->ipsclass->print->add_output( $this->output );\n\t\t\n $this->ipsclass->print->do_output( array( 'TITLE' => $this->ipsclass->vars['board_name'].\" -> \".$this->title,\n \t\t\t\t\t \t 'JS' => 1,\n \t\t\t\t\t \t 'NAV' => $this->nav,\n \t\t\t\t\t ) );\n\t}", "public function get_form($metodo,$usuario,$form,$data=0,$ciclo=1,$codSubM=null,$cMet=\"\"){\n #traemos el formulario\n $this->rows = \"\";\n $this->query = \"\";\n $this->query = \" SELECT fbArmaFormulario($form,$usuario,$data,$ciclo,$codSubM,$this->_modulo,'\".$cMet.\"') as formulario; \";\n $this->get_results_from_query();\n if(count($this->rows) >= 1){\n foreach ($this->rows as $pro=>$va) {\t\t\t\t\n $this->_formulario[] = $va;\n if($this->_formulario[0]['formulario'] == ''){\t\t\t\t\n $mensjFrm = getMenssage('danger','Ocurrio un error','No tiene permisos para acceder a esta opcion. ');\n $this->_formulario[0] = array('formulario'=>$mensjFrm);\n }\n }\n }\t\n #traemos el formulario modal\n $this->rows = \"\";\n $this->query = \"\";\n $this->query = \" SELECT fbArmaFormularioModal($form,$usuario) as modal; \";\n $this->get_results_from_query();\n if(count($this->rows) >= 1){\n foreach ($this->rows as $pro=>$va) { \n $this->_formulario_modal[] = $va;\n if($this->_formulario_modal[0]['modal'] == ''){ \n $mensjFrm = '';\n $this->_formulario_modal[0] = array('modal'=>$mensjFrm);\n }\n }\n } \n #traemos la ayuda del form\n $this->rows = \"\";\n $this->query = \"\";\n $this->query = \" SELECT fbArmaAyudaFormulario($form,$usuario,1) as formulario_ayuda\";\n $this->get_results_from_query();\n if (count($this->rows) >= 1) {\n foreach ($this->rows as $pro => $va) {\n $this->_formulario_ayuda[] = $va;\n if ($this->_formulario_ayuda[0]['formulario_ayuda'] == '') {\n $mensjFrm = getMenssage('info', 'Ocurrio un error', 'No hay ayuda registrada para este proceso,consulte al administrador del sistema. ');\n $this->_formulario_ayuda[0] = array('formulario_ayuda' => $mensjFrm);\n }\n }\n }\n #Traemos los botones por formulario y usuario\n ModeloFacturacion::get_boton($metodo,$usuario,$form,$cMet);\n }", "public function form(){\n\n }", "private function _displayForm()\n\t{\n\t\t$transactions = array('0'=>$this->l('Authorization'),'1'=>$this->l('Preauthorization'),'2'=>$this->l('Preauthorization confirmation'),'3'=>$this->l('Callback'), '5' => $this->l('Recurring transaction'), '6' => $this->l('Successive transaction'), '7' => $this->l('Preauthentication'), '8' => $this->l('Preauthentication confirmation'), '9' => $this->l('Cancellation of Preauthentication'), 'O' => $this->l('Delayed authorization'), 'P' => $this->l('Delayed authorization confirmation'), 'Q' => $this->l('Delayed authorization cancellation'), 'R' => $this->l('Released initial recurring deferred'), 'S' => $this->l('Successive recurrent released'));\n\t\t\n\t\t$transact = 0;\n\t\t$transact2 = 0;\n\t\t$transact3 = 0;\n\t\tif ( (Tools::getValue('trans') == \"\") and (isset($this->trans)) )\n\t\t\t$transact = $this->trans;\n\t\telse\n\t\t\t$transact = Tools::getValue('trans');\n\t\tif ( (Tools::getValue('trans2') == \"\") and (isset($this->trans2)) )\n\t\t\t$transact2 = $this->trans2;\n\t\telse\n\t\t\t$transact2 = Tools::getValue('trans2');\n\t\tif ( (Tools::getValue('trans3') == \"\") and (isset($this->trans3)) )\n\t\t\t$transact3 = $this->trans3;\n\t\telse\n\t\t\t$transact3 = Tools::getValue('trans3');\n\t\t// obtenemos las monedas dadas de alta en la tienda\n\t\t$currencies = Currency::getCurrencies();\n\t\tif ( (Tools::getValue('nombre') == \"\") and (isset($this->nombre)) )\n\t\t\t$nombre = $this->nombre;\n\t\telse\n\t\t\t$nombre = Tools::getValue('nombre');\n\t\tif ( (Tools::getValue('nombre2') == \"\") and (isset($this->nombre2)) )\n\t\t\t$nombre2 = $this->nombre2;\n\t\telse\n\t\t\t$nombre2 = Tools::getValue('nombre2');\n\t\tif ( (Tools::getValue('nombre3') == \"\") and (isset($this->nombre3)) )\n\t\t\t$nombre3 = $this->nombre3;\n\t\telse\n\t\t\t$nombre3 = Tools::getValue('nombre3');\n\t\tif ( (Tools::getValue('clave') == \"\") and (isset($this->clave)) )\n\t\t\t$clave = $this->clave;\n\t\telse\n\t\t\t$clave = Tools::getValue('clave');\n\t\tif ( (Tools::getValue('clave2') == \"\") and (isset($this->clave2)) )\n\t\t\t$clave2 = $this->clave2;\n\t\telse\n\t\t\t$clave2 = Tools::getValue('clave2');\n\t\tif ( (Tools::getValue('clave3') == \"\") and (isset($this->clave3)) )\n\t\t\t$clave3 = $this->clave3;\n\t\telse\n\t\t\t$clave3 = Tools::getValue('clave3');\n\t\t// Opciones para el select de monedas.\n\t\tif ( (Tools::getValue('moneda') == \"\") and (isset($this->moneda)) )\n\t\t\t$moneda = $this->moneda;\n\t\telse\n\t\t\t$moneda = Tools::getValue('moneda');\n\t\tif ( (Tools::getValue('moneda2') == \"\") and (isset($this->moneda2)) )\n\t\t\t$moneda2 = $this->moneda2;\n\t\telse\n\t\t\t$moneda2 = Tools::getValue('moneda2');\n\t\tif ( (Tools::getValue('moneda3') == \"\") and (isset($this->moneda3)) )\n\t\t\t$moneda3 = $this->moneda3;\n\t\telse\n\t\t\t$moneda3 = Tools::getValue('moneda3');\n\t\t\n\t\tif ( (Tools::getValue('codigo') == \"\") and (isset($this->codigo)) )\n\t\t\t$codigo = $this->codigo;\n\t\telse\n\t\t\t$codigo = Tools::getValue('codigo');\n\t\tif ( (Tools::getValue('codigo2') == \"\") and (isset($this->codigo2)) )\n\t\t\t$codigo2 = $this->codigo2;\n\t\telse\n\t\t\t$codigo2 = Tools::getValue('codigo2');\n\t\tif ( (Tools::getValue('codigo3') == \"\") and (isset($this->codigo3)) )\n\t\t\t$codigo3 = $this->codigo3;\n\t\telse\n\t\t\t$codigo3 = Tools::getValue('codigo3');\n\t\tif ( (Tools::getValue('terminal') == \"\") and (isset($this->terminal)) )\n\t\t\t$terminal = $this->terminal;\n\t\telse\n\t\t\t$terminal = Tools::getValue('terminal');\n\t\tif ( (Tools::getValue('terminal2') == \"\") and (isset($this->terminal2)) )\n\t\t\t$terminal2 = $this->terminal2;\n\t\telse\n\t\t\t$terminal2 = Tools::getValue('terminal2');\n\t\tif ( (Tools::getValue('terminal3') == \"\") and (isset($this->terminal3)) )\n\t\t\t$terminal3 = $this->terminal3;\n\t\telse\n\t\t\t$terminal3 = Tools::getValue('terminal3');\n\t\t// Opciones para activar/desactivar SSL\n\t\t$ssl = Tools::getValue('ssl', $this->ssl);\n\t\t$ssl_si = ($ssl == 'si') ? ' checked=\"checked\" ' : '';\n\t\t$ssl_no = ($ssl == 'no') ? ' checked=\"checked\" ' : '';\n\t\t// Opciones para el comportamiento en error en el pago\n\t\t$error_pago = Tools::getValue('error_pago', $this->error_pago);\n\t\t$error_pago_si = ($error_pago == 'si') ? ' checked=\"checked\" ' : '';\n\t\t$error_pago_no = ($error_pago == 'no') ? ' checked=\"checked\" ' : '';\n\t\t// Opciones para activar los idiomas\n\t\t$idiomas_estado = Tools::getValue('idiomas_estado', $this->idiomas_estado);\n\t\t$idiomas_estado_si = ($idiomas_estado == 'si') ? ' checked=\"checked\" ' : '';\n\t\t$idiomas_estado_no = ($idiomas_estado == 'no') ? ' checked=\"checked\" ' : '';\n\t\t\n\t\t// Opciones entorno\n\t\tif (!isset($_POST['urltpv']))\n\t\t\t$entorno = Tools::getValue('env', $this->env);\n\t\telse\n\t\t\t$entorno = $_POST['urltpv'];\n\t\t$entorno_real_redsys = ($entorno==0) ? ' selected=\"selected\" ' : '';\n\t\t$entorno_t_redsys = ($entorno==1) ? ' selected=\"selected\" ' : '';\t\t\n\t\t$entorno_real_sermepa = ($entorno==2) ? ' selected=\"selected\" ' : '';\n\t\t$entorno_t_sermepa = ($entorno==3) ? ' selected=\"selected\" ' : '';\n\t\t// Opciones entorno 2\n\t\tif (!isset($_POST['urltpv2']))\n\t\t\t$entorno2 = Tools::getValue('env2', $this->env2);\n\t\telse\n\t\t\t$entorno2 = $_POST['urltpv2'];\n\t\t$entorno_real_redsys2 = ($entorno2==0) ? ' selected=\"selected\" ' : '';\n\t\t$entorno_t_redsys2 = ($entorno2==1) ? ' selected=\"selected\" ' : '';\t\t\n\t\t$entorno_real_sermepa2 = ($entorno2==2) ? ' selected=\"selected\" ' : '';\n\t\t$entorno_t_sermepa2 = ($entorno2==3) ? ' selected=\"selected\" ' : '';\n\t\t// Opciones entorno 3\n\t\tif (!isset($_POST['urltpv3']))\n\t\t\t$entorno3 = Tools::getValue('env3', $this->env3);\n\t\telse\n\t\t\t$entorno3 = $_POST['urltpv3'];\n\t\t$entorno_real_redsys3 = ($entorno3==0) ? ' selected=\"selected\" ' : '';\n\t\t$entorno_t_redsys3 = ($entorno3==1) ? ' selected=\"selected\" ' : '';\t\t\n\t\t$entorno_real_sermepa3 = ($entorno3==2) ? ' selected=\"selected\" ' : '';\n\t\t$entorno_t_sermepa3 = ($entorno3==3) ? ' selected=\"selected\" ' : '';\n\t\t// Opciones del tipo de firma\n\t\t$tipofirma = Tools::getValue('tipofirma', $this->tipofirma);\n\t \t$tipofirma_a = ($tipofirma==0) ? ' checked=\"checked\" ' : '';\n\t \t$tipofirma_c = ($tipofirma==1) ? ' checked=\"checked\" ' : '';\n \t\t$tipofirma2 = Tools::getValue('tipofirma2', $this->tipofirma2);\n\t \t$tipofirma_a2 = ($tipofirma2==0) ? ' checked=\"checked\" ' : '';\n\t \t$tipofirma_c2 = ($tipofirma2==1) ? ' checked=\"checked\" ' : '';\n\t \t$tipofirma3 = Tools::getValue('tipofirma3', $this->tipofirma3);\n\t \t$tipofirma_a3 = ($tipofirma3==0) ? ' checked=\"checked\" ' : '';\n\t \t$tipofirma_c3 = ($tipofirma3==1) ? ' checked=\"checked\" ' : '';\n\t \n\t // Opciones notificacion\n\t $notificacion = Tools::getValue('notificacion', $this->notificacion);\n\t\t$notificacion_s = ($notificacion==1) ? ' checked=\"checked\" ' : '';\n\t\t$notificacion_n = ($notificacion==0) ? ' checked=\"checked\" ' : '';\n\t\t// Opciones multimoneda\n\t $multimoneda = Tools::getValue('multimoneda', $this->multimoneda);\n\t\t$multimoneda_s = ($multimoneda==1) ? ' checked=\"checked\" ' : '';\n\t\t$multimoneda_n = ($multimoneda==0) ? ' checked=\"checked\" ' : '';\n\t\t\n\t\t// Mostar formulario\n\t\t$this->_html .=\n\t\t'<form action=\"'.$_SERVER['REQUEST_URI'].'\" method=\"post\">\n\t\t\t<fieldset>\n\t\t\t<legend><img src=\"../img/admin/contact.gif\" />'.$this->l('Virtual POS configuration').'</legend>\n\t\t\t\t<table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"4\" id=\"form\" style=\"font-size:12px;margin-bottom:3px\">\n\t\t\t\t\t<tr><td colspan=\"2\">\n\t\t\t\t\t\t<fieldset>\n\t\t\t\t\t\t<legend>'.$this->l('Commerce configuration').' 1</legend>\n\t\t\t\t\t\t<table border=\"0\" width=\"100%\" cellpadding=\"2\" cellspacing=\"3\" style=\"font-size:12px\">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Redsys environment').'</td>\n\t\t\t\t\t\t\t\t\t<td><select style=\"width:150px\" name=\"urltpv\">\n\t\t\t\t\t\t\t\t\t\t<option value=\"0\"'.$entorno_real_redsys.'>'.$this->l('Real Redsys').'</option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"1\"'.$entorno_t_redsys.'>'.$this->l('Testing Redsys').'</option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"2\"'.$entorno_real_sermepa.'>'.$this->l('Real Sermepa').'</option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"3\"'.$entorno_t_sermepa.'>'.$this->l('Testing Sermepa').'</option>\n\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Commerce name').'</td><td><input type=\"text\" name=\"nombre\" value=\"'.htmlentities($nombre, ENT_COMPAT, 'UTF-8').'\" style=\"width: 200px;\" /></div></td>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Secret Key encryption').'</td><td><input type=\"text\" size=\"25\" maxlength=\"20\" name=\"clave\" value=\"'.$clave.'\" style=\"width: 200px;\" /></td>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Terminal number').'</td><td><input type=\"text\" style=\"width:20px\" maxlength=\"3\" name=\"terminal\" value=\"'.$terminal.'\" style=\"width: 80px;\" /> &nbsp;\n\t\t\t\t\t\t\t\t\t'.$this->l('Currency').' &nbsp; <select style=\"width:130px\" name=\"moneda\" style=\"width: 80px;\"><option value=\"\"></option>';\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$monedaselected = '';\n\t\t\t\t\t\t\t\t\t\tforeach ($currencies AS $currency) {\n\t\t\t\t\t\t\t\t\t\t\tif ($moneda == $currency[\"iso_code_num\"]) \n\t\t\t\t\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\t\t\t\t\t$monedaselected = ' selected=\"selected\" ';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t$monedaselected = '';\n\t\t\t\t\t\t\t\t\t\t\t$this->_html .= '<option value=\"'.$currency['iso_code_num'].'\"'.$monedaselected.'>'.$currency['name'].'</option>';\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t$this->_html .= '</select>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Commerce number (FUC)').'</td><td><input type=\"text\" maxlength=\"9\" name=\"codigo\" value=\"'.$codigo.'\" style=\"width: 200px;\" /></td>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Signature type').'</td><td><input type=\"radio\" name=\"tipofirma\" id=\"tipofirma_c\" value=\"1\"'.$tipofirma_c.'/>&nbsp;'.$this->l('Full').'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=\"radio\" name=\"tipofirma\" id=\"tipofirma_a\" value=\"0\"'.$tipofirma_a.'/>&nbsp;'.$this->l('Full extended').'</td>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Transaction type').'</td>\n\t\t\t\t\t\t\t\t<td><select name=\"trans\" style=\"width: 200px;\"><option value=\"\"></option>';\n\t\t\t\t\t\t\t\t\t$transactionselected = '';\n\t\t\t\t\t\t\t\t\tforeach($transactions as $codigoTrans => $descripcionTrans) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tif ($transact == $codigoTrans) \n\t\t\t\t\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\t\t\t\t\t$transactionselected = ' selected=\"selected\" ';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t$transactionselected = '';\n\t\t\t\t\t\t\t\t\t\t\t$this->_html .= '<option value=\"'.$codigoTrans.'\"'.$transactionselected.'>'.$descripcionTrans.'</option>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t$this->_html .= '</select>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t</fieldset>\n\t\t\t\t\t</td></tr>\n\t\t\t\t\t<tr><td colspan=\"2\">\n\t\t\t\t\t\t<fieldset>\n\t\t\t\t\t\t<legend>'.$this->l('Commerce configuration').' 2</legend>\n\t\t\t\t\t\t<table border=\"0\" width=\"100%\" cellpadding=\"2\" cellspacing=\"3\" style=\"font-size:12px\">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Redsys environment').'</td>\n\t\t\t\t\t\t\t\t\t<td><select style=\"width:150px\" name=\"urltpv2\">\n\t\t\t\t\t\t\t\t\t\t<option value=\"0\"'.$entorno_real_redsys2.'>'.$this->l('Real Redsys').'</option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"1\"'.$entorno_t_redsys2.'>'.$this->l('Testing Redsys').'</option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"2\"'.$entorno_real_sermepa2.'>'.$this->l('Real Sermepa').'</option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"3\"'.$entorno_t_sermepa2.'>'.$this->l('Testing Sermepa').'</option>\n\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Commerce name').'</td><td><input type=\"text\" name=\"nombre2\" value=\"'.htmlentities($nombre2, ENT_COMPAT, 'UTF-8').'\" style=\"width: 200px;\" /></td>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Secret Key encryption').'</td><td><input type=\"text\" size=\"25\" maxlength=\"20\" name=\"clave2\" value=\"'.$clave2.'\" style=\"width: 200px;\" /></td>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Terminal number').'</td><td><input type=\"text\" style=\"width:20px\" maxlength=\"3\" name=\"terminal2\" value=\"'.$terminal2.'\" style=\"width: 80px;\" /> &nbsp;\n\t\t\t\t\t\t\t\t\t'.$this->l('Currency').' &nbsp; <select style=\"width:130px\" name=\"moneda2\" style=\"width: 80px;\"><option value=\"\"></option>';\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$monedaselected2 = '';\n\t\t\t\t\t\t\t\t\t\tforeach ($currencies AS $currency) {\n\t\t\t\t\t\t\t\t\t\t\tif ($moneda2 == $currency[\"iso_code_num\"]) \n\t\t\t\t\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\t\t\t\t\t$monedaselected2 = ' selected=\"selected\" ';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t$monedaselected2 = '';\n\t\t\t\t\t\t\t\t\t\t\t$this->_html .= '<option value=\"'.$currency['iso_code_num'].'\"'.$monedaselected2.'>'.$currency['name'].'</option>';\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t$this->_html .= '</select>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Commerce number (FUC)').'</td><td><input type=\"text\" maxlength=\"9\" name=\"codigo2\" value=\"'.$codigo2.'\" style=\"width: 200px;\" /></td>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Signature type').'</td><td><input type=\"radio\" name=\"tipofirma2\" id=\"tipofirma_c2\" value=\"1\"'.$tipofirma_c2.'/>&nbsp;'.$this->l('Full').'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=\"radio\" name=\"tipofirma2\" id=\"tipofirma_a2\" value=\"0\"'.$tipofirma_a2.'/>&nbsp;'.$this->l('Full extended').'</td>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Transaction type').'</td>\n\t\t\t\t\t\t\t\t<td><select name=\"trans2\" style=\"width: 200px;\"><option value=\"\"></option>';\n\t\t\t\t\t\t\t\t\t$transactionselected2 = '';\n\t\t\t\t\t\t\t\t\tforeach($transactions as $codigoTrans => $descripcionTrans) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tif ($transact2 == $codigoTrans) \n\t\t\t\t\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\t\t\t\t\t$transactionselected2 = ' selected=\"selected\" ';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t$transactionselected2 = '';\n\t\t\t\t\t\t\t\t\t\t\t$this->_html .= '<option value=\"'.$codigoTrans.'\"'.$transactionselected2.'>'.$descripcionTrans.'</option>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t$this->_html .= '</select>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t</fieldset>\n\t\t\t\t\t</td></tr>\n\t\t\t\t\t<tr><td colspan=\"2\">\n\t\t\t\t\t\t<fieldset>\n\t\t\t\t\t\t<legend>'.$this->l('Commerce configuration').' 3</legend>\n\t\t\t\t\t\t<table border=\"0\" width=\"100%\" cellpadding=\"2\" cellspacing=\"3\" style=\"font-size:12px\">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Redsys environment').'</td>\n\t\t\t\t\t\t\t\t\t<td><select style=\"width:150px\" name=\"urltpv3\">\n\t\t\t\t\t\t\t\t\t\t<option value=\"0\"'.$entorno_real_redsys3.'>'.$this->l('Real Redsys').'</option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"1\"'.$entorno_t_redsys3.'>'.$this->l('Testing Redsys').'</option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"2\"'.$entorno_real_sermepa3.'>'.$this->l('Real Sermepa').'</option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"3\"'.$entorno_t_sermepa3.'>'.$this->l('Testing Sermepa').'</option>\n\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Commerce name').'</td><td><input type=\"text\" name=\"nombre3\" value=\"'.htmlentities($nombre3, ENT_COMPAT, 'UTF-8').'\" style=\"width: 200px;\" /></td>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Secret Key encryption').'</td><td><input type=\"text\" size=\"25\" maxlength=\"20\" name=\"clave3\" value=\"'.$clave3.'\" style=\"width: 200px;\" /></td>\n\t\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Terminal number').'</td><td><input type=\"text\" style=\"width:20px\" maxlength=\"3\" name=\"terminal3\" value=\"'.$terminal3.'\" style=\"width: 80px;\" /> &nbsp;\n\t\t\t\t\t\t\t\t\t'.$this->l('Currency').' &nbsp; <select style=\"width:130px\" name=\"moneda3\" style=\"width: 80px;\"><option value=\"\"></option>';\t\t\t\t\n\t\t\t\t\t\t\t\t\t$monedaselected3 = '';\n\t\t\t\t\t\t\t\t\tforeach ($currencies AS $currency) {\n\t\t\t\t\t\t\t\t\t\tif ($moneda3 == $currency[\"iso_code_num\"]) \n\t\t\t\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\t\t\t\t$monedaselected3 = ' selected=\"selected\" ';\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t$monedaselected3 = '';\n\t\t\t\t\t\t\t\t\t\t$this->_html .= '<option value=\"'.$currency['iso_code_num'].'\"'.$monedaselected3.'>'.$currency['name'].'</option>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$this->_html .= '</select>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Commerce number (FUC)').'</td><td><input type=\"text\" maxlength=\"9\" name=\"codigo3\" value=\"'.$codigo3.'\" style=\"width: 200px;\" /></td>\n\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Signature type').'</td><td><input type=\"radio\" name=\"tipofirma3\" id=\"tipofirma_c3\" value=\"1\"'.$tipofirma_c3.'/>&nbsp;'.$this->l('Full').'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=\"radio\" name=\"tipofirma3\" id=\"tipofirma_a3\" value=\"0\"'.$tipofirma_a3.'/>&nbsp;'.$this->l('Full extended').'</td>\n\t\t\t\t\t\t\t<td style=\"height: 25px;\">'.$this->l('Transaction type').'</td>\n\t\t\t\t\t\t\t<td><select name=\"trans3\" style=\"width: 200px;\"><option value=\"\"></option>';\n\t\t\t\t\t\t\t\t\t$transactionselected3 = '';\n\t\t\t\t\t\t\t\t\tforeach($transactions as $codigoTrans => $descripcionTrans) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tif ($transact3 == $codigoTrans) \n\t\t\t\t\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\t\t\t\t\t$transactionselected3 = ' selected=\"selected\" ';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t$transactionselected3 = '';\n\t\t\t\t\t\t\t\t\t\t\t$this->_html .= '<option value=\"'.$codigoTrans.'\"'.$transactionselected3.'>'.$descripcionTrans.'</option>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t$this->_html .= '</select>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t\t</fieldset>\n\t\t\t\t\t</td></tr>\t\t\t\t\t\n\t\t\t\t</table>\n\t\t\t</fieldset>\n\t\t\t<br>\n\t\t\t<fieldset>\n\t\t\t<legend><img src=\"../img/admin/cog.gif\" />'.$this->l('Customization').'</legend>\n\t\t\t\t<table border=\"0\" width=\"680\" cellpadding=\"0\" cellspacing=\"0\" id=\"form\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td width=\"450\" style=\"height: 25px;\">'.$this->l('Multicurrency activation (only in stores with more than one terminal)').'</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<input type=\"radio\" name=\"multimoneda\" id=\"multimoneda_1\" value=\"1\"'.$multimoneda_s.'/>\n\t\t\t\t\t\t\t<img src=\"../img/admin/enabled.gif\" alt=\"'.$this->l('Enabled').'\" title=\"'.$this->l('Enabled').'\" />\n\t\t\t\t\t\t\t<input type=\"radio\" name=\"multimoneda\" id=\"multimoneda_0\" value=\"0\"'.$multimoneda_n.'/>\n\t\t\t\t\t\t\t<img src=\"../img/admin/disabled.gif\" alt=\"'.$this->l('Disabled').'\" title=\"'.$this->l('Disabled').'\" />\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td width=\"450\" style=\"height: 25px;\">'.$this->l('HTTP notification (if disabled not process order and empty your cart)').'</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<input type=\"radio\" name=\"notificacion\" id=\"notificacion_1\" value=\"1\"'.$notificacion_s.'/>\n\t\t\t\t\t\t\t<img src=\"../img/admin/enabled.gif\" alt=\"'.$this->l('Enabled').'\" title=\"'.$this->l('Enabled').'\" />\n\t\t\t\t\t\t\t<input type=\"radio\" name=\"notificacion\" id=\"notificacion_0\" value=\"0\"'.$notificacion_n.'/>\n\t\t\t\t\t\t\t<img src=\"../img/admin/disabled.gif\" alt=\"'.$this->l('Disabled').'\" title=\"'.$this->l('Disabled').'\" />\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td width=\"340\" style=\"height: 25px;\">'.$this->l('URL validation with SSL').'</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<input type=\"radio\" name=\"ssl\" id=\"ssl_1\" value=\"si\" '.$ssl_si.'/>\n\t\t\t\t\t\t\t<img src=\"../img/admin/enabled.gif\" alt=\"'.$this->l('Enabled').'\" title=\"'.$this->l('Enabled').'\" />\n\t\t\t\t\t\t\t<input type=\"radio\" name=\"ssl\" id=\"ssl_0\" value=\"no\" '.$ssl_no.'/>\n\t\t\t\t\t\t\t<img src=\"../img/admin/disabled.gif\" alt=\"'.$this->l('Disabled').'\" title=\"'.$this->l('Disabled').'\" />\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td width=\"340\" style=\"height: 25px;\">'.$this->l('On error, allowing choose another payment method').'</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<input type=\"radio\" name=\"error_pago\" id=\"error_pago_1\" value=\"si\" '.$error_pago_si.'/>\n\t\t\t\t\t\t\t<img src=\"../img/admin/enabled.gif\" alt=\"'.$this->l('Enabled').'\" title=\"'.$this->l('Enabled').'\" />\n\t\t\t\t\t\t\t<input type=\"radio\" name=\"error_pago\" id=\"error_pago_0\" value=\"no\" '.$error_pago_no.'/>\n\t\t\t\t\t\t\t<img src=\"../img/admin/disabled.gif\" alt=\"'.$this->l('Disabled').'\" title=\"'.$this->l('Disabled').'\" />\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td width=\"340\" style=\"height: 25px;\">'.$this->l('Enable languages in POS').'</td>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<input type=\"radio\" name=\"idiomas_estado\" id=\"idiomas_estado_si\" value=\"si\" '.$idiomas_estado_si.'/>\n\t\t\t\t\t\t\t<img src=\"../img/admin/enabled.gif\" alt=\"'.$this->l('Enabled').'\" title=\"'.$this->l('Enabled').'\" />\n\t\t\t\t\t\t\t<input type=\"radio\" name=\"idiomas_estado\" id=\"idiomas_estado_no\" value=\"no\" '.$idiomas_estado_no.'/>\n\t\t\t\t\t\t\t<img src=\"../img/admin/disabled.gif\" alt=\"'.$this->l('Disabled').'\" title=\"'.$this->l('Disabled').'\" />\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t</fieldset>\n\t\t\t<br>\n\t\t<input class=\"button\" name=\"btnSubmit\" value=\"'.$this->l('Save configuration').'\" type=\"submit\" />\n\t\t</form>';\n\t}", "function form();", "function form_concierto($location, $extra=\"true\"){\n\t\n\t\n\techo \"\n\t<div align='center'>\t\n\t\t<div class='login'>\n\t\t\t<form method='post' action='\".htmlspecialchars($_SERVER[\"PHP_SELF\"]).\"'>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<label for='fecha'>Fecha: </label>\n\t\t\t\t<input type='text' id='fecha' name='fecha'\n\t\t\t\tvalue='\" . (isset($_POST['fecha']) ? $_POST['fecha'] : '') .\"' required>\n\t\t\t\t<br>\n\t\t\t\t<label for='hora'>Hora: </label>\n\t\t\t\t<input type='text' id='hora' name='hora'\n\t\t\t\tvalue='\" . (isset($_POST['hora']) ? $_POST['hora'] : '') . \"'>\n\t\t\t\t<br>\n\t\t\t\t<label for='lugar'>Lugar: </label>\n\t\t\t\t<input type='text' id='lugar' name='lugar'\n\t\t\t\tvalue='\" . (isset($_POST['lugar']) ? $_POST['lugar'] : '') . \"' >\n\t\t\t\t<br>\n\t\t\t\t<label for='lugar'>Descripcion: </label><br>\n\t\t\t\t<textarea id='descripcion' name='descripcion' cols='50' rows='10'>\". \n\t\t\t\t(isset($_POST['descripcion']) ? $_POST['descripcion'] : '') .\"</textarea>\n\t\t\t\n\t\t\t\t<br>\n\t\t\t\t\n\t\t\t\t<input type='hidden' name='accion' value='conciertos'>\n\t\t\t\t<input type='hidden' name='$location' value='$extra'>\n\t\t\t\t<input type='submit' value='Enviar'>\n\t\t\t\t\n\t\t\t</form>\n\t\t\t<form method='post' action='\".htmlspecialchars($_SERVER[\"PHP_SELF\"]).\"?accion=conciertos#panel_control'>\n\t\t\t\t<input type='submit' name='cancelar' value='Cancelar'>\n\t\t\t\t</form>\n\t\t\t</div>\n\t\t</div>\t\n\";\n//print_r($_POST);\n\n}", "public function fermerligneAction()\r\n {\n \t$decorateurCase = array(\n \t\t\tarray('ViewHelper'),\n \t\t\tarray('Errors'),\n \t\t\tarray('HtmlTag', array('tag'=>'td')),\n \t\t\tarray(\n \t\t\t\t\tarray('tr' => 'HtmlTag'),\n \t\t\t\t\tarray('tag'=> 'tr')\n \t\t\t)\n \t\t\t\n \t);\n \t//decorateur du bouton submit\n \t$decorateurBoutonEnvoyer = array(\n \t\t\tarray('ViewHelper'),\n \t\t\tarray('Errors'),\n \t\t\tarray('HtmlTag', array('tag'=>'td', 'class'=>'boutonEnvoyer')),\n \t\t\tarray(\n \t\t\t\t\tarray('tr' => 'HtmlTag'),\n \t\t\t\t\tarray('tag'=> 'tr'),\n \t\t\t)\n \t);\n \t//decorateur du bouton formulaire complet\n \t$decorateurTableau = array(\n \t\t\tarray('FormElements'),\n \t\t\tarray('HtmlTag', array('tag'=>'table', 'class'=>'tableauCaseACocherVol'))\n \t);\n \t\n \t$filtreStategique = $this->_getParam('filtreStategique');\n \tif($filtreStategique == 'defaut')\n \t{\n \t\tunset($_SESSION['aeroportDepart']);\r\n \t\tunset($_SESSION['aeroportArrivee']);\n \t}\n \t\n \t$vol = new Vol;\n \tif(isset($_POST['aeroportDepart']))\n \t\t$_SESSION['aeroportDepart'] = $_POST['aeroportDepart'];\n \tif(isset($_POST['aeroportArrivee']))\n \t\t$_SESSION['aeroportArrivee'] = $_POST['aeroportArrivee'];\n \tif(isset($_SESSION['aeroportDepart']) && isset($_SESSION['aeroportArrivee'])){\n \t\t$lesVols = $vol->getRecuperDepartArrivee($_SESSION['aeroportDepart'], $_SESSION['aeroportArrivee']);\n \t}\n \telse{\n \t\tif(isset($_SESSION['aeroportDepart'])){\n \t\t\t$lesVols = $vol->getRecuperDepart($_SESSION['aeroportDepart']);\n \t\t}\n \t\telse{\n \t\t\tif(isset($_SESSION['aeroportArrivee'])){\r\n \t\t\t\t$lesVols = $vol->getRecuperArrivee($_SESSION['aeroportArrivee']);\r\n \t\t\t}\n \t\t\telse{\n \t\t\t\t$lesVols = $vol->getRecuper();\n \t\t\t}\n \t\t}\n \t} \t\n \t\n \t//on crée le paginator\n \t$pagination = Zend_Paginator::factory($lesVols);\n \t$pagination->setCurrentPageNumber($this->_getParam('page'));\n \t$pagination->setItemCountPerPage(5);\n \t//on crée le formulaire\r\n \t$formulaireSuppression = new Zend_Form;\r\n \t$formulaireSuppression -> setMethod('post');\r\n \t$formulaireSuppression -> setAction('/strategique/index/');\r\n \t$formulaireSuppression -> setAttrib('id','formulaireSuppression');\r\n \t$formulaireSuppression -> addDecorators($decorateurTableau);\r\n\t\t\n \tforeach($pagination as $unVol)\r\n \t{\n \t\t$ligne1 = $vol->getRecuperAeroportDepart($unVol['aeroportDepart']);\n \t\t$ligne2 = $vol->getRecuperAeroportDArrivee($unVol['aeroportArrivee']);\n \t\t$ligne3 = $vol->getRecuperDateDeVol($unVol['idVol']);\n \t\t$ligne4 = fonctionConvertirHeure($unVol['dureeVol']);\n \t\t\t\n \t\t//on crée les cases a cocher\r\n \t\t$caseACocher = new Zend_Form_Element_Checkbox($unVol['idVol']);\r\n \t\t$caseACocher -> setValue($unVol['idVol']);\r\n \t\t$caseACocher -> setDecorators($decorateurCase);\r\n \t\t$formulaireSuppression -> addElement($caseACocher);\r\n \t\t\t\r\n \t\t//on récupère dans des tableaux pour chaque vol:\r\n \t\t//l'aéroport de départ\r\n \t\t$nomAeroportDepart[$unVol['idVol']] = $ligne1['nomAeroport'];\r\n \t\t//l'aéroport de d'arrivé\r\n \t\t$nomAeroportArrivee[$unVol['idVol']] = $ligne2['nomAeroport'];\r\n \t\t//la date du vol ou les jours de la semaine\r\n \t\t$jourOuDateDuVol[$unVol['idVol']] = $ligne3;\r\n \t\t//la durée du vol en heures\r\n \t\t$duree[$unVol['idVol']] = $ligne4;\n \t\t\t\n \t\t$numVol[$unVol['idVol']] = $unVol['numVol'];\n \t\t$idVol[$unVol['idVol']] = $unVol['idVol']; \t\t\n \t}\r\n \t//on crée le bouton submit\r\n \t$envoyer = new Zend_Form_Element_Submit('boutonSubmitSupprimerVol');\n \t$envoyer -> setLabel('Supprimer');\r\n \t$envoyer -> setDecorators($decorateurBoutonEnvoyer);\r\n \t$formulaireSuppression -> addElement($envoyer);\n \t\n \t//on crée le formulaire filtre\r\n \t$formFiltAeroDepart = new Zend_Form;\r\n \t$formFiltAeroDepart -> setAttrib('id','formFiltAeroDepart');\r\n \t$formFiltAeroDepart -> setMethod('post');\r\n \t$formFiltAeroDepart -> setAction('/strategique/index?valeur=fermer');\r\n \t \r\n \t//choix de l'aéroport de départ\n \t$formFiltAeroDepart -> addElement(fonctionAeroport('aeroportDepart'));\n \t\n \t$envoyer = new Zend_Form_Element_Submit('boutonSubmitFiltAeroDepart');\r\n \t$envoyer -> setLabel('Filtrer');\r\n \t$formFiltAeroDepart -> addElement($envoyer);\n \t\n \t//on crée le formulaire filtre\n \t$formFiltAeroArrivee = new Zend_Form;\r\n \t$formFiltAeroArrivee -> setAttrib('id','formFiltAeroArrivee');\r\n \t$formFiltAeroArrivee -> setMethod('post');\r\n \t$formFiltAeroArrivee -> setAction('/strategique/index?valeur=fermer');\r\n \t\r\n \t//choix de l'aéroport d'arrivee\r\n \t$formFiltAeroArrivee -> addElement(fonctionAeroport('aeroportArrivee'));\r\n \t \r\n \t$envoyer = new Zend_Form_Element_Submit('boutonSubmitFiltAeroArrivee');\r\n \t$envoyer -> setLabel('Filtrer');\r\n \t$formFiltAeroArrivee -> addElement($envoyer);\r\n \t \n \t\n \t$this->view->formFiltAeroArrivee = $formFiltAeroArrivee;\r\n \t//on envoie le formulaire a la vue\r\n \t$this->view->formFiltAeroDepart = $formFiltAeroDepart;\n \t//on envoie les vols a la vue\r\n \t$this->view->lesVols = $pagination;\n \t//on envoie les noms d'aeroport de depart\r\n \t\n \tif(isset($nomAeroportDepart))\n \t\t$this->view->lesAeroportsDeDepart = $nomAeroportDepart;\n \t//on envoie les noms d'aeroport d'arrivee\n \tif(isset($nomAeroportArrivee))\r\n \t\t$this->view->lesAeroportsDArrivee = $nomAeroportArrivee;\n \t//on envoie les dates de départs ou les jours prévu\n \tif(isset($jourOuDateDuVol))\r\n \t\t$this->view->lesJourEtDateDeVol = $jourOuDateDuVol;\r\n \t//on envoie la durée des vols\n \tif(isset($duree))\n \t\t$this->view->duree = $duree;\n \t\n \tif(isset($idVol))\n \t\t$this->view->idVol = $idVol;\n \t\n \tif(isset($numVol))\n \t\t$this->view->numVol = $numVol;\r\n \t//on envoie le formulaire a la vue\r\n \t$this->view->formulaire = $formulaireSuppression;\r\n \r\n }", "protected function setFormContent()\n {\n\t\t$content = $this->getTitle();\n\t\t\n\t\t$content .= '<p>Your meditation time on <b>';\n\t\t$content .= $this->data['long_date'];\n\t\t$content .= '</b> has been deleted. Would you like to restore it?</p>';\n\t\t\n\t\t$this->Form = new Form;\n\t\t$this->buildForm();\n\t\t$content .= $this->Form->getHtml();\n\t\t\n\t\t// Add the cancel link\n\t\t$content .= $this->cancelLink();\n\t\t\n\t\t$this->content = $content;\n }", "function aanpassen_show()\n{\n global $db;\n global $tpl;\n global $sAction;\n global $sForm;\n global $saanpassenErr;\n \n $fldlogin_id = \"\";\n $fldnaam = \"\";\n $fldgebruikersnaam = \"\";\n $fldwachtwoord = \"\";\n $fldniveau = \"\";\n $fldcategories_id = \"\";\n//-------------------------------\n// aanpassen Show begin\n//-------------------------------\n $sFormTitle = \"Gebruiker {naam} beheer\";\n $sWhere = \"\";\n $bPK = true;\n $scategories_idDisplayValue = \"\";\n//-------------------------------\n// Load primary key and form parameters\n//-------------------------------\n if($saanpassenErr == \"\")\n {\n $fldlogin_id = get_param(\"login_id\");\n $plogin_id = get_param(\"login_id\");\n $tpl->set_var(\"aanpassenError\", \"\");\n }\n else\n {\n $fldlogin_id = strip(get_param(\"login_id\"));\n $fldnaam = strip(get_param(\"naam\"));\n $fldgebruikersnaam = strip(get_param(\"gebruikersnaam\"));\n $fldwachtwoord = strip(get_param(\"wachtwoord\"));\n $fldniveau = strip(get_param(\"niveau\"));\n $fldcategories_id = strip(get_param(\"categories_id\"));\n $plogin_id = get_param(\"PK_login_id\");\n $tpl->set_var(\"saanpassenErr\", $saanpassenErr);\n $tpl->set_var(\"FormTitle\", $sFormTitle);\n $tpl->parse(\"aanpassenError\", false);\n }\n//-------------------------------\n\n//-------------------------------\n// Load all form fields\n\n//-------------------------------\n\n//-------------------------------\n// Build WHERE statement\n//-------------------------------\n \n if( !strlen($plogin_id)) $bPK = false;\n \n $sWhere .= \"login_id=\" . tosql($plogin_id, \"Number\");\n $tpl->set_var(\"PK_login_id\", $plogin_id);\n//-------------------------------\n//-------------------------------\n// aanpassen Open Event begin\n// aanpassen Open Event end\n//-------------------------------\n\n $tpl->set_var(\"FormTitle\", $sFormTitle);\n\n//-------------------------------\n// Build SQL statement and execute query\n//-------------------------------\n $sSQL = \"select * from login where \" . $sWhere;\n // Execute SQL statement\n $db->query($sSQL);\n $bIsUpdateMode = ($bPK && !($sAction == \"insert\" && $sForm == \"aanpassen\") && $db->next_record());\n//-------------------------------\n\n//-------------------------------\n// Load all fields into variables from recordset or input parameters\n//-------------------------------\n if($bIsUpdateMode)\n {\n $fldlogin_id = $db->f(\"login_id\");\n//-------------------------------\n// Load data from recordset when form displayed first time\n//-------------------------------\n if($saanpassenErr == \"\") \n {\n $fldnaam = $db->f(\"naam\");\n $fldgebruikersnaam = $db->f(\"gebruikersnaam\");\n $fldwachtwoord = $db->f(\"wachtwoord\");\n $fldniveau = $db->f(\"niveau\");\n $fldcategories_id = $db->f(\"categories_id\");\n }\n $tpl->set_var(\"aanpassenInsert\", \"\");\n $tpl->parse(\"aanpassenEdit\", false);\n//-------------------------------\n// aanpassen ShowEdit Event begin\n// aanpassen ShowEdit Event end\n//-------------------------------\n }\n else\n {\n if($saanpassenErr == \"\")\n {\n $fldlogin_id = tohtml(get_param(\"login_id\"));\n }\n $tpl->set_var(\"aanpassenEdit\", \"\");\n $tpl->parse(\"aanpassenInsert\", false);\n//-------------------------------\n// aanpassen ShowInsert Event begin\n// aanpassen ShowInsert Event end\n//-------------------------------\n }\n $tpl->parse(\"aanpassenCancel\", false);\n//-------------------------------\n// aanpassen Show Event begin\n// aanpassen Show Event end\n//-------------------------------\n\n//-------------------------------\n// Show form field\n//-------------------------------\n $tpl->set_var(\"login_id\", tohtml($fldlogin_id));\n $tpl->set_var(\"naam\", tohtml($fldnaam));\n $tpl->set_var(\"gebruikersnaam\", tohtml($fldgebruikersnaam));\n $tpl->set_var(\"wachtwoord\", tohtml($fldwachtwoord));\n $tpl->set_var(\"aanpassenLBniveau\", \"\");\n $LOV = split(\";\", \"1;Klant;2;Administrator;3;Beheerder\");\n \n if(sizeof($LOV)%2 != 0) \n $array_length = sizeof($LOV) - 1;\n else\n $array_length = sizeof($LOV);\n reset($LOV);\n for($i = 0; $i < $array_length; $i = $i + 2)\n {\n $tpl->set_var(\"ID\", $LOV[$i]);\n $tpl->set_var(\"Value\", $LOV[$i + 1]);\n if($LOV[$i] == $fldniveau) \n $tpl->set_var(\"Selected\", \"SELECTED\");\n else\n $tpl->set_var(\"Selected\", \"\");\n $tpl->parse(\"aanpassenLBniveau\", true);\n }\n $tpl->set_var(\"aanpassenLBcategories_id\", \"\");\n $tpl->set_var(\"ID\", \"\");\n $tpl->set_var(\"Value\", $scategories_idDisplayValue);\n $tpl->set_var(\"Selected\", \"\");\n $tpl->parse(\"aanpassenLBcategories_id\", true);\n $lookup_categories_id = db_fill_array(\"SELECT * FROM `categories` WHERE parent = 15\");\n\n if(is_array($lookup_categories_id))\n {\n reset($lookup_categories_id);\n while(list($key, $value) = each($lookup_categories_id))\n {\n $tpl->set_var(\"ID\", $key);\n $tpl->set_var(\"Value\", $value);\n if($key == $fldcategories_id)\n $tpl->set_var(\"Selected\", \"SELECTED\" );\n else \n $tpl->set_var(\"Selected\", \"\");\n $tpl->parse(\"aanpassenLBcategories_id\", true);\n }\n }\n \n $tpl->parse(\"Formaanpassen\", false);\n\n//-------------------------------\n// aanpassen Close Event begin\n// aanpassen Close Event end\n//-------------------------------\n\n//-------------------------------\n// aanpassen Show end\n//-------------------------------\n}", "function generate_form_from_table($tb,$item_id=0)\t{\n\n\tglobal $Form,$dbSwitch,$outPut,${$tb},$customInserts,$customPrints;\n\t\n\t\n//\tprint_r($_POST);\n\t\n\t\n\t\n//\t\tse quel tipo di form ha bisogno di una variabile per creare una nuova voce\n//\t\tin caso di assenza di questa variabile restituisco messaggio e back.\n\t\n\t\n\tif\t(\t(\tpreg_match(\t\"/\".$tb.\"\\[/\",\tREQUEST_MANDATORY_VALUES)\t)\t&&\t(\t!$_REQUEST[item_id]\t)\t)\t:\n\t\n\t\t$value\t=\tpreg_replace(\t\"/.*\".$tb.\"\\[([A-Za-z0-9_]*)\\].*/\",\"$1\",\tREQUEST_MANDATORY_VALUES\t);\n\t\t\n\t\tif\t(\t!$_REQUEST[$value]\t)\t:\t\t\n\t\t\t\n\t\t\t$form\t.=\t$Form->open(\"clarify\",FORM_ACTION,'POST',true,'Associazione');\n\t\t\t\n\t\t\t\n\t\t\t\n\t//\t\t$sql\t=\t\"SELECT \".$value.\" FROM \".find_primary_key_parent($value);\t###CONTROLLARE###\n\t\t\t\n\t//\t\t$data_list\t=\t$dbSwitch->select($sql);\n\t\t\t\n\t\t\t$form\t.=\t$Form->dynamic_select(codice_cliente,CLIENTI,ragione_sociale,cliente);\n\t\t\t\n\t\t\t$form\t.=\t$Form->submit(\"avanti\");\n\t\t\t\n\t\t\t$form\t.=\t$Form->close(true);\n\t\t\t\n\t\t\treturn\t$form;\t\t\t\n\t\t\n\t\tendif;\n\t\n\tendif;\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\n\t\n\tif\t(\t!$item_id\t)\t:\t$item_id\t=\t$_GET[item_id];\tendif;\n\n\n\t//definisco i tipi di campi\n\t$fields\t=\tfield_types($tb);\n\t\n\t\n\n\n\n\n\n\n\n\n\n\n//------- SE E' STATO POSTATO IL FORM IN QUESTIONE AGGIORNO -------//\n\n\tif\t(\t$_POST[$tb.'_is_sent']\t)\t:\n\t\n\t\t\n\t\tif\t(\tform_is_correct(\t$tb,\t$fields\t)\t)\t:\t\n\t\t\n\t\t\n\t\t\n\t\t\t\t//definisco il tipo di query\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif\t(\t$item_id\t)\t:\n\t\t\t\t\t\n\t\t\t\t\t\t$action\t=\t\"UPDATE \"; $where\t=\t\" WHERE \".primary_key($tb).\"='\".$item_id.\"'\";\n\t\t\t\t\t\n\t\t\t\t\telse:\n\t\t\t\t\t\n\t\t\t\t\t\t$action\t=\t\"INSERT INTO \";\n\t\t\t\t\t\n\t\t\t\t\tendif;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t//preparo i pezzi di query\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tfor\t(\t$i=0;\t$i\t<\tcount($fields);\t$i++\t)\t:\n\t\t\t\t\t\n\t\t\t\t\t\n#************\t\t\t//COMBO INSERT da rivedere!!!!!!!!!!!!!!!!!!!!!! (3 variabili)\n\t\t\t\t\t\n\t\t\t\t\t\tif\t(\tpreg_match(\t\"/\".$fields[$i][Field].\"/\",\tCOMBO_INSERTS\t)\t)\t:\n\t\t\t\t\t\t\n\t\t\t\t\t\t/*\tATTENZIONE LA LISTA DELLE ATTREZZATURE ASSOCIATE VANNO PRESE DALLA TABELLA PRODOTTI SPECIFICI!\t*/\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t$ins_funct\t=\tpreg_replace(\"/.*\".$fields[$i][Field].\"\\[([^\\[\\]$]*)\\].*/\",\"$1\",COMBO_INSERTS\t);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$sets\t.=\t$ins_funct($fields[$i][Field],$tb,$item_id);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//SPECIAL INSERT (1 variabile)\n\t\t\t\t\t\telseif\t(\tpreg_match(\t\"/\".$fields[$i][Field].\"/\",\tSPECIAL_INSERTS\t)\t):\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$ins_funct\t=\tpreg_replace(\"/.*\".$fields[$i][Field].\"\\[([^\\[\\]$]*)\\].*/\",\"$1\",SPECIAL_INSERTS\t);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$toPost\t=\t$ins_funct($_POST[$fields[$i][Field]]);\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$sets.=\" \".$fields[$i][Field].\"='\".$toPost.\"', \";\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//NORMAL INSERT\n\t\t\t\t\t\telse:\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif\t(\t$_POST[$fields[$i][Field]]\t!=\t$_POST['PRE_'.$fields[$i][Field]]\t)\t:\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$sets.=\" \".$fields[$i][Field].\"='\".trim($_POST[$fields[$i][Field]]).\"', \";\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tendif;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tendif;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tendfor;\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t//se è stato immesso/modificato almeno un campo metto insieme la query\n\t\t\n\t\t\t\t\n\t\t\t\tif\t(\t$sets\t)\t:\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t//preparo gli aggiornamenti di data e ora\n\t\t\t\t\t\n\t\t\t\t\t$time=time();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif\t(\thas_date_to_be_updated($fields)\t)\t:\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\tif\t(\t!$_POST[mod]\t)\t:\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t$update_entry_date=\", entry_date=\".$time;\t//data inserimento\n\t\t\t\t\t\t\n\t\t\t\t\t\tendif;\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t$update_mod_date=\", mod_date=\".$time;\t\t\t\t//data modifica\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tendif;\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif\t(\tisClosing()\t)\t:\n\t\t\t\t\t\n\t\t\t\t\t\t$update_close_date=\", close_date=\".$time;\t\t//data chiusura\n\t\t\t\t\t\n\t\t\t\t\tendif;\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\t\t$sql=$action.$tb.\" SET \".substr($sets,-strlen($sets),strlen($sets)-2).$update_entry_date.$update_mod_date.$update_close_date.$where;\n\t\t\t\t\t\n\t\t\t\t\t\n#\t\t\t\t\tprint $sql;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t$form\t.=\t$dbSwitch->insert($sql);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tunset($sets,$sql);\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\tendif;\n\n\n\n\n\n\t\t\t\t\t//------se è stato fatto salva e chiudi ed il form è corretto \n\t\t\t\t\t//porto di nuovo all'elenco della categoria in questione-------//\n\t\t\t\t\t\n\t\t\t\t\tif\t(\t$_POST['salva-e-chiudi']\t)\t:\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\theader(\"Location: \".ROOT.\"?cat=\".$_REQUEST[cat]);\n\t\t\t\t\t\n\t\t\t\t\tendif;\t\t\n\n\t\n\t\t\t\n\t\t\n\t\tendif;//fine se il form è corretto\n\t\n\t\n\tendif;//fine se c'è post\n\n//------- FINE AGGIORNAMENTO DATI IN PRESENZA DI POST -------//\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//apro il form\n\t$form\t.=\t$Form->open($tb);\n\n\n\n\n\n//Se è stato specificato l'item ID vado ad aprire la voce\n\t\n\tif\t(\t$item_id\t)\t:\n\t\n\t\t$dati\t=\t$dbSwitch->select(\t\"SELECT * FROM \".$tb.\" WHERE \".primary_key($tb).\"='\".$item_id.\"'\"\t);\n\t\t\n\t\tif\t(\t!is_array($dati)\t)\t:\t\t$_SESSION[err_mess]\t.= $dati;\tendif;\n\t\t\n\t\tif\t(\t!count($dati)\t\t)\t:\t\t$_SESSION[err_mess]\t.= \"non sono state trovate le informazioni.<br/>\";\tendif;\n\t\t\n\t\t$form\t.=\t$Form->hidden(\t\"mod\"\t,\t$item_id\t);\n\t\t\n\t\t\t\n\t\t\n\tendif;\n\t\n\n\n\n\n//per ogni campo creo l'apposito campo form\n\n\n\tfor\t(\t$i=0;\t$i\t<\tcount($fields);\t$i++\t)\t:\n\t\n\t\n\t\t//se il value va convertito lo converto ora\t\t\n\t\t$dati[0][$fields[$i][Field]]\t=\tdisplay_converted_form_value($fields[$i][Field],$dati[0][$fields[$i][Field]]);\n\t\t\n\t\t\t\n\t\n\t//definisco il fieldset al quale aqppartiene questo specifico campo\n\n\t\n\t\n\tforeach (${$tb}[fieldsets] as $k => $v) {\n\t\t\n\t\tif\t(\tpreg_match(\t\"/\".$fields[$i][Field].\"/\", $v)\t)\t:\t$fieldset=$k; endif;\n\t\t\n\t}\n\t\n\tif\t(\t!$fieldset\t)\t:\t$fieldset=\"altro\";\tendif;\n\t\n\t\n\t$FORM[$fieldset]\t.=\t\"\\n<div class='\".$fields[$i][Field].\"'>\\n\";\n\t\n\t\n\t\n\t\t//-- stampo eventuali messaggi e stili di errore --//\n\t\t\n\t\tif\t(\t$_POST[$tb.'_is_sent']\t&&\t!is_valid(\t$tb,$fields[$i][Field],true\t)\t)\t:\t\n\t\t\n\t\t\t$class=\" class='error'\";\n\t\t\n\t\tendif;\n\t\t\n\t\t//-- fine eventuali messaggi e stili di errore--//\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\n\t\t//se il campo è da trattare in modo speciale\n\t\tif\t(\tis_special_field($fields[$i][Field])\t)\t:\n\t\t\n\t\t\t//richiamo l'apposita funzione dalla classe form\n\t\t\t$FORM[$fieldset]\t.=\t$Form->$fields[$i][Field]($dati[0][$fields[$i][Field]],$err_mess);\n\t\t\n\t\t\n\t\t//se viene specificato un fieldtype diverso\n\t\telseif\t(\tis_custom_field_type(\t$fields[$i][Field]\t)\t)\t:\n\t\t\n\t\t\t//richiamo l'apposita funzione dalla classe form\n\t\t\t\n\t\t\t//print get_custom_field_type(\t$fields[$i][Field]\t);\n\t\t\t\n\t\t\t$function=get_custom_field_type(\t$fields[$i][Field]\t);\n\t\t\t\n\t\t\t//se il campo personalizzato ha bisogno di variabili immetto fino alle prima 6 variabili presenti dopo la prima voce, separate da virgole nel file formconfig.php\n\t\t\t\n\t\t\t$FORM[$fieldset]\t.=\t$Form->$function[0]($fields[$i][Field],$function[1],$function[2],$function[3],$function[4],$function[5],$function[6]);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\telse:\t//altrimenti se è un campo normale\n\t\t\n\t\t\t\t\n\t\t\t//se è varchar o smallint\n\t\t\tif\t(\tpreg_match('/varchar/',\t$fields[$i][Type]\t)\t||\n\t\t\t\t\tpreg_match('/smallint/',\t$fields[$i][Type]\t)\t||\n\t\t\t\t\tpreg_match('/int/',\t$fields[$i][Type]\t)\n\t\t\t\t)\t:\n\t\t\t\n\t\t\t\t$maxlength\t=\tpreg_replace('/[a-z]+\\(([0-9]+)\\)/','$1',$fields[$i][Type]);\n\t\t\t\t\n\t\t\t\t$FORM[$fieldset]\t.=\t$Form->input($fields[$i][Field],$dati[0][$fields[$i][Field]],$maxlength,$class,$err_mess);\n\t\t\t\n\t\t\t\n\t\t\tendif;\n\t\t\t\n\t\t\t\n\t\t\t//----------\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//se SET o ENUM\n\t\t\tif\t(\tpreg_match('/set/',\t$fields[$i][Type]\t)\t||\tpreg_match('/enum/',\t$fields[$i][Type]\t)\t)\t:\n\t\t\t\n\t\t\t\n\t\t\t$labels\t=\tpreg_replace('/\\'/','',$fields[$i][Type]);\n\t\t\t$labels\t=\tpreg_replace('/set\\((.*)\\)/','$1',$labels);\n\t\t\t$labels\t=\tpreg_replace('/enum\\((.*)\\)/','$1',$labels);\n\t\t\t$labels\t=\texplode(\",\", $labels); //metto tutti i valori in un array\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t$FORM[$fieldset]\t.=\t$Form->select($fields[$i][Field],$labels,$dati[0][$fields[$i][Field]]);\n\t\t\t\n\t\t\t\n\t\t\tendif;\n\t\t\t\n\t\t\t\n\t\t\t//----------\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//se TEXT\n\t\t\tif\t(\t$fields[$i][Type] === \"text\"\t)\t:\n\t\t\t\n\t\t\t$FORM[$fieldset]\t.=\t$Form->textarea($fields[$i][Field],$dati[0][$fields[$i][Field]]);\n\t\t\t\n\t\t\tendif;\n\t\t\t\n\t\t\t\n\t\t\t//----------\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t\tendif;\t//fine se il campo non speciale\n\t\t\n\t\t\t\t\n\t\t\n\t\n\t\n\t\t\n\t\t\n\t\t//$FORM[$fieldset]\t.= is_valid($tb,$dati[0][$fields[$i][Field]]);\n\t\t\n\t\t\n\t\t\n\t\t$FORM[$fieldset]\t.=\t$_SESSION[err_mess][$fields[$i][Field]];\n\t\t\n\t\tunset($_SESSION[err_mess]);\n\t\t\n\t\t$FORM[$fieldset]\t.=\t\"</div>\\n\\n\";\n\t\n\t\n\t\n\t\n\t\n\t//se c'è un'inserto da mettere dopo questo fieldset lo metto\n//\tprint \"preg_match(\\\"/\".$fieldset.\"/\".${$tb}[custom_inserts].\")\";\n\t\t\t\n\tif(\t(\tpreg_match(\"/\".$fieldset.\"/\",${$tb}[custom_inserts])\t)\t&&\t(\t!$FORM[custom_field]\t)\t):\n\t\n\t$custom_field\t=\tpreg_replace(\"/.*\".$fieldset.\"\\[([^\\[\\]$]*)\\].*/\",\"$1\",${$tb}[custom_inserts]\t)\t;\n\t\n\t$FORM[$custom_field]\t=\t$customInserts->$custom_field();\n\t\n\tendif;\n\t\n\t\n\t\n\t\n\t\n\tunset($fieldset,$class, $err_mess);\n//\t\tprint $fields[$i][Field].$i.$tb;\n\tendfor;\n\t\n\t\n\t\n\nprint_r($FORM);exit;\n\n\nforeach ($FORM as $key => $value) {\n \n\t$FIELDSET[$key]\t.=\t\"\\n\\n<fieldset id='\".$key.\"'>\\n\";\t\n\t$FIELDSET[$key]\t.=\t\"\\n<legend>\";\n\t$FIELDSET[$key]\t.=\t$outPut->label($key);\n\t$FIELDSET[$key]\t.=\t\"</legend>\\n\";\n\t$FIELDSET[$key]\t.=\t$value;\n\t$FIELDSET[$key]\t.=\t\"\\n</fieldset>\\n\\n\";\n\t\n}\n\n\n//se non è stato stabilito l'ordine dei fieldset seguo l'ordine di apparizione da DB\n\nif\t(\t!trim(${$tb}[fieldset_order])\t\t)\t:\n\n\tforeach ($FIELDSET as $key => $value) :\n\t\t\n\t\t$form\t.=\t$FIELDSET[$key];\n\t\t\n\tendforeach;\n\t\n\t\nelse:\n\n\tforeach (explode(\" \",${$tb}[fieldset_order]) as $value) :\n\t\t\n\t\t$form\t.=\t$FIELDSET[$value];\n\t\t\n\tendforeach;\n\t\n\nendif;\n\n\n\n\n\n\n\n$form\t.=$Form->tripleSubmit();\n\n\n$form\t.=$Form->close();\n\n\n\n\n\n\n\n\n\n\n\n\n//aggiungo eventuale lista correlata\nif\t(\tpreg_match(\t\"/\".$tb.\"\\[[^\\[\\]]*\\]/\",FORM_RELATED_LISTS\t)\t)\t:\n\t\t\t\t\n\t$related_list\t=\tpreg_replace(\t\"/.*\".$tb.\"\\[([^\\[\\]]*)\\].*/\",\"$1\",FORM_RELATED_LISTS\t);\n\t\n\t$form\t.=\tlist_($related_list,\" WHERE \".primary_key($tb).\"='\".$_GET[item_id].\"'\",1,1,'scroll');\t\n\t\nendif;\n\n//print_r($_POST);\n\nreturn $form;\n\n\n}", "static function newform()\n\t{\n\t\treturn '\n\t\t<h2>Neue Wette eintragen</h2>\n\t\t<small>Eine Wette wird erst gestartet wenn der Wetter (das bist DU wenn du eine Wette einträgst) die offene Wette startet.</small>\n\t\t<form action=\"'.getURL(false,false).'\" method=\"post\">\n\t\t<table class=\"border\">\n\t\t<tr><td>\n\t\t<b>Wett Titel:<b> <br />\n\t\t<input type=\"text\" name=\"titel\" class=\"text\" size=\"40\">\n\t\t</td></tr><tr><td>\n\t\t<b>Wette: </b><br />\n\t\t<textarea name=\"wette\" cols=\"40\" rows=\"5\" class=\"text\"></textarea>\n\t\t</td></tr><tr><td>\n\t\t<b>Wetteinsatz: </b><br />\n\t\t<textarea name=\"einsatz\" cols=\"40\" rows=\"3\" class=\"text\"></textarea>\n\t\t</td></tr><tr><td>\n\t\t<b><small>Gültigkeit (in Tagen ab Wettstart, 0 steht für unbegrenzt):</small></b>\n\t\t<br />\n\t\t<input type=\"text\" name=\"dauer\" class=\"text\" size=\"4\">\n\t\t</td></tr><tr><td>\n\t\t<br />\n\t\t<small>\n\t\tEine Wette ist beendet wenn, <b>beide Parteien</b> <br />\n\t\tsich auf einen <b>Sieg oder eine Niederlage einigen</b> können.<br />\n\t\t</small>\n\t\t<br />\n\t\t<input type=\"submit\" value=\"Wette eintragen\" class=\"button\">\n\t\t</td></tr>\n\t\t</table>\n\t\t</form>';\n\t}", "function _GetFrm(){\n\t\t// Valido\n\t\tif(!isset($_POST['diagramacion']) || $_POST['diagramacion'] == 0){\n\t\t\t$this->Error .= \"Es requerido seleccionar una diagramación.\\n\";\n\t\t}\n\t\tif(trim($_POST['titulo']) == \"\"){\n\t\t\t$this->Error .= \"Es requerido especificar un título de noticia.\\n\";\n\t\t}\n\t\tif(trim($_POST['copete']) == \"\"){\n\t\t\t$this->Error .= \"Es requerido especificar un texto inicial de noticia.\\n\";\n\t\t}\n\t\tif(trim($_POST['cuerpo']) == \"\"){\n\t\t\t$this->Error .= \"Es requerido especificar un texto principal de noticia.\\n\";\n\t\t}\n\t\tif($this->Error == \"\"){\n\t\t\t// Cargo desde el formulario\n\t\t\t$this->Registro['id_noticia'] = $_POST['id_noticia'];\n\t\t\t$this->Registro['diagramacion'] = addslashes($_POST['diagramacion']);\n\t\t\t$this->Registro['titulo'] = addslashes($_POST['titulo']);\n\t\t\t$this->Registro['copete'] = addslashes($_POST['copete']);\n\t\t\t$this->Registro['cuerpo'] = stripslashes($_POST['cuerpo']);\n\t\t\t$this->Registro['visible'] = $_POST['visible'] ? 1 : 0;\n\t\t\tif($this->Registro['id_noticia'] == \"\"){\n\t\t\t\t$this->Registro['fecha_creacion'] = date('Y').\"-\".date('m').\"-\".date('d').\" \".date('H').\":\".date('i').\":00\";\n\t\t\t}\n\t\t}\n\t}", "function consultaFacultades() {\r\n include_once($this->configuracion[\"raiz_documento\"].$this->configuracion[\"clases\"].\"/html.class.php\");\r\n $this->html = new html();\r\n $facultades=$this->consultarFacultades();\r\n \r\n foreach ($facultades as $key=>$facultad) {\r\n $registro[$key][0]=$facultad['COD_FACULTAD'];\r\n $registro[$key][1]=$facultad['NOMBRE_FACULTAD'];\r\n }?>\r\n\t\t<form enctype='multipart/form-data' method='POST' action='index.php' name='<? echo $this->formulario?>'>\r\n <table width=\"100%\" align=\"center\" border=\"1\" cellpadding=\"10\" cellspacing=\"0\" >\r\n <tr>\r\n <td>Seleccione la Facultad: \r\n <?$mi_cuadro=$this->html->cuadro_lista($registro,'facultad',$this->configuracion,-1,\"\",FALSE,\"\",\"facultad\");\r\n echo $mi_cuadro;?>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td align=\"center\">\r\n <input type=\"hidden\" name=\"opcion\" value=\"consultaProyectos\">\r\n <input type=\"hidden\" name=\"action\" value=\"<? echo $this->bloque ?>\">\r\n <input class=\"boton\" type=\"button\" value=\"Continuar\" onclick=\"document.forms['<? echo $this->formulario?>'].submit()\">\r\n </td>\r\n </tr>\r\n </table>\r\n\t\t</form>\t\r\n <?\r\n \r\n \r\n }", "function mostrarFormulario(){\r\n $this->consultaFacultades();\r\n }", "function loadClienteForm(){\n\t\t$this->procedimiento='rec.ft_cliente_ime';\n\t\t$this->transaccion='REC_CLI_GET';//'\n\t\t$this->tipo_procedimiento='IME';//tipo de transaccion\n\n\t\t$this->setParametro('id_cliente','id_cliente','int4');\n\n\t\t$this->captura('v_valor','varchar');\n\t\t$this->captura('genero','varchar');\n\t\t$this->captura('ci','varchar');\n\t\t$this->captura('email','varchar');\n\t\t$this->captura('email2','varchar');\n\t\t$this->captura('direccion','varchar');\n\t\t$this->captura('celular','varchar');\n\t\t$this->captura('nombre','varchar');\n\t\t$this->captura('lugar_expedicion','varchar');\n\t\t$this->captura('apellido_paterno','varchar');\n\t\t$this->captura('telefono','varchar');\n\t\t$this->captura('ciudad_residencia','varchar');\n\t\t$this->captura('id_pais_residencia','int4');\n\t\t$this->captura('nacionalidad','varchar');\n\t\t$this->captura('barrio_zona','varchar');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('apellido_materno','varchar');\n\t\t$this->captura('id_usuario_ai','int4');\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('usuario_ai','varchar');\n\t\t$this->captura('id_usuario_reg','int4');\n\t\t$this->captura('fecha_mod','timestamp');\n\t\t$this->captura('id_usuario_mod','int4');\n\t\t$this->captura('usr_reg','varchar');\n\t\t$this->captura('usr_mod','varchar');\n\n\t\t$this->captura('nombre_completo1','text');\n\t\t$this->captura('nombre_completo2','text');\n\t\t$this->captura('pais_residencia','varchar');\n\t\t//Definicion de la lista del resultado del query\n\t\t/*$this->captura('v_id_cliente','int4');\n\t\t$this->captura('v_genero','varchar');\n\t\t$this->captura('v_ci','varchar');\n\t\t$this->captura('v_email','varchar');\n\t\t$this->captura('v_direccion','varchar');\n\t\t$this->captura('v_celular','varchar');\n\t\t$this->captura('v_nombre','varchar');\n\t\t$this->captura('v_lugar_expedicion','varchar');\n\t\t$this->captura('v_apellido_paterno','varchar');\n\t\t$this->captura('v_telefono','varchar');\n\t\t$this->captura('v_ciudad_residencia','varchar');\n\t\t$this->captura('v_id_pais_residencia','int4');\n\t\t$this->captura('v_nacionalidad','varchar');\n\t\t$this->captura('v_barrio_zona','varchar');\n\t\t//$this->captura('estado_reg','varchar');\n\t\t$this->captura('v_apellido_materno','varchar');\n\t\t//$this->captura('id_usuario_ai','int4');\n\t\t//$this->captura('fecha_reg','timestamp');\n\t\t//$this->captura('usuario_ai','varchar');\n\t\t//$this->captura('id_usuario_reg','int4');\n\t\t//$this->captura('fecha_mod','timestamp');\n\t\t//$this->captura('id_usuario_mod','int4');\n\t\t//$this->captura('usr_reg','varchar');\n\t\t//$this->captura('usr_mod','varchar');\n\n\t\t$this->captura('v_completo','text');\n\t\t$this->captura('v_nombre_completo2','text');\n\t\t$this->captura('v_pais_residencia','varchar');*/\n\t\t//$this->captura('nombre','varchar');\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "protected function onSubmit()\r {\r }", "public function AddFraisForfait()\r\n {\r\n $frais = new Frais();\r\n //Get le mois\r\n $mois = $this->GetMois(date('m'));\r\n //Ajoute a LigneFraisForfait les données suivantes\r\n $frais->AddLigneFraisForfait($_SESSION['uid'],$mois,$_POST['typefrais'],$_POST['quantite']);\r\n\r\n $this->MainPage();\r\n }", "public function show_fatora()\n {\n $this->load->view('admin/finance_accounting/khdamat_mosanda/add_fatora_views/load_page',$_POST);\n }", "public function addform() {\n require_once 'modeles/etudiant_modele.php';\n require_once 'vues/etudiants/etudiants_addform_vue.php';\n }", "private function ticketToevoegenAction()\n {\n //controlleert of er een formulier is ingevuld\n if (isset($_POST) && !empty($_POST))\n {\n $ticket_id = $this->model->maakTicket();\n $this->model->voegAgendaEventToe($ticket_id);\n $_SESSION['ticket_id'] = $ticket_id;\n\n $this->forward('getBeschikbareExpert', 'admin');\n } else\n {\n $this->view->set('gebruikers', $this->model->geefExperts());\n $this->view->set('klant_id', $_REQUEST['klant_id']);\n }\n }", "function formMembreJuryEpreuve(){\n $this->vue->titre = 'Affecter des membres du jury à une épreuve';\n $tableMembresJuryEpreuve=new Zoraux_Modeles_MembreJuryEpreuve();\n $membreJuryEpreuve=$tableMembresJuryEpreuve->newMembreJuryEpreuve();\n $this->vue->membreJuryEpreuve=$membreJuryEpreuve;\n \n $tableMembresJury=new Zoraux_Modeles_MembreJury();\n $this->vue->professeurs=$tableMembresJury->where('professeur=?',array('1'));\n $this->vue->professionnels=$tableMembresJury->where('professionnel=?',array('1'));\n \n $tableEpreuves=new Zoraux_Modeles_Epreuve();\n $this->vue->epreuves=$tableEpreuves->liste();\n \n $this->informations();\n }", "function documento_form($azione=\"\",$id_imm=\"\",$id_doc){\n\t$db = new db(DB_USER,DB_PASSWORD,DB_NAME,DB_HOST);\n\t$str=\"\";\n\t\n\tif ($azione==\"mod\") {\n\t\t\n\t\t$q_mod=\"SELECT * FROM imm_doc JOIN documento ON imm_doc.id_doc=documento.id_doc WHERE documento.id_doc = $id_doc\";\n\t\t$r_mod=$db->query($q_mod);\n\t\t$ro_mod=mysql_fetch_array($r_mod);\n\t}\t\n\t$str.= \"<div class=\\\"clienti\\\">\\n\";\n\t$str.=\"<form name=\\\"mainForm\\\" method=\\\"POST\\\" action=\\\"documento_save.php\\\" enctype=\\\"multipart/form-data\\\">\\n\";\n\t$str.=\"<input type=\\\"hidden\\\" name=\\\"id_imm\\\" value=\\\"\";\n\tif ($azione==\"mod\") {\n\t\t$str.= $ro_mod['id_imm'];\n\t}else {\n\t\t$str.= $id_imm;\n\t}\n\t\n\t$str.= \"\\\">\\n\";\n\t\n\tif ($azione==\"mod\") {\n\t\t$str.=\"<input type=\\\"hidden\\\" name=\\\"id_doc\\\" value=\\\"\";\n\t\t$str.= $ro_mod['id_doc'];\n\t\t$str.= \"\\\">\\n\";\n\t}\n\t\n\t$str.=\"<input type=\\\"hidden\\\" name=\\\"azione\\\" value=\\\"\";\n\t$str.= $azione;\n\t$str.= \"\\\">\\n\";\n\t$str.= \"<TABLE id=\\\"clienti\\\">\\n\";\n\t$str.= \"<TR>\\n\";\n\t$str.= \"<TD class=\\\"clienti_show_header\\\">\\n\";\n\t$str.= \"Rif.Imm\\n\";\n\t$str.= \"</TD>\\n\";\n\t$str.= \" <TD class=\\\"clienti_show\\\">\\n\";\n\tif ($azione==\"mod\") {\n\t\t$str.= \"<b>\". $ro_mod['id_imm'].\"</b>\";\n\t}else {\n\t\t$str.= \" <b>\". $id_imm.\"</b>\";\n\t}\n\t\n\t$str.= \"</TD>\";\n\t$str.= \"</TR>\";\n\tif ($azione==\"mod\"){\n\t\t$str.= \"<TR>\\n\";\n\t\t$str.= \"<TD class=\\\"clienti_show_header\\\">\\n\";\n\t\t$str.= \"Note Documento\\n\";\n\t\t$str.= \"</TD>\\n\";\n\t\t$str.= \" <TD class=\\\"clienti_show\\\">\\n\";\n\t\t\n\t\t$str.= $ro_mod['note'];\n\t\t\n\t\t$str.= \"</TD>\";\n\t\t$str.= \"</TR>\";\n\t}\n\t$str.= \"<TR>\\n\";\n\t$str.= \"<TD class=\\\"clienti_show_header\\\">\\n\";\n\t$str.= \"Seleziona Il documento\\n\";\n\t$str.= \"</TD>\\n\";\n\t$str.= \" <TD class=\\\"clienti_show\\\">\\n\";\n\t$str.= \"<input name=\\\"file\\\" type=\\\"file\\\">\\n\";\n\t$str.= \"</TD>\\n\";\n\t$str.= \"</TR>\\n\";\n\t$str.= \"<TR>\\n\";\n\t$str.= \"<TD class=\\\"clienti_show_header\\\">\\n\";\n\t$str.= \"Note Documento\\n\";\n\t$str.= \"</TD>\\n\";\n\t$str.= \" <TD class=\\\"clienti_show\\\">\\n\";\n\t$str.= \"<textarea cols=\\\"50\\\" rows=\\\"10\\\" name=\\\"note\\\">\\n\";\n\tif ($azione==\"mod\") {\n\t\t$str.=$ro_mod['note'];\n\t}\n\t$str.=\"</textarea>\\n\";\n\t$str.= \"</TD>\\n\";\n\t$str.= \"</TR>\\n\";\n\t$str.= \"<TR>\";\n\t$str.= \"<TD colspan=\\\"2\\\" align=\\\"center\\\">\";\n\t$str.= \"<input type=\\\"submit\\\" value=\\\"Submit\\\" class=\\\"buttonSubmit\\\" />\";\n\t$str.= \"</TD>\";\n\t$str.= \"</TR>\";\n\t$str.= \"</TABLE>\";\n\t$str.=\"</form>\";\n\t$str.=\"</div>\";\n\n\treturn $str;\n}", "function generar_form_entrega($pagina_llamado,$id_mov,$es_pedido_material,$mostrar_botones_entregar=1)\r\n{\r\n\tglobal $estado,$deposito_origen,$deposito_destino,$id_licitacion,$nrocaso,$permiso,$hay_entregas_hechas;\r\n global $pm_rma_producto_sl;\r\n \r\n \r\n\t $flag=0;\r\n\t $items=get_items_mov($id_mov);\r\n\t?>\r\n\t <script>\r\n\t function des_entregar_func(id_detalle_movimiento)\r\n\t {\r\n\t \t if(confirm('¿Está seguro que desea Des-Entregar esta fila?'))\r\n\t \t {\r\n\t \t \tdocument.all.des_entregar_fila.value=id_detalle_movimiento;\r\n\t \t \treturn true;\r\n\t \t }\r\n\t \t else\r\n\t \t return false;\r\n\t }//de function des_entregar_func(id_detalle_movimiento)\r\n\r\n\t function ajustar_cantidad_fila(id_fila_ajustar,cant_pedida,cant_entregada)\r\n\t {\r\n\r\n\t \tif(confirm('La cantidad de esta fila será reducida de '+cant_pedida+' a '+cant_entregada+' prodcutos, y los descontados quedarán disponibles en Stock.\\n¿Está seguro que desea continuar?'))\r\n\t \t{\r\n\t \t\tdocument.all.fila_ajustar_cantidad.value=id_fila_ajustar;\r\n\t \t\treturn true\r\n\t \t}\r\n\t \telse\r\n\t \t return false;\r\n\r\n\t }//de ajustar_cantidad_fila(id_fila_ajustar,cant_pedida,cant_entregada)\r\n\r\n\t </script>\r\n\t <input type=\"hidden\" name=\"des_entregar_fila\" value=\"\">\r\n\r\n\t <table align=\"center\" width=\"100%\" bordercolor=\"Black\" border=\"1\">\r\n\t\t\t <tr>\r\n\t\t\t <td colspan=\"3\" align=\"center\">\r\n\t\t\t <font size=\"3\"><b>Entrega de Productos</b></font>\r\n\t\t\t <input type=\"hidden\" name=\"fila_ajustar_cantidad\" value=\"\">\r\n\t\t\t </td>\r\n\t\t\t </tr>\r\n\t\t\t <?\r\n\t\t\t $hay_sin_entregar=0;\r\n\t\t\t for($x=0;$x<$items['cantidad'];$x++)\r\n\t\t\t {\r\n\t\t\t //traemos el log de los recibidos + la cantidad de productos recibidos\r\n\t\t\t //y las observaciones\r\n\t\t\t $query=\"select cantidad,observaciones,log_recibidos_mov.* from recibidos_mov join log_recibidos_mov using(id_recibidos_mov)\r\n\t\t\t where id_detalle_movimiento=\".$items[$x]['id_detalle_movimiento'].\" and recibidos_mov.ent_rec=0\";\r\n\t\t\t $datos_entregados_mov=sql($query) or fin_pagina();\r\n if ($datos_entregados_mov->fields['cantidad'] && !$flag)\r\n $flag=1;\r\n\r\n\t //las siguientes variables se usan para el control de los totales recibidos\r\n\t //un poco mas abajo en el codigo\r\n\t $entregados=($datos_entregados_mov->fields['cantidad'])?$datos_entregados_mov->fields['cantidad']:0;\r\n\t $enviados=$items[$x]['cantidad'];\r\n\t $producto=$items[$x]['descripcion'];\r\n\t $id_detalle_movimiento=$items[$x]['id_detalle_movimiento'];\r\n\t $id_prod_esp=$items[$x]['id_prod_esp'];\r\n\t $total_pedido=$items[$x]['cantidad'];\r\n\r\n\t if($entregados==0)\r\n\t $hay_sin_entregar=1;\r\n\t\t\t else\r\n\t\t\t $hay_entregas_hechas=1;\r\n\r\n\t $todo_recib=\"\";\r\n\t if($items[$x]['cantidad']<=$datos_entregados_mov->fields['cantidad'])\r\n\t $todo_recib=\"readonly\";\r\n\r\n ?>\r\n\t\t\t <tr>\r\n\t\t\t <td>\r\n\t\t\t\t <table width=\"100%\" align=\"center\">\r\n\t\t <tr id=mx>\r\n\t\t <td>\r\n\t\t <table width=\"100%\">\r\n\t\t <tr id=mx>\r\n\t\t <td>\r\n\t\t\t <?\r\n\t\t\t if($pagina_llamado==\"packaging\")\r\n\t\t\t\t {\r\n\t\t\t\t \t if($entregados<$total_pedido)\r\n\t\t\t\t \t {?>\r\n\t\t\t\t \t <input type=\"checkbox\" name=\"entregar_<?=$id_detalle_movimiento?>\" value=\"1\" class=\"estilos_check\" id=\"check_entregar_<?=$x?>\">\r\n\t\t\t\t\t\t <?\r\n\t\t\t\t \t }\r\n\t\t\t }//de if($pagina_llamado==\"packaging\")\r\n\t\t\t else //$pagina_llamado==\"entregar_sin_cb\"\r\n\t\t\t {\r\n\t\t\t \t if($es_pedido_material && $entregados==0 && permisos_check(\"inicio\",\"permiso_eliminar_fila_pm_autorizada\"))\r\n\t\t\t\t\t\t {?>\r\n\t\t\t\t\t\t <input type=\"checkbox\" name=\"eliminar_<?=$id_detalle_movimiento?>\" value=\"1\" class=\"estilos_check\">\r\n\t\t\t\t\t\t <?\r\n\t\t\t\t\t\t }\r\n\t\t\t }//del else de if($pagina_llamado==\"packaging\")\r\n\t\t\t\t\t ?>\r\n\t\t\t Producto: <?=$producto?>\r\n\t\t\t </td>\r\n\t\t\t <td width=\"1%\" align=\"right\">\r\n\t\t\t <?\r\n\t\t\t if($pagina_llamado==\"entregar_sin_cb\" && $es_pedido_material && permisos_check(\"inicio\",\"permiso_ajustar_cantidad_PM\") && $entregados>0 && ($entregados<$total_pedido))\r\n\t\t \t {?>\r\n\t\t \t \t<input type=\"submit\" name=\"ajustar_cantidad_PM\" value=\"A\" title=\"Ajustar Cantidad de la Fila\" class=\"little_boton\" onclick=\"return ajustar_cantidad_fila(<?=$id_detalle_movimiento?>,<?=$total_pedido?>,<?=$entregados?>)\">\r\n\t\t \t <?\r\n\t\t \t }//de if($es_pedido_material && permisos_check(\"inicio\",\"permiso_ajustar_cantidad_PM\"))\r\n\t\t\t\t\t\t?>\r\n\t\t\t\t\t </td>\r\n\t\t\t\t\t </tr>\r\n\t\t\t\t\t </table>\r\n\t\t </td>\r\n\t\t <td width=\"10%\" nowrap>U$S <?=(($items[$x]['precio'])!=\"\")?number_format($items[$x]['precio'],2,'.',''):\"\";?></td>\r\n\t\t <td width=\"13%\" nowrap>\r\n\t\t Total Pedidos <?=$total_pedido?>\r\n\t\t </td>\r\n\t\t <td width=\"13%\" nowrap>\r\n\t\t Entregados <?=$entregados?>\r\n\t\t </td>\r\n\t\t </tr>\r\n\t\t </table>\r\n\t\t <script>\r\n\t\t\t\t\t//ventana de codigos de barra entrega\r\n\t\t\t\t\tvar vent_cb_<?=$id_detalle_movimiento?>=new Object();\r\n\t\t\t\t\tvent_cb_<?=$id_detalle_movimiento?>.closed=true;\r\n\r\n\t\t\t\t\t//ventana de entrega sin codigos de barra\r\n\t\t\t\t\tvar vent_sin_cb_<?=$id_detalle_movimiento?>=new Object();\r\n\t\t\t\t\tvent_sin_cb_<?=$id_detalle_movimiento?>.closed=true;\r\n\t\t\t\t</script>\r\n\t\t <table width=\"100%\" align=\"center\">\r\n\t\t\t\t <tr>\r\n\t\t\t\t <td colspan=\"2\">\r\n\t\t\t\t \t<table align=\"center\" width=\"100%\" border=\"1\" bordercolor=#E0E0E0 bgcolor=\"#ACACAC\">\r\n\t\t\t\t \t <?\r\n\t\t\t\t \t $observaciones_recib=$datos_entregados_mov->fields['observaciones'];\r\n\t\t\t\t \t //generamos el log de recibidos para cada producto\r\n\t\t\t\t \t while(!$datos_entregados_mov->EOF)\r\n\t\t\t\t \t {?>\r\n\t\t\t\t \t <tr>\r\n\t\t\t\t \t <td>\r\n\t\t\t\t \t <font color=\"Black\">\r\n\t\t\t\t \t <b>\r\n\t\t\t\t\t \t Cantidad Entregada: <?=$datos_entregados_mov->fields['cantidad_recibida']?>\r\n\t\t\t\t\t \t <?\r\n\t\t\t\t\t \t if($datos_entregados_mov->fields['cantidad_recibida']<0 && abs($datos_entregados_mov->fields['cantidad_recibida'])==$total_pedido)\r\n\t\t\t\t\t \t {\r\n\t\t\t\t\t \t ?>\r\n\t\t\t\t\t \t (Fila Des-Entregada)\r\n\t\t\t\t\t \t <?\r\n\t\t\t\t\t \t }\r\n\t\t\t\t\t \t elseif($datos_entregados_mov->fields['cantidad_recibida']<0)\r\n\t\t\t\t\t \t {\r\n\t\t\t\t\t \t \techo \"(Código de Barras borrado)\";\r\n\t\t\t\t\t \t }\r\n\t\t\t\t\t \t ?>\r\n\t\t\t\t \t </b>\r\n\t\t\t\t \t </font>\r\n\t\t\t\t \t </td>\r\n\t\t\t\t \t <td>\r\n\t\t\t\t \t <font color=\"Black\">\r\n\t\t\t\t \t <b>Usuario: <?=$datos_entregados_mov->fields['usuario']?></b>\r\n\t\t\t\t \t </font>\r\n\t\t\t\t \t </td>\r\n\t\t\t\t \t <td align=\"right\">\r\n\t\t\t\t \t <font color=\"Black\">\r\n\t\t\t\t \t <b>Fecha: <?=fecha($datos_entregados_mov->fields['fecha'])?></b>\r\n\t\t\t\t \t </font>\r\n\t\t\t\t \t </td>\r\n\t\t\t\t \t </tr>\r\n\t\t\t\t \t <?\r\n\t\t\t\t \t $datos_entregados_mov->MoveNext();\r\n\t\t\t\t \t }//de while(!$datos_entregados_mov->EOF)\r\n\t\t ?>\r\n\t\t </table>\r\n\t\t </td>\r\n\t\t </tr>\r\n\t\t <tr>\r\n\t\t <td>\r\n\t\t <?\r\n\t\t //si hay que mostrar los botones de entregar\r\n\t\t if($mostrar_botones_entregar) { \r\n\t\t \t\r\n\t //me fijo si es rma san luis para diferenciar los casos\r\n\t ($pm_rma_producto_sl) ? $rma_san_luis =1 : $rma_san_luis = 0;\r\n\t\t \t \r\n\t\t \t $link_cb=encode_link(\"entregar_codigos_barra.php\",array(\"total_comprado\"=>$total_pedido,\"total_entregado\"=>$entregados,\"producto_nombre\"=>\"$producto\",\"id_prod_esp\"=>$id_prod_esp,\"id_movimiento\"=>$id_mov,\"id_detalle_movimiento\"=>$id_detalle_movimiento,\"es_pedido_material\"=>$es_pedido_material,\"deposito_origen\"=>$deposito_origen,\"deposito_destino\"=>$deposito_destino,\"id_licitacion\"=>$id_licitacion,\"nro_caso\"=>$nrocaso,\"rma_san_luis\"=>$rma_san_luis));\r\n\t $link_sin_cb=encode_link(\"entregar_sin_codigos_barra.php\",array(\"total_comprado\"=>$total_pedido,\"total_entregado\"=>$entregados,\"producto_nombre\"=>\"$producto\",\"id_prod_esp\"=>$id_prod_esp,\"id_movimiento\"=>$id_mov,\"id_detalle_movimiento\"=>$id_detalle_movimiento,\"es_pedido_material\"=>$es_pedido_material,\"deposito_origen\"=>$deposito_origen,\"deposito_destino\"=>$deposito_destino,\"id_licitacion\"=>$id_licitacion,\"nro_caso\"=>$nrocaso,\"rma_san_luis\"=>$rma_san_luis));\r\n\t\t\t ?>\r\n\t\t\t <input type=\"button\" name=\"entregar_cb_<?=$items[$x]['id_detalle_movimiento']?>\" value=\"Entregar Productos\" onclick=\"if(vent_cb_<?=$id_detalle_movimiento?>.closed)vent_cb_<?=$id_detalle_movimiento?>=window.open('<?=$link_cb?>','','top=130, left=250, width=450px, height=500px, scrollbars=1, status=1,directories=0');else vent_cb_<?=$id_detalle_movimiento?>.focus();\" <?=$permiso?>>\r\n\t\t\t <?\r\n\t\t\t if(permisos_check(\"inicio\",\"permiso_entregar_sin_cb\"))\r\n\t\t\t {\r\n\t\t\t ?>\r\n\t\t\t <input type=\"button\" name=\"entregar_sin_cb_<?=$items[$x]['id_detalle_movimiento']?>\" value=\"Entregar sin CB\" onclick=\"if(vent_sin_cb_<?=$id_detalle_movimiento?>.closed)vent_sin_cb_<?=$id_detalle_movimiento?>=window.open('<?=$link_sin_cb?>','','top=130, left=250, width=400px, height=350px, scrollbars=1, status=1,directories=0');else vent_sin_cb_<?=$id_detalle_movimiento?>.focus();\" <?=$permiso?>>\r\n\t\t\t <?\r\n\t\t\t }//de if(permisos_check(\"inicio\",\"permiso_entregar_sin_cb\"))\r\n\t\t\t if($entregados>0 && permisos_check(\"inicio\",\"permiso_des_entregar_PM_MM\"))\r\n\t\t\t {?>\r\n\t\t\t \t<input type=\"submit\" name=\"des_recibir_<?=$items[$x]['id_detalle_movimiento']?>\" value=\"Des-Entregar\" onclick=\"return des_entregar_func(<?=$items[$x]['id_detalle_movimiento']?>)\" <?=$permiso?>>\r\n\t\t\t <?\r\n\t\t\t }//de if(permisos_check(\"inicio\",\"permiso_des_recibir_PM_MM\"))\r\n\t\t }//de if($mostrar_botones_entregar)\r\n\t\t\t\t\t ?>\r\n\r\n\t\t </td>\r\n\t\t </tr>\r\n\t\t </table>\r\n\t\t </td>\r\n\t\t </tr>\r\n\t\t\t<?\r\n\t\t\t }//de for($x=0;$x<$items['cantidad'];$x++)\r\n\r\n\t\t\tif($mostrar_botones_entregar)\r\n\t\t\t{?>\r\n\t\t\t <tr>\r\n\t\t\t <td align=\"center\">\r\n\t\t <?\r\n\t if($es_pedido_material && permisos_check(\"inicio\",\"permiso_eliminar_fila_pm_autorizada\") && $hay_sin_entregar && $estado!=3)\r\n\t {?>\r\n\t \t&nbsp;<input type=\"submit\" name=\"eliminar_fila\" value=\"Eliminar Filas Autorizadas\" onclick=\"if(confirm('¿Está seguro que desea eliminar las filas seleccionadas?'))return true; else return false;\">\r\n\t <?\r\n\t }\r\n\t ?>\r\n\t </td>\r\n\t </tr>\r\n\t <?\r\n\t\t\t}//de if($mostrar_botones_entregar)\r\n\t\t\t?>\r\n </table>\r\n\t<?\r\n}", "public function listiAction()\n {\n $form = new Formulario(\"form\");\n $id = (int) $this->params()->fromRoute('id', 0);\n $form->get(\"id\")->setAttribute(\"value\",$id); \n if($this->getRequest()->isPost()) \n {\n $request = $this->getRequest();\n if ($request->isPost()) {\n // Zona de validacion del fomrulario --------------------\n $album = new ValFormulario();\n //$form->setInputFilter($album->getInputFilter()); \n //$form->setData($request->getPost()); \n //$form->setValidationGroup('nombre'); // ------------------------------------- 2 CAMPOS A VALDIAR DEL FORMULARIO (C) \n // Fin validacion de formulario ---------------------------\n //if ($form->isValid()) {\n $this->dbAdapter=$this->getServiceLocator()->get('Zend\\Db\\Adapter');\n $d = new AlbumTable($this->dbAdapter);// ------------------------------------------------- 3 FUNCION DENTRO DEL MODELO (C) \n $data = $this->request->getPost();\n $d->modGeneral(\"insert into n_turnos_g_h (idTur, idHor)\n values(\".$data->id.\", \".$data->tipo.\")\");\n return $this->redirect()->toUrl($this->getRequest()->getBaseUrl().$this->lin.'i/'.$id);\n //}\n }\n } \n$this->dbAdapter=$this->getServiceLocator()->get('Zend\\Db\\Adapter'); \n $o=new \\Nomina\\Model\\Entity\\Turnos($this->dbAdapter);\n $form->get(\"id\")->setAttribute(\"value\",\"$id\"); \n $form->get(\"ubicacion\")->setValueOptions(array('1'=>'Encabezado')); \n $arreglo='';\n $turnos = $o->getRegistro(); \n foreach ($turnos as $dat){\n $idc=$dat['id'];$nom=$dat['codigo'];\n $arreglo[$idc]= $nom;\n } \n $form->get(\"tipo\")->setValueOptions($arreglo); \n\n $d = new AlbumTable($this->dbAdapter); \n $datos = $d->getGeneral1(\"Select * from n_turnos_g where id=\".$id);\n $valores=array\n (\n \"titulo\" => 'Horarios del turno '.$datos['nombre'],\n \"datos\" => $d->getTurnoHorarios($id), \n \"ttablas\" => 'dia, Tipo, Ok,Eliminar',\n 'url' => $this->getRequest()->getBaseUrl(),\n \"form\" => $form, \n \"lin\" => $this->lin,\n \"id\" => $id,\n ); \n return new ViewModel($valores); \n }", "public function formAction() {}", "public function gestiona() //= template method\r\n {\r\n if ( ! $this->formularioEnviado($_POST) ) {\r\n echo $this->generaFormulario();\r\n } else {\r\n $result = $this->procesaFormulario($_POST);\r\n if ( is_array($result) ) {\r\n echo $this->generaFormulario($result, $_POST);\r\n } else {\r\n header('Location: '.$result);\r\n exit();\r\n }\r\n }\r\n }", "public function SaveFichas() {\n\t\t\ttry {\n\t\t\t\t// Update any fields for controls that have been created\n\t\t\t\tif ($this->lstIdMarcaObject) $this->objFichas->IdMarca = $this->lstIdMarcaObject->SelectedValue;\n\t\t\t\tif ($this->lstIdTiposObject) $this->objFichas->IdTipos = $this->lstIdTiposObject->SelectedValue;\n\t\t\t\tif ($this->lstIdModeloObject) $this->objFichas->IdModelo = $this->lstIdModeloObject->SelectedValue;\n\t\t\t\tif ($this->lstIdVersionObject) $this->objFichas->IdVersion = $this->lstIdVersionObject->SelectedValue;\n\t\t\t\tif ($this->lstIdPaisObject) $this->objFichas->IdPais = $this->lstIdPaisObject->SelectedValue;\n\t\t\t\tif ($this->txtIdSeguro) $this->objFichas->IdSeguro = $this->txtIdSeguro->Text;\n\t\t\t\tif ($this->txtDescripcion) $this->objFichas->Descripcion = $this->txtDescripcion->Text;\n\t\t\t\tif ($this->txtPrecio) $this->objFichas->Precio = $this->txtPrecio->Text;\n\t\t\t\tif ($this->txtAnio) $this->objFichas->Anio = $this->txtAnio->Text;\n\t\t\t\tif ($this->txtCombustible) $this->objFichas->Combustible = $this->txtCombustible->Text;\n\t\t\t\tif ($this->txtCilindrada) $this->objFichas->Cilindrada = $this->txtCilindrada->Text;\n\t\t\t\tif ($this->txtCilindros) $this->objFichas->Cilindros = $this->txtCilindros->Text;\n\t\t\t\tif ($this->txtPotenciaMaxima) $this->objFichas->PotenciaMaxima = $this->txtPotenciaMaxima->Text;\n\t\t\t\tif ($this->txtParMotorTorque) $this->objFichas->ParMotorTorque = $this->txtParMotorTorque->Text;\n\t\t\t\tif ($this->txtPosicion) $this->objFichas->Posicion = $this->txtPosicion->Text;\n\t\t\t\tif ($this->txtAlimentacion) $this->objFichas->Alimentacion = $this->txtAlimentacion->Text;\n\t\t\t\tif ($this->txtMotorShort) $this->objFichas->MotorShort = $this->txtMotorShort->Text;\n\t\t\t\tif ($this->txtValvulas) $this->objFichas->Valvulas = $this->txtValvulas->Text;\n\t\t\t\tif ($this->txtTipo) $this->objFichas->Tipo = $this->txtTipo->Text;\n\t\t\t\tif ($this->txtMarchas) $this->objFichas->Marchas = $this->txtMarchas->Text;\n\t\t\t\tif ($this->txtTraccion) $this->objFichas->Traccion = $this->txtTraccion->Text;\n\t\t\t\tif ($this->txtVelocidadMaxima) $this->objFichas->VelocidadMaxima = $this->txtVelocidadMaxima->Text;\n\t\t\t\tif ($this->txtAceleracion0100) $this->objFichas->Aceleracion0100 = $this->txtAceleracion0100->Text;\n\t\t\t\tif ($this->txtConsumoUrbano) $this->objFichas->ConsumoUrbano = $this->txtConsumoUrbano->Text;\n\t\t\t\tif ($this->txtConsumoInterurbano) $this->objFichas->ConsumoInterurbano = $this->txtConsumoInterurbano->Text;\n\t\t\t\tif ($this->txtConsumoMixto) $this->objFichas->ConsumoMixto = $this->txtConsumoMixto->Text;\n\t\t\t\tif ($this->txtPuertas) $this->objFichas->Puertas = $this->txtPuertas->Text;\n\t\t\t\tif ($this->txtPlazas) $this->objFichas->Plazas = $this->txtPlazas->Text;\n\t\t\t\tif ($this->txtFilasDeAsientos) $this->objFichas->FilasDeAsientos = $this->txtFilasDeAsientos->Text;\n\t\t\t\tif ($this->txtInfoEjes) $this->objFichas->InfoEjes = $this->txtInfoEjes->Text;\n\t\t\t\tif ($this->txtPeso) $this->objFichas->Peso = $this->txtPeso->Text;\n\t\t\t\tif ($this->txtCapacidadBaul) $this->objFichas->CapacidadBaul = $this->txtCapacidadBaul->Text;\n\t\t\t\tif ($this->txtCapacidadTanque) $this->objFichas->CapacidadTanque = $this->txtCapacidadTanque->Text;\n\t\t\t\tif ($this->txtCapacidadCarga) $this->objFichas->CapacidadCarga = $this->txtCapacidadCarga->Text;\n\t\t\t\tif ($this->txtFrenosDelanteros) $this->objFichas->FrenosDelanteros = $this->txtFrenosDelanteros->Text;\n\t\t\t\tif ($this->txtFrenosTraseros) $this->objFichas->FrenosTraseros = $this->txtFrenosTraseros->Text;\n\t\t\t\tif ($this->txtNeumaticos) $this->objFichas->Neumaticos = $this->txtNeumaticos->Text;\n\t\t\t\tif ($this->txtSuspensionDelantera) $this->objFichas->SuspensionDelantera = $this->txtSuspensionDelantera->Text;\n\t\t\t\tif ($this->txtSuspensionTrasera) $this->objFichas->SuspensionTrasera = $this->txtSuspensionTrasera->Text;\n\t\t\t\tif ($this->lstIdEstadoObject) $this->objFichas->IdEstado = $this->lstIdEstadoObject->SelectedValue;\n\t\t\t\tif ($this->chkProcesada) $this->objFichas->Procesada = $this->chkProcesada->Checked;\n\n\t\t\t\t// Id Servicio\n\t\t\t\t\n\t\t\t\tif ($this->txtIdServicio) $this->objFichas->IdServicio = $this->txtIdServicio->Text;\n\t\t\t\t\n\t\t\t\t// Moneda\n\t\t\t\t\n\t\t\t\tif ($this->txtMoneda) $this->objFichas->Moneda = $this->txtMoneda->Text;\n\n\n\t\t\t\t// Update any UniqueReverseReferences (if any) for controls that have been created for it\n\n\t\t\t\t// Save the Fichas object\n\t\t\t\t$this->objFichas->Save();\n\t\t\t\t\n\t\t\t\t$this->txtIdServicio->Text = $this->objFichas->IdServicio;\n\n\t\t\t\t// Finally, update any ManyToManyReferences (if any)\n\t\t\t} catch (QCallerException $objExc) {\n\t\t\t\t$objExc->IncrementOffset();\n\t\t\t\tthrow $objExc;\n\t\t\t}\n\t\t}", "function caricaCliente(&$form) {\r\n global $gTables;\r\n $_POST['num_rigo'] = 0;\r\n $form['traspo'] =($form['clfoco']>100000000)?0:$form['traspo']; // azzero il trasporto e per ricalcolarlo solo se non è un cliente anonimo\r\n $anagrafica = new Anagrafica();\r\n $cliente = $anagrafica->getPartner($form['clfoco']);\r\n $form['indspe'] =($cliente)?$cliente['indspe'] . \" - \" . $cliente['capspe'] . \" \" . $cliente['citspe'] . \" \" . $cliente['prospe']:'';\r\n $rs_testate = gaz_dbi_dyn_query(\"*\", $gTables['tesbro'], \"clfoco = '\" . $form['clfoco'] . \"' AND tipdoc LIKE 'VO_' AND status NOT LIKE 'EV%' \", \"datemi ASC\");\r\n while ($testate = gaz_dbi_fetch_array($rs_testate)) {\r\n $id_des = $anagrafica->getPartner($testate['id_des']);\r\n $form['traspo'] += $testate['traspo'];\r\n $form['speban'] = $testate['speban'];\r\n $form['expense_vat'] = $testate['expense_vat'];\r\n $form['stamp'] = $testate['stamp'];\r\n $form['round_stamp'] = $testate['round_stamp'];\r\n $form['virtual_taxstamp'] = $testate['virtual_taxstamp'];\r\n $form['vettor'] = $testate['vettor'];\r\n $form['imball'] = $testate['imball'];\r\n $form['portos'] = $testate['portos'];\r\n $form['spediz'] = $testate['spediz'];\r\n $form['pagame'] = $testate['pagame'];\r\n $form['caumag'] = $testate['caumag'];\r\n $form['destin'] = $testate['destin'];\r\n $form['id_des'] = $testate['id_des'];\r\n $form['search']['id_des'] =($id_des)?substr($id_des['ragso1'], 0, 10):'';\r\n $form['id_des_same_company'] = $testate['id_des_same_company'];\r\n $form['id_agente'] = $testate['id_agente'];\r\n $form['banapp'] = $testate['banapp'];\r\n $form['sconto'] = $testate['sconto'];\r\n $form['tipdoc'] = $testate['tipdoc'];\r\n $ctrl_testate = $testate['id_tes'];\r\n $rs_righi = gaz_dbi_dyn_query(\"*\", $gTables['rigbro'], \"id_tes = \" . $testate['id_tes'], \"id_rig asc\");\r\n while ($rigo = gaz_dbi_fetch_array($rs_righi)) {\r\n $articolo = gaz_dbi_get_row($gTables['artico'], \"codice\", $rigo['codart']);\r\n $form['righi'][$_POST['num_rigo']]['id_rig'] = $rigo['id_rig'];\r\n $form['righi'][$_POST['num_rigo']]['tiprig'] = $rigo['tiprig'];\r\n $form['righi'][$_POST['num_rigo']]['id_tes'] = $rigo['id_tes'];\r\n $form['righi'][$_POST['num_rigo']]['tipdoc'] = $testate['tipdoc'];\r\n $form['righi'][$_POST['num_rigo']]['datemi'] = $testate['datemi'];\r\n $form['righi'][$_POST['num_rigo']]['numdoc'] = $testate['numdoc'];\r\n $form['righi'][$_POST['num_rigo']]['descri'] = $rigo['descri'];\r\n $form['righi'][$_POST['num_rigo']]['id_body_text'] = $rigo['id_body_text'];\r\n $form['righi'][$_POST['num_rigo']]['codart'] = $rigo['codart'];\r\n $form['righi'][$_POST['num_rigo']]['unimis'] = $rigo['unimis'];\r\n $form['righi'][$_POST['num_rigo']]['prelis'] = $rigo['prelis'];\r\n $form['righi'][$_POST['num_rigo']]['provvigione'] = $rigo['provvigione'];\r\n $form['righi'][$_POST['num_rigo']]['ritenuta'] = $rigo['ritenuta'];\r\n $form['righi'][$_POST['num_rigo']]['sconto'] = $rigo['sconto'];\r\n $form['righi'][$_POST['num_rigo']]['quanti'] = $rigo['quanti'];\r\n\t\t\t$form['righi'][$_POST['num_rigo']]['lot_or_serial'] = $articolo['lot_or_serial'];\r\n\t\t\t$form['righi'][$_POST['num_rigo']]['cod_operazione'] = 11;\r\n\t\t\t$form['righi'][$_POST['num_rigo']]['SIAN'] = $articolo['SIAN'];\r\n\t\t\t$form['righi'][$_POST['num_rigo']]['recip_stocc'] = \"\";\r\n\t\t\tif ($articolo['SIAN']>0){\r\n\t\t\t\t$camp_artico = gaz_dbi_get_row($gTables['camp_artico'], \"codice\", $rigo['codart']);\r\n\t\t\t\t$form['righi'][$_POST['num_rigo']]['confezione'] = $camp_artico['confezione'];\r\n\t\t\t} else {\r\n\t\t\t\t$form['righi'][$_POST['num_rigo']]['confezione'] = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\r\n if (!isset($form['righi'][$_POST['num_rigo']]['evadibile'])) {\r\n $totale_evadibile = $rigo['quanti'];\r\n $rs_evasi = gaz_dbi_dyn_query(\"*\", $gTables['rigdoc'], \"id_order=\" . $rigo['id_tes'] . \" AND codart='\" . $rigo['codart'] . \"'\", \"id_rig asc\");\r\n while ($rg_evasi = gaz_dbi_fetch_array($rs_evasi)) {\r\n $totale_evadibile -= $rg_evasi['quanti'];\r\n }\r\n if ($totale_evadibile == 0) {\r\n $form['righi'][$_POST['num_rigo']]['checkval'] = false;\r\n }\r\n\t\t\t\t$upd_mm = new magazzForm;\r\n\t\t\t\t// Antonio Germani - controllo la giacenza in magazzino e gli ordini già ricevuti\r\n\t\t\t\t$mv = $upd_mm->getStockValue(false, $rigo['codart']);\r\n\t\t\t\t$magval = array_pop($mv);\r\n $magval=(is_numeric($magval))?['q_g'=>0,'v_g'=>0]:$magval;\r\n\t\t\t\t$form['righi'][$_POST['num_rigo']]['giac'] = $magval['q_g'];\r\n\t\t\t\t$form['righi'][$_POST['num_rigo']]['ordin'] = $upd_mm->get_magazz_ordinati($rigo['codart'], \"VOR\");\r\n\t\t\t\t\r\n $form['righi'][$_POST['num_rigo']]['evaso_in_precedenza'] = $rigo['quanti'] - $totale_evadibile;\r\n $form['righi'][$_POST['num_rigo']]['evadibile'] = $totale_evadibile;\r\n }\r\n $form['righi'][$_POST['num_rigo']]['id_doc'] = $rigo['id_doc'];\r\n $form['righi'][$_POST['num_rigo']]['codvat'] = $rigo['codvat'];\r\n $form['righi'][$_POST['num_rigo']]['pervat'] = $rigo['pervat'];\r\n $form['righi'][$_POST['num_rigo']]['codric'] = $rigo['codric'];\r\n $_POST['num_rigo'] ++;\r\n }\r\n }\r\n}", "function defform()\n\t{\n\t\t// Definisi elemen form untuk data teman\n\t\t$noteman = array(\n\t\t\t\t\"name\"\t\t=> \"noteman\",\n\t\t\t\t\"id\"\t\t=> \"noteman\",\n\t\t\t\t\"maxlenght\"\t=> \"4\",\n\t\t\t\t\"size\"\t\t=> \"3\",\n\t\t\t\t\"value\"\t\t=> \"\",\n\t\t\t\t\"style\"\t\t=> \"background:red;\"\n\t\t\t);\n\n\t\t$namateman = array(\n\t\t\t\t\"name\"\t\t=> \"namateman\",\n\t\t\t\t\"id\"\t\t=> \"namateman\",\n\t\t\t\t\"maxlenght\"\t=> \"50\",\n\t\t\t\t\"size\"\t\t=> \"35\",\n\t\t\t\t\"value\"\t\t=> \"\",\n\t\t\t\t\"style\"\t\t=> \"background:cyan;\"\n\t\t\t);\n\n\t\t$notelp = array(\n\t\t\t\t\"name\"\t\t=> \"notelp\",\n\t\t\t\t\"id\"\t\t=> \"notelp\",\n\t\t\t\t\"maxlenght\"\t=> \"15\",\n\t\t\t\t\"size\"\t\t=> \"13\",\n\t\t\t\t\"value\"\t\t=> \"\",\n\t\t\t\t\"style\"\t\t=> \"background:cyan;\"\n\t\t\t);\n\n\t\t$email = array(\n\t\t\t\t\"name\"\t\t=> \"email\",\n\t\t\t\t\"id\"\t\t=> \"email\",\n\t\t\t\t\"maxlenght\"\t=> \"35\",\n\t\t\t\t\"size\"\t\t=> \"25\",\n\t\t\t\t\"value\"\t\t=> \"\",\n\t\t\t\t\"style\"\t\t=> \"background:cayn;\"\n\t\t\t);\n\t\t// end definisi\n\n\t\t$atableteman = [\n\t\t\t\"noteman\"\t=> $noteman,\n\t\t\t\"namateman\"\t=> $namateman,\n\t\t\t\"notelp\"\t=> $notelp,\n\t\t\t\"email\"\t\t=> $email\n\t\t];\n\n\t\treturn $atableteman;\n\t}" ]
[ "0.7702232", "0.7000737", "0.66228616", "0.65768063", "0.65626985", "0.65208334", "0.6458312", "0.64121705", "0.6390684", "0.6390615", "0.63594776", "0.62739", "0.62733227", "0.625263", "0.6245514", "0.6229479", "0.6220201", "0.6218751", "0.62128127", "0.6199918", "0.6198989", "0.6196814", "0.6192889", "0.618748", "0.61841094", "0.6176709", "0.61621356", "0.61566114", "0.6156504", "0.6156069", "0.61555237", "0.61515236", "0.6149494", "0.6149246", "0.6138394", "0.6132953", "0.61314076", "0.6129196", "0.6121425", "0.6120149", "0.611834", "0.61145115", "0.61044884", "0.60931635", "0.609192", "0.60837317", "0.60792613", "0.6076794", "0.6073881", "0.60732955", "0.60724735", "0.60639715", "0.6032696", "0.6025573", "0.6024007", "0.602353", "0.6020572", "0.6018879", "0.6017635", "0.600402", "0.60025185", "0.5990305", "0.5981509", "0.59803516", "0.59789395", "0.5975883", "0.5972153", "0.59698576", "0.59611994", "0.5957787", "0.5949862", "0.5949576", "0.59478444", "0.59445053", "0.5938876", "0.59380835", "0.5929852", "0.59275216", "0.5924276", "0.5919327", "0.59159327", "0.5915752", "0.5915398", "0.5912809", "0.5911758", "0.5911355", "0.5908873", "0.5906269", "0.5897367", "0.5895995", "0.5894971", "0.58935106", "0.5890271", "0.5888595", "0.5888587", "0.5888231", "0.58822143", "0.5876396", "0.5875501", "0.587352", "0.5873233" ]
0.0
-1
controleer in de databank of het gekozen moment (datum/tijd) nog vrij is
function SaveAfspraak() { //zoniet, return false //afspraak opslaan en return true }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setData()\n {\n $this->data=new \\DateTime('now');\n\n }", "public function getDateDebut();", "public function change()\r\n\t{\r\n\t\t$ins = [];\r\n\t\t$plas = $this->fetchAll('SELECT * FROM tx_platby WHERE cislo IS NOT NULL');\r\n\r\n\t\t$ts = (new \\DateTime('2019-08-31 23:59:59'))->getTimestamp();\r\n\r\n\t\tforeach($plas as $p){\r\n\r\n\t\t\t$dt = new \\DateTime($p['vystaven']);\r\n\r\n\t\t\tif($dt->getTimestamp() <= $ts){\r\n\t\t\t\t$dk = 0.1736;\r\n\t\t\t}else{\r\n\t\t\t\t$dk = 0.17355371900826;\r\n\t\t\t}\r\n\r\n\t\t\t$ins[] = [\r\n\t\t\t\t'platba_id' => $p['platba_id'],\r\n\t\t\t\t'created' => $p['vystaven'],\r\n\t\t\t\t'cislo' => $p['cislo'],\r\n\t\t\t\t'platba' => $p['platba'],\r\n\t\t\t\t'dph_coef' => $dk,\r\n\t\t\t\t'den_zdan_pln' => $p['vystaven']\r\n\t\t\t];\r\n\t\t}\r\n\r\n\t\t$this->table('doklady')\r\n\t\t\t->insert($ins)\r\n\t\t\t->save();\r\n\t}", "public function tampilDataGalang(){\n\t\t\n\t}", "function ritorna_data_attuale() {\n\t$tz = 'Europe/Rome';\n\t$format='d/m/Y H:i:s'; // Formato Italiano\n $retData='';\n//\n// DO NOT EDIT ANYTHING BELOW THIS LINE!\n//\n\tdate_default_timezone_set($tz);\n\t$retData = date($format);\n\treturn($retData);\n}", "public function setDateDuJour()\n{\n$this->setDateSysteme(date(\"Y-m-d\"));\n$this->setDateUtilisateur(date(\"d/m/Y\"));\n}", "function getTimeplotData($id) {\n \t\t\n\t\t$sql = \"SELECT first_insertion, to_call_back, init_contact, still_exist, deleted, contacted, date FROM mp_statistique WHERE motif_ID = '$id' ORDER BY date ASC\";\n\t\t$sel = mysql_query($sql);\n\n while ($stat = mysql_fetch_array($sel)) {\n \t\n\t\t\t$current = $stat['to_call_back'] + $stat['init_contact'] + $stat['still_exist'] + $stat['first_insertion'];\n $inserted = $stat['first_insertion'];\n $deleted = $stat['deleted'];\n $date = $stat['date'];\n $contacted = $stat['contacted'];\n \n echo \"$date,$current,$inserted,$deleted,$contacted\\n\";\n \n \n }\n\n }", "function provjeri_oglase(){\n\t\tglobal $db;\n\t\t$oglasi = $db->query(\"SELECT * FROM jf_oglasi WHERE status=1\");\n\t\twhile($podatak = $oglasi->fetch_assoc()){\n\t\t\tif (date(\"d-m-Y\", strtotime($podatak['konkurs_end'])) < date(\"d-m-Y\")){\n\t\t\t\t$db->query(\"UPDATE jf_oglasi SET status=0 WHERE id={$podatak['id']}\");\n\t\t\t}\n\t\t}\n\t}", "protected function beforeValidate ()\n {\n //$this->tglrevisimodul = date ('Y-m-d', strtotime($this->tglrevisimodul));\n $format = new MyFormatter();\n //$this->tglrevisimodul = $format->formatDateTimeForDb($this->tglrevisimodul);\n foreach($this->metadata->tableSchema->columns as $columnName => $column){\n if ($column->dbType == 'date')\n {\n $this->$columnName = $format->formatDateTimeForDb($this->$columnName);\n }\n else if ($column->dbType == 'timestamp without time zone')\n {\n $this->$columnName = $format->formatDateTimeForDb($this->$columnName);\n } \n }\n\n return parent::beforeValidate ();\n }", "public function cadastrar()\n{\n //DEFINIR A DATA\n $this->data = date('Y-m-d H:i:s');\n\n //INSERIR A VAGA NO BANCO\n $obDatabase = new Database('vagas');\n $obDatabase->insert([\n 'titulo' => $this->titulo,\n 'descricao' => $this->descricao,\n 'ativo' => $this->ativo,\n 'data' => $this->data\n ]);\n //echo \"<pre>\"; print_r($obDatabase); echo \"</pre>\"; exit;\n\n\n //ATRIBUIR O ID DA VAGA NA INSTANCIA\n\n //RETORNAR SUCESSO\n}", "protected function beforeValidate ()\n {\n //$this->tglrevisimodul = date ('Y-m-d', strtotime($this->tglrevisimodul));\n $format = new MyFormatter();\n //$this->tglrevisimodul = $format->formatDateTimeForDb($this->tglrevisimodul);\n foreach($this->metadata->tableSchema->columns as $columnName => $column){\n if ($column->dbType == 'date')\n {\n $this->$columnName = $format->formatDateTimeForDb($this->$columnName);\n }\n else if ( $column->dbType == 'timestamp without time zone')\n {\n $this->$columnName = $format->formatDateTimeForDb($this->$columnName);\n }\n }\n\n return parent::beforeValidate ();\n }", "public function insertDate()\n {\n //\n }", "function getData()\n {\n return $this->date;\n }", "public function beforeSave() {\n foreach ($this->dateFields as $item) {\n $this->data[$this->name][$item] = $this->_date4Db($this->data[$this->name][$item]);\n }\n return parent::beforeSave();\n }", "protected function _syncModDate() {}", "function setData($data)\n {\n $this->date=$data;\n }", "function primer_dia_periodo() {\n\n $sql=\"select fecha_inicio from mocovi_periodo_presupuestario where actual=true\";\n $resul=toba::db('designa')->consultar($sql);\n return $resul[0]['fecha_inicio'];\n \n }", "public function cadastrar() \n{\n //DEFINIR A DATA\n $this->data = date(\"Y:m:d H:i:s\");\n \n //INSERIR A VAGA NO BANCO\n\n //ATRIBUIR O ID NA VAGA DA INSTANCIA\n\n //RETORNAR SUCESSO\n\n}", "public function beforeInsert()\n {\n $this->owner->{$this->createdAtField} = date($this->format);\n $this->owner->{$this->updatedAtField} = date($this->format);\n }", "function ranijiDatum($datum1, $datum2)\n {\n if ($datum1->getGodina() < $datum2->getGodina()) {\n echo \"datum 1 raniji je od datuma 2\";\n } else if ($datum1->getGodina() > $datum2->getGodina()) {\n echo \"datum 2 je raniji od datuma 1\";\n } else if ($datum1->getMesec() < $datum2->getMesec()) {\n echo \"datum 1 je raniji od datuma 2 (godine se poklapaju ali je mesec prvog datuma raniji od meseca drugog datuma)\";\n } else if ($datum1->getMesec() > $datum2->getMesec()) {\n echo \"datum 2 je raniji od datuma 1 (godine se poklapaju ali je mesec drugog datuma raniji od meseca prvog datuma)\";\n } else if (\n $datum1->getMesec() == $datum2->getMesec()\n && $datum1->getDan() < $datum2->getDan()\n ) {\n echo \"datum 1 je raniji od datuma 2(poklapaju se meseci i godine ali je dan prvog datuma raniji od\n dana drugog datuma\";\n } else if ($datum1->getDan() > $datum2->getDan()) {\n echo \"datum 2 je raniji od datuma 1(poklapaju se meseci i godine ali je dan drugog datuma raniji od\n dana prvog datuma\";\n } else {\n echo \"datumi su jednaki\";\n }\n }", "public function afterFind(){\n // Format dates based on the locale\n foreach($this->metadata->tableSchema->columns as $columnName => $column){\n if ($column->dbType == 'date'){\n $aux= CDateTimeParser::parse($this->$columnName,\"yyyy-MM-dd\");\n $this->$columnName = ($aux != null )?date('d/m/Y',$aux ):null;\n }elseif ($column->dbType == 'datetime'){\n $aux= CDateTimeParser::parse($this->$columnName,\"yyyy-MM-dd HH:mm:ss\");\n $this->$columnName = ($aux != null )?date('d/m/Y H:i:s',$aux ):null;\n }\n }\n }", "public function refreshDpersDatumsFromVertrag($persnr,$vertragID){\n //Debug::fireLog(\"refreshDpersDatumsFromVertrag persnr=\".$persnr.\",vertragID=\".$vertragID);\n\n $refreshDpersDatums = FALSE;\n\n if($persnr===NULL){\n $sql = \"select persnr from \".self::TABLE_DPERSVERTRAG.\" where id=$vertragID\";\n $res = $this->db->query($sql);\n $row = $res->fetch();\n $persnr = $row['persnr'];\n }\n \n // zjistim aktualni hodnotu eintritt\n $sql = \"select \".self::TABLE_DPERS.\".eintritt,\".self::TABLE_DPERS.\".austritt\";\n $sql.= \" ,dobaurcita,zkusebni_doba_dobaurcita\";\n $sql.= \" from \".self::TABLE_DPERS;\n $sql.= \" join \".self::TABLE_DPERSDETAIL.\" on \".self::TABLE_DPERSDETAIL.\".persnr=\".self::TABLE_DPERS.\".persnr\";\n $sql.= \" where \".self::TABLE_DPERS.\".persnr='$persnr'\";\n $res = $this->db->query($sql);\n if(count($res)>0){\n $row = $res->fetch();\n $dpersEintritt = $row['eintritt'];\n $dpersAustritt = $row['austritt'];\n $dpersBefristet = $row['dobaurcita'];\n $dpersProbezeit = $row['zkusebni_doba_dobaurcita'];\n Debug::fireLog(\"refreshDpersDatumsFromVertrag dperseintritt=\".$dpersEintritt.\",dpersaustritt=\".$dpersAustritt.\",dpersbefristet=\".$dpersBefristet.\",dpersprobezeit=\".$dpersProbezeit);\n }\n else\n return $refreshDpersDatums;\n\n // vyberu radek s poslednim eintrittem ktery znaci pocatek smlouvy z archivu\n $sql = \"select max(eintritt) as eintritt from \".self::TABLE_DPERSVERTRAG.\" where persnr='$persnr' and vertrag_anfang<>0\";\n $res = $this->db->query($sql);\n if(count($res)>0){\n // porovnam s aktualni hodnotou v eintritt v dpers\n $row = $res->fetch();\n $vertragEintritt = $row['eintritt'];\n if($dpersEintritt!=$vertragEintritt){\n $this->updateDpersFieldProPersNr($persnr, 'eintritt', $vertragEintritt);\n $refreshDpersDatums = TRUE;\n }\n }\n\n // a jeste jednou vyberu radek s poslednim eintrittem z archivu, tentokrat i hodnoty pro austritt, befristet a probezeit\n $sql = \"select eintritt,austritt,befristet,probezeit,vertrag_anfang from \".self::TABLE_DPERSVERTRAG.\" where persnr='$persnr' order by eintritt desc\";\n $res = $this->db->query($sql);\n if(count($res)>0){\n // porovnam s aktualni hodnotou v eintritt v dpers\n $row = $res->fetch();\n $vertragEintritt = $row['eintritt'];\n $vertragAustritt = $row['austritt'];\n $vertragBefristet = $row['befristet'];\n $vertragProbezeit = $row['probezeit'];\n $vertragAnfang = $row['vertrag_anfang'];\n\n if(($dpersEintritt!=$vertragEintritt)&&($vertragAnfang!=0)){\n $this->updateDpersFieldProPersNr($persnr, 'eintritt', $vertragEintritt);\n $refreshDpersDatums = TRUE;\n }\n\n if($dpersAustritt!=$vertragAustritt){\n $this->updateDpersFieldProPersNr($persnr, 'austritt', $vertragAustritt);\n $refreshDpersDatums = TRUE;\n }\n\n if($dpersProbezeit!=$vertragProbezeit){\n $this->updateDpersDetailFieldProPersNr($persnr, 'zkusebni_doba_dobaurcita', $vertragProbezeit);\n $refreshDpersDatums = TRUE;\n }\n\n if($dpersBefristet!=$vertragBefristet){\n $this->updateDpersDetailFieldProPersNr($persnr, 'dobaurcita', $vertragBefristet);\n $refreshDpersDatums = TRUE;\n }\n }\n\n return $refreshDpersDatums;\n //\n}", "public function insertionVisiteur(Tache $t){\n $fait = 0;\n $query = \"insert into tache values ('\".NULL.\"','\".$t->getTitre().\"','\".$t->getDescription().\"','\".$t->getDatePrevu().\"','\".$t->getDateInscrite().\"','\".$fait.\"','\".NULL.\"')\";\n $this->con->executeQuery($query);\n }", "protected function _insert()\n {\n \t$metadata = $this->_table->info(Zend_Db_Table_Abstract::METADATA);\n \t\n \tif(isset($metadata['created_at']))\n\t\t\t$this->_data['created_at'] = new Zend_Date ();\n \tif(isset($metadata['updated_at']))\n\t\t\t$this->_data['updated_at'] = new Zend_Date ();\n }", "function preUpdate(){\n $this->alteradoEm = new \\DateTime('now');\n $this->alteradoEm->setTimezone(new \\DateTimeZone('America/Sao_Paulo'));\n }", "public function hitung()\n\t{\n\t\t// \t'bulan' => \"january\",\n\t\t// \t'tahun' => 2017,\n\t\t// \t'jumlah' => 122,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"february\",\n\t\t// \t'tahun' => 2017,\n\t\t// \t'jumlah' => 74,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"maret\",\n\t\t// \t'tahun' => 2017,\n\t\t// \t'jumlah' => 76,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"april\",\n\t\t// \t'tahun' => 2017,\n\t\t// \t'jumlah' => 86,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"mei\",\n\t\t// \t'tahun' => 2017,\n\t\t// \t'jumlah' => 203,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"juni\",\n\t\t// \t'tahun' => 2017,\n\t\t// \t'jumlah' => 187,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"juli\",\n\t\t// \t'tahun' => 2017,\n\t\t// \t'jumlah' => 90,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"agustus\",\n\t\t// \t'tahun' => 2017,\n\t\t// \t'jumlah' => 156,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"september\",\n\t\t// \t'tahun' => 2017,\n\t\t// \t'jumlah' => 84,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"oktober\",\n\t\t// \t'tahun' => 2017,\n\t\t// \t'jumlah' => 172,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"november\",\n\t\t// \t'tahun' => 2017,\n\t\t// \t'jumlah' => 118,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"desember\",\n\t\t// \t'tahun' => 2017,\n\t\t// \t'jumlah' => 120,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"january\",\n\t\t// \t'tahun' => 2018,\n\t\t// \t'jumlah' => 176,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"february\",\n\t\t// \t'tahun' => 2018,\n\t\t// \t'jumlah' => 65,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"maret\",\n\t\t// \t'tahun' => 2018,\n\t\t// \t'jumlah' => 55,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"april\",\n\t\t// \t'tahun' => 2018,\n\t\t// \t'jumlah' => 154,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"mei\",\n\t\t// \t'tahun' => 2018,\n\t\t// \t'jumlah' => 97,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"juni\",\n\t\t// \t'tahun' => 2018,\n\t\t// \t'jumlah' => 113,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"juli\",\n\t\t// \t'tahun' => 2018,\n\t\t// \t'jumlah' => 115,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"agustus\",\n\t\t// \t'tahun' => 2018,\n\t\t// \t'jumlah' => 95,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"september\",\n\t\t// \t'tahun' => 2018,\n\t\t// \t'jumlah' => 177,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"oktober\",\n\t\t// \t'tahun' => 2018,\n\t\t// \t'jumlah' => 123,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"november\",\n\t\t// \t'tahun' => 2018,\n\t\t// \t'jumlah' => 96,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"desember\",\n\t\t// \t'tahun' => 2018,\n\t\t// \t'jumlah' => 54,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"january\",\n\t\t// \t'tahun' => 2019,\n\t\t// \t'jumlah' => 131,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"february\",\n\t\t// \t'tahun' => 2019,\n\t\t// \t'jumlah' => 79,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"maret\",\n\t\t// \t'tahun' => 2019,\n\t\t// \t'jumlah' => 77,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"april\",\n\t\t// \t'tahun' => 2019,\n\t\t// \t'jumlah' => 73,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"mei\",\n\t\t// \t'tahun' => 2019,\n\t\t// \t'jumlah' => 68,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"juni\",\n\t\t// \t'tahun' => 2019,\n\t\t// \t'jumlah' => 112,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"juli\",\n\t\t// \t'tahun' => 2019,\n\t\t// \t'jumlah' => 94,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"agustus\",\n\t\t// \t'tahun' => 2019,\n\t\t// \t'jumlah' => 90,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"september\",\n\t\t// \t'tahun' => 2019,\n\t\t// \t'jumlah' => 146,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"oktober\",\n\t\t// \t'tahun' => 2019,\n\t\t// \t'jumlah' => 127,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"november\",\n\t\t// \t'tahun' => 2019,\n\t\t// \t'jumlah' => 83,\n\t\t// ];\n\t\t// $db_penjualan[] = (object) [\n\t\t// \t'bulan' => \"desember\",\n\t\t// \t'tahun' => 2019,\n\t\t// \t'jumlah' => 30,\n\t\t// ];\n\n\n\t\t\n\t\t#post\n\t\t$tahun = $this->input->post('tahun');\n\t\t$merk = $this->input->post('merk');\n\n\t\t#langkah 1\n\n\t\tif ($merk != \"\" AND $tahun == \"\") {\n\t\t\t$this->db->where('produk.merk', $merk);\n\t\t}else if($tahun != \"\" AND $merk != \"\"){\n\t\t\t$this->db->where('produk.merk', $merk);\n\t\t\t$this->db->where('year(tgl)', $tahun);\n\t\t}else if($tahun != \"\" AND $merk == \"\"){\n\t\t\t$this->db->where('year(tgl)', $tahun);\n\t\t}\n\t\t$db_penjualan = $this->db\n\t\t\t->select('transaksi.*,year(tgl) as tahun,monthname(tgl) as bulan,sum(jumlah) as jumlah')\n\t\t\t->join('transaksi', 'transaksi.id=detailtransaksi.fk_transaksi')\n\t\t\t->join('produk', 'produk.id=detailtransaksi.fk_produk')\n\t\t\t->group_by('year(tgl)')\n\t\t\t->group_by('month(tgl)')\n\t\t\t->get('detailtransaksi')\n\t\t\t->result();\n\n\t\tif(count($db_penjualan) == 0){\n\t\t\techo json_encode([\n\t\t\t\t'error' => 1,\n\t\t\t\t'message' => \"Data Kosong\",\n\t\t\t]);\n\t\t\tdie();\n\t\t}\n\n\t\t$keterangan_data = [];\n\t\t$datas = [];\n\n\t\tforeach ($db_penjualan as $key => $value) {\n\t\t\t$keterangan_data[$key] = $value;\n\t\t\t$datas[$key] = $value->jumlah;\n\t\t}\n\n\t\t#langkah 2\n\t\t$dmin = min($datas);\n\t\t$dmax = max($datas);\n\n\t\t#cons\n\t\t$d1 = 10;\n\t\t$d2 = 7;\n\n\t\t$Himpunan1 = $dmin - $d1;\n\t\t$Himpunan2 = $dmax + $d2;\n\n\n\t\t#cons\n\t\t$jumlah_interval_kelas = 10;\n\n\t\t#langkah 3\n\t\t$data = [];\n\t\tforeach ($datas as $key => $value) {\n\t\t\tif ($key == 0) continue;\n\t\t\t$data[] = abs($datas[$key] - $datas[$key - 1]);\n\t\t}\n\n\t\t$avg_data = array_sum($data) / count($data);\n\n\n\t\t#langkah3.1\n\t\t$b = $avg_data / 2;\n\n\t\t$basis = 0;\n\n\t\tif ($b >= 0.1 && $b <= 1) {\n\t\t\t$basis = 0.1;\n\t\t} else if ($b >= 1.1 && $b <= 10) {\n\t\t\t$basis = 1;\n\t\t} else if ($b >= 11 && $b <= 100) {\n\t\t\t$basis = 10;\n\t\t} else if ($b >= 101 && $b <= 1000) {\n\t\t\t$basis = 100;\n\t\t} else if ($b >= 1001 && $b <= 10000) {\n\t\t\t$basis = 1000;\n\t\t}\n\n\t\t#langka3.2\n\t\t$panjang_interval = ($dmax + $d1 - $dmin + $d2) / $basis;\n\n\n\t\t#langkah4\n\t\t$himpunan_interval = [];\n\t\tfor ($i = $Himpunan1; $i < $Himpunan2; $i += $panjang_interval) {\n\t\t\t$himpunan_interval[] = [\n\t\t\t\t'min' => $i,\n\t\t\t\t'max' => $i + $panjang_interval\n\t\t\t];\n\t\t}\n\n\t\t$nilaitengah_A = [];\n\t\tforeach ($himpunan_interval as $key => $value) {\n\t\t\t$nilaitengah_A[$key] = ($value['min'] + $value['max']) / 2;\n\t\t}\n\n\n\t\t#langkah5\n\t\t$fuzzifikasi = [];\n\t\tforeach ($datas as $key => $value) {\n\t\t\tforeach ($himpunan_interval as $k => $v) {\n\t\t\t\tif ($value >= $v['min'] && $value <= $v['max']) {\n\t\t\t\t\t$fuzzifikasi[$key] = $k;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t#langkah6\n\t\t$relasi_fuzzy = [];\n\t\tforeach ($fuzzifikasi as $key => $value) {\n\t\t\tif ($key == 0) continue;\n\t\t\t$relasi_fuzzy[] = [\n\t\t\t\t'index_from' => ($key - 1),\n\t\t\t\t'index_to' => ($key),\n\t\t\t\t'from' => $fuzzifikasi[$key - 1],\n\t\t\t\t'to' => $fuzzifikasi[$key],\n\t\t\t];\n\t\t}\n\n\t\t#langkah7\n\t\t$relasi_group_fuzzy = [];\n\t\tforeach ($relasi_fuzzy as $key => $value) {\n\t\t\tif (isset($relasi_group_fuzzy[$value['from']][$value['to']])) {\n\t\t\t\t$relasi_group_fuzzy[$value['from']][$value['to']] += 1;\n\t\t\t} else {\n\t\t\t\t$relasi_group_fuzzy[$value['from']][$value['to']] = 1;\n\t\t\t}\n\t\t}\n\n\t\t#langkah7\n\t\t$matrix = [];\n\t\tforeach ($relasi_group_fuzzy as $key => $value) {\n\t\t\t$sum = array_sum($value);\n\t\t\tforeach ($value as $k => $v) {\n\t\t\t\t$matrix[$key][$k] = $v / $sum;\n\t\t\t}\n\t\t}\n\t\t/*$maxku = max($relasi_group_fuzzy);\n\t\t$coba = [];\n\t\tforeach ($relasi_fuzzy as $boy => $maxku) {\n\t\t\t$coba[$maxku['from']][$maxku['to']];\n\t\t}*/\n\t\t$data_ramalan = [];\n\t\tforeach ($relasi_fuzzy as $key => $value) {\n\t\t\tif ($value['from'] == $value['to']) {\n\n\t\t\t\t$value_to = $value['to'];\n\t\t\t\t$before = 0;\n\t\t\t\tif (isset($matrix[$value_to][$value_to - 1])) {\n\t\t\t\t\t$before = $matrix[$value_to][$value_to - 1] * $nilaitengah_A[$value_to - 1];\n\t\t\t\t}\n\t\t\t\t$after = 0;\n\t\t\t\tif (isset($matrix[$value_to][$value_to + 1])) {\n\t\t\t\t\t$after = $matrix[$value_to][$value_to + 1] * $nilaitengah_A[$value_to + 1];\n\t\t\t\t}\n\t\t\t\t$rumus_many = $before + ($datas[$value['index_to'] - 1] * $matrix[$value_to][$value_to]) + $after;\n\t\t\t\t$data_ramalan[$value['index_to']] = $rumus_many;\n\t\t\t} else {\n\t\t\t\t$data_ramalan[$value['index_to']] = $nilaitengah_A[$value['to']];\n\t\t\t}\n\t\t}\n\n\t\t$chart_label = [];\n\t\t$chart_data_predik = [];\n\t\t$chart_data_aktual = [];\n\t\tforeach ($data_ramalan as $key => $value) {\n\t\t\t$chart_label[] = $keterangan_data[$key]->bulan . \" \" . $keterangan_data[$key]->tahun;\n\t\t\t$chart_data_predik[] = $value;\n\t\t\t$chart_data_aktual[] = $keterangan_data[$key]->jumlah;\n\t\t}\n\n\t\techo json_encode([\n\t\t\t'error' => 0,\n\t\t\t'chart' => [\n\t\t\t\t'label' => $chart_label,\n\t\t\t\t'predik' => $chart_data_predik,\n\t\t\t\t'aktual' => $chart_data_aktual,\n\t\t\t]\n\t\t]);\n\t}", "function dbToUIdate() {\r\n\t\t\r\n\t\t$year = substr($this->event_date_time, -19, 4);\r\n\t\t$month = substr($this->event_date_time, -14, 2);\r\n\t\t$day = substr($this->event_date_time, -11, 2);\r\n\r\n\t\t$this->date = $month . \"/\" . $day . \"/\" . $year;\r\n\t\r\n\t}", "function get_timestamp_jour_suivant($timestamp_today) {\n\tglobal $mysqli;\n\t$demain=false;\n\n\t$tab_nom_jour=array('dimanche','lundi','mardi','mercredi','jeudi','vendredi','samedi');\n\t$sql=\"SELECT * from horaires_etablissement WHERE ouverture_horaire_etablissement!=fermeture_horaire_etablissement AND ouvert_horaire_etablissement!='0' ORDER BY id_horaire_etablissement;\";\n\t$res_jours_ouverts=mysqli_query($mysqli, $sql);\n\tif($res_jours_ouverts->num_rows > 0) {\n\t\t$tab_jours_ouverture=array();\n\t\twhile($lig_j = $res_jours_ouverts->fetch_object()) {\n\t\t\t$tab_jours_ouverture[]=$lig_j->jour_horaire_etablissement;\n\t\t\t//echo \"\\$tab_jours_ouverture[]=\".$lig_j->jour_horaire_etablissement.\"<br />\";\n\t\t}\n\t\t$res_jours_ouverts->close();\n\n\t\t$compteur=0;\n\t\t$j_prec = $timestamp_today - 3600*24;\n\t\twhile((isset($tab_nom_jour[strftime(\"%w\",$j_prec)]))&&(!in_array($tab_nom_jour[strftime(\"%w\",$j_prec)],$tab_jours_ouverture))&&($compteur<8)) {\n\t\t\t$j_prec -= 3600*24;\n\t\t\t$compteur++;\n\t\t}\n\t\tif($compteur<7) {\n\t\t\t$hier=$j_prec;\n\t\t}\n\n\t\t$compteur=0;\n\t\t$j_suiv = $timestamp_today + 3600*24;\n\t\twhile((isset($tab_nom_jour[strftime(\"%w\",$j_suiv)]))&&(!in_array($tab_nom_jour[strftime(\"%w\",$j_suiv)],$tab_jours_ouverture))&&($compteur<8)) {\n\t\t\t$j_suiv += 3600*24;\n\t\t\t$compteur++;\n\t\t}\n\t\tif($compteur<7) {\n\t\t\t$demain=$j_suiv;\n\t\t}\n\t}\n\n\treturn $demain;\n}", "function MTD_RECIBIR_DATOS_DB ($vp_arreglo_datos)\n {\n \t \t \t\t \t\t \n }", "public function getDataAtual()\n {\n $this->hoje = date(\"Y-m-d H:i:s\");\n return $this->hoje;\n }", "public function tratarDados(){\r\n\t\r\n\t\r\n }", "function exportValue()\n\t{\n\t\t$values = parent::getValue();\n\t\t$y = $values['Y'][0];\n\t\t$m = $values['F'][0];\n\t\t$d = $values['d'][0];\n\t\t$m = $m < 10 ? '0'.$m : $m;\n\t\t$d = $d < 10 ? '0'.$d : $d;\n\t\t$datetime = $y.'-'.$m.'-'.$d;\n\t\t$result[$this->getName()]= $datetime;\n\t\treturn $result;\n\t}", "function work_data_emp($id)\n{\n// selecteaza datele platite deja din salarii\n $query = \"SELECT sum(salarii.prezent) AS lucratez, \n (DATE_FORMAT(LAST_DAY(data),'%d') - sum(salarii.prezent)) AS absent, \n sum(motiv) AS motivat, \n sum(suma) AS salarii, \n DATE_FORMAT(data, '%m') AS data\n FROM cozagro_db.salarii \n WHERE salarii.deleted = 0 AND salarii.id_angajat= $id\n GROUP BY MONTH(data)\";\n $result = Database::getInstance()->getConnection()->query($query);\n if (!$result) {\n die(\"Nu s-a reusit conexiunea la DB selectarea salariilor platite\" . Database::getInstance()->getConnection()->error);\n }\n $zile_lucrate = [];\n while ($x = $result->fetch_assoc()) {\n $zile_lucrate[$x['data']] = array(\"luc\" => $x['lucratez'], \"abs\" => $x['absent'], \"mot\" => $x['motivat'], \"sal\" => $x['salarii']);\n }\n $result->free_result();\n return $zile_lucrate;\n}", "public function column_date($post)\n {\n }", "public function column_date($post)\n {\n }", "public function getDateFin();", "public function ReportesData(){\n\t\t$this->status=\"1\";\n\t\t$this->created_at = \"NOW()\";\n\t}", "public function get_date_permastruct()\n {\n }", "function datum($db_date) {\r\n return strftime('%d.%m.%Y', strtotime($db_date));\r\n }", "public function run()\n {\n DB::table('tgf_hora_dia')->insert([\n ['hor_inicio' => '07:15', 'hor_fin' => '08:00'], // 1\n ['hor_inicio' => '08:00', 'hor_fin' => '09:00'], // 2\n ['hor_inicio' => '09:00', 'hor_fin' => '10:00'], // 3\n ['hor_inicio' => '10:00', 'hor_fin' => '11:00'], // 4\n ['hor_inicio' => '11:00', 'hor_fin' => '12:00'], // 5\n ['hor_inicio' => '12:00', 'hor_fin' => '13:00'], // 6\n ['hor_inicio' => '13:00', 'hor_fin' => '14:00'], // 7\n ['hor_inicio' => '14:00', 'hor_fin' => '15:00'], // 8\n ['hor_inicio' => '15:00', 'hor_fin' => '16:00'], // 9\n ['hor_inicio' => '16:00', 'hor_fin' => '17:00'], // 10\n ['hor_inicio' => '17:00', 'hor_fin' => '18:00'], // 11\n ['hor_inicio' => '18:00', 'hor_fin' => '19:00'], // 12\n ['hor_inicio' => '19:00', 'hor_fin' => '20:00'], // 13\n ['hor_inicio' => '20:00', 'hor_fin' => '21:00'], // 14\n ['hor_inicio' => '21:00', 'hor_fin' => '22:00'] // 15\n ]);\n }", "public function renderAppliesCorrectTimestampConversionDataProvider() {}", "public function dataTreaty()\n {\n return Datatables::of(Treaty::select('id', 'judul','kode','treaty_jenis_id','published_at','status'))\n ->addColumn('treaty_jenis', function ($treaty)\n { //change over here \n $treatyjenisxsim=TreatyJenis::find($treaty->treaty_jenis_id);\n $treaty_jenis = $treatyjenisxsim->judul;\n return $treaty_jenis;\n })\n ->editColumn('published_at', function ($treaty) \n { //change over here \n return date('d M Y', strtotime($treaty->published_at) );\n })\n ->make(true);\n }", "public function getDataWithTypeDate() {}", "public function change()\n {\n $this->adapter->beginTransaction();\n $this->execute(\"UPDATE lightning_node_field_data, lightning_node__field_published_date SET published_at = UNIX_TIMESTAMP(STR_TO_DATE(lightning_node__field_published_date.field_published_date_value, '%Y-%m-%d %h:%i%p')) WHERE nid = lightning_node__field_published_date.entity_id AND vid = revision_id;\");\n $this->execute(\"UPDATE lightning_node_field_revision, lightning_node__field_published_date SET published_at = UNIX_TIMESTAMP(STR_TO_DATE(lightning_node__field_published_date.field_published_date_value, '%Y-%m-%d %h:%i%p')) WHERE nid = lightning_node__field_published_date.entity_id;\");\n $this->execute(\"UPDATE lightning_node_field_data SET published_at = created WHERE published_at IS NULL;\");\n $this->execute(\"UPDATE lightning_node_field_revision SET published_at = created WHERE published_at IS NULL;\");\n $this->adapter->commitTransaction();\n }", "public function onPrePersist()\n {\n $this->fechaUltimaModificacion = new \\DateTime(\"now\");\n }", "function copy($data)\r\n {\r\n $this->ano = $data->ano;\r\n $this->mes = $data->mes;\r\n $this->dia = $data->dia;\r\n $this->hora = $data->hora;\r\n $this->minuto = $data->minuto;\r\n $this->segundo = $data->segundo;\r\n $this->tz = $data->tz;\r\n }", "function joueContre($adversaire, $lieu, $date) // trois argument définis pour la première fois\n{\n // contenant les infos de la rencontre\n array_push($this->rencontres, [\"adversaire\" => $adversaire, \n \"lieu\" => $lieu, \n \"date\" => $date\n\n ]); // on range les données dans le tableau rencontres, tableau de niveau 2\n\n}", "private function _consolideDate(){\n\t\t$this->_mktime();\n\t\t$this->_setDate();\n\t}", "public function run()\n {\n DB::table('vakantiedagen')->insert([\n 'user_id' => 1, ////werknemer\n 'vakantie_van' => '30-06-2021',\n 'vakantie_tot' => '10-07-2021',\n 'inLaravelDB' => 1\n ]);\n DB::table('vakantiedagen')->insert([\n 'user_id' => 2, ////werknemer\n 'vakantie_van' => '25-06-2021',\n 'vakantie_tot' => '01-07-2021',\n 'inLaravelDB' => 1\n ]);\n DB::table('vakantiedagen')->insert([\n 'user_id' => 2, ////werknemer\n 'vakantie_van' => '30-07-2021',\n 'vakantie_tot' => '05-08-2021',\n 'inLaravelDB' => 1\n ]);\n //\n }", "public function nutriments() {\n\t\tfunction dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}\n\t\t\n\t\t// Fonction qui renvoi le nombre de jours entre deux dates\n\t\tfunction jours($date1, $date2){\n\t\t\t$diff = abs($date1 - $date2); \n\t\t\t$retour = array();\n\t\t \n\t\t\t$tmp = $diff;\n\t\t\t$retour['second'] = $tmp % 60;\n\t\t \n\t\t\t$tmp = floor( ($tmp - $retour['second']) /60 );\n\t\t\t$retour['minute'] = $tmp % 60;\n\t\t\t\n\t\t\t$tmp = floor( ($tmp - $retour['minute'])/60 );\n\t\t\t$retour['hour'] = $tmp % 24;\n\t\t\t\t \n\t\t\t$tmp = floor( ($tmp - $retour['hour']) /24 );\n\t\t\t$retour['day'] = $tmp;\n\t\t\t\t \n\t\t\treturn $retour['day'];\n\t\t}\n\t\t\n\t\t\n\t\t$id = AuthComponent::user('id');\n\t\tsetlocale (LC_TIME, 'fr_FR.utf8','fra');\n\t\t$date = date('Y-m-d');\n\t\t\n\t\t$this->set('debut',null);\n\t\t$this->set('fin',null);\n\t\tif ($this->request->is('post')) {\n\t\t\t/* Vérification des informations envoyées */\n\t\t\t$message;\n\t\t\t$stop = false;\n\t\t\t$deb = $_POST['debut'];\n\t\t\t$fin = $_POST['fin'];\n\t\t\t\n\t\t\tif (!(preg_match(\"/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/\",$deb))) {\n\t\t\t\t$stop = true;\n\t\t\t\t$message = \"Erreur, la date de début est invalide, elle doit être sous format 'YYYY-MM-DD'\";\n\t\t\t} elseif (!(preg_match(\"/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/\",$fin))) {\n\t\t\t\t$stop = true;\n\t\t\t\t$message = \"Erreur, la date de fin est invalide, elle doit être sous format 'YYYY-MM-DD'\";\n\t\t\t} else {\n\t\t\t\tif ($deb > $date ) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être supérieure à la date d'aujourd'hui\";\n\t\t\t\t} elseif ($fin > $date) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être supérieure à la date d'aujourd'hui\";\n\t\t\t\t}\n\t\t\t\tif ($deb == $fin) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être égale à la date de fin\";\n\t\t\t\t} elseif ($deb > $fin) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être supérieure à la date de fin\";\n\t\t\t\t}\n\t\t\t\t$this->set('debut',$deb);\n\t\t\t\t$this->set('fin',$fin);\n\t\t\t}\n\t\t\t/* fin vérif */\n\t\t\tif ($stop) {\n\t\t\t\t$this->Session->setFlash(__($message));\n\t\t\t} else {\n\t\t\t\t$fin = $fin . ' 23:59:59';\n\t\t\t\t$repas = $this->Suivialimentaire->find('all',array('conditions' => array('AND' => array(\n\t\t\t\t\t\t\t\tarray('id_user' => $id),\n\t\t\t\t\t\t\t\tarray('Suivialimentaire.created BETWEEN ? AND ?' => array($deb, $fin))\n\t\t\t\t)),'order' => array('Suivialimentaire.created DESC') ));\n\t\t\t\t$temp = $repas;\n\t\t\t\t$i = 0;\n\t\t\t\tforeach ($repas as $r) {\n\t\t\t\t\t$temp[$i]['Aliment']= $this->Aliment->find('first', array('conditions' => array('Aliment.id' => $r['Suivialimentaire']['id_aliment'])));\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t\t$repas = $temp;\n\t\t\t\t$nutriments = array();\n\t\t\t\t$descri = $this->Constituantaliment->query(\"select name from constituantaliments join donneescompilees on constituantaliments_id = constituantaliments.id where aliments_id = 1000\");\n\t\t\t\tforeach ($descri as $desc) {\n\t\t\t\t\t$nutriments[]['nom'] = $desc['constituantaliments']['name'];\n\t\t\t\t}\n\t\t\t\tfor ($i = 0; $i < 57; $i++) $nutriments[$i]['valeur'] = 0;\n\t\t\t\tforeach ($repas as $rep) {\n\t\t\t\t\tfor ($i = 0; $i < 57; $i++) {\n\t\t\t\t\t\tif (!empty($rep['Aliment'])) {\n\t\t\t\t\t\t\t$nutriments[$i]['valeur'] = $nutriments[$i]['valeur'] + ($rep['Aliment']['Donneesaliment'][$i]['valmoy'] * $rep['Suivialimentaire']['quantite'] * $rep['Suivialimentaire']['portion']/100) * count(explode(\"@\",$rep['Suivialimentaire']['nomSA']));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$valsplit = explode(\"@\", $rep['Alimhorsclassification']['nutri']);\n\t\t\t\t\t\t\t$valresul = $valsplit[$i];\n\t\t\t\t\t\t\t$nutriments[$i]['valeur'] = $nutriments[$i]['valeur'] + ($valresul * $rep['Suivialimentaire']['quantite'] * $rep['Suivialimentaire']['portion']/100) * count(explode(\"@\",$rep['Suivialimentaire']['nomSA']));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$this->set('repas',$repas);\n\t\t\t\t$this->set('nutriments',$nutriments);\n\t\t\t\t$time1 = strtotime($deb);\n\t\t\t\t$time2 = strtotime($fin);\n\t\t\t\t$e=jours($time1, $time2);\n\t\t\t\t$this->set('joursDiff',$e);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public function getDataCalculo() {\n return $this->dtDataCalculo;\n }", "public function test() {\r\n $this->vkdata = date(\"Y-m-d H:i:s\");\r\n\r\n }", "function insert_annonce() {\n\n\tspip_log(\"[Vu!] -- Création d'une nouvelle annonce dans la base\", \"vu!\");\n\treturn sql_insertq(\"spip_vu_annonces\", array('date' => date('Y-m-d')));\n\n}", "public function transactPartenaire()\n {\n $data['liste_part'] = $this->partenaireModels->getPartenaire();\n $this->views->setData($data);\n $param['part'] = $this->paramPOST['fk_partenaire'];\n\n if (isset($this->paramPOST[\"datedeb\"]) & isset($this->paramPOST[\"datefin\"])) {\n\n $param['datedeb'] = Utils::date_aaaa_mm_jj($this->paramPOST['datedeb']) ;\n $param['datefin'] = Utils::date_aaaa_mm_jj($this->paramPOST['datefin']);\n\n }else{\n $param['datedeb'] = date('Y-m-d');\n $param['datefin'] = date('Y-m-d');\n }\n\n $this->views->setData($param);\n $this->views->getTemplate('reporting/transactPartenaire');\n }", "public function preUpdate()\n {\n \t$this->dateFound = new \\DateTime(\"now\");\n }", "function set_date_to_now()\n {\n $this->timestamp=time();\n }", "public function __construct()\n {\n\n $this->begindatum = new \\DateTime();\n $this->einddatum = new \\DateTime();\n\n }", "public function onPrePersist()\n {\n $this->fechaCreacion = new \\DateTime(\"now\");\n }", "public function run()\n {\n $data = new Anio();\n $data->anio = 2019;\n $data->save();\n\n $data = new Anio();\n $data->anio = 2020;\n \t$data->save();\n }", "function insertkuesionerman($tabel,$dt) {\n\t\t$this->db->insert($tabel, $dt);\n }", "function getFecha(){\n\t\treturn $this->fecha;\n\t}", "public function change()\n {\n $table = $this->table('information');\n $table->addColumn('reserved_at', 'timestamp', [\n 'null' => true,\n 'after' => 'information_category_id',\n 'comment' => '公開予約日',\n ]);\n $table->update();\n }", "public function displayDatoSeguimiento($etapa_id){\n try{\n log_message(\"INFO\", \"Obteniendo valor de campo para etapa: \".$etapa_id, FALSE);\n log_message(\"INFO\", \"Nombre campo: \".$this->nombre, FALSE);\n\n $dato = Doctrine::getTable('DatoSeguimiento')->findByNombreHastaEtapa($this->nombre,$etapa_id);\n if(!$dato ){\n //Se deben crear\n $dato = new DatoSeguimiento();\n $dato->nombre = $this->nombre;\n $dato->etapa_id = $etapa_id;\n $dato->valor = NULL;\n }\n log_message(\"INFO\", \"Nombre dato: \".$dato->nombre, FALSE);\n log_message(\"INFO\", \"Valor dato: .\".$dato->valor.\".\", FALSE);\n log_message(\"INFO\", \"this->valor_default: \".$this->valor_default, FALSE);\n if(isset($this->valor_default) && strlen($this->valor_default) > 0 && $dato->valor === NULL){\n $regla=new Regla($this->valor_default);\n $valor_dato=$regla->getExpresionParaOutput($etapa_id);\n $dato->valor = $valor_dato;\n $dato->save();\n }else{\n $valor_dato = $dato->valor;\n }\n\n log_message(\"INFO\", \"valor_default: \".$valor_dato, FALSE);\n\n return $valor_dato;\n }catch(Exception $e){\n log_message('error',$e->getMessage());die;\n throw $e;\n }\n }", "public function lagre() {\n\n try\n {\n $sql_tekst = \"INSERT INTO Stikkord \";\n $sql_tekst .= \"(tekst)\";\n $sql_tekst .= \"VALUES (\";\n $sql_tekst .= \"'\".$this->hentTekst().\"'\";\n $sql_tekst .= \")\";\n $setning = self::$db->prepare($sql_tekst);\n\n\n if($setning->execute()) {\n $this->settId(self::$db->lastInsertId());\n } else\n // dersom stikkordet allerede finnes, hent id til stikkordet og bruk det\n {\n $tekst=$this->hentTekst();\n $sql_tekst = \"SELECT * FROM Stikkord WHERE tekst = :tekst\";\n\n $setning = self::$db->prepare($sql_tekst);\n $setning->bindParam(':tekst',$tekst,PDO::PARAM_STR);\n $setning->execute();\n $stikkord = $setning->fetchObject('Stikkord');\n $this->settId($stikkord->hentId());\n\n }\n\n }\n catch (Exception $e) {\n print $e->getMessage() . PHP_EOL;\n }\n\n return $setning;\n\n }", "function DobavljanjeZaGrafKutijaZaPrintanje(){\n $conn=ConnectToDatabase();\n $dataGrafUKutijiZaPrintanje = \"SELECT data.temperature, data.humidityAbsolute, data.time FROM weather.data WHERE data.room_fk=2 ORDER BY data.id DESC LIMIT 1440\";\n $resultGrafDataUKutijiZaPrintanje = $conn->query($dataGrafUKutijiZaPrintanje);\n if ($resultGrafDataUKutijiZaPrintanje->num_rows > 0) {\n while ($row = $resultGrafDataUKutijiZaPrintanje->fetch_assoc()) {\n settype($row['time'], \"Time\");\n settype( $row['temperature'], \"float\");\n settype( $row['humidityAbsolute'], \"float\");\n $arrayDataGrafUKutijiZaPrintanje[] = array( date( \"H:i\", strtotime($row['time'])), $row['temperature'], $row['humidityAbsolute']);\n }\n }\n $conn->close();\n $JSON=json_encode($arrayDataGrafUKutijiZaPrintanje);\n return $JSON;\n }", "function datum_nu() {\n\t\t//\n\t\t$datestring \t\t\t\t= \"%d-%m-%Y\" ; \n\t\t$time \t\t\t\t\t\t= time();\t\t\t\n\t\t\n\t\treturn date($datestring, $time);\n\t\t//-----/\n\t}", "public function stdWrap_dateDataProvider() {}", "function ultimo_dia_periodo() { \n\n $sql=\"select fecha_fin from mocovi_periodo_presupuestario where actual=true\";\n $resul=toba::db('designa')->consultar($sql); \n return $resul[0]['fecha_fin'];\n }", "function ExibeData($data){\n\t\treturn date(\"d/m/Y\", strtotime($data));\n\t}", "protected function dt(){\n return date('Y-m-d\\TH:i:s');\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n Date::truncate();\n\n $cantidadDatos = 1625;\n\n\n factory(Date::class, $cantidadDatos)->create();\n }", "function uiToDBdate() {\r\n\r\n\t\t$month = (int) substr($this->date, -10, 2);\r\n\t\t$day = (int) substr($this->date, -7, 2);\r\n\t\t$year = (int) substr($this->date, -4, 4);\r\n\r\n\t\t$formattedDate = $year . \"-\" . $month . \"-\" . $day;\r\n\r\n\t\t$this->date = $formattedDate;\r\n\t}", "public function save_dates() {\n\t\t// Nothing to do here.\n\t}", "public function datumDeleteFromId($id){\n $sql = \"select persnr,datum from dzeitsoll where id='$id'\";\n $res = $this->db->query($sql);\n $rows = $res->fetchAll();\n $row = $rows[0];\n $datum = $row['datum'];\n $persnr = $row['persnr'];\n // zjistim kolik takovych datumu pro daneho cloveka jeste mam\n $sql = \"select count(datum) as pocetdatumu from dzeitsoll where persnr='$persnr' and datum='$datum'\";\n $res = $this->db->query($sql);\n $pocetDatumu = $res->fetchSingle();\n if($pocetDatumu>1){\n // muzu dane id smazat\n $this->db->query(\"delete from dzeitsoll where id='$id' limit 1\");\n }\n else{\n // nebudu mazat ale nastavim stunden = 0, oe = -\n $sql = \"update dzeitsoll set stunden=0,oe='-' where id='$id'\";\n $this->db->query($sql);\n }\n }", "function utilDatesDBVersLocale($data)\n {\n foreach ($data as $key => $value) {\n\n if (is_array($value)) {\n /*\n * Traitement recursif\n */\n $data[$key] = $this->utilDatesDBVersLocale($value);\n } else {\n if (!empty($this->colonnes[$key]) && ($this->colonnes[$key][\"type\"] == 2 || $this->colonnes[$key][\"type\"] == 3) && !empty($value)) {\n /*\n * Formatage de la date\n */\n $data[$key] = $this->formatDateDBversLocal($value, $this->colonnes[$key][\"type\"]);\n }\n }\n\n }\n\n return $data;\n }", "function toekomst($datum) {\n $vandaagdatum = date(\"Y-m-d\");\n $vandaag = strtotime($vandaagdatum);\n $anderedatum = strtotime($datum);\n return ($vandaag <= $anderedatum);\n}", "function gr_tipo1($_idrespuesta,$valor){\n \n $tableRpta=$this->_tablerpta;\n $g_sql='';\n \n if(!empty($valor)){\n $_datarespt=\"TO_DATE(:valor,'\".Yii::$app->fmtfechasql.\"')\";\n }else{\n $_datarespt=\":valor\";\n $valor=null;\n }\n \n if(empty($_idrespuesta) and isset($valor)){\n $g_sql=\"INSERT INTO $tableRpta ([[ra_fecha]],[[id_conjunto_respuesta]],[[id_pregunta]],[[id_tpregunta]],[[id_capitulo]],[[id_formato]],[[id_conjunto_pregunta]],[[id_version]], [[id_junta]]) VALUES ($_datarespt, :idconjrpta, :idpregunta, :idtpregunta, :idcapitulo, :idformato,:idconjprta,:idversion, :idjunta)\";\n }\n else if(!empty($_idrespuesta) and isset($valor)){\n $g_sql=\"UPDATE $tableRpta SET [[ra_fecha]] = $_datarespt,[[id_conjunto_respuesta]] = :idconjrpta,[[id_pregunta]] = :idpregunta ,[[id_tpregunta]] = :idtpregunta,[[id_capitulo]] = :idcapitulo,[[id_formato]] = :idformato,[[id_conjunto_pregunta]] = :idconjprta,[[id_version]] = :idversion, [[id_junta]]= :idjunta WHERE [[id_respuesta]] = \".$_idrespuesta;\n }\n else if(!empty($_idrespuesta) and empty($valor)){\n $g_sql=\"UPDATE $tableRpta SET [[ra_fecha]] = $_datarespt,[[id_conjunto_respuesta]] = :idconjrpta,[[id_pregunta]] = :idpregunta ,[[id_tpregunta]] = :idtpregunta,[[id_capitulo]] = :idcapitulo,[[id_formato]] = :idformato,[[id_conjunto_pregunta]] = :idconjprta,[[id_version]] = :idversion, [[id_junta]]= :idjunta WHERE [[id_respuesta]] = \".$_idrespuesta;\n }else{\n $g_sql=\"\";\n } \n \n $_valor = $valor;\n return [$g_sql,$_valor];\n }", "function get_pedido_data()\n {\n $date = Carbon::now();\n $currentDate = $date->format('Y-m-d');\n $pedido_data = DB::table('pedidos')->whereRaw('DATE(\"created_at\") = ?',[$currentDate])->get();\n return $pedido_data;\n }", "public function testDirecteurValeurDateEmbauche() {\n $directeurATester = new Directeur();\n $dateTemoin = DateTime::createFromFormat(\"d/m/Y\",$this->dateTemoin);\n $directeurATester->setDateEmbauche($this->dateTemoin);\n $this->assertEquals($dateTemoin,$directeurATester->getDateEmbauche());\n }", "public function run()\n {\n /*\n $maaltijdsoort = new Maaltijdsoort();\n $maaltijdsoort->soort = \"geen maaltijd\";\n $maaltijdsoort->prijs = 0;\n $maaltijdsoort->beschikbaar = \"all\";\n $maaltijdsoort->save();\n */\n \n $maaltijdsoort = new Maaltijdsoort();\n $maaltijdsoort->soort = \"lunch\";\n $maaltijdsoort->prijs = 20;\n $maaltijdsoort->beschikbaar = \"all\";\n $maaltijdsoort->save();\n \n $maaltijdsoort = new Maaltijdsoort();\n $maaltijdsoort->soort = \"diner\";\n $maaltijdsoort->prijs = 30;\n $maaltijdsoort->beschikbaar = \"weekend\";\n $maaltijdsoort->save();\n \n $maaltijdsoort = new Maaltijdsoort();\n $maaltijdsoort->soort = \"combo\";\n $maaltijdsoort->prijs = 50;\n $maaltijdsoort->beschikbaar = \"weekend\";\n $maaltijdsoort->save();\n }", "public function run()\n {\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '1',\n 'merk_barang' => 'Single, AMP Single',\n 'nup' => '1',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '2',\n 'merk_barang' => 'Media Stand HP Designjet 110/500 series 24',\n 'nup' => '1',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2011-07-26',\n 'idbarang_fk' => '3',\n 'merk_barang' => 'Royal R775-18',\n 'nup' => '1',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2017-03-01',\n 'idbarang_fk' => '4',\n 'merk_barang' => 'Mesin Ketik Brother GX6750',\n 'nup' => '1',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2014-11-03',\n 'idbarang_fk' => '5',\n 'merk_barang' => 'Newmark NM - 03C',\n 'nup' => '1',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'Brother',\n 'nup' => '1',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'Brother B-204',\n 'nup' => '2',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'Brother B-204',\n 'nup' => '3',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'Brother B-204',\n 'nup' => '4',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'Brother B-204',\n 'nup' => '5',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2011-07-26',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'Brother B-204',\n 'nup' => '6',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2011-07-26',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'Brother B-204',\n 'nup' => '7',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'DATASCRIP C13LG-7',\n 'nup' => '8',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'DATASCRIP C13LG-7',\n 'nup' => '9',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'DATASCRIP LTC 22',\n 'nup' => '10',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'DATASCRIP C13LG-7',\n 'nup' => '11',\n 'idruang_fk' => '7'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'Brother B204',\n 'nup' => '12',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'Cupboard datascrip CBRG/LF05',\n 'nup' => '13',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'Cupboard datascrip CBRG/LF05',\n 'nup' => '14',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'Cupboard datascrip CBRG/ET C22',\n 'nup' => '15',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2014-12-04',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'Lemari Arsip Brother B-20',\n 'nup' => '16',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2014-12-04',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'Lemari Arsip Brother B-20',\n 'nup' => '17',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2014-12-04',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'Brother cardek',\n 'nup' => '18',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2014-12-04',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'Brother Cardek',\n 'nup' => '19',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'Brother B-204',\n 'nup' => '20',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'Brother B-304',\n 'nup' => '21',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'Brother B-304',\n 'nup' => '22',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'Brother B-304',\n 'nup' => '23',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2017-11-21',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'lemari Sliding door Brother B-304',\n 'nup' => '24',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2017-11-21',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'lemari Arsip Brother B-203',\n 'nup' => '25',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2017-11-28',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'Brother B-203',\n 'nup' => '26',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2017-11-28',\n 'idbarang_fk' => '6',\n 'merk_barang' => 'Brother B-203',\n 'nup' => '27',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '7',\n 'merk_barang' => 'Brother B-104',\n 'nup' => '1',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '7',\n 'merk_barang' => 'Brother B-104',\n 'nup' => '2',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '7',\n 'merk_barang' => 'Brother B-104',\n 'nup' => '3',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '7',\n 'merk_barang' => 'Brother B-104',\n 'nup' => '4',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '7',\n 'merk_barang' => 'Brother B-104',\n 'nup' => '5',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '7',\n 'merk_barang' => 'Brother B-104',\n 'nup' => '6',\n 'idruang_fk' => '11'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '7',\n 'merk_barang' => 'Brother B-104',\n 'nup' => '7',\n 'idruang_fk' => '11'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '7',\n 'merk_barang' => 'Brother B-104',\n 'nup' => '8',\n 'idruang_fk' => '11'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '7',\n 'merk_barang' => 'Brother B-104',\n 'nup' => '9',\n 'idruang_fk' => '12'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2011-07-26',\n 'idbarang_fk' => '7',\n 'merk_barang' => 'Brother B-104',\n 'nup' => '10',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2011-07-26',\n 'idbarang_fk' => '7',\n 'merk_barang' => 'Brother B-104',\n 'nup' => '11',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '7',\n 'merk_barang' => 'DATASCRIP FCD4-7',\n 'nup' => '12',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '7',\n 'merk_barang' => 'DATASCRIP FCD4-7',\n 'nup' => '13',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '7',\n 'merk_barang' => 'Brother B104',\n 'nup' => '14',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2014-12-04',\n 'idbarang_fk' => '7',\n 'merk_barang' => 'Filing Cabinet B-104',\n 'nup' => '15',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2014-12-04',\n 'idbarang_fk' => '7',\n 'merk_barang' => 'Filing Cabinet B-104',\n 'nup' => '16',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2014-12-04',\n 'idbarang_fk' => '7',\n 'merk_barang' => 'Filing Cabinet B-104',\n 'nup' => '17',\n 'idruang_fk' => '14'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2017-11-21',\n 'idbarang_fk' => '7',\n 'merk_barang' => 'Filing Cabinet Brother B-104',\n 'nup' => '18',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2017-11-21',\n 'idbarang_fk' => '7',\n 'merk_barang' => 'Filing Cabinet Brother B-104',\n 'nup' => '19',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2017-11-21',\n 'idbarang_fk' => '7',\n 'merk_barang' => 'Filing Cabinet Brother B-104',\n 'nup' => '20',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2019-04-05',\n 'idbarang_fk' => '7',\n 'merk_barang' => 'Filing Cabinet Brother B-103',\n 'nup' => '21',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2019-04-05',\n 'idbarang_fk' => '7',\n 'merk_barang' => 'Filing Cabinet Brother B-103',\n 'nup' => '22',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2019-04-05',\n 'idbarang_fk' => '7',\n 'merk_barang' => 'Filing Cabinet Brother B-103',\n 'nup' => '23',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // brangkas\n 'tanggal' => '2011-07-26',\n 'idbarang_fk' => '8',\n 'merk_barang' => 'Dragon DR-A1',\n 'nup' => '1',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // locker\n\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '9',\n 'merk_barang' => 'DATASCRIP LC3-7',\n 'nup' => '1',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '9',\n 'merk_barang' => 'DATASCRIP LC3-7',\n 'nup' => '2',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '9',\n 'merk_barang' => 'DATASCRIP LC3-7',\n 'nup' => '3',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '9',\n 'merk_barang' => 'DATASCRIP LC3-7',\n 'nup' => '4',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '9',\n 'merk_barang' => 'DATASCRIP LC3-7',\n 'nup' => '5',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '9',\n 'merk_barang' => 'DATASCRIP LC3-7',\n 'nup' => '6',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '9',\n 'merk_barang' => 'DATASCRIP LC3-7',\n 'nup' => '7',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '9',\n 'merk_barang' => 'Alba LC-506',\n 'nup' => '8',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '9',\n 'merk_barang' => 'Alba LC-506',\n 'nup' => '9',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // lemari display\n 'tanggal' => '2011-07-26',\n 'idbarang_fk' => '10',\n 'merk_barang' => 'BROTHER B-304',\n 'nup' => '1',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2011-07-26',\n 'idbarang_fk' => '10',\n 'merk_barang' => 'BROTHER B-304',\n 'nup' => '2',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2011-07-26',\n 'idbarang_fk' => '10',\n 'merk_barang' => 'BROTHER B-304',\n 'nup' => '3',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // CCTV\n 'tanggal' => '2017-10-05',\n 'idbarang_fk' => '11',\n 'merk_barang' => 'Paket CCTV ANALOG 1 MP 720P, 1 DVR BCH',\n 'nup' => '1',\n 'idruang_fk' => '16'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2018-11-29',\n 'idbarang_fk' => '11',\n 'merk_barang' => 'CCTV 9 Kamera',\n 'nup' => '2',\n 'idruang_fk' => '17'\n ));\n DB::table('detail_data_barang')->insert(array(\n // white board\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '12',\n 'merk_barang' => '120X240',\n 'nup' => '1',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '12',\n 'merk_barang' => '120X240',\n 'nup' => '2',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '12',\n 'merk_barang' => '120X240',\n 'nup' => '3',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '12',\n 'merk_barang' => '90X120',\n 'nup' => '4',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '12',\n 'merk_barang' => '90X120',\n 'nup' => '5',\n 'idruang_fk' => '12'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '12',\n 'merk_barang' => '90X120',\n 'nup' => '6',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '12',\n 'merk_barang' => 'GM Economi DF',\n 'nup' => '7',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '12',\n 'merk_barang' => 'GM Economi DF',\n 'nup' => '8',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2013-02-15',\n 'idbarang_fk' => '12',\n 'merk_barang' => 'Nusantara',\n 'nup' => '9',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2013-02-15',\n 'idbarang_fk' => '12',\n 'merk_barang' => 'Nusantara',\n 'nup' => '10',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2013-02-15',\n 'idbarang_fk' => '12',\n 'merk_barang' => 'Nusantara',\n 'nup' => '11',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n 'tanggal' => '2013-02-15',\n 'idbarang_fk' => '12',\n 'merk_barang' => 'Nusantara',\n 'nup' => '12',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Alat penghancur Kertas\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '13',\n 'merk_barang' => 'Secure Maxi 24SC',\n 'nup' => '1',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Alat penghancur Kertas\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '13',\n 'merk_barang' => 'Secure Maxi 24SC',\n 'nup' => '2',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // mesin absensi\n 'tanggal' => '2017-12-28',\n 'idbarang_fk' => '14',\n 'merk_barang' => 'FINGERSPOT REVO DUO 128BNC',\n 'nup' => '1',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // mesin absensi\n 'tanggal' => '2017-12-28',\n 'idbarang_fk' => '14',\n 'merk_barang' => 'FINGERSPOT REVO DUO 128BNC',\n 'nup' => '2',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // mesin absensi\n 'tanggal' => '2017-12-28',\n 'idbarang_fk' => '14',\n 'merk_barang' => 'FINGERSPOT REVO DUO 128BNC',\n 'nup' => '3',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // mesin absensi\n 'tanggal' => '2017-12-28',\n 'idbarang_fk' => '14',\n 'merk_barang' => 'FINGERSPOT REVO DUO 128BNC',\n 'nup' => '4',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // mesin absensi\n 'tanggal' => '2017-12-28',\n 'idbarang_fk' => '14',\n 'merk_barang' => 'FINGERSPOT REVO DUO 128BNC',\n 'nup' => '5',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // mesin absensi\n 'tanggal' => '2017-12-28',\n 'idbarang_fk' => '14',\n 'merk_barang' => 'FINGERSPOT REVO DUO 128BNC',\n 'nup' => '6',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // mesin absensi\n 'tanggal' => '2017-12-28',\n 'idbarang_fk' => '14',\n 'merk_barang' => 'FINGERSPOT REVO DUO 128BNC',\n 'nup' => '7',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // lASER POINTER\n 'tanggal' => '2017-10-16',\n 'idbarang_fk' => '15',\n 'merk_barang' => 'Logitech Wireless Presenter R400',\n 'nup' => '1',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // lASER POINTER\n 'tanggal' => '2017-10-16',\n 'idbarang_fk' => '15',\n 'merk_barang' => 'Logitech Wireless Presenter R400',\n 'nup' => '2',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2016-11-24',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'SONY VPL EX 230',\n 'nup' => '19',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2016-11-24',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'SONY VPL EX 230',\n 'nup' => '20',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2016-11-24',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'SONY VPL EX 230',\n 'nup' => '21',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2016-11-24',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'SONY VPL EX 230',\n 'nup' => '22',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2016-11-24',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'SONY VPL EX 230',\n 'nup' => '23',\n 'idruang_fk' => '26'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2010-11-25',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'BENQ MP575',\n 'nup' => '24',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2010-12-1',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'BENQ MP575',\n 'nup' => '25',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2010-12-16',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'BENQ MP515',\n 'nup' => '26',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2010-12-16',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'BENQ MP670',\n 'nup' => '27',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2011-06-06',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'BENQ MX810 ST',\n 'nup' => '28',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2011-07-26',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'BENQ MP660',\n 'nup' => '29',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2011-07-26',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'BENQ MP660',\n 'nup' => '30',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'BENQ 2800 Ans',\n 'nup' => '31',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'DELL 161011D',\n 'nup' => '32',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'DELL 161011D',\n 'nup' => '33',\n 'idruang_fk' => '6'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'DELL 161011D',\n 'nup' => '34',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'BENQ 2800 Ansi',\n 'nup' => '35',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'BENQ 2800 Ansi',\n 'nup' => '36',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'BENQ 2800 Ansi',\n 'nup' => '37',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'BENQ 2800 Ansi',\n 'nup' => '38',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'BENQ 2800 Ansi',\n 'nup' => '39',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'BENQ 2800 Ansi',\n 'nup' => '40',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'BENQ 2800 Ansi',\n 'nup' => '41',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2017-10-16',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'Infocus Projector(IN226)',\n 'nup' => '42',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2017-10-16',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'Infocus Projector(IN226)',\n 'nup' => '43',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2017-10-16',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'Infocus Projector(IN226)',\n 'nup' => '44',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2017-10-16',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'Infocus Projector(IN226)',\n 'nup' => '45',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2017-10-16',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'Infocus Projector(IN226)',\n 'nup' => '46',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LCD Projector/Infocus\n 'tanggal' => '2017-10-16',\n 'idbarang_fk' => '16',\n 'merk_barang' => 'Infocus Projector(IN226)',\n 'nup' => '47',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Focusing Screen\n 'tanggal' => '2017-11-14',\n 'idbarang_fk' => '17',\n 'merk_barang' => 'Screen Prokector G-lite Tripot 70\" Size 180x180',\n 'nup' => '1',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Focusing Screen\n 'tanggal' => '2017-11-14',\n 'idbarang_fk' => '17',\n 'merk_barang' => 'Screen Prokector G-lite Tripot 70\" Size 180x180',\n 'nup' => '2',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Focusing Screen\n 'tanggal' => '2017-11-24',\n 'idbarang_fk' => '17',\n 'merk_barang' => 'Screen Prokector G-lite Tripot 84\" Size 213x213',\n 'nup' => '3',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Focusing Screen\n 'tanggal' => '2017-11-14',\n 'idbarang_fk' => '17',\n 'merk_barang' => 'Screen Prokector G-lite Tripot 84\" Size 213x213',\n 'nup' => '4',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // papan pengumuman\n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '18',\n 'merk_barang' => 'GM Announcement Board',\n 'nup' => '1',\n 'idruang_fk' => '16'\n ));\n DB::table('detail_data_barang')->insert(array(\n // papan pengumuman\n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '18',\n 'merk_barang' => 'GM Announcement Board',\n 'nup' => '2',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2016-07-28',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Meja Active MTO 120',\n 'nup' => '33',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2016-07-28',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Meja Active MTO 120',\n 'nup' => '34',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2016-07-28',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Meja Active MTO 120',\n 'nup' => '35',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2016-07-28',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Meja Active MTO 120',\n 'nup' => '36',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2016-07-28',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Meja Active MTO 120',\n 'nup' => '37',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Profil',\n 'nup' => '38',\n 'idruang_fk' => '12'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Kayu Jati',\n 'nup' => '39',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Kayu Jati',\n 'nup' => '40',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Kayu Jati',\n 'nup' => '41',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Kayu Jati',\n 'nup' => '42',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Kayu Jati',\n 'nup' => '43',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Kayu Jati',\n 'nup' => '44',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Kayu Jati',\n 'nup' => '45',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Kayu Jati',\n 'nup' => '46',\n 'idruang_fk' => '3'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Kayu Jati',\n 'nup' => '47',\n 'idruang_fk' => '3'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Kayu Jati',\n 'nup' => '48',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Kayu Jati',\n 'nup' => '49',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Kayu Jati',\n 'nup' => '50',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Kayu Jati',\n 'nup' => '51',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Kayu Jati',\n 'nup' => '52',\n 'idruang_fk' => '4'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Kayu Jati',\n 'nup' => '53',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n //meja kayu sekretaris\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Kayu Jati',\n 'nup' => '54',\n 'idruang_fk' => '11'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Kayu Jati Texwood',\n 'nup' => '55',\n 'idruang_fk' => '3'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Kayu Jati Texwood',\n 'nup' => '56',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Kayu Jati Texwood',\n 'nup' => '57',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Kayu Jati Texwood',\n 'nup' => '58',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Kayu Jati Texwood',\n 'nup' => '59',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Kayu Jati Texwood',\n 'nup' => '60',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Profil 180x90x75',\n 'nup' => '61',\n 'idruang_fk' => '23'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Credenza',\n 'nup' => '62',\n 'idruang_fk' => '23'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Profil',\n 'nup' => '63',\n 'idruang_fk' => '11'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Profil',\n 'nup' => '64',\n 'idruang_fk' => '11'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Profil',\n 'nup' => '65',\n 'idruang_fk' => '11'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Espana 1275',\n 'nup' => '66',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Espana 1275',\n 'nup' => '67',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2013-02-15',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Fatoni',\n 'nup' => '68',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2013-02-15',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Fatoni',\n 'nup' => '69',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2017-11-21',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Meja Kerja Active Galant MTO 120',\n 'nup' => '70',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2017-11-21',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Meja Kerja Active Galant MTO 120',\n 'nup' => '71',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja kerja kayu\n 'tanggal' => '2017-11-21',\n 'idbarang_fk' => '19',\n 'merk_barang' => 'Meja Kerja Active Galant MTO 120',\n 'nup' => '72',\n 'idruang_fk' => '15'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Stainless Chrome',\n 'nup' => '1',\n 'idruang_fk' => '5'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Stainless Chrome',\n 'nup' => '2',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Stainless Chrome',\n 'nup' => '3',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Stainless Chrome',\n 'nup' => '4',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Stainless Chrome',\n 'nup' => '5',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Stainless Chrome',\n 'nup' => '6',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Stainless Chrome',\n 'nup' => '7',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Stainless Chrome',\n 'nup' => '8',\n 'idruang_fk' => '11'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Stainless Chrome',\n 'nup' => '9',\n 'idruang_fk' => '11'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Stainless Chrome',\n 'nup' => '10',\n 'idruang_fk' => '11'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Ushinto 9035',\n 'nup' => '11',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Isebel 147',\n 'nup' => '12',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Isebel 147',\n 'nup' => '13',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Isebel ',\n 'nup' => '14',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Isebel ',\n 'nup' => '15',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Isebel ',\n 'nup' => '16',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Isebel ',\n 'nup' => '17',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato NN ',\n 'nup' => '18',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato NN ',\n 'nup' => '19',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato NN ',\n 'nup' => '20',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato NN ',\n 'nup' => '21',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato NN ',\n 'nup' => '22',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato NN ',\n 'nup' => '23',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato NN ',\n 'nup' => '24',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato NN ',\n 'nup' => '25',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato NN ',\n 'nup' => '26',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato NN ',\n 'nup' => '27',\n 'idruang_fk' => '11'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato NN ',\n 'nup' => '28',\n 'idruang_fk' => '11'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato NN ',\n 'nup' => '29',\n 'idruang_fk' => '11'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '30',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '31',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '32',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '33',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '34',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '35',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '36',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '37',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '38',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '39',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '40',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '41',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '42',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '43',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '44',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '45',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '46',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '47',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '48',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '49',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '50',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '51',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '52',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '53',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '54',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '55',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '56',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '57',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '58',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '59',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '60',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '61',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '62',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '63',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '64',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '65',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '66',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '67',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '68',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '69',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '70',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '71',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '72',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '73',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '74',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '75',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '76',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '77',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '78',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '79',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '80',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '81',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '82',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '83',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '84',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '85',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '86',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '87',\n 'idruang_fk' => '26'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '88',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '89',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '90',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '91',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '92',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '93',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '94',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '95',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '96',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '97',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '98',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '99',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '100',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '101',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '102',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '103',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '104',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal(rk 2)\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '105',\n 'idruang_fk' => '26'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '106',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '107',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '108',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '109',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '110',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '111',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '112',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '113',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '114',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '115',\n 'idruang_fk' => '24'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '116',\n 'idruang_fk' => '24'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '117',\n 'idruang_fk' => '24'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '118',\n 'idruang_fk' => '24'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '119',\n 'idruang_fk' => '24'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '120',\n 'idruang_fk' => '24'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '121',\n 'idruang_fk' => '24'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '122',\n 'idruang_fk' => '24'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '123',\n 'idruang_fk' => '24'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '124',\n 'idruang_fk' => '24'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '125',\n 'idruang_fk' => '24'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '126',\n 'idruang_fk' => '24'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '127',\n 'idruang_fk' => '24'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '128',\n 'idruang_fk' => '24'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '129',\n 'idruang_fk' => '24'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '130',\n 'idruang_fk' => '24'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '131',\n 'idruang_fk' => '24'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '132',\n 'idruang_fk' => '24'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '133',\n 'idruang_fk' => '24'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '134',\n 'idruang_fk' => '24'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '135',\n 'idruang_fk' => '24'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '136',\n 'idruang_fk' => '24'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '137',\n 'idruang_fk' => '24'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '138',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '139',\n 'idruang_fk' => '8'\n )); DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '140',\n 'idruang_fk' => '8'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '141',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '142',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '143',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '144',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '145',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '146',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '147',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '148',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '149',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato MDN Chrome ',\n 'nup' => '150',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 485 OSCAR HITAM ',\n 'nup' => '151',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 485 OSCAR HITAM ',\n 'nup' => '152',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 485 OSCAR HITAM ',\n 'nup' => '153',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 485 OSCAR HITAM ',\n 'nup' => '154',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 485 OSCAR HITAM ',\n 'nup' => '155',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'OSCAR FHANTASI VH ',\n 'nup' => '156',\n 'idruang_fk' => '23'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'USHINTO 608T OSCAR HITAM ',\n 'nup' => '157',\n 'idruang_fk' => '23'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'USHINTO 608T OSCAR HITAM ',\n 'nup' => '158',\n 'idruang_fk' => '23'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'USHINTO OSCAR ',\n 'nup' => '159',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'USHINTO OSCAR ',\n 'nup' => '160',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'USHINTO OSCAR ',\n 'nup' => '161',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato INN ',\n 'nup' => '162',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato INN ',\n 'nup' => '163',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato INN ',\n 'nup' => '164',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato INN ',\n 'nup' => '165',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato INN ',\n 'nup' => '166',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato INN ',\n 'nup' => '167',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-11-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'FUTURA FTR509 ',\n 'nup' => '168',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-11-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'FUTURA FTR509 ',\n 'nup' => '169',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-11-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'FUTURA FTR509',\n 'nup' => '170',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-11-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'FUTURA FTR509',\n 'nup' => '171',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-11-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'FUTURA FTR509',\n 'nup' => '172',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-11-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'FUTURA FTR509',\n 'nup' => '173',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-11-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 485 OSCAR HITAM ',\n 'nup' => '174',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'FUTURA FTR509 ',\n 'nup' => '175',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'FUTURA FTR509',\n 'nup' => '176',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'FUTURA FTR509',\n 'nup' => '177',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'FUTURA FTR509 ',\n 'nup' => '178',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'FUTURA FTR509 ',\n 'nup' => '179',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'FUTURA FTR509 ',\n 'nup' => '180',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'FUTURA FTR509 ',\n 'nup' => '181',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-12-16',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato AA ',\n 'nup' => '182',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2010-12-16',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato AA ',\n 'nup' => '183',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato AA ',\n 'nup' => '184',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato AA ',\n 'nup' => '185',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato AA ',\n 'nup' => '186',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato AA ',\n 'nup' => '187',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato AA',\n 'nup' => '188',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato AA',\n 'nup' => '189',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato AA',\n 'nup' => '190',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato AA',\n 'nup' => '191',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato AA ',\n 'nup' => '192',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato AA',\n 'nup' => '193',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato AA',\n 'nup' => '194',\n 'idruang_fk' => '8'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato AA ',\n 'nup' => '195',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal SAC\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato AA ',\n 'nup' => '196',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal gudang\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato AA ',\n 'nup' => '197',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal gudang\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato AA ',\n 'nup' => '198',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal gudang\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose yamato AA ',\n 'nup' => '199',\n 'idruang_fk' => '18'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 1a\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '200',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 1a\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '201',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 1a\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '202',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 1a\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '203',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 1a\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '204',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 1a\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '205',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 1a\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '206',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 1a\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '207',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 1a\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '208',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 1a\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '209',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 1a\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '210',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 1a\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '211',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 1a\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '212',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 1a\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '213',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 1a\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '214',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 1a\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '215',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '216',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '217',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '218',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '219',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '220',\n 'idruang_fk' => '6'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '221',\n 'idruang_fk' => '6'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '222',\n 'idruang_fk' => '6'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '223',\n 'idruang_fk' => '6'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '224',\n 'idruang_fk' => '6'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '225',\n 'idruang_fk' => '6'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '226',\n 'idruang_fk' => '6'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '227',\n 'idruang_fk' => '6'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '228',\n 'idruang_fk' => '6'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '229',\n 'idruang_fk' => '6'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '230',\n 'idruang_fk' => '6'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '231',\n 'idruang_fk' => '6'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '232',\n 'idruang_fk' => '6'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '233',\n 'idruang_fk' => '6'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '234',\n 'idruang_fk' => '6'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '235',\n 'idruang_fk' => '6'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '236',\n 'idruang_fk' => '6'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '237',\n 'idruang_fk' => '6'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '238',\n 'idruang_fk' => '6'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '239',\n 'idruang_fk' => '6'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '240',\n 'idruang_fk' => '6'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '241',\n 'idruang_fk' => '6'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '242',\n 'idruang_fk' => '6'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal BASDA\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '243',\n 'idruang_fk' => '5'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '244',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '245',\n 'idruang_fk' => '13'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '246',\n 'idruang_fk' => '13'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '247',\n 'idruang_fk' => '13'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '248',\n 'idruang_fk' => '13'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '249',\n 'idruang_fk' => '13'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '250',\n 'idruang_fk' => '13'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '251',\n 'idruang_fk' => '13'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '252',\n 'idruang_fk' => '13'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '253',\n 'idruang_fk' => '13'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '254',\n 'idruang_fk' => '13'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '255',\n 'idruang_fk' => '13'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '256',\n 'idruang_fk' => '13'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '257',\n 'idruang_fk' => '13'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '258',\n 'idruang_fk' => '13'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose cosmos MNR',\n 'nup' => '259',\n 'idruang_fk' => '13'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL MR 357TLPM',\n 'nup' => '260',\n 'idruang_fk' => '13'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL MR 357TLPM',\n 'nup' => '261',\n 'idruang_fk' => '13'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 311 TLLPP',\n 'nup' => '262',\n 'idruang_fk' => '13'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 311 TLLPP',\n 'nup' => '263',\n 'idruang_fk' => '13'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 311 TLLPP',\n 'nup' => '264',\n 'idruang_fk' => '13'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 311 TLLPP',\n 'nup' => '265',\n 'idruang_fk' => '13'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'CISEBEL 311 TLLPP',\n 'nup' => '266',\n 'idruang_fk' => '13'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 311 TLLPP',\n 'nup' => '67',\n 'idruang_fk' => '13'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 311 TLLPP',\n 'nup' => '268',\n 'idruang_fk' => '13'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 311 TLLPP',\n 'nup' => '269',\n 'idruang_fk' => '11'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 311 TLLPP',\n 'nup' => '270',\n 'idruang_fk' => '11'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 311 TLLPP',\n 'nup' => '270',\n 'idruang_fk' => '11'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 311 TLLPP',\n 'nup' => '271',\n 'idruang_fk' => '11'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal OEMRO\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 311 TLLPP',\n 'nup' => '272',\n 'idruang_fk' => '11'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 311 TLLPP',\n 'nup' => '273',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 311 TLLPP',\n 'nup' => '274',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 311 TLLPP',\n 'nup' => '275',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 311 TLLPP',\n 'nup' => '276',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 311 TLLPP',\n 'nup' => '277',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 311 TLLPP',\n 'nup' => '278',\n 'idruang_fk' => '20'\n \n )); DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 311 TLLPP',\n 'nup' => '278',\n 'idruang_fk' => '20'\n \n )); DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 311 TLLPP',\n 'nup' => '279',\n 'idruang_fk' => '20'\n \n )); DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 311 TLLPP',\n 'nup' => '280',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'ISEBEL 311 TLLPP',\n 'nup' => '281',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '282',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '283',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '284',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '285',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '286',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '287',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '288',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '289',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '290',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '291',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '292',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '293',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '294',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '295',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '296',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '297',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '298',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '299',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '300',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '301',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '302',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 3\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '303',\n 'idruang_fk' => '20'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '304',\n 'idruang_fk' => '21'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '305',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '306',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '307',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '308',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '309',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '310',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '311',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '312',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '313',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '314',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '315',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '316',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '317',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '318',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '319',\n 'idruang_fk' => '22'\n \n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '320',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '321',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '322',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '323',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '324',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '325',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '326',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '327',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '328',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '329',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '329',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '330',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '331',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '332',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '333',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '334',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '335',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '336',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '337',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '338',\n 'idruang_fk' => '22'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal kuliah 4\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '339',\n 'idruang_fk' => '1'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi kasie\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '340',\n 'idruang_fk' => '12'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi kasie\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '341',\n 'idruang_fk' => '12'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi kasie\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '342',\n 'idruang_fk' => '12'\n \n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi kasie\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '343',\n 'idruang_fk' => '3'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi kasie\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '344',\n 'idruang_fk' => '3'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi kasie\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '345',\n 'idruang_fk' => '3'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi kasie\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '363',\n 'idruang_fk' => '3'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi kasie\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '347',\n 'idruang_fk' => '3'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi kasie\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '348',\n 'idruang_fk' => '3'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi kasie\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '349',\n 'idruang_fk' => '3'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi kasie\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '350',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi kasie\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '351',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi kasie\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '352',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi keuangan\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '353',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi keuangan\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '354',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi keuangan\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '355',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi keuangan\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '356',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi keuangan\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '357',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi keuangan\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '358',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '360',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '361',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '362',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T906',\n 'nup' => '363',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '364',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '365',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '366',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '367',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '368',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '369',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '370',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '371',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '372',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '373',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '374',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '375',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '376',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '377',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '378',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '379',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '380',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '381',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '382',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '383',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '384',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '385',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '386',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Tiger T99 Hitam',\n 'nup' => '387',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose',\n 'nup' => '388',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose',\n 'nup' => '389',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose',\n 'nup' => '400',\n 'idruang_fk' => '18'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose',\n 'nup' => '401',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose',\n 'nup' => '402',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose',\n 'nup' => '403',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose',\n 'nup' => '404',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose',\n 'nup' => '405',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose',\n 'nup' => '406',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose',\n 'nup' => '407',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '408',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '409',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '410',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '411',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '412',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '413',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '414',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '415',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '416',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '417',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '418',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '419',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '420',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '421',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '422',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '423',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '424',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '425',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '426',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '427',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '428',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '429',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gudang\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '430',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gis\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '431',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gis\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '432',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gis\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '433',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gis\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '434',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gis\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '435',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gis\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '436',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gis\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '437',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gis\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '438',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gis\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '439',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gis\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '440',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gis\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '441',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gis\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '442',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gis\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '443',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gis\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '444',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gis\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '445',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gis\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '446',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gis\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '447',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gis\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '448',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gis\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '449',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi gis\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '450',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '451',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '452',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '453',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '454',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '455',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '456',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '457',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '458',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '459',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '460',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '461',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '462',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '463',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '464',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '465',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '466',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '467',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '468',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '469',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '470',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '471',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '472',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '473',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '474',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '475',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '476',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '477',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '478',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '479',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '480',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '481',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '482',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '483',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '484',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '485',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '486',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '487',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '488',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '489',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '490',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '491',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '492',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '493',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '494',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '495',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '496',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '497',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '498',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '499',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 4\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '500',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 4\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '501',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 4\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '502',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 4\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '503',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 4\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '504',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 4\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '505',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 4\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '506',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 4\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose MPR',\n 'nup' => '507',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 4\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chairman VC 1055',\n 'nup' => '508',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 4\n 'tanggal' => '2011-12-18',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chairman VC 1055',\n 'nup' => '509',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 4\n 'tanggal' => '2011-12-13',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Kursi High Point ECO-01',\n 'nup' => '510',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 4\n 'tanggal' => '2011-12-13',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Kursi High Point ECO-01',\n 'nup' => '511',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 4\n 'tanggal' => '2011-12-13',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Kursi High Point ECO-01',\n 'nup' => '512',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 4\n 'tanggal' => '2011-12-13',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Kursi High Point ECO-01',\n 'nup' => '513',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 4\n 'tanggal' => '2011-12-13',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Kursi High Point ECO-01',\n 'nup' => '514',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 4\n 'tanggal' => '2011-12-13',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Kursi High Point ECO-01',\n 'nup' => '515',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 4\n 'tanggal' => '2011-12-13',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Kursi High Point ECO-01',\n 'nup' => '516',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 4\n 'tanggal' => '2011-12-13',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Kursi High Point ECO-01',\n 'nup' => '517',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 4\n 'tanggal' => '2011-12-13',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Kursi High Point ECO-01',\n 'nup' => '518',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 4\n 'tanggal' => '2011-12-13',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Kursi High Point ECO-01',\n 'nup' => '519',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2011-12-13',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Kursi High Point ECO-01',\n 'nup' => '520',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2011-12-13',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Kursi High Point ECO-01',\n 'nup' => '521',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2011-12-13',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Kursi High Point ECO-01',\n 'nup' => '522',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2011-12-13',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Kursi High Point ECO-01',\n 'nup' => '523',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2011-12-13',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Kursi High Point ECO-01',\n 'nup' => '524',\n 'idruang_fk' => '24'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '525',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '526',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '527',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '528',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '529',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '530',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '531',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '532',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '533',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '534',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '535',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '536',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '537',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '538',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '539',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '540',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '541',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '542',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '543',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '544',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '545',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '546',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '547',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '548',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '549',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '550',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '551',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '552',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '553',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '554',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '555',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '556',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '557',\n 'idruang_fk' => '19'\n ));DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '558',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '559',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '560',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '561',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '562',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '563',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '564',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '565',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '566',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '567',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '568',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '569',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '570',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '571',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '572',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '573',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '574',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '575',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '576',\n 'idruang_fk' => '19'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '577',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '576',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '577',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '578',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '578',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '579',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '580',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '581',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '582',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '583',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '584',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '585',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '586',\n 'idruang_fk' => '19'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '587',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '588',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '589',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '590',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '591',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '592',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '593',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '594',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '595',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '596',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '597',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '598',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '599',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '600',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '601',\n 'idruang_fk' => '19'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '602',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '603',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '604',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '605',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '606',\n 'idruang_fk' => '19'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '607',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '608',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '609',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '610',\n 'idruang_fk' => '19'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '611',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '612',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '613',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '614',\n 'idruang_fk' => '19'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '615',\n 'idruang_fk' => '19'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '616',\n 'idruang_fk' => '19'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '617',\n 'idruang_fk' => '19'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '618',\n 'idruang_fk' => '19'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '619',\n 'idruang_fk' => '19'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '620',\n 'idruang_fk' => '19'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '621',\n 'idruang_fk' => '19'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '622',\n 'idruang_fk' => '19'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '623',\n 'idruang_fk' => '19'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '624',\n 'idruang_fk' => '19'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '625',\n 'idruang_fk' => '19'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 1a\n 'tanggal' => '2013-11-07',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Type Cosmos MNR',\n 'nup' => '626',\n 'idruang_fk' => '19'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang baca\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '627',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang baca\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '628',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang baca\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '629',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang baca\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '630',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang baca\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '631',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang baca\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '632',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang baca\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '634',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang baca\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '635',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang baca\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '636',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang baca\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '637',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang baca\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '638',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang baca\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '639',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang baca\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '640',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang baca\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '641',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang baca\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '642',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang baca\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '643',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang baca\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '644',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang baca\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '645',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang baca\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '646',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang baca\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '647',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang baca\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '648',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang baca\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '649',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '627',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '628',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '629',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '630',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '631',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '632',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '633',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '634',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '635',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '636',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '637',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '638',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '639',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '640',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '641',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '642',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '643',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '644',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '645',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '646',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '647',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '648',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '649',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '650',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '651',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '652',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '653',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '654',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '655',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '656',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '657',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '658',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '659',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '660',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '661',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '662',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '663',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '664',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '665',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '666',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang rapat/sidang\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '667',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang gis\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '668',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang gis\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '669',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang gis\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '670',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang gis\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '671',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang gis\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '672',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang RPL\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '673',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang RPL\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '674',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang RPL\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '675',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '676',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '677',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '678',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '679',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '680',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '681',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '682',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '683',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '684',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '685',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '686',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '687',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '689',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '690',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '691',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '692',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '693',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '694',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '695',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '696',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '697',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '698',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '699',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '700',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '701',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '702',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '703',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '704',\n 'idruang_fk' => '9'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '705',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '706',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '707',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '708',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '709',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '710',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '711',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '712',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '713',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '714',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '715',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '716',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '717',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '718',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '719',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '720',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '721',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '722',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '723',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '724',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose YAMATO HAA',\n 'nup' => '725',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi ruang dosen\n 'tanggal' => '2016-12-19',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Chitose Yamato HAA',\n 'nup' => '726',\n 'idruang_fk' => '15'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi lantai\n 'tanggal' => '2017-11-21',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Kursi Tunggu HighPoint Monterey AY405K',\n 'nup' => '727',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi lantai\n 'tanggal' => '2017-11-21',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Kursi Tunggu HighPoint Monterey AY405K',\n 'nup' => '728',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi lantai\n 'tanggal' => '2017-11-21',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Kursi Tunggu HighPoint Monterey AY405K',\n 'nup' => '729',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Highpoint Monterey AY405K',\n 'nup' => '730',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi Kuliah 5\n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Highpoint Monterey AY405K',\n 'nup' => '731',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '732',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '732',\n 'idruang_fk' => '15'\n));\nDB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '733',\n 'idruang_fk' => '15'\n));\nDB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '734',\n 'idruang_fk' => '15'\n));\nDB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '735',\n 'idruang_fk' => '15'\n));\nDB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '736',\n 'idruang_fk' => '15'\n));\nDB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '737',\n 'idruang_fk' => '15'\n));\nDB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '738',\n 'idruang_fk' => '15'\n));\nDB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '739',\n 'idruang_fk' => '15'\n));\nDB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '740',\n 'idruang_fk' => '15'\n));\nDB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '741',\n 'idruang_fk' => '15'\n));\nDB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '742',\n 'idruang_fk' => '15'\n));\nDB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '743',\n 'idruang_fk' => '15'\n));\nDB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '744',\n 'idruang_fk' => '15'\n));\nDB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '745',\n 'idruang_fk' => '15'\n));\nDB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '746',\n 'idruang_fk' => '15'\n));\nDB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '747',\n 'idruang_fk' => '15'\n));\nDB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '748',\n 'idruang_fk' => '15'\n));\nDB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '749',\n 'idruang_fk' => '15'\n));\nDB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '750',\n 'idruang_fk' => '15'\n));\nDB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '751',\n 'idruang_fk' => '15'\n));\nDB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '752',\n 'idruang_fk' => '15'\n));\nDB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '753',\n 'idruang_fk' => '15'\n));\nDB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '754',\n 'idruang_fk' => '15'\n));\nDB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '755',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi metal r dosen\n 'tanggal' => '2018-06-26',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Informa Council 689-2',\n 'nup' => '756',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi lantai 1\n 'tanggal' => '2018-11-29',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Highpoint Monterey AY405K',\n 'nup' => '759',\n 'idruang_fk' => '16'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi lantai 1\n 'tanggal' => '2018-11-29',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Highpoint Monterey AY405K',\n 'nup' => '760',\n 'idruang_fk' => '16'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi lantai 1\n 'tanggal' => '2018-11-29',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Highpoint Monterey AY405K',\n 'nup' => '761',\n 'idruang_fk' => '16'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi lantai 1\n 'tanggal' => '2018-11-29',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Highpoint Monterey AY405K',\n 'nup' => '762',\n 'idruang_fk' => '16'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi lantai 1\n 'tanggal' => '2018-11-29',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Highpoint Monterey AY405K',\n 'nup' => '763',\n 'idruang_fk' => '16'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Kursi besi lantai 1\n 'tanggal' => '2018-11-29',\n 'idbarang_fk' => '20',\n 'merk_barang' => 'Highpoint Monterey AY405K',\n 'nup' => '764',\n 'idruang_fk' => '16'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // sice\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '21',\n 'merk_barang' => 'MINIMALIS',\n 'nup' => '1',\n 'idruang_fk' => '12'\n ));\n DB::table('detail_data_barang')->insert(array(\n // sice\n 'tanggal' => '2017-11-14',\n 'idbarang_fk' => '21',\n 'merk_barang' => 'Sofa 211 Minimalis+Meja',\n 'nup' => '2',\n 'idruang_fk' => '23'\n ));\n DB::table('detail_data_barang')->insert(array(\n // sice\n 'tanggal' => '2017-11-14',\n 'idbarang_fk' => '21',\n 'merk_barang' => 'Sofa 211 Minimalis+Meja',\n 'nup' => '3',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // sice\n 'tanggal' => '2018-07-27',\n 'idbarang_fk' => '21',\n 'merk_barang' => 'Kursi Taman 2 set untuk Taman Fasilkom',\n 'nup' => '4',\n 'idruang_fk' => '16'\n ));\n DB::table('detail_data_barang')->insert(array(\n // sice\n 'tanggal' => '2018-07-27',\n 'idbarang_fk' => '21',\n 'merk_barang' => 'Kursi Taman 2 set untuk Taman Fasilkom',\n 'nup' => '5',\n 'idruang_fk' => '16'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja rapat\n 'tanggal' => '2009-12-17',\n 'idbarang_fk' => '22',\n 'merk_barang' => 'Kayu Jati',\n 'nup' => '1',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja rapat\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '22',\n 'merk_barang' => 'MR 240',\n 'nup' => '2',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja rapat\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '22',\n 'merk_barang' => 'MR 240',\n 'nup' => '3',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja rapat\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '22',\n 'merk_barang' => 'MR 240',\n 'nup' => '4',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja rapat\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '22',\n 'merk_barang' => 'MR 240',\n 'nup' => '5',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja rapat\n 'tanggal' => '2013-02-15',\n 'idbarang_fk' => '22',\n 'merk_barang' => 'Tanpa Merk',\n 'nup' => '6',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja rapat\n 'tanggal' => '2013-02-15',\n 'idbarang_fk' => '22',\n 'merk_barang' => 'Tanpa Merk',\n 'nup' => '7',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja rapat\n 'tanggal' => '2013-02-15',\n 'idbarang_fk' => '22',\n 'merk_barang' => 'Tanpa Merk',\n 'nup' => '8',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja rapat\n 'tanggal' => '2013-02-15',\n 'idbarang_fk' => '22',\n 'merk_barang' => 'Tanpa Merk',\n 'nup' => '9',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja rapat\n 'tanggal' => '2013-02-15',\n 'idbarang_fk' => '22',\n 'merk_barang' => 'Tanpa Merk',\n 'nup' => '10',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja rapat\n 'tanggal' => '2013-02-15',\n 'idbarang_fk' => '22',\n 'merk_barang' => 'Tanpa Merk',\n 'nup' => '11',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja rapat\n 'tanggal' => '2013-02-15',\n 'idbarang_fk' => '22',\n 'merk_barang' => 'Tanpa Merk',\n 'nup' => '12',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja rapat\n 'tanggal' => '2013-02-15',\n 'idbarang_fk' => '22',\n 'merk_barang' => 'Tanpa Merk',\n 'nup' => '13',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja rapat\n 'tanggal' => '2013-02-15',\n 'idbarang_fk' => '22',\n 'merk_barang' => 'Tanpa Merk',\n 'nup' => '14',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD 1202 BEACH',\n 'nup' => '1',\n 'idruang_fk' => '11'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD 1202 BEACH',\n 'nup' => '2',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD 1202 BEACH',\n 'nup' => '3',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD 1202 BEACH',\n 'nup' => '4',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD 1202 BEACH',\n 'nup' => '5',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD 1202 BEACH',\n 'nup' => '6',\n 'idruang_fk' => '12'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD 1202 BEACH',\n 'nup' => '5',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD 1202 BEACH',\n 'nup' => '5',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD 1202 BEACH',\n 'nup' => '5',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD 1202 BEACH',\n 'nup' => '5',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD 1202 BEACH',\n 'nup' => '5',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD 1202 BEACH',\n 'nup' => '6',\n 'idruang_fk' => '12'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-11-25',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD800P',\n 'nup' => '7',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-11-25',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD800P',\n 'nup' => '7',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-11-25',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD800P',\n 'nup' => '8',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-11-25',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD800P',\n 'nup' => '9',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-11-25',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD800P',\n 'nup' => '10',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-11-25',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD800P',\n 'nup' => '11',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-11-25',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD800P',\n 'nup' => '12',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-11-25',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD 1202 BEACH',\n 'nup' => '13',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD800P',\n 'nup' => '14',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD800P',\n 'nup' => '15',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD800P',\n 'nup' => '16',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD800P',\n 'nup' => '17',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD800P',\n 'nup' => '18',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD800P',\n 'nup' => '19',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD800P',\n 'nup' => '20',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-12-16',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD800P',\n 'nup' => '21',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2010-12-16',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD800P',\n 'nup' => '22',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD 1201 Grey',\n 'nup' => '23',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD 1201 Grey',\n 'nup' => '24',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD 1201 Grey',\n 'nup' => '25',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD 1201 Grey',\n 'nup' => '26',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD 1201 Grey',\n 'nup' => '27',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD 1201 Grey',\n 'nup' => '28',\n 'idruang_fk' => '14'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD 1201 Grey',\n 'nup' => '29',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-07-25',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'AZTEC CD 1201 Grey',\n 'nup' => '30',\n 'idruang_fk' => '3'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '31',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '32',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '33',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '34',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '35',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '36',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '37',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '38',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '39',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '40',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '41',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '42',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '43',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '44',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '45',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '46',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '47',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '48',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '49',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '50',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '51',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '52',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '53',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '54',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '55',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '56',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '57',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '58',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '59',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '60',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '61',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '62',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '63',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '64',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '65',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '66',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '67',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '68',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '69',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '70',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '71',\n 'idruang_fk' => '8'\n )); DB::table('detail_data_barang')->insert(array(\n // meja komputer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '72',\n 'idruang_fk' => '8'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '73',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '74',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '75',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '76',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '77',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '78',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '79',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '80',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '81',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '82',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '83',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '84',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '85',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '86',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '87',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '88',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '89',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '90',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '91',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '92',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '93',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '94',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '95',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '96',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '97',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '98',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '99',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '100',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '101',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '102',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '103',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '104',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '105',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '106',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '107',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '108',\n 'idruang_fk' => '6'\n )); DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '109',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '110',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '111',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '112',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '113',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '114',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '115',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '116',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '117',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '118',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '119',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '120',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '121',\n 'idruang_fk' => '7'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '122',\n 'idruang_fk' => '7'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '123',\n 'idruang_fk' => '7'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '124',\n 'idruang_fk' => '7'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '125',\n 'idruang_fk' => '7'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '126',\n 'idruang_fk' => '7'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '127',\n 'idruang_fk' => '7'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '128',\n 'idruang_fk' => '7'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '129',\n 'idruang_fk' => '7'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '130',\n 'idruang_fk' => '7'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '131',\n 'idruang_fk' => '7'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '132',\n 'idruang_fk' => '7'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '133',\n 'idruang_fk' => '7'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '134',\n 'idruang_fk' => '7'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '135',\n 'idruang_fk' => '15'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Orbitrend GST-1061',\n 'nup' => '136',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Student High Point CT-3C',\n 'nup' => '137',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Student High Point CT-3C',\n 'nup' => '138',\n 'idruang_fk' => '2'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Student High Point CT-3C',\n 'nup' => '139',\n 'idruang_fk' => '2'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Student High Point CT-3C',\n 'nup' => '140',\n 'idruang_fk' => '2'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Student High Point CT-3C',\n 'nup' => '141',\n 'idruang_fk' => '2'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Student High Point CT-3C',\n 'nup' => '142',\n 'idruang_fk' => '2'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Student High Point CT-3C',\n 'nup' => '143',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Student High Point CT-3C',\n 'nup' => '145',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Student High Point CT-3C',\n 'nup' => '146',\n 'idruang_fk' => '6'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Instruktur High Point CD-301',\n 'nup' => '147',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Instruktur High Point CD-301',\n 'nup' => '148',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2014-12-04',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Meja Komputer AZTEK',\n 'nup' => '149',\n 'idruang_fk' => '3'\n ));\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2014-12-04',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Meja Komputer AZTEK',\n 'nup' => '150',\n 'idruang_fk' => '3'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // meja komputer \n 'tanggal' => '2014-12-04',\n 'idbarang_fk' => '23',\n 'merk_barang' => 'Meja Komputer AZTEK',\n 'nup' => '151',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Lemari es\n 'tanggal' => '2011-07-26',\n 'idbarang_fk' => '24',\n 'merk_barang' => 'PANASONIC A191D',\n 'nup' => '1',\n 'idruang_fk' => '11'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C CENTRAL\n 'tanggal' => '2015-05-25',\n 'idbarang_fk' => '25',\n 'merk_barang' => 'pOLITRON 3PK',\n 'nup' => '1',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C CENTRAL\n 'tanggal' => '2015-05-25',\n 'idbarang_fk' => '25',\n 'merk_barang' => 'pOLITRON 3PK',\n 'nup' => '2',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2016-05-11',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'PANASONIKAC',\n 'nup' => '35',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2016-05-11',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'PANASONIKAC',\n 'nup' => '36',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2016-05-11',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'PANASONIKAC',\n 'nup' => '37',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2010-12-16',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'PANASONIK 2PK',\n 'nup' => '38',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2010-12-16',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'PANASONIK 2PK',\n 'nup' => '39',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2010-12-16',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'CHANGHONG CS-C18Y32',\n 'nup' => '40',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2010-12-16',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'CHANGHONG CS-C18Y32',\n 'nup' => '41',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2010-12-16',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'CHANGHONG CS-C18Y32',\n 'nup' => '42',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2010-12-16',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'CHANGHONG CS-C18Y32',\n 'nup' => '43',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'LG S18LG-2',\n 'nup' => '44',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'LG S18LG-2',\n 'nup' => '45',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'LG S18LG-2',\n 'nup' => '46',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'LG S18LG-2',\n 'nup' => '47',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'LG S18LG-2',\n 'nup' => '48',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'LG S18LG-2',\n 'nup' => '49',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'LG S18LG-2',\n 'nup' => '50',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'LG S18LG-2',\n 'nup' => '51',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'LG S18LG-2',\n 'nup' => '52',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'LG S18LG-2',\n 'nup' => '53',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'PANASONIC CS-PC 12KKP',\n 'nup' => '54',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'PANASONIC CS-PC 12KKP',\n 'nup' => '55',\n 'idruang_fk' => '4'\n ));DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'PANASONIC CS-PC 12KKP',\n 'nup' => '56',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'PANASONIC CS-PC 12KKP',\n 'nup' => '57',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'PANASONIC CS-PC 18KKP',\n 'nup' => '58',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'PANASONIC CS-PC 12KKP',\n 'nup' => '59',\n 'idruang_fk' => '11'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2013-02-15',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'PANASONIC',\n 'nup' => '60',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2013-02-15',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'PANASONIC',\n 'nup' => '61',\n 'idruang_fk' => '20'\n ));DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2013-02-15',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'CHANGHONG',\n 'nup' => '62',\n 'idruang_fk' => '26'\n ));DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2013-02-15',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'CHANGHONG',\n 'nup' => '63',\n 'idruang_fk' => '26'\n ));DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2013-02-15',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'PANASONIC',\n 'nup' => '64',\n 'idruang_fk' => '21'\n ));DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2014-12-04',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'CHANGHONG 2PK',\n 'nup' => '65',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2014-12-04',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'CHANGHONG 2PK',\n 'nup' => '66',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2014-12-04',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'CHANGHONG 2PK',\n 'nup' => '67',\n 'idruang_fk' => '23'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2014-12-04',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'CHANGHONG 1,5PK',\n 'nup' => '68',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2014-12-04',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'CHANGHONG 1,5PK',\n 'nup' => '69',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2015-05-25',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'PANASONIC 2PK',\n 'nup' => '70',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2015-05-25',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'PANASONIC 2PK',\n 'nup' => '71',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2015-05-25',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'PANASONIC R32 2PK',\n 'nup' => '72',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2017-11-24',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'PANASONIK Inverter CS-s18rkp I n/CU-S18RKP out 2pk',\n 'nup' => '73',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2017-11-24',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'PANASONIK CU-PN18SKP Outdoor/CS-PN18SKP/Indoee 2PK',\n 'nup' => '74',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2017-11-24',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'PANASONIK CU-PN18SKP Outdoor/CS-PN18SKP/Indoee 2PK',\n 'nup' => '75',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2018-05-31',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'AC PANASONIK 2PK',\n 'nup' => '76',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2018-05-31',\n 'idbarang_fk' => '26',\n 'merk_barang' => 'AC PANASONIK 2PK',\n 'nup' => '77',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2018-09-28',\n 'idbarang_fk' => '26',\n 'merk_barang' => '2 PK CS-YN18TKP',\n 'nup' => '78',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // A.C SPLIT\n 'tanggal' => '2018-09-28',\n 'idbarang_fk' => '26',\n 'merk_barang' => '2 PK CS-YN18TKP',\n 'nup' => '79',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // kipas angin\n 'tanggal' => '2016-03-14',\n 'idbarang_fk' => '76',\n 'merk_barang' => 'Maspion Exhousfan',\n 'nup' => '4',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // kipas angin\n 'tanggal' => '2016-03-14',\n 'idbarang_fk' => '76',\n 'merk_barang' => 'Maspion Exhousfan',\n 'nup' => '4',\n 'idruang_fk' => '3'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // kipas angin\n 'tanggal' => '2016-03-14',\n 'idbarang_fk' => '76',\n 'merk_barang' => 'Maspion Exhousfan',\n 'nup' => '5',\n 'idruang_fk' => '5'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // kipas angin\n 'tanggal' => '2016-03-14',\n 'idbarang_fk' => '76',\n 'merk_barang' => 'Maspion Exhousfan',\n 'nup' => '6',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // kipas angin\n 'tanggal' => '2014-11-19',\n 'idbarang_fk' => '76',\n 'merk_barang' => 'Kipas Angin Berdiri MIYAKO',\n 'nup' => '7',\n 'idruang_fk' => '3'\n ));\n DB::table('detail_data_barang')->insert(array(\n // kipas angin\n 'tanggal' => '2014-11-19',\n 'idbarang_fk' => '76',\n 'merk_barang' => 'Kipas Angin Berdiri MIYAKO',\n 'nup' => '8',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // kipas angin\n 'tanggal' => '2014-12-04',\n 'idbarang_fk' => '76',\n 'merk_barang' => 'Hexos Van',\n 'nup' => '9',\n 'idruang_fk' => '23'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Treng/Tandon air\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '27',\n 'merk_barang' => 'STANLESS 1000L',\n 'nup' => '1',\n 'idruang_fk' => '17'\n ));\n DB::table('detail_data_barang')->insert(array(\n // TELEVISI\n 'tanggal' => '2011-07-26',\n 'idbarang_fk' => '28',\n 'merk_barang' => 'PANASONIC VIERA TH-L32C20X',\n 'nup' => '1',\n 'idruang_fk' => '16'\n ));\n DB::table('detail_data_barang')->insert(array(\n // TELEVISI\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '28',\n 'merk_barang' => 'LG 42LK450',\n 'nup' => '2',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // TELEVISI\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '28',\n 'merk_barang' => 'LG 42LK450',\n 'nup' => '3',\n 'idruang_fk' => '23'\n ));\n DB::table('detail_data_barang')->insert(array(\n // TELEVISI\n 'tanggal' => '2017-12-28',\n 'idbarang_fk' => '28',\n 'merk_barang' => 'SHARP LED TV 60 INCH FHD+ BRACKET',\n 'nup'=>'4',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // TELEVISI\n 'tanggal' => '2019-04-29',\n 'idbarang_fk' => '28',\n 'merk_barang' => 'Televisi SHARP 60\"',\n 'nup'=>'4',\n 'idruang_fk' => '23'\n ));\n DB::table('detail_data_barang')->insert(array(\n // amplifier\n 'tanggal' => '2018-07-27',\n 'idbarang_fk' => '29',\n 'merk_barang' => 'TOA',\n 'nup'=>'1',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LOADSPEAKER\n 'tanggal' => '2018-07-27',\n 'idbarang_fk' => '30',\n 'merk_barang' => 'SPEAKER TOA',\n 'nup'=>'1',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // LOADSPEAKER\n 'tanggal' => '2018-07-27',\n 'idbarang_fk' => '30',\n 'merk_barang' => 'SPEAKER TOA',\n 'nup'=>'2',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // SOUNDSYSTEM\n 'tanggal' => '2016-08-19',\n 'idbarang_fk' => '31',\n 'merk_barang' => 'LEXUS KM 500',\n 'nup'=>'1',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // WIRELESS\n 'tanggal' => '2011-06-06',\n 'idbarang_fk' => '32',\n 'merk_barang' => 'AIRLIVE AIR VIDEO 2000',\n 'nup'=>'1',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // WIRELESS\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '32',\n 'merk_barang' => 'MIKROTIK RB800 WO834-A1',\n 'nup'=>'2',\n 'idruang_fk' => '16'\n ));\n DB::table('detail_data_barang')->insert(array(\n // WIRELESS\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '32',\n 'merk_barang' => 'MIKROTIK RB800 WO834-A1',\n 'nup'=>'3',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // WIRELESS\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '32',\n 'merk_barang' => 'MIKROTIK RB800 WO834-A2',\n 'nup'=>'4',\n 'idruang_fk' => '17'\n ));\n DB::table('detail_data_barang')->insert(array(\n // WIRELESS\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '32',\n 'merk_barang' => 'MIKROTIK RB800 WO834-A2',\n 'nup'=>'5',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // TANGGA ALUM\n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '33',\n 'merk_barang' => 'CALTEX DOUBLE TINGGI',\n 'nup'=>'1',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // TANGGA ALUM\n 'tanggal' => '2014-03-26',\n 'idbarang_fk' => '33',\n 'merk_barang' => 'TANPA MERK',\n 'nup'=>'2',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // DISPENSER\n 'tanggal' => '2018-11-29',\n 'idbarang_fk' => '34',\n 'merk_barang' => 'MODENA',\n 'nup'=>'1',\n 'idruang_fk' => '11'\n ));\n DB::table('detail_data_barang')->insert(array(\n // DISPENSER\n 'tanggal' => '2018-11-29',\n 'idbarang_fk' => '34',\n 'merk_barang' => 'MODENA',\n 'nup'=>'2',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // DISPENSER\n 'tanggal' => '2018-11-29',\n 'idbarang_fk' => '34',\n 'merk_barang' => 'MODENA',\n 'nup'=>'3',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // DISPENSER\n 'tanggal' => '2018-11-29',\n 'idbarang_fk' => '34',\n 'merk_barang' => 'MODENA',\n 'nup'=>'4',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // DISPENSER\n 'tanggal' => '2018-11-29',\n 'idbarang_fk' => '34',\n 'merk_barang' => 'MODENA',\n 'nup'=>'5',\n 'idruang_fk' => '3'\n ));\n DB::table('detail_data_barang')->insert(array(\n // MIMBAR\n 'tanggal' => '2018-11-29',\n 'idbarang_fk' => '35',\n 'merk_barang' => 'PODIUM KAYU',\n 'nup'=>'1',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // KABEL\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '36',\n 'merk_barang' => 'KABEL DAK SERVER',\n 'nup'=>'1',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // KABEL\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '36',\n 'merk_barang' => 'KABEL DAK SERVER',\n 'nup'=>'2',\n 'idruang_fk' => '10'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // KABEL\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '36',\n 'merk_barang' => 'KABEL DAK SERVER',\n 'nup'=>'3',\n 'idruang_fk' => '10'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // KABEL\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '36',\n 'merk_barang' => 'KABEL DAK SERVER',\n 'nup'=>'4',\n 'idruang_fk' => '10'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // KABEL\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '36',\n 'merk_barang' => 'KABEL DAK SERVER',\n 'nup'=>'5',\n 'idruang_fk' => '10'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // KABEL\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '36',\n 'merk_barang' => 'KABEL DAK SERVER',\n 'nup'=>'6',\n 'idruang_fk' => '10'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // KABEL\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '36',\n 'merk_barang' => 'KABEL DAK SERVER',\n 'nup'=>'7',\n 'idruang_fk' => '10'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // KABEL\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '36',\n 'merk_barang' => 'KABEL DAK SERVER',\n 'nup'=>'8',\n 'idruang_fk' => '10'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // KABEL\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '36',\n 'merk_barang' => 'KABEL DAK SERVER',\n 'nup'=>'9',\n 'idruang_fk' => '10'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // KABEL\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '36',\n 'merk_barang' => 'KABEL DAK SERVER',\n 'nup'=>'10',\n 'idruang_fk' => '10'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // KABEL\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '36',\n 'merk_barang' => 'KABEL DAK SERVER',\n 'nup'=>'11',\n 'idruang_fk' => '10'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // KABEL\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '36',\n 'merk_barang' => 'KABEL DAK SERVER',\n 'nup'=>'12',\n 'idruang_fk' => '10'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // KABEL\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '36',\n 'merk_barang' => 'KABEL DAK SERVER',\n 'nup'=>'13',\n 'idruang_fk' => '10'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // KABEL\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '36',\n 'merk_barang' => 'KABEL DAK SERVER',\n 'nup'=>'14',\n 'idruang_fk' => '10'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // KABEL\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '36',\n 'merk_barang' => 'KABEL DAK SERVER',\n 'nup'=>'15',\n 'idruang_fk' => '10'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // KABEL\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '36',\n 'merk_barang' => 'KABEL DAK SERVER',\n 'nup'=>'16',\n 'idruang_fk' => '10'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // KABEL\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '36',\n 'merk_barang' => 'KABEL DAK SERVER',\n 'nup'=>'17',\n 'idruang_fk' => '10'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // KABEL\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '36',\n 'merk_barang' => 'KABEL DAK SERVER',\n 'nup'=>'18',\n 'idruang_fk' => '10'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // KABEL\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '36',\n 'merk_barang' => 'KABEL DAK SERVER',\n 'nup'=>'19',\n 'idruang_fk' => '10'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // KABEL\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '36',\n 'merk_barang' => 'KABEL DAK SERVER',\n 'nup'=>'20',\n 'idruang_fk' => '10'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // KABEL\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '36',\n 'merk_barang' => 'KABEL DAK SERVER',\n 'nup'=>'21',\n 'idruang_fk' => '10'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // KABEL\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '36',\n 'merk_barang' => 'KABEL DAK SERVER',\n 'nup'=>'22',\n 'idruang_fk' => '10'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // KABEL\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '36',\n 'merk_barang' => 'KABEL DAK SERVER',\n 'nup'=>'23',\n 'idruang_fk' => '10'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // KABEL\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '36',\n 'merk_barang' => 'KABEL DAK SERVER',\n 'nup'=>'24',\n 'idruang_fk' => '10'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // KABEL\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '36',\n 'merk_barang' => 'KABEL DAK SERVER',\n 'nup'=>'25',\n 'idruang_fk' => '10'\n ));\n \n DB::table('detail_data_barang')->insert(array(\n // MICHROPHONE\n 'tanggal' => '2016-07-26',\n 'idbarang_fk' => '37',\n 'merk_barang' => 'Mic Wireless Shure',\n 'nup'=>'2',\n 'idruang_fk' => '10'\n )); \n DB::table('detail_data_barang')->insert(array(\n // MICHROPHONE\n 'tanggal' => '2017-12-16',\n 'idbarang_fk' => '37',\n 'merk_barang' => 'TOA ZW-3200',\n 'nup'=>'3',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // MICHROPHONE\n 'tanggal' => '2017-12-16',\n 'idbarang_fk' => '37',\n 'merk_barang' => 'TOA Wireless Michrophone ZW-G810CU + 2 Mic',\n 'nup'=>'4',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // MICHROPHONE\n 'tanggal' => '2017-12-16',\n 'idbarang_fk' => '37',\n 'merk_barang' => 'TOA Wireless Michrophone ZW-G810CU + 2 Mic',\n 'nup'=>'5',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // MICHROPHONE\n 'tanggal' => '2017-12-16',\n 'idbarang_fk' => '37',\n 'merk_barang' => 'TOA Wireless Michrophone ZW-G810CU + 2 Mic',\n 'nup'=>'6',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // MICHROPHONE\n 'tanggal' => '2017-11-24',\n 'idbarang_fk' => '37',\n 'merk_barang' => 'Mic Wireless Shure ULX 4 BETA 58',\n 'nup'=>'7',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // MICHROPHONE\n 'tanggal' => '2018-04-30',\n 'idbarang_fk' => '37',\n 'merk_barang' => 'Mic Wireless Sound cress 801',\n 'nup'=>'8',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // MICHROPHONE\n 'tanggal' => '2018-04-30',\n 'idbarang_fk' => '37',\n 'merk_barang' => 'Mic Wireless Sound cress 801',\n 'nup'=>'9',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // UPS\n 'tanggal' => '2010-11-25',\n 'idbarang_fk' => '38',\n 'merk_barang' => 'APC SUA3000I',\n 'nup'=>'1',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // UPS\n 'tanggal' => '2010-12-01',\n 'idbarang_fk' => '38',\n 'merk_barang' => 'APC SUA3000I',\n 'nup'=>'2',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // UPS\n 'tanggal' => '2011-06-06',\n 'idbarang_fk' => '38',\n 'merk_barang' => 'APC SUA1500I',\n 'nup'=>'3',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // UPS\n 'tanggal' => '2011-07-26',\n 'idbarang_fk' => '38',\n 'merk_barang' => 'KENIKA',\n 'nup'=>'4',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // UPS\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '38',\n 'merk_barang' => 'DELL UPS RACK 3750W/5000VA',\n 'nup'=>'5',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // UPS\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '38',\n 'merk_barang' => 'DELL UPS RACK 3750W/5000VA',\n 'nup'=>'6',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // UPS\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '38',\n 'merk_barang' => 'UPS Rack 3750W/5000VA',\n 'nup'=>'7',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // UPS\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '38',\n 'merk_barang' => 'UPS Rack 3750W/5000VA',\n 'nup'=>'8',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // UPS\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '38',\n 'merk_barang' => 'UPS Rack 3750W/5000VA',\n 'nup'=>'9',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // UPS\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '38',\n 'merk_barang' => 'UPS Rack 3750W/5000VA',\n 'nup'=>'10',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // UPS\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '38',\n 'merk_barang' => 'Dell 4200W/6000VA',\n 'nup'=>'11',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // UPS\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '38',\n 'merk_barang' => 'Dell 4200W/6000VA',\n 'nup'=>'12',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // UPS\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '38',\n 'merk_barang' => 'Dell 500W/750Va Watt',\n 'nup'=>'13',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // UPS\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '38',\n 'merk_barang' => 'Dell 500W/750Va Watt',\n 'nup'=>'14',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // UPS\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '38',\n 'merk_barang' => 'Dell 500W/750Va Watt',\n 'nup'=>'15',\n 'idruang_fk' => '3'\n ));\n DB::table('detail_data_barang')->insert(array(\n // UPS\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '38',\n 'merk_barang' => 'Dell 500W/750Va Watt',\n 'nup'=>'16',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // UPS\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '38',\n 'merk_barang' => 'Dell 500W/750Va Watt',\n 'nup'=>'17',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // UPS\n 'tanggal' => '2018-12-26',\n 'idbarang_fk' => '38',\n 'merk_barang' => 'APC SURT15KRMXLI',\n 'nup'=>'18',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // video presenter\n 'tanggal' => '2011-07-26',\n 'idbarang_fk' => '39',\n 'merk_barang' => 'PROLINK PWP301',\n 'nup'=>'1',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n //video conference\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '40',\n 'merk_barang' => 'Fancil D800',\n 'nup'=>'1',\n 'idruang_fk' => '23'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Teropong Keker\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '41',\n 'merk_barang' => 'Bushnell Image View 118326',\n 'nup'=>'1',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Teropong Keker\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '41',\n 'merk_barang' => 'Bushnell Image View 118326',\n 'nup'=>'2',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Teropong Keker\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '41',\n 'merk_barang' => 'Bushnell Night Vision 260400',\n 'nup'=>'3',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Teropong Keker\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '41',\n 'merk_barang' => 'Bushnell Night Vision 260400',\n 'nup'=>'4',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Telephone\n 'tanggal' => '2011-07-26',\n 'idbarang_fk' => '42',\n 'merk_barang' => 'Favorite TC416 PABX-16 Unit',\n 'nup'=>'1',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Facsimile\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '43',\n 'merk_barang' => 'PANASONIC C KXFP 362 CX',\n 'nup'=>'1',\n 'idruang_fk' => '11'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Alat komunikasi lainnya\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '44',\n 'merk_barang' => 'COMEX',\n 'nup'=>'1',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Alat komunikasi lainnya\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '44',\n 'merk_barang' => 'COMEX',\n 'nup'=>'2',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Alat komunikasi lainnya\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '44',\n 'merk_barang' => 'COMEX',\n 'nup'=>'3',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Alat komunikasi lainnya\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '44',\n 'merk_barang' => 'COMEX',\n 'nup'=>'4',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Alat komunikasi lainnya\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '44',\n 'merk_barang' => 'COMEX',\n 'nup'=>'5',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Alat komunikasi lainnya\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '44',\n 'merk_barang' => 'COMEX',\n 'nup'=>'6',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Alat komunikasi lainnya\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '44',\n 'merk_barang' => 'COMEX',\n 'nup'=>'7',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Alat komunikasi lainnya\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '44',\n 'merk_barang' => 'COMEX',\n 'nup'=>'8',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Alat komunikasi lainnya\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '44',\n 'merk_barang' => 'COMEX',\n 'nup'=>'9',\n 'idruang_fk' => '12'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Alat komunikasi lainnya\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '44',\n 'merk_barang' => 'COMEX',\n 'nup'=>'10',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Alat komunikasi lainnya\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '44',\n 'merk_barang' => 'Fanvil C58',\n 'nup'=>'11',\n 'idruang_fk' => '11'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Alat komunikasi lainnya\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '44',\n 'merk_barang' => 'Fanvil C58',\n 'nup'=>'12',\n 'idruang_fk' => '11'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Alat komunikasi lainnya\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '44',\n 'merk_barang' => 'Fanvil C58',\n 'nup'=>'13',\n 'idruang_fk' => '11'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Alat komunikasi lainnya\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '44',\n 'merk_barang' => 'Fanvil C58',\n 'nup'=>'14',\n 'idruang_fk' => '12'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Alat komunikasi lainnya\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '44',\n 'merk_barang' => 'Fanvil C58',\n 'nup'=>'15',\n 'idruang_fk' => '1'\n ));DB::table('detail_data_barang')->insert(array(\n // Alat komunikasi lainnya\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '44',\n 'merk_barang' => 'Fanvil C58',\n 'nup'=>'16',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Alat komunikasi lainnya\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '44',\n 'merk_barang' => 'Fanvil C58',\n 'nup'=>'17',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Alat komunikasi lainnya\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '44',\n 'merk_barang' => 'Fanvil C58',\n 'nup'=>'18',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Alat komunikasi lainnya\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '44',\n 'merk_barang' => 'Fanvil C58',\n 'nup'=>'19',\n 'idruang_fk' => '3'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Finger Printer\n 'tanggal' => '2011-07-26',\n 'idbarang_fk' => '45',\n 'merk_barang' => 'Fingerspot Enterprise 2000C',\n 'nup'=>'1',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Finger Printer\n 'tanggal' => '2018-04-30',\n 'idbarang_fk' => '45',\n 'merk_barang' => 'Fingerprint New Premier Series',\n 'nup'=>'2',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Peralatan Antena\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '46',\n 'merk_barang' => 'Trimble Tornado Antena for Mapping & GIS',\n 'nup'=>'1',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Peralatan Antena\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '46',\n 'merk_barang' => 'Trimble Tornado Antena for Mapping & GIS',\n 'nup'=>'2',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-07-26',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'ACER M1900',\n 'nup'=>'1',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'2',\n 'idruang_fk' => '9'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'3',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'4',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'5',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'6',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'7',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'8',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'9',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'10',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'11',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'12',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'13',\n 'idruang_fk' => '23'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'14',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'15',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'16',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'17',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'18',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'19',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'20',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'21',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'22',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'23',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'24',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'25',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'26',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'27',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'28',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'29',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'30',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'31',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'32',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'33',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'34',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'35',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'36',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'37',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'38',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'39',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'40',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'41',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'42',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'43',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'44',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'45',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'46',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'47',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'48',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'49',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'50',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'51',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'52',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'53',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'54',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'55',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'56',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'57',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'58',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'59',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'60',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'61',\n 'idruang_fk' => '11'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'62',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'63',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'64',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'65',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'66',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'67',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'68',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'69',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'70',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'71',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'72',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'73',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'74',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'75',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'76',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'77',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'78',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'79',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'80',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'81',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'82',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'83',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'84',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'85',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'86',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'87',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'88',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'89',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'90',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'91',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'92',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'93',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'94',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'DELL Optrirlex 790',\n 'nup'=>'95',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'ACER M1920, Built up',\n 'nup' => '96',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'ACER M1920, Built up',\n 'nup' => '97',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'ACER M1920, Built up',\n 'nup' => '98',\n 'idruang_fk' => '14'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'ACER M1920, Built up',\n 'nup' => '99',\n 'idruang_fk' => '3'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'ACER M1920, Built up',\n 'nup' => '100',\n 'idruang_fk' => '3'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'ACER Aspire M1900JM',\n 'nup' => '101',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'ACER Aspire M1900JM',\n 'nup' => '102',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dekstop PC Dell Optiplex 3010',\n 'nup' => '103',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dekstop PC Dell Optiplex 3010',\n 'nup' => '104',\n 'idruang_fk' => '3'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dekstop PC Dell Optiplex 3010',\n 'nup' => '105',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dekstop PC Dell Optiplex 3010',\n 'nup' => '106',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dekstop PC Dell Optiplex 3010',\n 'nup' => '107',\n 'idruang_fk' => '3'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Optiplex 70110 Monitor 23\"',\n 'nup' => '108',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Optiplex 70110 Monitor 23\"',\n 'nup' => '109',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Optiplex 70110 Monitor 23\"',\n 'nup' => '110',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Optiplex 70110 Monitor 23\"',\n 'nup' => '111',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Optiplex 70110 Monitor 23\"',\n 'nup' => '112',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Optiplex 70110 Monitor 23\"',\n 'nup' => '113',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Optiplex 70110 Monitor 23\"',\n 'nup' => '114',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Optiplex 70110 Monitor 23\"',\n 'nup' => '115',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Optiplex 70110 Monitor 23\"',\n 'nup' => '116',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Optiplex 70110 Monitor 23\"',\n 'nup' => '117',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2016-11-07',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Acer Aspire M1800',\n 'nup' => '118',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2016-11-07',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Acer Aspire M1800',\n 'nup' => '120',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2016-11-07',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Acer Aspire M1800',\n 'nup' => '121',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2016-11-07',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Acer Aspire M1800',\n 'nup' => '122',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2016-11-07',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Acer Aspire M1800',\n 'nup' => '123',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2016-11-07',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Acer M3910',\n 'nup' => '124',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2016-11-07',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Acer M3910',\n 'nup' => '125',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2016-11-07',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Acer M3910',\n 'nup' => '126',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2016-11-07',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Acer M3910',\n 'nup' => '127',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2016-11-07',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Acer M3910',\n 'nup' => '128',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2016-11-07',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Acer M3910',\n 'nup' => '129',\n 'idruang_fk' => '12'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2016-11-07',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Acer M3910',\n 'nup' => '130',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2016-11-07',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Acer M3910',\n 'nup' => '131',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2016-11-07',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Acer M3910',\n 'nup' => '132',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2016-11-07',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Acer M3910',\n 'nup' => '133',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2016-11-07',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Acer M3910',\n 'nup' => '134',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2016-11-07',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Acer M3910',\n 'nup' => '135',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2016-11-07',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Acer M3910',\n 'nup' => '136',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2016-11-07',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Acer M3910',\n 'nup' => '137',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2016-11-07',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Acer M3910',\n 'nup' => '138',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2016-11-07',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Acer M3910',\n 'nup' => '139',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2016-11-07',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Acer M3910',\n 'nup' => '140',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2016-11-07',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Acer M3910',\n 'nup' => '141',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2016-11-07',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Acer M3910',\n 'nup' => '142',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2016-11-07',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Acer M3910',\n 'nup' => '143',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-11-29',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Power edge R730',\n 'nup' => '144',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-11-29',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Power edge R730',\n 'nup' => '145',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '146',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '147',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '148',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '149',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '150',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '151',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '152',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '153',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '154',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '155',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '156',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '157',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '158',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '159',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '160',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '161',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '162',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '163',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '164',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '165',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '166',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '167',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '168',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '169',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '170',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '171',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '172',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '173',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '174',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '175',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '176',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '177',\n 'idruang_fk' => '8'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '178',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '179',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '180',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '181',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '182',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '183',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '184',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '185',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '186',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '187',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-18',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell Inspiron 3277 AIO',\n 'nup' => '188',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-18',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell All in One Inspiron 24 5477',\n 'nup' => '189',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-18',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell All in One Inspiron 24 5477',\n 'nup' => '190',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-18',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell All in One Inspiron 24 5477',\n 'nup' => '191',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-18',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell All in One Inspiron 24 5477',\n 'nup' => '192',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-18',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell All in One Inspiron 24 5477',\n 'nup' => '193',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-18',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell All in One Inspiron 24 5477',\n 'nup' => '194',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-18',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell All in One Inspiron 24 5477',\n 'nup' => '195',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-18',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell All in One Inspiron 24 5477',\n 'nup' => '196',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-18',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell All in One Inspiron 24 5477',\n 'nup' => '197',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-18',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell All in One Inspiron 24 5477',\n 'nup' => '198',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-18',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell All in One Inspiron 24 5477',\n 'nup' => '199',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-18',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell All in One Inspiron 24 5477',\n 'nup' => '200',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-18',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell All in One Inspiron 24 5477',\n 'nup' => '201',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-18',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell All in One Inspiron 24 5477',\n 'nup' => '202',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-18',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell All in One Inspiron 24 5477',\n 'nup' => '203',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-18',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell All in One Inspiron 24 5477',\n 'nup' => '204',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-18',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell All in One Inspiron 24 5477',\n 'nup' => '205',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-18',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell All in One Inspiron 24 5477',\n 'nup' => '206',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-18',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell All in One Inspiron 24 5477',\n 'nup' => '207',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-18',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell All in One Inspiron 24 5477',\n 'nup' => '208',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-18',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell All in One Inspiron 24 5477',\n 'nup' => '209',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Personal Computer\n 'tanggal' => '2018-12-18',\n 'idbarang_fk' => '47',\n 'merk_barang' => 'Dell All in One Inspiron 24 5477',\n 'nup' => '210',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Electronic Robot\n 'tanggal' => '2011-06-06',\n 'idbarang_fk' => '48',\n 'merk_barang' => 'Wow Wee Rovio',\n 'nup' => '1',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Electronic Robot\n 'tanggal' => '2011-06-06',\n 'idbarang_fk' => '48',\n 'merk_barang' => 'Arm MR-999E',\n 'nup' => '2',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kamera Digital\n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '49',\n 'merk_barang' => 'Nikon D5 100 Kit TO',\n 'nup' => '1',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kamera Digital\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '49',\n 'merk_barang' => 'Canon Digital EOS 77D With Lens18-55mm+Memory 32G',\n 'nup' => '1',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // GPS\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '50',\n 'merk_barang' => 'Handheld GPS System Trimble Juno',\n 'nup' => '1',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // GPS\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '50',\n 'merk_barang' => 'Handheld GPS System Trimble Juno',\n 'nup' => '2',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // GPS\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '50',\n 'merk_barang' => 'Trimble geo explorer 6000',\n 'nup' => '3',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // GPS\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '50',\n 'merk_barang' => 'Trimble Recon Hendheld',\n 'nup' => '4',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // GPS\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '50',\n 'merk_barang' => 'Trimble Recon Hendheld',\n 'nup' => '5',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Omni\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '51',\n 'merk_barang' => 'Omni Mikrotik ANT APF24-20',\n 'nup' => '1',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Omni\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '51',\n 'merk_barang' => 'Omni Mikrotik ANT APF24-20',\n 'nup' => '2',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Omni\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '51',\n 'merk_barang' => 'Omni Mikrotik ANT APF24-20',\n 'nup' => '3',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '1',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '2',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '3',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '4',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '5',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '6',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '7',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '8',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '9',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '10',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '11',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '12',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '13',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '14',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '15',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '16',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '17',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '18',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '19',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '20',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '21',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '22',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '23',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '24',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '25',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '26',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '27',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '28',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '29',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '30',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '31',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '32',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '33',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '34',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '35',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '36',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '37',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '38',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '39',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '40',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '41',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '42',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '43',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '44',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '45',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '46',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '47',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '48',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '49',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '50',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '51',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '52',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '53',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '54',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '55',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '56',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '57',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '58',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '59',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Stavol\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '52',\n 'merk_barang' => 'Matsunaga',\n 'nup' => '60',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Mini Komputer\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '53',\n 'merk_barang' => 'Tablet with GPS Pathfinder ProXH receiver',\n 'nup' => '1',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // PC workstation\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '54',\n 'merk_barang' => 'Dell Precision T1600',\n 'nup' => '1',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // PC workstation\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '54',\n 'merk_barang' => 'Precision T1600',\n 'nup' => '2',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // PC workstation\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '54',\n 'merk_barang' => 'Dell Precision T15500',\n 'nup' => '3',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // PC workstation\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '54',\n 'merk_barang' => 'DELL PRECISION T3600',\n 'nup' => '4',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // PC workstation\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '54',\n 'merk_barang' => 'DELL PRECISION T3600',\n 'nup' => '5',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // PC workstation\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '54',\n 'merk_barang' => 'DELL PRECISION T3600',\n 'nup' => '6',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // PC workstation\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '54',\n 'merk_barang' => 'DELL PRECISION T3600',\n 'nup' => '7',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // PC unit\n 'tanggal' => '2017-12-18',\n 'idbarang_fk' => '55',\n 'merk_barang' => 'ACER ALL In ONE C20-720',\n 'nup' => '1',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // PC unit\n 'tanggal' => '2017-12-18',\n 'idbarang_fk' => '55',\n 'merk_barang' => 'ACER ALL In ONE C20-720',\n 'nup' => '2',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // PC unit\n 'tanggal' => '2017-12-18',\n 'idbarang_fk' => '55',\n 'merk_barang' => 'ACER ALL In ONE C20-720',\n 'nup' => '3',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // PC unit\n 'tanggal' => '2017-12-18',\n 'idbarang_fk' => '55',\n 'merk_barang' => 'ACER ALL In ONE C20-720',\n 'nup' => '4',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // PC unit\n 'tanggal' => '2017-12-18',\n 'idbarang_fk' => '55',\n 'merk_barang' => 'ACER ALL In ONE C20-720',\n 'nup' => '5',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // PC unit\n 'tanggal' => '2017-12-18',\n 'idbarang_fk' => '55',\n 'merk_barang' => 'ACER ALL In ONE C20-720',\n 'nup' => '6',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // PC unit\n 'tanggal' => '2017-12-18',\n 'idbarang_fk' => '55',\n 'merk_barang' => 'ACER ALL In ONE C20-720',\n 'nup' => '7',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // laptop\n 'tanggal' => '2010-11-25',\n 'idbarang_fk' => '56',\n 'merk_barang' => 'Fujitsu Lifebook TH700',\n 'nup' => '1',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // laptop\n 'tanggal' => '2011-06-06',\n 'idbarang_fk' => '56',\n 'merk_barang' => 'Toshiba Portege T210-1029 U',\n 'nup' => '2',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // laptop\n 'tanggal' => '2011-06-06',\n 'idbarang_fk' => '56',\n 'merk_barang' => 'ASUS A42F-VX085D',\n 'nup' => '3',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // laptop\n 'tanggal' => '2011-06-06',\n 'idbarang_fk' => '56',\n 'merk_barang' => 'Toshiba Satellite L635-1064',\n 'nup' => '4',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // laptop\n 'tanggal' => '2011-07-26',\n 'idbarang_fk' => '56',\n 'merk_barang' => 'Toshiba Portege T210-1018R',\n 'nup' => '5',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // laptop\n 'tanggal' => '2019-03-27',\n 'idbarang_fk' => '56',\n 'merk_barang' => 'Asus Ultra Slim 14 inch',\n 'nup' => '6',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Notebook\n 'tanggal' => '2010-12-01',\n 'idbarang_fk' => '57',\n 'merk_barang' => 'Asus Eee PC 1005PX-Black',\n 'nup' => '1',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Notebook\n 'tanggal' => '2010-12-01',\n 'idbarang_fk' => '57',\n 'merk_barang' => 'Asus Eee PC 1005PX-Black',\n 'nup' => '2',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Notebook\n 'tanggal' => '2010-12-16',\n 'idbarang_fk' => '57',\n 'merk_barang' => 'Asus Eee PC 1005PX',\n 'nup' => '3',\n 'idruang_fk' => '11'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Notebook\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '57',\n 'merk_barang' => 'Dell Latitude E6420',\n 'nup' => '4',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Notebook\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '57',\n 'merk_barang' => 'Dell Latitude E6420',\n 'nup' => '5',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Notebook\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '57',\n 'merk_barang' => 'Latitude E6420',\n 'nup' => '6',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Notebook\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '57',\n 'merk_barang' => 'Latitude E6420',\n 'nup' => '7',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Notebook\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '57',\n 'merk_barang' => 'Latitude E6420',\n 'nup' => '8',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Notebook\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '57',\n 'merk_barang' => 'DELL Latitude E6230',\n 'nup' => '9',\n 'idruang_fk' => '23'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Notebook\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '57',\n 'merk_barang' => 'DELL Latitude E6230',\n 'nup' => '10',\n 'idruang_fk' => '11'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Notebook\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '57',\n 'merk_barang' => 'Dell Precision M6700',\n 'nup' => '11',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Notebook\n 'tanggal' => '2015-04-13',\n 'idbarang_fk' => '57',\n 'merk_barang' => 'Apple Mac Book Air (MD7121D/B)',\n 'nup' => '12',\n 'idruang_fk' => '27'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Notebook\n 'tanggal' => '2017-10-26',\n 'idbarang_fk' => '57',\n 'merk_barang' => 'ASUS Business Notebook P243OUA',\n 'nup' => '13',\n 'idruang_fk' => '12'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Notebook\n 'tanggal' => '2017-10-26',\n 'idbarang_fk' => '57',\n 'merk_barang' => 'ASUS Business Notebook P243OUA',\n 'nup' => '14',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Notebook\n 'tanggal' => '2017-10-26',\n 'idbarang_fk' => '57',\n 'merk_barang' => 'ASUS Business Notebook P243OUA',\n 'nup' => '15',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Notebook\n 'tanggal' => '2017-10-26',\n 'idbarang_fk' => '57',\n 'merk_barang' => 'ASUS Business Notebook P243OUA',\n 'nup' => '16',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Monitor\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '58',\n 'merk_barang' => 'DELL Ultra Sharp U2410',\n 'nup' => '1',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Monitor\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '58',\n 'merk_barang' => 'DELL Ultra Sharp U2410',\n 'nup' => '2',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Monitor\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '58',\n 'merk_barang' => 'Interactive pen Display Wacom DTU-2231 A',\n 'nup' => '3',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Monitor\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '58',\n 'merk_barang' => 'Interactive pen Display Wacom DTU-2231 A',\n 'nup' => '1',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'LASERJET P1005 HP',\n 'nup' => '1',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2010-11-25',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'HP LASERJET PRO P1 102',\n 'nup' => '2',\n 'idruang_fk' => '23'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2010-11-25',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'HP LASERJET PRO P1 102',\n 'nup' => '3',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2010-12-01',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'CANON PIXMA MP276',\n 'nup' => '4',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2010-12-01',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'CANON PIXMA MP276',\n 'nup' => '5',\n 'idruang_fk' => '14'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2011-07-26',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'HP Laser Pro P1 102',\n 'nup' => '6',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2011-07-26',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'Epson L100',\n 'nup' => '7',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'Canon pixma MGR 170',\n 'nup' => '8',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'Canon pixma MGR 170',\n 'nup' => '9',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'Lip CP3525dn',\n 'nup' => '10',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'HP Laser Jet Pro MI 212',\n 'nup' => '11',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'CANON PIXMA IP4870',\n 'nup' => '12',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'HP LAser Jet Pro MO 212',\n 'nup' => '13',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'EPSON LQ 2190',\n 'nup' => '14',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'HP Laser Jet P1002',\n 'nup' => '15',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'HP Laser Jet P1002',\n 'nup' => '16',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2012-12-18',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'INK Jet EPSON L110',\n 'nup' => '17',\n 'idruang_fk' => '14'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'HP Laser Jet P1002',\n 'nup' => '18',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'HP Laser Jet P1002',\n 'nup' => '19',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'HP Laser Jet P1002',\n 'nup' => '20',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'HP Laser Jet P1002',\n 'nup' => '21',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'HP Laser Jet P1002',\n 'nup' => '22',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'HP DESIGNjet 510 AO 42\" (AO+) CH337A',\n 'nup' => '23',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2015-12-15',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'EPSON L360',\n 'nup' => '24',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2015-12-15',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'EPSON L360',\n 'nup' => '25',\n 'idruang_fk' => '11'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2015-12-15',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'HP Laser Jet P1102',\n 'nup' => '26',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2015-12-15',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'HP Laser Jet P1102',\n 'nup' => '27',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2015-12-15',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'HP Laser Jet P1102',\n 'nup' => '28',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2017-10-16',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'Printer EpsonL 360',\n 'nup' => '29',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2017-10-16',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'Printer EpsonL 360',\n 'nup' => '30',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2017-10-16',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'Printer EpsonL 360',\n 'nup' => '31',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2017-10-16',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'Printer EpsonL 360',\n 'nup' => '32',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2017-10-16',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'Printer HP Laser Jet Pro M102a (G3Q34A)',\n 'nup' => '33',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2017-10-16',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'Printer HP Laser Jet Pro M102a (G3Q34A)',\n 'nup' => '34',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Printer\n 'tanggal' => '2017-10-16',\n 'idbarang_fk' => '59',\n 'merk_barang' => 'Printer HP Laser Jet Pro M102a (G3Q34A)',\n 'nup' => '35',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Scanner\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '60',\n 'merk_barang' => 'EPSON GT-2900',\n 'nup' => '1',\n 'idruang_fk' => '4'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Scanner\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '61',\n 'merk_barang' => 'EPSON GT-2900',\n 'nup' => '2',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Exsternal portable hardisk\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '61',\n 'merk_barang' => 'SEAGATE STAC4000100',\n 'nup' => '1',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Exsternal portable hardisk\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '61',\n 'merk_barang' => 'SEAGATE STAC4000100',\n 'nup' => '2',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Exsternal portable hardisk\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '61',\n 'merk_barang' => 'SEAGATE STAC4000100',\n 'nup' => '3',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Exsternal portable hardisk\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '61',\n 'merk_barang' => 'SEAGATE STAC4000100',\n 'nup' => '4',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Exsternal portable hardisk\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '61',\n 'merk_barang' => 'SEAGATE STAC4000100',\n 'nup' => '5',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Server\n 'tanggal' => '2011-06-06',\n 'idbarang_fk' => '62',\n 'merk_barang' => 'QNAP TS 559 Pro+',\n 'nup' => '1',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Server\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '62',\n 'merk_barang' => 'DELL PowerEdge T410',\n 'nup' => '2',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Server\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '62',\n 'merk_barang' => 'DELL PowerEdge T410',\n 'nup' => '3',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Server\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '62',\n 'merk_barang' => 'DELL PowerEdge T410',\n 'nup' => '4',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Server\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '62',\n 'merk_barang' => 'DELL PowerEdge T410',\n 'nup' => '5',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Server\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '62',\n 'merk_barang' => 'DELL PowerEdge T410',\n 'nup' => '6',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Server\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '62',\n 'merk_barang' => 'SUPERMI CRO Super Server 1029P-WTR',\n 'nup' => '7',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Server\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '62',\n 'merk_barang' => 'SUPERMI CRO Super Server 1029P-WTR',\n 'nup' => '8',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Server\n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '62',\n 'merk_barang' => 'ATEN 8-Port PS/2-USB VGA LCD KVM Switch with daisy',\n 'nup' => '9',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Router\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '63',\n 'merk_barang' => 'Rackmount, Nikrotik RB110',\n 'nup' => '1',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Router\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '63',\n 'merk_barang' => 'Rackmount, Nikrotik RB110',\n 'nup' => '2',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Router\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '63',\n 'merk_barang' => 'Buit, Mikrotik RB450',\n 'nup' => '3',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Router\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '63',\n 'merk_barang' => 'Buit, Mikrotik RB450',\n 'nup' => '4',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Router\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '63',\n 'merk_barang' => 'Buit, Mikrotik RB450',\n 'nup' => '5',\n 'idruang_fk' => '1'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Router\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '63',\n 'merk_barang' => 'Buit, Mikrotik RB450',\n 'nup' => '6',\n 'idruang_fk' => '1'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Router\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '63',\n 'merk_barang' => 'Buit, Mikrotik RB450',\n 'nup' => '7',\n 'idruang_fk' => '1'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Router\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '63',\n 'merk_barang' => 'Buit, Mikrotik RB450',\n 'nup' => '8',\n 'idruang_fk' => '1'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Router\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '63',\n 'merk_barang' => 'Buit, Mikrotik RB450',\n 'nup' => '9',\n 'idruang_fk' => '1'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Router\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '63',\n 'merk_barang' => 'Buit, Mikrotik RB450',\n 'nup' => '10',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Router\n 'tanggal' => '2011-12-22',\n 'idbarang_fk' => '63',\n 'merk_barang' => 'Mikrotik Core Router',\n 'nup' => '11',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // HUb\n 'tanggal' => '2010-12-01',\n 'idbarang_fk' => '64',\n 'merk_barang' => 'D-LINK DGS-1024D',\n 'nup' => '1',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Rak Server\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '65',\n 'merk_barang' => 'Dell PowerEdge Rack 4220',\n 'nup' => '1',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Rak Server\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '65',\n 'merk_barang' => 'Dell PowerEdge Rack 4220',\n 'nup' => '2',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Swiitch Rak\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '66',\n 'merk_barang' => 'Fortuna 8u double door',\n 'nup' => '1',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kabel UTP\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '67',\n 'merk_barang' => 'DRAKA CAT6 MT Cable',\n 'nup' => '1',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kabel UTP\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '67',\n 'merk_barang' => 'DRAKA CAT6 MT Cable',\n 'nup' => '2',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kabel UTP\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '67',\n 'merk_barang' => 'DRAKA CAT6 MT Cable',\n 'nup' => '3',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kabel UTP\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '67',\n 'merk_barang' => 'DRAKA CAT6 MT Cable',\n 'nup' => '4',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kabel UTP\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '67',\n 'merk_barang' => 'DRAKA CAT6 UTP Cable',\n 'nup' => '7',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kabel UTP\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '67',\n 'merk_barang' => 'DRAKA CAT6 UTP Cable',\n 'nup' => '8',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Kabel UTP\n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '67',\n 'merk_barang' => 'Belden Cat 6',\n 'nup' => '9',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Switch \n 'tanggal' => '2016-03-14',\n 'idbarang_fk' => '68',\n 'merk_barang' => 'TP Link Switch HUB',\n 'nup' => '14',\n 'idruang_fk' => '5'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Switch \n 'tanggal' => '2016-03-14',\n 'idbarang_fk' => '68',\n 'merk_barang' => 'TP Link Switch HUB',\n 'nup' => '15',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Switch \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '68',\n 'merk_barang' => 'D-LINK DGS 1210-16/r',\n 'nup' => '16',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Switch \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '68',\n 'merk_barang' => 'D-LINK DGS 1210-16/r',\n 'nup' => '17',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Switch \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '68',\n 'merk_barang' => 'D-LINK DGS 1210-16/r',\n 'nup' => '18',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Switch \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '68',\n 'merk_barang' => 'D-LINK DGS 1210-16/r',\n 'nup' => '19',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Switch \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '68',\n 'merk_barang' => 'D-LINK DGS 1210-16/r',\n 'nup' => '20',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Switch \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '68',\n 'merk_barang' => 'D-LINK DGS 1210-24/E',\n 'nup' => '21',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Switch \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '68',\n 'merk_barang' => 'D-LINK DGS 1210-24/E',\n 'nup' => '22',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Switch \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '68',\n 'merk_barang' => 'D-LINK DGS 1210-24/E',\n 'nup' => '23',\n 'idruang_fk' => '7'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Switch \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '68',\n 'merk_barang' => 'D-LINK DGS 1210-24/E',\n 'nup' => '24',\n 'idruang_fk' => '6'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Switch \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '68',\n 'merk_barang' => 'D-LINK DGS 1210-24/E',\n 'nup' => '25',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Switch \n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '68',\n 'merk_barang' => 'D-LINK DGS 1210-24/E',\n 'nup' => '26',\n 'idruang_fk' => '15'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Switch \n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '68',\n 'merk_barang' => 'LINK TL-SG 1024',\n 'nup' => '27',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Switch \n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '68',\n 'merk_barang' => 'LINK TL-SG 1024',\n 'nup' => '28',\n 'idruang_fk' => '18'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Switch \n 'tanggal' => '2018-02-23',\n 'idbarang_fk' => '68',\n 'merk_barang' => 'SWITCH MANAGE Cisco SLM2008T-EU',\n 'nup' => '29',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Switch \n 'tanggal' => '2018-02-23',\n 'idbarang_fk' => '68',\n 'merk_barang' => 'SWITCH MANAGE Cisco SLM2008T-EU',\n 'nup' => '30',\n 'idruang_fk' => '13'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Switch \n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '68',\n 'merk_barang' => 'CISCO SG95D-08/-Port Gigabit Dekstop Switch',\n 'nup' => '31',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Switch \n 'tanggal' => '2018-08-30',\n 'idbarang_fk' => '68',\n 'merk_barang' => 'CISCO SG95D-08/-Port Gigabit Dekstop Switch',\n 'nup' => '32',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Switch \n 'tanggal' => '2018-11-29',\n 'idbarang_fk' => '68',\n 'merk_barang' => 'JUNIPER Switch Manage EX2200-24T-4G',\n 'nup' => '33',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Switch \n 'tanggal' => '2018-12-12',\n 'idbarang_fk' => '68',\n 'merk_barang' => 'TP-LINK AC1200 Dual-Band Wifi Gigabit Router',\n 'nup' => '34',\n 'idruang_fk' => '10'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Acces Point\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '69',\n 'merk_barang' => 'D-Link DAP-1360',\n 'nup' => '1',\n 'idruang_fk' => '24'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Acces Point\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '69',\n 'merk_barang' => 'Converter VGA to HDMI',\n 'nup' => '2',\n 'idruang_fk' => '19'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Converter\n 'tanggal' => '2018-03-29',\n 'idbarang_fk' => '70',\n 'merk_barang' => 'Converter VGA to HDMI',\n 'nup' => '3',\n 'idruang_fk' => '26'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Converter\n 'tanggal' => '2018-03-29',\n 'idbarang_fk' => '70',\n 'merk_barang' => 'Converter VGA to HDMI',\n 'nup' => '4',\n 'idruang_fk' => '20'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Converter\n 'tanggal' => '2018-03-29',\n 'idbarang_fk' => '70',\n 'merk_barang' => 'Converter VGA to HDMI',\n 'nup' => '5',\n 'idruang_fk' => '21'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Converter\n 'tanggal' => '2018-03-29',\n 'idbarang_fk' => '70',\n 'merk_barang' => 'Converter VGA to HDMI',\n 'nup' => '6',\n 'idruang_fk' => '22'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Converter\n 'tanggal' => '2018-03-29',\n 'idbarang_fk' => '70',\n 'merk_barang' => 'Converter VGA to HDMI',\n 'nup' => '7',\n 'idruang_fk' => '8'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Jet Pump\n 'tanggal' => '2010-03-18',\n 'idbarang_fk' => '71',\n 'merk_barang' => 'LAKONI 505',\n 'nup' => '1',\n 'idruang_fk' => '17'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Storage Pile\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '72',\n 'merk_barang' => 'Dell Power Vault MI 1200',\n 'nup' => '1',\n 'idruang_fk' => '25'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Storage Pile\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '72',\n 'merk_barang' => 'Dell Power Vault MI 1200',\n 'nup' => '2',\n 'idruang_fk' => '25'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Storage Pile\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '72',\n 'merk_barang' => 'Dell Power Vault MI 1200',\n 'nup' => '3',\n 'idruang_fk' => '25'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Storage Pile\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '72',\n 'merk_barang' => 'Dell Power Vault MI 1200',\n 'nup' => '4',\n 'idruang_fk' => '25'\n ));\n\n DB::table('detail_data_barang')->insert(array(\n // Storage Pile\n 'tanggal' => '2011-12-13',\n 'idbarang_fk' => '72',\n 'merk_barang' => 'WD Sentinel DX4000 WDBLGTO 1 20KBK',\n 'nup' => '5',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Storage Pile\n 'tanggal' => '2011-12-13',\n 'idbarang_fk' => '72',\n 'merk_barang' => 'WD Sentinel DX4000 WDBLGTO 1 20KBK',\n 'nup' => '6',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Alat tenis meja\n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '73',\n 'merk_barang' => 'Meja Pingpong Lokal',\n 'nup' => '1',\n 'idruang_fk' => '16'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Alat tenis meja\n 'tanggal' => '2018-03-29',\n 'idbarang_fk' => '73',\n 'merk_barang' => 'Tanis Meja Nittaku 2003B',\n 'nup' => '2',\n 'idruang_fk' => '16'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Alat Music Modern\n 'tanggal' => '2016-07-26',\n 'idbarang_fk' => '74',\n 'merk_barang' => 'Keyboard Roland E 09',\n 'nup' => '1',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Alat music \n 'tanggal' => '2011-12-28',\n 'idbarang_fk' => '74',\n 'merk_barang' => 'Korg PA50 RU',\n 'nup' => '2',\n 'idruang_fk' => '18'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'MATLAB 7',\n 'nup' => '1',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'MATLAB Parallel computing',\n 'nup' => '2',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'MATLAB Opsfullzation Toolbox',\n 'nup' => '3',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '74',\n 'merk_barang' => 'MATLAB Symbolic Math Toolbox',\n 'nup' => '4',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'MATLAB Partial Differential',\n 'nup' => '5',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'MATLAB Global Optimization',\n 'nup' => '6',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'MATLAB Statistics rootbox',\n 'nup' => '7',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'MATLAB Neural Network Toolbox',\n 'nup' => '8',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'MATLAB Curve Fitting Toolbox',\n 'nup' => '9',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'MATLAB Image Proces Toolbox',\n 'nup' => '10',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'MATLAB Vision System Toolbox',\n 'nup' => '11',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'MATLAB Mapping toolbox',\n 'nup' => '12',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'MATLAB Bioinformatics Toolbox',\n 'nup' => '13',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'MATLAB Simbiology',\n 'nup' => '14',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'MATLAB Compiler',\n 'nup' => '5',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'MATLAB Spreadsheet link EX',\n 'nup' => '16',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'MATLAB Builder NE',\n 'nup' => '17',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'MATLAB Builder EX',\n 'nup' => '18',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'MATLAB Huilder JA',\n 'nup' => '19',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'MATLAB Database Toolbox',\n 'nup' => '20',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2011-12-01',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'MATLAB Report Generator',\n 'nup' => '21',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'Trimble Trim Pix Pro',\n 'nup' => '22',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'Trimble Trim Pix pro',\n 'nup' => '23',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'Software Trimble Terrasync Pro 45955-VG',\n 'nup' => '24',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'GPS Correct Extention For esri ArPad 46837-VG',\n 'nup' => '25',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'GPS Analyst Extention For esri ArcGis 52726-VG',\n 'nup' => '26',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'GPS pathfinder Office Software 34191-VG',\n 'nup' => '27',\n 'idruang_fk' => '2'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'Dekstop GIS ESRI Advanced (Arcinfo)',\n 'nup' => '28',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'GIS Analysis Extention ESRi ArcGis Schematcs',\n 'nup' => '29',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'Extention Esri ArcGis Analyst Schematics',\n 'nup' => '30',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'Produktivity ArcGis Data Interoperability',\n 'nup' => '31',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'ArcGis Geostatistical Analyst',\n 'nup' => '32',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '75',\n 'merk_barang' => ' Extention ESRI ArcGIS Network Analyst',\n 'nup' => '33',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'Extention ESRI ArcGIS Spatial Analyst',\n 'nup' => '34',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'Extention ESRI ArcGIS Tracking Analyst',\n 'nup' => '35',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'Mobile GIS ESRI ArcPad 10',\n 'nup' => '36',\n 'idruang_fk' => '1'\n ));\n DB::table('detail_data_barang')->insert(array(\n // Software\n 'tanggal' => '2012-12-13',\n 'idbarang_fk' => '75',\n 'merk_barang' => 'GIS for Server ESRi ArcGis',\n 'nup' => '37',\n 'idruang_fk' => '1'\n ));\n }", "public function testSavedUrsprungPlan($mesic,$rok){\n $hasData = 0;\n $sql = \"select persnr from dzeitsoll2 where MONTH(datum)='$mesic' and YEAR(datum)='$rok'\";\n $result = $this->db->query($sql);\n if(count($result)>0)\n $hasData = 1;\n return $hasData;\n }", "public function saveUrsprung($monat,$jahr){\n $this->db->query(\"delete from dzeitsoll2 where MONTH(datum)='$monat' and YEAR(datum)='$jahr'\");\n $sql_select = \"select * from dzeitsoll where MONTH(datum)='$monat' and YEAR(datum)='$jahr'\";\n $result = $this->db->query($sql_select);\n $vlozeno =0;\n $user = \"PHP_\".$_SERVER[\"REMOTE_ADDR\"];//.\"/\".$_SESSION[\"user\"];\n while($row = $result->fetch()){\n $sql_insert = \"insert into dzeitsoll2 (persnr,datum,oe,stunden,user) values('\".$row['persnr'].\"','\".$row['datum'].\"','\".$row['oe'].\"','\".$row['stunden'].\"','\".$user.\"')\";\n $this->db->query($sql_insert);\n $vlozeno++;\n }\n\n return $vlozeno;\n }", "public function populateTimestamp()\n {\n $this->exists = true;\n $this->timestamp = 1;\n }", "public function run()\n {\n DB::table('obat_masuk')->insert(array(\n \tarray('id_jenis_obat'=>1, 'id_stok_obat'=>1, 'waktu_masuk'=>'2017-01-07 09:12:00', 'jumlah'=>170, 'harga_beli_satuan'=>9100.00),\n\t\t\tarray('id_jenis_obat'=>2, 'id_stok_obat'=>2, 'waktu_masuk'=>'2017-01-15 09:16:00', 'jumlah'=>110, 'harga_beli_satuan'=>11000.00),\n\t\t\tarray('id_jenis_obat'=>3, 'id_stok_obat'=>3, 'waktu_masuk'=>'2017-01-22 09:26:00', 'jumlah'=>380, 'harga_beli_satuan'=>49000.00),\n\t\t\tarray('id_jenis_obat'=>4, 'id_stok_obat'=>4, 'waktu_masuk'=>'2017-02-06 09:32:00', 'jumlah'=>480, 'harga_beli_satuan'=>1300.00),\n\t\t\tarray('id_jenis_obat'=>5, 'id_stok_obat'=>5, 'waktu_masuk'=>'2017-02-07 09:42:00', 'jumlah'=>380, 'harga_beli_satuan'=>1400.00),\n\t\t\tarray('id_jenis_obat'=>6, 'id_stok_obat'=>6, 'waktu_masuk'=>'2017-02-21 09:46:00', 'jumlah'=>310, 'harga_beli_satuan'=>1600.00),\n\t\t\tarray('id_jenis_obat'=>7, 'id_stok_obat'=>7, 'waktu_masuk'=>'2017-03-15 10:02:00', 'jumlah'=>450, 'harga_beli_satuan'=>900.00),\n\t\t\tarray('id_jenis_obat'=>8, 'id_stok_obat'=>8, 'waktu_masuk'=>'2017-03-28 10:08:00', 'jumlah'=>90, 'harga_beli_satuan'=>2700.00),\n\t\t\tarray('id_jenis_obat'=>9, 'id_stok_obat'=>9, 'waktu_masuk'=>'2017-04-05 10:10:00', 'jumlah'=>230, 'harga_beli_satuan'=>470),\n\t\t\tarray('id_jenis_obat'=>10, 'id_stok_obat'=>10, 'waktu_masuk'=>'2017-04-16 10:16:00', 'jumlah'=>320, 'harga_beli_satuan'=>450),\n\t\t\tarray('id_jenis_obat'=>11, 'id_stok_obat'=>11, 'waktu_masuk'=>'2017-04-19 10:22:00', 'jumlah'=>30, 'harga_beli_satuan'=>6800.00),\n\t\t\tarray('id_jenis_obat'=>12, 'id_stok_obat'=>12, 'waktu_masuk'=>'2017-04-29 10:36:00', 'jumlah'=>330, 'harga_beli_satuan'=>7400.00),\n\t\t\tarray('id_jenis_obat'=>13, 'id_stok_obat'=>13, 'waktu_masuk'=>'2017-05-05 10:38:00', 'jumlah'=>20, 'harga_beli_satuan'=>6300.00),\n\t\t\tarray('id_jenis_obat'=>14, 'id_stok_obat'=>14, 'waktu_masuk'=>'2017-05-23 10:44:00', 'jumlah'=>320, 'harga_beli_satuan'=>6300.00),\n\t\t\tarray('id_jenis_obat'=>15, 'id_stok_obat'=>15, 'waktu_masuk'=>'2017-06-05 10:48:00', 'jumlah'=>180, 'harga_beli_satuan'=>9700.00),\n\t\t\tarray('id_jenis_obat'=>16, 'id_stok_obat'=>16, 'waktu_masuk'=>'2017-06-18 10:56:00', 'jumlah'=>190, 'harga_beli_satuan'=>12200.00),\n\t\t\tarray('id_jenis_obat'=>17, 'id_stok_obat'=>17, 'waktu_masuk'=>'2017-06-20 10:58:00', 'jumlah'=>420, 'harga_beli_satuan'=>700.00),\n\t\t\tarray('id_jenis_obat'=>18, 'id_stok_obat'=>18, 'waktu_masuk'=>'2017-06-25 11:00:00', 'jumlah'=>280, 'harga_beli_satuan'=>1500.00),\n\t\t\tarray('id_jenis_obat'=>19, 'id_stok_obat'=>19, 'waktu_masuk'=>'2017-06-27 11:02:00', 'jumlah'=>340, 'harga_beli_satuan'=>630),\n\t\t\tarray('id_jenis_obat'=>20, 'id_stok_obat'=>20, 'waktu_masuk'=>'2017-07-02 11:06:00', 'jumlah'=>50, 'harga_beli_satuan'=>8000.00),\n\t\t\tarray('id_jenis_obat'=>21, 'id_stok_obat'=>21, 'waktu_masuk'=>'2017-08-06 11:08:00', 'jumlah'=>150, 'harga_beli_satuan'=>5100.00),\n\t\t\tarray('id_jenis_obat'=>22, 'id_stok_obat'=>22, 'waktu_masuk'=>'2017-08-23 11:20:00', 'jumlah'=>210, 'harga_beli_satuan'=>500.00),\n\t\t\tarray('id_jenis_obat'=>23, 'id_stok_obat'=>23, 'waktu_masuk'=>'2017-08-24 11:22:00', 'jumlah'=>250, 'harga_beli_satuan'=>900.00),\n\t\t\tarray('id_jenis_obat'=>24, 'id_stok_obat'=>24, 'waktu_masuk'=>'2017-08-30 11:24:00', 'jumlah'=>440, 'harga_beli_satuan'=>600.00),\n\t\t\tarray('id_jenis_obat'=>25, 'id_stok_obat'=>25, 'waktu_masuk'=>'2017-09-10 11:26:00', 'jumlah'=>420, 'harga_beli_satuan'=>2100.00),\n\t\t\tarray('id_jenis_obat'=>26, 'id_stok_obat'=>26, 'waktu_masuk'=>'2017-01-05 11:28:00', 'jumlah'=>270, 'harga_beli_satuan'=>4400.00),\n\t\t\tarray('id_jenis_obat'=>27, 'id_stok_obat'=>27, 'waktu_masuk'=>'2017-01-17 11:30:00', 'jumlah'=>500, 'harga_beli_satuan'=>15500.00),\n\t\t\tarray('id_jenis_obat'=>28, 'id_stok_obat'=>28, 'waktu_masuk'=>'2017-01-24 11:34:00', 'jumlah'=>310, 'harga_beli_satuan'=>39200.00),\n\t\t\tarray('id_jenis_obat'=>29, 'id_stok_obat'=>29, 'waktu_masuk'=>'2017-02-15 11:38:00', 'jumlah'=>260, 'harga_beli_satuan'=>400.00),\n\t\t\tarray('id_jenis_obat'=>30, 'id_stok_obat'=>30, 'waktu_masuk'=>'2017-02-19 11:40:00', 'jumlah'=>500, 'harga_beli_satuan'=>3100.00),\n\t\t\tarray('id_jenis_obat'=>31, 'id_stok_obat'=>31, 'waktu_masuk'=>'2017-03-05 11:50:00', 'jumlah'=>160, 'harga_beli_satuan'=>350),\n\t\t\tarray('id_jenis_obat'=>32, 'id_stok_obat'=>32, 'waktu_masuk'=>'2017-03-16 11:54:00', 'jumlah'=>180, 'harga_beli_satuan'=>370),\n\t\t\tarray('id_jenis_obat'=>33, 'id_stok_obat'=>33, 'waktu_masuk'=>'2017-03-18 11:56:00', 'jumlah'=>380, 'harga_beli_satuan'=>200.00),\n\t\t\tarray('id_jenis_obat'=>34, 'id_stok_obat'=>34, 'waktu_masuk'=>'2017-03-20 12:02:00', 'jumlah'=>390, 'harga_beli_satuan'=>500.00),\n\t\t\tarray('id_jenis_obat'=>35, 'id_stok_obat'=>35, 'waktu_masuk'=>'2017-03-22 12:12:00', 'jumlah'=>440, 'harga_beli_satuan'=>1100.00),\n\t\t\tarray('id_jenis_obat'=>36, 'id_stok_obat'=>36, 'waktu_masuk'=>'2017-03-24 12:28:00', 'jumlah'=>210, 'harga_beli_satuan'=>220),\n\t\t\tarray('id_jenis_obat'=>37, 'id_stok_obat'=>37, 'waktu_masuk'=>'2017-03-31 12:30:00', 'jumlah'=>280, 'harga_beli_satuan'=>3300.00),\n\t\t\tarray('id_jenis_obat'=>38, 'id_stok_obat'=>38, 'waktu_masuk'=>'2017-04-08 12:42:00', 'jumlah'=>460, 'harga_beli_satuan'=>7100.00),\n\t\t\tarray('id_jenis_obat'=>39, 'id_stok_obat'=>39, 'waktu_masuk'=>'2017-04-10 12:52:00', 'jumlah'=>250, 'harga_beli_satuan'=>8800.00),\n\t\t\tarray('id_jenis_obat'=>40, 'id_stok_obat'=>40, 'waktu_masuk'=>'2017-04-11 13:02:00', 'jumlah'=>230, 'harga_beli_satuan'=>16400.00),\n\t\t\tarray('id_jenis_obat'=>41, 'id_stok_obat'=>41, 'waktu_masuk'=>'2017-05-14 13:16:00', 'jumlah'=>270, 'harga_beli_satuan'=>2400.00),\n\t\t\tarray('id_jenis_obat'=>42, 'id_stok_obat'=>42, 'waktu_masuk'=>'2017-05-30 13:28:00', 'jumlah'=>360, 'harga_beli_satuan'=>520),\n\t\t\tarray('id_jenis_obat'=>43, 'id_stok_obat'=>43, 'waktu_masuk'=>'2017-06-03 13:30:00', 'jumlah'=>470, 'harga_beli_satuan'=>360),\n\t\t\tarray('id_jenis_obat'=>44, 'id_stok_obat'=>44, 'waktu_masuk'=>'2017-06-04 13:48:00', 'jumlah'=>120, 'harga_beli_satuan'=>660),\n\t\t\tarray('id_jenis_obat'=>45, 'id_stok_obat'=>45, 'waktu_masuk'=>'2017-06-10 14:00:00', 'jumlah'=>30, 'harga_beli_satuan'=>720),\n\t\t\tarray('id_jenis_obat'=>46, 'id_stok_obat'=>46, 'waktu_masuk'=>'2017-06-19 14:10:00', 'jumlah'=>250, 'harga_beli_satuan'=>410),\n\t\t\tarray('id_jenis_obat'=>47, 'id_stok_obat'=>47, 'waktu_masuk'=>'2017-06-20 14:12:00', 'jumlah'=>420, 'harga_beli_satuan'=>4300.00),\n\t\t\tarray('id_jenis_obat'=>48, 'id_stok_obat'=>48, 'waktu_masuk'=>'2017-06-27 14:14:00', 'jumlah'=>470, 'harga_beli_satuan'=>5000.00),\n\t\t\tarray('id_jenis_obat'=>49, 'id_stok_obat'=>49, 'waktu_masuk'=>'2017-07-15 14:16:00', 'jumlah'=>60, 'harga_beli_satuan'=>7900.00),\n\t\t\tarray('id_jenis_obat'=>50, 'id_stok_obat'=>50, 'waktu_masuk'=>'2017-07-28 14:18:00', 'jumlah'=>100, 'harga_beli_satuan'=>9200.00),\n\t\t\tarray('id_jenis_obat'=>51, 'id_stok_obat'=>51, 'waktu_masuk'=>'2017-01-08 14:24:00', 'jumlah'=>260, 'harga_beli_satuan'=>7500.00),\n\t\t\tarray('id_jenis_obat'=>52, 'id_stok_obat'=>52, 'waktu_masuk'=>'2017-01-11 14:32:00', 'jumlah'=>20, 'harga_beli_satuan'=>7800.00),\n\t\t\tarray('id_jenis_obat'=>53, 'id_stok_obat'=>53, 'waktu_masuk'=>'2017-02-11 14:40:00', 'jumlah'=>170, 'harga_beli_satuan'=>8800.00),\n\t\t\tarray('id_jenis_obat'=>54, 'id_stok_obat'=>54, 'waktu_masuk'=>'2017-02-13 14:42:00', 'jumlah'=>100, 'harga_beli_satuan'=>100.00),\n\t\t\tarray('id_jenis_obat'=>55, 'id_stok_obat'=>55, 'waktu_masuk'=>'2017-03-02 14:46:00', 'jumlah'=>380, 'harga_beli_satuan'=>9400.00),\n\t\t\tarray('id_jenis_obat'=>56, 'id_stok_obat'=>56, 'waktu_masuk'=>'2017-03-03 14:52:00', 'jumlah'=>410, 'harga_beli_satuan'=>3600.00),\n\t\t\tarray('id_jenis_obat'=>57, 'id_stok_obat'=>57, 'waktu_masuk'=>'2017-03-20 15:04:00', 'jumlah'=>490, 'harga_beli_satuan'=>8100.00),\n\t\t\tarray('id_jenis_obat'=>58, 'id_stok_obat'=>58, 'waktu_masuk'=>'2017-03-21 15:14:00', 'jumlah'=>380, 'harga_beli_satuan'=>8500.00),\n\t\t\tarray('id_jenis_obat'=>59, 'id_stok_obat'=>59, 'waktu_masuk'=>'2017-03-23 15:18:00', 'jumlah'=>270, 'harga_beli_satuan'=>14200.00),\n\t\t\tarray('id_jenis_obat'=>60, 'id_stok_obat'=>60, 'waktu_masuk'=>'2017-03-29 15:36:00', 'jumlah'=>10, 'harga_beli_satuan'=>22100.00),\n\t\t\tarray('id_jenis_obat'=>61, 'id_stok_obat'=>61, 'waktu_masuk'=>'2017-04-03 15:46:00', 'jumlah'=>100, 'harga_beli_satuan'=>7300.00),\n\t\t\tarray('id_jenis_obat'=>62, 'id_stok_obat'=>62, 'waktu_masuk'=>'2017-04-06 15:54:00', 'jumlah'=>260, 'harga_beli_satuan'=>19000.00),\n\t\t\tarray('id_jenis_obat'=>63, 'id_stok_obat'=>63, 'waktu_masuk'=>'2017-04-07 15:56:00', 'jumlah'=>450, 'harga_beli_satuan'=>24300.00),\n\t\t\tarray('id_jenis_obat'=>64, 'id_stok_obat'=>64, 'waktu_masuk'=>'2017-05-02 16:06:00', 'jumlah'=>490, 'harga_beli_satuan'=>17200.00),\n\t\t\tarray('id_jenis_obat'=>65, 'id_stok_obat'=>65, 'waktu_masuk'=>'2017-05-09 16:08:00', 'jumlah'=>400, 'harga_beli_satuan'=>35000.00),\n\t\t\tarray('id_jenis_obat'=>66, 'id_stok_obat'=>66, 'waktu_masuk'=>'2017-05-16 16:10:00', 'jumlah'=>290, 'harga_beli_satuan'=>37000.00),\n\t\t\tarray('id_jenis_obat'=>67, 'id_stok_obat'=>67, 'waktu_masuk'=>'2017-05-26 16:18:00', 'jumlah'=>450, 'harga_beli_satuan'=>1600.00),\n\t\t\tarray('id_jenis_obat'=>68, 'id_stok_obat'=>68, 'waktu_masuk'=>'2017-05-27 16:38:00', 'jumlah'=>90, 'harga_beli_satuan'=>3200.00),\n\t\t\tarray('id_jenis_obat'=>69, 'id_stok_obat'=>69, 'waktu_masuk'=>'2017-06-22 16:42:00', 'jumlah'=>140, 'harga_beli_satuan'=>5600.00),\n\t\t\tarray('id_jenis_obat'=>70, 'id_stok_obat'=>70, 'waktu_masuk'=>'2017-06-28 16:44:00', 'jumlah'=>300, 'harga_beli_satuan'=>700.00),\n\t\t\tarray('id_jenis_obat'=>71, 'id_stok_obat'=>71, 'waktu_masuk'=>'2017-07-06 16:48:00', 'jumlah'=>210, 'harga_beli_satuan'=>800.00),\n\t\t\tarray('id_jenis_obat'=>72, 'id_stok_obat'=>72, 'waktu_masuk'=>'2017-07-17 16:52:00', 'jumlah'=>500, 'harga_beli_satuan'=>1200.00)\n ));\n }", "public function dias_del_mes(){\n \n $fecha= date('Y-m-d');\n return; date('t',strtotime($fecha));\n \n}", "public function views_data() {\n $data = parent::views_data();\n //dsm($data);\n $data['tincan_statement']['stored'] = array(\n 'title' => t('Stored'),\n 'help' => t('Stored date value, the date the statement was stored'),\n 'field' => array(\n 'handler' => 'tincan_lrs_handler_field_datetime',\n 'click sortable' => TRUE,\n ),\n 'sort' => array(\n 'handler' => 'tincan_lrs_handler_sort_date',\n ),\n 'filter' => array(\n 'handler' => 'tincan_lrs_handler_filter_datetime',\n ),\n 'argument' => array(\n 'handler' => 'views_handler_argument_tincanlrs_fulldate',\n ),\n );\n $data['tincan_statement']['timestamp'] = array(\n 'title' => t('Timestamp'),\n 'help' => t('Timestamp of the statement'),\n 'field' => array(\n 'handler' => 'tincan_lrs_handler_field_datetime',\n 'click sortable' => TRUE,\n ),\n 'sort' => array(\n 'handler' => 'tincan_lrs_handler_sort_date',\n ),\n 'filter' => array(\n 'handler' => 'tincan_lrs_handler_filter_datetime',\n ),\n 'argument' => array(\n 'handler' => 'views_handler_argument_tincanlrs_fulldate',\n ),\n );\n return $data;\n }", "function buscar_menor_fecha () {\n global $DB;\n $fecha = $DB->get_record('report_user_statistics', array('id' => '1'), 'date');\n return $fecha;\n}", "function oa_date_views_data_alter(&$data) {\n foreach ($data as $table => $data_table) {\n foreach ($data_table as $field => $data_field) {\n if (!empty($data_field['field']['handler']) && $data_field['field']['handler'] === 'views_handler_field_date') {\n $data[$table][$field]['field']['handler'] = 'oa_date_handler_field_date';\n }\n }\n }\n}", "function RESTData($DateTime, $Field, $Value)\n{\n\t// Lettura da database di ultimo valore memorizzato se nessuno inserisco.\n\n\t$DbRow=$GLOBALS['Db']->get_row(\"SELECT * FROM \".RESTDATA.\" WHERE (SID = {$GLOBALS['St']['SIDx']->ID} AND Field = '{$Field}') ORDER BY ID DESC LIMIT 1\");\n\tif ($DbRow == NULL) goto INSERTRECORD;\n\n\t// Controllo se timestamp record minore del tempo di memorizzazione.\n\n\tif ((MySQLToEpochTime($DateTime)-STORETIME) < MySQLToEpochTime($DbRow->DateTime))\n\t{$GLOBALS['Db']->query(\"UPDATE \".RESTDATA.\" SET Value=\".(($DbRow->Value+$Value)/2).\" WHERE ID = {$DbRow->ID}\"); return;}\n\n\t// Inserisco nuovo record in database.\n\n\tINSERTRECORD:\n\t$GLOBALS['Db']->query(\"INSERT INTO \".RESTDATA.\" (SID, DateTime, Field, Value) VALUES ({$GLOBALS['St']['SIDx']->ID}, '$DateTime', '{$Field}', '{$Value}')\");\n}", "function hoje() {\n $data_hoje = date(\"Y-m-d H:i:s\");\n return $data_hoje;\n }", "public function datumAddFromId($id){\n $sql = \"select persnr,datum from dzeitsoll where id='$id'\";\n $res = $this->db->query($sql);\n $rows = $res->fetchAll();\n $row = $rows[0];\n $datum = $row['datum'];\n $persnr = $row['persnr'];\n $sqlinsert = \"insert into dzeitsoll (persnr,datum,oe) values('$persnr','$datum','-')\";\n $this->db->query($sqlinsert);\n return $this->db->insertId();\n }", "function setDataBase($dtDataBase) {\n \n $dtDataBase = implode(\"-\", array_reverse(explode(\"/\", $dtDataBase)));\n $this->dtBaseCalculo = $dtDataBase;\n \n }", "function exibirDataBr($data){\n\t$timestamp = strtotime($data); \n\treturn date('d/m/y', $timestamp);\t\n}", "function liveAntrian()\n\t{\n\t\t$data['antrian']\t\t=\t$this->Kesehatan_M->rawQuery('\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSELECT \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpasien.nama, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tantrian.jam_datang, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tantrian.nomor_antrian, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpasien.pembayaran, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpasien.nomor_pasien \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tFROM antrian \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tINNER JOIN pasien on antrian.nomor_pasien=pasien.nomor_pasien\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE DATE(jam_datang) = DATE(CURRENT_DATE()) ORDER BY jam_datang\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t')->result();\n\t\t\t\n\t\t$data['proses_antrian']\t=\t$this->Kesehatan_M->rawQuery('\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSELECT \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tproses_antrian.nomor_pasien,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpasien.nama, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpasien.pembayaran \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tFROM proses_antrian \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tINNER JOIN pasien on proses_antrian.nomor_pasien=pasien.nomor_pasien\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t')->result();\n\t\techo json_encode($data);\n\t}", "public function getDate();", "public function getDate();", "function setData($data, $format = DATE_FORMAT_ISO)\r\n {\r\n switch($format) {\r\n case DATE_FORMAT_ISO:\r\n if (preg_match(\"/^([0-9]{4})-([0-9]{2})-([0-9]{2})[ ]([0-9]{2}):([0-9]{2}):([0-9]{2})/i\",$data,$regs)) {\r\n $this->ano = $regs[1];\r\n $this->mes = $regs[2];\r\n $this->dia = $regs[3];\r\n $this->hora = $regs[4];\r\n $this->minuto = $regs[5];\r\n $this->segundo = $regs[6];\r\n } else {\r\n $this->ano = 0;\r\n $this->mes = 1;\r\n $this->dia = 1;\r\n $this->hora = 0;\r\n $this->minuto = 0;\r\n $this->segundo = 0;\r\n }\r\n break;\r\n case DATE_FORMAT_TIMESTAMP:\r\n if (preg_match(\"/^([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})/i\",$data,$regs)) {\r\n $this->ano = $regs[1];\r\n $this->mes = $regs[2];\r\n $this->dia = $regs[3];\r\n $this->hora = $regs[4];\r\n $this->minuto = $regs[5];\r\n $this->segundo = $regs[6];\r\n } else {\r\n $this->ano = 0;\r\n $this->mes = 1;\r\n $this->dia = 1;\r\n $this->hora = 0;\r\n $this->minuto = 0;\r\n $this->segundo = 0;\r\n }\r\n break;\r\n case DATE_FORMAT_UNIXTIME:\r\n $this->setData(date(\"Y-m-d H:i:s\", intval($data)));\r\n break;\r\n }\r\n }", "function updateEtat() {\r\n\r\n\t\t$this->connection = new Connection();\r\n\t\t$conn = $this->connection->openConnection();\r\n\r\n\t\t$insert = $conn->prepare(\"UPDATE `panier` SET `etat`=1 WHERE `id_internaute`=:id_internaute AND `id_nourriture`=:id_nourriture AND `datep`=:datep\");\r\n\t\ttry {\r\n\t\t\t$result = $insert->execute(array('id_internaute' => $this->getId_internaute(),'id_nourriture' => $this->getId_nourriture(),'datep' => $this->getDate()));\r\n\t\t} catch (PDOExecption $e) {\r\n\t\t\tprint \"Error!: \" . $e->getMessage() . \"</br>\";\r\n\t\t}\r\n\t\t$this->connection->closeConnection();\r\n\t}", "public function trashedTreaty()\n {\n //dd(Treaty::query());\n return Datatables::of(Treaty::onlyTrashed()->select('id', 'judul','kode','treaty_jenis_id','published_at','status'))\n ->addColumn('treaty_jenis', function ($treaty)\n { //change over here \n $treatyjenisxsim=TreatyJenis::find($treaty->treaty_jenis_id);\n $jenis = $treatyjenisxsim->judul;\n return $jenis;\n })\n ->editColumn('published_at', function ($treaty) \n { //change over here \n return date('d M Y', strtotime($treaty->published_at) );\n })\n ->make(true);\n }", "public function onPreUpdate()\n {\n $this->fechaUltimaModificacion = new \\DateTime(\"now\");\n }" ]
[ "0.6276657", "0.6249715", "0.61055726", "0.5935053", "0.57691616", "0.575913", "0.56904656", "0.56800675", "0.56714135", "0.566514", "0.5664777", "0.566197", "0.5639315", "0.56171304", "0.55771005", "0.5529741", "0.5525097", "0.55080754", "0.55058104", "0.55013233", "0.5484041", "0.5483712", "0.54827017", "0.5479748", "0.5479226", "0.54785883", "0.54669976", "0.5452845", "0.54520816", "0.5447272", "0.5436033", "0.5402395", "0.54022557", "0.5399655", "0.5398059", "0.53931665", "0.53918713", "0.53864783", "0.5385654", "0.536915", "0.53596514", "0.53577036", "0.5356727", "0.5352674", "0.53501177", "0.53433174", "0.53431314", "0.53383523", "0.5331391", "0.532701", "0.532376", "0.5323202", "0.53231215", "0.5321197", "0.5320619", "0.5314349", "0.5308794", "0.5295455", "0.5279769", "0.5269376", "0.5267614", "0.52614665", "0.5259074", "0.52560455", "0.52539986", "0.52521026", "0.524769", "0.5245773", "0.5232003", "0.522793", "0.52265584", "0.5224513", "0.5223781", "0.5220954", "0.52168256", "0.52159864", "0.521286", "0.52031744", "0.52006847", "0.51995593", "0.51994586", "0.51985115", "0.51963884", "0.5193383", "0.51931304", "0.51926523", "0.51918274", "0.51764774", "0.5174157", "0.51720786", "0.51700383", "0.5165255", "0.516267", "0.5161038", "0.5160024", "0.51582724", "0.51582724", "0.51545155", "0.51539534", "0.5153473", "0.51519704" ]
0.0
-1
bericht weergeven dat de afspraak goed opgeslagen is
function ShowAfspraakConfirmed() { //voorzie een hyperlink om nog een afspraak te maken }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function boleta()\n\t{\n\t\t//\n\t}", "public function AggiornaPrezzi(){\n\t}", "public function masodik()\n {\n }", "public function afmelden()\n {\n return true;\n }", "public function ausgeben() {\r\n\t\techo \"Die aktuelle Geschwindigkeit beträgt \" . $this->geschwindigkeit . \": \";\r\n\t}", "public function nadar()\n {\n }", "function hitungDenda(){\n\n return 0;\n }", "public function elso()\n {\n }", "public function extra_voor_verp()\n\t{\n\t}", "final function velcom(){\n }", "public function ogs()\r\n {\r\n }", "abstract public function getPasiekimai();", "public function ispisiOsobu(){\n // echo \"$this->ime $this->prezime $this->godRdoj\";\n echo \"<br>Ime: \" . $this->getIme() . \"<br>Prezime: \" . $this->getPrezime() . \"<br>Godina rodjenja: \" . $this->getGodRodj() . \"<br>\";\n }", "public function serch()\n {\n }", "public function bernafas()\n \t{\n \t\techo 'Bernafas menggunakan hidung, '.PHP_EOL;\n \t}", "public function liberar() {}", "public function tampilDataGalang(){\n\t\t\n\t}", "function ToonFormulierAfspraak()\n{\n\n}", "public function obtenerViajesplus();", "public function hapus_toko(){\n\t}", "function toon($lijst, $mededeling=\"Geen bijzonderheden<br />\") {\n\tprint \"<b>$mededeling</b><br />\";\n\tprint \"<pre>\";\n\tprint_r($lijst);\n\tprint \"</pre>\";\n}", "function faireCours ()\n {\n // ECHAUFFEMENT\n echo \"(echauffez-vous d'abord)\";\n\n parent::faireCours();\n\n // RANGER LES SKIS\n echo \"(e)tirez-vous...\";\n }", "public function traerCualquiera()\n {\n }", "public function obtenerViajesplusAbonados();", "public function stampaDipendenti() {\n echo '<p> Nome: ' . $this->nome . '</p>';\n echo '<p> Cognome: ' . $this->cognome . '</p>';\n echo '<p> Software utilizzati: ' . $this->software . '</p>';\n }", "function\tbuche() {\n\t\tFDbg::dumpL( 0x00000100, \"AbKorr.php::AbKorrPosten::buche(): begin\") ;\n\t\t$this->_buche( 1) ;\n\t\tFDbg::dumpL( 0x00000100, \"AbKorr.php::AbKorrPosten::buche(): end\") ;\n\t}", "public function leer(){\n }", "public function leer(){\n }", "public function leer(){\n }", "public function getChapeau();", "public function uputstvo()\n {\n $this->prikaz(\"uputstvo\", []);\n }", "function scheckAusdruck()\r\n {\r\n foreach ($this->belegschaft as $schluessel=>$wert)\r\n $this->belegschaft[$schluessel]->scheckAusdruck();\r\n }", "public function valorpasaje();", "function ler($nome) {\n $x = 1;\n\t while($x < $this->bd[0][0] && !$this->str_igual($nome, $this->bd[$x][2])) {$x++;}\n if($x >= $this->bd[0][0]) {return 0;}\n //comecando a setar tudo\n $this->id = $this->bd[$x][0];\n $this->maximo = $this->bd[$x][1];\n $this->nome = $this->bd[$x][2];\n $this->categoria = $this->bd[$x][3];\n $this->tipo = $this->bd[$x][4];\n $this->atributo = $this->bd[$x][5];\n $this->specie = $this->bd[$x][6];\n $this->lv = $this->bd[$x][7];\n $this->atk = $this->bd[$x][8];\n $this->def = $this->bd[$x][9];\n $this->preco = $this->bd[$x][10];\n $this->descricao = $this->bd[$x][11];\n $this->img = '../imgs/cards/'.$this->id.'.png';\nreturn 1;\n }", "public function pasaje_abonado();", "function ogretmen_odev_getir ()\n {\n // if($odev=$this->vtb->query($sorgu))\n // {\n // $odevlist = $odev->fetchAll();\n\n // foreach ($odevlist as $o)\n // {\n // echo \"<div class='panel_akis_kutusu'>\".\"<p>\" . $o['odevadi'] . \"</p>\" . \"<p>\" . $o['dersadi'] . \"</p><p>\". $o['dtarih'] . \" \". $o['ttarih'] . \"</p></div>\" ;\n // }\n // }\n $sorgu=new sorgubul(\"select * from seviye_odevleri\",\"dersid\",\"=\",$_SESSION['dersler'],\"0,30\",\"or\");\n $sorgu=$sorgu->sorgu;\n\n if ($odev=$this->vtb->query($sorgu))\n {\n $odevlist = $odev->fetchAll();\n\n foreach ($odevlist as $o)\n {\n if ($a=$this->vtb->query(\"select count(*) from seviye_odev_teslimleri where odevid = \" . $o['soid']) and $b =$this->vtb->query(\"select count(*) from seviye_odev_teslimleri where odevid = \" . $o['soid'] . ' and okundumu = 0') )\n {\n $c = $a->fetchColumn();\n $d = $b->fetchColumn();\n $derssev=$this->vtb->prepare(\"select seviyeno,dersid from ders_seviyeler where seviyeid = ?\");\n $derssev->execute(array($o['seviye']));\n $derssev=$derssev->fetch();\n $ders=$this->vtb->prepare(\"select dersadi from dersler where dersid = ?\");\n $ders->execute(array($o['dersid']));\n $ders=$ders->fetchColumn();\n echo \"<div class='isbox' style='height:auto;overflow:hidden;'> \".\" <div class='isboxust'><p class='icerik' style='color: #048CAD; margin:5px 5px 0px 0px;'>\" . $o['odevbaslik'] . \" > \" . $ders . \" > \" . $derssev['seviyeno'] . \". Seviye</p></div>\" . \"<div class='icerik' style='position:relative;'><p >\" . $o['odevmetni'] . \"</p></div><div class='isboxalt'><p style='padding: 10px 0px 0px 100px;float:left;'>\". $c . \" kişi teslim etti,\". $d . \" kişiyi okumadınız</p><a style='margin-left:20px;' class='soruonay' href='ogretmen_ders_goruntuleme.php?dersid=\" . $derssev['dersid'] . \"&seviyeno=\" . $derssev['seviyeno'] . \"&dersadi=\" . $ders .\"'>Kontrol et</a></div></div>\" ;\n\n }\n else\n {\n echo \"<div class='isbox' style='height:auto;overflow:hidden;'> \".\" <div class='isboxust'><p class='icerik' style='color: #048CAD; margin:5px 5px 0px 0px;'>\" . $o['odevbaslik'] . \" > \" . $ders . \" > \" . $derssev['seviyeno'] . \". Seviye</p></div>\" . \"<div class='icerik' style='position:relative;'><p >\" . $o['odevmetni'] . \"</p></div><div class='isboxalt'><p>Kimse teslim etmedi</p></div></div>\" ;\n }\n }\n }\n\n }", "function formulaires_editer_feuillederoute_charger_dist() {\n\t$valeurs = array( '_texte' => '' );\n\tlire_fichier_securise(_DIR_IMG . 'feuillederoute.php',$contenu);\n\t$contenu = @unserialize($contenu);\n\tif($contenu){\n\t\t$valeurs['_texte'] = $contenu;\n\t}\n\treturn $valeurs;\n}", "function bestillingAvBrod($type, $antall, $tidspunkt){\r\n //Kunden får oversikt over alle brøene som er tilgjengelig\r\n\r\n //kunden får oversikt over hvor mange brød man kan bestillinger\r\n\r\n //Kunden velger tidspunkt nå brød skal hentes.\r\n\r\n //Informasjon sendes mot database i tabellen som man trenger.\r\n }", "public function inOriginal();", "function absender_bestimmen($absender,$db){\n$query1=\"select * from user\";\n\t$antwort1=$db->query($query1);\n\t$antwort1=array_bildung($antwort1);\n\t\n\t$i=0;\n\tforeach($absender[Absender] as $name => $inhalt){\n\tif($inhalt==0){\n\t\t$absender[Absender][$i]=\"Information an Alle !\";\n\t}\n\t\n\t\t$k=0;\n\t\tforeach($antwort1[id] as $name1 => $inhalt1){\n\t\t\tif($inhalt==$inhalt1){\n\t\t\t\t$absender[Absender][$i]=$antwort1[Name][$k].\"&nbsp;&nbsp;\".$antwort1[Vorname][$k].\"&nbsp;&nbsp;- \".$antwort1[Bemerkung][$k].\" -\";\n\t\t\t}\n\t\t$k++;\n\t\t}\n\t$i++;\n\t}\n\treturn $absender;\n}", "public function generujKod(){\n\t\t//\n\t}", "function cl_tfd_bpamagnetico() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"tfd_bpamagnetico\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "public function getBrodcastData() { \n die('Amit');\n }", "public function recap(){\n\t\techo \"----- INFO\" . $this->getNom() . \" ----- <br>\";\n\t\techo $this->getNom() . \" a \" . $this->getVie() . ' points de vie <br>';\n\t}", "public function attaquerAdversaire() {\n\n }", "function printAktivitetBoks($aktivitet)\n{\n if (eksistererAktivitet($aktivitet)) {\n $akt = hentAktivitet($aktivitet);\n $pris = $akt->Pris > 0 ? $akt->Pris . \"kr\" : \"Gratis!\";\n $dato = new Carbon\\Carbon($akt->Dato);\n $dato = $dato->diffForHumans();\n $prisFarge = $akt->Pris > 0 ? \"Pris Rod\" : \"Pris\";\n\n if ($akt->Statisk === 1)\n $dato = \"<img class='Ikoner' src='img/ikon_lock.png' alt='Statisk aktiviet'/>\";\n ?>\n <div class=\"AktivitetLitenBoks\">\n \n <a class=\"LinkBeskrivelse\" href=\"?side=aktivitet&id=<?= tryggPrint($aktivitet) ?>\">\n <img class=\"bildeBoks\" src=\"<?= tryggPrint($akt->Bilde) ?>\" onerror=\"this.src='img/default_aktivitet.png'\"/>\n \n <div class=\"bildeBoksLag\"></div>\n <div class=\"Beskrivelse\"><?= tryggPrint($akt->Beskrivelse) ?></div>\n </a>\n <div class=\"Tittel\"><b><?= tryggPrint($akt->Tittel) ?></b></div>\n <a class=\"link\" href=\"?side=bruker&id=<?= tryggPrint($akt->Bruker) ?>\">\n <div class=\"Utgiver\">\n <b><?= tryggPrint($akt->Bruker) ?></b>\n <img class=\"Ikoner\" src=\"<?= hentBrukerBildeEx($akt->Bruker) ?>\"</img>\n </div>\n </a>\n <div class=\"Dato\"><?= $dato ?></div>\n <div class=\"Likes\">\n <b><?= tryggPrint(antallStemmer($aktivitet)) ?></b>\n <img class=\"Ikoner\" src=\"img/ikon_hjerte.png\" alt=\"Antall likes\"</img>\n </div>\n \n <div class=\"<?=$prisFarge?>\"><?= $pris ?></div>\n </div>\n\n <?php\n } else {\n echo \"Fant ikke aktivtet: \" . $aktivitet;\n }\n}", "private function prehledNavstev(){\n $this->tpl = \"historie-navstev\";\n \n \t$prehled = new HlavniPrehled($this->db);\n \n $this->render = array(\n\t\t\t'navstevy' => $prehled->vypis(@$_POST), \n\t\t);\t\n }", "public function tratarDados(){\r\n\t\r\n\t\r\n }", "public function helper()\n\t{\n\t\n\t}", "public function alimentar()\n {\n }", "public function fixObject(){\n\t\t//Ex : cadre et texte d'entete\n\t}", "private function CsomagHozzaadasa()\r\n {\r\n foreach (Lap::Nevkeszlet() as $nev)\r\n {\r\n foreach (Lap::Szinkeszlet() as $szin)\r\n {\r\n $this->lapok[]=new Lap($szin,$nev);\r\n }\r\n }\r\n }", "function provjeri_oglase(){\n\t\tglobal $db;\n\t\t$oglasi = $db->query(\"SELECT * FROM jf_oglasi WHERE status=1\");\n\t\twhile($podatak = $oglasi->fetch_assoc()){\n\t\t\tif (date(\"d-m-Y\", strtotime($podatak['konkurs_end'])) < date(\"d-m-Y\")){\n\t\t\t\t$db->query(\"UPDATE jf_oglasi SET status=0 WHERE id={$podatak['id']}\");\n\t\t\t}\n\t\t}\n\t}", "public function contrato()\r\n\t{\r\n\t}", "public function moverse(){\n\t\techo \"Soy $this->nombre y me estoy moviendo a \" . $this->getVelocidad();\n\t}", "function guardarReclamo()\n\t\t{\n\t\t}", "public static function parler()\n {\n echo 'Je suis un personnage <br/>';\n }", "public function mostra(){\n }", "public function zeigeEinkaufswagen() {\n\t\t$size = sizeof ( $this->einkaufsWagen );\n\t\t$out = \"Der Einkaufswagen enthaelt: \" . $size . \" Produkte<br/>\";\n\t\tif ($size > 0) {\n// \t\t\techo \"test\";\n\t\t\t$kosten = 0.0;\n\t\t\t// Einkaufswagen durchgehen\n\t\t\tforeach ($this->einkaufsWagen as $artikel) {\n\t\t\t\t$kosten += $artikel->getPreis();\n\t\t\t\t$out .= \"Kategorie: \" . $artikel->getKategorie() . \": \" . $artikel->getNummer ()\n\t\t\t\t . \" | \" . $artikel->getMenge() . $artikel->getEinheit()\n\t\t\t\t . \" | \" . $artikel->getBezeichnung()\n\t\t\t\t . \" | Preis: \" . $artikel->getPreis()\n\t\t\t\t. \"<br/>\";\n// \t\t\t\techo \"test\";\n\t\t\t}\n\t\t\t$out .= \"Gesamtkosten: \" . $kosten . \"<br/>\";\n\t\t\tif (!($this->bezahlt))\n\t\t\t\t$out .= \"Die Produkte wurden noch nicht bezahlt<br/>\";\n\t\t\telse\n\t\t\t\t$out .= \"Die Produkte wurden bezahlt<br/>\";\n\t\t\tif (!($this->verpackt))\n\t\t\t\t$out .= \"Die Produkte wurden noch nicht verpackt<br/>\";\n\t\t\telse\n\t\t\t\t$out .= \"Die Produkte wurden verpackt<br/>\";\n\t\t\tif (!($this->verschickt))\n\t\t\t\t$out .= \"Die Produkte wurden noch nicht verschickt<br/>\";\n\t\t\telse\n\t\t\t\t$out .= \"Die Produkte wurden verschickt<br/>\";\n\t\t\t\n\t\t\t$out .= \"<br/><br/><br/>\";\n\t\t}\n\t\treturn $out;\n\t}", "public function voirsolde()\n {\n echo \"le solde du compte est de $this->solde \";\n }", "public function contarInventario(){\n\t}", "public function afficherAll()\n {\n }", "public function BestellingOverzichtView() {\r\n include_once('/var/www/filmpje.nl/backend/Stoelen.php');\r\n include_once('/var/www/filmpje.nl/backend/TotaalPrijsCalculatie.php');\r\n }", "function cl_tfd_situacaopedidotfd() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"tfd_situacaopedidotfd\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "function tous_auteurs_date_passage() {\r\n\tglobal $couleur_claire, $connect_id_auteur;\r\n\r\n\t// fixer le nombre de ligne du tableau (tranche)\r\n\t$fl = $GLOBALS['actijour']['nbl_aut'];\r\n\r\n\t// recup $vl dans URL\r\n\t$dl = intval(_request('vl'));\r\n\t$dl = ($dl + 0);\r\n\t// valeur de tranche affichꥍ\r\n\t$nba1 = $dl + 1;\r\n\r\n\t$p_st = _request('st');\r\n\tif (!$p_st) {\r\n\t\t$where_st = \"statut IN ('0minirezo','1comite','6forum')\";\r\n\t\t$p_st = 'tous';\r\n\t} else {\r\n\t\t$where_st = \"statut = \" . _q($p_st);\r\n\t}\r\n\r\n\t$q = sql_select(\"SQL_CALC_FOUND_ROWS id_auteur, statut, nom,\r\n\t\t\t\t\t\tDATE_FORMAT(en_ligne,'%d/%m/%y %H:%i') AS vu \"\r\n\t\t. \"FROM spip_auteurs \"\r\n\t\t. \"WHERE $where_st \"\r\n\t\t. \"ORDER BY en_ligne DESC,nom \"\r\n\t\t. \"LIMIT $dl,$fl\"\r\n\t);\r\n\r\n\t// recup nombre total d'entrees\r\n\t$nl = sql_select(\"FOUND_ROWS()\");\r\n\t$found = @sql_fetch($nl);\r\n\t$nb_auteurs = $found['FOUND_ROWS()'];\r\n\r\n\t$ifond = 0;\r\n\r\n\t$aff = '';\r\n\r\n\t# onglet select statut\r\n\t$lst_statut = array('tous', '0minirezo', '1comite', '6forum');\r\n\t$script = _request('exec');\r\n\r\n\t$aff .= debut_onglet();\r\n\tforeach ($lst_statut as $statut) {\r\n\t\t$aff .= onglet(_T('actijour:onglet_connect_' . $statut),\r\n\t\t\tgenerer_url_ecrire($script, 'st=' . ($statut == 'tous' ? '' : $statut)),\r\n\t\t\t$statut,\r\n\t\t\t($p_st == $statut ? $statut : ''), '');\r\n\t}\r\n\t$aff .= fin_onglet();\r\n\r\n\r\n\t# tableau\r\n\t#\r\n\t$aff .= debut_cadre_relief(\"annonce.gif\", true);\r\n\r\n\t$aff .= \"<table align='center' border='0' cellpadding='2' cellspacing='0' width='100%'>\\n\"\r\n\t\t. \"<tr><td colspan='3' class='verdana3 bold'>\" . _T('actijour:tous_date_connections')\r\n\t\t. \"</td></tr>\";\r\n\t# Tranches\r\n\t$aff .= \"<tr><td colspan='3' class='verdana3 bold'>\";\r\n\t$aff .= \"<div align='center' class='iconeoff verdana2 bold' style='clear:both;'>\\n\"\r\n\t\t. tranches_liste_art($nba1, $nb_auteurs, $fl)\r\n\t\t. \"\\n</div>\\n\";\r\n\t$aff .= \"</td></tr>\";\r\n\r\n\twhile ($row = sql_fetch($q)) {\r\n\t\t$ifond = $ifond ^ 1;\r\n\t\t$couleur = ($ifond) ? '#FFFFFF' : $couleur_claire;\r\n\r\n\t\t$aff .= \"<tr bgcolor='$couleur'>\"\r\n\t\t\t. \"<td width='5%'>\\n\"\r\n\t\t\t. bonhomme_statut($row) . \"</td>\\n\"\r\n\t\t\t. \"<td width='75%'>\"\r\n\t\t\t. \"<a class='verdana2 bold' href='\" . generer_url_ecrire(\"auteur_infos\", \"id_auteur=\" . $row['id_auteur']) . \"'>\"\r\n\t\t\t. entites_html($row['nom']) . \"</a>\\n\"\r\n\t\t\t. \"<td width='20%'>\\n\"\r\n\t\t\t. \"<div align='right' class='verdana1'>\" . $row['vu'] . \"</div>\\n\"\r\n\t\t\t. \"</td></tr>\\n\";\r\n\r\n\t}\r\n\t$aff .= \"</table>\\n\\n\";\r\n\r\n\t$aff .= fin_cadre_relief(true);\r\n\r\n\treturn $aff;\r\n}", "public function brake(){\r\n }", "public function acessarRelatorios(){\n\n }", "function SuoritaLisaysToimet(){\n /*Otetaan puuhaId piilotetustaKentasta*/\n $puuhaid = $_POST['puuha_id'];\n \n /* Hae puuhan tiedot */\n $puuha = Puuhat::EtsiPuuha($puuhaid);\n $suositus=luoSuositus($puuhaid,null);\n \n /*Tarkistetaan oliko suosituksessa virheita*/\n if(OlioOnVirheeton($suositus)){\n LisaaSuositus($suositus,$puuhaid);\n header('Location: puuhanTiedotK.php?puuhanid=' . $puuhaid . '.php');\n } else {\n $virheet = $suositus->getVirheet();\n naytaNakymaSuosituksenKirjoitusSivulle($puuha, $suositus, $virheet, \"Lisays\");\n }\n}", "public function oops () {\n }", "public function partirAuTravail(): void\n\t{\n\t}", "private function Zapis_kolize_formulare($pole, $idcka_skolizi, $iducast, $formular) { \r\n//znevalidneni vsech kolizi pro ucastnika a tento formular\r\n self::Znevalidni_kolize_ucastnika_formulare($iducast, $formular); \r\n\r\n//zapis do uc_kolize_table pro kazdou nastalou s_kolizi\r\n foreach ($idcka_skolizi as $id_skolize) { //zapisovana policka jsou v $pole\r\n //echo \"policko: \" . $pole['uc_kolize_table§' . $id_skolize . '_revidovano'];\r\n $kolize = new Projektor2_Table_UcKolizeData ($iducast, (int)$id_skolize,\r\n $pole['uc_kolize_table§' . $id_skolize . '_revidovano'],\r\n $pole['uc_kolize_table§' . $id_skolize . '_revidovano_pozn'],\r\n null, 1,\r\n null,null,null,null,null) ;\r\n // echo \"v Zapis_kolize_temp\" . var_dump ($kolize);\r\n $kolize->Zapis_jednu_kolizi(); //kdyz je v tabulce uc_kolize_table, tak prepsat, kdyz neni, tak insert\r\n }\r\n\r\n}", "function cl_habitcandidatointeresseprograma() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"habitcandidatointeresseprograma\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "function info()\n{\nglobal $client; ←\u0004\nLa programmation objet\nCHAPITRE 9 249\n//Utilisation de variables globales et d'un tableau superglobal\necho \"<h2> Bonjour $client, vous êtes sur le serveur: \",\n➥$_SERVER[\"HTTP_HOST\"],\"</h2>\"; ←\u0007\necho \"<h3>Informations en date du \",date(\"d/m/Y H:i:s\"),\"</h3>\";\necho \"<h3>Bourse de {$this–>bourse[0]} Cotations de {$this–>bourse[1]}\n➥à {$this–>bourse[2]} </h3>\"; ←\u0005\n//Informations sur les horaires d'ouverture\n$now=getdate();\n$heure= $now[\"hours\"];\n$jour= $now[\"wday\"];\necho \"<hr />\";\necho \"<h3>Heures des cotations</h3>\";\nif(($heure>=9 && $heure <=17)&& ($jour!=0 && $jour!=6))\n{ echo \"La Bourse de Paris ( \", self:: PARIS,\" ) est ouverte\n➥<br>\"; } ←\u0006\nelse\n{ echo \"La Bourse de Paris ( \", self:: PARIS,\" ) est fermée <br>\"; }", "public function accueil()\n {\n }", "public function getBanyakSoal();", "public function Zapis_vsechny_kolize_v_zaveru_formulare ($pole, $idcka_skolizi, $iducast, $formular){\r\n //zapise kolize formulare \r\n self::Zapis_kolize_formulare($pole,$idcka_skolizi, $iducast, $formular);\r\n //-----------------------------------------------------------------------------\r\n \r\n \r\n //a zjisti a zapise kolize ucastnika pro vsechny formulare \r\n $vsechny_kolize_ucastnika_pole = self::Najdi_kolize_vsechny($iducast);\r\n //echo \"<br>**Vsechny kolize_pole v Zapis_vsechny_kolize..... **\";\r\n //var_dump($vsechny_kolize_ucastnika_pole);\r\n \r\n //znevalidneni vsech kolizi pro ucastnika \r\n self::Znevalidni_kolize_ucastnika_vsechny($iducast);\r\n foreach($vsechny_kolize_ucastnika_pole as $jedna_kolize){\r\n if ($jedna_kolize->kolize_nastala) {\r\n $jedna_kolize->Zapis_jednu_kolizi();\r\n } \r\n }\r\n \r\n}", "function cl_moblevantamentoedi() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"moblevantamentoedi\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "public function getWachtOpGoedkeuring() {\n\t\t$postsByDraadId = group_by('draad_id', ForumPostsModel::instance()->find('wacht_goedkeuring = TRUE AND verwijderd = FALSE'));\n\t\t$dradenById = group_by_distinct('draad_id', ForumDradenModel::instance()->find('wacht_goedkeuring = TRUE AND verwijderd = FALSE'));\n\t\t$dradenById += ForumDradenModel::instance()->getForumDradenById(array_keys($postsByDraadId)); // laad draden bij posts\n\t\tforeach ($dradenById as $draad) { // laad posts bij draden\n\t\t\tif (array_key_exists($draad->draad_id, $postsByDraadId)) { // post is al gevonden\n\t\t\t\t$draad->setForumPosts($postsByDraadId[$draad->draad_id]);\n\t\t\t} else {\n\t\t\t\t$melding = 'Draad ' . $draad->draad_id . ' niet goedgekeurd, maar alle posts wel. Automatische actie: ';\n\t\t\t\t$draad->wacht_goedkeuring = false;\n\t\t\t\tif (count($draad->getPosts()) === 0) {\n\t\t\t\t\t$draad->verwijderd = true;\n\t\t\t\t\t$melding .= 'verwijderd (bevat geen berichten)';\n\t\t\t\t\tsetMelding($melding, 2);\n\t\t\t\t} else {\n\t\t\t\t\t$melding .= 'goedgekeurd';\n\t\t\t\t\tsetMelding($melding, 2);\n\t\t\t\t}\n\t\t\t\tForumDradenModel::instance()->update($draad);\n\t\t\t}\n\t\t}\n\t\t// check permissies\n\t\tforeach ($dradenById as $draad_id => $draad) {\n\t\t\tif (!$draad->magModereren()) {\n\t\t\t\tunset($dradenById[$draad_id]);\n\t\t\t}\n\t\t}\n\t\tif (empty($dradenById) AND ForumPostsModel::instance()->getAantalWachtOpGoedkeuring() > 0) {\n\t\t\tsetMelding('U heeft onvoldoende rechten om de berichten goed te keuren', 0);\n\t\t}\n\t\treturn $dradenById;\n\t}", "function cc_ho_vetrina($agenzia, $rif){\n\tglobal $invetrina;\n\t\n\t// $agenzia qua è il numero interno di Cometa\n\tif( isset( $invetrina[$agenzia] ) ){\t\t\n\t\t\n\t\tif ($invetrina[$agenzia]['imm'] == $rif) {\n\t\t\t// questo immobile è in vetrina\n\t\t\t$vetrina = '1';\n\t\t\tcc_import_immobili_error_log($rif.\" è in vetrina\");\n\t\t\t\n\t\t\t// vediamo se è lo stesso di quello che era già in vetrina o meno\n\t\t\t$oldrif = cc_get_rif_vetrina( substr($rif, 0, 2) );\n\t\t\tcc_import_immobili_error_log(\"oldrif: \".$oldrif);\n\t\t\t\n\t\t\t// se l'immobile attualemnte in vetrina non è questo tolgo quello attuale da vetrina\n\t\t\tif($oldrif != $rif) {\n\t\t\t\tcc_updateVetrina($oldrif); \n\t\t\t\tcc_import_immobili_error_log(\"Tolgo vetrina da \".$oldrif);\n\t\t\t}\n\t\t}else{\n\t\t\t$vetrina = '0';\n\t\t}\t\t\n\t\n\t}else{\n\t\t$vetrina = '0';\n\t}\n\t\n\treturn $vetrina;\n}", "public function bersuara()\n {\n return \"DARAWET ANJING DAWET\";\n }", "function\tunbuche() {\n\t\tFDbg::dumpL( 0x00000100, \"AbKorr.php::AbKorrPosten::unbuche(): begin\") ;\n\t\t$this->_buche( -1) ;\n\t\tFDbg::dumpL( 0x00000100, \"AbKorr.php::AbKorrPosten::unbuche(): end\") ;\n\t}", "function fliegeScout($scout_id) {\n $warp = $this->ermittleMaximumWarp($scout_id);\n $schiff_pos = @mysql_query(\"SELECT kox, koy FROM skrupel_schiffe WHERE id='$scout_id'\");\n $schiff_pos = @mysql_fetch_array($schiff_pos);\n $x_start = $schiff_pos['kox'];\n $y_start = $schiff_pos['koy'];\n $gegner_ziel = null;\n //Zuerst werden alle anderen sichtbaren Feindschiffe ueberprueft.\n if(count(eigenschaften::$sichtbare_gegner_schiffe) > 0) {\n $gegner_ziel = ki_basis::ermittleNahesZiel($scout_id, eigenschaften::$sichtbare_gegner_schiffe,\n eigenschaften::$bekannte_wurmloch_daten);\n }\n if($gegner_ziel != null && $gegner_ziel['id'] != null && $gegner_ziel['id'] != 0) {\n $this->fliegeSchiff($scout_id, $gegner_ziel['x'], $gegner_ziel['y'], $warp, $gegner_ziel['id']);\n\n return;\n }\n $gegner_ziel = null;\n //Da keine passenden Ziele gefunden wurden, wird nun ein Erkundungsziel gesetzt.\n $gegner_ziel = $this->erkunde($scout_id);\n $this->fliegeSchiff($scout_id, $gegner_ziel['x'], $gegner_ziel['y'], $warp, $gegner_ziel['id']);\n }", "public function execute()\n {\n $this->slectPrioritis();\n\n Bots::getInstance()->clearNext();\n $ants = Bots::getInstance()->getList();\n foreach ($ants as $ant){\n\n $log = !empty($ant->gol) ? implode(Tools::createCoordinate($ant->gol), ':') : 'НЕТУ';\n// Tools::logger(\"Ant:[\" . implode(Tools::createCoordinate($ant->currentCoord ), ':'). \"] = EDA:$log\");\n $coordinats = Tools::createCoordinate($ant->currentCoord);\n if (empty($ant->gol)){\n// Tools::logger(\"У этого нет цели \" . $ant->currentCoord . \" Ставим ему дефолт\");\n// $ant->gol = $ant->currentCoord;\n// $ant->gol = Tools::createNum(28, 19);\n// $ant->gol = Tools::createNum(10, 67);\n// $ant->gol = Tools::createNum(14, 19);\n }\n// $golCoord = Tools::createCoordinate($ant->gol);\n// $dir = $this->createDirection($coordinats, $golCoord);\n// $dir = Tools::createDirection($coordinats, $golCoord);\n $dirArray = Tools::createDirection($ant);\n// Tools::logger(\"GO TO ВЫБОР ИЗ : \" . implode(':',$dirArray));\n $dir = Bots::getInstance()->selectMove($ant, $dirArray);\n// Bots::getInstance()->addNext($ant, $dir);\n// Tools::logger(\"GO TO ВЫБРАЛ $dir\");\n// Tools::logger(\"GO TO Этот выбрал - > \" . print_r($coordinats,true));\n\n $nextCoordinat = Tools::nextStep($ant->coordinatColRow['col'], $ant->coordinatColRow['row'], $dir);\n $nextNum = Tools::createNum($nextCoordinat['row'], $nextCoordinat['col']);\n \n Steamer::issueOrder($coordinats['row'], $coordinats['col'], $dir);\n// break;\n }\n\n }", "function cl_rhempenhofolharubrica() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"rhempenhofolharubrica\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "public function obtener()\n {\n }", "function sobre_planeacion($minimoMes,$maximoMes,$vigencia,$unidades,$tipo_usuario)\n\t\t{\n\t\t\t//$tipo_usuario ALMACENA EL TIPO DE USUARIO( I O E), EN UN ARRAY, ESTE SE CARGA EN LA PAGINA DE PLANEACION DE PROYECTOS (upHTplaneacionProy.PHP)\t\n//echo $unidades[0].\" - $minimoMes - $maximoMes - $vigencia ********************** <br><br>\";\n\t\t?>\n\n<?\t\t\n\t\t$ban_reg=0; //PERMITE IDENTIFICAR, SI SE ENCONTRO ALMENOS, UN USUARIO SOBRE PLANEADO, DE NO SER ASI, NO SE ENVIA EL CORREO\n\t\t$pTema ='<table width=\"100%\" border=\"0\">\n\t\t <tr class=\"Estilo2\" >\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td>&nbsp;</td>\n\t\t\n\t\t\n\t\t </tr>\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td width=\"5%\" >Asunto:</td>\n\t\t\t<td >Sobre planeaci&oacute;n de participantes.</td>\n\t\t </tr>\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td>&nbsp;</td>\n\t\t \n\t\t </tr>\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td colspan=\"2\">Los siguientes participantes, tienen una dedicaci&oacute;n superior a 1 en los siguientes proyectos:</td>\n\t\t </tr>\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td>&nbsp;</td>\n\t\t\n\t\t\n\t\t </tr>\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td>&nbsp;</td>\n\t\t\n\t\t </tr>\n\t\t\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td colspan=\"2\" >\n\t\t\t\t<table width=\"100%\" border=\"1\" >\n\n\t\t\t\t <tr class=\"Estilo2\">\n\t\t\t\t\t<td colspan=\"5\"></td>\n\t\t\t\t\t<td colspan=\"'.(($maximoMes-$minimoMes)+1).'\" align=\"center\" >'.$vigencia.'</td>\n\t\t\t\t </tr>\t\t\t\t\n\t\t\t\t\n\t\t\t\t <tr class=\"Estilo2\">\n\t\t\t\t\t<td>Unidad</td>\n\t\t\t\t\t<td>Nombre</td>\n\t\t\t\t\t<td>Departamento</td>\n\t\t\t\t\t<td>Divisi&oacute;n</td>\n\t\t\t\t\t<td>Proyecto</td>';\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t$vMeses= array(\"\",\"Ene\",\"Feb\", \"Mar\", \"Abr\", \"May\", \"Jun\", \"Jul\", \"Ago\", \"Sep\", \"Oct\", \"Nov\", \"Dic\"); \n\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t{\n\n\t\t\t\t\t $pTema = $pTema.'<td>'.$vMeses[$m].' </td>';\n\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t $pTema = $pTema.' </tr>';\n\t\t\t\t$cur_tipo_usu=0; //CURSOR DEL ARRAY, DEL TIPO DE USUARIO \n\t\t\t\tforeach($unidades as $unid)\n\t\t\t\t{\n//tipo_usuario\n\t\t\t\t\tif($tipo_usuario[$cur_tipo_usu]==\"I\")\t\n\t\t\t\t\t{\n\t\t\t\t\t//CONSULTA SI EL USUARIO ESTA SOBREPLANEADO EN ALMENOS, UN MES DURANTE LA VIGENCIA\n\n\t\t\t\t\t//COSNULTA PARA LOS USUARIOS INTERNOS\n\t\t\t\t\t\t\t$sql_planea_usu=\"select top(1) SUM (hombresMes) as total_hombre_mes ,PlaneacionProyectos.unidad ,mes \n\t\t\t\t\t\t\t\t\t\t\t--,PlaneacionProyectos.id_proyecto\n\t\t\t\t\t\t\t\t\t\t\t, PlaneacionProyectos.unidad, Usuarios.nombre, \n\t\t\t\t\t\t\t\t\t\t\tUsuarios.apellidos ,Divisiones.nombre as div,Departamentos.nombre as dep\n\t\t\t\t\t\t\t\t\t\t\tfrom PlaneacionProyectos \n\t\t\t\t\t\t\t\t\t\t\t inner join Usuarios on PlaneacionProyectos.unidad=Usuarios.unidad \n\t\t\t\t\t\t\t\t\t\t\t inner join Departamentos on Departamentos.id_departamento=Usuarios.id_departamento \n\t\t\t\t\t\t\t\t\t\t\t inner join Divisiones on Divisiones.id_division=Departamentos.id_division \n\t\t\t\t\t\t\t\t\t\t\t inner join Proyectos on PlaneacionProyectos.id_proyecto=Proyectos.id_proyecto \n\t\t\t\t\t\t\t\t\t\t\twhere vigencia=\".$vigencia.\" and mes in( \"; \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t\t\t\t\t\t$sql_planea_usu=$sql_planea_usu.\" \".$m.\",\";\n\t\t//PlaneacionProyectos.id_proyecto,\t\t\t\t\n\t\t\t\t\t\t\t$sql_planea_usu=$sql_planea_usu.\"0) and PlaneacionProyectos.unidad=\".$unid.\" \n\t\t\t\t\t\t\t\t\t\t\tand esInterno='I'\n\t\t\t\t\t\t\t\t\t\t\tgroup by PlaneacionProyectos.unidad,mes,Usuarios.nombre, Usuarios.apellidos,Divisiones.nombre ,Departamentos.nombre \n\t\t\t\t\t\t\t\t\t\t\tHAVING (SUM (hombresMes))>1 \";\n\t\t\t\t\t}\n\n\n\t\t\t\t\tif($tipo_usuario[$cur_tipo_usu]==\"E\")\t\n\t\t\t\t\t{\n\t\t\t\t\t\t//COSNULTA PARA LOS USUARIOS EXTERNOS\n\t\t\t\t\t\t$sql_planea_usu=\" select top(1) SUM (hombresMes) as total_hombre_mes ,PlaneacionProyectos.unidad ,mes \n\t\t\t\t\t\t\t\t\t--,PlaneacionProyectos.id_proyecto\n\t\t\t\t\t\t\t\t\t, PlaneacionProyectos.unidad, TrabajadoresExternos.nombre, \n\t\t\t\t\t\t\t\t\tTrabajadoresExternos.apellidos,'' div, ''dep\n\t\t\t\t\t\t\t\t\tfrom PlaneacionProyectos \n\t\t\t\t\t\t\t\t\t inner join TrabajadoresExternos on PlaneacionProyectos.unidad=TrabajadoresExternos.consecutivo \n\t\t\t\t\t\t\t\t\t inner join Proyectos on PlaneacionProyectos.id_proyecto=Proyectos.id_proyecto \n\t\t\t\t\t\t\t\t\twhere vigencia=\".$vigencia.\" and mes in( \";\n\t\t\t\t\t\t\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t\t\t\t\t\t$sql_planea_usu=$sql_planea_usu.\" \".$m.\",\";\n\n\t\t\t\t\t\t\t$sql_planea_usu=$sql_planea_usu.\"0) and PlaneacionProyectos.unidad=\".$unid.\" \n\t\t\t\t\t\t\t\t\tand esInterno='E'\n\t\t\t\t\t\t\t\t\tgroup by PlaneacionProyectos.unidad,mes,TrabajadoresExternos.nombre, TrabajadoresExternos.apellidos\n\t\t\t\t\t\t\t\t\tHAVING (SUM (hombresMes))>1 \t\";\n\t\t\t\t\t}\n\n\t\t\t\t\t$cur_planea_usu=mssql_query($sql_planea_usu);\n//echo $sql_planea_usu.\" ---- <br>\".mssql_get_last_message().\" *** \".mssql_num_rows($cur_planea_usu).\"<br>\";\n\t\t\t\t\twhile($datos__planea_usu=mssql_fetch_array($cur_planea_usu))\n\t\t\t\t\t{\n\t\t\t\t\t\t$ban_reg=1; //SI ENCUENTRA ALMENOS UN USUARIO SOBREPLANEADO, ENVIA EL CORREO\n\t\t\t\t\n\t\t\t\t\t\t//CONSULTA LOS PROYECTOS, EN LOS CUALES EL PARTICIAPENTE HA SIDO PLANEADO, ESTO PARA PODER DOBUJAR LA TABLA DE FORMA CORRECTA\n\t\t\t\t\t\t$sql_uu=\" select distinct(id_proyecto),nombre,codigo,cargo_defecto from (select SUM (hombresMes) as total_hombre_mes ,unidad, mes,PlaneacionProyectos.id_proyecto ,Proyectos.nombre,Proyectos.codigo,Proyectos.cargo_defecto \n\t\t\t\t\t\t\t\t\tfrom PlaneacionProyectos\n\t\t\t\t\t\t\t\t\t\tinner join Proyectos on PlaneacionProyectos.id_proyecto=Proyectos.id_proyecto \n\t\t\t\t\t\t\t\t\t where vigencia=\".$vigencia.\" and mes in( \";\n\t\t\t\t\n\t\t\t\t\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$sql_uu=$sql_uu.\" \".$m.\",\";\n\t\t\t\t\t\t\t\t\t\t$total_planeado[$m]=0;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t$sql_uu=$sql_uu.\"0) and unidad in(\".$unid.\") and esInterno= '\".$tipo_usuario[$cur_tipo_usu].\"' group by unidad, mes , PlaneacionProyectos.id_proyecto,Proyectos.nombre,Proyectos.codigo,Proyectos.cargo_defecto ) aa \";\n// HAVING (SUM (hombresMes)\t>1\t\n\t\t\t\t\t\t$cur_uu=mssql_query($sql_uu);\n\t\t\t\t\t\t$cant_proy=mssql_num_rows($cur_uu);\n//echo \"<br><BR>---//**************--------------\".$sql_uu.\" \".mssql_get_last_message().\"<br>\".$cant_proy.\"<br>\";\n\t\t\t\t?>\n\t\t\t\t\n\t\t\t\t<?\n\t\t\t\t//echo $sql_proy_planea.\" ---- <br>\".mssql_get_last_message().\"<br><br>\";\n\t\t\t\t\n\t\t\t\t\t\t$total_planeado= array();\n\t\t\t\t\t\t$cont=0;\n\t\t\t\t\t\twhile($datos_uu=mssql_fetch_array($cur_uu))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($cont==0)\n\t\t\t\t\t\t\t{\n\t\n\t\t\t\t\t\t\t\t $pTema = $pTema.' <tr class=\"Estilo2\">\t\t\t\t\n\t\t\t\t\t\t\t\t<td rowspan=\"'.$cant_proy.' \"> '.$datos__planea_usu[\"unidad\"].' </td>\n\t\t\t\t\t\t\t\t<td rowspan=\"'.$cant_proy.' \">'.$datos__planea_usu[\"apellidos\"].' '.$datos__planea_usu[\"nombre\"].' </td>\n\t\t\t\t\t\t\t\t<td rowspan=\"'.$cant_proy.' \">'. $datos__planea_usu[\"dep\"].' </td>\n\t\t\t\t\t\t\t\t<td rowspan=\"'.$cant_proy.' \">'. $datos__planea_usu[\"div\"].' </td>';\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$pTema = $pTema.'<td class=\"Estilo2\" >['.$datos_uu[\"codigo\"].'.'.$datos_uu[\"cargo_defecto\"].'] '. $datos_uu[\"nombre\"].' </td>';\n\n\t\t\t\t\t\t\t//CONSULTA LA INFORMACION DE LO PLANEADO EN CADA MES, DE ACUERDO AL PORYECTO CONSULTADO\n\t\t\t\t\t\t\t$sql_pro=\"select SUM (hombresMes) as total_hombre_mes ,PlaneacionProyectos.id_proyecto,PlaneacionProyectos.unidad,mes\n\t\t\t\t\t\t\t\t\t\t from PlaneacionProyectos \n\t\t\t\t\t\t\t\t\t\t where vigencia=\".$vigencia.\" and PlaneacionProyectos.unidad=\".$unid.\" and id_proyecto=\".$datos_uu[\"id_proyecto\"].\" and mes in(\";\n\t\t\t\t\t\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t$sql_pro=$sql_pro.\" \".$m.\",\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$sql_pro=$sql_pro.\" 0) and esInterno= '\".$tipo_usuario[$cur_tipo_usu].\"' group by PlaneacionProyectos.id_proyecto ,PlaneacionProyectos.unidad ,mes order by (mes) \";\n// HAVING (SUM (hombresMes))>1\n\t\t\t\t\t\t\t$cur_proy_planea=mssql_query($sql_pro);\n//\t\t\t\techo $sql_pro.\" --22222222222-- <br>\".mssql_get_last_message().\"<br><br>\";\n\t\t\t\t\t\t\t$m=$minimoMes;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\twhile($datos_proy_planea=mssql_fetch_array($cur_proy_planea))\n\t\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t\tfor ($m;$m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif($datos_proy_planea[\"mes\"]==$m)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$total_planeado[$m]+=( (float) $datos_proy_planea[\"total_hombre_mes\"]);\n\n\t\t\t\t\t\t\t\t\t\t$pTema = $pTema.'<td class=\"Estilo2\" align=\"right\" >'.((float) $datos_proy_planea[\"total_hombre_mes\"] ).'</td>';\n\n\t\t\t\t\t\t\t\t\t\t$m=$datos_proy_planea[\"mes\"];\n\t\t\t\t\t\t\t\t\t\t$m++;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t\t\t\t$pTema = $pTema.'<td>&nbsp; </td>';\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$m--;\n\t\t\t\t\t\t\tfor ($m++;$m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t{\n\t\t\t\t\n\t\t\t\t\t\t\t\t $pTema = $pTema.'<td>&nbsp;</td>';\n\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\t\t$cont++;\n\t\t\t\t\t\t\tunset($datos_proy_planea);\n\n\t\t\t\t\t\t\t $pTema = $pTema.' </tr>';\n\n\t\t\t\t//\t\t\techo $datos_proy_planea[\"total_hombre_mes\"].\"<br>\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t $pTema = $pTema.' <tr class=\"Estilo2\">\n\t\t\t\t\t\t<td colspan=\"4\" >&nbsp;</td>\n\n\t\t\t\t\t\t<td>Total planeaci&oacute;n</td>';\n\n\t\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($total_planeado[$m]==0)\n\t\t\t\t\t\t\t\t$pTema = $pTema.'<td>&nbsp;</td>';\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t$pTema = $pTema.'<td>'.$total_planeado[$m].'</td>';\n\t\t\t\t\t\t}\n \n\t\t\t\t\t $pTema = $pTema.' </tr>\n\t\t\t\t\t <tr >\n\t\t\t\t\t\t<td colspan=\"17\">&nbsp;</td>\n\t\t\t\t\t </tr>\t';\n\n\t\t\t\t\t}\n\t\t\t\t\t$cur_tipo_usu++;\n\t\t\t\t}\n\t\t\t\t$pTema = $pTema.'\n\n\t\t\t\t</table>\n\t\t\t</td>\n\t\t </tr>\n\t\t<tr class=\"Estilo2\"><td colspan=\"2\" >Para consultar en detalle la planeaci&oacute;n de un participante, en un proyecto especifico, utilice el reporte Usuarios por proyecto, accediendo a el, atravez del boton Consolidados por divisi&oacute;n, ubicado en la parte superior de la pagina principal de la planeaci&oacute;n por proyectos. </td></tr>\n\t\t</table>';\n\n\t\t/*\n\t\t\t\t//consulta la unidad del director y el coordinador de proyecto\n\t\t\t\t$sql=\"SELECT id_director,id_coordinador FROM HojaDeTiempo.dbo.proyectos where id_proyecto = \" . $cualProyecto.\" \" ;\n\t\t\t\t$eCursorMsql=mssql_query($sql);\n\t\t\t\t$usu_correo= array(); //almacena la unidad de los usuarios a los que se le enviara el correo\n\t\t\t\t$i=1;\n\t\t\t\twhile($datos_dir_cor=mssql_fetch_array($eCursorMsql))\n\t\t\t\t{\n\t\t\t\t\t$usu_correo[$i]=$datos_dir_cor[\"id_coordinador\"];\n\t\t\t\t\t$i++;\n\t\t\t\t\t$usu_correo[$i]=$datos_dir_cor[\"id_director\"];\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\n\t\t\t\t//consulta la unidad porgramadores y ordenadores de gasto\t\t\t\n\t\t//select unidad from HojaDeTiempo.dbo.Programadores where id_proyecto=\".$cualProyecto.\" union\n\t\t\t\t$sql_pro_orde=\" select unidadOrdenador from GestiondeInformacionDigital.dbo.OrdenadorGasto where id_proyecto=\".$cualProyecto;\n\t\t\t\t$cur_pro_orde=mssql_query($sql_pro_orde);\n\t\t\t\twhile($datos_pro_orde=mssql_fetch_array($cur_pro_orde))\n\t\t\t\t{\n\t\t\t\t\t$usu_correo[$i]=$datos_pro_orde[\"unidad\"];\n\t\t\t\t\t$i++;\n\t\t\t\t}\t\t\t\n\t\t\n\t\t\t\t$i=0;\n\t\t\t\t//consulta el correo de los usuarios(director,cordinador,ordenadroes de G, y programadores) asociados al proyecto\n\t\t\t\t$sql_usu=\" select email from HojaDeTiempo.dbo.Usuarios where unidad in(\";\n\t\t\t\tforeach($usu_correo as $unid)\n\t\t\t\t{\n\t\t\t\t\tif($i==0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$sql_usu=$sql_usu.\" \".$unid;\t\t\n\t\t\t\t\t\t$i=1;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\t$sql_usu=$sql_usu.\" ,\".$unid;\n\t\t\t\t}\n\t\t\t\t$sql_usu=$sql_usu.\") and retirado is null\";\n\t\t\t\t$cur_usu=mssql_query($sql_usu);\t\t\t\t\n\t\t\n\t\t\t\t//se envia el correo a el director, cordinador, orenadores de gasto, y programadores del proyecto\t\n\t\t\t\twhile($eRegMsql = mssql_fetch_array($cur_usu))\n\t\t\t\t{\t\t\n\t\t\t\t $miMailUsuarioEM = $eRegMsql[email] ;\n\t\t\t\n\t\t\t\t //***EnviarMailPEAR\t\n\t\t\t\t $pPara= trim($miMailUsuarioEM) . \"@ingetec.com.co\";\n\t\t\t\n\t\t\t\t enviarCorreo($pPara, $pAsunto, $pTema, $pFirma);\n\t\t\t\n\t\t\t\t //***FIN EnviarMailPEAR\n\t\t\t\t $miMailUsuarioEM = \"\";\n\t\t\t\n\t\t\t\t}\n\t\t*/\n\t\t\tif($ban_reg==1) //SEW ENVIA EL CORREO SI EXISTE ALMENOS UN USUARIO SOBREPLANEADO\n\t\t\t{\n\t\t///////////////////////////**********************************************************PARA QUITAR\n\t\t\t $miMailUsuarioEM = 'carlosmaguirre'; //$eRegMsql[email] ;\t\n\t\t\t\t$pAsunto='Sobre planeaci&oacute;n de proyectos';\n\t\t\t //***EnviarMailPEAR\t\n\t\t\t $pPara= trim($miMailUsuarioEM) . \"@ingetec.com.co\";\t\n\t\t\t enviarCorreo($pPara, $pAsunto, $pTema, $pFirma);\t\n\t\t\t //***FIN EnviarMailPEAR\n\t\t\t $miMailUsuarioEM = \"\";\n\t\t\t}\n\t\t\n\t\t?>\n\n<?\n}", "public function BuildDailySpoil()\n {\n\n }", "public function emitirSom()\n {\n }", "function difundir() {\n\n // La funcion obtener_frase esta heredado del pariente Orador\n $frase = $this->obtener_frase();\n\n // Convirtir a mayusculos\n $frase_mayusculas = strtoupper($frase);\n\n echo $frase_mayusculas;\n\n }", "abstract public function hidupkan();", "abstract protected function faireDuSport();", "public function get_barbe(){ return $this->_barbe;}", "public function genc()\n {\n $this->genc = true;\n }", "public function tocar(){\n echo \"Tocando no volume: \" . $this->volume . \" decibéis. <br>\";\n }", "public function trasnaction(){\n\n\t}", "function cl_sau_agendaexames() {\n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"sau_agendaexames\");\n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "function __toString()\r\n {\r\n return $this->ime .\" \". $this->prezime .\" (\". $this->korisnickoIme .\")\";\r\n }", "function gesuchtes_feld($angabe,$tabelle,$gegebene_spalte,$gesuchte_spalte) {\n\t$mysqli=MyDatabase();\n\t$abfrage=\"SELECT `$gesuchte_spalte` FROM `$tabelle` WHERE `$gegebene_spalte`='$angabe'\";\n\tif ($result=$mysqli->query($abfrage)) {\n\t\twhile ($row=$result->fetch_object()) {\n\t\t\t$gesuchter_wert=$row->$gesuchte_spalte;\n\t\t\t}\n\t\t}\t\n\tif (!isset($gesuchter_wert)) {$gesuchter_wert=0;}\n\treturn $gesuchter_wert;\n}", "public function lagre() {\n\n try\n {\n $sql_tekst = \"INSERT INTO Stikkord \";\n $sql_tekst .= \"(tekst)\";\n $sql_tekst .= \"VALUES (\";\n $sql_tekst .= \"'\".$this->hentTekst().\"'\";\n $sql_tekst .= \")\";\n $setning = self::$db->prepare($sql_tekst);\n\n\n if($setning->execute()) {\n $this->settId(self::$db->lastInsertId());\n } else\n // dersom stikkordet allerede finnes, hent id til stikkordet og bruk det\n {\n $tekst=$this->hentTekst();\n $sql_tekst = \"SELECT * FROM Stikkord WHERE tekst = :tekst\";\n\n $setning = self::$db->prepare($sql_tekst);\n $setning->bindParam(':tekst',$tekst,PDO::PARAM_STR);\n $setning->execute();\n $stikkord = $setning->fetchObject('Stikkord');\n $this->settId($stikkord->hentId());\n\n }\n\n }\n catch (Exception $e) {\n print $e->getMessage() . PHP_EOL;\n }\n\n return $setning;\n\n }", "public function mostrarInfo()\n {\n // $datos.= \"Cuatrimestre\".$this->cuatrimestre;\n // return parent::mostrarInfo().\" \".$datos;\n }", "function cl_ouvidoriaatendimento() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"ouvidoriaatendimento\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }" ]
[ "0.6675179", "0.62982154", "0.6232846", "0.62009156", "0.6109235", "0.60396636", "0.60326004", "0.6024363", "0.59188527", "0.57986224", "0.5766147", "0.5739741", "0.56699", "0.5647242", "0.56114495", "0.5587469", "0.5543519", "0.5527283", "0.5526518", "0.5509625", "0.55070484", "0.5500959", "0.5472889", "0.5470602", "0.54503834", "0.5437317", "0.5436763", "0.5432255", "0.5432255", "0.5401064", "0.5375824", "0.5364329", "0.5344403", "0.5336944", "0.53301543", "0.53240526", "0.53237915", "0.5310842", "0.5289446", "0.5284227", "0.5279658", "0.52708936", "0.52664375", "0.52650476", "0.5258405", "0.5258095", "0.52420145", "0.52356094", "0.52254313", "0.522377", "0.5219256", "0.5205098", "0.52045006", "0.5202278", "0.51995313", "0.51980126", "0.5185164", "0.5171204", "0.5168202", "0.5166478", "0.51631296", "0.5161027", "0.5156033", "0.51548266", "0.5142642", "0.51420414", "0.51398706", "0.5137255", "0.51363206", "0.5136239", "0.5134379", "0.513401", "0.5120342", "0.5118756", "0.5118692", "0.511131", "0.51071984", "0.5105825", "0.509834", "0.5087366", "0.5083737", "0.5079491", "0.50772727", "0.5076473", "0.50737846", "0.5071391", "0.50707763", "0.50706697", "0.5068633", "0.5063121", "0.5062738", "0.50557077", "0.5054151", "0.5053693", "0.5053562", "0.50484526", "0.50470847", "0.50456756", "0.5040812", "0.50372994", "0.50364757" ]
0.0
-1
bericht weergeven dat de afspraak NIET goed opgeslagen is
function ShowAfspraakRefused() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function nadar()\n {\n }", "abstract public function getPasiekimai();", "public function AggiornaPrezzi(){\n\t}", "public function boleta()\n\t{\n\t\t//\n\t}", "public function masodik()\n {\n }", "public function ispisiOsobu(){\n // echo \"$this->ime $this->prezime $this->godRdoj\";\n echo \"<br>Ime: \" . $this->getIme() . \"<br>Prezime: \" . $this->getPrezime() . \"<br>Godina rodjenja: \" . $this->getGodRodj() . \"<br>\";\n }", "public function elso()\n {\n }", "function hitungDenda(){\n\n return 0;\n }", "public function extra_voor_verp()\n\t{\n\t}", "public function afmelden()\n {\n return true;\n }", "public function ausgeben() {\r\n\t\techo \"Die aktuelle Geschwindigkeit beträgt \" . $this->geschwindigkeit . \": \";\r\n\t}", "public function obtenerViajesplus();", "public function stampaDipendenti() {\n echo '<p> Nome: ' . $this->nome . '</p>';\n echo '<p> Cognome: ' . $this->cognome . '</p>';\n echo '<p> Software utilizzati: ' . $this->software . '</p>';\n }", "public function dohvati_najaktuelnije_ideje()\n {\n $ideje= $this->findAll();\n usort($ideje,function ($i1,$i2)\n {\n //proveriti je l' ovo tranzitivno, idejno jeste, samo da li sam napravio gresku\n $dat1= strtotime($i1->DatumEvaluacije); \n $dat2= strtotime($i2->DatumEvaluacije); \n $danas= strtotime(date(\"Y-m-d H:i:s\"));\n if ($dat1==$dat2)\n {\n return 0;\n }\n if ($dat1>$danas)\n {\n if ($dat2<$danas)//dat2 nije aktuelno, jer je vec proslo, a d1 jeste te ide ispred\n {\n return -1;\n }\n else//oba tek treba da se dogode aktuelnije je ono sto ce pre da se dogodi\n {\n if ($dat1<$dat2)\n {\n return -1;\n }\n else\n {\n return 1;\n }\n }\n }\n else//dat1 nije aktuelno\n {\n if ($dat2>$danas)//dat2 ide ispred\n {\n return 1;\n }\n else//nijedan nije aktuelan zato zelimo da bude ispred onaj sa vecim datumom jer je on blizi sadasnjosti\n {\n if ($dat1<$dat2)\n {\n return 1;\n }\n else \n {\n return -1;\n \n }\n }\n \n }\n });\n return $ideje;\n \n }", "public function bernafas()\n \t{\n \t\techo 'Bernafas menggunakan hidung, '.PHP_EOL;\n \t}", "function cc_ho_vetrina($agenzia, $rif){\n\tglobal $invetrina;\n\t\n\t// $agenzia qua è il numero interno di Cometa\n\tif( isset( $invetrina[$agenzia] ) ){\t\t\n\t\t\n\t\tif ($invetrina[$agenzia]['imm'] == $rif) {\n\t\t\t// questo immobile è in vetrina\n\t\t\t$vetrina = '1';\n\t\t\tcc_import_immobili_error_log($rif.\" è in vetrina\");\n\t\t\t\n\t\t\t// vediamo se è lo stesso di quello che era già in vetrina o meno\n\t\t\t$oldrif = cc_get_rif_vetrina( substr($rif, 0, 2) );\n\t\t\tcc_import_immobili_error_log(\"oldrif: \".$oldrif);\n\t\t\t\n\t\t\t// se l'immobile attualemnte in vetrina non è questo tolgo quello attuale da vetrina\n\t\t\tif($oldrif != $rif) {\n\t\t\t\tcc_updateVetrina($oldrif); \n\t\t\t\tcc_import_immobili_error_log(\"Tolgo vetrina da \".$oldrif);\n\t\t\t}\n\t\t}else{\n\t\t\t$vetrina = '0';\n\t\t}\t\t\n\t\n\t}else{\n\t\t$vetrina = '0';\n\t}\n\t\n\treturn $vetrina;\n}", "public function getBobotNilai();", "public function obtenerViajesplusAbonados();", "public function hapus_toko(){\n\t}", "function noticias_cabe(){\n \n $html=site('http://www.jornalnoticias.co.mz/');\n\t\n\tforeach($html->find('.items-row')as $elms){\n\t\t\n\t\tforeach($elms->find ('.jn-postheader') as $elms2){\n\t\t\n\t $j[]=mb_convert_encoding( $elms2->plaintext, \"HTML-ENTITIES\", \"UTF-8\");\n\t\n\t\n\t\t\n\t\t}\n\t}\n\t\n\treturn $j;\n\t\n\t}", "public function ogs()\r\n {\r\n }", "public function serch()\n {\n }", "function Uzasadnienie($dbh, $un, $ud, $up, $roszczenia, $no)\r\n\t\t\t{\r\n\t\t\t\t$uzasadnienie=\"Powodowie prowadzą działalność gospodarczą pod nazwą NETICO Spółka Cywilna M.Borodziuk, M.Pielorz, K.Rogacki. Powodowie dnia $ud zawarli z Pozwanym(ą) umowę abonencką nr $un o świadczenie usług telekomunikacyjnych.\\n Termin płatności został określony w Umowie do $up dnia danego miesiąca. \\n Za świadczone usługi w ramach prowadzonej przez siebie działalności gospodarczej Powodowie wystawili Pozwanemu(ej) następujące faktury VAT:\\n \";\r\n\t\t\t\t\r\n\t\t\t\t$n=1;\r\n\t\t\t\t$suma=0;\r\n\t\t\t\tforeach ($roszczenia as $n => $v)\r\n\t\t\t\t{\r\n\t\t\t\t\t$oznaczenie=$roszczenia[$n][\"oznaczenie\"];\r\n\t\t\t\t\t$kwota=$roszczenia[$n][\"wartosc\"];\r\n\t\t\t\t\t$pozostalo=$roszczenia[$n][\"pozostalo\"];\r\n\t\t\t\t\t$d=$n;\r\n\t\t\t\t $kwota=number_format(round($kwota,2), 2,',','');\r\n\t\t\t\t\tif ( $pozostalo>0)\r\n\t\t\t\t\t\t{ \r\n\t\t\t\t\t\t\t$suma+=$pozostalo;\r\n\t\t\t\t\t\t\t$pozostalo=number_format($pozostalo, 2,',','');\r\n\t\t\t\t\t\t\t$uzasadnienie.=\"$oznaczenie na kwotę $kwota zł, pozostało do zapłaty $pozostalo zł. \\n\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t$uzasadnienie.=\"$oznaczenie na kwotę $kwota zł; \\n\";\r\n\t\t\t\t\t\t$suma+=$kwota;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t/*\t\r\n\t\t\t\tif (!empty($no))\r\n\t\t\t\t{\r\n\t\t\t\t\t$uzasadnienie.=\"W zwiazku z nie regulowaniem przez Pozwanego(ą) płatności wynikających z warunków Umowy Powodowie rozwiązali Umowę i wystawili Pozwanemu(ej) następujące noty obciążaniowe: \";\r\n\t\t\t\t\t$n=1;\r\n\t\t\t\t\tforeach ($no as $n => $v)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$oznaczenie=$no[$n][\"oznaczenie\"];\r\n\t\t\t\t\t\t$kwota=$no[$n][\"wartosc\"];\r\n\t\t\t\t\t\t$d=$n;\r\n\t\t\t\t\t\t$kwota=number_format($kwota,2), 2,',','');\r\n\t\t\t\t\t\t$uzasadnienie.=\"$oznaczenie na kwotę $kwota zł; \\n\";\r\n\t\t\t\t\t\t$suma+=$kwota;\r\n\t\t\t\t\t}\r\n\t\t\t\t}*/\r\n\t\t\t\t\r\n\t\t\t\t$suma=number_format(round($suma,2), 2,',','');\r\n\t\t\t\t$uzasadnienie.=\"Razem $suma zł.\\n\";\r\n\t\t\t\t$uzasadnienie.=\"Pomimo wezwań do zapłaty Pozwany(a) nie uregulował należności.\";\r\n\t\t\t\treturn($uzasadnienie);\r\n\t\t\t}", "function toon($lijst, $mededeling=\"Geen bijzonderheden<br />\") {\n\tprint \"<b>$mededeling</b><br />\";\n\tprint \"<pre>\";\n\tprint_r($lijst);\n\tprint \"</pre>\";\n}", "public function uputstvo()\n {\n $this->prikaz(\"uputstvo\", []);\n }", "public function htmlValue() {\n \n //Tableau Entête\n //- objet de la table_entete \n $arra_module = pnModGetInfo(pnModGetIDFromName($_GET['name']));\n //Si module visuclient affichage site ou groupe(si plusieurs site)\n if ($this->bool_title) {\n if ($arra_module['displayname'] == _DISPLAY_MOD_VISUCLIENT) {\n if ($_SESSION['SITE_CLIENT'] != \"TOUS\") {\n $affichage = str_replace(\"_\", \" \", $_SESSION['SITE_CLIENT']);\n } else {\n $affichage = _ALL_SITE . \"\" . str_replace(\"_\", \" \", $_SESSION['GROUPE_CLIENT']);\n } //Afichage sans underscore mais avec espace\n $obj_font_title0 = new font($arra_module['displayname'] . ' ' . $affichage, true);\n $obj_font_title0->setStyle('font-size:27px');\n } else {\n if ($arra_module['displayname']!=\"\"){\n $obj_font_title0 = new font($arra_module['displayname'] . ' V ' . $arra_module['version'], true);\n $obj_font_title0->setStyle('font-size:27px');\n }\n }\n } else {\n $obj_font_title0 = new font($this->stri_title, true);\n $obj_font_title0->setStyle('font-size:27px');\n }\n\n //LOGO SAVOYELINE\n if ($_SERVER['SERVER_ADDR'] == '10.10.100.98') {\n $obj_img_Savoye = new img(\"images/MaJ_graphique/logo_a_sis_test.gif\");\n $obj_img_Savoye->setStyle(\"cursor:pointer;padding:2px;\");\n $obj_img_Savoye->setBorder(\"0\");\n $obj_img_Savoye->setHeight(\"60px\");\n $obj_img_Savoye->setWidth(\"150px\"); \n $obj_img_Savoye->setTitle(\"Savoyeline\");\n $obj_img_Savoye->setAlt(\"Savoyeline\");\n $obj_a_Savoye = new a(\"http://\" . $_SERVER['SERVER_NAME'] . \"/\", $obj_img_Savoye->htmlValue(), true);\n $obj_a_Savoye->setTarget(\"http://\" . $_SERVER['SERVER_NAME'] . \"/\");\n } else {\n $obj_img_Savoye = new img(\"images/MaJ_graphique/logo_a_sis_gf.png\");\n $obj_img_Savoye->setStyle(\"cursor:pointer;padding:2px;\");\n $obj_img_Savoye->setBorder(\"0\");\n $obj_img_Savoye->setHeight(\"60px\");\n $obj_img_Savoye->setWidth(\"150px\");\n $obj_img_Savoye->setTitle(\"Savoyeline\");\n $obj_img_Savoye->setAlt(\"Savoyeline\");\n $obj_a_Savoye = new a(\"/index.php\", $obj_img_Savoye->htmlValue(), true);\n }\n\n //LOGO ENTREPRISE\n $obj_img_logo = new img($this->CreateLogo());\n //$obj_img_logo->setStyle(\"cursor:pointer;padding:2px;padding-right:10px;\");\n $obj_img_logo->setStyle(\"padding:2px;padding-right:10px;\");\n $obj_img_logo->setBorder(\"0\");\n $obj_img_logo->setTitle($this->getRaisonSociale());\n $obj_img_logo->setAlt($this->getRaisonSociale());\n $obj_img_logo->setHeight(\"60px\");\n $obj_img_logo->setWidth(\"165px\");\n //$obj_a_logo = new a(\"http://\" . $_SERVER['SERVER_NAME'] . \"/\", $obj_img_logo->htmlValue(), true);\n //$obj_a_logo->setTarget(\"http://\" . $_SERVER['SERVER_NAME'] . \"/\");\n\n //Création table \n $obj_table_entete = new table();\n $obj_tr = $obj_table_entete->addTr();\n \n //Bascule\n $obj_a_Savoye=($this->bool_logo_savoye)?$obj_a_Savoye:null;\n\n $obj_td = $obj_tr->addTd($obj_a_Savoye);\n $obj_td->setWidth(\"150px\");\n $obj_td->setRowspan(2);\n $obj_td->setAlign('left');\n\n $obj_td = $obj_tr->addTd($obj_font_title0);\n $obj_td->setAlign('center');\n $obj_td->setStyle('height : 64px;');\n \n //Bascule\n $obj_img_logo=($this->bool_logo_firm)?$obj_img_logo:null;\n\n $obj_td = $obj_tr->addTd($obj_img_logo);\n $obj_td->setWidth(\"150px\");\n $obj_td->setRowspan(2);\n $obj_td->setAlign('right');\n\n if($this->bool_lang)\n {\n $obj_td = $obj_tr->addTd($this->displayLang());\n $obj_td->setWidth(\"180px\");\n $obj_td->setRowspan(2);\n $obj_td->setAlign('right');\n }\n else\n {$obj_td = $obj_tr->addTd(\"\");}\n\n \n $obj_table_entete->setClass(\"titre0\");\n $obj_table_entete->setBorder(\"0\");\n $obj_table_entete->setWidth(\"100%\");\n\n return $obj_table_entete->htmlValue();\n }", "function ler($nome) {\n $x = 1;\n\t while($x < $this->bd[0][0] && !$this->str_igual($nome, $this->bd[$x][2])) {$x++;}\n if($x >= $this->bd[0][0]) {return 0;}\n //comecando a setar tudo\n $this->id = $this->bd[$x][0];\n $this->maximo = $this->bd[$x][1];\n $this->nome = $this->bd[$x][2];\n $this->categoria = $this->bd[$x][3];\n $this->tipo = $this->bd[$x][4];\n $this->atributo = $this->bd[$x][5];\n $this->specie = $this->bd[$x][6];\n $this->lv = $this->bd[$x][7];\n $this->atk = $this->bd[$x][8];\n $this->def = $this->bd[$x][9];\n $this->preco = $this->bd[$x][10];\n $this->descricao = $this->bd[$x][11];\n $this->img = '../imgs/cards/'.$this->id.'.png';\nreturn 1;\n }", "public function tampilDataGalang(){\n\t\t\n\t}", "public function valorpasaje();", "function testNudels() {\n\t\tlibxml_use_internal_errors(true);\n\n\t\t$parser = new ChefkochDOMParser();\n\t\t$result = $parser->analyzeUrl('https://www.chefkoch.de/rezepte/1112191217260468/Nudelteig.html');\n\n\t\tself::assertContains('https://static.chefkoch-cdn.de/ck.de/rezepte/111/111219/268178-960x720-nudelteig.jpg', $result['images']);\n\t\tself::assertContains('https://static.chefkoch-cdn.de/ck.de/rezepte/111/111219/279051-960x720-nudelteig.jpg', $result['images']);\n\t\tself::assertContains('https://static.chefkoch-cdn.de/ck.de/rezepte/111/111219/238889-960x720-nudelteig.jpg', $result['images']);\n\n\t\t$ingredients = [\n\t\t\t[\"amount\" => \"4\", \"label\" => \"Eigelb\"],\n\t\t\t[\"amount\" => \"1\", \"label\" => \"Ei(er)\"],\n\t\t\t[\"amount\" => \"2 EL\", \"label\" => \"Olivenöl\"],\n\t\t\t[\"amount\" => \"\", \"label\" => \"Salz\"],\n\t\t\t[\"amount\" => \"400 g\", \"label\" => \"Mehl, ca.\"]\n\t\t];\n\n\t\tself::assertEquals('Nudelteig', $result['title']);\n\t\tself::assertEquals($ingredients, $result['ingredients']);\n\n\t\tself::assertContains('Für einen Nudelteig rechnet man pro Person ein Eigelb', $result['description']);\n\t\tself::assertContains('Den Teig zur Weiterarbeitung nun auf eine bemehlte Arbeitsfläche geben und den Teigball ', $result['description']);\n\t\tlibxml_clear_errors();\n\t}", "public function traerCualquiera()\n {\n }", "public function getBanyakSoal();", "public function baseSlajderi()\n {\n \n $this->linija = Slajderi::model()->findAllByAttributes(array('jezik'=>Yii::app()->session[\"lang\"]),array('order'=>'id'));\n $this->nalovSlajderi = $this->linija[0] -> naslov;\n \n \n }", "public static function dodajArtikelVKosarico() {\n $id = $_SESSION[\"uporabnik_id\"];\n $uporabnik = UporabnikiDB::get($id);\n\n $id_artikla = filter_input(INPUT_POST, \"id\", FILTER_SANITIZE_SPECIAL_CHARS);\n $status = \"kosarica\";\n\n // ce narocilo ze obstaja mu samo povecamo kolicino \n // drugace narocilo ustvarimo\n $narocilo = NarocilaDB::getByUporabnikId($id, $status);\n\n if (!$narocilo) {\n\n $id_narocila = NarocilaDB::insert($id, $status);\n PodrobnostiNarocilaDB::insert($id_artikla, 1, $id_narocila);\n\n } else {\n\n $podrobnost_narocila = PodrobnostiNarocilaDB::getByNarociloAndArtikel($narocilo[\"id\"], $id_artikla);\n\n if (!$podrobnost_narocila) {\n PodrobnostiNarocilaDB::insert($id_artikla, 1, $narocilo[\"id\"]);\n } else {\n PodrobnostiNarocilaDB::edit($id_artikla, $podrobnost_narocila[\"kolicina\"] + 1, $narocilo[\"id\"]); \n } \n }\n\n echo ViewHelper::redirect(BASE_URL);\n\n }", "final function velcom(){\n }", "public function waktu_nilai(){\n\t\t$t_waktu = \"t_waktu_nilai\";\n\t\t$data['waktu'] = $this->m_aka->get_all($t_waktu);\n\t\t$data['content'] = \"mahasiswa/waktu_nilai\";\n\t\t$this->load->view(\"content\", $data);\n\t}", "function _NDL()\r\n\t{\r\n\r\n\t}", "public function voirsolde()\n {\n echo \"le solde du compte est de $this->solde \";\n }", "public function bersuara()\n {\n return \"DARAWET ANJING DAWET\";\n }", "function SuoritaLisaysToimet(){\n /*Otetaan puuhaId piilotetustaKentasta*/\n $puuhaid = $_POST['puuha_id'];\n \n /* Hae puuhan tiedot */\n $puuha = Puuhat::EtsiPuuha($puuhaid);\n $suositus=luoSuositus($puuhaid,null);\n \n /*Tarkistetaan oliko suosituksessa virheita*/\n if(OlioOnVirheeton($suositus)){\n LisaaSuositus($suositus,$puuhaid);\n header('Location: puuhanTiedotK.php?puuhanid=' . $puuhaid . '.php');\n } else {\n $virheet = $suositus->getVirheet();\n naytaNakymaSuosituksenKirjoitusSivulle($puuha, $suositus, $virheet, \"Lisays\");\n }\n}", "public function zeigeEinkaufswagen() {\n\t\t$size = sizeof ( $this->einkaufsWagen );\n\t\t$out = \"Der Einkaufswagen enthaelt: \" . $size . \" Produkte<br/>\";\n\t\tif ($size > 0) {\n// \t\t\techo \"test\";\n\t\t\t$kosten = 0.0;\n\t\t\t// Einkaufswagen durchgehen\n\t\t\tforeach ($this->einkaufsWagen as $artikel) {\n\t\t\t\t$kosten += $artikel->getPreis();\n\t\t\t\t$out .= \"Kategorie: \" . $artikel->getKategorie() . \": \" . $artikel->getNummer ()\n\t\t\t\t . \" | \" . $artikel->getMenge() . $artikel->getEinheit()\n\t\t\t\t . \" | \" . $artikel->getBezeichnung()\n\t\t\t\t . \" | Preis: \" . $artikel->getPreis()\n\t\t\t\t. \"<br/>\";\n// \t\t\t\techo \"test\";\n\t\t\t}\n\t\t\t$out .= \"Gesamtkosten: \" . $kosten . \"<br/>\";\n\t\t\tif (!($this->bezahlt))\n\t\t\t\t$out .= \"Die Produkte wurden noch nicht bezahlt<br/>\";\n\t\t\telse\n\t\t\t\t$out .= \"Die Produkte wurden bezahlt<br/>\";\n\t\t\tif (!($this->verpackt))\n\t\t\t\t$out .= \"Die Produkte wurden noch nicht verpackt<br/>\";\n\t\t\telse\n\t\t\t\t$out .= \"Die Produkte wurden verpackt<br/>\";\n\t\t\tif (!($this->verschickt))\n\t\t\t\t$out .= \"Die Produkte wurden noch nicht verschickt<br/>\";\n\t\t\telse\n\t\t\t\t$out .= \"Die Produkte wurden verschickt<br/>\";\n\t\t\t\n\t\t\t$out .= \"<br/><br/><br/>\";\n\t\t}\n\t\treturn $out;\n\t}", "public function getNota(){\n return $this->nota;\n }", "function ogretmen_odev_getir ()\n {\n // if($odev=$this->vtb->query($sorgu))\n // {\n // $odevlist = $odev->fetchAll();\n\n // foreach ($odevlist as $o)\n // {\n // echo \"<div class='panel_akis_kutusu'>\".\"<p>\" . $o['odevadi'] . \"</p>\" . \"<p>\" . $o['dersadi'] . \"</p><p>\". $o['dtarih'] . \" \". $o['ttarih'] . \"</p></div>\" ;\n // }\n // }\n $sorgu=new sorgubul(\"select * from seviye_odevleri\",\"dersid\",\"=\",$_SESSION['dersler'],\"0,30\",\"or\");\n $sorgu=$sorgu->sorgu;\n\n if ($odev=$this->vtb->query($sorgu))\n {\n $odevlist = $odev->fetchAll();\n\n foreach ($odevlist as $o)\n {\n if ($a=$this->vtb->query(\"select count(*) from seviye_odev_teslimleri where odevid = \" . $o['soid']) and $b =$this->vtb->query(\"select count(*) from seviye_odev_teslimleri where odevid = \" . $o['soid'] . ' and okundumu = 0') )\n {\n $c = $a->fetchColumn();\n $d = $b->fetchColumn();\n $derssev=$this->vtb->prepare(\"select seviyeno,dersid from ders_seviyeler where seviyeid = ?\");\n $derssev->execute(array($o['seviye']));\n $derssev=$derssev->fetch();\n $ders=$this->vtb->prepare(\"select dersadi from dersler where dersid = ?\");\n $ders->execute(array($o['dersid']));\n $ders=$ders->fetchColumn();\n echo \"<div class='isbox' style='height:auto;overflow:hidden;'> \".\" <div class='isboxust'><p class='icerik' style='color: #048CAD; margin:5px 5px 0px 0px;'>\" . $o['odevbaslik'] . \" > \" . $ders . \" > \" . $derssev['seviyeno'] . \". Seviye</p></div>\" . \"<div class='icerik' style='position:relative;'><p >\" . $o['odevmetni'] . \"</p></div><div class='isboxalt'><p style='padding: 10px 0px 0px 100px;float:left;'>\". $c . \" kişi teslim etti,\". $d . \" kişiyi okumadınız</p><a style='margin-left:20px;' class='soruonay' href='ogretmen_ders_goruntuleme.php?dersid=\" . $derssev['dersid'] . \"&seviyeno=\" . $derssev['seviyeno'] . \"&dersadi=\" . $ders .\"'>Kontrol et</a></div></div>\" ;\n\n }\n else\n {\n echo \"<div class='isbox' style='height:auto;overflow:hidden;'> \".\" <div class='isboxust'><p class='icerik' style='color: #048CAD; margin:5px 5px 0px 0px;'>\" . $o['odevbaslik'] . \" > \" . $ders . \" > \" . $derssev['seviyeno'] . \". Seviye</p></div>\" . \"<div class='icerik' style='position:relative;'><p >\" . $o['odevmetni'] . \"</p></div><div class='isboxalt'><p>Kimse teslim etmedi</p></div></div>\" ;\n }\n }\n }\n\n }", "function lancar_notas_aluno($id_federado){\n //pegar movimentos da faixa candidata\n $dados['aluno']= $this->coordenador->get_aluno_faixa($id_federado);\n \n \n $id_faixa = $dados['aluno']['0']['ordem']+1;\n \n $dados['movimentos'] = $this->coordenador->movimentos($id_faixa);\n $dados['ultimo_evento'] = $this->coordenador->get_ultimo_evento($id_federado);\n \n// $this->funcoes->imprimir($dados['movimentos']);\n $this->load->view('header');\n $this->load->view('/coordenador/lancar_notas_aluno',$dados);\n $this->load->view('footer');\n \n //preparar o prontuário com notas do aluno\n //inclui-lo automáticamente no evento de graduação\n \n }", "function konjugacija($ige) {\r\n $sug = ('(b|c|d|f|g|h|k|m|p|t|v)');\r\n $sugl = ('(b|c|d|f|g|h|j|k|l|m|n|p|r|t|v)'); \r\n $av1 = '';\r\n $av2 = '';\r\n $h1 = harmony1($ige);\r\n $h2 = ($h1 === 'o') ? 'u' : 'ü';\r\n $h3 = ($h1 === 'o') ? 'o' : 'e';\r\n $ai = ($h1 === 'o') ? 'a' : 'i';\r\n $aai = ($h1 === 'o') ? 'á' : 'i';\r\n $ae = a_e($h1);\r\n $aaee = aa_ee($h1);\r\n $ik = check_ik($ige);\r\n $it = check_it($ige);\r\n $ige1 = filter_ige_past1($ige,$h1);\r\n $ige2 = filter_ige_past2($ige, $h1); \r\n $ige3 = filter_ige($ige);\r\n $te = te($ige3,$h1);\r\n $duplo1 = check_duplo1($ige, $h1);\r\n $duplo2 = check_duplo2($ige);\r\n $z = check_z($ige);\r\n $z2 = check_z2($ige, $h1);\r\n $inf = inf($ige, $ae);\r\n $cond = str_replace(substr($inf,-1),'',$inf);\r\n $imp = imperativ($ige);\r\n $imp2 = imperativ2($imp);\r\n \r\n if ($it === 1) {\r\n $av1 = $h1;\r\n $av2 = $ae;\r\n }\r\n if ((preg_match($sugl, substr($ige,-2,1))) && (preg_match($sug, substr($ige,-2,2)))) {\r\n $av1 = $h1;\r\n $av2 = $ae;\r\n }\r\n echo \"<h2>Osnovni oblik: \" . \"<strong>\" . $ige . \r\n \"</strong></h2>\" . \"<br>\" . \"<h3>Infinitiv: $inf</h3><br>\";\r\n \r\n echo \"<table id=\\\"sad\\\">\" .\r\n \"<tr><td>én</td><td>\" . $ige3 . $z . $h1 . \"k\" . \"</td>\" .\r\n \"<td>\" . $ige3 . $z . $h1 . \"m</td></tr>\" .\r\n \"<tr><td>te</td><td>\" . $ige3 . $z . $av2 . $te . \"</td>\"\r\n . \"<td>\" . $ige3 . $z . $h1 . \"d</td></tr>\" .\r\n \"<tr><td>Ön,ő</td><td>\" . $ige3 . $z . $ik . \"</td>\" .\r\n \"<td>\" . $ige3 . $duplo1 . $z2 . $ai . \"</td></tr>\" .\r\n \"<tr><td>mi</td><td>\" . $ige3 . $z . $h2 . \"nk</td>\" .\r\n \"<td>\" . $ige3 . $duplo2 . $h2 . \"k</td></tr>\"\r\n . \"<tr><td>ti</td><td>\" . $ige3 . $z . $av1 . \"t\" . $h1 . \"k</td>\" .\r\n \"<td>\" . $ige3 . $duplo1 . $z2 . $aai . \"t\" . $h3 . \"k</td></tr>\" . \r\n \"<tr><td>ők,Önök</td>\" . \"<td>\" . $ige3 . $z . $av2 . \"n\" . $ae . \"k</td>\" .\r\n \"<td>\" . $ige3 . $duplo1 . $z2 . $aai . \"k</td></tr>\" .\r\n \"</table>\";\r\n \r\n echo \"<table id=\\\"pro\\\">\" . \r\n \"<tr><td>én</td><td>\" . $ige1 . $ae . \"m\" . \"</td>\" . \r\n \"<td>\" . $ige1 . $ae . \"m</td></tr>\" .\r\n \"<tr><td>te</td><td>\" . $ige1. $aaee . \"l</td>\" .\r\n \"<td>\" .$ige1 . $ae . \"d</td></tr>\" . \r\n \"<tr><td>Ön,ő</td><td>\" . $ige2 . \"</td>\" . \r\n \"<td>\" . $ige1 . $ae . \"</td></tr>\" .\r\n \"<tr><td>mi</td><td>\" . $ige1 . $h2 . \"nk</td>\" .\r\n \"<td>\" . $ige1 . $h2 . \"k</td></tr>\" . \r\n \"<tr><td>ti</td><td>\" . $ige1 . $ae . \"t\" . $h3 . \"k</td><td>\"\r\n . $ige1 . $aaee . \"t\" . $h3 . \"k</td></tr>\" . \r\n \"<tr><td>ők,Önök</td><td>\" . $ige1 . $ae . \"k</td><td>\" \r\n . $ige1 . $aaee . \"k</td></tr></table>\";\r\n \r\n echo \"<table id=\\\"kond\\\"><tr><td>én</td><td>\" . $cond . \"ék\" . \r\n \"</td><td>\" . $cond . $aaee . \"m</td></tr>\" .\r\n \"<tr><td>te</td><td>\" . $cond . $aaee . \"l</td><td>\" .\r\n $cond . $aaee . \"d</td></tr><tr><td>Ön,ő</td><td>\" .\r\n $cond . $ae . \"</td><td>\" . $cond . $aaee . \r\n \"</td></tr><tr><td>mi</td><td>\" . $cond . $aaee . \r\n \"nk</td><td>\" . $cond . $aaee . \"nk</td></tr><tr><td>\"\r\n . \"ti</td><td>\" . $cond . $aaee . \"t\" . $h3 . \"k</td><td>\"\r\n . $cond . $aaee . \"t\" . $h3 . \"k</td></tr>\" . \r\n \"<tr><td>ők,Önök</td><td>\" . $cond . $aaee . \"n\" . $ae . \r\n \"k</td><td>\" . $cond . $aaee . \"k</td></tr></table>\";\r\n \r\n echo \"<table id=\\\"imp\\\"><tr><td>én</td><td>\" . $imp . $ae . \r\n \"k</td><td>\" . $imp . $ae . \"m</td></tr>\" .\r\n \"<tr><td>te</td><td>\" . $imp . \"(\" . $aaee . \"l)</td><td>\" .\r\n $imp2 . \"d</td></tr><tr><td>Ön,ő</td><td>\" .\r\n $imp . $h1 . \"n</td><td>\" . $imp . $ae . \r\n \"</td></tr><tr><td>mi</td><td>\" . $imp . $h2 . \r\n \"nk</td><td>\" . $imp . $h2 . \"k</td></tr><tr><td>\"\r\n . \"ti</td><td>\" . $imp . $ae . \"t\" . $h3 . \"k</td><td>\"\r\n . $imp . $aaee . \"t\" . $h3 . \"k</td></tr>\" . \r\n \"<tr><td>ők,Önök</td><td>\" . $imp . $ae . \"n\" . $ae . \r\n \"k</td><td>\" . $imp . $aaee . \"k</td></tr></table>\";\r\n }", "function info()\n{\nglobal $client; ←\u0004\nLa programmation objet\nCHAPITRE 9 249\n//Utilisation de variables globales et d'un tableau superglobal\necho \"<h2> Bonjour $client, vous êtes sur le serveur: \",\n➥$_SERVER[\"HTTP_HOST\"],\"</h2>\"; ←\u0007\necho \"<h3>Informations en date du \",date(\"d/m/Y H:i:s\"),\"</h3>\";\necho \"<h3>Bourse de {$this–>bourse[0]} Cotations de {$this–>bourse[1]}\n➥à {$this–>bourse[2]} </h3>\"; ←\u0005\n//Informations sur les horaires d'ouverture\n$now=getdate();\n$heure= $now[\"hours\"];\n$jour= $now[\"wday\"];\necho \"<hr />\";\necho \"<h3>Heures des cotations</h3>\";\nif(($heure>=9 && $heure <=17)&& ($jour!=0 && $jour!=6))\n{ echo \"La Bourse de Paris ( \", self:: PARIS,\" ) est ouverte\n➥<br>\"; } ←\u0006\nelse\n{ echo \"La Bourse de Paris ( \", self:: PARIS,\" ) est fermée <br>\"; }", "function ToonFormulierAfspraak()\n{\n\n}", "public function abono();", "public function contarInventario(){\n\t}", "private function announceZadachki()\n {\n foreach ($this->zadachki as $zadachka) {\n echo $zadachka;\n }\n }", "public function Zapis_vsechny_kolize_v_zaveru_formulare ($pole, $idcka_skolizi, $iducast, $formular){\r\n //zapise kolize formulare \r\n self::Zapis_kolize_formulare($pole,$idcka_skolizi, $iducast, $formular);\r\n //-----------------------------------------------------------------------------\r\n \r\n \r\n //a zjisti a zapise kolize ucastnika pro vsechny formulare \r\n $vsechny_kolize_ucastnika_pole = self::Najdi_kolize_vsechny($iducast);\r\n //echo \"<br>**Vsechny kolize_pole v Zapis_vsechny_kolize..... **\";\r\n //var_dump($vsechny_kolize_ucastnika_pole);\r\n \r\n //znevalidneni vsech kolizi pro ucastnika \r\n self::Znevalidni_kolize_ucastnika_vsechny($iducast);\r\n foreach($vsechny_kolize_ucastnika_pole as $jedna_kolize){\r\n if ($jedna_kolize->kolize_nastala) {\r\n $jedna_kolize->Zapis_jednu_kolizi();\r\n } \r\n }\r\n \r\n}", "function formulaires_editer_feuillederoute_charger_dist() {\n\t$valeurs = array( '_texte' => '' );\n\tlire_fichier_securise(_DIR_IMG . 'feuillederoute.php',$contenu);\n\t$contenu = @unserialize($contenu);\n\tif($contenu){\n\t\t$valeurs['_texte'] = $contenu;\n\t}\n\treturn $valeurs;\n}", "function ooffice_write_etablissement( $record ) {\r\n // initial string;\r\n\t\tglobal $odt;\r\n\t\tif ($record){\r\n\t\t\t$id = trim( $record->id );\r\n\t\t\t$num_etablissement = trim( $record->num_etablissement);\r\n\t\t\t$nom_etablissement = recode_utf8_vers_latin1(trim( $record->nom_etablissement));\r\n\t\t\t$adresse_etablissement = recode_utf8_vers_latin1(trim( $record->adresse_etablissement));\r\n\t\t\t$logo=$record->logo_etablissement;\r\n\t\t\t\r\n\t\t\t// $odt->SetFont('Arial','I',10);\r\n\t\t\t// $texte=get_string('etablissement','referentiel').' <b>'.$nom_etablissement.'</b><br />'.get_string('num_etablissement','referentiel').' : <i>'.$num_etablissement.'</i> <br />'.$adresse_etablissement;\r\n\t\t\t$texte='<b>'.$nom_etablissement.'</b><br />'.get_string('num_etablissement','referentiel').' : <i>'.$num_etablissement.'</i> <br />'.$adresse_etablissement;\r\n\t\t\t$texte=recode_utf8_vers_latin1($texte);\r\n\t\t\t$odt->WriteParagraphe(0,$texte);\r\n\t\t\treturn true;\r\n }\r\n\t\treturn false;\r\n}", "function tous_auteurs_date_passage() {\r\n\tglobal $couleur_claire, $connect_id_auteur;\r\n\r\n\t// fixer le nombre de ligne du tableau (tranche)\r\n\t$fl = $GLOBALS['actijour']['nbl_aut'];\r\n\r\n\t// recup $vl dans URL\r\n\t$dl = intval(_request('vl'));\r\n\t$dl = ($dl + 0);\r\n\t// valeur de tranche affichꥍ\r\n\t$nba1 = $dl + 1;\r\n\r\n\t$p_st = _request('st');\r\n\tif (!$p_st) {\r\n\t\t$where_st = \"statut IN ('0minirezo','1comite','6forum')\";\r\n\t\t$p_st = 'tous';\r\n\t} else {\r\n\t\t$where_st = \"statut = \" . _q($p_st);\r\n\t}\r\n\r\n\t$q = sql_select(\"SQL_CALC_FOUND_ROWS id_auteur, statut, nom,\r\n\t\t\t\t\t\tDATE_FORMAT(en_ligne,'%d/%m/%y %H:%i') AS vu \"\r\n\t\t. \"FROM spip_auteurs \"\r\n\t\t. \"WHERE $where_st \"\r\n\t\t. \"ORDER BY en_ligne DESC,nom \"\r\n\t\t. \"LIMIT $dl,$fl\"\r\n\t);\r\n\r\n\t// recup nombre total d'entrees\r\n\t$nl = sql_select(\"FOUND_ROWS()\");\r\n\t$found = @sql_fetch($nl);\r\n\t$nb_auteurs = $found['FOUND_ROWS()'];\r\n\r\n\t$ifond = 0;\r\n\r\n\t$aff = '';\r\n\r\n\t# onglet select statut\r\n\t$lst_statut = array('tous', '0minirezo', '1comite', '6forum');\r\n\t$script = _request('exec');\r\n\r\n\t$aff .= debut_onglet();\r\n\tforeach ($lst_statut as $statut) {\r\n\t\t$aff .= onglet(_T('actijour:onglet_connect_' . $statut),\r\n\t\t\tgenerer_url_ecrire($script, 'st=' . ($statut == 'tous' ? '' : $statut)),\r\n\t\t\t$statut,\r\n\t\t\t($p_st == $statut ? $statut : ''), '');\r\n\t}\r\n\t$aff .= fin_onglet();\r\n\r\n\r\n\t# tableau\r\n\t#\r\n\t$aff .= debut_cadre_relief(\"annonce.gif\", true);\r\n\r\n\t$aff .= \"<table align='center' border='0' cellpadding='2' cellspacing='0' width='100%'>\\n\"\r\n\t\t. \"<tr><td colspan='3' class='verdana3 bold'>\" . _T('actijour:tous_date_connections')\r\n\t\t. \"</td></tr>\";\r\n\t# Tranches\r\n\t$aff .= \"<tr><td colspan='3' class='verdana3 bold'>\";\r\n\t$aff .= \"<div align='center' class='iconeoff verdana2 bold' style='clear:both;'>\\n\"\r\n\t\t. tranches_liste_art($nba1, $nb_auteurs, $fl)\r\n\t\t. \"\\n</div>\\n\";\r\n\t$aff .= \"</td></tr>\";\r\n\r\n\twhile ($row = sql_fetch($q)) {\r\n\t\t$ifond = $ifond ^ 1;\r\n\t\t$couleur = ($ifond) ? '#FFFFFF' : $couleur_claire;\r\n\r\n\t\t$aff .= \"<tr bgcolor='$couleur'>\"\r\n\t\t\t. \"<td width='5%'>\\n\"\r\n\t\t\t. bonhomme_statut($row) . \"</td>\\n\"\r\n\t\t\t. \"<td width='75%'>\"\r\n\t\t\t. \"<a class='verdana2 bold' href='\" . generer_url_ecrire(\"auteur_infos\", \"id_auteur=\" . $row['id_auteur']) . \"'>\"\r\n\t\t\t. entites_html($row['nom']) . \"</a>\\n\"\r\n\t\t\t. \"<td width='20%'>\\n\"\r\n\t\t\t. \"<div align='right' class='verdana1'>\" . $row['vu'] . \"</div>\\n\"\r\n\t\t\t. \"</td></tr>\\n\";\r\n\r\n\t}\r\n\t$aff .= \"</table>\\n\\n\";\r\n\r\n\t$aff .= fin_cadre_relief(true);\r\n\r\n\treturn $aff;\r\n}", "public function actionPorodicni_vikend()\n\t{\n\t $this->getLang();\n\t\t$this->base('porodicni_vikend');\n $this->naslovStranice = 'Porodicni Vikend';\n\t\t$this->render('clanak');\n \n\t}", "public function novo(){\n return 'nova vaga';\n }", "function __toString()\r\n {\r\n return $this->ime .\" \". $this->prezime .\" (\". $this->korisnickoIme .\")\";\r\n }", "public function generujKod(){\n\t\t//\n\t}", "public function nom_alien()\r\n{\r\n return $this->_nom_alien;\r\n}", "public function calcula13o()\n {\n }", "public function calcula13o()\n {\n }", "public function get_nonces()\n {\n }", "function ispisiNotifikaciju($idNovosti){\n\t\t$autorID = nadjiAutora();\n\n\t\t$veza = konekcija();\n\t\t$upit = $veza->prepare(\"SELECT * From novost WHERE id = :id AND autor_id = :idAutora\");\n\t\t$upit->bindValue(':id', $idNovosti);\n\t\t$upit->bindValue(':idAutora', $autorID);\n\t\t$upit->execute();\n\t\t\n\t\t//autor novosti nije korisnik koji je prijavljen\n\t\tif($upit->rowCount() <= 0) return; \n\n\t\t$broj = brojNeprocitanih($idNovosti);\n\t\tif($broj > 0){\n\t\t\tprint \"<p>Broj nepročitanih komentara: \";\n\t\t\tprint $broj;\n\t\t\tprint \"</p>\";\n\t\t}\t\t\n\t}", "abstract public function hidupkan();", "private function Zapis_kolize_formulare($pole, $idcka_skolizi, $iducast, $formular) { \r\n//znevalidneni vsech kolizi pro ucastnika a tento formular\r\n self::Znevalidni_kolize_ucastnika_formulare($iducast, $formular); \r\n\r\n//zapis do uc_kolize_table pro kazdou nastalou s_kolizi\r\n foreach ($idcka_skolizi as $id_skolize) { //zapisovana policka jsou v $pole\r\n //echo \"policko: \" . $pole['uc_kolize_table§' . $id_skolize . '_revidovano'];\r\n $kolize = new Projektor2_Table_UcKolizeData ($iducast, (int)$id_skolize,\r\n $pole['uc_kolize_table§' . $id_skolize . '_revidovano'],\r\n $pole['uc_kolize_table§' . $id_skolize . '_revidovano_pozn'],\r\n null, 1,\r\n null,null,null,null,null) ;\r\n // echo \"v Zapis_kolize_temp\" . var_dump ($kolize);\r\n $kolize->Zapis_jednu_kolizi(); //kdyz je v tabulce uc_kolize_table, tak prepsat, kdyz neni, tak insert\r\n }\r\n\r\n}", "function provjeri_oglase(){\n\t\tglobal $db;\n\t\t$oglasi = $db->query(\"SELECT * FROM jf_oglasi WHERE status=1\");\n\t\twhile($podatak = $oglasi->fetch_assoc()){\n\t\t\tif (date(\"d-m-Y\", strtotime($podatak['konkurs_end'])) < date(\"d-m-Y\")){\n\t\t\t\t$db->query(\"UPDATE jf_oglasi SET status=0 WHERE id={$podatak['id']}\");\n\t\t\t}\n\t\t}\n\t}", "public function sortPredvidjanjeNajteze() {\n $data['kor_ime']=$this->session->get('kor_tip');\n $predvidjanjeModel=new PredvidjanjeModel();\n $predvidjanja=$predvidjanjeModel->dohvati_najteza_predvidjanja(); \n $data['predvidjanja']=$predvidjanja;\n $this->prikaz('pregled_predvidjanja', $data); \n }", "public static function Vypis_kolize_formulare_dosud_nezavolane($iducast, $formular, $pole_id_volanych) {\r\n $kolize_pole = self::Najdi_kolize_pro_formular_dosud_nezavolane($iducast, $formular, $pole_id_volanych);\r\n \r\n // zobrazeni hlaseni a policek kolizi ve formulari\r\n foreach ($kolize_pole as $kprvek) {\r\n //var_dump($kprvek);\r\n if ($kprvek->kolize_nastala) {\r\n self::Vypis_jednu_kolizi_do_formulare($kprvek);\r\n } \r\n } \r\n\r\n}", "public function getChapeau();", "public function partirAuTravail(): void\n\t{\n\t}", "public function jalan() {\n echo \"method jalan() berisi : Hewan ini terbang\";\n }", "public function tratarDados(){\r\n\t\r\n\t\r\n }", "public function baseCjenovnik()\n\t{\n\t\t\n\t\t$p = array();\n\t\t$this->red = Cjenovnik::model()->findAll(\"id>0\");\n $this->red1 = TekstCjenovnik::model()->findAllByAttributes(array('jezik'=>Yii::app()->session[\"lang\"]));\n\t/*\t$this->period_od = $konj->period_od;\n\t\t$this->period_do = $row->period_do;\n\t\t$this->tip = $row->tip;\n\t\t$this->cjena_km = $row->cjena_km;\n\t\t$this->cjena_eur = $row->cjena_eur;*/\n\t}", "function get_lib_est_alcoolisee(){\n if($this->est_alcoolisee){\n echo \"Oui\";\n }else{\n echo \"Non\";\n }\n }", "public function nutriments() {\n\t\tfunction dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}\n\t\t\n\t\t// Fonction qui renvoi le nombre de jours entre deux dates\n\t\tfunction jours($date1, $date2){\n\t\t\t$diff = abs($date1 - $date2); \n\t\t\t$retour = array();\n\t\t \n\t\t\t$tmp = $diff;\n\t\t\t$retour['second'] = $tmp % 60;\n\t\t \n\t\t\t$tmp = floor( ($tmp - $retour['second']) /60 );\n\t\t\t$retour['minute'] = $tmp % 60;\n\t\t\t\n\t\t\t$tmp = floor( ($tmp - $retour['minute'])/60 );\n\t\t\t$retour['hour'] = $tmp % 24;\n\t\t\t\t \n\t\t\t$tmp = floor( ($tmp - $retour['hour']) /24 );\n\t\t\t$retour['day'] = $tmp;\n\t\t\t\t \n\t\t\treturn $retour['day'];\n\t\t}\n\t\t\n\t\t\n\t\t$id = AuthComponent::user('id');\n\t\tsetlocale (LC_TIME, 'fr_FR.utf8','fra');\n\t\t$date = date('Y-m-d');\n\t\t\n\t\t$this->set('debut',null);\n\t\t$this->set('fin',null);\n\t\tif ($this->request->is('post')) {\n\t\t\t/* Vérification des informations envoyées */\n\t\t\t$message;\n\t\t\t$stop = false;\n\t\t\t$deb = $_POST['debut'];\n\t\t\t$fin = $_POST['fin'];\n\t\t\t\n\t\t\tif (!(preg_match(\"/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/\",$deb))) {\n\t\t\t\t$stop = true;\n\t\t\t\t$message = \"Erreur, la date de début est invalide, elle doit être sous format 'YYYY-MM-DD'\";\n\t\t\t} elseif (!(preg_match(\"/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/\",$fin))) {\n\t\t\t\t$stop = true;\n\t\t\t\t$message = \"Erreur, la date de fin est invalide, elle doit être sous format 'YYYY-MM-DD'\";\n\t\t\t} else {\n\t\t\t\tif ($deb > $date ) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être supérieure à la date d'aujourd'hui\";\n\t\t\t\t} elseif ($fin > $date) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être supérieure à la date d'aujourd'hui\";\n\t\t\t\t}\n\t\t\t\tif ($deb == $fin) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être égale à la date de fin\";\n\t\t\t\t} elseif ($deb > $fin) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être supérieure à la date de fin\";\n\t\t\t\t}\n\t\t\t\t$this->set('debut',$deb);\n\t\t\t\t$this->set('fin',$fin);\n\t\t\t}\n\t\t\t/* fin vérif */\n\t\t\tif ($stop) {\n\t\t\t\t$this->Session->setFlash(__($message));\n\t\t\t} else {\n\t\t\t\t$fin = $fin . ' 23:59:59';\n\t\t\t\t$repas = $this->Suivialimentaire->find('all',array('conditions' => array('AND' => array(\n\t\t\t\t\t\t\t\tarray('id_user' => $id),\n\t\t\t\t\t\t\t\tarray('Suivialimentaire.created BETWEEN ? AND ?' => array($deb, $fin))\n\t\t\t\t)),'order' => array('Suivialimentaire.created DESC') ));\n\t\t\t\t$temp = $repas;\n\t\t\t\t$i = 0;\n\t\t\t\tforeach ($repas as $r) {\n\t\t\t\t\t$temp[$i]['Aliment']= $this->Aliment->find('first', array('conditions' => array('Aliment.id' => $r['Suivialimentaire']['id_aliment'])));\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t\t$repas = $temp;\n\t\t\t\t$nutriments = array();\n\t\t\t\t$descri = $this->Constituantaliment->query(\"select name from constituantaliments join donneescompilees on constituantaliments_id = constituantaliments.id where aliments_id = 1000\");\n\t\t\t\tforeach ($descri as $desc) {\n\t\t\t\t\t$nutriments[]['nom'] = $desc['constituantaliments']['name'];\n\t\t\t\t}\n\t\t\t\tfor ($i = 0; $i < 57; $i++) $nutriments[$i]['valeur'] = 0;\n\t\t\t\tforeach ($repas as $rep) {\n\t\t\t\t\tfor ($i = 0; $i < 57; $i++) {\n\t\t\t\t\t\tif (!empty($rep['Aliment'])) {\n\t\t\t\t\t\t\t$nutriments[$i]['valeur'] = $nutriments[$i]['valeur'] + ($rep['Aliment']['Donneesaliment'][$i]['valmoy'] * $rep['Suivialimentaire']['quantite'] * $rep['Suivialimentaire']['portion']/100) * count(explode(\"@\",$rep['Suivialimentaire']['nomSA']));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$valsplit = explode(\"@\", $rep['Alimhorsclassification']['nutri']);\n\t\t\t\t\t\t\t$valresul = $valsplit[$i];\n\t\t\t\t\t\t\t$nutriments[$i]['valeur'] = $nutriments[$i]['valeur'] + ($valresul * $rep['Suivialimentaire']['quantite'] * $rep['Suivialimentaire']['portion']/100) * count(explode(\"@\",$rep['Suivialimentaire']['nomSA']));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$this->set('repas',$repas);\n\t\t\t\t$this->set('nutriments',$nutriments);\n\t\t\t\t$time1 = strtotime($deb);\n\t\t\t\t$time2 = strtotime($fin);\n\t\t\t\t$e=jours($time1, $time2);\n\t\t\t\t$this->set('joursDiff',$e);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public function actionKontaktirajte_nas()\n\t{\n\t\t$this->getLang();\n\t\t$this->base('kontaktirajte_nas');\n $this->naslovStranice = 'Kontakt Info';\n\t\t$this->render('clanak');\n \n\t}", "function ritorna_data_attuale() {\n\t$tz = 'Europe/Rome';\n\t$format='d/m/Y H:i:s'; // Formato Italiano\n $retData='';\n//\n// DO NOT EDIT ANYTHING BELOW THIS LINE!\n//\n\tdate_default_timezone_set($tz);\n\t$retData = date($format);\n\treturn($retData);\n}", "public function attaquerAdversaire() {\n\n }", "function cl_ouvidoriaatendimento() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"ouvidoriaatendimento\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "public function pasaje_abonado();", "public function getBrodcastData() { \n die('Amit');\n }", "public function etc()\n\t{\n\t\tif (preg_match('/^\\[scnzbefnet\\] (.+?) \\[\\d+\\/(\\d+\\]) - \".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //..:[DoAsYouLike]:.. 116,12 MB \"Graphite v8.9.17 SP4R4.nfo\" 3,00 kB yEnc\n\t\tif (preg_match('/^.+\\[DoAsYouLike\\].+\\d+[.,]\\d+ [kKmMgG][bB].+\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e0 . ' (\\d+[.,])?\\d+ ([kKmMgG])?[bB][-_\\s]{0,3}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //(047/550) \"Enf.S02E02.G.D.D.W.7.H.x2-e.vol105+99.PAR2\" - 36,13 GB -Enf.S02.G.D.D.W.7.H.x2-e yEnc\n\t\t//[3/3] - \"Mayle Peter - Der Coup von Marseille.epub.vol0+1.par2\" - 956,83 kB {UR} yEnc\n\t\tif (preg_match('/^[\\(\\[]\\d+\\/\\d+[\\)\\]][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e0 . '.+yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //<<<Old but Sold>>> <<< >< >< \"German Top 50 ODC - 12.08.2013.nfo\" >< 02/33 (541,61 MB) >< 10,93 kB > yEnc\n\t\tif (preg_match('/^.+Old but Sold.+>< \"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e0 . ' >< \\d+\\/\\d+ \\(\\d+[.,]\\d+ [kKmMgG][bB]\\).+ yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //<<<THOR for Usenet-Space-Cowboys>>> - 1Password V1.0.9.236 Setup Key.PAR2 yEnc\n\t\tif (preg_match('/^.+Usenet-Space-Cowboys.+> - ([A-Z0-9][a-zA-Z0-9\\. ]{6,})([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rar)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4}).+ yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //704900999555666777123978 - [398/415] - \"Jormungand Complete [720p] mHD.part31.rar\" yEnc\n\t\tif (preg_match('/^\\d+[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Man.Of.Steel.2013.BRRip.x264.AC3-UNiQUE - [02/38] - \"Man.Of.Steel.2013.BRRip.x264.AC3-UNiQUE.part01.rar\" yEnc\n\t\tif (preg_match('/^[\\w. -]+[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w.()-]{8,}?\\b)' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //<<<< old but sold >>>> < USC> <\"K11 - Kommissare im Einsatz (DE) NDS.part3.rar\">[04/11] 74,54 MB yEnc\n\t\tif (preg_match('/^.+old but sold.+([\\w. ()-]{8,}?\\b)' . $this->e0 .\n\t\t\t\t\t '>\\[\\d+\\/\\d+\\][-_\\s]{0,3}\\d+[.,]\\d+ [kKmMgG][bB][-_\\s]{0,3}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Uploader.Presents-ACDC.Let.There.Be.Rock.1980.720p.BluRay.DD5.1.x264-DON(00/47]\"rock.ac3.720p.nzb\" yEnc\n\t\tif (preg_match('/^Uploader\\.Presents-([\\w. ()-]{8,}?\\b)[\\(\\[]\\d+\\/\\d+\\]\".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Bitsum.Technologies.Process.Lasso.Pro.v6.5.00.Cracked-EAT - [3/4] - \"eat.vol0+1.par2\" yEnc\n\t\tif (preg_match('/^([\\w.()-]{8,})[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\".+?' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //<<<usenet-space-cowboys.info>>> USC <<<Powered by https://secretusenet.com><Medieval Wii Pal>< \"Medieval Wii Pal.vol108+29.par2\" >< 60/60 (4,82 GB) >< 95,77 MB > yEnc\n\t\tif (preg_match('/^.+?usenet-space.+?Powered by.+? \"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' .\n\t\t\t\t\t $this->e0 . '.+? \\d+\\/(\\d+.+?)$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Uploader.Presents-ACDC.Let.There.Be.Rock.1980.720p.BluRay.DD5.1.x264-DON(00/47]\"rock.ac3.720p.nzb\" yEnc\n\t\tif (preg_match('/^Uploader\\.Presents-([\\w. ()-]{8,}?\\b)[\\(\\[]\\d+\\/\\d+\\]\".+?\" yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Bitsum.Technologies.Process.Lasso.Pro.v6.5.00.Cracked-EAT - [3/4] - \"eat.vol0+1.par2\" yEnc\n\t\tif (preg_match('/^([\\w.()-]{8,})[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\".+?' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //<<<usenet-space-cowboys.info>>> USC <<<Powered by https://secretusenet.com><Medieval Wii Pal>< \"Medieval Wii Pal.vol108+29.par2\" >< 60/60 (4,82 GB) >< 95,77 MB > yEnc\n\t\tif (preg_match('/^.+?usenet-space.+?Powered by.+? ([\\w. ()-]{8,}?\\b)' . $this->e0 .\n\t\t\t\t\t '.+? \\d+\\/(\\d+.+?)$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //W33d5.S01.720p.BluRay.x264 - \"W33d5.S01.720p.BluRay.x264.part63.rar\" yEnc\n\t\tif (preg_match('/^[\\w. -]+[-_\\s]{0,3}\"([\\w.()-]{8,}?\\b)' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Man.Of.Steel.2013.BRRip.x264.AC3-UNiQUE - [02/38] - \"Man.Of.Steel.2013.BRRip.x264.AC3-UNiQUE.part01.rar\" yEnc\n\t\tif (preg_match('/^[\\w. -]+[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w.()-]{8,}?\\b)' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //>GOU<< XUS Clock Plus v1.5.0 with Key [TorDigger].PAR2 >>www.SSL-News.info< yEnc\n\t\tif (preg_match('/^>GOU<< ([\\w.\\[\\]() -]{8,}?\\b)([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rarr|\\.7z)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4}).+www\\.SSL-News\\.info<[-_\\s]{0,3}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //Man.Of.Steel.2013.BRRip.x264.AC3-UNiQUE - [02/38] - \"Man.Of.Steel.2013.BRRip.x264.AC3-UNiQUE.part01.rar\" yEnc\n\t\tif (preg_match('/^[\\w. -]+[-_\\s]{0,3}\\[\\d+\\/\\d+\\][-_\\s]{0,3}\"([\\w.()-]{8,}?\\b)' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //>GOU<< XUS Clock Plus v1.5.0 with Key [TorDigger].PAR2 >>www.SSL-News.info< yEnc\n\t\tif (preg_match('/^>GOU<< ([\\w.\\[\\]() -]{8,}?\\b)([-_](proof|sample|thumbs?))*(\\.part\\d*(\\.rar)?|\\.rarr|\\.7z)?(\\d{1,3}\\.rev|\\.vol.+?|\\.[A-Za-z0-9]{2,4}).+www\\.SSL-News\\.info<[-_\\s]{0,3}yEnc$/',\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t} //\"Drains_READNFO-VACE.nfo\" yEnc\n\t\tif (preg_match('/^\"([\\w\\säöüÄÖÜß+¤ƒ¶!.,&_()\\[\\]\\'\\`{}#-]{8,}?\\b.?)' . $this->e1,\n\t\t\t\t\t $this->subject,\n\t\t\t\t\t $match)\n\t\t) {\n\t\t\treturn $match[1];\n\t\t}\n\t\treturn array(\n\t\t\t\"cleansubject\" => $this->releaseCleanerHelper($this->subject), \"properlynamed\" => false\n\t\t);\n\t}", "function cl_tfd_situacaopedidotfd() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"tfd_situacaopedidotfd\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "public static function Najdi_kolize_pro_formular_dosud_nezavolane ($iducast, $formular, $pole_id_volanych ) {\r\n $query= \"SELECT * FROM s_typ_kolize WHERE formular='\" . $formular . \"' and valid\" ;\r\n $kolize_pole = self::Najdi_kolize ($query,$iducast) ; //to jsou vsechny pro formular\r\n \r\n //ty, co uz volal, z pole vypustit\r\n $kolize_pole_redukovane = array();\r\n \r\n foreach ($kolize_pole as $kprvek) {\r\n if ( in_array( $kprvek->id_s_typ_kolize_FK, $pole_id_volanych) ) {\r\n }\r\n else {\r\n array_push ($kolize_pole_redukovane, $kprvek ); //$kprvek->id_s_typ_kolize_FK);\r\n } \r\n }\r\n \r\n return $kolize_pole_redukovane; \r\n}", "function siguienteEstadoBoleta(){\r\n $this->procedimiento='leg.ft_boleta_garantia_dev_ime';\r\n $this->transaccion='LG_POBODEV_IME';\r\n $this->tipo_procedimiento='IME';\r\n \r\n //Define los parametros para la funcion\r\n $this->setParametro('id_proceso_wf','id_proceso_wf','int4'); \r\n\t\t$this->setParametro('id_estado_wf','id_estado_wf','int4');\r\n\t\t$this->setParametro('id_anexo','id_anexo','int4');\r\n\t\t\r\n\t\t\r\n\r\n //Ejecuta la instruccion\r\n $this->armarConsulta();\r\n $this->ejecutarConsulta();\r\n\r\n //Devuelve la respuesta\r\n return $this->respuesta;\r\n }", "public function veriCode() {}", "public function alimentar()\n {\n }", "function RellenarTitulo()\r\n {\r\n $this->Imprimir('ANÁLSIS DE FALLAS DE DISTRIBUCIÓN');\r\n\r\n $this->Imprimir($this->convocatoria->getLugar(), 93, 10);\r\n\r\n $this->Imprimir(strftime(\"%A %d de %B de %Y\", strtotime($this->convocatoria->getFecha())) .\r\n ' - Hora: ' . $this->convocatoria->getHoraIni() . ' a ' .\r\n $this->convocatoria->getHoraFin(), 95, 10, 16);\r\n }", "function get_bestelling_nbet($conn) // vraag tafels op die niet afgehandeld zijn\n\t{\n\t\t$query = \"SELECT tafel,product,aantal FROM bestelling WHERE betaald=0 \";\n\t\treturn mysqli_query($conn,$query);\n\t}", "function printAktivitetBoks($aktivitet)\n{\n if (eksistererAktivitet($aktivitet)) {\n $akt = hentAktivitet($aktivitet);\n $pris = $akt->Pris > 0 ? $akt->Pris . \"kr\" : \"Gratis!\";\n $dato = new Carbon\\Carbon($akt->Dato);\n $dato = $dato->diffForHumans();\n $prisFarge = $akt->Pris > 0 ? \"Pris Rod\" : \"Pris\";\n\n if ($akt->Statisk === 1)\n $dato = \"<img class='Ikoner' src='img/ikon_lock.png' alt='Statisk aktiviet'/>\";\n ?>\n <div class=\"AktivitetLitenBoks\">\n \n <a class=\"LinkBeskrivelse\" href=\"?side=aktivitet&id=<?= tryggPrint($aktivitet) ?>\">\n <img class=\"bildeBoks\" src=\"<?= tryggPrint($akt->Bilde) ?>\" onerror=\"this.src='img/default_aktivitet.png'\"/>\n \n <div class=\"bildeBoksLag\"></div>\n <div class=\"Beskrivelse\"><?= tryggPrint($akt->Beskrivelse) ?></div>\n </a>\n <div class=\"Tittel\"><b><?= tryggPrint($akt->Tittel) ?></b></div>\n <a class=\"link\" href=\"?side=bruker&id=<?= tryggPrint($akt->Bruker) ?>\">\n <div class=\"Utgiver\">\n <b><?= tryggPrint($akt->Bruker) ?></b>\n <img class=\"Ikoner\" src=\"<?= hentBrukerBildeEx($akt->Bruker) ?>\"</img>\n </div>\n </a>\n <div class=\"Dato\"><?= $dato ?></div>\n <div class=\"Likes\">\n <b><?= tryggPrint(antallStemmer($aktivitet)) ?></b>\n <img class=\"Ikoner\" src=\"img/ikon_hjerte.png\" alt=\"Antall likes\"</img>\n </div>\n \n <div class=\"<?=$prisFarge?>\"><?= $pris ?></div>\n </div>\n\n <?php\n } else {\n echo \"Fant ikke aktivtet: \" . $aktivitet;\n }\n}", "public function Latir() { //Irá receber da superclasse,apenas alteramos para o que queremos.\n return ' <b>Não conseguio latir!</b>'; // Retorne o latido\n parent::Latir();\n }", "public function getNegocio();", "function evt__1__entrada()\r\n\t{\r\n\t\t$this->pasadas_por_solapa[1]++;\r\n\t}", "public function get_etat(){ return $this->_etat;}", "public function Teksti2(){\n\t\t$this->teksti2=(\"sot po mbahet provimi ne lenden\");\n\t\techo $this->teksti2;\n\t}", "public function fixObject(){\n\t\t//Ex : cadre et texte d'entete\n\t}", "public function liberar() {}", "public function BestellingOverzichtView() {\r\n include_once('/var/www/filmpje.nl/backend/Stoelen.php');\r\n include_once('/var/www/filmpje.nl/backend/TotaalPrijsCalculatie.php');\r\n }", "public function getNota(){\n\t\treturn $this->nota;\n\t}", "public function testKojiPreskacem()\n {\n $this->markTestSkipped(\"ovaj test je namjerno prekocen\");\n }", "public function __construct($objEDRO)\n\t\t{\n\t\t//exit;\n\t\t//$objEDRO->arrEvent['arrReality']['int0PlayingStationNum'];\n\t\t//$objKIIM=$_objKIIM;\n\t\t //unset($_objKIIM);\n\t\t\t//print_r($objEDRO);\n\t\t\t//exit;\n\t\t/*echo*/$int1PlayingStationNum\t\t=$objEDRO->arrEvent['arrReality']['int1PlayingStationNum'];\n\t\t/*echo*/$int0Page\t\t\t=($objEDRO->arrEvent['arrReality']['int0Page']); //0,1,xxx\n\t\t/*echo*/$int1OnPage\t\t\t=$objEDRO->arrEvent['arrReality']['int1OnPage']; //1-> 8 = 8\n\t\t/*echo*/$int0Start\t\t\t=0+($int0Page*$int1OnPage);//From 0 to 7 intStart=8 ->15 intStart=16;\n\t\t/*echo*/$int1Untill\t\t\t=($int0Start+$int1OnPage);//From 0 to 7 including 7 = 8\n\t\t/*echo*/$int0Untill\t\t\t=($int1Untill-1);\n\t\t\tif($objEDRO->arrObjects['ч0РасположениеTotal'])\n\t\t\t\t{\n\t\t/*echo*/\tif($objEDRO->arrObjects['ч0РасположениеTotal']===0)\n\t\t\t\t\t{\n\t\t\t\t\t$int1Total\t=1; //Channge in par\n\t\t\t\t\t$int0Total\t=0;\n\t\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t$int1Total\t=($objEDRO->arrObjects['ч0РасположениеTotal']+1); //Channge in par\n\t\t\t\t\t$int0Total\t=($int1Total-1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\telse\n\t\t\t\t{\n\t\t\t\t$objTotal\t=FileRead::objJSON($objEDRO->arrObjects['сРасположениеTotal']); //0-lastone\n\t\t\t\tif($objTotal===0)\n\t\t\t\t\t{\n\t\t\t\t\t$int1Total\t=1; //Channge in par\n\t\t\t\t\t$int0Total\t=0;\n\t\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t{\n\t\t/*echo*/\t\t$int1Total\t=($objTotal->total+1); //Channge in par\n\t\t\t\t\t$int0Total\t=($int1Total-1);\n\t\t\t\t\t} \n\t\t\t\t}\n\n\t\tunset($objTotal);\n\t\tif($int1OnPage==0)\n\t\t\t{\n\t\t\t\n\t\t\t$int1Pages\t\t=intRoundUp(($int1Total)/1);\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\t/*echo*/$int1Pages\t=intRoundUp(($int1Total)/$int1OnPage);//totall is not from 0, to find we need to convert ;\n\t\t\t}\n\t\t$int0Pages\t\t=($int1Pages-1);\n\t\tif($int0Page>$int0Pages)\n\t\t\t{\n\t\t\t$objEDRO->arrEvent['arrReality']['int0Page']\t=$int0Pages;\n\t\t\t$int0Page\t\t\t\t\t=$int0Pages;\n\t\t\t/*echo*/ $int0Start\t=0+($int0Pages*$int1OnPage);//From 0 to 7 intStart=8 ->15 intStart=16;\n\t\t\t/*echo*/ $int1Untill\t=($int0Start+$int1OnPage);//From 0 to 7 including 7 = 8\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\t//$int0Page\t\t\t\t\t=($int1Page-1);\n\t\t\t}\n\t\tif($int0Total<$int0Untill)\n\t\t\t{\n\t\t\t$int0Untill=$int0Total;\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\t//$int0Untill=($int1Untill-1);\n\t\t\t}\n\t\tif($int0Total<$int0Start)\n\t\t\t{\n\t\t\t$int0Start\t=($int1OnPage*$int0Page);\n\t\t\t}\n\t\t/*if($int0PlayingStationNum>=0)\n\t\t\t{\n\t\t\t$int0Page\t=round(($int1PlayingStationNum/$int1OnPage), 0);\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\t$int0Page\t=round((($int0Start+1)/$int1OnPage), 0);\n\t\t\t}*/\n\t\t$arrReturn['int0Start']\t\t=$int0Start;\n\t\t$arrReturn['int0Page']\t\t=$int0Page;\n\t\t$arrReturn['int0Pages']\t\t=$int0Pages;\n\t\t$arrReturn['int1OnPage']\t=$int1OnPage;\n\t\t$arrReturn['int0Untill']\t=$int0Untill;\n\t\t$arrReturn['int0Total']\t\t=($int1Total-1);\n\n\t\t$this->arr\t\t\t=$arrReturn;\n\t\t}" ]
[ "0.66718096", "0.6257045", "0.62476707", "0.6173266", "0.61037654", "0.6058051", "0.5922473", "0.58125186", "0.57422906", "0.5730123", "0.5702708", "0.56571156", "0.56355494", "0.5628336", "0.55932516", "0.5587784", "0.5575455", "0.5574096", "0.55649126", "0.555498", "0.5538318", "0.5499935", "0.54706365", "0.5464848", "0.54487497", "0.5394138", "0.53705686", "0.5368879", "0.5365169", "0.5362563", "0.5362457", "0.53593415", "0.53572965", "0.53495526", "0.5337336", "0.53238934", "0.5322117", "0.5321377", "0.53209466", "0.53049934", "0.5290376", "0.52862626", "0.52862614", "0.52808577", "0.5279332", "0.52732426", "0.5268501", "0.5262249", "0.525874", "0.5258288", "0.52563745", "0.5250654", "0.5247605", "0.5246932", "0.5244295", "0.5241148", "0.5238522", "0.5233139", "0.52103007", "0.5207741", "0.5207741", "0.5206426", "0.5193424", "0.51895744", "0.5185076", "0.51845723", "0.5177552", "0.5174637", "0.5172871", "0.51679313", "0.516575", "0.51609", "0.5155063", "0.5154222", "0.51488006", "0.5145741", "0.51412916", "0.51388365", "0.5134819", "0.51344216", "0.513421", "0.5132802", "0.5125948", "0.51245683", "0.51227295", "0.5122698", "0.5118157", "0.5115732", "0.51146156", "0.5111879", "0.5111851", "0.510704", "0.51052994", "0.5104278", "0.5100606", "0.5100159", "0.509699", "0.50943655", "0.50937426", "0.50933415", "0.509228" ]
0.0
-1
Run the database seeds.
public function run() { Product::create([ 'name'=> 'Apart_550', 'description' => 'Cocina de 55cm. Cuenta con 4 hornallas y horno a gas.', 'photo' => "storage/images/Cocinas/capart550_pfp.png", 'price' => 19724.0, 'stock' => 100, 'category_id' => 1, ]); Product::create([ 'name'=> 'Apart_900', 'description' => 'Cocina de 90cm. Cuenta con 6 hornallas y horno a gas.', 'photo' => "storage/images/Cocinas/capart550_pfp.png", 'price' => 25642.0, 'stock' => 90, 'category_id' => 1, ]); Product::create([ 'name'=> 'Country_550', 'description' => 'Cocina de 55cm. Cuenta con 4 hornallas y horno a gas.', 'photo' => 'foto', 'price' => 24863.0, 'stock' => 70, 'category_id' => 1, ]); Product::create([ 'name'=> 'Country_900', 'description' => 'Cocina de 90cm. Cuenta con 6 hornallas y horno a gas.', 'photo' => 'foto', 'price' => 32321.0, 'stock' => 112, 'category_id' => 1, ]); Product::create([ 'name'=> 'Folium_550', 'description' => 'Cocina de 55cm. Cuenta con 4 hornallas y horno a gas.', 'photo' => 'foto', 'price' => 26520.0, 'stock' => 120, 'category_id' => 1, ]); Product::create([ 'name'=> 'Folium_900', 'description' => 'Cocina de 90cm. Cuenta con 6 hornallas y horno a gas.', 'photo' => 'foto', 'price' => 34476.0, 'stock' => 100, 'category_id' => 1, ]); Product::create([ 'name'=> 'Gama_700', 'description' => 'Anafe de 70cm. Cuenta con 4 hornallas a gas.', 'photo' => 'foto', 'price' => 11603.0, 'stock' => 100, 'category_id' => 3, ]); Product::create([ 'name'=> 'Gama_1050', 'description' => 'Anafe de 105cm. Cuenta con 6 hornallas a gas.', 'photo' => 'foto', 'price' => 14918.0, 'stock' => 100, 'category_id' => 3, ]); Product::create([ 'name'=> 'Country_600', 'description' => 'Campana de 60cm, 3 velocidades, motor silencioso.', 'photo' => 'foto', 'price' => 11603.0, 'stock' => 100, 'category_id' => 4, ]); Product::create([ 'name'=> 'Country_900', 'description' => 'Campana de 90cm, 3 velocidades, motor silencioso.', 'photo' => 'foto', 'price' => 13702.0, 'stock' => 100, 'category_id' => 4, ]); Product::create([ 'name'=> 'Folium_600', 'description' => 'Campana de 60cm, 3 velocidades, motor silencioso.', 'photo' => 'foto', 'price' => 11603.0, 'stock' => 100, 'category_id' => 4, ]); Product::create([ 'name'=> 'Folium_900', 'description' => 'Campana de 90cm, 3 velocidades, motor silencioso.', 'photo' => 'foto', 'price' => 13702.0, 'stock' => 100, 'category_id' => 4, ]); Product::create([ 'name'=> 'Country_550', 'description' => 'Horno a gas, 55cm.', 'photo' => 'foto', 'price' => 18785.0, 'stock' => 100, 'category_id' => 2, ]); Product::create([ 'name'=> 'Country_900', 'description' => 'Horno a gas, 90cm.', 'photo' => 'foto', 'price' => 25360.0, 'stock' => 100, 'category_id' => 2, ]); Product::create([ 'name'=> 'Folium_550', 'description' => 'Horno a gas, 55cm.', 'photo' => 'foto', 'price' => 18785.0, 'stock' => 100, 'category_id' => 2, ]); Product::create([ 'name'=> 'Folium_900', 'description' => 'Horno a gas, 90cm.', 'photo' => 'foto', 'price' => 25360.0, 'stock' => 100, 'category_id' => 2, ]); Product::create([ 'name'=> 'Garden_550', 'description' => 'Horno a gas, 55cm.', 'photo' => 'foto', 'price' => 18785.0, 'stock' => 100, 'category_id' => 2, ]); Product::create([ 'name'=> 'Garden_900', 'description' => 'Horno a gas, 90cm.', 'photo' => 'foto', 'price' => 25360.0, 'stock' => 100, 'category_id' => 2, ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n factory(App\\Editeur::class, 40) ->create();\n factory(App\\Auteur::class, 40) ->create();\n factory(App\\Livre::class, 80) ->create();\n\n for ($i = 1; $i < 41; $i++) {\n $number = rand(2, 8);\n for ($j = 1; $j <= $number; $j++) {\n DB::table('auteur_livre')->insert([\n 'livre_id' => rand(1, 40),\n 'auteur_id' => $i\n ]);\n }\n }\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Let's truncate our existing records to start from scratch.\n Assignation::truncate();\n\n $faker = \\Faker\\Factory::create();\n \n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 40; $i++) {\n Assignation::create([\n 'ad_id' => $faker->numberBetween(1,20),\n 'buyer_id' => $faker->numberBetween(1,6),\n 'seller_id' => $faker->numberBetween(6,11),\n 'state' => NULL,\n ]);\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n \t$faker = Faker::create();\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$post = new Post;\n \t\t$post->title = $faker->sentence();\n \t\t$post->body = $faker->paragraph();\n \t\t$post->category_id = rand(1, 5);\n \t\t$post->save();\n \t}\n\n \t$list = ['General', 'Technology', 'News', 'Internet', 'Mobile'];\n \tforeach($list as $name) {\n \t\t$category = new Category;\n \t\t$category->name = $name;\n \t\t$category->save();\n \t}\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$comment = new Comment;\n \t\t$comment->comment = $faker->paragraph();\n \t\t$comment->post_id = rand(1,20);\n \t\t$comment->save();\n \t}\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call(RoleTableSeeder::class);\n $this->call(UserTableSeeder::class);\n \n factory('App\\Cat', 5)->create();\n $tags = factory('App\\Tag', 8)->create();\n\n factory(Post::class, 15)->create()->each(function($post) use ($tags){\n $post->comments()->save(factory(Comment::class)->make());\n $post->tags()->attach( $tags->random(mt_rand(1,4))->pluck('id')->toArray() );\n });\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('post')->insert(\n [\n 'title' => 'Test Post1',\n 'desc' => str_random(100).\" post1\",\n 'alias' => 'test1',\n 'keywords' => 'test1',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post2',\n 'desc' => str_random(100).\" post2\",\n 'alias' => 'test2',\n 'keywords' => 'test2',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post3',\n 'desc' => str_random(100).\" post3\",\n 'alias' => 'test3',\n 'keywords' => 'test3',\n ]\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n \t$faker = Factory::create();\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\tDepartment::create([\n \t\t\t'name' => $department\n \t\t]);\n \t}\n \tforeach ($this->collections as $key => $collection) {\n \t\tCollection::create([\n \t\t\t'name' => $collection\n \t\t]);\n \t}\n \t\n \t\n \tfor ($i=0; $i < 40; $i++) {\n \t\tUser::create([\n \t\t\t'name' \t=>\t$faker->name,\n \t\t\t'email' \t=>\t$faker->email,\n \t\t\t'password' \t=>\tbcrypt('123456'),\n \t\t]);\n \t} \n \t\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\t//echo ($key + 1) . PHP_EOL;\n \t\t\n \t\tfor ($i=0; $i < 10; $i++) { \n \t\t\techo $faker->name . PHP_EOL;\n\n \t\t\tArt::create([\n \t\t\t\t'name'\t\t\t=> $faker->sentence(2),\n \t\t\t\t'img'\t\t\t=> $this->filenames[$i],\n \t\t\t\t'medium'\t\t=> 'canvas',\n \t\t\t\t'department_id'\t=> $key + 1,\n \t\t\t\t'user_id'\t\t=> $this->userIndex,\n \t\t\t\t'dimension'\t\t=> '18.0 x 24.0',\n\t\t\t\t]);\n \t\t\t\t\n \t\t\t\t$this->userIndex ++;\n \t\t}\n \t}\n \t\n \tdd(\"END\");\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->dataCategory();\n factory(App\\Model\\Category::class, 70)->create();\n factory(App\\Model\\Producer::class, rand(5,10))->create();\n factory(App\\Model\\Provider::class, rand(5,10))->create();\n factory(App\\Model\\Product::class, 100)->create();\n factory(App\\Model\\Album::class, 300)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n\n factory('App\\User', 10 )->create();\n\n $users= \\App\\User::all();\n $users->each(function($user){ factory('App\\Category', 1)->create(['user_id'=>$user->id]); });\n $users->each(function($user){ factory('App\\Tag', 3)->create(['user_id'=>$user->id]); });\n\n\n $users->each(function($user){\n factory('App\\Post', 10)->create([\n 'user_id'=>$user->id,\n 'category_id'=>rand(1,20)\n ]\n );\n });\n\n $posts= \\App\\Post::all();\n $posts->each(function ($post){\n\n $post->tags()->attach(array_unique([rand(1,20),rand(1,20),rand(1,20)]));\n });\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $types = factory(\\App\\Models\\Type::class, 5)->create();\n\n $cities = factory(\\App\\Models\\City::class, 10)->create();\n\n $cities->each(function ($city) {\n $districts = factory(\\App\\Models\\District::class, rand(2, 5))->create([\n 'city_id' => $city->id,\n ]);\n\n $districts->each(function ($district) {\n $properties = factory(\\App\\Models\\Property::class, rand(2, 5))->create([\n 'type_id' => rand(1, 5),\n 'district_id' => $district->id\n ]);\n\n $properties->each(function ($property) {\n $galleries = factory(\\App\\Models\\Gallery::class, rand(3, 10))->create([\n 'property_id' => $property->id\n ]);\n });\n });\n });\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n\n $categories = factory(App\\Models\\Category::class, 10)->create();\n\n $categories->each(function ($category) {\n $category\n ->posts()\n ->saveMany(\n factory(App\\Models\\Post::class, 3)->make()\n );\n });\n }", "public function run()\n {\n $this->call(CategoriesTableSeeder::class);\n\n $users = factory(App\\User::class, 5)->create();\n $recipes = factory(App\\Recipe::class, 30)->create();\n $preparations = factory(App\\Preparation::class, 70)->create();\n $photos = factory(App\\Photo::class, 90)->create();\n $comments = factory(App\\Comment::class, 200)->create();\n $flavours = factory(App\\Flavour::class, 25)->create();\n $flavour_recipe = factory(App\\FlavourRecipe::class, 50)->create();\n $tags = factory(App\\Tag::class, 25)->create();\n $recipe_tag = factory(App\\RecipeTag::class, 50)->create();\n $ingredients = factory(App\\Ingredient::class, 25)->create();\n $ingredient_preparation = factory(App\\IngredientPreparation::class, 300)->create();\n \n \n \n DB::table('users')->insert(['name' => 'SimpleUtilisateur', 'email' => 'simpleadressemail@mail.com', 'password' => bcrypt('SimpleMotDePasse')]);\n \n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n // Sample::truncate();\n // TestItem::truncate();\n // UOM::truncate();\n Role::truncate();\n User::truncate();\n\n // factory(Role::class, 4)->create();\n Role::create([\n 'name'=> 'Director',\n 'description'=> 'Director type'\n ]);\n\n Role::create([\n 'name'=> 'Admin',\n 'description'=> 'Admin type'\n ]);\n Role::create([\n 'name'=> 'Employee',\n 'description'=> 'Employee type'\n ]);\n Role::create([\n 'name'=> 'Technician',\n 'description'=> 'Technician type'\n ]);\n \n factory(User::class, 20)->create()->each(\n function ($user){\n $roles = \\App\\Role::all()->random(mt_rand(1, 2))->pluck('id');\n $user->roles()->attach($roles);\n }\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n UsersLevel::create([\n 'name' => 'Administrator'\n ]);\n\n UsersLevel::create([\n 'name' => 'User'\n ]);\n\n User::create([\n 'username' => 'admin',\n 'password' => bcrypt('admin123'),\n 'level_id' => 1,\n 'fullname' => \"Super Admin\",\n 'email'=> \"admin@admin.com\"\n ]);\n\n\n \\App\\CategoryPosts::create([\n 'name' =>'Paket Trip'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' =>'Destinasi Kuliner'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Event'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Profil'\n ]);\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'email' => 'admin@petstore.com',\n 'avatar' => \"avatar\",\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',\n ]);\n $this->call(CategorySeeder::class);\n // \\App\\Models\\Admin::factory(1)->create();\n \\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Category::factory(50)->create();\n \\App\\Models\\PetComment::factory(50)->create();\n $pets = \\App\\Models\\Pet::factory(50)->create();\n foreach ($pets as $pet) {\n \\App\\Models\\PetTag::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\PetPhotoUrl::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\Order::factory(1)->create(['pet_id' => $pet->id]);\n };\n }", "public function run()\n { \n\n $this->call(RoleSeeder::class);\n \n $this->call(UserSeeder::class);\n\n Storage::deleteDirectory('socials-icon');\n Storage::makeDirectory('socials-icon');\n $socials = Social::factory(7)->create();\n\n Storage::deleteDirectory('countries-flag');\n Storage::deleteDirectory('countries-firm');\n Storage::makeDirectory('countries-flag');\n Storage::makeDirectory('countries-firm');\n $countries = Country::factory(18)->create();\n\n // Se llenan datos de la tabla muchos a muchos - social_country\n foreach ($countries as $country) {\n foreach ($socials as $social) {\n\n $country->socials()->attach($social->id, [\n 'link' => 'https://www.facebook.com/ministeriopalabrayespiritu/'\n ]);\n }\n }\n\n Person::factory(50)->create();\n\n Category::factory(7)->create();\n\n Video::factory(25)->create(); \n\n $this->call(PostSeeder::class);\n\n Storage::deleteDirectory('documents');\n Storage::makeDirectory('documents');\n Document::factory(25)->create();\n\n }", "public function run()\n {\n $faker = Faker::create('id_ID');\n /**\n * Generate fake author data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('author')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Generate fake publisher data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('publisher')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Seeding payment method\n */\n DB::table('payment')->insert([\n ['name' => 'Mandiri'],\n ['name' => 'BCA'],\n ['name' => 'BRI'],\n ['name' => 'BNI'],\n ['name' => 'Pos Indonesia'],\n ['name' => 'BTN'],\n ['name' => 'Indomaret'],\n ['name' => 'Alfamart'],\n ['name' => 'OVO'],\n ['name' => 'Cash On Delivery']\n ]);\n }", "public function run()\n {\n DatabaseSeeder::seedLearningStylesProbs();\n DatabaseSeeder::seedCampusProbs();\n DatabaseSeeder::seedGenderProbs();\n DatabaseSeeder::seedTypeStudentProbs();\n DatabaseSeeder::seedTypeProfessorProbs();\n DatabaseSeeder::seedNetworkProbs();\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n // MyList::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 3; $i++) {\n MyList::create([\n 'title' => 'List-'.($i+1),\n 'color' => $faker->sentence,\n 'icon' => $faker->randomDigitNotNull,\n 'index' => $faker->randomDigitNotNull,\n 'user_id' => 1,\n ]);\n }\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Products::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few products in our database:\n for ($i = 0; $i < 50; $i++) {\n Products::create([\n 'name' => $faker->word,\n 'sku' => $faker->randomNumber(7, false),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n User::create([\n 'name' => 'Pablo Rosales',\n 'email' => 'prosales@researchmobile.co',\n 'password' => bcrypt('admin'),\n 'status' => 1,\n 'role_id' => 1,\n 'movil' => 0\n ]);\n\n User::create([\n 'name' => 'Usuario Movil',\n 'email' => 'movil@researchmobile.co',\n 'password' => bcrypt('secret'),\n 'status' => 1,\n 'role_id' => 3,\n 'movil' => 1\n ]);\n\n Roles::create([\n 'name' => 'Administrador'\n ]);\n Roles::create([\n 'name' => 'Operaciones'\n ]);\n Roles::create([\n 'name' => 'Comercial'\n ]);\n Roles::create([\n 'name' => 'Aseguramiento'\n ]);\n Roles::create([\n 'name' => 'Facturación'\n ]);\n Roles::create([\n 'name' => 'Creditos y Cobros'\n ]);\n\n factory(App\\Customers::class, 100)->create();\n }", "public function run()\n {\n // php artisan db:seed --class=StoreTableSeeder\n\n foreach(range(1,20) as $i){\n $faker = Faker::create();\n Store::create([\n 'name' => $faker->name,\n 'desc' => $faker->text,\n 'tags' => $faker->word,\n 'address' => $faker->address,\n 'longitude' => $faker->longitude($min = -180, $max = 180),\n 'latitude' => $faker->latitude($min = -90, $max = 90),\n 'created_by' => '1'\n ]);\n }\n\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name'=>\"test\",\n 'password' => Hash::make('123'),\n 'email'=>'test@yandex.ru'\n ]);\n DB::table('tags')->insert(['name'=>'tags']);\n $this->call(UserSeed::class);\n $this->call(CategoriesSeed::class);\n $this->call(TopicsSeed::class);\n $this->call(CommentariesSeed::class);\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n echo 'seeding permission...', PHP_EOL;\n $permissions = [\n 'role-list',\n 'role-create',\n 'role-edit',\n 'role-delete',\n 'formation-list',\n 'formation-create',\n 'formation-edit',\n 'formation-delete',\n 'user-list',\n 'user-create',\n 'user-edit',\n 'user-delete'\n ];\n foreach ($permissions as $permission) {\n Permission::create(['name' => $permission]);\n }\n echo 'seeding users...', PHP_EOL;\n\n $user= User::create(\n [\n 'name' => 'Mr. admin',\n 'email' => 'admin@yahoo.com',\n 'password' => bcrypt('admin'),\n 'remember_token' => null,\n ]\n );\n echo 'Create Roles...', PHP_EOL;\n Role::create(['name' => 'former']);\n Role::create(['name' => 'learner']);\n Role::create(['name' => 'admin']);\n Role::create(['name' => 'manager']);\n Role::create(['name' => 'user']);\n\n echo 'seeding Role User...', PHP_EOL;\n $user->assignRole('admin');\n $role = $user->assignRole('admin');\n $role->givepermissionTo(Permission::all());\n\n \\DB::table('languages')->insert(['name' => 'English', 'code' => 'en']);\n \\DB::table('languages')->insert(['name' => 'Français', 'code' => 'fr']);\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(ThemeSeeder::class);\n\n //\n\n DB::table('paypal_info')->insert([\n 'client_id' => '',\n 'client_secret' => '',\n 'currency' => '',\n ]);\n DB::table('contact_us')->insert([\n 'content' => '',\n ]);\n DB::table('setting')->insert([\n 'site_name' => ' ',\n ]);\n DB::table('terms_and_conditions')->insert(['terms_and_condition' => 'text']);\n }", "public function run()\n {\n $this->call([\n UserSeeder::class,\n ]);\n\n User::factory(20)->create();\n Author::factory(20)->create();\n Book::factory(60)->create();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UserSeeder::class);\n $this->call(RolePermissionSeeder::class);\n $this->call(AppmodeSeeder::class);\n\n // \\App\\Models\\Appmode::factory(3)->create();\n \\App\\Models\\Doctor::factory(100)->create();\n \\App\\Models\\Unit::factory(50)->create();\n \\App\\Models\\Broker::factory(100)->create();\n \\App\\Models\\Patient::factory(100)->create();\n \\App\\Models\\Expence::factory(100)->create();\n \\App\\Models\\Testcategory::factory(100)->create();\n \\App\\Models\\Test::factory(50)->create();\n \\App\\Models\\Parameter::factory(50)->create();\n \\App\\Models\\Sale::factory(50)->create();\n \\App\\Models\\SaleItem::factory(100)->create();\n \\App\\Models\\Goption::factory(1)->create();\n \\App\\Models\\Pararesult::factory(50)->create();\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // DB::table('roles')->insert(\n // [\n // ['name' => 'admin', 'description' => 'Administrator'],\n // ['name' => 'student', 'description' => 'Student'],\n // ['name' => 'lab_tech', 'description' => 'Lab Tech'],\n // ['name' => 'it_staff', 'description' => 'IT Staff Member'],\n // ['name' => 'it_manager', 'description' => 'IT Manager'],\n // ['name' => 'lab_manager', 'description' => 'Lab Manager'],\n // ]\n // );\n\n // DB::table('users')->insert(\n // [\n // 'username' => 'admin', \n // 'password' => Hash::make('password'), \n // 'active' => 1,\n // 'name' => 'Administrator',\n // 'email' => 'programmerlemar@gmail.com',\n // 'role_id' => \\App\\Role::where('name', 'admin')->first()->id\n // ]\n // );\n\n DB::table('status')->insert([\n // ['name' => 'Active'],\n // ['name' => 'Cancel'],\n // ['name' => 'Disable'],\n // ['name' => 'Open'],\n // ['name' => 'Closed'],\n // ['name' => 'Resolved'],\n ['name' => 'Used'],\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create([\n 'name' => 'Qwerty',\n 'email' => 'qwerty@gmail.com',\n 'password' => bcrypt('secretpassw'),\n ]);\n\n factory(User::class, 59)->create([\n 'password' => bcrypt('secretpassw'),\n ]);\n\n for ($i = 1; $i < 11; $i++) {\n factory(Category::class)->create([\n 'name' => 'Category ' . $i,\n ]);\n }\n\n for ($i = 1; $i < 101; $i++) {\n factory(Product::class)->create([\n 'name' => 'Product ' . $i,\n ]);\n }\n }", "public function run()\n {\n\n \t// Making main admin role\n \tDB::table('roles')->insert([\n 'name' => 'Admin',\n ]);\n\n // Making main category\n \tDB::table('categories')->insert([\n 'name' => 'Other',\n ]);\n\n \t// Making main admin account for testing\n \tDB::table('users')->insert([\n 'name' \t\t=> 'Admin',\n 'email' \t=> 'admin@example.com',\n 'password' => bcrypt('12345'),\n 'role_id' => 1,\n 'created_at' => date('Y-m-d H:i:s' ,time()),\n 'updated_at' => date('Y-m-d H:i:s' ,time())\n ]);\n\n \t// Making random users and posts\n factory(App\\User::class, 10)->create();\n factory(App\\Post::class, 35)->create();\n }", "public function run()\n {\n $faker = Faker::create();\n\n \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Chef',\n 'salario' => '15000.00'\n ));\n\n\t\t \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Mesonero',\n 'salario' => '12000.00'\n ));\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = \\Faker\\Factory::create();\n\n foreach (range(1,5) as $index) {\n Lista::create([\n 'name' => $faker->sentence(2),\n 'description' => $faker->sentence(10), \n ]);\n } \n\n foreach (range(1,20) as $index) {\n $n = $faker->sentence(2);\n \tTarea::create([\n \t\t'name' => $n,\n \t\t'description' => $faker->sentence(10),\n 'lista_id' => $faker->numberBetween(1,5),\n 'slug' => Str::slug($n),\n \t\t]);\n } \n }", "public function run()\n {\n $faker = Faker::create('lt_LT');\n\n DB::table('users')->insert([\n 'name' => 'user',\n 'email' => 'briedis@aa.bb',\n 'password' => Hash::make('123')\n ]);\n DB::table('users')->insert([\n 'name' => 'user2',\n 'email' => 'briedis2@aa.bb',\n 'password' => Hash::make('123')\n ]);\n\n foreach (range(1,100) as $val)\n DB::table('authors')->insert([\n 'name' => $faker->firstName(),\n 'surname' => $faker->lastName(),\n \n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UsersTableSeeder::class);\n\n // DB::table('users')->insert([\n // 'name' => 'User1',\n // 'email' => 'admin@admin.com',\n // 'password' => bcrypt('password'),\n // ]);\n\n\n $faker = Faker::create();\n \n foreach (range(1,10) as $index){\n DB::table('companies')->insert([\n 'name' => $faker->company(),\n 'email' => $faker->email(10).'@gmail.com',\n 'logo' => $faker->image($dir = '/tmp', $width = 640, $height = 480),\n 'webiste' => $faker->domainName(),\n \n ]);\n }\n \n \n foreach (range(1,10) as $index){\n DB::table('employees')->insert([\n 'first_name' => $faker->firstName(),\n 'last_name' => $faker->lastName(),\n 'company' => $faker->company(),\n 'email' => $faker->str_random(10).'@gmail.com',\n 'phone' => $faker->e164PhoneNumber(),\n \n ]);\n }\n\n\n\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Flight::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 100; $i++) {\n\n\n Flight::create([\n 'flightNumber' => $faker->randomNumber(5),\n 'depAirport' => $faker->city,\n 'destAirport' => $faker->city,\n 'reservedWeight' => $faker->numberBetween(1000 - 10000),\n 'deptTime' => $faker->dateTime('now'),\n 'arrivalTime' => $faker->dateTime('now'),\n 'reservedVolume' => $faker->numberBetween(1000 - 10000),\n 'airlineName' => $faker->colorName,\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->truncteTables([\n 'users',\n 'products'\n ]);\n\n $this->call(UsersSeeder::class);\n $this->call(ProductsSeeder::class);\n\n }", "public function run()\n {\n /**\n * Dummy seeds\n */\n DB::table('metas')->truncate();\n $faker = Faker::create();\n\n for ($i=0; $i < 10; $i++) { \n DB::table('metas')->insert([\n 'id_rel' => $faker->randomNumber(),\n 'titulo' => $faker->sentence,\n 'descricao' => $faker->paragraph,\n 'justificativa' => $faker->paragraph,\n 'valor_inicial' => $faker->numberBetween(0,100),\n 'valor_atual' => $faker->numberBetween(0,100),\n 'valor_final' => $faker->numberBetween(0,10),\n 'regras' => json_encode([$i => [\"values\" => $faker->words(3)]]),\n 'types' => json_encode([$i => [\"values\" => $faker->words(2)]]),\n 'categorias' => json_encode([$i => [\"values\" => $faker->words(4)]]),\n 'tags' => json_encode([$i => [\"values\" => $faker->words(5)]]),\n 'active' => true,\n ]);\n }\n\n\n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n\n $faker = Faker::create();\n\n $lessonIds = Lesson::lists('id')->all(); // An array of ID's in that table [1, 2, 3, 4, 5, 7]\n $tagIds = Tag::lists('id')->all();\n\n foreach(range(1, 30) as $index)\n {\n // a real lesson id\n // a real tag id\n DB::table('lesson_tag')->insert([\n 'lesson_id' => $faker->randomElement($lessonIds),\n 'tag_id' => $faker->randomElement($tagIds),\n ]);\n }\n }", "public function run()\n {\n $this->call(CategoriasTableSeeder::class);\n $this->call(UfsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(UserTiposTableSeeder::class);\n factory(App\\User::class, 2)->create();\n/* factory(App\\Models\\Categoria::class, 20)->create();*/\n/* factory(App\\Models\\Anuncio::class, 50)->create();*/\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n Language::truncate();\n Reason::truncate();\n Report::truncate();\n Category::truncate();\n Position::truncate();\n\n $languageQuantity = 10;\n $reasonQuantity = 10;\n $reportQuantity = 10;\n $categoryQuantity = 10;\n $positionQuantity = 10;\n\n factory(Language::class,$languageQuantity)->create();\n factory(Reason::class,$reasonQuantity)->create();\n \n factory(Report::class,$reportQuantity)->create();\n \n factory(Category::class,$categoryQuantity)->create();\n \n factory(Position::class,$positionQuantity)->create();\n\n }", "public function run()\n {\n // \\DB::statement('SET_FOREIGN_KEY_CHECKS=0');\n \\DB::table('users')->truncate();\n \\DB::table('posts')->truncate();\n // \\DB::table('category')->truncate();\n \\DB::table('photos')->truncate();\n \\DB::table('comments')->truncate();\n \\DB::table('comment_replies')->truncate();\n\n \\App\\Models\\User::factory()->times(10)->hasPosts(1)->create();\n \\App\\Models\\Role::factory()->times(10)->create();\n \\App\\Models\\Category::factory()->times(10)->create();\n \\App\\Models\\Comment::factory()->times(10)->hasReplies(1)->create();\n \\App\\Models\\Photo::factory()->times(10)->create();\n\n \n // \\App\\Models\\User::factory(10)->create([\n // 'role_id'=>2,\n // 'is_active'=>1\n // ]);\n\n // factory(App\\Models\\Post::class, 10)->create();\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call([\n ArticleSeeder::class, \n TagSeeder::class,\n Arttagrel::class\n ]);\n // \\App\\Models\\User::factory(10)->create();\n \\App\\Models\\Article::factory()->count(7)->create();\n \\App\\Models\\Tag::factory()->count(15)->create(); \n \\App\\Models\\Arttagrel::factory()->count(15)->create(); \n }", "public function run()\n {\n $this->call(ArticulosTableSeeder::class);\n /*DB::table('articulos')->insert([\n 'titulo' => str_random(50),\n 'cuerpo' => str_random(200),\n ]);*/\n }", "public function run()\n {\n $this->call(CategoryTableSeeder::class);\n $this->call(ProductTableSeeder::class);\n\n \t\t\n\t\t\tDB::table('users')->insert([\n 'first_name' => 'Ignacio',\n 'last_name' => 'Garcia',\n 'email' => 'ignacio@dh.com',\n 'password' => bcrypt('123456'),\n 'role' => '1',\n 'avatar' => 'CGnABxNYYn8N23RWlvTTP6C2nRjOLTf8IJcbLqRP.jpeg',\n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(RoleSeeder::class);\n $this->call(UserSeeder::class);\n\n Medicamento::factory(50)->create();\n Reporte::factory(5)->create();\n Cliente::factory(200)->create();\n Asigna_valor::factory(200)->create();\n Carga::factory(200)->create();\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n TicketSeeder::class\n ]);\n\n DB::table('departments')->insert([\n 'abbr' => 'IT',\n 'name' => 'Information Technologies',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => 'admin@gmail.com',\n 'email_verified_at' => Carbon::now(),\n 'password' => Hash::make('admin'),\n 'department_id' => 1,\n 'avatar' => 'default.png',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('role_user')->insert([\n 'role_id' => 1,\n 'user_id' => 1\n ]);\n }", "public function run()\n {\n \\App\\Models\\Article::factory(20)->create();\n \\App\\Models\\Category::factory(5)->create();\n \\App\\Models\\Comment::factory(40)->create();\n\n \\App\\Models\\User::create([\n \"name\"=>\"Alice\",\n \"email\"=>'alice@gmail.com',\n 'password' => Hash::make('password'),\n ]);\n \\App\\Models\\User::create([\n \"name\"=>\"Bob\",\n \"email\"=>'bob@gmail.com',\n 'password' => Hash::make('password'),\n ]);\n }", "public function run()\n {\n /** \n * Note: You must add these lines to your .env file for this Seeder to work (replace the values, obviously):\n SEEDER_USER_FIRST_NAME = 'Firstname'\n SEEDER_USER_LAST_NAME = 'Lastname'\n\t\tSEEDER_USER_DISPLAY_NAME = 'Firstname Lastname'\n\t\tSEEDER_USER_EMAIL = your.email@domain.com\n SEEDER_USER_PASSWORD = yourpassword\n */\n\t\tDB::table('users')->insert([\n 'user_first_name' => env('SEEDER_USER_FIRST_NAME'),\n 'user_last_name' => env('SEEDER_USER_LAST_NAME'),\n 'user_name' => env('SEEDER_USER_DISPLAY_NAME'),\n\t\t\t'user_email' => env('SEEDER_USER_EMAIL'),\n 'user_status' => 1,\n \t'password' => Hash::make((env('SEEDER_USER_PASSWORD'))),\n 'permission_fk' => 1,\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class,3)->create()->each(\n \tfunction($user)\n \t{\n \t\t$user->questions()\n \t\t->saveMany(\n \t\t\tfactory(App\\Question::class, rand(2,6))->make()\n \t\t)\n ->each(function ($q) {\n $q->answers()->saveMany(factory(App\\Answer::class, rand(1,5))->make());\n })\n \t}\n );\n }\n}", "public function run()\n {\n $faker = Faker::create();\n\n // $this->call(UsersTableSeeder::class);\n\n DB::table('posts')->insert([\n 'id'=>str_random(1),\n 'user_id'=> str_random(1),\n 'title' => $faker->name,\n 'body' => $faker->safeEmail,\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s'),\n ]);\n }", "public function run()\n\t{\n\t\tDB::table(self::TABLE_NAME)->delete();\n\n\t\tforeach (seed(self::TABLE_NAME) as $row)\n\t\t\t$records[] = [\n\t\t\t\t'id'\t\t\t\t=> $row->id,\n\t\t\t\t'created_at'\t\t=> $row->created_at ?? Carbon::now(),\n\t\t\t\t'updated_at'\t\t=> $row->updated_at ?? Carbon::now(),\n\n\t\t\t\t'sport_id'\t\t\t=> $row->sport_id,\n\t\t\t\t'gender_id'\t\t\t=> $row->gender_id,\n\t\t\t\t'tournamenttype_id'\t=> $row->tournamenttype_id ?? null,\n\n\t\t\t\t'name'\t\t\t\t=> $row->name,\n\t\t\t\t'external_id'\t\t=> $row->external_id ?? null,\n\t\t\t\t'is_top'\t\t\t=> $row->is_top ?? null,\n\t\t\t\t'logo'\t\t\t\t=> $row->logo ?? null,\n\t\t\t\t'position'\t\t\t=> $row->position ?? null,\n\t\t\t];\n\n\t\tinsert(self::TABLE_NAME, $records ?? []);\n\t}", "public function run()\n\t{\n\t\tDB::table('libros')->truncate();\n\n\t\t$faker = Faker\\Factory::create();\n\n\t\tfor ($i=0; $i < 10; $i++) { \n\t\t\tLibro::create([\n\n\t\t\t\t'titulo'\t\t=> $faker->text(40),\n\t\t\t\t'isbn'\t\t\t=> $faker->numberBetween(100,999),\n\t\t\t\t'precio'\t\t=> $faker->randomFloat(2,3,150),\n\t\t\t\t'publicado'\t\t=> $faker->numberBetween(0,1),\n\t\t\t\t'descripcion'\t=> $faker->text(400),\n\t\t\t\t'autor_id'\t\t=> $faker->numberBetween(1,3),\n\t\t\t\t'categoria_id'\t=> $faker->numberBetween(1,3)\n\n\t\t\t]);\n\t\t}\n\n\t\t// Uncomment the below to run the seeder\n\t\t// DB::table('libros')->insert($libros);\n\t}", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 10)->create()->each(function ($user) {\n // Seed the relation with 5 purchases\n // $videos = factory(App\\Video::class, 5)->make();\n // $user->videos()->saveMany($videos);\n // $user->videos()->each(function ($video){\n // \t$video->videometa()->save(factory(App\\VideoMeta::class)->make());\n // \t// :( \n // });\n factory(App\\User::class, 10)->create()->each(function ($user) {\n\t\t\t factory(App\\Video::class, 5)->create(['user_id' => $user->id])->each(function ($video) {\n\t\t\t \tfactory(App\\VideoMeta::class, 1)->create(['video_id' => $video->id]);\n\t\t\t // $video->videometa()->save(factory(App\\VideoMeta::class)->create(['video_id' => $video->id]));\n\t\t\t });\n\t\t\t});\n\n });\n }", "public function run()\n {\n // for($i=1;$i<11;$i++){\n // DB::table('post')->insert(\n // ['title' => 'Title'.$i,\n // 'post' => 'Post'.$i,\n // 'slug' => 'Slug'.$i]\n // );\n // }\n $faker = Faker\\Factory::create();\n \n for($i=1;$i<20;$i++){\n $dname = $faker->name;\n DB::table('post')->insert(\n ['title' => $dname,\n 'post' => $faker->text($maxNbChars = 200),\n 'slug' => str_slug($dname)]\n );\n }\n }", "public function run()\n {\n $this->call([\n CountryTableSeeder::class,\n ProvinceTableSeeder::class,\n TagTableSeeder::class\n ]);\n\n User::factory()->count(10)->create();\n Category::factory()->count(5)->create();\n Product::factory()->count(20)->create();\n Section::factory()->count(5)->create();\n Bundle::factory()->count(20)->create();\n\n $bundles = Bundle::all();\n // populate bundle-product table (morph many-to-many)\n Product::all()->each(function ($product) use ($bundles) {\n $product->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray(),\n ['default_quantity' => rand(1, 10)]\n );\n });\n // populate bundle-tags table (morph many-to-many)\n Tag::all()->each(function ($tag) use ($bundles) {\n $tag->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray()\n );\n });\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Contract::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Contract::create([\n 'serialnumbers' => $faker->numberBetween($min = 1000000, $max = 2000000),\n 'address' => $faker->address,\n 'landholder' => $faker->lastName,\n 'renter' => $faker->lastName,\n 'price' => $faker->numberBetween($min = 10000, $max = 50000),\n 'rent_start' => $faker->date($format = 'Y-m-d', $max = 'now'),\n 'rent_end' => $faker->date($format = 'Y-m-d', $max = 'now'),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker=Faker\\Factory::create();\n\n for($i=0;$i<100;$i++){\n \tApp\\Blog::create([\n \t\t'title' => $faker->catchPhrase,\n 'description' => $faker->text,\n 'showns' =>true\n \t\t]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // TO PREVENT CHECKS FOR foreien key in seeding\n\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n\n DB::table('category_product')->truncate();\n\n User::flushEventListeners();\n Category::flushEventListeners();\n Product::flushEventListeners();\n Transaction::flushEventListeners();\n\n $usersQuantities = 1000;\n $categoriesQuantities = 30;\n $productsQuantities = 1000;\n $transactionsQuantities = 1000;\n\n factory(User::class, $usersQuantities)->create();\n factory(Category::class, $categoriesQuantities)->create();\n\n factory(Product::class, $productsQuantities)->create()->each(\n function ($product) {\n $categories = Category::all()->random(mt_rand(1, 5))->pluck('id');\n $product->categories()->attach($categories);\n });\n\n factory(Transaction::class, $transactionsQuantities)->create();\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n $this->call(BusinessTableSeeder::class);\n $this->call(PrinterTableSeeder::class);\n factory(App\\Tag::class,10)->create();\n factory(App\\Category::class,10)->create();\n factory(App\\Subcategory::class,50)->create();\n factory(App\\Provider::class,10)->create();\n factory(App\\Product::class,24)->create()->each(function($product){\n\n $product->images()->saveMany(factory(App\\Image::class, 4)->make());\n\n });\n\n\n factory(App\\Client::class,10)->create();\n }", "public function run()\n {\n Article::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Article::create([\n 'name' => $faker->sentence,\n 'sku' => $faker->paragraph,\n 'price' => $faker->number,\n ]);\n }\n }", "public function run()\n {\n Storage::deleteDirectory('public/products');\n Storage::makeDirectory('public/products');\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n $this->call(ProductSeeder::class);\n Order::factory(4)->create();\n Order_Detail::factory(4)->create();\n Size::factory(100)->create();\n }", "public function run()\n {\n $this->call(RolSeeder::class);\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n Doctor::factory(25)->create();\n Patient::factory(50)->create();\n Status::factory(3)->create();\n Appointment::factory(100)->create();\n }", "public function run()\n\t{\n\t\t\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n\t\t$faker = \\Faker\\Factory::create();\n\n\t\tTodolist::truncate();\n\n\t\tforeach(range(1, 50) as $index)\n\t\t{\n\n\t\t\t$user = User::create([\n\t\t\t\t'name' => $faker->name,\n\t\t\t\t'email' => $faker->email,\n\t\t\t\t'password' => 'password',\n\t\t\t\t'confirmation_code' => mt_rand(0, 9),\n\t\t\t\t'confirmation' => rand(0,1) == 1\n\t\t\t]);\n\n\t\t\t$list = Todolist::create([\n\t\t\t\t'name' => $faker->sentence(2),\n\t\t\t\t'description' => $faker->sentence(4),\n\t\t\t]);\n\n\t\t\t// BUILD SOME TASKS FOR EACH LIST ITEM\n\t\t\tforeach(range(1, 10) as $index) \n\t\t\t{\n\t\t\t\t$task = new Task;\n\t\t\t\t$task->name = $faker->sentence(2);\n\t\t\t\t$task->description = $faker->sentence(4);\n\t\t\t\t$list->tasks()->save($task);\n\t\t\t}\n\n\t\t}\n\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 1'); \n\n\t}", "public function run()\n {\n Campus::truncate();\n Canteen::truncate();\n Dorm::truncate();\n\n $faker = Faker\\Factory::create();\n $schools = School::all();\n foreach ($schools as $school) {\n \tforeach (range(1, 2) as $index) {\n\t \t$campus = Campus::create([\n\t \t\t'school_id' => $school->id,\n\t \t\t'name' => $faker->word . '校区',\n\t \t\t]);\n\n \t$campus->canteens()->saveMany(factory(Canteen::class, mt_rand(2,3))->make());\n $campus->dorms()->saveMany(factory(Dorm::class, mt_rand(2,3))->make());\n\n }\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => 'admin@gmail.com',\n 'password' => bcrypt('admin'),\n 'seq_q'=>'1',\n 'seq_a'=>'admin'\n ]);\n\n // DB::table('bloods')->insert([\n // ['name' => 'A+'],\n // ['name' => 'A-'],\n // ['name' => 'B+'],\n // ['name' => 'B-'],\n // ['name' => 'AB+'],\n // ['name' => 'AB-'],\n // ['name' => 'O+'],\n // ['name' => 'O-'],\n // ]);\n\n \n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n \\App\\User::create([\n 'name'=>'PAPE SAMBA NDOUR',\n 'email'=>'papesambandour@hotmail.com',\n 'password'=>bcrypt('Admin1122'),\n ]);\n\n $faker = Faker::create();\n\n for ($i = 0; $i < 100 ; $i++)\n {\n $firstName = $faker->firstName;\n $lastName = $faker->lastName;\n $niveau = \\App\\Niveau::inRandomOrder()->first();\n \\App\\Etudiant::create([\n 'prenom'=>$firstName,\n 'nom'=>$lastName,\n 'niveau_id'=>$niveau->id\n ]);\n }\n\n\n }", "public function run()\n {\n //\n DB::table('foods')->delete();\n\n Foods::create(array(\n 'name' => 'Chicken Wing',\n 'author' => 'Bambang',\n 'overview' => 'a deep-fried chicken wing, not in spicy sauce'\n ));\n\n Foods::create(array(\n 'name' => 'Beef ribs',\n 'author' => 'Frank',\n 'overview' => 'Slow baked beef ribs rubbed in spices'\n ));\n\n Foods::create(array(\n 'name' => 'Ice cream',\n 'author' => 'Lou',\n 'overview' => ' A sweetened frozen food typically eaten as a snack or dessert.'\n ));\n\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n News::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 10; $i++) {\n News::create([\n 'title' => $faker->sentence,\n 'summary' => $faker->sentence,\n 'content' => $faker->paragraph,\n 'imagePath' => '/img/exclamation_mark.png'\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 3)->create();\n factory(App\\Models\\Category::class, 3)\n ->create()\n ->each(function ($u) {\n $u->courses()->saveMany(factory(App\\Models\\Course::class,3)->make())->each(function ($c){\n $c->exams()->saveMany(factory(\\App\\Models\\Exam::class,3)->make())->each(function ($e){\n $e->questions()->saveMany(factory(\\App\\Models\\Question::class,4)->make())->each(function ($q){\n $q->answers()->saveMany(factory(\\App\\Models\\Answer::class,4)->make())->each(function ($a){\n $a->correctAnswer()->save(factory(\\App\\Models\\Correct_answer::class)->make());\n });\n });\n });\n });\n\n });\n\n }", "public function run()\n {\n \\DB::table('employees')->delete();\n\n $faker = \\Faker\\Factory::create('ja_JP');\n\n $role_id = ['1','2','3'];\n\n for ($i = 0; $i < 10; $i++) {\n \\App\\Models\\Employee::create([\n 'last_name' =>$faker->lastName() ,\n 'first_name' => $faker->firstName(),\n 'mail' => $faker->email(),\n 'password' => Hash::make( \"password.$i\"),\n 'birthday' => $faker->date($format='Y-m-d',$max='now'),\n 'role_id' => $faker->randomElement($role_id)\n ]);\n }\n }", "public function run()\n {\n\n DB::table('clients')->delete();\n DB::table('trips')->delete();\n error_log('empty tables done.');\n\n $random_cities = City::inRandomOrder()->select('ar_name')->limit(5)->get();\n $GLOBALS[\"random_cities\"] = $random_cities->pluck('ar_name')->toArray();\n\n $random_airlines = Airline::inRandomOrder()->select('code')->limit(5)->get();\n $GLOBALS[\"random_airlines\"] = $random_airlines->pluck('code')->toArray();\n\n factory(App\\Client::class, 5)->create();\n error_log('Client seed done.');\n\n\n factory(App\\Trip::class, 50)->create();\n error_log('Trip seed done.');\n\n\n factory(App\\Quicksearch::class, 10)->create();\n error_log('Quicksearch seed done.');\n }", "public function run()\n {\n // Admins\n User::factory()->create([\n 'name' => 'Zaiman Noris',\n 'username' => 'rognales',\n 'email' => 'rognales@gmail.com',\n 'active' => true,\n ]);\n\n User::factory()->create([\n 'name' => 'Affiq Rashid',\n 'username' => 'affiqr',\n 'email' => 'sonic21danger@gmail.com',\n 'active' => true,\n ]);\n\n // Only seed test data in non-prod\n if (! app()->isProduction()) {\n Member::factory()->count(1000)->create();\n Staff::factory()->count(1000)->create();\n\n Participant::factory()\n ->addSpouse()\n ->addChildren()\n ->addInfant()\n ->addOthers()\n ->count(500)\n ->hasUploads(2)\n ->create();\n }\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n UserSeeder::class,\n ]);\n\n \\App\\Models\\Category::factory(4)->create();\n \\App\\Models\\View::factory(6)->create();\n \\App\\Models\\Room::factory(8)->create();\n \n $rooms = \\App\\Models\\Room::all();\n // \\App\\Models\\User::all()->each(function ($user) use ($rooms) { \n // $user->rooms()->attach(\n // $rooms->random(rand(1, \\App\\Models\\Room::max('id')))->pluck('id')->toArray()\n // ); \n // });\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n Employee::factory()->create(['email' => 'sovon.kucse@gmail.com']);\n Brand::factory()->count(3)->create();\n $this->call([\n TagSeeder::class,\n AttributeSeeder::class,\n AttributeValueSeeder::class,\n ProductSeeder::class,\n ]);\n }", "public function run()\n {\n $this->call(RolesTableSeeder::class); // crée les rôles\n $this->call(PermissionsTableSeeder::class); // crée les permissions\n\n factory(Employee::class,3)->create();\n factory(Provider::class,1)->create();\n\n $user = User::create([\n 'name'=>'Alioune Bada Ndoye',\n 'email'=>'abada@gmail.com',\n 'phone'=>'773012470',\n 'password'=>bcrypt('123'),\n ]);\n Employee::create([\n 'job'=>'Informaticien',\n 'user_id'=>User::where('email','abada@gmail.com')->first()->id,\n 'point_id'=>Point::find(1)->id,\n ]);\n $user->assignRole('admin');\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(User::class, 1)\n \t->create(['email' => 'eddyjaair@gmail.com']);\n\n factory(Category::class, 5)->create();\n }", "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n $this->call(rootSeed::class);\n factory(App\\Models\\Egresado::class,'hombre',15)->create();\n factory(App\\Models\\Egresado::class,'mujer',15)->create();\n factory(App\\Models\\Administrador::class,5)->create();\n factory(App\\Models\\Notificacion::class,'post',10)->create();\n factory(App\\Models\\Notificacion::class,'mensaje',5)->create();\n factory(App\\Models\\Egresado::class,'bajaM',5)->create();\n factory(App\\Models\\Egresado::class,'bajaF',5)->create();\n factory(App\\Models\\Egresado::class,'suscritam',5)->create();\n factory(App\\Models\\Egresado::class,'suscritaf',5)->create();\n }", "public function run()\n {\n \n User::factory(1)->create([\n 'rol'=>'EPS'\n ]);\n Person::factory(10)->create();\n $this->call(EPSSeeder::class);\n $this->call(OfficialSeeder::class);\n $this->call(VVCSeeder::class);\n $this->call(VaccineSeeder::class);\n }", "public function run()\n {\n // $faker=Faker::create();\n // foreach(range(1,100) as $index)\n // {\n // DB::table('products')->insert([\n // 'name' => $faker->name,\n // 'price' => rand(10,100000)/100\n // ]);\n // }\n }", "public function run()\n {\n $this->call([\n LanguagesTableSeeder::class,\n ListingAvailabilitiesTableSeeder::class,\n ListingTypesTableSeeder::class,\n RoomTypesTableSeeder::class,\n AmenitiesTableSeeder::class,\n UsersTableSeeder::class,\n UserLanguagesTableSeeder::class,\n ListingsTableSeeder::class,\n WishlistsTableSeeder::class,\n StaysTableSeeder::class,\n GuestsTableSeeder::class,\n TripsTableSeeder::class,\n ReviewsTableSeeder::class,\n RatingsTableSeeder::class,\n PopularDestinationsTableSeeder::class,\n ImagesTableSeeder::class,\n ]);\n\n // factory(App\\User::class, 5)->states('host')->create();\n // factory(App\\User::class, 10)->states('hostee')->create();\n\n // factory(App\\User::class, 10)->create();\n // factory(App\\Models\\Listing::class, 30)->create();\n }", "public function run()\n {\n Schema::disableForeignKeyConstraints();\n Grade::truncate();\n Schema::enableForeignKeyConstraints();\n\n $faker = \\Faker\\Factory::create();\n\n for ($i = 0; $i < 10; $i++) {\n Grade::create([\n 'letter' => $faker->randomElement(['а', 'б', 'в']),\n 'school_id' => $faker->unique()->numberBetween(1, School::count()),\n 'level' => 1\n ]);\n }\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(App\\User::class,5)->create();//5 User created\n factory(App\\Model\\Genre::class,5)->create();//5 genres\n factory(App\\Model\\Film::class,6)->create();//6 films\n factory(App\\Model\\Comment::class, 20)->create();// 20 comments\n }", "public function run()\n {\n\n $this->call(UserSeeder::class);\n factory(Empresa::class,10)->create();\n factory(Empleado::class,50)->create();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n User::create([\n 'name' => 'jose luis',\n 'email' => 'barbozagonzalesjose@gmail.com',\n 'password' => bcrypt('xxxxxx'),\n 'role' => 'admin',\n ]);\n\n Category::create([\n 'name' => 'inpods',\n 'description' => 'auriculares inalambricos que funcionan con blouthue genial'\n ]);\n\n Category::create([\n 'name' => 'other',\n 'description' => 'otra cosa diferente a un inpods'\n ]);\n\n\n /* Create 10 products */\n Product::factory(10)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class)->create([\n 'email' => 'russell@gmail.com',\n 'name' => 'Russell'\n ]);\n\n factory(User::class)->create([\n 'email' => 'bitfumes@gmail.com',\n 'name' => 'Bitfumes'\n ]);\n\n factory(User::class)->create([\n 'email' => 'paul@gmail.com',\n 'name' => 'Paul'\n ]);\n }", "public function run()\n {\n $user_ids = [1,2,3];\n $faker = app(\\Faker\\Generator::class);\n $posts = factory(\\App\\Post::class)->times(50)->make()->each(function($post) use ($user_ids,$faker){\n $post->user_id = $faker->randomElement($user_ids);\n });\n \\App\\Post::insert($posts->toArray());\n }", "public function run()\n {\n // Vaciar la tabla.\n Favorite::truncate();\n $faker = \\Faker\\Factory::create();\n // Crear artículos ficticios en la tabla\n\n // factory(App\\Models\\User::class, 2)->create()->each(function ($user) {\n // $user->users()->saveMany(factory(App\\Models\\User::class, 25)->make());\n //});\n }", "public function run()\n\t{\n\t\t$this->call(ProductsTableSeeder::class);\n\t\t$this->call(CategoriesTableSeeder::class);\n\t\t$this->call(BrandsTableSeeder::class);\n\t\t$this->call(ColorsTableSeeder::class);\n\n\t\t$products = \\App\\Product::all();\n \t$categories = \\App\\Category::all();\n \t$brands = \\App\\Brand::all();\n \t$colors = \\App\\Color::all();\n\n\t\tforeach ($products as $product) {\n\t\t\t$product->colors()->sync($colors->random(3));\n\n\t\t\t$product->category()->associate($categories->random(1)->first());\n\t\t\t$product->brand()->associate($brands->random(1)->first());\n\n\t\t\t$product->save();\n\t\t}\n\n\t\t// for ($i = 0; $i < count($products); $i++) {\n\t\t// \t$cat = $categories[rand(0,5)];\n\t\t// \t$bra = $brands[rand(0,7)];\n\t\t// \t$cat->products()->save($products[$i]);\n\t\t// \t$bra->products()->save($products[$i]);\n\t\t// }\n\n\t\t// $products = factory(App\\Product::class)->times(20)->create();\n\t\t// $categories = factory(App\\Category::class)->times(6)->create();\n\t\t// $brands = factory(App\\Brand::class)->times(8)->create();\n\t\t// $colors = factory(App\\Color::class)->times(15)->create();\n\t}", "public function run()\n {\n /*$this->call(UsersTableSeeder::class);\n $this->call(GroupsTableSeeder::class);\n $this->call(TopicsTableSeeder::class);\n $this->call(CommentsTableSeeder::class);*/\n DB::table('users')->insert([\n 'name' => 'pkw',\n 'email' => 'pkw@pkw.com',\n 'password' => bcrypt('secret'),\n 'type' => '1'\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker::create();\n foreach (range(1,200) as $index) {\n DB::table('users')->insert([\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'phone' => $faker->randomDigitNotNull,\n 'address'=> $faker->streetAddress,\n 'password' => bcrypt('secret'),\n ]);\n }\n }", "public function run()\n {\n $this->call(UsersSeeder::class);\n User::factory(2)->create();\n Company::factory(2)->create();\n\n }", "public function run()\n {\n echo PHP_EOL , 'seeding roles...';\n\n Role::create(\n [\n 'name' => 'Admin',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Principal',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Teacher',\n 'deletable' => false,\n ]\n );\n\n Role::create(\n [\n 'name' => 'Student',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Parents',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Accountant',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Librarian',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Receptionist',\n 'deletable' => false,\n ]\n );\n\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->call(QuestionTableSeed::class);\n\n $this->call([\n QuestionTableSeed::class,\n AlternativeTableSeed::class,\n ScheduleActionTableSeeder::class,\n UserTableSeeder::class,\n CompanyClassificationTableSeed::class,\n ]);\n // DB::table('clients')->insert([\n // 'name' => 'Empresa-02',\n // 'email' => 'empresa02@gmail.com',\n // 'password' => bcrypt('07.052.477/0001-60'),\n // ]);\n }", "public function run()\n {\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 5; $i++) {\n Runner::create([\n 'external_id' => $faker->uuid,\n 'name' => $faker->name,\n 'race_id' =>rand(1,5),\n 'age' => rand(30, 45),\n 'sex' => $faker->randomElement(['male', 'female']),\n 'color' => $faker->randomElement(['#ecbcb4', '#d1a3a4']),\n ]);\n }\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n User::factory()->create([\n 'name' => 'Carlos',\n 'email' => 'carlos@email.com',\n 'email_verified_at' => now(),\n 'password' => bcrypt('123456'), // password\n 'remember_token' => Str::random(10),\n ]);\n \n $this->call([PostsTableSeeder::class]);\n $this->call([TagTableSeeder::class]);\n\n }", "public function run()\n {\n $this->call(AlumnoSeeder::class);\n //Alumnos::factory()->count(30)->create();\n //DB::table('alumnos')->insert([\n // 'dni_al' => '13189079',\n // 'nom_al' => 'Jose',\n // 'ape_al' => 'Araujo',\n // 'rep_al' => 'Principal',\n // 'esp_al' => 'Tecnologia',\n // 'lnac_al' => 'Valencia'\n //]);\n }", "public function run()\n {\n Eloquent::unguard();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n // $this->call([\n // CountriesTableSeeder::class,\n // ]);\n\n factory(App\\User::class, 100)->create();\n factory(App\\Type::class, 10)->create();\n factory(App\\Item::class, 100)->create();\n factory(App\\Order::class, 1000)->create();\n\n $items = App\\Item::all();\n\n App\\Order::all()->each(function($order) use ($items) {\n\n $n = rand(1, 10);\n\n $order->items()->attach(\n $items->random($n)->pluck('id')->toArray()\n , ['quantity' => $n]);\n\n $order->total = $order->items->sum(function($item) {\n return $item->price * $item->pivot->quantity;\n });\n\n $order->save();\n\n });\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create(\n [\n 'email'=>'izzanniroshlei@gmail.com',\n 'name'=>'izzanni',\n \n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'aina@gmail.com',\n 'name'=>'aina',\n\n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'sab@gmail.com',\n 'name'=>'sab',\n\n ]\n );\n }", "public function run()\n {\n\n factory('App\\Models\\Pessoa', 60)->create();\n factory('App\\Models\\Profissional', 10)->create();\n factory('App\\Models\\Paciente', 50)->create();\n $this->call(UsersTableSeeder::class);\n $this->call(ProcedimentoTableSeeder::class);\n // $this->call(PessoaTableSeeder::class);\n // $this->call(ProfissionalTableSeeder::class);\n // $this->call(PacienteTableSeeder::class);\n // $this->call(AgendaProfissionalTableSeeder::class);\n }", "public function run()\n {\n //Acá se define lo que el seeder va a hacer.\n //insert() para insertar datos.\n //Array asociativo. La llave es el nombre de la columna.\n// DB::table('users')->insert([\n// //Para un solo usuario.\n// 'name' => 'Pedrito Perez',\n// 'email' => 'pedrito@juase.com',\n// 'password' => bcrypt('123456')\n// ]);//Se indica el nombre de la tabla.\n\n //Crea 50 usuarios (sin probar)\n// factory(App\\User::class, 50)->create()->each(function($u) {\n// $u->posts()->save(factory(App\\Post::class)->make());\n// });\n\n factory(App\\User::class, 10)->create(); //Así se ejecuta el model factory creado en ModelFactory.php\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //nhập liệu mẫu cho bảng users\n DB::table('users')->insert([\n \t['id'=>'1001', 'name'=>'Phan Thị Hiền', 'email'=>'hienphan18112015@gmail.com', 'password'=>'123456', 'isadmin'=>1],\n \t['id'=>'1002', 'name'=>'Phan Thị Hà', 'email'=>'haphan@gmail.com', 'password'=>'111111', 'isadmin'=>0]\n ]);\n\n\n //nhập liệu mẫu cho bảng suppliers\n DB::table('suppliers')->insert([\n \t['name'=>'FPT', 'address'=>'151 Hùng Vương, TP. Đà Nẵng', 'phonenum'=>'0971455395'],\n \t['name'=>'Điện Máy Xanh', 'address'=>'169 Phan Châu Trinh, TP. Đà Nẵng', 'phonenum'=>'0379456011']\n ]);\n\n\n //Bảng phiếu bảo hành\n }", "public function run()\n {\n \t// DB::table('categories')->truncate();\n // factory(App\\Models\\Category::class, 10)->create();\n Schema::disableForeignKeyConstraints();\n Category::truncate();\n $faker = Faker\\Factory::create();\n\n $categories = ['SAMSUNG','NOKIA','APPLE','BLACK BERRY'];\n foreach ($categories as $key => $value) {\n Category::create([\n 'name'=>$value,\n 'description'=> 'This is '.$value,\n 'markup'=> rand(10,100),\n 'category_id'=> null,\n 'UUID' => $faker->uuid,\n ]);\n }\n }" ]
[ "0.8013876", "0.79804534", "0.7976992", "0.79542726", "0.79511505", "0.7949612", "0.794459", "0.7942486", "0.7938189", "0.79368967", "0.79337025", "0.78924936", "0.78811055", "0.78790957", "0.78787595", "0.787547", "0.7871811", "0.78701615", "0.7851422", "0.7850352", "0.7841468", "0.7834583", "0.7827792", "0.7819104", "0.78088796", "0.7802872", "0.7802348", "0.78006834", "0.77989215", "0.7795819", "0.77903426", "0.77884805", "0.77862066", "0.7778816", "0.7777486", "0.7765202", "0.7762492", "0.77623445", "0.77621746", "0.7761383", "0.77606887", "0.77596676", "0.7757001", "0.7753607", "0.7749522", "0.7749292", "0.77466977", "0.7729947", "0.77289546", "0.772796", "0.77167094", "0.7714503", "0.77140456", "0.77132195", "0.771243", "0.77122366", "0.7711113", "0.77109736", "0.7710777", "0.7710086", "0.7705484", "0.770464", "0.7704354", "0.7704061", "0.77027386", "0.77020216", "0.77008796", "0.7698617", "0.76985973", "0.76973504", "0.7696405", "0.7694293", "0.7692694", "0.7691264", "0.7690576", "0.76882726", "0.7687433", "0.7686844", "0.7686498", "0.7685065", "0.7683827", "0.7679184", "0.7678287", "0.76776296", "0.76767945", "0.76726556", "0.76708084", "0.76690495", "0.766872", "0.76686716", "0.7666299", "0.76625943", "0.7662227", "0.76613766", "0.7659881", "0.7656644", "0.76539344", "0.76535016", "0.7652375", "0.7652313", "0.7652022" ]
0.0
-1
if( $item['SKU'] != '10001826F' ) return null ;
public function _marketingItemV20($item,$isLimitStrategy,$isLimitStart,$isLimitEnd,$isLimiting , $unoinAccountNames , $isNoSaleTime ){ //debug($item) ; /** * 初始化计算需求所要数据 * @$listPrice Listing价格 * @$execPrice 设置最低限价 * @$secondPrice 最低价格,除联盟卖家之外的 * @$limitPriceLargerPrice 比限价大的价格 */ $listPrice = $item['LIST_PRICE'] ; $execPrice = $item['LIMIT_PRICE'] ;//限价 if( empty($listPrice) || $listPrice == 0 ){ $listPrice = $execPrice ; } //if( $item['SKU'] != '10000207-1' ) return null ; $fbaPriceArray = $item['FBA_PRICE_ARRAY'] ; //如果采集到的FBA价格为空,则不进行改listing调价 if( empty( $fbaPriceArray ) ){ if( $execPrice > $listPrice ){ return array("SKU"=>$item['SKU'],"FEED_PRICE"=>$execPrice) ; }else{ return null ; } } //从价格中剔除联盟账号 $fbaPriceArray = json_decode($fbaPriceArray) ; $fixFbaPriceArray = array() ; foreach( $fbaPriceArray as $fbaPrice ){ $fbaPrice = get_object_vars($fbaPrice) ; $accoutName = $fbaPrice['seller'] ; $isUnionAccount = false ; foreach($unoinAccountNames as $unionAccount){ $unitAccountName = $unionAccount['accountName'] ; if( $accoutName == $unitAccountName ){ $isUnionAccount = true ; break ; } } if( !$isUnionAccount ){ $fixFbaPriceArray[] = $fbaPrice ; } } //得到剔除联盟账号的价格列表$fixFbaPriceArray //获取剔除后的最低价 $secondPrice = 0 ; $limitPriceLargerPrice = 0 ; foreach( $fixFbaPriceArray as $fixFbaPrice ){ $_price = $fixFbaPrice['price'] ; if( $secondPrice== 0 ){ $secondPrice = $_price ;//初始化出自己联盟卖家外价格最低的 } if( $_price >= $execPrice && $limitPriceLargerPrice == 0 ){ //$limitPriceLargerPrice = $_price ; $limitPriceLargerPrice = $execPrice+0.03;//临时i修改 } } //计算最低价卖家数为多少,如果小于2,则设置价格为最低价 $secondPriceCount = 0 ; foreach( $fixFbaPriceArray as $fixFbaPrice ){ $_price = $fixFbaPrice['price'] ; if( $secondPrice == $_price ){ $secondPriceCount++ ; } } echo '<br/>'.$secondPrice.' '.$listPrice.'<br/>' ; /** * @如果是限时执行,则区分限时开始、结束、限时进行中...... */ if( $isLimitStrategy ){ if( $isLimitStart ){//限时调价开始,记录当前价格到数据库 $sql= "update sc_amazon_account_product set lt_before_price='{@#ltBeforePrice#}' where id='{@#id#}'" ; $this->Utils->exeSql($sql,array("ltBeforePrice"=>$listPrice,"id"=>$item['ID'] )) ; }else if($isLimitEnd){//限时调价结束 //还原价格 $isLimitStrategy = false ; //return array("SKU"=>$item['SKU'],"FEED_PRICE"=>$item['LT_BEFORE_PRICE'] ) ; }else if($isLimiting){//限时调价中 //调价中,下面做处理 } } /** *@如果除了同盟卖家之外,不存在其他卖家,则价格只与限价进行比较, * 如果价格大于或等于限价,则不进行调价;如果小于限价,则价格向上调整至限价 */ $fbaPriceCount = count( $fixFbaPriceArray ) ; if( $fbaPriceCount <= 0 ){ //如果除了同盟卖家之外,没有其他卖家,则不进行调价 $fixPrice = $execPrice * 0.2 ; if( $fixPrice <1 ){ $fixPrice = 1 ; } if( $listPrice >= ($fixPrice+$execPrice) ){ return null ; }else{ return array("SKU"=>$item['SKU'],"FEED_PRICE"=>($fixPrice+$execPrice) ) ; } /* if( $listPrice >= $execPrice ){ return null ; }else{ return array("SKU"=>$item['SKU'],"FEED_PRICE"=>$execPrice ) ; }*/ } /** * @处理同盟卖家,还吃了再其他卖家 */ //当前价格比其他FBA卖家最低价格高 /** * 1、如果自己价格大于其他卖家最低价格 * C1:如果其他卖家价格最低价格($secondPrice)大于限价,则在限时营销时,调整为$secondPrice-0.01,否则调整为其他卖家价格最低价格 * C2:如果其他卖家最低价格等于限价,则自己价格调整为限价 * C3:如果其他卖家价格小于限价,则分几种情况 * 如果不存在比限价大的价格,这调整价格为限价($limitPriceLargerPrice==0)。 * 在限时营销时段,取比限价大的价格$limitPriceLargerPrice,然后$limitPriceLargerPrice-0.01 * 如果在其他时段,调整价格为比限价大的价格$limitPriceLargerPrice */ if( $listPrice > $secondPrice ){ if( $secondPrice > $execPrice ){//如果最低价格大于限价 if( !$isLimitStart && $secondPriceCount <=2 ){ return array("SKU"=>$item['SKU'],"FEED_PRICE"=>$secondPrice ) ; } if( $isLimitStrategy &&( $isLimiting || $isLimitStart ) ){//如果限时调价开始或进行中... return array("SKU"=>$item['SKU'],"FEED_PRICE"=>$secondPrice - 0.01 ) ; }else{ return array("SKU"=>$item['SKU'],"FEED_PRICE"=>$secondPrice ) ; } }else if( $secondPrice == $execPrice ){ //设置价格为限价 return array("SKU"=>$item['SKU'],"FEED_PRICE"=>$execPrice ) ; }else if( $secondPrice < $execPrice ){ //最低价格小于限价 if( $limitPriceLargerPrice == 0 ){ return array("SKU"=>$item['SKU'],"FEED_PRICE"=>$execPrice ) ; } if( $isLimitStrategy &&( $isLimiting || $isLimitStart ) ){//如果限时调价开始或进行中... return array("SKU"=>$item['SKU'],"FEED_PRICE"=>max($limitPriceLargerPrice - 0.01,$execPrice) ) ;//限价后面价格-0.01 }else{ return array("SKU"=>$item['SKU'],"FEED_PRICE"=>max($limitPriceLargerPrice - 0.01,$execPrice) ) ; } } return null ; } //如果价格就是FBA最低价格,判断是否存在多个卖家都是最低价格 /** * 2、如果自己价格与其他卖家最低价格一致的话 * C1:如果当前价格低于限价 * 如果不存在比限价大的其他卖家价格,则调整为限价 * 如果存在,则调整为其他卖家最低价格-0.01 * C2:如果当前价格等于限价,则不进行处理 * C3:如果当前价格大于限价 * 在限时营销时段设置为当前价格-0.01,保持最低价 * 如果其他时段,保持当前价格 */ if($listPrice == $secondPrice ){ if( $listPrice < $execPrice ){ //如果其他卖家最低价格小于限价 if( $limitPriceLargerPrice == 0 ){ return array("SKU"=>$item['SKU'],"FEED_PRICE"=>$execPrice ) ; } return array("SKU"=>$item['SKU'],"FEED_PRICE"=>max($limitPriceLargerPrice - 0.01,$execPrice) ) ; } if( $listPrice == $execPrice ){ return null ;//array("SKU"=>$item['SKU'],"FEED_PRICE"=>$execPrice ) ; } if( $listPrice > $execPrice ){ if( !$isLimitStart && $secondPriceCount <=2 ){ return array("SKU"=>$item['SKU'],"FEED_PRICE"=>$secondPrice ) ; } if( $isLimitStrategy &&( $isLimiting || $isLimitStart ) ){//如果限时调价开始或进行中... return array("SKU"=>$item['SKU'],"FEED_PRICE"=>$listPrice - 0.01 ) ;//最低价格-0.01 }else{ return null ;//array("SKU"=>$item['SKU'],"FEED_PRICE"=>$secondPrice ) ; } } } if( $listPrice < $secondPrice ){ if( !$isLimitStart && $secondPriceCount <=2 ){ return array("SKU"=>$item['SKU'],"FEED_PRICE"=>$secondPrice ) ; } if( $isLimitStrategy &&( $isLimiting || $isLimitStart ) ){//如果限时调价开始或进行中... return array("SKU"=>$item['SKU'],"FEED_PRICE"=>$secondPrice - 0.01 ) ;//最低价格-0.01 }else{ return array("SKU"=>$item['SKU'],"FEED_PRICE"=>$secondPrice ) ; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function item_quantities_none() {\r\n //if( isset($edd_options['coopshares_fair_checkout_info']) ) {\r\n // return true;\r\n //} else {\r\n return false;\r\n //}\r\n}", "public function getProductSKU()\n {\n }", "public function findItem(string $sku): ?CartItem;", "function _checkIfSkuExists($sku, $connection_read){ \n $sql = \"SELECT COUNT(*) AS count_no FROM catalog_product_entity WHERE sku = ?\";\n $count = $connection_read->fetchOne($sql, array($sku));\n if($count > 0){\n return true;\n }else{\n return false;\n }\n}", "private function getExistingSku($sku)\n {\n return $this->_oldSku[strtolower($sku)];\n }", "function kembalikanInventory($id){\n return false;\n}", "function no_items() {\n\t\t_e( 'No used voucher codes yet.', 'woovoucher' );\n\t}", "public function getItemSku();", "public function getSKU(): ?string\n {\n return isset($this->SKU) ? $this->SKU : null;\n }", "function IfPurchased($uid, $fid)\n{\n\t$result = mysql_query(\"SELECT * FROM purchases WHERE uid='$uid' and fid='$fid'\") or die('can not find any purchases');\n\tif(mysql_num_rows($result) == 0) {\t\n\t\treturn false;\t\n\t} else {\n\t\treturn true;\n\t}\n}", "public function getUniqueKey()\n\t{\n\t\t$product = $this->getCurrent();\n\t\t\n\t\tif (is_null($product)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$sku = $product->getSku();\n\t\tMage::log(\"Got SKU: $sku\");\n\t\t\n\t\treturn $sku;\n\t}", "public function addItem(string $sku): bool;", "public function verifyAmazonSku(Varien_Event_Observer $observer)\n {\n $product = $observer->getProduct();\n if ($product->getAmazonMcfEnabled()) {\n /**\n * @var Amazon_MCF_Model_Service_Inventory $service\n */\n $service = Mage::getModel('amazon_mcf/service_inventory');\n /**\n *\n *\n * @var Amazon_MCF_Helper_Data $helper\n */\n $helper = Mage::helper('amazon_mcf');\n $sku = $product->getAmazonMcfSku()\n ? $product->getAmazonMcfSku() : $product->getSku();\n\n $response = $service->getFulfillmentInventoryList(\n array('member' => array($sku))\n );\n\n if ($response) {\n // if there is a list of updates to provided skus, process them.\n $supplyList = $response->getListInventorySupplyResult()\n ->getInventorySupplyList()\n ->getmember();\n\n $asin = $supplyList[0]->getASIN();\n if (!$asin) {\n $helper->logInventory(\n \"Product configured to be FBA but sku ($sku) \n not matched in Seller Central\"\n );\n $message = \"The SKU entered does not have an associated Seller \n SKU at Amazon. Please check the SKU value matches \n between systems: \";\n\n Mage::getSingleton(\"adminhtml/session\")\n ->addWarning($helper->__($message) . $sku);\n }\n }\n }\n }", "public function getSellerSKU() \n {\n return $this->_fields['SellerSKU']['FieldValue'];\n }", "function no_items() {\n _e( 'No vendor found!', 'wp-erp-ac' );\n }", "public function getSKU()\n {\n return $this->getValue('nb_catalog_item_lang_sku');\n }", "public function isProductTypeWithQty(): ?bool;", "function getSkus() {\n\techo \"Getting Skus </br>\";\n\t$response = getRequest('/api/sku');\n\tprintInfo($response);\n}", "public function getSku($i = 0)\n {\n if (isset($this->prepList[$i]['SellerSKU'])) {\n return $this->prepList[$i]['SellerSKU'];\n } else {\n return false;\n }\n }", "function isDisabled()\n{\n $obDB = new cstDB();\n $obDB->doQuery('SELECT ownerID from AuctionItems where itemID='.$_GET[\"itemID\"].' LIMIT 1');\n $result=$obDB->fetchAssocResult();\n \n \n if(!isset($_SESSION[\"user\"]) )\n {\n return \"disabled\";\n }\n else if(count($result)!=0)\n {\n if($result[0][\"ownerID\"]==$_SESSION[\"user\"])\n {\n return \"disabled\";\n }\n }\n \n return \"\";\n}", "public function generatesku()\n {\n $newsku = 111111;\n //We need to generate a random sku number that does not already exist\n $exists = true;\n $newsku = mt_rand(100000,999999);\n do {\n $product = $this->Product->findBysku($newsku);\n if(empty($product))\n $exists = false;\n } while($exists);\n return $newsku;\n }", "function checkCartForItem($addItem, $cartItems) {\n if (is_array($cartItems) && !(is_null($cartItems)))\n {\n foreach($cartItems as $key => $item) \n {\n if($item['productId'] == $addItem)\n return true;\n }\n }\n return false;\n}", "public function hasItemdata(){\n return $this->_has(6);\n }", "private function checkwishlist($productId){\n\t\t$this->db->where('UserID', $this->session->userdata('userid'));\n\t\t$this->db->where('Product_Id', $productId);\n\t\t$query=$this->db->get('tbl_wishlist');\n\t\tif($query->num_rows()>0){\n\t\t\treturn false;\n\t\t}\n\t\telse{\n\t\t\treturn true;\n\t\t}\n\t}", "function checkCartForItem($item)\n {\n foreach ($_SESSION['cart'] as $key => $value) {\n if ($_SESSION['cart'][$key]['name'] == $item) {\n return $key;\n }\n }\n return -1;\n }", "public function getSKU()\n {\n return $this->sKU;\n }", "public function hasItemdata(){\n return $this->_has(22);\n }", "function stockremove_check_license_use()\n {\n $q = $this->db->where('action_type', 'install')\n ->where('license', $this->input->post('license_num'))\n ->where('company_id', $this->session->userdata('company_id'))\n ->limit(1)->get('software');\n\n if ($q->num_rows == 1)\n {\n return true;\n\n } else {\n\n return false;\n }\n\n }", "public function getSku(): ?string\n {\n return isset($this->Sku) ? $this->Sku : null;\n }", "function validate($con, $mysql_table, $lic, $appId)\n{\n $valid = FALSE;\n\t\n\t$result = mysql_query(\"SELECT Type, System, NumUsers, EndDate, Products, DomainSuffix FROM $mysql_table WHERE (LicenseKey = '$lic')\")\n\tor die(\"1,\" . mysql_error());\n\t\n\twhile($row = mysql_fetch_array($result)) {\n\t $valid = true;\n $productId = intval($row['Products']);\n if($productId & intval($appId) == 0)\n echo \"1,License does not include this product\";\n else\n \t echo \"0,\" . $row['DomainSuffix'] . \",\" . $row['EndDate'] . \",\" . $row['System'] . \",\" . $row['Type'] . \",\" . $row['NumUsers'];\n\t}\n\tif(!$valid)\n\t echo \"1,License Key Not Found\";\n\n\tmysql_close($con);\n}", "function is_purchased($song){\n if (in_array($song, $this->purchased_songs)){\n return True;\n }\n return False;\n }", "public function getSku();", "public function getSku();", "function flashcard_scale_used_anywhere($scaleid) {\n return false;\n}", "public function getSku(): ?string {\n $val = $this->getBackingStore()->get('sku');\n if (is_null($val) || is_string($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'sku'\");\n }", "public function message()\n {\n return 'SKU Can Not Be Same';\n }", "function product_novendor()\n\t{\n\t\tglobal $log;\n\t\t$log->debug(\"Entering product_novendor() method ...\");\n\t\t$query = \"SELECT ec_products.productname, ec_products.deleted\n\t\t\tFROM ec_products\n\t\t\tWHERE ec_products.deleted = 0\n\t\t\tAND ec_products.vendor_id is NULL\";\n\t\t$result=$this->db->query($query);\n\t\t$log->debug(\"Exiting product_novendor method ...\");\n\t\treturn $this->db->num_rows($result);\n\t}", "private function isSkuExist($sku)\n {\n $sku = strtolower($sku);\n return isset($this->_oldSku[$sku]);\n }", "function generateSku(){\n\t\t$characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';\n\t\t$sku = mt_rand(10000, 99999) . mt_rand(10000, 99999) . $characters[mt_rand(0, strlen($characters) - 1)];\n\t\treturn str_shuffle($sku);\n\t}", "function exists(){\n\t\t$sql = 'SELECT barcode FROM barcodes\n\t\t\t\tWHERE barcode = \"'.$this->code.'\"';\n\t\t$this->DB->query($sql);\n\t\tif(!$this->DB->isEmpty())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->error = 'The barcode <strong>'.$this->code.'</strong> was not properly pre-registered. Please put this wristband aside, and distribute a new one.';\n\t\t\treturn false;\n\t\t}\n\t}", "function checkSung()\n {\n return self::SUNG;\n }", "public function isSetSellerSKU()\n {\n return !is_null($this->_fields['SellerSKU']['FieldValue']);\n }", "function is_wished($product_id)\n {\n if ($this->session->userdata('user_login') == 'yes') {\n $user = $this->session->userdata('user_id');\n //$wished = array('0');\n if ($this->get_field('user', $user, 'wishlist') !== '') {\n $wished = json_decode($this->get_field('user', $user, 'wishlist'));\n } else {\n $wished = array(\n '0'\n );\n }\n if (in_array($product_id, $wished)) {\n return 'yes';\n } else {\n return 'no';\n }\n } else {\n return 'no';\n }\n }", "function getfaircoin_only_one_item_on_cart($download_id) {\r\n //echo 'CART CONTENTS: ';\r\n //print_r($cart_contents);\r\n //$cart_contents = edd_get_cart_contents();\r\n //if($cart_contents) return false;\r\n //else return $download_id;\r\n edd_empty_cart();\r\n}", "private static function productInArray($sku_id, $items)\n {\n foreach ($items as $it) {\n if ($it['sku_id'] == $sku_id) {\n return $it;\n }\n }\n return false;\n }", "public function get_item_notnull()\n {\n $this->db->select(\"komoku_id,kubun,komoku_name_1\");\n $this->db->from('m_komoku');\n $this->db->where('del_flg','0');\n $this->db->where('kubun','000');\n $this->db->order_by('komoku_name_1', 'ASC');\n // $this->db->order_by('kubun', 'ASC');\n\n $query = $this->db->get();\n $result = $query->result_array();\n if (sizeof($result) > 0) {\n return $result;\n }\n return null;\n }", "function stockremove_check_license_already_removed()\n {\n $q = $this->db->where('action_type', 'stock remove')\n ->where('license', $this->input->post('license_num'))\n ->where('company_id', $this->session->userdata('company_id'))\n ->limit(1)->get('software');\n\n if ($q->num_rows == 1)\n {\n return true;\n\n } else {\n\n return false;\n }\n\n }", "function harvest_in_order( $order ) {\n\n\t$items = $order->get_items(); \n\n\tforeach ( $items as $item_id => $item ) {\n\n\t\tif ( $item->get_product_id() === 37592 ) {\n\t\t\t\n\t\t\treturn true;\n\t\t\t\n\t\t}\n\n\t}\n\t\n\treturn false;\n\n}", "function flashcard_grades($flashcardid) {\n return null;\n}", "public function GetWasteBasket() {\n return false;\n }", "function exclude_product($id) {\r\n switch($id) {\r\n case 3: // Dymo\r\n case 99999:\r\n case 99998:\r\n return true;\r\n }\r\n return false;\r\n }", "public function removeItem(string $sku): Cart;", "public function getOldSku()\n {\n return $this->_oldSku;\n }", "function get_coupon()\n{\n // get voucher\n global $current_user_id, $db_prefix, $sql_today;\n\n // find single use\n $gift = sql_qquery(\"SELECT * FROM \".$db_prefix.\"gift WHERE redeem_user_id='$current_user_id' AND redeem_order_id='' AND valid_date >= '$sql_today' LIMIT 1\");\n if (!empty($gift)) {\n $g = explode('.', $gift['gift_code']);\n $gift['gift_code'] = $g[0];\n return $gift;\n } else {\n return false;\n }\n}", "function bookking_scale_used_anywhere($scaleid) {\n global $DB;\n\n if ($scaleid and $DB->record_exists('bookking', array('scale' => -$scaleid))) {\n return true;\n } else {\n return false;\n }\n}", "public function getSku()\n {\n return $this->sku;\n }", "function is_wished($product_id)\n {\n if ($this->session->userdata('user_login') == 'yes') {\n $user = $this->session->userdata('user_id');\n //$wished = array('0');\n if ($this->get_type_name_by_id('user', $user, 'wishlist') !== '') {\n $wished = json_decode($this->get_type_name_by_id('user', $user, 'wishlist'));\n } else {\n $wished = array(\n '0'\n );\n }\n if (in_array($product_id, $wished)) {\n return 'yes';\n } else {\n return 'no';\n }\n } else {\n return 'no';\n }\n }", "function mc_do_not_allow_3_month_renewals( $subscription_can_be_renewed, $subscription, $subscription_key, $user_id ) {\n if( $subscription['product_id'] == 3622 ) {\n return false;\n }\n else {\n return $subscription_can_be_renewed;\n }\n}", "abstract function is_only_premium();", "public function testGetSku()\n {\n $data_from_collection = $this->data['annual_collection'];\n $this->assertEquals(\n $data_from_collection['attributes']['plan_sku'],\n $this->makePlan($data_from_collection)->getSku()\n );\n\n $data_from_site = $this->data['annual_site'];\n $this->assertEquals($data_from_site['sku'], $this->makePlan($data_from_site)->getSku());\n }", "function validate_fishbowl_item($mysqli, $item)\n{\n\tif ( empty($item[\"date\"])\n\t || !is_numeric($item[\"log_type\"]) ) {\n\t\treturn false;\n\t}\n\n\treturn true;\n}", "public function removeFromCart($username, $sku){\n $cartQuery = mysqli_fetch_array($this->connection->query(\"SELECT cart FROM users WHERE username = '$username'\"));\n $cart = $cartQuery['cart'];\n $currentInventoryQuant = mysqli_fetch_array($this->connection->query(\"SELECT quantity FROM items WHERE sku = '$sku'\"));\n\n //Add queries to update overall inventory\n $updatedInventory = $currentInventoryQuant[0] + $cart[$sku-1];\n $query = \"UPDATE items SET quantity = '$updatedInventory' WHERE sku = '$sku'\";\n $this->connection->query($query);\n\n //Send an updated query using the new cartQuery arrays\n $cart[$sku-1] = 0;\n $query = \"UPDATE users SET cart = '$cart' WHERE username = '$username'\";\n $this->connection->query($query);\n return true;\n }", "public function generateItemSkuFromProduct(int $product_id): string\n {\n $new_sku = '';\n $product = Product::find($product_id);\n $sku = $product->sku;\n $idx = 1;\n $found = false;\n while(!$found)\n {\n $new_sku = $sku . '-' . $idx;\n if(Item::where('sku', $new_sku)->count() == 0)\n $found = true;\n\n $idx++;\n }\n\n return $new_sku;\n }", "public function generateSKU()\n {\n $number=mt_rand(1000,999999);\n if ($this->checkSKU($number)){\n return $this->generateSKU();\n }\n return (string)$number;\n }", "private function _checkAvailableStock($productUid = \"\", $qty = 0, $oldQty = 0) {\n $product = Product::where('uid', $productUid)->first();\n if($product) {\n $availableStock = Product::getAvailableStock($product) + $oldQty;\n if(($availableStock - $qty) < 0) return false; \n }\n return true;\n }", "function thrive_dashboard_get_no_license_products()\n{\n\n $products = array();\n\n $products = apply_filters('thrive_dashboard_no_license_products', $products);\n\n return $products;\n}", "function randomstrayquotes_scale_used_anywhere($scaleid) {\n global $DB;\n\n if ($scaleid and $DB->record_exists('randomstrayquotes', array('grade' => -$scaleid))) {\n return true;\n } else {\n return false;\n }\n}", "function product_exists($pid){\n\t$cart = $_SESSION['custCart_ID']; // the SESSION and COOKIE customer cart items array\n\t$pid=intval($pid);\n\t$max=count($_SESSION[$cart]);\n\t$flag=0;\n\tfor($i=0;$i<$max;$i++){\n\t\tif($pid==$_SESSION[$cart][$i]['bookid']){\n\t\t\t$flag=1;\n\t\t\t// break;\n\t\t}\n\t}\n\treturn $flag;\n}", "function find_if_rogram_was_bought($userid, $progid){\n\t\t// return 0 if the program is TRIAL or wasn't bought\n\t\t$database = JFactory::getDBO();\n\t\t$sql = \"SELECT payment FROM #__guru_order WHERE userid = '\".$userid.\"' AND programid = \".$progid;\n\t\t$database->setQuery($sql);\n\t\t$result = $database->loadResult();\n\t\tif (strtolower($result) == 'trial' || !isset($result))\t\n\t\t\treturn 0;\n\t\telse return 1;\t\n\t}", "function check_in($barcode)\n{\n\tglobal $mysqli;\n\t\n\tclean_string($barcode);\n\t\n\t$item = get_copy_info($barcode);\n\n\tif(array_key_exists('error', $item))\n\t{\n\t\treturn array('error'=>'barcode not found', 'error_code'=>4);\n\t}\n\t\n\t$check_for_item_query = \"SELECT * FROM `checkedout` WHERE `hardcopy_barcode` = $barcode\"; \n\t$result = $mysqli->query($check_for_item_query);\n\t\n\tif($temp = check_sql_error($result))\n\t\treturn $temp;\n\t\n\tif($result->fetch_assoc())\n\t{ \t//The mediaitem is checked out, check it in\n\t\treturn delete_from_table('hardcopy_barcode',$barcode,'checkedout');\n\t}\n\t\n\treturn array('error'=>\"item not checked out\", 'error_code'=>9);\n}", "abstract function can_use_premium_code();", "public function test_isFreegal_isNotFregalItem_returnFalse()\r\n\t{\r\n\t\t$this->service->source = \"aNonDummyFreegalRecord\";\r\n\t\t$actual = $this->service->isFreegal();\r\n\t\t$this->assertFalse($actual);\r\n\t}", "function update_item($data){\n if(check_token($data['crf_code'],'check')){\n $data = clean_security($data);\n \n if (!empty($data['id'])) {\n // update \n $old_item = mysqli_result_(mysqli_query_(\"select item_name from items where id={$data['id']}\"),0);\n\n mysqli_query_(\"UPDATE `items` set price='{$data['price']}', item_name='{$data['item_name']}' where id={$data['id']}\"); \n mysqli_query_(\"update customer_items set item_name='{$data['item_name']}' where item_name='$old_item'\");\n mysqli_query_(\"update recieved_history set item_name='{$data['item_name']}' where item_name='$old_item'\");\n \n return 'ok'; \n\n }\n \n // remove_crf\n check_token($data['crf_code'],''); \n\n return 'ok'; \n \n }else{\n return 'login';\n }\n}", "function check_product_in_the_cart($product){\n if (auth()->check()){\n $cart = Cart::where('user_id', auth()->user()->id)->where('product_id', $product->id)->first();\n }else{\n if(session()->has('carts')){\n $cart = key_exists($product->uuid, session('carts'));\n }else{\n $cart = false;\n }\n }\n\n if ($cart){\n return true;\n }else{\n return false;\n }\n}", "public function hasQuantity(): bool;", "function randomstrayquotes_scale_used($randomstrayquotesid, $scaleid) {\n global $DB;\n\n if ($scaleid and $DB->record_exists('randomstrayquotes', array('id' => $randomstrayquotesid, 'grade' => -$scaleid))) {\n return true;\n } else {\n return false;\n }\n}", "function valid_item_name ($item_name) {\n if ( empty($item_name) )\n return false;\n else \n return true;\t\n}", "function wac_is_vendor($uid=''){\n\t$cUID = (!empty($uid))? $uid : get_current_user_id();\n\tif(is_user_wcmp_vendor( $cUID )){\n\t\treturn true;\n\t}\n\treturn false;\n}", "function noItem()\n{\n\t\techo \"<span style=\\\"color:red;\\\">Item not found. You are creating a new one.</span>\";\n}", "function check_user_price_level() {\n if ( is_user_logged_in() && is_wholesale() ) {\n $price_level = price_lock_level_query();\n }\n\n if( isset($price_level) ) {\n $price_level = $price_level[0]->prclevel;\n } else {\n $price_level = null;\n }\n\n switch( $price_level ) {\n case 'P2':\n return '_price_2';\n case 'P4':\n return '_price_4';\n case 'P5':\n return '_price_5';\n case 'P6':\n return '_price_6';\n default:\n return '_price_3';\n }\n\n}", "function validate_key($key)\n{\n if ($key == 'PhEUT5R251')\n return true;\n else\n return false;\n}", "public function hasUseradditem(){\n return $this->_has(24);\n }", "public function isFromVendor(): bool;", "public function getSku() {\n return $this->item->getSku();\n }", "public function getProductBySku($sku);", "function stockremove_check_title()\n {\n $q = $this->db->where('action_type', 'uninstall')\n ->or_where('action_type', 'stock add')\n ->where('license', \"\")\n ->where('company_id', $this->session->userdata('company_id'))\n ->where('name', $this->input->post('sw_name'))\n ->limit(1)->get('software');\n\n if ($q->num_rows == 1)\n {\n return true;\n\n } else {\n\n return false;\n }\n\n }", "private function isProductInNotifiyList($productId) {\r\n\r\n $this->bcc = array();\r\n $mailStaus = 'NO';\r\n\r\n $collection = Mage::getModel('outofstocknotification/outofstocknotification')->getCollection()\r\n ->addFieldToFilter('product_id', $productId)\r\n ->addFieldToFilter('status', '1')\r\n ->addFieldToFilter('mailsend_status', $mailStaus);\r\n $collection->getSelect()->group(array(\"email_id\"));\r\n $isArray = $collection->getSize();\r\n if ($isArray) {\r\n foreach ($collection as $productlist) {\r\n $this->bcc[] = $productlist->getEmailId();\r\n }\r\n $this->productUrl = base64_decode($productlist['product_url']);\r\n $this->productName = $productlist['product_name'];\r\n return 1;\r\n } else {\r\n return 0;\r\n }\r\n }", "public function checkgiftcardcode() {\n global $loguser;\n $curr_email = $loguser['email'];\n $code = $_GET['gfcode_value'];\n $getgfcardval = TableRegistry::get('Giftcards')->find()->where(['giftcard_key' => $code])->first();\n if (!empty($getgfcardval)) {\n $recEmail = $getgfcardval->reciptent_email;\n $gfcardId = $getgfcardval->id;\n $gfcardAmt = $getgfcardval->avail_amount;\n if ($gfcardAmt <= 0) {\n echo \"2\";\n die;\n } else if ($recEmail == $curr_email) {\n echo '1' . '*|*' . $gfcardId;\n die;\n } else {\n echo '0';\n die;\n }\n } else {\n echo '0';\n die;\n }\n }", "function handle_validate_purchase_code_response($response) {\r\n\r\n global $internal_err;\r\n\r\n if($response[\"status\"] !== 200) {\r\n\r\n // If error exist\r\n if($response[\"status\"] === 404) {\r\n set_field_error(\"purchase_code\", \"Invalid Purchase Code!\");\r\n }else {\r\n set_field_error(\"purchase_code\", json_decode(json_encode($response[\"result\"]), true)[\"error\"]);\r\n show_err($internal_err);\r\n }\r\n\r\n redirect_to_home();\r\n }\r\n return $response[\"result\"]->item;\r\n}", "public function getSku()\n {\n if (is_null($this->sku)) {\n /** @psalm-var ?string $data */\n $data = $this->raw(self::FIELD_SKU);\n if (is_null($data)) {\n return null;\n }\n $this->sku = (string) $data;\n }\n\n return $this->sku;\n }", "public function hasSilencedf(){\r\n return $this->_has(27);\r\n }", "public function getMyPriceForSKU($request);", "function check_software_license_for_stockadd()\n {\n $q = $this->db->where('license', $this->input->post('license_num'))->where('company_id', $this->session->userdata('company_id'))->limit(1)->get('software');\n\n if ($q->num_rows == 1)\n {\n return true;\n\n } else {\n\n return false;\n }\n }", "function roshine_scale_used_anywhere($scaleid) {\n global $DB;\n\n /** @example */\n //if ($scaleid and $DB->record_exists('roshine', array('grade' => -$scaleid))) {\n // return true;\n // } else {\n return false;\n //}\n}", "function flashcard_scale_used($flashcardid, $scaleid) {\n\n $return = false;\n\n return $return;\n}", "function variant_not($variant) {}", "function get_product_availability_by_warehouse($post_id) {\n global $wpdb;\n\n // First let's get the SKU for the product so we can look up its availability\n $sku = get_post_meta($post_id, '_sku', true);\n\n // We will use this array as 'CA' => true if it's available and 'CA' => false if it's unavailable\n $availability_by_warehouse = array();\n\n // Pull in the list of warehouses\n $warehouse_ids = get_warehouse_ids();\n\n // Set all warehouse_ids as 0 before continuing\n foreach ($warehouse_ids as $warehouse_id) {\n $availability_by_warehouse[$warehouse_id] = 0;\n }\n\n // Make sure we have an actual sku here\n if (!empty($sku)) {\n\n\n // Query up the inventory\n $inventory_array = $wpdb->get_results(\n $wpdb->prepare(\n \"SELECT item, warehouse, qty\n FROM randys_InventoryByWarehouse\n WHERE item = %s\",\n array($sku)\n )\n );\n\n // Loop through the inventories, marking them as available or not\n foreach ($inventory_array as $inventory) {\n if ($inventory->qty !== '0') {\n $availability_by_warehouse[$inventory->warehouse] = (int)$inventory->qty;\n }\n }\n }\n\n return $availability_by_warehouse;\n}", "function alertcloud_component_checkversion()\n{\n if (!function_exists('get_product_release')) {\n return false;\n }\n if (get_product_release() < 126) {\n return false;\n }\n return true;\n}", "function itemExistsNotDeleted($itemId){\n return getSingleValue(\"SELECT COUNT(`id`) FROM `public_items` WHERE `id` =\" . escape(intval($itemId)) . \" AND `deleted` =0 LIMIT 0, 1\");\n }", "function eddenvato_verify_license($key){\n\n\t// Setup Call\n\t$envato_apikey = get_option('eddenvato-api-key');\n\t$envato_username = get_option('eddenvato-user-name');\n\t$license_to_check = $key;\n\treturn wp_remote_get( 'http://marketplace.envato.com/api/edge/'.$envato_username.'/'.$envato_apikey.'/verify-purchase:'.$license_to_check.'.json' );\n\n}", "public function checkSung()\n {\n return self::SUNG;\n }" ]
[ "0.6212327", "0.61813194", "0.6043131", "0.6033263", "0.59529376", "0.58921057", "0.58765584", "0.57942796", "0.5758972", "0.5752325", "0.57102597", "0.5682505", "0.5609154", "0.5605309", "0.558761", "0.55164444", "0.5456372", "0.5433913", "0.54331344", "0.5429283", "0.5423919", "0.5412157", "0.5402128", "0.53935355", "0.539187", "0.5372139", "0.5371799", "0.5361078", "0.5326853", "0.53241605", "0.53194094", "0.5314267", "0.5314267", "0.5300955", "0.52860326", "0.5276038", "0.5274323", "0.5258181", "0.5247213", "0.5245903", "0.52433896", "0.52298415", "0.52235425", "0.52175194", "0.5216855", "0.5215424", "0.5192839", "0.5190423", "0.51897985", "0.51793", "0.5169921", "0.5168979", "0.5165198", "0.51542586", "0.51533514", "0.5149441", "0.5149216", "0.5146538", "0.51387423", "0.5125029", "0.51195866", "0.5118262", "0.5112449", "0.51089656", "0.51011777", "0.5101121", "0.5097571", "0.50953174", "0.5089233", "0.5088885", "0.50887644", "0.5087513", "0.50860226", "0.5083297", "0.50818586", "0.5074708", "0.5074317", "0.5074174", "0.50716764", "0.50713557", "0.50585073", "0.50538045", "0.5052687", "0.5046883", "0.50355536", "0.5032584", "0.5031053", "0.5029396", "0.50243366", "0.5018822", "0.50112003", "0.5004925", "0.499493", "0.49949205", "0.49942636", "0.4993197", "0.49923944", "0.49814764", "0.49808148", "0.4979656", "0.49708903" ]
0.0
-1
Performs list filtering based on given filter of type array on a dataset
protected function doesMatch( $dataSet ) { if ( !is_array( $this->getValue() ) ) { // TODO: Warning return true; } $fieldValues = $dataSet->get( $this->getField() ); if ( empty( $fieldValues ) ) { return false; } if ( is_string( $fieldValues ) ) { $fieldValues = [ $fieldValues ]; } $intersection = array_intersect( $fieldValues, $this->getValue() ); if ( $this->getComparison() === static::COMPARISON_CONTAINS || $this->getComparison() === static::COMPARISON_IN ) { if ( empty( $intersection ) ) { return false; } } if ( $this->getComparison() === static::COMPARISON_NOT_CONTAINS && !empty( $intersection ) ) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filter($data);", "public function getFiltred(array &$data);", "public function filtering();", "public function setFilter($arrFilter);", "abstract public function filters();", "public function filterAll($filter, $args=[]);", "public function filter($value, $filter) {\n if (is_array($value)) {\n foreach ($value as $i => $val)\n $value[$i] = $this->filter($val, $filter);\n }\n else if (is_array($filter)) {\n foreach ($filter as $f)\n $value = $this->filter($value, $f);\n }\n else {\n $fname = \"filter\";\n $arr = explode(\"_\", $filter);\n foreach ($arr as $a)\n $fname.= ucwords($a);\n if (is_callable([$this, $fname]))\n return $this->$fname($value);\n else\n return $value;\n }\n return $value;\n }", "protected abstract function filter();", "public function filter($criteria, $filter, $args=[]);", "public function testFilterApplyArrayFilterCriteria(): void\n {\n $filterData = [\n [\n 'name' => IsEqual::class,\n 'field' => 'test',\n 'value' => 123,\n ],\n [\n 'name' => IsNotEqual::class,\n 'field' => 'test2',\n 'value' => 'Hello World!',\n ],\n ];\n\n $manager = new QueryFilterManager($this->filterFactory, $this->sortFactory);\n\n $criteria = [\n 'filters' => $filterData,\n ];\n\n $this->queryBuilder->expects($this->once())\n ->method('getEntityManager')\n ->willReturn($this->entityManager);\n\n $this->entityManager->expects($this->once())\n ->method('getClassMetadata')\n ->with($this->entityName)\n ->willReturn($this->metadata);\n\n $factoryArgs = $createdFilters = [];\n foreach ($filterData as $data) {\n /** @var FilterInterface&MockObject $createdFilter */\n $createdFilter = $this->createMock(FilterInterface::class);\n\n $factoryArgs[] = [$manager, $data['name'], []];\n\n $createdFilter->expects($this->once())\n ->method('filter')\n ->with($this->queryBuilder, $this->isInstanceOf(MetadataInterface::class), $data);\n\n $createdFilters[] = $createdFilter;\n }\n\n $this->filterFactory->expects($this->exactly(count($filterData)))\n ->method('create')\n ->withConsecutive(...$factoryArgs)\n ->willReturnOnConsecutiveCalls(...$createdFilters);\n\n $manager->filter($this->queryBuilder, $this->entityName, $criteria);\n }", "public function filter();", "function _get_filters(){\n $flt = array();\n $filters = array();\n\n if(!isset($_REQUEST['dataflt'])){\n $flt = array();\n }elseif(!is_array($_REQUEST['dataflt'])){\n $flt = (array) $_REQUEST['dataflt'];\n }else{\n $flt = $_REQUEST['dataflt'];\n }\n foreach($flt as $key => $line){\n // we also take the column and filtertype in the key:\n if(!is_numeric($key)) $line = $key.$line;\n $f = $this->_parse_filter($line);\n if(is_array($f)){\n $f['logic'] = 'AND';\n $filters[] = $f;\n }\n }\n return $filters;\n }", "public function filter(callable $predicate): Listt;", "private function elementFilter(array $data)\n {\n $filterMethods = $this->getFilterMethods('filter');\n foreach ($filterMethods as $method => $nameKeyMethod) {\n $nameKeyMethod = $this->getPrefix().$nameKeyMethod;\n if (isset($data[$nameKeyMethod])) {\n $data[$nameKeyMethod] = $this->{'filter'.$method}($data[$nameKeyMethod]);\n }\n }\n return $data;\n }", "private function filter($filter) {\n\t\tforeach ($filter as $key => $value) {\n\n\t\t\tif (array_key_exists('userID', $filter)) {\n\t\t\t\t$this -> db -> where('userID', $filter['userID']);\n\t\t\t}\n\t\t\tif (array_key_exists('catID', $filter)) {\n\t\t\t\t$this -> db -> where('catID', $filter['catID']);\n\t\t\t}\n\n\t\t\tif (array_key_exists('search', $filter)) {\n\t\t\t\t$array = explode(' ', $value);\n\t\t\t\tforeach ($array as $key => $value)\n\t\t\t\t\t$this -> db -> like('title', $value);\n\n\t\t\t}\n\t\t}\n\t}", "private static function _getFilter() {}", "public function filterID($data=array())\n\n\t{\n\n\t\t$arrayVariable = (isset($data['arrayVariable']) && count($data['arrayVariable'])>0) ? $data['arrayVariable'] : array();\n\n\t\t$filterIndex = (isset($data['filterIndex']) && !empty($data['arrayVariable'])) ? $data['filterIndex'] : '';\n\n\t\t$returnArray = array();\n\n\t\tif(count($arrayVariable)>0 && !empty($filterIndex)) {\n\n\t\t\tforeach($arrayVariable as $value) {\n\n\t\t\t\t$returnArray[] = $value[$filterIndex];\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn $returnArray;\n\n\t}", "public static function filter($filters, &$data) {\n $params = array(&$data);\n foreach ($filters as $callback) {\n $continue = self::execute($callback, $params);\n if ($continue === false) break;\n }\n }", "public function filter($predicate);", "public function filterProvider()\n {\n $entity1 = $this->createMock(EntityInterface::class);\n $entity2 = $this->createMock(EntityInterface::class);\n $entity3 = $this->createMock(EntityInterface::class);\n $entity4 = $this->createMock(EntityInterface::class);\n $entity5 = $this->createMock(EntityInterface::class);\n $entity6 = $this->createMock(EntityInterface::class);\n\n $entity1->foo = 'bar';\n $entity2->foo = 123;\n $entity4->foo = '123';\n $entity5->foo = ['1230'];\n $entity6->foo = [1234, 123, 'teta'];\n\n $entities = [$entity1, $entity2, $entity3, $entity4, $entity5, $entity6];\n\n $filter = function($entity) {\n return isset($entity->foo) && $entity->foo == 123;\n };\n\n return [\n [$entities, ['foo' => 123], false, [1 => $entity2, 3 => $entity4, 5 => $entity6]],\n [$entities, ['foo' => 123], true, [1 => $entity2, 5 => $entity6]],\n [$entities, $filter, false, [1 => $entity2, 3 => $entity4]],\n [$entities, $filter, true, [1 => $entity2, 3 => $entity4]],\n [$entities, [], false, $entities],\n [$entities, [], true, $entities],\n [[], ['foo' => 123], true, []],\n [[], ['foo' => 123], false, []],\n [[], $filter, true, []],\n [[], $filter, false, []],\n ];\n }", "public function filter(array $filterData = [])\r\n {\r\n return $this->all()->filter($filterData);\r\n }", "public function filter()\n {\n foreach ($this->array as $key => $value) {\n foreach ($this->conditions as list($k, $op, $v)) {\n\n $this->convertVariableType($v);\n\n if (!$this->logicFilter($key, $value[$k], $op, $v)) {\n continue 2;\n }\n }\n }\n\n $this->array = array_intersect_key($this->array, array_flip(array_keys($this->filterMask, true)));\n\n return $this->array;\n }", "#[@generic(params= 'T[]', return= 'T[]')]\n public function filter($elements) {\n $filtered= array();\n foreach ($elements as $element) {\n if ($this->accept($element)) $filtered[]= $element;\n }\n return $filtered;\n }", "abstract public function filter(Builder $dataSource);", "protected function getDataFilter(array $data)\n {\n if ($this->filterStandard) {\n return (array) $this->filterStandard;\n }\n\n return array();\n }", "public function getFilter() :array;", "protected function maybe_filter_dataset( $dataset = array() ) {\n\n\t\t// One check for the string.\n\t\tif ( ! isset( $_REQUEST['wbr-review-filter'] ) ) {\n\t\t\treturn $dataset;\n\t\t}\n\n\t\t// Check for the status filter query.\n\t\tif ( ! empty( $_GET['wbr-review-status'] ) ) {\n\n\t\t\t// Get my status.\n\t\t\t$status = sanitize_text_field( $_GET['wbr-review-status'] );\n\n\t\t\t// And return the dataset.\n\t\t\treturn $this->filter_dataset_by_status( $dataset, $status );\n\t\t}\n\n\t\t// Check for the product ID filter query.\n\t\tif ( ! empty( $_GET['wbr-product-id'] ) ) {\n\n\t\t\t// Get my ID.\n\t\t\t$product_id = absint( $_GET['wbr-product-id'] );\n\n\t\t\t// And return the dataset.\n\t\t\treturn $this->filter_dataset_by_id( $dataset, $product_id );\n\t\t}\n\n\t\t// And return the dataset, however we have it.\n\t\treturn $dataset;\n\t}", "abstract public function filterWhere(Builder $dataSource);", "function filter_data($data, $filter) {\n return CMContent::Filter($data, $filter);\n}", "private function filterData(array $data, callable $function) {\n\t\t$output = array();\n\n\t\tforeach ($data as $key => $value) {\n\t\t\tif ($function($key, $value)) {\n\t\t\t\t$output[$key]=$value;\n\t\t\t}\n\t\t}\n\n\t\treturn $output;\n\t}", "public function filter() {\n\t\t// If there is no arguments, return $this\n\t\t$numArgs = func_num_args();\n\t\tif($numArgs == 0){\n\t\t\treturn $this;\n\t\t}\n\t\t\n\t\t// If only a lone array is passed use it as parameters\n\t\t$firstArgument = func_get_arg(0);\n\t\tif ($numArgs == 1 and isset($firstArgument[0]) and is_array($firstArgument[0])) {\n\t\t\treturn $this->_f(true, $firstArgument);\n\t\t}\n\n\t\t// General case of filtering: arguments are conditions\n\t\treturn $this->_f(true, func_get_args());\n\t}", "function alm_filters($array, $target){\n return ALMFilters::init($array, $target);\n}", "public function filterOne(array $filter)\n\t{\n\t\t// foreach ($filters as $column => $value) {\n\t\t// \tif($value->isValueSet()) {\n\t\t// \t\t$this->data_source->addFilter(array($column => $value->getValue()));\n\t\t// \t}\n\t\t// }\n\t\t//dump(\"filterOne\");\n\t\treturn $this;\n\t}", "function class_arrayFilter($array, $field, $value, $condition)\n{\n //equal\n if ($condition == '=') {\n $condition_1 = true;\n $condition_2 = false;\n $condition_3 = false;\n $condition_4 = false;\n }\n //mayor igual que\n if ($condition == '>=') {\n $condition_1 = false;\n $condition_2 = false;\n $condition_3 = true;\n $condition_4 = false;\n }\n\n //special all\n if ($condition == 'all') {\n $condition_1 = true;\n $condition_2 = true;\n $condition_3 = false;\n $condition_4 = false;\n }\n //special all\n if ($condition == 'contains') {\n $condition_1 = false;\n $condition_2 = false;\n $condition_3 = false;\n $condition_4 = true;\n }\n\n if ($array) {\n $array_filter = array();\n foreach ($array as $row) {\n //Condition 1\n if ($condition_1) {\n if ($row[$field] == $value) {\n $array_filter[] = $row;\n }\n }\n //Condition 2\n if ($condition_2) {\n if ($row[$field] == 0) {\n $array_filter[] = $row;\n }\n }\n //Condition 3\n if ($condition_3) {\n if ($row[$field] >= $value) {\n $array_filter[] = $row;\n }\n }\n //Condition 4\n if ($condition_4) {\n foreach ($row as $key_condition => $row_condition) {\n if (preg_match(\"/\" . $value . \"(.*)/i\", $row[$key_condition])) {\n //if ((@preg_match(\"^\" . $value . \"\", $row[$key_condition],PCRE_CASELESS))) {\n $array_filter[] = $row;\n }\n }\n }\n }\n $debug = 0;\n\n $results = class_array($array_filter, $debug);\n } else {\n $results = null;\n }\n\n return $results;\n}", "public function filterByName($filter) {\n if (strlen($filter) > 0) {\n $this->calcData = array_filter($this->calcData, function($item) use ($filter) {\n if (strpos($item['name'], $filter) !== false) {\n return $item;\n }\n });\n }\n }", "public function filter( )\n {\n global $UNDERQL;\n $l_args_num = func_num_args( );\n if ( $l_args_num < 3 )\n return false;\n $filter_name = func_get_arg( 0 );\n\n $l_filter_callback = $UNDERQL['filter']['prefix'] . $filter_name;\n\n if ( !function_exists( $l_filter_callback ))\n return false;\n\n switch(func_get_arg(1))\n {\n case UQL_FILTER_IN:\n\n for ( $i = 2; $i < $l_args_num; $i++ )\n {\n if(!isset($this->in_filters[$this->table_name][func_get_arg( $i )]))\n $this->in_filters[$this->table_name][func_get_arg( $i )] = array($filter_name);\n else\n {\n $_temp = $this->in_filters[$this->table_name][func_get_arg( $i )];\n $_temp[@count($_temp)] = $filter_name;\n\n $this->in_filters[$this->table_name][func_get_arg( $i )] = $_temp;\n }\n }\n return true;\n\n case UQL_FILTER_OUT:\n for ( $i = 2; $i < $l_args_num; $i++ )\n {\n if(!isset($this->out_filters[$this->table_name][func_get_arg( $i )]))\n {\n $this->out_filters[$this->table_name][func_get_arg( $i )] = array($filter_name);\n }\n else\n {\n $_temp = $this->out_filters[$this->table_name][func_get_arg( $i )];\n $_temp[@count($_temp)] = $filter_name;\n\n $this->out_filters[$this->table_name][func_get_arg( $i )] = $_temp;\n\n }\n }\n return true;\n default : return false;\n }\n }", "protected function where(array $filter){\n if (array_key_exists(\"order\", $filter)){\n $order = $filter[\"order\"];\n unset($filter[\"order\"]);\n if (gettype($order) != \"array\")\n $order = [$order];\n }\n\n if (array_key_exists(\"limit\", $filter)){\n $limit = $filter[\"limit\"];\n unset($filter[\"limit\"]);\n if (gettype($limit) != \"integer\")\n throw new appException(\"This is off-limits, literally\");\n }\n\n if (!empty($filter)){\n $query = \" WHERE \";\n\n foreach ($filter as $k => $v){\n if (gettype($v) == \"array\"){\n $query .= $this->genTableVar($k) . \" IN ( \";\n $query .= join(\", \", array_fill(0, count($v), \"?\"));\n $query .= \") AND \";\n }\n else if (gettype($v) == \"object\" && get_class($v) == \"dbContains\"){\n $query .= $v->genSql($this->genTableVar($k)) . \" AND \";\n }\n else {\n $query .= $this->genTableVar($k) . \" = ? AND \";\n }\n $this->args[] = $v;\n }\n\n $query = substr($query, 0, -4);\n\n $this->query .= $query;\n }\n\n if (isset($order))\n $this->orderBy($order);\n\n if (isset($limit))\n $this->limit($limit);\n }", "public function getAllData(array $filters = []);", "protected function _filterNode($nodeList, $filter) {}", "protected function addWhereFilters($field, array $data) {\n foreach($data as $fieldValue) {\n $this->addWhereFilter($field, $fieldValue);\n }\n }", "public function filter($filterArray, $withDeleted = false)\n {\n if(!$withDeleted && $this->softDelete) {\n $this->sqlStatement = \"SELECT * FROM $this->tableName WHERE is_deleted='0'\";\n }\n else {\n $this->sqlStatement = \"SELECT * FROM $this->tableName\";\n }\n\n $index= 0;\n\n foreach ($filterArray as $column => $value) {\n if(in_array($column, $this->filterable)) {\n if($index == 0) {\n if(!$withDeleted && $this->softDelete) {\n $this->sqlStatement .= \" AND \";\n }\n else {\n $this->sqlStatement .= \" WHERE \";\n }\n }\n\n if($index > 0 && $index < count($filterArray)) { $this->sqlStatement .= \" AND \"; }\n $this->sqlStatement .= \"$column = '$value'\";\n $index++;\n }\n }\n\n return $this;\n }", "function authArrayFilter($columns, $items, $operation)\n{\n return GAuthHelper::operation_filter_array($columns, $items, $operation);\n}", "public function filter($input);", "public function setFilter(array $filter)\n {\n return $this->setArgs(['filter' => $filter]);\n }", "abstract function get_sql_filter($data);", "protected function _filter($data){\n $filtered = array();\n\n foreach($data as $tab){\n $filteredPages = array();\n if(isset($tab['pages'])){\n foreach($tab['pages'] as $page){\n if(App_FlagFlippers_Manager::isAllowed(NULL, $page['controller'], $page['action'])){\n $filteredPages[] = $page;\n }\n }\n }\n\n if(!empty($filteredPages)){\n $filteredTab = array(\n 'main' => $tab['main'],\n 'pages' => $filteredPages,\n );\n\n $filtered[] = $filteredTab;\n }\n }\n\n return $filtered;\n }", "protected function filter(array $array)\n {\n $fields = $this->fields;\n $filtered = array_filter($array, function($key) use ($fields){\n return in_array($key, $fields);\n }, ARRAY_FILTER_USE_KEY);\n return $filtered;\n }", "public function filter(callable $callback): \\IvoPetkov\\DataList\n {\n $this->actions[] = ['filter', $callback];\n return $this;\n }", "public function process_filter_data_query($filter_data = array())\r\n {\r\n if($this->is_error === true){return;}\r\n \r\n // Peform lower module/table query statement\r\n foreach ($this->model_id_list() as $convert_condition)\r\n {\r\n // Use to store the extracted data\r\n $data_record = array();\r\n \r\n // Loop through data to obtain all value\r\n foreach ($convert_condition[\"data_column\"] as $data)\r\n {\r\n $data_name = $data[\"data\"];\r\n $data_key = $data[\"column\"];\r\n \r\n // Need to process each data\r\n foreach($filter_data as $f_key => $f_data)\r\n {\r\n // Peform string serach to cater for \"=\", \">\" and \"<\" symbol\r\n if(strpos($f_key,$data_name) !== false)\r\n {\r\n // Perform string replace\r\n $new_key = str_replace($data_name, $data_key, $f_key);\r\n $data_record[$new_key] = $filter_data[$f_key];\r\n unset($filter_data[$f_key]);\r\n }\r\n }\r\n }\r\n\r\n if($data_record !== array())\r\n {\r\n $mode = $convert_condition[\"table\"].\"_model\";\r\n $this->load->model($mode); // Invoke necessary model\r\n \r\n // Throw to sub model to process\r\n $data_record = $this->$mode->process_filter_data_query($data_record);\r\n \r\n // Check any name that is not tie to model\r\n foreach ($data_record as $r_key => $d_key)\r\n {\r\n if(strpos($r_key, \".\") === false)\r\n {\r\n // Map those with current sub model\r\n $new_key = $convert_condition[\"table\"].\".\".$r_key;\r\n $data_record[$new_key] = $data_record[$r_key];\r\n unset($data_record[$r_key]);\r\n }\r\n }\r\n \r\n $filter_data = array_merge($filter_data, $data_record);\r\n }\r\n\r\n // Merge back the data to filter data\r\n\r\n // @todo - careful about the range search and pattern, might not require as\r\n // currently as the column need range is at top level \r\n //$keys = array_keys($array); \r\n //$search_count (int) preg_grep(\"/c$/\",$keys);\r\n }\r\n \r\n return $filter_data;\r\n }", "protected function applyFiltering()\n\t{\n\t\tif (!$this->hasFilters()) return;\n\n\t\tparse_str($this->filters, $list);\n\t\tforeach ($list as $column => $value) {\n\t\t\tif ($value !== '') {\n\t\t\t\t$this[$column]->applyFilter($value);\n\t\t\t}\n\t\t}\n\t}", "public function filter(Builder $dataSource)\r\n {\r\n $model = $dataSource->getModel();\r\n $filters = [];\r\n\r\n if ($this->_separated) {\r\n foreach ($this->_fields as $field => $criteria) {\r\n if ($field === self::COLUMN_ID) {\r\n $value = (int) $this->_value;\r\n if (!is_numeric($this->_value)) {\r\n continue;\r\n }\r\n $field = $model->getPrimary();\r\n } elseif ($field === self::COLUMN_NAME) {\r\n $field = $model->getNameExpr();\r\n }\r\n if (null === $this->_value) {\r\n $filter = new \\Elastica\\Query\\Filtered();\r\n $filterMissing = new \\Elastica\\Filter\\Missing($field);\r\n //$filterMissing->addParam(\"existence\", true);\r\n //$filterMissing->addParam(\"null_value\", true);\r\n $filter->setFilter($filterMissing);\r\n\r\n $filters[] = $filter;\r\n } else {\r\n if ($criteria === self::CRITERIA_EQ) {\r\n $filter = new \\Elastica\\Query\\Term();\r\n $filter->setTerm($field, $this->_value);\r\n $filters[] = $filter;\r\n } elseif ($criteria === self::CRITERIA_NOTEQ) {\r\n $filter = new \\Elastica\\Query\\Term();\r\n $filter->setTerm($field, $this->_value);\r\n $filters[] = $filter;\r\n } elseif ($criteria === self::CRITERIA_LIKE) {\r\n $filter = new \\Elastica\\Query\\Match();\r\n $filter->setField($field, $this->_value);\r\n $filters[] = $filter;\r\n } elseif ($criteria === self::CRITERIA_BEGINS) {\r\n //$filter = new \\Elastica\\Query\\Prefix();\r\n //$filter->setPrefix($field, $this->_value);\r\n //$filters[] = $filter;\r\n $filter = new \\Elastica\\Query\\QueryString();\r\n $filter->setQuery($this->_value);\r\n $filter->setDefaultField($field);\r\n $filters[] = $filter;\r\n } elseif ($criteria === self::CRITERIA_MORE) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['gt' => $this->_value]);\r\n $filters[] = $filter;\r\n } elseif ($criteria === self::CRITERIA_LESS) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['lt' => $this->_value]);\r\n $filters[] = $filter;\r\n } elseif ($criteria === self::CRITERIA_MORER) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['gte' => $this->_value]);\r\n $filters[] = $filter;\r\n } elseif ($criteria === self::CRITERIA_LESSER) {\r\n $filter = new \\Elastica\\Query\\Range($field, ['lte' => $this->_value]);\r\n $filters[] = $filter;\r\n }\r\n }\r\n }\r\n } else {\r\n $filters = new \\Elastica\\Query\\MultiMatch();\r\n $fields = [];\r\n foreach ($this->_fields as $field => $criteria) {\r\n if ($field === self::COLUMN_ID) {\r\n $value = (int) $this->_value;\r\n if (!is_numeric($this->_value)) {\r\n continue;\r\n }\r\n $field = $model->getPrimary();\r\n } elseif ($field === self::COLUMN_NAME) {\r\n $field = $model->getNameExpr();\r\n }\r\n $fields[] = $field;\r\n }\r\n\r\n $filters->setFields($fields);\r\n $filters->setTieBreaker(0.3);\r\n $filters->setType($filters::TYPE_BEST_FIELDS);\r\n //$filter->setType($filter::TYPE_MOST_FIELDS);\r\n $filters->setQuery($this->_value);\r\n }\r\n\r\n\r\n return $filters;\r\n }", "function automap_filter_by_ids(&$obj, $params = null) {\n if(isset($params['filter_by_ids']) && $params['filter_by_ids'] != '') {\n $allowed_ids = array_flip(explode(',', $params['filter_by_ids']));\n automap_filter_tree($allowed_ids, $obj);\n }\n}", "function filter(){\n //$_SESSION['filters'] = array('GPA' => ['2.0', '3.0']), 'Nationality' => ['saudi'], 'Company_size' => ['large'], 'Major' => ['Computer Science', 'Marketing', 'Finance']);\n if($_GET['checked'] == \"true\"){\n if(!isset($_SESSION['filters'])){\n $_SESSION['filters'] = array();\n }\n if(isset($_SESSION['filters'][$_GET['category']])){\n array_push($_SESSION['filters'][$_GET['category']], $_GET['value']);\n } else{\n $_SESSION['filters'][$_GET['category']] = array();\n array_push($_SESSION['filters'][$_GET['category']], $_GET['value']);\n }\n // echo extractQuery();\n echo json_encode(printRecords(1));\n }else{\n if(isset($_SESSION['filters'][$_GET['category']])){\n unset($_SESSION['filters'][$_GET['category']][array_search($_GET['value'],$_SESSION['filters'][$_GET['category']])]);\n $_SESSION['filters'][$_GET['category']] = removeGaps($_SESSION['filters'][$_GET['category']]);\n if(count($_SESSION['filters'][$_GET['category']]) === 0){\n unset($_SESSION['filters'][$_GET['category']]);\n if(count($_SESSION['filters']) === 0){\n unset($_SESSION['filters']);\n }\n }\n }\n // echo extractQuery();\n echo json_encode(printRecords(1));\n }\n }", "public function filtersExist();", "public function filter(array $data, $exact = false)\n {\n $query = 'SELECT * FROM ' . $this->connection->quoteIdentifier($this->table) . ' ';\n $where = array();\n\n foreach ($data as $key => $value) {\n $value = trim($value);\n\n if ($exact) {\n $where[] = $this->connection->quoteIdentifier($key) . ' = ' . $this->connection->quote($value);\n } else {\n $where[] = $this->connection->quoteIdentifier($key) .\n ' LIKE ' . $this->connection->quote('%' . $value . '%');\n }\n }\n\n\n return $this->connection->fetchAll($query . implode(' AND ', $where));\n }", "private function filters() {\n\n\n\t}", "public static function getList(string $filter='')\n {\n $query = self::with(['product','insuredPerson','agency'])->whereNotNull('n_OwnerId_FK');\n\n $filterArray = json_decode(request('filter'));\n\n if (is_object($filterArray)) {\n foreach($filterArray as $key=>$value) {\n if (empty($value)) {\n continue;\n }\n if (is_array($value)) {\n $query->whereIn($key, $value);\n continue;\n }\n $query->where($key, 'like', \"%$value%\");\n }\n }\n return $query;\n }", "public function filter($args = array(), $operator = 'AND')\n {\n }", "public function filter($filter)\n {\n $callback = is_array($filter) ? $this->_filterFromArray($filter) : $filter;\n $data = array_filter($this->_data, $callback);\n return new static($data);\n }", "public function filter( $filters=array() ){\n\t\t$items_filtered = $this->getItems();\n\t\tforeach($filters as $key=>$values){\n\n\t\t\tif(empty($values))\n\t\t\t\tcontinue;\n\n\t\t\tif(!is_array($values) && !empty($values)){\n\t\t\t\t$values = array($values);\n\t\t\t}\n\t\t\t\n\t\t\tforeach( $items_filtered as $i=>$item ){\n\t\t\t\tif(!in_array($this->dotNotationExtract($item, $key),$values)){\n\t\t\t\t\tunset($items_filtered[$i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->items_filtered = $items_filtered;\n\t\t$this->update();\n\t\treturn $this;\n\t}", "public static function get(...$filter): array\n {\n self::collect();\n if ($filter) {\n $return = [];\n foreach (self::$content as $id => $entry) {\n $return[$id] = array_filter($entry, function ($key) use ($filter) {\n if (is_array($filter)) return in_array($key, $filter);\n }, ARRAY_FILTER_USE_KEY);\n }\n return $return;\n }\n return self::$content;\n }", "public function filterAnimals($data = array()) {\n\t\t$conditions = array();\n\t\tif (!empty($data['filter'])) {\n\t\t\t$filter = '%' . $data['filter'] . '%';\n\t\t\t$conditions = array(\n\t\t\t\t'OR' => array(\n\t\t\t\t\t$this->alias . '.name LIKE' => $filter,\n\t\t\t\t),\n\t\t\t);\n\t\t}\n\t\treturn $conditions;\n\t}", "public function testFilter() {\n\t\t$array = array(1, 2, 3);\n\t\t$result = _::filter($array, function($value) {\n\t\t\treturn (0 == $value);\n\t\t});\n\t\t$this->assertInternalType('array', $result);\n\t\t$this->assertCount(0, $result);\n\n\t\t// test filtering down to odd elements\n\t\t$result = _::filter($array, function($value) {\n\t\t\treturn ($value % 2);\n\t\t});\n\t\t$this->assertInternalType('array', $result);\n\t\t$this->assertCount(2, $result);\n\t\t$this->assertEquals(1, $result[0]);\n\t\t$this->assertEquals(3, $result[2]);\n\t}", "public function dynamicFilters($filters)\n {\n if ( !$filters ) return;\n\n foreach ($filters as $item)\n {\n $this->whereHas('spec_data', function($query) use ($item) {\n \n $query->where('spec_row_id', $item['row_id'])->when( $item['values'] ?? false, function($query) use($item) {\n\n $query->whereHas('values', function($query) use ($item) {\n \n $query->whereIn('id', $item['values'] );\n });\n }, function($query) use($item) {\n\n $query->whereHas('translations', function($query) use ($item) {\n \n $query->where('data', $item['data'] ?? null);\n });\n });\n\n });\n }\n\n return;\n }", "private static function filterContents(array $contents, string $filter = null): array\n {\n //====================================================================//\n // No Filter\n if (empty($filter)) {\n return $contents;\n }\n //====================================================================//\n // Search for this Filter in all vars\n $results = array();\n foreach ($contents as $item) {\n //====================================================================//\n // Item is An Object\n if (is_object($item) && (false !== array_search($filter, get_object_vars($item), true))) {\n $results[] = $item;\n }\n //====================================================================//\n // Item is An Array\n if (is_array($item) && (false !== array_search($filter, $item, true))) {\n $results[] = $item;\n }\n }\n\n return $results;\n }", "protected function setFilterArray() {\n $primary_keys = getPrimaryKeys($this->table_name);\n foreach ($primary_keys as $pk) {\n if (isset($_GET[$pk])) {\n $this->filter[$pk] = Mysql::SQLValue($_GET[$pk]);\n }\n }\n }", "public function filter($filter)\n {\n }", "abstract public function filter(callable $func);", "public function setFilter(array $filter)\n {\n $model = $this->getModel();\n $model->setFilter($filter);\n }", "public function filtrationElements(){\n foreach(self::getElements() as $key=>$items){\n if(\n NULL!==$items->getFilters() &&\n is_array($items->getFilters()) &&\n count($items->getFilters())\n ){\n self::filtrationElement($items);\n }\n \n }\n }", "public function SetFilters (array $filters = []);", "function Filter($filter,$data)\n{\n \tglobal\t$FILTERS;\n\n\t\t//\n\t\t// get the program name from the filter name\n\t\t//\n\tif (!isset($FILTERS[$filter]) || $FILTERS[$filter] == \"\")\n\t{\n \t\tError(\"bad_filter\",\"The form has an internal error - unknown filter\");\n\t\texit;\n\t}\n\t$prog = $FILTERS[$filter];\n\t\t//\n\t\t// change to the directory that contains the filter program\n\t\t//\n\t$dirname = dirname($prog);\n\tif (!chdir($dirname))\n\t{\n \t\tError(\"chdir_filter\",\"The form has an internal error - cannot chdir to run filter\");\n\t\texit;\n\t}\n\t\t//\n\t\t// the output of the filter goes to a temporary file\n\t\t//\n\t$temp_file = tempnam(\"/tmp\",\"FMF\");\n\t$cmd = \"$prog > $temp_file 2>&1\";\n\t\t//\n\t\t// start the filter\n\t\t//\n\t$pipe = popen($cmd,\"w\");\n\tif (!$pipe)\n\t{\n\t $err = join('',file($temp_file));\n\t unlink($temp_file);\n \t\tError(\"filter_not_found\",\"The form has an internal error - cannot execute filter\",\n\t\t\t\t\t\ttrue,$err);\n\t\texit;\n\t}\n\t\t//\n\t\t// write the data to the filter\n\t\t//\n\tfwrite($pipe,$data);\n\tif (pclose($pipe) != 0)\n\t{\n\t $err = join('',file($temp_file));\n\t unlink($temp_file);\n \t\tError(\"filter_failed\",\"The form has an internal error - filter failed\",\n\t\t\t\t\t\ttrue,$err);\n\t\texit;\n\t}\n\t\t//\n\t\t// read in the filter's output and return as the data to be sent\n\t\t//\n\t$data = join('',file($temp_file));\n\tunlink($temp_file);\n\treturn ($data);\n}", "private function init_consolidationAndSelect_isFilterArray()\n {\n // RETURN: true, there is a filter array\n if ( is_array( $this->conf_view[ 'filter.' ] ) )\n {\n return true;\n }\n // RETURN: true, there is a filter array\n // DRS\n if ( $this->pObj->b_drs_filter )\n {\n $viewWiDot = $this->view . '.';\n $prompt = $viewWiDot . $this->mode . ' . filters isn\\'t an array. There isn\\'t any filter for processing.';\n t3lib_div :: devlog( '[INFO/FILTER] ' . $prompt, $this->pObj->extKey, 0 );\n }\n // DRS\n // RETURN: true, there is a filter array\n return false;\n }", "private function prepare_filter(array $filter=array(), $to_sql) {\n\t\t\t$filter_array = array();\n\n\t\t\t$fields = self::$db->table_info($this->table_name);\n\n\t\t\t$table_name_i18n = $this->table_name.$this->i18n_table_suffix;\n\t\t\tif($is_18n=($this->is_i18n && self::$db->table_exists($table_name_i18n))) {\n\t\t\t\t$fields_i18n = self::$db->table_info($table_name_i18n);\n\t\t\t\t$fields = array_merge($fields, $fields_i18n);\n\t\t\t}\n\t\t\tforeach($fields AS $field) {\n\t\t\t\tif(isset($filter[$field[\"name\"]]) && !empty($filter[$field[\"name\"]]) && $to_sql) {\n\t\t\t\t\tif($field[\"real_type\"] == 'varchar') {\n\t\t\t\t\t\t$filter_array[] = \"{$field[\"name\"]} LIKE '\".self::$db->escape($filter[$field[\"name\"]]).\"'\";\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$filter_array[] = \"{$field[\"name\"]}='\".self::$db->escape($filter[$field[\"name\"]]).\"'\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!$to_sql) {\n\t\t\t\tforeach($_GET AS $key=>$val) {\n\t\t\t\t\tif ($key == 'order' || $key == 'page' || empty($val)) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t$filter_array[] = \"{$key}=\".urlencode($val);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $filter_array;\n\t\t}", "public function filter($data)\n {\n $output = [];\n foreach ( $this->compiledFilter as $filter ) {\n $output[$filter['key']] = $this->arrayGet($data, $filter['path']);\n }\n return $output;\n }", "protected function applyDataTableGenericFilters($dataTable)\n\t{\n\t\tif($dataTable instanceof Piwik_DataTable_Array )\n\t\t{\n\t\t\t$tables = $dataTable->getArray();\n\t\t\tforeach($tables as $table)\n\t\t\t{\n\t\t\t\t$this->applyDataTableGenericFilters($table);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\t// Generic filters\n\t\t// PatternFileName => Parameter names to match to constructor parameters\n\t\t/*\n\t\t * Order to apply the filters:\n\t\t * 1 - Filter that remove filtered rows\n\t\t * 2 - Filter that sort the remaining rows\n\t\t * 3 - Filter that keep only a subset of the results\n\t\t */\n\t\t$genericFilters = self::getGenericFiltersInformation();\n\n\t\t// if the flag disable_generic_filters is defined we skip the generic filters\n\t\tif(Piwik_Common::getRequestVar('disable_generic_filters', 'false', 'string', $this->request) != 'false')\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tforeach($genericFilters as $filterName => $parameters)\n\t\t{\n\t\t\t$filterParameters = array();\n\t\t\t$exceptionRaised = false;\n\n\t\t\tforeach($parameters as $name => $info)\n\t\t\t{\n\t\t\t\t// parameter type to cast to\n\t\t\t\t$type = $info[0];\n\n\t\t\t\t// default value if specified, when the parameter doesn't have a value\n\t\t\t\t$defaultValue = null;\n\t\t\t\tif(isset($info[1]))\n\t\t\t\t{\n\t\t\t\t\t$defaultValue = $info[1];\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\t$value = Piwik_Common::getRequestVar($name, $defaultValue, $type, $this->request);\n\t\t\t\t\tsettype($value, $type);\n\t\t\t\t\t$filterParameters[] = $value;\n\t\t\t\t}\n\t\t\t\tcatch(Exception $e)\n\t\t\t\t{\n\t\t\t\t\t$exceptionRaised = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(!$exceptionRaised)\n\t\t\t{\n\t\t\t\t// a generic filter class name must follow this pattern\n\t\t\t\t$class = \"Piwik_DataTable_Filter_\".$filterName;\n\n\t\t\t\tif($filterName == 'Limit')\n\t\t\t\t{\n\t\t\t\t\t$dataTable->setRowsCountBeforeLimitFilter();\n\t\t\t\t}\n\n\t\t\t\t// build the set of parameters for the filter\n\t\t\t\t$filterParameters = array_merge(array($dataTable), $filterParameters);\n\n\t\t\t\t// make a reflection object\n\t\t\t\t$reflectionObj = new ReflectionClass($class);\n\n\t\t\t\t// use Reflection to create a new instance, using the $args\n\t\t\t\t$filter = $reflectionObj->newInstanceArgs($filterParameters);\n\t\t\t}\n\t\t}\n\t}", "public static function getFilteredArray (array $filter, array $array)\n {\n $filteredArray = [];\n foreach ($filter as $key) {\n $filteredArray[$key] = (array_key_exists($key, $array)) ? $array[$key] : null;\n };\n\n return $filteredArray;\n }", "private function filterType( array $data, callable $typeTest, $typeValue )\n {\n $matches = array_filter( $data, $typeTest );\n $keys = array_keys( $matches );\n $values = array_fill(0, count( $keys ), $typeValue );\n $types = array_combine( $keys, $values );\n\n return $types;\n }", "public function filter(callable $predicate): Set;", "public function filterToQuery($filter)\n {\n return (array)$filter;\n }", "public function filter() {\n\t\t$args = func_get_args();\n\t\t$r = Core_Types::reflection_for($this->sets[':default']);\n\t\t$m = $r->getMethod('filter');\n\t\treturn $m->invokeArgs($this->sets[':default'],$args);\n\t}", "protected static function filterSiteList( array $list, $filter = null ) {\n\t\t// return all if no filter set:\n\t\tif ( $filter === null ) {\n\t\t\treturn $list;\n\t\t}\n\t\tif ( !self::isValidRegEx( $filter ) ) {\n\t\t\t// no regex given, create one returning everything having the $filter words in it\n\t\t\t$filters = explode( '|', $filter );\n\t\t\tforeach ( $filters as &$part ) {\n\t\t\t\t$part = preg_quote( trim( $part ), '/' );\n\t\t\t}\n\t\t\t$filter = '/^.*(?:' . implode( '|', $filters ) . ').*$/i';\n\t\t}\n\n\t\t// create new array from all matches:\n\t\t$newList = [];\n\n\t\tforeach ( $list as $t ) {\n\t\t\tif ( preg_match( $filter, $t->getText() ) ) {\n\t\t\t\t$newList[] = $t;\n\t\t\t}\n\t\t}\n\t\treturn $newList;\n\t}", "private function _setupFiltering()\n\t{\n\t\tglobal $txt;\n\n\t\t// We'll escape some strings...\n\t\t$db = database();\n\n\t\t// You can filter by any of the following columns:\n\t\t$filters = array(\n\t\t\t'id_member' => $txt['username'],\n\t\t\t'ip' => $txt['ip_address'],\n\t\t\t'session' => $txt['session'],\n\t\t\t'url' => $txt['error_url'],\n\t\t\t'message' => $txt['error_message'],\n\t\t\t'error_type' => $txt['error_type'],\n\t\t\t'file' => $txt['file'],\n\t\t\t'line' => $txt['line'],\n\t\t);\n\n\t\t$filter = $this->_req->getQuery('filter', 'trim', null);\n\t\t$value = $this->_req->getQuery('value', 'trim', null);\n\n\t\t// Set up the filtering...\n\t\tif (isset($value, $filters[$filter]))\n\t\t{\n\t\t\t$filter = array(\n\t\t\t\t'variable' => $filter,\n\t\t\t\t'value' => array(\n\t\t\t\t\t'sql' => in_array($filter, array('message', 'url', 'file'))\n\t\t\t\t\t\t? base64_decode(strtr($value, array(' ' => '+')))\n\t\t\t\t\t\t: $db->escape_wildcard_string($value),\n\t\t\t\t),\n\t\t\t\t'href' => ['filter' => $filter, 'value' => $value],\n\t\t\t\t'entity' => $filters[$filter]\n\t\t\t);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (isset($filter, $value))\n\t\t\t{\n\t\t\t\tunset($this->_req->query->filter, $this->_req->query->value);\n\t\t\t}\n\n\t\t\t$filter = [];\n\t\t}\n\n\t\treturn $filter;\n\t}", "function filterByCategory ($filter = null, $results = [])\n{\n $items = makeList($results);\n if ($filter == null) return $items;\n $new = [];\n foreach ($items as $key => $item) {\n $filter = strtolower($filter);\n $target = strtolower($item->category);\n if (stripos($target, $filter) > -1 ) {\n $new[] = $item;\n }\n }\n return $new;\n}", "public function registerFilterByArray(array $filterData)\n {\n foreach ($filterData as $filterName => $parameter) {\n $filterClass = 'idoit\\\\Component\\\\Browser\\\\Filter\\\\' . $filterName;\n\n if (empty($parameter) || !class_exists($filterClass)) {\n continue;\n }\n\n if (isys_format_json::is_json_array($parameter)) {\n $parameter = isys_format_json::decode($parameter);\n } elseif (is_scalar($parameter)) {\n if (strpos($parameter, ';') !== false) {\n $parameter = explode(';', $parameter);\n } elseif (strpos($parameter, ',') !== false) {\n $parameter = explode(',', $parameter);\n } else {\n $parameter = [$parameter];\n }\n }\n\n /** @var FilterInterface $filterClass */\n $this->registerFilter((new $filterClass($this->db))->setParameter($parameter));\n }\n\n return $this;\n }", "public function setAdditionalFilter($dataProvider, $filter);", "public function getFilters(): array;", "public function filter(callable $filter)\n {\n return $this->table->createCollection(array_filter($this->rows, $filter));\n }", "abstract protected function getFilters();", "function filterCourseUserNotTheme($userdata,$filter) {\n $ret = \"\";\n for($i=0;$i<count($userdata);$i++) {\n $out = $userdata[$i];\n $id = $userdata[$i][\"id\"];\n if (is_array($id)) {\n $id = $id[\"id\"];\n }\n // Adapt 2\n if (in_array($id, $filter)) {\n $ret[] = $out;\n }\n }\n return $ret;\n}", "public function prepareListFilter(array &$filter, array $requestFilter): void\n\t{\n\t\tif (isset($requestFilter['FIND']) && !empty($requestFilter['FIND']))\n\t\t{\n\t\t\t$filter['SEARCH_CONTENT'] = $requestFilter['FIND'];\n\t\t\tSearchEnvironment::prepareSearchFilter($this->getEntityTypeId(), $filter);\n\t\t}\n\n\t\tif ($this->factory->isCrmTrackingEnabled())\n\t\t{\n\t\t\t$runtime = [];\n\t\t\t\\Bitrix\\Crm\\Tracking\\UI\\Filter::buildOrmFilter($filter, $requestFilter, $this->getEntityTypeId(), $runtime);\n\t\t}\n\n\t\tforeach ($this->getFieldNamesByType(static::TYPE_NUMBER, static::DISPLAY_IN_FILTER) as $fieldName)\n\t\t{\n\t\t\tif (isset($requestFilter[$fieldName.'_from']) && $requestFilter[$fieldName.'_from'] > 0)\n\t\t\t{\n\t\t\t\t$filter['>='.$fieldName] = $requestFilter[$fieldName.'_from'];\n\t\t\t}\n\t\t\tif (isset($requestFilter[$fieldName.'_to']) && $requestFilter[$fieldName.'_to'] > 0)\n\t\t\t{\n\t\t\t\t$filter['<='.$fieldName] = $requestFilter[$fieldName.'_to'];\n\t\t\t}\n\t\t\tif (isset($requestFilter[$fieldName]) && $requestFilter[$fieldName] > 0)\n\t\t\t{\n\t\t\t\t$filter['='.$fieldName] = $requestFilter[$fieldName];\n\t\t\t}\n\t\t}\n\n\t\tforeach ($this->getFieldNamesByType(static::TYPE_STRING, static::DISPLAY_IN_FILTER) as $fieldName)\n\t\t{\n\t\t\tif (!empty($requestFilter[$fieldName]))\n\t\t\t{\n\t\t\t\t$filter['%'.$fieldName] = $requestFilter[$fieldName];\n\t\t\t}\n\t\t}\n\n\t\tforeach ($this->getFieldNamesByType(static::TYPE_USER, static::DISPLAY_IN_FILTER) as $fieldName)\n\t\t{\n\t\t\tif (!empty($requestFilter[$fieldName]))\n\t\t\t{\n\t\t\t\t$filter['='.$fieldName] = (int)$requestFilter[$fieldName];\n\t\t\t}\n\t\t}\n\n\t\tforeach ($this->getFieldNamesByType(static::TYPE_CRM_ENTITY, static::DISPLAY_IN_FILTER) as $fieldName)\n\t\t{\n\t\t\tif (!empty($requestFilter[$fieldName]))\n\t\t\t{\n\t\t\t\t$filter['='.$fieldName] = (int)$requestFilter[$fieldName];\n\t\t\t}\n\t\t}\n\n\t\tforeach ($this->getFieldNamesByType(static::TYPE_DATE, static::DISPLAY_IN_FILTER) as $fieldName)\n\t\t{\n\t\t\tif (!empty($requestFilter[$fieldName.'_from']))\n\t\t\t{\n\t\t\t\t$filter['>='.$fieldName] = $requestFilter[$fieldName.'_from'];\n\t\t\t}\n\t\t\tif (!empty($requestFilter[$fieldName.'_to']))\n\t\t\t{\n\t\t\t\t$filter['<='.$fieldName] = $requestFilter[$fieldName.'_to'];\n\t\t\t}\n\t\t}\n\n\t\tforeach ($this->getFieldNamesByType(static::TYPE_BOOLEAN, static::DISPLAY_IN_FILTER) as $fieldName)\n\t\t{\n\t\t\tif (!empty($requestFilter[$fieldName]))\n\t\t\t{\n\t\t\t\t$filterValue = $requestFilter[$fieldName] === 'Y';\n\n\t\t\t\t$filter['='.$fieldName] = $filterValue;\n\t\t\t}\n\t\t}\n\n\t\tforeach ($this->getFieldNamesByType(static::TYPE_LIST, static::DISPLAY_IN_FILTER) as $fieldName)\n\t\t{\n\t\t\tif (!empty($requestFilter[$fieldName]))\n\t\t\t{\n\t\t\t\tif($fieldName === static::FIELD_STAGE_SEMANTIC && $this->factory->isStagesEnabled())\n\t\t\t\t{\n\t\t\t\t\tstatic::processStageSemanticFilter($requestFilter, $filter);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$filter['='.$fieldName] = $requestFilter[$fieldName];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$parentFields = $this->getFieldNamesByType(\n\t\t\tstatic::TYPE_PARENT,\n\t\t\tstatic::DISPLAY_IN_FILTER\n\t\t);\n\t\tforeach ($parentFields as $fieldName)\n\t\t{\n\t\t\tif (!empty($requestFilter[$fieldName]))\n\t\t\t{\n\t\t\t\t$filter[$fieldName] = $requestFilter[$fieldName];\n\t\t\t}\n\t\t}\n\t}", "public function getFilter()\n\t{\n\t\treturn 'array';\n\t}", "protected function _buildWhere(array $filter_data = array())\n {\n\t\t$where = \"1\";\n \t\n \tif( isset($filter_data['category']) && $filter_data['category'] )\n\t\t{\n\t\t\t$where .= \" AND {$this->c_table}.category_id=\".intval($filter_data['category']);\n\t\t}\n\t\t\n\t\treturn $where;\n }", "public function filter($filterChain);", "function filterType($tbl, $tbl2, $tbl3, $col, $col2, $col3, $filter) {\n\t\tinclude('connect.php');\n\t\t$queryFilter = \"SELECT * FROM {$tbl} m, {$tbl2} g, {$tbl3} mg WHERE m.{$col} = mg.{$col} AND g.{$col2} = mg.{$col2} AND g.{$col3} = '{$filter}'\";\n\t\t$runFilter = mysqli_query($link, $queryFilter);\n\t\tif($runFilter){\n\t\t\treturn $runFilter;\n\t\t}else{\n\t\t\t$error = \"There was an error accessing this Information. Please contact your admin.\";\n\t\t\treturn $error;\n\t\t}\n\t\tmysqli_close($link);\n\t}", "function fn_filter_uploaded_data($name, $filter_by_ext = array())\n{\n $udata_local = fn_rebuild_files('file_' . $name);\n $udata_other = !empty($_REQUEST['file_' . $name]) ? $_REQUEST['file_' . $name] : array();\n $utype = !empty($_REQUEST['type_' . $name]) ? $_REQUEST['type_' . $name] : array();\n\n if (empty($utype)) {\n return array();\n }\n\n $filtered = array();\n\n foreach ($utype as $id => $type) {\n if ($type == 'local' && !fn_is_empty(@$udata_local[$id])) {\n $filtered[$id] = fn_get_local_data(Bootstrap::stripSlashes($udata_local[$id]));\n\n } elseif ($type == 'server' && !fn_is_empty(@$udata_other[$id]) && (Registry::get('runtime.skip_area_checking') || AREA == 'A')) {\n fn_get_last_key($udata_other[$id], 'fn_get_server_data', true);\n $filtered[$id] = $udata_other[$id];\n\n } elseif ($type == 'url' && !fn_is_empty(@$udata_other[$id])) {\n fn_get_last_key($udata_other[$id], 'fn_get_url_data', true);\n $filtered[$id] = $udata_other[$id];\n } elseif ($type == 'uploaded' && !fn_is_empty(@$udata_other[$id])) {\n fn_get_last_key($udata_other[$id], function ($file_path) {\n return fn_get_server_data($file_path, array(Storage::instance('custom_files')->getAbsolutePath('')));\n }, true);\n\n $filtered[$id] = $udata_other[$id];\n }\n\n if (isset($filtered[$id]) && $filtered[$id] === false) {\n unset($filtered[$id]);\n fn_set_notification('E', __('error'), __('cant_upload_file', ['[product]' => PRODUCT_NAME]));\n continue;\n }\n\n if (!empty($filtered[$id]['name'])) {\n $filtered[$id]['name'] = \\Tygh\\Tools\\SecurityHelper::sanitizeFileName(urldecode($filtered[$id]['name']));\n \n if (!fn_check_uploaded_data($filtered[$id], $filter_by_ext)) {\n unset($filtered[$id]);\n }\n }\n }\n\n static $shutdown_inited;\n\n if (!$shutdown_inited) {\n $shutdown_inited = true;\n register_shutdown_function('fn_remove_temp_data');\n }\n\n /**\n * Executed after filtering uploaded files.\n * It allows to change or extend the filtered files.\n *\n * @param string $name name of uploaded data\n * @param array $filter_by_ext allow file extensions\n * @param array $filtered filtered file data\n * @param array $udata_local List of uploaded files\n * @param array $udata_other List of files object types\n * @param array $utype List of files sources\n */\n fn_set_hook('filter_uploaded_data_post', $name, $filter_by_ext, $filtered, $udata_local, $udata_other, $utype);\n\n return $filtered;\n}", "private function filterParameters(array $data)\n {\n $builtinFunctions = $this->builtinFunctions();\n\n $result = [];\n foreach ($data as $value) {\n if ($value === null) {\n continue;\n }\n\n if ($value === false) {\n $value = 0;\n } elseif ($value === true) {\n $value = 1;\n }\n\n if (is_string($value) && $builtinFunctions->containsFunction($value)) {\n continue;\n }\n\n $result[] = $value;\n }\n\n return $result;\n }", "public function setFilter($filter){ }", "public static function filter_objects(array $objects_array, $where_clause) {\n if(!$objects_array) {\n return array(); //empty arrays should immediately exit\n }\n $optional_preamble_regex = \"\\\\s*(?i:WHERE\\\\s*)?\";\n $boolean_operators_regex = \"(?i:AND)\"; //TODO: Adding support for OR would be awesome here. Maybe at a later date\n $operators_list_regex = \"=|!=|<=|>=|<|>|NOT IN|not in|IN|in|NOT LIKE|not like|LIKE|like|IS NOT|is not|IS|is\"; //IS NOT needs to be listed before IS, <= and >= need to be listed before < and >\n $field_name_regex = \"\\\\w+\";\n $value_regex = \"\\\\'.*?\\\\'|\\\\(.*?\\\\)|\\\\S*\";\n $comparison_regex = \"($field_name_regex)\\\\s*($operators_list_regex)\\\\s*($value_regex)\";\n preg_match_all(\n \"/$optional_preamble_regex(?:\\\\s*($boolean_operators_regex)?\\\\s*$comparison_regex?)/\",\n $where_clause,\n $comparisons,\n PREG_SET_ORDER);\n\n if($comparisons) {\n foreach($comparisons as $comparison) {\n if($objects_array) { //stop immediately if the array gets filtered down to nothing.\n $boolean = $comparison[1];\n $field = $comparison[2];\n $operator = strtoupper($comparison[3]);\n $value = trim(\n trim($comparison[4]),\n \"'\\\"\"); //trim spaces and quotes //TODO: right now this doesn't allow for allowing actual quotes at the start or end of values\n\n //TODO: Add logic to make sure input array contains objects\n //if the object doesn't have the field in question, then we just remove it from the array. It can't match the criteria if it doesn't exist.\n // Don't want to remove things with null if we're trying to filter on null objects\n if(strtolower($value) !== \"null\") {\n $objects_array = array_filter(\n $objects_array,\n function ($object) use ($field) {\n return isset($object->$field);\n });\n }\n if($objects_array) { //the filtering above might have emptied the array. Check again to make sure that it still has something in it.\n $sample_value = ArrayUtil::pop($objects_array)->$field;\n if(is_object($sample_value)\n && is_a(\n $sample_value,\n \"DateTime\")\n ) { //check to see if it's an object first so it doesn't try to autoload primative values as though they were a class.\n if($value == \"NOW()\") {\n $value = new DateTime();\n } else {\n try {\n $value = new DateTime($value);\n } catch(Exception $e) {\n }\n }\n }\n\n switch($operator) {\n case \"=\":\n $objects_array = array_filter(\n $objects_array,\n function ($object) use ($field, $value) {\n return $object->$field == $value;\n });\n break;\n case \"!=\":\n $objects_array = array_filter(\n $objects_array,\n function ($object) use ($field, $value) {\n return $object->$field != $value;\n });\n break;\n case \"<\":\n $objects_array = array_filter(\n $objects_array,\n function ($object) use ($field, $value) {\n return $object->$field < $value;\n });\n break;\n case \">\":\n $objects_array = array_filter(\n $objects_array,\n function ($object) use ($field, $value) {\n return $object->$field > $value;\n });\n break;\n case \"<=\":\n $objects_array = array_filter(\n $objects_array,\n function ($object) use ($field, $value) {\n return $object->$field <= $value;\n });\n break;\n case \">=\":\n $objects_array = array_filter(\n $objects_array,\n function ($object) use ($field, $value) {\n return $object->$field >= $value;\n });\n break;\n case \"in\":\n case \"not in\":\n case \"IN\":\n case \"NOT IN\":\n preg_match_all(\n \"/(?:^\\\\s*\\\\()?\\\\s*(?|[\\\"'](.*?)[\\\"']|([^,]*?))\\\\s*(?:,|\\\\)\\\\s*$)/\",\n $value,\n $values);\n $values = $values[1]; //ignore the full regex captures, only get the values from the capturing subgroup of interest\n $objects_array = array_filter(\n $objects_array,\n function ($object) use ($field, $values, $operator) {\n $in = in_array($object->$field, $values);\n\n return !($operator == \"IN\" xor $in);\n });\n break;\n case \"like\":\n case \"not like\":\n case \"LIKE\":\n case \"NOT LIKE\":\n $value = str_replace(\"%\", \".*?\", preg_quote($value, \"/\"));\n $objects_array = array_filter(\n $objects_array,\n function ($object) use ($field, $value, $operator) {\n $like = preg_match(\"/$value/\", $object->$field);\n\n return !($operator == \"LIKE\" xor $like);\n });\n break;\n case \"is\":\n case \"is not\":\n case \"IS\":\n case \"IS NOT\":\n $objects_array = array_filter(\n $objects_array,\n function ($object) use ($field, $value, $operator) {\n $value = strtolower($value);\n switch($value) {\n case \"array\":\n case \"bool\":\n case \"callable\":\n case \"double\":\n case \"float\":\n case \"int\":\n case \"integer\":\n case \"long\":\n case \"null\":\n case \"numeric\":\n case \"object\":\n case \"real\":\n case \"resource\":\n case \"scalar\":\n case \"string\":\n $is = call_user_func(\"is_\" . $value, $object->$field);\n break;\n case \"true\":\n $is = (bool)$object->$field;\n break;\n case \"false\":\n $is = !(bool)$object->$field;\n break;\n case \"set\":\n $is = isset($object->$field);\n break;\n case \"empty\":\n $is = empty($object->$field);\n break;\n default:\n return false;\n }\n\n return !($operator == \"IS\" xor $is);\n });\n break;\n default:\n return false;\n }\n }\n }\n }\n }\n\n return $objects_array;\n\n }", "public static function filter(array $input, array $filterset)\n\t{\n\t\tforeach($filterset as $field => $filters)\n\t\t{\n\t\t\t$filters = explode('|', $filters);\n\n\t\t\tforeach($filters as $filter)\n\t\t\t{\n\t\t\t\t//First try built in or extended filters\n\t\t\t\tif(method_exists('GUMP', 'filter_'.$filter))\n\t\t\t\t{\n\t\t\t\t\t$method = 'filter_'.$filter;\n\t\t\t\t\t$input[$field] = GUMP::$method($input[$field]);\n\t\t\t\t}\n\t\t\t\t//Else try for a php function\n\t\t\t\telse if(function_exists($filter))\n\t\t\t\t{\n\t\t\t\t\t$input[$field] = $filter($input[$field]);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthrow new Exception(\"Filter method '$method' does not exist.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\t\n\t\treturn $input;\n\t}", "function filter($callback = null);" ]
[ "0.67015016", "0.66931206", "0.6633804", "0.6386364", "0.6384378", "0.63608956", "0.6310036", "0.62417597", "0.6206509", "0.614386", "0.6128497", "0.61267316", "0.6064999", "0.6050393", "0.5989289", "0.59738654", "0.59617263", "0.5905988", "0.5905286", "0.5889432", "0.58622557", "0.58613765", "0.5857035", "0.58390313", "0.5819536", "0.5777313", "0.57419187", "0.5713758", "0.56927854", "0.5663968", "0.5645412", "0.5604536", "0.55997974", "0.5587423", "0.55860144", "0.55495805", "0.55441594", "0.55404836", "0.5535995", "0.55333054", "0.5529549", "0.55099815", "0.5509311", "0.5506328", "0.5505164", "0.5488181", "0.54828846", "0.548233", "0.547713", "0.5463804", "0.54612887", "0.54611725", "0.5441893", "0.5441287", "0.54402953", "0.543437", "0.54289764", "0.5425709", "0.5420469", "0.53985083", "0.5398374", "0.5395393", "0.5378566", "0.5373235", "0.5371789", "0.536984", "0.536639", "0.53629506", "0.53563684", "0.5355714", "0.5347446", "0.5343928", "0.5340221", "0.53363675", "0.5329904", "0.53285235", "0.5312161", "0.5307903", "0.5307674", "0.53014594", "0.5299467", "0.5298185", "0.52977294", "0.52921224", "0.5279507", "0.5268764", "0.5268536", "0.5266979", "0.5260467", "0.5260285", "0.52449834", "0.5217603", "0.521545", "0.5214392", "0.52067256", "0.5205306", "0.52020854", "0.5194755", "0.51910657", "0.5172171", "0.51704246" ]
0.0
-1
Run the database seeds.
public function run() { $item = 0; for ($i=0; $i < 3; $i++) { $item++; DB::table('sales')->insert([ 'product_id' => $item, 'quantity' => 1, 'price' => 50000, 'status' => "sold", //sold , canceled, 'created_at' => "2018-06-01" ]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n factory(App\\Editeur::class, 40) ->create();\n factory(App\\Auteur::class, 40) ->create();\n factory(App\\Livre::class, 80) ->create();\n\n for ($i = 1; $i < 41; $i++) {\n $number = rand(2, 8);\n for ($j = 1; $j <= $number; $j++) {\n DB::table('auteur_livre')->insert([\n 'livre_id' => rand(1, 40),\n 'auteur_id' => $i\n ]);\n }\n }\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Let's truncate our existing records to start from scratch.\n Assignation::truncate();\n\n $faker = \\Faker\\Factory::create();\n \n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 40; $i++) {\n Assignation::create([\n 'ad_id' => $faker->numberBetween(1,20),\n 'buyer_id' => $faker->numberBetween(1,6),\n 'seller_id' => $faker->numberBetween(6,11),\n 'state' => NULL,\n ]);\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n \t$faker = Faker::create();\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$post = new Post;\n \t\t$post->title = $faker->sentence();\n \t\t$post->body = $faker->paragraph();\n \t\t$post->category_id = rand(1, 5);\n \t\t$post->save();\n \t}\n\n \t$list = ['General', 'Technology', 'News', 'Internet', 'Mobile'];\n \tforeach($list as $name) {\n \t\t$category = new Category;\n \t\t$category->name = $name;\n \t\t$category->save();\n \t}\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$comment = new Comment;\n \t\t$comment->comment = $faker->paragraph();\n \t\t$comment->post_id = rand(1,20);\n \t\t$comment->save();\n \t}\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call(RoleTableSeeder::class);\n $this->call(UserTableSeeder::class);\n \n factory('App\\Cat', 5)->create();\n $tags = factory('App\\Tag', 8)->create();\n\n factory(Post::class, 15)->create()->each(function($post) use ($tags){\n $post->comments()->save(factory(Comment::class)->make());\n $post->tags()->attach( $tags->random(mt_rand(1,4))->pluck('id')->toArray() );\n });\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('post')->insert(\n [\n 'title' => 'Test Post1',\n 'desc' => str_random(100).\" post1\",\n 'alias' => 'test1',\n 'keywords' => 'test1',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post2',\n 'desc' => str_random(100).\" post2\",\n 'alias' => 'test2',\n 'keywords' => 'test2',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post3',\n 'desc' => str_random(100).\" post3\",\n 'alias' => 'test3',\n 'keywords' => 'test3',\n ]\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n \t$faker = Factory::create();\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\tDepartment::create([\n \t\t\t'name' => $department\n \t\t]);\n \t}\n \tforeach ($this->collections as $key => $collection) {\n \t\tCollection::create([\n \t\t\t'name' => $collection\n \t\t]);\n \t}\n \t\n \t\n \tfor ($i=0; $i < 40; $i++) {\n \t\tUser::create([\n \t\t\t'name' \t=>\t$faker->name,\n \t\t\t'email' \t=>\t$faker->email,\n \t\t\t'password' \t=>\tbcrypt('123456'),\n \t\t]);\n \t} \n \t\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\t//echo ($key + 1) . PHP_EOL;\n \t\t\n \t\tfor ($i=0; $i < 10; $i++) { \n \t\t\techo $faker->name . PHP_EOL;\n\n \t\t\tArt::create([\n \t\t\t\t'name'\t\t\t=> $faker->sentence(2),\n \t\t\t\t'img'\t\t\t=> $this->filenames[$i],\n \t\t\t\t'medium'\t\t=> 'canvas',\n \t\t\t\t'department_id'\t=> $key + 1,\n \t\t\t\t'user_id'\t\t=> $this->userIndex,\n \t\t\t\t'dimension'\t\t=> '18.0 x 24.0',\n\t\t\t\t]);\n \t\t\t\t\n \t\t\t\t$this->userIndex ++;\n \t\t}\n \t}\n \t\n \tdd(\"END\");\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->dataCategory();\n factory(App\\Model\\Category::class, 70)->create();\n factory(App\\Model\\Producer::class, rand(5,10))->create();\n factory(App\\Model\\Provider::class, rand(5,10))->create();\n factory(App\\Model\\Product::class, 100)->create();\n factory(App\\Model\\Album::class, 300)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n\n factory('App\\User', 10 )->create();\n\n $users= \\App\\User::all();\n $users->each(function($user){ factory('App\\Category', 1)->create(['user_id'=>$user->id]); });\n $users->each(function($user){ factory('App\\Tag', 3)->create(['user_id'=>$user->id]); });\n\n\n $users->each(function($user){\n factory('App\\Post', 10)->create([\n 'user_id'=>$user->id,\n 'category_id'=>rand(1,20)\n ]\n );\n });\n\n $posts= \\App\\Post::all();\n $posts->each(function ($post){\n\n $post->tags()->attach(array_unique([rand(1,20),rand(1,20),rand(1,20)]));\n });\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $types = factory(\\App\\Models\\Type::class, 5)->create();\n\n $cities = factory(\\App\\Models\\City::class, 10)->create();\n\n $cities->each(function ($city) {\n $districts = factory(\\App\\Models\\District::class, rand(2, 5))->create([\n 'city_id' => $city->id,\n ]);\n\n $districts->each(function ($district) {\n $properties = factory(\\App\\Models\\Property::class, rand(2, 5))->create([\n 'type_id' => rand(1, 5),\n 'district_id' => $district->id\n ]);\n\n $properties->each(function ($property) {\n $galleries = factory(\\App\\Models\\Gallery::class, rand(3, 10))->create([\n 'property_id' => $property->id\n ]);\n });\n });\n });\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n\n $categories = factory(App\\Models\\Category::class, 10)->create();\n\n $categories->each(function ($category) {\n $category\n ->posts()\n ->saveMany(\n factory(App\\Models\\Post::class, 3)->make()\n );\n });\n }", "public function run()\n {\n $this->call(CategoriesTableSeeder::class);\n\n $users = factory(App\\User::class, 5)->create();\n $recipes = factory(App\\Recipe::class, 30)->create();\n $preparations = factory(App\\Preparation::class, 70)->create();\n $photos = factory(App\\Photo::class, 90)->create();\n $comments = factory(App\\Comment::class, 200)->create();\n $flavours = factory(App\\Flavour::class, 25)->create();\n $flavour_recipe = factory(App\\FlavourRecipe::class, 50)->create();\n $tags = factory(App\\Tag::class, 25)->create();\n $recipe_tag = factory(App\\RecipeTag::class, 50)->create();\n $ingredients = factory(App\\Ingredient::class, 25)->create();\n $ingredient_preparation = factory(App\\IngredientPreparation::class, 300)->create();\n \n \n \n DB::table('users')->insert(['name' => 'SimpleUtilisateur', 'email' => 'simpleadressemail@mail.com', 'password' => bcrypt('SimpleMotDePasse')]);\n \n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n // Sample::truncate();\n // TestItem::truncate();\n // UOM::truncate();\n Role::truncate();\n User::truncate();\n\n // factory(Role::class, 4)->create();\n Role::create([\n 'name'=> 'Director',\n 'description'=> 'Director type'\n ]);\n\n Role::create([\n 'name'=> 'Admin',\n 'description'=> 'Admin type'\n ]);\n Role::create([\n 'name'=> 'Employee',\n 'description'=> 'Employee type'\n ]);\n Role::create([\n 'name'=> 'Technician',\n 'description'=> 'Technician type'\n ]);\n \n factory(User::class, 20)->create()->each(\n function ($user){\n $roles = \\App\\Role::all()->random(mt_rand(1, 2))->pluck('id');\n $user->roles()->attach($roles);\n }\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n UsersLevel::create([\n 'name' => 'Administrator'\n ]);\n\n UsersLevel::create([\n 'name' => 'User'\n ]);\n\n User::create([\n 'username' => 'admin',\n 'password' => bcrypt('admin123'),\n 'level_id' => 1,\n 'fullname' => \"Super Admin\",\n 'email'=> \"admin@admin.com\"\n ]);\n\n\n \\App\\CategoryPosts::create([\n 'name' =>'Paket Trip'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' =>'Destinasi Kuliner'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Event'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Profil'\n ]);\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'email' => 'admin@petstore.com',\n 'avatar' => \"avatar\",\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',\n ]);\n $this->call(CategorySeeder::class);\n // \\App\\Models\\Admin::factory(1)->create();\n \\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Category::factory(50)->create();\n \\App\\Models\\PetComment::factory(50)->create();\n $pets = \\App\\Models\\Pet::factory(50)->create();\n foreach ($pets as $pet) {\n \\App\\Models\\PetTag::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\PetPhotoUrl::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\Order::factory(1)->create(['pet_id' => $pet->id]);\n };\n }", "public function run()\n { \n\n $this->call(RoleSeeder::class);\n \n $this->call(UserSeeder::class);\n\n Storage::deleteDirectory('socials-icon');\n Storage::makeDirectory('socials-icon');\n $socials = Social::factory(7)->create();\n\n Storage::deleteDirectory('countries-flag');\n Storage::deleteDirectory('countries-firm');\n Storage::makeDirectory('countries-flag');\n Storage::makeDirectory('countries-firm');\n $countries = Country::factory(18)->create();\n\n // Se llenan datos de la tabla muchos a muchos - social_country\n foreach ($countries as $country) {\n foreach ($socials as $social) {\n\n $country->socials()->attach($social->id, [\n 'link' => 'https://www.facebook.com/ministeriopalabrayespiritu/'\n ]);\n }\n }\n\n Person::factory(50)->create();\n\n Category::factory(7)->create();\n\n Video::factory(25)->create(); \n\n $this->call(PostSeeder::class);\n\n Storage::deleteDirectory('documents');\n Storage::makeDirectory('documents');\n Document::factory(25)->create();\n\n }", "public function run()\n {\n $faker = Faker::create('id_ID');\n /**\n * Generate fake author data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('author')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Generate fake publisher data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('publisher')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Seeding payment method\n */\n DB::table('payment')->insert([\n ['name' => 'Mandiri'],\n ['name' => 'BCA'],\n ['name' => 'BRI'],\n ['name' => 'BNI'],\n ['name' => 'Pos Indonesia'],\n ['name' => 'BTN'],\n ['name' => 'Indomaret'],\n ['name' => 'Alfamart'],\n ['name' => 'OVO'],\n ['name' => 'Cash On Delivery']\n ]);\n }", "public function run()\n {\n DatabaseSeeder::seedLearningStylesProbs();\n DatabaseSeeder::seedCampusProbs();\n DatabaseSeeder::seedGenderProbs();\n DatabaseSeeder::seedTypeStudentProbs();\n DatabaseSeeder::seedTypeProfessorProbs();\n DatabaseSeeder::seedNetworkProbs();\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n // MyList::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 3; $i++) {\n MyList::create([\n 'title' => 'List-'.($i+1),\n 'color' => $faker->sentence,\n 'icon' => $faker->randomDigitNotNull,\n 'index' => $faker->randomDigitNotNull,\n 'user_id' => 1,\n ]);\n }\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Products::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few products in our database:\n for ($i = 0; $i < 50; $i++) {\n Products::create([\n 'name' => $faker->word,\n 'sku' => $faker->randomNumber(7, false),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n User::create([\n 'name' => 'Pablo Rosales',\n 'email' => 'prosales@researchmobile.co',\n 'password' => bcrypt('admin'),\n 'status' => 1,\n 'role_id' => 1,\n 'movil' => 0\n ]);\n\n User::create([\n 'name' => 'Usuario Movil',\n 'email' => 'movil@researchmobile.co',\n 'password' => bcrypt('secret'),\n 'status' => 1,\n 'role_id' => 3,\n 'movil' => 1\n ]);\n\n Roles::create([\n 'name' => 'Administrador'\n ]);\n Roles::create([\n 'name' => 'Operaciones'\n ]);\n Roles::create([\n 'name' => 'Comercial'\n ]);\n Roles::create([\n 'name' => 'Aseguramiento'\n ]);\n Roles::create([\n 'name' => 'Facturación'\n ]);\n Roles::create([\n 'name' => 'Creditos y Cobros'\n ]);\n\n factory(App\\Customers::class, 100)->create();\n }", "public function run()\n {\n // php artisan db:seed --class=StoreTableSeeder\n\n foreach(range(1,20) as $i){\n $faker = Faker::create();\n Store::create([\n 'name' => $faker->name,\n 'desc' => $faker->text,\n 'tags' => $faker->word,\n 'address' => $faker->address,\n 'longitude' => $faker->longitude($min = -180, $max = 180),\n 'latitude' => $faker->latitude($min = -90, $max = 90),\n 'created_by' => '1'\n ]);\n }\n\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name'=>\"test\",\n 'password' => Hash::make('123'),\n 'email'=>'test@yandex.ru'\n ]);\n DB::table('tags')->insert(['name'=>'tags']);\n $this->call(UserSeed::class);\n $this->call(CategoriesSeed::class);\n $this->call(TopicsSeed::class);\n $this->call(CommentariesSeed::class);\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n echo 'seeding permission...', PHP_EOL;\n $permissions = [\n 'role-list',\n 'role-create',\n 'role-edit',\n 'role-delete',\n 'formation-list',\n 'formation-create',\n 'formation-edit',\n 'formation-delete',\n 'user-list',\n 'user-create',\n 'user-edit',\n 'user-delete'\n ];\n foreach ($permissions as $permission) {\n Permission::create(['name' => $permission]);\n }\n echo 'seeding users...', PHP_EOL;\n\n $user= User::create(\n [\n 'name' => 'Mr. admin',\n 'email' => 'admin@yahoo.com',\n 'password' => bcrypt('admin'),\n 'remember_token' => null,\n ]\n );\n echo 'Create Roles...', PHP_EOL;\n Role::create(['name' => 'former']);\n Role::create(['name' => 'learner']);\n Role::create(['name' => 'admin']);\n Role::create(['name' => 'manager']);\n Role::create(['name' => 'user']);\n\n echo 'seeding Role User...', PHP_EOL;\n $user->assignRole('admin');\n $role = $user->assignRole('admin');\n $role->givepermissionTo(Permission::all());\n\n \\DB::table('languages')->insert(['name' => 'English', 'code' => 'en']);\n \\DB::table('languages')->insert(['name' => 'Français', 'code' => 'fr']);\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(ThemeSeeder::class);\n\n //\n\n DB::table('paypal_info')->insert([\n 'client_id' => '',\n 'client_secret' => '',\n 'currency' => '',\n ]);\n DB::table('contact_us')->insert([\n 'content' => '',\n ]);\n DB::table('setting')->insert([\n 'site_name' => ' ',\n ]);\n DB::table('terms_and_conditions')->insert(['terms_and_condition' => 'text']);\n }", "public function run()\n {\n $this->call([\n UserSeeder::class,\n ]);\n\n User::factory(20)->create();\n Author::factory(20)->create();\n Book::factory(60)->create();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UserSeeder::class);\n $this->call(RolePermissionSeeder::class);\n $this->call(AppmodeSeeder::class);\n\n // \\App\\Models\\Appmode::factory(3)->create();\n \\App\\Models\\Doctor::factory(100)->create();\n \\App\\Models\\Unit::factory(50)->create();\n \\App\\Models\\Broker::factory(100)->create();\n \\App\\Models\\Patient::factory(100)->create();\n \\App\\Models\\Expence::factory(100)->create();\n \\App\\Models\\Testcategory::factory(100)->create();\n \\App\\Models\\Test::factory(50)->create();\n \\App\\Models\\Parameter::factory(50)->create();\n \\App\\Models\\Sale::factory(50)->create();\n \\App\\Models\\SaleItem::factory(100)->create();\n \\App\\Models\\Goption::factory(1)->create();\n \\App\\Models\\Pararesult::factory(50)->create();\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // DB::table('roles')->insert(\n // [\n // ['name' => 'admin', 'description' => 'Administrator'],\n // ['name' => 'student', 'description' => 'Student'],\n // ['name' => 'lab_tech', 'description' => 'Lab Tech'],\n // ['name' => 'it_staff', 'description' => 'IT Staff Member'],\n // ['name' => 'it_manager', 'description' => 'IT Manager'],\n // ['name' => 'lab_manager', 'description' => 'Lab Manager'],\n // ]\n // );\n\n // DB::table('users')->insert(\n // [\n // 'username' => 'admin', \n // 'password' => Hash::make('password'), \n // 'active' => 1,\n // 'name' => 'Administrator',\n // 'email' => 'programmerlemar@gmail.com',\n // 'role_id' => \\App\\Role::where('name', 'admin')->first()->id\n // ]\n // );\n\n DB::table('status')->insert([\n // ['name' => 'Active'],\n // ['name' => 'Cancel'],\n // ['name' => 'Disable'],\n // ['name' => 'Open'],\n // ['name' => 'Closed'],\n // ['name' => 'Resolved'],\n ['name' => 'Used'],\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create([\n 'name' => 'Qwerty',\n 'email' => 'qwerty@gmail.com',\n 'password' => bcrypt('secretpassw'),\n ]);\n\n factory(User::class, 59)->create([\n 'password' => bcrypt('secretpassw'),\n ]);\n\n for ($i = 1; $i < 11; $i++) {\n factory(Category::class)->create([\n 'name' => 'Category ' . $i,\n ]);\n }\n\n for ($i = 1; $i < 101; $i++) {\n factory(Product::class)->create([\n 'name' => 'Product ' . $i,\n ]);\n }\n }", "public function run()\n {\n\n \t// Making main admin role\n \tDB::table('roles')->insert([\n 'name' => 'Admin',\n ]);\n\n // Making main category\n \tDB::table('categories')->insert([\n 'name' => 'Other',\n ]);\n\n \t// Making main admin account for testing\n \tDB::table('users')->insert([\n 'name' \t\t=> 'Admin',\n 'email' \t=> 'admin@example.com',\n 'password' => bcrypt('12345'),\n 'role_id' => 1,\n 'created_at' => date('Y-m-d H:i:s' ,time()),\n 'updated_at' => date('Y-m-d H:i:s' ,time())\n ]);\n\n \t// Making random users and posts\n factory(App\\User::class, 10)->create();\n factory(App\\Post::class, 35)->create();\n }", "public function run()\n {\n $faker = Faker::create();\n\n \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Chef',\n 'salario' => '15000.00'\n ));\n\n\t\t \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Mesonero',\n 'salario' => '12000.00'\n ));\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = \\Faker\\Factory::create();\n\n foreach (range(1,5) as $index) {\n Lista::create([\n 'name' => $faker->sentence(2),\n 'description' => $faker->sentence(10), \n ]);\n } \n\n foreach (range(1,20) as $index) {\n $n = $faker->sentence(2);\n \tTarea::create([\n \t\t'name' => $n,\n \t\t'description' => $faker->sentence(10),\n 'lista_id' => $faker->numberBetween(1,5),\n 'slug' => Str::slug($n),\n \t\t]);\n } \n }", "public function run()\n {\n $faker = Faker::create('lt_LT');\n\n DB::table('users')->insert([\n 'name' => 'user',\n 'email' => 'briedis@aa.bb',\n 'password' => Hash::make('123')\n ]);\n DB::table('users')->insert([\n 'name' => 'user2',\n 'email' => 'briedis2@aa.bb',\n 'password' => Hash::make('123')\n ]);\n\n foreach (range(1,100) as $val)\n DB::table('authors')->insert([\n 'name' => $faker->firstName(),\n 'surname' => $faker->lastName(),\n \n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UsersTableSeeder::class);\n\n // DB::table('users')->insert([\n // 'name' => 'User1',\n // 'email' => 'admin@admin.com',\n // 'password' => bcrypt('password'),\n // ]);\n\n\n $faker = Faker::create();\n \n foreach (range(1,10) as $index){\n DB::table('companies')->insert([\n 'name' => $faker->company(),\n 'email' => $faker->email(10).'@gmail.com',\n 'logo' => $faker->image($dir = '/tmp', $width = 640, $height = 480),\n 'webiste' => $faker->domainName(),\n \n ]);\n }\n \n \n foreach (range(1,10) as $index){\n DB::table('employees')->insert([\n 'first_name' => $faker->firstName(),\n 'last_name' => $faker->lastName(),\n 'company' => $faker->company(),\n 'email' => $faker->str_random(10).'@gmail.com',\n 'phone' => $faker->e164PhoneNumber(),\n \n ]);\n }\n\n\n\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Flight::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 100; $i++) {\n\n\n Flight::create([\n 'flightNumber' => $faker->randomNumber(5),\n 'depAirport' => $faker->city,\n 'destAirport' => $faker->city,\n 'reservedWeight' => $faker->numberBetween(1000 - 10000),\n 'deptTime' => $faker->dateTime('now'),\n 'arrivalTime' => $faker->dateTime('now'),\n 'reservedVolume' => $faker->numberBetween(1000 - 10000),\n 'airlineName' => $faker->colorName,\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->truncteTables([\n 'users',\n 'products'\n ]);\n\n $this->call(UsersSeeder::class);\n $this->call(ProductsSeeder::class);\n\n }", "public function run()\n {\n /**\n * Dummy seeds\n */\n DB::table('metas')->truncate();\n $faker = Faker::create();\n\n for ($i=0; $i < 10; $i++) { \n DB::table('metas')->insert([\n 'id_rel' => $faker->randomNumber(),\n 'titulo' => $faker->sentence,\n 'descricao' => $faker->paragraph,\n 'justificativa' => $faker->paragraph,\n 'valor_inicial' => $faker->numberBetween(0,100),\n 'valor_atual' => $faker->numberBetween(0,100),\n 'valor_final' => $faker->numberBetween(0,10),\n 'regras' => json_encode([$i => [\"values\" => $faker->words(3)]]),\n 'types' => json_encode([$i => [\"values\" => $faker->words(2)]]),\n 'categorias' => json_encode([$i => [\"values\" => $faker->words(4)]]),\n 'tags' => json_encode([$i => [\"values\" => $faker->words(5)]]),\n 'active' => true,\n ]);\n }\n\n\n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n\n $faker = Faker::create();\n\n $lessonIds = Lesson::lists('id')->all(); // An array of ID's in that table [1, 2, 3, 4, 5, 7]\n $tagIds = Tag::lists('id')->all();\n\n foreach(range(1, 30) as $index)\n {\n // a real lesson id\n // a real tag id\n DB::table('lesson_tag')->insert([\n 'lesson_id' => $faker->randomElement($lessonIds),\n 'tag_id' => $faker->randomElement($tagIds),\n ]);\n }\n }", "public function run()\n {\n $this->call(CategoriasTableSeeder::class);\n $this->call(UfsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(UserTiposTableSeeder::class);\n factory(App\\User::class, 2)->create();\n/* factory(App\\Models\\Categoria::class, 20)->create();*/\n/* factory(App\\Models\\Anuncio::class, 50)->create();*/\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n Language::truncate();\n Reason::truncate();\n Report::truncate();\n Category::truncate();\n Position::truncate();\n\n $languageQuantity = 10;\n $reasonQuantity = 10;\n $reportQuantity = 10;\n $categoryQuantity = 10;\n $positionQuantity = 10;\n\n factory(Language::class,$languageQuantity)->create();\n factory(Reason::class,$reasonQuantity)->create();\n \n factory(Report::class,$reportQuantity)->create();\n \n factory(Category::class,$categoryQuantity)->create();\n \n factory(Position::class,$positionQuantity)->create();\n\n }", "public function run()\n {\n // \\DB::statement('SET_FOREIGN_KEY_CHECKS=0');\n \\DB::table('users')->truncate();\n \\DB::table('posts')->truncate();\n // \\DB::table('category')->truncate();\n \\DB::table('photos')->truncate();\n \\DB::table('comments')->truncate();\n \\DB::table('comment_replies')->truncate();\n\n \\App\\Models\\User::factory()->times(10)->hasPosts(1)->create();\n \\App\\Models\\Role::factory()->times(10)->create();\n \\App\\Models\\Category::factory()->times(10)->create();\n \\App\\Models\\Comment::factory()->times(10)->hasReplies(1)->create();\n \\App\\Models\\Photo::factory()->times(10)->create();\n\n \n // \\App\\Models\\User::factory(10)->create([\n // 'role_id'=>2,\n // 'is_active'=>1\n // ]);\n\n // factory(App\\Models\\Post::class, 10)->create();\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call([\n ArticleSeeder::class, \n TagSeeder::class,\n Arttagrel::class\n ]);\n // \\App\\Models\\User::factory(10)->create();\n \\App\\Models\\Article::factory()->count(7)->create();\n \\App\\Models\\Tag::factory()->count(15)->create(); \n \\App\\Models\\Arttagrel::factory()->count(15)->create(); \n }", "public function run()\n {\n $this->call(ArticulosTableSeeder::class);\n /*DB::table('articulos')->insert([\n 'titulo' => str_random(50),\n 'cuerpo' => str_random(200),\n ]);*/\n }", "public function run()\n {\n $this->call(CategoryTableSeeder::class);\n $this->call(ProductTableSeeder::class);\n\n \t\t\n\t\t\tDB::table('users')->insert([\n 'first_name' => 'Ignacio',\n 'last_name' => 'Garcia',\n 'email' => 'ignacio@dh.com',\n 'password' => bcrypt('123456'),\n 'role' => '1',\n 'avatar' => 'CGnABxNYYn8N23RWlvTTP6C2nRjOLTf8IJcbLqRP.jpeg',\n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(RoleSeeder::class);\n $this->call(UserSeeder::class);\n\n Medicamento::factory(50)->create();\n Reporte::factory(5)->create();\n Cliente::factory(200)->create();\n Asigna_valor::factory(200)->create();\n Carga::factory(200)->create();\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n TicketSeeder::class\n ]);\n\n DB::table('departments')->insert([\n 'abbr' => 'IT',\n 'name' => 'Information Technologies',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => 'admin@gmail.com',\n 'email_verified_at' => Carbon::now(),\n 'password' => Hash::make('admin'),\n 'department_id' => 1,\n 'avatar' => 'default.png',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('role_user')->insert([\n 'role_id' => 1,\n 'user_id' => 1\n ]);\n }", "public function run()\n {\n \\App\\Models\\Article::factory(20)->create();\n \\App\\Models\\Category::factory(5)->create();\n \\App\\Models\\Comment::factory(40)->create();\n\n \\App\\Models\\User::create([\n \"name\"=>\"Alice\",\n \"email\"=>'alice@gmail.com',\n 'password' => Hash::make('password'),\n ]);\n \\App\\Models\\User::create([\n \"name\"=>\"Bob\",\n \"email\"=>'bob@gmail.com',\n 'password' => Hash::make('password'),\n ]);\n }", "public function run()\n {\n /** \n * Note: You must add these lines to your .env file for this Seeder to work (replace the values, obviously):\n SEEDER_USER_FIRST_NAME = 'Firstname'\n SEEDER_USER_LAST_NAME = 'Lastname'\n\t\tSEEDER_USER_DISPLAY_NAME = 'Firstname Lastname'\n\t\tSEEDER_USER_EMAIL = your.email@domain.com\n SEEDER_USER_PASSWORD = yourpassword\n */\n\t\tDB::table('users')->insert([\n 'user_first_name' => env('SEEDER_USER_FIRST_NAME'),\n 'user_last_name' => env('SEEDER_USER_LAST_NAME'),\n 'user_name' => env('SEEDER_USER_DISPLAY_NAME'),\n\t\t\t'user_email' => env('SEEDER_USER_EMAIL'),\n 'user_status' => 1,\n \t'password' => Hash::make((env('SEEDER_USER_PASSWORD'))),\n 'permission_fk' => 1,\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class,3)->create()->each(\n \tfunction($user)\n \t{\n \t\t$user->questions()\n \t\t->saveMany(\n \t\t\tfactory(App\\Question::class, rand(2,6))->make()\n \t\t)\n ->each(function ($q) {\n $q->answers()->saveMany(factory(App\\Answer::class, rand(1,5))->make());\n })\n \t}\n );\n }\n}", "public function run()\n {\n $faker = Faker::create();\n\n // $this->call(UsersTableSeeder::class);\n\n DB::table('posts')->insert([\n 'id'=>str_random(1),\n 'user_id'=> str_random(1),\n 'title' => $faker->name,\n 'body' => $faker->safeEmail,\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s'),\n ]);\n }", "public function run()\n\t{\n\t\tDB::table(self::TABLE_NAME)->delete();\n\n\t\tforeach (seed(self::TABLE_NAME) as $row)\n\t\t\t$records[] = [\n\t\t\t\t'id'\t\t\t\t=> $row->id,\n\t\t\t\t'created_at'\t\t=> $row->created_at ?? Carbon::now(),\n\t\t\t\t'updated_at'\t\t=> $row->updated_at ?? Carbon::now(),\n\n\t\t\t\t'sport_id'\t\t\t=> $row->sport_id,\n\t\t\t\t'gender_id'\t\t\t=> $row->gender_id,\n\t\t\t\t'tournamenttype_id'\t=> $row->tournamenttype_id ?? null,\n\n\t\t\t\t'name'\t\t\t\t=> $row->name,\n\t\t\t\t'external_id'\t\t=> $row->external_id ?? null,\n\t\t\t\t'is_top'\t\t\t=> $row->is_top ?? null,\n\t\t\t\t'logo'\t\t\t\t=> $row->logo ?? null,\n\t\t\t\t'position'\t\t\t=> $row->position ?? null,\n\t\t\t];\n\n\t\tinsert(self::TABLE_NAME, $records ?? []);\n\t}", "public function run()\n\t{\n\t\tDB::table('libros')->truncate();\n\n\t\t$faker = Faker\\Factory::create();\n\n\t\tfor ($i=0; $i < 10; $i++) { \n\t\t\tLibro::create([\n\n\t\t\t\t'titulo'\t\t=> $faker->text(40),\n\t\t\t\t'isbn'\t\t\t=> $faker->numberBetween(100,999),\n\t\t\t\t'precio'\t\t=> $faker->randomFloat(2,3,150),\n\t\t\t\t'publicado'\t\t=> $faker->numberBetween(0,1),\n\t\t\t\t'descripcion'\t=> $faker->text(400),\n\t\t\t\t'autor_id'\t\t=> $faker->numberBetween(1,3),\n\t\t\t\t'categoria_id'\t=> $faker->numberBetween(1,3)\n\n\t\t\t]);\n\t\t}\n\n\t\t// Uncomment the below to run the seeder\n\t\t// DB::table('libros')->insert($libros);\n\t}", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 10)->create()->each(function ($user) {\n // Seed the relation with 5 purchases\n // $videos = factory(App\\Video::class, 5)->make();\n // $user->videos()->saveMany($videos);\n // $user->videos()->each(function ($video){\n // \t$video->videometa()->save(factory(App\\VideoMeta::class)->make());\n // \t// :( \n // });\n factory(App\\User::class, 10)->create()->each(function ($user) {\n\t\t\t factory(App\\Video::class, 5)->create(['user_id' => $user->id])->each(function ($video) {\n\t\t\t \tfactory(App\\VideoMeta::class, 1)->create(['video_id' => $video->id]);\n\t\t\t // $video->videometa()->save(factory(App\\VideoMeta::class)->create(['video_id' => $video->id]));\n\t\t\t });\n\t\t\t});\n\n });\n }", "public function run()\n {\n // for($i=1;$i<11;$i++){\n // DB::table('post')->insert(\n // ['title' => 'Title'.$i,\n // 'post' => 'Post'.$i,\n // 'slug' => 'Slug'.$i]\n // );\n // }\n $faker = Faker\\Factory::create();\n \n for($i=1;$i<20;$i++){\n $dname = $faker->name;\n DB::table('post')->insert(\n ['title' => $dname,\n 'post' => $faker->text($maxNbChars = 200),\n 'slug' => str_slug($dname)]\n );\n }\n }", "public function run()\n {\n $this->call([\n CountryTableSeeder::class,\n ProvinceTableSeeder::class,\n TagTableSeeder::class\n ]);\n\n User::factory()->count(10)->create();\n Category::factory()->count(5)->create();\n Product::factory()->count(20)->create();\n Section::factory()->count(5)->create();\n Bundle::factory()->count(20)->create();\n\n $bundles = Bundle::all();\n // populate bundle-product table (morph many-to-many)\n Product::all()->each(function ($product) use ($bundles) {\n $product->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray(),\n ['default_quantity' => rand(1, 10)]\n );\n });\n // populate bundle-tags table (morph many-to-many)\n Tag::all()->each(function ($tag) use ($bundles) {\n $tag->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray()\n );\n });\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Contract::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Contract::create([\n 'serialnumbers' => $faker->numberBetween($min = 1000000, $max = 2000000),\n 'address' => $faker->address,\n 'landholder' => $faker->lastName,\n 'renter' => $faker->lastName,\n 'price' => $faker->numberBetween($min = 10000, $max = 50000),\n 'rent_start' => $faker->date($format = 'Y-m-d', $max = 'now'),\n 'rent_end' => $faker->date($format = 'Y-m-d', $max = 'now'),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker=Faker\\Factory::create();\n\n for($i=0;$i<100;$i++){\n \tApp\\Blog::create([\n \t\t'title' => $faker->catchPhrase,\n 'description' => $faker->text,\n 'showns' =>true\n \t\t]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // TO PREVENT CHECKS FOR foreien key in seeding\n\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n\n DB::table('category_product')->truncate();\n\n User::flushEventListeners();\n Category::flushEventListeners();\n Product::flushEventListeners();\n Transaction::flushEventListeners();\n\n $usersQuantities = 1000;\n $categoriesQuantities = 30;\n $productsQuantities = 1000;\n $transactionsQuantities = 1000;\n\n factory(User::class, $usersQuantities)->create();\n factory(Category::class, $categoriesQuantities)->create();\n\n factory(Product::class, $productsQuantities)->create()->each(\n function ($product) {\n $categories = Category::all()->random(mt_rand(1, 5))->pluck('id');\n $product->categories()->attach($categories);\n });\n\n factory(Transaction::class, $transactionsQuantities)->create();\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n $this->call(BusinessTableSeeder::class);\n $this->call(PrinterTableSeeder::class);\n factory(App\\Tag::class,10)->create();\n factory(App\\Category::class,10)->create();\n factory(App\\Subcategory::class,50)->create();\n factory(App\\Provider::class,10)->create();\n factory(App\\Product::class,24)->create()->each(function($product){\n\n $product->images()->saveMany(factory(App\\Image::class, 4)->make());\n\n });\n\n\n factory(App\\Client::class,10)->create();\n }", "public function run()\n {\n Article::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Article::create([\n 'name' => $faker->sentence,\n 'sku' => $faker->paragraph,\n 'price' => $faker->number,\n ]);\n }\n }", "public function run()\n {\n Storage::deleteDirectory('public/products');\n Storage::makeDirectory('public/products');\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n $this->call(ProductSeeder::class);\n Order::factory(4)->create();\n Order_Detail::factory(4)->create();\n Size::factory(100)->create();\n }", "public function run()\n {\n $this->call(RolSeeder::class);\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n Doctor::factory(25)->create();\n Patient::factory(50)->create();\n Status::factory(3)->create();\n Appointment::factory(100)->create();\n }", "public function run()\n\t{\n\t\t\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n\t\t$faker = \\Faker\\Factory::create();\n\n\t\tTodolist::truncate();\n\n\t\tforeach(range(1, 50) as $index)\n\t\t{\n\n\t\t\t$user = User::create([\n\t\t\t\t'name' => $faker->name,\n\t\t\t\t'email' => $faker->email,\n\t\t\t\t'password' => 'password',\n\t\t\t\t'confirmation_code' => mt_rand(0, 9),\n\t\t\t\t'confirmation' => rand(0,1) == 1\n\t\t\t]);\n\n\t\t\t$list = Todolist::create([\n\t\t\t\t'name' => $faker->sentence(2),\n\t\t\t\t'description' => $faker->sentence(4),\n\t\t\t]);\n\n\t\t\t// BUILD SOME TASKS FOR EACH LIST ITEM\n\t\t\tforeach(range(1, 10) as $index) \n\t\t\t{\n\t\t\t\t$task = new Task;\n\t\t\t\t$task->name = $faker->sentence(2);\n\t\t\t\t$task->description = $faker->sentence(4);\n\t\t\t\t$list->tasks()->save($task);\n\t\t\t}\n\n\t\t}\n\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 1'); \n\n\t}", "public function run()\n {\n Campus::truncate();\n Canteen::truncate();\n Dorm::truncate();\n\n $faker = Faker\\Factory::create();\n $schools = School::all();\n foreach ($schools as $school) {\n \tforeach (range(1, 2) as $index) {\n\t \t$campus = Campus::create([\n\t \t\t'school_id' => $school->id,\n\t \t\t'name' => $faker->word . '校区',\n\t \t\t]);\n\n \t$campus->canteens()->saveMany(factory(Canteen::class, mt_rand(2,3))->make());\n $campus->dorms()->saveMany(factory(Dorm::class, mt_rand(2,3))->make());\n\n }\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => 'admin@gmail.com',\n 'password' => bcrypt('admin'),\n 'seq_q'=>'1',\n 'seq_a'=>'admin'\n ]);\n\n // DB::table('bloods')->insert([\n // ['name' => 'A+'],\n // ['name' => 'A-'],\n // ['name' => 'B+'],\n // ['name' => 'B-'],\n // ['name' => 'AB+'],\n // ['name' => 'AB-'],\n // ['name' => 'O+'],\n // ['name' => 'O-'],\n // ]);\n\n \n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n \\App\\User::create([\n 'name'=>'PAPE SAMBA NDOUR',\n 'email'=>'papesambandour@hotmail.com',\n 'password'=>bcrypt('Admin1122'),\n ]);\n\n $faker = Faker::create();\n\n for ($i = 0; $i < 100 ; $i++)\n {\n $firstName = $faker->firstName;\n $lastName = $faker->lastName;\n $niveau = \\App\\Niveau::inRandomOrder()->first();\n \\App\\Etudiant::create([\n 'prenom'=>$firstName,\n 'nom'=>$lastName,\n 'niveau_id'=>$niveau->id\n ]);\n }\n\n\n }", "public function run()\n {\n //\n DB::table('foods')->delete();\n\n Foods::create(array(\n 'name' => 'Chicken Wing',\n 'author' => 'Bambang',\n 'overview' => 'a deep-fried chicken wing, not in spicy sauce'\n ));\n\n Foods::create(array(\n 'name' => 'Beef ribs',\n 'author' => 'Frank',\n 'overview' => 'Slow baked beef ribs rubbed in spices'\n ));\n\n Foods::create(array(\n 'name' => 'Ice cream',\n 'author' => 'Lou',\n 'overview' => ' A sweetened frozen food typically eaten as a snack or dessert.'\n ));\n\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n News::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 10; $i++) {\n News::create([\n 'title' => $faker->sentence,\n 'summary' => $faker->sentence,\n 'content' => $faker->paragraph,\n 'imagePath' => '/img/exclamation_mark.png'\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 3)->create();\n factory(App\\Models\\Category::class, 3)\n ->create()\n ->each(function ($u) {\n $u->courses()->saveMany(factory(App\\Models\\Course::class,3)->make())->each(function ($c){\n $c->exams()->saveMany(factory(\\App\\Models\\Exam::class,3)->make())->each(function ($e){\n $e->questions()->saveMany(factory(\\App\\Models\\Question::class,4)->make())->each(function ($q){\n $q->answers()->saveMany(factory(\\App\\Models\\Answer::class,4)->make())->each(function ($a){\n $a->correctAnswer()->save(factory(\\App\\Models\\Correct_answer::class)->make());\n });\n });\n });\n });\n\n });\n\n }", "public function run()\n {\n \\DB::table('employees')->delete();\n\n $faker = \\Faker\\Factory::create('ja_JP');\n\n $role_id = ['1','2','3'];\n\n for ($i = 0; $i < 10; $i++) {\n \\App\\Models\\Employee::create([\n 'last_name' =>$faker->lastName() ,\n 'first_name' => $faker->firstName(),\n 'mail' => $faker->email(),\n 'password' => Hash::make( \"password.$i\"),\n 'birthday' => $faker->date($format='Y-m-d',$max='now'),\n 'role_id' => $faker->randomElement($role_id)\n ]);\n }\n }", "public function run()\n {\n\n DB::table('clients')->delete();\n DB::table('trips')->delete();\n error_log('empty tables done.');\n\n $random_cities = City::inRandomOrder()->select('ar_name')->limit(5)->get();\n $GLOBALS[\"random_cities\"] = $random_cities->pluck('ar_name')->toArray();\n\n $random_airlines = Airline::inRandomOrder()->select('code')->limit(5)->get();\n $GLOBALS[\"random_airlines\"] = $random_airlines->pluck('code')->toArray();\n\n factory(App\\Client::class, 5)->create();\n error_log('Client seed done.');\n\n\n factory(App\\Trip::class, 50)->create();\n error_log('Trip seed done.');\n\n\n factory(App\\Quicksearch::class, 10)->create();\n error_log('Quicksearch seed done.');\n }", "public function run()\n {\n // Admins\n User::factory()->create([\n 'name' => 'Zaiman Noris',\n 'username' => 'rognales',\n 'email' => 'rognales@gmail.com',\n 'active' => true,\n ]);\n\n User::factory()->create([\n 'name' => 'Affiq Rashid',\n 'username' => 'affiqr',\n 'email' => 'sonic21danger@gmail.com',\n 'active' => true,\n ]);\n\n // Only seed test data in non-prod\n if (! app()->isProduction()) {\n Member::factory()->count(1000)->create();\n Staff::factory()->count(1000)->create();\n\n Participant::factory()\n ->addSpouse()\n ->addChildren()\n ->addInfant()\n ->addOthers()\n ->count(500)\n ->hasUploads(2)\n ->create();\n }\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n UserSeeder::class,\n ]);\n\n \\App\\Models\\Category::factory(4)->create();\n \\App\\Models\\View::factory(6)->create();\n \\App\\Models\\Room::factory(8)->create();\n \n $rooms = \\App\\Models\\Room::all();\n // \\App\\Models\\User::all()->each(function ($user) use ($rooms) { \n // $user->rooms()->attach(\n // $rooms->random(rand(1, \\App\\Models\\Room::max('id')))->pluck('id')->toArray()\n // ); \n // });\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n Employee::factory()->create(['email' => 'sovon.kucse@gmail.com']);\n Brand::factory()->count(3)->create();\n $this->call([\n TagSeeder::class,\n AttributeSeeder::class,\n AttributeValueSeeder::class,\n ProductSeeder::class,\n ]);\n }", "public function run()\n {\n $this->call(RolesTableSeeder::class); // crée les rôles\n $this->call(PermissionsTableSeeder::class); // crée les permissions\n\n factory(Employee::class,3)->create();\n factory(Provider::class,1)->create();\n\n $user = User::create([\n 'name'=>'Alioune Bada Ndoye',\n 'email'=>'abada@gmail.com',\n 'phone'=>'773012470',\n 'password'=>bcrypt('123'),\n ]);\n Employee::create([\n 'job'=>'Informaticien',\n 'user_id'=>User::where('email','abada@gmail.com')->first()->id,\n 'point_id'=>Point::find(1)->id,\n ]);\n $user->assignRole('admin');\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(User::class, 1)\n \t->create(['email' => 'eddyjaair@gmail.com']);\n\n factory(Category::class, 5)->create();\n }", "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n $this->call(rootSeed::class);\n factory(App\\Models\\Egresado::class,'hombre',15)->create();\n factory(App\\Models\\Egresado::class,'mujer',15)->create();\n factory(App\\Models\\Administrador::class,5)->create();\n factory(App\\Models\\Notificacion::class,'post',10)->create();\n factory(App\\Models\\Notificacion::class,'mensaje',5)->create();\n factory(App\\Models\\Egresado::class,'bajaM',5)->create();\n factory(App\\Models\\Egresado::class,'bajaF',5)->create();\n factory(App\\Models\\Egresado::class,'suscritam',5)->create();\n factory(App\\Models\\Egresado::class,'suscritaf',5)->create();\n }", "public function run()\n {\n \n User::factory(1)->create([\n 'rol'=>'EPS'\n ]);\n Person::factory(10)->create();\n $this->call(EPSSeeder::class);\n $this->call(OfficialSeeder::class);\n $this->call(VVCSeeder::class);\n $this->call(VaccineSeeder::class);\n }", "public function run()\n {\n // $faker=Faker::create();\n // foreach(range(1,100) as $index)\n // {\n // DB::table('products')->insert([\n // 'name' => $faker->name,\n // 'price' => rand(10,100000)/100\n // ]);\n // }\n }", "public function run()\n {\n $this->call([\n LanguagesTableSeeder::class,\n ListingAvailabilitiesTableSeeder::class,\n ListingTypesTableSeeder::class,\n RoomTypesTableSeeder::class,\n AmenitiesTableSeeder::class,\n UsersTableSeeder::class,\n UserLanguagesTableSeeder::class,\n ListingsTableSeeder::class,\n WishlistsTableSeeder::class,\n StaysTableSeeder::class,\n GuestsTableSeeder::class,\n TripsTableSeeder::class,\n ReviewsTableSeeder::class,\n RatingsTableSeeder::class,\n PopularDestinationsTableSeeder::class,\n ImagesTableSeeder::class,\n ]);\n\n // factory(App\\User::class, 5)->states('host')->create();\n // factory(App\\User::class, 10)->states('hostee')->create();\n\n // factory(App\\User::class, 10)->create();\n // factory(App\\Models\\Listing::class, 30)->create();\n }", "public function run()\n {\n Schema::disableForeignKeyConstraints();\n Grade::truncate();\n Schema::enableForeignKeyConstraints();\n\n $faker = \\Faker\\Factory::create();\n\n for ($i = 0; $i < 10; $i++) {\n Grade::create([\n 'letter' => $faker->randomElement(['а', 'б', 'в']),\n 'school_id' => $faker->unique()->numberBetween(1, School::count()),\n 'level' => 1\n ]);\n }\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(App\\User::class,5)->create();//5 User created\n factory(App\\Model\\Genre::class,5)->create();//5 genres\n factory(App\\Model\\Film::class,6)->create();//6 films\n factory(App\\Model\\Comment::class, 20)->create();// 20 comments\n }", "public function run()\n {\n\n $this->call(UserSeeder::class);\n factory(Empresa::class,10)->create();\n factory(Empleado::class,50)->create();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n User::create([\n 'name' => 'jose luis',\n 'email' => 'barbozagonzalesjose@gmail.com',\n 'password' => bcrypt('xxxxxx'),\n 'role' => 'admin',\n ]);\n\n Category::create([\n 'name' => 'inpods',\n 'description' => 'auriculares inalambricos que funcionan con blouthue genial'\n ]);\n\n Category::create([\n 'name' => 'other',\n 'description' => 'otra cosa diferente a un inpods'\n ]);\n\n\n /* Create 10 products */\n Product::factory(10)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class)->create([\n 'email' => 'russell@gmail.com',\n 'name' => 'Russell'\n ]);\n\n factory(User::class)->create([\n 'email' => 'bitfumes@gmail.com',\n 'name' => 'Bitfumes'\n ]);\n\n factory(User::class)->create([\n 'email' => 'paul@gmail.com',\n 'name' => 'Paul'\n ]);\n }", "public function run()\n {\n $user_ids = [1,2,3];\n $faker = app(\\Faker\\Generator::class);\n $posts = factory(\\App\\Post::class)->times(50)->make()->each(function($post) use ($user_ids,$faker){\n $post->user_id = $faker->randomElement($user_ids);\n });\n \\App\\Post::insert($posts->toArray());\n }", "public function run()\n {\n // Vaciar la tabla.\n Favorite::truncate();\n $faker = \\Faker\\Factory::create();\n // Crear artículos ficticios en la tabla\n\n // factory(App\\Models\\User::class, 2)->create()->each(function ($user) {\n // $user->users()->saveMany(factory(App\\Models\\User::class, 25)->make());\n //});\n }", "public function run()\n\t{\n\t\t$this->call(ProductsTableSeeder::class);\n\t\t$this->call(CategoriesTableSeeder::class);\n\t\t$this->call(BrandsTableSeeder::class);\n\t\t$this->call(ColorsTableSeeder::class);\n\n\t\t$products = \\App\\Product::all();\n \t$categories = \\App\\Category::all();\n \t$brands = \\App\\Brand::all();\n \t$colors = \\App\\Color::all();\n\n\t\tforeach ($products as $product) {\n\t\t\t$product->colors()->sync($colors->random(3));\n\n\t\t\t$product->category()->associate($categories->random(1)->first());\n\t\t\t$product->brand()->associate($brands->random(1)->first());\n\n\t\t\t$product->save();\n\t\t}\n\n\t\t// for ($i = 0; $i < count($products); $i++) {\n\t\t// \t$cat = $categories[rand(0,5)];\n\t\t// \t$bra = $brands[rand(0,7)];\n\t\t// \t$cat->products()->save($products[$i]);\n\t\t// \t$bra->products()->save($products[$i]);\n\t\t// }\n\n\t\t// $products = factory(App\\Product::class)->times(20)->create();\n\t\t// $categories = factory(App\\Category::class)->times(6)->create();\n\t\t// $brands = factory(App\\Brand::class)->times(8)->create();\n\t\t// $colors = factory(App\\Color::class)->times(15)->create();\n\t}", "public function run()\n {\n /*$this->call(UsersTableSeeder::class);\n $this->call(GroupsTableSeeder::class);\n $this->call(TopicsTableSeeder::class);\n $this->call(CommentsTableSeeder::class);*/\n DB::table('users')->insert([\n 'name' => 'pkw',\n 'email' => 'pkw@pkw.com',\n 'password' => bcrypt('secret'),\n 'type' => '1'\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker::create();\n foreach (range(1,200) as $index) {\n DB::table('users')->insert([\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'phone' => $faker->randomDigitNotNull,\n 'address'=> $faker->streetAddress,\n 'password' => bcrypt('secret'),\n ]);\n }\n }", "public function run()\n {\n $this->call(UsersSeeder::class);\n User::factory(2)->create();\n Company::factory(2)->create();\n\n }", "public function run()\n {\n echo PHP_EOL , 'seeding roles...';\n\n Role::create(\n [\n 'name' => 'Admin',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Principal',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Teacher',\n 'deletable' => false,\n ]\n );\n\n Role::create(\n [\n 'name' => 'Student',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Parents',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Accountant',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Librarian',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Receptionist',\n 'deletable' => false,\n ]\n );\n\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->call(QuestionTableSeed::class);\n\n $this->call([\n QuestionTableSeed::class,\n AlternativeTableSeed::class,\n ScheduleActionTableSeeder::class,\n UserTableSeeder::class,\n CompanyClassificationTableSeed::class,\n ]);\n // DB::table('clients')->insert([\n // 'name' => 'Empresa-02',\n // 'email' => 'empresa02@gmail.com',\n // 'password' => bcrypt('07.052.477/0001-60'),\n // ]);\n }", "public function run()\n {\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 5; $i++) {\n Runner::create([\n 'external_id' => $faker->uuid,\n 'name' => $faker->name,\n 'race_id' =>rand(1,5),\n 'age' => rand(30, 45),\n 'sex' => $faker->randomElement(['male', 'female']),\n 'color' => $faker->randomElement(['#ecbcb4', '#d1a3a4']),\n ]);\n }\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n User::factory()->create([\n 'name' => 'Carlos',\n 'email' => 'carlos@email.com',\n 'email_verified_at' => now(),\n 'password' => bcrypt('123456'), // password\n 'remember_token' => Str::random(10),\n ]);\n \n $this->call([PostsTableSeeder::class]);\n $this->call([TagTableSeeder::class]);\n\n }", "public function run()\n {\n $this->call(AlumnoSeeder::class);\n //Alumnos::factory()->count(30)->create();\n //DB::table('alumnos')->insert([\n // 'dni_al' => '13189079',\n // 'nom_al' => 'Jose',\n // 'ape_al' => 'Araujo',\n // 'rep_al' => 'Principal',\n // 'esp_al' => 'Tecnologia',\n // 'lnac_al' => 'Valencia'\n //]);\n }", "public function run()\n {\n Eloquent::unguard();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n // $this->call([\n // CountriesTableSeeder::class,\n // ]);\n\n factory(App\\User::class, 100)->create();\n factory(App\\Type::class, 10)->create();\n factory(App\\Item::class, 100)->create();\n factory(App\\Order::class, 1000)->create();\n\n $items = App\\Item::all();\n\n App\\Order::all()->each(function($order) use ($items) {\n\n $n = rand(1, 10);\n\n $order->items()->attach(\n $items->random($n)->pluck('id')->toArray()\n , ['quantity' => $n]);\n\n $order->total = $order->items->sum(function($item) {\n return $item->price * $item->pivot->quantity;\n });\n\n $order->save();\n\n });\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create(\n [\n 'email'=>'izzanniroshlei@gmail.com',\n 'name'=>'izzanni',\n \n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'aina@gmail.com',\n 'name'=>'aina',\n\n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'sab@gmail.com',\n 'name'=>'sab',\n\n ]\n );\n }", "public function run()\n {\n\n factory('App\\Models\\Pessoa', 60)->create();\n factory('App\\Models\\Profissional', 10)->create();\n factory('App\\Models\\Paciente', 50)->create();\n $this->call(UsersTableSeeder::class);\n $this->call(ProcedimentoTableSeeder::class);\n // $this->call(PessoaTableSeeder::class);\n // $this->call(ProfissionalTableSeeder::class);\n // $this->call(PacienteTableSeeder::class);\n // $this->call(AgendaProfissionalTableSeeder::class);\n }", "public function run()\n {\n //Acá se define lo que el seeder va a hacer.\n //insert() para insertar datos.\n //Array asociativo. La llave es el nombre de la columna.\n// DB::table('users')->insert([\n// //Para un solo usuario.\n// 'name' => 'Pedrito Perez',\n// 'email' => 'pedrito@juase.com',\n// 'password' => bcrypt('123456')\n// ]);//Se indica el nombre de la tabla.\n\n //Crea 50 usuarios (sin probar)\n// factory(App\\User::class, 50)->create()->each(function($u) {\n// $u->posts()->save(factory(App\\Post::class)->make());\n// });\n\n factory(App\\User::class, 10)->create(); //Así se ejecuta el model factory creado en ModelFactory.php\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //nhập liệu mẫu cho bảng users\n DB::table('users')->insert([\n \t['id'=>'1001', 'name'=>'Phan Thị Hiền', 'email'=>'hienphan18112015@gmail.com', 'password'=>'123456', 'isadmin'=>1],\n \t['id'=>'1002', 'name'=>'Phan Thị Hà', 'email'=>'haphan@gmail.com', 'password'=>'111111', 'isadmin'=>0]\n ]);\n\n\n //nhập liệu mẫu cho bảng suppliers\n DB::table('suppliers')->insert([\n \t['name'=>'FPT', 'address'=>'151 Hùng Vương, TP. Đà Nẵng', 'phonenum'=>'0971455395'],\n \t['name'=>'Điện Máy Xanh', 'address'=>'169 Phan Châu Trinh, TP. Đà Nẵng', 'phonenum'=>'0379456011']\n ]);\n\n\n //Bảng phiếu bảo hành\n }", "public function run()\n {\n \t// DB::table('categories')->truncate();\n // factory(App\\Models\\Category::class, 10)->create();\n Schema::disableForeignKeyConstraints();\n Category::truncate();\n $faker = Faker\\Factory::create();\n\n $categories = ['SAMSUNG','NOKIA','APPLE','BLACK BERRY'];\n foreach ($categories as $key => $value) {\n Category::create([\n 'name'=>$value,\n 'description'=> 'This is '.$value,\n 'markup'=> rand(10,100),\n 'category_id'=> null,\n 'UUID' => $faker->uuid,\n ]);\n }\n }" ]
[ "0.8013876", "0.79804534", "0.7976992", "0.79542726", "0.79511505", "0.7949612", "0.794459", "0.7942486", "0.7938189", "0.79368967", "0.79337025", "0.78924936", "0.78811055", "0.78790957", "0.78787595", "0.787547", "0.7871811", "0.78701615", "0.7851422", "0.7850352", "0.7841468", "0.7834583", "0.7827792", "0.7819104", "0.78088796", "0.7802872", "0.7802348", "0.78006834", "0.77989215", "0.7795819", "0.77903426", "0.77884805", "0.77862066", "0.7778816", "0.7777486", "0.7765202", "0.7762492", "0.77623445", "0.77621746", "0.7761383", "0.77606887", "0.77596676", "0.7757001", "0.7753607", "0.7749522", "0.7749292", "0.77466977", "0.7729947", "0.77289546", "0.772796", "0.77167094", "0.7714503", "0.77140456", "0.77132195", "0.771243", "0.77122366", "0.7711113", "0.77109736", "0.7710777", "0.7710086", "0.7705484", "0.770464", "0.7704354", "0.7704061", "0.77027386", "0.77020216", "0.77008796", "0.7698617", "0.76985973", "0.76973504", "0.7696405", "0.7694293", "0.7692694", "0.7691264", "0.7690576", "0.76882726", "0.7687433", "0.7686844", "0.7686498", "0.7685065", "0.7683827", "0.7679184", "0.7678287", "0.76776296", "0.76767945", "0.76726556", "0.76708084", "0.76690495", "0.766872", "0.76686716", "0.7666299", "0.76625943", "0.7662227", "0.76613766", "0.7659881", "0.7656644", "0.76539344", "0.76535016", "0.7652375", "0.7652313", "0.7652022" ]
0.0
-1
Check if image file is a actual image or fake image
public function notFakeFile() { $check = filesize($this->value["tmp_name"]); if($check !== false) { return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testIsImageFile()\n {\n $this->assertTrue(Tinebase_ImageHelper::isImageFile($this->_testImagePath));\n $this->assertFalse(Tinebase_ImageHelper::isImageFile(__FILE__));\n }", "function is_image($file)\n{\n $type = get_image_type($file);\n $mime = get_image_mime_type($type);\n\n return substr($mime, 0, 5) == 'image';\n}", "function checkimage($img)\r\n{\r\n $imageMimeTypes = array(\r\n 'image/png',\r\n 'image/gif',\r\n 'image/jpeg');\r\n\r\n $img = mime_content_type($img);\r\n $imgcheck = false;\r\n if (in_array ($img, $imageMimeTypes))\r\n {\r\n $imgcheck = true;\r\n }\r\n return $imgcheck;\r\n}", "public function is_image()\n\t\t{\n\t\t\treturn !is_null($f = $this->format()) && $f;\n\t\t}", "public function isImage()\n {\n return strtolower(substr($this->getMimeType(), 0, 5)) == 'image';\n }", "public function isImage()\n {\n $mime_type = $this->getMimeType() ?: $this->detectMimeType();\n\n return (strpos($mime_type, 'image') === 0);\n }", "public function isImage(){\n if($this->imageFileType != \"jpg\" && $this->imageFileType != \"png\" && $this->imageFileType != \"jpeg\"\n && $this->imageFileType != \"gif\" ) {\n echo \"Sorry, only JPG, JPEG, PNG & GIF files are allowed.<br>\";\n $this->uploadOk = 0;\n }\n return $this->uploadOk;\n }", "private function isValidImage() {\r\n\t\t\treturn in_array($this->extension, $this->extAllowed) ? true : false;\r\n\t\t}", "function file_is_image($filename) {\n return in_array(get_file_extension($filename), get_image_file_types());\n }", "public function isImage()\n {\n return str_contains($this->mimetype, 'image/');\n }", "protected function checkTrueImg()\n {\n\n if($this->imgFlag){\n\n if(!getimagesize($this->fileInfo['tmp_name'])){\n\n $this->error = 'The file is not image.';\n\n return false;\n\n }\n\n }\n\n return true;\n\n }", "function file_is_valid_image($path)\n {\n }", "function check_image_type($source_pic)\n{\n $image_info = check_mime_type($source_pic);\n\n switch ($image_info) {\n case 'image/gif':\n return true;\n break;\n\n case 'image/jpeg':\n return true;\n break;\n\n case 'image/png':\n return true;\n break;\n\n case 'image/wbmp':\n return true;\n break;\n\n default:\n return false;\n break;\n }\n}", "public function isValidImage()\n\t{\n\t\t$src = $this->source_path;\n\t\t$extension = \\strtolower(\\substr($src, (\\strrpos($src, '.') + 1)));\n\n\t\tif (!\\in_array($extension, $this->image_extensions)) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$r = @\\imagecreatefromstring(\\file_get_contents($src));\n\n\t\treturn \\is_resource($r) && \\get_resource_type($r) === 'gd';\n\t}", "public function testTypeImage($file)\n {\n $size = getimagesize($file);\n $is = '';\n\n switch ($size['mime']) {\n case \"image/gif\":\n $is = imagecreatefromgif($file);\n break;\n case \"image/jpeg\":\n $is = imagecreatefromjpeg($file);\n break;\n case \"image/png\":\n $is = imagecreatefrompng($file);\n break;\n }\n return $is;\n }", "public function isImage()\n\t{\n\t\treturn in_array($this->getMimetype(), $this->imagesMimeTypes);\n\t}", "function isImage($tempFile) {\n\n // Get the size of the image\n $size = getimagesize($tempFile);\n\n if (isset($size) && $size[0] && $size[1] && $size[0] * $size[1] > 0) {\n return true;\n } else {\n return false;\n }\n\n }", "function is_file_an_image($filepath)\n{\n\t$a = getimagesize($filepath);\n\t$image_type = $a[2];\n\t \n\tif(in_array($image_type , array(IMAGETYPE_GIF , IMAGETYPE_JPEG ,IMAGETYPE_PNG , IMAGETYPE_BMP)))\n\t{\n\t return true;\n\t}\n\treturn false;\n}", "function file_is_an_image($temporary_path, $new_path)\n {\n $allowed_mime_types = ['image/gif', 'image/jpeg', 'image/png'];\n $allowed_file_extensions = ['gif', 'jpg', 'jpeg', 'png'];\n\n $actual_file_extension = pathinfo($new_path, PATHINFO_EXTENSION);\n $actual_mime_type = getimagesize($temporary_path)['mime'];\n\n $file_extension_is_valid = in_array($actual_file_extension, $allowed_file_extensions);\n $mime_type_is_valid = in_array($actual_mime_type, $allowed_mime_types);\n\n return $file_extension_is_valid && $mime_type_is_valid;\n }", "public function correctImage(){\n parent::isImage();\n parent::exist();\n parent::sizeFile();\n return $this->uploadOk;\n }", "public function checkImageType()\n {\n if (empty($this->checkImageType)) {\n return true;\n }\n\n if (('image' == substr($this->mediaType, 0, strpos($this->mediaType, '/')))\n || (!empty($this->mediaRealType)\n && 'image' == substr($this->mediaRealType, 0, strpos($this->mediaRealType, '/')))\n ) {\n if (!@getimagesize($this->mediaTmpName)) {\n $this->setErrors(\\XoopsLocale::E_INVALID_IMAGE_FILE);\n return false;\n }\n }\n return true;\n }", "function isImageType($tempFileName)\n{\n\t$isImage = true;\n\t\n\t// Check if image file is actual image type\n $check = exif_imagetype($tempFileName);\n\t\n if ($check === false) \n\t{\n $isImage = false;\n\t}\n\t\n\treturn $isImage;\n}", "function isImage(string $filename) : bool {\n return (bool) preg_match(\"/(png|gif|jpg|jpeg)/\", pathinfo($filename, PATHINFO_EXTENSION));\n}", "public function isTransformableImage() {\n // with support for only some file types, so it might be able to handle\n // PNG but not JPEG. Try to generate thumbnails for whatever we can. Setup\n // warns you if you don't have complete support.\n\n $matches = null;\n $ok = preg_match(\n '@^image/(gif|png|jpe?g)@',\n $this->getViewableMimeType(),\n $matches);\n if (!$ok) {\n return false;\n }\n\n switch ($matches[1]) {\n case 'jpg';\n case 'jpeg':\n return function_exists('imagejpeg');\n break;\n case 'png':\n return function_exists('imagepng');\n break;\n case 'gif':\n return function_exists('imagegif');\n break;\n default:\n throw new Exception(pht('Unknown type matched as image MIME type.'));\n }\n }", "function is_image($path)\n{\n\t$a = getimagesize($path);\n\t$image_type = $a[2];\n\n\tif(in_array($image_type , array(IMAGETYPE_GIF , IMAGETYPE_JPEG ,IMAGETYPE_PNG , IMAGETYPE_BMP)))\n\t{\n\t\treturn true;\n\t}\n\treturn false;\n}", "function testCompatible(){\n\t\tif($this->$imageAsset[\"type\"] == \"image/jpeg\" || $_FILES[\"image_upload_box\"][\"type\"] == \"image/pjpeg\"){\t\n\t\t\t$this->imgType = 'jpg';\n\t\t}\t\t\n\t\t// if uploaded image was GIF\n\t\tif($this->$imageAsset[\"type\"] == \"image/gif\"){\t\n\t\t\t$this->imgType = 'gif';\n\t\t}\t\n\t\t// if uploaded image was PNG\n\t\tif($this->$imageAsset[\"type\"] == \"image/x-png\"){\n\t\t\t$this->imgType = 'png';\n\t\t}\n\t\telse {\n\t\t\t$this->imgType = 'invalid';\n\t\t}\n\t\t\n\t}", "function is_image( string $path ):bool\r\n {\r\n $a = getimagesize($path);\r\n $image_type = $a[2];\r\n\r\n if( in_array( $image_type , array( IMAGETYPE_GIF , IMAGETYPE_JPEG ,IMAGETYPE_PNG , IMAGETYPE_BMP) ) )\r\n {\r\n return true;\r\n }\r\n return false;\r\n }", "function checkImg(){\n global $postpath;\n return getimagesize($postpath) !== false;\n }", "public function hasImage(): bool;", "public static function check($file){\n if(\\File::exists($file)){\n $mime = mime_content_type($file);\n if(substr($mime, 0, 5) == 'image') {\n // this is an image\n return true;\n }else{\n return false;\n }\n }else{\n return false;\n }\n }", "public static function isImage($file){\n if(is_file($file)){\n $info = getimagesize($file);\n if(isset($info) && $info[2] > 0)\n return true;\n }\n return false;\n }", "function Is_image($filename){\n \n $size = getimagesize($filename);\nif($size==FALSE){\n $er=FALSE; \n\n}else{\n $er=TRUE; \n}\nreturn $er;\n}", "protected function is_valid_image_file($file_path) {\n \treturn false;\n }", "protected function isExternalImage() {}", "function __checkBase64_image($img64) {\n $img64 = substr($img64, strpos($img64, ',')+1, strlen($img64));\n $img = imagecreatefromstring(base64_decode($img64));\n if (!$img) {\n return false;\n }\n imagepng($img, 'tmp.png');\n $info = getimagesize('tmp.png');\n unlink('tmp.png');\n if ($info[0] > 0 && $info[1] > 0 && $info['mime']) {\n return true;\n }\n return false;\n }", "function wp_is_file_image( $file ) {\n\tif ( @getimagesize( $file ) )\n\t\treturn true;\n\n\treturn false;\n\n}", "public function checkImageTrue($file)\n {\n $fileInfo = finfo_open(FILEINFO_MIME_TYPE);\n $mimeType = finfo_file($fileInfo, $file['tmp_name']);\n finfo_close($fileInfo);\n if(strpos($mimeType, 'image/') !== 0) {\n $this->alert->set('error', 'normal', 'main', \"Le fichier n'est pas une image.\");\n }\n return (strpos($mimeType, 'image/') !== 0)? false : true;\n }", "public function isImage() {\n\t\treturn MimeType::isImage($this);\n\t}", "function check_image_type($ftype)\n{\n$ext = strtolower(end(explode('.',$ftype)));\n$img_array = array('jpeg','jpg','gif','png');\n\n//\tif($ftype == \"image/jpeg\" || $ftype == \"image/jpg\" || $ftype == \"image/gif\" || $ftype == \"image/png\" )\n\tif(in_array($ext,$img_array))\n\t\treturn 1;\n\t\telse\n\t\t\treturn 0;\n}", "public function isFileImage ($image) \n {\n if (!in_array(mime_content_type($image), ALLOWED_IMAGE_TYPES) ) {\n return false;\n }\n return true;\n }", "function isImage($filename) {\n \tglobal $synAbsolutePath;\n if (file_exists($synAbsolutePath.$filename)) {\n if (getimagesize($synAbsolutePath.$filename)!==false) $ret=true;\n else $ret=false;\n } else $ret=false;\n return $ret;\n }", "function isImage(string $path): bool\n{\n $ext = getExtension($path);\n return ($ext === \"jpg\" || $ext === \"jpeg\" || $ext === \"png\");\n}", "public function isSupportedImage()\n\t{\n\t\t$mime = $this->getMimeType();\n\t\tif (in_array($mime, array('image/jpeg', 'image/gif', 'image/png')))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function isImage(){\n if(isset($_POST[\"submit\"])) {\n $check = getimagesize($_FILES[\"fileToUpload\"][\"tmp_name\"]);\n if($check !== false) {\n echo \"File is an image - \" . $check[\"mime\"] . \".<br>\";\n $this->uploadOk = 1;\n } else {\n echo \"File is not an image.<br>\";\n $this->uploadOk = 0;\n }\n }\n return $this->uploadOk;\n }", "public function isValidImage() {\n return $this->_is_validimage;\n }", "protected function _checkImage() {\n if ( !is_file ( $this->src ) ) {\n $this->src = $this->default_missing_image; \n }\n $image_path_parts = pathinfo ( $this->src );\n $this->_image_name = $image_path_parts['basename'];\n $this->_thumb_filename = $this->attributes['width'] . 'x' . $this->attributes['height'] . '_' . $this->_image_name;\n $this->_thumb_src = $this->thumbs_dir_path . $this->_thumb_filename;\n if ( is_readable ( $this->_thumb_src ) ) {\n $this->_calculated_width = $this->attributes['width'];\n $this->_calculated_height = $this->attributes['height'];\n $this->src = $this->_thumb_src;\n return 'no_thumb_required';\n }\n if ( !$this->_original_image_info = getimagesize ( $this->src ) ) {\n return 'abort';\n } \n if (!in_array ( $this->_original_image_info['mime'], $this->_valid_mime ) ) {\n return 'abort';\n }\n }", "function check_image_type_array($source_pic)\n{\n switch ($source_pic) {\n case 'image/gif':\n return true;\n break;\n\n case 'image/jpeg':\n return true;\n break;\n\n case 'image/png':\n return true;\n break;\n\n case 'image/wbmp':\n return true;\n break;\n\n default:\n return false;\n break;\n }\n}", "public static function test_image($source) {\n\t\tif (strlen($source) < 10) {\n\t\t\tdebug_event('Art', 'Invalid image passed', 1);\n\t\t\treturn false;\n\t\t}\n\n\t\t// Check to make sure PHP:GD exists. If so, we can sanity check\n\t\t// the image.\n\t\tif (function_exists('ImageCreateFromString')) {\n\t\t\t $image = ImageCreateFromString($source);\n\t\t\t if (!$image || imagesx($image) < 5 || imagesy($image) < 5) {\n\t\t\t\tdebug_event('Art', 'Image failed PHP-GD test',1);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "function is_gd_image($image)\n {\n }", "public function is_valid_image() {\n\n if ( get_post_type( $this->slide->ID ) === 'attachment' ) {\n $image_id = $this->slide->ID;\n } else {\n $image_id = get_post_thumbnail_id( $this->slide->ID );\n }\n\n $meta = wp_get_attachment_metadata( $image_id );\n\n $is_valid = isset( $meta['width'], $meta['height'] );\n\n return apply_filters( 'metaslider_is_valid_image', $is_valid, $this->slide );\n }", "function isImage( $filepath, $arr_types=array( \".gif\", \".jpeg\", \".png\", \".bmp\" ) )\n\t{\n\t\tif(file_exists($filepath)) {\n\t\t\t$info = getimagesize($filepath);\n\t\t\t$ext = image_type_to_extension($info['2']);\n\t\t\treturn in_array($ext,$arr_types);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function hasImage(): bool\n {\n return $this->hasImageType(\n $this->getMimeType()\n );\n }", "function urlimageisvalid($image) {\n $params = array('http' => array('method' => 'HEAD'));\n $ctx = stream_context_create($params);\n $fp = @fopen($image, 'rb', false, $ctx);\n if (!$fp) \n return false; // Problem with url\n\n $meta = stream_get_meta_data($fp);\n if ($meta === false)\n {\n fclose($fp);\n return false; // Problem reading data from url\n }\n\n $wrapper_data = $meta[\"wrapper_data\"];\n if(is_array($wrapper_data)){\n foreach(array_keys($wrapper_data) as $hh){\n if (substr($wrapper_data[$hh], 0, 19) == \"Content-Type: image\") // strlen(\"Content-Type: image\") == 19 \n {\n fclose($fp);\n return true;\n }\n }\n }\n\n fclose($fp);\n return false;\n}", "function image_exist( $img ) \r\n\t\t{\r\n\t\t\tif( @file_get_contents( $img,0,NULL,0,1) ){ return 1; } else{ return 0; }\r\n\t\t\t\r\n\t\t}", "function isImage($path) {\n global $CONFIG;\n return (is_file($path) && in_array(strtolower(pathinfo($path, PATHINFO_EXTENSION)), $CONFIG->extensions->images));\n}", "function is_image($path)\n{\n\t$controle_type_mime_autorises = ['image/gif', 'image/jpeg', 'image/pjpeg', 'image/png'];\n\t$fichier_mime_type = mime_content_type($path);\n\t//echo $fichier_mime_type;\n\n\tif(in_array($fichier_mime_type, $controle_type_mime_autorises)){\n\t return TRUE;\n\t}else{\n\t return FALSE;\n\t}\n}", "public function isImage($file = '')\n\t{\n\t\treturn in_array(strtolower(File::extension($file)), array_merge($this->imageExtensions, ['svg']));\n\t}", "public function isImage() {\n return $this->_is_image;\n }", "public static function isImage($data) : bool\n {\n return is_resource($data) and get_resource_type($data) === 'gd';\n }", "protected function _checkImage() {\n if ( !is_file ( $this->src ) ) {\n $this->src = $this->default_missing_image; \n }\n $image_path_parts = pathinfo ( $this->src );\n $this->_image_name = $image_path_parts['basename'];\n $this->_thumb_filename = $this->attributes['width'] . 'x' . $this->attributes['height'] . '_' . $this->_image_name;\n $this->_thumb_src = $this->thumbs_dir_path . $this->_thumb_filename;\n if ( is_readable ( $this->_thumb_src ) ) {\n $this->_calculated_width = $this->attributes['width'];\n $this->_calculated_height = $this->attributes['height'];\n $this->src = $this->_thumb_src;\n return 'no_thumb_required';\n }\n if ( KISSIT_MAIN_PRODUCT_WATERMARK_SIZE == 0 ) {\n \tif ( !$this->_original_image_info = getimagesize ( $this->src ) ) {\n \t\treturn 'abort';\n \t} \n \tif (!in_array ( $this->_original_image_info['mime'], $this->_valid_mime ) ) {\n \t\treturn 'abort';\n \t}\n }\n }", "public function isImage($ext=null){\n global $VALID_IMAGES;\n if (!$ext)\n $ext = $this->ext; \n return (in_Array( $ext, $VALID_IMAGES )); \n }", "public function testGetImage()\n {\n // TODO: How to mock a file?\n }", "public function has_image() {\r\n return ! empty( $this->image );\r\n }", "function validateFile($file){\n\n $check = getimagesize($file[\"tmp_name\"]);\n if($check !== false) {\n $err = \"File is an image - \" . $check[\"mime\"] . \".\";\n $uploadOk = 1;\n } else {\n $err = \"File is not an image.\";\n $uploadOk = 0;\n }\n// Allow certain file formats\nif($file[\"type\"] != \"jpg\" && $file[\"type\"] != \"png\" && $file[\"type\"] != \"jpeg\"\n&& $file[\"type\"] != \"gif\" ) {\n $err = \"Sorry, only JPG, JPEG, PNG & GIF files are allowed.\";\n $uploadOk = 0;\n}\n return ($uploadOk==1)? true : false;\n}", "private function isApng() {\n $img_bytes = file_get_contents($this->image);\n if ($img_bytes) {\n if (strpos(substr($img_bytes, 0, strpos($img_bytes, 'IDAT')), 'acTL') !== false) {\n return true;\n }\n }\n return false;\n }", "private function checkImageTrue($file) \n {\n return $this->imageConstraint->checkImageTrue($file);\n \n }", "function isImage($path)\n {\n return is_array(getimagesize($path));\n }", "function file_is_displayable_image($path)\n {\n }", "public function coverIsFile()\n {\n return $this['cover'] instanceof \\Illuminate\\Http\\Testing\\File || is_uploaded_file($this->file('cover'));\n }", "function isSupportedType($type, $src_file) {\n if ($type !== \"jpg\" && $type !== \"jpeg\" && $type !== \"png\") {\n return zmgToolboxPlugin::registerError($src_file, 'GD 1.x: Source file is not an image or image type is not supported.');\n }\n return true;\n }", "public function is_image($mime)\n\t{\n\t\tee()->load->library('mime_type');\n\t\treturn ee()->mime_type->isImage($mime);\n\t}", "function validate_picture_file($path) {\n $acceptableTypes = array(IMAGETYPE_JPEG, IMAGETYPE_PNG, IMAGETYPE_GIF);\n $detectedType = exif_imagetype($path); // WARNING: This will only work if the\n // EXIF extension is enabled.\n return in_array($detectedType, $acceptableTypes);\n}", "public static function validateImageFile()\n {\n if (!isset($_FILES['logo_file'])) {\n Session::add('feedback_negative', Text::get('FEEDBACK_AVATAR_IMAGE_UPLOAD_FAILED'));\n return false;\n }\n if ($_FILES['logo_file']['size'] > 5000000) {\n // if input file too big (>5MB)\n Session::add('feedback_negative', Text::get('FEEDBACK_AVATAR_UPLOAD_TOO_BIG'));\n return false;\n }\n // get the image width, height and mime type\n $image_proportions = getimagesize($_FILES['logo_file']['tmp_name']);\n // if input file too small\n if ($image_proportions[0] < Config::get('AVATAR_SIZE') || $image_proportions[1] < Config::get('AVATAR_SIZE')) {\n Session::add('feedback_negative', Text::get('FEEDBACK_AVATAR_UPLOAD_TOO_SMALL'));\n return false;\n }\n if (!($image_proportions['mime'] == 'image/jpeg')) {\n Session::add('feedback_negative', Text::get('FEEDBACK_AVATAR_UPLOAD_WRONG_TYPE'));\n return false;\n }\n return true;\n }", "public function test_missing_image_file() {\n\t\t$out = wp_read_image_metadata( DIR_TESTDATA . '/images/404_image.png' );\n\t\t$this->assertFalse( $out );\n\t}", "private function varIsImage($img) {\r\n $fp = fopen($img, 'rb');\r\n $exif_data = @exif_read_data($fp);\r\n if(is_array($exif_data)) {\r\n $this->varIsArray($exif_data);\r\n } else {\r\n $this->checkType($img . ' : No exif support for this image format!');\r\n }\r\n fclose($fp);\r\n }", "function valid_image($files = null) {\r\n if (isset($files) && !empty($files)) {\r\n $allowedExts = array(\r\n \"gif\",\r\n \"jpeg\",\r\n \"jpg\",\r\n \"png\",\r\n \"GIF\",\r\n \"JPEG\",\r\n \"JPG\",\r\n \"PNG\"\r\n );\r\n $temp = explode(\".\", $files ['name']);\r\n $extension = end($temp);\r\n\r\n if (!in_array($extension, $allowedExts)) {\r\n return 'No';\r\n }\r\n }\r\n return \"Yes\";\r\n }", "public function isPNG( $filePath ){\n $mime = mime_content_type($filePath);\n return ( $mime === 'image/png' );\n }", "public function hasImage()\n {\n return !is_null($this->image);\n }", "function logonscreener_image_is_valid($info) {\n $valid = $info['width'] == $GLOBALS['screen_width']\n && $info['height'] == $GLOBALS['screen_height']\n && $info['extension'] == 'jpeg'\n && $info['file_size'] <= LOGONSCREENER_MAX_FILESIZE;\n\n if ($valid) {\n logonscreener_log('Image is valid with no further transformation.');\n }\n\n return $valid;\n}", "public function hasImage()\n {\n if ($this->_image) {\n return true;\n } else {\n return false;\n }\n }", "public function testImage()\n {\n $uploadedFile = new UploadedFile(__DIR__ . '/../Mock/image_10Mb.jpg', 'image.jpg');\n $user = new User();\n $user->setEmail('blue@gmail.com')\n ->setImage($uploadedFile);\n $constraintViolationList = $this->validator->validate($user, null, [User::VALIDATION_GROUP_DEFAULT]);\n Assert::assertEquals('image', $constraintViolationList->get(0)->getPropertyPath());\n\n $user->setImage(null);\n $constraintViolationList = $this->validator->validate($user, null, [User::VALIDATION_IMAGE_REQUIRED]);\n Assert::assertEquals('image', $constraintViolationList->get(0)->getPropertyPath());\n }", "protected function isImage($fileInfo)\n {\n // Maybe array with file info came in\n if (is_array($fileInfo)) {\n return strstr($fileInfo['type'], 'image/');\n }\n\n // File path came in - check the physical file\n if (!$this->rootDirectory->isReadable($this->rootDirectory->getRelativePath($fileInfo))) {\n return false;\n }\n $imageInfo = getimagesize($fileInfo);\n if (!$imageInfo) {\n return false;\n }\n return true;\n }", "public function hasImage()\n {\n return !empty($this->image) && file_exists($this->getImagePath());\n }", "public function test_image_non_existent_extension() {\n\t\t$image_editor = new WP_Image_Editor_Imagick( DIR_TESTDATA . '/images/test-image-no-extension' );\n\t\t$result = $image_editor->load();\n\n\t\t$this->assertTrue( $result );\n\t}", "function isImageBase64($imageBase64){\n return preg_match('/^(data:image)\\/(png|jpg|gif)(;base64,)/i', $imageBase64);\n}", "function isPic($type){\r\n\t//1 = GIF,2 = JPG,3 = PNG,4 = SWF,5 = PSD,6 = BMP,7 = TIFF(intel byte order),8 = TIFF(motorola byte order),9 = JPC,10 = JP2,11 = JPX,12 = JB2,13 = SWC,14 = IFF,15 = WBMP,16 = XBM;\r\n\tswitch($type){\r\n\tcase 1: case 2: case 3: case 7: case 8:\r\n\t\treturn true;\r\n\tdefault:\r\n\t\treturn false;\r\n\t}\r\n}", "public function _get_img_info()\n {\n if ( ! file_exists($this->source_file) || ! filesize($this->source_file)) {\n return false;\n }\n list($this->source_width, $this->source_height, $type, $this->source_atts) = getimagesize($this->source_file);\n return isset($this->_avail_types[$type]) ? ($this->source_type = $this->_avail_types[$type]) : false;\n }", "public function check_base64_image($base64) {\n $result = false;\n $img = imagecreatefromstring(base64_decode($base64));\n if (!$img) {\n return $result;\n }\n\n imagepng($img, 'tmp.png');\n $info = getimagesize('tmp.png');\n\n unlink('tmp.png');\n\n if ($info[0] > 0 && $info[1] > 0 && $info['mime']) {\n $result = $info;\n }\n\n return $result;\n }", "public function testGetInvalidImageByImagePath() {\n\t\t//grab an image by searching for content that does not exist\n\t\t$image = Image::getImageByImagePath($this->getPDO(), \"this image is not found\");\n\t\t$this->assertCount(0, $image);\n\t}", "public static function checkImage($image)\n {\n jimport('joomla.filesystem.file');\n jimport('joomla.filesystem.folder');\n $mimes = array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/png');\n //get mime type\n $mime = getimagesize($image);\n $mime = $mime ['mime'];\n\n $extensions = array('jpg','jpeg','png','gif');\n $extension = strtolower(pathinfo($image, PATHINFO_EXTENSION));\n\n if (in_array($extension, $extensions) and in_array($mime, $mimes))\n return TRUE;\n else\n JFile::delete($image);\n return 'application/octet-stream';\n }", "function check_image_type(&$type, &$error, &$error_msg)\n{\n\tglobal $lang;\n\n\tswitch( $type )\n\t{\n\t\tcase 'jpeg':\n\t\tcase 'pjpeg':\n\t\tcase 'jpg':\n\t\t\treturn '.jpg';\n\t\t\tbreak;\n\t\tcase 'gif':\n\t\t\treturn '.gif';\n\t\t\tbreak;\n\t\tcase 'png':\n\t\t\treturn '.png';\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t$error = true;\n\t\t\t$error_msg = (!empty($error_msg)) ? $error_msg . '<br />' . $lang['Avatar_filetype'] : $lang['Avatar_filetype'];\n\t\t\tbreak;\n\t}\n\n\treturn false;\n}", "public function checkFormatAllowed() {\n\t\t$imageFileType = pathinfo(basename($this->value[\"name\"]),PATHINFO_EXTENSION);\n\t\tif((($this->extension == \"\") && ($imageFileType == \"jpg\" || $imageFileType == \"png\" || $imageFileType == \"jpeg\"\n\t\t|| $imageFileType == \"gif\")) || ($this->extension == \"pdf\" && $imageFileType == \"pdf\" )) {\n\t\t return true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "function checkFileType($imageFileType)\n{\n\n if ($imageFileType == \"c\"||$imageFileType==\"C\"){\n echo \"C file detected!\";\n return 1;\n }\n if ($imageFileType ==\"py\"||$imageFileType==\"PY\"){\n echo \"Python file detected!\";\n return 2;\n\n }\n else{\n echo \"File is not allowed\";\n return 0;\n\n }\n}", "function image_exist($file, $path=\"\") {\n\tif ($file)\n\t{\n\t\t$checkfile=($path)?$path . \"/\" . $file:$file;\n\t\tif (file_exists($checkfile)) {\n\t\t\treturn 1;\n\t\t}\n\t}\n\t}", "function loadFile ($image) {\r\n if ( !$dims=@GetImageSize($image) ) {\r\n trigger_error('Could not find image '.$image);\r\n return false;\r\n }\r\n if ( in_array($dims['mime'],$this->types) ) {\r\n $loader=$this->imgLoaders[$dims['mime']];\r\n $this->source=$loader($image);\r\n $this->sourceWidth=$dims[0];\r\n $this->sourceHeight=$dims[1];\r\n $this->sourceMime=$dims['mime'];\r\n $this->initThumb();\r\n return true;\r\n } else {\r\n trigger_error('Image MIME type '.$dims['mime'].' not supported');\r\n return false;\r\n }\r\n }", "function testFileTypes()\n {\n $bulletproof = $this->bulletproof->uploadDir('/tmp');\n $image = array('name' => $this->testingImage,\n 'type' => 'image/jpeg',\n 'size' => 542,\n 'tmp_name' => $this->testingImage,\n 'error' => 0\n );\n\n /* should not accept gif*/\n $bulletproof->fileTypes(array('gif'));\n $this->setExpectedException('ImageUploader\\ImageUploaderException',' This is not allowed file type!\n Please only upload ( gif ) file types');\n $upload = $bulletproof->upload($image,'bulletproof_test_image');\n\n\n /* should not accept png*/\n $bulletproof->fileTypes(array('png'));\n $this->setExpectedException('ImageUploader\\ImageUploaderException',' This is not allowed file type!\n Please only upload ( png ) file types');\n $upload = $bulletproof->upload($image,'bulletproof_test_image');\n\n /* shouldn't accept this file */\n $bulletproof->fileTypes(array('exe'));\n $this->setExpectedException('ImageUploader\\ImageUploaderException',' This is not allowed file type!\n Please only upload ( exe ) file types');\n $upload = $bulletproof->upload($image,'bulletproof_test_image');\n\n /* example file is actually jpeg, not jpg */\n $bulletproof->fileTypes(array('png', 'jpeg'));\n $upload = $bulletproof->upload($image,'bulletproof_test_image');\n $this->assertEquals('uploads/bulletproof_test_image.jpeg',$upload);\n }", "function check_image_existance($path,$image_name)\n{\n //buld the url\n $image_url=$path.$image_name;\n if (file_exists($image_url) !== false) {\n return true;\n }\n}", "public function checkFile($filename){\n $ext = substr($filename, strrpos($filename, '.') + 1);\n if($ext==\"jpg\"||$ext==\"png\"||$ext==\"svg\"||$ext==\"jpeg\"){\n return true;\n }else{\n return false;\n }\n }", "public function test_supports_mime_type() {\n\t\t$imagick_image_editor = new WP_Image_Editor_Imagick( null );\n\n\t\t$this->assertTrue( $imagick_image_editor->supports_mime_type( 'image/jpeg' ), 'Does not support image/jpeg' );\n\t\t$this->assertTrue( $imagick_image_editor->supports_mime_type( 'image/png' ), 'Does not support image/png' );\n\t\t$this->assertTrue( $imagick_image_editor->supports_mime_type( 'image/gif' ), 'Does not support image/gif' );\n\t}", "function is_random_header_image($type = 'any')\n {\n }", "public static function isImage($source)\n {\n return getimagesize($source);\n }" ]
[ "0.76652336", "0.7644535", "0.75417966", "0.7521526", "0.7464649", "0.7343216", "0.7342755", "0.7310151", "0.73099613", "0.73043185", "0.7300352", "0.7292383", "0.72575426", "0.72338104", "0.7199347", "0.71541935", "0.71293986", "0.7113103", "0.71123034", "0.71080375", "0.71003586", "0.7087446", "0.7081728", "0.7028385", "0.69918144", "0.69773155", "0.6973162", "0.69719523", "0.69604176", "0.6957563", "0.6955255", "0.6951371", "0.6930042", "0.6928113", "0.69139034", "0.6892158", "0.6882519", "0.6871099", "0.68667877", "0.68639207", "0.6850991", "0.684783", "0.6799638", "0.6791283", "0.67831707", "0.67822224", "0.6776677", "0.67535853", "0.67484874", "0.67337894", "0.67308205", "0.6724092", "0.6718038", "0.67087454", "0.6701271", "0.6688655", "0.66602415", "0.6643047", "0.66240793", "0.65984076", "0.6576517", "0.6570512", "0.6561625", "0.6548082", "0.6529608", "0.6520683", "0.65182346", "0.65181065", "0.6515315", "0.65068126", "0.65050346", "0.6491655", "0.6489748", "0.6481194", "0.6462039", "0.64616185", "0.64305127", "0.64266855", "0.6422855", "0.6420604", "0.64113647", "0.63898075", "0.6372851", "0.6344257", "0.63313967", "0.6317391", "0.63057286", "0.6300368", "0.6299712", "0.6280821", "0.6280735", "0.6268879", "0.62683064", "0.62676394", "0.6267313", "0.625609", "0.624843", "0.62464374", "0.624467", "0.6237212", "0.62369627" ]
0.0
-1
Allow certain file formats
public function checkFormatAllowed() { $imageFileType = pathinfo(basename($this->value["name"]),PATHINFO_EXTENSION); if((($this->extension == "") && ($imageFileType == "jpg" || $imageFileType == "png" || $imageFileType == "jpeg" || $imageFileType == "gif")) || ($this->extension == "pdf" && $imageFileType == "pdf" )) { return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function supportedFormats();", "function check_upload($file) {\n if (preg_match(\":^application/vnd.bdoc-:\", $file[\"type\"])) {\n $file[\"format\"] = \"bdoc\";\n } else if ($file[\"type\"] === \"application/x-ddoc\") {\n $file[\"format\"] = \"ddoc\";\n } else {\n return FALSE;\n }\n\n return is_uploaded_file($file[\"tmp_name\"]);\n}", "function check_file_extension($ext, $allowed) {\nif (in_array($ext, $allowed)) {\nreturn true;\n}else {\necho \"Only .txt file allow to be uploaded\";\n}\n}", "function check_file_type($source)\n{\n $file_info = check_mime_type($source);\n\n switch ($file_info) {\n case 'application/pdf':\n return true;\n break;\n\n case 'application/msword':\n return true;\n break;\n\n case 'application/rtf':\n return true;\n break;\n case 'application/vnd.ms-excel':\n return true;\n break;\n\n case 'application/vnd.ms-powerpoint':\n return true;\n break;\n\n case 'application/vnd.oasis.opendocument.text':\n return true;\n break;\n\n case 'application/vnd.oasis.opendocument.spreadsheet':\n return true;\n break;\n \n case 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet':\n return true;\n break;\n\n case 'application/vnd.openxmlformats-officedocument.wordprocessingml.document':\n return true;\n break;\n \n case 'image/gif':\n return true;\n break;\n\n case 'image/jpeg':\n return true;\n break;\n\n case 'image/png':\n return true;\n break;\n\n case 'image/wbmp':\n return true;\n break;\n\n default:\n return false;\n break;\n }\n}", "protected function isFile() {}", "function fileChecker($nome_file){\n \n // controllo che sia stato inviato un file altrimenti restituisco false\n if(empty($_FILES['file'])){\n return false;\n }\n \n // memorizzo l'estensione\n $ext = trim(strtolower(end($nome_file)));\n \n // verifico che sia stato inviato un file contente un foto i formati disponibili sono jpg png jpeg\n if(!preg_match(VALID_FILE_FORMAT, $ext)){\n return false;\n }\n \n return true;\n}", "function wp_check_filetype($filename, $mimes = null) {\n\t$mimes = is_array($mimes) ? $mimes : apply_filters('upload_mimes', array(\n\t\t'jpg|jpeg|jpe' => 'image/jpeg',\n\t\t'gif' => 'image/gif',\n\t\t'png' => 'image/png',\n\t\t'bmp' => 'image/bmp',\n\t\t'tif|tiff' => 'image/tiff',\n\t\t'ico' => 'image/x-icon',\n\t\t'asf|asx|wax|wmv|wmx' => 'video/asf',\n\t\t'avi' => 'video/avi',\n\t\t'mov|qt' => 'video/quicktime',\n\t\t'mpeg|mpg|mpe' => 'video/mpeg',\n\t\t'txt|c|cc|h' => 'text/plain',\n\t\t'rtx' => 'text/richtext',\n\t\t'css' => 'text/css',\n\t\t'htm|html' => 'text/html',\n\t\t'php|php3|' => 'application/php',\n\t\t'mp3|mp4' => 'audio/mpeg',\n\t\t'ra|ram' => 'audio/x-realaudio',\n\t\t'wav' => 'audio/wav',\n\t\t'ogg' => 'audio/ogg',\n\t\t'mid|midi' => 'audio/midi',\n\t\t'wma' => 'audio/wma',\n\t\t'rtf' => 'application/rtf',\n\t\t'js' => 'application/javascript',\n\t\t'pdf' => 'application/pdf',\n\t\t'doc' => 'application/msword',\n\t\t'pot|pps|ppt' => 'application/vnd.ms-powerpoint',\n\t\t'wri' => 'application/vnd.ms-write',\n\t\t'xla|xls|xlt|xlw' => 'application/vnd.ms-excel',\n\t\t'mdb' => 'application/vnd.ms-access',\n\t\t'mpp' => 'application/vnd.ms-project',\n\t\t'swf' => 'application/x-shockwave-flash',\n\t\t'class' => 'application/java',\n\t\t'tar' => 'application/x-tar',\n\t\t'zip' => 'application/zip',\n\t\t'gz|gzip' => 'application/x-gzip',\n\t\t'exe' => 'application/x-msdownload',\n\t\t// openoffice formats\n\t\t'odt' => 'application/vnd.oasis.opendocument.text',\n\t\t'odp' => 'application/vnd.oasis.opendocument.presentation',\n\t\t'ods' => 'application/vnd.oasis.opendocument.spreadsheet',\n\t\t'odg' => 'application/vnd.oasis.opendocument.graphics',\n\t\t'odc' => 'application/vnd.oasis.opendocument.chart',\n\t\t'odb' => 'application/vnd.oasis.opendocument.database',\n\t\t'odf' => 'application/vnd.oasis.opendocument.formula',\n\n\t));\n\n\t$type = false;\n\t$ext = false;\n\n\tforeach ($mimes as $ext_preg => $mime_match) {\n\t\t$ext_preg = '!\\.(' . $ext_preg . ')$!i';\n\t\tif (preg_match($ext_preg, $filename, $ext_matches)) {\n\t\t\t$type = $mime_match;\n\t\t\t$ext = $ext_matches[1];\n\t\t\tbreak;\n\t\t}\n\t}\n\n\treturn compact('ext', 'type');\n}", "public static function supportedFormats()\n {\n return [\n 'avif' => 'image/avif',\n 'gif' => 'image/gif',\n 'jpg' => 'image/jpeg',\n 'pjpg' => 'image/jpeg',\n 'png' => 'image/png',\n 'webp' => 'image/webp',\n 'tiff' => 'image/tiff',\n ];\n }", "private function checkMimeType()\n {\n $allowedTypes = $this->getSetting('allowed_upload_types', true);\n if (is_string($allowedTypes) && strlen($allowedTypes)) {\n $allowedTypes = str_replace(' ', '', $allowedTypes);\n $allowedTypes = explode(',', $allowedTypes);\n }\n if (is_array($allowedTypes)) {\n if (!in_array($this->file->getMimeType(), $allowedTypes)) {\n throw new FileException('File type is not allowed');\n }\n }\n }", "public function mimeTypeValid()\n\t{\n\t\tif (!in_array($this->files['type'], $this->mime_types)) {\n\t\t\tthrow new Exception(\"Invalid file Extension\",6);\n\t\t}\n\t}", "function getFileTypeRestrictions() ;", "public function supported_filetypes() {\n return '*';\n }", "function supports($format);", "function validateFileMime(&$model, $fieldData, $fieldName, $allowedMimes = array()) {\n if (empty($fieldData[$fieldName]['tmp_name'])) return true;\n \n $availableMimes = assetMimes();\n \n foreach (!empty($allowedMimes) ? $allowedMimes : array() as $type) {\n if ($type == '*') return true;\n \n # check fileinfo first\n $fileinfo = assetMimeType($fieldData[$fieldName]['tmp_name']);\n if ((!$fileinfo) && (in_array($fileinfo, $availableMimes[$type]))) return true; \n \n # check browser provided mime-type second\n if (in_array($fieldData[$fieldName]['type'], $availableMimes[$type])) return true;\n }\n \n return false;\n }", "private function getAllowedFileTypes()\n {\n return str_replace('.', '', config('media.allowed', ''));\n }", "function get_file_format($file) {\n if(function_exists('finfo_open')) {\n $file_info = finfo_open(FILEINFO_MIME_TYPE);\n $mime_type = finfo_file($file_info, $file);\n finfo_close($file_info);\n if($mime_type) {\n return $mime_type;\n }\n }\n\n if(function_exists('mime_content_type')) {\n if($mime_type = @mime_content_type($file)) {\n return $mime_type;\n }\n }\n\n if($extension = get_file_extension($file)) {\n switch($extension) {\n case 'js' :\n return 'application/x-javascript';\n case 'json' :\n return 'application/json';\n case 'jpg' :\n case 'jpeg' :\n case 'jpe' :\n return 'image/jpg';\n case 'png' :\n case 'gif' :\n case 'bmp' :\n case 'tiff' :\n return 'image/'.$extension;\n case 'css' :\n return 'text/css';\n case 'xml' :\n return 'application/xml';\n case 'doc' :\n case 'docx' :\n return 'application/msword';\n case 'xls' :\n case 'xlt' :\n case 'xlm' :\n case 'xld' :\n case 'xla' :\n case 'xlc' :\n case 'xlw' :\n case 'xll' :\n return 'application/vnd.ms-excel';\n case 'ppt' :\n case 'pps' :\n return 'application/vnd.ms-powerpoint';\n case 'rtf' :\n return 'application/rtf';\n case 'pdf' :\n return 'application/pdf';\n case 'html' :\n case 'htm' :\n case 'php' :\n return 'text/html';\n case 'txt' :\n return 'text/plain';\n case 'mpeg' :\n case 'mpg' :\n case 'mpe' :\n return 'video/mpeg';\n case 'mp3' :\n return 'audio/mpeg3';\n case 'wav' :\n return 'audio/wav';\n case 'aiff' :\n case 'aif' :\n return 'audio/aiff';\n case 'avi' :\n return 'video/msvideo';\n case 'wmv' :\n return 'video/x-ms-wmv';\n case 'mov' :\n return 'video/quicktime';\n case 'zip' :\n return 'application/zip';\n case 'tar' :\n return 'application/x-tar';\n case 'swf' :\n return 'application/x-shockwave-flash';\n default:\n return 'unknown/'.trim($extension,'.');\n }\n }\n return false;\n}", "function checkSourceFormat()\r\n\t{\r\n\t\treturn true;\r\n\t}", "function validateMimeType($file_name){\r\n // array of acceptable MIME types\r\n $mime_types = [\r\n 'image/png',\r\n 'image/jpeg'\r\n ];\r\n \r\n // determines MIME type\r\n $type = mime_content_type($file_name);\r\n \r\n // check if MIME type is in array of acceptable types\r\n return in_array($type, $mime_types, true);\r\n}", "public function extens(){\n $this->typefl = pathinfo($this->filename, PATHINFO_EXTENSION);\n\n if(!in_array($this->typefl, $this->type)){\n echo \"Wrong extension!!!\";\n return false;\n }\n else{\n return true;\n }\n }", "private function checkSupportedFile($file_type) {\n return true;\n\n\n }", "public function isFile();", "public function supportsFormat($format);", "public function fileDenyPatternMatchesPhpExtensionDataProvider() {}", "public function wrongTypeFile()\n {\n return 'This type of file is not allowed';\n }", "public function test_listUnsupportedFileTypes() {\n\n }", "function hook_file_type($file) {\n // Assign all files uploaded by anonymous users to a special file type.\n if (user_is_anonymous()) {\n return array('untrusted_files');\n }\n}", "public function getFileExtension($format);", "function file_tester($file){\n if (htmlentities($file['filename']['type']) == 'text/plain')\n return true;\n else {\n echo \"Please submit correct file type (.txt)\";\n return false;\n }\n}", "function isFileType($files) {\n $allowedExts = array(\"jpg\", \"jpeg\", \"gif\", \"png\", \"doc\", \"docx\", \"txt\", \"rtf\", \"pdf\", \"xls\", \"xlsx\", \"ppt\", \"pptx\");\n $temp = explode(\".\", $files);\n $extension = end($temp);\n if (in_array($extension, $allowedExts))\n return true;\n else\n return false;\n}", "public function supports(File $file);", "function validate_file($file, $allowed_files = array())\n {\n }", "public function support($file);", "public function getFileTypeRestrictions() {}", "function validateTypeOfFile($type){\n\t$arrFile = ['image/png', 'image/jpg', 'image/jpeg', 'image/gif'];\n\tif(in_array($type, $arrFile)){\n\t\treturn true;\n\t}else{\n\t\treturn false;\n\t}\n}", "private function getAvailableFormats()\n {\n return array(\n 'tab',\n 'xml',\n 'json',\n 'perl',\n 'php',\n 'vaml',\n 'html',\n );\n }", "function fileExtension($nameFile) {\n\t$format = substr($nameFile, -4);\n\treturn ($format == \".pat\");\n}", "public function validateExtensionplan(){\n $allowed = array('jpeg', 'jpg', 'png');\n $filename = $this->getplanFloor('name');\n $ext = pathinfo($filename, PATHINFO_EXTENSION);\n if(!in_array($ext,$allowed)) {\n return false;\n } else {\n return true;\n }\n }", "function testFileTypes()\n {\n $bulletproof = $this->bulletproof->uploadDir('/tmp');\n $image = array('name' => $this->testingImage,\n 'type' => 'image/jpeg',\n 'size' => 542,\n 'tmp_name' => $this->testingImage,\n 'error' => 0\n );\n\n /* should not accept gif*/\n $bulletproof->fileTypes(array('gif'));\n $this->setExpectedException('ImageUploader\\ImageUploaderException',' This is not allowed file type!\n Please only upload ( gif ) file types');\n $upload = $bulletproof->upload($image,'bulletproof_test_image');\n\n\n /* should not accept png*/\n $bulletproof->fileTypes(array('png'));\n $this->setExpectedException('ImageUploader\\ImageUploaderException',' This is not allowed file type!\n Please only upload ( png ) file types');\n $upload = $bulletproof->upload($image,'bulletproof_test_image');\n\n /* shouldn't accept this file */\n $bulletproof->fileTypes(array('exe'));\n $this->setExpectedException('ImageUploader\\ImageUploaderException',' This is not allowed file type!\n Please only upload ( exe ) file types');\n $upload = $bulletproof->upload($image,'bulletproof_test_image');\n\n /* example file is actually jpeg, not jpg */\n $bulletproof->fileTypes(array('png', 'jpeg'));\n $upload = $bulletproof->upload($image,'bulletproof_test_image');\n $this->assertEquals('uploads/bulletproof_test_image.jpeg',$upload);\n }", "function testFileTypes()\r\n {\r\n $nautilus = $this->nautilus->uploadDir('/tmp');\r\n $image = array('name' => $this->testingImage,\r\n 'type' => 'image/jpeg',\r\n 'size' => 542,\r\n 'tmp_name' => $this->testingImage,\r\n 'error' => 0\r\n );\r\n\r\n /* should not accept gif*/\r\n $nautilus->fileTypes(array('gif'));\r\n $this->setExpectedException('Image\\ImageException',' This is not allowed file type!\r\n Please only upload ( gif ) file types');\r\n $upload = $nautilus->upload($image,'nautilus_test_image');\r\n\r\n\r\n /* should not accept png*/\r\n $nautilus->fileTypes(array('png'));\r\n $this->setExpectedException('Image\\ImageException',' This is not allowed file type!\r\n Please only upload ( png ) file types');\r\n $upload = $nautilus->upload($image,'nautilus_test_image');\r\n\r\n /* shouldn't accept this file */\r\n $nautilus->fileTypes(array('exe'));\r\n $this->setExpectedException('Image\\ImageException',' This is not allowed file type!\r\n Please only upload ( exe ) file types');\r\n $upload = $nautilus->upload($image,'nautilus_test_image');\r\n\r\n /* example file is actually jpeg, not jpg */\r\n $nautilus->fileTypes(array('png', 'jpeg'));\r\n $upload = $nautilus->upload($image,'nautilus_test_image');\r\n $this->assertEquals('uploads/nautilus_test_image.jpeg',$upload);\r\n }", "public function canSetFileable();", "function applicable_formats() {\n return array('course-view-wiki' => true, 'mod-wiki' => true);\n }", "abstract protected function getFileExtension();", "function isValidDocument($docFormat, $document){\n $name = $document['name'];\n $ext = explode('.', $name);\n $ext = '.' . $ext[1];\n\n if($ext == $docFormat){\n if($document['error'] === 0){\n return true;\n }\n else{\n echo \"error uploading document\";\n return false;\n }\n }\n else{\n echo \"doc type does not match documents true extension\";\n }\n }", "public function extensionValid() \n\t{\n\t\tif (!in_array($this->extension_of_file, $this->file_types)) //{\n\t\t\tthrow new Exception(\"Invalid file Extension\",5);\n\t\t//}\n\t}", "public function testSetAllowedMimeTypesIllegal() {\n // list is only checked against during upload, so expect success here.\n $mytype = array('application/x-perl' => 'pl');\n $this->up->setAllowedMimeTypes($mytype);\n $this->assertEquals($mytype, $this->up->getAllowedMimeTypes());\n }", "function check_mime_type($source)\n{\n $mime_types = array(\n // images\n 'png' => 'image/png',\n 'jpe' => 'image/jpeg',\n 'jpeg' => 'image/jpeg',\n 'jpg' => 'image/jpeg',\n 'gif' => 'image/gif',\n 'bmp' => 'image/bmp',\n 'ico' => 'image/vnd.microsoft.icon',\n 'tiff' => 'image/tiff',\n 'tif' => 'image/tiff',\n 'svg' => 'image/svg+xml',\n 'svgz' => 'image/svg+xml',\n // adobe\n 'pdf' => 'application/pdf',\n // ms office\n 'doc' => 'application/msword',\n 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n 'rtf' => 'application/rtf',\n 'xls' => 'application/vnd.ms-excel',\n 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n 'ppt' => 'application/vnd.ms-powerpoint',\n // open office\n 'odt' => 'application/vnd.oasis.opendocument.text',\n 'ods' => 'application/vnd.oasis.opendocument.spreadsheet',\n );\n $arrext = explode('.', $source['name']);\n $jml = count($arrext) - 1;\n $ext = $arrext[$jml];\n $ext = strtolower($ext);\n //$ext = strtolower(array_pop(explode(\".\", $source['name'])));\n if (array_key_exists($ext, $mime_types)) {\n return $mime_types[$ext];\n } elseif (function_exists('finfo_open')) {\n $finfo = finfo_open(FILEINFO_MIME);\n $mimetype = finfo_file($finfo, $source['tmp_name']);\n finfo_close($finfo);\n return $mimetype;\n } else {\n return false;\n }\n}", "function hook_file_type_alter(&$types, $file) {\n // Choose a specific, non-first, file type.\n $types = array($types[4]);\n}", "function applicable_formats()\r\n\t\t{\r\n\t\t\treturn array('all' => true);\r\n\t\t}", "public function getSupportedFileExtensions() {}", "public function provider_mime_type() {\n\t\treturn array(\n\t\t\tarray( 'not-found.txt', false ),\n\t\t\tarray( 'empty.txt', version_compare( PHP_VERSION, '7.4', '>=' ) ? 'application/x-empty' : 'inode/x-empty' ),\n\t\t\tarray( 'file.aac', 'audio/aac' ),\n\t\t\tarray( 'file.css', 'text/css' ),\n\t\t\tarray( 'file.csv', 'text/plain' ),\n\t\t\tarray( 'file.flac', 'audio/flac' ),\n\t\t\tarray( 'file.gif', 'image/gif' ),\n\t\t\tarray( 'file.htm', 'text/html' ),\n\t\t\tarray( 'file.html', 'text/html' ),\n\t\t\tarray( 'file.jpe', 'image/jpeg' ),\n\t\t\tarray( 'file.jpeg', 'image/jpeg' ),\n\t\t\tarray( 'file.jpg', 'image/jpeg' ),\n\t\t\tarray( 'file.js', 'application/javascript' ),\n\t\t\tarray( 'file.m4a', 'audio/m4a' ),\n\t\t\tarray( 'file.mp3', 'audio/mpeg' ),\n\t\t\tarray( 'file.png', 'image/png' ),\n\t\t\tarray( 'file.svg', 'image/svg+xml' ),\n\t\t\tarray( 'file.txt', 'text/plain' ),\n\t\t\tarray( 'file.wav', 'audio/wav' ),\n\t\t\tarray( 'file.xml', 'application/xml' ),\n\t\t\tarray( 'no-extension-text', 'text/plain' ),\n\t\t\tarray( 'no-extension-media', 'application/octet-stream' ),\n\t\t\tarray( 'upper-case.JPG', 'image/jpeg' ),\n\t\t);\n\t}", "public function isFile() : bool;", "function enable_extended_upload ( $mime_types =array() ) {\n // You can add as many MIME types as you want.\n $mime_types['exe'] = 'application/exe'; \n\n return $mime_types;\n}", "public static function _mime_types($ext = '')\n {\n }", "public function setAllowedFileTypes( $types ) {\r\n\t\t\tif ( $types === false ) {\r\n\t\t\t\t// allow all filetypes\r\n\t\t\t\t$this->AllowedFileTypes = null;\r\n\t\t\t} else {\r\n\t\t\t\t$types = (array)$types;\r\n\t\t\t\tfor( $i = 0, $count = count( $types ); $i < $count; $i++ ) {\r\n\t\t\t\t\t$types[$i] = (string)$types[$i];\r\n\t\t\t\t}\r\n\t\t\t\t$this->AllowedFileTypes = $types;\r\n\t\t\t}\r\n\t\t}", "public function isFileOperationAllowed() {}", "function availableFileTypes($ext) {\n //checking file type extension\n switch ($ext) {\n //checking txt extention\n case \"txt\":\n $type[0] = \"text/plain\";\n break;\n\n //checking xml extention\n case \"xml\":\n $type[0] = \"text/xml\";\n $type[1] = \"application/xml\";\n break;\n\n //checking csv extention\n case \"csv\":\n $type[0] = \"text/x-comma-separated-values\";\n $type[1] = \"application/octet-stream\";\n $type[2] = \"text/plain\";\n break;\n\n //checking zip extention\n case \"zip\":\n $type[0] = \"application/zip\";\n break;\n\n //checking tar extention\n case \"tar\":\n $type[0] = \"application/x-gzip\";\n break;\n\n //checking ctar extention\n case \"ctar\":\n $type[0] = \"application/x-compressed-tar\";\n break;\n\n //checking pdf extention\n case \"pdf\":\n $type[0] = \"application/pdf\";\n break;\n\n //checking doc extention\n case \"doc\":\n $type[0] = \"application/msword\";\n $type[1] = \"application/octet-stream\";\n break;\n\n //checking xls extention\n case \"xls\":\n $type[0] = \"application/vnd.ms-excel\";\n $type[1] = \"application/vnd.oasis.opendocument.spreadsheet\";\n break;\n\n //checking ppt extention\n case \"ppt\":\n $type[0] = \"application/vnd.ms-powerpoint\";\n break;\n\n //checking jpg extention\n case \"jpg\":\n $type[0] = \"image/jpg\";\n $type[1] = \"image/jpeg\";\n $type[2] = \"image/pjpeg\";\n break;\n\n //checking gif extention\n case \"gif\":\n $type[0] = \"image/gif\";\n break;\n\n //checking png extention\n case \"png\":\n $type[0] = \"image/png\";\n break;\n\n //checking bmp extention\n case \"bmp\":\n $type[0] = \"image/bmp\";\n break;\n\n //checking icon extention\n case \"icon\":\n $type[0] = \"image/x-ico\";\n break;\n\n //checking tfontt extention\n case \"font\":\n $type[0] = \"application/x-font-ttf\";\n break;\n }\n\n return $type;\n }", "protected function _validateMimeType()\n\t{\n\t\t$this->_fileType = \\MimeType\\MimeType::getType($this->getFilePath());\n\n\t\tif (!in_array($this->_fileType, $this->_allowedMimeType)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public function customFileDenyPatternConfigured(): bool\n {\n return $this->fileDenyPattern !== self::DEFAULT_FILE_DENY_PATTERN;\n }", "function check_file_is_audio( $tmp ) \n{\n $allowed = array(\n 'audio/mpeg', 'audio/x-mpeg', 'audio/mpeg3', 'audio/x-mpeg-3', 'audio/aiff', \n 'audio/mid', 'audio/x-aiff', 'audio/x-mpequrl','audio/midi', 'audio/x-mid', \n 'audio/x-midi','audio/wav','audio/x-wav','audio/xm','audio/x-aac','audio/basic',\n 'audio/flac','audio/mp4','audio/x-matroska','audio/ogg','audio/s3m','audio/x-ms-wax',\n 'audio/xm'\n );\n \n // check REAL MIME type\n $finfo = finfo_open(FILEINFO_MIME_TYPE);\n $type = finfo_file($finfo, $tmp );\n finfo_close($finfo);\n \n // check to see if REAL MIME type is inside $allowed array\n if( in_array($type, $allowed) ) {\n return $type;\n } else {\n return false;\n }\n}", "public function guessContentType($magic_file, $magic_mode = null) {}", "function custom_mime_types($existing_mimes = array()) {\n\n //For example, the following line allows PDF uploads\n //$existing_mimes['pdf'] = 'application/pdf';\n \n return $existing_mimes;\n}", "protected function getFileDenyPatternStatus() {}", "public function checkFileType($fileType){\n \t\tif ($fileType == \"application/octet-stream\"){\n \t\t\treturn true;\n \t\t}else{\n \t\t\treturn false;\n \t\t}\n \t}", "private function isFileValid(): bool\n {\n return FileHelper::isExpectedExtensions($this->getPath(), $this->getFileExtensions());\n }", "function _validateFormat($format)\n {\n if (!array_key_exists($format, $this->conf['all_syntax']))\n $format = 'text';\n \n return $format; \n }", "public function isFilebased() {\n\t\treturn FALSE;\n\t}", "function is_valid_file_extension($value, $set){\n if (in_array($value, $set)) {\n return true;\n }\n}", "function get_uploaded_file_format($file) {\n if(!$format = get_file_format($file['tmp_name'])) {\n $format = get_file_format($file['name']);\n }\n return $format;\n}", "public function get_allowed_content_object_types()\n {\n return array(File::class);\n }", "public function testIgnoreCheckMimeType() {\n // the check can be disabled\n $up2 = new upload();\n $up2->setIgnoreMimeCheck(true);\n $this->assertTrue($up2->checkMimeType());\n }", "static function get_allowable_export_formats() {\n //currently, only PDF and CSV export formats are fully implemented\n return array(php_report::$EXPORT_FORMAT_PDF,\n php_report::$EXPORT_FORMAT_CSV);\n }", "function check_upload_mimes($mimes)\n {\n }", "public function aws_allowed_mime_types( $types ) {\n\t\t\t// we only want...\n\t\t\treturn array(\n\t\t\t\t// Audio formats.\n\t\t\t\t'mp3|m4a|m4b' => 'audio/mpeg',\n\t\t\t\t'ra|ram' => 'audio/x-realaudio',\n\t\t\t\t'wav' => 'audio/wav',\n\t\t\t\t'ogg|oga' => 'audio/ogg',\n\t\t\t\t'mid|midi' => 'audio/midi',\n\t\t\t\t'wma' => 'audio/x-ms-wma',\n\t\t\t\t'wax' => 'audio/x-ms-wax',\n\t\t\t\t'mka' => 'audio/x-matroska',\n\t\t\t\t// Video formats.\n\t\t\t\t'asf|asx' => 'video/x-ms-asf',\n\t\t\t\t'wmv' => 'video/x-ms-wmv',\n\t\t\t\t'wmx' => 'video/x-ms-wmx',\n\t\t\t\t'wm' => 'video/x-ms-wm',\n\t\t\t\t'avi' => 'video/avi',\n\t\t\t\t'divx' => 'video/divx',\n\t\t\t\t'flv' => 'video/x-flv',\n\t\t\t\t'mov|qt' => 'video/quicktime',\n\t\t\t\t'mpeg|mpg|mpe' => 'video/mpeg',\n\t\t\t\t'mp4|m4v' => 'video/mp4',\n\t\t\t\t'ogv' => 'video/ogg',\n\t\t\t\t'webm' => 'video/webm',\n\t\t\t\t'mkv' => 'video/x-matroska',\n\t\t\t\t'3gp|3gpp' => 'video/3gpp', // Can also be audio\n\t\t\t\t'3g2|3gp2' => 'video/3gpp2', // Can also be audio\n\t\t\t);\n\t\t}", "public function applicable_formats() {\n return array('my' => true);\n }", "function theme_slug_sanitize_file( $file, $setting ) {\n\n //allowed file types\n $mimes = array(\n 'jpg|jpeg|jpe' => 'image/jpeg',\n 'gif' => 'image/gif',\n 'png' => 'image/png'\n );\n\n //check file type from file name\n $file_ext = wp_check_filetype( $file, $mimes );\n\n //if file has a valid mime type return it, otherwise return default\n return ( $file_ext['ext'] ? $file : $setting->default );\n}", "public function isFile(): bool;", "public static function guessContentType($magic_file, $magic_mode = null) {}", "static function getValidContentTypes() {\n return array(\n 'image/',\n 'text/',\n 'application/pdf',\n );\n }", "protected function _getAllowedExtensions()\n {\n return ['jpg', 'jpeg', 'gif', 'png', 'svg'];\n }", "function get_displayable_file_types() {\n return array( \n 'ada',\n 'adb',\n 'adp',\n 'ads',\n 'ans',\n 'as',\n 'asc',\n 'asm',\n 'asp',\n 'aspx',\n 'atom',\n 'au3',\n 'bas',\n 'bat',\n 'bmax',\n 'bml',\n 'c',\n 'cbl',\n 'cc',\n 'cfm',\n 'cgi',\n 'cls',\n 'cmd',\n 'cob',\n 'cpp',\n 'cs',\n 'css',\n 'csv',\n 'cxx',\n 'd',\n 'dif',\n 'dist',\n 'dtd',\n 'e',\n 'efs',\n 'egg',\n 'egt',\n 'f',\n 'f77',\n 'for',\n 'frm',\n 'frx',\n 'ftn',\n 'ged',\n 'gitattributes',\n 'gitignore',\n 'gm6',\n 'gmd',\n 'gml',\n 'h',\n 'hpp',\n 'hs',\n 'hta',\n 'htaccess',\n 'htm',\n 'html',\n 'hxx',\n 'ici',\n 'ictl',\n 'ihtml',\n 'inc',\n 'inf',\n 'info',\n 'ini',\n 'install',\n 'java',\n 'js',\n 'jsfl',\n 'json',\n 'l',\n 'las',\n 'lasso',\n 'lassoapp',\n 'less',\n 'log',\n 'lua',\n 'm',\n 'm4',\n 'makefile',\n 'manifest',\n 'md',\n 'met',\n 'metalink',\n 'ml',\n 'module',\n 'mrc',\n 'n',\n 'ncf',\n 'nfo',\n 'nut',\n 'p',\n 'pas',\n 'php',\n 'php3',\n 'php4',\n 'php5',\n 'phps',\n 'phtml',\n 'piv',\n 'pl',\n 'pm',\n 'pp',\n 'properties',\n 'ps1',\n 'ps1xml',\n 'psc1',\n 'psd1',\n 'psm1',\n 'py',\n 'pyc',\n 'pyi',\n 'rb',\n 'rdf',\n 'resx',\n 'rss',\n 's',\n 'scm',\n 'scpt',\n 'sh',\n 'shtml',\n 'spin',\n 'sql',\n 'ss',\n 'stk',\n 'svg',\n 'tab',\n 'tcl',\n 'tpl',\n 'txt',\n 'vb',\n 'vbp',\n 'vbs',\n 'xht',\n 'xhtml',\n 'xml',\n 'xsl',\n 'xslt',\n 'xul',\n 'y',\n 'yml'\n );\n }", "function _file_get_type($file) {\n $ext = file_ext($file);\n if (preg_match(\"/$ext/i\", get_setting(\"image_ext\")))\n return IMAGE;\n if (preg_match(\"/$ext/i\", get_setting(\"audio_ext\")))\n return AUDIO;\n if (preg_match(\"/$ext/i\", get_setting(\"video_ext\")))\n return VIDEO;\n if (preg_match(\"/$ext/i\", get_setting(\"document_ext\")))\n return DOCUMENT;\n if (preg_match(\"/$ext/i\", get_setting(\"archive_ext\")))\n return ARCHIVE;\n }", "function applicable_formats() {\n return array('all' => true);\n }", "public function getAllowFileExtensions()\n\t{\n\t\treturn implode(',', array_merge($this->videoExtensions, $this->imageExtensions, $this->audioExtensions, $this->docExtensions ));\n\t\t//return Yii::app()->params['fileExtensions'];\n\t}", "public function file_check($str){\n \t$allowed_mime_type_arr = array('application/pdf');\n \tif(isset($_FILES['file']['name']) && $_FILES['file']['name']!=\"\"){\n \t\t$mime = get_mime_by_extension($_FILES['file']['name']);\n \t\tif(in_array($mime, $allowed_mime_type_arr)){\n \t\t\treturn true;\n \t\t}else{\n \t\t\t$this->form_validation->set_message('file_check', 'Extension File Hanya Boleh PDF');\n \t\t\treturn false;\n \t\t}\n \t}else{\n \t\t// $this->form_validation->set_message('file_check', 'Silahkan Pilih File PDF nya.');\n \t\t// return false;\n \t\treturn true;\n \t}\n }", "function file_source_can_be_displayed($filename) {\n return in_array(get_file_extension($filename), get_displayable_file_types());\n }", "function validateFileExtension(&$model, $fieldData, $fieldName, $allowedExts = array()) {\n if (empty($fieldData[$fieldName]['tmp_name'])) return true;\n \n $extension = strtolower(pathinfo($fieldData[$fieldName]['name'], PATHINFO_EXTENSION));\n \n if (!is_array($allowedExts) || (!in_array('*', $allowedExts) && !in_array($extension, $allowedExts))) return false;\n \n return true;\n }", "function checkFileType($imageFileType)\n{\n\n if ($imageFileType == \"c\"||$imageFileType==\"C\"){\n echo \"C file detected!\";\n return 1;\n }\n if ($imageFileType ==\"py\"||$imageFileType==\"PY\"){\n echo \"Python file detected!\";\n return 2;\n\n }\n else{\n echo \"File is not allowed\";\n return 0;\n\n }\n}", "public function sanitizeFileNameNonUTF8FilesystemDataProvider() {}", "public function applicable_formats() {\n return array(\n 'course-view' => true,\n 'site' => true,\n 'mod' => false,\n 'my' => false,\n );\n }", "public function getExtendedType()\n {\n return 'file';\n }", "public function getSupportedFormats()\n {\n return array('json', 'xml');\n }", "public function applicable_formats() {\n return array(\n 'course-view' => true,\n 'site' => true,\n 'mod' => false,\n 'my' => true\n );\n }", "function bootstrap_blog_sanitize_file( $file, $setting ) {\n \n //allowed file types\n $mimes = array(\n 'jpg|jpeg|jpe' => 'image/jpeg',\n 'gif' => 'image/gif',\n 'png' => 'image/png'\n );\n \n //check file type from file name\n $file_ext = wp_check_filetype( $file, $mimes );\n \n //if file has a valid mime type return it, otherwise return default\n return ( $file_ext['ext'] ? $file : $setting->default );\n}", "function addFileTypes($fileTypes) {\r\n $fileTypes['svg'] = 'image/svg+xml';\r\n return $fileTypes;\r\n}", "public function is_file($file);", "function ignore_upload_ext( $checked, $file, $filename, $mimes ) {\n\t\tif(!$checked['type']){\n\t\t\t//rebuild the type info\n\t\t\t$wp_filetype = wp_check_filetype( $filename, $mimes );\n\t\t\t$ext = $wp_filetype['ext'];\n\t\t\t$type = $wp_filetype['type'];\n\t\t\t$proper_filename = $filename;\n\n\t\t\t//preserve failure for non-svg images\n\t\t\tif($type && 0 === strpos($type, 'image/') && $ext !== 'svg'){\n\t\t\t\t$ext = $type = false;\n\t\t\t}\n\n\t\t\t//everything else gets an OK, so e.g. we've disabled the error-prone finfo-related checks WP just went through. whether or not the upload will be allowed depends on the <code>upload_mimes</code>, etc.\n\n\t\t\t$checked = compact('ext','type','proper_filename');\n\t\t}\n\n\t\treturn $checked;\n\n\t}", "public static function invalidFiles()\n\t{\n\t\treturn array('error'=>'invalid');\n\t}", "function textUpload($tF){\n // php is disable on server for this directory\n global $uploadOk, $uploadStatus;\n\n $textFileType = strtolower(pathinfo($tF,PATHINFO_EXTENSION));\n\n // Allow certain file formats\n if($textFileType != \"html\" && $textFileType != \"css\") {\n $uploadStatus .= \"<br>Sorry, only HTML and CSS files are allowed.\";\n $uploadOk = 0;\n }\n}", "function validate_file_to_edit($file, $allowed_files = array())\n {\n }", "function is_external_file($file) {\n\n $allowed = array('jpeg', 'png', 'bmp', 'gif', 'pdf', 'jpg', 'doc', 'docx');\n\n $ext = pathinfo($file, PATHINFO_EXTENSION);\n\n if (in_array(strtolower($ext), $allowed)) {\n return true;\n }\n\n return false;\n}" ]
[ "0.69058883", "0.67725223", "0.6614892", "0.66106343", "0.65612733", "0.64717376", "0.64520144", "0.6353385", "0.63402754", "0.63264996", "0.6309952", "0.62846714", "0.6281127", "0.6256811", "0.62485087", "0.62322074", "0.62162256", "0.62066483", "0.61883974", "0.61796266", "0.61781675", "0.61538804", "0.6150049", "0.6141909", "0.6120075", "0.6119765", "0.60990185", "0.60953426", "0.6092683", "0.6091364", "0.60425663", "0.6039885", "0.60387075", "0.60381144", "0.6032005", "0.599915", "0.5997956", "0.59931916", "0.59905046", "0.59849393", "0.598407", "0.59606344", "0.59585196", "0.5948675", "0.59460765", "0.5934963", "0.5908274", "0.59043276", "0.5901724", "0.589725", "0.58951813", "0.5888975", "0.5888609", "0.58866096", "0.5884241", "0.58833283", "0.5862504", "0.5853277", "0.5851629", "0.5843476", "0.5836953", "0.5836556", "0.583278", "0.5832034", "0.58268255", "0.581748", "0.5816684", "0.58137363", "0.5799766", "0.5796928", "0.5789754", "0.5786627", "0.5785384", "0.57791775", "0.57754725", "0.5769357", "0.57683", "0.5763183", "0.5738605", "0.57122856", "0.57045865", "0.57019484", "0.5689682", "0.5678822", "0.56769776", "0.56677663", "0.5663839", "0.5659511", "0.56594324", "0.565771", "0.5654553", "0.56535363", "0.5652059", "0.56503826", "0.56492054", "0.5649181", "0.56490695", "0.56466585", "0.56459606", "0.5644659" ]
0.6737198
2
To logout the admin panel
function logout() { $this->session->unset_userdata('logged_in'); session_destroy(); redirect(''); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function logout() {\n\t\tunset($_SESSION['admin']);\n\t\t$this->redirect('admin/index');\n\t}", "public function adminLogout(){\n unset($_SESSION['adminID']);\n unset($_SESSION['AdminType']);\n unset($_SESSION['adminEmail']);\n header('location:' . URLROOT . '/admins/loginAdmin');\n }", "public function actionLogout() {\n\t\tYii::app ()->admin->logout ( false );\n\t\t$this->redirect ( array ('login' ) );\n\t}", "function admin_logout() {\r\n\r\n $this->Session->delete(md5(SITE_TITLE) . 'USERID');\r\n $this->Session->delete(md5(SITE_TITLE) . 'USERNAME');\r\n $this->Session->delete(md5(SITE_TITLE) . 'USEREMAIL');\r\n $this->Session->delete(md5(SITE_TITLE) . 'USERTYPE');\r\n $this->redirect(DEFAULT_ADMINURL);\r\n }", "public function actionLogout() {\n if (Yii::app()->user->logout()) {\n $this->redirect(array('admin/index'));\n }\n }", "public function logout() {\n\n $this->ion_auth->logout();\n\n // redirect them to the login page\n redirect('admin/login', 'refresh');\n }", "public function logout() \n\t{\n\t\t\n\t\t$sess_array = array\n\t\t(\n\t\t\t'admin_name' ,\n\t\t\t'loginuser' \n\t\t);\n\t\t// removing session data\n\t\t$this->session->unset_userdata($sess_array);\n\t\tredirect('/admin/index');\n \n\t}", "public function logoutFromAdmin()\n {\n $this->getHelperWait()->waitForElementPresent('//a[@class=\"link-logout\"]');\n $this->getHelperCommon()->click($this->getLogoutLinkXpath());\n }", "public function logoutFromAdmin()\n {\n $this->getHelperWait()->waitForElementPresent('//a[@class=\"link-logout\"]');\n $this->getHelperCommon()->click($this->getLogoutLinkXpath());\n }", "public function logout() { \n // Removing session data\n redirect( secure_url($curr_lang.'/site_admin') );\n }", "public function admin_logout() {\n $this->Session->destroy();\n $this->Session->delete('User');\n return $this->redirect('/');\n }", "public function logoutAction() {\n $auth = Zend_Auth::getInstance();\n $auth->clearIdentity();\n //redirect user\n $this->_helper->redirector->goToRouteAndExit(array(), 'admin-login');\n }", "public function logout()\n {\n $adminId = $this->session->userdata('admin_id');\n $this->session->unset_userdata('user_id');\n $this->session->sess_destroy();\n redirect(base_url());\n }", "public function logout() {\t\n\t\t$this->Session->destroy();\n\t\t$this->delete_cookie('KEYADMUSER');\n\t\t$this->disable_cache();\t\t\n\t\t$this->Session->setFlash('<button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>You have successfully signed off', 'default', array('class' => 'alert alert-success'));\n\t\t$this->redirect('/admin/login/');\n\n\t}", "protected function logout()\n {\n $this->dispatch('admin/index/logout');\n }", "function admin_logout() {\n\t\t\n\t\t$this->Member->create();\n\t\t$db = $this->Member->getDataSource();\n\t\t$data['Member']['login_status'] = $db->expression(\"NOW()\");\n\t\t$data['Member']['id'] = $this->Session->read('Admin.id');\n\t\t$this->Member->save($data);\n\t\t\n\t\t$this->Session->delete('Admin.id');\n\t\t$this->Session->delete('Admin.email');\n\t\t$this->Session->delete('Admin.loginStatus');\n\t\t$this->Session->delete('Admin.group_id');\n\t\t$this->redirect(array(\n\t\t\t'action' => 'login',\n\t\t\t'admin' => true\n\t\t));\n\t}", "public function logout(){\r\n error_reporting(E_ALL);\r\n ini_set(\"display_errors\",1);\r\n $this->destroy();\r\n header('location: '.URL.'admin_index');\r\n }", "function adminLogout($is_redirect=TRUE){\n $this->admin_logout();\n }", "public function logout()\n\t{\n\t\t$this->session->sess_destroy();\n\t\tredirect('/admin/login');\n\t}", "public function logout(){\n if(isset($_SESSION[\"identity\"])){\n \n unset($_SESSION[\"identity\"]);\n }\n\n if(isset($_SESSION[\"admin\"])){\n \n unset($_SESSION[\"admin\"]);\n }\n\n /* redireccionar, cuando me elimine la sesion del logueo */\n header(\"Location:\".base_url);\n }", "function admin_logout() {\n\t\t$this->Member->create();\n\t\t$db = $this->Member->getDataSource();\n\t\t$data['Member']['login_status'] = $db->expression(\"NOW()\");\n\t\t$data['Member']['id'] = $this->Session->read('Admin.id');\n\t\t$this->Member->save($data);\n\t\t\n\t\t$this->Session->delete('Admin.id');\n\t\t$this->Session->delete('Admin.email');\n\t\t$this->Session->delete('Admin.loginStatus');\n\t\t$this->Session->delete('Admin.group_id');\n\t\t$this->redirect(array(\n\t\t\t'action' => 'login',\n\t\t\t'admin' => true\n\t\t));\n\t}", "public function logout(){\n $this->phpsession->clear();\n redirect('r/k/admin');\n }", "public function logoutAdmin() {\n //start session\t\t\n $admin_name = $this->session->userdata('admin_name');\n\n //if logout success then destroy session and unset session variables\n $this->session->unset_userdata(array('admin_name'));\n $this->session->sess_destroy();\n redirect('admin_login');\n }", "function logout() {\n $this->session->unset_userdata(APP_PFIX . 'admin');\n redirect('login', 'refresh');\n }", "public function logout() {\n $this->_disconnect_user();\n redirect(base_admin_url('identification'), 'refresh');\n }", "public function logout() {\n\t\t\t\n\t\t\t\t$this->session->unset_userdata('admin_logged_in');\n\t\t\t\t$this->session->unset_userdata('admin_username');\n\t\t\t\t$this->session->unset_userdata('login_time');\n\t\t\t\t\n\t\t\t\t$this->session->sess_destroy();\t\n\t\t\t\t//log out successful, redirects to log in page\n\t\t\t\tredirect('admin/login');\t\t\t\t\n\t\t\n\t\t}", "public function adminLogout()\n {\n Auth::guard('webAdmin')->logout();\n return redirect('/admin/login');\n }", "public function logout() {\n $this->session->sess_destroy();\n redirect('Admin/login');\n }", "function logout() \n {\n $this->session->sess_destroy(); \n\t redirect('admin'); \n }", "public function logout()\n {\n auth()->guard('admin')->logout();\n \\Session::flush(); \n return redirect(url('admin'));\n }", "public function logout();", "public function logout();", "public function logout();", "public function logout();", "public function logout();", "public function logout();", "public function logout();", "public function logout();", "public function logout();", "public function logout();", "public function admin_logout() {\n $newdata = array(\n 'last_logout_date' => date(\"Y-m-d H:i:s\")\n );\n $collection = SUBADMIN;\n if ($this->session->userdata(APP_NAME.'_session_admin_name') == $this->config->item('admin_name')) {\n $collection = ADMIN;\n }\n $condition = array('admin_id' => $this->checkLogin('A'));\n $this->admin_model->update_details($collection, $newdata, $condition);\n $admindata = array(\n APP_NAME.'_session_admin_id' => '',\n APP_NAME.'_session_admin_name' => '',\n APP_NAME.'_session_admin_email' => '',\n APP_NAME.'_session_admin_mode' => '',\n APP_NAME.'_session_admin_privileges' => ''\n );\n $this->session->unset_userdata($admindata);\n $this->setErrorMessage('success', 'Successfully logout from your account','admin_adminlogin_logout_account');\n redirect(ADMIN_ENC_URL);\n }", "public function logout(){\n $this->_user->logout();\n }", "function logout() {\r\n $this->auth->logout();\r\n }", "public function logout()\n {\n // Logging\n // user_log($this->Session['username'], 'Heeft zich uitgelogd.');\n\n $this->DBsession->deleteSession($this->Session['id']);\n $this->user->setOffline();\n\n $this->session->unset_userdata('logged_in');\n $this->session->unset_userdata('Permissions');\n $this->session->sess_destroy();\n redirect('Admin', 'refresh');\n }", "public function actionLogout()\n\t{\n\t\tYii::app()->user->logout();\n\t\t//$this->redirect(Yii::app()->homeUrl);\n\t\t$this->redirect(Yii::app()->request->baseUrl.\"/administrator\");\n\t}", "function logout() \n\t{\n // Specify the navigation column's path so we can include it based\n // on the action being rendered\n $this->viewData['navigationPath'] = $this->getNavigationPath('admin');\n \n\t\tUser::Logout();\n // Render the action with template\n $this->renderWithTemplate('users/login', 'MemberPageBaseTemplate');\n }", "function logout() {\n\n $array_items = array('admin_id', 'admin_email', 'logged_in');\n\n $this->session->unset_userdata($array_items);\n $this->session->sess_destroy();\n\n redirect('login');\n\n }", "public function logout()\n {\n session_destroy();\n $this->load->view('admin/login');\n }", "public function logout()\n\t{\n\t\t$this->data['title'] = \"Logout\";\n\n\t\t// log the user out\n\t\t$logout = $this->ion_auth->logout();\n\n\t\t// redirect them to the login page\n\t\t$this->session->set_flashdata('message', $this->ion_auth->messages());\n\t\tredirect('/admin/login', 'refresh');\n\t}", "public function logOut()\n {\n $this->getElement('Toolbar')->logOut();\n }", "function logout()\n {\n $this->fal_front->logout();\n }", "public function action_logout()\r\n\t{\r\n\t\tAuth::instance()->logout();\r\n\t\tRequest::instance()->redirect('/');\r\n\t}", "public function logout(){\n\t\t$this->session->sess_destroy();\n\t\tredirect('superpanel/main/login');\n\t}", "public function logout() {\r\n $this->session->unset_userdata('admin_logged_in');\r\n $this->session->sess_destroy();\r\n redirect('login');\r\n //$this->load->view('login');\r\n }", "public function logout()\n\t{\n\t\t$this->data['title'] = \"Logout\";\n\n\t\t// log the user out\n\t\t$logout = $this->ion_auth->logout();\n\n\t\t// redirect them to the login page\n\t\t$this->session->set_flashdata('message', $this->ion_auth->messages());\n\t\tredirect('admin/login', 'refresh');\n\t}", "public function logout() {\n\t\t// Removing session data\n\t\t$sess_array = [];\n\t\t$this->session->unset_userdata('logged_in', $sess_array);\n\t\tredirect('admin/login', 'refresh');\n\t}", "function logout()\n { \n $this->auth->logout();\n $this->session->sess_destroy();\n $this->session->set_userdata(array('admin_loggedin' => FALSE, 'auth_user_id' => FALSE));\n redirect(site_url(\"user\"));\n }", "public function logout() {\n session_destroy();\n $this->redirect('?v=index&a=show');\n }", "public function logout() {\n $this->run('logout', array());\n }", "public function actionLogout() {\r\n\t\tYii::$app->user->logout ();\r\n\t}", "private function logout() {\n }", "public function logout()\n\t{\n\t\t$this->session->sess_destroy();\n\n\t\t$this->session->set_flashdata('success', 'Logged out Successfully');\n\t\tredirect('admin');\n\t}", "public function logout ()\n {\n User::logout(\"home\");\n }", "public function action_logout()\n\t{\n\t\tAuth::instance()->logout(TRUE);\n\n\t\t// Redirect back to the login object\n\t\tRequest::current()->redirect(url::site('auth/login',Request::current()->protocol(),false));\n\n\t}", "public function action_logout(){\n\t\tAuth::instance()->logout();\n \n\t\t#redirect to the user account and then the signin page if logout worked as expected\n\t\tHTTP::redirect('/');\t\n\n\t}", "public function logout() {\n\t\t$this->Auth->logout();\n\t\t$this->redirect($this->referer($this->Auth->redirect(), true)); \n\t}", "function logout() {\n\t\t$this->redirect($this->Auth->logout());\n\n }", "public static function logout();", "public function action_logout()\n\t{\n\t\tCookie::delete('user');\n\t\t\t\n\t\t// Redirect to the login\n\t\t$this->request->redirect(Route::get('kohanut-login')->uri(array('action'=>'login')));\n\t}", "public function actionLogout()\n {\n\tApp::user()->logout();\n\t$this->redirect(App::homeUrl());\n }", "public function logout() {\n\t\tSentry::logout();\n\t\tredirect(website_url('auth'));\n\t}", "public function logout()\n {\n Session::put('admin_name',null);\n Session::put('admin_id',null);\n Session::put('message','You are successfully logout');\n return Redirect::to('/backend');\n \n }", "public function logout() {\n\n\t}", "public function executeLogout() {\n $this->logMessage(\"Logout\", 'debug');\n $this->getUser()->clearCredentials();\n $this->getUser()->setAuthenticated(false);\n $this->redirect('default/index');\n }", "public function logout(){\n \n $this->session->unset_userdata('user_id');\n $this->session->unset_userdata('admin_name');\n $this->session->unset_userdata('admin_role');\n $this->session->unset_userdata('username');\n redirect('login');\n }", "public function actionLogout() {\r\n\r\n if (Yii::app()->user->getstate('user_id')) {\r\n $aduser = AdminUser::model()->findByPk(Yii::app()->user->getstate('user_id'));\r\n $aduser->login_status = 0;\r\n $aduser->last_logged_out = date(\"Y-m-d H:i:s\", strtotime(\"now\"));\r\n $aduser->save(FALSE);\r\n }\r\n\r\n Yii::app()->user->logout();\r\n $this->redirect(Yii::app()->params->logoutUrl);\r\n }", "function do_logout()\n\t{\n\t\t//log the user out\n\t\t$logout = $this->ion_auth->logout();\n\n\t\tredirect('cms/login', 'refresh');\n\t}", "public function stafflogout(){\n $this->phpsession->clear();\n redirect('r/k/staff');\n }", "public function logoutAction() {\r\n\t\t$logoutdb = new Model_UsersTimeInfo();\r\n\t\t$logoutdb->logoutDB(login_user(),login_user_role());\r\n \t$storage = new Zend_Auth_Storage_Session();\r\n $storage->clear();\r\n $this->_redirect('auth/login');\r\n }", "public function actionLogout() {\n Yii::app()->user->logout();\n $this->redirect(Yii::app()->request->baseUrl . '/principal/login');\n }", "public function actionLogout() {\r\n\t\t$this->redirect(array('//user/auth/logout'));\r\n\t}", "public function getLogout()\n {\n if ($this->request->session()->has('logged-admin-user')) {\n $this->request->session()->forget('logged-admin-user');\n $this->request->session()->save();\n }\n return redirect()->action('Admin\\AdminController@getLogin');\n }", "public function getLogout() {\n \\Sentry::logout();\n return Redirect::route('admin.bejelentkezes');\n }", "function logout() {\n $this->simpleloginsecure->logout();\n redirect('pages/');\n //need to add flash data\n }", "public function logout() { \n \n session_destroy(); \n }", "public function logout()\n {\n unset( $_SESSION['login'] );\n ( new Events() )->trigger( 3, true );\n }", "public function logout()\r\n {\r\n unset($_SESSION['logged_user']);\r\n session_destroy();\r\n directTo(transRootConfig('app_config', 'app_login_index'));\r\n }", "public function logout() {\n $logout = $this->ion_auth->logout();\n\n // redirect them back to the login page\n redirect('login');\n }", "function logout()\n\t\t{\n\t\t\t$logout = $this->ion_auth->logout();\n\t\n\t\t\t//redirect them back to the page they came from\n\t\t\tredirect('main', 'refresh');\n\t\t}", "public function actionLogout()\n\t{\n\t\tYii::app()->user->logout();\n\t\t$this->redirect(Yii::app()->params['wwwdomain'].'/login');\n\t}", "public function actionLogout() {\n Yii::app()->user->logout(false);\n Yii::app()->user->setFlash('info', 'You are no longer logged in!');\n $this->redirect(Yii::app()->homeUrl);\n }", "public static function actionLogout() {\n unset($_SESSION['user']);\n header(\"Location: /\");\n }", "public function logout(){\n $new_token = sha1(TOKEN_SALT.$this->user->email.Utils::generate_random_string());\n\n # Create the data array we'll use with the update method\n # In this case, we're only updating one field, so our array only has one entry\n $data = Array(\"token\" => $new_token);\n\n # Do the update\n DB::instance(DB_NAME)->update(\"users\", $data, \"WHERE token = '\".$this->user->token.\"'\");\n\n # Delete their token cookie by setting it to a date in the past - effectively logging them out\n setcookie(\"token\", \"\", strtotime('-1 year'), '/');\n\n # Send them back to the main index.\n Router::redirect(\"/\");\n }", "public function logout(){\n session_destroy();\n $arr = array(\n 'sessionID' => ''\n );\n dibi::query('UPDATE `user` SET ', $arr, \n 'WHERE `email`=%s', $email);\n parent::redirection(\"index.php\");\n }", "public function logout(){\n\t\t$this->aauth->logout();\n\t\tredirect(BASEURL);\n\t}", "public function Action_Logout()\n {\n Zero_App::$Users->IsOnline = 'no';\n Zero_App::$Users->Save();\n Zero_Session::Unset_Instance();\n session_unset();\n session_destroy();\n Zero_Response::Redirect(ZERO_HTTP);\n }", "function adminLogout()\n{\t\n\t# check that the user is logged in \n\t# if not they get sent back to login screen as access is unauthorised to this function\n\tif(!isset($_SESSION['isLoggedIn']))\n\t{\n\t\theader('Location: ./messageAlert?messageId=14&forwardTo=adminLogin');\t\n\t\texit;\n\t}\n\t\n\t# if the user is logged in the SESSION variables get cleared and user is forwarded with a logout message\t\n\t//unset($_SESSION['adminUserName']);\n\t//unset($_SESSION['teamRegion']);\n\t//unset($_SESSION['isLoggedIn']);\n\n clearUserSession();\n\n\theader('Location: ./messageAlert?messageId=13&forwardTo=adminLogin');\n}", "public function actionLogout()\n {\n TSInit::$app->trader->logout();\n $this->goHome();\n }", "public function actionLogout() {\n Yii::app()->user->logout();\n $this->redirect(\"login\");\n }", "public function logout()\n\t{\n\t\t$this->session->sess_destroy();\n\t\tredirect('main');\n\t}", "public function Logout()\n\t{\n\t\t$this->user->Logout();\n\t\t$this->RedirectToController();\n\t}" ]
[ "0.87033063", "0.86347395", "0.85234123", "0.84890914", "0.84392357", "0.8413108", "0.8393605", "0.8390127", "0.8390127", "0.8380605", "0.83671147", "0.8320071", "0.8314548", "0.8304872", "0.8287633", "0.826724", "0.82507646", "0.82477576", "0.82421726", "0.8239293", "0.8225254", "0.8218508", "0.8209386", "0.81899434", "0.81895775", "0.8163215", "0.81281036", "0.81161326", "0.80463773", "0.8029956", "0.8026921", "0.8026921", "0.8026921", "0.8026921", "0.8026921", "0.8026921", "0.8026921", "0.8026921", "0.8026921", "0.8026921", "0.79926735", "0.7986495", "0.7955906", "0.7954834", "0.7953213", "0.7933483", "0.7933158", "0.7922431", "0.79152143", "0.7912521", "0.7904309", "0.79001576", "0.78850037", "0.7883913", "0.7878892", "0.78633416", "0.7859245", "0.7849895", "0.78495544", "0.7840215", "0.78303975", "0.7814717", "0.77999645", "0.777664", "0.77492094", "0.77490914", "0.7743686", "0.7739317", "0.7732639", "0.7721721", "0.7705275", "0.7702974", "0.76983047", "0.7693854", "0.76924795", "0.7688993", "0.76876575", "0.76842934", "0.7658699", "0.7646205", "0.76459444", "0.7642228", "0.76393", "0.76392204", "0.7638936", "0.7636974", "0.7634536", "0.76289433", "0.7626126", "0.762413", "0.7620532", "0.7614167", "0.761187", "0.76101166", "0.7606678", "0.76049477", "0.7604679", "0.76015764", "0.76009953", "0.76006484", "0.7596191" ]
0.0
-1
Initialize the class and set its properties.
public function __construct() { add_action('wp_enqueue_scripts', [$this, 'frontEndStyleScripts']); /** * Filter responsible for updating the User Listing template page title. * * @since 1.0.0 */ add_filter('pre_get_document_title', [$this, 'modifyUserListPageTitle'], 10, 1); /** * Filter responsible for rewriting the URL in your own pattern. * * @since 1.0.0 */ add_action('generate_rewrite_rules', [$this, 'rewriteURL']); /** * Filter responsible for registering query variable. * * @since 1.0.0 */ add_filter('query_vars', [$this, 'registerQueryVars'], 10); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function init() {\n\n\t\t$class = new self();\n\t\t$class->setup();\n\n\t}", "private function __construct() {\n\t\t$this->initialise();\n\t}", "protected function __construct()\n\t\t{\n\t\t\t$this->init();\n\t\t}", "protected function __construct()\n\t\t{\n\t\t\t$this->init();\n\t\t}", "function __construct( ) {\n $this->initialize( );\n }", "public function __construct() {\n $this->_initialize();\n }", "public function __construct() {\n\t\t\t$this->init();\n\t\t}", "public function __construct() {\n $this->init();\n }", "final private function __construct()\n {\n \t$this->init();\n }", "public function __construct() {\n\t\t$this->init();\n\t}", "protected function __construct()\n\t{\n\t\t$this->_init();\n\t}", "public function init(){}", "public function init(){}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public function init() {}", "public static function _init() {\n // this is called upon loading the class\n }", "public function init() {\n \n }", "public function init() {\n \n }", "public function init() {\n \n }", "public function initialize()\n {\n }", "public function initialize()\n {\n }", "public function init()\n {\n }", "public function init()\n {\n }", "public function init()\n {\n }", "public function init()\n {\n }", "public function init()\n {\n }", "public function init()\n {\n }", "public function init()\n {\n }", "public function init()\n {\n }", "public function init()\n {\n }", "public function init()\n {\n }", "public function init()\n {\n }", "public function init()\n {\n }", "public function init()\n {\n }", "public function _init(){}", "public function _init() {}", "public function initialize() {}", "public function initialize() {}", "public function initialize() {}", "public function initialize() {}", "public function initialize() {}", "public function initialize() {}", "public function initialize() {}", "public function initialize() {}", "public function initialize() {}", "public function initialize() {}", "public function initialize() {}", "public function __construct()\n {\n $this->init();\n }", "public function __construct()\n {\n $this->init();\n }", "public function init()\n {\n parent::init();\n $this->initClass();\n }", "public function __construct()\n\t{\n\t\tself::init();\n\t}", "protected function init()\n {\n }", "protected function init()\n {\n }", "protected function init()\n {\n }", "protected function init()\n {\n }", "protected function init()\n {\n }", "function __construct() {\n\t\tparent::__construct();\n\t\t$this->init();\n\t}", "public function __construct() {\n $this->init();\n }", "protected function initialize() {}", "protected function initialize() {}", "protected function initialize() {}", "protected function initialize() {}", "protected function initializeObject() {}", "public static function init()\n {\n }", "public function __construct()\n {\n $this->initClasses();\n }", "public function init() {\n\n // Set required classes for import.\n $this->setImport(array(\n $this->id . '.components.*',\n $this->id . '.components.behaviors.*',\n $this->id . '.components.dataproviders.*',\n $this->id . '.controllers.*',\n $this->id . '.models.*',\n ));\n\n // Set the required components.\n $this->setComponents(array(\n 'authorizer' => array(\n 'class' => 'RAuthorizer',\n 'superuserName' => $this->superuserName,\n ),\n 'generator' => array(\n 'class' => 'RGenerator',\n ),\n ));\n }", "public function init() {\n }", "public function init() {\n\t\t// use this method to initialize default values.\n\t}", "public function init() {\n\t\t// Overwrite/Extend in Sub-classes do not add anything here!\n\t\t// Use __constructor() or another method in __constructor().\n\t}", "public function init() {\n }", "public function init() {\n }", "public function init() {\n }", "public function init() {\n }", "public function init() {\n }", "public function init() {\n }", "public function init() {\n }", "public function init() {\n }", "public function init() {\n }", "public function init() {\n }", "public function init() {\n }", "public function init() {\n }", "public function init() {\n }", "public function init() {\n }" ]
[ "0.7864438", "0.77707934", "0.7737579", "0.7737579", "0.7729297", "0.77218574", "0.77197796", "0.7607664", "0.75575894", "0.7531894", "0.7526776", "0.74547434", "0.74547434", "0.74077255", "0.74077255", "0.74077255", "0.74077255", "0.74077255", "0.7406528", "0.7406528", "0.7406528", "0.7406528", "0.7406528", "0.7406528", "0.7406528", "0.7406528", "0.7406528", "0.7406528", "0.7406528", "0.7406528", "0.7406528", "0.7406528", "0.7406528", "0.74009037", "0.739579", "0.739579", "0.739579", "0.7395018", "0.7395018", "0.73693913", "0.73693913", "0.73682266", "0.7367833", "0.7367611", "0.7367611", "0.7367611", "0.7367611", "0.7367611", "0.7367611", "0.7367611", "0.7367611", "0.7367611", "0.73527867", "0.7350831", "0.7348705", "0.73482573", "0.73482573", "0.73476326", "0.73476326", "0.73476326", "0.73476326", "0.73476326", "0.7347079", "0.7347079", "0.7347079", "0.73467296", "0.73467296", "0.733106", "0.73278296", "0.73215616", "0.73215616", "0.73215616", "0.73215616", "0.73215616", "0.7315132", "0.7314031", "0.7296796", "0.7296796", "0.7296796", "0.7296796", "0.7288032", "0.72874963", "0.7272336", "0.726859", "0.7268516", "0.72636", "0.72587687", "0.7248495", "0.7248495", "0.7248495", "0.7248495", "0.7248495", "0.7248495", "0.7248495", "0.7248495", "0.7248495", "0.7248495", "0.7248495", "0.7248495", "0.7248495", "0.7248495" ]
0.0
-1
Load user data list template.
public function loadUsersTemplate(): void { /** * Filter responsible for adding the custom template for users listing. * * @since 1.0.0 */ add_action('template_redirect', [$this, 'userListTemplate']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function userListTemplate(): void\n {\n $page = get_query_var(self::CUSTOMPAGEVAR);\n if ($page === $this->customEndpoint()) {\n $data = self::FetchUsersData();\n $userListingTemplate = plugin_dir_path(dirname(__FILE__)) . \"views/listing-view/template-users-list.php\";\n $this->themeRedirect($userListingTemplate, true, $data);\n exit();\n }\n }", "protected function loadUserData()\n {\n $this->userData = ($this->session->userData?:[]) + $this->userDataTemplate;\n }", "public function all_londontec_users(){\n\n\t\t$headerData = null;\n\t\t$sidebarData = null;\n\t\t$page = 'admin/viewusers';\n\t\t$mainData = array(\n\t\t\t'pagetitle'=> 'londontec LMS users lists',\n\t\t\t'userslist' => $this->setting_model->Get_All('londontec_users'),\n\t\t);\n\t\t$footerData = null;\n\n\t\t$this->template($headerData, $sidebarData, $page, $mainData, $footerData);\n\t}", "function user_list()\n {\n if ($this->isAdmin() == TRUE) {\n $this->loadThis();\n } else {\n $this->global['pageTitle'] = '运营人员列表';\n $this->global['pageName'] = 'userlist';\n\n $data['searchType'] = '0';\n $data['searchName'] = '';\n\n $this->loadViews(\"user_manage/users\", $this->global, $data, NULL);\n }\n }", "public function userlist()\n {\n $users = array('users' => UserModel::getPublicProfilesOfAllUsers(),'dynatable'=>'userlist');\n $this->View->render('user/userlist',$users);\n }", "public function userlist()\n\t{\n\t\t$data['page']='Userlist';\n\t\t$data['users_list']=$this->users->get_many_by('userlevel_id',2);\n\t\t$view = 'admin/userlist/admin_userlist_view';\n\t\techo Modules::run('template/admin_template', $view, $data);\t\n\t}", "protected function createUsersList($data){\n\t\t\n\t\t// Set the state and tell plugins.\n\t\t$this->setState('CREATING_USER_TABLE');\n\t\t$this->notifyObservers();\n\t\t\n\t\t//Create new Table item\n\t\t$t = new Table();\n\t\t\n\t\t//Create new Table\n\t\t$t->createTable(\"Userslist\");\n\t\t\n\t\t//Sets intial row as headings\n\t\t$t->setHead(true);\n\t\t\n\t\t//Add the heading row.\n\t\t$t->addRow(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t\"Username\",\n\t\t\t\t\t\t\"Edit Option\",\n\t\t\t\t\t\t\"Delete Option\"\n\t\t\t\t\t)\t\t\t\t\t\n\t\t\t\t );\n\t\t\n\t\t//Loop Through each page\n\t\tfor($i = 0; $i < count($data); $i++)\n\t\t{\n\t\t\t//Add Page data for each row.\n\t\t\t$t->addRow(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t$data[$i],\n\t\t\t\t\t\t\"<a href='?system=Users&page=edit&active=\".$data[$i].\"'>Edit</a>\",\n\t\t\t\t\t\t\"<a href='?system=Users&page=delete&active=\".$data[$i].\"'>Delete</a>\",\t\t\t\t\t\n\t\t\t\t\t)\n\t\t\t\t );\n\t\t}\n\t\t\n\t\t//Creates a table from inserted data\n\t\t$t->runTable();\n\t\t\n\t\t//Returns the created table.\n\t\treturn $t->getTable();\n\t}", "public function list_user()\n\t{\n\t\tcheck_access_level_superuser();\n\t\t$data = [\n\t\t\t'list_user' => $this->user_m->get_cabang(),\n\t\t\t'list_cabang' => $this->data_m->get('tb_cabang')\n\t\t];\n\t\t$this->template->load('template2', 'user/list_user', $data);\n\t}", "public function loadTemplate()\n\t\t{\n\t\t}", "public function load_users () {\n // Check if user has permissions to view data\n if ( ! current_user_can( 'list_users' ) ) {\n return;\n }\n\n // Initial empty users data.\n $users_data = [];\n\n // Makes users query.\n $this->list_query_users();\n\n // If there anything in results, then prepare an array with formatted data for each table field.\n if ( $this->found_items ) {\n foreach ($this->found_items as $user) {\n $users_data[] = [\n 'user_name' => $user->user_login,\n 'user_link' => get_edit_user_link( $user->ID ),\n 'display_name' => $user->display_name,\n 'user_email' => $user->user_email,\n 'user_roles' => $this->format_roles( $user->roles )\n ];\n }\n }\n\n // Adds additional info for the response.\n $result['found_items'] = $users_data;\n $result['total_found'] = $this->total_found;\n $result['total_found_formatted'] = sprintf( _n( '%s item', '%s items', $this->total_found, 'ct-admin-list' ), number_format_i18n( $this->total_found ) );\n $result['total_pages'] = $this->total_pages;\n $result['total_pages_formatted'] = number_format_i18n( $this->total_pages );\n\n // Send response.\n wp_send_json( $result );\n }", "public function list_page_content () {\n // Check permissions\n if ( ! current_user_can( 'list_users' ) ) {\n return;\n }\n\n // Main listing query\n $this->list_query_users();\n\n // Set urls for column sorting links.\n $sort_link_username = $this->sort_link( 'user_name', $this->orderby, $this->order );\n $sort_link_displayname = $this->sort_link( 'display_name', $this->orderby, $this->order );\n\n // Include template\n include CTAL_PATH.'/admin/templates/users-page.php';\n }", "public function listUser() {\n\t\t$users = new Model_Users();\n\t\t$listeUsers = $users->listUsers();\n\t\trequire_once($_SERVER['DOCUMENT_ROOT'].\"/ecommerce/views/admin/users/liste_users.php\");\n\t}", "public function userList() {\n /** @var User[] $users */\n $users = $this->entityManager->getRepository(\"Entity\\\\User\")->findAll(); // Retrieve all User objects registered in database\n echo $this->twig->render('admin/lists/users.html.twig', ['users' => $users]);\n }", "public function lst(){\n\t\t$args = $this->getArgs();\n\t\t$uid = $_SESSION[\"user\"][\"uid\"];\n\t\t$base_url = substr($_SERVER[\"REQUEST_URI\"], 0, strrpos($_SERVER[\"REQUEST_URI\"], \"/\") + 1);\n\t\t$header = array(\n\t\t\t\tsprintf(\"%s\", Translate::get(Translator::USER_LIST_HEADER_ID)),\n\t\t\t\tsprintf(\"%s\", Translate::get(Translator::USER_LIST_HEADER_EMAIL)),\n\t\t\t\tsprintf(\"%s\", Translate::get(Translator::USER_LIST_HEADER_FNAME)),\n\t\t\t\tsprintf(\"%s\", Translate::get(Translator::USER_LIST_HEADER_LNAME)),\n\t\t\t\tsprintf(\"%s\", Translate::get(Translator::USER_LIST_HEADER_PHONE))\n\t\t);\n\t\t\n\t\t$config = array(\n\t\t\t\t\"config\" => array(\n\t\t\t\t\t\t\"page\" => (isset($args[\"GET\"][\"page\"]) ? $args[\"GET\"][\"page\"] : System::PAGE_ACTUAL_DEFAULT),\n\t\t\t\t\t\t\"column\" => (isset($args[\"GET\"][\"column\"]) ? $args[\"GET\"][\"column\"] : System::SORT_DEFAULT_COLUMN),\n\t\t\t\t\t\t\"direction\" => (isset($args[\"GET\"][\"direction\"]) ? $args[\"GET\"][\"direction\"] : System::SORT_DES),\n\t\t\t\t\t\t\"actual_pagesize\" => (isset($_SESSION[\"page_size\"]) ? $_SESSION[\"page_size\"] : System::PAGE_SIZE_DEFAULT),\n\t\t\t\t\t\t\"data_count\" => $this->getModel()->getCountUserList(),\n\t\t\t\t\t\t\"disable_menu\" => true,\n\t\t\t\t\t\t\"disable_select\" => true,\n\t\t\t\t\t\t\"disable_pagging\" => false,\n\t\t\t\t\t\t\"disable_set_pagesize\" => false\n\t\t\t\t),\n\t\t\t\t\"form_url\" => array(\n\t\t\t\t\t\t\"page\" => $base_url . \"-%d-%d-%s\",\n\t\t\t\t\t\t\"header_sort\" => $base_url . \"-%d-%d-%s\",\n\t\t\t\t\t\t\"form_action\" => $base_url\n\t\t\t\t),\n\t\t\t\t\"item_menu\" => array(),\n\t\t\t\t\"select_item_action\" => array(),\n\t\t\t\t\"style\" => array(\n\t\t\t\t\t\t\"marked_row_class\" => \"marked\",\n\t\t\t\t\t\t\"count_box_class\" => \"count_box\",\n\t\t\t\t\t\t\"pagging_box_class\" => \"pagging_box\",\n\t\t\t\t\t\t\"actual_page_class\" => \"actual_page\",\n\t\t\t\t\t\t\"table_header_class\" => \"head\",\n\t\t\t\t\t\t\"table_id\" => \"user_lst\",\n\t\t\t\t\t\t\"select_form_id\" => \"\",\n\t\t\t\t\t\t\"pagesize_form_id\" => \"pagesize_box\",\n\t\t\t\t\t\t\"list_footer_id\" => \"\"\n\t\t\t\t)\n\t\t);\n\t\t$data = $this->getModel()->getUserList($config[\"config\"][\"page\"], $config[\"config\"][\"actual_pagesize\"], $config[\"config\"][\"column\"], $config[\"config\"][\"direction\"], $config[\"config\"][\"disable_pagging\"]);\n\t\t$out = Paginator::generatePage($header, $data, $config);\n\t\tinclude 'gui/template/UserTemplate.php';\n\t}", "public function _list()\n\t{\n\t\t_root::getRequest()->setAction('list');\n\t\t$tUsers = model_user::getInstance()->findAll();\n\n\t\t$oView = new _view('users::list');\n\t\t$oView->tUsers = $tUsers;\n\t\t$oView->showGroup = true;\n\t\t$oView->title = 'Tous les utilisateurs';\n\n\t\t$this->oLayout->add('work', $oView);\n\t}", "public function load() {\n\t\t$this -> template = TemplateManager::load(\"ForumPreference\");\n\t\t$this -> template -> insert(\"profileImage\", $this -> user -> getProfileImage());\n\t\t$this -> template -> insert(\"signature\", $this -> user -> getSignature());\n\t\t$this -> display();\n\t}", "function getUserList(){\r\n\treturn $ul = simplexml_load_file(\"data/userList.xml\");\r\n}", "public function load($param = null)\n {\n try\n {\n\n $initial = $param['initial'];\n\n $users = User::all($initial);\n \n $items = '';\n foreach ($users as $user)\n { \n $item = file_get_contents('html/item.html');\n $item = str_replace( '{id}', $user['id'], $item);\n $item = str_replace( '{name}', $user['name'], $item);\n $item = str_replace( '{address}', $user['address'], $item);\n $item = str_replace( '{email}', $user['email'], $item);\n \n \n $items .= $item;\n }\n $this->html = str_replace('{items}', $items, $this->html);\n }\n catch (Exception $e)\n {\n print $e->getMessage();\n }\n }", "public function load() {\n\t\tif ($this -> user -> getRights() < 2) {\n\t\t\techo \"Permission denied.\";\n\t\t\treturn;\n\t\t}\n\t\t$this -> configure();\n\t\t$this -> template = TemplateManager::load(\"AdministratorPreferences\");\n\t\t$this -> template -> insert(\"worlds\", $this -> getWorlds());\n\t\t$this -> template -> insert(\"configs\", $this -> getConfigs());\n\t\t$this -> display();\n\t}", "public function user_list()\n\t\t{\n\t\t\t$this->is_login();\n\t\t\t$this->load->model('User_Profiles', 'up');\n\t\t\t$data['users'] = $this->up->get_all_users();\n\t\t\t$this->load->view('user_list-admin',$data);\n\t\t}", "public function renderDefault()\n {\n $this->template->users = $this->users->findAll();\n }", "protected function LoadData()\n\t{\n\t\t$head = $this->GetProject()->GetHeadCommit();\n\t\t$this->tpl->assign(\"head\",$head);\n\n\t\t$this->tpl->assign('page', $this->params['page']);\n\t\t$skip = $this->params['page'] * 100;\n\n\t\t$headlist = $this->GetProject()->GetHeadList()->GetOrderedHeads('-committerdate', 101, $skip);\n\t\tif (isset($headlist) && (count($headlist) > 0)) {\n\t\t\tif (count($headlist) > 100) {\n\t\t\t\t$headlist = array_slice($headlist, 0, 100);\n\t\t\t\t$this->tpl->assign('hasmoreheads', true);\n\t\t\t}\n\t\t\t$this->tpl->assign(\"headlist\", $headlist);\n\t\t}\n\t}", "function users(){\n\t\t\t$this->data[\"vista\"]\t=\t\"modules/administration/users\";\n\t\t\t$this->load->view(\"templates/template_main\", $this->data);\n\t\t}", "protected function loadHTMLTemplates() {\n parent::loadHTMLTemplates();\n if (!$this->isPost() || $this->creatingNewUser() ) {\n $postfix = '';\n $access = get_class(I2CE::getUserAccess());\n if ($access && ($pos = strpos($access,'I2CE_UserAccess_')) !== false) {\n $postfix = substr($access,15);\n }\n $node = $this->template->loadFile( \"user_form{$postfix}.html\" ,'table');\n if (!$node instanceof DOMNode) {\n return true;\n }\n if (! ($usernodes = $this->template->getElementById('form',$node)) instanceof DOMNode) {\n return true;\n } \n if (! ($trNode = $this->template->getElementById('user_fields')) instanceof DOMNode) {\n return true;\n }\n while ($usernodes->hasChildNodes()) {\n $trNode->appendChild($usernodes->firstChild );\n }\n $this->template->setAttribute( 'display_style', 'user_map',\n null, \"//span[@name='user:role']\", $node );\n } \n \n if ($this->creatingNewUser() ) { \n $this->template->removeNodeById('existing_user');\n $this->template->removeNodeById('list_fields'); \n } else {\n if ($this->getPrimary()->getField('username')->isValid() || $this->isPost()) { //a user name is set, \n $this->template->removeNodeById('create_user');\n $this->template->removeNodeById('create_user_fields');\n } \n }\n if ($this->isPost()) {\n if (!$this->request_exists('user_choice') || !$this->request('user_choice') == 'new') {\n $val = 'existing';\n } else {\n $val = 'new';\n }\n foreach ($this->template->query('//input[@name=\"user_choice\" and @type=\"radio\"]') as $n) {\n if ($n->getAttribute('value') != $val) {\n $this->template->removeNode($n);\n continue;\n }\n $n->removeAttribute('checked');\n $n->setAttribute('type','hidden'); \n }\n } else if ($this->getPrimary()->getField('username')->isValid()) {\n foreach ($this->template->query('//input[@name=\"user_choice\" and @type=\"radio\"]') as $n) {\n if ($n->getAttribute('value') != 'existing') {\n $this->template->removeNode($n);\n continue;\n }\n $n->removeAttribute('checked');\n $n->setAttribute('type','hidden'); \n }\n }\n return true;\n }", "public function load()\n\t{\n\t\t$this->list_table->load();\n\t}", "private function loadTemplate() {\n\t\t\tinclude('template.inc.php');\n\t\t\t$this->mainTemplate = new Template();\n\t\t\t$this->mainTemplate->readTpl('main');\n\t\t}", "function loadPage($template, $data = null)\n {\n $data['template_name'] = $template;\n $data['data'] = $data;\n // $data \t\t\t\t\t\t= \thtml_escape($this->security->xss_clean($data));\n $this->load->view('user/user_master-template', $data);\n }", "public static function loadTemplateData()\n {\n $templateId = 0;\n $app = Factory::getApplication();\n\n if ($app->isClient('site'))\n {\n $currentTemplate = $app->getTemplate(true);\n $templateId = $currentTemplate->id ?? 0;\n\n\t\t\t/**\n\t\t\t * If a page/menu is assigned to a specific template\n\t\t\t * then get the template ID.\n\t\t\t */\n\t\t\t$activeMenu = $app->getMenu()->getActive();\n\n\t\t\tif (!empty($activeMenu) && !empty($activeMenu->template_style_id))\n\t\t\t{\n\t\t\t\t$templateId = $activeMenu->template_style_id;\n\t\t\t}\n }\n else\n {\n if ($app->input->get('option') === 'com_ajax' && $app->input->get('helix') === 'ultimate')\n {\n $templateId = $app->input->get('id', 0, 'INT');\n }\n }\n\n\t\tif (empty($templateId))\n\t\t{\n\t\t\t$templateId = $app->input->get('helix_id', 0, 'INT');\n\t\t}\n\n if($templateId)\n {\n $template = [];\n\n $draftKeyOptions = [\n 'option' => 'com_ajax',\n 'helix' => 'ultimate',\n 'status' => 'draft',\n 'id' => $templateId\n ];\n\n $draftKey = self::generateKey($draftKeyOptions);\n $cache = new HelixCache($draftKey);\n\n /**\n * Check the fetch destination. If it is iframe then load the settings\n * from draft, otherwise if it is document that means this request\n * comes from the original site visit. So load from saved cache.\n */\n $requestFromIframe = $app->input->get('helixMode', '') === 'edit';\n \n if ($cache->contains() && $requestFromIframe)\n {\n $template = $cache->loadData();\n }\n else\n {\n $keyOptions = [\n 'option' => 'com_ajax',\n 'helix' => 'ultimate',\n 'status' => 'init',\n 'id' => $templateId\n ];\n \n $key = self::generateKey($keyOptions);\n $cache->setCacheKey($key);\n \n if ($cache->contains())\n {\n $template = $cache->loadData();\n }\n else\n {\n $template = self::getTemplateStyle($templateId); \n }\n }\n\n\t\t\tif (isset($template->template) && !empty($template->template))\n\t\t\t{\n\t\t\t\tif (!empty($template->params) && \\is_string($template->params))\n\t\t\t\t{\n\t\t\t\t\t$template->params = new Registry($template->params);\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * If params field is found empty in the database or cache then\n\t\t\t\t * read the default options.json file from the template and assign\n\t\t\t\t * the options as template params.\n\t\t\t\t */\n\t\t\t\telseif (empty($template->params))\n\t\t\t\t{\n\t\t\t\t\t$filePath = JPATH_ROOT . '/templates/' . $template->template . '/' . 'options.json';\n\n\t\t\t\t\tif (\\file_exists($filePath))\n\t\t\t\t\t{\n\t\t\t\t\t\t$defaultParams = \\file_get_contents($filePath);\n\t\t\t\t\t\t$template->params = new Registry($defaultParams);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$template->params = new Registry;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn $template;\n\t\t\t}\n }\n\n $template = new \\stdClass;\n $template->template = 'system';\n $template->params = new Registry;\n\n return $template;\n }", "public function userlistAction()\n\t{\n\t\t$users = $this->userService->getUserList(array(), false);\n\n\t\t$this->view->roles = za()->getUser()->getAvailableRoles();\n\t\t$this->view->users = $users;\n\t\t$this->renderView('admin/user-list.php');\n\t}", "protected function _loadTemplates()\n {\n $this->_tpl = array();\n $dir = Solar_Class::dir($this, 'Data');\n $list = glob($dir . '*.php');\n foreach ($list as $file) {\n \n // strip .php off the end of the file name to get the key\n $key = substr(basename($file), 0, -4);\n \n // load the file template\n $this->_tpl[$key] = file_get_contents($file);\n \n // we need to add the php-open tag ourselves, instead of\n // having it in the template file, becuase the PEAR packager\n // complains about parsing the skeleton code.\n // \n // however, only do this on non-view files.\n if (substr($key, 0, 4) != 'view') {\n $this->_tpl[$key] = \"<?php\\n\" . $this->_tpl[$key];\n }\n }\n }", "function loadUsersListPage()\n {\n $this->get('/usuarios')\n ->assertStatus(200)\n ->assertSee('Listado de usuarios')\n ->assertSee('Javier')\n ->assertSee('Francisco');\n }", "protected function loadUsers() {\r\n $this->users = new \\App\\Table\\UserTable(App::getInstance()->getDb());\r\n }", "public function loadTemplate()\n {\n return json_decode(file_get_contents(app_path(self::BASE_TEMPLATE_PATH)), true);\n }", "public function lista2() { // Aqui define o ação: /users/lista\n $usuarios = new Users(); // Aqui carrega o model: Users\n $dados['usuarios'] = $usuarios->getUsuarios();\t\n if(isset($_GET['id']) && !empty($_GET['id'])) {\t\n $this->loadTemplate('usuario', $dados);\n }\n }", "public function create_londontec_users(){\n\n\t\t$headerData = null;\n\t\t$sidebarData = null;\n\t\t$page = 'admin/adduser';\n\t\t$mainData = array(\n\t\t\t'pagetitle'=> 'Create Londontec New users',\n\t\t);\n\t\t$footerData = null;\n\n\t\t$this->template($headerData, $sidebarData, $page, $mainData, $footerData);\n\t}", "function listuser(){\n\t\t\tif(!empty($_GET['paginado'])){\n\t\t\t\t$pag = $_GET['paginado'];\n\t\t\t\t$list = $this -> model -> selectuser($pag);\n\t\t\t}else{\n\t\t\t\t$list = $this -> model -> selectuser();\n\t\t\t}\n\t\t\t$this -> ajax_set($list);\n\t\t}", "function listUsers()\n{\n require_once($_SERVER[\"DOCUMENT_ROOT\"].\"/config/config.php\");\n require_once($_SERVER[\"DOCUMENT_ROOT\"].\"/class/autoload.php\");\n require_once($_SERVER[\"DOCUMENT_ROOT\"].\"/vendor/autoload.php\");\n $db = new cMariaDb($Cfg);\n\n // Generateur de templates\n $tpl = new Smarty();\n $tpl->template_dir = $_SERVER[\"DOCUMENT_ROOT\"].\"/tools/templates\";\n $tpl->compile_dir = $_SERVER[\"DOCUMENT_ROOT\"].\"/templates_c\";\n\n $sSQL = \"SELECT id, sNom, sPrenom, sEmail, sTelMobile, sLogin FROM sys_user WHERE bActive=1 ORDER BY sNom, sPrenom;\";\n\n // Récupérer les éléments \n $tpl->assign(\"Users\",$db->getAllFetch($sSQL));\n $sHtml = $tpl->fetch(\"editUsers.smarty\");\n return [\"Errno\" => 0, \"html\" => $sHtml ];\n}", "public static function get_user_data()\n {\n }", "public static function setTemplateData()\n\t{\n\n\t\tself::$templateData = array();\n\n\t\t// Request values\n\t\tself::$templateData['get'] = $_GET;\n\t\tself::$templateData['post'] = $_POST;\n\n\t\t// Config values\n self::$templateData['config'] = array();\n foreach( get_class_vars( 'Kiki\\Config' ) as $configKey => $configValue )\n {\n\t\t\t// Lame security check, but better safe than sorry until a proper\n\t\t\t// audit has been done that in no way unauthorised user content get\n\t\t\t// parsed as template itself, through parsing recursion or otherwise. \n\t\t\t// Should mostly be careful about direct assignment of any of it to\n\t\t\t// 'content'.\n if ( !preg_match( '~(^db|pass|secret)~i', $configKey ) )\n self::$templateData['config'][$configKey] = $configValue;\n }\n\n if ( Config::$customCss )\n self::$templateData['stylesheets'] = array( Config::$customCss );\n\n\t\t// Is that all we want?\n self::$templateData['server'] = array(\n 'host' => $_SERVER['HTTP_HOST'] ?? null,\n 'name' => $_SERVER['SERVER_NAME'] ?? null,\n 'requestUri' => $_SERVER['REQUEST_URI'] ?? null,\n );\n\n self::$templateData['user'] = self::$user ? self::$user->templateData() : null;\n\n\t\t// Account service(s). Although multiple routing entries are technically\n\t\t// possible, templateData currently only populates one: the first found or else\n\t\t// the internal fallback in the Kiki controller.\n\t\t// FIXME: disabled for now, this shouldn't be db-populated anyway\n\t\t// $accountServices = array_values( Router::getBaseUris('account') );\n\t\t$baseUri = isset($accountServices[0]) ? $accountServices[0]->base_uri : Config::$kikiPrefix. \"/account\";\n\t\t$title = isset($accountServices[0]) ? $accountServices[0]->title : _(\"Account\");\n\t\tself::$templateData['accountService'] = array( 'url' => $baseUri, 'title' => $title );\n\t\t\n\t\t// Active connections. Only typing laziness explains why this isn't simply in {$user.connections}.\n self::$templateData['activeConnections'] = array();\n\n $connectedServices = array();\n if ( self::$user )\n {\n foreach( self::$user->connections() as $connection )\n {\n self::$templateData['activeConnections'][] = array(\n 'serviceName' => $connection->serviceName(),\n 'screenName' => $connection->screenName(),\n 'userName' => $connection->name(),\n 'pictureUrl' => $connection->picture()\n );\n\n $connectedServices[] = $connection->serviceName();\n }\n }\n\n // Log::debug( \"user cons: \". print_r(self::$user->connections(),true) );\n\n // Inactive connections. Might as well be in {$user) as well,\n // potentially in {$user.connections} with an {active} switch, although\n // the separation at this level is not the worst.\n\n // Log::debug( \"config: \". print_r(Config::$connectionServices, true) );\n // Log::debug( \"connected: \". print_r($connectedServices,true) );\n\n foreach( Config::$connectionServices as $name )\n {\n if ( !in_array( $name, $connectedServices ) )\n {\n $connection = ConnectionService\\Factory::getInstance($name);\n self::$templateData['inactiveConnections'][] = array( 'serviceName' => $connection->name(), 'loginUrl' => $connection->loginUrl() );\n }\n }\n\n // @todo Allow starttime and execution time from Log(::init) to be\n // queried and assign them. Just in case someone wants to output it in\n // a template.\n\n self::$templateData['now'] = time();\n }", "public function userlist()\n {\n $filter = Param::get('filter');\n\n $current_page = max(Param::get('page'), SimplePagination::MIN_PAGE_NUM);\n $pagination = new SimplePagination($current_page, MAX_ITEM_DISPLAY);\n $users = User::filter($filter);\n $other_users = array_slice($users, $pagination->start_index + SimplePagination::MIN_PAGE_NUM);\n $pagination->checkLastPage($other_users);\n $page_links = createPageLinks(count($users), $current_page, $pagination->count, 'filter=' . $filter);\n $users = array_slice($users, $pagination->start_index -1, $pagination->count);\n \n $this->set(get_defined_vars());\n }", "function getUsers(){\n\t\t$this->users = $this->fileHandler->parseRows($this->userFile, '^', '|');\n\t\t$this->logMsg(SUCCESS, 'users generated');\n\t}", "public function load( $folder, $file_name, $data = array()) \r\n {\r\n if( is_array($data) ) {\r\n extract($data);\r\n }\r\n\t //Instantiating our user object\r\n\t $u = new user();\r\n\t //show the view\r\n include 'views/' . $folder . '/' . $file_name . '.php' ;\r\n }", "public function loadData(){\r\n\t\t\t $pseudo = addslashes($this -> getPseudo()) ;\r\n\r\n\t\t if(! empty($pseudo)){\r\n\t\t\t$q = \"select * from UserTab where User_pseudo='\".$pseudo.\"'\";\r\n\t\t\t$r = execute($q);\r\n\t\t\twhile( $l = mysql_fetch_assoc($r) ){\r\n\t\t\t\t$this -> setFields($l);//Affectation aux champs de l'objet UserTab \r\n\t\t\t}\r\n\t\t }\r\n\r\n\t }", "protected function users() {\n\t\t// Get users.\n\t\t$users = $this->Users->getAll();\n\n\t\t// Prepare data for contents.\n\t\tnonce_generate();\n\t\t$data = array(\n\t\t\t'users' =>& $users\n\t\t);\n\n\t\t$this->title = PROJECT_NAME;\n\t\t$this->content = $this->View->getHtml('content-users', $data, $this->title);\n\t}", "public function view_user_data()\n {\n $data['user'] = $this->Admin_Insert->userlist_data();\n $data['user_address'] = $this->Admin_Insert->useraddress_data();\n $this->load->view('header');\n $this->load->view('footer');\n $this->load->view('user_details', $data);\n }", "public function admin_user_list() {\n $this->paginate = array(\n 'limit' => 10,\n 'order' => array('User.created' => 'desc' ),\n 'conditions' => array('User.status' => 1),\n );\n $data = $this->paginate('User');\n $this->set('user', $data);\n $this->render('/Users/user_list');\n }", "function view($data)\n{\n\t\t\n\tstartOfPage();\n\tstartContent();\t\n\t$users = $data[\"users\"];\n\techo '<table><tr><th>USERNAME</th><th>EMAIL</th></tr>';\n\tif (!empty($users))\n\t{\n\tforeach ($users as $user)\n\t\t{\n\t\techo '<tr><td>',$user[\"username\"],'</td>';\n\t\techo '<td>',$user[\"email\"],'</td></tr>';\n\t\t}\n\n }\n echo '</table>';\n\tendContent();\n\tendOfPage();\n\n}", "public function loadFriendsList() {\n\t\t$this -> template = TemplateManager::load(\"StyledTable\");\n\t\t$this -> template -> insert(\"title\", \"Friends List\");\n\t\t$friends = $this -> user -> getContactManager() -> getFriends();\n\t\t$table = \"\";\n\t\t$online = array();\n\t\t$offline = array();\n\t\tforeach($friends as $friend) {\n\t\t\t$owner = User::getByName($friend);\n\t\t\tif (!$owner) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (!$owner -> isOnline()) {\n\t\t\t\t$offline[$owner -> getUid()] = $owner;\n\t\t\t} else {\n\t\t\t\t$online[$owner -> getUid()] = $owner;\n\t\t\t}\n\t\t}\n\t\tforeach ($online as $owner) {\n\t\t\t$table .= \"<tr class=\\\"online\\\">\n\t\t\t<td class=\\\"name\\\"><span class='username' style=''>\" . $owner -> getModule(\"UserTools\") -> getFormatUsername(true) . \"</span></td>\n\t\t\t<td class=\\\"world\\\"> World \" . $owner -> getLastWorld() . \"</td></tr>\";\n\t\t}\n\t\tforeach ($offline as $owner) {\n\t\t\t$table .= \"<tr class=\\\"offline\\\">\n\t\t\t<td class=\\\"name\\\"><span class='username' style='color: #9fabbf; '>\" . $owner -> getModule(\"UserTools\") -> getFormatUsername(true) . \"</span></td>\n\t\t\t<td class=\\\"world\\\">Offline</td></tr>\";\n\t\t}\n\t\tif ($table == \"\") {\n\t\t$table = \"You don't have any friends in your contact list. Add friends in-game for them to appear here.\";\n\t\t}\n\t\t$this -> template ->insert(\"icon\", \"user\");\n\t\t$this -> template -> insert(\"table\", $table);\n\t\t$this -> display();\n\t}", "function index()\n {\n\t$data = $this->page_settings('default', NULL, NULL, 'Users', 'users');\n\t$this->templates->backend($data);\n }", "public function _loadData()\n\t{\n\t\t$this->username = $this->_admin->username;\n\t\t$this->oldPassword = '';\n\t\t$this->last_name = $this->_admin->last_name;\n\t\t$this->first_name = $this->_admin->first_name;\n\t}", "function userListing()\n {\n if($this->isAdmin() == TRUE)\n {\n $this->loadThis();\n }\n else\n { \n $searchText = $this->security->xss_clean($this->input->post('searchText'));\n $data['searchText'] = $searchText;\n \n $this->load->library('pagination');\n \n $count = $this->user_model->userListingCount($searchText);\n\n\t\t\t$returns = $this->paginationCompress ( \"userListing/\", $count, 5 );\n \n $data['userRecords'] = $this->user_model->userListing($searchText, $returns[\"page\"], $returns[\"segment\"]);\n \n $this->global['pageTitle'] = 'Garuda Informatics : User Listing';\n \n $this->loadViews($this->view.\"users\", $this->global, $data, NULL);\n }\n }", "public function index()\n {\n $UserLocated = $this->UserData->FUserLogedInData(); \n\n $dados = [\n 'titulo' => 'WarnerAcademy | My Profile.',\n 'UserData' =>$UserLocated\n ]; \n \n \n /* Se nao Estiver Logado Mostrar a Home Page como Default.*/\n $template = $this->twig->loadTemplate('MyProfile.html');\n $template->display($dados); \n }", "function index(){\n\n \n $users = $this->User_model->all();\n\n $data = array();\n $data['users'] = $users;\n\n $this->load->view('list', $data);\n }", "public function lista() { // Aqui define o ação: /users/lista\n $usuarios = new Users(); // Aqui carrega o model: Users\n $dados['usuarios'] = $usuarios->getUsuarios();\t\n if(isset($_GET['id']) && !empty($_GET['id'])) {\t\n $this->loadTemplate('user_contact', $dados);\n }else { $this->loadTemplate('users_list', $dados);\n }\n }", "function index()\n {\n $data['teachers'] = $this->model->getUsers( 'teacher' );\n $data['parents'] = $this->model->getUsers( 'parent' );\n\n $this->template( 'guidance/user/index', $data );\n }", "function show_list() {\n\t\tif(!has_permission(3)) {\n\t\t\tset_warning_message('Sory you\\'re not allowed to access this page.');\n\t\t\tredirect('global/dashboard');\n\t\t\texit;\n\t\t}\n\t\t\n\t\t$this->output_head['function'] = __FUNCTION__;\n\n\t\t$this->output_head['style_extras'] = array(assets_url() . '/plugins/datatables/dataTables.bootstrap.css');\n\t\t$this->output_head['js_extras'] = array(assets_url() . '/plugins/datatables/jquery.dataTables.min.js',\n\t\t\t\t\t\t\t\t\t\t\t\tassets_url() . '/plugins/datatables/dataTables.bootstrap.min.js');\n\t\t$this->output_head['js_function'] = array();\n\t\t$this->load->model('user_model');\n\t\t\n\t\t$this->load->view('global/header', $this->output_head);\n\t\t\n\t\t$this->output_data['title'] = 'Users Manager';\n\t\t$this->load->view('users', $this->output_data);\n\t\t$this->load->view('global/footer');\n\t}", "public function prepareData()\r\n {\r\n $users_model = new UsersModel();\r\n $users_all = $users_model->getAll(true, false, 'C_FULLNAME');\r\n $users = Groups::getUsers($this->group_id, 'C_FULLNAME');\r\n $users_include = array();\r\n \tforeach ($users as $user_info) {\r\n \t\t$users_include[$user_info['U_ID']] = array(\r\n \t\t\t$user_info['U_ID'],\r\n \t\t\t$user_info['C_FULLNAME']\r\n \t\t);\r\n \t} \r\n \t$users_exclude = array();\r\n \tforeach ($users_all as $user_info) {\r\n \t\tif (!isset($users_include[$user_info['U_ID']])) {\r\n\t \t\t$users_exclude[] = array(\r\n\t \t\t\t$user_info['U_ID'],\r\n\t \t\t\t$user_info['C_FULLNAME']\r\n\t \t\t);\r\n \t\t}\r\n \t}\r\n \t$this->smarty->assign('group_id', $this->group_id);\r\n \t$this->smarty->assign('users_in', json_encode(array_values($users_include)));\r\n \t$this->smarty->assign('users_out', json_encode($users_exclude)); \r\n }", "public static function listItemsTpl()\n {\n extract(FeedPage::$var);\n?>\n<?php include(\"tpl/list_items.tpl.php\"); ?>\n<?php\n }", "public function getList()\n\t{\n\t\t//\n\t\t$user = Auth::user();\n\t\t\n\t\t$disableChange = DEFAULT_0;\n\t\t$headerShop = AuthController::checkUserURL();\n\t\tif ( empty($headerShop) ) {\n\t\t\treturn View::make('admin.manage.user.user', compact('user', 'disableChange'));\n\t\t} else {\n\t\t\treturn View::make('admin.manage.user.user', compact('headerShop', 'user', 'disableChange'));\n\t\t}\n\t}", "function index() {\n $this->acl->validate_read();\n $menu_name = lang('master').' '.lang('user');\n $data = array();\n\n if($this->input->post('submit'))\n {\n $data['records'] = $this->m_user->get_data($this->input->post());\n\n $view = $this->load->view('dashboard/user/list_data', $data, TRUE);\n return LOAD_VIEW($view);\n }\n\n LOAD_NAVBAR($menu_name);\n $data['utype'] = $this->m_user->dd_utype();\n $data['status'] = DD_STATUS_USER();\n $this->template->write_view('content', 'dashboard/user/index', $data, TRUE);\n $this->template->render();\n }", "public function list() {\n $users = User::orderBy('name')->paginate(10);\n $repository = new Repository(compact('users'));\n \n $layout = Layout::blank([\n Layout::view('vendor.platform.users.list')\n ]);\n \n return $layout->build($repository);\n }", "public function list ()\n {\n if (User::isLoggedIn() && User::getLoggedInUser()->is_admin === true) {\n\n // Alle User aus der DB laden\n $users = User::all();\n\n // Passenden View laden und User übergeben\n View::load('admin/users', [\n 'users' => $users\n ]);\n } else {\n \n // Wenn kein User eingeloggt ist, dann leider wir auf die Login Seite \n header(\"Location: login\");\n }\n }", "public function ListView()\n\t{\n\t\tif($this->GetCurrentUser())\n\t\t{\t\t\t\t\t\t\n\t\t\t//require 'translate/en.php';\n\t\t\t$lang=file_get_contents('libs/translate/en.php');\n\t\t\t$this->Assign(\"currentUser\", $this->GetCurrentUser());\n\t\t\t$this->Assign(\"lang\",$lang);\n\t\t\t$this->Render();\n\t\t}else{\t\t\t\n\t\t\t$this->Render('Login');\t\n\t\t}\n\t}", "public function allUsers()\n\t{\n\t\t$data['users'] = $this->MainModel->selectAll('users', 'first_name');\n\t\t$this->load->view('layout/header');\n\t\t$this->load->view('layout/sidebar');\n\t\t$this->load->view('template/all-users', $data);\n\t\t$this->load->view('layout/footer');\n\t}", "public function display_usertemplates_table() {\n global $CFG, $USER, $OUTPUT;\n\n require_once($CFG->libdir.'/tablelib.php');\n\n $candownloadutemplates = has_capability('mod/surveypro:downloadusertemplates', $this->context);\n $candeleteutemplates = has_capability('mod/surveypro:deleteusertemplates', $this->context);\n\n // Begin of: $paramurlbase definition.\n $paramurlbase = array();\n $paramurlbase['id'] = $this->cm->id;\n // End of $paramurlbase definition.\n\n $deletetitle = get_string('delete');\n $iconparams = ['title' => $deletetitle];\n $deleteicn = new \\pix_icon('t/delete', $deletetitle, 'moodle', $iconparams);\n\n $importtitle = get_string('exporttemplate', 'mod_surveypro');\n $iconparams = ['title' => $importtitle];\n $importicn = new \\pix_icon('t/download', $importtitle, 'moodle', $iconparams);\n\n $table = new \\flexible_table('templatelist');\n\n $paramurl = ['id' => $this->cm->id];\n $baseurl = new \\moodle_url('/mod/surveypro/utemplate_manage.php', $paramurl);\n $table->define_baseurl($baseurl);\n\n $tablecolumns = array();\n $tablecolumns[] = 'templatename';\n $tablecolumns[] = 'sharinglevel';\n $tablecolumns[] = 'timecreated';\n $tablecolumns[] = 'actions';\n $table->define_columns($tablecolumns);\n\n $tableheaders = array();\n $tableheaders[] = get_string('templatename', 'mod_surveypro');\n $tableheaders[] = get_string('sharinglevel', 'mod_surveypro');\n $tableheaders[] = get_string('timecreated', 'mod_surveypro');\n $tableheaders[] = get_string('actions');\n $table->define_headers($tableheaders);\n\n $table->sortable(true, 'templatename'); // Sorted by templatename by default.\n $table->no_sorting('actions');\n\n $table->column_class('templatename', 'templatename');\n $table->column_class('sharinglevel', 'sharinglevel');\n $table->column_class('timecreated', 'timecreated');\n $table->column_class('actions', 'actions');\n\n $table->set_attribute('id', 'managetemplates');\n $table->set_attribute('class', 'generaltable');\n $table->setup();\n\n $options = $this->get_sharinglevel_options();\n\n $templates = new \\stdClass();\n foreach ($options as $sharinglevel => $unused) {\n $parts = explode('_', $sharinglevel);\n $contextlevel = $parts[0];\n\n $contextid = $this->get_contextid_from_sharinglevel($sharinglevel);\n $contextstring = $this->get_contextstring_from_sharinglevel($contextlevel);\n $templates->{$contextstring} = $this->get_available_templates($contextid);\n }\n\n $virtualtable = $this->get_virtual_table($templates, $table->get_sql_sort());\n\n $row = 0;\n foreach ($templates as $contextstring => $contextfiles) {\n foreach ($contextfiles as $xmlfile) {\n $tablerow = array();\n\n $xmlfileid = $virtualtable[$row]['xmlfileid'];\n $templatename = $virtualtable[$row]['templatename'];\n $tmpl = new usertemplate_name($xmlfileid, $templatename);\n\n $tablerow[] = $OUTPUT->render_from_template('core/inplace_editable', $tmpl->export_for_template($OUTPUT));\n $tablerow[] = $virtualtable[$row]['sharinglevel'];\n $tablerow[] = userdate($virtualtable[$row]['creationdate']);\n\n $paramurlbase['fid'] = $virtualtable[$row]['xmlfileid'];\n $row++;\n\n $icons = '';\n // SURVEYPRO_DELETEUTEMPLATE.\n if ($candeleteutemplates) {\n if ($xmlfile->get_userid() == $USER->id) { // Only the owner can delete his/her template.\n $paramurl = $paramurlbase;\n $paramurl['act'] = SURVEYPRO_DELETEUTEMPLATE;\n $paramurl['sesskey'] = sesskey();\n\n $link = new \\moodle_url('/mod/surveypro/utemplate_manage.php', $paramurl);\n $icons .= $OUTPUT->action_icon($link, $deleteicn, null, ['title' => $deletetitle]);\n }\n }\n\n // SURVEYPRO_EXPORTUTEMPLATE.\n if ($candownloadutemplates) {\n $paramurl = $paramurlbase;\n $paramurl['act'] = SURVEYPRO_EXPORTUTEMPLATE;\n $paramurl['sesskey'] = sesskey();\n\n $link = new \\moodle_url('/mod/surveypro/utemplate_manage.php', $paramurl);\n $icons .= $OUTPUT->action_icon($link, $importicn, null, ['title' => $importtitle]);\n }\n\n $tablerow[] = $icons;\n\n $table->add_data($tablerow);\n }\n }\n $table->set_attribute('align', 'center');\n $table->summary = get_string('templatelist', 'mod_surveypro');\n $table->print_html();\n }", "public function load( $data ){\n\t\t\n\t\t//\tshow current user\n\t\tif($this->currentUser){\n\t\t\t$data['currentUser'] = $this->ci->load->view('templates/current_user', $this->currentUser, TRUE);\n\t\t} else {\n\t\t\t$data['currentUser'] = '';\n\t\t}\n\t\t\n\t\t$data['title'] = $this->PRE_TITLE . $data['title'];\n\t\t\n\t\t//\tprep JavaScript\n\t\tif( empty( $data['js'] ) || !isset( $data['js'] ) ){\n\t\t\t$data['js'] = array( 'main.js' );\n\t\t} else {\n\t\t\tarray_unshift( $data['js'], 'main.js' );\t\n\t\t}\n\t\t//\tprepend JS url to each\n\t\tfor($i=0; $i<count($data['js']); $i++){\n\t\t\tif( strpos( $data['js'][$i], 'http' ) === FALSE ){\n\t\t\t\t$data['js'][$i] = $this->JS_URL . $data['js'][$i];\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t//\tprep CSS\n\t\tif( empty( $data['css'] ) || !isset( $data['css'] ) ){\n\t\t\t$data['css'] = $this->CSS_URL . 'main.css';\n\t\t} else {\n\t\t\t$data['css'] = $this->CSS_URL . $data['css'];\n\t\t}\n\t\t\n\t\t$this->ci->load->view('templates/template', $data);\n\t}", "private function loadUsers() {\n\t\t\n\t\t\t$sql = \"SELECT usr_id FROM usr_cmp WHERE cmp_id='$companyID'\";\n\t\t\t\n\t\t\t$rawResult = $gremlin->query($sql);\n\t\t\t\n\t\t\tforeach($rawResult as $newCont) {\n\t\t\t\n\t\t\t\t$newUser = new User($newCont);\n\t\t\t\n\t\t\t\t$this->usersInCompany[] = $newUser;\n\t\t\t\n\t\t\t}\n\t\t\n\t\t}", "protected function loadHTMLTemplates() {\n parent::loadHTMLTemplates();\n $this->template->appendFileById( \"menu_view_link.html\", \"li\", \"navBarUL\", true );\n $this->template->appendFileById( \"form_\" . $this->getForm( true ) . \".html\", \"tbody\", \"person_form\" );\n }", "public function index()\n {\n $this->user_list();\n }", "public function load($folder, $file_name, $data = array(), $include_header_footer){\n\t\tif( is_array($data)) {\n\t\t\t extract($data);\n\t\t}\n\t\t//instantiate our user object\n\t\t$u = new User();\n\t\t//show the view\n\t\tif($include_header_footer){\n\t\t\tinclude('views/elements/header.php');\n\t\t}\n\t\tinclude 'views/' .$folder.'/'. $file_name.'.php';\n\t\tif($include_header_footer){\n\t\t\tinclude('views/elements/footer.php');\n\t\t}\n }", "public function index()\n {\n $this->context['data'] = $this->usersRepo->getAll();\n $this->render($this->context);\n }", "public function create(){\n\t\t$args = $this->getArgs();\n\t\t$out = $this->getModel()->getUcrDataByToken(UserController::getUcrRequestTokenHash($args[\"GET\"][\"token\"]));\n\t\tinclude 'gui/template/UserTemplate.php';\n\t}", "public function renderUserTemplate($template, $data=[])\n {\n return $this->env->render($template, $data);\n }", "public function getUserlist(){\n\n $users = User::where('userType', '=', \"user\")\n ->orderBy('id', 'DESC')\n ->paginate(2);\n\n $userArray = array();\n foreach ($users as $user) {\n $refl5 = new ReflectionObject($user);\n $prop5 = $refl5->getProperty('attributes');\n $prop5->setAccessible(true);\n $user = $prop5->getValue($user);\n\n // fetching name of saved category and language\n $language1 = Language::where('id',$user['language'])\n ->lists('language');\n if(!empty($language1)){\n $user['langName'] = $language1[0] ;\n }\n $category1 = Category::where('id',$user['category'])\n ->lists('category');\n if(!empty($category1)){\n $user['categoryName']= $category1[0];\n }\n \n array_push($userArray,$user);\n }\n $this->layout->content = View::make('admin.userlist',array('userArray'=>$userArray,'users'=>$users));\n }", "public function index()\n {\n $this->userlist();\n }", "function index() {\n $url = base_url() . \"index.php/users\";\n $total_records = count($this->musers->get_users());\n $config = $this->paginate($url, $total_records);\n $this->pagination->initialize($config);\n $data = $this->get_videos();\n $data['sys_users'] = $this->musers->get_users($config['per_page'], $this->uri->segment(3));\n $this->template->load('default', 'listUsers', $data);\n }", "public function add_items_from_template() {\n global $CFG, $DB;\n\n $fs = get_file_storage();\n\n $this->templatename = $this->get_utemplate_name();\n $templatecontent = $this->get_utemplate_content();\n\n $simplexml = new \\SimpleXMLElement($templatecontent);\n // echo '<h2>Items saved in the file ('.count($simplexml->item).')</h2>';\n\n if (!$sortindexoffset = $DB->get_field('surveypro_item', 'MAX(sortindex)', ['surveyproid' => $this->surveypro->id])) {\n $sortindexoffset = 0;\n }\n\n $naturalsortindex = 0;\n foreach ($simplexml->children() as $xmlitem) {\n\n // Read the attributes of the item node:\n // The xmlitem looks like: <item type=\"field\" plugin=\"character\" version=\"2015123000\">.\n foreach ($xmlitem->attributes() as $attribute => $value) {\n if ($attribute == 'type') {\n $currenttype = (string)$value;\n }\n if ($attribute == 'plugin') {\n $currentplugin = (string)$value;\n }\n }\n\n // Take care to details.\n // Load the item class in order to call its methods to validate $record before saving it.\n $item = surveypro_get_item($this->cm, $this->surveypro, 0, $currenttype, $currentplugin);\n\n foreach ($xmlitem->children() as $xmltable) { // Tables are: surveypro_item and surveypro(field|format)_<<plugin>>.\n $tablename = $xmltable->getName();\n if ($tablename == 'surveypro_item') {\n $currenttablestructure = $this->get_table_structure();\n } else {\n $currenttablestructure = $this->get_table_structure($currenttype, $currentplugin);\n }\n\n $record = new \\stdClass();\n\n // Add to $record mandatory fields that will be overwritten, hopefully, with the content of the usertemplate.\n $record->surveyproid = (int)$this->surveypro->id;\n $record->type = $currenttype;\n $record->plugin = $currentplugin;\n if ($tablename == 'surveypro_item') {\n $item->item_add_mandatory_base_fields($record);\n } else {\n $item->item_add_mandatory_plugin_fields($record);\n }\n\n foreach ($xmltable->children() as $xmlfield) {\n $fieldname = $xmlfield->getName();\n\n // Tag <parent> always belong to surveypro_item table.\n if ($fieldname == 'parent') {\n // echo '<h5>Count of attributes of the field '.$fieldname.': '.count($xmlfield->children()).'</h5>';\n foreach ($xmlfield->children() as $xmlparentattribute) {\n $fieldname = $xmlparentattribute->getName();\n $fieldexists = in_array($fieldname, $currenttablestructure);\n if ($fieldexists) {\n $record->{$fieldname} = (string)$xmlparentattribute;\n }\n }\n continue;\n }\n\n // Tag <embedded> always belong to surveypro(field|format)_<<plugin>> table\n // so: ($fieldname == 'embedded') only when surveypro_item has already been saved...\n // so: $itemid is known.\n if ($fieldname == 'embedded') {\n // echo '<h5>Count of attributes of the field '.$fieldname.': '.count($xmlfield->children()).'</h5>';\n foreach ($xmlfield->children() as $xmlfileattribute) {\n $fileattributename = $xmlfileattribute->getName();\n if ($fileattributename == 'filename') {\n $filename = $xmlfileattribute;\n }\n if ($fileattributename == 'filecontent') {\n $filecontent = base64_decode($xmlfileattribute);\n }\n }\n\n // echo 'I need to add: \"'.$filename.'\" to the filearea<br />';\n\n // Add the file described by $filename and $filecontent to filearea,\n // alias, add pictures found in the utemplate to filearea.\n $filerecord = new \\stdClass();\n $filerecord->contextid = $this->context->id;\n $filerecord->component = 'mod_surveypro';\n $filerecord->filearea = SURVEYPRO_ITEMCONTENTFILEAREA;\n $filerecord->itemid = $itemid;\n $filerecord->filepath = '/';\n $filerecord->filename = $filename;\n $fileinfo = $fs->create_file_from_string($filerecord, $filecontent);\n continue;\n }\n\n // The method xml_validation checks only the formal schema validity.\n // It does not know whether the xml is old and holds no longer needed fields\n // or does not hold fields that are now mandatory.\n // Because of this, I can not SIMPLY add $fieldname to $record but I need to make some more investigation.\n // I neglect no longer used fields, here.\n // I will add mandatory (but missing because the usertemplate may be old) fields,\n // before saving in the frame of the $item->item_force_coherence.\n $fieldexists = in_array($fieldname, $currenttablestructure);\n if ($fieldexists) {\n $record->{$fieldname} = (string)$xmlfield;\n }\n }\n\n unset($record->id);\n\n if ($tablename == 'surveypro_item') {\n $naturalsortindex++;\n $record->sortindex = $naturalsortindex + $sortindexoffset;\n if (!empty($record->parentid)) {\n $whereparams = array();\n $whereparams['surveyproid'] = $this->surveypro->id;\n $whereparams['sortindex'] = $record->parentid + $sortindexoffset;\n $record->parentid = $DB->get_field('surveypro_item', 'id', $whereparams, MUST_EXIST);\n }\n\n $itemid = $DB->insert_record($tablename, $record);\n } else {\n // Take care to details.\n $item->item_force_coherence($record);\n $item->item_validate_variablename($record, $itemid);\n $record->itemid = $itemid;\n\n $DB->insert_record($tablename, $record, false);\n }\n }\n }\n }", "public function syncUserList()\n {\n // If no internal cache exists yet, get its value from LazyJsonMapper.\n if ($this->_userList === null) {\n $this->getUserList(); // Builds our \"_userList\" variable. Throws.\n }\n\n // Now, we need to create a new, internal LazyJsonMapper data array for\n // our object. In undefined (unmapped) properties, you are ONLY allowed\n // to store basic data types. Not objects. So we will need to convert\n // all User objects to real array data. Otherwise OTHER calls would fail\n // due to invalid internal data when we try things like `printJson()`.\n $newObjectData = [];\n foreach ($this->_userList as $k => $v) {\n $newObjectData[$k] = is_object($v) && $v instanceof LazyJsonMapper\n ? $v->asArray() // Throws.\n : $v; // Is already a valid value.\n }\n\n // Now give the new object data to LazyJsonMapper, which ensures that it\n // contains all of the same values as our updated cache! This replaces\n // the ENTIRE internal JSON property storage, so be aware of that!\n $this->assignObjectData($newObjectData); // Throws.\n }", "public function index(){\n\t\t$data = array();\n\n\t\t$select_fields = '*';\n \t$is_multy_result = 2;\n\t\t$conditions = \"\";\n\t\t$data['users'] = $this->BlankModel->getTableData(USERS, $conditions, $select_fields, $is_multy_result);\t\n\t\t\t\t\n\t\tcommon_viewloader('users/index', $data);\n }", "function user_index()\n\t{\n\t\t$contact = $this->contact_details();\n\t\t$credentials = $this->MailchimpCredential->first();\n\t\tif(!empty($credentials))\n\t\t{\n\t\t\t# Copy access_token\n\t\t\t# GET LIST FROM MAILCHIMP\n\t\t\t$lists = $this->Mailchimp->get(\"lists\");\n\n\t\t\t# ALWAYS MAKE SURE WE HAVE CORE LISTS\n\t\t\t$listNames = Set::extract($lists['lists'], \"{n}.name\");\n\n\n\t\t\t$missingListNames = array_diff($this->listNames,$listNames);\n\n\t\t\t# Create initial list.\n\t\t\tif(!empty($missingListNames))\n\t\t\t{\n\t\t\t\tforeach($missingListNames as $listName)\n\t\t\t\t{\n\t\t\t\t\t# Make 'Subscribers' default list (ie for subscribe form on homepage)\n\t\t\t\t\t$this->Mailchimp->create_list($listName,$contact);\n\n\t\t\t\t}\n\n\t\t\t\t$lists = $this->Mailchimp->get(\"lists\");\n\t\t\t}\n\n\t\t\t$subscribers = $list_names = array();\n\n\t\t\tforeach($lists['lists'] as $l)\n\t\t\t{\n\t\t\t\t$lid = $l['id'];\n\t\t\t\t$lname = $l['name'];\n\t\t\t\t#echo \"LID=$lid, LNAME=$lname\\n\";\n\t\t\t\t$list_names[$lid] = $lname;\n\t\t\t\t$list_totals[$lid] = $l['stats']['member_count'];\n\t\t\t\t$subscribers[$lid] = $this->Mailchimp->members($lid);\n\t\t\t}\n\n\t\t\t$this->set(\"lists\", $subscribers);\n\t\t\t$this->set(\"list_names\", $list_names);\n\t\t\t$this->set(\"list_totals\", $list_totals);\n\t\t}\n\t}", "public function getUsers()\n {\n $title = \"Users\";\n $view = $this->di->get(\"view\");\n $pageRender = $this->di->get(\"pageRender\");\n\n // Get all the users from db\n $users = $this->di->get(\"user\")->getAllUsers();\n\n $data = [\n //\"items\" => $book->findAll(),\n \"users\" => $users,\n ];\n\n $view->add(\"pages/users\", $data);\n //$view->add(\"blocks/footer\", $data);\n\n $pageRender->renderPage([\"title\" => $title]);\n }", "function culturefeed_pages_manage_members_list(CultureFeed_Cdb_Item_Page $page, CultureFeed_Pages_UserList $user_list, $cf_user = NULL) {\n\n // Get all the uid's in 1 time. Otherwise the theming layer will search it 1 by 1.\n culturefeed_get_uids_for_memberships($user_list->memberships);\n\n $header = array(\n t('Name'),\n t('Function'),\n t('Role'),\n t('Member since'),\n '',\n '',\n );\n\n // Count how many admins.\n $admins = array();\n foreach ($user_list->memberships as $member) {\n if ($member->role == CultureFeed_Pages_Membership::MEMBERSHIP_ROLE_ADMIN) {\n $admins[] = $member;\n }\n }\n $total_admins = count($admins);\n\n $rows = array();\n // Create row for every member.\n foreach ($user_list->memberships as $member) {\n\n $row = array();\n\n $name = '';\n $depiction = !empty($member->user->depiction) ? $member->user->depiction : 'http://media.uitid.be/fis/rest/download/ce126667652776f0e9e55160f12f5478/uiv/default.png';\n $name = '<span class=\"depiction\">' . theme('image', array('path' => $depiction . '?width=30&height=30&crop=auto')) . '</span>';\n $drupal_uid = culturefeed_get_uid_for_cf_uid($member->user->id, $member->user->nick);\n $name .= l($member->user->nick, 'user/' . $drupal_uid);\n\n $row['name'] = $name;\n\n // Show the user data.\n if (empty($cf_user) || $cf_user->id != $member->user->id) {\n\n $row['function'] = $member->relation;\n switch ($member->role) {\n case CultureFeed_Pages_Membership::MEMBERSHIP_ROLE_ADMIN:\n $role = t('administrator');\n break;\n case CultureFeed_Pages_Membership::MEMBERSHIP_ROLE_MEMBER:\n default:\n $role = t('member');\n break;\n }\n $row['role'] = $role;\n $row['member_since'] = date('d/m/Y H:i', $member->creationDate);\n $row['edit'] = l(t('Edit'), 'pages/' . $page->getId() . '/membership/' . $member->user->id . '/edit/nojs', array('attributes' => array('class' => 'use-ajax')));\n\n if ($total_admins == 1 && $member->role == CultureFeed_Pages_Membership::MEMBERSHIP_ROLE_ADMIN) {\n $row['delete'] = theme('culturefeed_pages_membership_delete_not_possible', array('page' => $page));\n }\n else {\n $delete_options = array(\n 'attributes' => array(\n 'role' => 'button',\n 'data-toggle' => 'modal',\n 'data-target' => '#page_confirm',\n 'data-remote' => url('pages/' . $page->getId() . '/membership/' . $member->user->id . '/delete/ajax'),\n ),\n );\n $row['delete'] = l(t('Remove as member'), 'pages/' . $page->getId() . '/membership/' . $member->user->id . '/delete/nojs', $delete_options);\n }\n }\n // Show the edit form.\n else {\n\n $form = drupal_get_form('culturefeed_pages_edit_membership_form', $page, $cf_user, $user_list);\n $row['function'] = array(\n 'data' => render($form),\n 'colspan' => 2,\n );\n $row['member_since'] = date('d/m/Y H:i', $member->creationDate);\n $row['cancel'] = array(\n 'data' => l(t('Cancel changes'), 'pages/' . $page->getId() . '/members/nojs', array('attributes' => array('class' => 'use-ajax'))),\n 'colspan' => 2,\n );\n\n }\n\n $rows[] = array('data' => $row, 'id' => 'member-' . $member->user->id);\n\n }\n\n return array(\n '#theme' => 'table',\n '#header' => $header,\n '#rows' => $rows,\n '#empty' => t('No content available.'),\n '#attached' => array('library' => array(array('system', 'drupal.ajax'))),\n '#prefix' => '<div id=\"manage-members\">',\n '#suffix' => '</div>',\n );\n\n}", "public function indexAction()\n {\n $data['users'] = User::getAll();\n View::render('Admin/Template/header.php');\n View::render('Admin/Users/list.php', $data);\n View::render('Admin/Template/footer.php');\n }", "function index(){\n\t\t$list = $this->user->ambil_semua_data();\n\n\t\t/* hasil data */\n\t\t$data['result'] = $list;\n\n\t\t/* Load view */\n\t\t$this->template->write_view('list', $data);\n\t}", "public function load_data_templates(){\n\n\t$notificaciones = new NotificacionesController();\n\t$base = new BaseController();\n\t$menu = $base->menu();\n\n\t$data = [\n\t\t'js' => $this->js,\n\t\t'session' => $_SESSION,\n\t\t'nombre' => $this->nombre,\n\t\t'notificaciones' => $notificaciones->get_notificaciones(),\n\t\t'menu' => $menu['modulos']\n\t];\n\n\treturn $data;\n\n}", "public function showListAction() {\n $users = $this->getDoctrine()\n ->getRepository(User::class)\n ->findAll();\n return $this->render(':Security\\User:users.html.twig', [\n 'users' => $users\n ]);\n }", "public function listdataAction() {\n $this->view->dataList = $this->adm_listdata_serv->getDataList('%');\n }", "function get_user_list(){\n\t\treturn array();\n\t}", "function view(){\n\t\t\t$user_documents = $this->user_model->get_AllUsers();\n\t\t\t$data = array('user_documents' => array());\n\t\t\t\n\t\t\twhile($user_documents->hasNext()){\n\t\t\t\t$user_document = $user_documents->getNext();\n\t\t\t\t$data['documents'][] = array(\n\t\t\t\t\t\t\t\t\t\t'name' => $user_document['name'],\n\t\t\t\t\t\t\t\t\t\t'email' => $user_document['email'],\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t}\n\t\t\t//$this->load->view('user_view', $data);\n\t\t}", "public function load() {\n\t\tglobal $config;\n\t\n\t\tif($this->exists()){ // User exists\n\t\t\tif(!empty($this->data['id']))\n\t\t\t\t$where = 'id = '.$this->data['id'];\n\t\t\telseif(!empty($this->data['fbid']))\n\t\t\t\t$where = 'fbid = '.$this->data['fbid'];\n\t\t\t\t\n\t\t\t$result = $config['database']->query(\"\n\t\t\t\tSELECT *\n\t\t\t\tFROM nuusers\n\t\t\t\tWHERE $where\n\t\t\t\tLIMIT 1\n\t\t\t\");\n\t\t\t$row = $result->fetch_assoc();\n\t\t\t\n\t\t\tforeach($row as $key => $val){\n\t\t\t\tif($key == 'options'){\n\t\t\t\t\t$this->data['options'] = json_decode($val, true);\n\t\t\t\t}else if(is_string($val)){\n\t\t\t\t\tif(!get_magic_quotes_gpc())\n\t\t\t\t\t\t$this->data[$key] = stripslashes($val);\n\t\t\t\t\telse\n\t\t\t\t\t\t$this->data[$key] = $val;\n\t\t\t\t}else{\n\t\t\t\t\t$this->data[$key] = $val;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(empty($this->data['photo'])){\n\t\t\t\tglobal $config;\n\t\t\t\t\n\t\t\t\tif($this->data['faculty'])\n\t\t\t\t\t$this->data['photo'] = $config['imagesurl'].'/faculty.jpg';\n\t\t\t\telse\n\t\t\t\t\t$this->data['photo'] = $config['imagesurl'].'/anonymous.gif';\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t$this->data['level'] = $this->loadLevel();\n\t\t\t$this->data['levelProgress'] = $this->loadLevelProgress();\n\t\t\t$this->data['rank'] = $this->loadRank();\n\t\t\t$this->data['achievements'] = $this->loadAchievements();\n\t\t\t$this->data['post_counts'] = $this->loadPostCounts();\n\t\t\t\n\t\t\treturn $result;\n\t\t}else{ // User does not exists\n\t\t\tif($this->data['fbid']){ // New user from facebook\n\t\t\t\tglobal $fbme;\n\t\t\t\t\n\t\t\t\t$y = substr($fbme['birthday'],6);\n\t\t\t\t$m = substr($fbme['birthday'],0,2);\n\t\t\t\t$d = substr($fbme['birthday'],3,2);\n\t\t\t\t$bday = $y.'-'.$m.'-'.$d;\n\t\t\t\t\n\t\t\t\t$create = $this->create(array(\n\t\t\t\t\t'first_name' => $fbme['first_name'],\n\t\t\t\t\t'last_name' => $fbme['last_name'],\n\t\t\t\t\t'email' => $fbme['email'],\n\t\t\t\t\t'birthday' => $bday,\n\t\t\t\t\t'gender' => $fbme['gender']\n\t\t\t\t));\n\t\t\t\t\n\t\t\t\treturn $create;\n\t\t\t}else{ // Invalid user id\n\t\t\t\t$this->data['id'] = null;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "function userlist_callback() {\n\ttry {\n\t\t$response = wp_remote_get( API_CALL_URL . 'users/' );\n\t\t$data['data'] = json_decode( $response['body'] );\n\t\techo wp_json_encode( $data );\n\t} catch ( Exception $ex ) {\n\t\t$data['data'] = null;\n\t\techo wp_json_encode( $data );\n\t}\n\twp_die();\n}", "public function UsersListView(){\n\t\t//Meta is usually not setup yet, so we manually do this before loading css file\n\t\t$this->meta = new Meta();\n\t\t\n\t\t//This class requires an extra css file\n\t\t$this->getMeta()->addExtra('<link href=\"core/fragments/css/admin.css\" rel=\"stylesheet\" type=\"text/css\" />');\n\t}", "public static function loadUserFixtures()\n {\n include __DIR__ . '/../../../_files/adminUserFixtures.php';\n }", "public function admin_page_init () {\n add_menu_page( __( 'Users List', 'ct-admin-list' ), __( 'Users list', 'ct-admin-list' ), 'list_users', 'ct-users-list', [ $this, 'list_page_content' ] );\n }", "public function user_list()\n {\n \n \t$users = User::all();\n\n $data = array('users' => $users);\n\n return view('manage.user_list')->with($data);;\n }", "public function actionIndex()\n {\n $request = Yii::$app->request;\n\n $params = ArrayHelper::merge($request->get(), [\n 'perPage' => $request->get('perPage', Yii::$app->params['per_pages'][0]),\n 'orderCol' => $request->get('orderCol', 'id'),\n 'orderDir' => $request->get('orderDir', 'asc')\n ]);\n\n $pageTitle = Yii::t('app', 'List of users');\n\n $breadcrumbs = [\n ['url' => ['/admin'], 'label' => Yii::t('app', 'Admin panel'), ],\n ['url' => ['/admin/user/list'], 'label' => $pageTitle, 'class' => 'active']\n ];\n\n $data = User::getList($params);\n\n return $this->render('/admin/user/list.twig', [\n 'params' => $params,\n 'pages' => $data['pages'],\n 'users' => $data['models'],\n 'pageTitle' => $pageTitle,\n 'breadcrumbs' => $breadcrumbs,\n ]);\n }", "public function showUsersList($pages){\n\t\t\n\t\t// Set the state and tell plugins.\n\t\t$this->setState('SHOWING_USER_LIST');\n\t\t$this->notifyObservers();\n\t\t\n\t\t//Get Top of pagelist\n\t\t$content = $this->openFile(\"core/fragments/admin_userslist.phtml\");\n\t\t\n\t\t//Creates a list from the supplied data\n\t\t$content .= $this->createUsersList($pages);\n\t\t\n\t\t//Print this dashboard\n\t\t$this->setContent($content);\t\n\t}", "public function index() {\n\t\t$user = $this->User->read(null, $this->Auth->user('id'));\n\t\t$this->User->recursive = 0;\n\t\t$this->set('users', $this->paginate());\n\t\t$this->set('userId', $user['User']['id']);\n\t\t$this->set('userType', $user['User']['type']);\n\t}", "public function index()\n {\n return view('contents.data_user');\n }", "public function generate_users_list()\n {\n $this->get('/usuarios')->assertStatus(200)->assertSee('Pedro');\n }" ]
[ "0.6987404", "0.66285276", "0.65667415", "0.6422083", "0.6392053", "0.63684666", "0.6341943", "0.6262152", "0.6216573", "0.62085617", "0.61938417", "0.6143828", "0.6125063", "0.6122019", "0.61197287", "0.60720235", "0.6009849", "0.59842306", "0.5901083", "0.5830076", "0.58105505", "0.57850456", "0.5769922", "0.5766555", "0.5754919", "0.5751152", "0.5749915", "0.5747861", "0.5733268", "0.5729949", "0.57244027", "0.56954", "0.56618464", "0.566148", "0.5656556", "0.56128263", "0.5605897", "0.560525", "0.55832106", "0.55729085", "0.5560429", "0.5556971", "0.5556555", "0.5543069", "0.55302024", "0.55272627", "0.55270326", "0.5523902", "0.55077046", "0.54921776", "0.54915106", "0.5482407", "0.54687136", "0.54663956", "0.5456684", "0.5455974", "0.54494876", "0.5443667", "0.5442263", "0.5428939", "0.542472", "0.5423504", "0.54224664", "0.5410532", "0.5406649", "0.53979665", "0.53958046", "0.53847426", "0.5380733", "0.53719586", "0.53713655", "0.5360142", "0.5354898", "0.5339877", "0.53335124", "0.5328059", "0.53278184", "0.53263026", "0.53230613", "0.53184474", "0.5313052", "0.5311373", "0.5308829", "0.53075033", "0.5302216", "0.5293707", "0.52833796", "0.52785707", "0.5276777", "0.52739096", "0.5269577", "0.5267566", "0.52664715", "0.526265", "0.5259171", "0.525679", "0.52357775", "0.5228368", "0.52246165", "0.52244943" ]
0.7246512
0
Set template for users listing table
public function userListTemplate(): void { $page = get_query_var(self::CUSTOMPAGEVAR); if ($page === $this->customEndpoint()) { $data = self::FetchUsersData(); $userListingTemplate = plugin_dir_path(dirname(__FILE__)) . "views/listing-view/template-users-list.php"; $this->themeRedirect($userListingTemplate, true, $data); exit(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function renderDefault()\n {\n $this->template->users = $this->users->findAll();\n }", "public function display_usertemplates_table() {\n global $CFG, $USER, $OUTPUT;\n\n require_once($CFG->libdir.'/tablelib.php');\n\n $candownloadutemplates = has_capability('mod/surveypro:downloadusertemplates', $this->context);\n $candeleteutemplates = has_capability('mod/surveypro:deleteusertemplates', $this->context);\n\n // Begin of: $paramurlbase definition.\n $paramurlbase = array();\n $paramurlbase['id'] = $this->cm->id;\n // End of $paramurlbase definition.\n\n $deletetitle = get_string('delete');\n $iconparams = ['title' => $deletetitle];\n $deleteicn = new \\pix_icon('t/delete', $deletetitle, 'moodle', $iconparams);\n\n $importtitle = get_string('exporttemplate', 'mod_surveypro');\n $iconparams = ['title' => $importtitle];\n $importicn = new \\pix_icon('t/download', $importtitle, 'moodle', $iconparams);\n\n $table = new \\flexible_table('templatelist');\n\n $paramurl = ['id' => $this->cm->id];\n $baseurl = new \\moodle_url('/mod/surveypro/utemplate_manage.php', $paramurl);\n $table->define_baseurl($baseurl);\n\n $tablecolumns = array();\n $tablecolumns[] = 'templatename';\n $tablecolumns[] = 'sharinglevel';\n $tablecolumns[] = 'timecreated';\n $tablecolumns[] = 'actions';\n $table->define_columns($tablecolumns);\n\n $tableheaders = array();\n $tableheaders[] = get_string('templatename', 'mod_surveypro');\n $tableheaders[] = get_string('sharinglevel', 'mod_surveypro');\n $tableheaders[] = get_string('timecreated', 'mod_surveypro');\n $tableheaders[] = get_string('actions');\n $table->define_headers($tableheaders);\n\n $table->sortable(true, 'templatename'); // Sorted by templatename by default.\n $table->no_sorting('actions');\n\n $table->column_class('templatename', 'templatename');\n $table->column_class('sharinglevel', 'sharinglevel');\n $table->column_class('timecreated', 'timecreated');\n $table->column_class('actions', 'actions');\n\n $table->set_attribute('id', 'managetemplates');\n $table->set_attribute('class', 'generaltable');\n $table->setup();\n\n $options = $this->get_sharinglevel_options();\n\n $templates = new \\stdClass();\n foreach ($options as $sharinglevel => $unused) {\n $parts = explode('_', $sharinglevel);\n $contextlevel = $parts[0];\n\n $contextid = $this->get_contextid_from_sharinglevel($sharinglevel);\n $contextstring = $this->get_contextstring_from_sharinglevel($contextlevel);\n $templates->{$contextstring} = $this->get_available_templates($contextid);\n }\n\n $virtualtable = $this->get_virtual_table($templates, $table->get_sql_sort());\n\n $row = 0;\n foreach ($templates as $contextstring => $contextfiles) {\n foreach ($contextfiles as $xmlfile) {\n $tablerow = array();\n\n $xmlfileid = $virtualtable[$row]['xmlfileid'];\n $templatename = $virtualtable[$row]['templatename'];\n $tmpl = new usertemplate_name($xmlfileid, $templatename);\n\n $tablerow[] = $OUTPUT->render_from_template('core/inplace_editable', $tmpl->export_for_template($OUTPUT));\n $tablerow[] = $virtualtable[$row]['sharinglevel'];\n $tablerow[] = userdate($virtualtable[$row]['creationdate']);\n\n $paramurlbase['fid'] = $virtualtable[$row]['xmlfileid'];\n $row++;\n\n $icons = '';\n // SURVEYPRO_DELETEUTEMPLATE.\n if ($candeleteutemplates) {\n if ($xmlfile->get_userid() == $USER->id) { // Only the owner can delete his/her template.\n $paramurl = $paramurlbase;\n $paramurl['act'] = SURVEYPRO_DELETEUTEMPLATE;\n $paramurl['sesskey'] = sesskey();\n\n $link = new \\moodle_url('/mod/surveypro/utemplate_manage.php', $paramurl);\n $icons .= $OUTPUT->action_icon($link, $deleteicn, null, ['title' => $deletetitle]);\n }\n }\n\n // SURVEYPRO_EXPORTUTEMPLATE.\n if ($candownloadutemplates) {\n $paramurl = $paramurlbase;\n $paramurl['act'] = SURVEYPRO_EXPORTUTEMPLATE;\n $paramurl['sesskey'] = sesskey();\n\n $link = new \\moodle_url('/mod/surveypro/utemplate_manage.php', $paramurl);\n $icons .= $OUTPUT->action_icon($link, $importicn, null, ['title' => $importtitle]);\n }\n\n $tablerow[] = $icons;\n\n $table->add_data($tablerow);\n }\n }\n $table->set_attribute('align', 'center');\n $table->summary = get_string('templatelist', 'mod_surveypro');\n $table->print_html();\n }", "public function loadUsersTemplate(): void\n {\n /**\n * Filter responsible for adding the custom template for users listing.\n *\n * @since 1.0.0\n */\n add_action('template_redirect', [$this, 'userListTemplate']);\n }", "public function list_page_content () {\n // Check permissions\n if ( ! current_user_can( 'list_users' ) ) {\n return;\n }\n\n // Main listing query\n $this->list_query_users();\n\n // Set urls for column sorting links.\n $sort_link_username = $this->sort_link( 'user_name', $this->orderby, $this->order );\n $sort_link_displayname = $this->sort_link( 'display_name', $this->orderby, $this->order );\n\n // Include template\n include CTAL_PATH.'/admin/templates/users-page.php';\n }", "public function all_londontec_users(){\n\n\t\t$headerData = null;\n\t\t$sidebarData = null;\n\t\t$page = 'admin/viewusers';\n\t\t$mainData = array(\n\t\t\t'pagetitle'=> 'londontec LMS users lists',\n\t\t\t'userslist' => $this->setting_model->Get_All('londontec_users'),\n\t\t);\n\t\t$footerData = null;\n\n\t\t$this->template($headerData, $sidebarData, $page, $mainData, $footerData);\n\t}", "public function userlist()\n {\n $users = array('users' => UserModel::getPublicProfilesOfAllUsers(),'dynatable'=>'userlist');\n $this->View->render('user/userlist',$users);\n }", "public function admin_user_list() {\n $this->paginate = array(\n 'limit' => 10,\n 'order' => array('User.created' => 'desc' ),\n 'conditions' => array('User.status' => 1),\n );\n $data = $this->paginate('User');\n $this->set('user', $data);\n $this->render('/Users/user_list');\n }", "function index()\n {\n\t$data = $this->page_settings('default', NULL, NULL, 'Users', 'users');\n\t$this->templates->backend($data);\n }", "protected function createUsersList($data){\n\t\t\n\t\t// Set the state and tell plugins.\n\t\t$this->setState('CREATING_USER_TABLE');\n\t\t$this->notifyObservers();\n\t\t\n\t\t//Create new Table item\n\t\t$t = new Table();\n\t\t\n\t\t//Create new Table\n\t\t$t->createTable(\"Userslist\");\n\t\t\n\t\t//Sets intial row as headings\n\t\t$t->setHead(true);\n\t\t\n\t\t//Add the heading row.\n\t\t$t->addRow(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t\"Username\",\n\t\t\t\t\t\t\"Edit Option\",\n\t\t\t\t\t\t\"Delete Option\"\n\t\t\t\t\t)\t\t\t\t\t\n\t\t\t\t );\n\t\t\n\t\t//Loop Through each page\n\t\tfor($i = 0; $i < count($data); $i++)\n\t\t{\n\t\t\t//Add Page data for each row.\n\t\t\t$t->addRow(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t$data[$i],\n\t\t\t\t\t\t\"<a href='?system=Users&page=edit&active=\".$data[$i].\"'>Edit</a>\",\n\t\t\t\t\t\t\"<a href='?system=Users&page=delete&active=\".$data[$i].\"'>Delete</a>\",\t\t\t\t\t\n\t\t\t\t\t)\n\t\t\t\t );\n\t\t}\n\t\t\n\t\t//Creates a table from inserted data\n\t\t$t->runTable();\n\t\t\n\t\t//Returns the created table.\n\t\treturn $t->getTable();\n\t}", "public function userList() {\n /** @var User[] $users */\n $users = $this->entityManager->getRepository(\"Entity\\\\User\")->findAll(); // Retrieve all User objects registered in database\n echo $this->twig->render('admin/lists/users.html.twig', ['users' => $users]);\n }", "function user_list()\n {\n if ($this->isAdmin() == TRUE) {\n $this->loadThis();\n } else {\n $this->global['pageTitle'] = '运营人员列表';\n $this->global['pageName'] = 'userlist';\n\n $data['searchType'] = '0';\n $data['searchName'] = '';\n\n $this->loadViews(\"user_manage/users\", $this->global, $data, NULL);\n }\n }", "function renderTableTemplate()\n {\n\n global $wpdb;\n\n $query = \"SELECT * FROM \" . $wpdb->prefix . \"posts WHERE post_type='flamingo_inbound' and post_title LIKE '%-%-%'\";\n\n $data = $wpdb->get_results($query);\n\n // Header frame.\n echo '\n\t\t\t<div class=\"limiter\">\n\t\t\t\t<div class=\"container-table100\">\n\t\t\t\t\t<div class=\"wrap-table100\">\n\t\t\t\t\t\t<div class=\"table100\">\n\t\t\t\t\t\t\t<table class=\"birthday-table\">\n\t\t\t\t\t\t\t\t<thead>\n\t\t\t\t\t\t\t\t\t<tr class=\"table100-head\">\n\t\t\t\t\t\t\t\t\t\t<th class=\"column1\">Username</th>\n\t\t\t\t\t\t\t\t\t\t<th class=\"column2\">Birthday Date</th>\n\t\t\t\t\t\t\t\t\t\t<th class=\"column3\">Age</th>\n\t\t\t\t\t\t\t\t\t\t<th class=\"column3\">Days to birthdate</th>\n\t\t\t\t\t\t\t\t\t\t<th class=\"column3\">Contact</th>\n\t\t\t\t\t\t\t\t\t\t<th class=\"column4\">Joined at</th>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t</thead>\n\t\t\t\t\t\t\t\t<tbody class=\"birthday-table-body\">';\n\n // Join together all query's data into an array of multiples arrays for each customer.\n $data_array = parseUsersInfo($data);\n\n $users_data_array = addAgeAndDaysToBirthdate($data_array);\n\n // Sort the multidimensional array.\n usort($users_data_array, 'compareDates');\n\n foreach ($users_data_array as &$users_info) {\n renderTableData($users_info);\n }\n\n // Footer frame.\n echo '\n \t\t\t\t\t\t</tbody>\n \t\t\t\t\t</table>\n \t\t\t\t</div>\n \t\t\t</div>\n \t\t</div>\n \t</div>';\n }", "public function userlist()\n\t{\n\t\t$data['page']='Userlist';\n\t\t$data['users_list']=$this->users->get_many_by('userlevel_id',2);\n\t\t$view = 'admin/userlist/admin_userlist_view';\n\t\techo Modules::run('template/admin_template', $view, $data);\t\n\t}", "public function index() {\n\n\t\t$conditions = array(\n\t\t\t'User.type !=' => NULL,\n\t\t\t'User.is_admin' => 0,\n\t\t\t'DATE(User.created) !=' => '0000-00-00'\n\t\t);\n\n\t\t$this->paginate = array(\n\t\t\t'limit' => UsersController::PAGE_LIMIT,\n\t\t\t'conditions' => $conditions,\n\t\t\t'fields' => array('User.id','User.username', 'User.first_name', 'User.last_name',\n\t\t\t\t'User.email', 'User.status', 'User.created', 'User.type'),\n\t\t\t'order' => array('User.username' => 'asc', 'User.first_name' => 'asc',\n\t\t\t\t'User.last_name' => 'asc')\n\t\t);\n\t\t$user_list = $this->paginate('User');\n\t\t$title_for_layout = 'Manage Users';\n \n\t\t$this->set(compact('user_list', 'title_for_layout'));\n\t}", "public function index(){\n $users = User::paginate(10); \n return view('admin.layout.users_table_layout',compact([\"users\"]));\n }", "public function _list()\n\t{\n\t\t_root::getRequest()->setAction('list');\n\t\t$tUsers = model_user::getInstance()->findAll();\n\n\t\t$oView = new _view('users::list');\n\t\t$oView->tUsers = $tUsers;\n\t\t$oView->showGroup = true;\n\t\t$oView->title = 'Tous les utilisateurs';\n\n\t\t$this->oLayout->add('work', $oView);\n\t}", "public function usersTable()\n {\n $users = User::all();\n return view('admin.users')->with('admin', Auth::user())\n ->with('users', $users);\n }", "public function render()\n {\n if(request()->has('search')){\n $search = request()->get('search');\n $users = User::where('email', 'like', '%'.$search.'%')->\n orWhere('name', 'like', '%'.$search.'%')->\n orWhere('surname', 'like', '%'.$search.'%')->paginate(20);\n }else{\n $users = User::all();\n }\n \n return view('components.admin-user-table')->with('users', $users);\n }", "public function index()\n {\n return view('admin.users',[\n 'users'=>User::all(),\n 'currentPage'=>'Our Team',\n 'middlePage'=>null,\n 'job_titles'=>JobTitle::all(),\n 'polyvalent'=>PolyvalentToggle::first(),\n ]);\n }", "function userListing()\n {\n if($this->isAdmin() == TRUE)\n {\n $this->loadThis();\n }\n else\n { \n $searchText = $this->security->xss_clean($this->input->post('searchText'));\n $data['searchText'] = $searchText;\n \n $this->load->library('pagination');\n \n $count = $this->user_model->userListingCount($searchText);\n\n\t\t\t$returns = $this->paginationCompress ( \"userListing/\", $count, 5 );\n \n $data['userRecords'] = $this->user_model->userListing($searchText, $returns[\"page\"], $returns[\"segment\"]);\n \n $this->global['pageTitle'] = 'Garuda Informatics : User Listing';\n \n $this->loadViews($this->view.\"users\", $this->global, $data, NULL);\n }\n }", "public function index()\n {\n return view('admin.users.index', ['users' => $this->repository->getSortableListViaPagination()]);\n }", "function index()\n {\n $data['teachers'] = $this->model->getUsers( 'teacher' );\n $data['parents'] = $this->model->getUsers( 'parent' );\n\n $this->template( 'guidance/user/index', $data );\n }", "public function index(){\n\t\t$data = array();\n\n\t\t$select_fields = '*';\n \t$is_multy_result = 2;\n\t\t$conditions = \"\";\n\t\t$data['users'] = $this->BlankModel->getTableData(USERS, $conditions, $select_fields, $is_multy_result);\t\n\t\t\t\t\n\t\tcommon_viewloader('users/index', $data);\n }", "public function buildListTemplate()\n {\n $this->addListColumn(\n SharpListTemplateColumnConfig::create(\"titre\")\n ->setSize(3)\n ->setHeading(\"Titre\")\n );\n\n $this->addListColumn(\n SharpListTemplateColumnConfig::create(\"soustitre\")\n ->setSize(3)\n ->setHeading(\"Sous-titre\")\n );\n }", "public function lst(){\n\t\t$args = $this->getArgs();\n\t\t$uid = $_SESSION[\"user\"][\"uid\"];\n\t\t$base_url = substr($_SERVER[\"REQUEST_URI\"], 0, strrpos($_SERVER[\"REQUEST_URI\"], \"/\") + 1);\n\t\t$header = array(\n\t\t\t\tsprintf(\"%s\", Translate::get(Translator::USER_LIST_HEADER_ID)),\n\t\t\t\tsprintf(\"%s\", Translate::get(Translator::USER_LIST_HEADER_EMAIL)),\n\t\t\t\tsprintf(\"%s\", Translate::get(Translator::USER_LIST_HEADER_FNAME)),\n\t\t\t\tsprintf(\"%s\", Translate::get(Translator::USER_LIST_HEADER_LNAME)),\n\t\t\t\tsprintf(\"%s\", Translate::get(Translator::USER_LIST_HEADER_PHONE))\n\t\t);\n\t\t\n\t\t$config = array(\n\t\t\t\t\"config\" => array(\n\t\t\t\t\t\t\"page\" => (isset($args[\"GET\"][\"page\"]) ? $args[\"GET\"][\"page\"] : System::PAGE_ACTUAL_DEFAULT),\n\t\t\t\t\t\t\"column\" => (isset($args[\"GET\"][\"column\"]) ? $args[\"GET\"][\"column\"] : System::SORT_DEFAULT_COLUMN),\n\t\t\t\t\t\t\"direction\" => (isset($args[\"GET\"][\"direction\"]) ? $args[\"GET\"][\"direction\"] : System::SORT_DES),\n\t\t\t\t\t\t\"actual_pagesize\" => (isset($_SESSION[\"page_size\"]) ? $_SESSION[\"page_size\"] : System::PAGE_SIZE_DEFAULT),\n\t\t\t\t\t\t\"data_count\" => $this->getModel()->getCountUserList(),\n\t\t\t\t\t\t\"disable_menu\" => true,\n\t\t\t\t\t\t\"disable_select\" => true,\n\t\t\t\t\t\t\"disable_pagging\" => false,\n\t\t\t\t\t\t\"disable_set_pagesize\" => false\n\t\t\t\t),\n\t\t\t\t\"form_url\" => array(\n\t\t\t\t\t\t\"page\" => $base_url . \"-%d-%d-%s\",\n\t\t\t\t\t\t\"header_sort\" => $base_url . \"-%d-%d-%s\",\n\t\t\t\t\t\t\"form_action\" => $base_url\n\t\t\t\t),\n\t\t\t\t\"item_menu\" => array(),\n\t\t\t\t\"select_item_action\" => array(),\n\t\t\t\t\"style\" => array(\n\t\t\t\t\t\t\"marked_row_class\" => \"marked\",\n\t\t\t\t\t\t\"count_box_class\" => \"count_box\",\n\t\t\t\t\t\t\"pagging_box_class\" => \"pagging_box\",\n\t\t\t\t\t\t\"actual_page_class\" => \"actual_page\",\n\t\t\t\t\t\t\"table_header_class\" => \"head\",\n\t\t\t\t\t\t\"table_id\" => \"user_lst\",\n\t\t\t\t\t\t\"select_form_id\" => \"\",\n\t\t\t\t\t\t\"pagesize_form_id\" => \"pagesize_box\",\n\t\t\t\t\t\t\"list_footer_id\" => \"\"\n\t\t\t\t)\n\t\t);\n\t\t$data = $this->getModel()->getUserList($config[\"config\"][\"page\"], $config[\"config\"][\"actual_pagesize\"], $config[\"config\"][\"column\"], $config[\"config\"][\"direction\"], $config[\"config\"][\"disable_pagging\"]);\n\t\t$out = Paginator::generatePage($header, $data, $config);\n\t\tinclude 'gui/template/UserTemplate.php';\n\t}", "public function admin_index() {\n $this->paginate = array(\n 'limit' => 10,\n 'order' => array(\n 'User.username' => 'asc',\n ) ,\n 'conditions' => array(\n 'User.status' => 1,\n ),\n );\n $users = $this->paginate('User');\n $this->set(compact('users'));\n }", "public function renderIn(){ \n $login = $this->hlp->logn();\n $this->template->isVendor = $this->listings->isVendor($login);\n $this->template->listings = $this->listings->getListings($login); \n $this->template->currentUser = $login;\n }", "public function userlist()\n {\n $filter = Param::get('filter');\n\n $current_page = max(Param::get('page'), SimplePagination::MIN_PAGE_NUM);\n $pagination = new SimplePagination($current_page, MAX_ITEM_DISPLAY);\n $users = User::filter($filter);\n $other_users = array_slice($users, $pagination->start_index + SimplePagination::MIN_PAGE_NUM);\n $pagination->checkLastPage($other_users);\n $page_links = createPageLinks(count($users), $current_page, $pagination->count, 'filter=' . $filter);\n $users = array_slice($users, $pagination->start_index -1, $pagination->count);\n \n $this->set(get_defined_vars());\n }", "public function index(UserDataTable $dataTable){\n return $dataTable->render('user::index');\n }", "function users(){\n\t\t\t$this->data[\"vista\"]\t=\t\"modules/administration/users\";\n\t\t\t$this->load->view(\"templates/template_main\", $this->data);\n\t\t}", "public static function showUserTable() {\n echo \"<table id='users'>\n <tr>\n <th></th>\n <th>Utilisateur</th>\n <th>Mail</th>\n <th>Date de naissance</th>\n <th>Note</th>\n <th>Voitures</th>\n <th>Commentaires</th>\n </tr>\";\n for ($i = 0; $i < count(User::$listOfUsers); $i++ ) {\n echo \"<tr>\";\n echo \"<td>\";\n $iLink = $i + 1;\n echo \"<a href='users.php?user=$iLink'>Voir</a>\";\n echo \"</td>\";\n echo \"<td>\";\n echo User::$listOfUsers[$i]->getFirstName() . \" \" . User::$listOfUsers[$i]->getLastName();\n echo \"</td>\";\n echo \"<td>\";\n echo User::$listOfUsers[$i]->getEmail();\n echo \"</td>\";\n echo \"<td>\";\n echo User::$listOfUsers[$i]->getBirthDate();\n echo \"</td>\";\n echo \"<td>\";\n echo User::$listOfUsers[$i]->getRate();\n echo \"</td>\";\n echo \"<td>\";\n echo User::$listOfUsers[$i]->getListOfCars();\n echo \"</td>\";\n echo \"<td>\";\n echo User::$listOfUsers[$i]->getListOfComments();\n echo \"</td>\";\n echo \"</tr>\";\n }\n echo \"</table>\";\n }", "public function listofUser()\n {\n return view('Admin.ShowallUser');\n }", "public function render()\n {\n $users = User::where(function ($query) {\n $query\n ->where('name', 'like', \"%{$this->search}%\")//A\n ->orWhere('email', 'like', \"%{$this->search}%\");//B\n })\n ->where('active', $this->filterByActive)//C\n ->when($this->sortField, function ($query) {\n $query->orderBy($this->sortField, $this->sortAsc ? 'asc' : 'desc');\n })\n ->paginate(10);\n return view('livewire.datatable', compact('users'));\n }", "public function index()\n {\n return view('admin/user-table/all-user');\n }", "public function list_user()\n\t{\n\t\tcheck_access_level_superuser();\n\t\t$data = [\n\t\t\t'list_user' => $this->user_m->get_cabang(),\n\t\t\t'list_cabang' => $this->data_m->get('tb_cabang')\n\t\t];\n\t\t$this->template->load('template2', 'user/list_user', $data);\n\t}", "protected function getTemplate() {\n\t\treturn new Template('Premanager', 'userForm');\n\t}", "public function index()\n {\n return view('admin.users.index')\n ->with('users',User::all())\n ->with('title','List Users')\n ->with('page_name_active',$this->page_name_active);\n }", "public function index() {\n $rows = AdminUser::paginate(10);\n return View::make(\"CoreCms::user.listing\")->with(\"models\", $rows);\n }", "public function setUp()\n {\n $this->addTemplate('VeniceAdminBundle:User:grid.html.twig');\n }", "public function user_list()\n\t\t{\n\t\t\t$this->is_login();\n\t\t\t$this->load->model('User_Profiles', 'up');\n\t\t\t$data['users'] = $this->up->get_all_users();\n\t\t\t$this->load->view('user_list-admin',$data);\n\t\t}", "function userListing()\n {\n if ($this->isAdmin() == TRUE) {\n $this->loadThis();\n } else {\n $searchText = $this->input->post('searchText');\n $searchStatus = $this->input->post('searchStatus');\n\n $this->load->library('pagination');\n\n $count = $this->user_model->userListingCount($this->global['level'], $searchText);\n\n $returns = $this->paginationCompress(\"userListing/\", $count, 5);\n\n $data['userRecords'] = $this->user_model\n ->userListing($this->global['level'], $searchText, $searchStatus, $returns[\"page\"], $returns[\"segment\"]);\n\n $this->global['pageTitle'] = '人员管理';\n $data['searchText'] = $searchText;\n $data['searchStatus'] = $searchStatus;\n\n $this->loadViews(\"systemusermanage\", $this->global, $data, NULL);\n }\n }", "public function index()\n {\n $this->context['data'] = $this->usersRepo->getAll();\n $this->render($this->context);\n }", "function view($data)\n{\n\t\t\n\tstartOfPage();\n\tstartContent();\t\n\t$users = $data[\"users\"];\n\techo '<table><tr><th>USERNAME</th><th>EMAIL</th></tr>';\n\tif (!empty($users))\n\t{\n\tforeach ($users as $user)\n\t\t{\n\t\techo '<tr><td>',$user[\"username\"],'</td>';\n\t\techo '<td>',$user[\"email\"],'</td></tr>';\n\t\t}\n\n }\n echo '</table>';\n\tendContent();\n\tendOfPage();\n\n}", "public function index()\n {\n return view('userTable');\n }", "public function allUsers()\n\t{\n\t\t$data['users'] = $this->MainModel->selectAll('users', 'first_name');\n\t\t$this->load->view('layout/header');\n\t\t$this->load->view('layout/sidebar');\n\t\t$this->load->view('template/all-users', $data);\n\t\t$this->load->view('layout/footer');\n\t}", "function render_table( $workshops, $orderBy, $order, $all_count, $filtered_count, $my_count, $limit, $paged ) {\n?>\n\t\t<?php $this->render_subsubsub( $all_count, $my_count ); ?>\n\t\t\t<?php $this->render_table_nav( \"bottom\", $all_count, $filtered_count, $my_count, $limit, $paged ); ?>\n\n\t\t\t<table class=\"wp-list-table widefat fixt posts\" cellspacing=\"0\">\n\t\t\t\t<thead>\n\t\t\t\t\t<?php $this->render_table_header_footer($orderBy, $order); ?>\n\t\t\t\t</thead>\n\t\t\t\t<tfoot>\n\t\t\t\t\t<?php $this->render_table_header_footer($orderBy, $order); ?>\n\t\t\t\t</tfoot>\n\t\t\t\t<?php $this->render_table_body($workshops); ?>\n\n\t\t\t</table>\n\t\t\t<?php $this->render_table_nav( \"bottom\", $all_count, $filtered_count, $my_count, $limit, $paged ); ?>\n\n<?php\n\t}", "public function showListAction() {\n $users = $this->getDoctrine()\n ->getRepository(User::class)\n ->findAll();\n return $this->render(':Security\\User:users.html.twig', [\n 'users' => $users\n ]);\n }", "public function getList()\n\t{\n\t\t//\n\t\t$user = Auth::user();\n\t\t\n\t\t$disableChange = DEFAULT_0;\n\t\t$headerShop = AuthController::checkUserURL();\n\t\tif ( empty($headerShop) ) {\n\t\t\treturn View::make('admin.manage.user.user', compact('user', 'disableChange'));\n\t\t} else {\n\t\t\treturn View::make('admin.manage.user.user', compact('headerShop', 'user', 'disableChange'));\n\t\t}\n\t}", "public function showUsers()\n {\n $userRepo = $this->getDoctrine()->getRepository(User::class);\n $users = $userRepo->getUsersOrderByAsc();\n\n return $this->render('admin/list-of-users.html.twig', [\n 'users' => $users\n ]);\n }", "public function index() {\n if(!$this->user) {\n Router::redirect('/');\n }\n \n \n # First, set the content of the template with a view file\n\t$this->template->content = View::instance('v_users_index');\n \n #pass the user_id over to the actual view\n $this->template->content->user_id = $this->user->user_id;\n \n\t# Now set the <title> tag\n\t$this->template->title = \"OPA!\";\n $q = 'SELECT \n\t posts.content,\n \t posts.created,\n\t posts.user_id AS post_user_id,\n \t users_users.user_id AS follower_id,\n\t users.first_name,\n \t users.last_name\n\t FROM posts\n \tINNER JOIN users_users \n\t ON posts.user_id = users_users.user_id_followed\n \tINNER JOIN users \n\t ON posts.user_id = users.user_id\n\t WHERE users_users.user_id = '.$this->user->user_id;\n\n\t\t$posts = DB::instance(DB_NAME)->select_rows($q);\n\t\t$this->template->content->posts = $posts;\n\t\t\n\t# Render the view\n\techo $this->template;\n \n }", "public function admin_index() {\n\t\t$this->layout=\"admindefault\";\n\t\t$this->adminsessionchecked();\n\t\t$this->User->recursive = 0;\n\t\t$this->Paginator->settings=array(\n\t\t\t'conditions'=>array(\n\t\t\t\t'User.is_deleted'=>'0'\n\t\t\t)\n\t\t);\n\t\t$this->set('users', $this->Paginator->paginate());\n\t\t//$this->set('allowedimage',$this->allowedimageType);\n\t}", "public function actionIndex()\n {\n $request = Yii::$app->request;\n\n $params = ArrayHelper::merge($request->get(), [\n 'perPage' => $request->get('perPage', Yii::$app->params['per_pages'][0]),\n 'orderCol' => $request->get('orderCol', 'id'),\n 'orderDir' => $request->get('orderDir', 'asc')\n ]);\n\n $pageTitle = Yii::t('app', 'List of users');\n\n $breadcrumbs = [\n ['url' => ['/admin'], 'label' => Yii::t('app', 'Admin panel'), ],\n ['url' => ['/admin/user/list'], 'label' => $pageTitle, 'class' => 'active']\n ];\n\n $data = User::getList($params);\n\n return $this->render('/admin/user/list.twig', [\n 'params' => $params,\n 'pages' => $data['pages'],\n 'users' => $data['models'],\n 'pageTitle' => $pageTitle,\n 'breadcrumbs' => $breadcrumbs,\n ]);\n }", "function listing_home () {\n\n\t\t$this->authentication->is_admin_logged_in (true);\n\t\tisAdminSection();\n\n\t\t$this->mcontents['page_title'] = $this->mcontents['page_heading']\t= 'Users by Roles';\n\n\t\t$this->_requireUserRolesDropdown();\n\n\t\tloadAdminTemplate('user/listing_home', $this->mcontents);\n\t}", "public function index(UserDataTable $dataTable) \n {\n return $dataTable->render('users.index');\n }", "private function get_template() {\n\t\tif ( ! empty( $_REQUEST['action'] ) ) {\n\t\t\t$action = sanitize_title( $_REQUEST['action'] );\n\t\t\tif ( has_action( 'mylisting/user-listings/handle-view:'.$action ) ) {\n\t\t\t\treturn do_action( 'mylisting/user-listings/handle-view:'.$action );\n\t\t\t}\n\t\t}\n\n\t\t$allowed_statuses = [ 'publish', 'pending', 'pending_payment', 'expired', 'preview' ];\n\t\t$default_statuses = apply_filters(\n\t\t\t'mylisting/dashboard/default-listing-statuses',\n\t\t\t$allowed_statuses\n\t\t);\n\n\t\t// filter by listing status\n\t\tif ( ! empty( $_GET['status'] ) && in_array( $_GET['status'], $allowed_statuses, true ) ) {\n\t\t\t$active_status = $_GET['status'];\n\t\t} else {\n\t\t\t$active_status = 'all';\n\t\t}\n\n\t\tif ( $active_status === 'pending_payment' ) {\n\t\t\t$this->pending_orders = $this->get_pending_orders();\n\t\t}\n\n\t\t// get user listings\n\t\t$query = new \\WP_Query;\n\t\t$query_args = [\n\t\t\t'post_type' => 'job_listing',\n\t\t\t'post_status' => $active_status === 'all' ? $default_statuses : $active_status,\n\t\t\t'ignore_sticky_posts' => 1,\n\t\t\t'posts_per_page' => 12,\n\t\t\t'paged' => ! empty( $_GET['pg'] ) ? absint( $_GET['pg'] ) : 1,\n\t\t\t'orderby' => 'date',\n\t\t\t'order' => 'DESC',\n\t\t\t'author' => get_current_user_id(),\n\t\t];\n\n\t\t// filter by listing type\n\t\t$active_type = '';\n\t\tif ( ! empty( $_GET['filter_by_type'] ) ) {\n\t\t\tif ( $type = \\MyListing\\Src\\Listing_Type::get_by_name( $_GET['filter_by_type'] ) ) {\n\t\t\t\t$query_args['meta_key'] = '_case27_listing_type';\n\t\t\t\t$query_args['meta_value'] = $type->get_slug();\n\t\t\t\t$active_type = $type->get_slug();\n\t\t\t}\n\t\t}\n\n\t\t// get listing types relevant to the current user and sort alphabetically\n\t\t$listing_types = $this->get_types_relevant_to_current_user();\n\t\tusort( $listing_types, function( $a, $b ) {\n\t\t\tstrcmp( $a->get_plural_name(), $b->get_plural_name() );\n\t\t} );\n\n\t\t// get listings and convert WP_Posts to Listing objects\n\t\t$listings = array_filter( array_map( function( $item ) {\n\t\t\treturn \\MyListing\\Src\\Listing::get( $item );\n\t\t}, $query->query( $query_args ) ) );\n\n\t\t// user stats for dashboard cards\n\t\t$stats = mylisting()->stats()->get_user_stats( get_current_user_id() );\n\n\t\t$endpoint = wc_get_account_endpoint_url( \\MyListing\\my_listings_endpoint_slug() );\n\n\t\t// load template\n\t\tmylisting_locate_template( 'templates/dashboard/my-listings.php', [\n\t\t\t'query' => $query,\n\t\t\t'listings' => $listings,\n\t\t\t'stats' => $stats,\n\t\t\t'endpoint' => $endpoint,\n\t\t\t'listing_types' => $listing_types,\n\t\t\t'active_status' => $active_status,\n\t\t\t'active_type' => $active_type,\n\t\t] );\n\t}", "public function index()\n {\n $users = $this->userRepo->getDataPaginate($this->limit);\n\n return view('admin.user.index', compact('users'));\n }", "function index() \n { \n $data['profile_info'] = $this->tank_auth->get_user_by_id($this->tank_auth->get_user_id(),TRUE);\n $data['profile_detail'] = $this->tank_auth->get_user_profile_detail($this->tank_auth->get_user_id()); \t \n $this->_template($data,$templatename='profile'); \n }", "public static function tableName()\r\n {\r\n return '{{%users}}';\r\n }", "public function index() {\n\t\t$user = $this->User->read(null, $this->Auth->user('id'));\n\t\t$this->User->recursive = 0;\n\t\t$this->set('users', $this->paginate());\n\t\t$this->set('userId', $user['User']['id']);\n\t\t$this->set('userType', $user['User']['type']);\n\t}", "protected function show()\n {\n $userModel = config('admin.database.users_model');\n\n $headers = ['User Name', 'Name', 'Roles', 'Permissions', 'Routes', 'Actions', 'Created', 'Updated'];\n\n $userslist = [];\n foreach ($userModel::all() as $user) {\n $roles = implode(',', $user->roles->pluck('name')->toArray());\n\n $userdata = [\n 'username' => $user->username,\n 'name' => $user->name,\n 'roles' => $roles,\n 'permission' => implode(\"\\n\", $user->allPermissions(true)->pluck('name')->toArray()),\n 'routes' => implode(\"\\n\", $user->allRoutes(true)->pluck('http_path')->toArray()),\n 'actions' => implode(\"\\n\", $user->allActions(true)->pluck('name')->toArray()),\n 'created_at' => date($user->created_at),\n 'updated_at' => date($user->updated_at),\n ];\n\n array_push($userslist, $userdata);\n }\n\n $this->table($headers, $userslist);\n }", "public function index()\n {\n\n $users = User::paginate($this->pagination);\n\n $sno = (($users->CurrentPage() - 1) * $this->pagination) + 1;\n\n return view('admin.manage.users.index',[\n 'users' => $users,\n 'sno' => $sno,\n ]);\n }", "public function roleableTableName() {\n return '{{%user}}';\n }", "public function index() {\n $this->view->users = $this->model->getAllUsers();\n $this->view->errors = $this->model->errors;\n $this->view->render('users/index');\n }", "public function render()\n {\n\n parent::render();\n\n return \"usergroup_list.tpl\";\n }", "function listUser()\n {\n $conn = new mysqli(SERVER, USER, PASSWORD, DB);\n $sql = \"SELECT id_user, tb_user.nombre, apellidos, tb_tip_doc.tip_doc AS tip_doc,num_doc, correo,\n celular, password, tb_tip_user.nombre AS tip_user, tb_business.nombre AS nombreempresa, date_create\n FROM tb_user\n INNER JOIN tb_tip_doc ON tb_user.id_tip_doc=tb_tip_doc.id_tip_doc\n INNER JOIN tb_tip_user ON tb_user.id_tip_user=tb_tip_user.id_tip_user\n INNER JOIN tb_business ON tb_user.id_business=tb_business.id_business \";\n $result = $conn->query($sql);\n if ($result->num_rows > 0)\n {\n $table = \"\";\n $table .=\"<table id='example2' class='table table-bordered table-hover'>\";\n $table .=\"<thead>\";\n $table .=\"<tr>\";\n $table .=\"<th>ID</th>\";\n $table .=\"<th>NOMBRE</th>\";\n $table .=\"<th>APELLIDOS</th>\";\n $table .=\"<th>TIP DOC</th>\";\n $table .=\"<th>DOCUMENTO</th>\";\n $table .=\"<th>CORREO</th>\";\n $table .=\"<th>CELULAR</th>\";\n $table .=\"<th>TIP USUARIO</th>\";\n $table .=\"<th>EMPRESA</th>\";\n $table .=\"<th>CREACION</th>\";\n $table .=\"<th>OPCIONES</th>\";\n $table .=\"</tr>\";\n $table .=\"</thead>\";\n // output data of each row\n while($row = $result->fetch_assoc())\n {\n $table .=\"<thead>\";\n $table .= \"<tr>\";\n $table .= \"<td>\".$row['id_user'].\"</td>\";\n $table .= \"<td>\".$row['nombre'].\"</td>\";\n $table .= \"<td>\".$row['apellidos'].\"</td>\";\n $table .= \"<td>\".$row['tip_doc'].\"</td>\";\n $table .= \"<td>\".$row['num_doc'].\"</td>\";\n $table .= \"<td>\".$row['correo'].\"</td>\";\n $table .= \"<td>\".$row['celular'].\"</td>\";\n $table .= \"<td>\".$row['tip_user'].\"</td>\";\n $table .= \"<td>\".$row['nombreempresa'].\"</td>\";\n $table .= \"<td>\".$row['date_create'].\"</td>\";\n $table .= \"<td><a href=''><i class='nav-icon fas fa-edit' style='color:#239200;'></i></a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\";\n $table .= \"<a href=''><i class='nav-icon fas fa-trash-alt' style='color:red;'></i></a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\";\n $table .= \"<a href=''><i class='nav-icon fas fa-info-circle' style='color:blue;'></i></td>\";\n $table .= \"</tr>\";\n $table .=\"</thead>\";\n }\n $table .=\"</table>\";\n return $table;\n\n }\n\n }", "function admin_index() {\n\n\t\t$this->User->recursive = 0;\n\n\t\t/**\n\t\t * Put all users in \"users\".\n\t\t * $users will be available in the view.\n\t\t */\n\t\t$this->set('users', $this->paginate());\n\n\t}", "public function list() {\n $users = User::orderBy('name')->paginate(10);\n $repository = new Repository(compact('users'));\n \n $layout = Layout::blank([\n Layout::view('vendor.platform.users.list')\n ]);\n \n return $layout->build($repository);\n }", "function displayAllUser() {\n\t\t$sql = \"SELECT * FROM accounts\";\n\t\t$result = $this->connection->query($sql);\n\t\techo \"Displays all users\";\n\t\techo '<table style=\"border-style: ridge; border-width:6px\">';\n\t\techo '<th style=\"text=align:center;font-weight:bold\">ID</th>';\n\t\techo '<th style=\"text=align:center;font-weight:bold\">Email</th>';\n\t\techo '<th style=\"text=align:center;font-weight:bold\">First Name</th>';\n\t\techo '<th style=\"text=align:center;font-weight:bold\">Last Name</th>';\n\t\techo '<th style=\"text=align:center;font-weight:bold\">Phone</th>';\n\t\techo '<th style=\"text=align:center;font-weight:bold\">Birthday</th>';\n\t\techo '<th style=\"text=align:center;font-weight:bold\">Gender</th>';\n\t\techo '<th style=\"text=align:center;font-weight:bold\">Password</th>';\n\t\techo '</tr>';\n\t\t\n\t\twhile($row = $result->fetch_assoc()) {\n\t\t\techo \"<tr>\";\n\t\t\techo \"<td>\".$row[\"id\"].\"</td>\";\n\t\t\techo \"<td>\".$row[\"email\"].\"</td>\";\n\t\t\techo \"<td>\".$row[\"fname\"].\"</td>\";\n\t\t\techo \"<td>\".$row[\"lname\"].\"</td>\";\n\t\t\techo \"<td>\".$row[\"phone\"].\"</td>\";\n\t\t\techo \"<td>\".$row[\"birthday\"].\"</td>\";\n\t\t\techo \"<td>\".$row[\"gender\"].\"</td>\";\n\t\t\techo \"<td>\".$row[\"password\"].\"</td>\";\n\t\t\techo \"</tr>\";\n \t}\n \techo \"</table>\";\n\t\techo \"<br>\";\n\t}", "public function index()\n {\n $tableRoute = route('admin::users::users.table');\n\n return view('backend.users.index',compact('tableRoute'));\n }", "public function Index()\n\t{\n\t\t$this->views->SetTitle('User Profile');\n\t\t$this->views->AddView('user/index.tpl.php', array(\n\t\t\t'is_authenticated'\t=> $this->user['isAuthenticated'],\n\t\t\t'user'\t\t\t\t=> $this->user,\n\t\t\t'allow_create_user'\t=> $this->config['create_new_users'],\n\t\t\t),\n\t\t'primary'\n\t\t);\n\t}", "public function users() {\n\t\t$this->template->content = View::instance(\"v_posts_users\");\n\t\t\n\t\t\n\t\t# Grab all the users\n\t\t$q = \"SELECT * \n\t\t\tFROM users WHERE email <> '\".$this->user->email.\"'\";\n\t\t\n\t\t$users = DB::instance(DB_NAME)->select_rows($q);\n\t\t\n\t\t# Figure out the connections\n\t\t$q = \"SELECT * \n\t\t\tFROM users_users \n\t\t\tWHERE user_id = \".$this->user->user_id;\n\t\t\n\t\t$connections = DB::instance(DB_NAME)->select_array($q, 'user_id_followed');\n\t\t\n\t\t#echo Debug::dump($connections,\"connections\");\n\t\t\n\t\n\t\t# Pass data to the view\n\t\t$this->template->content->connections = $connections;\n\t\t$this->template->content->users = $users;\n\t\t\n\t\t# Render the view\n\t\techo $this->template;\n\t\n\t}", "public function index()\n {\n return view('backend.user.list_user');\n }", "public function index()\n {\n return view('admin.user.index', [\n 'paginator' => User::orderBy('created_at', 'desc')->paginate()\n ]);\n }", "public function index()\n {\n $UserLocated = $this->UserData->FUserLogedInData(); \n\n $dados = [\n 'titulo' => 'WarnerAcademy | My Profile.',\n 'UserData' =>$UserLocated\n ]; \n \n \n /* Se nao Estiver Logado Mostrar a Home Page como Default.*/\n $template = $this->twig->loadTemplate('MyProfile.html');\n $template->display($dados); \n }", "public function wcufd_list_users( $atts ) {\n\n ob_start();\n if ( current_user_can('administrator') ) {\n $number = 10; //max display per page\n $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; //current number of page\n $offset = ($paged - 1) * $number; //page offset\n $count_users = count_users(); // get the count of users\n $total_users = $count_users['total_users'];//count total users\n $total_pages = ($total_users / $number); // get the total pages by dividing the total users to the maximum numbers of user to be displayed\n $total_pages = is_float($total_pages) ? intval($total_users / $number) + 1 : intval($total_users / $number); //Check if the total pages has a decimal we will add + 1 page\n $args = array(\n 'offset' => $offset,\n 'number' => $number,\n );\n $user_query = get_users($args);\n $total_query = count($user_query);//count the maximum displayed users\n\n wp_enqueue_script('wcufd-front-end-js'); //enqueue script here with the shortcode\n wp_enqueue_style('wcufd-front-end-style'); //enqueue tyle here with the shortcode\n echo '<div class=\"wcufd-container\">';\n echo '<div class=\"wcufd-loading\"></div>'; //loader class element\n echo '<div class=\"wcufd-filter-container\">';\n include_once( plugin_dir_path( __FILE__ ). 'templates/filter-form.php' );\n echo '</div>';\n\n echo '<div class=\"wcufd-table-list\">';\n include_once( plugin_dir_path( __FILE__ ). 'templates/html-template-user.php' );\n echo '</div>';\n echo '</div>';\n }\n\n return ob_get_clean();\n }", "public function html()\n {\n return $this->builder()\n ->setTableId('user-table')\n ->columns($this->getColumns())\n ->minifiedAjax()\n ->orderBy(2)\n ->parameters([\n 'pageLength' => 50,\n ]);\n }", "function listUsers()\n{\n require_once($_SERVER[\"DOCUMENT_ROOT\"].\"/config/config.php\");\n require_once($_SERVER[\"DOCUMENT_ROOT\"].\"/class/autoload.php\");\n require_once($_SERVER[\"DOCUMENT_ROOT\"].\"/vendor/autoload.php\");\n $db = new cMariaDb($Cfg);\n\n // Generateur de templates\n $tpl = new Smarty();\n $tpl->template_dir = $_SERVER[\"DOCUMENT_ROOT\"].\"/tools/templates\";\n $tpl->compile_dir = $_SERVER[\"DOCUMENT_ROOT\"].\"/templates_c\";\n\n $sSQL = \"SELECT id, sNom, sPrenom, sEmail, sTelMobile, sLogin FROM sys_user WHERE bActive=1 ORDER BY sNom, sPrenom;\";\n\n // Récupérer les éléments \n $tpl->assign(\"Users\",$db->getAllFetch($sSQL));\n $sHtml = $tpl->fetch(\"editUsers.smarty\");\n return [\"Errno\" => 0, \"html\" => $sHtml ];\n}", "function show_list() {\n\t\tif(!has_permission(3)) {\n\t\t\tset_warning_message('Sory you\\'re not allowed to access this page.');\n\t\t\tredirect('global/dashboard');\n\t\t\texit;\n\t\t}\n\t\t\n\t\t$this->output_head['function'] = __FUNCTION__;\n\n\t\t$this->output_head['style_extras'] = array(assets_url() . '/plugins/datatables/dataTables.bootstrap.css');\n\t\t$this->output_head['js_extras'] = array(assets_url() . '/plugins/datatables/jquery.dataTables.min.js',\n\t\t\t\t\t\t\t\t\t\t\t\tassets_url() . '/plugins/datatables/dataTables.bootstrap.min.js');\n\t\t$this->output_head['js_function'] = array();\n\t\t$this->load->model('user_model');\n\t\t\n\t\t$this->load->view('global/header', $this->output_head);\n\t\t\n\t\t$this->output_data['title'] = 'Users Manager';\n\t\t$this->load->view('users', $this->output_data);\n\t\t$this->load->view('global/footer');\n\t}", "public function index()\n {\n\n\n $list = users::where('status', '!=', '2')\n ->paginate(10);\n // dd($list);\n // ->get();\n $data = [\n 'pagename' => $this->pagename,\n 'route' => $this->route,\n 'list' => $list\n ];\n return view('backend.user.list', $data);\n }", "public function index() {\n View::share('title', 'Felhasználók');\n $this->layout->content = View::make('admin.users.index')->with('users', User::all(['id','first_name','last_name','created_at','last_login','email','phone']));\n }", "public function index()\n\t{\n\t\t$searchKeyword = Input::get('q', '');\n\t\t$searchRoles = Input::get('roles', array());\n\n\t\t// Get Users (with roles) and limit it to only 30 results for\n\t\t// pagination. Don't you just love it when pagination simply works.\n\t\t$eloquent = App::make('orchestra.user')->search($searchKeyword, $searchRoles)->paginate();\n\t\t$roles = App::make('orchestra.role')->lists('name', 'id');\n\n\t\t// Build users table HTML using a schema liked code structure.\n\t\t$table = $this->presenter->table($eloquent);\n\n\t\tEvent::fire('orchestra.list: users', array($eloquent, $table));\n\n\t\t// Once all event listening to `orchestra.list: users` is executed,\n\t\t// we can add we can now add the final column, edit and delete \n\t\t// action for users.\n\t\t$this->presenter->actions($table);\n\n\t\tSite::set('title', trans('orchestra/foundation::title.users.list'));\n\n\t\treturn View::make('orchestra/foundation::users.index', array(\n\t\t\t'eloquent' => $eloquent,\n\t\t\t'roles' => $roles, \n\t\t\t'searchKeyword' => $searchKeyword,\n\t\t\t'searchRoles' => $searchRoles,\n\t\t\t'table' => $table, \n\t\t));\n\t}", "public function index()\n {\n return view('dashboard.user.index')\n ->with([\n 'page_title' => trans('lang.user.page_title'),\n 'entity' => trans('lang.user.entity'),\n ]);\n }", "public function index()\n {\n return Inertia::render('User/Index', [\n 'users' => User::with('userType')->get(),\n 'userTypes' => UserType::all()\n ]);\n }", "public function users() {\n\t $this->template->content = View::instance('v_posts_users');\n\t $this->template->title = \"Users\";\n\n\t # Build the query to get all the users\n\t $q = \"SELECT *\n\t FROM users\";\n\n\t # Execute the query to get all the users. \n\t # Store the result array in the variable $users\n\t $users = DB::instance(DB_NAME)->select_rows($q);\n\n\t # Build the query to figure out what connections does this user already have? \n\t # I.e. who are they following\n\t $q = \"SELECT * \n\t FROM users_users\n\t WHERE user_id = \".$this->user->user_id;\n\n\t # Execute this query with the select_array method\n\t # select_array will return our results in an array and use the \"users_id_followed\" field as the index.\n\t # This will come in handy when we get to the view\n\t # Store our results (an array) in the variable $connections\n\t $connections = DB::instance(DB_NAME)->select_array($q, 'user_id_followed');\n\n\t # Pass data (users and connections) to the view\n\t $this->template->content->users = $users;\n\t $this->template->content->connections = $connections;\n\n\t # Render the view\n\t echo $this->template;\n\t}", "public function htmlTemplate()\n\t{\t\n\t\treturn 'bankLoanRows';\n\t}", "function index() {\n\t\n\t\t$users = $this->user->getAll();\n\t\t\n\t\t// if user is logged in, remove them from the list\n\t\tif($this->session->has_userdata(\"user_id\"))\n\t\t{\n\t\t\t$i = 0;\n\t\t\t$row = null;\n\t\t\tforeach($users as $u)\n\t\t\t{\n\t\t\t\tif($u['userid'] == $this->session->userdata(\"user_id\"))\n\t\t\t\t{\n\t\t\t\t\t$row = $i;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\t\n\t\t\tunset($users[$row]);\n\t\t}\n\t\t\n\t\t// set data for display and linking to profiles\n\t\t$i = 0;\n\t\tforeach($users as $u)\n\t\t{\t\t\t\n\t\t\tif($u['type'] == 1)\n\t\t\t{\n\t\t\t\t$users[$i]['typename'] = 'user';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$users[$i]['typename'] = 'organization';\n\t\t\t}\n\t\t\t\n\t\t\t$users[$i]['matchPercent'] = $this->matchPercentage( $u['userid'], $u['type'], $u['typeid'] );\n\t\t\t\n\t\t\t$i++;\n\t\t}\n\t\t\n\t\tusort($users, function($a, $b) {\n\t\t\treturn $b['matchPercent'] - $a['matchPercent'];\n\t\t});\n\t\t\n\t\t$this->data['users'] = $users;\n $this->data['pagebody'] = 'search'; // this is the view we want shown\n\t\t\n $this->render();\n }", "public function CreateTemplatesHTMLList($pageno,$numrows) {\r\n\t\t$html = \"\";\r\n\t\tif ($this->user->uadmin == '1') {\r\n\t\t\t$html .= \"<p><a href=\\\"{$this->BaseURL}template\\\">Create new template</a></p>\";\r\n\t\t} else {\r\n\t\t\t$html .= \"<p>Please login as administrator in order to view this page.</p>\";\r\n \treturn $html;\r\n\t\t}\r\n\r\n\t\t$sql = \"select count(*) from templates\";\r\n\t\t$result = $this->dbconn->query($sql);\r\n\t\t$row = $result->fetch_row();\r\n\t\t$totalmatches = $row[0];\r\n\t\t$result->close();\r\n\t\tif ($totalmatches == 0) {\r\n\t\t\t$html .= \"<p>There are no templates.</p>\";\r\n\t\t\treturn $html;\r\n\t\t}\r\n\r\n\t\t$lastpage = ceil($totalmatches/$numrows);\r\n\t\t\r\n\t\t$pageno = (int)$pageno;\r\n\t\tif ($pageno > $lastpage) {\r\n\t\t\t$pageno = $lastpage;\r\n\t\t} elseif ($pageno < 1) {\r\n\t\t\t$pageno = 1;\r\n\t\t}\r\n\t\t\r\n\t\t$limit = \"limit \" . ($pageno - 1) * $numrows . \",$numrows\";\r\n\t\t\r\n\t\t$sql = \"select t_id, t_name from templates order by t_name $limit\";\r\n\t\t$result = $this->dbconn->query($sql);\r\n\t\t\r\n\t\t$html .= \"<table class=\\\"table table-striped table-bordered\\\"><thead><tr><th>Name of template</th></tr></thead><tbody>\";\r\n\t\t\r\n\t\twhile($row = $result->fetch_array()) {\r\n\t\t\t$tid = $row[\"t_id\"];\r\n\t\t\t$tname = $row[\"t_name\"];\r\n\t\t\t$html .= \"<tr><td><a href=\\\"{$this->BaseURL}template/{$tid}\\\">$tname</a></td></tr>\";\r\n\t\t}\r\n\r\n\t\t$html .= \"</tbody></table>\";\r\n\t\t\r\n\t\t$result->close();\r\n\t\t\r\n\t\t$html .= \"<p>Page $pageno of $lastpage - $totalmatches records found</p>\";\r\n\r\n\t\t// add in navigation to browse large results lists.\r\n\t\t$html .= \"<ul class=\\\"pager\\\">\";\r\n\t\tif ($pageno == 1) {\r\n\t\t $html .= \"<li class=\\\"previous disabled\\\"><a href=\\\"#\\\">First</li>\";\r\n\t\t $html .= \"<li class=\\\"previous disabled\\\"><a href=\\\"#\\\">Previous</li>\";\r\n\t\t} else {\r\n\t\t $prevpage = $pageno - 1;\r\n\t\t $html .= \"<li class=\\\"previous\\\"><a href=\\\"{$this->BaseURL}templates/1\\\">First</a></li>\";\r\n\t\t $html .= \"<li class=\\\"previous\\\"><a href=\\\"{$this->BaseURL}templates/{$prevpage}\\\">Previous</a></li>\";\r\n\t\t}\r\n\t\tif ($pageno == $lastpage) {\r\n\t\t $html .= \"<li class=\\\"next disabled\\\"><a href=\\\"#\\\">Last</li>\";\r\n\t\t $html .= \"<li class=\\\"next disabled\\\"><a href=\\\"#\\\">Next</li>\";\r\n\t\t} else {\r\n\t\t $nextpage = $pageno + 1;\r\n\t\t $html .= \"<li class=\\\"next\\\"><a href=\\\"{$this->BaseURL}templates/{$lastpage}\\\">Last</a></li>\";\r\n\t\t $html .= \"<li class=\\\"next\\\"><a href=\\\"{$this->BaseURL}templates/{$nextpage}\\\">Next</a></li>\";\r\n\t\t}\r\n\t\t$html .= \"</ul>\";\r\n\r\n\t\treturn $html;\r\n\t}", "protected function setDefaultTemplate(): void\n {\n $this->setDefaultData(function(Generator $faker) {\n return [\n 'password' => 'xx',\n 'username' => $faker->email,\n 'modified' => time(),\n // set the model's default values\n // For example:\n // 'name' => $faker->lastName\n ];\n });\n }", "function plugin_top_active_users_showTwig($params) {\r\n\r\n\tglobal $CurrentHandler, $config;\r\n\r\n\treturn plugin_top_active_users($params['number'], $params['mode'], $params['template'], isset($params['cacheExpire']) ? $params['cacheExpire'] : 0);\r\n}", "public function userlistAction()\n\t{\n\t\t$users = $this->userService->getUserList(array(), false);\n\n\t\t$this->view->roles = za()->getUser()->getAvailableRoles();\n\t\t$this->view->users = $users;\n\t\t$this->renderView('admin/user-list.php');\n\t}", "public function index()\n {\n $users = $this->userService->getUserWithPaginate();\n return view('admin.user.list', compact('users'));\n }", "public function index()\n {\n $users = $this->users->sortable(['created_at' => 'desc'])->paginate(10);\n\n return view('admin.users.index', ['users' => $users]);\n }", "public function index()\n {\n $users = $this->users->sortable(['created_at' => 'desc'])->paginate(10);\n\n return view('admin.users.index', ['users' => $users]);\n }", "public function getListTpl(){\n return $this->templates['list'];\n }", "function eve_api_user_list_user_general_page($id, $type) {\n $header = array(\n 'characterName' => array(\n 'data' => t('Name'),\n 'field' => 'c.characterName',\n ),\n 'corporationName' => array(\n 'data' => t('Corporation'),\n 'field' => 'c.corporationName',\n ),\n 'allianceName' => array(\n 'data' => t('Alliance'),\n 'field' => 'c.allianceName',\n ),\n 'joined' => array(\n 'data' => t('Joined'),\n ),\n 'access' => array(\n 'data' => t('Last Login'),\n ),\n );\n\n $options = $output = array();\n\n $query = db_select('users', 'u')\n ->extend('PagerDefault')\n ->extend('TableSort');\n $query_join = $query->join('eve_api_characters', 'c', 'u.uid = c.uid');\n $query->addField($query_join, 'characterID', 'cID');\n $query->fields('u', array(\n 'created',\n 'access',\n 'uid',\n 'characterID',\n ))\n ->fields('c', array(\n 'characterName',\n 'corporationID',\n 'corporationName',\n 'corporationTicker',\n 'allianceID',\n 'allianceName',\n 'allianceTicker',\n ));\n\n if (isset($id)) {\n $or = db_or();\n $or->condition('c.allianceID', $id, '=');\n $or->condition('c.corporationID', $id, '=');\n $query->condition($or);\n }\n\n $query->condition('c.deleted', 0, '=')\n ->condition('u.status', 1, '=')\n ->condition('u.characterID', 0, '!=')\n ->limit(20)\n ->orderByHeader($header);\n $result = $query->execute();\n\n if ($result->rowCount()) {\n foreach ($result->fetchAll() as $row) {\n $options[] = array(\n 'characterName' => l($row->characterName, 'eve_api/user_list/' . $row->cID),\n 'corporationName' => l($row->corporationName, 'eve_api/user_list/' . $row->corporationID) . check_plain(' [' . $row->corporationTicker . ']'),\n 'allianceName' => ($row->allianceID == 0) ? l(t('None'), 'eve_api/user_list/0') : l($row->allianceName, 'eve_api/user_list/' . $row->allianceID) . check_plain(' [' . $row->allianceTicker . ']'),\n 'joined' => ($row->characterID == $row->cID) ? check_plain(date('Y-m-d H:i:s', $row->created)) : '',\n 'access' => ($row->characterID == $row->cID) ? ($row->access == 0) ? '' : check_plain(date('Y-m-d H:i:s', $row->access)) : '',\n );\n }\n }\n\n switch ($type) {\n default:\n case 0:\n $title = t('List of All Characters and some basic information.');\n break;\n\n case 1:\n $title = t('List of Corporation Characters and some basic information.');\n break;\n\n case 2:\n $title = t('List of Alliance Characters and some basic information.');\n break;\n }\n\n $output['user_list_description'] = array(\n '#type' => 'item',\n '#title' => $title,\n '#weight' => 0,\n );\n\n $output['user_list'] = array(\n '#type' => 'markup',\n '#markup' => theme('table', array(\n 'header' => $header,\n 'rows' => $options,\n )),\n '#weight' => 10,\n );\n\n $output['page'] = array(\n '#theme' => 'pager',\n '#weight' => 20,\n );\n\n return $output;\n}", "public function index()\n {\n $users = $this->userRepository->getPaginate();\n \n return view('admin.users.index', compact('users'));\n }", "public function index()\n {\n return view('administration::user.index')\n ->withUsers($this->user->all());\n }", "public function user_list()\n {\n \n \t$users = User::all();\n\n $data = array('users' => $users);\n\n return view('manage.user_list')->with($data);;\n }", "public function users() {\n\t\t$this->template->content = View::instance(\"v_posts_users\");\n\t\t$this->template->title = \"Users\";\n\n\t\t# Build the query to get all the users\n\t\t// $q = \"SELECT *\n\t\t\t// FROM users\";\n\n\t\t// build the query to get all users except the logged-in user\n\t\t$q = \"SELECT *\n\t\t\tFROM users WHERE user_id != \" . $this->user->user_id;\n\t\t\t\n\t\t# Execute the query to get all the users. \n\t\t# Store the result array in the variable $users\n\t\t$users = DB::instance(DB_NAME)->select_rows($q);\n\n\t\t# Build the query to figure out what connections does this user already have? \n\t\t# I.e. who are they following\n\t\t$q = \"SELECT * \n\t\t\tFROM users_users\n\t\t\tWHERE user_id = \".$this->user->user_id;\n\n\t\t# Execute this query with the select_array method\n\t\t# select_array will return our results in an array and use the \"users_id_followed\" field as the index.\n\t\t# This will come in handy when we get to the view\n\t\t# Store our results (an array) in the variable $connections\n\t\t$connections = DB::instance(DB_NAME)->select_array($q, 'user_id_followed');\n\n\t\t# Pass data (users and connections) to the view\n\t\t$this->template->content->users = $users;\n\t\t$this->template->content->connections = $connections;\n\n\t\t$client_files_head = Array(\"/css/posts_users.css\");\n\t\t$this->template->client_files_head = Utils::load_client_files($client_files_head);\n\n\t\t# Render the view\n\t\techo $this->template;\n\t}", "public function index()\n {\n return view(\"tutoriais.templateTutoriaisList\");\n }" ]
[ "0.67711216", "0.65292937", "0.6473119", "0.6357841", "0.6307323", "0.6237995", "0.622262", "0.6181865", "0.6131522", "0.6118364", "0.6112357", "0.6073565", "0.6063507", "0.6030179", "0.6006454", "0.59995806", "0.59351224", "0.5917114", "0.59119785", "0.5902688", "0.58951694", "0.58608156", "0.5852712", "0.57892597", "0.5771965", "0.5770533", "0.57604074", "0.57286566", "0.57239974", "0.5717237", "0.57154846", "0.5705738", "0.57022226", "0.56985474", "0.5695672", "0.5695199", "0.5685677", "0.5682527", "0.5677152", "0.5670331", "0.56618804", "0.56589615", "0.5658484", "0.56522995", "0.56461686", "0.56257117", "0.56202054", "0.56184375", "0.5602783", "0.5578216", "0.55757004", "0.5573265", "0.55722016", "0.5563618", "0.5553317", "0.55450827", "0.55423445", "0.5541555", "0.5533958", "0.5526486", "0.55190915", "0.5517646", "0.551557", "0.55145586", "0.551242", "0.55019957", "0.5492894", "0.5492011", "0.5491468", "0.5482915", "0.54824257", "0.5474781", "0.54584694", "0.5452285", "0.54521435", "0.5451701", "0.5446619", "0.5445138", "0.5444844", "0.54315096", "0.54296386", "0.54272234", "0.5425578", "0.5423506", "0.5423044", "0.5413387", "0.54112214", "0.5394682", "0.5390796", "0.5388441", "0.5385743", "0.5383952", "0.5383952", "0.53838074", "0.5381493", "0.53799325", "0.53798425", "0.5379652", "0.5374863", "0.5372159" ]
0.73407036
0
get users data from 3rd party.
public static function fetchUsersData(): array { $response = get_transient('users_data_array'); if (false === $response) { $request = wp_remote_get('https://jsonplaceholder.typicode.com/users/'); $response = isset($request['response']) ? $request['response'] : ''; if ($response['code'] === 200) { $response = json_decode($request['body']); } set_transient('users_data_array', $response, 3600); } return $response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get_user_data()\n {\n }", "function getUserData() { \n // \"functions.php\";\n\n $response = $this->getRequest(\"me\");\n\n // Return an object of the JSON response\n return json_decode($response->getBody()->getContents());\n }", "public function getUserData()\r\n \t{\r\n \t\tif ($this->_client->getUser())\r\n \t\t{\r\n \t\t\treturn $this->_client->api('/me');\r\n \t\t}\r\n \t\treturn null;\r\n \t}", "public function getUserData()\n {\n exit(json_encode(['data' => $this->users_model->get_users()]));\n }", "function getUserInfo(){\n\n\t\t/* Fetch user info from Flickr */\n\t\t$user = $this->askFlickr('people.getinfo','user_id='.$this->user);\n\n\t\t/* Return User info */\n\t\treturn $user;\n\t}", "public function getUserData()\n {\n $data = array();\n\n $identity = $this->openid->identity;\n\n if ($identity) {\n $steamId = str_replace('http://steamcommunity.com/openid/id/', '', $identity);\n\n $query = http_build_query(array(\n 'key' => $this->getOption('apiKey'),\n 'steamids' => $steamId\n ));\n\n $url = $this->getOption('profileUrl') . '?' . $query;\n\n $json = json_decode(file_get_contents($url));\n\n if (count($json->response->players)) {\n $data = (array) $json->response->players[0];\n }\n }\n\n return $data;\n }", "function getUserInfo() {\n\t$page = $this -> get('http://vk.com/al_profile.php') -> body;\n\n\t$pattern = '/\"user_id\":([0-9]*),\"loc\":([\"a-z0-9_-]*),\"back\":\"([\\W ]*|[\\w ]*)\",.*,\"post_hash\":\"([a-z0-9]*)\",.*,\"info_hash\":\"([a-z0-9]*)\"/';\n\tpreg_match($pattern, $page, $matches);\n\tarray_shift($matches);\n\t\n\t$this -> user['id'] = $matches[0];\n\t$this -> user['alias'] = $matches[1];\n\t$this -> user['name'] = $matches[2];\n\t$this -> user['post_hash'] = $matches[3];\n\t$this -> user['info_hash'] = $matches[4];\n\n\treturn $this -> user;\n\t}", "public function get_user_info()\n\t{\n\t\tif ( function_exists('wp_remote_get') ) {\n\t\t\t$json = wp_remote_get($this->API_URL . '?username='. $this->user);\n\t\t\t$user_info = @json_decode($json['body'], true);\n\t\t} else {\n\t\t\t$json = @file_get_contents($this->API_URL . '?username='. $this->user);\n\t\t\t$user_info = @json_decode($json, true);\n\t\t}\n\t\t\n\t\treturn $user_info['resp'];\n\t}", "private function getUserData() {\n\t\tglobal $current_user;\n \tget_currentuserinfo();\n \t$userData = array(\n \t 'username' \t=> $current_user->user_login,\n\t\t 'email' \t\t=> $current_user->user_email,\n\t\t 'phone'\t\t=> get_user_meta( $current_user->ID, 'phone', true ),\n\t\t 'fname' \t\t=> $current_user->user_firstname,\n\t\t 'lname' \t\t=> $current_user->user_lastname,\n\t\t 'display name' => $current_user->display_name,\n\t\t 'id' \t\t\t=> $current_user->ID);\n \treturn $userData;\n\t}", "public static function getUser();", "public function readUserAuth(){\n $user = new \\Filebase\\Database([\n 'dir' => $this->getDataSource()\n ]);\n\n if ($user->has($this->username)) {\n $item = $user->get($this->username);\n $data = [\n 'result' => $item->auth,\n 'attribute' => [\n 'username' => $this->username\n ],\n 'status' => 'success',\n 'message' => 'Data found!'\n ];\n } else {\n $data = [\n 'status' => 'error',\n 'message' => 'User not found!'\n ];\n }\n return $data;\n }", "public function getUser(){\r\n $urlUser = \"{$this->apiHost}/api/v1/me\";\r\n // return $urlUser;\r\n return self::runCurl($urlUser);\r\n }", "function getUser()\r\n {\r\n $users = file_get_contents('storage/users.json');\r\n return json_decode($users);\r\n }", "private function get_user_data()\n {\n $sql_query = \"select * from users\";\n $users = DB::select($sql_query);\n return $users;\n }", "private function get_userInfo() {\n $params = [ 'user_ids' => $this->user_id ];\n $result = $this->api->users->get($params);\n $params['fields'] = '';\n $result2 = $this->api2->users->get($params);\n $result['hidden'] = (int)array_has($result2, 'hidden');\n return $result;\n }", "function get_user_info(){\t\t\n\t\t// Fetch user data from database\n\t\t$user_data_array=$this->UserModel->get_user_data(array('member_id'=>$this->session->userdata('member_id')));\n\t\techo $user_data_array[0]['company'].\"|\".$user_data_array[0]['address_line_1'].\"|\".$user_data_array[0]['city'].\"|\".$user_data_array[0]['state'].\"|\".$user_data_array[0]['zipcode'].\"|\".$user_data_array[0]['country_id'].\"|\".$user_data_array[0]['country_name'];\n\t}", "public function getUser();", "public function getUser();", "public function getUser();", "public function getUser();", "public function getUser();", "public function getUser();", "public function getUser();", "public function getUser() {\n\t\t$urlUser = \"{$this->apiHost}/me.json\";\n\t\treturn $this->runCurl ( $urlUser );\n\t}", "public static function getUserAPI();", "protected function getUserFromAvailableData()\n {\n $storage = $this->getStorage();\n\n //get saved values\n $user = $storage->get('user', null);\n $persistedAccessToken = $storage->get('access_token');\n\n $accessToken = $this->getAccessToken();\n\n /**\n * This is true if both statements are true:\n * 1: We got an access token\n * 2: The access token has changed or if we don't got a user.\n */\n if ($accessToken && !($user !== null && $persistedAccessToken == $accessToken)) {\n $user = $this->getUserFromAccessToken();\n if ($user !== null) {\n $storage->set('user', $user);\n } else {\n $storage->clearAll();\n }\n }\n\n return $user;\n }", "public function getUserData($userId);", "static function getUserInfo(){\n $result = Array();\n return $result;\n }", "function getUsers() {\n\t\t$users = json_decode(\n\t\t\t\t\tfile_get_contents(\"data/users.json\"),\n\t\t\t\t\ttrue\n\t\t\t\t);\n\t\treturn $users;\n\t}", "public function getUserData() {\r\n if (!$this->linkedService) $data = array();\r\n else $data = $this->linkedService->getUserData();\r\n\r\n return $data;\r\n }", "function getUserData($user){\r\n $data = new \\Cars\\Data\\Common($this->app);\r\n return $data->getUserData($user);\r\n }", "public function getUserData()\n {\n return self::$facebook->api('/me');\n }", "function getUserData() {\n global $conn;\n $sql = \"SELECT user_id, firstname, lastname, email FROM users\";\n $result = $conn->query($sql);\n return $result;\n }", "private function get_user_info() {\n $user_info = $this->_api_call('https://api.twitter.com/1.1/account/settings.json');\n return $user_info;\n }", "function getUserInformation(){\n\t\tinclude ($_SERVER['DOCUMENT_ROOT'] . '_inc/controller/fb/getUserInformation.fb.inc.php');\n return $this->resObject;\n\t}", "public function getData() {\n\t\t$id = $this->user;\n\t\t$this->db->query( 'SELECT * FROM users WHERE crsid = :id' );\n\t\t$this->db->bind( ':id', $id );\n\t\t$row = $this->db->single();\n\n\t\tif ( ! $row[\"name\"] ) {\n\t\t\t$ds = ldap_connect( \"ldap.lookup.cam.ac.uk\" );\n\t\t\t$lsearch = ldap_search( $ds, \"ou=people,o=University of Cambridge,dc=cam,dc=ac,dc=uk\", \"uid=\" . $id . \"\" );\n\t\t\t$info = ldap_get_entries( $ds, $lsearch );\n\t\t\t$name = $info[0][\"cn\"][0];\n\t\t\t$this->db->query( 'UPDATE users SET name=:name WHERE crsid=:id' );\n\t\t\t$this->db->bind( ':id', $id );\n\t\t\t$this->db->bind( ':name', $name );\n\t\t\t$this->db->execute();\n\t\t\t$row[\"name\"] = $name;\n\t\t}\n\n\t\treturn $row;\n\t}", "public function get_user_data() {\n\t\t$email = '';\n\t\t$name = '';\n\n\t\tif ( ! empty( $this->current_user->user_email ) ) {\n\t\t\t$email = $this->current_user->user_email;\n\t\t}\n\n\t\tif ( ! empty( $this->current_user->user_firstname ) && ! empty( $this->current_user->user_lastname ) ) {\n\t\t\t$name = $this->current_user->user_firstname . ' ' . $this->current_user->user_lastname;\n\t\t} else {\n\t\t\t$name = $this->current_user->user_login;\n\t\t}\n\n\t\treturn array(\n\t\t\t'name' => $name,\n\t\t\t'email' => $email,\n\t\t);\n\t}", "function get_user_data($session_id) {\n\t$user_id = get_user_id(make_safe($session_id));\n\t\n\tif ($user_id) {\n\t\t\n\t\t$query = \"SELECT * FROM \" . $GLOBALS['db_name'] . \".users WHERE user_id = '$user_id' LIMIT 1\";\n\t\t$result = $GLOBALS['db_connection'] -> query($query);\n\t\t\n\t\tif ($result -> num_rows > 0) {\n\t\t\t\n\t\t\t$sites = array();\n\t\t\t\n\t\t\twhile($row = $result -> fetch_assoc()) {\n\t\t\t\t$data = array('firstname' => $row['firstname'], 'lastname' => $row['lastname'], 'email' => $row['email'], 'password' => $row['password']);\n\t\t\t}\n\t\t\t\n\t\t\treturn $data;\n\t\t\t\n\t\t} else {\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t} else {\n\t\treturn \"Invalid Session\";\n\t}\n}", "public function getUser()\n\t{\n\t\tif (cookie('staffAccount') != '') {\n\t\t\t$user = D('User');\n\t\t\t$sql = \"select * from lib_user order by register_time desc\";\n\t\t\t$return = $user->query($sql);\n\t\t\tif ($return) {\n\t\t\t\techo json_encode(array(\n\t\t\t\t\t'code' => 'success',\n\t\t\t\t\t'data' => json_encode($return)\n\t\t\t\t));\n\t\t\t} else {\n\t\t\t\t$json = json_encode(array(\n\t\t\t\t\t'code' => 'fail',\n\t\t\t\t\t'msg' => 'sql error'\n\t\t\t\t));\n\t\t\t\techo $json;\n\t\t\t}\n\t\t} else {\n\t\t\t$json = json_encode(array(\n\t\t\t\t'code' => 'fail',\n\t\t\t\t'msg' => 'Please Login!'\n\t\t\t));\n\t\t\techo $json;\n\t\t}\n\t}", "public function getUserInfo() {}", "abstract public function getUserInfo();", "function get_owner_data($user_id){\n $ch = curl_init();\n $url = $GLOBALS['App-Logic'].\"?\" .http_build_query([\n 'get_owner_data' => true, //a flag to execute the right code in App-Logic! \n 'user_id' => $user_id,\n ]);\n\n curl_setopt($ch,CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_HTTPGET, true);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);\n \n $response = curl_exec($ch);\n curl_close($ch);\n \n return json_decode($response,true);\n\n }", "public function getUserInfo() {\n $endpoint = '/users';\n $client = $this->_constructClient($endpoint . '/self');\n try {\n $response = $client->request();\n } catch (Zend_Http_Client_Exception $e) { // timeout or host not accessible\n return;\n }\n\n // error in response\n if ($response->isError()) return;\n\n $result = Zend_Json::decode($response->getBody());\n\n // foursquare returned an error\n if ($result['meta']['code'] != 200) return;\n\n $entry = $result['response']['user'];\n $user = array(\n 'name' => $entry['firstName'] . ' ' . $entry['lastName'],\n 'id' => $entry['id'],\n 'avatar' => $entry['photo']\n );\n return $user;\n }", "public function getCurrentUser(){\n\t\t$cm = \\OC::$server->getContactsManager();\n\t\t// The API is not active -> nothing to do\n\n\t\t$result = $cm->search(\\OCP\\User::getUser(), array('FN'));\n\t\t$r = $result[0];\n\t\t$data = array();\n\t\t$data['id'] = $r['id'];\n\t\t$data['displayname'] = $r['FN'];\n\t\tif(!isset($r['EMAIL'])){\n\t\t\t$r['EMAIL'] = array();\n\t\t}\n\n\t\tif(!isset($r['IMPP'])){\n\t\t\t$r['IMPP'] = array();\n\t\t}\n\t\t$data['backends'] = $this->contactBackendToBackend($r['EMAIL'], $r['IMPP']);\n\t\tlist($addressBookBackend, $addressBookId) = explode(':', $r['addressbook-key']);\n\t\t$data['address_book_id'] = $addressBookId;\n\t\t$data['address_book_backend'] = $addressBookBackend;\n\t\treturn $data;\n\t}", "public static function get_party_user($party_id){\n $user_data = array();\n $party_data = EntityAPI::get_by_id('party', $party_id); \n \n if(isset($party_data['id'])){ \n $user = get_user_by('login', $party_data['user_name']); \n if($user){\n $user_data['id'] = $user->ID;\n $user_data['user_pass'] = $user->user_pass;\n $user_data['last_name'] = $user->last_name;\n $user_data['first_name'] = $user->first_name;\n $user_data['user_name'] = $user->user_login;\n $user_data['user_login'] = $user->user_login;\n }\n }\n return $user_data;\n }", "public function woo_slg_get_google_user_data() {\n\t\t\t\n\t\t\t$user_profile_data = '';\n\t\t\t\n\t\t\t$user_profile_data = isset( $_SESSION['woo_slg_google_user_cache'] ) ? $_SESSION['woo_slg_google_user_cache'] : '';\n\t\t\treturn $user_profile_data;\n\t\t}", "public function getUserData()\n\t{\n\t\t$fbuid = $this->getFBUID();\n\t\t$rs = $this->db->query(\"SELECT * from selective_status_users where fbuid = \" . $this->db->quote($fbuid) . \" limit 1\");\n\t\tif ($rs && $row = $rs->fetch()) {\n\t\t\treturn $row;\n\t\t}\n\t}", "private function getUserInfo()\n {\n // TODO This could be cached\n return $this->userInfoApi->getUserInfo();\n }", "public static function GetUserInfo()\n\t{\n\t\t$userID = self::GetUserID();\n\t\t// TODO: Use cURL for this, requires server config\n\t\treturn json_decode(file_get_contents(\"http://graph.facebook.com/${userID}\"));\n\t}", "function getUser(){\n $db=new connect();\n $select=\"select * from users\";\n return $db->getList($select);\n }", "private static function get_user_data($username)\n {\n }", "public function getUserInfo() {\n\t\t$userInfo = $this->HttpSocket->get(FLICKR_API_URL,\n\t\t\tarray(\n\t\t\t\t'method' => USERINFO,\n\t\t\t\t'format' => DATAFORMAT,\n\t\t\t\t'api_key' => $this->api_key,\n\t\t\t\t'user_id' => $this->photo['owner'],\n\t\t\t));\n\t\treturn unserialize($userInfo->body);\n\t}", "private function getUser()\n {\n if ($this->userData['id']) {\n $user = gateway('northstar')->asClient()->getUser($this->userData['id']);\n\n if ($user && $user->id) {\n info('Found user by id', ['user' => $user->id]);\n\n return $user;\n }\n }\n\n if ($this->userData['email']) {\n $user = gateway('northstar')->asClient()->getUserByEmail($this->userData['email']);\n\n if ($user && $user->id) {\n info('Found user by email', ['user' => $user->id]);\n\n return $user;\n }\n }\n\n if (! isset($this->userData['mobile'])) {\n return null;\n }\n\n $user = gateway('northstar')->asClient()->getUserByMobile($this->userData['mobile']);\n\n if ($user && $user->id) {\n info('Found user by mobile', ['user' => $user->id]);\n\n return $user;\n }\n\n return null;\n }", "protected function &_connectAndGrabUserData() {\n if(!$this->user_data_response) {\n\n if(!$this->oa_access_token) {\n throw new Exception('Token not valid', TOKEN_NOT_VALID);\n }\n\n if($this->oa_valid_till < time()) {\n throw new Exception('Token expired', TOKEN_EXPIRED);\n }\n\n $response = NULL;\n\n if($contents = @file_get_contents('https://api.linkedin.com/v1/people/~?oauth2_access_token='.$this->oa_access_token)) {\n\n $response = json_decode($contents, true);\n\n if(isset($response['id']) && $response['id']) {\n $this->user_data_response = $response;\n } else {\n throw new Exception('Get user data failed', CONNECTION_ERROR);\n }\n } else {\n throw new Exception('Connection error', CONNECTION_ERROR);\n }\n\n }\n\n return $this->user_data_response;\n }", "function getUser() {\n return user_load($this->uid);\n }", "public function getUserData() {\n $response = $this->_connectAndGrabUserData();\n\n if($response) {\n $this->oa_user_id = $response['id'];\n\n return array(\n 'first_name'\t\t=> $response['given_name'],\n 'last_name'\t\t\t=> $response['family_name'],\n //'url_friendly_name'\t=> '',\n 'email'\t\t\t\t=> (isset($response['verified_email']) && $response['verified_email'])?$response['email']:'',\n //'timezone'\t\t\t=> '',\n 'gender'\t\t\t=> $response['gender']?(($response['gender']=='male')?2:1):0,\n 'google_id'\t\t\t=> $response['id']\n );\n }\n\n return false;\n }", "public function woo_slg_get_vk_user_data() {\n\t\t\t\n\t\t\t$user_data = '';\n\t\t\t\n\t\t\t$user_data = \\WSL\\Persistent\\WOOSLGPersistent::get('woo_slg_vk_user_cache');\n\n\t\t\t\\WSL\\Persistent\\WOOSLGPersistent::delete('woo_slg_vk_user_cache');\n\n\t\t\t$user_data = !empty( $user_data )? $user_data : array();\n\n\t\t\treturn $user_data;\n\t\t}", "protected abstract function getUserData(): array;", "public function get_userInfo()\n {\n return $this->call_method(\"get/userInfo\",\n array()\n );\n }", "function get_user()\n{\n$response = $GLOBALS['http']->request('GET', '/api/users/@me', [\n 'headers' => [\n 'Authorization' => 'Bearer ' . $_SESSION['auth_token']\n ]\n]);\n\n$responseBody = $response->getBody(true); \n$response = json_decode($responseBody, true);\n$_SESSION['username'] = $response['username'];\n$_SESSION['discrim'] = $response['discriminator'];\n$_SESSION['user_id'] = $response['id'];\n$_SESSION['user_avatar'] = $response['avatar'];\n}", "public function getUserInfo(): array;", "function user_get()\n {\n $id = $this->get('id');\n if ($id == '') {\n $user = $this->db->get('auth_user')->result();\n } else {\n $this->db->where('id', $id);\n $user = $this->db->get('auth_user')->result();\n }\n $this->response($user, 200);\n }", "public function getPersonal();", "public function user()\n {\n // return Auth::user()->wallet()->getBalance();\n $user = Auth::user();\n $wallet = $user->wallet();\n $additional = [\n 'balance' => $wallet->getBalance()\n ];\n $data = array_merge( (new Collection($user))->toArray(), $additional);\n return $this->response(\n $data, \n 'Get data success',\n true,\n null, null,\n 200\n );\n }", "public function getBusinessUser(){\n\t \t// $username = $this->CleanString($username);\n\t \t$username = @$_SESSION['username'];\n\n\t \t$stmt = $this->db->query(\"SELECT * FROM user WHERE username='\".$username.\"';\");\n\n\t\t\tif ($stmt->rowCount() > 0)\n\t \t\twhile ($r = $stmt->fetch(\\PDO::FETCH_ASSOC))\n\t\t\t\t\t$RawData[] = $r;\n\n\t\t\treturn $RawData;\n\t }", "public function get_user()\n\t{\n\t\t$username = 'root';\n\t\t$password = md5('123');\n\n\t\t//将数据存储到数据中\n\t\t$arr = array(\n\t\t\t'username'\t=>\t$username,\n\t\t\t'psd' \t\t=>\t$password\n\t\t);\n\n\t\t$this->load->model('user_model','user');\n\t\t$data = $this->user->get_user($arr);\n\t\techo $this->_gen_userinfo_json($data);\n\t}", "public function public_user_data($user_name)\n {\n $url = preg_replace('/set/i', 'user:' . $user_name, $this->public_url);\n return $this->curl($url)->user;\n }", "public function getUserInfo()\r\n {\r\n return self::makeCall('getUserInfo', array(), null, false, $this->sessionID);\r\n }", "public function ajax_get_users() {\n\n\t\t// Get list of users.\n\t\t$users = get_users( [ 'orderby' => 'display_name' ] );\n\t\tif ( ! empty( $users ) ) {\n\n\t\t\t// Build user data.\n\t\t\t$user_data = [\n\t\t\t\t'selected' => 0,\n\t\t\t\t'users' => $users,\n\t\t\t];\n\n\t\t\t/*\n\t\t\t * If we passed a speaker post ID, get the\n\t\t\t * user ID assigned to the speaker post ID.\n\t\t\t */\n\t\t\t$speaker_post_id = isset( $_GET['speaker_post_id'] ) ? $_GET['speaker_post_id'] : 0;\n\t\t\tif ( $speaker_post_id > 0 ) {\n\n\t\t\t\t// Get the assigned user ID for the speaker.\n\t\t\t\t$speaker_user_id = get_post_meta( $speaker_post_id, 'conf_sch_speaker_user_id', true );\n\t\t\t\tif ( $speaker_user_id > 0 ) {\n\t\t\t\t\t$user_data['selected'] = $speaker_user_id;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Print the user data.\n\t\t\techo json_encode( $user_data );\n\n\t\t}\n\n\t\twp_die();\n\t}", "public function getMe()\n {\n return $this->_execute('/user/', self::METHOD_GET);\n }", "public function ajax_get_users() {\n\n\t\t// Get list of users.\n\t\t$users = get_users( array( 'orderby' => 'display_name' ) );\n\t\tif ( ! empty( $users ) ) {\n\n\t\t\t// Build user data.\n\t\t\t$user_data = array(\n\t\t\t\t'selected' => 0,\n\t\t\t\t'users' => $users,\n\t\t\t);\n\n\t\t\t/*\n\t\t\t * If we passed a speaker post ID, get the\n\t\t\t * user ID assigned to the speaker post ID.\n\t\t\t */\n\t\t\t$speaker_post_id = isset( $_GET['speaker_post_id'] ) ? $_GET['speaker_post_id'] : 0;\n\t\t\tif ( $speaker_post_id > 0 ) {\n\n\t\t\t\t// Get the assigned user ID for the speaker.\n\t\t\t\t$speaker_user_id = get_post_meta( $speaker_post_id, 'conf_sch_speaker_user_id', true );\n\t\t\t\tif ( $speaker_user_id > 0 ) {\n\t\t\t\t\t$user_data['selected'] = $speaker_user_id;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Print the user data.\n\t\t\techo json_encode( $user_data );\n\n\t\t}\n\n\t\twp_die();\n\t}", "public function getData()\n {\n return $this->db->get('user')->result();\n }", "public static function getPSUInfo(){return file_get_contents('queries/psuinfo.txt');}", "public function getUserInfo()\n {\n $request = new Resource('GET', 'https://api.dropbox.com/1/account/info', array(\n 'oauth_consumer_key' => $this->consumer->client_id,\n 'oauth_token' => $this->token->access_token,\n ));\n\n // Sign the request using the consumer and token\n $request->sign($this->signature, $this->consumer, $this->token);\n\n $user = json_decode($request->execute());\n\n // Create a response from the request\n return array(\n 'uid' => $this->token->uid,\n 'name' => $user->display_name,\n 'email' => $user->email,\n 'location' => $user->country,\n );\n }", "public function getUserData()\n {\n return $this->file->get(self::SETTING_USER_DATA);\n }", "public function user_info() {\n if ($this->rails_cookie_value() == NULL) {\n return null;\n }\n if (!self::$user_info && !self::$user_info_called) {\n $json_data = $this->api_request(\"user/\" . $this->rails_cookie_value());\n self::$user_info = $json_data->{'user'};\n self::$user_info_called = true;\n }\n return self::$user_info;\n }", "protected function _getUserData(Zend_Oauth_Token_Access $accessToken) {\n $authVars = $this->_getAuthVars();\n\n $token = $accessToken->getToken();\n $tokenSecret = $accessToken->getTokenSecret();\n $vimeoService = new Garp_Service_Vimeo_Pro(\n $authVars->consumerKey,\n $authVars->consumerSecret,\n $token,\n $tokenSecret\n );\n $userDataFromVimeo = $vimeoService->people->getInfo($token);\n $id = $userDataFromVimeo['id'];\n\n $ini = Zend_Registry::get('config');\n $sessionColumns = Zend_Db_Select::SQL_WILDCARD;\n if (!empty($ini->auth->login->sessionColumns)) {\n $sessionColumns = $ini->auth->login->sessionColumns;\n $sessionColumns = explode(',', $sessionColumns);\n }\n $userModel = new Model_User();\n $userConditions = $userModel->select()->from($userModel->getName(), $sessionColumns);\n\n $model = new Model_AuthVimeo();\n $model->bindModel('Model_User', array('conditions' => $userConditions));\n $userData = $model->fetchRow(\n $model->select()\n ->where('vimeo_id = ?', $id)\n );\n if (!$userData || !$userData->Model_User) {\n $userData = $model->createNew(\n $id,\n $accessToken,\n $this->_mapProperties($userDataFromVimeo)\n );\n } else {\n $model->getObserver('Authenticatable')->updateLoginStats($userData->user_id);\n $userData = $userData->Model_User;\n }\n return $userData;\n }", "public function getUserData()\n\t{\n\t\t$userId = $this->session->userdata('user_id');\n\t\t$userData = $this->db->select('*')\n\t\t\t\t\t\t\t ->where('user_id', $userId)\n\t\t\t\t\t\t\t ->get('user');\n\t\treturn $userData->result();\n\t}", "public function getUserData($columns = array())\n {\n if (\n get_cookie($this->config->item('auth_cookie_id'), TRUE)\n && get_cookie($this->config->item('auth_cookie_key'), TRUE)\n ) {\n // store cookie informations in variables\n $encryptedUserIDs = get_cookie($this->config->item('auth_cookie_id'), TRUE);\n $enckey = get_cookie($this->config->item('auth_cookie_key'), TRUE);\n } else {\n // store session informations in variables\n $encryptedUserIDs = $this->session->userdata($this->config->item('auth_session_id'));\n $enckey = $this->session->userdata($this->config->item('auth_session_enkey'));\n }\n\n // check if any data is available\n if (empty($encryptedUserIDs) || empty($enckey)) {\n return FALSE;\n }\n\n // decrypt user IDs\n $userIDs = $this->encryption->decrypt($encryptedUserIDs);\n\n $userArray = explode('-', $userIDs);\n\n // fetch and return user data\n return $this->auth_model->getByID($userArray[0], $userArray[1], $columns);\n }", "public function get_data()\n\t{\n\t\t$query = \"SELECT * FROM tb_users\";\n\t\t$data = DB::connect()->query($query)->style(FETCH_ASSOC)->fetch_all();\n\t\t$json_data = json_fetch([\n\t\t\t\"data\" => $data\n\t\t]);\n\n\t\treturn $json_data;\n\t}", "abstract protected function getUser();", "public function getUser( $data )\r\n\t\t{\r\n\t\t\treturn DB::query( \"SELECT * FROM user WHERE username=:username AND password_hash=:password_hash AND status=1\", $data, true );\t\t\r\n\t\t}", "public function getData(){\n\n // get public user data for this user\n $userData = $this->getSimpleData();\n\n // add sensitive user data\n $userData->email = $this->email;\n\n // all chars\n $userData->characters = [];\n $characters = $this->getCharacters();\n foreach($characters as $character){\n /**\n * @var $character CharacterModel\n */\n $userData->characters[] = $character->getData();\n }\n\n // get active character with log data\n $activeCharacter = $this->getActiveCharacter();\n $userData->character = $activeCharacter->getData(true);\n\n return $userData;\n }", "public function getData(){\n\t\t$db = new Database();\n\t\t$dbConnect = $db->connect();\n\t\t$sql = \"SELECT * FROM user\";\n\t\t$data = $dbConnect->query($sql);\n\t\t$dbConnect = $db->close();\n\t\treturn $data;\n\t}", "public function getMyAccountInfo()\n {\n $ajax_data = array();\n $user_id = $this->user_session->getUserId();\n\n if ($user_id) {\n $user = $this->user_logic->getUserById($user_id);\n if ($user !== false) {\n if (! empty($user) AND is_array($user)) {\n $user = array_pop($user);\n $ajax_data['code'] = 0;\n $ajax_data['data']['user'] = $user;\n $ajax_data['message'] = 'Successfully retrieved user info';\n } else {\n $ajax_data['code'] = 1;\n $ajax_data['message'] = 'User does not exist'; \n } \n } else {\n $ajax_data['code'] = 1;\n $ajax_data['message'] = 'Failed to get user info'; \n } \n } else {\n $ajax_data['code'] = 1;\n $ajax_data['message'] = 'Invalid user id';\n }\n \n $this->ajax_respond($ajax_data);\n }", "function getUser() {\n $DBA = new DatabaseInterface();\n $fields = array(0 => 'username', 1 => 'title', 2 => 'first_name', 3 => 'last_name', 4 => 'password', 5 => 'contactemail', 6 => 'contacttelephone', 7 => 'newsletter', 8 =>'pcode', 9 => 'store_owner', 10 => 'house', 11 => 'street', 12 => 'town', 13 => 'county', 14 => 'geolong', 15 => 'geolat', 16 => 'avatar', 17 => 'mobile', 18 => 'optout');\n $idfields = array(0 => 'id');\n $idvals = array(0 => $this->ID);\n $rs = $DBA->selectQuery(DBUSERTABLE, $fields, $idfields, $idvals);\n\n if (!isset($rs[2]))\n {\n while ($res = mysql_fetch_array($rs[0]))\n {\n $this->setUserVar('Username', $res['username']);\n $this->setUserVar('Title', $res['title']);\n $this->setUserVar('FirstName', $res['first_name']);\n $this->setUserVar('LastName', $res['last_name']);\n $this->setUserVar('ContactEmail', $res['contactemail']);\n $this->setUserVar('ContactTelephone', $res['contacttelephone']);\n $this->setUserVar('NewsletterSubscriber', $res['newsletter']);\n $this->setUserVar('Area', $res['pcode']);\n $this->setUserVar('StoreOwner', $res['store_owner']);\n $this->setUserVar('House', $res['house']);\n $this->setUserVar('Street', $res['street']);\n $this->setUserVar('Town', $res['town']);\n $this->setUserVar('County', $res['county']);\n $this->setUserVar('PCode', $res['pcode']);\n $this->setUserVar('Long', $res['geolong']);\n $this->setUserVar('Lat', $res['geolat']);\n $this->setUserVar('Avatar', $res['avatar']);\n $this->setUserVar('Mobile', $res['mobile']);\n $this->setUserVar('DMOptOut', $res['optout']);\n $this->formatAddress();\n $this->formatEmail();\n if ($this->Lat == '')\n {\n $this->GeoLocate();\n }\n }\n }\n }", "function getUsers(){\n }", "function getUsers(){\n }", "function GetUserProfileInfo($access_token) {\t\n\t\t$url = 'https://www.googleapis.com/plus/v1/people/me';\t\t\t\n\t\t\n\t\t$ch = curl_init();\t\t\n\t\tcurl_setopt($ch, CURLOPT_URL, $url);\t\t\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Bearer '. $access_token));\n\t\t$data = json_decode(curl_exec($ch), true);\n\t\t$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);\t\t\n\t\tif($http_code != 200) \n\t\t\tthrow new Exception('Error : Failed to get user information');\n\t\t\t\n\t\treturn $data;\n\t}", "function wpgplus_login_data() {\n $wpgplusOptions = wpgplus_getAdminOptions();\n\tif (!empty($wpgplusOptions)) {\n\t\tforeach ($wpgplusOptions as $key => $option)\n\t\t$wpgplusOptions[$key] = $option;\n\t}\n\t$my_args = array('method' => 'GET',\n\t\t\t\t\t 'timeout' => '5',\n\t\t\t\t\t 'redirection' => '5',\n\t\t\t\t\t 'user-agent' => 'Mozilla/4.0 (compatible; MSIE 5.0; S60/3.0 NokiaN73-1/2.0(2.0617.0.0.7) Profile/MIDP-2.0 Configuration/CLDC-1.1)',\n\t\t\t\t\t 'blocking' => true,\n\t\t\t\t\t 'compress' => false,\n\t\t\t\t\t 'decompress' => true,\n\t\t\t\t\t 'ssl-verify' => false\n\t\t\t\t\t);\n\t$buf = wp_remote_get('https://plus.google.com/',$my_args);\n\twpgplus_debug(date(\"Y-m-d H:i:s\",time()).\" : just requested the login info\\n\");\n\twpgplus_debug(\"\\nBuffer is\\n\". print_r($buf,true) . \"\\n\");\n\twpgplus_debug(\"\\nWriting cookies from login get\\n\");\n\tif(is_wp_error($buf)) {\n\t\twp_die($buf);\n\t}\n\tforeach($buf['cookies'] as $cookie) {\n\t\t//wpgplus_debug(\"\\nThis cookie is \". print_r($cookie,true) . \"\\n\");\n\t\twpgplus_set_cookie($cookie);\n\t}\n $toreturn = '';\n $doc = new DOMDocument;\n @$doc->loadHTML($buf['body']);\n $inputs = $doc->getElementsByTagName('input');\n foreach ($inputs as $input) {\n\t\tswitch ($input->getAttribute('name')) {\n\t\t\tcase 'Email': $toreturn .= 'Email=' . urlencode($wpgplusOptions['wpgplus_username']) . '&'; break;\n\t\t\tcase 'Passwd':$toreturn .= 'Passwd=' . urlencode($wpgplusOptions['wpgplus_password']) . '&'; break;\n\t\t\tdefault: $toreturn .= $input->getAttribute('name') . '=' . urlencode($input->getAttribute('value')) . '&';\n\t\t}\n }\n // return array (string postdata, string postaction)\n\t$my_form = $doc->getElementsByTagName('form');\n\tif($my_form) {\n\t\t$my_action_url = $my_form->item(0)->getAttribute('action');\n\t\treturn array(wpgplus_tidy($toreturn), $doc->getElementsByTagName('form')->item(0)->getAttribute('action'));\n\t} else {\n\t\twpgplus_debug(date(\"Y-m-d H:i:s\",time()).\" : Did not get a form to post login to\\n\");\n\t\twp_die('WPGPlus did not get a form in the response from google+');\n\t}\n}", "public function get_user() {\r\n return $this->util_model->get_data(\r\n 'schools', \r\n array('unitname') \r\n );\r\n }", "function get_users()\n\t{\n\t\tglobal $db;\n\t\t\n\t\t$query = $db->query(\"SELECT * FROM users\");\n\t\t\n\t\treturn $db->results($query);\n\t}", "public function get_user_data($userId)\n\t{\n\t # All the data which is purchased by the user\n\t \n\t $this->load->model('rss_feed_subscription_model');\n\t $this->load->model('psss_purchase_history');\n\t \n\t $sql = ''; \n\t \n\t $sql .=' SELECT A.* FROM '.static::_TABLE .' A ';\n\t $sql .=' LEFT JOIN '.Rss_feed_subscription_model::_TABLE . ' B ON A.'.static::_ID .' = B.'.Rss_feed_subscription_model::_ITEM_ID;\n\t $sql .=' LEFT JOIN '.Psss_purchase_history::_TABLE. ' C ON A.'.static::_ID . ' = C.'. Psss_purchase_history::_ITEM_ID;\n\t $sql .=' WHERE A.'.static::_USER_ID . ' = '.$userId;\n\t $sql .=' OR B.'.Rss_feed_subscription_model::_USER_ID . ' = '. $userId;\n\t $sql .=' OR C.'.Psss_purchase_history::_USER_ID .' = '.$userId;\n\t $sql .=' GROUP BY A.'.static::_ID;\n \n\t $response = $this->db->query($sql)->result();\n\t \n\t return $response;\n\t}", "function get_users() {\n\t\n\t\tglobal $wp_version;\n\t\t\n\t\tif ( (float)$wp_version < 3.1 ) {\n\t\t\treturn get_users_of_blog(); \n\t\t} else {\n\t\t\treturn get_users(); \n\t\t}\t\t\n\t}", "public function get_user()\n {\n $token = $this->CI->input->get_request_header('Authorization', TRUE);\n $token_json = base64_decode($token);\n $token = json_decode($token_json);\n $userid = $token->userId;\n $username = $token->userName;\n return ['id'=>$userid,'name'=>$username];\n }", "public function getuserdata(){\n\t\t\n\t\t$this->load->model('users_model');\n\t\tif($_POST[\"id\"]){\n\t\t\t$return = $this->users_model->get_by_id($_POST['id']);\n\t\t}\n\t\techo json_encode($return);\t\t\n\t}", "public function getUserData(){\n try {\n $user = auth()->user();\n $us=new User();\n if($us->validaEmpresaActiva($user->id_emp)){\n $us=new User();\n $usuario=$us->getUserInfo($user->id);\n return response()->json($usuario);\n }else{\n return response()->json(false);\n }\n } catch (\\Exception $e) {\n return response()->json(\"Error: \".$e);\n }\n }", "protected function initUserInfoAttributes()\n {\n return $this->api(\"user/get_user_info\", 'GET', ['oauth_consumer_key'=>$this->getUserAttributes()['client_id'], 'openid'=>$this->getUserAttributes()['openid']]);\n }", "public function getUser()\n\t{\n\t\tif(isset($this->user))\n\t\t{\n\t\t\treturn $this->user;\n\t\t}\n\n\t\t$request = new ColoCrossing_Http_Request('/', 'GET');\n\t\t$executor = $this->getHttpExecutor();\n\t\t$response = $executor->executeRequest($request);\n\t\t$content = $response->getContent();\n\n\t\treturn $this->user = ColoCrossing_Object_Factory::createObject($this, null, $content['user'], 'user');\n\t}", "public function getUser() {}" ]
[ "0.75284594", "0.7028793", "0.6965611", "0.69018453", "0.68293893", "0.6802294", "0.67126787", "0.6704855", "0.6689501", "0.6676476", "0.6664797", "0.66477495", "0.6618964", "0.659364", "0.65867907", "0.6544564", "0.65403795", "0.65403795", "0.65403795", "0.65403795", "0.65403795", "0.65403795", "0.65403795", "0.65350324", "0.65317285", "0.6531626", "0.6520305", "0.6509608", "0.6495537", "0.6492127", "0.64804417", "0.6479462", "0.64752984", "0.64748424", "0.64718705", "0.64641315", "0.64556366", "0.6441573", "0.6439135", "0.6434286", "0.64279914", "0.64226115", "0.6413111", "0.6379051", "0.6373542", "0.6371739", "0.635923", "0.6352534", "0.6349014", "0.6347318", "0.63446766", "0.63297653", "0.63286823", "0.63229185", "0.63135475", "0.63105786", "0.6310464", "0.6304613", "0.6297912", "0.6289863", "0.62876165", "0.6287451", "0.62821317", "0.6279024", "0.6278053", "0.62694204", "0.6263242", "0.6251186", "0.62466985", "0.62450963", "0.62422717", "0.6232007", "0.62298757", "0.62280023", "0.62252206", "0.6224944", "0.6222571", "0.62145597", "0.62123585", "0.6210319", "0.62084514", "0.6206624", "0.6195981", "0.6195201", "0.6188006", "0.6187698", "0.6179525", "0.6179525", "0.61793756", "0.61697644", "0.6162538", "0.6140021", "0.6138031", "0.61322075", "0.61272943", "0.61249936", "0.6124321", "0.6123724", "0.61235744", "0.61224765" ]
0.628377
62
Register all of the front styles and scripts of the plugin.
public function frontEndStyleScripts(): void { wp_enqueue_style('users-data-bootstrap', plugin_dir_url(dirname(__FILE__)) . 'assets/css/bootstrap.min.css', [], UsersListing::getVersion()); wp_enqueue_style('users-data-fontawsome', plugin_dir_url(dirname(__FILE__)) . 'assets/css/font-awesome.min.css', [], UsersListing::getVersion()); wp_enqueue_style('users-data-styles', plugin_dir_url(dirname(__FILE__)) . 'assets/css/users-data.css', [], UsersListing::getVersion()); // wp_enqueue_script('jquery-min', plugin_dir_url(dirname(__FILE__)) . 'assets/js/jquery.min.js', ['jquery'], UsersListing::getVersion(), false); wp_enqueue_script('jquery-popper', plugin_dir_url(dirname(__FILE__)) . 'assets/js/popper.min.js', ['jquery'], UsersListing::getVersion(), false); wp_enqueue_script('bootstrap-min', plugin_dir_url(dirname(__FILE__)) . 'assets/js/bootstrap.min.js', ['jquery'], UsersListing::getVersion(), false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register_scripts()\n {\n wp_register_style(\n 'fau-oembed-style',\n plugins_url('assets/css/fau-oembed.css', plugin()->getBasename()),\n [],\n plugin()->getVersion()\n ); \n }", "function on_enqueue_scripts ()\n{\n wp_register_style ('cap-meta-search-front', plugins_url ('css/front.css', __FILE__));\n wp_enqueue_style ('cap-meta-search-front');\n wp_register_script (\n 'cap-meta-search-front',\n plugins_url ('js/front.js', __FILE__),\n array ('cap-jquery', 'cap-jquery-ui')\n );\n}", "public function register(){\n add_action('admin_enqueue_scripts',array($this,'enqueue'));\n //load front end wp css & js\n add_action('wp_enqueue_scripts',array($this,'enqueue'));\n }", "function register_admin_scripts_and_styles() {\n\t\t\n\t}", "public function registerScripts()\n {\n // font awesome. choose css fonts instead of svg, see more at https://fontawesome.com/how-to-use/on-the-web/other-topics/performance\n // to name font awesome handle as `plugin-name-prefix-font-awesome5` is to prevent conflict with other plugins that maybe use older version but same handle that cause some newer icons in this plugin disappears.\n wp_enqueue_style('rundizable-wp-features-font-awesome5', plugin_dir_url(RUNDIZABLEWPFEATURES_FILE).'assets/fontawesome/css/all.min.css', [], '5.5.0');\n wp_enqueue_style('rundizable-wp-features-rd-settings-tabs-css', plugin_dir_url(RUNDIZABLEWPFEATURES_FILE).'assets/css/rd-settings-tabs.css', [], RUNDIZABLEWPFEATURES_VERSION);\n wp_enqueue_script('rundizable-wp-features-rd-settings-tabs-js', plugin_dir_url(RUNDIZABLEWPFEATURES_FILE).'assets/js/rd-settings-tabs.js', ['jquery'], RUNDIZABLEWPFEATURES_VERSION, true);\n }", "private function register_scripts_and_styles()\n\t\t\t{\n\n\t\t\t\tif( is_admin() )\n\t\t\t\t{\n\n\t\t \t\t//$this->load_file('friendly_widgets_admin_js', '/themes/'.THEMENAME.'/admin/js/widgets.js', true);\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{ \n\n\t\t \t\t//$this->load_file('friendly_widgets', '/themes/'.THEMENAME.'/theme_assets/js/widgets.js', true);\n\n\t\t\t\t}\n\n\t\t\t}", "private function register_scripts_and_styles()\n\t\t\t{\n\n\t\t\t\tif( is_admin() )\n\t\t\t\t{\n\n\t\t \t\t//$this->load_file('friendly_widgets_admin_js', '/themes/'.THEMENAME.'/admin/js/widgets.js', true);\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{ \n\n\t\t \t\t//$this->load_file('friendly_widgets', '/themes/'.THEMENAME.'/theme_assets/js/widgets.js', true);\n\n\t\t\t\t}\n\n\t\t\t}", "public function register_assets() {\n\n $scripts = $this->get_scripts();\n $styles = $this->get_styles();\n\n foreach ( $scripts as $handle => $script ) {\n $deps = isset( $script['deps'] ) ? $script['deps'] : false;\n\n wp_register_script( $handle, $script['src'], $deps, $script['version'], true );\n }\n\n foreach ( $styles as $handle => $style ) {\n $deps = isset( $style['deps'] ) ? $style['deps'] : false;\n\n wp_register_style( $handle, $style['src'], $deps, $style['version'] );\n }\n\n wp_localize_script( 'cbxcf-scripts', 'cbxcfObj', [\n 'ajaxurl' => admin_url( 'admin-ajax.php' ),\n 'error' => __( 'Something went wrong', 'cbxcustomform' ),\n ] );\n\n }", "public function add_scripts_and_styles()\n {\n // Estilos css \n wp_register_style( 'wiAjustesStyles', WI_PLUGIN_URL . '/style.css', null, WI_VERSION );\n wp_enqueue_style( 'wiAjustesStyles' );\n\n // Scripts de javascript\n wp_enqueue_script('wiAjustesStylesJs', WI_PLUGIN_URL . '/script.js' , array('jquery'));\n }", "public function registerScripts()\r\n\t{\r\n\t\twp_register_style('social-shares', plugins_url('assets/social-shares.css', __FILE__));\r\n\t\twp_register_script('social-shares', plugins_url('assets/social-shares.js', __FILE__), array('jquery'), false, true);\r\n\t}", "public function enqueueScripts() {\n wp_register_style('rrze-faq-style', plugins_url('assets/css/rrze-faq.css', plugin_basename($this->pluginFile)));\n wp_enqueue_style('rrze-faq-style');\n }", "function register_scripts_and_styles() {\n\t\tif(!is_admin()) {\n\n\t\t\t// register styles\n\t\t\twp_register_style('wpinabox/css', $this->assets('main.css'), array());\n\n\t\t\t// register scripts\n\t\t\twp_register_script('wpinabox/js', $this->assets('main.js'), array(), null, true);\n\n\t\t\t// enqueue styles/scripts\n\t\t\twp_enqueue_style('wpinabox/css');\t\t\t\n\t\t\twp_enqueue_script('wpinabox/js');\t\t\n\n\t\t} else {\n\t\t\t// admin-specific styles / scripts\n\t\t}\n\t}", "public function register_frontend_assets() {\n\t\twp_enqueue_style( 'ghc-functionality', $this->plugin_dir_url( 'dist/css/style.min.css' ), array(), $this->version );\n\n\t\twp_register_script( 'ghc-content-types-filter', $this->plugin_dir_url( 'dist/js/content-types.min.js' ), array( 'jquery' ), $this->version, true );\n\n\t\twp_register_script( 'ghc-maps', $this->plugin_dir_url( 'dist/js/maps.min.js' ), array( 'jquery', 'google-maps-api' ), $this->version, true );\n\t\twp_register_script( 'google-maps-api', 'https://maps.googleapis.com/maps/api/js?key=' . get_option( 'options_api_key' ), array(), null, true ); // phpcs:ignore WordPress.WP.EnqueuedResourceParameters -- let Google Maps handle cache invalidation.\n\n\t\twp_enqueue_script( 'ghc-popups', $this->plugin_dir_url( 'dist/js/popups.min.js' ), array( 'jquery', 'popup-maker-site' ), $this->version, true );\n\n\t\twp_register_script( 'ghc-robly-lists', $this->plugin_dir_url( 'dist/js/robly-lists.min.js' ), array( 'jquery' ), $this->version, true );\n\n\t\twp_register_script( 'slick', $this->plugin_dir_url( 'dist/js/slick.min.js' ), array( 'jquery' ), $this->version, true );\n\t\twp_register_style( 'slick', $this->plugin_dir_url( 'dist/css/slick.min.css' ), array(), $this->version, false );\n\t}", "private function __register_scripts() {\n\t\t// Load all the registered scripts\n\t\t$assets_loader = new SwpmvcAssetsLoader();\n\t\t$assets = $assets_loader->fn_load_scripts();\n\n\t\t//Extract CSS Assets and put them into Registered CSS Container\n\t\t$this->registered_css = $assets[ 'css' ];\n\n\t\t//Extract JS Assets and put them into Registered JS Container\n\t\t$this->registered_js = $assets[ 'js' ];\n\n\t\t//Some cleanup\n\t\tunset($assets_loader);\n\t\tunset($assets);\n\n\t\t//Load all the common CSS and JS which will be required for all the pages.\n\t\t$this->fn_load_scripts();\n\t}", "function add_scripts_to_front() {\n $media = get_option('smfn_option_3') ? get_option('smfn_option_3') : \"1023\";\n wp_register_style('smfn-dynamic-css', plugin_dir_url(SMFN_FILE).'assets/css/dynamic.css.php?media=' . $media);\n wp_enqueue_style( 'smfn-dynamic-css');\n wp_enqueue_script('smfn-actions', plugin_dir_url(SMFN_FILE) . 'assets/js/smfnfunctions.js', array(), '1.0.0', true);\n }", "public function register_assets() {\n\n\t\tforeach ( $this->assets as $asset ) {\n\t\t\t$js_path = $this->plugin->dir() . '/js/dist/' . $asset . '.asset.php';\n\t\t\t$css_path = $this->plugin->dir() . '/css/' . $asset . '.css';\n\t\t\tif ( file_exists( $js_path ) ) {\n\t\t\t\t$assets_dep = require_once $js_path;\n\t\t\t\twp_register_script(\n\t\t\t\t\t'formation-' . $asset . '-js',\n\t\t\t\t\t$this->plugin->asset_url( 'js/dist/' . $asset . '.js' ),\n\t\t\t\t\t$assets_dep['dependencies'],\n\t\t\t\t\t$assets_dep['version'],\n\t\t\t\t\ttrue\n\t\t\t\t);\n\n\t\t\t\tif ( file_exists( $css_path ) ) {\n\t\t\t\t\twp_register_style(\n\t\t\t\t\t\t'formation-' . $asset . '-css',\n\t\t\t\t\t\t$this->plugin->asset_url( 'css/' . $asset . '.css' ),\n\t\t\t\t\t\tnull,\n\t\t\t\t\t\t$assets_dep['version']\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static function wp_enqueue_scripts() {\n\t\t\t\n\t\t\tWPPFrontendUI::_register_styles();\n\t\t\t\n\t\t}", "public function register_plugin_styles() {\n\t\twp_register_style ( 'tr-plugin-styles', plugins_url ( 'tr_top_ratter/css/tr_top_ratter.css?v=' . microtime () ) );\n\t\twp_enqueue_style ( 'tr-plugin-styles' );\n\t\t\n\t\twp_register_style ( 'tr_jquery_custom_style', plugins_url ( 'tr_top_ratter/css/jquery-ui.min.css' ) );\n\t\twp_enqueue_style ( 'tr_jquery_custom_style' );\n\t}", "public function registerAll() {\n $this->registerScripts();\n $this->localizeScripts();\n $this->registerStyles();\n }", "public function setup_scripts_and_styles() {\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'enqueue_discogs_css' ), 50 );\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'enqueue_discogs_js' ), 10 );\n\t}", "function enqueues() {\n\t\twp_register_style( 'ks-thematic-actions', plugin_dir_url( __FILE__ ) . 'style.css' );\n\t wp_enqueue_style( 'ks-thematic-actions' );\n\t}", "function beaver_extender_fe_style_editor_register_scripts() {\n\n\twp_register_style( 'beaver_extender_fe_style_editor_styles', BBEXT_URL . 'lib/admin/fe-style-editor/front-end.css' );\n\twp_register_script( 'beaver_extender_fe_style_editor', BBEXT_URL . 'lib/admin/fe-style-editor/front-end.js', array( 'jquery', 'jquery-ui-draggable' ), BBEXT_VERSION, true );\n\twp_register_script( 'beaver_extender_ace', BBEXT_URL . 'lib/js/ace/ace.js' );\n\twp_register_script( 'beaver_extender_ace_autocomplete', BBEXT_URL . 'lib/js/ace/ext-language_tools.js' );\n\t\t\n}", "public function register_styles() {\n\n\t\t\twp_register_style(\n\t\t\t\t\"$this->ID-style\",\n\t\t\t\tplugins_url( 'style.css', __FILE__ ),\n\t\t\t\tnull,\n\t\t\t\t$this->version\n\t\t\t);\n $file_tmpl = 'ui/timeago/locale/jquery.timeago.%s.js';\n wp_register_script( 'timeago-locale', WP_STREAM_URL . sprintf( $file_tmpl, 'en' ), array( 'timeago' ), '1' );\n wp_register_style( 'select2', WP_STREAM_URL . 'ui/select2/select2.css', array(), '3.5.1' );\n\t\t}", "public function register_plugin_styles()\r\n\t{\r\n\t\twp_enqueue_style( 'wp-fading-content-slider-plugin-styles', plugins_url( 'wp-fading-content-slider/css/display.css' ) );\r\n\t}", "public function enqueue_front_end_scripts() {}", "function plugin_stater_reg_scripts() {\r\n\t// we are telling WP that we depend on jQuery\r\n\twp_register_script( CH_PLUGIN_NAME , plugins_url( '/js/app.js', __FILE__ ), array( 'jquery' ) );\r\n\twp_enqueue_script ( CH_PLUGIN_NAME );\r\n\twp_enqueue_style ( CH_PLUGIN_NAME , plugins_url( '/css/app.css', __FILE__ ) );\r\n}", "private function register_scripts()\n\t{\n\t\tif (is_admin()) {\n\t\t\t// Load our main stylesheet.\n\t\t\twp_enqueue_style('kd-letters', plugin_dir_url( __FILE__ ) . '/templates/style/kd-letters.css');\n\t\t}\n\t}", "function pm_register_resources() {\n\t// Styles\n\n wp_enqueue_style( 'normalize', get_stylesheet_directory_uri().'/assets/css/normalize.css' );\n wp_enqueue_style( 'ts-styles', get_stylesheet_directory_uri().'/assets/css/style.css', null, pm_version_hash('/assets/css/style.css') );\n wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Crimson+Text:400,700|Raleway:500,600');\n \n // Scripts\n\n wp_deregister_script( 'jquery' );\n wp_register_script( 'jquery', includes_url( '/js/jquery/jquery.js' ), false, NULL, true );\n// wp_register_script( 'jquery', 'http://masonry.desandro.com/v2/js/jquery-1.7.1.min.js', false, NULL, true );\n wp_enqueue_script( 'jquery' );\n //wp_enqueue_script( 'jquery-masonry' );\n wp_enqueue_script( 'ts-infinitescroll', get_stylesheet_directory_uri().'/assets/js/infinite-scroll.min.js', null, null, true);\n wp_enqueue_script( 'ts-imagesloaded', get_stylesheet_directory_uri().'/assets/js/imagesloaded.min.js', null, null, true);\n wp_enqueue_script( 'ts-cookies', get_stylesheet_directory_uri().'/assets/js/js.cookies.js', null, null, true);\n wp_enqueue_script( 'ts-tweenmax', '//cdnjs.cloudflare.com/ajax/libs/gsap/1.19.1/TweenMax.min.js', null, null, true);\n// wp_enqueue_script( 'ts-masonry', get_stylesheet_directory_uri().'/assets/js/masonry.min.js', null, null, true);\n wp_enqueue_script( 'ts-scripts', get_stylesheet_directory_uri().'/assets/js/ts.js',null, pm_version_hash('/assets/js/ts.js'), true);\n \n // Fonts\n}", "protected function register_assets() {\n\n\t\t// Register block script for backend/editor.\n\t\t\\wp_register_script(\n\t\t\t'tcc-layout-engine',\n\t\t\tplugins_url( '/dist/blocks.build.js', __FILE__ ),\n\t\t\tarray( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor' ),\n\t\t\tfilemtime( plugin_dir_path( __FILE__ ) . 'dist/blocks.build.js' ),\n\t\t\ttrue\n\t\t);\n\n\t\t// Register block editor styles for backend/editor.\n\t\t\\wp_register_style(\n\t\t\t'tcc-layout-engine',\n\t\t\tplugins_url( 'dist/blocks.editor.build.css', __FILE__ ),\n\t\t\tarray( 'wp-edit-blocks' ),\n\t\t\tfilemtime( plugin_dir_path( __FILE__ ) . 'dist/blocks.editor.build.css' )\n\t\t);\n\n\t}", "public function enqueue_scripts() {\n\t\twp_add_inline_style( 'at-main', $this->inline_css() );\n\t}", "public function wcufd_load_styles_scripts() {\n //main script file of the plugin\n wp_register_script( 'wcufd-front-end-js', plugins_url( 'js/wcufd-script.js',__FILE__ ), array('jquery'), '', true );\n wp_localize_script( 'wcufd-front-end-js', 'wcufd_vars', array(\n 'ajaxurl' => admin_url('admin-ajax.php'),\n 'current_user_can' => current_user_can('administrator')\n )\n );\n wp_register_style( 'wcufd-front-end-style', plugins_url( 'css/wcufd-style.css',__FILE__ ) );\n }", "public function register_scripts()\r\n\t{\r\n\t\twp_register_style('poll', plugins_url('assets/poll.css', __DIR__));\r\n\t\twp_register_script('vue', 'https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.10/vue.min.js', array('jquery'), null, true);\r\n\t\twp_register_script('poll', plugins_url('assets/poll.js', __DIR__), array('vue'), null, true);\r\n\t}", "function init() {\n\n\t\twp_register_style( THEME_PREFIX . '/copy', get_theme_file_url( 'assets/critical/copy.min.css' ), null, 'init' );\n\n\t\tCalyx()->_register_vendor_assets();\n\n\t\twp_register_script( THEME_PREFIX . '/script_object', get_theme_file_url( 'assets/js/calyx.min.js' ), null, 'init' );\n\n\t\t\t$localize_args = array(\n\t\t\t\t'_site' => home_url(),\n\t\t\t\t'_rest' => home_url( 'wp-json' ),\n\t\t\t\t'_ajax' => admin_url( 'admin-ajax.php' ),\n\n\t\t\t\t '_server_high_load' => json_encode( Calyx()->server()->is_high_load() ),\n\t\t\t\t'_server_extreme_load' => json_encode( Calyx()->server()->is_extreme_load() ),\n\t\t\t\t '_webfontloader' => json_encode( Calyx()->get_webfontloader_settings() ),\n\t\t\t);\n\n\t\t\tis_admin() && $localize_args['_admin'] = json_encode( true );\n\n\t\t\twp_localize_script( THEME_PREFIX . '/script_object', '_' . THEME_PREFIX . '_data', $localize_args );\n\n\t}", "public function register(): void\n\t{\n\t\t\\add_action('login_enqueue_scripts', [$this, 'enqueueStyles']);\n\t\t\\add_action('admin_enqueue_scripts', [$this, 'enqueueStyles'], 50);\n\t\t\\add_action('admin_enqueue_scripts', [$this, 'enqueueScripts']);\n\t}", "public function register_assets() {\n $js_folder = SD_PLUGIN_PATH . '/src/assets/js/';\n $css_folder = SD_PLUGIN_PATH . '/src/assets/css/';\n $scripts = scandir($js_folder);\n //var_dump($scripts);\n $styles = scandir($css_folder);\n foreach ($styles as $style) {\n if( !is_dir($style) ) {\n wp_enqueue_style( URL_SCOPE . mt_rand(0, 9000), '/wp-content/plugins/'.sanitize_key(PLUGIN_NAME).'/src/assets/css/' . $style);\n }\n }\n foreach ($scripts as $script) {\n if( !is_dir($script) ) {\n wp_enqueue_script( URL_SCOPE . mt_rand(0, 9000), '/wp-content/plugins/'.sanitize_key(PLUGIN_NAME).'/src/assets/js/' . $script);\n }\n }\n }", "public function addPluginFrontendStylesheets() {\n global $laterpay_version;\n wp_register_style(\n 'laterpay-post-view',\n LATERPAY_ASSET_PATH . '/static/css/laterpay-post-view.css',\n array(),\n $laterpay_version\n );\n wp_register_style(\n 'laterpay-dialogs',\n 'https://static.sandbox.laterpaytest.net/webshell_static/client/1.0.0/laterpay-dialog/css/dialog.css'\n );\n wp_enqueue_style('laterpay-post-view');\n wp_enqueue_style('laterpay-dialogs');\n }", "public function initAssets()\n {\n add_action(\n \"admin_enqueue_scripts\",\n array($this, 'PluginScripts')\n );\n\n add_action(\n \"admin_enqueue_scripts\",\n array($this, 'PluginStyles')\n );\n }", "function front_end_styles()\n{\n\twp_register_style( 'front-end-normalize', get_template_directory_uri() . '/css/reset.css', array(), null, 'all' );\n wp_register_style( 'front-end-styles', get_template_directory_uri() . '/css/styles.css', array(), null, 'all' );\n wp_register_style( 'front-end-plugins', get_template_directory_uri() . '/css/plugins.css', array(), null, 'all' );\n wp_register_style( 'front-end-media-queries', get_template_directory_uri() . '/css/media-queries.css', array(), null, 'all' );\n \n \n wp_enqueue_style( 'front-end-normalize' );\n wp_enqueue_style( 'front-end-styles' );\n wp_enqueue_style( 'front-end-plugins' );\n wp_enqueue_style( 'front-end-media-queries' );\n}", "function ARTEMIS_SWP_plugin_load_admin_scripts_and_styles() {\r\n\t/*generic admin css*/\r\n\twp_register_style( 'js_backend_css', plugins_url('/css/backend_style.css', __FILE__));\r\n\twp_enqueue_style( 'js_backend_css');\r\n\t\r\n\t/*alpha color picker*/\r\n\twp_register_script( 'alpha_color_picker', plugins_url('/js/alpha-color-picker.js', __FILE__), array('jquery', 'wp-color-picker'), '', true);\r\n\twp_enqueue_script( 'alpha_color_picker');\r\n\twp_enqueue_style( 'alpha_color_picker', plugins_url('/css/alpha-color-picker.css', __FILE__ ), array('wp-color-picker'));\r\n\r\n\t/*vc helper*/\r\n\twp_register_script( 'artemis_vc_helper', plugins_url('/js/artemis_vc_helper.js', __FILE__), array('jquery', 'wp-color-picker'), '', true);\r\n\twp_enqueue_script( 'artemis_vc_helper');\r\n}", "function register_plugin_styles() {\n\twp_register_style( 'spreadshop_style', plugins_url( 'spreadshop/style/style.css' ) );\n\twp_register_script( 'spreadshop_script', plugins_url( 'spreadshop/js/spreadshop.js' ) );\n\twp_enqueue_style( 'spreadshop_style' );\n\twp_enqueue_script('jquery');\n\twp_enqueue_script( 'spreadshop_script' );\n}", "public function myScripts()\n {\n //wp_register_script('angularjs',plugins_url('bower_components/angular/angular.min.js', __FILE__));\n wp_enqueue_style('grimagecss', plugins_url('style.css', __FILE__));\n //wp_enqueue_script('grimagescripts',plugins_url('/app.js',__FILE__));\n }", "public function onLoad() {\n\t\t$this->plugin->wrapper = $this->plugin->factory->wrapper;\n\t\twp_enqueue_style( 'clrchs-admin', $this->plugin->wrapper->getURL('assets/admin.css'), [], $this->plugin->version);\n\t}", "public function onEnqueueScripts()\n {\n $this->enqueue('front');\n }", "function cosmetics_register_front_end() {\n wp_enqueue_style( 'cosmetics-fonts', cosmetics_fonts_url(), array(), null );\n\n /* Start main Css */\n wp_enqueue_style( 'cosmetics-library', get_theme_file_uri( '/css/library.min.css' ), array(), '' );\n /* End main Css */\n\n /* Start Style Css */\n wp_enqueue_style( 'cosmetics-style', get_stylesheet_uri() );\n /* Start Style Css */\n\n /* hungkv css */\n// wp_enqueue_style( 'hungkv', get_theme_file_uri( '/css/hungkv.css' ), array(), '' );\n\n /*\n * End Get Css Front End\n * */\n\n\n /*\n * Start Get Js Front End\n * */\n\n // Load the html5 shiv.\n wp_enqueue_script( 'html5', get_theme_file_uri( '/js/html5.js' ), array(), '3.7.3' );\n wp_script_add_data( 'html5', 'conditional', 'lt IE 9' );\n\n wp_enqueue_script( 'cosmetics-main', get_theme_file_uri( '/js/main.min.js' ), array('jquery'), '', true );\n\n if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n wp_enqueue_script( 'comment-reply' );\n }\n\n wp_register_script( 'jquery-countdown', get_theme_file_uri( '/js/library/jquery.countdown.min.js' ), array(), '2.2.0', true );\n\n wp_enqueue_script( 'cosmetics-custom', get_theme_file_uri( '/js/custom.js' ), array(), '1.0.0', true );\n\n /*\n * End Get Js Front End\n * */\n\n}", "public function enqueue_styles_and_scripts() {\n wp_enqueue_style($this->plugin_slug . '-plugin-styles', plugins_url('h5p/h5p-php-library/styles/h5p.css'), array(), self::VERSION);\n }", "public function register_scripts() {\n add_action( 'admin_footer', array( $this, 'add_footer_styles' ) );\n wp_enqueue_script( 'jquery-ui-core' );\n wp_enqueue_script( 'jquery-ui-autocomplete' );\n wp_enqueue_script( 'jquery-ui-tabs' );\n wp_enqueue_script( 'fo-settings-script', plugins_url( 'assets/js/settings.js', __FILE__ ) , array( 'jquery' ) );\n\n $data = array(\n 'usable_fonts' => $this->usable_fonts,\n 'available_fonts' => $this->available_fonts,\n 'options_values' => $this->elements_options,\n 'labels' => array(\n 'default_label' => __('Not Stated', 'bk-fonts'),\n 'light' => __('Light', 'bk-fonts'),\n 'regular' => __('Normal', 'bk-fonts'),\n 'semibold' => __('Semi-Bold', 'bk-fonts'),\n 'bold' => __('Bold', 'bk-fonts'),\n 'extrabold' => __('Extra-Bold', 'bk-fonts'),\n 'black' => __('Black', 'bk-fonts'),\n 'italic' => __('Italic', 'bk-fonts'),\n ),\n );\n\n wp_localize_script( 'fo-settings-script', 'data', $data );\n\n wp_enqueue_style( 'fo-settings-css', plugins_url( 'assets/css/settings.css', __FILE__ ) );\n wp_enqueue_style( 'fontawesome', plugins_url( 'assets/css/font-awesome.min.css', __FILE__ ) );\n }", "private function registerPlugins()\n\t{\n\t\t$assetDir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'assets' . DIRECTORY_SEPARATOR;\n\t\t$assetUrl = Yii::app()->assetManager->publish($assetDir);\n\n\n\t\t$cs = Yii::app()->getClientScript();\n\n\t\tforeach ($this->plugins as $p)\n\t\t{\n\n\t\t\tif ($p['flag'])\n\t\t\t{\n\t\t\t\tforeach ($p['js'] as $js)\n\t\t\t\t\t$cs->registerScriptFile($assetUrl . \"/\" . $js, CClientScript::POS_END);\n\t\t\t}\n\t\t}\n\t}", "function ts_register_scripts(){\n\tglobal $smof_data, $ts_page_datas;\n\tts_register_google_font();\n\t\n\twp_deregister_style( 'font-awesome' );\n\twp_deregister_style( 'yith-wcwl-font-awesome' );\n\twp_register_style( 'font-awesome', get_template_directory_uri() . '/css/font-awesome.css' );\n\twp_enqueue_style( 'font-awesome' );\n\t\n\twp_register_style( 'ts-reset', get_template_directory_uri() . '/css/reset.css' );\n\twp_enqueue_style( 'ts-reset' );\n\t\n\twp_enqueue_style( 'ts-style', get_stylesheet_uri() );\n\t\n\tif( isset($smof_data['ts_responsive']) && (int) $smof_data['ts_responsive'] == 1 ){\n\t\twp_register_style( 'ts-responsive', get_template_directory_uri() . '/css/responsive.css' );\n\t\twp_enqueue_style( 'ts-responsive' );\n\t}\n\t\n\twp_deregister_style( 'owl.carousel' );\n\twp_register_style( 'owl.carousel', get_template_directory_uri() . '/css/owl.carousel.css' );\n\twp_enqueue_style( 'owl.carousel' );\n\t\n\twp_register_style( 'prettyPhoto', get_template_directory_uri() . '/css/prettyPhoto.css' );\n\twp_enqueue_style( 'prettyPhoto' );\n\t\n\twp_deregister_style( 'select2' );\n\twp_register_style( 'select2', get_template_directory_uri() . '/css/select2.css' );\n\twp_enqueue_style( 'select2' );\n\t\n\tif( isset($ts_page_datas['ts_full_page']) && $ts_page_datas['ts_full_page'] ){\n\t\twp_register_style( 'fullPage', get_template_directory_uri() . '/css/jquery.fullPage.css' );\n\t\twp_enqueue_style( 'fullPage' );\n\t}\n\t\n\tif( isset($smof_data['ts_enable_rtl']) && $smof_data['ts_enable_rtl'] ){\n\t\twp_register_style( 'ts-rtl', get_template_directory_uri() . '/css/rtl.css' );\n\t\twp_enqueue_style( 'ts-rtl' );\n\t}\n\t\n\twp_deregister_script( 'ts-include-scripts' );\n\twp_register_script( 'ts-include-scripts', get_template_directory_uri().'/js/include_scripts.js', array('jquery'), null, true);\n\twp_enqueue_script( 'ts-include-scripts' );\n\t\n\twp_deregister_script( 'owl.carousel' );\n\twp_register_script( 'owl.carousel', get_template_directory_uri().'/js/owl.carousel.min.js', array(), null, true);\n\twp_enqueue_script( 'owl.carousel' );\n\t\n\twp_deregister_script( 'ts-script' );\n\twp_register_script( 'ts-script', get_template_directory_uri().'/js/main.js', array('jquery'), null, true);\n\twp_enqueue_script( 'ts-script' );\n\t\n\tif( isset($ts_page_datas['ts_full_page']) && $ts_page_datas['ts_full_page'] ){\n\t\twp_register_script( 'fullPage', get_template_directory_uri().'/js/jquery.fullPage.min.js', array(), null, true);\n\t\twp_enqueue_script( 'fullPage' );\n\t}\n\t\n\tif( is_singular('product') && $smof_data['ts_prod_cloudzoom'] ){\n\t\twp_deregister_script( 'cloud-zoom' );\n\t\twp_register_script( 'cloud-zoom', get_template_directory_uri().'/js/cloud-zoom.js', array('jquery'), null, true);\n\t\twp_enqueue_script( 'cloud-zoom' );\n\t}\n\t\n\tif( is_singular('product') && isset($smof_data['ts_prod_thumbnails_style']) && $smof_data['ts_prod_thumbnails_style'] == 'vertical' ){\n\t\twp_deregister_script( 'jquery.caroufredsel' );\n\t\twp_register_script( 'jquery.caroufredsel', get_template_directory_uri().'/js/jquery.carouFredSel-6.2.1.min.js', array(), null, true);\n\t\twp_enqueue_script( 'jquery.caroufredsel' );\n\t}\n\t\n\twp_register_script( 'cart-variation', get_template_directory_uri().'/js/add-to-cart-variation.min.js', array(), null, true);\n\twp_enqueue_script('cart-variation');\n\t\n\twp_deregister_script( 'select2' );\n\twp_register_script( 'select2', get_template_directory_uri().'/js/select2.min.js', array(), null, true);\n\twp_enqueue_script('select2');\n\t\n\tif( is_single() && get_option( 'thread_comments' ) ){ \t\n\t\twp_enqueue_script( 'comment-reply' );\n\t}\n\t\n}", "public function enqueueScripts()\n {\n wp_enqueue_style('gfbitpay-admin', $this->plugin->urlBase . 'style-admin.css', false, GFBITPAY_PLUGIN_VERSION);\n }", "public function enqueue_scripts() {\n\t\t$this->styles();\n\t\t$this->scripts();\n\t}", "public function register_scripts()\n\t{\n\n\t\twp_register_style('instant-search', plugins_url('assets/instant-search.css', __FILE__));\n\t\twp_register_script('instant-search', plugins_url('assets/instant-search.js', __FILE__), array('wp-i18n'), false, true);\n\t\twp_localize_script(\n\t\t\t'instant-search',\n\t\t\t'instantSearch',\n\t\t\t[\n\t\t\t\t'rest' => get_rest_url(null, 'wp/v2/'),\n\t\t\t\t'msg' => __('No results', 'instantsearch')\n\t\t\t]\n\t\t);\n\n\t\twp_enqueue_style('instant-search');\n\t\twp_enqueue_script('instant-search');\n\t\t//wp_set_script_translations('instant-search', 'instantsearch', basename(dirname(__FILE__)) . '/languages/');\n\t}", "public function registerStylesFrontend() {\n $v = Wpjb_Project::VERSION;\n $p = plugins_url().'/wpjobboard/public/css/';\n $x = plugins_url().'/wpjobboard/application/vendor/';\n \n wp_register_style('wpjb-css', $p.\"frontend.css\", array('wpjb-glyphs'), $v );\n }", "function enqueue_scripts() {\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_scripts' ), 21 );\n\t\tadd_action( 'admin_init', array( $this, 'add_pagination' ) );\n\t\tadd_action( \"bc_plugin_browser_content_{$this->page_slug}\", array( $this, 'display_plugins_browser' ), 10, 2 );\n\t}", "public function register_assets() {\n\t\t\twp_enqueue_script(\n\t\t\t\t'wp_searchermain',\n\t\t\t\tget_stylesheet_directory_uri() . '/resources/scripts/denuncias/SearcherMain.js',\n\t\t\t\tarray(),\n\t\t\t\t'1.0.0',\n\t\t\t\ttrue\n\t\t\t);\n\t\t\twp_localize_script(\n\t\t\t\t'wp_searchermain',\n\t\t\t\t'wp_searchermain',\n\t\t\t\tarray(\n\t\t\t\t\t'ajax' => admin_url( 'admin-ajax.php' ),\n\t\t\t\t\t'nonce' => wp_create_nonce( 'auth_nonce' )\n\t\t\t\t)\n\t\t\t);\n }", "public function enqueue_scripts(){\n\t\t\t// Add the color picker JS & CSS files\n\t\t\twp_enqueue_style( 'wp-color-picker' );\n\t\t\twp_enqueue_script( 'wp-color-picker' );\n\t\t}", "public function register() {\n\t\t$this->container['assets'] = $assets = plugins_url( '/assets', $this->container['root-file'] );\n\t\t$this->container['node-modules'] = $nodeModules = plugins_url( '/node_modules', $this->container['root-file'] );\n\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'registerScripts' ) );\n\t}", "private function register_files() {\n\t\tif( $this->type === self::STYLE ) {\n\t\t\twp_register_style( $this->handle, $this->src, $this->settings['deps'], $this->settings['vers'], $this->settings['media'] );\n\t\t} else if ( $this->type === self::SCRIPT ) {\n\t\t\twp_register_script( $this->handle, $this->src, $this->settings['deps'], $this->settings['vers'], $this->settings['in_footer'] );\n\t\t}\n\t}", "function aitEnqueueScriptsAndStyles(){\r\n\tif(!is_admin()){\r\n\t\t// just shortcuts\r\n\t\t$s = THEME_CSS_URL;\r\n\t\t$j = THEME_JS_URL;\r\n\r\n\t\taitAddStyles(array(\r\n\t\t\t'ait-colorbox' => array('file' => \"$s/libs/colorbox.css\"),\r\n\t\t\t'ait-fancybox' => array('file' => \"$s/libs/fancybox.css\"),\r\n\t\t\t'jquery-ui' \t => array('file' => \"$s/libs/jquery-ui.css\"),\r\n\t\t\t'prettysociable' => array('file' => \"$s/libs/prettySociable.css\"),\r\n\t\t\t'hoverzoom' \t => array('file' => \"$s/libs/hoverZoom.css\"),\r\n\t\t));\r\n\r\n\t\taitAddScripts(array(\r\n\t\t\t'jquery-ui-tabs' \t\t\t=> true,\r\n\t\t\t'jquery-ui-accordion' \t\t\t=> true,\r\n\t\t\t'jquery-infieldlabel' \t\t\t=> array('file' => \"$j/libs/jquery-infieldlabel.js\", 'deps' => array('jquery'), 'inFooter' => true),\r\n\t\t\t'jquery-iconmenu' \t\t\t\t=> array('file' => \"$j/libs/jquery-iconmenu.js\", 'deps' => array('jquery'), 'inFooter' => true),\r\n\t\t\t'jquery-plugins'\t \t\t\t=> array('file' => \"$j/libs/jquery-plugins.js\", 'deps' => array('jquery')),\r\n\t\t\t'modernizr'\t\t\t\t\t\t=> array('file' => \"$j/libs/modernizr-2.6.1-custom.js\", 'deps' => array('jquery'), 'inFooter' => true),\r\n\r\n\t\t\t'ait-gridgallery' \t\t\t=> array('file' => \"$j/gridgallery.js\", 'deps' => array('jquery', 'jquery-plugins'), 'inFooter' => true),\r\n\t\t\t'ait-testimonials' \t\t\t=> array('file' => \"$j/testimonials.js\", 'deps' => array('jquery'), 'inFooter' => true),\r\n\t\t\t'ait-script' \t\t\t=> array('file' => \"$j/script.js\", 'deps' => array('jquery', 'jquery-infieldlabel', 'jquery-iconmenu', 'jquery-plugins', 'modernizr'), 'inFooter' => true),\r\n\t\t));\r\n\t}\r\n}", "function scripts(){\n wp_register_style('style',get_template_directory_uri() . '/assets/css/style.css',[],1,'all');\n wp_enqueue_style('style');\n wp_enqueue_style('custom-google-font','//fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');\n wp_register_script('app',get_template_directory_uri() . '/assets/js/app.js',[],1,true);\n wp_enqueue_script('app');\n}", "function register_theme_styles_and_scripts(){\n // Register style\n wp_enqueue_style( 'theme-icons', get_template_directory_uri(). '/css/icons.css', array(), '1.0.0', 'all' ); // Register font icons\n wp_enqueue_style( 'google_fonts', sunset_google_fonts_url(), array(), '1.0.0'); // Register Google fonts\n wp_enqueue_style( 'slick-style', get_template_directory_uri(). '/css/slick.css', array(), '1.9.0', 'all' ); // Register theme main style\n wp_enqueue_style( 'theme-main-style', get_template_directory_uri(). '/css/main.css', array(), '1.0.0', 'all' ); // Register theme main style\n\n // Register scripts\n wp_enqueue_script( 'jquery');\n wp_enqueue_script( 'slick-scripts', get_template_directory_uri(). '/js/slick.js', array('jquery'), '1.9.0', true );\n wp_enqueue_script( 'main-scripts', get_template_directory_uri(). '/js/main.js', array('jquery'), '1.0.0', true );\n }", "function enqueue()\n\t{\n\t\twp_enqueue_style('kbpluginstyle', $this->plugin_url . 'assets/style.css');\n\t\twp_enqueue_script('kbpluginscript', $this->plugin_url . 'assets/script.js');\n\t}", "public static function register()\n {\n // wp_enqueue_script('comment-reply');\n wp_enqueue_script('jquery');\n wp_deregister_script('underscore');\n wp_register_script('underscore', HKM_LIBJS . 'vendor/underscore.js', array(), '1.5', false);\n wp_register_script('moment', HKM_LIBJS . 'vendor/moment.js', array('jquery'), '2.7', false);\n wp_register_script('xdantimepicker', HKM_LIBJS . 'vendor/xdantimepicker.js', array('jquery', 'moment'), '2.0', false);\n wp_register_script('twentytwelve-navigation', HKM_LIBJS . 'navigation.js', array('jquery'), '1.0', true);\n wp_register_script('crip', 'http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/md5.js', array('jquery'), '1.0', true);\n wp_register_script('onecall_core', HKM_LIBJS . 'oc.js', array('jquery'), '1.0', false);\n wp_register_script('onecall_core_zepto', HKM_LIBJS . 'vendor/zepto.js', array('jquery'), '1.0', false);\n wp_register_script('onecall_core_mustache', HKM_LIBJS . 'vendor/mustache.js', array('jquery'), '1.0', false);\n //wp_register_script('onecall_core_backbone', HKM_LIBJS . 'vendor/backbone.js', array('jquery'), '1.0', false);\n wp_register_script('onecall_core_require', HKM_LIBJS . 'vendor/require.js', array('jquery'), '1.0', false);\n wp_register_script('onecall_core_bar', HKM_LIBJS . 'vendor/mustache.handlerbar.js', array('jquery', 'onecall_core_mustache'), '1.0', false);\n wp_register_script('grid', HKM_LIBJS . 'oc_canvas_grid.js', array('onecall_core'), '20120827', false);\n wp_register_script('canvasdraw', HKM_LIBJS . 'oc_draw.js', array('onecall_core', 'grid'), '20120827', false);\n wp_register_script('addjob', HKM_LIBJS . 'oc_addjob.js', array('onecall_core'), '1.0', false);\n wp_register_script('oc_form_model', HKM_LIBJS . 'oc.form.js', array('jquery'), '1.0', false);\n wp_register_script('oc_crflow', HKM_LIBJS . 'oc_cr_flow.js', array('jquery'), '1.0', false);\n wp_register_script('oc_ostaff', HKM_LIBJS . 'oc_staff_flow.js', array('jquery'), '1.0', false);\n wp_register_script('oc_ostaff_buttons', HKM_LIBJS . 'oc_staff_buttons.js', array('jquery'), '1.0', false);\n wp_register_script('oc_interactive_piles', HKM_LIBJS . 'oc_interactive_piles.js', array('jquery'), '1.0', false);\n wp_register_script('oc_newcompany', HKM_LIBJS . 'oc_newcompany.js', array('jquery'), '1.0', false);\n wp_register_script('oc_newcompany2', HKM_LIBJS . 'pendings/new_company.js', array('jquery'), '1.0', false);\n wp_register_script('oc_newcr', HKM_LIBJS . 'oc_newcr.js', array('jquery'), '1.0', false);\n wp_register_script('oc_newcp', HKM_LIBJS . 'oc_newcp.js', array('jquery'), '1.0', false);\n wp_register_script('oc_demodata', HKM_LIBJS . 'oc_demo_data.js', array('jquery'), '1.0', false);\n wp_register_script('oc_data_page', HKM_LIBJS . 'data2.js', array('jquery'), '1.0', false);\n wp_register_script('oc_dialog', HKM_LIBJS . 'bootstrap/bootbox.min.js', array('jquery'), '1.0', false);\n wp_register_script('ocbootstrap', HKM_LIBJS . 'bootstrap/bootstrap.min.js', array('jquery'), '1.0', false);\n wp_register_script('royalslider', HKM_LIBJS . 'vendor/jquery.royalslider.min.js', array('jquery'), '1.0', false);\n wp_register_script('oc_paper_core', HKM_LIBJS . 'vendor/paper.min.js', null, '1.0', false);\n wp_register_script('oc_sketch', HKM_LIBJS . 'oc_sketch.js', null, '1.0', false);\n wp_register_script('oc_sketchtool', HKM_LIBJS . 'oc_sketch_tools.js', null, '1.0', false);\n wp_register_script('oc_dhxcore', HKM_LIBJS . 'dhx/dhtmlxscheduler.js', null, '1.0', false);\n wp_register_script('oc_dhxcore_ext_timeline', HKM_LIBJS . 'dhx/ext/dhtmlxscheduler_timeline.js', array('oc_dhxcore'), '1.0', false);\n wp_register_script('oc_dhxcore_ext_editor', HKM_LIBJS . 'dhx/ext/dhtmlxscheduler_editors.js', array('oc_dhxcore'), '1.0', false);\n wp_register_script('oc_dhxcore_ext_terrace', HKM_LIBJS . 'dhx/ext/dhtmlxscheduler_dhx_terrace.js', array('oc_dhxcore'), '1.0', false);\n wp_register_script('oc_mobihesk', HKM_LIBJS . 'mobi/mobiscroll.hesk-2.5.4.min.js', array(), '1.0', false);\n wp_register_script('jq_timepick', HKM_LIBJS . 'vendor/jquery.timepick.js', array('jquery'), '1.0', false);\n wp_register_script('oc_colorbox', HKM_LIBJS . 'colorbox/jquery.colorbox-min.js', array('jquery'), '1.0', false);\n wp_register_script('canvas_print', HKM_LIBJS . 'imageprocess/html2canvas.js', array('jquery'), '1.0', false);\n wp_register_script('canvas2image', HKM_LIBJS . 'imageprocess/canvas2image.js', array('canvas_base64'), '1.0', false);\n wp_register_script('canvas_base64', HKM_LIBJS . 'imageprocess/base64bit.js', array('canvas_print'), '1.0', false);\n wp_register_script('base_map_review_control', HKM_LIBJS . 'print_base_map_control.js', array('jquery', 'canvas_print'), '1.0', false);\n //https://datatables.net/\n wp_register_script('datatable', '//cdn.datatables.net/1.10.0/js/jquery.dataTables.js', array('jquery'), '1.0', false);\n wp_register_script('datatable_refresh', '//cdn.datatables.net/plug-ins/28e7751dbec/api/fnReloadAjax.js', array('jquery'), '1.0', false);\n wp_register_script('htmlminifier', HKM_LIBJS . 'vendor/htmlminifier.js', array('jquery'), '1.0', false);\n //map clusters\n wp_register_script('gmapscluster', 'http://maps.google.com/maps/api/js?sensor=true', array('jquery'));\n wp_register_script('gmaps', HKM_LIBJS . 'vendor/gmaps.js', array('gmapscluster'), '1.0', false);\n //gmaps clusters\n wp_register_script('kendo', HKM_LIBJS . 'kendoui/kendo.all.min.js', array('jquery'), '1.0', false);\n wp_register_script('joblisttb', HKM_LIBJS . 'admin/jblisttb.js', array('jquery', 'kendo'), '1.0', false);\n wp_register_script('cp_management', LIBJS_ADMIN_MODEL . 'CPManagement.js', array('jquery', 'datatable', 'datatable_refresh'), '1.0', false);\n wp_register_script('job_report_list', LIBJS_ADMIN_MODEL . 'JobReportList.js', array('jquery', 'datatable', 'onecall_core_bar'), '1.0', false);\n wp_register_script('reportcontenteditor', LIBJS_ADMIN_MODEL . 'ReportContentEditor.js', array('jquery'), '1.0', false);\n wp_register_script('listsubmission', LIBJS_ADMIN_MODEL . 'ListSubmission.js', array('jquery', 'datatable', 'datatable_refresh'), '1.0', false);\n wp_register_script('orderconfirmation', LIBJS_ADMIN_MODEL . 'JobOrderConfirmation.js', array('jquery'), '1.0', false);\n wp_register_script('listtemplatecontrol', LIBJS_ADMIN_MODEL . 'ListTemplateControl.js', array('jquery', 'datatable', 'datatable_refresh', 'underscore'), '1.0', false);\n wp_register_script('adminsupport', LIBJS_ADMIN_MODEL . 'adminsupporttools.js', array('jquery'), '1.0', false);\n wp_register_script('admin_post_job_process', LIBJS_ADMIN . 'jobpanel.js', array(\n 'jquery',\n 'datatable',\n 'datatable_refresh',\n 'jquery-ui-autocomplete',\n 'job_report_list',\n 'cp_management',\n 'orderconfirmation',\n 'xdantimepicker',\n 'adminsupport'\n ), '1.0', true);\n\n wp_register_script('admin_report_js', LIBJS_ADMIN . 'report_panel.js', array(\n 'jquery',\n 'datatable',\n 'datatable_refresh',\n 'jquery-ui-autocomplete',\n 'listsubmission',\n 'listtemplatecontrol',\n 'adminsupport',\n 'onecall_core_bar',\n 'royalslider',\n 'htmlminifier',\n 'reportcontenteditor'\n ), '1.1', true);\n\n wp_register_script('admin_post_company', LIBJS_ADMIN . 'company_panel.js', array(\n 'adminsupport', 'datatable', 'datatable_refresh'\n ), '1.0', false);\n\n wp_register_script('page_list_support', LIBJS_ADMIN_MODEL . 'listing_support.js', array('jquery', 'datatable', 'onecall_core_bar'), '1.0', false);\n wp_register_script('page_admin_system_log', LIBJS_ADMIN . 'admin_system_log.js', array('page_list_support', 'datatable', 'onecall_core_bar'), '1.0', false);\n wp_register_script('page_approve_new_company', LIBJS_ADMIN . 'company_new_approve.js', array('page_list_support', 'datatable', 'onecall_core_bar'), '1.0', false);\n wp_register_script('page_approve_new_cr', LIBJS_ADMIN . 'cr_new_approve.js', array('page_list_support', 'datatable', 'onecall_core_bar'), '1.0', false);\n wp_register_script('page_approve_new_cp', LIBJS_ADMIN . 'cp_new_approve.js', array('page_list_support', 'datatable', 'onecall_core_bar'), '1.0', false);\n wp_register_script('page_job_application', LIBJS_ADMIN . 'job_app.js', array('jquery', 'datatable', 'datatable_refresh', 'onecall_core_bar'), '1.0', false);\n wp_register_script('page_job_task_history', LIBJS_ADMIN . 'job_task.js', array('jquery', 'datatable', 'onecall_core_bar'), '1.0', false);\n //gravity form supports\n\n wp_register_script('gfordersupport', HKM_LIBJS . 'gravityforms/order.js', array('onecall_core_bar', 'gmaps', 'jquery', 'xdantimepicker'), '1.0', false);\n wp_register_script('gfnewcomsupport', HKM_LIBJS . 'gravityforms/reg_company.js', array('jquery', 'onecall_core_bar'), '1.0', false);\n /*royalslider css*/\n wp_register_script('rsslider', HKM_LIBJS . 'gravityforms/reg_company.js', array('jquery', 'onecall_core_bar'), '1.0', false);\n /*\n table.dataTable tbody tr\n\n wp_register_script('oc_mobihesk', HKM_LIBJS . 'mobi/mobiscroll.hesk-2.5.4.min.js', array('oc_dhxcore'), '1.0', false);\n\n */\n /**\n * implementation of CSS style loading system\n *\n *\n */\n wp_register_style('xdanstyle', HKM_LIBCSS . 'xdan/xdan.css', null, '2.0');\n wp_register_style('datatable', '//cdn.datatables.net/1.10.0/css/jquery.dataTables.css', false, '1', 'screen');\n /*royalslider css*/\n wp_register_style('rs-core', HKM_LIBCSS . 'royalslider/core.css', null, '9.5');\n wp_register_style('rs-min-white', HKM_LIBCSS . 'royalslider/rs-minimal-white.css', array(\"rs-core\"), '9.5');\n\n wp_register_style('oc_mobi_core', HKM_LIBCSS . 'mobi/mobiscroll.core-2.5.4.css', array(), '1');\n wp_register_style('oc_mobi_ios', HKM_LIBCSS . 'mobi/mobiscroll.ios-2.5.4.css', array(), '1');\n wp_register_style('oc_mobi_animation', HKM_LIBCSS . 'mobi/mobiscroll.animation-2.5.4.css', array(), '1');\n wp_register_style('oc_icons', HKM_LIBFONTS . 'icon.css', array(), '1');\n\n wp_register_style('print_single_basemap', HKM_LIBCSS . 'a3.css', array(), '1.1');\n wp_register_style('print_report', HKM_LIBCSS . 'a4.css', array(), '1.1');\n\n wp_register_style('gf_hot_fix', HKM_LIBCSS . 'gravityforms/basicfixes.css', array(), '1');\n\n wp_register_style('dashicons', HKM_LIBCSS . 'dashicons.css', array(), '1');\n\n wp_register_style('gfcsssupport', HKM_LIBCSS . 'gravityforms/orderscss.css', array('gf_hot_fix', 'xdanstyle'), '1');\n\n wp_register_style('adminsupportcss', HKM_LIBCSS . 'admin/normalcontrol.css',\n array(\n 'dashicons',\n 'datatable',\n 'xdanstyle')\n , '1');\n wp_register_style('cms_report_panel_css', HKM_LIBCSS . 'a4admin.css', array('adminsupportcss', 'rs-min-white'), '1');\n wp_register_style('kendo_common', HKM_LIBCSS . 'kendoui/kendo.common.min.css', array(), '1');\n wp_register_style('kendo_default', HKM_LIBCSS . 'kendoui/kendo.default.min.css', array('dashicons', 'kendo_common'), '1');\n\n //kendo_common\n }", "function montheme_register_assets()\n{\n\t//enregistre le style et le script\n\twp_register_style('bootstrap', 'https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css');\n\twp_register_style('style-css', get_stylesheet_uri());\n\twp_register_script('bootstrap', 'https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js', [], false, true); //[] =pas de dependance, false = pas de numero de version et true = script chargé dans le footer\n\t//permet d'utiliser le style et le script\n\twp_enqueue_style('bootstrap');\n\twp_enqueue_style('style-css');\n\twp_enqueue_script('bootstrap');\n}", "public static function register_assets() {\n\t\t$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG === true ? '' : '.min' ;\n\t\t// Register the js assets\n\t\twp_register_script( 'wc-acf-admin', WC_ACF_URL.'/assets/js/app'.$suffix.'.js', array( 'jquery', 'backbone' ), WC_ACF_VERSION, true );\n\t\t\n\t\twp_localize_script( 'wc-acf-admin' , 'wc_acf_vars', array(\n\t\t\t'fields' => self::$field_types,\n\t\t\t'fields_data' => get_option( WC_ACF_OPTION_FIELDS_NAME, array() )\n\t\t) );\n\t\t// Register the css assets\n\t\twp_register_style( 'wc-acf-admin', WC_ACF_URL.'/assets/css/admin-page'.$suffix.'.css', array(), WC_ACF_VERSION );\n\t}", "function frontend_enqueue_scripts()\n\t{\n\t\twp_register_style('font-awesome', $this->stylesheet, array(), $this->version);\n\n\t\twp_enqueue_style( array( 'font-awesome' ) );\n\t}", "function scripts() {\n\n\t\t// Foundation core\n\t\twp_register_style( 'maera_zf', MAERA_FOUNDATION_SHELL_URL . '/assets/css/foundation.css' );\n\t\twp_enqueue_style( 'maera_zf' );\n\n\t\t// Foundation icons\n\t\twp_register_style( 'maera_foundation_icons', MAERA_FOUNDATION_SHELL_URL . '/assets/foundation-icons/foundation-icons.css' );\n\t\twp_enqueue_style( 'maera_foundation_icons' );\n\n\t\t// Add Foundation required scripts\n\t\twp_enqueue_script( 'fastclick', MAERA_FOUNDATION_SHELL_URL . '/assets/vendor/fastclick.js', false );\n\t\twp_enqueue_script( 'foundation', MAERA_FOUNDATION_SHELL_URL . '/assets/foundation.min.js', 'jquery' );\n\n\t\t// Add our custom styles\n\t\twp_register_style( 'maera_foundation_custom', MAERA_FOUNDATION_SHELL_URL . '/assets/css/style.css' );\n\t\twp_enqueue_style( 'maera_foundation_custom' );\n\n\t}", "public function enqueue_scripts() {\n\t\twp_enqueue_style( 'pt-style', plugins_url( 'assets/css/style.css', __FILE__ ), array(), '1.0.0', false );\n\n\t\twp_enqueue_script( 'pt-script', plugins_url( 'assets/js/script.js', __FILE__ ), array(), '1.0.0', true );\n\t}", "function cosmetics_register_back_end_scripts(){\n wp_enqueue_style( 'cosmetics-admin-styles', get_theme_file_uri( '/extension/assets/css/admin-styles.css' ) );\n\n}", "function assets(){\n\t\t\twp_enqueue_style( 'sp-2020-styles', get_template_directory_uri() .'/assets/css/main.css', array(), SPUTZNIK_2020_THEME_VERSION );\n\t\t\twp_enqueue_script( 'sp-2020-js', get_template_directory_uri() . '/assets/js/main.js', array('jquery'), SPUTZNIK_2020_THEME_VERSION, true );\n\n\t\t}", "public function register_css () {\n wp_register_style(Plugin::PLUGIN_NAME, plugins_url('assets/css/styles.css', __FILE__), array(), filemtime(Plugin::getPluginPath() . '/assets/css/styles.css'));\n }", "function enqueue_styles_and_scripts( ) {\n\t\t$base_url = plugins_url( '', __FILE__ );\n\t\twp_enqueue_script(\n\t\t\t'pr_advance_ui_widget',\n\t\t\t $base_url . 'js/pr_advance_ui_widget.js',\n\t\t\tarray( 'jquery', 'jquery-ui-core', 'jquery-ui-widget', 'jquery-ui-mouse', 'jquery-ui-sortable', 'underscore', 'backbone' )\n\t\t);\n\n\t\twp_enqueue_style(\n\t\t\t'pr_advance_ui_widget',\n\t\t\t$base_url . 'css/pr_advance_ui.css'\n\t\t);\n\t}", "function front_scripts() {\n FWP()->display->assets['future-past-front.js'] = plugins_url( '', __FILE__ ) . '/assets/js/front.js';\n }", "public function enqueue_scripts () {\n\n\t\t$visibility = apply_filters( 'wp_simple_flexslider_insert_frontend_script', true );\n\n\t\tif( $visibility ) {\n\t\t\twp_enqueue_style( 'jquery-flexslider', WP_SIMPLE_FLEXSLIDER_URL . 'flexslider/flexslider.css', array(), '2.3.0', 'all' );\n\t\t\twp_register_script( 'jquery-flexslider', WP_SIMPLE_FLEXSLIDER_URL . 'flexslider/jquery.flexslider-min.js', array( 'jquery'), '2.3.0', 'all' );\n\t\t\twp_enqueue_script( 'wc-simple-flexslider-frontend', WP_SIMPLE_FLEXSLIDER_URL . 'js/wp-simple-flexslider-frontend.js', array( 'jquery', 'jquery-flexslider' ), '0.1', 'all' );\n\t\t}\n\t}", "public function registerStyles()\n {\n wp_register_style('swiper-css', THEME_DIR_URI .'/assets/css/swiper.min.css', [], false, 'all');\n wp_register_style('dist-css', THEME_DIR_URI .'/assets/css/dist.css', [], false, 'all');\n wp_register_style('regional-css', THEME_DIR_URI .'/regional.css', [], false, 'all');\n wp_register_style('regional-style', THEME_DIR_URI .'/style.css', [], false, 'all');\n\n // Default app style file\n //wp_enqueue_style('style-css');\n\n // App styles\n wp_enqueue_style('swiper-css');\n wp_enqueue_style('dist-css');\n wp_enqueue_style('regional-css');\n wp_enqueue_style('regional-style');\n }", "function wp_register_styles() {\n // Developer Tier Admin Stylesheet\n wp_register_style( \"{$this->namespace}-admin\", SLIDEDECK2_DEVELOPER_URLPATH . \"/css/admin.css\", array(), '2.1', 'screen' );\n // CodeMirror Library\n wp_register_style( \"codemirror\", SLIDEDECK2_DEVELOPER_URLPATH . \"/css/codemirror.css\", array(), '2.25', 'screen' );\n }", "public function enqueue() {\n $this->register();\n\n // If stylesheet is in browser cache, load it the traditional way\n if ( isset( $_COOKIE['fullCSS'] ) && false !== $_COOKIE['fullCSS'] )\n {\n // Load Typekit\n wp_enqueue_style( 'typekit' );\n // Default style.css.\n wp_enqueue_style( 'style' );\n }\n // Otherwise, inline critical CSS and load full stylesheet asynchronously\n else\n {\n add_filter( 'style_loader_tag', array( $this, 'custom_link_tag_attributes' ), 5, 4 );\n add_action( 'wp_head', array( __CLASS__, 'loadCSS' ), 10 );\n }\n\n // jQuery.\n wp_enqueue_script( 'jquery' );\n\n // Fullpage.js\n wp_enqueue_script( 'parallax' );\n wp_enqueue_script( 'fullpage' );\n\n // MmenuLight\n wp_enqueue_script( 'mmenu-light-polyfills' );\n wp_enqueue_script( 'mmenu-light' );\n\n // Frontend.\n wp_enqueue_script( 'app-js' );\n\n // Post comments.\n if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {\n wp_enqueue_script( 'comment-reply' );\n }\n }", "public function enqueue_scripts() {\n\n\t\twp_enqueue_style( 'kirki-field-dimensions', URL::get_from_path( dirname( __DIR__ ) . '/dist/control.css' ), array(), '1.0' );\n\n\t}", "function register_scripts() {\n\t\t\t$id = get_the_ID();\n\t\t\t// Only continue if current page is home\n\t\t\tif ( !is_home() ) return;\n\n\t\t\twp_enqueue_script( 'jquery' );\n\t\t\twp_enqueue_script( 'kevinw-sf-react', plugins_url( 'assets/react.min.js', KEVINW_SF_FILE ), array(), false, true );\n\t\t\twp_enqueue_script( 'kevinw-sf-react-app', plugins_url( 'assets/scripts.min.js', KEVINW_SF_FILE ), array(), false, true );\n\t\t\n\t\t\t$this->register_scripts_css();\n\t\t}", "function sss_kk_styles() {\n\twp_register_style('kk-social-share-starter-styles', plugins_url('kk-social-share-starter.css', __FILE__));\n\twp_enqueue_style('kk-social-share-starter-styles');\n}", "public function enqueue_assets() {\n\t\twp_enqueue_script( 'satispress-admin' );\n\t\twp_enqueue_style( 'satispress-admin' );\n\t}", "public function enqueue_scripts()\n {\n if (is_singular($this->token)) {\n wp_register_style($this->token, esc_url($this->assets_url . 'css/chiroquiz.css'), [], CHIRO_QUIZ_PLUGIN_VERSION);\n wp_register_style('animate', esc_url($this->assets_url . 'css/animate.css'), [], CHIRO_QUIZ_PLUGIN_VERSION);\n wp_register_style('roboto', 'https://fonts.googleapis.com/css?family=Roboto:400,400italic,500,500italic,700,700italic,900,900italic,300italic,300');\n wp_register_style('robo-slab', 'https://fonts.googleapis.com/css?family=Roboto+Slab:400,700,300,100');\n wp_enqueue_style($this->token);\n wp_enqueue_style('animate');\n wp_enqueue_style('roboto');\n wp_enqueue_style('roboto-slab');\n\n wp_register_script('icheck', esc_url($this->assets_url . 'js/icheck.js'), ['jquery']);\n wp_register_script($this->token . '-js', esc_url($this->assets_url . 'js/scripts.js'), [\n 'jquery',\n 'icheck'\n ]);\n wp_enqueue_script('icheck');\n wp_enqueue_script($this->token . '-js');\n wp_register_script('platform-email-validator', esc_url($this->assets_url . 'js/platform-email-validator.js'), [\n 'jquery'\n ], CHIRO_QUIZ_PLUGIN_VERSION);\n wp_enqueue_script('platform-email-validator');\n\n $localize = [\n 'ajaxurl' => admin_url('admin-ajax.php'),\n ];\n wp_localize_script($this->token . '-js', 'ChiroQuiz', $localize);\n }\n }", "public function enqueue() {\n\t\t\twp_enqueue_style( 'mtm-custom-controls-css', $this->get_mtm_resource_url() . 'css/customizer.css', array(), '1.0', 'all' );\n\t\t\twp_enqueue_script( 'wp-color-picker-alpha', $this->get_mtm_resource_url() . 'js/wp-color-picker-alpha.js', array( 'wp-color-picker' ), '1.0', true );\n\t\t\twp_enqueue_style( 'wp-color-picker' );\n\t\t}", "public function register() {\n $this->remove();\n\n global $is_dev, $current_url;\n\n $dev = $is_dev ? '' : '.min';\n $vendor = 'node_modules';\n\n // Adobe Typekit\n wp_register_style( 'typekit', 'https://use.typekit.net/dvm4pvz.css', false, null, 'all' );\n\n \t// Default `style.css`\n \twp_register_style( 'style', get_template_directory_uri() . '/dist/assets/css/app.css', false, get_file_version( 'dist/assets/css/app.css' ), 'all' );\n\n // Replace `underscore` with `lodash`\n wp_deregister_script( 'underscore' );\n wp_register_script( 'underscore', includes_url( \"js/dist/vendor/lodash$dev.js\" ), array(), LODASH, true );\n\n // Deregister jQuery and re-register jQuery core.\n wp_deregister_script( 'jquery' );\n wp_register_script( 'jquery', includes_url( 'js/jquery/jquery.js' ), array(), '1.12.14', true );\n\n // Fullpage.js\n wp_register_script( 'parallax', get_template_directory_uri() . '/dist/assets/libs/fullpage/fullpage.parallax.min.js', array( 'jquery' ), '0.1.1', true );\n //wp_register_script( 'parallax', get_template_directory_uri() . '/dist/assets/libs/parallax/parallax.min.js', array( 'jquery' ), '1.5.0', true );\n wp_register_script( 'fullpage', get_template_directory_uri() . '/dist/assets/libs/fullpage/fullpage.extensions.min.js', array( 'jquery', 'parallax' ), '3.0.8', true );\n\n // MmenuLight.js\n //wp_register_script( 'mmenu-light-polyfills', get_template_directory_uri() . '/dist/assets/libs/mmenuLight/mmenu-light.polyfills.js', array( 'jquery' ), '3.0.1', true );\n //wp_register_script( 'mmenu-light', get_template_directory_uri() . '/dist/assets/libs/mmenuLight/mmenu-light.js', array( 'mmenu-light-polyfills', 'jquery' ), '3.0.1', true );\n\n \t// Bundle JS\n \twp_register_script( 'app-js', get_template_directory_uri() . '/dist/assets/js/app.js', array( 'jquery', 'fullpage'/*, 'mmenu-light'*/ ), get_file_version( 'dist/assets/js/app.js' ), true );\n }", "function themesflat_shortcode_register_assets() {\t\t\n\t\twp_enqueue_style( 'vc_extend_shortcode', plugins_url('assets/css/shortcodes.css', __FILE__), array() );\t\n\t\twp_enqueue_style( 'vc_extend_style', plugins_url('assets/css/shortcodes-3rd.css', __FILE__),array() );\n\t\twp_register_script( 'themesflat-carousel', plugins_url('assets/3rd/owl.carousel.js', __FILE__), array(), '1.0', true );\n\t\twp_register_script( 'themesflat-flexslider', plugins_url('assets/3rd/jquery.flexslider-min.js', __FILE__), array(), '1.0', true );\t\t\n\t\twp_register_script( 'themesflat-manific-popup', plugins_url('assets/3rd/jquery.magnific-popup.min.js', __FILE__), array(), '1.0', true );\t\t\n\t\twp_register_script( 'themesflat-counter', plugins_url('assets/3rd/jquery-countTo.js', __FILE__), array(), '1.0', true );\n\t\twp_enqueue_script( 'flat-shortcode', plugins_url('assets/js/shortcodes.js', __FILE__), array(), '1.0', true );\n\t\twp_register_script( 'themesflat-google', 'https://maps.googleapis.com/maps/api/js?key=AIzaSyCIm1AxfRgiI_w36PonGqb_uNNMsVGndKo&v=3.7', array(), '1.0', true );\n\t\twp_register_script( 'themesflat-gmap3', plugins_url('assets/3rd/gmap3.min.js', __FILE__), array(), '1.0', true );\t\n\t}", "function fzproject_register_styles()\n{\n // register \n //wp_register_style('zoneslider_styles', plugins_url('zoneslider/style.css', __FILE__)); \n wp_register_style('fzproject_styles_theme', plugins_url('css/style.css', __FILE__));\n // enqueue \n //wp_enqueue_style('fzproject_styles'); \n wp_enqueue_style('fzproject_styles_theme');\n}", "public function register() {\n\t\tadd_filter( 'mce_external_plugins', array( $this, 'enqueue_plugin_scripts' ) );\n\t\tadd_filter( 'mce_buttons', array( $this, 'register_buttons_to_editor' ) );\n\t\tadd_action( 'admin_head', array( $this, 'my_add_styles_admin' ) );\n\t\tadd_action( 'add_meta_boxes', array( $this, 'create_meta_box' ) );\n\t\tadd_action( 'save_post', array( $this, 'slider_meta_save' ) );\n\n\t}", "function admin_init() {\r\n register_setting($this->optionsName, $this->optionsName);\r\n wp_register_style('custom-page-extensions-admin-css', $this->pluginURL . '/includes/custom-page-extensions-admin.css');\r\n wp_register_script('custom-page-extensions-js', $this->pluginURL . '/js/custom-page-extensions.js');\r\n }", "function enqueue(){\n wp_enqueue_style('login_css_bootstrap-grid', $this->plugin_url . 'assets/login-bootstrap-grid.css');\n wp_enqueue_style('login_css_bootstrap-reboot', $this->plugin_url . 'assets/login-bootstrap-reboot.css');\n wp_enqueue_style('login_css_style', $this->plugin_url . 'assets/login-style.css');\n wp_enqueue_style('register_css_style', $this->plugin_url . 'assets/register-style.css');\n\n //Enqueuing Scripts\n wp_enqueue_script('login-script', $this->plugin_url . 'assets/login-script.js');\n wp_localize_script( 'login-script', 'login_ajax',\n array( 'ajaxurl' => admin_url( 'admin-ajax.php' )));\n\n wp_enqueue_script('register_js_script', $this->plugin_url . 'assets/register-script.js');\n wp_localize_script('register_js_script', 'register_object',\n array('ajaxurl' => admin_url('admin-ajax.php')));\n\n }", "function ahla_register_assets()\n{\n\t$assets = AHLAURL . '/assets';\n\t$ver \t = AHLAVER;\n\n\t// theme style.css\n\twp_register_style( 'theme-style' , get_stylesheet_uri() );\n\n\t// others\n\t$file = $assets.'/js/skip-link-focus-fix.js';\n\twp_register_script( 'skip-link-focus-fix', $file, array(), $ver, true );\n\n\tdo_action('ahla_register_assets');\n}", "static function wp_enqueue_scripts() {\r\n\r\n\t\t// Enqueue CSS file\r\n wp_register_style('stackad', plugins_url('css/stackad.css', __FILE__));\r\n wp_enqueue_style('stackad');\r\n\r\n // Register JS file\r\n wp_register_script('stackad', plugins_url('js/stackad.js', __FILE__), array('jquery'), false, true);\r\n\t}", "function goodrds_scripts() {\n\t\twp_register_style( 'goodrds_css', plugins_url('goodrds.css', __FILE__), false, '0.1' );\n\t\twp_enqueue_style( 'goodrds_css' );\n\n\t\twp_register_script( 'goodrds_js', plugins_url('goodrds.js', __FILE__), array('jquery'), '0.1', true );\n\t\twp_enqueue_script( 'goodrds_js' );\n\t}", "function register_scripts_and_styles() {\n\t\t// Require jQuery to work\n\t\twp_enqueue_script( 'jquery' );\n\t}", "public function theme_assets_handler() {\n\t\t\n\t\t$version = wp_get_theme()->get('Version');\n\n\t\t//Enqueue stylesheets\n\t\tforeach ($this->styles as $style) {\n\t\t\twp_register_style($this->prefix . $style['slug'], get_template_directory_uri() . $style['path'], $style['deps'], $version);\n\t\t\twp_enqueue_style($this->prefix . $style['slug']);\n\n\n\n\t\t}\n\t\t\n\t\t//Enqueue Scripts\n\t\tforeach ($this->scripts as $script) {\n\t\t\twp_register_script($this->prefix . $script['slug'], get_template_directory_uri() . $script['path'], $script['deps'], $version);\n\t\t\twp_enqueue_script($this->prefix . $script['slug']);\n\t\t}\n\t\t\n\t\t//Enqueue WP Scripts\n\t\tif(is_array($this->wp_scripts)){\n\t\t\t\n\t\t\tforeach ($this->wp_scripts as $script) {\n\t\t\t\twp_enqueue_script($script);\n\t\t\t}\n\t\t}\n\t}", "public function register()\n {\n $this->register_scripts($this->get_scripts());\n $this->register_styles($this->get_styles());\n }", "function ts_register_admin_scripts(){\n\twp_enqueue_media();\n\t\n\twp_register_style( 'font-awesome', get_template_directory_uri() . '/css/font-awesome.css' );\n\twp_enqueue_style( 'font-awesome' );\n\t\n\twp_register_style( 'ts-admin-style', get_template_directory_uri() . '/css/admin_style.css' );\n\twp_enqueue_style( 'ts-admin-style' );\n\t\n\twp_register_script( 'ts-admin-script', get_template_directory_uri().'/js/admin_main.js', array('jquery'), null, true);\n\twp_enqueue_script( 'ts-admin-script' );\n}", "public function register_plugin_styles() {\n\t\twp_enqueue_style( 'teamManager', plugins_url( '/css/TeamManager.css' , __FILE__ ) ); \n\t}", "function hookRegisterStyles() {\n\t \tif (!is_admin() && get_option('fse_load_fc_libs') == true) {\n\t \t\t// Check if user has its own CSS file in the theme folder\n\t \t\t$custcss = get_template_directory().'/fullcalendar.css';\n\t \t\tif (file_exists($custcss))\n\t \t\t$css = get_bloginfo('template_url').'/fullcalendar.css';\n\t \t\telse\n\t \t\t$css = self::$plugin_css_url.'fullcalendar.css';\n\t \t\twp_enqueue_style('fullcalendar', $css);\n\t \t}\n\t }", "public function register() {\n\t\tadd_action( 'wp_enqueue_scripts', [ $this, 'enqueue_scripts' ] );\n\t\tadd_action( 'wp_enqueue_scripts', [ $this, 'enqueue_styles' ] );\n\n\t\tadd_action( 'init', [ $this, 'init' ] );\n\t\tadd_action( 'admin_init', [ $this, 'admin_init' ] );\n\t}", "public function form_css(){\n\t\twp_register_style( 'lead_gen_plugin', plugin_dir_url( __FILE__ ) . 'css/style.css', false );\n\t\twp_enqueue_style( 'lead_gen_plugin' );\n\t}", "public function enqueue_scripts() {\n\n /**\n * All styles goes here\n */\n wp_enqueue_style( 'wp-allmeta-styles', plugins_url( 'css/style.css', __FILE__ ), false, date( 'Ymd' ) );\n\n /**\n * All scripts goes here\n */\n wp_enqueue_script( 'wp-allmeta-scripts', plugins_url( 'js/script.js', __FILE__ ), array( 'jquery' ), false, true );\n\n\n /**\n * Example for setting up text strings from Javascript files for localization\n *\n * Uncomment line below and replace with proper localization variables.\n */\n // $translation_array = array( 'some_string' => __( 'Some string to translate', 'baseplugin' ), 'a_value' => '10' );\n // wp_localize_script( 'base-plugin-scripts', 'baseplugin', $translation_array ) );\n\n }" ]
[ "0.76529104", "0.7507543", "0.7303795", "0.73020124", "0.7301396", "0.723872", "0.723872", "0.7228146", "0.7197392", "0.71651626", "0.7153546", "0.7135695", "0.7113073", "0.7080133", "0.70775354", "0.70617723", "0.7036114", "0.7033758", "0.70239496", "0.7016807", "0.7013136", "0.7006872", "0.6999184", "0.6984897", "0.6974723", "0.69659954", "0.6965375", "0.69297373", "0.69239324", "0.6922627", "0.69184655", "0.68995774", "0.68992776", "0.6895911", "0.6890277", "0.6884148", "0.68810266", "0.6863921", "0.6858686", "0.6857193", "0.68533885", "0.68457985", "0.68367636", "0.68319964", "0.68303853", "0.68296176", "0.68271697", "0.68146", "0.68080217", "0.6797177", "0.6796012", "0.678861", "0.67842513", "0.6766519", "0.67586297", "0.67569363", "0.674777", "0.6739977", "0.6738151", "0.6737603", "0.67321324", "0.6731834", "0.6725169", "0.670479", "0.67025036", "0.6701401", "0.67004716", "0.6685994", "0.6685477", "0.66703814", "0.66659915", "0.6655116", "0.66547775", "0.66520274", "0.66481394", "0.6646067", "0.66408527", "0.66393197", "0.66383934", "0.6630353", "0.6628486", "0.6617656", "0.6613099", "0.6612191", "0.66044056", "0.6602112", "0.6600281", "0.6598525", "0.65969574", "0.65943164", "0.6590727", "0.65900314", "0.65893775", "0.65863615", "0.6581085", "0.6573696", "0.65726995", "0.6572254", "0.65719223", "0.65718216" ]
0.67970437
50
Filters the text of the users list page title.
public function modifyUserListPageTitle(string $title): string { global $wp; if ($wp->request === $this->customEndpoint()) { $title = 'Users List'; } return $title; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function FilterTitle($text) {\n\t\t\treturn ucfirst(trim($text));\n\t\t}", "public function filters_the_title($title){\n\t\n\t$title = $this->formatting->wptexturize($title);\n\t$title = $this->formatting->convert_chars($title);\n\t\n\treturn trim($title);\n }", "function pgm_register_custom_admin_titles() {\n add_filter('the_title','pgm_custom_admin_titles',99,2);\n}", "function get_title_list() {\n return get_string('list_pagetitle', 'block_php_report');\n }", "function cheffism_title_filter( $title, $sep ) {\n global $page, $paged;\n\n if ( is_feed() )\n return $title;\n\n // Add a page number if necessary:\n if ( $paged >= 2 || $page >= 2 )\n $title = $title . $sep . sprintf( __( 'Page %s', 'cheffism' ), max( $paged, $page ) );\n\n return $title;\n}", "function filter_login_title() { return get_option( 'blogname' ); }", "public function titleFilter($value)\n {\n return Strings::formatForTitle($value);\n }", "function conure_filter_wp_title( $title ){\n\treturn $title . esc_attr( get_bloginfo( 'name' ) );\n}", "function _wp_privacy_settings_filter_draft_page_titles($title, $page)\n {\n }", "function slb_register_custom_admin_titles() {\n\tadd_filter(\n\t\t'the_title',\n\t\t'slb_custom_admin_titles',\n\t\t99,\n\t\t2\n\t);\n}", "function filter_wp_title( $title ) {\n\tglobal $page, $paged;\n\n\tif ( is_feed() )\n\t\treturn $title;\n\n\t$site_description = get_bloginfo( 'description' );\n\n\t$filtered_title = $title . get_bloginfo( 'name' );\n\t$filtered_title .= ( ! empty( $site_description ) && ( is_front_page() ) ) ? ' | ' . $site_description: '';\n\t$filtered_title .= ( 2 <= $paged || 2 <= $page ) ? ' | ' . sprintf( __( 'Page %s' ), max( $paged, $page ) ) : '';\n\n\treturn $filtered_title;\n}", "function limitTitle($title)\n {\n // include the text limiter class and limit the title\n require_once(\"class_libraries/TextLimiter.php\");\n $textLimiter = new TextLimiter();\n \n // limit the text up to 5 words only\n $title = $textLimiter -> limitText($title, 5);\n \n return $title;\n }", "public function getTitle() {\n if($this->items!==false) {\n $item = @current($this->items);\n return $item->user->screen_name . \" (\" . $item->user->name . \"): \" . $item->text;\n }\n return false;\n }", "function wp_title_filter( $title, $sep ) {\n\tif ( is_feed() ) {\n\t\treturn $title;\n\t}\n\t\n\tglobal $page, $paged;\n\n\t// Add the blog name\n\t$title = get_bloginfo( 'name', 'display' ) . \" \" . $title;\n\n\t// Add the blog description for the home/front page.\n\t$site_description = get_bloginfo( 'description', 'display' );\n\tif ( $site_description && ( is_home() || is_front_page() ) ) {\n\t\t$title .= \" $sep $site_description\";\n\t}\n\n\t// Add a page number if necessary:\n\tif ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {\n\t\t$title .= \" $sep \" . sprintf( __( 'Pag. %s', '_s' ), max( $paged, $page ) );\n\t}\n\n\treturn $title;\n}", "public function filter_post_title_out( $title )\n\t{\n\t\treturn $this->filter( $title );\n\t}", "public function wp_title_filter( $title, $sep ) {\n global $paged, $page;\n\n if ( is_feed() )\n return $title;\n\n // Add the site name.\n $title .= ' ' . $sep . ' ' . get_bloginfo( 'name' );\n\n // Add the site description for the home/front page.\n $site_description = get_bloginfo( 'description', 'display' );\n if ( $site_description && ( is_home() || is_front_page() ) )\n $title = \"$title $sep $site_description\";\n\n // Add a page number if necessary.\n if ( $paged >= 2 || $page >= 2 )\n $title = \"$title $sep \" . sprintf( __( 'Page %s', 'paperplane' ), max( $paged, $page ) );\n\n return $title;\n }", "function welcome_user_msg_filter($text)\n {\n }", "function twentyten_filter_wp_title( $title, $separator ) {\n\n\tif ( is_feed() )\n\n\t\treturn $title;\n\n\n\n\t// The $paged global variable contains the page number of a listing of posts.\n\n\t// The $page global variable contains the page number of a single post that is paged.\n\n\t// We'll display whichever one applies, if we're not looking at the first page.\n\n\tglobal $paged, $page;\n\n\n\n\tif ( is_search() ) {\n\n\t\t// If we're a search, let's start over:\n\n\t\t$title = sprintf( __( 'Search results for %s', 'twentyten' ), '\"' . get_search_query() . '\"' );\n\n\t\t// Add a page number if we're on page 2 or more:\n\n\t\tif ( $paged >= 2 )\n\n\t\t\t$title .= \" $separator \" . sprintf( __( 'Page %s', 'twentyten' ), $paged );\n\n\t\t// Add the site name to the end:\n\n\t\t$title .= \" $separator \" . get_bloginfo( 'name', 'display' );\n\n\t\t// We're done. Let's send the new title back to wp_title():\n\n\t\treturn $title;\n\n\t}\n\n\n\n\t// Otherwise, let's start by adding the site name to the end:\n\n\t$title .= get_bloginfo( 'name', 'display' );\n\n\n\n\t// If we have a site description and we're on the home/front page, add the description:\n\n\t$site_description = get_bloginfo( 'description', 'display' );\n\n\tif ( $site_description && ( is_home() || is_front_page() ) )\n\n\t\t$title .= \" $separator \" . $site_description;\n\n\n\n\t// Add a page number if necessary:\n\n\tif ( $paged >= 2 || $page >= 2 )\n\n\t\t$title .= \" $separator \" . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) );\n\n\n\n\t// Return the new title to wp_title():\n\n\treturn $title;\n\n}", "function filterUsername($username) {\r\n \treturn $username;\r\n }", "function wt_html_sanitize_title( $title ) {\n\treturn wp_kses( $title, wt_html_allowed() );\n}", "function filter_posts( $posts ) {\n\t\tif ( isset( $_GET['title'] ) && '' != $_GET['title'] ) {\n\t\t\t$title = sanitize_text_field( wp_unslash( $_GET['title'] ) );\n\t\t\tforeach ( $posts as $post ) {\n\t\t\t\tif ( $post->post_title ) {\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $posts;\n\t}", "protected function renderPageTitle() {}", "function twig_title_string_filter(Twig_Environment $env, $string)\n {\n return ucwords(strtolower($string));\n }", "public function filter__the_title_parts( $title ) {\n\t\tglobal $posts;\n\n\t\tif ( ! is_single() && ! is_page() || ! $this->is_supported_post_type( $posts[0]->post_type ) ) {\n\t\t\treturn $title;\n\t\t}\n\n\t\t$cmpvalues = $this->get_enabled_singular_options( $posts[0]->post_type );\n\t\tif ( ! isset( $cmpvalues['mt_seo_title'] ) || ! $cmpvalues['mt_seo_title'] ) {\n\t\t\treturn $title;\n\t\t}\n\n\t\t$mt_seo_title = (string) get_post_meta( $posts[0]->ID, 'mt_seo_title', true );\n\t\tif ( empty( $mt_seo_title ) ) {\n\t\t\treturn $title;\n\t\t}\n\n\t\t$mt_seo_title = $this->do_title_placeholder_substitutions( $title['title'], $mt_seo_title );\n\t\t$mt_seo_title = wp_strip_all_tags( $mt_seo_title );\n\n\t\t$title['title'] = $mt_seo_title;\n\t\treturn $title;\n\t}", "public function getCurrentFilterTitle(): string\n {\n if ($this->hasFilter()) {\n return $this->getUserPreferencesClass()->getFilterTitle($this->getCurrentUserPreferencesKey('FILTER'));\n }\n\n return '';\n }", "function filterUsername($username)\r\n {\r\n return $username;\r\n }", "function show_untitled_items($title)\n{\n // is empty.\n $prepTitle = trim(strip_formatting($title));\n if (empty($prepTitle)) {\n return __('[Untitled]');\n }\n return $title;\n}", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "public function getTitle();", "function the_title_trim($title)\n{\n $pattern[0] = '/Protected: /';\n $pattern[1] = '/Private: /';\n $replacement[0] = ''; // Enter some text to put in place of Protected:\n $replacement[1] = ''; // Enter some text to put in place of Private:\n\n return preg_replace($pattern, $replacement, $title);\n}", "public function getPageTitle()\n {\n return \"UNL Auth\";\n }", "public function getTitleList()\n {\n return $this->getAllExternal('res.partner.title');\n }", "public function get_admin_page_title() : string {\n\t\t\t/** This filter is documented in includes/settings/class-ld-settings-pages.php */\n\t\t\treturn apply_filters( 'learndash_admin_page_title', '<h1>' . $this->settings_page_title . '</h1>' );\n\t\t}", "public function filterWholesalePriceTitleText ( $titleText ) {\n\n $settingTitleText = esc_attr( trim( get_option( 'wwpp_settings_wholesale_price_title_text' ) ) );\n return $settingTitleText;\n\n }", "public function get_admin_page_title() : string {\n\n\t\t\t/** This filter is documented in includes/settings/class-ld-settings-pages.php */\n\t\t\treturn apply_filters( 'learndash_admin_page_title', '<h1>' . $this->settings_page_title . '</h1>' );\n\t\t}", "function page_title()\n {\n $page = isset($_GET['page']) ? htmlspecialchars($_GET['page']) : 'Home';\n\n return ucwords(str_replace('-', ' ', $page));\n }", "function kpl_user_bio_visual_editor_unfiltered() {\r\n\tremove_all_filters('pre_user_description');\r\n}", "public function getUserTitle() {\n\t\tif ($this->userTitle) return StringUtil::encodeHTML($this->userTitle);\n\t\telse if ($this->rank) return WCF::getLanguage()->get(StringUtil::encodeHTML($this->rank->rankTitle));\n\t}", "public function getCurrentSearchFilterTitle(): string\n {\n if ($this->hasSearchFilter()) {\n return $this->getUserPreferencesClass()->getSearchFilterTitle($this->getCurrentUserPreferencesKey('SEARCHFILTER'));\n }\n\n return '';\n }", "function smarty_outputfilter_admintitle($source, $view)\n{\n // get all the matching H1 tags\n $regex = \"/<h1>[^<]*<\\/h1>/\";\n preg_match_all($regex, $source, $h1);\n $regex = \"/<h2>[^<]*<\\/h2>/\";\n preg_match_all($regex, $source, $h2);\n $regex = \"/<h3>[^<]*<\\/h3>/\";\n preg_match_all($regex, $source, $h3);\n\n // init vars\n $titleargs = array();\n $header1 = $header2 = $header3 = '';\n\n // set the title\n // header level 1\n if (isset($h1[0]) && isset($h1[0][1])) {\n $header1 = $h1[0][1];\n }\n if (isset($header1) && !empty($header1)) {\n $titleargs[] = $header1;\n }\n // header level 2\n if (isset($h2[0][0])) {\n $header2 = $h2[0][0];\n }\n if (isset($header2) && !empty($header2)) {\n $titleargs[] = $header2;\n }\n // header level 3\n if (isset($h3[0]) && isset($h3[0][1])) {\n $header3 = $h3[0][1];\n }\n if (isset($header3) && !empty($header3)) {\n $titleargs[] = $header3;\n }\n\n if (!empty($titleargs)) {\n PageUtil::setVar('title', System::getVar('sitename') . ' - ' . strip_tags(implode(' / ', $titleargs)));\n }\n\n // return the modified source\n return $source;\n}", "function nicholls_move_search_title() {\n\t// Website Title\n\tremove_action( 'fnbx_header', 'fnbx_default_title' );\n\t// Website Description\n\tremove_action( 'fnbx_header', 'fnbx_default_description' );\n\t// Entry title\n\tremove_action( 'fnbx_template_loop_entry_title', 'fnbx_entry_title' );\n\t// Move the entry-title\n\tadd_action( 'fnbx_header', 'fnbx_entry_title' );\n}", "function eb_convert_title_html_tags( $string ) {\r\n global $wp_current_filter;\r\n $filter = end($wp_current_filter);\r\n $search = array('#span#', '#/span#');\r\n $replace = ( in_array($filter, array('wp_title', 'the_title_rss')) || ($filter == 'the_title' && (is_admin() || in_array('wp_head', $wp_current_filter))) ) ? '' : array('<span>', '</span>');\r\n $string = str_replace( $search, $replace, $string );\r\n\r\n return $string;\r\n}", "function getTitle() ;", "function sanitize_title_for_query($title)\n {\n }", "public function title() { \n $title = $this->content()->get('title');\n if($title != '') {\n return $title;\n } else {\n $title->value = $this->uid();\n return $title;\n }\n }", "public function getMetaTitle() {\n\t\t$title = $this->data()->getTitle();\n\t\t$filter = $this->FilterDescription();\n\t\tif($filter) {\n\t\t\t$title = \"{$title} - {$filter}\";\n\t\t}\n\n\t\t$this->extend('updateMetaTitle', $title);\n\t\treturn $title;\n\t}", "function get_admin_page_title()\n {\n }", "function get_page_by_title_filtered( $title ){\n $page = get_page_by_title_safely($title);\n return do_shortcode($page->post_content);\n}", "public function Filter_title($title, $negate = false) {\r\n\t\t$title\t\t= trim($title);\r\n\t\t$queryParts\t= false;\r\n\r\n\t\tif( $title !== '' ) {\r\n\t\t\t$titleParts\t= explode(' ', $title);\r\n\r\n\t\t\t$where\t= TodoyuSql::buildLikeQueryPart($titleParts, array(self::TABLE . '.title'), $negate);\r\n\r\n\t\t\t$queryParts = array(\r\n\t\t\t\t'where'\t=> $where\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn $queryParts;\r\n\t}", "public function paml_filter_frontend_modal_link_label( $items ) {\n\t\tforeach ( $items as $i => $item ) {\n\t\t\tif( '#pa_modal_login' === $item->url ) {\n\t\t\t\t$item_parts = explode( ' // ', $item->title );\n\t\t\t\tif ( is_user_logged_in() ) {\n\t\t\t\t\t$items[ $i ]->title = array_pop( $item_parts );\n\t\t\t\t} else {\n\t\t\t\t\t$items[ $i ]->title = array_shift( $item_parts );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $items; \n\t}", "function filter_special_event_page_title( $title, $id = null ) {\n\tif ( is_post_type_archive( 'special_event' ) ) {\n\t\t$title = 'Special Events';\n\t}\n\n\treturn $title;\n}", "public function getTitle() {\n\t\treturn '';\n\t}", "public function get_title() {\n\n\t\t/**\n\t\t * Filters the screen title.\n\t\t *\n\t\t * @since 2.0.0\n\t\t *\n\t\t * @param string $title screen title, for display\n\t\t */\n\t\treturn (string) apply_filters( 'wc_facebook_admin_settings_' . $this->get_id() . '_screen_title', $this->title, $this );\n\t}", "public function getTitle() {}", "public function getTitle() {}", "public function getTitle() {}", "public function getTitle() {}", "public function getTitle() {}", "public function getTitle() {}", "public function getTitle() {}", "public function getTitle() {}", "public function getTitle() {}", "public function getTitle() {}", "public function getTitle() {}", "public function getTitle() {}", "public function getTitle() {}", "private static final function getPageTitle () {\r\n // Execute the <title tag> .tp file;\r\n $webHeaderString = new FileContent (FORM_TP_DIR . _S . 'frm_web_header_title.tp');\r\n return $webHeaderString->doToken ('[%TITLE_REPLACE_STRING%]',\r\n implode (_DCSP, ((self::$objPageTitleBackward->toInt () == 1) ? (self::$objPageTitle->arrayReverse ()->toArray ()) :\r\n self::$objPageTitle->toArray ())));\r\n }", "public function getTitle() {}", "public function getTitle() {}", "public function getCleanTitle()\n {\n return preg_replace('/\\s+/', ' ', $this->Title);\n }", "public static function usernames($text = '') {\n\t\t$matches = [];\n\t\t$regex = '/' . self::REGEX_MATCH_TAG . '|' . self::REGEX_CHAR_BACK . self::REGEX_USERNAME . '/i';\n\t\tpreg_match_all($regex, $text, $matches);\n\t\t$results = array_filter($matches[2]);\n\t\treturn array_unique($results);\n\t}", "function title_query() {\n $names = array();\n\n $result = db_select('fooaggregator_feed', 'f')\n ->fields('f', array('title'))\n ->condition('f.fid', $this->value, 'IN')\n ->execute();\n foreach ($result as $o) {\n $names[] = check_plain($o->title);\n }\n\n return $names;\n }", "public function filter_post_title_atom( $title )\n\t{\n\t\treturn $this->filter( $title );\n\t}", "function change_wp_login_title() { return 'bodyRock | Solid WP'; }", "function uvasomrfd_do_search_title() {\n\t$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );\n\tif(!is_page('27718')){\n\t//if (!strpos($_SERVER[\"REQUEST_URI\"], 'faculty-mentoring-undergraduates')) {\n\tif (is_tax( 'primary')||is_tax( 'training-grant')) {$preterm='Department of ';}\n\tif (is_tax( 'research-discipline')) {$preterm='Research Discipline: ';}\n\tif (is_tax( 'training-grant')) {$preterm='Training Program: ';}\n\t//if (strpos($_SERVER[\"REQUEST_URI\"], '?undergraduates')){$preterm='Faculty Accepting Undergraduates';$term->name='';}\n$title = sprintf( '<div class=\"clearfix\"></div><div id=\"uvasom_page_title\">'.genesis_do_breadcrumbs().'<h1 class=\"archive-title\">%s %s</h1>', apply_filters( 'genesis_search_title_text', __( $preterm, 'genesis' ) ), $term->name).'</div>';\n\techo apply_filters( 'genesis_search_title_output', $title ) . \"\\n\";\n\t}\n}", "function filter_chapel_hour_page_title( $title, $id = NULL ) {\n if ( is_post_type_archive( 'chapel_hour' ) ) {\n $title = 'Chapel Hour Episodes';\n }\n\n return $title;\n}", "function remove_private_prefix($title)\n{\n if (!is_admin()) {\n global $post;\n\n if ($post) {\n\n\n if ($post->post_name == \"404-page\") {\n $title = str_replace(\n 'Private:', '', $title);\n }\n }\n }\n return $title;\n}", "function twig_title_string_filter(Twig_Environment $env, $string)\n {\n if (null !== ($charset = $env->getCharset())) {\n return mb_convert_case($string, MB_CASE_TITLE, $charset);\n }\n return ucwords(strtolower($string));\n }", "public function get_title();", "function learn_press_get_students_list_filter() {\n\t$filter = array(\n\t\t'all' => esc_html__( 'All', 'learnpress' ),\n\t\t'in-progress' => esc_html__( 'In Progress', 'learnpress' ),\n\t\t'finished' => esc_html__( 'Finished', 'learnpress' )\n\t);\n\n\treturn apply_filters( 'learn_press_get_students_list_filter', $filter );\n}", "function getTitle();", "function getTitle();", "function sanitize_title_with_dashes($title, $raw_title = '', $context = 'display')\n {\n }", "public static function find_title()\n {\n $page = self::get_if_account_page_exists();\n\n return $page->Title;\n }", "function wp_store_get_title($title){\r\n\t$wp_title = '';\r\n\t$arr = explode(' ', $title);\r\n\t$count = count($arr);\r\n\tif( $count > 1 ){\r\n\t\t$i=0;\r\n\t\t$wp_title .= \"<p class='first-three'>\".$arr[$i++];\r\n\t\tif($count>=2){$wp_title .= \" \".$arr[$i++];}\r\n\t\tif($count>=3){$wp_title .= \" \".$arr[$i++];}\r\n\t\t$wp_title .= \"</p>\";\r\n\t\t$wp_title .= \"<p class='other-all'>\";\r\n\t\tfor ($j=$i; $j < $count; $j++) { \r\n\t\t\t$wp_title .= $arr[$j].\" \";\r\n\t\t}\r\n\t\t$wp_title .= \"</p>\";\r\n\t\techo apply_filters('the_title', $wp_title);\r\n\t}else{\r\n\t\techo apply_filters('the_title', $title);\r\n\t}\r\n}", "public function getPageTitles() {\n\n\t\t\t$sql = new DB_Sql();\n\t\t\t$sql->connect();\n\n\t\t\t$query = \"SELECT title FROM webmatrix_user_pages WHERE template = \".$this->subject_tpl_id.\"\";\n\t\t\t$sql->query($query, $this->debug);\n\t\t\t// build array from page titles\n\t\t\t$page_titles = array();\n\t\t\tif ($sql->num_rows() > 0) {\n\t\t\t\twhile($sql->next_record()) {\n\t\t\t\t\t$page_titles[] = $sql->Record['title'];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $page_titles;\n\n\t\t}", "function shoestrap_empty_page_title() {}" ]
[ "0.7359873", "0.6653538", "0.66199917", "0.6443852", "0.6441764", "0.6423484", "0.63696665", "0.6343584", "0.63391405", "0.63051724", "0.6261867", "0.61724764", "0.6143497", "0.61328757", "0.59660935", "0.59580994", "0.5928626", "0.59005463", "0.588775", "0.5864032", "0.5859278", "0.5858535", "0.5851984", "0.5851113", "0.5842816", "0.5808938", "0.5806659", "0.5792481", "0.5792481", "0.5792481", "0.5792481", "0.5792481", "0.5792481", "0.5792481", "0.5792481", "0.5792481", "0.5792481", "0.5792481", "0.5792481", "0.5792481", "0.5792481", "0.5792481", "0.5786145", "0.5776214", "0.57604915", "0.575694", "0.5692281", "0.56761265", "0.5655025", "0.56471115", "0.56466067", "0.5619195", "0.5618378", "0.56030357", "0.55881274", "0.55847365", "0.554518", "0.55358726", "0.5534444", "0.55193746", "0.551573", "0.5511251", "0.5498557", "0.5495794", "0.5482273", "0.54817915", "0.5478459", "0.5477708", "0.5477708", "0.5477708", "0.5477708", "0.5477708", "0.5477708", "0.5477708", "0.5477708", "0.5477708", "0.5477708", "0.5477708", "0.5477708", "0.5477452", "0.54750264", "0.54750264", "0.54738736", "0.54655594", "0.54468966", "0.5431946", "0.54294497", "0.5425016", "0.5418408", "0.5399204", "0.53936815", "0.539237", "0.5390675", "0.53827244", "0.53827244", "0.5378494", "0.53751075", "0.53740895", "0.53631246", "0.5359615" ]
0.7004298
1
set custom end point slug which also contains a filter to modify the slug.
public function customEndpoint(): string { $customEndpoint = 'user-data'; $customEndpoint = apply_filters('update_userlist_endpoint', $customEndpoint, 20); return $customEndpoint; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSlugAttribute()\n {\n $title = $this->attributes['title'];\n $this->attributes['slug'] = Str::slug($title, '-');\n }", "protected function addSlug()\n {\n $slugSource = $this->generateSlugFrom();\n\n $slug = $this->generateUniqueSlug($slugSource);\n\n $this->slug = $slug;\n }", "public function setSlug($slug);", "public function setSlug($slug);", "public function setSlug($slug);", "public function setSlugAttribute($value)\n {\n $this->attributes['slug'] = Str::slug($value); \n }", "public function setSlugAttribute($value)\n {\n $this->attributes['slug'] = Str::slug($value); \n }", "public function setSlugAttribute($value) {\n $this->attributes['slug'] = Str::slug($this->titre);\n }", "public function setSlugAttribute($value)\n {\n $this->attributes['slug'] = trim($value, '/');\n }", "public function setSlugAttribute($value)\n {\n $slug = Str::slug($value, '-', 'ar');\n \n $isSlugExists = static::where('slug', $slug)->exists();\n \n if ($isSlugExists) {\n $id = Arr::first(explode('-', $this->attributes['id']));\n $slug = \"$slug-{$id}\"; \n }\n\n $this->attributes['slug'] = $slug;\n }", "public function slug();", "public function slug();", "public function setSlugAttribute($value)\n {\n $this->attributes['slug'] = Str::slug($value, '-');\n }", "public function setSlugAttribute($value)\n {\n $this->attributes['slug'] = str_slug($value);\n }", "public function setSlugAttribute($value)\n {\n $slug = str_slug($value);\n //$original = $slug;\n\n if (static::whereSlug($slug)->exists()) {\n $slug = \"{$slug}-\".$this->id;\n }\n\n $this->attributes['slug'] = $slug;\n }", "public function setSlugAttribute($value)\n\t{\n\t\t$this->attributes['slug'] = str_slug($value);\n\t}", "function setSlugAttribute($slug)\n {\n $this->attributes['slug'] = $this->makeSlugUnique($slug);\n }", "public function setSlugAttribute($value)\n {\n if ($value) {\n $this->attributes['slug'] = str_slug($value);\n }\n else {\n $this->attributes['slug'] = str_slug(request('title'));\n }\n }", "public function setSlug(string $slug): void\n {\n $this->slug = $slug;\n }", "public function get_slug(){ return $this->slug; }", "public function initializeSlug()\n {\n if (empty($this->slug)) {\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->name);\n }\n }", "public function initializeSlug()\n {\n if (empty($this->slug)) {\n\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->firstName . ' ' . $this->lastName);\n }\n }", "public function setSlug($slug)\n {\n $this->slug = $slug;\n }", "protected function refreshSlug() {\n $slug = $this->slugify($this->getTitle());\n $this->setSlug($slug);\n }", "public function initializeSlug() {\n if(empty($this->slug)) {\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->nomhotel);\n }\n }", "public function initializeSlug(){\n if(empty($this->slug)){\n $slugify = Slugify::create();\n $this->slug = $slugify->slugify($this->title);\n }\n }", "protected function addSlug()\n {\n $this->add(array(\n 'name' => 'slug',\n 'required' => true,\n 'validators' => array(\n array(\n 'name' => 'Zend\\Validator\\StringLength',\n 'options' => array(\n 'min' => 4,\n 'max' => 32,\n ),\n ),\n ),\n 'filters' => array(\n array('name' => 'Zend\\Filter\\HtmlEntities'),\n array('name' => 'Zend\\Filter\\StringTrim'),\n array('name' => 'Zend\\Filter\\StripTags'),\n ),\n ));\n \n return $this;\n }", "protected function initSlug()\n {\n $this->di->setShared('slug', ['className' => Slug::class]);\n }", "public function set_slug( $slug ) {\n\t\t$this->slug = $slug;\n\t\treturn $this;\n\t}", "protected function filter_unique_slug( $context = null )\n\t{\n\t\tif ( ! in_array( $context, [ 'save', 'update' ] ) ) {\n\t\t\t$context = 'save';\n\t\t}\n\n\t\t// Since Charcoal doesn't provide a copy of the previous data,\n\t\t// import the existing data and do some comparisons.\n\t\tif ( 'update' === $context ) {\n\t\t\t$old = Charcoal::obj( get_class($this) )->load( $this->id() );\n\t\t}\n\t\telse {\n\t\t\t$old = false;\n\t\t}\n\n\t\tif ( ! $this->p('slug')->l10n() ) {\n\t\t\t$this->slug = [ $this->lang() => $this->slug ];\n\t\t}\n\n\t\tforeach ( $this->slug as $lang => &$slug ) {\n\t\t\tif (\n\t\t\t\t! $old ||\n\t\t\t\tempty( $slug ) ||\n\t\t\t\tpreg_match( '#[\\p{Z}\\p{Lu}\\p{M}]#u', $slug ) ||\n\t\t\t\tfalse !== strpos( $slug, ' ' ) ||\n\t\t\t\t(\n\t\t\t\t\t( $old instanceof Charcoal_Object ) &&\n\t\t\t\t\t( ( $old->p('slug')->text([ 'lang'=> $lang ]) ) !== $slug )\n\t\t\t\t)\n\t\t\t) {\n\t\t\t\t$slug = generate_unique_object_ident( $this->p('slug'), $slug, [ 'lang' => $lang ] );\n\t\t\t}\n\t\t}\n\n\t\tif ( ! $this->p('slug')->l10n() ) {\n\t\t\t$this->slug = reset($this->slug);\n\t\t}\n\t}", "public function set_slug( $slug ): self {\n\t\t$this->plugin_slug = $slug;\n\t\treturn $this;\n\t}", "public function initializeSlug()\n {\n if (empty($this->slug)) {\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->titre);\n }\n }", "public function slug(): string;", "public function setSlugPattern($pattern);", "public function slug($slug);", "abstract public static function slug(): string;", "function wp_filter_wp_template_unique_post_slug($override_slug, $slug, $post_id, $post_status, $post_type)\n {\n }", "private function updateSlug(object $entity, \\ReflectionProperty $slugProperty) : void\n {\n $slugAnnotation = $this->reader->getSlugData($slugProperty);\n $metadata = $this->entityManager->getClassMetadata(get_class($entity));\n $slugMapping = $metadata->getFieldMapping($slugProperty->getName());\n\n // retrieve the values of the properties entered in the slug annotation\n foreach($slugAnnotation->getValues() as $propertyName)\n {\n $text[] = $this->retrievePropertyValue($entity, $propertyName, $slugAnnotation->getFormat());\n }\n \n // Let's make a unique slug!\n $doctrineSlugifier = new DoctrineSlugifier(\n $this->slugifier, $metadata->getTableName(), \n $slugMapping['columnName'], \n $slugMapping['length'], \n $this->entityManager, \n $this->params->get('fbeen_unique_slug.maximum_digits'), \n $this->params->get('fbeen_unique_slug.minimum_slug_length'));\n \n $slugProperty->setAccessible(TRUE);\n $slugProperty->setValue($entity, $doctrineSlugifier->generateSlug(implode('-', $text), $slugProperty->getValue($entity)));\n }", "public function getSlug();", "public function getSlug();", "public function getSlug();", "public function getSlug();", "public function generateSlug();", "public function slugPattern();", "public function createSlug()\n {\n $slug = new Slugify();\n $this->slug = $slug->slugify($this->title);\n }", "public function setSlugAttribute(Slug $slug)\n {\n $this->attributes[$this->slugField()] = (string) $slug;\n }", "private function createSlug() {\r\n \r\n $proposal = !empty($this->subject) ? substr(create_slug($this->subject), 0, 60) : $this->id;\r\n \r\n $result = $this->db->fetchAll(\"SELECT post_id FROM nuke_bbposts_text WHERE url_slug = ?\", $proposal); \r\n \r\n if (count($result)) {\r\n $proposal .= count($result);\r\n }\r\n \r\n $this->url_slug = $proposal;\r\n \r\n }", "public function slug($string, $replacement = '_');", "public function setSlug(string $slug): self\n {\n $this->slug = $slug;\n\n return $this;\n }", "public function setSlug($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->slug !== $v) {\n\t\t\t$this->slug = $v;\n\t\t\t$this->modifiedColumns[] = CampaignPeer::SLUG;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function slug() {\n\t\treturn $this->createSlug($this->title);\n\t}", "public function calculateSlug() {\n $this->slug = strtolower(str_replace(array(\" \", \"_\"), array(\"-\", \"-\"), $this->nombre)).rand(1, 100);\n }", "function acf_slugify($str = '', $glue = '-')\n{\n}", "public function setSlug($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->slug !== $v) {\n\t\t\t$this->slug = $v;\n\t\t\t$this->modifiedColumns[] = CidadePeer::SLUG;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function getSlug()\n {\n return $this->provider .'-'. str_replace('_', '-', $this->postId);\n }", "public function generateSlug()\n {\n if ($this->slug != str_slug($this->title)) {\n $this->slug = str_slug($this->title);\n }\n\n while ($count = self::where(['slug' => $this->slug])->where('id', '!=', $this->id)->count()) {\n $this->slug .= '-' . $count;\n }\n }", "public function sanitize_slug($slug)\n {\n }", "public function setSlug($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->slug !== $v) {\n\t\t\t$this->slug = $v;\n\t\t\t$this->modifiedColumns[] = VenuePeer::SLUG;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function initializeSlug(){\n if (empty($this->Nom_vis)) {\n \n $slugify = new Slugify();\n $this->Nom_vis = $slugify->Slugify($this->Nom_vis);\n \n }\n }", "public function initializeSlug(){\n $faker = Factory::create('FR-fr');\n \n if(empty($this->slug)){\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($faker->md5());\n }\n\n }", "public function get_slug()\n {\n return $this->slug;\n }", "public function generateSlug()\n {\n $this->slug = str_slug($this->name) . '-' . $this->id;\n\n $this->save();\n }", "public static function slug($slug);", "protected function getSlug()\n {\n return trim(str_replace($this->website->domain, '', $this->getStrippedUrl()), '/') ?: '/';\n }", "public function getSlug(): string\n {\n return $this->slug;\n }", "function the_slug($echo=true){\n $slug = basename(get_permalink());\n do_action('before_slug', $slug);\n $slug = apply_filters('slug_filter', $slug);\n if( $echo ) echo $slug;\n do_action('after_slug', $slug);\n return $slug;\n}", "function prepare_episode_slug_for_url($slug)\n{\n $slug = trim($slug);\n $slug = rawurlencode($slug);\n\n // allow directories in slug\n return str_replace('%2F', '/', $slug);\n}", "public function sluggable()\n {\n $array = $this->attributes;\n\n $slugcolumn = $this->getProperty('sluggable');\n\n //Set slug\n if (array_key_exists($slugcolumn, $array))\n {\n //If dynamic slugs are turned off\n if ( $this->slug_dynamic === false && $this->slug ) {\n //If does exists row, and if has been changed\n if (\n $this->exists\n && $this->isAllowedHistorySlugs()\n && ($original = $this->getOriginal('slug'))\n && $this->slug !== $original ) {\n $this->slugSnapshot($original);\n }\n }\n\n //If is available slug column value\n else if ( mb_strlen($array[$slugcolumn], 'UTF-8') > 0 ) {\n $slug = $this->makeSlug($array[$slugcolumn]);\n\n //If slug has been changed, then save previous slug state\n if (\n $this->exists\n && $this->isAllowedHistorySlugs()\n && str_replace('\": \"', '\":\"', $attributes['slug'] ?? '') != $slug\n ) {\n $this->slugSnapshot();\n }\n\n $this->attributes['slug'] = $slug;\n }\n }\n }", "public function setSlug($slug)\n {\n $this->slug = $slug;\n return $this;\n }", "public function getSlug()\n {\n $slug = $this->cekUrl(str_slug($this->param));\n return $slug;\n }", "public function slug($string, $separator = '-');", "function the_slug($echo=false){\n\t$slug = basename(get_permalink());\n\tdo_action('before_slug', $slug);\n\t$slug = apply_filters('slug_filter', $slug);\n\tif( $echo ) echo $slug;\n\tdo_action('after_slug', $slug);\n\treturn $slug;\n}", "public function setSlugValue(Slug $value)\n {\n $this->{$this->slugField()} = $value;\n }", "public function get_slug() {\n\t\treturn $this->slug;\n\t}", "public function putSlugName(?string $string, string $extension = '.html'): string;", "public function sluggable()\n {\n return 'title';\n }", "public function slugTarget(){\n\t\treturn 'title';\n\t}", "public function setSlug($v)\n { $this->getCurrentTranslation()->setSlug($v);\n\n return $this;\n }", "public function get_slug() {\n\t\treturn self::SLUG;\n\t}", "function _acf_apply_unique_field_slug($slug, $post_ID, $post_status, $post_type, $post_parent, $original_slug)\n{\n}", "public function setLocalizedPageSlug($uuid, $slug);", "public function getSlug() : string\n {\n return 'support';\n }", "function slug($string = null) {\n\t\t// init\n\t\t$map = array('/!/'=>'','/£/'=>'','/$/'=>'','/%/'=>'','/\\(/'=>'','/\\)/'=>'','/\\'/'=>'');\n\t\t// replace unwanted characters\n\t\t$string = strtolower(preg_replace(array_keys($map), array_values($map), $string));\n\t\t// run through inflector slug\n\t\t$slug = Inflector::slug($string);\n\t// return\n\treturn $slug;\n\t}", "public function get_source_slug();", "public function slug()\n\t{\n\t\treturn $this->slug;\n\t}", "public function getSlugAttribute ($value){\n $value = strtolower(preg_replace(\"/[^a-zA-Z0-9]+/\",'-',$value));\n return $value;\n\n }", "public function sluggable()\n {\n return [\n 'slug' => [\n 'source' => ['seo_url', 'seo_url1']\n ]\n ];\n }", "public function getSlug()\n\t{\n\t\treturn self::buildSlug();\n\t}", "public function getSlug()\n {\n return $this->slug;\n }", "public function getSlug()\n {\n return $this->slug;\n }", "public function getSlug()\n {\n return $this->slug;\n }", "public function getSlug()\n {\n return $this->slug;\n }", "public function getSlug()\n {\n return $this->slug;\n }", "public function getSlug()\n {\n return $this->slug;\n }", "public function setSlug ($value) {\n\t\n\t\t// check for a value\n\t\tif ($value == \"\") {\n\t\t\t$this->setMessage(LANG_INVALID.\" \".LANG_URL);\n\t\t\treturn false;\n\t\t} else {\n\t\t\t$id = ($this->pageID) ? $this->pageID : 0;\n\t\t\t$parent = ($this->pageParent) ? $this->pageParent : 0;\n\t\t\t$pageModel = new PagesModel();\n\t\t\t$this->setData(\"pageSlug\", $pageModel->validateSlug($value, $id, $parent));\n\t\t\treturn true;\n\t\t}\n\t}", "public function setSlug($slug)\n {\n $this->slug = $slug;\n\n return $this;\n }", "public function setSlug($slug)\n {\n $this->slug = $slug;\n\n return $this;\n }", "public function getSlugKey()\n {\n return 'slug';\n }", "function mini_rest_prefix( $slug )\n{ \n return \"mini\";\n}", "function get_sanitize_callback($slug = '')\n {\n }", "public function setLocalizedEntrySlug($uuid, $slug);" ]
[ "0.6752639", "0.66330767", "0.6594126", "0.6594126", "0.6594126", "0.6471226", "0.6471226", "0.6453919", "0.6402672", "0.6386619", "0.637905", "0.637905", "0.63519865", "0.63477623", "0.63434124", "0.6278631", "0.6261684", "0.6185905", "0.60878783", "0.607594", "0.6062108", "0.60605735", "0.6059025", "0.6051203", "0.60506654", "0.603619", "0.5934117", "0.5890465", "0.5878248", "0.5867832", "0.5863439", "0.58455104", "0.58447415", "0.58367854", "0.5835859", "0.5833454", "0.58256435", "0.5819378", "0.58096534", "0.58096534", "0.58096534", "0.58096534", "0.5776181", "0.575411", "0.57479876", "0.57442236", "0.57281125", "0.57090336", "0.5704857", "0.5701492", "0.56842154", "0.5676274", "0.56740874", "0.5673635", "0.5642881", "0.5640569", "0.5633995", "0.56269276", "0.5622766", "0.5596825", "0.55890554", "0.5567194", "0.55658805", "0.55640835", "0.55631363", "0.5527265", "0.55166894", "0.5505575", "0.55009353", "0.5499977", "0.5489025", "0.5478218", "0.5469744", "0.5449684", "0.5441822", "0.54186726", "0.54137105", "0.5405885", "0.54058725", "0.5399725", "0.53995466", "0.53949517", "0.53909945", "0.5384217", "0.5379045", "0.5376541", "0.53765225", "0.53737724", "0.53692704", "0.53692704", "0.53692704", "0.53692704", "0.53692704", "0.53692704", "0.535658", "0.53496206", "0.53496206", "0.5345524", "0.53442085", "0.5337763", "0.532915" ]
0.0
-1
Create rewrite rule for arbitrary url.
public function rewriteURL(): void { global $wp_rewrite; $customEndpoint = $this->customEndpoint(); $newRules = [ $customEndpoint . '/?$' => 'index.php?' . self::CUSTOMPAGEVAR . '=' . $customEndpoint, ]; $wp_rewrite->rules = $newRules + (array) $wp_rewrite->rules; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function add_rewrite_rule()\n {\n }", "function custom_rewrite_rule() {\n\n}", "function iis7_add_rewrite_rule($filename, $rewrite_rule)\n {\n }", "function add_rewrite_rule($regex, $query, $after = 'bottom')\n {\n }", "function rewrite_rules($wp_rewrite) {\n $new_rules = array(\n 'hcard_url/(.+)' => 'index.php?hcard_url=' . $wp_rewrite->preg_index(1)\n );\n $wp_rewrite->rules = $new_rules + $wp_rewrite->rules;\n }", "function hm_add_rewrite_rule( $rule, $query, $template = null, $args = array() ) {\n\n\tglobal $hm_rewrite_rules;\n\n\t$hm_rewrite_rules[ $rule ] = array( $rule, $query, $template, wp_parse_args( $args ) );\n\n}", "function humcore_add_rewrite_rule() {\n\n\tadd_rewrite_rule(\n\t\t'(deposits/item)/([^/]+)(/(review))?/?$',\n\t\t'index.php?pagename=$matches[1]&deposits_item=$matches[2]&deposits_command=$matches[4]',\n\t\t'top'\n\t);\n\n\tadd_rewrite_rule(\n\t\t'(deposits/download)/([^/]+)/([^/]+)/([^/]+)/?$',\n\t\t'index.php?pagename=$matches[1]&deposits_item=$matches[2]&deposits_datastream=$matches[3]&deposits_filename=$matches[4]',\n\t\t'top'\n\t);\n\n\t// Rewrite for deposits/objects handled as ngix proxy pass.\n\n\tadd_rewrite_rule(\n\t\t'(deposits/view)/([^/]+)/([^/]+)/([^/]+)/?$',\n\t\t'index.php?pagename=$matches[1]&deposits_item=$matches[2]&deposits_datastream=$matches[3]&deposits_filename=$matches[4]',\n\t\t'top'\n\t);\n\n add_rewrite_rule(\n '(deposits/list)/?$',\n 'index.php?pagename=$matches[1]',\n 'top'\n );\n\n}", "function got_url_rewrite()\n {\n }", "function custom_rewrite_rule() {\n add_rewrite_rule('^nutrition/([^/]*)/([^/]*)/?','index.php?page_id=12&food=$matches[1]&variety=$matches[2]','top');\n}", "public function add_rewrite_rules()\n {\n }", "public function add_rewrite_rules()\n {\n }", "function iis7_save_url_rewrite_rules()\n {\n }", "public function add_rewrite_rule() {\n\t\t\tadd_rewrite_rule(\n\t\t\t\t'photo/([a-z0-9-_]+)/?', // ([^/]+)\n\t\t\t\t'index.php?attachment=$matches[1]',\n\t\t\t\t'top'\n\t\t\t);\n\t\t}", "function custom_rewrite_rule(){\n $page_id = $this->page_id;\n $slugs = $this->slugs;\n foreach ($slugs as $key => $value){\n if($value['slug']){\n add_rewrite_rule($key.'/([a-z0-9-]+)[/]?$','index.php?page_id='.$page_id.'&'.$key.'=$matches[1]','top');\n }else{\n add_rewrite_rule($key.'[/]?$','index.php?page_id='.$page_id.'&'.$key.'=$matches[1]','top');\n }\n }\n /// end rewrite\n flush_rewrite_rules();\n }", "public function rewrite();", "function rewrite( $url ) {\n\treturn str_replace( '/?s=', '/search/', $url );\n}", "function my_insert_rewrite_rules( $rules ) {\n\t$newrules = array();\n\t$newrules['events/(viewevent)/(\\d*)$'] = 'index.php?pagename=$matches[1]&rid=$matches[2]';\n\treturn $newrules + $rules;\n}", "function mrl_mod_rewrite( $rules ) {\r\n $options = get_option('MyReadingLibraryOptions');\r\n add_rewrite_rule(preg_quote($options['permalinkBase']) . '([0-9]+)/?$', 'index.php?my_reading_library_id=$matches[1]', 'top');\r\n add_rewrite_rule(preg_quote($options['permalinkBase']) . 'page/([^/]+)/?$', 'index.php?my_reading_library_page=$matches[1]', 'top'); \r\n add_rewrite_rule(preg_quote($options['permalinkBase']) . 'reader/([^/]+)/?$', 'index.php?my_reading_library_reader=$matches[1]', 'top');\r\n add_rewrite_rule(preg_quote($options['permalinkBase']) . '([^/]+)/([^/]+)/?$', 'index.php?my_reading_library_author=$matches[1]&my_reading_library_title=$matches[2]', 'top');\r\n add_rewrite_rule(preg_quote($options['permalinkBase']) . '([^/]+)/?$', 'index.php?my_reading_library_author=$matches[1]', 'top');\r\n add_rewrite_rule(preg_quote($options['permalinkBase']) . '?$', 'index.php?my_reading_library_library=1', 'top');\r\n}", "function rest_api_register_rewrites() {\n\tadd_rewrite_rule( '^' . rest_get_url_prefix() . '/?$','index.php?rest_route=/','top' );\n\tadd_rewrite_rule( '^' . rest_get_url_prefix() . '/(.*)?','index.php?rest_route=/$matches[1]','top' );\n}", "private function buildRewriteRule($source, $destination){\n\t\t// Append ? to the destination to prevent the query string being passed through.\n\t\t$string = 'RewriteRule ' . $this->wrapRegex(preg_quote($source)) . ' ' . $destination . '? ' . $this->buildRewriteFlags();\n\t\t$this->appendLineToRewrites($string);\n\t}", "function dvs_add_rewrite_rules( $wp_rewrite )\n{\n $new_rules = array(\n 'my-prefix/(.+?)/?$' => 'index.php?post_type=post&name='. $wp_rewrite->preg_index(1),\n );\n\n $wp_rewrite->rules = $new_rules + $wp_rewrite->rules;\n}", "public function add_rewrite_rule( $path = '', $rewrite_regex = array(), $tag_regex = array(), $after = 'top' ) {\n\t\t$url_matches = array();\n\t\t$uri = '^' . $path;\n\t\t$_url = array();\n\t\t$matches = [];\n\n\t\tpreg_match_all( '/{([\\w\\d]+)}/', $path, $url_matches );\n\n\t\tif ( ! empty( $url_matches ) && isset( $url_matches[1] ) ) {\n\t\t\tforeach ( $url_matches[1] as $data ) {\n\t\t\t\t$key = '{' . $data . '}';\n\t\t\t\t$regex = ( isset( $rewrite_regex[ $data ] ) && ! empty( $rewrite_regex[ $data ] ) ) ? $rewrite_regex[ $data ] : $this->value_pattern_replace;\n\t\t\t\t$uri = str_replace( $key, $regex, $uri );\n\t\t\t}\n\n\t\t\tif ( preg_match_all( $this->parameter_pattern, $path, $matches ) ) {\n\t\t\t\tforeach ( $matches[1] as $id => $param ) {\n\t\t\t\t\t$key = ( empty( $this->prefix ) ) ? $param : $this->prefix . '_' . $param;\n\t\t\t\t\t$this->rules_queryvars[] = $key;\n\t\t\t\t\t$_url[] = \"{$key}=\\$matches[\" . ( $id + 1 ) . ']';\n\t\t\t\t\t$_regex = ( isset( $tag_regex[ $param ] ) && ! empty( $tag_regex[ $param ] ) ) ? $tag_regex[ $param ] : '(.+)';\n\t\t\t\t\t$this->add_tag( '%' . $key . '%', $_regex );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->rules[] = array(\n\t\t\t\t'regex' => $uri . '/?',\n\t\t\t\t'replace' => 'index.php?' . implode( '&', $_url ),\n\t\t\t\t'type' => $after,\n\t\t\t);\n\t\t}\n\t\treturn $this;\n\t}", "public static function addCustomRewriteRule() {\n add_rewrite_rule(\n '^travelcard_redirect',\n 'wp-content/plugins/ege-cards-plugin/redirect.php',\n 'top'\n );\n }", "protected function register_rewrite_rules() {\n\t\tif ( ! empty( $this->rules ) ) {\n\t\t\tforeach ( $this->rules as $value ) {\n\t\t\t\tadd_rewrite_rule( $value['regex'], $value['replace'], $value['type'] );\n\t\t\t}\n\t\t}\n\t}", "function add_rewrite_rules() {\n\n\tadd_rewrite_tag( '%image%', '([^/]*)');\n\n\tadd_rewrite_rule('^gallery/([^/]*)/([^/]*)/?$', 'index.php?gallery=$matches[1]&image=$matches[2]', 'top');\n}", "public function rewriteRules()\n {\n add_rewrite_rule('janrain/(.*?)/?$', 'index.php?janrain=$matches[1]', 'top');\n add_rewrite_tag('%janrain%', '([^&]+)');\n }", "protected function createUrl($url)\n {\n return new Url($url);\n }", "public function mod_rewrite_rules()\n {\n }", "static public function add_rewrite_rules(){\n\t global $wp,$wp_rewrite; \n\t $wp->add_query_var( 'profile' );\n\n\t foreach( AT_Route::fronted() as $key=>$params ){\n\t\t\t$wp_rewrite->add_rule('^' .$key, 'index.php?profile=true', 'top');\n\t\t\tforeach ( $params['regular_expressions'] as $key => $expression ) {\n\t\t\t\t$wp_rewrite->add_rule('^' .$key . $expression, 'index.php?profile=true', 'top');\n\t\t\t}\n\n\t }\n\n\t $wp_rewrite->flush_rules();\n\t}", "function rewrite_thumbnail_url( $rewrite ) {\n\n // Step 1\n $new_rules = \"\\n# WP Extend ThumbnailApi support step 1\\n\";\n $new_rules .= \"<IfModule mod_rewrite.c>\\n\";\n\n $new_rules .= \"RewriteEngine On\\n\";\n $new_rules .= \"RewriteBase /\\n\";\n\n $new_rules .= \"# URL contains width and height query string\\n\";\n $new_rules .= \"RewriteCond %{REQUEST_URI} ^/\" . $this->path_base_thumbnail_api . \"/\\n\";\n $new_rules .= \"RewriteCond %{QUERY_STRING} ^w=([0-9]*)&h=([0-9]*)$\\n\";\n $new_rules .= \"RewriteRule ^\" . $this->path_base_thumbnail_api . \"/(.*)$ /\" . $this->path_generated_images . \"/w%1-h%2-$1? [QSA,L]\\n\";\n\n $new_rules .= \"# URL contains width only query string\\n\";\n $new_rules .= \"RewriteCond %{REQUEST_URI} ^/\" . $this->path_base_thumbnail_api . \"/\\n\";\n $new_rules .= \"RewriteCond %{QUERY_STRING} ^w=([0-9]*)$\\n\";\n $new_rules .= \"RewriteRule ^\" . $this->path_base_thumbnail_api . \"/(.*)$ /\" . $this->path_generated_images . \"/w%1-h0-$1? [QSA,L]\\n\";\n\n $new_rules .= \"# URL contains height only query string\\n\";\n $new_rules .= \"RewriteCond %{REQUEST_URI} ^/\" . $this->path_base_thumbnail_api . \"/\\n\";\n $new_rules .= \"RewriteCond %{QUERY_STRING} ^h=([0-9]*)$\\n\";\n $new_rules .= \"RewriteRule ^\" . $this->path_base_thumbnail_api . \"/(.*)$ /\" . $this->path_generated_images . \"/w0-h%1-$1? [QSA,L]\\n\";\n\n $new_rules .= \"# URL does not contains any query string\\n\";\n $new_rules .= \"RewriteCond %{REQUEST_URI} ^/\" . $this->path_base_thumbnail_api . \"/\\n\";\n $new_rules .= \"RewriteRule ^\" . $this->path_base_thumbnail_api . \"/(.*)$ /\" . $this->path_generated_images . \"/w0-h0-$1? [QSA,L]\\n\";\n\n $new_rules .= \"</IfModule>\\n\\n\";\n\n // Step 2\n $new_rules .= \"# WP Extend ThumbnailApi support step 2\\n\";\n $new_rules .= \"<IfModule mod_rewrite.c>\\n\";\n\n $new_rules .= \"RewriteEngine On\\n\";\n $new_rules .= \"RewriteBase /\" . $this->path_generated_images . \"/\\n\";\n \n $new_rules .= \"# redirect all requests to non-existing resources to special handler\\n\";\n $new_rules .= \"RewriteCond %{REQUEST_FILENAME} !-f\\n\";\n $new_rules .= \"RewriteCond %{REQUEST_FILENAME} !-d\\n\";\n $new_rules .= \"RewriteRule ^\" . $this->path_generated_images . \"/(.+)$ /\" . str_replace(home_url() . '/', '', admin_url()) . \"admin-post.php?action=\" . WPEXTEND_MAIN_SLUG_ADMIN_PAGE . \"_thumbnail_api&name_image=$1 [QSA,L]\\n\";\n\n $new_rules .= \"</IfModule>\\n\\n\";\n\n return $new_rules . $rewrite;\n }", "public function make($url)\n {\n return new Url($url);\n }", "function rewrite_url($url) {\n $base = str_replace($_SERVER[\"DOCUMENT_ROOT\"], \"\", __DIR__);\n $base = str_replace(\"/resources\", \"\", $base);\n return $base.$url;\n}", "public function add_rewrite_rules() {\n\t\t$priority = 'top';\n\t\t$root_rule = '/([^/]+)/?$';\n\n\t\t$page_slug = wct_paged_slug();\n\t\t$paged_rule = '/([^/]+)/' . $page_slug . '/?([0-9]{1,})/?$';\n\t\t$embed_rule = '/([^/]+)/embed/?$';\n\n\t\t// User Comments\n\t\t$user_comments_rule = '/([^/]+)/' . $this->user_comments_slug . '/?$';\n\t\t$user_comments_paged_rule = '/([^/]+)/' . $this->user_comments_slug . '/' . $this->cpage_slug . '/?([0-9]{1,})/?$';\n\n\t\t// User Rates\n\t\t$user_rates_rule = '/([^/]+)/' . $this->user_rates_slug . '/?$';\n\t\t$user_rates_paged_rule = '/([^/]+)/' . $this->user_rates_slug . '/' . $page_slug . '/?([0-9]{1,})/?$';\n\n\t\t// User to rate\n\t\t$user_to_rate_rule = '/([^/]+)/' . $this->user_to_rate_slug . '/?$';\n\t\t$user_to_rate_paged_rule = '/([^/]+)/' . $this->user_to_rate_slug . '/' . $page_slug . '/?([0-9]{1,})/?$';\n\n\t\t// User talks\n\t\t$user_talks_rule = '/([^/]+)/' . $this->user_talks_slug . '/?$';\n\t\t$user_talks_paged_rule = '/([^/]+)/' . $this->user_talks_slug . '/' . $page_slug . '/?([0-9]{1,})/?$';\n\n\t\t// User rules\n\t\tadd_rewrite_rule( $this->user_slug . $user_comments_paged_rule, 'index.php?' . $this->user_rid . '=$matches[1]&' . $this->user_comments_rid . '=1&' . $this->cpage_rid . '=$matches[2]', $priority );\n\t\tadd_rewrite_rule( $this->user_slug . $user_comments_rule, 'index.php?' . $this->user_rid . '=$matches[1]&' . $this->user_comments_rid . '=1', $priority );\n\t\tadd_rewrite_rule( $this->user_slug . $user_rates_paged_rule, 'index.php?' . $this->user_rid . '=$matches[1]&' . $this->user_rates_rid . '=1&' . $this->page_rid . '=$matches[2]', $priority );\n\t\tadd_rewrite_rule( $this->user_slug . $user_rates_rule, 'index.php?' . $this->user_rid . '=$matches[1]&' . $this->user_rates_rid . '=1', $priority );\n\t\tadd_rewrite_rule( $this->user_slug . $user_to_rate_paged_rule, 'index.php?' . $this->user_rid . '=$matches[1]&' . $this->user_to_rate_rid . '=1&' . $this->page_rid . '=$matches[2]', $priority );\n\t\tadd_rewrite_rule( $this->user_slug . $user_to_rate_rule, 'index.php?' . $this->user_rid . '=$matches[1]&' . $this->user_to_rate_rid . '=1', $priority );\n\t\tadd_rewrite_rule( $this->user_slug . $user_talks_paged_rule, 'index.php?' . $this->user_rid . '=$matches[1]&' . $this->user_talks_rid . '=1&' . $this->page_rid . '=$matches[2]', $priority );\n\t\tadd_rewrite_rule( $this->user_slug . $user_talks_rule, 'index.php?' . $this->user_rid . '=$matches[1]&' . $this->user_talks_rid . '=1', $priority );\n\t\tadd_rewrite_rule( $this->user_slug . $embed_rule, 'index.php?' . $this->user_rid . '=$matches[1]&embed=true', $priority );\n\t\tadd_rewrite_rule( $this->user_slug . $root_rule, 'index.php?' . $this->user_rid . '=$matches[1]', $priority );\n\n\t\t// Action rules (only add a new talk right now)\n\t\tadd_rewrite_rule( $this->action_slug . $root_rule, 'index.php?' . $this->action_rid . '=$matches[1]', $priority );\n\t}", "private function _makeRule($name, array $options)\n {\n static $needed_keys = array('regex', 'target');\n \n // all the needed keys are here\n foreach($needed_keys as $key)\n if(!isset($options[$key]))\n throw new Error500('Missing « '.$key.' » option for the rule « '.$name.' »');\n \n // check the existence of a rule with the same name\n if(isset($this->rules[$name]))\n throw new Error500('A rule named « '.$name.' » already exists.');\n \n // define the rule's url\n $url = isset($options['url']) ? $options['url'] : $this->guessURL($options['regex']);\n \n // try to parse the parameters to add to the rule\n $params = array();\n if(isset($options['params']))\n {\n if(!is_array($options['params']))\n throw new Error500('Rule « '.$name.' » is malformed (« params » parameter must be an array).');\n \n $params = $options['params'];\n }\n \n if(isset($options['GET']))\n {\n if(!is_array($options['GET']))\n throw new Error500('Rule « '.$name.' » is malformed (« GET » parameter must be an array).');\n \n $params['GET'] = $options['GET'];\n }\n \n $rule = new Rule($name, $options['regex'], $url, $options['target'], $params);\n \n $this->rules[$name] = $rule;\n \n return $rule;\n }", "function rest_api_register_rewrites()\n {\n }", "function regexmakecanonical($urlstring, $rule=''){\n\t//do a switch here based on rule to create regex patterns\n\t//outside of switch to a match\n\t//if match return match[1]\n\t//if not match return string\n\t//get rid of unneeded spaces\n\t$urlstring=regexspacecleaner($urlstring);\n\treturn $urlstring;\n}", "function cu_rewrite_add_rewrites() {\n\tadd_rewrite_tag( '%cpage%', '[^/]' );\n\tadd_rewrite_rule(\n\t\t'^users/?$',\n\t\t'index.php?cpage=custom_page_url',\n\t\t'top'\n\t);\n}", "function hm_create_custom_rewrite_rules( $rules ) {\n\n \t// Define the custom permalink structure\n \tglobal $hm_rewrite_rules;\n\n \t$new_rules = array();\n\n \tforeach( (array) $hm_rewrite_rules as $rule )\n \t\t$new_rules[ $rule[0] ] = $rule[1];\n\n \t$rules = array_merge( (array) $new_rules, $rules );\n\n\treturn $rules;\n}", "function wpfc_sermon_podcast_feed_rewrite($wp_rewrite) {\n\t$feed_rules = array(\n\t\t'feed/(.+)' => 'index.php?feed=' . $wp_rewrite->preg_index(1),\n\t\t'(.+).xml' => 'index.php?feed='. $wp_rewrite->preg_index(1)\n\t);\n\t$wp_rewrite->rules = $feed_rules + $wp_rewrite->rules;\n}", "function rae_add_custom_rewrite_rules() {\n\tadd_rewrite_rule( '^event/[0-9]{4}/([^/]+)/?$', 'index.php?name=$matches[1]&post_type=event', 'top' );\n}", "function build_url($name, $array = array())\n {\n $i = 0;\n $i = $this->_search_by_key($this->routes, self::NAME, $name);\n \n if($i === FALSE)\n {\n log_message('ERROR', 'Try to create undefined url with name: '.$name);\n return $this->config->site_url();\n }\n\n $rule = $this->routes[$i];\n \n if(is_null($array)){\n return $rule[self::URL];\n }\n\n //v1.5 ������������ ��������\n if(preg_match_all(\"#\\[([\\w_]+)\\]#\", $rule[self::URL], $mas)){\n $l = count($mas[1]);\n \n for($i = 0; $i < $l; $i++){\n $j = $this->_search_by_key($this->routes, self::NAME, $mas[1][$i]);\n if($j !== FALSE){\n $parent_rule = $this->routes[$j];\n $rule[self::URL] = str_replace('[' . $mas[1][$i] . ']', $parent_rule[self::URL], $rule[self::URL]);\n }\n }\n }\n \n\t\t//AG EDIT\n\t\t$rule_array = explode('/', $rule[self::URL]);\n\t\tforeach($rule_array as $key => $ms)\n\t\t{\n\t\t\tif($ms == '') unset($rule_array[$key]);\n\t\t\tif(($pos = strpos($ms, ':')) !== FALSE)\n\t\t\t{\n\t\t\t\t$u_key = substr($ms, $pos+1);\n\t\t\t\tif(isset($array[$u_key]) && $array[$u_key] !== FALSE)\n\t\t\t\t{\n\t\t\t\t\t$rule_array[$key] = str_replace(':'.$u_key , $array[$u_key] , $ms);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tunset($rule_array[$key]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$rule[self::URL] = '';\n\t\tif(count($rule_array)>0)\n\t\t{\n\t\t\tforeach($rule_array as $ms)\n\t\t\t{\n\t\t\t\t$rule[self::URL] .= $ms.'/';\n\t\t\t}\n\t\t\t$rule[self::URL] = substr($rule[self::URL], 0, -1);\n\t\t}\n\t\t/*\n foreach($array as $k => $v)\n {\n $rule[self::URL] = str_replace(':'.$k . '/', $v . '/', $rule[self::URL]);\n }\n */\n //����������� ���������� �������, ����� �������� ���������� �� ������������� ������.\n /*if(preg_match(\"@:\\w+$@\", $rule[self::URL])){\n foreach($array as $k => $v){\n $rule[self::URL] = str_replace(':'.$k, $v, $rule[self::URL]);\n }\n }*/\n return $this->config->site_url($rule[self::URL]);\n }", "public function set($uri): UrlManipulatorInterface;", "protected function createUri($url)\n\t{\n\t\tif ($url instanceof Uri)\n\t\t{\n\t\t\treturn $url;\n\t\t}\n\n\t\t// Create full URL if we are only appending variables to it\n\t\tif (substr($url, 0, 1) == '&')\n\t\t{\n\t\t\t$vars = array();\n\n\t\t\tif (strpos($url, '&amp;') !== false)\n\t\t\t{\n\t\t\t\t$url = str_replace('&amp;', '&', $url);\n\t\t\t}\n\n\t\t\tparse_str($url, $vars);\n\n\t\t\t$vars = array_merge($this->vars(), $vars);\n\n\t\t\tforeach ($vars as $key => $var)\n\t\t\t{\n\t\t\t\tif ($var == '')\n\t\t\t\t{\n\t\t\t\t\tunset($vars[$key]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$url = 'index.php?' . urldecode(http_build_query($vars, '', '&'));\n\t\t}\n\n\t\treturn new Uri($url);\n\t}", "public function generate_rewrite_rules($permalink_structure, $ep_mask = \\EP_NONE, $paged = \\true, $feed = \\true, $forcomments = \\false, $walk_dirs = \\true, $endpoints = \\true)\n {\n }", "function insert_rewrite_rules( $rules ) {\r\n $newrules = array();\r\n\r\n //portal page\r\n $newrules[wpc_client_get_slug( 'portal_page_id', false, false ) . '/(.+?)/?$'] = 'index.php?wpc_page=portal_page&wpc_page_value=$matches[1]';\r\n\r\n //preview for HUB\r\n $newrules[wpc_client_get_slug( 'hub_page_id', false, false ) . '/(\\d*)/?$'] = 'index.php?wpc_page=hub_preview&wpc_page_value=$matches[1]';\r\n\r\n return $newrules + $rules;\r\n }", "private function buildRewrites(){\n\t\t\n\t\t// If we want to add IfModule checks, add the opening tag\n\t\tif($this->includeIfModuleCheck){\n\t\t\t$this->appendIfModuleCheckStart();\n\t\t}\n\t\t\t\n\t\t// If we want to turn the rewrite engine on, add the statement\n\t\tif($this->includeTurnOnEngine){\n\t\t\t$this->appendTurnOnEngine();\n\t\t}\n\t\t\n\t\t// Are there actually URLs to rewrite?\n\t\tif(!empty($this->urls)){\n\t\t\t\n\t\t\t// Loop through the URLs\n\t\t\tforeach($this->urls as $source => $destination){\n\t\t\t\t\n\t\t\t\t// Check for query strings, as RewriteRule will ignore them\n\t\t\t\t$queryStringPos = strpos($source, '?');\n\t\t\t\t\n\t\t\t\t// URL has a query string\n\t\t\t\tif($queryStringPos !== FALSE){\n\t\t\t\t\t\n\t\t\t\t\t// Grab the query string\n\t\t\t\t\t$queryString = substr($source, $queryStringPos + 1);\n\t\t\t\t\t\n\t\t\t\t\t// If there wasn't just a lone ? in the URL\n\t\t\t\t\tif($queryString != ''){\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Add a RewriteCond for this query string\n\t\t\t\t\t\t$this->buildRewriteCondition('QUERY_STRING', $queryString);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// RewriteRule matches on the request URI without query strings, so remove the query string\n\t\t\t\t\t$source = substr($source, 0, $queryStringPos);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Add a RewriteRule for this source / destination\n\t\t\t\t$this->buildRewriteRule($source, $destination);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// If we are adding the check for mod_rewrite.c add the closing tag\n\t\tif($this->includeIfModuleCheck){\n\t\t\t$this->appendIfModuleCheckEnd();\n\t\t}\n\t\t\n\t\t// Return our rewrites\n\t\treturn $this->rewrites;\n\t}", "public function addRewriteRules( $wp_rewrite ) {\r\n $new_rules = array( \r\n get_option('vh_custom_post_type_url_slug') . '/' . get_option('vh_game_provider_url_slug'). '/(.+)' => 'index.php?'.get_option('vh_custom_post_type_url_slug') . '-' . get_option('vh_game_provider_url_slug').'=' .\r\n $wp_rewrite->preg_index(1) );\r\n\r\n $wp_rewrite->rules = $new_rules + $wp_rewrite->rules;\r\n }", "public static function forUrl($url): self\n {\n $url = Url::fromValue((string) $url);\n\n $action = new self();\n $action->data['dynamicLinkInfo']['link'] = (string) $url;\n\n return $action;\n }", "public function add_rewrite_rules() {\n add_rewrite_tag('%salesforce-login%', '([^&]+)');\n add_rewrite_rule('salesforce-login/?$', 'index.php?salesforce-login=salesforce-login', 'top');\n\n add_rewrite_tag('%salesforce-callback%', '([^&]+)');\n add_rewrite_rule('salesforce-callback/?$', 'index.php?salesforce-callback=salesforce-callback', 'top');\n }", "public function generate_rewrite_rule($permalink_structure, $walk_dirs = \\false)\n {\n }", "function add_rewrite_endpoint($name, $places, $query_var = \\true)\n {\n }", "function save_mod_rewrite_rules()\n {\n }", "function generateRewriteRules($config)\n {\n // generate mod-rewrite htaccess rules\n $rewrite = array($this->beginMarker);\n if( $config->htaccess_no_indexes ) {\n $rewrite[] = \"\\n# Don't allow directory browsing (for images / thumbs / etc)\";\n $rewrite[] = \"Options -Indexes\\n\\n\";\n }\n if( !$config->hotlink_thumbnails || !$config->hotlink_images || $config->rewrite_old_urls \n \t\t|| $config->monitor_thumbnail_bandwidth || $config->monitor_image_bandwidth \n || $config->rewrite_urls) {\n $rewrite[] = \"<ifModule mod_rewrite.c>\";\n $rewrite[] = \"Options +FollowSymLinks\";\n \t$rewrite[] = \"RewriteEngine On\";\n if( $config->rewrite_old_urls ) {\n $rewrite[] = $this->rewriteOldURLs();\n }\n $rewrite[] = $this->getImageBandwidthRules($config);\n $rewrite[] = $this->getImageHotlinkRules($config);\n $rewrite[] = $this->getThumbnailHotlinkRules($config);\n $rewrite[] = $this->getThumbnailBandwidthRules($config);\n $rewrite[] = $this->getURLRewriteRules($config);\n $rewrite[] = \"</ifModule>\";\n }\n $rewrite[] = $this->endMarker.\"\\n\\n\";\n return join(\"\\n\", $rewrite);\n }", "static public function createurl($url='') {\n\t\treturn Application::$base_url.'/'.trim($url,'/');\n\t}", "function cc_rewrite_permalink($link) {\n\n\tglobal $cc_pl_rewrites;\n\n\tforeach ( $cc_pl_rewrites as $cc_pl_rewrite ) {\n\t\tif ( preg_match(\"/{$cc_pl_rewrite[0]}/\", $link) ) {\n\t\t\t$rewritten_link = preg_replace(\"/{$cc_pl_rewrite[0]}/\", $cc_pl_rewrite[1], $link);\n\t\t\treturn $rewritten_link;\n\t\t}\n\t}\n\n\t# If nothing was changed, then just return the original link\t\n\treturn $link;\n\n}", "function add_urls() {\n\tadd_rewrite_rule( '^sso-login/?', 'index.php?sso-login=sso-login', 'top' );\n add_rewrite_endpoint( 'sso-login', EP_PERMALINK);\n\n\t// URLs for step 2 of webserver oauth flow\n\tadd_rewrite_rule( '^sso-callback/?', 'index.php?sso-callback=sso-callback', 'top' );\n add_rewrite_endpoint( 'sso-callback', EP_PERMALINK);\n}", "function add_custom_rewrite_rule() {\n // the default permalink structure is being used.\n if( ($current_rules = get_option('rewrite_rules')) ) {\n\n // Next, iterate through each custom rule adding a new rule\n // that replaces 'movies' with 'films' and give it a higher\n // priority than the existing rule.\n foreach($current_rules as $key => $val) {\n if(strpos($key, 'archive') !== false) {\n add_rewrite_rule(str_ireplace('archive', 'projects', $key), $val, 'top'); \n } // end if\n } // end foreach\n\n } // end if/else\n\n // ...and we flush the rules\n flush_rewrite_rules();\n\n}", "function createLink($src, $url) {\n // parse_url is JS function\n $scheme = parse_url($url)[\"scheme\"]; // http\n $host = parse_url($url)[\"host\"]; // www...\n // if the links starts with // replace // with http or https (this is an url scheme)\n if(substr($src, 0, 2) == \"//\") {\n\t\t$src = $scheme . \":\" . $src;\n\t}\n\telse if(substr($src, 0, 1) == \"/\") {\n\t\t$src = $scheme . \"://\" . $host . $src;\n\t}\n else if(substr($src, 0, 2) == \"./\") {\n\t\t$src = $scheme . \"://\" . $host . $src . dirname(parse_url($url)[\"path\"]) . substr($src, 1); // the last part says that we want to ignore \".\"\n }\n else if(substr($src, 0, 3) == \"../\") {\n\t\t$src = $scheme . \"://\" . $host . \"/\" . $src;\n }\n else if(substr($src, 0, 5) != \"https\" && substr($src, 0, 4) != \"http\") {\n\t\t$src = $scheme . \"://\" . $host . \"/\" . $src;\n\t}\n return $src;\n}", "protected function _getUrlRewrite()\n {\n if (!$this->hasData('url_rewrite')) {\n $this->setUrlRewrite($this->_rewriteFactory->create());\n }\n return $this->getUrlRewrite();\n }", "function http_build_url($url = null, $parts = null, $flags = null, ?array &$new_url = null) {}", "public function setRegexurl($regex);", "public function rewrite($function)\n {\n $this->rewrite = $function;\n\n return $this;\n }", "public function createSiteUrlRule() {\n\t\t$siteRule = $this->createUrlRule('', $this->siteUrlPattern);\n\t\t$siteRule->urlSuffix = '';\n\t\t$siteRule->ignoreAdditional = true;\n\t\t\n\t\t/*if ( YII_DEBUG && !(isset($siteRule->params['site']) || isset($siteRule->optParams['site'])) ) {\n\t\t\tthrow new CException(Yii::t('aws', 'The site URL pattern \"{pattern}\" does not contain a \\'site\\' parameter.',\n\t\t\t\tarray('{pattern}'=>$this->siteUrlPattern)));\n\t\t}*/\n\t\t\n\t\t//override default value for the site parameter\n\t\tif ( isset($this->defaultSite) ) {\n\t\t\tif ( isset($siteRule->optParams) && isset($siteRule->optParams['site']) )\n\t\t\t\t$siteRule->optParams['site']['default'] = $this->defaultSite;\n\t\t}\n\t\t\n\t\treturn $siteRule;\n\t}", "function _add_rewrite_rules( $rules ) {\r\n\t\t\t$newrules = array();\r\n\r\n\t\t\t$newrules['um-api/([^/]+)/([^/]+)/([^/]+)/([^/]+)/?$'] = 'index.php?um_page=api&um_action=$matches[1]&um_resource=$matches[2]&um_method=$matches[3]&um_verify=$matches[4]';\r\n\r\n\t\t\tif ( isset( UM()->config()->permalinks['user'] ) ) {\r\n\r\n\t\t\t\t$user_page_id = UM()->config()->permalinks['user'];\r\n\t\t\t\t$user = get_post( $user_page_id );\r\n\r\n\t\t\t\tif ( isset( $user->post_name ) ) {\r\n\r\n\t\t\t\t\t$user_slug = $user->post_name;\r\n\r\n\t\t\t\t\t$add_lang_code = '';\r\n\t\t\t\t\t$language_code = '';\r\n\r\n\t\t\t\t\tif ( function_exists('icl_object_id') || function_exists('icl_get_current_language') ) {\r\n\r\n\t\t\t\t\t\tif ( function_exists('icl_get_current_language') ) {\r\n\t\t\t\t\t\t\t$language_code = icl_get_current_language();\r\n\t\t\t\t\t\t} elseif( function_exists('icl_object_id') && defined('ICL_LANGUAGE_CODE') ) {\r\n\t\t\t\t\t\t\t$language_code = ICL_LANGUAGE_CODE;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// User page translated slug\r\n\t\t\t\t\t\t$lang_post_id = icl_object_id( $user->ID, 'post', FALSE, $language_code );\r\n\t\t\t\t\t\t$lang_post_obj = get_post( $lang_post_id );\r\n\t\t\t\t\t\tif( isset( $lang_post_obj->post_name ) ){\r\n\t\t\t\t\t\t\t$user_slug = $lang_post_obj->post_name;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif( $language_code != icl_get_default_language() ){\r\n\t\t\t\t\t\t\t$add_lang_code = $language_code;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t$newrules[ $user_slug.'/([^/]+)/?$' ] = 'index.php?page_id='.$user_page_id.'&um_user=$matches[1]&lang='.$add_lang_code;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif ( isset( UM()->config()->permalinks['account'] ) ) {\r\n\r\n\t\t\t\t$account_page_id = UM()->config()->permalinks['account'];\r\n\t\t\t\t$account = get_post( $account_page_id );\r\n\r\n\t\t\t\tif ( isset( $account->post_name ) ) {\r\n\r\n\t\t\t\t\t$account_slug = $account->post_name;\r\n\r\n\t\t\t\t\t$add_lang_code = '';\r\n\t\t\t\t\t$language_code = '';\r\n\r\n\t\t\t\t\tif ( function_exists('icl_object_id') || function_exists('icl_get_current_language') ) {\r\n\r\n\t\t\t\t\t\tif ( function_exists('icl_get_current_language') ){\r\n\t\t\t\t\t\t\t$language_code = icl_get_current_language();\r\n\t\t\t\t\t\t} elseif( function_exists('icl_object_id') && defined('ICL_LANGUAGE_CODE') ) {\r\n\t\t\t\t\t\t\t$language_code = ICL_LANGUAGE_CODE;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// Account page translated slug\r\n\t\t\t\t\t\t$lang_post_id = icl_object_id( $account->ID, 'post', FALSE, $language_code );\r\n\t\t\t\t\t\t$lang_post_obj = get_post( $lang_post_id );\r\n\t\t\t\t\t\tif ( isset( $lang_post_obj->post_name ) ){\r\n\t\t\t\t\t\t\t$account_slug = $lang_post_obj->post_name;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif ( $language_code != icl_get_default_language() ) {\r\n\t\t\t\t\t\t\t$add_lang_code = $language_code;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t$newrules[ $account_slug.'/([^/]+)?$' ] = 'index.php?page_id='.$account_page_id.'&um_tab=$matches[1]&lang='.$add_lang_code;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\treturn $newrules + $rules;\r\n\t\t}", "public function addRewriteRule(string $reqUri, string $toUri, string $description = '', $statusCode = 302) {\n $md5 = md5(strtolower($reqUri));\n $flight = UrlRewriteRule::updateOrCreate(\n ['req_hash' => $md5],\n [\n 'req_hash' => $md5, \n 'req_uri' => $reqUri, \n 'to_uri' => $to_uri, \n 'status_code' => $statusCode,\n 'description' => $description\n ]\n );\n return $this;\n }", "public function action_init_register_rewrites() {\n add_rewrite_endpoint( 'ics', EP_PERMALINK );\n }", "public function createUri($uri = '');", "function om13_rewrite_siteurls($url) {\n\tif (!(WP_DEBUG && function_exists('http_build_url'))) {\n\t\treturn $url;\n\t}\n\treturn http_build_url($url, array(\n\t\t'host' => $_SERVER['HTTP_HOST']\n\t));\n}", "function add_minutes_url_rewrite_rules( $wp_rewrite ) {\n\t$wp_rewrite->rules = array(\n\n\t\t/**\n\t\t * Meeting minutes archive URL structure.\n\t\t * Shows minutes for the latest semester.\n\t\t */\n\t\t'minutes/?$' => $wp_rewrite->index . '?post_type=board_minutes',\n\n\t\t/**\n\t\t * Meeting minutes archive URL structure.\n\t\t * minutes/{string}/{year}/\n\t\t * Example: minutes/spring/2013/\n\t\t */\n\t\t'minutes/?([^/]*)/([0-9]{4})/?$' => $wp_rewrite->index . '?post_type=board_minutes&semester=' . $wp_rewrite->preg_index(1) . '&year=' . $wp_rewrite->preg_index(2),\n\n\t) + $wp_rewrite->rules;\n}", "public function wp_rewrite_rules()\n {\n }", "function got_mod_rewrite()\n {\n }", "function iis7_rewrite_rule_exists($filename)\n {\n }", "public function createOrUpdateRewriteRule(array $rewriteArray)\n {\n $rewrite = $this->urlRewriteFactory->create();\n $successMessage = 'URL Rewrite: \"%s\" created';\n $rewriteCount = $rewrite->getCollection()\n ->addFieldToFilter(self::REQUEST_PATH_KEY, $rewriteArray[self::REQUEST_PATH_CSV_KEY])\n ->getSize();\n\n if ($rewriteCount > 0) {\n $rewrite = $rewrite->getCollection()\n ->addFieldToFilter(self::REQUEST_PATH_KEY, $rewriteArray[self::REQUEST_PATH_CSV_KEY])\n ->getFirstItem();\n\n $successMessage = 'URL Rewrite: \"%s\" already exists, rewrite updated';\n }\n\n $rewrite->setIsAutogenerated(0)\n ->setStoreId($rewriteArray[self::STORE_ID_CSV_KEY])\n ->setRequestPath($rewriteArray[self::REQUEST_PATH_CSV_KEY])\n ->setTargetPath($rewriteArray[self::TARGET_PATH_CSV_KEY])\n ->setRedirectType($rewriteArray[self::REDIRECT_TYPE_CSV_KEY]) //301 or 302\n ->setDescription($rewriteArray[self::DESCRIPTION_CSV_KEY])\n ->save();\n\n $this->log->logInfo(\n sprintf($successMessage, $rewriteArray[self::DESCRIPTION_CSV_KEY])\n );\n }", "function eventlog_rewrite () {\n add_rewrite_rule('^event/([0-9]+)/?', 'index.php?page_id=$matches[1]', 'top');\n}", "public function add_external_rule($regex, $query)\n {\n }", "protected function getUniqueUriRule()\n {\n return Rule::unique($this->getTablePrefix().'footers', 'uri');\n }", "function wac_create_link($string) {\n\t$url = '@(http)?(s)?(://)?(([a-zA-Z])([-\\w]+\\.)+([^\\s\\.]+[^\\s]*)+[^,.\\s])@';\n\treturn preg_replace($url, 'http$2://$4', $string);\n}", "function modify_rewrites() {\n\tadd_rewrite_rule( '^search/?$', 'index.php?s=', 'top' );\n\tadd_rewrite_rule( '^search/page/?([0-9]{1,})/?$', 'index.php?s=&paged=$matches[1]', 'top' );\n}", "public function buildRule(&$jRouter, &$uri)\n\t{\n\t\t// if superadmin, display non-sef URL, for testing/setting up purposes\n\t\tif (sh404SEF_NON_SEF_IF_SUPERADMIN)\n\t\t{\n\t\t\t$user = JFactory::getUser();\n\t\t\tif ($user->usertype == 'Super Administrator')\n\t\t\t{\n\t\t\t\tShlSystem_Log::debug('sh404sef', 'Returning non-sef because superadmin said so.');\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t// keep a copy of Joomla original URI, which has article names in it (ie: 43:article-title)\n\t\t$this->_originalBuildUri = clone ($uri);\n\n\t\t// build the path\n\t\t$this->_buildSefRoute($uri);\n\n\t\t// a few per-extension hacks\n\t\t$this->_extensionsBuildHacks($jRouter, $uri);\n\n\t\t// record URL source information\n\t\tSh404sefHelperUrl::storeUrlSource();\n\t}", "public static function set($name, $uri_callback = NULL, $regex = NULL)\n\t{\n\t\tif($uri_callback === TRUE)\n\t\t{\n\t\t\t$uri_callback = ___($name);\n\t\t}\n\t\t\n\t\treturn Route::$_routes[$name] = new Route($uri_callback, $regex);\n\t}", "public function add_endpoint() {\r\n add_rewrite_rule('^api/films/?(\\w+)?/?','index.php?__api=1&films=$matches[1]','top');\r\n }", "protected function _fixRewrite($url)\n {\n $return = $url;\n if ($this->_isUrlRewriteEnabled()) {\n $return = preg_replace('/index\\.php\\//', '', $return);\n }\n return $return;\n }", "public static function make_url( $url ) {\n\t\t\tif (\n\t\t\t// The first check incorrectly fails for URLs with special chars.\n\t\t\t! filter_var( $url, FILTER_VALIDATE_URL ) &&\n\t\t\tsubstr( $url, 0, 4 ) !== 'http'\n\t\t\t) {\n\t\t\t\treturn get_site_url() . $url;\n\t\t\t} else {\n\t\t\t\treturn $url;\n\t\t\t}\n\t\t}", "public function setRegexurl($regex) {\n }", "function ahr_write_htaccess( $redirection_status, $redirection_type ) {\r\n \r\n $random_anchor_number = get_option( 'ahr-random-anchor-number' );\r\n \r\n $https_status = $redirection_status === 'https' ? 'off' : 'on';\r\n \r\n $written_rules = \"\\n\\n\" . \"# Begin Advanced https redirection \" . $random_anchor_number . \"\\n\" . \"<IfModule mod_rewrite.c> \\n\" . \"RewriteEngine On \\n\" . \"RewriteCond %{HTTPS} $https_status \\n\" . \"RewriteCond %{REQUEST_FILENAME} -f \\n\" . \"RewriteCond %{REQUEST_FILENAME} !\\.php$ \\n\" . \"RewriteRule .* $redirection_status://%{HTTP_HOST}%{REQUEST_URI} [L,R=$redirection_type] \\n\" . \"</IfModule> \\n\" . \"# End Advanced https redirection \" . $random_anchor_number . \"\\n\";\r\n \r\n \r\n $root_dir = get_home_path();\r\n $htaccess_filename_path = $root_dir . '.htaccess';\r\n \r\n \r\n $write_result = file_put_contents( $htaccess_filename_path, $written_rules . PHP_EOL, FILE_APPEND | LOCK_EX );\r\n \r\n if ( $write_result ) {\r\n return true;\r\n }\r\n \r\n return false;\r\n \r\n}", "function cc_bare_category_rewrite_rules($rules) {\n\n\t$cc_rules = array();\n\n\t# We unset this existing rule so that we can later re-append it to the\n\t# list of rewrite rules, else it will match before the more specific\n\t# ones do.\n\tunset($rules['(.+?)/?$']);\n\n\t# Handles pagination for URLs like /catname/year/month/page/#\n\t$cc_rules['(.+?)/([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$'] = 'index.php?category_name=$matches[1]&year=$matches[2]&monthnum=$matches[3]&paged=$matches[4]';\n\n\t# Handles pagination for URLs like /catname/year/page/#\n\t$cc_rules['(.+?)/([0-9]{4})/page/?([0-9]{1,})/?$'] = 'index.php?category_name=$matches[1]&year=$matches[2]&paged=$matches[3]';\n\n\t# Handles pagination for URLs like /catname/page/#\n\t$cc_rules['(.+?)/page/?([0-9]{1,})/?$'] = 'index.php?category_name=$matches[1]&paged=$matches[2]';\n\n\t# Handles the basic bare category for URLs like /catname\n\t$cc_rules['(.+?)/?$'] = 'index.php?category_name=$matches[1]';\n\n\t# Now append our rules to the ones WP generated\n\treturn $rules + $cc_rules;\n\n}", "abstract public function url($manipulation_name = '');", "public function using_mod_rewrite_permalinks()\n {\n }", "public static function createHtaccess($base_dir='', $receiver_file='index.php')\n {\n if(!empty($base_dir) AND substr($base_dir, -1) == '/')\n $base_dir = substr($base_dir, 0, -1); // we delete the ending /\n \n $receiver_file = implode('/', array($base_dir, $receiver_file));\n \n return <<<TXT\n<IfModule mod_rewrite.c>\nRewriteEngine On\nRewriteBase /\nRewriteCond %{REQUEST_FILENAME} !-f\nRewriteCond %{REQUEST_FILENAME} !-d\nRewriteRule . $receiver_file [L]\n</IfModule>\nTXT;\n }", "public function register_rewrites()\n {\n }", "function rewrite_post_parmalink($original) {\n $parts = parse_url($original);\n $oparts = explode('/', preg_replace('/\\/$/', '', $parts['path']));\n $slug = end($oparts);\n\n $prefix = preg_replace('/\\/$/', '', $_SERVER[\"REQUEST_URI\"]);\n return \"//{$parts['host']}{$prefix}/{$slug}\";\n}", "public static function make(string $url = '/')\n {\n return new static(Url::fromString($url));\n }", "function urlparse(string $url): \\Midnite81\\UrlParser\\Url\n {\n return new \\Midnite81\\UrlParser\\Url($url);\n }", "public function actionCreate()\n\t{\n\t\t$model=new SeoRewrite;\n\n\t\t$model->normal_url = trim( urldecode(Yii::app()->getRequest()->getParam('url', '')), ' /' );\n\n\n\t\tif(isset($_POST['SeoRewrite']))\n\t\t{\n\t\t\t$model->attributes=$_POST['SeoRewrite'];\n\t\t\t$forward = isset($_POST['forward']);\n\n\t\t\t$model->normal_url = trim( urldecode($model->normal_url), ' /' );\n\t\t\t$model->seo_url = trim( urldecode($model->seo_url), ' /' );\n\n\n\t\t\t$server = $_SERVER;\n\t\t\t$get = $_GET;\n\n\t\t\t$host = parse_url( $model->normal_url, PHP_URL_HOST );\n\t\t\t$requestUri = $model->normal_url;\n\n\t\t\tif(strpos($requestUri,$host)!==false)\n\t\t\t\t$requestUri=trim( preg_replace('/^\\w+:\\/\\/[^\\/]+/','', $requestUri), ' /');\n\n\t\t\t$_SERVER['HTTP_HOST'] = $host;\n\t\t\t$_SERVER['REQUEST_URI'] = $requestUri;\n\n\t\t\t$data = array();\n\t\t\tmb_parse_str( parse_url( $model->normal_url, PHP_URL_QUERY), $data );\n\t\t\t$_GET = $data;\n\n\t\t\t$class = get_class(Yii::app()->getRequest());\n\t\t\t$request2 = new $class;\n\t\t\t$route=Yii::app()->getUrlManager()->parseUrl($request2);\n\t\t\t$_GET['cache'] = Cache::getCacheInfo();\n\n\t\t\t$model->param = serialize($_GET);\n\t\t\t$model->path = $route;\n\n\t\t\t$model->subdomain = $model->getSubdomain($host);\n\t\t\tif ($model->subdomain===null)\n\t\t\t\t$model->subdomain = '';\n\n\t\t\t/* Правило формирования md5 */\n\t\t\t$model->normal_md5 = md5( $model->subdomain.'|'.$requestUri );\n\t\t\t$model->seo_md5 = md5( $model->subdomain.'|'.$model->seo_url );\n\n\t\t\t$_GET = $get;\n\t\t\t$_SERVER = $server;\n\n\t\t\tif($model->save()) {\n\t\t\t\tif ($forward) {\n\t\t\t\t\t$host = parse_url( $model->normal_url, PHP_URL_HOST );\n\t\t\t\t\t$this->redirect('http://'.$host.'/'.$model->seo_url);\n\t\t\t\t} else\n\t\t\t\t\t$this->redirect(array('index'));\n\t\t\t}\n\t\t\tif ($model->hasErrors('seo_md5')) {\n\t\t\t\t$model->clearErrors('seo_md5');\n\t\t\t\t$model->addError('seo_url', 'Адрес уже используется');\n\t\t\t}\n\n\t\t}\n\n\t\t$this->render('create',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "private static function generateUrlPrams(){\n\t\t$url = [] ;\n\t\tif ( isset($_GET['urlFromHtaccess']) ){\n\t\t\t$url = explode('/' , trim($_GET['urlFromHtaccess']) );\n\t\t}\n\t\tself::$url = $url ;\n\t}", "private function makeUrl($appendUrl) {\n \n return $this->bitreserveUrl . $appendUrl;\n }", "public function createAccessRule(string $value, string $action) {\n if(self::checkIP($value) && self::checkAccessRule($action)) {\n return $this->connect('https://api.cloudflare.com/client/v4/user/firewall/access_rules/rules', 'POST', array('mode' => $action, 'configuration' => array('target' => (self::checkIPv4($value) ? 'ip' : ($this->checkIPv4($value) ? 'ip6' : null)), 'value' => $value), 'notes' => 'Created by CloudFirewall'));\n } else {\n return false;\n }\n }", "protected function createRuleObject($rule, $key, $value): RuleInterface\n {\n if ($rule === $key) {\n return new $key($value);\n }\n\n return new $value();\n }", "function wpbp_add_rewrites($content) {\n global $wp_rewrite;\n $llama_new_non_wp_rules = array(\n \t// icons for home screen and bookmarks\n\t 'assets/icons/(.*)' => THEME_PATH . '/assets/icons/$1',\n \t'favicon.ico' => 'assets/icons/favicon.ico',\n \t'apple-touch(.*).png' => 'assets/icons/apple-touch$1.png',\n\n \t// other rules\n\t 'assets/wpbp-assets/(.*)' => THEME_PATH . '/assets/wpbp-assets/$1',\n '(.*)\\.[\\d]+\\.(css|js)$'\t=> '$1.$2 [L]',\n '(.*)\\.[\\d]+\\.(js)$' => '/$1.$2 [QSA,L]',\n '(.*)\\.[\\d]+\\.(css)$' => '$1.$2 [L]'\n );\n $wp_rewrite->non_wp_rules = array_merge($wp_rewrite->non_wp_rules, $llama_new_non_wp_rules);\n return $content;\n}", "protected function _getUrlRewrite()\n {\n if (!$this->_urlRewrite) {\n $this->_urlRewrite = $this->_objectManager->create(\\Magento\\UrlRewrite\\Model\\UrlRewrite::class);\n $urlRewriteId = (int)$this->getRequest()->getParam('id', 0);\n if ($urlRewriteId) {\n $this->_urlRewrite->load($urlRewriteId);\n }\n }\n return $this->_urlRewrite;\n }" ]
[ "0.6814387", "0.6684359", "0.6418853", "0.6239306", "0.6182118", "0.612285", "0.6054547", "0.60113716", "0.5988988", "0.59544", "0.5953796", "0.5930289", "0.58367133", "0.58300865", "0.5738009", "0.569025", "0.56835574", "0.5614673", "0.56137145", "0.5566124", "0.55630696", "0.55353695", "0.551484", "0.55009866", "0.5497798", "0.543707", "0.5428162", "0.5425906", "0.5422869", "0.5410547", "0.54061186", "0.54019135", "0.53812677", "0.53174657", "0.5312616", "0.52848125", "0.5266458", "0.5254627", "0.5210613", "0.5186826", "0.5186143", "0.51612496", "0.5129581", "0.51263815", "0.5112655", "0.5095956", "0.50768673", "0.50718296", "0.5070171", "0.50603575", "0.5056044", "0.5055687", "0.5050163", "0.5046346", "0.5025772", "0.5021619", "0.5014346", "0.49985576", "0.49909055", "0.49844396", "0.49808162", "0.49692377", "0.49553382", "0.49455765", "0.49295342", "0.4906181", "0.48783764", "0.48717013", "0.48710418", "0.48657832", "0.48629925", "0.48593467", "0.4845842", "0.48420843", "0.48402154", "0.482146", "0.48207015", "0.4815107", "0.48140258", "0.48115462", "0.4808858", "0.48079625", "0.48078883", "0.480497", "0.48046935", "0.4787781", "0.47814754", "0.4770213", "0.4767266", "0.47602794", "0.4757023", "0.4755885", "0.47502697", "0.47495127", "0.474868", "0.47482932", "0.47373495", "0.4732457", "0.472358", "0.4722456" ]
0.6432574
2
Register custom query vars
public function registerQueryVars(array $vars): array { $vars[] = self::CUSTOMPAGEVAR; return $vars; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tb_register_query_vars( $vars ) {\n $vars[] = \"tosearch\";\n $vars[] = \"tab\";\n $vars[] = \"genre\";\n $vars[] = \"tosearch\";\n\n return $vars;\n}", "public function register_query_vars( $vars ) {\r\n $vars[] = 'workshop-specialty';\r\n return $vars;\r\n }", "function tennis_register_query_vars( $vars ) {\n\t$vars[] = 'manage';\n\treturn $vars;\n}", "function addQuery() {}", "public static function add_query_var($query_vars)\n {\n }", "public function add_custom_query_var( $public_query_vars ) {\n\t\t$public_query_vars[] = 'sku';\n\t\treturn $public_query_vars;\n\t}", "public function add_query_var($qv)\n {\n }", "public function set_query_variables()\n {\n $tags = apply_filters( $this->name.'_rewrite_tags', $this->tags);\n\n if(!empty($tags)) {\n foreach ($tags as $tag => $replace) {\n add_rewrite_tag($tag, $replace);\n }\n }\n }", "public function register_query_args( $vars = array() ) {\n\t\t$vars = ( ! empty( $this->endpoints ) ) ? array_merge( $vars, array_keys( $this->endpoints ) ) : $vars;\n\t\t$vars = ( ! empty( $this->rules_queryvars ) ) ? array_merge( $vars, array_unique( $this->rules_queryvars ) ) : $vars;\n\t\treturn $vars;\n\t}", "function it_exchange_custom_url_tracking_register_query_vars( $vars ) {\n\n\t// Don't add if using default permalinks\n\tif ( ! get_option( 'permalink_structure' ) )\n\t\treturn $vars;\n\n\t$vars[] = 'it_exchange_custom_url';\n\treturn $vars;\n}", "public function fill_query_vars($query_vars)\n {\n }", "function my_insert_query_vars( $vars ) {\n\tarray_push( $vars, 'rid' );\n\treturn $vars;\n}", "public function register_booking_queryvar( $vars ) {\n $vars[] = 'booking';\n return $vars;\n }", "function query() {\n $this->add_additional_fields();\n }", "public function add_query_var($qv) {\n\t\tif ( !in_array($qv, $this->public_query_vars) )\n\t\t\t$this->public_query_vars[] = $qv;\n\t}", "public function setQueryVar($query = true){\n\t\t$this->queryVar = $query;\n\t}", "function insert_query_vars( $vars ) {\r\n\r\n array_push( $vars, 'wpc_page' );\r\n array_push( $vars, 'wpc_page_value' );\r\n\r\n return $vars;\r\n }", "function queryVars($vars) {\n $vars[] = 'xauth';\n $vars[] = 'redirect_to';\n\n return $vars;\n }", "public function hook_query(&$query)\n {\n \n }", "public function hook_query(&$query)\n {\n \n }", "public function add_query_vars($vars) {\r\n $vars[] = '__api';\r\n $vars[] = 'films';\r\n return $vars;\r\n }", "private function set_query_components() {\n\t\n\t\t$start = (($this->page-1) * $this->rp);\n\t\t\n\t\tif($this->query) {\n\t\t\t$this->query_components['where'] = \" WHERE $qtype LIKE '%\".mysql_real_escape_string($query).\"%' \";\n\t\t}\n\t\telse {\n\t\t\t$this->query_componenets['where'] = \"\";\n\t\t}\n\t\t\n\t\t$this->query_components['sort'] = \"ORDER BY {$this->sortname} {$this->sortorder}\";\n\t\t$this->query_components['limit'] = \"LIMIT $start, {$this->rp}\";\n\t}", "public function add_query_vars($qvars)\n {\n $qvars[] = 'MecDisplay';\n $qvars[] = 'MecMethod';\n $qvars[] = 'MecDate';\n\n return $qvars;\n }", "public function hook_query(&$query) {\n\n\t\t }", "public function hook_query(&$query) {\n\n\t\t }", "public function hook_query(&$query) {\n\n\t\t }", "public function hook_query(&$query) {\n\n\t\t }", "public function addQueryData(array $query_params) {}", "function setup_my_bar_field_in_query( $query ){\n\t\tif ( !empty( $_REQUEST['tribe-bar-event-type'] ) ) {\n\t\t\t//echo 'yay';\n\t\t\t$query->query_vars['event-type'] = $_REQUEST['tribe-bar-event-type'];\n\t\t}\n\n\t\treturn $query;\n\t}", "function ind_query_var($vars) {\n\tarray_push($vars, 'chapter');\n\treturn $vars;\n}", "public function parse_query_vars()\n {\n }", "public function add_user_query_var( $qv ){\n\t\t$qv[] = 'wpttauthor';\n\t\treturn $qv;\n\t}", "public function registerQueryVars($vars)\n {\n $routes = $this->getRoutes();\n if (!empty($routes)) {\n foreach ($routes as $route) {\n $path = $route->getPath();\n if (strpos($path, '{') !== false) {\n preg_match_all('/{(.*?)}/', $path, $wildCardsMatchs);\n if (!empty($wildCardsMatchs[1])) {\n $vars = array_merge($vars, $wildCardsMatchs[1]);\n }\n }\n }\n }\n\n return $vars;\n }", "function toist_eo_hybrid_query_vars( $qvars ){\n\t$qvars[] = 'reviews';\n\treturn $qvars;\n}", "public static function fill_query_vars($args)\n {\n }", "function query() {\n $this->field_alias = $this->real_field;\n }", "function query() {\n $this->field_alias = $this->real_field;\n }", "function ajax_query_init($request, $query)\n {\n }", "public function _custom_query_var( $query, $query_vars ) {\n\t\tif ( array_key_exists( 'coinbase_archived', $query_vars ) ) {\n\t\t\t$query['meta_query'][] = array(\n\t\t\t\t'key' => '_coinbase_archived',\n\t\t\t\t'compare' => $query_vars['coinbase_archived'] ? 'EXISTS' : 'NOT EXISTS',\n\t\t\t);\n\t\t\t// Limit only to orders payed through Coinbase.\n\t\t\t$query['meta_query'][] = array(\n\t\t\t\t'key' => '_coinbase_charge_id',\n\t\t\t\t'compare' => 'EXISTS',\n\t\t\t);\n\t\t}\n\n\t\treturn $query;\n\t}", "function handle_custom_query_var($query, $query_vars)\n {\n // Add Category IDS\n if (!empty($query_vars['category_ids'])) {\n $query['tax_query'][] = array(\n 'taxonomy' => 'product_cat',\n 'field' => 'term_id',\n 'terms' => $query_vars['category_ids'],\n 'operator' => 'IN'\n );\n }\n\n // Add Tag IDS\n if (!empty($query_vars['tag_ids'])) {\n $query['tax_query'][] = array(\n 'taxonomy' => 'product_tag',\n 'field' => 'term_id',\n 'terms' => $query_vars['tag_ids'],\n 'operator' => 'IN'\n );\n }\n\n // Custom Order By\n if (!empty($query_vars['order-by'])) {\n // Disable WooCommerce OrderBy\n $query['orderby'] = 'none';\n\n // Add Custom order-by\n $order_by = trim($query_vars['order-by']);\n switch ($order_by) {\n case \"views\":\n $query['orderby'] = 'meta_value_num';\n $query['meta_key'] = 'views';\n break;\n case \"comment_count\":\n $query['orderby'] = 'comment_count';\n break;\n case \"price\":\n $query['orderby'] = 'meta_value_num';\n $query['meta_key'] = '_price';\n break;\n case \"total_sales\":\n $query['orderby'] = 'meta_value_num';\n $query['meta_key'] = 'total_sales';\n break;\n case \"rating\":\n $query['orderby'] = 'meta_value_num';\n $query['meta_key'] = '_wc_average_rating';\n break;\n }\n }\n\n// echo '<pre>';\n// print_r($query);\n// exit;\n return $query;\n }", "function set_query_var($query_var, $value)\n {\n }", "function ds_whitelist_new_search_parameter( $allowed_query_vars ) {\n $allowed_query_vars[] = 'q';\n return $allowed_query_vars;\n}", "abstract protected function initQuery(): void;", "public function setQueryData($query_data) {}", "function madara_set_main_query( $custom_query ) {\n\t\tglobal $wp_query;\n\n\t\t$temp_query = $wp_query;\n\n\t\t$wp_query = $custom_query;\n\n\t\treturn $temp_query;\n\t}", "public function add_query_vars( $vars ) {\n\t\t$vars[] = self::$endpoint;\n\t\treturn $vars;\n\t}", "function add_query_vars_filter( $vars ){\n $vars[] = 'campaign';\n $vars[] = 'container';\n $vars[] = 'type';\n $vars[] = 'launchUrls';\n $vars[] = 'playUrls';\n $vars[] = 'countUrls';\n return $vars;\n}", "public static function query_vars($vars) {\n $vars[] = 'callback';\n $vars[] = 'feed';\n $vars[] = 'pretty';\n\n return $vars;\n }", "public function setQuery($query);", "public static function setQuery(string $query)\n {\n self::$__query = $query;\n }", "function add_query_vars_filter($vars) {\n $vars[] = \"sddsref-id\";\n $vars[] = \"src\";\n return $vars;\n}", "public function setQUERY($QUERY)\n {\n $this->QUERY = $QUERY;\n }", "public function add_query_filter_wptc(){\n\t\t// add_filter('query', array($this->hooks_handler_obj, 'wtc_record_query'), 10);\n\t}", "public function query() {\n $this->field_alias = $this->real_field;\n }", "private function setQueryParams()\n {\n if (empty($this->generator->types[CustomsInterface::CUSTOM_TYPES_QUERY_PARAMS][ApiInterface::RAML_PROPS]) === false) {\n $queryParams = $this->generator->types[CustomsInterface::CUSTOM_TYPES_QUERY_PARAMS][ApiInterface::RAML_PROPS];\n $this->openEntity(ConfigInterface::QUERY_PARAMS);\n foreach ($this->queryParams as $param) {\n if (empty($queryParams[$param][ApiInterface::RAML_KEY_DEFAULT]) === false) {\n $this->setParam($param, $queryParams[$param][ApiInterface::RAML_TYPE], $queryParams[$param][ApiInterface::RAML_KEY_DEFAULT], 2);\n }\n }\n $this->closeEntities();\n }\n }", "public function setQuery( $query ){\n \n $this->query = $query;\n \n }", "function add_query_vars_filter( $vars ){\n\n\t$vars[] = \"targetCat\";\n\n\treturn $vars;\n\n}", "function wcfmgs_sm_wcfm_query_vars( $query_vars ) {\r\n \t$wcfm_modified_endpoints = (array) get_option( 'wcfm_endpoints' );\r\n \t\r\n\t\t$query_managers_vars = array(\r\n\t\t\t'wcfm-managers' => ! empty( $wcfm_modified_endpoints['wcfm-managers'] ) ? $wcfm_modified_endpoints['wcfm-managers'] : 'managers',\r\n\t\t\t'wcfm-managers-manage' => ! empty( $wcfm_modified_endpoints['wcfm-managers-manage'] ) ? $wcfm_modified_endpoints['wcfm-managers-manage'] : 'managers-manage',\r\n\t\t);\r\n\t\t\r\n\t\t$query_vars = array_merge( $query_vars, $query_managers_vars );\r\n\t\t\r\n\t\treturn $query_vars;\r\n }", "public function add_query_vars( $vars ) {\n\t\t$vars[] = $this->endpoint;\n\n\t\treturn $vars;\n\t}", "function customQuery($query) \t{\n $res = $this->execute($query);\n\t\t return $res;\n\t}", "protected function init()\r\n {\r\n parent::init();\r\n\r\n foreach ($this->options as $name => $value) {\r\n switch ($name) {\r\n case 'query':\r\n if (!is_array($value)) {\r\n $value = array(array('query' => $value));\r\n }\r\n $this->addQueries($value);\r\n break;\r\n }\r\n }\r\n }", "public function query_vars( $vars ) {\n\t\t$arr = [\n\t\t\t'promo_source',\n\t\t];\n\n\t\treturn QueryVars::add( $vars, $arr );\n\t}", "public function setQuery($query)\n {\n $this->parameters['query'] = $query;\n }", "protected function inject_custom_parameters()\n\t{\n\t\tforeach ($this->custom_parameters as $key => $value)\n\t\t{\n\t\t\t$this->container->setParameter($key, $value);\n\t\t}\n\t}", "function mrl_query_vars( $vars ) {\r\n $vars[] = 'my_reading_library_library';\r\n $vars[] = 'my_reading_library_id';\r\n $vars[] = 'my_reading_library_page'; \r\n $vars[] = 'my_reading_library_title';\r\n $vars[] = 'my_reading_library_author';\r\n $vars[] = 'my_reading_library_reader'; //in order to filter books by reader\r\n return $vars;\r\n}", "public function prepare_query($query = array()) {\n\n // Invoking parent method to build the query string\n parent::prepare_query($query);\n\n // Injecting custom query string for taxonomy\n if (isset($this->query['tax_query'])) {\n global $wpdb;\n\n $tax_query = new WP_Tax_Query($this->query['tax_query']);\n $taxsql = $tax_query->get_sql($wpdb->users, 'ID');\n\n if (!empty($taxsql['join'])) {\n $this->query_from .= $taxsql['join'];\n $this->query_where .= $taxsql['where'];\n }\n\n }\n }", "function set_query($query) {\n\t\t\t// it just sets the query with which to get a recordset\n\t\t\t$this->query = $query;\n\t\t}", "function query_vars($vars) {\n $vars[] = 'hcard_url';\n\n return $vars;\n }", "function hm_add_custom_page_variables( $public_query_vars ) {\n\n\tglobal $hm_rewrite_rules;\n\n\tif ( !isset( $hm_rewrite_rules ) )\n\t\treturn $public_query_vars;\n\n\t// Make any query vars public\n\tforeach( (array) $hm_rewrite_rules as $rule ) {\n\n\t\t$args = wp_parse_args( $rule[1] );\n\n\t\tforeach( $args as $arg => $val )\n\t\t\tif ( !in_array( $arg, $public_query_vars ) )\n\t\t\t\t$public_query_vars[] = $arg;\n\n\t}\n\n\treturn $public_query_vars;\n}", "public function query() {\n $this->field_alias = $this->real_field;\n if (isset($this->definition['trovequery'])) {\n $this->query->add_where('', $this->definition['trovequery']['arg'], $this->definition['trovequery']['value']);\n }\n }", "public function add_query_filters( $query ) {\n if ( ! $this->is_geolocation_show_on_shop_page() ) {\n return;\n }\n\n $this->latitude = isset( $_GET['latitude'] ) ? $_GET['latitude'] : null;\n $this->longitude = isset( $_GET['longitude'] ) ? $_GET['longitude'] : null;\n $this->distance = isset( $_GET['distance'] ) ? $_GET['distance'] : 0;\n\n add_filter( 'posts_fields_request', array( $this, 'posts_fields_request' ) );\n add_filter( 'posts_join_request', array( $this, 'posts_join_request' ) );\n add_filter( 'posts_groupby_request', array( $this, 'posts_groupby_request' ) );\n }", "public function add_placeholder_escape($query)\n {\n }", "protected function registerQuery($event)\n\t{\n\t\t$trace = StackTrace::get([ 'arguments' => $this->detectDuplicateQueries ])->resolveViewName();\n\n\t\tif ($this->detectDuplicateQueries) $this->detectDuplicateQuery($trace);\n\n\t\t$query = [\n\t\t\t'query' => $this->createRunnableQuery($event->sql, $event->bindings, $event->connectionName),\n\t\t\t'duration' => $event->time,\n\t\t\t'connection' => $event->connectionName,\n\t\t\t'time' => microtime(true) - $event->time / 1000,\n\t\t\t'trace' => (new Serializer)->trace($trace),\n\t\t\t'model' => $this->nextQueryModel,\n\t\t\t'tags' => $this->slowThreshold !== null && $event->time > $this->slowThreshold ? [ 'slow' ] : []\n\t\t];\n\n\t\t$this->nextQueryModel = null;\n\n\t\tif (! $this->passesFilters([ $query, $trace ], 'early')) return;\n\n\t\t$this->incrementQueryCount($query);\n\n\t\tif (! $this->collectQueries || ! $this->passesFilters([ $query, $trace ])) return;\n\n\t\t$this->queries[] = $query;\n\t}", "public function setQuery($query) {\r\n $this->query = $query;\r\n }", "function hijack_query_vars() {\n\t\tglobal $wp_query;\n\n\t\tif ( $this->is_woocommerce_search()\n\t\t\t&& ( function_exists( 'SWP' ) || defined( 'SEARCHWP_VERSION' ) )\n\t\t\t&& ! isset( $_GET['orderby'] )\n\t\t\t&& $this->original_query ) {\n\n\t\t\t$wp_query->set( 'post__in', array() );\n\t\t\t$wp_query->set( 's', '' );\n\n\t\t\tif ( isset( $wp_query->query['s'] ) ) {\n\t\t\t\tunset( $wp_query->query['s'] );\n\t\t\t}\n\t\t}\n\t}", "public function set($query_var, $value)\n {\n }", "public static function query_vars($vars) {\n $vars[] = 'oexchange';\n\n return $vars;\n }", "public function addQuery($query, $name)\n {\n $this->queries[$name] = $query;\n }", "public function query_vars($query_vars) {\n $query_vars[] = 'download_report';\n return $query_vars;\n }", "function tcapi_query_vars($query_vars) {\n\t$query_vars [] = 'contest_type';\n\t$query_vars [] = 'contestID';\n\t$query_vars [] = 'page';\n\t$query_vars [] = 'pages';\n\t$query_vars [] = 'post_per_page';\n\t$query_vars [] = 'handle';\n\t$query_vars [] = 'slug';\n\t$query_vars [] = 'num';\n\treturn $query_vars;\n}", "public function setQuery($query)\n {\n $this->query = $query;\n }", "function getQuerySettings() ;", "public function get_query_var(string $name)\n {\n }", "function query_vars( $public_query_vars ) {\r\n\t\t\t$public_query_vars[] = 'um_user';\r\n\t\t\t$public_query_vars[] = 'um_tab';\r\n\t\t\t$public_query_vars[] = 'profiletab';\r\n\t\t\t$public_query_vars[] = 'subnav';\r\n\r\n\t\t\t$public_query_vars[] = 'um_page';\r\n\t\t\t$public_query_vars[] = 'um_action';\r\n\t\t\t$public_query_vars[] = 'um_resource';\r\n\t\t\t$public_query_vars[] = 'um_method';\r\n\t\t\t$public_query_vars[] = 'um_verify';\r\n\r\n\t\t\treturn $public_query_vars;\r\n\t\t}", "function augmentSQL(SQLQuery &$query) {\r\n\t}", "function _admin_search_query()\n {\n }", "public function withQuery($query)\n {\n }", "private function loadFiltersFromQuery(): void\n {\n $request = RequestUtil::getMainRequest($this->requestStack) ?? Request::createFromGlobals();\n $requestFilters = $request->query->all('filter');\n\n if (is_array($requestFilters)) {\n foreach ($requestFilters as $name => $limitations) {\n foreach ($limitations as $comparison => $value) {\n $filterField = new FilterField();\n $filterField->setName($name)\n ->setValue($value)\n ->setComparison($comparison)\n ->setFilter($this->getFilterByName($name));\n\n $this->filterFields[] = $filterField;\n }\n }\n }\n }", "public function set_query_var($key, $value)\n {\n }", "public function setValue(string $query, array $data): void;", "function query() {}", "function set_query_args($query)\n {\n if ($query->get('datamapper')) {\n $query->query_vars = $this->object->_query_args;\n }\n $filter = isset($query->query_vars['suppress_filters']) ? $query->query_vars['suppress_filters'] : FALSE;\n $query->query_vars['suppress_filters'] = apply_filters('wpml_suppress_filters', $filter);\n }", "function add_query_arg(...$args)\n {\n }", "function query() {\n }", "protected function alterQueryArgs() {\n\n $this->get = filter_input_array(INPUT_GET, FILTER_SANITIZE_STRING);\n $this->post = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING);\n $this->request = VTCore_Wordpress_Utility::arrayMergeRecursiveDistinct($this->post, $this->get);\n\n $this->request = array_unique(array_filter((array) $this->request));\n\n // Processing ajax callback\n if (isset($this->request['value'])\n && $this->request['value'] == 'userloop'\n && isset($this->request['data'])) {\n\n $this->request['data'] = VTCore_Wordpress_Utility::wpParseLargeArgs($this->request['data']);\n\n }\n\n\n // Make WP_User_Query behaves like WP_Query\n if ($this->query['number']) {\n\n // Pagination with paged as WP_Query does\n if (!isset($this->query['paged'])) {\n $this->query['paged'] = 1;\n }\n\n // WpPager needs this for sane pagination\n $this->set('paged', $this->query['paged']);\n\n // Build the offset based on page and number per page\n $this->query['offset'] = $this->query['number'] * max(0, ($this->query['paged'] - 1));\n }\n\n do_action('vtcore_wordpress_user_query_args_alter', $this);\n\n }", "public function setQuery(array $query);", "public function getStoredQueryParams();", "public function registerQuery($name, Horde_Kolab_Storage_Query $query)\n {\n $this->_list->registerQuery($name, $query);\n }", "public static function query_vars( $vars ) {\n\n\t\t$vars[] = 'statify_referrer';\n\t\t$vars[] = 'statify_target';\n\n\t\treturn $vars;\n\t}", "protected function get_users_query_args()\n {\n }" ]
[ "0.713724", "0.6915737", "0.67485267", "0.67206776", "0.62624854", "0.62528056", "0.6229339", "0.62239635", "0.6125684", "0.61005855", "0.6095964", "0.60908985", "0.60874", "0.60295403", "0.6016176", "0.60057336", "0.59470016", "0.58782196", "0.58779174", "0.58779174", "0.5864198", "0.58578277", "0.58264005", "0.5781461", "0.5781461", "0.5781461", "0.5781461", "0.576148", "0.57578295", "0.57544285", "0.5749096", "0.57435584", "0.57116055", "0.56644326", "0.5662263", "0.56572026", "0.56572026", "0.5656747", "0.56490827", "0.5643691", "0.5618351", "0.56068623", "0.5595065", "0.55859685", "0.5574773", "0.55686814", "0.5562005", "0.54946744", "0.548996", "0.5489565", "0.54840165", "0.5482805", "0.5477768", "0.54771954", "0.54520214", "0.5443168", "0.54213744", "0.54182047", "0.54168814", "0.5397872", "0.53959084", "0.5353805", "0.534755", "0.5345976", "0.5342899", "0.53386635", "0.5323274", "0.53154206", "0.5313742", "0.5311812", "0.5297959", "0.52976525", "0.52907085", "0.5281413", "0.52722377", "0.5266089", "0.52549", "0.52249277", "0.52193457", "0.5192343", "0.5191467", "0.51878995", "0.5183468", "0.5183131", "0.5178022", "0.5175667", "0.5163692", "0.515196", "0.5149102", "0.5142274", "0.51404035", "0.5133087", "0.5130257", "0.5128665", "0.5128519", "0.5126611", "0.51257414", "0.51250845", "0.5112698", "0.51029205" ]
0.62495226
6
Returns a member variable
public function getSN() { return $this->sn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMember()\n {\n return $this->member;\n }", "public function __get($varName) {\n return $this->$varName;\n }", "public function get_variable() {\n\t\treturn $this->variable;\n\t}", "public function getMember(): MemberInterface;", "public function __get( $member ){\n\n return $this->find($member);\n\n }", "public function get_variable($var)\n {\n return $this->$var;\n }", "public function __get($var) {\n \treturn get_instance()->$var;\n }", "public function getMember()\n\t{\n\t\treturn $this->memberID ? Member::getMember($this->memberID) : NULL;\n\t}", "public function __get($var){\n\t\tif (!isset($this->$var)) {\n\t\t\t// if (isset($this->membersNumbers[$var])) {\n\t\t\t// \treturn $this->membersNumbers[$var];\n\t\t\t// }elseif (isset($this->icamAndTheirMembers[$var])) {\n\t\t\t// \treturn $this->icamAndTheirMembers[$var];\n\t\t\t// }elseif (isset($this->nightOptions[$var])) {\n\t\t\t// \treturn $this->nightOptions[$var];\n\t\t\t// }else{\n\t\t\t\treturn false;\n\t\t\t// }\n\t\t}else return $this->$var;\n\t}", "public static function var2member($var)\n {\n return self::camel2id(self::variablize($var));\n }", "public static function member2var($member)\n {\n return str_replace(' ', '_', preg_replace('/[^A-Za-z0-9\\.]+/', ' ', $member));\n }", "public function __get($var){\n\t\treturn $this->$var;\n\t}", "public function getMember()\n {\n if (array_key_exists('member', $this->_params)) {\n return $this->_params['member'];\n } else {\n return null;\n }\n }", "public function getVariable($name) {\n if (isset($this->$name)) return $this->$name;\n else trigger_error(\"$name is not a class variable\", E_USER_NOTICE);\n }", "public function getMember()\n {\n return $this->match;\n }", "public function __get($var)\n {\n return get_instance()->$var;\n }", "public function __get($var)\n {\n return get_instance()->$var;\n }", "public function __get($var) {\n\n return get_instance()->$var;\n }", "public function __get($var)\n\t{\n\t\treturn get_instance()->$var;\n\t}", "public function __get($var)\n\t{\n\t\treturn get_instance()->$var;\n\t}", "public function __get($var)\n\t{\n\t\treturn get_instance()->$var;\n\t}", "public function __get( $var_name )\n\t{\n\t\t$exclusions = array();\n\n\t\tif( !in_array( $var_name, $exclusions ) )\n\t\t{\n\t\t\treturn $this->$var_name;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new exception( \"Error: Access to member variable '\" . $var_name . \"' for class '\" . get_class( $this ) . \"' is denied\" );\n\t\t}\n\t}", "public function __get( $var_name )\n\t{\n\t\t$exclusions = array();\n\n\t\tif( !in_array( $var_name, $exclusions ) )\n\t\t{\n\t\t\treturn $this->$var_name;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new exception( \"Error: Access to member variable '\" . $var_name . \"' for class '\" . get_class( $this ) . \"' is denied\" );\n\t\t}\n\t}", "public function getVarHolder()\n {\n return $this->var_holder;\n }", "final public function GetVariableName() { return $this->varName; }", "final public function GetVariableName() { return $this->varName; }", "public function __get($var)\n {\n return $this->$var;\n }", "public function getMember()\n {\n return $this->member ?: Member::currentUser();\n }", "public function __get($name)\n\t{\n\t\treturn $this->var[$name];\n\t}", "public function get(string $variableName);", "function Member() {\n \t\t$member = null;\n\t\tif(is_numeric($this->urlParams['ID'])) {\n\t\t\t$member = DataObject::get_by_id('Member', $this->urlParams['ID']);\n\t\t} else {\n\t\t\t$member = Member::currentUser();\n\t\t}\n\n\t\treturn $member;\n\t}", "function __($var)\n {\n return $var;\n }", "function __get($name) {\n\t\t\t\t\tif (array_key_exists($name,$this->vars)) {\n\t\t\t\t\t\treturn $this->vars[$name];\n\t\t\t\t\t}\n\t\t\t\t\treturn null;\n\t\t\t\t}", "public function get($variable);", "public function getVariable(): string\n {\n return $this->variable;\n }", "public function __get($var){\r\n return isset($this->$var)?$this->$var:'';\r\n }", "public function __get($name)\n {\n $vars = $this->vars();\n return $vars[$name];\n }", "public function get_member()\n {\n //get cookie information if available\n $cookie_raw_info = (array_key_exists(get_member_cookie(), $_COOKIE)) ? $_COOKIE[get_member_cookie()] : '';\n\n $cookie_info = array();\n $cookie_info = explode('_', $cookie_raw_info);\n $cookie_member = (array_key_exists(0, $cookie_info)) ? $cookie_info[0] : '';\n $cookie_loginkey = (array_key_exists(1, $cookie_info)) ? $cookie_info[1] : '';\n\n if ($cookie_member != '') {\n $row = $this->get_member_row(intval($cookie_member));\n //is the cookie info correct\n if ($cookie_loginkey == $row['loginkey']) {\n //if it is correct then return the cookie member\n return $cookie_member;\n } else {\n //return the default guest ID, because the login key is not correct\n return $this->get_guest_id();\n }\n } else {\n //return the default guest ID, because there is no member cookie information\n return $this->get_guest_id();\n }\n }", "public function get_field(/* .... */)\n {\n return $this->_field;\n }", "function getVarName()\n {\n return $this->varName;\n }", "public function __get(string $member)\r\n {\r\n if (property_exists($this, $member)) {\r\n return $this->$member;\r\n }\r\n return null;\r\n }", "public function get(string|int|float|bool|null|object $member): string|int|float|bool|null|object\n {\n return $this->internalMap[$this->hash($member)];\n }", "public function getMemberInfo() {\n\n $memberModel = $GLOBALS[\"memberModel\"];\n // Get the member by the membership number\n $GLOBALS[\"member\"] = $memberModel->getOneByMemberNumber($_SESSION[\"MembershipNumber\"]);\n }", "public function __get( $variable ) {\n\t\treturn $this->get($variable);\n\t}", "public function __get($name) {\n return $this->getVariable($name);\n }", "public function processMemberVar(File $phpcsFile, $stackPtr)\n {\n $tokens = $phpcsFile->getTokens();\n $ignore = [\n T_PUBLIC,\n T_PRIVATE,\n T_PROTECTED,\n T_VAR,\n T_STATIC,\n T_WHITESPACE,\n ];\n\n $commentEnd = $phpcsFile->findPrevious($ignore, ($stackPtr - 1), null, true);\n if ($commentEnd === false\n || ($tokens[$commentEnd]['code'] !== T_DOC_COMMENT_CLOSE_TAG\n && $tokens[$commentEnd]['code'] !== T_COMMENT)\n ) {\n $phpcsFile->addError('Missing member variable doc comment', $stackPtr, 'Missing');\n return;\n }\n\n if ($tokens[$commentEnd]['code'] === T_COMMENT) {\n $phpcsFile->addError('You must use \"/**\" style comments for a member variable comment', $stackPtr, 'WrongStyle');\n return;\n }\n\n $commentStart = $tokens[$commentEnd]['comment_opener'];\n\n $foundVar = null;\n foreach ($tokens[$commentStart]['comment_tags'] as $tag) {\n\n if(substr($tokens[$tag]['content'], 0, 5) == '@ORM\\\\'){\n $phpcsFile->addError('Property annotated using the ' . $tokens[$tag]['content'] . ' Namespace, import the Annotation class instead.', $tag, 'ImportDoctrineORMFully');\n }\n\n if ($tokens[$tag]['content'] === '@var') {\n if ($foundVar !== null) {\n $error = 'Only one @var tag is allowed in a member variable comment';\n $phpcsFile->addError($error, $tag, 'DuplicateVar');\n } else {\n $foundVar = $tag;\n }\n } else if ($tokens[$tag]['content'] === '@see') {\n // Make sure the tag isn't empty.\n $string = $phpcsFile->findNext(T_DOC_COMMENT_STRING, $tag, $commentEnd);\n if ($string === false || $tokens[$string]['line'] !== $tokens[$tag]['line']) {\n $error = 'Content missing for @see tag in member variable comment';\n $phpcsFile->addError($error, $tag, 'EmptySees');\n }\n }\n }\n\n // The @var tag is the only one we require.\n if ($foundVar === null) {\n $error = 'Missing @var tag in member variable comment';\n $phpcsFile->addError($error, $commentEnd, 'MissingVar');\n return;\n }\n\n // Make sure the tag isn't empty and has the correct padding.\n $string = $phpcsFile->findNext(T_DOC_COMMENT_STRING, $foundVar, $commentEnd);\n if ($string === false || $tokens[$string]['line'] !== $tokens[$foundVar]['line']) {\n $error = 'Content missing for @var tag in member variable comment';\n $phpcsFile->addError($error, $foundVar, 'EmptyVar');\n return;\n }\n\n $varType = $tokens[($foundVar + 2)]['content'];\n $suggestedType = Common::suggestType($varType);\n }", "public function __get($index) {\n return $this->vars[$index];\n }", "public function __get($key)\n {\n return $this->var_holder->get($key);\n }", "function getVotingMember() {\n\t\treturn Member::get()->byID($this->MemberID);\n\t}", "public function getVarHolder()\n {\n return $this->varHolder;\n }", "public function read()\r\n {\r\n return $this->getNamespace()->{$this->getMember()};\r\n }", "function __get( $name ) {\n\t\treturn $this->$name;\n\t}", "public function getProperty();", "function getVariableContainer() ;", "public static function getMember() {\n\t\t\tif (self::$customer === false) {\n\t\t\t\tself::initialize();\n\t\t\t}\n\t\t\tif (isset(self::$customer['user']['id'])) {\n\t\t\t\t$member = new member(self::$customer['user']['id']);\n\t\t\t} else {\n\t\t\t\t$member = new member;\n\t\t\t}\n\t\t\treturn $member;\n\t\t}", "function get($var) {\n\t\treturn $this->_viewVars[$var];\n\t}", "public function processMemberVar(PHP_CodeSniffer_File $phpcsFile, $stackPtr)\n {\n $tokens = $phpcsFile->getTokens();\n $commentToken = [\n T_COMMENT,\n T_DOC_COMMENT_CLOSE_TAG,\n ];\n $commentEnd = $phpcsFile->findPrevious($commentToken, $stackPtr);\n if ($commentEnd === false) {\n $phpcsFile->addError('Missing member variable doc comment', $stackPtr, 'Missing');\n\n return;\n }\n if ($tokens[$commentEnd]['code'] === T_COMMENT) {\n $phpcsFile->addError(\n 'You must use \"/**\" style comments for a member variable comment',\n $stackPtr,\n 'WrongStyle'\n );\n\n return;\n } else if ($tokens[$commentEnd]['code'] !== T_DOC_COMMENT_CLOSE_TAG) {\n $phpcsFile->addError('Missing member variable doc comment', $stackPtr, 'Missing');\n\n return;\n } else {\n // Make sure the comment we have found belongs to us.\n $commentFor = $phpcsFile->findNext([T_VARIABLE, T_CLASS, T_INTERFACE], ($commentEnd + 1));\n if ($commentFor !== $stackPtr) {\n $phpcsFile->addError('Missing member variable doc comment', $stackPtr, 'Missing');\n\n return;\n }\n }\n $commentStart = $tokens[$commentEnd]['comment_opener'];\n $foundVar = null;\n foreach ($tokens[$commentStart]['comment_tags'] as $tag) {\n if ($tokens[$tag]['content'] === '@var') {\n if ($foundVar !== null) {\n $error = 'Only one @var tag is allowed in a member variable comment';\n $phpcsFile->addError($error, $tag, 'DuplicateVar');\n } else {\n $foundVar = $tag;\n }\n } else if ($tokens[$tag]['content'] === '@see') {\n // Make sure the tag isn't empty.\n $string = $phpcsFile->findNext(T_DOC_COMMENT_STRING, $tag, $commentEnd);\n if ($string === false || $tokens[$string]['line'] !== $tokens[$tag]['line']) {\n $error = 'Content missing for @see tag in member variable comment';\n $phpcsFile->addError($error, $tag, 'EmptySees');\n }\n } else {\n $error = '%s tag is not allowed in member variable comment';\n $data = [$tokens[$tag]['content']];\n $phpcsFile->addWarning($error, $tag, 'TagNotAllowed', $data);\n }\n }\n // The @var tag is the only one we require.\n if ($foundVar === null) {\n $error = 'Missing @var tag in member variable comment';\n $phpcsFile->addError($error, $commentEnd, 'MissingVar');\n\n return;\n }\n $firstTag = $tokens[$commentStart]['comment_tags'][0];\n if ($foundVar !== null && $tokens[$firstTag]['content'] !== '@var') {\n $error = 'The @var tag must be the first tag in a member variable comment';\n $phpcsFile->addError($error, $foundVar, 'VarOrder');\n }\n // Make sure the tag isn't empty and has the correct padding.\n $string = $phpcsFile->findNext(T_DOC_COMMENT_STRING, $foundVar, $commentEnd);\n if ($string === false || $tokens[$string]['line'] !== $tokens[$foundVar]['line']) {\n $error = 'Content missing for @var tag in member variable comment';\n $phpcsFile->addError($error, $foundVar, 'EmptyVar');\n\n return;\n }\n $varType = $tokens[($foundVar + 2)]['content'];\n $suggestedType = $this->suggestType($varType);\n\n if ($varType !== $suggestedType) {\n $error = 'Expected \"%s\" but found \"%s\" for @var tag in member variable comment';\n $data = [\n $suggestedType,\n $varType,\n ];\n $phpcsFile->addError($error, ($foundVar + 2), 'IncorrectVarType', $data);\n }\n }", "function &_getMember($mid){\n\t\tif (!isset($this->memberdata[$mid])) {\n\t\t\t$this->memberdata[$mid]=mysql_fetch_assoc($res=sql_query('SELECT * FROM '.sql_table('member').' WHERE mnumber='.(int)$mid.' LIMIT 1'));\n\t\t\tmysql_free_result($res);\n\t\t}\n\t\treturn $this->memberdata[$mid];\n\t}", "public function __get($var) {\n if (!array_key_exists($var, $this->_parameterMap)) {\n return NULL;\n } else {\n return $this->{$this->_parameterMap[$var]};\n }\n }", "public function __get($var) {\n if (!array_key_exists($var, $this->_parameterMap)) {\n return NULL;\n } else {\n return $this->{$this->_parameterMap[$var]};\n }\n }", "public function __get($var) {\n if (!isset($this->_parameterMap[$var])) {\n return null;\n }\n return $this->{$this->_parameterMap[$var]};\n }", "public function __get($var) {\n if (!isset($this->_parameterMap[$var])) {\n return null;\n }\n return $this->{$this->_parameterMap[$var]};\n }", "public function __get($var) {\n if (!isset($this->_parameterMap[$var])) {\n return null;\n }\n return $this->{$this->_parameterMap[$var]};\n }", "public function __get($var) {\n if (!isset($this->_parameterMap[$var])) {\n return null;\n }\n return $this->{$this->_parameterMap[$var]};\n }", "public function __get($var) {\n if (!isset($this->_parameterMap[$var])) {\n return null;\n }\n return $this->{$this->_parameterMap[$var]};\n }", "public function __get($var) {\n if (!isset($this->_parameterMap[$var])) {\n return null;\n }\n return $this->{$this->_parameterMap[$var]};\n }", "public function __get($var) {\n if (!isset($this->_parameterMap[$var])) {\n return null;\n }\n return $this->{$this->_parameterMap[$var]};\n }", "public function __get($var) {\n if (!isset($this->_parameterMap[$var])) {\n return null;\n }\n return $this->{$this->_parameterMap[$var]};\n }", "public function __get($var) {\n if (!isset($this->_parameterMap[$var])) {\n return null;\n }\n return $this->{$this->_parameterMap[$var]};\n }", "public function __get( $variable ) {\n if ( property_exists($this, $variable) ) {\n return $this->$variable;\n }\n }", "public function &__get($field) {\n\t\tif (isset($this->viewVars[$field])) {\n\t\t\treturn $this->viewVars[$field];\n\t\t}\n\t\t\n\t\ttrigger_error(\"Undefined view variable '{$field}'\");\n\t}", "public function createMemeberVariables($arg1) \n\t{\n\t\treturn \"\\nprivate \\$\".$arg1.\";\\n\\n\";\n\t}", "function _getVar($name) {\n if( is_array($this->_vars) && isset($this->_vars[\"$name\"]) )\n return $this->_vars[\"$name\"];\n else\n return \"\";\n }", "public function lookAt(string $variableName): TestGuy;", "protected function processMemberVar(File $phpcsFile, $stackPtr)\n {\n $tokens = $phpcsFile->getTokens();\n $varName = ltrim($tokens[$stackPtr]['content'], '$');\n $memberProps = $phpcsFile->getMemberProperties($stackPtr);\n if (empty($memberProps) === true) {\n // Exception encountered.\n return;\n }\n\n $public = ($memberProps['scope'] === 'public');\n\n if ($public === true) {\n if (substr($varName, 0, 1) === '_') {\n $error = 'Public member variable \"%s\" must not contain a leading underscore';\n $data = [$varName];\n $phpcsFile->addError($error, $stackPtr, 'PublicHasUnderscore', $data);\n }\n } else {\n if (substr($varName, 0, 1) !== '_') {\n $scope = ucfirst($memberProps['scope']);\n $error = '%s member variable \"%s\" must contain a leading underscore';\n $data = [\n $scope,\n $varName,\n ];\n $phpcsFile->addError($error, $stackPtr, 'PrivateNoUnderscore', $data);\n }\n }\n\n // Remove a potential underscore prefix for testing CamelCaps.\n $varName = ltrim($varName, '_');\n\n if (Common::isCamelCaps($varName, false, true, false) === false) {\n $error = 'Member variable \"%s\" is not in valid camel caps format';\n $data = [$varName];\n $phpcsFile->addError($error, $stackPtr, 'MemberVarNotCamelCaps', $data);\n } else if (preg_match('|\\d|', $varName) === 1) {\n $warning = 'Member variable \"%s\" contains numbers but this is discouraged';\n $data = [$varName];\n $phpcsFile->addWarning($warning, $stackPtr, 'MemberVarContainsNumbers', $data);\n }\n\n }", "public function __get($_name);", "public function __get($ivar) {\n // $ivar = \"id\", \"name', \"email\"\n return $this->$ivar; // Normally we would not use a $ after the ->\n // $ivar will evaluate to an expression equal to \"id\", \"name' or \"email\" \n }", "public function getData($var)\n {\n return $this -> $var;\n }", "public function __get($var){\n\t\tif(isset($this->$var))\n\t\t\treturn $this->$var;\n\t\treturn null;\n\t}", "public function __get($var)\n {\n if (!isset($this->_parameterMap[$var])) {\n return null;\n }\n return $this->{$this->_parameterMap[$var]};\n }", "public function __get($var)\n {\n if (!isset($this->_parameterMap[$var])) {\n return null;\n }\n return $this->{$this->_parameterMap[$var]};\n }", "function __get ( $name )\n {\n return $this->$name;\n }", "public function __get($var)\n {\n return isset($this->_vars[$var]) ? $this->_vars[$var] : null;\n }", "public function __get($name){\r\n\t\tif(array_key_exists($name,$this->array)){\r\n\t\t\treturn $array[$name];\r\n\t\t/* check property is available */\t\r\n\t\t}else if(property_exists($this, $name)){\r\n\t\t return $this->$name;\r\n\t\t}else{\r\n\t\t\treturn \"Trying to access not existing variable : $name<br/>\";\r\n\t\t}\r\n\t}", "public function __get($name)\n {\n if(isset($this->vars[$name])){\n return $this->vars[$name];\n }\n return null;\n }", "function GetVar( $var )\r\n {\r\n return $this->_vars[$var];\r\n }", "public function __get($param);", "public function __get($var)\n {\n if (!array_key_exists($var, $this->parameterMap)) {\n return null;\n }\n return $this->{$this->parameterMap[$var]};\n }", "public function __get($var)\n {\n if (!array_key_exists($var, $this->parameterMap)) {\n return null;\n }\n return $this->{$this->parameterMap[$var]};\n }", "public function getActingMember()\n {\n /** @var Emagedev_Trello_Model_Member $member */\n $member = Mage::getModel('trello/member');\n $member->loadFromTrello($this->getIdMemberCreator());\n\n return $member;\n }", "protected function processMemberVar( File $phpcs_file, $stack_ptr ) {\n\n\t\t$tokens = $phpcs_file->getTokens();\n\n\t\t$var_name = ltrim( $tokens[ $stack_ptr ]['content'], '$' );\n\t\t$member_props = $phpcs_file->getMemberProperties( $stack_ptr );\n\t\tif ( empty( $member_props ) ) {\n\t\t\t// Couldn't get any info about this variable, which\n\t\t\t// generally means it is invalid or possibly has a parse\n\t\t\t// error. Any errors will be reported by the core, so\n\t\t\t// we can ignore it.\n\t\t\treturn;\n\t\t}\n\n\t\t// Merge any custom variables with the defaults.\n\t\t$this->mergeWhiteList();\n\n\t\tif ( ! isset( $this->whitelisted_mixed_case_member_var_names[ $var_name ] ) && false === self::isSnakeCase( $var_name ) ) {\n\t\t\t$error = 'Member variable \"$%s\" is not in valid snake_case format, try \"$%s\"';\n\t\t\t$data = array(\n\t\t\t\t$var_name,\n\t\t\t\tSniff::get_snake_case_name_suggestion( $var_name ),\n\t\t\t);\n\t\t\t$phpcs_file->addError( $error, $stack_ptr, 'PropertyNotSnakeCase', $data );\n\t\t}\n\t}", "public function __get($var)\n {\n if (!isset($this->_parameterMap[$var])) {\n return;\n }\n\n return $this->{$this->_parameterMap[$var]};\n }", "public function getVariable($param)\n {\n return \"Method {Attribute::getVariable()} has been called and received: {$param}\";\n }", "public function getProperty(): string;", "function __get($name) {\n\t\treturn $this->object[$name];\n\t}", "public function __get($var)\n {\n if (!isset($this->_parameterMap[$var])) {\n return null;\n }\n\n return $this->{$this->_parameterMap[$var]};\n }", "public function __get($name);", "public function __get($name);", "public function __get($name);", "public function __get($name);", "public function __get($name);" ]
[ "0.66031975", "0.65635407", "0.6542067", "0.64572054", "0.6393735", "0.63882625", "0.62894285", "0.6260688", "0.6253748", "0.6233008", "0.6220707", "0.6219035", "0.6208529", "0.620731", "0.61348784", "0.607089", "0.607089", "0.6050561", "0.60426843", "0.60426843", "0.60426843", "0.60202277", "0.60202277", "0.59815925", "0.59691095", "0.59691095", "0.5951988", "0.5947112", "0.59252053", "0.5917012", "0.59158564", "0.5910669", "0.5877728", "0.5833436", "0.5832956", "0.58320063", "0.5787518", "0.57701844", "0.57667464", "0.57633114", "0.5746575", "0.5742304", "0.57108885", "0.57097507", "0.56822705", "0.56731164", "0.56682837", "0.56623065", "0.5651485", "0.563983", "0.5622585", "0.5612404", "0.56101024", "0.5609249", "0.56004596", "0.55990195", "0.5584374", "0.5572449", "0.55718106", "0.55718106", "0.5566879", "0.5566879", "0.5566879", "0.5566879", "0.5566879", "0.5566879", "0.5566879", "0.5566879", "0.5566879", "0.55644137", "0.5561988", "0.5556092", "0.55471313", "0.5541325", "0.5530707", "0.5503813", "0.55036545", "0.5502548", "0.5488265", "0.54831904", "0.54831904", "0.5481106", "0.5479342", "0.546768", "0.5460477", "0.54599357", "0.54566616", "0.5455937", "0.5455937", "0.5455157", "0.5453899", "0.5442014", "0.5429237", "0.5423201", "0.54186016", "0.5411877", "0.540764", "0.540764", "0.540764", "0.540764", "0.540764" ]
0.0
-1